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
@@ -22,6 +22,7 @@ export {
22
22
  type AccountReauthResponse,
23
23
  type AccountCreateParams,
24
24
  type AccountListParams,
25
+ type AccountBulkRetryParams,
25
26
  type AccountReauthParams,
26
27
  } from './accounts';
27
28
  export {
@@ -48,6 +49,8 @@ export {
48
49
  export { Broadcasts, type BroadcastRetrieveResponse, type BroadcastRetrieveParams } from './broadcasts';
49
50
  export {
50
51
  Communities,
52
+ type CommunityAnalytics,
53
+ type CommunityAnalyticsMetric,
51
54
  type CommunityCreateResponse,
52
55
  type CommunityDeleteResponse,
53
56
  type CommunityListSuggestedResponse,
@@ -59,6 +62,7 @@ export {
59
62
  type CommunityListPopularParams,
60
63
  type CommunityListSuggestedParams,
61
64
  type CommunityListTopicsParams,
65
+ type CommunityRetrieveAnalyticsParams,
62
66
  type CommunityRetrieveInfoParams,
63
67
  type CommunityRetrieveMembersParams,
64
68
  type CommunityRetrieveModeratorsParams,
@@ -67,6 +71,9 @@ export {
67
71
  } from './communities/index';
68
72
  export {
69
73
  CommunityNotes,
74
+ type CommunityNotesContributor,
75
+ type CommunityNotesRatingOutcome,
76
+ type PaginatedCommunityNotes,
70
77
  type CommunityNoteListContributorDeletedNotesResponse,
71
78
  type CommunityNoteListContributorNotesResponse,
72
79
  type CommunityNoteRetrieveContributorResponse,
@@ -86,6 +93,7 @@ export {
86
93
  export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from './followers';
87
94
  export {
88
95
  Jobs,
96
+ type Job,
89
97
  type JobRetrieveResponse,
90
98
  type JobListLocationsResponse,
91
99
  type JobSearchResponse,
@@ -123,6 +131,8 @@ export {
123
131
  } from './profile';
124
132
  export {
125
133
  Spaces,
134
+ type Space,
135
+ type SpaceParticipant,
126
136
  type SpaceRetrieveResponse,
127
137
  type SpaceRetrieveReplayResponse,
128
138
  type SpaceSearchResponse,
@@ -212,6 +222,7 @@ export {
212
222
  export { WriteActions, type WriteActionRetrieveResponse } from './write-actions';
213
223
  export {
214
224
  X,
225
+ type TrendLocation,
215
226
  type XAutocompleteSearchResponse,
216
227
  type XGetArticleResponse,
217
228
  type XGetHashflagsResponse,
@@ -232,3 +243,62 @@ export {
232
243
  type XGetTrendsHistoryParams,
233
244
  type XSearchPlacesParams,
234
245
  } from './x';
246
+ export {
247
+ Sports,
248
+ type FootballLeague,
249
+ type FootballTeamScore,
250
+ type FootballSchedulePeriod,
251
+ type FootballOdds,
252
+ type FootballScheduleGameOdds,
253
+ type FootballScheduleGame,
254
+ type SportsTeamColor,
255
+ type SportsTeamLogos,
256
+ type SportsTeam,
257
+ type FootballSchedule,
258
+ type FootballScoreboardSituation,
259
+ type FootballSide,
260
+ type FootballPeriod,
261
+ type FootballPlayScore,
262
+ type FootballPlayStart,
263
+ type FootballPlayOnField,
264
+ type FootballPlayDetailPlayer,
265
+ type FootballPlayDetailPenalty,
266
+ type FootballPlayDetail,
267
+ type FootballPlayPost,
268
+ type FootballPlay,
269
+ type FootballPlayerHeadshots,
270
+ type FootballPlayerXUser,
271
+ type FootballPlayer,
272
+ type FootballScoreboard,
273
+ type FootballTeamTotalsThirdDowns,
274
+ type FootballFumbleStats,
275
+ type FootballPassingStats,
276
+ type FootballTeamTotalsPenalties,
277
+ type FootballRushingStats,
278
+ type FootballTeamTotals,
279
+ type FootballPlayerStatsReceiving,
280
+ type FootballPlayerStatsDefense,
281
+ type FootballReturnStats,
282
+ type FootballPlayerStatsPunts,
283
+ type FootballPlayerStatsFieldGoals,
284
+ type FootballPlayerStatsExtraPoints,
285
+ type FootballPlayerStatsConversions,
286
+ type FootballPlayerStats,
287
+ type FootballTeamBox,
288
+ type FootballBoxScore,
289
+ type FootballDrive,
290
+ type FootballQuarter,
291
+ type FootballPlays,
292
+ type SportListGamesParams,
293
+ type SportRetrieveScoreboardParams,
294
+ type SportRetrieveBoxScoreParams,
295
+ type SportRetrievePlaysParams,
296
+ type SportsTeamRecord,
297
+ type SportsGameAudienceViewers,
298
+ type SportsGameAudienceTeamPick,
299
+ type SportsGameAudienceTeamPicks,
300
+ type SportsGameAudienceChatOpensIn,
301
+ type SportsGameAudienceChat,
302
+ type SportsGameAudience,
303
+ type SportRetrieveAudienceParams,
304
+ } from './sports';
@@ -3,6 +3,7 @@
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  import { APIResource } from '../../core/resource';
6
+ import * as JobsAPI from './jobs';
6
7
  import { APIPromise } from '../../core/api-promise';
7
8
  import { RequestOptions } from '../../internal/request-options';
8
9
  import { path } from '../../internal/utils/path';
@@ -66,206 +67,214 @@ export class Jobs extends APIResource {
66
67
  }
67
68
  }
68
69
 
69
- export interface JobRetrieveResponse {
70
+ /**
71
+ * Public X job listing. A search returns the fields down to the salary, plus
72
+ * company & account. A lookup adds work type, seniority, function, team &
73
+ * descriptions. A field X leaves empty is left out.
74
+ */
75
+ export interface Job {
70
76
  /**
71
- * Public X job listing. A search returns the fields down to the salary, plus
72
- * company & account. A lookup adds work type, seniority, function, team &
73
- * descriptions. A field X leaves empty is left out.
77
+ * Job ID.
74
78
  */
75
- job: JobRetrieveResponse.Job;
76
- }
79
+ id: string;
77
80
 
78
- export namespace JobRetrieveResponse {
79
81
  /**
80
- * Public X job listing. A search returns the fields down to the salary, plus
81
- * company & account. A lookup adds work type, seniority, function, team &
82
- * descriptions. A field X leaves empty is left out.
82
+ * The job page on X.
83
83
  */
84
- export interface Job {
85
- /**
86
- * Job ID.
87
- */
88
- id: string;
84
+ url: string;
89
85
 
90
- /**
91
- * The job page on X.
92
- */
93
- url: string;
86
+ /**
87
+ * The X account that posted a job. A job has none when X imported it from a job
88
+ * board or no longer shows the account.
89
+ */
90
+ account?: Job.Account;
94
91
 
95
- /**
96
- * The X account that posted a job. A job has none when X imported it from a job
97
- * board or no longer shows the account.
98
- */
99
- account?: Job.Account;
92
+ /**
93
+ * Where applicants apply, off X.
94
+ */
95
+ applyUrl?: string;
100
96
 
101
- /**
102
- * Where applicants apply, off X.
103
- */
104
- applyUrl?: string;
97
+ /**
98
+ * The company profile of a job X imported from a job board.
99
+ */
100
+ company?: Job.Company;
105
101
 
106
- /**
107
- * The company profile of a job X imported from a job board.
108
- */
109
- company?: Job.Company;
102
+ /**
103
+ * Full description as plain text, 1 line per paragraph.
104
+ */
105
+ description?: string;
110
106
 
111
- /**
112
- * Full description as plain text, 1 line per paragraph.
113
- */
114
- description?: string;
107
+ /**
108
+ * Full description as Markdown, with headings, lists, links, bold & italics.
109
+ */
110
+ descriptionMarkdown?: string;
115
111
 
116
- /**
117
- * Full description as Markdown, with headings, lists, links, bold & italics.
118
- */
119
- descriptionMarkdown?: string;
112
+ /**
113
+ * Contract type (full_time, full_time_contract, part_time or contract_to_hire).
114
+ */
115
+ employmentType?: string;
120
116
 
121
- /**
122
- * Contract type (full_time, full_time_contract, part_time or contract_to_hire).
123
- */
124
- employmentType?: string;
117
+ /**
118
+ * Whether X features the job.
119
+ */
120
+ featured?: boolean;
125
121
 
126
- /**
127
- * Whether X features the job.
128
- */
129
- featured?: boolean;
122
+ /**
123
+ * Salary as X shows it.
124
+ */
125
+ formattedSalary?: string;
130
126
 
131
- /**
132
- * Salary as X shows it.
133
- */
134
- formattedSalary?: string;
127
+ /**
128
+ * Job function, such as software_engineering.
129
+ */
130
+ jobFunction?: string;
131
+
132
+ /**
133
+ * Location as the employer wrote it.
134
+ */
135
+ location?: string;
136
+
137
+ /**
138
+ * Where the work happens (onsite, remote or hybrid).
139
+ */
140
+ locationType?: string;
141
+
142
+ /**
143
+ * When the employer posted the job.
144
+ */
145
+ postedAt?: string;
146
+
147
+ /**
148
+ * ISO 4217 currency code of the salary.
149
+ */
150
+ salaryCurrencyCode?: string;
151
+
152
+ /**
153
+ * Pay period of the salary (annually or hourly).
154
+ */
155
+ salaryInterval?: string;
135
156
 
157
+ /**
158
+ * Highest salary, in salaryCurrencyCode per salaryInterval.
159
+ */
160
+ salaryMax?: number;
161
+
162
+ /**
163
+ * Lowest salary, in salaryCurrencyCode per salaryInterval.
164
+ */
165
+ salaryMin?: number;
166
+
167
+ /**
168
+ * Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or
169
+ * executive).
170
+ */
171
+ seniorityLevel?: string;
172
+
173
+ /**
174
+ * Short summary of the job, as plain text.
175
+ */
176
+ shortDescription?: string;
177
+
178
+ /**
179
+ * Team inside the company.
180
+ */
181
+ team?: string;
182
+
183
+ /**
184
+ * Job title.
185
+ */
186
+ title?: string;
187
+ }
188
+
189
+ export namespace Job {
190
+ /**
191
+ * The X account that posted a job. A job has none when X imported it from a job
192
+ * board or no longer shows the account.
193
+ */
194
+ export interface Account {
136
195
  /**
137
- * Job function, such as software_engineering.
196
+ * X user ID of the account.
138
197
  */
139
- jobFunction?: string;
198
+ id: string;
140
199
 
141
200
  /**
142
- * Location as the employer wrote it.
201
+ * Whether X shows a verification badge on the account.
143
202
  */
144
- location?: string;
203
+ verified: boolean;
145
204
 
146
205
  /**
147
- * Where the work happens (onsite, remote or hybrid).
206
+ * Bio of the account. A job lookup returns it.
148
207
  */
149
- locationType?: string;
208
+ description?: string;
150
209
 
151
210
  /**
152
- * When the employer posted the job.
211
+ * Display name of the account that posted the job.
153
212
  */
154
- postedAt?: string;
213
+ name?: string;
155
214
 
156
215
  /**
157
- * ISO 4217 currency code of the salary.
216
+ * Avatar shape, such as Circle or Square.
158
217
  */
159
- salaryCurrencyCode?: string;
218
+ profileImageShape?: string;
160
219
 
161
220
  /**
162
- * Pay period of the salary (annually or hourly).
221
+ * Avatar URL of the account that posted the job.
163
222
  */
164
- salaryInterval?: string;
223
+ profilePicture?: string;
165
224
 
166
225
  /**
167
- * Highest salary, in salaryCurrencyCode per salaryInterval.
226
+ * The job account's avatar at full size.
168
227
  */
169
- salaryMax?: number;
228
+ profilePictureOriginal?: string;
170
229
 
171
230
  /**
172
- * Lowest salary, in salaryCurrencyCode per salaryInterval.
231
+ * Handle without @.
173
232
  */
174
- salaryMin?: number;
233
+ username?: string;
175
234
 
176
235
  /**
177
- * Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or
178
- * executive).
236
+ * Badge type, such as Business or Government.
179
237
  */
180
- seniorityLevel?: string;
238
+ verifiedType?: string;
239
+ }
181
240
 
241
+ /**
242
+ * The company profile of a job X imported from a job board.
243
+ */
244
+ export interface Company {
182
245
  /**
183
- * Short summary of the job, as plain text.
246
+ * X company profile ID.
184
247
  */
185
- shortDescription?: string;
248
+ id: string;
186
249
 
187
250
  /**
188
- * Team inside the company.
251
+ * Company logo URL.
189
252
  */
190
- team?: string;
253
+ logoUrl?: string;
191
254
 
192
255
  /**
193
- * Job title.
256
+ * Company name.
194
257
  */
195
- title?: string;
258
+ name?: string;
196
259
  }
260
+ }
261
+
262
+ export interface JobRetrieveResponse {
263
+ /**
264
+ * Public X job listing. A search returns the fields down to the salary, plus
265
+ * company & account. A lookup adds work type, seniority, function, team &
266
+ * descriptions. A field X leaves empty is left out.
267
+ */
268
+ job: Job;
269
+ }
270
+
271
+ export namespace JobRetrieveResponse {
272
+ export type Job = JobsAPI.Job;
197
273
 
198
274
  export namespace Job {
199
- /**
200
- * The X account that posted a job. A job has none when X imported it from a job
201
- * board or no longer shows the account.
202
- */
203
- export interface Account {
204
- /**
205
- * X user ID of the account.
206
- */
207
- id: string;
208
-
209
- /**
210
- * Whether X shows a verification badge on the account.
211
- */
212
- verified: boolean;
213
-
214
- /**
215
- * Bio of the account. A job lookup returns it.
216
- */
217
- description?: string;
218
-
219
- /**
220
- * Display name of the account that posted the job.
221
- */
222
- name?: string;
223
-
224
- /**
225
- * Avatar shape, such as Circle or Square.
226
- */
227
- profileImageShape?: string;
228
-
229
- /**
230
- * Avatar URL of the account that posted the job.
231
- */
232
- profilePicture?: string;
233
-
234
- /**
235
- * The job account's avatar at full size.
236
- */
237
- profilePictureOriginal?: string;
238
-
239
- /**
240
- * Handle without @.
241
- */
242
- username?: string;
243
-
244
- /**
245
- * Badge type, such as Business or Government.
246
- */
247
- verifiedType?: string;
248
- }
275
+ export type Account = JobsAPI.Job.Account;
249
276
 
250
- /**
251
- * The company profile of a job X imported from a job board.
252
- */
253
- export interface Company {
254
- /**
255
- * X company profile ID.
256
- */
257
- id: string;
258
-
259
- /**
260
- * Company logo URL.
261
- */
262
- logoUrl?: string;
263
-
264
- /**
265
- * Company name.
266
- */
267
- name?: string;
268
- }
277
+ export type Company = JobsAPI.Job.Company;
269
278
  }
270
279
  }
271
280
 
@@ -308,202 +317,18 @@ export namespace JobListLocationsResponse {
308
317
  export interface JobSearchResponse {
309
318
  has_next_page: boolean;
310
319
 
311
- jobs: Array<JobSearchResponse.Job>;
320
+ jobs: Array<Job>;
312
321
 
313
322
  next_cursor: string;
314
323
  }
315
324
 
316
325
  export namespace JobSearchResponse {
317
- /**
318
- * Public X job listing. A search returns the fields down to the salary, plus
319
- * company & account. A lookup adds work type, seniority, function, team &
320
- * descriptions. A field X leaves empty is left out.
321
- */
322
- export interface Job {
323
- /**
324
- * Job ID.
325
- */
326
- id: string;
327
-
328
- /**
329
- * The job page on X.
330
- */
331
- url: string;
332
-
333
- /**
334
- * The X account that posted a job. A job has none when X imported it from a job
335
- * board or no longer shows the account.
336
- */
337
- account?: Job.Account;
338
-
339
- /**
340
- * Where applicants apply, off X.
341
- */
342
- applyUrl?: string;
343
-
344
- /**
345
- * The company profile of a job X imported from a job board.
346
- */
347
- company?: Job.Company;
348
-
349
- /**
350
- * Full description as plain text, 1 line per paragraph.
351
- */
352
- description?: string;
353
-
354
- /**
355
- * Full description as Markdown, with headings, lists, links, bold & italics.
356
- */
357
- descriptionMarkdown?: string;
358
-
359
- /**
360
- * Contract type (full_time, full_time_contract, part_time or contract_to_hire).
361
- */
362
- employmentType?: string;
363
-
364
- /**
365
- * Whether X features the job.
366
- */
367
- featured?: boolean;
368
-
369
- /**
370
- * Salary as X shows it.
371
- */
372
- formattedSalary?: string;
373
-
374
- /**
375
- * Job function, such as software_engineering.
376
- */
377
- jobFunction?: string;
378
-
379
- /**
380
- * Location as the employer wrote it.
381
- */
382
- location?: string;
383
-
384
- /**
385
- * Where the work happens (onsite, remote or hybrid).
386
- */
387
- locationType?: string;
388
-
389
- /**
390
- * When the employer posted the job.
391
- */
392
- postedAt?: string;
393
-
394
- /**
395
- * ISO 4217 currency code of the salary.
396
- */
397
- salaryCurrencyCode?: string;
398
-
399
- /**
400
- * Pay period of the salary (annually or hourly).
401
- */
402
- salaryInterval?: string;
403
-
404
- /**
405
- * Highest salary, in salaryCurrencyCode per salaryInterval.
406
- */
407
- salaryMax?: number;
408
-
409
- /**
410
- * Lowest salary, in salaryCurrencyCode per salaryInterval.
411
- */
412
- salaryMin?: number;
413
-
414
- /**
415
- * Seniority (intern, entry_level, junior, mid_level, senior, lead, manager or
416
- * executive).
417
- */
418
- seniorityLevel?: string;
419
-
420
- /**
421
- * Short summary of the job, as plain text.
422
- */
423
- shortDescription?: string;
424
-
425
- /**
426
- * Team inside the company.
427
- */
428
- team?: string;
429
-
430
- /**
431
- * Job title.
432
- */
433
- title?: string;
434
- }
326
+ export type Job = JobsAPI.Job;
435
327
 
436
328
  export namespace Job {
437
- /**
438
- * The X account that posted a job. A job has none when X imported it from a job
439
- * board or no longer shows the account.
440
- */
441
- export interface Account {
442
- /**
443
- * X user ID of the account.
444
- */
445
- id: string;
446
-
447
- /**
448
- * Whether X shows a verification badge on the account.
449
- */
450
- verified: boolean;
451
-
452
- /**
453
- * Bio of the account. A job lookup returns it.
454
- */
455
- description?: string;
456
-
457
- /**
458
- * Display name of the account that posted the job.
459
- */
460
- name?: string;
461
-
462
- /**
463
- * Avatar shape, such as Circle or Square.
464
- */
465
- profileImageShape?: string;
466
-
467
- /**
468
- * Avatar URL of the account that posted the job.
469
- */
470
- profilePicture?: string;
471
-
472
- /**
473
- * The job account's avatar at full size.
474
- */
475
- profilePictureOriginal?: string;
476
-
477
- /**
478
- * Handle without @.
479
- */
480
- username?: string;
481
-
482
- /**
483
- * Badge type, such as Business or Government.
484
- */
485
- verifiedType?: string;
486
- }
329
+ export type Account = JobsAPI.Job.Account;
487
330
 
488
- /**
489
- * The company profile of a job X imported from a job board.
490
- */
491
- export interface Company {
492
- /**
493
- * X company profile ID.
494
- */
495
- id: string;
496
-
497
- /**
498
- * Company logo URL.
499
- */
500
- logoUrl?: string;
501
-
502
- /**
503
- * Company name.
504
- */
505
- name?: string;
506
- }
331
+ export type Company = JobsAPI.Job.Company;
507
332
  }
508
333
  }
509
334
 
@@ -625,6 +450,7 @@ export interface JobSearchParams {
625
450
 
626
451
  export declare namespace Jobs {
627
452
  export {
453
+ type Job as Job,
628
454
  type JobRetrieveResponse as JobRetrieveResponse,
629
455
  type JobListLocationsResponse as JobListLocationsResponse,
630
456
  type JobSearchResponse as JobSearchResponse,