@liforma/publisher 0.1.2 → 0.4.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 +11 -2
- package/dist/browser.d.ts +4 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +5 -0
- package/dist/browser.js.map +1 -0
- package/dist/createPublisher.d.ts +170 -83
- package/dist/createPublisher.d.ts.map +1 -1
- package/dist/createPublisher.js +252 -103
- package/dist/createPublisher.js.map +1 -1
- package/dist/errors.d.ts +3 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +0 -1
- package/dist/errors.js.map +1 -1
- package/dist/hash.d.ts +1 -1
- package/dist/hash.d.ts.map +1 -1
- package/dist/http.d.ts +3 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +8 -23
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/jobs.d.ts +7 -5
- package/dist/jobs.d.ts.map +1 -1
- package/dist/jobs.js +49 -52
- package/dist/jobs.js.map +1 -1
- package/dist/retry.d.ts +16 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +52 -0
- package/dist/retry.js.map +1 -0
- package/dist/schemas.d.ts +448 -89
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +122 -36
- package/dist/schemas.js.map +1 -1
- package/dist/upload.d.ts +1 -0
- package/dist/upload.d.ts.map +1 -1
- package/dist/upload.js +41 -18
- package/dist/upload.js.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +3 -2
package/dist/schemas.d.ts
CHANGED
|
@@ -1,28 +1,79 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
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];
|
|
30
|
+
export declare const publishResourceStatusSchema: z.ZodEnum<{
|
|
31
|
+
processing: "processing";
|
|
32
|
+
ready: "ready";
|
|
33
|
+
failed: "failed";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const appearanceResourceStatusSchema: z.ZodEnum<{
|
|
36
|
+
processing: "processing";
|
|
37
|
+
ready: "ready";
|
|
38
|
+
failed: "failed";
|
|
39
|
+
archived: "archived";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const libraryItemStatusSchema: z.ZodEnum<{
|
|
42
|
+
archived: "archived";
|
|
43
|
+
active: "active";
|
|
44
|
+
}>;
|
|
45
|
+
export declare const locationResourceStatusSchema: z.ZodEnum<{
|
|
46
|
+
processing: "processing";
|
|
47
|
+
ready: "ready";
|
|
48
|
+
failed: "failed";
|
|
49
|
+
archived: "archived";
|
|
50
|
+
}>;
|
|
51
|
+
export declare const experienceStatusSchema: z.ZodEnum<{
|
|
52
|
+
archived: "archived";
|
|
53
|
+
draft: "draft";
|
|
54
|
+
published: "published";
|
|
55
|
+
}>;
|
|
56
|
+
export declare const publishJobErrorSchema: z.ZodObject<{
|
|
3
57
|
code: z.ZodString;
|
|
4
58
|
message: z.ZodString;
|
|
5
59
|
}, z.core.$strict>;
|
|
6
|
-
export declare const
|
|
60
|
+
export declare const publishJobSchema: z.ZodObject<{
|
|
7
61
|
id: z.ZodString;
|
|
8
62
|
status: z.ZodEnum<{
|
|
63
|
+
failed: "failed";
|
|
9
64
|
queued: "queued";
|
|
10
65
|
running: "running";
|
|
11
66
|
waiting_processor: "waiting_processor";
|
|
12
67
|
succeeded: "succeeded";
|
|
13
|
-
failed: "failed";
|
|
14
68
|
}>;
|
|
15
69
|
kind: z.ZodEnum<{
|
|
16
|
-
location: "location";
|
|
17
70
|
clothes: "clothes";
|
|
18
71
|
hair: "hair";
|
|
72
|
+
location: "location";
|
|
19
73
|
}>;
|
|
20
74
|
pollUrl: z.ZodString;
|
|
21
75
|
targetId: z.ZodString;
|
|
22
76
|
requiredOk: z.ZodBoolean;
|
|
23
|
-
claimCount: z.ZodNumber;
|
|
24
|
-
failureCount: z.ZodNumber;
|
|
25
|
-
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
26
77
|
stage: z.ZodNullable<z.ZodString>;
|
|
27
78
|
progress: z.ZodObject<{
|
|
28
79
|
requiredVerified: z.ZodNumber;
|
|
@@ -32,52 +83,70 @@ export declare const authoringJobSchema: z.ZodObject<{
|
|
|
32
83
|
code: z.ZodString;
|
|
33
84
|
message: z.ZodString;
|
|
34
85
|
}, z.core.$strict>>;
|
|
35
|
-
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
export declare const publishStubSchema: z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
status: z.ZodEnum<{
|
|
90
|
+
processing: "processing";
|
|
91
|
+
ready: "ready";
|
|
92
|
+
failed: "failed";
|
|
93
|
+
}>;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export declare const createClothesPublishResponseSchema: z.ZodObject<{
|
|
96
|
+
job: z.ZodObject<{
|
|
97
|
+
id: z.ZodString;
|
|
36
98
|
status: z.ZodEnum<{
|
|
37
|
-
running: "running";
|
|
38
99
|
failed: "failed";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
100
|
+
queued: "queued";
|
|
101
|
+
running: "running";
|
|
102
|
+
waiting_processor: "waiting_processor";
|
|
103
|
+
succeeded: "succeeded";
|
|
42
104
|
}>;
|
|
43
|
-
|
|
44
|
-
|
|
105
|
+
kind: z.ZodEnum<{
|
|
106
|
+
clothes: "clothes";
|
|
107
|
+
hair: "hair";
|
|
108
|
+
location: "location";
|
|
109
|
+
}>;
|
|
110
|
+
pollUrl: z.ZodString;
|
|
111
|
+
targetId: z.ZodString;
|
|
112
|
+
requiredOk: z.ZodBoolean;
|
|
113
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
114
|
+
progress: z.ZodObject<{
|
|
115
|
+
requiredVerified: z.ZodNumber;
|
|
116
|
+
requiredTotal: z.ZodNumber;
|
|
117
|
+
}, z.core.$strict>;
|
|
45
118
|
error: z.ZodNullable<z.ZodObject<{
|
|
46
119
|
code: z.ZodString;
|
|
47
120
|
message: z.ZodString;
|
|
48
121
|
}, z.core.$strict>>;
|
|
49
122
|
}, z.core.$strict>;
|
|
123
|
+
clothes: z.ZodObject<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
status: z.ZodEnum<{
|
|
126
|
+
processing: "processing";
|
|
127
|
+
ready: "ready";
|
|
128
|
+
failed: "failed";
|
|
129
|
+
}>;
|
|
130
|
+
}, z.core.$strict>;
|
|
50
131
|
}, z.core.$strict>;
|
|
51
|
-
export declare const
|
|
52
|
-
kind: z.ZodEnum<{
|
|
53
|
-
location: "location";
|
|
54
|
-
clothes: "clothes";
|
|
55
|
-
hair: "hair";
|
|
56
|
-
}>;
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
status: z.ZodString;
|
|
59
|
-
}, z.core.$strict>;
|
|
60
|
-
export declare const createPublishResponseSchema: z.ZodObject<{
|
|
132
|
+
export declare const createHairPublishResponseSchema: z.ZodObject<{
|
|
61
133
|
job: z.ZodObject<{
|
|
62
134
|
id: z.ZodString;
|
|
63
135
|
status: z.ZodEnum<{
|
|
136
|
+
failed: "failed";
|
|
64
137
|
queued: "queued";
|
|
65
138
|
running: "running";
|
|
66
139
|
waiting_processor: "waiting_processor";
|
|
67
140
|
succeeded: "succeeded";
|
|
68
|
-
failed: "failed";
|
|
69
141
|
}>;
|
|
70
142
|
kind: z.ZodEnum<{
|
|
71
|
-
location: "location";
|
|
72
143
|
clothes: "clothes";
|
|
73
144
|
hair: "hair";
|
|
145
|
+
location: "location";
|
|
74
146
|
}>;
|
|
75
147
|
pollUrl: z.ZodString;
|
|
76
148
|
targetId: z.ZodString;
|
|
77
149
|
requiredOk: z.ZodBoolean;
|
|
78
|
-
claimCount: z.ZodNumber;
|
|
79
|
-
failureCount: z.ZodNumber;
|
|
80
|
-
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
81
150
|
stage: z.ZodNullable<z.ZodString>;
|
|
82
151
|
progress: z.ZodObject<{
|
|
83
152
|
requiredVerified: z.ZodNumber;
|
|
@@ -87,53 +156,143 @@ export declare const createPublishResponseSchema: z.ZodObject<{
|
|
|
87
156
|
code: z.ZodString;
|
|
88
157
|
message: z.ZodString;
|
|
89
158
|
}, z.core.$strict>>;
|
|
90
|
-
enrichment: z.ZodObject<{
|
|
91
|
-
status: z.ZodEnum<{
|
|
92
|
-
running: "running";
|
|
93
|
-
failed: "failed";
|
|
94
|
-
pending: "pending";
|
|
95
|
-
complete: "complete";
|
|
96
|
-
not_applicable: "not_applicable";
|
|
97
|
-
}>;
|
|
98
|
-
verified: z.ZodNumber;
|
|
99
|
-
total: z.ZodNumber;
|
|
100
|
-
error: z.ZodNullable<z.ZodObject<{
|
|
101
|
-
code: z.ZodString;
|
|
102
|
-
message: z.ZodString;
|
|
103
|
-
}, z.core.$strict>>;
|
|
104
|
-
}, z.core.$strict>;
|
|
105
159
|
}, z.core.$strict>;
|
|
106
|
-
|
|
160
|
+
hair: z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
status: z.ZodEnum<{
|
|
163
|
+
processing: "processing";
|
|
164
|
+
ready: "ready";
|
|
165
|
+
failed: "failed";
|
|
166
|
+
}>;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
export declare const createLocationPublishResponseSchema: z.ZodObject<{
|
|
170
|
+
job: z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
status: z.ZodEnum<{
|
|
173
|
+
failed: "failed";
|
|
174
|
+
queued: "queued";
|
|
175
|
+
running: "running";
|
|
176
|
+
waiting_processor: "waiting_processor";
|
|
177
|
+
succeeded: "succeeded";
|
|
178
|
+
}>;
|
|
107
179
|
kind: z.ZodEnum<{
|
|
108
|
-
location: "location";
|
|
109
180
|
clothes: "clothes";
|
|
110
181
|
hair: "hair";
|
|
182
|
+
location: "location";
|
|
111
183
|
}>;
|
|
184
|
+
pollUrl: z.ZodString;
|
|
185
|
+
targetId: z.ZodString;
|
|
186
|
+
requiredOk: z.ZodBoolean;
|
|
187
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
188
|
+
progress: z.ZodObject<{
|
|
189
|
+
requiredVerified: z.ZodNumber;
|
|
190
|
+
requiredTotal: z.ZodNumber;
|
|
191
|
+
}, z.core.$strict>;
|
|
192
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
193
|
+
code: z.ZodString;
|
|
194
|
+
message: z.ZodString;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
}, z.core.$strict>;
|
|
197
|
+
location: z.ZodObject<{
|
|
112
198
|
id: z.ZodString;
|
|
113
|
-
status: z.
|
|
199
|
+
status: z.ZodEnum<{
|
|
200
|
+
processing: "processing";
|
|
201
|
+
ready: "ready";
|
|
202
|
+
failed: "failed";
|
|
203
|
+
}>;
|
|
114
204
|
}, z.core.$strict>;
|
|
115
205
|
}, z.core.$strict>;
|
|
116
|
-
export declare const
|
|
206
|
+
export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
117
207
|
job: z.ZodObject<{
|
|
118
208
|
id: z.ZodString;
|
|
119
209
|
status: z.ZodEnum<{
|
|
210
|
+
failed: "failed";
|
|
120
211
|
queued: "queued";
|
|
121
212
|
running: "running";
|
|
122
213
|
waiting_processor: "waiting_processor";
|
|
123
214
|
succeeded: "succeeded";
|
|
215
|
+
}>;
|
|
216
|
+
kind: z.ZodEnum<{
|
|
217
|
+
clothes: "clothes";
|
|
218
|
+
hair: "hair";
|
|
219
|
+
location: "location";
|
|
220
|
+
}>;
|
|
221
|
+
pollUrl: z.ZodString;
|
|
222
|
+
targetId: z.ZodString;
|
|
223
|
+
requiredOk: z.ZodBoolean;
|
|
224
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
225
|
+
progress: z.ZodObject<{
|
|
226
|
+
requiredVerified: z.ZodNumber;
|
|
227
|
+
requiredTotal: z.ZodNumber;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
230
|
+
code: z.ZodString;
|
|
231
|
+
message: z.ZodString;
|
|
232
|
+
}, z.core.$strict>>;
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
clothes: z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
status: z.ZodEnum<{
|
|
237
|
+
processing: "processing";
|
|
238
|
+
ready: "ready";
|
|
124
239
|
failed: "failed";
|
|
125
240
|
}>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
243
|
+
job: z.ZodObject<{
|
|
244
|
+
id: z.ZodString;
|
|
245
|
+
status: z.ZodEnum<{
|
|
246
|
+
failed: "failed";
|
|
247
|
+
queued: "queued";
|
|
248
|
+
running: "running";
|
|
249
|
+
waiting_processor: "waiting_processor";
|
|
250
|
+
succeeded: "succeeded";
|
|
251
|
+
}>;
|
|
126
252
|
kind: z.ZodEnum<{
|
|
253
|
+
clothes: "clothes";
|
|
254
|
+
hair: "hair";
|
|
127
255
|
location: "location";
|
|
256
|
+
}>;
|
|
257
|
+
pollUrl: z.ZodString;
|
|
258
|
+
targetId: z.ZodString;
|
|
259
|
+
requiredOk: z.ZodBoolean;
|
|
260
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
261
|
+
progress: z.ZodObject<{
|
|
262
|
+
requiredVerified: z.ZodNumber;
|
|
263
|
+
requiredTotal: z.ZodNumber;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
266
|
+
code: z.ZodString;
|
|
267
|
+
message: z.ZodString;
|
|
268
|
+
}, z.core.$strict>>;
|
|
269
|
+
}, z.core.$strict>;
|
|
270
|
+
hair: z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
status: z.ZodEnum<{
|
|
273
|
+
processing: "processing";
|
|
274
|
+
ready: "ready";
|
|
275
|
+
failed: "failed";
|
|
276
|
+
}>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
279
|
+
job: z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
status: z.ZodEnum<{
|
|
282
|
+
failed: "failed";
|
|
283
|
+
queued: "queued";
|
|
284
|
+
running: "running";
|
|
285
|
+
waiting_processor: "waiting_processor";
|
|
286
|
+
succeeded: "succeeded";
|
|
287
|
+
}>;
|
|
288
|
+
kind: z.ZodEnum<{
|
|
128
289
|
clothes: "clothes";
|
|
129
290
|
hair: "hair";
|
|
291
|
+
location: "location";
|
|
130
292
|
}>;
|
|
131
293
|
pollUrl: z.ZodString;
|
|
132
294
|
targetId: z.ZodString;
|
|
133
295
|
requiredOk: z.ZodBoolean;
|
|
134
|
-
claimCount: z.ZodNumber;
|
|
135
|
-
failureCount: z.ZodNumber;
|
|
136
|
-
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
137
296
|
stage: z.ZodNullable<z.ZodString>;
|
|
138
297
|
progress: z.ZodObject<{
|
|
139
298
|
requiredVerified: z.ZodNumber;
|
|
@@ -143,21 +302,43 @@ export declare const getJobResponseSchema: z.ZodObject<{
|
|
|
143
302
|
code: z.ZodString;
|
|
144
303
|
message: z.ZodString;
|
|
145
304
|
}, z.core.$strict>>;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
location: z.ZodObject<{
|
|
307
|
+
id: z.ZodString;
|
|
308
|
+
status: z.ZodEnum<{
|
|
309
|
+
processing: "processing";
|
|
310
|
+
ready: "ready";
|
|
311
|
+
failed: "failed";
|
|
312
|
+
}>;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
}, z.core.$strict>]>;
|
|
315
|
+
export declare const getJobResponseSchema: z.ZodObject<{
|
|
316
|
+
job: z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
status: z.ZodEnum<{
|
|
319
|
+
failed: "failed";
|
|
320
|
+
queued: "queued";
|
|
321
|
+
running: "running";
|
|
322
|
+
waiting_processor: "waiting_processor";
|
|
323
|
+
succeeded: "succeeded";
|
|
324
|
+
}>;
|
|
325
|
+
kind: z.ZodEnum<{
|
|
326
|
+
clothes: "clothes";
|
|
327
|
+
hair: "hair";
|
|
328
|
+
location: "location";
|
|
329
|
+
}>;
|
|
330
|
+
pollUrl: z.ZodString;
|
|
331
|
+
targetId: z.ZodString;
|
|
332
|
+
requiredOk: z.ZodBoolean;
|
|
333
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
334
|
+
progress: z.ZodObject<{
|
|
335
|
+
requiredVerified: z.ZodNumber;
|
|
336
|
+
requiredTotal: z.ZodNumber;
|
|
160
337
|
}, z.core.$strict>;
|
|
338
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
339
|
+
code: z.ZodString;
|
|
340
|
+
message: z.ZodString;
|
|
341
|
+
}, z.core.$strict>>;
|
|
161
342
|
}, z.core.$strict>;
|
|
162
343
|
}, z.core.$strict>;
|
|
163
344
|
export declare const createUploadResponseSchema: z.ZodObject<{
|
|
@@ -187,11 +368,13 @@ export declare const clothesResourceSchema: z.ZodObject<{
|
|
|
187
368
|
id: z.ZodString;
|
|
188
369
|
avatarId: z.ZodString;
|
|
189
370
|
name: z.ZodString;
|
|
190
|
-
status: z.
|
|
371
|
+
status: z.ZodEnum<{
|
|
372
|
+
processing: "processing";
|
|
373
|
+
ready: "ready";
|
|
374
|
+
failed: "failed";
|
|
375
|
+
archived: "archived";
|
|
376
|
+
}>;
|
|
191
377
|
source: z.ZodString;
|
|
192
|
-
renderKind: z.ZodString;
|
|
193
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
194
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
195
378
|
externalId: z.ZodNullable<z.ZodString>;
|
|
196
379
|
createdAt: z.ZodString;
|
|
197
380
|
updatedAt: z.ZodString;
|
|
@@ -201,10 +384,13 @@ export declare const hairResourceSchema: z.ZodObject<{
|
|
|
201
384
|
id: z.ZodString;
|
|
202
385
|
avatarId: z.ZodString;
|
|
203
386
|
name: z.ZodString;
|
|
204
|
-
status: z.
|
|
387
|
+
status: z.ZodEnum<{
|
|
388
|
+
processing: "processing";
|
|
389
|
+
ready: "ready";
|
|
390
|
+
failed: "failed";
|
|
391
|
+
archived: "archived";
|
|
392
|
+
}>;
|
|
205
393
|
source: z.ZodString;
|
|
206
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
207
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
208
394
|
externalId: z.ZodNullable<z.ZodString>;
|
|
209
395
|
createdAt: z.ZodString;
|
|
210
396
|
updatedAt: z.ZodString;
|
|
@@ -212,49 +398,66 @@ export declare const hairResourceSchema: z.ZodObject<{
|
|
|
212
398
|
export declare const locationResourceSchema: z.ZodObject<{
|
|
213
399
|
kind: z.ZodLiteral<"location">;
|
|
214
400
|
id: z.ZodString;
|
|
215
|
-
status: z.
|
|
401
|
+
status: z.ZodEnum<{
|
|
402
|
+
processing: "processing";
|
|
403
|
+
ready: "ready";
|
|
404
|
+
failed: "failed";
|
|
405
|
+
archived: "archived";
|
|
406
|
+
}>;
|
|
216
407
|
name: z.ZodString;
|
|
217
408
|
depthEncoding: z.ZodNullable<z.ZodString>;
|
|
409
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
410
|
externalId: z.ZodNullable<z.ZodString>;
|
|
219
411
|
}, z.core.$strict>;
|
|
220
412
|
export declare const getClothesResponseSchema: z.ZodObject<{
|
|
221
|
-
|
|
413
|
+
clothes: z.ZodObject<{
|
|
222
414
|
kind: z.ZodLiteral<"clothes">;
|
|
223
415
|
id: z.ZodString;
|
|
224
416
|
avatarId: z.ZodString;
|
|
225
417
|
name: z.ZodString;
|
|
226
|
-
status: z.
|
|
418
|
+
status: z.ZodEnum<{
|
|
419
|
+
processing: "processing";
|
|
420
|
+
ready: "ready";
|
|
421
|
+
failed: "failed";
|
|
422
|
+
archived: "archived";
|
|
423
|
+
}>;
|
|
227
424
|
source: z.ZodString;
|
|
228
|
-
renderKind: z.ZodString;
|
|
229
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
230
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
231
425
|
externalId: z.ZodNullable<z.ZodString>;
|
|
232
426
|
createdAt: z.ZodString;
|
|
233
427
|
updatedAt: z.ZodString;
|
|
234
428
|
}, z.core.$strict>;
|
|
235
429
|
}, z.core.$strict>;
|
|
236
430
|
export declare const getHairResponseSchema: z.ZodObject<{
|
|
237
|
-
|
|
431
|
+
hair: z.ZodObject<{
|
|
238
432
|
kind: z.ZodLiteral<"hair">;
|
|
239
433
|
id: z.ZodString;
|
|
240
434
|
avatarId: z.ZodString;
|
|
241
435
|
name: z.ZodString;
|
|
242
|
-
status: z.
|
|
436
|
+
status: z.ZodEnum<{
|
|
437
|
+
processing: "processing";
|
|
438
|
+
ready: "ready";
|
|
439
|
+
failed: "failed";
|
|
440
|
+
archived: "archived";
|
|
441
|
+
}>;
|
|
243
442
|
source: z.ZodString;
|
|
244
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
245
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
246
443
|
externalId: z.ZodNullable<z.ZodString>;
|
|
247
444
|
createdAt: z.ZodString;
|
|
248
445
|
updatedAt: z.ZodString;
|
|
249
446
|
}, z.core.$strict>;
|
|
250
447
|
}, z.core.$strict>;
|
|
251
448
|
export declare const getLocationResponseSchema: z.ZodObject<{
|
|
252
|
-
|
|
449
|
+
location: z.ZodObject<{
|
|
253
450
|
kind: z.ZodLiteral<"location">;
|
|
254
451
|
id: z.ZodString;
|
|
255
|
-
status: z.
|
|
452
|
+
status: z.ZodEnum<{
|
|
453
|
+
processing: "processing";
|
|
454
|
+
ready: "ready";
|
|
455
|
+
failed: "failed";
|
|
456
|
+
archived: "archived";
|
|
457
|
+
}>;
|
|
256
458
|
name: z.ZodString;
|
|
257
459
|
depthEncoding: z.ZodNullable<z.ZodString>;
|
|
460
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
461
|
externalId: z.ZodNullable<z.ZodString>;
|
|
259
462
|
}, z.core.$strict>;
|
|
260
463
|
}, z.core.$strict>;
|
|
@@ -269,6 +472,30 @@ export declare const characterSchema: z.ZodObject<{
|
|
|
269
472
|
hairId: z.ZodNullable<z.ZodString>;
|
|
270
473
|
personality: z.ZodNullable<z.ZodString>;
|
|
271
474
|
generalInstructions: z.ZodNullable<z.ZodString>;
|
|
475
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
476
|
+
female: "female";
|
|
477
|
+
male: "male";
|
|
478
|
+
"non-binary": "non-binary";
|
|
479
|
+
}>>>;
|
|
480
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
481
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
482
|
+
african: "african";
|
|
483
|
+
"east-asian": "east-asian";
|
|
484
|
+
european: "european";
|
|
485
|
+
indigenous: "indigenous";
|
|
486
|
+
mediterranean: "mediterranean";
|
|
487
|
+
"middle-eastern": "middle-eastern";
|
|
488
|
+
mixed: "mixed";
|
|
489
|
+
"north-african": "north-african";
|
|
490
|
+
"pacific-islander": "pacific-islander";
|
|
491
|
+
"south-asian": "south-asian";
|
|
492
|
+
"southeast-asian": "southeast-asian";
|
|
493
|
+
}>>>;
|
|
494
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
status: z.ZodEnum<{
|
|
496
|
+
archived: "archived";
|
|
497
|
+
active: "active";
|
|
498
|
+
}>;
|
|
272
499
|
externalId: z.ZodNullable<z.ZodString>;
|
|
273
500
|
createdAt: z.ZodString;
|
|
274
501
|
updatedAt: z.ZodString;
|
|
@@ -277,6 +504,11 @@ export declare const placeSchema: z.ZodObject<{
|
|
|
277
504
|
id: z.ZodString;
|
|
278
505
|
name: z.ZodString;
|
|
279
506
|
locationId: z.ZodString;
|
|
507
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
status: z.ZodEnum<{
|
|
509
|
+
archived: "archived";
|
|
510
|
+
active: "active";
|
|
511
|
+
}>;
|
|
280
512
|
externalId: z.ZodNullable<z.ZodString>;
|
|
281
513
|
createdAt: z.ZodString;
|
|
282
514
|
updatedAt: z.ZodString;
|
|
@@ -286,9 +518,20 @@ export declare const experienceSchema: z.ZodObject<{
|
|
|
286
518
|
projectId: z.ZodString;
|
|
287
519
|
title: z.ZodString;
|
|
288
520
|
slug: z.ZodString;
|
|
289
|
-
status: z.
|
|
521
|
+
status: z.ZodEnum<{
|
|
522
|
+
archived: "archived";
|
|
523
|
+
draft: "draft";
|
|
524
|
+
published: "published";
|
|
525
|
+
}>;
|
|
526
|
+
hasPublishedRevision: z.ZodBoolean;
|
|
527
|
+
hasUnpublishedChanges: z.ZodBoolean;
|
|
290
528
|
published: z.ZodBoolean;
|
|
291
529
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
530
|
+
characterId: z.ZodNullable<z.ZodString>;
|
|
531
|
+
placeId: z.ZodNullable<z.ZodString>;
|
|
532
|
+
startingMessage: z.ZodNullable<z.ZodString>;
|
|
533
|
+
systemInstructions: z.ZodNullable<z.ZodString>;
|
|
534
|
+
introduction: z.ZodNullable<z.ZodString>;
|
|
292
535
|
externalId: z.ZodNullable<z.ZodString>;
|
|
293
536
|
createdAt: z.ZodString;
|
|
294
537
|
updatedAt: z.ZodString;
|
|
@@ -305,6 +548,30 @@ export declare const createCharacterResponseSchema: z.ZodObject<{
|
|
|
305
548
|
hairId: z.ZodNullable<z.ZodString>;
|
|
306
549
|
personality: z.ZodNullable<z.ZodString>;
|
|
307
550
|
generalInstructions: z.ZodNullable<z.ZodString>;
|
|
551
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
552
|
+
female: "female";
|
|
553
|
+
male: "male";
|
|
554
|
+
"non-binary": "non-binary";
|
|
555
|
+
}>>>;
|
|
556
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
557
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
558
|
+
african: "african";
|
|
559
|
+
"east-asian": "east-asian";
|
|
560
|
+
european: "european";
|
|
561
|
+
indigenous: "indigenous";
|
|
562
|
+
mediterranean: "mediterranean";
|
|
563
|
+
"middle-eastern": "middle-eastern";
|
|
564
|
+
mixed: "mixed";
|
|
565
|
+
"north-african": "north-african";
|
|
566
|
+
"pacific-islander": "pacific-islander";
|
|
567
|
+
"south-asian": "south-asian";
|
|
568
|
+
"southeast-asian": "southeast-asian";
|
|
569
|
+
}>>>;
|
|
570
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
571
|
+
status: z.ZodEnum<{
|
|
572
|
+
archived: "archived";
|
|
573
|
+
active: "active";
|
|
574
|
+
}>;
|
|
308
575
|
externalId: z.ZodNullable<z.ZodString>;
|
|
309
576
|
createdAt: z.ZodString;
|
|
310
577
|
updatedAt: z.ZodString;
|
|
@@ -315,6 +582,11 @@ export declare const createPlaceResponseSchema: z.ZodObject<{
|
|
|
315
582
|
id: z.ZodString;
|
|
316
583
|
name: z.ZodString;
|
|
317
584
|
locationId: z.ZodString;
|
|
585
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
+
status: z.ZodEnum<{
|
|
587
|
+
archived: "archived";
|
|
588
|
+
active: "active";
|
|
589
|
+
}>;
|
|
318
590
|
externalId: z.ZodNullable<z.ZodString>;
|
|
319
591
|
createdAt: z.ZodString;
|
|
320
592
|
updatedAt: z.ZodString;
|
|
@@ -326,19 +598,68 @@ export declare const experienceResponseSchema: z.ZodObject<{
|
|
|
326
598
|
projectId: z.ZodString;
|
|
327
599
|
title: z.ZodString;
|
|
328
600
|
slug: z.ZodString;
|
|
329
|
-
status: z.
|
|
601
|
+
status: z.ZodEnum<{
|
|
602
|
+
archived: "archived";
|
|
603
|
+
draft: "draft";
|
|
604
|
+
published: "published";
|
|
605
|
+
}>;
|
|
606
|
+
hasPublishedRevision: z.ZodBoolean;
|
|
607
|
+
hasUnpublishedChanges: z.ZodBoolean;
|
|
330
608
|
published: z.ZodBoolean;
|
|
331
609
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
610
|
+
characterId: z.ZodNullable<z.ZodString>;
|
|
611
|
+
placeId: z.ZodNullable<z.ZodString>;
|
|
612
|
+
startingMessage: z.ZodNullable<z.ZodString>;
|
|
613
|
+
systemInstructions: z.ZodNullable<z.ZodString>;
|
|
614
|
+
introduction: z.ZodNullable<z.ZodString>;
|
|
332
615
|
externalId: z.ZodNullable<z.ZodString>;
|
|
333
616
|
createdAt: z.ZodString;
|
|
334
617
|
updatedAt: z.ZodString;
|
|
335
618
|
}, z.core.$strict>;
|
|
336
619
|
}, z.core.$strict>;
|
|
337
|
-
export declare const
|
|
620
|
+
export declare const libraryUsageSchema: z.ZodObject<{
|
|
621
|
+
draftExperienceIds: z.ZodArray<z.ZodString>;
|
|
622
|
+
publishedExperienceIds: z.ZodArray<z.ZodString>;
|
|
623
|
+
historicalRevisionCount: z.ZodNumber;
|
|
624
|
+
activeCharacterIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
|
+
activePlaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
626
|
+
archivedCharacterIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
627
|
+
archivedPlaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
628
|
+
archivedDependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
629
|
+
resourceType: z.ZodString;
|
|
630
|
+
resourceIds: z.ZodArray<z.ZodString>;
|
|
631
|
+
}, z.core.$strict>>>;
|
|
632
|
+
}, z.core.$strict>;
|
|
633
|
+
export declare const deletedResourceResponseSchema: z.ZodObject<{
|
|
634
|
+
deleted: z.ZodLiteral<true>;
|
|
635
|
+
id: z.ZodString;
|
|
636
|
+
}, z.core.$strict>;
|
|
637
|
+
export declare const avatarSchema: z.ZodObject<{
|
|
338
638
|
id: z.ZodString;
|
|
339
639
|
displayName: z.ZodString;
|
|
340
640
|
defaultVoiceId: z.ZodString;
|
|
341
641
|
defaultSttLang: z.ZodString;
|
|
642
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
643
|
+
female: "female";
|
|
644
|
+
male: "male";
|
|
645
|
+
"non-binary": "non-binary";
|
|
646
|
+
}>>>;
|
|
647
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
648
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
649
|
+
african: "african";
|
|
650
|
+
"east-asian": "east-asian";
|
|
651
|
+
european: "european";
|
|
652
|
+
indigenous: "indigenous";
|
|
653
|
+
mediterranean: "mediterranean";
|
|
654
|
+
"middle-eastern": "middle-eastern";
|
|
655
|
+
mixed: "mixed";
|
|
656
|
+
"north-african": "north-african";
|
|
657
|
+
"pacific-islander": "pacific-islander";
|
|
658
|
+
"south-asian": "south-asian";
|
|
659
|
+
"southeast-asian": "southeast-asian";
|
|
660
|
+
}>>>;
|
|
661
|
+
species: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
662
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
663
|
clothes: z.ZodArray<z.ZodObject<{
|
|
343
664
|
id: z.ZodString;
|
|
344
665
|
name: z.ZodString;
|
|
@@ -358,6 +679,27 @@ export declare const listAvatarsResponseSchema: z.ZodObject<{
|
|
|
358
679
|
displayName: z.ZodString;
|
|
359
680
|
defaultVoiceId: z.ZodString;
|
|
360
681
|
defaultSttLang: z.ZodString;
|
|
682
|
+
gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
683
|
+
female: "female";
|
|
684
|
+
male: "male";
|
|
685
|
+
"non-binary": "non-binary";
|
|
686
|
+
}>>>;
|
|
687
|
+
age: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
688
|
+
ethnicity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
689
|
+
african: "african";
|
|
690
|
+
"east-asian": "east-asian";
|
|
691
|
+
european: "european";
|
|
692
|
+
indigenous: "indigenous";
|
|
693
|
+
mediterranean: "mediterranean";
|
|
694
|
+
"middle-eastern": "middle-eastern";
|
|
695
|
+
mixed: "mixed";
|
|
696
|
+
"north-african": "north-african";
|
|
697
|
+
"pacific-islander": "pacific-islander";
|
|
698
|
+
"south-asian": "south-asian";
|
|
699
|
+
"southeast-asian": "southeast-asian";
|
|
700
|
+
}>>>;
|
|
701
|
+
species: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
702
|
+
style: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
703
|
clothes: z.ZodArray<z.ZodObject<{
|
|
362
704
|
id: z.ZodString;
|
|
363
705
|
name: z.ZodString;
|
|
@@ -372,13 +714,30 @@ export declare const listAvatarsResponseSchema: z.ZodObject<{
|
|
|
372
714
|
}, z.core.$strict>>;
|
|
373
715
|
}, z.core.$strict>>;
|
|
374
716
|
}, z.core.$strict>;
|
|
375
|
-
export type
|
|
717
|
+
export type PublishJob = z.infer<typeof publishJobSchema>;
|
|
718
|
+
export type PublishJobStatus = PublishJob['status'];
|
|
719
|
+
export type PublishResourceStatus = z.infer<typeof publishResourceStatusSchema>;
|
|
720
|
+
export type AppearanceResourceStatus = z.infer<typeof appearanceResourceStatusSchema>;
|
|
721
|
+
export type LocationResourceStatus = z.infer<typeof locationResourceStatusSchema>;
|
|
722
|
+
export type ExperienceStatus = z.infer<typeof experienceStatusSchema>;
|
|
376
723
|
export type ClothesResource = z.infer<typeof clothesResourceSchema>;
|
|
377
724
|
export type HairResource = z.infer<typeof hairResourceSchema>;
|
|
378
725
|
export type LocationResource = z.infer<typeof locationResourceSchema>;
|
|
379
726
|
export type CharacterResource = z.infer<typeof characterSchema>;
|
|
380
727
|
export type PlaceResource = z.infer<typeof placeSchema>;
|
|
381
728
|
export type ExperienceResource = z.infer<typeof experienceSchema>;
|
|
382
|
-
export type
|
|
729
|
+
export type Avatar = z.infer<typeof avatarSchema>;
|
|
730
|
+
export type CreateClothesPublishResponse = z.infer<typeof createClothesPublishResponseSchema>;
|
|
731
|
+
export type CreateHairPublishResponse = z.infer<typeof createHairPublishResponseSchema>;
|
|
732
|
+
export type CreateLocationPublishResponse = z.infer<typeof createLocationPublishResponseSchema>;
|
|
383
733
|
export type CreatePublishResponse = z.infer<typeof createPublishResponseSchema>;
|
|
734
|
+
export type DeletedResource = z.infer<typeof deletedResourceResponseSchema>;
|
|
735
|
+
export type LibraryUsage = z.infer<typeof libraryUsageSchema>;
|
|
736
|
+
export declare const structuredPublisherErrorSchema: z.ZodObject<{
|
|
737
|
+
error: z.ZodObject<{
|
|
738
|
+
code: z.ZodString;
|
|
739
|
+
message: z.ZodString;
|
|
740
|
+
requestId: z.ZodString;
|
|
741
|
+
}, z.core.$loose>;
|
|
742
|
+
}, z.core.$strict>;
|
|
384
743
|
//# sourceMappingURL=schemas.d.ts.map
|