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