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.
- package/CHANGELOG.md +79 -0
- package/README.md +120 -120
- package/client.d.mts +7 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/activity.d.mts +18 -2
- package/resources/activity.d.mts.map +1 -1
- package/resources/activity.d.ts +18 -2
- package/resources/activity.d.ts.map +1 -1
- package/resources/credits.d.mts +5 -0
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +5 -0
- package/resources/credits.d.ts.map +1 -1
- package/resources/extractions.d.mts +153 -5
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +153 -5
- package/resources/extractions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +1 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +1 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +38 -1
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +38 -1
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +18 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +18 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +27 -0
- package/resources/monitors/posts.d.mts.map +1 -1
- package/resources/monitors/posts.d.ts +27 -0
- package/resources/monitors/posts.d.ts.map +1 -1
- package/resources/radar.d.mts +9 -0
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +9 -0
- package/resources/radar.d.ts.map +1 -1
- package/resources/shared.d.mts +175 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +4 -0
- package/resources/x/account-connection-attempts.d.mts.map +1 -1
- package/resources/x/account-connection-attempts.d.ts +4 -0
- package/resources/x/account-connection-attempts.d.ts.map +1 -1
- package/resources/x/account-connection-links.d.mts +159 -0
- package/resources/x/account-connection-links.d.mts.map +1 -0
- package/resources/x/account-connection-links.d.ts +159 -0
- package/resources/x/account-connection-links.d.ts.map +1 -0
- package/resources/x/account-connection-links.js +82 -0
- package/resources/x/account-connection-links.js.map +1 -0
- package/resources/x/account-connection-links.mjs +78 -0
- package/resources/x/account-connection-links.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -9
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -9
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/analysis.d.mts +540 -36
- package/resources/x/analysis.d.mts.map +1 -1
- package/resources/x/analysis.d.ts +540 -36
- package/resources/x/analysis.d.ts.map +1 -1
- package/resources/x/bookmarks.d.mts +5 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +5 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +19 -2
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +19 -2
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +7 -4
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +7 -4
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +16 -2
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +16 -2
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +4 -4
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +4 -4
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/dm.d.mts +16 -2
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +16 -2
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +4 -4
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +4 -4
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/index.d.mts +2 -1
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +2 -1
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/media.d.mts +55 -1
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +55 -1
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -2
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +2 -2
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +24 -3
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +24 -3
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +6 -6
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +6 -6
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/bookmark.d.mts +84 -0
- package/resources/x/tweets/bookmark.d.mts.map +1 -0
- package/resources/x/tweets/bookmark.d.ts +84 -0
- package/resources/x/tweets/bookmark.d.ts.map +1 -0
- package/resources/x/tweets/bookmark.js +55 -0
- package/resources/x/tweets/bookmark.js.map +1 -0
- package/resources/x/tweets/bookmark.mjs +51 -0
- package/resources/x/tweets/bookmark.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -0
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -0
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js +3 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs +1 -0
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +16 -2
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +16 -2
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +4 -4
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/like.mjs +4 -4
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts +16 -2
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +16 -2
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +4 -4
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/retweet.mjs +4 -4
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +68 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +68 -13
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +8 -4
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +8 -4
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/block.d.mts +84 -0
- package/resources/x/users/block.d.mts.map +1 -0
- package/resources/x/users/block.d.ts +84 -0
- package/resources/x/users/block.d.ts.map +1 -0
- package/resources/x/users/block.js +55 -0
- package/resources/x/users/block.js.map +1 -0
- package/resources/x/users/block.mjs +51 -0
- package/resources/x/users/block.mjs.map +1 -0
- package/resources/x/users/follow.d.mts +16 -2
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +16 -2
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +4 -4
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/follow.mjs +4 -4
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/index.d.mts +3 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +3 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js +5 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs +2 -0
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/mute.d.mts +84 -0
- package/resources/x/users/mute.d.mts.map +1 -0
- package/resources/x/users/mute.d.ts +84 -0
- package/resources/x/users/mute.d.ts.map +1 -0
- package/resources/x/users/mute.js +55 -0
- package/resources/x/users/mute.js.map +1 -0
- package/resources/x/users/mute.mjs +51 -0
- package/resources/x/users/mute.mjs.map +1 -0
- package/resources/x/users/users.d.mts +783 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +783 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +44 -3
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +44 -3
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +1 -1
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +1 -1
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/x.d.mts +15 -2
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +15 -2
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +9 -0
- package/src/core/README.md +4 -0
- package/src/internal/README.md +6 -1
- package/src/resources/activity.ts +41 -2
- package/src/resources/credits.ts +6 -0
- package/src/resources/extractions.ts +183 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/monitors.ts +49 -0
- package/src/resources/monitors/posts.ts +32 -0
- package/src/resources/radar.ts +10 -0
- package/src/resources/shared.ts +213 -4
- package/src/resources/x/account-connection-attempts.ts +5 -0
- package/src/resources/x/account-connection-links.ts +215 -0
- package/src/resources/x/accounts.ts +15 -14
- package/src/resources/x/analysis.ts +618 -36
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +35 -4
- package/src/resources/x/communities/join.ts +32 -4
- package/src/resources/x/dm.ts +32 -4
- package/src/resources/x/index.ts +18 -0
- package/src/resources/x/media.ts +74 -2
- package/src/resources/x/profile.ts +48 -6
- package/src/resources/x/tweets/bookmark.ts +127 -0
- package/src/resources/x/tweets/index.ts +7 -0
- package/src/resources/x/tweets/like.ts +32 -4
- package/src/resources/x/tweets/retweet.ts +32 -4
- package/src/resources/x/tweets/tweets.ts +104 -14
- package/src/resources/x/users/block.ts +119 -0
- package/src/resources/x/users/follow.ts +32 -4
- package/src/resources/x/users/index.ts +23 -0
- package/src/resources/x/users/mute.ts +119 -0
- package/src/resources/x/users/users.ts +1063 -89
- package/src/resources/x/write-actions.ts +6 -0
- package/src/resources/x/x.ts +54 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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","sourceRoot":"","sources":["../../src/resources/x/account-connection-links.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,GAAE,iCAAiC,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC,CAEjD;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAEjF;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC,CAE/C;IAED;;;;;;;;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IAAI,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,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;AAGhE;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,GAAE,iCAAiC,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC,CAEjD;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAEjF;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC,CAE/C;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mCAAmC,CAAC,CAE5F;CACF;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,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M,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
3
|
+
//
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
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
|
-
*
|
|
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
|
|
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.mts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;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,E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EG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;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,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -172,16 +172,10 @@ export interface AccountBulkRetryResponse {
|
|
|
172
172
|
cleared: number;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
-
*
|
|
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
|
|
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,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAEzE;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,CAEjC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,M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