x-twitter-scraper 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +51 -3
- package/client.d.mts +14 -27
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -27
- package/client.d.ts.map +1 -1
- package/client.js +12 -27
- package/client.js.map +1 -1
- package/client.mjs +12 -27
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +0 -4
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -4
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +31 -10
- package/resources/account.d.mts +7 -6
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +7 -6
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +3 -3
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +3 -3
- package/resources/account.mjs.map +1 -1
- package/resources/api-keys.js +3 -3
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +3 -3
- package/resources/api-keys.mjs.map +1 -1
- package/resources/compose.d.mts +1 -1
- package/resources/compose.d.ts +1 -1
- package/resources/compose.js +1 -1
- package/resources/compose.mjs +1 -1
- package/resources/credits.d.mts +1 -1
- package/resources/credits.d.ts +1 -1
- package/resources/credits.js +1 -1
- package/resources/credits.mjs +1 -1
- package/resources/drafts.d.mts +1 -1
- package/resources/drafts.d.ts +1 -1
- package/resources/drafts.js +1 -1
- package/resources/drafts.mjs +1 -1
- package/resources/events.js +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +3 -2
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +3 -2
- package/resources/extractions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors.d.mts +1 -1
- package/resources/monitors.d.ts +1 -1
- package/resources/monitors.js +1 -1
- package/resources/monitors.mjs +1 -1
- package/resources/radar.d.mts +45 -10
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +45 -10
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.js +1 -1
- package/resources/radar.mjs +1 -1
- package/resources/shared.d.mts +47 -6
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +47 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +1 -1
- package/resources/styles.d.ts +1 -1
- package/resources/styles.js +1 -1
- package/resources/styles.mjs +1 -1
- package/resources/subscribe.d.mts +1 -1
- package/resources/subscribe.d.ts +1 -1
- package/resources/subscribe.js +1 -1
- package/resources/subscribe.mjs +1 -1
- package/resources/trends.d.mts +2 -2
- package/resources/trends.d.ts +2 -2
- package/resources/trends.js +2 -2
- package/resources/trends.mjs +2 -2
- package/resources/webhooks.d.mts +2 -2
- package/resources/webhooks.d.ts +2 -2
- package/resources/webhooks.js +2 -2
- package/resources/webhooks.mjs +2 -2
- package/resources/x/accounts.d.mts +48 -0
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +48 -0
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +6 -10
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +6 -10
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +1 -1
- package/resources/x/bookmarks.d.ts +1 -1
- package/resources/x/bookmarks.js +1 -1
- package/resources/x/bookmarks.mjs +1 -1
- package/resources/x/communities/communities.d.mts +4 -4
- package/resources/x/communities/communities.d.ts +4 -4
- package/resources/x/communities/communities.js +4 -4
- package/resources/x/communities/communities.mjs +4 -4
- package/resources/x/communities/tweets.d.mts +3 -3
- package/resources/x/communities/tweets.d.ts +3 -3
- package/resources/x/communities/tweets.js +3 -3
- package/resources/x/communities/tweets.mjs +3 -3
- package/resources/x/followers.d.mts +2 -2
- package/resources/x/followers.d.ts +2 -2
- package/resources/x/followers.js +2 -2
- package/resources/x/followers.mjs +2 -2
- package/resources/x/index.d.mts +3 -3
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +3 -3
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/lists.d.mts +4 -4
- package/resources/x/lists.d.ts +4 -4
- package/resources/x/lists.js +4 -4
- package/resources/x/lists.mjs +4 -4
- package/resources/x/media.d.mts +2 -2
- package/resources/x/media.d.ts +2 -2
- package/resources/x/media.js +2 -2
- package/resources/x/media.mjs +2 -2
- package/resources/x/tweets/index.d.mts +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +19 -36
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +19 -36
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +7 -7
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +7 -7
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +13 -29
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +13 -29
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +11 -11
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +11 -11
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +17 -10
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +17 -10
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +3 -6
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +3 -6
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +16 -56
- package/src/internal/request-options.ts +0 -2
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/account.ts +10 -8
- package/src/resources/api-keys.ts +3 -3
- package/src/resources/compose.ts +1 -1
- package/src/resources/credits.ts +1 -1
- package/src/resources/drafts.ts +1 -1
- package/src/resources/events.ts +1 -1
- package/src/resources/extractions.ts +5 -3
- package/src/resources/index.ts +1 -13
- package/src/resources/monitors.ts +1 -1
- package/src/resources/radar.ts +50 -10
- package/src/resources/shared.ts +74 -14
- package/src/resources/styles.ts +1 -1
- package/src/resources/subscribe.ts +1 -1
- package/src/resources/trends.ts +2 -2
- package/src/resources/webhooks.ts +2 -2
- package/src/resources/x/accounts.ts +65 -10
- package/src/resources/x/bookmarks.ts +1 -1
- package/src/resources/x/communities/communities.ts +4 -4
- package/src/resources/x/communities/tweets.ts +3 -3
- package/src/resources/x/followers.ts +2 -2
- package/src/resources/x/index.ts +1 -2
- package/src/resources/x/lists.ts +4 -4
- package/src/resources/x/media.ts +2 -2
- package/src/resources/x/tweets/index.ts +0 -1
- package/src/resources/x/tweets/tweets.ts +20 -52
- package/src/resources/x/users/index.ts +0 -1
- package/src/resources/x/users/users.ts +12 -40
- package/src/resources/x/x.ts +19 -10
- 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
|
@@ -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,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI/E;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIzE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;
|
|
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,EAA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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"}
|
package/resources/x/accounts.js
CHANGED
|
@@ -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
|
|
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}`,
|
|
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',
|
|
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}`,
|
|
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',
|
|
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"],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C;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"}
|
package/resources/x/accounts.mjs
CHANGED
|
@@ -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
|
|
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}`,
|
|
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',
|
|
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}`,
|
|
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',
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,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,IAAI,CAAA,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,IAAI,CAAA,eAAe,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|
|
@@ -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
|
-
*
|
|
6
|
+
* Look up, search, and analyze individual tweets
|
|
7
7
|
*/
|
|
8
8
|
export declare class Bookmarks extends APIResource {
|
|
9
9
|
/**
|
|
@@ -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
|
-
*
|
|
6
|
+
* Look up, search, and analyze individual tweets
|
|
7
7
|
*/
|
|
8
8
|
export declare class Bookmarks extends APIResource {
|
|
9
9
|
/**
|
package/resources/x/bookmarks.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Bookmarks = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Look up, search, and analyze individual tweets
|
|
8
8
|
*/
|
|
9
9
|
class Bookmarks 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
|
-
*
|
|
4
|
+
* Look up, search, and analyze individual tweets
|
|
5
5
|
*/
|
|
6
6
|
export class Bookmarks extends APIResource {
|
|
7
7
|
/**
|
|
@@ -35,7 +35,7 @@ export declare class Communities extends APIResource {
|
|
|
35
35
|
*/
|
|
36
36
|
delete(id: string, body: CommunityDeleteParams, options?: RequestOptions): APIPromise<CommunityDeleteResponse>;
|
|
37
37
|
/**
|
|
38
|
-
* Get community
|
|
38
|
+
* Get community name, description and member count
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
@@ -46,7 +46,7 @@ export declare class Communities extends APIResource {
|
|
|
46
46
|
*/
|
|
47
47
|
retrieveInfo(id: string, options?: RequestOptions): APIPromise<CommunityRetrieveInfoResponse>;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* List members of a community
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
52
|
* ```ts
|
|
@@ -56,7 +56,7 @@ export declare class Communities extends APIResource {
|
|
|
56
56
|
*/
|
|
57
57
|
retrieveMembers(id: string, query?: CommunityRetrieveMembersParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* List moderators of a community
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* ```ts
|
|
@@ -66,7 +66,7 @@ export declare class Communities extends APIResource {
|
|
|
66
66
|
*/
|
|
67
67
|
retrieveModerators(id: string, query?: CommunityRetrieveModeratorsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
68
68
|
/**
|
|
69
|
-
* Search
|
|
69
|
+
* Search for communities by keyword
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
@@ -35,7 +35,7 @@ export declare class Communities extends APIResource {
|
|
|
35
35
|
*/
|
|
36
36
|
delete(id: string, body: CommunityDeleteParams, options?: RequestOptions): APIPromise<CommunityDeleteResponse>;
|
|
37
37
|
/**
|
|
38
|
-
* Get community
|
|
38
|
+
* Get community name, description and member count
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
@@ -46,7 +46,7 @@ export declare class Communities extends APIResource {
|
|
|
46
46
|
*/
|
|
47
47
|
retrieveInfo(id: string, options?: RequestOptions): APIPromise<CommunityRetrieveInfoResponse>;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* List members of a community
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
52
|
* ```ts
|
|
@@ -56,7 +56,7 @@ export declare class Communities extends APIResource {
|
|
|
56
56
|
*/
|
|
57
57
|
retrieveMembers(id: string, query?: CommunityRetrieveMembersParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* List moderators of a community
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* ```ts
|
|
@@ -66,7 +66,7 @@ export declare class Communities extends APIResource {
|
|
|
66
66
|
*/
|
|
67
67
|
retrieveModerators(id: string, query?: CommunityRetrieveModeratorsParams | null | undefined, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
68
68
|
/**
|
|
69
|
-
* Search
|
|
69
|
+
* Search for communities by keyword
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
@@ -45,7 +45,7 @@ class Communities extends resource_1.APIResource {
|
|
|
45
45
|
return this._client.delete((0, path_1.path) `/x/communities/${id}`, { body, ...options });
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Get community
|
|
48
|
+
* Get community name, description and member count
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* ```ts
|
|
@@ -58,7 +58,7 @@ class Communities extends resource_1.APIResource {
|
|
|
58
58
|
return this._client.get((0, path_1.path) `/x/communities/${id}/info`, options);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* List members of a community
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
@@ -70,7 +70,7 @@ class Communities extends resource_1.APIResource {
|
|
|
70
70
|
return this._client.get((0, path_1.path) `/x/communities/${id}/members`, { query, ...options });
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* List moderators of a community
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* ```ts
|
|
@@ -82,7 +82,7 @@ class Communities extends resource_1.APIResource {
|
|
|
82
82
|
return this._client.get((0, path_1.path) `/x/communities/${id}/moderators`, { query, ...options });
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* Search
|
|
85
|
+
* Search for communities by keyword
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```ts
|
|
@@ -41,7 +41,7 @@ export class Communities extends APIResource {
|
|
|
41
41
|
return this._client.delete(path `/x/communities/${id}`, { body, ...options });
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Get community
|
|
44
|
+
* Get community name, description and member count
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```ts
|
|
@@ -54,7 +54,7 @@ export class Communities extends APIResource {
|
|
|
54
54
|
return this._client.get(path `/x/communities/${id}/info`, options);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* List members of a community
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* ```ts
|
|
@@ -66,7 +66,7 @@ export class Communities extends APIResource {
|
|
|
66
66
|
return this._client.get(path `/x/communities/${id}/members`, { query, ...options });
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* List moderators of a community
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
@@ -78,7 +78,7 @@ export class Communities extends APIResource {
|
|
|
78
78
|
return this._client.get(path `/x/communities/${id}/moderators`, { query, ...options });
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Search
|
|
81
|
+
* Search for communities by keyword
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* ```ts
|
|
@@ -3,11 +3,11 @@ 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
|
-
* X
|
|
6
|
+
* X Community info, members, and tweets
|
|
7
7
|
*/
|
|
8
8
|
export declare class Tweets extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* List tweets across all communities
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -17,7 +17,7 @@ export declare class Tweets extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
list(query: TweetListParams, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* List tweets posted in a community
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
@@ -3,11 +3,11 @@ 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
|
-
* X
|
|
6
|
+
* X Community info, members, and tweets
|
|
7
7
|
*/
|
|
8
8
|
export declare class Tweets extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* List tweets across all communities
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -17,7 +17,7 @@ export declare class Tweets extends APIResource {
|
|
|
17
17
|
*/
|
|
18
18
|
list(query: TweetListParams, options?: RequestOptions): APIPromise<Shared.PaginatedTweets>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* List tweets posted in a community
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
@@ -5,11 +5,11 @@ exports.Tweets = void 0;
|
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
6
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
7
|
/**
|
|
8
|
-
* X
|
|
8
|
+
* X Community info, members, and tweets
|
|
9
9
|
*/
|
|
10
10
|
class Tweets extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* List tweets across all communities
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
@@ -21,7 +21,7 @@ class Tweets extends resource_1.APIResource {
|
|
|
21
21
|
return this._client.get('/x/communities/tweets', { query, ...options });
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* List tweets posted in a community
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```ts
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* X
|
|
5
|
+
* X Community info, members, and tweets
|
|
6
6
|
*/
|
|
7
7
|
export class Tweets extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* List tweets across all communities
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -18,7 +18,7 @@ export class Tweets extends APIResource {
|
|
|
18
18
|
return this._client.get('/x/communities/tweets', { query, ...options });
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* List tweets posted in a community
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```ts
|
|
@@ -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
|
-
*
|
|
5
|
+
* Look up, search, and explore user profiles and relationships
|
|
6
6
|
*/
|
|
7
7
|
export declare class Followers extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Check
|
|
9
|
+
* Check if one user follows another
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -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
|
-
*
|
|
5
|
+
* Look up, search, and explore user profiles and relationships
|
|
6
6
|
*/
|
|
7
7
|
export declare class Followers extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Check
|
|
9
|
+
* Check if one user follows another
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
package/resources/x/followers.js
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Followers = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Look up, search, and explore user profiles and relationships
|
|
8
8
|
*/
|
|
9
9
|
class Followers extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Check
|
|
11
|
+
* Check if one user follows another
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
@@ -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
|
-
*
|
|
4
|
+
* Look up, search, and explore user profiles and relationships
|
|
5
5
|
*/
|
|
6
6
|
export class Followers extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Check
|
|
8
|
+
* Check if one user follows another
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
package/resources/x/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from
|
|
|
6
6
|
export { Lists, type ListRetrieveFollowersParams, type ListRetrieveMembersParams, type ListRetrieveTweetsParams, } from "./lists.mjs";
|
|
7
7
|
export { Media, type MediaDownloadResponse, type MediaUploadResponse, type MediaDownloadParams, type MediaUploadParams, } from "./media.mjs";
|
|
8
8
|
export { Profile, type ProfileUpdateResponse, type ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse, type ProfileUpdateParams, type ProfileUpdateAvatarParams, type ProfileUpdateBannerParams, } from "./profile.mjs";
|
|
9
|
-
export { Tweets, type
|
|
10
|
-
export { Users, type
|
|
11
|
-
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x.mjs";
|
|
9
|
+
export { Tweets, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets/index.mjs";
|
|
10
|
+
export { Users, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.mjs";
|
|
11
|
+
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, type XGetTrendsParams, } from "./x.mjs";
|
|
12
12
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,SAAS,EAAE,KAAK,+BAA+B,EAAE,KAAK,kBAAkB,EAAE;OAC5E,EACL,WAAW,EACX,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,GACnC;OACM,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB;OACM,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACnE,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,SAAS,EAAE,KAAK,+BAA+B,EAAE,KAAK,kBAAkB,EAAE;OAC5E,EACL,WAAW,EACX,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,GACnC;OACM,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB;OACM,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE;OACnE,EACL,KAAK,EACL,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B;OACM,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EACL,KAAK,EACL,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,GACzC;OACM,EACL,CAAC,EACD,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB"}
|
package/resources/x/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Followers, type FollowerCheckResponse, type FollowerCheckParams } from
|
|
|
6
6
|
export { Lists, type ListRetrieveFollowersParams, type ListRetrieveMembersParams, type ListRetrieveTweetsParams, } from "./lists.js";
|
|
7
7
|
export { Media, type MediaDownloadResponse, type MediaUploadResponse, type MediaDownloadParams, type MediaUploadParams, } from "./media.js";
|
|
8
8
|
export { Profile, type ProfileUpdateResponse, type ProfileUpdateAvatarResponse, type ProfileUpdateBannerResponse, type ProfileUpdateParams, type ProfileUpdateAvatarParams, type ProfileUpdateBannerParams, } from "./profile.js";
|
|
9
|
-
export { Tweets, type
|
|
10
|
-
export { Users, type
|
|
11
|
-
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, } from "./x.js";
|
|
9
|
+
export { Tweets, type TweetAuthor, type TweetDetail, type TweetCreateResponse, type TweetRetrieveResponse, type TweetDeleteResponse, type TweetCreateParams, type TweetListParams, type TweetDeleteParams, type TweetGetFavoritersParams, type TweetGetQuotesParams, type TweetGetRepliesParams, type TweetGetRetweetersParams, type TweetGetThreadParams, type TweetSearchParams, } from "./tweets/index.js";
|
|
10
|
+
export { Users, type UserRetrieveBatchParams, type UserRetrieveFollowersParams, type UserRetrieveFollowersYouKnowParams, type UserRetrieveFollowingParams, type UserRetrieveLikesParams, type UserRetrieveMediaParams, type UserRetrieveMentionsParams, type UserRetrieveSearchParams, type UserRetrieveTweetsParams, type UserRetrieveVerifiedFollowersParams, } from "./users/index.js";
|
|
11
|
+
export { X, type XGetArticleResponse, type XGetNotificationsResponse, type XGetTrendsResponse, type XGetHomeTimelineParams, type XGetNotificationsParams, type XGetTrendsParams, } from "./x.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,SAAS,EAAE,KAAK,+BAA+B,EAAE,KAAK,kBAAkB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,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB"}
|
package/resources/x/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,4CAAuG;AAA9F,sGAAA,SAAS,OAAA;AAClB,gDAW6B;AAV3B,oGAAA,WAAW,OAAA;AAWb,8BAMc;AALZ,wFAAA,EAAE,OAAA;AAMJ,4CAA8F;AAArF,sGAAA,SAAS,OAAA;AAClB,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/x/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,4CAAuG;AAA9F,sGAAA,SAAS,OAAA;AAClB,gDAW6B;AAV3B,oGAAA,WAAW,OAAA;AAWb,8BAMc;AALZ,wFAAA,EAAE,OAAA;AAMJ,4CAA8F;AAArF,sGAAA,SAAS,OAAA;AAClB,oCAKiB;AAJf,8FAAA,KAAK,OAAA;AAKP,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,2CAgBwB;AAftB,+FAAA,MAAM,OAAA;AAgBR,0CAYuB;AAXrB,8FAAA,KAAK,OAAA;AAYP,4BAQa;AAPX,sFAAA,CAAC,OAAA"}
|