@magiclabs.ai/magicbook-client 0.7.22-canary → 0.7.24-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
@@ -4572,22 +4572,7 @@ declare class SpreadsEndpoints {
4572
4572
  metadata?: unknown;
4573
4573
  background?: unknown;
4574
4574
  }>;
4575
- render(spreadId: string, bookId: string, size?: number): Promise<{
4576
- state: string;
4577
- book_id: string;
4578
- spread_type: string;
4579
- sequence: number;
4580
- wells: unknown[];
4581
- laid_out_at: string | null;
4582
- embellished_at: string | null;
4583
- polished_at: string | null;
4584
- id?: string | undefined;
4585
- url?: string | null | undefined;
4586
- width?: number | undefined;
4587
- height?: number | undefined;
4588
- metadata?: unknown;
4589
- background?: unknown;
4590
- }>;
4575
+ render(spreadId: string, bookId: string, size?: number): Promise<any>;
4591
4576
  update(spreadId: string, bookId: string, spread: SpreadServer): Promise<{
4592
4577
  state: string;
4593
4578
  book_id: string;
package/index.d.ts CHANGED
@@ -4572,22 +4572,7 @@ declare class SpreadsEndpoints {
4572
4572
  metadata?: unknown;
4573
4573
  background?: unknown;
4574
4574
  }>;
4575
- render(spreadId: string, bookId: string, size?: number): Promise<{
4576
- state: string;
4577
- book_id: string;
4578
- spread_type: string;
4579
- sequence: number;
4580
- wells: unknown[];
4581
- laid_out_at: string | null;
4582
- embellished_at: string | null;
4583
- polished_at: string | null;
4584
- id?: string | undefined;
4585
- url?: string | null | undefined;
4586
- width?: number | undefined;
4587
- height?: number | undefined;
4588
- metadata?: unknown;
4589
- background?: unknown;
4590
- }>;
4575
+ render(spreadId: string, bookId: string, size?: number): Promise<any>;
4591
4576
  update(spreadId: string, bookId: string, spread: SpreadServer): Promise<{
4592
4577
  state: string;
4593
4578
  book_id: string;
package/index.iife.js CHANGED
@@ -6241,7 +6241,11 @@ var MagicLabs = (() => {
6241
6241
  try {
6242
6242
  return await res.json();
6243
6243
  } catch (error) {
6244
- return {};
6244
+ try {
6245
+ return await res.text();
6246
+ } catch (e) {
6247
+ return {};
6248
+ }
6245
6249
  }
6246
6250
  } else {
6247
6251
  let detail = res.statusText;
@@ -6469,7 +6473,7 @@ var MagicLabs = (() => {
6469
6473
  const res = await this.engineAPI.fetcher.call({
6470
6474
  path: `/v1/spreads/${spreadId}/book/${bookId}/render/${size}`
6471
6475
  });
6472
- return spreadServerSchema.parse(res);
6476
+ return res;
6473
6477
  });
6474
6478
  }
6475
6479
  update(spreadId, bookId, spread) {