@playcraft/common 0.1.66 → 0.1.68
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/agent-tools/replica-validation.d.ts +14 -14
- package/dist/agent-tools/video-model-proxy.d.ts +1 -1
- package/dist/agent-tools/video-replication.d.ts +4 -4
- package/dist/audio-library-stream.d.ts +65 -0
- package/dist/audio-library-stream.d.ts.map +1 -0
- package/dist/audio-library-stream.js +87 -0
- package/dist/audio-library-stream.js.map +1 -0
- package/dist/cloud-workspace/runtime/agent-command.d.ts +3 -3
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js +1 -1
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-read.d.ts +6 -6
- package/dist/cloud-workspace/runtime/animation-editor.d.ts +27 -27
- package/dist/cloud-workspace/runtime/animation-quality.d.ts +1 -1
- package/dist/cloud-workspace/runtime/artifacts.d.ts +11 -11
- package/dist/cloud-workspace/runtime/asset-generation-bundle.d.ts +2 -2
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +58 -10
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.d.ts +134 -37
- package/dist/cloud-workspace/runtime/asset-generation.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.js +24 -4
- package/dist/cloud-workspace/runtime/asset-generation.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-import.d.ts +31 -1
- package/dist/cloud-workspace/runtime/asset-library-import.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-save.d.ts +12 -12
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts +13 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js +90 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts +664 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js +98 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-delivery.d.ts +75 -0
- package/dist/cloud-workspace/runtime/audio-delivery.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-delivery.js +122 -0
- package/dist/cloud-workspace/runtime/audio-delivery.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts +127 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.js +293 -0
- package/dist/cloud-workspace/runtime/audio-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.d.ts +68 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.js +120 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts +25 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.js +21 -0
- package/dist/cloud-workspace/runtime/audio-export.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-hybrid-player.d.ts +22 -0
- package/dist/cloud-workspace/runtime/audio-hybrid-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-hybrid-player.js +456 -0
- package/dist/cloud-workspace/runtime/audio-hybrid-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-library.d.ts +418 -0
- package/dist/cloud-workspace/runtime/audio-library.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-library.js +155 -0
- package/dist/cloud-workspace/runtime/audio-library.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts +18 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.js +98 -0
- package/dist/cloud-workspace/runtime/audio-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.d.ts +31 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.js +178 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts +38 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js +342 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/batch-runs.d.ts +2 -2
- package/dist/cloud-workspace/runtime/chat-realtime.d.ts +2 -2
- package/dist/cloud-workspace/runtime/composer-context.d.ts +122 -0
- package/dist/cloud-workspace/runtime/composer-context.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/composer-context.js +2 -0
- package/dist/cloud-workspace/runtime/composer-context.js.map +1 -1
- package/dist/cloud-workspace/runtime/delivery.d.ts +4 -4
- package/dist/cloud-workspace/runtime/events.d.ts +4 -4
- package/dist/cloud-workspace/runtime/execution-admission.d.ts +2 -2
- package/dist/cloud-workspace/runtime/execution-context.d.ts +112 -0
- package/dist/cloud-workspace/runtime/execution-context.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/execution-context.js +62 -0
- package/dist/cloud-workspace/runtime/execution-context.js.map +1 -0
- package/dist/cloud-workspace/runtime/index.d.ts +19 -0
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +19 -0
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts +331 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js +172 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts +125 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js +63 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts +260 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js +530 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts +115 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js +107 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts +12 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js +110 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts +30 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js +627 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts +621 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js +409 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts +11 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js +128 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts +7 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.js +7 -0
- package/dist/cloud-workspace/runtime/level-editor.js.map +1 -0
- package/dist/cloud-workspace/runtime/library-attachments.d.ts +60 -0
- package/dist/cloud-workspace/runtime/library-attachments.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/library-attachments.js +4 -0
- package/dist/cloud-workspace/runtime/library-attachments.js.map +1 -1
- package/dist/cloud-workspace/runtime/model-build-inputs.d.ts +1 -1
- package/dist/cloud-workspace/runtime/model-production.d.ts +105 -87
- package/dist/cloud-workspace/runtime/model-production.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/model-quality.d.ts +79 -79
- package/dist/cloud-workspace/runtime/model-validation.d.ts +8 -8
- package/dist/cloud-workspace/runtime/operations.d.ts +417 -31
- package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/operations.js +33 -6
- package/dist/cloud-workspace/runtime/operations.js.map +1 -1
- package/dist/cloud-workspace/runtime/parameter-agent.d.ts +4 -4
- package/dist/cloud-workspace/runtime/previews.d.ts +5 -5
- package/dist/cloud-workspace/runtime/score-document.d.ts +285 -0
- package/dist/cloud-workspace/runtime/score-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-document.js +114 -0
- package/dist/cloud-workspace/runtime/score-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts +39 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.js +180 -0
- package/dist/cloud-workspace/runtime/score-editing.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts +4 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.js +74 -0
- package/dist/cloud-workspace/runtime/score-merging.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts +7 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.js +226 -0
- package/dist/cloud-workspace/runtime/score-midi.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts +51 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js +388 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/skills.d.ts +2 -2
- package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +2 -2
- package/dist/cloud-workspace/runtime/workspace-ui.d.ts +10 -10
- package/dist/project-skills/local-snapshot.d.ts +5 -3
- package/dist/project-skills/local-snapshot.d.ts.map +1 -1
- package/dist/project-skills/local-snapshot.js +15 -4
- package/dist/project-skills/local-snapshot.js.map +1 -1
- package/dist/project-skills/protocol.d.ts +7 -3
- package/dist/project-skills/protocol.d.ts.map +1 -1
- package/dist/project-skills/protocol.js +19 -1
- package/dist/project-skills/protocol.js.map +1 -1
- package/dist/project-skills/types.d.ts +13 -0
- package/dist/project-skills/types.d.ts.map +1 -1
- package/dist/project-skills/types.js.map +1 -1
- package/package.json +5 -1
|
@@ -9,8 +9,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
9
9
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
10
10
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
11
11
|
"image/png": "image/png";
|
|
12
|
-
"image/jpeg": "image/jpeg";
|
|
13
12
|
"image/webp": "image/webp";
|
|
13
|
+
"image/jpeg": "image/jpeg";
|
|
14
14
|
}>>;
|
|
15
15
|
mode: z.ZodEnum<{
|
|
16
16
|
text: "text";
|
|
@@ -34,8 +34,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
34
34
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
35
35
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
36
36
|
"image/png": "image/png";
|
|
37
|
-
"image/jpeg": "image/jpeg";
|
|
38
37
|
"image/webp": "image/webp";
|
|
38
|
+
"image/jpeg": "image/jpeg";
|
|
39
39
|
}>>;
|
|
40
40
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
41
41
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -50,8 +50,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
50
50
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
51
51
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
52
52
|
"image/png": "image/png";
|
|
53
|
-
"image/jpeg": "image/jpeg";
|
|
54
53
|
"image/webp": "image/webp";
|
|
54
|
+
"image/jpeg": "image/jpeg";
|
|
55
55
|
}>>;
|
|
56
56
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
57
57
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -66,15 +66,15 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
66
66
|
base64: z.ZodString;
|
|
67
67
|
mimeType: z.ZodEnum<{
|
|
68
68
|
"image/png": "image/png";
|
|
69
|
-
"image/jpeg": "image/jpeg";
|
|
70
69
|
"image/webp": "image/webp";
|
|
70
|
+
"image/jpeg": "image/jpeg";
|
|
71
71
|
}>;
|
|
72
72
|
}, z.core.$strict>>>;
|
|
73
73
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
74
74
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
75
75
|
"image/png": "image/png";
|
|
76
|
-
"image/jpeg": "image/jpeg";
|
|
77
76
|
"image/webp": "image/webp";
|
|
77
|
+
"image/jpeg": "image/jpeg";
|
|
78
78
|
}>>;
|
|
79
79
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
80
80
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
@@ -123,6 +123,11 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
123
123
|
description: z.ZodString;
|
|
124
124
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
125
125
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
"synth-sfx": "synth-sfx";
|
|
128
|
+
score: "score";
|
|
129
|
+
}>>;
|
|
130
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
126
131
|
style: z.ZodOptional<z.ZodString>;
|
|
127
132
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
128
133
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -130,14 +135,14 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
130
135
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
131
136
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
132
137
|
"image/png": "image/png";
|
|
133
|
-
"image/jpeg": "image/jpeg";
|
|
134
138
|
"image/webp": "image/webp";
|
|
139
|
+
"image/jpeg": "image/jpeg";
|
|
135
140
|
}>>;
|
|
136
141
|
multiViewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
142
|
view: z.ZodEnum<{
|
|
143
|
+
left: "left";
|
|
138
144
|
right: "right";
|
|
139
145
|
back: "back";
|
|
140
|
-
left: "left";
|
|
141
146
|
top: "top";
|
|
142
147
|
bottom: "bottom";
|
|
143
148
|
left_front: "left_front";
|
|
@@ -146,8 +151,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
146
151
|
imageBase64: z.ZodString;
|
|
147
152
|
mimeType: z.ZodOptional<z.ZodEnum<{
|
|
148
153
|
"image/png": "image/png";
|
|
149
|
-
"image/jpeg": "image/jpeg";
|
|
150
154
|
"image/webp": "image/webp";
|
|
155
|
+
"image/jpeg": "image/jpeg";
|
|
151
156
|
}>>;
|
|
152
157
|
}, z.core.$strict>>>;
|
|
153
158
|
modelRef: z.ZodOptional<z.ZodString>;
|
|
@@ -260,6 +265,11 @@ export declare const assetGenerationEstimateInputSchema: z.ZodDiscriminatedUnion
|
|
|
260
265
|
bgm: "bgm";
|
|
261
266
|
}>;
|
|
262
267
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
"synth-sfx": "synth-sfx";
|
|
270
|
+
score: "score";
|
|
271
|
+
}>>;
|
|
272
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
263
273
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
264
274
|
style: z.ZodOptional<z.ZodString>;
|
|
265
275
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
@@ -331,9 +341,9 @@ export declare const assetGenerationUsageAttemptSchema: z.ZodObject<{
|
|
|
331
341
|
export declare const assetGenerationUsageSchema: z.ZodObject<{
|
|
332
342
|
status: z.ZodEnum<{
|
|
333
343
|
pending: "pending";
|
|
334
|
-
unavailable: "unavailable";
|
|
335
344
|
recorded: "recorded";
|
|
336
345
|
partial: "partial";
|
|
346
|
+
unavailable: "unavailable";
|
|
337
347
|
}>;
|
|
338
348
|
currency: z.ZodLiteral<"USD">;
|
|
339
349
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -368,6 +378,47 @@ export declare const assetGenerationUsageSchema: z.ZodObject<{
|
|
|
368
378
|
}, z.core.$strict>;
|
|
369
379
|
export declare const ASSET_GENERATION_TASK_STATUSES: readonly ["queued", "running", "cancel_requested", "awaiting_adoption", "saved", "failed", "cancelled", "interrupted"];
|
|
370
380
|
export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
381
|
+
audioResult: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
version: z.ZodLiteral<1>;
|
|
383
|
+
representation: z.ZodEnum<{
|
|
384
|
+
"synth-sfx": "synth-sfx";
|
|
385
|
+
score: "score";
|
|
386
|
+
}>;
|
|
387
|
+
requestedCount: z.ZodNumber;
|
|
388
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
389
|
+
candidateId: z.ZodString;
|
|
390
|
+
candidateRevision: z.ZodNumber;
|
|
391
|
+
sourceContentHash: z.ZodString;
|
|
392
|
+
sourceRenderHash: z.ZodString;
|
|
393
|
+
renderState: z.ZodEnum<{
|
|
394
|
+
pending: "pending";
|
|
395
|
+
ready: "ready";
|
|
396
|
+
failed: "failed";
|
|
397
|
+
running: "running";
|
|
398
|
+
cancelled: "cancelled";
|
|
399
|
+
}>;
|
|
400
|
+
renderError: z.ZodOptional<z.ZodString>;
|
|
401
|
+
name: z.ZodOptional<z.ZodString>;
|
|
402
|
+
sourceFile: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
name: z.ZodString;
|
|
404
|
+
mimeType: z.ZodLiteral<"application/json">;
|
|
405
|
+
size: z.ZodNumber;
|
|
406
|
+
contentHash: z.ZodString;
|
|
407
|
+
}, z.core.$strict>>;
|
|
408
|
+
audition: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
mimeType: z.ZodLiteral<"audio/wav">;
|
|
410
|
+
size: z.ZodNumber;
|
|
411
|
+
contentHash: z.ZodString;
|
|
412
|
+
renderKey: z.ZodOptional<z.ZodString>;
|
|
413
|
+
pcmContentHash: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, z.core.$strict>>;
|
|
415
|
+
saved: z.ZodOptional<z.ZodObject<{
|
|
416
|
+
path: z.ZodString;
|
|
417
|
+
operationId: z.ZodString;
|
|
418
|
+
savedAt: z.ZodString;
|
|
419
|
+
}, z.core.$strict>>;
|
|
420
|
+
}, z.core.$strict>>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
371
422
|
taskId: z.ZodString;
|
|
372
423
|
workspaceId: z.ZodString;
|
|
373
424
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
@@ -416,23 +467,23 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
416
467
|
legacyResultAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
417
468
|
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
418
469
|
kind: z.ZodEnum<{
|
|
419
|
-
image: "image";
|
|
420
|
-
video: "video";
|
|
421
|
-
model: "model";
|
|
422
470
|
audio: "audio";
|
|
423
471
|
animation: "animation";
|
|
472
|
+
model: "model";
|
|
473
|
+
image: "image";
|
|
424
474
|
sprite: "sprite";
|
|
475
|
+
video: "video";
|
|
425
476
|
}>;
|
|
426
477
|
prompt: z.ZodString;
|
|
427
478
|
status: z.ZodEnum<{
|
|
428
479
|
failed: "failed";
|
|
429
480
|
running: "running";
|
|
430
|
-
interrupted: "interrupted";
|
|
431
481
|
cancelled: "cancelled";
|
|
432
482
|
saved: "saved";
|
|
433
483
|
queued: "queued";
|
|
434
484
|
cancel_requested: "cancel_requested";
|
|
435
485
|
awaiting_adoption: "awaiting_adoption";
|
|
486
|
+
interrupted: "interrupted";
|
|
436
487
|
}>;
|
|
437
488
|
createdAt: z.ZodString;
|
|
438
489
|
updatedAt: z.ZodString;
|
|
@@ -464,9 +515,9 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
464
515
|
usage: z.ZodObject<{
|
|
465
516
|
status: z.ZodEnum<{
|
|
466
517
|
pending: "pending";
|
|
467
|
-
unavailable: "unavailable";
|
|
468
518
|
recorded: "recorded";
|
|
469
519
|
partial: "partial";
|
|
520
|
+
unavailable: "unavailable";
|
|
470
521
|
}>;
|
|
471
522
|
currency: z.ZodLiteral<"USD">;
|
|
472
523
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -530,8 +581,8 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
530
581
|
fileId: z.ZodString;
|
|
531
582
|
path: z.ZodString;
|
|
532
583
|
mimeType: z.ZodEnum<{
|
|
533
|
-
"image/png": "image/png";
|
|
534
584
|
"application/json": "application/json";
|
|
585
|
+
"image/png": "image/png";
|
|
535
586
|
"image/webp": "image/webp";
|
|
536
587
|
}>;
|
|
537
588
|
size: z.ZodNumber;
|
|
@@ -543,8 +594,8 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
543
594
|
framePaths: z.ZodArray<z.ZodString>;
|
|
544
595
|
frameDurationsMs: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
545
596
|
loopMode: z.ZodOptional<z.ZodEnum<{
|
|
546
|
-
once: "once";
|
|
547
597
|
loop: "loop";
|
|
598
|
+
once: "once";
|
|
548
599
|
pingpong: "pingpong";
|
|
549
600
|
}>>;
|
|
550
601
|
fps: z.ZodNumber;
|
|
@@ -599,8 +650,8 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
599
650
|
status: z.ZodEnum<{
|
|
600
651
|
failed: "failed";
|
|
601
652
|
saved: "saved";
|
|
602
|
-
waiting_workspace: "waiting_workspace";
|
|
603
653
|
queued: "queued";
|
|
654
|
+
waiting_workspace: "waiting_workspace";
|
|
604
655
|
saving: "saving";
|
|
605
656
|
}>;
|
|
606
657
|
createdAt: z.ZodString;
|
|
@@ -625,6 +676,47 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
625
676
|
}, z.core.$strict>;
|
|
626
677
|
export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
627
678
|
tasks: z.ZodArray<z.ZodObject<{
|
|
679
|
+
audioResult: z.ZodOptional<z.ZodObject<{
|
|
680
|
+
version: z.ZodLiteral<1>;
|
|
681
|
+
representation: z.ZodEnum<{
|
|
682
|
+
"synth-sfx": "synth-sfx";
|
|
683
|
+
score: "score";
|
|
684
|
+
}>;
|
|
685
|
+
requestedCount: z.ZodNumber;
|
|
686
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
687
|
+
candidateId: z.ZodString;
|
|
688
|
+
candidateRevision: z.ZodNumber;
|
|
689
|
+
sourceContentHash: z.ZodString;
|
|
690
|
+
sourceRenderHash: z.ZodString;
|
|
691
|
+
renderState: z.ZodEnum<{
|
|
692
|
+
pending: "pending";
|
|
693
|
+
ready: "ready";
|
|
694
|
+
failed: "failed";
|
|
695
|
+
running: "running";
|
|
696
|
+
cancelled: "cancelled";
|
|
697
|
+
}>;
|
|
698
|
+
renderError: z.ZodOptional<z.ZodString>;
|
|
699
|
+
name: z.ZodOptional<z.ZodString>;
|
|
700
|
+
sourceFile: z.ZodOptional<z.ZodObject<{
|
|
701
|
+
name: z.ZodString;
|
|
702
|
+
mimeType: z.ZodLiteral<"application/json">;
|
|
703
|
+
size: z.ZodNumber;
|
|
704
|
+
contentHash: z.ZodString;
|
|
705
|
+
}, z.core.$strict>>;
|
|
706
|
+
audition: z.ZodOptional<z.ZodObject<{
|
|
707
|
+
mimeType: z.ZodLiteral<"audio/wav">;
|
|
708
|
+
size: z.ZodNumber;
|
|
709
|
+
contentHash: z.ZodString;
|
|
710
|
+
renderKey: z.ZodOptional<z.ZodString>;
|
|
711
|
+
pcmContentHash: z.ZodOptional<z.ZodString>;
|
|
712
|
+
}, z.core.$strict>>;
|
|
713
|
+
saved: z.ZodOptional<z.ZodObject<{
|
|
714
|
+
path: z.ZodString;
|
|
715
|
+
operationId: z.ZodString;
|
|
716
|
+
savedAt: z.ZodString;
|
|
717
|
+
}, z.core.$strict>>;
|
|
718
|
+
}, z.core.$strict>>;
|
|
719
|
+
}, z.core.$strict>>;
|
|
628
720
|
taskId: z.ZodString;
|
|
629
721
|
workspaceId: z.ZodString;
|
|
630
722
|
directoryName: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"root">]>;
|
|
@@ -673,23 +765,23 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
673
765
|
legacyResultAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
674
766
|
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
675
767
|
kind: z.ZodEnum<{
|
|
676
|
-
image: "image";
|
|
677
|
-
video: "video";
|
|
678
|
-
model: "model";
|
|
679
768
|
audio: "audio";
|
|
680
769
|
animation: "animation";
|
|
770
|
+
model: "model";
|
|
771
|
+
image: "image";
|
|
681
772
|
sprite: "sprite";
|
|
773
|
+
video: "video";
|
|
682
774
|
}>;
|
|
683
775
|
prompt: z.ZodString;
|
|
684
776
|
status: z.ZodEnum<{
|
|
685
777
|
failed: "failed";
|
|
686
778
|
running: "running";
|
|
687
|
-
interrupted: "interrupted";
|
|
688
779
|
cancelled: "cancelled";
|
|
689
780
|
saved: "saved";
|
|
690
781
|
queued: "queued";
|
|
691
782
|
cancel_requested: "cancel_requested";
|
|
692
783
|
awaiting_adoption: "awaiting_adoption";
|
|
784
|
+
interrupted: "interrupted";
|
|
693
785
|
}>;
|
|
694
786
|
createdAt: z.ZodString;
|
|
695
787
|
updatedAt: z.ZodString;
|
|
@@ -721,9 +813,9 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
721
813
|
usage: z.ZodObject<{
|
|
722
814
|
status: z.ZodEnum<{
|
|
723
815
|
pending: "pending";
|
|
724
|
-
unavailable: "unavailable";
|
|
725
816
|
recorded: "recorded";
|
|
726
817
|
partial: "partial";
|
|
818
|
+
unavailable: "unavailable";
|
|
727
819
|
}>;
|
|
728
820
|
currency: z.ZodLiteral<"USD">;
|
|
729
821
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -787,8 +879,8 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
787
879
|
fileId: z.ZodString;
|
|
788
880
|
path: z.ZodString;
|
|
789
881
|
mimeType: z.ZodEnum<{
|
|
790
|
-
"image/png": "image/png";
|
|
791
882
|
"application/json": "application/json";
|
|
883
|
+
"image/png": "image/png";
|
|
792
884
|
"image/webp": "image/webp";
|
|
793
885
|
}>;
|
|
794
886
|
size: z.ZodNumber;
|
|
@@ -800,8 +892,8 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
800
892
|
framePaths: z.ZodArray<z.ZodString>;
|
|
801
893
|
frameDurationsMs: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
802
894
|
loopMode: z.ZodOptional<z.ZodEnum<{
|
|
803
|
-
once: "once";
|
|
804
895
|
loop: "loop";
|
|
896
|
+
once: "once";
|
|
805
897
|
pingpong: "pingpong";
|
|
806
898
|
}>>;
|
|
807
899
|
fps: z.ZodNumber;
|
|
@@ -856,8 +948,8 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
856
948
|
status: z.ZodEnum<{
|
|
857
949
|
failed: "failed";
|
|
858
950
|
saved: "saved";
|
|
859
|
-
waiting_workspace: "waiting_workspace";
|
|
860
951
|
queued: "queued";
|
|
952
|
+
waiting_workspace: "waiting_workspace";
|
|
861
953
|
saving: "saving";
|
|
862
954
|
}>;
|
|
863
955
|
createdAt: z.ZodString;
|
|
@@ -888,8 +980,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
888
980
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
889
981
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
890
982
|
"image/png": "image/png";
|
|
891
|
-
"image/jpeg": "image/jpeg";
|
|
892
983
|
"image/webp": "image/webp";
|
|
984
|
+
"image/jpeg": "image/jpeg";
|
|
893
985
|
}>>;
|
|
894
986
|
mode: z.ZodEnum<{
|
|
895
987
|
text: "text";
|
|
@@ -913,8 +1005,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
913
1005
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
914
1006
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
915
1007
|
"image/png": "image/png";
|
|
916
|
-
"image/jpeg": "image/jpeg";
|
|
917
1008
|
"image/webp": "image/webp";
|
|
1009
|
+
"image/jpeg": "image/jpeg";
|
|
918
1010
|
}>>;
|
|
919
1011
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
920
1012
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -929,8 +1021,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
929
1021
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
930
1022
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
931
1023
|
"image/png": "image/png";
|
|
932
|
-
"image/jpeg": "image/jpeg";
|
|
933
1024
|
"image/webp": "image/webp";
|
|
1025
|
+
"image/jpeg": "image/jpeg";
|
|
934
1026
|
}>>;
|
|
935
1027
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
936
1028
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -945,15 +1037,15 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
945
1037
|
base64: z.ZodString;
|
|
946
1038
|
mimeType: z.ZodEnum<{
|
|
947
1039
|
"image/png": "image/png";
|
|
948
|
-
"image/jpeg": "image/jpeg";
|
|
949
1040
|
"image/webp": "image/webp";
|
|
1041
|
+
"image/jpeg": "image/jpeg";
|
|
950
1042
|
}>;
|
|
951
1043
|
}, z.core.$strict>>>;
|
|
952
1044
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
953
1045
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
954
1046
|
"image/png": "image/png";
|
|
955
|
-
"image/jpeg": "image/jpeg";
|
|
956
1047
|
"image/webp": "image/webp";
|
|
1048
|
+
"image/jpeg": "image/jpeg";
|
|
957
1049
|
}>>;
|
|
958
1050
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
959
1051
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1002,6 +1094,11 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1002
1094
|
description: z.ZodString;
|
|
1003
1095
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
1004
1096
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
1097
|
+
representation: z.ZodOptional<z.ZodEnum<{
|
|
1098
|
+
"synth-sfx": "synth-sfx";
|
|
1099
|
+
score: "score";
|
|
1100
|
+
}>>;
|
|
1101
|
+
candidateCount: z.ZodOptional<z.ZodNumber>;
|
|
1005
1102
|
style: z.ZodOptional<z.ZodString>;
|
|
1006
1103
|
bpm: z.ZodOptional<z.ZodNumber>;
|
|
1007
1104
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1009,14 +1106,14 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1009
1106
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
1010
1107
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
1011
1108
|
"image/png": "image/png";
|
|
1012
|
-
"image/jpeg": "image/jpeg";
|
|
1013
1109
|
"image/webp": "image/webp";
|
|
1110
|
+
"image/jpeg": "image/jpeg";
|
|
1014
1111
|
}>>;
|
|
1015
1112
|
multiViewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1016
1113
|
view: z.ZodEnum<{
|
|
1114
|
+
left: "left";
|
|
1017
1115
|
right: "right";
|
|
1018
1116
|
back: "back";
|
|
1019
|
-
left: "left";
|
|
1020
1117
|
top: "top";
|
|
1021
1118
|
bottom: "bottom";
|
|
1022
1119
|
left_front: "left_front";
|
|
@@ -1025,8 +1122,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1025
1122
|
imageBase64: z.ZodString;
|
|
1026
1123
|
mimeType: z.ZodOptional<z.ZodEnum<{
|
|
1027
1124
|
"image/png": "image/png";
|
|
1028
|
-
"image/jpeg": "image/jpeg";
|
|
1029
1125
|
"image/webp": "image/webp";
|
|
1126
|
+
"image/jpeg": "image/jpeg";
|
|
1030
1127
|
}>>;
|
|
1031
1128
|
}, z.core.$strict>>>;
|
|
1032
1129
|
modelRef: z.ZodOptional<z.ZodString>;
|
|
@@ -1092,16 +1189,16 @@ export declare const assetGenerationModelJobSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1092
1189
|
export declare const assetGenerationModelQuerySchema: z.ZodObject<{
|
|
1093
1190
|
status: z.ZodEnum<{
|
|
1094
1191
|
failed: "failed";
|
|
1095
|
-
completed: "completed";
|
|
1096
1192
|
running: "running";
|
|
1193
|
+
completed: "completed";
|
|
1097
1194
|
queued: "queued";
|
|
1098
1195
|
}>;
|
|
1099
1196
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1100
1197
|
status: z.ZodEnum<{
|
|
1101
1198
|
pending: "pending";
|
|
1102
|
-
unavailable: "unavailable";
|
|
1103
1199
|
recorded: "recorded";
|
|
1104
1200
|
partial: "partial";
|
|
1201
|
+
unavailable: "unavailable";
|
|
1105
1202
|
}>;
|
|
1106
1203
|
currency: z.ZodLiteral<"USD">;
|
|
1107
1204
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1189,16 +1286,16 @@ export declare const assetGenerationProviderJobSchema: z.ZodUnion<readonly [z.Zo
|
|
|
1189
1286
|
export declare const assetGenerationVideoQuerySchema: z.ZodObject<{
|
|
1190
1287
|
status: z.ZodEnum<{
|
|
1191
1288
|
failed: "failed";
|
|
1192
|
-
completed: "completed";
|
|
1193
1289
|
running: "running";
|
|
1290
|
+
completed: "completed";
|
|
1194
1291
|
queued: "queued";
|
|
1195
1292
|
}>;
|
|
1196
1293
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1197
1294
|
status: z.ZodEnum<{
|
|
1198
1295
|
pending: "pending";
|
|
1199
|
-
unavailable: "unavailable";
|
|
1200
1296
|
recorded: "recorded";
|
|
1201
1297
|
partial: "partial";
|
|
1298
|
+
unavailable: "unavailable";
|
|
1202
1299
|
}>;
|
|
1203
1300
|
currency: z.ZodLiteral<"USD">;
|
|
1204
1301
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -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,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"asset-generation.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-generation.ts"],"names":[],"mappings":"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"}
|
|
@@ -8,6 +8,7 @@ import { assetLibrarySaveJobSchema, ASSET_LIBRARY_SAVE_MAX_JOBS } from './asset-
|
|
|
8
8
|
import { agentGenerationSourceSchema } from './agent-generation-provenance.js';
|
|
9
9
|
import { validateImageDeliveryOptions } from '../../prefab/image-generation-constraints.js';
|
|
10
10
|
import { REFERENCE_IMAGE_MAX_COUNT } from '../../agent/reference-images.js';
|
|
11
|
+
import { workspaceAudioResultSchema } from './audio-asset-protocol.js';
|
|
11
12
|
const amount = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
12
13
|
const tokens = amount.nullable();
|
|
13
14
|
const modelRef = z.string().trim().min(1).max(256);
|
|
@@ -90,8 +91,9 @@ export const assetGenerationRequestSchema = z.discriminatedUnion('kind', [
|
|
|
90
91
|
}).strict(),
|
|
91
92
|
z.object({
|
|
92
93
|
kind: z.literal('audio'), category: z.enum(['sfx', 'bgm']), description: z.string().trim().min(1).max(800),
|
|
93
|
-
duration: z.number().min(0.
|
|
94
|
-
|
|
94
|
+
duration: z.number().finite().min(0.05).max(60).optional(), loop: z.boolean().optional(),
|
|
95
|
+
representation: z.enum(['synth-sfx', 'score']).optional(), candidateCount: z.number().int().min(1).max(3).optional(),
|
|
96
|
+
style: z.string().trim().min(1).max(64).optional(), bpm: z.number().int().min(40).max(240).optional(),
|
|
95
97
|
}).strict(),
|
|
96
98
|
z.object({
|
|
97
99
|
kind: z.literal('model'), mode: z.enum(['text', 'reference']), ...modelOptions,
|
|
@@ -103,6 +105,14 @@ export const assetGenerationRequestSchema = z.discriminatedUnion('kind', [
|
|
|
103
105
|
validateSheet(request, context);
|
|
104
106
|
validateImageOptions(request, context);
|
|
105
107
|
validateModelOptions(request, context);
|
|
108
|
+
if (request.kind === 'audio' && !request.representation && (request.duration !== undefined && request.duration < 0.5 || request.candidateCount !== undefined))
|
|
109
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
110
|
+
if (request.kind === 'audio' && request.representation === 'synth-sfx' && (request.category !== 'sfx' || request.duration !== undefined && request.duration > 10 || request.loop !== undefined || request.style !== undefined || request.bpm !== undefined))
|
|
111
|
+
context.addIssue({ code: 'custom', message: 'audio_budget_exceeded' });
|
|
112
|
+
if (request.kind === 'audio' && request.representation === 'score' && (request.category !== 'bgm' || request.duration !== undefined && request.duration < 1))
|
|
113
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
114
|
+
if (request.kind === 'audio' && !request.representation && (request.duration !== undefined && request.duration > 22 || request.bpm !== undefined && (request.bpm < 60 || request.bpm > 200)))
|
|
115
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
106
116
|
if (request.kind === 'audio' && request.category === 'sfx' && request.description.length > 200)
|
|
107
117
|
context.addIssue({ code: z.ZodIssueCode.custom, message: 'audio_description_too_long', path: ['description'] });
|
|
108
118
|
if (request.kind !== 'audio' && Boolean(request.referenceImageBase64) !== Boolean(request.referenceImageMimeType))
|
|
@@ -137,9 +147,10 @@ export const assetGenerationEstimateInputSchema = z.discriminatedUnion('kind', [
|
|
|
137
147
|
referenceImageCount: z.number().int().min(0).max(ASSET_GENERATION_IMAGE_REFERENCE_MAX_COUNT).optional(),
|
|
138
148
|
}).strict(),
|
|
139
149
|
z.object({
|
|
140
|
-
kind: z.literal('audio'), category: z.enum(['sfx', 'bgm']), duration: z.number().min(0.
|
|
150
|
+
kind: z.literal('audio'), category: z.enum(['sfx', 'bgm']), duration: z.number().finite().min(0.05).max(60).optional(),
|
|
151
|
+
representation: z.enum(['synth-sfx', 'score']).optional(), candidateCount: z.number().int().min(1).max(3).optional(),
|
|
141
152
|
loop: z.boolean().optional(), style: z.string().trim().min(1).max(64).optional(),
|
|
142
|
-
bpm: z.number().int().min(
|
|
153
|
+
bpm: z.number().int().min(40).max(240).optional(),
|
|
143
154
|
}).strict(),
|
|
144
155
|
z.object({ kind: z.literal('model'), ...modelOptions, referenceImageCount: z.number().int().min(0).max(1).optional(),
|
|
145
156
|
multiViewImageCount: z.number().int().min(0).max(7).optional() }).strict(),
|
|
@@ -149,6 +160,12 @@ export const assetGenerationEstimateInputSchema = z.discriminatedUnion('kind', [
|
|
|
149
160
|
validateModelOptions(request, context);
|
|
150
161
|
if (request.kind === 'video')
|
|
151
162
|
validateAssetGenerationVideoOptions(request, context);
|
|
163
|
+
if (request.kind === 'audio' && (!request.representation && (request.duration !== undefined && request.duration < 0.5 || request.candidateCount !== undefined)
|
|
164
|
+
|| request.representation === 'synth-sfx' && (request.category !== 'sfx' || request.duration !== undefined && request.duration > 10 || request.loop !== undefined || request.style !== undefined || request.bpm !== undefined)))
|
|
165
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
166
|
+
if (request.kind === 'audio' && (request.representation === 'score' && (request.category !== 'bgm' || request.duration !== undefined && request.duration < 1)
|
|
167
|
+
|| !request.representation && (request.duration !== undefined && request.duration > 22 || request.bpm !== undefined && (request.bpm < 60 || request.bpm > 200))))
|
|
168
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_options' });
|
|
152
169
|
});
|
|
153
170
|
const unitsSchema = z.object({ calls: amount.optional(), images: amount.optional(), seconds: z.number().finite().nonnegative().optional() }).strict();
|
|
154
171
|
export const assetGenerationEstimateSchema = z.object({
|
|
@@ -177,6 +194,7 @@ const generationOutput = z.object({ name: z.string().min(1).max(256), mimeType:
|
|
|
177
194
|
contentHash: z.string().regex(/^[a-f0-9]{64}$/) }).strict();
|
|
178
195
|
const generationSaved = z.object({ path: workspaceRelativePathSchema, operationId: z.string().min(1).max(128), savedAt: z.string().datetime() }).strict();
|
|
179
196
|
export const assetGenerationTaskSchema = z.object({
|
|
197
|
+
audioResult: workspaceAudioResultSchema.optional(),
|
|
180
198
|
taskId: z.string().uuid(), workspaceId: z.string().min(1).max(128), directoryName: workspaceSessionScopeSchema,
|
|
181
199
|
clientRequestId: z.string().min(1).max(128).optional(),
|
|
182
200
|
source: agentGenerationSourceSchema.optional(),
|
|
@@ -194,6 +212,8 @@ export const assetGenerationTaskSchema = z.object({
|
|
|
194
212
|
librarySaves: z.array(assetLibrarySaveJobSchema).max(ASSET_LIBRARY_SAVE_MAX_JOBS).optional(),
|
|
195
213
|
error: z.string().min(1).max(256).optional(),
|
|
196
214
|
}).strict().superRefine((task, context) => {
|
|
215
|
+
if (task.audioResult && (task.kind !== 'audio' || task.output || task.outputs || task.bundle || task.saved))
|
|
216
|
+
context.addIssue({ code: 'custom', message: 'invalid_audio_result' });
|
|
197
217
|
if (task.preview && (task.kind !== 'model' || !['model/gltf-binary', 'image/png', 'image/jpeg', 'image/webp'].includes(task.preview.mimeType)))
|
|
198
218
|
context.addIssue({ code: 'custom', message: 'asset_generation_invalid_preview' });
|
|
199
219
|
if (task.outputs && (task.kind !== 'image' || task.bundle || !task.output
|