@liforma/publisher 0.4.0 → 0.5.0

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.
Files changed (63) hide show
  1. package/README.md +23 -6
  2. package/dist/createPublisher.d.ts +20 -350
  3. package/dist/createPublisher.d.ts.map +1 -1
  4. package/dist/createPublisher.js +17 -316
  5. package/dist/createPublisher.js.map +1 -1
  6. package/dist/index.d.ts +10 -3
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/jobs.d.ts +11 -13
  10. package/dist/jobs.d.ts.map +1 -1
  11. package/dist/jobs.js +10 -23
  12. package/dist/jobs.js.map +1 -1
  13. package/dist/options.d.ts +11 -0
  14. package/dist/options.d.ts.map +1 -0
  15. package/dist/options.js +2 -0
  16. package/dist/options.js.map +1 -0
  17. package/dist/publishStart.d.ts +7 -0
  18. package/dist/publishStart.d.ts.map +1 -0
  19. package/dist/publishStart.js +10 -0
  20. package/dist/publishStart.js.map +1 -0
  21. package/dist/resources/avatars.d.ts +8 -0
  22. package/dist/resources/avatars.d.ts.map +1 -0
  23. package/dist/resources/avatars.js +11 -0
  24. package/dist/resources/avatars.js.map +1 -0
  25. package/dist/resources/backdrops.d.ts +25 -0
  26. package/dist/resources/backdrops.d.ts.map +1 -0
  27. package/dist/resources/backdrops.js +62 -0
  28. package/dist/resources/backdrops.js.map +1 -0
  29. package/dist/resources/characters.d.ts +40 -0
  30. package/dist/resources/characters.d.ts.map +1 -0
  31. package/dist/resources/characters.js +71 -0
  32. package/dist/resources/characters.js.map +1 -0
  33. package/dist/resources/clothes.d.ts +28 -0
  34. package/dist/resources/clothes.d.ts.map +1 -0
  35. package/dist/resources/clothes.js +55 -0
  36. package/dist/resources/clothes.js.map +1 -0
  37. package/dist/resources/experiences.d.ts +36 -0
  38. package/dist/resources/experiences.d.ts.map +1 -0
  39. package/dist/resources/experiences.js +71 -0
  40. package/dist/resources/experiences.js.map +1 -0
  41. package/dist/resources/hair.d.ts +19 -0
  42. package/dist/resources/hair.d.ts.map +1 -0
  43. package/dist/resources/hair.js +43 -0
  44. package/dist/resources/hair.js.map +1 -0
  45. package/dist/resources/sets.d.ts +22 -0
  46. package/dist/resources/sets.d.ts.map +1 -0
  47. package/dist/resources/sets.js +49 -0
  48. package/dist/resources/sets.js.map +1 -0
  49. package/dist/schemas.d.ts +700 -20
  50. package/dist/schemas.d.ts.map +1 -1
  51. package/dist/schemas.js +62 -4
  52. package/dist/schemas.js.map +1 -1
  53. package/dist/spatial.d.ts +3 -0
  54. package/dist/spatial.d.ts.map +1 -0
  55. package/dist/spatial.js +13 -0
  56. package/dist/spatial.js.map +1 -0
  57. package/dist/validate.d.ts +3 -0
  58. package/dist/validate.d.ts.map +1 -0
  59. package/dist/validate.js +13 -0
  60. package/dist/validate.js.map +1 -0
  61. package/dist/version.d.ts +1 -1
  62. package/dist/version.js +1 -1
  63. package/package.json +1 -1
package/dist/schemas.d.ts CHANGED
@@ -53,11 +53,28 @@ export declare const experienceStatusSchema: z.ZodEnum<{
53
53
  draft: "draft";
54
54
  published: "published";
55
55
  }>;
56
+ export declare const PUBLISH_JOB_ERROR_CATEGORIES: readonly ["input", "dependency", "capacity", "infrastructure", "internal"];
57
+ export declare const publishJobErrorCategorySchema: z.ZodEnum<{
58
+ input: "input";
59
+ dependency: "dependency";
60
+ capacity: "capacity";
61
+ infrastructure: "infrastructure";
62
+ internal: "internal";
63
+ }>;
64
+ export type PublishJobErrorCategory = (typeof PUBLISH_JOB_ERROR_CATEGORIES)[number];
56
65
  export declare const publishJobErrorSchema: z.ZodObject<{
57
66
  code: z.ZodString;
67
+ category: z.ZodEnum<{
68
+ input: "input";
69
+ dependency: "dependency";
70
+ capacity: "capacity";
71
+ infrastructure: "infrastructure";
72
+ internal: "internal";
73
+ }>;
74
+ retryable: z.ZodBoolean;
58
75
  message: z.ZodString;
59
76
  }, z.core.$strict>;
60
- export declare const publishJobSchema: z.ZodObject<{
77
+ export declare const publishJobSchema: z.ZodPipe<z.ZodObject<{
61
78
  id: z.ZodString;
62
79
  status: z.ZodEnum<{
63
80
  failed: "failed";
@@ -70,6 +87,7 @@ export declare const publishJobSchema: z.ZodObject<{
70
87
  clothes: "clothes";
71
88
  hair: "hair";
72
89
  location: "location";
90
+ backdrop: "backdrop";
73
91
  }>;
74
92
  pollUrl: z.ZodString;
75
93
  targetId: z.ZodString;
@@ -81,9 +99,53 @@ export declare const publishJobSchema: z.ZodObject<{
81
99
  }, z.core.$strict>;
82
100
  error: z.ZodNullable<z.ZodObject<{
83
101
  code: z.ZodString;
102
+ category: z.ZodEnum<{
103
+ input: "input";
104
+ dependency: "dependency";
105
+ capacity: "capacity";
106
+ infrastructure: "infrastructure";
107
+ internal: "internal";
108
+ }>;
109
+ retryable: z.ZodBoolean;
84
110
  message: z.ZodString;
85
111
  }, z.core.$strict>>;
86
- }, z.core.$strict>;
112
+ }, z.core.$strict>, z.ZodTransform<{
113
+ id: string;
114
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
115
+ kind: "clothes" | "hair" | "location" | "backdrop";
116
+ pollUrl: string;
117
+ targetId: string;
118
+ requiredOk: boolean;
119
+ stage: string | null;
120
+ progress: {
121
+ requiredVerified: number;
122
+ requiredTotal: number;
123
+ };
124
+ error: {
125
+ code: string;
126
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
127
+ retryable: boolean;
128
+ message: string;
129
+ } | null;
130
+ }, {
131
+ id: string;
132
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
133
+ kind: "clothes" | "hair" | "location" | "backdrop";
134
+ pollUrl: string;
135
+ targetId: string;
136
+ requiredOk: boolean;
137
+ stage: string | null;
138
+ progress: {
139
+ requiredVerified: number;
140
+ requiredTotal: number;
141
+ };
142
+ error: {
143
+ code: string;
144
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
145
+ retryable: boolean;
146
+ message: string;
147
+ } | null;
148
+ }>>;
87
149
  export declare const publishStubSchema: z.ZodObject<{
88
150
  id: z.ZodString;
89
151
  status: z.ZodEnum<{
@@ -93,7 +155,7 @@ export declare const publishStubSchema: z.ZodObject<{
93
155
  }>;
94
156
  }, z.core.$strict>;
95
157
  export declare const createClothesPublishResponseSchema: z.ZodObject<{
96
- job: z.ZodObject<{
158
+ job: z.ZodPipe<z.ZodObject<{
97
159
  id: z.ZodString;
98
160
  status: z.ZodEnum<{
99
161
  failed: "failed";
@@ -106,6 +168,7 @@ export declare const createClothesPublishResponseSchema: z.ZodObject<{
106
168
  clothes: "clothes";
107
169
  hair: "hair";
108
170
  location: "location";
171
+ backdrop: "backdrop";
109
172
  }>;
110
173
  pollUrl: z.ZodString;
111
174
  targetId: z.ZodString;
@@ -117,9 +180,53 @@ export declare const createClothesPublishResponseSchema: z.ZodObject<{
117
180
  }, z.core.$strict>;
118
181
  error: z.ZodNullable<z.ZodObject<{
119
182
  code: z.ZodString;
183
+ category: z.ZodEnum<{
184
+ input: "input";
185
+ dependency: "dependency";
186
+ capacity: "capacity";
187
+ infrastructure: "infrastructure";
188
+ internal: "internal";
189
+ }>;
190
+ retryable: z.ZodBoolean;
120
191
  message: z.ZodString;
121
192
  }, z.core.$strict>>;
122
- }, z.core.$strict>;
193
+ }, z.core.$strict>, z.ZodTransform<{
194
+ id: string;
195
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
196
+ kind: "clothes" | "hair" | "location" | "backdrop";
197
+ pollUrl: string;
198
+ targetId: string;
199
+ requiredOk: boolean;
200
+ stage: string | null;
201
+ progress: {
202
+ requiredVerified: number;
203
+ requiredTotal: number;
204
+ };
205
+ error: {
206
+ code: string;
207
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
208
+ retryable: boolean;
209
+ message: string;
210
+ } | null;
211
+ }, {
212
+ id: string;
213
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
214
+ kind: "clothes" | "hair" | "location" | "backdrop";
215
+ pollUrl: string;
216
+ targetId: string;
217
+ requiredOk: boolean;
218
+ stage: string | null;
219
+ progress: {
220
+ requiredVerified: number;
221
+ requiredTotal: number;
222
+ };
223
+ error: {
224
+ code: string;
225
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
226
+ retryable: boolean;
227
+ message: string;
228
+ } | null;
229
+ }>>;
123
230
  clothes: z.ZodObject<{
124
231
  id: z.ZodString;
125
232
  status: z.ZodEnum<{
@@ -130,7 +237,7 @@ export declare const createClothesPublishResponseSchema: z.ZodObject<{
130
237
  }, z.core.$strict>;
131
238
  }, z.core.$strict>;
132
239
  export declare const createHairPublishResponseSchema: z.ZodObject<{
133
- job: z.ZodObject<{
240
+ job: z.ZodPipe<z.ZodObject<{
134
241
  id: z.ZodString;
135
242
  status: z.ZodEnum<{
136
243
  failed: "failed";
@@ -143,6 +250,7 @@ export declare const createHairPublishResponseSchema: z.ZodObject<{
143
250
  clothes: "clothes";
144
251
  hair: "hair";
145
252
  location: "location";
253
+ backdrop: "backdrop";
146
254
  }>;
147
255
  pollUrl: z.ZodString;
148
256
  targetId: z.ZodString;
@@ -154,9 +262,53 @@ export declare const createHairPublishResponseSchema: z.ZodObject<{
154
262
  }, z.core.$strict>;
155
263
  error: z.ZodNullable<z.ZodObject<{
156
264
  code: z.ZodString;
265
+ category: z.ZodEnum<{
266
+ input: "input";
267
+ dependency: "dependency";
268
+ capacity: "capacity";
269
+ infrastructure: "infrastructure";
270
+ internal: "internal";
271
+ }>;
272
+ retryable: z.ZodBoolean;
157
273
  message: z.ZodString;
158
274
  }, z.core.$strict>>;
159
- }, z.core.$strict>;
275
+ }, z.core.$strict>, z.ZodTransform<{
276
+ id: string;
277
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
278
+ kind: "clothes" | "hair" | "location" | "backdrop";
279
+ pollUrl: string;
280
+ targetId: string;
281
+ requiredOk: boolean;
282
+ stage: string | null;
283
+ progress: {
284
+ requiredVerified: number;
285
+ requiredTotal: number;
286
+ };
287
+ error: {
288
+ code: string;
289
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
290
+ retryable: boolean;
291
+ message: string;
292
+ } | null;
293
+ }, {
294
+ id: string;
295
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
296
+ kind: "clothes" | "hair" | "location" | "backdrop";
297
+ pollUrl: string;
298
+ targetId: string;
299
+ requiredOk: boolean;
300
+ stage: string | null;
301
+ progress: {
302
+ requiredVerified: number;
303
+ requiredTotal: number;
304
+ };
305
+ error: {
306
+ code: string;
307
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
308
+ retryable: boolean;
309
+ message: string;
310
+ } | null;
311
+ }>>;
160
312
  hair: z.ZodObject<{
161
313
  id: z.ZodString;
162
314
  status: z.ZodEnum<{
@@ -167,7 +319,7 @@ export declare const createHairPublishResponseSchema: z.ZodObject<{
167
319
  }, z.core.$strict>;
168
320
  }, z.core.$strict>;
169
321
  export declare const createLocationPublishResponseSchema: z.ZodObject<{
170
- job: z.ZodObject<{
322
+ job: z.ZodPipe<z.ZodObject<{
171
323
  id: z.ZodString;
172
324
  status: z.ZodEnum<{
173
325
  failed: "failed";
@@ -180,6 +332,7 @@ export declare const createLocationPublishResponseSchema: z.ZodObject<{
180
332
  clothes: "clothes";
181
333
  hair: "hair";
182
334
  location: "location";
335
+ backdrop: "backdrop";
183
336
  }>;
184
337
  pollUrl: z.ZodString;
185
338
  targetId: z.ZodString;
@@ -191,9 +344,53 @@ export declare const createLocationPublishResponseSchema: z.ZodObject<{
191
344
  }, z.core.$strict>;
192
345
  error: z.ZodNullable<z.ZodObject<{
193
346
  code: z.ZodString;
347
+ category: z.ZodEnum<{
348
+ input: "input";
349
+ dependency: "dependency";
350
+ capacity: "capacity";
351
+ infrastructure: "infrastructure";
352
+ internal: "internal";
353
+ }>;
354
+ retryable: z.ZodBoolean;
194
355
  message: z.ZodString;
195
356
  }, z.core.$strict>>;
196
- }, z.core.$strict>;
357
+ }, z.core.$strict>, z.ZodTransform<{
358
+ id: string;
359
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
360
+ kind: "clothes" | "hair" | "location" | "backdrop";
361
+ pollUrl: string;
362
+ targetId: string;
363
+ requiredOk: boolean;
364
+ stage: string | null;
365
+ progress: {
366
+ requiredVerified: number;
367
+ requiredTotal: number;
368
+ };
369
+ error: {
370
+ code: string;
371
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
372
+ retryable: boolean;
373
+ message: string;
374
+ } | null;
375
+ }, {
376
+ id: string;
377
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
378
+ kind: "clothes" | "hair" | "location" | "backdrop";
379
+ pollUrl: string;
380
+ targetId: string;
381
+ requiredOk: boolean;
382
+ stage: string | null;
383
+ progress: {
384
+ requiredVerified: number;
385
+ requiredTotal: number;
386
+ };
387
+ error: {
388
+ code: string;
389
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
390
+ retryable: boolean;
391
+ message: string;
392
+ } | null;
393
+ }>>;
197
394
  location: z.ZodObject<{
198
395
  id: z.ZodString;
199
396
  status: z.ZodEnum<{
@@ -203,8 +400,8 @@ export declare const createLocationPublishResponseSchema: z.ZodObject<{
203
400
  }>;
204
401
  }, z.core.$strict>;
205
402
  }, z.core.$strict>;
206
- export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
207
- job: z.ZodObject<{
403
+ export declare const createBackdropPublishResponseSchema: z.ZodObject<{
404
+ job: z.ZodPipe<z.ZodObject<{
208
405
  id: z.ZodString;
209
406
  status: z.ZodEnum<{
210
407
  failed: "failed";
@@ -217,6 +414,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
217
414
  clothes: "clothes";
218
415
  hair: "hair";
219
416
  location: "location";
417
+ backdrop: "backdrop";
220
418
  }>;
221
419
  pollUrl: z.ZodString;
222
420
  targetId: z.ZodString;
@@ -228,9 +426,135 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
228
426
  }, z.core.$strict>;
229
427
  error: z.ZodNullable<z.ZodObject<{
230
428
  code: z.ZodString;
429
+ category: z.ZodEnum<{
430
+ input: "input";
431
+ dependency: "dependency";
432
+ capacity: "capacity";
433
+ infrastructure: "infrastructure";
434
+ internal: "internal";
435
+ }>;
436
+ retryable: z.ZodBoolean;
231
437
  message: z.ZodString;
232
438
  }, z.core.$strict>>;
439
+ }, z.core.$strict>, z.ZodTransform<{
440
+ id: string;
441
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
442
+ kind: "clothes" | "hair" | "location" | "backdrop";
443
+ pollUrl: string;
444
+ targetId: string;
445
+ requiredOk: boolean;
446
+ stage: string | null;
447
+ progress: {
448
+ requiredVerified: number;
449
+ requiredTotal: number;
450
+ };
451
+ error: {
452
+ code: string;
453
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
454
+ retryable: boolean;
455
+ message: string;
456
+ } | null;
457
+ }, {
458
+ id: string;
459
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
460
+ kind: "clothes" | "hair" | "location" | "backdrop";
461
+ pollUrl: string;
462
+ targetId: string;
463
+ requiredOk: boolean;
464
+ stage: string | null;
465
+ progress: {
466
+ requiredVerified: number;
467
+ requiredTotal: number;
468
+ };
469
+ error: {
470
+ code: string;
471
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
472
+ retryable: boolean;
473
+ message: string;
474
+ } | null;
475
+ }>>;
476
+ backdrop: z.ZodObject<{
477
+ id: z.ZodString;
478
+ status: z.ZodEnum<{
479
+ processing: "processing";
480
+ ready: "ready";
481
+ failed: "failed";
482
+ }>;
233
483
  }, z.core.$strict>;
484
+ }, z.core.$strict>;
485
+ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
486
+ job: z.ZodPipe<z.ZodObject<{
487
+ id: z.ZodString;
488
+ status: z.ZodEnum<{
489
+ failed: "failed";
490
+ queued: "queued";
491
+ running: "running";
492
+ waiting_processor: "waiting_processor";
493
+ succeeded: "succeeded";
494
+ }>;
495
+ kind: z.ZodEnum<{
496
+ clothes: "clothes";
497
+ hair: "hair";
498
+ location: "location";
499
+ backdrop: "backdrop";
500
+ }>;
501
+ pollUrl: z.ZodString;
502
+ targetId: z.ZodString;
503
+ requiredOk: z.ZodBoolean;
504
+ stage: z.ZodNullable<z.ZodString>;
505
+ progress: z.ZodObject<{
506
+ requiredVerified: z.ZodNumber;
507
+ requiredTotal: z.ZodNumber;
508
+ }, z.core.$strict>;
509
+ error: z.ZodNullable<z.ZodObject<{
510
+ code: z.ZodString;
511
+ category: z.ZodEnum<{
512
+ input: "input";
513
+ dependency: "dependency";
514
+ capacity: "capacity";
515
+ infrastructure: "infrastructure";
516
+ internal: "internal";
517
+ }>;
518
+ retryable: z.ZodBoolean;
519
+ message: z.ZodString;
520
+ }, z.core.$strict>>;
521
+ }, z.core.$strict>, z.ZodTransform<{
522
+ id: string;
523
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
524
+ kind: "clothes" | "hair" | "location" | "backdrop";
525
+ pollUrl: string;
526
+ targetId: string;
527
+ requiredOk: boolean;
528
+ stage: string | null;
529
+ progress: {
530
+ requiredVerified: number;
531
+ requiredTotal: number;
532
+ };
533
+ error: {
534
+ code: string;
535
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
536
+ retryable: boolean;
537
+ message: string;
538
+ } | null;
539
+ }, {
540
+ id: string;
541
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
542
+ kind: "clothes" | "hair" | "location" | "backdrop";
543
+ pollUrl: string;
544
+ targetId: string;
545
+ requiredOk: boolean;
546
+ stage: string | null;
547
+ progress: {
548
+ requiredVerified: number;
549
+ requiredTotal: number;
550
+ };
551
+ error: {
552
+ code: string;
553
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
554
+ retryable: boolean;
555
+ message: string;
556
+ } | null;
557
+ }>>;
234
558
  clothes: z.ZodObject<{
235
559
  id: z.ZodString;
236
560
  status: z.ZodEnum<{
@@ -240,7 +564,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
240
564
  }>;
241
565
  }, z.core.$strict>;
242
566
  }, z.core.$strict>, z.ZodObject<{
243
- job: z.ZodObject<{
567
+ job: z.ZodPipe<z.ZodObject<{
244
568
  id: z.ZodString;
245
569
  status: z.ZodEnum<{
246
570
  failed: "failed";
@@ -253,6 +577,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
253
577
  clothes: "clothes";
254
578
  hair: "hair";
255
579
  location: "location";
580
+ backdrop: "backdrop";
256
581
  }>;
257
582
  pollUrl: z.ZodString;
258
583
  targetId: z.ZodString;
@@ -264,9 +589,53 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
264
589
  }, z.core.$strict>;
265
590
  error: z.ZodNullable<z.ZodObject<{
266
591
  code: z.ZodString;
592
+ category: z.ZodEnum<{
593
+ input: "input";
594
+ dependency: "dependency";
595
+ capacity: "capacity";
596
+ infrastructure: "infrastructure";
597
+ internal: "internal";
598
+ }>;
599
+ retryable: z.ZodBoolean;
267
600
  message: z.ZodString;
268
601
  }, z.core.$strict>>;
269
- }, z.core.$strict>;
602
+ }, z.core.$strict>, z.ZodTransform<{
603
+ id: string;
604
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
605
+ kind: "clothes" | "hair" | "location" | "backdrop";
606
+ pollUrl: string;
607
+ targetId: string;
608
+ requiredOk: boolean;
609
+ stage: string | null;
610
+ progress: {
611
+ requiredVerified: number;
612
+ requiredTotal: number;
613
+ };
614
+ error: {
615
+ code: string;
616
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
617
+ retryable: boolean;
618
+ message: string;
619
+ } | null;
620
+ }, {
621
+ id: string;
622
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
623
+ kind: "clothes" | "hair" | "location" | "backdrop";
624
+ pollUrl: string;
625
+ targetId: string;
626
+ requiredOk: boolean;
627
+ stage: string | null;
628
+ progress: {
629
+ requiredVerified: number;
630
+ requiredTotal: number;
631
+ };
632
+ error: {
633
+ code: string;
634
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
635
+ retryable: boolean;
636
+ message: string;
637
+ } | null;
638
+ }>>;
270
639
  hair: z.ZodObject<{
271
640
  id: z.ZodString;
272
641
  status: z.ZodEnum<{
@@ -276,7 +645,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
276
645
  }>;
277
646
  }, z.core.$strict>;
278
647
  }, z.core.$strict>, z.ZodObject<{
279
- job: z.ZodObject<{
648
+ job: z.ZodPipe<z.ZodObject<{
280
649
  id: z.ZodString;
281
650
  status: z.ZodEnum<{
282
651
  failed: "failed";
@@ -289,6 +658,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
289
658
  clothes: "clothes";
290
659
  hair: "hair";
291
660
  location: "location";
661
+ backdrop: "backdrop";
292
662
  }>;
293
663
  pollUrl: z.ZodString;
294
664
  targetId: z.ZodString;
@@ -300,9 +670,53 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
300
670
  }, z.core.$strict>;
301
671
  error: z.ZodNullable<z.ZodObject<{
302
672
  code: z.ZodString;
673
+ category: z.ZodEnum<{
674
+ input: "input";
675
+ dependency: "dependency";
676
+ capacity: "capacity";
677
+ infrastructure: "infrastructure";
678
+ internal: "internal";
679
+ }>;
680
+ retryable: z.ZodBoolean;
303
681
  message: z.ZodString;
304
682
  }, z.core.$strict>>;
305
- }, z.core.$strict>;
683
+ }, z.core.$strict>, z.ZodTransform<{
684
+ id: string;
685
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
686
+ kind: "clothes" | "hair" | "location" | "backdrop";
687
+ pollUrl: string;
688
+ targetId: string;
689
+ requiredOk: boolean;
690
+ stage: string | null;
691
+ progress: {
692
+ requiredVerified: number;
693
+ requiredTotal: number;
694
+ };
695
+ error: {
696
+ code: string;
697
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
698
+ retryable: boolean;
699
+ message: string;
700
+ } | null;
701
+ }, {
702
+ id: string;
703
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
704
+ kind: "clothes" | "hair" | "location" | "backdrop";
705
+ pollUrl: string;
706
+ targetId: string;
707
+ requiredOk: boolean;
708
+ stage: string | null;
709
+ progress: {
710
+ requiredVerified: number;
711
+ requiredTotal: number;
712
+ };
713
+ error: {
714
+ code: string;
715
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
716
+ retryable: boolean;
717
+ message: string;
718
+ } | null;
719
+ }>>;
306
720
  location: z.ZodObject<{
307
721
  id: z.ZodString;
308
722
  status: z.ZodEnum<{
@@ -311,9 +725,90 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
311
725
  failed: "failed";
312
726
  }>;
313
727
  }, z.core.$strict>;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ job: z.ZodPipe<z.ZodObject<{
730
+ id: z.ZodString;
731
+ status: z.ZodEnum<{
732
+ failed: "failed";
733
+ queued: "queued";
734
+ running: "running";
735
+ waiting_processor: "waiting_processor";
736
+ succeeded: "succeeded";
737
+ }>;
738
+ kind: z.ZodEnum<{
739
+ clothes: "clothes";
740
+ hair: "hair";
741
+ location: "location";
742
+ backdrop: "backdrop";
743
+ }>;
744
+ pollUrl: z.ZodString;
745
+ targetId: z.ZodString;
746
+ requiredOk: z.ZodBoolean;
747
+ stage: z.ZodNullable<z.ZodString>;
748
+ progress: z.ZodObject<{
749
+ requiredVerified: z.ZodNumber;
750
+ requiredTotal: z.ZodNumber;
751
+ }, z.core.$strict>;
752
+ error: z.ZodNullable<z.ZodObject<{
753
+ code: z.ZodString;
754
+ category: z.ZodEnum<{
755
+ input: "input";
756
+ dependency: "dependency";
757
+ capacity: "capacity";
758
+ infrastructure: "infrastructure";
759
+ internal: "internal";
760
+ }>;
761
+ retryable: z.ZodBoolean;
762
+ message: z.ZodString;
763
+ }, z.core.$strict>>;
764
+ }, z.core.$strict>, z.ZodTransform<{
765
+ id: string;
766
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
767
+ kind: "clothes" | "hair" | "location" | "backdrop";
768
+ pollUrl: string;
769
+ targetId: string;
770
+ requiredOk: boolean;
771
+ stage: string | null;
772
+ progress: {
773
+ requiredVerified: number;
774
+ requiredTotal: number;
775
+ };
776
+ error: {
777
+ code: string;
778
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
779
+ retryable: boolean;
780
+ message: string;
781
+ } | null;
782
+ }, {
783
+ id: string;
784
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
785
+ kind: "clothes" | "hair" | "location" | "backdrop";
786
+ pollUrl: string;
787
+ targetId: string;
788
+ requiredOk: boolean;
789
+ stage: string | null;
790
+ progress: {
791
+ requiredVerified: number;
792
+ requiredTotal: number;
793
+ };
794
+ error: {
795
+ code: string;
796
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
797
+ retryable: boolean;
798
+ message: string;
799
+ } | null;
800
+ }>>;
801
+ backdrop: z.ZodObject<{
802
+ id: z.ZodString;
803
+ status: z.ZodEnum<{
804
+ processing: "processing";
805
+ ready: "ready";
806
+ failed: "failed";
807
+ }>;
808
+ }, z.core.$strict>;
314
809
  }, z.core.$strict>]>;
315
810
  export declare const getJobResponseSchema: z.ZodObject<{
316
- job: z.ZodObject<{
811
+ job: z.ZodPipe<z.ZodObject<{
317
812
  id: z.ZodString;
318
813
  status: z.ZodEnum<{
319
814
  failed: "failed";
@@ -326,6 +821,7 @@ export declare const getJobResponseSchema: z.ZodObject<{
326
821
  clothes: "clothes";
327
822
  hair: "hair";
328
823
  location: "location";
824
+ backdrop: "backdrop";
329
825
  }>;
330
826
  pollUrl: z.ZodString;
331
827
  targetId: z.ZodString;
@@ -337,9 +833,53 @@ export declare const getJobResponseSchema: z.ZodObject<{
337
833
  }, z.core.$strict>;
338
834
  error: z.ZodNullable<z.ZodObject<{
339
835
  code: z.ZodString;
836
+ category: z.ZodEnum<{
837
+ input: "input";
838
+ dependency: "dependency";
839
+ capacity: "capacity";
840
+ infrastructure: "infrastructure";
841
+ internal: "internal";
842
+ }>;
843
+ retryable: z.ZodBoolean;
340
844
  message: z.ZodString;
341
845
  }, z.core.$strict>>;
342
- }, z.core.$strict>;
846
+ }, z.core.$strict>, z.ZodTransform<{
847
+ id: string;
848
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
849
+ kind: "clothes" | "hair" | "location" | "backdrop";
850
+ pollUrl: string;
851
+ targetId: string;
852
+ requiredOk: boolean;
853
+ stage: string | null;
854
+ progress: {
855
+ requiredVerified: number;
856
+ requiredTotal: number;
857
+ };
858
+ error: {
859
+ code: string;
860
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
861
+ retryable: boolean;
862
+ message: string;
863
+ } | null;
864
+ }, {
865
+ id: string;
866
+ status: "failed" | "queued" | "running" | "waiting_processor" | "succeeded";
867
+ kind: "clothes" | "hair" | "location" | "backdrop";
868
+ pollUrl: string;
869
+ targetId: string;
870
+ requiredOk: boolean;
871
+ stage: string | null;
872
+ progress: {
873
+ requiredVerified: number;
874
+ requiredTotal: number;
875
+ };
876
+ error: {
877
+ code: string;
878
+ category: "input" | "dependency" | "capacity" | "infrastructure" | "internal";
879
+ retryable: boolean;
880
+ message: string;
881
+ } | null;
882
+ }>>;
343
883
  }, z.core.$strict>;
344
884
  export declare const createUploadResponseSchema: z.ZodObject<{
345
885
  upload: z.ZodObject<{
@@ -409,6 +949,20 @@ export declare const locationResourceSchema: z.ZodObject<{
409
949
  style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
950
  externalId: z.ZodNullable<z.ZodString>;
411
951
  }, z.core.$strict>;
952
+ export declare const backdropResourceSchema: z.ZodObject<{
953
+ kind: z.ZodLiteral<"backdrop">;
954
+ id: z.ZodString;
955
+ status: z.ZodEnum<{
956
+ processing: "processing";
957
+ ready: "ready";
958
+ failed: "failed";
959
+ archived: "archived";
960
+ }>;
961
+ name: z.ZodString;
962
+ depthEncoding: z.ZodNullable<z.ZodString>;
963
+ style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
+ externalId: z.ZodNullable<z.ZodString>;
965
+ }, z.core.$strict>;
412
966
  export declare const getClothesResponseSchema: z.ZodObject<{
413
967
  clothes: z.ZodObject<{
414
968
  kind: z.ZodLiteral<"clothes">;
@@ -461,6 +1015,22 @@ export declare const getLocationResponseSchema: z.ZodObject<{
461
1015
  externalId: z.ZodNullable<z.ZodString>;
462
1016
  }, z.core.$strict>;
463
1017
  }, z.core.$strict>;
1018
+ export declare const getBackdropResponseSchema: z.ZodObject<{
1019
+ backdrop: z.ZodObject<{
1020
+ kind: z.ZodLiteral<"backdrop">;
1021
+ id: z.ZodString;
1022
+ status: z.ZodEnum<{
1023
+ processing: "processing";
1024
+ ready: "ready";
1025
+ failed: "failed";
1026
+ archived: "archived";
1027
+ }>;
1028
+ name: z.ZodString;
1029
+ depthEncoding: z.ZodNullable<z.ZodString>;
1030
+ style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1031
+ externalId: z.ZodNullable<z.ZodString>;
1032
+ }, z.core.$strict>;
1033
+ }, z.core.$strict>;
464
1034
  export declare const characterSchema: z.ZodObject<{
465
1035
  id: z.ZodString;
466
1036
  projectId: z.ZodString;
@@ -513,7 +1083,20 @@ export declare const placeSchema: z.ZodObject<{
513
1083
  createdAt: z.ZodString;
514
1084
  updatedAt: z.ZodString;
515
1085
  }, z.core.$strict>;
516
- export declare const experienceSchema: z.ZodObject<{
1086
+ export declare const setSchema: z.ZodObject<{
1087
+ id: z.ZodString;
1088
+ name: z.ZodString;
1089
+ backdropId: z.ZodString;
1090
+ style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1091
+ status: z.ZodEnum<{
1092
+ archived: "archived";
1093
+ active: "active";
1094
+ }>;
1095
+ externalId: z.ZodNullable<z.ZodString>;
1096
+ createdAt: z.ZodString;
1097
+ updatedAt: z.ZodString;
1098
+ }, z.core.$strict>;
1099
+ export declare const experienceSchema: z.ZodPipe<z.ZodObject<{
517
1100
  id: z.ZodString;
518
1101
  projectId: z.ZodString;
519
1102
  title: z.ZodString;
@@ -529,13 +1112,52 @@ export declare const experienceSchema: z.ZodObject<{
529
1112
  attributes: z.ZodRecord<z.ZodString, z.ZodString>;
530
1113
  characterId: z.ZodNullable<z.ZodString>;
531
1114
  placeId: z.ZodNullable<z.ZodString>;
1115
+ setId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
532
1116
  startingMessage: z.ZodNullable<z.ZodString>;
533
1117
  systemInstructions: z.ZodNullable<z.ZodString>;
534
1118
  introduction: z.ZodNullable<z.ZodString>;
535
1119
  externalId: z.ZodNullable<z.ZodString>;
536
1120
  createdAt: z.ZodString;
537
1121
  updatedAt: z.ZodString;
538
- }, z.core.$strict>;
1122
+ }, z.core.$strict>, z.ZodTransform<{
1123
+ setId: string | null;
1124
+ id: string;
1125
+ projectId: string;
1126
+ title: string;
1127
+ slug: string;
1128
+ status: "archived" | "draft" | "published";
1129
+ hasPublishedRevision: boolean;
1130
+ hasUnpublishedChanges: boolean;
1131
+ published: boolean;
1132
+ attributes: Record<string, string>;
1133
+ characterId: string | null;
1134
+ placeId: string | null;
1135
+ startingMessage: string | null;
1136
+ systemInstructions: string | null;
1137
+ introduction: string | null;
1138
+ externalId: string | null;
1139
+ createdAt: string;
1140
+ updatedAt: string;
1141
+ }, {
1142
+ id: string;
1143
+ projectId: string;
1144
+ title: string;
1145
+ slug: string;
1146
+ status: "archived" | "draft" | "published";
1147
+ hasPublishedRevision: boolean;
1148
+ hasUnpublishedChanges: boolean;
1149
+ published: boolean;
1150
+ attributes: Record<string, string>;
1151
+ characterId: string | null;
1152
+ placeId: string | null;
1153
+ startingMessage: string | null;
1154
+ systemInstructions: string | null;
1155
+ introduction: string | null;
1156
+ externalId: string | null;
1157
+ createdAt: string;
1158
+ updatedAt: string;
1159
+ setId?: string | null | undefined;
1160
+ }>>;
539
1161
  export declare const createCharacterResponseSchema: z.ZodObject<{
540
1162
  character: z.ZodObject<{
541
1163
  id: z.ZodString;
@@ -592,8 +1214,23 @@ export declare const createPlaceResponseSchema: z.ZodObject<{
592
1214
  updatedAt: z.ZodString;
593
1215
  }, z.core.$strict>;
594
1216
  }, z.core.$strict>;
1217
+ export declare const createSetResponseSchema: z.ZodObject<{
1218
+ set: z.ZodObject<{
1219
+ id: z.ZodString;
1220
+ name: z.ZodString;
1221
+ backdropId: z.ZodString;
1222
+ style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1223
+ status: z.ZodEnum<{
1224
+ archived: "archived";
1225
+ active: "active";
1226
+ }>;
1227
+ externalId: z.ZodNullable<z.ZodString>;
1228
+ createdAt: z.ZodString;
1229
+ updatedAt: z.ZodString;
1230
+ }, z.core.$strict>;
1231
+ }, z.core.$strict>;
595
1232
  export declare const experienceResponseSchema: z.ZodObject<{
596
- experience: z.ZodObject<{
1233
+ experience: z.ZodPipe<z.ZodObject<{
597
1234
  id: z.ZodString;
598
1235
  projectId: z.ZodString;
599
1236
  title: z.ZodString;
@@ -609,13 +1246,52 @@ export declare const experienceResponseSchema: z.ZodObject<{
609
1246
  attributes: z.ZodRecord<z.ZodString, z.ZodString>;
610
1247
  characterId: z.ZodNullable<z.ZodString>;
611
1248
  placeId: z.ZodNullable<z.ZodString>;
1249
+ setId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
1250
  startingMessage: z.ZodNullable<z.ZodString>;
613
1251
  systemInstructions: z.ZodNullable<z.ZodString>;
614
1252
  introduction: z.ZodNullable<z.ZodString>;
615
1253
  externalId: z.ZodNullable<z.ZodString>;
616
1254
  createdAt: z.ZodString;
617
1255
  updatedAt: z.ZodString;
618
- }, z.core.$strict>;
1256
+ }, z.core.$strict>, z.ZodTransform<{
1257
+ setId: string | null;
1258
+ id: string;
1259
+ projectId: string;
1260
+ title: string;
1261
+ slug: string;
1262
+ status: "archived" | "draft" | "published";
1263
+ hasPublishedRevision: boolean;
1264
+ hasUnpublishedChanges: boolean;
1265
+ published: boolean;
1266
+ attributes: Record<string, string>;
1267
+ characterId: string | null;
1268
+ placeId: string | null;
1269
+ startingMessage: string | null;
1270
+ systemInstructions: string | null;
1271
+ introduction: string | null;
1272
+ externalId: string | null;
1273
+ createdAt: string;
1274
+ updatedAt: string;
1275
+ }, {
1276
+ id: string;
1277
+ projectId: string;
1278
+ title: string;
1279
+ slug: string;
1280
+ status: "archived" | "draft" | "published";
1281
+ hasPublishedRevision: boolean;
1282
+ hasUnpublishedChanges: boolean;
1283
+ published: boolean;
1284
+ attributes: Record<string, string>;
1285
+ characterId: string | null;
1286
+ placeId: string | null;
1287
+ startingMessage: string | null;
1288
+ systemInstructions: string | null;
1289
+ introduction: string | null;
1290
+ externalId: string | null;
1291
+ createdAt: string;
1292
+ updatedAt: string;
1293
+ setId?: string | null | undefined;
1294
+ }>>;
619
1295
  }, z.core.$strict>;
620
1296
  export declare const libraryUsageSchema: z.ZodObject<{
621
1297
  draftExperienceIds: z.ZodArray<z.ZodString>;
@@ -715,6 +1391,7 @@ export declare const listAvatarsResponseSchema: z.ZodObject<{
715
1391
  }, z.core.$strict>>;
716
1392
  }, z.core.$strict>;
717
1393
  export type PublishJob = z.infer<typeof publishJobSchema>;
1394
+ export type PublishJobError = z.infer<typeof publishJobErrorSchema>;
718
1395
  export type PublishJobStatus = PublishJob['status'];
719
1396
  export type PublishResourceStatus = z.infer<typeof publishResourceStatusSchema>;
720
1397
  export type AppearanceResourceStatus = z.infer<typeof appearanceResourceStatusSchema>;
@@ -723,13 +1400,16 @@ export type ExperienceStatus = z.infer<typeof experienceStatusSchema>;
723
1400
  export type ClothesResource = z.infer<typeof clothesResourceSchema>;
724
1401
  export type HairResource = z.infer<typeof hairResourceSchema>;
725
1402
  export type LocationResource = z.infer<typeof locationResourceSchema>;
1403
+ export type BackdropResource = z.infer<typeof backdropResourceSchema>;
726
1404
  export type CharacterResource = z.infer<typeof characterSchema>;
727
1405
  export type PlaceResource = z.infer<typeof placeSchema>;
1406
+ export type SetResource = z.infer<typeof setSchema>;
728
1407
  export type ExperienceResource = z.infer<typeof experienceSchema>;
729
1408
  export type Avatar = z.infer<typeof avatarSchema>;
730
1409
  export type CreateClothesPublishResponse = z.infer<typeof createClothesPublishResponseSchema>;
731
1410
  export type CreateHairPublishResponse = z.infer<typeof createHairPublishResponseSchema>;
732
1411
  export type CreateLocationPublishResponse = z.infer<typeof createLocationPublishResponseSchema>;
1412
+ export type CreateBackdropPublishResponse = z.infer<typeof createBackdropPublishResponseSchema>;
733
1413
  export type CreatePublishResponse = z.infer<typeof createPublishResponseSchema>;
734
1414
  export type DeletedResource = z.infer<typeof deletedResourceResponseSchema>;
735
1415
  export type LibraryUsage = z.infer<typeof libraryUsageSchema>;