x-twitter-scraper 0.4.1 → 0.5.1

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 (171) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -0
  3. package/client.d.mts +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.js +1 -1
  6. package/client.mjs +1 -1
  7. package/package.json +1 -1
  8. package/resources/account.d.mts +2 -2
  9. package/resources/account.d.ts +2 -2
  10. package/resources/compose.d.mts +186 -65
  11. package/resources/compose.d.mts.map +1 -1
  12. package/resources/compose.d.ts +186 -65
  13. package/resources/compose.d.ts.map +1 -1
  14. package/resources/compose.js +5 -2
  15. package/resources/compose.js.map +1 -1
  16. package/resources/compose.mjs +5 -2
  17. package/resources/compose.mjs.map +1 -1
  18. package/resources/credits.d.mts +1 -1
  19. package/resources/credits.d.ts +1 -1
  20. package/resources/extractions.d.mts +4 -4
  21. package/resources/extractions.d.ts +4 -4
  22. package/resources/guest-wallets.d.mts +2 -2
  23. package/resources/guest-wallets.d.ts +2 -2
  24. package/resources/monitors/keywords.d.mts +4 -4
  25. package/resources/monitors/keywords.d.ts +4 -4
  26. package/resources/monitors/keywords.js +4 -4
  27. package/resources/monitors/keywords.mjs +4 -4
  28. package/resources/monitors/monitors.d.mts +5 -4
  29. package/resources/monitors/monitors.d.mts.map +1 -1
  30. package/resources/monitors/monitors.d.ts +5 -4
  31. package/resources/monitors/monitors.d.ts.map +1 -1
  32. package/resources/monitors/monitors.js +5 -4
  33. package/resources/monitors/monitors.js.map +1 -1
  34. package/resources/monitors/monitors.mjs +5 -4
  35. package/resources/monitors/monitors.mjs.map +1 -1
  36. package/resources/shared.d.mts +24 -8
  37. package/resources/shared.d.mts.map +1 -1
  38. package/resources/shared.d.ts +24 -8
  39. package/resources/shared.d.ts.map +1 -1
  40. package/resources/support/tickets.d.mts +67 -4
  41. package/resources/support/tickets.d.mts.map +1 -1
  42. package/resources/support/tickets.d.ts +67 -4
  43. package/resources/support/tickets.d.ts.map +1 -1
  44. package/resources/support/tickets.js +22 -4
  45. package/resources/support/tickets.js.map +1 -1
  46. package/resources/support/tickets.mjs +22 -4
  47. package/resources/support/tickets.mjs.map +1 -1
  48. package/resources/x/account-connection-challenges.d.mts +1 -1
  49. package/resources/x/account-connection-challenges.d.ts +1 -1
  50. package/resources/x/account-connection-challenges.js +1 -1
  51. package/resources/x/account-connection-challenges.mjs +1 -1
  52. package/resources/x/accounts.d.mts +9 -6
  53. package/resources/x/accounts.d.mts.map +1 -1
  54. package/resources/x/accounts.d.ts +9 -6
  55. package/resources/x/accounts.d.ts.map +1 -1
  56. package/resources/x/accounts.js +4 -2
  57. package/resources/x/accounts.js.map +1 -1
  58. package/resources/x/accounts.mjs +4 -2
  59. package/resources/x/accounts.mjs.map +1 -1
  60. package/resources/x/communities/communities.d.mts +360 -10
  61. package/resources/x/communities/communities.d.mts.map +1 -1
  62. package/resources/x/communities/communities.d.ts +360 -10
  63. package/resources/x/communities/communities.d.ts.map +1 -1
  64. package/resources/x/communities/communities.js +17 -4
  65. package/resources/x/communities/communities.js.map +1 -1
  66. package/resources/x/communities/communities.mjs +17 -4
  67. package/resources/x/communities/communities.mjs.map +1 -1
  68. package/resources/x/communities/join.d.mts +361 -7
  69. package/resources/x/communities/join.d.mts.map +1 -1
  70. package/resources/x/communities/join.d.ts +361 -7
  71. package/resources/x/communities/join.d.ts.map +1 -1
  72. package/resources/x/communities/join.js +20 -5
  73. package/resources/x/communities/join.js.map +1 -1
  74. package/resources/x/communities/join.mjs +20 -5
  75. package/resources/x/communities/join.mjs.map +1 -1
  76. package/resources/x/dm.d.mts +183 -5
  77. package/resources/x/dm.d.mts.map +1 -1
  78. package/resources/x/dm.d.ts +183 -5
  79. package/resources/x/dm.d.ts.map +1 -1
  80. package/resources/x/dm.js +9 -2
  81. package/resources/x/dm.js.map +1 -1
  82. package/resources/x/dm.mjs +9 -2
  83. package/resources/x/dm.mjs.map +1 -1
  84. package/resources/x/media.d.mts +178 -10
  85. package/resources/x/media.d.mts.map +1 -1
  86. package/resources/x/media.d.ts +178 -10
  87. package/resources/x/media.d.ts.map +1 -1
  88. package/resources/x/media.js +9 -5
  89. package/resources/x/media.js.map +1 -1
  90. package/resources/x/media.mjs +9 -5
  91. package/resources/x/media.mjs.map +1 -1
  92. package/resources/x/profile.d.mts +545 -14
  93. package/resources/x/profile.d.mts.map +1 -1
  94. package/resources/x/profile.d.ts +545 -14
  95. package/resources/x/profile.d.ts.map +1 -1
  96. package/resources/x/profile.js +25 -6
  97. package/resources/x/profile.js.map +1 -1
  98. package/resources/x/profile.mjs +25 -6
  99. package/resources/x/profile.mjs.map +1 -1
  100. package/resources/x/tweets/like.d.mts +358 -6
  101. package/resources/x/tweets/like.d.mts.map +1 -1
  102. package/resources/x/tweets/like.d.ts +358 -6
  103. package/resources/x/tweets/like.d.ts.map +1 -1
  104. package/resources/x/tweets/like.js +17 -4
  105. package/resources/x/tweets/like.js.map +1 -1
  106. package/resources/x/tweets/like.mjs +17 -4
  107. package/resources/x/tweets/like.mjs.map +1 -1
  108. package/resources/x/tweets/retweet.d.mts +358 -6
  109. package/resources/x/tweets/retweet.d.mts.map +1 -1
  110. package/resources/x/tweets/retweet.d.ts +358 -6
  111. package/resources/x/tweets/retweet.d.ts.map +1 -1
  112. package/resources/x/tweets/retweet.js +17 -4
  113. package/resources/x/tweets/retweet.js.map +1 -1
  114. package/resources/x/tweets/retweet.mjs +17 -4
  115. package/resources/x/tweets/retweet.mjs.map +1 -1
  116. package/resources/x/tweets/tweets.d.mts +376 -18
  117. package/resources/x/tweets/tweets.d.mts.map +1 -1
  118. package/resources/x/tweets/tweets.d.ts +376 -18
  119. package/resources/x/tweets/tweets.d.ts.map +1 -1
  120. package/resources/x/tweets/tweets.js +25 -6
  121. package/resources/x/tweets/tweets.js.map +1 -1
  122. package/resources/x/tweets/tweets.mjs +25 -6
  123. package/resources/x/tweets/tweets.mjs.map +1 -1
  124. package/resources/x/users/follow.d.mts +361 -7
  125. package/resources/x/users/follow.d.mts.map +1 -1
  126. package/resources/x/users/follow.d.ts +361 -7
  127. package/resources/x/users/follow.d.ts.map +1 -1
  128. package/resources/x/users/follow.js +20 -5
  129. package/resources/x/users/follow.js.map +1 -1
  130. package/resources/x/users/follow.mjs +20 -5
  131. package/resources/x/users/follow.mjs.map +1 -1
  132. package/resources/x/users/users.d.mts +181 -5
  133. package/resources/x/users/users.d.mts.map +1 -1
  134. package/resources/x/users/users.d.ts +181 -5
  135. package/resources/x/users/users.d.ts.map +1 -1
  136. package/resources/x/users/users.js +9 -2
  137. package/resources/x/users/users.js.map +1 -1
  138. package/resources/x/users/users.mjs +9 -2
  139. package/resources/x/users/users.mjs.map +1 -1
  140. package/resources/x/write-actions.d.mts +155 -12
  141. package/resources/x/write-actions.d.mts.map +1 -1
  142. package/resources/x/write-actions.d.ts +155 -12
  143. package/resources/x/write-actions.d.ts.map +1 -1
  144. package/src/client.ts +1 -1
  145. package/src/resources/account.ts +2 -2
  146. package/src/resources/compose.ts +232 -65
  147. package/src/resources/credits.ts +1 -1
  148. package/src/resources/extractions.ts +4 -4
  149. package/src/resources/guest-wallets.ts +2 -2
  150. package/src/resources/monitors/keywords.ts +4 -4
  151. package/src/resources/monitors/monitors.ts +5 -4
  152. package/src/resources/shared.ts +93 -9
  153. package/src/resources/support/tickets.ts +122 -6
  154. package/src/resources/x/account-connection-challenges.ts +1 -1
  155. package/src/resources/x/accounts.ts +9 -6
  156. package/src/resources/x/communities/communities.ts +515 -12
  157. package/src/resources/x/communities/join.ts +518 -9
  158. package/src/resources/x/dm.ts +261 -6
  159. package/src/resources/x/media.ts +258 -11
  160. package/src/resources/x/profile.ts +786 -17
  161. package/src/resources/x/tweets/like.ts +515 -8
  162. package/src/resources/x/tweets/retweet.ts +523 -8
  163. package/src/resources/x/tweets/tweets.ts +529 -23
  164. package/src/resources/x/users/follow.ts +518 -9
  165. package/src/resources/x/users/users.ts +260 -6
  166. package/src/resources/x/write-actions.ts +207 -14
  167. package/src/version.ts +1 -1
  168. package/version.d.mts +1 -1
  169. package/version.d.ts +1 -1
  170. package/version.js +1 -1
  171. package/version.mjs +1 -1
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Profile = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
6
7
  const uploads_1 = require("../../internal/uploads.js");
7
8
  /**
8
9
  * X write actions (tweets, likes, follows, DMs)
@@ -15,6 +16,7 @@ class Profile extends resource_1.APIResource {
15
16
  * ```ts
16
17
  * const profile = await client.x.profile.update({
17
18
  * account: '@elonmusk',
19
+ * 'Idempotency-Key': 'Idempotency-Key',
18
20
  * description: 'description_value',
19
21
  * location: 'location_value',
20
22
  * name: 'Example Name',
@@ -22,8 +24,13 @@ class Profile extends resource_1.APIResource {
22
24
  * });
23
25
  * ```
24
26
  */
25
- update(body, options) {
26
- return this._client.patch('/x/profile', { body, ...options });
27
+ update(params, options) {
28
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
29
+ return this._client.patch('/x/profile', {
30
+ body,
31
+ ...options,
32
+ headers: (0, headers_1.buildHeaders)([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
33
+ });
27
34
  }
28
35
  /**
29
36
  * Update profile avatar
@@ -33,11 +40,17 @@ class Profile extends resource_1.APIResource {
33
40
  * const response = await client.x.profile.updateAvatar({
34
41
  * account: '@elonmusk',
35
42
  * url: 'https://example.com/avatar.png',
43
+ * 'Idempotency-Key': 'Idempotency-Key',
36
44
  * });
37
45
  * ```
38
46
  */
39
- updateAvatar(body, options) {
40
- return this._client.patch('/x/profile/avatar', (0, uploads_1.maybeMultipartFormRequestOptions)({ body, ...options }, this._client));
47
+ updateAvatar(params, options) {
48
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
49
+ return this._client.patch('/x/profile/avatar', (0, uploads_1.maybeMultipartFormRequestOptions)({
50
+ body,
51
+ ...options,
52
+ headers: (0, headers_1.buildHeaders)([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
53
+ }, this._client));
41
54
  }
42
55
  /**
43
56
  * Update profile banner
@@ -47,11 +60,17 @@ class Profile extends resource_1.APIResource {
47
60
  * const response = await client.x.profile.updateBanner({
48
61
  * account: '@elonmusk',
49
62
  * url: 'https://example.com/banner.png',
63
+ * 'Idempotency-Key': 'Idempotency-Key',
50
64
  * });
51
65
  * ```
52
66
  */
53
- updateBanner(body, options) {
54
- return this._client.patch('/x/profile/banner', (0, uploads_1.maybeMultipartFormRequestOptions)({ body, ...options }, this._client));
67
+ updateBanner(params, options) {
68
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
69
+ return this._client.patch('/x/profile/banner', (0, uploads_1.maybeMultipartFormRequestOptions)({
70
+ body,
71
+ ...options,
72
+ headers: (0, headers_1.buildHeaders)([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
73
+ }, this._client));
55
74
  }
56
75
  }
57
76
  exports.Profile = Profile;
@@ -1 +1 @@
1
- {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/resources/x/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAA0E;AAE1E;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,IAAA,0CAAgC,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrE,CAAC;IACJ,CAAC;IAED;;;;;;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;;;;;;;OAWG;IACH,YAAY,CACV,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,IAAA,0CAAgC,EAC9B;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACjF,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF;AApFD,0BAoFC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
3
4
  import { maybeMultipartFormRequestOptions } from "../../internal/uploads.mjs";
4
5
  /**
5
6
  * X write actions (tweets, likes, follows, DMs)
@@ -12,6 +13,7 @@ export class Profile extends APIResource {
12
13
  * ```ts
13
14
  * const profile = await client.x.profile.update({
14
15
  * account: '@elonmusk',
16
+ * 'Idempotency-Key': 'Idempotency-Key',
15
17
  * description: 'description_value',
16
18
  * location: 'location_value',
17
19
  * name: 'Example Name',
@@ -19,8 +21,13 @@ export class Profile extends APIResource {
19
21
  * });
20
22
  * ```
21
23
  */
22
- update(body, options) {
23
- return this._client.patch('/x/profile', { body, ...options });
24
+ update(params, options) {
25
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
26
+ return this._client.patch('/x/profile', {
27
+ body,
28
+ ...options,
29
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
30
+ });
24
31
  }
25
32
  /**
26
33
  * Update profile avatar
@@ -30,11 +37,17 @@ export class Profile extends APIResource {
30
37
  * const response = await client.x.profile.updateAvatar({
31
38
  * account: '@elonmusk',
32
39
  * url: 'https://example.com/avatar.png',
40
+ * 'Idempotency-Key': 'Idempotency-Key',
33
41
  * });
34
42
  * ```
35
43
  */
36
- updateAvatar(body, options) {
37
- return this._client.patch('/x/profile/avatar', maybeMultipartFormRequestOptions({ body, ...options }, this._client));
44
+ updateAvatar(params, options) {
45
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
46
+ return this._client.patch('/x/profile/avatar', maybeMultipartFormRequestOptions({
47
+ body,
48
+ ...options,
49
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
50
+ }, this._client));
38
51
  }
39
52
  /**
40
53
  * Update profile banner
@@ -44,11 +57,17 @@ export class Profile extends APIResource {
44
57
  * const response = await client.x.profile.updateBanner({
45
58
  * account: '@elonmusk',
46
59
  * url: 'https://example.com/banner.png',
60
+ * 'Idempotency-Key': 'Idempotency-Key',
47
61
  * });
48
62
  * ```
49
63
  */
50
- updateBanner(body, options) {
51
- return this._client.patch('/x/profile/banner', maybeMultipartFormRequestOptions({ body, ...options }, this._client));
64
+ updateBanner(params, options) {
65
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
66
+ return this._client.patch('/x/profile/banner', maybeMultipartFormRequestOptions({
67
+ body,
68
+ ...options,
69
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
70
+ }, this._client));
52
71
  }
53
72
  }
54
73
  //# sourceMappingURL=profile.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../src/resources/x/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,gCAAgC,EAAE,mCAA+B;AAE1E;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE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AiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,gCAAgC,CAC9B;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACjF,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CACV,MAAiC,EACjC,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CACvB,mBAAmB,EACnB,gCAAgC,CAC9B;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACjF,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -12,10 +12,11 @@ export declare class Like extends APIResource {
12
12
  * ```ts
13
13
  * const like = await client.x.tweets.like.create('id', {
14
14
  * account: '@elonmusk',
15
+ * 'Idempotency-Key': 'Idempotency-Key',
15
16
  * });
16
17
  * ```
17
18
  */
18
- create(id: string, body: LikeCreateParams, options?: RequestOptions): APIPromise<LikeCreateResponse>;
19
+ create(id: string, params: LikeCreateParams, options?: RequestOptions): APIPromise<LikeCreateResponse>;
19
20
  /**
20
21
  * Unlike tweet
21
22
  *
@@ -23,28 +24,379 @@ export declare class Like extends APIResource {
23
24
  * ```ts
24
25
  * const like = await client.x.tweets.like.delete('id', {
25
26
  * account: '@elonmusk',
27
+ * 'Idempotency-Key': 'Idempotency-Key',
26
28
  * });
27
29
  * ```
28
30
  */
29
- delete(id: string, body: LikeDeleteParams, options?: RequestOptions): APIPromise<LikeDeleteResponse>;
31
+ delete(id: string, params: LikeDeleteParams, options?: RequestOptions): APIPromise<LikeDeleteResponse>;
30
32
  }
33
+ /**
34
+ * Durable write lifecycle record. Poll statusUrl until terminal is true. Reusing
35
+ * the original Idempotency-Key returns this same record. Submit a new write only
36
+ * when safeToRetry is true, using a new key.
37
+ */
31
38
  export interface LikeCreateResponse {
32
- success: true;
39
+ id: string;
40
+ /**
41
+ * Connected account selected for the write.
42
+ */
43
+ account: LikeCreateResponse.Account | null;
44
+ action: 'create_tweet' | 'delete_tweet' | 'like' | 'unlike' | 'retweet' | 'unretweet' | 'follow' | 'unfollow' | 'remove_follower' | 'send_dm' | 'upload_media' | 'update_profile' | 'update_avatar' | 'update_banner' | 'create_community' | 'delete_community' | 'join_community' | 'leave_community';
45
+ /**
46
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
47
+ * credit ledger. Pending or failed writes are not charged.
48
+ */
49
+ billing: LikeCreateResponse.Billing;
50
+ charged: boolean;
51
+ chargedCredits: string;
52
+ /**
53
+ * Exact follow-up an API client or agent should perform.
54
+ */
55
+ nextAction: LikeCreateResponse.NextAction | null;
56
+ object: 'x_write_action';
57
+ pollAfterMs: number | null;
58
+ /**
59
+ * Stable fingerprint and sanitized payload for replay checks.
60
+ */
61
+ request: LikeCreateResponse.Request;
62
+ /**
63
+ * Confirmed result produced by the write, when available.
64
+ */
65
+ result: LikeCreateResponse.Result | null;
66
+ /**
67
+ * True only when a new attempt can reasonably succeed.
68
+ */
69
+ retryable: boolean;
70
+ /**
71
+ * True only when no write was dispatched and a new idempotency key may be used.
72
+ */
73
+ safeToRetry: boolean;
74
+ sendDispatched: boolean;
75
+ status: 'accepted' | 'dispatching' | 'pending_confirmation' | 'success' | 'failed' | 'expired';
76
+ statusUrl: string;
77
+ success: boolean;
78
+ /**
79
+ * Existing X resource targeted by the write, when applicable.
80
+ */
81
+ target: LikeCreateResponse.Target | null;
82
+ targetId: string | null;
83
+ terminal: boolean;
84
+ writeActionId: string;
85
+ /**
86
+ * Compatibility field for a confirmed community ID.
87
+ */
88
+ communityId?: string;
89
+ /**
90
+ * Confirmed community name when available.
91
+ */
92
+ communityName?: string;
93
+ completedAt?: string;
94
+ confirmationAttempts?: number;
95
+ confirmationCheckedAt?: string;
96
+ confirmedAt?: string;
97
+ createdAt?: string;
98
+ /**
99
+ * Structured recovery context for a failed write.
100
+ */
101
+ details?: {
102
+ [key: string]: unknown;
103
+ };
104
+ error?: string;
105
+ /**
106
+ * Deadline for resolving a non-terminal write. This is not the Idempotency-Key
107
+ * retention deadline.
108
+ */
109
+ expiresAt?: string;
110
+ idempotent?: boolean;
111
+ /**
112
+ * Media count, kind, size, and billing details when used.
113
+ */
114
+ media?: {
115
+ [key: string]: unknown;
116
+ };
117
+ /**
118
+ * Compatibility field for a confirmed media upload ID.
119
+ */
120
+ mediaId?: string;
121
+ /**
122
+ * Public media URL when the upload creates one.
123
+ */
124
+ mediaUrl?: string;
125
+ message?: string;
126
+ /**
127
+ * Compatibility field for a confirmed direct message ID.
128
+ */
129
+ messageId?: string;
130
+ requestHash?: string;
131
+ requestId?: string;
132
+ /**
133
+ * Compatibility result ID for other write actions.
134
+ */
135
+ resultId?: string;
136
+ /**
137
+ * Dispatch timestamp when the write reached execution.
138
+ */
139
+ sendDispatchedAt?: string;
140
+ /**
141
+ * Compatibility field for a confirmed tweet result ID.
142
+ */
143
+ tweetId?: string;
144
+ updatedAt?: string;
33
145
  }
146
+ export declare namespace LikeCreateResponse {
147
+ /**
148
+ * Connected account selected for the write.
149
+ */
150
+ interface Account {
151
+ id: string;
152
+ username: string;
153
+ }
154
+ /**
155
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
156
+ * credit ledger. Pending or failed writes are not charged.
157
+ */
158
+ interface Billing {
159
+ charged: boolean;
160
+ chargedCredits: string;
161
+ plannedCredits: string;
162
+ status: 'not_charged' | 'pending' | 'charged' | 'charge_failed' | 'refunded';
163
+ }
164
+ /**
165
+ * Exact follow-up an API client or agent should perform.
166
+ */
167
+ interface NextAction {
168
+ type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
169
+ afterMs?: number;
170
+ requiresNewIdempotencyKey?: boolean;
171
+ url?: string;
172
+ }
173
+ /**
174
+ * Stable fingerprint and sanitized payload for replay checks.
175
+ */
176
+ interface Request {
177
+ /**
178
+ * Stable hash of account, action, target, and payload.
179
+ */
180
+ hash: string | null;
181
+ /**
182
+ * Exact sanitized payload dispatched for this action.
183
+ */
184
+ payload: {
185
+ [key: string]: unknown;
186
+ } | null;
187
+ }
188
+ /**
189
+ * Confirmed result produced by the write, when available.
190
+ */
191
+ interface Result {
192
+ id?: string;
193
+ state?: string;
194
+ type?: 'tweet' | 'direct_message' | 'media' | 'community' | 'state_change';
195
+ }
196
+ /**
197
+ * Existing X resource targeted by the write, when applicable.
198
+ */
199
+ interface Target {
200
+ id: string;
201
+ type: 'tweet' | 'user' | 'community';
202
+ }
203
+ }
204
+ /**
205
+ * Durable write lifecycle record. Poll statusUrl until terminal is true. Reusing
206
+ * the original Idempotency-Key returns this same record. Submit a new write only
207
+ * when safeToRetry is true, using a new key.
208
+ */
34
209
  export interface LikeDeleteResponse {
35
- success: true;
210
+ id: string;
211
+ /**
212
+ * Connected account selected for the write.
213
+ */
214
+ account: LikeDeleteResponse.Account | null;
215
+ action: 'create_tweet' | 'delete_tweet' | 'like' | 'unlike' | 'retweet' | 'unretweet' | 'follow' | 'unfollow' | 'remove_follower' | 'send_dm' | 'upload_media' | 'update_profile' | 'update_avatar' | 'update_banner' | 'create_community' | 'delete_community' | 'join_community' | 'leave_community';
216
+ /**
217
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
218
+ * credit ledger. Pending or failed writes are not charged.
219
+ */
220
+ billing: LikeDeleteResponse.Billing;
221
+ charged: boolean;
222
+ chargedCredits: string;
223
+ /**
224
+ * Exact follow-up an API client or agent should perform.
225
+ */
226
+ nextAction: LikeDeleteResponse.NextAction | null;
227
+ object: 'x_write_action';
228
+ pollAfterMs: number | null;
229
+ /**
230
+ * Stable fingerprint and sanitized payload for replay checks.
231
+ */
232
+ request: LikeDeleteResponse.Request;
233
+ /**
234
+ * Confirmed result produced by the write, when available.
235
+ */
236
+ result: LikeDeleteResponse.Result | null;
237
+ /**
238
+ * True only when a new attempt can reasonably succeed.
239
+ */
240
+ retryable: boolean;
241
+ /**
242
+ * True only when no write was dispatched and a new idempotency key may be used.
243
+ */
244
+ safeToRetry: boolean;
245
+ sendDispatched: boolean;
246
+ status: 'accepted' | 'dispatching' | 'pending_confirmation' | 'success' | 'failed' | 'expired';
247
+ statusUrl: string;
248
+ success: boolean;
249
+ /**
250
+ * Existing X resource targeted by the write, when applicable.
251
+ */
252
+ target: LikeDeleteResponse.Target | null;
253
+ targetId: string | null;
254
+ terminal: boolean;
255
+ writeActionId: string;
256
+ /**
257
+ * Compatibility field for a confirmed community ID.
258
+ */
259
+ communityId?: string;
260
+ /**
261
+ * Confirmed community name when available.
262
+ */
263
+ communityName?: string;
264
+ completedAt?: string;
265
+ confirmationAttempts?: number;
266
+ confirmationCheckedAt?: string;
267
+ confirmedAt?: string;
268
+ createdAt?: string;
269
+ /**
270
+ * Structured recovery context for a failed write.
271
+ */
272
+ details?: {
273
+ [key: string]: unknown;
274
+ };
275
+ error?: string;
276
+ /**
277
+ * Deadline for resolving a non-terminal write. This is not the Idempotency-Key
278
+ * retention deadline.
279
+ */
280
+ expiresAt?: string;
281
+ idempotent?: boolean;
282
+ /**
283
+ * Media count, kind, size, and billing details when used.
284
+ */
285
+ media?: {
286
+ [key: string]: unknown;
287
+ };
288
+ /**
289
+ * Compatibility field for a confirmed media upload ID.
290
+ */
291
+ mediaId?: string;
292
+ /**
293
+ * Public media URL when the upload creates one.
294
+ */
295
+ mediaUrl?: string;
296
+ message?: string;
297
+ /**
298
+ * Compatibility field for a confirmed direct message ID.
299
+ */
300
+ messageId?: string;
301
+ requestHash?: string;
302
+ requestId?: string;
303
+ /**
304
+ * Compatibility result ID for other write actions.
305
+ */
306
+ resultId?: string;
307
+ /**
308
+ * Dispatch timestamp when the write reached execution.
309
+ */
310
+ sendDispatchedAt?: string;
311
+ /**
312
+ * Compatibility field for a confirmed tweet result ID.
313
+ */
314
+ tweetId?: string;
315
+ updatedAt?: string;
316
+ }
317
+ export declare namespace LikeDeleteResponse {
318
+ /**
319
+ * Connected account selected for the write.
320
+ */
321
+ interface Account {
322
+ id: string;
323
+ username: string;
324
+ }
325
+ /**
326
+ * plannedCredits is the approved maximum. chargedCredits comes from the settled
327
+ * credit ledger. Pending or failed writes are not charged.
328
+ */
329
+ interface Billing {
330
+ charged: boolean;
331
+ chargedCredits: string;
332
+ plannedCredits: string;
333
+ status: 'not_charged' | 'pending' | 'charged' | 'charge_failed' | 'refunded';
334
+ }
335
+ /**
336
+ * Exact follow-up an API client or agent should perform.
337
+ */
338
+ interface NextAction {
339
+ type: 'poll' | 'retry' | 'verify_result' | 'fix_request';
340
+ afterMs?: number;
341
+ requiresNewIdempotencyKey?: boolean;
342
+ url?: string;
343
+ }
344
+ /**
345
+ * Stable fingerprint and sanitized payload for replay checks.
346
+ */
347
+ interface Request {
348
+ /**
349
+ * Stable hash of account, action, target, and payload.
350
+ */
351
+ hash: string | null;
352
+ /**
353
+ * Exact sanitized payload dispatched for this action.
354
+ */
355
+ payload: {
356
+ [key: string]: unknown;
357
+ } | null;
358
+ }
359
+ /**
360
+ * Confirmed result produced by the write, when available.
361
+ */
362
+ interface Result {
363
+ id?: string;
364
+ state?: string;
365
+ type?: 'tweet' | 'direct_message' | 'media' | 'community' | 'state_change';
366
+ }
367
+ /**
368
+ * Existing X resource targeted by the write, when applicable.
369
+ */
370
+ interface Target {
371
+ id: string;
372
+ type: 'tweet' | 'user' | 'community';
373
+ }
36
374
  }
37
375
  export interface LikeCreateParams {
38
376
  /**
39
- * X account identifier (@username or account ID)
377
+ * Body param: X account identifier (@username or account ID)
40
378
  */
41
379
  account: string;
380
+ /**
381
+ * Header param: Generate one unique value for each intended write. Reuse it only
382
+ * when retrying the exact same account, action, target, and payload. A reused key
383
+ * returns the original action. Reusing it with different input returns 409. Replay
384
+ * protection remains active for at least 90 days.
385
+ */
386
+ 'Idempotency-Key': string;
42
387
  }
43
388
  export interface LikeDeleteParams {
44
389
  /**
45
- * X account identifier (@username or account ID)
390
+ * Body param: X account identifier (@username or account ID)
46
391
  */
47
392
  account: string;
393
+ /**
394
+ * Header param: Generate one unique value for each intended write. Reuse it only
395
+ * when retrying the exact same account, action, target, and payload. A reused key
396
+ * returns the original action. Reusing it with different input returns 409. Replay
397
+ * protection remains active for at least 90 days.
398
+ */
399
+ 'Idempotency-Key': string;
48
400
  }
49
401
  export declare namespace Like {
50
402
  export { type LikeCreateResponse as LikeCreateResponse, type LikeDeleteResponse as LikeDeleteResponse, type LikeCreateParams as LikeCreateParams, type LikeDeleteParams as LikeDeleteParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"like.d.mts","sourceRoot":"","sources":["../../../src/resources/x/tweets/like.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIpG;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrG;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,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