x-twitter-scraper 0.15.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 +63 -5
- package/README.md +1 -0
- package/client.d.mts +12 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -4
- 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/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/account.d.mts +5 -0
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +5 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/compose.d.mts +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/drafts.d.mts +13 -3
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +13 -3
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.js +1 -1
- package/resources/drafts.mjs +1 -1
- package/resources/events.d.mts +100 -29
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +100 -29
- 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 +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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 +15 -65
- package/resources/monitors/keywords.d.mts.map +1 -1
- package/resources/monitors/keywords.d.ts +15 -65
- package/resources/monitors/keywords.d.ts.map +1 -1
- package/resources/monitors/monitors.d.mts +12 -5
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +12 -5
- 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 +671 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +671 -7
- 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 +26 -25
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +26 -25
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/webhooks.d.mts +10 -4
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +10 -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 -127
- package/resources/x/broadcasts.d.mts.map +1 -1
- package/resources/x/broadcasts.d.ts +3 -127
- 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 -283
- package/resources/x/jobs.d.mts.map +1 -1
- package/resources/x/jobs.d.ts +144 -283
- 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 +27 -425
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +27 -425
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/media.d.mts +13 -2
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +13 -2
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +13 -4
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +13 -4
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/spaces.d.mts +213 -669
- package/resources/x/spaces.d.mts.map +1 -1
- package/resources/x/spaces.d.ts +213 -669
- 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 +32 -24
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +32 -24
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/users.d.mts +62 -614
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +62 -614
- 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 +63 -118
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +63 -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 +12 -0
- package/src/internal/detect-platform.ts +2 -2
- package/src/internal/uploads.ts +1 -1
- package/src/resources/account.ts +6 -0
- package/src/resources/compose.ts +1 -1
- package/src/resources/drafts.ts +14 -2
- package/src/resources/events.ts +137 -29
- package/src/resources/index.ts +2 -0
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +15 -79
- package/src/resources/monitors/monitors.ts +52 -3
- package/src/resources/monitors/posts.ts +463 -0
- package/src/resources/shared.ts +897 -215
- package/src/resources/support/index.ts +1 -0
- package/src/resources/support/support.ts +2 -0
- package/src/resources/support/tickets.ts +29 -25
- package/src/resources/webhooks.ts +11 -4
- package/src/resources/x/accounts.ts +19 -4
- package/src/resources/x/broadcasts.ts +3 -154
- 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 -324
- package/src/resources/x/lists.ts +27 -499
- package/src/resources/x/media.ts +15 -2
- package/src/resources/x/profile.ts +15 -4
- package/src/resources/x/spaces.ts +227 -787
- package/src/resources/x/sports.ts +1675 -0
- package/src/resources/x/tweets/tweets.ts +41 -26
- package/src/resources/x/users/users.ts +62 -721
- package/src/resources/x/x.ts +185 -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
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
//
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Monitors = exports.Keywords = void 0;
|
|
6
|
+
exports.Posts = exports.Monitors = exports.Keywords = void 0;
|
|
7
7
|
var keywords_1 = require("./keywords.js");
|
|
8
8
|
Object.defineProperty(exports, "Keywords", { enumerable: true, get: function () { return keywords_1.Keywords; } });
|
|
9
9
|
var monitors_1 = require("./monitors.js");
|
|
10
10
|
Object.defineProperty(exports, "Monitors", { enumerable: true, get: function () { return monitors_1.Monitors; } });
|
|
11
|
+
var posts_1 = require("./posts.js");
|
|
12
|
+
Object.defineProperty(exports, "Posts", { enumerable: true, get: function () { return posts_1.Posts; } });
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;AAEtC,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,oCAmBiB;AAlBf,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/monitors/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EACL,QAAQ,GAUT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAQT,uBAAmB;AACpB,OAAO,EACL,KAAK,GAkBN,oBAAgB"}
|
|
@@ -20,7 +20,7 @@ export declare class Keywords extends APIResource {
|
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
create(body: KeywordCreateParams, options?: RequestOptions): APIPromise<
|
|
23
|
+
create(body: KeywordCreateParams, options?: RequestOptions): APIPromise<KeywordMonitor>;
|
|
24
24
|
/**
|
|
25
25
|
* Returns configuration and status for one keyword monitor.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export declare class Keywords extends APIResource {
|
|
|
31
31
|
* );
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
34
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<KeywordMonitor>;
|
|
35
35
|
/**
|
|
36
36
|
* Updates mutable settings for an existing keyword monitor.
|
|
37
37
|
*
|
|
@@ -47,7 +47,7 @@ export declare class Keywords extends APIResource {
|
|
|
47
47
|
* );
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
update(id: string, body: KeywordUpdateParams, options?: RequestOptions): APIPromise<
|
|
50
|
+
update(id: string, body: KeywordUpdateParams, options?: RequestOptions): APIPromise<KeywordMonitor>;
|
|
51
51
|
/**
|
|
52
52
|
* Returns keyword monitors with their current operating states.
|
|
53
53
|
*
|
|
@@ -73,7 +73,7 @@ export declare class Keywords extends APIResource {
|
|
|
73
73
|
/**
|
|
74
74
|
* Keyword monitor that tracks matching public X activity.
|
|
75
75
|
*/
|
|
76
|
-
export interface
|
|
76
|
+
export interface KeywordMonitor {
|
|
77
77
|
id: string;
|
|
78
78
|
createdAt: string;
|
|
79
79
|
/**
|
|
@@ -90,52 +90,22 @@ export interface KeywordCreateResponse {
|
|
|
90
90
|
* Customer-set label of the keyword monitor, when set.
|
|
91
91
|
*/
|
|
92
92
|
name?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Keyword monitor that tracks matching public X activity.
|
|
96
|
-
*/
|
|
97
|
-
export interface KeywordRetrieveResponse {
|
|
98
|
-
id: string;
|
|
99
|
-
createdAt: string;
|
|
100
93
|
/**
|
|
101
|
-
*
|
|
94
|
+
* When Xquik paused this keyword monitor.
|
|
102
95
|
*/
|
|
103
|
-
|
|
104
|
-
isActive: boolean;
|
|
96
|
+
pausedAt?: string;
|
|
105
97
|
/**
|
|
106
|
-
*
|
|
98
|
+
* Why Xquik paused this keyword monitor. The balance could not pay an hour, so add
|
|
99
|
+
* credits & resume. Absent when the monitor is active or you paused it yourself.
|
|
107
100
|
*/
|
|
108
|
-
|
|
109
|
-
query: string;
|
|
110
|
-
/**
|
|
111
|
-
* Customer-set label of the keyword monitor, when set.
|
|
112
|
-
*/
|
|
113
|
-
name?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Keyword monitor that tracks matching public X activity.
|
|
117
|
-
*/
|
|
118
|
-
export interface KeywordUpdateResponse {
|
|
119
|
-
id: string;
|
|
120
|
-
createdAt: string;
|
|
121
|
-
/**
|
|
122
|
-
* Array of event types to subscribe to.
|
|
123
|
-
*/
|
|
124
|
-
eventTypes: Array<Shared.EventType>;
|
|
125
|
-
isActive: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Next hourly credit charge time for this keyword query monitor.
|
|
128
|
-
*/
|
|
129
|
-
nextBillingAt: string;
|
|
130
|
-
query: string;
|
|
131
|
-
/**
|
|
132
|
-
* Customer-set label of the keyword monitor, when set.
|
|
133
|
-
*/
|
|
134
|
-
name?: string;
|
|
101
|
+
pausedReason?: 'insufficient_credits';
|
|
135
102
|
}
|
|
103
|
+
export type KeywordCreateResponse = KeywordMonitor;
|
|
104
|
+
export type KeywordRetrieveResponse = KeywordMonitor;
|
|
105
|
+
export type KeywordUpdateResponse = KeywordMonitor;
|
|
136
106
|
export interface KeywordListResponse {
|
|
137
107
|
hasMore: boolean;
|
|
138
|
-
monitors: Array<
|
|
108
|
+
monitors: Array<KeywordMonitor>;
|
|
139
109
|
/**
|
|
140
110
|
* Keyword monitors on this page.
|
|
141
111
|
*/
|
|
@@ -143,27 +113,7 @@ export interface KeywordListResponse {
|
|
|
143
113
|
nextCursor?: string;
|
|
144
114
|
}
|
|
145
115
|
export declare namespace KeywordListResponse {
|
|
146
|
-
|
|
147
|
-
* Keyword monitor that tracks matching public X activity.
|
|
148
|
-
*/
|
|
149
|
-
interface Monitor {
|
|
150
|
-
id: string;
|
|
151
|
-
createdAt: string;
|
|
152
|
-
/**
|
|
153
|
-
* Array of event types to subscribe to.
|
|
154
|
-
*/
|
|
155
|
-
eventTypes: Array<Shared.EventType>;
|
|
156
|
-
isActive: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Next hourly credit charge time for this keyword query monitor.
|
|
159
|
-
*/
|
|
160
|
-
nextBillingAt: string;
|
|
161
|
-
query: string;
|
|
162
|
-
/**
|
|
163
|
-
* Customer-set label of the keyword monitor, when set.
|
|
164
|
-
*/
|
|
165
|
-
name?: string;
|
|
166
|
-
}
|
|
116
|
+
type Monitor = KeywordMonitor;
|
|
167
117
|
}
|
|
168
118
|
export interface KeywordDeactivateResponse {
|
|
169
119
|
deletionStatus: 'deleting';
|
|
@@ -211,6 +161,6 @@ export interface KeywordListParams {
|
|
|
211
161
|
limit?: number;
|
|
212
162
|
}
|
|
213
163
|
export declare namespace Keywords {
|
|
214
|
-
export { type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
164
|
+
export { type KeywordMonitor as KeywordMonitor, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
215
165
|
}
|
|
216
166
|
//# sourceMappingURL=keywords.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keywords.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/keywords.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"keywords.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/keywords.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAEtF;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc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IACnC,KAAY,OAAO,GAAG,cAAc,CAAC;CACtC;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,UAAU,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -20,7 +20,7 @@ export declare class Keywords extends APIResource {
|
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
create(body: KeywordCreateParams, options?: RequestOptions): APIPromise<
|
|
23
|
+
create(body: KeywordCreateParams, options?: RequestOptions): APIPromise<KeywordMonitor>;
|
|
24
24
|
/**
|
|
25
25
|
* Returns configuration and status for one keyword monitor.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export declare class Keywords extends APIResource {
|
|
|
31
31
|
* );
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
34
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<KeywordMonitor>;
|
|
35
35
|
/**
|
|
36
36
|
* Updates mutable settings for an existing keyword monitor.
|
|
37
37
|
*
|
|
@@ -47,7 +47,7 @@ export declare class Keywords extends APIResource {
|
|
|
47
47
|
* );
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
update(id: string, body: KeywordUpdateParams, options?: RequestOptions): APIPromise<
|
|
50
|
+
update(id: string, body: KeywordUpdateParams, options?: RequestOptions): APIPromise<KeywordMonitor>;
|
|
51
51
|
/**
|
|
52
52
|
* Returns keyword monitors with their current operating states.
|
|
53
53
|
*
|
|
@@ -73,7 +73,7 @@ export declare class Keywords extends APIResource {
|
|
|
73
73
|
/**
|
|
74
74
|
* Keyword monitor that tracks matching public X activity.
|
|
75
75
|
*/
|
|
76
|
-
export interface
|
|
76
|
+
export interface KeywordMonitor {
|
|
77
77
|
id: string;
|
|
78
78
|
createdAt: string;
|
|
79
79
|
/**
|
|
@@ -90,52 +90,22 @@ export interface KeywordCreateResponse {
|
|
|
90
90
|
* Customer-set label of the keyword monitor, when set.
|
|
91
91
|
*/
|
|
92
92
|
name?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Keyword monitor that tracks matching public X activity.
|
|
96
|
-
*/
|
|
97
|
-
export interface KeywordRetrieveResponse {
|
|
98
|
-
id: string;
|
|
99
|
-
createdAt: string;
|
|
100
93
|
/**
|
|
101
|
-
*
|
|
94
|
+
* When Xquik paused this keyword monitor.
|
|
102
95
|
*/
|
|
103
|
-
|
|
104
|
-
isActive: boolean;
|
|
96
|
+
pausedAt?: string;
|
|
105
97
|
/**
|
|
106
|
-
*
|
|
98
|
+
* Why Xquik paused this keyword monitor. The balance could not pay an hour, so add
|
|
99
|
+
* credits & resume. Absent when the monitor is active or you paused it yourself.
|
|
107
100
|
*/
|
|
108
|
-
|
|
109
|
-
query: string;
|
|
110
|
-
/**
|
|
111
|
-
* Customer-set label of the keyword monitor, when set.
|
|
112
|
-
*/
|
|
113
|
-
name?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Keyword monitor that tracks matching public X activity.
|
|
117
|
-
*/
|
|
118
|
-
export interface KeywordUpdateResponse {
|
|
119
|
-
id: string;
|
|
120
|
-
createdAt: string;
|
|
121
|
-
/**
|
|
122
|
-
* Array of event types to subscribe to.
|
|
123
|
-
*/
|
|
124
|
-
eventTypes: Array<Shared.EventType>;
|
|
125
|
-
isActive: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Next hourly credit charge time for this keyword query monitor.
|
|
128
|
-
*/
|
|
129
|
-
nextBillingAt: string;
|
|
130
|
-
query: string;
|
|
131
|
-
/**
|
|
132
|
-
* Customer-set label of the keyword monitor, when set.
|
|
133
|
-
*/
|
|
134
|
-
name?: string;
|
|
101
|
+
pausedReason?: 'insufficient_credits';
|
|
135
102
|
}
|
|
103
|
+
export type KeywordCreateResponse = KeywordMonitor;
|
|
104
|
+
export type KeywordRetrieveResponse = KeywordMonitor;
|
|
105
|
+
export type KeywordUpdateResponse = KeywordMonitor;
|
|
136
106
|
export interface KeywordListResponse {
|
|
137
107
|
hasMore: boolean;
|
|
138
|
-
monitors: Array<
|
|
108
|
+
monitors: Array<KeywordMonitor>;
|
|
139
109
|
/**
|
|
140
110
|
* Keyword monitors on this page.
|
|
141
111
|
*/
|
|
@@ -143,27 +113,7 @@ export interface KeywordListResponse {
|
|
|
143
113
|
nextCursor?: string;
|
|
144
114
|
}
|
|
145
115
|
export declare namespace KeywordListResponse {
|
|
146
|
-
|
|
147
|
-
* Keyword monitor that tracks matching public X activity.
|
|
148
|
-
*/
|
|
149
|
-
interface Monitor {
|
|
150
|
-
id: string;
|
|
151
|
-
createdAt: string;
|
|
152
|
-
/**
|
|
153
|
-
* Array of event types to subscribe to.
|
|
154
|
-
*/
|
|
155
|
-
eventTypes: Array<Shared.EventType>;
|
|
156
|
-
isActive: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Next hourly credit charge time for this keyword query monitor.
|
|
159
|
-
*/
|
|
160
|
-
nextBillingAt: string;
|
|
161
|
-
query: string;
|
|
162
|
-
/**
|
|
163
|
-
* Customer-set label of the keyword monitor, when set.
|
|
164
|
-
*/
|
|
165
|
-
name?: string;
|
|
166
|
-
}
|
|
116
|
+
type Monitor = KeywordMonitor;
|
|
167
117
|
}
|
|
168
118
|
export interface KeywordDeactivateResponse {
|
|
169
119
|
deletionStatus: 'deleting';
|
|
@@ -211,6 +161,6 @@ export interface KeywordListParams {
|
|
|
211
161
|
limit?: number;
|
|
212
162
|
}
|
|
213
163
|
export declare namespace Keywords {
|
|
214
|
-
export { type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
164
|
+
export { type KeywordMonitor as KeywordMonitor, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
215
165
|
}
|
|
216
166
|
//# sourceMappingURL=keywords.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/keywords.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/keywords.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,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAEtF;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAEzE;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAElG;IAED;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,C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CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
|
+
import * as PostsAPI from "./posts.mjs";
|
|
4
|
+
import { PostCreateParams, PostDeleteResponse, PostEventType, PostListParams, MonitorPostDeleted, MonitorPostEdit, MonitorPostMetricChange, PostListResponse, PostMetricPoint, PostMetricReading, PostMetrics, PostMonitor, PostMonitorMetrics, PostMonitorMetricsBucket, PostMonitorMetricsBucketMetrics, PostRetrieveMetricsParams, PostUpdateParams, Posts } from "./posts.mjs";
|
|
3
5
|
import * as KeywordsAPI from "./keywords.mjs";
|
|
4
|
-
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListParams, KeywordListResponse, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.mjs";
|
|
6
|
+
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListParams, KeywordListResponse, KeywordMonitor, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.mjs";
|
|
5
7
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
8
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
9
|
/**
|
|
@@ -9,6 +11,7 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
9
11
|
*/
|
|
10
12
|
export declare class Monitors extends APIResource {
|
|
11
13
|
keywords: KeywordsAPI.Keywords;
|
|
14
|
+
posts: PostsAPI.Posts;
|
|
12
15
|
/**
|
|
13
16
|
* Creates an account monitor, with no count limit. Active monitors check every
|
|
14
17
|
* second for 30 credits an hour, events & webhook deliveries included. That hourly
|
|
@@ -88,13 +91,16 @@ export interface Monitor {
|
|
|
88
91
|
*/
|
|
89
92
|
name?: string;
|
|
90
93
|
/**
|
|
91
|
-
* When Xquik
|
|
94
|
+
* When Xquik paused this account monitor.
|
|
92
95
|
*/
|
|
93
96
|
pausedAt?: string;
|
|
94
97
|
/**
|
|
95
|
-
* Why Xquik
|
|
98
|
+
* Why Xquik paused this account monitor. `insufficient_credits` means the balance
|
|
99
|
+
* could not pay an hour, so add credits & resume. The other 2 mean X stopped
|
|
100
|
+
* showing the account. Absent when the monitor is active or you paused it
|
|
101
|
+
* yourself.
|
|
96
102
|
*/
|
|
97
|
-
pausedReason?: 'x_account_protected' | 'x_user_not_found';
|
|
103
|
+
pausedReason?: 'insufficient_credits' | 'x_account_protected' | 'x_user_not_found';
|
|
98
104
|
}
|
|
99
105
|
export interface MonitorCreateResponse {
|
|
100
106
|
id: string;
|
|
@@ -168,6 +174,7 @@ export interface MonitorListParams {
|
|
|
168
174
|
}
|
|
169
175
|
export declare namespace Monitors {
|
|
170
176
|
export { type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, type MonitorListParams as MonitorListParams, };
|
|
171
|
-
export { Keywords as Keywords, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
177
|
+
export { Keywords as Keywords, type KeywordMonitor as KeywordMonitor, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
178
|
+
export { Posts as Posts, type PostEventType as PostEventType, type PostMetricReading as PostMetricReading, type PostMetrics as PostMetrics, type PostMonitor as PostMonitor, type PostMetricPoint as PostMetricPoint, type PostMonitorMetricsBucketMetrics as PostMonitorMetricsBucketMetrics, type PostMonitorMetricsBucket as PostMonitorMetricsBucket, type PostMonitorMetrics as PostMonitorMetrics, type MonitorPostMetricChange as MonitorPostMetricChange, type MonitorPostEdit as MonitorPostEdit, type MonitorPostDeleted as MonitorPostDeleted, type PostListResponse as PostListResponse, type PostDeleteResponse as PostDeleteResponse, type PostCreateParams as PostCreateParams, type PostUpdateParams as PostUpdateParams, type PostListParams as PostListParams, type PostRetrieveMetricsParams as PostRetrieveMetricsParams, };
|
|
172
179
|
}
|
|
173
180
|
//# sourceMappingURL=monitors.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,uBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;
|
|
1
|
+
{"version":3,"file":"monitors.d.mts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,wBAAwB,EACxB,+BAA+B,EAC/B,yBAAyB,EACzB,gBAAgB,EAChB,KAAK,EACN,oBAAgB;AACjB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,uBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAA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AgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
|
+
import * as PostsAPI from "./posts.js";
|
|
4
|
+
import { PostCreateParams, PostDeleteResponse, PostEventType, PostListParams, MonitorPostDeleted, MonitorPostEdit, MonitorPostMetricChange, PostListResponse, PostMetricPoint, PostMetricReading, PostMetrics, PostMonitor, PostMonitorMetrics, PostMonitorMetricsBucket, PostMonitorMetricsBucketMetrics, PostRetrieveMetricsParams, PostUpdateParams, Posts } from "./posts.js";
|
|
3
5
|
import * as KeywordsAPI from "./keywords.js";
|
|
4
|
-
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListParams, KeywordListResponse, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.js";
|
|
6
|
+
import { KeywordCreateParams, KeywordCreateResponse, KeywordDeactivateResponse, KeywordListParams, KeywordListResponse, KeywordMonitor, KeywordRetrieveResponse, KeywordUpdateParams, KeywordUpdateResponse, Keywords } from "./keywords.js";
|
|
5
7
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
8
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
9
|
/**
|
|
@@ -9,6 +11,7 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
9
11
|
*/
|
|
10
12
|
export declare class Monitors extends APIResource {
|
|
11
13
|
keywords: KeywordsAPI.Keywords;
|
|
14
|
+
posts: PostsAPI.Posts;
|
|
12
15
|
/**
|
|
13
16
|
* Creates an account monitor, with no count limit. Active monitors check every
|
|
14
17
|
* second for 30 credits an hour, events & webhook deliveries included. That hourly
|
|
@@ -88,13 +91,16 @@ export interface Monitor {
|
|
|
88
91
|
*/
|
|
89
92
|
name?: string;
|
|
90
93
|
/**
|
|
91
|
-
* When Xquik
|
|
94
|
+
* When Xquik paused this account monitor.
|
|
92
95
|
*/
|
|
93
96
|
pausedAt?: string;
|
|
94
97
|
/**
|
|
95
|
-
* Why Xquik
|
|
98
|
+
* Why Xquik paused this account monitor. `insufficient_credits` means the balance
|
|
99
|
+
* could not pay an hour, so add credits & resume. The other 2 mean X stopped
|
|
100
|
+
* showing the account. Absent when the monitor is active or you paused it
|
|
101
|
+
* yourself.
|
|
96
102
|
*/
|
|
97
|
-
pausedReason?: 'x_account_protected' | 'x_user_not_found';
|
|
103
|
+
pausedReason?: 'insufficient_credits' | 'x_account_protected' | 'x_user_not_found';
|
|
98
104
|
}
|
|
99
105
|
export interface MonitorCreateResponse {
|
|
100
106
|
id: string;
|
|
@@ -168,6 +174,7 @@ export interface MonitorListParams {
|
|
|
168
174
|
}
|
|
169
175
|
export declare namespace Monitors {
|
|
170
176
|
export { type Monitor as Monitor, type MonitorCreateResponse as MonitorCreateResponse, type MonitorListResponse as MonitorListResponse, type MonitorDeactivateResponse as MonitorDeactivateResponse, type MonitorCreateParams as MonitorCreateParams, type MonitorUpdateParams as MonitorUpdateParams, type MonitorListParams as MonitorListParams, };
|
|
171
|
-
export { Keywords as Keywords, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
177
|
+
export { Keywords as Keywords, type KeywordMonitor as KeywordMonitor, type KeywordCreateResponse as KeywordCreateResponse, type KeywordRetrieveResponse as KeywordRetrieveResponse, type KeywordUpdateResponse as KeywordUpdateResponse, type KeywordListResponse as KeywordListResponse, type KeywordDeactivateResponse as KeywordDeactivateResponse, type KeywordCreateParams as KeywordCreateParams, type KeywordUpdateParams as KeywordUpdateParams, type KeywordListParams as KeywordListParams, };
|
|
178
|
+
export { Posts as Posts, type PostEventType as PostEventType, type PostMetricReading as PostMetricReading, type PostMetrics as PostMetrics, type PostMonitor as PostMonitor, type PostMetricPoint as PostMetricPoint, type PostMonitorMetricsBucketMetrics as PostMonitorMetricsBucketMetrics, type PostMonitorMetricsBucket as PostMonitorMetricsBucket, type PostMonitorMetrics as PostMonitorMetrics, type MonitorPostMetricChange as MonitorPostMetricChange, type MonitorPostEdit as MonitorPostEdit, type MonitorPostDeleted as MonitorPostDeleted, type PostListResponse as PostListResponse, type PostDeleteResponse as PostDeleteResponse, type PostCreateParams as PostCreateParams, type PostUpdateParams as PostUpdateParams, type PostListParams as PostListParams, type PostRetrieveMetricsParams as PostRetrieveMetricsParams, };
|
|
172
179
|
}
|
|
173
180
|
//# sourceMappingURL=monitors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,sBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;
|
|
1
|
+
{"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,Q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CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Monitors = void 0;
|
|
7
7
|
const tslib_1 = require("../../internal/tslib.js");
|
|
8
8
|
const resource_1 = require("../../core/resource.js");
|
|
9
|
+
const PostsAPI = tslib_1.__importStar(require("./posts.js"));
|
|
10
|
+
const posts_1 = require("./posts.js");
|
|
9
11
|
const KeywordsAPI = tslib_1.__importStar(require("./keywords.js"));
|
|
10
12
|
const keywords_1 = require("./keywords.js");
|
|
11
13
|
const path_1 = require("../../internal/utils/path.js");
|
|
@@ -16,6 +18,7 @@ class Monitors extends resource_1.APIResource {
|
|
|
16
18
|
constructor() {
|
|
17
19
|
super(...arguments);
|
|
18
20
|
this.keywords = new KeywordsAPI.Keywords(this._client);
|
|
21
|
+
this.posts = new PostsAPI.Posts(this._client);
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
24
|
* Creates an account monitor, with no count limit. Active monitors check every
|
|
@@ -86,4 +89,5 @@ class Monitors extends resource_1.APIResource {
|
|
|
86
89
|
}
|
|
87
90
|
exports.Monitors = Monitors;
|
|
88
91
|
Monitors.Keywords = keywords_1.Keywords;
|
|
92
|
+
Monitors.Posts = posts_1.Posts;
|
|
89
93
|
//# sourceMappingURL=monitors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.js","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;;AAEtC,qDAAkD;AAElD,MAAY,WAAW,kDAAmB;AAC1C,
|
|
1
|
+
{"version":3,"file":"monitors.js","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":";AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;;;;AAEtC,qDAAkD;AAElD,MAAY,QAAQ,+CAAgB;AACpC,sCAmBiB;AACjB,MAAY,WAAW,kDAAmB;AAC1C,4CAWoB;AAGpB,uDAAiD;AAEjD;;GAEG;AACH,cAAsB,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2E3D,CAAC;IAzEC;;;;;;;;;;;;;OAaG;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;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,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;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;;AAyID,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
import { APIResource } from "../../core/resource.mjs";
|
|
5
|
+
import * as PostsAPI from "./posts.mjs";
|
|
6
|
+
import { Posts, } from "./posts.mjs";
|
|
5
7
|
import * as KeywordsAPI from "./keywords.mjs";
|
|
6
8
|
import { Keywords, } from "./keywords.mjs";
|
|
7
9
|
import { path } from "../../internal/utils/path.mjs";
|
|
@@ -12,6 +14,7 @@ export class Monitors extends APIResource {
|
|
|
12
14
|
constructor() {
|
|
13
15
|
super(...arguments);
|
|
14
16
|
this.keywords = new KeywordsAPI.Keywords(this._client);
|
|
17
|
+
this.posts = new PostsAPI.Posts(this._client);
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* Creates an account monitor, with no count limit. Active monitors check every
|
|
@@ -81,4 +84,5 @@ export class Monitors extends APIResource {
|
|
|
81
84
|
}
|
|
82
85
|
}
|
|
83
86
|
Monitors.Keywords = Keywords;
|
|
87
|
+
Monitors.Posts = Posts;
|
|
84
88
|
//# sourceMappingURL=monitors.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitors.mjs","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"monitors.mjs","sourceRoot":"","sources":["../../src/resources/monitors/monitors.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,sCAAsC;AAEtC,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAkBL,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAUL,QAAQ,GACT,uBAAmB;AAGpB,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2E3D,CAAC;IAzEC;;;;;;;;;;;;;OAaG;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;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IA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