@liforma/publisher 0.1.2 → 0.3.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 +120 -83
- package/dist/createPublisher.d.ts.map +1 -1
- package/dist/createPublisher.js +175 -104
- 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 +2 -0
- 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 +4 -2
- 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 +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 +290 -89
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +61 -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,46 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const publishResourceStatusSchema: z.ZodEnum<{
|
|
3
|
+
processing: "processing";
|
|
4
|
+
ready: "ready";
|
|
5
|
+
failed: "failed";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const appearanceResourceStatusSchema: z.ZodEnum<{
|
|
8
|
+
processing: "processing";
|
|
9
|
+
ready: "ready";
|
|
10
|
+
failed: "failed";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const locationResourceStatusSchema: z.ZodEnum<{
|
|
13
|
+
processing: "processing";
|
|
14
|
+
ready: "ready";
|
|
15
|
+
failed: "failed";
|
|
16
|
+
archived: "archived";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const experienceStatusSchema: z.ZodEnum<{
|
|
19
|
+
archived: "archived";
|
|
20
|
+
draft: "draft";
|
|
21
|
+
published: "published";
|
|
22
|
+
}>;
|
|
23
|
+
export declare const publishJobErrorSchema: z.ZodObject<{
|
|
3
24
|
code: z.ZodString;
|
|
4
25
|
message: z.ZodString;
|
|
5
26
|
}, z.core.$strict>;
|
|
6
|
-
export declare const
|
|
27
|
+
export declare const publishJobSchema: z.ZodObject<{
|
|
7
28
|
id: z.ZodString;
|
|
8
29
|
status: z.ZodEnum<{
|
|
30
|
+
failed: "failed";
|
|
9
31
|
queued: "queued";
|
|
10
32
|
running: "running";
|
|
11
33
|
waiting_processor: "waiting_processor";
|
|
12
34
|
succeeded: "succeeded";
|
|
13
|
-
failed: "failed";
|
|
14
35
|
}>;
|
|
15
36
|
kind: z.ZodEnum<{
|
|
16
|
-
location: "location";
|
|
17
37
|
clothes: "clothes";
|
|
18
38
|
hair: "hair";
|
|
39
|
+
location: "location";
|
|
19
40
|
}>;
|
|
20
41
|
pollUrl: z.ZodString;
|
|
21
42
|
targetId: z.ZodString;
|
|
22
43
|
requiredOk: z.ZodBoolean;
|
|
23
|
-
claimCount: z.ZodNumber;
|
|
24
|
-
failureCount: z.ZodNumber;
|
|
25
|
-
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
26
44
|
stage: z.ZodNullable<z.ZodString>;
|
|
27
45
|
progress: z.ZodObject<{
|
|
28
46
|
requiredVerified: z.ZodNumber;
|
|
@@ -32,52 +50,70 @@ export declare const authoringJobSchema: z.ZodObject<{
|
|
|
32
50
|
code: z.ZodString;
|
|
33
51
|
message: z.ZodString;
|
|
34
52
|
}, z.core.$strict>>;
|
|
35
|
-
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export declare const publishStubSchema: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
status: z.ZodEnum<{
|
|
57
|
+
processing: "processing";
|
|
58
|
+
ready: "ready";
|
|
59
|
+
failed: "failed";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export declare const createClothesPublishResponseSchema: z.ZodObject<{
|
|
63
|
+
job: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
36
65
|
status: z.ZodEnum<{
|
|
37
|
-
running: "running";
|
|
38
66
|
failed: "failed";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
67
|
+
queued: "queued";
|
|
68
|
+
running: "running";
|
|
69
|
+
waiting_processor: "waiting_processor";
|
|
70
|
+
succeeded: "succeeded";
|
|
42
71
|
}>;
|
|
43
|
-
|
|
44
|
-
|
|
72
|
+
kind: z.ZodEnum<{
|
|
73
|
+
clothes: "clothes";
|
|
74
|
+
hair: "hair";
|
|
75
|
+
location: "location";
|
|
76
|
+
}>;
|
|
77
|
+
pollUrl: z.ZodString;
|
|
78
|
+
targetId: z.ZodString;
|
|
79
|
+
requiredOk: z.ZodBoolean;
|
|
80
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
81
|
+
progress: z.ZodObject<{
|
|
82
|
+
requiredVerified: z.ZodNumber;
|
|
83
|
+
requiredTotal: z.ZodNumber;
|
|
84
|
+
}, z.core.$strict>;
|
|
45
85
|
error: z.ZodNullable<z.ZodObject<{
|
|
46
86
|
code: z.ZodString;
|
|
47
87
|
message: z.ZodString;
|
|
48
88
|
}, z.core.$strict>>;
|
|
49
89
|
}, z.core.$strict>;
|
|
90
|
+
clothes: z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
status: z.ZodEnum<{
|
|
93
|
+
processing: "processing";
|
|
94
|
+
ready: "ready";
|
|
95
|
+
failed: "failed";
|
|
96
|
+
}>;
|
|
97
|
+
}, z.core.$strict>;
|
|
50
98
|
}, 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<{
|
|
99
|
+
export declare const createHairPublishResponseSchema: z.ZodObject<{
|
|
61
100
|
job: z.ZodObject<{
|
|
62
101
|
id: z.ZodString;
|
|
63
102
|
status: z.ZodEnum<{
|
|
103
|
+
failed: "failed";
|
|
64
104
|
queued: "queued";
|
|
65
105
|
running: "running";
|
|
66
106
|
waiting_processor: "waiting_processor";
|
|
67
107
|
succeeded: "succeeded";
|
|
68
|
-
failed: "failed";
|
|
69
108
|
}>;
|
|
70
109
|
kind: z.ZodEnum<{
|
|
71
|
-
location: "location";
|
|
72
110
|
clothes: "clothes";
|
|
73
111
|
hair: "hair";
|
|
112
|
+
location: "location";
|
|
74
113
|
}>;
|
|
75
114
|
pollUrl: z.ZodString;
|
|
76
115
|
targetId: z.ZodString;
|
|
77
116
|
requiredOk: z.ZodBoolean;
|
|
78
|
-
claimCount: z.ZodNumber;
|
|
79
|
-
failureCount: z.ZodNumber;
|
|
80
|
-
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
81
117
|
stage: z.ZodNullable<z.ZodString>;
|
|
82
118
|
progress: z.ZodObject<{
|
|
83
119
|
requiredVerified: z.ZodNumber;
|
|
@@ -87,53 +123,143 @@ export declare const createPublishResponseSchema: z.ZodObject<{
|
|
|
87
123
|
code: z.ZodString;
|
|
88
124
|
message: z.ZodString;
|
|
89
125
|
}, 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
126
|
}, z.core.$strict>;
|
|
106
|
-
|
|
127
|
+
hair: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
status: z.ZodEnum<{
|
|
130
|
+
processing: "processing";
|
|
131
|
+
ready: "ready";
|
|
132
|
+
failed: "failed";
|
|
133
|
+
}>;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
export declare const createLocationPublishResponseSchema: z.ZodObject<{
|
|
137
|
+
job: z.ZodObject<{
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
status: z.ZodEnum<{
|
|
140
|
+
failed: "failed";
|
|
141
|
+
queued: "queued";
|
|
142
|
+
running: "running";
|
|
143
|
+
waiting_processor: "waiting_processor";
|
|
144
|
+
succeeded: "succeeded";
|
|
145
|
+
}>;
|
|
107
146
|
kind: z.ZodEnum<{
|
|
108
|
-
location: "location";
|
|
109
147
|
clothes: "clothes";
|
|
110
148
|
hair: "hair";
|
|
149
|
+
location: "location";
|
|
111
150
|
}>;
|
|
151
|
+
pollUrl: z.ZodString;
|
|
152
|
+
targetId: z.ZodString;
|
|
153
|
+
requiredOk: z.ZodBoolean;
|
|
154
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
155
|
+
progress: z.ZodObject<{
|
|
156
|
+
requiredVerified: z.ZodNumber;
|
|
157
|
+
requiredTotal: z.ZodNumber;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
160
|
+
code: z.ZodString;
|
|
161
|
+
message: z.ZodString;
|
|
162
|
+
}, z.core.$strict>>;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
location: z.ZodObject<{
|
|
112
165
|
id: z.ZodString;
|
|
113
|
-
status: z.
|
|
166
|
+
status: z.ZodEnum<{
|
|
167
|
+
processing: "processing";
|
|
168
|
+
ready: "ready";
|
|
169
|
+
failed: "failed";
|
|
170
|
+
}>;
|
|
114
171
|
}, z.core.$strict>;
|
|
115
172
|
}, z.core.$strict>;
|
|
116
|
-
export declare const
|
|
173
|
+
export declare const createPublishResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
117
174
|
job: z.ZodObject<{
|
|
118
175
|
id: z.ZodString;
|
|
119
176
|
status: z.ZodEnum<{
|
|
177
|
+
failed: "failed";
|
|
120
178
|
queued: "queued";
|
|
121
179
|
running: "running";
|
|
122
180
|
waiting_processor: "waiting_processor";
|
|
123
181
|
succeeded: "succeeded";
|
|
182
|
+
}>;
|
|
183
|
+
kind: z.ZodEnum<{
|
|
184
|
+
clothes: "clothes";
|
|
185
|
+
hair: "hair";
|
|
186
|
+
location: "location";
|
|
187
|
+
}>;
|
|
188
|
+
pollUrl: z.ZodString;
|
|
189
|
+
targetId: z.ZodString;
|
|
190
|
+
requiredOk: z.ZodBoolean;
|
|
191
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
192
|
+
progress: z.ZodObject<{
|
|
193
|
+
requiredVerified: z.ZodNumber;
|
|
194
|
+
requiredTotal: z.ZodNumber;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
197
|
+
code: z.ZodString;
|
|
198
|
+
message: z.ZodString;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
clothes: z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
status: z.ZodEnum<{
|
|
204
|
+
processing: "processing";
|
|
205
|
+
ready: "ready";
|
|
124
206
|
failed: "failed";
|
|
125
207
|
}>;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
job: z.ZodObject<{
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
status: z.ZodEnum<{
|
|
213
|
+
failed: "failed";
|
|
214
|
+
queued: "queued";
|
|
215
|
+
running: "running";
|
|
216
|
+
waiting_processor: "waiting_processor";
|
|
217
|
+
succeeded: "succeeded";
|
|
218
|
+
}>;
|
|
126
219
|
kind: z.ZodEnum<{
|
|
220
|
+
clothes: "clothes";
|
|
221
|
+
hair: "hair";
|
|
127
222
|
location: "location";
|
|
223
|
+
}>;
|
|
224
|
+
pollUrl: z.ZodString;
|
|
225
|
+
targetId: z.ZodString;
|
|
226
|
+
requiredOk: z.ZodBoolean;
|
|
227
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
228
|
+
progress: z.ZodObject<{
|
|
229
|
+
requiredVerified: z.ZodNumber;
|
|
230
|
+
requiredTotal: z.ZodNumber;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
233
|
+
code: z.ZodString;
|
|
234
|
+
message: z.ZodString;
|
|
235
|
+
}, z.core.$strict>>;
|
|
236
|
+
}, z.core.$strict>;
|
|
237
|
+
hair: z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
status: z.ZodEnum<{
|
|
240
|
+
processing: "processing";
|
|
241
|
+
ready: "ready";
|
|
242
|
+
failed: "failed";
|
|
243
|
+
}>;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
246
|
+
job: z.ZodObject<{
|
|
247
|
+
id: z.ZodString;
|
|
248
|
+
status: z.ZodEnum<{
|
|
249
|
+
failed: "failed";
|
|
250
|
+
queued: "queued";
|
|
251
|
+
running: "running";
|
|
252
|
+
waiting_processor: "waiting_processor";
|
|
253
|
+
succeeded: "succeeded";
|
|
254
|
+
}>;
|
|
255
|
+
kind: z.ZodEnum<{
|
|
128
256
|
clothes: "clothes";
|
|
129
257
|
hair: "hair";
|
|
258
|
+
location: "location";
|
|
130
259
|
}>;
|
|
131
260
|
pollUrl: z.ZodString;
|
|
132
261
|
targetId: z.ZodString;
|
|
133
262
|
requiredOk: z.ZodBoolean;
|
|
134
|
-
claimCount: z.ZodNumber;
|
|
135
|
-
failureCount: z.ZodNumber;
|
|
136
|
-
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
137
263
|
stage: z.ZodNullable<z.ZodString>;
|
|
138
264
|
progress: z.ZodObject<{
|
|
139
265
|
requiredVerified: z.ZodNumber;
|
|
@@ -143,21 +269,43 @@ export declare const getJobResponseSchema: z.ZodObject<{
|
|
|
143
269
|
code: z.ZodString;
|
|
144
270
|
message: z.ZodString;
|
|
145
271
|
}, z.core.$strict>>;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
location: z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
status: z.ZodEnum<{
|
|
276
|
+
processing: "processing";
|
|
277
|
+
ready: "ready";
|
|
278
|
+
failed: "failed";
|
|
279
|
+
}>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
}, z.core.$strict>]>;
|
|
282
|
+
export declare const getJobResponseSchema: z.ZodObject<{
|
|
283
|
+
job: z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
status: z.ZodEnum<{
|
|
286
|
+
failed: "failed";
|
|
287
|
+
queued: "queued";
|
|
288
|
+
running: "running";
|
|
289
|
+
waiting_processor: "waiting_processor";
|
|
290
|
+
succeeded: "succeeded";
|
|
291
|
+
}>;
|
|
292
|
+
kind: z.ZodEnum<{
|
|
293
|
+
clothes: "clothes";
|
|
294
|
+
hair: "hair";
|
|
295
|
+
location: "location";
|
|
296
|
+
}>;
|
|
297
|
+
pollUrl: z.ZodString;
|
|
298
|
+
targetId: z.ZodString;
|
|
299
|
+
requiredOk: z.ZodBoolean;
|
|
300
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
301
|
+
progress: z.ZodObject<{
|
|
302
|
+
requiredVerified: z.ZodNumber;
|
|
303
|
+
requiredTotal: z.ZodNumber;
|
|
160
304
|
}, z.core.$strict>;
|
|
305
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
306
|
+
code: z.ZodString;
|
|
307
|
+
message: z.ZodString;
|
|
308
|
+
}, z.core.$strict>>;
|
|
161
309
|
}, z.core.$strict>;
|
|
162
310
|
}, z.core.$strict>;
|
|
163
311
|
export declare const createUploadResponseSchema: z.ZodObject<{
|
|
@@ -187,11 +335,12 @@ export declare const clothesResourceSchema: z.ZodObject<{
|
|
|
187
335
|
id: z.ZodString;
|
|
188
336
|
avatarId: z.ZodString;
|
|
189
337
|
name: z.ZodString;
|
|
190
|
-
status: z.
|
|
338
|
+
status: z.ZodEnum<{
|
|
339
|
+
processing: "processing";
|
|
340
|
+
ready: "ready";
|
|
341
|
+
failed: "failed";
|
|
342
|
+
}>;
|
|
191
343
|
source: z.ZodString;
|
|
192
|
-
renderKind: z.ZodString;
|
|
193
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
194
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
195
344
|
externalId: z.ZodNullable<z.ZodString>;
|
|
196
345
|
createdAt: z.ZodString;
|
|
197
346
|
updatedAt: z.ZodString;
|
|
@@ -201,10 +350,12 @@ export declare const hairResourceSchema: z.ZodObject<{
|
|
|
201
350
|
id: z.ZodString;
|
|
202
351
|
avatarId: z.ZodString;
|
|
203
352
|
name: z.ZodString;
|
|
204
|
-
status: z.
|
|
353
|
+
status: z.ZodEnum<{
|
|
354
|
+
processing: "processing";
|
|
355
|
+
ready: "ready";
|
|
356
|
+
failed: "failed";
|
|
357
|
+
}>;
|
|
205
358
|
source: z.ZodString;
|
|
206
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
207
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
208
359
|
externalId: z.ZodNullable<z.ZodString>;
|
|
209
360
|
createdAt: z.ZodString;
|
|
210
361
|
updatedAt: z.ZodString;
|
|
@@ -212,47 +363,60 @@ export declare const hairResourceSchema: z.ZodObject<{
|
|
|
212
363
|
export declare const locationResourceSchema: z.ZodObject<{
|
|
213
364
|
kind: z.ZodLiteral<"location">;
|
|
214
365
|
id: z.ZodString;
|
|
215
|
-
status: z.
|
|
366
|
+
status: z.ZodEnum<{
|
|
367
|
+
processing: "processing";
|
|
368
|
+
ready: "ready";
|
|
369
|
+
failed: "failed";
|
|
370
|
+
archived: "archived";
|
|
371
|
+
}>;
|
|
216
372
|
name: z.ZodString;
|
|
217
373
|
depthEncoding: z.ZodNullable<z.ZodString>;
|
|
218
374
|
externalId: z.ZodNullable<z.ZodString>;
|
|
219
375
|
}, z.core.$strict>;
|
|
220
376
|
export declare const getClothesResponseSchema: z.ZodObject<{
|
|
221
|
-
|
|
377
|
+
clothes: z.ZodObject<{
|
|
222
378
|
kind: z.ZodLiteral<"clothes">;
|
|
223
379
|
id: z.ZodString;
|
|
224
380
|
avatarId: z.ZodString;
|
|
225
381
|
name: z.ZodString;
|
|
226
|
-
status: z.
|
|
382
|
+
status: z.ZodEnum<{
|
|
383
|
+
processing: "processing";
|
|
384
|
+
ready: "ready";
|
|
385
|
+
failed: "failed";
|
|
386
|
+
}>;
|
|
227
387
|
source: z.ZodString;
|
|
228
|
-
renderKind: z.ZodString;
|
|
229
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
230
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
231
388
|
externalId: z.ZodNullable<z.ZodString>;
|
|
232
389
|
createdAt: z.ZodString;
|
|
233
390
|
updatedAt: z.ZodString;
|
|
234
391
|
}, z.core.$strict>;
|
|
235
392
|
}, z.core.$strict>;
|
|
236
393
|
export declare const getHairResponseSchema: z.ZodObject<{
|
|
237
|
-
|
|
394
|
+
hair: z.ZodObject<{
|
|
238
395
|
kind: z.ZodLiteral<"hair">;
|
|
239
396
|
id: z.ZodString;
|
|
240
397
|
avatarId: z.ZodString;
|
|
241
398
|
name: z.ZodString;
|
|
242
|
-
status: z.
|
|
399
|
+
status: z.ZodEnum<{
|
|
400
|
+
processing: "processing";
|
|
401
|
+
ready: "ready";
|
|
402
|
+
failed: "failed";
|
|
403
|
+
}>;
|
|
243
404
|
source: z.ZodString;
|
|
244
|
-
catalogueKey: z.ZodNullable<z.ZodString>;
|
|
245
|
-
assetPath: z.ZodNullable<z.ZodString>;
|
|
246
405
|
externalId: z.ZodNullable<z.ZodString>;
|
|
247
406
|
createdAt: z.ZodString;
|
|
248
407
|
updatedAt: z.ZodString;
|
|
249
408
|
}, z.core.$strict>;
|
|
250
409
|
}, z.core.$strict>;
|
|
251
410
|
export declare const getLocationResponseSchema: z.ZodObject<{
|
|
252
|
-
|
|
411
|
+
location: z.ZodObject<{
|
|
253
412
|
kind: z.ZodLiteral<"location">;
|
|
254
413
|
id: z.ZodString;
|
|
255
|
-
status: z.
|
|
414
|
+
status: z.ZodEnum<{
|
|
415
|
+
processing: "processing";
|
|
416
|
+
ready: "ready";
|
|
417
|
+
failed: "failed";
|
|
418
|
+
archived: "archived";
|
|
419
|
+
}>;
|
|
256
420
|
name: z.ZodString;
|
|
257
421
|
depthEncoding: z.ZodNullable<z.ZodString>;
|
|
258
422
|
externalId: z.ZodNullable<z.ZodString>;
|
|
@@ -286,9 +450,20 @@ export declare const experienceSchema: z.ZodObject<{
|
|
|
286
450
|
projectId: z.ZodString;
|
|
287
451
|
title: z.ZodString;
|
|
288
452
|
slug: z.ZodString;
|
|
289
|
-
status: z.
|
|
453
|
+
status: z.ZodEnum<{
|
|
454
|
+
archived: "archived";
|
|
455
|
+
draft: "draft";
|
|
456
|
+
published: "published";
|
|
457
|
+
}>;
|
|
458
|
+
hasPublishedRevision: z.ZodBoolean;
|
|
459
|
+
hasUnpublishedChanges: z.ZodBoolean;
|
|
290
460
|
published: z.ZodBoolean;
|
|
291
461
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
462
|
+
characterId: z.ZodNullable<z.ZodString>;
|
|
463
|
+
placeId: z.ZodNullable<z.ZodString>;
|
|
464
|
+
startingMessage: z.ZodNullable<z.ZodString>;
|
|
465
|
+
systemInstructions: z.ZodNullable<z.ZodString>;
|
|
466
|
+
introduction: z.ZodNullable<z.ZodString>;
|
|
292
467
|
externalId: z.ZodNullable<z.ZodString>;
|
|
293
468
|
createdAt: z.ZodString;
|
|
294
469
|
updatedAt: z.ZodString;
|
|
@@ -326,15 +501,26 @@ export declare const experienceResponseSchema: z.ZodObject<{
|
|
|
326
501
|
projectId: z.ZodString;
|
|
327
502
|
title: z.ZodString;
|
|
328
503
|
slug: z.ZodString;
|
|
329
|
-
status: z.
|
|
504
|
+
status: z.ZodEnum<{
|
|
505
|
+
archived: "archived";
|
|
506
|
+
draft: "draft";
|
|
507
|
+
published: "published";
|
|
508
|
+
}>;
|
|
509
|
+
hasPublishedRevision: z.ZodBoolean;
|
|
510
|
+
hasUnpublishedChanges: z.ZodBoolean;
|
|
330
511
|
published: z.ZodBoolean;
|
|
331
512
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
513
|
+
characterId: z.ZodNullable<z.ZodString>;
|
|
514
|
+
placeId: z.ZodNullable<z.ZodString>;
|
|
515
|
+
startingMessage: z.ZodNullable<z.ZodString>;
|
|
516
|
+
systemInstructions: z.ZodNullable<z.ZodString>;
|
|
517
|
+
introduction: z.ZodNullable<z.ZodString>;
|
|
332
518
|
externalId: z.ZodNullable<z.ZodString>;
|
|
333
519
|
createdAt: z.ZodString;
|
|
334
520
|
updatedAt: z.ZodString;
|
|
335
521
|
}, z.core.$strict>;
|
|
336
522
|
}, z.core.$strict>;
|
|
337
|
-
export declare const
|
|
523
|
+
export declare const avatarSchema: z.ZodObject<{
|
|
338
524
|
id: z.ZodString;
|
|
339
525
|
displayName: z.ZodString;
|
|
340
526
|
defaultVoiceId: z.ZodString;
|
|
@@ -372,13 +558,28 @@ export declare const listAvatarsResponseSchema: z.ZodObject<{
|
|
|
372
558
|
}, z.core.$strict>>;
|
|
373
559
|
}, z.core.$strict>>;
|
|
374
560
|
}, z.core.$strict>;
|
|
375
|
-
export type
|
|
561
|
+
export type PublishJob = z.infer<typeof publishJobSchema>;
|
|
562
|
+
export type PublishJobStatus = PublishJob['status'];
|
|
563
|
+
export type PublishResourceStatus = z.infer<typeof publishResourceStatusSchema>;
|
|
564
|
+
export type AppearanceResourceStatus = z.infer<typeof appearanceResourceStatusSchema>;
|
|
565
|
+
export type LocationResourceStatus = z.infer<typeof locationResourceStatusSchema>;
|
|
566
|
+
export type ExperienceStatus = z.infer<typeof experienceStatusSchema>;
|
|
376
567
|
export type ClothesResource = z.infer<typeof clothesResourceSchema>;
|
|
377
568
|
export type HairResource = z.infer<typeof hairResourceSchema>;
|
|
378
569
|
export type LocationResource = z.infer<typeof locationResourceSchema>;
|
|
379
570
|
export type CharacterResource = z.infer<typeof characterSchema>;
|
|
380
571
|
export type PlaceResource = z.infer<typeof placeSchema>;
|
|
381
572
|
export type ExperienceResource = z.infer<typeof experienceSchema>;
|
|
382
|
-
export type
|
|
573
|
+
export type Avatar = z.infer<typeof avatarSchema>;
|
|
574
|
+
export type CreateClothesPublishResponse = z.infer<typeof createClothesPublishResponseSchema>;
|
|
575
|
+
export type CreateHairPublishResponse = z.infer<typeof createHairPublishResponseSchema>;
|
|
576
|
+
export type CreateLocationPublishResponse = z.infer<typeof createLocationPublishResponseSchema>;
|
|
383
577
|
export type CreatePublishResponse = z.infer<typeof createPublishResponseSchema>;
|
|
578
|
+
export declare const structuredPublisherErrorSchema: z.ZodObject<{
|
|
579
|
+
error: z.ZodObject<{
|
|
580
|
+
code: z.ZodString;
|
|
581
|
+
message: z.ZodString;
|
|
582
|
+
requestId: z.ZodString;
|
|
583
|
+
}, z.core.$loose>;
|
|
584
|
+
}, z.core.$strict>;
|
|
384
585
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B;;;;EAA4C,CAAC;AACrF,eAAO,MAAM,8BAA8B;;;;EAA4C,CAAC;AACxF,eAAO,MAAM,4BAA4B;;;;;EAAwD,CAAC;AAClG,eAAO,MAAM,sBAAsB;;;;EAA6C,CAAC;AAEjF,eAAO,MAAM,qBAAqB;;;kBAKxB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBnB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;kBAKpB,CAAC;AAEX,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKrC,CAAC;AAEX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKlC,CAAC;AAEX,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKtC,CAAC;AAEX,eAAO,MAAM,2BAA2B;;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