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