@inkbar/core 0.2.0 → 0.3.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.
@@ -180,8 +180,8 @@ declare const TextMarkupSchema: z.ZodObject<{
180
180
  author: z.ZodOptional<z.ZodString>;
181
181
  contents: z.ZodOptional<z.ZodString>;
182
182
  inReplyTo: z.ZodOptional<z.ZodString>;
183
- createdAt: z.ZodString;
184
- modifiedAt: z.ZodString;
183
+ createdAt: z.ZodISODateTime;
184
+ modifiedAt: z.ZodISODateTime;
185
185
  source: z.ZodEnum<{
186
186
  session: "session";
187
187
  pdf: "pdf";
@@ -227,18 +227,18 @@ declare const NoteSchema: z.ZodObject<{
227
227
  author: z.ZodOptional<z.ZodString>;
228
228
  contents: z.ZodOptional<z.ZodString>;
229
229
  inReplyTo: z.ZodOptional<z.ZodString>;
230
- createdAt: z.ZodString;
231
- modifiedAt: z.ZodString;
230
+ createdAt: z.ZodISODateTime;
231
+ modifiedAt: z.ZodISODateTime;
232
232
  source: z.ZodEnum<{
233
233
  session: "session";
234
234
  pdf: "pdf";
235
235
  }>;
236
236
  locked: z.ZodOptional<z.ZodBoolean>;
237
237
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
238
- type: z.ZodLiteral<"note">;
238
+ type: z.ZodLiteral<"text">;
239
239
  icon: z.ZodDefault<z.ZodEnum<{
240
- note: "note";
241
240
  comment: "comment";
241
+ note: "note";
242
242
  help: "help";
243
243
  insert: "insert";
244
244
  key: "key";
@@ -257,18 +257,17 @@ declare const FreeTextSchema: z.ZodObject<{
257
257
  color: z.ZodString;
258
258
  opacity: z.ZodNumber;
259
259
  author: z.ZodOptional<z.ZodString>;
260
- contents: z.ZodOptional<z.ZodString>;
261
260
  inReplyTo: z.ZodOptional<z.ZodString>;
262
- createdAt: z.ZodString;
263
- modifiedAt: z.ZodString;
261
+ createdAt: z.ZodISODateTime;
262
+ modifiedAt: z.ZodISODateTime;
264
263
  source: z.ZodEnum<{
265
264
  session: "session";
266
265
  pdf: "pdf";
267
266
  }>;
268
267
  locked: z.ZodOptional<z.ZodBoolean>;
269
268
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
270
- type: z.ZodLiteral<"freeText">;
271
- text: z.ZodString;
269
+ type: z.ZodLiteral<"freetext">;
270
+ contents: z.ZodString;
272
271
  fontSize: z.ZodDefault<z.ZodNumber>;
273
272
  fontFamily: z.ZodDefault<z.ZodString>;
274
273
  align: z.ZodDefault<z.ZodEnum<{
@@ -295,8 +294,8 @@ declare const ShapeSchema: z.ZodObject<{
295
294
  author: z.ZodOptional<z.ZodString>;
296
295
  contents: z.ZodOptional<z.ZodString>;
297
296
  inReplyTo: z.ZodOptional<z.ZodString>;
298
- createdAt: z.ZodString;
299
- modifiedAt: z.ZodString;
297
+ createdAt: z.ZodISODateTime;
298
+ modifiedAt: z.ZodISODateTime;
300
299
  source: z.ZodEnum<{
301
300
  session: "session";
302
301
  pdf: "pdf";
@@ -307,8 +306,8 @@ declare const ShapeSchema: z.ZodObject<{
307
306
  square: "square";
308
307
  circle: "circle";
309
308
  }>;
310
- strokeWidth: z.ZodDefault<z.ZodNumber>;
311
- fill: z.ZodOptional<z.ZodString>;
309
+ width: z.ZodDefault<z.ZodNumber>;
310
+ interiorColor: z.ZodOptional<z.ZodString>;
312
311
  }, z.core.$strip>;
313
312
  declare const LineEndingSchema: z.ZodEnum<{
314
313
  square: "square";
@@ -334,8 +333,8 @@ declare const LineSchema: z.ZodObject<{
334
333
  author: z.ZodOptional<z.ZodString>;
335
334
  contents: z.ZodOptional<z.ZodString>;
336
335
  inReplyTo: z.ZodOptional<z.ZodString>;
337
- createdAt: z.ZodString;
338
- modifiedAt: z.ZodString;
336
+ createdAt: z.ZodISODateTime;
337
+ modifiedAt: z.ZodISODateTime;
339
338
  source: z.ZodEnum<{
340
339
  session: "session";
341
340
  pdf: "pdf";
@@ -351,8 +350,8 @@ declare const LineSchema: z.ZodObject<{
351
350
  x: z.ZodNumber;
352
351
  y: z.ZodNumber;
353
352
  }, z.core.$strip>;
354
- strokeWidth: z.ZodDefault<z.ZodNumber>;
355
- endings: z.ZodOptional<z.ZodTuple<[z.ZodEnum<{
353
+ width: z.ZodDefault<z.ZodNumber>;
354
+ head: z.ZodOptional<z.ZodEnum<{
356
355
  square: "square";
357
356
  circle: "circle";
358
357
  none: "none";
@@ -361,7 +360,8 @@ declare const LineSchema: z.ZodObject<{
361
360
  diamond: "diamond";
362
361
  butt: "butt";
363
362
  slash: "slash";
364
- }>, z.ZodEnum<{
363
+ }>>;
364
+ tail: z.ZodOptional<z.ZodEnum<{
365
365
  square: "square";
366
366
  circle: "circle";
367
367
  none: "none";
@@ -370,7 +370,7 @@ declare const LineSchema: z.ZodObject<{
370
370
  diamond: "diamond";
371
371
  butt: "butt";
372
372
  slash: "slash";
373
- }>], null>>;
373
+ }>>;
374
374
  }, z.core.$strip>;
375
375
  declare const PolySchema: z.ZodObject<{
376
376
  id: z.ZodString;
@@ -386,8 +386,8 @@ declare const PolySchema: z.ZodObject<{
386
386
  author: z.ZodOptional<z.ZodString>;
387
387
  contents: z.ZodOptional<z.ZodString>;
388
388
  inReplyTo: z.ZodOptional<z.ZodString>;
389
- createdAt: z.ZodString;
390
- modifiedAt: z.ZodString;
389
+ createdAt: z.ZodISODateTime;
390
+ modifiedAt: z.ZodISODateTime;
391
391
  source: z.ZodEnum<{
392
392
  session: "session";
393
393
  pdf: "pdf";
@@ -402,8 +402,8 @@ declare const PolySchema: z.ZodObject<{
402
402
  x: z.ZodNumber;
403
403
  y: z.ZodNumber;
404
404
  }, z.core.$strip>>;
405
- strokeWidth: z.ZodDefault<z.ZodNumber>;
406
- fill: z.ZodOptional<z.ZodString>;
405
+ width: z.ZodDefault<z.ZodNumber>;
406
+ interiorColor: z.ZodOptional<z.ZodString>;
407
407
  }, z.core.$strip>;
408
408
  declare const InkSchema: z.ZodObject<{
409
409
  id: z.ZodString;
@@ -419,8 +419,8 @@ declare const InkSchema: z.ZodObject<{
419
419
  author: z.ZodOptional<z.ZodString>;
420
420
  contents: z.ZodOptional<z.ZodString>;
421
421
  inReplyTo: z.ZodOptional<z.ZodString>;
422
- createdAt: z.ZodString;
423
- modifiedAt: z.ZodString;
422
+ createdAt: z.ZodISODateTime;
423
+ modifiedAt: z.ZodISODateTime;
424
424
  source: z.ZodEnum<{
425
425
  session: "session";
426
426
  pdf: "pdf";
@@ -428,11 +428,11 @@ declare const InkSchema: z.ZodObject<{
428
428
  locked: z.ZodOptional<z.ZodBoolean>;
429
429
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
430
430
  type: z.ZodLiteral<"ink">;
431
- paths: z.ZodArray<z.ZodArray<z.ZodObject<{
431
+ inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
432
432
  x: z.ZodNumber;
433
433
  y: z.ZodNumber;
434
434
  }, z.core.$strip>>>;
435
- strokeWidth: z.ZodDefault<z.ZodNumber>;
435
+ width: z.ZodDefault<z.ZodNumber>;
436
436
  }, z.core.$strip>;
437
437
  declare const SuggestionSchema: z.ZodObject<{
438
438
  jobId: z.ZodOptional<z.ZodString>;
@@ -459,8 +459,8 @@ declare const RedactSchema: z.ZodObject<{
459
459
  author: z.ZodOptional<z.ZodString>;
460
460
  contents: z.ZodOptional<z.ZodString>;
461
461
  inReplyTo: z.ZodOptional<z.ZodString>;
462
- createdAt: z.ZodString;
463
- modifiedAt: z.ZodString;
462
+ createdAt: z.ZodISODateTime;
463
+ modifiedAt: z.ZodISODateTime;
464
464
  source: z.ZodEnum<{
465
465
  session: "session";
466
466
  pdf: "pdf";
@@ -502,7 +502,7 @@ declare const RedactSchema: z.ZodObject<{
502
502
  }>>;
503
503
  }, z.core.$strip>>;
504
504
  overlayText: z.ZodOptional<z.ZodString>;
505
- fill: z.ZodString;
505
+ interiorColor: z.ZodString;
506
506
  }, z.core.$strip>;
507
507
  declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
508
508
  id: z.ZodString;
@@ -518,8 +518,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
518
518
  author: z.ZodOptional<z.ZodString>;
519
519
  contents: z.ZodOptional<z.ZodString>;
520
520
  inReplyTo: z.ZodOptional<z.ZodString>;
521
- createdAt: z.ZodString;
522
- modifiedAt: z.ZodString;
521
+ createdAt: z.ZodISODateTime;
522
+ modifiedAt: z.ZodISODateTime;
523
523
  source: z.ZodEnum<{
524
524
  session: "session";
525
525
  pdf: "pdf";
@@ -564,18 +564,18 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
564
564
  author: z.ZodOptional<z.ZodString>;
565
565
  contents: z.ZodOptional<z.ZodString>;
566
566
  inReplyTo: z.ZodOptional<z.ZodString>;
567
- createdAt: z.ZodString;
568
- modifiedAt: z.ZodString;
567
+ createdAt: z.ZodISODateTime;
568
+ modifiedAt: z.ZodISODateTime;
569
569
  source: z.ZodEnum<{
570
570
  session: "session";
571
571
  pdf: "pdf";
572
572
  }>;
573
573
  locked: z.ZodOptional<z.ZodBoolean>;
574
574
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
575
- type: z.ZodLiteral<"note">;
575
+ type: z.ZodLiteral<"text">;
576
576
  icon: z.ZodDefault<z.ZodEnum<{
577
- note: "note";
578
577
  comment: "comment";
578
+ note: "note";
579
579
  help: "help";
580
580
  insert: "insert";
581
581
  key: "key";
@@ -593,18 +593,17 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
593
593
  color: z.ZodString;
594
594
  opacity: z.ZodNumber;
595
595
  author: z.ZodOptional<z.ZodString>;
596
- contents: z.ZodOptional<z.ZodString>;
597
596
  inReplyTo: z.ZodOptional<z.ZodString>;
598
- createdAt: z.ZodString;
599
- modifiedAt: z.ZodString;
597
+ createdAt: z.ZodISODateTime;
598
+ modifiedAt: z.ZodISODateTime;
600
599
  source: z.ZodEnum<{
601
600
  session: "session";
602
601
  pdf: "pdf";
603
602
  }>;
604
603
  locked: z.ZodOptional<z.ZodBoolean>;
605
604
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
606
- type: z.ZodLiteral<"freeText">;
607
- text: z.ZodString;
605
+ type: z.ZodLiteral<"freetext">;
606
+ contents: z.ZodString;
608
607
  fontSize: z.ZodDefault<z.ZodNumber>;
609
608
  fontFamily: z.ZodDefault<z.ZodString>;
610
609
  align: z.ZodDefault<z.ZodEnum<{
@@ -630,8 +629,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
630
629
  author: z.ZodOptional<z.ZodString>;
631
630
  contents: z.ZodOptional<z.ZodString>;
632
631
  inReplyTo: z.ZodOptional<z.ZodString>;
633
- createdAt: z.ZodString;
634
- modifiedAt: z.ZodString;
632
+ createdAt: z.ZodISODateTime;
633
+ modifiedAt: z.ZodISODateTime;
635
634
  source: z.ZodEnum<{
636
635
  session: "session";
637
636
  pdf: "pdf";
@@ -642,8 +641,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
642
641
  square: "square";
643
642
  circle: "circle";
644
643
  }>;
645
- strokeWidth: z.ZodDefault<z.ZodNumber>;
646
- fill: z.ZodOptional<z.ZodString>;
644
+ width: z.ZodDefault<z.ZodNumber>;
645
+ interiorColor: z.ZodOptional<z.ZodString>;
647
646
  }, z.core.$strip>, z.ZodObject<{
648
647
  id: z.ZodString;
649
648
  page: z.ZodNumber;
@@ -658,8 +657,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
658
657
  author: z.ZodOptional<z.ZodString>;
659
658
  contents: z.ZodOptional<z.ZodString>;
660
659
  inReplyTo: z.ZodOptional<z.ZodString>;
661
- createdAt: z.ZodString;
662
- modifiedAt: z.ZodString;
660
+ createdAt: z.ZodISODateTime;
661
+ modifiedAt: z.ZodISODateTime;
663
662
  source: z.ZodEnum<{
664
663
  session: "session";
665
664
  pdf: "pdf";
@@ -675,8 +674,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
675
674
  x: z.ZodNumber;
676
675
  y: z.ZodNumber;
677
676
  }, z.core.$strip>;
678
- strokeWidth: z.ZodDefault<z.ZodNumber>;
679
- endings: z.ZodOptional<z.ZodTuple<[z.ZodEnum<{
677
+ width: z.ZodDefault<z.ZodNumber>;
678
+ head: z.ZodOptional<z.ZodEnum<{
680
679
  square: "square";
681
680
  circle: "circle";
682
681
  none: "none";
@@ -685,7 +684,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
685
684
  diamond: "diamond";
686
685
  butt: "butt";
687
686
  slash: "slash";
688
- }>, z.ZodEnum<{
687
+ }>>;
688
+ tail: z.ZodOptional<z.ZodEnum<{
689
689
  square: "square";
690
690
  circle: "circle";
691
691
  none: "none";
@@ -694,7 +694,7 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
694
694
  diamond: "diamond";
695
695
  butt: "butt";
696
696
  slash: "slash";
697
- }>], null>>;
697
+ }>>;
698
698
  }, z.core.$strip>, z.ZodObject<{
699
699
  id: z.ZodString;
700
700
  page: z.ZodNumber;
@@ -709,8 +709,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
709
709
  author: z.ZodOptional<z.ZodString>;
710
710
  contents: z.ZodOptional<z.ZodString>;
711
711
  inReplyTo: z.ZodOptional<z.ZodString>;
712
- createdAt: z.ZodString;
713
- modifiedAt: z.ZodString;
712
+ createdAt: z.ZodISODateTime;
713
+ modifiedAt: z.ZodISODateTime;
714
714
  source: z.ZodEnum<{
715
715
  session: "session";
716
716
  pdf: "pdf";
@@ -725,8 +725,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
725
725
  x: z.ZodNumber;
726
726
  y: z.ZodNumber;
727
727
  }, z.core.$strip>>;
728
- strokeWidth: z.ZodDefault<z.ZodNumber>;
729
- fill: z.ZodOptional<z.ZodString>;
728
+ width: z.ZodDefault<z.ZodNumber>;
729
+ interiorColor: z.ZodOptional<z.ZodString>;
730
730
  }, z.core.$strip>, z.ZodObject<{
731
731
  id: z.ZodString;
732
732
  page: z.ZodNumber;
@@ -741,8 +741,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
741
741
  author: z.ZodOptional<z.ZodString>;
742
742
  contents: z.ZodOptional<z.ZodString>;
743
743
  inReplyTo: z.ZodOptional<z.ZodString>;
744
- createdAt: z.ZodString;
745
- modifiedAt: z.ZodString;
744
+ createdAt: z.ZodISODateTime;
745
+ modifiedAt: z.ZodISODateTime;
746
746
  source: z.ZodEnum<{
747
747
  session: "session";
748
748
  pdf: "pdf";
@@ -750,11 +750,11 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
750
750
  locked: z.ZodOptional<z.ZodBoolean>;
751
751
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
752
752
  type: z.ZodLiteral<"ink">;
753
- paths: z.ZodArray<z.ZodArray<z.ZodObject<{
753
+ inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
754
754
  x: z.ZodNumber;
755
755
  y: z.ZodNumber;
756
756
  }, z.core.$strip>>>;
757
- strokeWidth: z.ZodDefault<z.ZodNumber>;
757
+ width: z.ZodDefault<z.ZodNumber>;
758
758
  }, z.core.$strip>, z.ZodObject<{
759
759
  id: z.ZodString;
760
760
  page: z.ZodNumber;
@@ -769,8 +769,8 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
769
769
  author: z.ZodOptional<z.ZodString>;
770
770
  contents: z.ZodOptional<z.ZodString>;
771
771
  inReplyTo: z.ZodOptional<z.ZodString>;
772
- createdAt: z.ZodString;
773
- modifiedAt: z.ZodString;
772
+ createdAt: z.ZodISODateTime;
773
+ modifiedAt: z.ZodISODateTime;
774
774
  source: z.ZodEnum<{
775
775
  session: "session";
776
776
  pdf: "pdf";
@@ -812,9 +812,281 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
812
812
  }>>;
813
813
  }, z.core.$strip>>;
814
814
  overlayText: z.ZodOptional<z.ZodString>;
815
- fill: z.ZodString;
815
+ interiorColor: z.ZodString;
816
+ }, z.core.$strip>], "type">;
817
+ /** One exported annotation: the stored annotation without its viewer state. */
818
+ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
819
+ type: z.ZodEnum<{
820
+ highlight: "highlight";
821
+ underline: "underline";
822
+ strikeout: "strikeout";
823
+ squiggly: "squiggly";
824
+ }>;
825
+ rect: z.ZodObject<{
826
+ x: z.ZodNumber;
827
+ y: z.ZodNumber;
828
+ width: z.ZodNumber;
829
+ height: z.ZodNumber;
830
+ }, z.core.$strip>;
831
+ color: z.ZodString;
832
+ id: z.ZodString;
833
+ page: z.ZodNumber;
834
+ opacity: z.ZodNumber;
835
+ author: z.ZodOptional<z.ZodString>;
836
+ contents: z.ZodOptional<z.ZodString>;
837
+ inReplyTo: z.ZodOptional<z.ZodString>;
838
+ createdAt: z.ZodISODateTime;
839
+ modifiedAt: z.ZodISODateTime;
840
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
841
+ quads: z.ZodArray<z.ZodObject<{
842
+ p1: z.ZodObject<{
843
+ x: z.ZodNumber;
844
+ y: z.ZodNumber;
845
+ }, z.core.$strip>;
846
+ p2: z.ZodObject<{
847
+ x: z.ZodNumber;
848
+ y: z.ZodNumber;
849
+ }, z.core.$strip>;
850
+ p3: z.ZodObject<{
851
+ x: z.ZodNumber;
852
+ y: z.ZodNumber;
853
+ }, z.core.$strip>;
854
+ p4: z.ZodObject<{
855
+ x: z.ZodNumber;
856
+ y: z.ZodNumber;
857
+ }, z.core.$strip>;
858
+ }, z.core.$strip>>;
859
+ }, z.core.$strip>, z.ZodObject<{
860
+ type: z.ZodLiteral<"text">;
861
+ rect: z.ZodObject<{
862
+ x: z.ZodNumber;
863
+ y: z.ZodNumber;
864
+ width: z.ZodNumber;
865
+ height: z.ZodNumber;
866
+ }, z.core.$strip>;
867
+ color: z.ZodString;
868
+ id: z.ZodString;
869
+ page: z.ZodNumber;
870
+ opacity: z.ZodNumber;
871
+ author: z.ZodOptional<z.ZodString>;
872
+ contents: z.ZodOptional<z.ZodString>;
873
+ inReplyTo: z.ZodOptional<z.ZodString>;
874
+ createdAt: z.ZodISODateTime;
875
+ modifiedAt: z.ZodISODateTime;
876
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
877
+ icon: z.ZodDefault<z.ZodEnum<{
878
+ comment: "comment";
879
+ note: "note";
880
+ help: "help";
881
+ insert: "insert";
882
+ key: "key";
883
+ paragraph: "paragraph";
884
+ }>>;
885
+ }, z.core.$strip>, z.ZodObject<{
886
+ type: z.ZodLiteral<"freetext">;
887
+ rect: z.ZodObject<{
888
+ x: z.ZodNumber;
889
+ y: z.ZodNumber;
890
+ width: z.ZodNumber;
891
+ height: z.ZodNumber;
892
+ }, z.core.$strip>;
893
+ color: z.ZodString;
894
+ id: z.ZodString;
895
+ page: z.ZodNumber;
896
+ opacity: z.ZodNumber;
897
+ author: z.ZodOptional<z.ZodString>;
898
+ contents: z.ZodString;
899
+ inReplyTo: z.ZodOptional<z.ZodString>;
900
+ createdAt: z.ZodISODateTime;
901
+ modifiedAt: z.ZodISODateTime;
902
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
903
+ fontSize: z.ZodDefault<z.ZodNumber>;
904
+ fontFamily: z.ZodDefault<z.ZodString>;
905
+ align: z.ZodDefault<z.ZodEnum<{
906
+ left: "left";
907
+ center: "center";
908
+ right: "right";
909
+ }>>;
910
+ callout: z.ZodOptional<z.ZodArray<z.ZodObject<{
911
+ x: z.ZodNumber;
912
+ y: z.ZodNumber;
913
+ }, z.core.$strip>>>;
914
+ }, z.core.$strip>, z.ZodObject<{
915
+ type: z.ZodEnum<{
916
+ square: "square";
917
+ circle: "circle";
918
+ }>;
919
+ width: z.ZodDefault<z.ZodNumber>;
920
+ rect: z.ZodObject<{
921
+ x: z.ZodNumber;
922
+ y: z.ZodNumber;
923
+ width: z.ZodNumber;
924
+ height: z.ZodNumber;
925
+ }, z.core.$strip>;
926
+ color: z.ZodString;
927
+ id: z.ZodString;
928
+ page: z.ZodNumber;
929
+ opacity: z.ZodNumber;
930
+ author: z.ZodOptional<z.ZodString>;
931
+ contents: z.ZodOptional<z.ZodString>;
932
+ inReplyTo: z.ZodOptional<z.ZodString>;
933
+ createdAt: z.ZodISODateTime;
934
+ modifiedAt: z.ZodISODateTime;
935
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
936
+ interiorColor: z.ZodOptional<z.ZodString>;
937
+ }, z.core.$strip>, z.ZodObject<{
938
+ type: z.ZodLiteral<"line">;
939
+ width: z.ZodDefault<z.ZodNumber>;
940
+ rect: z.ZodObject<{
941
+ x: z.ZodNumber;
942
+ y: z.ZodNumber;
943
+ width: z.ZodNumber;
944
+ height: z.ZodNumber;
945
+ }, z.core.$strip>;
946
+ color: z.ZodString;
947
+ id: z.ZodString;
948
+ page: z.ZodNumber;
949
+ opacity: z.ZodNumber;
950
+ author: z.ZodOptional<z.ZodString>;
951
+ contents: z.ZodOptional<z.ZodString>;
952
+ inReplyTo: z.ZodOptional<z.ZodString>;
953
+ createdAt: z.ZodISODateTime;
954
+ modifiedAt: z.ZodISODateTime;
955
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
956
+ start: z.ZodObject<{
957
+ x: z.ZodNumber;
958
+ y: z.ZodNumber;
959
+ }, z.core.$strip>;
960
+ end: z.ZodObject<{
961
+ x: z.ZodNumber;
962
+ y: z.ZodNumber;
963
+ }, z.core.$strip>;
964
+ head: z.ZodOptional<z.ZodEnum<{
965
+ square: "square";
966
+ circle: "circle";
967
+ none: "none";
968
+ openArrow: "openArrow";
969
+ closedArrow: "closedArrow";
970
+ diamond: "diamond";
971
+ butt: "butt";
972
+ slash: "slash";
973
+ }>>;
974
+ tail: z.ZodOptional<z.ZodEnum<{
975
+ square: "square";
976
+ circle: "circle";
977
+ none: "none";
978
+ openArrow: "openArrow";
979
+ closedArrow: "closedArrow";
980
+ diamond: "diamond";
981
+ butt: "butt";
982
+ slash: "slash";
983
+ }>>;
984
+ }, z.core.$strip>, z.ZodObject<{
985
+ type: z.ZodEnum<{
986
+ polyline: "polyline";
987
+ polygon: "polygon";
988
+ }>;
989
+ width: z.ZodDefault<z.ZodNumber>;
990
+ rect: z.ZodObject<{
991
+ x: z.ZodNumber;
992
+ y: z.ZodNumber;
993
+ width: z.ZodNumber;
994
+ height: z.ZodNumber;
995
+ }, z.core.$strip>;
996
+ color: z.ZodString;
997
+ id: z.ZodString;
998
+ page: z.ZodNumber;
999
+ opacity: z.ZodNumber;
1000
+ author: z.ZodOptional<z.ZodString>;
1001
+ contents: z.ZodOptional<z.ZodString>;
1002
+ inReplyTo: z.ZodOptional<z.ZodString>;
1003
+ createdAt: z.ZodISODateTime;
1004
+ modifiedAt: z.ZodISODateTime;
1005
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1006
+ interiorColor: z.ZodOptional<z.ZodString>;
1007
+ vertices: z.ZodArray<z.ZodObject<{
1008
+ x: z.ZodNumber;
1009
+ y: z.ZodNumber;
1010
+ }, z.core.$strip>>;
1011
+ }, z.core.$strip>, z.ZodObject<{
1012
+ type: z.ZodLiteral<"ink">;
1013
+ width: z.ZodDefault<z.ZodNumber>;
1014
+ rect: z.ZodObject<{
1015
+ x: z.ZodNumber;
1016
+ y: z.ZodNumber;
1017
+ width: z.ZodNumber;
1018
+ height: z.ZodNumber;
1019
+ }, z.core.$strip>;
1020
+ color: z.ZodString;
1021
+ id: z.ZodString;
1022
+ page: z.ZodNumber;
1023
+ opacity: z.ZodNumber;
1024
+ author: z.ZodOptional<z.ZodString>;
1025
+ contents: z.ZodOptional<z.ZodString>;
1026
+ inReplyTo: z.ZodOptional<z.ZodString>;
1027
+ createdAt: z.ZodISODateTime;
1028
+ modifiedAt: z.ZodISODateTime;
1029
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1030
+ inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
1031
+ x: z.ZodNumber;
1032
+ y: z.ZodNumber;
1033
+ }, z.core.$strip>>>;
1034
+ }, z.core.$strip>, z.ZodObject<{
1035
+ type: z.ZodLiteral<"redact">;
1036
+ rect: z.ZodObject<{
1037
+ x: z.ZodNumber;
1038
+ y: z.ZodNumber;
1039
+ width: z.ZodNumber;
1040
+ height: z.ZodNumber;
1041
+ }, z.core.$strip>;
1042
+ color: z.ZodString;
1043
+ id: z.ZodString;
1044
+ page: z.ZodNumber;
1045
+ opacity: z.ZodNumber;
1046
+ author: z.ZodOptional<z.ZodString>;
1047
+ contents: z.ZodOptional<z.ZodString>;
1048
+ inReplyTo: z.ZodOptional<z.ZodString>;
1049
+ createdAt: z.ZodISODateTime;
1050
+ modifiedAt: z.ZodISODateTime;
1051
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1052
+ quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1053
+ p1: z.ZodObject<{
1054
+ x: z.ZodNumber;
1055
+ y: z.ZodNumber;
1056
+ }, z.core.$strip>;
1057
+ p2: z.ZodObject<{
1058
+ x: z.ZodNumber;
1059
+ y: z.ZodNumber;
1060
+ }, z.core.$strip>;
1061
+ p3: z.ZodObject<{
1062
+ x: z.ZodNumber;
1063
+ y: z.ZodNumber;
1064
+ }, z.core.$strip>;
1065
+ p4: z.ZodObject<{
1066
+ x: z.ZodNumber;
1067
+ y: z.ZodNumber;
1068
+ }, z.core.$strip>;
1069
+ }, z.core.$strip>>>;
1070
+ interiorColor: z.ZodString;
1071
+ origin: z.ZodDefault<z.ZodEnum<{
1072
+ user: "user";
1073
+ suggested: "suggested";
1074
+ }>>;
1075
+ suggestion: z.ZodOptional<z.ZodObject<{
1076
+ jobId: z.ZodOptional<z.ZodString>;
1077
+ confidence: z.ZodNumber;
1078
+ reason: z.ZodOptional<z.ZodString>;
1079
+ explanation: z.ZodOptional<z.ZodString>;
1080
+ recommendation: z.ZodOptional<z.ZodEnum<{
1081
+ redact: "redact";
1082
+ review: "review";
1083
+ keep: "keep";
1084
+ }>>;
1085
+ }, z.core.$strip>>;
1086
+ overlayText: z.ZodOptional<z.ZodString>;
816
1087
  }, z.core.$strip>], "type">;
817
1088
  type Annotation = z.infer<typeof AnnotationSchema>;
1089
+ type ExportedAnnotation = z.infer<typeof ExportedAnnotationSchema>;
818
1090
  type AnnotationType = Annotation['type'];
819
1091
  type AnnotationOfType<T extends AnnotationType> = Extract<Annotation, {
820
1092
  type: T;
@@ -837,8 +1109,8 @@ type InputOf<I> = I extends unknown ? Omit<I, Generated | Defaulted> & Partial<P
837
1109
  id?: string;
838
1110
  } : never;
839
1111
  type RedactInput = z.input<typeof RedactSchema>;
840
- type RedactBase = Omit<InputOf<RedactInput>, 'fill' | 'rect' | 'quads'> & {
841
- fill?: string;
1112
+ type RedactBase = Omit<InputOf<RedactInput>, 'interiorColor' | 'rect' | 'quads'> & {
1113
+ interiorColor?: string;
842
1114
  };
843
1115
  type RedactCallerInput = (RedactBase & {
844
1116
  rect: RedactInput['rect'];
@@ -850,7 +1122,7 @@ type RedactCallerInput = (RedactBase & {
850
1122
  /**
851
1123
  * What callers pass to `add`. Built from zod input types, so fields with defaults or
852
1124
  * optional fields may be omitted. A redaction needs `rect` or `quads` (the store
853
- * derives the other), and `fill` defaults to the store's redaction colour.
1125
+ * derives the other), and `interiorColor` defaults to the store's redaction colour.
854
1126
  */
855
1127
  type AnnotationInput = InputOf<z.input<typeof TextMarkupSchema> | z.input<typeof NoteSchema> | z.input<typeof FreeTextSchema> | z.input<typeof ShapeSchema> | z.input<typeof LineSchema> | z.input<typeof PolySchema> | z.input<typeof InkSchema>> | RedactCallerInput;
856
1128
  declare const AnnotationDocumentSchema: z.ZodObject<{
@@ -873,7 +1145,7 @@ interface AnnotationDocument {
873
1145
  format: typeof ANNOTATION_FORMAT;
874
1146
  version: typeof ANNOTATION_VERSION;
875
1147
  documentKey?: string;
876
- annotations: Array<Annotation | ForeignAnnotation>;
1148
+ annotations: Array<ExportedAnnotation | ForeignAnnotation>;
877
1149
  }
878
1150
  type ConfidenceBucket = 'low' | 'medium' | 'high';
879
1151
  declare function confidenceBucket(confidence: number): ConfidenceBucket;
@@ -1046,7 +1318,7 @@ interface ImportOptions {
1046
1318
  }
1047
1319
  /**
1048
1320
  * Session annotations plus any preserved foreign items. Embedded (`source: 'pdf'`) ones stay in
1049
- * the file.
1321
+ * the file. `source` and `locked` are viewer state and are left out.
1050
1322
  *
1051
1323
  * The result is a JSON copy (`JSON.parse(JSON.stringify(...))`), the same data a serialised
1052
1324
  * export would carry: editing it never touches the store, and values JSON cannot hold, such as
@@ -1179,5 +1451,5 @@ interface InkDocument {
1179
1451
  */
1180
1452
  declare function openDocument(source: DocumentSource, options: OpenOptions): Promise<InkDocument>;
1181
1453
  //#endregion
1182
- export { NoteAnnotation as $, summarise as A, multiplyMatrix as At, AnnotationInput as B, unionRects as Bt, createAnnotationStore as C, Matrix as Ct, importEmbeddedPage as D, applyMatrix as Dt, SUPPORTED_SUBTYPES as E, Rect as Et, ANNOTATION_FORMAT as F, rectFromPoints as Ft, ForeignAnnotation as G, AnnotationSchema as H, ANNOTATION_VERSION as I, rectFromQuad as It, InkAnnotation as J, FreeTextAnnotation as K, Annotation as L, rectsIntersect as Lt, cssVariableDefaults as M, quadFromRect as Mt, normalizeColor as N, quadsFromFlat as Nt, importedId as O, approxEqual as Ot, staticDefaults as P, rectContainsPoint as Pt, LineSchema as Q, AnnotationDocument as R, translateQuad as Rt, StoreOptions as S, PdfAssets as St, EmbeddedSummary as T, Quad as Tt, AnnotationType as U, AnnotationOfType as V, ConfidenceBucket as W, LineAnnotation as X, InkSchema as Y, LineEndingSchema as Z, History as _, derived as _t, OpenOptions as a, RectSchema as at, AnnotationStore as b, PageInfo as bt, TextItem as c, ShapeAnnotation as ct, InkErrorCode as d, SuggestionSchema as dt, NoteSchema as et, isInkError as f, TextMarkupAnnotation as ft, importAnnotations as g, Writable as gt, exportAnnotations as h, Readable as ht, InkStatus as i, QuadSchema as it, AnnotationDefaults as j, pointsFromFlat as jt, pdfColorToHex as k, invertMatrix as kt, DocumentSource as l, ShapeSchema as lt, ImportResult as m, confidenceBucket as mt, DocumentStatus as n, PolyAnnotation as nt, openDocument as o, RedactAnnotation as ot, ImportOptions as p, TextMarkupSchema as pt, FreeTextSchema as q, InkDocument as r, PolySchema as rt, TextContent as s, RedactSchema as st, DocumentInfo as t, PointSchema as tt, InkError as u, Suggestion as ut, createHistory as v, readonly as vt, deriveRect as w, Point as wt, StoreMode as x, PageRotation as xt, AnnotationChange as y, writable as yt, AnnotationDocumentSchema as z, translateRect as zt };
1183
- //# sourceMappingURL=document-Cywnv8Sz.d.mts.map
1454
+ export { LineEndingSchema as $, summarise as A, approxEqual as At, AnnotationInput as B, translateQuad as Bt, createAnnotationStore as C, PageRotation as Ct, importEmbeddedPage as D, Quad as Dt, SUPPORTED_SUBTYPES as E, Point as Et, ANNOTATION_FORMAT as F, quadsFromFlat as Ft, ExportedAnnotation as G, AnnotationSchema as H, unionRects as Ht, ANNOTATION_VERSION as I, rectContainsPoint as It, FreeTextAnnotation as J, ExportedAnnotationSchema as K, Annotation as L, rectFromPoints as Lt, cssVariableDefaults as M, multiplyMatrix as Mt, normalizeColor as N, pointsFromFlat as Nt, importedId as O, Rect as Ot, staticDefaults as P, quadFromRect as Pt, LineAnnotation as Q, AnnotationDocument as R, rectFromQuad as Rt, StoreOptions as S, PageInfo as St, EmbeddedSummary as T, Matrix as Tt, AnnotationType as U, AnnotationOfType as V, translateRect as Vt, ConfidenceBucket as W, InkAnnotation as X, FreeTextSchema as Y, InkSchema as Z, History as _, Readable as _t, OpenOptions as a, PolySchema as at, AnnotationStore as b, readonly as bt, TextItem as c, RedactAnnotation as ct, InkErrorCode as d, ShapeSchema as dt, LineSchema as et, isInkError as f, Suggestion as ft, importAnnotations as g, confidenceBucket as gt, exportAnnotations as h, TextMarkupSchema as ht, InkStatus as i, PolyAnnotation as it, AnnotationDefaults as j, invertMatrix as jt, pdfColorToHex as k, applyMatrix as kt, DocumentSource as l, RedactSchema as lt, ImportResult as m, TextMarkupAnnotation as mt, DocumentStatus as n, NoteSchema as nt, openDocument as o, QuadSchema as ot, ImportOptions as p, SuggestionSchema as pt, ForeignAnnotation as q, InkDocument as r, PointSchema as rt, TextContent as s, RectSchema as st, DocumentInfo as t, NoteAnnotation as tt, InkError as u, ShapeAnnotation as ut, createHistory as v, Writable as vt, deriveRect as w, PdfAssets as wt, StoreMode as x, writable as xt, AnnotationChange as y, derived as yt, AnnotationDocumentSchema as z, rectsIntersect as zt };
1455
+ //# sourceMappingURL=document-BftlPZKU.d.mts.map