@blitzreels/sdk 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +52 -0
  2. package/dist/client.d.ts +190 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +72 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/index.d.ts +16 -1482
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +3 -1060
  9. package/dist/index.js.map +1 -1
  10. package/dist/resources/ai-edit.d.ts +2 -2
  11. package/dist/resources/ai-edit.d.ts.map +1 -1
  12. package/dist/resources/auth-projects.d.ts +24 -0
  13. package/dist/resources/auth-projects.d.ts.map +1 -0
  14. package/dist/resources/auth-projects.js +115 -0
  15. package/dist/resources/auth-projects.js.map +1 -0
  16. package/dist/resources/captions.d.ts +4 -5
  17. package/dist/resources/captions.d.ts.map +1 -1
  18. package/dist/resources/captions.js +8 -0
  19. package/dist/resources/captions.js.map +1 -1
  20. package/dist/resources/content-audio.d.ts +20 -0
  21. package/dist/resources/content-audio.d.ts.map +1 -0
  22. package/dist/resources/content-audio.js +98 -0
  23. package/dist/resources/content-audio.js.map +1 -0
  24. package/dist/resources/effects-workflows.d.ts +29 -0
  25. package/dist/resources/effects-workflows.d.ts.map +1 -0
  26. package/dist/resources/effects-workflows.js +154 -0
  27. package/dist/resources/effects-workflows.js.map +1 -0
  28. package/dist/resources/exports-jobs.d.ts +19 -0
  29. package/dist/resources/exports-jobs.d.ts.map +1 -0
  30. package/dist/resources/exports-jobs.js +88 -0
  31. package/dist/resources/exports-jobs.js.map +1 -0
  32. package/dist/resources/faceless.d.ts +18 -0
  33. package/dist/resources/faceless.d.ts.map +1 -0
  34. package/dist/resources/faceless.js +89 -0
  35. package/dist/resources/faceless.js.map +1 -0
  36. package/dist/resources/formats.d.ts +9 -0
  37. package/dist/resources/formats.d.ts.map +1 -0
  38. package/dist/resources/formats.js +21 -0
  39. package/dist/resources/formats.js.map +1 -0
  40. package/dist/resources/libraries.d.ts +19 -0
  41. package/dist/resources/libraries.d.ts.map +1 -0
  42. package/dist/resources/libraries.js +89 -0
  43. package/dist/resources/libraries.js.map +1 -0
  44. package/dist/resources/media-clips.d.ts +57 -0
  45. package/dist/resources/media-clips.d.ts.map +1 -0
  46. package/dist/resources/media-clips.js +346 -0
  47. package/dist/resources/media-clips.js.map +1 -0
  48. package/dist/resources/timeline.d.ts +10 -2
  49. package/dist/resources/timeline.d.ts.map +1 -1
  50. package/dist/resources/timeline.js +90 -45
  51. package/dist/resources/timeline.js.map +1 -1
  52. package/dist/resources/workspace-onboarding.d.ts +25 -0
  53. package/dist/resources/workspace-onboarding.d.ts.map +1 -0
  54. package/dist/resources/workspace-onboarding.js +99 -0
  55. package/dist/resources/workspace-onboarding.js.map +1 -0
  56. package/dist/transport.d.ts +22 -0
  57. package/dist/transport.d.ts.map +1 -0
  58. package/dist/transport.js +189 -0
  59. package/dist/transport.js.map +1 -0
  60. package/dist/types/ai-edit.d.ts +180 -0
  61. package/dist/types/ai-edit.d.ts.map +1 -0
  62. package/dist/types/ai-edit.js +2 -0
  63. package/dist/types/ai-edit.js.map +1 -0
  64. package/dist/types/captions.d.ts +181 -0
  65. package/dist/types/captions.d.ts.map +1 -0
  66. package/dist/types/captions.js +2 -0
  67. package/dist/types/captions.js.map +1 -0
  68. package/dist/types/clips.d.ts +124 -0
  69. package/dist/types/clips.d.ts.map +1 -0
  70. package/dist/types/clips.js +2 -0
  71. package/dist/types/clips.js.map +1 -0
  72. package/dist/types/common.d.ts +241 -0
  73. package/dist/types/common.d.ts.map +1 -0
  74. package/dist/{resources → types}/common.js.map +1 -1
  75. package/dist/types/exports.d.ts +62 -0
  76. package/dist/types/exports.d.ts.map +1 -0
  77. package/dist/types/exports.js +2 -0
  78. package/dist/types/exports.js.map +1 -0
  79. package/dist/types/faceless.d.ts +167 -0
  80. package/dist/types/faceless.d.ts.map +1 -0
  81. package/dist/types/faceless.js +2 -0
  82. package/dist/types/faceless.js.map +1 -0
  83. package/dist/types/formats.d.ts +40 -0
  84. package/dist/types/formats.d.ts.map +1 -0
  85. package/dist/types/formats.js +2 -0
  86. package/dist/types/formats.js.map +1 -0
  87. package/dist/types/libraries.d.ts +184 -0
  88. package/dist/types/libraries.d.ts.map +1 -0
  89. package/dist/types/libraries.js +2 -0
  90. package/dist/types/libraries.js.map +1 -0
  91. package/dist/types/media.d.ts +297 -0
  92. package/dist/types/media.d.ts.map +1 -0
  93. package/dist/types/media.js +2 -0
  94. package/dist/types/media.js.map +1 -0
  95. package/dist/types/projects.d.ts +185 -0
  96. package/dist/types/projects.d.ts.map +1 -0
  97. package/dist/types/projects.js +2 -0
  98. package/dist/types/projects.js.map +1 -0
  99. package/dist/types/timeline.d.ts +90 -0
  100. package/dist/types/timeline.d.ts.map +1 -0
  101. package/dist/types/timeline.js +2 -0
  102. package/dist/types/timeline.js.map +1 -0
  103. package/dist/types/workspace.d.ts +129 -0
  104. package/dist/types/workspace.d.ts.map +1 -0
  105. package/dist/types/workspace.js +2 -0
  106. package/dist/types/workspace.js.map +1 -0
  107. package/package.json +6 -1
  108. package/dist/resources/common.d.ts +0 -3
  109. package/dist/resources/common.d.ts.map +0 -1
  110. /package/dist/{resources → types}/common.js +0 -0
@@ -0,0 +1,181 @@
1
+ import type { JsonObject } from "./common.js";
2
+ export type CaptionWordsList = {
3
+ success: boolean;
4
+ words: JsonObject[];
5
+ pagination: JsonObject;
6
+ summary: JsonObject;
7
+ hint: string | undefined;
8
+ };
9
+ export type CaptionWordTextResult = {
10
+ success: boolean;
11
+ word_id: string;
12
+ old_text: string;
13
+ new_text: string;
14
+ message: string | undefined;
15
+ };
16
+ export type CaptionWordBatchTextResult = {
17
+ success: boolean;
18
+ updates: JsonObject[];
19
+ affected_caption_ids: string[];
20
+ message: string;
21
+ };
22
+ export type CaptionWordTimingResult = {
23
+ success: boolean;
24
+ updates: JsonObject[];
25
+ affected_caption_ids: string[];
26
+ words: JsonObject[];
27
+ message: string;
28
+ };
29
+ export type CaptionWordCountResult = {
30
+ success: boolean;
31
+ updated_count: number;
32
+ updated_word_ids: string[] | undefined;
33
+ emphasis: boolean | undefined;
34
+ message: string | undefined;
35
+ };
36
+ export type CaptionWordMutationResult = {
37
+ success: boolean;
38
+ caption_id: string;
39
+ affected_caption_ids: string[] | undefined;
40
+ deleted_word_ids: string[] | undefined;
41
+ merged_word_id: string | undefined;
42
+ split_word_ids: string[] | undefined;
43
+ words: JsonObject[];
44
+ message: string;
45
+ };
46
+ export type CaptionTrackSelectorOptions = {
47
+ projectId: string;
48
+ all: boolean | undefined;
49
+ captionId: string | undefined;
50
+ timelineItemId: string | undefined;
51
+ fromSeconds: number | undefined;
52
+ toSeconds: number | undefined;
53
+ };
54
+ export type CaptionTrackMutationResult = {
55
+ success: boolean;
56
+ action: "delete" | "hide" | "show";
57
+ affected_count: number;
58
+ caption_ids: string[];
59
+ timeline_item_ids: string[];
60
+ message: string;
61
+ };
62
+ export type CaptionThemeList = {
63
+ themes: JsonObject[];
64
+ total: number;
65
+ };
66
+ export type CaptionTheme = JsonObject;
67
+ export type CaptionThemeDefaultResult = {
68
+ success: boolean;
69
+ scope: "workspace";
70
+ workspace_id: string;
71
+ default_caption_theme_id: string;
72
+ };
73
+ export type CaptionPresetList = {
74
+ presets: JsonObject[];
75
+ total: number;
76
+ };
77
+ export type CaptionLookList = {
78
+ looks: JsonObject[];
79
+ total: number;
80
+ };
81
+ export type CaptionStyle = {
82
+ success: boolean;
83
+ settings: JsonObject;
84
+ hint: string | undefined;
85
+ };
86
+ export type UpdateCaptionStyleOptions = {
87
+ projectId: string;
88
+ lookId: string | undefined;
89
+ presetId: string | undefined;
90
+ clearWordOverrides: boolean | undefined;
91
+ style: JsonObject;
92
+ };
93
+ export type CaptionStyleUpdateResult = {
94
+ success: boolean;
95
+ updated_properties: string[];
96
+ look_id: string | null | undefined;
97
+ preset_id: string | null | undefined;
98
+ message: string | undefined;
99
+ };
100
+ export type CaptionThemePreview = {
101
+ preview_url: string;
102
+ expires_at: string;
103
+ width: number;
104
+ height: number;
105
+ };
106
+ export type CaptionWordSelectorOptions = {
107
+ projectId: string;
108
+ wordIds: string[] | undefined;
109
+ matchText: string | undefined;
110
+ matchPattern: "numbers" | "caps" | "exclamations" | undefined;
111
+ timelineItemId: string | undefined;
112
+ all: boolean | undefined;
113
+ fromSeconds: number | undefined;
114
+ toSeconds: number | undefined;
115
+ };
116
+ export type ListCaptionWordsOptions = {
117
+ projectId: string;
118
+ timelineItemId: string | undefined;
119
+ matchText: string | undefined;
120
+ limit: number | undefined;
121
+ offset: number | undefined;
122
+ };
123
+ export type UpdateCaptionWordTextOptions = {
124
+ projectId: string;
125
+ wordId: string;
126
+ newText: string;
127
+ };
128
+ export type BatchUpdateCaptionWordTextOptions = {
129
+ projectId: string;
130
+ updates: Array<{
131
+ word_id: string;
132
+ new_text: string;
133
+ }>;
134
+ };
135
+ export type RetimeCaptionWordsOptions = {
136
+ projectId: string;
137
+ updates: Array<{
138
+ word_id: string;
139
+ start_seconds: number;
140
+ end_seconds: number;
141
+ }>;
142
+ };
143
+ export type SetCaptionWordStyleOptions = CaptionWordSelectorOptions & {
144
+ style: JsonObject | null;
145
+ clearExisting: boolean | undefined;
146
+ };
147
+ export type SetCaptionWordEmphasisOptions = CaptionWordSelectorOptions & {
148
+ emphasis: boolean;
149
+ };
150
+ export type DeleteCaptionWordsOptions = {
151
+ projectId: string;
152
+ wordIds: string[] | undefined;
153
+ timelineItemId: string | undefined;
154
+ all: boolean | undefined;
155
+ fromSeconds: number | undefined;
156
+ toSeconds: number | undefined;
157
+ };
158
+ export type MergeCaptionWordsOptions = {
159
+ projectId: string;
160
+ wordIds: string[];
161
+ text: string | undefined;
162
+ };
163
+ export type SplitCaptionWordOptions = {
164
+ projectId: string;
165
+ wordId: string;
166
+ words: string[];
167
+ };
168
+ export type PreviewCaptionThemeOptions = {
169
+ settings: JsonObject;
170
+ sampleText: string | undefined;
171
+ aspectRatio: "9:16" | "16:9" | "1:1" | undefined;
172
+ targetWidth: number | undefined;
173
+ imageFormat: "png" | "jpeg" | undefined;
174
+ };
175
+ export type UpdateCaptionThemeOptions = {
176
+ themeId: string;
177
+ name: string | undefined;
178
+ description: string | undefined;
179
+ settings: JsonObject | undefined;
180
+ };
181
+ //# sourceMappingURL=captions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captions.d.ts","sourceRoot":"","sources":["../../src/types/captions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,UAAU,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACn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AAU,GAAG,SAAS,CAAC;CAClC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=captions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captions.js","sourceRoot":"","sources":["../../src/types/captions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,124 @@
1
+ import type { JsonObject } from "./common.js";
2
+ export type ClipSelectionMode = "auto_best" | "suggestion" | "time_range";
3
+ export type ClipPresetId = "default" | "formation-clipperz" | "high-retention" | "demo-focus";
4
+ export type YoutubeImportQuality = "720p" | "1080p" | "1440p" | "2160p";
5
+ export type ClipTargetOptions = {
6
+ minDurationSeconds: number | null | undefined;
7
+ maxDurationSeconds: number;
8
+ };
9
+ export type ClipSelectionOptions = {
10
+ mode: ClipSelectionMode;
11
+ suggestionId: string | null | undefined;
12
+ startSeconds: number | null | undefined;
13
+ endSeconds: number | null | undefined;
14
+ };
15
+ export type CreateClipBatchOptions = {
16
+ source: {
17
+ sourceType: "asset" | "youtube";
18
+ assetId: string | null | undefined;
19
+ youtubeUrl: string | null | undefined;
20
+ quality: YoutubeImportQuality | null | undefined;
21
+ };
22
+ clipPresetId: ClipPresetId | null | undefined;
23
+ captionThemeId: string | null | undefined;
24
+ createFlowOptions: JsonObject | undefined;
25
+ brandingOptions: JsonObject | undefined;
26
+ idempotencyKey: string | undefined;
27
+ };
28
+ export type ClipBatchClip = {
29
+ clip_id: string;
30
+ suggestion_id: string | null;
31
+ project_id: string | null;
32
+ export_id: string | null;
33
+ title: string;
34
+ status: string;
35
+ download_url: string | null;
36
+ error_message: string | null;
37
+ qa_summary: string | null;
38
+ qa_preview_urls: string[];
39
+ };
40
+ export type ClipBatch = {
41
+ batch_id: string;
42
+ status: string;
43
+ asset_id: string;
44
+ project_folder_id: string;
45
+ estimated_clip_count: number;
46
+ total_clip_count: number;
47
+ rendered_count: number;
48
+ failed_count: number;
49
+ review_count: number;
50
+ activity: unknown;
51
+ clips: ClipBatchClip[];
52
+ zip_download_url: string | null;
53
+ last_error_message: string | null;
54
+ };
55
+ export type ClipBatchEnvelope = {
56
+ batch: ClipBatch;
57
+ };
58
+ export type ReselectClipOptions = {
59
+ clipId: string;
60
+ selection: ClipSelectionOptions;
61
+ target: ClipTargetOptions | null | undefined;
62
+ };
63
+ export type ReselectClipRequestOptions = ReselectClipOptions | {
64
+ clipId: string;
65
+ suggestionId?: string | null;
66
+ startSeconds?: number | null;
67
+ endSeconds?: number | null;
68
+ target?: ClipTargetOptions | null;
69
+ };
70
+ export type RepairClipOptions = {
71
+ clipId: string;
72
+ repairMode: "auto" | "prefer_split" | "prefer_focus" | "prefer_tutorial" | "prefer_demo" | "move_captions_off_faces";
73
+ };
74
+ export type RepairClipRequestOptions = RepairClipOptions | {
75
+ clipId: string;
76
+ repairMode?: "auto" | "prefer_split" | "prefer_focus" | "prefer_tutorial" | "prefer_demo" | "move_captions_off_faces";
77
+ };
78
+ export type ExportClipOptions = {
79
+ clipId: string;
80
+ resolution: "720p" | "1080p";
81
+ format: "mp4" | "mov";
82
+ /** Deprecated compatibility field. Blocking QA still prevents export. */
83
+ allowBlockingQaBypass: boolean;
84
+ };
85
+ export type ExportClipRequestOptions = ExportClipOptions | {
86
+ clipId: string;
87
+ resolution?: "720p" | "1080p";
88
+ format?: "mp4" | "mov";
89
+ /** Deprecated compatibility field. Blocking QA still prevents export. */
90
+ allowBlockingQaBypass?: boolean;
91
+ };
92
+ export type ClipEnvelope = {
93
+ clip: JsonObject;
94
+ repair: ClipRepairReceipt | null;
95
+ };
96
+ export type ListClipsOptions = {
97
+ assetId: string | undefined;
98
+ projectId: string | undefined;
99
+ status: "preparing_source" | "awaiting_suggestions" | "selecting_clip" | "assembling" | "qa_running" | "needs_reselection" | "needs_repair" | "ready" | "exporting" | "exported" | "failed" | undefined;
100
+ limit: number | undefined;
101
+ offset: number | undefined;
102
+ };
103
+ export type ClipList = {
104
+ clips: JsonObject[];
105
+ bounds: {
106
+ limit: number;
107
+ offset: number;
108
+ total: number;
109
+ returned: number;
110
+ has_more: boolean;
111
+ truncated: boolean;
112
+ };
113
+ };
114
+ export type ClipRepairReceipt = {
115
+ applied: boolean;
116
+ repair_mode: RepairClipOptions["repairMode"];
117
+ reason: string | null;
118
+ previous_timeline_item_id: string | null;
119
+ next_timeline_item_id: string | null;
120
+ qa_blocking_before: boolean;
121
+ qa_blocking_after: boolean;
122
+ warnings: string[];
123
+ };
124
+ //# sourceMappingURL=clips.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clips.d.ts","sourceRoot":"","sources":["../../src/types/clips.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC;AAC1E,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,oBAAoB,GACpB,gBAAgB,GAChB,YAAY,CAAC;AACjB,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kBAAkB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE;QACN,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;QAChC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACnC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;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@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clips.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clips.js","sourceRoot":"","sources":["../../src/types/clips.ts"],"names":[],"mappings":""}
@@ -0,0 +1,241 @@
1
+ import type { BlitzReelsErrorCode, BlitzReelsErrorDetails } from "@blitzreels/contracts";
2
+ export type { BlitzReelsErrorCode } from "@blitzreels/contracts";
3
+ export type HttpMethod = "GET" | "POST" | "PATCH" | "DELETE";
4
+ export type JsonObject = Record<string, unknown>;
5
+ export type QueryValue = string | number | boolean | null | undefined;
6
+ export type QueryParams = Record<string, QueryValue | QueryValue[]>;
7
+ export type FetchFn = typeof fetch;
8
+ export type BlitzReelsClientConfig = {
9
+ apiKey: string;
10
+ baseUrl: string | undefined;
11
+ fetchFn: FetchFn | undefined;
12
+ userAgent: string | undefined;
13
+ };
14
+ export type RequestOptions = {
15
+ method: HttpMethod;
16
+ path: string;
17
+ query: QueryParams | undefined;
18
+ body: unknown;
19
+ };
20
+ export type IdempotentRequestOptions = RequestOptions & {
21
+ idempotencyKey: string | undefined;
22
+ };
23
+ export type BlitzReelsErrorOptions = {
24
+ message: string;
25
+ status: number;
26
+ requestId: string | null;
27
+ body: unknown;
28
+ code?: BlitzReelsErrorCode;
29
+ retryable?: boolean;
30
+ details?: BlitzReelsErrorDetails;
31
+ };
32
+ export type ContentItemKind = "overlay" | "title_card" | "watermark";
33
+ export type ContentItem = {
34
+ content_item_id: string;
35
+ kind: ContentItemKind;
36
+ name: string;
37
+ timeline_item_id: string | null;
38
+ start_seconds: number | null;
39
+ duration_seconds: number | null;
40
+ layer_index: number | null;
41
+ playground_composition_id: string | null;
42
+ watermark_id: string | null;
43
+ spec: JsonObject | null;
44
+ watermark: JsonObject | null;
45
+ };
46
+ export type ContentItemsList = {
47
+ data: ContentItem[];
48
+ };
49
+ export type CreateContentItemResult = {
50
+ success: boolean;
51
+ content_item_id: string;
52
+ timeline_item_id: string | null;
53
+ playground_composition_id: string | null;
54
+ watermark_id: string | null;
55
+ };
56
+ export type UpdateTextResult = {
57
+ success: boolean;
58
+ content_item_id: string;
59
+ kind: ContentItemKind | null;
60
+ timeline_item_id: string | null;
61
+ playground_composition_id: string | null;
62
+ watermark_id: string | null;
63
+ updated_text_count: number;
64
+ previous_text: string | null;
65
+ next_text: string | null;
66
+ };
67
+ export type InsertAudioResult = {
68
+ inserted: Array<{
69
+ asset_id: string;
70
+ timeline_item_id: string | null;
71
+ start_seconds: number;
72
+ duration_seconds: number;
73
+ volume: number;
74
+ fade_in_seconds: number;
75
+ fade_out_seconds: number;
76
+ loop: boolean;
77
+ success: boolean;
78
+ message: string | null;
79
+ }>;
80
+ summary: {
81
+ total: number;
82
+ inserted: number;
83
+ failed: number;
84
+ };
85
+ txid: number | null;
86
+ };
87
+ export type UpdateAudioResult = {
88
+ success: boolean;
89
+ timeline_item_id: string;
90
+ duration_seconds: number;
91
+ volume: number;
92
+ fade_in_seconds: number;
93
+ fade_out_seconds: number;
94
+ txid: number | null;
95
+ };
96
+ export type UpdateMediaOverlayResult = {
97
+ success: boolean;
98
+ timelineItemId: string;
99
+ updated: JsonObject;
100
+ animationApplied: string | null;
101
+ keyframeCount: number;
102
+ warnings?: string[];
103
+ message: string;
104
+ };
105
+ export type AddTextOptions = {
106
+ projectId: string;
107
+ text: string;
108
+ name: string | undefined;
109
+ startSeconds: number;
110
+ durationSeconds: number;
111
+ layerIndex: number | undefined;
112
+ spec: JsonObject | undefined;
113
+ };
114
+ export type AddTitleCardOptions = {
115
+ projectId: string;
116
+ text: string;
117
+ name: string | undefined;
118
+ startSeconds: number;
119
+ durationSeconds: number;
120
+ layerIndex: number | undefined;
121
+ spec: JsonObject | undefined;
122
+ };
123
+ export type UpdateTextOptions = {
124
+ projectId: string;
125
+ contentItemId: string;
126
+ text: string | undefined;
127
+ name: string | undefined;
128
+ spec: JsonObject | undefined;
129
+ durationSeconds: number | undefined;
130
+ };
131
+ export type RemoveTextOptions = {
132
+ projectId: string;
133
+ contentItemId: string;
134
+ };
135
+ export type AddAudioOptions = {
136
+ projectId: string;
137
+ assetId: string;
138
+ startSeconds: number;
139
+ durationSeconds: number | undefined;
140
+ volume: number | undefined;
141
+ fadeInSeconds: number | undefined;
142
+ fadeOutSeconds: number | undefined;
143
+ loop: boolean | undefined;
144
+ };
145
+ export type UpdateAudioOptions = {
146
+ projectId: string;
147
+ timelineItemId: string;
148
+ durationSeconds: number | undefined;
149
+ volume: number | undefined;
150
+ fadeInSeconds: number | undefined;
151
+ fadeOutSeconds: number | undefined;
152
+ };
153
+ export type SilencePlanOptions = {
154
+ projectId: string;
155
+ timelineItemId: string | undefined;
156
+ allMediaItems: boolean | undefined;
157
+ strategy: "audio" | "caption-gaps" | undefined;
158
+ paddingMs: number | undefined;
159
+ silenceThresholdDb: number | undefined;
160
+ minSilenceDurationSeconds: number | undefined;
161
+ removeBlipsMaxDurationSeconds: number | undefined;
162
+ useCaptionValidation: boolean | undefined;
163
+ };
164
+ export type SilenceApplyOptions = SilencePlanOptions & {
165
+ deleteSilentClips: boolean | undefined;
166
+ manualSegmentOverrides: Record<string, "keep" | "cut"> | undefined;
167
+ segments: Array<{
168
+ timelineItemId: string | undefined;
169
+ startSeconds: number;
170
+ endSeconds: number;
171
+ }> | undefined;
172
+ previewConfirmed: true;
173
+ };
174
+ export type MistakePlanOptions = {
175
+ projectId: string;
176
+ timelineItemId: string;
177
+ };
178
+ export type MistakeApplyOptions = MistakePlanOptions & {
179
+ plan: JsonObject | undefined;
180
+ manualVerdicts: Record<string, "mistake" | "keeper" | "uncertain"> | undefined;
181
+ deleteMistakes: boolean | undefined;
182
+ previewConfirmed: true;
183
+ };
184
+ export type EffectEasing = "linear" | "easeIn" | "easeOut" | "easeInOut";
185
+ export type ZoomEffectSettings = {
186
+ scale: {
187
+ start: number;
188
+ end: number;
189
+ } | undefined;
190
+ translate: {
191
+ start: {
192
+ x: number;
193
+ y: number;
194
+ };
195
+ end: {
196
+ x: number;
197
+ y: number;
198
+ };
199
+ } | undefined;
200
+ anchor: {
201
+ x: number;
202
+ y: number;
203
+ } | undefined;
204
+ style: "transition" | "hard" | undefined;
205
+ phase: "in" | "out" | "both" | "none" | undefined;
206
+ inDurationSeconds: number | undefined;
207
+ outDurationSeconds: number | null | undefined;
208
+ outScale: number | null | undefined;
209
+ };
210
+ export type MaskEffectSettings = JsonObject;
211
+ export type ColorGradeEffectSettings = JsonObject;
212
+ export type AddEffectOptions<TSettings> = {
213
+ projectId: string;
214
+ timelineItemId: string | undefined;
215
+ contentItemId: string | undefined;
216
+ effectId: string | undefined;
217
+ name: string | undefined;
218
+ startTimeSeconds: number | undefined;
219
+ durationSeconds: number | undefined;
220
+ easing: EffectEasing | undefined;
221
+ layerIndex: number | undefined;
222
+ orderIndex: number | undefined;
223
+ settings: TSettings | undefined;
224
+ };
225
+ export type UpdateEffectOptions<TSettings> = {
226
+ projectId: string;
227
+ timelineItemId: string;
228
+ durationSeconds: number | undefined;
229
+ easing: EffectEasing | undefined;
230
+ settings: TSettings | undefined;
231
+ };
232
+ export type EffectMutationResult = {
233
+ success: true;
234
+ project_id: string;
235
+ timeline_item_id: string;
236
+ content_item_id: string;
237
+ effect_id: string;
238
+ effect_type: "zoom" | "mask" | "colorgrade";
239
+ txid: number | null;
240
+ };
241
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,MAAM,GAA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,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,SAAS,IAAI;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/resources/common.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,62 @@
1
+ import type { JsonObject } from "./common.js";
2
+ export type ExportStartResult = {
3
+ export_id: string | null;
4
+ job_id: string;
5
+ status: string;
6
+ };
7
+ export type ExportStatus = {
8
+ export_id: string;
9
+ status: string;
10
+ download_url: string | null;
11
+ short_download_url: string | null;
12
+ thumbnail_url: string | null;
13
+ thumbnail: {
14
+ url: string | null;
15
+ frame: number | null;
16
+ frame_seconds: number | null;
17
+ selection_mode: string | null;
18
+ rationale: string | null;
19
+ } | null;
20
+ platform_metadata: JsonObject | null;
21
+ expires_at: string | null;
22
+ file_size_bytes: number | null;
23
+ duration_seconds: number | null;
24
+ container_format: string | null;
25
+ image_formats: JsonObject | null;
26
+ };
27
+ export type ProjectExportList = {
28
+ exports: ExportStatus[];
29
+ count: number;
30
+ };
31
+ export type JobStatus = {
32
+ job_id: string;
33
+ type: string;
34
+ status: string;
35
+ progress: number;
36
+ project_id: string | null;
37
+ export_id: string | null;
38
+ media_id: string | null;
39
+ created_at: string;
40
+ completed_at: string | null;
41
+ error: string | null;
42
+ next_actions: unknown;
43
+ result: unknown;
44
+ };
45
+ export type StartExportOptions = {
46
+ projectId: string;
47
+ resolution: string | undefined;
48
+ format: string | undefined;
49
+ coverFrameSeconds?: number | null;
50
+ idempotencyKey: string | undefined;
51
+ };
52
+ export type ListProjectExportsOptions = {
53
+ projectId: string;
54
+ limit: number | undefined;
55
+ offset: number | undefined;
56
+ };
57
+ export type WaitExportOptions = {
58
+ exportId: string;
59
+ intervalMs: number;
60
+ timeoutMs: number;
61
+ };
62
+ //# sourceMappingURL=exports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/types/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE;QACT,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QACnB,KAAK,E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IAClC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/types/exports.ts"],"names":[],"mappings":""}