@devpad/api 2.0.1 → 2.0.3
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/dist/chunk-5X36WMYQ.js +130 -0
- package/dist/chunk-INGCIUMX.js +166 -0
- package/dist/errors.d-C73AkrdX.d.ts +159 -0
- package/dist/index.d.ts +541 -13
- package/dist/index.js +1587 -6
- package/dist/media.d-CQ56ckoR.d.ts +1047 -0
- package/dist/schema/blog.d.ts +5032 -0
- package/dist/schema/blog.js +277 -0
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/index.js +106 -0
- package/dist/schema/media.d.ts +1675 -0
- package/dist/schema/media.js +680 -0
- package/dist/schema.d-DALWdx-o.d.ts +2666 -0
- package/dist/types.d-B1VbnHQT.d.ts +6146 -0
- package/dist/types.d-Bj4FU9Op.d.ts +539 -0
- package/dist/types.d-DLE9TSql.d.ts +684 -0
- package/package.json +17 -4
- package/dist/api-client.d.ts +0 -470
- package/dist/api-client.d.ts.map +0 -1
- package/dist/api-client.js +0 -530
- package/dist/error-handlers.d.ts +0 -55
- package/dist/error-handlers.d.ts.map +0 -1
- package/dist/error-handlers.js +0 -217
- package/dist/errors.d.ts +0 -19
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -28
- package/dist/index.d.ts.map +0 -1
- package/dist/request.d.ts +0 -51
- package/dist/request.d.ts.map +0 -1
- package/dist/request.js +0 -197
- package/dist/result.d.ts +0 -10
- package/dist/result.d.ts.map +0 -1
- package/dist/result.js +0 -11
- package/dist/tools.d.ts +0 -84
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -474
|
@@ -0,0 +1,1675 @@
|
|
|
1
|
+
export { b as ApiError, A as AuthExpiredError, c as BadRequestError, B as BaseError, C as ConflictError, g as CronError, D as DatabaseError, E as EncryptionError, h as ErrorContext, i as ErrorLogEntry, F as ForbiddenError, G as GithubError, a as NetworkError, N as NotFoundError, P as ParseError, f as ProviderError, R as RateLimitedError, d as ScanError, e as ServiceError, S as StoreError, U as UnauthorizedError, V as ValidationError, W as apiError, T as authExpired, $ as badRequest, j as configureErrorLogging, _ as conflict, Z as dbError, Y as encryptionError, a3 as errors, K as forbidden, a2 as githubError, r as isApiError, q as isAuthExpiredError, w as isBadRequestError, v as isConflictError, u as isDatabaseError, t as isEncryptionError, l as isForbiddenError, z as isGithubError, p as isNetworkError, k as isNotFoundError, s as isParseError, n as isRateLimitedError, I as isRetryableError, y as isScanError, H as isServiceError, o as isStoreError, x as isUnauthorizedError, m as isValidationError, Q as networkError, J as notFound, X as parseError, M as rateLimited, a1 as scanError, O as storeError, a0 as unauthorized, L as validation } from '../errors.d-C73AkrdX.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export { A as Account, p as AccountSetting, q as AccountWithUser, a6 as AddFilterInput, a3 as AddFilterSchema, r as ApiKey, s as BlueskyAuthor, B as BlueskyAuthorSchema, t as BlueskyFeedItem, a as BlueskyFeedItemSchema, u as BlueskyPost, b as BlueskyPostSchema, v as BlueskyRaw, c as BlueskyRawSchema, af as BlueskySettings, aa as BlueskySettingsSchema, aD as CommentPayload, aq as CommentPayloadSchema, aG as CommitGroup, at as CommitGroupSchema, ax as CommitPayload, ak as CommitPayloadSchema, C as CorpusPath, a4 as CreateProfileInput, $ as CreateProfileSchema, aH as DateGroup, au as DateGroupSchema, w as DevpadRaw, D as DevpadRawSchema, ah as DevpadSettings, ac as DevpadSettingsSchema, x as DevpadTask, d as DevpadTaskSchema, a8 as FilterKey, a2 as FilterKeySchema, a7 as FilterType, a1 as FilterTypeSchema, y as GitHubBaseEvent, G as GitHubBaseEventSchema, z as GitHubEvent, e as GitHubEventSchema, E as GitHubExtendedCommit, f as GitHubExtendedCommitSchema, F as GitHubPullRequest, g as GitHubPullRequestSchema, H as GitHubRaw, h as GitHubRawSchema, I as GitHubRepo, i as GitHubRepoSchema, ae as GitHubSettings, a9 as GitHubSettingsSchema, k as MULTI_STORE_PLATFORMS, M as MultiStorePlatform, N as NewAccount, J as NewAccountSetting, K as NewApiKey, L as NewPlatformCredential, O as NewProfile, Q as NewProfileFilter, R as NewRateLimit, l as PLATFORMS, aB as PRCommit, ao as PRCommitSchema, aE as Payload, ar as PayloadSchema, P as Platform, S as PlatformCredential, m as PlatformSchema, ai as PlatformSettings, ad as PlatformSettingsSchemaMap, ay as PostPayload, al as PostPayloadSchema, T as Profile, U as ProfileFilter, aC as PullRequestPayload, ap as PullRequestPayloadSchema, V as RateLimit, _ as SlugSchema, aA as TaskPayload, an as TaskPayloadSchema, aI as Timeline, aF as TimelineItem, as as TimelineItemSchema, av as TimelineSchema, aw as TimelineType, aj as TimelineTypeSchema, a5 as UpdateProfileInput, a0 as UpdateProfileSchema, az as VideoPayload, am as VideoPayloadSchema, W as YouTubeRaw, Y as YouTubeRawSchema, ag as YouTubeSettings, ab as YouTubeSettingsSchema, X as YouTubeThumbnail, n as YouTubeThumbnailSchema, Z as YouTubeVideo, o as YouTubeVideoSchema, j as isMultiStorePlatform } from '../types.d-B1VbnHQT.js';
|
|
4
|
+
import '@f0rbit/corpus';
|
|
5
|
+
import 'drizzle-orm';
|
|
6
|
+
import '../media.d-CQ56ckoR.js';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
import '../schema.d-DALWdx-o.js';
|
|
9
|
+
|
|
10
|
+
declare const brand: unique symbol;
|
|
11
|
+
type Brand<T, B extends string> = T & {
|
|
12
|
+
readonly [brand]: B;
|
|
13
|
+
};
|
|
14
|
+
type UserId = Brand<string, "UserId">;
|
|
15
|
+
type AccountId = Brand<string, "AccountId">;
|
|
16
|
+
type ProfileId = Brand<string, "ProfileId">;
|
|
17
|
+
type ConnectionId = Brand<string, "ConnectionId">;
|
|
18
|
+
declare const userId: (id: string) => UserId;
|
|
19
|
+
declare const accountId: (id: string) => AccountId;
|
|
20
|
+
declare const profileId: (id: string) => ProfileId;
|
|
21
|
+
declare const connectionId: (id: string) => ConnectionId;
|
|
22
|
+
declare const isValidId: (id: unknown) => id is string;
|
|
23
|
+
|
|
24
|
+
declare const GitHubRepoCommitSchema: z.ZodObject<{
|
|
25
|
+
sha: z.ZodString;
|
|
26
|
+
message: z.ZodString;
|
|
27
|
+
author_name: z.ZodString;
|
|
28
|
+
author_email: z.ZodString;
|
|
29
|
+
author_date: z.ZodString;
|
|
30
|
+
committer_name: z.ZodString;
|
|
31
|
+
committer_email: z.ZodString;
|
|
32
|
+
committer_date: z.ZodString;
|
|
33
|
+
url: z.ZodString;
|
|
34
|
+
branch: z.ZodString;
|
|
35
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
files_changed: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
branch: string;
|
|
40
|
+
sha: string;
|
|
41
|
+
message: string;
|
|
42
|
+
url: string;
|
|
43
|
+
author_name: string;
|
|
44
|
+
author_email: string;
|
|
45
|
+
author_date: string;
|
|
46
|
+
committer_name: string;
|
|
47
|
+
committer_email: string;
|
|
48
|
+
committer_date: string;
|
|
49
|
+
additions?: number | undefined;
|
|
50
|
+
deletions?: number | undefined;
|
|
51
|
+
files_changed?: number | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
branch: string;
|
|
54
|
+
sha: string;
|
|
55
|
+
message: string;
|
|
56
|
+
url: string;
|
|
57
|
+
author_name: string;
|
|
58
|
+
author_email: string;
|
|
59
|
+
author_date: string;
|
|
60
|
+
committer_name: string;
|
|
61
|
+
committer_email: string;
|
|
62
|
+
committer_date: string;
|
|
63
|
+
additions?: number | undefined;
|
|
64
|
+
deletions?: number | undefined;
|
|
65
|
+
files_changed?: number | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
declare const GitHubRepoCommitsStoreSchema: z.ZodObject<{
|
|
68
|
+
owner: z.ZodString;
|
|
69
|
+
repo: z.ZodString;
|
|
70
|
+
branches: z.ZodArray<z.ZodString, "many">;
|
|
71
|
+
commits: z.ZodArray<z.ZodObject<{
|
|
72
|
+
sha: z.ZodString;
|
|
73
|
+
message: z.ZodString;
|
|
74
|
+
author_name: z.ZodString;
|
|
75
|
+
author_email: z.ZodString;
|
|
76
|
+
author_date: z.ZodString;
|
|
77
|
+
committer_name: z.ZodString;
|
|
78
|
+
committer_email: z.ZodString;
|
|
79
|
+
committer_date: z.ZodString;
|
|
80
|
+
url: z.ZodString;
|
|
81
|
+
branch: z.ZodString;
|
|
82
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
files_changed: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
branch: string;
|
|
87
|
+
sha: string;
|
|
88
|
+
message: string;
|
|
89
|
+
url: string;
|
|
90
|
+
author_name: string;
|
|
91
|
+
author_email: string;
|
|
92
|
+
author_date: string;
|
|
93
|
+
committer_name: string;
|
|
94
|
+
committer_email: string;
|
|
95
|
+
committer_date: string;
|
|
96
|
+
additions?: number | undefined;
|
|
97
|
+
deletions?: number | undefined;
|
|
98
|
+
files_changed?: number | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
branch: string;
|
|
101
|
+
sha: string;
|
|
102
|
+
message: string;
|
|
103
|
+
url: string;
|
|
104
|
+
author_name: string;
|
|
105
|
+
author_email: string;
|
|
106
|
+
author_date: string;
|
|
107
|
+
committer_name: string;
|
|
108
|
+
committer_email: string;
|
|
109
|
+
committer_date: string;
|
|
110
|
+
additions?: number | undefined;
|
|
111
|
+
deletions?: number | undefined;
|
|
112
|
+
files_changed?: number | undefined;
|
|
113
|
+
}>, "many">;
|
|
114
|
+
total_commits: z.ZodNumber;
|
|
115
|
+
fetched_at: z.ZodString;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
owner: string;
|
|
118
|
+
repo: string;
|
|
119
|
+
branches: string[];
|
|
120
|
+
commits: {
|
|
121
|
+
branch: string;
|
|
122
|
+
sha: string;
|
|
123
|
+
message: string;
|
|
124
|
+
url: string;
|
|
125
|
+
author_name: string;
|
|
126
|
+
author_email: string;
|
|
127
|
+
author_date: string;
|
|
128
|
+
committer_name: string;
|
|
129
|
+
committer_email: string;
|
|
130
|
+
committer_date: string;
|
|
131
|
+
additions?: number | undefined;
|
|
132
|
+
deletions?: number | undefined;
|
|
133
|
+
files_changed?: number | undefined;
|
|
134
|
+
}[];
|
|
135
|
+
total_commits: number;
|
|
136
|
+
fetched_at: string;
|
|
137
|
+
}, {
|
|
138
|
+
owner: string;
|
|
139
|
+
repo: string;
|
|
140
|
+
branches: string[];
|
|
141
|
+
commits: {
|
|
142
|
+
branch: string;
|
|
143
|
+
sha: string;
|
|
144
|
+
message: string;
|
|
145
|
+
url: string;
|
|
146
|
+
author_name: string;
|
|
147
|
+
author_email: string;
|
|
148
|
+
author_date: string;
|
|
149
|
+
committer_name: string;
|
|
150
|
+
committer_email: string;
|
|
151
|
+
committer_date: string;
|
|
152
|
+
additions?: number | undefined;
|
|
153
|
+
deletions?: number | undefined;
|
|
154
|
+
files_changed?: number | undefined;
|
|
155
|
+
}[];
|
|
156
|
+
total_commits: number;
|
|
157
|
+
fetched_at: string;
|
|
158
|
+
}>;
|
|
159
|
+
type GitHubRepoCommit = z.infer<typeof GitHubRepoCommitSchema>;
|
|
160
|
+
type GitHubRepoCommitsStore = z.infer<typeof GitHubRepoCommitsStoreSchema>;
|
|
161
|
+
declare const GitHubRepoMetaSchema: z.ZodObject<{
|
|
162
|
+
owner: z.ZodString;
|
|
163
|
+
name: z.ZodString;
|
|
164
|
+
full_name: z.ZodString;
|
|
165
|
+
default_branch: z.ZodString;
|
|
166
|
+
branches: z.ZodArray<z.ZodString, "many">;
|
|
167
|
+
is_private: z.ZodBoolean;
|
|
168
|
+
pushed_at: z.ZodNullable<z.ZodString>;
|
|
169
|
+
updated_at: z.ZodString;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
name: string;
|
|
172
|
+
updated_at: string;
|
|
173
|
+
owner: string;
|
|
174
|
+
branches: string[];
|
|
175
|
+
full_name: string;
|
|
176
|
+
default_branch: string;
|
|
177
|
+
is_private: boolean;
|
|
178
|
+
pushed_at: string | null;
|
|
179
|
+
}, {
|
|
180
|
+
name: string;
|
|
181
|
+
updated_at: string;
|
|
182
|
+
owner: string;
|
|
183
|
+
branches: string[];
|
|
184
|
+
full_name: string;
|
|
185
|
+
default_branch: string;
|
|
186
|
+
is_private: boolean;
|
|
187
|
+
pushed_at: string | null;
|
|
188
|
+
}>;
|
|
189
|
+
declare const GitHubMetaStoreSchema: z.ZodObject<{
|
|
190
|
+
username: z.ZodString;
|
|
191
|
+
repositories: z.ZodArray<z.ZodObject<{
|
|
192
|
+
owner: z.ZodString;
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
full_name: z.ZodString;
|
|
195
|
+
default_branch: z.ZodString;
|
|
196
|
+
branches: z.ZodArray<z.ZodString, "many">;
|
|
197
|
+
is_private: z.ZodBoolean;
|
|
198
|
+
pushed_at: z.ZodNullable<z.ZodString>;
|
|
199
|
+
updated_at: z.ZodString;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
name: string;
|
|
202
|
+
updated_at: string;
|
|
203
|
+
owner: string;
|
|
204
|
+
branches: string[];
|
|
205
|
+
full_name: string;
|
|
206
|
+
default_branch: string;
|
|
207
|
+
is_private: boolean;
|
|
208
|
+
pushed_at: string | null;
|
|
209
|
+
}, {
|
|
210
|
+
name: string;
|
|
211
|
+
updated_at: string;
|
|
212
|
+
owner: string;
|
|
213
|
+
branches: string[];
|
|
214
|
+
full_name: string;
|
|
215
|
+
default_branch: string;
|
|
216
|
+
is_private: boolean;
|
|
217
|
+
pushed_at: string | null;
|
|
218
|
+
}>, "many">;
|
|
219
|
+
total_repos_available: z.ZodNumber;
|
|
220
|
+
repos_fetched: z.ZodNumber;
|
|
221
|
+
fetched_at: z.ZodString;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
fetched_at: string;
|
|
224
|
+
username: string;
|
|
225
|
+
repositories: {
|
|
226
|
+
name: string;
|
|
227
|
+
updated_at: string;
|
|
228
|
+
owner: string;
|
|
229
|
+
branches: string[];
|
|
230
|
+
full_name: string;
|
|
231
|
+
default_branch: string;
|
|
232
|
+
is_private: boolean;
|
|
233
|
+
pushed_at: string | null;
|
|
234
|
+
}[];
|
|
235
|
+
total_repos_available: number;
|
|
236
|
+
repos_fetched: number;
|
|
237
|
+
}, {
|
|
238
|
+
fetched_at: string;
|
|
239
|
+
username: string;
|
|
240
|
+
repositories: {
|
|
241
|
+
name: string;
|
|
242
|
+
updated_at: string;
|
|
243
|
+
owner: string;
|
|
244
|
+
branches: string[];
|
|
245
|
+
full_name: string;
|
|
246
|
+
default_branch: string;
|
|
247
|
+
is_private: boolean;
|
|
248
|
+
pushed_at: string | null;
|
|
249
|
+
}[];
|
|
250
|
+
total_repos_available: number;
|
|
251
|
+
repos_fetched: number;
|
|
252
|
+
}>;
|
|
253
|
+
type GitHubRepoMeta = z.infer<typeof GitHubRepoMetaSchema>;
|
|
254
|
+
type GitHubMetaStore = z.infer<typeof GitHubMetaStoreSchema>;
|
|
255
|
+
declare const GitHubRepoPRSchema: z.ZodObject<{
|
|
256
|
+
id: z.ZodNumber;
|
|
257
|
+
number: z.ZodNumber;
|
|
258
|
+
title: z.ZodString;
|
|
259
|
+
body: z.ZodNullable<z.ZodString>;
|
|
260
|
+
state: z.ZodEnum<["open", "closed", "merged"]>;
|
|
261
|
+
url: z.ZodString;
|
|
262
|
+
created_at: z.ZodString;
|
|
263
|
+
updated_at: z.ZodString;
|
|
264
|
+
closed_at: z.ZodNullable<z.ZodString>;
|
|
265
|
+
merged_at: z.ZodNullable<z.ZodString>;
|
|
266
|
+
head_ref: z.ZodString;
|
|
267
|
+
base_ref: z.ZodString;
|
|
268
|
+
commit_shas: z.ZodArray<z.ZodString, "many">;
|
|
269
|
+
merge_commit_sha: z.ZodNullable<z.ZodString>;
|
|
270
|
+
author_login: z.ZodString;
|
|
271
|
+
author_avatar_url: z.ZodOptional<z.ZodString>;
|
|
272
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
changed_files: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
number: number;
|
|
277
|
+
id: number;
|
|
278
|
+
created_at: string;
|
|
279
|
+
updated_at: string;
|
|
280
|
+
title: string;
|
|
281
|
+
url: string;
|
|
282
|
+
body: string | null;
|
|
283
|
+
state: "open" | "closed" | "merged";
|
|
284
|
+
closed_at: string | null;
|
|
285
|
+
merged_at: string | null;
|
|
286
|
+
head_ref: string;
|
|
287
|
+
base_ref: string;
|
|
288
|
+
commit_shas: string[];
|
|
289
|
+
merge_commit_sha: string | null;
|
|
290
|
+
author_login: string;
|
|
291
|
+
additions?: number | undefined;
|
|
292
|
+
deletions?: number | undefined;
|
|
293
|
+
author_avatar_url?: string | undefined;
|
|
294
|
+
changed_files?: number | undefined;
|
|
295
|
+
}, {
|
|
296
|
+
number: number;
|
|
297
|
+
id: number;
|
|
298
|
+
created_at: string;
|
|
299
|
+
updated_at: string;
|
|
300
|
+
title: string;
|
|
301
|
+
url: string;
|
|
302
|
+
body: string | null;
|
|
303
|
+
state: "open" | "closed" | "merged";
|
|
304
|
+
closed_at: string | null;
|
|
305
|
+
merged_at: string | null;
|
|
306
|
+
head_ref: string;
|
|
307
|
+
base_ref: string;
|
|
308
|
+
commit_shas: string[];
|
|
309
|
+
merge_commit_sha: string | null;
|
|
310
|
+
author_login: string;
|
|
311
|
+
additions?: number | undefined;
|
|
312
|
+
deletions?: number | undefined;
|
|
313
|
+
author_avatar_url?: string | undefined;
|
|
314
|
+
changed_files?: number | undefined;
|
|
315
|
+
}>;
|
|
316
|
+
declare const GitHubRepoPRsStoreSchema: z.ZodObject<{
|
|
317
|
+
owner: z.ZodString;
|
|
318
|
+
repo: z.ZodString;
|
|
319
|
+
pull_requests: z.ZodArray<z.ZodObject<{
|
|
320
|
+
id: z.ZodNumber;
|
|
321
|
+
number: z.ZodNumber;
|
|
322
|
+
title: z.ZodString;
|
|
323
|
+
body: z.ZodNullable<z.ZodString>;
|
|
324
|
+
state: z.ZodEnum<["open", "closed", "merged"]>;
|
|
325
|
+
url: z.ZodString;
|
|
326
|
+
created_at: z.ZodString;
|
|
327
|
+
updated_at: z.ZodString;
|
|
328
|
+
closed_at: z.ZodNullable<z.ZodString>;
|
|
329
|
+
merged_at: z.ZodNullable<z.ZodString>;
|
|
330
|
+
head_ref: z.ZodString;
|
|
331
|
+
base_ref: z.ZodString;
|
|
332
|
+
commit_shas: z.ZodArray<z.ZodString, "many">;
|
|
333
|
+
merge_commit_sha: z.ZodNullable<z.ZodString>;
|
|
334
|
+
author_login: z.ZodString;
|
|
335
|
+
author_avatar_url: z.ZodOptional<z.ZodString>;
|
|
336
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
changed_files: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
340
|
+
number: number;
|
|
341
|
+
id: number;
|
|
342
|
+
created_at: string;
|
|
343
|
+
updated_at: string;
|
|
344
|
+
title: string;
|
|
345
|
+
url: string;
|
|
346
|
+
body: string | null;
|
|
347
|
+
state: "open" | "closed" | "merged";
|
|
348
|
+
closed_at: string | null;
|
|
349
|
+
merged_at: string | null;
|
|
350
|
+
head_ref: string;
|
|
351
|
+
base_ref: string;
|
|
352
|
+
commit_shas: string[];
|
|
353
|
+
merge_commit_sha: string | null;
|
|
354
|
+
author_login: string;
|
|
355
|
+
additions?: number | undefined;
|
|
356
|
+
deletions?: number | undefined;
|
|
357
|
+
author_avatar_url?: string | undefined;
|
|
358
|
+
changed_files?: number | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
number: number;
|
|
361
|
+
id: number;
|
|
362
|
+
created_at: string;
|
|
363
|
+
updated_at: string;
|
|
364
|
+
title: string;
|
|
365
|
+
url: string;
|
|
366
|
+
body: string | null;
|
|
367
|
+
state: "open" | "closed" | "merged";
|
|
368
|
+
closed_at: string | null;
|
|
369
|
+
merged_at: string | null;
|
|
370
|
+
head_ref: string;
|
|
371
|
+
base_ref: string;
|
|
372
|
+
commit_shas: string[];
|
|
373
|
+
merge_commit_sha: string | null;
|
|
374
|
+
author_login: string;
|
|
375
|
+
additions?: number | undefined;
|
|
376
|
+
deletions?: number | undefined;
|
|
377
|
+
author_avatar_url?: string | undefined;
|
|
378
|
+
changed_files?: number | undefined;
|
|
379
|
+
}>, "many">;
|
|
380
|
+
total_prs: z.ZodNumber;
|
|
381
|
+
fetched_at: z.ZodString;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
owner: string;
|
|
384
|
+
repo: string;
|
|
385
|
+
fetched_at: string;
|
|
386
|
+
pull_requests: {
|
|
387
|
+
number: number;
|
|
388
|
+
id: number;
|
|
389
|
+
created_at: string;
|
|
390
|
+
updated_at: string;
|
|
391
|
+
title: string;
|
|
392
|
+
url: string;
|
|
393
|
+
body: string | null;
|
|
394
|
+
state: "open" | "closed" | "merged";
|
|
395
|
+
closed_at: string | null;
|
|
396
|
+
merged_at: string | null;
|
|
397
|
+
head_ref: string;
|
|
398
|
+
base_ref: string;
|
|
399
|
+
commit_shas: string[];
|
|
400
|
+
merge_commit_sha: string | null;
|
|
401
|
+
author_login: string;
|
|
402
|
+
additions?: number | undefined;
|
|
403
|
+
deletions?: number | undefined;
|
|
404
|
+
author_avatar_url?: string | undefined;
|
|
405
|
+
changed_files?: number | undefined;
|
|
406
|
+
}[];
|
|
407
|
+
total_prs: number;
|
|
408
|
+
}, {
|
|
409
|
+
owner: string;
|
|
410
|
+
repo: string;
|
|
411
|
+
fetched_at: string;
|
|
412
|
+
pull_requests: {
|
|
413
|
+
number: number;
|
|
414
|
+
id: number;
|
|
415
|
+
created_at: string;
|
|
416
|
+
updated_at: string;
|
|
417
|
+
title: string;
|
|
418
|
+
url: string;
|
|
419
|
+
body: string | null;
|
|
420
|
+
state: "open" | "closed" | "merged";
|
|
421
|
+
closed_at: string | null;
|
|
422
|
+
merged_at: string | null;
|
|
423
|
+
head_ref: string;
|
|
424
|
+
base_ref: string;
|
|
425
|
+
commit_shas: string[];
|
|
426
|
+
merge_commit_sha: string | null;
|
|
427
|
+
author_login: string;
|
|
428
|
+
additions?: number | undefined;
|
|
429
|
+
deletions?: number | undefined;
|
|
430
|
+
author_avatar_url?: string | undefined;
|
|
431
|
+
changed_files?: number | undefined;
|
|
432
|
+
}[];
|
|
433
|
+
total_prs: number;
|
|
434
|
+
}>;
|
|
435
|
+
type GitHubRepoPR = z.infer<typeof GitHubRepoPRSchema>;
|
|
436
|
+
type GitHubRepoPRsStore = z.infer<typeof GitHubRepoPRsStoreSchema>;
|
|
437
|
+
|
|
438
|
+
declare const RedditCommentSchema: z.ZodObject<{
|
|
439
|
+
id: z.ZodString;
|
|
440
|
+
name: z.ZodString;
|
|
441
|
+
body: z.ZodString;
|
|
442
|
+
body_html: z.ZodOptional<z.ZodString>;
|
|
443
|
+
permalink: z.ZodString;
|
|
444
|
+
link_id: z.ZodString;
|
|
445
|
+
link_title: z.ZodString;
|
|
446
|
+
link_permalink: z.ZodString;
|
|
447
|
+
subreddit: z.ZodString;
|
|
448
|
+
subreddit_prefixed: z.ZodString;
|
|
449
|
+
author: z.ZodString;
|
|
450
|
+
created_utc: z.ZodNumber;
|
|
451
|
+
score: z.ZodNumber;
|
|
452
|
+
is_submitter: z.ZodDefault<z.ZodBoolean>;
|
|
453
|
+
stickied: z.ZodDefault<z.ZodBoolean>;
|
|
454
|
+
edited: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
455
|
+
parent_id: z.ZodString;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
id: string;
|
|
458
|
+
name: string;
|
|
459
|
+
parent_id: string;
|
|
460
|
+
body: string;
|
|
461
|
+
permalink: string;
|
|
462
|
+
link_id: string;
|
|
463
|
+
link_title: string;
|
|
464
|
+
link_permalink: string;
|
|
465
|
+
subreddit: string;
|
|
466
|
+
subreddit_prefixed: string;
|
|
467
|
+
author: string;
|
|
468
|
+
created_utc: number;
|
|
469
|
+
score: number;
|
|
470
|
+
is_submitter: boolean;
|
|
471
|
+
stickied: boolean;
|
|
472
|
+
edited: number | boolean;
|
|
473
|
+
body_html?: string | undefined;
|
|
474
|
+
}, {
|
|
475
|
+
id: string;
|
|
476
|
+
name: string;
|
|
477
|
+
parent_id: string;
|
|
478
|
+
body: string;
|
|
479
|
+
permalink: string;
|
|
480
|
+
link_id: string;
|
|
481
|
+
link_title: string;
|
|
482
|
+
link_permalink: string;
|
|
483
|
+
subreddit: string;
|
|
484
|
+
subreddit_prefixed: string;
|
|
485
|
+
author: string;
|
|
486
|
+
created_utc: number;
|
|
487
|
+
score: number;
|
|
488
|
+
body_html?: string | undefined;
|
|
489
|
+
is_submitter?: boolean | undefined;
|
|
490
|
+
stickied?: boolean | undefined;
|
|
491
|
+
edited?: number | boolean | undefined;
|
|
492
|
+
}>;
|
|
493
|
+
declare const RedditCommentsStoreSchema: z.ZodObject<{
|
|
494
|
+
username: z.ZodString;
|
|
495
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
496
|
+
id: z.ZodString;
|
|
497
|
+
name: z.ZodString;
|
|
498
|
+
body: z.ZodString;
|
|
499
|
+
body_html: z.ZodOptional<z.ZodString>;
|
|
500
|
+
permalink: z.ZodString;
|
|
501
|
+
link_id: z.ZodString;
|
|
502
|
+
link_title: z.ZodString;
|
|
503
|
+
link_permalink: z.ZodString;
|
|
504
|
+
subreddit: z.ZodString;
|
|
505
|
+
subreddit_prefixed: z.ZodString;
|
|
506
|
+
author: z.ZodString;
|
|
507
|
+
created_utc: z.ZodNumber;
|
|
508
|
+
score: z.ZodNumber;
|
|
509
|
+
is_submitter: z.ZodDefault<z.ZodBoolean>;
|
|
510
|
+
stickied: z.ZodDefault<z.ZodBoolean>;
|
|
511
|
+
edited: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
|
|
512
|
+
parent_id: z.ZodString;
|
|
513
|
+
}, "strip", z.ZodTypeAny, {
|
|
514
|
+
id: string;
|
|
515
|
+
name: string;
|
|
516
|
+
parent_id: string;
|
|
517
|
+
body: string;
|
|
518
|
+
permalink: string;
|
|
519
|
+
link_id: string;
|
|
520
|
+
link_title: string;
|
|
521
|
+
link_permalink: string;
|
|
522
|
+
subreddit: string;
|
|
523
|
+
subreddit_prefixed: string;
|
|
524
|
+
author: string;
|
|
525
|
+
created_utc: number;
|
|
526
|
+
score: number;
|
|
527
|
+
is_submitter: boolean;
|
|
528
|
+
stickied: boolean;
|
|
529
|
+
edited: number | boolean;
|
|
530
|
+
body_html?: string | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
id: string;
|
|
533
|
+
name: string;
|
|
534
|
+
parent_id: string;
|
|
535
|
+
body: string;
|
|
536
|
+
permalink: string;
|
|
537
|
+
link_id: string;
|
|
538
|
+
link_title: string;
|
|
539
|
+
link_permalink: string;
|
|
540
|
+
subreddit: string;
|
|
541
|
+
subreddit_prefixed: string;
|
|
542
|
+
author: string;
|
|
543
|
+
created_utc: number;
|
|
544
|
+
score: number;
|
|
545
|
+
body_html?: string | undefined;
|
|
546
|
+
is_submitter?: boolean | undefined;
|
|
547
|
+
stickied?: boolean | undefined;
|
|
548
|
+
edited?: number | boolean | undefined;
|
|
549
|
+
}>, "many">;
|
|
550
|
+
total_comments: z.ZodNumber;
|
|
551
|
+
fetched_at: z.ZodString;
|
|
552
|
+
}, "strip", z.ZodTypeAny, {
|
|
553
|
+
fetched_at: string;
|
|
554
|
+
username: string;
|
|
555
|
+
comments: {
|
|
556
|
+
id: string;
|
|
557
|
+
name: string;
|
|
558
|
+
parent_id: string;
|
|
559
|
+
body: string;
|
|
560
|
+
permalink: string;
|
|
561
|
+
link_id: string;
|
|
562
|
+
link_title: string;
|
|
563
|
+
link_permalink: string;
|
|
564
|
+
subreddit: string;
|
|
565
|
+
subreddit_prefixed: string;
|
|
566
|
+
author: string;
|
|
567
|
+
created_utc: number;
|
|
568
|
+
score: number;
|
|
569
|
+
is_submitter: boolean;
|
|
570
|
+
stickied: boolean;
|
|
571
|
+
edited: number | boolean;
|
|
572
|
+
body_html?: string | undefined;
|
|
573
|
+
}[];
|
|
574
|
+
total_comments: number;
|
|
575
|
+
}, {
|
|
576
|
+
fetched_at: string;
|
|
577
|
+
username: string;
|
|
578
|
+
comments: {
|
|
579
|
+
id: string;
|
|
580
|
+
name: string;
|
|
581
|
+
parent_id: string;
|
|
582
|
+
body: string;
|
|
583
|
+
permalink: string;
|
|
584
|
+
link_id: string;
|
|
585
|
+
link_title: string;
|
|
586
|
+
link_permalink: string;
|
|
587
|
+
subreddit: string;
|
|
588
|
+
subreddit_prefixed: string;
|
|
589
|
+
author: string;
|
|
590
|
+
created_utc: number;
|
|
591
|
+
score: number;
|
|
592
|
+
body_html?: string | undefined;
|
|
593
|
+
is_submitter?: boolean | undefined;
|
|
594
|
+
stickied?: boolean | undefined;
|
|
595
|
+
edited?: number | boolean | undefined;
|
|
596
|
+
}[];
|
|
597
|
+
total_comments: number;
|
|
598
|
+
}>;
|
|
599
|
+
type RedditComment = z.infer<typeof RedditCommentSchema>;
|
|
600
|
+
type RedditCommentsStore = z.infer<typeof RedditCommentsStoreSchema>;
|
|
601
|
+
declare const RedditMetaStoreSchema: z.ZodObject<{
|
|
602
|
+
username: z.ZodString;
|
|
603
|
+
user_id: z.ZodString;
|
|
604
|
+
icon_img: z.ZodOptional<z.ZodString>;
|
|
605
|
+
total_karma: z.ZodNumber;
|
|
606
|
+
link_karma: z.ZodNumber;
|
|
607
|
+
comment_karma: z.ZodNumber;
|
|
608
|
+
created_utc: z.ZodNumber;
|
|
609
|
+
is_gold: z.ZodDefault<z.ZodBoolean>;
|
|
610
|
+
subreddits_active: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
611
|
+
fetched_at: z.ZodString;
|
|
612
|
+
}, "strip", z.ZodTypeAny, {
|
|
613
|
+
user_id: string;
|
|
614
|
+
fetched_at: string;
|
|
615
|
+
username: string;
|
|
616
|
+
created_utc: number;
|
|
617
|
+
total_karma: number;
|
|
618
|
+
link_karma: number;
|
|
619
|
+
comment_karma: number;
|
|
620
|
+
is_gold: boolean;
|
|
621
|
+
subreddits_active: string[];
|
|
622
|
+
icon_img?: string | undefined;
|
|
623
|
+
}, {
|
|
624
|
+
user_id: string;
|
|
625
|
+
fetched_at: string;
|
|
626
|
+
username: string;
|
|
627
|
+
created_utc: number;
|
|
628
|
+
total_karma: number;
|
|
629
|
+
link_karma: number;
|
|
630
|
+
comment_karma: number;
|
|
631
|
+
icon_img?: string | undefined;
|
|
632
|
+
is_gold?: boolean | undefined;
|
|
633
|
+
subreddits_active?: string[] | undefined;
|
|
634
|
+
}>;
|
|
635
|
+
type RedditMetaStore = z.infer<typeof RedditMetaStoreSchema>;
|
|
636
|
+
declare const RedditPostSchema: z.ZodObject<{
|
|
637
|
+
id: z.ZodString;
|
|
638
|
+
name: z.ZodString;
|
|
639
|
+
title: z.ZodString;
|
|
640
|
+
selftext: z.ZodDefault<z.ZodString>;
|
|
641
|
+
url: z.ZodString;
|
|
642
|
+
permalink: z.ZodString;
|
|
643
|
+
subreddit: z.ZodString;
|
|
644
|
+
subreddit_prefixed: z.ZodString;
|
|
645
|
+
author: z.ZodString;
|
|
646
|
+
created_utc: z.ZodNumber;
|
|
647
|
+
score: z.ZodNumber;
|
|
648
|
+
upvote_ratio: z.ZodOptional<z.ZodNumber>;
|
|
649
|
+
num_comments: z.ZodNumber;
|
|
650
|
+
is_self: z.ZodBoolean;
|
|
651
|
+
is_video: z.ZodDefault<z.ZodBoolean>;
|
|
652
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
653
|
+
link_flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
|
+
over_18: z.ZodDefault<z.ZodBoolean>;
|
|
655
|
+
spoiler: z.ZodDefault<z.ZodBoolean>;
|
|
656
|
+
stickied: z.ZodDefault<z.ZodBoolean>;
|
|
657
|
+
locked: z.ZodDefault<z.ZodBoolean>;
|
|
658
|
+
archived: z.ZodDefault<z.ZodBoolean>;
|
|
659
|
+
}, "strip", z.ZodTypeAny, {
|
|
660
|
+
id: string;
|
|
661
|
+
name: string;
|
|
662
|
+
title: string;
|
|
663
|
+
url: string;
|
|
664
|
+
archived: boolean;
|
|
665
|
+
permalink: string;
|
|
666
|
+
subreddit: string;
|
|
667
|
+
subreddit_prefixed: string;
|
|
668
|
+
author: string;
|
|
669
|
+
created_utc: number;
|
|
670
|
+
score: number;
|
|
671
|
+
stickied: boolean;
|
|
672
|
+
selftext: string;
|
|
673
|
+
num_comments: number;
|
|
674
|
+
is_self: boolean;
|
|
675
|
+
is_video: boolean;
|
|
676
|
+
over_18: boolean;
|
|
677
|
+
spoiler: boolean;
|
|
678
|
+
locked: boolean;
|
|
679
|
+
upvote_ratio?: number | undefined;
|
|
680
|
+
thumbnail?: string | undefined;
|
|
681
|
+
link_flair_text?: string | null | undefined;
|
|
682
|
+
}, {
|
|
683
|
+
id: string;
|
|
684
|
+
name: string;
|
|
685
|
+
title: string;
|
|
686
|
+
url: string;
|
|
687
|
+
permalink: string;
|
|
688
|
+
subreddit: string;
|
|
689
|
+
subreddit_prefixed: string;
|
|
690
|
+
author: string;
|
|
691
|
+
created_utc: number;
|
|
692
|
+
score: number;
|
|
693
|
+
num_comments: number;
|
|
694
|
+
is_self: boolean;
|
|
695
|
+
archived?: boolean | undefined;
|
|
696
|
+
stickied?: boolean | undefined;
|
|
697
|
+
selftext?: string | undefined;
|
|
698
|
+
upvote_ratio?: number | undefined;
|
|
699
|
+
is_video?: boolean | undefined;
|
|
700
|
+
thumbnail?: string | undefined;
|
|
701
|
+
link_flair_text?: string | null | undefined;
|
|
702
|
+
over_18?: boolean | undefined;
|
|
703
|
+
spoiler?: boolean | undefined;
|
|
704
|
+
locked?: boolean | undefined;
|
|
705
|
+
}>;
|
|
706
|
+
declare const RedditPostsStoreSchema: z.ZodObject<{
|
|
707
|
+
username: z.ZodString;
|
|
708
|
+
posts: z.ZodArray<z.ZodObject<{
|
|
709
|
+
id: z.ZodString;
|
|
710
|
+
name: z.ZodString;
|
|
711
|
+
title: z.ZodString;
|
|
712
|
+
selftext: z.ZodDefault<z.ZodString>;
|
|
713
|
+
url: z.ZodString;
|
|
714
|
+
permalink: z.ZodString;
|
|
715
|
+
subreddit: z.ZodString;
|
|
716
|
+
subreddit_prefixed: z.ZodString;
|
|
717
|
+
author: z.ZodString;
|
|
718
|
+
created_utc: z.ZodNumber;
|
|
719
|
+
score: z.ZodNumber;
|
|
720
|
+
upvote_ratio: z.ZodOptional<z.ZodNumber>;
|
|
721
|
+
num_comments: z.ZodNumber;
|
|
722
|
+
is_self: z.ZodBoolean;
|
|
723
|
+
is_video: z.ZodDefault<z.ZodBoolean>;
|
|
724
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
725
|
+
link_flair_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
726
|
+
over_18: z.ZodDefault<z.ZodBoolean>;
|
|
727
|
+
spoiler: z.ZodDefault<z.ZodBoolean>;
|
|
728
|
+
stickied: z.ZodDefault<z.ZodBoolean>;
|
|
729
|
+
locked: z.ZodDefault<z.ZodBoolean>;
|
|
730
|
+
archived: z.ZodDefault<z.ZodBoolean>;
|
|
731
|
+
}, "strip", z.ZodTypeAny, {
|
|
732
|
+
id: string;
|
|
733
|
+
name: string;
|
|
734
|
+
title: string;
|
|
735
|
+
url: string;
|
|
736
|
+
archived: boolean;
|
|
737
|
+
permalink: string;
|
|
738
|
+
subreddit: string;
|
|
739
|
+
subreddit_prefixed: string;
|
|
740
|
+
author: string;
|
|
741
|
+
created_utc: number;
|
|
742
|
+
score: number;
|
|
743
|
+
stickied: boolean;
|
|
744
|
+
selftext: string;
|
|
745
|
+
num_comments: number;
|
|
746
|
+
is_self: boolean;
|
|
747
|
+
is_video: boolean;
|
|
748
|
+
over_18: boolean;
|
|
749
|
+
spoiler: boolean;
|
|
750
|
+
locked: boolean;
|
|
751
|
+
upvote_ratio?: number | undefined;
|
|
752
|
+
thumbnail?: string | undefined;
|
|
753
|
+
link_flair_text?: string | null | undefined;
|
|
754
|
+
}, {
|
|
755
|
+
id: string;
|
|
756
|
+
name: string;
|
|
757
|
+
title: string;
|
|
758
|
+
url: string;
|
|
759
|
+
permalink: string;
|
|
760
|
+
subreddit: string;
|
|
761
|
+
subreddit_prefixed: string;
|
|
762
|
+
author: string;
|
|
763
|
+
created_utc: number;
|
|
764
|
+
score: number;
|
|
765
|
+
num_comments: number;
|
|
766
|
+
is_self: boolean;
|
|
767
|
+
archived?: boolean | undefined;
|
|
768
|
+
stickied?: boolean | undefined;
|
|
769
|
+
selftext?: string | undefined;
|
|
770
|
+
upvote_ratio?: number | undefined;
|
|
771
|
+
is_video?: boolean | undefined;
|
|
772
|
+
thumbnail?: string | undefined;
|
|
773
|
+
link_flair_text?: string | null | undefined;
|
|
774
|
+
over_18?: boolean | undefined;
|
|
775
|
+
spoiler?: boolean | undefined;
|
|
776
|
+
locked?: boolean | undefined;
|
|
777
|
+
}>, "many">;
|
|
778
|
+
total_posts: z.ZodNumber;
|
|
779
|
+
fetched_at: z.ZodString;
|
|
780
|
+
}, "strip", z.ZodTypeAny, {
|
|
781
|
+
posts: {
|
|
782
|
+
id: string;
|
|
783
|
+
name: string;
|
|
784
|
+
title: string;
|
|
785
|
+
url: string;
|
|
786
|
+
archived: boolean;
|
|
787
|
+
permalink: string;
|
|
788
|
+
subreddit: string;
|
|
789
|
+
subreddit_prefixed: string;
|
|
790
|
+
author: string;
|
|
791
|
+
created_utc: number;
|
|
792
|
+
score: number;
|
|
793
|
+
stickied: boolean;
|
|
794
|
+
selftext: string;
|
|
795
|
+
num_comments: number;
|
|
796
|
+
is_self: boolean;
|
|
797
|
+
is_video: boolean;
|
|
798
|
+
over_18: boolean;
|
|
799
|
+
spoiler: boolean;
|
|
800
|
+
locked: boolean;
|
|
801
|
+
upvote_ratio?: number | undefined;
|
|
802
|
+
thumbnail?: string | undefined;
|
|
803
|
+
link_flair_text?: string | null | undefined;
|
|
804
|
+
}[];
|
|
805
|
+
total_posts: number;
|
|
806
|
+
fetched_at: string;
|
|
807
|
+
username: string;
|
|
808
|
+
}, {
|
|
809
|
+
posts: {
|
|
810
|
+
id: string;
|
|
811
|
+
name: string;
|
|
812
|
+
title: string;
|
|
813
|
+
url: string;
|
|
814
|
+
permalink: string;
|
|
815
|
+
subreddit: string;
|
|
816
|
+
subreddit_prefixed: string;
|
|
817
|
+
author: string;
|
|
818
|
+
created_utc: number;
|
|
819
|
+
score: number;
|
|
820
|
+
num_comments: number;
|
|
821
|
+
is_self: boolean;
|
|
822
|
+
archived?: boolean | undefined;
|
|
823
|
+
stickied?: boolean | undefined;
|
|
824
|
+
selftext?: string | undefined;
|
|
825
|
+
upvote_ratio?: number | undefined;
|
|
826
|
+
is_video?: boolean | undefined;
|
|
827
|
+
thumbnail?: string | undefined;
|
|
828
|
+
link_flair_text?: string | null | undefined;
|
|
829
|
+
over_18?: boolean | undefined;
|
|
830
|
+
spoiler?: boolean | undefined;
|
|
831
|
+
locked?: boolean | undefined;
|
|
832
|
+
}[];
|
|
833
|
+
total_posts: number;
|
|
834
|
+
fetched_at: string;
|
|
835
|
+
username: string;
|
|
836
|
+
}>;
|
|
837
|
+
type RedditPost = z.infer<typeof RedditPostSchema>;
|
|
838
|
+
type RedditPostsStore = z.infer<typeof RedditPostsStoreSchema>;
|
|
839
|
+
|
|
840
|
+
declare const TwitterUserMetricsSchema: z.ZodObject<{
|
|
841
|
+
followers_count: z.ZodNumber;
|
|
842
|
+
following_count: z.ZodNumber;
|
|
843
|
+
tweet_count: z.ZodNumber;
|
|
844
|
+
listed_count: z.ZodNumber;
|
|
845
|
+
}, "strip", z.ZodTypeAny, {
|
|
846
|
+
followers_count: number;
|
|
847
|
+
following_count: number;
|
|
848
|
+
tweet_count: number;
|
|
849
|
+
listed_count: number;
|
|
850
|
+
}, {
|
|
851
|
+
followers_count: number;
|
|
852
|
+
following_count: number;
|
|
853
|
+
tweet_count: number;
|
|
854
|
+
listed_count: number;
|
|
855
|
+
}>;
|
|
856
|
+
declare const TwitterMetaStoreSchema: z.ZodObject<{
|
|
857
|
+
id: z.ZodString;
|
|
858
|
+
username: z.ZodString;
|
|
859
|
+
name: z.ZodString;
|
|
860
|
+
description: z.ZodOptional<z.ZodString>;
|
|
861
|
+
profile_image_url: z.ZodOptional<z.ZodString>;
|
|
862
|
+
profile_banner_url: z.ZodOptional<z.ZodString>;
|
|
863
|
+
url: z.ZodOptional<z.ZodString>;
|
|
864
|
+
location: z.ZodOptional<z.ZodString>;
|
|
865
|
+
created_at: z.ZodString;
|
|
866
|
+
verified: z.ZodDefault<z.ZodBoolean>;
|
|
867
|
+
verified_type: z.ZodDefault<z.ZodEnum<["blue", "business", "government", "none"]>>;
|
|
868
|
+
protected: z.ZodDefault<z.ZodBoolean>;
|
|
869
|
+
public_metrics: z.ZodObject<{
|
|
870
|
+
followers_count: z.ZodNumber;
|
|
871
|
+
following_count: z.ZodNumber;
|
|
872
|
+
tweet_count: z.ZodNumber;
|
|
873
|
+
listed_count: z.ZodNumber;
|
|
874
|
+
}, "strip", z.ZodTypeAny, {
|
|
875
|
+
followers_count: number;
|
|
876
|
+
following_count: number;
|
|
877
|
+
tweet_count: number;
|
|
878
|
+
listed_count: number;
|
|
879
|
+
}, {
|
|
880
|
+
followers_count: number;
|
|
881
|
+
following_count: number;
|
|
882
|
+
tweet_count: number;
|
|
883
|
+
listed_count: number;
|
|
884
|
+
}>;
|
|
885
|
+
pinned_tweet_id: z.ZodOptional<z.ZodString>;
|
|
886
|
+
fetched_at: z.ZodString;
|
|
887
|
+
}, "strip", z.ZodTypeAny, {
|
|
888
|
+
id: string;
|
|
889
|
+
name: string;
|
|
890
|
+
created_at: string;
|
|
891
|
+
fetched_at: string;
|
|
892
|
+
username: string;
|
|
893
|
+
verified: boolean;
|
|
894
|
+
verified_type: "blue" | "none" | "business" | "government";
|
|
895
|
+
protected: boolean;
|
|
896
|
+
public_metrics: {
|
|
897
|
+
followers_count: number;
|
|
898
|
+
following_count: number;
|
|
899
|
+
tweet_count: number;
|
|
900
|
+
listed_count: number;
|
|
901
|
+
};
|
|
902
|
+
description?: string | undefined;
|
|
903
|
+
url?: string | undefined;
|
|
904
|
+
location?: string | undefined;
|
|
905
|
+
profile_image_url?: string | undefined;
|
|
906
|
+
profile_banner_url?: string | undefined;
|
|
907
|
+
pinned_tweet_id?: string | undefined;
|
|
908
|
+
}, {
|
|
909
|
+
id: string;
|
|
910
|
+
name: string;
|
|
911
|
+
created_at: string;
|
|
912
|
+
fetched_at: string;
|
|
913
|
+
username: string;
|
|
914
|
+
public_metrics: {
|
|
915
|
+
followers_count: number;
|
|
916
|
+
following_count: number;
|
|
917
|
+
tweet_count: number;
|
|
918
|
+
listed_count: number;
|
|
919
|
+
};
|
|
920
|
+
description?: string | undefined;
|
|
921
|
+
url?: string | undefined;
|
|
922
|
+
location?: string | undefined;
|
|
923
|
+
profile_image_url?: string | undefined;
|
|
924
|
+
profile_banner_url?: string | undefined;
|
|
925
|
+
verified?: boolean | undefined;
|
|
926
|
+
verified_type?: "blue" | "none" | "business" | "government" | undefined;
|
|
927
|
+
protected?: boolean | undefined;
|
|
928
|
+
pinned_tweet_id?: string | undefined;
|
|
929
|
+
}>;
|
|
930
|
+
type TwitterUserMetrics = z.infer<typeof TwitterUserMetricsSchema>;
|
|
931
|
+
type TwitterMetaStore = z.infer<typeof TwitterMetaStoreSchema>;
|
|
932
|
+
declare const TweetMetricsSchema: z.ZodObject<{
|
|
933
|
+
retweet_count: z.ZodDefault<z.ZodNumber>;
|
|
934
|
+
reply_count: z.ZodDefault<z.ZodNumber>;
|
|
935
|
+
like_count: z.ZodDefault<z.ZodNumber>;
|
|
936
|
+
quote_count: z.ZodDefault<z.ZodNumber>;
|
|
937
|
+
impression_count: z.ZodOptional<z.ZodNumber>;
|
|
938
|
+
bookmark_count: z.ZodOptional<z.ZodNumber>;
|
|
939
|
+
}, "strip", z.ZodTypeAny, {
|
|
940
|
+
retweet_count: number;
|
|
941
|
+
reply_count: number;
|
|
942
|
+
like_count: number;
|
|
943
|
+
quote_count: number;
|
|
944
|
+
impression_count?: number | undefined;
|
|
945
|
+
bookmark_count?: number | undefined;
|
|
946
|
+
}, {
|
|
947
|
+
retweet_count?: number | undefined;
|
|
948
|
+
reply_count?: number | undefined;
|
|
949
|
+
like_count?: number | undefined;
|
|
950
|
+
quote_count?: number | undefined;
|
|
951
|
+
impression_count?: number | undefined;
|
|
952
|
+
bookmark_count?: number | undefined;
|
|
953
|
+
}>;
|
|
954
|
+
declare const TweetMediaSchema: z.ZodObject<{
|
|
955
|
+
media_key: z.ZodString;
|
|
956
|
+
type: z.ZodEnum<["photo", "video", "animated_gif"]>;
|
|
957
|
+
url: z.ZodOptional<z.ZodString>;
|
|
958
|
+
preview_image_url: z.ZodOptional<z.ZodString>;
|
|
959
|
+
alt_text: z.ZodOptional<z.ZodString>;
|
|
960
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
961
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
962
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
963
|
+
}, "strip", z.ZodTypeAny, {
|
|
964
|
+
type: "photo" | "video" | "animated_gif";
|
|
965
|
+
media_key: string;
|
|
966
|
+
url?: string | undefined;
|
|
967
|
+
preview_image_url?: string | undefined;
|
|
968
|
+
alt_text?: string | undefined;
|
|
969
|
+
duration_ms?: number | undefined;
|
|
970
|
+
width?: number | undefined;
|
|
971
|
+
height?: number | undefined;
|
|
972
|
+
}, {
|
|
973
|
+
type: "photo" | "video" | "animated_gif";
|
|
974
|
+
media_key: string;
|
|
975
|
+
url?: string | undefined;
|
|
976
|
+
preview_image_url?: string | undefined;
|
|
977
|
+
alt_text?: string | undefined;
|
|
978
|
+
duration_ms?: number | undefined;
|
|
979
|
+
width?: number | undefined;
|
|
980
|
+
height?: number | undefined;
|
|
981
|
+
}>;
|
|
982
|
+
declare const TweetUrlSchema: z.ZodObject<{
|
|
983
|
+
start: z.ZodNumber;
|
|
984
|
+
end: z.ZodNumber;
|
|
985
|
+
url: z.ZodString;
|
|
986
|
+
expanded_url: z.ZodOptional<z.ZodString>;
|
|
987
|
+
display_url: z.ZodOptional<z.ZodString>;
|
|
988
|
+
title: z.ZodOptional<z.ZodString>;
|
|
989
|
+
description: z.ZodOptional<z.ZodString>;
|
|
990
|
+
}, "strip", z.ZodTypeAny, {
|
|
991
|
+
url: string;
|
|
992
|
+
start: number;
|
|
993
|
+
end: number;
|
|
994
|
+
description?: string | undefined;
|
|
995
|
+
title?: string | undefined;
|
|
996
|
+
expanded_url?: string | undefined;
|
|
997
|
+
display_url?: string | undefined;
|
|
998
|
+
}, {
|
|
999
|
+
url: string;
|
|
1000
|
+
start: number;
|
|
1001
|
+
end: number;
|
|
1002
|
+
description?: string | undefined;
|
|
1003
|
+
title?: string | undefined;
|
|
1004
|
+
expanded_url?: string | undefined;
|
|
1005
|
+
display_url?: string | undefined;
|
|
1006
|
+
}>;
|
|
1007
|
+
declare const TwitterTweetSchema: z.ZodObject<{
|
|
1008
|
+
id: z.ZodString;
|
|
1009
|
+
text: z.ZodString;
|
|
1010
|
+
created_at: z.ZodString;
|
|
1011
|
+
author_id: z.ZodString;
|
|
1012
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
1013
|
+
in_reply_to_user_id: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
public_metrics: z.ZodObject<{
|
|
1015
|
+
retweet_count: z.ZodDefault<z.ZodNumber>;
|
|
1016
|
+
reply_count: z.ZodDefault<z.ZodNumber>;
|
|
1017
|
+
like_count: z.ZodDefault<z.ZodNumber>;
|
|
1018
|
+
quote_count: z.ZodDefault<z.ZodNumber>;
|
|
1019
|
+
impression_count: z.ZodOptional<z.ZodNumber>;
|
|
1020
|
+
bookmark_count: z.ZodOptional<z.ZodNumber>;
|
|
1021
|
+
}, "strip", z.ZodTypeAny, {
|
|
1022
|
+
retweet_count: number;
|
|
1023
|
+
reply_count: number;
|
|
1024
|
+
like_count: number;
|
|
1025
|
+
quote_count: number;
|
|
1026
|
+
impression_count?: number | undefined;
|
|
1027
|
+
bookmark_count?: number | undefined;
|
|
1028
|
+
}, {
|
|
1029
|
+
retweet_count?: number | undefined;
|
|
1030
|
+
reply_count?: number | undefined;
|
|
1031
|
+
like_count?: number | undefined;
|
|
1032
|
+
quote_count?: number | undefined;
|
|
1033
|
+
impression_count?: number | undefined;
|
|
1034
|
+
bookmark_count?: number | undefined;
|
|
1035
|
+
}>;
|
|
1036
|
+
possibly_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
1037
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1039
|
+
referenced_tweets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1040
|
+
type: z.ZodEnum<["retweeted", "quoted", "replied_to"]>;
|
|
1041
|
+
id: z.ZodString;
|
|
1042
|
+
}, "strip", z.ZodTypeAny, {
|
|
1043
|
+
id: string;
|
|
1044
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1045
|
+
}, {
|
|
1046
|
+
id: string;
|
|
1047
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1048
|
+
}>, "many">>;
|
|
1049
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
1050
|
+
media_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1051
|
+
poll_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1052
|
+
}, "strip", z.ZodTypeAny, {
|
|
1053
|
+
media_keys?: string[] | undefined;
|
|
1054
|
+
poll_ids?: string[] | undefined;
|
|
1055
|
+
}, {
|
|
1056
|
+
media_keys?: string[] | undefined;
|
|
1057
|
+
poll_ids?: string[] | undefined;
|
|
1058
|
+
}>>;
|
|
1059
|
+
entities: z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
urls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1061
|
+
start: z.ZodNumber;
|
|
1062
|
+
end: z.ZodNumber;
|
|
1063
|
+
url: z.ZodString;
|
|
1064
|
+
expanded_url: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
display_url: z.ZodOptional<z.ZodString>;
|
|
1066
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1067
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1068
|
+
}, "strip", z.ZodTypeAny, {
|
|
1069
|
+
url: string;
|
|
1070
|
+
start: number;
|
|
1071
|
+
end: number;
|
|
1072
|
+
description?: string | undefined;
|
|
1073
|
+
title?: string | undefined;
|
|
1074
|
+
expanded_url?: string | undefined;
|
|
1075
|
+
display_url?: string | undefined;
|
|
1076
|
+
}, {
|
|
1077
|
+
url: string;
|
|
1078
|
+
start: number;
|
|
1079
|
+
end: number;
|
|
1080
|
+
description?: string | undefined;
|
|
1081
|
+
title?: string | undefined;
|
|
1082
|
+
expanded_url?: string | undefined;
|
|
1083
|
+
display_url?: string | undefined;
|
|
1084
|
+
}>, "many">>;
|
|
1085
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1086
|
+
start: z.ZodNumber;
|
|
1087
|
+
end: z.ZodNumber;
|
|
1088
|
+
username: z.ZodString;
|
|
1089
|
+
id: z.ZodString;
|
|
1090
|
+
}, "strip", z.ZodTypeAny, {
|
|
1091
|
+
id: string;
|
|
1092
|
+
username: string;
|
|
1093
|
+
start: number;
|
|
1094
|
+
end: number;
|
|
1095
|
+
}, {
|
|
1096
|
+
id: string;
|
|
1097
|
+
username: string;
|
|
1098
|
+
start: number;
|
|
1099
|
+
end: number;
|
|
1100
|
+
}>, "many">>;
|
|
1101
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1102
|
+
start: z.ZodNumber;
|
|
1103
|
+
end: z.ZodNumber;
|
|
1104
|
+
tag: z.ZodString;
|
|
1105
|
+
}, "strip", z.ZodTypeAny, {
|
|
1106
|
+
tag: string;
|
|
1107
|
+
start: number;
|
|
1108
|
+
end: number;
|
|
1109
|
+
}, {
|
|
1110
|
+
tag: string;
|
|
1111
|
+
start: number;
|
|
1112
|
+
end: number;
|
|
1113
|
+
}>, "many">>;
|
|
1114
|
+
}, "strip", z.ZodTypeAny, {
|
|
1115
|
+
urls?: {
|
|
1116
|
+
url: string;
|
|
1117
|
+
start: number;
|
|
1118
|
+
end: number;
|
|
1119
|
+
description?: string | undefined;
|
|
1120
|
+
title?: string | undefined;
|
|
1121
|
+
expanded_url?: string | undefined;
|
|
1122
|
+
display_url?: string | undefined;
|
|
1123
|
+
}[] | undefined;
|
|
1124
|
+
mentions?: {
|
|
1125
|
+
id: string;
|
|
1126
|
+
username: string;
|
|
1127
|
+
start: number;
|
|
1128
|
+
end: number;
|
|
1129
|
+
}[] | undefined;
|
|
1130
|
+
hashtags?: {
|
|
1131
|
+
tag: string;
|
|
1132
|
+
start: number;
|
|
1133
|
+
end: number;
|
|
1134
|
+
}[] | undefined;
|
|
1135
|
+
}, {
|
|
1136
|
+
urls?: {
|
|
1137
|
+
url: string;
|
|
1138
|
+
start: number;
|
|
1139
|
+
end: number;
|
|
1140
|
+
description?: string | undefined;
|
|
1141
|
+
title?: string | undefined;
|
|
1142
|
+
expanded_url?: string | undefined;
|
|
1143
|
+
display_url?: string | undefined;
|
|
1144
|
+
}[] | undefined;
|
|
1145
|
+
mentions?: {
|
|
1146
|
+
id: string;
|
|
1147
|
+
username: string;
|
|
1148
|
+
start: number;
|
|
1149
|
+
end: number;
|
|
1150
|
+
}[] | undefined;
|
|
1151
|
+
hashtags?: {
|
|
1152
|
+
tag: string;
|
|
1153
|
+
start: number;
|
|
1154
|
+
end: number;
|
|
1155
|
+
}[] | undefined;
|
|
1156
|
+
}>>;
|
|
1157
|
+
}, "strip", z.ZodTypeAny, {
|
|
1158
|
+
id: string;
|
|
1159
|
+
text: string;
|
|
1160
|
+
created_at: string;
|
|
1161
|
+
author_id: string;
|
|
1162
|
+
public_metrics: {
|
|
1163
|
+
retweet_count: number;
|
|
1164
|
+
reply_count: number;
|
|
1165
|
+
like_count: number;
|
|
1166
|
+
quote_count: number;
|
|
1167
|
+
impression_count?: number | undefined;
|
|
1168
|
+
bookmark_count?: number | undefined;
|
|
1169
|
+
};
|
|
1170
|
+
possibly_sensitive: boolean;
|
|
1171
|
+
source?: string | undefined;
|
|
1172
|
+
conversation_id?: string | undefined;
|
|
1173
|
+
in_reply_to_user_id?: string | undefined;
|
|
1174
|
+
lang?: string | undefined;
|
|
1175
|
+
referenced_tweets?: {
|
|
1176
|
+
id: string;
|
|
1177
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1178
|
+
}[] | undefined;
|
|
1179
|
+
attachments?: {
|
|
1180
|
+
media_keys?: string[] | undefined;
|
|
1181
|
+
poll_ids?: string[] | undefined;
|
|
1182
|
+
} | undefined;
|
|
1183
|
+
entities?: {
|
|
1184
|
+
urls?: {
|
|
1185
|
+
url: string;
|
|
1186
|
+
start: number;
|
|
1187
|
+
end: number;
|
|
1188
|
+
description?: string | undefined;
|
|
1189
|
+
title?: string | undefined;
|
|
1190
|
+
expanded_url?: string | undefined;
|
|
1191
|
+
display_url?: string | undefined;
|
|
1192
|
+
}[] | undefined;
|
|
1193
|
+
mentions?: {
|
|
1194
|
+
id: string;
|
|
1195
|
+
username: string;
|
|
1196
|
+
start: number;
|
|
1197
|
+
end: number;
|
|
1198
|
+
}[] | undefined;
|
|
1199
|
+
hashtags?: {
|
|
1200
|
+
tag: string;
|
|
1201
|
+
start: number;
|
|
1202
|
+
end: number;
|
|
1203
|
+
}[] | undefined;
|
|
1204
|
+
} | undefined;
|
|
1205
|
+
}, {
|
|
1206
|
+
id: string;
|
|
1207
|
+
text: string;
|
|
1208
|
+
created_at: string;
|
|
1209
|
+
author_id: string;
|
|
1210
|
+
public_metrics: {
|
|
1211
|
+
retweet_count?: number | undefined;
|
|
1212
|
+
reply_count?: number | undefined;
|
|
1213
|
+
like_count?: number | undefined;
|
|
1214
|
+
quote_count?: number | undefined;
|
|
1215
|
+
impression_count?: number | undefined;
|
|
1216
|
+
bookmark_count?: number | undefined;
|
|
1217
|
+
};
|
|
1218
|
+
source?: string | undefined;
|
|
1219
|
+
conversation_id?: string | undefined;
|
|
1220
|
+
in_reply_to_user_id?: string | undefined;
|
|
1221
|
+
possibly_sensitive?: boolean | undefined;
|
|
1222
|
+
lang?: string | undefined;
|
|
1223
|
+
referenced_tweets?: {
|
|
1224
|
+
id: string;
|
|
1225
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1226
|
+
}[] | undefined;
|
|
1227
|
+
attachments?: {
|
|
1228
|
+
media_keys?: string[] | undefined;
|
|
1229
|
+
poll_ids?: string[] | undefined;
|
|
1230
|
+
} | undefined;
|
|
1231
|
+
entities?: {
|
|
1232
|
+
urls?: {
|
|
1233
|
+
url: string;
|
|
1234
|
+
start: number;
|
|
1235
|
+
end: number;
|
|
1236
|
+
description?: string | undefined;
|
|
1237
|
+
title?: string | undefined;
|
|
1238
|
+
expanded_url?: string | undefined;
|
|
1239
|
+
display_url?: string | undefined;
|
|
1240
|
+
}[] | undefined;
|
|
1241
|
+
mentions?: {
|
|
1242
|
+
id: string;
|
|
1243
|
+
username: string;
|
|
1244
|
+
start: number;
|
|
1245
|
+
end: number;
|
|
1246
|
+
}[] | undefined;
|
|
1247
|
+
hashtags?: {
|
|
1248
|
+
tag: string;
|
|
1249
|
+
start: number;
|
|
1250
|
+
end: number;
|
|
1251
|
+
}[] | undefined;
|
|
1252
|
+
} | undefined;
|
|
1253
|
+
}>;
|
|
1254
|
+
declare const TwitterTweetsStoreSchema: z.ZodObject<{
|
|
1255
|
+
user_id: z.ZodString;
|
|
1256
|
+
username: z.ZodString;
|
|
1257
|
+
tweets: z.ZodArray<z.ZodObject<{
|
|
1258
|
+
id: z.ZodString;
|
|
1259
|
+
text: z.ZodString;
|
|
1260
|
+
created_at: z.ZodString;
|
|
1261
|
+
author_id: z.ZodString;
|
|
1262
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
in_reply_to_user_id: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
public_metrics: z.ZodObject<{
|
|
1265
|
+
retweet_count: z.ZodDefault<z.ZodNumber>;
|
|
1266
|
+
reply_count: z.ZodDefault<z.ZodNumber>;
|
|
1267
|
+
like_count: z.ZodDefault<z.ZodNumber>;
|
|
1268
|
+
quote_count: z.ZodDefault<z.ZodNumber>;
|
|
1269
|
+
impression_count: z.ZodOptional<z.ZodNumber>;
|
|
1270
|
+
bookmark_count: z.ZodOptional<z.ZodNumber>;
|
|
1271
|
+
}, "strip", z.ZodTypeAny, {
|
|
1272
|
+
retweet_count: number;
|
|
1273
|
+
reply_count: number;
|
|
1274
|
+
like_count: number;
|
|
1275
|
+
quote_count: number;
|
|
1276
|
+
impression_count?: number | undefined;
|
|
1277
|
+
bookmark_count?: number | undefined;
|
|
1278
|
+
}, {
|
|
1279
|
+
retweet_count?: number | undefined;
|
|
1280
|
+
reply_count?: number | undefined;
|
|
1281
|
+
like_count?: number | undefined;
|
|
1282
|
+
quote_count?: number | undefined;
|
|
1283
|
+
impression_count?: number | undefined;
|
|
1284
|
+
bookmark_count?: number | undefined;
|
|
1285
|
+
}>;
|
|
1286
|
+
possibly_sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
1287
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
referenced_tweets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1290
|
+
type: z.ZodEnum<["retweeted", "quoted", "replied_to"]>;
|
|
1291
|
+
id: z.ZodString;
|
|
1292
|
+
}, "strip", z.ZodTypeAny, {
|
|
1293
|
+
id: string;
|
|
1294
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1295
|
+
}, {
|
|
1296
|
+
id: string;
|
|
1297
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1298
|
+
}>, "many">>;
|
|
1299
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
1300
|
+
media_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1301
|
+
poll_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1302
|
+
}, "strip", z.ZodTypeAny, {
|
|
1303
|
+
media_keys?: string[] | undefined;
|
|
1304
|
+
poll_ids?: string[] | undefined;
|
|
1305
|
+
}, {
|
|
1306
|
+
media_keys?: string[] | undefined;
|
|
1307
|
+
poll_ids?: string[] | undefined;
|
|
1308
|
+
}>>;
|
|
1309
|
+
entities: z.ZodOptional<z.ZodObject<{
|
|
1310
|
+
urls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1311
|
+
start: z.ZodNumber;
|
|
1312
|
+
end: z.ZodNumber;
|
|
1313
|
+
url: z.ZodString;
|
|
1314
|
+
expanded_url: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
display_url: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
}, "strip", z.ZodTypeAny, {
|
|
1319
|
+
url: string;
|
|
1320
|
+
start: number;
|
|
1321
|
+
end: number;
|
|
1322
|
+
description?: string | undefined;
|
|
1323
|
+
title?: string | undefined;
|
|
1324
|
+
expanded_url?: string | undefined;
|
|
1325
|
+
display_url?: string | undefined;
|
|
1326
|
+
}, {
|
|
1327
|
+
url: string;
|
|
1328
|
+
start: number;
|
|
1329
|
+
end: number;
|
|
1330
|
+
description?: string | undefined;
|
|
1331
|
+
title?: string | undefined;
|
|
1332
|
+
expanded_url?: string | undefined;
|
|
1333
|
+
display_url?: string | undefined;
|
|
1334
|
+
}>, "many">>;
|
|
1335
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1336
|
+
start: z.ZodNumber;
|
|
1337
|
+
end: z.ZodNumber;
|
|
1338
|
+
username: z.ZodString;
|
|
1339
|
+
id: z.ZodString;
|
|
1340
|
+
}, "strip", z.ZodTypeAny, {
|
|
1341
|
+
id: string;
|
|
1342
|
+
username: string;
|
|
1343
|
+
start: number;
|
|
1344
|
+
end: number;
|
|
1345
|
+
}, {
|
|
1346
|
+
id: string;
|
|
1347
|
+
username: string;
|
|
1348
|
+
start: number;
|
|
1349
|
+
end: number;
|
|
1350
|
+
}>, "many">>;
|
|
1351
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1352
|
+
start: z.ZodNumber;
|
|
1353
|
+
end: z.ZodNumber;
|
|
1354
|
+
tag: z.ZodString;
|
|
1355
|
+
}, "strip", z.ZodTypeAny, {
|
|
1356
|
+
tag: string;
|
|
1357
|
+
start: number;
|
|
1358
|
+
end: number;
|
|
1359
|
+
}, {
|
|
1360
|
+
tag: string;
|
|
1361
|
+
start: number;
|
|
1362
|
+
end: number;
|
|
1363
|
+
}>, "many">>;
|
|
1364
|
+
}, "strip", z.ZodTypeAny, {
|
|
1365
|
+
urls?: {
|
|
1366
|
+
url: string;
|
|
1367
|
+
start: number;
|
|
1368
|
+
end: number;
|
|
1369
|
+
description?: string | undefined;
|
|
1370
|
+
title?: string | undefined;
|
|
1371
|
+
expanded_url?: string | undefined;
|
|
1372
|
+
display_url?: string | undefined;
|
|
1373
|
+
}[] | undefined;
|
|
1374
|
+
mentions?: {
|
|
1375
|
+
id: string;
|
|
1376
|
+
username: string;
|
|
1377
|
+
start: number;
|
|
1378
|
+
end: number;
|
|
1379
|
+
}[] | undefined;
|
|
1380
|
+
hashtags?: {
|
|
1381
|
+
tag: string;
|
|
1382
|
+
start: number;
|
|
1383
|
+
end: number;
|
|
1384
|
+
}[] | undefined;
|
|
1385
|
+
}, {
|
|
1386
|
+
urls?: {
|
|
1387
|
+
url: string;
|
|
1388
|
+
start: number;
|
|
1389
|
+
end: number;
|
|
1390
|
+
description?: string | undefined;
|
|
1391
|
+
title?: string | undefined;
|
|
1392
|
+
expanded_url?: string | undefined;
|
|
1393
|
+
display_url?: string | undefined;
|
|
1394
|
+
}[] | undefined;
|
|
1395
|
+
mentions?: {
|
|
1396
|
+
id: string;
|
|
1397
|
+
username: string;
|
|
1398
|
+
start: number;
|
|
1399
|
+
end: number;
|
|
1400
|
+
}[] | undefined;
|
|
1401
|
+
hashtags?: {
|
|
1402
|
+
tag: string;
|
|
1403
|
+
start: number;
|
|
1404
|
+
end: number;
|
|
1405
|
+
}[] | undefined;
|
|
1406
|
+
}>>;
|
|
1407
|
+
}, "strip", z.ZodTypeAny, {
|
|
1408
|
+
id: string;
|
|
1409
|
+
text: string;
|
|
1410
|
+
created_at: string;
|
|
1411
|
+
author_id: string;
|
|
1412
|
+
public_metrics: {
|
|
1413
|
+
retweet_count: number;
|
|
1414
|
+
reply_count: number;
|
|
1415
|
+
like_count: number;
|
|
1416
|
+
quote_count: number;
|
|
1417
|
+
impression_count?: number | undefined;
|
|
1418
|
+
bookmark_count?: number | undefined;
|
|
1419
|
+
};
|
|
1420
|
+
possibly_sensitive: boolean;
|
|
1421
|
+
source?: string | undefined;
|
|
1422
|
+
conversation_id?: string | undefined;
|
|
1423
|
+
in_reply_to_user_id?: string | undefined;
|
|
1424
|
+
lang?: string | undefined;
|
|
1425
|
+
referenced_tweets?: {
|
|
1426
|
+
id: string;
|
|
1427
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1428
|
+
}[] | undefined;
|
|
1429
|
+
attachments?: {
|
|
1430
|
+
media_keys?: string[] | undefined;
|
|
1431
|
+
poll_ids?: string[] | undefined;
|
|
1432
|
+
} | undefined;
|
|
1433
|
+
entities?: {
|
|
1434
|
+
urls?: {
|
|
1435
|
+
url: string;
|
|
1436
|
+
start: number;
|
|
1437
|
+
end: number;
|
|
1438
|
+
description?: string | undefined;
|
|
1439
|
+
title?: string | undefined;
|
|
1440
|
+
expanded_url?: string | undefined;
|
|
1441
|
+
display_url?: string | undefined;
|
|
1442
|
+
}[] | undefined;
|
|
1443
|
+
mentions?: {
|
|
1444
|
+
id: string;
|
|
1445
|
+
username: string;
|
|
1446
|
+
start: number;
|
|
1447
|
+
end: number;
|
|
1448
|
+
}[] | undefined;
|
|
1449
|
+
hashtags?: {
|
|
1450
|
+
tag: string;
|
|
1451
|
+
start: number;
|
|
1452
|
+
end: number;
|
|
1453
|
+
}[] | undefined;
|
|
1454
|
+
} | undefined;
|
|
1455
|
+
}, {
|
|
1456
|
+
id: string;
|
|
1457
|
+
text: string;
|
|
1458
|
+
created_at: string;
|
|
1459
|
+
author_id: string;
|
|
1460
|
+
public_metrics: {
|
|
1461
|
+
retweet_count?: number | undefined;
|
|
1462
|
+
reply_count?: number | undefined;
|
|
1463
|
+
like_count?: number | undefined;
|
|
1464
|
+
quote_count?: number | undefined;
|
|
1465
|
+
impression_count?: number | undefined;
|
|
1466
|
+
bookmark_count?: number | undefined;
|
|
1467
|
+
};
|
|
1468
|
+
source?: string | undefined;
|
|
1469
|
+
conversation_id?: string | undefined;
|
|
1470
|
+
in_reply_to_user_id?: string | undefined;
|
|
1471
|
+
possibly_sensitive?: boolean | undefined;
|
|
1472
|
+
lang?: string | undefined;
|
|
1473
|
+
referenced_tweets?: {
|
|
1474
|
+
id: string;
|
|
1475
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1476
|
+
}[] | undefined;
|
|
1477
|
+
attachments?: {
|
|
1478
|
+
media_keys?: string[] | undefined;
|
|
1479
|
+
poll_ids?: string[] | undefined;
|
|
1480
|
+
} | undefined;
|
|
1481
|
+
entities?: {
|
|
1482
|
+
urls?: {
|
|
1483
|
+
url: string;
|
|
1484
|
+
start: number;
|
|
1485
|
+
end: number;
|
|
1486
|
+
description?: string | undefined;
|
|
1487
|
+
title?: string | undefined;
|
|
1488
|
+
expanded_url?: string | undefined;
|
|
1489
|
+
display_url?: string | undefined;
|
|
1490
|
+
}[] | undefined;
|
|
1491
|
+
mentions?: {
|
|
1492
|
+
id: string;
|
|
1493
|
+
username: string;
|
|
1494
|
+
start: number;
|
|
1495
|
+
end: number;
|
|
1496
|
+
}[] | undefined;
|
|
1497
|
+
hashtags?: {
|
|
1498
|
+
tag: string;
|
|
1499
|
+
start: number;
|
|
1500
|
+
end: number;
|
|
1501
|
+
}[] | undefined;
|
|
1502
|
+
} | undefined;
|
|
1503
|
+
}>, "many">;
|
|
1504
|
+
media: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1505
|
+
media_key: z.ZodString;
|
|
1506
|
+
type: z.ZodEnum<["photo", "video", "animated_gif"]>;
|
|
1507
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1508
|
+
preview_image_url: z.ZodOptional<z.ZodString>;
|
|
1509
|
+
alt_text: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
1511
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1512
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1513
|
+
}, "strip", z.ZodTypeAny, {
|
|
1514
|
+
type: "photo" | "video" | "animated_gif";
|
|
1515
|
+
media_key: string;
|
|
1516
|
+
url?: string | undefined;
|
|
1517
|
+
preview_image_url?: string | undefined;
|
|
1518
|
+
alt_text?: string | undefined;
|
|
1519
|
+
duration_ms?: number | undefined;
|
|
1520
|
+
width?: number | undefined;
|
|
1521
|
+
height?: number | undefined;
|
|
1522
|
+
}, {
|
|
1523
|
+
type: "photo" | "video" | "animated_gif";
|
|
1524
|
+
media_key: string;
|
|
1525
|
+
url?: string | undefined;
|
|
1526
|
+
preview_image_url?: string | undefined;
|
|
1527
|
+
alt_text?: string | undefined;
|
|
1528
|
+
duration_ms?: number | undefined;
|
|
1529
|
+
width?: number | undefined;
|
|
1530
|
+
height?: number | undefined;
|
|
1531
|
+
}>, "many">>;
|
|
1532
|
+
total_tweets: z.ZodNumber;
|
|
1533
|
+
oldest_tweet_id: z.ZodOptional<z.ZodString>;
|
|
1534
|
+
newest_tweet_id: z.ZodOptional<z.ZodString>;
|
|
1535
|
+
fetched_at: z.ZodString;
|
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
|
1537
|
+
user_id: string;
|
|
1538
|
+
media: {
|
|
1539
|
+
type: "photo" | "video" | "animated_gif";
|
|
1540
|
+
media_key: string;
|
|
1541
|
+
url?: string | undefined;
|
|
1542
|
+
preview_image_url?: string | undefined;
|
|
1543
|
+
alt_text?: string | undefined;
|
|
1544
|
+
duration_ms?: number | undefined;
|
|
1545
|
+
width?: number | undefined;
|
|
1546
|
+
height?: number | undefined;
|
|
1547
|
+
}[];
|
|
1548
|
+
fetched_at: string;
|
|
1549
|
+
username: string;
|
|
1550
|
+
tweets: {
|
|
1551
|
+
id: string;
|
|
1552
|
+
text: string;
|
|
1553
|
+
created_at: string;
|
|
1554
|
+
author_id: string;
|
|
1555
|
+
public_metrics: {
|
|
1556
|
+
retweet_count: number;
|
|
1557
|
+
reply_count: number;
|
|
1558
|
+
like_count: number;
|
|
1559
|
+
quote_count: number;
|
|
1560
|
+
impression_count?: number | undefined;
|
|
1561
|
+
bookmark_count?: number | undefined;
|
|
1562
|
+
};
|
|
1563
|
+
possibly_sensitive: boolean;
|
|
1564
|
+
source?: string | undefined;
|
|
1565
|
+
conversation_id?: string | undefined;
|
|
1566
|
+
in_reply_to_user_id?: string | undefined;
|
|
1567
|
+
lang?: string | undefined;
|
|
1568
|
+
referenced_tweets?: {
|
|
1569
|
+
id: string;
|
|
1570
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1571
|
+
}[] | undefined;
|
|
1572
|
+
attachments?: {
|
|
1573
|
+
media_keys?: string[] | undefined;
|
|
1574
|
+
poll_ids?: string[] | undefined;
|
|
1575
|
+
} | undefined;
|
|
1576
|
+
entities?: {
|
|
1577
|
+
urls?: {
|
|
1578
|
+
url: string;
|
|
1579
|
+
start: number;
|
|
1580
|
+
end: number;
|
|
1581
|
+
description?: string | undefined;
|
|
1582
|
+
title?: string | undefined;
|
|
1583
|
+
expanded_url?: string | undefined;
|
|
1584
|
+
display_url?: string | undefined;
|
|
1585
|
+
}[] | undefined;
|
|
1586
|
+
mentions?: {
|
|
1587
|
+
id: string;
|
|
1588
|
+
username: string;
|
|
1589
|
+
start: number;
|
|
1590
|
+
end: number;
|
|
1591
|
+
}[] | undefined;
|
|
1592
|
+
hashtags?: {
|
|
1593
|
+
tag: string;
|
|
1594
|
+
start: number;
|
|
1595
|
+
end: number;
|
|
1596
|
+
}[] | undefined;
|
|
1597
|
+
} | undefined;
|
|
1598
|
+
}[];
|
|
1599
|
+
total_tweets: number;
|
|
1600
|
+
oldest_tweet_id?: string | undefined;
|
|
1601
|
+
newest_tweet_id?: string | undefined;
|
|
1602
|
+
}, {
|
|
1603
|
+
user_id: string;
|
|
1604
|
+
fetched_at: string;
|
|
1605
|
+
username: string;
|
|
1606
|
+
tweets: {
|
|
1607
|
+
id: string;
|
|
1608
|
+
text: string;
|
|
1609
|
+
created_at: string;
|
|
1610
|
+
author_id: string;
|
|
1611
|
+
public_metrics: {
|
|
1612
|
+
retweet_count?: number | undefined;
|
|
1613
|
+
reply_count?: number | undefined;
|
|
1614
|
+
like_count?: number | undefined;
|
|
1615
|
+
quote_count?: number | undefined;
|
|
1616
|
+
impression_count?: number | undefined;
|
|
1617
|
+
bookmark_count?: number | undefined;
|
|
1618
|
+
};
|
|
1619
|
+
source?: string | undefined;
|
|
1620
|
+
conversation_id?: string | undefined;
|
|
1621
|
+
in_reply_to_user_id?: string | undefined;
|
|
1622
|
+
possibly_sensitive?: boolean | undefined;
|
|
1623
|
+
lang?: string | undefined;
|
|
1624
|
+
referenced_tweets?: {
|
|
1625
|
+
id: string;
|
|
1626
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
1627
|
+
}[] | undefined;
|
|
1628
|
+
attachments?: {
|
|
1629
|
+
media_keys?: string[] | undefined;
|
|
1630
|
+
poll_ids?: string[] | undefined;
|
|
1631
|
+
} | undefined;
|
|
1632
|
+
entities?: {
|
|
1633
|
+
urls?: {
|
|
1634
|
+
url: string;
|
|
1635
|
+
start: number;
|
|
1636
|
+
end: number;
|
|
1637
|
+
description?: string | undefined;
|
|
1638
|
+
title?: string | undefined;
|
|
1639
|
+
expanded_url?: string | undefined;
|
|
1640
|
+
display_url?: string | undefined;
|
|
1641
|
+
}[] | undefined;
|
|
1642
|
+
mentions?: {
|
|
1643
|
+
id: string;
|
|
1644
|
+
username: string;
|
|
1645
|
+
start: number;
|
|
1646
|
+
end: number;
|
|
1647
|
+
}[] | undefined;
|
|
1648
|
+
hashtags?: {
|
|
1649
|
+
tag: string;
|
|
1650
|
+
start: number;
|
|
1651
|
+
end: number;
|
|
1652
|
+
}[] | undefined;
|
|
1653
|
+
} | undefined;
|
|
1654
|
+
}[];
|
|
1655
|
+
total_tweets: number;
|
|
1656
|
+
media?: {
|
|
1657
|
+
type: "photo" | "video" | "animated_gif";
|
|
1658
|
+
media_key: string;
|
|
1659
|
+
url?: string | undefined;
|
|
1660
|
+
preview_image_url?: string | undefined;
|
|
1661
|
+
alt_text?: string | undefined;
|
|
1662
|
+
duration_ms?: number | undefined;
|
|
1663
|
+
width?: number | undefined;
|
|
1664
|
+
height?: number | undefined;
|
|
1665
|
+
}[] | undefined;
|
|
1666
|
+
oldest_tweet_id?: string | undefined;
|
|
1667
|
+
newest_tweet_id?: string | undefined;
|
|
1668
|
+
}>;
|
|
1669
|
+
type TweetMetrics = z.infer<typeof TweetMetricsSchema>;
|
|
1670
|
+
type TweetMedia = z.infer<typeof TweetMediaSchema>;
|
|
1671
|
+
type TweetUrl = z.infer<typeof TweetUrlSchema>;
|
|
1672
|
+
type TwitterTweet = z.infer<typeof TwitterTweetSchema>;
|
|
1673
|
+
type TwitterTweetsStore = z.infer<typeof TwitterTweetsStoreSchema>;
|
|
1674
|
+
|
|
1675
|
+
export { type AccountId, type Brand, type ConnectionId, type GitHubMetaStore, GitHubMetaStoreSchema, type GitHubRepoCommit, GitHubRepoCommitSchema, type GitHubRepoCommitsStore, GitHubRepoCommitsStoreSchema, type GitHubRepoMeta, GitHubRepoMetaSchema, type GitHubRepoPR, GitHubRepoPRSchema, type GitHubRepoPRsStore, GitHubRepoPRsStoreSchema, type ProfileId, type RedditComment, RedditCommentSchema, type RedditCommentsStore, RedditCommentsStoreSchema, type RedditMetaStore, RedditMetaStoreSchema, type RedditPost, RedditPostSchema, type RedditPostsStore, RedditPostsStoreSchema, type TweetMedia, TweetMediaSchema, type TweetMetrics, TweetMetricsSchema, type TweetUrl, TweetUrlSchema, type TwitterMetaStore, TwitterMetaStoreSchema, type TwitterTweet, TwitterTweetSchema, type TwitterTweetsStore, TwitterTweetsStoreSchema, type TwitterUserMetrics, TwitterUserMetricsSchema, type UserId, accountId, connectionId, isValidId, profileId, userId };
|