@inkbar/core 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/schema.json CHANGED
@@ -38,6 +38,26 @@
38
38
  "format": "date-time",
39
39
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
40
40
  },
41
+ "subject": { "type": "string" },
42
+ "intent": {
43
+ "anyOf": [
44
+ {
45
+ "type": "string",
46
+ "enum": [
47
+ "FreeText",
48
+ "FreeTextCallout",
49
+ "FreeTextTypeWriter",
50
+ "LineArrow",
51
+ "LineDimension",
52
+ "PolygonCloud",
53
+ "PolygonDimension",
54
+ "PolyLineDimension"
55
+ ]
56
+ },
57
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
58
+ ],
59
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
60
+ },
41
61
  "custom": {
42
62
  "type": "object",
43
63
  "propertyNames": { "type": "string" },
@@ -139,6 +159,26 @@
139
159
  "format": "date-time",
140
160
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
141
161
  },
162
+ "subject": { "type": "string" },
163
+ "intent": {
164
+ "anyOf": [
165
+ {
166
+ "type": "string",
167
+ "enum": [
168
+ "FreeText",
169
+ "FreeTextCallout",
170
+ "FreeTextTypeWriter",
171
+ "LineArrow",
172
+ "LineDimension",
173
+ "PolygonCloud",
174
+ "PolygonDimension",
175
+ "PolyLineDimension"
176
+ ]
177
+ },
178
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
179
+ ],
180
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
181
+ },
142
182
  "custom": {
143
183
  "type": "object",
144
184
  "propertyNames": { "type": "string" },
@@ -146,9 +186,23 @@
146
186
  },
147
187
  "type": { "type": "string", "const": "text" },
148
188
  "icon": {
149
- "default": "comment",
150
- "type": "string",
151
- "enum": ["comment", "note", "help", "insert", "key", "paragraph"]
189
+ "default": "Note",
190
+ "anyOf": [
191
+ {
192
+ "type": "string",
193
+ "enum": [
194
+ "Comment",
195
+ "Note",
196
+ "Help",
197
+ "Insert",
198
+ "Key",
199
+ "NewParagraph",
200
+ "Paragraph"
201
+ ]
202
+ },
203
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
204
+ ],
205
+ "description": "One of Comment, Note, Help, Insert, Key, NewParagraph, Paragraph. Any other PDF name is allowed and kept unchanged."
152
206
  }
153
207
  },
154
208
  "required": [
@@ -159,8 +213,7 @@
159
213
  "opacity",
160
214
  "createdAt",
161
215
  "modifiedAt",
162
- "type",
163
- "icon"
216
+ "type"
164
217
  ],
165
218
  "additionalProperties": false
166
219
  },
@@ -195,18 +248,73 @@
195
248
  "format": "date-time",
196
249
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
197
250
  },
251
+ "subject": { "type": "string" },
252
+ "intent": {
253
+ "anyOf": [
254
+ {
255
+ "type": "string",
256
+ "enum": [
257
+ "FreeText",
258
+ "FreeTextCallout",
259
+ "FreeTextTypeWriter",
260
+ "LineArrow",
261
+ "LineDimension",
262
+ "PolygonCloud",
263
+ "PolygonDimension",
264
+ "PolyLineDimension"
265
+ ]
266
+ },
267
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
268
+ ],
269
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
270
+ },
198
271
  "custom": {
199
272
  "type": "object",
200
273
  "propertyNames": { "type": "string" },
201
274
  "additionalProperties": {}
202
275
  },
203
276
  "type": { "type": "string", "const": "freetext" },
204
- "fontSize": { "default": 12, "type": "number", "exclusiveMinimum": 0 },
205
- "fontFamily": { "default": "Helvetica", "type": "string" },
206
- "align": {
207
- "default": "left",
208
- "type": "string",
209
- "enum": ["left", "center", "right"]
277
+ "borderColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
278
+ "width": { "default": 0, "type": "number", "minimum": 0 },
279
+ "dashes": {
280
+ "minItems": 1,
281
+ "type": "array",
282
+ "items": { "type": "number", "minimum": 0 }
283
+ },
284
+ "cornerRadius": { "type": "number", "minimum": 0 },
285
+ "defaultStyle": {
286
+ "type": "object",
287
+ "properties": {
288
+ "fontFamily": {
289
+ "default": "Helvetica",
290
+ "type": "string",
291
+ "minLength": 1
292
+ },
293
+ "fontSize": { "default": 12, "type": "number", "exclusiveMinimum": 0 },
294
+ "color": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
295
+ "textAlign": {
296
+ "default": "left",
297
+ "type": "string",
298
+ "enum": ["left", "center", "right", "justify"]
299
+ },
300
+ "fontWeight": { "type": "string", "const": "bold" },
301
+ "fontStyle": { "type": "string", "const": "italic" },
302
+ "textDecoration": { "type": "string", "const": "underline" },
303
+ "align": { "not": {} }
304
+ },
305
+ "required": ["color"],
306
+ "additionalProperties": false
307
+ },
308
+ "fringe": {
309
+ "type": "object",
310
+ "properties": {
311
+ "left": { "type": "number", "minimum": 0 },
312
+ "top": { "type": "number", "minimum": 0 },
313
+ "right": { "type": "number", "minimum": 0 },
314
+ "bottom": { "type": "number", "minimum": 0 }
315
+ },
316
+ "required": ["left", "top", "right", "bottom"],
317
+ "additionalProperties": false
210
318
  },
211
319
  "callout": {
212
320
  "minItems": 2,
@@ -218,21 +326,42 @@
218
326
  "required": ["x", "y"],
219
327
  "additionalProperties": false
220
328
  }
221
- }
329
+ },
330
+ "head": {
331
+ "anyOf": [
332
+ {
333
+ "type": "string",
334
+ "enum": [
335
+ "None",
336
+ "Square",
337
+ "Circle",
338
+ "Diamond",
339
+ "OpenArrow",
340
+ "ClosedArrow",
341
+ "Butt",
342
+ "ROpenArrow",
343
+ "RClosedArrow",
344
+ "Slash"
345
+ ]
346
+ },
347
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
348
+ ],
349
+ "description": "One of None, Square, Circle, Diamond, OpenArrow, ClosedArrow, Butt, ROpenArrow, RClosedArrow, Slash. Any other PDF name is allowed and kept unchanged."
350
+ },
351
+ "fontFamily": { "not": {} },
352
+ "fontSize": { "not": {} },
353
+ "align": { "not": {} }
222
354
  },
223
355
  "required": [
224
356
  "id",
225
357
  "page",
226
358
  "rect",
227
- "color",
228
359
  "opacity",
229
360
  "contents",
230
361
  "createdAt",
231
362
  "modifiedAt",
232
363
  "type",
233
- "fontSize",
234
- "fontFamily",
235
- "align"
364
+ "defaultStyle"
236
365
  ],
237
366
  "additionalProperties": false
238
367
  },
@@ -267,14 +396,40 @@
267
396
  "format": "date-time",
268
397
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
269
398
  },
399
+ "subject": { "type": "string" },
400
+ "intent": {
401
+ "anyOf": [
402
+ {
403
+ "type": "string",
404
+ "enum": [
405
+ "FreeText",
406
+ "FreeTextCallout",
407
+ "FreeTextTypeWriter",
408
+ "LineArrow",
409
+ "LineDimension",
410
+ "PolygonCloud",
411
+ "PolygonDimension",
412
+ "PolyLineDimension"
413
+ ]
414
+ },
415
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
416
+ ],
417
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
418
+ },
270
419
  "custom": {
271
420
  "type": "object",
272
421
  "propertyNames": { "type": "string" },
273
422
  "additionalProperties": {}
274
423
  },
275
- "type": { "type": "string", "enum": ["square", "circle"] },
424
+ "type": { "type": "string", "const": "square" },
276
425
  "width": { "default": 1, "type": "number", "minimum": 0 },
277
- "interiorColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" }
426
+ "dashes": {
427
+ "minItems": 1,
428
+ "type": "array",
429
+ "items": { "type": "number", "minimum": 0 }
430
+ },
431
+ "interiorColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
432
+ "cornerRadius": { "type": "number", "minimum": 0 }
278
433
  },
279
434
  "required": [
280
435
  "id",
@@ -284,8 +439,85 @@
284
439
  "opacity",
285
440
  "createdAt",
286
441
  "modifiedAt",
287
- "type",
288
- "width"
442
+ "type"
443
+ ],
444
+ "additionalProperties": false
445
+ },
446
+ {
447
+ "type": "object",
448
+ "properties": {
449
+ "id": { "type": "string", "minLength": 1 },
450
+ "page": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
451
+ "rect": {
452
+ "type": "object",
453
+ "properties": {
454
+ "x": { "type": "number" },
455
+ "y": { "type": "number" },
456
+ "width": { "type": "number", "minimum": 0 },
457
+ "height": { "type": "number", "minimum": 0 }
458
+ },
459
+ "required": ["x", "y", "width", "height"],
460
+ "additionalProperties": false
461
+ },
462
+ "color": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
463
+ "opacity": { "type": "number", "minimum": 0, "maximum": 1 },
464
+ "author": { "type": "string" },
465
+ "contents": { "type": "string" },
466
+ "inReplyTo": { "type": "string" },
467
+ "createdAt": {
468
+ "type": "string",
469
+ "format": "date-time",
470
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
471
+ },
472
+ "modifiedAt": {
473
+ "type": "string",
474
+ "format": "date-time",
475
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
476
+ },
477
+ "subject": { "type": "string" },
478
+ "intent": {
479
+ "anyOf": [
480
+ {
481
+ "type": "string",
482
+ "enum": [
483
+ "FreeText",
484
+ "FreeTextCallout",
485
+ "FreeTextTypeWriter",
486
+ "LineArrow",
487
+ "LineDimension",
488
+ "PolygonCloud",
489
+ "PolygonDimension",
490
+ "PolyLineDimension"
491
+ ]
492
+ },
493
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
494
+ ],
495
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
496
+ },
497
+ "custom": {
498
+ "type": "object",
499
+ "propertyNames": { "type": "string" },
500
+ "additionalProperties": {}
501
+ },
502
+ "type": { "type": "string", "const": "circle" },
503
+ "width": { "default": 1, "type": "number", "minimum": 0 },
504
+ "dashes": {
505
+ "minItems": 1,
506
+ "type": "array",
507
+ "items": { "type": "number", "minimum": 0 }
508
+ },
509
+ "interiorColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
510
+ "cornerRadius": { "not": {} }
511
+ },
512
+ "required": [
513
+ "id",
514
+ "page",
515
+ "rect",
516
+ "color",
517
+ "opacity",
518
+ "createdAt",
519
+ "modifiedAt",
520
+ "type"
289
521
  ],
290
522
  "additionalProperties": false
291
523
  },
@@ -320,6 +552,26 @@
320
552
  "format": "date-time",
321
553
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
322
554
  },
555
+ "subject": { "type": "string" },
556
+ "intent": {
557
+ "anyOf": [
558
+ {
559
+ "type": "string",
560
+ "enum": [
561
+ "FreeText",
562
+ "FreeTextCallout",
563
+ "FreeTextTypeWriter",
564
+ "LineArrow",
565
+ "LineDimension",
566
+ "PolygonCloud",
567
+ "PolygonDimension",
568
+ "PolyLineDimension"
569
+ ]
570
+ },
571
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
572
+ ],
573
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
574
+ },
323
575
  "custom": {
324
576
  "type": "object",
325
577
  "propertyNames": { "type": "string" },
@@ -339,31 +591,52 @@
339
591
  "additionalProperties": false
340
592
  },
341
593
  "width": { "default": 1, "type": "number", "minimum": 0 },
594
+ "dashes": {
595
+ "minItems": 1,
596
+ "type": "array",
597
+ "items": { "type": "number", "minimum": 0 }
598
+ },
342
599
  "head": {
343
- "type": "string",
344
- "enum": [
345
- "none",
346
- "openArrow",
347
- "closedArrow",
348
- "square",
349
- "circle",
350
- "diamond",
351
- "butt",
352
- "slash"
353
- ]
600
+ "anyOf": [
601
+ {
602
+ "type": "string",
603
+ "enum": [
604
+ "None",
605
+ "Square",
606
+ "Circle",
607
+ "Diamond",
608
+ "OpenArrow",
609
+ "ClosedArrow",
610
+ "Butt",
611
+ "ROpenArrow",
612
+ "RClosedArrow",
613
+ "Slash"
614
+ ]
615
+ },
616
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
617
+ ],
618
+ "description": "One of None, Square, Circle, Diamond, OpenArrow, ClosedArrow, Butt, ROpenArrow, RClosedArrow, Slash. Any other PDF name is allowed and kept unchanged."
354
619
  },
355
620
  "tail": {
356
- "type": "string",
357
- "enum": [
358
- "none",
359
- "openArrow",
360
- "closedArrow",
361
- "square",
362
- "circle",
363
- "diamond",
364
- "butt",
365
- "slash"
366
- ]
621
+ "anyOf": [
622
+ {
623
+ "type": "string",
624
+ "enum": [
625
+ "None",
626
+ "Square",
627
+ "Circle",
628
+ "Diamond",
629
+ "OpenArrow",
630
+ "ClosedArrow",
631
+ "Butt",
632
+ "ROpenArrow",
633
+ "RClosedArrow",
634
+ "Slash"
635
+ ]
636
+ },
637
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
638
+ ],
639
+ "description": "One of None, Square, Circle, Diamond, OpenArrow, ClosedArrow, Butt, ROpenArrow, RClosedArrow, Slash. Any other PDF name is allowed and kept unchanged."
367
640
  }
368
641
  },
369
642
  "required": [
@@ -376,8 +649,7 @@
376
649
  "modifiedAt",
377
650
  "type",
378
651
  "start",
379
- "end",
380
- "width"
652
+ "end"
381
653
  ],
382
654
  "additionalProperties": false
383
655
  },
@@ -412,12 +684,32 @@
412
684
  "format": "date-time",
413
685
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
414
686
  },
687
+ "subject": { "type": "string" },
688
+ "intent": {
689
+ "anyOf": [
690
+ {
691
+ "type": "string",
692
+ "enum": [
693
+ "FreeText",
694
+ "FreeTextCallout",
695
+ "FreeTextTypeWriter",
696
+ "LineArrow",
697
+ "LineDimension",
698
+ "PolygonCloud",
699
+ "PolygonDimension",
700
+ "PolyLineDimension"
701
+ ]
702
+ },
703
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
704
+ ],
705
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
706
+ },
415
707
  "custom": {
416
708
  "type": "object",
417
709
  "propertyNames": { "type": "string" },
418
710
  "additionalProperties": {}
419
711
  },
420
- "type": { "type": "string", "enum": ["polyline", "polygon"] },
712
+ "type": { "type": "string", "const": "polyline" },
421
713
  "vertices": {
422
714
  "minItems": 2,
423
715
  "type": "array",
@@ -429,7 +721,144 @@
429
721
  }
430
722
  },
431
723
  "width": { "default": 1, "type": "number", "minimum": 0 },
432
- "interiorColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" }
724
+ "dashes": {
725
+ "minItems": 1,
726
+ "type": "array",
727
+ "items": { "type": "number", "minimum": 0 }
728
+ },
729
+ "interiorColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
730
+ "head": {
731
+ "anyOf": [
732
+ {
733
+ "type": "string",
734
+ "enum": [
735
+ "None",
736
+ "Square",
737
+ "Circle",
738
+ "Diamond",
739
+ "OpenArrow",
740
+ "ClosedArrow",
741
+ "Butt",
742
+ "ROpenArrow",
743
+ "RClosedArrow",
744
+ "Slash"
745
+ ]
746
+ },
747
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
748
+ ],
749
+ "description": "One of None, Square, Circle, Diamond, OpenArrow, ClosedArrow, Butt, ROpenArrow, RClosedArrow, Slash. Any other PDF name is allowed and kept unchanged."
750
+ },
751
+ "tail": {
752
+ "anyOf": [
753
+ {
754
+ "type": "string",
755
+ "enum": [
756
+ "None",
757
+ "Square",
758
+ "Circle",
759
+ "Diamond",
760
+ "OpenArrow",
761
+ "ClosedArrow",
762
+ "Butt",
763
+ "ROpenArrow",
764
+ "RClosedArrow",
765
+ "Slash"
766
+ ]
767
+ },
768
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
769
+ ],
770
+ "description": "One of None, Square, Circle, Diamond, OpenArrow, ClosedArrow, Butt, ROpenArrow, RClosedArrow, Slash. Any other PDF name is allowed and kept unchanged."
771
+ }
772
+ },
773
+ "required": [
774
+ "id",
775
+ "page",
776
+ "rect",
777
+ "color",
778
+ "opacity",
779
+ "createdAt",
780
+ "modifiedAt",
781
+ "type",
782
+ "vertices"
783
+ ],
784
+ "additionalProperties": false
785
+ },
786
+ {
787
+ "type": "object",
788
+ "properties": {
789
+ "id": { "type": "string", "minLength": 1 },
790
+ "page": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
791
+ "rect": {
792
+ "type": "object",
793
+ "properties": {
794
+ "x": { "type": "number" },
795
+ "y": { "type": "number" },
796
+ "width": { "type": "number", "minimum": 0 },
797
+ "height": { "type": "number", "minimum": 0 }
798
+ },
799
+ "required": ["x", "y", "width", "height"],
800
+ "additionalProperties": false
801
+ },
802
+ "color": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
803
+ "opacity": { "type": "number", "minimum": 0, "maximum": 1 },
804
+ "author": { "type": "string" },
805
+ "contents": { "type": "string" },
806
+ "inReplyTo": { "type": "string" },
807
+ "createdAt": {
808
+ "type": "string",
809
+ "format": "date-time",
810
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
811
+ },
812
+ "modifiedAt": {
813
+ "type": "string",
814
+ "format": "date-time",
815
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
816
+ },
817
+ "subject": { "type": "string" },
818
+ "intent": {
819
+ "anyOf": [
820
+ {
821
+ "type": "string",
822
+ "enum": [
823
+ "FreeText",
824
+ "FreeTextCallout",
825
+ "FreeTextTypeWriter",
826
+ "LineArrow",
827
+ "LineDimension",
828
+ "PolygonCloud",
829
+ "PolygonDimension",
830
+ "PolyLineDimension"
831
+ ]
832
+ },
833
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
834
+ ],
835
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
836
+ },
837
+ "custom": {
838
+ "type": "object",
839
+ "propertyNames": { "type": "string" },
840
+ "additionalProperties": {}
841
+ },
842
+ "type": { "type": "string", "const": "polygon" },
843
+ "vertices": {
844
+ "minItems": 2,
845
+ "type": "array",
846
+ "items": {
847
+ "type": "object",
848
+ "properties": { "x": { "type": "number" }, "y": { "type": "number" } },
849
+ "required": ["x", "y"],
850
+ "additionalProperties": false
851
+ }
852
+ },
853
+ "width": { "default": 1, "type": "number", "minimum": 0 },
854
+ "dashes": {
855
+ "minItems": 1,
856
+ "type": "array",
857
+ "items": { "type": "number", "minimum": 0 }
858
+ },
859
+ "interiorColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
860
+ "head": { "not": {} },
861
+ "tail": { "not": {} }
433
862
  },
434
863
  "required": [
435
864
  "id",
@@ -440,8 +869,7 @@
440
869
  "createdAt",
441
870
  "modifiedAt",
442
871
  "type",
443
- "vertices",
444
- "width"
872
+ "vertices"
445
873
  ],
446
874
  "additionalProperties": false
447
875
  },
@@ -476,6 +904,26 @@
476
904
  "format": "date-time",
477
905
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
478
906
  },
907
+ "subject": { "type": "string" },
908
+ "intent": {
909
+ "anyOf": [
910
+ {
911
+ "type": "string",
912
+ "enum": [
913
+ "FreeText",
914
+ "FreeTextCallout",
915
+ "FreeTextTypeWriter",
916
+ "LineArrow",
917
+ "LineDimension",
918
+ "PolygonCloud",
919
+ "PolygonDimension",
920
+ "PolyLineDimension"
921
+ ]
922
+ },
923
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
924
+ ],
925
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
926
+ },
479
927
  "custom": {
480
928
  "type": "object",
481
929
  "propertyNames": { "type": "string" },
@@ -496,8 +944,248 @@
496
944
  }
497
945
  }
498
946
  },
947
+ "pressure": {
948
+ "type": "array",
949
+ "items": {
950
+ "type": "array",
951
+ "items": { "type": "number", "minimum": 0, "maximum": 1 }
952
+ }
953
+ },
954
+ "width": { "default": 2, "type": "number", "minimum": 0 },
955
+ "dashes": {
956
+ "minItems": 1,
957
+ "type": "array",
958
+ "items": { "type": "number", "minimum": 0 }
959
+ }
960
+ },
961
+ "required": [
962
+ "id",
963
+ "page",
964
+ "rect",
965
+ "color",
966
+ "opacity",
967
+ "createdAt",
968
+ "modifiedAt",
969
+ "type",
970
+ "inklist"
971
+ ],
972
+ "additionalProperties": false
973
+ },
974
+ {
975
+ "type": "object",
976
+ "properties": {
977
+ "id": { "type": "string", "minLength": 1 },
978
+ "page": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
979
+ "rect": {
980
+ "type": "object",
981
+ "properties": {
982
+ "x": { "type": "number" },
983
+ "y": { "type": "number" },
984
+ "width": { "type": "number", "minimum": 0 },
985
+ "height": { "type": "number", "minimum": 0 }
986
+ },
987
+ "required": ["x", "y", "width", "height"],
988
+ "additionalProperties": false
989
+ },
990
+ "color": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
991
+ "opacity": { "type": "number", "minimum": 0, "maximum": 1 },
992
+ "author": { "type": "string" },
993
+ "contents": { "type": "string" },
994
+ "inReplyTo": { "type": "string" },
995
+ "createdAt": {
996
+ "type": "string",
997
+ "format": "date-time",
998
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
999
+ },
1000
+ "modifiedAt": {
1001
+ "type": "string",
1002
+ "format": "date-time",
1003
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1004
+ },
1005
+ "subject": { "type": "string" },
1006
+ "intent": {
1007
+ "anyOf": [
1008
+ {
1009
+ "type": "string",
1010
+ "enum": [
1011
+ "FreeText",
1012
+ "FreeTextCallout",
1013
+ "FreeTextTypeWriter",
1014
+ "LineArrow",
1015
+ "LineDimension",
1016
+ "PolygonCloud",
1017
+ "PolygonDimension",
1018
+ "PolyLineDimension"
1019
+ ]
1020
+ },
1021
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
1022
+ ],
1023
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
1024
+ },
1025
+ "custom": {
1026
+ "type": "object",
1027
+ "propertyNames": { "type": "string" },
1028
+ "additionalProperties": {}
1029
+ },
1030
+ "type": { "type": "string", "const": "stamp" },
1031
+ "imagedata": {
1032
+ "type": "string",
1033
+ "pattern": "^data:image\\/(png|jpeg);base64,"
1034
+ },
1035
+ "rotation": {
1036
+ "anyOf": [
1037
+ { "type": "number", "const": 0 },
1038
+ { "type": "number", "const": 90 },
1039
+ { "type": "number", "const": 180 },
1040
+ { "type": "number", "const": 270 }
1041
+ ]
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "id",
1046
+ "page",
1047
+ "rect",
1048
+ "color",
1049
+ "opacity",
1050
+ "createdAt",
1051
+ "modifiedAt",
1052
+ "type",
1053
+ "imagedata"
1054
+ ],
1055
+ "additionalProperties": false
1056
+ },
1057
+ {
1058
+ "type": "object",
1059
+ "properties": {
1060
+ "id": { "type": "string", "minLength": 1 },
1061
+ "page": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
1062
+ "rect": {
1063
+ "type": "object",
1064
+ "properties": {
1065
+ "x": { "type": "number" },
1066
+ "y": { "type": "number" },
1067
+ "width": { "type": "number", "minimum": 0 },
1068
+ "height": { "type": "number", "minimum": 0 }
1069
+ },
1070
+ "required": ["x", "y", "width", "height"],
1071
+ "additionalProperties": false
1072
+ },
1073
+ "color": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
1074
+ "opacity": { "type": "number", "minimum": 0, "maximum": 1 },
1075
+ "author": { "type": "string" },
1076
+ "contents": { "type": "string" },
1077
+ "inReplyTo": { "type": "string" },
1078
+ "createdAt": {
1079
+ "type": "string",
1080
+ "format": "date-time",
1081
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1082
+ },
1083
+ "modifiedAt": {
1084
+ "type": "string",
1085
+ "format": "date-time",
1086
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1087
+ },
1088
+ "subject": { "type": "string" },
1089
+ "intent": {
1090
+ "anyOf": [
1091
+ {
1092
+ "type": "string",
1093
+ "enum": [
1094
+ "FreeText",
1095
+ "FreeTextCallout",
1096
+ "FreeTextTypeWriter",
1097
+ "LineArrow",
1098
+ "LineDimension",
1099
+ "PolygonCloud",
1100
+ "PolygonDimension",
1101
+ "PolyLineDimension"
1102
+ ]
1103
+ },
1104
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
1105
+ ],
1106
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
1107
+ },
1108
+ "custom": {
1109
+ "type": "object",
1110
+ "propertyNames": { "type": "string" },
1111
+ "additionalProperties": {}
1112
+ },
1113
+ "type": { "type": "string", "const": "loupe" },
1114
+ "magnification": { "default": 2, "type": "number", "exclusiveMinimum": 1 },
499
1115
  "width": { "default": 2, "type": "number", "minimum": 0 }
500
1116
  },
1117
+ "required": [
1118
+ "id",
1119
+ "page",
1120
+ "rect",
1121
+ "color",
1122
+ "opacity",
1123
+ "createdAt",
1124
+ "modifiedAt",
1125
+ "type"
1126
+ ],
1127
+ "additionalProperties": false
1128
+ },
1129
+ {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "id": { "type": "string", "minLength": 1 },
1133
+ "page": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
1134
+ "rect": {
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "x": { "type": "number" },
1138
+ "y": { "type": "number" },
1139
+ "width": { "type": "number", "minimum": 0 },
1140
+ "height": { "type": "number", "minimum": 0 }
1141
+ },
1142
+ "required": ["x", "y", "width", "height"],
1143
+ "additionalProperties": false
1144
+ },
1145
+ "color": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" },
1146
+ "opacity": { "type": "number", "minimum": 0, "maximum": 1 },
1147
+ "author": { "type": "string" },
1148
+ "contents": { "type": "string" },
1149
+ "inReplyTo": { "type": "string" },
1150
+ "createdAt": {
1151
+ "type": "string",
1152
+ "format": "date-time",
1153
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1154
+ },
1155
+ "modifiedAt": {
1156
+ "type": "string",
1157
+ "format": "date-time",
1158
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1159
+ },
1160
+ "subject": { "type": "string" },
1161
+ "intent": {
1162
+ "anyOf": [
1163
+ {
1164
+ "type": "string",
1165
+ "enum": [
1166
+ "FreeText",
1167
+ "FreeTextCallout",
1168
+ "FreeTextTypeWriter",
1169
+ "LineArrow",
1170
+ "LineDimension",
1171
+ "PolygonCloud",
1172
+ "PolygonDimension",
1173
+ "PolyLineDimension"
1174
+ ]
1175
+ },
1176
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
1177
+ ],
1178
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
1179
+ },
1180
+ "custom": {
1181
+ "type": "object",
1182
+ "propertyNames": { "type": "string" },
1183
+ "additionalProperties": {}
1184
+ },
1185
+ "type": { "type": "string", "const": "mask" },
1186
+ "shape": { "type": "string", "enum": ["rect", "ellipse"] },
1187
+ "dim": { "default": 0.5, "type": "number", "minimum": 0, "maximum": 1 }
1188
+ },
501
1189
  "required": [
502
1190
  "id",
503
1191
  "page",
@@ -507,8 +1195,7 @@
507
1195
  "createdAt",
508
1196
  "modifiedAt",
509
1197
  "type",
510
- "inklist",
511
- "width"
1198
+ "shape"
512
1199
  ],
513
1200
  "additionalProperties": false
514
1201
  },
@@ -543,6 +1230,26 @@
543
1230
  "format": "date-time",
544
1231
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
545
1232
  },
1233
+ "subject": { "type": "string" },
1234
+ "intent": {
1235
+ "anyOf": [
1236
+ {
1237
+ "type": "string",
1238
+ "enum": [
1239
+ "FreeText",
1240
+ "FreeTextCallout",
1241
+ "FreeTextTypeWriter",
1242
+ "LineArrow",
1243
+ "LineDimension",
1244
+ "PolygonCloud",
1245
+ "PolygonDimension",
1246
+ "PolyLineDimension"
1247
+ ]
1248
+ },
1249
+ { "type": "string", "pattern": "^[^\\s()<>[\\]{}/%]+$" }
1250
+ ],
1251
+ "description": "One of FreeText, FreeTextCallout, FreeTextTypeWriter, LineArrow, LineDimension, PolygonCloud, PolygonDimension, PolyLineDimension. Any other PDF name is allowed and kept unchanged."
1252
+ },
546
1253
  "custom": {
547
1254
  "type": "object",
548
1255
  "propertyNames": { "type": "string" },
@@ -628,7 +1335,6 @@
628
1335
  "createdAt",
629
1336
  "modifiedAt",
630
1337
  "type",
631
- "origin",
632
1338
  "interiorColor"
633
1339
  ],
634
1340
  "additionalProperties": false