x-twitter-scraper 0.16.0 → 0.17.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 +33 -5
- package/README.md +1 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/detect-platform.d.mts +3 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts +3 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/events.d.mts +50 -11
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +50 -11
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.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/monitors/index.d.mts +2 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +2 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js +3 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs +1 -0
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/keywords.d.mts +10 -96
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +10 -96
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/monitors.d.mts +6 -2
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +6 -2
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +4 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +4 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +344 -0
- package/resources/monitors/posts.d.mts.map +1 -0
- package/resources/monitors/posts.d.ts +344 -0
- package/resources/monitors/posts.d.ts.map +1 -0
- package/resources/monitors/posts.js +94 -0
- package/resources/monitors/posts.js.map +1 -0
- package/resources/monitors/posts.mjs +90 -0
- package/resources/monitors/posts.mjs.map +1 -0
- package/resources/shared.d.mts +577 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +577 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/support/index.d.mts +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +2 -2
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +2 -2
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +12 -20
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +12 -20
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/webhooks.d.mts +5 -4
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +5 -4
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/accounts.d.mts +14 -4
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +14 -4
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +6 -4
- package/resources/x/accounts.js.map +1 -1
- package/resources/x/accounts.mjs +6 -4
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/broadcasts.d.mts +3 -131
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts +3 -131
- package/resources/x/broadcasts.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +92 -1
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +92 -1
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +14 -0
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +14 -0
- 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/community-notes.d.mts +122 -510
- package/resources/x/community-notes.d.mts.map +1 -1
- package/resources/x/community-notes.d.ts +122 -510
- package/resources/x/community-notes.d.ts.map +1 -1
- package/resources/x/community-notes.js.map +1 -1
- package/resources/x/community-notes.mjs.map +1 -1
- package/resources/x/index.d.mts +7 -6
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +7 -6
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/jobs.d.mts +144 -291
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts +144 -291
- package/resources/x/jobs.d.ts.map +1 -1
- package/resources/x/jobs.js.map +1 -1
- package/resources/x/jobs.mjs.map +1 -1
- package/resources/x/lists.d.mts +21 -419
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +21 -419
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/spaces.d.mts +213 -693
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +213 -693
- package/resources/x/spaces.d.ts.map +1 -1
- package/resources/x/spaces.js.map +1 -1
- package/resources/x/spaces.mjs.map +1 -1
- package/resources/x/sports.d.mts +1349 -0
- package/resources/x/sports.d.mts.map +1 -0
- package/resources/x/sports.d.ts +1349 -0
- package/resources/x/sports.d.ts.map +1 -0
- package/resources/x/sports.js +76 -0
- package/resources/x/sports.js.map +1 -0
- package/resources/x/sports.mjs +72 -0
- package/resources/x/sports.mjs.map +1 -0
- package/resources/x/tweets/tweets.d.mts +11 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +11 -13
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/users/users.d.mts +29 -585
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +29 -585
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/x.d.mts +55 -118
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +55 -118
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
- package/src/client.ts +8 -0
- package/src/internal/detect-platform.ts +2 -2
- package/src/resources/events.ts +72 -10
- package/src/resources/index.ts +1 -0
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +10 -118
- package/src/resources/monitors/monitors.ts +46 -0
- package/src/resources/monitors/posts.ts +463 -0
- package/src/resources/shared.ts +773 -200
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +14 -21
- package/src/resources/webhooks.ts +5 -4
- package/src/resources/x/accounts.ts +19 -4
- package/src/resources/x/broadcasts.ts +3 -159
- package/src/resources/x/communities/communities.ts +113 -0
- package/src/resources/x/communities/index.ts +3 -0
- package/src/resources/x/community-notes.ts +137 -582
- package/src/resources/x/index.ts +62 -0
- package/src/resources/x/jobs.ts +160 -334
- package/src/resources/x/lists.ts +21 -493
- package/src/resources/x/spaces.ts +227 -817
- package/src/resources/x/sports.ts +1675 -0
- package/src/resources/x/tweets/tweets.ts +15 -15
- package/src/resources/x/users/users.ts +29 -693
- package/src/resources/x/x.ts +175 -128
- 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/src/lib/.keep +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,6BAAyB;
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;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;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAyC,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAChB,IAAI,GAAuD,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CACZ,EAAU,EACV,KAAK,GAAmD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
@@ -50,15 +50,17 @@ export declare class Accounts extends APIResource {
|
|
|
50
50
|
*/
|
|
51
51
|
delete(id: string, options?: RequestOptions): APIPromise<AccountDeleteResponse>;
|
|
52
52
|
/**
|
|
53
|
-
* Clears loginFailedAt and loginFailureReason for
|
|
54
|
-
* automated failure
|
|
53
|
+
* Clears loginFailedAt and loginFailureReason for every account with a transient
|
|
54
|
+
* or automated failure reason. Each can then retry on its next use. Name accounts
|
|
55
|
+
* in accountIds to retry only those. Needs a dashboard session, since each retry
|
|
56
|
+
* signs in to X again.
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
59
|
* ```ts
|
|
58
60
|
* const response = await client.x.accounts.bulkRetry();
|
|
59
61
|
* ```
|
|
60
62
|
*/
|
|
61
|
-
bulkRetry(options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
63
|
+
bulkRetry(body?: AccountBulkRetryParams | null | undefined, options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
62
64
|
/**
|
|
63
65
|
* Starts re-authentication for an existing X account connection.
|
|
64
66
|
*
|
|
@@ -210,6 +212,14 @@ export interface AccountListParams {
|
|
|
210
212
|
*/
|
|
211
213
|
limit?: number;
|
|
212
214
|
}
|
|
215
|
+
export interface AccountBulkRetryParams {
|
|
216
|
+
/**
|
|
217
|
+
* IDs of the X accounts to retry. Accounts that failed for another reason, or
|
|
218
|
+
* belong to someone else, stay as they are. Accepts 1 to 1,000 IDs. Omit accountIds
|
|
219
|
+
* to retry every account with a transient or automated failure.
|
|
220
|
+
*/
|
|
221
|
+
accountIds?: Array<string>;
|
|
222
|
+
}
|
|
213
223
|
export interface AccountReauthParams {
|
|
214
224
|
/**
|
|
215
225
|
* Updated account password
|
|
@@ -225,6 +235,6 @@ export interface AccountReauthParams {
|
|
|
225
235
|
totp_secret?: string;
|
|
226
236
|
}
|
|
227
237
|
export declare namespace Accounts {
|
|
228
|
-
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 AccountListParams as AccountListParams, type AccountReauthParams as AccountReauthParams, };
|
|
238
|
+
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 AccountListParams as AccountListParams, type AccountBulkRetryParams as AccountBulkRetryParams, type AccountReauthParams as AccountReauthParams, };
|
|
229
239
|
}
|
|
230
240
|
//# sourceMappingURL=accounts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAE7F;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAEzE;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,CAEjC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAE9E;IAED
|
|
1
|
+
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WA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AEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -50,15 +50,17 @@ export declare class Accounts extends APIResource {
|
|
|
50
50
|
*/
|
|
51
51
|
delete(id: string, options?: RequestOptions): APIPromise<AccountDeleteResponse>;
|
|
52
52
|
/**
|
|
53
|
-
* Clears loginFailedAt and loginFailureReason for
|
|
54
|
-
* automated failure
|
|
53
|
+
* Clears loginFailedAt and loginFailureReason for every account with a transient
|
|
54
|
+
* or automated failure reason. Each can then retry on its next use. Name accounts
|
|
55
|
+
* in accountIds to retry only those. Needs a dashboard session, since each retry
|
|
56
|
+
* signs in to X again.
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
59
|
* ```ts
|
|
58
60
|
* const response = await client.x.accounts.bulkRetry();
|
|
59
61
|
* ```
|
|
60
62
|
*/
|
|
61
|
-
bulkRetry(options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
63
|
+
bulkRetry(body?: AccountBulkRetryParams | null | undefined, options?: RequestOptions): APIPromise<AccountBulkRetryResponse>;
|
|
62
64
|
/**
|
|
63
65
|
* Starts re-authentication for an existing X account connection.
|
|
64
66
|
*
|
|
@@ -210,6 +212,14 @@ export interface AccountListParams {
|
|
|
210
212
|
*/
|
|
211
213
|
limit?: number;
|
|
212
214
|
}
|
|
215
|
+
export interface AccountBulkRetryParams {
|
|
216
|
+
/**
|
|
217
|
+
* IDs of the X accounts to retry. Accounts that failed for another reason, or
|
|
218
|
+
* belong to someone else, stay as they are. Accepts 1 to 1,000 IDs. Omit accountIds
|
|
219
|
+
* to retry every account with a transient or automated failure.
|
|
220
|
+
*/
|
|
221
|
+
accountIds?: Array<string>;
|
|
222
|
+
}
|
|
213
223
|
export interface AccountReauthParams {
|
|
214
224
|
/**
|
|
215
225
|
* Updated account password
|
|
@@ -225,6 +235,6 @@ export interface AccountReauthParams {
|
|
|
225
235
|
totp_secret?: string;
|
|
226
236
|
}
|
|
227
237
|
export declare namespace Accounts {
|
|
228
|
-
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 AccountListParams as AccountListParams, type AccountReauthParams as AccountReauthParams, };
|
|
238
|
+
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 AccountListParams as AccountListParams, type AccountBulkRetryParams as AccountBulkRetryParams, type AccountReauthParams as AccountReauthParams, };
|
|
229
239
|
}
|
|
230
240
|
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,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,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/x/accounts.js
CHANGED
|
@@ -63,16 +63,18 @@ class Accounts extends resource_1.APIResource {
|
|
|
63
63
|
return this._client.delete((0, path_1.path) `/x/accounts/${id}`, options);
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
* Clears loginFailedAt and loginFailureReason for
|
|
67
|
-
* automated failure
|
|
66
|
+
* Clears loginFailedAt and loginFailureReason for every account with a transient
|
|
67
|
+
* or automated failure reason. Each can then retry on its next use. Name accounts
|
|
68
|
+
* in accountIds to retry only those. Needs a dashboard session, since each retry
|
|
69
|
+
* signs in to X again.
|
|
68
70
|
*
|
|
69
71
|
* @example
|
|
70
72
|
* ```ts
|
|
71
73
|
* const response = await client.x.accounts.bulkRetry();
|
|
72
74
|
* ```
|
|
73
75
|
*/
|
|
74
|
-
bulkRetry(options) {
|
|
75
|
-
return this._client.post('/x/accounts/bulk-retry', options);
|
|
76
|
+
bulkRetry(body = {}, options) {
|
|
77
|
+
return this._client.post('/x/accounts/bulk-retry', { body, ...options });
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Starts re-authentication for an existing X account connection.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,cAAsB,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;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,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G;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CACP,IAAI,GAA8C,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;OAWG;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"}
|
package/resources/x/accounts.mjs
CHANGED
|
@@ -60,16 +60,18 @@ export class Accounts extends APIResource {
|
|
|
60
60
|
return this._client.delete(path `/x/accounts/${id}`, options);
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Clears loginFailedAt and loginFailureReason for
|
|
64
|
-
* automated failure
|
|
63
|
+
* Clears loginFailedAt and loginFailureReason for every account with a transient
|
|
64
|
+
* or automated failure reason. Each can then retry on its next use. Name accounts
|
|
65
|
+
* in accountIds to retry only those. Needs a dashboard session, since each retry
|
|
66
|
+
* signs in to X again.
|
|
65
67
|
*
|
|
66
68
|
* @example
|
|
67
69
|
* ```ts
|
|
68
70
|
* const response = await client.x.accounts.bulkRetry();
|
|
69
71
|
* ```
|
|
70
72
|
*/
|
|
71
|
-
bulkRetry(options) {
|
|
72
|
-
return this._client.post('/x/accounts/bulk-retry', options);
|
|
73
|
+
bulkRetry(body = {}, options) {
|
|
74
|
+
return this._client.post('/x/accounts/bulk-retry', { body, ...options });
|
|
73
75
|
}
|
|
74
76
|
/**
|
|
75
77
|
* Starts re-authentication for an existing X account connection.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;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;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAyC,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,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
|
|
1
|
+
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/x/accounts.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAE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
22
|
/**
|
|
23
23
|
* X broadcast, a live video
|
|
24
24
|
*/
|
|
25
|
-
broadcast:
|
|
25
|
+
broadcast: Shared.Broadcast;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace BroadcastRetrieveResponse {
|
|
28
|
-
|
|
29
|
-
* X broadcast, a live video
|
|
30
|
-
*/
|
|
31
|
-
interface Broadcast {
|
|
32
|
-
/**
|
|
33
|
-
* Broadcast ID
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
/**
|
|
37
|
-
* Camera rotation in degrees
|
|
38
|
-
*/
|
|
39
|
-
cameraRotation?: number;
|
|
40
|
-
/**
|
|
41
|
-
* X's code for who may chat
|
|
42
|
-
*/
|
|
43
|
-
chatOption?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Public X profile.
|
|
46
|
-
*/
|
|
47
|
-
creator?: Shared.UserProfile;
|
|
48
|
-
/**
|
|
49
|
-
* When the broadcast ended
|
|
50
|
-
*/
|
|
51
|
-
endedAt?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Video height in pixels
|
|
54
|
-
*/
|
|
55
|
-
height?: number;
|
|
56
|
-
/**
|
|
57
|
-
* Whether X offers a recording of the broadcast
|
|
58
|
-
*/
|
|
59
|
-
isAvailableForReplay?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Whether the video stream runs in high-latency mode
|
|
62
|
-
*/
|
|
63
|
-
isHighLatency?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Whether X marks the chat private
|
|
66
|
-
*/
|
|
67
|
-
isPrivateChat?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the broadcaster edited the title of the replay
|
|
70
|
-
*/
|
|
71
|
-
isTitleEdited?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* When the video stream last reached X
|
|
74
|
-
*/
|
|
75
|
-
lastPingAt?: string;
|
|
76
|
-
/**
|
|
77
|
-
* X's media key for the video
|
|
78
|
-
*/
|
|
79
|
-
mediaKey?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Broadcaster, as X's live video service names the account
|
|
82
|
-
*/
|
|
83
|
-
periscopeUser?: Broadcast.PeriscopeUser;
|
|
84
|
-
/**
|
|
85
|
-
* Image X shows before the broadcast starts
|
|
86
|
-
*/
|
|
87
|
-
preLiveSlateUrl?: string;
|
|
88
|
-
/**
|
|
89
|
-
* When the broadcast was set to start
|
|
90
|
-
*/
|
|
91
|
-
scheduledStart?: string;
|
|
92
|
-
/**
|
|
93
|
-
* What produced the video stream, as X names it
|
|
94
|
-
*/
|
|
95
|
-
source?: string;
|
|
96
|
-
/**
|
|
97
|
-
* When the broadcast went live
|
|
98
|
-
*/
|
|
99
|
-
startedAt?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Such as NotStarted, Running or Ended, as X names it
|
|
102
|
-
*/
|
|
103
|
-
state?: string;
|
|
104
|
-
/**
|
|
105
|
-
* Broadcast title
|
|
106
|
-
*/
|
|
107
|
-
title?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Accounts that watched, live or after
|
|
110
|
-
*/
|
|
111
|
-
totalWatched?: number;
|
|
112
|
-
/**
|
|
113
|
-
* Accounts watching, as X counts them
|
|
114
|
-
*/
|
|
115
|
-
totalWatching?: number;
|
|
116
|
-
/**
|
|
117
|
-
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
118
|
-
*/
|
|
119
|
-
tweet?: Shared.SearchTweet;
|
|
120
|
-
/**
|
|
121
|
-
* ID of the post that announces the broadcast
|
|
122
|
-
*/
|
|
123
|
-
tweetId?: string;
|
|
124
|
-
/**
|
|
125
|
-
* X's revision number of the broadcast
|
|
126
|
-
*/
|
|
127
|
-
version?: number;
|
|
128
|
-
/**
|
|
129
|
-
* Video width in pixels
|
|
130
|
-
*/
|
|
131
|
-
width?: number;
|
|
132
|
-
}
|
|
28
|
+
type Broadcast = Shared.Broadcast;
|
|
133
29
|
namespace Broadcast {
|
|
134
|
-
|
|
135
|
-
* Broadcaster, as X's live video service names the account
|
|
136
|
-
*/
|
|
137
|
-
interface PeriscopeUser {
|
|
138
|
-
/**
|
|
139
|
-
* Live video account ID
|
|
140
|
-
*/
|
|
141
|
-
id?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Live video display name
|
|
144
|
-
*/
|
|
145
|
-
displayName?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Live video avatar URL
|
|
148
|
-
*/
|
|
149
|
-
profilePicture?: string;
|
|
150
|
-
/**
|
|
151
|
-
* The broadcaster's avatar at full size
|
|
152
|
-
*/
|
|
153
|
-
profilePictureOriginal?: string;
|
|
154
|
-
/**
|
|
155
|
-
* Live video username
|
|
156
|
-
*/
|
|
157
|
-
username?: string;
|
|
158
|
-
}
|
|
30
|
+
type PeriscopeUser = Shared.Broadcast.PeriscopeUser;
|
|
159
31
|
}
|
|
160
32
|
}
|
|
161
33
|
export interface BroadcastRetrieveParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"broadcasts.d.mts","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC,CAEvC;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"broadcasts.d.mts","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC,CAEvC;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;CAC7B;AAED,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IAEzC,UAAiB,SAAS,CAAC;QACzB,KAAY,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC;KAC5D;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -22,140 +22,12 @@ export interface BroadcastRetrieveResponse {
|
|
|
22
22
|
/**
|
|
23
23
|
* X broadcast, a live video
|
|
24
24
|
*/
|
|
25
|
-
broadcast:
|
|
25
|
+
broadcast: Shared.Broadcast;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace BroadcastRetrieveResponse {
|
|
28
|
-
|
|
29
|
-
* X broadcast, a live video
|
|
30
|
-
*/
|
|
31
|
-
interface Broadcast {
|
|
32
|
-
/**
|
|
33
|
-
* Broadcast ID
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
/**
|
|
37
|
-
* Camera rotation in degrees
|
|
38
|
-
*/
|
|
39
|
-
cameraRotation?: number;
|
|
40
|
-
/**
|
|
41
|
-
* X's code for who may chat
|
|
42
|
-
*/
|
|
43
|
-
chatOption?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Public X profile.
|
|
46
|
-
*/
|
|
47
|
-
creator?: Shared.UserProfile;
|
|
48
|
-
/**
|
|
49
|
-
* When the broadcast ended
|
|
50
|
-
*/
|
|
51
|
-
endedAt?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Video height in pixels
|
|
54
|
-
*/
|
|
55
|
-
height?: number;
|
|
56
|
-
/**
|
|
57
|
-
* Whether X offers a recording of the broadcast
|
|
58
|
-
*/
|
|
59
|
-
isAvailableForReplay?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Whether the video stream runs in high-latency mode
|
|
62
|
-
*/
|
|
63
|
-
isHighLatency?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Whether X marks the chat private
|
|
66
|
-
*/
|
|
67
|
-
isPrivateChat?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the broadcaster edited the title of the replay
|
|
70
|
-
*/
|
|
71
|
-
isTitleEdited?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* When the video stream last reached X
|
|
74
|
-
*/
|
|
75
|
-
lastPingAt?: string;
|
|
76
|
-
/**
|
|
77
|
-
* X's media key for the video
|
|
78
|
-
*/
|
|
79
|
-
mediaKey?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Broadcaster, as X's live video service names the account
|
|
82
|
-
*/
|
|
83
|
-
periscopeUser?: Broadcast.PeriscopeUser;
|
|
84
|
-
/**
|
|
85
|
-
* Image X shows before the broadcast starts
|
|
86
|
-
*/
|
|
87
|
-
preLiveSlateUrl?: string;
|
|
88
|
-
/**
|
|
89
|
-
* When the broadcast was set to start
|
|
90
|
-
*/
|
|
91
|
-
scheduledStart?: string;
|
|
92
|
-
/**
|
|
93
|
-
* What produced the video stream, as X names it
|
|
94
|
-
*/
|
|
95
|
-
source?: string;
|
|
96
|
-
/**
|
|
97
|
-
* When the broadcast went live
|
|
98
|
-
*/
|
|
99
|
-
startedAt?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Such as NotStarted, Running or Ended, as X names it
|
|
102
|
-
*/
|
|
103
|
-
state?: string;
|
|
104
|
-
/**
|
|
105
|
-
* Broadcast title
|
|
106
|
-
*/
|
|
107
|
-
title?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Accounts that watched, live or after
|
|
110
|
-
*/
|
|
111
|
-
totalWatched?: number;
|
|
112
|
-
/**
|
|
113
|
-
* Accounts watching, as X counts them
|
|
114
|
-
*/
|
|
115
|
-
totalWatching?: number;
|
|
116
|
-
/**
|
|
117
|
-
* Search tweet with author. Zero metrics may mean X omitted counts.
|
|
118
|
-
*/
|
|
119
|
-
tweet?: Shared.SearchTweet;
|
|
120
|
-
/**
|
|
121
|
-
* ID of the post that announces the broadcast
|
|
122
|
-
*/
|
|
123
|
-
tweetId?: string;
|
|
124
|
-
/**
|
|
125
|
-
* X's revision number of the broadcast
|
|
126
|
-
*/
|
|
127
|
-
version?: number;
|
|
128
|
-
/**
|
|
129
|
-
* Video width in pixels
|
|
130
|
-
*/
|
|
131
|
-
width?: number;
|
|
132
|
-
}
|
|
28
|
+
type Broadcast = Shared.Broadcast;
|
|
133
29
|
namespace Broadcast {
|
|
134
|
-
|
|
135
|
-
* Broadcaster, as X's live video service names the account
|
|
136
|
-
*/
|
|
137
|
-
interface PeriscopeUser {
|
|
138
|
-
/**
|
|
139
|
-
* Live video account ID
|
|
140
|
-
*/
|
|
141
|
-
id?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Live video display name
|
|
144
|
-
*/
|
|
145
|
-
displayName?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Live video avatar URL
|
|
148
|
-
*/
|
|
149
|
-
profilePicture?: string;
|
|
150
|
-
/**
|
|
151
|
-
* The broadcaster's avatar at full size
|
|
152
|
-
*/
|
|
153
|
-
profilePictureOriginal?: string;
|
|
154
|
-
/**
|
|
155
|
-
* Live video username
|
|
156
|
-
*/
|
|
157
|
-
username?: string;
|
|
158
|
-
}
|
|
30
|
+
type PeriscopeUser = Shared.Broadcast.PeriscopeUser;
|
|
159
31
|
}
|
|
160
32
|
}
|
|
161
33
|
export interface BroadcastRetrieveParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"broadcasts.d.ts","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC,CAEvC;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"broadcasts.d.ts","sourceRoot":"","sources":["../../src/resources/x/broadcasts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC,CAEvC;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC;CAC7B;AAED,yBAAiB,yBAAyB,CAAC;IACzC,KAAY,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IAEzC,UAAiB,SAAS,CAAC;QACzB,KAAY,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC;KAC5D;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -89,6 +89,18 @@ export declare class Communities extends APIResource {
|
|
|
89
89
|
* ```
|
|
90
90
|
*/
|
|
91
91
|
listTopics(query?: CommunityListTopicsParams | null | undefined, options?: RequestOptions): APIPromise<CommunityListTopicsResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Returns community activity for X's latest period. Includes likes, new members,
|
|
94
|
+
* posts, replies & unique posters. Each metric has a count and a changePercent.
|
|
95
|
+
* Each request costs 1 credit.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const communityAnalytics =
|
|
100
|
+
* await client.x.communities.retrieveAnalytics('id');
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
retrieveAnalytics(id: string, query?: CommunityRetrieveAnalyticsParams | null | undefined, options?: RequestOptions): APIPromise<CommunityAnalytics>;
|
|
92
104
|
/**
|
|
93
105
|
* Returns one community's public identity, rules, join question, search tags,
|
|
94
106
|
* membership counts, and the profiles of its creator, admin and previewed members.
|
|
@@ -149,6 +161,69 @@ export declare class Communities extends APIResource {
|
|
|
149
161
|
*/
|
|
150
162
|
searchMembers(id: string, query: CommunitySearchMembersParams, options?: RequestOptions): APIPromise<Shared.PaginatedUsers>;
|
|
151
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Community activity & growth for X's latest period.
|
|
166
|
+
*/
|
|
167
|
+
export interface CommunityAnalytics {
|
|
168
|
+
/**
|
|
169
|
+
* The community ID from your request.
|
|
170
|
+
*/
|
|
171
|
+
id: string;
|
|
172
|
+
/**
|
|
173
|
+
* The period's activity, each metric with its count and changePercent. likes
|
|
174
|
+
* counts likes on community posts and newMembers the accounts that joined. posts
|
|
175
|
+
* counts the community posts and replies the replies to them. uniquePosters counts
|
|
176
|
+
* the distinct accounts that posted.
|
|
177
|
+
*/
|
|
178
|
+
metrics: CommunityAnalytics.Metrics;
|
|
179
|
+
/**
|
|
180
|
+
* The end of X's latest period, in UTC.
|
|
181
|
+
*/
|
|
182
|
+
periodEndsAt: string;
|
|
183
|
+
}
|
|
184
|
+
export declare namespace CommunityAnalytics {
|
|
185
|
+
/**
|
|
186
|
+
* The period's activity, each metric with its count and changePercent. likes
|
|
187
|
+
* counts likes on community posts and newMembers the accounts that joined. posts
|
|
188
|
+
* counts the community posts and replies the replies to them. uniquePosters counts
|
|
189
|
+
* the distinct accounts that posted.
|
|
190
|
+
*/
|
|
191
|
+
interface Metrics {
|
|
192
|
+
/**
|
|
193
|
+
* A community metric for X's latest period & its percent change.
|
|
194
|
+
*/
|
|
195
|
+
likes: CommunityAnalyticsMetric;
|
|
196
|
+
/**
|
|
197
|
+
* A community metric for X's latest period & its percent change.
|
|
198
|
+
*/
|
|
199
|
+
newMembers: CommunityAnalyticsMetric;
|
|
200
|
+
/**
|
|
201
|
+
* A community metric for X's latest period & its percent change.
|
|
202
|
+
*/
|
|
203
|
+
posts: CommunityAnalyticsMetric;
|
|
204
|
+
/**
|
|
205
|
+
* A community metric for X's latest period & its percent change.
|
|
206
|
+
*/
|
|
207
|
+
replies: CommunityAnalyticsMetric;
|
|
208
|
+
/**
|
|
209
|
+
* A community metric for X's latest period & its percent change.
|
|
210
|
+
*/
|
|
211
|
+
uniquePosters: CommunityAnalyticsMetric;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* A community metric for X's latest period & its percent change.
|
|
216
|
+
*/
|
|
217
|
+
export interface CommunityAnalyticsMetric {
|
|
218
|
+
/**
|
|
219
|
+
* Change in percent from the same figure 1 day earlier. Values stay unrounded.
|
|
220
|
+
*/
|
|
221
|
+
changePercent: number;
|
|
222
|
+
/**
|
|
223
|
+
* Total for this metric during X's latest period.
|
|
224
|
+
*/
|
|
225
|
+
count: number;
|
|
226
|
+
}
|
|
152
227
|
/**
|
|
153
228
|
* Durable write record. Poll statusUrl until terminal is true. Reusing its
|
|
154
229
|
* Idempotency-Key returns this record. Create another action only when safeToRetry
|
|
@@ -689,6 +764,22 @@ export interface CommunityListTopicsParams {
|
|
|
689
764
|
*/
|
|
690
765
|
omit?: string;
|
|
691
766
|
}
|
|
767
|
+
export interface CommunityRetrieveAnalyticsParams {
|
|
768
|
+
/**
|
|
769
|
+
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
770
|
+
* author.username. A list keeps the field in each item. Case & underscores do not
|
|
771
|
+
* matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
772
|
+
* always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
773
|
+
* before any read. The price stays the same. SDK row types then hold only the
|
|
774
|
+
* named fields.
|
|
775
|
+
*/
|
|
776
|
+
fields?: string;
|
|
777
|
+
/**
|
|
778
|
+
* Fields to drop from each row, comma-separated. It takes the same names as
|
|
779
|
+
* fields. With fields, it drops from the kept fields.
|
|
780
|
+
*/
|
|
781
|
+
omit?: string;
|
|
782
|
+
}
|
|
692
783
|
export interface CommunityRetrieveInfoParams {
|
|
693
784
|
/**
|
|
694
785
|
* Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
@@ -1181,7 +1272,7 @@ export interface CommunitySearchMembersParams {
|
|
|
1181
1272
|
verifiedType?: string;
|
|
1182
1273
|
}
|
|
1183
1274
|
export declare namespace Communities {
|
|
1184
|
-
export { type CommunityCreateResponse as CommunityCreateResponse, type CommunityDeleteResponse as CommunityDeleteResponse, type CommunityListSuggestedResponse as CommunityListSuggestedResponse, type CommunityListTopicsResponse as CommunityListTopicsResponse, type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse, type CommunityCreateParams as CommunityCreateParams, type CommunityDeleteParams as CommunityDeleteParams, type CommunityFindParams as CommunityFindParams, type CommunityListPopularParams as CommunityListPopularParams, type CommunityListSuggestedParams as CommunityListSuggestedParams, type CommunityListTopicsParams as CommunityListTopicsParams, type CommunityRetrieveInfoParams as CommunityRetrieveInfoParams, type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams, type CommunitySearchMembersParams as CommunitySearchMembersParams, };
|
|
1275
|
+
export { type CommunityAnalytics as CommunityAnalytics, type CommunityAnalyticsMetric as CommunityAnalyticsMetric, type CommunityCreateResponse as CommunityCreateResponse, type CommunityDeleteResponse as CommunityDeleteResponse, type CommunityListSuggestedResponse as CommunityListSuggestedResponse, type CommunityListTopicsResponse as CommunityListTopicsResponse, type CommunityRetrieveInfoResponse as CommunityRetrieveInfoResponse, type CommunityCreateParams as CommunityCreateParams, type CommunityDeleteParams as CommunityDeleteParams, type CommunityFindParams as CommunityFindParams, type CommunityListPopularParams as CommunityListPopularParams, type CommunityListSuggestedParams as CommunityListSuggestedParams, type CommunityListTopicsParams as CommunityListTopicsParams, type CommunityRetrieveAnalyticsParams as CommunityRetrieveAnalyticsParams, type CommunityRetrieveInfoParams as CommunityRetrieveInfoParams, type CommunityRetrieveMembersParams as CommunityRetrieveMembersParams, type CommunityRetrieveModeratorsParams as CommunityRetrieveModeratorsParams, type CommunityRetrieveSearchParams as CommunityRetrieveSearchParams, type CommunitySearchMembersParams as CommunitySearchMembersParams, };
|
|
1185
1276
|
export { Join as Join, type JoinCreateResponse as JoinCreateResponse, type JoinDeleteAllResponse as JoinDeleteAllResponse, type JoinCreateParams as JoinCreateParams, type JoinDeleteAllParams as JoinDeleteAllParams, };
|
|
1186
1277
|
export { Tweets as Tweets, type TweetListParams as TweetListParams, type TweetListByCommunityParams as TweetListByCommunityParams, };
|
|
1187
1278
|
export { Media as Media, type MediaListParams as MediaListParams };
|