document-model.js 3.3.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.
Files changed (47) hide show
  1. package/README.md +141 -30
  2. package/dist/codec.d.cts +2 -7
  3. package/dist/codec.d.ts +2 -7
  4. package/dist/construct-CdQuI9f5.d.cts +204 -0
  5. package/dist/construct-CdQuI9f5.d.ts +204 -0
  6. package/dist/construct.cjs +106 -0
  7. package/dist/construct.d.cts +2 -0
  8. package/dist/construct.d.ts +2 -0
  9. package/dist/construct.js +93 -0
  10. package/dist/content-BN0PWqpt.d.cts +2393 -0
  11. package/dist/content-CiZf6Fqn.d.ts +2393 -0
  12. package/dist/content-json-schema-defs.cjs +1227 -0
  13. package/dist/content-json-schema-defs.js +1227 -0
  14. package/dist/content.cjs +1 -7
  15. package/dist/content.d.cts +2 -2354
  16. package/dist/content.d.ts +2 -2354
  17. package/dist/content.js +1 -7
  18. package/dist/definitions.cjs +109 -0
  19. package/dist/definitions.d.cts +115 -0
  20. package/dist/definitions.d.ts +115 -0
  21. package/dist/definitions.js +99 -0
  22. package/dist/index.cjs +60 -18
  23. package/dist/index.d.cts +8 -6
  24. package/dist/index.d.ts +8 -6
  25. package/dist/index.js +7 -5
  26. package/dist/package-node-BiUEzIzl.d.cts +456 -0
  27. package/dist/package-node-DLUobcDQ.d.ts +456 -0
  28. package/dist/package-node.cjs +133 -0
  29. package/dist/package-node.d.cts +2 -0
  30. package/dist/package-node.d.ts +2 -0
  31. package/dist/package-node.js +102 -0
  32. package/dist/package.cjs +40 -7
  33. package/dist/package.d.cts +497 -755
  34. package/dist/package.d.ts +497 -755
  35. package/dist/package.js +42 -8
  36. package/dist/schema-io.cjs +55 -25
  37. package/dist/schema-io.d.cts +13 -11
  38. package/dist/schema-io.d.ts +13 -11
  39. package/dist/schema-io.js +54 -25
  40. package/package.json +2 -2
  41. package/schemas/content-document.schema.json +1813 -68
  42. package/schemas/document-package.schema.json +3528 -30
  43. package/dist/layout.cjs +0 -150
  44. package/dist/layout.d.cts +0 -684
  45. package/dist/layout.d.ts +0 -684
  46. package/dist/layout.js +0 -136
  47. package/schemas/layout-document.schema.json +0 -760
@@ -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@3.3.0/schemas/content-document.schema.json",
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",
@@ -9,10 +9,6 @@
9
9
  "type": "string",
10
10
  "const": "wordprocessing"
11
11
  },
12
- "formatVersion": {
13
- "type": "number",
14
- "const": 3
15
- },
16
12
  "metadata": {
17
13
  "type": "object",
18
14
  "properties": {
@@ -118,7 +114,6 @@
118
114
  },
119
115
  "required": [
120
116
  "kind",
121
- "formatVersion",
122
117
  "metadata",
123
118
  "sections"
124
119
  ],
@@ -131,10 +126,6 @@
131
126
  "type": "string",
132
127
  "const": "presentation"
133
128
  },
134
- "formatVersion": {
135
- "type": "number",
136
- "const": 3
137
- },
138
129
  "metadata": {
139
130
  "type": "object",
140
131
  "properties": {
@@ -329,7 +320,6 @@
329
320
  },
330
321
  "required": [
331
322
  "kind",
332
- "formatVersion",
333
323
  "metadata",
334
324
  "slides"
335
325
  ],
@@ -342,10 +332,6 @@
342
332
  "type": "string",
343
333
  "const": "spreadsheet"
344
334
  },
345
- "formatVersion": {
346
- "type": "number",
347
- "const": 3
348
- },
349
335
  "metadata": {
350
336
  "type": "object",
351
337
  "properties": {
@@ -1380,47 +1366,7 @@
1380
1366
  "embeddedObjects": {
1381
1367
  "type": "array",
1382
1368
  "items": {
1383
- "type": "object",
1384
- "properties": {
1385
- "objectKind": {
1386
- "type": "string",
1387
- "enum": [
1388
- "formula",
1389
- "wordprocessing",
1390
- "presentation",
1391
- "spreadsheet",
1392
- "drawing"
1393
- ]
1394
- },
1395
- "document": {
1396
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/content-document.schema.json"
1397
- },
1398
- "frame": {
1399
- "$ref": "#/$defs/Box"
1400
- },
1401
- "anchorRow": {
1402
- "type": "integer",
1403
- "minimum": 0,
1404
- "maximum": 9007199254740991
1405
- },
1406
- "anchorColumn": {
1407
- "type": "integer",
1408
- "minimum": 0,
1409
- "maximum": 9007199254740991
1410
- },
1411
- "offsetXPt": {
1412
- "type": "number"
1413
- },
1414
- "offsetYPt": {
1415
- "type": "number"
1416
- }
1417
- },
1418
- "required": [
1419
- "objectKind",
1420
- "document",
1421
- "frame"
1422
- ],
1423
- "additionalProperties": false
1369
+ "$ref": "#/$defs/ContentEmbeddedObject"
1424
1370
  }
1425
1371
  }
1426
1372
  },
@@ -1438,7 +1384,6 @@
1438
1384
  },
1439
1385
  "required": [
1440
1386
  "kind",
1441
- "formatVersion",
1442
1387
  "metadata",
1443
1388
  "sheets"
1444
1389
  ],
@@ -1451,10 +1396,6 @@
1451
1396
  "type": "string",
1452
1397
  "const": "drawing"
1453
1398
  },
1454
- "formatVersion": {
1455
- "type": "number",
1456
- "const": 3
1457
- },
1458
1399
  "metadata": {
1459
1400
  "type": "object",
1460
1401
  "properties": {
@@ -2410,7 +2351,6 @@
2410
2351
  },
2411
2352
  "required": [
2412
2353
  "kind",
2413
- "formatVersion",
2414
2354
  "metadata",
2415
2355
  "pages"
2416
2356
  ],
@@ -2423,10 +2363,6 @@
2423
2363
  "type": "string",
2424
2364
  "const": "formula"
2425
2365
  },
2426
- "formatVersion": {
2427
- "type": "number",
2428
- "const": 3
2429
- },
2430
2366
  "metadata": {
2431
2367
  "type": "object",
2432
2368
  "properties": {
@@ -2469,7 +2405,6 @@
2469
2405
  },
2470
2406
  "required": [
2471
2407
  "kind",
2472
- "formatVersion",
2473
2408
  "metadata",
2474
2409
  "formula"
2475
2410
  ],
@@ -2922,7 +2857,7 @@
2922
2857
  ]
2923
2858
  },
2924
2859
  "document": {
2925
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@3.3.0/schemas/content-document.schema.json"
2860
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
2926
2861
  },
2927
2862
  "frame": {
2928
2863
  "$ref": "#/$defs/Box"
@@ -2980,6 +2915,1816 @@
2980
2915
  }
2981
2916
  ]
2982
2917
  },
2918
+ "PageSize": {
2919
+ "type": "object",
2920
+ "properties": {
2921
+ "widthPt": {
2922
+ "type": "number",
2923
+ "exclusiveMinimum": 0
2924
+ },
2925
+ "heightPt": {
2926
+ "type": "number",
2927
+ "exclusiveMinimum": 0
2928
+ }
2929
+ },
2930
+ "required": [
2931
+ "widthPt",
2932
+ "heightPt"
2933
+ ],
2934
+ "additionalProperties": false
2935
+ },
2936
+ "Margins": {
2937
+ "type": "object",
2938
+ "properties": {
2939
+ "topPt": {
2940
+ "type": "number",
2941
+ "minimum": 0
2942
+ },
2943
+ "rightPt": {
2944
+ "type": "number",
2945
+ "minimum": 0
2946
+ },
2947
+ "bottomPt": {
2948
+ "type": "number",
2949
+ "minimum": 0
2950
+ },
2951
+ "leftPt": {
2952
+ "type": "number",
2953
+ "minimum": 0
2954
+ }
2955
+ },
2956
+ "required": [
2957
+ "topPt",
2958
+ "rightPt",
2959
+ "bottomPt",
2960
+ "leftPt"
2961
+ ],
2962
+ "additionalProperties": false
2963
+ },
2964
+ "SectionDescriptor": {
2965
+ "type": "object",
2966
+ "properties": {
2967
+ "pageSize": {
2968
+ "$ref": "#/$defs/PageSize"
2969
+ },
2970
+ "margins": {
2971
+ "$ref": "#/$defs/Margins"
2972
+ },
2973
+ "kind": {
2974
+ "type": "string",
2975
+ "const": "section"
2976
+ }
2977
+ },
2978
+ "required": [
2979
+ "pageSize",
2980
+ "margins",
2981
+ "kind"
2982
+ ],
2983
+ "additionalProperties": false
2984
+ },
2985
+ "SlideDescriptor": {
2986
+ "type": "object",
2987
+ "properties": {
2988
+ "size": {
2989
+ "$ref": "#/$defs/PageSize"
2990
+ },
2991
+ "notes": {
2992
+ "type": "string"
2993
+ },
2994
+ "kind": {
2995
+ "type": "string",
2996
+ "const": "slide"
2997
+ }
2998
+ },
2999
+ "required": [
3000
+ "size",
3001
+ "notes",
3002
+ "kind"
3003
+ ],
3004
+ "additionalProperties": false
3005
+ },
3006
+ "SheetDescriptor": {
3007
+ "type": "object",
3008
+ "properties": {
3009
+ "name": {
3010
+ "type": "string"
3011
+ },
3012
+ "cells": {
3013
+ "type": "array",
3014
+ "items": {
3015
+ "$ref": "#/$defs/ContentSheetCell"
3016
+ }
3017
+ },
3018
+ "columns": {
3019
+ "type": "array",
3020
+ "items": {
3021
+ "$ref": "#/$defs/ContentSheetColumn"
3022
+ }
3023
+ },
3024
+ "rows": {
3025
+ "type": "array",
3026
+ "items": {
3027
+ "$ref": "#/$defs/ContentSheetRow"
3028
+ }
3029
+ },
3030
+ "printSettings": {
3031
+ "$ref": "#/$defs/ContentSheetPrintSettings"
3032
+ },
3033
+ "kind": {
3034
+ "type": "string",
3035
+ "const": "sheet"
3036
+ }
3037
+ },
3038
+ "required": [
3039
+ "name",
3040
+ "cells",
3041
+ "columns",
3042
+ "rows",
3043
+ "printSettings",
3044
+ "kind"
3045
+ ],
3046
+ "additionalProperties": false
3047
+ },
3048
+ "DrawPageDescriptor": {
3049
+ "type": "object",
3050
+ "properties": {
3051
+ "size": {
3052
+ "$ref": "#/$defs/PageSize"
3053
+ },
3054
+ "kind": {
3055
+ "type": "string",
3056
+ "const": "drawPage"
3057
+ }
3058
+ },
3059
+ "required": [
3060
+ "size",
3061
+ "kind"
3062
+ ],
3063
+ "additionalProperties": false
3064
+ },
3065
+ "ShapeDescriptor": {
3066
+ "type": "object",
3067
+ "properties": {
3068
+ "name": {
3069
+ "type": "string"
3070
+ },
3071
+ "frame": {
3072
+ "$ref": "#/$defs/Box"
3073
+ },
3074
+ "rotationDeg": {
3075
+ "type": "number"
3076
+ },
3077
+ "insetLeftPt": {
3078
+ "type": "number",
3079
+ "minimum": 0
3080
+ },
3081
+ "insetTopPt": {
3082
+ "type": "number",
3083
+ "minimum": 0
3084
+ },
3085
+ "insetRightPt": {
3086
+ "type": "number",
3087
+ "minimum": 0
3088
+ },
3089
+ "insetBottomPt": {
3090
+ "type": "number",
3091
+ "minimum": 0
3092
+ },
3093
+ "fontScale": {
3094
+ "type": "number",
3095
+ "exclusiveMinimum": 0
3096
+ },
3097
+ "lineSpacingReduction": {
3098
+ "type": "number",
3099
+ "minimum": 0
3100
+ },
3101
+ "paintOrder": {
3102
+ "type": "number"
3103
+ },
3104
+ "sourcePath": {
3105
+ "type": "string"
3106
+ },
3107
+ "frames": {
3108
+ "type": "array",
3109
+ "items": {
3110
+ "$ref": "#/$defs/LayoutFrame"
3111
+ }
3112
+ }
3113
+ },
3114
+ "required": [
3115
+ "frame",
3116
+ "insetLeftPt",
3117
+ "insetTopPt",
3118
+ "insetRightPt",
3119
+ "insetBottomPt"
3120
+ ],
3121
+ "additionalProperties": false
3122
+ },
3123
+ "HeadingParagraph": {
3124
+ "type": "object",
3125
+ "properties": {
3126
+ "kind": {
3127
+ "type": "string",
3128
+ "const": "paragraph"
3129
+ },
3130
+ "runs": {
3131
+ "type": "array",
3132
+ "items": {
3133
+ "$ref": "#/$defs/ContentRun"
3134
+ }
3135
+ },
3136
+ "styleId": {
3137
+ "type": "string"
3138
+ },
3139
+ "headingLevel": {
3140
+ "type": "integer",
3141
+ "exclusiveMinimum": 0,
3142
+ "maximum": 9007199254740991
3143
+ },
3144
+ "alignment": {
3145
+ "$ref": "#/$defs/Alignment"
3146
+ },
3147
+ "list": {
3148
+ "$ref": "#/$defs/ContentListMembership"
3149
+ },
3150
+ "spacingBeforePt": {
3151
+ "type": "number"
3152
+ },
3153
+ "spacingAfterPt": {
3154
+ "type": "number"
3155
+ },
3156
+ "lineSpacing": {
3157
+ "type": "number",
3158
+ "exclusiveMinimum": 0
3159
+ },
3160
+ "indentLeftPt": {
3161
+ "type": "number"
3162
+ },
3163
+ "indentFirstLinePt": {
3164
+ "type": "number"
3165
+ },
3166
+ "sourcePath": {
3167
+ "type": "string"
3168
+ },
3169
+ "frames": {
3170
+ "type": "array",
3171
+ "items": {
3172
+ "$ref": "#/$defs/LayoutFrame"
3173
+ }
3174
+ }
3175
+ },
3176
+ "required": [
3177
+ "kind",
3178
+ "runs",
3179
+ "headingLevel"
3180
+ ],
3181
+ "additionalProperties": false
3182
+ },
3183
+ "ListParagraph": {
3184
+ "type": "object",
3185
+ "properties": {
3186
+ "kind": {
3187
+ "type": "string",
3188
+ "const": "paragraph"
3189
+ },
3190
+ "runs": {
3191
+ "type": "array",
3192
+ "items": {
3193
+ "$ref": "#/$defs/ContentRun"
3194
+ }
3195
+ },
3196
+ "styleId": {
3197
+ "type": "string"
3198
+ },
3199
+ "headingLevel": {
3200
+ "type": "integer",
3201
+ "exclusiveMinimum": 0,
3202
+ "maximum": 9007199254740991
3203
+ },
3204
+ "alignment": {
3205
+ "$ref": "#/$defs/Alignment"
3206
+ },
3207
+ "list": {
3208
+ "$ref": "#/$defs/ContentListMembership"
3209
+ },
3210
+ "spacingBeforePt": {
3211
+ "type": "number"
3212
+ },
3213
+ "spacingAfterPt": {
3214
+ "type": "number"
3215
+ },
3216
+ "lineSpacing": {
3217
+ "type": "number",
3218
+ "exclusiveMinimum": 0
3219
+ },
3220
+ "indentLeftPt": {
3221
+ "type": "number"
3222
+ },
3223
+ "indentFirstLinePt": {
3224
+ "type": "number"
3225
+ },
3226
+ "sourcePath": {
3227
+ "type": "string"
3228
+ },
3229
+ "frames": {
3230
+ "type": "array",
3231
+ "items": {
3232
+ "$ref": "#/$defs/LayoutFrame"
3233
+ }
3234
+ }
3235
+ },
3236
+ "required": [
3237
+ "kind",
3238
+ "runs",
3239
+ "list"
3240
+ ],
3241
+ "additionalProperties": false
3242
+ },
3243
+ "ContentSheetCell": {
3244
+ "type": "object",
3245
+ "properties": {
3246
+ "row": {
3247
+ "type": "integer",
3248
+ "minimum": 0,
3249
+ "maximum": 9007199254740991
3250
+ },
3251
+ "column": {
3252
+ "type": "integer",
3253
+ "minimum": 0,
3254
+ "maximum": 9007199254740991
3255
+ },
3256
+ "value": {
3257
+ "$ref": "#/$defs/ContentCellValue"
3258
+ },
3259
+ "formula": {
3260
+ "type": "string"
3261
+ },
3262
+ "displayText": {
3263
+ "type": "string"
3264
+ },
3265
+ "runs": {
3266
+ "type": "array",
3267
+ "items": {
3268
+ "$ref": "#/$defs/ContentRun"
3269
+ }
3270
+ },
3271
+ "colSpan": {
3272
+ "type": "integer",
3273
+ "exclusiveMinimum": 0,
3274
+ "maximum": 9007199254740991
3275
+ },
3276
+ "rowSpan": {
3277
+ "type": "integer",
3278
+ "exclusiveMinimum": 0,
3279
+ "maximum": 9007199254740991
3280
+ },
3281
+ "background": {
3282
+ "$ref": "#/$defs/Color"
3283
+ },
3284
+ "borders": {
3285
+ "$ref": "#/$defs/ContentCellBorders"
3286
+ },
3287
+ "alignment": {
3288
+ "$ref": "#/$defs/Alignment"
3289
+ },
3290
+ "verticalAlignment": {
3291
+ "type": "string",
3292
+ "enum": [
3293
+ "top",
3294
+ "middle",
3295
+ "bottom"
3296
+ ]
3297
+ },
3298
+ "comment": {
3299
+ "$ref": "#/$defs/ContentSheetCellComment"
3300
+ },
3301
+ "sourcePath": {
3302
+ "type": "string"
3303
+ },
3304
+ "frames": {
3305
+ "type": "array",
3306
+ "items": {
3307
+ "$ref": "#/$defs/LayoutFrame"
3308
+ }
3309
+ }
3310
+ },
3311
+ "required": [
3312
+ "row",
3313
+ "column",
3314
+ "value",
3315
+ "displayText"
3316
+ ],
3317
+ "additionalProperties": false
3318
+ },
3319
+ "ContentCellValue": {
3320
+ "oneOf": [
3321
+ {
3322
+ "type": "object",
3323
+ "properties": {
3324
+ "kind": {
3325
+ "type": "string",
3326
+ "const": "number"
3327
+ },
3328
+ "value": {
3329
+ "type": "number"
3330
+ },
3331
+ "exactValue": {
3332
+ "type": "string",
3333
+ "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
3334
+ }
3335
+ },
3336
+ "required": [
3337
+ "kind",
3338
+ "value"
3339
+ ],
3340
+ "additionalProperties": false
3341
+ },
3342
+ {
3343
+ "type": "object",
3344
+ "properties": {
3345
+ "kind": {
3346
+ "type": "string",
3347
+ "const": "percentage"
3348
+ },
3349
+ "value": {
3350
+ "type": "number"
3351
+ },
3352
+ "exactValue": {
3353
+ "type": "string",
3354
+ "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
3355
+ }
3356
+ },
3357
+ "required": [
3358
+ "kind",
3359
+ "value"
3360
+ ],
3361
+ "additionalProperties": false
3362
+ },
3363
+ {
3364
+ "type": "object",
3365
+ "properties": {
3366
+ "kind": {
3367
+ "type": "string",
3368
+ "const": "currency"
3369
+ },
3370
+ "value": {
3371
+ "type": "number"
3372
+ },
3373
+ "currency": {
3374
+ "type": "string"
3375
+ },
3376
+ "exactValue": {
3377
+ "type": "string",
3378
+ "pattern": "^-?(0|[1-9]\\d*)(\\.\\d+)?$"
3379
+ }
3380
+ },
3381
+ "required": [
3382
+ "kind",
3383
+ "value"
3384
+ ],
3385
+ "additionalProperties": false
3386
+ },
3387
+ {
3388
+ "type": "object",
3389
+ "properties": {
3390
+ "kind": {
3391
+ "type": "string",
3392
+ "const": "boolean"
3393
+ },
3394
+ "value": {
3395
+ "type": "boolean"
3396
+ }
3397
+ },
3398
+ "required": [
3399
+ "kind",
3400
+ "value"
3401
+ ],
3402
+ "additionalProperties": false
3403
+ },
3404
+ {
3405
+ "type": "object",
3406
+ "properties": {
3407
+ "kind": {
3408
+ "type": "string",
3409
+ "const": "date"
3410
+ },
3411
+ "value": {
3412
+ "type": "string"
3413
+ }
3414
+ },
3415
+ "required": [
3416
+ "kind",
3417
+ "value"
3418
+ ],
3419
+ "additionalProperties": false
3420
+ },
3421
+ {
3422
+ "type": "object",
3423
+ "properties": {
3424
+ "kind": {
3425
+ "type": "string",
3426
+ "const": "time"
3427
+ },
3428
+ "value": {
3429
+ "type": "string"
3430
+ }
3431
+ },
3432
+ "required": [
3433
+ "kind",
3434
+ "value"
3435
+ ],
3436
+ "additionalProperties": false
3437
+ },
3438
+ {
3439
+ "type": "object",
3440
+ "properties": {
3441
+ "kind": {
3442
+ "type": "string",
3443
+ "const": "dateTime"
3444
+ },
3445
+ "value": {
3446
+ "type": "string"
3447
+ }
3448
+ },
3449
+ "required": [
3450
+ "kind",
3451
+ "value"
3452
+ ],
3453
+ "additionalProperties": false
3454
+ },
3455
+ {
3456
+ "type": "object",
3457
+ "properties": {
3458
+ "kind": {
3459
+ "type": "string",
3460
+ "const": "string"
3461
+ },
3462
+ "value": {
3463
+ "type": "string"
3464
+ }
3465
+ },
3466
+ "required": [
3467
+ "kind",
3468
+ "value"
3469
+ ],
3470
+ "additionalProperties": false
3471
+ },
3472
+ {
3473
+ "type": "object",
3474
+ "properties": {
3475
+ "kind": {
3476
+ "type": "string",
3477
+ "const": "error"
3478
+ },
3479
+ "value": {
3480
+ "type": "string"
3481
+ }
3482
+ },
3483
+ "required": [
3484
+ "kind",
3485
+ "value"
3486
+ ],
3487
+ "additionalProperties": false
3488
+ },
3489
+ {
3490
+ "type": "object",
3491
+ "properties": {
3492
+ "kind": {
3493
+ "type": "string",
3494
+ "const": "empty"
3495
+ }
3496
+ },
3497
+ "required": [
3498
+ "kind"
3499
+ ],
3500
+ "additionalProperties": false
3501
+ }
3502
+ ]
3503
+ },
3504
+ "ContentSheetCellComment": {
3505
+ "type": "object",
3506
+ "properties": {
3507
+ "text": {
3508
+ "type": "string"
3509
+ },
3510
+ "author": {
3511
+ "type": "string"
3512
+ },
3513
+ "createdAt": {
3514
+ "type": "string"
3515
+ },
3516
+ "replies": {
3517
+ "type": "array",
3518
+ "items": {
3519
+ "type": "object",
3520
+ "properties": {
3521
+ "text": {
3522
+ "type": "string"
3523
+ },
3524
+ "author": {
3525
+ "type": "string"
3526
+ }
3527
+ },
3528
+ "required": [
3529
+ "text"
3530
+ ],
3531
+ "additionalProperties": false
3532
+ }
3533
+ }
3534
+ },
3535
+ "required": [
3536
+ "text"
3537
+ ],
3538
+ "additionalProperties": false
3539
+ },
3540
+ "ContentSheetColumn": {
3541
+ "type": "object",
3542
+ "properties": {
3543
+ "index": {
3544
+ "type": "integer",
3545
+ "minimum": 0,
3546
+ "maximum": 9007199254740991
3547
+ },
3548
+ "widthPt": {
3549
+ "type": "number",
3550
+ "exclusiveMinimum": 0
3551
+ },
3552
+ "hidden": {
3553
+ "type": "boolean"
3554
+ }
3555
+ },
3556
+ "required": [
3557
+ "index"
3558
+ ],
3559
+ "additionalProperties": false
3560
+ },
3561
+ "ContentSheetRow": {
3562
+ "type": "object",
3563
+ "properties": {
3564
+ "index": {
3565
+ "type": "integer",
3566
+ "minimum": 0,
3567
+ "maximum": 9007199254740991
3568
+ },
3569
+ "heightPt": {
3570
+ "type": "number",
3571
+ "exclusiveMinimum": 0
3572
+ },
3573
+ "hidden": {
3574
+ "type": "boolean"
3575
+ }
3576
+ },
3577
+ "required": [
3578
+ "index"
3579
+ ],
3580
+ "additionalProperties": false
3581
+ },
3582
+ "ContentSheetPrintSettings": {
3583
+ "type": "object",
3584
+ "properties": {
3585
+ "pageSize": {
3586
+ "$ref": "#/$defs/PageSize"
3587
+ },
3588
+ "margins": {
3589
+ "$ref": "#/$defs/Margins"
3590
+ },
3591
+ "printRange": {
3592
+ "$ref": "#/$defs/ContentSheetPrintRange"
3593
+ },
3594
+ "scalePercent": {
3595
+ "type": "number",
3596
+ "exclusiveMinimum": 0
3597
+ },
3598
+ "fitToPages": {
3599
+ "type": "object",
3600
+ "properties": {
3601
+ "width": {
3602
+ "type": "integer",
3603
+ "exclusiveMinimum": 0,
3604
+ "maximum": 9007199254740991
3605
+ },
3606
+ "height": {
3607
+ "type": "integer",
3608
+ "exclusiveMinimum": 0,
3609
+ "maximum": 9007199254740991
3610
+ }
3611
+ },
3612
+ "required": [
3613
+ "width",
3614
+ "height"
3615
+ ],
3616
+ "additionalProperties": false
3617
+ },
3618
+ "repeatRows": {
3619
+ "$ref": "#/$defs/ContentSheetRepeatRange"
3620
+ },
3621
+ "repeatColumns": {
3622
+ "$ref": "#/$defs/ContentSheetRepeatRange"
3623
+ },
3624
+ "gridlines": {
3625
+ "type": "boolean"
3626
+ },
3627
+ "headers": {
3628
+ "type": "boolean"
3629
+ },
3630
+ "pageOrder": {
3631
+ "type": "string",
3632
+ "enum": [
3633
+ "downThenOver",
3634
+ "overThenDown"
3635
+ ]
3636
+ },
3637
+ "manualBreaks": {
3638
+ "type": "object",
3639
+ "properties": {
3640
+ "rows": {
3641
+ "type": "array",
3642
+ "items": {
3643
+ "type": "integer",
3644
+ "minimum": 0,
3645
+ "maximum": 9007199254740991
3646
+ }
3647
+ },
3648
+ "columns": {
3649
+ "type": "array",
3650
+ "items": {
3651
+ "type": "integer",
3652
+ "minimum": 0,
3653
+ "maximum": 9007199254740991
3654
+ }
3655
+ }
3656
+ },
3657
+ "required": [
3658
+ "rows",
3659
+ "columns"
3660
+ ],
3661
+ "additionalProperties": false
3662
+ }
3663
+ },
3664
+ "required": [
3665
+ "pageSize",
3666
+ "margins",
3667
+ "gridlines",
3668
+ "headers",
3669
+ "pageOrder"
3670
+ ],
3671
+ "additionalProperties": false
3672
+ },
3673
+ "ContentSheetPrintRange": {
3674
+ "type": "object",
3675
+ "properties": {
3676
+ "startRow": {
3677
+ "type": "integer",
3678
+ "minimum": 0,
3679
+ "maximum": 9007199254740991
3680
+ },
3681
+ "startColumn": {
3682
+ "type": "integer",
3683
+ "minimum": 0,
3684
+ "maximum": 9007199254740991
3685
+ },
3686
+ "endRow": {
3687
+ "type": "integer",
3688
+ "minimum": 0,
3689
+ "maximum": 9007199254740991
3690
+ },
3691
+ "endColumn": {
3692
+ "type": "integer",
3693
+ "minimum": 0,
3694
+ "maximum": 9007199254740991
3695
+ }
3696
+ },
3697
+ "required": [
3698
+ "startRow",
3699
+ "startColumn",
3700
+ "endRow",
3701
+ "endColumn"
3702
+ ],
3703
+ "additionalProperties": false
3704
+ },
3705
+ "ContentSheetRepeatRange": {
3706
+ "type": "object",
3707
+ "properties": {
3708
+ "start": {
3709
+ "type": "integer",
3710
+ "minimum": 0,
3711
+ "maximum": 9007199254740991
3712
+ },
3713
+ "end": {
3714
+ "type": "integer",
3715
+ "minimum": 0,
3716
+ "maximum": 9007199254740991
3717
+ }
3718
+ },
3719
+ "required": [
3720
+ "start",
3721
+ "end"
3722
+ ],
3723
+ "additionalProperties": false
3724
+ },
3725
+ "ContentSheetImage": {
3726
+ "type": "object",
3727
+ "properties": {
3728
+ "kind": {
3729
+ "type": "string",
3730
+ "const": "image"
3731
+ },
3732
+ "format": {
3733
+ "type": "string",
3734
+ "enum": [
3735
+ "png",
3736
+ "jpeg"
3737
+ ]
3738
+ },
3739
+ "base64": {
3740
+ "type": "string"
3741
+ },
3742
+ "widthPt": {
3743
+ "type": "number",
3744
+ "exclusiveMinimum": 0
3745
+ },
3746
+ "heightPt": {
3747
+ "type": "number",
3748
+ "exclusiveMinimum": 0
3749
+ },
3750
+ "altText": {
3751
+ "type": "string"
3752
+ },
3753
+ "sourcePath": {
3754
+ "type": "string"
3755
+ },
3756
+ "frames": {
3757
+ "type": "array",
3758
+ "items": {
3759
+ "$ref": "#/$defs/LayoutFrame"
3760
+ }
3761
+ },
3762
+ "anchorRow": {
3763
+ "type": "integer",
3764
+ "minimum": 0,
3765
+ "maximum": 9007199254740991
3766
+ },
3767
+ "anchorColumn": {
3768
+ "type": "integer",
3769
+ "minimum": 0,
3770
+ "maximum": 9007199254740991
3771
+ },
3772
+ "offsetXPt": {
3773
+ "type": "number"
3774
+ },
3775
+ "offsetYPt": {
3776
+ "type": "number"
3777
+ }
3778
+ },
3779
+ "required": [
3780
+ "kind",
3781
+ "format",
3782
+ "base64",
3783
+ "widthPt",
3784
+ "heightPt",
3785
+ "anchorRow",
3786
+ "anchorColumn",
3787
+ "offsetXPt",
3788
+ "offsetYPt"
3789
+ ],
3790
+ "additionalProperties": false
3791
+ },
3792
+ "ContentStroke": {
3793
+ "type": "object",
3794
+ "properties": {
3795
+ "color": {
3796
+ "$ref": "#/$defs/Color"
3797
+ },
3798
+ "widthPt": {
3799
+ "type": "number",
3800
+ "exclusiveMinimum": 0
3801
+ },
3802
+ "style": {
3803
+ "$ref": "#/$defs/ContentStrokeStyle"
3804
+ }
3805
+ },
3806
+ "required": [
3807
+ "color",
3808
+ "widthPt"
3809
+ ],
3810
+ "additionalProperties": false
3811
+ },
3812
+ "ContentPathPoint": {
3813
+ "type": "object",
3814
+ "properties": {
3815
+ "xPt": {
3816
+ "type": "number"
3817
+ },
3818
+ "yPt": {
3819
+ "type": "number"
3820
+ }
3821
+ },
3822
+ "required": [
3823
+ "xPt",
3824
+ "yPt"
3825
+ ],
3826
+ "additionalProperties": false
3827
+ },
3828
+ "ContentPathSegment": {
3829
+ "oneOf": [
3830
+ {
3831
+ "type": "object",
3832
+ "properties": {
3833
+ "kind": {
3834
+ "type": "string",
3835
+ "const": "line"
3836
+ },
3837
+ "to": {
3838
+ "$ref": "#/$defs/ContentPathPoint"
3839
+ }
3840
+ },
3841
+ "required": [
3842
+ "kind",
3843
+ "to"
3844
+ ],
3845
+ "additionalProperties": false
3846
+ },
3847
+ {
3848
+ "type": "object",
3849
+ "properties": {
3850
+ "kind": {
3851
+ "type": "string",
3852
+ "const": "cubic"
3853
+ },
3854
+ "control1": {
3855
+ "$ref": "#/$defs/ContentPathPoint"
3856
+ },
3857
+ "control2": {
3858
+ "$ref": "#/$defs/ContentPathPoint"
3859
+ },
3860
+ "to": {
3861
+ "$ref": "#/$defs/ContentPathPoint"
3862
+ }
3863
+ },
3864
+ "required": [
3865
+ "kind",
3866
+ "control1",
3867
+ "control2",
3868
+ "to"
3869
+ ],
3870
+ "additionalProperties": false
3871
+ }
3872
+ ]
3873
+ },
3874
+ "ContentSubpath": {
3875
+ "type": "object",
3876
+ "properties": {
3877
+ "start": {
3878
+ "$ref": "#/$defs/ContentPathPoint"
3879
+ },
3880
+ "segments": {
3881
+ "type": "array",
3882
+ "items": {
3883
+ "$ref": "#/$defs/ContentPathSegment"
3884
+ }
3885
+ },
3886
+ "closed": {
3887
+ "type": "boolean"
3888
+ }
3889
+ },
3890
+ "required": [
3891
+ "start",
3892
+ "segments",
3893
+ "closed"
3894
+ ],
3895
+ "additionalProperties": false
3896
+ },
3897
+ "ContentVector": {
3898
+ "oneOf": [
3899
+ {
3900
+ "type": "object",
3901
+ "properties": {
3902
+ "kind": {
3903
+ "type": "string",
3904
+ "const": "rect"
3905
+ },
3906
+ "frame": {
3907
+ "$ref": "#/$defs/Box"
3908
+ },
3909
+ "rotationDeg": {
3910
+ "type": "number"
3911
+ },
3912
+ "fill": {
3913
+ "$ref": "#/$defs/Color"
3914
+ },
3915
+ "stroke": {
3916
+ "$ref": "#/$defs/ContentStroke"
3917
+ },
3918
+ "paintOrder": {
3919
+ "type": "number"
3920
+ },
3921
+ "sourcePath": {
3922
+ "type": "string"
3923
+ },
3924
+ "frames": {
3925
+ "type": "array",
3926
+ "items": {
3927
+ "$ref": "#/$defs/LayoutFrame"
3928
+ }
3929
+ }
3930
+ },
3931
+ "required": [
3932
+ "kind",
3933
+ "frame"
3934
+ ],
3935
+ "additionalProperties": false
3936
+ },
3937
+ {
3938
+ "type": "object",
3939
+ "properties": {
3940
+ "kind": {
3941
+ "type": "string",
3942
+ "const": "ellipse"
3943
+ },
3944
+ "frame": {
3945
+ "$ref": "#/$defs/Box"
3946
+ },
3947
+ "rotationDeg": {
3948
+ "type": "number"
3949
+ },
3950
+ "fill": {
3951
+ "$ref": "#/$defs/Color"
3952
+ },
3953
+ "stroke": {
3954
+ "$ref": "#/$defs/ContentStroke"
3955
+ },
3956
+ "paintOrder": {
3957
+ "type": "number"
3958
+ },
3959
+ "sourcePath": {
3960
+ "type": "string"
3961
+ },
3962
+ "frames": {
3963
+ "type": "array",
3964
+ "items": {
3965
+ "$ref": "#/$defs/LayoutFrame"
3966
+ }
3967
+ }
3968
+ },
3969
+ "required": [
3970
+ "kind",
3971
+ "frame"
3972
+ ],
3973
+ "additionalProperties": false
3974
+ },
3975
+ {
3976
+ "type": "object",
3977
+ "properties": {
3978
+ "kind": {
3979
+ "type": "string",
3980
+ "const": "line"
3981
+ },
3982
+ "from": {
3983
+ "$ref": "#/$defs/ContentPathPoint"
3984
+ },
3985
+ "to": {
3986
+ "$ref": "#/$defs/ContentPathPoint"
3987
+ },
3988
+ "stroke": {
3989
+ "$ref": "#/$defs/ContentStroke"
3990
+ },
3991
+ "paintOrder": {
3992
+ "type": "number"
3993
+ },
3994
+ "sourcePath": {
3995
+ "type": "string"
3996
+ },
3997
+ "frames": {
3998
+ "type": "array",
3999
+ "items": {
4000
+ "$ref": "#/$defs/LayoutFrame"
4001
+ }
4002
+ }
4003
+ },
4004
+ "required": [
4005
+ "kind",
4006
+ "from",
4007
+ "to",
4008
+ "stroke"
4009
+ ],
4010
+ "additionalProperties": false
4011
+ },
4012
+ {
4013
+ "type": "object",
4014
+ "properties": {
4015
+ "kind": {
4016
+ "type": "string",
4017
+ "const": "path"
4018
+ },
4019
+ "frame": {
4020
+ "$ref": "#/$defs/Box"
4021
+ },
4022
+ "rotationDeg": {
4023
+ "type": "number"
4024
+ },
4025
+ "subpaths": {
4026
+ "type": "array",
4027
+ "items": {
4028
+ "$ref": "#/$defs/ContentSubpath"
4029
+ }
4030
+ },
4031
+ "fill": {
4032
+ "$ref": "#/$defs/Color"
4033
+ },
4034
+ "fillRule": {
4035
+ "type": "string",
4036
+ "enum": [
4037
+ "nonzero",
4038
+ "evenodd"
4039
+ ]
4040
+ },
4041
+ "stroke": {
4042
+ "$ref": "#/$defs/ContentStroke"
4043
+ },
4044
+ "paintOrder": {
4045
+ "type": "number"
4046
+ },
4047
+ "sourcePath": {
4048
+ "type": "string"
4049
+ },
4050
+ "frames": {
4051
+ "type": "array",
4052
+ "items": {
4053
+ "$ref": "#/$defs/LayoutFrame"
4054
+ }
4055
+ }
4056
+ },
4057
+ "required": [
4058
+ "kind",
4059
+ "frame",
4060
+ "subpaths"
4061
+ ],
4062
+ "additionalProperties": false
4063
+ }
4064
+ ]
4065
+ },
4066
+ "ContentEmbeddedObject": {
4067
+ "type": "object",
4068
+ "properties": {
4069
+ "objectKind": {
4070
+ "type": "string",
4071
+ "enum": [
4072
+ "formula",
4073
+ "wordprocessing",
4074
+ "presentation",
4075
+ "spreadsheet",
4076
+ "drawing"
4077
+ ]
4078
+ },
4079
+ "document": {
4080
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
4081
+ },
4082
+ "frame": {
4083
+ "$ref": "#/$defs/Box"
4084
+ },
4085
+ "anchorRow": {
4086
+ "type": "integer",
4087
+ "minimum": 0,
4088
+ "maximum": 9007199254740991
4089
+ },
4090
+ "anchorColumn": {
4091
+ "type": "integer",
4092
+ "minimum": 0,
4093
+ "maximum": 9007199254740991
4094
+ },
4095
+ "offsetXPt": {
4096
+ "type": "number"
4097
+ },
4098
+ "offsetYPt": {
4099
+ "type": "number"
4100
+ }
4101
+ },
4102
+ "required": [
4103
+ "objectKind",
4104
+ "document",
4105
+ "frame"
4106
+ ],
4107
+ "additionalProperties": false
4108
+ },
4109
+ "SectionGroup": {
4110
+ "type": "object",
4111
+ "properties": {
4112
+ "node": {
4113
+ "$ref": "#/$defs/SectionDescriptor"
4114
+ },
4115
+ "style": {
4116
+ "type": "string"
4117
+ },
4118
+ "children": {
4119
+ "type": "array",
4120
+ "items": {
4121
+ "oneOf": [
4122
+ {
4123
+ "$ref": "#/$defs/HeadingGroup"
4124
+ },
4125
+ {
4126
+ "$ref": "#/$defs/ListGroup"
4127
+ },
4128
+ {
4129
+ "$ref": "#/$defs/SectionConstructGroup"
4130
+ },
4131
+ {
4132
+ "$ref": "#/$defs/ContentBlock"
4133
+ }
4134
+ ]
4135
+ }
4136
+ }
4137
+ },
4138
+ "required": [
4139
+ "node",
4140
+ "children"
4141
+ ],
4142
+ "additionalProperties": false
4143
+ },
4144
+ "HeadingGroup": {
4145
+ "type": "object",
4146
+ "properties": {
4147
+ "node": {
4148
+ "$ref": "#/$defs/HeadingParagraph"
4149
+ },
4150
+ "style": {
4151
+ "type": "string"
4152
+ },
4153
+ "children": {
4154
+ "type": "array",
4155
+ "items": {
4156
+ "oneOf": [
4157
+ {
4158
+ "$ref": "#/$defs/HeadingGroup"
4159
+ },
4160
+ {
4161
+ "$ref": "#/$defs/ListGroup"
4162
+ },
4163
+ {
4164
+ "$ref": "#/$defs/SectionConstructGroup"
4165
+ },
4166
+ {
4167
+ "$ref": "#/$defs/ContentBlock"
4168
+ }
4169
+ ]
4170
+ }
4171
+ }
4172
+ },
4173
+ "required": [
4174
+ "node",
4175
+ "children"
4176
+ ],
4177
+ "additionalProperties": false
4178
+ },
4179
+ "ListGroup": {
4180
+ "type": "object",
4181
+ "properties": {
4182
+ "node": {
4183
+ "$ref": "#/$defs/ListParagraph"
4184
+ },
4185
+ "style": {
4186
+ "type": "string"
4187
+ },
4188
+ "children": {
4189
+ "type": "array",
4190
+ "items": {
4191
+ "oneOf": [
4192
+ {
4193
+ "$ref": "#/$defs/ListGroup"
4194
+ },
4195
+ {
4196
+ "$ref": "#/$defs/ShapeConstructGroup"
4197
+ },
4198
+ {
4199
+ "$ref": "#/$defs/ContentBlock"
4200
+ }
4201
+ ]
4202
+ }
4203
+ }
4204
+ },
4205
+ "required": [
4206
+ "node",
4207
+ "children"
4208
+ ],
4209
+ "additionalProperties": false
4210
+ },
4211
+ "SlideGroup": {
4212
+ "type": "object",
4213
+ "properties": {
4214
+ "node": {
4215
+ "$ref": "#/$defs/SlideDescriptor"
4216
+ },
4217
+ "style": {
4218
+ "type": "string"
4219
+ },
4220
+ "children": {
4221
+ "type": "array",
4222
+ "items": {
4223
+ "$ref": "#/$defs/ShapeGroup"
4224
+ }
4225
+ }
4226
+ },
4227
+ "required": [
4228
+ "node",
4229
+ "children"
4230
+ ],
4231
+ "additionalProperties": false
4232
+ },
4233
+ "ShapeGroup": {
4234
+ "type": "object",
4235
+ "properties": {
4236
+ "node": {
4237
+ "$ref": "#/$defs/ShapeDescriptor"
4238
+ },
4239
+ "style": {
4240
+ "type": "string"
4241
+ },
4242
+ "children": {
4243
+ "type": "array",
4244
+ "items": {
4245
+ "oneOf": [
4246
+ {
4247
+ "$ref": "#/$defs/ListGroup"
4248
+ },
4249
+ {
4250
+ "$ref": "#/$defs/ShapeConstructGroup"
4251
+ },
4252
+ {
4253
+ "$ref": "#/$defs/ContentBlock"
4254
+ }
4255
+ ]
4256
+ }
4257
+ }
4258
+ },
4259
+ "required": [
4260
+ "node",
4261
+ "children"
4262
+ ],
4263
+ "additionalProperties": false
4264
+ },
4265
+ "SheetGroup": {
4266
+ "type": "object",
4267
+ "properties": {
4268
+ "node": {
4269
+ "$ref": "#/$defs/SheetDescriptor"
4270
+ },
4271
+ "style": {
4272
+ "type": "string"
4273
+ },
4274
+ "children": {
4275
+ "type": "array",
4276
+ "items": {
4277
+ "oneOf": [
4278
+ {
4279
+ "$ref": "#/$defs/ContentSheetImage"
4280
+ },
4281
+ {
4282
+ "$ref": "#/$defs/ContentEmbeddedObject"
4283
+ }
4284
+ ]
4285
+ }
4286
+ }
4287
+ },
4288
+ "required": [
4289
+ "node",
4290
+ "children"
4291
+ ],
4292
+ "additionalProperties": false
4293
+ },
4294
+ "DrawPageGroup": {
4295
+ "type": "object",
4296
+ "properties": {
4297
+ "node": {
4298
+ "$ref": "#/$defs/DrawPageDescriptor"
4299
+ },
4300
+ "style": {
4301
+ "type": "string"
4302
+ },
4303
+ "children": {
4304
+ "type": "array",
4305
+ "items": {
4306
+ "oneOf": [
4307
+ {
4308
+ "$ref": "#/$defs/ShapeGroup"
4309
+ },
4310
+ {
4311
+ "$ref": "#/$defs/ContentVector"
4312
+ }
4313
+ ]
4314
+ }
4315
+ }
4316
+ },
4317
+ "required": [
4318
+ "node",
4319
+ "children"
4320
+ ],
4321
+ "additionalProperties": false
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
+ },
4648
+ "StyleParagraphProperties": {
4649
+ "type": "object",
4650
+ "properties": {
4651
+ "alignment": {
4652
+ "$ref": "#/$defs/Alignment"
4653
+ },
4654
+ "list": {
4655
+ "$ref": "#/$defs/ContentListMembership"
4656
+ },
4657
+ "spacingBeforePt": {
4658
+ "type": "number"
4659
+ },
4660
+ "spacingAfterPt": {
4661
+ "type": "number"
4662
+ },
4663
+ "lineSpacing": {
4664
+ "type": "number",
4665
+ "exclusiveMinimum": 0
4666
+ },
4667
+ "indentLeftPt": {
4668
+ "type": "number"
4669
+ },
4670
+ "indentFirstLinePt": {
4671
+ "type": "number"
4672
+ }
4673
+ },
4674
+ "additionalProperties": false
4675
+ },
4676
+ "StyleRunProperties": {
4677
+ "type": "object",
4678
+ "properties": {
4679
+ "bold": {
4680
+ "type": "boolean"
4681
+ },
4682
+ "italic": {
4683
+ "type": "boolean"
4684
+ },
4685
+ "underline": {
4686
+ "type": "boolean"
4687
+ },
4688
+ "strike": {
4689
+ "type": "boolean"
4690
+ },
4691
+ "fontFamily": {
4692
+ "type": "string"
4693
+ },
4694
+ "sizePt": {
4695
+ "type": "number",
4696
+ "exclusiveMinimum": 0
4697
+ },
4698
+ "color": {
4699
+ "$ref": "#/$defs/Color"
4700
+ }
4701
+ },
4702
+ "additionalProperties": false
4703
+ },
4704
+ "StyleEntry": {
4705
+ "type": "object",
4706
+ "properties": {
4707
+ "paragraph": {
4708
+ "$ref": "#/$defs/StyleParagraphProperties"
4709
+ },
4710
+ "run": {
4711
+ "$ref": "#/$defs/StyleRunProperties"
4712
+ }
4713
+ },
4714
+ "additionalProperties": false
4715
+ },
4716
+ "DefinitionEntry": {
4717
+ "type": "object",
4718
+ "properties": {
4719
+ "kind": {
4720
+ "type": "string"
4721
+ }
4722
+ },
4723
+ "required": [
4724
+ "kind"
4725
+ ],
4726
+ "additionalProperties": {}
4727
+ },
2983
4728
  "MathMlAttribute": {
2984
4729
  "type": "object",
2985
4730
  "properties": {