@llun/activities.schema 0.2.20 → 0.2.22

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.
Files changed (50) hide show
  1. package/dist/cjs/mastodon/{accountField.js → account/field.js} +2 -2
  2. package/dist/cjs/mastodon/account/source.js +23 -0
  3. package/dist/cjs/mastodon/account.js +7 -2
  4. package/dist/cjs/mastodon/index.js +2 -1
  5. package/dist/cjs/mastodon/mediaAttachment/audio.js +4 -4
  6. package/dist/cjs/mastodon/mediaAttachment/base.js +8 -4
  7. package/dist/cjs/mastodon/mediaAttachment/gifv.js +10 -8
  8. package/dist/cjs/mastodon/mediaAttachment/image.js +4 -2
  9. package/dist/cjs/mastodon/mediaAttachment/video.js +13 -11
  10. package/dist/cjs/mastodon/status/base.js +1 -1
  11. package/dist/esm/mastodon/{accountField.js → account/field.js} +1 -1
  12. package/dist/esm/mastodon/account/source.js +20 -0
  13. package/dist/esm/mastodon/account.js +7 -2
  14. package/dist/esm/mastodon/index.js +2 -1
  15. package/dist/esm/mastodon/mediaAttachment/audio.js +4 -4
  16. package/dist/esm/mastodon/mediaAttachment/base.js +8 -4
  17. package/dist/esm/mastodon/mediaAttachment/gifv.js +10 -8
  18. package/dist/esm/mastodon/mediaAttachment/image.js +4 -2
  19. package/dist/esm/mastodon/mediaAttachment/video.js +13 -11
  20. package/dist/esm/mastodon/status/base.js +1 -1
  21. package/dist/types/mastodon/{accountField.d.ts → account/field.d.ts} +2 -2
  22. package/dist/types/mastodon/account/source.d.ts +44 -0
  23. package/dist/types/mastodon/account.d.ts +200 -36
  24. package/dist/types/mastodon/filter/index.d.ts +2 -2
  25. package/dist/types/mastodon/filterResult.d.ts +4 -4
  26. package/dist/types/mastodon/index.d.ts +2 -1
  27. package/dist/types/mastodon/mediaAttachment/audio.d.ts +28 -28
  28. package/dist/types/mastodon/mediaAttachment/base.d.ts +6 -6
  29. package/dist/types/mastodon/mediaAttachment/gifv.d.ts +48 -48
  30. package/dist/types/mastodon/mediaAttachment/image.d.ts +12 -12
  31. package/dist/types/mastodon/mediaAttachment/index.d.ts +157 -157
  32. package/dist/types/mastodon/mediaAttachment/unknown.d.ts +6 -6
  33. package/dist/types/mastodon/mediaAttachment/video.d.ts +63 -63
  34. package/dist/types/mastodon/status/base.d.ts +515 -299
  35. package/dist/types/mastodon/status/index.d.ts +1184 -700
  36. package/package.json +1 -1
  37. package/src/mastodon/{accountField.ts → account/field.ts} +2 -2
  38. package/src/mastodon/account/source.ts +24 -0
  39. package/src/mastodon/account.ts +9 -2
  40. package/src/mastodon/index.ts +2 -1
  41. package/src/mastodon/mediaAttachment/audio.ts +4 -4
  42. package/src/mastodon/mediaAttachment/base.ts +11 -7
  43. package/src/mastodon/mediaAttachment/gifv.ts +28 -26
  44. package/src/mastodon/mediaAttachment/image.ts +20 -18
  45. package/src/mastodon/mediaAttachment/video.ts +32 -30
  46. package/src/mastodon/status/base.ts +1 -1
  47. /package/dist/cjs/mastodon/{status/visibility.js → visibility.js} +0 -0
  48. /package/dist/esm/mastodon/{status/visibility.js → visibility.js} +0 -0
  49. /package/dist/types/mastodon/{status/visibility.d.ts → visibility.d.ts} +0 -0
  50. /package/src/mastodon/{status/visibility.ts → visibility.ts} +0 -0
@@ -4,6 +4,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
4
4
  username: z.ZodString;
5
5
  acct: z.ZodString;
6
6
  url: z.ZodString;
7
+ uri: z.ZodString;
7
8
  display_name: z.ZodString;
8
9
  note: z.ZodString;
9
10
  avatar: z.ZodString;
@@ -11,6 +12,48 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
11
12
  header: z.ZodString;
12
13
  header_static: z.ZodString;
13
14
  locked: z.ZodBoolean;
15
+ source: z.ZodObject<{
16
+ note: z.ZodString;
17
+ fields: z.ZodArray<z.ZodObject<{
18
+ name: z.ZodString;
19
+ value: z.ZodString;
20
+ verified_at: z.ZodNullable<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ value: string;
23
+ name: string;
24
+ verified_at: string | null;
25
+ }, {
26
+ value: string;
27
+ name: string;
28
+ verified_at: string | null;
29
+ }>, "many">;
30
+ privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
31
+ sensitive: z.ZodBoolean;
32
+ language: z.ZodString;
33
+ follow_requests_count: z.ZodNumber;
34
+ }, "strip", z.ZodTypeAny, {
35
+ note: string;
36
+ fields: {
37
+ value: string;
38
+ name: string;
39
+ verified_at: string | null;
40
+ }[];
41
+ privacy: "public" | "unlist" | "private" | "direct";
42
+ sensitive: boolean;
43
+ language: string;
44
+ follow_requests_count: number;
45
+ }, {
46
+ note: string;
47
+ fields: {
48
+ value: string;
49
+ name: string;
50
+ verified_at: string | null;
51
+ }[];
52
+ privacy: "public" | "unlist" | "private" | "direct";
53
+ sensitive: boolean;
54
+ language: string;
55
+ follow_requests_count: number;
56
+ }>;
14
57
  fields: z.ZodArray<z.ZodObject<{
15
58
  name: z.ZodString;
16
59
  value: z.ZodString;
@@ -60,6 +103,7 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
60
103
  username: z.ZodString;
61
104
  acct: z.ZodString;
62
105
  url: z.ZodString;
106
+ uri: z.ZodString;
63
107
  display_name: z.ZodString;
64
108
  note: z.ZodString;
65
109
  avatar: z.ZodString;
@@ -67,6 +111,48 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
67
111
  header: z.ZodString;
68
112
  header_static: z.ZodString;
69
113
  locked: z.ZodBoolean;
114
+ source: z.ZodObject<{
115
+ note: z.ZodString;
116
+ fields: z.ZodArray<z.ZodObject<{
117
+ name: z.ZodString;
118
+ value: z.ZodString;
119
+ verified_at: z.ZodNullable<z.ZodString>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ value: string;
122
+ name: string;
123
+ verified_at: string | null;
124
+ }, {
125
+ value: string;
126
+ name: string;
127
+ verified_at: string | null;
128
+ }>, "many">;
129
+ privacy: z.ZodEnum<["public", "unlist", "private", "direct"]>;
130
+ sensitive: z.ZodBoolean;
131
+ language: z.ZodString;
132
+ follow_requests_count: z.ZodNumber;
133
+ }, "strip", z.ZodTypeAny, {
134
+ note: string;
135
+ fields: {
136
+ value: string;
137
+ name: string;
138
+ verified_at: string | null;
139
+ }[];
140
+ privacy: "public" | "unlist" | "private" | "direct";
141
+ sensitive: boolean;
142
+ language: string;
143
+ follow_requests_count: number;
144
+ }, {
145
+ note: string;
146
+ fields: {
147
+ value: string;
148
+ name: string;
149
+ verified_at: string | null;
150
+ }[];
151
+ privacy: "public" | "unlist" | "private" | "direct";
152
+ sensitive: boolean;
153
+ language: string;
154
+ follow_requests_count: number;
155
+ }>;
70
156
  fields: z.ZodArray<z.ZodObject<{
71
157
  name: z.ZodString;
72
158
  value: z.ZodString;
@@ -113,20 +199,33 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
113
199
  }, "strip", z.ZodTypeAny, {
114
200
  id: string;
115
201
  url: string;
202
+ note: string;
203
+ fields: {
204
+ value: string;
205
+ name: string;
206
+ verified_at: string | null;
207
+ }[];
116
208
  username: string;
117
209
  acct: string;
210
+ uri: string;
118
211
  display_name: string;
119
- note: string;
120
212
  avatar: string;
121
213
  avatar_static: string;
122
214
  header: string;
123
215
  header_static: string;
124
216
  locked: boolean;
125
- fields: {
126
- value: string;
127
- name: string;
128
- verified_at: string | null;
129
- }[];
217
+ source: {
218
+ note: string;
219
+ fields: {
220
+ value: string;
221
+ name: string;
222
+ verified_at: string | null;
223
+ }[];
224
+ privacy: "public" | "unlist" | "private" | "direct";
225
+ sensitive: boolean;
226
+ language: string;
227
+ follow_requests_count: number;
228
+ };
130
229
  emojis: {
131
230
  url: string;
132
231
  shortcode: string;
@@ -148,20 +247,33 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
148
247
  }, {
149
248
  id: string;
150
249
  url: string;
250
+ note: string;
251
+ fields: {
252
+ value: string;
253
+ name: string;
254
+ verified_at: string | null;
255
+ }[];
151
256
  username: string;
152
257
  acct: string;
258
+ uri: string;
153
259
  display_name: string;
154
- note: string;
155
260
  avatar: string;
156
261
  avatar_static: string;
157
262
  header: string;
158
263
  header_static: string;
159
264
  locked: boolean;
160
- fields: {
161
- value: string;
162
- name: string;
163
- verified_at: string | null;
164
- }[];
265
+ source: {
266
+ note: string;
267
+ fields: {
268
+ value: string;
269
+ name: string;
270
+ verified_at: string | null;
271
+ }[];
272
+ privacy: "public" | "unlist" | "private" | "direct";
273
+ sensitive: boolean;
274
+ language: string;
275
+ follow_requests_count: number;
276
+ };
165
277
  emojis: {
166
278
  url: string;
167
279
  shortcode: string;
@@ -184,20 +296,33 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
184
296
  }>, "strip", z.ZodTypeAny, {
185
297
  id: string;
186
298
  url: string;
299
+ note: string;
300
+ fields: {
301
+ value: string;
302
+ name: string;
303
+ verified_at: string | null;
304
+ }[];
187
305
  username: string;
188
306
  acct: string;
307
+ uri: string;
189
308
  display_name: string;
190
- note: string;
191
309
  avatar: string;
192
310
  avatar_static: string;
193
311
  header: string;
194
312
  header_static: string;
195
313
  locked: boolean;
196
- fields: {
197
- value: string;
198
- name: string;
199
- verified_at: string | null;
200
- }[];
314
+ source: {
315
+ note: string;
316
+ fields: {
317
+ value: string;
318
+ name: string;
319
+ verified_at: string | null;
320
+ }[];
321
+ privacy: "public" | "unlist" | "private" | "direct";
322
+ sensitive: boolean;
323
+ language: string;
324
+ follow_requests_count: number;
325
+ };
201
326
  emojis: {
202
327
  url: string;
203
328
  shortcode: string;
@@ -219,20 +344,33 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
219
344
  moved?: {
220
345
  id: string;
221
346
  url: string;
347
+ note: string;
348
+ fields: {
349
+ value: string;
350
+ name: string;
351
+ verified_at: string | null;
352
+ }[];
222
353
  username: string;
223
354
  acct: string;
355
+ uri: string;
224
356
  display_name: string;
225
- note: string;
226
357
  avatar: string;
227
358
  avatar_static: string;
228
359
  header: string;
229
360
  header_static: string;
230
361
  locked: boolean;
231
- fields: {
232
- value: string;
233
- name: string;
234
- verified_at: string | null;
235
- }[];
362
+ source: {
363
+ note: string;
364
+ fields: {
365
+ value: string;
366
+ name: string;
367
+ verified_at: string | null;
368
+ }[];
369
+ privacy: "public" | "unlist" | "private" | "direct";
370
+ sensitive: boolean;
371
+ language: string;
372
+ follow_requests_count: number;
373
+ };
236
374
  emojis: {
237
375
  url: string;
238
376
  shortcode: string;
@@ -255,20 +393,33 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
255
393
  }, {
256
394
  id: string;
257
395
  url: string;
396
+ note: string;
397
+ fields: {
398
+ value: string;
399
+ name: string;
400
+ verified_at: string | null;
401
+ }[];
258
402
  username: string;
259
403
  acct: string;
404
+ uri: string;
260
405
  display_name: string;
261
- note: string;
262
406
  avatar: string;
263
407
  avatar_static: string;
264
408
  header: string;
265
409
  header_static: string;
266
410
  locked: boolean;
267
- fields: {
268
- value: string;
269
- name: string;
270
- verified_at: string | null;
271
- }[];
411
+ source: {
412
+ note: string;
413
+ fields: {
414
+ value: string;
415
+ name: string;
416
+ verified_at: string | null;
417
+ }[];
418
+ privacy: "public" | "unlist" | "private" | "direct";
419
+ sensitive: boolean;
420
+ language: string;
421
+ follow_requests_count: number;
422
+ };
272
423
  emojis: {
273
424
  url: string;
274
425
  shortcode: string;
@@ -290,20 +441,33 @@ export declare const Account: z.ZodObject<z.objectUtil.extendShape<{
290
441
  moved?: {
291
442
  id: string;
292
443
  url: string;
444
+ note: string;
445
+ fields: {
446
+ value: string;
447
+ name: string;
448
+ verified_at: string | null;
449
+ }[];
293
450
  username: string;
294
451
  acct: string;
452
+ uri: string;
295
453
  display_name: string;
296
- note: string;
297
454
  avatar: string;
298
455
  avatar_static: string;
299
456
  header: string;
300
457
  header_static: string;
301
458
  locked: boolean;
302
- fields: {
303
- value: string;
304
- name: string;
305
- verified_at: string | null;
306
- }[];
459
+ source: {
460
+ note: string;
461
+ fields: {
462
+ value: string;
463
+ name: string;
464
+ verified_at: string | null;
465
+ }[];
466
+ privacy: "public" | "unlist" | "private" | "direct";
467
+ sensitive: boolean;
468
+ language: string;
469
+ follow_requests_count: number;
470
+ };
307
471
  emojis: {
308
472
  url: string;
309
473
  shortcode: string;
@@ -31,7 +31,7 @@ export declare const Filter: z.ZodObject<{
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  id: string;
33
33
  title: string;
34
- context: ("home" | "notifications" | "public" | "thread" | "account")[];
34
+ context: ("public" | "home" | "notifications" | "thread" | "account")[];
35
35
  expires_at: string | null;
36
36
  filter_action: "warn" | "hide";
37
37
  keywords: {
@@ -46,7 +46,7 @@ export declare const Filter: z.ZodObject<{
46
46
  }, {
47
47
  id: string;
48
48
  title: string;
49
- context: ("home" | "notifications" | "public" | "thread" | "account")[];
49
+ context: ("public" | "home" | "notifications" | "thread" | "account")[];
50
50
  expires_at: string | null;
51
51
  filter_action: "warn" | "hide";
52
52
  keywords: {
@@ -32,7 +32,7 @@ export declare const FilterResult: z.ZodObject<{
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  id: string;
34
34
  title: string;
35
- context: ("home" | "notifications" | "public" | "thread" | "account")[];
35
+ context: ("public" | "home" | "notifications" | "thread" | "account")[];
36
36
  expires_at: string | null;
37
37
  filter_action: "warn" | "hide";
38
38
  keywords: {
@@ -47,7 +47,7 @@ export declare const FilterResult: z.ZodObject<{
47
47
  }, {
48
48
  id: string;
49
49
  title: string;
50
- context: ("home" | "notifications" | "public" | "thread" | "account")[];
50
+ context: ("public" | "home" | "notifications" | "thread" | "account")[];
51
51
  expires_at: string | null;
52
52
  filter_action: "warn" | "hide";
53
53
  keywords: {
@@ -66,7 +66,7 @@ export declare const FilterResult: z.ZodObject<{
66
66
  filter: {
67
67
  id: string;
68
68
  title: string;
69
- context: ("home" | "notifications" | "public" | "thread" | "account")[];
69
+ context: ("public" | "home" | "notifications" | "thread" | "account")[];
70
70
  expires_at: string | null;
71
71
  filter_action: "warn" | "hide";
72
72
  keywords: {
@@ -85,7 +85,7 @@ export declare const FilterResult: z.ZodObject<{
85
85
  filter: {
86
86
  id: string;
87
87
  title: string;
88
- context: ("home" | "notifications" | "public" | "thread" | "account")[];
88
+ context: ("public" | "home" | "notifications" | "thread" | "account")[];
89
89
  expires_at: string | null;
90
90
  filter_action: "warn" | "hide";
91
91
  keywords: {
@@ -1,5 +1,6 @@
1
1
  export * from "./account.js";
2
- export * from "./accountField.js";
2
+ export * from "./account/field.js";
3
+ export * from "./account/source.js";
3
4
  export * from "./customEmoji.js";
4
5
  export * from "./filterResult.js";
5
6
  export * from "./previewCard.js";
@@ -2,86 +2,86 @@ import { z } from "zod";
2
2
  export declare const Audio: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
4
  url: z.ZodString;
5
- preview_url: z.ZodString;
5
+ preview_url: z.ZodNullable<z.ZodString>;
6
6
  remote_url: z.ZodNullable<z.ZodString>;
7
7
  description: z.ZodNullable<z.ZodString>;
8
- bluehash: z.ZodString;
8
+ bluehash: z.ZodNullable<z.ZodString>;
9
9
  }, {
10
10
  type: z.ZodLiteral<"audio">;
11
11
  meta: z.ZodObject<{
12
12
  length: z.ZodString;
13
13
  duration: z.ZodNumber;
14
- audio_encode: z.ZodString;
15
- audio_bitrate: z.ZodString;
16
- audio_channels: z.ZodString;
14
+ audio_encode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ audio_bitrate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ audio_channels: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  original: z.ZodObject<{
18
18
  duration: z.ZodNumber;
19
- bitrate: z.ZodNumber;
19
+ bitrate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  duration: number;
22
- bitrate: number;
22
+ bitrate?: number | null | undefined;
23
23
  }, {
24
24
  duration: number;
25
- bitrate: number;
25
+ bitrate?: number | null | undefined;
26
26
  }>;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  length: string;
29
29
  duration: number;
30
30
  original: {
31
31
  duration: number;
32
- bitrate: number;
32
+ bitrate?: number | null | undefined;
33
33
  };
34
- audio_encode: string;
35
- audio_bitrate: string;
36
- audio_channels: string;
34
+ audio_encode?: string | null | undefined;
35
+ audio_bitrate?: string | null | undefined;
36
+ audio_channels?: string | null | undefined;
37
37
  }, {
38
38
  length: string;
39
39
  duration: number;
40
40
  original: {
41
41
  duration: number;
42
- bitrate: number;
42
+ bitrate?: number | null | undefined;
43
43
  };
44
- audio_encode: string;
45
- audio_bitrate: string;
46
- audio_channels: string;
44
+ audio_encode?: string | null | undefined;
45
+ audio_bitrate?: string | null | undefined;
46
+ audio_channels?: string | null | undefined;
47
47
  }>;
48
48
  }>, "strip", z.ZodTypeAny, {
49
49
  id: string;
50
50
  type: "audio";
51
51
  description: string | null;
52
52
  url: string;
53
- preview_url: string;
53
+ preview_url: string | null;
54
54
  remote_url: string | null;
55
- bluehash: string;
55
+ bluehash: string | null;
56
56
  meta: {
57
57
  length: string;
58
58
  duration: number;
59
59
  original: {
60
60
  duration: number;
61
- bitrate: number;
61
+ bitrate?: number | null | undefined;
62
62
  };
63
- audio_encode: string;
64
- audio_bitrate: string;
65
- audio_channels: string;
63
+ audio_encode?: string | null | undefined;
64
+ audio_bitrate?: string | null | undefined;
65
+ audio_channels?: string | null | undefined;
66
66
  };
67
67
  }, {
68
68
  id: string;
69
69
  type: "audio";
70
70
  description: string | null;
71
71
  url: string;
72
- preview_url: string;
72
+ preview_url: string | null;
73
73
  remote_url: string | null;
74
- bluehash: string;
74
+ bluehash: string | null;
75
75
  meta: {
76
76
  length: string;
77
77
  duration: number;
78
78
  original: {
79
79
  duration: number;
80
- bitrate: number;
80
+ bitrate?: number | null | undefined;
81
81
  };
82
- audio_encode: string;
83
- audio_bitrate: string;
84
- audio_channels: string;
82
+ audio_encode?: string | null | undefined;
83
+ audio_bitrate?: string | null | undefined;
84
+ audio_channels?: string | null | undefined;
85
85
  };
86
86
  }>;
87
87
  export type Audio = z.infer<typeof Audio>;
@@ -2,23 +2,23 @@ import { z } from "zod";
2
2
  export declare const BaseMediaAttachment: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  url: z.ZodString;
5
- preview_url: z.ZodString;
5
+ preview_url: z.ZodNullable<z.ZodString>;
6
6
  remote_url: z.ZodNullable<z.ZodString>;
7
7
  description: z.ZodNullable<z.ZodString>;
8
- bluehash: z.ZodString;
8
+ bluehash: z.ZodNullable<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  description: string | null;
12
12
  url: string;
13
- preview_url: string;
13
+ preview_url: string | null;
14
14
  remote_url: string | null;
15
- bluehash: string;
15
+ bluehash: string | null;
16
16
  }, {
17
17
  id: string;
18
18
  description: string | null;
19
19
  url: string;
20
- preview_url: string;
20
+ preview_url: string | null;
21
21
  remote_url: string | null;
22
- bluehash: string;
22
+ bluehash: string | null;
23
23
  }>;
24
24
  export type BaseMediaAttachment = z.infer<typeof BaseMediaAttachment>;