@blitzreels/sdk 0.1.3 → 0.1.4
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/README.md +25 -0
- package/dist/index.d.ts +462 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +402 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -107,6 +107,31 @@ await client.media.folders.create({
|
|
|
107
107
|
iconType: "video",
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
+
const audioResults = await client.audioLibrary.search({
|
|
111
|
+
query: "ambient riser",
|
|
112
|
+
provider: "all",
|
|
113
|
+
license: "cc0",
|
|
114
|
+
audioType: "sound_effect",
|
|
115
|
+
minDurationSeconds: undefined,
|
|
116
|
+
maxDurationSeconds: 12,
|
|
117
|
+
limit: 10,
|
|
118
|
+
page: undefined,
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
await client.audioLibrary.importAsset({
|
|
122
|
+
provider: audioResults.items[0].provider,
|
|
123
|
+
externalId: audioResults.items[0].external_id,
|
|
124
|
+
folderId: undefined,
|
|
125
|
+
projectId: "project_id",
|
|
126
|
+
startSeconds: 0,
|
|
127
|
+
durationSeconds: 12,
|
|
128
|
+
volume: 0.5,
|
|
129
|
+
fadeInSeconds: undefined,
|
|
130
|
+
fadeOutSeconds: undefined,
|
|
131
|
+
loop: true,
|
|
132
|
+
audioType: "sound_effect",
|
|
133
|
+
});
|
|
134
|
+
|
|
110
135
|
const project = await client.projects.inspect({
|
|
111
136
|
projectId: "project_id",
|
|
112
137
|
mode: "full",
|
package/dist/index.d.ts
CHANGED
|
@@ -170,6 +170,7 @@ export type MediaAttachResult = {
|
|
|
170
170
|
timeline_item_id: string | null;
|
|
171
171
|
message: string | null;
|
|
172
172
|
animation_applied: string | null;
|
|
173
|
+
layer_index: number | null;
|
|
173
174
|
}>;
|
|
174
175
|
summary: {
|
|
175
176
|
total: number;
|
|
@@ -179,6 +180,89 @@ export type MediaAttachResult = {
|
|
|
179
180
|
};
|
|
180
181
|
message: string;
|
|
181
182
|
};
|
|
183
|
+
export type MediaShortSuggestionList = {
|
|
184
|
+
saved: JsonObject[];
|
|
185
|
+
drafts: JsonObject[];
|
|
186
|
+
};
|
|
187
|
+
export type GenerateMediaShortSuggestionsOptions = {
|
|
188
|
+
assetId: string;
|
|
189
|
+
contentProfile: "auto" | "podcast" | "tutorial" | "generic" | undefined;
|
|
190
|
+
autoTrimSilence: boolean | undefined;
|
|
191
|
+
};
|
|
192
|
+
export type ApplyMediaShortSuggestionOptions = {
|
|
193
|
+
assetId: string;
|
|
194
|
+
suggestionId: string;
|
|
195
|
+
projectId: string;
|
|
196
|
+
captionStyleId: string | null | undefined;
|
|
197
|
+
markSaved: boolean | undefined;
|
|
198
|
+
allowUnverifiedExport: boolean | undefined;
|
|
199
|
+
automaticLayout: JsonObject | undefined;
|
|
200
|
+
};
|
|
201
|
+
export type ApplyMediaShortSuggestionResult = {
|
|
202
|
+
success: boolean;
|
|
203
|
+
project_id: string;
|
|
204
|
+
asset_id: string;
|
|
205
|
+
suggestion_id: string;
|
|
206
|
+
timeline_item_id: string;
|
|
207
|
+
[key: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
export type ClipSelectionMode = "auto_best" | "suggestion" | "time_range";
|
|
210
|
+
export type ClipLayoutMode = "auto" | "prefer_split" | "prefer_focus";
|
|
211
|
+
export type ClipContentTypeHint = "auto" | "podcast" | "tutorial" | "generic";
|
|
212
|
+
export type ClipQaMode = "required" | "permissive";
|
|
213
|
+
export type ClipTargetOptions = {
|
|
214
|
+
minDurationSeconds: number | null | undefined;
|
|
215
|
+
maxDurationSeconds: number;
|
|
216
|
+
};
|
|
217
|
+
export type CreateClipOptions = {
|
|
218
|
+
projectName: string | null | undefined;
|
|
219
|
+
source: {
|
|
220
|
+
sourceType: "asset" | "youtube";
|
|
221
|
+
assetId: string | null | undefined;
|
|
222
|
+
youtubeUrl: string | null | undefined;
|
|
223
|
+
};
|
|
224
|
+
selection: {
|
|
225
|
+
mode: ClipSelectionMode;
|
|
226
|
+
suggestionId: string | null | undefined;
|
|
227
|
+
startSeconds: number | null | undefined;
|
|
228
|
+
endSeconds: number | null | undefined;
|
|
229
|
+
};
|
|
230
|
+
target: ClipTargetOptions & {
|
|
231
|
+
aspectRatio: "9:16";
|
|
232
|
+
};
|
|
233
|
+
layout: {
|
|
234
|
+
mode: ClipLayoutMode;
|
|
235
|
+
contentTypeHint: ClipContentTypeHint | undefined;
|
|
236
|
+
};
|
|
237
|
+
captions: {
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
styleId: string | null | undefined;
|
|
240
|
+
};
|
|
241
|
+
qa: {
|
|
242
|
+
mode: ClipQaMode;
|
|
243
|
+
};
|
|
244
|
+
export: {
|
|
245
|
+
autoExport: boolean;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
export type ReselectClipOptions = {
|
|
249
|
+
clipId: string;
|
|
250
|
+
selection: CreateClipOptions["selection"];
|
|
251
|
+
target: ClipTargetOptions | null | undefined;
|
|
252
|
+
};
|
|
253
|
+
export type RepairClipOptions = {
|
|
254
|
+
clipId: string;
|
|
255
|
+
repairMode: "auto" | "prefer_split" | "prefer_focus" | "prefer_tutorial" | "move_captions_off_faces";
|
|
256
|
+
};
|
|
257
|
+
export type ExportClipOptions = {
|
|
258
|
+
clipId: string;
|
|
259
|
+
resolution: "720p" | "1080p";
|
|
260
|
+
format: "mp4" | "mov";
|
|
261
|
+
allowBlockingQaBypass: boolean;
|
|
262
|
+
};
|
|
263
|
+
export type ClipEnvelope = {
|
|
264
|
+
clip: JsonObject;
|
|
265
|
+
};
|
|
182
266
|
export type MediaAssetDetails = {
|
|
183
267
|
asset: {
|
|
184
268
|
id: string;
|
|
@@ -192,6 +276,26 @@ export type MediaAssetDetails = {
|
|
|
192
276
|
aiMood: string | null;
|
|
193
277
|
aiCameraMovement: string | null;
|
|
194
278
|
fileSizeBytes: number;
|
|
279
|
+
processingStatus: string | null | undefined;
|
|
280
|
+
processingSubstage: string | null;
|
|
281
|
+
processingError: string | null;
|
|
282
|
+
processingErrors: JsonObject;
|
|
283
|
+
processingAttempts: number | null;
|
|
284
|
+
retryable: boolean;
|
|
285
|
+
providerRequestIds: {
|
|
286
|
+
processJobRunId: string | null;
|
|
287
|
+
transcribeJobRunId: string | null;
|
|
288
|
+
providerRequestId: string | null;
|
|
289
|
+
};
|
|
290
|
+
processing_substage: string | null;
|
|
291
|
+
processing_error: string | null;
|
|
292
|
+
processing_errors: JsonObject;
|
|
293
|
+
processing_attempts: number | null;
|
|
294
|
+
provider_request_ids: {
|
|
295
|
+
process_job_run_id: string | null;
|
|
296
|
+
transcribe_job_run_id: string | null;
|
|
297
|
+
provider_request_id: string | null;
|
|
298
|
+
};
|
|
195
299
|
durationSeconds: number | null;
|
|
196
300
|
dimensionsWidth: number | null;
|
|
197
301
|
dimensionsHeight: number | null;
|
|
@@ -257,6 +361,23 @@ export type InsertAudioResult = {
|
|
|
257
361
|
};
|
|
258
362
|
txid: number | null;
|
|
259
363
|
};
|
|
364
|
+
export type UpdateAudioResult = {
|
|
365
|
+
success: boolean;
|
|
366
|
+
timeline_item_id: string;
|
|
367
|
+
duration_seconds: number;
|
|
368
|
+
volume: number;
|
|
369
|
+
fade_in_seconds: number;
|
|
370
|
+
fade_out_seconds: number;
|
|
371
|
+
txid: number | null;
|
|
372
|
+
};
|
|
373
|
+
export type UpdateMediaOverlayResult = {
|
|
374
|
+
success: boolean;
|
|
375
|
+
timelineItemId: string;
|
|
376
|
+
updated: JsonObject;
|
|
377
|
+
animationApplied: string | null;
|
|
378
|
+
keyframeCount: number;
|
|
379
|
+
message: string;
|
|
380
|
+
};
|
|
260
381
|
export type TimelineEditResult = {
|
|
261
382
|
action: string;
|
|
262
383
|
result: unknown;
|
|
@@ -312,6 +433,7 @@ export type CaptionWordBatchTextResult = {
|
|
|
312
433
|
export type CaptionWordCountResult = {
|
|
313
434
|
success: boolean;
|
|
314
435
|
updated_count: number;
|
|
436
|
+
updated_word_ids: string[] | undefined;
|
|
315
437
|
emphasis: boolean | undefined;
|
|
316
438
|
message: string | undefined;
|
|
317
439
|
};
|
|
@@ -325,10 +447,27 @@ export type CaptionWordMutationResult = {
|
|
|
325
447
|
words: JsonObject[];
|
|
326
448
|
message: string;
|
|
327
449
|
};
|
|
450
|
+
export type CaptionTrackSelectorOptions = {
|
|
451
|
+
projectId: string;
|
|
452
|
+
all: boolean | undefined;
|
|
453
|
+
captionId: string | undefined;
|
|
454
|
+
timelineItemId: string | undefined;
|
|
455
|
+
fromSeconds: number | undefined;
|
|
456
|
+
toSeconds: number | undefined;
|
|
457
|
+
};
|
|
458
|
+
export type CaptionTrackMutationResult = {
|
|
459
|
+
success: boolean;
|
|
460
|
+
action: "delete" | "hide" | "show";
|
|
461
|
+
affected_count: number;
|
|
462
|
+
caption_ids: string[];
|
|
463
|
+
timeline_item_ids: string[];
|
|
464
|
+
message: string;
|
|
465
|
+
};
|
|
328
466
|
export type CaptionThemeList = {
|
|
329
467
|
themes: JsonObject[];
|
|
330
468
|
total: number;
|
|
331
469
|
};
|
|
470
|
+
export type CaptionTheme = JsonObject;
|
|
332
471
|
export type CaptionThemePreview = {
|
|
333
472
|
preview_url: string;
|
|
334
473
|
expires_at: string;
|
|
@@ -501,6 +640,7 @@ export type UpdateTextOptions = {
|
|
|
501
640
|
text: string | undefined;
|
|
502
641
|
name: string | undefined;
|
|
503
642
|
spec: JsonObject | undefined;
|
|
643
|
+
durationSeconds: number | undefined;
|
|
504
644
|
};
|
|
505
645
|
export type RemoveTextOptions = {
|
|
506
646
|
projectId: string;
|
|
@@ -516,14 +656,215 @@ export type AddAudioOptions = {
|
|
|
516
656
|
fadeOutSeconds: number | undefined;
|
|
517
657
|
loop: boolean | undefined;
|
|
518
658
|
};
|
|
519
|
-
export type
|
|
520
|
-
|
|
659
|
+
export type UpdateAudioOptions = {
|
|
660
|
+
projectId: string;
|
|
661
|
+
timelineItemId: string;
|
|
662
|
+
durationSeconds: number | undefined;
|
|
663
|
+
volume: number | undefined;
|
|
664
|
+
fadeInSeconds: number | undefined;
|
|
665
|
+
fadeOutSeconds: number | undefined;
|
|
666
|
+
};
|
|
667
|
+
export type AudioLibraryProvider = "openverse" | "freesound" | "wikimedia";
|
|
668
|
+
export type AudioLibraryProviderFilter = AudioLibraryProvider | "all";
|
|
669
|
+
export type AudioLibraryLicenseFilter = "cc0" | "public_domain" | "attribution" | "all";
|
|
670
|
+
export type AudioLibraryTypeFilter = "music" | "sound_effect" | "ambient" | "other";
|
|
671
|
+
export type StockMediaProvider = "pexels" | "freesound";
|
|
672
|
+
export type StockMediaAssetType = "image" | "video" | "audio";
|
|
673
|
+
export type StockMediaOrientation = "landscape" | "portrait" | "square";
|
|
674
|
+
export type StockAudioType = "sound_effect" | "ambient" | "background_music" | "other";
|
|
675
|
+
export type GlobalBrollLibraryAssetType = "image" | "video" | "audio";
|
|
676
|
+
export type GlobalBrollLibraryAudioType = "music" | "sound_effect" | "ambient" | "background_music" | "other";
|
|
677
|
+
export type AudioLibraryItem = {
|
|
678
|
+
provider: AudioLibraryProvider;
|
|
679
|
+
external_id: string;
|
|
680
|
+
title: string;
|
|
681
|
+
creator_name: string | null;
|
|
682
|
+
creator_url: string | null;
|
|
683
|
+
source_url: string;
|
|
684
|
+
preview_url: string | null;
|
|
685
|
+
download_url: string | null;
|
|
686
|
+
duration_seconds: number | null;
|
|
687
|
+
license_code: string;
|
|
688
|
+
license_url: string | null;
|
|
689
|
+
requires_attribution: boolean;
|
|
690
|
+
attribution_text: string | null;
|
|
691
|
+
commercial_use_allowed: boolean;
|
|
692
|
+
tags: string[];
|
|
693
|
+
};
|
|
694
|
+
export type SearchAudioLibraryOptions = {
|
|
695
|
+
query: string;
|
|
696
|
+
provider: AudioLibraryProviderFilter | undefined;
|
|
697
|
+
license: AudioLibraryLicenseFilter | undefined;
|
|
698
|
+
audioType: AudioLibraryTypeFilter | undefined;
|
|
699
|
+
minDurationSeconds: number | null | undefined;
|
|
700
|
+
maxDurationSeconds: number | null | undefined;
|
|
701
|
+
limit: number | undefined;
|
|
702
|
+
page: number | undefined;
|
|
703
|
+
};
|
|
704
|
+
export type SearchAudioLibraryResult = {
|
|
705
|
+
items: AudioLibraryItem[];
|
|
706
|
+
warnings: string[];
|
|
707
|
+
providers: AudioLibraryProvider[];
|
|
708
|
+
};
|
|
709
|
+
export type ImportAudioLibraryAssetOptions = {
|
|
710
|
+
provider: AudioLibraryProvider;
|
|
711
|
+
externalId: string;
|
|
712
|
+
folderId: string | null | undefined;
|
|
713
|
+
projectId: string | null | undefined;
|
|
714
|
+
startSeconds: number | undefined;
|
|
715
|
+
durationSeconds: number | null | undefined;
|
|
716
|
+
volume: number | undefined;
|
|
717
|
+
fadeInSeconds: number | undefined;
|
|
718
|
+
fadeOutSeconds: number | undefined;
|
|
719
|
+
loop: boolean | undefined;
|
|
720
|
+
audioType: AudioLibraryTypeFilter | undefined;
|
|
721
|
+
};
|
|
722
|
+
export type ImportAudioLibraryAssetResult = {
|
|
723
|
+
asset: {
|
|
724
|
+
id: string;
|
|
725
|
+
name: string;
|
|
726
|
+
asset_type: "audio";
|
|
727
|
+
audio_type: string;
|
|
728
|
+
duration_seconds: number | null;
|
|
729
|
+
source_url: string;
|
|
730
|
+
license_code: string;
|
|
731
|
+
license_url: string | null;
|
|
732
|
+
attribution_text: string | null;
|
|
733
|
+
};
|
|
734
|
+
imported: boolean;
|
|
735
|
+
deduped: boolean;
|
|
736
|
+
timeline_item_id: string | null;
|
|
737
|
+
txid: number | null;
|
|
738
|
+
};
|
|
739
|
+
export type StockMediaVariant = {
|
|
740
|
+
id: string;
|
|
741
|
+
label: string;
|
|
742
|
+
url: string;
|
|
743
|
+
mime_type: string;
|
|
744
|
+
width: number | null;
|
|
745
|
+
height: number | null;
|
|
746
|
+
quality: string | null;
|
|
747
|
+
};
|
|
748
|
+
export type StockMediaItem = {
|
|
749
|
+
provider: StockMediaProvider;
|
|
750
|
+
provider_asset_id: string;
|
|
751
|
+
asset_type: StockMediaAssetType;
|
|
752
|
+
title: string;
|
|
753
|
+
preview_url: string | null;
|
|
754
|
+
thumbnail_url: string | null;
|
|
755
|
+
source_url: string;
|
|
756
|
+
author_name: string | null;
|
|
757
|
+
author_url: string | null;
|
|
758
|
+
license_code: string;
|
|
759
|
+
license_url: string | null;
|
|
760
|
+
requires_attribution: boolean;
|
|
761
|
+
width: number | null;
|
|
762
|
+
height: number | null;
|
|
763
|
+
duration_seconds: number | null;
|
|
764
|
+
variants: StockMediaVariant[];
|
|
765
|
+
};
|
|
766
|
+
export type SearchStockMediaOptions = {
|
|
767
|
+
query: string;
|
|
768
|
+
assetType: StockMediaAssetType;
|
|
769
|
+
provider: StockMediaProvider | null | undefined;
|
|
770
|
+
orientation: StockMediaOrientation | null | undefined;
|
|
771
|
+
page: number | undefined;
|
|
772
|
+
limit: number | undefined;
|
|
773
|
+
};
|
|
774
|
+
export type SearchStockMediaResult = {
|
|
775
|
+
items: StockMediaItem[];
|
|
776
|
+
warnings: string[];
|
|
777
|
+
};
|
|
778
|
+
export type ImportStockMediaOptions = {
|
|
779
|
+
provider: StockMediaProvider;
|
|
780
|
+
providerAssetId: string;
|
|
781
|
+
assetType: StockMediaAssetType;
|
|
782
|
+
variantId: string | null | undefined;
|
|
783
|
+
folderId: string | null | undefined;
|
|
784
|
+
audioType: StockAudioType | undefined;
|
|
785
|
+
};
|
|
786
|
+
export type ImportStockMediaResult = {
|
|
787
|
+
asset: {
|
|
788
|
+
id: string;
|
|
789
|
+
name: string;
|
|
790
|
+
asset_type: StockMediaAssetType;
|
|
791
|
+
processing_status: string;
|
|
792
|
+
source_url: string;
|
|
793
|
+
license_code: string;
|
|
794
|
+
license_url: string | null;
|
|
795
|
+
};
|
|
796
|
+
imported: boolean;
|
|
797
|
+
deduped: boolean;
|
|
798
|
+
};
|
|
799
|
+
export type GlobalBrollLibraryItem = {
|
|
800
|
+
id: string;
|
|
801
|
+
asset_type: GlobalBrollLibraryAssetType;
|
|
802
|
+
title: string;
|
|
803
|
+
description: string;
|
|
804
|
+
tags: string[];
|
|
805
|
+
preview_url: string | null;
|
|
806
|
+
thumbnail_url: string | null;
|
|
807
|
+
mime_type: string;
|
|
808
|
+
file_size_bytes: number;
|
|
809
|
+
duration_seconds: number | null;
|
|
810
|
+
width: number | null;
|
|
811
|
+
height: number | null;
|
|
812
|
+
audio_type: GlobalBrollLibraryAudioType;
|
|
813
|
+
license_code: string;
|
|
814
|
+
license_url: string | null;
|
|
815
|
+
requires_attribution: boolean;
|
|
816
|
+
attribution_text: string | null;
|
|
817
|
+
source_url: string | null;
|
|
818
|
+
};
|
|
819
|
+
export type SearchGlobalBrollLibraryOptions = {
|
|
820
|
+
query: string | null | undefined;
|
|
821
|
+
assetType: GlobalBrollLibraryAssetType | null | undefined;
|
|
822
|
+
audioType: GlobalBrollLibraryAudioType | null | undefined;
|
|
823
|
+
limit: number | undefined;
|
|
824
|
+
offset: number | undefined;
|
|
825
|
+
};
|
|
826
|
+
export type SearchGlobalBrollLibraryResult = {
|
|
827
|
+
items: GlobalBrollLibraryItem[];
|
|
828
|
+
};
|
|
829
|
+
export type ImportGlobalBrollLibraryAssetOptions = {
|
|
830
|
+
libraryAssetId: string;
|
|
831
|
+
folderId: string | null | undefined;
|
|
832
|
+
};
|
|
833
|
+
export type ImportGlobalBrollLibraryAssetResult = {
|
|
834
|
+
asset: {
|
|
835
|
+
id: string;
|
|
836
|
+
name: string;
|
|
837
|
+
asset_type: GlobalBrollLibraryAssetType;
|
|
838
|
+
processing_status: string;
|
|
839
|
+
library_asset_id: string;
|
|
840
|
+
};
|
|
841
|
+
imported: boolean;
|
|
842
|
+
deduped: boolean;
|
|
843
|
+
};
|
|
844
|
+
export type MediaPositionPreset = "center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "fullscreen" | "full-screen";
|
|
845
|
+
export type MediaAnimationPreset = "none" | "fadeIn" | "fadeOut" | "zoomIn" | "zoomOut" | "slideIn" | "slideLeft" | "slideRight" | "slideUp" | "slideDown" | "popIn" | "bounce" | "spin";
|
|
846
|
+
export type UpdateMediaOverlayOptions = {
|
|
847
|
+
projectId: string;
|
|
848
|
+
timelineItemId: string;
|
|
849
|
+
positionPreset: MediaPositionPreset | undefined;
|
|
850
|
+
positionX: number | undefined;
|
|
851
|
+
positionY: number | undefined;
|
|
852
|
+
widthPx: number | undefined;
|
|
853
|
+
heightPx: number | undefined;
|
|
854
|
+
scale: number | undefined;
|
|
855
|
+
animationPreset: MediaAnimationPreset | undefined;
|
|
856
|
+
removeAnimations: boolean | undefined;
|
|
857
|
+
blurredBackground: boolean | undefined;
|
|
858
|
+
};
|
|
521
859
|
export type CaptionWordSelectorOptions = {
|
|
522
860
|
projectId: string;
|
|
523
861
|
wordIds: string[] | undefined;
|
|
524
862
|
matchText: string | undefined;
|
|
525
863
|
matchPattern: "numbers" | "caps" | "exclamations" | undefined;
|
|
526
864
|
timelineItemId: string | undefined;
|
|
865
|
+
all: boolean | undefined;
|
|
866
|
+
fromSeconds: number | undefined;
|
|
867
|
+
toSeconds: number | undefined;
|
|
527
868
|
};
|
|
528
869
|
export type ListCaptionWordsOptions = {
|
|
529
870
|
projectId: string;
|
|
@@ -572,11 +913,16 @@ export type PreviewCaptionThemeOptions = {
|
|
|
572
913
|
targetWidth: number | undefined;
|
|
573
914
|
imageFormat: "png" | "jpeg" | undefined;
|
|
574
915
|
};
|
|
916
|
+
export type UpdateCaptionThemeOptions = {
|
|
917
|
+
themeId: string;
|
|
918
|
+
name: string | undefined;
|
|
919
|
+
description: string | undefined;
|
|
920
|
+
settings: JsonObject | undefined;
|
|
921
|
+
};
|
|
575
922
|
export type StartExportOptions = {
|
|
576
923
|
projectId: string;
|
|
577
924
|
resolution: string | undefined;
|
|
578
925
|
format: string | undefined;
|
|
579
|
-
includeCaptions: boolean | undefined;
|
|
580
926
|
};
|
|
581
927
|
export type WaitExportOptions = {
|
|
582
928
|
exportId: string;
|
|
@@ -585,7 +931,8 @@ export type WaitExportOptions = {
|
|
|
585
931
|
};
|
|
586
932
|
export type SilencePlanOptions = {
|
|
587
933
|
projectId: string;
|
|
588
|
-
timelineItemId: string;
|
|
934
|
+
timelineItemId: string | undefined;
|
|
935
|
+
allMediaItems: boolean | undefined;
|
|
589
936
|
paddingMs: number | undefined;
|
|
590
937
|
silenceThresholdDb: number | undefined;
|
|
591
938
|
minSilenceDurationSeconds: number | undefined;
|
|
@@ -607,6 +954,63 @@ export type MistakeApplyOptions = MistakePlanOptions & {
|
|
|
607
954
|
deleteMistakes: boolean | undefined;
|
|
608
955
|
previewConfirmed: true;
|
|
609
956
|
};
|
|
957
|
+
export type EffectEasing = "linear" | "easeIn" | "easeOut" | "easeInOut";
|
|
958
|
+
export type ZoomEffectSettings = {
|
|
959
|
+
scale: {
|
|
960
|
+
start: number;
|
|
961
|
+
end: number;
|
|
962
|
+
} | undefined;
|
|
963
|
+
translate: {
|
|
964
|
+
start: {
|
|
965
|
+
x: number;
|
|
966
|
+
y: number;
|
|
967
|
+
};
|
|
968
|
+
end: {
|
|
969
|
+
x: number;
|
|
970
|
+
y: number;
|
|
971
|
+
};
|
|
972
|
+
} | undefined;
|
|
973
|
+
anchor: {
|
|
974
|
+
x: number;
|
|
975
|
+
y: number;
|
|
976
|
+
} | undefined;
|
|
977
|
+
style: "transition" | "hard" | undefined;
|
|
978
|
+
phase: "in" | "out" | "both" | "none" | undefined;
|
|
979
|
+
inDurationSeconds: number | undefined;
|
|
980
|
+
outDurationSeconds: number | null | undefined;
|
|
981
|
+
outScale: number | null | undefined;
|
|
982
|
+
};
|
|
983
|
+
export type MaskEffectSettings = JsonObject;
|
|
984
|
+
export type ColorGradeEffectSettings = JsonObject;
|
|
985
|
+
export type AddEffectOptions<TSettings> = {
|
|
986
|
+
projectId: string;
|
|
987
|
+
timelineItemId: string | undefined;
|
|
988
|
+
contentItemId: string | undefined;
|
|
989
|
+
effectId: string | undefined;
|
|
990
|
+
name: string | undefined;
|
|
991
|
+
startTimeSeconds: number | undefined;
|
|
992
|
+
durationSeconds: number | undefined;
|
|
993
|
+
easing: EffectEasing | undefined;
|
|
994
|
+
layerIndex: number | undefined;
|
|
995
|
+
orderIndex: number | undefined;
|
|
996
|
+
settings: TSettings | undefined;
|
|
997
|
+
};
|
|
998
|
+
export type UpdateEffectOptions<TSettings> = {
|
|
999
|
+
projectId: string;
|
|
1000
|
+
timelineItemId: string;
|
|
1001
|
+
durationSeconds: number | undefined;
|
|
1002
|
+
easing: EffectEasing | undefined;
|
|
1003
|
+
settings: TSettings | undefined;
|
|
1004
|
+
};
|
|
1005
|
+
export type EffectMutationResult = {
|
|
1006
|
+
success: true;
|
|
1007
|
+
project_id: string;
|
|
1008
|
+
timeline_item_id: string;
|
|
1009
|
+
content_item_id: string;
|
|
1010
|
+
effect_id: string;
|
|
1011
|
+
effect_type: "zoom" | "mask" | "colorgrade";
|
|
1012
|
+
txid: number | null;
|
|
1013
|
+
};
|
|
610
1014
|
export declare class BlitzReelsClient {
|
|
611
1015
|
private apiKey;
|
|
612
1016
|
private baseUrl;
|
|
@@ -643,6 +1047,20 @@ export declare class BlitzReelsClient {
|
|
|
643
1047
|
timelineItemId: string;
|
|
644
1048
|
}) => Promise<TimelineItemDeleteResult>;
|
|
645
1049
|
};
|
|
1050
|
+
effects: {
|
|
1051
|
+
zoom: {
|
|
1052
|
+
add: (options: AddEffectOptions<ZoomEffectSettings>) => Promise<EffectMutationResult>;
|
|
1053
|
+
update: (options: UpdateEffectOptions<ZoomEffectSettings>) => Promise<EffectMutationResult>;
|
|
1054
|
+
};
|
|
1055
|
+
mask: {
|
|
1056
|
+
add: (options: AddEffectOptions<MaskEffectSettings>) => Promise<EffectMutationResult>;
|
|
1057
|
+
update: (options: UpdateEffectOptions<MaskEffectSettings>) => Promise<EffectMutationResult>;
|
|
1058
|
+
};
|
|
1059
|
+
colorgrade: {
|
|
1060
|
+
add: (options: AddEffectOptions<ColorGradeEffectSettings>) => Promise<EffectMutationResult>;
|
|
1061
|
+
update: (options: UpdateEffectOptions<ColorGradeEffectSettings>) => Promise<EffectMutationResult>;
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
646
1064
|
workspace: {
|
|
647
1065
|
getSettings: () => Promise<WorkspaceSettings>;
|
|
648
1066
|
updateSettings: (options: UpdateWorkspaceSettingsOptions) => Promise<WorkspaceSettingsUpdate>;
|
|
@@ -652,6 +1070,10 @@ export declare class BlitzReelsClient {
|
|
|
652
1070
|
get: (options: {
|
|
653
1071
|
assetId: string;
|
|
654
1072
|
}) => Promise<MediaAssetDetails>;
|
|
1073
|
+
clippingStatus: (options: {
|
|
1074
|
+
assetId: string;
|
|
1075
|
+
projectId: string | undefined;
|
|
1076
|
+
}) => Promise<JsonObject>;
|
|
655
1077
|
delete: (options: {
|
|
656
1078
|
assetId: string;
|
|
657
1079
|
}) => Promise<{
|
|
@@ -663,6 +1085,16 @@ export declare class BlitzReelsClient {
|
|
|
663
1085
|
update: (options: UpdateMediaOptions) => Promise<MediaAssetUpdateResult>;
|
|
664
1086
|
move: (options: MoveMediaOptions) => Promise<MediaMoveResult>;
|
|
665
1087
|
attachToProject: (options: AttachMediaToProjectOptions) => Promise<MediaAttachResult>;
|
|
1088
|
+
updateOverlay: (options: UpdateMediaOverlayOptions) => Promise<UpdateMediaOverlayResult>;
|
|
1089
|
+
shorts: {
|
|
1090
|
+
list: (options: {
|
|
1091
|
+
assetId: string;
|
|
1092
|
+
}) => Promise<MediaShortSuggestionList>;
|
|
1093
|
+
generate: (options: GenerateMediaShortSuggestionsOptions) => Promise<{
|
|
1094
|
+
run_id: string;
|
|
1095
|
+
}>;
|
|
1096
|
+
apply: (options: ApplyMediaShortSuggestionOptions) => Promise<ApplyMediaShortSuggestionResult>;
|
|
1097
|
+
};
|
|
666
1098
|
folders: {
|
|
667
1099
|
list: (options: ListMediaFoldersOptions) => Promise<MediaFoldersList>;
|
|
668
1100
|
create: (options: CreateMediaFolderOptions) => Promise<{
|
|
@@ -681,6 +1113,15 @@ export declare class BlitzReelsClient {
|
|
|
681
1113
|
}>;
|
|
682
1114
|
};
|
|
683
1115
|
};
|
|
1116
|
+
clips: {
|
|
1117
|
+
create: (options: CreateClipOptions) => Promise<ClipEnvelope>;
|
|
1118
|
+
get: (options: {
|
|
1119
|
+
clipId: string;
|
|
1120
|
+
}) => Promise<ClipEnvelope>;
|
|
1121
|
+
reselect: (options: ReselectClipOptions) => Promise<ClipEnvelope>;
|
|
1122
|
+
repair: (options: RepairClipOptions) => Promise<ClipEnvelope>;
|
|
1123
|
+
export: (options: ExportClipOptions) => Promise<ClipEnvelope>;
|
|
1124
|
+
};
|
|
684
1125
|
text: {
|
|
685
1126
|
add: (options: AddTextOptions) => Promise<CreateContentItemResult>;
|
|
686
1127
|
list: (options: {
|
|
@@ -695,6 +1136,19 @@ export declare class BlitzReelsClient {
|
|
|
695
1136
|
};
|
|
696
1137
|
audio: {
|
|
697
1138
|
add: (options: AddAudioOptions) => Promise<InsertAudioResult>;
|
|
1139
|
+
update: (options: UpdateAudioOptions) => Promise<UpdateAudioResult>;
|
|
1140
|
+
};
|
|
1141
|
+
audioLibrary: {
|
|
1142
|
+
search: (options: SearchAudioLibraryOptions) => Promise<SearchAudioLibraryResult>;
|
|
1143
|
+
importAsset: (options: ImportAudioLibraryAssetOptions) => Promise<ImportAudioLibraryAssetResult>;
|
|
1144
|
+
};
|
|
1145
|
+
stockMedia: {
|
|
1146
|
+
search: (options: SearchStockMediaOptions) => Promise<SearchStockMediaResult>;
|
|
1147
|
+
importAsset: (options: ImportStockMediaOptions) => Promise<ImportStockMediaResult>;
|
|
1148
|
+
};
|
|
1149
|
+
library: {
|
|
1150
|
+
search: (options: SearchGlobalBrollLibraryOptions) => Promise<SearchGlobalBrollLibraryResult>;
|
|
1151
|
+
importAsset: (options: ImportGlobalBrollLibraryAssetOptions) => Promise<ImportGlobalBrollLibraryAssetResult>;
|
|
698
1152
|
};
|
|
699
1153
|
silence: {
|
|
700
1154
|
plan: (options: SilencePlanOptions) => Promise<unknown>;
|
|
@@ -711,9 +1165,13 @@ export declare class BlitzReelsClient {
|
|
|
711
1165
|
setWordStyle: (options: SetCaptionWordStyleOptions) => Promise<CaptionWordCountResult>;
|
|
712
1166
|
setWordEmphasis: (options: SetCaptionWordEmphasisOptions) => Promise<CaptionWordCountResult>;
|
|
713
1167
|
deleteWords: (options: DeleteCaptionWordsOptions) => Promise<CaptionWordMutationResult>;
|
|
1168
|
+
delete: (options: CaptionTrackSelectorOptions) => Promise<CaptionTrackMutationResult>;
|
|
1169
|
+
hide: (options: CaptionTrackSelectorOptions) => Promise<CaptionTrackMutationResult>;
|
|
1170
|
+
show: (options: CaptionTrackSelectorOptions) => Promise<CaptionTrackMutationResult>;
|
|
714
1171
|
mergeWords: (options: MergeCaptionWordsOptions) => Promise<CaptionWordMutationResult>;
|
|
715
1172
|
splitWord: (options: SplitCaptionWordOptions) => Promise<CaptionWordMutationResult>;
|
|
716
1173
|
listThemes: () => Promise<CaptionThemeList>;
|
|
1174
|
+
updateTheme: (options: UpdateCaptionThemeOptions) => Promise<CaptionTheme>;
|
|
717
1175
|
setDefaultTheme: (options: {
|
|
718
1176
|
themeId: string;
|
|
719
1177
|
}) => Promise<{
|