@chronicle.app/schema 0.3.0 → 0.4.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 +74 -17
- package/chronicle.ttl +761 -580
- package/dist/datetime.d.ts +10 -0
- package/dist/datetime.js +49 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/schema.d.ts +159 -68
- package/dist/schema.js +733 -382
- package/package.json +3 -3
package/dist/schema.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
export const SCHEMA_VERSION = '0.
|
|
1
|
+
export const SCHEMA_VERSION = '0.3.0';
|
|
2
2
|
// Generated from chronicle.ttl. Do not edit; run npm run schema:generate.
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { isDateTime, isInstant } from './datetime.js';
|
|
5
|
+
const DateTimeSchema = z.union([
|
|
6
|
+
z.date(),
|
|
7
|
+
z
|
|
8
|
+
.string()
|
|
9
|
+
.refine(isDateTime, 'Not a date or time. Use EDTF, such as 2026-03-14T09:26:00Z, 2026-03-14, or 1987.'),
|
|
10
|
+
]);
|
|
4
11
|
function requireNodeIdentity(node, ctx) {
|
|
5
12
|
const hasKey = Array.isArray(node['@key']) && node['@key'].length > 0;
|
|
6
13
|
const hasId = typeof node['@id'] === 'string' && node['@id'].length > 0;
|
|
@@ -19,7 +26,12 @@ const BaseProperties = {
|
|
|
19
26
|
.optional(),
|
|
20
27
|
'@id': z.string().optional(),
|
|
21
28
|
'@asserts': z.array(z.string()).optional(),
|
|
22
|
-
'@assertedAt': z
|
|
29
|
+
'@assertedAt': z
|
|
30
|
+
.union([
|
|
31
|
+
z.date(),
|
|
32
|
+
z.string().refine(isInstant, 'Not an instant. Use a UTC time, such as 2026-03-14T09:26:00Z.'),
|
|
33
|
+
])
|
|
34
|
+
.optional(),
|
|
23
35
|
};
|
|
24
36
|
export const BaseSchema = z
|
|
25
37
|
.object({
|
|
@@ -27,17 +39,79 @@ export const BaseSchema = z
|
|
|
27
39
|
...BaseProperties,
|
|
28
40
|
})
|
|
29
41
|
.superRefine(requireNodeIdentity);
|
|
42
|
+
const EntityProperties = {
|
|
43
|
+
...BaseProperties,
|
|
44
|
+
about: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
45
|
+
alternateName: z.lazy(() => z.array(z.string())).optional(),
|
|
46
|
+
body: z.lazy(() => z.string()).optional(),
|
|
47
|
+
category: z.lazy(() => z.array(z.string())).optional(),
|
|
48
|
+
contains: z.lazy(() => z.array(MediaObjectAndChildrenSchema)).optional(),
|
|
49
|
+
description: z.lazy(() => z.string()).optional(),
|
|
50
|
+
emblem: z.lazy(() => ImageObjectAndChildrenSchema).optional(),
|
|
51
|
+
handle: z.lazy(() => z.string()).optional(),
|
|
52
|
+
inAccount: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
53
|
+
inRealm: z.lazy(() => RealmAndChildrenSchema).optional(),
|
|
54
|
+
isPartOf: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
55
|
+
location: z.lazy(() => z.union([LocationAndChildrenSchema, PlaceAndChildrenSchema])).optional(),
|
|
56
|
+
name: z.lazy(() => z.string()).optional(),
|
|
57
|
+
references: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
58
|
+
sameAs: z.lazy(() => z.array(z.union([EntityAndChildrenSchema, z.string()]))).optional(),
|
|
59
|
+
tags: z.lazy(() => z.array(z.string())).optional(),
|
|
60
|
+
url: z.lazy(() => z.string().url()).optional(),
|
|
61
|
+
};
|
|
62
|
+
export const EntitySchema = z
|
|
63
|
+
.object({
|
|
64
|
+
'@type': z.literal('Entity'),
|
|
65
|
+
...EntityProperties,
|
|
66
|
+
})
|
|
67
|
+
.superRefine(requireNodeIdentity);
|
|
68
|
+
const CreativeWorkProperties = {
|
|
69
|
+
...EntityProperties,
|
|
70
|
+
author: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
71
|
+
creator: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
72
|
+
datePublished: z.lazy(() => DateTimeSchema).optional(),
|
|
73
|
+
genre: z.lazy(() => z.array(z.string())).optional(),
|
|
74
|
+
isBasedOn: z.lazy(() => z.array(CreativeWorkAndChildrenSchema)).optional(),
|
|
75
|
+
publisher: z.lazy(() => z.array(OrganizationAndChildrenSchema)).optional(),
|
|
76
|
+
references: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
77
|
+
sourceFormat: z.lazy(() => z.string()).optional(),
|
|
78
|
+
visibility: z.lazy(() => z.string()).optional(),
|
|
79
|
+
};
|
|
80
|
+
export const CreativeWorkSchema = z
|
|
81
|
+
.object({
|
|
82
|
+
'@type': z.literal('CreativeWork'),
|
|
83
|
+
...CreativeWorkProperties,
|
|
84
|
+
})
|
|
85
|
+
.superRefine(requireNodeIdentity);
|
|
86
|
+
const SoftwareProperties = {
|
|
87
|
+
...CreativeWorkProperties,
|
|
88
|
+
};
|
|
89
|
+
export const SoftwareSchema = z
|
|
90
|
+
.object({
|
|
91
|
+
'@type': z.literal('Software'),
|
|
92
|
+
...SoftwareProperties,
|
|
93
|
+
})
|
|
94
|
+
.superRefine(requireNodeIdentity);
|
|
95
|
+
const AIModelProperties = {
|
|
96
|
+
...SoftwareProperties,
|
|
97
|
+
};
|
|
98
|
+
export const AIModelSchema = z
|
|
99
|
+
.object({
|
|
100
|
+
'@type': z.literal('AIModel'),
|
|
101
|
+
...AIModelProperties,
|
|
102
|
+
})
|
|
103
|
+
.superRefine(requireNodeIdentity);
|
|
30
104
|
const ActionProperties = {
|
|
31
105
|
...BaseProperties,
|
|
32
106
|
agent: z.lazy(() => AgentAndChildrenSchema).optional(),
|
|
33
|
-
endTime: z.lazy(() =>
|
|
34
|
-
instrument: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
107
|
+
endTime: z.lazy(() => DateTimeSchema).optional(),
|
|
108
|
+
instrument: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
35
109
|
location: z.lazy(() => z.union([LocationAndChildrenSchema, PlaceAndChildrenSchema])).optional(),
|
|
36
110
|
object: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
37
111
|
result: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
38
|
-
startTime: z.lazy(() =>
|
|
112
|
+
startTime: z.lazy(() => DateTimeSchema).optional(),
|
|
39
113
|
target: z.lazy(() => EntityAndChildrenSchema).optional(),
|
|
40
|
-
timestamp: z.lazy(() =>
|
|
114
|
+
timestamp: z.lazy(() => DateTimeSchema).optional(),
|
|
41
115
|
};
|
|
42
116
|
export const ActionSchema = z
|
|
43
117
|
.object({
|
|
@@ -45,6 +119,15 @@ export const ActionSchema = z
|
|
|
45
119
|
...ActionProperties,
|
|
46
120
|
})
|
|
47
121
|
.superRefine(requireNodeIdentity);
|
|
122
|
+
const AcceptActionProperties = {
|
|
123
|
+
...ActionProperties,
|
|
124
|
+
};
|
|
125
|
+
export const AcceptActionSchema = z
|
|
126
|
+
.object({
|
|
127
|
+
'@type': z.literal('AcceptAction'),
|
|
128
|
+
...AcceptActionProperties,
|
|
129
|
+
})
|
|
130
|
+
.superRefine(requireNodeIdentity);
|
|
48
131
|
const UpdateActionProperties = {
|
|
49
132
|
...ActionProperties,
|
|
50
133
|
};
|
|
@@ -63,30 +146,6 @@ export const AddActionSchema = z
|
|
|
63
146
|
...AddActionProperties,
|
|
64
147
|
})
|
|
65
148
|
.superRefine(requireNodeIdentity);
|
|
66
|
-
const EntityProperties = {
|
|
67
|
-
...BaseProperties,
|
|
68
|
-
about: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
69
|
-
body: z.lazy(() => z.string()).optional(),
|
|
70
|
-
category: z.lazy(() => z.array(z.string())).optional(),
|
|
71
|
-
contains: z.lazy(() => z.array(MediaObjectAndChildrenSchema)).optional(),
|
|
72
|
-
description: z.lazy(() => z.string()).optional(),
|
|
73
|
-
emblem: z.lazy(() => ImageObjectAndChildrenSchema).optional(),
|
|
74
|
-
handle: z.lazy(() => z.string()).optional(),
|
|
75
|
-
inRealm: z.lazy(() => RealmAndChildrenSchema).optional(),
|
|
76
|
-
isPartOf: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
77
|
-
location: z.lazy(() => z.union([LocationAndChildrenSchema, PlaceAndChildrenSchema])).optional(),
|
|
78
|
-
name: z.lazy(() => z.string()).optional(),
|
|
79
|
-
references: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
80
|
-
sameAs: z.lazy(() => z.array(z.union([EntityAndChildrenSchema, z.string()]))).optional(),
|
|
81
|
-
tags: z.lazy(() => z.array(z.string())).optional(),
|
|
82
|
-
url: z.lazy(() => z.string().url()).optional(),
|
|
83
|
-
};
|
|
84
|
-
export const EntitySchema = z
|
|
85
|
-
.object({
|
|
86
|
-
'@type': z.literal('Entity'),
|
|
87
|
-
...EntityProperties,
|
|
88
|
-
})
|
|
89
|
-
.superRefine(requireNodeIdentity);
|
|
90
149
|
const AgentProperties = {
|
|
91
150
|
...EntityProperties,
|
|
92
151
|
memberOf: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
@@ -115,23 +174,6 @@ export const AnnotateActionSchema = z
|
|
|
115
174
|
...AnnotateActionProperties,
|
|
116
175
|
})
|
|
117
176
|
.superRefine(requireNodeIdentity);
|
|
118
|
-
const CreativeWorkProperties = {
|
|
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
177
|
const ArticleProperties = {
|
|
136
178
|
...CreativeWorkProperties,
|
|
137
179
|
};
|
|
@@ -167,6 +209,7 @@ const AudioObjectProperties = {
|
|
|
167
209
|
artist: z.lazy(() => z.array(MusicGroupAndChildrenSchema)).optional(),
|
|
168
210
|
duration: z.lazy(() => z.string()).optional(),
|
|
169
211
|
genre: z.lazy(() => z.array(z.string())).optional(),
|
|
212
|
+
transcript: z.lazy(() => z.string()).optional(),
|
|
170
213
|
};
|
|
171
214
|
export const AudioObjectSchema = z
|
|
172
215
|
.object({
|
|
@@ -202,6 +245,24 @@ export const BookmarkActionSchema = z
|
|
|
202
245
|
...BookmarkActionProperties,
|
|
203
246
|
})
|
|
204
247
|
.superRefine(requireNodeIdentity);
|
|
248
|
+
const CollectionProperties = {
|
|
249
|
+
...CreativeWorkProperties,
|
|
250
|
+
};
|
|
251
|
+
export const CollectionSchema = z
|
|
252
|
+
.object({
|
|
253
|
+
'@type': z.literal('Collection'),
|
|
254
|
+
...CollectionProperties,
|
|
255
|
+
})
|
|
256
|
+
.superRefine(requireNodeIdentity);
|
|
257
|
+
const CalendarProperties = {
|
|
258
|
+
...CollectionProperties,
|
|
259
|
+
};
|
|
260
|
+
export const CalendarSchema = z
|
|
261
|
+
.object({
|
|
262
|
+
'@type': z.literal('Calendar'),
|
|
263
|
+
...CalendarProperties,
|
|
264
|
+
})
|
|
265
|
+
.superRefine(requireNodeIdentity);
|
|
205
266
|
const InteractActionProperties = {
|
|
206
267
|
...ActionProperties,
|
|
207
268
|
};
|
|
@@ -232,6 +293,8 @@ export const CallActionSchema = z
|
|
|
232
293
|
const SessionProperties = {
|
|
233
294
|
...EntityProperties,
|
|
234
295
|
references: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
296
|
+
scheduledEnd: z.lazy(() => DateTimeSchema).optional(),
|
|
297
|
+
scheduledStart: z.lazy(() => DateTimeSchema).optional(),
|
|
235
298
|
subject: z.lazy(() => z.array(EntityAndChildrenSchema)).optional(),
|
|
236
299
|
workingDirectory: z.lazy(() => DirectoryAndChildrenSchema).optional(),
|
|
237
300
|
};
|
|
@@ -288,6 +351,15 @@ export const CategorySchema = z
|
|
|
288
351
|
...CategoryProperties,
|
|
289
352
|
})
|
|
290
353
|
.superRefine(requireNodeIdentity);
|
|
354
|
+
const ChangesetProperties = {
|
|
355
|
+
...CreativeWorkProperties,
|
|
356
|
+
};
|
|
357
|
+
export const ChangesetSchema = z
|
|
358
|
+
.object({
|
|
359
|
+
'@type': z.literal('Changeset'),
|
|
360
|
+
...ChangesetProperties,
|
|
361
|
+
})
|
|
362
|
+
.superRefine(requireNodeIdentity);
|
|
291
363
|
const ChannelProperties = {
|
|
292
364
|
...CreativeWorkProperties,
|
|
293
365
|
member: z
|
|
@@ -309,15 +381,6 @@ export const CheckInActionSchema = z
|
|
|
309
381
|
...CheckInActionProperties,
|
|
310
382
|
})
|
|
311
383
|
.superRefine(requireNodeIdentity);
|
|
312
|
-
const CollectionProperties = {
|
|
313
|
-
...CreativeWorkProperties,
|
|
314
|
-
};
|
|
315
|
-
export const CollectionSchema = z
|
|
316
|
-
.object({
|
|
317
|
-
'@type': z.literal('Collection'),
|
|
318
|
-
...CollectionProperties,
|
|
319
|
-
})
|
|
320
|
-
.superRefine(requireNodeIdentity);
|
|
321
384
|
const CommandProperties = {
|
|
322
385
|
...EntityProperties,
|
|
323
386
|
};
|
|
@@ -419,13 +482,13 @@ export const DocumentObjectSchema = z
|
|
|
419
482
|
...DocumentObjectProperties,
|
|
420
483
|
})
|
|
421
484
|
.superRefine(requireNodeIdentity);
|
|
422
|
-
const
|
|
485
|
+
const DrinkActionProperties = {
|
|
423
486
|
...ConsumeActionProperties,
|
|
424
487
|
};
|
|
425
|
-
export const
|
|
488
|
+
export const DrinkActionSchema = z
|
|
426
489
|
.object({
|
|
427
|
-
'@type': z.literal('
|
|
428
|
-
...
|
|
490
|
+
'@type': z.literal('DrinkAction'),
|
|
491
|
+
...DrinkActionProperties,
|
|
429
492
|
})
|
|
430
493
|
.superRefine(requireNodeIdentity);
|
|
431
494
|
const EatActionProperties = {
|
|
@@ -469,9 +532,10 @@ export const EpubCfiSelectorSchema = z
|
|
|
469
532
|
.superRefine(requireNodeIdentity);
|
|
470
533
|
const EventProperties = {
|
|
471
534
|
...EntityProperties,
|
|
472
|
-
|
|
535
|
+
attendee: z.lazy(() => z.array(AgentAndChildrenSchema)).optional(),
|
|
473
536
|
location: z.lazy(() => z.union([LocationAndChildrenSchema, PlaceAndChildrenSchema])).optional(),
|
|
474
|
-
|
|
537
|
+
scheduledEnd: z.lazy(() => DateTimeSchema).optional(),
|
|
538
|
+
scheduledStart: z.lazy(() => DateTimeSchema).optional(),
|
|
475
539
|
};
|
|
476
540
|
export const EventSchema = z
|
|
477
541
|
.object({
|
|
@@ -527,20 +591,6 @@ export const ImageObjectSchema = z
|
|
|
527
591
|
...ImageObjectProperties,
|
|
528
592
|
})
|
|
529
593
|
.superRefine(requireNodeIdentity);
|
|
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
594
|
const JoinActionProperties = {
|
|
545
595
|
...ExperienceActionProperties,
|
|
546
596
|
};
|
|
@@ -598,6 +648,11 @@ export const ListenActionSchema = z
|
|
|
598
648
|
...ListenActionProperties,
|
|
599
649
|
})
|
|
600
650
|
.superRefine(requireNodeIdentity);
|
|
651
|
+
const StructuredValueProperties = {};
|
|
652
|
+
export const StructuredValueSchema = z.object({
|
|
653
|
+
'@type': z.literal('StructuredValue'),
|
|
654
|
+
...StructuredValueProperties,
|
|
655
|
+
});
|
|
601
656
|
const LocationProperties = {
|
|
602
657
|
...StructuredValueProperties,
|
|
603
658
|
address: z.lazy(() => z.string()).optional(),
|
|
@@ -648,6 +703,15 @@ export const MessageActionSchema = z
|
|
|
648
703
|
...MessageActionProperties,
|
|
649
704
|
})
|
|
650
705
|
.superRefine(requireNodeIdentity);
|
|
706
|
+
const MoveActionProperties = {
|
|
707
|
+
...ActionProperties,
|
|
708
|
+
};
|
|
709
|
+
export const MoveActionSchema = z
|
|
710
|
+
.object({
|
|
711
|
+
'@type': z.literal('MoveAction'),
|
|
712
|
+
...MoveActionProperties,
|
|
713
|
+
})
|
|
714
|
+
.superRefine(requireNodeIdentity);
|
|
651
715
|
const MusicAlbumProperties = {
|
|
652
716
|
...CreativeWorkProperties,
|
|
653
717
|
artist: z.lazy(() => z.array(MusicGroupAndChildrenSchema)).optional(),
|
|
@@ -700,6 +764,24 @@ export const MusicRecordingSchema = z
|
|
|
700
764
|
...MusicRecordingProperties,
|
|
701
765
|
})
|
|
702
766
|
.superRefine(requireNodeIdentity);
|
|
767
|
+
const NavigateActionProperties = {
|
|
768
|
+
...MoveActionProperties,
|
|
769
|
+
};
|
|
770
|
+
export const NavigateActionSchema = z
|
|
771
|
+
.object({
|
|
772
|
+
'@type': z.literal('NavigateAction'),
|
|
773
|
+
...NavigateActionProperties,
|
|
774
|
+
})
|
|
775
|
+
.superRefine(requireNodeIdentity);
|
|
776
|
+
const OperatingSystemProperties = {
|
|
777
|
+
...SoftwareProperties,
|
|
778
|
+
};
|
|
779
|
+
export const OperatingSystemSchema = z
|
|
780
|
+
.object({
|
|
781
|
+
'@type': z.literal('OperatingSystem'),
|
|
782
|
+
...OperatingSystemProperties,
|
|
783
|
+
})
|
|
784
|
+
.superRefine(requireNodeIdentity);
|
|
703
785
|
const PageSelectorProperties = {
|
|
704
786
|
...SelectorProperties,
|
|
705
787
|
};
|
|
@@ -718,6 +800,15 @@ export const PersonSchema = z
|
|
|
718
800
|
...PersonProperties,
|
|
719
801
|
})
|
|
720
802
|
.superRefine(requireNodeIdentity);
|
|
803
|
+
const PhotographActionProperties = {
|
|
804
|
+
...CreateActionProperties,
|
|
805
|
+
};
|
|
806
|
+
export const PhotographActionSchema = z
|
|
807
|
+
.object({
|
|
808
|
+
'@type': z.literal('PhotographAction'),
|
|
809
|
+
...PhotographActionProperties,
|
|
810
|
+
})
|
|
811
|
+
.superRefine(requireNodeIdentity);
|
|
721
812
|
const PlaceProperties = {
|
|
722
813
|
...EntityProperties,
|
|
723
814
|
};
|
|
@@ -739,6 +830,7 @@ export const PlanActionSchema = z
|
|
|
739
830
|
const PodcastEpisodeProperties = {
|
|
740
831
|
...CreativeWorkProperties,
|
|
741
832
|
duration: z.lazy(() => z.string()).optional(),
|
|
833
|
+
transcript: z.lazy(() => z.string()).optional(),
|
|
742
834
|
};
|
|
743
835
|
export const PodcastEpisodeSchema = z
|
|
744
836
|
.object({
|
|
@@ -755,6 +847,15 @@ export const PostSchema = z
|
|
|
755
847
|
...PostProperties,
|
|
756
848
|
})
|
|
757
849
|
.superRefine(requireNodeIdentity);
|
|
850
|
+
const ProductModelProperties = {
|
|
851
|
+
...EntityProperties,
|
|
852
|
+
};
|
|
853
|
+
export const ProductModelSchema = z
|
|
854
|
+
.object({
|
|
855
|
+
'@type': z.literal('ProductModel'),
|
|
856
|
+
...ProductModelProperties,
|
|
857
|
+
})
|
|
858
|
+
.superRefine(requireNodeIdentity);
|
|
758
859
|
const ProjectProperties = {
|
|
759
860
|
...CollectionProperties,
|
|
760
861
|
};
|
|
@@ -821,6 +922,24 @@ export const RealmSchema = z
|
|
|
821
922
|
...RealmProperties,
|
|
822
923
|
})
|
|
823
924
|
.superRefine(requireNodeIdentity);
|
|
925
|
+
const RecordActionProperties = {
|
|
926
|
+
...CreateActionProperties,
|
|
927
|
+
};
|
|
928
|
+
export const RecordActionSchema = z
|
|
929
|
+
.object({
|
|
930
|
+
'@type': z.literal('RecordAction'),
|
|
931
|
+
...RecordActionProperties,
|
|
932
|
+
})
|
|
933
|
+
.superRefine(requireNodeIdentity);
|
|
934
|
+
const RejectActionProperties = {
|
|
935
|
+
...ActionProperties,
|
|
936
|
+
};
|
|
937
|
+
export const RejectActionSchema = z
|
|
938
|
+
.object({
|
|
939
|
+
'@type': z.literal('RejectAction'),
|
|
940
|
+
...RejectActionProperties,
|
|
941
|
+
})
|
|
942
|
+
.superRefine(requireNodeIdentity);
|
|
824
943
|
const RelationshipProperties = {
|
|
825
944
|
...SessionProperties,
|
|
826
945
|
role: z.lazy(() => z.string()).optional(),
|
|
@@ -831,6 +950,15 @@ export const RelationshipSchema = z
|
|
|
831
950
|
...RelationshipProperties,
|
|
832
951
|
})
|
|
833
952
|
.superRefine(requireNodeIdentity);
|
|
953
|
+
const RepositoryProperties = {
|
|
954
|
+
...CreativeWorkProperties,
|
|
955
|
+
};
|
|
956
|
+
export const RepositorySchema = z
|
|
957
|
+
.object({
|
|
958
|
+
'@type': z.literal('Repository'),
|
|
959
|
+
...RepositoryProperties,
|
|
960
|
+
})
|
|
961
|
+
.superRefine(requireNodeIdentity);
|
|
834
962
|
const RespondActionProperties = {
|
|
835
963
|
...AssessActionProperties,
|
|
836
964
|
};
|
|
@@ -840,6 +968,15 @@ export const RespondActionSchema = z
|
|
|
840
968
|
...RespondActionProperties,
|
|
841
969
|
})
|
|
842
970
|
.superRefine(requireNodeIdentity);
|
|
971
|
+
const RevisionProperties = {
|
|
972
|
+
...CreativeWorkProperties,
|
|
973
|
+
};
|
|
974
|
+
export const RevisionSchema = z
|
|
975
|
+
.object({
|
|
976
|
+
'@type': z.literal('Revision'),
|
|
977
|
+
...RevisionProperties,
|
|
978
|
+
})
|
|
979
|
+
.superRefine(requireNodeIdentity);
|
|
843
980
|
const SoftwareAgentProperties = {
|
|
844
981
|
...AgentProperties,
|
|
845
982
|
};
|
|
@@ -850,7 +987,7 @@ export const SoftwareAgentSchema = z
|
|
|
850
987
|
})
|
|
851
988
|
.superRefine(requireNodeIdentity);
|
|
852
989
|
const SoftwareApplicationProperties = {
|
|
853
|
-
...
|
|
990
|
+
...SoftwareProperties,
|
|
854
991
|
};
|
|
855
992
|
export const SoftwareApplicationSchema = z
|
|
856
993
|
.object({
|
|
@@ -858,6 +995,15 @@ export const SoftwareApplicationSchema = z
|
|
|
858
995
|
...SoftwareApplicationProperties,
|
|
859
996
|
})
|
|
860
997
|
.superRefine(requireNodeIdentity);
|
|
998
|
+
const SoftwareSourceCodeProperties = {
|
|
999
|
+
...CreativeWorkProperties,
|
|
1000
|
+
};
|
|
1001
|
+
export const SoftwareSourceCodeSchema = z
|
|
1002
|
+
.object({
|
|
1003
|
+
'@type': z.literal('SoftwareSourceCode'),
|
|
1004
|
+
...SoftwareSourceCodeProperties,
|
|
1005
|
+
})
|
|
1006
|
+
.superRefine(requireNodeIdentity);
|
|
861
1007
|
const TagProperties = {
|
|
862
1008
|
...EntityProperties,
|
|
863
1009
|
color: z.lazy(() => z.string()).optional(),
|
|
@@ -918,6 +1064,7 @@ const VideoObjectProperties = {
|
|
|
918
1064
|
...MediaObjectProperties,
|
|
919
1065
|
duration: z.lazy(() => z.string()).optional(),
|
|
920
1066
|
height: z.lazy(() => z.number()).optional(),
|
|
1067
|
+
transcript: z.lazy(() => z.string()).optional(),
|
|
921
1068
|
width: z.lazy(() => z.number()).optional(),
|
|
922
1069
|
};
|
|
923
1070
|
export const VideoObjectSchema = z
|
|
@@ -963,10 +1110,15 @@ export const ThreadAndChildrenSchema = ThreadSchema;
|
|
|
963
1110
|
export const TenureAndChildrenSchema = TenureSchema;
|
|
964
1111
|
export const TaskAndChildrenSchema = TaskSchema;
|
|
965
1112
|
export const TagAndChildrenSchema = TagSchema;
|
|
1113
|
+
export const SoftwareSourceCodeAndChildrenSchema = SoftwareSourceCodeSchema;
|
|
966
1114
|
export const SoftwareApplicationAndChildrenSchema = SoftwareApplicationSchema;
|
|
967
1115
|
export const SoftwareAgentAndChildrenSchema = SoftwareAgentSchema;
|
|
1116
|
+
export const RevisionAndChildrenSchema = RevisionSchema;
|
|
968
1117
|
export const RespondActionAndChildrenSchema = RespondActionSchema;
|
|
1118
|
+
export const RepositoryAndChildrenSchema = RepositorySchema;
|
|
969
1119
|
export const RelationshipAndChildrenSchema = RelationshipSchema;
|
|
1120
|
+
export const RejectActionAndChildrenSchema = RejectActionSchema;
|
|
1121
|
+
export const RecordActionAndChildrenSchema = RecordActionSchema;
|
|
970
1122
|
export const RealmAndChildrenSchema = RealmSchema;
|
|
971
1123
|
export const ReadActionAndChildrenSchema = ReadActionSchema;
|
|
972
1124
|
export const QuoteActionAndChildrenSchema = QuoteActionSchema;
|
|
@@ -974,6 +1126,7 @@ export const QuotationAndChildrenSchema = QuotationSchema;
|
|
|
974
1126
|
export const QueryAndChildrenSchema = QuerySchema;
|
|
975
1127
|
export const PublishActionAndChildrenSchema = PublishActionSchema;
|
|
976
1128
|
export const ProjectAndChildrenSchema = ProjectSchema;
|
|
1129
|
+
export const ProductModelAndChildrenSchema = ProductModelSchema;
|
|
977
1130
|
export const PostAndChildrenSchema = PostSchema;
|
|
978
1131
|
export const PodcastEpisodeAndChildrenSchema = PodcastEpisodeSchema;
|
|
979
1132
|
export const PlanActionAndChildrenSchema = PlanActionSchema;
|
|
@@ -989,8 +1142,11 @@ export const PlaceAndChildrenSchema = z
|
|
|
989
1142
|
}),
|
|
990
1143
|
])
|
|
991
1144
|
.superRefine(requireNodeIdentity);
|
|
1145
|
+
export const PhotographActionAndChildrenSchema = PhotographActionSchema;
|
|
992
1146
|
export const PersonAndChildrenSchema = PersonSchema;
|
|
993
1147
|
export const PageSelectorAndChildrenSchema = PageSelectorSchema;
|
|
1148
|
+
export const OperatingSystemAndChildrenSchema = OperatingSystemSchema;
|
|
1149
|
+
export const NavigateActionAndChildrenSchema = NavigateActionSchema;
|
|
994
1150
|
export const MusicRecordingAndChildrenSchema = MusicRecordingSchema;
|
|
995
1151
|
export const MusicGroupAndChildrenSchema = MusicGroupSchema;
|
|
996
1152
|
export const PerformingGroupAndChildrenSchema = z
|
|
@@ -1022,11 +1178,33 @@ export const OrganizationAndChildrenSchema = z
|
|
|
1022
1178
|
])
|
|
1023
1179
|
.superRefine(requireNodeIdentity);
|
|
1024
1180
|
export const MusicAlbumAndChildrenSchema = MusicAlbumSchema;
|
|
1181
|
+
export const MoveActionAndChildrenSchema = z
|
|
1182
|
+
.discriminatedUnion('@type', [
|
|
1183
|
+
z.object({
|
|
1184
|
+
'@type': z.literal('MoveAction'),
|
|
1185
|
+
...MoveActionProperties,
|
|
1186
|
+
}),
|
|
1187
|
+
z.object({
|
|
1188
|
+
'@type': z.literal('NavigateAction'),
|
|
1189
|
+
...NavigateActionProperties,
|
|
1190
|
+
}),
|
|
1191
|
+
])
|
|
1192
|
+
.superRefine(requireNodeIdentity);
|
|
1025
1193
|
export const MessageActionAndChildrenSchema = MessageActionSchema;
|
|
1026
1194
|
export const MessageAndChildrenSchema = MessageSchema;
|
|
1027
1195
|
export const MembershipAndChildrenSchema = MembershipSchema;
|
|
1028
1196
|
export const MealAndChildrenSchema = MealSchema;
|
|
1029
1197
|
export const LocationAndChildrenSchema = LocationSchema;
|
|
1198
|
+
export const StructuredValueAndChildrenSchema = z.discriminatedUnion('@type', [
|
|
1199
|
+
z.object({
|
|
1200
|
+
'@type': z.literal('StructuredValue'),
|
|
1201
|
+
...StructuredValueProperties,
|
|
1202
|
+
}),
|
|
1203
|
+
z.object({
|
|
1204
|
+
'@type': z.literal('Location'),
|
|
1205
|
+
...LocationProperties,
|
|
1206
|
+
}),
|
|
1207
|
+
]);
|
|
1030
1208
|
export const ListenActionAndChildrenSchema = ListenActionSchema;
|
|
1031
1209
|
export const LikeActionAndChildrenSchema = LikeActionSchema;
|
|
1032
1210
|
export const ReactActionAndChildrenSchema = z
|
|
@@ -1044,21 +1222,6 @@ export const ReactActionAndChildrenSchema = z
|
|
|
1044
1222
|
export const LeaveActionAndChildrenSchema = LeaveActionSchema;
|
|
1045
1223
|
export const JourneyAndChildrenSchema = JourneySchema;
|
|
1046
1224
|
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
|
-
]);
|
|
1062
1225
|
export const ImageObjectAndChildrenSchema = ImageObjectSchema;
|
|
1063
1226
|
export const FollowActionAndChildrenSchema = FollowActionSchema;
|
|
1064
1227
|
export const FindActionAndChildrenSchema = FindActionSchema;
|
|
@@ -1099,7 +1262,7 @@ export const SelectorAndChildrenSchema = z
|
|
|
1099
1262
|
.superRefine(requireNodeIdentity);
|
|
1100
1263
|
export const EnrollmentAndChildrenSchema = EnrollmentSchema;
|
|
1101
1264
|
export const EatActionAndChildrenSchema = EatActionSchema;
|
|
1102
|
-
export const
|
|
1265
|
+
export const DrinkActionAndChildrenSchema = DrinkActionSchema;
|
|
1103
1266
|
export const DocumentObjectAndChildrenSchema = DocumentObjectSchema;
|
|
1104
1267
|
export const DirectoryAndChildrenSchema = DirectorySchema;
|
|
1105
1268
|
export const DeviceSessionAndChildrenSchema = DeviceSessionSchema;
|
|
@@ -1144,8 +1307,8 @@ export const ConsumeActionAndChildrenSchema = z
|
|
|
1144
1307
|
...EatActionProperties,
|
|
1145
1308
|
}),
|
|
1146
1309
|
z.object({
|
|
1147
|
-
'@type': z.literal('
|
|
1148
|
-
...
|
|
1310
|
+
'@type': z.literal('DrinkAction'),
|
|
1311
|
+
...DrinkActionProperties,
|
|
1149
1312
|
}),
|
|
1150
1313
|
])
|
|
1151
1314
|
.superRefine(requireNodeIdentity);
|
|
@@ -1164,28 +1327,9 @@ export const ResponseAndChildrenSchema = z
|
|
|
1164
1327
|
])
|
|
1165
1328
|
.superRefine(requireNodeIdentity);
|
|
1166
1329
|
export const CommandAndChildrenSchema = CommandSchema;
|
|
1167
|
-
export const CollectionAndChildrenSchema = z
|
|
1168
|
-
.discriminatedUnion('@type', [
|
|
1169
|
-
z.object({
|
|
1170
|
-
'@type': z.literal('Collection'),
|
|
1171
|
-
...CollectionProperties,
|
|
1172
|
-
}),
|
|
1173
|
-
z.object({
|
|
1174
|
-
'@type': z.literal('Thread'),
|
|
1175
|
-
...ThreadProperties,
|
|
1176
|
-
}),
|
|
1177
|
-
z.object({
|
|
1178
|
-
'@type': z.literal('Project'),
|
|
1179
|
-
...ProjectProperties,
|
|
1180
|
-
}),
|
|
1181
|
-
z.object({
|
|
1182
|
-
'@type': z.literal('Directory'),
|
|
1183
|
-
...DirectoryProperties,
|
|
1184
|
-
}),
|
|
1185
|
-
])
|
|
1186
|
-
.superRefine(requireNodeIdentity);
|
|
1187
1330
|
export const CheckInActionAndChildrenSchema = CheckInActionSchema;
|
|
1188
1331
|
export const ChannelAndChildrenSchema = ChannelSchema;
|
|
1332
|
+
export const ChangesetAndChildrenSchema = ChangesetSchema;
|
|
1189
1333
|
export const CategoryAndChildrenSchema = CategorySchema;
|
|
1190
1334
|
export const DefinedTermAndChildrenSchema = z
|
|
1191
1335
|
.discriminatedUnion('@type', [
|
|
@@ -1302,26 +1446,51 @@ export const InteractActionAndChildrenSchema = z
|
|
|
1302
1446
|
}),
|
|
1303
1447
|
])
|
|
1304
1448
|
.superRefine(requireNodeIdentity);
|
|
1305
|
-
export const
|
|
1306
|
-
export const
|
|
1449
|
+
export const CalendarAndChildrenSchema = CalendarSchema;
|
|
1450
|
+
export const CollectionAndChildrenSchema = z
|
|
1307
1451
|
.discriminatedUnion('@type', [
|
|
1308
1452
|
z.object({
|
|
1309
|
-
'@type': z.literal('
|
|
1310
|
-
...
|
|
1453
|
+
'@type': z.literal('Collection'),
|
|
1454
|
+
...CollectionProperties,
|
|
1311
1455
|
}),
|
|
1312
1456
|
z.object({
|
|
1313
|
-
'@type': z.literal('
|
|
1314
|
-
...
|
|
1457
|
+
'@type': z.literal('Thread'),
|
|
1458
|
+
...ThreadProperties,
|
|
1315
1459
|
}),
|
|
1316
|
-
])
|
|
1317
|
-
.superRefine(requireNodeIdentity);
|
|
1318
|
-
export const BookAndChildrenSchema = BookSchema;
|
|
1319
|
-
export const AudioObjectAndChildrenSchema = AudioObjectSchema;
|
|
1320
|
-
export const MediaObjectAndChildrenSchema = z
|
|
1321
|
-
.discriminatedUnion('@type', [
|
|
1322
1460
|
z.object({
|
|
1323
|
-
'@type': z.literal('
|
|
1324
|
-
...
|
|
1461
|
+
'@type': z.literal('Project'),
|
|
1462
|
+
...ProjectProperties,
|
|
1463
|
+
}),
|
|
1464
|
+
z.object({
|
|
1465
|
+
'@type': z.literal('Directory'),
|
|
1466
|
+
...DirectoryProperties,
|
|
1467
|
+
}),
|
|
1468
|
+
z.object({
|
|
1469
|
+
'@type': z.literal('Calendar'),
|
|
1470
|
+
...CalendarProperties,
|
|
1471
|
+
}),
|
|
1472
|
+
])
|
|
1473
|
+
.superRefine(requireNodeIdentity);
|
|
1474
|
+
export const BookmarkActionAndChildrenSchema = BookmarkActionSchema;
|
|
1475
|
+
export const OrganizeActionAndChildrenSchema = z
|
|
1476
|
+
.discriminatedUnion('@type', [
|
|
1477
|
+
z.object({
|
|
1478
|
+
'@type': z.literal('OrganizeAction'),
|
|
1479
|
+
...OrganizeActionProperties,
|
|
1480
|
+
}),
|
|
1481
|
+
z.object({
|
|
1482
|
+
'@type': z.literal('BookmarkAction'),
|
|
1483
|
+
...BookmarkActionProperties,
|
|
1484
|
+
}),
|
|
1485
|
+
])
|
|
1486
|
+
.superRefine(requireNodeIdentity);
|
|
1487
|
+
export const BookAndChildrenSchema = BookSchema;
|
|
1488
|
+
export const AudioObjectAndChildrenSchema = AudioObjectSchema;
|
|
1489
|
+
export const MediaObjectAndChildrenSchema = z
|
|
1490
|
+
.discriminatedUnion('@type', [
|
|
1491
|
+
z.object({
|
|
1492
|
+
'@type': z.literal('MediaObject'),
|
|
1493
|
+
...MediaObjectProperties,
|
|
1325
1494
|
}),
|
|
1326
1495
|
z.object({
|
|
1327
1496
|
'@type': z.literal('VideoObject'),
|
|
@@ -1362,6 +1531,274 @@ export const AssessActionAndChildrenSchema = z
|
|
|
1362
1531
|
])
|
|
1363
1532
|
.superRefine(requireNodeIdentity);
|
|
1364
1533
|
export const ArticleAndChildrenSchema = ArticleSchema;
|
|
1534
|
+
export const AnnotateActionAndChildrenSchema = AnnotateActionSchema;
|
|
1535
|
+
export const CreateActionAndChildrenSchema = z
|
|
1536
|
+
.discriminatedUnion('@type', [
|
|
1537
|
+
z.object({
|
|
1538
|
+
'@type': z.literal('CreateAction'),
|
|
1539
|
+
...CreateActionProperties,
|
|
1540
|
+
}),
|
|
1541
|
+
z.object({
|
|
1542
|
+
'@type': z.literal('RecordAction'),
|
|
1543
|
+
...RecordActionProperties,
|
|
1544
|
+
}),
|
|
1545
|
+
z.object({
|
|
1546
|
+
'@type': z.literal('QuoteAction'),
|
|
1547
|
+
...QuoteActionProperties,
|
|
1548
|
+
}),
|
|
1549
|
+
z.object({
|
|
1550
|
+
'@type': z.literal('PublishAction'),
|
|
1551
|
+
...PublishActionProperties,
|
|
1552
|
+
}),
|
|
1553
|
+
z.object({
|
|
1554
|
+
'@type': z.literal('PhotographAction'),
|
|
1555
|
+
...PhotographActionProperties,
|
|
1556
|
+
}),
|
|
1557
|
+
z.object({
|
|
1558
|
+
'@type': z.literal('AnnotateAction'),
|
|
1559
|
+
...AnnotateActionProperties,
|
|
1560
|
+
}),
|
|
1561
|
+
])
|
|
1562
|
+
.superRefine(requireNodeIdentity);
|
|
1563
|
+
export const AgentAndChildrenSchema = z
|
|
1564
|
+
.discriminatedUnion('@type', [
|
|
1565
|
+
z.object({
|
|
1566
|
+
'@type': z.literal('Agent'),
|
|
1567
|
+
...AgentProperties,
|
|
1568
|
+
}),
|
|
1569
|
+
z.object({
|
|
1570
|
+
'@type': z.literal('SoftwareAgent'),
|
|
1571
|
+
...SoftwareAgentProperties,
|
|
1572
|
+
}),
|
|
1573
|
+
z.object({
|
|
1574
|
+
'@type': z.literal('Person'),
|
|
1575
|
+
...PersonProperties,
|
|
1576
|
+
}),
|
|
1577
|
+
z.object({
|
|
1578
|
+
'@type': z.literal('Organization'),
|
|
1579
|
+
...OrganizationProperties,
|
|
1580
|
+
}),
|
|
1581
|
+
z.object({
|
|
1582
|
+
'@type': z.literal('PerformingGroup'),
|
|
1583
|
+
...PerformingGroupProperties,
|
|
1584
|
+
}),
|
|
1585
|
+
z.object({
|
|
1586
|
+
'@type': z.literal('MusicGroup'),
|
|
1587
|
+
...MusicGroupProperties,
|
|
1588
|
+
}),
|
|
1589
|
+
])
|
|
1590
|
+
.superRefine(requireNodeIdentity);
|
|
1591
|
+
export const AddActionAndChildrenSchema = AddActionSchema;
|
|
1592
|
+
export const UpdateActionAndChildrenSchema = z
|
|
1593
|
+
.discriminatedUnion('@type', [
|
|
1594
|
+
z.object({
|
|
1595
|
+
'@type': z.literal('UpdateAction'),
|
|
1596
|
+
...UpdateActionProperties,
|
|
1597
|
+
}),
|
|
1598
|
+
z.object({
|
|
1599
|
+
'@type': z.literal('AddAction'),
|
|
1600
|
+
...AddActionProperties,
|
|
1601
|
+
}),
|
|
1602
|
+
])
|
|
1603
|
+
.superRefine(requireNodeIdentity);
|
|
1604
|
+
export const AcceptActionAndChildrenSchema = AcceptActionSchema;
|
|
1605
|
+
export const ActionAndChildrenSchema = z
|
|
1606
|
+
.discriminatedUnion('@type', [
|
|
1607
|
+
z.object({
|
|
1608
|
+
'@type': z.literal('Action'),
|
|
1609
|
+
...ActionProperties,
|
|
1610
|
+
}),
|
|
1611
|
+
z.object({
|
|
1612
|
+
'@type': z.literal('VisitAction'),
|
|
1613
|
+
...VisitActionProperties,
|
|
1614
|
+
}),
|
|
1615
|
+
z.object({
|
|
1616
|
+
'@type': z.literal('TravelAction'),
|
|
1617
|
+
...TravelActionProperties,
|
|
1618
|
+
}),
|
|
1619
|
+
z.object({
|
|
1620
|
+
'@type': z.literal('RejectAction'),
|
|
1621
|
+
...RejectActionProperties,
|
|
1622
|
+
}),
|
|
1623
|
+
z.object({
|
|
1624
|
+
'@type': z.literal('PlanAction'),
|
|
1625
|
+
...PlanActionProperties,
|
|
1626
|
+
}),
|
|
1627
|
+
z.object({
|
|
1628
|
+
'@type': z.literal('MoveAction'),
|
|
1629
|
+
...MoveActionProperties,
|
|
1630
|
+
}),
|
|
1631
|
+
z.object({
|
|
1632
|
+
'@type': z.literal('NavigateAction'),
|
|
1633
|
+
...NavigateActionProperties,
|
|
1634
|
+
}),
|
|
1635
|
+
z.object({
|
|
1636
|
+
'@type': z.literal('MessageAction'),
|
|
1637
|
+
...MessageActionProperties,
|
|
1638
|
+
}),
|
|
1639
|
+
z.object({
|
|
1640
|
+
'@type': z.literal('FindAction'),
|
|
1641
|
+
...FindActionProperties,
|
|
1642
|
+
}),
|
|
1643
|
+
z.object({
|
|
1644
|
+
'@type': z.literal('ExperienceAction'),
|
|
1645
|
+
...ExperienceActionProperties,
|
|
1646
|
+
}),
|
|
1647
|
+
z.object({
|
|
1648
|
+
'@type': z.literal('LeaveAction'),
|
|
1649
|
+
...LeaveActionProperties,
|
|
1650
|
+
}),
|
|
1651
|
+
z.object({
|
|
1652
|
+
'@type': z.literal('JoinAction'),
|
|
1653
|
+
...JoinActionProperties,
|
|
1654
|
+
}),
|
|
1655
|
+
z.object({
|
|
1656
|
+
'@type': z.literal('ExecuteAction'),
|
|
1657
|
+
...ExecuteActionProperties,
|
|
1658
|
+
}),
|
|
1659
|
+
z.object({
|
|
1660
|
+
'@type': z.literal('DeleteAction'),
|
|
1661
|
+
...DeleteActionProperties,
|
|
1662
|
+
}),
|
|
1663
|
+
z.object({
|
|
1664
|
+
'@type': z.literal('ConsumeAction'),
|
|
1665
|
+
...ConsumeActionProperties,
|
|
1666
|
+
}),
|
|
1667
|
+
z.object({
|
|
1668
|
+
'@type': z.literal('WatchAction'),
|
|
1669
|
+
...WatchActionProperties,
|
|
1670
|
+
}),
|
|
1671
|
+
z.object({
|
|
1672
|
+
'@type': z.literal('ViewAction'),
|
|
1673
|
+
...ViewActionProperties,
|
|
1674
|
+
}),
|
|
1675
|
+
z.object({
|
|
1676
|
+
'@type': z.literal('ReadAction'),
|
|
1677
|
+
...ReadActionProperties,
|
|
1678
|
+
}),
|
|
1679
|
+
z.object({
|
|
1680
|
+
'@type': z.literal('ListenAction'),
|
|
1681
|
+
...ListenActionProperties,
|
|
1682
|
+
}),
|
|
1683
|
+
z.object({
|
|
1684
|
+
'@type': z.literal('EatAction'),
|
|
1685
|
+
...EatActionProperties,
|
|
1686
|
+
}),
|
|
1687
|
+
z.object({
|
|
1688
|
+
'@type': z.literal('DrinkAction'),
|
|
1689
|
+
...DrinkActionProperties,
|
|
1690
|
+
}),
|
|
1691
|
+
z.object({
|
|
1692
|
+
'@type': z.literal('CompleteAction'),
|
|
1693
|
+
...CompleteActionProperties,
|
|
1694
|
+
}),
|
|
1695
|
+
z.object({
|
|
1696
|
+
'@type': z.literal('CancelAction'),
|
|
1697
|
+
...CancelActionProperties,
|
|
1698
|
+
}),
|
|
1699
|
+
z.object({
|
|
1700
|
+
'@type': z.literal('InteractAction'),
|
|
1701
|
+
...InteractActionProperties,
|
|
1702
|
+
}),
|
|
1703
|
+
z.object({
|
|
1704
|
+
'@type': z.literal('FollowAction'),
|
|
1705
|
+
...FollowActionProperties,
|
|
1706
|
+
}),
|
|
1707
|
+
z.object({
|
|
1708
|
+
'@type': z.literal('CommunicateAction'),
|
|
1709
|
+
...CommunicateActionProperties,
|
|
1710
|
+
}),
|
|
1711
|
+
z.object({
|
|
1712
|
+
'@type': z.literal('CheckInAction'),
|
|
1713
|
+
...CheckInActionProperties,
|
|
1714
|
+
}),
|
|
1715
|
+
z.object({
|
|
1716
|
+
'@type': z.literal('CallAction'),
|
|
1717
|
+
...CallActionProperties,
|
|
1718
|
+
}),
|
|
1719
|
+
z.object({
|
|
1720
|
+
'@type': z.literal('OrganizeAction'),
|
|
1721
|
+
...OrganizeActionProperties,
|
|
1722
|
+
}),
|
|
1723
|
+
z.object({
|
|
1724
|
+
'@type': z.literal('BookmarkAction'),
|
|
1725
|
+
...BookmarkActionProperties,
|
|
1726
|
+
}),
|
|
1727
|
+
z.object({
|
|
1728
|
+
'@type': z.literal('AssessAction'),
|
|
1729
|
+
...AssessActionProperties,
|
|
1730
|
+
}),
|
|
1731
|
+
z.object({
|
|
1732
|
+
'@type': z.literal('RespondAction'),
|
|
1733
|
+
...RespondActionProperties,
|
|
1734
|
+
}),
|
|
1735
|
+
z.object({
|
|
1736
|
+
'@type': z.literal('ReactAction'),
|
|
1737
|
+
...ReactActionProperties,
|
|
1738
|
+
}),
|
|
1739
|
+
z.object({
|
|
1740
|
+
'@type': z.literal('LikeAction'),
|
|
1741
|
+
...LikeActionProperties,
|
|
1742
|
+
}),
|
|
1743
|
+
z.object({
|
|
1744
|
+
'@type': z.literal('CreateAction'),
|
|
1745
|
+
...CreateActionProperties,
|
|
1746
|
+
}),
|
|
1747
|
+
z.object({
|
|
1748
|
+
'@type': z.literal('RecordAction'),
|
|
1749
|
+
...RecordActionProperties,
|
|
1750
|
+
}),
|
|
1751
|
+
z.object({
|
|
1752
|
+
'@type': z.literal('QuoteAction'),
|
|
1753
|
+
...QuoteActionProperties,
|
|
1754
|
+
}),
|
|
1755
|
+
z.object({
|
|
1756
|
+
'@type': z.literal('PublishAction'),
|
|
1757
|
+
...PublishActionProperties,
|
|
1758
|
+
}),
|
|
1759
|
+
z.object({
|
|
1760
|
+
'@type': z.literal('PhotographAction'),
|
|
1761
|
+
...PhotographActionProperties,
|
|
1762
|
+
}),
|
|
1763
|
+
z.object({
|
|
1764
|
+
'@type': z.literal('AnnotateAction'),
|
|
1765
|
+
...AnnotateActionProperties,
|
|
1766
|
+
}),
|
|
1767
|
+
z.object({
|
|
1768
|
+
'@type': z.literal('UpdateAction'),
|
|
1769
|
+
...UpdateActionProperties,
|
|
1770
|
+
}),
|
|
1771
|
+
z.object({
|
|
1772
|
+
'@type': z.literal('AddAction'),
|
|
1773
|
+
...AddActionProperties,
|
|
1774
|
+
}),
|
|
1775
|
+
z.object({
|
|
1776
|
+
'@type': z.literal('AcceptAction'),
|
|
1777
|
+
...AcceptActionProperties,
|
|
1778
|
+
}),
|
|
1779
|
+
])
|
|
1780
|
+
.superRefine(requireNodeIdentity);
|
|
1781
|
+
export const AIModelAndChildrenSchema = AIModelSchema;
|
|
1782
|
+
export const SoftwareAndChildrenSchema = z
|
|
1783
|
+
.discriminatedUnion('@type', [
|
|
1784
|
+
z.object({
|
|
1785
|
+
'@type': z.literal('Software'),
|
|
1786
|
+
...SoftwareProperties,
|
|
1787
|
+
}),
|
|
1788
|
+
z.object({
|
|
1789
|
+
'@type': z.literal('SoftwareApplication'),
|
|
1790
|
+
...SoftwareApplicationProperties,
|
|
1791
|
+
}),
|
|
1792
|
+
z.object({
|
|
1793
|
+
'@type': z.literal('OperatingSystem'),
|
|
1794
|
+
...OperatingSystemProperties,
|
|
1795
|
+
}),
|
|
1796
|
+
z.object({
|
|
1797
|
+
'@type': z.literal('AIModel'),
|
|
1798
|
+
...AIModelProperties,
|
|
1799
|
+
}),
|
|
1800
|
+
])
|
|
1801
|
+
.superRefine(requireNodeIdentity);
|
|
1365
1802
|
export const CreativeWorkAndChildrenSchema = z
|
|
1366
1803
|
.discriminatedUnion('@type', [
|
|
1367
1804
|
z.object({
|
|
@@ -1369,8 +1806,16 @@ export const CreativeWorkAndChildrenSchema = z
|
|
|
1369
1806
|
...CreativeWorkProperties,
|
|
1370
1807
|
}),
|
|
1371
1808
|
z.object({
|
|
1372
|
-
'@type': z.literal('
|
|
1373
|
-
...
|
|
1809
|
+
'@type': z.literal('SoftwareSourceCode'),
|
|
1810
|
+
...SoftwareSourceCodeProperties,
|
|
1811
|
+
}),
|
|
1812
|
+
z.object({
|
|
1813
|
+
'@type': z.literal('Revision'),
|
|
1814
|
+
...RevisionProperties,
|
|
1815
|
+
}),
|
|
1816
|
+
z.object({
|
|
1817
|
+
'@type': z.literal('Repository'),
|
|
1818
|
+
...RepositoryProperties,
|
|
1374
1819
|
}),
|
|
1375
1820
|
z.object({
|
|
1376
1821
|
'@type': z.literal('Quotation'),
|
|
@@ -1408,6 +1853,14 @@ export const CreativeWorkAndChildrenSchema = z
|
|
|
1408
1853
|
'@type': z.literal('Comment'),
|
|
1409
1854
|
...CommentProperties,
|
|
1410
1855
|
}),
|
|
1856
|
+
z.object({
|
|
1857
|
+
'@type': z.literal('Channel'),
|
|
1858
|
+
...ChannelProperties,
|
|
1859
|
+
}),
|
|
1860
|
+
z.object({
|
|
1861
|
+
'@type': z.literal('Changeset'),
|
|
1862
|
+
...ChangesetProperties,
|
|
1863
|
+
}),
|
|
1411
1864
|
z.object({
|
|
1412
1865
|
'@type': z.literal('Collection'),
|
|
1413
1866
|
...CollectionProperties,
|
|
@@ -1425,8 +1878,8 @@ export const CreativeWorkAndChildrenSchema = z
|
|
|
1425
1878
|
...DirectoryProperties,
|
|
1426
1879
|
}),
|
|
1427
1880
|
z.object({
|
|
1428
|
-
'@type': z.literal('
|
|
1429
|
-
...
|
|
1881
|
+
'@type': z.literal('Calendar'),
|
|
1882
|
+
...CalendarProperties,
|
|
1430
1883
|
}),
|
|
1431
1884
|
z.object({
|
|
1432
1885
|
'@type': z.literal('Book'),
|
|
@@ -1456,54 +1909,21 @@ export const CreativeWorkAndChildrenSchema = z
|
|
|
1456
1909
|
'@type': z.literal('Article'),
|
|
1457
1910
|
...ArticleProperties,
|
|
1458
1911
|
}),
|
|
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
1912
|
z.object({
|
|
1477
|
-
'@type': z.literal('
|
|
1478
|
-
...
|
|
1479
|
-
}),
|
|
1480
|
-
])
|
|
1481
|
-
.superRefine(requireNodeIdentity);
|
|
1482
|
-
export const AgentAndChildrenSchema = z
|
|
1483
|
-
.discriminatedUnion('@type', [
|
|
1484
|
-
z.object({
|
|
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,
|
|
1913
|
+
'@type': z.literal('Software'),
|
|
1914
|
+
...SoftwareProperties,
|
|
1495
1915
|
}),
|
|
1496
1916
|
z.object({
|
|
1497
|
-
'@type': z.literal('
|
|
1498
|
-
...
|
|
1917
|
+
'@type': z.literal('SoftwareApplication'),
|
|
1918
|
+
...SoftwareApplicationProperties,
|
|
1499
1919
|
}),
|
|
1500
1920
|
z.object({
|
|
1501
|
-
'@type': z.literal('
|
|
1502
|
-
...
|
|
1921
|
+
'@type': z.literal('OperatingSystem'),
|
|
1922
|
+
...OperatingSystemProperties,
|
|
1503
1923
|
}),
|
|
1504
1924
|
z.object({
|
|
1505
|
-
'@type': z.literal('
|
|
1506
|
-
...
|
|
1925
|
+
'@type': z.literal('AIModel'),
|
|
1926
|
+
...AIModelProperties,
|
|
1507
1927
|
}),
|
|
1508
1928
|
])
|
|
1509
1929
|
.superRefine(requireNodeIdentity);
|
|
@@ -1525,6 +1945,10 @@ export const EntityAndChildrenSchema = z
|
|
|
1525
1945
|
'@type': z.literal('Realm'),
|
|
1526
1946
|
...RealmProperties,
|
|
1527
1947
|
}),
|
|
1948
|
+
z.object({
|
|
1949
|
+
'@type': z.literal('ProductModel'),
|
|
1950
|
+
...ProductModelProperties,
|
|
1951
|
+
}),
|
|
1528
1952
|
z.object({
|
|
1529
1953
|
'@type': z.literal('Place'),
|
|
1530
1954
|
...PlaceProperties,
|
|
@@ -1609,13 +2033,45 @@ export const EntityAndChildrenSchema = z
|
|
|
1609
2033
|
'@type': z.literal('CallSession'),
|
|
1610
2034
|
...CallSessionProperties,
|
|
1611
2035
|
}),
|
|
2036
|
+
z.object({
|
|
2037
|
+
'@type': z.literal('Agent'),
|
|
2038
|
+
...AgentProperties,
|
|
2039
|
+
}),
|
|
2040
|
+
z.object({
|
|
2041
|
+
'@type': z.literal('SoftwareAgent'),
|
|
2042
|
+
...SoftwareAgentProperties,
|
|
2043
|
+
}),
|
|
2044
|
+
z.object({
|
|
2045
|
+
'@type': z.literal('Person'),
|
|
2046
|
+
...PersonProperties,
|
|
2047
|
+
}),
|
|
2048
|
+
z.object({
|
|
2049
|
+
'@type': z.literal('Organization'),
|
|
2050
|
+
...OrganizationProperties,
|
|
2051
|
+
}),
|
|
2052
|
+
z.object({
|
|
2053
|
+
'@type': z.literal('PerformingGroup'),
|
|
2054
|
+
...PerformingGroupProperties,
|
|
2055
|
+
}),
|
|
2056
|
+
z.object({
|
|
2057
|
+
'@type': z.literal('MusicGroup'),
|
|
2058
|
+
...MusicGroupProperties,
|
|
2059
|
+
}),
|
|
1612
2060
|
z.object({
|
|
1613
2061
|
'@type': z.literal('CreativeWork'),
|
|
1614
2062
|
...CreativeWorkProperties,
|
|
1615
2063
|
}),
|
|
1616
2064
|
z.object({
|
|
1617
|
-
'@type': z.literal('
|
|
1618
|
-
...
|
|
2065
|
+
'@type': z.literal('SoftwareSourceCode'),
|
|
2066
|
+
...SoftwareSourceCodeProperties,
|
|
2067
|
+
}),
|
|
2068
|
+
z.object({
|
|
2069
|
+
'@type': z.literal('Revision'),
|
|
2070
|
+
...RevisionProperties,
|
|
2071
|
+
}),
|
|
2072
|
+
z.object({
|
|
2073
|
+
'@type': z.literal('Repository'),
|
|
2074
|
+
...RepositoryProperties,
|
|
1619
2075
|
}),
|
|
1620
2076
|
z.object({
|
|
1621
2077
|
'@type': z.literal('Quotation'),
|
|
@@ -1653,6 +2109,14 @@ export const EntityAndChildrenSchema = z
|
|
|
1653
2109
|
'@type': z.literal('Comment'),
|
|
1654
2110
|
...CommentProperties,
|
|
1655
2111
|
}),
|
|
2112
|
+
z.object({
|
|
2113
|
+
'@type': z.literal('Channel'),
|
|
2114
|
+
...ChannelProperties,
|
|
2115
|
+
}),
|
|
2116
|
+
z.object({
|
|
2117
|
+
'@type': z.literal('Changeset'),
|
|
2118
|
+
...ChangesetProperties,
|
|
2119
|
+
}),
|
|
1656
2120
|
z.object({
|
|
1657
2121
|
'@type': z.literal('Collection'),
|
|
1658
2122
|
...CollectionProperties,
|
|
@@ -1670,8 +2134,8 @@ export const EntityAndChildrenSchema = z
|
|
|
1670
2134
|
...DirectoryProperties,
|
|
1671
2135
|
}),
|
|
1672
2136
|
z.object({
|
|
1673
|
-
'@type': z.literal('
|
|
1674
|
-
...
|
|
2137
|
+
'@type': z.literal('Calendar'),
|
|
2138
|
+
...CalendarProperties,
|
|
1675
2139
|
}),
|
|
1676
2140
|
z.object({
|
|
1677
2141
|
'@type': z.literal('Book'),
|
|
@@ -1702,46 +2166,29 @@ export const EntityAndChildrenSchema = z
|
|
|
1702
2166
|
...ArticleProperties,
|
|
1703
2167
|
}),
|
|
1704
2168
|
z.object({
|
|
1705
|
-
'@type': z.literal('
|
|
1706
|
-
...
|
|
1707
|
-
}),
|
|
1708
|
-
z.object({
|
|
1709
|
-
'@type': z.literal('SoftwareAgent'),
|
|
1710
|
-
...SoftwareAgentProperties,
|
|
1711
|
-
}),
|
|
1712
|
-
z.object({
|
|
1713
|
-
'@type': z.literal('Person'),
|
|
1714
|
-
...PersonProperties,
|
|
2169
|
+
'@type': z.literal('Software'),
|
|
2170
|
+
...SoftwareProperties,
|
|
1715
2171
|
}),
|
|
1716
2172
|
z.object({
|
|
1717
|
-
'@type': z.literal('
|
|
1718
|
-
...
|
|
2173
|
+
'@type': z.literal('SoftwareApplication'),
|
|
2174
|
+
...SoftwareApplicationProperties,
|
|
1719
2175
|
}),
|
|
1720
2176
|
z.object({
|
|
1721
|
-
'@type': z.literal('
|
|
1722
|
-
...
|
|
2177
|
+
'@type': z.literal('OperatingSystem'),
|
|
2178
|
+
...OperatingSystemProperties,
|
|
1723
2179
|
}),
|
|
1724
2180
|
z.object({
|
|
1725
|
-
'@type': z.literal('
|
|
1726
|
-
...
|
|
2181
|
+
'@type': z.literal('AIModel'),
|
|
2182
|
+
...AIModelProperties,
|
|
1727
2183
|
}),
|
|
1728
2184
|
])
|
|
1729
2185
|
.superRefine(requireNodeIdentity);
|
|
1730
|
-
export const
|
|
1731
|
-
export const UpdateActionAndChildrenSchema = z
|
|
2186
|
+
export const BaseAndChildrenSchema = z
|
|
1732
2187
|
.discriminatedUnion('@type', [
|
|
1733
2188
|
z.object({
|
|
1734
|
-
'@type': z.literal('
|
|
1735
|
-
...
|
|
1736
|
-
}),
|
|
1737
|
-
z.object({
|
|
1738
|
-
'@type': z.literal('AddAction'),
|
|
1739
|
-
...AddActionProperties,
|
|
2189
|
+
'@type': z.literal('Base'),
|
|
2190
|
+
...BaseProperties,
|
|
1740
2191
|
}),
|
|
1741
|
-
])
|
|
1742
|
-
.superRefine(requireNodeIdentity);
|
|
1743
|
-
export const ActionAndChildrenSchema = z
|
|
1744
|
-
.discriminatedUnion('@type', [
|
|
1745
2192
|
z.object({
|
|
1746
2193
|
'@type': z.literal('Action'),
|
|
1747
2194
|
...ActionProperties,
|
|
@@ -1754,10 +2201,22 @@ export const ActionAndChildrenSchema = z
|
|
|
1754
2201
|
'@type': z.literal('TravelAction'),
|
|
1755
2202
|
...TravelActionProperties,
|
|
1756
2203
|
}),
|
|
2204
|
+
z.object({
|
|
2205
|
+
'@type': z.literal('RejectAction'),
|
|
2206
|
+
...RejectActionProperties,
|
|
2207
|
+
}),
|
|
1757
2208
|
z.object({
|
|
1758
2209
|
'@type': z.literal('PlanAction'),
|
|
1759
2210
|
...PlanActionProperties,
|
|
1760
2211
|
}),
|
|
2212
|
+
z.object({
|
|
2213
|
+
'@type': z.literal('MoveAction'),
|
|
2214
|
+
...MoveActionProperties,
|
|
2215
|
+
}),
|
|
2216
|
+
z.object({
|
|
2217
|
+
'@type': z.literal('NavigateAction'),
|
|
2218
|
+
...NavigateActionProperties,
|
|
2219
|
+
}),
|
|
1761
2220
|
z.object({
|
|
1762
2221
|
'@type': z.literal('MessageAction'),
|
|
1763
2222
|
...MessageActionProperties,
|
|
@@ -1811,8 +2270,8 @@ export const ActionAndChildrenSchema = z
|
|
|
1811
2270
|
...EatActionProperties,
|
|
1812
2271
|
}),
|
|
1813
2272
|
z.object({
|
|
1814
|
-
'@type': z.literal('
|
|
1815
|
-
...
|
|
2273
|
+
'@type': z.literal('DrinkAction'),
|
|
2274
|
+
...DrinkActionProperties,
|
|
1816
2275
|
}),
|
|
1817
2276
|
z.object({
|
|
1818
2277
|
'@type': z.literal('CompleteAction'),
|
|
@@ -1870,6 +2329,10 @@ export const ActionAndChildrenSchema = z
|
|
|
1870
2329
|
'@type': z.literal('CreateAction'),
|
|
1871
2330
|
...CreateActionProperties,
|
|
1872
2331
|
}),
|
|
2332
|
+
z.object({
|
|
2333
|
+
'@type': z.literal('RecordAction'),
|
|
2334
|
+
...RecordActionProperties,
|
|
2335
|
+
}),
|
|
1873
2336
|
z.object({
|
|
1874
2337
|
'@type': z.literal('QuoteAction'),
|
|
1875
2338
|
...QuoteActionProperties,
|
|
@@ -1878,6 +2341,10 @@ export const ActionAndChildrenSchema = z
|
|
|
1878
2341
|
'@type': z.literal('PublishAction'),
|
|
1879
2342
|
...PublishActionProperties,
|
|
1880
2343
|
}),
|
|
2344
|
+
z.object({
|
|
2345
|
+
'@type': z.literal('PhotographAction'),
|
|
2346
|
+
...PhotographActionProperties,
|
|
2347
|
+
}),
|
|
1881
2348
|
z.object({
|
|
1882
2349
|
'@type': z.literal('AnnotateAction'),
|
|
1883
2350
|
...AnnotateActionProperties,
|
|
@@ -1890,13 +2357,9 @@ export const ActionAndChildrenSchema = z
|
|
|
1890
2357
|
'@type': z.literal('AddAction'),
|
|
1891
2358
|
...AddActionProperties,
|
|
1892
2359
|
}),
|
|
1893
|
-
])
|
|
1894
|
-
.superRefine(requireNodeIdentity);
|
|
1895
|
-
export const BaseAndChildrenSchema = z
|
|
1896
|
-
.discriminatedUnion('@type', [
|
|
1897
2360
|
z.object({
|
|
1898
|
-
'@type': z.literal('
|
|
1899
|
-
...
|
|
2361
|
+
'@type': z.literal('AcceptAction'),
|
|
2362
|
+
...AcceptActionProperties,
|
|
1900
2363
|
}),
|
|
1901
2364
|
z.object({
|
|
1902
2365
|
'@type': z.literal('Entity'),
|
|
@@ -1914,6 +2377,10 @@ export const BaseAndChildrenSchema = z
|
|
|
1914
2377
|
'@type': z.literal('Realm'),
|
|
1915
2378
|
...RealmProperties,
|
|
1916
2379
|
}),
|
|
2380
|
+
z.object({
|
|
2381
|
+
'@type': z.literal('ProductModel'),
|
|
2382
|
+
...ProductModelProperties,
|
|
2383
|
+
}),
|
|
1917
2384
|
z.object({
|
|
1918
2385
|
'@type': z.literal('Place'),
|
|
1919
2386
|
...PlaceProperties,
|
|
@@ -1998,13 +2465,45 @@ export const BaseAndChildrenSchema = z
|
|
|
1998
2465
|
'@type': z.literal('CallSession'),
|
|
1999
2466
|
...CallSessionProperties,
|
|
2000
2467
|
}),
|
|
2468
|
+
z.object({
|
|
2469
|
+
'@type': z.literal('Agent'),
|
|
2470
|
+
...AgentProperties,
|
|
2471
|
+
}),
|
|
2472
|
+
z.object({
|
|
2473
|
+
'@type': z.literal('SoftwareAgent'),
|
|
2474
|
+
...SoftwareAgentProperties,
|
|
2475
|
+
}),
|
|
2476
|
+
z.object({
|
|
2477
|
+
'@type': z.literal('Person'),
|
|
2478
|
+
...PersonProperties,
|
|
2479
|
+
}),
|
|
2480
|
+
z.object({
|
|
2481
|
+
'@type': z.literal('Organization'),
|
|
2482
|
+
...OrganizationProperties,
|
|
2483
|
+
}),
|
|
2484
|
+
z.object({
|
|
2485
|
+
'@type': z.literal('PerformingGroup'),
|
|
2486
|
+
...PerformingGroupProperties,
|
|
2487
|
+
}),
|
|
2488
|
+
z.object({
|
|
2489
|
+
'@type': z.literal('MusicGroup'),
|
|
2490
|
+
...MusicGroupProperties,
|
|
2491
|
+
}),
|
|
2001
2492
|
z.object({
|
|
2002
2493
|
'@type': z.literal('CreativeWork'),
|
|
2003
2494
|
...CreativeWorkProperties,
|
|
2004
2495
|
}),
|
|
2005
2496
|
z.object({
|
|
2006
|
-
'@type': z.literal('
|
|
2007
|
-
...
|
|
2497
|
+
'@type': z.literal('SoftwareSourceCode'),
|
|
2498
|
+
...SoftwareSourceCodeProperties,
|
|
2499
|
+
}),
|
|
2500
|
+
z.object({
|
|
2501
|
+
'@type': z.literal('Revision'),
|
|
2502
|
+
...RevisionProperties,
|
|
2503
|
+
}),
|
|
2504
|
+
z.object({
|
|
2505
|
+
'@type': z.literal('Repository'),
|
|
2506
|
+
...RepositoryProperties,
|
|
2008
2507
|
}),
|
|
2009
2508
|
z.object({
|
|
2010
2509
|
'@type': z.literal('Quotation'),
|
|
@@ -2042,6 +2541,14 @@ export const BaseAndChildrenSchema = z
|
|
|
2042
2541
|
'@type': z.literal('Comment'),
|
|
2043
2542
|
...CommentProperties,
|
|
2044
2543
|
}),
|
|
2544
|
+
z.object({
|
|
2545
|
+
'@type': z.literal('Channel'),
|
|
2546
|
+
...ChannelProperties,
|
|
2547
|
+
}),
|
|
2548
|
+
z.object({
|
|
2549
|
+
'@type': z.literal('Changeset'),
|
|
2550
|
+
...ChangesetProperties,
|
|
2551
|
+
}),
|
|
2045
2552
|
z.object({
|
|
2046
2553
|
'@type': z.literal('Collection'),
|
|
2047
2554
|
...CollectionProperties,
|
|
@@ -2059,8 +2566,8 @@ export const BaseAndChildrenSchema = z
|
|
|
2059
2566
|
...DirectoryProperties,
|
|
2060
2567
|
}),
|
|
2061
2568
|
z.object({
|
|
2062
|
-
'@type': z.literal('
|
|
2063
|
-
...
|
|
2569
|
+
'@type': z.literal('Calendar'),
|
|
2570
|
+
...CalendarProperties,
|
|
2064
2571
|
}),
|
|
2065
2572
|
z.object({
|
|
2066
2573
|
'@type': z.literal('Book'),
|
|
@@ -2091,176 +2598,20 @@ export const BaseAndChildrenSchema = z
|
|
|
2091
2598
|
...ArticleProperties,
|
|
2092
2599
|
}),
|
|
2093
2600
|
z.object({
|
|
2094
|
-
'@type': z.literal('
|
|
2095
|
-
...
|
|
2096
|
-
}),
|
|
2097
|
-
z.object({
|
|
2098
|
-
'@type': z.literal('SoftwareAgent'),
|
|
2099
|
-
...SoftwareAgentProperties,
|
|
2100
|
-
}),
|
|
2101
|
-
z.object({
|
|
2102
|
-
'@type': z.literal('Person'),
|
|
2103
|
-
...PersonProperties,
|
|
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
|
-
}),
|
|
2117
|
-
z.object({
|
|
2118
|
-
'@type': z.literal('Action'),
|
|
2119
|
-
...ActionProperties,
|
|
2120
|
-
}),
|
|
2121
|
-
z.object({
|
|
2122
|
-
'@type': z.literal('VisitAction'),
|
|
2123
|
-
...VisitActionProperties,
|
|
2124
|
-
}),
|
|
2125
|
-
z.object({
|
|
2126
|
-
'@type': z.literal('TravelAction'),
|
|
2127
|
-
...TravelActionProperties,
|
|
2128
|
-
}),
|
|
2129
|
-
z.object({
|
|
2130
|
-
'@type': z.literal('PlanAction'),
|
|
2131
|
-
...PlanActionProperties,
|
|
2132
|
-
}),
|
|
2133
|
-
z.object({
|
|
2134
|
-
'@type': z.literal('MessageAction'),
|
|
2135
|
-
...MessageActionProperties,
|
|
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
|
-
}),
|
|
2153
|
-
z.object({
|
|
2154
|
-
'@type': z.literal('ExecuteAction'),
|
|
2155
|
-
...ExecuteActionProperties,
|
|
2156
|
-
}),
|
|
2157
|
-
z.object({
|
|
2158
|
-
'@type': z.literal('DeleteAction'),
|
|
2159
|
-
...DeleteActionProperties,
|
|
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
|
-
}),
|
|
2189
|
-
z.object({
|
|
2190
|
-
'@type': z.literal('CompleteAction'),
|
|
2191
|
-
...CompleteActionProperties,
|
|
2192
|
-
}),
|
|
2193
|
-
z.object({
|
|
2194
|
-
'@type': z.literal('CancelAction'),
|
|
2195
|
-
...CancelActionProperties,
|
|
2601
|
+
'@type': z.literal('Software'),
|
|
2602
|
+
...SoftwareProperties,
|
|
2196
2603
|
}),
|
|
2197
2604
|
z.object({
|
|
2198
|
-
'@type': z.literal('
|
|
2199
|
-
...
|
|
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,
|
|
2605
|
+
'@type': z.literal('SoftwareApplication'),
|
|
2606
|
+
...SoftwareApplicationProperties,
|
|
2256
2607
|
}),
|
|
2257
2608
|
z.object({
|
|
2258
|
-
'@type': z.literal('
|
|
2259
|
-
...
|
|
2609
|
+
'@type': z.literal('OperatingSystem'),
|
|
2610
|
+
...OperatingSystemProperties,
|
|
2260
2611
|
}),
|
|
2261
2612
|
z.object({
|
|
2262
|
-
'@type': z.literal('
|
|
2263
|
-
...
|
|
2613
|
+
'@type': z.literal('AIModel'),
|
|
2614
|
+
...AIModelProperties,
|
|
2264
2615
|
}),
|
|
2265
2616
|
])
|
|
2266
2617
|
.superRefine(requireNodeIdentity);
|