@indreamai/client 0.4.0 → 0.5.0

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/index.d.cts CHANGED
@@ -12,7 +12,7 @@ interface components {
12
12
  CreateProjectRequest: {
13
13
  title?: string;
14
14
  description?: string | null;
15
- editorState: components["schemas"]["editor-state.v1.schema"];
15
+ editorState: components['schemas']['editor-state.v1.schema'];
16
16
  stateVersion?: string;
17
17
  };
18
18
  PatchProjectRequest: {
@@ -21,23 +21,23 @@ interface components {
21
21
  };
22
22
  /** @description Request body for autosave-style editor state sync. */
23
23
  SyncProjectRequest: {
24
- editorState: components["schemas"]["editor-state.v1.schema"];
24
+ editorState: components['schemas']['editor-state.v1.schema'];
25
25
  stateVersion?: string;
26
26
  };
27
27
  /** @description Request body for stateless export creation. */
28
28
  CreateExportRequest: {
29
29
  clientTaskId?: string;
30
- editorState: components["schemas"]["editor-state.v1.schema"];
30
+ editorState: components['schemas']['editor-state.v1.schema'];
31
31
  stateVersion?: string;
32
32
  /** @enum {integer} */
33
33
  fps: 30 | 60;
34
34
  compositionWidth?: number;
35
35
  compositionHeight?: number;
36
36
  /** @enum {string} */
37
- ratio: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "custom";
37
+ ratio: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | 'custom';
38
38
  scale: number;
39
39
  /** @enum {string} */
40
- format: "mp4" | "webm";
40
+ format: 'mp4' | 'webm';
41
41
  callbackUrl?: string;
42
42
  callbackHeaders?: {
43
43
  [key: string]: string;
@@ -49,10 +49,10 @@ interface components {
49
49
  /** @enum {integer} */
50
50
  fps: 30 | 60;
51
51
  /** @enum {string} */
52
- ratio: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "custom";
52
+ ratio: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | 'custom';
53
53
  scale: number;
54
54
  /** @enum {string} */
55
- format: "mp4" | "webm";
55
+ format: 'mp4' | 'webm';
56
56
  callbackUrl?: string;
57
57
  callbackHeaders?: {
58
58
  [key: string]: string;
@@ -73,8 +73,8 @@ interface components {
73
73
  updatedAt: string;
74
74
  };
75
75
  /** @description Project detail response, including the latest persisted editor state. */
76
- ProjectDetail: components["schemas"]["ProjectSummary"] & {
77
- editorState: components["schemas"]["editor-state.v1.schema"];
76
+ ProjectDetail: components['schemas']['ProjectSummary'] & {
77
+ editorState: components['schemas']['editor-state.v1.schema'];
78
78
  stateVersion: string;
79
79
  };
80
80
  ProjectMetadata: {
@@ -109,190 +109,6 @@ interface components {
109
109
  width: number | null;
110
110
  height: number | null;
111
111
  duration: number | null;
112
- captions?: components["schemas"]["CaptionEntry"][];
113
- /** @enum {string} */
114
- timingGranularity?: "word" | "line";
115
- };
116
- CaptionEntry: {
117
- text: string;
118
- startMs: number;
119
- endMs: number;
120
- timestampMs?: number | null;
121
- };
122
- IllustrationSearchItem: {
123
- /** Format: uuid */
124
- illustrationId: string;
125
- illustrationName: string;
126
- title: string;
127
- keywords: string[];
128
- };
129
- VoiceSearchItem: {
130
- /** Format: uuid */
131
- voiceId: string;
132
- name: string;
133
- languageTags: string[];
134
- previewUrl: string | null;
135
- isSystem: boolean;
136
- };
137
- /** @enum {string} */
138
- MediaModelType: "image" | "video" | "music";
139
- /** @enum {string} */
140
- MediaAssetMode: "TEXT" | "FIRST_FRAME" | "LAST_FRAME" | "FIRST_LAST_FRAME" | "REFERENCE_IMAGE" | "REFERENCE_MEDIA" | "VIDEO_EDITING";
141
- MediaModelSupports: {
142
- textPrompt: boolean;
143
- referenceAssets: boolean;
144
- negativePrompt: boolean;
145
- durationControl: boolean;
146
- aspectRatioControl: boolean;
147
- textRendering: boolean;
148
- humanRealism: boolean;
149
- styleControl: boolean;
150
- lyrics: boolean;
151
- instrumentalToggle: boolean;
152
- };
153
- MediaModelListItem: {
154
- capabilityKey: string;
155
- name: string;
156
- type: components["schemas"]["MediaModelType"];
157
- summary: string;
158
- tags: string[];
159
- assetModes: components["schemas"]["MediaAssetMode"][];
160
- duration: string | null;
161
- isMemberOnly: boolean;
162
- supports: components["schemas"]["MediaModelSupports"];
163
- badges: string[];
164
- };
165
- MediaModelFieldSchema: {
166
- name: string;
167
- /** @enum {string} */
168
- type: "string" | "number" | "boolean" | "string[]";
169
- required: boolean;
170
- description: string;
171
- enum?: (string | number)[];
172
- min?: number;
173
- max?: number;
174
- step?: number;
175
- default?: unknown;
176
- };
177
- MediaModelDetail: components["schemas"]["MediaModelListItem"] & {
178
- defaults: {
179
- [key: string]: unknown;
180
- };
181
- inputSchema: components["schemas"]["MediaModelFieldSchema"][];
182
- examples: components["schemas"]["MediaGenerationRequest"][];
183
- recommendationHints: string[];
184
- };
185
- MediaModelRecommendationConstraints: {
186
- aspectRatio?: string;
187
- durationSeconds?: number;
188
- hasReferenceAssets?: boolean;
189
- /** @enum {string} */
190
- qualityPriority?: "low" | "balanced" | "high";
191
- /** @enum {string} */
192
- speedPriority?: "low" | "balanced" | "high";
193
- /** @enum {string} */
194
- budgetPriority?: "low" | "balanced" | "high";
195
- needsNegativePrompt?: boolean;
196
- needsTextRendering?: boolean;
197
- needsHumanRealism?: boolean;
198
- needsStyleControl?: boolean;
199
- needsLyrics?: boolean;
200
- forceInstrumental?: boolean;
201
- };
202
- MediaModelRecommendationRequest: {
203
- type: components["schemas"]["MediaModelType"];
204
- /** @enum {string} */
205
- goal: "product-shot" | "concept-art" | "illustration" | "text-graphic" | "cinematic-broll" | "product-demo" | "social-short" | "talking-head" | "instrumental-bed" | "cinematic-score" | "upbeat-theme" | "lyrics-song" | "ambient-texture" | "quick-draft";
206
- /** @enum {string} */
207
- promptMode?: "textOnly" | "referenceFirst" | "editExisting";
208
- constraints?: components["schemas"]["MediaModelRecommendationConstraints"];
209
- /** @default 3 */
210
- maxResults: number;
211
- };
212
- MediaModelRecommendationItem: {
213
- capabilityKey: string;
214
- name: string;
215
- rank: number;
216
- /** @enum {string} */
217
- badge: "recommended" | "fastest" | "highest-quality";
218
- why: string;
219
- tradeoffs: string[];
220
- minimalRequestExample: components["schemas"]["MediaGenerationRequest"];
221
- };
222
- /**
223
- * @description Generic media generation request. Supported fields depend on `capabilityKey`.
224
- * Use capability-specific docs or product guidance for the exact accepted payload shape.
225
- */
226
- MediaGenerationRequest: {
227
- capabilityKey: string;
228
- /** Format: uuid */
229
- projectId?: string;
230
- /** Format: uuid */
231
- parentAssetId?: string;
232
- /** Format: uuid */
233
- sourceAssetId?: string;
234
- /** @enum {string} */
235
- originRefType?: "EDITOR" | "CANVAS" | "WORKSPACE" | "GENERATOR" | "TOOL" | "TTS" | "VOICE_CLONE";
236
- prompt?: string;
237
- negativePrompt?: string;
238
- referenceAssets?: string[];
239
- videoEditAssets?: string[];
240
- /** Format: uuid */
241
- firstFrameAssetId?: string;
242
- /** Format: uuid */
243
- lastFrameAssetId?: string;
244
- assetMode?: string;
245
- resolution?: string;
246
- aspectRatio?: string;
247
- duration?: string;
248
- width?: number;
249
- height?: number;
250
- quantity?: number;
251
- seed?: number;
252
- steps?: number;
253
- outputFormat?: string;
254
- outputQuality?: number;
255
- referenceStrength?: number;
256
- guidanceScale?: number;
257
- styleId?: string;
258
- loraIds?: string[];
259
- inputExtra?: {
260
- [key: string]: unknown;
261
- };
262
- } & {
263
- [key: string]: unknown;
264
- };
265
- MediaTaskResponseData: {
266
- /** Format: uuid */
267
- taskId: string;
268
- outTaskId?: string | null;
269
- };
270
- TtsCreateRequest: {
271
- /** Format: uuid */
272
- voiceId: string;
273
- text: string;
274
- };
275
- TtsTaskResponseData: {
276
- /** Format: uuid */
277
- taskId: string;
278
- };
279
- AutoCaptionsCreateRequest: {
280
- /** Format: uuid */
281
- assetId: string;
282
- };
283
- CaptionPreview: {
284
- lineCount: number;
285
- /** @enum {string} */
286
- timingGranularity: "word" | "line";
287
- };
288
- AutoCaptionsResponseData: {
289
- /** Format: uuid */
290
- taskId: string;
291
- /** Format: uuid */
292
- assetId: string;
293
- billedSeconds: number;
294
- chargedCredits: string;
295
- preview: components["schemas"]["CaptionPreview"];
296
112
  };
297
113
  /** @description Export creation response shared by stateless and project-based export routes. */
298
114
  CreateExportResponseData: {
@@ -314,7 +130,7 @@ interface components {
314
130
  createdByApiKeyId: string | null;
315
131
  clientTaskId: string | null;
316
132
  /** @enum {string} */
317
- status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "PAUSED" | "CANCELED";
133
+ status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PAUSED' | 'CANCELED';
318
134
  progress: number;
319
135
  error: string | null;
320
136
  outputUrl: string | null;
@@ -397,28 +213,28 @@ interface components {
397
213
  };
398
214
  EditorValidationResult: {
399
215
  valid: boolean;
400
- errors: components["schemas"]["EditorValidationError"][];
216
+ errors: components['schemas']['EditorValidationError'][];
401
217
  };
402
218
  ProjectSummaryEnvelope: {
403
- data: components["schemas"]["ProjectSummary"];
219
+ data: components['schemas']['ProjectSummary'];
404
220
  meta: {
405
221
  [key: string]: unknown;
406
222
  };
407
223
  };
408
224
  ProjectDetailEnvelope: {
409
- data: components["schemas"]["ProjectDetail"];
225
+ data: components['schemas']['ProjectDetail'];
410
226
  meta: {
411
227
  [key: string]: unknown;
412
228
  };
413
229
  };
414
230
  ProjectMetadataEnvelope: {
415
- data: components["schemas"]["ProjectMetadata"];
231
+ data: components['schemas']['ProjectMetadata'];
416
232
  meta: {
417
233
  [key: string]: unknown;
418
234
  };
419
235
  };
420
236
  SyncProjectEnvelope: {
421
- data: components["schemas"]["SyncProjectResponseData"];
237
+ data: components['schemas']['SyncProjectResponseData'];
422
238
  meta: {
423
239
  [key: string]: unknown;
424
240
  };
@@ -434,13 +250,13 @@ interface components {
434
250
  };
435
251
  };
436
252
  AssetEnvelope: {
437
- data: components["schemas"]["Asset"];
253
+ data: components['schemas']['Asset'];
438
254
  meta: {
439
255
  [key: string]: unknown;
440
256
  };
441
257
  };
442
258
  ListAssetsResponseEnvelope: {
443
- data: components["schemas"]["Asset"][];
259
+ data: components['schemas']['Asset'][];
444
260
  meta: {
445
261
  nextPageCursor?: string | null;
446
262
  } & {
@@ -481,19 +297,19 @@ interface components {
481
297
  };
482
298
  };
483
299
  CreateExportResponseEnvelope: {
484
- data: components["schemas"]["CreateExportResponseData"];
300
+ data: components['schemas']['CreateExportResponseData'];
485
301
  meta: {
486
302
  [key: string]: unknown;
487
303
  };
488
304
  };
489
305
  GetExportResponseEnvelope: {
490
- data: components["schemas"]["ExportTask"];
306
+ data: components['schemas']['ExportTask'];
491
307
  meta: {
492
308
  [key: string]: unknown;
493
309
  };
494
310
  };
495
311
  ListExportsResponseEnvelope: {
496
- data: components["schemas"]["ExportTask"][];
312
+ data: components['schemas']['ExportTask'][];
497
313
  meta: {
498
314
  nextPageCursor?: string | null;
499
315
  } & {
@@ -501,7 +317,7 @@ interface components {
501
317
  };
502
318
  };
503
319
  ListProjectsResponseEnvelope: {
504
- data: components["schemas"]["ProjectSummary"][];
320
+ data: components['schemas']['ProjectSummary'][];
505
321
  meta: {
506
322
  nextPageCursor?: string | null;
507
323
  } & {
@@ -509,65 +325,13 @@ interface components {
509
325
  };
510
326
  };
511
327
  EditorCapabilitiesResponseEnvelope: {
512
- data: components["schemas"]["EditorCapabilities"];
513
- meta: {
514
- [key: string]: unknown;
515
- };
516
- };
517
- IllustrationSearchResponseEnvelope: {
518
- data: components["schemas"]["IllustrationSearchItem"][];
519
- meta: {
520
- nextPageCursor?: string | null;
521
- } & {
522
- [key: string]: unknown;
523
- };
524
- };
525
- VoiceSearchResponseEnvelope: {
526
- data: components["schemas"]["VoiceSearchItem"][];
527
- meta: {
528
- [key: string]: unknown;
529
- };
530
- };
531
- MediaModelListResponseEnvelope: {
532
- data: components["schemas"]["MediaModelListItem"][];
533
- meta: {
534
- nextPageCursor?: string | null;
535
- } & {
536
- [key: string]: unknown;
537
- };
538
- };
539
- MediaModelDetailResponseEnvelope: {
540
- data: components["schemas"]["MediaModelDetail"];
541
- meta: {
542
- [key: string]: unknown;
543
- };
544
- };
545
- MediaModelRecommendResponseEnvelope: {
546
- data: components["schemas"]["MediaModelRecommendationItem"][];
547
- meta: {
548
- [key: string]: unknown;
549
- };
550
- };
551
- MediaTaskResponseEnvelope: {
552
- data: components["schemas"]["MediaTaskResponseData"];
553
- meta: {
554
- [key: string]: unknown;
555
- };
556
- };
557
- TtsTaskResponseEnvelope: {
558
- data: components["schemas"]["TtsTaskResponseData"];
559
- meta: {
560
- [key: string]: unknown;
561
- };
562
- };
563
- AutoCaptionsResponseEnvelope: {
564
- data: components["schemas"]["AutoCaptionsResponseData"];
328
+ data: components['schemas']['EditorCapabilities'];
565
329
  meta: {
566
330
  [key: string]: unknown;
567
331
  };
568
332
  };
569
333
  EditorValidateResponseEnvelope: {
570
- data: components["schemas"]["EditorValidationResult"];
334
+ data: components['schemas']['EditorValidationResult'];
571
335
  meta: {
572
336
  capabilitiesVersion?: string;
573
337
  } & {
@@ -595,22 +359,22 @@ interface components {
595
359
  primitive: string | number | boolean;
596
360
  animationSpec: {
597
361
  /** @enum {string} */
598
- type: "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "zoom-in" | "zoom-out";
362
+ type: 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'zoom-in' | 'zoom-out';
599
363
  durationTicks: number;
600
364
  /** @enum {string} */
601
- easing?: "linear" | "ease-in" | "ease-out" | "ease-in-out";
365
+ easing?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
602
366
  params?: {
603
- [key: string]: components["schemas"]["primitive"];
367
+ [key: string]: components['schemas']['primitive'];
604
368
  };
605
369
  };
606
370
  captionAnimationSpec: {
607
371
  /** @enum {string} */
608
- type: "converge" | "elastic-pop" | "typewriter" | "lay-down" | "center-type-out" | "curtain-close" | "jitter" | "rainbow" | "sweep-shine";
372
+ type: 'converge' | 'elastic-pop' | 'typewriter' | 'lay-down' | 'center-type-out' | 'curtain-close' | 'jitter' | 'rainbow' | 'sweep-shine';
609
373
  durationTicks: number;
610
374
  /** @enum {string} */
611
- easing?: "linear" | "ease-in" | "ease-out" | "ease-in-out";
375
+ easing?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
612
376
  params?: {
613
- [key: string]: components["schemas"]["primitive"];
377
+ [key: string]: components['schemas']['primitive'];
614
378
  };
615
379
  };
616
380
  keyframePoint: {
@@ -621,7 +385,7 @@ interface components {
621
385
  animatedNumberTrack: {
622
386
  value: number;
623
387
  /** @description Keyframes are expressed in local clip ticks and must stay inside the clip range. */
624
- keyframes: components["schemas"]["keyframePoint"][];
388
+ keyframes: components['schemas']['keyframePoint'][];
625
389
  };
626
390
  timelineItemBase: {
627
391
  id: string;
@@ -633,20 +397,20 @@ interface components {
633
397
  [key: string]: unknown;
634
398
  };
635
399
  geometryItemBase: {
636
- top: components["schemas"]["animatedNumberTrack"];
637
- left: components["schemas"]["animatedNumberTrack"];
638
- width: components["schemas"]["animatedNumberTrack"];
639
- height: components["schemas"]["animatedNumberTrack"];
640
- scaleX: components["schemas"]["animatedNumberTrack"];
641
- scaleY: components["schemas"]["animatedNumberTrack"];
642
- opacity: components["schemas"]["animatedNumberTrack"];
400
+ top: components['schemas']['animatedNumberTrack'];
401
+ left: components['schemas']['animatedNumberTrack'];
402
+ width: components['schemas']['animatedNumberTrack'];
403
+ height: components['schemas']['animatedNumberTrack'];
404
+ scaleX: components['schemas']['animatedNumberTrack'];
405
+ scaleY: components['schemas']['animatedNumberTrack'];
406
+ opacity: components['schemas']['animatedNumberTrack'];
643
407
  } & {
644
408
  [key: string]: unknown;
645
409
  };
646
- baseItem: components["schemas"]["timelineItemBase"] & components["schemas"]["geometryItemBase"];
410
+ baseItem: components['schemas']['timelineItemBase'] & components['schemas']['geometryItemBase'];
647
411
  clipAnimations: {
648
- in?: components["schemas"]["animationSpec"];
649
- out?: components["schemas"]["animationSpec"];
412
+ in?: components['schemas']['animationSpec'];
413
+ out?: components['schemas']['animationSpec'];
650
414
  };
651
415
  fontStyle: {
652
416
  variant: string;
@@ -658,16 +422,16 @@ interface components {
658
422
  borderRadius: number;
659
423
  };
660
424
  captionClipAnimations: {
661
- in?: components["schemas"]["captionAnimationSpec"];
662
- out?: components["schemas"]["captionAnimationSpec"];
663
- loop?: components["schemas"]["captionAnimationSpec"];
425
+ in?: components['schemas']['captionAnimationSpec'];
426
+ out?: components['schemas']['captionAnimationSpec'];
427
+ loop?: components['schemas']['captionAnimationSpec'];
664
428
  };
665
429
  textTemplateImageNode: {
666
430
  id: string;
667
431
  /** @constant */
668
- type: "image";
432
+ type: 'image';
669
433
  /** @enum {string} */
670
- imageType: "svg" | "lottie";
434
+ imageType: 'svg' | 'lottie';
671
435
  imageComponentId: string | null;
672
436
  imageLottieJson: {
673
437
  [key: string]: unknown;
@@ -677,12 +441,12 @@ interface components {
677
441
  width: number;
678
442
  height: number;
679
443
  opacity: number;
680
- animations?: components["schemas"]["clipAnimations"];
444
+ animations?: components['schemas']['clipAnimations'];
681
445
  };
682
446
  textTemplateTextNode: {
683
447
  id: string;
684
448
  /** @constant */
685
- type: "text";
449
+ type: 'text';
686
450
  x: number;
687
451
  y: number;
688
452
  width: number;
@@ -690,19 +454,19 @@ interface components {
690
454
  text: string;
691
455
  color: string;
692
456
  /** @enum {string} */
693
- align: "left" | "center" | "right";
457
+ align: 'left' | 'center' | 'right';
694
458
  fontFamily: string;
695
- fontStyle: components["schemas"]["fontStyle"];
459
+ fontStyle: components['schemas']['fontStyle'];
696
460
  fontSize: number;
697
461
  lineHeight: number;
698
462
  letterSpacing: number;
699
463
  /** @enum {string} */
700
- direction: "ltr" | "rtl";
464
+ direction: 'ltr' | 'rtl';
701
465
  strokeWidth: number;
702
466
  strokeColor: string;
703
- background: null | components["schemas"]["textBackground"];
704
- animations?: components["schemas"]["clipAnimations"];
705
- captionAnimations?: components["schemas"]["captionClipAnimations"];
467
+ background: null | components['schemas']['textBackground'];
468
+ animations?: components['schemas']['clipAnimations'];
469
+ captionAnimations?: components['schemas']['captionClipAnimations'];
706
470
  };
707
471
  chartSeries: {
708
472
  key: string;
@@ -713,18 +477,18 @@ interface components {
713
477
  };
714
478
  chartXYRow: {
715
479
  label: string;
716
- values: components["schemas"]["chartRowValues"];
480
+ values: components['schemas']['chartRowValues'];
717
481
  };
718
482
  chartXYData: {
719
- series: components["schemas"]["chartSeries"][];
720
- rows: components["schemas"]["chartXYRow"][];
483
+ series: components['schemas']['chartSeries'][];
484
+ rows: components['schemas']['chartXYRow'][];
721
485
  };
722
486
  chartPieSlice: {
723
487
  label: string;
724
488
  value: number;
725
489
  };
726
490
  chartPieData: {
727
- slices: components["schemas"]["chartPieSlice"][];
491
+ slices: components['schemas']['chartPieSlice'][];
728
492
  };
729
493
  chartScatterPoint: {
730
494
  seriesKey: string;
@@ -732,8 +496,8 @@ interface components {
732
496
  y: number;
733
497
  };
734
498
  chartScatterData: {
735
- series: components["schemas"]["chartSeries"][];
736
- points: components["schemas"]["chartScatterPoint"][];
499
+ series: components['schemas']['chartSeries'][];
500
+ points: components['schemas']['chartScatterPoint'][];
737
501
  };
738
502
  assetUploadProgress: {
739
503
  progress: number;
@@ -742,17 +506,17 @@ interface components {
742
506
  };
743
507
  assetUploadState: {
744
508
  /** @constant */
745
- type: "pending-upload";
509
+ type: 'pending-upload';
746
510
  } | {
747
511
  /** @constant */
748
- type: "in-progress";
749
- progress: components["schemas"]["assetUploadProgress"];
512
+ type: 'in-progress';
513
+ progress: components['schemas']['assetUploadProgress'];
750
514
  } | {
751
515
  /** @constant */
752
- type: "uploaded";
516
+ type: 'uploaded';
753
517
  } | {
754
518
  /** @constant */
755
- type: "error";
519
+ type: 'error';
756
520
  error: string | null | {
757
521
  [key: string]: unknown;
758
522
  };
@@ -766,49 +530,49 @@ interface components {
766
530
  hidden: boolean;
767
531
  muted: boolean;
768
532
  };
769
- imageAsset: components["schemas"]["baseAsset"] & {
533
+ imageAsset: components['schemas']['baseAsset'] & {
770
534
  /** @constant */
771
- type: "image";
535
+ type: 'image';
772
536
  width: number;
773
537
  height: number;
774
538
  };
775
- videoAsset: components["schemas"]["baseAsset"] & {
539
+ videoAsset: components['schemas']['baseAsset'] & {
776
540
  /** @constant */
777
- type: "video";
541
+ type: 'video';
778
542
  durationInSeconds: number;
779
543
  hasAudioTrack: boolean;
780
544
  width: number;
781
545
  height: number;
782
546
  };
783
- gifAsset: components["schemas"]["baseAsset"] & {
547
+ gifAsset: components['schemas']['baseAsset'] & {
784
548
  /** @constant */
785
- type: "gif";
549
+ type: 'gif';
786
550
  durationInSeconds: number;
787
551
  width: number;
788
552
  height: number;
789
553
  /** @enum {string} */
790
- loopBehavior: "finite" | "loop";
554
+ loopBehavior: 'finite' | 'loop';
791
555
  };
792
- audioAsset: components["schemas"]["baseAsset"] & {
556
+ audioAsset: components['schemas']['baseAsset'] & {
793
557
  /** @constant */
794
- type: "audio";
558
+ type: 'audio';
795
559
  durationInSeconds: number;
796
560
  };
797
- captionAsset: components["schemas"]["baseAsset"] & {
561
+ captionAsset: components['schemas']['baseAsset'] & {
798
562
  /** @constant */
799
- type: "caption";
800
- captions: components["schemas"]["captionEntry"][];
563
+ type: 'caption';
564
+ captions: components['schemas']['captionEntry'][];
801
565
  /** @enum {string} */
802
- timingGranularity: "word" | "line";
566
+ timingGranularity: 'word' | 'line';
803
567
  };
804
- lottieAsset: components["schemas"]["baseAsset"] & {
568
+ lottieAsset: components['schemas']['baseAsset'] & {
805
569
  /** @constant */
806
- type: "lottie";
570
+ type: 'lottie';
807
571
  durationInSeconds: number;
808
572
  width: number;
809
573
  height: number;
810
574
  /** @enum {string} */
811
- resourceType: "lottie" | "svg";
575
+ resourceType: 'lottie' | 'svg';
812
576
  resourceJson?: {
813
577
  [key: string]: unknown;
814
578
  } | null;
@@ -817,241 +581,241 @@ interface components {
817
581
  [key: string]: unknown;
818
582
  } | null;
819
583
  };
820
- imageItem: components["schemas"]["baseItem"] & {
584
+ imageItem: components['schemas']['baseItem'] & {
821
585
  /** @constant */
822
- type: "image";
586
+ type: 'image';
823
587
  assetId: string;
824
588
  stickerId?: string | null;
825
589
  stickerVersion?: number | null;
826
590
  keepAspectRatio: boolean;
827
- borderRadius: components["schemas"]["animatedNumberTrack"];
828
- rotation: components["schemas"]["animatedNumberTrack"];
829
- cropLeft?: components["schemas"]["animatedNumberTrack"];
830
- cropTop?: components["schemas"]["animatedNumberTrack"];
831
- cropRight?: components["schemas"]["animatedNumberTrack"];
832
- cropBottom?: components["schemas"]["animatedNumberTrack"];
833
- animations?: components["schemas"]["clipAnimations"];
834
- };
835
- videoItem: components["schemas"]["baseItem"] & {
591
+ borderRadius: components['schemas']['animatedNumberTrack'];
592
+ rotation: components['schemas']['animatedNumberTrack'];
593
+ cropLeft?: components['schemas']['animatedNumberTrack'];
594
+ cropTop?: components['schemas']['animatedNumberTrack'];
595
+ cropRight?: components['schemas']['animatedNumberTrack'];
596
+ cropBottom?: components['schemas']['animatedNumberTrack'];
597
+ animations?: components['schemas']['clipAnimations'];
598
+ };
599
+ videoItem: components['schemas']['baseItem'] & {
836
600
  /** @constant */
837
- type: "video";
601
+ type: 'video';
838
602
  assetId: string;
839
603
  keepAspectRatio: boolean;
840
- borderRadius: components["schemas"]["animatedNumberTrack"];
841
- rotation: components["schemas"]["animatedNumberTrack"];
604
+ borderRadius: components['schemas']['animatedNumberTrack'];
605
+ rotation: components['schemas']['animatedNumberTrack'];
842
606
  videoStartFromInSeconds: number;
843
- decibelAdjustment: components["schemas"]["animatedNumberTrack"];
607
+ decibelAdjustment: components['schemas']['animatedNumberTrack'];
844
608
  playbackRate: number;
845
609
  audioFadeInDurationInSeconds: number;
846
610
  audioFadeOutDurationInSeconds: number;
847
- cropLeft?: components["schemas"]["animatedNumberTrack"];
848
- cropTop?: components["schemas"]["animatedNumberTrack"];
849
- cropRight?: components["schemas"]["animatedNumberTrack"];
850
- cropBottom?: components["schemas"]["animatedNumberTrack"];
851
- animations?: components["schemas"]["clipAnimations"];
611
+ cropLeft?: components['schemas']['animatedNumberTrack'];
612
+ cropTop?: components['schemas']['animatedNumberTrack'];
613
+ cropRight?: components['schemas']['animatedNumberTrack'];
614
+ cropBottom?: components['schemas']['animatedNumberTrack'];
615
+ animations?: components['schemas']['clipAnimations'];
852
616
  };
853
- gifItem: components["schemas"]["baseItem"] & {
617
+ gifItem: components['schemas']['baseItem'] & {
854
618
  /** @constant */
855
- type: "gif";
619
+ type: 'gif';
856
620
  assetId: string;
857
621
  keepAspectRatio: boolean;
858
- borderRadius: components["schemas"]["animatedNumberTrack"];
859
- rotation: components["schemas"]["animatedNumberTrack"];
622
+ borderRadius: components['schemas']['animatedNumberTrack'];
623
+ rotation: components['schemas']['animatedNumberTrack'];
860
624
  gifStartFromInSeconds: number;
861
625
  playbackRate: number;
862
- cropLeft?: components["schemas"]["animatedNumberTrack"];
863
- cropTop?: components["schemas"]["animatedNumberTrack"];
864
- cropRight?: components["schemas"]["animatedNumberTrack"];
865
- cropBottom?: components["schemas"]["animatedNumberTrack"];
866
- animations?: components["schemas"]["clipAnimations"];
626
+ cropLeft?: components['schemas']['animatedNumberTrack'];
627
+ cropTop?: components['schemas']['animatedNumberTrack'];
628
+ cropRight?: components['schemas']['animatedNumberTrack'];
629
+ cropBottom?: components['schemas']['animatedNumberTrack'];
630
+ animations?: components['schemas']['clipAnimations'];
867
631
  };
868
- lottieItem: components["schemas"]["baseItem"] & {
632
+ lottieItem: components['schemas']['baseItem'] & {
869
633
  /** @constant */
870
- type: "lottie";
634
+ type: 'lottie';
871
635
  assetId: string;
872
636
  keepAspectRatio: boolean;
873
- rotation: components["schemas"]["animatedNumberTrack"];
637
+ rotation: components['schemas']['animatedNumberTrack'];
874
638
  lottieStartFromInSeconds: number;
875
639
  playbackRate: number;
876
- animations?: components["schemas"]["clipAnimations"];
640
+ animations?: components['schemas']['clipAnimations'];
877
641
  };
878
- audioItem: components["schemas"]["baseItem"] & {
642
+ audioItem: components['schemas']['baseItem'] & {
879
643
  /** @constant */
880
- type: "audio";
644
+ type: 'audio';
881
645
  assetId: string;
882
646
  audioStartFromInSeconds: number;
883
- decibelAdjustment: components["schemas"]["animatedNumberTrack"];
647
+ decibelAdjustment: components['schemas']['animatedNumberTrack'];
884
648
  playbackRate: number;
885
649
  audioFadeInDurationInSeconds: number;
886
650
  audioFadeOutDurationInSeconds: number;
887
651
  };
888
- textItem: components["schemas"]["baseItem"] & {
652
+ textItem: components['schemas']['baseItem'] & {
889
653
  /** @constant */
890
- type: "text";
654
+ type: 'text';
891
655
  text: string;
892
656
  color: string;
893
657
  /** @enum {string} */
894
- align: "left" | "center" | "right";
658
+ align: 'left' | 'center' | 'right';
895
659
  fontFamily: string;
896
- fontStyle: components["schemas"]["fontStyle"];
660
+ fontStyle: components['schemas']['fontStyle'];
897
661
  fontSize: number;
898
662
  lineHeight: number;
899
663
  letterSpacing: number;
900
664
  resizeOnEdit: boolean;
901
665
  /** @enum {string} */
902
- direction: "ltr" | "rtl";
666
+ direction: 'ltr' | 'rtl';
903
667
  strokeWidth: number;
904
668
  strokeColor: string;
905
- background?: null | components["schemas"]["textBackground"];
906
- rotation?: components["schemas"]["animatedNumberTrack"];
907
- animations?: components["schemas"]["clipAnimations"];
908
- captionAnimations?: components["schemas"]["captionClipAnimations"];
669
+ background?: null | components['schemas']['textBackground'];
670
+ rotation?: components['schemas']['animatedNumberTrack'];
671
+ animations?: components['schemas']['clipAnimations'];
672
+ captionAnimations?: components['schemas']['captionClipAnimations'];
909
673
  };
910
- textTemplateItem: components["schemas"]["baseItem"] & {
674
+ textTemplateItem: components['schemas']['baseItem'] & {
911
675
  /** @constant */
912
- type: "text-template";
676
+ type: 'text-template';
913
677
  /** @constant */
914
678
  schemaVersion: 2;
915
679
  templateId: string;
916
680
  templateCategory: string;
917
- nodes: (components["schemas"]["textTemplateImageNode"] | components["schemas"]["textTemplateTextNode"])[];
918
- rotation?: components["schemas"]["animatedNumberTrack"];
919
- animations?: components["schemas"]["clipAnimations"];
681
+ nodes: (components['schemas']['textTemplateImageNode'] | components['schemas']['textTemplateTextNode'])[];
682
+ rotation?: components['schemas']['animatedNumberTrack'];
683
+ animations?: components['schemas']['clipAnimations'];
920
684
  };
921
- captionsItem: components["schemas"]["baseItem"] & {
685
+ captionsItem: components['schemas']['baseItem'] & {
922
686
  /** @constant */
923
- type: "captions";
687
+ type: 'captions';
924
688
  assetId: string;
925
689
  fontFamily: string;
926
- fontStyle: components["schemas"]["fontStyle"];
690
+ fontStyle: components['schemas']['fontStyle'];
927
691
  lineHeight: number;
928
692
  letterSpacing: number;
929
693
  fontSize: number;
930
694
  /** @enum {string} */
931
- align: "left" | "center" | "right";
695
+ align: 'left' | 'center' | 'right';
932
696
  color: string;
933
697
  highlightColor: string;
934
698
  strokeWidth: number;
935
699
  strokeColor: string;
936
700
  /** @enum {string} */
937
- direction: "ltr" | "rtl";
701
+ direction: 'ltr' | 'rtl';
938
702
  pageDurationInMilliseconds: number;
939
703
  maxLines: number;
940
704
  contentStartOffsetMs: number;
941
705
  /** @enum {string} */
942
- source: "manual" | "auto" | "upload";
706
+ source: 'manual' | 'auto' | 'upload';
943
707
  captionGroupId: string | null;
944
- background: null | components["schemas"]["textBackground"];
945
- rotation?: components["schemas"]["animatedNumberTrack"];
946
- animations?: components["schemas"]["clipAnimations"];
947
- captionAnimations?: components["schemas"]["captionClipAnimations"];
708
+ background: null | components['schemas']['textBackground'];
709
+ rotation?: components['schemas']['animatedNumberTrack'];
710
+ animations?: components['schemas']['clipAnimations'];
711
+ captionAnimations?: components['schemas']['captionClipAnimations'];
948
712
  };
949
- solidItem: components["schemas"]["baseItem"] & {
713
+ solidItem: components['schemas']['baseItem'] & {
950
714
  /** @constant */
951
- type: "solid";
715
+ type: 'solid';
952
716
  color: string;
953
717
  /** @enum {string} */
954
- shape: "rectangle" | "circle" | "triangle" | "star";
718
+ shape: 'rectangle' | 'circle' | 'triangle' | 'star';
955
719
  keepAspectRatio: boolean;
956
- borderRadius: components["schemas"]["animatedNumberTrack"];
957
- rotation: components["schemas"]["animatedNumberTrack"];
958
- animations?: components["schemas"]["clipAnimations"];
720
+ borderRadius: components['schemas']['animatedNumberTrack'];
721
+ rotation: components['schemas']['animatedNumberTrack'];
722
+ animations?: components['schemas']['clipAnimations'];
959
723
  };
960
- illustrationItem: components["schemas"]["baseItem"] & {
724
+ illustrationItem: components['schemas']['baseItem'] & {
961
725
  /** @constant */
962
- type: "illustration";
726
+ type: 'illustration';
963
727
  illustrationName: string;
964
728
  color: string;
965
729
  keepAspectRatio: boolean;
966
- rotation: components["schemas"]["animatedNumberTrack"];
967
- animations?: components["schemas"]["clipAnimations"];
730
+ rotation: components['schemas']['animatedNumberTrack'];
731
+ animations?: components['schemas']['clipAnimations'];
968
732
  };
969
- effectItem: components["schemas"]["timelineItemBase"] & {
733
+ effectItem: components['schemas']['timelineItemBase'] & {
970
734
  /** @constant */
971
- type: "effect";
735
+ type: 'effect';
972
736
  /** @enum {string} */
973
- effectType: "flash-to-black" | "blur" | "blurred-opening" | "fade-in" | "fade-out";
737
+ effectType: 'flash-to-black' | 'blur' | 'blurred-opening' | 'fade-in' | 'fade-out';
974
738
  intensity: number;
975
739
  params?: {
976
- [key: string]: components["schemas"]["primitive"];
740
+ [key: string]: components['schemas']['primitive'];
977
741
  };
978
742
  };
979
- filterItem: components["schemas"]["timelineItemBase"] & {
743
+ filterItem: components['schemas']['timelineItemBase'] & {
980
744
  /** @constant */
981
- type: "filter";
745
+ type: 'filter';
982
746
  /** @enum {string} */
983
- filterType: "verdant-glow" | "cyberpunk-neon" | "vaporwave-blue" | "sunset-orange" | "lemon-cyan" | "absolute-red" | "sakura-pink" | "twilight-dusk";
747
+ filterType: 'verdant-glow' | 'cyberpunk-neon' | 'vaporwave-blue' | 'sunset-orange' | 'lemon-cyan' | 'absolute-red' | 'sakura-pink' | 'twilight-dusk';
984
748
  intensity: number;
985
749
  params?: {
986
- [key: string]: components["schemas"]["primitive"];
750
+ [key: string]: components['schemas']['primitive'];
987
751
  };
988
752
  };
989
- chartItem: components["schemas"]["baseItem"] & ({
753
+ chartItem: components['schemas']['baseItem'] & ({
990
754
  /** @constant */
991
- type: "chart";
755
+ type: 'chart';
992
756
  /** @constant */
993
- chartType: "line";
757
+ chartType: 'line';
994
758
  themeColor: string;
995
- data: components["schemas"]["chartXYData"];
759
+ data: components['schemas']['chartXYData'];
996
760
  animationDurationTicks: number;
997
761
  keepAspectRatio: boolean;
998
- rotation: components["schemas"]["animatedNumberTrack"];
999
- animations?: components["schemas"]["clipAnimations"];
762
+ rotation: components['schemas']['animatedNumberTrack'];
763
+ animations?: components['schemas']['clipAnimations'];
1000
764
  } | {
1001
765
  /** @constant */
1002
- type: "chart";
766
+ type: 'chart';
1003
767
  /** @constant */
1004
- chartType: "bar";
768
+ chartType: 'bar';
1005
769
  themeColor: string;
1006
- data: components["schemas"]["chartXYData"];
770
+ data: components['schemas']['chartXYData'];
1007
771
  animationDurationTicks: number;
1008
772
  keepAspectRatio: boolean;
1009
- rotation: components["schemas"]["animatedNumberTrack"];
1010
- animations?: components["schemas"]["clipAnimations"];
773
+ rotation: components['schemas']['animatedNumberTrack'];
774
+ animations?: components['schemas']['clipAnimations'];
1011
775
  } | {
1012
776
  /** @constant */
1013
- type: "chart";
777
+ type: 'chart';
1014
778
  /** @constant */
1015
- chartType: "area";
779
+ chartType: 'area';
1016
780
  themeColor: string;
1017
- data: components["schemas"]["chartXYData"];
781
+ data: components['schemas']['chartXYData'];
1018
782
  animationDurationTicks: number;
1019
783
  keepAspectRatio: boolean;
1020
- rotation: components["schemas"]["animatedNumberTrack"];
1021
- animations?: components["schemas"]["clipAnimations"];
784
+ rotation: components['schemas']['animatedNumberTrack'];
785
+ animations?: components['schemas']['clipAnimations'];
1022
786
  } | {
1023
787
  /** @constant */
1024
- type: "chart";
788
+ type: 'chart';
1025
789
  /** @constant */
1026
- chartType: "pie";
790
+ chartType: 'pie';
1027
791
  themeColor: string;
1028
- data: components["schemas"]["chartPieData"];
792
+ data: components['schemas']['chartPieData'];
1029
793
  animationDurationTicks: number;
1030
794
  keepAspectRatio: boolean;
1031
- rotation: components["schemas"]["animatedNumberTrack"];
1032
- animations?: components["schemas"]["clipAnimations"];
795
+ rotation: components['schemas']['animatedNumberTrack'];
796
+ animations?: components['schemas']['clipAnimations'];
1033
797
  } | {
1034
798
  /** @constant */
1035
- type: "chart";
799
+ type: 'chart';
1036
800
  /** @constant */
1037
- chartType: "radar";
801
+ chartType: 'radar';
1038
802
  themeColor: string;
1039
- data: components["schemas"]["chartXYData"];
803
+ data: components['schemas']['chartXYData'];
1040
804
  animationDurationTicks: number;
1041
805
  keepAspectRatio: boolean;
1042
- rotation: components["schemas"]["animatedNumberTrack"];
1043
- animations?: components["schemas"]["clipAnimations"];
806
+ rotation: components['schemas']['animatedNumberTrack'];
807
+ animations?: components['schemas']['clipAnimations'];
1044
808
  } | {
1045
809
  /** @constant */
1046
- type: "chart";
810
+ type: 'chart';
1047
811
  /** @constant */
1048
- chartType: "scatter";
812
+ chartType: 'scatter';
1049
813
  themeColor: string;
1050
- data: components["schemas"]["chartScatterData"];
814
+ data: components['schemas']['chartScatterData'];
1051
815
  animationDurationTicks: number;
1052
816
  keepAspectRatio: boolean;
1053
- rotation: components["schemas"]["animatedNumberTrack"];
1054
- animations?: components["schemas"]["clipAnimations"];
817
+ rotation: components['schemas']['animatedNumberTrack'];
818
+ animations?: components['schemas']['clipAnimations'];
1055
819
  });
1056
820
  transition: {
1057
821
  id: string;
@@ -1059,34 +823,34 @@ interface components {
1059
823
  fromClipId: string;
1060
824
  toClipId: string;
1061
825
  /** @enum {string} */
1062
- type: "fade" | "slide" | "wipe" | "flip" | "clock-wipe" | "iris";
826
+ type: 'fade' | 'slide' | 'wipe' | 'flip' | 'clock-wipe' | 'iris';
1063
827
  durationTicks: number;
1064
828
  /** @enum {string} */
1065
- easing?: "linear" | "ease-in" | "ease-out" | "ease-in-out";
829
+ easing?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
1066
830
  params?: {
1067
- [key: string]: components["schemas"]["primitive"];
831
+ [key: string]: components['schemas']['primitive'];
1068
832
  };
1069
833
  };
1070
834
  globalBackground: {
1071
835
  /** @constant */
1072
- type: "none";
836
+ type: 'none';
1073
837
  } | {
1074
838
  /** @constant */
1075
- type: "color";
839
+ type: 'color';
1076
840
  color: string;
1077
841
  gradient: string | null;
1078
842
  } | {
1079
843
  /** @constant */
1080
- type: "blur";
844
+ type: 'blur';
1081
845
  /** @enum {integer} */
1082
846
  level: 0 | 1 | 2 | 3 | 4;
1083
847
  } | {
1084
848
  /** @constant */
1085
- type: "image";
849
+ type: 'image';
1086
850
  imageAssetId: string | null;
1087
851
  imageUrl: string;
1088
852
  /** @enum {string} */
1089
- source: "preset" | "custom";
853
+ source: 'preset' | 'custom';
1090
854
  };
1091
855
  brandRuntime: null | {
1092
856
  brandId: string | null;
@@ -1102,29 +866,29 @@ interface components {
1102
866
  assetId: string;
1103
867
  remoteUrl: string | null;
1104
868
  remoteKey: string | null;
1105
- statusAtDeletion: components["schemas"]["assetUploadState"];
869
+ statusAtDeletion: components['schemas']['assetUploadState'];
1106
870
  };
1107
871
  /** IndreamEditorStateV1 */
1108
- "editor-state.v1.schema": {
872
+ 'editor-state.v1.schema': {
1109
873
  compositionWidth: number;
1110
874
  compositionHeight: number;
1111
875
  /** @constant */
1112
876
  timebaseTicksPerSecond: 240000;
1113
877
  /** @enum {string} */
1114
- outputRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "custom";
1115
- tracks: components["schemas"]["track"][];
878
+ outputRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | 'custom';
879
+ tracks: components['schemas']['track'][];
1116
880
  assets: {
1117
- [key: string]: components["schemas"]["imageAsset"] | components["schemas"]["videoAsset"] | components["schemas"]["gifAsset"] | components["schemas"]["audioAsset"] | components["schemas"]["captionAsset"] | components["schemas"]["lottieAsset"];
881
+ [key: string]: components['schemas']['imageAsset'] | components['schemas']['videoAsset'] | components['schemas']['gifAsset'] | components['schemas']['audioAsset'] | components['schemas']['captionAsset'] | components['schemas']['lottieAsset'];
1118
882
  };
1119
883
  items: {
1120
- [key: string]: components["schemas"]["imageItem"] | components["schemas"]["videoItem"] | components["schemas"]["gifItem"] | components["schemas"]["lottieItem"] | components["schemas"]["audioItem"] | components["schemas"]["textItem"] | components["schemas"]["textTemplateItem"] | components["schemas"]["captionsItem"] | components["schemas"]["solidItem"] | components["schemas"]["illustrationItem"] | components["schemas"]["effectItem"] | components["schemas"]["filterItem"] | components["schemas"]["chartItem"];
884
+ [key: string]: components['schemas']['imageItem'] | components['schemas']['videoItem'] | components['schemas']['gifItem'] | components['schemas']['lottieItem'] | components['schemas']['audioItem'] | components['schemas']['textItem'] | components['schemas']['textTemplateItem'] | components['schemas']['captionsItem'] | components['schemas']['solidItem'] | components['schemas']['illustrationItem'] | components['schemas']['effectItem'] | components['schemas']['filterItem'] | components['schemas']['chartItem'];
1121
885
  };
1122
886
  transitions: {
1123
- [key: string]: components["schemas"]["transition"];
887
+ [key: string]: components['schemas']['transition'];
1124
888
  };
1125
- globalBackground?: components["schemas"]["globalBackground"];
1126
- brandRuntime?: components["schemas"]["brandRuntime"];
1127
- deletedAssets?: components["schemas"]["deletedAssetEntry"][];
889
+ globalBackground?: components['schemas']['globalBackground'];
890
+ brandRuntime?: components['schemas']['brandRuntime'];
891
+ deletedAssets?: components['schemas']['deletedAssetEntry'][];
1128
892
  } & {
1129
893
  [key: string]: unknown;
1130
894
  };
@@ -1136,7 +900,7 @@ interface components {
1136
900
  [name: string]: unknown;
1137
901
  };
1138
902
  content: {
1139
- "application/json": components["schemas"]["Problem"];
903
+ 'application/json': components['schemas']['Problem'];
1140
904
  };
1141
905
  };
1142
906
  };
@@ -1166,23 +930,6 @@ type TExportFormat = 'mp4' | 'webm';
1166
930
  type TTaskStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PAUSED' | 'CANCELED';
1167
931
  type TExportWebhookEventType = 'EXPORT_STARTED' | 'EXPORT_COMPLETED' | 'EXPORT_FAILED';
1168
932
  type TEditorStateV1 = components['schemas']['editor-state.v1.schema'];
1169
- type TCaptionEntry = components['schemas']['CaptionEntry'];
1170
- type TCaptionTimingGranularity = 'word' | 'line';
1171
- type TVoiceScope = 'available' | 'system' | 'mine';
1172
- type TMediaModelType = components['schemas']['MediaModelType'];
1173
- type TMediaAssetMode = components['schemas']['MediaAssetMode'];
1174
- type IMediaGenerationRequest = components['schemas']['MediaGenerationRequest'];
1175
- type IMediaModelListItem = components['schemas']['MediaModelListItem'];
1176
- type IMediaModelDetail = components['schemas']['MediaModelDetail'];
1177
- type IMediaModelRecommendationRequest = components['schemas']['MediaModelRecommendationRequest'];
1178
- type IMediaModelRecommendationItem = components['schemas']['MediaModelRecommendationItem'];
1179
- type ITtsCreateRequest = components['schemas']['TtsCreateRequest'];
1180
- type ICreateAutoCaptionsRequest = components['schemas']['AutoCaptionsCreateRequest'];
1181
- type IMediaTaskResponse = components['schemas']['MediaTaskResponseData'];
1182
- type ITtsTaskResponse = components['schemas']['TtsTaskResponseData'];
1183
- type IAutoCaptionsResponse = components['schemas']['AutoCaptionsResponseData'];
1184
- type IIllustrationSearchItem = components['schemas']['IllustrationSearchItem'];
1185
- type IVoiceSearchItem = components['schemas']['VoiceSearchItem'];
1186
933
  interface IApiProblem {
1187
934
  type: string;
1188
935
  title: string;
@@ -1374,21 +1121,11 @@ interface IAsset {
1374
1121
  width: number | null;
1375
1122
  height: number | null;
1376
1123
  duration: number | null;
1377
- captions?: TCaptionEntry[];
1378
- timingGranularity?: TCaptionTimingGranularity;
1379
1124
  }
1380
1125
  interface IListAssetsResponse {
1381
1126
  items: IAsset[];
1382
1127
  nextPageCursor: string | null;
1383
1128
  }
1384
- interface IListIllustrationsResponse {
1385
- items: IIllustrationSearchItem[];
1386
- nextPageCursor: string | null;
1387
- }
1388
- interface IListMediaModelsResponse {
1389
- items: IMediaModelListItem[];
1390
- nextPageCursor: string | null;
1391
- }
1392
1129
  type TUploadBody = Blob | ArrayBuffer | ArrayBufferView | ReadableStream<Uint8Array>;
1393
1130
  interface IUploadOptions extends IRequestOptions {
1394
1131
  filename?: string;
@@ -1446,45 +1183,10 @@ declare class EditorResource {
1446
1183
  validate(editorState: TEditorStateV1, options?: IRequestOptions): Promise<IEditorValidationResult>;
1447
1184
  }
1448
1185
 
1449
- declare class MaterialsResource {
1186
+ declare class IllustrationsResource {
1450
1187
  private readonly client;
1451
1188
  constructor(client: IndreamClient);
1452
- searchIllustrations(params: {
1453
- q: string;
1454
- pageSize?: number;
1455
- pageCursor?: string;
1456
- signal?: AbortSignal;
1457
- }): Promise<IListIllustrationsResponse>;
1458
- searchVoices(params?: {
1459
- q?: string;
1460
- pageSize?: number;
1461
- scope?: TVoiceScope;
1462
- signal?: AbortSignal;
1463
- }): Promise<IVoiceSearchItem[]>;
1464
- }
1465
-
1466
- declare class MediaResource {
1467
- private readonly client;
1468
- constructor(client: IndreamClient);
1469
- listMediaModels(params: {
1470
- type: TMediaModelType;
1471
- assetMode?: TMediaAssetMode;
1472
- q?: string;
1473
- pageSize?: number;
1474
- pageCursor?: string;
1475
- signal?: AbortSignal;
1476
- }): Promise<IListMediaModelsResponse>;
1477
- getMediaModel(capabilityKey: string, options?: {
1478
- signal?: AbortSignal;
1479
- }): Promise<IMediaModelDetail>;
1480
- recommendMediaModels(payload: IMediaModelRecommendationRequest, options?: {
1481
- signal?: AbortSignal;
1482
- }): Promise<IMediaModelRecommendationItem[]>;
1483
- generateImage(payload: IMediaGenerationRequest, options?: ICreateRequestOptions): Promise<IMediaTaskResponse>;
1484
- generateVideo(payload: IMediaGenerationRequest, options?: ICreateRequestOptions): Promise<IMediaTaskResponse>;
1485
- generateMusic(payload: IMediaGenerationRequest, options?: ICreateRequestOptions): Promise<IMediaTaskResponse>;
1486
- createTts(payload: ITtsCreateRequest, options?: ICreateRequestOptions): Promise<ITtsTaskResponse>;
1487
- createAutoCaptions(payload: ICreateAutoCaptionsRequest, options?: ICreateRequestOptions): Promise<IAutoCaptionsResponse>;
1189
+ search(q?: string, options?: IRequestOptions): Promise<string[]>;
1488
1190
  }
1489
1191
 
1490
1192
  declare class ProjectsResource {
@@ -1526,8 +1228,7 @@ declare class IndreamClient {
1526
1228
  readonly fetchImpl: typeof fetch;
1527
1229
  readonly exports: ExportsResource;
1528
1230
  readonly editor: EditorResource;
1529
- readonly materials: MaterialsResource;
1530
- readonly media: MediaResource;
1231
+ readonly illustrations: IllustrationsResource;
1531
1232
  readonly projects: ProjectsResource;
1532
1233
  readonly uploads: UploadsResource;
1533
1234
  readonly assets: AssetsResource;
@@ -1592,4 +1293,4 @@ declare const parseExportWebhookEvent: (value: unknown) => IExportWebhookEvent;
1592
1293
  declare const verifyExportWebhookSignature: ({ webhookSecret, timestamp, rawBody, signature, }: IVerifyExportWebhookSignatureParams) => Promise<boolean>;
1593
1294
  declare const verifyExportWebhookRequest: ({ webhookSecret, rawBody, headers, maxSkewSeconds, nowTimestampSeconds, }: IVerifyExportWebhookRequestParams) => Promise<boolean>;
1594
1295
 
1595
- export { APIError, AssetsResource, AuthError, EditorResource, ExportsResource, type IApiEnvelope, type IApiProblem, type IAsset, type IAutoCaptionsResponse, type ICaptionAnimationPresetGroups, type ICaptionAnimationPresetItem, type IClientOptions, type ICreateAutoCaptionsRequest, type ICreateExportRequest, type ICreateExportResponse, type ICreateProjectExportRequest, type ICreateProjectRequest, type ICreateRequestOptions, type IDeleteAssetResponse, type IDeleteProjectAssetResponse, type IDeleteProjectResponse, type IEditorCapabilities, type IEditorValidationError, type IEditorValidationResult, type IExportTask, type IExportWebhookEvent, type IIllustrationSearchItem, type IListAssetsResponse, type IListExportsResponse, type IListIllustrationsResponse, type IListMediaModelsResponse, type IListProjectsResponse, type IMediaGenerationRequest, type IMediaModelDetail, type IMediaModelListItem, type IMediaModelRecommendationItem, type IMediaModelRecommendationRequest, type IMediaTaskResponse, type IProjectAssetBindingResponse, type IProjectDetail, type IProjectMetadataResponse, type IProjectSummary, type IProjectSyncResponse, type IRequestOptions, type ISyncProjectRequest, type ITtsCreateRequest, type ITtsTaskResponse, type IUpdateProjectRequest, type IUploadOptions, type IVerifyExportWebhookRequestParams, type IVerifyExportWebhookSignatureParams, type IVoiceSearchItem, type IWaitOptions, IndreamClient, MaterialsResource, MediaResource, ProjectsResource, RateLimitError, type TCaptionEntry, type TCaptionTimingGranularity, type TEditorStateV1, type TExportFormat, type TExportRatio, type TExportWebhookEventType, type TMediaAssetMode, type TMediaModelType, type TTaskStatus, type TUploadBody, type TVoiceScope, type TWebhookHeaders, UploadsResource, ValidationError, createApiError, isExportTaskSnapshot, isExportWebhookEvent, isExportWebhookEventType, isTaskStatus, parseExportWebhookEvent, toApiProblem, verifyExportWebhookRequest, verifyExportWebhookSignature };
1296
+ export { APIError, AssetsResource, AuthError, EditorResource, ExportsResource, type IApiEnvelope, type IApiProblem, type IAsset, type ICaptionAnimationPresetGroups, type ICaptionAnimationPresetItem, type IClientOptions, type ICreateExportRequest, type ICreateExportResponse, type ICreateProjectExportRequest, type ICreateProjectRequest, type ICreateRequestOptions, type IDeleteAssetResponse, type IDeleteProjectAssetResponse, type IDeleteProjectResponse, type IEditorCapabilities, type IEditorValidationError, type IEditorValidationResult, type IExportTask, type IExportWebhookEvent, type IListAssetsResponse, type IListExportsResponse, type IListProjectsResponse, type IProjectAssetBindingResponse, type IProjectDetail, type IProjectMetadataResponse, type IProjectSummary, type IProjectSyncResponse, type IRequestOptions, type ISyncProjectRequest, type IUpdateProjectRequest, type IUploadOptions, type IVerifyExportWebhookRequestParams, type IVerifyExportWebhookSignatureParams, type IWaitOptions, IllustrationsResource, IndreamClient, ProjectsResource, RateLimitError, type TEditorStateV1, type TExportFormat, type TExportRatio, type TExportWebhookEventType, type TTaskStatus, type TUploadBody, type TWebhookHeaders, UploadsResource, ValidationError, createApiError, isExportTaskSnapshot, isExportWebhookEvent, isExportWebhookEventType, isTaskStatus, parseExportWebhookEvent, toApiProblem, verifyExportWebhookRequest, verifyExportWebhookSignature };