x-twitter-scraper 0.19.0 → 0.21.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 (257) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +120 -120
  3. package/client.d.mts +7 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +7 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/activity.d.mts +18 -2
  11. package/resources/activity.d.mts.map +1 -1
  12. package/resources/activity.d.ts +18 -2
  13. package/resources/activity.d.ts.map +1 -1
  14. package/resources/credits.d.mts +5 -0
  15. package/resources/credits.d.mts.map +1 -1
  16. package/resources/credits.d.ts +5 -0
  17. package/resources/credits.d.ts.map +1 -1
  18. package/resources/extractions.d.mts +153 -5
  19. package/resources/extractions.d.mts.map +1 -1
  20. package/resources/extractions.d.ts +153 -5
  21. package/resources/extractions.d.ts.map +1 -1
  22. package/resources/index.d.mts +1 -1
  23. package/resources/index.d.mts.map +1 -1
  24. package/resources/index.d.ts +1 -1
  25. package/resources/index.d.ts.map +1 -1
  26. package/resources/index.js.map +1 -1
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/monitors/index.d.mts +1 -1
  29. package/resources/monitors/index.d.mts.map +1 -1
  30. package/resources/monitors/index.d.ts +1 -1
  31. package/resources/monitors/index.d.ts.map +1 -1
  32. package/resources/monitors/index.js.map +1 -1
  33. package/resources/monitors/index.mjs.map +1 -1
  34. package/resources/monitors/monitors.d.mts +38 -1
  35. package/resources/monitors/monitors.d.mts.map +1 -1
  36. package/resources/monitors/monitors.d.ts +38 -1
  37. package/resources/monitors/monitors.d.ts.map +1 -1
  38. package/resources/monitors/monitors.js +18 -0
  39. package/resources/monitors/monitors.js.map +1 -1
  40. package/resources/monitors/monitors.mjs +18 -0
  41. package/resources/monitors/monitors.mjs.map +1 -1
  42. package/resources/monitors/posts.d.mts +27 -0
  43. package/resources/monitors/posts.d.mts.map +1 -1
  44. package/resources/monitors/posts.d.ts +27 -0
  45. package/resources/monitors/posts.d.ts.map +1 -1
  46. package/resources/radar.d.mts +9 -0
  47. package/resources/radar.d.mts.map +1 -1
  48. package/resources/radar.d.ts +9 -0
  49. package/resources/radar.d.ts.map +1 -1
  50. package/resources/shared.d.mts +175 -5
  51. package/resources/shared.d.mts.map +1 -1
  52. package/resources/shared.d.ts +175 -5
  53. package/resources/shared.d.ts.map +1 -1
  54. package/resources/x/account-connection-attempts.d.mts +4 -0
  55. package/resources/x/account-connection-attempts.d.mts.map +1 -1
  56. package/resources/x/account-connection-attempts.d.ts +4 -0
  57. package/resources/x/account-connection-attempts.d.ts.map +1 -1
  58. package/resources/x/account-connection-links.d.mts +159 -0
  59. package/resources/x/account-connection-links.d.mts.map +1 -0
  60. package/resources/x/account-connection-links.d.ts +159 -0
  61. package/resources/x/account-connection-links.d.ts.map +1 -0
  62. package/resources/x/account-connection-links.js +82 -0
  63. package/resources/x/account-connection-links.js.map +1 -0
  64. package/resources/x/account-connection-links.mjs +78 -0
  65. package/resources/x/account-connection-links.mjs.map +1 -0
  66. package/resources/x/accounts.d.mts +13 -9
  67. package/resources/x/accounts.d.mts.map +1 -1
  68. package/resources/x/accounts.d.ts +13 -9
  69. package/resources/x/accounts.d.ts.map +1 -1
  70. package/resources/x/analysis.d.mts +540 -36
  71. package/resources/x/analysis.d.mts.map +1 -1
  72. package/resources/x/analysis.d.ts +540 -36
  73. package/resources/x/analysis.d.ts.map +1 -1
  74. package/resources/x/bookmarks.d.mts +5 -0
  75. package/resources/x/bookmarks.d.mts.map +1 -1
  76. package/resources/x/bookmarks.d.ts +5 -0
  77. package/resources/x/bookmarks.d.ts.map +1 -1
  78. package/resources/x/communities/communities.d.mts +19 -2
  79. package/resources/x/communities/communities.d.mts.map +1 -1
  80. package/resources/x/communities/communities.d.ts +19 -2
  81. package/resources/x/communities/communities.d.ts.map +1 -1
  82. package/resources/x/communities/communities.js +7 -4
  83. package/resources/x/communities/communities.js.map +1 -1
  84. package/resources/x/communities/communities.mjs +7 -4
  85. package/resources/x/communities/communities.mjs.map +1 -1
  86. package/resources/x/communities/join.d.mts +16 -2
  87. package/resources/x/communities/join.d.mts.map +1 -1
  88. package/resources/x/communities/join.d.ts +16 -2
  89. package/resources/x/communities/join.d.ts.map +1 -1
  90. package/resources/x/communities/join.js +4 -4
  91. package/resources/x/communities/join.js.map +1 -1
  92. package/resources/x/communities/join.mjs +4 -4
  93. package/resources/x/communities/join.mjs.map +1 -1
  94. package/resources/x/dm.d.mts +16 -2
  95. package/resources/x/dm.d.mts.map +1 -1
  96. package/resources/x/dm.d.ts +16 -2
  97. package/resources/x/dm.d.ts.map +1 -1
  98. package/resources/x/dm.js +4 -4
  99. package/resources/x/dm.js.map +1 -1
  100. package/resources/x/dm.mjs +4 -4
  101. package/resources/x/dm.mjs.map +1 -1
  102. package/resources/x/index.d.mts +2 -1
  103. package/resources/x/index.d.mts.map +1 -1
  104. package/resources/x/index.d.ts +2 -1
  105. package/resources/x/index.d.ts.map +1 -1
  106. package/resources/x/index.js +3 -1
  107. package/resources/x/index.js.map +1 -1
  108. package/resources/x/index.mjs +1 -0
  109. package/resources/x/index.mjs.map +1 -1
  110. package/resources/x/media.d.mts +55 -1
  111. package/resources/x/media.d.mts.map +1 -1
  112. package/resources/x/media.d.ts +55 -1
  113. package/resources/x/media.d.ts.map +1 -1
  114. package/resources/x/media.js +2 -2
  115. package/resources/x/media.js.map +1 -1
  116. package/resources/x/media.mjs +2 -2
  117. package/resources/x/media.mjs.map +1 -1
  118. package/resources/x/profile.d.mts +24 -3
  119. package/resources/x/profile.d.mts.map +1 -1
  120. package/resources/x/profile.d.ts +24 -3
  121. package/resources/x/profile.d.ts.map +1 -1
  122. package/resources/x/profile.js +6 -6
  123. package/resources/x/profile.js.map +1 -1
  124. package/resources/x/profile.mjs +6 -6
  125. package/resources/x/profile.mjs.map +1 -1
  126. package/resources/x/tweets/bookmark.d.mts +84 -0
  127. package/resources/x/tweets/bookmark.d.mts.map +1 -0
  128. package/resources/x/tweets/bookmark.d.ts +84 -0
  129. package/resources/x/tweets/bookmark.d.ts.map +1 -0
  130. package/resources/x/tweets/bookmark.js +55 -0
  131. package/resources/x/tweets/bookmark.js.map +1 -0
  132. package/resources/x/tweets/bookmark.mjs +51 -0
  133. package/resources/x/tweets/bookmark.mjs.map +1 -0
  134. package/resources/x/tweets/index.d.mts +1 -0
  135. package/resources/x/tweets/index.d.mts.map +1 -1
  136. package/resources/x/tweets/index.d.ts +1 -0
  137. package/resources/x/tweets/index.d.ts.map +1 -1
  138. package/resources/x/tweets/index.js +3 -1
  139. package/resources/x/tweets/index.js.map +1 -1
  140. package/resources/x/tweets/index.mjs +1 -0
  141. package/resources/x/tweets/index.mjs.map +1 -1
  142. package/resources/x/tweets/like.d.mts +16 -2
  143. package/resources/x/tweets/like.d.mts.map +1 -1
  144. package/resources/x/tweets/like.d.ts +16 -2
  145. package/resources/x/tweets/like.d.ts.map +1 -1
  146. package/resources/x/tweets/like.js +4 -4
  147. package/resources/x/tweets/like.js.map +1 -1
  148. package/resources/x/tweets/like.mjs +4 -4
  149. package/resources/x/tweets/like.mjs.map +1 -1
  150. package/resources/x/tweets/retweet.d.mts +16 -2
  151. package/resources/x/tweets/retweet.d.mts.map +1 -1
  152. package/resources/x/tweets/retweet.d.ts +16 -2
  153. package/resources/x/tweets/retweet.d.ts.map +1 -1
  154. package/resources/x/tweets/retweet.js +4 -4
  155. package/resources/x/tweets/retweet.js.map +1 -1
  156. package/resources/x/tweets/retweet.mjs +4 -4
  157. package/resources/x/tweets/retweet.mjs.map +1 -1
  158. package/resources/x/tweets/tweets.d.mts +68 -13
  159. package/resources/x/tweets/tweets.d.mts.map +1 -1
  160. package/resources/x/tweets/tweets.d.ts +68 -13
  161. package/resources/x/tweets/tweets.d.ts.map +1 -1
  162. package/resources/x/tweets/tweets.js +8 -4
  163. package/resources/x/tweets/tweets.js.map +1 -1
  164. package/resources/x/tweets/tweets.mjs +8 -4
  165. package/resources/x/tweets/tweets.mjs.map +1 -1
  166. package/resources/x/users/block.d.mts +84 -0
  167. package/resources/x/users/block.d.mts.map +1 -0
  168. package/resources/x/users/block.d.ts +84 -0
  169. package/resources/x/users/block.d.ts.map +1 -0
  170. package/resources/x/users/block.js +55 -0
  171. package/resources/x/users/block.js.map +1 -0
  172. package/resources/x/users/block.mjs +51 -0
  173. package/resources/x/users/block.mjs.map +1 -0
  174. package/resources/x/users/follow.d.mts +16 -2
  175. package/resources/x/users/follow.d.mts.map +1 -1
  176. package/resources/x/users/follow.d.ts +16 -2
  177. package/resources/x/users/follow.d.ts.map +1 -1
  178. package/resources/x/users/follow.js +4 -4
  179. package/resources/x/users/follow.js.map +1 -1
  180. package/resources/x/users/follow.mjs +4 -4
  181. package/resources/x/users/follow.mjs.map +1 -1
  182. package/resources/x/users/index.d.mts +3 -1
  183. package/resources/x/users/index.d.mts.map +1 -1
  184. package/resources/x/users/index.d.ts +3 -1
  185. package/resources/x/users/index.d.ts.map +1 -1
  186. package/resources/x/users/index.js +5 -1
  187. package/resources/x/users/index.js.map +1 -1
  188. package/resources/x/users/index.mjs +2 -0
  189. package/resources/x/users/index.mjs.map +1 -1
  190. package/resources/x/users/mute.d.mts +84 -0
  191. package/resources/x/users/mute.d.mts.map +1 -0
  192. package/resources/x/users/mute.d.ts +84 -0
  193. package/resources/x/users/mute.d.ts.map +1 -0
  194. package/resources/x/users/mute.js +55 -0
  195. package/resources/x/users/mute.js.map +1 -0
  196. package/resources/x/users/mute.mjs +51 -0
  197. package/resources/x/users/mute.mjs.map +1 -0
  198. package/resources/x/users/users.d.mts +783 -9
  199. package/resources/x/users/users.d.mts.map +1 -1
  200. package/resources/x/users/users.d.ts +783 -9
  201. package/resources/x/users/users.d.ts.map +1 -1
  202. package/resources/x/users/users.js +44 -3
  203. package/resources/x/users/users.js.map +1 -1
  204. package/resources/x/users/users.mjs +44 -3
  205. package/resources/x/users/users.mjs.map +1 -1
  206. package/resources/x/write-actions.d.mts +1 -1
  207. package/resources/x/write-actions.d.mts.map +1 -1
  208. package/resources/x/write-actions.d.ts +1 -1
  209. package/resources/x/write-actions.d.ts.map +1 -1
  210. package/resources/x/x.d.mts +15 -2
  211. package/resources/x/x.d.mts.map +1 -1
  212. package/resources/x/x.d.ts +15 -2
  213. package/resources/x/x.d.ts.map +1 -1
  214. package/resources/x/x.js +4 -0
  215. package/resources/x/x.js.map +1 -1
  216. package/resources/x/x.mjs +4 -0
  217. package/resources/x/x.mjs.map +1 -1
  218. package/src/client.ts +9 -0
  219. package/src/core/README.md +4 -0
  220. package/src/internal/README.md +6 -1
  221. package/src/resources/activity.ts +41 -2
  222. package/src/resources/credits.ts +6 -0
  223. package/src/resources/extractions.ts +183 -0
  224. package/src/resources/index.ts +2 -0
  225. package/src/resources/monitors/index.ts +2 -0
  226. package/src/resources/monitors/monitors.ts +49 -0
  227. package/src/resources/monitors/posts.ts +32 -0
  228. package/src/resources/radar.ts +10 -0
  229. package/src/resources/shared.ts +213 -4
  230. package/src/resources/x/account-connection-attempts.ts +5 -0
  231. package/src/resources/x/account-connection-links.ts +215 -0
  232. package/src/resources/x/accounts.ts +15 -14
  233. package/src/resources/x/analysis.ts +618 -36
  234. package/src/resources/x/bookmarks.ts +6 -0
  235. package/src/resources/x/communities/communities.ts +35 -4
  236. package/src/resources/x/communities/join.ts +32 -4
  237. package/src/resources/x/dm.ts +32 -4
  238. package/src/resources/x/index.ts +18 -0
  239. package/src/resources/x/media.ts +74 -2
  240. package/src/resources/x/profile.ts +48 -6
  241. package/src/resources/x/tweets/bookmark.ts +127 -0
  242. package/src/resources/x/tweets/index.ts +7 -0
  243. package/src/resources/x/tweets/like.ts +32 -4
  244. package/src/resources/x/tweets/retweet.ts +32 -4
  245. package/src/resources/x/tweets/tweets.ts +104 -14
  246. package/src/resources/x/users/block.ts +119 -0
  247. package/src/resources/x/users/follow.ts +32 -4
  248. package/src/resources/x/users/index.ts +23 -0
  249. package/src/resources/x/users/mute.ts +119 -0
  250. package/src/resources/x/users/users.ts +1063 -89
  251. package/src/resources/x/write-actions.ts +6 -0
  252. package/src/resources/x/x.ts +54 -0
  253. package/src/version.ts +1 -1
  254. package/version.d.mts +1 -1
  255. package/version.d.ts +1 -1
  256. package/version.js +1 -1
  257. package/version.mjs +1 -1
@@ -0,0 +1,159 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Connected X account management
6
+ */
7
+ export declare class AccountConnectionLinks extends APIResource {
8
+ /**
9
+ * Creates a link to a page Xquik hosts, where a person connects an X account with
10
+ * no Xquik signup. Your backend never receives their password or 2FA secret, and
11
+ * the account belongs to you. Send `accountId` to reconnect 1 of your accounts
12
+ * instead. Connecting is free. Takes a Full access API key holding
13
+ * `connectsXAccounts`, or a dashboard session. The link works for 30 minutes, &
14
+ * the response is the only place its token appears. A link a key made stops while
15
+ * that key is paused or loses `connectsXAccounts`, & for good once it's revoked,
16
+ * rotated, expired or deleted.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const accountConnectionLink =
21
+ * await client.x.accountConnectionLinks.create({
22
+ * reference: 'user-42',
23
+ * });
24
+ * ```
25
+ */
26
+ create(body?: AccountConnectionLinkCreateParams | null | undefined, options?: RequestOptions): APIPromise<AccountConnectionLinkCreateResponse>;
27
+ /**
28
+ * Reads what happened on a link. `status` reads `connected` once the person
29
+ * finishes, with `xUserId`, `xUsername` & `health`. It never holds the token.
30
+ * Takes a Full access API key holding `connectsXAccounts`, or a dashboard session.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const accountConnectionLink =
35
+ * await client.x.accountConnectionLinks.retrieve(
36
+ * 'xlink_AAAAAAAAAAAAAAAA',
37
+ * );
38
+ * ```
39
+ */
40
+ retrieve(id: string, options?: RequestOptions): APIPromise<XAccountConnectionLink>;
41
+ /**
42
+ * Lists your connect links, newest first, with `apiKeyId` naming the API key that
43
+ * made each one, or null for a dashboard session. Use it to find and revoke the
44
+ * links a leaked key made. It never holds a token. Takes a Full access API key
45
+ * holding `connectsXAccounts`, or a dashboard session.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const accountConnectionLinks =
50
+ * await client.x.accountConnectionLinks.list();
51
+ * ```
52
+ */
53
+ list(query?: AccountConnectionLinkListParams | null | undefined, options?: RequestOptions): APIPromise<AccountConnectionLinkListResponse>;
54
+ /**
55
+ * Stops a link working. An account it already connected stays connected. Takes a
56
+ * Full access API key holding `connectsXAccounts`, or a dashboard session.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const accountConnectionLink =
61
+ * await client.x.accountConnectionLinks.delete(
62
+ * 'xlink_AAAAAAAAAAAAAAAA',
63
+ * );
64
+ * ```
65
+ */
66
+ delete(id: string, options?: RequestOptions): APIPromise<AccountConnectionLinkDeleteResponse>;
67
+ }
68
+ /**
69
+ * A link where a person connects an X account on Xquik's page.
70
+ */
71
+ export interface XAccountConnectionLink {
72
+ id: string;
73
+ accountId: string | null;
74
+ /**
75
+ * The ID of the API key that made the link, or null when a dashboard session made
76
+ * it.
77
+ */
78
+ apiKeyId: string | null;
79
+ completedAt: string | null;
80
+ createdAt: string;
81
+ expiresAt: string;
82
+ /**
83
+ * Why the last login didn't finish.
84
+ */
85
+ failure: string | null;
86
+ health: string | null;
87
+ object: 'x_account_connection_link';
88
+ purpose: 'connect' | 'reconnect';
89
+ reference: string | null;
90
+ returnUrl: string | null;
91
+ /**
92
+ * `failed` means 5 logins were refused, so make a new link. `revoked` means you
93
+ * revoked it, or the key that made it is paused, revoked, expired, no longer Full
94
+ * access or without `connectsXAccounts`. A link whose key resumes within its 30
95
+ * minutes reads `pending` again.
96
+ */
97
+ status: 'pending' | 'connecting' | 'requires_email_code' | 'connected' | 'failed' | 'expired' | 'revoked';
98
+ xUserId: string | null;
99
+ xUsername: string | null;
100
+ /**
101
+ * Present only in the response that creates the link.
102
+ */
103
+ url?: string;
104
+ }
105
+ /**
106
+ * A link where a person connects an X account on Xquik's page.
107
+ */
108
+ export interface AccountConnectionLinkCreateResponse extends XAccountConnectionLink {
109
+ /**
110
+ * The page to open. Its fragment holds the token, so treat it as a secret & keep
111
+ * it out of logs.
112
+ */
113
+ url: string;
114
+ }
115
+ /**
116
+ * Your connect links, newest first.
117
+ */
118
+ export interface AccountConnectionLinkListResponse {
119
+ hasMore: boolean;
120
+ links: Array<XAccountConnectionLink>;
121
+ /**
122
+ * Pass unchanged as cursor while hasMore is true.
123
+ */
124
+ nextCursor?: string;
125
+ }
126
+ export interface AccountConnectionLinkDeleteResponse {
127
+ success: true;
128
+ }
129
+ export interface AccountConnectionLinkCreateParams {
130
+ /**
131
+ * The ID of 1 of your X accounts. The link then reconnects that account.
132
+ */
133
+ accountId?: string;
134
+ /**
135
+ * Your own ID for this person. It comes back when you read the link.
136
+ */
137
+ reference?: string;
138
+ /**
139
+ * A public https URL the page offers as a button once the account connects. Xquik
140
+ * never redirects by itself, & never adds the token.
141
+ */
142
+ returnUrl?: string;
143
+ }
144
+ export interface AccountConnectionLinkListParams {
145
+ /**
146
+ * Previous nextCursor. The after alias also works. Offset pagination is not
147
+ * supported.
148
+ */
149
+ cursor?: string;
150
+ /**
151
+ * Maximum items per page, from 1 to 10,000. Default 200. Pass nextCursor as cursor
152
+ * for the next page.
153
+ */
154
+ limit?: number;
155
+ }
156
+ export declare namespace AccountConnectionLinks {
157
+ export { type XAccountConnectionLink as XAccountConnectionLink, type AccountConnectionLinkCreateResponse as AccountConnectionLinkCreateResponse, type AccountConnectionLinkListResponse as AccountConnectionLinkListResponse, type AccountConnectionLinkDeleteResponse as AccountConnectionLinkDeleteResponse, type AccountConnectionLinkCreateParams as AccountConnectionLinkCreateParams, type AccountConnectionLinkListParams as AccountConnectionLinkListParams, };
158
+ }
159
+ //# sourceMappingURL=account-connection-links.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-links.d.mts","sourceR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iC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -0,0 +1,159 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Connected X account management
6
+ */
7
+ export declare class AccountConnectionLinks extends APIResource {
8
+ /**
9
+ * Creates a link to a page Xquik hosts, where a person connects an X account with
10
+ * no Xquik signup. Your backend never receives their password or 2FA secret, and
11
+ * the account belongs to you. Send `accountId` to reconnect 1 of your accounts
12
+ * instead. Connecting is free. Takes a Full access API key holding
13
+ * `connectsXAccounts`, or a dashboard session. The link works for 30 minutes, &
14
+ * the response is the only place its token appears. A link a key made stops while
15
+ * that key is paused or loses `connectsXAccounts`, & for good once it's revoked,
16
+ * rotated, expired or deleted.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const accountConnectionLink =
21
+ * await client.x.accountConnectionLinks.create({
22
+ * reference: 'user-42',
23
+ * });
24
+ * ```
25
+ */
26
+ create(body?: AccountConnectionLinkCreateParams | null | undefined, options?: RequestOptions): APIPromise<AccountConnectionLinkCreateResponse>;
27
+ /**
28
+ * Reads what happened on a link. `status` reads `connected` once the person
29
+ * finishes, with `xUserId`, `xUsername` & `health`. It never holds the token.
30
+ * Takes a Full access API key holding `connectsXAccounts`, or a dashboard session.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const accountConnectionLink =
35
+ * await client.x.accountConnectionLinks.retrieve(
36
+ * 'xlink_AAAAAAAAAAAAAAAA',
37
+ * );
38
+ * ```
39
+ */
40
+ retrieve(id: string, options?: RequestOptions): APIPromise<XAccountConnectionLink>;
41
+ /**
42
+ * Lists your connect links, newest first, with `apiKeyId` naming the API key that
43
+ * made each one, or null for a dashboard session. Use it to find and revoke the
44
+ * links a leaked key made. It never holds a token. Takes a Full access API key
45
+ * holding `connectsXAccounts`, or a dashboard session.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const accountConnectionLinks =
50
+ * await client.x.accountConnectionLinks.list();
51
+ * ```
52
+ */
53
+ list(query?: AccountConnectionLinkListParams | null | undefined, options?: RequestOptions): APIPromise<AccountConnectionLinkListResponse>;
54
+ /**
55
+ * Stops a link working. An account it already connected stays connected. Takes a
56
+ * Full access API key holding `connectsXAccounts`, or a dashboard session.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const accountConnectionLink =
61
+ * await client.x.accountConnectionLinks.delete(
62
+ * 'xlink_AAAAAAAAAAAAAAAA',
63
+ * );
64
+ * ```
65
+ */
66
+ delete(id: string, options?: RequestOptions): APIPromise<AccountConnectionLinkDeleteResponse>;
67
+ }
68
+ /**
69
+ * A link where a person connects an X account on Xquik's page.
70
+ */
71
+ export interface XAccountConnectionLink {
72
+ id: string;
73
+ accountId: string | null;
74
+ /**
75
+ * The ID of the API key that made the link, or null when a dashboard session made
76
+ * it.
77
+ */
78
+ apiKeyId: string | null;
79
+ completedAt: string | null;
80
+ createdAt: string;
81
+ expiresAt: string;
82
+ /**
83
+ * Why the last login didn't finish.
84
+ */
85
+ failure: string | null;
86
+ health: string | null;
87
+ object: 'x_account_connection_link';
88
+ purpose: 'connect' | 'reconnect';
89
+ reference: string | null;
90
+ returnUrl: string | null;
91
+ /**
92
+ * `failed` means 5 logins were refused, so make a new link. `revoked` means you
93
+ * revoked it, or the key that made it is paused, revoked, expired, no longer Full
94
+ * access or without `connectsXAccounts`. A link whose key resumes within its 30
95
+ * minutes reads `pending` again.
96
+ */
97
+ status: 'pending' | 'connecting' | 'requires_email_code' | 'connected' | 'failed' | 'expired' | 'revoked';
98
+ xUserId: string | null;
99
+ xUsername: string | null;
100
+ /**
101
+ * Present only in the response that creates the link.
102
+ */
103
+ url?: string;
104
+ }
105
+ /**
106
+ * A link where a person connects an X account on Xquik's page.
107
+ */
108
+ export interface AccountConnectionLinkCreateResponse extends XAccountConnectionLink {
109
+ /**
110
+ * The page to open. Its fragment holds the token, so treat it as a secret & keep
111
+ * it out of logs.
112
+ */
113
+ url: string;
114
+ }
115
+ /**
116
+ * Your connect links, newest first.
117
+ */
118
+ export interface AccountConnectionLinkListResponse {
119
+ hasMore: boolean;
120
+ links: Array<XAccountConnectionLink>;
121
+ /**
122
+ * Pass unchanged as cursor while hasMore is true.
123
+ */
124
+ nextCursor?: string;
125
+ }
126
+ export interface AccountConnectionLinkDeleteResponse {
127
+ success: true;
128
+ }
129
+ export interface AccountConnectionLinkCreateParams {
130
+ /**
131
+ * The ID of 1 of your X accounts. The link then reconnects that account.
132
+ */
133
+ accountId?: string;
134
+ /**
135
+ * Your own ID for this person. It comes back when you read the link.
136
+ */
137
+ reference?: string;
138
+ /**
139
+ * A public https URL the page offers as a button once the account connects. Xquik
140
+ * never redirects by itself, & never adds the token.
141
+ */
142
+ returnUrl?: string;
143
+ }
144
+ export interface AccountConnectionLinkListParams {
145
+ /**
146
+ * Previous nextCursor. The after alias also works. Offset pagination is not
147
+ * supported.
148
+ */
149
+ cursor?: string;
150
+ /**
151
+ * Maximum items per page, from 1 to 10,000. Default 200. Pass nextCursor as cursor
152
+ * for the next page.
153
+ */
154
+ limit?: number;
155
+ }
156
+ export declare namespace AccountConnectionLinks {
157
+ export { type XAccountConnectionLink as XAccountConnectionLink, type AccountConnectionLinkCreateResponse as AccountConnectionLinkCreateResponse, type AccountConnectionLinkListResponse as AccountConnectionLinkListResponse, type AccountConnectionLinkDeleteResponse as AccountConnectionLinkDeleteResponse, type AccountConnectionLinkCreateParams as AccountConnectionLinkCreateParams, type AccountConnectionLinkListParams as AccountConnectionLinkListParams, };
158
+ }
159
+ //# sourceMappingURL=account-connection-links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-links.d.ts","sourceRoot":"","sources":["../../src/resources/x/account-connection-links.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;A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5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountConnectionLinks = void 0;
7
+ const resource_1 = require("../../core/resource.js");
8
+ const path_1 = require("../../internal/utils/path.js");
9
+ /**
10
+ * Connected X account management
11
+ */
12
+ class AccountConnectionLinks extends resource_1.APIResource {
13
+ /**
14
+ * Creates a link to a page Xquik hosts, where a person connects an X account with
15
+ * no Xquik signup. Your backend never receives their password or 2FA secret, and
16
+ * the account belongs to you. Send `accountId` to reconnect 1 of your accounts
17
+ * instead. Connecting is free. Takes a Full access API key holding
18
+ * `connectsXAccounts`, or a dashboard session. The link works for 30 minutes, &
19
+ * the response is the only place its token appears. A link a key made stops while
20
+ * that key is paused or loses `connectsXAccounts`, & for good once it's revoked,
21
+ * rotated, expired or deleted.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const accountConnectionLink =
26
+ * await client.x.accountConnectionLinks.create({
27
+ * reference: 'user-42',
28
+ * });
29
+ * ```
30
+ */
31
+ create(body = {}, options) {
32
+ return this._client.post('/x/account-connection-links', { body, ...options });
33
+ }
34
+ /**
35
+ * Reads what happened on a link. `status` reads `connected` once the person
36
+ * finishes, with `xUserId`, `xUsername` & `health`. It never holds the token.
37
+ * Takes a Full access API key holding `connectsXAccounts`, or a dashboard session.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const accountConnectionLink =
42
+ * await client.x.accountConnectionLinks.retrieve(
43
+ * 'xlink_AAAAAAAAAAAAAAAA',
44
+ * );
45
+ * ```
46
+ */
47
+ retrieve(id, options) {
48
+ return this._client.get((0, path_1.path) `/x/account-connection-links/${id}`, options);
49
+ }
50
+ /**
51
+ * Lists your connect links, newest first, with `apiKeyId` naming the API key that
52
+ * made each one, or null for a dashboard session. Use it to find and revoke the
53
+ * links a leaked key made. It never holds a token. Takes a Full access API key
54
+ * holding `connectsXAccounts`, or a dashboard session.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const accountConnectionLinks =
59
+ * await client.x.accountConnectionLinks.list();
60
+ * ```
61
+ */
62
+ list(query = {}, options) {
63
+ return this._client.get('/x/account-connection-links', { query, ...options });
64
+ }
65
+ /**
66
+ * Stops a link working. An account it already connected stays connected. Takes a
67
+ * Full access API key holding `connectsXAccounts`, or a dashboard session.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const accountConnectionLink =
72
+ * await client.x.accountConnectionLinks.delete(
73
+ * 'xlink_AAAAAAAAAAAAAAAA',
74
+ * );
75
+ * ```
76
+ */
77
+ delete(id, options) {
78
+ return this._client.delete((0, path_1.path) `/x/account-connection-links/${id}`, options);
79
+ }
80
+ }
81
+ exports.AccountConnectionLinks = AccountConnectionLinks;
82
+ //# sourceMappingURL=account-connection-links.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-links.js","sourceRoot":"","sources":["../../src/resources/x/account-connection-links.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,4BAAoC,SAAQ,sBAAW;IACrD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,GAAyD,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAuD,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
@@ -0,0 +1,78 @@
1
+ // SPDX-FileCopyrightText: 2026 Xquik contributors
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ import { APIResource } from "../../core/resource.mjs";
5
+ import { path } from "../../internal/utils/path.mjs";
6
+ /**
7
+ * Connected X account management
8
+ */
9
+ export class AccountConnectionLinks extends APIResource {
10
+ /**
11
+ * Creates a link to a page Xquik hosts, where a person connects an X account with
12
+ * no Xquik signup. Your backend never receives their password or 2FA secret, and
13
+ * the account belongs to you. Send `accountId` to reconnect 1 of your accounts
14
+ * instead. Connecting is free. Takes a Full access API key holding
15
+ * `connectsXAccounts`, or a dashboard session. The link works for 30 minutes, &
16
+ * the response is the only place its token appears. A link a key made stops while
17
+ * that key is paused or loses `connectsXAccounts`, & for good once it's revoked,
18
+ * rotated, expired or deleted.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const accountConnectionLink =
23
+ * await client.x.accountConnectionLinks.create({
24
+ * reference: 'user-42',
25
+ * });
26
+ * ```
27
+ */
28
+ create(body = {}, options) {
29
+ return this._client.post('/x/account-connection-links', { body, ...options });
30
+ }
31
+ /**
32
+ * Reads what happened on a link. `status` reads `connected` once the person
33
+ * finishes, with `xUserId`, `xUsername` & `health`. It never holds the token.
34
+ * Takes a Full access API key holding `connectsXAccounts`, or a dashboard session.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const accountConnectionLink =
39
+ * await client.x.accountConnectionLinks.retrieve(
40
+ * 'xlink_AAAAAAAAAAAAAAAA',
41
+ * );
42
+ * ```
43
+ */
44
+ retrieve(id, options) {
45
+ return this._client.get(path `/x/account-connection-links/${id}`, options);
46
+ }
47
+ /**
48
+ * Lists your connect links, newest first, with `apiKeyId` naming the API key that
49
+ * made each one, or null for a dashboard session. Use it to find and revoke the
50
+ * links a leaked key made. It never holds a token. Takes a Full access API key
51
+ * holding `connectsXAccounts`, or a dashboard session.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const accountConnectionLinks =
56
+ * await client.x.accountConnectionLinks.list();
57
+ * ```
58
+ */
59
+ list(query = {}, options) {
60
+ return this._client.get('/x/account-connection-links', { query, ...options });
61
+ }
62
+ /**
63
+ * Stops a link working. An account it already connected stays connected. Takes a
64
+ * Full access API key holding `connectsXAccounts`, or a dashboard session.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const accountConnectionLink =
69
+ * await client.x.accountConnectionLinks.delete(
70
+ * 'xlink_AAAAAAAAAAAAAAAA',
71
+ * );
72
+ * ```
73
+ */
74
+ delete(id, options) {
75
+ return this._client.delete(path `/x/account-connection-links/${id}`, options);
76
+ }
77
+ }
78
+ //# sourceMappingURL=account-connection-links.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-links.mjs","sourceRoot":"","sources":["../../src/resources/x/account-connection-links.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,GAAyD,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAuD,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,+BAA+B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
@@ -172,16 +172,10 @@ export interface AccountBulkRetryResponse {
172
172
  cleared: number;
173
173
  }
174
174
  /**
175
- * Sanitized X account summary returned by connect and reauth.
175
+ * The account once the sign-in finishes. While it still runs or waits on an email
176
+ * code, the same pending attempt or challenge that `create` returns.
176
177
  */
177
- export interface AccountReauthResponse {
178
- id: string;
179
- createdAt: string;
180
- health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
181
- status: 'active';
182
- xUserId: string;
183
- xUsername: string;
184
- }
178
+ export type AccountReauthResponse = AccountCreateResponse;
185
179
  export interface AccountCreateParams {
186
180
  /**
187
181
  * Account email
@@ -199,6 +193,11 @@ export interface AccountCreateParams {
199
193
  * X username of the account to connect, with or without @
200
194
  */
201
195
  username: string;
196
+ /**
197
+ * An ID you generate to read this attempt's status, even if the response never
198
+ * reaches you. Leave it out to get one in a pending response.
199
+ */
200
+ connection_attempt_id?: string;
202
201
  }
203
202
  export interface AccountListParams {
204
203
  /**
@@ -225,6 +224,11 @@ export interface AccountReauthParams {
225
224
  * Updated account password
226
225
  */
227
226
  password: string;
227
+ /**
228
+ * An ID you generate to read this reconnect's status, even if the response never
229
+ * reaches you. Leave it out to get one in a pending response.
230
+ */
231
+ connection_attempt_id?: string;
228
232
  /**
229
233
  * Email for the X account (updates stored email)
230
234
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se {
172
172
  cleared: number;
173
173
  }
174
174
  /**
175
- * Sanitized X account summary returned by connect and reauth.
175
+ * The account once the sign-in finishes. While it still runs or waits on an email
176
+ * code, the same pending attempt or challenge that `create` returns.
176
177
  */
177
- export interface AccountReauthResponse {
178
- id: string;
179
- createdAt: string;
180
- health: 'healthy' | 'locked' | 'needsReauth' | 'recovering' | 'suspended' | 'temporaryIssue';
181
- status: 'active';
182
- xUserId: string;
183
- xUsername: string;
184
- }
178
+ export type AccountReauthResponse = AccountCreateResponse;
185
179
  export interface AccountCreateParams {
186
180
  /**
187
181
  * Account email
@@ -199,6 +193,11 @@ export interface AccountCreateParams {
199
193
  * X username of the account to connect, with or without @
200
194
  */
201
195
  username: string;
196
+ /**
197
+ * An ID you generate to read this attempt's status, even if the response never
198
+ * reaches you. Leave it out to get one in a pending response.
199
+ */
200
+ connection_attempt_id?: string;
202
201
  }
203
202
  export interface AccountListParams {
204
203
  /**
@@ -225,6 +224,11 @@ export interface AccountReauthParams {
225
224
  * Updated account password
226
225
  */
227
226
  password: string;
227
+ /**
228
+ * An ID you generate to read this reconnect's status, even if the response never
229
+ * reaches you. Leave it out to get one in a pending response.
230
+ */
231
+ connection_attempt_id?: string;
228
232
  /**
229
233
  * Email for the X account (updates stored email)
230
234
  */
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAE7F;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EA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