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
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as Shared from "../shared.js";
3
+ import * as SpacesAPI from "./spaces.js";
3
4
  import { APIPromise } from "../../core/api-promise.js";
4
5
  import { RequestOptions } from "../../internal/request-options.js";
5
6
  /**
@@ -44,360 +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
- * Business or Government badge type
222
- */
223
- verifiedType?: string;
224
- }
264
+ type Admin = SpacesAPI.SpaceParticipant;
225
265
  namespace Admin {
226
- /**
227
- * Organization affiliation label shown on an X profile.
228
- */
229
- interface AffiliatesHighlightedLabel {
230
- badgeUrl?: string;
231
- description?: string;
232
- /**
233
- * Public text, ranges, references, and mention data.
234
- */
235
- longDescription?: {
236
- [key: string]: unknown;
237
- };
238
- url?: string;
239
- urlType?: string;
240
- userLabelDisplayType?: string;
241
- userLabelType?: string;
242
- }
243
- }
244
- /**
245
- * An account on a Space's stage or in its audience, as X lists it there.
246
- */
247
- interface Listener {
248
- id: string;
249
- /**
250
- * Name the account shows in the Space
251
- */
252
- name: string;
253
- username: string;
254
- /**
255
- * Organization affiliation label shown on an X profile.
256
- */
257
- affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
258
- /**
259
- * Whether the account has X Premium verification
260
- */
261
- isBlueVerified?: boolean;
262
- /**
263
- * Whether a host muted the account
264
- */
265
- isMutedByAdmin?: boolean;
266
- /**
267
- * Whether the account muted itself
268
- */
269
- isMutedByGuest?: boolean;
270
- /**
271
- * Whether X shows a verified badge in the Space
272
- */
273
- isVerified?: boolean;
274
- /**
275
- * When the account joined the Space
276
- */
277
- joinedAt?: string;
278
- /**
279
- * The account's ID in X's broadcast service
280
- */
281
- periscopeUserId?: string;
282
- /**
283
- * Profile picture URL
284
- */
285
- profilePicture?: string;
286
- /**
287
- * Business or Government badge type
288
- */
289
- verifiedType?: string;
266
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
290
267
  }
268
+ type Listener = SpacesAPI.SpaceParticipant;
291
269
  namespace Listener {
292
- /**
293
- * Organization affiliation label shown on an X profile.
294
- */
295
- interface AffiliatesHighlightedLabel {
296
- badgeUrl?: string;
297
- description?: string;
298
- /**
299
- * Public text, ranges, references, and mention data.
300
- */
301
- longDescription?: {
302
- [key: string]: unknown;
303
- };
304
- url?: string;
305
- urlType?: string;
306
- userLabelDisplayType?: string;
307
- userLabelType?: string;
308
- }
309
- }
310
- /**
311
- * An account on a Space's stage or in its audience, as X lists it there.
312
- */
313
- interface Speaker {
314
- id: string;
315
- /**
316
- * Name the account shows in the Space
317
- */
318
- name: string;
319
- username: string;
320
- /**
321
- * Organization affiliation label shown on an X profile.
322
- */
323
- affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
324
- /**
325
- * Whether the account has X Premium verification
326
- */
327
- isBlueVerified?: boolean;
328
- /**
329
- * Whether a host muted the account
330
- */
331
- isMutedByAdmin?: boolean;
332
- /**
333
- * Whether the account muted itself
334
- */
335
- isMutedByGuest?: boolean;
336
- /**
337
- * Whether X shows a verified badge in the Space
338
- */
339
- isVerified?: boolean;
340
- /**
341
- * When the account joined the Space
342
- */
343
- joinedAt?: string;
344
- /**
345
- * The account's ID in X's broadcast service
346
- */
347
- periscopeUserId?: string;
348
- /**
349
- * Profile picture URL
350
- */
351
- profilePicture?: string;
352
- /**
353
- * Business or Government badge type
354
- */
355
- verifiedType?: string;
270
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
356
271
  }
272
+ type Speaker = SpacesAPI.SpaceParticipant;
357
273
  namespace Speaker {
358
- /**
359
- * Organization affiliation label shown on an X profile.
360
- */
361
- interface AffiliatesHighlightedLabel {
362
- badgeUrl?: string;
363
- description?: string;
364
- /**
365
- * Public text, ranges, references, and mention data.
366
- */
367
- longDescription?: {
368
- [key: string]: unknown;
369
- };
370
- url?: string;
371
- urlType?: string;
372
- userLabelDisplayType?: string;
373
- userLabelType?: string;
374
- }
375
- }
376
- /**
377
- * A post shared in a Space, & the account that shared it.
378
- */
379
- interface Sharing {
380
- /**
381
- * X's ID of the sharing, not of the post
382
- */
383
- id?: string;
384
- /**
385
- * When the post was shared
386
- */
387
- sharedAt?: string;
388
- /**
389
- * Public X profile.
390
- */
391
- sharedBy?: Shared.UserProfile;
392
- /**
393
- * Search tweet with author. Zero metrics may mean X omitted counts.
394
- */
395
- tweet?: Shared.SearchTweet;
396
- /**
397
- * When X last changed the sharing
398
- */
399
- updatedAt?: string;
274
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
400
275
  }
276
+ type Sharing = SpacesAPI.Space.Sharing;
401
277
  }
402
278
  }
403
279
  export interface SpaceRetrieveReplayResponse {
@@ -431,356 +307,24 @@ export interface SpaceSearchResponse {
431
307
  /**
432
308
  * Public Spaces, in the order the posts share them
433
309
  */
434
- spaces: Array<SpaceSearchResponse.Space>;
310
+ spaces: Array<Space>;
435
311
  }
436
312
  export declare namespace SpaceSearchResponse {
437
- /**
438
- * X Space
439
- */
440
- interface Space {
441
- /**
442
- * Space ID
443
- */
444
- id: string;
445
- /**
446
- * Hosts and co-hosts
447
- */
448
- admins: Array<Space.Admin>;
449
- /**
450
- * Accounts X lists as listeners
451
- */
452
- listeners: Array<Space.Listener>;
453
- /**
454
- * Accounts X lists as speakers
455
- */
456
- speakers: Array<Space.Speaker>;
457
- /**
458
- * Audio or video kind, as X names it
459
- */
460
- contentType?: string;
461
- /**
462
- * X's code for who may speak
463
- */
464
- conversationControls?: number;
465
- /**
466
- * When the Space was made
467
- */
468
- createdAt?: string;
469
- /**
470
- * Public X profile.
471
- */
472
- creator?: Shared.UserProfile;
473
- /**
474
- * Whether X lets no more accounts join
475
- */
476
- disallowJoin?: boolean;
477
- /**
478
- * When the Space ended
479
- */
480
- endedAt?: string;
481
- /**
482
- * Whether listeners may clip the Space
483
- */
484
- isAvailableForClipping?: boolean;
485
- /**
486
- * Whether X offers a recording
487
- */
488
- isAvailableForReplay?: boolean;
489
- /**
490
- * Whether only X employees may join
491
- */
492
- isEmployeeOnly?: boolean;
493
- /**
494
- * Whether the host locked the Space
495
- */
496
- isLocked?: boolean;
497
- /**
498
- * Most hosts and co-hosts the Space allows
499
- */
500
- maxAdminCapacity?: number;
501
- /**
502
- * X's media key for the Space's audio
503
- */
504
- mediaKey?: string;
505
- /**
506
- * IDs of the accounts the host tagged
507
- */
508
- mentionedUserIds?: Array<string>;
509
- /**
510
- * Whether anonymous listening is off
511
- */
512
- noIncognito?: boolean;
513
- /**
514
- * Accounts in the Space now, while it is live
515
- */
516
- participantCount?: number;
517
- /**
518
- * When the Space was set to start
519
- */
520
- scheduledStart?: string;
521
- /**
522
- * Posts the hosts and speakers shared in the Space, in X's order. Only when X
523
- * lists them.
524
- */
525
- sharings?: Array<Space.Sharing>;
526
- /**
527
- * When the Space went live
528
- */
529
- startedAt?: string;
530
- /**
531
- * NotStarted (scheduled), Running (live), Ended, Canceled (scheduled, never
532
- * started) or TimedOut (closed by X, not by its host)
533
- */
534
- state?: string;
535
- /**
536
- * Space title
537
- */
538
- title?: string;
539
- /**
540
- * Accounts that listened live
541
- */
542
- totalLiveListeners?: number;
543
- /**
544
- * Accounts that played the recording
545
- */
546
- totalReplayWatched?: number;
547
- /**
548
- * Search tweet with author. Zero metrics may mean X omitted counts.
549
- */
550
- tweet?: Shared.SearchTweet;
551
- /**
552
- * ID of the post that announces the Space
553
- */
554
- tweetId?: string;
555
- /**
556
- * When X last changed the Space
557
- */
558
- updatedAt?: string;
559
- }
313
+ type Space = SpacesAPI.Space;
560
314
  namespace Space {
561
- /**
562
- * An account on a Space's stage or in its audience, as X lists it there.
563
- */
564
- interface Admin {
565
- id: string;
566
- /**
567
- * Name the account shows in the Space
568
- */
569
- name: string;
570
- username: string;
571
- /**
572
- * Organization affiliation label shown on an X profile.
573
- */
574
- affiliatesHighlightedLabel?: Admin.AffiliatesHighlightedLabel;
575
- /**
576
- * Whether the account has X Premium verification
577
- */
578
- isBlueVerified?: boolean;
579
- /**
580
- * Whether a host muted the account
581
- */
582
- isMutedByAdmin?: boolean;
583
- /**
584
- * Whether the account muted itself
585
- */
586
- isMutedByGuest?: boolean;
587
- /**
588
- * Whether X shows a verified badge in the Space
589
- */
590
- isVerified?: boolean;
591
- /**
592
- * When the account joined the Space
593
- */
594
- joinedAt?: string;
595
- /**
596
- * The account's ID in X's broadcast service
597
- */
598
- periscopeUserId?: string;
599
- /**
600
- * Profile picture URL
601
- */
602
- profilePicture?: string;
603
- /**
604
- * Business or Government badge type
605
- */
606
- verifiedType?: string;
607
- }
315
+ type Admin = SpacesAPI.SpaceParticipant;
608
316
  namespace Admin {
609
- /**
610
- * Organization affiliation label shown on an X profile.
611
- */
612
- interface AffiliatesHighlightedLabel {
613
- badgeUrl?: string;
614
- description?: string;
615
- /**
616
- * Public text, ranges, references, and mention data.
617
- */
618
- longDescription?: {
619
- [key: string]: unknown;
620
- };
621
- url?: string;
622
- urlType?: string;
623
- userLabelDisplayType?: string;
624
- userLabelType?: string;
625
- }
626
- }
627
- /**
628
- * An account on a Space's stage or in its audience, as X lists it there.
629
- */
630
- interface Listener {
631
- id: string;
632
- /**
633
- * Name the account shows in the Space
634
- */
635
- name: string;
636
- username: string;
637
- /**
638
- * Organization affiliation label shown on an X profile.
639
- */
640
- affiliatesHighlightedLabel?: Listener.AffiliatesHighlightedLabel;
641
- /**
642
- * Whether the account has X Premium verification
643
- */
644
- isBlueVerified?: boolean;
645
- /**
646
- * Whether a host muted the account
647
- */
648
- isMutedByAdmin?: boolean;
649
- /**
650
- * Whether the account muted itself
651
- */
652
- isMutedByGuest?: boolean;
653
- /**
654
- * Whether X shows a verified badge in the Space
655
- */
656
- isVerified?: boolean;
657
- /**
658
- * When the account joined the Space
659
- */
660
- joinedAt?: string;
661
- /**
662
- * The account's ID in X's broadcast service
663
- */
664
- periscopeUserId?: string;
665
- /**
666
- * Profile picture URL
667
- */
668
- profilePicture?: string;
669
- /**
670
- * Business or Government badge type
671
- */
672
- verifiedType?: string;
317
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
673
318
  }
319
+ type Listener = SpacesAPI.SpaceParticipant;
674
320
  namespace Listener {
675
- /**
676
- * Organization affiliation label shown on an X profile.
677
- */
678
- interface AffiliatesHighlightedLabel {
679
- badgeUrl?: string;
680
- description?: string;
681
- /**
682
- * Public text, ranges, references, and mention data.
683
- */
684
- longDescription?: {
685
- [key: string]: unknown;
686
- };
687
- url?: string;
688
- urlType?: string;
689
- userLabelDisplayType?: string;
690
- userLabelType?: string;
691
- }
692
- }
693
- /**
694
- * An account on a Space's stage or in its audience, as X lists it there.
695
- */
696
- interface Speaker {
697
- id: string;
698
- /**
699
- * Name the account shows in the Space
700
- */
701
- name: string;
702
- username: string;
703
- /**
704
- * Organization affiliation label shown on an X profile.
705
- */
706
- affiliatesHighlightedLabel?: Speaker.AffiliatesHighlightedLabel;
707
- /**
708
- * Whether the account has X Premium verification
709
- */
710
- isBlueVerified?: boolean;
711
- /**
712
- * Whether a host muted the account
713
- */
714
- isMutedByAdmin?: boolean;
715
- /**
716
- * Whether the account muted itself
717
- */
718
- isMutedByGuest?: boolean;
719
- /**
720
- * Whether X shows a verified badge in the Space
721
- */
722
- isVerified?: boolean;
723
- /**
724
- * When the account joined the Space
725
- */
726
- joinedAt?: string;
727
- /**
728
- * The account's ID in X's broadcast service
729
- */
730
- periscopeUserId?: string;
731
- /**
732
- * Profile picture URL
733
- */
734
- profilePicture?: string;
735
- /**
736
- * Business or Government badge type
737
- */
738
- verifiedType?: string;
321
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
739
322
  }
323
+ type Speaker = SpacesAPI.SpaceParticipant;
740
324
  namespace Speaker {
741
- /**
742
- * Organization affiliation label shown on an X profile.
743
- */
744
- interface AffiliatesHighlightedLabel {
745
- badgeUrl?: string;
746
- description?: string;
747
- /**
748
- * Public text, ranges, references, and mention data.
749
- */
750
- longDescription?: {
751
- [key: string]: unknown;
752
- };
753
- url?: string;
754
- urlType?: string;
755
- userLabelDisplayType?: string;
756
- userLabelType?: string;
757
- }
758
- }
759
- /**
760
- * A post shared in a Space, & the account that shared it.
761
- */
762
- interface Sharing {
763
- /**
764
- * X's ID of the sharing, not of the post
765
- */
766
- id?: string;
767
- /**
768
- * When the post was shared
769
- */
770
- sharedAt?: string;
771
- /**
772
- * Public X profile.
773
- */
774
- sharedBy?: Shared.UserProfile;
775
- /**
776
- * Search tweet with author. Zero metrics may mean X omitted counts.
777
- */
778
- tweet?: Shared.SearchTweet;
779
- /**
780
- * When X last changed the sharing
781
- */
782
- updatedAt?: string;
325
+ type AffiliatesHighlightedLabel = SpacesAPI.SpaceParticipant.AffiliatesHighlightedLabel;
783
326
  }
327
+ type Sharing = SpacesAPI.Space.Sharing;
784
328
  }
785
329
  }
786
330
  export interface SpaceRetrieveParams {
@@ -857,6 +401,6 @@ export interface SpaceSearchParams {
857
401
  queryType?: 'Latest' | 'Top' | 'Live' | 'Upcoming';
858
402
  }
859
403
  export declare namespace Spaces {
860
- 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, };
861
405
  }
862
406
  //# sourceMappingURL=spaces.d.ts.map