@llun/activities.schema 0.2.22 → 0.2.24
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/cjs/mastodon/mediaAttachment/base.js +1 -1
- package/dist/cjs/mastodon/mediaAttachment/index.js +8 -1
- package/dist/esm/mastodon/mediaAttachment/base.js +1 -1
- package/dist/esm/mastodon/mediaAttachment/index.js +7 -0
- package/dist/types/mastodon/mediaAttachment/audio.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/base.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/gifv.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/image.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/index.d.ts +595 -15
- package/dist/types/mastodon/mediaAttachment/unknown.d.ts +3 -3
- package/dist/types/mastodon/mediaAttachment/video.d.ts +3 -3
- package/dist/types/mastodon/status/base.d.ts +25 -25
- package/dist/types/mastodon/status/index.d.ts +60 -60
- package/package.json +1 -1
- package/src/mastodon/mediaAttachment/base.ts +1 -1
- package/src/mastodon/mediaAttachment/index.ts +8 -0
|
@@ -1,11 +1,591 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const MediaTypes: {
|
|
3
|
+
Gifv: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
7
|
+
remote_url: z.ZodNullable<z.ZodString>;
|
|
8
|
+
description: z.ZodNullable<z.ZodString>;
|
|
9
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, {
|
|
11
|
+
type: z.ZodLiteral<"gifv">;
|
|
12
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
fps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
size: z.ZodString;
|
|
17
|
+
width: z.ZodNumber;
|
|
18
|
+
height: z.ZodNumber;
|
|
19
|
+
aspect: z.ZodNumber;
|
|
20
|
+
original: z.ZodObject<{
|
|
21
|
+
width: z.ZodNumber;
|
|
22
|
+
height: z.ZodNumber;
|
|
23
|
+
frame_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
duration?: number | null | undefined;
|
|
30
|
+
frame_rate?: string | null | undefined;
|
|
31
|
+
bitrate?: number | null | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
duration?: number | null | undefined;
|
|
36
|
+
frame_rate?: string | null | undefined;
|
|
37
|
+
bitrate?: number | null | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
width: z.ZodNumber;
|
|
41
|
+
height: z.ZodNumber;
|
|
42
|
+
size: z.ZodString;
|
|
43
|
+
aspect: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
size: string;
|
|
48
|
+
aspect: number;
|
|
49
|
+
}, {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
size: string;
|
|
53
|
+
aspect: number;
|
|
54
|
+
}>>>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
size: string;
|
|
59
|
+
aspect: number;
|
|
60
|
+
original: {
|
|
61
|
+
width: number;
|
|
62
|
+
height: number;
|
|
63
|
+
duration?: number | null | undefined;
|
|
64
|
+
frame_rate?: string | null | undefined;
|
|
65
|
+
bitrate?: number | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
length?: string | null | undefined;
|
|
68
|
+
duration?: number | null | undefined;
|
|
69
|
+
fps?: number | null | undefined;
|
|
70
|
+
small?: {
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
size: string;
|
|
74
|
+
aspect: number;
|
|
75
|
+
} | null | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
width: number;
|
|
78
|
+
height: number;
|
|
79
|
+
size: string;
|
|
80
|
+
aspect: number;
|
|
81
|
+
original: {
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
duration?: number | null | undefined;
|
|
85
|
+
frame_rate?: string | null | undefined;
|
|
86
|
+
bitrate?: number | null | undefined;
|
|
87
|
+
};
|
|
88
|
+
length?: string | null | undefined;
|
|
89
|
+
duration?: number | null | undefined;
|
|
90
|
+
fps?: number | null | undefined;
|
|
91
|
+
small?: {
|
|
92
|
+
width: number;
|
|
93
|
+
height: number;
|
|
94
|
+
size: string;
|
|
95
|
+
aspect: number;
|
|
96
|
+
} | null | undefined;
|
|
97
|
+
}>>>;
|
|
98
|
+
}>, "strip", z.ZodTypeAny, {
|
|
99
|
+
id: string;
|
|
100
|
+
type: "gifv";
|
|
101
|
+
description: string | null;
|
|
102
|
+
url: string;
|
|
103
|
+
blurhash: string | null;
|
|
104
|
+
preview_url: string | null;
|
|
105
|
+
remote_url: string | null;
|
|
106
|
+
meta?: {
|
|
107
|
+
width: number;
|
|
108
|
+
height: number;
|
|
109
|
+
size: string;
|
|
110
|
+
aspect: number;
|
|
111
|
+
original: {
|
|
112
|
+
width: number;
|
|
113
|
+
height: number;
|
|
114
|
+
duration?: number | null | undefined;
|
|
115
|
+
frame_rate?: string | null | undefined;
|
|
116
|
+
bitrate?: number | null | undefined;
|
|
117
|
+
};
|
|
118
|
+
length?: string | null | undefined;
|
|
119
|
+
duration?: number | null | undefined;
|
|
120
|
+
fps?: number | null | undefined;
|
|
121
|
+
small?: {
|
|
122
|
+
width: number;
|
|
123
|
+
height: number;
|
|
124
|
+
size: string;
|
|
125
|
+
aspect: number;
|
|
126
|
+
} | null | undefined;
|
|
127
|
+
} | null | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
id: string;
|
|
130
|
+
type: "gifv";
|
|
131
|
+
description: string | null;
|
|
132
|
+
url: string;
|
|
133
|
+
blurhash: string | null;
|
|
134
|
+
preview_url: string | null;
|
|
135
|
+
remote_url: string | null;
|
|
136
|
+
meta?: {
|
|
137
|
+
width: number;
|
|
138
|
+
height: number;
|
|
139
|
+
size: string;
|
|
140
|
+
aspect: number;
|
|
141
|
+
original: {
|
|
142
|
+
width: number;
|
|
143
|
+
height: number;
|
|
144
|
+
duration?: number | null | undefined;
|
|
145
|
+
frame_rate?: string | null | undefined;
|
|
146
|
+
bitrate?: number | null | undefined;
|
|
147
|
+
};
|
|
148
|
+
length?: string | null | undefined;
|
|
149
|
+
duration?: number | null | undefined;
|
|
150
|
+
fps?: number | null | undefined;
|
|
151
|
+
small?: {
|
|
152
|
+
width: number;
|
|
153
|
+
height: number;
|
|
154
|
+
size: string;
|
|
155
|
+
aspect: number;
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
} | null | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
Image: z.ZodObject<z.objectUtil.extendShape<{
|
|
160
|
+
id: z.ZodString;
|
|
161
|
+
url: z.ZodString;
|
|
162
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
163
|
+
remote_url: z.ZodNullable<z.ZodString>;
|
|
164
|
+
description: z.ZodNullable<z.ZodString>;
|
|
165
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
166
|
+
}, {
|
|
167
|
+
type: z.ZodLiteral<"image">;
|
|
168
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
169
|
+
original: z.ZodObject<{
|
|
170
|
+
width: z.ZodNumber;
|
|
171
|
+
height: z.ZodNumber;
|
|
172
|
+
size: z.ZodString;
|
|
173
|
+
aspect: z.ZodNumber;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
width: number;
|
|
176
|
+
height: number;
|
|
177
|
+
size: string;
|
|
178
|
+
aspect: number;
|
|
179
|
+
}, {
|
|
180
|
+
width: number;
|
|
181
|
+
height: number;
|
|
182
|
+
size: string;
|
|
183
|
+
aspect: number;
|
|
184
|
+
}>;
|
|
185
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
186
|
+
width: z.ZodNumber;
|
|
187
|
+
height: z.ZodNumber;
|
|
188
|
+
size: z.ZodString;
|
|
189
|
+
aspect: z.ZodNumber;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
width: number;
|
|
192
|
+
height: number;
|
|
193
|
+
size: string;
|
|
194
|
+
aspect: number;
|
|
195
|
+
}, {
|
|
196
|
+
width: number;
|
|
197
|
+
height: number;
|
|
198
|
+
size: string;
|
|
199
|
+
aspect: number;
|
|
200
|
+
}>>>;
|
|
201
|
+
focus: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
202
|
+
x: z.ZodNumber;
|
|
203
|
+
y: z.ZodNumber;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
x: number;
|
|
206
|
+
y: number;
|
|
207
|
+
}, {
|
|
208
|
+
x: number;
|
|
209
|
+
y: number;
|
|
210
|
+
}>>>;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
original: {
|
|
213
|
+
width: number;
|
|
214
|
+
height: number;
|
|
215
|
+
size: string;
|
|
216
|
+
aspect: number;
|
|
217
|
+
};
|
|
218
|
+
small?: {
|
|
219
|
+
width: number;
|
|
220
|
+
height: number;
|
|
221
|
+
size: string;
|
|
222
|
+
aspect: number;
|
|
223
|
+
} | null | undefined;
|
|
224
|
+
focus?: {
|
|
225
|
+
x: number;
|
|
226
|
+
y: number;
|
|
227
|
+
} | null | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
original: {
|
|
230
|
+
width: number;
|
|
231
|
+
height: number;
|
|
232
|
+
size: string;
|
|
233
|
+
aspect: number;
|
|
234
|
+
};
|
|
235
|
+
small?: {
|
|
236
|
+
width: number;
|
|
237
|
+
height: number;
|
|
238
|
+
size: string;
|
|
239
|
+
aspect: number;
|
|
240
|
+
} | null | undefined;
|
|
241
|
+
focus?: {
|
|
242
|
+
x: number;
|
|
243
|
+
y: number;
|
|
244
|
+
} | null | undefined;
|
|
245
|
+
}>>>;
|
|
246
|
+
}>, "strip", z.ZodTypeAny, {
|
|
247
|
+
id: string;
|
|
248
|
+
type: "image";
|
|
249
|
+
description: string | null;
|
|
250
|
+
url: string;
|
|
251
|
+
blurhash: string | null;
|
|
252
|
+
preview_url: string | null;
|
|
253
|
+
remote_url: string | null;
|
|
254
|
+
meta?: {
|
|
255
|
+
original: {
|
|
256
|
+
width: number;
|
|
257
|
+
height: number;
|
|
258
|
+
size: string;
|
|
259
|
+
aspect: number;
|
|
260
|
+
};
|
|
261
|
+
small?: {
|
|
262
|
+
width: number;
|
|
263
|
+
height: number;
|
|
264
|
+
size: string;
|
|
265
|
+
aspect: number;
|
|
266
|
+
} | null | undefined;
|
|
267
|
+
focus?: {
|
|
268
|
+
x: number;
|
|
269
|
+
y: number;
|
|
270
|
+
} | null | undefined;
|
|
271
|
+
} | null | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
id: string;
|
|
274
|
+
type: "image";
|
|
275
|
+
description: string | null;
|
|
276
|
+
url: string;
|
|
277
|
+
blurhash: string | null;
|
|
278
|
+
preview_url: string | null;
|
|
279
|
+
remote_url: string | null;
|
|
280
|
+
meta?: {
|
|
281
|
+
original: {
|
|
282
|
+
width: number;
|
|
283
|
+
height: number;
|
|
284
|
+
size: string;
|
|
285
|
+
aspect: number;
|
|
286
|
+
};
|
|
287
|
+
small?: {
|
|
288
|
+
width: number;
|
|
289
|
+
height: number;
|
|
290
|
+
size: string;
|
|
291
|
+
aspect: number;
|
|
292
|
+
} | null | undefined;
|
|
293
|
+
focus?: {
|
|
294
|
+
x: number;
|
|
295
|
+
y: number;
|
|
296
|
+
} | null | undefined;
|
|
297
|
+
} | null | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
Video: z.ZodObject<z.objectUtil.extendShape<{
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
url: z.ZodString;
|
|
302
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
303
|
+
remote_url: z.ZodNullable<z.ZodString>;
|
|
304
|
+
description: z.ZodNullable<z.ZodString>;
|
|
305
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
306
|
+
}, {
|
|
307
|
+
type: z.ZodLiteral<"video">;
|
|
308
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
309
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
311
|
+
fps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
312
|
+
size: z.ZodString;
|
|
313
|
+
width: z.ZodNumber;
|
|
314
|
+
height: z.ZodNumber;
|
|
315
|
+
aspect: z.ZodNumber;
|
|
316
|
+
audio_encode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
audio_bitrate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
audio_channels: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
original: z.ZodObject<{
|
|
320
|
+
width: z.ZodNumber;
|
|
321
|
+
height: z.ZodNumber;
|
|
322
|
+
frame_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
324
|
+
bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
326
|
+
width: number;
|
|
327
|
+
height: number;
|
|
328
|
+
duration?: number | null | undefined;
|
|
329
|
+
frame_rate?: string | null | undefined;
|
|
330
|
+
bitrate?: number | null | undefined;
|
|
331
|
+
}, {
|
|
332
|
+
width: number;
|
|
333
|
+
height: number;
|
|
334
|
+
duration?: number | null | undefined;
|
|
335
|
+
frame_rate?: string | null | undefined;
|
|
336
|
+
bitrate?: number | null | undefined;
|
|
337
|
+
}>;
|
|
338
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
339
|
+
width: z.ZodNumber;
|
|
340
|
+
height: z.ZodNumber;
|
|
341
|
+
size: z.ZodString;
|
|
342
|
+
aspect: z.ZodNumber;
|
|
343
|
+
}, "strip", z.ZodTypeAny, {
|
|
344
|
+
width: number;
|
|
345
|
+
height: number;
|
|
346
|
+
size: string;
|
|
347
|
+
aspect: number;
|
|
348
|
+
}, {
|
|
349
|
+
width: number;
|
|
350
|
+
height: number;
|
|
351
|
+
size: string;
|
|
352
|
+
aspect: number;
|
|
353
|
+
}>>>;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
width: number;
|
|
356
|
+
height: number;
|
|
357
|
+
size: string;
|
|
358
|
+
aspect: number;
|
|
359
|
+
original: {
|
|
360
|
+
width: number;
|
|
361
|
+
height: number;
|
|
362
|
+
duration?: number | null | undefined;
|
|
363
|
+
frame_rate?: string | null | undefined;
|
|
364
|
+
bitrate?: number | null | undefined;
|
|
365
|
+
};
|
|
366
|
+
length?: string | null | undefined;
|
|
367
|
+
duration?: number | null | undefined;
|
|
368
|
+
fps?: number | null | undefined;
|
|
369
|
+
small?: {
|
|
370
|
+
width: number;
|
|
371
|
+
height: number;
|
|
372
|
+
size: string;
|
|
373
|
+
aspect: number;
|
|
374
|
+
} | null | undefined;
|
|
375
|
+
audio_encode?: string | null | undefined;
|
|
376
|
+
audio_bitrate?: string | null | undefined;
|
|
377
|
+
audio_channels?: string | null | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
width: number;
|
|
380
|
+
height: number;
|
|
381
|
+
size: string;
|
|
382
|
+
aspect: number;
|
|
383
|
+
original: {
|
|
384
|
+
width: number;
|
|
385
|
+
height: number;
|
|
386
|
+
duration?: number | null | undefined;
|
|
387
|
+
frame_rate?: string | null | undefined;
|
|
388
|
+
bitrate?: number | null | undefined;
|
|
389
|
+
};
|
|
390
|
+
length?: string | null | undefined;
|
|
391
|
+
duration?: number | null | undefined;
|
|
392
|
+
fps?: number | null | undefined;
|
|
393
|
+
small?: {
|
|
394
|
+
width: number;
|
|
395
|
+
height: number;
|
|
396
|
+
size: string;
|
|
397
|
+
aspect: number;
|
|
398
|
+
} | null | undefined;
|
|
399
|
+
audio_encode?: string | null | undefined;
|
|
400
|
+
audio_bitrate?: string | null | undefined;
|
|
401
|
+
audio_channels?: string | null | undefined;
|
|
402
|
+
}>>>;
|
|
403
|
+
}>, "strip", z.ZodTypeAny, {
|
|
404
|
+
id: string;
|
|
405
|
+
type: "video";
|
|
406
|
+
description: string | null;
|
|
407
|
+
url: string;
|
|
408
|
+
blurhash: string | null;
|
|
409
|
+
preview_url: string | null;
|
|
410
|
+
remote_url: string | null;
|
|
411
|
+
meta?: {
|
|
412
|
+
width: number;
|
|
413
|
+
height: number;
|
|
414
|
+
size: string;
|
|
415
|
+
aspect: number;
|
|
416
|
+
original: {
|
|
417
|
+
width: number;
|
|
418
|
+
height: number;
|
|
419
|
+
duration?: number | null | undefined;
|
|
420
|
+
frame_rate?: string | null | undefined;
|
|
421
|
+
bitrate?: number | null | undefined;
|
|
422
|
+
};
|
|
423
|
+
length?: string | null | undefined;
|
|
424
|
+
duration?: number | null | undefined;
|
|
425
|
+
fps?: number | null | undefined;
|
|
426
|
+
small?: {
|
|
427
|
+
width: number;
|
|
428
|
+
height: number;
|
|
429
|
+
size: string;
|
|
430
|
+
aspect: number;
|
|
431
|
+
} | null | undefined;
|
|
432
|
+
audio_encode?: string | null | undefined;
|
|
433
|
+
audio_bitrate?: string | null | undefined;
|
|
434
|
+
audio_channels?: string | null | undefined;
|
|
435
|
+
} | null | undefined;
|
|
436
|
+
}, {
|
|
437
|
+
id: string;
|
|
438
|
+
type: "video";
|
|
439
|
+
description: string | null;
|
|
440
|
+
url: string;
|
|
441
|
+
blurhash: string | null;
|
|
442
|
+
preview_url: string | null;
|
|
443
|
+
remote_url: string | null;
|
|
444
|
+
meta?: {
|
|
445
|
+
width: number;
|
|
446
|
+
height: number;
|
|
447
|
+
size: string;
|
|
448
|
+
aspect: number;
|
|
449
|
+
original: {
|
|
450
|
+
width: number;
|
|
451
|
+
height: number;
|
|
452
|
+
duration?: number | null | undefined;
|
|
453
|
+
frame_rate?: string | null | undefined;
|
|
454
|
+
bitrate?: number | null | undefined;
|
|
455
|
+
};
|
|
456
|
+
length?: string | null | undefined;
|
|
457
|
+
duration?: number | null | undefined;
|
|
458
|
+
fps?: number | null | undefined;
|
|
459
|
+
small?: {
|
|
460
|
+
width: number;
|
|
461
|
+
height: number;
|
|
462
|
+
size: string;
|
|
463
|
+
aspect: number;
|
|
464
|
+
} | null | undefined;
|
|
465
|
+
audio_encode?: string | null | undefined;
|
|
466
|
+
audio_bitrate?: string | null | undefined;
|
|
467
|
+
audio_channels?: string | null | undefined;
|
|
468
|
+
} | null | undefined;
|
|
469
|
+
}>;
|
|
470
|
+
Audio: z.ZodObject<z.objectUtil.extendShape<{
|
|
471
|
+
id: z.ZodString;
|
|
472
|
+
url: z.ZodString;
|
|
473
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
474
|
+
remote_url: z.ZodNullable<z.ZodString>;
|
|
475
|
+
description: z.ZodNullable<z.ZodString>;
|
|
476
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
477
|
+
}, {
|
|
478
|
+
type: z.ZodLiteral<"audio">;
|
|
479
|
+
meta: z.ZodObject<{
|
|
480
|
+
length: z.ZodString;
|
|
481
|
+
duration: z.ZodNumber;
|
|
482
|
+
audio_encode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
|
+
audio_bitrate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
484
|
+
audio_channels: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
|
+
original: z.ZodObject<{
|
|
486
|
+
duration: z.ZodNumber;
|
|
487
|
+
bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
489
|
+
duration: number;
|
|
490
|
+
bitrate?: number | null | undefined;
|
|
491
|
+
}, {
|
|
492
|
+
duration: number;
|
|
493
|
+
bitrate?: number | null | undefined;
|
|
494
|
+
}>;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
length: string;
|
|
497
|
+
duration: number;
|
|
498
|
+
original: {
|
|
499
|
+
duration: number;
|
|
500
|
+
bitrate?: number | null | undefined;
|
|
501
|
+
};
|
|
502
|
+
audio_encode?: string | null | undefined;
|
|
503
|
+
audio_bitrate?: string | null | undefined;
|
|
504
|
+
audio_channels?: string | null | undefined;
|
|
505
|
+
}, {
|
|
506
|
+
length: string;
|
|
507
|
+
duration: number;
|
|
508
|
+
original: {
|
|
509
|
+
duration: number;
|
|
510
|
+
bitrate?: number | null | undefined;
|
|
511
|
+
};
|
|
512
|
+
audio_encode?: string | null | undefined;
|
|
513
|
+
audio_bitrate?: string | null | undefined;
|
|
514
|
+
audio_channels?: string | null | undefined;
|
|
515
|
+
}>;
|
|
516
|
+
}>, "strip", z.ZodTypeAny, {
|
|
517
|
+
id: string;
|
|
518
|
+
type: "audio";
|
|
519
|
+
description: string | null;
|
|
520
|
+
url: string;
|
|
521
|
+
blurhash: string | null;
|
|
522
|
+
preview_url: string | null;
|
|
523
|
+
remote_url: string | null;
|
|
524
|
+
meta: {
|
|
525
|
+
length: string;
|
|
526
|
+
duration: number;
|
|
527
|
+
original: {
|
|
528
|
+
duration: number;
|
|
529
|
+
bitrate?: number | null | undefined;
|
|
530
|
+
};
|
|
531
|
+
audio_encode?: string | null | undefined;
|
|
532
|
+
audio_bitrate?: string | null | undefined;
|
|
533
|
+
audio_channels?: string | null | undefined;
|
|
534
|
+
};
|
|
535
|
+
}, {
|
|
536
|
+
id: string;
|
|
537
|
+
type: "audio";
|
|
538
|
+
description: string | null;
|
|
539
|
+
url: string;
|
|
540
|
+
blurhash: string | null;
|
|
541
|
+
preview_url: string | null;
|
|
542
|
+
remote_url: string | null;
|
|
543
|
+
meta: {
|
|
544
|
+
length: string;
|
|
545
|
+
duration: number;
|
|
546
|
+
original: {
|
|
547
|
+
duration: number;
|
|
548
|
+
bitrate?: number | null | undefined;
|
|
549
|
+
};
|
|
550
|
+
audio_encode?: string | null | undefined;
|
|
551
|
+
audio_bitrate?: string | null | undefined;
|
|
552
|
+
audio_channels?: string | null | undefined;
|
|
553
|
+
};
|
|
554
|
+
}>;
|
|
555
|
+
Unknown: z.ZodObject<z.objectUtil.extendShape<{
|
|
556
|
+
id: z.ZodString;
|
|
557
|
+
url: z.ZodString;
|
|
558
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
559
|
+
remote_url: z.ZodNullable<z.ZodString>;
|
|
560
|
+
description: z.ZodNullable<z.ZodString>;
|
|
561
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
562
|
+
}, {
|
|
563
|
+
type: z.ZodLiteral<"unknown">;
|
|
564
|
+
}>, "strip", z.ZodTypeAny, {
|
|
565
|
+
id: string;
|
|
566
|
+
type: "unknown";
|
|
567
|
+
description: string | null;
|
|
568
|
+
url: string;
|
|
569
|
+
blurhash: string | null;
|
|
570
|
+
preview_url: string | null;
|
|
571
|
+
remote_url: string | null;
|
|
572
|
+
}, {
|
|
573
|
+
id: string;
|
|
574
|
+
type: "unknown";
|
|
575
|
+
description: string | null;
|
|
576
|
+
url: string;
|
|
577
|
+
blurhash: string | null;
|
|
578
|
+
preview_url: string | null;
|
|
579
|
+
remote_url: string | null;
|
|
580
|
+
}>;
|
|
581
|
+
};
|
|
2
582
|
export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
3
583
|
id: z.ZodString;
|
|
4
584
|
url: z.ZodString;
|
|
5
585
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
6
586
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
7
587
|
description: z.ZodNullable<z.ZodString>;
|
|
8
|
-
|
|
588
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
9
589
|
}, {
|
|
10
590
|
type: z.ZodLiteral<"image">;
|
|
11
591
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -91,9 +671,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
91
671
|
type: "image";
|
|
92
672
|
description: string | null;
|
|
93
673
|
url: string;
|
|
674
|
+
blurhash: string | null;
|
|
94
675
|
preview_url: string | null;
|
|
95
676
|
remote_url: string | null;
|
|
96
|
-
bluehash: string | null;
|
|
97
677
|
meta?: {
|
|
98
678
|
original: {
|
|
99
679
|
width: number;
|
|
@@ -117,9 +697,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
117
697
|
type: "image";
|
|
118
698
|
description: string | null;
|
|
119
699
|
url: string;
|
|
700
|
+
blurhash: string | null;
|
|
120
701
|
preview_url: string | null;
|
|
121
702
|
remote_url: string | null;
|
|
122
|
-
bluehash: string | null;
|
|
123
703
|
meta?: {
|
|
124
704
|
original: {
|
|
125
705
|
width: number;
|
|
@@ -144,7 +724,7 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
144
724
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
145
725
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
146
726
|
description: z.ZodNullable<z.ZodString>;
|
|
147
|
-
|
|
727
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
148
728
|
}, {
|
|
149
729
|
type: z.ZodLiteral<"gifv">;
|
|
150
730
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -238,9 +818,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
238
818
|
type: "gifv";
|
|
239
819
|
description: string | null;
|
|
240
820
|
url: string;
|
|
821
|
+
blurhash: string | null;
|
|
241
822
|
preview_url: string | null;
|
|
242
823
|
remote_url: string | null;
|
|
243
|
-
bluehash: string | null;
|
|
244
824
|
meta?: {
|
|
245
825
|
width: number;
|
|
246
826
|
height: number;
|
|
@@ -268,9 +848,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
268
848
|
type: "gifv";
|
|
269
849
|
description: string | null;
|
|
270
850
|
url: string;
|
|
851
|
+
blurhash: string | null;
|
|
271
852
|
preview_url: string | null;
|
|
272
853
|
remote_url: string | null;
|
|
273
|
-
bluehash: string | null;
|
|
274
854
|
meta?: {
|
|
275
855
|
width: number;
|
|
276
856
|
height: number;
|
|
@@ -299,7 +879,7 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
299
879
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
300
880
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
301
881
|
description: z.ZodNullable<z.ZodString>;
|
|
302
|
-
|
|
882
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
303
883
|
}, {
|
|
304
884
|
type: z.ZodLiteral<"video">;
|
|
305
885
|
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -402,9 +982,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
402
982
|
type: "video";
|
|
403
983
|
description: string | null;
|
|
404
984
|
url: string;
|
|
985
|
+
blurhash: string | null;
|
|
405
986
|
preview_url: string | null;
|
|
406
987
|
remote_url: string | null;
|
|
407
|
-
bluehash: string | null;
|
|
408
988
|
meta?: {
|
|
409
989
|
width: number;
|
|
410
990
|
height: number;
|
|
@@ -435,9 +1015,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
435
1015
|
type: "video";
|
|
436
1016
|
description: string | null;
|
|
437
1017
|
url: string;
|
|
1018
|
+
blurhash: string | null;
|
|
438
1019
|
preview_url: string | null;
|
|
439
1020
|
remote_url: string | null;
|
|
440
|
-
bluehash: string | null;
|
|
441
1021
|
meta?: {
|
|
442
1022
|
width: number;
|
|
443
1023
|
height: number;
|
|
@@ -469,7 +1049,7 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
469
1049
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
470
1050
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
471
1051
|
description: z.ZodNullable<z.ZodString>;
|
|
472
|
-
|
|
1052
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
473
1053
|
}, {
|
|
474
1054
|
type: z.ZodLiteral<"audio">;
|
|
475
1055
|
meta: z.ZodObject<{
|
|
@@ -514,9 +1094,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
514
1094
|
type: "audio";
|
|
515
1095
|
description: string | null;
|
|
516
1096
|
url: string;
|
|
1097
|
+
blurhash: string | null;
|
|
517
1098
|
preview_url: string | null;
|
|
518
1099
|
remote_url: string | null;
|
|
519
|
-
bluehash: string | null;
|
|
520
1100
|
meta: {
|
|
521
1101
|
length: string;
|
|
522
1102
|
duration: number;
|
|
@@ -533,9 +1113,9 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
533
1113
|
type: "audio";
|
|
534
1114
|
description: string | null;
|
|
535
1115
|
url: string;
|
|
1116
|
+
blurhash: string | null;
|
|
536
1117
|
preview_url: string | null;
|
|
537
1118
|
remote_url: string | null;
|
|
538
|
-
bluehash: string | null;
|
|
539
1119
|
meta: {
|
|
540
1120
|
length: string;
|
|
541
1121
|
duration: number;
|
|
@@ -553,7 +1133,7 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
553
1133
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
554
1134
|
remote_url: z.ZodNullable<z.ZodString>;
|
|
555
1135
|
description: z.ZodNullable<z.ZodString>;
|
|
556
|
-
|
|
1136
|
+
blurhash: z.ZodNullable<z.ZodString>;
|
|
557
1137
|
}, {
|
|
558
1138
|
type: z.ZodLiteral<"unknown">;
|
|
559
1139
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -561,16 +1141,16 @@ export declare const MediaAttachment: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
561
1141
|
type: "unknown";
|
|
562
1142
|
description: string | null;
|
|
563
1143
|
url: string;
|
|
1144
|
+
blurhash: string | null;
|
|
564
1145
|
preview_url: string | null;
|
|
565
1146
|
remote_url: string | null;
|
|
566
|
-
bluehash: string | null;
|
|
567
1147
|
}, {
|
|
568
1148
|
id: string;
|
|
569
1149
|
type: "unknown";
|
|
570
1150
|
description: string | null;
|
|
571
1151
|
url: string;
|
|
1152
|
+
blurhash: string | null;
|
|
572
1153
|
preview_url: string | null;
|
|
573
1154
|
remote_url: string | null;
|
|
574
|
-
bluehash: string | null;
|
|
575
1155
|
}>]>;
|
|
576
1156
|
export type MediaAttachment = z.infer<typeof MediaAttachment>;
|