@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
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WORKSPACE_AUDIO_PROTOCOL_HEADER = "X-Playcraft-Audio-Protocol";
|
|
3
|
+
export declare const WORKSPACE_AUDIO_SCORE_PROTOCOL_HEADER = "X-Playcraft-Audio-Score-Protocol";
|
|
4
|
+
/** A verified binding identifies a package; actual game integration still needs independent verification. */
|
|
5
|
+
export declare const workspaceAudioUsageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
6
|
+
bindingState: z.ZodEnum<{
|
|
7
|
+
current: "current";
|
|
8
|
+
different_version: "different_version";
|
|
9
|
+
}>;
|
|
10
|
+
sourceContentHash: z.ZodString;
|
|
11
|
+
revision: z.ZodNumber;
|
|
12
|
+
modulePath: z.ZodString;
|
|
13
|
+
representationSetHash: z.ZodString;
|
|
14
|
+
previousContentHash: z.ZodOptional<z.ZodString>;
|
|
15
|
+
status: z.ZodLiteral<"integration_required">;
|
|
16
|
+
bindingPath: z.ZodString;
|
|
17
|
+
eventName: z.ZodString;
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
19
|
+
bindingState: z.ZodEnum<{
|
|
20
|
+
missing: "missing";
|
|
21
|
+
invalid: "invalid";
|
|
22
|
+
different_source: "different_source";
|
|
23
|
+
}>;
|
|
24
|
+
status: z.ZodLiteral<"integration_required">;
|
|
25
|
+
bindingPath: z.ZodString;
|
|
26
|
+
eventName: z.ZodString;
|
|
27
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
28
|
+
bindingState: z.ZodOptional<z.ZodUndefined>;
|
|
29
|
+
sourceContentHash: z.ZodString;
|
|
30
|
+
previousContentHash: z.ZodOptional<z.ZodString>;
|
|
31
|
+
status: z.ZodLiteral<"integration_required">;
|
|
32
|
+
bindingPath: z.ZodString;
|
|
33
|
+
eventName: z.ZodString;
|
|
34
|
+
}, z.core.$strict>]>;
|
|
35
|
+
export type WorkspaceAudioUsage = z.infer<typeof workspaceAudioUsageSchema>;
|
|
36
|
+
export declare const workspaceAudioBindingSchema: z.ZodObject<{
|
|
37
|
+
version: z.ZodLiteral<1>;
|
|
38
|
+
operationId: z.ZodString;
|
|
39
|
+
eventName: z.ZodString;
|
|
40
|
+
sourcePath: z.ZodString;
|
|
41
|
+
sourceContentHash: z.ZodString;
|
|
42
|
+
revision: z.ZodNumber;
|
|
43
|
+
auditionContentHash: z.ZodString;
|
|
44
|
+
modulePath: z.ZodString;
|
|
45
|
+
representationSetHash: z.ZodString;
|
|
46
|
+
integrationStatus: z.ZodLiteral<"integration_required">;
|
|
47
|
+
previousBinding: z.ZodNullable<z.ZodString>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
export declare const workspaceAudioTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
51
|
+
path: z.ZodString;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
54
|
+
taskId: z.ZodString;
|
|
55
|
+
candidateId: z.ZodString;
|
|
56
|
+
}, z.core.$strict>], "kind">;
|
|
57
|
+
export type WorkspaceAudioTarget = z.infer<typeof workspaceAudioTargetSchema>;
|
|
58
|
+
export declare const workspaceAudioAuditionSchema: z.ZodObject<{
|
|
59
|
+
mimeType: z.ZodLiteral<"audio/wav">;
|
|
60
|
+
size: z.ZodNumber;
|
|
61
|
+
contentHash: z.ZodString;
|
|
62
|
+
renderKey: z.ZodOptional<z.ZodString>;
|
|
63
|
+
pcmContentHash: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export declare const workspaceAudioCandidateSchema: z.ZodObject<{
|
|
66
|
+
candidateId: z.ZodString;
|
|
67
|
+
candidateRevision: z.ZodNumber;
|
|
68
|
+
sourceContentHash: z.ZodString;
|
|
69
|
+
sourceRenderHash: z.ZodString;
|
|
70
|
+
renderState: z.ZodEnum<{
|
|
71
|
+
pending: "pending";
|
|
72
|
+
ready: "ready";
|
|
73
|
+
failed: "failed";
|
|
74
|
+
running: "running";
|
|
75
|
+
cancelled: "cancelled";
|
|
76
|
+
}>;
|
|
77
|
+
renderError: z.ZodOptional<z.ZodString>;
|
|
78
|
+
name: z.ZodOptional<z.ZodString>;
|
|
79
|
+
sourceFile: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
mimeType: z.ZodLiteral<"application/json">;
|
|
82
|
+
size: z.ZodNumber;
|
|
83
|
+
contentHash: z.ZodString;
|
|
84
|
+
}, z.core.$strict>>;
|
|
85
|
+
audition: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
mimeType: z.ZodLiteral<"audio/wav">;
|
|
87
|
+
size: z.ZodNumber;
|
|
88
|
+
contentHash: z.ZodString;
|
|
89
|
+
renderKey: z.ZodOptional<z.ZodString>;
|
|
90
|
+
pcmContentHash: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
saved: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
path: z.ZodString;
|
|
94
|
+
operationId: z.ZodString;
|
|
95
|
+
savedAt: z.ZodString;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export type WorkspaceAudioCandidate = z.infer<typeof workspaceAudioCandidateSchema>;
|
|
99
|
+
export declare const workspaceAudioResultSchema: z.ZodObject<{
|
|
100
|
+
version: z.ZodLiteral<1>;
|
|
101
|
+
representation: z.ZodEnum<{
|
|
102
|
+
"synth-sfx": "synth-sfx";
|
|
103
|
+
score: "score";
|
|
104
|
+
}>;
|
|
105
|
+
requestedCount: z.ZodNumber;
|
|
106
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
107
|
+
candidateId: z.ZodString;
|
|
108
|
+
candidateRevision: z.ZodNumber;
|
|
109
|
+
sourceContentHash: z.ZodString;
|
|
110
|
+
sourceRenderHash: z.ZodString;
|
|
111
|
+
renderState: z.ZodEnum<{
|
|
112
|
+
pending: "pending";
|
|
113
|
+
ready: "ready";
|
|
114
|
+
failed: "failed";
|
|
115
|
+
running: "running";
|
|
116
|
+
cancelled: "cancelled";
|
|
117
|
+
}>;
|
|
118
|
+
renderError: z.ZodOptional<z.ZodString>;
|
|
119
|
+
name: z.ZodOptional<z.ZodString>;
|
|
120
|
+
sourceFile: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
mimeType: z.ZodLiteral<"application/json">;
|
|
123
|
+
size: z.ZodNumber;
|
|
124
|
+
contentHash: z.ZodString;
|
|
125
|
+
}, z.core.$strict>>;
|
|
126
|
+
audition: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
mimeType: z.ZodLiteral<"audio/wav">;
|
|
128
|
+
size: z.ZodNumber;
|
|
129
|
+
contentHash: z.ZodString;
|
|
130
|
+
renderKey: z.ZodOptional<z.ZodString>;
|
|
131
|
+
pcmContentHash: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strict>>;
|
|
133
|
+
saved: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
path: z.ZodString;
|
|
135
|
+
operationId: z.ZodString;
|
|
136
|
+
savedAt: z.ZodString;
|
|
137
|
+
}, z.core.$strict>>;
|
|
138
|
+
}, z.core.$strict>>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
export type WorkspaceAudioResult = z.infer<typeof workspaceAudioResultSchema>;
|
|
141
|
+
export declare const workspaceSfxContextSchema: z.ZodObject<{
|
|
142
|
+
version: z.ZodLiteral<1>;
|
|
143
|
+
directoryName: z.ZodString;
|
|
144
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
146
|
+
path: z.ZodString;
|
|
147
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
148
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
149
|
+
taskId: z.ZodString;
|
|
150
|
+
candidateId: z.ZodString;
|
|
151
|
+
}, z.core.$strict>], "kind">;
|
|
152
|
+
expectedRevision: z.ZodNumber;
|
|
153
|
+
expectedContentHash: z.ZodString;
|
|
154
|
+
selection: z.ZodNullable<z.ZodObject<{
|
|
155
|
+
voiceIds: z.ZodArray<z.ZodString>;
|
|
156
|
+
rangeSeconds: z.ZodNullable<z.ZodObject<{
|
|
157
|
+
start: z.ZodNumber;
|
|
158
|
+
end: z.ZodNumber;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
}, z.core.$strict>>;
|
|
161
|
+
protection: z.ZodObject<{
|
|
162
|
+
lockedVoiceIds: z.ZodArray<z.ZodString>;
|
|
163
|
+
preserveTargets: z.ZodArray<z.ZodString>;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
intent: z.ZodEnum<{
|
|
166
|
+
propose: "propose";
|
|
167
|
+
save: "save";
|
|
168
|
+
integrate: "integrate";
|
|
169
|
+
}>;
|
|
170
|
+
}, z.core.$strict>;
|
|
171
|
+
export declare const workspaceScoreSelectionSchema: z.ZodObject<{
|
|
172
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
173
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
174
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
175
|
+
start: z.ZodNumber;
|
|
176
|
+
end: z.ZodNumber;
|
|
177
|
+
}, z.core.$strict>>;
|
|
178
|
+
}, z.core.$strict>;
|
|
179
|
+
export declare const workspaceScoreProtectionSchema: z.ZodObject<{
|
|
180
|
+
lockedTrackIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
|
+
preserveMelody: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
184
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
185
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
186
|
+
start: z.ZodNumber;
|
|
187
|
+
end: z.ZodNumber;
|
|
188
|
+
}, z.core.$strict>>;
|
|
189
|
+
}, z.core.$strict>>;
|
|
190
|
+
}, z.core.$strict>;
|
|
191
|
+
export declare const workspaceAudioProtectionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
192
|
+
lockedVoiceIds: z.ZodArray<z.ZodString>;
|
|
193
|
+
preserveTargets: z.ZodArray<z.ZodString>;
|
|
194
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
195
|
+
lockedTrackIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
196
|
+
preserveMelody: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
199
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
200
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
201
|
+
start: z.ZodNumber;
|
|
202
|
+
end: z.ZodNumber;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
}, z.core.$strict>>;
|
|
205
|
+
}, z.core.$strict>]>;
|
|
206
|
+
export declare const workspaceScoreContextSchema: z.ZodObject<{
|
|
207
|
+
version: z.ZodLiteral<2>;
|
|
208
|
+
timeUnit: z.ZodLiteral<"beats">;
|
|
209
|
+
directoryName: z.ZodString;
|
|
210
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
212
|
+
path: z.ZodString;
|
|
213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
214
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
215
|
+
taskId: z.ZodString;
|
|
216
|
+
candidateId: z.ZodString;
|
|
217
|
+
}, z.core.$strict>], "kind">;
|
|
218
|
+
expectedRevision: z.ZodNumber;
|
|
219
|
+
expectedContentHash: z.ZodString;
|
|
220
|
+
selection: z.ZodNullable<z.ZodObject<{
|
|
221
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
222
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
223
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
224
|
+
start: z.ZodNumber;
|
|
225
|
+
end: z.ZodNumber;
|
|
226
|
+
}, z.core.$strict>>;
|
|
227
|
+
}, z.core.$strict>>;
|
|
228
|
+
protection: z.ZodObject<{
|
|
229
|
+
lockedTrackIds: z.ZodNonOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
230
|
+
preserveMelody: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
intent: z.ZodEnum<{
|
|
233
|
+
propose: "propose";
|
|
234
|
+
save: "save";
|
|
235
|
+
integrate: "integrate";
|
|
236
|
+
}>;
|
|
237
|
+
}, z.core.$strict>;
|
|
238
|
+
export declare const workspaceAudioContextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
239
|
+
version: z.ZodLiteral<1>;
|
|
240
|
+
directoryName: z.ZodString;
|
|
241
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
242
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
243
|
+
path: z.ZodString;
|
|
244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
246
|
+
taskId: z.ZodString;
|
|
247
|
+
candidateId: z.ZodString;
|
|
248
|
+
}, z.core.$strict>], "kind">;
|
|
249
|
+
expectedRevision: z.ZodNumber;
|
|
250
|
+
expectedContentHash: z.ZodString;
|
|
251
|
+
selection: z.ZodNullable<z.ZodObject<{
|
|
252
|
+
voiceIds: z.ZodArray<z.ZodString>;
|
|
253
|
+
rangeSeconds: z.ZodNullable<z.ZodObject<{
|
|
254
|
+
start: z.ZodNumber;
|
|
255
|
+
end: z.ZodNumber;
|
|
256
|
+
}, z.core.$strict>>;
|
|
257
|
+
}, z.core.$strict>>;
|
|
258
|
+
protection: z.ZodObject<{
|
|
259
|
+
lockedVoiceIds: z.ZodArray<z.ZodString>;
|
|
260
|
+
preserveTargets: z.ZodArray<z.ZodString>;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
intent: z.ZodEnum<{
|
|
263
|
+
propose: "propose";
|
|
264
|
+
save: "save";
|
|
265
|
+
integrate: "integrate";
|
|
266
|
+
}>;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
version: z.ZodLiteral<2>;
|
|
269
|
+
timeUnit: z.ZodLiteral<"beats">;
|
|
270
|
+
directoryName: z.ZodString;
|
|
271
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
273
|
+
path: z.ZodString;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
276
|
+
taskId: z.ZodString;
|
|
277
|
+
candidateId: z.ZodString;
|
|
278
|
+
}, z.core.$strict>], "kind">;
|
|
279
|
+
expectedRevision: z.ZodNumber;
|
|
280
|
+
expectedContentHash: z.ZodString;
|
|
281
|
+
selection: z.ZodNullable<z.ZodObject<{
|
|
282
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
283
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
284
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
285
|
+
start: z.ZodNumber;
|
|
286
|
+
end: z.ZodNumber;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
}, z.core.$strict>>;
|
|
289
|
+
protection: z.ZodObject<{
|
|
290
|
+
lockedTrackIds: z.ZodNonOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
291
|
+
preserveMelody: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
292
|
+
}, z.core.$strict>;
|
|
293
|
+
intent: z.ZodEnum<{
|
|
294
|
+
propose: "propose";
|
|
295
|
+
save: "save";
|
|
296
|
+
integrate: "integrate";
|
|
297
|
+
}>;
|
|
298
|
+
}, z.core.$strict>], "version">;
|
|
299
|
+
export type WorkspaceAudioContext = z.infer<typeof workspaceAudioContextSchema>;
|
|
300
|
+
export declare const workspaceAudioActionSchema: z.ZodObject<{
|
|
301
|
+
action: z.ZodEnum<{
|
|
302
|
+
save: "save";
|
|
303
|
+
"create-candidate": "create-candidate";
|
|
304
|
+
render: "render";
|
|
305
|
+
adopt: "adopt";
|
|
306
|
+
rollback: "rollback";
|
|
307
|
+
bind: "bind";
|
|
308
|
+
}>;
|
|
309
|
+
requestId: z.ZodString;
|
|
310
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
312
|
+
path: z.ZodString;
|
|
313
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
314
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
315
|
+
taskId: z.ZodString;
|
|
316
|
+
candidateId: z.ZodString;
|
|
317
|
+
}, z.core.$strict>], "kind">>;
|
|
318
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
319
|
+
candidateId: z.ZodOptional<z.ZodString>;
|
|
320
|
+
document: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
321
|
+
format: z.ZodLiteral<"playcraft.audio">;
|
|
322
|
+
formatVersion: z.ZodLiteral<1>;
|
|
323
|
+
name: z.ZodString;
|
|
324
|
+
engine: z.ZodObject<{
|
|
325
|
+
id: z.ZodLiteral<"playcraft-webaudio-sfx">;
|
|
326
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
content: z.ZodObject<{
|
|
329
|
+
kind: z.ZodLiteral<"synth-sfx">;
|
|
330
|
+
durationSeconds: z.ZodNumber;
|
|
331
|
+
seed: z.ZodNumber;
|
|
332
|
+
masterGain: z.ZodNumber;
|
|
333
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
334
|
+
id: z.ZodString;
|
|
335
|
+
startSeconds: z.ZodNumber;
|
|
336
|
+
durationSeconds: z.ZodNumber;
|
|
337
|
+
gain: z.ZodNumber;
|
|
338
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
339
|
+
kind: z.ZodLiteral<"oscillator">;
|
|
340
|
+
waveform: z.ZodEnum<{
|
|
341
|
+
custom: "custom";
|
|
342
|
+
sine: "sine";
|
|
343
|
+
triangle: "triangle";
|
|
344
|
+
square: "square";
|
|
345
|
+
sawtooth: "sawtooth";
|
|
346
|
+
}>;
|
|
347
|
+
frequencyHz: z.ZodNumber;
|
|
348
|
+
harmonics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
+
ratio: z.ZodNumber;
|
|
350
|
+
amplitude: z.ZodNumber;
|
|
351
|
+
phaseRadians: z.ZodNumber;
|
|
352
|
+
}, z.core.$strict>>>;
|
|
353
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
354
|
+
kind: z.ZodLiteral<"noise">;
|
|
355
|
+
color: z.ZodEnum<{
|
|
356
|
+
white: "white";
|
|
357
|
+
pink: "pink";
|
|
358
|
+
brown: "brown";
|
|
359
|
+
}>;
|
|
360
|
+
}, z.core.$strict>]>;
|
|
361
|
+
envelope: z.ZodObject<{
|
|
362
|
+
attackSeconds: z.ZodNumber;
|
|
363
|
+
decaySeconds: z.ZodNumber;
|
|
364
|
+
sustainLevel: z.ZodNumber;
|
|
365
|
+
releaseSeconds: z.ZodNumber;
|
|
366
|
+
}, z.core.$strict>;
|
|
367
|
+
filter: z.ZodNullable<z.ZodObject<{
|
|
368
|
+
type: z.ZodEnum<{
|
|
369
|
+
lowpass: "lowpass";
|
|
370
|
+
highpass: "highpass";
|
|
371
|
+
bandpass: "bandpass";
|
|
372
|
+
}>;
|
|
373
|
+
cutoffHz: z.ZodNumber;
|
|
374
|
+
resonance: z.ZodNumber;
|
|
375
|
+
}, z.core.$strict>>;
|
|
376
|
+
}, z.core.$strict>>;
|
|
377
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
378
|
+
target: z.ZodString;
|
|
379
|
+
interpolation: z.ZodEnum<{
|
|
380
|
+
linear: "linear";
|
|
381
|
+
step: "step";
|
|
382
|
+
}>;
|
|
383
|
+
points: z.ZodArray<z.ZodObject<{
|
|
384
|
+
timeSeconds: z.ZodNumber;
|
|
385
|
+
value: z.ZodNumber;
|
|
386
|
+
}, z.core.$strict>>;
|
|
387
|
+
}, z.core.$strict>>;
|
|
388
|
+
}, z.core.$strict>;
|
|
389
|
+
dependencies: z.ZodArray<z.ZodNever>;
|
|
390
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
391
|
+
format: z.ZodLiteral<"playcraft.score">;
|
|
392
|
+
formatVersion: z.ZodLiteral<1>;
|
|
393
|
+
name: z.ZodString;
|
|
394
|
+
engine: z.ZodObject<{
|
|
395
|
+
id: z.ZodLiteral<"playcraft-webaudio-score">;
|
|
396
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
content: z.ZodObject<{
|
|
399
|
+
kind: z.ZodLiteral<"score">;
|
|
400
|
+
tempoBpm: z.ZodNumber;
|
|
401
|
+
timeSignature: z.ZodObject<{
|
|
402
|
+
numerator: z.ZodNumber;
|
|
403
|
+
denominator: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<16>]>;
|
|
404
|
+
}, z.core.$strict>;
|
|
405
|
+
lengthBeats: z.ZodNumber;
|
|
406
|
+
masterGain: z.ZodNumber;
|
|
407
|
+
loop: z.ZodObject<{
|
|
408
|
+
enabled: z.ZodBoolean;
|
|
409
|
+
startBeat: z.ZodNumber;
|
|
410
|
+
endBeat: z.ZodNumber;
|
|
411
|
+
}, z.core.$strict>;
|
|
412
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
413
|
+
id: z.ZodString;
|
|
414
|
+
name: z.ZodString;
|
|
415
|
+
instrument: z.ZodEnum<{
|
|
416
|
+
sine: "sine";
|
|
417
|
+
piano: "piano";
|
|
418
|
+
bell: "bell";
|
|
419
|
+
bass: "bass";
|
|
420
|
+
pad: "pad";
|
|
421
|
+
drums: "drums";
|
|
422
|
+
}>;
|
|
423
|
+
gain: z.ZodNumber;
|
|
424
|
+
muted: z.ZodBoolean;
|
|
425
|
+
solo: z.ZodBoolean;
|
|
426
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
427
|
+
id: z.ZodString;
|
|
428
|
+
startBeat: z.ZodNumber;
|
|
429
|
+
durationBeats: z.ZodNumber;
|
|
430
|
+
pitch: z.ZodNumber;
|
|
431
|
+
velocity: z.ZodNumber;
|
|
432
|
+
}, z.core.$strict>>;
|
|
433
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
434
|
+
target: z.ZodLiteral<"gain">;
|
|
435
|
+
interpolation: z.ZodEnum<{
|
|
436
|
+
linear: "linear";
|
|
437
|
+
step: "step";
|
|
438
|
+
}>;
|
|
439
|
+
points: z.ZodArray<z.ZodObject<{
|
|
440
|
+
beat: z.ZodNumber;
|
|
441
|
+
value: z.ZodNumber;
|
|
442
|
+
}, z.core.$strict>>;
|
|
443
|
+
}, z.core.$strict>>;
|
|
444
|
+
}, z.core.$strict>>;
|
|
445
|
+
}, z.core.$strict>;
|
|
446
|
+
dependencies: z.ZodArray<z.ZodNever>;
|
|
447
|
+
}, z.core.$strict>]>>;
|
|
448
|
+
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
449
|
+
expectedContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
450
|
+
path: z.ZodOptional<z.ZodString>;
|
|
451
|
+
expectedDestinationRevision: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
expectedDestinationContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
453
|
+
versionRevision: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
eventName: z.ZodOptional<z.ZodString>;
|
|
455
|
+
protection: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
456
|
+
lockedVoiceIds: z.ZodArray<z.ZodString>;
|
|
457
|
+
preserveTargets: z.ZodArray<z.ZodString>;
|
|
458
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
459
|
+
lockedTrackIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
460
|
+
preserveMelody: z.ZodOptional<z.ZodBoolean>;
|
|
461
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
462
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
463
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
464
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
465
|
+
start: z.ZodNumber;
|
|
466
|
+
end: z.ZodNumber;
|
|
467
|
+
}, z.core.$strict>>;
|
|
468
|
+
}, z.core.$strict>>;
|
|
469
|
+
}, z.core.$strict>]>>;
|
|
470
|
+
}, z.core.$strict>;
|
|
471
|
+
export type WorkspaceAudioAction = z.infer<typeof workspaceAudioActionSchema>;
|
|
472
|
+
export declare const workspaceAudioToolReadSchema: z.ZodObject<{
|
|
473
|
+
workspaceId: z.ZodString;
|
|
474
|
+
directoryName: z.ZodString;
|
|
475
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
476
|
+
action: z.ZodEnum<{
|
|
477
|
+
capabilities: "capabilities";
|
|
478
|
+
read: "read";
|
|
479
|
+
}>;
|
|
480
|
+
path: z.ZodOptional<z.ZodString>;
|
|
481
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
482
|
+
candidateId: z.ZodOptional<z.ZodString>;
|
|
483
|
+
}, z.core.$strict>;
|
|
484
|
+
export declare const workspaceAudioToolWriteSchema: z.ZodObject<{
|
|
485
|
+
workspaceId: z.ZodString;
|
|
486
|
+
directoryName: z.ZodString;
|
|
487
|
+
audioScoreProtocolVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
488
|
+
request: z.ZodObject<{
|
|
489
|
+
action: z.ZodEnum<{
|
|
490
|
+
save: "save";
|
|
491
|
+
"create-candidate": "create-candidate";
|
|
492
|
+
render: "render";
|
|
493
|
+
adopt: "adopt";
|
|
494
|
+
rollback: "rollback";
|
|
495
|
+
bind: "bind";
|
|
496
|
+
}>;
|
|
497
|
+
requestId: z.ZodString;
|
|
498
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
499
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
500
|
+
path: z.ZodString;
|
|
501
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
502
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
503
|
+
taskId: z.ZodString;
|
|
504
|
+
candidateId: z.ZodString;
|
|
505
|
+
}, z.core.$strict>], "kind">>;
|
|
506
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
507
|
+
candidateId: z.ZodOptional<z.ZodString>;
|
|
508
|
+
document: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
509
|
+
format: z.ZodLiteral<"playcraft.audio">;
|
|
510
|
+
formatVersion: z.ZodLiteral<1>;
|
|
511
|
+
name: z.ZodString;
|
|
512
|
+
engine: z.ZodObject<{
|
|
513
|
+
id: z.ZodLiteral<"playcraft-webaudio-sfx">;
|
|
514
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
content: z.ZodObject<{
|
|
517
|
+
kind: z.ZodLiteral<"synth-sfx">;
|
|
518
|
+
durationSeconds: z.ZodNumber;
|
|
519
|
+
seed: z.ZodNumber;
|
|
520
|
+
masterGain: z.ZodNumber;
|
|
521
|
+
voices: z.ZodArray<z.ZodObject<{
|
|
522
|
+
id: z.ZodString;
|
|
523
|
+
startSeconds: z.ZodNumber;
|
|
524
|
+
durationSeconds: z.ZodNumber;
|
|
525
|
+
gain: z.ZodNumber;
|
|
526
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
527
|
+
kind: z.ZodLiteral<"oscillator">;
|
|
528
|
+
waveform: z.ZodEnum<{
|
|
529
|
+
custom: "custom";
|
|
530
|
+
sine: "sine";
|
|
531
|
+
triangle: "triangle";
|
|
532
|
+
square: "square";
|
|
533
|
+
sawtooth: "sawtooth";
|
|
534
|
+
}>;
|
|
535
|
+
frequencyHz: z.ZodNumber;
|
|
536
|
+
harmonics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
537
|
+
ratio: z.ZodNumber;
|
|
538
|
+
amplitude: z.ZodNumber;
|
|
539
|
+
phaseRadians: z.ZodNumber;
|
|
540
|
+
}, z.core.$strict>>>;
|
|
541
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
542
|
+
kind: z.ZodLiteral<"noise">;
|
|
543
|
+
color: z.ZodEnum<{
|
|
544
|
+
white: "white";
|
|
545
|
+
pink: "pink";
|
|
546
|
+
brown: "brown";
|
|
547
|
+
}>;
|
|
548
|
+
}, z.core.$strict>]>;
|
|
549
|
+
envelope: z.ZodObject<{
|
|
550
|
+
attackSeconds: z.ZodNumber;
|
|
551
|
+
decaySeconds: z.ZodNumber;
|
|
552
|
+
sustainLevel: z.ZodNumber;
|
|
553
|
+
releaseSeconds: z.ZodNumber;
|
|
554
|
+
}, z.core.$strict>;
|
|
555
|
+
filter: z.ZodNullable<z.ZodObject<{
|
|
556
|
+
type: z.ZodEnum<{
|
|
557
|
+
lowpass: "lowpass";
|
|
558
|
+
highpass: "highpass";
|
|
559
|
+
bandpass: "bandpass";
|
|
560
|
+
}>;
|
|
561
|
+
cutoffHz: z.ZodNumber;
|
|
562
|
+
resonance: z.ZodNumber;
|
|
563
|
+
}, z.core.$strict>>;
|
|
564
|
+
}, z.core.$strict>>;
|
|
565
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
566
|
+
target: z.ZodString;
|
|
567
|
+
interpolation: z.ZodEnum<{
|
|
568
|
+
linear: "linear";
|
|
569
|
+
step: "step";
|
|
570
|
+
}>;
|
|
571
|
+
points: z.ZodArray<z.ZodObject<{
|
|
572
|
+
timeSeconds: z.ZodNumber;
|
|
573
|
+
value: z.ZodNumber;
|
|
574
|
+
}, z.core.$strict>>;
|
|
575
|
+
}, z.core.$strict>>;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
dependencies: z.ZodArray<z.ZodNever>;
|
|
578
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
579
|
+
format: z.ZodLiteral<"playcraft.score">;
|
|
580
|
+
formatVersion: z.ZodLiteral<1>;
|
|
581
|
+
name: z.ZodString;
|
|
582
|
+
engine: z.ZodObject<{
|
|
583
|
+
id: z.ZodLiteral<"playcraft-webaudio-score">;
|
|
584
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
585
|
+
}, z.core.$strict>;
|
|
586
|
+
content: z.ZodObject<{
|
|
587
|
+
kind: z.ZodLiteral<"score">;
|
|
588
|
+
tempoBpm: z.ZodNumber;
|
|
589
|
+
timeSignature: z.ZodObject<{
|
|
590
|
+
numerator: z.ZodNumber;
|
|
591
|
+
denominator: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<16>]>;
|
|
592
|
+
}, z.core.$strict>;
|
|
593
|
+
lengthBeats: z.ZodNumber;
|
|
594
|
+
masterGain: z.ZodNumber;
|
|
595
|
+
loop: z.ZodObject<{
|
|
596
|
+
enabled: z.ZodBoolean;
|
|
597
|
+
startBeat: z.ZodNumber;
|
|
598
|
+
endBeat: z.ZodNumber;
|
|
599
|
+
}, z.core.$strict>;
|
|
600
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
601
|
+
id: z.ZodString;
|
|
602
|
+
name: z.ZodString;
|
|
603
|
+
instrument: z.ZodEnum<{
|
|
604
|
+
sine: "sine";
|
|
605
|
+
piano: "piano";
|
|
606
|
+
bell: "bell";
|
|
607
|
+
bass: "bass";
|
|
608
|
+
pad: "pad";
|
|
609
|
+
drums: "drums";
|
|
610
|
+
}>;
|
|
611
|
+
gain: z.ZodNumber;
|
|
612
|
+
muted: z.ZodBoolean;
|
|
613
|
+
solo: z.ZodBoolean;
|
|
614
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
615
|
+
id: z.ZodString;
|
|
616
|
+
startBeat: z.ZodNumber;
|
|
617
|
+
durationBeats: z.ZodNumber;
|
|
618
|
+
pitch: z.ZodNumber;
|
|
619
|
+
velocity: z.ZodNumber;
|
|
620
|
+
}, z.core.$strict>>;
|
|
621
|
+
automation: z.ZodArray<z.ZodObject<{
|
|
622
|
+
target: z.ZodLiteral<"gain">;
|
|
623
|
+
interpolation: z.ZodEnum<{
|
|
624
|
+
linear: "linear";
|
|
625
|
+
step: "step";
|
|
626
|
+
}>;
|
|
627
|
+
points: z.ZodArray<z.ZodObject<{
|
|
628
|
+
beat: z.ZodNumber;
|
|
629
|
+
value: z.ZodNumber;
|
|
630
|
+
}, z.core.$strict>>;
|
|
631
|
+
}, z.core.$strict>>;
|
|
632
|
+
}, z.core.$strict>>;
|
|
633
|
+
}, z.core.$strict>;
|
|
634
|
+
dependencies: z.ZodArray<z.ZodNever>;
|
|
635
|
+
}, z.core.$strict>]>>;
|
|
636
|
+
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
expectedContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
+
path: z.ZodOptional<z.ZodString>;
|
|
639
|
+
expectedDestinationRevision: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
expectedDestinationContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
|
+
versionRevision: z.ZodOptional<z.ZodNumber>;
|
|
642
|
+
eventName: z.ZodOptional<z.ZodString>;
|
|
643
|
+
protection: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
644
|
+
lockedVoiceIds: z.ZodArray<z.ZodString>;
|
|
645
|
+
preserveTargets: z.ZodArray<z.ZodString>;
|
|
646
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
647
|
+
lockedTrackIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
648
|
+
preserveMelody: z.ZodOptional<z.ZodBoolean>;
|
|
649
|
+
selection: z.ZodOptional<z.ZodObject<{
|
|
650
|
+
trackIds: z.ZodArray<z.ZodString>;
|
|
651
|
+
noteIds: z.ZodArray<z.ZodString>;
|
|
652
|
+
rangeBeats: z.ZodNullable<z.ZodObject<{
|
|
653
|
+
start: z.ZodNumber;
|
|
654
|
+
end: z.ZodNumber;
|
|
655
|
+
}, z.core.$strict>>;
|
|
656
|
+
}, z.core.$strict>>;
|
|
657
|
+
}, z.core.$strict>]>>;
|
|
658
|
+
}, z.core.$strict>;
|
|
659
|
+
}, z.core.$strict>;
|
|
660
|
+
export declare function isParametricAudioRequest(value: {
|
|
661
|
+
kind: string;
|
|
662
|
+
representation?: string;
|
|
663
|
+
}): boolean;
|
|
664
|
+
//# sourceMappingURL=audio-asset-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-asset-protocol.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/audio-asset-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B,+BAA+B,CAAC;AAC5E,eAAO,MAAM,qCAAqC,qCAAqC,CAAC;AAMxF,6GAA6G;AAC7G,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAQpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;kBAM7B,CAAC;AACZ,eAAO,MAAM,0BAA0B;;;;;;;4BAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B;;;;;;kBAG9B,CAAC;AACZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO3B,CAAC;AACZ,eAAO,MAAM,6BAA6B;;;;;;;kBAAuB,CAAC;AAClE,eAAO,MAAM,8BAA8B;;;;;;;;;;;kBAAwB,CAAC;AACpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;oBAAwF,CAAC;AACpI,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAM7B,CAAC;AACZ,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAA4F,CAAC;AACrI,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAcrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,eAAO,MAAM,4BAA4B;;;;;;;;;;;kBAE9B,CAAC;AACZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE/B,CAAC;AAEZ,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAElG"}
|