@magiclabs.ai/magicbook-client 0.7.6 → 0.7.8-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
@@ -3,476 +3,9 @@ import { z } from 'zod';
3
3
  declare const eventContextSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4
4
  type EventContext = z.infer<typeof eventContextSchema>;
5
5
 
6
- declare class BooksEndpoints {
7
- private readonly engineAPI;
8
- constructor(engineAPI: EngineAPI);
9
- create(book: Partial<Book>): Promise<Book>;
10
- retrieve(bookId: string): Promise<Book>;
11
- update(bookId: string, book: Partial<Book>): Promise<Book>;
12
- design(bookId: string): Promise<Book>;
13
- cancel(bookId: string): Promise<Book>;
14
- report(bookId: string, report: BookReport): Promise<void>;
15
- delete(bookId: string): Promise<void>;
16
- retrieveGalleon(bookId: string): Promise<{
17
- title: string;
18
- binding: string;
19
- coverSpecId: string;
20
- styleId: number;
21
- userId: string;
22
- magicShopBook: {
23
- pages: {
24
- type: string;
25
- pageNum: number;
26
- canvas: {
27
- backgroundId: string | null;
28
- assets?: {
29
- type: string;
30
- position: {
31
- x: number;
32
- y: number;
33
- rotation: number;
34
- width?: number | undefined;
35
- height?: number | undefined;
36
- };
37
- seqNum: number;
38
- z: number;
39
- imageAssignment?: {
40
- photoRefId: string;
41
- finalCrop: number[];
42
- } | undefined;
43
- id?: string | undefined;
44
- horizJustification?: string | undefined;
45
- vertJustification?: string | null | undefined;
46
- text?: string | undefined;
47
- fontId?: string | undefined;
48
- fontSize?: number | undefined;
49
- fontColor?: string | undefined;
50
- frame?: string | undefined;
51
- }[] | undefined;
52
- };
53
- }[];
54
- photoStrip: {
55
- photoRefId: string;
56
- url: string;
57
- encryptId: string;
58
- photoId: string;
59
- photoMetadata: {
60
- data: string | null;
61
- width: number;
62
- height: number;
63
- rotation: number;
64
- id: string;
65
- llx: number;
66
- lly: number;
67
- urx: number;
68
- ury: number;
69
- title: string;
70
- effect: string;
71
- source: string;
72
- uploadTime: string;
73
- };
74
- }[];
75
- };
76
- reportingData: {
77
- properties: {
78
- key: string;
79
- value?: any;
80
- }[];
81
- };
82
- }>;
83
- }
84
-
85
- declare class DesignOptionsEndpoints {
86
- private readonly engineAPI;
87
- constructor(engineAPI: EngineAPI);
88
- retrieve(bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel): Promise<{
89
- densities: {
90
- low: {
91
- max_page_count: number;
92
- min_page_count: number;
93
- max_image_count: number;
94
- avg_image_count: number;
95
- min_image_count: number;
96
- };
97
- medium: {
98
- max_page_count: number;
99
- min_page_count: number;
100
- max_image_count: number;
101
- avg_image_count: number;
102
- min_image_count: number;
103
- };
104
- high: {
105
- max_page_count: number;
106
- min_page_count: number;
107
- max_image_count: number;
108
- avg_image_count: number;
109
- min_image_count: number;
110
- };
111
- };
112
- }>;
113
- }
114
-
115
- declare class EventsEndpoints {
116
- private readonly engineAPI;
117
- constructor(engineAPI: EngineAPI);
118
- createBookEvent(bookId: string, name: string, data?: EventContext): Promise<{
119
- name: string;
120
- context?: Record<string, unknown> | undefined;
121
- }>;
122
- }
123
-
124
- type CallProps = {
125
- path: string;
126
- options?: RequestInit;
127
- apiKey?: string;
128
- };
129
- declare class Fetcher {
130
- baseUrl: URL;
131
- options: RequestInit;
132
- constructor(baseUrl: string, options?: RequestInit | undefined);
133
- call(props: CallProps): Promise<any>;
134
- cleanUrl(url: string): string;
135
- }
136
-
137
- declare class ImagesEndpoints {
138
- private readonly engineAPI;
139
- constructor(engineAPI: EngineAPI);
140
- list(bookId: string): Promise<{
141
- width: number;
142
- height: number;
143
- url: string;
144
- handle: string;
145
- orientation: number;
146
- taken_at: string;
147
- filename: string;
148
- id?: string | undefined;
149
- camera_make?: string | undefined;
150
- camera?: string | undefined;
151
- }[]>;
152
- retrieve(imageId: string, bookId: string): Promise<{
153
- width: number;
154
- height: number;
155
- url: string;
156
- handle: string;
157
- orientation: number;
158
- taken_at: string;
159
- filename: string;
160
- id?: string | undefined;
161
- camera_make?: string | undefined;
162
- camera?: string | undefined;
163
- }>;
164
- update(imageId: string, bookId: string, image: ImageServer): Promise<{
165
- width: number;
166
- height: number;
167
- url: string;
168
- handle: string;
169
- orientation: number;
170
- taken_at: string;
171
- filename: string;
172
- id?: string | undefined;
173
- camera_make?: string | undefined;
174
- camera?: string | undefined;
175
- }>;
176
- delete(imageId: string, bookId: string): Promise<void>;
177
- addToBook(bookId: string, image: ImageServer): Promise<{
178
- width: number;
179
- height: number;
180
- url: string;
181
- handle: string;
182
- orientation: number;
183
- taken_at: string;
184
- filename: string;
185
- id?: string | undefined;
186
- camera_make?: string | undefined;
187
- camera?: string | undefined;
188
- }>;
189
- }
190
-
191
- declare const spreadServerSchema: z.ZodObject<{
192
- id: z.ZodOptional<z.ZodString>;
193
- book_id: z.ZodString;
194
- state: z.ZodString;
195
- spread_type: z.ZodString;
196
- width: z.ZodOptional<z.ZodNumber>;
197
- height: z.ZodOptional<z.ZodNumber>;
198
- sequence: z.ZodNumber;
199
- wells: z.ZodArray<z.ZodUnknown, "many">;
200
- background: z.ZodUnknown;
201
- laid_out_at: z.ZodNullable<z.ZodString>;
202
- embellished_at: z.ZodNullable<z.ZodString>;
203
- polished_at: z.ZodNullable<z.ZodString>;
204
- metadata: z.ZodUnknown;
205
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
- }, "strip", z.ZodTypeAny, {
207
- state: string;
208
- book_id: string;
209
- spread_type: string;
210
- sequence: number;
211
- wells: unknown[];
212
- laid_out_at: string | null;
213
- embellished_at: string | null;
214
- polished_at: string | null;
215
- id?: string | undefined;
216
- width?: number | undefined;
217
- height?: number | undefined;
218
- background?: unknown;
219
- metadata?: unknown;
220
- url?: string | null | undefined;
221
- }, {
222
- state: string;
223
- book_id: string;
224
- spread_type: string;
225
- sequence: number;
226
- wells: unknown[];
227
- laid_out_at: string | null;
228
- embellished_at: string | null;
229
- polished_at: string | null;
230
- id?: string | undefined;
231
- width?: number | undefined;
232
- height?: number | undefined;
233
- background?: unknown;
234
- metadata?: unknown;
235
- url?: string | null | undefined;
236
- }>;
237
- type SpreadServer = z.infer<typeof spreadServerSchema>;
238
-
239
- declare class SpreadsEndpoints {
240
- private readonly engineAPI;
241
- constructor(engineAPI: EngineAPI);
242
- list(bookId: string): Promise<{
243
- state: string;
244
- book_id: string;
245
- spread_type: string;
246
- sequence: number;
247
- wells: unknown[];
248
- laid_out_at: string | null;
249
- embellished_at: string | null;
250
- polished_at: string | null;
251
- id?: string | undefined;
252
- width?: number | undefined;
253
- height?: number | undefined;
254
- background?: unknown;
255
- metadata?: unknown;
256
- url?: string | null | undefined;
257
- }[]>;
258
- create(bookId: string, spread: SpreadServer): Promise<{
259
- state: string;
260
- book_id: string;
261
- spread_type: string;
262
- sequence: number;
263
- wells: unknown[];
264
- laid_out_at: string | null;
265
- embellished_at: string | null;
266
- polished_at: string | null;
267
- id?: string | undefined;
268
- width?: number | undefined;
269
- height?: number | undefined;
270
- background?: unknown;
271
- metadata?: unknown;
272
- url?: string | null | undefined;
273
- }>;
274
- retrieve(spreadId: string, bookId: string): Promise<{
275
- state: string;
276
- book_id: string;
277
- spread_type: string;
278
- sequence: number;
279
- wells: unknown[];
280
- laid_out_at: string | null;
281
- embellished_at: string | null;
282
- polished_at: string | null;
283
- id?: string | undefined;
284
- width?: number | undefined;
285
- height?: number | undefined;
286
- background?: unknown;
287
- metadata?: unknown;
288
- url?: string | null | undefined;
289
- }>;
290
- update(spreadId: string, bookId: string, spread: SpreadServer): Promise<{
291
- state: string;
292
- book_id: string;
293
- spread_type: string;
294
- sequence: number;
295
- wells: unknown[];
296
- laid_out_at: string | null;
297
- embellished_at: string | null;
298
- polished_at: string | null;
299
- id?: string | undefined;
300
- width?: number | undefined;
301
- height?: number | undefined;
302
- background?: unknown;
303
- metadata?: unknown;
304
- url?: string | null | undefined;
305
- }>;
306
- delete(spreadId: string, bookId: string): Promise<void>;
307
- layouts(bookId: string, page: number): Promise<{
308
- backgroundId: string | null;
309
- assets?: {
310
- type: string;
311
- position: {
312
- x: number;
313
- y: number;
314
- rotation: number;
315
- width?: number | undefined;
316
- height?: number | undefined;
317
- };
318
- seqNum: number;
319
- z: number;
320
- imageAssignment?: {
321
- photoRefId: string;
322
- finalCrop: number[];
323
- } | undefined;
324
- id?: string | undefined;
325
- horizJustification?: string | undefined;
326
- vertJustification?: string | null | undefined;
327
- text?: string | undefined;
328
- fontId?: string | undefined;
329
- fontSize?: number | undefined;
330
- fontColor?: string | undefined;
331
- frame?: string | undefined;
332
- }[] | undefined;
333
- }[]>;
334
- }
335
-
336
- declare class StoryboardItemsEndpoints {
337
- private readonly engineAPI;
338
- constructor(engineAPI: EngineAPI);
339
- list(bookId: string): Promise<{
340
- id: string;
341
- book_id: string;
342
- sequence: number;
343
- similarity: number;
344
- duplicate: boolean;
345
- selected: boolean;
346
- surface_weight: number;
347
- scene: number;
348
- subscene: number;
349
- image: {
350
- width: number;
351
- height: number;
352
- id: string;
353
- url: string;
354
- taken_at: number;
355
- category: string;
356
- aesthetic_score: number;
357
- faces: {
358
- score: number;
359
- bounding_box: {
360
- x: number;
361
- y: number;
362
- width: number;
363
- height: number;
364
- };
365
- size: number;
366
- eyes_open_score: number;
367
- smile_score: number;
368
- facing_camera_score: number;
369
- }[];
370
- roi: {
371
- x: number;
372
- y: number;
373
- width: number;
374
- height: number;
375
- };
376
- };
377
- front_cover?: boolean | undefined;
378
- back_cover?: boolean | undefined;
379
- spine_break?: boolean | undefined;
380
- }[]>;
381
- }
382
-
383
- declare class EngineAPI {
384
- baseUrl: URL;
385
- apiKey: string;
386
- fetcher: Fetcher;
387
- constructor(baseUrl: string, apiKey: string);
388
- readonly books: BooksEndpoints;
389
- readonly designOptions: DesignOptionsEndpoints;
390
- readonly events: EventsEndpoints;
391
- readonly images: ImagesEndpoints;
392
- readonly storyboardItems: StoryboardItemsEndpoints;
393
- readonly spreads: SpreadsEndpoints;
394
- }
395
-
396
- declare class MagicBookClient {
397
- private readonly apiKey;
398
- private readonly apiHost;
399
- readonly webSocketHost: string;
400
- engineAPI: EngineAPI;
401
- constructor(apiKey: string, apiHost?: string, webSocketHost?: string);
402
- createDesignRequest(designRequestProps: DesignRequestProps): Promise<DesignRequest>;
403
- }
404
-
405
- type Image = {
406
- handle: string;
407
- url: string;
408
- width: number;
409
- height: number;
410
- rotation: number;
411
- captureTime: string;
412
- cameraMake?: string;
413
- cameraModel?: string;
414
- filename: string;
415
- };
416
- declare class Images {
417
- private readonly client;
418
- private parentId;
419
- private images;
420
- length: number;
421
- designRequestState: State;
422
- constructor(client: MagicBookClient, parentId: string, designRequestState: State);
423
- add(image: Image): Promise<number>;
424
- }
425
- declare const imageServerSchema: z.ZodObject<{
426
- id: z.ZodOptional<z.ZodString>;
427
- handle: z.ZodString;
428
- url: z.ZodString;
429
- width: z.ZodNumber;
430
- height: z.ZodNumber;
431
- orientation: z.ZodNumber;
432
- taken_at: z.ZodString;
433
- camera_make: z.ZodOptional<z.ZodString>;
434
- camera: z.ZodOptional<z.ZodString>;
435
- filename: z.ZodString;
436
- }, "strip", z.ZodTypeAny, {
437
- width: number;
438
- height: number;
439
- url: string;
440
- handle: string;
441
- orientation: number;
442
- taken_at: string;
443
- filename: string;
444
- id?: string | undefined;
445
- camera_make?: string | undefined;
446
- camera?: string | undefined;
447
- }, {
448
- width: number;
449
- height: number;
450
- url: string;
451
- handle: string;
452
- orientation: number;
453
- taken_at: string;
454
- filename: string;
455
- id?: string | undefined;
456
- camera_make?: string | undefined;
457
- camera?: string | undefined;
458
- }>;
459
- declare class ImageServer {
460
- handle: string;
461
- url: string;
462
- width: number;
463
- height: number;
464
- orientation: number;
465
- taken_at: string;
466
- camera_make?: string;
467
- camera?: string;
468
- filename: string;
469
- constructor(image: Image);
470
- }
471
- declare function imageServerToImage(imageServer: ImageServer): Image;
472
-
473
6
  declare const states: readonly ["new", "ingesting", "submitted", "storyboarding", "deduplication", "image-selection", "designing", "layouting", "embellishing", "polishing", "ready", "timeout", "error", "cancelled"];
474
- declare const statesToCloseWS: ReadonlyArray<typeof states[number]>;
475
- declare const statesToReport: ReadonlyArray<typeof states[number]>;
7
+ declare const statesToCloseWS: ReadonlyArray<(typeof states)[number]>;
8
+ declare const statesToReport: ReadonlyArray<(typeof states)[number]>;
476
9
  declare const isDesignRequestSubmitted: (state: string) => boolean;
477
10
  declare const canSubmitDesignRequest: (state: string) => boolean;
478
11
  declare const occasions: readonly ["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"];
@@ -480,526 +13,1298 @@ declare const styles: {
480
13
  1005: {
481
14
  slug: string;
482
15
  };
483
- 1101: {
16
+ 1101: {
17
+ slug: string;
18
+ };
19
+ 1103: {
20
+ slug: string;
21
+ };
22
+ 1201: {
23
+ slug: string;
24
+ };
25
+ 3001: {
26
+ slug: string;
27
+ };
28
+ 4034: {
29
+ slug: string;
30
+ };
31
+ 4035: {
32
+ slug: string;
33
+ };
34
+ 5017: {
35
+ slug: string;
36
+ };
37
+ 5033: {
38
+ slug: string;
39
+ };
40
+ 5079: {
41
+ slug: string;
42
+ };
43
+ 5082: {
44
+ slug: string;
45
+ };
46
+ 5085: {
47
+ slug: string;
48
+ };
49
+ 5091: {
50
+ slug: string;
51
+ };
52
+ 5118: {
53
+ slug: string;
54
+ };
55
+ 5120: {
56
+ slug: string;
57
+ };
58
+ 5121: {
59
+ slug: string;
60
+ };
61
+ 5122: {
62
+ slug: string;
63
+ };
64
+ 5127: {
65
+ slug: string;
66
+ };
67
+ 5134: {
68
+ slug: string;
69
+ };
70
+ 5138: {
71
+ slug: string;
72
+ };
73
+ 5142: {
74
+ slug: string;
75
+ };
76
+ 5144: {
77
+ slug: string;
78
+ };
79
+ 5146: {
80
+ slug: string;
81
+ };
82
+ 5149: {
83
+ slug: string;
84
+ };
85
+ 5150: {
86
+ slug: string;
87
+ };
88
+ 5155: {
89
+ slug: string;
90
+ };
91
+ 5157: {
92
+ slug: string;
93
+ };
94
+ 5161: {
95
+ slug: string;
96
+ };
97
+ 5165: {
98
+ slug: string;
99
+ };
100
+ 5167: {
101
+ slug: string;
102
+ };
103
+ 5168: {
104
+ slug: string;
105
+ };
106
+ 5171: {
107
+ slug: string;
108
+ };
109
+ 5174: {
110
+ slug: string;
111
+ };
112
+ 5183: {
113
+ slug: string;
114
+ };
115
+ 5188: {
116
+ slug: string;
117
+ };
118
+ 5189: {
119
+ slug: string;
120
+ };
121
+ 5213: {
484
122
  slug: string;
485
123
  };
486
- 1103: {
124
+ 5218: {
487
125
  slug: string;
488
126
  };
489
- 1201: {
127
+ 5219: {
490
128
  slug: string;
491
129
  };
492
- 3001: {
130
+ 5220: {
493
131
  slug: string;
494
132
  };
495
- 4034: {
133
+ 5226: {
496
134
  slug: string;
497
135
  };
498
- 4035: {
136
+ 5228: {
499
137
  slug: string;
500
138
  };
501
- 5017: {
139
+ 5238: {
502
140
  slug: string;
503
141
  };
504
- 5033: {
142
+ 5242: {
505
143
  slug: string;
506
144
  };
507
- 5079: {
145
+ 5250: {
508
146
  slug: string;
509
147
  };
510
- 5082: {
148
+ 5255: {
511
149
  slug: string;
512
150
  };
513
- 5085: {
151
+ 5258: {
514
152
  slug: string;
515
153
  };
516
- 5091: {
154
+ 5259: {
517
155
  slug: string;
518
156
  };
519
- 5118: {
157
+ 5261: {
520
158
  slug: string;
521
159
  };
522
- 5120: {
160
+ 5262: {
523
161
  slug: string;
524
162
  };
525
- 5121: {
163
+ 5265: {
526
164
  slug: string;
527
165
  };
528
- 5122: {
166
+ 5266: {
529
167
  slug: string;
530
168
  };
531
- 5127: {
169
+ 5272: {
532
170
  slug: string;
533
171
  };
534
- 5134: {
172
+ 5274: {
535
173
  slug: string;
536
174
  };
537
- 5138: {
175
+ 5278: {
538
176
  slug: string;
539
177
  };
540
- 5142: {
178
+ 5292: {
541
179
  slug: string;
542
180
  };
543
- 5144: {
181
+ 5297: {
544
182
  slug: string;
545
183
  };
546
- 5146: {
184
+ 5299: {
547
185
  slug: string;
548
186
  };
549
- 5149: {
187
+ 5304: {
550
188
  slug: string;
551
189
  };
552
- 5150: {
190
+ 5305: {
553
191
  slug: string;
554
192
  };
555
- 5155: {
193
+ 5308: {
556
194
  slug: string;
557
195
  };
558
- 5157: {
196
+ 6000: {
559
197
  slug: string;
560
198
  };
561
- 5161: {
199
+ 6001: {
562
200
  slug: string;
563
201
  };
564
- 5165: {
202
+ 6002: {
565
203
  slug: string;
566
204
  };
567
- 5167: {
205
+ 6003: {
206
+ slug: string;
207
+ };
208
+ 6004: {
209
+ slug: string;
210
+ };
211
+ 6005: {
212
+ slug: string;
213
+ };
214
+ 6006: {
215
+ slug: string;
216
+ };
217
+ 6007: {
218
+ slug: string;
219
+ };
220
+ 6008: {
221
+ slug: string;
222
+ };
223
+ 6009: {
224
+ slug: string;
225
+ };
226
+ 6010: {
227
+ slug: string;
228
+ };
229
+ 6011: {
230
+ slug: string;
231
+ };
232
+ 6012: {
233
+ slug: string;
234
+ };
235
+ 6013: {
236
+ slug: string;
237
+ };
238
+ 6014: {
239
+ slug: string;
240
+ };
241
+ 6015: {
242
+ slug: string;
243
+ };
244
+ 6016: {
245
+ slug: string;
246
+ };
247
+ 6017: {
248
+ slug: string;
249
+ };
250
+ 6018: {
251
+ slug: string;
252
+ };
253
+ 6019: {
254
+ slug: string;
255
+ };
256
+ 6020: {
257
+ slug: string;
258
+ };
259
+ 6021: {
260
+ slug: string;
261
+ };
262
+ 6022: {
263
+ slug: string;
264
+ };
265
+ 6023: {
266
+ slug: string;
267
+ };
268
+ 6024: {
269
+ slug: string;
270
+ };
271
+ 6025: {
272
+ slug: string;
273
+ };
274
+ 6026: {
275
+ slug: string;
276
+ };
277
+ 6027: {
278
+ slug: string;
279
+ };
280
+ 6028: {
281
+ slug: string;
282
+ };
283
+ 6030: {
284
+ slug: string;
285
+ };
286
+ 6031: {
287
+ slug: string;
288
+ };
289
+ 6032: {
290
+ slug: string;
291
+ };
292
+ 6033: {
293
+ slug: string;
294
+ };
295
+ 6034: {
296
+ slug: string;
297
+ };
298
+ 6035: {
299
+ slug: string;
300
+ };
301
+ 6036: {
302
+ slug: string;
303
+ };
304
+ 6038: {
305
+ slug: string;
306
+ };
307
+ 6039: {
308
+ slug: string;
309
+ };
310
+ 6040: {
311
+ slug: string;
312
+ };
313
+ 6041: {
314
+ slug: string;
315
+ };
316
+ 6042: {
317
+ slug: string;
318
+ };
319
+ 6043: {
320
+ slug: string;
321
+ };
322
+ 6044: {
323
+ slug: string;
324
+ };
325
+ 6045: {
326
+ slug: string;
327
+ };
328
+ 6047: {
329
+ slug: string;
330
+ };
331
+ 6057: {
332
+ slug: string;
333
+ };
334
+ 6052: {
335
+ slug: string;
336
+ };
337
+ 6054: {
338
+ slug: string;
339
+ };
340
+ 6051: {
341
+ slug: string;
342
+ };
343
+ 6058: {
344
+ slug: string;
345
+ };
346
+ 6056: {
347
+ slug: string;
348
+ };
349
+ 6055: {
350
+ slug: string;
351
+ };
352
+ 6046: {
353
+ slug: string;
354
+ };
355
+ 6053: {
356
+ slug: string;
357
+ };
358
+ 6050: {
359
+ slug: string;
360
+ };
361
+ 6063: {
362
+ slug: string;
363
+ };
364
+ 6060: {
365
+ slug: string;
366
+ };
367
+ 6059: {
368
+ slug: string;
369
+ };
370
+ 6048: {
371
+ slug: string;
372
+ };
373
+ 6049: {
374
+ slug: string;
375
+ };
376
+ 6037: {
377
+ slug: string;
378
+ };
379
+ 6061: {
380
+ slug: string;
381
+ };
382
+ 6068: {
383
+ slug: string;
384
+ };
385
+ 6067: {
386
+ slug: string;
387
+ };
388
+ 6065: {
389
+ slug: string;
390
+ };
391
+ 6066: {
392
+ slug: string;
393
+ };
394
+ 6064: {
395
+ slug: string;
396
+ };
397
+ 6071: {
398
+ slug: string;
399
+ };
400
+ 6072: {
401
+ slug: string;
402
+ };
403
+ 6073: {
568
404
  slug: string;
569
405
  };
570
- 5168: {
406
+ 6074: {
571
407
  slug: string;
572
408
  };
573
- 5171: {
409
+ 6085: {
574
410
  slug: string;
575
411
  };
576
- 5174: {
412
+ 6084: {
577
413
  slug: string;
578
414
  };
579
- 5183: {
415
+ 5402: {
580
416
  slug: string;
581
417
  };
582
- 5188: {
418
+ 6083: {
583
419
  slug: string;
584
420
  };
585
- 5189: {
421
+ 6082: {
586
422
  slug: string;
587
423
  };
588
- 5213: {
424
+ 6086: {
589
425
  slug: string;
590
426
  };
591
- 5218: {
427
+ 6101: {
592
428
  slug: string;
593
429
  };
594
- 5219: {
430
+ 6103: {
595
431
  slug: string;
596
432
  };
597
- 5220: {
433
+ 6104: {
598
434
  slug: string;
599
435
  };
600
- 5226: {
436
+ 6105: {
601
437
  slug: string;
602
438
  };
603
- 5228: {
439
+ 6116: {
604
440
  slug: string;
605
441
  };
606
- 5238: {
442
+ 6117: {
607
443
  slug: string;
608
444
  };
609
- 5242: {
445
+ 6118: {
610
446
  slug: string;
611
447
  };
612
- 5250: {
448
+ 6120: {
613
449
  slug: string;
614
450
  };
615
- 5255: {
451
+ 6121: {
616
452
  slug: string;
617
453
  };
618
- 5258: {
454
+ 6124: {
619
455
  slug: string;
620
456
  };
621
- 5259: {
457
+ 6125: {
622
458
  slug: string;
623
459
  };
624
- 5261: {
460
+ 6126: {
625
461
  slug: string;
626
462
  };
627
- 5262: {
463
+ 6132: {
628
464
  slug: string;
629
465
  };
630
- 5265: {
466
+ 6133: {
631
467
  slug: string;
632
468
  };
633
- 5266: {
469
+ 6137: {
634
470
  slug: string;
635
471
  };
636
- 5272: {
472
+ 6141: {
637
473
  slug: string;
638
474
  };
639
- 5274: {
475
+ 6144: {
640
476
  slug: string;
641
477
  };
642
- 5278: {
478
+ 6143: {
643
479
  slug: string;
644
480
  };
645
- 5292: {
481
+ 6146: {
646
482
  slug: string;
647
483
  };
648
- 5297: {
484
+ 6148: {
649
485
  slug: string;
650
486
  };
651
- 5299: {
487
+ 6151: {
652
488
  slug: string;
653
489
  };
654
- 5304: {
490
+ 6152: {
655
491
  slug: string;
656
492
  };
657
- 5305: {
493
+ 6153: {
658
494
  slug: string;
659
495
  };
660
- 5308: {
496
+ 6062: {
661
497
  slug: string;
662
498
  };
663
- 6000: {
499
+ 6075: {
664
500
  slug: string;
665
501
  };
666
- 6001: {
502
+ 6078: {
667
503
  slug: string;
668
504
  };
669
- 6002: {
505
+ 6089: {
670
506
  slug: string;
671
507
  };
672
- 6003: {
508
+ 6096: {
673
509
  slug: string;
674
510
  };
675
- 6004: {
511
+ 6097: {
676
512
  slug: string;
677
513
  };
678
- 6005: {
514
+ 6098: {
679
515
  slug: string;
680
516
  };
681
- 6006: {
517
+ 6099: {
682
518
  slug: string;
683
519
  };
684
- 6007: {
520
+ 6159: {
685
521
  slug: string;
686
522
  };
687
- 6008: {
523
+ 6156: {
688
524
  slug: string;
689
525
  };
690
- 6009: {
526
+ be5f79d7525f4717844db77a2f1b5e50: {
691
527
  slug: string;
692
528
  };
693
- 6010: {
529
+ '519bf5f2b6734103a9a359469be4961b': {
694
530
  slug: string;
695
531
  };
696
- 6011: {
532
+ '029a2ebd65b448bf93753c813b7b7363': {
697
533
  slug: string;
698
534
  };
699
- 6012: {
535
+ '16d0d436594b4171bd9688876a85c9c1': {
700
536
  slug: string;
701
537
  };
702
- 6013: {
538
+ '5b95e1d678584558b2c3397ab996da7b': {
703
539
  slug: string;
704
540
  };
705
- 6014: {
541
+ a2c088e32541429ba8e5e15d09991264: {
706
542
  slug: string;
707
543
  };
708
- 6015: {
544
+ '0ddec2b965094c8ea03d669e771ff1a6': {
709
545
  slug: string;
710
546
  };
711
- 6016: {
547
+ '339699fedd3743f69c5b05587fbfd41a': {
712
548
  slug: string;
713
549
  };
714
- 6017: {
550
+ '091f9a6a83c349b2a9732177d89f8664': {
715
551
  slug: string;
716
552
  };
717
- 6018: {
553
+ e768ec11406545809ca9598be3bda88c: {
718
554
  slug: string;
719
555
  };
720
- 6019: {
556
+ '0c55a3eb5cc6414c9f2570886132d331': {
721
557
  slug: string;
722
558
  };
723
- 6020: {
559
+ '9c49df50d76b4789834ca7abaabe2bc6': {
724
560
  slug: string;
725
561
  };
726
- 6021: {
562
+ fd7cf7c4dc244705ad391334d76f7229: {
727
563
  slug: string;
728
564
  };
729
- 6022: {
565
+ '363ceab4906b47a09dd287f53dc1d30f': {
730
566
  slug: string;
731
567
  };
732
- 6023: {
568
+ e47017576d0e451180ff4591d2aee2fa: {
733
569
  slug: string;
734
570
  };
735
- 6024: {
571
+ d9743da5f46843aab84b1f90ff776ee0: {
736
572
  slug: string;
737
573
  };
738
- 6025: {
574
+ '13039c15c81b4e50af5e39cd99f4e274': {
739
575
  slug: string;
740
576
  };
741
- 6026: {
577
+ '0c98757783874104a488a1a88747344d': {
742
578
  slug: string;
743
579
  };
744
- 6027: {
580
+ '5b0d80d6ca164919b7ee558c0bc2537b': {
745
581
  slug: string;
746
582
  };
747
- 6028: {
583
+ eb734aa7c87a4db1ac9695e935f13489: {
748
584
  slug: string;
749
585
  };
750
- 6030: {
586
+ '7ed9132a96484ed2b200cf30e73cf049': {
751
587
  slug: string;
752
588
  };
753
- 6031: {
589
+ '3e15106389764a3cb2b6a6c29c065993': {
754
590
  slug: string;
755
591
  };
756
- 6032: {
592
+ '47f9e28d811842a5870c74bb4c6b3608': {
757
593
  slug: string;
758
594
  };
759
- 6033: {
595
+ bef3d3bc49f3476aa6f39ad073294a04: {
760
596
  slug: string;
761
597
  };
762
- 6034: {
598
+ '496138703d5346bd9678a2fa487b54fd': {
763
599
  slug: string;
764
600
  };
765
- 6035: {
601
+ '303773eee9934e8ba9f676b339c84d39': {
766
602
  slug: string;
767
603
  };
768
- 6036: {
604
+ '02c52e4cdccd40b0b99cf2215a6b8fe1': {
769
605
  slug: string;
770
606
  };
771
- 6038: {
607
+ c59f05e866344332b2953199fd2972fa: {
772
608
  slug: string;
773
609
  };
774
- 6039: {
610
+ '5a2d025aaa3746b2b047daa6206ba8ad': {
775
611
  slug: string;
776
612
  };
777
- 6040: {
613
+ '1c8784e76020435d88ddab7bc8d72cae': {
778
614
  slug: string;
779
615
  };
780
- 6041: {
616
+ '1735277701d6483e9934074f25053f3a': {
781
617
  slug: string;
782
618
  };
783
- 6042: {
619
+ '9c35a7f890204c38adb4255571377114': {
784
620
  slug: string;
785
621
  };
786
- 6043: {
622
+ '9c946c20f0dc45adb3f85735690f3395': {
787
623
  slug: string;
788
624
  };
789
- 6044: {
625
+ c216373996d945c186cc6db5a53e10b1: {
790
626
  slug: string;
791
627
  };
792
- 6045: {
628
+ '6f7cd5c4e4e247f2bdf7c44ace0fdad5': {
793
629
  slug: string;
794
630
  };
795
- 6047: {
631
+ '7eae47a7cbd743d4a47ca94f7a6b87a7': {
796
632
  slug: string;
797
633
  };
798
- 6057: {
634
+ ac7a649cbd27433c9d0b405f34ff29f5: {
799
635
  slug: string;
800
636
  };
801
- 6052: {
637
+ '3aa989376bc5414eb2a35f2cb930f57c': {
802
638
  slug: string;
803
639
  };
804
- 6054: {
640
+ d86767aacb4f464892702ed3ffac1a98: {
805
641
  slug: string;
806
642
  };
807
- 6051: {
643
+ c5d1654a989d4f2f87594e486239e77b: {
808
644
  slug: string;
809
645
  };
810
- 6058: {
646
+ '73e54769af5f4943a8403c6a5e38f5fb': {
811
647
  slug: string;
812
648
  };
813
- 6056: {
649
+ '7d15aef8b54d41ee82a99d327d571020': {
814
650
  slug: string;
815
651
  };
816
- 6055: {
652
+ '46594aace0ca42b1bdd086d1b8ac0ad4': {
817
653
  slug: string;
818
654
  };
819
- 6046: {
655
+ '77c78fbe2b4b4c7fb37e34a9515912d2': {
820
656
  slug: string;
821
657
  };
822
- 6053: {
658
+ '659893fcc6c24fef9ea1a3a8ccf2539e': {
823
659
  slug: string;
824
660
  };
825
- 6050: {
661
+ '0f1182fcc18c428fb7c3d80c5a637c3b': {
826
662
  slug: string;
827
663
  };
828
- 6063: {
664
+ '54b7a8ca59774060835fdd48653dba9a': {
829
665
  slug: string;
830
666
  };
831
- 6060: {
667
+ '2d56caccc29a40b5bd16334937de0083': {
832
668
  slug: string;
833
669
  };
834
- 6059: {
670
+ '3c12993b18ff473fa6fc7f695bd64180': {
835
671
  slug: string;
836
672
  };
837
- 6048: {
673
+ c4393a1da2e54ca4ab9a3ec0aeb682e4: {
838
674
  slug: string;
839
675
  };
840
- 6049: {
676
+ ee9fd665523c41078a65c5389896d0ab: {
841
677
  slug: string;
842
678
  };
843
- 6037: {
679
+ b84d0171dbb748e1ab2fb535fd318830: {
844
680
  slug: string;
845
681
  };
846
- 6061: {
682
+ '4d61b18d992c4d8eb33a331e4201ae05': {
847
683
  slug: string;
848
684
  };
849
- 6068: {
685
+ bdbe9158b33343c6ae11217fde9c8a57: {
850
686
  slug: string;
851
687
  };
852
- 6067: {
688
+ '790a78454af94287b2a84c2324d6956e': {
853
689
  slug: string;
854
690
  };
855
- 6065: {
691
+ '4211083b4bad4fee87e04dd65e5fed5d': {
856
692
  slug: string;
857
693
  };
858
- 6066: {
694
+ '47bb41bb9e174657aa0c48ec140ed2c8': {
859
695
  slug: string;
860
696
  };
861
- 6064: {
697
+ bac69bcc341c445d9c5c81f04231c685: {
862
698
  slug: string;
863
699
  };
864
- 6071: {
700
+ '2d561db2b849457f8f830c2e977ced6c': {
865
701
  slug: string;
866
702
  };
867
- 6072: {
703
+ e2727f32f9e248a3a7fd02f50cf493ab: {
868
704
  slug: string;
869
705
  };
870
- 6073: {
706
+ '85005f9b9c1c4a4485508c52465b7110': {
871
707
  slug: string;
872
708
  };
873
- 6074: {
709
+ df1eded2d6e24c81a9e9bd66567b39f0: {
874
710
  slug: string;
875
711
  };
876
- 6085: {
712
+ bfdc9b325b1a4471a948eccb7c76fd2e: {
877
713
  slug: string;
878
714
  };
879
- 6084: {
715
+ '7cb42c74e4704c08a51f0930703fff34': {
880
716
  slug: string;
881
717
  };
882
- 5402: {
718
+ c88a62c1e3584591b278fe0ccfe3b02b: {
883
719
  slug: string;
884
720
  };
885
- 6083: {
721
+ '2a682e5b38d64f77b7c1b6c0a8a06670': {
886
722
  slug: string;
887
723
  };
888
- 6082: {
724
+ '5eddabc29f704c66ba03deff870f2c18': {
889
725
  slug: string;
890
726
  };
891
- 6086: {
727
+ '18f048f0a07f40c09495fdc3830f7228': {
892
728
  slug: string;
893
729
  };
894
- 6101: {
730
+ f2fd5fd83bbb4e9ebf3af33ba4589561: {
895
731
  slug: string;
896
732
  };
897
- 6103: {
733
+ '31ed7e06afb347f2a302ba35267c8a0a': {
898
734
  slug: string;
899
735
  };
900
- 6104: {
736
+ '17e8062b9ed749ba8428cbb3924e719d': {
901
737
  slug: string;
902
738
  };
903
- 6105: {
739
+ '7573b1a594e8405295adfcf145c5322a': {
904
740
  slug: string;
905
741
  };
906
- 6116: {
742
+ acc3ac3b7e724c288a849b471616e373: {
907
743
  slug: string;
908
744
  };
909
- 6117: {
745
+ ddb203e3ae0443209ada75135e13a63e: {
910
746
  slug: string;
911
747
  };
912
- 6118: {
748
+ bdee0a45e5144156b88621238cd31bbe: {
913
749
  slug: string;
914
750
  };
915
- 6120: {
751
+ dc0d15f9aa474bd89c49e6da49bb3cc5: {
916
752
  slug: string;
917
753
  };
918
- 6121: {
754
+ '55cebda93e1c4f52b07d824a57f8677b': {
919
755
  slug: string;
920
756
  };
921
- 6124: {
757
+ '2172f706eedf4c36a3fba10a0fe5448d': {
922
758
  slug: string;
923
759
  };
924
- 6125: {
760
+ '0964a6d8e0234df7ad7df8e56c33ff2b': {
925
761
  slug: string;
926
762
  };
927
- 6126: {
763
+ e47b1860677e45909de56915a350a84e: {
928
764
  slug: string;
929
765
  };
930
- 6132: {
766
+ '0b8fcc5f30cb4649bb4d8ea9cf35578c': {
931
767
  slug: string;
932
768
  };
933
- 6133: {
769
+ '2972e73653da4dc5805853e22717f1ee': {
934
770
  slug: string;
935
771
  };
936
- 6137: {
772
+ f292a52aff774e698fe26dc61a7a3f71: {
937
773
  slug: string;
938
774
  };
939
- 6141: {
775
+ b9192bf9df6b4984b29f4731b5f0bb63: {
940
776
  slug: string;
941
777
  };
942
- 6144: {
778
+ d2dd8fe6e2e44c78935206323ee89af1: {
943
779
  slug: string;
944
780
  };
945
- 6143: {
781
+ '61f74eec39ff425b85e4f1c7e9e15ef6': {
946
782
  slug: string;
947
783
  };
948
- 6146: {
784
+ '148b777f385c4df2bc1b4900a4208e82': {
949
785
  slug: string;
950
786
  };
951
- 6148: {
787
+ '77550e4c36b34454bac2ae9c4d9d2bd1': {
952
788
  slug: string;
953
789
  };
954
- 6151: {
790
+ '6aac0d2309744e9ea8fd4621f8213dbd': {
955
791
  slug: string;
956
792
  };
957
- 6152: {
793
+ f5ef0aaddd294a0ba37ebc76012858ff: {
958
794
  slug: string;
959
795
  };
960
- 6153: {
796
+ '73966e2885a544ed9ba8e0a314a6528c': {
961
797
  slug: string;
962
798
  };
963
- 6062: {
799
+ '33242c4285024ccfafc57d72a7292ea9': {
964
800
  slug: string;
965
801
  };
966
- 6075: {
802
+ '605f06522caa449ba93b7c5fa4d8e54b': {
967
803
  slug: string;
968
804
  };
969
- 6078: {
805
+ c154e4664672441fa640f1ddff883db1: {
970
806
  slug: string;
971
807
  };
972
- 6089: {
808
+ '86024d3f1def489495cc7525d8232bea': {
973
809
  slug: string;
974
810
  };
975
- 6096: {
811
+ f52d1dd24f9c49ae82d8f70449fe40b7: {
976
812
  slug: string;
977
813
  };
978
- 6097: {
814
+ '1cbbd20a3a4542f38d2f9932016c4584': {
979
815
  slug: string;
980
816
  };
981
- 6098: {
817
+ fdf4b31ea3434b03a5c3ddaab1579084: {
982
818
  slug: string;
983
819
  };
984
- 6099: {
820
+ '1b104c3a036e4825bd60a5c7ceac4e66': {
985
821
  slug: string;
986
822
  };
987
- 6159: {
823
+ '03f332e3b2b947ebae73b67a9a22b6f4': {
988
824
  slug: string;
989
825
  };
990
- 6156: {
826
+ '97f70f6cdb5244a08d45772cccfa2788': {
991
827
  slug: string;
992
828
  };
993
829
  };
994
- declare const bookSizes: readonly ["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
995
- declare const coverTypes: readonly ["sc", "hc", "pl"];
996
- declare const pageTypes: readonly ["sp", "sl", "dl"];
997
- declare const imageDensities: readonly ["low", "medium", "high"];
998
- declare const imageFilteringLevels: readonly ["best", "most", "all"];
999
- declare const embellishmentLevels: readonly ["none", "few", "lots"];
1000
- declare const textStickerLevels: readonly ["none", "few", "lots"];
1001
- declare const timeoutEventDetail: DesignRequestEventDetail;
1002
- declare const cancelledEventDetail: DesignRequestEventDetail;
830
+ declare const bookSizes: readonly ["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
831
+ declare const coverTypes: readonly ["sc", "hc", "pl"];
832
+ declare const pageTypes: readonly ["sp", "sl", "dl"];
833
+ declare const imageDensities: readonly ["low", "medium", "high"];
834
+ declare const imageFilteringLevels: readonly ["best", "most", "all"];
835
+ declare const embellishmentLevels: readonly ["none", "few", "lots"];
836
+ declare const textStickerLevels: readonly ["none", "few", "lots"];
837
+ declare const timeoutEventDetail: DesignRequestEventDetail;
838
+ declare const cancelledEventDetail: DesignRequestEventDetail;
839
+ declare const formats: readonly ["galleon", "snapfish"];
840
+ type Format = (typeof formats)[number];
841
+
842
+ declare class BooksEndpoints {
843
+ private readonly engineAPI;
844
+ constructor(engineAPI: EngineAPI);
845
+ create(book: Partial<Book>): Promise<Book>;
846
+ retrieve(bookId: string): Promise<Book>;
847
+ update(bookId: string, book: Partial<Book>): Promise<Book>;
848
+ design(bookId: string): Promise<Book>;
849
+ cancel(bookId: string): Promise<Book>;
850
+ report(bookId: string, report: BookReport): Promise<void>;
851
+ 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
+ }>;
919
+ }
920
+
921
+ declare class DesignOptionsEndpoints {
922
+ private readonly engineAPI;
923
+ constructor(engineAPI: EngineAPI);
924
+ retrieve(bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel, sku?: string): Promise<{
925
+ densities: {
926
+ low: {
927
+ max_page_count: number;
928
+ min_page_count: number;
929
+ max_image_count: number;
930
+ avg_image_count: number;
931
+ min_image_count: number;
932
+ };
933
+ medium: {
934
+ max_page_count: number;
935
+ min_page_count: number;
936
+ max_image_count: number;
937
+ avg_image_count: number;
938
+ min_image_count: number;
939
+ };
940
+ high: {
941
+ max_page_count: number;
942
+ min_page_count: number;
943
+ max_image_count: number;
944
+ avg_image_count: number;
945
+ min_image_count: number;
946
+ };
947
+ };
948
+ }>;
949
+ }
950
+
951
+ declare class EventsEndpoints {
952
+ private readonly engineAPI;
953
+ constructor(engineAPI: EngineAPI);
954
+ createBookEvent(bookId: string, name: string, data?: EventContext): Promise<{
955
+ name: string;
956
+ context?: Record<string, unknown> | undefined;
957
+ }>;
958
+ }
959
+
960
+ type CallProps = {
961
+ path: string;
962
+ options?: RequestInit;
963
+ apiKey?: string;
964
+ };
965
+ declare class Fetcher {
966
+ baseUrl: URL;
967
+ options: RequestInit;
968
+ constructor(baseUrl: string, options?: RequestInit | undefined);
969
+ call(props: CallProps): Promise<any>;
970
+ cleanUrl(url: string): string;
971
+ }
972
+
973
+ declare class ImagesEndpoints {
974
+ private readonly engineAPI;
975
+ constructor(engineAPI: EngineAPI);
976
+ list(bookId: string): Promise<{
977
+ width: number;
978
+ height: number;
979
+ url: string;
980
+ handle: string;
981
+ orientation: number;
982
+ taken_at: string;
983
+ filename: string;
984
+ id?: string | undefined;
985
+ camera_make?: string | undefined;
986
+ camera?: string | undefined;
987
+ }[]>;
988
+ retrieve(imageId: string, bookId: string): Promise<{
989
+ width: number;
990
+ height: number;
991
+ url: string;
992
+ handle: string;
993
+ orientation: number;
994
+ taken_at: string;
995
+ filename: string;
996
+ id?: string | undefined;
997
+ camera_make?: string | undefined;
998
+ camera?: string | undefined;
999
+ }>;
1000
+ update(imageId: string, bookId: string, image: ImageServer): Promise<{
1001
+ width: number;
1002
+ height: number;
1003
+ url: string;
1004
+ handle: string;
1005
+ orientation: number;
1006
+ taken_at: string;
1007
+ filename: string;
1008
+ id?: string | undefined;
1009
+ camera_make?: string | undefined;
1010
+ camera?: string | undefined;
1011
+ }>;
1012
+ delete(imageId: string, bookId: string): Promise<void>;
1013
+ addToBook(bookId: string, image: ImageServer): Promise<{
1014
+ width: number;
1015
+ height: number;
1016
+ url: string;
1017
+ handle: string;
1018
+ orientation: number;
1019
+ taken_at: string;
1020
+ filename: string;
1021
+ id?: string | undefined;
1022
+ camera_make?: string | undefined;
1023
+ camera?: string | undefined;
1024
+ }>;
1025
+ }
1026
+
1027
+ declare const spreadServerSchema: z.ZodObject<{
1028
+ id: z.ZodOptional<z.ZodString>;
1029
+ book_id: z.ZodString;
1030
+ state: z.ZodString;
1031
+ spread_type: z.ZodString;
1032
+ width: z.ZodOptional<z.ZodNumber>;
1033
+ height: z.ZodOptional<z.ZodNumber>;
1034
+ sequence: z.ZodNumber;
1035
+ wells: z.ZodArray<z.ZodUnknown, "many">;
1036
+ background: z.ZodUnknown;
1037
+ laid_out_at: z.ZodNullable<z.ZodString>;
1038
+ embellished_at: z.ZodNullable<z.ZodString>;
1039
+ polished_at: z.ZodNullable<z.ZodString>;
1040
+ metadata: z.ZodUnknown;
1041
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ state: string;
1044
+ book_id: string;
1045
+ spread_type: string;
1046
+ sequence: number;
1047
+ wells: unknown[];
1048
+ laid_out_at: string | null;
1049
+ embellished_at: string | null;
1050
+ polished_at: string | null;
1051
+ width?: number | undefined;
1052
+ height?: number | undefined;
1053
+ id?: string | undefined;
1054
+ url?: string | null | undefined;
1055
+ background?: unknown;
1056
+ metadata?: unknown;
1057
+ }, {
1058
+ state: string;
1059
+ book_id: string;
1060
+ spread_type: string;
1061
+ sequence: number;
1062
+ wells: unknown[];
1063
+ laid_out_at: string | null;
1064
+ embellished_at: string | null;
1065
+ polished_at: string | null;
1066
+ width?: number | undefined;
1067
+ height?: number | undefined;
1068
+ id?: string | undefined;
1069
+ url?: string | null | undefined;
1070
+ background?: unknown;
1071
+ metadata?: unknown;
1072
+ }>;
1073
+ type SpreadServer = z.infer<typeof spreadServerSchema>;
1074
+
1075
+ declare class SpreadsEndpoints {
1076
+ private readonly engineAPI;
1077
+ constructor(engineAPI: EngineAPI);
1078
+ list(bookId: string): Promise<{
1079
+ state: string;
1080
+ book_id: string;
1081
+ spread_type: string;
1082
+ sequence: number;
1083
+ wells: unknown[];
1084
+ laid_out_at: string | null;
1085
+ embellished_at: string | null;
1086
+ polished_at: string | null;
1087
+ width?: number | undefined;
1088
+ height?: number | undefined;
1089
+ id?: string | undefined;
1090
+ url?: string | null | undefined;
1091
+ background?: unknown;
1092
+ metadata?: unknown;
1093
+ }[]>;
1094
+ create(bookId: string, spread: SpreadServer): Promise<{
1095
+ state: string;
1096
+ book_id: string;
1097
+ spread_type: string;
1098
+ sequence: number;
1099
+ wells: unknown[];
1100
+ laid_out_at: string | null;
1101
+ embellished_at: string | null;
1102
+ polished_at: string | null;
1103
+ width?: number | undefined;
1104
+ height?: number | undefined;
1105
+ id?: string | undefined;
1106
+ url?: string | null | undefined;
1107
+ background?: unknown;
1108
+ metadata?: unknown;
1109
+ }>;
1110
+ retrieve(spreadId: string, bookId: string): Promise<{
1111
+ state: string;
1112
+ book_id: string;
1113
+ spread_type: string;
1114
+ sequence: number;
1115
+ wells: unknown[];
1116
+ laid_out_at: string | null;
1117
+ embellished_at: string | null;
1118
+ polished_at: string | null;
1119
+ width?: number | undefined;
1120
+ height?: number | undefined;
1121
+ id?: string | undefined;
1122
+ url?: string | null | undefined;
1123
+ background?: unknown;
1124
+ metadata?: unknown;
1125
+ }>;
1126
+ update(spreadId: string, bookId: string, spread: SpreadServer): Promise<{
1127
+ state: string;
1128
+ book_id: string;
1129
+ spread_type: string;
1130
+ sequence: number;
1131
+ wells: unknown[];
1132
+ laid_out_at: string | null;
1133
+ embellished_at: string | null;
1134
+ polished_at: string | null;
1135
+ width?: number | undefined;
1136
+ height?: number | undefined;
1137
+ id?: string | undefined;
1138
+ url?: string | null | undefined;
1139
+ background?: unknown;
1140
+ metadata?: unknown;
1141
+ }>;
1142
+ delete(spreadId: string, bookId: string): Promise<void>;
1143
+ layouts(bookId: string, page: number): Promise<{
1144
+ backgroundId: string | null;
1145
+ assets?: {
1146
+ type: string;
1147
+ position: {
1148
+ x: number;
1149
+ y: number;
1150
+ rotation: number;
1151
+ width?: number | undefined;
1152
+ height?: number | undefined;
1153
+ };
1154
+ seqNum: number;
1155
+ z: number;
1156
+ id?: string | undefined;
1157
+ imageAssignment?: {
1158
+ photoRefId: string;
1159
+ finalCrop: number[];
1160
+ } | undefined;
1161
+ horizJustification?: string | undefined;
1162
+ vertJustification?: string | null | undefined;
1163
+ text?: string | undefined;
1164
+ fontId?: string | undefined;
1165
+ fontSize?: number | undefined;
1166
+ fontColor?: string | undefined;
1167
+ frame?: string | undefined;
1168
+ }[] | undefined;
1169
+ }[]>;
1170
+ }
1171
+
1172
+ declare class StoryboardItemsEndpoints {
1173
+ private readonly engineAPI;
1174
+ constructor(engineAPI: EngineAPI);
1175
+ list(bookId: string): Promise<{
1176
+ id: string;
1177
+ book_id: string;
1178
+ sequence: number;
1179
+ similarity: number;
1180
+ duplicate: boolean;
1181
+ selected: boolean;
1182
+ surface_weight: number;
1183
+ scene: number;
1184
+ subscene: number;
1185
+ image: {
1186
+ width: number;
1187
+ height: number;
1188
+ id: string;
1189
+ url: string;
1190
+ taken_at: number;
1191
+ category: string;
1192
+ aesthetic_score: number;
1193
+ faces: {
1194
+ score: number;
1195
+ bounding_box: {
1196
+ x: number;
1197
+ y: number;
1198
+ width: number;
1199
+ height: number;
1200
+ };
1201
+ size: number;
1202
+ eyes_open_score: number;
1203
+ smile_score: number;
1204
+ facing_camera_score: number;
1205
+ }[];
1206
+ roi: {
1207
+ x: number;
1208
+ y: number;
1209
+ width: number;
1210
+ height: number;
1211
+ };
1212
+ };
1213
+ front_cover?: boolean | undefined;
1214
+ back_cover?: boolean | undefined;
1215
+ spine_break?: boolean | undefined;
1216
+ }[]>;
1217
+ }
1218
+
1219
+ declare class EngineAPI {
1220
+ baseUrl: URL;
1221
+ apiKey: string;
1222
+ fetcher: Fetcher;
1223
+ constructor(baseUrl: string, apiKey: string);
1224
+ readonly books: BooksEndpoints;
1225
+ readonly designOptions: DesignOptionsEndpoints;
1226
+ readonly events: EventsEndpoints;
1227
+ readonly images: ImagesEndpoints;
1228
+ readonly storyboardItems: StoryboardItemsEndpoints;
1229
+ readonly spreads: SpreadsEndpoints;
1230
+ }
1231
+
1232
+ declare class MagicBookClient {
1233
+ private readonly apiKey;
1234
+ private readonly apiHost;
1235
+ readonly webSocketHost: string;
1236
+ engineAPI: EngineAPI;
1237
+ constructor(apiKey: string, apiHost?: string, webSocketHost?: string);
1238
+ createDesignRequest(designRequestProps: DesignRequestProps): Promise<DesignRequest>;
1239
+ }
1240
+
1241
+ type Image = {
1242
+ handle: string;
1243
+ url: string;
1244
+ width: number;
1245
+ height: number;
1246
+ rotation: number;
1247
+ captureTime: string;
1248
+ cameraMake?: string;
1249
+ cameraModel?: string;
1250
+ filename: string;
1251
+ };
1252
+ declare class Images {
1253
+ private readonly client;
1254
+ private parentId;
1255
+ private images;
1256
+ length: number;
1257
+ designRequestState: State;
1258
+ constructor(client: MagicBookClient, parentId: string, designRequestState: State);
1259
+ add(image: Image): Promise<number>;
1260
+ }
1261
+ declare const imageServerSchema: z.ZodObject<{
1262
+ id: z.ZodOptional<z.ZodString>;
1263
+ handle: z.ZodString;
1264
+ url: z.ZodString;
1265
+ width: z.ZodNumber;
1266
+ height: z.ZodNumber;
1267
+ orientation: z.ZodNumber;
1268
+ taken_at: z.ZodString;
1269
+ camera_make: z.ZodOptional<z.ZodString>;
1270
+ camera: z.ZodOptional<z.ZodString>;
1271
+ filename: z.ZodString;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ width: number;
1274
+ height: number;
1275
+ url: string;
1276
+ handle: string;
1277
+ orientation: number;
1278
+ taken_at: string;
1279
+ filename: string;
1280
+ id?: string | undefined;
1281
+ camera_make?: string | undefined;
1282
+ camera?: string | undefined;
1283
+ }, {
1284
+ width: number;
1285
+ height: number;
1286
+ url: string;
1287
+ handle: string;
1288
+ orientation: number;
1289
+ taken_at: string;
1290
+ filename: string;
1291
+ id?: string | undefined;
1292
+ camera_make?: string | undefined;
1293
+ camera?: string | undefined;
1294
+ }>;
1295
+ declare class ImageServer {
1296
+ handle: string;
1297
+ url: string;
1298
+ width: number;
1299
+ height: number;
1300
+ orientation: number;
1301
+ taken_at: string;
1302
+ camera_make?: string;
1303
+ camera?: string;
1304
+ filename: string;
1305
+ constructor(image: Image);
1306
+ }
1307
+ declare function imageServerToImage(imageServer: ImageServer): Image;
1003
1308
 
1004
1309
  type Occasion = (typeof occasions)[number];
1005
1310
  type Style = keyof typeof styles;
@@ -1013,7 +1318,7 @@ type TextStickerLevel = (typeof textStickerLevels)[number];
1013
1318
  declare const DesignRequestOptions: {
1014
1319
  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"];
1015
1320
  style: number[];
1016
- bookSize: readonly ["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
1321
+ bookSize: readonly ["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
1017
1322
  coverType: readonly ["sc", "hc", "pl"];
1018
1323
  pageType: readonly ["sp", "sl", "dl"];
1019
1324
  imageDensity: readonly ["low", "medium", "high"];
@@ -1027,6 +1332,7 @@ type DesignRequestProps = {
1027
1332
  state?: State;
1028
1333
  occasion?: Occasion;
1029
1334
  style?: Style;
1335
+ sku?: string;
1030
1336
  bookSize?: BookSize;
1031
1337
  coverType?: CoverType;
1032
1338
  pageType?: PageType;
@@ -1052,6 +1358,7 @@ declare class DesignRequest {
1052
1358
  subtitle?: string;
1053
1359
  occasion: Occasion;
1054
1360
  style: Style;
1361
+ sku?: string;
1055
1362
  bookSize: BookSize;
1056
1363
  coverType: CoverType;
1057
1364
  pageType: PageType;
@@ -1104,11 +1411,11 @@ declare class DesignRequest {
1104
1411
  };
1105
1412
  seqNum: number;
1106
1413
  z: number;
1414
+ id?: string | undefined;
1107
1415
  imageAssignment?: {
1108
1416
  photoRefId: string;
1109
1417
  finalCrop: number[];
1110
1418
  } | undefined;
1111
- id?: string | undefined;
1112
1419
  horizJustification?: string | undefined;
1113
1420
  vertJustification?: string | null | undefined;
1114
1421
  text?: string | undefined;
@@ -1121,7 +1428,7 @@ declare class DesignRequest {
1121
1428
  submit(submitDesignRequestProps?: Partial<DesignRequestProps>): Promise<this>;
1122
1429
  setGuid(guid: string): Promise<string>;
1123
1430
  cancel(): Promise<this>;
1124
- getJSON(): Promise<{
1431
+ getJSON(format: Format): Promise<{
1125
1432
  title: string;
1126
1433
  binding: string;
1127
1434
  coverSpecId: string;
@@ -1144,11 +1451,11 @@ declare class DesignRequest {
1144
1451
  };
1145
1452
  seqNum: number;
1146
1453
  z: number;
1454
+ id?: string | undefined;
1147
1455
  imageAssignment?: {
1148
1456
  photoRefId: string;
1149
1457
  finalCrop: number[];
1150
1458
  } | undefined;
1151
- id?: string | undefined;
1152
1459
  horizJustification?: string | undefined;
1153
1460
  vertJustification?: string | null | undefined;
1154
1461
  text?: string | undefined;
@@ -1165,7 +1472,6 @@ declare class DesignRequest {
1165
1472
  encryptId: string;
1166
1473
  photoId: string;
1167
1474
  photoMetadata: {
1168
- data: string | null;
1169
1475
  width: number;
1170
1476
  height: number;
1171
1477
  rotation: number;
@@ -1174,6 +1480,7 @@ declare class DesignRequest {
1174
1480
  lly: number;
1175
1481
  urx: number;
1176
1482
  ury: number;
1483
+ data: string | null;
1177
1484
  title: string;
1178
1485
  effect: string;
1179
1486
  source: string;
@@ -1228,7 +1535,7 @@ declare class BookDesignRequest {
1228
1535
  declare const bookDesignRequestSchema: z.ZodObject<{
1229
1536
  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"]>;
1230
1537
  style: z.ZodString;
1231
- book_size: z.ZodEnum<["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1538
+ book_size: z.ZodEnum<["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1232
1539
  cover_type: z.ZodEnum<["sc", "hc", "pl"]>;
1233
1540
  page_type: z.ZodEnum<["sp", "sl", "dl"]>;
1234
1541
  image_density: z.ZodEnum<["low", "medium", "high"]>;
@@ -1238,7 +1545,7 @@ declare const bookDesignRequestSchema: z.ZodObject<{
1238
1545
  }, "strip", z.ZodTypeAny, {
1239
1546
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1240
1547
  style: string;
1241
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1548
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1242
1549
  cover_type: "sc" | "hc" | "pl";
1243
1550
  page_type: "sp" | "sl" | "dl";
1244
1551
  image_density: "low" | "medium" | "high";
@@ -1248,7 +1555,7 @@ declare const bookDesignRequestSchema: z.ZodObject<{
1248
1555
  }, {
1249
1556
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1250
1557
  style: string;
1251
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1558
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1252
1559
  cover_type: "sc" | "hc" | "pl";
1253
1560
  page_type: "sp" | "sl" | "dl";
1254
1561
  image_density: "low" | "medium" | "high";
@@ -1263,7 +1570,7 @@ declare const bookPropsSchema: z.ZodObject<{
1263
1570
  design_request: z.ZodObject<{
1264
1571
  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"]>;
1265
1572
  style: z.ZodString;
1266
- book_size: z.ZodEnum<["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1573
+ book_size: z.ZodEnum<["5x7", "6x6", "8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
1267
1574
  cover_type: z.ZodEnum<["sc", "hc", "pl"]>;
1268
1575
  page_type: z.ZodEnum<["sp", "sl", "dl"]>;
1269
1576
  image_density: z.ZodEnum<["low", "medium", "high"]>;
@@ -1273,7 +1580,7 @@ declare const bookPropsSchema: z.ZodObject<{
1273
1580
  }, "strip", z.ZodTypeAny, {
1274
1581
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1275
1582
  style: string;
1276
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1583
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1277
1584
  cover_type: "sc" | "hc" | "pl";
1278
1585
  page_type: "sp" | "sl" | "dl";
1279
1586
  image_density: "low" | "medium" | "high";
@@ -1283,7 +1590,7 @@ declare const bookPropsSchema: z.ZodObject<{
1283
1590
  }, {
1284
1591
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1285
1592
  style: string;
1286
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1593
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1287
1594
  cover_type: "sc" | "hc" | "pl";
1288
1595
  page_type: "sp" | "sl" | "dl";
1289
1596
  image_density: "low" | "medium" | "high";
@@ -1291,6 +1598,7 @@ declare const bookPropsSchema: z.ZodObject<{
1291
1598
  embellishment_level: "none" | "few" | "lots";
1292
1599
  text_sticker_level: "none" | "few" | "lots";
1293
1600
  }>;
1601
+ sku: z.ZodOptional<z.ZodString>;
1294
1602
  state: z.ZodOptional<z.ZodEnum<["new", "ingesting", "submitted", "storyboarding", "deduplication", "image-selection", "designing", "layouting", "embellishing", "polishing", "ready", "timeout", "error", "cancelled"]>>;
1295
1603
  guid: z.ZodOptional<z.ZodString>;
1296
1604
  cancelled_at: z.ZodOptional<z.ZodString>;
@@ -1302,7 +1610,7 @@ declare const bookPropsSchema: z.ZodObject<{
1302
1610
  design_request: {
1303
1611
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1304
1612
  style: string;
1305
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1613
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1306
1614
  cover_type: "sc" | "hc" | "pl";
1307
1615
  page_type: "sp" | "sl" | "dl";
1308
1616
  image_density: "low" | "medium" | "high";
@@ -1312,6 +1620,7 @@ declare const bookPropsSchema: z.ZodObject<{
1312
1620
  };
1313
1621
  id?: string | undefined;
1314
1622
  subtitle?: string | undefined;
1623
+ sku?: string | undefined;
1315
1624
  state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
1316
1625
  guid?: string | undefined;
1317
1626
  cancelled_at?: string | undefined;
@@ -1323,7 +1632,7 @@ declare const bookPropsSchema: z.ZodObject<{
1323
1632
  design_request: {
1324
1633
  occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
1325
1634
  style: string;
1326
- book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1635
+ book_size: "5x7" | "6x6" | "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
1327
1636
  cover_type: "sc" | "hc" | "pl";
1328
1637
  page_type: "sp" | "sl" | "dl";
1329
1638
  image_density: "low" | "medium" | "high";
@@ -1333,6 +1642,7 @@ declare const bookPropsSchema: z.ZodObject<{
1333
1642
  };
1334
1643
  id?: string | undefined;
1335
1644
  subtitle?: string | undefined;
1645
+ sku?: string | undefined;
1336
1646
  state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
1337
1647
  guid?: string | undefined;
1338
1648
  cancelled_at?: string | undefined;
@@ -1347,6 +1657,7 @@ declare class Book {
1347
1657
  revision?: number;
1348
1658
  subtitle?: string;
1349
1659
  design_request: BookDesignRequest;
1660
+ sku?: string;
1350
1661
  state?: State;
1351
1662
  guid?: string;
1352
1663
  cancelled_at?: string;
@@ -1960,7 +2271,6 @@ declare const photoMetadataSchema: z.ZodObject<{
1960
2271
  rotation: z.ZodNumber;
1961
2272
  uploadTime: z.ZodString;
1962
2273
  }, "strip", z.ZodTypeAny, {
1963
- data: string | null;
1964
2274
  width: number;
1965
2275
  height: number;
1966
2276
  rotation: number;
@@ -1969,12 +2279,12 @@ declare const photoMetadataSchema: z.ZodObject<{
1969
2279
  lly: number;
1970
2280
  urx: number;
1971
2281
  ury: number;
2282
+ data: string | null;
1972
2283
  title: string;
1973
2284
  effect: string;
1974
2285
  source: string;
1975
2286
  uploadTime: string;
1976
2287
  }, {
1977
- data: string | null;
1978
2288
  width: number;
1979
2289
  height: number;
1980
2290
  rotation: number;
@@ -1983,6 +2293,7 @@ declare const photoMetadataSchema: z.ZodObject<{
1983
2293
  lly: number;
1984
2294
  urx: number;
1985
2295
  ury: number;
2296
+ data: string | null;
1986
2297
  title: string;
1987
2298
  effect: string;
1988
2299
  source: string;
@@ -2052,11 +2363,11 @@ declare const assetSchema: z.ZodObject<{
2052
2363
  };
2053
2364
  seqNum: number;
2054
2365
  z: number;
2366
+ id?: string | undefined;
2055
2367
  imageAssignment?: {
2056
2368
  photoRefId: string;
2057
2369
  finalCrop: number[];
2058
2370
  } | undefined;
2059
- id?: string | undefined;
2060
2371
  horizJustification?: string | undefined;
2061
2372
  vertJustification?: string | null | undefined;
2062
2373
  text?: string | undefined;
@@ -2075,11 +2386,11 @@ declare const assetSchema: z.ZodObject<{
2075
2386
  };
2076
2387
  seqNum: number;
2077
2388
  z: number;
2389
+ id?: string | undefined;
2078
2390
  imageAssignment?: {
2079
2391
  photoRefId: string;
2080
2392
  finalCrop: number[];
2081
2393
  } | undefined;
2082
- id?: string | undefined;
2083
2394
  horizJustification?: string | undefined;
2084
2395
  vertJustification?: string | null | undefined;
2085
2396
  text?: string | undefined;
@@ -2109,7 +2420,6 @@ declare const photoStripSchema: z.ZodObject<{
2109
2420
  rotation: z.ZodNumber;
2110
2421
  uploadTime: z.ZodString;
2111
2422
  }, "strip", z.ZodTypeAny, {
2112
- data: string | null;
2113
2423
  width: number;
2114
2424
  height: number;
2115
2425
  rotation: number;
@@ -2118,12 +2428,12 @@ declare const photoStripSchema: z.ZodObject<{
2118
2428
  lly: number;
2119
2429
  urx: number;
2120
2430
  ury: number;
2431
+ data: string | null;
2121
2432
  title: string;
2122
2433
  effect: string;
2123
2434
  source: string;
2124
2435
  uploadTime: string;
2125
2436
  }, {
2126
- data: string | null;
2127
2437
  width: number;
2128
2438
  height: number;
2129
2439
  rotation: number;
@@ -2132,6 +2442,7 @@ declare const photoStripSchema: z.ZodObject<{
2132
2442
  lly: number;
2133
2443
  urx: number;
2134
2444
  ury: number;
2445
+ data: string | null;
2135
2446
  title: string;
2136
2447
  effect: string;
2137
2448
  source: string;
@@ -2143,7 +2454,6 @@ declare const photoStripSchema: z.ZodObject<{
2143
2454
  encryptId: string;
2144
2455
  photoId: string;
2145
2456
  photoMetadata: {
2146
- data: string | null;
2147
2457
  width: number;
2148
2458
  height: number;
2149
2459
  rotation: number;
@@ -2152,6 +2462,7 @@ declare const photoStripSchema: z.ZodObject<{
2152
2462
  lly: number;
2153
2463
  urx: number;
2154
2464
  ury: number;
2465
+ data: string | null;
2155
2466
  title: string;
2156
2467
  effect: string;
2157
2468
  source: string;
@@ -2163,7 +2474,6 @@ declare const photoStripSchema: z.ZodObject<{
2163
2474
  encryptId: string;
2164
2475
  photoId: string;
2165
2476
  photoMetadata: {
2166
- data: string | null;
2167
2477
  width: number;
2168
2478
  height: number;
2169
2479
  rotation: number;
@@ -2172,6 +2482,7 @@ declare const photoStripSchema: z.ZodObject<{
2172
2482
  lly: number;
2173
2483
  urx: number;
2174
2484
  ury: number;
2485
+ data: string | null;
2175
2486
  title: string;
2176
2487
  effect: string;
2177
2488
  source: string;
@@ -2256,11 +2567,11 @@ declare const canvasSchema: z.ZodObject<{
2256
2567
  };
2257
2568
  seqNum: number;
2258
2569
  z: number;
2570
+ id?: string | undefined;
2259
2571
  imageAssignment?: {
2260
2572
  photoRefId: string;
2261
2573
  finalCrop: number[];
2262
2574
  } | undefined;
2263
- id?: string | undefined;
2264
2575
  horizJustification?: string | undefined;
2265
2576
  vertJustification?: string | null | undefined;
2266
2577
  text?: string | undefined;
@@ -2279,11 +2590,11 @@ declare const canvasSchema: z.ZodObject<{
2279
2590
  };
2280
2591
  seqNum: number;
2281
2592
  z: number;
2593
+ id?: string | undefined;
2282
2594
  imageAssignment?: {
2283
2595
  photoRefId: string;
2284
2596
  finalCrop: number[];
2285
2597
  } | undefined;
2286
- id?: string | undefined;
2287
2598
  horizJustification?: string | undefined;
2288
2599
  vertJustification?: string | null | undefined;
2289
2600
  text?: string | undefined;
@@ -2305,11 +2616,11 @@ declare const canvasSchema: z.ZodObject<{
2305
2616
  };
2306
2617
  seqNum: number;
2307
2618
  z: number;
2619
+ id?: string | undefined;
2308
2620
  imageAssignment?: {
2309
2621
  photoRefId: string;
2310
2622
  finalCrop: number[];
2311
2623
  } | undefined;
2312
- id?: string | undefined;
2313
2624
  horizJustification?: string | undefined;
2314
2625
  vertJustification?: string | null | undefined;
2315
2626
  text?: string | undefined;
@@ -2331,11 +2642,11 @@ declare const canvasSchema: z.ZodObject<{
2331
2642
  };
2332
2643
  seqNum: number;
2333
2644
  z: number;
2645
+ id?: string | undefined;
2334
2646
  imageAssignment?: {
2335
2647
  photoRefId: string;
2336
2648
  finalCrop: number[];
2337
2649
  } | undefined;
2338
- id?: string | undefined;
2339
2650
  horizJustification?: string | undefined;
2340
2651
  vertJustification?: string | null | undefined;
2341
2652
  text?: string | undefined;
@@ -2403,11 +2714,11 @@ declare const pageSchema: z.ZodObject<{
2403
2714
  };
2404
2715
  seqNum: number;
2405
2716
  z: number;
2717
+ id?: string | undefined;
2406
2718
  imageAssignment?: {
2407
2719
  photoRefId: string;
2408
2720
  finalCrop: number[];
2409
2721
  } | undefined;
2410
- id?: string | undefined;
2411
2722
  horizJustification?: string | undefined;
2412
2723
  vertJustification?: string | null | undefined;
2413
2724
  text?: string | undefined;
@@ -2426,11 +2737,11 @@ declare const pageSchema: z.ZodObject<{
2426
2737
  };
2427
2738
  seqNum: number;
2428
2739
  z: number;
2740
+ id?: string | undefined;
2429
2741
  imageAssignment?: {
2430
2742
  photoRefId: string;
2431
2743
  finalCrop: number[];
2432
2744
  } | undefined;
2433
- id?: string | undefined;
2434
2745
  horizJustification?: string | undefined;
2435
2746
  vertJustification?: string | null | undefined;
2436
2747
  text?: string | undefined;
@@ -2452,11 +2763,11 @@ declare const pageSchema: z.ZodObject<{
2452
2763
  };
2453
2764
  seqNum: number;
2454
2765
  z: number;
2766
+ id?: string | undefined;
2455
2767
  imageAssignment?: {
2456
2768
  photoRefId: string;
2457
2769
  finalCrop: number[];
2458
2770
  } | undefined;
2459
- id?: string | undefined;
2460
2771
  horizJustification?: string | undefined;
2461
2772
  vertJustification?: string | null | undefined;
2462
2773
  text?: string | undefined;
@@ -2478,11 +2789,11 @@ declare const pageSchema: z.ZodObject<{
2478
2789
  };
2479
2790
  seqNum: number;
2480
2791
  z: number;
2792
+ id?: string | undefined;
2481
2793
  imageAssignment?: {
2482
2794
  photoRefId: string;
2483
2795
  finalCrop: number[];
2484
2796
  } | undefined;
2485
- id?: string | undefined;
2486
2797
  horizJustification?: string | undefined;
2487
2798
  vertJustification?: string | null | undefined;
2488
2799
  text?: string | undefined;
@@ -2508,11 +2819,11 @@ declare const pageSchema: z.ZodObject<{
2508
2819
  };
2509
2820
  seqNum: number;
2510
2821
  z: number;
2822
+ id?: string | undefined;
2511
2823
  imageAssignment?: {
2512
2824
  photoRefId: string;
2513
2825
  finalCrop: number[];
2514
2826
  } | undefined;
2515
- id?: string | undefined;
2516
2827
  horizJustification?: string | undefined;
2517
2828
  vertJustification?: string | null | undefined;
2518
2829
  text?: string | undefined;
@@ -2538,11 +2849,11 @@ declare const pageSchema: z.ZodObject<{
2538
2849
  };
2539
2850
  seqNum: number;
2540
2851
  z: number;
2852
+ id?: string | undefined;
2541
2853
  imageAssignment?: {
2542
2854
  photoRefId: string;
2543
2855
  finalCrop: number[];
2544
2856
  } | undefined;
2545
- id?: string | undefined;
2546
2857
  horizJustification?: string | undefined;
2547
2858
  vertJustification?: string | null | undefined;
2548
2859
  text?: string | undefined;
@@ -2612,11 +2923,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2612
2923
  };
2613
2924
  seqNum: number;
2614
2925
  z: number;
2926
+ id?: string | undefined;
2615
2927
  imageAssignment?: {
2616
2928
  photoRefId: string;
2617
2929
  finalCrop: number[];
2618
2930
  } | undefined;
2619
- id?: string | undefined;
2620
2931
  horizJustification?: string | undefined;
2621
2932
  vertJustification?: string | null | undefined;
2622
2933
  text?: string | undefined;
@@ -2635,11 +2946,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2635
2946
  };
2636
2947
  seqNum: number;
2637
2948
  z: number;
2949
+ id?: string | undefined;
2638
2950
  imageAssignment?: {
2639
2951
  photoRefId: string;
2640
2952
  finalCrop: number[];
2641
2953
  } | undefined;
2642
- id?: string | undefined;
2643
2954
  horizJustification?: string | undefined;
2644
2955
  vertJustification?: string | null | undefined;
2645
2956
  text?: string | undefined;
@@ -2661,11 +2972,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2661
2972
  };
2662
2973
  seqNum: number;
2663
2974
  z: number;
2975
+ id?: string | undefined;
2664
2976
  imageAssignment?: {
2665
2977
  photoRefId: string;
2666
2978
  finalCrop: number[];
2667
2979
  } | undefined;
2668
- id?: string | undefined;
2669
2980
  horizJustification?: string | undefined;
2670
2981
  vertJustification?: string | null | undefined;
2671
2982
  text?: string | undefined;
@@ -2687,11 +2998,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2687
2998
  };
2688
2999
  seqNum: number;
2689
3000
  z: number;
3001
+ id?: string | undefined;
2690
3002
  imageAssignment?: {
2691
3003
  photoRefId: string;
2692
3004
  finalCrop: number[];
2693
3005
  } | undefined;
2694
- id?: string | undefined;
2695
3006
  horizJustification?: string | undefined;
2696
3007
  vertJustification?: string | null | undefined;
2697
3008
  text?: string | undefined;
@@ -2717,11 +3028,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2717
3028
  };
2718
3029
  seqNum: number;
2719
3030
  z: number;
3031
+ id?: string | undefined;
2720
3032
  imageAssignment?: {
2721
3033
  photoRefId: string;
2722
3034
  finalCrop: number[];
2723
3035
  } | undefined;
2724
- id?: string | undefined;
2725
3036
  horizJustification?: string | undefined;
2726
3037
  vertJustification?: string | null | undefined;
2727
3038
  text?: string | undefined;
@@ -2747,11 +3058,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2747
3058
  };
2748
3059
  seqNum: number;
2749
3060
  z: number;
3061
+ id?: string | undefined;
2750
3062
  imageAssignment?: {
2751
3063
  photoRefId: string;
2752
3064
  finalCrop: number[];
2753
3065
  } | undefined;
2754
- id?: string | undefined;
2755
3066
  horizJustification?: string | undefined;
2756
3067
  vertJustification?: string | null | undefined;
2757
3068
  text?: string | undefined;
@@ -2782,7 +3093,6 @@ declare const magicShopBookSchema: z.ZodObject<{
2782
3093
  rotation: z.ZodNumber;
2783
3094
  uploadTime: z.ZodString;
2784
3095
  }, "strip", z.ZodTypeAny, {
2785
- data: string | null;
2786
3096
  width: number;
2787
3097
  height: number;
2788
3098
  rotation: number;
@@ -2791,12 +3101,12 @@ declare const magicShopBookSchema: z.ZodObject<{
2791
3101
  lly: number;
2792
3102
  urx: number;
2793
3103
  ury: number;
3104
+ data: string | null;
2794
3105
  title: string;
2795
3106
  effect: string;
2796
3107
  source: string;
2797
3108
  uploadTime: string;
2798
3109
  }, {
2799
- data: string | null;
2800
3110
  width: number;
2801
3111
  height: number;
2802
3112
  rotation: number;
@@ -2805,6 +3115,7 @@ declare const magicShopBookSchema: z.ZodObject<{
2805
3115
  lly: number;
2806
3116
  urx: number;
2807
3117
  ury: number;
3118
+ data: string | null;
2808
3119
  title: string;
2809
3120
  effect: string;
2810
3121
  source: string;
@@ -2816,7 +3127,6 @@ declare const magicShopBookSchema: z.ZodObject<{
2816
3127
  encryptId: string;
2817
3128
  photoId: string;
2818
3129
  photoMetadata: {
2819
- data: string | null;
2820
3130
  width: number;
2821
3131
  height: number;
2822
3132
  rotation: number;
@@ -2825,6 +3135,7 @@ declare const magicShopBookSchema: z.ZodObject<{
2825
3135
  lly: number;
2826
3136
  urx: number;
2827
3137
  ury: number;
3138
+ data: string | null;
2828
3139
  title: string;
2829
3140
  effect: string;
2830
3141
  source: string;
@@ -2836,7 +3147,6 @@ declare const magicShopBookSchema: z.ZodObject<{
2836
3147
  encryptId: string;
2837
3148
  photoId: string;
2838
3149
  photoMetadata: {
2839
- data: string | null;
2840
3150
  width: number;
2841
3151
  height: number;
2842
3152
  rotation: number;
@@ -2845,6 +3155,7 @@ declare const magicShopBookSchema: z.ZodObject<{
2845
3155
  lly: number;
2846
3156
  urx: number;
2847
3157
  ury: number;
3158
+ data: string | null;
2848
3159
  title: string;
2849
3160
  effect: string;
2850
3161
  source: string;
@@ -2868,11 +3179,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2868
3179
  };
2869
3180
  seqNum: number;
2870
3181
  z: number;
3182
+ id?: string | undefined;
2871
3183
  imageAssignment?: {
2872
3184
  photoRefId: string;
2873
3185
  finalCrop: number[];
2874
3186
  } | undefined;
2875
- id?: string | undefined;
2876
3187
  horizJustification?: string | undefined;
2877
3188
  vertJustification?: string | null | undefined;
2878
3189
  text?: string | undefined;
@@ -2889,7 +3200,6 @@ declare const magicShopBookSchema: z.ZodObject<{
2889
3200
  encryptId: string;
2890
3201
  photoId: string;
2891
3202
  photoMetadata: {
2892
- data: string | null;
2893
3203
  width: number;
2894
3204
  height: number;
2895
3205
  rotation: number;
@@ -2898,6 +3208,7 @@ declare const magicShopBookSchema: z.ZodObject<{
2898
3208
  lly: number;
2899
3209
  urx: number;
2900
3210
  ury: number;
3211
+ data: string | null;
2901
3212
  title: string;
2902
3213
  effect: string;
2903
3214
  source: string;
@@ -2921,11 +3232,11 @@ declare const magicShopBookSchema: z.ZodObject<{
2921
3232
  };
2922
3233
  seqNum: number;
2923
3234
  z: number;
3235
+ id?: string | undefined;
2924
3236
  imageAssignment?: {
2925
3237
  photoRefId: string;
2926
3238
  finalCrop: number[];
2927
3239
  } | undefined;
2928
- id?: string | undefined;
2929
3240
  horizJustification?: string | undefined;
2930
3241
  vertJustification?: string | null | undefined;
2931
3242
  text?: string | undefined;
@@ -2942,7 +3253,6 @@ declare const magicShopBookSchema: z.ZodObject<{
2942
3253
  encryptId: string;
2943
3254
  photoId: string;
2944
3255
  photoMetadata: {
2945
- data: string | null;
2946
3256
  width: number;
2947
3257
  height: number;
2948
3258
  rotation: number;
@@ -2951,6 +3261,7 @@ declare const magicShopBookSchema: z.ZodObject<{
2951
3261
  lly: number;
2952
3262
  urx: number;
2953
3263
  ury: number;
3264
+ data: string | null;
2954
3265
  title: string;
2955
3266
  effect: string;
2956
3267
  source: string;
@@ -3023,11 +3334,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3023
3334
  };
3024
3335
  seqNum: number;
3025
3336
  z: number;
3337
+ id?: string | undefined;
3026
3338
  imageAssignment?: {
3027
3339
  photoRefId: string;
3028
3340
  finalCrop: number[];
3029
3341
  } | undefined;
3030
- id?: string | undefined;
3031
3342
  horizJustification?: string | undefined;
3032
3343
  vertJustification?: string | null | undefined;
3033
3344
  text?: string | undefined;
@@ -3046,11 +3357,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3046
3357
  };
3047
3358
  seqNum: number;
3048
3359
  z: number;
3360
+ id?: string | undefined;
3049
3361
  imageAssignment?: {
3050
3362
  photoRefId: string;
3051
3363
  finalCrop: number[];
3052
3364
  } | undefined;
3053
- id?: string | undefined;
3054
3365
  horizJustification?: string | undefined;
3055
3366
  vertJustification?: string | null | undefined;
3056
3367
  text?: string | undefined;
@@ -3072,11 +3383,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3072
3383
  };
3073
3384
  seqNum: number;
3074
3385
  z: number;
3386
+ id?: string | undefined;
3075
3387
  imageAssignment?: {
3076
3388
  photoRefId: string;
3077
3389
  finalCrop: number[];
3078
3390
  } | undefined;
3079
- id?: string | undefined;
3080
3391
  horizJustification?: string | undefined;
3081
3392
  vertJustification?: string | null | undefined;
3082
3393
  text?: string | undefined;
@@ -3098,11 +3409,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3098
3409
  };
3099
3410
  seqNum: number;
3100
3411
  z: number;
3412
+ id?: string | undefined;
3101
3413
  imageAssignment?: {
3102
3414
  photoRefId: string;
3103
3415
  finalCrop: number[];
3104
3416
  } | undefined;
3105
- id?: string | undefined;
3106
3417
  horizJustification?: string | undefined;
3107
3418
  vertJustification?: string | null | undefined;
3108
3419
  text?: string | undefined;
@@ -3128,11 +3439,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3128
3439
  };
3129
3440
  seqNum: number;
3130
3441
  z: number;
3442
+ id?: string | undefined;
3131
3443
  imageAssignment?: {
3132
3444
  photoRefId: string;
3133
3445
  finalCrop: number[];
3134
3446
  } | undefined;
3135
- id?: string | undefined;
3136
3447
  horizJustification?: string | undefined;
3137
3448
  vertJustification?: string | null | undefined;
3138
3449
  text?: string | undefined;
@@ -3158,11 +3469,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3158
3469
  };
3159
3470
  seqNum: number;
3160
3471
  z: number;
3472
+ id?: string | undefined;
3161
3473
  imageAssignment?: {
3162
3474
  photoRefId: string;
3163
3475
  finalCrop: number[];
3164
3476
  } | undefined;
3165
- id?: string | undefined;
3166
3477
  horizJustification?: string | undefined;
3167
3478
  vertJustification?: string | null | undefined;
3168
3479
  text?: string | undefined;
@@ -3193,7 +3504,6 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3193
3504
  rotation: z.ZodNumber;
3194
3505
  uploadTime: z.ZodString;
3195
3506
  }, "strip", z.ZodTypeAny, {
3196
- data: string | null;
3197
3507
  width: number;
3198
3508
  height: number;
3199
3509
  rotation: number;
@@ -3202,12 +3512,12 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3202
3512
  lly: number;
3203
3513
  urx: number;
3204
3514
  ury: number;
3515
+ data: string | null;
3205
3516
  title: string;
3206
3517
  effect: string;
3207
3518
  source: string;
3208
3519
  uploadTime: string;
3209
3520
  }, {
3210
- data: string | null;
3211
3521
  width: number;
3212
3522
  height: number;
3213
3523
  rotation: number;
@@ -3216,6 +3526,7 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3216
3526
  lly: number;
3217
3527
  urx: number;
3218
3528
  ury: number;
3529
+ data: string | null;
3219
3530
  title: string;
3220
3531
  effect: string;
3221
3532
  source: string;
@@ -3227,7 +3538,6 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3227
3538
  encryptId: string;
3228
3539
  photoId: string;
3229
3540
  photoMetadata: {
3230
- data: string | null;
3231
3541
  width: number;
3232
3542
  height: number;
3233
3543
  rotation: number;
@@ -3236,6 +3546,7 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3236
3546
  lly: number;
3237
3547
  urx: number;
3238
3548
  ury: number;
3549
+ data: string | null;
3239
3550
  title: string;
3240
3551
  effect: string;
3241
3552
  source: string;
@@ -3247,7 +3558,6 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3247
3558
  encryptId: string;
3248
3559
  photoId: string;
3249
3560
  photoMetadata: {
3250
- data: string | null;
3251
3561
  width: number;
3252
3562
  height: number;
3253
3563
  rotation: number;
@@ -3256,6 +3566,7 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3256
3566
  lly: number;
3257
3567
  urx: number;
3258
3568
  ury: number;
3569
+ data: string | null;
3259
3570
  title: string;
3260
3571
  effect: string;
3261
3572
  source: string;
@@ -3279,11 +3590,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3279
3590
  };
3280
3591
  seqNum: number;
3281
3592
  z: number;
3593
+ id?: string | undefined;
3282
3594
  imageAssignment?: {
3283
3595
  photoRefId: string;
3284
3596
  finalCrop: number[];
3285
3597
  } | undefined;
3286
- id?: string | undefined;
3287
3598
  horizJustification?: string | undefined;
3288
3599
  vertJustification?: string | null | undefined;
3289
3600
  text?: string | undefined;
@@ -3300,7 +3611,6 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3300
3611
  encryptId: string;
3301
3612
  photoId: string;
3302
3613
  photoMetadata: {
3303
- data: string | null;
3304
3614
  width: number;
3305
3615
  height: number;
3306
3616
  rotation: number;
@@ -3309,6 +3619,7 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3309
3619
  lly: number;
3310
3620
  urx: number;
3311
3621
  ury: number;
3622
+ data: string | null;
3312
3623
  title: string;
3313
3624
  effect: string;
3314
3625
  source: string;
@@ -3332,11 +3643,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3332
3643
  };
3333
3644
  seqNum: number;
3334
3645
  z: number;
3646
+ id?: string | undefined;
3335
3647
  imageAssignment?: {
3336
3648
  photoRefId: string;
3337
3649
  finalCrop: number[];
3338
3650
  } | undefined;
3339
- id?: string | undefined;
3340
3651
  horizJustification?: string | undefined;
3341
3652
  vertJustification?: string | null | undefined;
3342
3653
  text?: string | undefined;
@@ -3353,7 +3664,6 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3353
3664
  encryptId: string;
3354
3665
  photoId: string;
3355
3666
  photoMetadata: {
3356
- data: string | null;
3357
3667
  width: number;
3358
3668
  height: number;
3359
3669
  rotation: number;
@@ -3362,6 +3672,7 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3362
3672
  lly: number;
3363
3673
  urx: number;
3364
3674
  ury: number;
3675
+ data: string | null;
3365
3676
  title: string;
3366
3677
  effect: string;
3367
3678
  source: string;
@@ -3414,11 +3725,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3414
3725
  };
3415
3726
  seqNum: number;
3416
3727
  z: number;
3728
+ id?: string | undefined;
3417
3729
  imageAssignment?: {
3418
3730
  photoRefId: string;
3419
3731
  finalCrop: number[];
3420
3732
  } | undefined;
3421
- id?: string | undefined;
3422
3733
  horizJustification?: string | undefined;
3423
3734
  vertJustification?: string | null | undefined;
3424
3735
  text?: string | undefined;
@@ -3435,7 +3746,6 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3435
3746
  encryptId: string;
3436
3747
  photoId: string;
3437
3748
  photoMetadata: {
3438
- data: string | null;
3439
3749
  width: number;
3440
3750
  height: number;
3441
3751
  rotation: number;
@@ -3444,6 +3754,7 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3444
3754
  lly: number;
3445
3755
  urx: number;
3446
3756
  ury: number;
3757
+ data: string | null;
3447
3758
  title: string;
3448
3759
  effect: string;
3449
3760
  source: string;
@@ -3480,11 +3791,11 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3480
3791
  };
3481
3792
  seqNum: number;
3482
3793
  z: number;
3794
+ id?: string | undefined;
3483
3795
  imageAssignment?: {
3484
3796
  photoRefId: string;
3485
3797
  finalCrop: number[];
3486
3798
  } | undefined;
3487
- id?: string | undefined;
3488
3799
  horizJustification?: string | undefined;
3489
3800
  vertJustification?: string | null | undefined;
3490
3801
  text?: string | undefined;
@@ -3501,7 +3812,6 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3501
3812
  encryptId: string;
3502
3813
  photoId: string;
3503
3814
  photoMetadata: {
3504
- data: string | null;
3505
3815
  width: number;
3506
3816
  height: number;
3507
3817
  rotation: number;
@@ -3510,6 +3820,7 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3510
3820
  lly: number;
3511
3821
  urx: number;
3512
3822
  ury: number;
3823
+ data: string | null;
3513
3824
  title: string;
3514
3825
  effect: string;
3515
3826
  source: string;
@@ -3526,4 +3837,4 @@ declare const bookCreationRequestSchema: z.ZodObject<{
3526
3837
  }>;
3527
3838
  type BookCreationRequest = z.infer<typeof bookCreationRequestSchema>;
3528
3839
 
3529
- 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 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, 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 };
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 };