@distilled.cloud/twitch 0.0.0 → 1.0.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +79 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +31 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +49 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +46 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/ads.d.ts +75 -0
- package/lib/services/ads.d.ts.map +1 -0
- package/lib/services/ads.js +2 -0
- package/lib/services/ads.js.map +1 -0
- package/lib/services/analytics.d.ts +90 -0
- package/lib/services/analytics.d.ts.map +1 -0
- package/lib/services/analytics.js +2 -0
- package/lib/services/analytics.js.map +1 -0
- package/lib/services/bits.d.ts +284 -0
- package/lib/services/bits.d.ts.map +1 -0
- package/lib/services/bits.js +2 -0
- package/lib/services/bits.js.map +1 -0
- package/lib/services/ccls.d.ts +26 -0
- package/lib/services/ccls.d.ts.map +1 -0
- package/lib/services/ccls.js +2 -0
- package/lib/services/ccls.js.map +1 -0
- package/lib/services/channel_points.d.ts +416 -0
- package/lib/services/channel_points.d.ts.map +1 -0
- package/lib/services/channel_points.js +2 -0
- package/lib/services/channel_points.js.map +1 -0
- package/lib/services/channels.d.ts +173 -0
- package/lib/services/channels.d.ts.map +1 -0
- package/lib/services/channels.js +2 -0
- package/lib/services/channels.js.map +1 -0
- package/lib/services/charity.d.ts +97 -0
- package/lib/services/charity.d.ts.map +1 -0
- package/lib/services/charity.js +2 -0
- package/lib/services/charity.js.map +1 -0
- package/lib/services/chat.d.ts +638 -0
- package/lib/services/chat.d.ts.map +1 -0
- package/lib/services/chat.js +33 -0
- package/lib/services/chat.js.map +1 -0
- package/lib/services/clips.d.ts +153 -0
- package/lib/services/clips.d.ts.map +1 -0
- package/lib/services/clips.js +2 -0
- package/lib/services/clips.js.map +1 -0
- package/lib/services/conduits.d.ts +172 -0
- package/lib/services/conduits.d.ts.map +1 -0
- package/lib/services/conduits.js +2 -0
- package/lib/services/conduits.js.map +1 -0
- package/lib/services/entitlements.d.ts +76 -0
- package/lib/services/entitlements.d.ts.map +1 -0
- package/lib/services/entitlements.js +2 -0
- package/lib/services/entitlements.js.map +1 -0
- package/lib/services/eventsub.d.ts +158 -0
- package/lib/services/eventsub.d.ts.map +1 -0
- package/lib/services/eventsub.js +2 -0
- package/lib/services/eventsub.js.map +1 -0
- package/lib/services/extensions.d.ts +497 -0
- package/lib/services/extensions.d.ts.map +1 -0
- package/lib/services/extensions.js +2 -0
- package/lib/services/extensions.js.map +1 -0
- package/lib/services/games.d.ts +57 -0
- package/lib/services/games.d.ts.map +1 -0
- package/lib/services/games.js +2 -0
- package/lib/services/games.js.map +1 -0
- package/lib/services/goals.d.ts +37 -0
- package/lib/services/goals.d.ts.map +1 -0
- package/lib/services/goals.js +2 -0
- package/lib/services/goals.js.map +1 -0
- package/lib/services/guest_star.d.ts +314 -0
- package/lib/services/guest_star.d.ts.map +1 -0
- package/lib/services/guest_star.js +2 -0
- package/lib/services/guest_star.js.map +1 -0
- package/lib/services/hype_train.d.ts +91 -0
- package/lib/services/hype_train.d.ts.map +1 -0
- package/lib/services/hype_train.js +2 -0
- package/lib/services/hype_train.js.map +1 -0
- package/lib/services/index.d.ts +30 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +29 -0
- package/lib/services/moderation.d.ts +731 -0
- package/lib/services/moderation.d.ts.map +1 -0
- package/lib/services/moderation.js +41 -0
- package/lib/services/moderation.js.map +1 -0
- package/lib/services/polls.d.ts +173 -0
- package/lib/services/polls.d.ts.map +1 -0
- package/lib/services/polls.js +2 -0
- package/lib/services/polls.js.map +1 -0
- package/lib/services/predictions.d.ts +221 -0
- package/lib/services/predictions.d.ts.map +1 -0
- package/lib/services/predictions.js +2 -0
- package/lib/services/predictions.js.map +1 -0
- package/lib/services/raids.d.ts +34 -0
- package/lib/services/raids.d.ts.map +1 -0
- package/lib/services/raids.js +2 -0
- package/lib/services/raids.js.map +1 -0
- package/lib/services/schedule.d.ts +223 -0
- package/lib/services/schedule.d.ts.map +1 -0
- package/lib/services/schedule.js +2 -0
- package/lib/services/schedule.js.map +1 -0
- package/lib/services/search.d.ts +89 -0
- package/lib/services/search.d.ts.map +1 -0
- package/lib/services/search.js +2 -0
- package/lib/services/search.js.map +1 -0
- package/lib/services/streams.d.ts +235 -0
- package/lib/services/streams.d.ts.map +1 -0
- package/lib/services/streams.js +2 -0
- package/lib/services/streams.js.map +1 -0
- package/lib/services/subscriptions.d.ts +96 -0
- package/lib/services/subscriptions.d.ts.map +1 -0
- package/lib/services/subscriptions.js +2 -0
- package/lib/services/subscriptions.js.map +1 -0
- package/lib/services/teams.d.ts +90 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +2 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/users.d.ts +324 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +2 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/videos.d.ts +101 -0
- package/lib/services/videos.d.ts.map +1 -0
- package/lib/services/videos.js +2 -0
- package/lib/services/videos.js.map +1 -0
- package/lib/services/whispers.d.ts +17 -0
- package/lib/services/whispers.d.ts.map +1 -0
- package/lib/services/whispers.js +2 -0
- package/lib/services/whispers.js.map +1 -0
- package/lib/services.lazy/ads.js +1 -0
- package/lib/services.lazy/analytics.js +1 -0
- package/lib/services.lazy/bits.js +1 -0
- package/lib/services.lazy/ccls.js +1 -0
- package/lib/services.lazy/channel_points.js +1 -0
- package/lib/services.lazy/channels.js +1 -0
- package/lib/services.lazy/charity.js +1 -0
- package/lib/services.lazy/chat.js +3 -0
- package/lib/services.lazy/clips.js +1 -0
- package/lib/services.lazy/conduits.js +1 -0
- package/lib/services.lazy/entitlements.js +1 -0
- package/lib/services.lazy/eventsub.js +1 -0
- package/lib/services.lazy/extensions.js +1 -0
- package/lib/services.lazy/games.js +1 -0
- package/lib/services.lazy/goals.js +1 -0
- package/lib/services.lazy/guest_star.js +1 -0
- package/lib/services.lazy/hype_train.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/moderation.js +3 -0
- package/lib/services.lazy/polls.js +1 -0
- package/lib/services.lazy/predictions.js +1 -0
- package/lib/services.lazy/raids.js +1 -0
- package/lib/services.lazy/schedule.js +1 -0
- package/lib/services.lazy/search.js +1 -0
- package/lib/services.lazy/streams.js +1 -0
- package/lib/services.lazy/subscriptions.js +1 -0
- package/lib/services.lazy/teams.js +1 -0
- package/lib/services.lazy/users.js +1 -0
- package/lib/services.lazy/videos.js +1 -0
- package/lib/services.lazy/whispers.js +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +82 -2
- package/src/credentials.ts +79 -0
- package/src/errors.ts +78 -0
- package/src/index.ts +45 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +43 -0
- package/src/retry.ts +69 -0
- package/src/services/ads.ts +228 -0
- package/src/services/analytics.ts +253 -0
- package/src/services/bits.ts +631 -0
- package/src/services/ccls.ts +96 -0
- package/src/services/channel_points.ts +804 -0
- package/src/services/channels.ts +471 -0
- package/src/services/charity.ts +250 -0
- package/src/services/chat.ts +1547 -0
- package/src/services/clips.ts +385 -0
- package/src/services/conduits.ts +453 -0
- package/src/services/entitlements.ts +219 -0
- package/src/services/eventsub.ts +372 -0
- package/src/services/extensions.ts +1098 -0
- package/src/services/games.ts +184 -0
- package/src/services/goals.ts +110 -0
- package/src/services/guest_star.ts +762 -0
- package/src/services/hype_train.ts +214 -0
- package/src/services/index.ts +30 -0
- package/src/services/moderation.ts +1817 -0
- package/src/services/polls.ts +363 -0
- package/src/services/predictions.ts +432 -0
- package/src/services/raids.ts +127 -0
- package/src/services/schedule.ts +539 -0
- package/src/services/search.ts +248 -0
- package/src/services/streams.ts +579 -0
- package/src/services/subscriptions.ts +247 -0
- package/src/services/teams.ts +225 -0
- package/src/services/users.ts +729 -0
- package/src/services/videos.ts +257 -0
- package/src/services/whispers.ts +71 -0
- package/src/traits.ts +47 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { type TwitchOpError, type TwitchOpContext } from "../protocol.ts";
|
|
3
|
+
export type { TwitchOpError, TwitchOpContext };
|
|
4
|
+
export interface CreateStreamMarkerRequest {
|
|
5
|
+
/** The ID of the broadcaster that's streaming content. This ID must match the user ID in the access token or the user in the access token must be one of the broadcaster's editors. */
|
|
6
|
+
user_id: string;
|
|
7
|
+
/** A short description of the marker to help the user remember why they marked the location. The maximum length of the description is 140 characters. */
|
|
8
|
+
description?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateStreamMarkerResponseDataItem {
|
|
11
|
+
/** An ID that identifies this marker. */
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
/** The UTC date and time (in RFC3339 format) of when the user created the marker. */
|
|
14
|
+
created_at?: string | undefined;
|
|
15
|
+
/** The relative offset (in seconds) of the marker from the beginning of the stream. */
|
|
16
|
+
position_seconds?: number | undefined;
|
|
17
|
+
/** A description that the user gave the marker to help them remember why they marked the location. */
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
/** A list that contains the single marker that you added. */
|
|
21
|
+
export type CreateStreamMarkerResponseDataList = Array<CreateStreamMarkerResponseDataItem>;
|
|
22
|
+
export interface CreateStreamMarkerResponse {
|
|
23
|
+
/** A list that contains the single marker that you added. */
|
|
24
|
+
data?: CreateStreamMarkerResponseDataList | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface GetFollowedStreamsRequest {
|
|
27
|
+
/** The ID of the user whose list of followed streams you want to get. This ID must match the user ID in the access token. */
|
|
28
|
+
user_id: string;
|
|
29
|
+
/** The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 100. */
|
|
30
|
+
first?: number | undefined;
|
|
31
|
+
/** The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor's value. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
32
|
+
after?: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** **IMPORTANT** As of February 28, 2023, this field is deprecated and returns only an empty array. If you use this field, please update your code to use the `tags` field. The list of tags that apply to the stream. The list contains IDs only when the channel is steaming live. For a list of possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). The list doesn't include Category Tags. */
|
|
35
|
+
export type GetFollowedStreamsResponseDataItemTagIdsList = Array<string>;
|
|
36
|
+
/** The tags applied to the stream. Is **null** if the stream has no tags. */
|
|
37
|
+
export type GetFollowedStreamsResponseDataItemTagsList = Array<string>;
|
|
38
|
+
export interface GetFollowedStreamsResponseDataItem {
|
|
39
|
+
/** An ID that identifies the stream. You can use this ID later to look up the video on demand (VOD). */
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
/** The ID of the user that's broadcasting the stream. */
|
|
42
|
+
user_id?: string | undefined;
|
|
43
|
+
/** The user's login name. */
|
|
44
|
+
user_login?: string | undefined;
|
|
45
|
+
/** The user's display name. */
|
|
46
|
+
user_name?: string | undefined;
|
|
47
|
+
/** The ID of the category or game being played. */
|
|
48
|
+
game_id?: string | undefined;
|
|
49
|
+
/** The name of the category or game being played. */
|
|
50
|
+
game_name?: string | undefined;
|
|
51
|
+
/** The type of stream. Possible values: - `live` */
|
|
52
|
+
type?: string | undefined;
|
|
53
|
+
/** The stream's title. Is an empty string if not set. */
|
|
54
|
+
title?: string | undefined;
|
|
55
|
+
/** The number of users watching the stream. */
|
|
56
|
+
viewer_count?: number | undefined;
|
|
57
|
+
/** The UTC date and time (in RFC3339 format) of when the broadcast began. */
|
|
58
|
+
started_at?: string | undefined;
|
|
59
|
+
/** The language that the stream uses. This is an ISO 639-1 two-letter language code or *other* if the stream uses a language not in the list of [supported stream languages](https://help.twitch.tv/s/article/languages-on-twitch#streamlang) */
|
|
60
|
+
language?: string | undefined;
|
|
61
|
+
/** A URL to an image of a frame from the last 5 minutes of the stream. Replace the width and height placeholders in the URL ('{width}x{height}') with the size of the image you want, in pixels. */
|
|
62
|
+
thumbnail_url?: string | undefined;
|
|
63
|
+
/** **IMPORTANT** As of February 28, 2023, this field is deprecated and returns only an empty array. If you use this field, please update your code to use the `tags` field. The list of tags that apply to the stream. The list contains IDs only when the channel is steaming live. For a list of possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). The list doesn't include Category Tags. */
|
|
64
|
+
tag_ids?: GetFollowedStreamsResponseDataItemTagIdsList | undefined;
|
|
65
|
+
/** The tags applied to the stream. Is **null** if the stream has no tags. */
|
|
66
|
+
tags?: GetFollowedStreamsResponseDataItemTagsList | null | undefined;
|
|
67
|
+
/** **IMPORTANT** This field is deprecated and returns only **false**. A Boolean value that indicates whether the stream is meant for mature audiences. */
|
|
68
|
+
is_mature?: boolean | undefined;
|
|
69
|
+
}
|
|
70
|
+
/** The list of live streams of broadcasters that the specified user follows. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it's possible to find duplicate or missing streams in the list as you page through the results. The list is empty if none of the followed broadcasters are streaming live. If the user follows more than 2,000 broadcasters, the list includes only streams from the first 2,000 broadcasters that the user followed. */
|
|
71
|
+
export type GetFollowedStreamsResponseDataList = Array<GetFollowedStreamsResponseDataItem>;
|
|
72
|
+
/** The information used to page through the list of results. The object is empty if the page contains fewer streams than the page size (see *first*). A full page includes a cursor even if no more streams remain, in which case the next page is empty. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
73
|
+
export interface GetFollowedStreamsResponsePagination {
|
|
74
|
+
/** The cursor used to get the next page of results. Set the request's *after* query parameter to this value. */
|
|
75
|
+
cursor?: string | undefined;
|
|
76
|
+
}
|
|
77
|
+
export interface GetFollowedStreamsResponse {
|
|
78
|
+
/** The list of live streams of broadcasters that the specified user follows. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it's possible to find duplicate or missing streams in the list as you page through the results. The list is empty if none of the followed broadcasters are streaming live. If the user follows more than 2,000 broadcasters, the list includes only streams from the first 2,000 broadcasters that the user followed. */
|
|
79
|
+
data: GetFollowedStreamsResponseDataList;
|
|
80
|
+
/** The information used to page through the list of results. The object is empty if the page contains fewer streams than the page size (see *first*). A full page includes a cursor even if no more streams remain, in which case the next page is empty. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
81
|
+
pagination?: GetFollowedStreamsResponsePagination | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface GetStreamKeyRequest {
|
|
84
|
+
/** The ID of the broadcaster that owns the channel. The ID must match the user ID in the access token. */
|
|
85
|
+
broadcaster_id: string;
|
|
86
|
+
}
|
|
87
|
+
export interface GetStreamKeyResponseDataItem {
|
|
88
|
+
/** The channel's stream key. */
|
|
89
|
+
stream_key?: string | undefined;
|
|
90
|
+
}
|
|
91
|
+
/** A list that contains the channel's stream key. */
|
|
92
|
+
export type GetStreamKeyResponseDataList = Array<GetStreamKeyResponseDataItem>;
|
|
93
|
+
export interface GetStreamKeyResponse {
|
|
94
|
+
/** A list that contains the channel's stream key. */
|
|
95
|
+
data?: GetStreamKeyResponseDataList | undefined;
|
|
96
|
+
}
|
|
97
|
+
export interface GetStreamMarkersRequest {
|
|
98
|
+
/** A user ID. The request returns the markers from this user's most recent past broadcast (a video of type *archive*); highlights and uploads aren't considered. This ID must match the user ID in the access token or the user in the access token must be one of the broadcaster's editors. This parameter and the *video_id* query parameter are mutually exclusive. */
|
|
99
|
+
user_id?: string | undefined;
|
|
100
|
+
/** A video on demand (VOD)/video ID. The request returns the markers from this VOD/video. The user in the access token must own the video or the user must be one of the broadcaster's editors. This parameter and the *user_id* query parameter are mutually exclusive. */
|
|
101
|
+
video_id?: string | undefined;
|
|
102
|
+
/** The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. */
|
|
103
|
+
first?: number | undefined;
|
|
104
|
+
/** The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor's value. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
105
|
+
after?: string | undefined;
|
|
106
|
+
}
|
|
107
|
+
export interface GetStreamMarkersResponseDataItemVideosItemMarkersItem {
|
|
108
|
+
/** An ID that identifies this marker. */
|
|
109
|
+
id?: string | undefined;
|
|
110
|
+
/** The UTC date and time (in RFC3339 format) of when the user created the marker. */
|
|
111
|
+
created_at?: string | undefined;
|
|
112
|
+
/** The description that the user gave the marker to help them remember why they marked the location. Is an empty string if the user didn't provide one. */
|
|
113
|
+
description?: string | undefined;
|
|
114
|
+
/** The relative offset (in seconds) of the marker from the beginning of the stream. */
|
|
115
|
+
position_seconds?: number | undefined;
|
|
116
|
+
/** A URL that opens the video in Twitch Highlighter. */
|
|
117
|
+
URL?: string | undefined;
|
|
118
|
+
}
|
|
119
|
+
/** The list of markers in this video. The list is in ascending order by the marker's position in the video (see `position_seconds`). */
|
|
120
|
+
export type GetStreamMarkersResponseDataItemVideosItemMarkersList = Array<GetStreamMarkersResponseDataItemVideosItemMarkersItem>;
|
|
121
|
+
export interface GetStreamMarkersResponseDataItemVideosItem {
|
|
122
|
+
/** An ID that identifies this video. */
|
|
123
|
+
video_id?: string | undefined;
|
|
124
|
+
/** The list of markers in this video. The list is in ascending order by the marker's position in the video (see `position_seconds`). */
|
|
125
|
+
markers?: GetStreamMarkersResponseDataItemVideosItemMarkersList | undefined;
|
|
126
|
+
}
|
|
127
|
+
/** A list of videos that contain markers. The list contains a single video. */
|
|
128
|
+
export type GetStreamMarkersResponseDataItemVideosList = Array<GetStreamMarkersResponseDataItemVideosItem>;
|
|
129
|
+
export interface GetStreamMarkersResponseDataItem {
|
|
130
|
+
/** The ID of the user that created the marker. */
|
|
131
|
+
user_id?: string | undefined;
|
|
132
|
+
/** The user's display name. */
|
|
133
|
+
user_name?: string | undefined;
|
|
134
|
+
/** The user's login name. */
|
|
135
|
+
user_login?: string | undefined;
|
|
136
|
+
/** A list of videos that contain markers. The list contains a single video. */
|
|
137
|
+
videos?: GetStreamMarkersResponseDataItemVideosList | undefined;
|
|
138
|
+
}
|
|
139
|
+
/** The list of markers grouped by the user that created the marks. */
|
|
140
|
+
export type GetStreamMarkersResponseDataList = Array<GetStreamMarkersResponseDataItem>;
|
|
141
|
+
/** The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
142
|
+
export type GetStreamMarkersResponsePagination = GetFollowedStreamsResponsePagination;
|
|
143
|
+
export interface GetStreamMarkersResponse {
|
|
144
|
+
/** The list of markers grouped by the user that created the marks. */
|
|
145
|
+
data: GetStreamMarkersResponseDataList;
|
|
146
|
+
/** The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
147
|
+
pagination?: GetFollowedStreamsResponsePagination | undefined;
|
|
148
|
+
}
|
|
149
|
+
export type GetStreamsRequestUserIdList = Array<string>;
|
|
150
|
+
export type GetStreamsRequestUserLoginList = Array<string>;
|
|
151
|
+
export type GetStreamsRequestGameIdList = Array<string>;
|
|
152
|
+
export type GetStreamsRequestLanguageList = Array<string>;
|
|
153
|
+
export interface GetStreamsRequest {
|
|
154
|
+
/** A user ID used to filter the list of streams. Returns only the streams of those users that are broadcasting. You may specify a maximum of 100 IDs. To specify multiple IDs, include the *user_id* parameter for each user. For example, '&user_id=1234&user_id=5678'. */
|
|
155
|
+
user_id?: GetStreamsRequestUserIdList | undefined;
|
|
156
|
+
/** A user login name used to filter the list of streams. Returns only the streams of those users that are broadcasting. You may specify a maximum of 100 login names. To specify multiple names, include the *user_login* parameter for each user. For example, '&user_login=foo&user_login=bar'. */
|
|
157
|
+
user_login?: GetStreamsRequestUserLoginList | undefined;
|
|
158
|
+
/** A game (category) ID used to filter the list of streams. Returns only the streams that are broadcasting the game (category). You may specify a maximum of 100 IDs. To specify multiple IDs, include the *game_id* parameter for each game. For example, '&game_id=9876&game_id=5432'. */
|
|
159
|
+
game_id?: GetStreamsRequestGameIdList | undefined;
|
|
160
|
+
/** The type of stream to filter the list of streams by. The default is *all*. Both values return only live streams. Possible values: - `all` - `live` */
|
|
161
|
+
type?: string | undefined;
|
|
162
|
+
/** A language code used to filter the list of streams. Returns only streams that broadcast in the specified language. Specify the language using an ISO 639-1 two-letter language code or *other* if the broadcast uses a language not in the list of [supported stream languages](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). You may specify a maximum of 100 language codes. To specify multiple languages, include the *language* parameter for each language. For example, '&language=de&language=fr'. */
|
|
163
|
+
language?: GetStreamsRequestLanguageList | undefined;
|
|
164
|
+
/** The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. If you specify *user_id* or *user_login*, the response contains all of the matching streams, regardless of this value. */
|
|
165
|
+
first?: number | undefined;
|
|
166
|
+
/** The cursor used to get the previous page of results. The **Pagination** object in the response contains the cursor's value. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
167
|
+
before?: string | undefined;
|
|
168
|
+
/** The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor's value. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
169
|
+
after?: string | undefined;
|
|
170
|
+
}
|
|
171
|
+
/** The tags applied to the stream. Is **null** if the stream has no tags. */
|
|
172
|
+
export type GetStreamsResponseDataItemTagsList = Array<string>;
|
|
173
|
+
/** **IMPORTANT** As of February 28, 2023, this field is deprecated and returns only an empty array. If you use this field, please update your code to use the `tags` field. The list of tags that apply to the stream. The list contains IDs only when the channel is steaming live. For a list of possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). The list doesn't include Category Tags. */
|
|
174
|
+
export type GetStreamsResponseDataItemTagIdsList = Array<string>;
|
|
175
|
+
export interface GetStreamsResponseDataItem {
|
|
176
|
+
/** An ID that identifies the stream. You can use this ID later to look up the video on demand (VOD). */
|
|
177
|
+
id?: string | undefined;
|
|
178
|
+
/** The ID of the user that's broadcasting the stream. */
|
|
179
|
+
user_id?: string | undefined;
|
|
180
|
+
/** The user's login name. */
|
|
181
|
+
user_login?: string | undefined;
|
|
182
|
+
/** The user's display name. */
|
|
183
|
+
user_name?: string | undefined;
|
|
184
|
+
/** The ID of the category or game being streamed. If no category is set on the channel, this will be set to an empty string. */
|
|
185
|
+
game_id?: string | undefined;
|
|
186
|
+
/** The name of the category or game being streamed. If no category is set on the channel, this will be set to an empty string. */
|
|
187
|
+
game_name?: string | undefined;
|
|
188
|
+
/** The type of stream. Possible values: - `live` */
|
|
189
|
+
type?: string | undefined;
|
|
190
|
+
/** The stream's title. Is an empty string if not set. */
|
|
191
|
+
title?: string | undefined;
|
|
192
|
+
/** The tags applied to the stream. Is **null** if the stream has no tags. */
|
|
193
|
+
tags?: GetStreamsResponseDataItemTagsList | null | undefined;
|
|
194
|
+
/** The number of users watching the stream. */
|
|
195
|
+
viewer_count?: number | undefined;
|
|
196
|
+
/** The UTC date and time (in RFC3339 format) of when the broadcast began. */
|
|
197
|
+
started_at?: string | undefined;
|
|
198
|
+
/** The language that the stream uses. This is an ISO 639-1 two-letter language code or *other* if the stream uses a language not in the list of [supported stream languages](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). */
|
|
199
|
+
language?: string | undefined;
|
|
200
|
+
/** A URL to an image of a frame from the last 5 minutes of the stream. Replace the width and height placeholders in the URL ('{width}x{height}') with the size of the image you want, in pixels. */
|
|
201
|
+
thumbnail_url?: string | undefined;
|
|
202
|
+
/** **IMPORTANT** As of February 28, 2023, this field is deprecated and returns only an empty array. If you use this field, please update your code to use the `tags` field. The list of tags that apply to the stream. The list contains IDs only when the channel is steaming live. For a list of possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). The list doesn't include Category Tags. */
|
|
203
|
+
tag_ids?: GetStreamsResponseDataItemTagIdsList | undefined;
|
|
204
|
+
/** **IMPORTANT** This field is deprecated and returns only **false**. A Boolean value that indicates whether the stream is meant for mature audiences. */
|
|
205
|
+
is_mature?: boolean | undefined;
|
|
206
|
+
}
|
|
207
|
+
/** The list of streams. Streams that Twitch restricts from discovery aren't included, except the user's own stream if you use a user access token, so a page may contain fewer than *first* items even if more pages remain. */
|
|
208
|
+
export type GetStreamsResponseDataList = Array<GetStreamsResponseDataItem>;
|
|
209
|
+
/** The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
210
|
+
export interface GetStreamsResponsePagination {
|
|
211
|
+
/** The cursor used to get the next page of results. Set the request's *after* or *before* query parameter to this value depending on whether you're paging forwards or backwards. */
|
|
212
|
+
cursor?: string | undefined;
|
|
213
|
+
}
|
|
214
|
+
export interface GetStreamsResponse {
|
|
215
|
+
/** The list of streams. Streams that Twitch restricts from discovery aren't included, except the user's own stream if you use a user access token, so a page may contain fewer than *first* items even if more pages remain. */
|
|
216
|
+
data: GetStreamsResponseDataList;
|
|
217
|
+
/** The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
218
|
+
pagination?: GetStreamsResponsePagination | undefined;
|
|
219
|
+
}
|
|
220
|
+
export type CreateStreamMarkerError = TwitchOpError;
|
|
221
|
+
/** Create Stream Marker Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights. For more information on these features, see [Creating Highlights and Stream Markers](https://help.twitch.tv/s/article/creating-highlights-and-stream-markers). You may not add markers: - If the stream is not live. - If the stream has not enabled video on demand (VOD). - If the stream is a rerun of a past broadcast. - If the stream is a premiere. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:manage:broadcast** or **user:edit:broadcast** scope. Reference: https://dev.twitch.tv/docs/api/reference/streams/#create-stream-marker */
|
|
222
|
+
export declare const createStreamMarker: API.OperationMethod<CreateStreamMarkerRequest, CreateStreamMarkerResponse, CreateStreamMarkerError, TwitchOpContext>;
|
|
223
|
+
export type GetFollowedStreamsError = TwitchOpError;
|
|
224
|
+
/** Get Followed Streams Gets the list of broadcasters that the user follows and that are streaming live. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **user:read:follows** scope. Reference: https://dev.twitch.tv/docs/api/reference/streams/#get-followed-streams */
|
|
225
|
+
export declare const getFollowedStreams: API.PaginatedOperationMethod<GetFollowedStreamsRequest, GetFollowedStreamsResponse, GetFollowedStreamsError, TwitchOpContext, GetFollowedStreamsResponseDataItem>;
|
|
226
|
+
export type GetStreamKeyError = TwitchOpError;
|
|
227
|
+
/** Get Stream Key Gets the channel's stream key. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:read:stream_key** scope. Reference: https://dev.twitch.tv/docs/api/reference/streams/#get-stream-key */
|
|
228
|
+
export declare const getStreamKey: API.OperationMethod<GetStreamKeyRequest, GetStreamKeyResponse, GetStreamKeyError, TwitchOpContext>;
|
|
229
|
+
export type GetStreamMarkersError = TwitchOpError;
|
|
230
|
+
/** Get Stream Markers Gets a list of markers from the user's most recent stream or from the specified VOD/video. A marker is an arbitrary point in a live stream that the broadcaster or editor marked, so they can return to that spot later to create video highlights. For more information on these features, see [Creating Highlights and Stream Markers](https://help.twitch.tv/s/article/creating-highlights-and-stream-markers). You must specify exactly one of the *user_id* and *video_id* query parameters; the request fails if you specify none of them or more than one. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **user:read:broadcast** or **channel:manage:broadcast** scope. Reference: https://dev.twitch.tv/docs/api/reference/streams/#get-stream-markers */
|
|
231
|
+
export declare const getStreamMarkers: API.PaginatedOperationMethod<GetStreamMarkersRequest, GetStreamMarkersResponse, GetStreamMarkersError, TwitchOpContext, GetStreamMarkersResponseDataItem>;
|
|
232
|
+
export type GetStreamsError = TwitchOpError;
|
|
233
|
+
/** Get Streams Gets a list of all streams. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it's possible to find duplicate or missing streams in the list as you page through the results. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens). - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/streams/#get-streams */
|
|
234
|
+
export declare const getStreams: API.PaginatedOperationMethod<GetStreamsRequest, GetStreamsResponse, GetStreamsError, TwitchOpContext, GetStreamsResponseDataItem>;
|
|
235
|
+
//# sourceMappingURL=streams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streams.d.ts","sources":["../../src/services/streams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAM1F,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAc/C,MAAM,WAAW,yBAAyB;IACxC,uLAAuL;IACvL,OAAO,EAAE,MAAM,CAAC;IAChB,yJAAyJ;IACzJ,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,kCAAkC;IACjD,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,GAAG,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AAE,0BAA0B,CAAC;IACjC,qMAAqM;IACrM,UAAU,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CACvD;AACD,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC;AACpD,g2BAAg2B;AACh2B,eAAO,MAAM,kBAAkB,EAAE,GAAG,CAAC,eAAe,CAClD,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC;AACpD,oXAAoX;AACpX,eAAO,MAAM,kBAAkB,EAAE,GAAG,CAAC,wBAAwB,CAC3D,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,kCAAkC,CAoB5B,CAAC;AAET,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAC9C,4TAA4T;AAC5T,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAClD,m2BAAm2B;AACn2B,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,wBAAwB,CACzD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,gCAAgC,CAoB1B,CAAC;AAET,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC;AAC5C,mjBAAmjB;AACnjB,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,wBAAwB,CACnD,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,0BAA0B,CAoBpB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Fc as e,Gc as t,Jc as n,Kc as r,Rc as i,Wc as a,Xc as o,a as s,b as c,errors$TwitchServiceErrors as l,l as u,n as d,o as f,pagination$paginateCursor as p,protocol$TwitchProtocol as m,retry$Retry as h,traits$Http as g,traits$Query as _,wc as v,xc as y}from"../_bundle/sdk.js";const b={system:`twitch-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Twitch`,service:`Streams`,propagate:`w3c`};const x=/*@__PURE__*/ d(e=>e===s?u(`CreateStreamMarker`,`{input:#1,output:#4,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$7(#2);$5(>7)@"%Response";$4({user_id:$2,description:$3($2)}).pipe($1({method:"POST",uri:"/streams/markers",code:200}));$4({id:$3($2),created_at:$3($2),position_seconds:$3($6),description:$3($2)});$4({data:$3(#3)})`,[i,g,n,a,r,o,t,v,l,m,h,b]):c(x,e));const S=/*@__PURE__*/ f(d=>d===s?u(`GetFollowedStreams`,`{input:#1,output:#4,errors:[],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$17};$7(>5)@"%Request";$7(>6)@"%ResponseDataItem";$11(#2);$7(>7)@"%Response";$6({user_id:$3.pipe($2()),first:$5($4.pipe($2())),after:$5($3.pipe($2()))}).pipe($1({method:"GET",uri:"/streams/followed",code:200}));$6({id:$5($3),user_id:$5($3),user_login:$5($3),user_name:$5($3),game_id:$5($3),game_name:$5($3),type:$5($3),title:$5($3),viewer_count:$5($4),started_at:$5($3),language:$5($3),thumbnail_url:$5($3),tag_ids:$5(#8:0),tags:$5($9(#8:0)),is_mature:$5($10)});$6({data:#3,pagination:$5(#12:0)})`,[i,g,_,n,t,a,r,o,__d1,e,y,v,__d0,l,m,h,b,p]):c(S,d));const C=/*@__PURE__*/ d(e=>e===s?u(`GetStreamKey`,`{input:#1,output:#4,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$7(#2);$5(>7)@"%Response";$4({broadcaster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/streams/key",code:200}));$4({stream_key:$6($3)});$4({data:$6(#3)})`,[i,g,_,n,r,o,a,v,l,m,h,b]):c(C,e));const w=/*@__PURE__*/ f(e=>e===s?u(`GetStreamMarkers`,`{input:#1,output:#8,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$14};$7(>9)@"%Request";$7(>10)@"%ResponseDataItemVideosItemMarkersItem";$8(#2);$7(>11)@"%ResponseDataItemVideosItem";$8(#4);$7(>12)@"%ResponseDataItem";$8(#6);$7(>13)@"%Response";$6({user_id:$4($3.pipe($2())),video_id:$4($3.pipe($2())),first:$4($5.pipe($2())),after:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/streams/markers",code:200}));$6({id:$4($3),created_at:$4($3),description:$4($3),position_seconds:$4($5),URL:$4($3)});$6({video_id:$4($3),markers:$4(#3)});$6({user_id:$4($3),user_name:$4($3),user_login:$4($3),videos:$4(#5)});$6({data:#7,pagination:$4(#9:0)})`,[i,g,_,n,a,t,r,o,v,__d0,l,m,h,b,p]):c(w,e));const T=/*@__PURE__*/ f(d=>d===s?u(`GetStreams`,`{input:#1,output:#4,errors:[],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$17};$8(>5)@"%Request";$8(>6)@"%ResponseDataItem";$11(#2);$8(>7)@"%Response";$7({user_id:$4(#3:0.pipe($2())),user_login:$4(#3:0.pipe($2())),game_id:$4(#3:0.pipe($2())),type:$4($5.pipe($2())),language:$4(#3:0.pipe($2())),first:$4($6.pipe($2())),before:$4($5.pipe($2())),after:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/streams",code:200}));$7({id:$4($5),user_id:$4($5),user_login:$4($5),user_name:$4($5),game_id:$4($5),game_name:$4($5),type:$4($5),title:$4($5),tags:$4($9(#3:0)),viewer_count:$4($6),started_at:$4($5),language:$4($5),thumbnail_url:$4($5),tag_ids:$4(#3:0),is_mature:$4($10)});$7({data:#3,pagination:$4(#12:0)})`,[i,g,_,__d1,a,n,t,r,o,e,y,v,__d0,l,m,h,b,p]):c(T,d));function __d0(){return[`$4(>1)@"GetFollowedStreamsResponsePagination";$3({cursor:$2($1)})`,[i,n,a,r,o]]}function __d1(){return[`$2($1)`,[i,n,v]]}export{x as createStreamMarker,S as getFollowedStreams,C as getStreamKey,w as getStreamMarkers,T as getStreams};
|
|
2
|
+
//# sourceMappingURL=streams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streams.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Number","S.Array","Retry.Retry","API.call","T.Query","S.NullOr","S.Boolean","NullOr","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","named","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","Boolean","TELEMETRY","createStreamMarker","i","getFollowedStreams","getStreamKey","getStreamMarkers","getStreams"],"sources":["../../src/services/streams.ts"],"mappings":"0RAaA,MAAMmC,EAAY,CAChB,OAAQ,aACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,SACR,QAAS,UACT,UAAW,KACb,EA8NA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMrC,EAAQC,EAAU,qBAAsB,mWAAoW,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAWC,EAAUC,EAASe,EAAqBK,EAAgBnB,EAAayB,CAAS,CAAC,EAAIxB,EAASyB,EAAoBC,CAAC,CAAC,EAI1mB,MAAaC,EAMK,gBAAiB,GAAgBD,IAAMrC,EAAQC,EAAU,qBAAsB,ssBAAusB,CAACC,EAAQC,EAAQS,EAASR,EAAUI,EAAUH,EAAYC,EAAUC,EAAW,KAAMM,EAAUC,EAAWL,EAAS,KAAMe,EAAqBK,EAAgBnB,EAAayB,EAAWP,CAAc,CAAC,EAAIjB,EAAS2B,EAAoBD,CAAC,CAAC,EAIhhC,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMrC,EAAQC,EAAU,eAAgB,wSAAyS,CAACC,EAAQC,EAAQS,EAASR,EAAUE,EAAUC,EAAWF,EAAYI,EAASe,EAAqBK,EAAgBnB,EAAayB,CAAS,CAAC,EAAIxB,EAAS4B,EAAcF,CAAC,CAAC,EAIliB,MAAaG,EAMK,gBAAiB,GAAgBH,IAAMrC,EAAQC,EAAU,mBAAoB,ixBAAkxB,CAACC,EAAQC,EAAQS,EAASR,EAAUC,EAAYG,EAAUF,EAAUC,EAAWE,EAAS,KAAMe,EAAqBK,EAAgBnB,EAAayB,EAAWP,CAAc,CAAC,EAAIjB,EAAS6B,EAAkBH,CAAC,CAAC,EAI5jC,MAAaI,EAMK,gBAAiB,GAAgBJ,IAAMrC,EAAQC,EAAU,aAAc,20BAA40B,CAACC,EAAQC,EAAQS,EAAS,KAAMP,EAAYD,EAAUI,EAAUF,EAAUC,EAAWM,EAAUC,EAAWL,EAAS,KAAMe,EAAqBK,EAAgBnB,EAAayB,EAAWP,CAAc,CAAC,EAAIjB,EAAS8B,EAAYJ,CAAC,CAAC,EAMroC,SAAS,MAAY,CACnB,MAAO,CAAC,oEAAqE,CAACnC,EAAQE,EAAUC,EAAYC,EAAUC,CAAS,CAAC,CAClI,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,SAAU,CAACL,EAAQE,EAAUK,CAAO,CAAC,CAC/C"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { type TwitchOpError, type TwitchOpContext } from "../protocol.ts";
|
|
3
|
+
export type { TwitchOpError, TwitchOpContext };
|
|
4
|
+
export interface CheckUserSubscriptionRequest {
|
|
5
|
+
/** The ID of a partner or affiliate broadcaster. */
|
|
6
|
+
broadcaster_id: string;
|
|
7
|
+
/** The ID of the user that you're checking to see whether they subscribe to the broadcaster in *broadcaster_id*. If you use a user access token, this ID must match the user ID in the token. */
|
|
8
|
+
user_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CheckUserSubscriptionResponseDataItem {
|
|
11
|
+
/** An ID that identifies the broadcaster. */
|
|
12
|
+
broadcaster_id?: string | undefined;
|
|
13
|
+
/** The broadcaster's login name. */
|
|
14
|
+
broadcaster_login?: string | undefined;
|
|
15
|
+
/** The broadcaster's display name. */
|
|
16
|
+
broadcaster_name?: string | undefined;
|
|
17
|
+
/** The ID of the user that gifted the subscription. The object includes this field only if `is_gift` is **true**. For an anonymous gift, the ID is 274598607, which identifies the ananonymousgifter account. */
|
|
18
|
+
gifter_id?: string | undefined;
|
|
19
|
+
/** The gifter's login name. The object includes this field only if `is_gift` is **true**. */
|
|
20
|
+
gifter_login?: string | undefined;
|
|
21
|
+
/** The gifter's display name. The object includes this field only if `is_gift` is **true**. */
|
|
22
|
+
gifter_name?: string | undefined;
|
|
23
|
+
/** A Boolean value that determines whether the subscription is a gift subscription. Is **true** if the subscription was gifted. */
|
|
24
|
+
is_gift?: boolean | undefined;
|
|
25
|
+
/** The type of subscription. Possible values: - `1000`: Tier 1 - `2000`: Tier 2 - `3000`: Tier 3 */
|
|
26
|
+
tier?: string | undefined;
|
|
27
|
+
}
|
|
28
|
+
/** A list that contains a single object with information about the user's subscription. */
|
|
29
|
+
export type CheckUserSubscriptionResponseDataList = Array<CheckUserSubscriptionResponseDataItem>;
|
|
30
|
+
export interface CheckUserSubscriptionResponse {
|
|
31
|
+
/** A list that contains a single object with information about the user's subscription. */
|
|
32
|
+
data?: CheckUserSubscriptionResponseDataList | undefined;
|
|
33
|
+
}
|
|
34
|
+
export type GetBroadcasterSubscriptionsRequestUserIdList = Array<string>;
|
|
35
|
+
export interface GetBroadcasterSubscriptionsRequest {
|
|
36
|
+
/** The broadcaster's ID. This ID must match the user ID in the access token. */
|
|
37
|
+
broadcaster_id: string;
|
|
38
|
+
/** Filters the list to include only the specified subscribers. To specify more than one subscriber, include this parameter for each subscriber. For example, '&user_id=1234&user_id=5678'. You may specify a maximum of 100 subscribers. */
|
|
39
|
+
user_id?: GetBroadcasterSubscriptionsRequestUserIdList | undefined;
|
|
40
|
+
/** The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. */
|
|
41
|
+
first?: number | undefined;
|
|
42
|
+
/** The cursor used to get the next page of results. Do not specify if you set the *user_id* query parameter. The **Pagination** object in the response contains the cursor's value. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
43
|
+
after?: string | undefined;
|
|
44
|
+
/** The cursor used to get the previous page of results. Do not specify if you set the *user_id* query parameter. The **Pagination** object in the response contains the cursor's value. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
45
|
+
before?: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface GetBroadcasterSubscriptionsResponseDataItem {
|
|
48
|
+
/** An ID that identifies the broadcaster. */
|
|
49
|
+
broadcaster_id?: string | undefined;
|
|
50
|
+
/** The broadcaster's login name. */
|
|
51
|
+
broadcaster_login?: string | undefined;
|
|
52
|
+
/** The broadcaster's display name. */
|
|
53
|
+
broadcaster_name?: string | undefined;
|
|
54
|
+
/** The ID of the user that gifted the subscription to the user. Is an empty string if `is_gift` is **false**. For an anonymous gift, the ID is 274598607, which identifies the ananonymousgifter account. */
|
|
55
|
+
gifter_id?: string | undefined;
|
|
56
|
+
/** The gifter's login name. Is an empty string if `is_gift` is **false**. */
|
|
57
|
+
gifter_login?: string | undefined;
|
|
58
|
+
/** The gifter's display name. Is an empty string if `is_gift` is **false**. */
|
|
59
|
+
gifter_name?: string | undefined;
|
|
60
|
+
/** A Boolean value that determines whether the subscription is a gift subscription. Is **true** if the subscription was gifted. */
|
|
61
|
+
is_gift?: boolean | undefined;
|
|
62
|
+
/** The name of the subscription. */
|
|
63
|
+
plan_name?: string | undefined;
|
|
64
|
+
/** The type of subscription. Possible values: - `1000`: Tier 1 - `2000`: Tier 2 - `3000`: Tier 3 */
|
|
65
|
+
tier?: string | undefined;
|
|
66
|
+
/** An ID that identifies the subscribing user. */
|
|
67
|
+
user_id?: string | undefined;
|
|
68
|
+
/** The user's display name. */
|
|
69
|
+
user_name?: string | undefined;
|
|
70
|
+
/** The user's login name. */
|
|
71
|
+
user_login?: string | undefined;
|
|
72
|
+
}
|
|
73
|
+
/** The list of users that subscribe to the broadcaster. The list is empty if the broadcaster has no subscribers. Some subscriptions aren't included, such as those from users whose accounts no longer exist, so a page may contain fewer than *first* items, or none, and still contain a cursor. */
|
|
74
|
+
export type GetBroadcasterSubscriptionsResponseDataList = Array<GetBroadcasterSubscriptionsResponseDataItem>;
|
|
75
|
+
/** Contains the information used to page through the list of results. The object contains a cursor even on the last page of subscriptions; using that cursor returns no subscriptions and an empty object. The response doesn't include this object if you specify the *user_id* query parameter. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
76
|
+
export interface GetBroadcasterSubscriptionsResponsePagination {
|
|
77
|
+
/** The cursor used to get the next or previous page of results. Use the cursor to set the request's *after* or *before* query parameter depending on whether you're paging forwards or backwards. */
|
|
78
|
+
cursor?: string | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface GetBroadcasterSubscriptionsResponse {
|
|
81
|
+
/** The list of users that subscribe to the broadcaster. The list is empty if the broadcaster has no subscribers. Some subscriptions aren't included, such as those from users whose accounts no longer exist, so a page may contain fewer than *first* items, or none, and still contain a cursor. */
|
|
82
|
+
data: GetBroadcasterSubscriptionsResponseDataList;
|
|
83
|
+
/** Contains the information used to page through the list of results. The object contains a cursor even on the last page of subscriptions; using that cursor returns no subscriptions and an empty object. The response doesn't include this object if you specify the *user_id* query parameter. [Read More](https://dev.twitch.tv/docs/api/guide.md#pagination) */
|
|
84
|
+
pagination?: GetBroadcasterSubscriptionsResponsePagination | undefined;
|
|
85
|
+
/** The current number of subscriber points earned by this broadcaster. Points are based on the subscription tier of each user that subscribes to this broadcaster. For example, a Tier 1 subscription is worth 1 point, Tier 2 is worth 2 points, and Tier 3 is worth 6 points. The number of points determines the number of emote slots that are unlocked for the broadcaster (see [Subscriber Emote Slots](https://help.twitch.tv/s/article/subscriber-emote-guide#emoteslots)). The response doesn't include this field if you specify the *user_id* query parameter. */
|
|
86
|
+
points?: number | undefined;
|
|
87
|
+
/** The total number of users that subscribe to this broadcaster. The response doesn't include this field if you specify the *user_id* query parameter. */
|
|
88
|
+
total?: number | undefined;
|
|
89
|
+
}
|
|
90
|
+
export type CheckUserSubscriptionError = TwitchOpError;
|
|
91
|
+
/** Check User Subscription Checks whether the user subscribes to the broadcaster's channel. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **user:read:subscriptions** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). The application, through prior authorization, must have been granted: - The **user:read:subscriptions** scope for the user represented by the *user_id* query parameter. Reference: https://dev.twitch.tv/docs/api/reference/subscriptions/#check-user-subscription */
|
|
92
|
+
export declare const checkUserSubscription: API.OperationMethod<CheckUserSubscriptionRequest, CheckUserSubscriptionResponse, CheckUserSubscriptionError, TwitchOpContext>;
|
|
93
|
+
export type GetBroadcasterSubscriptionsError = TwitchOpError;
|
|
94
|
+
/** Get Broadcaster Subscriptions Gets a list of users that subscribe to the specified broadcaster. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens) that includes the **channel:read:subscriptions** scope. - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Only accessible to Twitch Extensions. The broadcaster must have granted the **channel:read:subscriptions** scope from within the Twitch Extensions manager. Reference: https://dev.twitch.tv/docs/api/reference/subscriptions/#get-broadcaster-subscriptions */
|
|
95
|
+
export declare const getBroadcasterSubscriptions: API.PaginatedOperationMethod<GetBroadcasterSubscriptionsRequest, GetBroadcasterSubscriptionsResponse, GetBroadcasterSubscriptionsError, TwitchOpContext, GetBroadcasterSubscriptionsResponseDataItem>;
|
|
96
|
+
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sources":["../../src/services/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAM1F,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAc/C,MAAM,WAAW,4BAA4B;IAC3C,oDAAoD;IACpD,cAAc,EAAE,MAAM,CAAC;IACvB,iMAAiM;IACjM,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,qCAAqC;IACpD,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,iNAAiN;IACjN,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,6FAA6F;IAC7F,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,mIAAmI;IACnI,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,oGAAoG;IACpG,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AACD,2FAA2F;AAC3F,MAAM,MAAM,qCAAqC,GAAG,KAAK,CAAC,qCAAqC,CAAC,CAAC;AACjG,MAAM,WAAW,6BAA6B;IAC5C,2FAA2F;IA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GAAG,SAAS,CAAC;CACjC;AACD,sSAAsS;AACtS,MAAM,MAAM,2CAA2C,GACrD,KAAK,CAAC,2CAA2C,CAAC,CAAC;AACrD,qWAAqW;AACrW,MAAM,WAAW,6CAA6C;IAC5D,qMAAqM;IACrM,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AACD,MAAM,WAAW,mCAAmC;IAClD,sSAAsS;IACtS,IAAI,EAAE,2CAA2C,CAAC;IAClD,qWAAqW;IACrW,UAAU,CAAC,EAAE,6CAA6C,GAAG,SAAS,CAAC;IACvE,6iBAA6iB;IAC7iB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,0JAA0J;IAC1J,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AACD,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC;AACvD,wnBAAwnB;AACxnB,eAAO,MAAM,qBAAqB,EAAE,GAAG,CAAC,eAAe,CACrD,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,gCAAgC,GAAG,aAAa,CAAC;AAC7D,2nBAA2nB;AAC3nB,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,wBAAwB,CACpE,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,eAAe,EACf,2CAA2C,CAoBrC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Gc as e,Jc as t,Kc as n,Rc as r,Wc as i,Xc as a,a as o,b as s,errors$TwitchServiceErrors as c,l,n as u,o as d,pagination$paginateCursor as f,protocol$TwitchProtocol as p,retry$Retry as m,traits$Http as h,traits$Query as g,wc as _,xc as v}from"../_bundle/sdk.js";const y={system:`twitch-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Twitch`,service:`Subscriptions`,propagate:`w3c`};const b=/*@__PURE__*/ u(e=>e===o?l(`CheckUserSubscription`,`{input:#1,output:#4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$8(#2);$5(>7)@"%Response";$4({broadcaster_id:$3.pipe($2()),user_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/subscriptions/user",code:200}));$4({broadcaster_id:$6($3),broadcaster_login:$6($3),broadcaster_name:$6($3),gifter_id:$6($3),gifter_login:$6($3),gifter_name:$6($3),is_gift:$6($7),tier:$6($3)});$4({data:$6(#3)})`,[r,h,g,t,n,a,i,v,_,c,p,m,y]):s(b,e));const x=/*@__PURE__*/ d(u=>u===o?l(`GetBroadcasterSubscriptions`,`{input:#2,output:#6,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"after",outputToken:"pagination.cursor",items:"data",pageSize:"first"},strategy:$14};$2($1);$8(>7)@"%Request";$8(>8)@"%ResponseDataItem";$2(#3);$8(>9)@"%ResponsePagination";$8(>10)@"%Response";$7({broadcaster_id:$1.pipe($4()),user_id:$5(#1.pipe($4())),first:$5($6.pipe($4())),after:$5($1.pipe($4())),before:$5($1.pipe($4()))}).pipe($3({method:"GET",uri:"/subscriptions",code:200}));$7({broadcaster_id:$5($1),broadcaster_login:$5($1),broadcaster_name:$5($1),gifter_id:$5($1),gifter_login:$5($1),gifter_name:$5($1),is_gift:$5($9),plan_name:$5($1),tier:$5($1),user_id:$5($1),user_name:$5($1),user_login:$5($1)});$7({cursor:$5($1)});$7({data:#4,pagination:$5(#5),points:$5($6),total:$5($6)})`,[r,t,_,h,g,i,e,n,a,v,c,p,m,y,f]):s(x,u));export{b as checkUserSubscription,x as getBroadcasterSubscriptions};
|
|
2
|
+
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.Struct","S.suspend","S.optional","S.Boolean","S.Array","Retry.Retry","API.call","S.Number","Number","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","op","opPaginated","paginateCursor","TwitchProtocol","Retry","Http","Query","Array","Boolean","TELEMETRY","checkUserSubscription","i","named","getBroadcasterSubscriptions"],"sources":["../../src/services/subscriptions.ts"],"mappings":"6QAaA,MAAMgC,EAAY,CAChB,OAAQ,aACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,SACR,QAAS,gBACT,UAAW,KACb,EA2FA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMlC,EAAQC,EAAU,wBAAyB,8cAA+c,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAWC,EAAYC,EAAWC,EAASY,EAAqBI,EAAgBf,EAAaqB,CAAS,CAAC,EAAIpB,EAASqB,EAAuBC,CAAC,CAAC,EAIruB,MAAaE,EAMK,gBAAiB,GAAgBF,IAAMlC,EAAQC,EAAU,8BAA+B,qzBAAszB,CAACC,EAAQG,EAAUK,EAASP,EAAQC,EAASI,EAAYK,EAAUP,EAAUC,EAAWE,EAAWa,EAAqBI,EAAgBf,EAAaqB,EAAWP,CAAc,CAAC,EAAIb,EAASwB,EAA6BF,CAAC,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { type TwitchOpError, type TwitchOpContext } from "../protocol.ts";
|
|
3
|
+
export type { TwitchOpError, TwitchOpContext };
|
|
4
|
+
export interface GetChannelTeamsRequest {
|
|
5
|
+
/** The ID of the broadcaster whose teams you want to get. */
|
|
6
|
+
broadcaster_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetChannelTeamsResponseDataItem {
|
|
9
|
+
/** An ID that identifies the broadcaster. */
|
|
10
|
+
broadcaster_id?: string | undefined;
|
|
11
|
+
/** The broadcaster's login name. */
|
|
12
|
+
broadcaster_login?: string | undefined;
|
|
13
|
+
/** The broadcaster's display name. */
|
|
14
|
+
broadcaster_name?: string | undefined;
|
|
15
|
+
/** A URL to the team's background image. This field is **null** if the team does not have a background image set. */
|
|
16
|
+
background_image_url?: string | null | undefined;
|
|
17
|
+
/** A URL to the team's banner. This field is **null** if the team does not have a banner set. */
|
|
18
|
+
banner?: string | null | undefined;
|
|
19
|
+
/** The UTC date and time (in RFC3339 format) of when the team was created. */
|
|
20
|
+
created_at?: string | null | undefined;
|
|
21
|
+
/** The UTC date and time (in RFC3339 format) of the last time the team was updated. */
|
|
22
|
+
updated_at?: string | null | undefined;
|
|
23
|
+
/** The team's description. The description may contain formatting such as Markdown, HTML, newline (\n) characters, etc. */
|
|
24
|
+
info?: string | undefined;
|
|
25
|
+
/** A URL to a thumbnail image of the team's logo. This field is **null** if the team does not have a logo set. */
|
|
26
|
+
thumbnail_url?: string | null | undefined;
|
|
27
|
+
/** The team's name. */
|
|
28
|
+
team_name?: string | undefined;
|
|
29
|
+
/** The team's display name. */
|
|
30
|
+
team_display_name?: string | undefined;
|
|
31
|
+
/** An ID that identifies the team. */
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** The list of teams that the broadcaster is a member of. Returns an empty array if the broadcaster is not a member of a team. */
|
|
35
|
+
export type GetChannelTeamsResponseDataList = Array<GetChannelTeamsResponseDataItem>;
|
|
36
|
+
export interface GetChannelTeamsResponse {
|
|
37
|
+
/** The list of teams that the broadcaster is a member of. Returns an empty array if the broadcaster is not a member of a team. */
|
|
38
|
+
data?: GetChannelTeamsResponseDataList | undefined;
|
|
39
|
+
}
|
|
40
|
+
export interface GetTeamsRequest {
|
|
41
|
+
/** The name of the team to get. This parameter and the *id* parameter are mutually exclusive; you must specify the team's name or ID but not both. */
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
/** The ID of the team to get. This parameter and the *name* parameter are mutually exclusive; you must specify the team's name or ID but not both. */
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface GetTeamsResponseDataItemUsersItem {
|
|
47
|
+
/** An ID that identifies the team member. */
|
|
48
|
+
user_id?: string | undefined;
|
|
49
|
+
/** The team member's login name. */
|
|
50
|
+
user_login?: string | undefined;
|
|
51
|
+
/** The team member's display name. */
|
|
52
|
+
user_name?: string | undefined;
|
|
53
|
+
}
|
|
54
|
+
/** The list of team members. This field is omitted if the team has no members. */
|
|
55
|
+
export type GetTeamsResponseDataItemUsersList = Array<GetTeamsResponseDataItemUsersItem>;
|
|
56
|
+
export interface GetTeamsResponseDataItem {
|
|
57
|
+
/** The list of team members. This field is omitted if the team has no members. */
|
|
58
|
+
users?: GetTeamsResponseDataItemUsersList | undefined;
|
|
59
|
+
/** A URL to the team's background image. This field is **null** if the team does not have a background image set. */
|
|
60
|
+
background_image_url?: string | null | undefined;
|
|
61
|
+
/** A URL to the team's banner. This field is **null** if the team does not have a banner image set. */
|
|
62
|
+
banner?: string | null | undefined;
|
|
63
|
+
/** The UTC date and time (in RFC3339 format) of when the team was created. */
|
|
64
|
+
created_at?: string | null | undefined;
|
|
65
|
+
/** The UTC date and time (in RFC3339 format) of the last time the team was updated. */
|
|
66
|
+
updated_at?: string | null | undefined;
|
|
67
|
+
/** The team's description. The description may contain formatting such as Markdown, HTML, newline (\n) characters, etc. */
|
|
68
|
+
info?: string | undefined;
|
|
69
|
+
/** A URL to a thumbnail image of the team's logo. This field is **null** if the team does not have a logo set. */
|
|
70
|
+
thumbnail_url?: string | null | undefined;
|
|
71
|
+
/** The team's name. */
|
|
72
|
+
team_name?: string | undefined;
|
|
73
|
+
/** The team's display name. */
|
|
74
|
+
team_display_name?: string | undefined;
|
|
75
|
+
/** An ID that identifies the team. */
|
|
76
|
+
id?: string | undefined;
|
|
77
|
+
}
|
|
78
|
+
/** A list that contains the single team that you requested. */
|
|
79
|
+
export type GetTeamsResponseDataList = Array<GetTeamsResponseDataItem>;
|
|
80
|
+
export interface GetTeamsResponse {
|
|
81
|
+
/** A list that contains the single team that you requested. */
|
|
82
|
+
data?: GetTeamsResponseDataList | undefined;
|
|
83
|
+
}
|
|
84
|
+
export type GetChannelTeamsError = TwitchOpError;
|
|
85
|
+
/** Get Channel Teams Gets the list of Twitch teams that the broadcaster is a member of. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens). - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/teams/#get-channel-teams */
|
|
86
|
+
export declare const getChannelTeams: API.OperationMethod<GetChannelTeamsRequest, GetChannelTeamsResponse, GetChannelTeamsError, TwitchOpContext>;
|
|
87
|
+
export type GetTeamsError = TwitchOpError;
|
|
88
|
+
/** Get Teams Gets information about the specified Twitch team. [Read More](https://help.twitch.tv/s/article/twitch-teams) You must specify exactly one of the *name* and *id* query parameters; the request fails if you specify none of them or more than one. Authorization: Requires one of the following: - A [user access token](https://dev.twitch.tv/docs/authentication.md#user-access-tokens). - An [app access token](https://dev.twitch.tv/docs/authentication.md#app-access-tokens). Reference: https://dev.twitch.tv/docs/api/reference/teams/#get-teams */
|
|
89
|
+
export declare const getTeams: API.OperationMethod<GetTeamsRequest, GetTeamsResponse, GetTeamsError, TwitchOpContext>;
|
|
90
|
+
//# sourceMappingURL=teams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sources":["../../src/services/teams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAM1F,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAc/C,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAA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Y,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,CAUd,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAC1C,yiBAAyiB;AACziB,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,eAAe,CAUd,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Fc as e,Jc as t,Kc as n,Rc as r,Wc as i,Xc as a,a as o,b as s,errors$TwitchServiceErrors as c,l,n as u,protocol$TwitchProtocol as d,retry$Retry as f,traits$Http as p,traits$Query as m,wc as h}from"../_bundle/sdk.js";const g={system:`twitch-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Twitch`,service:`Teams`,propagate:`w3c`};const _=/*@__PURE__*/ u(u=>u===o?l(`GetChannelTeams`,`{input:#1,output:#4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseDataItem";$8(#2);$5(>7)@"%Response";$4({broadcaster_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/teams/channel",code:200}));$4({broadcaster_id:$6($3),broadcaster_login:$6($3),broadcaster_name:$6($3),background_image_url:$6($7($3)),banner:$6($7($3)),created_at:$6($7($3)),updated_at:$6($7($3)),info:$6($3),thumbnail_url:$6($7($3)),team_name:$6($3),team_display_name:$6($3),id:$6($3)});$4({data:$6(#3)})`,[r,p,m,t,n,a,i,e,h,c,d,f,g]):s(_,u));const v=/*@__PURE__*/ u(u=>u===o?l(`GetTeamsResponse`,`{input:#1,output:#6,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"GetTeams"};$6(>7)@"GetTeamsRequest";$6(>8)@"%DataItemUsersItem";$7(#2);$6(>9)@"%DataItem";$7(#4);$6(>10)@"%";$5({name:$4($3.pipe($2())),id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/teams",code:200}));$5({user_id:$4($3),user_login:$4($3),user_name:$4($3)});$5({users:$4(#3),background_image_url:$4($8($3)),banner:$4($8($3)),created_at:$4($8($3)),updated_at:$4($8($3)),info:$4($3),thumbnail_url:$4($8($3)),team_name:$4($3),team_display_name:$4($3),id:$4($3)});$5({data:$4(#5)})`,[r,p,m,t,i,n,a,h,e,c,d,f,g]):s(v,u));export{_ as getChannelTeams,v as getTeams};
|
|
2
|
+
//# sourceMappingURL=teams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.Struct","S.suspend","S.optional","S.NullOr","S.Array","Retry.Retry","API.call","NullOr","String","Struct","at","optional","suspend","D","call","TwitchServiceErrors","op","TwitchProtocol","Retry","Http","Query","Array","TELEMETRY","getChannelTeams","i","named","getTeams"],"sources":["../../src/services/teams.ts"],"mappings":"+NAYA,MAAM4B,EAAY,CAChB,OAAQ,aACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,SACR,QAAS,QACT,UAAW,KACb,EAoFA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAM9B,EAAQC,EAAU,kBAAmB,uhBAAwhB,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAUC,EAAWC,EAAYC,EAAUC,EAASW,EAAqBE,EAAgBZ,EAAaiB,CAAS,CAAC,EAAIhB,EAASiB,EAAiBC,CAAC,CAAC,EAIjyB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAM9B,EAAQC,EAAU,mBAAoB,8jBAA+jB,CAACC,EAAQC,EAAQC,EAASC,EAAUG,EAAYF,EAAUC,EAAWG,EAASD,EAAUY,EAAqBE,EAAgBZ,EAAaiB,CAAS,CAAC,EAAIhB,EAASoB,EAAUF,CAAC,CAAC"}
|