@liforma/publisher 0.3.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.
- package/README.md +23 -6
- package/dist/createPublisher.d.ts +20 -300
- package/dist/createPublisher.d.ts.map +1 -1
- package/dist/createPublisher.js +17 -238
- package/dist/createPublisher.js.map +1 -1
- package/dist/http.d.ts +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/index.d.ts +11 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/jobs.d.ts +11 -13
- package/dist/jobs.d.ts.map +1 -1
- package/dist/jobs.js +10 -23
- package/dist/jobs.js.map +1 -1
- package/dist/options.d.ts +11 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/options.js +2 -0
- package/dist/options.js.map +1 -0
- package/dist/publishStart.d.ts +7 -0
- package/dist/publishStart.d.ts.map +1 -0
- package/dist/publishStart.js +10 -0
- package/dist/publishStart.js.map +1 -0
- package/dist/resources/avatars.d.ts +8 -0
- package/dist/resources/avatars.d.ts.map +1 -0
- package/dist/resources/avatars.js +11 -0
- package/dist/resources/avatars.js.map +1 -0
- package/dist/resources/backdrops.d.ts +25 -0
- package/dist/resources/backdrops.d.ts.map +1 -0
- package/dist/resources/backdrops.js +62 -0
- package/dist/resources/backdrops.js.map +1 -0
- package/dist/resources/characters.d.ts +40 -0
- package/dist/resources/characters.d.ts.map +1 -0
- package/dist/resources/characters.js +71 -0
- package/dist/resources/characters.js.map +1 -0
- package/dist/resources/clothes.d.ts +28 -0
- package/dist/resources/clothes.d.ts.map +1 -0
- package/dist/resources/clothes.js +55 -0
- package/dist/resources/clothes.js.map +1 -0
- package/dist/resources/experiences.d.ts +36 -0
- package/dist/resources/experiences.d.ts.map +1 -0
- package/dist/resources/experiences.js +71 -0
- package/dist/resources/experiences.js.map +1 -0
- package/dist/resources/hair.d.ts +19 -0
- package/dist/resources/hair.d.ts.map +1 -0
- package/dist/resources/hair.js +43 -0
- package/dist/resources/hair.js.map +1 -0
- package/dist/resources/sets.d.ts +22 -0
- package/dist/resources/sets.d.ts.map +1 -0
- package/dist/resources/sets.js +49 -0
- package/dist/resources/sets.js.map +1 -0
- package/dist/schemas.d.ts +858 -20
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +124 -5
- package/dist/schemas.js.map +1 -1
- package/dist/spatial.d.ts +3 -0
- package/dist/spatial.d.ts.map +1 -0
- package/dist/spatial.js +13 -0
- package/dist/spatial.js.map +1 -0
- package/dist/validate.d.ts +3 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +13 -0
- package/dist/validate.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Keep in sync with `api.liforma.ai/src/lib/server/catalog/persona.ts` labels. */
|
|
3
|
+
export declare const PERSONA_GENDER_VALUES: readonly ["female", "male", "non-binary"];
|
|
4
|
+
/** Appearance groups for facial features, hair, and skin colour — not census identity. */
|
|
5
|
+
export declare const PERSONA_ETHNICITY_VALUES: readonly ["african", "east-asian", "european", "indigenous", "mediterranean", "middle-eastern", "mixed", "north-african", "pacific-islander", "south-asian", "southeast-asian"];
|
|
6
|
+
export declare const personaGenderSchema: z.ZodEnum<{
|
|
7
|
+
female: "female";
|
|
8
|
+
male: "male";
|
|
9
|
+
"non-binary": "non-binary";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const personaEthnicitySchema: z.ZodEnum<{
|
|
12
|
+
african: "african";
|
|
13
|
+
"east-asian": "east-asian";
|
|
14
|
+
european: "european";
|
|
15
|
+
indigenous: "indigenous";
|
|
16
|
+
mediterranean: "mediterranean";
|
|
17
|
+
"middle-eastern": "middle-eastern";
|
|
18
|
+
mixed: "mixed";
|
|
19
|
+
"north-african": "north-african";
|
|
20
|
+
"pacific-islander": "pacific-islander";
|
|
21
|
+
"south-asian": "south-asian";
|
|
22
|
+
"southeast-asian": "southeast-asian";
|
|
23
|
+
}>;
|
|
24
|
+
/** Apparent age in years, including very old non-human characters. */
|
|
25
|
+
export declare const personaAgeSchema: z.ZodNumber;
|
|
26
|
+
/** Free-text avatar catalogue labels (species, style). Not enums. */
|
|
27
|
+
export declare const avatarCatalogLabelSchema: z.ZodString;
|
|
28
|
+
export type PersonaGender = (typeof PERSONA_GENDER_VALUES)[number];
|
|
29
|
+
export type PersonaEthnicity = (typeof PERSONA_ETHNICITY_VALUES)[number];
|
|
2
30
|
export declare const publishResourceStatusSchema: z.ZodEnum<{
|
|
3
31
|
processing: "processing";
|
|
4
32
|
ready: "ready";
|
|
@@ -8,6 +36,11 @@ export declare const appearanceResourceStatusSchema: z.ZodEnum<{
|
|
|
8
36
|
processing: "processing";
|
|
9
37
|
ready: "ready";
|
|
10
38
|
failed: "failed";
|
|
39
|
+
archived: "archived";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const libraryItemStatusSchema: z.ZodEnum<{
|
|
42
|
+
archived: "archived";
|
|
43
|
+
active: "active";
|
|
11
44
|
}>;
|
|
12
45
|
export declare const locationResourceStatusSchema: z.ZodEnum<{
|
|
13
46
|
processing: "processing";
|
|
@@ -20,11 +53,28 @@ export declare const experienceStatusSchema: z.ZodEnum<{
|
|
|
20
53
|
draft: "draft";
|
|
21
54
|
published: "published";
|
|
22
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];
|
|
23
65
|
export declare const publishJobErrorSchema: z.ZodObject<{
|
|
24
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;
|
|
25
75
|
message: z.ZodString;
|
|
26
76
|
}, z.core.$strict>;
|
|
27
|
-
export declare const publishJobSchema: z.ZodObject<{
|
|
77
|
+
export declare const publishJobSchema: z.ZodPipe<z.ZodObject<{
|
|
28
78
|
id: z.ZodString;
|
|
29
79
|
status: z.ZodEnum<{
|
|
30
80
|
failed: "failed";
|
|
@@ -37,6 +87,7 @@ export declare const publishJobSchema: z.ZodObject<{
|
|
|
37
87
|
clothes: "clothes";
|
|
38
88
|
hair: "hair";
|
|
39
89
|
location: "location";
|
|
90
|
+
backdrop: "backdrop";
|
|
40
91
|
}>;
|
|
41
92
|
pollUrl: z.ZodString;
|
|
42
93
|
targetId: z.ZodString;
|
|
@@ -48,9 +99,53 @@ export declare const publishJobSchema: z.ZodObject<{
|
|
|
48
99
|
}, z.core.$strict>;
|
|
49
100
|
error: z.ZodNullable<z.ZodObject<{
|
|
50
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;
|
|
51
110
|
message: z.ZodString;
|
|
52
111
|
}, z.core.$strict>>;
|
|
53
|
-
}, 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
|
+
}>>;
|
|
54
149
|
export declare const publishStubSchema: z.ZodObject<{
|
|
55
150
|
id: z.ZodString;
|
|
56
151
|
status: z.ZodEnum<{
|
|
@@ -60,7 +155,7 @@ export declare const publishStubSchema: z.ZodObject<{
|
|
|
60
155
|
}>;
|
|
61
156
|
}, z.core.$strict>;
|
|
62
157
|
export declare const createClothesPublishResponseSchema: z.ZodObject<{
|
|
63
|
-
job: z.ZodObject<{
|
|
158
|
+
job: z.ZodPipe<z.ZodObject<{
|
|
64
159
|
id: z.ZodString;
|
|
65
160
|
status: z.ZodEnum<{
|
|
66
161
|
failed: "failed";
|
|
@@ -73,6 +168,7 @@ export declare const createClothesPublishResponseSchema: z.ZodObject<{
|
|
|
73
168
|
clothes: "clothes";
|
|
74
169
|
hair: "hair";
|
|
75
170
|
location: "location";
|
|
171
|
+
backdrop: "backdrop";
|
|
76
172
|
}>;
|
|
77
173
|
pollUrl: z.ZodString;
|
|
78
174
|
targetId: z.ZodString;
|
|
@@ -84,9 +180,53 @@ export declare const createClothesPublishResponseSchema: z.ZodObject<{
|
|
|
84
180
|
}, z.core.$strict>;
|
|
85
181
|
error: z.ZodNullable<z.ZodObject<{
|
|
86
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;
|
|
87
191
|
message: z.ZodString;
|
|
88
192
|
}, z.core.$strict>>;
|
|
89
|
-
}, 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
|
+
}>>;
|
|
90
230
|
clothes: z.ZodObject<{
|
|
91
231
|
id: z.ZodString;
|
|
92
232
|
status: z.ZodEnum<{
|
|
@@ -97,7 +237,7 @@ export declare const createClothesPublishResponseSchema: z.ZodObject<{
|
|
|
97
237
|
}, z.core.$strict>;
|
|
98
238
|
}, z.core.$strict>;
|
|
99
239
|
export declare const createHairPublishResponseSchema: z.ZodObject<{
|
|
100
|
-
job: z.ZodObject<{
|
|
240
|
+
job: z.ZodPipe<z.ZodObject<{
|
|
101
241
|
id: z.ZodString;
|
|
102
242
|
status: z.ZodEnum<{
|
|
103
243
|
failed: "failed";
|
|
@@ -110,6 +250,7 @@ export declare const createHairPublishResponseSchema: z.ZodObject<{
|
|
|
110
250
|
clothes: "clothes";
|
|
111
251
|
hair: "hair";
|
|
112
252
|
location: "location";
|
|
253
|
+
backdrop: "backdrop";
|
|
113
254
|
}>;
|
|
114
255
|
pollUrl: z.ZodString;
|
|
115
256
|
targetId: z.ZodString;
|
|
@@ -121,9 +262,53 @@ export declare const createHairPublishResponseSchema: z.ZodObject<{
|
|
|
121
262
|
}, z.core.$strict>;
|
|
122
263
|
error: z.ZodNullable<z.ZodObject<{
|
|
123
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;
|
|
124
273
|
message: z.ZodString;
|
|
125
274
|
}, z.core.$strict>>;
|
|
126
|
-
}, 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
|
+
}>>;
|
|
127
312
|
hair: z.ZodObject<{
|
|
128
313
|
id: z.ZodString;
|
|
129
314
|
status: z.ZodEnum<{
|
|
@@ -134,7 +319,7 @@ export declare const createHairPublishResponseSchema: z.ZodObject<{
|
|
|
134
319
|
}, z.core.$strict>;
|
|
135
320
|
}, z.core.$strict>;
|
|
136
321
|
export declare const createLocationPublishResponseSchema: z.ZodObject<{
|
|
137
|
-
job: z.ZodObject<{
|
|
322
|
+
job: z.ZodPipe<z.ZodObject<{
|
|
138
323
|
id: z.ZodString;
|
|
139
324
|
status: z.ZodEnum<{
|
|
140
325
|
failed: "failed";
|
|
@@ -147,6 +332,7 @@ export declare const createLocationPublishResponseSchema: z.ZodObject<{
|
|
|
147
332
|
clothes: "clothes";
|
|
148
333
|
hair: "hair";
|
|
149
334
|
location: "location";
|
|
335
|
+
backdrop: "backdrop";
|
|
150
336
|
}>;
|
|
151
337
|
pollUrl: z.ZodString;
|
|
152
338
|
targetId: z.ZodString;
|
|
@@ -158,9 +344,53 @@ export declare const createLocationPublishResponseSchema: z.ZodObject<{
|
|
|
158
344
|
}, z.core.$strict>;
|
|
159
345
|
error: z.ZodNullable<z.ZodObject<{
|
|
160
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;
|
|
161
355
|
message: z.ZodString;
|
|
162
356
|
}, z.core.$strict>>;
|
|
163
|
-
}, 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
|
+
}>>;
|
|
164
394
|
location: z.ZodObject<{
|
|
165
395
|
id: z.ZodString;
|
|
166
396
|
status: z.ZodEnum<{
|
|
@@ -170,8 +400,8 @@ export declare const createLocationPublishResponseSchema: z.ZodObject<{
|
|
|
170
400
|
}>;
|
|
171
401
|
}, z.core.$strict>;
|
|
172
402
|
}, z.core.$strict>;
|
|
173
|
-
export declare const
|
|
174
|
-
job: z.ZodObject<{
|
|
403
|
+
export declare const createBackdropPublishResponseSchema: z.ZodObject<{
|
|
404
|
+
job: z.ZodPipe<z.ZodObject<{
|
|
175
405
|
id: z.ZodString;
|
|
176
406
|
status: z.ZodEnum<{
|
|
177
407
|
failed: "failed";
|
|
@@ -184,6 +414,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
184
414
|
clothes: "clothes";
|
|
185
415
|
hair: "hair";
|
|
186
416
|
location: "location";
|
|
417
|
+
backdrop: "backdrop";
|
|
187
418
|
}>;
|
|
188
419
|
pollUrl: z.ZodString;
|
|
189
420
|
targetId: z.ZodString;
|
|
@@ -195,9 +426,135 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
195
426
|
}, z.core.$strict>;
|
|
196
427
|
error: z.ZodNullable<z.ZodObject<{
|
|
197
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;
|
|
198
437
|
message: z.ZodString;
|
|
199
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
|
+
}>;
|
|
200
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
|
+
}>>;
|
|
201
558
|
clothes: z.ZodObject<{
|
|
202
559
|
id: z.ZodString;
|
|
203
560
|
status: z.ZodEnum<{
|
|
@@ -207,7 +564,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
207
564
|
}>;
|
|
208
565
|
}, z.core.$strict>;
|
|
209
566
|
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
-
job: z.ZodObject<{
|
|
567
|
+
job: z.ZodPipe<z.ZodObject<{
|
|
211
568
|
id: z.ZodString;
|
|
212
569
|
status: z.ZodEnum<{
|
|
213
570
|
failed: "failed";
|
|
@@ -220,6 +577,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
220
577
|
clothes: "clothes";
|
|
221
578
|
hair: "hair";
|
|
222
579
|
location: "location";
|
|
580
|
+
backdrop: "backdrop";
|
|
223
581
|
}>;
|
|
224
582
|
pollUrl: z.ZodString;
|
|
225
583
|
targetId: z.ZodString;
|
|
@@ -231,9 +589,53 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
231
589
|
}, z.core.$strict>;
|
|
232
590
|
error: z.ZodNullable<z.ZodObject<{
|
|
233
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;
|
|
234
600
|
message: z.ZodString;
|
|
235
601
|
}, z.core.$strict>>;
|
|
236
|
-
}, 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
|
+
}>>;
|
|
237
639
|
hair: z.ZodObject<{
|
|
238
640
|
id: z.ZodString;
|
|
239
641
|
status: z.ZodEnum<{
|
|
@@ -243,7 +645,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
243
645
|
}>;
|
|
244
646
|
}, z.core.$strict>;
|
|
245
647
|
}, z.core.$strict>, z.ZodObject<{
|
|
246
|
-
job: z.ZodObject<{
|
|
648
|
+
job: z.ZodPipe<z.ZodObject<{
|
|
247
649
|
id: z.ZodString;
|
|
248
650
|
status: z.ZodEnum<{
|
|
249
651
|
failed: "failed";
|
|
@@ -256,6 +658,7 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
256
658
|
clothes: "clothes";
|
|
257
659
|
hair: "hair";
|
|
258
660
|
location: "location";
|
|
661
|
+
backdrop: "backdrop";
|
|
259
662
|
}>;
|
|
260
663
|
pollUrl: z.ZodString;
|
|
261
664
|
targetId: z.ZodString;
|
|
@@ -267,9 +670,53 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
267
670
|
}, z.core.$strict>;
|
|
268
671
|
error: z.ZodNullable<z.ZodObject<{
|
|
269
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;
|
|
270
681
|
message: z.ZodString;
|
|
271
682
|
}, z.core.$strict>>;
|
|
272
|
-
}, 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
|
+
}>>;
|
|
273
720
|
location: z.ZodObject<{
|
|
274
721
|
id: z.ZodString;
|
|
275
722
|
status: z.ZodEnum<{
|
|
@@ -278,9 +725,90 @@ export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
278
725
|
failed: "failed";
|
|
279
726
|
}>;
|
|
280
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>;
|
|
281
809
|
}, z.core.$strict>]>;
|
|
282
810
|
export declare const getJobResponseSchema: z.ZodObject<{
|
|
283
|
-
job: z.ZodObject<{
|
|
811
|
+
job: z.ZodPipe<z.ZodObject<{
|
|
284
812
|
id: z.ZodString;
|
|
285
813
|
status: z.ZodEnum<{
|
|
286
814
|
failed: "failed";
|
|
@@ -293,6 +821,7 @@ export declare const getJobResponseSchema: z.ZodObject<{
|
|
|
293
821
|
clothes: "clothes";
|
|
294
822
|
hair: "hair";
|
|
295
823
|
location: "location";
|
|
824
|
+
backdrop: "backdrop";
|
|
296
825
|
}>;
|
|
297
826
|
pollUrl: z.ZodString;
|
|
298
827
|
targetId: z.ZodString;
|
|
@@ -304,9 +833,53 @@ export declare const getJobResponseSchema: z.ZodObject<{
|
|
|
304
833
|
}, z.core.$strict>;
|
|
305
834
|
error: z.ZodNullable<z.ZodObject<{
|
|
306
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;
|
|
307
844
|
message: z.ZodString;
|
|
308
845
|
}, z.core.$strict>>;
|
|
309
|
-
}, 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
|
+
}>>;
|
|
310
883
|
}, z.core.$strict>;
|
|
311
884
|
export declare const createUploadResponseSchema: z.ZodObject<{
|
|
312
885
|
upload: z.ZodObject<{
|
|
@@ -339,6 +912,7 @@ export declare const clothesResourceSchema: z.ZodObject<{
|
|
|
339
912
|
processing: "processing";
|
|
340
913
|
ready: "ready";
|
|
341
914
|
failed: "failed";
|
|
915
|
+
archived: "archived";
|
|
342
916
|
}>;
|
|
343
917
|
source: z.ZodString;
|
|
344
918
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -354,6 +928,7 @@ export declare const hairResourceSchema: z.ZodObject<{
|
|
|
354
928
|
processing: "processing";
|
|
355
929
|
ready: "ready";
|
|
356
930
|
failed: "failed";
|
|
931
|
+
archived: "archived";
|
|
357
932
|
}>;
|
|
358
933
|
source: z.ZodString;
|
|
359
934
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -371,6 +946,21 @@ export declare const locationResourceSchema: z.ZodObject<{
|
|
|
371
946
|
}>;
|
|
372
947
|
name: z.ZodString;
|
|
373
948
|
depthEncoding: z.ZodNullable<z.ZodString>;
|
|
949
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
950
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
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>>;
|
|
374
964
|
externalId: z.ZodNullable<z.ZodString>;
|
|
375
965
|
}, z.core.$strict>;
|
|
376
966
|
export declare const getClothesResponseSchema: z.ZodObject<{
|
|
@@ -383,6 +973,7 @@ export declare const getClothesResponseSchema: z.ZodObject<{
|
|
|
383
973
|
processing: "processing";
|
|
384
974
|
ready: "ready";
|
|
385
975
|
failed: "failed";
|
|
976
|
+
archived: "archived";
|
|
386
977
|
}>;
|
|
387
978
|
source: z.ZodString;
|
|
388
979
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -400,6 +991,7 @@ export declare const getHairResponseSchema: z.ZodObject<{
|
|
|
400
991
|
processing: "processing";
|
|
401
992
|
ready: "ready";
|
|
402
993
|
failed: "failed";
|
|
994
|
+
archived: "archived";
|
|
403
995
|
}>;
|
|
404
996
|
source: z.ZodString;
|
|
405
997
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -419,6 +1011,23 @@ export declare const getLocationResponseSchema: z.ZodObject<{
|
|
|
419
1011
|
}>;
|
|
420
1012
|
name: z.ZodString;
|
|
421
1013
|
depthEncoding: z.ZodNullable<z.ZodString>;
|
|
1014
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1015
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
1016
|
+
}, z.core.$strict>;
|
|
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>>;
|
|
422
1031
|
externalId: z.ZodNullable<z.ZodString>;
|
|
423
1032
|
}, z.core.$strict>;
|
|
424
1033
|
}, z.core.$strict>;
|
|
@@ -433,6 +1042,30 @@ export declare const characterSchema: z.ZodObject<{
|
|
|
433
1042
|
hairId: z.ZodNullable<z.ZodString>;
|
|
434
1043
|
personality: z.ZodNullable<z.ZodString>;
|
|
435
1044
|
generalInstructions: z.ZodNullable<z.ZodString>;
|
|
1045
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1046
|
+
female: "female";
|
|
1047
|
+
male: "male";
|
|
1048
|
+
"non-binary": "non-binary";
|
|
1049
|
+
}>>>;
|
|
1050
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1051
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1052
|
+
african: "african";
|
|
1053
|
+
"east-asian": "east-asian";
|
|
1054
|
+
european: "european";
|
|
1055
|
+
indigenous: "indigenous";
|
|
1056
|
+
mediterranean: "mediterranean";
|
|
1057
|
+
"middle-eastern": "middle-eastern";
|
|
1058
|
+
mixed: "mixed";
|
|
1059
|
+
"north-african": "north-african";
|
|
1060
|
+
"pacific-islander": "pacific-islander";
|
|
1061
|
+
"south-asian": "south-asian";
|
|
1062
|
+
"southeast-asian": "southeast-asian";
|
|
1063
|
+
}>>>;
|
|
1064
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1065
|
+
status: z.ZodEnum<{
|
|
1066
|
+
archived: "archived";
|
|
1067
|
+
active: "active";
|
|
1068
|
+
}>;
|
|
436
1069
|
externalId: z.ZodNullable<z.ZodString>;
|
|
437
1070
|
createdAt: z.ZodString;
|
|
438
1071
|
updatedAt: z.ZodString;
|
|
@@ -441,11 +1074,29 @@ export declare const placeSchema: z.ZodObject<{
|
|
|
441
1074
|
id: z.ZodString;
|
|
442
1075
|
name: z.ZodString;
|
|
443
1076
|
locationId: z.ZodString;
|
|
1077
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1078
|
+
status: z.ZodEnum<{
|
|
1079
|
+
archived: "archived";
|
|
1080
|
+
active: "active";
|
|
1081
|
+
}>;
|
|
1082
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
1083
|
+
createdAt: z.ZodString;
|
|
1084
|
+
updatedAt: z.ZodString;
|
|
1085
|
+
}, z.core.$strict>;
|
|
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
|
+
}>;
|
|
444
1095
|
externalId: z.ZodNullable<z.ZodString>;
|
|
445
1096
|
createdAt: z.ZodString;
|
|
446
1097
|
updatedAt: z.ZodString;
|
|
447
1098
|
}, z.core.$strict>;
|
|
448
|
-
export declare const experienceSchema: z.ZodObject<{
|
|
1099
|
+
export declare const experienceSchema: z.ZodPipe<z.ZodObject<{
|
|
449
1100
|
id: z.ZodString;
|
|
450
1101
|
projectId: z.ZodString;
|
|
451
1102
|
title: z.ZodString;
|
|
@@ -461,13 +1112,52 @@ export declare const experienceSchema: z.ZodObject<{
|
|
|
461
1112
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
462
1113
|
characterId: z.ZodNullable<z.ZodString>;
|
|
463
1114
|
placeId: z.ZodNullable<z.ZodString>;
|
|
1115
|
+
setId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
464
1116
|
startingMessage: z.ZodNullable<z.ZodString>;
|
|
465
1117
|
systemInstructions: z.ZodNullable<z.ZodString>;
|
|
466
1118
|
introduction: z.ZodNullable<z.ZodString>;
|
|
467
1119
|
externalId: z.ZodNullable<z.ZodString>;
|
|
468
1120
|
createdAt: z.ZodString;
|
|
469
1121
|
updatedAt: z.ZodString;
|
|
470
|
-
}, 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
|
+
}>>;
|
|
471
1161
|
export declare const createCharacterResponseSchema: z.ZodObject<{
|
|
472
1162
|
character: z.ZodObject<{
|
|
473
1163
|
id: z.ZodString;
|
|
@@ -480,6 +1170,30 @@ export declare const createCharacterResponseSchema: z.ZodObject<{
|
|
|
480
1170
|
hairId: z.ZodNullable<z.ZodString>;
|
|
481
1171
|
personality: z.ZodNullable<z.ZodString>;
|
|
482
1172
|
generalInstructions: z.ZodNullable<z.ZodString>;
|
|
1173
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1174
|
+
female: "female";
|
|
1175
|
+
male: "male";
|
|
1176
|
+
"non-binary": "non-binary";
|
|
1177
|
+
}>>>;
|
|
1178
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1179
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1180
|
+
african: "african";
|
|
1181
|
+
"east-asian": "east-asian";
|
|
1182
|
+
european: "european";
|
|
1183
|
+
indigenous: "indigenous";
|
|
1184
|
+
mediterranean: "mediterranean";
|
|
1185
|
+
"middle-eastern": "middle-eastern";
|
|
1186
|
+
mixed: "mixed";
|
|
1187
|
+
"north-african": "north-african";
|
|
1188
|
+
"pacific-islander": "pacific-islander";
|
|
1189
|
+
"south-asian": "south-asian";
|
|
1190
|
+
"southeast-asian": "southeast-asian";
|
|
1191
|
+
}>>>;
|
|
1192
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1193
|
+
status: z.ZodEnum<{
|
|
1194
|
+
archived: "archived";
|
|
1195
|
+
active: "active";
|
|
1196
|
+
}>;
|
|
483
1197
|
externalId: z.ZodNullable<z.ZodString>;
|
|
484
1198
|
createdAt: z.ZodString;
|
|
485
1199
|
updatedAt: z.ZodString;
|
|
@@ -490,13 +1204,33 @@ export declare const createPlaceResponseSchema: z.ZodObject<{
|
|
|
490
1204
|
id: z.ZodString;
|
|
491
1205
|
name: z.ZodString;
|
|
492
1206
|
locationId: z.ZodString;
|
|
1207
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
|
+
status: z.ZodEnum<{
|
|
1209
|
+
archived: "archived";
|
|
1210
|
+
active: "active";
|
|
1211
|
+
}>;
|
|
1212
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
1213
|
+
createdAt: z.ZodString;
|
|
1214
|
+
updatedAt: z.ZodString;
|
|
1215
|
+
}, z.core.$strict>;
|
|
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
|
+
}>;
|
|
493
1227
|
externalId: z.ZodNullable<z.ZodString>;
|
|
494
1228
|
createdAt: z.ZodString;
|
|
495
1229
|
updatedAt: z.ZodString;
|
|
496
1230
|
}, z.core.$strict>;
|
|
497
1231
|
}, z.core.$strict>;
|
|
498
1232
|
export declare const experienceResponseSchema: z.ZodObject<{
|
|
499
|
-
experience: z.ZodObject<{
|
|
1233
|
+
experience: z.ZodPipe<z.ZodObject<{
|
|
500
1234
|
id: z.ZodString;
|
|
501
1235
|
projectId: z.ZodString;
|
|
502
1236
|
title: z.ZodString;
|
|
@@ -512,19 +1246,96 @@ export declare const experienceResponseSchema: z.ZodObject<{
|
|
|
512
1246
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
513
1247
|
characterId: z.ZodNullable<z.ZodString>;
|
|
514
1248
|
placeId: z.ZodNullable<z.ZodString>;
|
|
1249
|
+
setId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
515
1250
|
startingMessage: z.ZodNullable<z.ZodString>;
|
|
516
1251
|
systemInstructions: z.ZodNullable<z.ZodString>;
|
|
517
1252
|
introduction: z.ZodNullable<z.ZodString>;
|
|
518
1253
|
externalId: z.ZodNullable<z.ZodString>;
|
|
519
1254
|
createdAt: z.ZodString;
|
|
520
1255
|
updatedAt: z.ZodString;
|
|
521
|
-
}, 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
|
+
}>>;
|
|
1295
|
+
}, z.core.$strict>;
|
|
1296
|
+
export declare const libraryUsageSchema: z.ZodObject<{
|
|
1297
|
+
draftExperienceIds: z.ZodArray<z.ZodString>;
|
|
1298
|
+
publishedExperienceIds: z.ZodArray<z.ZodString>;
|
|
1299
|
+
historicalRevisionCount: z.ZodNumber;
|
|
1300
|
+
activeCharacterIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1301
|
+
activePlaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1302
|
+
archivedCharacterIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1303
|
+
archivedPlaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1304
|
+
archivedDependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1305
|
+
resourceType: z.ZodString;
|
|
1306
|
+
resourceIds: z.ZodArray<z.ZodString>;
|
|
1307
|
+
}, z.core.$strict>>>;
|
|
1308
|
+
}, z.core.$strict>;
|
|
1309
|
+
export declare const deletedResourceResponseSchema: z.ZodObject<{
|
|
1310
|
+
deleted: z.ZodLiteral<true>;
|
|
1311
|
+
id: z.ZodString;
|
|
522
1312
|
}, z.core.$strict>;
|
|
523
1313
|
export declare const avatarSchema: z.ZodObject<{
|
|
524
1314
|
id: z.ZodString;
|
|
525
1315
|
displayName: z.ZodString;
|
|
526
1316
|
defaultVoiceId: z.ZodString;
|
|
527
1317
|
defaultSttLang: z.ZodString;
|
|
1318
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1319
|
+
female: "female";
|
|
1320
|
+
male: "male";
|
|
1321
|
+
"non-binary": "non-binary";
|
|
1322
|
+
}>>>;
|
|
1323
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1324
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1325
|
+
african: "african";
|
|
1326
|
+
"east-asian": "east-asian";
|
|
1327
|
+
european: "european";
|
|
1328
|
+
indigenous: "indigenous";
|
|
1329
|
+
mediterranean: "mediterranean";
|
|
1330
|
+
"middle-eastern": "middle-eastern";
|
|
1331
|
+
mixed: "mixed";
|
|
1332
|
+
"north-african": "north-african";
|
|
1333
|
+
"pacific-islander": "pacific-islander";
|
|
1334
|
+
"south-asian": "south-asian";
|
|
1335
|
+
"southeast-asian": "southeast-asian";
|
|
1336
|
+
}>>>;
|
|
1337
|
+
species: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1338
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
1339
|
clothes: z.ZodArray<z.ZodObject<{
|
|
529
1340
|
id: z.ZodString;
|
|
530
1341
|
name: z.ZodString;
|
|
@@ -544,6 +1355,27 @@ export declare const listAvatarsResponseSchema: z.ZodObject<{
|
|
|
544
1355
|
displayName: z.ZodString;
|
|
545
1356
|
defaultVoiceId: z.ZodString;
|
|
546
1357
|
defaultSttLang: z.ZodString;
|
|
1358
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1359
|
+
female: "female";
|
|
1360
|
+
male: "male";
|
|
1361
|
+
"non-binary": "non-binary";
|
|
1362
|
+
}>>>;
|
|
1363
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1364
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1365
|
+
african: "african";
|
|
1366
|
+
"east-asian": "east-asian";
|
|
1367
|
+
european: "european";
|
|
1368
|
+
indigenous: "indigenous";
|
|
1369
|
+
mediterranean: "mediterranean";
|
|
1370
|
+
"middle-eastern": "middle-eastern";
|
|
1371
|
+
mixed: "mixed";
|
|
1372
|
+
"north-african": "north-african";
|
|
1373
|
+
"pacific-islander": "pacific-islander";
|
|
1374
|
+
"south-asian": "south-asian";
|
|
1375
|
+
"southeast-asian": "southeast-asian";
|
|
1376
|
+
}>>>;
|
|
1377
|
+
species: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1378
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
547
1379
|
clothes: z.ZodArray<z.ZodObject<{
|
|
548
1380
|
id: z.ZodString;
|
|
549
1381
|
name: z.ZodString;
|
|
@@ -559,6 +1391,7 @@ export declare const listAvatarsResponseSchema: z.ZodObject<{
|
|
|
559
1391
|
}, z.core.$strict>>;
|
|
560
1392
|
}, z.core.$strict>;
|
|
561
1393
|
export type PublishJob = z.infer<typeof publishJobSchema>;
|
|
1394
|
+
export type PublishJobError = z.infer<typeof publishJobErrorSchema>;
|
|
562
1395
|
export type PublishJobStatus = PublishJob['status'];
|
|
563
1396
|
export type PublishResourceStatus = z.infer<typeof publishResourceStatusSchema>;
|
|
564
1397
|
export type AppearanceResourceStatus = z.infer<typeof appearanceResourceStatusSchema>;
|
|
@@ -567,14 +1400,19 @@ export type ExperienceStatus = z.infer<typeof experienceStatusSchema>;
|
|
|
567
1400
|
export type ClothesResource = z.infer<typeof clothesResourceSchema>;
|
|
568
1401
|
export type HairResource = z.infer<typeof hairResourceSchema>;
|
|
569
1402
|
export type LocationResource = z.infer<typeof locationResourceSchema>;
|
|
1403
|
+
export type BackdropResource = z.infer<typeof backdropResourceSchema>;
|
|
570
1404
|
export type CharacterResource = z.infer<typeof characterSchema>;
|
|
571
1405
|
export type PlaceResource = z.infer<typeof placeSchema>;
|
|
1406
|
+
export type SetResource = z.infer<typeof setSchema>;
|
|
572
1407
|
export type ExperienceResource = z.infer<typeof experienceSchema>;
|
|
573
1408
|
export type Avatar = z.infer<typeof avatarSchema>;
|
|
574
1409
|
export type CreateClothesPublishResponse = z.infer<typeof createClothesPublishResponseSchema>;
|
|
575
1410
|
export type CreateHairPublishResponse = z.infer<typeof createHairPublishResponseSchema>;
|
|
576
1411
|
export type CreateLocationPublishResponse = z.infer<typeof createLocationPublishResponseSchema>;
|
|
1412
|
+
export type CreateBackdropPublishResponse = z.infer<typeof createBackdropPublishResponseSchema>;
|
|
577
1413
|
export type CreatePublishResponse = z.infer<typeof createPublishResponseSchema>;
|
|
1414
|
+
export type DeletedResource = z.infer<typeof deletedResourceResponseSchema>;
|
|
1415
|
+
export type LibraryUsage = z.infer<typeof libraryUsageSchema>;
|
|
578
1416
|
export declare const structuredPublisherErrorSchema: z.ZodObject<{
|
|
579
1417
|
error: z.ZodObject<{
|
|
580
1418
|
code: z.ZodString;
|