@corsair-dev/xquik 0.1.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/LICENSE +191 -0
- package/dist/api.test.d.ts +2 -0
- package/dist/api.test.d.ts.map +1 -0
- package/dist/client.d.ts +22 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/endpoints/helpers.d.ts +8 -0
- package/dist/endpoints/helpers.d.ts.map +1 -0
- package/dist/endpoints/index.d.ts +9 -0
- package/dist/endpoints/index.d.ts.map +1 -0
- package/dist/endpoints/media.d.ts +4 -0
- package/dist/endpoints/media.d.ts.map +1 -0
- package/dist/endpoints/trends.d.ts +3 -0
- package/dist/endpoints/trends.d.ts.map +1 -0
- package/dist/endpoints/tweets.d.ts +10 -0
- package/dist/endpoints/tweets.d.ts.map +1 -0
- package/dist/endpoints/types.d.ts +1293 -0
- package/dist/endpoints/types.d.ts.map +1 -0
- package/dist/endpoints/users.d.ts +10 -0
- package/dist/endpoints/users.d.ts.map +1 -0
- package/dist/endpoints/webhooks.d.ts +8 -0
- package/dist/endpoints/webhooks.d.ts.map +1 -0
- package/dist/endpoints/write-actions.d.ts +3 -0
- package/dist/endpoints/write-actions.d.ts.map +1 -0
- package/dist/error-handlers.d.ts +47 -0
- package/dist/error-handlers.d.ts.map +1 -0
- package/dist/index.d.ts +805 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/schema/database.d.ts +125 -0
- package/dist/schema/database.d.ts.map +1 -0
- package/dist/schema/index.d.ts +130 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/tsup.config.d.ts +3 -0
- package/dist/tsup.config.d.ts.map +1 -0
- package/dist/webhooks/events.d.ts +4 -0
- package/dist/webhooks/events.d.ts.map +1 -0
- package/dist/webhooks/index.d.ts +56 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/types.d.ts +15 -0
- package/dist/webhooks/types.d.ts.map +1 -0
- package/package.json +46 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,805 @@
|
|
|
1
|
+
import type { AuthTypes, BindEndpoints, BindWebhooks, CorsairEndpoint, CorsairErrorHandler, CorsairPlugin, CorsairPluginContext, CorsairWebhook, KeyBuilderContext, PickAuth, PluginPermissionsConfig } from 'corsair/core';
|
|
2
|
+
import type { XquikEndpointInputs, XquikEndpointOutputs } from './endpoints/types';
|
|
3
|
+
import { XquikSchema } from './schema';
|
|
4
|
+
import type { XquikWebhookOutputs, XquikWebhookPayload } from './webhooks/types';
|
|
5
|
+
export type XquikPluginOptions = {
|
|
6
|
+
authType?: PickAuth<'api_key'>;
|
|
7
|
+
baseUrl?: string;
|
|
8
|
+
errorHandlers?: CorsairErrorHandler;
|
|
9
|
+
hooks?: InternalXquikPlugin['hooks'];
|
|
10
|
+
key?: string;
|
|
11
|
+
permissions?: PluginPermissionsConfig<typeof xquikEndpointsNested>;
|
|
12
|
+
webhookHooks?: InternalXquikPlugin['webhookHooks'];
|
|
13
|
+
webhookSecret?: string;
|
|
14
|
+
};
|
|
15
|
+
export type XquikContext = CorsairPluginContext<typeof XquikSchema, XquikPluginOptions>;
|
|
16
|
+
export type XquikBoundEndpoints = BindEndpoints<typeof xquikEndpointsNested>;
|
|
17
|
+
type XquikEndpoint<K extends keyof XquikEndpointOutputs> = CorsairEndpoint<XquikContext, XquikEndpointInputs[K], XquikEndpointOutputs[K]>;
|
|
18
|
+
export type XquikEndpoints = {
|
|
19
|
+
mediaDownload: XquikEndpoint<'mediaDownload'>;
|
|
20
|
+
mediaUploadFromUrl: XquikEndpoint<'mediaUploadFromUrl'>;
|
|
21
|
+
trendsGet: XquikEndpoint<'trendsGet'>;
|
|
22
|
+
tweetsBatch: XquikEndpoint<'tweetsBatch'>;
|
|
23
|
+
tweetsCreate: XquikEndpoint<'tweetsCreate'>;
|
|
24
|
+
tweetsDelete: XquikEndpoint<'tweetsDelete'>;
|
|
25
|
+
tweetsGet: XquikEndpoint<'tweetsGet'>;
|
|
26
|
+
tweetsLike: XquikEndpoint<'tweetsLike'>;
|
|
27
|
+
tweetsRetweet: XquikEndpoint<'tweetsRetweet'>;
|
|
28
|
+
tweetsSearch: XquikEndpoint<'tweetsSearch'>;
|
|
29
|
+
tweetsUnlike: XquikEndpoint<'tweetsUnlike'>;
|
|
30
|
+
usersBatch: XquikEndpoint<'usersBatch'>;
|
|
31
|
+
usersFollow: XquikEndpoint<'usersFollow'>;
|
|
32
|
+
usersFollowers: XquikEndpoint<'usersFollowers'>;
|
|
33
|
+
usersFollowing: XquikEndpoint<'usersFollowing'>;
|
|
34
|
+
usersGet: XquikEndpoint<'usersGet'>;
|
|
35
|
+
usersSearch: XquikEndpoint<'usersSearch'>;
|
|
36
|
+
usersTweets: XquikEndpoint<'usersTweets'>;
|
|
37
|
+
usersUnfollow: XquikEndpoint<'usersUnfollow'>;
|
|
38
|
+
webhooksCreate: XquikEndpoint<'webhooksCreate'>;
|
|
39
|
+
webhooksDeactivate: XquikEndpoint<'webhooksDeactivate'>;
|
|
40
|
+
webhooksDeliveries: XquikEndpoint<'webhooksDeliveries'>;
|
|
41
|
+
webhooksList: XquikEndpoint<'webhooksList'>;
|
|
42
|
+
webhooksTest: XquikEndpoint<'webhooksTest'>;
|
|
43
|
+
webhooksUpdate: XquikEndpoint<'webhooksUpdate'>;
|
|
44
|
+
writeActionsGet: XquikEndpoint<'writeActionsGet'>;
|
|
45
|
+
};
|
|
46
|
+
type XquikWebhook<K extends keyof XquikWebhookOutputs, TEvent> = CorsairWebhook<XquikContext, TEvent, XquikWebhookOutputs[K]>;
|
|
47
|
+
export type XquikWebhooks = {
|
|
48
|
+
monitorEvent: XquikWebhook<'monitorEvent', XquikWebhookPayload>;
|
|
49
|
+
test: XquikWebhook<'test', XquikWebhookPayload>;
|
|
50
|
+
};
|
|
51
|
+
export type XquikBoundWebhooks = BindWebhooks<XquikWebhooks>;
|
|
52
|
+
declare const xquikEndpointsNested: {
|
|
53
|
+
readonly media: {
|
|
54
|
+
readonly download: XquikEndpoint<"mediaDownload">;
|
|
55
|
+
readonly uploadFromUrl: XquikEndpoint<"mediaUploadFromUrl">;
|
|
56
|
+
};
|
|
57
|
+
readonly trends: {
|
|
58
|
+
readonly get: XquikEndpoint<"trendsGet">;
|
|
59
|
+
};
|
|
60
|
+
readonly tweets: {
|
|
61
|
+
readonly batch: XquikEndpoint<"tweetsBatch">;
|
|
62
|
+
readonly create: XquikEndpoint<"tweetsCreate">;
|
|
63
|
+
readonly delete: XquikEndpoint<"tweetsDelete">;
|
|
64
|
+
readonly get: XquikEndpoint<"tweetsGet">;
|
|
65
|
+
readonly like: XquikEndpoint<"tweetsLike">;
|
|
66
|
+
readonly retweet: XquikEndpoint<"tweetsRetweet">;
|
|
67
|
+
readonly search: XquikEndpoint<"tweetsSearch">;
|
|
68
|
+
readonly unlike: XquikEndpoint<"tweetsUnlike">;
|
|
69
|
+
};
|
|
70
|
+
readonly users: {
|
|
71
|
+
readonly batch: XquikEndpoint<"usersBatch">;
|
|
72
|
+
readonly follow: XquikEndpoint<"usersFollow">;
|
|
73
|
+
readonly followers: XquikEndpoint<"usersFollowers">;
|
|
74
|
+
readonly following: XquikEndpoint<"usersFollowing">;
|
|
75
|
+
readonly get: XquikEndpoint<"usersGet">;
|
|
76
|
+
readonly search: XquikEndpoint<"usersSearch">;
|
|
77
|
+
readonly tweets: XquikEndpoint<"usersTweets">;
|
|
78
|
+
readonly unfollow: XquikEndpoint<"usersUnfollow">;
|
|
79
|
+
};
|
|
80
|
+
readonly webhooks: {
|
|
81
|
+
readonly create: XquikEndpoint<"webhooksCreate">;
|
|
82
|
+
readonly deactivate: XquikEndpoint<"webhooksDeactivate">;
|
|
83
|
+
readonly deliveries: XquikEndpoint<"webhooksDeliveries">;
|
|
84
|
+
readonly list: XquikEndpoint<"webhooksList">;
|
|
85
|
+
readonly test: XquikEndpoint<"webhooksTest">;
|
|
86
|
+
readonly update: XquikEndpoint<"webhooksUpdate">;
|
|
87
|
+
};
|
|
88
|
+
readonly writeActions: {
|
|
89
|
+
readonly get: XquikEndpoint<"writeActionsGet">;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
declare const xquikWebhooksNested: {
|
|
93
|
+
readonly events: {
|
|
94
|
+
readonly monitor: XquikWebhook<"monitorEvent", {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
data: Record<string, unknown>;
|
|
97
|
+
eventType: "tweet.new" | "tweet.quote" | "tweet.reply" | "tweet.retweet" | "webhook.test";
|
|
98
|
+
deliveryId?: string | undefined;
|
|
99
|
+
occurredAt?: string | undefined;
|
|
100
|
+
query?: string | undefined;
|
|
101
|
+
schemaVersion?: string | undefined;
|
|
102
|
+
streamEventId?: string | undefined;
|
|
103
|
+
timestamp?: string | undefined;
|
|
104
|
+
username?: string | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
readonly test: XquikWebhook<"test", {
|
|
107
|
+
[x: string]: unknown;
|
|
108
|
+
data: Record<string, unknown>;
|
|
109
|
+
eventType: "tweet.new" | "tweet.quote" | "tweet.reply" | "tweet.retweet" | "webhook.test";
|
|
110
|
+
deliveryId?: string | undefined;
|
|
111
|
+
occurredAt?: string | undefined;
|
|
112
|
+
query?: string | undefined;
|
|
113
|
+
schemaVersion?: string | undefined;
|
|
114
|
+
streamEventId?: string | undefined;
|
|
115
|
+
timestamp?: string | undefined;
|
|
116
|
+
username?: string | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export declare const xquikEndpointSchemas: {
|
|
121
|
+
readonly 'media.download': {
|
|
122
|
+
readonly input: import("zod").ZodObject<{
|
|
123
|
+
tweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
124
|
+
tweetIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
125
|
+
tweetInput: import("zod").ZodOptional<import("zod").ZodString>;
|
|
126
|
+
tweetUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
127
|
+
}, import("zod/v4/core").$strip>;
|
|
128
|
+
readonly output: import("zod").ZodObject<{
|
|
129
|
+
cacheHit: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
130
|
+
galleryUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
|
+
totalMedia: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
132
|
+
totalTweets: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
133
|
+
tweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
134
|
+
}, import("zod/v4/core").$loose>;
|
|
135
|
+
};
|
|
136
|
+
readonly 'media.uploadFromUrl': {
|
|
137
|
+
readonly input: import("zod").ZodObject<{
|
|
138
|
+
account: import("zod").ZodString;
|
|
139
|
+
url: import("zod").ZodString;
|
|
140
|
+
}, import("zod/v4/core").$strip>;
|
|
141
|
+
readonly output: import("zod").ZodObject<{
|
|
142
|
+
mediaId: import("zod").ZodString;
|
|
143
|
+
mediaUrl: import("zod").ZodString;
|
|
144
|
+
success: import("zod").ZodLiteral<true>;
|
|
145
|
+
}, import("zod/v4/core").$strip>;
|
|
146
|
+
};
|
|
147
|
+
readonly 'trends.get': {
|
|
148
|
+
readonly input: import("zod").ZodObject<{
|
|
149
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
150
|
+
woeid: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
151
|
+
}, import("zod/v4/core").$strip>;
|
|
152
|
+
readonly output: import("zod").ZodObject<{
|
|
153
|
+
count: import("zod").ZodNumber;
|
|
154
|
+
trends: import("zod").ZodArray<import("zod").ZodObject<{
|
|
155
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
156
|
+
name: import("zod").ZodString;
|
|
157
|
+
query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
158
|
+
rank: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
159
|
+
}, import("zod/v4/core").$loose>>;
|
|
160
|
+
woeid: import("zod").ZodNumber;
|
|
161
|
+
}, import("zod/v4/core").$strip>;
|
|
162
|
+
};
|
|
163
|
+
readonly 'tweets.batch': {
|
|
164
|
+
readonly input: import("zod").ZodObject<{
|
|
165
|
+
ids: import("zod").ZodArray<import("zod").ZodString>;
|
|
166
|
+
}, import("zod/v4/core").$strip>;
|
|
167
|
+
readonly output: import("zod").ZodObject<{
|
|
168
|
+
has_next_page: import("zod").ZodBoolean;
|
|
169
|
+
next_cursor: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
170
|
+
tweets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
171
|
+
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
172
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
175
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
176
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
177
|
+
id: import("zod").ZodString;
|
|
178
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
179
|
+
name: import("zod").ZodString;
|
|
180
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
182
|
+
username: import("zod").ZodString;
|
|
183
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
184
|
+
}, import("zod/v4/core").$loose>>;
|
|
185
|
+
bookmarkCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
186
|
+
conversationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
187
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
|
+
entities: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
189
|
+
id: import("zod").ZodString;
|
|
190
|
+
inReplyToId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
191
|
+
inReplyToUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
192
|
+
inReplyToUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
193
|
+
isLimitedReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
194
|
+
isNoteTweet: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
195
|
+
isQuoteStatus: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
196
|
+
isReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
197
|
+
lang: import("zod").ZodOptional<import("zod").ZodString>;
|
|
198
|
+
likeCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
199
|
+
media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
200
|
+
mediaUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
201
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
202
|
+
animated_gif: "animated_gif";
|
|
203
|
+
photo: "photo";
|
|
204
|
+
video: "video";
|
|
205
|
+
}>>;
|
|
206
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
207
|
+
}, import("zod/v4/core").$loose>>>;
|
|
208
|
+
quoteCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
209
|
+
replyCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
210
|
+
retweetCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
211
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
212
|
+
text: import("zod").ZodString;
|
|
213
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
214
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
215
|
+
viewCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
216
|
+
}, import("zod/v4/core").$loose>>;
|
|
217
|
+
}, import("zod/v4/core").$strip>;
|
|
218
|
+
};
|
|
219
|
+
readonly 'tweets.create': {
|
|
220
|
+
readonly input: import("zod").ZodObject<{
|
|
221
|
+
account: import("zod").ZodString;
|
|
222
|
+
attachment_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
223
|
+
community_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
224
|
+
is_note_tweet: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
225
|
+
media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
226
|
+
reply_to_tweet_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
227
|
+
text: import("zod").ZodOptional<import("zod").ZodString>;
|
|
228
|
+
}, import("zod/v4/core").$strip>;
|
|
229
|
+
readonly output: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
230
|
+
success: import("zod").ZodLiteral<true>;
|
|
231
|
+
tweetId: import("zod").ZodString;
|
|
232
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
233
|
+
charged: import("zod").ZodBoolean;
|
|
234
|
+
error: import("zod").ZodLiteral<"x_write_unconfirmed">;
|
|
235
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
236
|
+
retryable: import("zod").ZodLiteral<false>;
|
|
237
|
+
status: import("zod").ZodLiteral<"pending_confirmation">;
|
|
238
|
+
writeActionId: import("zod").ZodString;
|
|
239
|
+
}, import("zod/v4/core").$strip>]>;
|
|
240
|
+
};
|
|
241
|
+
readonly 'tweets.delete': {
|
|
242
|
+
readonly input: import("zod").ZodObject<{
|
|
243
|
+
account: import("zod").ZodString;
|
|
244
|
+
id: import("zod").ZodString;
|
|
245
|
+
}, import("zod/v4/core").$strip>;
|
|
246
|
+
readonly output: import("zod").ZodObject<{
|
|
247
|
+
success: import("zod").ZodLiteral<true>;
|
|
248
|
+
}, import("zod/v4/core").$loose>;
|
|
249
|
+
};
|
|
250
|
+
readonly 'tweets.get': {
|
|
251
|
+
readonly input: import("zod").ZodObject<{
|
|
252
|
+
id: import("zod").ZodString;
|
|
253
|
+
}, import("zod/v4/core").$strip>;
|
|
254
|
+
readonly output: import("zod").ZodObject<{
|
|
255
|
+
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
256
|
+
followers: import("zod").ZodNumber;
|
|
257
|
+
id: import("zod").ZodString;
|
|
258
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
259
|
+
username: import("zod").ZodString;
|
|
260
|
+
verified: import("zod").ZodBoolean;
|
|
261
|
+
}, import("zod/v4/core").$loose>>;
|
|
262
|
+
tweet: import("zod").ZodObject<{
|
|
263
|
+
bookmarkCount: import("zod").ZodNumber;
|
|
264
|
+
conversationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
265
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
266
|
+
entities: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
267
|
+
id: import("zod").ZodString;
|
|
268
|
+
isNoteTweet: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
269
|
+
isQuoteStatus: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
270
|
+
isReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
271
|
+
likeCount: import("zod").ZodNumber;
|
|
272
|
+
media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
273
|
+
mediaUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
274
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
275
|
+
animated_gif: "animated_gif";
|
|
276
|
+
photo: "photo";
|
|
277
|
+
video: "video";
|
|
278
|
+
}>>;
|
|
279
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
280
|
+
}, import("zod/v4/core").$loose>>>;
|
|
281
|
+
quoteCount: import("zod").ZodNumber;
|
|
282
|
+
replyCount: import("zod").ZodNumber;
|
|
283
|
+
retweetCount: import("zod").ZodNumber;
|
|
284
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
285
|
+
text: import("zod").ZodString;
|
|
286
|
+
viewCount: import("zod").ZodNumber;
|
|
287
|
+
}, import("zod/v4/core").$loose>;
|
|
288
|
+
}, import("zod/v4/core").$strip>;
|
|
289
|
+
};
|
|
290
|
+
readonly 'tweets.like': {
|
|
291
|
+
readonly input: import("zod").ZodObject<{
|
|
292
|
+
account: import("zod").ZodString;
|
|
293
|
+
id: import("zod").ZodString;
|
|
294
|
+
}, import("zod/v4/core").$strip>;
|
|
295
|
+
readonly output: import("zod").ZodObject<{
|
|
296
|
+
success: import("zod").ZodLiteral<true>;
|
|
297
|
+
}, import("zod/v4/core").$loose>;
|
|
298
|
+
};
|
|
299
|
+
readonly 'tweets.retweet': {
|
|
300
|
+
readonly input: import("zod").ZodObject<{
|
|
301
|
+
account: import("zod").ZodString;
|
|
302
|
+
id: import("zod").ZodString;
|
|
303
|
+
}, import("zod/v4/core").$strip>;
|
|
304
|
+
readonly output: import("zod").ZodObject<{
|
|
305
|
+
success: import("zod").ZodLiteral<true>;
|
|
306
|
+
}, import("zod/v4/core").$loose>;
|
|
307
|
+
};
|
|
308
|
+
readonly 'tweets.search': {
|
|
309
|
+
readonly input: import("zod").ZodObject<{
|
|
310
|
+
anyWords: import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
|
+
cashtags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
312
|
+
conversationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
313
|
+
exactPhrase: import("zod").ZodOptional<import("zod").ZodString>;
|
|
314
|
+
excludeWords: import("zod").ZodOptional<import("zod").ZodString>;
|
|
315
|
+
fromUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
|
+
hashtags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
317
|
+
inReplyToTweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
318
|
+
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
319
|
+
mediaType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
320
|
+
gifs: "gifs";
|
|
321
|
+
images: "images";
|
|
322
|
+
links: "links";
|
|
323
|
+
media: "media";
|
|
324
|
+
none: "none";
|
|
325
|
+
videos: "videos";
|
|
326
|
+
}>>;
|
|
327
|
+
mentioning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
328
|
+
minFaves: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
329
|
+
minQuotes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
330
|
+
minReplies: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
331
|
+
minRetweets: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
332
|
+
quotes: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
333
|
+
only: "only";
|
|
334
|
+
exclude: "exclude";
|
|
335
|
+
include: "include";
|
|
336
|
+
}>>;
|
|
337
|
+
quotesOfTweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
338
|
+
replies: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
339
|
+
only: "only";
|
|
340
|
+
exclude: "exclude";
|
|
341
|
+
include: "include";
|
|
342
|
+
}>>;
|
|
343
|
+
retweets: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
344
|
+
only: "only";
|
|
345
|
+
exclude: "exclude";
|
|
346
|
+
include: "include";
|
|
347
|
+
}>>;
|
|
348
|
+
retweetsOfTweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
349
|
+
sinceDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
350
|
+
toUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
351
|
+
untilDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
352
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
353
|
+
verifiedOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
354
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
355
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
356
|
+
q: import("zod").ZodString;
|
|
357
|
+
queryType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
358
|
+
Latest: "Latest";
|
|
359
|
+
Top: "Top";
|
|
360
|
+
}>>;
|
|
361
|
+
sinceTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
362
|
+
untilTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
363
|
+
}, import("zod/v4/core").$strip>;
|
|
364
|
+
readonly output: import("zod").ZodObject<{
|
|
365
|
+
has_next_page: import("zod").ZodBoolean;
|
|
366
|
+
next_cursor: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
367
|
+
tweets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
368
|
+
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
369
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
370
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
371
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
372
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
373
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
374
|
+
id: import("zod").ZodString;
|
|
375
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
376
|
+
name: import("zod").ZodString;
|
|
377
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
378
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
379
|
+
username: import("zod").ZodString;
|
|
380
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
381
|
+
}, import("zod/v4/core").$loose>>;
|
|
382
|
+
bookmarkCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
383
|
+
conversationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
384
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
385
|
+
entities: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
386
|
+
id: import("zod").ZodString;
|
|
387
|
+
inReplyToId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
388
|
+
inReplyToUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
389
|
+
inReplyToUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
390
|
+
isLimitedReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
391
|
+
isNoteTweet: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
392
|
+
isQuoteStatus: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
393
|
+
isReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
394
|
+
lang: import("zod").ZodOptional<import("zod").ZodString>;
|
|
395
|
+
likeCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
396
|
+
media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
397
|
+
mediaUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
398
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
399
|
+
animated_gif: "animated_gif";
|
|
400
|
+
photo: "photo";
|
|
401
|
+
video: "video";
|
|
402
|
+
}>>;
|
|
403
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
404
|
+
}, import("zod/v4/core").$loose>>>;
|
|
405
|
+
quoteCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
406
|
+
replyCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
407
|
+
retweetCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
408
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
409
|
+
text: import("zod").ZodString;
|
|
410
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
411
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
412
|
+
viewCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
413
|
+
}, import("zod/v4/core").$loose>>;
|
|
414
|
+
}, import("zod/v4/core").$strip>;
|
|
415
|
+
};
|
|
416
|
+
readonly 'tweets.unlike': {
|
|
417
|
+
readonly input: import("zod").ZodObject<{
|
|
418
|
+
account: import("zod").ZodString;
|
|
419
|
+
id: import("zod").ZodString;
|
|
420
|
+
}, import("zod/v4/core").$strip>;
|
|
421
|
+
readonly output: import("zod").ZodObject<{
|
|
422
|
+
success: import("zod").ZodLiteral<true>;
|
|
423
|
+
}, import("zod/v4/core").$loose>;
|
|
424
|
+
};
|
|
425
|
+
readonly 'users.batch': {
|
|
426
|
+
readonly input: import("zod").ZodObject<{
|
|
427
|
+
ids: import("zod").ZodArray<import("zod").ZodString>;
|
|
428
|
+
}, import("zod/v4/core").$strip>;
|
|
429
|
+
readonly output: import("zod").ZodObject<{
|
|
430
|
+
has_next_page: import("zod").ZodBoolean;
|
|
431
|
+
next_cursor: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
432
|
+
users: import("zod").ZodArray<import("zod").ZodObject<{
|
|
433
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
434
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
435
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
436
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
437
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
438
|
+
id: import("zod").ZodString;
|
|
439
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
440
|
+
name: import("zod").ZodString;
|
|
441
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
442
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
443
|
+
username: import("zod").ZodString;
|
|
444
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
445
|
+
}, import("zod/v4/core").$loose>>;
|
|
446
|
+
}, import("zod/v4/core").$strip>;
|
|
447
|
+
};
|
|
448
|
+
readonly 'users.follow': {
|
|
449
|
+
readonly input: import("zod").ZodObject<{
|
|
450
|
+
account: import("zod").ZodString;
|
|
451
|
+
id: import("zod").ZodString;
|
|
452
|
+
}, import("zod/v4/core").$strip>;
|
|
453
|
+
readonly output: import("zod").ZodObject<{
|
|
454
|
+
success: import("zod").ZodLiteral<true>;
|
|
455
|
+
}, import("zod/v4/core").$loose>;
|
|
456
|
+
};
|
|
457
|
+
readonly 'users.followers': {
|
|
458
|
+
readonly input: import("zod").ZodObject<{
|
|
459
|
+
id: import("zod").ZodString;
|
|
460
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
461
|
+
pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
462
|
+
}, import("zod/v4/core").$strip>;
|
|
463
|
+
readonly output: import("zod").ZodObject<{
|
|
464
|
+
has_next_page: import("zod").ZodBoolean;
|
|
465
|
+
next_cursor: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
466
|
+
users: import("zod").ZodArray<import("zod").ZodObject<{
|
|
467
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
468
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
469
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
470
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
471
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
472
|
+
id: import("zod").ZodString;
|
|
473
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
474
|
+
name: import("zod").ZodString;
|
|
475
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
476
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
477
|
+
username: import("zod").ZodString;
|
|
478
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
479
|
+
}, import("zod/v4/core").$loose>>;
|
|
480
|
+
}, import("zod/v4/core").$strip>;
|
|
481
|
+
};
|
|
482
|
+
readonly 'users.following': {
|
|
483
|
+
readonly input: import("zod").ZodObject<{
|
|
484
|
+
id: import("zod").ZodString;
|
|
485
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
486
|
+
pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
487
|
+
}, import("zod/v4/core").$strip>;
|
|
488
|
+
readonly output: import("zod").ZodObject<{
|
|
489
|
+
has_next_page: import("zod").ZodBoolean;
|
|
490
|
+
next_cursor: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
491
|
+
users: import("zod").ZodArray<import("zod").ZodObject<{
|
|
492
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
493
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
495
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
496
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
497
|
+
id: import("zod").ZodString;
|
|
498
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
499
|
+
name: import("zod").ZodString;
|
|
500
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
501
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
502
|
+
username: import("zod").ZodString;
|
|
503
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
504
|
+
}, import("zod/v4/core").$loose>>;
|
|
505
|
+
}, import("zod/v4/core").$strip>;
|
|
506
|
+
};
|
|
507
|
+
readonly 'users.get': {
|
|
508
|
+
readonly input: import("zod").ZodObject<{
|
|
509
|
+
id: import("zod").ZodString;
|
|
510
|
+
}, import("zod/v4/core").$strip>;
|
|
511
|
+
readonly output: import("zod").ZodObject<{
|
|
512
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
513
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
514
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
515
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
516
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
517
|
+
id: import("zod").ZodString;
|
|
518
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
519
|
+
name: import("zod").ZodString;
|
|
520
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
521
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
522
|
+
username: import("zod").ZodString;
|
|
523
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
524
|
+
}, import("zod/v4/core").$loose>;
|
|
525
|
+
};
|
|
526
|
+
readonly 'users.search': {
|
|
527
|
+
readonly input: import("zod").ZodObject<{
|
|
528
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
529
|
+
q: import("zod").ZodString;
|
|
530
|
+
}, import("zod/v4/core").$strip>;
|
|
531
|
+
readonly output: import("zod").ZodObject<{
|
|
532
|
+
has_next_page: import("zod").ZodBoolean;
|
|
533
|
+
next_cursor: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
534
|
+
users: import("zod").ZodArray<import("zod").ZodObject<{
|
|
535
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
536
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
537
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
538
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
539
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
540
|
+
id: import("zod").ZodString;
|
|
541
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
542
|
+
name: import("zod").ZodString;
|
|
543
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
544
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
545
|
+
username: import("zod").ZodString;
|
|
546
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
547
|
+
}, import("zod/v4/core").$loose>>;
|
|
548
|
+
}, import("zod/v4/core").$strip>;
|
|
549
|
+
};
|
|
550
|
+
readonly 'users.tweets': {
|
|
551
|
+
readonly input: import("zod").ZodObject<{
|
|
552
|
+
id: import("zod").ZodString;
|
|
553
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
554
|
+
pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
555
|
+
anyWords: import("zod").ZodOptional<import("zod").ZodString>;
|
|
556
|
+
cashtags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
557
|
+
conversationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
558
|
+
exactPhrase: import("zod").ZodOptional<import("zod").ZodString>;
|
|
559
|
+
excludeWords: import("zod").ZodOptional<import("zod").ZodString>;
|
|
560
|
+
fromUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
561
|
+
hashtags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
562
|
+
inReplyToTweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
563
|
+
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
564
|
+
mediaType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
565
|
+
gifs: "gifs";
|
|
566
|
+
images: "images";
|
|
567
|
+
links: "links";
|
|
568
|
+
media: "media";
|
|
569
|
+
none: "none";
|
|
570
|
+
videos: "videos";
|
|
571
|
+
}>>;
|
|
572
|
+
mentioning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
573
|
+
minFaves: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
574
|
+
minQuotes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
575
|
+
minReplies: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
576
|
+
minRetweets: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
577
|
+
quotes: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
578
|
+
only: "only";
|
|
579
|
+
exclude: "exclude";
|
|
580
|
+
include: "include";
|
|
581
|
+
}>>;
|
|
582
|
+
quotesOfTweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
583
|
+
replies: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
584
|
+
only: "only";
|
|
585
|
+
exclude: "exclude";
|
|
586
|
+
include: "include";
|
|
587
|
+
}>>;
|
|
588
|
+
retweets: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
589
|
+
only: "only";
|
|
590
|
+
exclude: "exclude";
|
|
591
|
+
include: "include";
|
|
592
|
+
}>>;
|
|
593
|
+
retweetsOfTweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
594
|
+
sinceDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
595
|
+
toUser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
596
|
+
untilDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
597
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
598
|
+
verifiedOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
599
|
+
includeParentTweet: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
600
|
+
includeReplies: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
601
|
+
}, import("zod/v4/core").$strip>;
|
|
602
|
+
readonly output: import("zod").ZodObject<{
|
|
603
|
+
has_next_page: import("zod").ZodBoolean;
|
|
604
|
+
next_cursor: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
605
|
+
tweets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
606
|
+
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
607
|
+
coverPicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
608
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
609
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
610
|
+
followers: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
611
|
+
following: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
612
|
+
id: import("zod").ZodString;
|
|
613
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
614
|
+
name: import("zod").ZodString;
|
|
615
|
+
profilePicture: import("zod").ZodOptional<import("zod").ZodString>;
|
|
616
|
+
statusesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
617
|
+
username: import("zod").ZodString;
|
|
618
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
619
|
+
}, import("zod/v4/core").$loose>>;
|
|
620
|
+
bookmarkCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
621
|
+
conversationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
622
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
623
|
+
entities: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
624
|
+
id: import("zod").ZodString;
|
|
625
|
+
inReplyToId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
626
|
+
inReplyToUserId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
627
|
+
inReplyToUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
628
|
+
isLimitedReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
629
|
+
isNoteTweet: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
630
|
+
isQuoteStatus: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
631
|
+
isReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
632
|
+
lang: import("zod").ZodOptional<import("zod").ZodString>;
|
|
633
|
+
likeCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
634
|
+
media: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
635
|
+
mediaUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
636
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
637
|
+
animated_gif: "animated_gif";
|
|
638
|
+
photo: "photo";
|
|
639
|
+
video: "video";
|
|
640
|
+
}>>;
|
|
641
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
642
|
+
}, import("zod/v4/core").$loose>>>;
|
|
643
|
+
quoteCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
644
|
+
replyCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
645
|
+
retweetCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
646
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
647
|
+
text: import("zod").ZodString;
|
|
648
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
649
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
650
|
+
viewCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
651
|
+
}, import("zod/v4/core").$loose>>;
|
|
652
|
+
}, import("zod/v4/core").$strip>;
|
|
653
|
+
};
|
|
654
|
+
readonly 'users.unfollow': {
|
|
655
|
+
readonly input: import("zod").ZodObject<{
|
|
656
|
+
account: import("zod").ZodString;
|
|
657
|
+
id: import("zod").ZodString;
|
|
658
|
+
}, import("zod/v4/core").$strip>;
|
|
659
|
+
readonly output: import("zod").ZodObject<{
|
|
660
|
+
success: import("zod").ZodLiteral<true>;
|
|
661
|
+
}, import("zod/v4/core").$loose>;
|
|
662
|
+
};
|
|
663
|
+
readonly 'webhooks.create': {
|
|
664
|
+
readonly input: import("zod").ZodObject<{
|
|
665
|
+
eventTypes: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
666
|
+
"tweet.new": "tweet.new";
|
|
667
|
+
"tweet.quote": "tweet.quote";
|
|
668
|
+
"tweet.reply": "tweet.reply";
|
|
669
|
+
"tweet.retweet": "tweet.retweet";
|
|
670
|
+
}>>;
|
|
671
|
+
url: import("zod").ZodString;
|
|
672
|
+
}, import("zod/v4/core").$strip>;
|
|
673
|
+
readonly output: import("zod").ZodObject<{
|
|
674
|
+
createdAt: import("zod").ZodString;
|
|
675
|
+
eventTypes: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
676
|
+
"tweet.new": "tweet.new";
|
|
677
|
+
"tweet.quote": "tweet.quote";
|
|
678
|
+
"tweet.reply": "tweet.reply";
|
|
679
|
+
"tweet.retweet": "tweet.retweet";
|
|
680
|
+
}>>;
|
|
681
|
+
id: import("zod").ZodString;
|
|
682
|
+
isActive: import("zod").ZodBoolean;
|
|
683
|
+
url: import("zod").ZodString;
|
|
684
|
+
secret: import("zod").ZodString;
|
|
685
|
+
}, import("zod/v4/core").$strip>;
|
|
686
|
+
};
|
|
687
|
+
readonly 'webhooks.deactivate': {
|
|
688
|
+
readonly input: import("zod").ZodObject<{
|
|
689
|
+
id: import("zod").ZodString;
|
|
690
|
+
}, import("zod/v4/core").$strip>;
|
|
691
|
+
readonly output: import("zod").ZodObject<{
|
|
692
|
+
success: import("zod").ZodLiteral<true>;
|
|
693
|
+
}, import("zod/v4/core").$loose>;
|
|
694
|
+
};
|
|
695
|
+
readonly 'webhooks.deliveries': {
|
|
696
|
+
readonly input: import("zod").ZodObject<{
|
|
697
|
+
id: import("zod").ZodString;
|
|
698
|
+
}, import("zod/v4/core").$strip>;
|
|
699
|
+
readonly output: import("zod").ZodObject<{
|
|
700
|
+
deliveries: import("zod").ZodArray<import("zod").ZodObject<{
|
|
701
|
+
attempts: import("zod").ZodNumber;
|
|
702
|
+
createdAt: import("zod").ZodString;
|
|
703
|
+
deliveredAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
704
|
+
id: import("zod").ZodString;
|
|
705
|
+
lastError: import("zod").ZodOptional<import("zod").ZodString>;
|
|
706
|
+
lastStatusCode: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
707
|
+
status: import("zod").ZodString;
|
|
708
|
+
streamEventId: import("zod").ZodString;
|
|
709
|
+
}, import("zod/v4/core").$strip>>;
|
|
710
|
+
}, import("zod/v4/core").$strip>;
|
|
711
|
+
};
|
|
712
|
+
readonly 'webhooks.list': {
|
|
713
|
+
readonly input: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
714
|
+
readonly output: import("zod").ZodObject<{
|
|
715
|
+
webhooks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
716
|
+
createdAt: import("zod").ZodString;
|
|
717
|
+
eventTypes: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
718
|
+
"tweet.new": "tweet.new";
|
|
719
|
+
"tweet.quote": "tweet.quote";
|
|
720
|
+
"tweet.reply": "tweet.reply";
|
|
721
|
+
"tweet.retweet": "tweet.retweet";
|
|
722
|
+
}>>;
|
|
723
|
+
id: import("zod").ZodString;
|
|
724
|
+
isActive: import("zod").ZodBoolean;
|
|
725
|
+
url: import("zod").ZodString;
|
|
726
|
+
}, import("zod/v4/core").$strip>>;
|
|
727
|
+
}, import("zod/v4/core").$strip>;
|
|
728
|
+
};
|
|
729
|
+
readonly 'webhooks.test': {
|
|
730
|
+
readonly input: import("zod").ZodObject<{
|
|
731
|
+
id: import("zod").ZodString;
|
|
732
|
+
}, import("zod/v4/core").$strip>;
|
|
733
|
+
readonly output: import("zod").ZodObject<{
|
|
734
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
735
|
+
statusCode: import("zod").ZodNumber;
|
|
736
|
+
success: import("zod").ZodBoolean;
|
|
737
|
+
}, import("zod/v4/core").$strip>;
|
|
738
|
+
};
|
|
739
|
+
readonly 'webhooks.update': {
|
|
740
|
+
readonly input: import("zod").ZodObject<{
|
|
741
|
+
eventTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
742
|
+
"tweet.new": "tweet.new";
|
|
743
|
+
"tweet.quote": "tweet.quote";
|
|
744
|
+
"tweet.reply": "tweet.reply";
|
|
745
|
+
"tweet.retweet": "tweet.retweet";
|
|
746
|
+
}>>>;
|
|
747
|
+
id: import("zod").ZodString;
|
|
748
|
+
isActive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
749
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
750
|
+
}, import("zod/v4/core").$strip>;
|
|
751
|
+
readonly output: import("zod").ZodObject<{
|
|
752
|
+
createdAt: import("zod").ZodString;
|
|
753
|
+
eventTypes: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
754
|
+
"tweet.new": "tweet.new";
|
|
755
|
+
"tweet.quote": "tweet.quote";
|
|
756
|
+
"tweet.reply": "tweet.reply";
|
|
757
|
+
"tweet.retweet": "tweet.retweet";
|
|
758
|
+
}>>;
|
|
759
|
+
id: import("zod").ZodString;
|
|
760
|
+
isActive: import("zod").ZodBoolean;
|
|
761
|
+
url: import("zod").ZodString;
|
|
762
|
+
}, import("zod/v4/core").$strip>;
|
|
763
|
+
};
|
|
764
|
+
readonly 'writeActions.get': {
|
|
765
|
+
readonly input: import("zod").ZodObject<{
|
|
766
|
+
id: import("zod").ZodString;
|
|
767
|
+
}, import("zod/v4/core").$strip>;
|
|
768
|
+
readonly output: import("zod").ZodObject<{
|
|
769
|
+
action: import("zod").ZodString;
|
|
770
|
+
charged: import("zod").ZodBoolean;
|
|
771
|
+
confirmationAttempts: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
772
|
+
confirmationCheckedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
773
|
+
confirmationSource: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
774
|
+
confirmedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
775
|
+
createdAt: import("zod").ZodString;
|
|
776
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
777
|
+
messageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
778
|
+
retryable: import("zod").ZodBoolean;
|
|
779
|
+
sendDispatched: import("zod").ZodBoolean;
|
|
780
|
+
sendDispatchedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
781
|
+
status: import("zod").ZodEnum<{
|
|
782
|
+
success: "success";
|
|
783
|
+
failed: "failed";
|
|
784
|
+
pending_confirmation: "pending_confirmation";
|
|
785
|
+
}>;
|
|
786
|
+
targetId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
787
|
+
tweetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
788
|
+
writeActionId: import("zod").ZodString;
|
|
789
|
+
}, import("zod/v4/core").$loose>;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
declare const defaultAuthType: AuthTypes;
|
|
793
|
+
export declare const xquikAuthConfig: {
|
|
794
|
+
readonly api_key: {
|
|
795
|
+
readonly account: readonly ["one", "webhook_signature"];
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
export type XquikKeyBuilderContext = KeyBuilderContext<XquikPluginOptions, typeof xquikAuthConfig>;
|
|
799
|
+
export type BaseXquikPlugin<T extends XquikPluginOptions> = CorsairPlugin<'xquik', typeof XquikSchema, typeof xquikEndpointsNested, typeof xquikWebhooksNested, T, typeof defaultAuthType, typeof xquikAuthConfig>;
|
|
800
|
+
export type InternalXquikPlugin = BaseXquikPlugin<XquikPluginOptions>;
|
|
801
|
+
export type ExternalXquikPlugin<T extends XquikPluginOptions> = BaseXquikPlugin<T>;
|
|
802
|
+
export declare function xquik<const T extends XquikPluginOptions>(incomingOptions?: XquikPluginOptions & T): ExternalXquikPlugin<T>;
|
|
803
|
+
export type { CreateTweetResponse, Delivery, EventPayload, MediaDownloadInput, MediaDownloadResponse, MediaUploadFromUrlInput, MediaUploadResponse, PaginatedTweets, PaginatedUsers, PendingWriteResponse, SearchTweet, SuccessResponse, Trend, TrendsGetInput, TrendsResponse, TweetAccountActionInput, TweetBatchInput, TweetCreateInput, TweetDetail, TweetFilter, TweetGetInput, TweetLookupResponse, TweetMedia, TweetSearchInput, UserAccountActionInput, UserBatchInput, UserGetInput, UserListInput, UserProfile, UserSearchInput, UserTweetsInput, WebhookCreateInput, WebhookIdInput, WebhookUpdateInput, WriteActionGetInput, WriteActionStatus, XquikEndpointInputs, XquikEndpointOutputs, XquikEventType, } from './endpoints/types';
|
|
804
|
+
export type { XquikWebhookOutputs, XquikWebhookPayload, } from './webhooks/types';
|
|
805
|
+
//# sourceMappingURL=index.d.ts.map
|