x-twitter-scraper 0.16.0 → 0.17.0

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.
Files changed (198) hide show
  1. package/CHANGELOG.md +33 -5
  2. package/README.md +1 -0
  3. package/client.d.mts +8 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +8 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/internal/detect-platform.d.mts +3 -1
  10. package/internal/detect-platform.d.mts.map +1 -1
  11. package/internal/detect-platform.d.ts +3 -1
  12. package/internal/detect-platform.d.ts.map +1 -1
  13. package/internal/detect-platform.js +1 -1
  14. package/internal/detect-platform.js.map +1 -1
  15. package/internal/detect-platform.mjs +1 -1
  16. package/internal/detect-platform.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/events.d.mts +50 -11
  19. package/resources/events.d.mts.map +1 -1
  20. package/resources/events.d.ts +50 -11
  21. package/resources/events.d.ts.map +1 -1
  22. package/resources/events.js.map +1 -1
  23. package/resources/events.mjs.map +1 -1
  24. package/resources/index.d.mts +1 -1
  25. package/resources/index.d.mts.map +1 -1
  26. package/resources/index.d.ts +1 -1
  27. package/resources/index.d.ts.map +1 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs.map +1 -1
  30. package/resources/monitors/index.d.mts +2 -1
  31. package/resources/monitors/index.d.mts.map +1 -1
  32. package/resources/monitors/index.d.ts +2 -1
  33. package/resources/monitors/index.d.ts.map +1 -1
  34. package/resources/monitors/index.js +3 -1
  35. package/resources/monitors/index.js.map +1 -1
  36. package/resources/monitors/index.mjs +1 -0
  37. package/resources/monitors/index.mjs.map +1 -1
  38. package/resources/monitors/keywords.d.mts +10 -96
  39. package/resources/monitors/keywords.d.mts.map +1 -1
  40. package/resources/monitors/keywords.d.ts +10 -96
  41. package/resources/monitors/keywords.d.ts.map +1 -1
  42. package/resources/monitors/monitors.d.mts +6 -2
  43. package/resources/monitors/monitors.d.mts.map +1 -1
  44. package/resources/monitors/monitors.d.ts +6 -2
  45. package/resources/monitors/monitors.d.ts.map +1 -1
  46. package/resources/monitors/monitors.js +4 -0
  47. package/resources/monitors/monitors.js.map +1 -1
  48. package/resources/monitors/monitors.mjs +4 -0
  49. package/resources/monitors/monitors.mjs.map +1 -1
  50. package/resources/monitors/posts.d.mts +344 -0
  51. package/resources/monitors/posts.d.mts.map +1 -0
  52. package/resources/monitors/posts.d.ts +344 -0
  53. package/resources/monitors/posts.d.ts.map +1 -0
  54. package/resources/monitors/posts.js +94 -0
  55. package/resources/monitors/posts.js.map +1 -0
  56. package/resources/monitors/posts.mjs +90 -0
  57. package/resources/monitors/posts.mjs.map +1 -0
  58. package/resources/shared.d.mts +577 -2
  59. package/resources/shared.d.mts.map +1 -1
  60. package/resources/shared.d.ts +577 -2
  61. package/resources/shared.d.ts.map +1 -1
  62. package/resources/support/index.d.mts +1 -1
  63. package/resources/support/index.d.mts.map +1 -1
  64. package/resources/support/index.d.ts +1 -1
  65. package/resources/support/index.d.ts.map +1 -1
  66. package/resources/support/index.js.map +1 -1
  67. package/resources/support/index.mjs.map +1 -1
  68. package/resources/support/support.d.mts +2 -2
  69. package/resources/support/support.d.mts.map +1 -1
  70. package/resources/support/support.d.ts +2 -2
  71. package/resources/support/support.d.ts.map +1 -1
  72. package/resources/support/support.js.map +1 -1
  73. package/resources/support/support.mjs.map +1 -1
  74. package/resources/support/tickets.d.mts +12 -20
  75. package/resources/support/tickets.d.mts.map +1 -1
  76. package/resources/support/tickets.d.ts +12 -20
  77. package/resources/support/tickets.d.ts.map +1 -1
  78. package/resources/webhooks.d.mts +5 -4
  79. package/resources/webhooks.d.mts.map +1 -1
  80. package/resources/webhooks.d.ts +5 -4
  81. package/resources/webhooks.d.ts.map +1 -1
  82. package/resources/webhooks.js.map +1 -1
  83. package/resources/webhooks.mjs.map +1 -1
  84. package/resources/x/accounts.d.mts +14 -4
  85. package/resources/x/accounts.d.mts.map +1 -1
  86. package/resources/x/accounts.d.ts +14 -4
  87. package/resources/x/accounts.d.ts.map +1 -1
  88. package/resources/x/accounts.js +6 -4
  89. package/resources/x/accounts.js.map +1 -1
  90. package/resources/x/accounts.mjs +6 -4
  91. package/resources/x/accounts.mjs.map +1 -1
  92. package/resources/x/broadcasts.d.mts +3 -131
  93. package/resources/x/broadcasts.d.mts.map +1 -1
  94. package/resources/x/broadcasts.d.ts +3 -131
  95. package/resources/x/broadcasts.d.ts.map +1 -1
  96. package/resources/x/communities/communities.d.mts +92 -1
  97. package/resources/x/communities/communities.d.mts.map +1 -1
  98. package/resources/x/communities/communities.d.ts +92 -1
  99. package/resources/x/communities/communities.d.ts.map +1 -1
  100. package/resources/x/communities/communities.js +14 -0
  101. package/resources/x/communities/communities.js.map +1 -1
  102. package/resources/x/communities/communities.mjs +14 -0
  103. package/resources/x/communities/communities.mjs.map +1 -1
  104. package/resources/x/communities/index.d.mts +1 -1
  105. package/resources/x/communities/index.d.mts.map +1 -1
  106. package/resources/x/communities/index.d.ts +1 -1
  107. package/resources/x/communities/index.d.ts.map +1 -1
  108. package/resources/x/communities/index.js.map +1 -1
  109. package/resources/x/communities/index.mjs.map +1 -1
  110. package/resources/x/community-notes.d.mts +122 -510
  111. package/resources/x/community-notes.d.mts.map +1 -1
  112. package/resources/x/community-notes.d.ts +122 -510
  113. package/resources/x/community-notes.d.ts.map +1 -1
  114. package/resources/x/community-notes.js.map +1 -1
  115. package/resources/x/community-notes.mjs.map +1 -1
  116. package/resources/x/index.d.mts +7 -6
  117. package/resources/x/index.d.mts.map +1 -1
  118. package/resources/x/index.d.ts +7 -6
  119. package/resources/x/index.d.ts.map +1 -1
  120. package/resources/x/index.js +3 -1
  121. package/resources/x/index.js.map +1 -1
  122. package/resources/x/index.mjs +1 -0
  123. package/resources/x/index.mjs.map +1 -1
  124. package/resources/x/jobs.d.mts +144 -291
  125. package/resources/x/jobs.d.mts.map +1 -1
  126. package/resources/x/jobs.d.ts +144 -291
  127. package/resources/x/jobs.d.ts.map +1 -1
  128. package/resources/x/jobs.js.map +1 -1
  129. package/resources/x/jobs.mjs.map +1 -1
  130. package/resources/x/lists.d.mts +21 -419
  131. package/resources/x/lists.d.mts.map +1 -1
  132. package/resources/x/lists.d.ts +21 -419
  133. package/resources/x/lists.d.ts.map +1 -1
  134. package/resources/x/spaces.d.mts +213 -693
  135. package/resources/x/spaces.d.mts.map +1 -1
  136. package/resources/x/spaces.d.ts +213 -693
  137. package/resources/x/spaces.d.ts.map +1 -1
  138. package/resources/x/spaces.js.map +1 -1
  139. package/resources/x/spaces.mjs.map +1 -1
  140. package/resources/x/sports.d.mts +1349 -0
  141. package/resources/x/sports.d.mts.map +1 -0
  142. package/resources/x/sports.d.ts +1349 -0
  143. package/resources/x/sports.d.ts.map +1 -0
  144. package/resources/x/sports.js +76 -0
  145. package/resources/x/sports.js.map +1 -0
  146. package/resources/x/sports.mjs +72 -0
  147. package/resources/x/sports.mjs.map +1 -0
  148. package/resources/x/tweets/tweets.d.mts +11 -13
  149. package/resources/x/tweets/tweets.d.mts.map +1 -1
  150. package/resources/x/tweets/tweets.d.ts +11 -13
  151. package/resources/x/tweets/tweets.d.ts.map +1 -1
  152. package/resources/x/users/users.d.mts +29 -585
  153. package/resources/x/users/users.d.mts.map +1 -1
  154. package/resources/x/users/users.d.ts +29 -585
  155. package/resources/x/users/users.d.ts.map +1 -1
  156. package/resources/x/users/users.js.map +1 -1
  157. package/resources/x/users/users.mjs.map +1 -1
  158. package/resources/x/x.d.mts +55 -118
  159. package/resources/x/x.d.mts.map +1 -1
  160. package/resources/x/x.d.ts +55 -118
  161. package/resources/x/x.d.ts.map +1 -1
  162. package/resources/x/x.js +4 -0
  163. package/resources/x/x.js.map +1 -1
  164. package/resources/x/x.mjs +4 -0
  165. package/resources/x/x.mjs.map +1 -1
  166. package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
  167. package/src/client.ts +8 -0
  168. package/src/internal/detect-platform.ts +2 -2
  169. package/src/resources/events.ts +72 -10
  170. package/src/resources/index.ts +1 -0
  171. package/src/resources/monitors/index.ts +21 -0
  172. package/src/resources/monitors/keywords.ts +10 -118
  173. package/src/resources/monitors/monitors.ts +46 -0
  174. package/src/resources/monitors/posts.ts +463 -0
  175. package/src/resources/shared.ts +773 -200
  176. package/src/resources/support/index.ts +1 -0
  177. package/src/resources/support/support.ts +2 -0
  178. package/src/resources/support/tickets.ts +14 -21
  179. package/src/resources/webhooks.ts +5 -4
  180. package/src/resources/x/accounts.ts +19 -4
  181. package/src/resources/x/broadcasts.ts +3 -159
  182. package/src/resources/x/communities/communities.ts +113 -0
  183. package/src/resources/x/communities/index.ts +3 -0
  184. package/src/resources/x/community-notes.ts +137 -582
  185. package/src/resources/x/index.ts +62 -0
  186. package/src/resources/x/jobs.ts +160 -334
  187. package/src/resources/x/lists.ts +21 -493
  188. package/src/resources/x/spaces.ts +227 -817
  189. package/src/resources/x/sports.ts +1675 -0
  190. package/src/resources/x/tweets/tweets.ts +15 -15
  191. package/src/resources/x/users/users.ts +29 -693
  192. package/src/resources/x/x.ts +175 -128
  193. package/src/version.ts +1 -1
  194. package/version.d.mts +1 -1
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. package/version.mjs +1 -1
  198. package/src/lib/.keep +0 -2
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { APIResource } from '../../core/resource';
6
6
  import * as Shared from '../shared';
7
+ import * as SpacesAPI from './spaces';
7
8
  import { APIPromise } from '../../core/api-promise';
8
9
  import { RequestOptions } from '../../internal/request-options';
9
10
  import { path } from '../../internal/utils/path';
@@ -67,149 +68,177 @@ export class Spaces extends APIResource {
67
68
  }
68
69
  }
69
70
 
70
- export interface SpaceRetrieveResponse {
71
+ /**
72
+ * X Space
73
+ */
74
+ export interface Space {
71
75
  /**
72
- * X Space
76
+ * Space ID
73
77
  */
74
- space: SpaceRetrieveResponse.Space;
75
- }
78
+ id: string;
76
79
 
77
- export namespace SpaceRetrieveResponse {
78
80
  /**
79
- * X Space
81
+ * Hosts and co-hosts
80
82
  */
81
- export interface Space {
82
- /**
83
- * Space ID
84
- */
85
- id: string;
83
+ admins: Array<SpaceParticipant>;
86
84
 
87
- /**
88
- * Hosts and co-hosts
89
- */
90
- admins: Array<Space.Admin>;
85
+ /**
86
+ * Accounts X lists as listeners
87
+ */
88
+ listeners: Array<SpaceParticipant>;
91
89
 
92
- /**
93
- * Accounts X lists as listeners
94
- */
95
- listeners: Array<Space.Listener>;
90
+ /**
91
+ * Accounts X lists as speakers
92
+ */
93
+ speakers: Array<SpaceParticipant>;
96
94
 
97
- /**
98
- * Accounts X lists as speakers
99
- */
100
- speakers: Array<Space.Speaker>;
95
+ /**
96
+ * Audio or video kind, as X names it
97
+ */
98
+ contentType?: string;
101
99
 
102
- /**
103
- * Audio or video kind, as X names it
104
- */
105
- contentType?: string;
100
+ /**
101
+ * X's code for who may speak
102
+ */
103
+ conversationControls?: number;
106
104
 
107
- /**
108
- * X's code for who may speak
109
- */
110
- conversationControls?: number;
105
+ /**
106
+ * When the Space was made
107
+ */
108
+ createdAt?: string;
111
109
 
112
- /**
113
- * When the Space was made
114
- */
115
- createdAt?: string;
110
+ /**
111
+ * Public X profile.
112
+ */
113
+ creator?: Shared.UserProfile;
116
114
 
117
- /**
118
- * Public X profile.
119
- */
120
- creator?: Shared.UserProfile;
115
+ /**
116
+ * Whether X lets no more accounts join
117
+ */
118
+ disallowJoin?: boolean;
121
119
 
122
- /**
123
- * Whether X lets no more accounts join
124
- */
125
- disallowJoin?: boolean;
120
+ /**
121
+ * When the Space ended
122
+ */
123
+ endedAt?: string;
126
124
 
127
- /**
128
- * When the Space ended
129
- */
130
- endedAt?: string;
125
+ /**
126
+ * Whether listeners may clip the Space
127
+ */
128
+ isAvailableForClipping?: boolean;
131
129
 
132
- /**
133
- * Whether listeners may clip the Space
134
- */
135
- isAvailableForClipping?: boolean;
130
+ /**
131
+ * Whether X offers a recording
132
+ */
133
+ isAvailableForReplay?: boolean;
136
134
 
137
- /**
138
- * Whether X offers a recording
139
- */
140
- isAvailableForReplay?: boolean;
135
+ /**
136
+ * Whether only X employees may join
137
+ */
138
+ isEmployeeOnly?: boolean;
141
139
 
142
- /**
143
- * Whether only X employees may join
144
- */
145
- isEmployeeOnly?: boolean;
140
+ /**
141
+ * Whether the host locked the Space
142
+ */
143
+ isLocked?: boolean;
146
144
 
147
- /**
148
- * Whether the host locked the Space
149
- */
150
- isLocked?: boolean;
145
+ /**
146
+ * Most hosts and co-hosts the Space allows
147
+ */
148
+ maxAdminCapacity?: number;
151
149
 
152
- /**
153
- * Most hosts and co-hosts the Space allows
154
- */
155
- maxAdminCapacity?: number;
150
+ /**
151
+ * X's media key for the Space's audio
152
+ */
153
+ mediaKey?: string;
156
154
 
157
- /**
158
- * X's media key for the Space's audio
159
- */
160
- mediaKey?: string;
155
+ /**
156
+ * IDs of the accounts the host tagged
157
+ */
158
+ mentionedUserIds?: Array<string>;
161
159
 
162
- /**
163
- * IDs of the accounts the host tagged
164
- */
165
- mentionedUserIds?: Array<string>;
160
+ /**
161
+ * Whether anonymous listening is off
162
+ */
163
+ noIncognito?: boolean;
166
164
 
167
- /**
168
- * Whether anonymous listening is off
169
- */
170
- noIncognito?: boolean;
165
+ /**
166
+ * Accounts in the Space now, while it is live
167
+ */
168
+ participantCount?: number;
171
169
 
172
- /**
173
- * Accounts in the Space now, while it is live
174
- */
175
- participantCount?: number;
170
+ /**
171
+ * When the Space was set to start
172
+ */
173
+ scheduledStart?: string;
176
174
 
177
- /**
178
- * When the Space was set to start
179
- */
180
- scheduledStart?: string;
175
+ /**
176
+ * Posts the hosts and speakers shared in the Space, in X's order. Only when X
177
+ * lists them.
178
+ */
179
+ sharings?: Array<Space.Sharing>;
181
180
 
182
- /**
183
- * Posts the hosts and speakers shared in the Space, in X's order. Only when X
184
- * lists them.
185
- */
186
- sharings?: Array<Space.Sharing>;
181
+ /**
182
+ * When the Space went live
183
+ */
184
+ startedAt?: string;
187
185
 
188
- /**
189
- * When the Space went live
190
- */
191
- startedAt?: string;
186
+ /**
187
+ * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
188
+ * started) or TimedOut (closed by X, not by its host)
189
+ */
190
+ state?: string;
192
191
 
193
- /**
194
- * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
195
- * started) or TimedOut (closed by X, not by its host)
196
- */
197
- state?: string;
192
+ /**
193
+ * Space title
194
+ */
195
+ title?: string;
196
+
197
+ /**
198
+ * Accounts that listened live
199
+ */
200
+ totalLiveListeners?: number;
198
201
 
202
+ /**
203
+ * Accounts that played the recording
204
+ */
205
+ totalReplayWatched?: number;
206
+
207
+ /**
208
+ * Search tweet with author. Zero metrics may mean X omitted counts.
209
+ */
210
+ tweet?: Shared.SearchTweet;
211
+
212
+ /**
213
+ * ID of the post that announces the Space
214
+ */
215
+ tweetId?: string;
216
+
217
+ /**
218
+ * When X last changed the Space
219
+ */
220
+ updatedAt?: string;
221
+ }
222
+
223
+ export namespace Space {
224
+ /**
225
+ * A post shared in a Space, & the account that shared it.
226
+ */
227
+ export interface Sharing {
199
228
  /**
200
- * Space title
229
+ * X's ID of the sharing, not of the post
201
230
  */
202
- title?: string;
231
+ id?: string;
203
232
 
204
233
  /**
205
- * Accounts that listened live
234
+ * When the post was shared
206
235
  */
207
- totalLiveListeners?: number;
236
+ sharedAt?: string;
208
237
 
209
238
  /**
210
- * Accounts that played the recording
239
+ * Public X profile.
211
240
  */
212
- totalReplayWatched?: number;
241
+ sharedBy?: Shared.UserProfile;
213
242
 
214
243
  /**
215
244
  * Search tweet with author. Zero metrics may mean X omitted counts.
@@ -217,310 +246,113 @@ export namespace SpaceRetrieveResponse {
217
246
  tweet?: Shared.SearchTweet;
218
247
 
219
248
  /**
220
- * ID of the post that announces the Space
221
- */
222
- tweetId?: string;
223
-
224
- /**
225
- * When X last changed the Space
249
+ * When X last changed the sharing
226
250
  */
227
251
  updatedAt?: string;
228
252
  }
253
+ }
229
254
 
230
- export namespace Space {
231
- /**
232
- * An account on a Space's stage or in its audience, as X lists it there.
233
- */
234
- export interface Admin {
235
- id: string;
236
-
237
- /**
238
- * Name the account shows in the Space
239
- */
240
- name: string;
241
-
242
- username: string;
243
-
244
- /**
245
- * Organization affiliation label shown on an X profile.
246
- */
247
- affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
248
-
249
- /**
250
- * Whether the account has X Premium verification
251
- */
252
- isBlueVerified?: boolean;
253
-
254
- /**
255
- * Whether a host muted the account
256
- */
257
- isMutedByAdmin?: boolean;
258
-
259
- /**
260
- * Whether the account muted itself
261
- */
262
- isMutedByGuest?: boolean;
263
-
264
- /**
265
- * Whether X shows a verified badge in the Space
266
- */
267
- isVerified?: boolean;
268
-
269
- /**
270
- * When the account joined the Space
271
- */
272
- joinedAt?: string;
273
-
274
- /**
275
- * The account's ID in X's broadcast service
276
- */
277
- periscopeUserId?: string;
278
-
279
- /**
280
- * Profile picture URL
281
- */
282
- profilePicture?: string;
283
-
284
- /**
285
- * The participant's profile picture at full size
286
- */
287
- profilePictureOriginal?: string;
288
-
289
- /**
290
- * Business or Government badge type
291
- */
292
- verifiedType?: string;
293
- }
294
-
295
- export namespace Admin {
296
- /**
297
- * Organization affiliation label shown on an X profile.
298
- */
299
- export interface AffiliatesHighlightedLabel {
300
- badgeUrl?: string;
301
-
302
- description?: string;
255
+ /**
256
+ * An account on a Space's stage or in its audience, as X lists it there.
257
+ */
258
+ export interface SpaceParticipant {
259
+ id: string;
303
260
 
304
- /**
305
- * Public text, ranges, references, and mention data.
306
- */
307
- longDescription?: { [key: string]: unknown };
261
+ /**
262
+ * Name the account shows in the Space
263
+ */
264
+ name: string;
308
265
 
309
- url?: string;
266
+ username: string;
310
267
 
311
- urlType?: string;
268
+ /**
269
+ * Organization affiliation label shown on an X profile.
270
+ */
271
+ affiliatesHighlightedLabel?: SpaceParticipant.AffiliatesHighlightedLabel;
312
272
 
313
- userLabelDisplayType?: string;
273
+ /**
274
+ * Whether the account has X Premium verification
275
+ */
276
+ isBlueVerified?: boolean;
314
277
 
315
- userLabelType?: string;
316
- }
317
- }
278
+ /**
279
+ * Whether a host muted the account
280
+ */
281
+ isMutedByAdmin?: boolean;
318
282
 
319
- /**
320
- * An account on a Space's stage or in its audience, as X lists it there.
321
- */
322
- export interface Listener {
323
- id: string;
324
-
325
- /**
326
- * Name the account shows in the Space
327
- */
328
- name: string;
329
-
330
- username: string;
331
-
332
- /**
333
- * Organization affiliation label shown on an X profile.
334
- */
335
- affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
336
-
337
- /**
338
- * Whether the account has X Premium verification
339
- */
340
- isBlueVerified?: boolean;
341
-
342
- /**
343
- * Whether a host muted the account
344
- */
345
- isMutedByAdmin?: boolean;
346
-
347
- /**
348
- * Whether the account muted itself
349
- */
350
- isMutedByGuest?: boolean;
351
-
352
- /**
353
- * Whether X shows a verified badge in the Space
354
- */
355
- isVerified?: boolean;
356
-
357
- /**
358
- * When the account joined the Space
359
- */
360
- joinedAt?: string;
361
-
362
- /**
363
- * The account's ID in X's broadcast service
364
- */
365
- periscopeUserId?: string;
366
-
367
- /**
368
- * Profile picture URL
369
- */
370
- profilePicture?: string;
371
-
372
- /**
373
- * The participant's profile picture at full size
374
- */
375
- profilePictureOriginal?: string;
376
-
377
- /**
378
- * Business or Government badge type
379
- */
380
- verifiedType?: string;
381
- }
283
+ /**
284
+ * Whether the account muted itself
285
+ */
286
+ isMutedByGuest?: boolean;
382
287
 
383
- export namespace Listener {
384
- /**
385
- * Organization affiliation label shown on an X profile.
386
- */
387
- export interface AffiliatesHighlightedLabel {
388
- badgeUrl?: string;
288
+ /**
289
+ * Whether X shows a verified badge in the Space
290
+ */
291
+ isVerified?: boolean;
389
292
 
390
- description?: string;
293
+ /**
294
+ * When the account joined the Space
295
+ */
296
+ joinedAt?: string;
391
297
 
392
- /**
393
- * Public text, ranges, references, and mention data.
394
- */
395
- longDescription?: { [key: string]: unknown };
298
+ /**
299
+ * The account's ID in X's broadcast service
300
+ */
301
+ periscopeUserId?: string;
396
302
 
397
- url?: string;
303
+ /**
304
+ * Profile picture URL
305
+ */
306
+ profilePicture?: string;
398
307
 
399
- urlType?: string;
308
+ /**
309
+ * The participant's profile picture at full size
310
+ */
311
+ profilePictureOriginal?: string;
400
312
 
401
- userLabelDisplayType?: string;
313
+ /**
314
+ * Business or Government badge type
315
+ */
316
+ verifiedType?: string;
317
+ }
402
318
 
403
- userLabelType?: string;
404
- }
405
- }
319
+ export namespace SpaceParticipant {
320
+ /**
321
+ * Organization affiliation label shown on an X profile.
322
+ */
323
+ export type AffiliatesHighlightedLabel = Shared.UserProfile.AffiliatesHighlightedLabel;
324
+ }
406
325
 
407
- /**
408
- * An account on a Space's stage or in its audience, as X lists it there.
409
- */
410
- export interface Speaker {
411
- id: string;
412
-
413
- /**
414
- * Name the account shows in the Space
415
- */
416
- name: string;
417
-
418
- username: string;
419
-
420
- /**
421
- * Organization affiliation label shown on an X profile.
422
- */
423
- affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
424
-
425
- /**
426
- * Whether the account has X Premium verification
427
- */
428
- isBlueVerified?: boolean;
429
-
430
- /**
431
- * Whether a host muted the account
432
- */
433
- isMutedByAdmin?: boolean;
434
-
435
- /**
436
- * Whether the account muted itself
437
- */
438
- isMutedByGuest?: boolean;
439
-
440
- /**
441
- * Whether X shows a verified badge in the Space
442
- */
443
- isVerified?: boolean;
444
-
445
- /**
446
- * When the account joined the Space
447
- */
448
- joinedAt?: string;
449
-
450
- /**
451
- * The account's ID in X's broadcast service
452
- */
453
- periscopeUserId?: string;
454
-
455
- /**
456
- * Profile picture URL
457
- */
458
- profilePicture?: string;
459
-
460
- /**
461
- * The participant's profile picture at full size
462
- */
463
- profilePictureOriginal?: string;
464
-
465
- /**
466
- * Business or Government badge type
467
- */
468
- verifiedType?: string;
469
- }
326
+ export interface SpaceRetrieveResponse {
327
+ /**
328
+ * X Space
329
+ */
330
+ space: Space;
331
+ }
470
332
 
471
- export namespace Speaker {
472
- /**
473
- * Organization affiliation label shown on an X profile.
474
- */
475
- export interface AffiliatesHighlightedLabel {
476
- badgeUrl?: string;
333
+ export namespace SpaceRetrieveResponse {
334
+ export type Space = SpacesAPI.Space;
477
335
 
478
- description?: string;
336
+ export namespace Space {
337
+ export type Admin = SpacesAPI.SpaceParticipant;
479
338
 
480
- /**
481
- * Public text, ranges, references, and mention data.
482
- */
483
- longDescription?: { [key: string]: unknown };
339
+ export namespace Admin {
340
+ export type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
341
+ }
484
342
 
485
- url?: string;
343
+ export type Listener = SpacesAPI.SpaceParticipant;
486
344
 
487
- urlType?: string;
345
+ export namespace Listener {
346
+ export type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
347
+ }
488
348
 
489
- userLabelDisplayType?: string;
349
+ export type Speaker = SpacesAPI.SpaceParticipant;
490
350
 
491
- userLabelType?: string;
492
- }
351
+ export namespace Speaker {
352
+ export type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
493
353
  }
494
354
 
495
- /**
496
- * A post shared in a Space, & the account that shared it.
497
- */
498
- export interface Sharing {
499
- /**
500
- * X's ID of the sharing, not of the post
501
- */
502
- id?: string;
503
-
504
- /**
505
- * When the post was shared
506
- */
507
- sharedAt?: string;
508
-
509
- /**
510
- * Public X profile.
511
- */
512
- sharedBy?: Shared.UserProfile;
513
-
514
- /**
515
- * Search tweet with author. Zero metrics may mean X omitted counts.
516
- */
517
- tweet?: Shared.SearchTweet;
518
-
519
- /**
520
- * When X last changed the sharing
521
- */
522
- updatedAt?: string;
523
- }
355
+ export type Sharing = SpacesAPI.Space.Sharing;
524
356
  }
525
357
  }
526
358
 
@@ -561,456 +393,32 @@ export interface SpaceSearchResponse {
561
393
  /**
562
394
  * Public Spaces, in the order the posts share them
563
395
  */
564
- spaces: Array<SpaceSearchResponse.Space>;
396
+ spaces: Array<Space>;
565
397
  }
566
398
 
567
399
  export namespace SpaceSearchResponse {
568
- /**
569
- * X Space
570
- */
571
- export interface Space {
572
- /**
573
- * Space ID
574
- */
575
- id: string;
576
-
577
- /**
578
- * Hosts and co-hosts
579
- */
580
- admins: Array<Space.Admin>;
581
-
582
- /**
583
- * Accounts X lists as listeners
584
- */
585
- listeners: Array<Space.Listener>;
586
-
587
- /**
588
- * Accounts X lists as speakers
589
- */
590
- speakers: Array<Space.Speaker>;
591
-
592
- /**
593
- * Audio or video kind, as X names it
594
- */
595
- contentType?: string;
596
-
597
- /**
598
- * X's code for who may speak
599
- */
600
- conversationControls?: number;
601
-
602
- /**
603
- * When the Space was made
604
- */
605
- createdAt?: string;
606
-
607
- /**
608
- * Public X profile.
609
- */
610
- creator?: Shared.UserProfile;
611
-
612
- /**
613
- * Whether X lets no more accounts join
614
- */
615
- disallowJoin?: boolean;
616
-
617
- /**
618
- * When the Space ended
619
- */
620
- endedAt?: string;
621
-
622
- /**
623
- * Whether listeners may clip the Space
624
- */
625
- isAvailableForClipping?: boolean;
626
-
627
- /**
628
- * Whether X offers a recording
629
- */
630
- isAvailableForReplay?: boolean;
631
-
632
- /**
633
- * Whether only X employees may join
634
- */
635
- isEmployeeOnly?: boolean;
636
-
637
- /**
638
- * Whether the host locked the Space
639
- */
640
- isLocked?: boolean;
641
-
642
- /**
643
- * Most hosts and co-hosts the Space allows
644
- */
645
- maxAdminCapacity?: number;
646
-
647
- /**
648
- * X's media key for the Space's audio
649
- */
650
- mediaKey?: string;
651
-
652
- /**
653
- * IDs of the accounts the host tagged
654
- */
655
- mentionedUserIds?: Array<string>;
656
-
657
- /**
658
- * Whether anonymous listening is off
659
- */
660
- noIncognito?: boolean;
661
-
662
- /**
663
- * Accounts in the Space now, while it is live
664
- */
665
- participantCount?: number;
666
-
667
- /**
668
- * When the Space was set to start
669
- */
670
- scheduledStart?: string;
671
-
672
- /**
673
- * Posts the hosts and speakers shared in the Space, in X's order. Only when X
674
- * lists them.
675
- */
676
- sharings?: Array<Space.Sharing>;
677
-
678
- /**
679
- * When the Space went live
680
- */
681
- startedAt?: string;
682
-
683
- /**
684
- * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
685
- * started) or TimedOut (closed by X, not by its host)
686
- */
687
- state?: string;
688
-
689
- /**
690
- * Space title
691
- */
692
- title?: string;
693
-
694
- /**
695
- * Accounts that listened live
696
- */
697
- totalLiveListeners?: number;
698
-
699
- /**
700
- * Accounts that played the recording
701
- */
702
- totalReplayWatched?: number;
703
-
704
- /**
705
- * Search tweet with author. Zero metrics may mean X omitted counts.
706
- */
707
- tweet?: Shared.SearchTweet;
708
-
709
- /**
710
- * ID of the post that announces the Space
711
- */
712
- tweetId?: string;
713
-
714
- /**
715
- * When X last changed the Space
716
- */
717
- updatedAt?: string;
718
- }
400
+ export type Space = SpacesAPI.Space;
719
401
 
720
402
  export namespace Space {
721
- /**
722
- * An account on a Space's stage or in its audience, as X lists it there.
723
- */
724
- export interface Admin {
725
- id: string;
726
-
727
- /**
728
- * Name the account shows in the Space
729
- */
730
- name: string;
731
-
732
- username: string;
733
-
734
- /**
735
- * Organization affiliation label shown on an X profile.
736
- */
737
- affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
738
-
739
- /**
740
- * Whether the account has X Premium verification
741
- */
742
- isBlueVerified?: boolean;
743
-
744
- /**
745
- * Whether a host muted the account
746
- */
747
- isMutedByAdmin?: boolean;
748
-
749
- /**
750
- * Whether the account muted itself
751
- */
752
- isMutedByGuest?: boolean;
753
-
754
- /**
755
- * Whether X shows a verified badge in the Space
756
- */
757
- isVerified?: boolean;
758
-
759
- /**
760
- * When the account joined the Space
761
- */
762
- joinedAt?: string;
763
-
764
- /**
765
- * The account's ID in X's broadcast service
766
- */
767
- periscopeUserId?: string;
768
-
769
- /**
770
- * Profile picture URL
771
- */
772
- profilePicture?: string;
773
-
774
- /**
775
- * The participant's profile picture at full size
776
- */
777
- profilePictureOriginal?: string;
778
-
779
- /**
780
- * Business or Government badge type
781
- */
782
- verifiedType?: string;
783
- }
403
+ export type Admin = SpacesAPI.SpaceParticipant;
784
404
 
785
405
  export namespace Admin {
786
- /**
787
- * Organization affiliation label shown on an X profile.
788
- */
789
- export interface AffiliatesHighlightedLabel {
790
- badgeUrl?: string;
791
-
792
- description?: string;
793
-
794
- /**
795
- * Public text, ranges, references, and mention data.
796
- */
797
- longDescription?: { [key: string]: unknown };
798
-
799
- url?: string;
800
-
801
- urlType?: string;
802
-
803
- userLabelDisplayType?: string;
804
-
805
- userLabelType?: string;
806
- }
406
+ export type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
807
407
  }
808
408
 
809
- /**
810
- * An account on a Space's stage or in its audience, as X lists it there.
811
- */
812
- export interface Listener {
813
- id: string;
814
-
815
- /**
816
- * Name the account shows in the Space
817
- */
818
- name: string;
819
-
820
- username: string;
821
-
822
- /**
823
- * Organization affiliation label shown on an X profile.
824
- */
825
- affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
826
-
827
- /**
828
- * Whether the account has X Premium verification
829
- */
830
- isBlueVerified?: boolean;
831
-
832
- /**
833
- * Whether a host muted the account
834
- */
835
- isMutedByAdmin?: boolean;
836
-
837
- /**
838
- * Whether the account muted itself
839
- */
840
- isMutedByGuest?: boolean;
841
-
842
- /**
843
- * Whether X shows a verified badge in the Space
844
- */
845
- isVerified?: boolean;
846
-
847
- /**
848
- * When the account joined the Space
849
- */
850
- joinedAt?: string;
851
-
852
- /**
853
- * The account's ID in X's broadcast service
854
- */
855
- periscopeUserId?: string;
856
-
857
- /**
858
- * Profile picture URL
859
- */
860
- profilePicture?: string;
861
-
862
- /**
863
- * The participant's profile picture at full size
864
- */
865
- profilePictureOriginal?: string;
866
-
867
- /**
868
- * Business or Government badge type
869
- */
870
- verifiedType?: string;
871
- }
409
+ export type Listener = SpacesAPI.SpaceParticipant;
872
410
 
873
411
  export namespace Listener {
874
- /**
875
- * Organization affiliation label shown on an X profile.
876
- */
877
- export interface AffiliatesHighlightedLabel {
878
- badgeUrl?: string;
879
-
880
- description?: string;
881
-
882
- /**
883
- * Public text, ranges, references, and mention data.
884
- */
885
- longDescription?: { [key: string]: unknown };
886
-
887
- url?: string;
888
-
889
- urlType?: string;
890
-
891
- userLabelDisplayType?: string;
892
-
893
- userLabelType?: string;
894
- }
412
+ export type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
895
413
  }
896
414
 
897
- /**
898
- * An account on a Space's stage or in its audience, as X lists it there.
899
- */
900
- export interface Speaker {
901
- id: string;
902
-
903
- /**
904
- * Name the account shows in the Space
905
- */
906
- name: string;
907
-
908
- username: string;
909
-
910
- /**
911
- * Organization affiliation label shown on an X profile.
912
- */
913
- affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
914
-
915
- /**
916
- * Whether the account has X Premium verification
917
- */
918
- isBlueVerified?: boolean;
919
-
920
- /**
921
- * Whether a host muted the account
922
- */
923
- isMutedByAdmin?: boolean;
924
-
925
- /**
926
- * Whether the account muted itself
927
- */
928
- isMutedByGuest?: boolean;
929
-
930
- /**
931
- * Whether X shows a verified badge in the Space
932
- */
933
- isVerified?: boolean;
934
-
935
- /**
936
- * When the account joined the Space
937
- */
938
- joinedAt?: string;
939
-
940
- /**
941
- * The account's ID in X's broadcast service
942
- */
943
- periscopeUserId?: string;
944
-
945
- /**
946
- * Profile picture URL
947
- */
948
- profilePicture?: string;
949
-
950
- /**
951
- * The participant's profile picture at full size
952
- */
953
- profilePictureOriginal?: string;
954
-
955
- /**
956
- * Business or Government badge type
957
- */
958
- verifiedType?: string;
959
- }
415
+ export type Speaker = SpacesAPI.SpaceParticipant;
960
416
 
961
417
  export namespace Speaker {
962
- /**
963
- * Organization affiliation label shown on an X profile.
964
- */
965
- export interface AffiliatesHighlightedLabel {
966
- badgeUrl?: string;
967
-
968
- description?: string;
969
-
970
- /**
971
- * Public text, ranges, references, and mention data.
972
- */
973
- longDescription?: { [key: string]: unknown };
974
-
975
- url?: string;
976
-
977
- urlType?: string;
978
-
979
- userLabelDisplayType?: string;
980
-
981
- userLabelType?: string;
982
- }
418
+ export type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
983
419
  }
984
420
 
985
- /**
986
- * A post shared in a Space, & the account that shared it.
987
- */
988
- export interface Sharing {
989
- /**
990
- * X's ID of the sharing, not of the post
991
- */
992
- id?: string;
993
-
994
- /**
995
- * When the post was shared
996
- */
997
- sharedAt?: string;
998
-
999
- /**
1000
- * Public X profile.
1001
- */
1002
- sharedBy?: Shared.UserProfile;
1003
-
1004
- /**
1005
- * Search tweet with author. Zero metrics may mean X omitted counts.
1006
- */
1007
- tweet?: Shared.SearchTweet;
1008
-
1009
- /**
1010
- * When X last changed the sharing
1011
- */
1012
- updatedAt?: string;
1013
- }
421
+ export type Sharing = SpacesAPI.Space.Sharing;
1014
422
  }
1015
423
  }
1016
424
 
@@ -1099,6 +507,8 @@ export interface SpaceSearchParams {
1099
507
 
1100
508
  export declare namespace Spaces {
1101
509
  export {
510
+ type Space as Space,
511
+ type SpaceParticipant as SpaceParticipant,
1102
512
  type SpaceRetrieveResponse as SpaceRetrieveResponse,
1103
513
  type SpaceRetrieveReplayResponse as SpaceRetrieveReplayResponse,
1104
514
  type SpaceSearchResponse as SpaceSearchResponse,