@playcraft/common 0.1.56-beta → 0.1.57-beta
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/dist/build-progress.d.ts +46 -0
- package/dist/build-progress.d.ts.map +1 -0
- package/dist/build-progress.js +31 -0
- package/dist/build-progress.js.map +1 -0
- package/dist/build-size.d.ts +16 -0
- package/dist/build-size.d.ts.map +1 -0
- package/dist/build-size.js +27 -0
- package/dist/build-size.js.map +1 -0
- package/dist/cloud-workspace/model-output.d.ts +9 -0
- package/dist/cloud-workspace/model-output.d.ts.map +1 -0
- package/dist/cloud-workspace/model-output.js +334 -0
- package/dist/cloud-workspace/model-output.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-connection.d.ts +1 -1
- package/dist/cloud-workspace/runtime/agent-generation-provenance.d.ts +65 -0
- package/dist/cloud-workspace/runtime/agent-generation-provenance.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js +26 -0
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-generation.d.ts +33 -0
- package/dist/cloud-workspace/runtime/agent-generation.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/agent-generation.js +21 -0
- package/dist/cloud-workspace/runtime/agent-generation.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-lifecycle.d.ts +1 -1
- package/dist/cloud-workspace/runtime/agent-opencode.d.ts +1 -1
- package/dist/cloud-workspace/runtime/agent-source-project.d.ts +1 -1
- package/dist/cloud-workspace/runtime/animation-editor.d.ts +1 -0
- package/dist/cloud-workspace/runtime/animation-editor.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/artifacts.d.ts +2 -2
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +148 -19
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js +3 -0
- package/dist/cloud-workspace/runtime/asset-generation-tools.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.d.ts +351 -35
- package/dist/cloud-workspace/runtime/asset-generation.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.js +101 -21
- package/dist/cloud-workspace/runtime/asset-generation.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-save.d.ts +6 -2
- package/dist/cloud-workspace/runtime/asset-library-save.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-save.js +1 -1
- package/dist/cloud-workspace/runtime/asset-library-save.js.map +1 -1
- package/dist/cloud-workspace/runtime/batch-runs.d.ts +9 -0
- package/dist/cloud-workspace/runtime/batch-runs.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/batch-runs.js +8 -0
- package/dist/cloud-workspace/runtime/batch-runs.js.map +1 -1
- package/dist/cloud-workspace/runtime/image-limits.d.ts +12 -0
- package/dist/cloud-workspace/runtime/image-limits.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/image-limits.js +19 -0
- package/dist/cloud-workspace/runtime/image-limits.js.map +1 -0
- package/dist/cloud-workspace/runtime/index.d.ts +3 -0
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +3 -0
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/platform-endpoints.d.ts +2 -0
- package/dist/cloud-workspace/runtime/platform-endpoints.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/platform-endpoints.js +2 -0
- package/dist/cloud-workspace/runtime/platform-endpoints.js.map +1 -1
- package/dist/cloud-workspace/runtime/previews.d.ts +1 -1
- package/dist/cloud-workspace/runtime/variant-workspace.d.ts +2 -2
- package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +1 -1
- package/dist/cloud-workspace/runtime/workspace-ui.d.ts +2 -2
- package/package.json +13 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const ASSET_GENERATION_IMAGE_ASPECT_RATIOS: readonly ["1:1", "45:16", "16:9", "9:16", "3:4", "4:3", "2:3", "3:2", "21:9"];
|
|
3
|
+
export declare const ASSET_GENERATION_IMAGE_MAX_COUNT = 10;
|
|
4
|
+
export declare const ASSET_GENERATION_IMAGE_REFERENCE_MAX_COUNT = 8;
|
|
2
5
|
export declare const ASSET_GENERATION_REFERENCE_MAX_BYTES: number;
|
|
3
6
|
export declare const ASSET_GENERATION_REQUEST_MAX_BYTES: number;
|
|
4
7
|
export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -59,15 +62,36 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
59
62
|
removeBackground: z.ZodOptional<z.ZodBoolean>;
|
|
60
63
|
kind: z.ZodLiteral<"animation">;
|
|
61
64
|
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
referenceImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
base64: z.ZodString;
|
|
67
|
+
mimeType: z.ZodEnum<{
|
|
68
|
+
"image/png": "image/png";
|
|
69
|
+
"image/webp": "image/webp";
|
|
70
|
+
"image/jpeg": "image/jpeg";
|
|
71
|
+
}>;
|
|
72
|
+
}, z.core.$strict>>>;
|
|
73
|
+
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
74
|
+
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
"image/png": "image/png";
|
|
76
|
+
"image/webp": "image/webp";
|
|
77
|
+
"image/jpeg": "image/jpeg";
|
|
78
|
+
}>>;
|
|
64
79
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
65
80
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
66
81
|
"16:9": "16:9";
|
|
67
82
|
"9:16": "9:16";
|
|
68
83
|
"1:1": "1:1";
|
|
69
|
-
"
|
|
84
|
+
"45:16": "45:16";
|
|
70
85
|
"3:4": "3:4";
|
|
86
|
+
"4:3": "4:3";
|
|
87
|
+
"2:3": "2:3";
|
|
88
|
+
"3:2": "3:2";
|
|
89
|
+
"21:9": "21:9";
|
|
90
|
+
}>>;
|
|
91
|
+
imageSize: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
"1K": "1K";
|
|
93
|
+
"2K": "2K";
|
|
94
|
+
"4K": "4K";
|
|
71
95
|
}>>;
|
|
72
96
|
width: z.ZodOptional<z.ZodNumber>;
|
|
73
97
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -77,12 +101,19 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
77
101
|
jpeg: "jpeg";
|
|
78
102
|
}>>;
|
|
79
103
|
removeBackground: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
104
|
+
background: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
transparent: "transparent";
|
|
106
|
+
opaque: "opaque";
|
|
107
|
+
}>>;
|
|
108
|
+
fitMode: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
fill: "fill";
|
|
110
|
+
contain: "contain";
|
|
111
|
+
cover: "cover";
|
|
85
112
|
}>>;
|
|
113
|
+
paddingColor: z.ZodOptional<z.ZodString>;
|
|
114
|
+
imageCount: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
kind: z.ZodLiteral<"image">;
|
|
116
|
+
prompt: z.ZodString;
|
|
86
117
|
}, z.core.$strict>, z.ZodObject<{
|
|
87
118
|
kind: z.ZodLiteral<"audio">;
|
|
88
119
|
category: z.ZodEnum<{
|
|
@@ -95,12 +126,6 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
95
126
|
style: z.ZodOptional<z.ZodString>;
|
|
96
127
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
97
128
|
}, z.core.$strict>, z.ZodObject<{
|
|
98
|
-
kind: z.ZodLiteral<"model">;
|
|
99
|
-
mode: z.ZodEnum<{
|
|
100
|
-
text: "text";
|
|
101
|
-
reference: "reference";
|
|
102
|
-
}>;
|
|
103
|
-
modelRef: z.ZodOptional<z.ZodString>;
|
|
104
129
|
prompt: z.ZodOptional<z.ZodString>;
|
|
105
130
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
106
131
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -108,6 +133,48 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
108
133
|
"image/webp": "image/webp";
|
|
109
134
|
"image/jpeg": "image/jpeg";
|
|
110
135
|
}>>;
|
|
136
|
+
multiViewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
+
view: z.ZodEnum<{
|
|
138
|
+
left: "left";
|
|
139
|
+
right: "right";
|
|
140
|
+
back: "back";
|
|
141
|
+
top: "top";
|
|
142
|
+
bottom: "bottom";
|
|
143
|
+
left_front: "left_front";
|
|
144
|
+
right_front: "right_front";
|
|
145
|
+
}>;
|
|
146
|
+
imageBase64: z.ZodString;
|
|
147
|
+
mimeType: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
"image/png": "image/png";
|
|
149
|
+
"image/webp": "image/webp";
|
|
150
|
+
"image/jpeg": "image/jpeg";
|
|
151
|
+
}>>;
|
|
152
|
+
}, z.core.$strict>>>;
|
|
153
|
+
modelRef: z.ZodOptional<z.ZodString>;
|
|
154
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
glb: "glb";
|
|
156
|
+
obj: "obj";
|
|
157
|
+
stl: "stl";
|
|
158
|
+
fbx: "fbx";
|
|
159
|
+
usdz: "usdz";
|
|
160
|
+
}>>;
|
|
161
|
+
generateType: z.ZodOptional<z.ZodEnum<{
|
|
162
|
+
Normal: "Normal";
|
|
163
|
+
Geometry: "Geometry";
|
|
164
|
+
LowPoly: "LowPoly";
|
|
165
|
+
Sketch: "Sketch";
|
|
166
|
+
}>>;
|
|
167
|
+
faceCount: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
enablePBR: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
polygonType: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
triangle: "triangle";
|
|
171
|
+
quadrilateral: "quadrilateral";
|
|
172
|
+
}>>;
|
|
173
|
+
kind: z.ZodLiteral<"model">;
|
|
174
|
+
mode: z.ZodEnum<{
|
|
175
|
+
text: "text";
|
|
176
|
+
reference: "reference";
|
|
177
|
+
}>;
|
|
111
178
|
}, z.core.$strict>], "kind">;
|
|
112
179
|
export declare const assetGenerationEstimateInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
180
|
mode: z.ZodEnum<{
|
|
@@ -148,14 +215,23 @@ export declare const assetGenerationEstimateInputSchema: z.ZodDiscriminatedUnion
|
|
|
148
215
|
removeBackground: z.ZodOptional<z.ZodBoolean>;
|
|
149
216
|
kind: z.ZodLiteral<"animation">;
|
|
150
217
|
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
-
|
|
218
|
+
referenceImageCount: z.ZodOptional<z.ZodNumber>;
|
|
152
219
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
153
220
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
154
221
|
"16:9": "16:9";
|
|
155
222
|
"9:16": "9:16";
|
|
156
223
|
"1:1": "1:1";
|
|
157
|
-
"
|
|
224
|
+
"45:16": "45:16";
|
|
158
225
|
"3:4": "3:4";
|
|
226
|
+
"4:3": "4:3";
|
|
227
|
+
"2:3": "2:3";
|
|
228
|
+
"3:2": "3:2";
|
|
229
|
+
"21:9": "21:9";
|
|
230
|
+
}>>;
|
|
231
|
+
imageSize: z.ZodOptional<z.ZodEnum<{
|
|
232
|
+
"1K": "1K";
|
|
233
|
+
"2K": "2K";
|
|
234
|
+
"4K": "4K";
|
|
159
235
|
}>>;
|
|
160
236
|
width: z.ZodOptional<z.ZodNumber>;
|
|
161
237
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -165,7 +241,18 @@ export declare const assetGenerationEstimateInputSchema: z.ZodDiscriminatedUnion
|
|
|
165
241
|
jpeg: "jpeg";
|
|
166
242
|
}>>;
|
|
167
243
|
removeBackground: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
|
|
244
|
+
background: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
transparent: "transparent";
|
|
246
|
+
opaque: "opaque";
|
|
247
|
+
}>>;
|
|
248
|
+
fitMode: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
fill: "fill";
|
|
250
|
+
contain: "contain";
|
|
251
|
+
cover: "cover";
|
|
252
|
+
}>>;
|
|
253
|
+
paddingColor: z.ZodOptional<z.ZodString>;
|
|
254
|
+
imageCount: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
kind: z.ZodLiteral<"image">;
|
|
169
256
|
}, z.core.$strict>, z.ZodObject<{
|
|
170
257
|
kind: z.ZodLiteral<"audio">;
|
|
171
258
|
category: z.ZodEnum<{
|
|
@@ -177,9 +264,29 @@ export declare const assetGenerationEstimateInputSchema: z.ZodDiscriminatedUnion
|
|
|
177
264
|
style: z.ZodOptional<z.ZodString>;
|
|
178
265
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
179
266
|
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
-
kind: z.ZodLiteral<"model">;
|
|
181
|
-
modelRef: z.ZodOptional<z.ZodString>;
|
|
182
267
|
referenceImageCount: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
multiViewImageCount: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
modelRef: z.ZodOptional<z.ZodString>;
|
|
270
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
271
|
+
glb: "glb";
|
|
272
|
+
obj: "obj";
|
|
273
|
+
stl: "stl";
|
|
274
|
+
fbx: "fbx";
|
|
275
|
+
usdz: "usdz";
|
|
276
|
+
}>>;
|
|
277
|
+
generateType: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
Normal: "Normal";
|
|
279
|
+
Geometry: "Geometry";
|
|
280
|
+
LowPoly: "LowPoly";
|
|
281
|
+
Sketch: "Sketch";
|
|
282
|
+
}>>;
|
|
283
|
+
faceCount: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
enablePBR: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
polygonType: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
triangle: "triangle";
|
|
287
|
+
quadrilateral: "quadrilateral";
|
|
288
|
+
}>>;
|
|
289
|
+
kind: z.ZodLiteral<"model">;
|
|
183
290
|
}, z.core.$strict>], "kind">;
|
|
184
291
|
export declare const assetGenerationEstimateSchema: z.ZodObject<{
|
|
185
292
|
status: z.ZodEnum<{
|
|
@@ -265,13 +372,56 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
265
372
|
workspaceId: z.ZodString;
|
|
266
373
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
267
374
|
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
375
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
376
|
+
kind: z.ZodLiteral<"web">;
|
|
377
|
+
tool: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
"generate-image": "generate-image";
|
|
379
|
+
"generate-sfx": "generate-sfx";
|
|
380
|
+
"generate-bgm": "generate-bgm";
|
|
381
|
+
"generate-3d": "generate-3d";
|
|
382
|
+
"generate-texture": "generate-texture";
|
|
383
|
+
"generate-motion": "generate-motion";
|
|
384
|
+
"generate-avatar": "generate-avatar";
|
|
385
|
+
"assets generate": "assets generate";
|
|
386
|
+
}>>;
|
|
387
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
388
|
+
kind: z.ZodLiteral<"cli">;
|
|
389
|
+
tool: z.ZodOptional<z.ZodEnum<{
|
|
390
|
+
"generate-image": "generate-image";
|
|
391
|
+
"generate-sfx": "generate-sfx";
|
|
392
|
+
"generate-bgm": "generate-bgm";
|
|
393
|
+
"generate-3d": "generate-3d";
|
|
394
|
+
"generate-texture": "generate-texture";
|
|
395
|
+
"generate-motion": "generate-motion";
|
|
396
|
+
"generate-avatar": "generate-avatar";
|
|
397
|
+
"assets generate": "assets generate";
|
|
398
|
+
}>>;
|
|
399
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
400
|
+
kind: z.ZodLiteral<"agent">;
|
|
401
|
+
tool: z.ZodOptional<z.ZodEnum<{
|
|
402
|
+
"generate-image": "generate-image";
|
|
403
|
+
"generate-sfx": "generate-sfx";
|
|
404
|
+
"generate-bgm": "generate-bgm";
|
|
405
|
+
"generate-3d": "generate-3d";
|
|
406
|
+
"generate-texture": "generate-texture";
|
|
407
|
+
"generate-motion": "generate-motion";
|
|
408
|
+
"generate-avatar": "generate-avatar";
|
|
409
|
+
"assets generate": "assets generate";
|
|
410
|
+
}>>;
|
|
411
|
+
sessionId: z.ZodString;
|
|
412
|
+
operationId: z.ZodString;
|
|
413
|
+
nativeThreadId: z.ZodOptional<z.ZodString>;
|
|
414
|
+
nativeTurnId: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, z.core.$strict>], "kind">>;
|
|
416
|
+
legacyResultAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
268
418
|
kind: z.ZodEnum<{
|
|
269
419
|
animation: "animation";
|
|
270
420
|
audio: "audio";
|
|
271
421
|
model: "model";
|
|
422
|
+
image: "image";
|
|
272
423
|
sprite: "sprite";
|
|
273
424
|
video: "video";
|
|
274
|
-
image: "image";
|
|
275
425
|
}>;
|
|
276
426
|
prompt: z.ZodString;
|
|
277
427
|
status: z.ZodEnum<{
|
|
@@ -355,6 +505,26 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
355
505
|
size: z.ZodNumber;
|
|
356
506
|
contentHash: z.ZodString;
|
|
357
507
|
}, z.core.$strict>>;
|
|
508
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
name: z.ZodString;
|
|
510
|
+
mimeType: z.ZodString;
|
|
511
|
+
size: z.ZodNumber;
|
|
512
|
+
contentHash: z.ZodString;
|
|
513
|
+
fileId: z.ZodString;
|
|
514
|
+
}, z.core.$strict>>;
|
|
515
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
516
|
+
name: z.ZodString;
|
|
517
|
+
mimeType: z.ZodString;
|
|
518
|
+
size: z.ZodNumber;
|
|
519
|
+
contentHash: z.ZodString;
|
|
520
|
+
fileId: z.ZodString;
|
|
521
|
+
}, z.core.$strict>>>;
|
|
522
|
+
outputSaves: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
523
|
+
path: z.ZodString;
|
|
524
|
+
operationId: z.ZodString;
|
|
525
|
+
savedAt: z.ZodString;
|
|
526
|
+
fileId: z.ZodString;
|
|
527
|
+
}, z.core.$strict>>>;
|
|
358
528
|
bundle: z.ZodOptional<z.ZodObject<{
|
|
359
529
|
files: z.ZodArray<z.ZodObject<{
|
|
360
530
|
fileId: z.ZodString;
|
|
@@ -421,6 +591,7 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
421
591
|
name: z.ZodString;
|
|
422
592
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
423
593
|
versionId: z.ZodOptional<z.ZodString>;
|
|
594
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
424
595
|
afterWorkspaceSave: z.ZodDefault<z.ZodBoolean>;
|
|
425
596
|
}, z.core.$strict>;
|
|
426
597
|
sourceHash: z.ZodString;
|
|
@@ -458,13 +629,56 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
458
629
|
workspaceId: z.ZodString;
|
|
459
630
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
460
631
|
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
632
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
633
|
+
kind: z.ZodLiteral<"web">;
|
|
634
|
+
tool: z.ZodOptional<z.ZodEnum<{
|
|
635
|
+
"generate-image": "generate-image";
|
|
636
|
+
"generate-sfx": "generate-sfx";
|
|
637
|
+
"generate-bgm": "generate-bgm";
|
|
638
|
+
"generate-3d": "generate-3d";
|
|
639
|
+
"generate-texture": "generate-texture";
|
|
640
|
+
"generate-motion": "generate-motion";
|
|
641
|
+
"generate-avatar": "generate-avatar";
|
|
642
|
+
"assets generate": "assets generate";
|
|
643
|
+
}>>;
|
|
644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
645
|
+
kind: z.ZodLiteral<"cli">;
|
|
646
|
+
tool: z.ZodOptional<z.ZodEnum<{
|
|
647
|
+
"generate-image": "generate-image";
|
|
648
|
+
"generate-sfx": "generate-sfx";
|
|
649
|
+
"generate-bgm": "generate-bgm";
|
|
650
|
+
"generate-3d": "generate-3d";
|
|
651
|
+
"generate-texture": "generate-texture";
|
|
652
|
+
"generate-motion": "generate-motion";
|
|
653
|
+
"generate-avatar": "generate-avatar";
|
|
654
|
+
"assets generate": "assets generate";
|
|
655
|
+
}>>;
|
|
656
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
657
|
+
kind: z.ZodLiteral<"agent">;
|
|
658
|
+
tool: z.ZodOptional<z.ZodEnum<{
|
|
659
|
+
"generate-image": "generate-image";
|
|
660
|
+
"generate-sfx": "generate-sfx";
|
|
661
|
+
"generate-bgm": "generate-bgm";
|
|
662
|
+
"generate-3d": "generate-3d";
|
|
663
|
+
"generate-texture": "generate-texture";
|
|
664
|
+
"generate-motion": "generate-motion";
|
|
665
|
+
"generate-avatar": "generate-avatar";
|
|
666
|
+
"assets generate": "assets generate";
|
|
667
|
+
}>>;
|
|
668
|
+
sessionId: z.ZodString;
|
|
669
|
+
operationId: z.ZodString;
|
|
670
|
+
nativeThreadId: z.ZodOptional<z.ZodString>;
|
|
671
|
+
nativeTurnId: z.ZodOptional<z.ZodString>;
|
|
672
|
+
}, z.core.$strict>], "kind">>;
|
|
673
|
+
legacyResultAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
674
|
+
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
461
675
|
kind: z.ZodEnum<{
|
|
462
676
|
animation: "animation";
|
|
463
677
|
audio: "audio";
|
|
464
678
|
model: "model";
|
|
679
|
+
image: "image";
|
|
465
680
|
sprite: "sprite";
|
|
466
681
|
video: "video";
|
|
467
|
-
image: "image";
|
|
468
682
|
}>;
|
|
469
683
|
prompt: z.ZodString;
|
|
470
684
|
status: z.ZodEnum<{
|
|
@@ -548,6 +762,26 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
548
762
|
size: z.ZodNumber;
|
|
549
763
|
contentHash: z.ZodString;
|
|
550
764
|
}, z.core.$strict>>;
|
|
765
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
766
|
+
name: z.ZodString;
|
|
767
|
+
mimeType: z.ZodString;
|
|
768
|
+
size: z.ZodNumber;
|
|
769
|
+
contentHash: z.ZodString;
|
|
770
|
+
fileId: z.ZodString;
|
|
771
|
+
}, z.core.$strict>>;
|
|
772
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
773
|
+
name: z.ZodString;
|
|
774
|
+
mimeType: z.ZodString;
|
|
775
|
+
size: z.ZodNumber;
|
|
776
|
+
contentHash: z.ZodString;
|
|
777
|
+
fileId: z.ZodString;
|
|
778
|
+
}, z.core.$strict>>>;
|
|
779
|
+
outputSaves: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
780
|
+
path: z.ZodString;
|
|
781
|
+
operationId: z.ZodString;
|
|
782
|
+
savedAt: z.ZodString;
|
|
783
|
+
fileId: z.ZodString;
|
|
784
|
+
}, z.core.$strict>>>;
|
|
551
785
|
bundle: z.ZodOptional<z.ZodObject<{
|
|
552
786
|
files: z.ZodArray<z.ZodObject<{
|
|
553
787
|
fileId: z.ZodString;
|
|
@@ -614,6 +848,7 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
614
848
|
name: z.ZodString;
|
|
615
849
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
616
850
|
versionId: z.ZodOptional<z.ZodString>;
|
|
851
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
617
852
|
afterWorkspaceSave: z.ZodDefault<z.ZodBoolean>;
|
|
618
853
|
}, z.core.$strict>;
|
|
619
854
|
sourceHash: z.ZodString;
|
|
@@ -706,15 +941,36 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
706
941
|
removeBackground: z.ZodOptional<z.ZodBoolean>;
|
|
707
942
|
kind: z.ZodLiteral<"animation">;
|
|
708
943
|
}, z.core.$strict>, z.ZodObject<{
|
|
709
|
-
|
|
710
|
-
|
|
944
|
+
referenceImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
945
|
+
base64: z.ZodString;
|
|
946
|
+
mimeType: z.ZodEnum<{
|
|
947
|
+
"image/png": "image/png";
|
|
948
|
+
"image/webp": "image/webp";
|
|
949
|
+
"image/jpeg": "image/jpeg";
|
|
950
|
+
}>;
|
|
951
|
+
}, z.core.$strict>>>;
|
|
952
|
+
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
953
|
+
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
954
|
+
"image/png": "image/png";
|
|
955
|
+
"image/webp": "image/webp";
|
|
956
|
+
"image/jpeg": "image/jpeg";
|
|
957
|
+
}>>;
|
|
711
958
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
712
959
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
713
960
|
"16:9": "16:9";
|
|
714
961
|
"9:16": "9:16";
|
|
715
962
|
"1:1": "1:1";
|
|
716
|
-
"
|
|
963
|
+
"45:16": "45:16";
|
|
717
964
|
"3:4": "3:4";
|
|
965
|
+
"4:3": "4:3";
|
|
966
|
+
"2:3": "2:3";
|
|
967
|
+
"3:2": "3:2";
|
|
968
|
+
"21:9": "21:9";
|
|
969
|
+
}>>;
|
|
970
|
+
imageSize: z.ZodOptional<z.ZodEnum<{
|
|
971
|
+
"1K": "1K";
|
|
972
|
+
"2K": "2K";
|
|
973
|
+
"4K": "4K";
|
|
718
974
|
}>>;
|
|
719
975
|
width: z.ZodOptional<z.ZodNumber>;
|
|
720
976
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -724,12 +980,19 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
724
980
|
jpeg: "jpeg";
|
|
725
981
|
}>>;
|
|
726
982
|
removeBackground: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
"image/webp": "image/webp";
|
|
731
|
-
"image/jpeg": "image/jpeg";
|
|
983
|
+
background: z.ZodOptional<z.ZodEnum<{
|
|
984
|
+
transparent: "transparent";
|
|
985
|
+
opaque: "opaque";
|
|
732
986
|
}>>;
|
|
987
|
+
fitMode: z.ZodOptional<z.ZodEnum<{
|
|
988
|
+
fill: "fill";
|
|
989
|
+
contain: "contain";
|
|
990
|
+
cover: "cover";
|
|
991
|
+
}>>;
|
|
992
|
+
paddingColor: z.ZodOptional<z.ZodString>;
|
|
993
|
+
imageCount: z.ZodOptional<z.ZodNumber>;
|
|
994
|
+
kind: z.ZodLiteral<"image">;
|
|
995
|
+
prompt: z.ZodString;
|
|
733
996
|
}, z.core.$strict>, z.ZodObject<{
|
|
734
997
|
kind: z.ZodLiteral<"audio">;
|
|
735
998
|
category: z.ZodEnum<{
|
|
@@ -742,12 +1005,6 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
742
1005
|
style: z.ZodOptional<z.ZodString>;
|
|
743
1006
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
744
1007
|
}, z.core.$strict>, z.ZodObject<{
|
|
745
|
-
kind: z.ZodLiteral<"model">;
|
|
746
|
-
mode: z.ZodEnum<{
|
|
747
|
-
text: "text";
|
|
748
|
-
reference: "reference";
|
|
749
|
-
}>;
|
|
750
|
-
modelRef: z.ZodOptional<z.ZodString>;
|
|
751
1008
|
prompt: z.ZodOptional<z.ZodString>;
|
|
752
1009
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
753
1010
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -755,11 +1012,54 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
755
1012
|
"image/webp": "image/webp";
|
|
756
1013
|
"image/jpeg": "image/jpeg";
|
|
757
1014
|
}>>;
|
|
1015
|
+
multiViewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1016
|
+
view: z.ZodEnum<{
|
|
1017
|
+
left: "left";
|
|
1018
|
+
right: "right";
|
|
1019
|
+
back: "back";
|
|
1020
|
+
top: "top";
|
|
1021
|
+
bottom: "bottom";
|
|
1022
|
+
left_front: "left_front";
|
|
1023
|
+
right_front: "right_front";
|
|
1024
|
+
}>;
|
|
1025
|
+
imageBase64: z.ZodString;
|
|
1026
|
+
mimeType: z.ZodOptional<z.ZodEnum<{
|
|
1027
|
+
"image/png": "image/png";
|
|
1028
|
+
"image/webp": "image/webp";
|
|
1029
|
+
"image/jpeg": "image/jpeg";
|
|
1030
|
+
}>>;
|
|
1031
|
+
}, z.core.$strict>>>;
|
|
1032
|
+
modelRef: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
1034
|
+
glb: "glb";
|
|
1035
|
+
obj: "obj";
|
|
1036
|
+
stl: "stl";
|
|
1037
|
+
fbx: "fbx";
|
|
1038
|
+
usdz: "usdz";
|
|
1039
|
+
}>>;
|
|
1040
|
+
generateType: z.ZodOptional<z.ZodEnum<{
|
|
1041
|
+
Normal: "Normal";
|
|
1042
|
+
Geometry: "Geometry";
|
|
1043
|
+
LowPoly: "LowPoly";
|
|
1044
|
+
Sketch: "Sketch";
|
|
1045
|
+
}>>;
|
|
1046
|
+
faceCount: z.ZodOptional<z.ZodNumber>;
|
|
1047
|
+
enablePBR: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
+
polygonType: z.ZodOptional<z.ZodEnum<{
|
|
1049
|
+
triangle: "triangle";
|
|
1050
|
+
quadrilateral: "quadrilateral";
|
|
1051
|
+
}>>;
|
|
1052
|
+
kind: z.ZodLiteral<"model">;
|
|
1053
|
+
mode: z.ZodEnum<{
|
|
1054
|
+
text: "text";
|
|
1055
|
+
reference: "reference";
|
|
1056
|
+
}>;
|
|
758
1057
|
}, z.core.$strict>], "kind">;
|
|
759
1058
|
}, z.core.$strict>;
|
|
760
1059
|
export declare const assetGenerationTaskSavedSchema: z.ZodObject<{
|
|
761
1060
|
operationId: z.ZodString;
|
|
762
1061
|
path: z.ZodString;
|
|
1062
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
763
1063
|
}, z.core.$strict>;
|
|
764
1064
|
export declare const assetGenerationModelJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
765
1065
|
configId: z.ZodString;
|
|
@@ -771,6 +1071,13 @@ export declare const assetGenerationModelJobSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
771
1071
|
"hy-3d-3.1": "hy-3d-3.1";
|
|
772
1072
|
"hy-3d-express": "hy-3d-express";
|
|
773
1073
|
}>;
|
|
1074
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
1075
|
+
glb: "glb";
|
|
1076
|
+
obj: "obj";
|
|
1077
|
+
stl: "stl";
|
|
1078
|
+
fbx: "fbx";
|
|
1079
|
+
usdz: "usdz";
|
|
1080
|
+
}>>;
|
|
774
1081
|
}, z.core.$strict>, z.ZodObject<{
|
|
775
1082
|
configId: z.ZodString;
|
|
776
1083
|
jobId: z.ZodString;
|
|
@@ -780,6 +1087,7 @@ export declare const assetGenerationModelJobSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
780
1087
|
"meshy/meshy-t2": "meshy/meshy-t2";
|
|
781
1088
|
"tripo3d/v3.1-20260211": "tripo3d/v3.1-20260211";
|
|
782
1089
|
}>;
|
|
1090
|
+
outputFormat: z.ZodOptional<z.ZodLiteral<"glb">>;
|
|
783
1091
|
}, z.core.$strict>], "provider">;
|
|
784
1092
|
export declare const assetGenerationModelQuerySchema: z.ZodObject<{
|
|
785
1093
|
status: z.ZodEnum<{
|
|
@@ -838,6 +1146,13 @@ export declare const assetGenerationProviderJobSchema: z.ZodUnion<readonly [z.Zo
|
|
|
838
1146
|
"hy-3d-3.1": "hy-3d-3.1";
|
|
839
1147
|
"hy-3d-express": "hy-3d-express";
|
|
840
1148
|
}>;
|
|
1149
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
1150
|
+
glb: "glb";
|
|
1151
|
+
obj: "obj";
|
|
1152
|
+
stl: "stl";
|
|
1153
|
+
fbx: "fbx";
|
|
1154
|
+
usdz: "usdz";
|
|
1155
|
+
}>>;
|
|
841
1156
|
}, z.core.$strict>, z.ZodObject<{
|
|
842
1157
|
configId: z.ZodString;
|
|
843
1158
|
jobId: z.ZodString;
|
|
@@ -847,6 +1162,7 @@ export declare const assetGenerationProviderJobSchema: z.ZodUnion<readonly [z.Zo
|
|
|
847
1162
|
"meshy/meshy-t2": "meshy/meshy-t2";
|
|
848
1163
|
"tripo3d/v3.1-20260211": "tripo3d/v3.1-20260211";
|
|
849
1164
|
}>;
|
|
1165
|
+
outputFormat: z.ZodOptional<z.ZodLiteral<"glb">>;
|
|
850
1166
|
}, z.core.$strict>], "provider">, z.ZodObject<{
|
|
851
1167
|
provider: z.ZodLiteral<"mulerouter">;
|
|
852
1168
|
model: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-generation.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAA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