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/drafts.js
CHANGED
|
@@ -11,24 +11,48 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
11
11
|
class Drafts extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Save a tweet draft
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const draftDetail = await client.drafts.create({
|
|
18
|
+
* text: 'AI is the future of productivity',
|
|
19
|
+
* goal: 'engagement',
|
|
20
|
+
* topic: 'AI trends',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
14
23
|
*/
|
|
15
24
|
create(body, options) {
|
|
16
25
|
return this._client.post('/drafts', { body, ...options });
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
28
|
* Get draft by ID
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const draftDetail = await client.drafts.retrieve('id');
|
|
33
|
+
* ```
|
|
20
34
|
*/
|
|
21
35
|
retrieve(id, options) {
|
|
22
36
|
return this._client.get((0, path_1.path) `/drafts/${id}`, options);
|
|
23
37
|
}
|
|
24
38
|
/**
|
|
25
39
|
* List saved drafts
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const drafts = await client.drafts.list();
|
|
44
|
+
* ```
|
|
26
45
|
*/
|
|
27
46
|
list(query = {}, options) {
|
|
28
47
|
return this._client.get('/drafts', { query, ...options });
|
|
29
48
|
}
|
|
30
49
|
/**
|
|
31
50
|
* Delete a draft
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* await client.drafts.delete('id');
|
|
55
|
+
* ```
|
|
32
56
|
*/
|
|
33
57
|
delete(id, options) {
|
|
34
58
|
return this._client.delete((0, path_1.path) `/drafts/${id}`, {
|
package/resources/drafts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drafts.js","sourceRoot":"","sources":["../src/resources/drafts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"drafts.js","sourceRoot":"","sources":["../src/resources/drafts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA1DD,wBA0DC"}
|
package/resources/drafts.mjs
CHANGED
|
@@ -8,24 +8,48 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
8
8
|
export class Drafts extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Save a tweet draft
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const draftDetail = await client.drafts.create({
|
|
15
|
+
* text: 'AI is the future of productivity',
|
|
16
|
+
* goal: 'engagement',
|
|
17
|
+
* topic: 'AI trends',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
11
20
|
*/
|
|
12
21
|
create(body, options) {
|
|
13
22
|
return this._client.post('/drafts', { body, ...options });
|
|
14
23
|
}
|
|
15
24
|
/**
|
|
16
25
|
* Get draft by ID
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const draftDetail = await client.drafts.retrieve('id');
|
|
30
|
+
* ```
|
|
17
31
|
*/
|
|
18
32
|
retrieve(id, options) {
|
|
19
33
|
return this._client.get(path `/drafts/${id}`, options);
|
|
20
34
|
}
|
|
21
35
|
/**
|
|
22
36
|
* List saved drafts
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const drafts = await client.drafts.list();
|
|
41
|
+
* ```
|
|
23
42
|
*/
|
|
24
43
|
list(query = {}, options) {
|
|
25
44
|
return this._client.get('/drafts', { query, ...options });
|
|
26
45
|
}
|
|
27
46
|
/**
|
|
28
47
|
* Delete a draft
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* await client.drafts.delete('id');
|
|
52
|
+
* ```
|
|
29
53
|
*/
|
|
30
54
|
delete(id, options) {
|
|
31
55
|
return this._client.delete(path `/drafts/${id}`, {
|
package/resources/drafts.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drafts.mjs","sourceRoot":"","sources":["../src/resources/drafts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"drafts.mjs","sourceRoot":"","sources":["../src/resources/drafts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/draws.d.mts
CHANGED
|
@@ -7,21 +7,51 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
7
7
|
export declare class Draws extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Get draw details
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const draw = await client.draws.retrieve('id');
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<DrawRetrieveResponse>;
|
|
12
17
|
/**
|
|
13
18
|
* List draws
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const draws = await client.draws.list();
|
|
23
|
+
* ```
|
|
14
24
|
*/
|
|
15
25
|
list(query?: DrawListParams | null | undefined, options?: RequestOptions): APIPromise<DrawListResponse>;
|
|
16
26
|
/**
|
|
17
27
|
* Export draw data
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response = await client.draws.export('id');
|
|
32
|
+
*
|
|
33
|
+
* const content = await response.blob();
|
|
34
|
+
* console.log(content);
|
|
35
|
+
* ```
|
|
18
36
|
*/
|
|
19
37
|
export(id: string, query?: DrawExportParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
20
38
|
/**
|
|
21
39
|
* Run giveaway draw
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const response = await client.draws.run({
|
|
44
|
+
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
45
|
+
* mustRetweet: true,
|
|
46
|
+
* winnerCount: 3,
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
22
49
|
*/
|
|
23
50
|
run(body: DrawRunParams, options?: RequestOptions): APIPromise<DrawRunResponse>;
|
|
24
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Full giveaway draw with tweet metrics, entries, and timing.
|
|
54
|
+
*/
|
|
25
55
|
export interface DrawDetail {
|
|
26
56
|
id: string;
|
|
27
57
|
createdAt: string;
|
|
@@ -38,6 +68,9 @@ export interface DrawDetail {
|
|
|
38
68
|
validEntries: number;
|
|
39
69
|
drawnAt?: string;
|
|
40
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Giveaway draw summary with entry counts and status.
|
|
73
|
+
*/
|
|
41
74
|
export interface DrawListItem {
|
|
42
75
|
id: string;
|
|
43
76
|
createdAt: string;
|
|
@@ -47,6 +80,9 @@ export interface DrawListItem {
|
|
|
47
80
|
validEntries: number;
|
|
48
81
|
drawnAt?: string;
|
|
49
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Giveaway draw winner with position and backup flag.
|
|
85
|
+
*/
|
|
50
86
|
export interface Winner {
|
|
51
87
|
authorUsername: string;
|
|
52
88
|
isBackup: boolean;
|
|
@@ -54,6 +90,9 @@ export interface Winner {
|
|
|
54
90
|
tweetId: string;
|
|
55
91
|
}
|
|
56
92
|
export interface DrawRetrieveResponse {
|
|
93
|
+
/**
|
|
94
|
+
* Full giveaway draw with tweet metrics, entries, and timing.
|
|
95
|
+
*/
|
|
57
96
|
draw: DrawDetail;
|
|
58
97
|
winners: Array<Winner>;
|
|
59
98
|
}
|
|
@@ -71,12 +110,18 @@ export interface DrawRunResponse {
|
|
|
71
110
|
}
|
|
72
111
|
export interface DrawListParams {
|
|
73
112
|
/**
|
|
74
|
-
* Cursor for pagination
|
|
113
|
+
* Cursor for keyset pagination
|
|
75
114
|
*/
|
|
76
115
|
after?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Maximum number of items to return (1-100, default 50)
|
|
118
|
+
*/
|
|
77
119
|
limit?: number;
|
|
78
120
|
}
|
|
79
121
|
export interface DrawExportParams {
|
|
122
|
+
/**
|
|
123
|
+
* Export output format
|
|
124
|
+
*/
|
|
80
125
|
format?: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
|
|
81
126
|
/**
|
|
82
127
|
* Export winners or all entries
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.d.mts","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"draws.d.mts","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAA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AC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
package/resources/draws.d.ts
CHANGED
|
@@ -7,21 +7,51 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
export declare class Draws extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Get draw details
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const draw = await client.draws.retrieve('id');
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<DrawRetrieveResponse>;
|
|
12
17
|
/**
|
|
13
18
|
* List draws
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const draws = await client.draws.list();
|
|
23
|
+
* ```
|
|
14
24
|
*/
|
|
15
25
|
list(query?: DrawListParams | null | undefined, options?: RequestOptions): APIPromise<DrawListResponse>;
|
|
16
26
|
/**
|
|
17
27
|
* Export draw data
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response = await client.draws.export('id');
|
|
32
|
+
*
|
|
33
|
+
* const content = await response.blob();
|
|
34
|
+
* console.log(content);
|
|
35
|
+
* ```
|
|
18
36
|
*/
|
|
19
37
|
export(id: string, query?: DrawExportParams | null | undefined, options?: RequestOptions): APIPromise<Response>;
|
|
20
38
|
/**
|
|
21
39
|
* Run giveaway draw
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const response = await client.draws.run({
|
|
44
|
+
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
45
|
+
* mustRetweet: true,
|
|
46
|
+
* winnerCount: 3,
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
22
49
|
*/
|
|
23
50
|
run(body: DrawRunParams, options?: RequestOptions): APIPromise<DrawRunResponse>;
|
|
24
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Full giveaway draw with tweet metrics, entries, and timing.
|
|
54
|
+
*/
|
|
25
55
|
export interface DrawDetail {
|
|
26
56
|
id: string;
|
|
27
57
|
createdAt: string;
|
|
@@ -38,6 +68,9 @@ export interface DrawDetail {
|
|
|
38
68
|
validEntries: number;
|
|
39
69
|
drawnAt?: string;
|
|
40
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Giveaway draw summary with entry counts and status.
|
|
73
|
+
*/
|
|
41
74
|
export interface DrawListItem {
|
|
42
75
|
id: string;
|
|
43
76
|
createdAt: string;
|
|
@@ -47,6 +80,9 @@ export interface DrawListItem {
|
|
|
47
80
|
validEntries: number;
|
|
48
81
|
drawnAt?: string;
|
|
49
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Giveaway draw winner with position and backup flag.
|
|
85
|
+
*/
|
|
50
86
|
export interface Winner {
|
|
51
87
|
authorUsername: string;
|
|
52
88
|
isBackup: boolean;
|
|
@@ -54,6 +90,9 @@ export interface Winner {
|
|
|
54
90
|
tweetId: string;
|
|
55
91
|
}
|
|
56
92
|
export interface DrawRetrieveResponse {
|
|
93
|
+
/**
|
|
94
|
+
* Full giveaway draw with tweet metrics, entries, and timing.
|
|
95
|
+
*/
|
|
57
96
|
draw: DrawDetail;
|
|
58
97
|
winners: Array<Winner>;
|
|
59
98
|
}
|
|
@@ -71,12 +110,18 @@ export interface DrawRunResponse {
|
|
|
71
110
|
}
|
|
72
111
|
export interface DrawListParams {
|
|
73
112
|
/**
|
|
74
|
-
* Cursor for pagination
|
|
113
|
+
* Cursor for keyset pagination
|
|
75
114
|
*/
|
|
76
115
|
after?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Maximum number of items to return (1-100, default 50)
|
|
118
|
+
*/
|
|
77
119
|
limit?: number;
|
|
78
120
|
}
|
|
79
121
|
export interface DrawExportParams {
|
|
122
|
+
/**
|
|
123
|
+
* Export output format
|
|
124
|
+
*/
|
|
80
125
|
format?: 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx';
|
|
81
126
|
/**
|
|
82
127
|
* Export winners or all entries
|
package/resources/draws.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.d.ts","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"draws.d.ts","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,QAAQ,CAAC;IASvB;;;;;;;;;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K,YAAY,IAAI,YAAY,EACjC,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
package/resources/draws.js
CHANGED
|
@@ -11,18 +11,36 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
11
11
|
class Draws extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Get draw details
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const draw = await client.draws.retrieve('id');
|
|
18
|
+
* ```
|
|
14
19
|
*/
|
|
15
20
|
retrieve(id, options) {
|
|
16
21
|
return this._client.get((0, path_1.path) `/draws/${id}`, options);
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* List draws
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const draws = await client.draws.list();
|
|
29
|
+
* ```
|
|
20
30
|
*/
|
|
21
31
|
list(query = {}, options) {
|
|
22
32
|
return this._client.get('/draws', { query, ...options });
|
|
23
33
|
}
|
|
24
34
|
/**
|
|
25
35
|
* Export draw data
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const response = await client.draws.export('id');
|
|
40
|
+
*
|
|
41
|
+
* const content = await response.blob();
|
|
42
|
+
* console.log(content);
|
|
43
|
+
* ```
|
|
26
44
|
*/
|
|
27
45
|
export(id, query = {}, options) {
|
|
28
46
|
return this._client.get((0, path_1.path) `/draws/${id}/export`, {
|
|
@@ -34,6 +52,15 @@ class Draws extends resource_1.APIResource {
|
|
|
34
52
|
}
|
|
35
53
|
/**
|
|
36
54
|
* Run giveaway draw
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response = await client.draws.run({
|
|
59
|
+
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
60
|
+
* mustRetweet: true,
|
|
61
|
+
* winnerCount: 3,
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
37
64
|
*/
|
|
38
65
|
run(body, options) {
|
|
39
66
|
return this._client.post('/draws', { body, ...options });
|
package/resources/draws.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.js","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"draws.js","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,SAAS,EAAE;YACjD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,IAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF;AAnED,sBAmEC"}
|
package/resources/draws.mjs
CHANGED
|
@@ -8,18 +8,36 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
8
8
|
export class Draws extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Get draw details
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const draw = await client.draws.retrieve('id');
|
|
15
|
+
* ```
|
|
11
16
|
*/
|
|
12
17
|
retrieve(id, options) {
|
|
13
18
|
return this._client.get(path `/draws/${id}`, options);
|
|
14
19
|
}
|
|
15
20
|
/**
|
|
16
21
|
* List draws
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const draws = await client.draws.list();
|
|
26
|
+
* ```
|
|
17
27
|
*/
|
|
18
28
|
list(query = {}, options) {
|
|
19
29
|
return this._client.get('/draws', { query, ...options });
|
|
20
30
|
}
|
|
21
31
|
/**
|
|
22
32
|
* Export draw data
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.draws.export('id');
|
|
37
|
+
*
|
|
38
|
+
* const content = await response.blob();
|
|
39
|
+
* console.log(content);
|
|
40
|
+
* ```
|
|
23
41
|
*/
|
|
24
42
|
export(id, query = {}, options) {
|
|
25
43
|
return this._client.get(path `/draws/${id}/export`, {
|
|
@@ -31,6 +49,15 @@ export class Draws extends APIResource {
|
|
|
31
49
|
}
|
|
32
50
|
/**
|
|
33
51
|
* Run giveaway draw
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const response = await client.draws.run({
|
|
56
|
+
* tweetUrl: 'https://x.com/elonmusk/status/1234567890',
|
|
57
|
+
* mustRetweet: true,
|
|
58
|
+
* winnerCount: 3,
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
34
61
|
*/
|
|
35
62
|
run(body, options) {
|
|
36
63
|
return this._client.post('/draws', { body, ...options });
|
package/resources/draws.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draws.mjs","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"draws.mjs","sourceRoot":"","sources":["../src/resources/draws.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,EAAE,SAAS,EAAE;YACjD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,IAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
package/resources/events.d.mts
CHANGED
|
@@ -15,6 +15,9 @@ export declare class Events extends APIResource {
|
|
|
15
15
|
*/
|
|
16
16
|
list(query?: EventListParams | null | undefined, options?: RequestOptions): APIPromise<EventListResponse>;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Monitor event summary with type, username, and occurrence time.
|
|
20
|
+
*/
|
|
18
21
|
export interface Event {
|
|
19
22
|
id: string;
|
|
20
23
|
data: {
|
|
@@ -22,16 +25,28 @@ export interface Event {
|
|
|
22
25
|
};
|
|
23
26
|
monitorId: string;
|
|
24
27
|
occurredAt: string;
|
|
28
|
+
/**
|
|
29
|
+
* Type of monitor event fired when account activity occurs.
|
|
30
|
+
*/
|
|
25
31
|
type: Shared.EventType;
|
|
26
32
|
username: string;
|
|
27
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Full monitor event including payload data and optional X event ID.
|
|
36
|
+
*/
|
|
28
37
|
export interface EventDetail {
|
|
29
38
|
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Event payload — shape varies by event type (JSON)
|
|
41
|
+
*/
|
|
30
42
|
data: {
|
|
31
43
|
[key: string]: unknown;
|
|
32
44
|
};
|
|
33
45
|
monitorId: string;
|
|
34
46
|
occurredAt: string;
|
|
47
|
+
/**
|
|
48
|
+
* Type of monitor event fired when account activity occurs.
|
|
49
|
+
*/
|
|
35
50
|
type: Shared.EventType;
|
|
36
51
|
username: string;
|
|
37
52
|
xEventId?: string;
|
|
@@ -43,11 +58,20 @@ export interface EventListResponse {
|
|
|
43
58
|
}
|
|
44
59
|
export interface EventListParams {
|
|
45
60
|
/**
|
|
46
|
-
* Cursor for pagination
|
|
61
|
+
* Cursor for keyset pagination
|
|
47
62
|
*/
|
|
48
63
|
after?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Filter events by type
|
|
66
|
+
*/
|
|
49
67
|
eventType?: Shared.EventType;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum number of items to return (1-100, default 50)
|
|
70
|
+
*/
|
|
50
71
|
limit?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Filter events by monitor ID
|
|
74
|
+
*/
|
|
51
75
|
monitorId?: string;
|
|
52
76
|
}
|
|
53
77
|
export declare namespace Events {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG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C;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/events.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ export declare class Events extends APIResource {
|
|
|
15
15
|
*/
|
|
16
16
|
list(query?: EventListParams | null | undefined, options?: RequestOptions): APIPromise<EventListResponse>;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Monitor event summary with type, username, and occurrence time.
|
|
20
|
+
*/
|
|
18
21
|
export interface Event {
|
|
19
22
|
id: string;
|
|
20
23
|
data: {
|
|
@@ -22,16 +25,28 @@ export interface Event {
|
|
|
22
25
|
};
|
|
23
26
|
monitorId: string;
|
|
24
27
|
occurredAt: string;
|
|
28
|
+
/**
|
|
29
|
+
* Type of monitor event fired when account activity occurs.
|
|
30
|
+
*/
|
|
25
31
|
type: Shared.EventType;
|
|
26
32
|
username: string;
|
|
27
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Full monitor event including payload data and optional X event ID.
|
|
36
|
+
*/
|
|
28
37
|
export interface EventDetail {
|
|
29
38
|
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Event payload — shape varies by event type (JSON)
|
|
41
|
+
*/
|
|
30
42
|
data: {
|
|
31
43
|
[key: string]: unknown;
|
|
32
44
|
};
|
|
33
45
|
monitorId: string;
|
|
34
46
|
occurredAt: string;
|
|
47
|
+
/**
|
|
48
|
+
* Type of monitor event fired when account activity occurs.
|
|
49
|
+
*/
|
|
35
50
|
type: Shared.EventType;
|
|
36
51
|
username: string;
|
|
37
52
|
xEventId?: string;
|
|
@@ -43,11 +58,20 @@ export interface EventListResponse {
|
|
|
43
58
|
}
|
|
44
59
|
export interface EventListParams {
|
|
45
60
|
/**
|
|
46
|
-
* Cursor for pagination
|
|
61
|
+
* Cursor for keyset pagination
|
|
47
62
|
*/
|
|
48
63
|
after?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Filter events by type
|
|
66
|
+
*/
|
|
49
67
|
eventType?: Shared.EventType;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum number of items to return (1-100, default 50)
|
|
70
|
+
*/
|
|
50
71
|
limit?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Filter events by monitor ID
|
|
74
|
+
*/
|
|
51
75
|
monitorId?: string;
|
|
52
76
|
}
|
|
53
77
|
export declare namespace Events {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIvE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEjC,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC;IAEvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE;Q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