x-twitter-scraper 0.16.0 → 0.18.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 +44 -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 +1512 -0
  141. package/resources/x/sports.d.mts.map +1 -0
  142. package/resources/x/sports.d.ts +1512 -0
  143. package/resources/x/sports.d.ts.map +1 -0
  144. package/resources/x/sports.js +91 -0
  145. package/resources/x/sports.js.map +1 -0
  146. package/resources/x/sports.mjs +87 -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 +70 -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 +1877 -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 +191 -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
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as Shared from "../shared.mjs";
3
+ import * as SpacesAPI from "./spaces.mjs";
3
4
  import { APIPromise } from "../../core/api-promise.mjs";
4
5
  import { RequestOptions } from "../../internal/request-options.mjs";
5
6
  /**
@@ -44,372 +45,235 @@ export declare class Spaces extends APIResource {
44
45
  */
45
46
  search(query: SpaceSearchParams, options?: RequestOptions): APIPromise<SpaceSearchResponse>;
46
47
  }
47
- export interface SpaceRetrieveResponse {
48
+ /**
49
+ * X Space
50
+ */
51
+ export interface Space {
48
52
  /**
49
- * X Space
53
+ * Space ID
54
+ */
55
+ id: string;
56
+ /**
57
+ * Hosts and co-hosts
58
+ */
59
+ admins: Array<SpaceParticipant>;
60
+ /**
61
+ * Accounts X lists as listeners
62
+ */
63
+ listeners: Array<SpaceParticipant>;
64
+ /**
65
+ * Accounts X lists as speakers
66
+ */
67
+ speakers: Array<SpaceParticipant>;
68
+ /**
69
+ * Audio or video kind, as X names it
70
+ */
71
+ contentType?: string;
72
+ /**
73
+ * X's code for who may speak
74
+ */
75
+ conversationControls?: number;
76
+ /**
77
+ * When the Space was made
78
+ */
79
+ createdAt?: string;
80
+ /**
81
+ * Public X profile.
82
+ */
83
+ creator?: Shared.UserProfile;
84
+ /**
85
+ * Whether X lets no more accounts join
86
+ */
87
+ disallowJoin?: boolean;
88
+ /**
89
+ * When the Space ended
90
+ */
91
+ endedAt?: string;
92
+ /**
93
+ * Whether listeners may clip the Space
94
+ */
95
+ isAvailableForClipping?: boolean;
96
+ /**
97
+ * Whether X offers a recording
98
+ */
99
+ isAvailableForReplay?: boolean;
100
+ /**
101
+ * Whether only X employees may join
102
+ */
103
+ isEmployeeOnly?: boolean;
104
+ /**
105
+ * Whether the host locked the Space
106
+ */
107
+ isLocked?: boolean;
108
+ /**
109
+ * Most hosts and co-hosts the Space allows
110
+ */
111
+ maxAdminCapacity?: number;
112
+ /**
113
+ * X's media key for the Space's audio
114
+ */
115
+ mediaKey?: string;
116
+ /**
117
+ * IDs of the accounts the host tagged
118
+ */
119
+ mentionedUserIds?: Array<string>;
120
+ /**
121
+ * Whether anonymous listening is off
122
+ */
123
+ noIncognito?: boolean;
124
+ /**
125
+ * Accounts in the Space now, while it is live
126
+ */
127
+ participantCount?: number;
128
+ /**
129
+ * When the Space was set to start
130
+ */
131
+ scheduledStart?: string;
132
+ /**
133
+ * Posts the hosts and speakers shared in the Space, in X's order. Only when X
134
+ * lists them.
135
+ */
136
+ sharings?: Array<Space.Sharing>;
137
+ /**
138
+ * When the Space went live
139
+ */
140
+ startedAt?: string;
141
+ /**
142
+ * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
143
+ * started) or TimedOut (closed by X, not by its host)
144
+ */
145
+ state?: string;
146
+ /**
147
+ * Space title
148
+ */
149
+ title?: string;
150
+ /**
151
+ * Accounts that listened live
152
+ */
153
+ totalLiveListeners?: number;
154
+ /**
155
+ * Accounts that played the recording
156
+ */
157
+ totalReplayWatched?: number;
158
+ /**
159
+ * Search tweet with author. Zero metrics may mean X omitted counts.
160
+ */
161
+ tweet?: Shared.SearchTweet;
162
+ /**
163
+ * ID of the post that announces the Space
164
+ */
165
+ tweetId?: string;
166
+ /**
167
+ * When X last changed the Space
50
168
  */
51
- space: SpaceRetrieveResponse.Space;
169
+ updatedAt?: string;
52
170
  }
53
- export declare namespace SpaceRetrieveResponse {
171
+ export declare namespace Space {
54
172
  /**
55
- * X Space
173
+ * A post shared in a Space, & the account that shared it.
56
174
  */
57
- interface Space {
58
- /**
59
- * Space ID
60
- */
61
- id: string;
62
- /**
63
- * Hosts and co-hosts
64
- */
65
- admins: Array<Space.Admin>;
175
+ interface Sharing {
66
176
  /**
67
- * Accounts X lists as listeners
177
+ * X's ID of the sharing, not of the post
68
178
  */
69
- listeners: Array<Space.Listener>;
179
+ id?: string;
70
180
  /**
71
- * Accounts X lists as speakers
181
+ * When the post was shared
72
182
  */
73
- speakers: Array<Space.Speaker>;
74
- /**
75
- * Audio or video kind, as X names it
76
- */
77
- contentType?: string;
78
- /**
79
- * X's code for who may speak
80
- */
81
- conversationControls?: number;
82
- /**
83
- * When the Space was made
84
- */
85
- createdAt?: string;
183
+ sharedAt?: string;
86
184
  /**
87
185
  * Public X profile.
88
186
  */
89
- creator?: Shared.UserProfile;
90
- /**
91
- * Whether X lets no more accounts join
92
- */
93
- disallowJoin?: boolean;
94
- /**
95
- * When the Space ended
96
- */
97
- endedAt?: string;
98
- /**
99
- * Whether listeners may clip the Space
100
- */
101
- isAvailableForClipping?: boolean;
102
- /**
103
- * Whether X offers a recording
104
- */
105
- isAvailableForReplay?: boolean;
106
- /**
107
- * Whether only X employees may join
108
- */
109
- isEmployeeOnly?: boolean;
110
- /**
111
- * Whether the host locked the Space
112
- */
113
- isLocked?: boolean;
114
- /**
115
- * Most hosts and co-hosts the Space allows
116
- */
117
- maxAdminCapacity?: number;
118
- /**
119
- * X's media key for the Space's audio
120
- */
121
- mediaKey?: string;
122
- /**
123
- * IDs of the accounts the host tagged
124
- */
125
- mentionedUserIds?: Array<string>;
126
- /**
127
- * Whether anonymous listening is off
128
- */
129
- noIncognito?: boolean;
130
- /**
131
- * Accounts in the Space now, while it is live
132
- */
133
- participantCount?: number;
134
- /**
135
- * When the Space was set to start
136
- */
137
- scheduledStart?: string;
138
- /**
139
- * Posts the hosts and speakers shared in the Space, in X's order. Only when X
140
- * lists them.
141
- */
142
- sharings?: Array<Space.Sharing>;
143
- /**
144
- * When the Space went live
145
- */
146
- startedAt?: string;
147
- /**
148
- * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
149
- * started) or TimedOut (closed by X, not by its host)
150
- */
151
- state?: string;
152
- /**
153
- * Space title
154
- */
155
- title?: string;
156
- /**
157
- * Accounts that listened live
158
- */
159
- totalLiveListeners?: number;
160
- /**
161
- * Accounts that played the recording
162
- */
163
- totalReplayWatched?: number;
187
+ sharedBy?: Shared.UserProfile;
164
188
  /**
165
189
  * Search tweet with author. Zero metrics may mean X omitted counts.
166
190
  */
167
191
  tweet?: Shared.SearchTweet;
168
192
  /**
169
- * ID of the post that announces the Space
170
- */
171
- tweetId?: string;
172
- /**
173
- * When X last changed the Space
193
+ * When X last changed the sharing
174
194
  */
175
195
  updatedAt?: string;
176
196
  }
197
+ }
198
+ /**
199
+ * An account on a Space's stage or in its audience, as X lists it there.
200
+ */
201
+ export interface SpaceParticipant {
202
+ id: string;
203
+ /**
204
+ * Name the account shows in the Space
205
+ */
206
+ name: string;
207
+ username: string;
208
+ /**
209
+ * Organization affiliation label shown on an X profile.
210
+ */
211
+ affiliatesHighlightedLabel?: SpaceParticipant.AffiliatesHighlightedLabel;
212
+ /**
213
+ * Whether the account has X Premium verification
214
+ */
215
+ isBlueVerified?: boolean;
216
+ /**
217
+ * Whether a host muted the account
218
+ */
219
+ isMutedByAdmin?: boolean;
220
+ /**
221
+ * Whether the account muted itself
222
+ */
223
+ isMutedByGuest?: boolean;
224
+ /**
225
+ * Whether X shows a verified badge in the Space
226
+ */
227
+ isVerified?: boolean;
228
+ /**
229
+ * When the account joined the Space
230
+ */
231
+ joinedAt?: string;
232
+ /**
233
+ * The account's ID in X's broadcast service
234
+ */
235
+ periscopeUserId?: string;
236
+ /**
237
+ * Profile picture URL
238
+ */
239
+ profilePicture?: string;
240
+ /**
241
+ * The participant's profile picture at full size
242
+ */
243
+ profilePictureOriginal?: string;
244
+ /**
245
+ * Business or Government badge type
246
+ */
247
+ verifiedType?: string;
248
+ }
249
+ export declare namespace SpaceParticipant {
250
+ /**
251
+ * Organization affiliation label shown on an X profile.
252
+ */
253
+ type AffiliatesHighlightedLabel = Shared.UserProfile.AffiliatesHighlightedLabel;
254
+ }
255
+ export interface SpaceRetrieveResponse {
256
+ /**
257
+ * X Space
258
+ */
259
+ space: Space;
260
+ }
261
+ export declare namespace SpaceRetrieveResponse {
262
+ type Space = SpacesAPI.Space;
177
263
  namespace Space {
178
- /**
179
- * An account on a Space's stage or in its audience, as X lists it there.
180
- */
181
- interface Admin {
182
- id: string;
183
- /**
184
- * Name the account shows in the Space
185
- */
186
- name: string;
187
- username: string;
188
- /**
189
- * Organization affiliation label shown on an X profile.
190
- */
191
- affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
192
- /**
193
- * Whether the account has X Premium verification
194
- */
195
- isBlueVerified?: boolean;
196
- /**
197
- * Whether a host muted the account
198
- */
199
- isMutedByAdmin?: boolean;
200
- /**
201
- * Whether the account muted itself
202
- */
203
- isMutedByGuest?: boolean;
204
- /**
205
- * Whether X shows a verified badge in the Space
206
- */
207
- isVerified?: boolean;
208
- /**
209
- * When the account joined the Space
210
- */
211
- joinedAt?: string;
212
- /**
213
- * The account's ID in X's broadcast service
214
- */
215
- periscopeUserId?: string;
216
- /**
217
- * Profile picture URL
218
- */
219
- profilePicture?: string;
220
- /**
221
- * The participant's profile picture at full size
222
- */
223
- profilePictureOriginal?: string;
224
- /**
225
- * Business or Government badge type
226
- */
227
- verifiedType?: string;
228
- }
264
+ type Admin = SpacesAPI.SpaceParticipant;
229
265
  namespace Admin {
230
- /**
231
- * Organization affiliation label shown on an X profile.
232
- */
233
- interface AffiliatesHighlightedLabel {
234
- badgeUrl?: string;
235
- description?: string;
236
- /**
237
- * Public text, ranges, references, and mention data.
238
- */
239
- longDescription?: {
240
- [key: string]: unknown;
241
- };
242
- url?: string;
243
- urlType?: string;
244
- userLabelDisplayType?: string;
245
- userLabelType?: string;
246
- }
247
- }
248
- /**
249
- * An account on a Space's stage or in its audience, as X lists it there.
250
- */
251
- interface Listener {
252
- id: string;
253
- /**
254
- * Name the account shows in the Space
255
- */
256
- name: string;
257
- username: string;
258
- /**
259
- * Organization affiliation label shown on an X profile.
260
- */
261
- affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
262
- /**
263
- * Whether the account has X Premium verification
264
- */
265
- isBlueVerified?: boolean;
266
- /**
267
- * Whether a host muted the account
268
- */
269
- isMutedByAdmin?: boolean;
270
- /**
271
- * Whether the account muted itself
272
- */
273
- isMutedByGuest?: boolean;
274
- /**
275
- * Whether X shows a verified badge in the Space
276
- */
277
- isVerified?: boolean;
278
- /**
279
- * When the account joined the Space
280
- */
281
- joinedAt?: string;
282
- /**
283
- * The account's ID in X's broadcast service
284
- */
285
- periscopeUserId?: string;
286
- /**
287
- * Profile picture URL
288
- */
289
- profilePicture?: string;
290
- /**
291
- * The participant's profile picture at full size
292
- */
293
- profilePictureOriginal?: string;
294
- /**
295
- * Business or Government badge type
296
- */
297
- verifiedType?: string;
266
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
298
267
  }
268
+ type Listener = SpacesAPI.SpaceParticipant;
299
269
  namespace Listener {
300
- /**
301
- * Organization affiliation label shown on an X profile.
302
- */
303
- interface AffiliatesHighlightedLabel {
304
- badgeUrl?: string;
305
- description?: string;
306
- /**
307
- * Public text, ranges, references, and mention data.
308
- */
309
- longDescription?: {
310
- [key: string]: unknown;
311
- };
312
- url?: string;
313
- urlType?: string;
314
- userLabelDisplayType?: string;
315
- userLabelType?: string;
316
- }
317
- }
318
- /**
319
- * An account on a Space's stage or in its audience, as X lists it there.
320
- */
321
- interface Speaker {
322
- id: string;
323
- /**
324
- * Name the account shows in the Space
325
- */
326
- name: string;
327
- username: string;
328
- /**
329
- * Organization affiliation label shown on an X profile.
330
- */
331
- affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
332
- /**
333
- * Whether the account has X Premium verification
334
- */
335
- isBlueVerified?: boolean;
336
- /**
337
- * Whether a host muted the account
338
- */
339
- isMutedByAdmin?: boolean;
340
- /**
341
- * Whether the account muted itself
342
- */
343
- isMutedByGuest?: boolean;
344
- /**
345
- * Whether X shows a verified badge in the Space
346
- */
347
- isVerified?: boolean;
348
- /**
349
- * When the account joined the Space
350
- */
351
- joinedAt?: string;
352
- /**
353
- * The account's ID in X's broadcast service
354
- */
355
- periscopeUserId?: string;
356
- /**
357
- * Profile picture URL
358
- */
359
- profilePicture?: string;
360
- /**
361
- * The participant's profile picture at full size
362
- */
363
- profilePictureOriginal?: string;
364
- /**
365
- * Business or Government badge type
366
- */
367
- verifiedType?: string;
270
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
368
271
  }
272
+ type Speaker = SpacesAPI.SpaceParticipant;
369
273
  namespace Speaker {
370
- /**
371
- * Organization affiliation label shown on an X profile.
372
- */
373
- interface AffiliatesHighlightedLabel {
374
- badgeUrl?: string;
375
- description?: string;
376
- /**
377
- * Public text, ranges, references, and mention data.
378
- */
379
- longDescription?: {
380
- [key: string]: unknown;
381
- };
382
- url?: string;
383
- urlType?: string;
384
- userLabelDisplayType?: string;
385
- userLabelType?: string;
386
- }
387
- }
388
- /**
389
- * A post shared in a Space, & the account that shared it.
390
- */
391
- interface Sharing {
392
- /**
393
- * X's ID of the sharing, not of the post
394
- */
395
- id?: string;
396
- /**
397
- * When the post was shared
398
- */
399
- sharedAt?: string;
400
- /**
401
- * Public X profile.
402
- */
403
- sharedBy?: Shared.UserProfile;
404
- /**
405
- * Search tweet with author. Zero metrics may mean X omitted counts.
406
- */
407
- tweet?: Shared.SearchTweet;
408
- /**
409
- * When X last changed the sharing
410
- */
411
- updatedAt?: string;
274
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
412
275
  }
276
+ type Sharing = SpacesAPI.Space.Sharing;
413
277
  }
414
278
  }
415
279
  export interface SpaceRetrieveReplayResponse {
@@ -443,368 +307,24 @@ export interface SpaceSearchResponse {
443
307
  /**
444
308
  * Public Spaces, in the order the posts share them
445
309
  */
446
- spaces: Array<SpaceSearchResponse.Space>;
310
+ spaces: Array<Space>;
447
311
  }
448
312
  export declare namespace SpaceSearchResponse {
449
- /**
450
- * X Space
451
- */
452
- interface Space {
453
- /**
454
- * Space ID
455
- */
456
- id: string;
457
- /**
458
- * Hosts and co-hosts
459
- */
460
- admins: Array<Space.Admin>;
461
- /**
462
- * Accounts X lists as listeners
463
- */
464
- listeners: Array<Space.Listener>;
465
- /**
466
- * Accounts X lists as speakers
467
- */
468
- speakers: Array<Space.Speaker>;
469
- /**
470
- * Audio or video kind, as X names it
471
- */
472
- contentType?: string;
473
- /**
474
- * X's code for who may speak
475
- */
476
- conversationControls?: number;
477
- /**
478
- * When the Space was made
479
- */
480
- createdAt?: string;
481
- /**
482
- * Public X profile.
483
- */
484
- creator?: Shared.UserProfile;
485
- /**
486
- * Whether X lets no more accounts join
487
- */
488
- disallowJoin?: boolean;
489
- /**
490
- * When the Space ended
491
- */
492
- endedAt?: string;
493
- /**
494
- * Whether listeners may clip the Space
495
- */
496
- isAvailableForClipping?: boolean;
497
- /**
498
- * Whether X offers a recording
499
- */
500
- isAvailableForReplay?: boolean;
501
- /**
502
- * Whether only X employees may join
503
- */
504
- isEmployeeOnly?: boolean;
505
- /**
506
- * Whether the host locked the Space
507
- */
508
- isLocked?: boolean;
509
- /**
510
- * Most hosts and co-hosts the Space allows
511
- */
512
- maxAdminCapacity?: number;
513
- /**
514
- * X's media key for the Space's audio
515
- */
516
- mediaKey?: string;
517
- /**
518
- * IDs of the accounts the host tagged
519
- */
520
- mentionedUserIds?: Array<string>;
521
- /**
522
- * Whether anonymous listening is off
523
- */
524
- noIncognito?: boolean;
525
- /**
526
- * Accounts in the Space now, while it is live
527
- */
528
- participantCount?: number;
529
- /**
530
- * When the Space was set to start
531
- */
532
- scheduledStart?: string;
533
- /**
534
- * Posts the hosts and speakers shared in the Space, in X's order. Only when X
535
- * lists them.
536
- */
537
- sharings?: Array<Space.Sharing>;
538
- /**
539
- * When the Space went live
540
- */
541
- startedAt?: string;
542
- /**
543
- * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
544
- * started) or TimedOut (closed by X, not by its host)
545
- */
546
- state?: string;
547
- /**
548
- * Space title
549
- */
550
- title?: string;
551
- /**
552
- * Accounts that listened live
553
- */
554
- totalLiveListeners?: number;
555
- /**
556
- * Accounts that played the recording
557
- */
558
- totalReplayWatched?: number;
559
- /**
560
- * Search tweet with author. Zero metrics may mean X omitted counts.
561
- */
562
- tweet?: Shared.SearchTweet;
563
- /**
564
- * ID of the post that announces the Space
565
- */
566
- tweetId?: string;
567
- /**
568
- * When X last changed the Space
569
- */
570
- updatedAt?: string;
571
- }
313
+ type Space = SpacesAPI.Space;
572
314
  namespace Space {
573
- /**
574
- * An account on a Space's stage or in its audience, as X lists it there.
575
- */
576
- interface Admin {
577
- id: string;
578
- /**
579
- * Name the account shows in the Space
580
- */
581
- name: string;
582
- username: string;
583
- /**
584
- * Organization affiliation label shown on an X profile.
585
- */
586
- affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
587
- /**
588
- * Whether the account has X Premium verification
589
- */
590
- isBlueVerified?: boolean;
591
- /**
592
- * Whether a host muted the account
593
- */
594
- isMutedByAdmin?: boolean;
595
- /**
596
- * Whether the account muted itself
597
- */
598
- isMutedByGuest?: boolean;
599
- /**
600
- * Whether X shows a verified badge in the Space
601
- */
602
- isVerified?: boolean;
603
- /**
604
- * When the account joined the Space
605
- */
606
- joinedAt?: string;
607
- /**
608
- * The account's ID in X's broadcast service
609
- */
610
- periscopeUserId?: string;
611
- /**
612
- * Profile picture URL
613
- */
614
- profilePicture?: string;
615
- /**
616
- * The participant's profile picture at full size
617
- */
618
- profilePictureOriginal?: string;
619
- /**
620
- * Business or Government badge type
621
- */
622
- verifiedType?: string;
623
- }
315
+ type Admin = SpacesAPI.SpaceParticipant;
624
316
  namespace Admin {
625
- /**
626
- * Organization affiliation label shown on an X profile.
627
- */
628
- interface AffiliatesHighlightedLabel {
629
- badgeUrl?: string;
630
- description?: string;
631
- /**
632
- * Public text, ranges, references, and mention data.
633
- */
634
- longDescription?: {
635
- [key: string]: unknown;
636
- };
637
- url?: string;
638
- urlType?: string;
639
- userLabelDisplayType?: string;
640
- userLabelType?: string;
641
- }
642
- }
643
- /**
644
- * An account on a Space's stage or in its audience, as X lists it there.
645
- */
646
- interface Listener {
647
- id: string;
648
- /**
649
- * Name the account shows in the Space
650
- */
651
- name: string;
652
- username: string;
653
- /**
654
- * Organization affiliation label shown on an X profile.
655
- */
656
- affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
657
- /**
658
- * Whether the account has X Premium verification
659
- */
660
- isBlueVerified?: boolean;
661
- /**
662
- * Whether a host muted the account
663
- */
664
- isMutedByAdmin?: boolean;
665
- /**
666
- * Whether the account muted itself
667
- */
668
- isMutedByGuest?: boolean;
669
- /**
670
- * Whether X shows a verified badge in the Space
671
- */
672
- isVerified?: boolean;
673
- /**
674
- * When the account joined the Space
675
- */
676
- joinedAt?: string;
677
- /**
678
- * The account's ID in X's broadcast service
679
- */
680
- periscopeUserId?: string;
681
- /**
682
- * Profile picture URL
683
- */
684
- profilePicture?: string;
685
- /**
686
- * The participant's profile picture at full size
687
- */
688
- profilePictureOriginal?: string;
689
- /**
690
- * Business or Government badge type
691
- */
692
- verifiedType?: string;
317
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
693
318
  }
319
+ type Listener = SpacesAPI.SpaceParticipant;
694
320
  namespace Listener {
695
- /**
696
- * Organization affiliation label shown on an X profile.
697
- */
698
- interface AffiliatesHighlightedLabel {
699
- badgeUrl?: string;
700
- description?: string;
701
- /**
702
- * Public text, ranges, references, and mention data.
703
- */
704
- longDescription?: {
705
- [key: string]: unknown;
706
- };
707
- url?: string;
708
- urlType?: string;
709
- userLabelDisplayType?: string;
710
- userLabelType?: string;
711
- }
712
- }
713
- /**
714
- * An account on a Space's stage or in its audience, as X lists it there.
715
- */
716
- interface Speaker {
717
- id: string;
718
- /**
719
- * Name the account shows in the Space
720
- */
721
- name: string;
722
- username: string;
723
- /**
724
- * Organization affiliation label shown on an X profile.
725
- */
726
- affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
727
- /**
728
- * Whether the account has X Premium verification
729
- */
730
- isBlueVerified?: boolean;
731
- /**
732
- * Whether a host muted the account
733
- */
734
- isMutedByAdmin?: boolean;
735
- /**
736
- * Whether the account muted itself
737
- */
738
- isMutedByGuest?: boolean;
739
- /**
740
- * Whether X shows a verified badge in the Space
741
- */
742
- isVerified?: boolean;
743
- /**
744
- * When the account joined the Space
745
- */
746
- joinedAt?: string;
747
- /**
748
- * The account's ID in X's broadcast service
749
- */
750
- periscopeUserId?: string;
751
- /**
752
- * Profile picture URL
753
- */
754
- profilePicture?: string;
755
- /**
756
- * The participant's profile picture at full size
757
- */
758
- profilePictureOriginal?: string;
759
- /**
760
- * Business or Government badge type
761
- */
762
- verifiedType?: string;
321
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
763
322
  }
323
+ type Speaker = SpacesAPI.SpaceParticipant;
764
324
  namespace Speaker {
765
- /**
766
- * Organization affiliation label shown on an X profile.
767
- */
768
- interface AffiliatesHighlightedLabel {
769
- badgeUrl?: string;
770
- description?: string;
771
- /**
772
- * Public text, ranges, references, and mention data.
773
- */
774
- longDescription?: {
775
- [key: string]: unknown;
776
- };
777
- url?: string;
778
- urlType?: string;
779
- userLabelDisplayType?: string;
780
- userLabelType?: string;
781
- }
782
- }
783
- /**
784
- * A post shared in a Space, & the account that shared it.
785
- */
786
- interface Sharing {
787
- /**
788
- * X's ID of the sharing, not of the post
789
- */
790
- id?: string;
791
- /**
792
- * When the post was shared
793
- */
794
- sharedAt?: string;
795
- /**
796
- * Public X profile.
797
- */
798
- sharedBy?: Shared.UserProfile;
799
- /**
800
- * Search tweet with author. Zero metrics may mean X omitted counts.
801
- */
802
- tweet?: Shared.SearchTweet;
803
- /**
804
- * When X last changed the sharing
805
- */
806
- updatedAt?: string;
325
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
807
326
  }
327
+ type Sharing = SpacesAPI.Space.Sharing;
808
328
  }
809
329
  }
810
330
  export interface SpaceRetrieveParams {
@@ -881,6 +401,6 @@ export interface SpaceSearchParams {
881
401
  queryType?: 'Latest' | 'Top' | 'Live' | 'Upcoming';
882
402
  }
883
403
  export declare namespace Spaces {
884
- export { type SpaceRetrieveResponse as SpaceRetrieveResponse, type SpaceRetrieveReplayResponse as SpaceRetrieveReplayResponse, type SpaceSearchResponse as SpaceSearchResponse, type SpaceRetrieveParams as SpaceRetrieveParams, type SpaceRetrieveReplayParams as SpaceRetrieveReplayParams, type SpaceSearchParams as SpaceSearchParams, };
404
+ export { type Space as Space, type SpaceParticipant as SpaceParticipant, type SpaceRetrieveResponse as SpaceRetrieveResponse, type SpaceRetrieveReplayResponse as SpaceRetrieveReplayResponse, type SpaceSearchResponse as SpaceSearchResponse, type SpaceRetrieveParams as SpaceRetrieveParams, type SpaceRetrieveReplayParams as SpaceRetrieveReplayParams, type SpaceSearchParams as SpaceSearchParams, };
885
405
  }
886
406
  //# sourceMappingURL=spaces.d.mts.map