@chronicle.app/schema 0.2.0 → 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.
- package/README.md +7 -3
- package/chronicle.ttl +503 -8
- package/dist/schema.d.ts +491 -16
- package/dist/schema.js +1788 -103
- package/package.json +3 -3
package/dist/schema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const SCHEMA_VERSION = '0.
|
|
1
|
+
export const SCHEMA_VERSION = '0.2.0';
|
|
2
2
|
// Generated from chronicle.ttl. Do not edit; run npm run schema:generate.
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
function requireNodeIdentity(node, ctx) {
|
|
@@ -18,6 +18,8 @@ const BaseProperties = {
|
|
|
18
18
|
.array(z.union([z.string(), z.object({ key: z.string(), value: z.string() })]))
|
|
19
19
|
.optional(),
|
|
20
20
|
'@id': z.string().optional(),
|
|
21
|
+
'@asserts': z.array(z.string()).optional(),
|
|
22
|
+
'@assertedAt': z.union([z.coerce.date(), z.string()]).optional(),
|
|
21
23
|
};
|
|
22
24
|
export const BaseSchema = z
|
|
23
25
|
.object({
|
|
@@ -28,9 +30,14 @@ export const BaseSchema = z
|
|
|
28
30
|
const ActionProperties = {
|
|
29
31
|
...BaseProperties,
|
|
30
32
|
agent: z.lazy(() => AgentAndChildrenSchema).optional(),
|
|
33
|
+
endTime: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
31
34
|
instrument: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
35
|
+
location: z.lazy(() => z.union([LocationAndChildrenSchema, PlaceAndChildrenSchema])).optional(),
|
|
32
36
|
object: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
33
|
-
|
|
37
|
+
result: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
38
|
+
startTime: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
39
|
+
target: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
40
|
+
timestamp: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
34
41
|
};
|
|
35
42
|
export const ActionSchema = z
|
|
36
43
|
.object({
|
|
@@ -38,16 +45,40 @@ export const ActionSchema = z
|
|
|
38
45
|
...ActionProperties,
|
|
39
46
|
})
|
|
40
47
|
.superRefine(requireNodeIdentity);
|
|
48
|
+
const UpdateActionProperties = {
|
|
49
|
+
...ActionProperties,
|
|
50
|
+
};
|
|
51
|
+
export const UpdateActionSchema = z
|
|
52
|
+
.object({
|
|
53
|
+
'@type': z.literal('UpdateAction'),
|
|
54
|
+
...UpdateActionProperties,
|
|
55
|
+
})
|
|
56
|
+
.superRefine(requireNodeIdentity);
|
|
57
|
+
const AddActionProperties = {
|
|
58
|
+
...UpdateActionProperties,
|
|
59
|
+
};
|
|
60
|
+
export const AddActionSchema = z
|
|
61
|
+
.object({
|
|
62
|
+
'@type': z.literal('AddAction'),
|
|
63
|
+
...AddActionProperties,
|
|
64
|
+
})
|
|
65
|
+
.superRefine(requireNodeIdentity);
|
|
41
66
|
const EntityProperties = {
|
|
42
67
|
...BaseProperties,
|
|
43
68
|
about: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
44
69
|
body: z.lazy(() => z.string()).optional(),
|
|
70
|
+
category: z.lazy(() => z.array(z.string())).optional(),
|
|
71
|
+
contains: z.lazy(() => z.array(MediaObjectAndChildrenSchema)).optional(),
|
|
45
72
|
description: z.lazy(() => z.string()).optional(),
|
|
73
|
+
emblem: z.lazy(() => ImageObjectAndChildrenSchema).optional(),
|
|
46
74
|
handle: z.lazy(() => z.string()).optional(),
|
|
47
75
|
inRealm: z.lazy(() => RealmAndChildrenSchema).optional(),
|
|
48
76
|
isPartOf: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
77
|
+
location: z.lazy(() => z.union([LocationAndChildrenSchema, PlaceAndChildrenSchema])).optional(),
|
|
49
78
|
name: z.lazy(() => z.string()).optional(),
|
|
79
|
+
references: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
50
80
|
sameAs: z.lazy(() => z.array(z.union([EntityAndChildrenSchema, z.string()]))).optional(),
|
|
81
|
+
tags: z.lazy(() => z.array(z.string())).optional(),
|
|
51
82
|
url: z.lazy(() => z.string().url()).optional(),
|
|
52
83
|
};
|
|
53
84
|
export const EntitySchema = z
|
|
@@ -66,10 +97,64 @@ export const AgentSchema = z
|
|
|
66
97
|
...AgentProperties,
|
|
67
98
|
})
|
|
68
99
|
.superRefine(requireNodeIdentity);
|
|
69
|
-
const
|
|
100
|
+
const CreateActionProperties = {
|
|
101
|
+
...ActionProperties,
|
|
102
|
+
};
|
|
103
|
+
export const CreateActionSchema = z
|
|
104
|
+
.object({
|
|
105
|
+
'@type': z.literal('CreateAction'),
|
|
106
|
+
...CreateActionProperties,
|
|
107
|
+
})
|
|
108
|
+
.superRefine(requireNodeIdentity);
|
|
109
|
+
const AnnotateActionProperties = {
|
|
110
|
+
...CreateActionProperties,
|
|
111
|
+
};
|
|
112
|
+
export const AnnotateActionSchema = z
|
|
113
|
+
.object({
|
|
114
|
+
'@type': z.literal('AnnotateAction'),
|
|
115
|
+
...AnnotateActionProperties,
|
|
116
|
+
})
|
|
117
|
+
.superRefine(requireNodeIdentity);
|
|
118
|
+
const CreativeWorkProperties = {
|
|
70
119
|
...EntityProperties,
|
|
120
|
+
author: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
121
|
+
creator: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
122
|
+
datePublished: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
123
|
+
genre: z.lazy(() => z.array(z.string())).optional(),
|
|
124
|
+
publisher: z.lazy(() => z.array(OrganizationAndChildrenSchema)).optional(),
|
|
125
|
+
references: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
126
|
+
sourceFormat: z.lazy(() => z.string()).optional(),
|
|
127
|
+
visibility: z.lazy(() => z.string()).optional(),
|
|
128
|
+
};
|
|
129
|
+
export const CreativeWorkSchema = z
|
|
130
|
+
.object({
|
|
131
|
+
'@type': z.literal('CreativeWork'),
|
|
132
|
+
...CreativeWorkProperties,
|
|
133
|
+
})
|
|
134
|
+
.superRefine(requireNodeIdentity);
|
|
135
|
+
const ArticleProperties = {
|
|
136
|
+
...CreativeWorkProperties,
|
|
137
|
+
};
|
|
138
|
+
export const ArticleSchema = z
|
|
139
|
+
.object({
|
|
140
|
+
'@type': z.literal('Article'),
|
|
141
|
+
...ArticleProperties,
|
|
142
|
+
})
|
|
143
|
+
.superRefine(requireNodeIdentity);
|
|
144
|
+
const AssessActionProperties = {
|
|
145
|
+
...ActionProperties,
|
|
146
|
+
};
|
|
147
|
+
export const AssessActionSchema = z
|
|
148
|
+
.object({
|
|
149
|
+
'@type': z.literal('AssessAction'),
|
|
150
|
+
...AssessActionProperties,
|
|
151
|
+
})
|
|
152
|
+
.superRefine(requireNodeIdentity);
|
|
153
|
+
const MediaObjectProperties = {
|
|
154
|
+
...CreativeWorkProperties,
|
|
71
155
|
contentPath: z.lazy(() => z.string()).optional(),
|
|
72
156
|
mimeType: z.lazy(() => z.string()).optional(),
|
|
157
|
+
snapshotOf: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
73
158
|
};
|
|
74
159
|
export const MediaObjectSchema = z
|
|
75
160
|
.object({
|
|
@@ -79,6 +164,9 @@ export const MediaObjectSchema = z
|
|
|
79
164
|
.superRefine(requireNodeIdentity);
|
|
80
165
|
const AudioObjectProperties = {
|
|
81
166
|
...MediaObjectProperties,
|
|
167
|
+
artist: z.lazy(() => z.array(MusicGroupAndChildrenSchema)).optional(),
|
|
168
|
+
duration: z.lazy(() => z.string()).optional(),
|
|
169
|
+
genre: z.lazy(() => z.array(z.string())).optional(),
|
|
82
170
|
};
|
|
83
171
|
export const AudioObjectSchema = z
|
|
84
172
|
.object({
|
|
@@ -86,6 +174,83 @@ export const AudioObjectSchema = z
|
|
|
86
174
|
...AudioObjectProperties,
|
|
87
175
|
})
|
|
88
176
|
.superRefine(requireNodeIdentity);
|
|
177
|
+
const BookProperties = {
|
|
178
|
+
...CreativeWorkProperties,
|
|
179
|
+
pageCount: z.lazy(() => z.number()).optional(),
|
|
180
|
+
};
|
|
181
|
+
export const BookSchema = z
|
|
182
|
+
.object({
|
|
183
|
+
'@type': z.literal('Book'),
|
|
184
|
+
...BookProperties,
|
|
185
|
+
})
|
|
186
|
+
.superRefine(requireNodeIdentity);
|
|
187
|
+
const OrganizeActionProperties = {
|
|
188
|
+
...ActionProperties,
|
|
189
|
+
};
|
|
190
|
+
export const OrganizeActionSchema = z
|
|
191
|
+
.object({
|
|
192
|
+
'@type': z.literal('OrganizeAction'),
|
|
193
|
+
...OrganizeActionProperties,
|
|
194
|
+
})
|
|
195
|
+
.superRefine(requireNodeIdentity);
|
|
196
|
+
const BookmarkActionProperties = {
|
|
197
|
+
...OrganizeActionProperties,
|
|
198
|
+
};
|
|
199
|
+
export const BookmarkActionSchema = z
|
|
200
|
+
.object({
|
|
201
|
+
'@type': z.literal('BookmarkAction'),
|
|
202
|
+
...BookmarkActionProperties,
|
|
203
|
+
})
|
|
204
|
+
.superRefine(requireNodeIdentity);
|
|
205
|
+
const InteractActionProperties = {
|
|
206
|
+
...ActionProperties,
|
|
207
|
+
};
|
|
208
|
+
export const InteractActionSchema = z
|
|
209
|
+
.object({
|
|
210
|
+
'@type': z.literal('InteractAction'),
|
|
211
|
+
...InteractActionProperties,
|
|
212
|
+
})
|
|
213
|
+
.superRefine(requireNodeIdentity);
|
|
214
|
+
const CommunicateActionProperties = {
|
|
215
|
+
...InteractActionProperties,
|
|
216
|
+
};
|
|
217
|
+
export const CommunicateActionSchema = z
|
|
218
|
+
.object({
|
|
219
|
+
'@type': z.literal('CommunicateAction'),
|
|
220
|
+
...CommunicateActionProperties,
|
|
221
|
+
})
|
|
222
|
+
.superRefine(requireNodeIdentity);
|
|
223
|
+
const CallActionProperties = {
|
|
224
|
+
...CommunicateActionProperties,
|
|
225
|
+
};
|
|
226
|
+
export const CallActionSchema = z
|
|
227
|
+
.object({
|
|
228
|
+
'@type': z.literal('CallAction'),
|
|
229
|
+
...CallActionProperties,
|
|
230
|
+
})
|
|
231
|
+
.superRefine(requireNodeIdentity);
|
|
232
|
+
const SessionProperties = {
|
|
233
|
+
...EntityProperties,
|
|
234
|
+
references: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
235
|
+
subject: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
236
|
+
workingDirectory: z.lazy(() => DirectoryAndChildrenSchema).optional(),
|
|
237
|
+
};
|
|
238
|
+
export const SessionSchema = z
|
|
239
|
+
.object({
|
|
240
|
+
'@type': z.literal('Session'),
|
|
241
|
+
...SessionProperties,
|
|
242
|
+
})
|
|
243
|
+
.superRefine(requireNodeIdentity);
|
|
244
|
+
const CallSessionProperties = {
|
|
245
|
+
...SessionProperties,
|
|
246
|
+
recipient: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
247
|
+
};
|
|
248
|
+
export const CallSessionSchema = z
|
|
249
|
+
.object({
|
|
250
|
+
'@type': z.literal('CallSession'),
|
|
251
|
+
...CallSessionProperties,
|
|
252
|
+
})
|
|
253
|
+
.superRefine(requireNodeIdentity);
|
|
89
254
|
const CancelActionProperties = {
|
|
90
255
|
...ActionProperties,
|
|
91
256
|
};
|
|
@@ -95,9 +260,58 @@ export const CancelActionSchema = z
|
|
|
95
260
|
...CancelActionProperties,
|
|
96
261
|
})
|
|
97
262
|
.superRefine(requireNodeIdentity);
|
|
98
|
-
const
|
|
263
|
+
const IntangibleProperties = {
|
|
99
264
|
...EntityProperties,
|
|
100
265
|
};
|
|
266
|
+
export const IntangibleSchema = z
|
|
267
|
+
.object({
|
|
268
|
+
'@type': z.literal('Intangible'),
|
|
269
|
+
...IntangibleProperties,
|
|
270
|
+
})
|
|
271
|
+
.superRefine(requireNodeIdentity);
|
|
272
|
+
const DefinedTermProperties = {
|
|
273
|
+
...IntangibleProperties,
|
|
274
|
+
};
|
|
275
|
+
export const DefinedTermSchema = z
|
|
276
|
+
.object({
|
|
277
|
+
'@type': z.literal('DefinedTerm'),
|
|
278
|
+
...DefinedTermProperties,
|
|
279
|
+
})
|
|
280
|
+
.superRefine(requireNodeIdentity);
|
|
281
|
+
const CategoryProperties = {
|
|
282
|
+
...DefinedTermProperties,
|
|
283
|
+
color: z.lazy(() => z.string()).optional(),
|
|
284
|
+
};
|
|
285
|
+
export const CategorySchema = z
|
|
286
|
+
.object({
|
|
287
|
+
'@type': z.literal('Category'),
|
|
288
|
+
...CategoryProperties,
|
|
289
|
+
})
|
|
290
|
+
.superRefine(requireNodeIdentity);
|
|
291
|
+
const ChannelProperties = {
|
|
292
|
+
...CreativeWorkProperties,
|
|
293
|
+
member: z
|
|
294
|
+
.lazy(() => z.array(z.union([AgentAndChildrenSchema, PersonAndChildrenSchema])))
|
|
295
|
+
.optional(),
|
|
296
|
+
};
|
|
297
|
+
export const ChannelSchema = z
|
|
298
|
+
.object({
|
|
299
|
+
'@type': z.literal('Channel'),
|
|
300
|
+
...ChannelProperties,
|
|
301
|
+
})
|
|
302
|
+
.superRefine(requireNodeIdentity);
|
|
303
|
+
const CheckInActionProperties = {
|
|
304
|
+
...CommunicateActionProperties,
|
|
305
|
+
};
|
|
306
|
+
export const CheckInActionSchema = z
|
|
307
|
+
.object({
|
|
308
|
+
'@type': z.literal('CheckInAction'),
|
|
309
|
+
...CheckInActionProperties,
|
|
310
|
+
})
|
|
311
|
+
.superRefine(requireNodeIdentity);
|
|
312
|
+
const CollectionProperties = {
|
|
313
|
+
...CreativeWorkProperties,
|
|
314
|
+
};
|
|
101
315
|
export const CollectionSchema = z
|
|
102
316
|
.object({
|
|
103
317
|
'@type': z.literal('Collection'),
|
|
@@ -113,6 +327,24 @@ export const CommandSchema = z
|
|
|
113
327
|
...CommandProperties,
|
|
114
328
|
})
|
|
115
329
|
.superRefine(requireNodeIdentity);
|
|
330
|
+
const ResponseProperties = {
|
|
331
|
+
...CreativeWorkProperties,
|
|
332
|
+
};
|
|
333
|
+
export const ResponseSchema = z
|
|
334
|
+
.object({
|
|
335
|
+
'@type': z.literal('Response'),
|
|
336
|
+
...ResponseProperties,
|
|
337
|
+
})
|
|
338
|
+
.superRefine(requireNodeIdentity);
|
|
339
|
+
const CommentProperties = {
|
|
340
|
+
...ResponseProperties,
|
|
341
|
+
};
|
|
342
|
+
export const CommentSchema = z
|
|
343
|
+
.object({
|
|
344
|
+
'@type': z.literal('Comment'),
|
|
345
|
+
...CommentProperties,
|
|
346
|
+
})
|
|
347
|
+
.superRefine(requireNodeIdentity);
|
|
116
348
|
const CompleteActionProperties = {
|
|
117
349
|
...ActionProperties,
|
|
118
350
|
};
|
|
@@ -122,6 +354,15 @@ export const CompleteActionSchema = z
|
|
|
122
354
|
...CompleteActionProperties,
|
|
123
355
|
})
|
|
124
356
|
.superRefine(requireNodeIdentity);
|
|
357
|
+
const ConsumeActionProperties = {
|
|
358
|
+
...ActionProperties,
|
|
359
|
+
};
|
|
360
|
+
export const ConsumeActionSchema = z
|
|
361
|
+
.object({
|
|
362
|
+
'@type': z.literal('ConsumeAction'),
|
|
363
|
+
...ConsumeActionProperties,
|
|
364
|
+
})
|
|
365
|
+
.superRefine(requireNodeIdentity);
|
|
125
366
|
const DeleteActionProperties = {
|
|
126
367
|
...ActionProperties,
|
|
127
368
|
};
|
|
@@ -131,8 +372,46 @@ export const DeleteActionSchema = z
|
|
|
131
372
|
...DeleteActionProperties,
|
|
132
373
|
})
|
|
133
374
|
.superRefine(requireNodeIdentity);
|
|
375
|
+
const PhysicalObjectProperties = {
|
|
376
|
+
...EntityProperties,
|
|
377
|
+
model: z.lazy(() => z.string()).optional(),
|
|
378
|
+
};
|
|
379
|
+
export const PhysicalObjectSchema = z
|
|
380
|
+
.object({
|
|
381
|
+
'@type': z.literal('PhysicalObject'),
|
|
382
|
+
...PhysicalObjectProperties,
|
|
383
|
+
})
|
|
384
|
+
.superRefine(requireNodeIdentity);
|
|
385
|
+
const DeviceProperties = {
|
|
386
|
+
...PhysicalObjectProperties,
|
|
387
|
+
};
|
|
388
|
+
export const DeviceSchema = z
|
|
389
|
+
.object({
|
|
390
|
+
'@type': z.literal('Device'),
|
|
391
|
+
...DeviceProperties,
|
|
392
|
+
})
|
|
393
|
+
.superRefine(requireNodeIdentity);
|
|
394
|
+
const DeviceSessionProperties = {
|
|
395
|
+
...SessionProperties,
|
|
396
|
+
};
|
|
397
|
+
export const DeviceSessionSchema = z
|
|
398
|
+
.object({
|
|
399
|
+
'@type': z.literal('DeviceSession'),
|
|
400
|
+
...DeviceSessionProperties,
|
|
401
|
+
})
|
|
402
|
+
.superRefine(requireNodeIdentity);
|
|
403
|
+
const DirectoryProperties = {
|
|
404
|
+
...CollectionProperties,
|
|
405
|
+
};
|
|
406
|
+
export const DirectorySchema = z
|
|
407
|
+
.object({
|
|
408
|
+
'@type': z.literal('Directory'),
|
|
409
|
+
...DirectoryProperties,
|
|
410
|
+
})
|
|
411
|
+
.superRefine(requireNodeIdentity);
|
|
134
412
|
const DocumentObjectProperties = {
|
|
135
413
|
...MediaObjectProperties,
|
|
414
|
+
pageCount: z.lazy(() => z.number()).optional(),
|
|
136
415
|
};
|
|
137
416
|
export const DocumentObjectSchema = z
|
|
138
417
|
.object({
|
|
@@ -140,6 +419,66 @@ export const DocumentObjectSchema = z
|
|
|
140
419
|
...DocumentObjectProperties,
|
|
141
420
|
})
|
|
142
421
|
.superRefine(requireNodeIdentity);
|
|
422
|
+
const DrankActionProperties = {
|
|
423
|
+
...ConsumeActionProperties,
|
|
424
|
+
};
|
|
425
|
+
export const DrankActionSchema = z
|
|
426
|
+
.object({
|
|
427
|
+
'@type': z.literal('DrankAction'),
|
|
428
|
+
...DrankActionProperties,
|
|
429
|
+
})
|
|
430
|
+
.superRefine(requireNodeIdentity);
|
|
431
|
+
const EatActionProperties = {
|
|
432
|
+
...ConsumeActionProperties,
|
|
433
|
+
};
|
|
434
|
+
export const EatActionSchema = z
|
|
435
|
+
.object({
|
|
436
|
+
'@type': z.literal('EatAction'),
|
|
437
|
+
...EatActionProperties,
|
|
438
|
+
})
|
|
439
|
+
.superRefine(requireNodeIdentity);
|
|
440
|
+
const EnrollmentProperties = {
|
|
441
|
+
...SessionProperties,
|
|
442
|
+
degree: z.lazy(() => z.string()).optional(),
|
|
443
|
+
};
|
|
444
|
+
export const EnrollmentSchema = z
|
|
445
|
+
.object({
|
|
446
|
+
'@type': z.literal('Enrollment'),
|
|
447
|
+
...EnrollmentProperties,
|
|
448
|
+
})
|
|
449
|
+
.superRefine(requireNodeIdentity);
|
|
450
|
+
const SelectorProperties = {
|
|
451
|
+
...IntangibleProperties,
|
|
452
|
+
selectorLabel: z.lazy(() => z.string()).optional(),
|
|
453
|
+
selectorValue: z.lazy(() => z.string()).optional(),
|
|
454
|
+
};
|
|
455
|
+
export const SelectorSchema = z
|
|
456
|
+
.object({
|
|
457
|
+
'@type': z.literal('Selector'),
|
|
458
|
+
...SelectorProperties,
|
|
459
|
+
})
|
|
460
|
+
.superRefine(requireNodeIdentity);
|
|
461
|
+
const EpubCfiSelectorProperties = {
|
|
462
|
+
...SelectorProperties,
|
|
463
|
+
};
|
|
464
|
+
export const EpubCfiSelectorSchema = z
|
|
465
|
+
.object({
|
|
466
|
+
'@type': z.literal('EpubCfiSelector'),
|
|
467
|
+
...EpubCfiSelectorProperties,
|
|
468
|
+
})
|
|
469
|
+
.superRefine(requireNodeIdentity);
|
|
470
|
+
const EventProperties = {
|
|
471
|
+
...EntityProperties,
|
|
472
|
+
endTime: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
473
|
+
location: z.lazy(() => z.union([LocationAndChildrenSchema, PlaceAndChildrenSchema])).optional(),
|
|
474
|
+
startTime: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
475
|
+
};
|
|
476
|
+
export const EventSchema = z
|
|
477
|
+
.object({
|
|
478
|
+
'@type': z.literal('Event'),
|
|
479
|
+
...EventProperties,
|
|
480
|
+
})
|
|
481
|
+
.superRefine(requireNodeIdentity);
|
|
143
482
|
const ExecuteActionProperties = {
|
|
144
483
|
...ActionProperties,
|
|
145
484
|
};
|
|
@@ -149,8 +488,38 @@ export const ExecuteActionSchema = z
|
|
|
149
488
|
...ExecuteActionProperties,
|
|
150
489
|
})
|
|
151
490
|
.superRefine(requireNodeIdentity);
|
|
491
|
+
const ExperienceActionProperties = {
|
|
492
|
+
...ActionProperties,
|
|
493
|
+
};
|
|
494
|
+
export const ExperienceActionSchema = z
|
|
495
|
+
.object({
|
|
496
|
+
'@type': z.literal('ExperienceAction'),
|
|
497
|
+
...ExperienceActionProperties,
|
|
498
|
+
})
|
|
499
|
+
.superRefine(requireNodeIdentity);
|
|
500
|
+
const FindActionProperties = {
|
|
501
|
+
...ActionProperties,
|
|
502
|
+
};
|
|
503
|
+
export const FindActionSchema = z
|
|
504
|
+
.object({
|
|
505
|
+
'@type': z.literal('FindAction'),
|
|
506
|
+
...FindActionProperties,
|
|
507
|
+
})
|
|
508
|
+
.superRefine(requireNodeIdentity);
|
|
509
|
+
const FollowActionProperties = {
|
|
510
|
+
...InteractActionProperties,
|
|
511
|
+
};
|
|
512
|
+
export const FollowActionSchema = z
|
|
513
|
+
.object({
|
|
514
|
+
'@type': z.literal('FollowAction'),
|
|
515
|
+
...FollowActionProperties,
|
|
516
|
+
})
|
|
517
|
+
.superRefine(requireNodeIdentity);
|
|
152
518
|
const ImageObjectProperties = {
|
|
153
519
|
...MediaObjectProperties,
|
|
520
|
+
caption: z.lazy(() => z.string()).optional(),
|
|
521
|
+
height: z.lazy(() => z.number()).optional(),
|
|
522
|
+
width: z.lazy(() => z.number()).optional(),
|
|
154
523
|
};
|
|
155
524
|
export const ImageObjectSchema = z
|
|
156
525
|
.object({
|
|
@@ -158,144 +527,642 @@ export const ImageObjectSchema = z
|
|
|
158
527
|
...ImageObjectProperties,
|
|
159
528
|
})
|
|
160
529
|
.superRefine(requireNodeIdentity);
|
|
161
|
-
const
|
|
530
|
+
const StructuredValueProperties = {};
|
|
531
|
+
export const StructuredValueSchema = z.object({
|
|
532
|
+
'@type': z.literal('StructuredValue'),
|
|
533
|
+
...StructuredValueProperties,
|
|
534
|
+
});
|
|
535
|
+
const IntervalProperties = {
|
|
536
|
+
...StructuredValueProperties,
|
|
537
|
+
endTime: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
538
|
+
startTime: z.lazy(() => z.union([z.date(), z.string()])).optional(),
|
|
539
|
+
};
|
|
540
|
+
export const IntervalSchema = z.object({
|
|
541
|
+
'@type': z.literal('Interval'),
|
|
542
|
+
...IntervalProperties,
|
|
543
|
+
});
|
|
544
|
+
const JoinActionProperties = {
|
|
545
|
+
...ExperienceActionProperties,
|
|
546
|
+
};
|
|
547
|
+
export const JoinActionSchema = z
|
|
548
|
+
.object({
|
|
549
|
+
'@type': z.literal('JoinAction'),
|
|
550
|
+
...JoinActionProperties,
|
|
551
|
+
})
|
|
552
|
+
.superRefine(requireNodeIdentity);
|
|
553
|
+
const JourneyProperties = {
|
|
162
554
|
...EntityProperties,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
555
|
+
distance: z.lazy(() => z.number()).optional(),
|
|
556
|
+
path: z.lazy(() => z.string()).optional(),
|
|
557
|
+
travelMode: z.lazy(() => z.string()).optional(),
|
|
166
558
|
};
|
|
167
|
-
export const
|
|
559
|
+
export const JourneySchema = z
|
|
168
560
|
.object({
|
|
169
|
-
'@type': z.literal('
|
|
170
|
-
...
|
|
561
|
+
'@type': z.literal('Journey'),
|
|
562
|
+
...JourneyProperties,
|
|
171
563
|
})
|
|
172
564
|
.superRefine(requireNodeIdentity);
|
|
173
|
-
const
|
|
174
|
-
...
|
|
565
|
+
const LeaveActionProperties = {
|
|
566
|
+
...ExperienceActionProperties,
|
|
175
567
|
};
|
|
176
|
-
export const
|
|
568
|
+
export const LeaveActionSchema = z
|
|
177
569
|
.object({
|
|
178
|
-
'@type': z.literal('
|
|
179
|
-
...
|
|
570
|
+
'@type': z.literal('LeaveAction'),
|
|
571
|
+
...LeaveActionProperties,
|
|
180
572
|
})
|
|
181
573
|
.superRefine(requireNodeIdentity);
|
|
182
|
-
const
|
|
183
|
-
...
|
|
574
|
+
const ReactActionProperties = {
|
|
575
|
+
...AssessActionProperties,
|
|
184
576
|
};
|
|
185
|
-
export const
|
|
577
|
+
export const ReactActionSchema = z
|
|
186
578
|
.object({
|
|
187
|
-
'@type': z.literal('
|
|
188
|
-
...
|
|
579
|
+
'@type': z.literal('ReactAction'),
|
|
580
|
+
...ReactActionProperties,
|
|
189
581
|
})
|
|
190
582
|
.superRefine(requireNodeIdentity);
|
|
191
|
-
const
|
|
192
|
-
...
|
|
583
|
+
const LikeActionProperties = {
|
|
584
|
+
...ReactActionProperties,
|
|
193
585
|
};
|
|
194
|
-
export const
|
|
586
|
+
export const LikeActionSchema = z
|
|
195
587
|
.object({
|
|
196
|
-
'@type': z.literal('
|
|
197
|
-
...
|
|
588
|
+
'@type': z.literal('LikeAction'),
|
|
589
|
+
...LikeActionProperties,
|
|
198
590
|
})
|
|
199
591
|
.superRefine(requireNodeIdentity);
|
|
200
|
-
const
|
|
201
|
-
...
|
|
592
|
+
const ListenActionProperties = {
|
|
593
|
+
...ConsumeActionProperties,
|
|
202
594
|
};
|
|
203
|
-
export const
|
|
595
|
+
export const ListenActionSchema = z
|
|
204
596
|
.object({
|
|
205
|
-
'@type': z.literal('
|
|
206
|
-
...
|
|
597
|
+
'@type': z.literal('ListenAction'),
|
|
598
|
+
...ListenActionProperties,
|
|
207
599
|
})
|
|
208
600
|
.superRefine(requireNodeIdentity);
|
|
209
|
-
const
|
|
601
|
+
const LocationProperties = {
|
|
602
|
+
...StructuredValueProperties,
|
|
603
|
+
address: z.lazy(() => z.string()).optional(),
|
|
604
|
+
latitude: z.lazy(() => z.number()).optional(),
|
|
605
|
+
longitude: z.lazy(() => z.number()).optional(),
|
|
606
|
+
};
|
|
607
|
+
export const LocationSchema = z.object({
|
|
608
|
+
'@type': z.literal('Location'),
|
|
609
|
+
...LocationProperties,
|
|
610
|
+
});
|
|
611
|
+
const MealProperties = {
|
|
210
612
|
...EntityProperties,
|
|
211
613
|
};
|
|
212
|
-
export const
|
|
614
|
+
export const MealSchema = z
|
|
213
615
|
.object({
|
|
214
|
-
'@type': z.literal('
|
|
215
|
-
...
|
|
616
|
+
'@type': z.literal('Meal'),
|
|
617
|
+
...MealProperties,
|
|
216
618
|
})
|
|
217
619
|
.superRefine(requireNodeIdentity);
|
|
218
|
-
const
|
|
219
|
-
...
|
|
620
|
+
const MembershipProperties = {
|
|
621
|
+
...SessionProperties,
|
|
622
|
+
role: z.lazy(() => z.string()).optional(),
|
|
220
623
|
};
|
|
221
|
-
export const
|
|
624
|
+
export const MembershipSchema = z
|
|
222
625
|
.object({
|
|
223
|
-
'@type': z.literal('
|
|
224
|
-
...
|
|
626
|
+
'@type': z.literal('Membership'),
|
|
627
|
+
...MembershipProperties,
|
|
225
628
|
})
|
|
226
629
|
.superRefine(requireNodeIdentity);
|
|
227
|
-
const
|
|
228
|
-
...
|
|
630
|
+
const MessageProperties = {
|
|
631
|
+
...CreativeWorkProperties,
|
|
632
|
+
author: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
633
|
+
inReplyTo: z.lazy(() => z.array(MessageAndChildrenSchema)).optional(),
|
|
634
|
+
recipient: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
229
635
|
};
|
|
230
|
-
export const
|
|
636
|
+
export const MessageSchema = z
|
|
231
637
|
.object({
|
|
232
|
-
'@type': z.literal('
|
|
233
|
-
...
|
|
638
|
+
'@type': z.literal('Message'),
|
|
639
|
+
...MessageProperties,
|
|
234
640
|
})
|
|
235
641
|
.superRefine(requireNodeIdentity);
|
|
236
|
-
const
|
|
237
|
-
...
|
|
642
|
+
const MessageActionProperties = {
|
|
643
|
+
...ActionProperties,
|
|
238
644
|
};
|
|
239
|
-
export const
|
|
645
|
+
export const MessageActionSchema = z
|
|
240
646
|
.object({
|
|
241
|
-
'@type': z.literal('
|
|
242
|
-
...
|
|
647
|
+
'@type': z.literal('MessageAction'),
|
|
648
|
+
...MessageActionProperties,
|
|
243
649
|
})
|
|
244
650
|
.superRefine(requireNodeIdentity);
|
|
245
|
-
const
|
|
246
|
-
...
|
|
651
|
+
const MusicAlbumProperties = {
|
|
652
|
+
...CreativeWorkProperties,
|
|
653
|
+
artist: z.lazy(() => z.array(MusicGroupAndChildrenSchema)).optional(),
|
|
247
654
|
};
|
|
248
|
-
export const
|
|
655
|
+
export const MusicAlbumSchema = z
|
|
249
656
|
.object({
|
|
250
|
-
'@type': z.literal('
|
|
251
|
-
...
|
|
657
|
+
'@type': z.literal('MusicAlbum'),
|
|
658
|
+
...MusicAlbumProperties,
|
|
252
659
|
})
|
|
253
660
|
.superRefine(requireNodeIdentity);
|
|
254
|
-
const
|
|
255
|
-
...
|
|
661
|
+
const OrganizationProperties = {
|
|
662
|
+
...AgentProperties,
|
|
663
|
+
member: z
|
|
664
|
+
.lazy(() => z.array(z.union([AgentAndChildrenSchema, PersonAndChildrenSchema])))
|
|
665
|
+
.optional(),
|
|
256
666
|
};
|
|
257
|
-
export const
|
|
667
|
+
export const OrganizationSchema = z
|
|
258
668
|
.object({
|
|
259
|
-
'@type': z.literal('
|
|
260
|
-
...
|
|
669
|
+
'@type': z.literal('Organization'),
|
|
670
|
+
...OrganizationProperties,
|
|
261
671
|
})
|
|
262
672
|
.superRefine(requireNodeIdentity);
|
|
263
|
-
const
|
|
264
|
-
...
|
|
673
|
+
const PerformingGroupProperties = {
|
|
674
|
+
...OrganizationProperties,
|
|
265
675
|
};
|
|
266
|
-
export const
|
|
676
|
+
export const PerformingGroupSchema = z
|
|
267
677
|
.object({
|
|
268
|
-
'@type': z.literal('
|
|
269
|
-
...
|
|
678
|
+
'@type': z.literal('PerformingGroup'),
|
|
679
|
+
...PerformingGroupProperties,
|
|
270
680
|
})
|
|
271
681
|
.superRefine(requireNodeIdentity);
|
|
272
|
-
const
|
|
273
|
-
...
|
|
682
|
+
const MusicGroupProperties = {
|
|
683
|
+
...PerformingGroupProperties,
|
|
274
684
|
};
|
|
275
|
-
export const
|
|
685
|
+
export const MusicGroupSchema = z
|
|
276
686
|
.object({
|
|
277
|
-
'@type': z.literal('
|
|
278
|
-
...
|
|
687
|
+
'@type': z.literal('MusicGroup'),
|
|
688
|
+
...MusicGroupProperties,
|
|
279
689
|
})
|
|
280
690
|
.superRefine(requireNodeIdentity);
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
691
|
+
const MusicRecordingProperties = {
|
|
692
|
+
...CreativeWorkProperties,
|
|
693
|
+
artist: z.lazy(() => z.array(MusicGroupAndChildrenSchema)).optional(),
|
|
694
|
+
duration: z.lazy(() => z.string()).optional(),
|
|
695
|
+
inAlbum: z.lazy(() => MusicAlbumAndChildrenSchema).optional(),
|
|
696
|
+
};
|
|
697
|
+
export const MusicRecordingSchema = z
|
|
698
|
+
.object({
|
|
699
|
+
'@type': z.literal('MusicRecording'),
|
|
700
|
+
...MusicRecordingProperties,
|
|
701
|
+
})
|
|
702
|
+
.superRefine(requireNodeIdentity);
|
|
703
|
+
const PageSelectorProperties = {
|
|
704
|
+
...SelectorProperties,
|
|
705
|
+
};
|
|
706
|
+
export const PageSelectorSchema = z
|
|
707
|
+
.object({
|
|
708
|
+
'@type': z.literal('PageSelector'),
|
|
709
|
+
...PageSelectorProperties,
|
|
710
|
+
})
|
|
711
|
+
.superRefine(requireNodeIdentity);
|
|
712
|
+
const PersonProperties = {
|
|
713
|
+
...AgentProperties,
|
|
714
|
+
};
|
|
715
|
+
export const PersonSchema = z
|
|
716
|
+
.object({
|
|
717
|
+
'@type': z.literal('Person'),
|
|
718
|
+
...PersonProperties,
|
|
719
|
+
})
|
|
720
|
+
.superRefine(requireNodeIdentity);
|
|
721
|
+
const PlaceProperties = {
|
|
722
|
+
...EntityProperties,
|
|
723
|
+
};
|
|
724
|
+
export const PlaceSchema = z
|
|
725
|
+
.object({
|
|
726
|
+
'@type': z.literal('Place'),
|
|
727
|
+
...PlaceProperties,
|
|
728
|
+
})
|
|
729
|
+
.superRefine(requireNodeIdentity);
|
|
730
|
+
const PlanActionProperties = {
|
|
731
|
+
...ActionProperties,
|
|
732
|
+
};
|
|
733
|
+
export const PlanActionSchema = z
|
|
734
|
+
.object({
|
|
735
|
+
'@type': z.literal('PlanAction'),
|
|
736
|
+
...PlanActionProperties,
|
|
737
|
+
})
|
|
738
|
+
.superRefine(requireNodeIdentity);
|
|
739
|
+
const PodcastEpisodeProperties = {
|
|
740
|
+
...CreativeWorkProperties,
|
|
741
|
+
duration: z.lazy(() => z.string()).optional(),
|
|
742
|
+
};
|
|
743
|
+
export const PodcastEpisodeSchema = z
|
|
744
|
+
.object({
|
|
745
|
+
'@type': z.literal('PodcastEpisode'),
|
|
746
|
+
...PodcastEpisodeProperties,
|
|
747
|
+
})
|
|
748
|
+
.superRefine(requireNodeIdentity);
|
|
749
|
+
const PostProperties = {
|
|
750
|
+
...CreativeWorkProperties,
|
|
751
|
+
};
|
|
752
|
+
export const PostSchema = z
|
|
753
|
+
.object({
|
|
754
|
+
'@type': z.literal('Post'),
|
|
755
|
+
...PostProperties,
|
|
756
|
+
})
|
|
757
|
+
.superRefine(requireNodeIdentity);
|
|
758
|
+
const ProjectProperties = {
|
|
759
|
+
...CollectionProperties,
|
|
760
|
+
};
|
|
761
|
+
export const ProjectSchema = z
|
|
762
|
+
.object({
|
|
763
|
+
'@type': z.literal('Project'),
|
|
764
|
+
...ProjectProperties,
|
|
765
|
+
})
|
|
766
|
+
.superRefine(requireNodeIdentity);
|
|
767
|
+
const PublishActionProperties = {
|
|
768
|
+
...CreateActionProperties,
|
|
769
|
+
};
|
|
770
|
+
export const PublishActionSchema = z
|
|
771
|
+
.object({
|
|
772
|
+
'@type': z.literal('PublishAction'),
|
|
773
|
+
...PublishActionProperties,
|
|
774
|
+
})
|
|
775
|
+
.superRefine(requireNodeIdentity);
|
|
776
|
+
const QueryProperties = {
|
|
777
|
+
...CreativeWorkProperties,
|
|
778
|
+
};
|
|
779
|
+
export const QuerySchema = z
|
|
780
|
+
.object({
|
|
781
|
+
'@type': z.literal('Query'),
|
|
782
|
+
...QueryProperties,
|
|
783
|
+
})
|
|
784
|
+
.superRefine(requireNodeIdentity);
|
|
785
|
+
const QuotationProperties = {
|
|
786
|
+
...CreativeWorkProperties,
|
|
787
|
+
annotationStyle: z.lazy(() => z.string()).optional(),
|
|
788
|
+
color: z.lazy(() => z.string()).optional(),
|
|
789
|
+
selector: z.lazy(() => z.array(SelectorAndChildrenSchema)).optional(),
|
|
790
|
+
};
|
|
791
|
+
export const QuotationSchema = z
|
|
792
|
+
.object({
|
|
793
|
+
'@type': z.literal('Quotation'),
|
|
794
|
+
...QuotationProperties,
|
|
795
|
+
})
|
|
796
|
+
.superRefine(requireNodeIdentity);
|
|
797
|
+
const QuoteActionProperties = {
|
|
798
|
+
...CreateActionProperties,
|
|
799
|
+
};
|
|
800
|
+
export const QuoteActionSchema = z
|
|
801
|
+
.object({
|
|
802
|
+
'@type': z.literal('QuoteAction'),
|
|
803
|
+
...QuoteActionProperties,
|
|
804
|
+
})
|
|
805
|
+
.superRefine(requireNodeIdentity);
|
|
806
|
+
const ReadActionProperties = {
|
|
807
|
+
...ConsumeActionProperties,
|
|
808
|
+
};
|
|
809
|
+
export const ReadActionSchema = z
|
|
810
|
+
.object({
|
|
811
|
+
'@type': z.literal('ReadAction'),
|
|
812
|
+
...ReadActionProperties,
|
|
813
|
+
})
|
|
814
|
+
.superRefine(requireNodeIdentity);
|
|
815
|
+
const RealmProperties = {
|
|
816
|
+
...EntityProperties,
|
|
817
|
+
};
|
|
818
|
+
export const RealmSchema = z
|
|
819
|
+
.object({
|
|
820
|
+
'@type': z.literal('Realm'),
|
|
821
|
+
...RealmProperties,
|
|
822
|
+
})
|
|
823
|
+
.superRefine(requireNodeIdentity);
|
|
824
|
+
const RelationshipProperties = {
|
|
825
|
+
...SessionProperties,
|
|
826
|
+
role: z.lazy(() => z.string()).optional(),
|
|
827
|
+
};
|
|
828
|
+
export const RelationshipSchema = z
|
|
829
|
+
.object({
|
|
830
|
+
'@type': z.literal('Relationship'),
|
|
831
|
+
...RelationshipProperties,
|
|
832
|
+
})
|
|
833
|
+
.superRefine(requireNodeIdentity);
|
|
834
|
+
const RespondActionProperties = {
|
|
835
|
+
...AssessActionProperties,
|
|
836
|
+
};
|
|
837
|
+
export const RespondActionSchema = z
|
|
838
|
+
.object({
|
|
839
|
+
'@type': z.literal('RespondAction'),
|
|
840
|
+
...RespondActionProperties,
|
|
841
|
+
})
|
|
842
|
+
.superRefine(requireNodeIdentity);
|
|
843
|
+
const SoftwareAgentProperties = {
|
|
844
|
+
...AgentProperties,
|
|
845
|
+
};
|
|
846
|
+
export const SoftwareAgentSchema = z
|
|
847
|
+
.object({
|
|
848
|
+
'@type': z.literal('SoftwareAgent'),
|
|
849
|
+
...SoftwareAgentProperties,
|
|
850
|
+
})
|
|
851
|
+
.superRefine(requireNodeIdentity);
|
|
852
|
+
const SoftwareApplicationProperties = {
|
|
853
|
+
...CreativeWorkProperties,
|
|
854
|
+
};
|
|
855
|
+
export const SoftwareApplicationSchema = z
|
|
856
|
+
.object({
|
|
857
|
+
'@type': z.literal('SoftwareApplication'),
|
|
858
|
+
...SoftwareApplicationProperties,
|
|
859
|
+
})
|
|
860
|
+
.superRefine(requireNodeIdentity);
|
|
861
|
+
const TagProperties = {
|
|
862
|
+
...EntityProperties,
|
|
863
|
+
color: z.lazy(() => z.string()).optional(),
|
|
864
|
+
};
|
|
865
|
+
export const TagSchema = z
|
|
866
|
+
.object({
|
|
867
|
+
'@type': z.literal('Tag'),
|
|
868
|
+
...TagProperties,
|
|
869
|
+
})
|
|
870
|
+
.superRefine(requireNodeIdentity);
|
|
871
|
+
const TaskProperties = {
|
|
872
|
+
...EntityProperties,
|
|
873
|
+
};
|
|
874
|
+
export const TaskSchema = z
|
|
875
|
+
.object({
|
|
876
|
+
'@type': z.literal('Task'),
|
|
877
|
+
...TaskProperties,
|
|
878
|
+
})
|
|
879
|
+
.superRefine(requireNodeIdentity);
|
|
880
|
+
const TenureProperties = {
|
|
881
|
+
...SessionProperties,
|
|
882
|
+
role: z.lazy(() => z.string()).optional(),
|
|
883
|
+
};
|
|
884
|
+
export const TenureSchema = z
|
|
885
|
+
.object({
|
|
886
|
+
'@type': z.literal('Tenure'),
|
|
887
|
+
...TenureProperties,
|
|
888
|
+
})
|
|
889
|
+
.superRefine(requireNodeIdentity);
|
|
890
|
+
const ThreadProperties = {
|
|
891
|
+
...CollectionProperties,
|
|
892
|
+
};
|
|
893
|
+
export const ThreadSchema = z
|
|
894
|
+
.object({
|
|
895
|
+
'@type': z.literal('Thread'),
|
|
896
|
+
...ThreadProperties,
|
|
897
|
+
})
|
|
898
|
+
.superRefine(requireNodeIdentity);
|
|
899
|
+
const TravelActionProperties = {
|
|
900
|
+
...ActionProperties,
|
|
901
|
+
};
|
|
902
|
+
export const TravelActionSchema = z
|
|
903
|
+
.object({
|
|
904
|
+
'@type': z.literal('TravelAction'),
|
|
905
|
+
...TravelActionProperties,
|
|
906
|
+
})
|
|
907
|
+
.superRefine(requireNodeIdentity);
|
|
908
|
+
const VenueProperties = {
|
|
909
|
+
...PlaceProperties,
|
|
910
|
+
};
|
|
911
|
+
export const VenueSchema = z
|
|
912
|
+
.object({
|
|
913
|
+
'@type': z.literal('Venue'),
|
|
914
|
+
...VenueProperties,
|
|
915
|
+
})
|
|
916
|
+
.superRefine(requireNodeIdentity);
|
|
917
|
+
const VideoObjectProperties = {
|
|
918
|
+
...MediaObjectProperties,
|
|
919
|
+
duration: z.lazy(() => z.string()).optional(),
|
|
920
|
+
height: z.lazy(() => z.number()).optional(),
|
|
921
|
+
width: z.lazy(() => z.number()).optional(),
|
|
922
|
+
};
|
|
923
|
+
export const VideoObjectSchema = z
|
|
924
|
+
.object({
|
|
925
|
+
'@type': z.literal('VideoObject'),
|
|
926
|
+
...VideoObjectProperties,
|
|
927
|
+
})
|
|
928
|
+
.superRefine(requireNodeIdentity);
|
|
929
|
+
const ViewActionProperties = {
|
|
930
|
+
...ConsumeActionProperties,
|
|
931
|
+
};
|
|
932
|
+
export const ViewActionSchema = z
|
|
933
|
+
.object({
|
|
934
|
+
'@type': z.literal('ViewAction'),
|
|
935
|
+
...ViewActionProperties,
|
|
936
|
+
})
|
|
937
|
+
.superRefine(requireNodeIdentity);
|
|
938
|
+
const VisitActionProperties = {
|
|
939
|
+
...ActionProperties,
|
|
940
|
+
};
|
|
941
|
+
export const VisitActionSchema = z
|
|
942
|
+
.object({
|
|
943
|
+
'@type': z.literal('VisitAction'),
|
|
944
|
+
...VisitActionProperties,
|
|
945
|
+
})
|
|
946
|
+
.superRefine(requireNodeIdentity);
|
|
947
|
+
const WatchActionProperties = {
|
|
948
|
+
...ConsumeActionProperties,
|
|
949
|
+
};
|
|
950
|
+
export const WatchActionSchema = z
|
|
951
|
+
.object({
|
|
952
|
+
'@type': z.literal('WatchAction'),
|
|
953
|
+
...WatchActionProperties,
|
|
954
|
+
})
|
|
955
|
+
.superRefine(requireNodeIdentity);
|
|
956
|
+
export const WatchActionAndChildrenSchema = WatchActionSchema;
|
|
957
|
+
export const VisitActionAndChildrenSchema = VisitActionSchema;
|
|
958
|
+
export const ViewActionAndChildrenSchema = ViewActionSchema;
|
|
959
|
+
export const VideoObjectAndChildrenSchema = VideoObjectSchema;
|
|
960
|
+
export const VenueAndChildrenSchema = VenueSchema;
|
|
961
|
+
export const TravelActionAndChildrenSchema = TravelActionSchema;
|
|
962
|
+
export const ThreadAndChildrenSchema = ThreadSchema;
|
|
963
|
+
export const TenureAndChildrenSchema = TenureSchema;
|
|
284
964
|
export const TaskAndChildrenSchema = TaskSchema;
|
|
285
965
|
export const TagAndChildrenSchema = TagSchema;
|
|
286
966
|
export const SoftwareApplicationAndChildrenSchema = SoftwareApplicationSchema;
|
|
287
967
|
export const SoftwareAgentAndChildrenSchema = SoftwareAgentSchema;
|
|
968
|
+
export const RespondActionAndChildrenSchema = RespondActionSchema;
|
|
969
|
+
export const RelationshipAndChildrenSchema = RelationshipSchema;
|
|
288
970
|
export const RealmAndChildrenSchema = RealmSchema;
|
|
971
|
+
export const ReadActionAndChildrenSchema = ReadActionSchema;
|
|
972
|
+
export const QuoteActionAndChildrenSchema = QuoteActionSchema;
|
|
973
|
+
export const QuotationAndChildrenSchema = QuotationSchema;
|
|
974
|
+
export const QueryAndChildrenSchema = QuerySchema;
|
|
975
|
+
export const PublishActionAndChildrenSchema = PublishActionSchema;
|
|
289
976
|
export const ProjectAndChildrenSchema = ProjectSchema;
|
|
977
|
+
export const PostAndChildrenSchema = PostSchema;
|
|
978
|
+
export const PodcastEpisodeAndChildrenSchema = PodcastEpisodeSchema;
|
|
290
979
|
export const PlanActionAndChildrenSchema = PlanActionSchema;
|
|
980
|
+
export const PlaceAndChildrenSchema = z
|
|
981
|
+
.discriminatedUnion('@type', [
|
|
982
|
+
z.object({
|
|
983
|
+
'@type': z.literal('Place'),
|
|
984
|
+
...PlaceProperties,
|
|
985
|
+
}),
|
|
986
|
+
z.object({
|
|
987
|
+
'@type': z.literal('Venue'),
|
|
988
|
+
...VenueProperties,
|
|
989
|
+
}),
|
|
990
|
+
])
|
|
991
|
+
.superRefine(requireNodeIdentity);
|
|
291
992
|
export const PersonAndChildrenSchema = PersonSchema;
|
|
993
|
+
export const PageSelectorAndChildrenSchema = PageSelectorSchema;
|
|
994
|
+
export const MusicRecordingAndChildrenSchema = MusicRecordingSchema;
|
|
995
|
+
export const MusicGroupAndChildrenSchema = MusicGroupSchema;
|
|
996
|
+
export const PerformingGroupAndChildrenSchema = z
|
|
997
|
+
.discriminatedUnion('@type', [
|
|
998
|
+
z.object({
|
|
999
|
+
'@type': z.literal('PerformingGroup'),
|
|
1000
|
+
...PerformingGroupProperties,
|
|
1001
|
+
}),
|
|
1002
|
+
z.object({
|
|
1003
|
+
'@type': z.literal('MusicGroup'),
|
|
1004
|
+
...MusicGroupProperties,
|
|
1005
|
+
}),
|
|
1006
|
+
])
|
|
1007
|
+
.superRefine(requireNodeIdentity);
|
|
1008
|
+
export const OrganizationAndChildrenSchema = z
|
|
1009
|
+
.discriminatedUnion('@type', [
|
|
1010
|
+
z.object({
|
|
1011
|
+
'@type': z.literal('Organization'),
|
|
1012
|
+
...OrganizationProperties,
|
|
1013
|
+
}),
|
|
1014
|
+
z.object({
|
|
1015
|
+
'@type': z.literal('PerformingGroup'),
|
|
1016
|
+
...PerformingGroupProperties,
|
|
1017
|
+
}),
|
|
1018
|
+
z.object({
|
|
1019
|
+
'@type': z.literal('MusicGroup'),
|
|
1020
|
+
...MusicGroupProperties,
|
|
1021
|
+
}),
|
|
1022
|
+
])
|
|
1023
|
+
.superRefine(requireNodeIdentity);
|
|
1024
|
+
export const MusicAlbumAndChildrenSchema = MusicAlbumSchema;
|
|
292
1025
|
export const MessageActionAndChildrenSchema = MessageActionSchema;
|
|
293
1026
|
export const MessageAndChildrenSchema = MessageSchema;
|
|
1027
|
+
export const MembershipAndChildrenSchema = MembershipSchema;
|
|
1028
|
+
export const MealAndChildrenSchema = MealSchema;
|
|
1029
|
+
export const LocationAndChildrenSchema = LocationSchema;
|
|
1030
|
+
export const ListenActionAndChildrenSchema = ListenActionSchema;
|
|
1031
|
+
export const LikeActionAndChildrenSchema = LikeActionSchema;
|
|
1032
|
+
export const ReactActionAndChildrenSchema = z
|
|
1033
|
+
.discriminatedUnion('@type', [
|
|
1034
|
+
z.object({
|
|
1035
|
+
'@type': z.literal('ReactAction'),
|
|
1036
|
+
...ReactActionProperties,
|
|
1037
|
+
}),
|
|
1038
|
+
z.object({
|
|
1039
|
+
'@type': z.literal('LikeAction'),
|
|
1040
|
+
...LikeActionProperties,
|
|
1041
|
+
}),
|
|
1042
|
+
])
|
|
1043
|
+
.superRefine(requireNodeIdentity);
|
|
1044
|
+
export const LeaveActionAndChildrenSchema = LeaveActionSchema;
|
|
1045
|
+
export const JourneyAndChildrenSchema = JourneySchema;
|
|
1046
|
+
export const JoinActionAndChildrenSchema = JoinActionSchema;
|
|
1047
|
+
export const IntervalAndChildrenSchema = IntervalSchema;
|
|
1048
|
+
export const StructuredValueAndChildrenSchema = z.discriminatedUnion('@type', [
|
|
1049
|
+
z.object({
|
|
1050
|
+
'@type': z.literal('StructuredValue'),
|
|
1051
|
+
...StructuredValueProperties,
|
|
1052
|
+
}),
|
|
1053
|
+
z.object({
|
|
1054
|
+
'@type': z.literal('Location'),
|
|
1055
|
+
...LocationProperties,
|
|
1056
|
+
}),
|
|
1057
|
+
z.object({
|
|
1058
|
+
'@type': z.literal('Interval'),
|
|
1059
|
+
...IntervalProperties,
|
|
1060
|
+
}),
|
|
1061
|
+
]);
|
|
294
1062
|
export const ImageObjectAndChildrenSchema = ImageObjectSchema;
|
|
1063
|
+
export const FollowActionAndChildrenSchema = FollowActionSchema;
|
|
1064
|
+
export const FindActionAndChildrenSchema = FindActionSchema;
|
|
1065
|
+
export const ExperienceActionAndChildrenSchema = z
|
|
1066
|
+
.discriminatedUnion('@type', [
|
|
1067
|
+
z.object({
|
|
1068
|
+
'@type': z.literal('ExperienceAction'),
|
|
1069
|
+
...ExperienceActionProperties,
|
|
1070
|
+
}),
|
|
1071
|
+
z.object({
|
|
1072
|
+
'@type': z.literal('LeaveAction'),
|
|
1073
|
+
...LeaveActionProperties,
|
|
1074
|
+
}),
|
|
1075
|
+
z.object({
|
|
1076
|
+
'@type': z.literal('JoinAction'),
|
|
1077
|
+
...JoinActionProperties,
|
|
1078
|
+
}),
|
|
1079
|
+
])
|
|
1080
|
+
.superRefine(requireNodeIdentity);
|
|
295
1081
|
export const ExecuteActionAndChildrenSchema = ExecuteActionSchema;
|
|
1082
|
+
export const EventAndChildrenSchema = EventSchema;
|
|
1083
|
+
export const EpubCfiSelectorAndChildrenSchema = EpubCfiSelectorSchema;
|
|
1084
|
+
export const SelectorAndChildrenSchema = z
|
|
1085
|
+
.discriminatedUnion('@type', [
|
|
1086
|
+
z.object({
|
|
1087
|
+
'@type': z.literal('Selector'),
|
|
1088
|
+
...SelectorProperties,
|
|
1089
|
+
}),
|
|
1090
|
+
z.object({
|
|
1091
|
+
'@type': z.literal('PageSelector'),
|
|
1092
|
+
...PageSelectorProperties,
|
|
1093
|
+
}),
|
|
1094
|
+
z.object({
|
|
1095
|
+
'@type': z.literal('EpubCfiSelector'),
|
|
1096
|
+
...EpubCfiSelectorProperties,
|
|
1097
|
+
}),
|
|
1098
|
+
])
|
|
1099
|
+
.superRefine(requireNodeIdentity);
|
|
1100
|
+
export const EnrollmentAndChildrenSchema = EnrollmentSchema;
|
|
1101
|
+
export const EatActionAndChildrenSchema = EatActionSchema;
|
|
1102
|
+
export const DrankActionAndChildrenSchema = DrankActionSchema;
|
|
296
1103
|
export const DocumentObjectAndChildrenSchema = DocumentObjectSchema;
|
|
1104
|
+
export const DirectoryAndChildrenSchema = DirectorySchema;
|
|
1105
|
+
export const DeviceSessionAndChildrenSchema = DeviceSessionSchema;
|
|
1106
|
+
export const DeviceAndChildrenSchema = DeviceSchema;
|
|
1107
|
+
export const PhysicalObjectAndChildrenSchema = z
|
|
1108
|
+
.discriminatedUnion('@type', [
|
|
1109
|
+
z.object({
|
|
1110
|
+
'@type': z.literal('PhysicalObject'),
|
|
1111
|
+
...PhysicalObjectProperties,
|
|
1112
|
+
}),
|
|
1113
|
+
z.object({
|
|
1114
|
+
'@type': z.literal('Device'),
|
|
1115
|
+
...DeviceProperties,
|
|
1116
|
+
}),
|
|
1117
|
+
])
|
|
1118
|
+
.superRefine(requireNodeIdentity);
|
|
297
1119
|
export const DeleteActionAndChildrenSchema = DeleteActionSchema;
|
|
1120
|
+
export const ConsumeActionAndChildrenSchema = z
|
|
1121
|
+
.discriminatedUnion('@type', [
|
|
1122
|
+
z.object({
|
|
1123
|
+
'@type': z.literal('ConsumeAction'),
|
|
1124
|
+
...ConsumeActionProperties,
|
|
1125
|
+
}),
|
|
1126
|
+
z.object({
|
|
1127
|
+
'@type': z.literal('WatchAction'),
|
|
1128
|
+
...WatchActionProperties,
|
|
1129
|
+
}),
|
|
1130
|
+
z.object({
|
|
1131
|
+
'@type': z.literal('ViewAction'),
|
|
1132
|
+
...ViewActionProperties,
|
|
1133
|
+
}),
|
|
1134
|
+
z.object({
|
|
1135
|
+
'@type': z.literal('ReadAction'),
|
|
1136
|
+
...ReadActionProperties,
|
|
1137
|
+
}),
|
|
1138
|
+
z.object({
|
|
1139
|
+
'@type': z.literal('ListenAction'),
|
|
1140
|
+
...ListenActionProperties,
|
|
1141
|
+
}),
|
|
1142
|
+
z.object({
|
|
1143
|
+
'@type': z.literal('EatAction'),
|
|
1144
|
+
...EatActionProperties,
|
|
1145
|
+
}),
|
|
1146
|
+
z.object({
|
|
1147
|
+
'@type': z.literal('DrankAction'),
|
|
1148
|
+
...DrankActionProperties,
|
|
1149
|
+
}),
|
|
1150
|
+
])
|
|
1151
|
+
.superRefine(requireNodeIdentity);
|
|
298
1152
|
export const CompleteActionAndChildrenSchema = CompleteActionSchema;
|
|
1153
|
+
export const CommentAndChildrenSchema = CommentSchema;
|
|
1154
|
+
export const ResponseAndChildrenSchema = z
|
|
1155
|
+
.discriminatedUnion('@type', [
|
|
1156
|
+
z.object({
|
|
1157
|
+
'@type': z.literal('Response'),
|
|
1158
|
+
...ResponseProperties,
|
|
1159
|
+
}),
|
|
1160
|
+
z.object({
|
|
1161
|
+
'@type': z.literal('Comment'),
|
|
1162
|
+
...CommentProperties,
|
|
1163
|
+
}),
|
|
1164
|
+
])
|
|
1165
|
+
.superRefine(requireNodeIdentity);
|
|
299
1166
|
export const CommandAndChildrenSchema = CommandSchema;
|
|
300
1167
|
export const CollectionAndChildrenSchema = z
|
|
301
1168
|
.discriminatedUnion('@type', [
|
|
@@ -311,9 +1178,144 @@ export const CollectionAndChildrenSchema = z
|
|
|
311
1178
|
'@type': z.literal('Project'),
|
|
312
1179
|
...ProjectProperties,
|
|
313
1180
|
}),
|
|
1181
|
+
z.object({
|
|
1182
|
+
'@type': z.literal('Directory'),
|
|
1183
|
+
...DirectoryProperties,
|
|
1184
|
+
}),
|
|
1185
|
+
])
|
|
1186
|
+
.superRefine(requireNodeIdentity);
|
|
1187
|
+
export const CheckInActionAndChildrenSchema = CheckInActionSchema;
|
|
1188
|
+
export const ChannelAndChildrenSchema = ChannelSchema;
|
|
1189
|
+
export const CategoryAndChildrenSchema = CategorySchema;
|
|
1190
|
+
export const DefinedTermAndChildrenSchema = z
|
|
1191
|
+
.discriminatedUnion('@type', [
|
|
1192
|
+
z.object({
|
|
1193
|
+
'@type': z.literal('DefinedTerm'),
|
|
1194
|
+
...DefinedTermProperties,
|
|
1195
|
+
}),
|
|
1196
|
+
z.object({
|
|
1197
|
+
'@type': z.literal('Category'),
|
|
1198
|
+
...CategoryProperties,
|
|
1199
|
+
}),
|
|
1200
|
+
])
|
|
1201
|
+
.superRefine(requireNodeIdentity);
|
|
1202
|
+
export const IntangibleAndChildrenSchema = z
|
|
1203
|
+
.discriminatedUnion('@type', [
|
|
1204
|
+
z.object({
|
|
1205
|
+
'@type': z.literal('Intangible'),
|
|
1206
|
+
...IntangibleProperties,
|
|
1207
|
+
}),
|
|
1208
|
+
z.object({
|
|
1209
|
+
'@type': z.literal('Selector'),
|
|
1210
|
+
...SelectorProperties,
|
|
1211
|
+
}),
|
|
1212
|
+
z.object({
|
|
1213
|
+
'@type': z.literal('PageSelector'),
|
|
1214
|
+
...PageSelectorProperties,
|
|
1215
|
+
}),
|
|
1216
|
+
z.object({
|
|
1217
|
+
'@type': z.literal('EpubCfiSelector'),
|
|
1218
|
+
...EpubCfiSelectorProperties,
|
|
1219
|
+
}),
|
|
1220
|
+
z.object({
|
|
1221
|
+
'@type': z.literal('DefinedTerm'),
|
|
1222
|
+
...DefinedTermProperties,
|
|
1223
|
+
}),
|
|
1224
|
+
z.object({
|
|
1225
|
+
'@type': z.literal('Category'),
|
|
1226
|
+
...CategoryProperties,
|
|
1227
|
+
}),
|
|
314
1228
|
])
|
|
315
1229
|
.superRefine(requireNodeIdentity);
|
|
316
1230
|
export const CancelActionAndChildrenSchema = CancelActionSchema;
|
|
1231
|
+
export const CallSessionAndChildrenSchema = CallSessionSchema;
|
|
1232
|
+
export const SessionAndChildrenSchema = z
|
|
1233
|
+
.discriminatedUnion('@type', [
|
|
1234
|
+
z.object({
|
|
1235
|
+
'@type': z.literal('Session'),
|
|
1236
|
+
...SessionProperties,
|
|
1237
|
+
}),
|
|
1238
|
+
z.object({
|
|
1239
|
+
'@type': z.literal('Tenure'),
|
|
1240
|
+
...TenureProperties,
|
|
1241
|
+
}),
|
|
1242
|
+
z.object({
|
|
1243
|
+
'@type': z.literal('Relationship'),
|
|
1244
|
+
...RelationshipProperties,
|
|
1245
|
+
}),
|
|
1246
|
+
z.object({
|
|
1247
|
+
'@type': z.literal('Membership'),
|
|
1248
|
+
...MembershipProperties,
|
|
1249
|
+
}),
|
|
1250
|
+
z.object({
|
|
1251
|
+
'@type': z.literal('Enrollment'),
|
|
1252
|
+
...EnrollmentProperties,
|
|
1253
|
+
}),
|
|
1254
|
+
z.object({
|
|
1255
|
+
'@type': z.literal('DeviceSession'),
|
|
1256
|
+
...DeviceSessionProperties,
|
|
1257
|
+
}),
|
|
1258
|
+
z.object({
|
|
1259
|
+
'@type': z.literal('CallSession'),
|
|
1260
|
+
...CallSessionProperties,
|
|
1261
|
+
}),
|
|
1262
|
+
])
|
|
1263
|
+
.superRefine(requireNodeIdentity);
|
|
1264
|
+
export const CallActionAndChildrenSchema = CallActionSchema;
|
|
1265
|
+
export const CommunicateActionAndChildrenSchema = z
|
|
1266
|
+
.discriminatedUnion('@type', [
|
|
1267
|
+
z.object({
|
|
1268
|
+
'@type': z.literal('CommunicateAction'),
|
|
1269
|
+
...CommunicateActionProperties,
|
|
1270
|
+
}),
|
|
1271
|
+
z.object({
|
|
1272
|
+
'@type': z.literal('CheckInAction'),
|
|
1273
|
+
...CheckInActionProperties,
|
|
1274
|
+
}),
|
|
1275
|
+
z.object({
|
|
1276
|
+
'@type': z.literal('CallAction'),
|
|
1277
|
+
...CallActionProperties,
|
|
1278
|
+
}),
|
|
1279
|
+
])
|
|
1280
|
+
.superRefine(requireNodeIdentity);
|
|
1281
|
+
export const InteractActionAndChildrenSchema = z
|
|
1282
|
+
.discriminatedUnion('@type', [
|
|
1283
|
+
z.object({
|
|
1284
|
+
'@type': z.literal('InteractAction'),
|
|
1285
|
+
...InteractActionProperties,
|
|
1286
|
+
}),
|
|
1287
|
+
z.object({
|
|
1288
|
+
'@type': z.literal('FollowAction'),
|
|
1289
|
+
...FollowActionProperties,
|
|
1290
|
+
}),
|
|
1291
|
+
z.object({
|
|
1292
|
+
'@type': z.literal('CommunicateAction'),
|
|
1293
|
+
...CommunicateActionProperties,
|
|
1294
|
+
}),
|
|
1295
|
+
z.object({
|
|
1296
|
+
'@type': z.literal('CheckInAction'),
|
|
1297
|
+
...CheckInActionProperties,
|
|
1298
|
+
}),
|
|
1299
|
+
z.object({
|
|
1300
|
+
'@type': z.literal('CallAction'),
|
|
1301
|
+
...CallActionProperties,
|
|
1302
|
+
}),
|
|
1303
|
+
])
|
|
1304
|
+
.superRefine(requireNodeIdentity);
|
|
1305
|
+
export const BookmarkActionAndChildrenSchema = BookmarkActionSchema;
|
|
1306
|
+
export const OrganizeActionAndChildrenSchema = z
|
|
1307
|
+
.discriminatedUnion('@type', [
|
|
1308
|
+
z.object({
|
|
1309
|
+
'@type': z.literal('OrganizeAction'),
|
|
1310
|
+
...OrganizeActionProperties,
|
|
1311
|
+
}),
|
|
1312
|
+
z.object({
|
|
1313
|
+
'@type': z.literal('BookmarkAction'),
|
|
1314
|
+
...BookmarkActionProperties,
|
|
1315
|
+
}),
|
|
1316
|
+
])
|
|
1317
|
+
.superRefine(requireNodeIdentity);
|
|
1318
|
+
export const BookAndChildrenSchema = BookSchema;
|
|
317
1319
|
export const AudioObjectAndChildrenSchema = AudioObjectSchema;
|
|
318
1320
|
export const MediaObjectAndChildrenSchema = z
|
|
319
1321
|
.discriminatedUnion('@type', [
|
|
@@ -339,51 +1341,317 @@ export const MediaObjectAndChildrenSchema = z
|
|
|
339
1341
|
}),
|
|
340
1342
|
])
|
|
341
1343
|
.superRefine(requireNodeIdentity);
|
|
1344
|
+
export const AssessActionAndChildrenSchema = z
|
|
1345
|
+
.discriminatedUnion('@type', [
|
|
1346
|
+
z.object({
|
|
1347
|
+
'@type': z.literal('AssessAction'),
|
|
1348
|
+
...AssessActionProperties,
|
|
1349
|
+
}),
|
|
1350
|
+
z.object({
|
|
1351
|
+
'@type': z.literal('RespondAction'),
|
|
1352
|
+
...RespondActionProperties,
|
|
1353
|
+
}),
|
|
1354
|
+
z.object({
|
|
1355
|
+
'@type': z.literal('ReactAction'),
|
|
1356
|
+
...ReactActionProperties,
|
|
1357
|
+
}),
|
|
1358
|
+
z.object({
|
|
1359
|
+
'@type': z.literal('LikeAction'),
|
|
1360
|
+
...LikeActionProperties,
|
|
1361
|
+
}),
|
|
1362
|
+
])
|
|
1363
|
+
.superRefine(requireNodeIdentity);
|
|
1364
|
+
export const ArticleAndChildrenSchema = ArticleSchema;
|
|
1365
|
+
export const CreativeWorkAndChildrenSchema = z
|
|
1366
|
+
.discriminatedUnion('@type', [
|
|
1367
|
+
z.object({
|
|
1368
|
+
'@type': z.literal('CreativeWork'),
|
|
1369
|
+
...CreativeWorkProperties,
|
|
1370
|
+
}),
|
|
1371
|
+
z.object({
|
|
1372
|
+
'@type': z.literal('SoftwareApplication'),
|
|
1373
|
+
...SoftwareApplicationProperties,
|
|
1374
|
+
}),
|
|
1375
|
+
z.object({
|
|
1376
|
+
'@type': z.literal('Quotation'),
|
|
1377
|
+
...QuotationProperties,
|
|
1378
|
+
}),
|
|
1379
|
+
z.object({
|
|
1380
|
+
'@type': z.literal('Query'),
|
|
1381
|
+
...QueryProperties,
|
|
1382
|
+
}),
|
|
1383
|
+
z.object({
|
|
1384
|
+
'@type': z.literal('Post'),
|
|
1385
|
+
...PostProperties,
|
|
1386
|
+
}),
|
|
1387
|
+
z.object({
|
|
1388
|
+
'@type': z.literal('PodcastEpisode'),
|
|
1389
|
+
...PodcastEpisodeProperties,
|
|
1390
|
+
}),
|
|
1391
|
+
z.object({
|
|
1392
|
+
'@type': z.literal('MusicRecording'),
|
|
1393
|
+
...MusicRecordingProperties,
|
|
1394
|
+
}),
|
|
1395
|
+
z.object({
|
|
1396
|
+
'@type': z.literal('MusicAlbum'),
|
|
1397
|
+
...MusicAlbumProperties,
|
|
1398
|
+
}),
|
|
1399
|
+
z.object({
|
|
1400
|
+
'@type': z.literal('Message'),
|
|
1401
|
+
...MessageProperties,
|
|
1402
|
+
}),
|
|
1403
|
+
z.object({
|
|
1404
|
+
'@type': z.literal('Response'),
|
|
1405
|
+
...ResponseProperties,
|
|
1406
|
+
}),
|
|
1407
|
+
z.object({
|
|
1408
|
+
'@type': z.literal('Comment'),
|
|
1409
|
+
...CommentProperties,
|
|
1410
|
+
}),
|
|
1411
|
+
z.object({
|
|
1412
|
+
'@type': z.literal('Collection'),
|
|
1413
|
+
...CollectionProperties,
|
|
1414
|
+
}),
|
|
1415
|
+
z.object({
|
|
1416
|
+
'@type': z.literal('Thread'),
|
|
1417
|
+
...ThreadProperties,
|
|
1418
|
+
}),
|
|
1419
|
+
z.object({
|
|
1420
|
+
'@type': z.literal('Project'),
|
|
1421
|
+
...ProjectProperties,
|
|
1422
|
+
}),
|
|
1423
|
+
z.object({
|
|
1424
|
+
'@type': z.literal('Directory'),
|
|
1425
|
+
...DirectoryProperties,
|
|
1426
|
+
}),
|
|
1427
|
+
z.object({
|
|
1428
|
+
'@type': z.literal('Channel'),
|
|
1429
|
+
...ChannelProperties,
|
|
1430
|
+
}),
|
|
1431
|
+
z.object({
|
|
1432
|
+
'@type': z.literal('Book'),
|
|
1433
|
+
...BookProperties,
|
|
1434
|
+
}),
|
|
1435
|
+
z.object({
|
|
1436
|
+
'@type': z.literal('MediaObject'),
|
|
1437
|
+
...MediaObjectProperties,
|
|
1438
|
+
}),
|
|
1439
|
+
z.object({
|
|
1440
|
+
'@type': z.literal('VideoObject'),
|
|
1441
|
+
...VideoObjectProperties,
|
|
1442
|
+
}),
|
|
1443
|
+
z.object({
|
|
1444
|
+
'@type': z.literal('ImageObject'),
|
|
1445
|
+
...ImageObjectProperties,
|
|
1446
|
+
}),
|
|
1447
|
+
z.object({
|
|
1448
|
+
'@type': z.literal('DocumentObject'),
|
|
1449
|
+
...DocumentObjectProperties,
|
|
1450
|
+
}),
|
|
1451
|
+
z.object({
|
|
1452
|
+
'@type': z.literal('AudioObject'),
|
|
1453
|
+
...AudioObjectProperties,
|
|
1454
|
+
}),
|
|
1455
|
+
z.object({
|
|
1456
|
+
'@type': z.literal('Article'),
|
|
1457
|
+
...ArticleProperties,
|
|
1458
|
+
}),
|
|
1459
|
+
])
|
|
1460
|
+
.superRefine(requireNodeIdentity);
|
|
1461
|
+
export const AnnotateActionAndChildrenSchema = AnnotateActionSchema;
|
|
1462
|
+
export const CreateActionAndChildrenSchema = z
|
|
1463
|
+
.discriminatedUnion('@type', [
|
|
1464
|
+
z.object({
|
|
1465
|
+
'@type': z.literal('CreateAction'),
|
|
1466
|
+
...CreateActionProperties,
|
|
1467
|
+
}),
|
|
1468
|
+
z.object({
|
|
1469
|
+
'@type': z.literal('QuoteAction'),
|
|
1470
|
+
...QuoteActionProperties,
|
|
1471
|
+
}),
|
|
1472
|
+
z.object({
|
|
1473
|
+
'@type': z.literal('PublishAction'),
|
|
1474
|
+
...PublishActionProperties,
|
|
1475
|
+
}),
|
|
1476
|
+
z.object({
|
|
1477
|
+
'@type': z.literal('AnnotateAction'),
|
|
1478
|
+
...AnnotateActionProperties,
|
|
1479
|
+
}),
|
|
1480
|
+
])
|
|
1481
|
+
.superRefine(requireNodeIdentity);
|
|
342
1482
|
export const AgentAndChildrenSchema = z
|
|
343
1483
|
.discriminatedUnion('@type', [
|
|
344
1484
|
z.object({
|
|
345
|
-
'@type': z.literal('Agent'),
|
|
346
|
-
...AgentProperties,
|
|
1485
|
+
'@type': z.literal('Agent'),
|
|
1486
|
+
...AgentProperties,
|
|
1487
|
+
}),
|
|
1488
|
+
z.object({
|
|
1489
|
+
'@type': z.literal('SoftwareAgent'),
|
|
1490
|
+
...SoftwareAgentProperties,
|
|
1491
|
+
}),
|
|
1492
|
+
z.object({
|
|
1493
|
+
'@type': z.literal('Person'),
|
|
1494
|
+
...PersonProperties,
|
|
1495
|
+
}),
|
|
1496
|
+
z.object({
|
|
1497
|
+
'@type': z.literal('Organization'),
|
|
1498
|
+
...OrganizationProperties,
|
|
1499
|
+
}),
|
|
1500
|
+
z.object({
|
|
1501
|
+
'@type': z.literal('PerformingGroup'),
|
|
1502
|
+
...PerformingGroupProperties,
|
|
1503
|
+
}),
|
|
1504
|
+
z.object({
|
|
1505
|
+
'@type': z.literal('MusicGroup'),
|
|
1506
|
+
...MusicGroupProperties,
|
|
1507
|
+
}),
|
|
1508
|
+
])
|
|
1509
|
+
.superRefine(requireNodeIdentity);
|
|
1510
|
+
export const EntityAndChildrenSchema = z
|
|
1511
|
+
.discriminatedUnion('@type', [
|
|
1512
|
+
z.object({
|
|
1513
|
+
'@type': z.literal('Entity'),
|
|
1514
|
+
...EntityProperties,
|
|
1515
|
+
}),
|
|
1516
|
+
z.object({
|
|
1517
|
+
'@type': z.literal('Task'),
|
|
1518
|
+
...TaskProperties,
|
|
1519
|
+
}),
|
|
1520
|
+
z.object({
|
|
1521
|
+
'@type': z.literal('Tag'),
|
|
1522
|
+
...TagProperties,
|
|
1523
|
+
}),
|
|
1524
|
+
z.object({
|
|
1525
|
+
'@type': z.literal('Realm'),
|
|
1526
|
+
...RealmProperties,
|
|
1527
|
+
}),
|
|
1528
|
+
z.object({
|
|
1529
|
+
'@type': z.literal('Place'),
|
|
1530
|
+
...PlaceProperties,
|
|
1531
|
+
}),
|
|
1532
|
+
z.object({
|
|
1533
|
+
'@type': z.literal('Venue'),
|
|
1534
|
+
...VenueProperties,
|
|
1535
|
+
}),
|
|
1536
|
+
z.object({
|
|
1537
|
+
'@type': z.literal('Meal'),
|
|
1538
|
+
...MealProperties,
|
|
1539
|
+
}),
|
|
1540
|
+
z.object({
|
|
1541
|
+
'@type': z.literal('Journey'),
|
|
1542
|
+
...JourneyProperties,
|
|
1543
|
+
}),
|
|
1544
|
+
z.object({
|
|
1545
|
+
'@type': z.literal('Event'),
|
|
1546
|
+
...EventProperties,
|
|
1547
|
+
}),
|
|
1548
|
+
z.object({
|
|
1549
|
+
'@type': z.literal('PhysicalObject'),
|
|
1550
|
+
...PhysicalObjectProperties,
|
|
1551
|
+
}),
|
|
1552
|
+
z.object({
|
|
1553
|
+
'@type': z.literal('Device'),
|
|
1554
|
+
...DeviceProperties,
|
|
1555
|
+
}),
|
|
1556
|
+
z.object({
|
|
1557
|
+
'@type': z.literal('Command'),
|
|
1558
|
+
...CommandProperties,
|
|
1559
|
+
}),
|
|
1560
|
+
z.object({
|
|
1561
|
+
'@type': z.literal('Intangible'),
|
|
1562
|
+
...IntangibleProperties,
|
|
1563
|
+
}),
|
|
1564
|
+
z.object({
|
|
1565
|
+
'@type': z.literal('Selector'),
|
|
1566
|
+
...SelectorProperties,
|
|
1567
|
+
}),
|
|
1568
|
+
z.object({
|
|
1569
|
+
'@type': z.literal('PageSelector'),
|
|
1570
|
+
...PageSelectorProperties,
|
|
1571
|
+
}),
|
|
1572
|
+
z.object({
|
|
1573
|
+
'@type': z.literal('EpubCfiSelector'),
|
|
1574
|
+
...EpubCfiSelectorProperties,
|
|
1575
|
+
}),
|
|
1576
|
+
z.object({
|
|
1577
|
+
'@type': z.literal('DefinedTerm'),
|
|
1578
|
+
...DefinedTermProperties,
|
|
1579
|
+
}),
|
|
1580
|
+
z.object({
|
|
1581
|
+
'@type': z.literal('Category'),
|
|
1582
|
+
...CategoryProperties,
|
|
1583
|
+
}),
|
|
1584
|
+
z.object({
|
|
1585
|
+
'@type': z.literal('Session'),
|
|
1586
|
+
...SessionProperties,
|
|
1587
|
+
}),
|
|
1588
|
+
z.object({
|
|
1589
|
+
'@type': z.literal('Tenure'),
|
|
1590
|
+
...TenureProperties,
|
|
1591
|
+
}),
|
|
1592
|
+
z.object({
|
|
1593
|
+
'@type': z.literal('Relationship'),
|
|
1594
|
+
...RelationshipProperties,
|
|
1595
|
+
}),
|
|
1596
|
+
z.object({
|
|
1597
|
+
'@type': z.literal('Membership'),
|
|
1598
|
+
...MembershipProperties,
|
|
1599
|
+
}),
|
|
1600
|
+
z.object({
|
|
1601
|
+
'@type': z.literal('Enrollment'),
|
|
1602
|
+
...EnrollmentProperties,
|
|
1603
|
+
}),
|
|
1604
|
+
z.object({
|
|
1605
|
+
'@type': z.literal('DeviceSession'),
|
|
1606
|
+
...DeviceSessionProperties,
|
|
1607
|
+
}),
|
|
1608
|
+
z.object({
|
|
1609
|
+
'@type': z.literal('CallSession'),
|
|
1610
|
+
...CallSessionProperties,
|
|
347
1611
|
}),
|
|
348
1612
|
z.object({
|
|
349
|
-
'@type': z.literal('
|
|
350
|
-
...
|
|
1613
|
+
'@type': z.literal('CreativeWork'),
|
|
1614
|
+
...CreativeWorkProperties,
|
|
351
1615
|
}),
|
|
352
1616
|
z.object({
|
|
353
|
-
'@type': z.literal('
|
|
354
|
-
...
|
|
1617
|
+
'@type': z.literal('SoftwareApplication'),
|
|
1618
|
+
...SoftwareApplicationProperties,
|
|
355
1619
|
}),
|
|
356
|
-
])
|
|
357
|
-
.superRefine(requireNodeIdentity);
|
|
358
|
-
export const EntityAndChildrenSchema = z
|
|
359
|
-
.discriminatedUnion('@type', [
|
|
360
1620
|
z.object({
|
|
361
|
-
'@type': z.literal('
|
|
362
|
-
...
|
|
1621
|
+
'@type': z.literal('Quotation'),
|
|
1622
|
+
...QuotationProperties,
|
|
363
1623
|
}),
|
|
364
1624
|
z.object({
|
|
365
|
-
'@type': z.literal('
|
|
366
|
-
...
|
|
1625
|
+
'@type': z.literal('Query'),
|
|
1626
|
+
...QueryProperties,
|
|
367
1627
|
}),
|
|
368
1628
|
z.object({
|
|
369
|
-
'@type': z.literal('
|
|
370
|
-
...
|
|
1629
|
+
'@type': z.literal('Post'),
|
|
1630
|
+
...PostProperties,
|
|
371
1631
|
}),
|
|
372
1632
|
z.object({
|
|
373
|
-
'@type': z.literal('
|
|
374
|
-
...
|
|
1633
|
+
'@type': z.literal('PodcastEpisode'),
|
|
1634
|
+
...PodcastEpisodeProperties,
|
|
375
1635
|
}),
|
|
376
1636
|
z.object({
|
|
377
|
-
'@type': z.literal('
|
|
378
|
-
...
|
|
1637
|
+
'@type': z.literal('MusicRecording'),
|
|
1638
|
+
...MusicRecordingProperties,
|
|
1639
|
+
}),
|
|
1640
|
+
z.object({
|
|
1641
|
+
'@type': z.literal('MusicAlbum'),
|
|
1642
|
+
...MusicAlbumProperties,
|
|
379
1643
|
}),
|
|
380
1644
|
z.object({
|
|
381
1645
|
'@type': z.literal('Message'),
|
|
382
1646
|
...MessageProperties,
|
|
383
1647
|
}),
|
|
384
1648
|
z.object({
|
|
385
|
-
'@type': z.literal('
|
|
386
|
-
...
|
|
1649
|
+
'@type': z.literal('Response'),
|
|
1650
|
+
...ResponseProperties,
|
|
1651
|
+
}),
|
|
1652
|
+
z.object({
|
|
1653
|
+
'@type': z.literal('Comment'),
|
|
1654
|
+
...CommentProperties,
|
|
387
1655
|
}),
|
|
388
1656
|
z.object({
|
|
389
1657
|
'@type': z.literal('Collection'),
|
|
@@ -397,6 +1665,18 @@ export const EntityAndChildrenSchema = z
|
|
|
397
1665
|
'@type': z.literal('Project'),
|
|
398
1666
|
...ProjectProperties,
|
|
399
1667
|
}),
|
|
1668
|
+
z.object({
|
|
1669
|
+
'@type': z.literal('Directory'),
|
|
1670
|
+
...DirectoryProperties,
|
|
1671
|
+
}),
|
|
1672
|
+
z.object({
|
|
1673
|
+
'@type': z.literal('Channel'),
|
|
1674
|
+
...ChannelProperties,
|
|
1675
|
+
}),
|
|
1676
|
+
z.object({
|
|
1677
|
+
'@type': z.literal('Book'),
|
|
1678
|
+
...BookProperties,
|
|
1679
|
+
}),
|
|
400
1680
|
z.object({
|
|
401
1681
|
'@type': z.literal('MediaObject'),
|
|
402
1682
|
...MediaObjectProperties,
|
|
@@ -417,6 +1697,10 @@ export const EntityAndChildrenSchema = z
|
|
|
417
1697
|
'@type': z.literal('AudioObject'),
|
|
418
1698
|
...AudioObjectProperties,
|
|
419
1699
|
}),
|
|
1700
|
+
z.object({
|
|
1701
|
+
'@type': z.literal('Article'),
|
|
1702
|
+
...ArticleProperties,
|
|
1703
|
+
}),
|
|
420
1704
|
z.object({
|
|
421
1705
|
'@type': z.literal('Agent'),
|
|
422
1706
|
...AgentProperties,
|
|
@@ -429,6 +1713,31 @@ export const EntityAndChildrenSchema = z
|
|
|
429
1713
|
'@type': z.literal('Person'),
|
|
430
1714
|
...PersonProperties,
|
|
431
1715
|
}),
|
|
1716
|
+
z.object({
|
|
1717
|
+
'@type': z.literal('Organization'),
|
|
1718
|
+
...OrganizationProperties,
|
|
1719
|
+
}),
|
|
1720
|
+
z.object({
|
|
1721
|
+
'@type': z.literal('PerformingGroup'),
|
|
1722
|
+
...PerformingGroupProperties,
|
|
1723
|
+
}),
|
|
1724
|
+
z.object({
|
|
1725
|
+
'@type': z.literal('MusicGroup'),
|
|
1726
|
+
...MusicGroupProperties,
|
|
1727
|
+
}),
|
|
1728
|
+
])
|
|
1729
|
+
.superRefine(requireNodeIdentity);
|
|
1730
|
+
export const AddActionAndChildrenSchema = AddActionSchema;
|
|
1731
|
+
export const UpdateActionAndChildrenSchema = z
|
|
1732
|
+
.discriminatedUnion('@type', [
|
|
1733
|
+
z.object({
|
|
1734
|
+
'@type': z.literal('UpdateAction'),
|
|
1735
|
+
...UpdateActionProperties,
|
|
1736
|
+
}),
|
|
1737
|
+
z.object({
|
|
1738
|
+
'@type': z.literal('AddAction'),
|
|
1739
|
+
...AddActionProperties,
|
|
1740
|
+
}),
|
|
432
1741
|
])
|
|
433
1742
|
.superRefine(requireNodeIdentity);
|
|
434
1743
|
export const ActionAndChildrenSchema = z
|
|
@@ -438,8 +1747,12 @@ export const ActionAndChildrenSchema = z
|
|
|
438
1747
|
...ActionProperties,
|
|
439
1748
|
}),
|
|
440
1749
|
z.object({
|
|
441
|
-
'@type': z.literal('
|
|
442
|
-
...
|
|
1750
|
+
'@type': z.literal('VisitAction'),
|
|
1751
|
+
...VisitActionProperties,
|
|
1752
|
+
}),
|
|
1753
|
+
z.object({
|
|
1754
|
+
'@type': z.literal('TravelAction'),
|
|
1755
|
+
...TravelActionProperties,
|
|
443
1756
|
}),
|
|
444
1757
|
z.object({
|
|
445
1758
|
'@type': z.literal('PlanAction'),
|
|
@@ -449,6 +1762,22 @@ export const ActionAndChildrenSchema = z
|
|
|
449
1762
|
'@type': z.literal('MessageAction'),
|
|
450
1763
|
...MessageActionProperties,
|
|
451
1764
|
}),
|
|
1765
|
+
z.object({
|
|
1766
|
+
'@type': z.literal('FindAction'),
|
|
1767
|
+
...FindActionProperties,
|
|
1768
|
+
}),
|
|
1769
|
+
z.object({
|
|
1770
|
+
'@type': z.literal('ExperienceAction'),
|
|
1771
|
+
...ExperienceActionProperties,
|
|
1772
|
+
}),
|
|
1773
|
+
z.object({
|
|
1774
|
+
'@type': z.literal('LeaveAction'),
|
|
1775
|
+
...LeaveActionProperties,
|
|
1776
|
+
}),
|
|
1777
|
+
z.object({
|
|
1778
|
+
'@type': z.literal('JoinAction'),
|
|
1779
|
+
...JoinActionProperties,
|
|
1780
|
+
}),
|
|
452
1781
|
z.object({
|
|
453
1782
|
'@type': z.literal('ExecuteAction'),
|
|
454
1783
|
...ExecuteActionProperties,
|
|
@@ -457,6 +1786,34 @@ export const ActionAndChildrenSchema = z
|
|
|
457
1786
|
'@type': z.literal('DeleteAction'),
|
|
458
1787
|
...DeleteActionProperties,
|
|
459
1788
|
}),
|
|
1789
|
+
z.object({
|
|
1790
|
+
'@type': z.literal('ConsumeAction'),
|
|
1791
|
+
...ConsumeActionProperties,
|
|
1792
|
+
}),
|
|
1793
|
+
z.object({
|
|
1794
|
+
'@type': z.literal('WatchAction'),
|
|
1795
|
+
...WatchActionProperties,
|
|
1796
|
+
}),
|
|
1797
|
+
z.object({
|
|
1798
|
+
'@type': z.literal('ViewAction'),
|
|
1799
|
+
...ViewActionProperties,
|
|
1800
|
+
}),
|
|
1801
|
+
z.object({
|
|
1802
|
+
'@type': z.literal('ReadAction'),
|
|
1803
|
+
...ReadActionProperties,
|
|
1804
|
+
}),
|
|
1805
|
+
z.object({
|
|
1806
|
+
'@type': z.literal('ListenAction'),
|
|
1807
|
+
...ListenActionProperties,
|
|
1808
|
+
}),
|
|
1809
|
+
z.object({
|
|
1810
|
+
'@type': z.literal('EatAction'),
|
|
1811
|
+
...EatActionProperties,
|
|
1812
|
+
}),
|
|
1813
|
+
z.object({
|
|
1814
|
+
'@type': z.literal('DrankAction'),
|
|
1815
|
+
...DrankActionProperties,
|
|
1816
|
+
}),
|
|
460
1817
|
z.object({
|
|
461
1818
|
'@type': z.literal('CompleteAction'),
|
|
462
1819
|
...CompleteActionProperties,
|
|
@@ -465,6 +1822,74 @@ export const ActionAndChildrenSchema = z
|
|
|
465
1822
|
'@type': z.literal('CancelAction'),
|
|
466
1823
|
...CancelActionProperties,
|
|
467
1824
|
}),
|
|
1825
|
+
z.object({
|
|
1826
|
+
'@type': z.literal('InteractAction'),
|
|
1827
|
+
...InteractActionProperties,
|
|
1828
|
+
}),
|
|
1829
|
+
z.object({
|
|
1830
|
+
'@type': z.literal('FollowAction'),
|
|
1831
|
+
...FollowActionProperties,
|
|
1832
|
+
}),
|
|
1833
|
+
z.object({
|
|
1834
|
+
'@type': z.literal('CommunicateAction'),
|
|
1835
|
+
...CommunicateActionProperties,
|
|
1836
|
+
}),
|
|
1837
|
+
z.object({
|
|
1838
|
+
'@type': z.literal('CheckInAction'),
|
|
1839
|
+
...CheckInActionProperties,
|
|
1840
|
+
}),
|
|
1841
|
+
z.object({
|
|
1842
|
+
'@type': z.literal('CallAction'),
|
|
1843
|
+
...CallActionProperties,
|
|
1844
|
+
}),
|
|
1845
|
+
z.object({
|
|
1846
|
+
'@type': z.literal('OrganizeAction'),
|
|
1847
|
+
...OrganizeActionProperties,
|
|
1848
|
+
}),
|
|
1849
|
+
z.object({
|
|
1850
|
+
'@type': z.literal('BookmarkAction'),
|
|
1851
|
+
...BookmarkActionProperties,
|
|
1852
|
+
}),
|
|
1853
|
+
z.object({
|
|
1854
|
+
'@type': z.literal('AssessAction'),
|
|
1855
|
+
...AssessActionProperties,
|
|
1856
|
+
}),
|
|
1857
|
+
z.object({
|
|
1858
|
+
'@type': z.literal('RespondAction'),
|
|
1859
|
+
...RespondActionProperties,
|
|
1860
|
+
}),
|
|
1861
|
+
z.object({
|
|
1862
|
+
'@type': z.literal('ReactAction'),
|
|
1863
|
+
...ReactActionProperties,
|
|
1864
|
+
}),
|
|
1865
|
+
z.object({
|
|
1866
|
+
'@type': z.literal('LikeAction'),
|
|
1867
|
+
...LikeActionProperties,
|
|
1868
|
+
}),
|
|
1869
|
+
z.object({
|
|
1870
|
+
'@type': z.literal('CreateAction'),
|
|
1871
|
+
...CreateActionProperties,
|
|
1872
|
+
}),
|
|
1873
|
+
z.object({
|
|
1874
|
+
'@type': z.literal('QuoteAction'),
|
|
1875
|
+
...QuoteActionProperties,
|
|
1876
|
+
}),
|
|
1877
|
+
z.object({
|
|
1878
|
+
'@type': z.literal('PublishAction'),
|
|
1879
|
+
...PublishActionProperties,
|
|
1880
|
+
}),
|
|
1881
|
+
z.object({
|
|
1882
|
+
'@type': z.literal('AnnotateAction'),
|
|
1883
|
+
...AnnotateActionProperties,
|
|
1884
|
+
}),
|
|
1885
|
+
z.object({
|
|
1886
|
+
'@type': z.literal('UpdateAction'),
|
|
1887
|
+
...UpdateActionProperties,
|
|
1888
|
+
}),
|
|
1889
|
+
z.object({
|
|
1890
|
+
'@type': z.literal('AddAction'),
|
|
1891
|
+
...AddActionProperties,
|
|
1892
|
+
}),
|
|
468
1893
|
])
|
|
469
1894
|
.superRefine(requireNodeIdentity);
|
|
470
1895
|
export const BaseAndChildrenSchema = z
|
|
@@ -485,21 +1910,137 @@ export const BaseAndChildrenSchema = z
|
|
|
485
1910
|
'@type': z.literal('Tag'),
|
|
486
1911
|
...TagProperties,
|
|
487
1912
|
}),
|
|
1913
|
+
z.object({
|
|
1914
|
+
'@type': z.literal('Realm'),
|
|
1915
|
+
...RealmProperties,
|
|
1916
|
+
}),
|
|
1917
|
+
z.object({
|
|
1918
|
+
'@type': z.literal('Place'),
|
|
1919
|
+
...PlaceProperties,
|
|
1920
|
+
}),
|
|
1921
|
+
z.object({
|
|
1922
|
+
'@type': z.literal('Venue'),
|
|
1923
|
+
...VenueProperties,
|
|
1924
|
+
}),
|
|
1925
|
+
z.object({
|
|
1926
|
+
'@type': z.literal('Meal'),
|
|
1927
|
+
...MealProperties,
|
|
1928
|
+
}),
|
|
1929
|
+
z.object({
|
|
1930
|
+
'@type': z.literal('Journey'),
|
|
1931
|
+
...JourneyProperties,
|
|
1932
|
+
}),
|
|
1933
|
+
z.object({
|
|
1934
|
+
'@type': z.literal('Event'),
|
|
1935
|
+
...EventProperties,
|
|
1936
|
+
}),
|
|
1937
|
+
z.object({
|
|
1938
|
+
'@type': z.literal('PhysicalObject'),
|
|
1939
|
+
...PhysicalObjectProperties,
|
|
1940
|
+
}),
|
|
1941
|
+
z.object({
|
|
1942
|
+
'@type': z.literal('Device'),
|
|
1943
|
+
...DeviceProperties,
|
|
1944
|
+
}),
|
|
1945
|
+
z.object({
|
|
1946
|
+
'@type': z.literal('Command'),
|
|
1947
|
+
...CommandProperties,
|
|
1948
|
+
}),
|
|
1949
|
+
z.object({
|
|
1950
|
+
'@type': z.literal('Intangible'),
|
|
1951
|
+
...IntangibleProperties,
|
|
1952
|
+
}),
|
|
1953
|
+
z.object({
|
|
1954
|
+
'@type': z.literal('Selector'),
|
|
1955
|
+
...SelectorProperties,
|
|
1956
|
+
}),
|
|
1957
|
+
z.object({
|
|
1958
|
+
'@type': z.literal('PageSelector'),
|
|
1959
|
+
...PageSelectorProperties,
|
|
1960
|
+
}),
|
|
1961
|
+
z.object({
|
|
1962
|
+
'@type': z.literal('EpubCfiSelector'),
|
|
1963
|
+
...EpubCfiSelectorProperties,
|
|
1964
|
+
}),
|
|
1965
|
+
z.object({
|
|
1966
|
+
'@type': z.literal('DefinedTerm'),
|
|
1967
|
+
...DefinedTermProperties,
|
|
1968
|
+
}),
|
|
1969
|
+
z.object({
|
|
1970
|
+
'@type': z.literal('Category'),
|
|
1971
|
+
...CategoryProperties,
|
|
1972
|
+
}),
|
|
1973
|
+
z.object({
|
|
1974
|
+
'@type': z.literal('Session'),
|
|
1975
|
+
...SessionProperties,
|
|
1976
|
+
}),
|
|
1977
|
+
z.object({
|
|
1978
|
+
'@type': z.literal('Tenure'),
|
|
1979
|
+
...TenureProperties,
|
|
1980
|
+
}),
|
|
1981
|
+
z.object({
|
|
1982
|
+
'@type': z.literal('Relationship'),
|
|
1983
|
+
...RelationshipProperties,
|
|
1984
|
+
}),
|
|
1985
|
+
z.object({
|
|
1986
|
+
'@type': z.literal('Membership'),
|
|
1987
|
+
...MembershipProperties,
|
|
1988
|
+
}),
|
|
1989
|
+
z.object({
|
|
1990
|
+
'@type': z.literal('Enrollment'),
|
|
1991
|
+
...EnrollmentProperties,
|
|
1992
|
+
}),
|
|
1993
|
+
z.object({
|
|
1994
|
+
'@type': z.literal('DeviceSession'),
|
|
1995
|
+
...DeviceSessionProperties,
|
|
1996
|
+
}),
|
|
1997
|
+
z.object({
|
|
1998
|
+
'@type': z.literal('CallSession'),
|
|
1999
|
+
...CallSessionProperties,
|
|
2000
|
+
}),
|
|
2001
|
+
z.object({
|
|
2002
|
+
'@type': z.literal('CreativeWork'),
|
|
2003
|
+
...CreativeWorkProperties,
|
|
2004
|
+
}),
|
|
488
2005
|
z.object({
|
|
489
2006
|
'@type': z.literal('SoftwareApplication'),
|
|
490
2007
|
...SoftwareApplicationProperties,
|
|
491
2008
|
}),
|
|
492
2009
|
z.object({
|
|
493
|
-
'@type': z.literal('
|
|
494
|
-
...
|
|
2010
|
+
'@type': z.literal('Quotation'),
|
|
2011
|
+
...QuotationProperties,
|
|
2012
|
+
}),
|
|
2013
|
+
z.object({
|
|
2014
|
+
'@type': z.literal('Query'),
|
|
2015
|
+
...QueryProperties,
|
|
2016
|
+
}),
|
|
2017
|
+
z.object({
|
|
2018
|
+
'@type': z.literal('Post'),
|
|
2019
|
+
...PostProperties,
|
|
2020
|
+
}),
|
|
2021
|
+
z.object({
|
|
2022
|
+
'@type': z.literal('PodcastEpisode'),
|
|
2023
|
+
...PodcastEpisodeProperties,
|
|
2024
|
+
}),
|
|
2025
|
+
z.object({
|
|
2026
|
+
'@type': z.literal('MusicRecording'),
|
|
2027
|
+
...MusicRecordingProperties,
|
|
2028
|
+
}),
|
|
2029
|
+
z.object({
|
|
2030
|
+
'@type': z.literal('MusicAlbum'),
|
|
2031
|
+
...MusicAlbumProperties,
|
|
495
2032
|
}),
|
|
496
2033
|
z.object({
|
|
497
2034
|
'@type': z.literal('Message'),
|
|
498
2035
|
...MessageProperties,
|
|
499
2036
|
}),
|
|
500
2037
|
z.object({
|
|
501
|
-
'@type': z.literal('
|
|
502
|
-
...
|
|
2038
|
+
'@type': z.literal('Response'),
|
|
2039
|
+
...ResponseProperties,
|
|
2040
|
+
}),
|
|
2041
|
+
z.object({
|
|
2042
|
+
'@type': z.literal('Comment'),
|
|
2043
|
+
...CommentProperties,
|
|
503
2044
|
}),
|
|
504
2045
|
z.object({
|
|
505
2046
|
'@type': z.literal('Collection'),
|
|
@@ -513,6 +2054,18 @@ export const BaseAndChildrenSchema = z
|
|
|
513
2054
|
'@type': z.literal('Project'),
|
|
514
2055
|
...ProjectProperties,
|
|
515
2056
|
}),
|
|
2057
|
+
z.object({
|
|
2058
|
+
'@type': z.literal('Directory'),
|
|
2059
|
+
...DirectoryProperties,
|
|
2060
|
+
}),
|
|
2061
|
+
z.object({
|
|
2062
|
+
'@type': z.literal('Channel'),
|
|
2063
|
+
...ChannelProperties,
|
|
2064
|
+
}),
|
|
2065
|
+
z.object({
|
|
2066
|
+
'@type': z.literal('Book'),
|
|
2067
|
+
...BookProperties,
|
|
2068
|
+
}),
|
|
516
2069
|
z.object({
|
|
517
2070
|
'@type': z.literal('MediaObject'),
|
|
518
2071
|
...MediaObjectProperties,
|
|
@@ -533,6 +2086,10 @@ export const BaseAndChildrenSchema = z
|
|
|
533
2086
|
'@type': z.literal('AudioObject'),
|
|
534
2087
|
...AudioObjectProperties,
|
|
535
2088
|
}),
|
|
2089
|
+
z.object({
|
|
2090
|
+
'@type': z.literal('Article'),
|
|
2091
|
+
...ArticleProperties,
|
|
2092
|
+
}),
|
|
536
2093
|
z.object({
|
|
537
2094
|
'@type': z.literal('Agent'),
|
|
538
2095
|
...AgentProperties,
|
|
@@ -545,13 +2102,29 @@ export const BaseAndChildrenSchema = z
|
|
|
545
2102
|
'@type': z.literal('Person'),
|
|
546
2103
|
...PersonProperties,
|
|
547
2104
|
}),
|
|
2105
|
+
z.object({
|
|
2106
|
+
'@type': z.literal('Organization'),
|
|
2107
|
+
...OrganizationProperties,
|
|
2108
|
+
}),
|
|
2109
|
+
z.object({
|
|
2110
|
+
'@type': z.literal('PerformingGroup'),
|
|
2111
|
+
...PerformingGroupProperties,
|
|
2112
|
+
}),
|
|
2113
|
+
z.object({
|
|
2114
|
+
'@type': z.literal('MusicGroup'),
|
|
2115
|
+
...MusicGroupProperties,
|
|
2116
|
+
}),
|
|
548
2117
|
z.object({
|
|
549
2118
|
'@type': z.literal('Action'),
|
|
550
2119
|
...ActionProperties,
|
|
551
2120
|
}),
|
|
552
2121
|
z.object({
|
|
553
|
-
'@type': z.literal('
|
|
554
|
-
...
|
|
2122
|
+
'@type': z.literal('VisitAction'),
|
|
2123
|
+
...VisitActionProperties,
|
|
2124
|
+
}),
|
|
2125
|
+
z.object({
|
|
2126
|
+
'@type': z.literal('TravelAction'),
|
|
2127
|
+
...TravelActionProperties,
|
|
555
2128
|
}),
|
|
556
2129
|
z.object({
|
|
557
2130
|
'@type': z.literal('PlanAction'),
|
|
@@ -561,6 +2134,22 @@ export const BaseAndChildrenSchema = z
|
|
|
561
2134
|
'@type': z.literal('MessageAction'),
|
|
562
2135
|
...MessageActionProperties,
|
|
563
2136
|
}),
|
|
2137
|
+
z.object({
|
|
2138
|
+
'@type': z.literal('FindAction'),
|
|
2139
|
+
...FindActionProperties,
|
|
2140
|
+
}),
|
|
2141
|
+
z.object({
|
|
2142
|
+
'@type': z.literal('ExperienceAction'),
|
|
2143
|
+
...ExperienceActionProperties,
|
|
2144
|
+
}),
|
|
2145
|
+
z.object({
|
|
2146
|
+
'@type': z.literal('LeaveAction'),
|
|
2147
|
+
...LeaveActionProperties,
|
|
2148
|
+
}),
|
|
2149
|
+
z.object({
|
|
2150
|
+
'@type': z.literal('JoinAction'),
|
|
2151
|
+
...JoinActionProperties,
|
|
2152
|
+
}),
|
|
564
2153
|
z.object({
|
|
565
2154
|
'@type': z.literal('ExecuteAction'),
|
|
566
2155
|
...ExecuteActionProperties,
|
|
@@ -569,6 +2158,34 @@ export const BaseAndChildrenSchema = z
|
|
|
569
2158
|
'@type': z.literal('DeleteAction'),
|
|
570
2159
|
...DeleteActionProperties,
|
|
571
2160
|
}),
|
|
2161
|
+
z.object({
|
|
2162
|
+
'@type': z.literal('ConsumeAction'),
|
|
2163
|
+
...ConsumeActionProperties,
|
|
2164
|
+
}),
|
|
2165
|
+
z.object({
|
|
2166
|
+
'@type': z.literal('WatchAction'),
|
|
2167
|
+
...WatchActionProperties,
|
|
2168
|
+
}),
|
|
2169
|
+
z.object({
|
|
2170
|
+
'@type': z.literal('ViewAction'),
|
|
2171
|
+
...ViewActionProperties,
|
|
2172
|
+
}),
|
|
2173
|
+
z.object({
|
|
2174
|
+
'@type': z.literal('ReadAction'),
|
|
2175
|
+
...ReadActionProperties,
|
|
2176
|
+
}),
|
|
2177
|
+
z.object({
|
|
2178
|
+
'@type': z.literal('ListenAction'),
|
|
2179
|
+
...ListenActionProperties,
|
|
2180
|
+
}),
|
|
2181
|
+
z.object({
|
|
2182
|
+
'@type': z.literal('EatAction'),
|
|
2183
|
+
...EatActionProperties,
|
|
2184
|
+
}),
|
|
2185
|
+
z.object({
|
|
2186
|
+
'@type': z.literal('DrankAction'),
|
|
2187
|
+
...DrankActionProperties,
|
|
2188
|
+
}),
|
|
572
2189
|
z.object({
|
|
573
2190
|
'@type': z.literal('CompleteAction'),
|
|
574
2191
|
...CompleteActionProperties,
|
|
@@ -577,5 +2194,73 @@ export const BaseAndChildrenSchema = z
|
|
|
577
2194
|
'@type': z.literal('CancelAction'),
|
|
578
2195
|
...CancelActionProperties,
|
|
579
2196
|
}),
|
|
2197
|
+
z.object({
|
|
2198
|
+
'@type': z.literal('InteractAction'),
|
|
2199
|
+
...InteractActionProperties,
|
|
2200
|
+
}),
|
|
2201
|
+
z.object({
|
|
2202
|
+
'@type': z.literal('FollowAction'),
|
|
2203
|
+
...FollowActionProperties,
|
|
2204
|
+
}),
|
|
2205
|
+
z.object({
|
|
2206
|
+
'@type': z.literal('CommunicateAction'),
|
|
2207
|
+
...CommunicateActionProperties,
|
|
2208
|
+
}),
|
|
2209
|
+
z.object({
|
|
2210
|
+
'@type': z.literal('CheckInAction'),
|
|
2211
|
+
...CheckInActionProperties,
|
|
2212
|
+
}),
|
|
2213
|
+
z.object({
|
|
2214
|
+
'@type': z.literal('CallAction'),
|
|
2215
|
+
...CallActionProperties,
|
|
2216
|
+
}),
|
|
2217
|
+
z.object({
|
|
2218
|
+
'@type': z.literal('OrganizeAction'),
|
|
2219
|
+
...OrganizeActionProperties,
|
|
2220
|
+
}),
|
|
2221
|
+
z.object({
|
|
2222
|
+
'@type': z.literal('BookmarkAction'),
|
|
2223
|
+
...BookmarkActionProperties,
|
|
2224
|
+
}),
|
|
2225
|
+
z.object({
|
|
2226
|
+
'@type': z.literal('AssessAction'),
|
|
2227
|
+
...AssessActionProperties,
|
|
2228
|
+
}),
|
|
2229
|
+
z.object({
|
|
2230
|
+
'@type': z.literal('RespondAction'),
|
|
2231
|
+
...RespondActionProperties,
|
|
2232
|
+
}),
|
|
2233
|
+
z.object({
|
|
2234
|
+
'@type': z.literal('ReactAction'),
|
|
2235
|
+
...ReactActionProperties,
|
|
2236
|
+
}),
|
|
2237
|
+
z.object({
|
|
2238
|
+
'@type': z.literal('LikeAction'),
|
|
2239
|
+
...LikeActionProperties,
|
|
2240
|
+
}),
|
|
2241
|
+
z.object({
|
|
2242
|
+
'@type': z.literal('CreateAction'),
|
|
2243
|
+
...CreateActionProperties,
|
|
2244
|
+
}),
|
|
2245
|
+
z.object({
|
|
2246
|
+
'@type': z.literal('QuoteAction'),
|
|
2247
|
+
...QuoteActionProperties,
|
|
2248
|
+
}),
|
|
2249
|
+
z.object({
|
|
2250
|
+
'@type': z.literal('PublishAction'),
|
|
2251
|
+
...PublishActionProperties,
|
|
2252
|
+
}),
|
|
2253
|
+
z.object({
|
|
2254
|
+
'@type': z.literal('AnnotateAction'),
|
|
2255
|
+
...AnnotateActionProperties,
|
|
2256
|
+
}),
|
|
2257
|
+
z.object({
|
|
2258
|
+
'@type': z.literal('UpdateAction'),
|
|
2259
|
+
...UpdateActionProperties,
|
|
2260
|
+
}),
|
|
2261
|
+
z.object({
|
|
2262
|
+
'@type': z.literal('AddAction'),
|
|
2263
|
+
...AddActionProperties,
|
|
2264
|
+
}),
|
|
580
2265
|
])
|
|
581
2266
|
.superRefine(requireNodeIdentity);
|