@lincs.project/webannotation-schema 1.17.2 → 1.18.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/dist/index.d.mts +21 -21
- package/dist/index.d.ts +21 -21
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -172,9 +172,9 @@ declare const labelSchema: JSONSchemaType<Label>;
|
|
|
172
172
|
declare const Description: z.ZodString;
|
|
173
173
|
type Description = z.infer<typeof Description>;
|
|
174
174
|
declare const descriptionSchema: JSONSchemaType<Description>;
|
|
175
|
-
declare const modesExistence: readonly ["edit:modeReal", "edit:modeFictional", "edit:
|
|
176
|
-
declare const ModesExistence: z.ZodEnum<["edit:modeReal", "edit:modeFictional", "edit:
|
|
177
|
-
declare const ModeExistence: z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
175
|
+
declare const modesExistence: readonly ["edit:modeReal", "edit:modeFictional", "edit:modeIdentifiable"];
|
|
176
|
+
declare const ModesExistence: z.ZodEnum<["edit:modeReal", "edit:modeFictional", "edit:modeIdentifiable"]>;
|
|
177
|
+
declare const ModeExistence: z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>;
|
|
178
178
|
type ModeExistence = z.infer<typeof ModeExistence>;
|
|
179
179
|
declare const modeExistenceSchema: JSONSchemaType<ModeExistence>;
|
|
180
180
|
|
|
@@ -248,20 +248,20 @@ declare const Event: z.ZodObject<{
|
|
|
248
248
|
id: z.ZodString;
|
|
249
249
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E5_Event">, z.ZodTuple<[z.ZodLiteral<"event:Event">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
250
250
|
label: z.ZodOptional<z.ZodString>;
|
|
251
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
251
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
252
252
|
description: z.ZodOptional<z.ZodString>;
|
|
253
253
|
}, "strip", z.ZodTypeAny, {
|
|
254
254
|
id: string;
|
|
255
255
|
type: "crm:E5_Event" | ["event:Event", "crm:E89_Propositional_Object"];
|
|
256
256
|
description?: string | undefined;
|
|
257
257
|
label?: string | undefined;
|
|
258
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
258
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
259
259
|
}, {
|
|
260
260
|
id: string;
|
|
261
261
|
type: "crm:E5_Event" | ["event:Event", "crm:E89_Propositional_Object"];
|
|
262
262
|
description?: string | undefined;
|
|
263
263
|
label?: string | undefined;
|
|
264
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
264
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
265
265
|
}>;
|
|
266
266
|
type Event = z.infer<typeof Event>;
|
|
267
267
|
declare const typeEventSchema: JSONSchemaType<TypeEvent>;
|
|
@@ -311,20 +311,20 @@ declare const Organization: z.ZodObject<{
|
|
|
311
311
|
id: z.ZodString;
|
|
312
312
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E74_Group">, z.ZodTuple<[z.ZodLiteral<"foaf:Organization">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
313
313
|
label: z.ZodOptional<z.ZodString>;
|
|
314
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
314
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
315
315
|
description: z.ZodOptional<z.ZodString>;
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
id: string;
|
|
318
318
|
type: "crm:E74_Group" | ["foaf:Organization", "crm:E89_Propositional_Object"];
|
|
319
319
|
description?: string | undefined;
|
|
320
320
|
label?: string | undefined;
|
|
321
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
321
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
322
322
|
}, {
|
|
323
323
|
id: string;
|
|
324
324
|
type: "crm:E74_Group" | ["foaf:Organization", "crm:E89_Propositional_Object"];
|
|
325
325
|
description?: string | undefined;
|
|
326
326
|
label?: string | undefined;
|
|
327
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
327
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
328
328
|
}>;
|
|
329
329
|
type Organization = z.infer<typeof Organization>;
|
|
330
330
|
declare const typeOrganizationSchema: JSONSchemaType<TypeOrganization>;
|
|
@@ -336,20 +336,20 @@ declare const Person: z.ZodObject<{
|
|
|
336
336
|
id: z.ZodString;
|
|
337
337
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E21_Person">, z.ZodTuple<[z.ZodLiteral<"foaf:Person">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
338
338
|
label: z.ZodOptional<z.ZodString>;
|
|
339
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
339
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
340
340
|
description: z.ZodOptional<z.ZodString>;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
342
|
id: string;
|
|
343
343
|
type: "crm:E21_Person" | ["foaf:Person", "crm:E89_Propositional_Object"];
|
|
344
344
|
description?: string | undefined;
|
|
345
345
|
label?: string | undefined;
|
|
346
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
346
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
id: string;
|
|
349
349
|
type: "crm:E21_Person" | ["foaf:Person", "crm:E89_Propositional_Object"];
|
|
350
350
|
description?: string | undefined;
|
|
351
351
|
label?: string | undefined;
|
|
352
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
352
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
353
353
|
}>;
|
|
354
354
|
type Person = z.infer<typeof Person>;
|
|
355
355
|
declare const typePersonSchema: JSONSchemaType<TypePerson>;
|
|
@@ -361,20 +361,20 @@ declare const PhysicalThing: z.ZodObject<{
|
|
|
361
361
|
id: z.ZodString;
|
|
362
362
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E18_Physical_Thing">, z.ZodTuple<[z.ZodLiteral<"wikidata:Q15831596">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
363
363
|
label: z.ZodOptional<z.ZodString>;
|
|
364
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
364
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
365
365
|
description: z.ZodOptional<z.ZodString>;
|
|
366
366
|
}, "strip", z.ZodTypeAny, {
|
|
367
367
|
id: string;
|
|
368
368
|
type: "crm:E18_Physical_Thing" | ["wikidata:Q15831596", "crm:E89_Propositional_Object"];
|
|
369
369
|
description?: string | undefined;
|
|
370
370
|
label?: string | undefined;
|
|
371
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
371
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
372
372
|
}, {
|
|
373
373
|
id: string;
|
|
374
374
|
type: "crm:E18_Physical_Thing" | ["wikidata:Q15831596", "crm:E89_Propositional_Object"];
|
|
375
375
|
description?: string | undefined;
|
|
376
376
|
label?: string | undefined;
|
|
377
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
377
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
378
378
|
}>;
|
|
379
379
|
type PhysicalThing = z.infer<typeof PhysicalThing>;
|
|
380
380
|
declare const typePhysicalThingSchema: JSONSchemaType<TypePhysicalThing>;
|
|
@@ -386,20 +386,20 @@ declare const Place: z.ZodObject<{
|
|
|
386
386
|
id: z.ZodString;
|
|
387
387
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E53_Place">, z.ZodTuple<[z.ZodLiteral<"biography:fictionalPlace">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
388
388
|
label: z.ZodOptional<z.ZodString>;
|
|
389
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
389
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
390
390
|
description: z.ZodOptional<z.ZodString>;
|
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
392
|
id: string;
|
|
393
393
|
type: "crm:E53_Place" | ["biography:fictionalPlace", "crm:E89_Propositional_Object"];
|
|
394
394
|
description?: string | undefined;
|
|
395
395
|
label?: string | undefined;
|
|
396
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
396
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
397
397
|
}, {
|
|
398
398
|
id: string;
|
|
399
399
|
type: "crm:E53_Place" | ["biography:fictionalPlace", "crm:E89_Propositional_Object"];
|
|
400
400
|
description?: string | undefined;
|
|
401
401
|
label?: string | undefined;
|
|
402
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
402
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
403
403
|
}>;
|
|
404
404
|
type Place = z.infer<typeof Place>;
|
|
405
405
|
declare const typePlaceSchema: JSONSchemaType<TypePlace>;
|
|
@@ -411,20 +411,20 @@ declare const Work: z.ZodObject<{
|
|
|
411
411
|
id: z.ZodString;
|
|
412
412
|
type: z.ZodUnion<[z.ZodLiteral<"frbroo:F1">, z.ZodTuple<[z.ZodLiteral<"frbroo:F1">, z.ZodLiteral<"wikidata:Q15306849">], null>]>;
|
|
413
413
|
label: z.ZodOptional<z.ZodString>;
|
|
414
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
414
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
415
415
|
description: z.ZodOptional<z.ZodString>;
|
|
416
416
|
}, "strip", z.ZodTypeAny, {
|
|
417
417
|
id: string;
|
|
418
418
|
type: "frbroo:F1" | ["frbroo:F1", "wikidata:Q15306849"];
|
|
419
419
|
description?: string | undefined;
|
|
420
420
|
label?: string | undefined;
|
|
421
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
421
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
422
422
|
}, {
|
|
423
423
|
id: string;
|
|
424
424
|
type: "frbroo:F1" | ["frbroo:F1", "wikidata:Q15306849"];
|
|
425
425
|
description?: string | undefined;
|
|
426
426
|
label?: string | undefined;
|
|
427
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
427
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
428
428
|
}>;
|
|
429
429
|
type Work = z.infer<typeof Work>;
|
|
430
430
|
declare const typeWorkSchema: JSONSchemaType<TypeWork>;
|
package/dist/index.d.ts
CHANGED
|
@@ -172,9 +172,9 @@ declare const labelSchema: JSONSchemaType<Label>;
|
|
|
172
172
|
declare const Description: z.ZodString;
|
|
173
173
|
type Description = z.infer<typeof Description>;
|
|
174
174
|
declare const descriptionSchema: JSONSchemaType<Description>;
|
|
175
|
-
declare const modesExistence: readonly ["edit:modeReal", "edit:modeFictional", "edit:
|
|
176
|
-
declare const ModesExistence: z.ZodEnum<["edit:modeReal", "edit:modeFictional", "edit:
|
|
177
|
-
declare const ModeExistence: z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
175
|
+
declare const modesExistence: readonly ["edit:modeReal", "edit:modeFictional", "edit:modeIdentifiable"];
|
|
176
|
+
declare const ModesExistence: z.ZodEnum<["edit:modeReal", "edit:modeFictional", "edit:modeIdentifiable"]>;
|
|
177
|
+
declare const ModeExistence: z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>;
|
|
178
178
|
type ModeExistence = z.infer<typeof ModeExistence>;
|
|
179
179
|
declare const modeExistenceSchema: JSONSchemaType<ModeExistence>;
|
|
180
180
|
|
|
@@ -248,20 +248,20 @@ declare const Event: z.ZodObject<{
|
|
|
248
248
|
id: z.ZodString;
|
|
249
249
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E5_Event">, z.ZodTuple<[z.ZodLiteral<"event:Event">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
250
250
|
label: z.ZodOptional<z.ZodString>;
|
|
251
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
251
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
252
252
|
description: z.ZodOptional<z.ZodString>;
|
|
253
253
|
}, "strip", z.ZodTypeAny, {
|
|
254
254
|
id: string;
|
|
255
255
|
type: "crm:E5_Event" | ["event:Event", "crm:E89_Propositional_Object"];
|
|
256
256
|
description?: string | undefined;
|
|
257
257
|
label?: string | undefined;
|
|
258
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
258
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
259
259
|
}, {
|
|
260
260
|
id: string;
|
|
261
261
|
type: "crm:E5_Event" | ["event:Event", "crm:E89_Propositional_Object"];
|
|
262
262
|
description?: string | undefined;
|
|
263
263
|
label?: string | undefined;
|
|
264
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
264
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
265
265
|
}>;
|
|
266
266
|
type Event = z.infer<typeof Event>;
|
|
267
267
|
declare const typeEventSchema: JSONSchemaType<TypeEvent>;
|
|
@@ -311,20 +311,20 @@ declare const Organization: z.ZodObject<{
|
|
|
311
311
|
id: z.ZodString;
|
|
312
312
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E74_Group">, z.ZodTuple<[z.ZodLiteral<"foaf:Organization">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
313
313
|
label: z.ZodOptional<z.ZodString>;
|
|
314
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
314
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
315
315
|
description: z.ZodOptional<z.ZodString>;
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
id: string;
|
|
318
318
|
type: "crm:E74_Group" | ["foaf:Organization", "crm:E89_Propositional_Object"];
|
|
319
319
|
description?: string | undefined;
|
|
320
320
|
label?: string | undefined;
|
|
321
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
321
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
322
322
|
}, {
|
|
323
323
|
id: string;
|
|
324
324
|
type: "crm:E74_Group" | ["foaf:Organization", "crm:E89_Propositional_Object"];
|
|
325
325
|
description?: string | undefined;
|
|
326
326
|
label?: string | undefined;
|
|
327
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
327
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
328
328
|
}>;
|
|
329
329
|
type Organization = z.infer<typeof Organization>;
|
|
330
330
|
declare const typeOrganizationSchema: JSONSchemaType<TypeOrganization>;
|
|
@@ -336,20 +336,20 @@ declare const Person: z.ZodObject<{
|
|
|
336
336
|
id: z.ZodString;
|
|
337
337
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E21_Person">, z.ZodTuple<[z.ZodLiteral<"foaf:Person">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
338
338
|
label: z.ZodOptional<z.ZodString>;
|
|
339
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
339
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
340
340
|
description: z.ZodOptional<z.ZodString>;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
342
|
id: string;
|
|
343
343
|
type: "crm:E21_Person" | ["foaf:Person", "crm:E89_Propositional_Object"];
|
|
344
344
|
description?: string | undefined;
|
|
345
345
|
label?: string | undefined;
|
|
346
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
346
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
id: string;
|
|
349
349
|
type: "crm:E21_Person" | ["foaf:Person", "crm:E89_Propositional_Object"];
|
|
350
350
|
description?: string | undefined;
|
|
351
351
|
label?: string | undefined;
|
|
352
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
352
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
353
353
|
}>;
|
|
354
354
|
type Person = z.infer<typeof Person>;
|
|
355
355
|
declare const typePersonSchema: JSONSchemaType<TypePerson>;
|
|
@@ -361,20 +361,20 @@ declare const PhysicalThing: z.ZodObject<{
|
|
|
361
361
|
id: z.ZodString;
|
|
362
362
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E18_Physical_Thing">, z.ZodTuple<[z.ZodLiteral<"wikidata:Q15831596">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
363
363
|
label: z.ZodOptional<z.ZodString>;
|
|
364
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
364
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
365
365
|
description: z.ZodOptional<z.ZodString>;
|
|
366
366
|
}, "strip", z.ZodTypeAny, {
|
|
367
367
|
id: string;
|
|
368
368
|
type: "crm:E18_Physical_Thing" | ["wikidata:Q15831596", "crm:E89_Propositional_Object"];
|
|
369
369
|
description?: string | undefined;
|
|
370
370
|
label?: string | undefined;
|
|
371
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
371
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
372
372
|
}, {
|
|
373
373
|
id: string;
|
|
374
374
|
type: "crm:E18_Physical_Thing" | ["wikidata:Q15831596", "crm:E89_Propositional_Object"];
|
|
375
375
|
description?: string | undefined;
|
|
376
376
|
label?: string | undefined;
|
|
377
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
377
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
378
378
|
}>;
|
|
379
379
|
type PhysicalThing = z.infer<typeof PhysicalThing>;
|
|
380
380
|
declare const typePhysicalThingSchema: JSONSchemaType<TypePhysicalThing>;
|
|
@@ -386,20 +386,20 @@ declare const Place: z.ZodObject<{
|
|
|
386
386
|
id: z.ZodString;
|
|
387
387
|
type: z.ZodUnion<[z.ZodLiteral<"crm:E53_Place">, z.ZodTuple<[z.ZodLiteral<"biography:fictionalPlace">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>;
|
|
388
388
|
label: z.ZodOptional<z.ZodString>;
|
|
389
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
389
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
390
390
|
description: z.ZodOptional<z.ZodString>;
|
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
392
|
id: string;
|
|
393
393
|
type: "crm:E53_Place" | ["biography:fictionalPlace", "crm:E89_Propositional_Object"];
|
|
394
394
|
description?: string | undefined;
|
|
395
395
|
label?: string | undefined;
|
|
396
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
396
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
397
397
|
}, {
|
|
398
398
|
id: string;
|
|
399
399
|
type: "crm:E53_Place" | ["biography:fictionalPlace", "crm:E89_Propositional_Object"];
|
|
400
400
|
description?: string | undefined;
|
|
401
401
|
label?: string | undefined;
|
|
402
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
402
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
403
403
|
}>;
|
|
404
404
|
type Place = z.infer<typeof Place>;
|
|
405
405
|
declare const typePlaceSchema: JSONSchemaType<TypePlace>;
|
|
@@ -411,20 +411,20 @@ declare const Work: z.ZodObject<{
|
|
|
411
411
|
id: z.ZodString;
|
|
412
412
|
type: z.ZodUnion<[z.ZodLiteral<"frbroo:F1">, z.ZodTuple<[z.ZodLiteral<"frbroo:F1">, z.ZodLiteral<"wikidata:Q15306849">], null>]>;
|
|
413
413
|
label: z.ZodOptional<z.ZodString>;
|
|
414
|
-
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:
|
|
414
|
+
P2_has_type: z.ZodOptional<z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>], z.ZodOptional<z.ZodString>>>;
|
|
415
415
|
description: z.ZodOptional<z.ZodString>;
|
|
416
416
|
}, "strip", z.ZodTypeAny, {
|
|
417
417
|
id: string;
|
|
418
418
|
type: "frbroo:F1" | ["frbroo:F1", "wikidata:Q15306849"];
|
|
419
419
|
description?: string | undefined;
|
|
420
420
|
label?: string | undefined;
|
|
421
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
421
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
422
422
|
}, {
|
|
423
423
|
id: string;
|
|
424
424
|
type: "frbroo:F1" | ["frbroo:F1", "wikidata:Q15306849"];
|
|
425
425
|
description?: string | undefined;
|
|
426
426
|
label?: string | undefined;
|
|
427
|
-
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:
|
|
427
|
+
P2_has_type?: ["edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable", ...(string | undefined)[]] | undefined;
|
|
428
428
|
}>;
|
|
429
429
|
type Work = z.infer<typeof Work>;
|
|
430
430
|
declare const typeWorkSchema: JSONSchemaType<TypeWork>;
|
package/dist/index.js
CHANGED
|
@@ -284,17 +284,17 @@ var descriptionSchema = {
|
|
|
284
284
|
var modeExistenceDescription = "An indication of the state of being of an entity or thing (OED).";
|
|
285
285
|
var modeExistenceRealDescription = "An indication that an entity or thing, such as a person, place or text, is understood to be part of lived or historical existence.";
|
|
286
286
|
var modeExistenceFictionalDescription = "An indication that an entity or a thing, such as a person, place or text, is invented or imagined.";
|
|
287
|
-
var
|
|
287
|
+
var modeExistenceIdentifiableDescription = "An indication that an entity or a thing is understood as both existing and imagined, for instance a character in a work of literature that corresponds to a historical person or a place represented under another name that can be identified as a real place.";
|
|
288
288
|
var modesExistence = [
|
|
289
289
|
"edit:modeReal",
|
|
290
290
|
"edit:modeFictional",
|
|
291
|
-
"edit:
|
|
291
|
+
"edit:modeIdentifiable"
|
|
292
292
|
];
|
|
293
293
|
var ModesExistence = import_zod2.z.enum(modesExistence).describe(modeExistenceDescription);
|
|
294
294
|
var ModeExistence = import_zod2.z.union([
|
|
295
295
|
import_zod2.z.literal(modesExistence[0]).describe(modeExistenceRealDescription),
|
|
296
296
|
import_zod2.z.literal(modesExistence[1]).describe(modeExistenceFictionalDescription),
|
|
297
|
-
import_zod2.z.literal(modesExistence[2]).describe(
|
|
297
|
+
import_zod2.z.literal(modesExistence[2]).describe(modeExistenceIdentifiableDescription)
|
|
298
298
|
]).describe(modeExistenceDescription);
|
|
299
299
|
var modeExistenceSchema = {
|
|
300
300
|
oneOf: [{ type: "string", enum: modesExistence }],
|
package/dist/index.mjs
CHANGED
|
@@ -128,17 +128,17 @@ var descriptionSchema = {
|
|
|
128
128
|
var modeExistenceDescription = "An indication of the state of being of an entity or thing (OED).";
|
|
129
129
|
var modeExistenceRealDescription = "An indication that an entity or thing, such as a person, place or text, is understood to be part of lived or historical existence.";
|
|
130
130
|
var modeExistenceFictionalDescription = "An indication that an entity or a thing, such as a person, place or text, is invented or imagined.";
|
|
131
|
-
var
|
|
131
|
+
var modeExistenceIdentifiableDescription = "An indication that an entity or a thing is understood as both existing and imagined, for instance a character in a work of literature that corresponds to a historical person or a place represented under another name that can be identified as a real place.";
|
|
132
132
|
var modesExistence = [
|
|
133
133
|
"edit:modeReal",
|
|
134
134
|
"edit:modeFictional",
|
|
135
|
-
"edit:
|
|
135
|
+
"edit:modeIdentifiable"
|
|
136
136
|
];
|
|
137
137
|
var ModesExistence = z2.enum(modesExistence).describe(modeExistenceDescription);
|
|
138
138
|
var ModeExistence = z2.union([
|
|
139
139
|
z2.literal(modesExistence[0]).describe(modeExistenceRealDescription),
|
|
140
140
|
z2.literal(modesExistence[1]).describe(modeExistenceFictionalDescription),
|
|
141
|
-
z2.literal(modesExistence[2]).describe(
|
|
141
|
+
z2.literal(modesExistence[2]).describe(modeExistenceIdentifiableDescription)
|
|
142
142
|
]).describe(modeExistenceDescription);
|
|
143
143
|
var modeExistenceSchema = {
|
|
144
144
|
oneOf: [{ type: "string", enum: modesExistence }],
|