x-twitter-scraper 0.2.1 → 0.3.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 (200) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +14 -27
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +14 -27
  5. package/client.d.ts.map +1 -1
  6. package/client.js +12 -27
  7. package/client.js.map +1 -1
  8. package/client.mjs +12 -27
  9. package/client.mjs.map +1 -1
  10. package/internal/request-options.d.mts +0 -4
  11. package/internal/request-options.d.mts.map +1 -1
  12. package/internal/request-options.d.ts +0 -4
  13. package/internal/request-options.d.ts.map +1 -1
  14. package/internal/request-options.js.map +1 -1
  15. package/internal/request-options.mjs.map +1 -1
  16. package/internal/utils/env.js +2 -2
  17. package/internal/utils/env.js.map +1 -1
  18. package/internal/utils/env.mjs +2 -2
  19. package/internal/utils/env.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/resources/account.d.mts +7 -6
  22. package/resources/account.d.mts.map +1 -1
  23. package/resources/account.d.ts +7 -6
  24. package/resources/account.d.ts.map +1 -1
  25. package/resources/account.js +3 -3
  26. package/resources/account.js.map +1 -1
  27. package/resources/account.mjs +3 -3
  28. package/resources/account.mjs.map +1 -1
  29. package/resources/api-keys.js +3 -3
  30. package/resources/api-keys.js.map +1 -1
  31. package/resources/api-keys.mjs +3 -3
  32. package/resources/api-keys.mjs.map +1 -1
  33. package/resources/compose.d.mts +1 -1
  34. package/resources/compose.d.ts +1 -1
  35. package/resources/compose.js +1 -1
  36. package/resources/compose.mjs +1 -1
  37. package/resources/credits.d.mts +1 -1
  38. package/resources/credits.d.ts +1 -1
  39. package/resources/credits.js +1 -1
  40. package/resources/credits.mjs +1 -1
  41. package/resources/drafts.d.mts +1 -1
  42. package/resources/drafts.d.ts +1 -1
  43. package/resources/drafts.js +1 -1
  44. package/resources/drafts.mjs +1 -1
  45. package/resources/events.js +1 -1
  46. package/resources/events.js.map +1 -1
  47. package/resources/events.mjs +1 -1
  48. package/resources/events.mjs.map +1 -1
  49. package/resources/extractions.d.mts +3 -2
  50. package/resources/extractions.d.mts.map +1 -1
  51. package/resources/extractions.d.ts +3 -2
  52. package/resources/extractions.d.ts.map +1 -1
  53. package/resources/index.d.mts +1 -3
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +1 -3
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +1 -5
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +0 -2
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/monitors.d.mts +1 -1
  62. package/resources/monitors.d.ts +1 -1
  63. package/resources/monitors.js +1 -1
  64. package/resources/monitors.mjs +1 -1
  65. package/resources/radar.d.mts +45 -10
  66. package/resources/radar.d.mts.map +1 -1
  67. package/resources/radar.d.ts +45 -10
  68. package/resources/radar.d.ts.map +1 -1
  69. package/resources/radar.js +1 -1
  70. package/resources/radar.mjs +1 -1
  71. package/resources/shared.d.mts +47 -6
  72. package/resources/shared.d.mts.map +1 -1
  73. package/resources/shared.d.ts +47 -6
  74. package/resources/shared.d.ts.map +1 -1
  75. package/resources/styles.d.mts +1 -1
  76. package/resources/styles.d.ts +1 -1
  77. package/resources/styles.js +1 -1
  78. package/resources/styles.mjs +1 -1
  79. package/resources/subscribe.d.mts +1 -1
  80. package/resources/subscribe.d.ts +1 -1
  81. package/resources/subscribe.js +1 -1
  82. package/resources/subscribe.mjs +1 -1
  83. package/resources/trends.d.mts +2 -2
  84. package/resources/trends.d.ts +2 -2
  85. package/resources/trends.js +2 -2
  86. package/resources/trends.mjs +2 -2
  87. package/resources/webhooks.d.mts +2 -2
  88. package/resources/webhooks.d.ts +2 -2
  89. package/resources/webhooks.js +2 -2
  90. package/resources/webhooks.mjs +2 -2
  91. package/resources/x/accounts.d.mts +48 -0
  92. package/resources/x/accounts.d.mts.map +1 -1
  93. package/resources/x/accounts.d.ts +48 -0
  94. package/resources/x/accounts.d.ts.map +1 -1
  95. package/resources/x/accounts.js +6 -10
  96. package/resources/x/accounts.js.map +1 -1
  97. package/resources/x/accounts.mjs +6 -10
  98. package/resources/x/accounts.mjs.map +1 -1
  99. package/resources/x/bookmarks.d.mts +1 -1
  100. package/resources/x/bookmarks.d.ts +1 -1
  101. package/resources/x/bookmarks.js +1 -1
  102. package/resources/x/bookmarks.mjs +1 -1
  103. package/resources/x/communities/communities.d.mts +4 -4
  104. package/resources/x/communities/communities.d.ts +4 -4
  105. package/resources/x/communities/communities.js +4 -4
  106. package/resources/x/communities/communities.mjs +4 -4
  107. package/resources/x/communities/tweets.d.mts +3 -3
  108. package/resources/x/communities/tweets.d.ts +3 -3
  109. package/resources/x/communities/tweets.js +3 -3
  110. package/resources/x/communities/tweets.mjs +3 -3
  111. package/resources/x/followers.d.mts +2 -2
  112. package/resources/x/followers.d.ts +2 -2
  113. package/resources/x/followers.js +2 -2
  114. package/resources/x/followers.mjs +2 -2
  115. package/resources/x/index.d.mts +3 -3
  116. package/resources/x/index.d.mts.map +1 -1
  117. package/resources/x/index.d.ts +3 -3
  118. package/resources/x/index.d.ts.map +1 -1
  119. package/resources/x/index.js.map +1 -1
  120. package/resources/x/index.mjs.map +1 -1
  121. package/resources/x/lists.d.mts +4 -4
  122. package/resources/x/lists.d.ts +4 -4
  123. package/resources/x/lists.js +4 -4
  124. package/resources/x/lists.mjs +4 -4
  125. package/resources/x/media.d.mts +2 -2
  126. package/resources/x/media.d.ts +2 -2
  127. package/resources/x/media.js +2 -2
  128. package/resources/x/media.mjs +2 -2
  129. package/resources/x/tweets/index.d.mts +1 -1
  130. package/resources/x/tweets/index.d.mts.map +1 -1
  131. package/resources/x/tweets/index.d.ts +1 -1
  132. package/resources/x/tweets/index.d.ts.map +1 -1
  133. package/resources/x/tweets/index.js.map +1 -1
  134. package/resources/x/tweets/index.mjs.map +1 -1
  135. package/resources/x/tweets/tweets.d.mts +19 -36
  136. package/resources/x/tweets/tweets.d.mts.map +1 -1
  137. package/resources/x/tweets/tweets.d.ts +19 -36
  138. package/resources/x/tweets/tweets.d.ts.map +1 -1
  139. package/resources/x/tweets/tweets.js +7 -7
  140. package/resources/x/tweets/tweets.js.map +1 -1
  141. package/resources/x/tweets/tweets.mjs +7 -7
  142. package/resources/x/tweets/tweets.mjs.map +1 -1
  143. package/resources/x/users/index.d.mts +1 -1
  144. package/resources/x/users/index.d.mts.map +1 -1
  145. package/resources/x/users/index.d.ts +1 -1
  146. package/resources/x/users/index.d.ts.map +1 -1
  147. package/resources/x/users/index.js.map +1 -1
  148. package/resources/x/users/index.mjs.map +1 -1
  149. package/resources/x/users/users.d.mts +13 -29
  150. package/resources/x/users/users.d.mts.map +1 -1
  151. package/resources/x/users/users.d.ts +13 -29
  152. package/resources/x/users/users.d.ts.map +1 -1
  153. package/resources/x/users/users.js +11 -11
  154. package/resources/x/users/users.js.map +1 -1
  155. package/resources/x/users/users.mjs +11 -11
  156. package/resources/x/users/users.mjs.map +1 -1
  157. package/resources/x/x.d.mts +17 -10
  158. package/resources/x/x.d.mts.map +1 -1
  159. package/resources/x/x.d.ts +17 -10
  160. package/resources/x/x.d.ts.map +1 -1
  161. package/resources/x/x.js +3 -6
  162. package/resources/x/x.js.map +1 -1
  163. package/resources/x/x.mjs +3 -6
  164. package/resources/x/x.mjs.map +1 -1
  165. package/src/client.ts +16 -56
  166. package/src/internal/request-options.ts +0 -2
  167. package/src/internal/utils/env.ts +2 -2
  168. package/src/resources/account.ts +10 -8
  169. package/src/resources/api-keys.ts +3 -3
  170. package/src/resources/compose.ts +1 -1
  171. package/src/resources/credits.ts +1 -1
  172. package/src/resources/drafts.ts +1 -1
  173. package/src/resources/events.ts +1 -1
  174. package/src/resources/extractions.ts +5 -3
  175. package/src/resources/index.ts +1 -13
  176. package/src/resources/monitors.ts +1 -1
  177. package/src/resources/radar.ts +50 -10
  178. package/src/resources/shared.ts +74 -14
  179. package/src/resources/styles.ts +1 -1
  180. package/src/resources/subscribe.ts +1 -1
  181. package/src/resources/trends.ts +2 -2
  182. package/src/resources/webhooks.ts +2 -2
  183. package/src/resources/x/accounts.ts +65 -10
  184. package/src/resources/x/bookmarks.ts +1 -1
  185. package/src/resources/x/communities/communities.ts +4 -4
  186. package/src/resources/x/communities/tweets.ts +3 -3
  187. package/src/resources/x/followers.ts +2 -2
  188. package/src/resources/x/index.ts +1 -2
  189. package/src/resources/x/lists.ts +4 -4
  190. package/src/resources/x/media.ts +2 -2
  191. package/src/resources/x/tweets/index.ts +0 -1
  192. package/src/resources/x/tweets/tweets.ts +20 -52
  193. package/src/resources/x/users/index.ts +0 -1
  194. package/src/resources/x/users/users.ts +12 -40
  195. package/src/resources/x/x.ts +19 -10
  196. package/src/version.ts +1 -1
  197. package/version.d.mts +1 -1
  198. package/version.d.ts +1 -1
  199. package/version.js +1 -1
  200. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"OAEO,KAAK,SAAS;OACd,KAAK,QAAQ;AAEpB;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,KAAK,EACD,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,GACf,wBAAwB,GACxB,uBAAuB,GACvB,iBAAiB,GACjB,WAAW,GACX,4BAA4B,GAC5B,uBAAuB,GACvB,iBAAiB,GACjB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,aAAa,GACb,eAAe,GACf,aAAa,GACb,iBAAiB,GACjB,eAAe,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,OAAO,CAAC;IAEvB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;IAEb,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAE5B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,WAAW,CAAC;IAC3B,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QAEX,IAAI,EAAE,MAAM,CAAC;QAEb,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -1,22 +1,20 @@
1
- import * as TweetsAPI from "./x/tweets/tweets.js";
2
- import * as UsersAPI from "./x/users/users.js";
3
1
  /**
4
2
  * Error response containing a machine-readable error code.
5
3
  */
6
4
  export interface Error {
7
- error: 'internal_error' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_username' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | 'monitor_limit_reached' | 'no_subscription' | 'not_found' | 'stream_registration_failed' | 'subscription_inactive' | 'tweet_not_found' | 'unauthenticated' | 'usage_limit_reached' | 'user_not_found' | 'webhook_inactive' | 'x_api_rate_limited' | 'x_api_unavailable' | 'x_api_unauthorized';
5
+ error: 'internal_error' | 'invalid_format' | 'invalid_id' | 'invalid_input' | 'invalid_params' | 'invalid_tool_type' | 'invalid_tweet_id' | 'invalid_tweet_url' | 'invalid_username' | 'insufficient_credits' | 'missing_params' | 'missing_query' | 'monitor_already_exists' | 'monitor_limit_reached' | 'no_credits' | 'no_subscription' | 'not_found' | 'subscription_inactive' | 'tweet_not_found' | 'unauthenticated' | 'user_not_found' | 'webhook_inactive' | 'x_api_rate_limited' | 'x_api_unavailable' | 'x_api_unauthorized';
8
6
  }
9
7
  /**
10
8
  * Type of monitor event fired when account activity occurs.
11
9
  */
12
- export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote' | 'follower.gained' | 'follower.lost';
10
+ export type EventType = 'tweet.new' | 'tweet.reply' | 'tweet.retweet' | 'tweet.quote';
13
11
  /**
14
12
  * Paginated list of tweets with cursor-based navigation.
15
13
  */
16
14
  export interface PaginatedTweets {
17
15
  has_next_page: boolean;
18
16
  next_cursor: string;
19
- tweets: Array<TweetsAPI.SearchTweet>;
17
+ tweets: Array<SearchTweet>;
20
18
  }
21
19
  /**
22
20
  * Paginated list of user profiles with cursor-based navigation.
@@ -24,6 +22,49 @@ export interface PaginatedTweets {
24
22
  export interface PaginatedUsers {
25
23
  has_next_page: boolean;
26
24
  next_cursor: string;
27
- users: Array<UsersAPI.UserProfile>;
25
+ users: Array<UserProfile>;
26
+ }
27
+ /**
28
+ * Tweet returned from search results with inline author info.
29
+ */
30
+ export interface SearchTweet {
31
+ id: string;
32
+ text: string;
33
+ author?: SearchTweet.Author;
34
+ bookmarkCount?: number;
35
+ createdAt?: string;
36
+ /**
37
+ * True for Note Tweets (long-form content, up to 25,000 characters)
38
+ */
39
+ isNoteTweet?: boolean;
40
+ likeCount?: number;
41
+ quoteCount?: number;
42
+ replyCount?: number;
43
+ retweetCount?: number;
44
+ viewCount?: number;
45
+ }
46
+ export declare namespace SearchTweet {
47
+ interface Author {
48
+ id: string;
49
+ name: string;
50
+ username: string;
51
+ verified?: boolean;
52
+ }
53
+ }
54
+ /**
55
+ * X user profile with bio, follower counts, and verification status.
56
+ */
57
+ export interface UserProfile {
58
+ id: string;
59
+ name: string;
60
+ username: string;
61
+ createdAt?: string;
62
+ description?: string;
63
+ followers?: number;
64
+ following?: number;
65
+ location?: string;
66
+ profilePicture?: string;
67
+ statusesCount?: number;
68
+ verified?: boolean;
28
69
  }
29
70
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"OAEO,KAAK,SAAS;OACd,KAAK,QAAQ;AAEpB;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,KAAK,EACD,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,GACf,wBAAwB,GACxB,uBAAuB,GACvB,iBAAiB,GACjB,WAAW,GACX,4BAA4B,GAC5B,uBAAuB,GACvB,iBAAiB,GACjB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,aAAa,GACb,eAAe,GACf,aAAa,GACb,iBAAiB,GACjB,eAAe,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,OAAO,CAAC;IAEvB,WAAW,EAAE,MA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AC,EAAE,WAAW,CAAC,MAAM,CAAC;IAE5B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,WAAW,CAAC;IAC3B,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QAEX,IAAI,EAAE,MAAM,CAAC;QAEb,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -2,7 +2,7 @@ import { APIResource } from "../core/resource.mjs";
2
2
  import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  /**
5
- * Tweet composition, drafts, writing styles & radar
5
+ * AI tweet composition, drafts, writing styles, and radar
6
6
  */
7
7
  export declare class Styles extends APIResource {
8
8
  /**
@@ -2,7 +2,7 @@ import { APIResource } from "../core/resource.js";
2
2
  import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  /**
5
- * Tweet composition, drafts, writing styles & radar
5
+ * AI tweet composition, drafts, writing styles, and radar
6
6
  */
7
7
  export declare class Styles extends APIResource {
8
8
  /**
@@ -6,7 +6,7 @@ const resource_1 = require("../core/resource.js");
6
6
  const headers_1 = require("../internal/headers.js");
7
7
  const path_1 = require("../internal/utils/path.js");
8
8
  /**
9
- * Tweet composition, drafts, writing styles & radar
9
+ * AI tweet composition, drafts, writing styles, and radar
10
10
  */
11
11
  class Styles extends resource_1.APIResource {
12
12
  /**
@@ -3,7 +3,7 @@ import { APIResource } from "../core/resource.mjs";
3
3
  import { buildHeaders } from "../internal/headers.mjs";
4
4
  import { path } from "../internal/utils/path.mjs";
5
5
  /**
6
- * Tweet composition, drafts, writing styles & radar
6
+ * AI tweet composition, drafts, writing styles, and radar
7
7
  */
8
8
  export class Styles extends APIResource {
9
9
  /**
@@ -2,7 +2,7 @@ import { APIResource } from "../core/resource.mjs";
2
2
  import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  /**
5
- * Subscription & billing
5
+ * Subscription, billing, and credits
6
6
  */
7
7
  export declare class Subscribe extends APIResource {
8
8
  /**
@@ -2,7 +2,7 @@ import { APIResource } from "../core/resource.js";
2
2
  import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  /**
5
- * Subscription & billing
5
+ * Subscription, billing, and credits
6
6
  */
7
7
  export declare class Subscribe extends APIResource {
8
8
  /**
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Subscribe = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  /**
7
- * Subscription & billing
7
+ * Subscription, billing, and credits
8
8
  */
9
9
  class Subscribe extends resource_1.APIResource {
10
10
  /**
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  /**
4
- * Subscription & billing
4
+ * Subscription, billing, and credits
5
5
  */
6
6
  export class Subscribe extends APIResource {
7
7
  /**
@@ -2,11 +2,11 @@ import { APIResource } from "../core/resource.mjs";
2
2
  import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  /**
5
- * Trending topics by region
5
+ * Trending topics and hashtags by region
6
6
  */
7
7
  export declare class Trends extends APIResource {
8
8
  /**
9
- * Get regional trending topics
9
+ * Get trending hashtags and topics by region (alias)
10
10
  */
11
11
  list(query?: TrendListParams | null | undefined, options?: RequestOptions): APIPromise<TrendListResponse>;
12
12
  }
@@ -2,11 +2,11 @@ import { APIResource } from "../core/resource.js";
2
2
  import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  /**
5
- * Trending topics by region
5
+ * Trending topics and hashtags by region
6
6
  */
7
7
  export declare class Trends extends APIResource {
8
8
  /**
9
- * Get regional trending topics
9
+ * Get trending hashtags and topics by region (alias)
10
10
  */
11
11
  list(query?: TrendListParams | null | undefined, options?: RequestOptions): APIPromise<TrendListResponse>;
12
12
  }
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Trends = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  /**
7
- * Trending topics by region
7
+ * Trending topics and hashtags by region
8
8
  */
9
9
  class Trends extends resource_1.APIResource {
10
10
  /**
11
- * Get regional trending topics
11
+ * Get trending hashtags and topics by region (alias)
12
12
  */
13
13
  list(query = {}, options) {
14
14
  return this._client.get('/trends', { query, ...options });
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  /**
4
- * Trending topics by region
4
+ * Trending topics and hashtags by region
5
5
  */
6
6
  export class Trends extends APIResource {
7
7
  /**
8
- * Get regional trending topics
8
+ * Get trending hashtags and topics by region (alias)
9
9
  */
10
10
  list(query = {}, options) {
11
11
  return this._client.get('/trends', { query, ...options });
@@ -3,7 +3,7 @@ import * as Shared from "./shared.mjs";
3
3
  import { APIPromise } from "../core/api-promise.mjs";
4
4
  import { RequestOptions } from "../internal/request-options.mjs";
5
5
  /**
6
- * Webhook endpoint management & delivery
6
+ * Webhook endpoint management and delivery
7
7
  */
8
8
  export declare class Webhooks extends APIResource {
9
9
  /**
@@ -12,7 +12,7 @@ export declare class Webhooks extends APIResource {
12
12
  * @example
13
13
  * ```ts
14
14
  * const webhook = await client.webhooks.create({
15
- * eventTypes: ['tweet.new', 'follower.gained'],
15
+ * eventTypes: ['tweet.new', 'tweet.reply'],
16
16
  * url: 'https://example.com/webhook',
17
17
  * });
18
18
  * ```
@@ -3,7 +3,7 @@ import * as Shared from "./shared.js";
3
3
  import { APIPromise } from "../core/api-promise.js";
4
4
  import { RequestOptions } from "../internal/request-options.js";
5
5
  /**
6
- * Webhook endpoint management & delivery
6
+ * Webhook endpoint management and delivery
7
7
  */
8
8
  export declare class Webhooks extends APIResource {
9
9
  /**
@@ -12,7 +12,7 @@ export declare class Webhooks extends APIResource {
12
12
  * @example
13
13
  * ```ts
14
14
  * const webhook = await client.webhooks.create({
15
- * eventTypes: ['tweet.new', 'follower.gained'],
15
+ * eventTypes: ['tweet.new', 'tweet.reply'],
16
16
  * url: 'https://example.com/webhook',
17
17
  * });
18
18
  * ```
@@ -5,7 +5,7 @@ exports.Webhooks = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  const path_1 = require("../internal/utils/path.js");
7
7
  /**
8
- * Webhook endpoint management & delivery
8
+ * Webhook endpoint management and delivery
9
9
  */
10
10
  class Webhooks extends resource_1.APIResource {
11
11
  /**
@@ -14,7 +14,7 @@ class Webhooks extends resource_1.APIResource {
14
14
  * @example
15
15
  * ```ts
16
16
  * const webhook = await client.webhooks.create({
17
- * eventTypes: ['tweet.new', 'follower.gained'],
17
+ * eventTypes: ['tweet.new', 'tweet.reply'],
18
18
  * url: 'https://example.com/webhook',
19
19
  * });
20
20
  * ```
@@ -2,7 +2,7 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  import { path } from "../internal/utils/path.mjs";
4
4
  /**
5
- * Webhook endpoint management & delivery
5
+ * Webhook endpoint management and delivery
6
6
  */
7
7
  export class Webhooks extends APIResource {
8
8
  /**
@@ -11,7 +11,7 @@ export class Webhooks extends APIResource {
11
11
  * @example
12
12
  * ```ts
13
13
  * const webhook = await client.webhooks.create({
14
- * eventTypes: ['tweet.new', 'follower.gained'],
14
+ * eventTypes: ['tweet.new', 'tweet.reply'],
15
15
  * url: 'https://example.com/webhook',
16
16
  * });
17
17
  * ```
@@ -76,6 +76,14 @@ export declare class Accounts extends APIResource {
76
76
  export interface XAccount {
77
77
  id: string;
78
78
  createdAt: string;
79
+ /**
80
+ * Derived login/cookie health. `healthy` = cookies valid. `needsReauth` = user
81
+ * must submit fresh credentials. `locked` = X locked the account; unlock on x.com
82
+ * first. `suspended` = X banned the account. `recovering` = past cooldown, will
83
+ * auto-retry on next use. `temporaryIssue` = transient backend problem; retry
84
+ * shortly.
85
+ */
86
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
79
87
  status: string;
80
88
  xUserId: string;
81
89
  xUsername: string;
@@ -86,6 +94,7 @@ export interface XAccount {
86
94
  export interface XAccountDetail {
87
95
  id: string;
88
96
  createdAt: string;
97
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
89
98
  status: string;
90
99
  xUserId: string;
91
100
  xUsername: string;
@@ -93,11 +102,26 @@ export interface XAccountDetail {
93
102
  proxyCountry?: string;
94
103
  updatedAt?: string;
95
104
  }
105
+ /**
106
+ * Sanitized X account summary returned by connect and reauth. Includes an optional
107
+ * `loginCountry` field surfaced only when the declared proxy region had no Driver
108
+ * capacity and the login fell back to a single US consumer device for this
109
+ * one-time action. Future activity continues to use the selected `proxy_country`;
110
+ * the field is omitted on normal logins.
111
+ */
96
112
  export interface AccountCreateResponse {
97
113
  id: string;
114
+ createdAt: string;
115
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
98
116
  status: string;
99
117
  xUserId: string;
100
118
  xUsername: string;
119
+ /**
120
+ * ISO-3166-1 alpha-2 country code of the Driver consumer device used for this
121
+ * login. Present only when the US fallback was triggered because Driver had no
122
+ * capacity in the declared region. Omitted otherwise.
123
+ */
124
+ loginCountry?: string;
101
125
  }
102
126
  export interface AccountListResponse {
103
127
  accounts: Array<XAccount>;
@@ -111,10 +135,26 @@ export interface AccountBulkRetryResponse {
111
135
  */
112
136
  cleared: number;
113
137
  }
138
+ /**
139
+ * Sanitized X account summary returned by connect and reauth. Includes an optional
140
+ * `loginCountry` field surfaced only when the declared proxy region had no Driver
141
+ * capacity and the login fell back to a single US consumer device for this
142
+ * one-time action. Future activity continues to use the selected `proxy_country`;
143
+ * the field is omitted on normal logins.
144
+ */
114
145
  export interface AccountReauthResponse {
115
146
  id: string;
147
+ createdAt: string;
148
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
116
149
  status: string;
150
+ xUserId: string;
117
151
  xUsername: string;
152
+ /**
153
+ * ISO-3166-1 alpha-2 country code of the Driver consumer device used for this
154
+ * login. Present only when the US fallback was triggered because Driver had no
155
+ * capacity in the declared region. Omitted otherwise.
156
+ */
157
+ loginCountry?: string;
118
158
  }
119
159
  export interface AccountCreateParams {
120
160
  /**
@@ -143,6 +183,14 @@ export interface AccountReauthParams {
143
183
  * Updated account password
144
184
  */
145
185
  password: string;
186
+ /**
187
+ * Email for the X account (updates stored email)
188
+ */
189
+ email?: string;
190
+ /**
191
+ * Two-letter country code for login proxy region
192
+ */
193
+ proxy_country?: string;
146
194
  /**
147
195
  * TOTP secret for 2FA re-authentication
148
196
  */
@@ -1 +1 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,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAAC;IAE7F,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,MAAM,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -76,6 +76,14 @@ export declare class Accounts extends APIResource {
76
76
  export interface XAccount {
77
77
  id: string;
78
78
  createdAt: string;
79
+ /**
80
+ * Derived login/cookie health. `healthy` = cookies valid. `needsReauth` = user
81
+ * must submit fresh credentials. `locked` = X locked the account; unlock on x.com
82
+ * first. `suspended` = X banned the account. `recovering` = past cooldown, will
83
+ * auto-retry on next use. `temporaryIssue` = transient backend problem; retry
84
+ * shortly.
85
+ */
86
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
79
87
  status: string;
80
88
  xUserId: string;
81
89
  xUsername: string;
@@ -86,6 +94,7 @@ export interface XAccount {
86
94
  export interface XAccountDetail {
87
95
  id: string;
88
96
  createdAt: string;
97
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
89
98
  status: string;
90
99
  xUserId: string;
91
100
  xUsername: string;
@@ -93,11 +102,26 @@ export interface XAccountDetail {
93
102
  proxyCountry?: string;
94
103
  updatedAt?: string;
95
104
  }
105
+ /**
106
+ * Sanitized X account summary returned by connect and reauth. Includes an optional
107
+ * `loginCountry` field surfaced only when the declared proxy region had no Driver
108
+ * capacity and the login fell back to a single US consumer device for this
109
+ * one-time action. Future activity continues to use the selected `proxy_country`;
110
+ * the field is omitted on normal logins.
111
+ */
96
112
  export interface AccountCreateResponse {
97
113
  id: string;
114
+ createdAt: string;
115
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
98
116
  status: string;
99
117
  xUserId: string;
100
118
  xUsername: string;
119
+ /**
120
+ * ISO-3166-1 alpha-2 country code of the Driver consumer device used for this
121
+ * login. Present only when the US fallback was triggered because Driver had no
122
+ * capacity in the declared region. Omitted otherwise.
123
+ */
124
+ loginCountry?: string;
101
125
  }
102
126
  export interface AccountListResponse {
103
127
  accounts: Array<XAccount>;
@@ -111,10 +135,26 @@ export interface AccountBulkRetryResponse {
111
135
  */
112
136
  cleared: number;
113
137
  }
138
+ /**
139
+ * Sanitized X account summary returned by connect and reauth. Includes an optional
140
+ * `loginCountry` field surfaced only when the declared proxy region had no Driver
141
+ * capacity and the login fell back to a single US consumer device for this
142
+ * one-time action. Future activity continues to use the selected `proxy_country`;
143
+ * the field is omitted on normal logins.
144
+ */
114
145
  export interface AccountReauthResponse {
115
146
  id: string;
147
+ createdAt: string;
148
+ health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
116
149
  status: string;
150
+ xUserId: string;
117
151
  xUsername: string;
152
+ /**
153
+ * ISO-3166-1 alpha-2 country code of the Driver consumer device used for this
154
+ * login. Present only when the US fallback was triggered because Driver had no
155
+ * capacity in the declared region. Omitted otherwise.
156
+ */
157
+ loginCountry?: string;
118
158
  }
119
159
  export interface AccountCreateParams {
120
160
  /**
@@ -143,6 +183,14 @@ export interface AccountReauthParams {
143
183
  * Updated account password
144
184
  */
145
185
  password: string;
186
+ /**
187
+ * Email for the X account (updates stored email)
188
+ */
189
+ email?: string;
190
+ /**
191
+ * Two-letter country code for login proxy region
192
+ */
193
+ proxy_country?: string;
146
194
  /**
147
195
  * TOTP secret for 2FA re-authentication
148
196
  */
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI1E;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/D;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,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CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -21,7 +21,7 @@ class Accounts extends resource_1.APIResource {
21
21
  * ```
22
22
  */
23
23
  create(body, options) {
24
- return this._client.post('/x/accounts', { body, ...options, __security: { apiKeyAuth: true } });
24
+ return this._client.post('/x/accounts', { body, ...options });
25
25
  }
26
26
  /**
27
27
  * Get X account details
@@ -34,7 +34,7 @@ class Accounts extends resource_1.APIResource {
34
34
  * ```
35
35
  */
36
36
  retrieve(id, options) {
37
- return this._client.get((0, path_1.path) `/x/accounts/${id}`, { ...options, __security: { apiKeyAuth: true } });
37
+ return this._client.get((0, path_1.path) `/x/accounts/${id}`, options);
38
38
  }
39
39
  /**
40
40
  * List connected X accounts
@@ -45,7 +45,7 @@ class Accounts extends resource_1.APIResource {
45
45
  * ```
46
46
  */
47
47
  list(options) {
48
- return this._client.get('/x/accounts', { ...options, __security: { apiKeyAuth: true } });
48
+ return this._client.get('/x/accounts', options);
49
49
  }
50
50
  /**
51
51
  * Disconnect X account
@@ -56,7 +56,7 @@ class Accounts extends resource_1.APIResource {
56
56
  * ```
57
57
  */
58
58
  delete(id, options) {
59
- return this._client.delete((0, path_1.path) `/x/accounts/${id}`, { ...options, __security: { apiKeyAuth: true } });
59
+ return this._client.delete((0, path_1.path) `/x/accounts/${id}`, options);
60
60
  }
61
61
  /**
62
62
  * Clears loginFailedAt and loginFailureReason for all accounts with transient or
@@ -68,7 +68,7 @@ class Accounts extends resource_1.APIResource {
68
68
  * ```
69
69
  */
70
70
  bulkRetry(options) {
71
- return this._client.post('/x/accounts/bulk-retry', { ...options, __security: { apiKeyAuth: true } });
71
+ return this._client.post('/x/accounts/bulk-retry', options);
72
72
  }
73
73
  /**
74
74
  * Re-authenticate X account
@@ -82,11 +82,7 @@ class Accounts extends resource_1.APIResource {
82
82
  * ```
83
83
  */
84
84
  reauth(id, body, options) {
85
- return this._client.post((0, path_1.path) `/x/accounts/${id}/reauth`, {
86
- body,
87
- ...options,
88
- __security: { apiKeyAuth: true },
89
- });
85
+ return this._client.post((0, path_1.path) `/x/accounts/${id}/reauth`, { body, ...options });
90
86
  }
91
87
  }
92
88
  exports.Accounts = Accounts;
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;OAO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AAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAlFD,4BAkFC"}
@@ -18,7 +18,7 @@ export class Accounts extends APIResource {
18
18
  * ```
19
19
  */
20
20
  create(body, options) {
21
- return this._client.post('/x/accounts', { body, ...options, __security: { apiKeyAuth: true } });
21
+ return this._client.post('/x/accounts', { body, ...options });
22
22
  }
23
23
  /**
24
24
  * Get X account details
@@ -31,7 +31,7 @@ export class Accounts extends APIResource {
31
31
  * ```
32
32
  */
33
33
  retrieve(id, options) {
34
- return this._client.get(path `/x/accounts/${id}`, { ...options, __security: { apiKeyAuth: true } });
34
+ return this._client.get(path `/x/accounts/${id}`, options);
35
35
  }
36
36
  /**
37
37
  * List connected X accounts
@@ -42,7 +42,7 @@ export class Accounts extends APIResource {
42
42
  * ```
43
43
  */
44
44
  list(options) {
45
- return this._client.get('/x/accounts', { ...options, __security: { apiKeyAuth: true } });
45
+ return this._client.get('/x/accounts', options);
46
46
  }
47
47
  /**
48
48
  * Disconnect X account
@@ -53,7 +53,7 @@ export class Accounts extends APIResource {
53
53
  * ```
54
54
  */
55
55
  delete(id, options) {
56
- return this._client.delete(path `/x/accounts/${id}`, { ...options, __security: { apiKeyAuth: true } });
56
+ return this._client.delete(path `/x/accounts/${id}`, options);
57
57
  }
58
58
  /**
59
59
  * Clears loginFailedAt and loginFailureReason for all accounts with transient or
@@ -65,7 +65,7 @@ export class Accounts extends APIResource {
65
65
  * ```
66
66
  */
67
67
  bulkRetry(options) {
68
- return this._client.post('/x/accounts/bulk-retry', { ...options, __security: { apiKeyAuth: true } });
68
+ return this._client.post('/x/accounts/bulk-retry', options);
69
69
  }
70
70
  /**
71
71
  * Re-authenticate X account
@@ -79,11 +79,7 @@ export class Accounts extends APIResource {
79
79
  * ```
80
80
  */
81
81
  reauth(id, body, options) {
82
- return this._client.post(path `/x/accounts/${id}/reauth`, {
83
- body,
84
- ...options,
85
- __security: { apiKeyAuth: true },
86
- });
82
+ return this._client.post(path `/x/accounts/${id}/reauth`, { body, ...options });
87
83
  }
88
84
  }
89
85
  //# sourceMappingURL=accounts.mjs.map