models

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const TransportEventSub = "eventsub"
View Source
const TransportWebsockets = "websockets"

Variables

This section is empty.

Functions

This section is empty.

Types

type APIPagination added in v1.1.2

type APIPagination struct {
	Cursor string `json:"cursor"`
}

type APIResponse

type APIResponse struct {
	Data       interface{}               `json:"data,omitempty"`
	Pagination *APIPagination            `json:"pagination,omitempty"`
	Error      string                    `json:"error,omitempty"`
	Status     int                       `json:"status,omitempty"`
	Message    string                    `json:"message,omitempty"`
	Template   string                    `json:"template,omitempty"`
	Total      *int                      `json:"total,omitempty"`
	DateRange  *BitsLeaderboardDateRange `json:"date_range,omitempty"`
}

type AuthorizationRevokeEvent added in v1.1.2

type AuthorizationRevokeEvent struct {
	UserID    string `json:"user_id"`
	UserLogin string `json:"user_login"`
	UserName  string `json:"user_name"`
	ClientID  string `json:"client_id"`
}

type AuthorizationRevokeEventSubResponse added in v1.1.2

type AuthorizationRevokeEventSubResponse struct {
	Subscription EventsubSubscription     `json:"subscription"`
	Event        AuthorizationRevokeEvent `json:"event"`
}

type BanEventSubEvent added in v1.1.2

type BanEventSubEvent struct {
	UserID               string  `json:"user_id"`
	UserLogin            string  `json:"user_login"`
	UserName             string  `json:"user_name"`
	BroadcasterUserID    string  `json:"broadcaster_user_id"`
	BroadcasterUserLogin string  `json:"broadcaster_user_login"`
	BroadcasterUserName  string  `json:"broadcaster_user_name"`
	ModeratorUserId      string  `json:"moderator_user_id"`
	ModeratorUserLogin   string  `json:"moderator_user_login"`
	ModeratorUserName    string  `json:"moderator_user_name"`
	Reason               *string `json:"reason,omitempty"`
	EndsAt               *string `json:"ends_at,omitempty"`
	IsPermanent          *bool   `json:"is_permanent,omitempty"`
}

type BanEventSubResponse added in v1.1.2

type BanEventSubResponse struct {
	Subscription EventsubSubscription `json:"ban"`
	Event        BanEventSubEvent     `json:"event"`
}

type BitsLeaderboardDateRange added in v1.1.2

type BitsLeaderboardDateRange struct {
	StartedAt string `json:"started_at"`
	EndedAt   string `json:"ended_at"`
}

type ChannelUpdateEventSubEvent added in v1.1.2

type ChannelUpdateEventSubEvent struct {
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	StreamTitle          string `json:"title"`
	StreamLanguage       string `json:"language"`
	StreamCategoryID     string `json:"category_id"`
	StreamCategoryName   string `json:"category_name"`
	IsMature             bool   `json:"is_mature"`
}

type ChannelUpdateEventSubResponse added in v1.1.2

type ChannelUpdateEventSubResponse struct {
	Subscription EventsubSubscription       `json:"subscription"`
	Event        ChannelUpdateEventSubEvent `json:"event"`
}

type CheerEventSubEvent

type CheerEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	IsAnonymous          bool   `json:"is_anonymous"`
	Message              string `json:"message"`
	Bits                 int64  `json:"bits"`
}

type CheerEventSubResponse

type CheerEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        CheerEventSubEvent   `json:"event"`
}

type ContributionData added in v1.1.2

type ContributionData struct {
	TotalContribution            int64  `json:"total"`
	TypeOfContribution           string `json:"type"`
	UserWhoMadeContribution      string `json:"user_id,omitempty"`
	UserNameWhoMadeContribution  string `json:"user_name,omitempty"`
	UserLoginWhoMadeContribution string `json:"user_login,omitempty"`
}

type DropsEntitlementEventSubEvent added in v1.1.2

type DropsEntitlementEventSubEvent struct {
	ID   string                            `json:"id"`
	Data DropsEntitlementEventSubEventData `json:"data"`
}

type DropsEntitlementEventSubEventData added in v1.1.2

type DropsEntitlementEventSubEventData struct {
	EntitlementID  string `json:"entitlement_id"`
	BenefitID      string `json:"benefit_id"`
	CampaignID     string `json:"campaign_id"`
	OrganizationID string `json:"organization_id"`
	CreatedAt      string `json:"created_at"`
	UserID         string `json:"user_id"`
	UserName       string `json:"user_name"`
	UserLogin      string `json:"user_login"`
	CategoryID     string `json:"category_id"`
	CategoryName   string `json:"category_name"`
}

type DropsEntitlementEventSubResponse added in v1.1.2

type DropsEntitlementEventSubResponse struct {
	Subscription EventsubSubscription            `json:"subscription"`
	Events       []DropsEntitlementEventSubEvent `json:"events"`
}

type EventsubCondition

type EventsubCondition struct {
	BroadcasterUserID     string `json:"broadcaster_user_id,omitempty"`
	ToBroadcasterUserID   string `json:"to_broadcaster_user_id,omitempty"`
	UserID                string `json:"user_id,omitempty"`
	FromBroadcasterUserID string `json:"from_broadcaster_user_id,omitempty"`
	ClientID              string `json:"client_id,omitempty"`
	ExtensionClientID     string `json:"extension_client_id,omitempty"`
	OrganizationID        string `json:"organization_id,omitempty"`
}

type EventsubResponse

type EventsubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        interface{}          `json:"event"`
}

type EventsubSubscription

type EventsubSubscription struct {
	ID        string            `json:"id"`
	Status    string            `json:"status"`
	Type      string            `json:"type"`
	Version   string            `json:"version"`
	Condition EventsubCondition `json:"condition"`
	Transport EventsubTransport `json:"transport"`
	CreatedAt string            `json:"created_at"`
	Cost      int64             `json:"cost"`
}

type EventsubSubscriptionVerification added in v0.3.0

type EventsubSubscriptionVerification struct {
	Challenge    string               `json:"challenge"`
	Subscription EventsubSubscription `json:"subscription"`
}

type EventsubTransport

type EventsubTransport struct {
	Method   string `json:"method"`
	Callback string `json:"callback"`
}

type FollowEventSubEvent

type FollowEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	FollowedAt           string `json:"followed_at"`
}

type FollowEventSubResponse

type FollowEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        FollowEventSubEvent  `json:"event"`
}

type GiftEventSubEvent added in v1.1.2

type GiftEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	Tier                 string `json:"tier"`
	Total                int    `json:"total"`
	IsAnonymous          bool   `json:"is_anonymous"`
	CumulativeTotal      *int   `json:"cumulative_total"`
}

type GiftEventSubResponse added in v1.1.2

type GiftEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        GiftEventSubEvent    `json:"event"`
}

type GoalEventSubEvent added in v1.1.2

type GoalEventSubEvent struct {
	ID                   string  `json:"id"`
	BroadcasterUserID    string  `json:"broadcaster_user_id"`
	BroadcasterUserName  string  `json:"broadcaster_user_name"`
	BroadcasterUserLogin string  `json:"broadcaster_user_login"`
	Type                 string  `json:"type"`
	Description          string  `json:"description"`
	IsAchieved           *bool   `json:"is_achieved,omitempty"`
	CurrentAmount        int64   `json:"current_amount"`
	TargetAmount         int64   `json:"target_amount"`
	StartedAt            string  `json:"started_at"`
	EndedAt              *string `json:"ended_at,omitempty"`
}

type GoalEventSubResponse added in v1.1.2

type GoalEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        GoalEventSubEvent    `json:"event"`
}

type HypeTrainEventSubEvent added in v1.1.2

type HypeTrainEventSubEvent struct {
	ID                      string             `json:"id"`
	BroadcasterUserID       string             `json:"broadcaster_user_id"`
	BroadcasterUserLogin    string             `json:"broadcaster_user_login"`
	BroadcasterUserName     string             `json:"broadcaster_user_name"`
	Level                   int64              `json:"level,omitempty"`
	Total                   int64              `json:"total"`
	Progress                *int64             `json:"progress,omitempty"`
	Goal                    int64              `json:"goal,omitempty"`
	TopContributions        []ContributionData `json:"top_contributions"`
	LastContribution        ContributionData   `json:"last_contribution,omitempty"`
	StartedAtTimestamp      string             `json:"started_at,omitempty"`
	ExpiresAtTimestamp      string             `json:"expires_at,omitempty"`
	EndedAtTimestamp        string             `json:"ended_at,omitempty"`
	CooldownEndsAtTimestamp string             `json:"cooldown_ends_at,omitempty"`
}

type HypeTrainEventSubResponse added in v1.1.2

type HypeTrainEventSubResponse struct {
	Subscription EventsubSubscription   `json:"subscription"`
	Event        HypeTrainEventSubEvent `json:"event"`
}

type ModeratorChangeEventData added in v1.1.2

type ModeratorChangeEventData struct {
	BroadcasterID   string `json:"broadcaster_id"`
	BroadcasterName string `json:"broadcaster_name"`
	UserID          string `json:"user_id"`
	UserName        string `json:"user_name"`
}

type ModeratorChangeEventSubEvent added in v1.1.2

type ModeratorChangeEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
}

type ModeratorChangeEventSubResponse added in v1.1.2

type ModeratorChangeEventSubResponse struct {
	Subscription EventsubSubscription         `json:"subscription"`
	Event        ModeratorChangeEventSubEvent `json:"event"`
}

type PollEventSubEvent added in v1.1.2

type PollEventSubEvent struct {
	ID                   string                      `json:"id"`
	BroadcasterUserID    string                      `json:"broadcaster_user_id"`
	BroadcasterUserLogin string                      `json:"broadcaster_user_login"`
	BroadcasterUserName  string                      `json:"broadcaster_user_name"`
	Title                string                      `json:"title"`
	Choices              []PollEventSubEventChoice   `json:"choices"`
	BitsVoting           PollEventSubEventGoodVoting `json:"bits_voting"`
	ChannelPointsVoting  PollEventSubEventGoodVoting `json:"channel_points_voting"`
	Status               string                      `json:"status,omitempty"`
	StartedAt            string                      `json:"started_at"`
	EndsAt               string                      `json:"ends_at,omitempty"`
	EndedAt              string                      `json:"ended_at,omitempty"`
}

type PollEventSubEventChoice added in v1.1.2

type PollEventSubEventChoice struct {
	ID                 string `json:"id"`
	Title              string `json:"title"`
	BitsVotes          *int   `json:"bits_votes,omitempty"`
	ChannelPointsVotes *int   `json:"channel_points_votes,omitempty"`
	Votes              *int   `json:"votes,omitempty"`
}

type PollEventSubEventGoodVoting added in v1.1.2

type PollEventSubEventGoodVoting struct {
	IsEnabled     bool `json:"is_enabled"`
	AmountPerVote int  `json:"amount_per_vote"`
}

type PollEventSubResponse added in v1.1.2

type PollEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        PollEventSubEvent    `json:"event"`
}

type PredictionEventSubEvent added in v1.1.2

type PredictionEventSubEvent struct {
	ID                   string                            `json:"id"`
	BroadcasterUserID    string                            `json:"broadcaster_user_id"`
	BroadcasterUserLogin string                            `json:"broadcaster_user_login"`
	BroadcasterUserName  string                            `json:"broadcaster_user_name"`
	Title                string                            `json:"title"`
	WinningOutcomeID     string                            `json:"winning_outcome_id,omitempty"`
	Outcomes             []PredictionEventSubEventOutcomes `json:"outcomes"`
	StartedAt            string                            `json:"started_at"`
	LocksAt              string                            `json:"locks_at,omitempty"`
	LockedAt             string                            `json:"locked_at,omitempty"`
	EndedAt              string                            `json:"ended_at,omitempty"`
	Status               string                            `json:"status,omitempty"`
}

type PredictionEventSubEventOutcomes added in v1.1.2

type PredictionEventSubEventOutcomes struct {
	ID            string                                  `json:"id"`
	Title         string                                  `json:"title"`
	Color         string                                  `json:"color"`
	Users         *int                                    `json:"users,omitempty"`
	ChannelPoints *int                                    `json:"channel_points,omitempty"`
	TopPredictors *[]PredictionEventSubEventTopPredictors `json:"top_predictors,omitempty"`
}

type PredictionEventSubEventTopPredictors added in v1.1.2

type PredictionEventSubEventTopPredictors struct {
	UserID            string `json:"user_id"`
	UserLogin         string `json:"user_login"`
	UserName          string `json:"user_name"`
	ChannelPointsWon  *int   `json:"channel_points_won"`
	ChannelPointsUsed int    `json:"channel_points_used"`
}

type PredictionEventSubResponse added in v1.1.2

type PredictionEventSubResponse struct {
	Subscription EventsubSubscription    `json:"subscription"`
	Event        PredictionEventSubEvent `json:"event"`
}

type RaidEvent added in v1.1.2

type RaidEvent struct {
	ToBroadcasterUserID      string `json:"to_broadcaster_user_id"`
	ToBroadcasterUserLogin   string `json:"to_broadcaster_user_login"`
	ToBroadcasterUserName    string `json:"to_broadcaster_user_name"`
	FromBroadcasterUserID    string `json:"from_broadcaster_user_id"`
	FromBroadcasterUserLogin string `json:"from_broadcaster_user_login"`
	FromBroadcasterUserName  string `json:"from_broadcaster_user_name"`
	Viewers                  int64  `json:"viewers"`
}

type RaidEventSubResponse added in v1.1.2

type RaidEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        RaidEvent            `json:"event"`
}

type RedemptionEventSubEvent

type RedemptionEventSubEvent struct {
	ID                   string           `json:"id"`
	BroadcasterUserID    string           `json:"broadcaster_user_id"`
	BroadcasterUserLogin string           `json:"broadcaster_user_login"`
	BroadcasterUserName  string           `json:"broadcaster_user_name"`
	UserID               string           `json:"user_id"`
	UserLogin            string           `json:"user_login"`
	UserName             string           `json:"user_name"`
	UserInput            string           `json:"user_input"`
	Status               string           `json:"status"`
	Reward               RedemptionReward `json:"reward"`
	RedeemedAt           string           `json:"redeemed_at"`
}

type RedemptionEventSubResponse

type RedemptionEventSubResponse struct {
	Subscription EventsubSubscription    `json:"subscription"`
	Event        RedemptionEventSubEvent `json:"event"`
}

type RedemptionReward

type RedemptionReward struct {
	ID     string `json:"id"`
	Title  string `json:"title"`
	Cost   int64  `json:"cost"`
	Prompt string `json:"prompt"`
}

type RewardEventSubEvent

type RewardEventSubEvent struct {
	ID                                string               `json:"id"`
	BroadcasterUserID                 string               `json:"broadcaster_user_id"`
	BroadcasterUserLogin              string               `json:"broadcaster_user_login"`
	BroadcasterUserName               string               `json:"broadcaster_user_name"`
	IsEnabled                         bool                 `json:"is_enabled"`
	IsPaused                          bool                 `json:"is_paused"`
	IsInStock                         bool                 `json:"is_in_stock"`
	Title                             string               `json:"title"`
	Cost                              int64                `json:"cost"`
	Prompt                            string               `json:"prompt"`
	IsUserInputRequired               bool                 `json:"is_user_input_required"`
	ShouldRedemptionsSkipRequestQueue bool                 `json:"should_redemptions_skip_request_queue"`
	CooldownExpiresAt                 string               `json:"cooldown_expires_at"`
	RedemptionsRedeemedCurrentStream  int64                `json:"redemptions_redeemed_current_stream"`
	MaxPerStream                      RewardMax            `json:"max_per_stream"`
	MaxPerUserPerStream               RewardMax            `json:"max_per_user_per_stream"`
	GlobalCooldown                    RewardGlobalCooldown `json:"global_cooldown"`
	BackgroundColor                   string               `json:"background_color"`
	Image                             RewardImage          `json:"image"`
	DefaultImage                      RewardImage          `json:"default_image"`
}

type RewardEventSubResponse

type RewardEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        RewardEventSubEvent  `json:"event"`
}

type RewardGlobalCooldown

type RewardGlobalCooldown struct {
	IsEnabled bool  `json:"is_enabled"`
	Seconds   int64 `json:"seconds"`
}

type RewardImage

type RewardImage struct {
	URL1x string `json:"url_1x"`
	URL2x string `json:"url_2x"`
	URL4x string `json:"url_4x"`
}

type RewardMax

type RewardMax struct {
	IsEnabled bool  `json:"is_enabled"`
	Value     int64 `json:"value"`
}

type StreamDownEventSubEvent added in v1.1.2

type StreamDownEventSubEvent struct {
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
}

type StreamDownEventSubResponse added in v1.1.2

type StreamDownEventSubResponse struct {
	Subscription EventsubSubscription  `json:"subscription"`
	Event        StreamUpEventSubEvent `json:"event"`
}

type StreamUpEventSubEvent added in v1.1.2

type StreamUpEventSubEvent struct {
	ID                   string `json:"id"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	Type                 string `json:"type"`
	StartedAt            string `json:"started_at"`
}

type StreamUpEventSubResponse added in v1.1.2

type StreamUpEventSubResponse struct {
	Subscription EventsubSubscription  `json:"subscription"`
	Event        StreamUpEventSubEvent `json:"event"`
}

type SubEventSubEvent

type SubEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	Tier                 string `json:"tier"`
	IsGift               bool   `json:"is_gift"`
}

type SubEventSubResponse

type SubEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        SubEventSubEvent     `json:"event"`
}

type SubscribeMessageEventSubEvent added in v1.1.2

type SubscribeMessageEventSubEvent struct {
	UserID               string                          `json:"user_id"`
	UserLogin            string                          `json:"user_login"`
	UserName             string                          `json:"user_name"`
	BroadcasterUserID    string                          `json:"broadcaster_user_id"`
	BroadcasterUserLogin string                          `json:"broadcaster_user_login"`
	BroadcasterUserName  string                          `json:"broadcaster_user_name"`
	Tier                 string                          `json:"tier"`
	Message              SubscribeMessageEventSubMessage `json:"message"`
	CumulativeMonths     int                             `json:"cumulative_months"`
	StreakMonths         *int                            `json:"streak_months"`
	DurationMonths       int                             `json:"duration_months"`
}

type SubscribeMessageEventSubMessage added in v1.1.2

type SubscribeMessageEventSubMessage struct {
	Text   string                                 `json:"text"`
	Emotes []SubscribeMessageEventSubMessageEmote `json:"emotes"`
}

type SubscribeMessageEventSubMessageEmote added in v1.1.2

type SubscribeMessageEventSubMessageEmote struct {
	Begin int    `json:"begin"`
	End   int    `json:"end"`
	ID    string `json:"id"`
}

type SubscribeMessageEventSubResponse added in v1.1.2

type SubscribeMessageEventSubResponse struct {
	Subscription EventsubSubscription          `json:"subscription"`
	Event        SubscribeMessageEventSubEvent `json:"event"`
}

type TransactionCost

type TransactionCost struct {
	Amount int64  `json:"amount"`
	Type   string `json:"type"`
}

type TransactionEventSubEvent added in v1.1.2

type TransactionEventSubEvent struct {
	ID                   string                     `json:"id"`
	ExtensionClientID    string                     `json:"extension_client_id"`
	BroadcasterUserID    string                     `json:"broadcaster_user_id"`
	BroadcasterUserLogin string                     `json:"broadcaster_user_login"`
	BroadcasterUserName  string                     `json:"broadcaster_user_name"`
	UserName             string                     `json:"user_name"`
	UserLogin            string                     `json:"user_login"`
	UserID               string                     `json:"user_id"`
	Product              TransactionEventSubProduct `json:"product"`
}

type TransactionEventSubProduct added in v1.1.2

type TransactionEventSubProduct struct {
	Name          string `json:"name"`
	Sku           string `json:"sku"`
	Bits          int64  `json:"bits"`
	InDevelopment bool   `json:"in_development"`
}

type TransactionEventSubResponse added in v1.1.2

type TransactionEventSubResponse struct {
	Subscription EventsubSubscription     `json:"subscription"`
	Event        TransactionEventSubEvent `json:"event"`
}

type TransactionProduct

type TransactionProduct struct {
	Sku           string          `json:"sku"`
	Cost          TransactionCost `json:"cost"`
	DisplayName   string          `json:"displayName"`
	InDevelopment bool            `json:"inDevelopment"`
	Broadcast     bool            `json:"broadcast"`
	Domain        string          `json:"domain"`
	Expiration    string          `json:"expiration"`
}

type UserUpdateEventSubEvent added in v1.1.6

type UserUpdateEventSubEvent struct {
	UserID      string `json:"user_id"`
	UserLogin   string `json:"user_login"`
	UserName    string `json:"user_name"`
	Description string `json:"description"`
}

type UserUpdateEventSubResponse added in v1.1.6

type UserUpdateEventSubResponse struct {
	Subscription EventsubSubscription  `json:"subscription"`
	Event        StreamUpEventSubEvent `json:"event"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL