@magiclabs.ai/magicbook-client 0.7.5-canary.1 → 0.7.6-canary

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.cts CHANGED
@@ -1,34 +1,19 @@
1
- import { z, ZodTypeAny, ZodSchema } from 'zod';
1
+ import { z } from 'zod';
2
2
 
3
3
  declare const eventContextSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4
4
  type EventContext = z.infer<typeof eventContextSchema>;
5
5
 
6
- type CreateProps$1 = BaseEndpointProps & {
7
- book: Partial<Book>;
8
- };
9
- type RetrieveProps$3 = BaseEndpointProps & {
10
- bookId: string;
11
- };
12
- type DeleteProps$2 = RetrieveProps$3;
13
- type DesignProps = RetrieveProps$3;
14
- type CancelProps = RetrieveProps$3;
15
- type RetrieveGalleonProps = RetrieveProps$3;
16
- type UpdateProps$2 = BaseUpdateEndpointProps<Partial<Book>> & {
17
- bookId: string;
18
- };
19
- type ReportProps = RetrieveProps$3 & {
20
- report: BookReport;
21
- };
22
6
  declare class BooksEndpoints {
23
7
  private readonly engineAPI;
24
8
  constructor(engineAPI: EngineAPI);
25
- create({ book, qs }: CreateProps$1): Promise<Book>;
26
- retrieve({ bookId, qs }: RetrieveProps$3): Promise<Book>;
27
- update({ bookId, payload, qs }: UpdateProps$2): Promise<Book>;
28
- delete({ bookId, qs }: DeleteProps$2): Promise<void>;
29
- design({ bookId, qs }: DesignProps): Promise<Book>;
30
- cancel({ bookId, qs }: CancelProps): Promise<Book>;
31
- retrieveGalleon({ bookId, qs }: RetrieveGalleonProps): Promise<{
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<{
32
17
  title: string;
33
18
  binding: string;
34
19
  coverSpecId: string;
@@ -95,2377 +80,317 @@ declare class BooksEndpoints {
95
80
  }[];
96
81
  };
97
82
  }>;
98
- report({ bookId, report, qs }: ReportProps): Promise<void>;
99
83
  }
100
84
 
101
- type RetrieveProps$2 = BaseEndpointProps & {
102
- bookSize: BookSize;
103
- imageCount: number;
104
- imageFilteringLevel: ImageFilteringLevel;
105
- };
106
85
  declare class DesignOptionsEndpoints {
107
86
  private readonly engineAPI;
108
87
  constructor(engineAPI: EngineAPI);
109
- retrieve(props: RetrieveProps$2): Promise<{
88
+ retrieve(bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel): Promise<{
110
89
  densities: {
111
90
  low: {
112
- maxPageCount: number;
113
- minPageCount: number;
114
- maxImageCount: number;
115
- avgImageCount: number;
116
- minImageCount: number;
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;
117
96
  };
118
97
  medium: {
119
- maxPageCount: number;
120
- minPageCount: number;
121
- maxImageCount: number;
122
- avgImageCount: number;
123
- minImageCount: number;
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;
124
103
  };
125
104
  high: {
126
- maxPageCount: number;
127
- minPageCount: number;
128
- maxImageCount: number;
129
- avgImageCount: number;
130
- minImageCount: number;
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;
131
110
  };
132
111
  };
133
112
  }>;
134
113
  }
135
114
 
136
- declare const embellishmentTypes: readonly ["background", "band", "strip", "page-corner", "photo-corner", "frame", "t-point", "luggage-tag", "stamp", "tape", "postcard", "top-sticker", "bottom-sticker", "graphic-sticker", "text-sticker"];
137
- declare const embellishmentOrientations: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"];
138
- declare const embellishmentThicknesses: readonly ["thin", "thick", "normal"];
139
- declare const embellishmentStackings: readonly ["front", "back"];
140
- declare const embellishmentAnchorsSchema: z.ZodObject<{
141
- x0: z.ZodNumber;
142
- x1: z.ZodNumber;
143
- y0: z.ZodNumber;
144
- y1: z.ZodNumber;
145
- }, "strip", ZodTypeAny, {
146
- x0: number;
147
- x1: number;
148
- y0: number;
149
- y1: number;
150
- }, {
151
- x0: number;
152
- x1: number;
153
- y0: number;
154
- y1: number;
155
- }>;
156
- type EmbellishmentAnchors = z.infer<typeof embellishmentAnchorsSchema>;
157
- declare const embellishmentPhotoCornerAnchorsSchema: z.ZodObject<{
158
- x0: z.ZodNumber;
159
- y0: z.ZodNumber;
160
- }, "strip", ZodTypeAny, {
161
- x0: number;
162
- y0: number;
163
- }, {
164
- x0: number;
165
- y0: number;
166
- }>;
167
- type EmbellishmentPhotoCornerAnchors = z.infer<typeof embellishmentPhotoCornerAnchorsSchema>;
168
- declare const embellishmentBaseSchema: z.ZodObject<{
169
- id: z.ZodString;
170
- active: z.ZodBoolean;
171
- url: z.ZodString;
172
- name: z.ZodString;
173
- pattern: z.ZodString;
174
- primaryColor: z.ZodString;
175
- margin: z.ZodNumber;
176
- width: z.ZodNumber;
177
- height: z.ZodNumber;
178
- style: z.ZodString;
179
- }, "strip", ZodTypeAny, {
180
- name: string;
181
- width: number;
182
- height: number;
183
- id: string;
184
- url: string;
185
- style: string;
186
- active: boolean;
187
- pattern: string;
188
- primaryColor: string;
189
- margin: number;
190
- }, {
191
- name: string;
192
- width: number;
193
- height: number;
194
- id: string;
195
- url: string;
196
- style: string;
197
- active: boolean;
198
- pattern: string;
199
- primaryColor: string;
200
- margin: number;
201
- }>;
202
- type EmbellishmentBase = z.infer<typeof embellishmentBaseSchema>;
203
- declare const embellishmentTextStickerSchema: z.ZodObject<{
204
- name: z.ZodString;
205
- width: z.ZodNumber;
206
- height: z.ZodNumber;
207
- id: z.ZodString;
208
- url: z.ZodString;
209
- style: z.ZodString;
210
- active: z.ZodBoolean;
211
- pattern: z.ZodString;
212
- primaryColor: z.ZodString;
213
- margin: z.ZodNumber;
214
- type: z.ZodLiteral<"text-sticker">;
215
- text: z.ZodString;
216
- isSpecific: z.ZodBoolean;
217
- minSurface: z.ZodNumber;
218
- maxSurface: z.ZodNumber;
219
- }, "strip", ZodTypeAny, {
220
- type: "text-sticker";
221
- name: string;
222
- width: number;
223
- height: number;
224
- id: string;
225
- text: string;
226
- url: string;
227
- style: string;
228
- active: boolean;
229
- pattern: string;
230
- primaryColor: string;
231
- margin: number;
232
- isSpecific: boolean;
233
- minSurface: number;
234
- maxSurface: number;
235
- }, {
236
- type: "text-sticker";
237
- name: string;
238
- width: number;
239
- height: number;
240
- id: string;
241
- text: string;
242
- url: string;
243
- style: string;
244
- active: boolean;
245
- pattern: string;
246
- primaryColor: string;
247
- margin: number;
248
- isSpecific: boolean;
249
- minSurface: number;
250
- maxSurface: number;
251
- }>;
252
- type EmbellishmentTextSticker = z.infer<typeof embellishmentTextStickerSchema>;
253
- declare const embellishmentTPointSchema: z.ZodObject<{
254
- name: z.ZodString;
255
- width: z.ZodNumber;
256
- height: z.ZodNumber;
257
- id: z.ZodString;
258
- url: z.ZodString;
259
- style: z.ZodString;
260
- active: z.ZodBoolean;
261
- pattern: z.ZodString;
262
- primaryColor: z.ZodString;
263
- margin: z.ZodNumber;
264
- type: z.ZodLiteral<"t-point">;
265
- minSurface: z.ZodNumber;
266
- maxSurface: z.ZodNumber;
267
- }, "strip", ZodTypeAny, {
268
- type: "t-point";
269
- name: string;
270
- width: number;
271
- height: number;
272
- id: string;
273
- url: string;
274
- style: string;
275
- active: boolean;
276
- pattern: string;
277
- primaryColor: string;
278
- margin: number;
279
- minSurface: number;
280
- maxSurface: number;
281
- }, {
282
- type: "t-point";
283
- name: string;
284
- width: number;
285
- height: number;
286
- id: string;
287
- url: string;
288
- style: string;
289
- active: boolean;
290
- pattern: string;
291
- primaryColor: string;
292
- margin: number;
293
- minSurface: number;
294
- maxSurface: number;
295
- }>;
296
- type EmbellishmentTPoint = z.infer<typeof embellishmentTPointSchema>;
297
- declare const embellishmentGraphicStickerSchema: z.ZodObject<{
298
- name: z.ZodString;
299
- width: z.ZodNumber;
300
- height: z.ZodNumber;
301
- id: z.ZodString;
302
- url: z.ZodString;
303
- style: z.ZodString;
304
- active: z.ZodBoolean;
305
- pattern: z.ZodString;
306
- primaryColor: z.ZodString;
307
- margin: z.ZodNumber;
308
- type: z.ZodLiteral<"graphic-sticker">;
309
- minSurface: z.ZodNumber;
310
- maxSurface: z.ZodNumber;
311
- hFlippable: z.ZodBoolean;
312
- vFlippable: z.ZodBoolean;
313
- }, "strip", ZodTypeAny, {
314
- type: "graphic-sticker";
315
- name: string;
316
- width: number;
317
- height: number;
318
- id: string;
319
- url: string;
320
- style: string;
321
- active: boolean;
322
- pattern: string;
323
- primaryColor: string;
324
- margin: number;
325
- minSurface: number;
326
- maxSurface: number;
327
- hFlippable: boolean;
328
- vFlippable: boolean;
329
- }, {
330
- type: "graphic-sticker";
331
- name: string;
332
- width: number;
333
- height: number;
334
- id: string;
335
- url: string;
336
- style: string;
337
- active: boolean;
338
- pattern: string;
339
- primaryColor: string;
340
- margin: number;
341
- minSurface: number;
342
- maxSurface: number;
343
- hFlippable: boolean;
344
- vFlippable: boolean;
345
- }>;
346
- type EmbellishmentGraphicSticker = z.infer<typeof embellishmentGraphicStickerSchema>;
347
- declare const embellishmentStampSchema: z.ZodObject<{
348
- name: z.ZodString;
349
- width: z.ZodNumber;
350
- height: z.ZodNumber;
351
- id: z.ZodString;
352
- url: z.ZodString;
353
- style: z.ZodString;
354
- active: z.ZodBoolean;
355
- pattern: z.ZodString;
356
- primaryColor: z.ZodString;
357
- margin: z.ZodNumber;
358
- type: z.ZodLiteral<"stamp">;
359
- minSurface: z.ZodNumber;
360
- maxSurface: z.ZodNumber;
361
- hFlippable: z.ZodBoolean;
362
- vFlippable: z.ZodBoolean;
363
- }, "strip", ZodTypeAny, {
364
- type: "stamp";
365
- name: string;
366
- width: number;
367
- height: number;
368
- id: string;
369
- url: string;
370
- style: string;
371
- active: boolean;
372
- pattern: string;
373
- primaryColor: string;
374
- margin: number;
375
- minSurface: number;
376
- maxSurface: number;
377
- hFlippable: boolean;
378
- vFlippable: boolean;
379
- }, {
380
- type: "stamp";
381
- name: string;
382
- width: number;
383
- height: number;
384
- id: string;
385
- url: string;
386
- style: string;
387
- active: boolean;
388
- pattern: string;
389
- primaryColor: string;
390
- margin: number;
391
- minSurface: number;
392
- maxSurface: number;
393
- hFlippable: boolean;
394
- vFlippable: boolean;
395
- }>;
396
- type EmbellishmentStamp = z.infer<typeof embellishmentStampSchema>;
397
- declare const embellishmentTapeSchema: z.ZodObject<{
398
- name: z.ZodString;
399
- width: z.ZodNumber;
400
- height: z.ZodNumber;
401
- id: z.ZodString;
402
- url: z.ZodString;
403
- style: z.ZodString;
404
- active: z.ZodBoolean;
405
- pattern: z.ZodString;
406
- primaryColor: z.ZodString;
407
- margin: z.ZodNumber;
408
- type: z.ZodLiteral<"tape">;
409
- minSurface: z.ZodNumber;
410
- maxSurface: z.ZodNumber;
411
- hFlippable: z.ZodBoolean;
412
- vFlippable: z.ZodBoolean;
413
- }, "strip", ZodTypeAny, {
414
- type: "tape";
415
- name: string;
416
- width: number;
417
- height: number;
418
- id: string;
419
- url: string;
420
- style: string;
421
- active: boolean;
422
- pattern: string;
423
- primaryColor: string;
424
- margin: number;
425
- minSurface: number;
426
- maxSurface: number;
427
- hFlippable: boolean;
428
- vFlippable: boolean;
429
- }, {
430
- type: "tape";
431
- name: string;
432
- width: number;
433
- height: number;
434
- id: string;
435
- url: string;
436
- style: string;
437
- active: boolean;
438
- pattern: string;
439
- primaryColor: string;
440
- margin: number;
441
- minSurface: number;
442
- maxSurface: number;
443
- hFlippable: boolean;
444
- vFlippable: boolean;
445
- }>;
446
- type EmbellishmentTape = z.infer<typeof embellishmentTapeSchema>;
447
- declare const embellishmentPostcardSchema: z.ZodObject<{
448
- name: z.ZodString;
449
- width: z.ZodNumber;
450
- height: z.ZodNumber;
451
- id: z.ZodString;
452
- url: z.ZodString;
453
- style: z.ZodString;
454
- active: z.ZodBoolean;
455
- pattern: z.ZodString;
456
- primaryColor: z.ZodString;
457
- margin: z.ZodNumber;
458
- type: z.ZodLiteral<"postcard">;
459
- minSurface: z.ZodNumber;
460
- maxSurface: z.ZodNumber;
461
- hFlippable: z.ZodBoolean;
462
- vFlippable: z.ZodBoolean;
463
- }, "strip", ZodTypeAny, {
464
- type: "postcard";
465
- name: string;
466
- width: number;
467
- height: number;
468
- id: string;
469
- url: string;
470
- style: string;
471
- active: boolean;
472
- pattern: string;
473
- primaryColor: string;
474
- margin: number;
475
- minSurface: number;
476
- maxSurface: number;
477
- hFlippable: boolean;
478
- vFlippable: boolean;
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;
479
221
  }, {
480
- type: "postcard";
481
- name: string;
482
- width: number;
483
- height: number;
484
- id: string;
485
- url: string;
486
- style: string;
487
- active: boolean;
488
- pattern: string;
489
- primaryColor: string;
490
- margin: number;
491
- minSurface: number;
492
- maxSurface: number;
493
- hFlippable: boolean;
494
- vFlippable: boolean;
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;
495
236
  }>;
496
- type EmbellishmentPostcard = z.infer<typeof embellishmentPostcardSchema>;
497
- declare const embellishmentBandSchema: z.ZodObject<{
498
- name: z.ZodString;
499
- width: z.ZodNumber;
500
- height: z.ZodNumber;
501
- id: z.ZodString;
502
- url: z.ZodString;
503
- style: z.ZodString;
504
- active: z.ZodBoolean;
505
- pattern: z.ZodString;
506
- primaryColor: z.ZodString;
507
- margin: z.ZodNumber;
508
- type: z.ZodLiteral<"band">;
509
- orientation: z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>;
510
- orientations: z.ZodArray<z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>, "many">;
511
- thickness: z.ZodEnum<["thin", "thick", "normal"]>;
512
- }, "strip", ZodTypeAny, {
513
- type: "band";
514
- name: string;
515
- width: number;
516
- height: number;
517
- id: string;
518
- url: string;
519
- style: string;
520
- active: boolean;
521
- pattern: string;
522
- primaryColor: string;
523
- margin: number;
524
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
525
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
526
- thickness: "thin" | "thick" | "normal";
527
- }, {
528
- type: "band";
529
- name: string;
530
- width: number;
531
- height: number;
532
- id: string;
533
- url: string;
534
- style: string;
535
- active: boolean;
536
- pattern: string;
537
- primaryColor: string;
538
- margin: number;
539
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
540
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
541
- thickness: "thin" | "thick" | "normal";
542
- }>;
543
- type EmbellishmentBand = z.infer<typeof embellishmentBandSchema>;
544
- declare const embellishmentStripSchema: z.ZodObject<{
545
- name: z.ZodString;
546
- width: z.ZodNumber;
547
- height: z.ZodNumber;
548
- id: z.ZodString;
549
- url: z.ZodString;
550
- style: z.ZodString;
551
- active: z.ZodBoolean;
552
- pattern: z.ZodString;
553
- primaryColor: z.ZodString;
554
- margin: z.ZodNumber;
555
- type: z.ZodLiteral<"strip">;
556
- orientation: z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>;
557
- orientations: z.ZodArray<z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>, "many">;
558
- thickness: z.ZodEnum<["thin", "thick", "normal"]>;
559
- }, "strip", ZodTypeAny, {
560
- type: "strip";
561
- name: string;
562
- width: number;
563
- height: number;
564
- id: string;
565
- url: string;
566
- style: string;
567
- active: boolean;
568
- pattern: string;
569
- primaryColor: string;
570
- margin: number;
571
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
572
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
573
- thickness: "thin" | "thick" | "normal";
574
- }, {
575
- type: "strip";
576
- name: string;
577
- width: number;
578
- height: number;
579
- id: string;
580
- url: string;
581
- style: string;
582
- active: boolean;
583
- pattern: string;
584
- primaryColor: string;
585
- margin: number;
586
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
587
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
588
- thickness: "thin" | "thick" | "normal";
589
- }>;
590
- type EmbellishmentStrip = z.infer<typeof embellishmentStripSchema>;
591
- declare const embellishmentPhotoCornerSchema: z.ZodObject<{
592
- name: z.ZodString;
593
- width: z.ZodNumber;
594
- height: z.ZodNumber;
595
- id: z.ZodString;
596
- url: z.ZodString;
597
- style: z.ZodString;
598
- active: z.ZodBoolean;
599
- pattern: z.ZodString;
600
- primaryColor: z.ZodString;
601
- margin: z.ZodNumber;
602
- type: z.ZodLiteral<"photo-corner">;
603
- orientation: z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>;
604
- orientations: z.ZodArray<z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>, "many">;
605
- anchors: z.ZodObject<{
606
- x0: z.ZodNumber;
607
- y0: z.ZodNumber;
608
- }, "strip", ZodTypeAny, {
609
- x0: number;
610
- y0: number;
611
- }, {
612
- x0: number;
613
- y0: number;
614
- }>;
615
- stacking: z.ZodEnum<["front", "back"]>;
616
- scale: z.ZodNumber;
617
- }, "strip", ZodTypeAny, {
618
- type: "photo-corner";
619
- name: string;
620
- width: number;
621
- height: number;
622
- id: string;
623
- url: string;
624
- style: string;
625
- active: boolean;
626
- pattern: string;
627
- primaryColor: string;
628
- margin: number;
629
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
630
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
631
- anchors: {
632
- x0: number;
633
- y0: number;
634
- };
635
- stacking: "front" | "back";
636
- scale: number;
637
- }, {
638
- type: "photo-corner";
639
- name: string;
640
- width: number;
641
- height: number;
642
- id: string;
643
- url: string;
644
- style: string;
645
- active: boolean;
646
- pattern: string;
647
- primaryColor: string;
648
- margin: number;
649
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
650
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
651
- anchors: {
652
- x0: number;
653
- y0: number;
654
- };
655
- stacking: "front" | "back";
656
- scale: number;
657
- }>;
658
- type EmbellishmentPhotoCorner = z.infer<typeof embellishmentPhotoCornerSchema>;
659
- declare const embellishmentPageCornerSchema: z.ZodObject<{
660
- name: z.ZodString;
661
- width: z.ZodNumber;
662
- height: z.ZodNumber;
663
- id: z.ZodString;
664
- url: z.ZodString;
665
- style: z.ZodString;
666
- active: z.ZodBoolean;
667
- pattern: z.ZodString;
668
- primaryColor: z.ZodString;
669
- margin: z.ZodNumber;
670
- type: z.ZodLiteral<"page-corner">;
671
- orientation: z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>;
672
- orientations: z.ZodArray<z.ZodEnum<["top", "bottom", "left", "right", "top-left", "top-right", "bottom-right", "bottom-left"]>, "many">;
673
- scale: z.ZodNumber;
674
- }, "strip", ZodTypeAny, {
675
- type: "page-corner";
676
- name: string;
677
- width: number;
678
- height: number;
679
- id: string;
680
- url: string;
681
- style: string;
682
- active: boolean;
683
- pattern: string;
684
- primaryColor: string;
685
- margin: number;
686
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
687
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
688
- scale: number;
689
- }, {
690
- type: "page-corner";
691
- name: string;
692
- width: number;
693
- height: number;
694
- id: string;
695
- url: string;
696
- style: string;
697
- active: boolean;
698
- pattern: string;
699
- primaryColor: string;
700
- margin: number;
701
- orientation: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
702
- orientations: ("top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-right" | "bottom-left")[];
703
- scale: number;
704
- }>;
705
- type EmbellishmentPageCorner = z.infer<typeof embellishmentPageCornerSchema>;
706
- declare const embellishmentFrameSchema: z.ZodObject<{
707
- name: z.ZodString;
708
- width: z.ZodNumber;
709
- height: z.ZodNumber;
710
- id: z.ZodString;
711
- url: z.ZodString;
712
- style: z.ZodString;
713
- active: z.ZodBoolean;
714
- pattern: z.ZodString;
715
- primaryColor: z.ZodString;
716
- margin: z.ZodNumber;
717
- type: z.ZodLiteral<"frame">;
718
- rotatable: z.ZodBoolean;
719
- anchors: z.ZodObject<{
720
- x0: z.ZodNumber;
721
- x1: z.ZodNumber;
722
- y0: z.ZodNumber;
723
- y1: z.ZodNumber;
724
- }, "strip", ZodTypeAny, {
725
- x0: number;
726
- x1: number;
727
- y0: number;
728
- y1: number;
729
- }, {
730
- x0: number;
731
- x1: number;
732
- y0: number;
733
- y1: number;
734
- }>;
735
- stacking: z.ZodEnum<["front", "back"]>;
736
- }, "strip", ZodTypeAny, {
737
- type: "frame";
738
- name: string;
739
- width: number;
740
- height: number;
741
- id: string;
742
- url: string;
743
- style: string;
744
- active: boolean;
745
- pattern: string;
746
- primaryColor: string;
747
- margin: number;
748
- anchors: {
749
- x0: number;
750
- x1: number;
751
- y0: number;
752
- y1: number;
753
- };
754
- stacking: "front" | "back";
755
- rotatable: boolean;
756
- }, {
757
- type: "frame";
758
- name: string;
759
- width: number;
760
- height: number;
761
- id: string;
762
- url: string;
763
- style: string;
764
- active: boolean;
765
- pattern: string;
766
- primaryColor: string;
767
- margin: number;
768
- anchors: {
769
- x0: number;
770
- x1: number;
771
- y0: number;
772
- y1: number;
773
- };
774
- stacking: "front" | "back";
775
- rotatable: boolean;
776
- }>;
777
- type EmbellishmentFrame = z.infer<typeof embellishmentFrameSchema>;
778
- declare const embellishmentBackgroundListSchema: z.ZodObject<{
779
- name: z.ZodString;
780
- width: z.ZodNumber;
781
- height: z.ZodNumber;
782
- id: z.ZodString;
783
- url: z.ZodString;
784
- style: z.ZodString;
785
- active: z.ZodBoolean;
786
- pattern: z.ZodString;
787
- primaryColor: z.ZodString;
788
- margin: z.ZodNumber;
789
- type: z.ZodLiteral<"background">;
790
- rotatable: z.ZodBoolean;
791
- }, "strip", ZodTypeAny, {
792
- type: "background";
793
- name: string;
794
- width: number;
795
- height: number;
796
- id: string;
797
- url: string;
798
- style: string;
799
- active: boolean;
800
- pattern: string;
801
- primaryColor: string;
802
- margin: number;
803
- rotatable: boolean;
804
- }, {
805
- type: "background";
806
- name: string;
807
- width: number;
808
- height: number;
809
- id: string;
810
- url: string;
811
- style: string;
812
- active: boolean;
813
- pattern: string;
814
- primaryColor: string;
815
- margin: number;
816
- rotatable: boolean;
817
- }>;
818
- type EmbellishmentBackgroundList = z.infer<typeof embellishmentBackgroundListSchema>;
819
- declare const embellishmentBackgroundSchema: z.ZodObject<{
820
- type: z.ZodLiteral<"background">;
821
- name: z.ZodString;
822
- width: z.ZodNumber;
823
- height: z.ZodNumber;
824
- id: z.ZodString;
825
- url: z.ZodString;
826
- style: z.ZodString;
827
- active: z.ZodBoolean;
828
- pattern: z.ZodString;
829
- primaryColor: z.ZodString;
830
- margin: z.ZodNumber;
831
- rotatable: z.ZodBoolean;
832
- colors: z.ZodRecord<z.ZodString, z.ZodUnknown>;
833
- backgrounds: z.ZodRecord<z.ZodString, z.ZodUnknown>;
834
- }, "strip", ZodTypeAny, {
835
- type: "background";
836
- name: string;
837
- width: number;
838
- height: number;
839
- id: string;
840
- url: string;
841
- style: string;
842
- active: boolean;
843
- pattern: string;
844
- primaryColor: string;
845
- margin: number;
846
- rotatable: boolean;
847
- colors: Record<string, unknown>;
848
- backgrounds: Record<string, unknown>;
849
- }, {
850
- type: "background";
851
- name: string;
852
- width: number;
853
- height: number;
854
- id: string;
855
- url: string;
856
- style: string;
857
- active: boolean;
858
- pattern: string;
859
- primaryColor: string;
860
- margin: number;
861
- rotatable: boolean;
862
- colors: Record<string, unknown>;
863
- backgrounds: Record<string, unknown>;
864
- }>;
865
- type EmbellishmentBackground = z.infer<typeof embellishmentBackgroundSchema>;
866
- declare const embellishmentSchemas: z.ZodUnion<readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>;
867
- type Embellishment = z.infer<typeof embellishmentSchemas>;
868
- declare const embellishmentUpdateSchemas: z.ZodUnion<readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>;
869
- type EmbellishmentUpdate = z.infer<typeof embellishmentUpdateSchemas>;
870
- declare const embellishmentListSchemas: z.ZodUnion<readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>;
871
- type EmbellishmentList = z.infer<typeof embellishmentListSchemas>;
872
-
873
- type EmbellishmentListForStyleProps = BaseEndpointProps & {
874
- styleSlug: string;
875
- };
876
- type EmbellishmentForStyleProps = EmbellishmentListForStyleProps & {
877
- embellishmentId: string;
878
- };
879
- type EmbellishmentUpdateType = z.infer<typeof embellishmentUpdateSchemas>;
880
- type UpdateEmbellishmentProps<T> = BaseUpdateEndpointProps<Partial<T>> & EmbellishmentForStyleProps;
881
- type BatchUpdateEmbellishmentsProps = BaseUpdateEndpointProps<Array<Partial<EmbellishmentUpdateType>>>;
882
- declare const embellishmentPaginatedSchema: z.ZodObject<{
883
- count: z.ZodNumber;
884
- nextCursor: z.ZodNullable<z.ZodString>;
885
- previousCursor: z.ZodOptional<z.ZodString>;
886
- results: z.ZodArray<z.ZodUnion<readonly [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]>, "many">;
887
- }, "strip", z.ZodTypeAny, {
888
- count: number;
889
- nextCursor: string | null;
890
- results: any[];
891
- previousCursor?: string | undefined;
892
- }, {
893
- count: number;
894
- nextCursor: string | null;
895
- results: any[];
896
- previousCursor?: string | undefined;
897
- }>;
898
- type EmbellishmentListReturnType = z.infer<typeof embellishmentPaginatedSchema>;
899
- type EmbellishmentReturnType = z.infer<typeof embellishmentSchemas>;
900
- declare class EmbellishmentsEndpoints {
901
- private readonly engineAPI;
902
- constructor(engineAPI: EngineAPI);
903
- list({ styleSlug, qs }: EmbellishmentListForStyleProps): Promise<EmbellishmentListReturnType>;
904
- retrieve<T extends EmbellishmentForStyleProps>({ styleSlug, embellishmentId, qs }: T): Promise<EmbellishmentReturnType>;
905
- update<T extends UpdateEmbellishmentProps<z.infer<typeof embellishmentUpdateSchemas>>>({ styleSlug, embellishmentId, payload }: T): Promise<EmbellishmentReturnType>;
906
- }
907
-
908
- type ListBookEventsProps = BaseEndpointProps & {
909
- bookId: string;
910
- };
911
- type CreateBookEventProps = BaseEndpointProps & {
912
- bookId: string;
913
- name: string;
914
- data?: EventContext;
915
- };
916
- type DeleteBookEventProps = BaseEndpointProps & {
917
- bookId: string;
918
- name: string;
919
- };
920
- declare class EventsEndpoints {
921
- private readonly engineAPI;
922
- constructor(engineAPI: EngineAPI);
923
- listBookEvents({ bookId, qs }: ListBookEventsProps): Promise<{
924
- count: number;
925
- nextCursor: string | null;
926
- results: {
927
- name: string;
928
- bookId: string;
929
- createdAt: string;
930
- context?: Record<string, unknown> | undefined;
931
- }[];
932
- previousCursor?: string | undefined;
933
- }>;
934
- createBookEvent({ name, data, bookId, qs }: CreateBookEventProps): Promise<{
935
- name: string;
936
- bookId: string;
937
- createdAt: string;
938
- context?: Record<string, unknown> | undefined;
939
- }>;
940
- deleteBookEvent({ name, bookId, qs }: DeleteBookEventProps): Promise<void>;
941
- }
942
-
943
- type CallProps = {
944
- path: string;
945
- qs?: string;
946
- options?: RequestInit;
947
- apiKey?: string;
948
- };
949
- declare class Fetcher {
950
- baseUrl: URL;
951
- options: RequestInit;
952
- constructor(baseUrl: string, options?: RequestInit | undefined);
953
- call<T>(props: CallProps): Promise<T>;
954
- cleanUrl(url: string): string;
955
- }
956
-
957
- declare const fontPaginatedSchema: z.ZodObject<{
958
- count: z.ZodNumber;
959
- nextCursor: z.ZodNullable<z.ZodString>;
960
- previousCursor: z.ZodOptional<z.ZodString>;
961
- results: z.ZodArray<z.ZodObject<{
962
- slug: z.ZodString;
963
- family: z.ZodString;
964
- }, "strip", z.ZodTypeAny, {
965
- family: string;
966
- slug: string;
967
- }, {
968
- family: string;
969
- slug: string;
970
- }>, "many">;
971
- }, "strip", z.ZodTypeAny, {
972
- count: number;
973
- nextCursor: string | null;
974
- results: {
975
- family: string;
976
- slug: string;
977
- }[];
978
- previousCursor?: string | undefined;
979
- }, {
980
- count: number;
981
- nextCursor: string | null;
982
- results: {
983
- family: string;
984
- slug: string;
985
- }[];
986
- previousCursor?: string | undefined;
987
- }>;
988
- type FontListReturnType = z.infer<typeof fontPaginatedSchema>;
989
- declare class FontsEndpoints {
990
- private readonly engineAPI;
991
- constructor(engineAPI: EngineAPI);
992
- list<T extends BaseEndpointProps>(props?: T): Promise<FontListReturnType>;
993
- }
237
+ type SpreadServer = z.infer<typeof spreadServerSchema>;
994
238
 
995
- type ListProps$1 = BaseEndpointProps & {
996
- bookId: string;
997
- };
998
- type AddToBookProps = BaseEndpointProps & {
999
- bookId: string;
1000
- image: ImageServer;
1001
- };
1002
- type RetrieveProps$1 = BaseEndpointProps & {
1003
- bookId: string;
1004
- imageId: string;
1005
- };
1006
- type UpdateProps$1 = BaseUpdateEndpointProps<Partial<ImageServer>> & {
1007
- bookId: string;
1008
- imageId: string;
1009
- };
1010
- type DeleteProps$1 = BaseEndpointProps & {
1011
- bookId: string;
1012
- imageId: string;
1013
- };
1014
- declare class ImagesEndpoints {
239
+ declare class SpreadsEndpoints {
1015
240
  private readonly engineAPI;
1016
241
  constructor(engineAPI: EngineAPI);
1017
- list({ bookId, qs }: ListProps$1): Promise<{
1018
- width: number;
1019
- height: number;
1020
- url: string;
1021
- orientation: number;
1022
- handle: string;
1023
- taken_at: string;
1024
- filename: string;
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;
1025
251
  id?: string | undefined;
1026
- camera_make?: string | undefined;
1027
- camera?: string | undefined;
252
+ width?: number | undefined;
253
+ height?: number | undefined;
254
+ background?: unknown;
255
+ metadata?: unknown;
256
+ url?: string | null | undefined;
1028
257
  }[]>;
1029
- addToBook({ bookId, image, qs }: AddToBookProps): Promise<{
1030
- width: number;
1031
- height: number;
1032
- url: string;
1033
- orientation: number;
1034
- handle: string;
1035
- taken_at: string;
1036
- filename: string;
1037
- id?: string | undefined;
1038
- camera_make?: string | undefined;
1039
- camera?: string | undefined;
1040
- }>;
1041
- retrieve({ bookId, imageId, qs }: RetrieveProps$1): Promise<{
1042
- width: number;
1043
- height: number;
1044
- url: string;
1045
- orientation: number;
1046
- handle: string;
1047
- taken_at: string;
1048
- filename: string;
1049
- id?: string | undefined;
1050
- camera_make?: string | undefined;
1051
- camera?: string | undefined;
1052
- }>;
1053
- update({ bookId, imageId, payload, qs }: UpdateProps$1): Promise<{
1054
- width: number;
1055
- height: number;
1056
- url: string;
1057
- orientation: number;
1058
- handle: string;
1059
- taken_at: string;
1060
- filename: string;
1061
- id?: string | undefined;
1062
- camera_make?: string | undefined;
1063
- camera?: string | undefined;
1064
- }>;
1065
- delete({ bookId, imageId, qs }: DeleteProps$1): Promise<void>;
1066
- }
1067
-
1068
- declare const spreadServerSchema: z.ZodObject<{
1069
- id: z.ZodOptional<z.ZodString>;
1070
- book_id: z.ZodString;
1071
- state: z.ZodString;
1072
- spread_type: z.ZodString;
1073
- width: z.ZodOptional<z.ZodNumber>;
1074
- height: z.ZodOptional<z.ZodNumber>;
1075
- sequence: z.ZodNumber;
1076
- wells: z.ZodArray<z.ZodUnknown, "many">;
1077
- background: z.ZodUnknown;
1078
- laid_out_at: z.ZodNullable<z.ZodString>;
1079
- embellished_at: z.ZodNullable<z.ZodString>;
1080
- polished_at: z.ZodNullable<z.ZodString>;
1081
- metadata: z.ZodUnknown;
1082
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1083
- }, "strip", z.ZodTypeAny, {
1084
- state: string;
1085
- book_id: string;
1086
- spread_type: string;
1087
- sequence: number;
1088
- wells: unknown[];
1089
- laid_out_at: string | null;
1090
- embellished_at: string | null;
1091
- polished_at: string | null;
1092
- id?: string | undefined;
1093
- width?: number | undefined;
1094
- height?: number | undefined;
1095
- background?: unknown;
1096
- metadata?: unknown;
1097
- url?: string | null | undefined;
1098
- }, {
1099
- state: string;
1100
- book_id: string;
1101
- spread_type: string;
1102
- sequence: number;
1103
- wells: unknown[];
1104
- laid_out_at: string | null;
1105
- embellished_at: string | null;
1106
- polished_at: string | null;
1107
- id?: string | undefined;
1108
- width?: number | undefined;
1109
- height?: number | undefined;
1110
- background?: unknown;
1111
- metadata?: unknown;
1112
- url?: string | null | undefined;
1113
- }>;
1114
- type SpreadServer = z.infer<typeof spreadServerSchema>;
1115
- declare const spreadSchema: z.ZodObject<{
1116
- id: z.ZodOptional<z.ZodString>;
1117
- bookId: z.ZodString;
1118
- state: z.ZodString;
1119
- spreadType: z.ZodString;
1120
- width: z.ZodOptional<z.ZodNumber>;
1121
- height: z.ZodOptional<z.ZodNumber>;
1122
- sequence: z.ZodNumber;
1123
- wells: z.ZodArray<z.ZodUnknown, "many">;
1124
- background: z.ZodUnknown;
1125
- laidOutAt: z.ZodNullable<z.ZodString>;
1126
- embellishedAt: z.ZodNullable<z.ZodString>;
1127
- polishedAt: z.ZodNullable<z.ZodString>;
1128
- metadata: z.ZodUnknown;
1129
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1130
- }, "strip", z.ZodTypeAny, {
1131
- bookId: string;
1132
- state: string;
1133
- sequence: number;
1134
- wells: unknown[];
1135
- spreadType: string;
1136
- laidOutAt: string | null;
1137
- embellishedAt: string | null;
1138
- polishedAt: string | null;
1139
- id?: string | undefined;
1140
- width?: number | undefined;
1141
- height?: number | undefined;
1142
- background?: unknown;
1143
- metadata?: unknown;
1144
- url?: string | null | undefined;
1145
- }, {
1146
- bookId: string;
1147
- state: string;
1148
- sequence: number;
1149
- wells: unknown[];
1150
- spreadType: string;
1151
- laidOutAt: string | null;
1152
- embellishedAt: string | null;
1153
- polishedAt: string | null;
1154
- id?: string | undefined;
1155
- width?: number | undefined;
1156
- height?: number | undefined;
1157
- background?: unknown;
1158
- metadata?: unknown;
1159
- url?: string | null | undefined;
1160
- }>;
1161
- type Spread = z.infer<typeof spreadSchema>;
1162
-
1163
- type ListProps = BaseEndpointProps & {
1164
- bookId: string;
1165
- };
1166
- type CreateProps = BaseEndpointProps & {
1167
- bookId: string;
1168
- spread: Partial<SpreadServer>;
1169
- };
1170
- type RetrieveProps = BaseEndpointProps & {
1171
- bookId: string;
1172
- spreadId: string;
1173
- };
1174
- type UpdateProps = BaseUpdateEndpointProps<Partial<SpreadServer>> & {
1175
- bookId: string;
1176
- spreadId: string;
1177
- };
1178
- type DeleteProps = BaseEndpointProps & {
1179
- bookId: string;
1180
- spreadId: string;
1181
- };
1182
- declare class SpreadsEndpoints {
1183
- private readonly engineAPI;
1184
- constructor(engineAPI: EngineAPI);
1185
- list({ bookId, qs }: ListProps): Promise<{
1186
- bookId: string;
1187
- state: string;
1188
- sequence: number;
1189
- wells: unknown[];
1190
- spreadType: string;
1191
- laidOutAt: string | null;
1192
- embellishedAt: string | null;
1193
- polishedAt: string | null;
1194
- id?: string | undefined;
1195
- width?: number | undefined;
1196
- height?: number | undefined;
1197
- background?: unknown;
1198
- metadata?: unknown;
1199
- url?: string | null | undefined;
1200
- }[]>;
1201
- create({ bookId, spread, qs }: CreateProps): Promise<{
1202
- bookId: string;
1203
- state: string;
1204
- sequence: number;
1205
- wells: unknown[];
1206
- spreadType: string;
1207
- laidOutAt: string | null;
1208
- embellishedAt: string | null;
1209
- polishedAt: string | null;
1210
- id?: string | undefined;
1211
- width?: number | undefined;
1212
- height?: number | undefined;
1213
- background?: unknown;
1214
- metadata?: unknown;
1215
- url?: string | null | undefined;
1216
- }>;
1217
- retrieve({ bookId, spreadId, qs }: RetrieveProps): Promise<{
1218
- bookId: string;
1219
- state: string;
1220
- sequence: number;
1221
- wells: unknown[];
1222
- spreadType: string;
1223
- laidOutAt: string | null;
1224
- embellishedAt: string | null;
1225
- polishedAt: string | null;
1226
- id?: string | undefined;
1227
- width?: number | undefined;
1228
- height?: number | undefined;
1229
- background?: unknown;
1230
- metadata?: unknown;
1231
- url?: string | null | undefined;
1232
- }>;
1233
- update({ bookId, spreadId, payload, qs }: UpdateProps): Promise<{
1234
- bookId: string;
258
+ create(bookId: string, spread: SpreadServer): Promise<{
1235
259
  state: string;
1236
- sequence: number;
1237
- wells: unknown[];
1238
- spreadType: string;
1239
- laidOutAt: string | null;
1240
- embellishedAt: string | null;
1241
- polishedAt: string | null;
1242
- id?: string | undefined;
1243
- width?: number | undefined;
1244
- height?: number | undefined;
1245
- background?: unknown;
1246
- metadata?: unknown;
1247
- url?: string | null | undefined;
1248
- }>;
1249
- delete({ bookId, spreadId, qs }: DeleteProps): Promise<void>;
1250
- }
1251
-
1252
- declare const StoryboardItemImageFaceSchema: z.ZodObject<{
1253
- score: z.ZodNumber;
1254
- boundingBox: z.ZodObject<{
1255
- x: z.ZodNumber;
1256
- y: z.ZodNumber;
1257
- width: z.ZodNumber;
1258
- height: z.ZodNumber;
1259
- }, "strip", z.ZodTypeAny, {
1260
- x: number;
1261
- y: number;
1262
- width: number;
1263
- height: number;
1264
- }, {
1265
- x: number;
1266
- y: number;
1267
- width: number;
1268
- height: number;
1269
- }>;
1270
- size: z.ZodNumber;
1271
- eyesOpenScore: z.ZodNumber;
1272
- smileScore: z.ZodNumber;
1273
- facingCameraScore: z.ZodNumber;
1274
- }, "strip", z.ZodTypeAny, {
1275
- score: number;
1276
- boundingBox: {
1277
- x: number;
1278
- y: number;
1279
- width: number;
1280
- height: number;
1281
- };
1282
- size: number;
1283
- eyesOpenScore: number;
1284
- smileScore: number;
1285
- facingCameraScore: number;
1286
- }, {
1287
- score: number;
1288
- boundingBox: {
1289
- x: number;
1290
- y: number;
1291
- width: number;
1292
- height: number;
1293
- };
1294
- size: number;
1295
- eyesOpenScore: number;
1296
- smileScore: number;
1297
- facingCameraScore: number;
1298
- }>;
1299
- declare const StoryboardItemImageSchema: z.ZodObject<{
1300
- id: z.ZodString;
1301
- url: z.ZodString;
1302
- category: z.ZodString;
1303
- aesthetics: z.ZodObject<{
1304
- score: z.ZodNumber;
1305
- scoreWithoutDistance: z.ZodNumber;
1306
- }, "strip", z.ZodTypeAny, {
1307
- score: number;
1308
- scoreWithoutDistance: number;
1309
- }, {
1310
- score: number;
1311
- scoreWithoutDistance: number;
1312
- }>;
1313
- faces: z.ZodArray<z.ZodObject<{
1314
- score: z.ZodNumber;
1315
- boundingBox: z.ZodObject<{
1316
- x: z.ZodNumber;
1317
- y: z.ZodNumber;
1318
- width: z.ZodNumber;
1319
- height: z.ZodNumber;
1320
- }, "strip", z.ZodTypeAny, {
1321
- x: number;
1322
- y: number;
1323
- width: number;
1324
- height: number;
1325
- }, {
1326
- x: number;
1327
- y: number;
1328
- width: number;
1329
- height: number;
1330
- }>;
1331
- size: z.ZodNumber;
1332
- eyesOpenScore: z.ZodNumber;
1333
- smileScore: z.ZodNumber;
1334
- facingCameraScore: z.ZodNumber;
1335
- }, "strip", z.ZodTypeAny, {
1336
- score: number;
1337
- boundingBox: {
1338
- x: number;
1339
- y: number;
1340
- width: number;
1341
- height: number;
1342
- };
1343
- size: number;
1344
- eyesOpenScore: number;
1345
- smileScore: number;
1346
- facingCameraScore: number;
1347
- }, {
1348
- score: number;
1349
- boundingBox: {
1350
- x: number;
1351
- y: number;
1352
- width: number;
1353
- height: number;
1354
- };
1355
- size: number;
1356
- eyesOpenScore: number;
1357
- smileScore: number;
1358
- facingCameraScore: number;
1359
- }>, "many">;
1360
- roi: z.ZodObject<{
1361
- x: z.ZodNumber;
1362
- y: z.ZodNumber;
1363
- width: z.ZodNumber;
1364
- height: z.ZodNumber;
1365
- }, "strip", z.ZodTypeAny, {
1366
- x: number;
1367
- y: number;
1368
- width: number;
1369
- height: number;
1370
- }, {
1371
- x: number;
1372
- y: number;
1373
- width: number;
1374
- height: number;
1375
- }>;
1376
- takenAt: z.ZodNumber;
1377
- width: z.ZodNumber;
1378
- height: z.ZodNumber;
1379
- }, "strip", z.ZodTypeAny, {
1380
- width: number;
1381
- height: number;
1382
- id: string;
1383
- url: string;
1384
- category: string;
1385
- aesthetics: {
1386
- score: number;
1387
- scoreWithoutDistance: number;
1388
- };
1389
- faces: {
1390
- score: number;
1391
- boundingBox: {
1392
- x: number;
1393
- y: number;
1394
- width: number;
1395
- height: number;
1396
- };
1397
- size: number;
1398
- eyesOpenScore: number;
1399
- smileScore: number;
1400
- facingCameraScore: number;
1401
- }[];
1402
- roi: {
1403
- x: number;
1404
- y: number;
1405
- width: number;
1406
- height: number;
1407
- };
1408
- takenAt: number;
1409
- }, {
1410
- width: number;
1411
- height: number;
1412
- id: string;
1413
- url: string;
1414
- category: string;
1415
- aesthetics: {
1416
- score: number;
1417
- scoreWithoutDistance: number;
1418
- };
1419
- faces: {
1420
- score: number;
1421
- boundingBox: {
1422
- x: number;
1423
- y: number;
1424
- width: number;
1425
- height: number;
1426
- };
1427
- size: number;
1428
- eyesOpenScore: number;
1429
- smileScore: number;
1430
- facingCameraScore: number;
1431
- }[];
1432
- roi: {
1433
- x: number;
1434
- y: number;
1435
- width: number;
1436
- height: number;
1437
- };
1438
- takenAt: number;
1439
- }>;
1440
- declare const StoryboardItemSchema: z.ZodObject<{
1441
- id: z.ZodString;
1442
- sequence: z.ZodNumber;
1443
- bookId: z.ZodString;
1444
- similarity: z.ZodNumber;
1445
- duplicate: z.ZodBoolean;
1446
- selected: z.ZodBoolean;
1447
- surfaceWeight: z.ZodNumber;
1448
- frontCover: z.ZodOptional<z.ZodBoolean>;
1449
- backCover: z.ZodOptional<z.ZodBoolean>;
1450
- scene: z.ZodNumber;
1451
- subscene: z.ZodNumber;
1452
- spineBreak: z.ZodOptional<z.ZodBoolean>;
1453
- image: z.ZodObject<{
1454
- id: z.ZodString;
1455
- url: z.ZodString;
1456
- category: z.ZodString;
1457
- aesthetics: z.ZodObject<{
1458
- score: z.ZodNumber;
1459
- scoreWithoutDistance: z.ZodNumber;
1460
- }, "strip", z.ZodTypeAny, {
1461
- score: number;
1462
- scoreWithoutDistance: number;
1463
- }, {
1464
- score: number;
1465
- scoreWithoutDistance: number;
1466
- }>;
1467
- faces: z.ZodArray<z.ZodObject<{
1468
- score: z.ZodNumber;
1469
- boundingBox: z.ZodObject<{
1470
- x: z.ZodNumber;
1471
- y: z.ZodNumber;
1472
- width: z.ZodNumber;
1473
- height: z.ZodNumber;
1474
- }, "strip", z.ZodTypeAny, {
1475
- x: number;
1476
- y: number;
1477
- width: number;
1478
- height: number;
1479
- }, {
1480
- x: number;
1481
- y: number;
1482
- width: number;
1483
- height: number;
1484
- }>;
1485
- size: z.ZodNumber;
1486
- eyesOpenScore: z.ZodNumber;
1487
- smileScore: z.ZodNumber;
1488
- facingCameraScore: z.ZodNumber;
1489
- }, "strip", z.ZodTypeAny, {
1490
- score: number;
1491
- boundingBox: {
1492
- x: number;
1493
- y: number;
1494
- width: number;
1495
- height: number;
1496
- };
1497
- size: number;
1498
- eyesOpenScore: number;
1499
- smileScore: number;
1500
- facingCameraScore: number;
1501
- }, {
1502
- score: number;
1503
- boundingBox: {
1504
- x: number;
1505
- y: number;
1506
- width: number;
1507
- height: number;
1508
- };
1509
- size: number;
1510
- eyesOpenScore: number;
1511
- smileScore: number;
1512
- facingCameraScore: number;
1513
- }>, "many">;
1514
- roi: z.ZodObject<{
1515
- x: z.ZodNumber;
1516
- y: z.ZodNumber;
1517
- width: z.ZodNumber;
1518
- height: z.ZodNumber;
1519
- }, "strip", z.ZodTypeAny, {
1520
- x: number;
1521
- y: number;
1522
- width: number;
1523
- height: number;
1524
- }, {
1525
- x: number;
1526
- y: number;
1527
- width: number;
1528
- height: number;
1529
- }>;
1530
- takenAt: z.ZodNumber;
1531
- width: z.ZodNumber;
1532
- height: z.ZodNumber;
1533
- }, "strip", z.ZodTypeAny, {
1534
- width: number;
1535
- height: number;
1536
- id: string;
1537
- url: string;
1538
- category: string;
1539
- aesthetics: {
1540
- score: number;
1541
- scoreWithoutDistance: number;
1542
- };
1543
- faces: {
1544
- score: number;
1545
- boundingBox: {
1546
- x: number;
1547
- y: number;
1548
- width: number;
1549
- height: number;
1550
- };
1551
- size: number;
1552
- eyesOpenScore: number;
1553
- smileScore: number;
1554
- facingCameraScore: number;
1555
- }[];
1556
- roi: {
1557
- x: number;
1558
- y: number;
1559
- width: number;
1560
- height: number;
1561
- };
1562
- takenAt: number;
1563
- }, {
1564
- width: number;
1565
- height: number;
1566
- id: string;
1567
- url: string;
1568
- category: string;
1569
- aesthetics: {
1570
- score: number;
1571
- scoreWithoutDistance: number;
1572
- };
1573
- faces: {
1574
- score: number;
1575
- boundingBox: {
1576
- x: number;
1577
- y: number;
1578
- width: number;
1579
- height: number;
1580
- };
1581
- size: number;
1582
- eyesOpenScore: number;
1583
- smileScore: number;
1584
- facingCameraScore: number;
1585
- }[];
1586
- roi: {
1587
- x: number;
1588
- y: number;
1589
- width: number;
1590
- height: number;
1591
- };
1592
- takenAt: number;
1593
- }>;
1594
- }, "strip", z.ZodTypeAny, {
1595
- bookId: string;
1596
- id: string;
1597
- image: {
1598
- width: number;
1599
- height: number;
1600
- id: string;
1601
- url: string;
1602
- category: string;
1603
- aesthetics: {
1604
- score: number;
1605
- scoreWithoutDistance: number;
1606
- };
1607
- faces: {
1608
- score: number;
1609
- boundingBox: {
1610
- x: number;
1611
- y: number;
1612
- width: number;
1613
- height: number;
1614
- };
1615
- size: number;
1616
- eyesOpenScore: number;
1617
- smileScore: number;
1618
- facingCameraScore: number;
1619
- }[];
1620
- roi: {
1621
- x: number;
1622
- y: number;
1623
- width: number;
1624
- height: number;
1625
- };
1626
- takenAt: number;
1627
- };
1628
- sequence: number;
1629
- similarity: number;
1630
- duplicate: boolean;
1631
- selected: boolean;
1632
- surfaceWeight: number;
1633
- scene: number;
1634
- subscene: number;
1635
- frontCover?: boolean | undefined;
1636
- backCover?: boolean | undefined;
1637
- spineBreak?: boolean | undefined;
1638
- }, {
1639
- bookId: string;
1640
- id: string;
1641
- image: {
1642
- width: number;
1643
- height: number;
1644
- id: string;
1645
- url: string;
1646
- category: string;
1647
- aesthetics: {
1648
- score: number;
1649
- scoreWithoutDistance: number;
1650
- };
1651
- faces: {
1652
- score: number;
1653
- boundingBox: {
1654
- x: number;
1655
- y: number;
1656
- width: number;
1657
- height: number;
1658
- };
1659
- size: number;
1660
- eyesOpenScore: number;
1661
- smileScore: number;
1662
- facingCameraScore: number;
1663
- }[];
1664
- roi: {
1665
- x: number;
1666
- y: number;
1667
- width: number;
1668
- height: number;
1669
- };
1670
- takenAt: number;
1671
- };
1672
- sequence: number;
1673
- similarity: number;
1674
- duplicate: boolean;
1675
- selected: boolean;
1676
- surfaceWeight: number;
1677
- scene: number;
1678
- subscene: number;
1679
- frontCover?: boolean | undefined;
1680
- backCover?: boolean | undefined;
1681
- spineBreak?: boolean | undefined;
1682
- }>;
1683
- type StoryboardItem = z.infer<typeof StoryboardItemSchema>;
1684
-
1685
- type listProps = BaseEndpointProps & {
1686
- bookId: string;
1687
- };
1688
- declare class StoryboardItemsEndpoints {
1689
- private readonly engineAPI;
1690
- constructor(engineAPI: EngineAPI);
1691
- list(props: listProps): Promise<Array<StoryboardItem>>;
1692
- }
1693
-
1694
- declare const styleBaseSchema: z.ZodObject<{
1695
- active: z.ZodBoolean;
1696
- name: z.ZodString;
1697
- slug: z.ZodString;
1698
- }, "strip", z.ZodTypeAny, {
1699
- name: string;
1700
- active: boolean;
1701
- slug: string;
1702
- }, {
1703
- name: string;
1704
- active: boolean;
1705
- slug: string;
1706
- }>;
1707
- type StyleBase = z.infer<typeof styleBaseSchema>;
1708
- declare const backgroundSchema: z.ZodObject<{
1709
- url: z.ZodString;
1710
- compatible: z.ZodBoolean;
1711
- }, "strip", z.ZodTypeAny, {
1712
- url: string;
1713
- compatible: boolean;
1714
- }, {
1715
- url: string;
1716
- compatible: boolean;
1717
- }>;
1718
- type Background = z.infer<typeof backgroundSchema>;
1719
- declare const colorSchema: z.ZodObject<{
1720
- compatible: z.ZodBoolean;
1721
- }, "strip", z.ZodTypeAny, {
1722
- compatible: boolean;
1723
- }, {
1724
- compatible: boolean;
1725
- }>;
1726
- type Color = z.infer<typeof colorSchema>;
1727
- declare const compatibleBackgroundSchema: z.ZodObject<{
1728
- id: z.ZodString;
1729
- url: z.ZodString;
1730
- backgrounds: z.ZodRecord<z.ZodString, z.ZodObject<{
1731
- url: z.ZodString;
1732
- compatible: z.ZodBoolean;
1733
- }, "strip", z.ZodTypeAny, {
1734
- url: string;
1735
- compatible: boolean;
1736
- }, {
1737
- url: string;
1738
- compatible: boolean;
1739
- }>>;
1740
- colors: z.ZodRecord<z.ZodString, z.ZodObject<{
1741
- compatible: z.ZodBoolean;
1742
- }, "strip", z.ZodTypeAny, {
1743
- compatible: boolean;
1744
- }, {
1745
- compatible: boolean;
1746
- }>>;
1747
- }, "strip", z.ZodTypeAny, {
1748
- id: string;
1749
- url: string;
1750
- colors: Record<string, {
1751
- compatible: boolean;
1752
- }>;
1753
- backgrounds: Record<string, {
1754
- url: string;
1755
- compatible: boolean;
1756
- }>;
1757
- }, {
1758
- id: string;
1759
- url: string;
1760
- colors: Record<string, {
1761
- compatible: boolean;
1762
- }>;
1763
- backgrounds: Record<string, {
1764
- url: string;
1765
- compatible: boolean;
1766
- }>;
1767
- }>;
1768
- type CompatibleBackground = z.infer<typeof compatibleBackgroundSchema>;
1769
- declare const whitespaceSchema: z.ZodObject<{
1770
- min: z.ZodNumber;
1771
- max: z.ZodNumber;
1772
- }, "strip", z.ZodTypeAny, {
1773
- min: number;
1774
- max: number;
1775
- }, {
1776
- min: number;
1777
- max: number;
1778
- }>;
1779
- declare const layoutConstraintsClasses: readonly ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
1780
- declare const layoutConstraintSchema: z.ZodObject<{
1781
- whitespace: z.ZodObject<{
1782
- min: z.ZodNumber;
1783
- max: z.ZodNumber;
1784
- }, "strip", z.ZodTypeAny, {
1785
- min: number;
1786
- max: number;
1787
- }, {
1788
- min: number;
1789
- max: number;
1790
- }>;
1791
- iWhitespace: z.ZodObject<{
1792
- min: z.ZodNumber;
1793
- max: z.ZodNumber;
1794
- }, "strip", z.ZodTypeAny, {
1795
- min: number;
1796
- max: number;
1797
- }, {
1798
- min: number;
1799
- max: number;
1800
- }>;
1801
- classes: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]>, "many">;
1802
- }, "strip", z.ZodTypeAny, {
1803
- whitespace: {
1804
- min: number;
1805
- max: number;
1806
- };
1807
- iWhitespace: {
1808
- min: number;
1809
- max: number;
1810
- };
1811
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1812
- }, {
1813
- whitespace: {
1814
- min: number;
1815
- max: number;
1816
- };
1817
- iWhitespace: {
1818
- min: number;
1819
- max: number;
1820
- };
1821
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1822
- }>;
1823
- declare const layoutConstraintsSchema: z.ZodObject<{
1824
- lots: z.ZodObject<{
1825
- whitespace: z.ZodObject<{
1826
- min: z.ZodNumber;
1827
- max: z.ZodNumber;
1828
- }, "strip", z.ZodTypeAny, {
1829
- min: number;
1830
- max: number;
1831
- }, {
1832
- min: number;
1833
- max: number;
1834
- }>;
1835
- iWhitespace: z.ZodObject<{
1836
- min: z.ZodNumber;
1837
- max: z.ZodNumber;
1838
- }, "strip", z.ZodTypeAny, {
1839
- min: number;
1840
- max: number;
1841
- }, {
1842
- min: number;
1843
- max: number;
1844
- }>;
1845
- classes: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]>, "many">;
1846
- }, "strip", z.ZodTypeAny, {
1847
- whitespace: {
1848
- min: number;
1849
- max: number;
1850
- };
1851
- iWhitespace: {
1852
- min: number;
1853
- max: number;
1854
- };
1855
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1856
- }, {
1857
- whitespace: {
1858
- min: number;
1859
- max: number;
1860
- };
1861
- iWhitespace: {
1862
- min: number;
1863
- max: number;
1864
- };
1865
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1866
- }>;
1867
- few: z.ZodObject<{
1868
- whitespace: z.ZodObject<{
1869
- min: z.ZodNumber;
1870
- max: z.ZodNumber;
1871
- }, "strip", z.ZodTypeAny, {
1872
- min: number;
1873
- max: number;
1874
- }, {
1875
- min: number;
1876
- max: number;
1877
- }>;
1878
- iWhitespace: z.ZodObject<{
1879
- min: z.ZodNumber;
1880
- max: z.ZodNumber;
1881
- }, "strip", z.ZodTypeAny, {
1882
- min: number;
1883
- max: number;
1884
- }, {
1885
- min: number;
1886
- max: number;
1887
- }>;
1888
- classes: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]>, "many">;
1889
- }, "strip", z.ZodTypeAny, {
1890
- whitespace: {
1891
- min: number;
1892
- max: number;
1893
- };
1894
- iWhitespace: {
1895
- min: number;
1896
- max: number;
1897
- };
1898
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1899
- }, {
1900
- whitespace: {
1901
- min: number;
1902
- max: number;
1903
- };
1904
- iWhitespace: {
1905
- min: number;
1906
- max: number;
1907
- };
1908
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1909
- }>;
1910
- none: z.ZodObject<{
1911
- whitespace: z.ZodObject<{
1912
- min: z.ZodNumber;
1913
- max: z.ZodNumber;
1914
- }, "strip", z.ZodTypeAny, {
1915
- min: number;
1916
- max: number;
1917
- }, {
1918
- min: number;
1919
- max: number;
1920
- }>;
1921
- iWhitespace: z.ZodObject<{
1922
- min: z.ZodNumber;
1923
- max: z.ZodNumber;
1924
- }, "strip", z.ZodTypeAny, {
1925
- min: number;
1926
- max: number;
1927
- }, {
1928
- min: number;
1929
- max: number;
1930
- }>;
1931
- classes: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]>, "many">;
1932
- }, "strip", z.ZodTypeAny, {
1933
- whitespace: {
1934
- min: number;
1935
- max: number;
1936
- };
1937
- iWhitespace: {
1938
- min: number;
1939
- max: number;
1940
- };
1941
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1942
- }, {
1943
- whitespace: {
1944
- min: number;
1945
- max: number;
1946
- };
1947
- iWhitespace: {
1948
- min: number;
1949
- max: number;
1950
- };
1951
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1952
- }>;
1953
- }, "strip", z.ZodTypeAny, {
1954
- none: {
1955
- whitespace: {
1956
- min: number;
1957
- max: number;
1958
- };
1959
- iWhitespace: {
1960
- min: number;
1961
- max: number;
1962
- };
1963
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1964
- };
1965
- few: {
1966
- whitespace: {
1967
- min: number;
1968
- max: number;
1969
- };
1970
- iWhitespace: {
1971
- min: number;
1972
- max: number;
1973
- };
1974
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1975
- };
1976
- lots: {
1977
- whitespace: {
1978
- min: number;
1979
- max: number;
1980
- };
1981
- iWhitespace: {
1982
- min: number;
1983
- max: number;
1984
- };
1985
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1986
- };
1987
- }, {
1988
- none: {
1989
- whitespace: {
1990
- min: number;
1991
- max: number;
1992
- };
1993
- iWhitespace: {
1994
- min: number;
1995
- max: number;
1996
- };
1997
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
1998
- };
1999
- few: {
2000
- whitespace: {
2001
- min: number;
2002
- max: number;
2003
- };
2004
- iWhitespace: {
2005
- min: number;
2006
- max: number;
2007
- };
2008
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2009
- };
2010
- lots: {
2011
- whitespace: {
2012
- min: number;
2013
- max: number;
2014
- };
2015
- iWhitespace: {
2016
- min: number;
2017
- max: number;
2018
- };
2019
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2020
- };
2021
- }>;
2022
- declare const styleSchema: z.ZodObject<{
2023
- name: z.ZodString;
2024
- active: z.ZodBoolean;
2025
- slug: z.ZodString;
2026
- position: z.ZodNumber;
2027
- compatibleBackgrounds: z.ZodArray<z.ZodObject<{
2028
- id: z.ZodString;
2029
- url: z.ZodString;
2030
- backgrounds: z.ZodRecord<z.ZodString, z.ZodObject<{
2031
- url: z.ZodString;
2032
- compatible: z.ZodBoolean;
2033
- }, "strip", z.ZodTypeAny, {
2034
- url: string;
2035
- compatible: boolean;
2036
- }, {
2037
- url: string;
2038
- compatible: boolean;
2039
- }>>;
2040
- colors: z.ZodRecord<z.ZodString, z.ZodObject<{
2041
- compatible: z.ZodBoolean;
2042
- }, "strip", z.ZodTypeAny, {
2043
- compatible: boolean;
2044
- }, {
2045
- compatible: boolean;
2046
- }>>;
2047
- }, "strip", z.ZodTypeAny, {
2048
- id: string;
2049
- url: string;
2050
- colors: Record<string, {
2051
- compatible: boolean;
2052
- }>;
2053
- backgrounds: Record<string, {
2054
- url: string;
2055
- compatible: boolean;
2056
- }>;
2057
- }, {
2058
- id: string;
2059
- url: string;
2060
- colors: Record<string, {
2061
- compatible: boolean;
2062
- }>;
2063
- backgrounds: Record<string, {
2064
- url: string;
2065
- compatible: boolean;
2066
- }>;
2067
- }>, "many">;
2068
- fonts: z.ZodArray<z.ZodObject<{
2069
- family: z.ZodString;
2070
- slug: z.ZodString;
2071
- role: z.ZodEnum<["title", "subtitle", "caption"]>;
2072
- }, "strip", z.ZodTypeAny, {
2073
- family: string;
2074
- slug: string;
2075
- role: "title" | "subtitle" | "caption";
2076
- }, {
2077
- family: string;
2078
- slug: string;
2079
- role: "title" | "subtitle" | "caption";
2080
- }>, "many">;
2081
- layoutConstraints: z.ZodObject<{
2082
- lots: z.ZodObject<{
2083
- whitespace: z.ZodObject<{
2084
- min: z.ZodNumber;
2085
- max: z.ZodNumber;
2086
- }, "strip", z.ZodTypeAny, {
2087
- min: number;
2088
- max: number;
2089
- }, {
2090
- min: number;
2091
- max: number;
2092
- }>;
2093
- iWhitespace: z.ZodObject<{
2094
- min: z.ZodNumber;
2095
- max: z.ZodNumber;
2096
- }, "strip", z.ZodTypeAny, {
2097
- min: number;
2098
- max: number;
2099
- }, {
2100
- min: number;
2101
- max: number;
2102
- }>;
2103
- classes: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]>, "many">;
2104
- }, "strip", z.ZodTypeAny, {
2105
- whitespace: {
2106
- min: number;
2107
- max: number;
2108
- };
2109
- iWhitespace: {
2110
- min: number;
2111
- max: number;
2112
- };
2113
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2114
- }, {
2115
- whitespace: {
2116
- min: number;
2117
- max: number;
2118
- };
2119
- iWhitespace: {
2120
- min: number;
2121
- max: number;
2122
- };
2123
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2124
- }>;
2125
- few: z.ZodObject<{
2126
- whitespace: z.ZodObject<{
2127
- min: z.ZodNumber;
2128
- max: z.ZodNumber;
2129
- }, "strip", z.ZodTypeAny, {
2130
- min: number;
2131
- max: number;
2132
- }, {
2133
- min: number;
2134
- max: number;
2135
- }>;
2136
- iWhitespace: z.ZodObject<{
2137
- min: z.ZodNumber;
2138
- max: z.ZodNumber;
2139
- }, "strip", z.ZodTypeAny, {
2140
- min: number;
2141
- max: number;
2142
- }, {
2143
- min: number;
2144
- max: number;
2145
- }>;
2146
- classes: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]>, "many">;
2147
- }, "strip", z.ZodTypeAny, {
2148
- whitespace: {
2149
- min: number;
2150
- max: number;
2151
- };
2152
- iWhitespace: {
2153
- min: number;
2154
- max: number;
2155
- };
2156
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2157
- }, {
2158
- whitespace: {
2159
- min: number;
2160
- max: number;
2161
- };
2162
- iWhitespace: {
2163
- min: number;
2164
- max: number;
2165
- };
2166
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2167
- }>;
2168
- none: z.ZodObject<{
2169
- whitespace: z.ZodObject<{
2170
- min: z.ZodNumber;
2171
- max: z.ZodNumber;
2172
- }, "strip", z.ZodTypeAny, {
2173
- min: number;
2174
- max: number;
2175
- }, {
2176
- min: number;
2177
- max: number;
2178
- }>;
2179
- iWhitespace: z.ZodObject<{
2180
- min: z.ZodNumber;
2181
- max: z.ZodNumber;
2182
- }, "strip", z.ZodTypeAny, {
2183
- min: number;
2184
- max: number;
2185
- }, {
2186
- min: number;
2187
- max: number;
2188
- }>;
2189
- classes: z.ZodArray<z.ZodEnum<["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]>, "many">;
2190
- }, "strip", z.ZodTypeAny, {
2191
- whitespace: {
2192
- min: number;
2193
- max: number;
2194
- };
2195
- iWhitespace: {
2196
- min: number;
2197
- max: number;
2198
- };
2199
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2200
- }, {
2201
- whitespace: {
2202
- min: number;
2203
- max: number;
2204
- };
2205
- iWhitespace: {
2206
- min: number;
2207
- max: number;
2208
- };
2209
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2210
- }>;
2211
- }, "strip", z.ZodTypeAny, {
2212
- none: {
2213
- whitespace: {
2214
- min: number;
2215
- max: number;
2216
- };
2217
- iWhitespace: {
2218
- min: number;
2219
- max: number;
2220
- };
2221
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2222
- };
2223
- few: {
2224
- whitespace: {
2225
- min: number;
2226
- max: number;
2227
- };
2228
- iWhitespace: {
2229
- min: number;
2230
- max: number;
2231
- };
2232
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2233
- };
2234
- lots: {
2235
- whitespace: {
2236
- min: number;
2237
- max: number;
2238
- };
2239
- iWhitespace: {
2240
- min: number;
2241
- max: number;
2242
- };
2243
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2244
- };
2245
- }, {
2246
- none: {
2247
- whitespace: {
2248
- min: number;
2249
- max: number;
2250
- };
2251
- iWhitespace: {
2252
- min: number;
2253
- max: number;
2254
- };
2255
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2256
- };
2257
- few: {
2258
- whitespace: {
2259
- min: number;
2260
- max: number;
2261
- };
2262
- iWhitespace: {
2263
- min: number;
2264
- max: number;
2265
- };
2266
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2267
- };
2268
- lots: {
2269
- whitespace: {
2270
- min: number;
2271
- max: number;
2272
- };
2273
- iWhitespace: {
2274
- min: number;
2275
- max: number;
2276
- };
2277
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2278
- };
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;
2279
273
  }>;
2280
- colors: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
2281
- }, "strip", z.ZodTypeAny, {
2282
- name: string;
2283
- position: number;
2284
- active: boolean;
2285
- colors: Record<string, string[]>;
2286
- slug: string;
2287
- compatibleBackgrounds: {
2288
- id: string;
2289
- url: string;
2290
- colors: Record<string, {
2291
- compatible: boolean;
2292
- }>;
2293
- backgrounds: Record<string, {
2294
- url: string;
2295
- compatible: boolean;
2296
- }>;
2297
- }[];
2298
- fonts: {
2299
- family: string;
2300
- slug: string;
2301
- role: "title" | "subtitle" | "caption";
2302
- }[];
2303
- layoutConstraints: {
2304
- none: {
2305
- whitespace: {
2306
- min: number;
2307
- max: number;
2308
- };
2309
- iWhitespace: {
2310
- min: number;
2311
- max: number;
2312
- };
2313
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2314
- };
2315
- few: {
2316
- whitespace: {
2317
- min: number;
2318
- max: number;
2319
- };
2320
- iWhitespace: {
2321
- min: number;
2322
- max: number;
2323
- };
2324
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2325
- };
2326
- lots: {
2327
- whitespace: {
2328
- min: number;
2329
- max: number;
2330
- };
2331
- iWhitespace: {
2332
- min: number;
2333
- max: number;
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;
2334
317
  };
2335
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2336
- };
2337
- };
2338
- }, {
2339
- name: string;
2340
- position: number;
2341
- active: boolean;
2342
- colors: Record<string, string[]>;
2343
- slug: string;
2344
- compatibleBackgrounds: {
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<{
2345
340
  id: string;
2346
- url: string;
2347
- colors: Record<string, {
2348
- compatible: boolean;
2349
- }>;
2350
- backgrounds: Record<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;
2351
353
  url: string;
2352
- compatible: boolean;
2353
- }>;
2354
- }[];
2355
- fonts: {
2356
- family: string;
2357
- slug: string;
2358
- role: "title" | "subtitle" | "caption";
2359
- }[];
2360
- layoutConstraints: {
2361
- none: {
2362
- whitespace: {
2363
- min: number;
2364
- max: number;
2365
- };
2366
- iWhitespace: {
2367
- min: number;
2368
- max: number;
2369
- };
2370
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2371
- };
2372
- few: {
2373
- whitespace: {
2374
- min: number;
2375
- max: number;
2376
- };
2377
- iWhitespace: {
2378
- min: number;
2379
- max: number;
2380
- };
2381
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2382
- };
2383
- lots: {
2384
- whitespace: {
2385
- min: number;
2386
- max: number;
2387
- };
2388
- iWhitespace: {
2389
- min: number;
2390
- max: number;
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;
2391
375
  };
2392
- classes: ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[];
2393
376
  };
2394
- };
2395
- }>;
2396
- type Style = z.infer<typeof styleSchema>;
2397
-
2398
- declare const stylePaginatedSchema: z.ZodObject<{
2399
- count: z.ZodNumber;
2400
- nextCursor: z.ZodNullable<z.ZodString>;
2401
- previousCursor: z.ZodOptional<z.ZodString>;
2402
- results: z.ZodArray<z.ZodObject<{
2403
- active: z.ZodBoolean;
2404
- name: z.ZodString;
2405
- slug: z.ZodString;
2406
- }, "strip", z.ZodTypeAny, {
2407
- name: string;
2408
- active: boolean;
2409
- slug: string;
2410
- }, {
2411
- name: string;
2412
- active: boolean;
2413
- slug: string;
2414
- }>, "many">;
2415
- }, "strip", z.ZodTypeAny, {
2416
- count: number;
2417
- nextCursor: string | null;
2418
- results: {
2419
- name: string;
2420
- active: boolean;
2421
- slug: string;
2422
- }[];
2423
- previousCursor?: string | undefined;
2424
- }, {
2425
- count: number;
2426
- nextCursor: string | null;
2427
- results: {
2428
- name: string;
2429
- active: boolean;
2430
- slug: string;
2431
- }[];
2432
- previousCursor?: string | undefined;
2433
- }>;
2434
- type StyleListReturnType = z.infer<typeof stylePaginatedSchema>;
2435
- type ListStylesProps = BaseEndpointProps;
2436
- type UpdateStyleProps = BaseUpdateEndpointProps<Partial<Style>> & {
2437
- styleSlug: string;
2438
- };
2439
- type RetrieveStyleProps = BaseEndpointProps & {
2440
- styleSlug: string;
2441
- };
2442
- type StyleReturnType = z.infer<typeof styleSchema>;
2443
- declare class StylesEndpoints {
2444
- private readonly engineAPI;
2445
- constructor(engineAPI: EngineAPI);
2446
- list<T extends ListStylesProps>(props?: T): Promise<StyleListReturnType>;
2447
- retrieve<T extends RetrieveStyleProps>({ styleSlug, qs }: T): Promise<StyleReturnType>;
2448
- update<T extends UpdateStyleProps>({ styleSlug, payload, qs }: T): Promise<StyleReturnType>;
377
+ front_cover?: boolean | undefined;
378
+ back_cover?: boolean | undefined;
379
+ spine_break?: boolean | undefined;
380
+ }[]>;
2449
381
  }
2450
382
 
2451
- type BaseEndpointProps = {
2452
- qs?: string;
2453
- };
2454
- type BaseUpdateEndpointProps<T> = BaseEndpointProps & {
2455
- payload: T;
2456
- };
2457
383
  declare class EngineAPI {
384
+ baseUrl: URL;
385
+ apiKey: string;
2458
386
  fetcher: Fetcher;
2459
387
  constructor(baseUrl: string, apiKey: string);
2460
388
  readonly books: BooksEndpoints;
2461
389
  readonly designOptions: DesignOptionsEndpoints;
2462
390
  readonly events: EventsEndpoints;
2463
- readonly embellishments: EmbellishmentsEndpoints;
2464
- readonly fonts: FontsEndpoints;
2465
391
  readonly images: ImagesEndpoints;
2466
- readonly spreads: SpreadsEndpoints;
2467
392
  readonly storyboardItems: StoryboardItemsEndpoints;
2468
- readonly styles: StylesEndpoints;
393
+ readonly spreads: SpreadsEndpoints;
2469
394
  }
2470
395
 
2471
396
  declare class MagicBookClient {
@@ -2512,8 +437,8 @@ declare const imageServerSchema: z.ZodObject<{
2512
437
  width: number;
2513
438
  height: number;
2514
439
  url: string;
2515
- orientation: number;
2516
440
  handle: string;
441
+ orientation: number;
2517
442
  taken_at: string;
2518
443
  filename: string;
2519
444
  id?: string | undefined;
@@ -2523,8 +448,8 @@ declare const imageServerSchema: z.ZodObject<{
2523
448
  width: number;
2524
449
  height: number;
2525
450
  url: string;
2526
- orientation: number;
2527
451
  handle: string;
452
+ orientation: number;
2528
453
  taken_at: string;
2529
454
  filename: string;
2530
455
  id?: string | undefined;
@@ -3059,6 +984,12 @@ declare const styles: {
3059
984
  6099: {
3060
985
  slug: string;
3061
986
  };
987
+ 6159: {
988
+ slug: string;
989
+ };
990
+ 6156: {
991
+ slug: string;
992
+ };
3062
993
  };
3063
994
  declare const bookSizes: readonly ["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"];
3064
995
  declare const coverTypes: readonly ["sc", "hc", "pl"];
@@ -3070,15 +1001,15 @@ declare const textStickerLevels: readonly ["none", "few", "lots"];
3070
1001
  declare const timeoutEventDetail: DesignRequestEventDetail;
3071
1002
  declare const cancelledEventDetail: DesignRequestEventDetail;
3072
1003
 
3073
- type Occasion = typeof occasions[number];
3074
- type StyleId = keyof typeof styles;
3075
- type BookSize = typeof bookSizes[number];
3076
- type CoverType = typeof coverTypes[number];
3077
- type PageType = typeof pageTypes[number];
3078
- type ImageDensity = typeof imageDensities[number];
3079
- type ImageFilteringLevel = typeof imageFilteringLevels[number];
3080
- type EmbellishmentLevel = typeof embellishmentLevels[number];
3081
- type TextStickerLevel = typeof textStickerLevels[number];
1004
+ type Occasion = (typeof occasions)[number];
1005
+ type Style = keyof typeof styles;
1006
+ type BookSize = (typeof bookSizes)[number];
1007
+ type CoverType = (typeof coverTypes)[number];
1008
+ type PageType = (typeof pageTypes)[number];
1009
+ type ImageDensity = (typeof imageDensities)[number];
1010
+ type ImageFilteringLevel = (typeof imageFilteringLevels)[number];
1011
+ type EmbellishmentLevel = (typeof embellishmentLevels)[number];
1012
+ type TextStickerLevel = (typeof textStickerLevels)[number];
3082
1013
  declare const DesignRequestOptions: {
3083
1014
  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"];
3084
1015
  style: number[];
@@ -3095,7 +1026,7 @@ type DesignRequestProps = {
3095
1026
  subtitle?: string;
3096
1027
  state?: State;
3097
1028
  occasion?: Occasion;
3098
- style?: StyleId;
1029
+ style?: Style;
3099
1030
  bookSize?: BookSize;
3100
1031
  coverType?: CoverType;
3101
1032
  pageType?: PageType;
@@ -3105,7 +1036,7 @@ type DesignRequestProps = {
3105
1036
  textStickerLevel?: TextStickerLevel;
3106
1037
  userId: string;
3107
1038
  };
3108
- type State = typeof states[number];
1039
+ type State = (typeof states)[number];
3109
1040
  type DesignRequestEventDetail = {
3110
1041
  state: string;
3111
1042
  slug: State;
@@ -3120,7 +1051,7 @@ declare class DesignRequest {
3120
1051
  title: string;
3121
1052
  subtitle?: string;
3122
1053
  occasion: Occasion;
3123
- style: StyleId;
1054
+ style: Style;
3124
1055
  bookSize: BookSize;
3125
1056
  coverType: CoverType;
3126
1057
  pageType: PageType;
@@ -3160,6 +1091,33 @@ declare class DesignRequest {
3160
1091
  };
3161
1092
  };
3162
1093
  }>;
1094
+ getAlternateLayouts(pageNumber: number): Promise<{
1095
+ backgroundId: string | null;
1096
+ assets?: {
1097
+ type: string;
1098
+ position: {
1099
+ x: number;
1100
+ y: number;
1101
+ rotation: number;
1102
+ width?: number | undefined;
1103
+ height?: number | undefined;
1104
+ };
1105
+ seqNum: number;
1106
+ z: number;
1107
+ imageAssignment?: {
1108
+ photoRefId: string;
1109
+ finalCrop: number[];
1110
+ } | undefined;
1111
+ id?: string | undefined;
1112
+ horizJustification?: string | undefined;
1113
+ vertJustification?: string | null | undefined;
1114
+ text?: string | undefined;
1115
+ fontId?: string | undefined;
1116
+ fontSize?: number | undefined;
1117
+ fontColor?: string | undefined;
1118
+ frame?: string | undefined;
1119
+ }[] | undefined;
1120
+ }[]>;
3163
1121
  submit(submitDesignRequestProps?: Partial<DesignRequestProps>): Promise<this>;
3164
1122
  setGuid(guid: string): Promise<string>;
3165
1123
  cancel(): Promise<this>;
@@ -3232,8 +1190,6 @@ declare class DesignRequest {
3232
1190
  }>;
3233
1191
  logEvent(name: string, data?: EventContext): Promise<{
3234
1192
  name: string;
3235
- bookId: string;
3236
- createdAt: string;
3237
1193
  context?: Record<string, unknown> | undefined;
3238
1194
  }>;
3239
1195
  private eventHandler;
@@ -3338,7 +1294,7 @@ declare const bookPropsSchema: z.ZodObject<{
3338
1294
  state: z.ZodOptional<z.ZodEnum<["new", "ingesting", "submitted", "storyboarding", "deduplication", "image-selection", "designing", "layouting", "embellishing", "polishing", "ready", "timeout", "error", "cancelled"]>>;
3339
1295
  guid: z.ZodOptional<z.ZodString>;
3340
1296
  cancelled_at: z.ZodOptional<z.ZodString>;
3341
- mb_client_timeout: z.ZodOptional<z.ZodString>;
1297
+ mb_client_timeout: z.ZodOptional<z.ZodNumber>;
3342
1298
  user_id: z.ZodOptional<z.ZodString>;
3343
1299
  revision: z.ZodOptional<z.ZodNumber>;
3344
1300
  }, "strip", z.ZodTypeAny, {
@@ -3356,10 +1312,10 @@ declare const bookPropsSchema: z.ZodObject<{
3356
1312
  };
3357
1313
  id?: string | undefined;
3358
1314
  subtitle?: string | undefined;
3359
- state?: "error" | "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "cancelled" | undefined;
1315
+ state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
3360
1316
  guid?: string | undefined;
3361
1317
  cancelled_at?: string | undefined;
3362
- mb_client_timeout?: string | undefined;
1318
+ mb_client_timeout?: number | undefined;
3363
1319
  user_id?: string | undefined;
3364
1320
  revision?: number | undefined;
3365
1321
  }, {
@@ -3377,10 +1333,10 @@ declare const bookPropsSchema: z.ZodObject<{
3377
1333
  };
3378
1334
  id?: string | undefined;
3379
1335
  subtitle?: string | undefined;
3380
- state?: "error" | "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "cancelled" | undefined;
1336
+ state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
3381
1337
  guid?: string | undefined;
3382
1338
  cancelled_at?: string | undefined;
3383
- mb_client_timeout?: string | undefined;
1339
+ mb_client_timeout?: number | undefined;
3384
1340
  user_id?: string | undefined;
3385
1341
  revision?: number | undefined;
3386
1342
  }>;
@@ -3679,6 +1635,284 @@ declare const designOptionsSchema: z.ZodObject<{
3679
1635
  };
3680
1636
  }>;
3681
1637
  type DesignOptions = z.infer<typeof designOptionsSchema>;
1638
+ declare const imageDensityOptionServerSchema: z.ZodObject<{
1639
+ max_page_count: z.ZodNumber;
1640
+ min_page_count: z.ZodNumber;
1641
+ max_image_count: z.ZodNumber;
1642
+ avg_image_count: z.ZodNumber;
1643
+ min_image_count: z.ZodNumber;
1644
+ }, "strip", z.ZodTypeAny, {
1645
+ max_page_count: number;
1646
+ min_page_count: number;
1647
+ max_image_count: number;
1648
+ avg_image_count: number;
1649
+ min_image_count: number;
1650
+ }, {
1651
+ max_page_count: number;
1652
+ min_page_count: number;
1653
+ max_image_count: number;
1654
+ avg_image_count: number;
1655
+ min_image_count: number;
1656
+ }>;
1657
+ type ImageDensityOptionServer = z.infer<typeof imageDensityOptionServerSchema>;
1658
+ declare const imageDensityOptionsServerSchema: z.ZodObject<{
1659
+ high: z.ZodObject<{
1660
+ max_page_count: z.ZodNumber;
1661
+ min_page_count: z.ZodNumber;
1662
+ max_image_count: z.ZodNumber;
1663
+ avg_image_count: z.ZodNumber;
1664
+ min_image_count: z.ZodNumber;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ max_page_count: number;
1667
+ min_page_count: number;
1668
+ max_image_count: number;
1669
+ avg_image_count: number;
1670
+ min_image_count: number;
1671
+ }, {
1672
+ max_page_count: number;
1673
+ min_page_count: number;
1674
+ max_image_count: number;
1675
+ avg_image_count: number;
1676
+ min_image_count: number;
1677
+ }>;
1678
+ medium: z.ZodObject<{
1679
+ max_page_count: z.ZodNumber;
1680
+ min_page_count: z.ZodNumber;
1681
+ max_image_count: z.ZodNumber;
1682
+ avg_image_count: z.ZodNumber;
1683
+ min_image_count: z.ZodNumber;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ max_page_count: number;
1686
+ min_page_count: number;
1687
+ max_image_count: number;
1688
+ avg_image_count: number;
1689
+ min_image_count: number;
1690
+ }, {
1691
+ max_page_count: number;
1692
+ min_page_count: number;
1693
+ max_image_count: number;
1694
+ avg_image_count: number;
1695
+ min_image_count: number;
1696
+ }>;
1697
+ low: z.ZodObject<{
1698
+ max_page_count: z.ZodNumber;
1699
+ min_page_count: z.ZodNumber;
1700
+ max_image_count: z.ZodNumber;
1701
+ avg_image_count: z.ZodNumber;
1702
+ min_image_count: z.ZodNumber;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ max_page_count: number;
1705
+ min_page_count: number;
1706
+ max_image_count: number;
1707
+ avg_image_count: number;
1708
+ min_image_count: number;
1709
+ }, {
1710
+ max_page_count: number;
1711
+ min_page_count: number;
1712
+ max_image_count: number;
1713
+ avg_image_count: number;
1714
+ min_image_count: number;
1715
+ }>;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ low: {
1718
+ max_page_count: number;
1719
+ min_page_count: number;
1720
+ max_image_count: number;
1721
+ avg_image_count: number;
1722
+ min_image_count: number;
1723
+ };
1724
+ medium: {
1725
+ max_page_count: number;
1726
+ min_page_count: number;
1727
+ max_image_count: number;
1728
+ avg_image_count: number;
1729
+ min_image_count: number;
1730
+ };
1731
+ high: {
1732
+ max_page_count: number;
1733
+ min_page_count: number;
1734
+ max_image_count: number;
1735
+ avg_image_count: number;
1736
+ min_image_count: number;
1737
+ };
1738
+ }, {
1739
+ low: {
1740
+ max_page_count: number;
1741
+ min_page_count: number;
1742
+ max_image_count: number;
1743
+ avg_image_count: number;
1744
+ min_image_count: number;
1745
+ };
1746
+ medium: {
1747
+ max_page_count: number;
1748
+ min_page_count: number;
1749
+ max_image_count: number;
1750
+ avg_image_count: number;
1751
+ min_image_count: number;
1752
+ };
1753
+ high: {
1754
+ max_page_count: number;
1755
+ min_page_count: number;
1756
+ max_image_count: number;
1757
+ avg_image_count: number;
1758
+ min_image_count: number;
1759
+ };
1760
+ }>;
1761
+ type ImageDensityOptionsServer = z.infer<typeof imageDensityOptionsServerSchema>;
1762
+ declare const designOptionsServerSchema: z.ZodObject<{
1763
+ densities: z.ZodObject<{
1764
+ high: z.ZodObject<{
1765
+ max_page_count: z.ZodNumber;
1766
+ min_page_count: z.ZodNumber;
1767
+ max_image_count: z.ZodNumber;
1768
+ avg_image_count: z.ZodNumber;
1769
+ min_image_count: z.ZodNumber;
1770
+ }, "strip", z.ZodTypeAny, {
1771
+ max_page_count: number;
1772
+ min_page_count: number;
1773
+ max_image_count: number;
1774
+ avg_image_count: number;
1775
+ min_image_count: number;
1776
+ }, {
1777
+ max_page_count: number;
1778
+ min_page_count: number;
1779
+ max_image_count: number;
1780
+ avg_image_count: number;
1781
+ min_image_count: number;
1782
+ }>;
1783
+ medium: z.ZodObject<{
1784
+ max_page_count: z.ZodNumber;
1785
+ min_page_count: z.ZodNumber;
1786
+ max_image_count: z.ZodNumber;
1787
+ avg_image_count: z.ZodNumber;
1788
+ min_image_count: z.ZodNumber;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ max_page_count: number;
1791
+ min_page_count: number;
1792
+ max_image_count: number;
1793
+ avg_image_count: number;
1794
+ min_image_count: number;
1795
+ }, {
1796
+ max_page_count: number;
1797
+ min_page_count: number;
1798
+ max_image_count: number;
1799
+ avg_image_count: number;
1800
+ min_image_count: number;
1801
+ }>;
1802
+ low: z.ZodObject<{
1803
+ max_page_count: z.ZodNumber;
1804
+ min_page_count: z.ZodNumber;
1805
+ max_image_count: z.ZodNumber;
1806
+ avg_image_count: z.ZodNumber;
1807
+ min_image_count: z.ZodNumber;
1808
+ }, "strip", z.ZodTypeAny, {
1809
+ max_page_count: number;
1810
+ min_page_count: number;
1811
+ max_image_count: number;
1812
+ avg_image_count: number;
1813
+ min_image_count: number;
1814
+ }, {
1815
+ max_page_count: number;
1816
+ min_page_count: number;
1817
+ max_image_count: number;
1818
+ avg_image_count: number;
1819
+ min_image_count: number;
1820
+ }>;
1821
+ }, "strip", z.ZodTypeAny, {
1822
+ low: {
1823
+ max_page_count: number;
1824
+ min_page_count: number;
1825
+ max_image_count: number;
1826
+ avg_image_count: number;
1827
+ min_image_count: number;
1828
+ };
1829
+ medium: {
1830
+ max_page_count: number;
1831
+ min_page_count: number;
1832
+ max_image_count: number;
1833
+ avg_image_count: number;
1834
+ min_image_count: number;
1835
+ };
1836
+ high: {
1837
+ max_page_count: number;
1838
+ min_page_count: number;
1839
+ max_image_count: number;
1840
+ avg_image_count: number;
1841
+ min_image_count: number;
1842
+ };
1843
+ }, {
1844
+ low: {
1845
+ max_page_count: number;
1846
+ min_page_count: number;
1847
+ max_image_count: number;
1848
+ avg_image_count: number;
1849
+ min_image_count: number;
1850
+ };
1851
+ medium: {
1852
+ max_page_count: number;
1853
+ min_page_count: number;
1854
+ max_image_count: number;
1855
+ avg_image_count: number;
1856
+ min_image_count: number;
1857
+ };
1858
+ high: {
1859
+ max_page_count: number;
1860
+ min_page_count: number;
1861
+ max_image_count: number;
1862
+ avg_image_count: number;
1863
+ min_image_count: number;
1864
+ };
1865
+ }>;
1866
+ }, "strip", z.ZodTypeAny, {
1867
+ densities: {
1868
+ low: {
1869
+ max_page_count: number;
1870
+ min_page_count: number;
1871
+ max_image_count: number;
1872
+ avg_image_count: number;
1873
+ min_image_count: number;
1874
+ };
1875
+ medium: {
1876
+ max_page_count: number;
1877
+ min_page_count: number;
1878
+ max_image_count: number;
1879
+ avg_image_count: number;
1880
+ min_image_count: number;
1881
+ };
1882
+ high: {
1883
+ max_page_count: number;
1884
+ min_page_count: number;
1885
+ max_image_count: number;
1886
+ avg_image_count: number;
1887
+ min_image_count: number;
1888
+ };
1889
+ };
1890
+ }, {
1891
+ densities: {
1892
+ low: {
1893
+ max_page_count: number;
1894
+ min_page_count: number;
1895
+ max_image_count: number;
1896
+ avg_image_count: number;
1897
+ min_image_count: number;
1898
+ };
1899
+ medium: {
1900
+ max_page_count: number;
1901
+ min_page_count: number;
1902
+ max_image_count: number;
1903
+ avg_image_count: number;
1904
+ min_image_count: number;
1905
+ };
1906
+ high: {
1907
+ max_page_count: number;
1908
+ min_page_count: number;
1909
+ max_image_count: number;
1910
+ avg_image_count: number;
1911
+ min_image_count: number;
1912
+ };
1913
+ };
1914
+ }>;
1915
+ type DesignOptionsServer = z.infer<typeof designOptionsServerSchema>;
3682
1916
 
3683
1917
  declare const imageAssignmentSchema: z.ZodObject<{
3684
1918
  photoRefId: z.ZodString;
@@ -5292,55 +3526,4 @@ declare const bookCreationRequestSchema: z.ZodObject<{
5292
3526
  }>;
5293
3527
  type BookCreationRequest = z.infer<typeof bookCreationRequestSchema>;
5294
3528
 
5295
- declare function paginatedResponseSchema<T extends ZodSchema>(arrayOf: T): z.ZodObject<{
5296
- count: z.ZodNumber;
5297
- nextCursor: z.ZodNullable<z.ZodString>;
5298
- previousCursor: z.ZodOptional<z.ZodString>;
5299
- results: z.ZodArray<T, "many">;
5300
- }, "strip", z.ZodTypeAny, {
5301
- count: number;
5302
- nextCursor: string | null;
5303
- results: T["_output"][];
5304
- previousCursor?: string | undefined;
5305
- }, {
5306
- count: number;
5307
- nextCursor: string | null;
5308
- results: T["_input"][];
5309
- previousCursor?: string | undefined;
5310
- }>;
5311
- type PaginatedResponse<T> = {
5312
- count: number;
5313
- nextCursor: string | null;
5314
- previousCursor?: string;
5315
- results: Array<T>;
5316
- };
5317
-
5318
- declare const fontRoles: readonly ["title", "subtitle", "caption"];
5319
- declare const fontSchema: z.ZodObject<{
5320
- slug: z.ZodString;
5321
- family: z.ZodString;
5322
- }, "strip", z.ZodTypeAny, {
5323
- family: string;
5324
- slug: string;
5325
- }, {
5326
- family: string;
5327
- slug: string;
5328
- }>;
5329
- type Font = z.infer<typeof fontSchema>;
5330
- type FontSchema = z.infer<typeof fontSchema>;
5331
- declare const styleFontSchema: z.ZodObject<{
5332
- family: z.ZodString;
5333
- slug: z.ZodString;
5334
- role: z.ZodEnum<["title", "subtitle", "caption"]>;
5335
- }, "strip", z.ZodTypeAny, {
5336
- family: string;
5337
- slug: string;
5338
- role: "title" | "subtitle" | "caption";
5339
- }, {
5340
- family: string;
5341
- slug: string;
5342
- role: "title" | "subtitle" | "caption";
5343
- }>;
5344
- type StyleFont = z.infer<typeof styleFontSchema>;
5345
-
5346
- export { type Asset, type Background, type BaseEndpointProps, type BaseUpdateEndpointProps, type BatchUpdateEmbellishmentsProps, Book, type BookCreationRequest, BookDesignRequest, type BookDesignRequestProps, type BookProps, type BookReport, type BookSize, type Canvas, type Color, type CompatibleBackground, type CoverType, type DesignOptions, DesignRequest, type DesignRequestEvent, type DesignRequestEventDetail, DesignRequestOptions, type DesignRequestProps, type Embellishment, type EmbellishmentAnchors, type EmbellishmentBackground, type EmbellishmentBackgroundList, type EmbellishmentBand, type EmbellishmentBase, type EmbellishmentForStyleProps, type EmbellishmentFrame, type EmbellishmentGraphicSticker, type EmbellishmentLevel, type EmbellishmentList, type EmbellishmentListForStyleProps, type EmbellishmentListReturnType, type EmbellishmentPageCorner, type EmbellishmentPhotoCorner, type EmbellishmentPhotoCornerAnchors, type EmbellishmentPostcard, type EmbellishmentReturnType, type EmbellishmentStamp, type EmbellishmentStrip, type EmbellishmentTPoint, type EmbellishmentTape, type EmbellishmentTextSticker, type EmbellishmentUpdate, type EmbellishmentUpdateType, EmbellishmentsEndpoints, EngineAPI, type Font, type FontSchema, type Image, type ImageAssignment, type ImageDensity, type ImageDensityOption, type ImageDensityOptions, type ImageFilteringLevel, ImageServer, Images, type ListStylesProps, MagicBookClient, type MagicShopBook, type Occasion, type Page, type PageType, type PaginatedResponse, type PhotoMetadata, type PhotoStrip, type Position, type Property, type ReportingData, type RetrieveStyleProps, type Spread, type SpreadServer, type State, type StoryboardItem, StoryboardItemImageFaceSchema, StoryboardItemImageSchema, StoryboardItemSchema, type Style, type StyleBase, type StyleFont, type StyleId, type StyleReturnType, StylesEndpoints, type TextStickerLevel, type UpdateEmbellishmentProps, type UpdateStyleProps, assetSchema, backgroundSchema, bookCreationRequestSchema, bookDesignRequestSchema, bookPropsSchema, bookSizes, canSubmitDesignRequest, cancelledEventDetail, canvasSchema, colorSchema, compatibleBackgroundSchema, coverTypes, designOptionsSchema, embellishmentAnchorsSchema, embellishmentBackgroundListSchema, embellishmentBackgroundSchema, embellishmentBandSchema, embellishmentBaseSchema, embellishmentFrameSchema, embellishmentGraphicStickerSchema, embellishmentLevels, embellishmentListSchemas, embellishmentOrientations, embellishmentPageCornerSchema, embellishmentPhotoCornerAnchorsSchema, embellishmentPhotoCornerSchema, embellishmentPostcardSchema, embellishmentSchemas, embellishmentStackings, embellishmentStampSchema, embellishmentStripSchema, embellishmentTPointSchema, embellishmentTapeSchema, embellishmentTextStickerSchema, embellishmentThicknesses, embellishmentTypes, embellishmentUpdateSchemas, fontRoles, fontSchema, imageAssignmentSchema, imageDensities, imageDensityOptionSchema, imageDensityOptionsSchema, imageFilteringLevels, imageServerSchema, imageServerToImage, isDesignRequestSubmitted, layoutConstraintSchema, layoutConstraintsClasses, layoutConstraintsSchema, magicShopBookSchema, occasions, pageSchema, pageTypes, paginatedResponseSchema, photoMetadataSchema, photoStripSchema, positionSchema, propertySchema, reportingDataSchema, spreadSchema, spreadServerSchema, states, statesToCloseWS, statesToReport, styleBaseSchema, styleFontSchema, styleSchema, styles, textStickerLevels, timeoutEventDetail, whitespaceSchema };
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 };