x-twitter-scraper 0.4.1 → 0.5.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 (140) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -0
  3. package/package.json +1 -1
  4. package/resources/credits.d.mts +1 -1
  5. package/resources/credits.d.ts +1 -1
  6. package/resources/extractions.d.mts +4 -4
  7. package/resources/extractions.d.ts +4 -4
  8. package/resources/guest-wallets.d.mts +2 -2
  9. package/resources/guest-wallets.d.ts +2 -2
  10. package/resources/shared.d.mts +24 -8
  11. package/resources/shared.d.mts.map +1 -1
  12. package/resources/shared.d.ts +24 -8
  13. package/resources/shared.d.ts.map +1 -1
  14. package/resources/support/tickets.d.mts +67 -4
  15. package/resources/support/tickets.d.mts.map +1 -1
  16. package/resources/support/tickets.d.ts +67 -4
  17. package/resources/support/tickets.d.ts.map +1 -1
  18. package/resources/support/tickets.js +22 -4
  19. package/resources/support/tickets.js.map +1 -1
  20. package/resources/support/tickets.mjs +22 -4
  21. package/resources/support/tickets.mjs.map +1 -1
  22. package/resources/x/account-connection-challenges.d.mts +1 -1
  23. package/resources/x/account-connection-challenges.d.ts +1 -1
  24. package/resources/x/account-connection-challenges.js +1 -1
  25. package/resources/x/account-connection-challenges.mjs +1 -1
  26. package/resources/x/accounts.d.mts +9 -6
  27. package/resources/x/accounts.d.mts.map +1 -1
  28. package/resources/x/accounts.d.ts +9 -6
  29. package/resources/x/accounts.d.ts.map +1 -1
  30. package/resources/x/accounts.js +4 -2
  31. package/resources/x/accounts.js.map +1 -1
  32. package/resources/x/accounts.mjs +4 -2
  33. package/resources/x/accounts.mjs.map +1 -1
  34. package/resources/x/communities/communities.d.mts +360 -10
  35. package/resources/x/communities/communities.d.mts.map +1 -1
  36. package/resources/x/communities/communities.d.ts +360 -10
  37. package/resources/x/communities/communities.d.ts.map +1 -1
  38. package/resources/x/communities/communities.js +17 -4
  39. package/resources/x/communities/communities.js.map +1 -1
  40. package/resources/x/communities/communities.mjs +17 -4
  41. package/resources/x/communities/communities.mjs.map +1 -1
  42. package/resources/x/communities/join.d.mts +361 -7
  43. package/resources/x/communities/join.d.mts.map +1 -1
  44. package/resources/x/communities/join.d.ts +361 -7
  45. package/resources/x/communities/join.d.ts.map +1 -1
  46. package/resources/x/communities/join.js +20 -5
  47. package/resources/x/communities/join.js.map +1 -1
  48. package/resources/x/communities/join.mjs +20 -5
  49. package/resources/x/communities/join.mjs.map +1 -1
  50. package/resources/x/dm.d.mts +183 -5
  51. package/resources/x/dm.d.mts.map +1 -1
  52. package/resources/x/dm.d.ts +183 -5
  53. package/resources/x/dm.d.ts.map +1 -1
  54. package/resources/x/dm.js +9 -2
  55. package/resources/x/dm.js.map +1 -1
  56. package/resources/x/dm.mjs +9 -2
  57. package/resources/x/dm.mjs.map +1 -1
  58. package/resources/x/media.d.mts +178 -10
  59. package/resources/x/media.d.mts.map +1 -1
  60. package/resources/x/media.d.ts +178 -10
  61. package/resources/x/media.d.ts.map +1 -1
  62. package/resources/x/media.js +9 -5
  63. package/resources/x/media.js.map +1 -1
  64. package/resources/x/media.mjs +9 -5
  65. package/resources/x/media.mjs.map +1 -1
  66. package/resources/x/profile.d.mts +545 -14
  67. package/resources/x/profile.d.mts.map +1 -1
  68. package/resources/x/profile.d.ts +545 -14
  69. package/resources/x/profile.d.ts.map +1 -1
  70. package/resources/x/profile.js +25 -6
  71. package/resources/x/profile.js.map +1 -1
  72. package/resources/x/profile.mjs +25 -6
  73. package/resources/x/profile.mjs.map +1 -1
  74. package/resources/x/tweets/like.d.mts +358 -6
  75. package/resources/x/tweets/like.d.mts.map +1 -1
  76. package/resources/x/tweets/like.d.ts +358 -6
  77. package/resources/x/tweets/like.d.ts.map +1 -1
  78. package/resources/x/tweets/like.js +17 -4
  79. package/resources/x/tweets/like.js.map +1 -1
  80. package/resources/x/tweets/like.mjs +17 -4
  81. package/resources/x/tweets/like.mjs.map +1 -1
  82. package/resources/x/tweets/retweet.d.mts +358 -6
  83. package/resources/x/tweets/retweet.d.mts.map +1 -1
  84. package/resources/x/tweets/retweet.d.ts +358 -6
  85. package/resources/x/tweets/retweet.d.ts.map +1 -1
  86. package/resources/x/tweets/retweet.js +17 -4
  87. package/resources/x/tweets/retweet.js.map +1 -1
  88. package/resources/x/tweets/retweet.mjs +17 -4
  89. package/resources/x/tweets/retweet.mjs.map +1 -1
  90. package/resources/x/tweets/tweets.d.mts +376 -18
  91. package/resources/x/tweets/tweets.d.mts.map +1 -1
  92. package/resources/x/tweets/tweets.d.ts +376 -18
  93. package/resources/x/tweets/tweets.d.ts.map +1 -1
  94. package/resources/x/tweets/tweets.js +25 -6
  95. package/resources/x/tweets/tweets.js.map +1 -1
  96. package/resources/x/tweets/tweets.mjs +25 -6
  97. package/resources/x/tweets/tweets.mjs.map +1 -1
  98. package/resources/x/users/follow.d.mts +361 -7
  99. package/resources/x/users/follow.d.mts.map +1 -1
  100. package/resources/x/users/follow.d.ts +361 -7
  101. package/resources/x/users/follow.d.ts.map +1 -1
  102. package/resources/x/users/follow.js +20 -5
  103. package/resources/x/users/follow.js.map +1 -1
  104. package/resources/x/users/follow.mjs +20 -5
  105. package/resources/x/users/follow.mjs.map +1 -1
  106. package/resources/x/users/users.d.mts +181 -5
  107. package/resources/x/users/users.d.mts.map +1 -1
  108. package/resources/x/users/users.d.ts +181 -5
  109. package/resources/x/users/users.d.ts.map +1 -1
  110. package/resources/x/users/users.js +9 -2
  111. package/resources/x/users/users.js.map +1 -1
  112. package/resources/x/users/users.mjs +9 -2
  113. package/resources/x/users/users.mjs.map +1 -1
  114. package/resources/x/write-actions.d.mts +155 -12
  115. package/resources/x/write-actions.d.mts.map +1 -1
  116. package/resources/x/write-actions.d.ts +155 -12
  117. package/resources/x/write-actions.d.ts.map +1 -1
  118. package/src/resources/credits.ts +1 -1
  119. package/src/resources/extractions.ts +4 -4
  120. package/src/resources/guest-wallets.ts +2 -2
  121. package/src/resources/shared.ts +93 -9
  122. package/src/resources/support/tickets.ts +122 -6
  123. package/src/resources/x/account-connection-challenges.ts +1 -1
  124. package/src/resources/x/accounts.ts +9 -6
  125. package/src/resources/x/communities/communities.ts +515 -12
  126. package/src/resources/x/communities/join.ts +518 -9
  127. package/src/resources/x/dm.ts +261 -6
  128. package/src/resources/x/media.ts +258 -11
  129. package/src/resources/x/profile.ts +786 -17
  130. package/src/resources/x/tweets/like.ts +515 -8
  131. package/src/resources/x/tweets/retweet.ts +523 -8
  132. package/src/resources/x/tweets/tweets.ts +529 -23
  133. package/src/resources/x/users/follow.ts +518 -9
  134. package/src/resources/x/users/users.ts +260 -6
  135. package/src/resources/x/write-actions.ts +207 -14
  136. package/src/version.ts +1 -1
  137. package/version.d.mts +1 -1
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
  140. package/version.mjs +1 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import { APIPromise } from '../../../core/api-promise';
5
+ import { buildHeaders } from '../../../internal/headers';
5
6
  import { RequestOptions } from '../../../internal/request-options';
6
7
  import { path } from '../../../internal/utils/path';
7
8
 
@@ -16,11 +17,21 @@ export class Retweet extends APIResource {
16
17
  * ```ts
17
18
  * const retweet = await client.x.tweets.retweet.create('id', {
18
19
  * account: '@elonmusk',
20
+ * 'Idempotency-Key': 'Idempotency-Key',
19
21
  * });
20
22
  * ```
21
23
  */
22
- create(id: string, body: RetweetCreateParams, options?: RequestOptions): APIPromise<RetweetCreateResponse> {
23
- return this._client.post(path`/x/tweets/${id}/retweet`, { body, ...options });
24
+ create(
25
+ id: string,
26
+ params: RetweetCreateParams,
27
+ options?: RequestOptions,
28
+ ): APIPromise<RetweetCreateResponse> {
29
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
30
+ return this._client.post(path`/x/tweets/${id}/retweet`, {
31
+ body,
32
+ ...options,
33
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
34
+ });
24
35
  }
25
36
 
26
37
  /**
@@ -30,34 +41,538 @@ export class Retweet extends APIResource {
30
41
  * ```ts
31
42
  * const retweet = await client.x.tweets.retweet.delete('id', {
32
43
  * account: '@elonmusk',
44
+ * 'Idempotency-Key': 'Idempotency-Key',
33
45
  * });
34
46
  * ```
35
47
  */
36
- delete(id: string, body: RetweetDeleteParams, options?: RequestOptions): APIPromise<RetweetDeleteResponse> {
37
- return this._client.delete(path`/x/tweets/${id}/retweet`, { body, ...options });
48
+ delete(
49
+ id: string,
50
+ params: RetweetDeleteParams,
51
+ options?: RequestOptions,
52
+ ): APIPromise<RetweetDeleteResponse> {
53
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
54
+ return this._client.delete(path`/x/tweets/${id}/retweet`, {
55
+ body,
56
+ ...options,
57
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
58
+ });
38
59
  }
39
60
  }
40
61
 
62
+ /**
63
+ * Durable write lifecycle record. Poll statusUrl until terminal is true. Reusing
64
+ * the original Idempotency-Key returns this same record. Submit a new write only
65
+ * when safeToRetry is true, using a new key.
66
+ */
41
67
  export interface RetweetCreateResponse {
42
- success: true;
68
+ id: string;
69
+
70
+ /**
71
+ * Connected account selected for the write.
72
+ */
73
+ account: RetweetCreateResponse.Account | null;
74
+
75
+ action:
76
+ | 'create_tweet'
77
+ | 'delete_tweet'
78
+ | 'like'
79
+ | 'unlike'
80
+ | 'retweet'
81
+ | 'unretweet'
82
+ | 'follow'
83
+ | 'unfollow'
84
+ | 'remove_follower'
85
+ | 'send_dm'
86
+ | 'upload_media'
87
+ | 'update_profile'
88
+ | 'update_avatar'
89
+ | 'update_banner'
90
+ | 'create_community'
91
+ | 'delete_community'
92
+ | 'join_community'
93
+ | 'leave_community';
94
+
95
+ /**
96
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
97
+ * credit ledger. Pending or failed writes are not charged.
98
+ */
99
+ billing: RetweetCreateResponse.Billing;
100
+
101
+ charged: boolean;
102
+
103
+ chargedCredits: string;
104
+
105
+ /**
106
+ * Exact follow-up an API client or agent should perform.
107
+ */
108
+ nextAction: RetweetCreateResponse.NextAction | null;
109
+
110
+ object: 'x_write_action';
111
+
112
+ pollAfterMs: number | null;
113
+
114
+ /**
115
+ * Stable fingerprint and sanitized payload for replay checks.
116
+ */
117
+ request: RetweetCreateResponse.Request;
118
+
119
+ /**
120
+ * Confirmed result produced by the write, when available.
121
+ */
122
+ result: RetweetCreateResponse.Result | null;
123
+
124
+ /**
125
+ * True only when a new attempt can reasonably succeed.
126
+ */
127
+ retryable: boolean;
128
+
129
+ /**
130
+ * True only when no write was dispatched and a new idempotency key may be used.
131
+ */
132
+ safeToRetry: boolean;
133
+
134
+ sendDispatched: boolean;
135
+
136
+ status: 'accepted' | 'dispatching' | 'pending_confirmation' | 'success' | 'failed' | 'expired';
137
+
138
+ statusUrl: string;
139
+
140
+ success: boolean;
141
+
142
+ /**
143
+ * Existing X resource targeted by the write, when applicable.
144
+ */
145
+ target: RetweetCreateResponse.Target | null;
146
+
147
+ targetId: string | null;
148
+
149
+ terminal: boolean;
150
+
151
+ writeActionId: string;
152
+
153
+ /**
154
+ * Compatibility field for a confirmed community ID.
155
+ */
156
+ communityId?: string;
157
+
158
+ /**
159
+ * Confirmed community name when available.
160
+ */
161
+ communityName?: string;
162
+
163
+ completedAt?: string;
164
+
165
+ confirmationAttempts?: number;
166
+
167
+ confirmationCheckedAt?: string;
168
+
169
+ confirmedAt?: string;
170
+
171
+ createdAt?: string;
172
+
173
+ /**
174
+ * Structured recovery context for a failed write.
175
+ */
176
+ details?: { [key: string]: unknown };
177
+
178
+ error?: string;
179
+
180
+ /**
181
+ * Deadline for resolving a non-terminal write. This is not the Idempotency-Key
182
+ * retention deadline.
183
+ */
184
+ expiresAt?: string;
185
+
186
+ idempotent?: boolean;
187
+
188
+ /**
189
+ * Media count, kind, size, and billing details when used.
190
+ */
191
+ media?: { [key: string]: unknown };
192
+
193
+ /**
194
+ * Compatibility field for a confirmed media upload ID.
195
+ */
196
+ mediaId?: string;
197
+
198
+ /**
199
+ * Public media URL when the upload creates one.
200
+ */
201
+ mediaUrl?: string;
202
+
203
+ message?: string;
204
+
205
+ /**
206
+ * Compatibility field for a confirmed direct message ID.
207
+ */
208
+ messageId?: string;
209
+
210
+ requestHash?: string;
211
+
212
+ requestId?: string;
213
+
214
+ /**
215
+ * Compatibility result ID for other write actions.
216
+ */
217
+ resultId?: string;
218
+
219
+ /**
220
+ * Dispatch timestamp when the write reached execution.
221
+ */
222
+ sendDispatchedAt?: string;
223
+
224
+ /**
225
+ * Compatibility field for a confirmed tweet result ID.
226
+ */
227
+ tweetId?: string;
228
+
229
+ updatedAt?: string;
230
+ }
231
+
232
+ export namespace RetweetCreateResponse {
233
+ /**
234
+ * Connected account selected for the write.
235
+ */
236
+ export interface Account {
237
+ id: string;
238
+
239
+ username: string;
240
+ }
241
+
242
+ /**
243
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
244
+ * credit ledger. Pending or failed writes are not charged.
245
+ */
246
+ export interface Billing {
247
+ charged: boolean;
248
+
249
+ chargedCredits: string;
250
+
251
+ plannedCredits: string;
252
+
253
+ status: 'not_charged' | 'pending' | 'charged' | 'charge_failed' | 'refunded';
254
+ }
255
+
256
+ /**
257
+ * Exact follow-up an API client or agent should perform.
258
+ */
259
+ export interface NextAction {
260
+ type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
261
+
262
+ afterMs?: number;
263
+
264
+ requiresNewIdempotencyKey?: boolean;
265
+
266
+ url?: string;
267
+ }
268
+
269
+ /**
270
+ * Stable fingerprint and sanitized payload for replay checks.
271
+ */
272
+ export interface Request {
273
+ /**
274
+ * Stable hash of account, action, target, and payload.
275
+ */
276
+ hash: string | null;
277
+
278
+ /**
279
+ * Exact sanitized payload dispatched for this action.
280
+ */
281
+ payload: { [key: string]: unknown } | null;
282
+ }
283
+
284
+ /**
285
+ * Confirmed result produced by the write, when available.
286
+ */
287
+ export interface Result {
288
+ id?: string;
289
+
290
+ state?: string;
291
+
292
+ type?: 'tweet' | 'direct_message' | 'media' | 'community' | 'state_change';
293
+ }
294
+
295
+ /**
296
+ * Existing X resource targeted by the write, when applicable.
297
+ */
298
+ export interface Target {
299
+ id: string;
300
+
301
+ type: 'tweet' | 'user' | 'community';
302
+ }
43
303
  }
44
304
 
305
+ /**
306
+ * Durable write lifecycle record. Poll statusUrl until terminal is true. Reusing
307
+ * the original Idempotency-Key returns this same record. Submit a new write only
308
+ * when safeToRetry is true, using a new key.
309
+ */
45
310
  export interface RetweetDeleteResponse {
46
- success: true;
311
+ id: string;
312
+
313
+ /**
314
+ * Connected account selected for the write.
315
+ */
316
+ account: RetweetDeleteResponse.Account | null;
317
+
318
+ action:
319
+ | 'create_tweet'
320
+ | 'delete_tweet'
321
+ | 'like'
322
+ | 'unlike'
323
+ | 'retweet'
324
+ | 'unretweet'
325
+ | 'follow'
326
+ | 'unfollow'
327
+ | 'remove_follower'
328
+ | 'send_dm'
329
+ | 'upload_media'
330
+ | 'update_profile'
331
+ | 'update_avatar'
332
+ | 'update_banner'
333
+ | 'create_community'
334
+ | 'delete_community'
335
+ | 'join_community'
336
+ | 'leave_community';
337
+
338
+ /**
339
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
340
+ * credit ledger. Pending or failed writes are not charged.
341
+ */
342
+ billing: RetweetDeleteResponse.Billing;
343
+
344
+ charged: boolean;
345
+
346
+ chargedCredits: string;
347
+
348
+ /**
349
+ * Exact follow-up an API client or agent should perform.
350
+ */
351
+ nextAction: RetweetDeleteResponse.NextAction | null;
352
+
353
+ object: 'x_write_action';
354
+
355
+ pollAfterMs: number | null;
356
+
357
+ /**
358
+ * Stable fingerprint and sanitized payload for replay checks.
359
+ */
360
+ request: RetweetDeleteResponse.Request;
361
+
362
+ /**
363
+ * Confirmed result produced by the write, when available.
364
+ */
365
+ result: RetweetDeleteResponse.Result | null;
366
+
367
+ /**
368
+ * True only when a new attempt can reasonably succeed.
369
+ */
370
+ retryable: boolean;
371
+
372
+ /**
373
+ * True only when no write was dispatched and a new idempotency key may be used.
374
+ */
375
+ safeToRetry: boolean;
376
+
377
+ sendDispatched: boolean;
378
+
379
+ status: 'accepted' | 'dispatching' | 'pending_confirmation' | 'success' | 'failed' | 'expired';
380
+
381
+ statusUrl: string;
382
+
383
+ success: boolean;
384
+
385
+ /**
386
+ * Existing X resource targeted by the write, when applicable.
387
+ */
388
+ target: RetweetDeleteResponse.Target | null;
389
+
390
+ targetId: string | null;
391
+
392
+ terminal: boolean;
393
+
394
+ writeActionId: string;
395
+
396
+ /**
397
+ * Compatibility field for a confirmed community ID.
398
+ */
399
+ communityId?: string;
400
+
401
+ /**
402
+ * Confirmed community name when available.
403
+ */
404
+ communityName?: string;
405
+
406
+ completedAt?: string;
407
+
408
+ confirmationAttempts?: number;
409
+
410
+ confirmationCheckedAt?: string;
411
+
412
+ confirmedAt?: string;
413
+
414
+ createdAt?: string;
415
+
416
+ /**
417
+ * Structured recovery context for a failed write.
418
+ */
419
+ details?: { [key: string]: unknown };
420
+
421
+ error?: string;
422
+
423
+ /**
424
+ * Deadline for resolving a non-terminal write. This is not the Idempotency-Key
425
+ * retention deadline.
426
+ */
427
+ expiresAt?: string;
428
+
429
+ idempotent?: boolean;
430
+
431
+ /**
432
+ * Media count, kind, size, and billing details when used.
433
+ */
434
+ media?: { [key: string]: unknown };
435
+
436
+ /**
437
+ * Compatibility field for a confirmed media upload ID.
438
+ */
439
+ mediaId?: string;
440
+
441
+ /**
442
+ * Public media URL when the upload creates one.
443
+ */
444
+ mediaUrl?: string;
445
+
446
+ message?: string;
447
+
448
+ /**
449
+ * Compatibility field for a confirmed direct message ID.
450
+ */
451
+ messageId?: string;
452
+
453
+ requestHash?: string;
454
+
455
+ requestId?: string;
456
+
457
+ /**
458
+ * Compatibility result ID for other write actions.
459
+ */
460
+ resultId?: string;
461
+
462
+ /**
463
+ * Dispatch timestamp when the write reached execution.
464
+ */
465
+ sendDispatchedAt?: string;
466
+
467
+ /**
468
+ * Compatibility field for a confirmed tweet result ID.
469
+ */
470
+ tweetId?: string;
471
+
472
+ updatedAt?: string;
473
+ }
474
+
475
+ export namespace RetweetDeleteResponse {
476
+ /**
477
+ * Connected account selected for the write.
478
+ */
479
+ export interface Account {
480
+ id: string;
481
+
482
+ username: string;
483
+ }
484
+
485
+ /**
486
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
487
+ * credit ledger. Pending or failed writes are not charged.
488
+ */
489
+ export interface Billing {
490
+ charged: boolean;
491
+
492
+ chargedCredits: string;
493
+
494
+ plannedCredits: string;
495
+
496
+ status: 'not_charged' | 'pending' | 'charged' | 'charge_failed' | 'refunded';
497
+ }
498
+
499
+ /**
500
+ * Exact follow-up an API client or agent should perform.
501
+ */
502
+ export interface NextAction {
503
+ type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
504
+
505
+ afterMs?: number;
506
+
507
+ requiresNewIdempotencyKey?: boolean;
508
+
509
+ url?: string;
510
+ }
511
+
512
+ /**
513
+ * Stable fingerprint and sanitized payload for replay checks.
514
+ */
515
+ export interface Request {
516
+ /**
517
+ * Stable hash of account, action, target, and payload.
518
+ */
519
+ hash: string | null;
520
+
521
+ /**
522
+ * Exact sanitized payload dispatched for this action.
523
+ */
524
+ payload: { [key: string]: unknown } | null;
525
+ }
526
+
527
+ /**
528
+ * Confirmed result produced by the write, when available.
529
+ */
530
+ export interface Result {
531
+ id?: string;
532
+
533
+ state?: string;
534
+
535
+ type?: 'tweet' | 'direct_message' | 'media' | 'community' | 'state_change';
536
+ }
537
+
538
+ /**
539
+ * Existing X resource targeted by the write, when applicable.
540
+ */
541
+ export interface Target {
542
+ id: string;
543
+
544
+ type: 'tweet' | 'user' | 'community';
545
+ }
47
546
  }
48
547
 
49
548
  export interface RetweetCreateParams {
50
549
  /**
51
- * X account identifier (@username or account ID)
550
+ * Body param: X account identifier (@username or account ID)
52
551
  */
53
552
  account: string;
553
+
554
+ /**
555
+ * Header param: Generate one unique value for each intended write. Reuse it only
556
+ * when retrying the exact same account, action, target, and payload. A reused key
557
+ * returns the original action. Reusing it with different input returns 409. Replay
558
+ * protection remains active for at least 90 days.
559
+ */
560
+ 'Idempotency-Key': string;
54
561
  }
55
562
 
56
563
  export interface RetweetDeleteParams {
57
564
  /**
58
- * X account identifier (@username or account ID)
565
+ * Body param: X account identifier (@username or account ID)
59
566
  */
60
567
  account: string;
568
+
569
+ /**
570
+ * Header param: Generate one unique value for each intended write. Reuse it only
571
+ * when retrying the exact same account, action, target, and payload. A reused key
572
+ * returns the original action. Reusing it with different input returns 409. Replay
573
+ * protection remains active for at least 90 days.
574
+ */
575
+ 'Idempotency-Key': string;
61
576
  }
62
577
 
63
578
  export declare namespace Retweet {