@playcraft/common 0.1.67 → 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 +12 -12
- 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/animation-editor.d.ts +1 -1
- package/dist/cloud-workspace/runtime/artifacts.d.ts +7 -7
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +9 -9
- package/dist/cloud-workspace/runtime/asset-generation.d.ts +29 -29
- 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 +6 -6
- 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-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 +3 -3
- 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-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/chat-realtime.d.ts +2 -2
- 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/index.d.ts +5 -0
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +5 -0
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts +4 -4
- 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 +64 -64
- package/dist/cloud-workspace/runtime/model-quality.d.ts +73 -73
- package/dist/cloud-workspace/runtime/model-validation.d.ts +1 -1
- package/dist/cloud-workspace/runtime/operations.d.ts +55 -25
- package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/parameter-agent.d.ts +2 -2
- package/dist/cloud-workspace/runtime/previews.d.ts +3 -3
- package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +1 -1
- package/dist/cloud-workspace/runtime/workspace-ui.d.ts +6 -6
- package/package.json +5 -1
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type VideoUnderstandingAnalysis } from './video-replication.js';
|
|
3
3
|
import { type ReplicaRecordingMetadata } from './replica-recording.js';
|
|
4
4
|
export declare const replicaDimensionSchema: z.ZodEnum<{
|
|
5
|
+
runtime: "runtime";
|
|
5
6
|
appearance: "appearance";
|
|
6
7
|
timing: "timing";
|
|
7
|
-
runtime: "runtime";
|
|
8
8
|
layout: "layout";
|
|
9
9
|
mechanics: "mechanics";
|
|
10
10
|
interaction: "interaction";
|
|
@@ -109,9 +109,9 @@ export declare const replicaComparisonContentSchema: z.ZodObject<{
|
|
|
109
109
|
id: z.ZodString;
|
|
110
110
|
eventId: z.ZodOptional<z.ZodString>;
|
|
111
111
|
dimension: z.ZodEnum<{
|
|
112
|
+
runtime: "runtime";
|
|
112
113
|
appearance: "appearance";
|
|
113
114
|
timing: "timing";
|
|
114
|
-
runtime: "runtime";
|
|
115
115
|
layout: "layout";
|
|
116
116
|
mechanics: "mechanics";
|
|
117
117
|
interaction: "interaction";
|
|
@@ -148,9 +148,9 @@ export declare const replicaComparisonContentSchema: z.ZodObject<{
|
|
|
148
148
|
missingEvidence: z.ZodArray<z.ZodObject<{
|
|
149
149
|
eventId: z.ZodOptional<z.ZodString>;
|
|
150
150
|
dimension: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
runtime: "runtime";
|
|
151
152
|
appearance: "appearance";
|
|
152
153
|
timing: "timing";
|
|
153
|
-
runtime: "runtime";
|
|
154
154
|
layout: "layout";
|
|
155
155
|
mechanics: "mechanics";
|
|
156
156
|
interaction: "interaction";
|
|
@@ -162,8 +162,8 @@ export type ReplicaComparisonContent = z.infer<typeof replicaComparisonContentSc
|
|
|
162
162
|
export declare const replicaComparisonSourceSchema: z.ZodObject<{
|
|
163
163
|
id: z.ZodString;
|
|
164
164
|
role: z.ZodEnum<{
|
|
165
|
-
candidate: "candidate";
|
|
166
165
|
reference: "reference";
|
|
166
|
+
candidate: "candidate";
|
|
167
167
|
control: "control";
|
|
168
168
|
}>;
|
|
169
169
|
source: z.ZodObject<{
|
|
@@ -187,8 +187,8 @@ export declare const videoComparisonRequestSchema: z.ZodObject<{
|
|
|
187
187
|
inputs: z.ZodArray<z.ZodObject<{
|
|
188
188
|
id: z.ZodString;
|
|
189
189
|
role: z.ZodEnum<{
|
|
190
|
-
candidate: "candidate";
|
|
191
190
|
reference: "reference";
|
|
191
|
+
candidate: "candidate";
|
|
192
192
|
control: "control";
|
|
193
193
|
}>;
|
|
194
194
|
mediaId: z.ZodUUID;
|
|
@@ -559,9 +559,9 @@ export declare const replicaValidationResultSchema: z.ZodObject<{
|
|
|
559
559
|
id: z.ZodString;
|
|
560
560
|
eventId: z.ZodOptional<z.ZodString>;
|
|
561
561
|
dimension: z.ZodEnum<{
|
|
562
|
+
runtime: "runtime";
|
|
562
563
|
appearance: "appearance";
|
|
563
564
|
timing: "timing";
|
|
564
|
-
runtime: "runtime";
|
|
565
565
|
layout: "layout";
|
|
566
566
|
mechanics: "mechanics";
|
|
567
567
|
interaction: "interaction";
|
|
@@ -598,9 +598,9 @@ export declare const replicaValidationResultSchema: z.ZodObject<{
|
|
|
598
598
|
missingEvidence: z.ZodArray<z.ZodObject<{
|
|
599
599
|
eventId: z.ZodOptional<z.ZodString>;
|
|
600
600
|
dimension: z.ZodOptional<z.ZodEnum<{
|
|
601
|
+
runtime: "runtime";
|
|
601
602
|
appearance: "appearance";
|
|
602
603
|
timing: "timing";
|
|
603
|
-
runtime: "runtime";
|
|
604
604
|
layout: "layout";
|
|
605
605
|
mechanics: "mechanics";
|
|
606
606
|
interaction: "interaction";
|
|
@@ -613,8 +613,8 @@ export declare const replicaValidationResultSchema: z.ZodObject<{
|
|
|
613
613
|
inputs: z.ZodArray<z.ZodObject<{
|
|
614
614
|
id: z.ZodString;
|
|
615
615
|
role: z.ZodEnum<{
|
|
616
|
-
candidate: "candidate";
|
|
617
616
|
reference: "reference";
|
|
617
|
+
candidate: "candidate";
|
|
618
618
|
control: "control";
|
|
619
619
|
}>;
|
|
620
620
|
source: z.ZodObject<{
|
|
@@ -796,9 +796,9 @@ export declare const videoComparisonRunSchema: z.ZodObject<{
|
|
|
796
796
|
id: z.ZodString;
|
|
797
797
|
eventId: z.ZodOptional<z.ZodString>;
|
|
798
798
|
dimension: z.ZodEnum<{
|
|
799
|
+
runtime: "runtime";
|
|
799
800
|
appearance: "appearance";
|
|
800
801
|
timing: "timing";
|
|
801
|
-
runtime: "runtime";
|
|
802
802
|
layout: "layout";
|
|
803
803
|
mechanics: "mechanics";
|
|
804
804
|
interaction: "interaction";
|
|
@@ -835,9 +835,9 @@ export declare const videoComparisonRunSchema: z.ZodObject<{
|
|
|
835
835
|
missingEvidence: z.ZodArray<z.ZodObject<{
|
|
836
836
|
eventId: z.ZodOptional<z.ZodString>;
|
|
837
837
|
dimension: z.ZodOptional<z.ZodEnum<{
|
|
838
|
+
runtime: "runtime";
|
|
838
839
|
appearance: "appearance";
|
|
839
840
|
timing: "timing";
|
|
840
|
-
runtime: "runtime";
|
|
841
841
|
layout: "layout";
|
|
842
842
|
mechanics: "mechanics";
|
|
843
843
|
interaction: "interaction";
|
|
@@ -850,8 +850,8 @@ export declare const videoComparisonRunSchema: z.ZodObject<{
|
|
|
850
850
|
inputs: z.ZodArray<z.ZodObject<{
|
|
851
851
|
id: z.ZodString;
|
|
852
852
|
role: z.ZodEnum<{
|
|
853
|
-
candidate: "candidate";
|
|
854
853
|
reference: "reference";
|
|
854
|
+
candidate: "candidate";
|
|
855
855
|
control: "control";
|
|
856
856
|
}>;
|
|
857
857
|
source: z.ZodObject<{
|
|
@@ -958,7 +958,7 @@ export declare function evaluateReplicaComparison(content: ReplicaComparisonCont
|
|
|
958
958
|
missingEvidence: {
|
|
959
959
|
reason: string;
|
|
960
960
|
eventId?: string | undefined;
|
|
961
|
-
dimension?: "
|
|
961
|
+
dimension?: "runtime" | "appearance" | "timing" | "layout" | "mechanics" | "interaction" | undefined;
|
|
962
962
|
}[];
|
|
963
963
|
timingChecks: {
|
|
964
964
|
status: "fail" | "pass" | "inconclusive";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type AudioLibraryEnvelope } from './cloud-workspace/runtime/audio-library.js';
|
|
2
|
+
export declare function audioLibrarySaveDestination(header: AudioLibraryEnvelope): string;
|
|
3
|
+
export declare function encodeAudioLibraryEnvelope(input: AudioLibraryEnvelope, load: (path: string) => Uint8Array): AsyncIterable<Uint8Array>;
|
|
4
|
+
/** The header is authorized before accepting any member bytes. */
|
|
5
|
+
export declare function readAudioLibraryEnvelope(stream: AsyncIterable<Uint8Array>, authorize: (header: AudioLibraryEnvelope) => Promise<void>): Promise<{
|
|
6
|
+
header: {
|
|
7
|
+
version: 1;
|
|
8
|
+
scope: {
|
|
9
|
+
environment: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
directoryName: string;
|
|
13
|
+
};
|
|
14
|
+
saveId: string;
|
|
15
|
+
request: {
|
|
16
|
+
path: string;
|
|
17
|
+
name: string;
|
|
18
|
+
tags: string[];
|
|
19
|
+
clientRequestId: string;
|
|
20
|
+
teamId: string;
|
|
21
|
+
target: {
|
|
22
|
+
kind: "workspace-file";
|
|
23
|
+
path: string;
|
|
24
|
+
} | {
|
|
25
|
+
kind: "generation-candidate";
|
|
26
|
+
taskId: string;
|
|
27
|
+
candidateId: string;
|
|
28
|
+
};
|
|
29
|
+
expectedRevision: number;
|
|
30
|
+
expectedContentHash: string;
|
|
31
|
+
};
|
|
32
|
+
source: {
|
|
33
|
+
kind: "workspace-audio";
|
|
34
|
+
target: {
|
|
35
|
+
kind: "workspace-file";
|
|
36
|
+
path: string;
|
|
37
|
+
} | {
|
|
38
|
+
kind: "generation-candidate";
|
|
39
|
+
taskId: string;
|
|
40
|
+
candidateId: string;
|
|
41
|
+
};
|
|
42
|
+
revision: number;
|
|
43
|
+
sourcePath: string;
|
|
44
|
+
entryPath: "sound.pcaudio.json" | "sound.pcscore.json";
|
|
45
|
+
sourceContentHash: string;
|
|
46
|
+
sourceRenderHash: string;
|
|
47
|
+
rendererBuildHash: string;
|
|
48
|
+
representationSetHash: string;
|
|
49
|
+
files: {
|
|
50
|
+
path: string;
|
|
51
|
+
mimeType: string;
|
|
52
|
+
size: number;
|
|
53
|
+
contentHash: string;
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
sourceHash: string;
|
|
57
|
+
payloadHash: string;
|
|
58
|
+
};
|
|
59
|
+
files: {
|
|
60
|
+
path: string;
|
|
61
|
+
mimeType: string;
|
|
62
|
+
bytes: Buffer;
|
|
63
|
+
}[];
|
|
64
|
+
}>;
|
|
65
|
+
//# sourceMappingURL=audio-library-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-library-stream.d.ts","sourceRoot":"","sources":["../src/audio-library-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAAuD,KAAK,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAK5I,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAGhF;AAOD,wBAAuB,0BAA0B,CAAC,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,CAS5I;AACD,kEAAkE;AAClE,wBAAsB,wBAAwB,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBtG,MAAM;kBAAY,MAAM;eAAS,MAAM;;GAU5E"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { audioLibraryEnvelopeSchema, AUDIO_LIBRARY_MAX_BYTES } from './cloud-workspace/runtime/audio-library.js';
|
|
3
|
+
import { hashOperationPayload } from './cloud-workspace/runtime/operations.js';
|
|
4
|
+
const invalid = () => new Error('invalid_audio_library_package');
|
|
5
|
+
const HEADER_MAX_BYTES = 128 * 1024;
|
|
6
|
+
export function audioLibrarySaveDestination(header) {
|
|
7
|
+
const key = createHash('sha256').update(JSON.stringify([header.scope, header.saveId])).digest('hex');
|
|
8
|
+
return [header.request.path, `${key.slice(0, 20)}.aiaudio`].filter(Boolean).join('/');
|
|
9
|
+
}
|
|
10
|
+
function verifyHeader(input) {
|
|
11
|
+
const header = audioLibraryEnvelopeSchema.parse(input);
|
|
12
|
+
if (hashOperationPayload(header.source) !== header.sourceHash || hashOperationPayload(header.request) !== header.payloadHash
|
|
13
|
+
|| header.source.files.reduce((total, file) => total + file.size, 0) > AUDIO_LIBRARY_MAX_BYTES)
|
|
14
|
+
throw invalid();
|
|
15
|
+
return header;
|
|
16
|
+
}
|
|
17
|
+
export async function* encodeAudioLibraryEnvelope(input, load) {
|
|
18
|
+
const header = verifyHeader(input), bytes = Buffer.from(JSON.stringify(header));
|
|
19
|
+
if (bytes.length > HEADER_MAX_BYTES)
|
|
20
|
+
throw invalid();
|
|
21
|
+
const length = Buffer.alloc(4);
|
|
22
|
+
length.writeUInt32BE(bytes.length);
|
|
23
|
+
yield length;
|
|
24
|
+
yield bytes;
|
|
25
|
+
for (const file of header.source.files) {
|
|
26
|
+
const data = load(file.path);
|
|
27
|
+
if (data.byteLength !== file.size || createHash('sha256').update(data).digest('hex') !== file.contentHash)
|
|
28
|
+
throw invalid();
|
|
29
|
+
yield data;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/** The header is authorized before accepting any member bytes. */
|
|
33
|
+
export async function readAudioLibraryEnvelope(stream, authorize) {
|
|
34
|
+
const iterator = stream[Symbol.asyncIterator]();
|
|
35
|
+
let chunk = new Uint8Array(0), offset = 0, received = 0, complete = false;
|
|
36
|
+
const take = async (length) => {
|
|
37
|
+
const bytes = Buffer.alloc(length);
|
|
38
|
+
let written = 0;
|
|
39
|
+
while (written < length) {
|
|
40
|
+
if (offset === chunk.length) {
|
|
41
|
+
const next = await iterator.next();
|
|
42
|
+
if (next.done || !(next.value instanceof Uint8Array))
|
|
43
|
+
throw invalid();
|
|
44
|
+
chunk = next.value;
|
|
45
|
+
offset = 0;
|
|
46
|
+
received += chunk.length;
|
|
47
|
+
if (received > AUDIO_LIBRARY_MAX_BYTES + HEADER_MAX_BYTES + 4)
|
|
48
|
+
throw invalid();
|
|
49
|
+
}
|
|
50
|
+
const size = Math.min(length - written, chunk.length - offset);
|
|
51
|
+
bytes.set(chunk.subarray(offset, offset + size), written);
|
|
52
|
+
written += size;
|
|
53
|
+
offset += size;
|
|
54
|
+
}
|
|
55
|
+
return bytes;
|
|
56
|
+
};
|
|
57
|
+
try {
|
|
58
|
+
const length = (await take(4)).readUInt32BE();
|
|
59
|
+
if (!length || length > HEADER_MAX_BYTES)
|
|
60
|
+
throw invalid();
|
|
61
|
+
const header = verifyHeader(JSON.parse((await take(length)).toString('utf8')));
|
|
62
|
+
await authorize(header);
|
|
63
|
+
const files = [];
|
|
64
|
+
for (const file of header.source.files) {
|
|
65
|
+
const bytes = await take(file.size);
|
|
66
|
+
if (createHash('sha256').update(bytes).digest('hex') !== file.contentHash)
|
|
67
|
+
throw invalid();
|
|
68
|
+
files.push({ path: file.path, mimeType: file.mimeType, bytes });
|
|
69
|
+
}
|
|
70
|
+
if (offset !== chunk.length)
|
|
71
|
+
throw invalid();
|
|
72
|
+
for (;;) {
|
|
73
|
+
const next = await iterator.next();
|
|
74
|
+
if (next.done)
|
|
75
|
+
break;
|
|
76
|
+
if (!(next.value instanceof Uint8Array) || next.value.length)
|
|
77
|
+
throw invalid();
|
|
78
|
+
}
|
|
79
|
+
complete = true;
|
|
80
|
+
return { header, files };
|
|
81
|
+
}
|
|
82
|
+
finally {
|
|
83
|
+
if (!complete)
|
|
84
|
+
await iterator.return?.().catch(() => undefined);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=audio-library-stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-library-stream.js","sourceRoot":"","sources":["../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|
mimeType: z.ZodEnum<{
|
|
316
316
|
"image/png": "image/png";
|
|
317
|
-
"image/jpeg": "image/jpeg";
|
|
318
317
|
"image/webp": "image/webp";
|
|
318
|
+
"image/jpeg": "image/jpeg";
|
|
319
319
|
}>;
|
|
320
320
|
contentBase64: z.ZodString;
|
|
321
321
|
}, z.core.$strict>;
|
|
@@ -111,8 +111,8 @@ export declare const workspaceArtifactVersionSchema: z.ZodObject<{
|
|
|
111
111
|
}, z.core.$strict>>;
|
|
112
112
|
modelBuildState: z.ZodOptional<z.ZodEnum<{
|
|
113
113
|
current: "current";
|
|
114
|
-
stale: "stale";
|
|
115
114
|
unavailable: "unavailable";
|
|
115
|
+
stale: "stale";
|
|
116
116
|
}>>;
|
|
117
117
|
}, z.core.$strict>;
|
|
118
118
|
export declare const workspaceArtifactSchema: z.ZodObject<{
|
|
@@ -121,10 +121,10 @@ export declare const workspaceArtifactSchema: z.ZodObject<{
|
|
|
121
121
|
file: "file";
|
|
122
122
|
document: "document";
|
|
123
123
|
audio: "audio";
|
|
124
|
-
|
|
124
|
+
model: "model";
|
|
125
125
|
image: "image";
|
|
126
126
|
video: "video";
|
|
127
|
-
|
|
127
|
+
playable: "playable";
|
|
128
128
|
}>;
|
|
129
129
|
name: z.ZodString;
|
|
130
130
|
currentVersionId: z.ZodString;
|
|
@@ -212,8 +212,8 @@ export declare const workspaceArtifactSchema: z.ZodObject<{
|
|
|
212
212
|
}, z.core.$strict>>;
|
|
213
213
|
modelBuildState: z.ZodOptional<z.ZodEnum<{
|
|
214
214
|
current: "current";
|
|
215
|
-
stale: "stale";
|
|
216
215
|
unavailable: "unavailable";
|
|
216
|
+
stale: "stale";
|
|
217
217
|
}>>;
|
|
218
218
|
}, z.core.$strict>>;
|
|
219
219
|
}, z.core.$strict>;
|
|
@@ -224,10 +224,10 @@ export declare const workspaceArtifactListSchema: z.ZodObject<{
|
|
|
224
224
|
file: "file";
|
|
225
225
|
document: "document";
|
|
226
226
|
audio: "audio";
|
|
227
|
-
|
|
227
|
+
model: "model";
|
|
228
228
|
image: "image";
|
|
229
229
|
video: "video";
|
|
230
|
-
|
|
230
|
+
playable: "playable";
|
|
231
231
|
}>;
|
|
232
232
|
name: z.ZodString;
|
|
233
233
|
currentVersionId: z.ZodString;
|
|
@@ -315,8 +315,8 @@ export declare const workspaceArtifactListSchema: z.ZodObject<{
|
|
|
315
315
|
}, z.core.$strict>>;
|
|
316
316
|
modelBuildState: z.ZodOptional<z.ZodEnum<{
|
|
317
317
|
current: "current";
|
|
318
|
-
stale: "stale";
|
|
319
318
|
unavailable: "unavailable";
|
|
319
|
+
stale: "stale";
|
|
320
320
|
}>>;
|
|
321
321
|
}, z.core.$strict>>;
|
|
322
322
|
}, z.core.$strict>>;
|
|
@@ -181,8 +181,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
181
181
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
182
182
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
183
183
|
"image/png": "image/png";
|
|
184
|
-
"image/jpeg": "image/jpeg";
|
|
185
184
|
"image/webp": "image/webp";
|
|
185
|
+
"image/jpeg": "image/jpeg";
|
|
186
186
|
}>>;
|
|
187
187
|
mode: z.ZodEnum<{
|
|
188
188
|
text: "text";
|
|
@@ -206,8 +206,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
206
206
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
207
207
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
208
208
|
"image/png": "image/png";
|
|
209
|
-
"image/jpeg": "image/jpeg";
|
|
210
209
|
"image/webp": "image/webp";
|
|
210
|
+
"image/jpeg": "image/jpeg";
|
|
211
211
|
}>>;
|
|
212
212
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
213
213
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -222,8 +222,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
222
222
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
223
223
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
224
224
|
"image/png": "image/png";
|
|
225
|
-
"image/jpeg": "image/jpeg";
|
|
226
225
|
"image/webp": "image/webp";
|
|
226
|
+
"image/jpeg": "image/jpeg";
|
|
227
227
|
}>>;
|
|
228
228
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
229
229
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -238,15 +238,15 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
238
238
|
base64: z.ZodString;
|
|
239
239
|
mimeType: z.ZodEnum<{
|
|
240
240
|
"image/png": "image/png";
|
|
241
|
-
"image/jpeg": "image/jpeg";
|
|
242
241
|
"image/webp": "image/webp";
|
|
242
|
+
"image/jpeg": "image/jpeg";
|
|
243
243
|
}>;
|
|
244
244
|
}, z.core.$strict>>>;
|
|
245
245
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
246
246
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
247
247
|
"image/png": "image/png";
|
|
248
|
-
"image/jpeg": "image/jpeg";
|
|
249
248
|
"image/webp": "image/webp";
|
|
249
|
+
"image/jpeg": "image/jpeg";
|
|
250
250
|
}>>;
|
|
251
251
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
252
252
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
@@ -307,14 +307,14 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
307
307
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
308
308
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
309
309
|
"image/png": "image/png";
|
|
310
|
-
"image/jpeg": "image/jpeg";
|
|
311
310
|
"image/webp": "image/webp";
|
|
311
|
+
"image/jpeg": "image/jpeg";
|
|
312
312
|
}>>;
|
|
313
313
|
multiViewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
314
314
|
view: z.ZodEnum<{
|
|
315
|
+
left: "left";
|
|
315
316
|
right: "right";
|
|
316
317
|
back: "back";
|
|
317
|
-
left: "left";
|
|
318
318
|
top: "top";
|
|
319
319
|
bottom: "bottom";
|
|
320
320
|
left_front: "left_front";
|
|
@@ -323,8 +323,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
323
323
|
imageBase64: z.ZodString;
|
|
324
324
|
mimeType: z.ZodOptional<z.ZodEnum<{
|
|
325
325
|
"image/png": "image/png";
|
|
326
|
-
"image/jpeg": "image/jpeg";
|
|
327
326
|
"image/webp": "image/webp";
|
|
327
|
+
"image/jpeg": "image/jpeg";
|
|
328
328
|
}>>;
|
|
329
329
|
}, z.core.$strict>>>;
|
|
330
330
|
modelRef: z.ZodOptional<z.ZodString>;
|
|
@@ -450,8 +450,8 @@ export declare const workspaceAssetToolWriteSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
450
450
|
clientRequestId: z.ZodString;
|
|
451
451
|
mimeType: z.ZodEnum<{
|
|
452
452
|
"image/png": "image/png";
|
|
453
|
-
"image/jpeg": "image/jpeg";
|
|
454
453
|
"image/webp": "image/webp";
|
|
454
|
+
"image/jpeg": "image/jpeg";
|
|
455
455
|
}>;
|
|
456
456
|
contentBase64: z.ZodString;
|
|
457
457
|
}, z.core.$strict>;
|