x-twitter-scraper 0.1.0 → 0.2.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 +22 -0
- package/README.md +5 -5
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -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/account.d.mts +19 -0
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +19 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +20 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +20 -1
- package/resources/account.mjs.map +1 -1
- package/resources/api-keys.d.mts +20 -0
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +20 -0
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +20 -3
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +20 -3
- package/resources/api-keys.mjs.map +1 -1
- package/resources/compose.d.mts +28 -3
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +28 -3
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.js +9 -0
- package/resources/compose.js.map +1 -1
- package/resources/compose.mjs +9 -0
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +12 -0
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +12 -0
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +12 -0
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +12 -0
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +33 -0
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +33 -0
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +24 -0
- package/resources/drafts.js.map +1 -1
- package/resources/drafts.mjs +24 -0
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +46 -1
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +46 -1
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +27 -0
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +27 -0
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +25 -1
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +25 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/extractions.d.mts +74 -5
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +74 -5
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +36 -0
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +36 -0
- package/resources/extractions.mjs.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/integrations.d.mts +77 -0
- package/resources/integrations.d.mts.map +1 -1
- package/resources/integrations.d.ts +77 -0
- package/resources/integrations.d.ts.map +1 -1
- package/resources/integrations.js +47 -0
- package/resources/integrations.js.map +1 -1
- package/resources/integrations.mjs +47 -0
- package/resources/integrations.mjs.map +1 -1
- package/resources/monitors.d.mts +46 -0
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts +46 -0
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +31 -0
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +31 -0
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +4 -1
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +4 -1
- package/resources/radar.d.ts.map +1 -1
- package/resources/shared.d.mts +12 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +12 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts +63 -4
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts +63 -4
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.js +55 -8
- package/resources/styles.js.map +1 -1
- package/resources/styles.mjs +55 -8
- package/resources/styles.mjs.map +1 -1
- package/resources/support/tickets.d.mts +34 -0
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +34 -0
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +34 -0
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +34 -0
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/trends.d.mts +4 -1
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +4 -1
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.js +1 -1
- package/resources/trends.mjs +1 -1
- package/resources/webhooks.d.mts +54 -0
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +54 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +36 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +36 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/accounts.d.mts +59 -3
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +59 -3
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +55 -5
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +55 -5
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +11 -1
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +11 -1
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.js +10 -0
- package/resources/x/bookmarks.js.map +1 -1
- package/resources/x/bookmarks.mjs +10 -0
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +118 -11
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +118 -11
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +45 -16
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +45 -16
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +1 -1
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +1 -1
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +18 -2
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +18 -2
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +16 -0
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +16 -0
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts +28 -5
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +28 -5
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +20 -6
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +20 -6
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/dm.d.mts +19 -2
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +19 -2
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +17 -0
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +17 -0
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +8 -0
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +8 -0
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.js +8 -0
- package/resources/x/followers.js.map +1 -1
- package/resources/x/followers.mjs +8 -0
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +2 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +2 -2
- 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 +27 -6
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +27 -6
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.js +23 -16
- package/resources/x/lists.js.map +1 -1
- package/resources/x/lists.mjs +23 -16
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +17 -1
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +17 -1
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +16 -0
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +16 -0
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +30 -3
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +30 -3
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +27 -0
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +27 -0
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +18 -4
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +18 -4
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.js +18 -4
- package/resources/x/tweets/like.js.map +1 -1
- package/resources/x/tweets/like.mjs +18 -4
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts +18 -4
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +18 -4
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.js +18 -4
- package/resources/x/tweets/retweet.js.map +1 -1
- package/resources/x/tweets/retweet.mjs +18 -4
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +146 -15
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +146 -15
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +74 -10
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +74 -10
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts +19 -4
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +19 -4
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.js +19 -4
- package/resources/x/users/follow.js.map +1 -1
- package/resources/x/users/follow.mjs +19 -4
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/users.d.mts +94 -21
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +94 -21
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +78 -33
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +78 -33
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +42 -6
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +42 -6
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +21 -5
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +21 -5
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/account.ts +20 -1
- package/src/resources/api-keys.ts +23 -3
- package/src/resources/compose.ts +32 -1
- package/src/resources/credits.ts +12 -0
- package/src/resources/drafts.ts +33 -0
- package/src/resources/draws.ts +46 -1
- package/src/resources/events.ts +25 -1
- package/src/resources/extractions.ts +74 -5
- package/src/resources/index.ts +1 -0
- package/src/resources/integrations.ts +77 -0
- package/src/resources/monitors.ts +46 -0
- package/src/resources/radar.ts +4 -1
- package/src/resources/shared.ts +12 -0
- package/src/resources/styles.ts +67 -8
- package/src/resources/support/tickets.ts +34 -0
- package/src/resources/trends.ts +4 -1
- package/src/resources/webhooks.ts +54 -0
- package/src/resources/x/accounts.ts +72 -7
- package/src/resources/x/bookmarks.ts +11 -1
- package/src/resources/x/communities/communities.ts +142 -26
- package/src/resources/x/communities/index.ts +1 -1
- package/src/resources/x/communities/join.ts +18 -2
- package/src/resources/x/communities/tweets.ts +41 -11
- package/src/resources/x/dm.ts +19 -2
- package/src/resources/x/followers.ts +8 -0
- package/src/resources/x/index.ts +2 -0
- package/src/resources/x/lists.ts +30 -22
- package/src/resources/x/media.ts +17 -1
- package/src/resources/x/profile.ts +30 -3
- package/src/resources/x/tweets/like.ts +20 -6
- package/src/resources/x/tweets/retweet.ts +20 -14
- package/src/resources/x/tweets/tweets.ts +157 -27
- package/src/resources/x/users/follow.ts +21 -10
- package/src/resources/x/users/users.ts +103 -52
- package/src/resources/x/x.ts +50 -8
- 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
package/resources/webhooks.d.mts
CHANGED
|
@@ -8,29 +8,68 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
8
8
|
export declare class Webhooks extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Create webhook
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const webhook = await client.webhooks.create({
|
|
15
|
+
* eventTypes: ['tweet.new', 'follower.gained'],
|
|
16
|
+
* url: 'https://example.com/webhook',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
20
|
create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
|
|
13
21
|
/**
|
|
14
22
|
* Update webhook
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const webhook = await client.webhooks.update('id', {
|
|
27
|
+
* isActive: true,
|
|
28
|
+
* url: 'https://example.com/webhook',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
15
31
|
*/
|
|
16
32
|
update(id: string, body: WebhookUpdateParams, options?: RequestOptions): APIPromise<Webhook>;
|
|
17
33
|
/**
|
|
18
34
|
* List webhooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const webhooks = await client.webhooks.list();
|
|
39
|
+
* ```
|
|
19
40
|
*/
|
|
20
41
|
list(options?: RequestOptions): APIPromise<WebhookListResponse>;
|
|
21
42
|
/**
|
|
22
43
|
* Deactivate webhook
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const response = await client.webhooks.deactivate('id');
|
|
48
|
+
* ```
|
|
23
49
|
*/
|
|
24
50
|
deactivate(id: string, options?: RequestOptions): APIPromise<WebhookDeactivateResponse>;
|
|
25
51
|
/**
|
|
26
52
|
* List webhook deliveries
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.webhooks.listDeliveries('id');
|
|
57
|
+
* ```
|
|
27
58
|
*/
|
|
28
59
|
listDeliveries(id: string, options?: RequestOptions): APIPromise<WebhookListDeliveriesResponse>;
|
|
29
60
|
/**
|
|
30
61
|
* Test webhook endpoint
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const response = await client.webhooks.test('id');
|
|
66
|
+
* ```
|
|
31
67
|
*/
|
|
32
68
|
test(id: string, options?: RequestOptions): APIPromise<WebhookTestResponse>;
|
|
33
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Webhook delivery attempt record with status and retry count.
|
|
72
|
+
*/
|
|
34
73
|
export interface Delivery {
|
|
35
74
|
id: string;
|
|
36
75
|
attempts: number;
|
|
@@ -41,9 +80,15 @@ export interface Delivery {
|
|
|
41
80
|
lastError?: string;
|
|
42
81
|
lastStatusCode?: number;
|
|
43
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Webhook endpoint registered to receive event deliveries.
|
|
85
|
+
*/
|
|
44
86
|
export interface Webhook {
|
|
45
87
|
id: string;
|
|
46
88
|
createdAt: string;
|
|
89
|
+
/**
|
|
90
|
+
* Array of event types to subscribe to.
|
|
91
|
+
*/
|
|
47
92
|
eventTypes: Array<Shared.EventType>;
|
|
48
93
|
isActive: boolean;
|
|
49
94
|
url: string;
|
|
@@ -51,6 +96,9 @@ export interface Webhook {
|
|
|
51
96
|
export interface WebhookCreateResponse {
|
|
52
97
|
id: string;
|
|
53
98
|
createdAt: string;
|
|
99
|
+
/**
|
|
100
|
+
* Array of event types to subscribe to.
|
|
101
|
+
*/
|
|
54
102
|
eventTypes: Array<Shared.EventType>;
|
|
55
103
|
secret: string;
|
|
56
104
|
url: string;
|
|
@@ -70,6 +118,9 @@ export interface WebhookTestResponse {
|
|
|
70
118
|
error?: string;
|
|
71
119
|
}
|
|
72
120
|
export interface WebhookCreateParams {
|
|
121
|
+
/**
|
|
122
|
+
* Array of event types to subscribe to.
|
|
123
|
+
*/
|
|
73
124
|
eventTypes: Array<Shared.EventType>;
|
|
74
125
|
/**
|
|
75
126
|
* HTTPS URL
|
|
@@ -77,6 +128,9 @@ export interface WebhookCreateParams {
|
|
|
77
128
|
url: string;
|
|
78
129
|
}
|
|
79
130
|
export interface WebhookUpdateParams {
|
|
131
|
+
/**
|
|
132
|
+
* Array of event types to subscribe to.
|
|
133
|
+
*/
|
|
80
134
|
eventTypes?: Array<Shared.EventType>;
|
|
81
135
|
isActive?: boolean;
|
|
82
136
|
url?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,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IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/webhooks.d.ts
CHANGED
|
@@ -8,29 +8,68 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
8
8
|
export declare class Webhooks extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Create webhook
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const webhook = await client.webhooks.create({
|
|
15
|
+
* eventTypes: ['tweet.new', 'follower.gained'],
|
|
16
|
+
* url: 'https://example.com/webhook',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
20
|
create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
|
|
13
21
|
/**
|
|
14
22
|
* Update webhook
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const webhook = await client.webhooks.update('id', {
|
|
27
|
+
* isActive: true,
|
|
28
|
+
* url: 'https://example.com/webhook',
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
15
31
|
*/
|
|
16
32
|
update(id: string, body: WebhookUpdateParams, options?: RequestOptions): APIPromise<Webhook>;
|
|
17
33
|
/**
|
|
18
34
|
* List webhooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const webhooks = await client.webhooks.list();
|
|
39
|
+
* ```
|
|
19
40
|
*/
|
|
20
41
|
list(options?: RequestOptions): APIPromise<WebhookListResponse>;
|
|
21
42
|
/**
|
|
22
43
|
* Deactivate webhook
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const response = await client.webhooks.deactivate('id');
|
|
48
|
+
* ```
|
|
23
49
|
*/
|
|
24
50
|
deactivate(id: string, options?: RequestOptions): APIPromise<WebhookDeactivateResponse>;
|
|
25
51
|
/**
|
|
26
52
|
* List webhook deliveries
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.webhooks.listDeliveries('id');
|
|
57
|
+
* ```
|
|
27
58
|
*/
|
|
28
59
|
listDeliveries(id: string, options?: RequestOptions): APIPromise<WebhookListDeliveriesResponse>;
|
|
29
60
|
/**
|
|
30
61
|
* Test webhook endpoint
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const response = await client.webhooks.test('id');
|
|
66
|
+
* ```
|
|
31
67
|
*/
|
|
32
68
|
test(id: string, options?: RequestOptions): APIPromise<WebhookTestResponse>;
|
|
33
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Webhook delivery attempt record with status and retry count.
|
|
72
|
+
*/
|
|
34
73
|
export interface Delivery {
|
|
35
74
|
id: string;
|
|
36
75
|
attempts: number;
|
|
@@ -41,9 +80,15 @@ export interface Delivery {
|
|
|
41
80
|
lastError?: string;
|
|
42
81
|
lastStatusCode?: number;
|
|
43
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Webhook endpoint registered to receive event deliveries.
|
|
85
|
+
*/
|
|
44
86
|
export interface Webhook {
|
|
45
87
|
id: string;
|
|
46
88
|
createdAt: string;
|
|
89
|
+
/**
|
|
90
|
+
* Array of event types to subscribe to.
|
|
91
|
+
*/
|
|
47
92
|
eventTypes: Array<Shared.EventType>;
|
|
48
93
|
isActive: boolean;
|
|
49
94
|
url: string;
|
|
@@ -51,6 +96,9 @@ export interface Webhook {
|
|
|
51
96
|
export interface WebhookCreateResponse {
|
|
52
97
|
id: string;
|
|
53
98
|
createdAt: string;
|
|
99
|
+
/**
|
|
100
|
+
* Array of event types to subscribe to.
|
|
101
|
+
*/
|
|
54
102
|
eventTypes: Array<Shared.EventType>;
|
|
55
103
|
secret: string;
|
|
56
104
|
url: string;
|
|
@@ -70,6 +118,9 @@ export interface WebhookTestResponse {
|
|
|
70
118
|
error?: string;
|
|
71
119
|
}
|
|
72
120
|
export interface WebhookCreateParams {
|
|
121
|
+
/**
|
|
122
|
+
* Array of event types to subscribe to.
|
|
123
|
+
*/
|
|
73
124
|
eventTypes: Array<Shared.EventType>;
|
|
74
125
|
/**
|
|
75
126
|
* HTTPS URL
|
|
@@ -77,6 +128,9 @@ export interface WebhookCreateParams {
|
|
|
77
128
|
url: string;
|
|
78
129
|
}
|
|
79
130
|
export interface WebhookUpdateParams {
|
|
131
|
+
/**
|
|
132
|
+
* Array of event types to subscribe to.
|
|
133
|
+
*/
|
|
80
134
|
eventTypes?: Array<Shared.EventType>;
|
|
81
135
|
isActive?: boolean;
|
|
82
136
|
url?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IA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,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,OAAO,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAEpC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/webhooks.js
CHANGED
|
@@ -10,36 +10,72 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
10
10
|
class Webhooks extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* Create webhook
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const webhook = await client.webhooks.create({
|
|
17
|
+
* eventTypes: ['tweet.new', 'follower.gained'],
|
|
18
|
+
* url: 'https://example.com/webhook',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
create(body, options) {
|
|
15
23
|
return this._client.post('/webhooks', { body, ...options });
|
|
16
24
|
}
|
|
17
25
|
/**
|
|
18
26
|
* Update webhook
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const webhook = await client.webhooks.update('id', {
|
|
31
|
+
* isActive: true,
|
|
32
|
+
* url: 'https://example.com/webhook',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
19
35
|
*/
|
|
20
36
|
update(id, body, options) {
|
|
21
37
|
return this._client.patch((0, path_1.path) `/webhooks/${id}`, { body, ...options });
|
|
22
38
|
}
|
|
23
39
|
/**
|
|
24
40
|
* List webhooks
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const webhooks = await client.webhooks.list();
|
|
45
|
+
* ```
|
|
25
46
|
*/
|
|
26
47
|
list(options) {
|
|
27
48
|
return this._client.get('/webhooks', options);
|
|
28
49
|
}
|
|
29
50
|
/**
|
|
30
51
|
* Deactivate webhook
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const response = await client.webhooks.deactivate('id');
|
|
56
|
+
* ```
|
|
31
57
|
*/
|
|
32
58
|
deactivate(id, options) {
|
|
33
59
|
return this._client.delete((0, path_1.path) `/webhooks/${id}`, options);
|
|
34
60
|
}
|
|
35
61
|
/**
|
|
36
62
|
* List webhook deliveries
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const response = await client.webhooks.listDeliveries('id');
|
|
67
|
+
* ```
|
|
37
68
|
*/
|
|
38
69
|
listDeliveries(id, options) {
|
|
39
70
|
return this._client.get((0, path_1.path) `/webhooks/${id}/deliveries`, options);
|
|
40
71
|
}
|
|
41
72
|
/**
|
|
42
73
|
* Test webhook endpoint
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const response = await client.webhooks.test('id');
|
|
78
|
+
* ```
|
|
43
79
|
*/
|
|
44
80
|
test(id, options) {
|
|
45
81
|
return this._client.post((0, path_1.path) `/webhooks/${id}/test`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AA9ED,4BA8EC"}
|
package/resources/webhooks.mjs
CHANGED
|
@@ -7,36 +7,72 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
7
7
|
export class Webhooks extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Create webhook
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const webhook = await client.webhooks.create({
|
|
14
|
+
* eventTypes: ['tweet.new', 'follower.gained'],
|
|
15
|
+
* url: 'https://example.com/webhook',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
10
18
|
*/
|
|
11
19
|
create(body, options) {
|
|
12
20
|
return this._client.post('/webhooks', { body, ...options });
|
|
13
21
|
}
|
|
14
22
|
/**
|
|
15
23
|
* Update webhook
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const webhook = await client.webhooks.update('id', {
|
|
28
|
+
* isActive: true,
|
|
29
|
+
* url: 'https://example.com/webhook',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
16
32
|
*/
|
|
17
33
|
update(id, body, options) {
|
|
18
34
|
return this._client.patch(path `/webhooks/${id}`, { body, ...options });
|
|
19
35
|
}
|
|
20
36
|
/**
|
|
21
37
|
* List webhooks
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const webhooks = await client.webhooks.list();
|
|
42
|
+
* ```
|
|
22
43
|
*/
|
|
23
44
|
list(options) {
|
|
24
45
|
return this._client.get('/webhooks', options);
|
|
25
46
|
}
|
|
26
47
|
/**
|
|
27
48
|
* Deactivate webhook
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const response = await client.webhooks.deactivate('id');
|
|
53
|
+
* ```
|
|
28
54
|
*/
|
|
29
55
|
deactivate(id, options) {
|
|
30
56
|
return this._client.delete(path `/webhooks/${id}`, options);
|
|
31
57
|
}
|
|
32
58
|
/**
|
|
33
59
|
* List webhook deliveries
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const response = await client.webhooks.listDeliveries('id');
|
|
64
|
+
* ```
|
|
34
65
|
*/
|
|
35
66
|
listDeliveries(id, options) {
|
|
36
67
|
return this._client.get(path `/webhooks/${id}/deliveries`, options);
|
|
37
68
|
}
|
|
38
69
|
/**
|
|
39
70
|
* Test webhook endpoint
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const response = await client.webhooks.test('id');
|
|
75
|
+
* ```
|
|
40
76
|
*/
|
|
41
77
|
test(id, options) {
|
|
42
78
|
return this._client.post(path `/webhooks/${id}/test`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"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Accounts extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Connect X account
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const account = await client.x.accounts.create({
|
|
14
|
+
* email: 'user@example.com',
|
|
15
|
+
* password: 's3cur3Pa$$w0rd',
|
|
16
|
+
* username: 'elonmusk',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse>;
|
|
12
21
|
/**
|
|
13
22
|
* Get X account details
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const xAccountDetail = await client.x.accounts.retrieve(
|
|
27
|
+
* 'id',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
14
30
|
*/
|
|
15
31
|
retrieve(id: string, options?: RequestOptions): APIPromise<XAccountDetail>;
|
|
16
32
|
/**
|
|
17
33
|
* List connected X accounts
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const accounts = await client.x.accounts.list();
|
|
38
|
+
* ```
|
|
18
39
|
*/
|
|
19
40
|
list(options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
20
41
|
/**
|
|
21
42
|
* Disconnect X account
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const account = await client.x.accounts.delete('id');
|
|
47
|
+
* ```
|
|
22
48
|
*/
|
|
23
49
|
delete(id: string, options?: RequestOptions): APIPromise<AccountDeleteResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Clears loginFailedAt and loginFailureReason for all accounts with transient or
|
|
52
|
+
* automated failure reasons, making them eligible for retry on next use.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.x.accounts.bulkRetry();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
bulkRetry(options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
24
60
|
/**
|
|
25
61
|
* Re-authenticate X account
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const response = await client.x.accounts.reauth('id', {
|
|
66
|
+
* password: 'password_value',
|
|
67
|
+
* totp_secret: 'totp_secret_value',
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
26
70
|
*/
|
|
27
71
|
reauth(id: string, body: AccountReauthParams, options?: RequestOptions): APIPromise<AccountReauthResponse>;
|
|
28
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Linked X account summary with username and connection status.
|
|
75
|
+
*/
|
|
29
76
|
export interface XAccount {
|
|
30
77
|
id: string;
|
|
31
78
|
createdAt: string;
|
|
@@ -33,6 +80,9 @@ export interface XAccount {
|
|
|
33
80
|
xUserId: string;
|
|
34
81
|
xUsername: string;
|
|
35
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Full X account details including proxy, cookies, and update timestamp.
|
|
85
|
+
*/
|
|
36
86
|
export interface XAccountDetail {
|
|
37
87
|
id: string;
|
|
38
88
|
createdAt: string;
|
|
@@ -55,6 +105,12 @@ export interface AccountListResponse {
|
|
|
55
105
|
export interface AccountDeleteResponse {
|
|
56
106
|
success: true;
|
|
57
107
|
}
|
|
108
|
+
export interface AccountBulkRetryResponse {
|
|
109
|
+
/**
|
|
110
|
+
* Number of accounts cleared
|
|
111
|
+
*/
|
|
112
|
+
cleared: number;
|
|
113
|
+
}
|
|
58
114
|
export interface AccountReauthResponse {
|
|
59
115
|
id: string;
|
|
60
116
|
status: string;
|
|
@@ -84,15 +140,15 @@ export interface AccountCreateParams {
|
|
|
84
140
|
}
|
|
85
141
|
export interface AccountReauthParams {
|
|
86
142
|
/**
|
|
87
|
-
*
|
|
143
|
+
* Updated account password
|
|
88
144
|
*/
|
|
89
145
|
password: string;
|
|
90
146
|
/**
|
|
91
|
-
* TOTP secret for 2FA
|
|
147
|
+
* TOTP secret for 2FA re-authentication
|
|
92
148
|
*/
|
|
93
149
|
totp_secret?: string;
|
|
94
150
|
}
|
|
95
151
|
export declare namespace Accounts {
|
|
96
|
-
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountReauthParams as AccountReauthParams, };
|
|
152
|
+
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountBulkRetryResponse as AccountBulkRetryResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountReauthParams as AccountReauthParams, };
|
|
97
153
|
}
|
|
98
154
|
//# sourceMappingURL=accounts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.mts","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
|
|
1
|
+
{"version":3,"file":"accounts.d.mts","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,CAA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AAqB;IACpC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,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"}
|
|
@@ -7,25 +7,72 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
7
7
|
export declare class Accounts extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Connect X account
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const account = await client.x.accounts.create({
|
|
14
|
+
* email: 'user@example.com',
|
|
15
|
+
* password: 's3cur3Pa$$w0rd',
|
|
16
|
+
* username: 'elonmusk',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse>;
|
|
12
21
|
/**
|
|
13
22
|
* Get X account details
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const xAccountDetail = await client.x.accounts.retrieve(
|
|
27
|
+
* 'id',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
14
30
|
*/
|
|
15
31
|
retrieve(id: string, options?: RequestOptions): APIPromise<XAccountDetail>;
|
|
16
32
|
/**
|
|
17
33
|
* List connected X accounts
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const accounts = await client.x.accounts.list();
|
|
38
|
+
* ```
|
|
18
39
|
*/
|
|
19
40
|
list(options?: RequestOptions): APIPromise<AccountListResponse>;
|
|
20
41
|
/**
|
|
21
42
|
* Disconnect X account
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const account = await client.x.accounts.delete('id');
|
|
47
|
+
* ```
|
|
22
48
|
*/
|
|
23
49
|
delete(id: string, options?: RequestOptions): APIPromise<AccountDeleteResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Clears loginFailedAt and loginFailureReason for all accounts with transient or
|
|
52
|
+
* automated failure reasons, making them eligible for retry on next use.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const response = await client.x.accounts.bulkRetry();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
bulkRetry(options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
24
60
|
/**
|
|
25
61
|
* Re-authenticate X account
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const response = await client.x.accounts.reauth('id', {
|
|
66
|
+
* password: 'password_value',
|
|
67
|
+
* totp_secret: 'totp_secret_value',
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
26
70
|
*/
|
|
27
71
|
reauth(id: string, body: AccountReauthParams, options?: RequestOptions): APIPromise<AccountReauthResponse>;
|
|
28
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Linked X account summary with username and connection status.
|
|
75
|
+
*/
|
|
29
76
|
export interface XAccount {
|
|
30
77
|
id: string;
|
|
31
78
|
createdAt: string;
|
|
@@ -33,6 +80,9 @@ export interface XAccount {
|
|
|
33
80
|
xUserId: string;
|
|
34
81
|
xUsername: string;
|
|
35
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Full X account details including proxy, cookies, and update timestamp.
|
|
85
|
+
*/
|
|
36
86
|
export interface XAccountDetail {
|
|
37
87
|
id: string;
|
|
38
88
|
createdAt: string;
|
|
@@ -55,6 +105,12 @@ export interface AccountListResponse {
|
|
|
55
105
|
export interface AccountDeleteResponse {
|
|
56
106
|
success: true;
|
|
57
107
|
}
|
|
108
|
+
export interface AccountBulkRetryResponse {
|
|
109
|
+
/**
|
|
110
|
+
* Number of accounts cleared
|
|
111
|
+
*/
|
|
112
|
+
cleared: number;
|
|
113
|
+
}
|
|
58
114
|
export interface AccountReauthResponse {
|
|
59
115
|
id: string;
|
|
60
116
|
status: string;
|
|
@@ -84,15 +140,15 @@ export interface AccountCreateParams {
|
|
|
84
140
|
}
|
|
85
141
|
export interface AccountReauthParams {
|
|
86
142
|
/**
|
|
87
|
-
*
|
|
143
|
+
* Updated account password
|
|
88
144
|
*/
|
|
89
145
|
password: string;
|
|
90
146
|
/**
|
|
91
|
-
* TOTP secret for 2FA
|
|
147
|
+
* TOTP secret for 2FA re-authentication
|
|
92
148
|
*/
|
|
93
149
|
totp_secret?: string;
|
|
94
150
|
}
|
|
95
151
|
export declare namespace Accounts {
|
|
96
|
-
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountReauthParams as AccountReauthParams, };
|
|
152
|
+
export { type XAccount as XAccount, type XAccountDetail as XAccountDetail, type AccountCreateResponse as AccountCreateResponse, type AccountListResponse as AccountListResponse, type AccountDeleteResponse as AccountDeleteResponse, type AccountBulkRetryResponse as AccountBulkRetryResponse, type AccountReauthResponse as AccountReauthResponse, type AccountCreateParams as AccountCreateParams, type AccountReauthParams as AccountReauthParams, };
|
|
97
153
|
}
|
|
98
154
|
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -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
|
|
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,MA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