@lincs.project/webannotation-schema 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +65 -31
  2. package/dist/index.d.mts +2728 -0
  3. package/dist/index.d.ts +2728 -0
  4. package/dist/index.js +5463 -0
  5. package/dist/index.mjs +5433 -0
  6. package/package.json +44 -32
  7. package/dist/context.jsonld +0 -24
  8. package/dist/defs.jsonld +0 -949
  9. package/dist/schema.jsonld +0 -621
  10. package/dist/validate.js +0 -1
  11. package/lib/index.d.ts +0 -145
  12. package/lib/index.d.ts.map +0 -1
  13. package/lib/index.js +0 -13
  14. package/lib/index.js.map +0 -1
  15. package/lib/schema/config.d.ts +0 -4
  16. package/lib/schema/config.d.ts.map +0 -1
  17. package/lib/schema/config.js +0 -4
  18. package/lib/schema/config.js.map +0 -1
  19. package/lib/schema/context.d.ts +0 -25
  20. package/lib/schema/context.d.ts.map +0 -1
  21. package/lib/schema/context.js +0 -25
  22. package/lib/schema/context.js.map +0 -1
  23. package/lib/schema/definitions/agent.d.ts +0 -36
  24. package/lib/schema/definitions/agent.d.ts.map +0 -1
  25. package/lib/schema/definitions/agent.js +0 -82
  26. package/lib/schema/definitions/agent.js.map +0 -1
  27. package/lib/schema/definitions/body/citation.d.ts +0 -27
  28. package/lib/schema/definitions/body/citation.d.ts.map +0 -1
  29. package/lib/schema/definitions/body/citation.js +0 -53
  30. package/lib/schema/definitions/body/citation.js.map +0 -1
  31. package/lib/schema/definitions/body/common.d.ts +0 -17
  32. package/lib/schema/definitions/body/common.d.ts.map +0 -1
  33. package/lib/schema/definitions/body/common.js +0 -46
  34. package/lib/schema/definitions/body/common.js.map +0 -1
  35. package/lib/schema/definitions/body/conceptualObject.d.ts +0 -27
  36. package/lib/schema/definitions/body/conceptualObject.d.ts.map +0 -1
  37. package/lib/schema/definitions/body/conceptualObject.js +0 -61
  38. package/lib/schema/definitions/body/conceptualObject.js.map +0 -1
  39. package/lib/schema/definitions/body/correction.d.ts +0 -24
  40. package/lib/schema/definitions/body/correction.d.ts.map +0 -1
  41. package/lib/schema/definitions/body/correction.js +0 -54
  42. package/lib/schema/definitions/body/correction.js.map +0 -1
  43. package/lib/schema/definitions/body/date.d.ts +0 -30
  44. package/lib/schema/definitions/body/date.d.ts.map +0 -1
  45. package/lib/schema/definitions/body/date.js +0 -61
  46. package/lib/schema/definitions/body/date.js.map +0 -1
  47. package/lib/schema/definitions/body/index.d.ts +0 -37
  48. package/lib/schema/definitions/body/index.d.ts.map +0 -1
  49. package/lib/schema/definitions/body/index.js +0 -220
  50. package/lib/schema/definitions/body/index.js.map +0 -1
  51. package/lib/schema/definitions/body/keyword.d.ts +0 -48
  52. package/lib/schema/definitions/body/keyword.d.ts.map +0 -1
  53. package/lib/schema/definitions/body/keyword.js +0 -100
  54. package/lib/schema/definitions/body/keyword.js.map +0 -1
  55. package/lib/schema/definitions/body/link.d.ts +0 -21
  56. package/lib/schema/definitions/body/link.d.ts.map +0 -1
  57. package/lib/schema/definitions/body/link.js +0 -37
  58. package/lib/schema/definitions/body/link.js.map +0 -1
  59. package/lib/schema/definitions/body/note.d.ts +0 -27
  60. package/lib/schema/definitions/body/note.d.ts.map +0 -1
  61. package/lib/schema/definitions/body/note.js +0 -54
  62. package/lib/schema/definitions/body/note.js.map +0 -1
  63. package/lib/schema/definitions/body/organization.d.ts +0 -27
  64. package/lib/schema/definitions/body/organization.d.ts.map +0 -1
  65. package/lib/schema/definitions/body/organization.js +0 -65
  66. package/lib/schema/definitions/body/organization.js.map +0 -1
  67. package/lib/schema/definitions/body/person.d.ts +0 -27
  68. package/lib/schema/definitions/body/person.d.ts.map +0 -1
  69. package/lib/schema/definitions/body/person.js +0 -61
  70. package/lib/schema/definitions/body/person.js.map +0 -1
  71. package/lib/schema/definitions/body/physicalThing.d.ts +0 -27
  72. package/lib/schema/definitions/body/physicalThing.d.ts.map +0 -1
  73. package/lib/schema/definitions/body/physicalThing.js +0 -61
  74. package/lib/schema/definitions/body/physicalThing.js.map +0 -1
  75. package/lib/schema/definitions/body/place.d.ts +0 -30
  76. package/lib/schema/definitions/body/place.d.ts.map +0 -1
  77. package/lib/schema/definitions/body/place.js +0 -64
  78. package/lib/schema/definitions/body/place.js.map +0 -1
  79. package/lib/schema/definitions/body/work.d.ts +0 -27
  80. package/lib/schema/definitions/body/work.d.ts.map +0 -1
  81. package/lib/schema/definitions/body/work.js +0 -61
  82. package/lib/schema/definitions/body/work.js.map +0 -1
  83. package/lib/schema/definitions/index.d.ts +0 -22
  84. package/lib/schema/definitions/index.d.ts.map +0 -1
  85. package/lib/schema/definitions/index.js +0 -24
  86. package/lib/schema/definitions/index.js.map +0 -1
  87. package/lib/schema/definitions/target/index.d.ts +0 -710
  88. package/lib/schema/definitions/target/index.d.ts.map +0 -1
  89. package/lib/schema/definitions/target/index.js +0 -231
  90. package/lib/schema/definitions/target/index.js.map +0 -1
  91. package/lib/schema/definitions/target/selector/index.d.ts +0 -5
  92. package/lib/schema/definitions/target/selector/index.d.ts.map +0 -1
  93. package/lib/schema/definitions/target/selector/index.js +0 -5
  94. package/lib/schema/definitions/target/selector/index.js.map +0 -1
  95. package/lib/schema/definitions/target/selector/range.d.ts +0 -141
  96. package/lib/schema/definitions/target/selector/range.d.ts.map +0 -1
  97. package/lib/schema/definitions/target/selector/range.js +0 -44
  98. package/lib/schema/definitions/target/selector/range.js.map +0 -1
  99. package/lib/schema/definitions/target/selector/textPosition.d.ts +0 -21
  100. package/lib/schema/definitions/target/selector/textPosition.d.ts.map +0 -1
  101. package/lib/schema/definitions/target/selector/textPosition.js +0 -57
  102. package/lib/schema/definitions/target/selector/textPosition.js.map +0 -1
  103. package/lib/schema/definitions/target/selector/textQuote.d.ts +0 -297
  104. package/lib/schema/definitions/target/selector/textQuote.d.ts.map +0 -1
  105. package/lib/schema/definitions/target/selector/textQuote.js +0 -78
  106. package/lib/schema/definitions/target/selector/textQuote.js.map +0 -1
  107. package/lib/schema/definitions/target/selector/xpath.d.ts +0 -46
  108. package/lib/schema/definitions/target/selector/xpath.d.ts.map +0 -1
  109. package/lib/schema/definitions/target/selector/xpath.js +0 -51
  110. package/lib/schema/definitions/target/selector/xpath.js.map +0 -1
  111. package/lib/schema/index.d.ts +0 -5
  112. package/lib/schema/index.d.ts.map +0 -1
  113. package/lib/schema/index.js +0 -5
  114. package/lib/schema/index.js.map +0 -1
  115. package/lib/schema/root.d.ts +0 -1076
  116. package/lib/schema/root.d.ts.map +0 -1
  117. package/lib/schema/root.js +0 -408
  118. package/lib/schema/root.js.map +0 -1
  119. package/lib/validation.d.ts +0 -25
  120. package/lib/validation.d.ts.map +0 -1
  121. package/lib/validation.js +0 -35
  122. package/lib/validation.js.map +0 -1
@@ -0,0 +1,2728 @@
1
+ import * as _ajv from 'ajv';
2
+ import { JSONSchemaType } from 'ajv';
3
+ import { z } from 'zod';
4
+ import * as ajv_dist_core from 'ajv/dist/core';
5
+
6
+ declare const VERSION = "v1";
7
+ declare const contextUri = "https://wa.lincsproject.ca/v1/ns/anno.jsonld";
8
+ declare const schemaId = "https://wa.lincsproject.ca/v1/schema.jsonld";
9
+ declare const defsId = "https://wa.lincsproject.ca/v1/defs.jsonld";
10
+
11
+ declare const schemaContext: {
12
+ '@context': {
13
+ bf: string;
14
+ cito: string;
15
+ cwrc: string;
16
+ edit: string;
17
+ fabio: string;
18
+ frbroo: string;
19
+ wikidata: string;
20
+ crm: string;
21
+ crmdig: string;
22
+ certainty: string;
23
+ contributor: string;
24
+ description: string;
25
+ precision: string;
26
+ softwareVersion: string;
27
+ status: string;
28
+ entityType: string;
29
+ addicionalType: string;
30
+ approved: string;
31
+ citing: string;
32
+ correcting: string;
33
+ draft: string;
34
+ published: string;
35
+ };
36
+ };
37
+
38
+ declare const User: z.ZodObject<{
39
+ id: z.ZodUnion<[z.ZodString, z.ZodLiteral<"anonymous">]>;
40
+ type: z.ZodLiteral<"crm:E21_Person">;
41
+ name: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "crm:E21_Person";
44
+ id: string;
45
+ name: string;
46
+ }, {
47
+ type: "crm:E21_Person";
48
+ id: string;
49
+ name: string;
50
+ }>;
51
+ type User = z.infer<typeof User>;
52
+ declare const creatorSchema: JSONSchemaType<User>;
53
+ declare const Software: z.ZodObject<{
54
+ id: z.ZodString;
55
+ type: z.ZodTuple<[z.ZodLiteral<"Software">, z.ZodLiteral<"crm:P16_used_specific_object">], null>;
56
+ label: z.ZodString;
57
+ softwareVersion: z.ZodOptional<z.ZodString>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ type: ["Software", "crm:P16_used_specific_object"];
60
+ id: string;
61
+ label: string;
62
+ softwareVersion?: string | undefined;
63
+ }, {
64
+ type: ["Software", "crm:P16_used_specific_object"];
65
+ id: string;
66
+ label: string;
67
+ softwareVersion?: string | undefined;
68
+ }>;
69
+ type Software = z.infer<typeof Software>;
70
+ declare const softwareSchema: JSONSchemaType<Required<Software>>;
71
+
72
+ declare const PersonEntityType: z.ZodTuple<[z.ZodLiteral<"Person">, z.ZodUnion<[z.ZodLiteral<"crm:E21_Person">, z.ZodLiteral<"crm:E89_Propositional_Object">]>], null>;
73
+ type PersonEntityType = z.infer<typeof PersonEntityType>;
74
+ declare const Person: z.ZodObject<{
75
+ id: z.ZodString;
76
+ entityType: z.ZodTuple<[z.ZodLiteral<"Person">, z.ZodUnion<[z.ZodLiteral<"crm:E21_Person">, z.ZodLiteral<"crm:E89_Propositional_Object">]>], null>;
77
+ certainty: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
78
+ label: z.ZodOptional<z.ZodString>;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ id: string;
82
+ entityType: ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"];
83
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
84
+ label?: string | undefined;
85
+ description?: string | undefined;
86
+ }, {
87
+ id: string;
88
+ entityType: ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"];
89
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
90
+ label?: string | undefined;
91
+ description?: string | undefined;
92
+ }>;
93
+ type Person = z.infer<typeof Person>;
94
+ declare const personEntityTypeSchema: JSONSchemaType<PersonEntityType>;
95
+ declare const personSchema: JSONSchemaType<Person>;
96
+
97
+ declare const Body: z.ZodObject<{
98
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
99
+ type: z.ZodOptional<z.ZodLiteral<"TextualBody">>;
100
+ entityType: z.ZodUnion<[z.ZodTuple<[z.ZodLiteral<"Person">, z.ZodUnion<[z.ZodLiteral<"crm:E21_Person">, z.ZodLiteral<"crm:E89_Propositional_Object">]>], null>, z.ZodUnion<[z.ZodLiteral<"cwrc:place">, z.ZodTuple<[z.ZodLiteral<"cwrc:place">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>, z.ZodTuple<[z.ZodLiteral<"foaf:Organization">, z.ZodUnion<[z.ZodLiteral<"crm:E74_Group">, z.ZodLiteral<"crm:E89_Propositional_Object">]>], null>, z.ZodTuple<[z.ZodLiteral<"crm:E89_Propositional_Object">, z.ZodUnion<[z.ZodLiteral<"frbroo:F1">, z.ZodLiteral<"wikidata:Q15306849">]>], null>, z.ZodUnion<[z.ZodLiteral<"crm:E18_Physical_Thing">, z.ZodTuple<[z.ZodLiteral<"crm:E18_Physical_Thing">, z.ZodLiteral<"wikidata:Q15831596">], null>]>, z.ZodUnion<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodTuple<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodLiteral<"wikidata:Q15831596">], null>]>, z.ZodTuple<[z.ZodLiteral<"cito:Citation">, z.ZodLiteral<"crm:E73_Information_Object">], null>, z.ZodTuple<[z.ZodLiteral<"xsd:date">, z.ZodLiteral<"crm:E52_Time-Span">], null>, z.ZodLiteral<"crm:E33_Linguistic_Object">, z.ZodTuple<[z.ZodLiteral<"fabio:Correction">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>, z.ZodTuple<[z.ZodLiteral<"crm:E55_Type">, z.ZodLiteral<"crmdig:D1_Digital_Object">], null>, z.ZodTuple<[z.ZodLiteral<"crm:E55_Type">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>, z.ZodLiteral<"crmdig:D1_Digital_Object">]>;
101
+ additionalType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
102
+ value: z.ZodOptional<z.ZodString>;
103
+ certainty: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
104
+ precision: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
105
+ label: z.ZodOptional<z.ZodString>;
106
+ description: z.ZodOptional<z.ZodString>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ id: string;
109
+ entityType: ["cito:Citation", "crm:E73_Information_Object"] | "crm:E28_Conceptual_Object" | ["crm:E28_Conceptual_Object", "wikidata:Q15831596"] | ("crm:E28_Conceptual_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | "crm:E33_Linguistic_Object" | ["fabio:Correction", "crm:E33_Linguistic_Object"] | ["xsd:date", "crm:E52_Time-Span"] | "crmdig:D1_Digital_Object" | ["crm:E55_Type", "crmdig:D1_Digital_Object"] | ["crm:E55_Type", "crm:E33_Linguistic_Object"] | ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] | ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] | "crm:E18_Physical_Thing" | ["crm:E18_Physical_Thing", "wikidata:Q15831596"] | ("crm:E18_Physical_Thing" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | "cwrc:place" | ["cwrc:place", "crm:E89_Propositional_Object"] | ("cwrc:place" & ["cwrc:place", "crm:E89_Propositional_Object"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "cwrc:place") | ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E28_Conceptual_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E33_Linguistic_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crmdig:D1_Digital_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E18_Physical_Thing") | (["cito:Citation", "crm:E73_Information_Object"] & "cwrc:place") | ("crm:E28_Conceptual_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E28_Conceptual_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E28_Conceptual_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "cwrc:place") | ("crm:E33_Linguistic_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E28_Conceptual_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E33_Linguistic_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crmdig:D1_Digital_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E18_Physical_Thing") | (["xsd:date", "crm:E52_Time-Span"] & "cwrc:place") | ("crmdig:D1_Digital_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "cwrc:place") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "cwrc:place") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "cwrc:place") | ("crm:E18_Physical_Thing" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E18_Physical_Thing" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "cwrc:place") | ("cwrc:place" & ["cito:Citation", "crm:E73_Information_Object"]) | ("cwrc:place" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("cwrc:place" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["xsd:date", "crm:E52_Time-Span"]) | ("cwrc:place" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("cwrc:place" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("cwrc:place" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E28_Conceptual_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E33_Linguistic_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crmdig:D1_Digital_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "cwrc:place");
110
+ type?: "TextualBody" | undefined;
111
+ additionalType?: string | string[] | undefined;
112
+ value?: string | undefined;
113
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
114
+ precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
115
+ label?: string | undefined;
116
+ description?: string | undefined;
117
+ }, {
118
+ id: string;
119
+ entityType: ["cito:Citation", "crm:E73_Information_Object"] | "crm:E28_Conceptual_Object" | ["crm:E28_Conceptual_Object", "wikidata:Q15831596"] | ("crm:E28_Conceptual_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | "crm:E33_Linguistic_Object" | ["fabio:Correction", "crm:E33_Linguistic_Object"] | ["xsd:date", "crm:E52_Time-Span"] | "crmdig:D1_Digital_Object" | ["crm:E55_Type", "crmdig:D1_Digital_Object"] | ["crm:E55_Type", "crm:E33_Linguistic_Object"] | ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] | ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] | "crm:E18_Physical_Thing" | ["crm:E18_Physical_Thing", "wikidata:Q15831596"] | ("crm:E18_Physical_Thing" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | "cwrc:place" | ["cwrc:place", "crm:E89_Propositional_Object"] | ("cwrc:place" & ["cwrc:place", "crm:E89_Propositional_Object"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "cwrc:place") | ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E28_Conceptual_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E33_Linguistic_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crmdig:D1_Digital_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E18_Physical_Thing") | (["cito:Citation", "crm:E73_Information_Object"] & "cwrc:place") | ("crm:E28_Conceptual_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E28_Conceptual_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E28_Conceptual_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "cwrc:place") | ("crm:E33_Linguistic_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E28_Conceptual_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E33_Linguistic_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crmdig:D1_Digital_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E18_Physical_Thing") | (["xsd:date", "crm:E52_Time-Span"] & "cwrc:place") | ("crmdig:D1_Digital_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "cwrc:place") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "cwrc:place") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "cwrc:place") | ("crm:E18_Physical_Thing" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E18_Physical_Thing" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "cwrc:place") | ("cwrc:place" & ["cito:Citation", "crm:E73_Information_Object"]) | ("cwrc:place" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("cwrc:place" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["xsd:date", "crm:E52_Time-Span"]) | ("cwrc:place" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("cwrc:place" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("cwrc:place" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E28_Conceptual_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E33_Linguistic_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crmdig:D1_Digital_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "cwrc:place");
120
+ type?: "TextualBody" | undefined;
121
+ additionalType?: string | string[] | undefined;
122
+ value?: string | undefined;
123
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
124
+ precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
125
+ label?: string | undefined;
126
+ description?: string | undefined;
127
+ }>;
128
+ type Body = z.infer<typeof Body>;
129
+ declare const bodySchema: JSONSchemaType<Required<Body>>;
130
+
131
+ declare const Target: z.ZodObject<{
132
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
133
+ type: z.ZodTuple<[z.ZodLiteral<"SpecificResource">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
134
+ format: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
+ language: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ title: z.ZodOptional<z.ZodString>;
137
+ renderedVia: z.ZodOptional<z.ZodObject<{
138
+ id: z.ZodString;
139
+ type: z.ZodTuple<[z.ZodLiteral<"Software">, z.ZodLiteral<"crm:P16_used_specific_object">], null>;
140
+ label: z.ZodString;
141
+ softwareVersion: z.ZodOptional<z.ZodString>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ type: ["Software", "crm:P16_used_specific_object"];
144
+ id: string;
145
+ label: string;
146
+ softwareVersion?: string | undefined;
147
+ }, {
148
+ type: ["Software", "crm:P16_used_specific_object"];
149
+ id: string;
150
+ label: string;
151
+ softwareVersion?: string | undefined;
152
+ }>>;
153
+ selector: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
154
+ id: z.ZodString;
155
+ type: z.ZodTuple<[z.ZodLiteral<"TextQuoteSelector">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
156
+ exact: z.ZodString;
157
+ prefix: z.ZodOptional<z.ZodString>;
158
+ sufix: z.ZodOptional<z.ZodString>;
159
+ refinedBy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
160
+ id: z.ZodString;
161
+ type: z.ZodTuple<[z.ZodLiteral<"RangeSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
162
+ startSelector: z.ZodObject<{
163
+ id: z.ZodString;
164
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
165
+ value: z.ZodString;
166
+ refinedBy: z.ZodOptional<z.ZodObject<{
167
+ id: z.ZodString;
168
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
169
+ start: z.ZodNumber;
170
+ end: z.ZodNumber;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
173
+ id: string;
174
+ start: number;
175
+ end: number;
176
+ }, {
177
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
178
+ id: string;
179
+ start: number;
180
+ end: number;
181
+ }>>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ value: string;
184
+ type: ["XPathSelector", "crm:E73_Information_Object"];
185
+ id: string;
186
+ refinedBy?: {
187
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
188
+ id: string;
189
+ start: number;
190
+ end: number;
191
+ } | undefined;
192
+ }, {
193
+ value: string;
194
+ type: ["XPathSelector", "crm:E73_Information_Object"];
195
+ id: string;
196
+ refinedBy?: {
197
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
198
+ id: string;
199
+ start: number;
200
+ end: number;
201
+ } | undefined;
202
+ }>;
203
+ endSelector: z.ZodObject<{
204
+ id: z.ZodString;
205
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
206
+ value: z.ZodString;
207
+ refinedBy: z.ZodOptional<z.ZodObject<{
208
+ id: z.ZodString;
209
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
210
+ start: z.ZodNumber;
211
+ end: z.ZodNumber;
212
+ }, "strip", z.ZodTypeAny, {
213
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
214
+ id: string;
215
+ start: number;
216
+ end: number;
217
+ }, {
218
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
219
+ id: string;
220
+ start: number;
221
+ end: number;
222
+ }>>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ value: string;
225
+ type: ["XPathSelector", "crm:E73_Information_Object"];
226
+ id: string;
227
+ refinedBy?: {
228
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
229
+ id: string;
230
+ start: number;
231
+ end: number;
232
+ } | undefined;
233
+ }, {
234
+ value: string;
235
+ type: ["XPathSelector", "crm:E73_Information_Object"];
236
+ id: string;
237
+ refinedBy?: {
238
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
239
+ id: string;
240
+ start: number;
241
+ end: number;
242
+ } | undefined;
243
+ }>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ type: ["RangeSelector", "crm:E73_Information_Object"];
246
+ id: string;
247
+ startSelector: {
248
+ value: string;
249
+ type: ["XPathSelector", "crm:E73_Information_Object"];
250
+ id: string;
251
+ refinedBy?: {
252
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
253
+ id: string;
254
+ start: number;
255
+ end: number;
256
+ } | undefined;
257
+ };
258
+ endSelector: {
259
+ value: string;
260
+ type: ["XPathSelector", "crm:E73_Information_Object"];
261
+ id: string;
262
+ refinedBy?: {
263
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
264
+ id: string;
265
+ start: number;
266
+ end: number;
267
+ } | undefined;
268
+ };
269
+ }, {
270
+ type: ["RangeSelector", "crm:E73_Information_Object"];
271
+ id: string;
272
+ startSelector: {
273
+ value: string;
274
+ type: ["XPathSelector", "crm:E73_Information_Object"];
275
+ id: string;
276
+ refinedBy?: {
277
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
278
+ id: string;
279
+ start: number;
280
+ end: number;
281
+ } | undefined;
282
+ };
283
+ endSelector: {
284
+ value: string;
285
+ type: ["XPathSelector", "crm:E73_Information_Object"];
286
+ id: string;
287
+ refinedBy?: {
288
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
289
+ id: string;
290
+ start: number;
291
+ end: number;
292
+ } | undefined;
293
+ };
294
+ }>, z.ZodObject<{
295
+ id: z.ZodString;
296
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
297
+ value: z.ZodString;
298
+ refinedBy: z.ZodOptional<z.ZodObject<{
299
+ id: z.ZodString;
300
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
301
+ start: z.ZodNumber;
302
+ end: z.ZodNumber;
303
+ }, "strip", z.ZodTypeAny, {
304
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
305
+ id: string;
306
+ start: number;
307
+ end: number;
308
+ }, {
309
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
310
+ id: string;
311
+ start: number;
312
+ end: number;
313
+ }>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ value: string;
316
+ type: ["XPathSelector", "crm:E73_Information_Object"];
317
+ id: string;
318
+ refinedBy?: {
319
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
320
+ id: string;
321
+ start: number;
322
+ end: number;
323
+ } | undefined;
324
+ }, {
325
+ value: string;
326
+ type: ["XPathSelector", "crm:E73_Information_Object"];
327
+ id: string;
328
+ refinedBy?: {
329
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
330
+ id: string;
331
+ start: number;
332
+ end: number;
333
+ } | undefined;
334
+ }>, z.ZodObject<{
335
+ id: z.ZodString;
336
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
337
+ start: z.ZodNumber;
338
+ end: z.ZodNumber;
339
+ }, "strip", z.ZodTypeAny, {
340
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
341
+ id: string;
342
+ start: number;
343
+ end: number;
344
+ }, {
345
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
346
+ id: string;
347
+ start: number;
348
+ end: number;
349
+ }>]>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ exact: string;
352
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
353
+ id: string;
354
+ prefix?: string | undefined;
355
+ sufix?: string | undefined;
356
+ refinedBy?: {
357
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
358
+ id: string;
359
+ start: number;
360
+ end: number;
361
+ } | {
362
+ value: string;
363
+ type: ["XPathSelector", "crm:E73_Information_Object"];
364
+ id: string;
365
+ refinedBy?: {
366
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
367
+ id: string;
368
+ start: number;
369
+ end: number;
370
+ } | undefined;
371
+ } | {
372
+ type: ["RangeSelector", "crm:E73_Information_Object"];
373
+ id: string;
374
+ startSelector: {
375
+ value: string;
376
+ type: ["XPathSelector", "crm:E73_Information_Object"];
377
+ id: string;
378
+ refinedBy?: {
379
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
380
+ id: string;
381
+ start: number;
382
+ end: number;
383
+ } | undefined;
384
+ };
385
+ endSelector: {
386
+ value: string;
387
+ type: ["XPathSelector", "crm:E73_Information_Object"];
388
+ id: string;
389
+ refinedBy?: {
390
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
391
+ id: string;
392
+ start: number;
393
+ end: number;
394
+ } | undefined;
395
+ };
396
+ } | undefined;
397
+ }, {
398
+ exact: string;
399
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
400
+ id: string;
401
+ prefix?: string | undefined;
402
+ sufix?: string | undefined;
403
+ refinedBy?: {
404
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
405
+ id: string;
406
+ start: number;
407
+ end: number;
408
+ } | {
409
+ value: string;
410
+ type: ["XPathSelector", "crm:E73_Information_Object"];
411
+ id: string;
412
+ refinedBy?: {
413
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
414
+ id: string;
415
+ start: number;
416
+ end: number;
417
+ } | undefined;
418
+ } | {
419
+ type: ["RangeSelector", "crm:E73_Information_Object"];
420
+ id: string;
421
+ startSelector: {
422
+ value: string;
423
+ type: ["XPathSelector", "crm:E73_Information_Object"];
424
+ id: string;
425
+ refinedBy?: {
426
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
427
+ id: string;
428
+ start: number;
429
+ end: number;
430
+ } | undefined;
431
+ };
432
+ endSelector: {
433
+ value: string;
434
+ type: ["XPathSelector", "crm:E73_Information_Object"];
435
+ id: string;
436
+ refinedBy?: {
437
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
438
+ id: string;
439
+ start: number;
440
+ end: number;
441
+ } | undefined;
442
+ };
443
+ } | undefined;
444
+ }>, z.ZodObject<{
445
+ id: z.ZodString;
446
+ type: z.ZodTuple<[z.ZodLiteral<"RangeSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
447
+ startSelector: z.ZodObject<{
448
+ id: z.ZodString;
449
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
450
+ value: z.ZodString;
451
+ refinedBy: z.ZodOptional<z.ZodObject<{
452
+ id: z.ZodString;
453
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
454
+ start: z.ZodNumber;
455
+ end: z.ZodNumber;
456
+ }, "strip", z.ZodTypeAny, {
457
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
458
+ id: string;
459
+ start: number;
460
+ end: number;
461
+ }, {
462
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
463
+ id: string;
464
+ start: number;
465
+ end: number;
466
+ }>>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ value: string;
469
+ type: ["XPathSelector", "crm:E73_Information_Object"];
470
+ id: string;
471
+ refinedBy?: {
472
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
473
+ id: string;
474
+ start: number;
475
+ end: number;
476
+ } | undefined;
477
+ }, {
478
+ value: string;
479
+ type: ["XPathSelector", "crm:E73_Information_Object"];
480
+ id: string;
481
+ refinedBy?: {
482
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
483
+ id: string;
484
+ start: number;
485
+ end: number;
486
+ } | undefined;
487
+ }>;
488
+ endSelector: z.ZodObject<{
489
+ id: z.ZodString;
490
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
491
+ value: z.ZodString;
492
+ refinedBy: z.ZodOptional<z.ZodObject<{
493
+ id: z.ZodString;
494
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
495
+ start: z.ZodNumber;
496
+ end: z.ZodNumber;
497
+ }, "strip", z.ZodTypeAny, {
498
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
499
+ id: string;
500
+ start: number;
501
+ end: number;
502
+ }, {
503
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
504
+ id: string;
505
+ start: number;
506
+ end: number;
507
+ }>>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ value: string;
510
+ type: ["XPathSelector", "crm:E73_Information_Object"];
511
+ id: string;
512
+ refinedBy?: {
513
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
514
+ id: string;
515
+ start: number;
516
+ end: number;
517
+ } | undefined;
518
+ }, {
519
+ value: string;
520
+ type: ["XPathSelector", "crm:E73_Information_Object"];
521
+ id: string;
522
+ refinedBy?: {
523
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
524
+ id: string;
525
+ start: number;
526
+ end: number;
527
+ } | undefined;
528
+ }>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: ["RangeSelector", "crm:E73_Information_Object"];
531
+ id: string;
532
+ startSelector: {
533
+ value: string;
534
+ type: ["XPathSelector", "crm:E73_Information_Object"];
535
+ id: string;
536
+ refinedBy?: {
537
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
538
+ id: string;
539
+ start: number;
540
+ end: number;
541
+ } | undefined;
542
+ };
543
+ endSelector: {
544
+ value: string;
545
+ type: ["XPathSelector", "crm:E73_Information_Object"];
546
+ id: string;
547
+ refinedBy?: {
548
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
549
+ id: string;
550
+ start: number;
551
+ end: number;
552
+ } | undefined;
553
+ };
554
+ }, {
555
+ type: ["RangeSelector", "crm:E73_Information_Object"];
556
+ id: string;
557
+ startSelector: {
558
+ value: string;
559
+ type: ["XPathSelector", "crm:E73_Information_Object"];
560
+ id: string;
561
+ refinedBy?: {
562
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
563
+ id: string;
564
+ start: number;
565
+ end: number;
566
+ } | undefined;
567
+ };
568
+ endSelector: {
569
+ value: string;
570
+ type: ["XPathSelector", "crm:E73_Information_Object"];
571
+ id: string;
572
+ refinedBy?: {
573
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
574
+ id: string;
575
+ start: number;
576
+ end: number;
577
+ } | undefined;
578
+ };
579
+ }>, z.ZodObject<{
580
+ id: z.ZodString;
581
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
582
+ value: z.ZodString;
583
+ refinedBy: z.ZodOptional<z.ZodObject<{
584
+ id: z.ZodString;
585
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
586
+ start: z.ZodNumber;
587
+ end: z.ZodNumber;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
590
+ id: string;
591
+ start: number;
592
+ end: number;
593
+ }, {
594
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
595
+ id: string;
596
+ start: number;
597
+ end: number;
598
+ }>>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ value: string;
601
+ type: ["XPathSelector", "crm:E73_Information_Object"];
602
+ id: string;
603
+ refinedBy?: {
604
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
605
+ id: string;
606
+ start: number;
607
+ end: number;
608
+ } | undefined;
609
+ }, {
610
+ value: string;
611
+ type: ["XPathSelector", "crm:E73_Information_Object"];
612
+ id: string;
613
+ refinedBy?: {
614
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
615
+ id: string;
616
+ start: number;
617
+ end: number;
618
+ } | undefined;
619
+ }>, z.ZodObject<{
620
+ id: z.ZodString;
621
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
622
+ start: z.ZodNumber;
623
+ end: z.ZodNumber;
624
+ }, "strip", z.ZodTypeAny, {
625
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
626
+ id: string;
627
+ start: number;
628
+ end: number;
629
+ }, {
630
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
631
+ id: string;
632
+ start: number;
633
+ end: number;
634
+ }>]>>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ type: ["SpecificResource", "crm:E73_Information_Object"];
637
+ id: string;
638
+ format?: string[] | undefined;
639
+ language?: string[] | undefined;
640
+ title?: string | undefined;
641
+ renderedVia?: {
642
+ type: ["Software", "crm:P16_used_specific_object"];
643
+ id: string;
644
+ label: string;
645
+ softwareVersion?: string | undefined;
646
+ } | undefined;
647
+ selector?: {
648
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
649
+ id: string;
650
+ start: number;
651
+ end: number;
652
+ } | {
653
+ value: string;
654
+ type: ["XPathSelector", "crm:E73_Information_Object"];
655
+ id: string;
656
+ refinedBy?: {
657
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
658
+ id: string;
659
+ start: number;
660
+ end: number;
661
+ } | undefined;
662
+ } | {
663
+ type: ["RangeSelector", "crm:E73_Information_Object"];
664
+ id: string;
665
+ startSelector: {
666
+ value: string;
667
+ type: ["XPathSelector", "crm:E73_Information_Object"];
668
+ id: string;
669
+ refinedBy?: {
670
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
671
+ id: string;
672
+ start: number;
673
+ end: number;
674
+ } | undefined;
675
+ };
676
+ endSelector: {
677
+ value: string;
678
+ type: ["XPathSelector", "crm:E73_Information_Object"];
679
+ id: string;
680
+ refinedBy?: {
681
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
682
+ id: string;
683
+ start: number;
684
+ end: number;
685
+ } | undefined;
686
+ };
687
+ } | {
688
+ exact: string;
689
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
690
+ id: string;
691
+ prefix?: string | undefined;
692
+ sufix?: string | undefined;
693
+ refinedBy?: {
694
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
695
+ id: string;
696
+ start: number;
697
+ end: number;
698
+ } | {
699
+ value: string;
700
+ type: ["XPathSelector", "crm:E73_Information_Object"];
701
+ id: string;
702
+ refinedBy?: {
703
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
704
+ id: string;
705
+ start: number;
706
+ end: number;
707
+ } | undefined;
708
+ } | {
709
+ type: ["RangeSelector", "crm:E73_Information_Object"];
710
+ id: string;
711
+ startSelector: {
712
+ value: string;
713
+ type: ["XPathSelector", "crm:E73_Information_Object"];
714
+ id: string;
715
+ refinedBy?: {
716
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
717
+ id: string;
718
+ start: number;
719
+ end: number;
720
+ } | undefined;
721
+ };
722
+ endSelector: {
723
+ value: string;
724
+ type: ["XPathSelector", "crm:E73_Information_Object"];
725
+ id: string;
726
+ refinedBy?: {
727
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
728
+ id: string;
729
+ start: number;
730
+ end: number;
731
+ } | undefined;
732
+ };
733
+ } | undefined;
734
+ } | undefined;
735
+ }, {
736
+ type: ["SpecificResource", "crm:E73_Information_Object"];
737
+ id: string;
738
+ format?: string[] | undefined;
739
+ language?: string[] | undefined;
740
+ title?: string | undefined;
741
+ renderedVia?: {
742
+ type: ["Software", "crm:P16_used_specific_object"];
743
+ id: string;
744
+ label: string;
745
+ softwareVersion?: string | undefined;
746
+ } | undefined;
747
+ selector?: {
748
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
749
+ id: string;
750
+ start: number;
751
+ end: number;
752
+ } | {
753
+ value: string;
754
+ type: ["XPathSelector", "crm:E73_Information_Object"];
755
+ id: string;
756
+ refinedBy?: {
757
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
758
+ id: string;
759
+ start: number;
760
+ end: number;
761
+ } | undefined;
762
+ } | {
763
+ type: ["RangeSelector", "crm:E73_Information_Object"];
764
+ id: string;
765
+ startSelector: {
766
+ value: string;
767
+ type: ["XPathSelector", "crm:E73_Information_Object"];
768
+ id: string;
769
+ refinedBy?: {
770
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
771
+ id: string;
772
+ start: number;
773
+ end: number;
774
+ } | undefined;
775
+ };
776
+ endSelector: {
777
+ value: string;
778
+ type: ["XPathSelector", "crm:E73_Information_Object"];
779
+ id: string;
780
+ refinedBy?: {
781
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
782
+ id: string;
783
+ start: number;
784
+ end: number;
785
+ } | undefined;
786
+ };
787
+ } | {
788
+ exact: string;
789
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
790
+ id: string;
791
+ prefix?: string | undefined;
792
+ sufix?: string | undefined;
793
+ refinedBy?: {
794
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
795
+ id: string;
796
+ start: number;
797
+ end: number;
798
+ } | {
799
+ value: string;
800
+ type: ["XPathSelector", "crm:E73_Information_Object"];
801
+ id: string;
802
+ refinedBy?: {
803
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
804
+ id: string;
805
+ start: number;
806
+ end: number;
807
+ } | undefined;
808
+ } | {
809
+ type: ["RangeSelector", "crm:E73_Information_Object"];
810
+ id: string;
811
+ startSelector: {
812
+ value: string;
813
+ type: ["XPathSelector", "crm:E73_Information_Object"];
814
+ id: string;
815
+ refinedBy?: {
816
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
817
+ id: string;
818
+ start: number;
819
+ end: number;
820
+ } | undefined;
821
+ };
822
+ endSelector: {
823
+ value: string;
824
+ type: ["XPathSelector", "crm:E73_Information_Object"];
825
+ id: string;
826
+ refinedBy?: {
827
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
828
+ id: string;
829
+ start: number;
830
+ end: number;
831
+ } | undefined;
832
+ };
833
+ } | undefined;
834
+ } | undefined;
835
+ }>;
836
+ type Target = z.infer<typeof Target>;
837
+ declare const targetSchema: JSONSchemaType<Required<Target>>;
838
+
839
+ declare const RangeSelector: z.ZodObject<{
840
+ id: z.ZodString;
841
+ type: z.ZodTuple<[z.ZodLiteral<"RangeSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
842
+ startSelector: z.ZodObject<{
843
+ id: z.ZodString;
844
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
845
+ value: z.ZodString;
846
+ refinedBy: z.ZodOptional<z.ZodObject<{
847
+ id: z.ZodString;
848
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
849
+ start: z.ZodNumber;
850
+ end: z.ZodNumber;
851
+ }, "strip", z.ZodTypeAny, {
852
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
853
+ id: string;
854
+ start: number;
855
+ end: number;
856
+ }, {
857
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
858
+ id: string;
859
+ start: number;
860
+ end: number;
861
+ }>>;
862
+ }, "strip", z.ZodTypeAny, {
863
+ value: string;
864
+ type: ["XPathSelector", "crm:E73_Information_Object"];
865
+ id: string;
866
+ refinedBy?: {
867
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
868
+ id: string;
869
+ start: number;
870
+ end: number;
871
+ } | undefined;
872
+ }, {
873
+ value: string;
874
+ type: ["XPathSelector", "crm:E73_Information_Object"];
875
+ id: string;
876
+ refinedBy?: {
877
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
878
+ id: string;
879
+ start: number;
880
+ end: number;
881
+ } | undefined;
882
+ }>;
883
+ endSelector: z.ZodObject<{
884
+ id: z.ZodString;
885
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
886
+ value: z.ZodString;
887
+ refinedBy: z.ZodOptional<z.ZodObject<{
888
+ id: z.ZodString;
889
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
890
+ start: z.ZodNumber;
891
+ end: z.ZodNumber;
892
+ }, "strip", z.ZodTypeAny, {
893
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
894
+ id: string;
895
+ start: number;
896
+ end: number;
897
+ }, {
898
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
899
+ id: string;
900
+ start: number;
901
+ end: number;
902
+ }>>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ value: string;
905
+ type: ["XPathSelector", "crm:E73_Information_Object"];
906
+ id: string;
907
+ refinedBy?: {
908
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
909
+ id: string;
910
+ start: number;
911
+ end: number;
912
+ } | undefined;
913
+ }, {
914
+ value: string;
915
+ type: ["XPathSelector", "crm:E73_Information_Object"];
916
+ id: string;
917
+ refinedBy?: {
918
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
919
+ id: string;
920
+ start: number;
921
+ end: number;
922
+ } | undefined;
923
+ }>;
924
+ }, "strip", z.ZodTypeAny, {
925
+ type: ["RangeSelector", "crm:E73_Information_Object"];
926
+ id: string;
927
+ startSelector: {
928
+ value: string;
929
+ type: ["XPathSelector", "crm:E73_Information_Object"];
930
+ id: string;
931
+ refinedBy?: {
932
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
933
+ id: string;
934
+ start: number;
935
+ end: number;
936
+ } | undefined;
937
+ };
938
+ endSelector: {
939
+ value: string;
940
+ type: ["XPathSelector", "crm:E73_Information_Object"];
941
+ id: string;
942
+ refinedBy?: {
943
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
944
+ id: string;
945
+ start: number;
946
+ end: number;
947
+ } | undefined;
948
+ };
949
+ }, {
950
+ type: ["RangeSelector", "crm:E73_Information_Object"];
951
+ id: string;
952
+ startSelector: {
953
+ value: string;
954
+ type: ["XPathSelector", "crm:E73_Information_Object"];
955
+ id: string;
956
+ refinedBy?: {
957
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
958
+ id: string;
959
+ start: number;
960
+ end: number;
961
+ } | undefined;
962
+ };
963
+ endSelector: {
964
+ value: string;
965
+ type: ["XPathSelector", "crm:E73_Information_Object"];
966
+ id: string;
967
+ refinedBy?: {
968
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
969
+ id: string;
970
+ start: number;
971
+ end: number;
972
+ } | undefined;
973
+ };
974
+ }>;
975
+ type RangeSelector = z.infer<typeof RangeSelector>;
976
+
977
+ declare const TextPositionSelector: z.ZodObject<{
978
+ id: z.ZodString;
979
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
980
+ start: z.ZodNumber;
981
+ end: z.ZodNumber;
982
+ }, "strip", z.ZodTypeAny, {
983
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
984
+ id: string;
985
+ start: number;
986
+ end: number;
987
+ }, {
988
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
989
+ id: string;
990
+ start: number;
991
+ end: number;
992
+ }>;
993
+ type TextPositionSelector = z.infer<typeof TextPositionSelector>;
994
+
995
+ declare const TextQuoteSelector: z.ZodObject<{
996
+ id: z.ZodString;
997
+ type: z.ZodTuple<[z.ZodLiteral<"TextQuoteSelector">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
998
+ exact: z.ZodString;
999
+ prefix: z.ZodOptional<z.ZodString>;
1000
+ sufix: z.ZodOptional<z.ZodString>;
1001
+ refinedBy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1002
+ id: z.ZodString;
1003
+ type: z.ZodTuple<[z.ZodLiteral<"RangeSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1004
+ startSelector: z.ZodObject<{
1005
+ id: z.ZodString;
1006
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1007
+ value: z.ZodString;
1008
+ refinedBy: z.ZodOptional<z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1011
+ start: z.ZodNumber;
1012
+ end: z.ZodNumber;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1015
+ id: string;
1016
+ start: number;
1017
+ end: number;
1018
+ }, {
1019
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1020
+ id: string;
1021
+ start: number;
1022
+ end: number;
1023
+ }>>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ value: string;
1026
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1027
+ id: string;
1028
+ refinedBy?: {
1029
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1030
+ id: string;
1031
+ start: number;
1032
+ end: number;
1033
+ } | undefined;
1034
+ }, {
1035
+ value: string;
1036
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1037
+ id: string;
1038
+ refinedBy?: {
1039
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1040
+ id: string;
1041
+ start: number;
1042
+ end: number;
1043
+ } | undefined;
1044
+ }>;
1045
+ endSelector: z.ZodObject<{
1046
+ id: z.ZodString;
1047
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1048
+ value: z.ZodString;
1049
+ refinedBy: z.ZodOptional<z.ZodObject<{
1050
+ id: z.ZodString;
1051
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1052
+ start: z.ZodNumber;
1053
+ end: z.ZodNumber;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1056
+ id: string;
1057
+ start: number;
1058
+ end: number;
1059
+ }, {
1060
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1061
+ id: string;
1062
+ start: number;
1063
+ end: number;
1064
+ }>>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ value: string;
1067
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1068
+ id: string;
1069
+ refinedBy?: {
1070
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1071
+ id: string;
1072
+ start: number;
1073
+ end: number;
1074
+ } | undefined;
1075
+ }, {
1076
+ value: string;
1077
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1078
+ id: string;
1079
+ refinedBy?: {
1080
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1081
+ id: string;
1082
+ start: number;
1083
+ end: number;
1084
+ } | undefined;
1085
+ }>;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1088
+ id: string;
1089
+ startSelector: {
1090
+ value: string;
1091
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1092
+ id: string;
1093
+ refinedBy?: {
1094
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1095
+ id: string;
1096
+ start: number;
1097
+ end: number;
1098
+ } | undefined;
1099
+ };
1100
+ endSelector: {
1101
+ value: string;
1102
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1103
+ id: string;
1104
+ refinedBy?: {
1105
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1106
+ id: string;
1107
+ start: number;
1108
+ end: number;
1109
+ } | undefined;
1110
+ };
1111
+ }, {
1112
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1113
+ id: string;
1114
+ startSelector: {
1115
+ value: string;
1116
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1117
+ id: string;
1118
+ refinedBy?: {
1119
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1120
+ id: string;
1121
+ start: number;
1122
+ end: number;
1123
+ } | undefined;
1124
+ };
1125
+ endSelector: {
1126
+ value: string;
1127
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1128
+ id: string;
1129
+ refinedBy?: {
1130
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1131
+ id: string;
1132
+ start: number;
1133
+ end: number;
1134
+ } | undefined;
1135
+ };
1136
+ }>, z.ZodObject<{
1137
+ id: z.ZodString;
1138
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1139
+ value: z.ZodString;
1140
+ refinedBy: z.ZodOptional<z.ZodObject<{
1141
+ id: z.ZodString;
1142
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1143
+ start: z.ZodNumber;
1144
+ end: z.ZodNumber;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1147
+ id: string;
1148
+ start: number;
1149
+ end: number;
1150
+ }, {
1151
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1152
+ id: string;
1153
+ start: number;
1154
+ end: number;
1155
+ }>>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ value: string;
1158
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1159
+ id: string;
1160
+ refinedBy?: {
1161
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1162
+ id: string;
1163
+ start: number;
1164
+ end: number;
1165
+ } | undefined;
1166
+ }, {
1167
+ value: string;
1168
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1169
+ id: string;
1170
+ refinedBy?: {
1171
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1172
+ id: string;
1173
+ start: number;
1174
+ end: number;
1175
+ } | undefined;
1176
+ }>, z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1179
+ start: z.ZodNumber;
1180
+ end: z.ZodNumber;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1183
+ id: string;
1184
+ start: number;
1185
+ end: number;
1186
+ }, {
1187
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1188
+ id: string;
1189
+ start: number;
1190
+ end: number;
1191
+ }>]>>;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ exact: string;
1194
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
1195
+ id: string;
1196
+ prefix?: string | undefined;
1197
+ sufix?: string | undefined;
1198
+ refinedBy?: {
1199
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1200
+ id: string;
1201
+ start: number;
1202
+ end: number;
1203
+ } | {
1204
+ value: string;
1205
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1206
+ id: string;
1207
+ refinedBy?: {
1208
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1209
+ id: string;
1210
+ start: number;
1211
+ end: number;
1212
+ } | undefined;
1213
+ } | {
1214
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1215
+ id: string;
1216
+ startSelector: {
1217
+ value: string;
1218
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1219
+ id: string;
1220
+ refinedBy?: {
1221
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1222
+ id: string;
1223
+ start: number;
1224
+ end: number;
1225
+ } | undefined;
1226
+ };
1227
+ endSelector: {
1228
+ value: string;
1229
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1230
+ id: string;
1231
+ refinedBy?: {
1232
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1233
+ id: string;
1234
+ start: number;
1235
+ end: number;
1236
+ } | undefined;
1237
+ };
1238
+ } | undefined;
1239
+ }, {
1240
+ exact: string;
1241
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
1242
+ id: string;
1243
+ prefix?: string | undefined;
1244
+ sufix?: string | undefined;
1245
+ refinedBy?: {
1246
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1247
+ id: string;
1248
+ start: number;
1249
+ end: number;
1250
+ } | {
1251
+ value: string;
1252
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1253
+ id: string;
1254
+ refinedBy?: {
1255
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1256
+ id: string;
1257
+ start: number;
1258
+ end: number;
1259
+ } | undefined;
1260
+ } | {
1261
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1262
+ id: string;
1263
+ startSelector: {
1264
+ value: string;
1265
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1266
+ id: string;
1267
+ refinedBy?: {
1268
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1269
+ id: string;
1270
+ start: number;
1271
+ end: number;
1272
+ } | undefined;
1273
+ };
1274
+ endSelector: {
1275
+ value: string;
1276
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1277
+ id: string;
1278
+ refinedBy?: {
1279
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1280
+ id: string;
1281
+ start: number;
1282
+ end: number;
1283
+ } | undefined;
1284
+ };
1285
+ } | undefined;
1286
+ }>;
1287
+ type TextQuoteSelector = z.infer<typeof TextQuoteSelector>;
1288
+
1289
+ declare const XpathSelector: z.ZodObject<{
1290
+ id: z.ZodString;
1291
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1292
+ value: z.ZodString;
1293
+ refinedBy: z.ZodOptional<z.ZodObject<{
1294
+ id: z.ZodString;
1295
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1296
+ start: z.ZodNumber;
1297
+ end: z.ZodNumber;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1300
+ id: string;
1301
+ start: number;
1302
+ end: number;
1303
+ }, {
1304
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1305
+ id: string;
1306
+ start: number;
1307
+ end: number;
1308
+ }>>;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ value: string;
1311
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1312
+ id: string;
1313
+ refinedBy?: {
1314
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1315
+ id: string;
1316
+ start: number;
1317
+ end: number;
1318
+ } | undefined;
1319
+ }, {
1320
+ value: string;
1321
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1322
+ id: string;
1323
+ refinedBy?: {
1324
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1325
+ id: string;
1326
+ start: number;
1327
+ end: number;
1328
+ } | undefined;
1329
+ }>;
1330
+ type XpathSelector = z.infer<typeof XpathSelector>;
1331
+
1332
+ interface Definition {
1333
+ definitions: {
1334
+ creator: JSONSchemaType<User>;
1335
+ software: JSONSchemaType<Software>;
1336
+ target: JSONSchemaType<Target>;
1337
+ textQuoteSelector: JSONSchemaType<TextQuoteSelector>;
1338
+ rangeSelector: JSONSchemaType<RangeSelector>;
1339
+ xpathSelector: JSONSchemaType<XpathSelector>;
1340
+ textPositionSelector: JSONSchemaType<TextPositionSelector>;
1341
+ body: JSONSchemaType<Body>;
1342
+ };
1343
+ }
1344
+ declare const definitionSchema: JSONSchemaType<Definition>;
1345
+
1346
+ declare const Status: readonly ["draft", "approved", "published"];
1347
+ type Status = (typeof Status)[number];
1348
+ declare const Motivation: readonly ["identifying", "describing", "correcting", "tagging", "classifying", "linking", "citing"];
1349
+ type Motivation = (typeof Motivation)[number];
1350
+ declare const WebAnnotation: z.ZodObject<{
1351
+ '@context': z.ZodTuple<[z.ZodLiteral<"http://www.w3.org/ns/anno.jsonld">, z.ZodLiteral<"https://wa.lincsproject.ca/v1/ns/anno.jsonld">], null>;
1352
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1353
+ type: z.ZodTuple<[z.ZodLiteral<"Annotation">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
1354
+ motivation: z.ZodTuple<[z.ZodEnum<["identifying", "describing", "correcting", "tagging", "classifying", "linking", "citing"]>, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
1355
+ created: z.ZodString;
1356
+ modified: z.ZodOptional<z.ZodString>;
1357
+ status: z.ZodEnum<["draft", "approved", "published"]>;
1358
+ creator: z.ZodObject<{
1359
+ id: z.ZodUnion<[z.ZodString, z.ZodLiteral<"anonymous">]>;
1360
+ type: z.ZodLiteral<"crm:E21_Person">;
1361
+ name: z.ZodString;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ type: "crm:E21_Person";
1364
+ id: string;
1365
+ name: string;
1366
+ }, {
1367
+ type: "crm:E21_Person";
1368
+ id: string;
1369
+ name: string;
1370
+ }>;
1371
+ contributor: z.ZodOptional<z.ZodArray<z.ZodObject<{
1372
+ id: z.ZodUnion<[z.ZodString, z.ZodLiteral<"anonymous">]>;
1373
+ type: z.ZodLiteral<"crm:E21_Person">;
1374
+ name: z.ZodString;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ type: "crm:E21_Person";
1377
+ id: string;
1378
+ name: string;
1379
+ }, {
1380
+ type: "crm:E21_Person";
1381
+ id: string;
1382
+ name: string;
1383
+ }>, "atleastone">>;
1384
+ generator: z.ZodObject<{
1385
+ id: z.ZodString;
1386
+ type: z.ZodTuple<[z.ZodLiteral<"Software">, z.ZodLiteral<"crm:P16_used_specific_object">], null>;
1387
+ label: z.ZodString;
1388
+ softwareVersion: z.ZodOptional<z.ZodString>;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ type: ["Software", "crm:P16_used_specific_object"];
1391
+ id: string;
1392
+ label: string;
1393
+ softwareVersion?: string | undefined;
1394
+ }, {
1395
+ type: ["Software", "crm:P16_used_specific_object"];
1396
+ id: string;
1397
+ label: string;
1398
+ softwareVersion?: string | undefined;
1399
+ }>;
1400
+ target: z.ZodObject<{
1401
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1402
+ type: z.ZodTuple<[z.ZodLiteral<"SpecificResource">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1403
+ format: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1404
+ language: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1405
+ title: z.ZodOptional<z.ZodString>;
1406
+ renderedVia: z.ZodOptional<z.ZodObject<{
1407
+ id: z.ZodString;
1408
+ type: z.ZodTuple<[z.ZodLiteral<"Software">, z.ZodLiteral<"crm:P16_used_specific_object">], null>;
1409
+ label: z.ZodString;
1410
+ softwareVersion: z.ZodOptional<z.ZodString>;
1411
+ }, "strip", z.ZodTypeAny, {
1412
+ type: ["Software", "crm:P16_used_specific_object"];
1413
+ id: string;
1414
+ label: string;
1415
+ softwareVersion?: string | undefined;
1416
+ }, {
1417
+ type: ["Software", "crm:P16_used_specific_object"];
1418
+ id: string;
1419
+ label: string;
1420
+ softwareVersion?: string | undefined;
1421
+ }>>;
1422
+ selector: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1423
+ id: z.ZodString;
1424
+ type: z.ZodTuple<[z.ZodLiteral<"TextQuoteSelector">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
1425
+ exact: z.ZodString;
1426
+ prefix: z.ZodOptional<z.ZodString>;
1427
+ sufix: z.ZodOptional<z.ZodString>;
1428
+ refinedBy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1429
+ id: z.ZodString;
1430
+ type: z.ZodTuple<[z.ZodLiteral<"RangeSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1431
+ startSelector: z.ZodObject<{
1432
+ id: z.ZodString;
1433
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1434
+ value: z.ZodString;
1435
+ refinedBy: z.ZodOptional<z.ZodObject<{
1436
+ id: z.ZodString;
1437
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1438
+ start: z.ZodNumber;
1439
+ end: z.ZodNumber;
1440
+ }, "strip", z.ZodTypeAny, {
1441
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1442
+ id: string;
1443
+ start: number;
1444
+ end: number;
1445
+ }, {
1446
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1447
+ id: string;
1448
+ start: number;
1449
+ end: number;
1450
+ }>>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ value: string;
1453
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1454
+ id: string;
1455
+ refinedBy?: {
1456
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1457
+ id: string;
1458
+ start: number;
1459
+ end: number;
1460
+ } | undefined;
1461
+ }, {
1462
+ value: string;
1463
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1464
+ id: string;
1465
+ refinedBy?: {
1466
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1467
+ id: string;
1468
+ start: number;
1469
+ end: number;
1470
+ } | undefined;
1471
+ }>;
1472
+ endSelector: z.ZodObject<{
1473
+ id: z.ZodString;
1474
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1475
+ value: z.ZodString;
1476
+ refinedBy: z.ZodOptional<z.ZodObject<{
1477
+ id: z.ZodString;
1478
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1479
+ start: z.ZodNumber;
1480
+ end: z.ZodNumber;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1483
+ id: string;
1484
+ start: number;
1485
+ end: number;
1486
+ }, {
1487
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1488
+ id: string;
1489
+ start: number;
1490
+ end: number;
1491
+ }>>;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ value: string;
1494
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1495
+ id: string;
1496
+ refinedBy?: {
1497
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1498
+ id: string;
1499
+ start: number;
1500
+ end: number;
1501
+ } | undefined;
1502
+ }, {
1503
+ value: string;
1504
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1505
+ id: string;
1506
+ refinedBy?: {
1507
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1508
+ id: string;
1509
+ start: number;
1510
+ end: number;
1511
+ } | undefined;
1512
+ }>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1515
+ id: string;
1516
+ startSelector: {
1517
+ value: string;
1518
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1519
+ id: string;
1520
+ refinedBy?: {
1521
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1522
+ id: string;
1523
+ start: number;
1524
+ end: number;
1525
+ } | undefined;
1526
+ };
1527
+ endSelector: {
1528
+ value: string;
1529
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1530
+ id: string;
1531
+ refinedBy?: {
1532
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1533
+ id: string;
1534
+ start: number;
1535
+ end: number;
1536
+ } | undefined;
1537
+ };
1538
+ }, {
1539
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1540
+ id: string;
1541
+ startSelector: {
1542
+ value: string;
1543
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1544
+ id: string;
1545
+ refinedBy?: {
1546
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1547
+ id: string;
1548
+ start: number;
1549
+ end: number;
1550
+ } | undefined;
1551
+ };
1552
+ endSelector: {
1553
+ value: string;
1554
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1555
+ id: string;
1556
+ refinedBy?: {
1557
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1558
+ id: string;
1559
+ start: number;
1560
+ end: number;
1561
+ } | undefined;
1562
+ };
1563
+ }>, z.ZodObject<{
1564
+ id: z.ZodString;
1565
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1566
+ value: z.ZodString;
1567
+ refinedBy: z.ZodOptional<z.ZodObject<{
1568
+ id: z.ZodString;
1569
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1570
+ start: z.ZodNumber;
1571
+ end: z.ZodNumber;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1574
+ id: string;
1575
+ start: number;
1576
+ end: number;
1577
+ }, {
1578
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1579
+ id: string;
1580
+ start: number;
1581
+ end: number;
1582
+ }>>;
1583
+ }, "strip", z.ZodTypeAny, {
1584
+ value: string;
1585
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1586
+ id: string;
1587
+ refinedBy?: {
1588
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1589
+ id: string;
1590
+ start: number;
1591
+ end: number;
1592
+ } | undefined;
1593
+ }, {
1594
+ value: string;
1595
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1596
+ id: string;
1597
+ refinedBy?: {
1598
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1599
+ id: string;
1600
+ start: number;
1601
+ end: number;
1602
+ } | undefined;
1603
+ }>, z.ZodObject<{
1604
+ id: z.ZodString;
1605
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1606
+ start: z.ZodNumber;
1607
+ end: z.ZodNumber;
1608
+ }, "strip", z.ZodTypeAny, {
1609
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1610
+ id: string;
1611
+ start: number;
1612
+ end: number;
1613
+ }, {
1614
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1615
+ id: string;
1616
+ start: number;
1617
+ end: number;
1618
+ }>]>>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ exact: string;
1621
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
1622
+ id: string;
1623
+ prefix?: string | undefined;
1624
+ sufix?: string | undefined;
1625
+ refinedBy?: {
1626
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1627
+ id: string;
1628
+ start: number;
1629
+ end: number;
1630
+ } | {
1631
+ value: string;
1632
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1633
+ id: string;
1634
+ refinedBy?: {
1635
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1636
+ id: string;
1637
+ start: number;
1638
+ end: number;
1639
+ } | undefined;
1640
+ } | {
1641
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1642
+ id: string;
1643
+ startSelector: {
1644
+ value: string;
1645
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1646
+ id: string;
1647
+ refinedBy?: {
1648
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1649
+ id: string;
1650
+ start: number;
1651
+ end: number;
1652
+ } | undefined;
1653
+ };
1654
+ endSelector: {
1655
+ value: string;
1656
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1657
+ id: string;
1658
+ refinedBy?: {
1659
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1660
+ id: string;
1661
+ start: number;
1662
+ end: number;
1663
+ } | undefined;
1664
+ };
1665
+ } | undefined;
1666
+ }, {
1667
+ exact: string;
1668
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
1669
+ id: string;
1670
+ prefix?: string | undefined;
1671
+ sufix?: string | undefined;
1672
+ refinedBy?: {
1673
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1674
+ id: string;
1675
+ start: number;
1676
+ end: number;
1677
+ } | {
1678
+ value: string;
1679
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1680
+ id: string;
1681
+ refinedBy?: {
1682
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1683
+ id: string;
1684
+ start: number;
1685
+ end: number;
1686
+ } | undefined;
1687
+ } | {
1688
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1689
+ id: string;
1690
+ startSelector: {
1691
+ value: string;
1692
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1693
+ id: string;
1694
+ refinedBy?: {
1695
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1696
+ id: string;
1697
+ start: number;
1698
+ end: number;
1699
+ } | undefined;
1700
+ };
1701
+ endSelector: {
1702
+ value: string;
1703
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1704
+ id: string;
1705
+ refinedBy?: {
1706
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1707
+ id: string;
1708
+ start: number;
1709
+ end: number;
1710
+ } | undefined;
1711
+ };
1712
+ } | undefined;
1713
+ }>, z.ZodObject<{
1714
+ id: z.ZodString;
1715
+ type: z.ZodTuple<[z.ZodLiteral<"RangeSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1716
+ startSelector: z.ZodObject<{
1717
+ id: z.ZodString;
1718
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1719
+ value: z.ZodString;
1720
+ refinedBy: z.ZodOptional<z.ZodObject<{
1721
+ id: z.ZodString;
1722
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1723
+ start: z.ZodNumber;
1724
+ end: z.ZodNumber;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1727
+ id: string;
1728
+ start: number;
1729
+ end: number;
1730
+ }, {
1731
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1732
+ id: string;
1733
+ start: number;
1734
+ end: number;
1735
+ }>>;
1736
+ }, "strip", z.ZodTypeAny, {
1737
+ value: string;
1738
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1739
+ id: string;
1740
+ refinedBy?: {
1741
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1742
+ id: string;
1743
+ start: number;
1744
+ end: number;
1745
+ } | undefined;
1746
+ }, {
1747
+ value: string;
1748
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1749
+ id: string;
1750
+ refinedBy?: {
1751
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1752
+ id: string;
1753
+ start: number;
1754
+ end: number;
1755
+ } | undefined;
1756
+ }>;
1757
+ endSelector: z.ZodObject<{
1758
+ id: z.ZodString;
1759
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1760
+ value: z.ZodString;
1761
+ refinedBy: z.ZodOptional<z.ZodObject<{
1762
+ id: z.ZodString;
1763
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1764
+ start: z.ZodNumber;
1765
+ end: z.ZodNumber;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1768
+ id: string;
1769
+ start: number;
1770
+ end: number;
1771
+ }, {
1772
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1773
+ id: string;
1774
+ start: number;
1775
+ end: number;
1776
+ }>>;
1777
+ }, "strip", z.ZodTypeAny, {
1778
+ value: string;
1779
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1780
+ id: string;
1781
+ refinedBy?: {
1782
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1783
+ id: string;
1784
+ start: number;
1785
+ end: number;
1786
+ } | undefined;
1787
+ }, {
1788
+ value: string;
1789
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1790
+ id: string;
1791
+ refinedBy?: {
1792
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1793
+ id: string;
1794
+ start: number;
1795
+ end: number;
1796
+ } | undefined;
1797
+ }>;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1800
+ id: string;
1801
+ startSelector: {
1802
+ value: string;
1803
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1804
+ id: string;
1805
+ refinedBy?: {
1806
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1807
+ id: string;
1808
+ start: number;
1809
+ end: number;
1810
+ } | undefined;
1811
+ };
1812
+ endSelector: {
1813
+ value: string;
1814
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1815
+ id: string;
1816
+ refinedBy?: {
1817
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1818
+ id: string;
1819
+ start: number;
1820
+ end: number;
1821
+ } | undefined;
1822
+ };
1823
+ }, {
1824
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1825
+ id: string;
1826
+ startSelector: {
1827
+ value: string;
1828
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1829
+ id: string;
1830
+ refinedBy?: {
1831
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1832
+ id: string;
1833
+ start: number;
1834
+ end: number;
1835
+ } | undefined;
1836
+ };
1837
+ endSelector: {
1838
+ value: string;
1839
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1840
+ id: string;
1841
+ refinedBy?: {
1842
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1843
+ id: string;
1844
+ start: number;
1845
+ end: number;
1846
+ } | undefined;
1847
+ };
1848
+ }>, z.ZodObject<{
1849
+ id: z.ZodString;
1850
+ type: z.ZodTuple<[z.ZodLiteral<"XPathSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1851
+ value: z.ZodString;
1852
+ refinedBy: z.ZodOptional<z.ZodObject<{
1853
+ id: z.ZodString;
1854
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1855
+ start: z.ZodNumber;
1856
+ end: z.ZodNumber;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1859
+ id: string;
1860
+ start: number;
1861
+ end: number;
1862
+ }, {
1863
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1864
+ id: string;
1865
+ start: number;
1866
+ end: number;
1867
+ }>>;
1868
+ }, "strip", z.ZodTypeAny, {
1869
+ value: string;
1870
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1871
+ id: string;
1872
+ refinedBy?: {
1873
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1874
+ id: string;
1875
+ start: number;
1876
+ end: number;
1877
+ } | undefined;
1878
+ }, {
1879
+ value: string;
1880
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1881
+ id: string;
1882
+ refinedBy?: {
1883
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1884
+ id: string;
1885
+ start: number;
1886
+ end: number;
1887
+ } | undefined;
1888
+ }>, z.ZodObject<{
1889
+ id: z.ZodString;
1890
+ type: z.ZodTuple<[z.ZodLiteral<"TextPositionSelector">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1891
+ start: z.ZodNumber;
1892
+ end: z.ZodNumber;
1893
+ }, "strip", z.ZodTypeAny, {
1894
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1895
+ id: string;
1896
+ start: number;
1897
+ end: number;
1898
+ }, {
1899
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1900
+ id: string;
1901
+ start: number;
1902
+ end: number;
1903
+ }>]>>;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ type: ["SpecificResource", "crm:E73_Information_Object"];
1906
+ id: string;
1907
+ format?: string[] | undefined;
1908
+ language?: string[] | undefined;
1909
+ title?: string | undefined;
1910
+ renderedVia?: {
1911
+ type: ["Software", "crm:P16_used_specific_object"];
1912
+ id: string;
1913
+ label: string;
1914
+ softwareVersion?: string | undefined;
1915
+ } | undefined;
1916
+ selector?: {
1917
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1918
+ id: string;
1919
+ start: number;
1920
+ end: number;
1921
+ } | {
1922
+ value: string;
1923
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1924
+ id: string;
1925
+ refinedBy?: {
1926
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1927
+ id: string;
1928
+ start: number;
1929
+ end: number;
1930
+ } | undefined;
1931
+ } | {
1932
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1933
+ id: string;
1934
+ startSelector: {
1935
+ value: string;
1936
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1937
+ id: string;
1938
+ refinedBy?: {
1939
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1940
+ id: string;
1941
+ start: number;
1942
+ end: number;
1943
+ } | undefined;
1944
+ };
1945
+ endSelector: {
1946
+ value: string;
1947
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1948
+ id: string;
1949
+ refinedBy?: {
1950
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1951
+ id: string;
1952
+ start: number;
1953
+ end: number;
1954
+ } | undefined;
1955
+ };
1956
+ } | {
1957
+ exact: string;
1958
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
1959
+ id: string;
1960
+ prefix?: string | undefined;
1961
+ sufix?: string | undefined;
1962
+ refinedBy?: {
1963
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1964
+ id: string;
1965
+ start: number;
1966
+ end: number;
1967
+ } | {
1968
+ value: string;
1969
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1970
+ id: string;
1971
+ refinedBy?: {
1972
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1973
+ id: string;
1974
+ start: number;
1975
+ end: number;
1976
+ } | undefined;
1977
+ } | {
1978
+ type: ["RangeSelector", "crm:E73_Information_Object"];
1979
+ id: string;
1980
+ startSelector: {
1981
+ value: string;
1982
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1983
+ id: string;
1984
+ refinedBy?: {
1985
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1986
+ id: string;
1987
+ start: number;
1988
+ end: number;
1989
+ } | undefined;
1990
+ };
1991
+ endSelector: {
1992
+ value: string;
1993
+ type: ["XPathSelector", "crm:E73_Information_Object"];
1994
+ id: string;
1995
+ refinedBy?: {
1996
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
1997
+ id: string;
1998
+ start: number;
1999
+ end: number;
2000
+ } | undefined;
2001
+ };
2002
+ } | undefined;
2003
+ } | undefined;
2004
+ }, {
2005
+ type: ["SpecificResource", "crm:E73_Information_Object"];
2006
+ id: string;
2007
+ format?: string[] | undefined;
2008
+ language?: string[] | undefined;
2009
+ title?: string | undefined;
2010
+ renderedVia?: {
2011
+ type: ["Software", "crm:P16_used_specific_object"];
2012
+ id: string;
2013
+ label: string;
2014
+ softwareVersion?: string | undefined;
2015
+ } | undefined;
2016
+ selector?: {
2017
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2018
+ id: string;
2019
+ start: number;
2020
+ end: number;
2021
+ } | {
2022
+ value: string;
2023
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2024
+ id: string;
2025
+ refinedBy?: {
2026
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2027
+ id: string;
2028
+ start: number;
2029
+ end: number;
2030
+ } | undefined;
2031
+ } | {
2032
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2033
+ id: string;
2034
+ startSelector: {
2035
+ value: string;
2036
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2037
+ id: string;
2038
+ refinedBy?: {
2039
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2040
+ id: string;
2041
+ start: number;
2042
+ end: number;
2043
+ } | undefined;
2044
+ };
2045
+ endSelector: {
2046
+ value: string;
2047
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2048
+ id: string;
2049
+ refinedBy?: {
2050
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2051
+ id: string;
2052
+ start: number;
2053
+ end: number;
2054
+ } | undefined;
2055
+ };
2056
+ } | {
2057
+ exact: string;
2058
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
2059
+ id: string;
2060
+ prefix?: string | undefined;
2061
+ sufix?: string | undefined;
2062
+ refinedBy?: {
2063
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2064
+ id: string;
2065
+ start: number;
2066
+ end: number;
2067
+ } | {
2068
+ value: string;
2069
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2070
+ id: string;
2071
+ refinedBy?: {
2072
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2073
+ id: string;
2074
+ start: number;
2075
+ end: number;
2076
+ } | undefined;
2077
+ } | {
2078
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2079
+ id: string;
2080
+ startSelector: {
2081
+ value: string;
2082
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2083
+ id: string;
2084
+ refinedBy?: {
2085
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2086
+ id: string;
2087
+ start: number;
2088
+ end: number;
2089
+ } | undefined;
2090
+ };
2091
+ endSelector: {
2092
+ value: string;
2093
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2094
+ id: string;
2095
+ refinedBy?: {
2096
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2097
+ id: string;
2098
+ start: number;
2099
+ end: number;
2100
+ } | undefined;
2101
+ };
2102
+ } | undefined;
2103
+ } | undefined;
2104
+ }>;
2105
+ body: z.ZodObject<{
2106
+ id: z.ZodUnion<[z.ZodString, z.ZodString]>;
2107
+ type: z.ZodOptional<z.ZodLiteral<"TextualBody">>;
2108
+ entityType: z.ZodUnion<[z.ZodTuple<[z.ZodLiteral<"Person">, z.ZodUnion<[z.ZodLiteral<"crm:E21_Person">, z.ZodLiteral<"crm:E89_Propositional_Object">]>], null>, z.ZodUnion<[z.ZodLiteral<"cwrc:place">, z.ZodTuple<[z.ZodLiteral<"cwrc:place">, z.ZodLiteral<"crm:E89_Propositional_Object">], null>]>, z.ZodTuple<[z.ZodLiteral<"foaf:Organization">, z.ZodUnion<[z.ZodLiteral<"crm:E74_Group">, z.ZodLiteral<"crm:E89_Propositional_Object">]>], null>, z.ZodTuple<[z.ZodLiteral<"crm:E89_Propositional_Object">, z.ZodUnion<[z.ZodLiteral<"frbroo:F1">, z.ZodLiteral<"wikidata:Q15306849">]>], null>, z.ZodUnion<[z.ZodLiteral<"crm:E18_Physical_Thing">, z.ZodTuple<[z.ZodLiteral<"crm:E18_Physical_Thing">, z.ZodLiteral<"wikidata:Q15831596">], null>]>, z.ZodUnion<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodTuple<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodLiteral<"wikidata:Q15831596">], null>]>, z.ZodTuple<[z.ZodLiteral<"cito:Citation">, z.ZodLiteral<"crm:E73_Information_Object">], null>, z.ZodTuple<[z.ZodLiteral<"xsd:date">, z.ZodLiteral<"crm:E52_Time-Span">], null>, z.ZodLiteral<"crm:E33_Linguistic_Object">, z.ZodTuple<[z.ZodLiteral<"fabio:Correction">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>, z.ZodTuple<[z.ZodLiteral<"crm:E55_Type">, z.ZodLiteral<"crmdig:D1_Digital_Object">], null>, z.ZodTuple<[z.ZodLiteral<"crm:E55_Type">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>, z.ZodLiteral<"crmdig:D1_Digital_Object">]>;
2109
+ additionalType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2110
+ value: z.ZodOptional<z.ZodString>;
2111
+ certainty: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
2112
+ precision: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
2113
+ label: z.ZodOptional<z.ZodString>;
2114
+ description: z.ZodOptional<z.ZodString>;
2115
+ }, "strip", z.ZodTypeAny, {
2116
+ id: string;
2117
+ entityType: ["cito:Citation", "crm:E73_Information_Object"] | "crm:E28_Conceptual_Object" | ["crm:E28_Conceptual_Object", "wikidata:Q15831596"] | ("crm:E28_Conceptual_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | "crm:E33_Linguistic_Object" | ["fabio:Correction", "crm:E33_Linguistic_Object"] | ["xsd:date", "crm:E52_Time-Span"] | "crmdig:D1_Digital_Object" | ["crm:E55_Type", "crmdig:D1_Digital_Object"] | ["crm:E55_Type", "crm:E33_Linguistic_Object"] | ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] | ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] | "crm:E18_Physical_Thing" | ["crm:E18_Physical_Thing", "wikidata:Q15831596"] | ("crm:E18_Physical_Thing" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | "cwrc:place" | ["cwrc:place", "crm:E89_Propositional_Object"] | ("cwrc:place" & ["cwrc:place", "crm:E89_Propositional_Object"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "cwrc:place") | ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E28_Conceptual_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E33_Linguistic_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crmdig:D1_Digital_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E18_Physical_Thing") | (["cito:Citation", "crm:E73_Information_Object"] & "cwrc:place") | ("crm:E28_Conceptual_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E28_Conceptual_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E28_Conceptual_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "cwrc:place") | ("crm:E33_Linguistic_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E28_Conceptual_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E33_Linguistic_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crmdig:D1_Digital_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E18_Physical_Thing") | (["xsd:date", "crm:E52_Time-Span"] & "cwrc:place") | ("crmdig:D1_Digital_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "cwrc:place") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "cwrc:place") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "cwrc:place") | ("crm:E18_Physical_Thing" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E18_Physical_Thing" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "cwrc:place") | ("cwrc:place" & ["cito:Citation", "crm:E73_Information_Object"]) | ("cwrc:place" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("cwrc:place" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["xsd:date", "crm:E52_Time-Span"]) | ("cwrc:place" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("cwrc:place" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("cwrc:place" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E28_Conceptual_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E33_Linguistic_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crmdig:D1_Digital_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "cwrc:place");
2118
+ type?: "TextualBody" | undefined;
2119
+ additionalType?: string | string[] | undefined;
2120
+ value?: string | undefined;
2121
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2122
+ precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2123
+ label?: string | undefined;
2124
+ description?: string | undefined;
2125
+ }, {
2126
+ id: string;
2127
+ entityType: ["cito:Citation", "crm:E73_Information_Object"] | "crm:E28_Conceptual_Object" | ["crm:E28_Conceptual_Object", "wikidata:Q15831596"] | ("crm:E28_Conceptual_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | "crm:E33_Linguistic_Object" | ["fabio:Correction", "crm:E33_Linguistic_Object"] | ["xsd:date", "crm:E52_Time-Span"] | "crmdig:D1_Digital_Object" | ["crm:E55_Type", "crmdig:D1_Digital_Object"] | ["crm:E55_Type", "crm:E33_Linguistic_Object"] | ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] | ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] | "crm:E18_Physical_Thing" | ["crm:E18_Physical_Thing", "wikidata:Q15831596"] | ("crm:E18_Physical_Thing" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | "cwrc:place" | ["cwrc:place", "crm:E89_Propositional_Object"] | ("cwrc:place" & ["cwrc:place", "crm:E89_Propositional_Object"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "cwrc:place") | ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E28_Conceptual_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E33_Linguistic_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crmdig:D1_Digital_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E18_Physical_Thing") | (["cito:Citation", "crm:E73_Information_Object"] & "cwrc:place") | ("crm:E28_Conceptual_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E28_Conceptual_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E28_Conceptual_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "cwrc:place") | ("crm:E33_Linguistic_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E28_Conceptual_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E33_Linguistic_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crmdig:D1_Digital_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E18_Physical_Thing") | (["xsd:date", "crm:E52_Time-Span"] & "cwrc:place") | ("crmdig:D1_Digital_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "cwrc:place") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "cwrc:place") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "cwrc:place") | ("crm:E18_Physical_Thing" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E18_Physical_Thing" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "cwrc:place") | ("cwrc:place" & ["cito:Citation", "crm:E73_Information_Object"]) | ("cwrc:place" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("cwrc:place" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["xsd:date", "crm:E52_Time-Span"]) | ("cwrc:place" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("cwrc:place" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("cwrc:place" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E28_Conceptual_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E33_Linguistic_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crmdig:D1_Digital_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "cwrc:place");
2128
+ type?: "TextualBody" | undefined;
2129
+ additionalType?: string | string[] | undefined;
2130
+ value?: string | undefined;
2131
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2132
+ precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2133
+ label?: string | undefined;
2134
+ description?: string | undefined;
2135
+ }>;
2136
+ }, "strip", z.ZodTypeAny, {
2137
+ status: "draft" | "approved" | "published";
2138
+ type: ["Annotation", "crm:E33_Linguistic_Object"];
2139
+ id: string;
2140
+ creator: {
2141
+ type: "crm:E21_Person";
2142
+ id: string;
2143
+ name: string;
2144
+ };
2145
+ target: {
2146
+ type: ["SpecificResource", "crm:E73_Information_Object"];
2147
+ id: string;
2148
+ format?: string[] | undefined;
2149
+ language?: string[] | undefined;
2150
+ title?: string | undefined;
2151
+ renderedVia?: {
2152
+ type: ["Software", "crm:P16_used_specific_object"];
2153
+ id: string;
2154
+ label: string;
2155
+ softwareVersion?: string | undefined;
2156
+ } | undefined;
2157
+ selector?: {
2158
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2159
+ id: string;
2160
+ start: number;
2161
+ end: number;
2162
+ } | {
2163
+ value: string;
2164
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2165
+ id: string;
2166
+ refinedBy?: {
2167
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2168
+ id: string;
2169
+ start: number;
2170
+ end: number;
2171
+ } | undefined;
2172
+ } | {
2173
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2174
+ id: string;
2175
+ startSelector: {
2176
+ value: string;
2177
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2178
+ id: string;
2179
+ refinedBy?: {
2180
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2181
+ id: string;
2182
+ start: number;
2183
+ end: number;
2184
+ } | undefined;
2185
+ };
2186
+ endSelector: {
2187
+ value: string;
2188
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2189
+ id: string;
2190
+ refinedBy?: {
2191
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2192
+ id: string;
2193
+ start: number;
2194
+ end: number;
2195
+ } | undefined;
2196
+ };
2197
+ } | {
2198
+ exact: string;
2199
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
2200
+ id: string;
2201
+ prefix?: string | undefined;
2202
+ sufix?: string | undefined;
2203
+ refinedBy?: {
2204
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2205
+ id: string;
2206
+ start: number;
2207
+ end: number;
2208
+ } | {
2209
+ value: string;
2210
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2211
+ id: string;
2212
+ refinedBy?: {
2213
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2214
+ id: string;
2215
+ start: number;
2216
+ end: number;
2217
+ } | undefined;
2218
+ } | {
2219
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2220
+ id: string;
2221
+ startSelector: {
2222
+ value: string;
2223
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2224
+ id: string;
2225
+ refinedBy?: {
2226
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2227
+ id: string;
2228
+ start: number;
2229
+ end: number;
2230
+ } | undefined;
2231
+ };
2232
+ endSelector: {
2233
+ value: string;
2234
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2235
+ id: string;
2236
+ refinedBy?: {
2237
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2238
+ id: string;
2239
+ start: number;
2240
+ end: number;
2241
+ } | undefined;
2242
+ };
2243
+ } | undefined;
2244
+ } | undefined;
2245
+ };
2246
+ body: {
2247
+ id: string;
2248
+ entityType: ["cito:Citation", "crm:E73_Information_Object"] | "crm:E28_Conceptual_Object" | ["crm:E28_Conceptual_Object", "wikidata:Q15831596"] | ("crm:E28_Conceptual_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | "crm:E33_Linguistic_Object" | ["fabio:Correction", "crm:E33_Linguistic_Object"] | ["xsd:date", "crm:E52_Time-Span"] | "crmdig:D1_Digital_Object" | ["crm:E55_Type", "crmdig:D1_Digital_Object"] | ["crm:E55_Type", "crm:E33_Linguistic_Object"] | ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] | ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] | "crm:E18_Physical_Thing" | ["crm:E18_Physical_Thing", "wikidata:Q15831596"] | ("crm:E18_Physical_Thing" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | "cwrc:place" | ["cwrc:place", "crm:E89_Propositional_Object"] | ("cwrc:place" & ["cwrc:place", "crm:E89_Propositional_Object"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "cwrc:place") | ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E28_Conceptual_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E33_Linguistic_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crmdig:D1_Digital_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E18_Physical_Thing") | (["cito:Citation", "crm:E73_Information_Object"] & "cwrc:place") | ("crm:E28_Conceptual_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E28_Conceptual_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E28_Conceptual_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "cwrc:place") | ("crm:E33_Linguistic_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E28_Conceptual_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E33_Linguistic_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crmdig:D1_Digital_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E18_Physical_Thing") | (["xsd:date", "crm:E52_Time-Span"] & "cwrc:place") | ("crmdig:D1_Digital_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "cwrc:place") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "cwrc:place") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "cwrc:place") | ("crm:E18_Physical_Thing" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E18_Physical_Thing" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "cwrc:place") | ("cwrc:place" & ["cito:Citation", "crm:E73_Information_Object"]) | ("cwrc:place" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("cwrc:place" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["xsd:date", "crm:E52_Time-Span"]) | ("cwrc:place" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("cwrc:place" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("cwrc:place" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E28_Conceptual_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E33_Linguistic_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crmdig:D1_Digital_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "cwrc:place");
2249
+ type?: "TextualBody" | undefined;
2250
+ additionalType?: string | string[] | undefined;
2251
+ value?: string | undefined;
2252
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2253
+ precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2254
+ label?: string | undefined;
2255
+ description?: string | undefined;
2256
+ };
2257
+ '@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
2258
+ motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E33_Linguistic_Object"];
2259
+ created: string;
2260
+ generator: {
2261
+ type: ["Software", "crm:P16_used_specific_object"];
2262
+ id: string;
2263
+ label: string;
2264
+ softwareVersion?: string | undefined;
2265
+ };
2266
+ modified?: string | undefined;
2267
+ contributor?: [{
2268
+ type: "crm:E21_Person";
2269
+ id: string;
2270
+ name: string;
2271
+ }, ...{
2272
+ type: "crm:E21_Person";
2273
+ id: string;
2274
+ name: string;
2275
+ }[]] | undefined;
2276
+ }, {
2277
+ status: "draft" | "approved" | "published";
2278
+ type: ["Annotation", "crm:E33_Linguistic_Object"];
2279
+ id: string;
2280
+ creator: {
2281
+ type: "crm:E21_Person";
2282
+ id: string;
2283
+ name: string;
2284
+ };
2285
+ target: {
2286
+ type: ["SpecificResource", "crm:E73_Information_Object"];
2287
+ id: string;
2288
+ format?: string[] | undefined;
2289
+ language?: string[] | undefined;
2290
+ title?: string | undefined;
2291
+ renderedVia?: {
2292
+ type: ["Software", "crm:P16_used_specific_object"];
2293
+ id: string;
2294
+ label: string;
2295
+ softwareVersion?: string | undefined;
2296
+ } | undefined;
2297
+ selector?: {
2298
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2299
+ id: string;
2300
+ start: number;
2301
+ end: number;
2302
+ } | {
2303
+ value: string;
2304
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2305
+ id: string;
2306
+ refinedBy?: {
2307
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2308
+ id: string;
2309
+ start: number;
2310
+ end: number;
2311
+ } | undefined;
2312
+ } | {
2313
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2314
+ id: string;
2315
+ startSelector: {
2316
+ value: string;
2317
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2318
+ id: string;
2319
+ refinedBy?: {
2320
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2321
+ id: string;
2322
+ start: number;
2323
+ end: number;
2324
+ } | undefined;
2325
+ };
2326
+ endSelector: {
2327
+ value: string;
2328
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2329
+ id: string;
2330
+ refinedBy?: {
2331
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2332
+ id: string;
2333
+ start: number;
2334
+ end: number;
2335
+ } | undefined;
2336
+ };
2337
+ } | {
2338
+ exact: string;
2339
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
2340
+ id: string;
2341
+ prefix?: string | undefined;
2342
+ sufix?: string | undefined;
2343
+ refinedBy?: {
2344
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2345
+ id: string;
2346
+ start: number;
2347
+ end: number;
2348
+ } | {
2349
+ value: string;
2350
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2351
+ id: string;
2352
+ refinedBy?: {
2353
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2354
+ id: string;
2355
+ start: number;
2356
+ end: number;
2357
+ } | undefined;
2358
+ } | {
2359
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2360
+ id: string;
2361
+ startSelector: {
2362
+ value: string;
2363
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2364
+ id: string;
2365
+ refinedBy?: {
2366
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2367
+ id: string;
2368
+ start: number;
2369
+ end: number;
2370
+ } | undefined;
2371
+ };
2372
+ endSelector: {
2373
+ value: string;
2374
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2375
+ id: string;
2376
+ refinedBy?: {
2377
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2378
+ id: string;
2379
+ start: number;
2380
+ end: number;
2381
+ } | undefined;
2382
+ };
2383
+ } | undefined;
2384
+ } | undefined;
2385
+ };
2386
+ body: {
2387
+ id: string;
2388
+ entityType: ["cito:Citation", "crm:E73_Information_Object"] | "crm:E28_Conceptual_Object" | ["crm:E28_Conceptual_Object", "wikidata:Q15831596"] | ("crm:E28_Conceptual_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | "crm:E33_Linguistic_Object" | ["fabio:Correction", "crm:E33_Linguistic_Object"] | ["xsd:date", "crm:E52_Time-Span"] | "crmdig:D1_Digital_Object" | ["crm:E55_Type", "crmdig:D1_Digital_Object"] | ["crm:E55_Type", "crm:E33_Linguistic_Object"] | ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] | ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] | "crm:E18_Physical_Thing" | ["crm:E18_Physical_Thing", "wikidata:Q15831596"] | ("crm:E18_Physical_Thing" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | "cwrc:place" | ["cwrc:place", "crm:E89_Propositional_Object"] | ("cwrc:place" & ["cwrc:place", "crm:E89_Propositional_Object"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "cwrc:place") | ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E28_Conceptual_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E33_Linguistic_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crmdig:D1_Digital_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E18_Physical_Thing") | (["cito:Citation", "crm:E73_Information_Object"] & "cwrc:place") | ("crm:E28_Conceptual_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E28_Conceptual_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E28_Conceptual_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "cwrc:place") | ("crm:E33_Linguistic_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E28_Conceptual_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E33_Linguistic_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crmdig:D1_Digital_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E18_Physical_Thing") | (["xsd:date", "crm:E52_Time-Span"] & "cwrc:place") | ("crmdig:D1_Digital_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "cwrc:place") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "cwrc:place") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "cwrc:place") | ("crm:E18_Physical_Thing" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E18_Physical_Thing" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "cwrc:place") | ("cwrc:place" & ["cito:Citation", "crm:E73_Information_Object"]) | ("cwrc:place" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("cwrc:place" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["xsd:date", "crm:E52_Time-Span"]) | ("cwrc:place" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("cwrc:place" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("cwrc:place" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E28_Conceptual_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E33_Linguistic_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crmdig:D1_Digital_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "cwrc:place");
2389
+ type?: "TextualBody" | undefined;
2390
+ additionalType?: string | string[] | undefined;
2391
+ value?: string | undefined;
2392
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2393
+ precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2394
+ label?: string | undefined;
2395
+ description?: string | undefined;
2396
+ };
2397
+ '@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
2398
+ motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E33_Linguistic_Object"];
2399
+ created: string;
2400
+ generator: {
2401
+ type: ["Software", "crm:P16_used_specific_object"];
2402
+ id: string;
2403
+ label: string;
2404
+ softwareVersion?: string | undefined;
2405
+ };
2406
+ modified?: string | undefined;
2407
+ contributor?: [{
2408
+ type: "crm:E21_Person";
2409
+ id: string;
2410
+ name: string;
2411
+ }, ...{
2412
+ type: "crm:E21_Person";
2413
+ id: string;
2414
+ name: string;
2415
+ }[]] | undefined;
2416
+ }>;
2417
+ type WebAnnotation = z.infer<typeof WebAnnotation>;
2418
+ declare const webAnnotationSchema: JSONSchemaType<Required<WebAnnotation>>;
2419
+
2420
+ declare const ValidationError: z.ZodObject<{
2421
+ message: z.ZodString;
2422
+ path: z.ZodString;
2423
+ suggestion: z.ZodOptional<z.ZodString>;
2424
+ context: z.ZodIntersection<z.ZodObject<{
2425
+ errorType: z.ZodString;
2426
+ }, "strip", z.ZodTypeAny, {
2427
+ errorType: string;
2428
+ }, {
2429
+ errorType: string;
2430
+ }>, z.ZodUnknown>;
2431
+ }, "strip", z.ZodTypeAny, {
2432
+ message: string;
2433
+ path: string;
2434
+ context: {
2435
+ errorType: string;
2436
+ };
2437
+ suggestion?: string | undefined;
2438
+ }, {
2439
+ message: string;
2440
+ path: string;
2441
+ context: {
2442
+ errorType: string;
2443
+ };
2444
+ suggestion?: string | undefined;
2445
+ }>;
2446
+ type ValidationError = z.infer<typeof ValidationError>;
2447
+ declare const ValidateResult: z.ZodObject<{
2448
+ valid: z.ZodBoolean;
2449
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2450
+ message: z.ZodString;
2451
+ path: z.ZodString;
2452
+ suggestion: z.ZodOptional<z.ZodString>;
2453
+ context: z.ZodIntersection<z.ZodObject<{
2454
+ errorType: z.ZodString;
2455
+ }, "strip", z.ZodTypeAny, {
2456
+ errorType: string;
2457
+ }, {
2458
+ errorType: string;
2459
+ }>, z.ZodUnknown>;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ message: string;
2462
+ path: string;
2463
+ context: {
2464
+ errorType: string;
2465
+ };
2466
+ suggestion?: string | undefined;
2467
+ }, {
2468
+ message: string;
2469
+ path: string;
2470
+ context: {
2471
+ errorType: string;
2472
+ };
2473
+ suggestion?: string | undefined;
2474
+ }>, "many">>;
2475
+ }, "strip", z.ZodTypeAny, {
2476
+ valid: boolean;
2477
+ errors?: {
2478
+ message: string;
2479
+ path: string;
2480
+ context: {
2481
+ errorType: string;
2482
+ };
2483
+ suggestion?: string | undefined;
2484
+ }[] | undefined;
2485
+ }, {
2486
+ valid: boolean;
2487
+ errors?: {
2488
+ message: string;
2489
+ path: string;
2490
+ context: {
2491
+ errorType: string;
2492
+ };
2493
+ suggestion?: string | undefined;
2494
+ }[] | undefined;
2495
+ }>;
2496
+ type ValidateResult = z.infer<typeof ValidateResult>;
2497
+
2498
+ declare const ajv: ajv_dist_core.default;
2499
+ declare const validator: _ajv.ValidateFunction<Required<{
2500
+ status: "draft" | "approved" | "published";
2501
+ type: ["Annotation", "crm:E33_Linguistic_Object"];
2502
+ id: string;
2503
+ creator: {
2504
+ type: "crm:E21_Person";
2505
+ id: string;
2506
+ name: string;
2507
+ };
2508
+ target: {
2509
+ type: ["SpecificResource", "crm:E73_Information_Object"];
2510
+ id: string;
2511
+ format?: string[] | undefined;
2512
+ language?: string[] | undefined;
2513
+ title?: string | undefined;
2514
+ renderedVia?: {
2515
+ type: ["Software", "crm:P16_used_specific_object"];
2516
+ id: string;
2517
+ label: string;
2518
+ softwareVersion?: string | undefined;
2519
+ } | undefined;
2520
+ selector?: {
2521
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2522
+ id: string;
2523
+ start: number;
2524
+ end: number;
2525
+ } | {
2526
+ value: string;
2527
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2528
+ id: string;
2529
+ refinedBy?: {
2530
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2531
+ id: string;
2532
+ start: number;
2533
+ end: number;
2534
+ } | undefined;
2535
+ } | {
2536
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2537
+ id: string;
2538
+ startSelector: {
2539
+ value: string;
2540
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2541
+ id: string;
2542
+ refinedBy?: {
2543
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2544
+ id: string;
2545
+ start: number;
2546
+ end: number;
2547
+ } | undefined;
2548
+ };
2549
+ endSelector: {
2550
+ value: string;
2551
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2552
+ id: string;
2553
+ refinedBy?: {
2554
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2555
+ id: string;
2556
+ start: number;
2557
+ end: number;
2558
+ } | undefined;
2559
+ };
2560
+ } | {
2561
+ exact: string;
2562
+ type: ["TextQuoteSelector", "crm:E33_Linguistic_Object"];
2563
+ id: string;
2564
+ prefix?: string | undefined;
2565
+ sufix?: string | undefined;
2566
+ refinedBy?: {
2567
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2568
+ id: string;
2569
+ start: number;
2570
+ end: number;
2571
+ } | {
2572
+ value: string;
2573
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2574
+ id: string;
2575
+ refinedBy?: {
2576
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2577
+ id: string;
2578
+ start: number;
2579
+ end: number;
2580
+ } | undefined;
2581
+ } | {
2582
+ type: ["RangeSelector", "crm:E73_Information_Object"];
2583
+ id: string;
2584
+ startSelector: {
2585
+ value: string;
2586
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2587
+ id: string;
2588
+ refinedBy?: {
2589
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2590
+ id: string;
2591
+ start: number;
2592
+ end: number;
2593
+ } | undefined;
2594
+ };
2595
+ endSelector: {
2596
+ value: string;
2597
+ type: ["XPathSelector", "crm:E73_Information_Object"];
2598
+ id: string;
2599
+ refinedBy?: {
2600
+ type: ["TextPositionSelector", "crm:E73_Information_Object"];
2601
+ id: string;
2602
+ start: number;
2603
+ end: number;
2604
+ } | undefined;
2605
+ };
2606
+ } | undefined;
2607
+ } | undefined;
2608
+ };
2609
+ body: {
2610
+ id: string;
2611
+ entityType: ["cito:Citation", "crm:E73_Information_Object"] | "crm:E28_Conceptual_Object" | ["crm:E28_Conceptual_Object", "wikidata:Q15831596"] | ("crm:E28_Conceptual_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | "crm:E33_Linguistic_Object" | ["fabio:Correction", "crm:E33_Linguistic_Object"] | ["xsd:date", "crm:E52_Time-Span"] | "crmdig:D1_Digital_Object" | ["crm:E55_Type", "crmdig:D1_Digital_Object"] | ["crm:E55_Type", "crm:E33_Linguistic_Object"] | ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] | ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] | "crm:E18_Physical_Thing" | ["crm:E18_Physical_Thing", "wikidata:Q15831596"] | ("crm:E18_Physical_Thing" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | "cwrc:place" | ["cwrc:place", "crm:E89_Propositional_Object"] | ("cwrc:place" & ["cwrc:place", "crm:E89_Propositional_Object"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "cwrc:place") | ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E28_Conceptual_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E33_Linguistic_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crmdig:D1_Digital_Object") | (["cito:Citation", "crm:E73_Information_Object"] & "crm:E18_Physical_Thing") | (["cito:Citation", "crm:E73_Information_Object"] & "cwrc:place") | ("crm:E28_Conceptual_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E28_Conceptual_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E28_Conceptual_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E28_Conceptual_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E28_Conceptual_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "crm:E18_Physical_Thing") | (["crm:E28_Conceptual_Object", "wikidata:Q15831596"] & "cwrc:place") | ("crm:E33_Linguistic_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E33_Linguistic_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crm:E33_Linguistic_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E33_Linguistic_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["fabio:Correction", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E28_Conceptual_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E33_Linguistic_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crmdig:D1_Digital_Object") | (["xsd:date", "crm:E52_Time-Span"] & "crm:E18_Physical_Thing") | (["xsd:date", "crm:E52_Time-Span"] & "cwrc:place") | ("crmdig:D1_Digital_Object" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["xsd:date", "crm:E52_Time-Span"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crmdig:D1_Digital_Object" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("crmdig:D1_Digital_Object" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crmdig:D1_Digital_Object" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crmdig:D1_Digital_Object"] & "cwrc:place") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E28_Conceptual_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E33_Linguistic_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crmdig:D1_Digital_Object") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "crm:E18_Physical_Thing") | (["crm:E55_Type", "crm:E33_Linguistic_Object"] & "cwrc:place") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"] & "cwrc:place") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"] & "cwrc:place") | ("crm:E18_Physical_Thing" & ["cito:Citation", "crm:E73_Information_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("crm:E18_Physical_Thing" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["xsd:date", "crm:E52_Time-Span"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("crm:E18_Physical_Thing" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["cwrc:place", "crm:E89_Propositional_Object"]) | ("crm:E18_Physical_Thing" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E28_Conceptual_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crm:E33_Linguistic_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "crmdig:D1_Digital_Object") | (["crm:E18_Physical_Thing", "wikidata:Q15831596"] & "cwrc:place") | ("cwrc:place" & ["cito:Citation", "crm:E73_Information_Object"]) | ("cwrc:place" & ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]) | ("cwrc:place" & ["fabio:Correction", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["xsd:date", "crm:E52_Time-Span"]) | ("cwrc:place" & ["crm:E55_Type", "crmdig:D1_Digital_Object"]) | ("cwrc:place" & ["crm:E55_Type", "crm:E33_Linguistic_Object"]) | ("cwrc:place" & ["foaf:Organization", "crm:E74_Group" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["Person", "crm:E21_Person" | "crm:E89_Propositional_Object"]) | ("cwrc:place" & ["crm:E18_Physical_Thing", "wikidata:Q15831596"]) | ("cwrc:place" & ["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"]) | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E28_Conceptual_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E33_Linguistic_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crmdig:D1_Digital_Object") | (["cwrc:place", "crm:E89_Propositional_Object"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E28_Conceptual_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E33_Linguistic_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crmdig:D1_Digital_Object") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "crm:E18_Physical_Thing") | (["crm:E89_Propositional_Object", "frbroo:F1" | "wikidata:Q15306849"] & "cwrc:place");
2612
+ type?: "TextualBody" | undefined;
2613
+ additionalType?: string | string[] | undefined;
2614
+ value?: string | undefined;
2615
+ certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2616
+ precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
2617
+ label?: string | undefined;
2618
+ description?: string | undefined;
2619
+ };
2620
+ '@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
2621
+ motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E33_Linguistic_Object"];
2622
+ created: string;
2623
+ generator: {
2624
+ type: ["Software", "crm:P16_used_specific_object"];
2625
+ id: string;
2626
+ label: string;
2627
+ softwareVersion?: string | undefined;
2628
+ };
2629
+ modified?: string | undefined;
2630
+ contributor?: [{
2631
+ type: "crm:E21_Person";
2632
+ id: string;
2633
+ name: string;
2634
+ }, ...{
2635
+ type: "crm:E21_Person";
2636
+ id: string;
2637
+ name: string;
2638
+ }[]] | undefined;
2639
+ }>>;
2640
+ /**
2641
+ * The function `validate` takes an annotation object as input and returns a validation result object
2642
+ * indicating whether the annotation is valid or not.
2643
+ * @param annotation - The `annotation` parameter is a record (object) that contains key-value pairs
2644
+ * representing an annotation. The specific structure and content of the `annotation` object would
2645
+ * depend on the context and requirements of your application.
2646
+ * @returns an object of type `ValidateResult`. If the `isValid` variable is `true`, the object will
2647
+ * have a `valid` property set to `true`. If the `isValid` variable is `false`, the object will have a
2648
+ * `valid` property set to `false` and an `errors` property containing the errors obtained from the
2649
+ * `getErrors` function.
2650
+ */
2651
+ declare const validate: (annotation: Record<string, any>) => {
2652
+ valid: boolean;
2653
+ errors?: {
2654
+ message: string;
2655
+ path: string;
2656
+ context: {
2657
+ errorType: string;
2658
+ };
2659
+ suggestion?: string | undefined;
2660
+ }[] | undefined;
2661
+ };
2662
+
2663
+ declare const generateAssets: () => Promise<void>;
2664
+
2665
+ type index_Body = Body;
2666
+ type index_Definition = Definition;
2667
+ type index_Motivation = Motivation;
2668
+ type index_Person = Person;
2669
+ type index_PersonEntityType = PersonEntityType;
2670
+ type index_Software = Software;
2671
+ type index_Status = Status;
2672
+ type index_Target = Target;
2673
+ type index_User = User;
2674
+ declare const index_VERSION: typeof VERSION;
2675
+ type index_ValidateResult = ValidateResult;
2676
+ type index_ValidationError = ValidationError;
2677
+ type index_WebAnnotation = WebAnnotation;
2678
+ declare const index_ajv: typeof ajv;
2679
+ declare const index_bodySchema: typeof bodySchema;
2680
+ declare const index_contextUri: typeof contextUri;
2681
+ declare const index_creatorSchema: typeof creatorSchema;
2682
+ declare const index_definitionSchema: typeof definitionSchema;
2683
+ declare const index_defsId: typeof defsId;
2684
+ declare const index_generateAssets: typeof generateAssets;
2685
+ declare const index_personEntityTypeSchema: typeof personEntityTypeSchema;
2686
+ declare const index_personSchema: typeof personSchema;
2687
+ declare const index_schemaContext: typeof schemaContext;
2688
+ declare const index_schemaId: typeof schemaId;
2689
+ declare const index_softwareSchema: typeof softwareSchema;
2690
+ declare const index_targetSchema: typeof targetSchema;
2691
+ declare const index_validate: typeof validate;
2692
+ declare const index_validator: typeof validator;
2693
+ declare const index_webAnnotationSchema: typeof webAnnotationSchema;
2694
+ declare namespace index {
2695
+ export {
2696
+ index_Body as Body,
2697
+ index_Definition as Definition,
2698
+ index_Motivation as Motivation,
2699
+ index_Person as Person,
2700
+ index_PersonEntityType as PersonEntityType,
2701
+ index_Software as Software,
2702
+ index_Status as Status,
2703
+ index_Target as Target,
2704
+ index_User as User,
2705
+ index_VERSION as VERSION,
2706
+ index_ValidateResult as ValidateResult,
2707
+ index_ValidationError as ValidationError,
2708
+ index_WebAnnotation as WebAnnotation,
2709
+ index_ajv as ajv,
2710
+ index_bodySchema as bodySchema,
2711
+ index_contextUri as contextUri,
2712
+ index_creatorSchema as creatorSchema,
2713
+ index_definitionSchema as definitionSchema,
2714
+ index_defsId as defsId,
2715
+ index_generateAssets as generateAssets,
2716
+ index_personEntityTypeSchema as personEntityTypeSchema,
2717
+ index_personSchema as personSchema,
2718
+ index_schemaContext as schemaContext,
2719
+ index_schemaId as schemaId,
2720
+ index_softwareSchema as softwareSchema,
2721
+ index_targetSchema as targetSchema,
2722
+ index_validate as validate,
2723
+ index_validator as validator,
2724
+ index_webAnnotationSchema as webAnnotationSchema,
2725
+ };
2726
+ }
2727
+
2728
+ export { Body, Definition, Motivation, Person, PersonEntityType, Software, Status, Target, User, VERSION, ValidateResult, ValidationError, WebAnnotation, ajv, bodySchema, contextUri, creatorSchema, definitionSchema, defsId, personEntityTypeSchema, personSchema, schemaContext, schemaId, softwareSchema, targetSchema, index as v1, validate, validator, webAnnotationSchema };