@indreamai/client 0.3.1 → 0.4.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.cjs +163 -0
- package/dist/index.d.cts +515 -209
- package/dist/index.d.ts +515 -209
- package/dist/index.js +161 -0
- package/package.json +1 -1
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[
|
|
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[
|
|
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[
|
|
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:
|
|
37
|
+
ratio: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "custom";
|
|
38
38
|
scale: number;
|
|
39
39
|
/** @enum {string} */
|
|
40
|
-
format:
|
|
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:
|
|
52
|
+
ratio: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "custom";
|
|
53
53
|
scale: number;
|
|
54
54
|
/** @enum {string} */
|
|
55
|
-
format:
|
|
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[
|
|
77
|
-
editorState: components[
|
|
76
|
+
ProjectDetail: components["schemas"]["ProjectSummary"] & {
|
|
77
|
+
editorState: components["schemas"]["editor-state.v1.schema"];
|
|
78
78
|
stateVersion: string;
|
|
79
79
|
};
|
|
80
80
|
ProjectMetadata: {
|
|
@@ -109,6 +109,190 @@ 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"];
|
|
112
296
|
};
|
|
113
297
|
/** @description Export creation response shared by stateless and project-based export routes. */
|
|
114
298
|
CreateExportResponseData: {
|
|
@@ -130,7 +314,7 @@ interface components {
|
|
|
130
314
|
createdByApiKeyId: string | null;
|
|
131
315
|
clientTaskId: string | null;
|
|
132
316
|
/** @enum {string} */
|
|
133
|
-
status:
|
|
317
|
+
status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "PAUSED" | "CANCELED";
|
|
134
318
|
progress: number;
|
|
135
319
|
error: string | null;
|
|
136
320
|
outputUrl: string | null;
|
|
@@ -213,28 +397,28 @@ interface components {
|
|
|
213
397
|
};
|
|
214
398
|
EditorValidationResult: {
|
|
215
399
|
valid: boolean;
|
|
216
|
-
errors: components[
|
|
400
|
+
errors: components["schemas"]["EditorValidationError"][];
|
|
217
401
|
};
|
|
218
402
|
ProjectSummaryEnvelope: {
|
|
219
|
-
data: components[
|
|
403
|
+
data: components["schemas"]["ProjectSummary"];
|
|
220
404
|
meta: {
|
|
221
405
|
[key: string]: unknown;
|
|
222
406
|
};
|
|
223
407
|
};
|
|
224
408
|
ProjectDetailEnvelope: {
|
|
225
|
-
data: components[
|
|
409
|
+
data: components["schemas"]["ProjectDetail"];
|
|
226
410
|
meta: {
|
|
227
411
|
[key: string]: unknown;
|
|
228
412
|
};
|
|
229
413
|
};
|
|
230
414
|
ProjectMetadataEnvelope: {
|
|
231
|
-
data: components[
|
|
415
|
+
data: components["schemas"]["ProjectMetadata"];
|
|
232
416
|
meta: {
|
|
233
417
|
[key: string]: unknown;
|
|
234
418
|
};
|
|
235
419
|
};
|
|
236
420
|
SyncProjectEnvelope: {
|
|
237
|
-
data: components[
|
|
421
|
+
data: components["schemas"]["SyncProjectResponseData"];
|
|
238
422
|
meta: {
|
|
239
423
|
[key: string]: unknown;
|
|
240
424
|
};
|
|
@@ -250,13 +434,13 @@ interface components {
|
|
|
250
434
|
};
|
|
251
435
|
};
|
|
252
436
|
AssetEnvelope: {
|
|
253
|
-
data: components[
|
|
437
|
+
data: components["schemas"]["Asset"];
|
|
254
438
|
meta: {
|
|
255
439
|
[key: string]: unknown;
|
|
256
440
|
};
|
|
257
441
|
};
|
|
258
442
|
ListAssetsResponseEnvelope: {
|
|
259
|
-
data: components[
|
|
443
|
+
data: components["schemas"]["Asset"][];
|
|
260
444
|
meta: {
|
|
261
445
|
nextPageCursor?: string | null;
|
|
262
446
|
} & {
|
|
@@ -297,19 +481,19 @@ interface components {
|
|
|
297
481
|
};
|
|
298
482
|
};
|
|
299
483
|
CreateExportResponseEnvelope: {
|
|
300
|
-
data: components[
|
|
484
|
+
data: components["schemas"]["CreateExportResponseData"];
|
|
301
485
|
meta: {
|
|
302
486
|
[key: string]: unknown;
|
|
303
487
|
};
|
|
304
488
|
};
|
|
305
489
|
GetExportResponseEnvelope: {
|
|
306
|
-
data: components[
|
|
490
|
+
data: components["schemas"]["ExportTask"];
|
|
307
491
|
meta: {
|
|
308
492
|
[key: string]: unknown;
|
|
309
493
|
};
|
|
310
494
|
};
|
|
311
495
|
ListExportsResponseEnvelope: {
|
|
312
|
-
data: components[
|
|
496
|
+
data: components["schemas"]["ExportTask"][];
|
|
313
497
|
meta: {
|
|
314
498
|
nextPageCursor?: string | null;
|
|
315
499
|
} & {
|
|
@@ -317,7 +501,7 @@ interface components {
|
|
|
317
501
|
};
|
|
318
502
|
};
|
|
319
503
|
ListProjectsResponseEnvelope: {
|
|
320
|
-
data: components[
|
|
504
|
+
data: components["schemas"]["ProjectSummary"][];
|
|
321
505
|
meta: {
|
|
322
506
|
nextPageCursor?: string | null;
|
|
323
507
|
} & {
|
|
@@ -325,13 +509,65 @@ interface components {
|
|
|
325
509
|
};
|
|
326
510
|
};
|
|
327
511
|
EditorCapabilitiesResponseEnvelope: {
|
|
328
|
-
data: components[
|
|
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"];
|
|
329
565
|
meta: {
|
|
330
566
|
[key: string]: unknown;
|
|
331
567
|
};
|
|
332
568
|
};
|
|
333
569
|
EditorValidateResponseEnvelope: {
|
|
334
|
-
data: components[
|
|
570
|
+
data: components["schemas"]["EditorValidationResult"];
|
|
335
571
|
meta: {
|
|
336
572
|
capabilitiesVersion?: string;
|
|
337
573
|
} & {
|
|
@@ -359,22 +595,22 @@ interface components {
|
|
|
359
595
|
primitive: string | number | boolean;
|
|
360
596
|
animationSpec: {
|
|
361
597
|
/** @enum {string} */
|
|
362
|
-
type:
|
|
598
|
+
type: "fade" | "slide-up" | "slide-down" | "slide-left" | "slide-right" | "zoom-in" | "zoom-out";
|
|
363
599
|
durationTicks: number;
|
|
364
600
|
/** @enum {string} */
|
|
365
|
-
easing?:
|
|
601
|
+
easing?: "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
366
602
|
params?: {
|
|
367
|
-
[key: string]: components[
|
|
603
|
+
[key: string]: components["schemas"]["primitive"];
|
|
368
604
|
};
|
|
369
605
|
};
|
|
370
606
|
captionAnimationSpec: {
|
|
371
607
|
/** @enum {string} */
|
|
372
|
-
type:
|
|
608
|
+
type: "converge" | "elastic-pop" | "typewriter" | "lay-down" | "center-type-out" | "curtain-close" | "jitter" | "rainbow" | "sweep-shine";
|
|
373
609
|
durationTicks: number;
|
|
374
610
|
/** @enum {string} */
|
|
375
|
-
easing?:
|
|
611
|
+
easing?: "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
376
612
|
params?: {
|
|
377
|
-
[key: string]: components[
|
|
613
|
+
[key: string]: components["schemas"]["primitive"];
|
|
378
614
|
};
|
|
379
615
|
};
|
|
380
616
|
keyframePoint: {
|
|
@@ -385,7 +621,7 @@ interface components {
|
|
|
385
621
|
animatedNumberTrack: {
|
|
386
622
|
value: number;
|
|
387
623
|
/** @description Keyframes are expressed in local clip ticks and must stay inside the clip range. */
|
|
388
|
-
keyframes: components[
|
|
624
|
+
keyframes: components["schemas"]["keyframePoint"][];
|
|
389
625
|
};
|
|
390
626
|
timelineItemBase: {
|
|
391
627
|
id: string;
|
|
@@ -397,20 +633,20 @@ interface components {
|
|
|
397
633
|
[key: string]: unknown;
|
|
398
634
|
};
|
|
399
635
|
geometryItemBase: {
|
|
400
|
-
top: components[
|
|
401
|
-
left: components[
|
|
402
|
-
width: components[
|
|
403
|
-
height: components[
|
|
404
|
-
scaleX: components[
|
|
405
|
-
scaleY: components[
|
|
406
|
-
opacity: components[
|
|
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"];
|
|
407
643
|
} & {
|
|
408
644
|
[key: string]: unknown;
|
|
409
645
|
};
|
|
410
|
-
baseItem: components[
|
|
646
|
+
baseItem: components["schemas"]["timelineItemBase"] & components["schemas"]["geometryItemBase"];
|
|
411
647
|
clipAnimations: {
|
|
412
|
-
in?: components[
|
|
413
|
-
out?: components[
|
|
648
|
+
in?: components["schemas"]["animationSpec"];
|
|
649
|
+
out?: components["schemas"]["animationSpec"];
|
|
414
650
|
};
|
|
415
651
|
fontStyle: {
|
|
416
652
|
variant: string;
|
|
@@ -422,16 +658,16 @@ interface components {
|
|
|
422
658
|
borderRadius: number;
|
|
423
659
|
};
|
|
424
660
|
captionClipAnimations: {
|
|
425
|
-
in?: components[
|
|
426
|
-
out?: components[
|
|
427
|
-
loop?: components[
|
|
661
|
+
in?: components["schemas"]["captionAnimationSpec"];
|
|
662
|
+
out?: components["schemas"]["captionAnimationSpec"];
|
|
663
|
+
loop?: components["schemas"]["captionAnimationSpec"];
|
|
428
664
|
};
|
|
429
665
|
textTemplateImageNode: {
|
|
430
666
|
id: string;
|
|
431
667
|
/** @constant */
|
|
432
|
-
type:
|
|
668
|
+
type: "image";
|
|
433
669
|
/** @enum {string} */
|
|
434
|
-
imageType:
|
|
670
|
+
imageType: "svg" | "lottie";
|
|
435
671
|
imageComponentId: string | null;
|
|
436
672
|
imageLottieJson: {
|
|
437
673
|
[key: string]: unknown;
|
|
@@ -441,12 +677,12 @@ interface components {
|
|
|
441
677
|
width: number;
|
|
442
678
|
height: number;
|
|
443
679
|
opacity: number;
|
|
444
|
-
animations?: components[
|
|
680
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
445
681
|
};
|
|
446
682
|
textTemplateTextNode: {
|
|
447
683
|
id: string;
|
|
448
684
|
/** @constant */
|
|
449
|
-
type:
|
|
685
|
+
type: "text";
|
|
450
686
|
x: number;
|
|
451
687
|
y: number;
|
|
452
688
|
width: number;
|
|
@@ -454,19 +690,19 @@ interface components {
|
|
|
454
690
|
text: string;
|
|
455
691
|
color: string;
|
|
456
692
|
/** @enum {string} */
|
|
457
|
-
align:
|
|
693
|
+
align: "left" | "center" | "right";
|
|
458
694
|
fontFamily: string;
|
|
459
|
-
fontStyle: components[
|
|
695
|
+
fontStyle: components["schemas"]["fontStyle"];
|
|
460
696
|
fontSize: number;
|
|
461
697
|
lineHeight: number;
|
|
462
698
|
letterSpacing: number;
|
|
463
699
|
/** @enum {string} */
|
|
464
|
-
direction:
|
|
700
|
+
direction: "ltr" | "rtl";
|
|
465
701
|
strokeWidth: number;
|
|
466
702
|
strokeColor: string;
|
|
467
|
-
background: null | components[
|
|
468
|
-
animations?: components[
|
|
469
|
-
captionAnimations?: components[
|
|
703
|
+
background: null | components["schemas"]["textBackground"];
|
|
704
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
705
|
+
captionAnimations?: components["schemas"]["captionClipAnimations"];
|
|
470
706
|
};
|
|
471
707
|
chartSeries: {
|
|
472
708
|
key: string;
|
|
@@ -477,18 +713,18 @@ interface components {
|
|
|
477
713
|
};
|
|
478
714
|
chartXYRow: {
|
|
479
715
|
label: string;
|
|
480
|
-
values: components[
|
|
716
|
+
values: components["schemas"]["chartRowValues"];
|
|
481
717
|
};
|
|
482
718
|
chartXYData: {
|
|
483
|
-
series: components[
|
|
484
|
-
rows: components[
|
|
719
|
+
series: components["schemas"]["chartSeries"][];
|
|
720
|
+
rows: components["schemas"]["chartXYRow"][];
|
|
485
721
|
};
|
|
486
722
|
chartPieSlice: {
|
|
487
723
|
label: string;
|
|
488
724
|
value: number;
|
|
489
725
|
};
|
|
490
726
|
chartPieData: {
|
|
491
|
-
slices: components[
|
|
727
|
+
slices: components["schemas"]["chartPieSlice"][];
|
|
492
728
|
};
|
|
493
729
|
chartScatterPoint: {
|
|
494
730
|
seriesKey: string;
|
|
@@ -496,8 +732,8 @@ interface components {
|
|
|
496
732
|
y: number;
|
|
497
733
|
};
|
|
498
734
|
chartScatterData: {
|
|
499
|
-
series: components[
|
|
500
|
-
points: components[
|
|
735
|
+
series: components["schemas"]["chartSeries"][];
|
|
736
|
+
points: components["schemas"]["chartScatterPoint"][];
|
|
501
737
|
};
|
|
502
738
|
assetUploadProgress: {
|
|
503
739
|
progress: number;
|
|
@@ -506,17 +742,17 @@ interface components {
|
|
|
506
742
|
};
|
|
507
743
|
assetUploadState: {
|
|
508
744
|
/** @constant */
|
|
509
|
-
type:
|
|
745
|
+
type: "pending-upload";
|
|
510
746
|
} | {
|
|
511
747
|
/** @constant */
|
|
512
|
-
type:
|
|
513
|
-
progress: components[
|
|
748
|
+
type: "in-progress";
|
|
749
|
+
progress: components["schemas"]["assetUploadProgress"];
|
|
514
750
|
} | {
|
|
515
751
|
/** @constant */
|
|
516
|
-
type:
|
|
752
|
+
type: "uploaded";
|
|
517
753
|
} | {
|
|
518
754
|
/** @constant */
|
|
519
|
-
type:
|
|
755
|
+
type: "error";
|
|
520
756
|
error: string | null | {
|
|
521
757
|
[key: string]: unknown;
|
|
522
758
|
};
|
|
@@ -530,49 +766,49 @@ interface components {
|
|
|
530
766
|
hidden: boolean;
|
|
531
767
|
muted: boolean;
|
|
532
768
|
};
|
|
533
|
-
imageAsset: components[
|
|
769
|
+
imageAsset: components["schemas"]["baseAsset"] & {
|
|
534
770
|
/** @constant */
|
|
535
|
-
type:
|
|
771
|
+
type: "image";
|
|
536
772
|
width: number;
|
|
537
773
|
height: number;
|
|
538
774
|
};
|
|
539
|
-
videoAsset: components[
|
|
775
|
+
videoAsset: components["schemas"]["baseAsset"] & {
|
|
540
776
|
/** @constant */
|
|
541
|
-
type:
|
|
777
|
+
type: "video";
|
|
542
778
|
durationInSeconds: number;
|
|
543
779
|
hasAudioTrack: boolean;
|
|
544
780
|
width: number;
|
|
545
781
|
height: number;
|
|
546
782
|
};
|
|
547
|
-
gifAsset: components[
|
|
783
|
+
gifAsset: components["schemas"]["baseAsset"] & {
|
|
548
784
|
/** @constant */
|
|
549
|
-
type:
|
|
785
|
+
type: "gif";
|
|
550
786
|
durationInSeconds: number;
|
|
551
787
|
width: number;
|
|
552
788
|
height: number;
|
|
553
789
|
/** @enum {string} */
|
|
554
|
-
loopBehavior:
|
|
790
|
+
loopBehavior: "finite" | "loop";
|
|
555
791
|
};
|
|
556
|
-
audioAsset: components[
|
|
792
|
+
audioAsset: components["schemas"]["baseAsset"] & {
|
|
557
793
|
/** @constant */
|
|
558
|
-
type:
|
|
794
|
+
type: "audio";
|
|
559
795
|
durationInSeconds: number;
|
|
560
796
|
};
|
|
561
|
-
captionAsset: components[
|
|
797
|
+
captionAsset: components["schemas"]["baseAsset"] & {
|
|
562
798
|
/** @constant */
|
|
563
|
-
type:
|
|
564
|
-
captions: components[
|
|
799
|
+
type: "caption";
|
|
800
|
+
captions: components["schemas"]["captionEntry"][];
|
|
565
801
|
/** @enum {string} */
|
|
566
|
-
timingGranularity:
|
|
802
|
+
timingGranularity: "word" | "line";
|
|
567
803
|
};
|
|
568
|
-
lottieAsset: components[
|
|
804
|
+
lottieAsset: components["schemas"]["baseAsset"] & {
|
|
569
805
|
/** @constant */
|
|
570
|
-
type:
|
|
806
|
+
type: "lottie";
|
|
571
807
|
durationInSeconds: number;
|
|
572
808
|
width: number;
|
|
573
809
|
height: number;
|
|
574
810
|
/** @enum {string} */
|
|
575
|
-
resourceType:
|
|
811
|
+
resourceType: "lottie" | "svg";
|
|
576
812
|
resourceJson?: {
|
|
577
813
|
[key: string]: unknown;
|
|
578
814
|
} | null;
|
|
@@ -581,241 +817,241 @@ interface components {
|
|
|
581
817
|
[key: string]: unknown;
|
|
582
818
|
} | null;
|
|
583
819
|
};
|
|
584
|
-
imageItem: components[
|
|
820
|
+
imageItem: components["schemas"]["baseItem"] & {
|
|
585
821
|
/** @constant */
|
|
586
|
-
type:
|
|
822
|
+
type: "image";
|
|
587
823
|
assetId: string;
|
|
588
824
|
stickerId?: string | null;
|
|
589
825
|
stickerVersion?: number | null;
|
|
590
826
|
keepAspectRatio: boolean;
|
|
591
|
-
borderRadius: components[
|
|
592
|
-
rotation: components[
|
|
593
|
-
cropLeft?: components[
|
|
594
|
-
cropTop?: components[
|
|
595
|
-
cropRight?: components[
|
|
596
|
-
cropBottom?: components[
|
|
597
|
-
animations?: components[
|
|
598
|
-
};
|
|
599
|
-
videoItem: components[
|
|
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"] & {
|
|
600
836
|
/** @constant */
|
|
601
|
-
type:
|
|
837
|
+
type: "video";
|
|
602
838
|
assetId: string;
|
|
603
839
|
keepAspectRatio: boolean;
|
|
604
|
-
borderRadius: components[
|
|
605
|
-
rotation: components[
|
|
840
|
+
borderRadius: components["schemas"]["animatedNumberTrack"];
|
|
841
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
606
842
|
videoStartFromInSeconds: number;
|
|
607
|
-
decibelAdjustment: components[
|
|
843
|
+
decibelAdjustment: components["schemas"]["animatedNumberTrack"];
|
|
608
844
|
playbackRate: number;
|
|
609
845
|
audioFadeInDurationInSeconds: number;
|
|
610
846
|
audioFadeOutDurationInSeconds: number;
|
|
611
|
-
cropLeft?: components[
|
|
612
|
-
cropTop?: components[
|
|
613
|
-
cropRight?: components[
|
|
614
|
-
cropBottom?: components[
|
|
615
|
-
animations?: components[
|
|
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"];
|
|
616
852
|
};
|
|
617
|
-
gifItem: components[
|
|
853
|
+
gifItem: components["schemas"]["baseItem"] & {
|
|
618
854
|
/** @constant */
|
|
619
|
-
type:
|
|
855
|
+
type: "gif";
|
|
620
856
|
assetId: string;
|
|
621
857
|
keepAspectRatio: boolean;
|
|
622
|
-
borderRadius: components[
|
|
623
|
-
rotation: components[
|
|
858
|
+
borderRadius: components["schemas"]["animatedNumberTrack"];
|
|
859
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
624
860
|
gifStartFromInSeconds: number;
|
|
625
861
|
playbackRate: number;
|
|
626
|
-
cropLeft?: components[
|
|
627
|
-
cropTop?: components[
|
|
628
|
-
cropRight?: components[
|
|
629
|
-
cropBottom?: components[
|
|
630
|
-
animations?: components[
|
|
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"];
|
|
631
867
|
};
|
|
632
|
-
lottieItem: components[
|
|
868
|
+
lottieItem: components["schemas"]["baseItem"] & {
|
|
633
869
|
/** @constant */
|
|
634
|
-
type:
|
|
870
|
+
type: "lottie";
|
|
635
871
|
assetId: string;
|
|
636
872
|
keepAspectRatio: boolean;
|
|
637
|
-
rotation: components[
|
|
873
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
638
874
|
lottieStartFromInSeconds: number;
|
|
639
875
|
playbackRate: number;
|
|
640
|
-
animations?: components[
|
|
876
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
641
877
|
};
|
|
642
|
-
audioItem: components[
|
|
878
|
+
audioItem: components["schemas"]["baseItem"] & {
|
|
643
879
|
/** @constant */
|
|
644
|
-
type:
|
|
880
|
+
type: "audio";
|
|
645
881
|
assetId: string;
|
|
646
882
|
audioStartFromInSeconds: number;
|
|
647
|
-
decibelAdjustment: components[
|
|
883
|
+
decibelAdjustment: components["schemas"]["animatedNumberTrack"];
|
|
648
884
|
playbackRate: number;
|
|
649
885
|
audioFadeInDurationInSeconds: number;
|
|
650
886
|
audioFadeOutDurationInSeconds: number;
|
|
651
887
|
};
|
|
652
|
-
textItem: components[
|
|
888
|
+
textItem: components["schemas"]["baseItem"] & {
|
|
653
889
|
/** @constant */
|
|
654
|
-
type:
|
|
890
|
+
type: "text";
|
|
655
891
|
text: string;
|
|
656
892
|
color: string;
|
|
657
893
|
/** @enum {string} */
|
|
658
|
-
align:
|
|
894
|
+
align: "left" | "center" | "right";
|
|
659
895
|
fontFamily: string;
|
|
660
|
-
fontStyle: components[
|
|
896
|
+
fontStyle: components["schemas"]["fontStyle"];
|
|
661
897
|
fontSize: number;
|
|
662
898
|
lineHeight: number;
|
|
663
899
|
letterSpacing: number;
|
|
664
900
|
resizeOnEdit: boolean;
|
|
665
901
|
/** @enum {string} */
|
|
666
|
-
direction:
|
|
902
|
+
direction: "ltr" | "rtl";
|
|
667
903
|
strokeWidth: number;
|
|
668
904
|
strokeColor: string;
|
|
669
|
-
background?: null | components[
|
|
670
|
-
rotation?: components[
|
|
671
|
-
animations?: components[
|
|
672
|
-
captionAnimations?: components[
|
|
905
|
+
background?: null | components["schemas"]["textBackground"];
|
|
906
|
+
rotation?: components["schemas"]["animatedNumberTrack"];
|
|
907
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
908
|
+
captionAnimations?: components["schemas"]["captionClipAnimations"];
|
|
673
909
|
};
|
|
674
|
-
textTemplateItem: components[
|
|
910
|
+
textTemplateItem: components["schemas"]["baseItem"] & {
|
|
675
911
|
/** @constant */
|
|
676
|
-
type:
|
|
912
|
+
type: "text-template";
|
|
677
913
|
/** @constant */
|
|
678
914
|
schemaVersion: 2;
|
|
679
915
|
templateId: string;
|
|
680
916
|
templateCategory: string;
|
|
681
|
-
nodes: (components[
|
|
682
|
-
rotation?: components[
|
|
683
|
-
animations?: components[
|
|
917
|
+
nodes: (components["schemas"]["textTemplateImageNode"] | components["schemas"]["textTemplateTextNode"])[];
|
|
918
|
+
rotation?: components["schemas"]["animatedNumberTrack"];
|
|
919
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
684
920
|
};
|
|
685
|
-
captionsItem: components[
|
|
921
|
+
captionsItem: components["schemas"]["baseItem"] & {
|
|
686
922
|
/** @constant */
|
|
687
|
-
type:
|
|
923
|
+
type: "captions";
|
|
688
924
|
assetId: string;
|
|
689
925
|
fontFamily: string;
|
|
690
|
-
fontStyle: components[
|
|
926
|
+
fontStyle: components["schemas"]["fontStyle"];
|
|
691
927
|
lineHeight: number;
|
|
692
928
|
letterSpacing: number;
|
|
693
929
|
fontSize: number;
|
|
694
930
|
/** @enum {string} */
|
|
695
|
-
align:
|
|
931
|
+
align: "left" | "center" | "right";
|
|
696
932
|
color: string;
|
|
697
933
|
highlightColor: string;
|
|
698
934
|
strokeWidth: number;
|
|
699
935
|
strokeColor: string;
|
|
700
936
|
/** @enum {string} */
|
|
701
|
-
direction:
|
|
937
|
+
direction: "ltr" | "rtl";
|
|
702
938
|
pageDurationInMilliseconds: number;
|
|
703
939
|
maxLines: number;
|
|
704
940
|
contentStartOffsetMs: number;
|
|
705
941
|
/** @enum {string} */
|
|
706
|
-
source:
|
|
942
|
+
source: "manual" | "auto" | "upload";
|
|
707
943
|
captionGroupId: string | null;
|
|
708
|
-
background: null | components[
|
|
709
|
-
rotation?: components[
|
|
710
|
-
animations?: components[
|
|
711
|
-
captionAnimations?: components[
|
|
944
|
+
background: null | components["schemas"]["textBackground"];
|
|
945
|
+
rotation?: components["schemas"]["animatedNumberTrack"];
|
|
946
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
947
|
+
captionAnimations?: components["schemas"]["captionClipAnimations"];
|
|
712
948
|
};
|
|
713
|
-
solidItem: components[
|
|
949
|
+
solidItem: components["schemas"]["baseItem"] & {
|
|
714
950
|
/** @constant */
|
|
715
|
-
type:
|
|
951
|
+
type: "solid";
|
|
716
952
|
color: string;
|
|
717
953
|
/** @enum {string} */
|
|
718
|
-
shape:
|
|
954
|
+
shape: "rectangle" | "circle" | "triangle" | "star";
|
|
719
955
|
keepAspectRatio: boolean;
|
|
720
|
-
borderRadius: components[
|
|
721
|
-
rotation: components[
|
|
722
|
-
animations?: components[
|
|
956
|
+
borderRadius: components["schemas"]["animatedNumberTrack"];
|
|
957
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
958
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
723
959
|
};
|
|
724
|
-
illustrationItem: components[
|
|
960
|
+
illustrationItem: components["schemas"]["baseItem"] & {
|
|
725
961
|
/** @constant */
|
|
726
|
-
type:
|
|
962
|
+
type: "illustration";
|
|
727
963
|
illustrationName: string;
|
|
728
964
|
color: string;
|
|
729
965
|
keepAspectRatio: boolean;
|
|
730
|
-
rotation: components[
|
|
731
|
-
animations?: components[
|
|
966
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
967
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
732
968
|
};
|
|
733
|
-
effectItem: components[
|
|
969
|
+
effectItem: components["schemas"]["timelineItemBase"] & {
|
|
734
970
|
/** @constant */
|
|
735
|
-
type:
|
|
971
|
+
type: "effect";
|
|
736
972
|
/** @enum {string} */
|
|
737
|
-
effectType:
|
|
973
|
+
effectType: "flash-to-black" | "blur" | "blurred-opening" | "fade-in" | "fade-out";
|
|
738
974
|
intensity: number;
|
|
739
975
|
params?: {
|
|
740
|
-
[key: string]: components[
|
|
976
|
+
[key: string]: components["schemas"]["primitive"];
|
|
741
977
|
};
|
|
742
978
|
};
|
|
743
|
-
filterItem: components[
|
|
979
|
+
filterItem: components["schemas"]["timelineItemBase"] & {
|
|
744
980
|
/** @constant */
|
|
745
|
-
type:
|
|
981
|
+
type: "filter";
|
|
746
982
|
/** @enum {string} */
|
|
747
|
-
filterType:
|
|
983
|
+
filterType: "verdant-glow" | "cyberpunk-neon" | "vaporwave-blue" | "sunset-orange" | "lemon-cyan" | "absolute-red" | "sakura-pink" | "twilight-dusk";
|
|
748
984
|
intensity: number;
|
|
749
985
|
params?: {
|
|
750
|
-
[key: string]: components[
|
|
986
|
+
[key: string]: components["schemas"]["primitive"];
|
|
751
987
|
};
|
|
752
988
|
};
|
|
753
|
-
chartItem: components[
|
|
989
|
+
chartItem: components["schemas"]["baseItem"] & ({
|
|
754
990
|
/** @constant */
|
|
755
|
-
type:
|
|
991
|
+
type: "chart";
|
|
756
992
|
/** @constant */
|
|
757
|
-
chartType:
|
|
993
|
+
chartType: "line";
|
|
758
994
|
themeColor: string;
|
|
759
|
-
data: components[
|
|
995
|
+
data: components["schemas"]["chartXYData"];
|
|
760
996
|
animationDurationTicks: number;
|
|
761
997
|
keepAspectRatio: boolean;
|
|
762
|
-
rotation: components[
|
|
763
|
-
animations?: components[
|
|
998
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
999
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
764
1000
|
} | {
|
|
765
1001
|
/** @constant */
|
|
766
|
-
type:
|
|
1002
|
+
type: "chart";
|
|
767
1003
|
/** @constant */
|
|
768
|
-
chartType:
|
|
1004
|
+
chartType: "bar";
|
|
769
1005
|
themeColor: string;
|
|
770
|
-
data: components[
|
|
1006
|
+
data: components["schemas"]["chartXYData"];
|
|
771
1007
|
animationDurationTicks: number;
|
|
772
1008
|
keepAspectRatio: boolean;
|
|
773
|
-
rotation: components[
|
|
774
|
-
animations?: components[
|
|
1009
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
1010
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
775
1011
|
} | {
|
|
776
1012
|
/** @constant */
|
|
777
|
-
type:
|
|
1013
|
+
type: "chart";
|
|
778
1014
|
/** @constant */
|
|
779
|
-
chartType:
|
|
1015
|
+
chartType: "area";
|
|
780
1016
|
themeColor: string;
|
|
781
|
-
data: components[
|
|
1017
|
+
data: components["schemas"]["chartXYData"];
|
|
782
1018
|
animationDurationTicks: number;
|
|
783
1019
|
keepAspectRatio: boolean;
|
|
784
|
-
rotation: components[
|
|
785
|
-
animations?: components[
|
|
1020
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
1021
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
786
1022
|
} | {
|
|
787
1023
|
/** @constant */
|
|
788
|
-
type:
|
|
1024
|
+
type: "chart";
|
|
789
1025
|
/** @constant */
|
|
790
|
-
chartType:
|
|
1026
|
+
chartType: "pie";
|
|
791
1027
|
themeColor: string;
|
|
792
|
-
data: components[
|
|
1028
|
+
data: components["schemas"]["chartPieData"];
|
|
793
1029
|
animationDurationTicks: number;
|
|
794
1030
|
keepAspectRatio: boolean;
|
|
795
|
-
rotation: components[
|
|
796
|
-
animations?: components[
|
|
1031
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
1032
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
797
1033
|
} | {
|
|
798
1034
|
/** @constant */
|
|
799
|
-
type:
|
|
1035
|
+
type: "chart";
|
|
800
1036
|
/** @constant */
|
|
801
|
-
chartType:
|
|
1037
|
+
chartType: "radar";
|
|
802
1038
|
themeColor: string;
|
|
803
|
-
data: components[
|
|
1039
|
+
data: components["schemas"]["chartXYData"];
|
|
804
1040
|
animationDurationTicks: number;
|
|
805
1041
|
keepAspectRatio: boolean;
|
|
806
|
-
rotation: components[
|
|
807
|
-
animations?: components[
|
|
1042
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
1043
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
808
1044
|
} | {
|
|
809
1045
|
/** @constant */
|
|
810
|
-
type:
|
|
1046
|
+
type: "chart";
|
|
811
1047
|
/** @constant */
|
|
812
|
-
chartType:
|
|
1048
|
+
chartType: "scatter";
|
|
813
1049
|
themeColor: string;
|
|
814
|
-
data: components[
|
|
1050
|
+
data: components["schemas"]["chartScatterData"];
|
|
815
1051
|
animationDurationTicks: number;
|
|
816
1052
|
keepAspectRatio: boolean;
|
|
817
|
-
rotation: components[
|
|
818
|
-
animations?: components[
|
|
1053
|
+
rotation: components["schemas"]["animatedNumberTrack"];
|
|
1054
|
+
animations?: components["schemas"]["clipAnimations"];
|
|
819
1055
|
});
|
|
820
1056
|
transition: {
|
|
821
1057
|
id: string;
|
|
@@ -823,34 +1059,34 @@ interface components {
|
|
|
823
1059
|
fromClipId: string;
|
|
824
1060
|
toClipId: string;
|
|
825
1061
|
/** @enum {string} */
|
|
826
|
-
type:
|
|
1062
|
+
type: "fade" | "slide" | "wipe" | "flip" | "clock-wipe" | "iris";
|
|
827
1063
|
durationTicks: number;
|
|
828
1064
|
/** @enum {string} */
|
|
829
|
-
easing?:
|
|
1065
|
+
easing?: "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
830
1066
|
params?: {
|
|
831
|
-
[key: string]: components[
|
|
1067
|
+
[key: string]: components["schemas"]["primitive"];
|
|
832
1068
|
};
|
|
833
1069
|
};
|
|
834
1070
|
globalBackground: {
|
|
835
1071
|
/** @constant */
|
|
836
|
-
type:
|
|
1072
|
+
type: "none";
|
|
837
1073
|
} | {
|
|
838
1074
|
/** @constant */
|
|
839
|
-
type:
|
|
1075
|
+
type: "color";
|
|
840
1076
|
color: string;
|
|
841
1077
|
gradient: string | null;
|
|
842
1078
|
} | {
|
|
843
1079
|
/** @constant */
|
|
844
|
-
type:
|
|
1080
|
+
type: "blur";
|
|
845
1081
|
/** @enum {integer} */
|
|
846
1082
|
level: 0 | 1 | 2 | 3 | 4;
|
|
847
1083
|
} | {
|
|
848
1084
|
/** @constant */
|
|
849
|
-
type:
|
|
1085
|
+
type: "image";
|
|
850
1086
|
imageAssetId: string | null;
|
|
851
1087
|
imageUrl: string;
|
|
852
1088
|
/** @enum {string} */
|
|
853
|
-
source:
|
|
1089
|
+
source: "preset" | "custom";
|
|
854
1090
|
};
|
|
855
1091
|
brandRuntime: null | {
|
|
856
1092
|
brandId: string | null;
|
|
@@ -866,29 +1102,29 @@ interface components {
|
|
|
866
1102
|
assetId: string;
|
|
867
1103
|
remoteUrl: string | null;
|
|
868
1104
|
remoteKey: string | null;
|
|
869
|
-
statusAtDeletion: components[
|
|
1105
|
+
statusAtDeletion: components["schemas"]["assetUploadState"];
|
|
870
1106
|
};
|
|
871
1107
|
/** IndreamEditorStateV1 */
|
|
872
|
-
|
|
1108
|
+
"editor-state.v1.schema": {
|
|
873
1109
|
compositionWidth: number;
|
|
874
1110
|
compositionHeight: number;
|
|
875
1111
|
/** @constant */
|
|
876
1112
|
timebaseTicksPerSecond: 240000;
|
|
877
1113
|
/** @enum {string} */
|
|
878
|
-
outputRatio?:
|
|
879
|
-
tracks: components[
|
|
1114
|
+
outputRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "custom";
|
|
1115
|
+
tracks: components["schemas"]["track"][];
|
|
880
1116
|
assets: {
|
|
881
|
-
[key: string]: components[
|
|
1117
|
+
[key: string]: components["schemas"]["imageAsset"] | components["schemas"]["videoAsset"] | components["schemas"]["gifAsset"] | components["schemas"]["audioAsset"] | components["schemas"]["captionAsset"] | components["schemas"]["lottieAsset"];
|
|
882
1118
|
};
|
|
883
1119
|
items: {
|
|
884
|
-
[key: string]: components[
|
|
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"];
|
|
885
1121
|
};
|
|
886
1122
|
transitions: {
|
|
887
|
-
[key: string]: components[
|
|
1123
|
+
[key: string]: components["schemas"]["transition"];
|
|
888
1124
|
};
|
|
889
|
-
globalBackground?: components[
|
|
890
|
-
brandRuntime?: components[
|
|
891
|
-
deletedAssets?: components[
|
|
1125
|
+
globalBackground?: components["schemas"]["globalBackground"];
|
|
1126
|
+
brandRuntime?: components["schemas"]["brandRuntime"];
|
|
1127
|
+
deletedAssets?: components["schemas"]["deletedAssetEntry"][];
|
|
892
1128
|
} & {
|
|
893
1129
|
[key: string]: unknown;
|
|
894
1130
|
};
|
|
@@ -900,7 +1136,7 @@ interface components {
|
|
|
900
1136
|
[name: string]: unknown;
|
|
901
1137
|
};
|
|
902
1138
|
content: {
|
|
903
|
-
|
|
1139
|
+
"application/json": components["schemas"]["Problem"];
|
|
904
1140
|
};
|
|
905
1141
|
};
|
|
906
1142
|
};
|
|
@@ -930,6 +1166,23 @@ type TExportFormat = 'mp4' | 'webm';
|
|
|
930
1166
|
type TTaskStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'PAUSED' | 'CANCELED';
|
|
931
1167
|
type TExportWebhookEventType = 'EXPORT_STARTED' | 'EXPORT_COMPLETED' | 'EXPORT_FAILED';
|
|
932
1168
|
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'];
|
|
933
1186
|
interface IApiProblem {
|
|
934
1187
|
type: string;
|
|
935
1188
|
title: string;
|
|
@@ -1121,11 +1374,21 @@ interface IAsset {
|
|
|
1121
1374
|
width: number | null;
|
|
1122
1375
|
height: number | null;
|
|
1123
1376
|
duration: number | null;
|
|
1377
|
+
captions?: TCaptionEntry[];
|
|
1378
|
+
timingGranularity?: TCaptionTimingGranularity;
|
|
1124
1379
|
}
|
|
1125
1380
|
interface IListAssetsResponse {
|
|
1126
1381
|
items: IAsset[];
|
|
1127
1382
|
nextPageCursor: string | null;
|
|
1128
1383
|
}
|
|
1384
|
+
interface IListIllustrationsResponse {
|
|
1385
|
+
items: IIllustrationSearchItem[];
|
|
1386
|
+
nextPageCursor: string | null;
|
|
1387
|
+
}
|
|
1388
|
+
interface IListMediaModelsResponse {
|
|
1389
|
+
items: IMediaModelListItem[];
|
|
1390
|
+
nextPageCursor: string | null;
|
|
1391
|
+
}
|
|
1129
1392
|
type TUploadBody = Blob | ArrayBuffer | ArrayBufferView | ReadableStream<Uint8Array>;
|
|
1130
1393
|
interface IUploadOptions extends IRequestOptions {
|
|
1131
1394
|
filename?: string;
|
|
@@ -1183,6 +1446,47 @@ declare class EditorResource {
|
|
|
1183
1446
|
validate(editorState: TEditorStateV1, options?: IRequestOptions): Promise<IEditorValidationResult>;
|
|
1184
1447
|
}
|
|
1185
1448
|
|
|
1449
|
+
declare class MaterialsResource {
|
|
1450
|
+
private readonly client;
|
|
1451
|
+
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>;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1186
1490
|
declare class ProjectsResource {
|
|
1187
1491
|
private readonly client;
|
|
1188
1492
|
constructor(client: IndreamClient);
|
|
@@ -1222,6 +1526,8 @@ declare class IndreamClient {
|
|
|
1222
1526
|
readonly fetchImpl: typeof fetch;
|
|
1223
1527
|
readonly exports: ExportsResource;
|
|
1224
1528
|
readonly editor: EditorResource;
|
|
1529
|
+
readonly materials: MaterialsResource;
|
|
1530
|
+
readonly media: MediaResource;
|
|
1225
1531
|
readonly projects: ProjectsResource;
|
|
1226
1532
|
readonly uploads: UploadsResource;
|
|
1227
1533
|
readonly assets: AssetsResource;
|
|
@@ -1286,4 +1592,4 @@ declare const parseExportWebhookEvent: (value: unknown) => IExportWebhookEvent;
|
|
|
1286
1592
|
declare const verifyExportWebhookSignature: ({ webhookSecret, timestamp, rawBody, signature, }: IVerifyExportWebhookSignatureParams) => Promise<boolean>;
|
|
1287
1593
|
declare const verifyExportWebhookRequest: ({ webhookSecret, rawBody, headers, maxSkewSeconds, nowTimestampSeconds, }: IVerifyExportWebhookRequestParams) => Promise<boolean>;
|
|
1288
1594
|
|
|
1289
|
-
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, 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 };
|
|
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 };
|