@llun/activities.schema 0.2.34 → 0.3.1

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 (109) hide show
  1. package/.claude/settings.local.json +22 -0
  2. package/.yarn/install-state.gz +0 -0
  3. package/dist/cjs/announce.js +1 -1
  4. package/dist/cjs/mastodon/account/field.js +4 -9
  5. package/dist/cjs/mastodon/account/source.js +4 -12
  6. package/dist/cjs/mastodon/account.js +27 -66
  7. package/dist/cjs/mastodon/customEmoji.js +6 -15
  8. package/dist/cjs/mastodon/filter/index.js +4 -7
  9. package/dist/cjs/mastodon/filter/keyword.js +3 -5
  10. package/dist/cjs/mastodon/filter/status.js +2 -4
  11. package/dist/cjs/mastodon/mediaAttachment/base.js +10 -18
  12. package/dist/cjs/mastodon/mediaAttachment/gifv.js +2 -6
  13. package/dist/cjs/mastodon/mediaAttachment/video.js +2 -6
  14. package/dist/cjs/mastodon/poll/index.js +9 -11
  15. package/dist/cjs/mastodon/poll/option.js +3 -4
  16. package/dist/cjs/mastodon/previewCard.js +15 -28
  17. package/dist/cjs/mastodon/status/application.js +3 -6
  18. package/dist/cjs/mastodon/status/base.js +31 -54
  19. package/dist/cjs/mastodon/status/mention.js +4 -8
  20. package/dist/cjs/mastodon/status/tag.js +2 -6
  21. package/dist/cjs/note/baseContent.js +11 -12
  22. package/dist/cjs/question.js +1 -1
  23. package/dist/esm/announce.js +1 -1
  24. package/dist/esm/mastodon/account/field.js +4 -9
  25. package/dist/esm/mastodon/account/source.js +4 -12
  26. package/dist/esm/mastodon/account.js +27 -66
  27. package/dist/esm/mastodon/customEmoji.js +6 -15
  28. package/dist/esm/mastodon/filter/index.js +4 -7
  29. package/dist/esm/mastodon/filter/keyword.js +3 -5
  30. package/dist/esm/mastodon/filter/status.js +2 -4
  31. package/dist/esm/mastodon/mediaAttachment/base.js +10 -18
  32. package/dist/esm/mastodon/mediaAttachment/gifv.js +2 -6
  33. package/dist/esm/mastodon/mediaAttachment/video.js +2 -6
  34. package/dist/esm/mastodon/poll/index.js +9 -11
  35. package/dist/esm/mastodon/poll/option.js +3 -4
  36. package/dist/esm/mastodon/previewCard.js +15 -28
  37. package/dist/esm/mastodon/status/application.js +3 -6
  38. package/dist/esm/mastodon/status/base.js +31 -54
  39. package/dist/esm/mastodon/status/mention.js +4 -8
  40. package/dist/esm/mastodon/status/tag.js +2 -6
  41. package/dist/esm/note/baseContent.js +11 -12
  42. package/dist/esm/question.js +1 -1
  43. package/dist/types/accept.d.ts +2 -32
  44. package/dist/types/actor.d.ts +18 -288
  45. package/dist/types/announce.d.ts +3 -19
  46. package/dist/types/collection.d.ts +11 -87
  47. package/dist/types/follow.d.ts +1 -11
  48. package/dist/types/image.d.ts +1 -9
  49. package/dist/types/like.d.ts +27 -576
  50. package/dist/types/mastodon/account/field.d.ts +1 -9
  51. package/dist/types/mastodon/account/relationship.d.ts +2 -34
  52. package/dist/types/mastodon/account/source.d.ts +8 -33
  53. package/dist/types/mastodon/account.d.ts +22 -397
  54. package/dist/types/mastodon/customEmoji.d.ts +1 -13
  55. package/dist/types/mastodon/filter/index.d.ts +14 -49
  56. package/dist/types/mastodon/filter/keyword.d.ts +1 -9
  57. package/dist/types/mastodon/filter/status.d.ts +1 -7
  58. package/dist/types/mastodon/filterResult.d.ts +17 -90
  59. package/dist/types/mastodon/mediaAttachment/audio.d.ts +3 -68
  60. package/dist/types/mastodon/mediaAttachment/base.d.ts +1 -15
  61. package/dist/types/mastodon/mediaAttachment/gifv.d.ts +4 -129
  62. package/dist/types/mastodon/mediaAttachment/image.d.ts +5 -118
  63. package/dist/types/mastodon/mediaAttachment/index.d.ts +35 -949
  64. package/dist/types/mastodon/mediaAttachment/unknown.d.ts +1 -18
  65. package/dist/types/mastodon/mediaAttachment/video.d.ts +4 -141
  66. package/dist/types/mastodon/poll/index.d.ts +4 -62
  67. package/dist/types/mastodon/poll/option.d.ts +1 -7
  68. package/dist/types/mastodon/previewCard.d.ts +7 -32
  69. package/dist/types/mastodon/status/application.d.ts +1 -7
  70. package/dist/types/mastodon/status/base.d.ts +79 -1722
  71. package/dist/types/mastodon/status/index.d.ts +158 -4073
  72. package/dist/types/mastodon/status/mention.d.ts +1 -11
  73. package/dist/types/mastodon/status/tag.d.ts +1 -7
  74. package/dist/types/mastodon/visibility.d.ts +6 -1
  75. package/dist/types/note/attachment.d.ts +3 -29
  76. package/dist/types/note/baseContent.d.ts +25 -379
  77. package/dist/types/note/document.d.ts +1 -19
  78. package/dist/types/note/emoji.d.ts +2 -28
  79. package/dist/types/note/hashtag.d.ts +1 -9
  80. package/dist/types/note/mention.d.ts +1 -9
  81. package/dist/types/note/propertyValue.d.ts +1 -9
  82. package/dist/types/note/tag.d.ts +5 -47
  83. package/dist/types/note.d.ts +25 -382
  84. package/dist/types/question/note.d.ts +2 -22
  85. package/dist/types/question.d.ts +27 -422
  86. package/dist/types/reject.d.ts +2 -32
  87. package/dist/types/tombstone.d.ts +1 -7
  88. package/dist/types/undo.d.ts +30 -801
  89. package/package.json +4 -4
  90. package/src/announce.ts +1 -1
  91. package/src/mastodon/account/field.ts +6 -10
  92. package/src/mastodon/account/source.ts +4 -12
  93. package/src/mastodon/account.ts +71 -78
  94. package/src/mastodon/customEmoji.ts +8 -16
  95. package/src/mastodon/filter/index.ts +6 -8
  96. package/src/mastodon/filter/keyword.ts +5 -6
  97. package/src/mastodon/filter/status.ts +2 -4
  98. package/src/mastodon/mediaAttachment/base.ts +16 -21
  99. package/src/mastodon/mediaAttachment/gifv.ts +2 -6
  100. package/src/mastodon/mediaAttachment/video.ts +2 -6
  101. package/src/mastodon/poll/index.ts +13 -13
  102. package/src/mastodon/poll/option.ts +5 -5
  103. package/src/mastodon/previewCard.ts +17 -29
  104. package/src/mastodon/status/application.ts +5 -7
  105. package/src/mastodon/status/base.ts +53 -65
  106. package/src/mastodon/status/mention.ts +6 -9
  107. package/src/mastodon/status/tag.ts +2 -6
  108. package/src/note/baseContent.ts +13 -13
  109. package/src/question.ts +1 -1
@@ -3,87 +3,41 @@ export declare const Undo: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  actor: z.ZodString;
5
5
  type: z.ZodLiteral<"Undo">;
6
- object: z.ZodUnion<[z.ZodObject<{
6
+ object: z.ZodUnion<readonly [z.ZodObject<{
7
7
  type: z.ZodLiteral<"Like">;
8
8
  id: z.ZodString;
9
9
  actor: z.ZodString;
10
- object: z.ZodUnion<[z.ZodString, z.ZodObject<{
10
+ object: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
11
11
  id: z.ZodString;
12
12
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  attributedTo: z.ZodString;
14
- to: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
15
- cc: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
14
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
15
+ cc: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
16
16
  inReplyTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  summaryMap: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
19
- content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
20
- contentMap: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>>;
21
- replies: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
19
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
20
+ contentMap: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString>]>>>;
21
+ replies: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
22
22
  id: z.ZodString;
23
23
  type: z.ZodLiteral<"Collection">;
24
24
  first: z.ZodObject<{
25
25
  type: z.ZodLiteral<"CollectionPage">;
26
26
  next: z.ZodString;
27
27
  partOf: z.ZodString;
28
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
29
- }, "strip", z.ZodTypeAny, {
30
- type: "CollectionPage";
31
- next: string;
32
- partOf: string;
33
- items?: any;
34
- }, {
35
- type: "CollectionPage";
36
- next: string;
37
- partOf: string;
38
- items?: any;
39
- }>;
40
- }, "strip", z.ZodTypeAny, {
41
- id: string;
42
- type: "Collection";
43
- first: {
44
- type: "CollectionPage";
45
- next: string;
46
- partOf: string;
47
- items?: any;
48
- };
49
- }, {
50
- id: string;
51
- type: "Collection";
52
- first: {
53
- type: "CollectionPage";
54
- next: string;
55
- partOf: string;
56
- items?: any;
57
- };
58
- }>, z.ZodObject<{
28
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
29
+ }, z.core.$strip>;
30
+ }, z.core.$strip>, z.ZodObject<{
59
31
  id: z.ZodString;
60
32
  type: z.ZodLiteral<"Collection">;
61
33
  totalItems: z.ZodNumber;
62
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- id: string;
65
- type: "Collection";
66
- totalItems: number;
67
- items?: any;
68
- }, {
69
- id: string;
70
- type: "Collection";
71
- totalItems: number;
72
- items?: any;
73
- }>]>>>;
74
- attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
34
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
35
+ }, z.core.$strip>]>>>;
36
+ attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
75
37
  type: z.ZodLiteral<"PropertyValue">;
76
38
  name: z.ZodString;
77
39
  value: z.ZodString;
78
- }, "strip", z.ZodTypeAny, {
79
- type: "PropertyValue";
80
- value: string;
81
- name: string;
82
- }, {
83
- type: "PropertyValue";
84
- value: string;
85
- name: string;
86
- }>, z.ZodObject<{
40
+ }, z.core.$strip>, z.ZodObject<{
87
41
  type: z.ZodLiteral<"Document">;
88
42
  mediaType: z.ZodString;
89
43
  url: z.ZodString;
@@ -92,37 +46,11 @@ export declare const Undo: z.ZodObject<{
92
46
  height: z.ZodOptional<z.ZodNumber>;
93
47
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
94
48
  focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
95
- }, "strip", z.ZodTypeAny, {
96
- type: "Document";
97
- mediaType: string;
98
- url: string;
99
- name?: string | null | undefined;
100
- blurhash?: string | undefined;
101
- width?: number | undefined;
102
- height?: number | undefined;
103
- focalPoint?: [number, number] | undefined;
104
- }, {
105
- type: "Document";
106
- mediaType: string;
107
- url: string;
108
- name?: string | null | undefined;
109
- blurhash?: string | undefined;
110
- width?: number | undefined;
111
- height?: number | undefined;
112
- focalPoint?: [number, number] | undefined;
113
- }>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
49
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
114
50
  type: z.ZodLiteral<"PropertyValue">;
115
51
  name: z.ZodString;
116
52
  value: z.ZodString;
117
- }, "strip", z.ZodTypeAny, {
118
- type: "PropertyValue";
119
- value: string;
120
- name: string;
121
- }, {
122
- type: "PropertyValue";
123
- value: string;
124
- name: string;
125
- }>, z.ZodObject<{
53
+ }, z.core.$strip>, z.ZodObject<{
126
54
  type: z.ZodLiteral<"Document">;
127
55
  mediaType: z.ZodString;
128
56
  url: z.ZodString;
@@ -131,38 +59,12 @@ export declare const Undo: z.ZodObject<{
131
59
  height: z.ZodOptional<z.ZodNumber>;
132
60
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
61
  focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
134
- }, "strip", z.ZodTypeAny, {
135
- type: "Document";
136
- mediaType: string;
137
- url: string;
138
- name?: string | null | undefined;
139
- blurhash?: string | undefined;
140
- width?: number | undefined;
141
- height?: number | undefined;
142
- focalPoint?: [number, number] | undefined;
143
- }, {
144
- type: "Document";
145
- mediaType: string;
146
- url: string;
147
- name?: string | null | undefined;
148
- blurhash?: string | undefined;
149
- width?: number | undefined;
150
- height?: number | undefined;
151
- focalPoint?: [number, number] | undefined;
152
- }>]>, "many">]>>>;
153
- tag: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
62
+ }, z.core.$strip>]>>]>>>;
63
+ tag: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
154
64
  type: z.ZodLiteral<"Mention">;
155
65
  href: z.ZodString;
156
66
  name: z.ZodString;
157
- }, "strip", z.ZodTypeAny, {
158
- type: "Mention";
159
- name: string;
160
- href: string;
161
- }, {
162
- type: "Mention";
163
- name: string;
164
- href: string;
165
- }>, z.ZodObject<{
67
+ }, z.core.$strip>, z.ZodObject<{
166
68
  type: z.ZodLiteral<"Emoji">;
167
69
  name: z.ZodString;
168
70
  updated: z.ZodString;
@@ -170,58 +72,16 @@ export declare const Undo: z.ZodObject<{
170
72
  type: z.ZodLiteral<"Image">;
171
73
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
74
  url: z.ZodString;
173
- }, "strip", z.ZodTypeAny, {
174
- type: "Image";
175
- url: string;
176
- mediaType?: string | null | undefined;
177
- }, {
178
- type: "Image";
179
- url: string;
180
- mediaType?: string | null | undefined;
181
- }>;
182
- }, "strip", z.ZodTypeAny, {
183
- type: "Emoji";
184
- name: string;
185
- icon: {
186
- type: "Image";
187
- url: string;
188
- mediaType?: string | null | undefined;
189
- };
190
- updated: string;
191
- }, {
192
- type: "Emoji";
193
- name: string;
194
- icon: {
195
- type: "Image";
196
- url: string;
197
- mediaType?: string | null | undefined;
198
- };
199
- updated: string;
200
- }>, z.ZodObject<{
75
+ }, z.core.$strip>;
76
+ }, z.core.$strip>, z.ZodObject<{
201
77
  type: z.ZodLiteral<"Hashtag">;
202
78
  href: z.ZodString;
203
79
  name: z.ZodString;
204
- }, "strip", z.ZodTypeAny, {
205
- type: "Hashtag";
206
- name: string;
207
- href: string;
208
- }, {
209
- type: "Hashtag";
210
- name: string;
211
- href: string;
212
- }>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
80
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
213
81
  type: z.ZodLiteral<"Mention">;
214
82
  href: z.ZodString;
215
83
  name: z.ZodString;
216
- }, "strip", z.ZodTypeAny, {
217
- type: "Mention";
218
- name: string;
219
- href: string;
220
- }, {
221
- type: "Mention";
222
- name: string;
223
- href: string;
224
- }>, z.ZodObject<{
84
+ }, z.core.$strip>, z.ZodObject<{
225
85
  type: z.ZodLiteral<"Emoji">;
226
86
  name: z.ZodString;
227
87
  updated: z.ZodString;
@@ -229,652 +89,21 @@ export declare const Undo: z.ZodObject<{
229
89
  type: z.ZodLiteral<"Image">;
230
90
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
91
  url: z.ZodString;
232
- }, "strip", z.ZodTypeAny, {
233
- type: "Image";
234
- url: string;
235
- mediaType?: string | null | undefined;
236
- }, {
237
- type: "Image";
238
- url: string;
239
- mediaType?: string | null | undefined;
240
- }>;
241
- }, "strip", z.ZodTypeAny, {
242
- type: "Emoji";
243
- name: string;
244
- icon: {
245
- type: "Image";
246
- url: string;
247
- mediaType?: string | null | undefined;
248
- };
249
- updated: string;
250
- }, {
251
- type: "Emoji";
252
- name: string;
253
- icon: {
254
- type: "Image";
255
- url: string;
256
- mediaType?: string | null | undefined;
257
- };
258
- updated: string;
259
- }>, z.ZodObject<{
92
+ }, z.core.$strip>;
93
+ }, z.core.$strip>, z.ZodObject<{
260
94
  type: z.ZodLiteral<"Hashtag">;
261
95
  href: z.ZodString;
262
96
  name: z.ZodString;
263
- }, "strip", z.ZodTypeAny, {
264
- type: "Hashtag";
265
- name: string;
266
- href: string;
267
- }, {
268
- type: "Hashtag";
269
- name: string;
270
- href: string;
271
- }>]>, "many">]>;
97
+ }, z.core.$strip>]>>]>;
272
98
  published: z.ZodString;
273
99
  updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
- } & {
275
100
  type: z.ZodLiteral<"Note">;
276
- }, "strip", z.ZodTypeAny, {
277
- id: string;
278
- type: "Note";
279
- published: string;
280
- to: string | string[];
281
- cc: string | string[];
282
- attributedTo: string;
283
- tag: {
284
- type: "Emoji";
285
- name: string;
286
- icon: {
287
- type: "Image";
288
- url: string;
289
- mediaType?: string | null | undefined;
290
- };
291
- updated: string;
292
- } | {
293
- type: "Mention";
294
- name: string;
295
- href: string;
296
- } | {
297
- type: "Hashtag";
298
- name: string;
299
- href: string;
300
- } | ({
301
- type: "Emoji";
302
- name: string;
303
- icon: {
304
- type: "Image";
305
- url: string;
306
- mediaType?: string | null | undefined;
307
- };
308
- updated: string;
309
- } | {
310
- type: "Mention";
311
- name: string;
312
- href: string;
313
- } | {
314
- type: "Hashtag";
315
- name: string;
316
- href: string;
317
- })[];
318
- url?: string | null | undefined;
319
- summary?: string | null | undefined;
320
- updated?: string | null | undefined;
321
- inReplyTo?: string | null | undefined;
322
- summaryMap?: Record<string, string> | null | undefined;
323
- content?: string | string[] | null | undefined;
324
- contentMap?: string[] | Record<string, string> | null | undefined;
325
- replies?: {
326
- id: string;
327
- type: "Collection";
328
- first: {
329
- type: "CollectionPage";
330
- next: string;
331
- partOf: string;
332
- items?: any;
333
- };
334
- } | {
335
- id: string;
336
- type: "Collection";
337
- totalItems: number;
338
- items?: any;
339
- } | null | undefined;
340
- attachment?: {
341
- type: "Document";
342
- mediaType: string;
343
- url: string;
344
- name?: string | null | undefined;
345
- blurhash?: string | undefined;
346
- width?: number | undefined;
347
- height?: number | undefined;
348
- focalPoint?: [number, number] | undefined;
349
- } | {
350
- type: "PropertyValue";
351
- value: string;
352
- name: string;
353
- } | ({
354
- type: "Document";
355
- mediaType: string;
356
- url: string;
357
- name?: string | null | undefined;
358
- blurhash?: string | undefined;
359
- width?: number | undefined;
360
- height?: number | undefined;
361
- focalPoint?: [number, number] | undefined;
362
- } | {
363
- type: "PropertyValue";
364
- value: string;
365
- name: string;
366
- })[] | null | undefined;
367
- }, {
368
- id: string;
369
- type: "Note";
370
- published: string;
371
- to: string | string[];
372
- cc: string | string[];
373
- attributedTo: string;
374
- tag: {
375
- type: "Emoji";
376
- name: string;
377
- icon: {
378
- type: "Image";
379
- url: string;
380
- mediaType?: string | null | undefined;
381
- };
382
- updated: string;
383
- } | {
384
- type: "Mention";
385
- name: string;
386
- href: string;
387
- } | {
388
- type: "Hashtag";
389
- name: string;
390
- href: string;
391
- } | ({
392
- type: "Emoji";
393
- name: string;
394
- icon: {
395
- type: "Image";
396
- url: string;
397
- mediaType?: string | null | undefined;
398
- };
399
- updated: string;
400
- } | {
401
- type: "Mention";
402
- name: string;
403
- href: string;
404
- } | {
405
- type: "Hashtag";
406
- name: string;
407
- href: string;
408
- })[];
409
- url?: string | null | undefined;
410
- summary?: string | null | undefined;
411
- updated?: string | null | undefined;
412
- inReplyTo?: string | null | undefined;
413
- summaryMap?: Record<string, string> | null | undefined;
414
- content?: string | string[] | null | undefined;
415
- contentMap?: string[] | Record<string, string> | null | undefined;
416
- replies?: {
417
- id: string;
418
- type: "Collection";
419
- first: {
420
- type: "CollectionPage";
421
- next: string;
422
- partOf: string;
423
- items?: any;
424
- };
425
- } | {
426
- id: string;
427
- type: "Collection";
428
- totalItems: number;
429
- items?: any;
430
- } | null | undefined;
431
- attachment?: {
432
- type: "Document";
433
- mediaType: string;
434
- url: string;
435
- name?: string | null | undefined;
436
- blurhash?: string | undefined;
437
- width?: number | undefined;
438
- height?: number | undefined;
439
- focalPoint?: [number, number] | undefined;
440
- } | {
441
- type: "PropertyValue";
442
- value: string;
443
- name: string;
444
- } | ({
445
- type: "Document";
446
- mediaType: string;
447
- url: string;
448
- name?: string | null | undefined;
449
- blurhash?: string | undefined;
450
- width?: number | undefined;
451
- height?: number | undefined;
452
- focalPoint?: [number, number] | undefined;
453
- } | {
454
- type: "PropertyValue";
455
- value: string;
456
- name: string;
457
- })[] | null | undefined;
458
- }>]>;
459
- }, "strip", z.ZodTypeAny, {
460
- object: string | {
461
- id: string;
462
- type: "Note";
463
- published: string;
464
- to: string | string[];
465
- cc: string | string[];
466
- attributedTo: string;
467
- tag: {
468
- type: "Emoji";
469
- name: string;
470
- icon: {
471
- type: "Image";
472
- url: string;
473
- mediaType?: string | null | undefined;
474
- };
475
- updated: string;
476
- } | {
477
- type: "Mention";
478
- name: string;
479
- href: string;
480
- } | {
481
- type: "Hashtag";
482
- name: string;
483
- href: string;
484
- } | ({
485
- type: "Emoji";
486
- name: string;
487
- icon: {
488
- type: "Image";
489
- url: string;
490
- mediaType?: string | null | undefined;
491
- };
492
- updated: string;
493
- } | {
494
- type: "Mention";
495
- name: string;
496
- href: string;
497
- } | {
498
- type: "Hashtag";
499
- name: string;
500
- href: string;
501
- })[];
502
- url?: string | null | undefined;
503
- summary?: string | null | undefined;
504
- updated?: string | null | undefined;
505
- inReplyTo?: string | null | undefined;
506
- summaryMap?: Record<string, string> | null | undefined;
507
- content?: string | string[] | null | undefined;
508
- contentMap?: string[] | Record<string, string> | null | undefined;
509
- replies?: {
510
- id: string;
511
- type: "Collection";
512
- first: {
513
- type: "CollectionPage";
514
- next: string;
515
- partOf: string;
516
- items?: any;
517
- };
518
- } | {
519
- id: string;
520
- type: "Collection";
521
- totalItems: number;
522
- items?: any;
523
- } | null | undefined;
524
- attachment?: {
525
- type: "Document";
526
- mediaType: string;
527
- url: string;
528
- name?: string | null | undefined;
529
- blurhash?: string | undefined;
530
- width?: number | undefined;
531
- height?: number | undefined;
532
- focalPoint?: [number, number] | undefined;
533
- } | {
534
- type: "PropertyValue";
535
- value: string;
536
- name: string;
537
- } | ({
538
- type: "Document";
539
- mediaType: string;
540
- url: string;
541
- name?: string | null | undefined;
542
- blurhash?: string | undefined;
543
- width?: number | undefined;
544
- height?: number | undefined;
545
- focalPoint?: [number, number] | undefined;
546
- } | {
547
- type: "PropertyValue";
548
- value: string;
549
- name: string;
550
- })[] | null | undefined;
551
- };
552
- id: string;
553
- type: "Like";
554
- actor: string;
555
- }, {
556
- object: string | {
557
- id: string;
558
- type: "Note";
559
- published: string;
560
- to: string | string[];
561
- cc: string | string[];
562
- attributedTo: string;
563
- tag: {
564
- type: "Emoji";
565
- name: string;
566
- icon: {
567
- type: "Image";
568
- url: string;
569
- mediaType?: string | null | undefined;
570
- };
571
- updated: string;
572
- } | {
573
- type: "Mention";
574
- name: string;
575
- href: string;
576
- } | {
577
- type: "Hashtag";
578
- name: string;
579
- href: string;
580
- } | ({
581
- type: "Emoji";
582
- name: string;
583
- icon: {
584
- type: "Image";
585
- url: string;
586
- mediaType?: string | null | undefined;
587
- };
588
- updated: string;
589
- } | {
590
- type: "Mention";
591
- name: string;
592
- href: string;
593
- } | {
594
- type: "Hashtag";
595
- name: string;
596
- href: string;
597
- })[];
598
- url?: string | null | undefined;
599
- summary?: string | null | undefined;
600
- updated?: string | null | undefined;
601
- inReplyTo?: string | null | undefined;
602
- summaryMap?: Record<string, string> | null | undefined;
603
- content?: string | string[] | null | undefined;
604
- contentMap?: string[] | Record<string, string> | null | undefined;
605
- replies?: {
606
- id: string;
607
- type: "Collection";
608
- first: {
609
- type: "CollectionPage";
610
- next: string;
611
- partOf: string;
612
- items?: any;
613
- };
614
- } | {
615
- id: string;
616
- type: "Collection";
617
- totalItems: number;
618
- items?: any;
619
- } | null | undefined;
620
- attachment?: {
621
- type: "Document";
622
- mediaType: string;
623
- url: string;
624
- name?: string | null | undefined;
625
- blurhash?: string | undefined;
626
- width?: number | undefined;
627
- height?: number | undefined;
628
- focalPoint?: [number, number] | undefined;
629
- } | {
630
- type: "PropertyValue";
631
- value: string;
632
- name: string;
633
- } | ({
634
- type: "Document";
635
- mediaType: string;
636
- url: string;
637
- name?: string | null | undefined;
638
- blurhash?: string | undefined;
639
- width?: number | undefined;
640
- height?: number | undefined;
641
- focalPoint?: [number, number] | undefined;
642
- } | {
643
- type: "PropertyValue";
644
- value: string;
645
- name: string;
646
- })[] | null | undefined;
647
- };
648
- id: string;
649
- type: "Like";
650
- actor: string;
651
- }>, z.ZodObject<{
101
+ }, z.core.$strip>]>;
102
+ }, z.core.$strip>, z.ZodObject<{
652
103
  id: z.ZodString;
653
104
  type: z.ZodLiteral<"Follow">;
654
105
  actor: z.ZodString;
655
106
  object: z.ZodString;
656
- }, "strip", z.ZodTypeAny, {
657
- object: string;
658
- id: string;
659
- type: "Follow";
660
- actor: string;
661
- }, {
662
- object: string;
663
- id: string;
664
- type: "Follow";
665
- actor: string;
666
- }>]>;
667
- }, "strip", z.ZodTypeAny, {
668
- object: {
669
- object: string;
670
- id: string;
671
- type: "Follow";
672
- actor: string;
673
- } | {
674
- object: string | {
675
- id: string;
676
- type: "Note";
677
- published: string;
678
- to: string | string[];
679
- cc: string | string[];
680
- attributedTo: string;
681
- tag: {
682
- type: "Emoji";
683
- name: string;
684
- icon: {
685
- type: "Image";
686
- url: string;
687
- mediaType?: string | null | undefined;
688
- };
689
- updated: string;
690
- } | {
691
- type: "Mention";
692
- name: string;
693
- href: string;
694
- } | {
695
- type: "Hashtag";
696
- name: string;
697
- href: string;
698
- } | ({
699
- type: "Emoji";
700
- name: string;
701
- icon: {
702
- type: "Image";
703
- url: string;
704
- mediaType?: string | null | undefined;
705
- };
706
- updated: string;
707
- } | {
708
- type: "Mention";
709
- name: string;
710
- href: string;
711
- } | {
712
- type: "Hashtag";
713
- name: string;
714
- href: string;
715
- })[];
716
- url?: string | null | undefined;
717
- summary?: string | null | undefined;
718
- updated?: string | null | undefined;
719
- inReplyTo?: string | null | undefined;
720
- summaryMap?: Record<string, string> | null | undefined;
721
- content?: string | string[] | null | undefined;
722
- contentMap?: string[] | Record<string, string> | null | undefined;
723
- replies?: {
724
- id: string;
725
- type: "Collection";
726
- first: {
727
- type: "CollectionPage";
728
- next: string;
729
- partOf: string;
730
- items?: any;
731
- };
732
- } | {
733
- id: string;
734
- type: "Collection";
735
- totalItems: number;
736
- items?: any;
737
- } | null | undefined;
738
- attachment?: {
739
- type: "Document";
740
- mediaType: string;
741
- url: string;
742
- name?: string | null | undefined;
743
- blurhash?: string | undefined;
744
- width?: number | undefined;
745
- height?: number | undefined;
746
- focalPoint?: [number, number] | undefined;
747
- } | {
748
- type: "PropertyValue";
749
- value: string;
750
- name: string;
751
- } | ({
752
- type: "Document";
753
- mediaType: string;
754
- url: string;
755
- name?: string | null | undefined;
756
- blurhash?: string | undefined;
757
- width?: number | undefined;
758
- height?: number | undefined;
759
- focalPoint?: [number, number] | undefined;
760
- } | {
761
- type: "PropertyValue";
762
- value: string;
763
- name: string;
764
- })[] | null | undefined;
765
- };
766
- id: string;
767
- type: "Like";
768
- actor: string;
769
- };
770
- id: string;
771
- type: "Undo";
772
- actor: string;
773
- }, {
774
- object: {
775
- object: string;
776
- id: string;
777
- type: "Follow";
778
- actor: string;
779
- } | {
780
- object: string | {
781
- id: string;
782
- type: "Note";
783
- published: string;
784
- to: string | string[];
785
- cc: string | string[];
786
- attributedTo: string;
787
- tag: {
788
- type: "Emoji";
789
- name: string;
790
- icon: {
791
- type: "Image";
792
- url: string;
793
- mediaType?: string | null | undefined;
794
- };
795
- updated: string;
796
- } | {
797
- type: "Mention";
798
- name: string;
799
- href: string;
800
- } | {
801
- type: "Hashtag";
802
- name: string;
803
- href: string;
804
- } | ({
805
- type: "Emoji";
806
- name: string;
807
- icon: {
808
- type: "Image";
809
- url: string;
810
- mediaType?: string | null | undefined;
811
- };
812
- updated: string;
813
- } | {
814
- type: "Mention";
815
- name: string;
816
- href: string;
817
- } | {
818
- type: "Hashtag";
819
- name: string;
820
- href: string;
821
- })[];
822
- url?: string | null | undefined;
823
- summary?: string | null | undefined;
824
- updated?: string | null | undefined;
825
- inReplyTo?: string | null | undefined;
826
- summaryMap?: Record<string, string> | null | undefined;
827
- content?: string | string[] | null | undefined;
828
- contentMap?: string[] | Record<string, string> | null | undefined;
829
- replies?: {
830
- id: string;
831
- type: "Collection";
832
- first: {
833
- type: "CollectionPage";
834
- next: string;
835
- partOf: string;
836
- items?: any;
837
- };
838
- } | {
839
- id: string;
840
- type: "Collection";
841
- totalItems: number;
842
- items?: any;
843
- } | null | undefined;
844
- attachment?: {
845
- type: "Document";
846
- mediaType: string;
847
- url: string;
848
- name?: string | null | undefined;
849
- blurhash?: string | undefined;
850
- width?: number | undefined;
851
- height?: number | undefined;
852
- focalPoint?: [number, number] | undefined;
853
- } | {
854
- type: "PropertyValue";
855
- value: string;
856
- name: string;
857
- } | ({
858
- type: "Document";
859
- mediaType: string;
860
- url: string;
861
- name?: string | null | undefined;
862
- blurhash?: string | undefined;
863
- width?: number | undefined;
864
- height?: number | undefined;
865
- focalPoint?: [number, number] | undefined;
866
- } | {
867
- type: "PropertyValue";
868
- value: string;
869
- name: string;
870
- })[] | null | undefined;
871
- };
872
- id: string;
873
- type: "Like";
874
- actor: string;
875
- };
876
- id: string;
877
- type: "Undo";
878
- actor: string;
879
- }>;
107
+ }, z.core.$strip>]>;
108
+ }, z.core.$strip>;
880
109
  export type Undo = z.infer<typeof Undo>;