@magiclabs.ai/magicbook-client 0.7.24-canary → 0.7.26

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.cjs CHANGED
@@ -1543,7 +1543,8 @@ var styles = {
1543
1543
  "5771ff862c394c9a8fcf4237a267651c": { slug: "studio-dark-snap" },
1544
1544
  "990e71b3b45d4baaa7236328c64c8364": { slug: "our-family-snap" },
1545
1545
  "2c5700f2b32c49d186b85e57449cdda6": { slug: "favourite-things-snap" },
1546
- e276151076d94d279d0d0b3608e3fba7: { slug: "my-family-snap" }
1546
+ e276151076d94d279d0d0b3608e3fba7: { slug: "my-family-snap" },
1547
+ "cbec6602c5474f8fafc1980fb068db2a": { slug: "graphic-love-snap" }
1547
1548
  };
1548
1549
  var bookSizes = [
1549
1550
  "4.5x4",
@@ -6263,7 +6264,7 @@ var Fetcher = class {
6263
6264
  const res = await fetch(this.cleanUrl(new URL(props.path, this.baseUrl).href), options);
6264
6265
  if (res.status >= 200 && res.status < 300) {
6265
6266
  try {
6266
- return await res.json();
6267
+ return await res.clone().json();
6267
6268
  } catch (error) {
6268
6269
  try {
6269
6270
  return await res.text();
@@ -6349,12 +6350,12 @@ var ImagesEndpoints = class {
6349
6350
 
6350
6351
  // ../../core/models/spread.ts
6351
6352
  var spreadServerSchema = z.object({
6352
- id: z.string().optional(),
6353
+ id: z.string(),
6353
6354
  book_id: z.string(),
6354
6355
  state: z.string(),
6355
6356
  spread_type: z.string(),
6356
- width: z.number().optional(),
6357
- height: z.number().optional(),
6357
+ width: z.number(),
6358
+ height: z.number(),
6358
6359
  sequence: z.number(),
6359
6360
  wells: z.array(z.unknown()),
6360
6361
  background: z.unknown(),
@@ -6365,12 +6366,12 @@ var spreadServerSchema = z.object({
6365
6366
  url: z.string().nullable().optional()
6366
6367
  });
6367
6368
  var spreadSchema = z.object({
6368
- id: z.string().optional(),
6369
+ id: z.string(),
6369
6370
  bookId: z.string(),
6370
6371
  state: z.string(),
6371
6372
  spreadType: z.string(),
6372
- width: z.number().optional(),
6373
- height: z.number().optional(),
6373
+ width: z.number(),
6374
+ height: z.number(),
6374
6375
  sequence: z.number(),
6375
6376
  wells: z.array(z.unknown()),
6376
6377
  background: z.unknown(),