@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
@@ -1,12 +1,8 @@
1
1
  // This schema is base on https://docs.joinmastodon.org/entities/Status/#Mention
2
2
  import { z } from "zod";
3
3
  export const Mention = z.object({
4
- id: z.string({ description: "The actor ID of the mentioned user" }),
5
- username: z.string({ description: "The username of the mentioned user" }),
6
- url: z.string({
7
- description: "The location of the mentioned user’s profile",
8
- }),
9
- acct: z.string({
10
- description: "The webfinger acct: URI of the mentioned user. Equivalent to `username` for local users, or `username@domain` for remote users",
11
- }),
4
+ id: z.string().describe("The actor ID of the mentioned user"),
5
+ username: z.string().describe("The username of the mentioned user"),
6
+ url: z.string().describe("The location of the mentioned user's profile"),
7
+ acct: z.string().describe("The webfinger acct: URI of the mentioned user. Equivalent to `username` for local users, or `username@domain` for remote users"),
12
8
  });
@@ -1,10 +1,6 @@
1
1
  // This schema is base on https://docs.joinmastodon.org/entities/Status/#Tag
2
2
  import { z } from "zod";
3
3
  export const Tag = z.object({
4
- name: z.string({
5
- description: "The value of the hashtag after the `#` sign",
6
- }),
7
- url: z.string({
8
- description: "A link to the hashtag on the instance",
9
- }),
4
+ name: z.string().describe("The value of the hashtag after the `#` sign"),
5
+ url: z.string().describe("A link to the hashtag on the instance"),
10
6
  });
@@ -5,35 +5,34 @@ import { Collection } from "../collection.js";
5
5
  export const BaseContent = z.object({
6
6
  id: z.string(),
7
7
  url: z
8
- .string({ description: "Note URL. This is optional for Pleloma" })
8
+ .string().describe("Note URL. This is optional for Pleloma")
9
9
  .nullish(),
10
- attributedTo: z.string({ description: "Note publisher" }),
10
+ attributedTo: z.string().describe("Note publisher"),
11
11
  to: z.union([z.string(), z.string().array()]),
12
12
  cc: z.union([z.string(), z.string().array()]),
13
13
  inReplyTo: z.string().nullish(),
14
- summary: z.string({ description: "Note short summary" }).nullish(),
14
+ summary: z.string().describe("Note short summary").nullish(),
15
15
  summaryMap: z
16
- .record(z.string(), { description: "Note short summary in each locale" })
16
+ .record(z.string(), z.string()).describe("Note short summary in each locale")
17
17
  .nullish(),
18
18
  content: z
19
19
  .union([
20
- z.string({ description: "Note content" }),
21
- z.string({ description: "Note content in array from Wordpress" }).array(),
20
+ z.string().describe("Note content"),
21
+ z.string().describe("Note content in array from Wordpress").array(),
22
22
  ])
23
23
  .nullish(),
24
24
  contentMap: z
25
25
  .union([
26
- z.record(z.string(), { description: "Note content in each locale" }),
26
+ z.record(z.string(), z.string()).describe("Note content in each locale"),
27
27
  z
28
- .string({
29
- description: "Some activity pub server use content map as array with content in the first element",
30
- })
28
+ .string()
29
+ .describe("Some activity pub server use content map as array with content in the first element")
31
30
  .array(),
32
31
  ])
33
32
  .nullish(),
34
33
  replies: Collection.nullish(),
35
34
  attachment: z.union([Attachment, Attachment.array()]).nullish(),
36
35
  tag: z.union([Tag, Tag.array()]),
37
- published: z.string({ description: "Object published datetime" }),
38
- updated: z.string({ description: "Object updated datetime" }).nullish(),
36
+ published: z.string().describe("Object published datetime"),
37
+ updated: z.string().describe("Object updated datetime").nullish(),
39
38
  });
@@ -4,6 +4,6 @@ import { Note } from "./question/note.js";
4
4
  export const ENTITY_TYPE_QUESTION = "Question";
5
5
  export const Question = BaseContent.extend({
6
6
  type: z.literal(ENTITY_TYPE_QUESTION),
7
- endTime: z.string({ description: "Question end time" }),
7
+ endTime: z.string().describe("Question end time"),
8
8
  oneOf: Note.array(),
9
9
  });
@@ -8,36 +8,6 @@ export declare const Accept: z.ZodObject<{
8
8
  type: z.ZodLiteral<"Follow">;
9
9
  actor: z.ZodString;
10
10
  object: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- object: string;
13
- id: string;
14
- type: "Follow";
15
- actor: string;
16
- }, {
17
- object: string;
18
- id: string;
19
- type: "Follow";
20
- actor: string;
21
- }>;
22
- }, "strip", z.ZodTypeAny, {
23
- object: {
24
- object: string;
25
- id: string;
26
- type: "Follow";
27
- actor: string;
28
- };
29
- id: string;
30
- type: "Accept";
31
- actor: string;
32
- }, {
33
- object: {
34
- object: string;
35
- id: string;
36
- type: "Follow";
37
- actor: string;
38
- };
39
- id: string;
40
- type: "Accept";
41
- actor: string;
42
- }>;
11
+ }, z.core.$strip>;
12
+ }, z.core.$strip>;
43
13
  export type Accept = z.infer<typeof Accept>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const Actor: z.ZodObject<{
3
3
  id: z.ZodString;
4
- type: z.ZodUnion<[z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
4
+ type: z.ZodUnion<readonly [z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
5
5
  following: z.ZodOptional<z.ZodString>;
6
6
  followers: z.ZodString;
7
7
  inbox: z.ZodString;
@@ -16,115 +16,25 @@ export declare const Actor: z.ZodObject<{
16
16
  id: z.ZodString;
17
17
  owner: z.ZodString;
18
18
  publicKeyPem: z.ZodString;
19
- }, "strip", z.ZodTypeAny, {
20
- id: string;
21
- owner: string;
22
- publicKeyPem: string;
23
- }, {
24
- id: string;
25
- owner: string;
26
- publicKeyPem: string;
27
- }>;
19
+ }, z.core.$strip>;
28
20
  endpoints: z.ZodOptional<z.ZodObject<{
29
21
  sharedInbox: z.ZodOptional<z.ZodString>;
30
- }, "strip", z.ZodTypeAny, {
31
- sharedInbox?: string | undefined;
32
- }, {
33
- sharedInbox?: string | undefined;
34
- }>>;
22
+ }, z.core.$strip>>;
35
23
  icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36
24
  type: z.ZodLiteral<"Image">;
37
25
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
26
  url: z.ZodString;
39
- }, "strip", z.ZodTypeAny, {
40
- type: "Image";
41
- url: string;
42
- mediaType?: string | null | undefined;
43
- }, {
44
- type: "Image";
45
- url: string;
46
- mediaType?: string | null | undefined;
47
- }>>>;
27
+ }, z.core.$strip>>>;
48
28
  image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
49
29
  type: z.ZodLiteral<"Image">;
50
30
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
31
  url: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- type: "Image";
54
- url: string;
55
- mediaType?: string | null | undefined;
56
- }, {
57
- type: "Image";
58
- url: string;
59
- mediaType?: string | null | undefined;
60
- }>>>;
61
- }, "strip", z.ZodTypeAny, {
62
- id: string;
63
- type: "Person" | "Service";
64
- url: string;
65
- followers: string;
66
- inbox: string;
67
- outbox: string;
68
- preferredUsername: string;
69
- name: string;
70
- publicKey: {
71
- id: string;
72
- owner: string;
73
- publicKeyPem: string;
74
- };
75
- following?: string | undefined;
76
- summary?: string | null | undefined;
77
- published?: string | null | undefined;
78
- manuallyApprovesFollowers?: boolean | undefined;
79
- endpoints?: {
80
- sharedInbox?: string | undefined;
81
- } | undefined;
82
- icon?: {
83
- type: "Image";
84
- url: string;
85
- mediaType?: string | null | undefined;
86
- } | null | undefined;
87
- image?: {
88
- type: "Image";
89
- url: string;
90
- mediaType?: string | null | undefined;
91
- } | null | undefined;
92
- }, {
93
- id: string;
94
- type: "Person" | "Service";
95
- url: string;
96
- followers: string;
97
- inbox: string;
98
- outbox: string;
99
- preferredUsername: string;
100
- name: string;
101
- publicKey: {
102
- id: string;
103
- owner: string;
104
- publicKeyPem: string;
105
- };
106
- following?: string | undefined;
107
- summary?: string | null | undefined;
108
- published?: string | null | undefined;
109
- manuallyApprovesFollowers?: boolean | undefined;
110
- endpoints?: {
111
- sharedInbox?: string | undefined;
112
- } | undefined;
113
- icon?: {
114
- type: "Image";
115
- url: string;
116
- mediaType?: string | null | undefined;
117
- } | null | undefined;
118
- image?: {
119
- type: "Image";
120
- url: string;
121
- mediaType?: string | null | undefined;
122
- } | null | undefined;
123
- }>;
32
+ }, z.core.$strip>>>;
33
+ }, z.core.$strip>;
124
34
  export type Actor = z.infer<typeof Actor>;
125
35
  export declare const Person: z.ZodObject<{
126
36
  id: z.ZodString;
127
- type: z.ZodUnion<[z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
37
+ type: z.ZodUnion<readonly [z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
128
38
  following: z.ZodOptional<z.ZodString>;
129
39
  followers: z.ZodString;
130
40
  inbox: z.ZodString;
@@ -139,115 +49,25 @@ export declare const Person: z.ZodObject<{
139
49
  id: z.ZodString;
140
50
  owner: z.ZodString;
141
51
  publicKeyPem: z.ZodString;
142
- }, "strip", z.ZodTypeAny, {
143
- id: string;
144
- owner: string;
145
- publicKeyPem: string;
146
- }, {
147
- id: string;
148
- owner: string;
149
- publicKeyPem: string;
150
- }>;
52
+ }, z.core.$strip>;
151
53
  endpoints: z.ZodOptional<z.ZodObject<{
152
54
  sharedInbox: z.ZodOptional<z.ZodString>;
153
- }, "strip", z.ZodTypeAny, {
154
- sharedInbox?: string | undefined;
155
- }, {
156
- sharedInbox?: string | undefined;
157
- }>>;
55
+ }, z.core.$strip>>;
158
56
  icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
159
57
  type: z.ZodLiteral<"Image">;
160
58
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
59
  url: z.ZodString;
162
- }, "strip", z.ZodTypeAny, {
163
- type: "Image";
164
- url: string;
165
- mediaType?: string | null | undefined;
166
- }, {
167
- type: "Image";
168
- url: string;
169
- mediaType?: string | null | undefined;
170
- }>>>;
60
+ }, z.core.$strip>>>;
171
61
  image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
172
62
  type: z.ZodLiteral<"Image">;
173
63
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
64
  url: z.ZodString;
175
- }, "strip", z.ZodTypeAny, {
176
- type: "Image";
177
- url: string;
178
- mediaType?: string | null | undefined;
179
- }, {
180
- type: "Image";
181
- url: string;
182
- mediaType?: string | null | undefined;
183
- }>>>;
184
- }, "strip", z.ZodTypeAny, {
185
- id: string;
186
- type: "Person" | "Service";
187
- url: string;
188
- followers: string;
189
- inbox: string;
190
- outbox: string;
191
- preferredUsername: string;
192
- name: string;
193
- publicKey: {
194
- id: string;
195
- owner: string;
196
- publicKeyPem: string;
197
- };
198
- following?: string | undefined;
199
- summary?: string | null | undefined;
200
- published?: string | null | undefined;
201
- manuallyApprovesFollowers?: boolean | undefined;
202
- endpoints?: {
203
- sharedInbox?: string | undefined;
204
- } | undefined;
205
- icon?: {
206
- type: "Image";
207
- url: string;
208
- mediaType?: string | null | undefined;
209
- } | null | undefined;
210
- image?: {
211
- type: "Image";
212
- url: string;
213
- mediaType?: string | null | undefined;
214
- } | null | undefined;
215
- }, {
216
- id: string;
217
- type: "Person" | "Service";
218
- url: string;
219
- followers: string;
220
- inbox: string;
221
- outbox: string;
222
- preferredUsername: string;
223
- name: string;
224
- publicKey: {
225
- id: string;
226
- owner: string;
227
- publicKeyPem: string;
228
- };
229
- following?: string | undefined;
230
- summary?: string | null | undefined;
231
- published?: string | null | undefined;
232
- manuallyApprovesFollowers?: boolean | undefined;
233
- endpoints?: {
234
- sharedInbox?: string | undefined;
235
- } | undefined;
236
- icon?: {
237
- type: "Image";
238
- url: string;
239
- mediaType?: string | null | undefined;
240
- } | null | undefined;
241
- image?: {
242
- type: "Image";
243
- url: string;
244
- mediaType?: string | null | undefined;
245
- } | null | undefined;
246
- }>;
65
+ }, z.core.$strip>>>;
66
+ }, z.core.$strip>;
247
67
  export type Person = z.infer<typeof Person>;
248
68
  export declare const Service: z.ZodObject<{
249
69
  id: z.ZodString;
250
- type: z.ZodUnion<[z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
70
+ type: z.ZodUnion<readonly [z.ZodLiteral<"Person">, z.ZodLiteral<"Service">]>;
251
71
  following: z.ZodOptional<z.ZodString>;
252
72
  followers: z.ZodString;
253
73
  inbox: z.ZodString;
@@ -262,109 +82,19 @@ export declare const Service: z.ZodObject<{
262
82
  id: z.ZodString;
263
83
  owner: z.ZodString;
264
84
  publicKeyPem: z.ZodString;
265
- }, "strip", z.ZodTypeAny, {
266
- id: string;
267
- owner: string;
268
- publicKeyPem: string;
269
- }, {
270
- id: string;
271
- owner: string;
272
- publicKeyPem: string;
273
- }>;
85
+ }, z.core.$strip>;
274
86
  endpoints: z.ZodOptional<z.ZodObject<{
275
87
  sharedInbox: z.ZodOptional<z.ZodString>;
276
- }, "strip", z.ZodTypeAny, {
277
- sharedInbox?: string | undefined;
278
- }, {
279
- sharedInbox?: string | undefined;
280
- }>>;
88
+ }, z.core.$strip>>;
281
89
  icon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
282
90
  type: z.ZodLiteral<"Image">;
283
91
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
92
  url: z.ZodString;
285
- }, "strip", z.ZodTypeAny, {
286
- type: "Image";
287
- url: string;
288
- mediaType?: string | null | undefined;
289
- }, {
290
- type: "Image";
291
- url: string;
292
- mediaType?: string | null | undefined;
293
- }>>>;
93
+ }, z.core.$strip>>>;
294
94
  image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
295
95
  type: z.ZodLiteral<"Image">;
296
96
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
97
  url: z.ZodString;
298
- }, "strip", z.ZodTypeAny, {
299
- type: "Image";
300
- url: string;
301
- mediaType?: string | null | undefined;
302
- }, {
303
- type: "Image";
304
- url: string;
305
- mediaType?: string | null | undefined;
306
- }>>>;
307
- }, "strip", z.ZodTypeAny, {
308
- id: string;
309
- type: "Person" | "Service";
310
- url: string;
311
- followers: string;
312
- inbox: string;
313
- outbox: string;
314
- preferredUsername: string;
315
- name: string;
316
- publicKey: {
317
- id: string;
318
- owner: string;
319
- publicKeyPem: string;
320
- };
321
- following?: string | undefined;
322
- summary?: string | null | undefined;
323
- published?: string | null | undefined;
324
- manuallyApprovesFollowers?: boolean | undefined;
325
- endpoints?: {
326
- sharedInbox?: string | undefined;
327
- } | undefined;
328
- icon?: {
329
- type: "Image";
330
- url: string;
331
- mediaType?: string | null | undefined;
332
- } | null | undefined;
333
- image?: {
334
- type: "Image";
335
- url: string;
336
- mediaType?: string | null | undefined;
337
- } | null | undefined;
338
- }, {
339
- id: string;
340
- type: "Person" | "Service";
341
- url: string;
342
- followers: string;
343
- inbox: string;
344
- outbox: string;
345
- preferredUsername: string;
346
- name: string;
347
- publicKey: {
348
- id: string;
349
- owner: string;
350
- publicKeyPem: string;
351
- };
352
- following?: string | undefined;
353
- summary?: string | null | undefined;
354
- published?: string | null | undefined;
355
- manuallyApprovesFollowers?: boolean | undefined;
356
- endpoints?: {
357
- sharedInbox?: string | undefined;
358
- } | undefined;
359
- icon?: {
360
- type: "Image";
361
- url: string;
362
- mediaType?: string | null | undefined;
363
- } | null | undefined;
364
- image?: {
365
- type: "Image";
366
- url: string;
367
- mediaType?: string | null | undefined;
368
- } | null | undefined;
369
- }>;
98
+ }, z.core.$strip>>>;
99
+ }, z.core.$strip>;
370
100
  export type Service = z.infer<typeof Service>;
@@ -4,24 +4,8 @@ export declare const Announce: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  actor: z.ZodString;
6
6
  published: 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
  object: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- object: string;
12
- id: string;
13
- type: "Announce";
14
- actor: string;
15
- published: string;
16
- to: string | string[];
17
- cc: string | string[];
18
- }, {
19
- object: string;
20
- id: string;
21
- type: "Announce";
22
- actor: string;
23
- published: string;
24
- to: string | string[];
25
- cc: string | string[];
26
- }>;
10
+ }, z.core.$strip>;
27
11
  export type Announce = z.infer<typeof Announce>;
@@ -6,106 +6,30 @@ export declare const CollectionWithFirstPage: z.ZodObject<{
6
6
  type: z.ZodLiteral<"CollectionPage">;
7
7
  next: z.ZodString;
8
8
  partOf: z.ZodString;
9
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
10
- }, "strip", z.ZodTypeAny, {
11
- type: "CollectionPage";
12
- next: string;
13
- partOf: string;
14
- items?: any;
15
- }, {
16
- type: "CollectionPage";
17
- next: string;
18
- partOf: string;
19
- items?: any;
20
- }>;
21
- }, "strip", z.ZodTypeAny, {
22
- id: string;
23
- type: "Collection";
24
- first: {
25
- type: "CollectionPage";
26
- next: string;
27
- partOf: string;
28
- items?: any;
29
- };
30
- }, {
31
- id: string;
32
- type: "Collection";
33
- first: {
34
- type: "CollectionPage";
35
- next: string;
36
- partOf: string;
37
- items?: any;
38
- };
39
- }>;
9
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
10
+ }, z.core.$strip>;
11
+ }, z.core.$strip>;
40
12
  export type CollectionWithFirstPage = z.infer<typeof CollectionWithFirstPage>;
41
13
  export declare const CollectionWithItems: z.ZodObject<{
42
14
  id: z.ZodString;
43
15
  type: z.ZodLiteral<"Collection">;
44
16
  totalItems: z.ZodNumber;
45
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
46
- }, "strip", z.ZodTypeAny, {
47
- id: string;
48
- type: "Collection";
49
- totalItems: number;
50
- items?: any;
51
- }, {
52
- id: string;
53
- type: "Collection";
54
- totalItems: number;
55
- items?: any;
56
- }>;
17
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
18
+ }, z.core.$strip>;
57
19
  export type CollectionWithItems = z.infer<typeof CollectionWithItems>;
58
- export declare const Collection: z.ZodUnion<[z.ZodObject<{
20
+ export declare const Collection: z.ZodUnion<readonly [z.ZodObject<{
59
21
  id: z.ZodString;
60
22
  type: z.ZodLiteral<"Collection">;
61
23
  first: z.ZodObject<{
62
24
  type: z.ZodLiteral<"CollectionPage">;
63
25
  next: z.ZodString;
64
26
  partOf: z.ZodString;
65
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
66
- }, "strip", z.ZodTypeAny, {
67
- type: "CollectionPage";
68
- next: string;
69
- partOf: string;
70
- items?: any;
71
- }, {
72
- type: "CollectionPage";
73
- next: string;
74
- partOf: string;
75
- items?: any;
76
- }>;
77
- }, "strip", z.ZodTypeAny, {
78
- id: string;
79
- type: "Collection";
80
- first: {
81
- type: "CollectionPage";
82
- next: string;
83
- partOf: string;
84
- items?: any;
85
- };
86
- }, {
87
- id: string;
88
- type: "Collection";
89
- first: {
90
- type: "CollectionPage";
91
- next: string;
92
- partOf: string;
93
- items?: any;
94
- };
95
- }>, z.ZodObject<{
27
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>, z.ZodObject<{
96
30
  id: z.ZodString;
97
31
  type: z.ZodLiteral<"Collection">;
98
32
  totalItems: z.ZodNumber;
99
- items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
100
- }, "strip", z.ZodTypeAny, {
101
- id: string;
102
- type: "Collection";
103
- totalItems: number;
104
- items?: any;
105
- }, {
106
- id: string;
107
- type: "Collection";
108
- totalItems: number;
109
- items?: any;
110
- }>]>;
33
+ items: z.ZodUnion<readonly [z.ZodAny, z.ZodArray<z.ZodAny>]>;
34
+ }, z.core.$strip>]>;
111
35
  export type Collection = z.infer<typeof Collection>;
@@ -5,15 +5,5 @@ export declare const Follow: z.ZodObject<{
5
5
  type: z.ZodLiteral<"Follow">;
6
6
  actor: z.ZodString;
7
7
  object: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- object: string;
10
- id: string;
11
- type: "Follow";
12
- actor: string;
13
- }, {
14
- object: string;
15
- id: string;
16
- type: "Follow";
17
- actor: string;
18
- }>;
8
+ }, z.core.$strip>;
19
9
  export type Follow = z.infer<typeof Follow>;
@@ -3,13 +3,5 @@ export declare const Image: z.ZodObject<{
3
3
  type: z.ZodLiteral<"Image">;
4
4
  mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  url: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- type: "Image";
8
- url: string;
9
- mediaType?: string | null | undefined;
10
- }, {
11
- type: "Image";
12
- url: string;
13
- mediaType?: string | null | undefined;
14
- }>;
6
+ }, z.core.$strip>;
15
7
  export type Image = z.infer<typeof Image>;