document-schema 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -4
- package/dist/construct-CdQuI9f5.d.cts +204 -0
- package/dist/construct-CdQuI9f5.d.ts +204 -0
- package/dist/construct.cjs +106 -0
- package/dist/construct.d.cts +2 -0
- package/dist/construct.d.ts +2 -0
- package/dist/construct.js +93 -0
- package/dist/content-json-schema-defs.cjs +224 -2
- package/dist/content-json-schema-defs.js +224 -2
- package/dist/index.cjs +18 -0
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/{package-node-DDPSNOvy.d.cts → package-node-BiUEzIzl.d.cts} +22 -7
- package/dist/{package-node-QVFHQcm8.d.ts → package-node-DLUobcDQ.d.ts} +22 -7
- package/dist/package-node.cjs +24 -11
- package/dist/package-node.d.cts +2 -2
- package/dist/package-node.d.ts +2 -2
- package/dist/package-node.js +21 -12
- package/dist/package.cjs +4 -1
- package/dist/package.d.cts +46 -1
- package/dist/package.d.ts +46 -1
- package/dist/package.js +4 -1
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.js +2 -2
- package/package.json +1 -1
- package/schemas/content-document.schema.json +340 -3
- package/schemas/document-package.schema.json +475 -3
package/dist/package.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
|
|
2
2
|
import { s as MathExpression } from "./math-B7gZJeND.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { E as SectionGroupNode, H as SlideGroupNode, R as SheetGroupNode, i as DrawPageGroupNode } from "./package-node-BiUEzIzl.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -44,6 +44,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
44
44
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
45
45
|
kind: z.ZodString;
|
|
46
46
|
}, z.core.$loose>>>;
|
|
47
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
48
|
+
kind: z.ZodString;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
51
|
+
kind: z.ZodString;
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
+
kind: z.ZodString;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
47
56
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
48
57
|
symbols: z.ZodArray<z.ZodObject<{
|
|
49
58
|
glyph: z.ZodString;
|
|
@@ -139,6 +148,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
139
148
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
140
149
|
kind: z.ZodString;
|
|
141
150
|
}, z.core.$loose>>>;
|
|
151
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
152
|
+
kind: z.ZodString;
|
|
153
|
+
}, z.core.$loose>>>;
|
|
154
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
|
+
kind: z.ZodString;
|
|
156
|
+
}, z.core.$loose>>>;
|
|
157
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
158
|
+
kind: z.ZodString;
|
|
159
|
+
}, z.core.$loose>>>;
|
|
142
160
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
143
161
|
symbols: z.ZodArray<z.ZodObject<{
|
|
144
162
|
glyph: z.ZodString;
|
|
@@ -234,6 +252,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
252
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
235
253
|
kind: z.ZodString;
|
|
236
254
|
}, z.core.$loose>>>;
|
|
255
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
256
|
+
kind: z.ZodString;
|
|
257
|
+
}, z.core.$loose>>>;
|
|
258
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
259
|
+
kind: z.ZodString;
|
|
260
|
+
}, z.core.$loose>>>;
|
|
261
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
262
|
+
kind: z.ZodString;
|
|
263
|
+
}, z.core.$loose>>>;
|
|
237
264
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
238
265
|
symbols: z.ZodArray<z.ZodObject<{
|
|
239
266
|
glyph: z.ZodString;
|
|
@@ -329,6 +356,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
329
356
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
330
357
|
kind: z.ZodString;
|
|
331
358
|
}, z.core.$loose>>>;
|
|
359
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
360
|
+
kind: z.ZodString;
|
|
361
|
+
}, z.core.$loose>>>;
|
|
362
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
363
|
+
kind: z.ZodString;
|
|
364
|
+
}, z.core.$loose>>>;
|
|
365
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
366
|
+
kind: z.ZodString;
|
|
367
|
+
}, z.core.$loose>>>;
|
|
332
368
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
333
369
|
symbols: z.ZodArray<z.ZodObject<{
|
|
334
370
|
glyph: z.ZodString;
|
|
@@ -436,6 +472,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
436
472
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
437
473
|
kind: z.ZodString;
|
|
438
474
|
}, z.core.$loose>>>;
|
|
475
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
476
|
+
kind: z.ZodString;
|
|
477
|
+
}, z.core.$loose>>>;
|
|
478
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
479
|
+
kind: z.ZodString;
|
|
480
|
+
}, z.core.$loose>>>;
|
|
481
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
|
+
kind: z.ZodString;
|
|
483
|
+
}, z.core.$loose>>>;
|
|
439
484
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
440
485
|
symbols: z.ZodArray<z.ZodObject<{
|
|
441
486
|
glyph: z.ZodString;
|
package/dist/package.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.js";
|
|
2
2
|
import { s as MathExpression } from "./math-B7gZJeND.js";
|
|
3
|
-
import {
|
|
3
|
+
import { E as SectionGroupNode, H as SlideGroupNode, R as SheetGroupNode, i as DrawPageGroupNode } from "./package-node-DLUobcDQ.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -44,6 +44,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
44
44
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
45
45
|
kind: z.ZodString;
|
|
46
46
|
}, z.core.$loose>>>;
|
|
47
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
48
|
+
kind: z.ZodString;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
51
|
+
kind: z.ZodString;
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
+
kind: z.ZodString;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
47
56
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
48
57
|
symbols: z.ZodArray<z.ZodObject<{
|
|
49
58
|
glyph: z.ZodString;
|
|
@@ -139,6 +148,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
139
148
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
140
149
|
kind: z.ZodString;
|
|
141
150
|
}, z.core.$loose>>>;
|
|
151
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
152
|
+
kind: z.ZodString;
|
|
153
|
+
}, z.core.$loose>>>;
|
|
154
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
|
+
kind: z.ZodString;
|
|
156
|
+
}, z.core.$loose>>>;
|
|
157
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
158
|
+
kind: z.ZodString;
|
|
159
|
+
}, z.core.$loose>>>;
|
|
142
160
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
143
161
|
symbols: z.ZodArray<z.ZodObject<{
|
|
144
162
|
glyph: z.ZodString;
|
|
@@ -234,6 +252,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
252
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
235
253
|
kind: z.ZodString;
|
|
236
254
|
}, z.core.$loose>>>;
|
|
255
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
256
|
+
kind: z.ZodString;
|
|
257
|
+
}, z.core.$loose>>>;
|
|
258
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
259
|
+
kind: z.ZodString;
|
|
260
|
+
}, z.core.$loose>>>;
|
|
261
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
262
|
+
kind: z.ZodString;
|
|
263
|
+
}, z.core.$loose>>>;
|
|
237
264
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
238
265
|
symbols: z.ZodArray<z.ZodObject<{
|
|
239
266
|
glyph: z.ZodString;
|
|
@@ -329,6 +356,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
329
356
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
330
357
|
kind: z.ZodString;
|
|
331
358
|
}, z.core.$loose>>>;
|
|
359
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
360
|
+
kind: z.ZodString;
|
|
361
|
+
}, z.core.$loose>>>;
|
|
362
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
363
|
+
kind: z.ZodString;
|
|
364
|
+
}, z.core.$loose>>>;
|
|
365
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
366
|
+
kind: z.ZodString;
|
|
367
|
+
}, z.core.$loose>>>;
|
|
332
368
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
333
369
|
symbols: z.ZodArray<z.ZodObject<{
|
|
334
370
|
glyph: z.ZodString;
|
|
@@ -436,6 +472,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
436
472
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
437
473
|
kind: z.ZodString;
|
|
438
474
|
}, z.core.$loose>>>;
|
|
475
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
476
|
+
kind: z.ZodString;
|
|
477
|
+
}, z.core.$loose>>>;
|
|
478
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
479
|
+
kind: z.ZodString;
|
|
480
|
+
}, z.core.$loose>>>;
|
|
481
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
|
+
kind: z.ZodString;
|
|
483
|
+
}, z.core.$loose>>>;
|
|
439
484
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
440
485
|
symbols: z.ZodArray<z.ZodObject<{
|
|
441
486
|
glyph: z.ZodString;
|
package/dist/package.js
CHANGED
|
@@ -10,7 +10,10 @@ const packageEnvelopeFields = {
|
|
|
10
10
|
...contentDocumentSharedFields,
|
|
11
11
|
pages: z.array(PageSizeSchema).optional(),
|
|
12
12
|
styles: StylesTableSchema.optional(),
|
|
13
|
-
definitions: DefinitionsTableSchema.optional()
|
|
13
|
+
definitions: DefinitionsTableSchema.optional(),
|
|
14
|
+
layers: DefinitionsTableSchema.optional(),
|
|
15
|
+
attachments: DefinitionsTableSchema.optional(),
|
|
16
|
+
destinations: DefinitionsTableSchema.optional()
|
|
14
17
|
};
|
|
15
18
|
const DocumentPackageSchema = z.discriminatedUnion("kind", [
|
|
16
19
|
z.object({
|
package/dist/schema-io.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
7
7
|
ContentDocument: "content-document.schema.json"
|
|
8
8
|
};
|
|
9
9
|
function schemaUriFor(kind) {
|
|
10
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.
|
|
10
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
11
11
|
}
|
|
12
12
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
|
|
13
13
|
function parseSchemaUri(uri) {
|
|
@@ -93,7 +93,7 @@ function documentFromJson(value) {
|
|
|
93
93
|
if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
|
|
94
94
|
const kind = kindForFileStem(parts.stem);
|
|
95
95
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
96
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("4.
|
|
96
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("4.1.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.1.0");
|
|
97
97
|
switch (kind) {
|
|
98
98
|
case "DocumentPackage": return {
|
|
99
99
|
kind,
|
package/dist/schema-io.js
CHANGED
|
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
6
6
|
ContentDocument: "content-document.schema.json"
|
|
7
7
|
};
|
|
8
8
|
function schemaUriFor(kind) {
|
|
9
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.
|
|
9
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
10
10
|
}
|
|
11
11
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
|
|
12
12
|
function parseSchemaUri(uri) {
|
|
@@ -92,7 +92,7 @@ function documentFromJson(value) {
|
|
|
92
92
|
if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
|
|
93
93
|
const kind = kindForFileStem(parts.stem);
|
|
94
94
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
95
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("4.
|
|
95
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("4.1.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.1.0");
|
|
96
96
|
switch (kind) {
|
|
97
97
|
case "DocumentPackage": return {
|
|
98
98
|
kind,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-schema",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "The canonical, format-agnostic content and document-package schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec -- pure Zod schemas, no behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -2857,7 +2857,7 @@
|
|
|
2857
2857
|
]
|
|
2858
2858
|
},
|
|
2859
2859
|
"document": {
|
|
2860
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.
|
|
2860
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
|
|
2861
2861
|
},
|
|
2862
2862
|
"frame": {
|
|
2863
2863
|
"$ref": "#/$defs/Box"
|
|
@@ -4077,7 +4077,7 @@
|
|
|
4077
4077
|
]
|
|
4078
4078
|
},
|
|
4079
4079
|
"document": {
|
|
4080
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.
|
|
4080
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
|
|
4081
4081
|
},
|
|
4082
4082
|
"frame": {
|
|
4083
4083
|
"$ref": "#/$defs/Box"
|
|
@@ -4125,6 +4125,9 @@
|
|
|
4125
4125
|
{
|
|
4126
4126
|
"$ref": "#/$defs/ListGroup"
|
|
4127
4127
|
},
|
|
4128
|
+
{
|
|
4129
|
+
"$ref": "#/$defs/SectionConstructGroup"
|
|
4130
|
+
},
|
|
4128
4131
|
{
|
|
4129
4132
|
"$ref": "#/$defs/ContentBlock"
|
|
4130
4133
|
}
|
|
@@ -4157,6 +4160,9 @@
|
|
|
4157
4160
|
{
|
|
4158
4161
|
"$ref": "#/$defs/ListGroup"
|
|
4159
4162
|
},
|
|
4163
|
+
{
|
|
4164
|
+
"$ref": "#/$defs/SectionConstructGroup"
|
|
4165
|
+
},
|
|
4160
4166
|
{
|
|
4161
4167
|
"$ref": "#/$defs/ContentBlock"
|
|
4162
4168
|
}
|
|
@@ -4186,6 +4192,9 @@
|
|
|
4186
4192
|
{
|
|
4187
4193
|
"$ref": "#/$defs/ListGroup"
|
|
4188
4194
|
},
|
|
4195
|
+
{
|
|
4196
|
+
"$ref": "#/$defs/ShapeConstructGroup"
|
|
4197
|
+
},
|
|
4189
4198
|
{
|
|
4190
4199
|
"$ref": "#/$defs/ContentBlock"
|
|
4191
4200
|
}
|
|
@@ -4237,6 +4246,9 @@
|
|
|
4237
4246
|
{
|
|
4238
4247
|
"$ref": "#/$defs/ListGroup"
|
|
4239
4248
|
},
|
|
4249
|
+
{
|
|
4250
|
+
"$ref": "#/$defs/ShapeConstructGroup"
|
|
4251
|
+
},
|
|
4240
4252
|
{
|
|
4241
4253
|
"$ref": "#/$defs/ContentBlock"
|
|
4242
4254
|
}
|
|
@@ -4308,6 +4320,331 @@
|
|
|
4308
4320
|
],
|
|
4309
4321
|
"additionalProperties": false
|
|
4310
4322
|
},
|
|
4323
|
+
"SectionConstructGroup": {
|
|
4324
|
+
"type": "object",
|
|
4325
|
+
"properties": {
|
|
4326
|
+
"node": {
|
|
4327
|
+
"$ref": "#/$defs/ConstructDescriptor"
|
|
4328
|
+
},
|
|
4329
|
+
"style": {
|
|
4330
|
+
"type": "string"
|
|
4331
|
+
},
|
|
4332
|
+
"children": {
|
|
4333
|
+
"type": "array",
|
|
4334
|
+
"items": {
|
|
4335
|
+
"oneOf": [
|
|
4336
|
+
{
|
|
4337
|
+
"$ref": "#/$defs/HeadingGroup"
|
|
4338
|
+
},
|
|
4339
|
+
{
|
|
4340
|
+
"$ref": "#/$defs/ListGroup"
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"$ref": "#/$defs/SectionConstructGroup"
|
|
4344
|
+
},
|
|
4345
|
+
{
|
|
4346
|
+
"$ref": "#/$defs/ContentBlock"
|
|
4347
|
+
}
|
|
4348
|
+
]
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
},
|
|
4352
|
+
"required": [
|
|
4353
|
+
"node",
|
|
4354
|
+
"children"
|
|
4355
|
+
],
|
|
4356
|
+
"additionalProperties": false
|
|
4357
|
+
},
|
|
4358
|
+
"ShapeConstructGroup": {
|
|
4359
|
+
"type": "object",
|
|
4360
|
+
"properties": {
|
|
4361
|
+
"node": {
|
|
4362
|
+
"$ref": "#/$defs/ConstructDescriptor"
|
|
4363
|
+
},
|
|
4364
|
+
"style": {
|
|
4365
|
+
"type": "string"
|
|
4366
|
+
},
|
|
4367
|
+
"children": {
|
|
4368
|
+
"type": "array",
|
|
4369
|
+
"items": {
|
|
4370
|
+
"oneOf": [
|
|
4371
|
+
{
|
|
4372
|
+
"$ref": "#/$defs/ListGroup"
|
|
4373
|
+
},
|
|
4374
|
+
{
|
|
4375
|
+
"$ref": "#/$defs/ShapeConstructGroup"
|
|
4376
|
+
},
|
|
4377
|
+
{
|
|
4378
|
+
"$ref": "#/$defs/ContentBlock"
|
|
4379
|
+
}
|
|
4380
|
+
]
|
|
4381
|
+
}
|
|
4382
|
+
}
|
|
4383
|
+
},
|
|
4384
|
+
"required": [
|
|
4385
|
+
"node",
|
|
4386
|
+
"children"
|
|
4387
|
+
],
|
|
4388
|
+
"additionalProperties": false
|
|
4389
|
+
},
|
|
4390
|
+
"ContentControlDescriptor": {
|
|
4391
|
+
"type": "object",
|
|
4392
|
+
"properties": {
|
|
4393
|
+
"kind": {
|
|
4394
|
+
"type": "string",
|
|
4395
|
+
"const": "contentControl"
|
|
4396
|
+
},
|
|
4397
|
+
"controlType": {
|
|
4398
|
+
"type": "string",
|
|
4399
|
+
"enum": [
|
|
4400
|
+
"richText",
|
|
4401
|
+
"plainText",
|
|
4402
|
+
"checkbox",
|
|
4403
|
+
"dropDown",
|
|
4404
|
+
"comboBox",
|
|
4405
|
+
"date",
|
|
4406
|
+
"picture",
|
|
4407
|
+
"repeatingSection",
|
|
4408
|
+
"button",
|
|
4409
|
+
"index",
|
|
4410
|
+
"group"
|
|
4411
|
+
]
|
|
4412
|
+
},
|
|
4413
|
+
"tag": {
|
|
4414
|
+
"type": "string"
|
|
4415
|
+
},
|
|
4416
|
+
"alias": {
|
|
4417
|
+
"type": "string"
|
|
4418
|
+
},
|
|
4419
|
+
"lock": {
|
|
4420
|
+
"type": "string",
|
|
4421
|
+
"enum": [
|
|
4422
|
+
"content",
|
|
4423
|
+
"container",
|
|
4424
|
+
"both"
|
|
4425
|
+
]
|
|
4426
|
+
},
|
|
4427
|
+
"value": {
|
|
4428
|
+
"type": "string"
|
|
4429
|
+
},
|
|
4430
|
+
"checked": {
|
|
4431
|
+
"type": "boolean"
|
|
4432
|
+
},
|
|
4433
|
+
"options": {
|
|
4434
|
+
"type": "array",
|
|
4435
|
+
"items": {
|
|
4436
|
+
"type": "string"
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4440
|
+
"required": [
|
|
4441
|
+
"kind",
|
|
4442
|
+
"controlType"
|
|
4443
|
+
],
|
|
4444
|
+
"additionalProperties": false
|
|
4445
|
+
},
|
|
4446
|
+
"FieldDescriptor": {
|
|
4447
|
+
"type": "object",
|
|
4448
|
+
"properties": {
|
|
4449
|
+
"kind": {
|
|
4450
|
+
"type": "string",
|
|
4451
|
+
"const": "field"
|
|
4452
|
+
},
|
|
4453
|
+
"instruction": {
|
|
4454
|
+
"type": "string"
|
|
4455
|
+
},
|
|
4456
|
+
"cachedResult": {
|
|
4457
|
+
"type": "string"
|
|
4458
|
+
}
|
|
4459
|
+
},
|
|
4460
|
+
"required": [
|
|
4461
|
+
"kind",
|
|
4462
|
+
"instruction"
|
|
4463
|
+
],
|
|
4464
|
+
"additionalProperties": false
|
|
4465
|
+
},
|
|
4466
|
+
"AnchorDescriptor": {
|
|
4467
|
+
"type": "object",
|
|
4468
|
+
"properties": {
|
|
4469
|
+
"kind": {
|
|
4470
|
+
"type": "string",
|
|
4471
|
+
"const": "anchor"
|
|
4472
|
+
},
|
|
4473
|
+
"anchorType": {
|
|
4474
|
+
"type": "string",
|
|
4475
|
+
"enum": [
|
|
4476
|
+
"bookmark",
|
|
4477
|
+
"footnote",
|
|
4478
|
+
"endnote",
|
|
4479
|
+
"comment"
|
|
4480
|
+
]
|
|
4481
|
+
},
|
|
4482
|
+
"name": {
|
|
4483
|
+
"type": "string"
|
|
4484
|
+
},
|
|
4485
|
+
"definition": {
|
|
4486
|
+
"type": "string"
|
|
4487
|
+
}
|
|
4488
|
+
},
|
|
4489
|
+
"required": [
|
|
4490
|
+
"kind",
|
|
4491
|
+
"anchorType",
|
|
4492
|
+
"name"
|
|
4493
|
+
],
|
|
4494
|
+
"additionalProperties": false
|
|
4495
|
+
},
|
|
4496
|
+
"LinkTarget": {
|
|
4497
|
+
"oneOf": [
|
|
4498
|
+
{
|
|
4499
|
+
"type": "object",
|
|
4500
|
+
"properties": {
|
|
4501
|
+
"kind": {
|
|
4502
|
+
"type": "string",
|
|
4503
|
+
"const": "external"
|
|
4504
|
+
},
|
|
4505
|
+
"uri": {
|
|
4506
|
+
"type": "string"
|
|
4507
|
+
}
|
|
4508
|
+
},
|
|
4509
|
+
"required": [
|
|
4510
|
+
"kind",
|
|
4511
|
+
"uri"
|
|
4512
|
+
],
|
|
4513
|
+
"additionalProperties": false
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
"type": "object",
|
|
4517
|
+
"properties": {
|
|
4518
|
+
"kind": {
|
|
4519
|
+
"type": "string",
|
|
4520
|
+
"const": "internal"
|
|
4521
|
+
},
|
|
4522
|
+
"anchor": {
|
|
4523
|
+
"type": "string"
|
|
4524
|
+
}
|
|
4525
|
+
},
|
|
4526
|
+
"required": [
|
|
4527
|
+
"kind",
|
|
4528
|
+
"anchor"
|
|
4529
|
+
],
|
|
4530
|
+
"additionalProperties": false
|
|
4531
|
+
}
|
|
4532
|
+
]
|
|
4533
|
+
},
|
|
4534
|
+
"LinkDescriptor": {
|
|
4535
|
+
"type": "object",
|
|
4536
|
+
"properties": {
|
|
4537
|
+
"kind": {
|
|
4538
|
+
"type": "string",
|
|
4539
|
+
"const": "link"
|
|
4540
|
+
},
|
|
4541
|
+
"target": {
|
|
4542
|
+
"$ref": "#/$defs/LinkTarget"
|
|
4543
|
+
},
|
|
4544
|
+
"title": {
|
|
4545
|
+
"type": "string"
|
|
4546
|
+
}
|
|
4547
|
+
},
|
|
4548
|
+
"required": [
|
|
4549
|
+
"kind",
|
|
4550
|
+
"target"
|
|
4551
|
+
],
|
|
4552
|
+
"additionalProperties": false
|
|
4553
|
+
},
|
|
4554
|
+
"ProvenanceDescriptor": {
|
|
4555
|
+
"type": "object",
|
|
4556
|
+
"properties": {
|
|
4557
|
+
"kind": {
|
|
4558
|
+
"type": "string",
|
|
4559
|
+
"const": "provenance"
|
|
4560
|
+
},
|
|
4561
|
+
"change": {
|
|
4562
|
+
"type": "string",
|
|
4563
|
+
"enum": [
|
|
4564
|
+
"insertion",
|
|
4565
|
+
"deletion",
|
|
4566
|
+
"moveFrom",
|
|
4567
|
+
"moveTo",
|
|
4568
|
+
"formatChange"
|
|
4569
|
+
]
|
|
4570
|
+
},
|
|
4571
|
+
"author": {
|
|
4572
|
+
"type": "string"
|
|
4573
|
+
},
|
|
4574
|
+
"dateIso": {
|
|
4575
|
+
"type": "string"
|
|
4576
|
+
}
|
|
4577
|
+
},
|
|
4578
|
+
"required": [
|
|
4579
|
+
"kind",
|
|
4580
|
+
"change"
|
|
4581
|
+
],
|
|
4582
|
+
"additionalProperties": false
|
|
4583
|
+
},
|
|
4584
|
+
"DivisionSource": {
|
|
4585
|
+
"type": "object",
|
|
4586
|
+
"properties": {
|
|
4587
|
+
"href": {
|
|
4588
|
+
"type": "string"
|
|
4589
|
+
},
|
|
4590
|
+
"sectionName": {
|
|
4591
|
+
"type": "string"
|
|
4592
|
+
}
|
|
4593
|
+
},
|
|
4594
|
+
"required": [
|
|
4595
|
+
"href"
|
|
4596
|
+
],
|
|
4597
|
+
"additionalProperties": false
|
|
4598
|
+
},
|
|
4599
|
+
"DivisionDescriptor": {
|
|
4600
|
+
"type": "object",
|
|
4601
|
+
"properties": {
|
|
4602
|
+
"kind": {
|
|
4603
|
+
"type": "string",
|
|
4604
|
+
"const": "division"
|
|
4605
|
+
},
|
|
4606
|
+
"name": {
|
|
4607
|
+
"type": "string"
|
|
4608
|
+
},
|
|
4609
|
+
"columnCount": {
|
|
4610
|
+
"type": "integer",
|
|
4611
|
+
"exclusiveMinimum": 0,
|
|
4612
|
+
"maximum": 9007199254740991
|
|
4613
|
+
},
|
|
4614
|
+
"protected": {
|
|
4615
|
+
"type": "boolean"
|
|
4616
|
+
},
|
|
4617
|
+
"source": {
|
|
4618
|
+
"$ref": "#/$defs/DivisionSource"
|
|
4619
|
+
}
|
|
4620
|
+
},
|
|
4621
|
+
"required": [
|
|
4622
|
+
"kind"
|
|
4623
|
+
],
|
|
4624
|
+
"additionalProperties": false
|
|
4625
|
+
},
|
|
4626
|
+
"ConstructDescriptor": {
|
|
4627
|
+
"oneOf": [
|
|
4628
|
+
{
|
|
4629
|
+
"$ref": "#/$defs/ContentControlDescriptor"
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
"$ref": "#/$defs/FieldDescriptor"
|
|
4633
|
+
},
|
|
4634
|
+
{
|
|
4635
|
+
"$ref": "#/$defs/AnchorDescriptor"
|
|
4636
|
+
},
|
|
4637
|
+
{
|
|
4638
|
+
"$ref": "#/$defs/LinkDescriptor"
|
|
4639
|
+
},
|
|
4640
|
+
{
|
|
4641
|
+
"$ref": "#/$defs/ProvenanceDescriptor"
|
|
4642
|
+
},
|
|
4643
|
+
{
|
|
4644
|
+
"$ref": "#/$defs/DivisionDescriptor"
|
|
4645
|
+
}
|
|
4646
|
+
]
|
|
4647
|
+
},
|
|
4311
4648
|
"StyleParagraphProperties": {
|
|
4312
4649
|
"type": "object",
|
|
4313
4650
|
"properties": {
|