@magiclabs.ai/magicbook-client 0.7.7-canary → 0.7.9-canary

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/index.d.cts CHANGED
@@ -523,8 +523,311 @@ declare const styles: {
523
523
  6156: {
524
524
  slug: string;
525
525
  };
526
+ be5f79d7525f4717844db77a2f1b5e50: {
527
+ slug: string;
528
+ };
529
+ '519bf5f2b6734103a9a359469be4961b': {
530
+ slug: string;
531
+ };
532
+ '029a2ebd65b448bf93753c813b7b7363': {
533
+ slug: string;
534
+ };
535
+ '16d0d436594b4171bd9688876a85c9c1': {
536
+ slug: string;
537
+ };
538
+ '5b95e1d678584558b2c3397ab996da7b': {
539
+ slug: string;
540
+ };
541
+ a2c088e32541429ba8e5e15d09991264: {
542
+ slug: string;
543
+ };
544
+ '0ddec2b965094c8ea03d669e771ff1a6': {
545
+ slug: string;
546
+ };
547
+ '339699fedd3743f69c5b05587fbfd41a': {
548
+ slug: string;
549
+ };
550
+ '091f9a6a83c349b2a9732177d89f8664': {
551
+ slug: string;
552
+ };
553
+ e768ec11406545809ca9598be3bda88c: {
554
+ slug: string;
555
+ };
556
+ '0c55a3eb5cc6414c9f2570886132d331': {
557
+ slug: string;
558
+ };
559
+ '9c49df50d76b4789834ca7abaabe2bc6': {
560
+ slug: string;
561
+ };
562
+ fd7cf7c4dc244705ad391334d76f7229: {
563
+ slug: string;
564
+ };
565
+ '363ceab4906b47a09dd287f53dc1d30f': {
566
+ slug: string;
567
+ };
568
+ e47017576d0e451180ff4591d2aee2fa: {
569
+ slug: string;
570
+ };
571
+ d9743da5f46843aab84b1f90ff776ee0: {
572
+ slug: string;
573
+ };
574
+ '13039c15c81b4e50af5e39cd99f4e274': {
575
+ slug: string;
576
+ };
577
+ '0c98757783874104a488a1a88747344d': {
578
+ slug: string;
579
+ };
580
+ '5b0d80d6ca164919b7ee558c0bc2537b': {
581
+ slug: string;
582
+ };
583
+ eb734aa7c87a4db1ac9695e935f13489: {
584
+ slug: string;
585
+ };
586
+ '7ed9132a96484ed2b200cf30e73cf049': {
587
+ slug: string;
588
+ };
589
+ '3e15106389764a3cb2b6a6c29c065993': {
590
+ slug: string;
591
+ };
592
+ '47f9e28d811842a5870c74bb4c6b3608': {
593
+ slug: string;
594
+ };
595
+ bef3d3bc49f3476aa6f39ad073294a04: {
596
+ slug: string;
597
+ };
598
+ '496138703d5346bd9678a2fa487b54fd': {
599
+ slug: string;
600
+ };
601
+ '303773eee9934e8ba9f676b339c84d39': {
602
+ slug: string;
603
+ };
604
+ '02c52e4cdccd40b0b99cf2215a6b8fe1': {
605
+ slug: string;
606
+ };
607
+ c59f05e866344332b2953199fd2972fa: {
608
+ slug: string;
609
+ };
610
+ '5a2d025aaa3746b2b047daa6206ba8ad': {
611
+ slug: string;
612
+ };
613
+ '1c8784e76020435d88ddab7bc8d72cae': {
614
+ slug: string;
615
+ };
616
+ '1735277701d6483e9934074f25053f3a': {
617
+ slug: string;
618
+ };
619
+ '9c35a7f890204c38adb4255571377114': {
620
+ slug: string;
621
+ };
622
+ '9c946c20f0dc45adb3f85735690f3395': {
623
+ slug: string;
624
+ };
625
+ c216373996d945c186cc6db5a53e10b1: {
626
+ slug: string;
627
+ };
628
+ '6f7cd5c4e4e247f2bdf7c44ace0fdad5': {
629
+ slug: string;
630
+ };
631
+ '7eae47a7cbd743d4a47ca94f7a6b87a7': {
632
+ slug: string;
633
+ };
634
+ ac7a649cbd27433c9d0b405f34ff29f5: {
635
+ slug: string;
636
+ };
637
+ '3aa989376bc5414eb2a35f2cb930f57c': {
638
+ slug: string;
639
+ };
640
+ d86767aacb4f464892702ed3ffac1a98: {
641
+ slug: string;
642
+ };
643
+ c5d1654a989d4f2f87594e486239e77b: {
644
+ slug: string;
645
+ };
646
+ '73e54769af5f4943a8403c6a5e38f5fb': {
647
+ slug: string;
648
+ };
649
+ '7d15aef8b54d41ee82a99d327d571020': {
650
+ slug: string;
651
+ };
652
+ '46594aace0ca42b1bdd086d1b8ac0ad4': {
653
+ slug: string;
654
+ };
655
+ '77c78fbe2b4b4c7fb37e34a9515912d2': {
656
+ slug: string;
657
+ };
658
+ '659893fcc6c24fef9ea1a3a8ccf2539e': {
659
+ slug: string;
660
+ };
661
+ '0f1182fcc18c428fb7c3d80c5a637c3b': {
662
+ slug: string;
663
+ };
664
+ '54b7a8ca59774060835fdd48653dba9a': {
665
+ slug: string;
666
+ };
667
+ '2d56caccc29a40b5bd16334937de0083': {
668
+ slug: string;
669
+ };
670
+ '3c12993b18ff473fa6fc7f695bd64180': {
671
+ slug: string;
672
+ };
673
+ c4393a1da2e54ca4ab9a3ec0aeb682e4: {
674
+ slug: string;
675
+ };
676
+ ee9fd665523c41078a65c5389896d0ab: {
677
+ slug: string;
678
+ };
679
+ b84d0171dbb748e1ab2fb535fd318830: {
680
+ slug: string;
681
+ };
682
+ '4d61b18d992c4d8eb33a331e4201ae05': {
683
+ slug: string;
684
+ };
685
+ bdbe9158b33343c6ae11217fde9c8a57: {
686
+ slug: string;
687
+ };
688
+ '790a78454af94287b2a84c2324d6956e': {
689
+ slug: string;
690
+ };
691
+ '4211083b4bad4fee87e04dd65e5fed5d': {
692
+ slug: string;
693
+ };
694
+ '47bb41bb9e174657aa0c48ec140ed2c8': {
695
+ slug: string;
696
+ };
697
+ bac69bcc341c445d9c5c81f04231c685: {
698
+ slug: string;
699
+ };
700
+ '2d561db2b849457f8f830c2e977ced6c': {
701
+ slug: string;
702
+ };
703
+ e2727f32f9e248a3a7fd02f50cf493ab: {
704
+ slug: string;
705
+ };
706
+ '85005f9b9c1c4a4485508c52465b7110': {
707
+ slug: string;
708
+ };
709
+ df1eded2d6e24c81a9e9bd66567b39f0: {
710
+ slug: string;
711
+ };
712
+ bfdc9b325b1a4471a948eccb7c76fd2e: {
713
+ slug: string;
714
+ };
715
+ '7cb42c74e4704c08a51f0930703fff34': {
716
+ slug: string;
717
+ };
718
+ c88a62c1e3584591b278fe0ccfe3b02b: {
719
+ slug: string;
720
+ };
721
+ '2a682e5b38d64f77b7c1b6c0a8a06670': {
722
+ slug: string;
723
+ };
724
+ '5eddabc29f704c66ba03deff870f2c18': {
725
+ slug: string;
726
+ };
727
+ '18f048f0a07f40c09495fdc3830f7228': {
728
+ slug: string;
729
+ };
730
+ f2fd5fd83bbb4e9ebf3af33ba4589561: {
731
+ slug: string;
732
+ };
733
+ '31ed7e06afb347f2a302ba35267c8a0a': {
734
+ slug: string;
735
+ };
736
+ '17e8062b9ed749ba8428cbb3924e719d': {
737
+ slug: string;
738
+ };
739
+ '7573b1a594e8405295adfcf145c5322a': {
740
+ slug: string;
741
+ };
742
+ acc3ac3b7e724c288a849b471616e373: {
743
+ slug: string;
744
+ };
745
+ ddb203e3ae0443209ada75135e13a63e: {
746
+ slug: string;
747
+ };
748
+ bdee0a45e5144156b88621238cd31bbe: {
749
+ slug: string;
750
+ };
751
+ dc0d15f9aa474bd89c49e6da49bb3cc5: {
752
+ slug: string;
753
+ };
754
+ '55cebda93e1c4f52b07d824a57f8677b': {
755
+ slug: string;
756
+ };
757
+ '2172f706eedf4c36a3fba10a0fe5448d': {
758
+ slug: string;
759
+ };
760
+ '0964a6d8e0234df7ad7df8e56c33ff2b': {
761
+ slug: string;
762
+ };
763
+ e47b1860677e45909de56915a350a84e: {
764
+ slug: string;
765
+ };
766
+ '0b8fcc5f30cb4649bb4d8ea9cf35578c': {
767
+ slug: string;
768
+ };
769
+ '2972e73653da4dc5805853e22717f1ee': {
770
+ slug: string;
771
+ };
772
+ f292a52aff774e698fe26dc61a7a3f71: {
773
+ slug: string;
774
+ };
775
+ b9192bf9df6b4984b29f4731b5f0bb63: {
776
+ slug: string;
777
+ };
778
+ d2dd8fe6e2e44c78935206323ee89af1: {
779
+ slug: string;
780
+ };
781
+ '61f74eec39ff425b85e4f1c7e9e15ef6': {
782
+ slug: string;
783
+ };
784
+ '148b777f385c4df2bc1b4900a4208e82': {
785
+ slug: string;
786
+ };
787
+ '77550e4c36b34454bac2ae9c4d9d2bd1': {
788
+ slug: string;
789
+ };
790
+ '6aac0d2309744e9ea8fd4621f8213dbd': {
791
+ slug: string;
792
+ };
793
+ f5ef0aaddd294a0ba37ebc76012858ff: {
794
+ slug: string;
795
+ };
796
+ '73966e2885a544ed9ba8e0a314a6528c': {
797
+ slug: string;
798
+ };
799
+ '33242c4285024ccfafc57d72a7292ea9': {
800
+ slug: string;
801
+ };
802
+ '605f06522caa449ba93b7c5fa4d8e54b': {
803
+ slug: string;
804
+ };
805
+ c154e4664672441fa640f1ddff883db1: {
806
+ slug: string;
807
+ };
808
+ '86024d3f1def489495cc7525d8232bea': {
809
+ slug: string;
810
+ };
811
+ f52d1dd24f9c49ae82d8f70449fe40b7: {
812
+ slug: string;
813
+ };
814
+ '1cbbd20a3a4542f38d2f9932016c4584': {
815
+ slug: string;
816
+ };
817
+ fdf4b31ea3434b03a5c3ddaab1579084: {
818
+ slug: string;
819
+ };
820
+ '1b104c3a036e4825bd60a5c7ceac4e66': {
821
+ slug: string;
822
+ };
823
+ '03f332e3b2b947ebae73b67a9a22b6f4': {
824
+ slug: string;
825
+ };
826
+ '97f70f6cdb5244a08d45772cccfa2788': {
827
+ slug: string;
828
+ };
526
829
  };
527
- declare const bookSizes: readonly ["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
830
+ declare const bookSizes: readonly ["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
528
831
  declare const coverTypes: readonly ["sc", "hc", "pl"];
529
832
  declare const pageTypes: readonly ["sp", "sl", "dl"];
530
833
  declare const imageDensities: readonly ["low", "medium", "high"];
@@ -546,79 +849,13 @@ declare class BooksEndpoints {
546
849
  cancel(bookId: string): Promise<Book>;
547
850
  report(bookId: string, report: BookReport): Promise<void>;
548
851
  delete(bookId: string): Promise<void>;
549
- format(bookId: string, format: Format): Promise<{
550
- title: string;
551
- binding: string;
552
- coverSpecId: string;
553
- styleId: number;
554
- userId: string;
555
- magicShopBook: {
556
- pages: {
557
- type: string;
558
- pageNum: number;
559
- canvas: {
560
- backgroundId: string | null;
561
- assets?: {
562
- type: string;
563
- position: {
564
- x: number;
565
- y: number;
566
- rotation: number;
567
- width?: number | undefined;
568
- height?: number | undefined;
569
- };
570
- seqNum: number;
571
- z: number;
572
- id?: string | undefined;
573
- imageAssignment?: {
574
- photoRefId: string;
575
- finalCrop: number[];
576
- } | undefined;
577
- horizJustification?: string | undefined;
578
- vertJustification?: string | null | undefined;
579
- text?: string | undefined;
580
- fontId?: string | undefined;
581
- fontSize?: number | undefined;
582
- fontColor?: string | undefined;
583
- frame?: string | undefined;
584
- }[] | undefined;
585
- };
586
- }[];
587
- photoStrip: {
588
- photoRefId: string;
589
- url: string;
590
- encryptId: string;
591
- photoId: string;
592
- photoMetadata: {
593
- width: number;
594
- height: number;
595
- rotation: number;
596
- id: string;
597
- llx: number;
598
- lly: number;
599
- urx: number;
600
- ury: number;
601
- data: string | null;
602
- title: string;
603
- effect: string;
604
- source: string;
605
- uploadTime: string;
606
- };
607
- }[];
608
- };
609
- reportingData: {
610
- properties: {
611
- key: string;
612
- value?: any;
613
- }[];
614
- };
615
- }>;
852
+ format(bookId: string, format: Format): Promise<any>;
616
853
  }
617
854
 
618
855
  declare class DesignOptionsEndpoints {
619
856
  private readonly engineAPI;
620
857
  constructor(engineAPI: EngineAPI);
621
- retrieve(bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel): Promise<{
858
+ retrieve(bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel, sku?: string): Promise<{
622
859
  densities: {
623
860
  low: {
624
861
  max_page_count: number;
@@ -671,10 +908,10 @@ declare class ImagesEndpoints {
671
908
  private readonly engineAPI;
672
909
  constructor(engineAPI: EngineAPI);
673
910
  list(bookId: string): Promise<{
911
+ handle: string;
912
+ url: string;
674
913
  width: number;
675
914
  height: number;
676
- url: string;
677
- handle: string;
678
915
  orientation: number;
679
916
  taken_at: string;
680
917
  filename: string;
@@ -683,10 +920,10 @@ declare class ImagesEndpoints {
683
920
  camera?: string | undefined;
684
921
  }[]>;
685
922
  retrieve(imageId: string, bookId: string): Promise<{
923
+ handle: string;
924
+ url: string;
686
925
  width: number;
687
926
  height: number;
688
- url: string;
689
- handle: string;
690
927
  orientation: number;
691
928
  taken_at: string;
692
929
  filename: string;
@@ -695,10 +932,10 @@ declare class ImagesEndpoints {
695
932
  camera?: string | undefined;
696
933
  }>;
697
934
  update(imageId: string, bookId: string, image: ImageServer): Promise<{
935
+ handle: string;
936
+ url: string;
698
937
  width: number;
699
938
  height: number;
700
- url: string;
701
- handle: string;
702
939
  orientation: number;
703
940
  taken_at: string;
704
941
  filename: string;
@@ -708,10 +945,10 @@ declare class ImagesEndpoints {
708
945
  }>;
709
946
  delete(imageId: string, bookId: string): Promise<void>;
710
947
  addToBook(bookId: string, image: ImageServer): Promise<{
948
+ handle: string;
949
+ url: string;
711
950
  width: number;
712
951
  height: number;
713
- url: string;
714
- handle: string;
715
952
  orientation: number;
716
953
  taken_at: string;
717
954
  filename: string;
@@ -745,10 +982,10 @@ declare const spreadServerSchema: z.ZodObject<{
745
982
  laid_out_at: string | null;
746
983
  embellished_at: string | null;
747
984
  polished_at: string | null;
748
- width?: number | undefined;
749
- height?: number | undefined;
750
985
  id?: string | undefined;
751
986
  url?: string | null | undefined;
987
+ width?: number | undefined;
988
+ height?: number | undefined;
752
989
  background?: unknown;
753
990
  metadata?: unknown;
754
991
  }, {
@@ -760,10 +997,10 @@ declare const spreadServerSchema: z.ZodObject<{
760
997
  laid_out_at: string | null;
761
998
  embellished_at: string | null;
762
999
  polished_at: string | null;
763
- width?: number | undefined;
764
- height?: number | undefined;
765
1000
  id?: string | undefined;
766
1001
  url?: string | null | undefined;
1002
+ width?: number | undefined;
1003
+ height?: number | undefined;
767
1004
  background?: unknown;
768
1005
  metadata?: unknown;
769
1006
  }>;
@@ -781,10 +1018,10 @@ declare class SpreadsEndpoints {
781
1018
  laid_out_at: string | null;
782
1019
  embellished_at: string | null;
783
1020
  polished_at: string | null;
784
- width?: number | undefined;
785
- height?: number | undefined;
786
1021
  id?: string | undefined;
787
1022
  url?: string | null | undefined;
1023
+ width?: number | undefined;
1024
+ height?: number | undefined;
788
1025
  background?: unknown;
789
1026
  metadata?: unknown;
790
1027
  }[]>;
@@ -797,10 +1034,10 @@ declare class SpreadsEndpoints {
797
1034
  laid_out_at: string | null;
798
1035
  embellished_at: string | null;
799
1036
  polished_at: string | null;
800
- width?: number | undefined;
801
- height?: number | undefined;
802
1037
  id?: string | undefined;
803
1038
  url?: string | null | undefined;
1039
+ width?: number | undefined;
1040
+ height?: number | undefined;
804
1041
  background?: unknown;
805
1042
  metadata?: unknown;
806
1043
  }>;
@@ -813,10 +1050,10 @@ declare class SpreadsEndpoints {
813
1050
  laid_out_at: string | null;
814
1051
  embellished_at: string | null;
815
1052
  polished_at: string | null;
816
- width?: number | undefined;
817
- height?: number | undefined;
818
1053
  id?: string | undefined;
819
1054
  url?: string | null | undefined;
1055
+ width?: number | undefined;
1056
+ height?: number | undefined;
820
1057
  background?: unknown;
821
1058
  metadata?: unknown;
822
1059
  }>;
@@ -829,10 +1066,10 @@ declare class SpreadsEndpoints {
829
1066
  laid_out_at: string | null;
830
1067
  embellished_at: string | null;
831
1068
  polished_at: string | null;
832
- width?: number | undefined;
833
- height?: number | undefined;
834
1069
  id?: string | undefined;
835
1070
  url?: string | null | undefined;
1071
+ width?: number | undefined;
1072
+ height?: number | undefined;
836
1073
  background?: unknown;
837
1074
  metadata?: unknown;
838
1075
  }>;
@@ -880,20 +1117,20 @@ declare class StoryboardItemsEndpoints {
880
1117
  scene: number;
881
1118
  subscene: number;
882
1119
  image: {
883
- width: number;
884
- height: number;
885
1120
  id: string;
886
1121
  url: string;
1122
+ width: number;
1123
+ height: number;
887
1124
  taken_at: number;
888
1125
  category: string;
889
1126
  aesthetic_score: number;
890
1127
  faces: {
891
1128
  score: number;
892
1129
  bounding_box: {
893
- x: number;
894
- y: number;
895
1130
  width: number;
896
1131
  height: number;
1132
+ x: number;
1133
+ y: number;
897
1134
  };
898
1135
  size: number;
899
1136
  eyes_open_score: number;
@@ -901,10 +1138,10 @@ declare class StoryboardItemsEndpoints {
901
1138
  facing_camera_score: number;
902
1139
  }[];
903
1140
  roi: {
904
- x: number;
905
- y: number;
906
1141
  width: number;
907
1142
  height: number;
1143
+ x: number;
1144
+ y: number;
908
1145
  };
909
1146
  };
910
1147
  front_cover?: boolean | undefined;
@@ -967,10 +1204,10 @@ declare const imageServerSchema: z.ZodObject<{
967
1204
  camera: z.ZodOptional<z.ZodString>;
968
1205
  filename: z.ZodString;
969
1206
  }, "strip", z.ZodTypeAny, {
1207
+ handle: string;
1208
+ url: string;
970
1209
  width: number;
971
1210
  height: number;
972
- url: string;
973
- handle: string;
974
1211
  orientation: number;
975
1212
  taken_at: string;
976
1213
  filename: string;
@@ -978,10 +1215,10 @@ declare const imageServerSchema: z.ZodObject<{
978
1215
  camera_make?: string | undefined;
979
1216
  camera?: string | undefined;
980
1217
  }, {
1218
+ handle: string;
1219
+ url: string;
981
1220
  width: number;
982
1221
  height: number;
983
- url: string;
984
- handle: string;
985
1222
  orientation: number;
986
1223
  taken_at: string;
987
1224
  filename: string;
@@ -1015,7 +1252,7 @@ type TextStickerLevel = (typeof textStickerLevels)[number];
1015
1252
  declare const DesignRequestOptions: {
1016
1253
  occasion: readonly ["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"];
1017
1254
  style: number[];
1018
- bookSize: readonly ["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
1255
+ bookSize: readonly ["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
1019
1256
  coverType: readonly ["sc", "hc", "pl"];
1020
1257
  pageType: readonly ["sp", "sl", "dl"];
1021
1258
  imageDensity: readonly ["low", "medium", "high"];
@@ -1029,6 +1266,7 @@ type DesignRequestProps = {
1029
1266
  state?: State;
1030
1267
  occasion?: Occasion;
1031
1268
  style?: Style;
1269
+ sku?: string;
1032
1270
  bookSize?: BookSize;
1033
1271
  coverType?: CoverType;
1034
1272
  pageType?: PageType;
@@ -1054,6 +1292,7 @@ declare class DesignRequest {
1054
1292
  subtitle?: string;
1055
1293
  occasion: Occasion;
1056
1294
  style: Style;
1295
+ sku?: string;
1057
1296
  bookSize: BookSize;
1058
1297
  coverType: CoverType;
1059
1298
  pageType: PageType;
@@ -1123,73 +1362,7 @@ declare class DesignRequest {
1123
1362
  submit(submitDesignRequestProps?: Partial<DesignRequestProps>): Promise<this>;
1124
1363
  setGuid(guid: string): Promise<string>;
1125
1364
  cancel(): Promise<this>;
1126
- getJSON(format: Format): Promise<{
1127
- title: string;
1128
- binding: string;
1129
- coverSpecId: string;
1130
- styleId: number;
1131
- userId: string;
1132
- magicShopBook: {
1133
- pages: {
1134
- type: string;
1135
- pageNum: number;
1136
- canvas: {
1137
- backgroundId: string | null;
1138
- assets?: {
1139
- type: string;
1140
- position: {
1141
- x: number;
1142
- y: number;
1143
- rotation: number;
1144
- width?: number | undefined;
1145
- height?: number | undefined;
1146
- };
1147
- seqNum: number;
1148
- z: number;
1149
- id?: string | undefined;
1150
- imageAssignment?: {
1151
- photoRefId: string;
1152
- finalCrop: number[];
1153
- } | undefined;
1154
- horizJustification?: string | undefined;
1155
- vertJustification?: string | null | undefined;
1156
- text?: string | undefined;
1157
- fontId?: string | undefined;
1158
- fontSize?: number | undefined;
1159
- fontColor?: string | undefined;
1160
- frame?: string | undefined;
1161
- }[] | undefined;
1162
- };
1163
- }[];
1164
- photoStrip: {
1165
- photoRefId: string;
1166
- url: string;
1167
- encryptId: string;
1168
- photoId: string;
1169
- photoMetadata: {
1170
- width: number;
1171
- height: number;
1172
- rotation: number;
1173
- id: string;
1174
- llx: number;
1175
- lly: number;
1176
- urx: number;
1177
- ury: number;
1178
- data: string | null;
1179
- title: string;
1180
- effect: string;
1181
- source: string;
1182
- uploadTime: string;
1183
- };
1184
- }[];
1185
- };
1186
- reportingData: {
1187
- properties: {
1188
- key: string;
1189
- value?: any;
1190
- }[];
1191
- };
1192
- }>;
1365
+ getJSON(format: Format): Promise<any>;
1193
1366
  logEvent(name: string, data?: EventContext): Promise<{
1194
1367
  name: string;
1195
1368
  context?: Record<string, unknown> | undefined;
@@ -1230,7 +1403,7 @@ declare class BookDesignRequest {
1230
1403
  declare const bookDesignRequestSchema: z.ZodObject<{
1231
1404
  occasion: z.ZodEnum<["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"]>;
1232
1405
  style: z.ZodString;
1233
- book_size: z.ZodEnum<["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1406
+ book_size: z.ZodEnum<["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1234
1407
  cover_type: z.ZodEnum<["sc", "hc", "pl"]>;
1235
1408
  page_type: z.ZodEnum<["sp", "sl", "dl"]>;
1236
1409
  image_density: z.ZodEnum<["low", "medium", "high"]>;
@@ -1240,7 +1413,7 @@ declare const bookDesignRequestSchema: z.ZodObject<{
1240
1413
  }, "strip", z.ZodTypeAny, {
1241
1414
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1242
1415
  style: string;
1243
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1416
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1244
1417
  cover_type: "sc" | "hc" | "pl";
1245
1418
  page_type: "sp" | "sl" | "dl";
1246
1419
  image_density: "low" | "medium" | "high";
@@ -1250,7 +1423,7 @@ declare const bookDesignRequestSchema: z.ZodObject<{
1250
1423
  }, {
1251
1424
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1252
1425
  style: string;
1253
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1426
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1254
1427
  cover_type: "sc" | "hc" | "pl";
1255
1428
  page_type: "sp" | "sl" | "dl";
1256
1429
  image_density: "low" | "medium" | "high";
@@ -1265,7 +1438,7 @@ declare const bookPropsSchema: z.ZodObject<{
1265
1438
  design_request: z.ZodObject<{
1266
1439
  occasion: z.ZodEnum<["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"]>;
1267
1440
  style: z.ZodString;
1268
- book_size: z.ZodEnum<["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1441
+ book_size: z.ZodEnum<["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1269
1442
  cover_type: z.ZodEnum<["sc", "hc", "pl"]>;
1270
1443
  page_type: z.ZodEnum<["sp", "sl", "dl"]>;
1271
1444
  image_density: z.ZodEnum<["low", "medium", "high"]>;
@@ -1275,7 +1448,7 @@ declare const bookPropsSchema: z.ZodObject<{
1275
1448
  }, "strip", z.ZodTypeAny, {
1276
1449
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1277
1450
  style: string;
1278
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1451
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1279
1452
  cover_type: "sc" | "hc" | "pl";
1280
1453
  page_type: "sp" | "sl" | "dl";
1281
1454
  image_density: "low" | "medium" | "high";
@@ -1285,7 +1458,7 @@ declare const bookPropsSchema: z.ZodObject<{
1285
1458
  }, {
1286
1459
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1287
1460
  style: string;
1288
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1461
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1289
1462
  cover_type: "sc" | "hc" | "pl";
1290
1463
  page_type: "sp" | "sl" | "dl";
1291
1464
  image_density: "low" | "medium" | "high";
@@ -1293,6 +1466,7 @@ declare const bookPropsSchema: z.ZodObject<{
1293
1466
  embellishment_level: "none" | "few" | "lots";
1294
1467
  text_sticker_level: "none" | "few" | "lots";
1295
1468
  }>;
1469
+ sku: z.ZodOptional<z.ZodString>;
1296
1470
  state: z.ZodOptional<z.ZodEnum<["new", "ingesting", "submitted", "storyboarding", "deduplication", "image-selection", "designing", "layouting", "embellishing", "polishing", "ready", "timeout", "error", "cancelled"]>>;
1297
1471
  guid: z.ZodOptional<z.ZodString>;
1298
1472
  cancelled_at: z.ZodOptional<z.ZodString>;
@@ -1304,7 +1478,7 @@ declare const bookPropsSchema: z.ZodObject<{
1304
1478
  design_request: {
1305
1479
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1306
1480
  style: string;
1307
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1481
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1308
1482
  cover_type: "sc" | "hc" | "pl";
1309
1483
  page_type: "sp" | "sl" | "dl";
1310
1484
  image_density: "low" | "medium" | "high";
@@ -1314,6 +1488,7 @@ declare const bookPropsSchema: z.ZodObject<{
1314
1488
  };
1315
1489
  id?: string | undefined;
1316
1490
  subtitle?: string | undefined;
1491
+ sku?: string | undefined;
1317
1492
  state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
1318
1493
  guid?: string | undefined;
1319
1494
  cancelled_at?: string | undefined;
@@ -1325,7 +1500,7 @@ declare const bookPropsSchema: z.ZodObject<{
1325
1500
  design_request: {
1326
1501
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1327
1502
  style: string;
1328
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1503
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1329
1504
  cover_type: "sc" | "hc" | "pl";
1330
1505
  page_type: "sp" | "sl" | "dl";
1331
1506
  image_density: "low" | "medium" | "high";
@@ -1335,6 +1510,7 @@ declare const bookPropsSchema: z.ZodObject<{
1335
1510
  };
1336
1511
  id?: string | undefined;
1337
1512
  subtitle?: string | undefined;
1513
+ sku?: string | undefined;
1338
1514
  state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
1339
1515
  guid?: string | undefined;
1340
1516
  cancelled_at?: string | undefined;
@@ -1349,6 +1525,7 @@ declare class Book {
1349
1525
  revision?: number;
1350
1526
  subtitle?: string;
1351
1527
  design_request: BookDesignRequest;
1528
+ sku?: string;
1352
1529
  state?: State;
1353
1530
  guid?: string;
1354
1531
  cancelled_at?: string;
@@ -1962,30 +2139,30 @@ declare const photoMetadataSchema: z.ZodObject<{
1962
2139
  rotation: z.ZodNumber;
1963
2140
  uploadTime: z.ZodString;
1964
2141
  }, "strip", z.ZodTypeAny, {
2142
+ id: string;
2143
+ title: string;
1965
2144
  width: number;
1966
2145
  height: number;
1967
2146
  rotation: number;
1968
- id: string;
1969
2147
  llx: number;
1970
2148
  lly: number;
1971
2149
  urx: number;
1972
2150
  ury: number;
1973
2151
  data: string | null;
1974
- title: string;
1975
2152
  effect: string;
1976
2153
  source: string;
1977
2154
  uploadTime: string;
1978
2155
  }, {
2156
+ id: string;
2157
+ title: string;
1979
2158
  width: number;
1980
2159
  height: number;
1981
2160
  rotation: number;
1982
- id: string;
1983
2161
  llx: number;
1984
2162
  lly: number;
1985
2163
  urx: number;
1986
2164
  ury: number;
1987
2165
  data: string | null;
1988
- title: string;
1989
2166
  effect: string;
1990
2167
  source: string;
1991
2168
  uploadTime: string;
@@ -2111,70 +2288,70 @@ declare const photoStripSchema: z.ZodObject<{
2111
2288
  rotation: z.ZodNumber;
2112
2289
  uploadTime: z.ZodString;
2113
2290
  }, "strip", z.ZodTypeAny, {
2291
+ id: string;
2292
+ title: string;
2114
2293
  width: number;
2115
2294
  height: number;
2116
2295
  rotation: number;
2117
- id: string;
2118
2296
  llx: number;
2119
2297
  lly: number;
2120
2298
  urx: number;
2121
2299
  ury: number;
2122
2300
  data: string | null;
2123
- title: string;
2124
2301
  effect: string;
2125
2302
  source: string;
2126
2303
  uploadTime: string;
2127
2304
  }, {
2305
+ id: string;
2306
+ title: string;
2128
2307
  width: number;
2129
2308
  height: number;
2130
2309
  rotation: number;
2131
- id: string;
2132
2310
  llx: number;
2133
2311
  lly: number;
2134
2312
  urx: number;
2135
2313
  ury: number;
2136
2314
  data: string | null;
2137
- title: string;
2138
2315
  effect: string;
2139
2316
  source: string;
2140
2317
  uploadTime: string;
2141
2318
  }>;
2142
2319
  }, "strip", z.ZodTypeAny, {
2143
- photoRefId: string;
2144
2320
  url: string;
2321
+ photoRefId: string;
2145
2322
  encryptId: string;
2146
2323
  photoId: string;
2147
2324
  photoMetadata: {
2325
+ id: string;
2326
+ title: string;
2148
2327
  width: number;
2149
2328
  height: number;
2150
2329
  rotation: number;
2151
- id: string;
2152
2330
  llx: number;
2153
2331
  lly: number;
2154
2332
  urx: number;
2155
2333
  ury: number;
2156
2334
  data: string | null;
2157
- title: string;
2158
2335
  effect: string;
2159
2336
  source: string;
2160
2337
  uploadTime: string;
2161
2338
  };
2162
2339
  }, {
2163
- photoRefId: string;
2164
2340
  url: string;
2341
+ photoRefId: string;
2165
2342
  encryptId: string;
2166
2343
  photoId: string;
2167
2344
  photoMetadata: {
2345
+ id: string;
2346
+ title: string;
2168
2347
  width: number;
2169
2348
  height: number;
2170
2349
  rotation: number;
2171
- id: string;
2172
2350
  llx: number;
2173
2351
  lly: number;
2174
2352
  urx: number;
2175
2353
  ury: number;
2176
2354
  data: string | null;
2177
- title: string;
2178
2355
  effect: string;
2179
2356
  source: string;
2180
2357
  uploadTime: string;
@@ -2784,70 +2961,70 @@ declare const magicShopBookSchema: z.ZodObject<{
2784
2961
  rotation: z.ZodNumber;
2785
2962
  uploadTime: z.ZodString;
2786
2963
  }, "strip", z.ZodTypeAny, {
2964
+ id: string;
2965
+ title: string;
2787
2966
  width: number;
2788
2967
  height: number;
2789
2968
  rotation: number;
2790
- id: string;
2791
2969
  llx: number;
2792
2970
  lly: number;
2793
2971
  urx: number;
2794
2972
  ury: number;
2795
2973
  data: string | null;
2796
- title: string;
2797
2974
  effect: string;
2798
2975
  source: string;
2799
2976
  uploadTime: string;
2800
2977
  }, {
2978
+ id: string;
2979
+ title: string;
2801
2980
  width: number;
2802
2981
  height: number;
2803
2982
  rotation: number;
2804
- id: string;
2805
2983
  llx: number;
2806
2984
  lly: number;
2807
2985
  urx: number;
2808
2986
  ury: number;
2809
2987
  data: string | null;
2810
- title: string;
2811
2988
  effect: string;
2812
2989
  source: string;
2813
2990
  uploadTime: string;
2814
2991
  }>;
2815
2992
  }, "strip", z.ZodTypeAny, {
2816
- photoRefId: string;
2817
2993
  url: string;
2994
+ photoRefId: string;
2818
2995
  encryptId: string;
2819
2996
  photoId: string;
2820
2997
  photoMetadata: {
2998
+ id: string;
2999
+ title: string;
2821
3000
  width: number;
2822
3001
  height: number;
2823
3002
  rotation: number;
2824
- id: string;
2825
3003
  llx: number;
2826
3004
  lly: number;
2827
3005
  urx: number;
2828
3006
  ury: number;
2829
3007
  data: string | null;
2830
- title: string;
2831
3008
  effect: string;
2832
3009
  source: string;
2833
3010
  uploadTime: string;
2834
3011
  };
2835
3012
  }, {
2836
- photoRefId: string;
2837
3013
  url: string;
3014
+ photoRefId: string;
2838
3015
  encryptId: string;
2839
3016
  photoId: string;
2840
3017
  photoMetadata: {
3018
+ id: string;
3019
+ title: string;
2841
3020
  width: number;
2842
3021
  height: number;
2843
3022
  rotation: number;
2844
- id: string;
2845
3023
  llx: number;
2846
3024
  lly: number;
2847
3025
  urx: number;
2848
3026
  ury: number;
2849
3027
  data: string | null;
2850
- title: string;
2851
3028
  effect: string;
2852
3029
  source: string;
2853
3030
  uploadTime: string;
@@ -2886,21 +3063,21 @@ declare const magicShopBookSchema: z.ZodObject<{
2886
3063
  };
2887
3064
  }[];
2888
3065
  photoStrip: {
2889
- photoRefId: string;
2890
3066
  url: string;
3067
+ photoRefId: string;
2891
3068
  encryptId: string;
2892
3069
  photoId: string;
2893
3070
  photoMetadata: {
3071
+ id: string;
3072
+ title: string;
2894
3073
  width: number;
2895
3074
  height: number;
2896
3075
  rotation: number;
2897
- id: string;
2898
3076
  llx: number;
2899
3077
  lly: number;
2900
3078
  urx: number;
2901
3079
  ury: number;
2902
3080
  data: string | null;
2903
- title: string;
2904
3081
  effect: string;
2905
3082
  source: string;
2906
3083
  uploadTime: string;
@@ -2939,21 +3116,21 @@ declare const magicShopBookSchema: z.ZodObject<{
2939
3116
  };
2940
3117
  }[];
2941
3118
  photoStrip: {
2942
- photoRefId: string;
2943
3119
  url: string;
3120
+ photoRefId: string;
2944
3121
  encryptId: string;
2945
3122
  photoId: string;
2946
3123
  photoMetadata: {
3124
+ id: string;
3125
+ title: string;
2947
3126
  width: number;
2948
3127
  height: number;
2949
3128
  rotation: number;
2950
- id: string;
2951
3129
  llx: number;
2952
3130
  lly: number;
2953
3131
  urx: number;
2954
3132
  ury: number;
2955
3133
  data: string | null;
2956
- title: string;
2957
3134
  effect: string;
2958
3135
  source: string;
2959
3136
  uploadTime: string;
@@ -3195,70 +3372,70 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3195
3372
  rotation: z.ZodNumber;
3196
3373
  uploadTime: z.ZodString;
3197
3374
  }, "strip", z.ZodTypeAny, {
3375
+ id: string;
3376
+ title: string;
3198
3377
  width: number;
3199
3378
  height: number;
3200
3379
  rotation: number;
3201
- id: string;
3202
3380
  llx: number;
3203
3381
  lly: number;
3204
3382
  urx: number;
3205
3383
  ury: number;
3206
3384
  data: string | null;
3207
- title: string;
3208
3385
  effect: string;
3209
3386
  source: string;
3210
3387
  uploadTime: string;
3211
3388
  }, {
3389
+ id: string;
3390
+ title: string;
3212
3391
  width: number;
3213
3392
  height: number;
3214
3393
  rotation: number;
3215
- id: string;
3216
3394
  llx: number;
3217
3395
  lly: number;
3218
3396
  urx: number;
3219
3397
  ury: number;
3220
3398
  data: string | null;
3221
- title: string;
3222
3399
  effect: string;
3223
3400
  source: string;
3224
3401
  uploadTime: string;
3225
3402
  }>;
3226
3403
  }, "strip", z.ZodTypeAny, {
3227
- photoRefId: string;
3228
3404
  url: string;
3405
+ photoRefId: string;
3229
3406
  encryptId: string;
3230
3407
  photoId: string;
3231
3408
  photoMetadata: {
3409
+ id: string;
3410
+ title: string;
3232
3411
  width: number;
3233
3412
  height: number;
3234
3413
  rotation: number;
3235
- id: string;
3236
3414
  llx: number;
3237
3415
  lly: number;
3238
3416
  urx: number;
3239
3417
  ury: number;
3240
3418
  data: string | null;
3241
- title: string;
3242
3419
  effect: string;
3243
3420
  source: string;
3244
3421
  uploadTime: string;
3245
3422
  };
3246
3423
  }, {
3247
- photoRefId: string;
3248
3424
  url: string;
3425
+ photoRefId: string;
3249
3426
  encryptId: string;
3250
3427
  photoId: string;
3251
3428
  photoMetadata: {
3429
+ id: string;
3430
+ title: string;
3252
3431
  width: number;
3253
3432
  height: number;
3254
3433
  rotation: number;
3255
- id: string;
3256
3434
  llx: number;
3257
3435
  lly: number;
3258
3436
  urx: number;
3259
3437
  ury: number;
3260
3438
  data: string | null;
3261
- title: string;
3262
3439
  effect: string;
3263
3440
  source: string;
3264
3441
  uploadTime: string;
@@ -3297,21 +3474,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3297
3474
  };
3298
3475
  }[];
3299
3476
  photoStrip: {
3300
- photoRefId: string;
3301
3477
  url: string;
3478
+ photoRefId: string;
3302
3479
  encryptId: string;
3303
3480
  photoId: string;
3304
3481
  photoMetadata: {
3482
+ id: string;
3483
+ title: string;
3305
3484
  width: number;
3306
3485
  height: number;
3307
3486
  rotation: number;
3308
- id: string;
3309
3487
  llx: number;
3310
3488
  lly: number;
3311
3489
  urx: number;
3312
3490
  ury: number;
3313
3491
  data: string | null;
3314
- title: string;
3315
3492
  effect: string;
3316
3493
  source: string;
3317
3494
  uploadTime: string;
@@ -3350,21 +3527,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3350
3527
  };
3351
3528
  }[];
3352
3529
  photoStrip: {
3353
- photoRefId: string;
3354
3530
  url: string;
3531
+ photoRefId: string;
3355
3532
  encryptId: string;
3356
3533
  photoId: string;
3357
3534
  photoMetadata: {
3535
+ id: string;
3536
+ title: string;
3358
3537
  width: number;
3359
3538
  height: number;
3360
3539
  rotation: number;
3361
- id: string;
3362
3540
  llx: number;
3363
3541
  lly: number;
3364
3542
  urx: number;
3365
3543
  ury: number;
3366
3544
  data: string | null;
3367
- title: string;
3368
3545
  effect: string;
3369
3546
  source: string;
3370
3547
  uploadTime: string;
@@ -3432,21 +3609,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3432
3609
  };
3433
3610
  }[];
3434
3611
  photoStrip: {
3435
- photoRefId: string;
3436
3612
  url: string;
3613
+ photoRefId: string;
3437
3614
  encryptId: string;
3438
3615
  photoId: string;
3439
3616
  photoMetadata: {
3617
+ id: string;
3618
+ title: string;
3440
3619
  width: number;
3441
3620
  height: number;
3442
3621
  rotation: number;
3443
- id: string;
3444
3622
  llx: number;
3445
3623
  lly: number;
3446
3624
  urx: number;
3447
3625
  ury: number;
3448
3626
  data: string | null;
3449
- title: string;
3450
3627
  effect: string;
3451
3628
  source: string;
3452
3629
  uploadTime: string;
@@ -3498,21 +3675,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3498
3675
  };
3499
3676
  }[];
3500
3677
  photoStrip: {
3501
- photoRefId: string;
3502
3678
  url: string;
3679
+ photoRefId: string;
3503
3680
  encryptId: string;
3504
3681
  photoId: string;
3505
3682
  photoMetadata: {
3683
+ id: string;
3684
+ title: string;
3506
3685
  width: number;
3507
3686
  height: number;
3508
3687
  rotation: number;
3509
- id: string;
3510
3688
  llx: number;
3511
3689
  lly: number;
3512
3690
  urx: number;
3513
3691
  ury: number;
3514
3692
  data: string | null;
3515
- title: string;
3516
3693
  effect: string;
3517
3694
  source: string;
3518
3695
  uploadTime: string;