@vivix-labs/project-studio 0.0.0-stage → 1.0.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/Inter-LICENSE.txt +93 -0
  2. package/dist/UI-LICENSE.txt +21 -0
  3. package/dist/assets/35a50-G5EJUNOC.svg +6 -0
  4. package/dist/assets/369ca-BISNKZ3M.svg +6 -0
  5. package/dist/assets/441bc-BCMNQ72W.svg +6 -0
  6. package/dist/assets/483f0-T6ZAGTDG.svg +6 -0
  7. package/dist/assets/6911b-ESLYKSC6.svg +6 -0
  8. package/dist/assets/Inter-LICENSE.txt +93 -0
  9. package/dist/assets/UI-system-LICENSE.txt +21 -0
  10. package/dist/assets/add-JY533O73.svg +5 -0
  11. package/dist/assets/area-P2WOMBT5.svg +9 -0
  12. package/dist/assets/b70bb-BTTOKPOH.svg +6 -0
  13. package/dist/assets/b9919-3S3O6YOT.svg +6 -0
  14. package/dist/assets/calendar-JI6USFRJ.svg +1 -0
  15. package/dist/assets/check-JSRRIXN5.svg +5 -0
  16. package/dist/assets/check-on-content-FQUVG3IZ.svg +5 -0
  17. package/dist/assets/chevron-down-K7YKS2EY.svg +5 -0
  18. package/dist/assets/chevron-left-JQCLK2WZ.svg +3 -0
  19. package/dist/assets/chevron-right-TNE35DBJ.svg +3 -0
  20. package/dist/assets/chevron-up-VBHYAJVB.svg +5 -0
  21. package/dist/assets/clear-XNEZJKFC.svg +5 -0
  22. package/dist/assets/close-GO5F7YFS.svg +10 -0
  23. package/dist/assets/dccd4-CZJXWICW.svg +6 -0
  24. package/dist/assets/dd163-3S3O6YOT.svg +6 -0
  25. package/dist/assets/draw-FOFX5TOM.svg +6 -0
  26. package/dist/assets/e8aed-CZJXWICW.svg +6 -0
  27. package/dist/assets/ea990-CZJXWICW.svg +6 -0
  28. package/dist/assets/expand-IAV75AFA.svg +6 -0
  29. package/dist/assets/fullscreen-L2JCXIN2.svg +6 -0
  30. package/dist/assets/grid-TLG5JYWB.svg +8 -0
  31. package/dist/assets/import-AFBUV2VV.svg +4 -0
  32. package/dist/assets/inter-latin-400-normal-55WT6UWF.woff2 +0 -0
  33. package/dist/assets/inter-latin-500-normal-W62DVTXI.woff2 +0 -0
  34. package/dist/assets/inter-latin-600-normal-R6Y2SZCR.woff2 +0 -0
  35. package/dist/assets/list-5VUAOZUH.svg +9 -0
  36. package/dist/assets/magic-OMME7FOV.svg +9 -0
  37. package/dist/assets/more-AEJ5MHWV.svg +5 -0
  38. package/dist/assets/mute-SXOSCR2U.svg +6 -0
  39. package/dist/assets/pause-2E4UY4FW.svg +6 -0
  40. package/dist/assets/play-WIIT3XQK.svg +5 -0
  41. package/dist/assets/reset-JESMTEMV.svg +6 -0
  42. package/dist/assets/search-JUOSGQRM.svg +6 -0
  43. package/dist/assets/select-VU7WR7B4.svg +7 -0
  44. package/dist/assets/sound-file-YYY6VNYN.svg +3 -0
  45. package/dist/assets/volume-2TYGJL6F.svg +6 -0
  46. package/dist/client.bundle.js +1373 -0
  47. package/dist/client.css +1900 -0
  48. package/dist/client.d.ts +19 -0
  49. package/dist/client.js +3 -0
  50. package/dist/events.d.ts +102 -0
  51. package/dist/events.js +244 -0
  52. package/dist/server.d.ts +16 -0
  53. package/dist/server.js +3502 -0
  54. package/dist/shared-BUdviVVD.d.ts +263 -0
  55. package/dist/shared.d.ts +510 -0
  56. package/dist/shared.js +228 -0
  57. package/package.json +50 -3
  58. package/schemas/billing-notice.json +16 -0
  59. package/schemas/task-notice.json +57 -0
  60. package/studio-plugin.json +40 -0
  61. package/README.md +0 -3
@@ -0,0 +1,510 @@
1
+ import * as vivix_studio_sdk_shared from 'vivix-studio/sdk/shared';
2
+ import { z } from 'vivix-studio/sdk/shared';
3
+ import { V as VersionRef, C as CallContext, R as RecordValue, D as DataAPI, J as JSONValue, a as DataWorkspace, b as SqlInput, c as SqlRow, d as VersionValue, F as FileValue } from './shared-BUdviVVD.js';
4
+
5
+ declare function taskCostLabel(task: any): string;
6
+
7
+ declare const clipScript: z.ZodObject<{
8
+ title: z.ZodString;
9
+ visual: z.ZodDefault<z.ZodString>;
10
+ voiceover: z.ZodDefault<z.ZodString>;
11
+ onScreenText: z.ZodDefault<z.ZodString>;
12
+ cta: z.ZodDefault<z.ZodString>;
13
+ plannedDurationMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
14
+ }, z.core.$strict>;
15
+ declare const adBrief: z.ZodObject<{
16
+ product: z.ZodDefault<z.ZodString>;
17
+ category: z.ZodDefault<z.ZodString>;
18
+ audience: z.ZodDefault<z.ZodString>;
19
+ sellingPoints: z.ZodDefault<z.ZodString>;
20
+ channel: z.ZodDefault<z.ZodString>;
21
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodString>>;
22
+ targetDurationMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
23
+ body: z.ZodDefault<z.ZodString>;
24
+ productRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
25
+ storeId: z.ZodUUID;
26
+ objectId: z.ZodUUID;
27
+ versionId: z.ZodUUID;
28
+ }, z.core.$strict>>>;
29
+ modelRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
30
+ storeId: z.ZodUUID;
31
+ objectId: z.ZodUUID;
32
+ versionId: z.ZodUUID;
33
+ }, z.core.$strict>>>;
34
+ }, z.core.$strict>;
35
+ declare const adStoryboard: z.ZodObject<{
36
+ brief: z.ZodObject<{
37
+ product: z.ZodDefault<z.ZodString>;
38
+ category: z.ZodDefault<z.ZodString>;
39
+ audience: z.ZodDefault<z.ZodString>;
40
+ sellingPoints: z.ZodDefault<z.ZodString>;
41
+ channel: z.ZodDefault<z.ZodString>;
42
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodString>>;
43
+ targetDurationMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
44
+ body: z.ZodDefault<z.ZodString>;
45
+ productRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
46
+ storeId: z.ZodUUID;
47
+ objectId: z.ZodUUID;
48
+ versionId: z.ZodUUID;
49
+ }, z.core.$strict>>>;
50
+ modelRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
51
+ storeId: z.ZodUUID;
52
+ objectId: z.ZodUUID;
53
+ versionId: z.ZodUUID;
54
+ }, z.core.$strict>>>;
55
+ }, z.core.$strict>;
56
+ clips: z.ZodArray<z.ZodObject<{
57
+ assetId: z.ZodUUID;
58
+ script: z.ZodObject<{
59
+ title: z.ZodString;
60
+ visual: z.ZodDefault<z.ZodString>;
61
+ voiceover: z.ZodDefault<z.ZodString>;
62
+ onScreenText: z.ZodDefault<z.ZodString>;
63
+ cta: z.ZodDefault<z.ZodString>;
64
+ plannedDurationMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
65
+ }, z.core.$strict>;
66
+ edits: z.ZodArray<z.ZodObject<{
67
+ sourceVersionId: z.ZodUUID;
68
+ editRef: z.ZodObject<{
69
+ storeId: z.ZodUUID;
70
+ objectId: z.ZodUUID;
71
+ versionId: z.ZodUUID;
72
+ }, z.core.$strict>;
73
+ }, z.core.$strict>>;
74
+ }, z.core.$strict>>;
75
+ }, z.core.$strict>;
76
+ declare const adTypeId = "studio.adStoryboard";
77
+ type AdBrief = z.infer<typeof adBrief>;
78
+ type ClipScript = z.infer<typeof clipScript>;
79
+ type AdStoryboard = z.infer<typeof adStoryboard>;
80
+ interface VideoFileRef$1 {
81
+ source: VersionRef;
82
+ fileId: string;
83
+ }
84
+ type AdVideoInput = {
85
+ kind: 'source';
86
+ file: VideoFileRef$1;
87
+ } | {
88
+ kind: 'edit';
89
+ editRef: VersionRef;
90
+ };
91
+ interface AdRecipe {
92
+ trim: {
93
+ inMs: number;
94
+ outMs: number;
95
+ };
96
+ crop: {
97
+ x: number;
98
+ y: number;
99
+ width: number;
100
+ height: number;
101
+ };
102
+ }
103
+ interface AdMediaResolver {
104
+ readonly capabilityVersion: 'media-tools/1';
105
+ readonly storeId: string;
106
+ readonly projectId: string;
107
+ resolve(input: AdVideoInput): Promise<{
108
+ file: VideoFileRef$1;
109
+ recipe: AdRecipe;
110
+ durationMs: number;
111
+ effectiveDurationMs: number;
112
+ previewUrl: string;
113
+ displayWidth?: number;
114
+ displayHeight?: number;
115
+ }>;
116
+ }
117
+ type AdSequenceEntry = {
118
+ assetId: string;
119
+ title: string;
120
+ assetRevision: number;
121
+ selectedVersionId: string | null;
122
+ candidates: Array<{
123
+ versionId: string;
124
+ versionNumber: number;
125
+ durationMs: number | null;
126
+ generation: unknown;
127
+ }>;
128
+ } & ({
129
+ state: 'ready';
130
+ input: AdVideoInput;
131
+ file: VideoFileRef$1;
132
+ previewUrl: string;
133
+ durationMs: number;
134
+ recipe: AdRecipe;
135
+ } | {
136
+ state: 'empty' | 'unavailable';
137
+ message: string;
138
+ });
139
+ interface AdSequence {
140
+ storyboardId: string;
141
+ storyboardRevision: number;
142
+ aspectRatio: string | null;
143
+ entries: AdSequenceEntry[];
144
+ actualDurationMs: number;
145
+ targetDurationMs: number | null;
146
+ }
147
+ interface AdService {
148
+ bindEdit(input: {
149
+ expectedRevision: number;
150
+ expectedAssetRevision: number;
151
+ assetId: string;
152
+ sourceVersionId: string;
153
+ editRef: VersionRef;
154
+ }, call: CallContext, media?: AdMediaResolver): Promise<RecordValue>;
155
+ resolveSequence(media?: AdMediaResolver): Promise<AdSequence>;
156
+ }
157
+ interface AdStudioProvider {
158
+ role: 'project';
159
+ data: DataAPI;
160
+ ads: AdService;
161
+ }
162
+
163
+ declare const videoFileRef: z.ZodObject<{
164
+ source: z.ZodObject<{
165
+ storeId: z.ZodUUID;
166
+ objectId: z.ZodUUID;
167
+ versionId: z.ZodUUID;
168
+ }, z.core.$strict>;
169
+ fileId: z.ZodUUID;
170
+ }, z.core.$strict>;
171
+ type VideoFileRef = z.infer<typeof videoFileRef>;
172
+
173
+ interface VideoUse {
174
+ usageId: string;
175
+ revision: number;
176
+ file: VideoFileRef;
177
+ editRef: VersionRef | null;
178
+ }
179
+
180
+ declare const studioConfig: z.ZodObject<{
181
+ role: z.ZodDefault<z.ZodEnum<{
182
+ project: "project";
183
+ coordinator: "coordinator";
184
+ }>>;
185
+ dataInstance: z.ZodDefault<z.ZodString>;
186
+ apiInstance: z.ZodDefault<z.ZodString>;
187
+ libraryInstance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
188
+ }, z.core.$strict>;
189
+ declare const versionRef: z.ZodObject<{
190
+ storeId: z.ZodUUID;
191
+ objectId: z.ZodUUID;
192
+ versionId: z.ZodUUID;
193
+ }, z.core.$strict>;
194
+ declare const tags: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
195
+ declare const kind: z.ZodEnum<{
196
+ file: "file";
197
+ text: "text";
198
+ image: "image";
199
+ video: "video";
200
+ audio: "audio";
201
+ }>;
202
+ declare const projectData: z.ZodObject<{
203
+ name: z.ZodString;
204
+ description: z.ZodDefault<z.ZodString>;
205
+ status: z.ZodDefault<z.ZodEnum<{
206
+ draft: "draft";
207
+ active: "active";
208
+ archived: "archived";
209
+ }>>;
210
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodString>>;
211
+ coverRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
212
+ storeId: z.ZodUUID;
213
+ objectId: z.ZodUUID;
214
+ versionId: z.ZodUUID;
215
+ }, z.core.$strict>>>;
216
+ briefRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
217
+ storeId: z.ZodUUID;
218
+ objectId: z.ZodUUID;
219
+ }, z.core.$strict>>>;
220
+ tags: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
221
+ }, z.core.$strict>;
222
+ declare const assetData: z.ZodObject<{
223
+ projectId: z.ZodUUID;
224
+ name: z.ZodString;
225
+ kind: z.ZodEnum<{
226
+ file: "file";
227
+ text: "text";
228
+ image: "image";
229
+ video: "video";
230
+ audio: "audio";
231
+ }>;
232
+ purpose: z.ZodDefault<z.ZodEnum<{
233
+ reference: "reference";
234
+ script: "script";
235
+ shot: "shot";
236
+ music: "music";
237
+ voice: "voice";
238
+ subtitle: "subtitle";
239
+ final: "final";
240
+ other: "other";
241
+ }>>;
242
+ origin: z.ZodEnum<{
243
+ upload: "upload";
244
+ library: "library";
245
+ generated: "generated";
246
+ authored: "authored";
247
+ }>;
248
+ orderKey: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
249
+ tags: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
250
+ lifecycle: z.ZodDefault<z.ZodEnum<{
251
+ ready: "ready";
252
+ draft: "draft";
253
+ archived: "archived";
254
+ }>>;
255
+ sourceRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
256
+ storeId: z.ZodUUID;
257
+ objectId: z.ZodUUID;
258
+ versionId: z.ZodUUID;
259
+ }, z.core.$strict>>>;
260
+ adoptedVersionId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
261
+ }, z.core.$strict>;
262
+ declare const taskStates: readonly ["queued", "submitting", "submission_unknown", "running", "cancel_requested", "remote_succeeded", "saving", "save_failed", "partial", "succeeded", "failed", "canceled"];
263
+ declare const anchor: z.ZodDiscriminatedUnion<[z.ZodObject<{
264
+ kind: z.ZodLiteral<"whole">;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ kind: z.ZodLiteral<"timeRange">;
267
+ startMs: z.ZodNumber;
268
+ endMs: z.ZodNumber;
269
+ }, z.core.$strict>], "kind">;
270
+ declare const generationInput: z.ZodObject<{
271
+ targetAssetId: z.ZodOptional<z.ZodUUID>;
272
+ taskName: z.ZodOptional<z.ZodString>;
273
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
274
+ expectedRevision: z.ZodOptional<z.ZodNumber>;
275
+ newAsset: z.ZodOptional<z.ZodObject<{
276
+ name: z.ZodString;
277
+ kind: z.ZodEnum<{
278
+ image: "image";
279
+ video: "video";
280
+ audio: "audio";
281
+ }>;
282
+ }, z.core.$strict>>;
283
+ modelId: z.ZodString;
284
+ capabilityId: z.ZodString;
285
+ prompt: z.ZodString;
286
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
287
+ outputCount: z.ZodDefault<z.ZodNumber>;
288
+ inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
289
+ ref: z.ZodObject<{
290
+ storeId: z.ZodUUID;
291
+ objectId: z.ZodUUID;
292
+ versionId: z.ZodUUID;
293
+ }, z.core.$strict>;
294
+ role: z.ZodString;
295
+ order: z.ZodNumber;
296
+ weight: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
297
+ }, z.core.$strict>>>;
298
+ baseVersionId: z.ZodOptional<z.ZodUUID>;
299
+ changeRequest: z.ZodOptional<z.ZodString>;
300
+ preserveRequest: z.ZodDefault<z.ZodString>;
301
+ anchor: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
302
+ kind: z.ZodLiteral<"whole">;
303
+ }, z.core.$strict>, z.ZodObject<{
304
+ kind: z.ZodLiteral<"timeRange">;
305
+ startMs: z.ZodNumber;
306
+ endMs: z.ZodNumber;
307
+ }, z.core.$strict>], "kind">>;
308
+ retryOfTaskId: z.ZodOptional<z.ZodUUID>;
309
+ acknowledgeUnknown: z.ZodOptional<z.ZodBoolean>;
310
+ }, z.core.$strict>;
311
+ declare const projectSettingsInput: z.ZodObject<{
312
+ projectId: z.ZodUUID;
313
+ expectedRevision: z.ZodNumber;
314
+ changes: z.ZodObject<{
315
+ name: z.ZodOptional<z.ZodString>;
316
+ description: z.ZodOptional<z.ZodString>;
317
+ tags: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
318
+ aspectRatio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ coverRef: z.ZodOptional<z.ZodNullable<z.ZodObject<{
320
+ storeId: z.ZodUUID;
321
+ objectId: z.ZodUUID;
322
+ versionId: z.ZodUUID;
323
+ }, z.core.$strict>>>;
324
+ }, z.core.$strict>;
325
+ }, z.core.$strict>;
326
+ declare const generationSubmitOperation: vivix_studio_sdk_shared.Operation<{
327
+ modelId: string;
328
+ capabilityId: string;
329
+ prompt: string;
330
+ parameters: Record<string, unknown>;
331
+ outputCount: number;
332
+ inputs: {
333
+ ref: {
334
+ storeId: string;
335
+ objectId: string;
336
+ versionId: string;
337
+ };
338
+ role: string;
339
+ order: number;
340
+ weight: number | null;
341
+ }[];
342
+ preserveRequest: string;
343
+ anchor: {
344
+ kind: "whole";
345
+ } | {
346
+ kind: "timeRange";
347
+ startMs: number;
348
+ endMs: number;
349
+ };
350
+ targetAssetId?: string | undefined;
351
+ taskName?: string | undefined;
352
+ context?: Record<string, string> | undefined;
353
+ expectedRevision?: number | undefined;
354
+ newAsset?: {
355
+ name: string;
356
+ kind: "image" | "video" | "audio";
357
+ } | undefined;
358
+ baseVersionId?: string | undefined;
359
+ changeRequest?: string | undefined;
360
+ retryOfTaskId?: string | undefined;
361
+ acknowledgeUnknown?: boolean | undefined;
362
+ }, any>;
363
+ declare const studioOperations: {
364
+ generationSubmit: vivix_studio_sdk_shared.Operation<{
365
+ modelId: string;
366
+ capabilityId: string;
367
+ prompt: string;
368
+ parameters: Record<string, unknown>;
369
+ outputCount: number;
370
+ inputs: {
371
+ ref: {
372
+ storeId: string;
373
+ objectId: string;
374
+ versionId: string;
375
+ };
376
+ role: string;
377
+ order: number;
378
+ weight: number | null;
379
+ }[];
380
+ preserveRequest: string;
381
+ anchor: {
382
+ kind: "whole";
383
+ } | {
384
+ kind: "timeRange";
385
+ startMs: number;
386
+ endMs: number;
387
+ };
388
+ targetAssetId?: string | undefined;
389
+ taskName?: string | undefined;
390
+ context?: Record<string, string> | undefined;
391
+ expectedRevision?: number | undefined;
392
+ newAsset?: {
393
+ name: string;
394
+ kind: "image" | "video" | "audio";
395
+ } | undefined;
396
+ baseVersionId?: string | undefined;
397
+ changeRequest?: string | undefined;
398
+ retryOfTaskId?: string | undefined;
399
+ acknowledgeUnknown?: boolean | undefined;
400
+ }, any>;
401
+ };
402
+ type GenerationInput = z.infer<typeof generationInput>;
403
+ type StudioConfig = z.infer<typeof studioConfig>;
404
+ type StudioSource = 'projects' | 'assets' | 'tasks';
405
+ interface StudioCatalogEntry {
406
+ id: string;
407
+ name: string;
408
+ available: boolean;
409
+ }
410
+ type StudioQueryInput = SqlInput & {
411
+ source: StudioSource;
412
+ catalog?: StudioCatalogEntry[];
413
+ };
414
+ interface StudioFavoriteResult {
415
+ favorite: RecordValue | null;
416
+ ref: VersionRef;
417
+ enabled: boolean;
418
+ }
419
+ interface StudioExportEntry {
420
+ ref: VersionRef;
421
+ fileId: string;
422
+ name: string;
423
+ sizeBytes: number;
424
+ open(signal: AbortSignal): Promise<ReadableStream<Uint8Array>>;
425
+ }
426
+ interface StudioGlobal {
427
+ query(input: StudioQueryInput): Promise<{
428
+ items: SqlRow[];
429
+ nextOffset: number | null;
430
+ }>;
431
+ asset(ref: VersionRef): Promise<{
432
+ item: SqlRow;
433
+ versions: VersionValue[];
434
+ files: FileValue[];
435
+ }>;
436
+ favorite(input: {
437
+ ref: VersionRef;
438
+ enabled: boolean;
439
+ }, call: CallContext): Promise<StudioFavoriteResult>;
440
+ exportEntries(refs: VersionRef[]): Promise<StudioExportEntry[]>;
441
+ }
442
+ declare const favoriteData: z.ZodObject<{
443
+ ref: z.ZodObject<{
444
+ storeId: z.ZodUUID;
445
+ objectId: z.ZodUUID;
446
+ versionId: z.ZodUUID;
447
+ }, z.core.$strict>;
448
+ }, z.core.$strict>;
449
+ declare const globalQueryInput: z.ZodObject<{
450
+ sql: z.ZodString;
451
+ params: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>]>>;
452
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
453
+ maxRows: z.ZodOptional<z.ZodNumber>;
454
+ limit: z.ZodOptional<z.ZodNumber>;
455
+ offset: z.ZodOptional<z.ZodNumber>;
456
+ source: z.ZodEnum<{
457
+ projects: "projects";
458
+ assets: "assets";
459
+ tasks: "tasks";
460
+ }>;
461
+ catalog: z.ZodOptional<z.ZodArray<z.ZodObject<{
462
+ id: z.ZodString;
463
+ name: z.ZodString;
464
+ available: z.ZodBoolean;
465
+ }, z.core.$strict>>>;
466
+ }, z.core.$strict>;
467
+ declare const studioDefaultQueries: Record<StudioSource, string>;
468
+ interface StudioAPI {
469
+ readonly role: 'project' | 'coordinator';
470
+ readonly data: DataAPI;
471
+ readonly global?: StudioGlobal;
472
+ readonly derivedVideos?: DerivedVideoPublisher;
473
+ }
474
+ declare function generationOperation(model: any, kind: string, referenceCount: number, action?: string): any;
475
+ declare function generationParameters(model: any, operation: string, raw: string, kinds: string[]): string;
476
+
477
+ interface DerivedVideoImport {
478
+ stagingFileId: string;
479
+ inputs: {
480
+ file: {
481
+ source: VersionRef;
482
+ fileId: string;
483
+ };
484
+ editRef: VersionRef | null;
485
+ recipe: JSONValue;
486
+ }[];
487
+ provenance: JSONValue;
488
+ outputName: string;
489
+ publicationKey: string;
490
+ completion: {
491
+ jobId: string;
492
+ expectedRevision: number;
493
+ executionToken: string;
494
+ };
495
+ }
496
+ interface DerivedVideoPublisher {
497
+ readonly capabilityVersion: 'derived-video/1';
498
+ readonly storeId: string;
499
+ readonly projectId: string;
500
+ assertSameWorkspace(provider: DataWorkspace, projectId: string): void;
501
+ importDerivedVideo(input: DerivedVideoImport, call: CallContext, complete: (result: {
502
+ source: VersionRef;
503
+ fileId: string;
504
+ }) => void): Promise<{
505
+ source: VersionRef;
506
+ fileId: string;
507
+ }>;
508
+ }
509
+
510
+ export { type AdBrief, type AdMediaResolver, type AdRecipe, type AdSequence, type AdSequenceEntry, type AdService, type AdStoryboard, type AdStudioProvider, type AdVideoInput, type ClipScript, type DerivedVideoImport, type DerivedVideoPublisher, type GenerationInput, SqlInput, SqlRow, type StudioAPI, type StudioCatalogEntry, type StudioConfig, type StudioExportEntry, type StudioFavoriteResult, type StudioGlobal, type StudioQueryInput, type StudioSource, VersionRef, type VideoFileRef$1 as VideoFileRef, type VideoUse, adBrief, adStoryboard, adTypeId, anchor, assetData, clipScript, favoriteData, generationInput, generationOperation, generationParameters, generationSubmitOperation, globalQueryInput, kind, projectData, projectSettingsInput, studioConfig, studioDefaultQueries, studioOperations, tags, taskCostLabel, taskStates, versionRef };