@llun/activities.schema 0.2.34 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +2 -2
  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
@@ -1,17 +1,9 @@
1
1
  import { z } from "zod";
2
- export declare const Tag: z.ZodUnion<[z.ZodObject<{
2
+ export declare const Tag: z.ZodUnion<readonly [z.ZodObject<{
3
3
  type: z.ZodLiteral<"Mention">;
4
4
  href: z.ZodString;
5
5
  name: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- type: "Mention";
8
- name: string;
9
- href: string;
10
- }, {
11
- type: "Mention";
12
- name: string;
13
- href: string;
14
- }>, z.ZodObject<{
6
+ }, z.core.$strip>, z.ZodObject<{
15
7
  type: z.ZodLiteral<"Emoji">;
16
8
  name: z.ZodString;
17
9
  updated: z.ZodString;
@@ -19,44 +11,10 @@ export declare const Tag: z.ZodUnion<[z.ZodObject<{
19
11
  type: z.ZodLiteral<"Image">;
20
12
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
13
  url: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- type: "Image";
24
- url: string;
25
- mediaType?: string | null | undefined;
26
- }, {
27
- type: "Image";
28
- url: string;
29
- mediaType?: string | null | undefined;
30
- }>;
31
- }, "strip", z.ZodTypeAny, {
32
- type: "Emoji";
33
- name: string;
34
- icon: {
35
- type: "Image";
36
- url: string;
37
- mediaType?: string | null | undefined;
38
- };
39
- updated: string;
40
- }, {
41
- type: "Emoji";
42
- name: string;
43
- icon: {
44
- type: "Image";
45
- url: string;
46
- mediaType?: string | null | undefined;
47
- };
48
- updated: string;
49
- }>, z.ZodObject<{
14
+ }, z.core.$strip>;
15
+ }, z.core.$strip>, z.ZodObject<{
50
16
  type: z.ZodLiteral<"Hashtag">;
51
17
  href: z.ZodString;
52
18
  name: z.ZodString;
53
- }, "strip", z.ZodTypeAny, {
54
- type: "Hashtag";
55
- name: string;
56
- href: string;
57
- }, {
58
- type: "Hashtag";
59
- name: string;
60
- href: string;
61
- }>]>;
19
+ }, z.core.$strip>]>;
62
20
  export type Tag = z.infer<typeof Tag>;
@@ -4,79 +4,33 @@ export declare const Note: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  attributedTo: z.ZodString;
7
- to: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
8
- cc: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
7
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
8
+ cc: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
9
9
  inReplyTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  summaryMap: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
12
- content: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
13
- contentMap: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>>;
14
- replies: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
12
+ content: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
13
+ contentMap: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString>]>>>;
14
+ replies: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
15
15
  id: z.ZodString;
16
16
  type: z.ZodLiteral<"Collection">;
17
17
  first: z.ZodObject<{
18
18
  type: z.ZodLiteral<"CollectionPage">;
19
19
  next: z.ZodString;
20
20
  partOf: z.ZodString;
21
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
22
- }, "strip", z.ZodTypeAny, {
23
- type: "CollectionPage";
24
- next: string;
25
- partOf: string;
26
- items?: any;
27
- }, {
28
- type: "CollectionPage";
29
- next: string;
30
- partOf: string;
31
- items?: any;
32
- }>;
33
- }, "strip", z.ZodTypeAny, {
34
- id: string;
35
- type: "Collection";
36
- first: {
37
- type: "CollectionPage";
38
- next: string;
39
- partOf: string;
40
- items?: any;
41
- };
42
- }, {
43
- id: string;
44
- type: "Collection";
45
- first: {
46
- type: "CollectionPage";
47
- next: string;
48
- partOf: string;
49
- items?: any;
50
- };
51
- }>, z.ZodObject<{
21
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
22
+ }, z.core.$strip>;
23
+ }, z.core.$strip>, z.ZodObject<{
52
24
  id: z.ZodString;
53
25
  type: z.ZodLiteral<"Collection">;
54
26
  totalItems: z.ZodNumber;
55
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
56
- }, "strip", z.ZodTypeAny, {
57
- id: string;
58
- type: "Collection";
59
- totalItems: number;
60
- items?: any;
61
- }, {
62
- id: string;
63
- type: "Collection";
64
- totalItems: number;
65
- items?: any;
66
- }>]>>>;
67
- attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
27
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
28
+ }, z.core.$strip>]>>>;
29
+ attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
68
30
  type: z.ZodLiteral<"PropertyValue">;
69
31
  name: z.ZodString;
70
32
  value: z.ZodString;
71
- }, "strip", z.ZodTypeAny, {
72
- type: "PropertyValue";
73
- value: string;
74
- name: string;
75
- }, {
76
- type: "PropertyValue";
77
- value: string;
78
- name: string;
79
- }>, z.ZodObject<{
33
+ }, z.core.$strip>, z.ZodObject<{
80
34
  type: z.ZodLiteral<"Document">;
81
35
  mediaType: z.ZodString;
82
36
  url: z.ZodString;
@@ -85,37 +39,11 @@ export declare const Note: z.ZodObject<{
85
39
  height: z.ZodOptional<z.ZodNumber>;
86
40
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
41
  focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
88
- }, "strip", z.ZodTypeAny, {
89
- type: "Document";
90
- mediaType: string;
91
- url: string;
92
- name?: string | null | undefined;
93
- blurhash?: string | undefined;
94
- width?: number | undefined;
95
- height?: number | undefined;
96
- focalPoint?: [number, number] | undefined;
97
- }, {
98
- type: "Document";
99
- mediaType: string;
100
- url: string;
101
- name?: string | null | undefined;
102
- blurhash?: string | undefined;
103
- width?: number | undefined;
104
- height?: number | undefined;
105
- focalPoint?: [number, number] | undefined;
106
- }>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
42
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
107
43
  type: z.ZodLiteral<"PropertyValue">;
108
44
  name: z.ZodString;
109
45
  value: z.ZodString;
110
- }, "strip", z.ZodTypeAny, {
111
- type: "PropertyValue";
112
- value: string;
113
- name: string;
114
- }, {
115
- type: "PropertyValue";
116
- value: string;
117
- name: string;
118
- }>, z.ZodObject<{
46
+ }, z.core.$strip>, z.ZodObject<{
119
47
  type: z.ZodLiteral<"Document">;
120
48
  mediaType: z.ZodString;
121
49
  url: z.ZodString;
@@ -124,38 +52,12 @@ export declare const Note: z.ZodObject<{
124
52
  height: z.ZodOptional<z.ZodNumber>;
125
53
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
126
54
  focalPoint: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
127
- }, "strip", z.ZodTypeAny, {
128
- type: "Document";
129
- mediaType: string;
130
- url: string;
131
- name?: string | null | undefined;
132
- blurhash?: string | undefined;
133
- width?: number | undefined;
134
- height?: number | undefined;
135
- focalPoint?: [number, number] | undefined;
136
- }, {
137
- type: "Document";
138
- mediaType: string;
139
- url: string;
140
- name?: string | null | undefined;
141
- blurhash?: string | undefined;
142
- width?: number | undefined;
143
- height?: number | undefined;
144
- focalPoint?: [number, number] | undefined;
145
- }>]>, "many">]>>>;
146
- tag: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
55
+ }, z.core.$strip>]>>]>>>;
56
+ tag: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
147
57
  type: z.ZodLiteral<"Mention">;
148
58
  href: z.ZodString;
149
59
  name: z.ZodString;
150
- }, "strip", z.ZodTypeAny, {
151
- type: "Mention";
152
- name: string;
153
- href: string;
154
- }, {
155
- type: "Mention";
156
- name: string;
157
- href: string;
158
- }>, z.ZodObject<{
60
+ }, z.core.$strip>, z.ZodObject<{
159
61
  type: z.ZodLiteral<"Emoji">;
160
62
  name: z.ZodString;
161
63
  updated: z.ZodString;
@@ -163,58 +65,16 @@ export declare const Note: z.ZodObject<{
163
65
  type: z.ZodLiteral<"Image">;
164
66
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
67
  url: z.ZodString;
166
- }, "strip", z.ZodTypeAny, {
167
- type: "Image";
168
- url: string;
169
- mediaType?: string | null | undefined;
170
- }, {
171
- type: "Image";
172
- url: string;
173
- mediaType?: string | null | undefined;
174
- }>;
175
- }, "strip", z.ZodTypeAny, {
176
- type: "Emoji";
177
- name: string;
178
- icon: {
179
- type: "Image";
180
- url: string;
181
- mediaType?: string | null | undefined;
182
- };
183
- updated: string;
184
- }, {
185
- type: "Emoji";
186
- name: string;
187
- icon: {
188
- type: "Image";
189
- url: string;
190
- mediaType?: string | null | undefined;
191
- };
192
- updated: string;
193
- }>, z.ZodObject<{
68
+ }, z.core.$strip>;
69
+ }, z.core.$strip>, z.ZodObject<{
194
70
  type: z.ZodLiteral<"Hashtag">;
195
71
  href: z.ZodString;
196
72
  name: z.ZodString;
197
- }, "strip", z.ZodTypeAny, {
198
- type: "Hashtag";
199
- name: string;
200
- href: string;
201
- }, {
202
- type: "Hashtag";
203
- name: string;
204
- href: string;
205
- }>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
73
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
206
74
  type: z.ZodLiteral<"Mention">;
207
75
  href: z.ZodString;
208
76
  name: z.ZodString;
209
- }, "strip", z.ZodTypeAny, {
210
- type: "Mention";
211
- name: string;
212
- href: string;
213
- }, {
214
- type: "Mention";
215
- name: string;
216
- href: string;
217
- }>, z.ZodObject<{
77
+ }, z.core.$strip>, z.ZodObject<{
218
78
  type: z.ZodLiteral<"Emoji">;
219
79
  name: z.ZodString;
220
80
  updated: z.ZodString;
@@ -222,231 +82,14 @@ export declare const Note: z.ZodObject<{
222
82
  type: z.ZodLiteral<"Image">;
223
83
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
84
  url: z.ZodString;
225
- }, "strip", z.ZodTypeAny, {
226
- type: "Image";
227
- url: string;
228
- mediaType?: string | null | undefined;
229
- }, {
230
- type: "Image";
231
- url: string;
232
- mediaType?: string | null | undefined;
233
- }>;
234
- }, "strip", z.ZodTypeAny, {
235
- type: "Emoji";
236
- name: string;
237
- icon: {
238
- type: "Image";
239
- url: string;
240
- mediaType?: string | null | undefined;
241
- };
242
- updated: string;
243
- }, {
244
- type: "Emoji";
245
- name: string;
246
- icon: {
247
- type: "Image";
248
- url: string;
249
- mediaType?: string | null | undefined;
250
- };
251
- updated: string;
252
- }>, z.ZodObject<{
85
+ }, z.core.$strip>;
86
+ }, z.core.$strip>, z.ZodObject<{
253
87
  type: z.ZodLiteral<"Hashtag">;
254
88
  href: z.ZodString;
255
89
  name: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- type: "Hashtag";
258
- name: string;
259
- href: string;
260
- }, {
261
- type: "Hashtag";
262
- name: string;
263
- href: string;
264
- }>]>, "many">]>;
90
+ }, z.core.$strip>]>>]>;
265
91
  published: z.ZodString;
266
92
  updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
- } & {
268
93
  type: z.ZodLiteral<"Note">;
269
- }, "strip", z.ZodTypeAny, {
270
- id: string;
271
- type: "Note";
272
- published: string;
273
- to: string | string[];
274
- cc: string | string[];
275
- attributedTo: string;
276
- tag: {
277
- type: "Emoji";
278
- name: string;
279
- icon: {
280
- type: "Image";
281
- url: string;
282
- mediaType?: string | null | undefined;
283
- };
284
- updated: string;
285
- } | {
286
- type: "Mention";
287
- name: string;
288
- href: string;
289
- } | {
290
- type: "Hashtag";
291
- name: string;
292
- href: string;
293
- } | ({
294
- type: "Emoji";
295
- name: string;
296
- icon: {
297
- type: "Image";
298
- url: string;
299
- mediaType?: string | null | undefined;
300
- };
301
- updated: string;
302
- } | {
303
- type: "Mention";
304
- name: string;
305
- href: string;
306
- } | {
307
- type: "Hashtag";
308
- name: string;
309
- href: string;
310
- })[];
311
- url?: string | null | undefined;
312
- summary?: string | null | undefined;
313
- updated?: string | null | undefined;
314
- inReplyTo?: string | null | undefined;
315
- summaryMap?: Record<string, string> | null | undefined;
316
- content?: string | string[] | null | undefined;
317
- contentMap?: string[] | Record<string, string> | null | undefined;
318
- replies?: {
319
- id: string;
320
- type: "Collection";
321
- first: {
322
- type: "CollectionPage";
323
- next: string;
324
- partOf: string;
325
- items?: any;
326
- };
327
- } | {
328
- id: string;
329
- type: "Collection";
330
- totalItems: number;
331
- items?: any;
332
- } | null | undefined;
333
- attachment?: {
334
- type: "Document";
335
- mediaType: string;
336
- url: string;
337
- name?: string | null | undefined;
338
- blurhash?: string | undefined;
339
- width?: number | undefined;
340
- height?: number | undefined;
341
- focalPoint?: [number, number] | undefined;
342
- } | {
343
- type: "PropertyValue";
344
- value: string;
345
- name: string;
346
- } | ({
347
- type: "Document";
348
- mediaType: string;
349
- url: string;
350
- name?: string | null | undefined;
351
- blurhash?: string | undefined;
352
- width?: number | undefined;
353
- height?: number | undefined;
354
- focalPoint?: [number, number] | undefined;
355
- } | {
356
- type: "PropertyValue";
357
- value: string;
358
- name: string;
359
- })[] | null | undefined;
360
- }, {
361
- id: string;
362
- type: "Note";
363
- published: string;
364
- to: string | string[];
365
- cc: string | string[];
366
- attributedTo: string;
367
- tag: {
368
- type: "Emoji";
369
- name: string;
370
- icon: {
371
- type: "Image";
372
- url: string;
373
- mediaType?: string | null | undefined;
374
- };
375
- updated: string;
376
- } | {
377
- type: "Mention";
378
- name: string;
379
- href: string;
380
- } | {
381
- type: "Hashtag";
382
- name: string;
383
- href: string;
384
- } | ({
385
- type: "Emoji";
386
- name: string;
387
- icon: {
388
- type: "Image";
389
- url: string;
390
- mediaType?: string | null | undefined;
391
- };
392
- updated: string;
393
- } | {
394
- type: "Mention";
395
- name: string;
396
- href: string;
397
- } | {
398
- type: "Hashtag";
399
- name: string;
400
- href: string;
401
- })[];
402
- url?: string | null | undefined;
403
- summary?: string | null | undefined;
404
- updated?: string | null | undefined;
405
- inReplyTo?: string | null | undefined;
406
- summaryMap?: Record<string, string> | null | undefined;
407
- content?: string | string[] | null | undefined;
408
- contentMap?: string[] | Record<string, string> | null | undefined;
409
- replies?: {
410
- id: string;
411
- type: "Collection";
412
- first: {
413
- type: "CollectionPage";
414
- next: string;
415
- partOf: string;
416
- items?: any;
417
- };
418
- } | {
419
- id: string;
420
- type: "Collection";
421
- totalItems: number;
422
- items?: any;
423
- } | null | undefined;
424
- attachment?: {
425
- type: "Document";
426
- mediaType: string;
427
- url: string;
428
- name?: string | null | undefined;
429
- blurhash?: string | undefined;
430
- width?: number | undefined;
431
- height?: number | undefined;
432
- focalPoint?: [number, number] | undefined;
433
- } | {
434
- type: "PropertyValue";
435
- value: string;
436
- name: string;
437
- } | ({
438
- type: "Document";
439
- mediaType: string;
440
- url: string;
441
- name?: string | null | undefined;
442
- blurhash?: string | undefined;
443
- width?: number | undefined;
444
- height?: number | undefined;
445
- focalPoint?: [number, number] | undefined;
446
- } | {
447
- type: "PropertyValue";
448
- value: string;
449
- name: string;
450
- })[] | null | undefined;
451
- }>;
94
+ }, z.core.$strip>;
452
95
  export type Note = z.infer<typeof Note>;
@@ -5,26 +5,6 @@ export declare const Note: z.ZodObject<{
5
5
  replies: z.ZodObject<{
6
6
  type: z.ZodLiteral<"Collection">;
7
7
  totalItems: z.ZodNumber;
8
- }, "strip", z.ZodTypeAny, {
9
- type: "Collection";
10
- totalItems: number;
11
- }, {
12
- type: "Collection";
13
- totalItems: number;
14
- }>;
15
- }, "strip", z.ZodTypeAny, {
16
- type: "Note";
17
- name: string;
18
- replies: {
19
- type: "Collection";
20
- totalItems: number;
21
- };
22
- }, {
23
- type: "Note";
24
- name: string;
25
- replies: {
26
- type: "Collection";
27
- totalItems: number;
28
- };
29
- }>;
8
+ }, z.core.$strip>;
9
+ }, z.core.$strip>;
30
10
  export type Note = z.infer<typeof Note>;