@magiclabs.ai/magicbook-client 0.7.24-canary → 0.7.25-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.cjs CHANGED
@@ -6263,7 +6263,7 @@ var Fetcher = class {
6263
6263
  const res = await fetch(this.cleanUrl(new URL(props.path, this.baseUrl).href), options);
6264
6264
  if (res.status >= 200 && res.status < 300) {
6265
6265
  try {
6266
- return await res.json();
6266
+ return await res.clone().json();
6267
6267
  } catch (error) {
6268
6268
  try {
6269
6269
  return await res.text();
@@ -6349,12 +6349,12 @@ var ImagesEndpoints = class {
6349
6349
 
6350
6350
  // ../../core/models/spread.ts
6351
6351
  var spreadServerSchema = z.object({
6352
- id: z.string().optional(),
6352
+ id: z.string(),
6353
6353
  book_id: z.string(),
6354
6354
  state: z.string(),
6355
6355
  spread_type: z.string(),
6356
- width: z.number().optional(),
6357
- height: z.number().optional(),
6356
+ width: z.number(),
6357
+ height: z.number(),
6358
6358
  sequence: z.number(),
6359
6359
  wells: z.array(z.unknown()),
6360
6360
  background: z.unknown(),
@@ -6365,12 +6365,12 @@ var spreadServerSchema = z.object({
6365
6365
  url: z.string().nullable().optional()
6366
6366
  });
6367
6367
  var spreadSchema = z.object({
6368
- id: z.string().optional(),
6368
+ id: z.string(),
6369
6369
  bookId: z.string(),
6370
6370
  state: z.string(),
6371
6371
  spreadType: z.string(),
6372
- width: z.number().optional(),
6373
- height: z.number().optional(),
6372
+ width: z.number(),
6373
+ height: z.number(),
6374
6374
  sequence: z.number(),
6375
6375
  wells: z.array(z.unknown()),
6376
6376
  background: z.unknown(),