@magiclabs.ai/magicbook-client 0.7.8-canary → 0.7.10-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.ts CHANGED
@@ -838,6 +838,8 @@ declare const timeoutEventDetail: DesignRequestEventDetail;
838
838
  declare const cancelledEventDetail: DesignRequestEventDetail;
839
839
  declare const formats: readonly ["galleon", "snapfish"];
840
840
  type Format = (typeof formats)[number];
841
+ declare const surfaceCategoryNames: readonly ["inside", "cover"];
842
+ type SurfaceCategoryName = (typeof surfaceCategoryNames)[number];
841
843
 
842
844
  declare class BooksEndpoints {
843
845
  private readonly engineAPI;
@@ -849,73 +851,7 @@ declare class BooksEndpoints {
849
851
  cancel(bookId: string): Promise<Book>;
850
852
  report(bookId: string, report: BookReport): Promise<void>;
851
853
  delete(bookId: string): Promise<void>;
852
- format(bookId: string, format: Format): Promise<{
853
- title: string;
854
- binding: string;
855
- coverSpecId: string;
856
- styleId: number;
857
- userId: string;
858
- magicShopBook: {
859
- pages: {
860
- type: string;
861
- pageNum: number;
862
- canvas: {
863
- backgroundId: string | null;
864
- assets?: {
865
- type: string;
866
- position: {
867
- x: number;
868
- y: number;
869
- rotation: number;
870
- width?: number | undefined;
871
- height?: number | undefined;
872
- };
873
- seqNum: number;
874
- z: number;
875
- id?: string | undefined;
876
- imageAssignment?: {
877
- photoRefId: string;
878
- finalCrop: number[];
879
- } | undefined;
880
- horizJustification?: string | undefined;
881
- vertJustification?: string | null | undefined;
882
- text?: string | undefined;
883
- fontId?: string | undefined;
884
- fontSize?: number | undefined;
885
- fontColor?: string | undefined;
886
- frame?: string | undefined;
887
- }[] | undefined;
888
- };
889
- }[];
890
- photoStrip: {
891
- photoRefId: string;
892
- url: string;
893
- encryptId: string;
894
- photoId: string;
895
- photoMetadata: {
896
- width: number;
897
- height: number;
898
- rotation: number;
899
- id: string;
900
- llx: number;
901
- lly: number;
902
- urx: number;
903
- ury: number;
904
- data: string | null;
905
- title: string;
906
- effect: string;
907
- source: string;
908
- uploadTime: string;
909
- };
910
- }[];
911
- };
912
- reportingData: {
913
- properties: {
914
- key: string;
915
- value?: any;
916
- }[];
917
- };
918
- }>;
854
+ format(bookId: string, format: Format): Promise<any>;
919
855
  }
920
856
 
921
857
  declare class DesignOptionsEndpoints {
@@ -974,10 +910,10 @@ declare class ImagesEndpoints {
974
910
  private readonly engineAPI;
975
911
  constructor(engineAPI: EngineAPI);
976
912
  list(bookId: string): Promise<{
913
+ handle: string;
914
+ url: string;
977
915
  width: number;
978
916
  height: number;
979
- url: string;
980
- handle: string;
981
917
  orientation: number;
982
918
  taken_at: string;
983
919
  filename: string;
@@ -986,10 +922,10 @@ declare class ImagesEndpoints {
986
922
  camera?: string | undefined;
987
923
  }[]>;
988
924
  retrieve(imageId: string, bookId: string): Promise<{
925
+ handle: string;
926
+ url: string;
989
927
  width: number;
990
928
  height: number;
991
- url: string;
992
- handle: string;
993
929
  orientation: number;
994
930
  taken_at: string;
995
931
  filename: string;
@@ -998,10 +934,10 @@ declare class ImagesEndpoints {
998
934
  camera?: string | undefined;
999
935
  }>;
1000
936
  update(imageId: string, bookId: string, image: ImageServer): Promise<{
937
+ handle: string;
938
+ url: string;
1001
939
  width: number;
1002
940
  height: number;
1003
- url: string;
1004
- handle: string;
1005
941
  orientation: number;
1006
942
  taken_at: string;
1007
943
  filename: string;
@@ -1011,10 +947,10 @@ declare class ImagesEndpoints {
1011
947
  }>;
1012
948
  delete(imageId: string, bookId: string): Promise<void>;
1013
949
  addToBook(bookId: string, image: ImageServer): Promise<{
950
+ handle: string;
951
+ url: string;
1014
952
  width: number;
1015
953
  height: number;
1016
- url: string;
1017
- handle: string;
1018
954
  orientation: number;
1019
955
  taken_at: string;
1020
956
  filename: string;
@@ -1048,10 +984,10 @@ declare const spreadServerSchema: z.ZodObject<{
1048
984
  laid_out_at: string | null;
1049
985
  embellished_at: string | null;
1050
986
  polished_at: string | null;
1051
- width?: number | undefined;
1052
- height?: number | undefined;
1053
987
  id?: string | undefined;
1054
988
  url?: string | null | undefined;
989
+ width?: number | undefined;
990
+ height?: number | undefined;
1055
991
  background?: unknown;
1056
992
  metadata?: unknown;
1057
993
  }, {
@@ -1063,10 +999,10 @@ declare const spreadServerSchema: z.ZodObject<{
1063
999
  laid_out_at: string | null;
1064
1000
  embellished_at: string | null;
1065
1001
  polished_at: string | null;
1066
- width?: number | undefined;
1067
- height?: number | undefined;
1068
1002
  id?: string | undefined;
1069
1003
  url?: string | null | undefined;
1004
+ width?: number | undefined;
1005
+ height?: number | undefined;
1070
1006
  background?: unknown;
1071
1007
  metadata?: unknown;
1072
1008
  }>;
@@ -1084,10 +1020,10 @@ declare class SpreadsEndpoints {
1084
1020
  laid_out_at: string | null;
1085
1021
  embellished_at: string | null;
1086
1022
  polished_at: string | null;
1087
- width?: number | undefined;
1088
- height?: number | undefined;
1089
1023
  id?: string | undefined;
1090
1024
  url?: string | null | undefined;
1025
+ width?: number | undefined;
1026
+ height?: number | undefined;
1091
1027
  background?: unknown;
1092
1028
  metadata?: unknown;
1093
1029
  }[]>;
@@ -1100,10 +1036,10 @@ declare class SpreadsEndpoints {
1100
1036
  laid_out_at: string | null;
1101
1037
  embellished_at: string | null;
1102
1038
  polished_at: string | null;
1103
- width?: number | undefined;
1104
- height?: number | undefined;
1105
1039
  id?: string | undefined;
1106
1040
  url?: string | null | undefined;
1041
+ width?: number | undefined;
1042
+ height?: number | undefined;
1107
1043
  background?: unknown;
1108
1044
  metadata?: unknown;
1109
1045
  }>;
@@ -1116,10 +1052,10 @@ declare class SpreadsEndpoints {
1116
1052
  laid_out_at: string | null;
1117
1053
  embellished_at: string | null;
1118
1054
  polished_at: string | null;
1119
- width?: number | undefined;
1120
- height?: number | undefined;
1121
1055
  id?: string | undefined;
1122
1056
  url?: string | null | undefined;
1057
+ width?: number | undefined;
1058
+ height?: number | undefined;
1123
1059
  background?: unknown;
1124
1060
  metadata?: unknown;
1125
1061
  }>;
@@ -1132,15 +1068,15 @@ declare class SpreadsEndpoints {
1132
1068
  laid_out_at: string | null;
1133
1069
  embellished_at: string | null;
1134
1070
  polished_at: string | null;
1135
- width?: number | undefined;
1136
- height?: number | undefined;
1137
1071
  id?: string | undefined;
1138
1072
  url?: string | null | undefined;
1073
+ width?: number | undefined;
1074
+ height?: number | undefined;
1139
1075
  background?: unknown;
1140
1076
  metadata?: unknown;
1141
1077
  }>;
1142
1078
  delete(spreadId: string, bookId: string): Promise<void>;
1143
- layouts(bookId: string, page: number): Promise<{
1079
+ layouts(bookId: string, page: number, surfaceCategoryName?: SurfaceCategoryName): Promise<({
1144
1080
  backgroundId: string | null;
1145
1081
  assets?: {
1146
1082
  type: string;
@@ -1166,7 +1102,11 @@ declare class SpreadsEndpoints {
1166
1102
  fontColor?: string | undefined;
1167
1103
  frame?: string | undefined;
1168
1104
  }[] | undefined;
1169
- }[]>;
1105
+ } | {
1106
+ surfaceNumber: number;
1107
+ surfaceData: Record<string, any>;
1108
+ version: string;
1109
+ })[]>;
1170
1110
  }
1171
1111
 
1172
1112
  declare class StoryboardItemsEndpoints {
@@ -1183,20 +1123,20 @@ declare class StoryboardItemsEndpoints {
1183
1123
  scene: number;
1184
1124
  subscene: number;
1185
1125
  image: {
1186
- width: number;
1187
- height: number;
1188
1126
  id: string;
1189
1127
  url: string;
1128
+ width: number;
1129
+ height: number;
1190
1130
  taken_at: number;
1191
1131
  category: string;
1192
1132
  aesthetic_score: number;
1193
1133
  faces: {
1194
1134
  score: number;
1195
1135
  bounding_box: {
1196
- x: number;
1197
- y: number;
1198
1136
  width: number;
1199
1137
  height: number;
1138
+ x: number;
1139
+ y: number;
1200
1140
  };
1201
1141
  size: number;
1202
1142
  eyes_open_score: number;
@@ -1204,10 +1144,10 @@ declare class StoryboardItemsEndpoints {
1204
1144
  facing_camera_score: number;
1205
1145
  }[];
1206
1146
  roi: {
1207
- x: number;
1208
- y: number;
1209
1147
  width: number;
1210
1148
  height: number;
1149
+ x: number;
1150
+ y: number;
1211
1151
  };
1212
1152
  };
1213
1153
  front_cover?: boolean | undefined;
@@ -1270,10 +1210,10 @@ declare const imageServerSchema: z.ZodObject<{
1270
1210
  camera: z.ZodOptional<z.ZodString>;
1271
1211
  filename: z.ZodString;
1272
1212
  }, "strip", z.ZodTypeAny, {
1213
+ handle: string;
1214
+ url: string;
1273
1215
  width: number;
1274
1216
  height: number;
1275
- url: string;
1276
- handle: string;
1277
1217
  orientation: number;
1278
1218
  taken_at: string;
1279
1219
  filename: string;
@@ -1281,10 +1221,10 @@ declare const imageServerSchema: z.ZodObject<{
1281
1221
  camera_make?: string | undefined;
1282
1222
  camera?: string | undefined;
1283
1223
  }, {
1224
+ handle: string;
1225
+ url: string;
1284
1226
  width: number;
1285
1227
  height: number;
1286
- url: string;
1287
- handle: string;
1288
1228
  orientation: number;
1289
1229
  taken_at: string;
1290
1230
  filename: string;
@@ -1398,7 +1338,7 @@ declare class DesignRequest {
1398
1338
  };
1399
1339
  };
1400
1340
  }>;
1401
- getAlternateLayouts(pageNumber: number): Promise<{
1341
+ getAlternateLayouts(pageNumber: number, surfaceCategoryName?: SurfaceCategoryName): Promise<({
1402
1342
  backgroundId: string | null;
1403
1343
  assets?: {
1404
1344
  type: string;
@@ -1424,77 +1364,15 @@ declare class DesignRequest {
1424
1364
  fontColor?: string | undefined;
1425
1365
  frame?: string | undefined;
1426
1366
  }[] | undefined;
1427
- }[]>;
1367
+ } | {
1368
+ surfaceNumber: number;
1369
+ surfaceData: Record<string, any>;
1370
+ version: string;
1371
+ })[]>;
1428
1372
  submit(submitDesignRequestProps?: Partial<DesignRequestProps>): Promise<this>;
1429
1373
  setGuid(guid: string): Promise<string>;
1430
1374
  cancel(): Promise<this>;
1431
- getJSON(format: Format): Promise<{
1432
- title: string;
1433
- binding: string;
1434
- coverSpecId: string;
1435
- styleId: number;
1436
- userId: string;
1437
- magicShopBook: {
1438
- pages: {
1439
- type: string;
1440
- pageNum: number;
1441
- canvas: {
1442
- backgroundId: string | null;
1443
- assets?: {
1444
- type: string;
1445
- position: {
1446
- x: number;
1447
- y: number;
1448
- rotation: number;
1449
- width?: number | undefined;
1450
- height?: number | undefined;
1451
- };
1452
- seqNum: number;
1453
- z: number;
1454
- id?: string | undefined;
1455
- imageAssignment?: {
1456
- photoRefId: string;
1457
- finalCrop: number[];
1458
- } | undefined;
1459
- horizJustification?: string | undefined;
1460
- vertJustification?: string | null | undefined;
1461
- text?: string | undefined;
1462
- fontId?: string | undefined;
1463
- fontSize?: number | undefined;
1464
- fontColor?: string | undefined;
1465
- frame?: string | undefined;
1466
- }[] | undefined;
1467
- };
1468
- }[];
1469
- photoStrip: {
1470
- photoRefId: string;
1471
- url: string;
1472
- encryptId: string;
1473
- photoId: string;
1474
- photoMetadata: {
1475
- width: number;
1476
- height: number;
1477
- rotation: number;
1478
- id: string;
1479
- llx: number;
1480
- lly: number;
1481
- urx: number;
1482
- ury: number;
1483
- data: string | null;
1484
- title: string;
1485
- effect: string;
1486
- source: string;
1487
- uploadTime: string;
1488
- };
1489
- }[];
1490
- };
1491
- reportingData: {
1492
- properties: {
1493
- key: string;
1494
- value?: any;
1495
- }[];
1496
- };
1497
- }>;
1375
+ getJSON(format: Format): Promise<any>;
1498
1376
  logEvent(name: string, data?: EventContext): Promise<{
1499
1377
  name: string;
1500
1378
  context?: Record<string, unknown> | undefined;
@@ -2271,30 +2149,30 @@ declare const photoMetadataSchema: z.ZodObject<{
2271
2149
  rotation: z.ZodNumber;
2272
2150
  uploadTime: z.ZodString;
2273
2151
  }, "strip", z.ZodTypeAny, {
2152
+ id: string;
2153
+ title: string;
2274
2154
  width: number;
2275
2155
  height: number;
2276
2156
  rotation: number;
2277
- id: string;
2278
2157
  llx: number;
2279
2158
  lly: number;
2280
2159
  urx: number;
2281
2160
  ury: number;
2282
2161
  data: string | null;
2283
- title: string;
2284
2162
  effect: string;
2285
2163
  source: string;
2286
2164
  uploadTime: string;
2287
2165
  }, {
2166
+ id: string;
2167
+ title: string;
2288
2168
  width: number;
2289
2169
  height: number;
2290
2170
  rotation: number;
2291
- id: string;
2292
2171
  llx: number;
2293
2172
  lly: number;
2294
2173
  urx: number;
2295
2174
  ury: number;
2296
2175
  data: string | null;
2297
- title: string;
2298
2176
  effect: string;
2299
2177
  source: string;
2300
2178
  uploadTime: string;
@@ -2420,70 +2298,70 @@ declare const photoStripSchema: z.ZodObject<{
2420
2298
  rotation: z.ZodNumber;
2421
2299
  uploadTime: z.ZodString;
2422
2300
  }, "strip", z.ZodTypeAny, {
2301
+ id: string;
2302
+ title: string;
2423
2303
  width: number;
2424
2304
  height: number;
2425
2305
  rotation: number;
2426
- id: string;
2427
2306
  llx: number;
2428
2307
  lly: number;
2429
2308
  urx: number;
2430
2309
  ury: number;
2431
2310
  data: string | null;
2432
- title: string;
2433
2311
  effect: string;
2434
2312
  source: string;
2435
2313
  uploadTime: string;
2436
2314
  }, {
2315
+ id: string;
2316
+ title: string;
2437
2317
  width: number;
2438
2318
  height: number;
2439
2319
  rotation: number;
2440
- id: string;
2441
2320
  llx: number;
2442
2321
  lly: number;
2443
2322
  urx: number;
2444
2323
  ury: number;
2445
2324
  data: string | null;
2446
- title: string;
2447
2325
  effect: string;
2448
2326
  source: string;
2449
2327
  uploadTime: string;
2450
2328
  }>;
2451
2329
  }, "strip", z.ZodTypeAny, {
2452
- photoRefId: string;
2453
2330
  url: string;
2331
+ photoRefId: string;
2454
2332
  encryptId: string;
2455
2333
  photoId: string;
2456
2334
  photoMetadata: {
2335
+ id: string;
2336
+ title: string;
2457
2337
  width: number;
2458
2338
  height: number;
2459
2339
  rotation: number;
2460
- id: string;
2461
2340
  llx: number;
2462
2341
  lly: number;
2463
2342
  urx: number;
2464
2343
  ury: number;
2465
2344
  data: string | null;
2466
- title: string;
2467
2345
  effect: string;
2468
2346
  source: string;
2469
2347
  uploadTime: string;
2470
2348
  };
2471
2349
  }, {
2472
- photoRefId: string;
2473
2350
  url: string;
2351
+ photoRefId: string;
2474
2352
  encryptId: string;
2475
2353
  photoId: string;
2476
2354
  photoMetadata: {
2355
+ id: string;
2356
+ title: string;
2477
2357
  width: number;
2478
2358
  height: number;
2479
2359
  rotation: number;
2480
- id: string;
2481
2360
  llx: number;
2482
2361
  lly: number;
2483
2362
  urx: number;
2484
2363
  ury: number;
2485
2364
  data: string | null;
2486
- title: string;
2487
2365
  effect: string;
2488
2366
  source: string;
2489
2367
  uploadTime: string;
@@ -2513,7 +2391,7 @@ declare const reportingDataSchema: z.ZodObject<{
2513
2391
  }[];
2514
2392
  }>;
2515
2393
  type ReportingData = z.infer<typeof reportingDataSchema>;
2516
- declare const canvasSchema: z.ZodObject<{
2394
+ declare const sflyCanvasSchema: z.ZodObject<{
2517
2395
  backgroundId: z.ZodNullable<z.ZodString>;
2518
2396
  assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2519
2397
  type: z.ZodString;
@@ -2656,7 +2534,21 @@ declare const canvasSchema: z.ZodObject<{
2656
2534
  frame?: string | undefined;
2657
2535
  }[] | undefined;
2658
2536
  }>;
2659
- type Canvas = z.infer<typeof canvasSchema>;
2537
+ type SflyCanvas = z.infer<typeof sflyCanvasSchema>;
2538
+ declare const snapCanvasSchema: z.ZodObject<{
2539
+ surfaceNumber: z.ZodNumber;
2540
+ surfaceData: z.ZodRecord<z.ZodString, z.ZodAny>;
2541
+ version: z.ZodString;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ surfaceNumber: number;
2544
+ surfaceData: Record<string, any>;
2545
+ version: string;
2546
+ }, {
2547
+ surfaceNumber: number;
2548
+ surfaceData: Record<string, any>;
2549
+ version: string;
2550
+ }>;
2551
+ type SnapCanvas = z.infer<typeof snapCanvasSchema>;
2660
2552
  declare const pageSchema: z.ZodObject<{
2661
2553
  pageNum: z.ZodNumber;
2662
2554
  type: z.ZodString;
@@ -3093,70 +2985,70 @@ declare const magicShopBookSchema: z.ZodObject<{
3093
2985
  rotation: z.ZodNumber;
3094
2986
  uploadTime: z.ZodString;
3095
2987
  }, "strip", z.ZodTypeAny, {
2988
+ id: string;
2989
+ title: string;
3096
2990
  width: number;
3097
2991
  height: number;
3098
2992
  rotation: number;
3099
- id: string;
3100
2993
  llx: number;
3101
2994
  lly: number;
3102
2995
  urx: number;
3103
2996
  ury: number;
3104
2997
  data: string | null;
3105
- title: string;
3106
2998
  effect: string;
3107
2999
  source: string;
3108
3000
  uploadTime: string;
3109
3001
  }, {
3002
+ id: string;
3003
+ title: string;
3110
3004
  width: number;
3111
3005
  height: number;
3112
3006
  rotation: number;
3113
- id: string;
3114
3007
  llx: number;
3115
3008
  lly: number;
3116
3009
  urx: number;
3117
3010
  ury: number;
3118
3011
  data: string | null;
3119
- title: string;
3120
3012
  effect: string;
3121
3013
  source: string;
3122
3014
  uploadTime: string;
3123
3015
  }>;
3124
3016
  }, "strip", z.ZodTypeAny, {
3125
- photoRefId: string;
3126
3017
  url: string;
3018
+ photoRefId: string;
3127
3019
  encryptId: string;
3128
3020
  photoId: string;
3129
3021
  photoMetadata: {
3022
+ id: string;
3023
+ title: string;
3130
3024
  width: number;
3131
3025
  height: number;
3132
3026
  rotation: number;
3133
- id: string;
3134
3027
  llx: number;
3135
3028
  lly: number;
3136
3029
  urx: number;
3137
3030
  ury: number;
3138
3031
  data: string | null;
3139
- title: string;
3140
3032
  effect: string;
3141
3033
  source: string;
3142
3034
  uploadTime: string;
3143
3035
  };
3144
3036
  }, {
3145
- photoRefId: string;
3146
3037
  url: string;
3038
+ photoRefId: string;
3147
3039
  encryptId: string;
3148
3040
  photoId: string;
3149
3041
  photoMetadata: {
3042
+ id: string;
3043
+ title: string;
3150
3044
  width: number;
3151
3045
  height: number;
3152
3046
  rotation: number;
3153
- id: string;
3154
3047
  llx: number;
3155
3048
  lly: number;
3156
3049
  urx: number;
3157
3050
  ury: number;
3158
3051
  data: string | null;
3159
- title: string;
3160
3052
  effect: string;
3161
3053
  source: string;
3162
3054
  uploadTime: string;
@@ -3195,21 +3087,21 @@ declare const magicShopBookSchema: z.ZodObject<{
3195
3087
  };
3196
3088
  }[];
3197
3089
  photoStrip: {
3198
- photoRefId: string;
3199
3090
  url: string;
3091
+ photoRefId: string;
3200
3092
  encryptId: string;
3201
3093
  photoId: string;
3202
3094
  photoMetadata: {
3095
+ id: string;
3096
+ title: string;
3203
3097
  width: number;
3204
3098
  height: number;
3205
3099
  rotation: number;
3206
- id: string;
3207
3100
  llx: number;
3208
3101
  lly: number;
3209
3102
  urx: number;
3210
3103
  ury: number;
3211
3104
  data: string | null;
3212
- title: string;
3213
3105
  effect: string;
3214
3106
  source: string;
3215
3107
  uploadTime: string;
@@ -3248,21 +3140,21 @@ declare const magicShopBookSchema: z.ZodObject<{
3248
3140
  };
3249
3141
  }[];
3250
3142
  photoStrip: {
3251
- photoRefId: string;
3252
3143
  url: string;
3144
+ photoRefId: string;
3253
3145
  encryptId: string;
3254
3146
  photoId: string;
3255
3147
  photoMetadata: {
3148
+ id: string;
3149
+ title: string;
3256
3150
  width: number;
3257
3151
  height: number;
3258
3152
  rotation: number;
3259
- id: string;
3260
3153
  llx: number;
3261
3154
  lly: number;
3262
3155
  urx: number;
3263
3156
  ury: number;
3264
3157
  data: string | null;
3265
- title: string;
3266
3158
  effect: string;
3267
3159
  source: string;
3268
3160
  uploadTime: string;
@@ -3504,70 +3396,70 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3504
3396
  rotation: z.ZodNumber;
3505
3397
  uploadTime: z.ZodString;
3506
3398
  }, "strip", z.ZodTypeAny, {
3399
+ id: string;
3400
+ title: string;
3507
3401
  width: number;
3508
3402
  height: number;
3509
3403
  rotation: number;
3510
- id: string;
3511
3404
  llx: number;
3512
3405
  lly: number;
3513
3406
  urx: number;
3514
3407
  ury: number;
3515
3408
  data: string | null;
3516
- title: string;
3517
3409
  effect: string;
3518
3410
  source: string;
3519
3411
  uploadTime: string;
3520
3412
  }, {
3413
+ id: string;
3414
+ title: string;
3521
3415
  width: number;
3522
3416
  height: number;
3523
3417
  rotation: number;
3524
- id: string;
3525
3418
  llx: number;
3526
3419
  lly: number;
3527
3420
  urx: number;
3528
3421
  ury: number;
3529
3422
  data: string | null;
3530
- title: string;
3531
3423
  effect: string;
3532
3424
  source: string;
3533
3425
  uploadTime: string;
3534
3426
  }>;
3535
3427
  }, "strip", z.ZodTypeAny, {
3536
- photoRefId: string;
3537
3428
  url: string;
3429
+ photoRefId: string;
3538
3430
  encryptId: string;
3539
3431
  photoId: string;
3540
3432
  photoMetadata: {
3433
+ id: string;
3434
+ title: string;
3541
3435
  width: number;
3542
3436
  height: number;
3543
3437
  rotation: number;
3544
- id: string;
3545
3438
  llx: number;
3546
3439
  lly: number;
3547
3440
  urx: number;
3548
3441
  ury: number;
3549
3442
  data: string | null;
3550
- title: string;
3551
3443
  effect: string;
3552
3444
  source: string;
3553
3445
  uploadTime: string;
3554
3446
  };
3555
3447
  }, {
3556
- photoRefId: string;
3557
3448
  url: string;
3449
+ photoRefId: string;
3558
3450
  encryptId: string;
3559
3451
  photoId: string;
3560
3452
  photoMetadata: {
3453
+ id: string;
3454
+ title: string;
3561
3455
  width: number;
3562
3456
  height: number;
3563
3457
  rotation: number;
3564
- id: string;
3565
3458
  llx: number;
3566
3459
  lly: number;
3567
3460
  urx: number;
3568
3461
  ury: number;
3569
3462
  data: string | null;
3570
- title: string;
3571
3463
  effect: string;
3572
3464
  source: string;
3573
3465
  uploadTime: string;
@@ -3606,21 +3498,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3606
3498
  };
3607
3499
  }[];
3608
3500
  photoStrip: {
3609
- photoRefId: string;
3610
3501
  url: string;
3502
+ photoRefId: string;
3611
3503
  encryptId: string;
3612
3504
  photoId: string;
3613
3505
  photoMetadata: {
3506
+ id: string;
3507
+ title: string;
3614
3508
  width: number;
3615
3509
  height: number;
3616
3510
  rotation: number;
3617
- id: string;
3618
3511
  llx: number;
3619
3512
  lly: number;
3620
3513
  urx: number;
3621
3514
  ury: number;
3622
3515
  data: string | null;
3623
- title: string;
3624
3516
  effect: string;
3625
3517
  source: string;
3626
3518
  uploadTime: string;
@@ -3659,21 +3551,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3659
3551
  };
3660
3552
  }[];
3661
3553
  photoStrip: {
3662
- photoRefId: string;
3663
3554
  url: string;
3555
+ photoRefId: string;
3664
3556
  encryptId: string;
3665
3557
  photoId: string;
3666
3558
  photoMetadata: {
3559
+ id: string;
3560
+ title: string;
3667
3561
  width: number;
3668
3562
  height: number;
3669
3563
  rotation: number;
3670
- id: string;
3671
3564
  llx: number;
3672
3565
  lly: number;
3673
3566
  urx: number;
3674
3567
  ury: number;
3675
3568
  data: string | null;
3676
- title: string;
3677
3569
  effect: string;
3678
3570
  source: string;
3679
3571
  uploadTime: string;
@@ -3741,21 +3633,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3741
3633
  };
3742
3634
  }[];
3743
3635
  photoStrip: {
3744
- photoRefId: string;
3745
3636
  url: string;
3637
+ photoRefId: string;
3746
3638
  encryptId: string;
3747
3639
  photoId: string;
3748
3640
  photoMetadata: {
3641
+ id: string;
3642
+ title: string;
3749
3643
  width: number;
3750
3644
  height: number;
3751
3645
  rotation: number;
3752
- id: string;
3753
3646
  llx: number;
3754
3647
  lly: number;
3755
3648
  urx: number;
3756
3649
  ury: number;
3757
3650
  data: string | null;
3758
- title: string;
3759
3651
  effect: string;
3760
3652
  source: string;
3761
3653
  uploadTime: string;
@@ -3807,21 +3699,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3807
3699
  };
3808
3700
  }[];
3809
3701
  photoStrip: {
3810
- photoRefId: string;
3811
3702
  url: string;
3703
+ photoRefId: string;
3812
3704
  encryptId: string;
3813
3705
  photoId: string;
3814
3706
  photoMetadata: {
3707
+ id: string;
3708
+ title: string;
3815
3709
  width: number;
3816
3710
  height: number;
3817
3711
  rotation: number;
3818
- id: string;
3819
3712
  llx: number;
3820
3713
  lly: number;
3821
3714
  urx: number;
3822
3715
  ury: number;
3823
3716
  data: string | null;
3824
- title: string;
3825
3717
  effect: string;
3826
3718
  source: string;
3827
3719
  uploadTime: string;
@@ -3837,4 +3729,4 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3837
3729
  }>;
3838
3730
  type BookCreationRequest = z.infer<typeof bookCreationRequestSchema>;
3839
3731
 
3840
- export { type Asset, Book, type BookCreationRequest, BookDesignRequest, type BookDesignRequestProps, type BookProps, type BookReport, type BookSize, type Canvas, type CoverType, type DesignOptions, type DesignOptionsServer, DesignRequest, type DesignRequestEvent, type DesignRequestEventDetail, DesignRequestOptions, type DesignRequestProps, type EmbellishmentLevel, type Format, type Image, type ImageAssignment, type ImageDensity, type ImageDensityOption, type ImageDensityOptionServer, type ImageDensityOptions, type ImageDensityOptionsServer, type ImageFilteringLevel, ImageServer, Images, MagicBookClient, type MagicShopBook, type Occasion, type Page, type PageType, type PhotoMetadata, type PhotoStrip, type Position, type Property, type ReportingData, type State, type Style, type TextStickerLevel, assetSchema, bookCreationRequestSchema, bookDesignRequestSchema, bookPropsSchema, bookSizes, canSubmitDesignRequest, cancelledEventDetail, canvasSchema, coverTypes, designOptionsSchema, designOptionsServerSchema, embellishmentLevels, formats, imageAssignmentSchema, imageDensities, imageDensityOptionSchema, imageDensityOptionServerSchema, imageDensityOptionsSchema, imageDensityOptionsServerSchema, imageFilteringLevels, imageServerSchema, imageServerToImage, isDesignRequestSubmitted, magicShopBookSchema, occasions, pageSchema, pageTypes, photoMetadataSchema, photoStripSchema, positionSchema, propertySchema, reportingDataSchema, states, statesToCloseWS, statesToReport, styles, textStickerLevels, timeoutEventDetail };
3732
+ export { type Asset, Book, type BookCreationRequest, BookDesignRequest, type BookDesignRequestProps, type BookProps, type BookReport, type BookSize, type CoverType, type DesignOptions, type DesignOptionsServer, DesignRequest, type DesignRequestEvent, type DesignRequestEventDetail, DesignRequestOptions, type DesignRequestProps, type EmbellishmentLevel, type Format, type Image, type ImageAssignment, type ImageDensity, type ImageDensityOption, type ImageDensityOptionServer, type ImageDensityOptions, type ImageDensityOptionsServer, type ImageFilteringLevel, ImageServer, Images, MagicBookClient, type MagicShopBook, type Occasion, type Page, type PageType, type PhotoMetadata, type PhotoStrip, type Position, type Property, type ReportingData, type SflyCanvas, type SnapCanvas, type State, type Style, type SurfaceCategoryName, type TextStickerLevel, assetSchema, bookCreationRequestSchema, bookDesignRequestSchema, bookPropsSchema, bookSizes, canSubmitDesignRequest, cancelledEventDetail, coverTypes, designOptionsSchema, designOptionsServerSchema, embellishmentLevels, formats, imageAssignmentSchema, imageDensities, imageDensityOptionSchema, imageDensityOptionServerSchema, imageDensityOptionsSchema, imageDensityOptionsServerSchema, imageFilteringLevels, imageServerSchema, imageServerToImage, isDesignRequestSubmitted, magicShopBookSchema, occasions, pageSchema, pageTypes, photoMetadataSchema, photoStripSchema, positionSchema, propertySchema, reportingDataSchema, sflyCanvasSchema, snapCanvasSchema, states, statesToCloseWS, statesToReport, styles, surfaceCategoryNames, textStickerLevels, timeoutEventDetail };