@clipwright/core 0.61.0 → 0.62.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/ad-guide.d.ts +27 -0
- package/dist/ad-guide.js +7 -0
- package/dist/ad-ids.d.ts +3 -0
- package/dist/ad-ids.js +4 -0
- package/dist/ads.d.ts +145 -0
- package/dist/ads.js +56 -0
- package/dist/api-failure.d.ts +6 -0
- package/dist/api-failure.js +16 -5
- package/dist/diy-next.d.ts +18 -0
- package/dist/diy-next.js +13 -0
- package/dist/edit-music.d.ts +397 -0
- package/dist/edit-music.js +77 -0
- package/dist/endpoints.js +4 -0
- package/dist/errors.d.ts +29 -1
- package/dist/errors.js +18 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/openapi.js +3 -0
- package/dist/own-agent-price.d.ts +4 -2
- package/dist/own-agent-price.js +9 -5
- package/dist/own-agent-runs.d.ts +241 -1
- package/dist/own-agent-runs.js +65 -10
- package/dist/templates/sounds.d.ts +24 -0
- package/dist/templates/sounds.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const EDIT_MUSIC_GENRES: readonly ["fashion", "tech", "food", "beauty", "sport", "lofi", "cinematic", "corporate", "playful", "acoustic", "ambient", "hiphop_light"];
|
|
3
|
+
export declare const EDIT_MUSIC_ENERGIES: readonly ["calm", "medium", "driving"];
|
|
4
|
+
export declare const EDIT_MUSIC_TRACKS: {
|
|
5
|
+
readonly runway_house: {
|
|
6
|
+
readonly genre: "fashion";
|
|
7
|
+
readonly energy: "medium";
|
|
8
|
+
readonly bpm: 122;
|
|
9
|
+
readonly seconds: 30.7;
|
|
10
|
+
};
|
|
11
|
+
readonly fashion_calm: {
|
|
12
|
+
readonly genre: "fashion";
|
|
13
|
+
readonly energy: "calm";
|
|
14
|
+
readonly bpm: 100;
|
|
15
|
+
readonly seconds: 28.4;
|
|
16
|
+
};
|
|
17
|
+
readonly fashion_driving: {
|
|
18
|
+
readonly genre: "fashion";
|
|
19
|
+
readonly energy: "driving";
|
|
20
|
+
readonly bpm: 126;
|
|
21
|
+
readonly seconds: 30.7;
|
|
22
|
+
};
|
|
23
|
+
readonly fashion_disco: {
|
|
24
|
+
readonly genre: "fashion";
|
|
25
|
+
readonly energy: "medium";
|
|
26
|
+
readonly bpm: 116;
|
|
27
|
+
readonly seconds: 30.7;
|
|
28
|
+
};
|
|
29
|
+
readonly fashion_luxe: {
|
|
30
|
+
readonly genre: "fashion";
|
|
31
|
+
readonly energy: "calm";
|
|
32
|
+
readonly bpm: 95;
|
|
33
|
+
readonly seconds: 30.7;
|
|
34
|
+
};
|
|
35
|
+
readonly tech_minimal: {
|
|
36
|
+
readonly genre: "tech";
|
|
37
|
+
readonly energy: "medium";
|
|
38
|
+
readonly bpm: 110;
|
|
39
|
+
readonly seconds: 30.7;
|
|
40
|
+
};
|
|
41
|
+
readonly tech_calm: {
|
|
42
|
+
readonly genre: "tech";
|
|
43
|
+
readonly energy: "calm";
|
|
44
|
+
readonly bpm: 90;
|
|
45
|
+
readonly seconds: 29.1;
|
|
46
|
+
};
|
|
47
|
+
readonly tech_driving: {
|
|
48
|
+
readonly genre: "tech";
|
|
49
|
+
readonly energy: "driving";
|
|
50
|
+
readonly bpm: 128;
|
|
51
|
+
readonly seconds: 30.7;
|
|
52
|
+
};
|
|
53
|
+
readonly tech_future: {
|
|
54
|
+
readonly genre: "tech";
|
|
55
|
+
readonly energy: "medium";
|
|
56
|
+
readonly bpm: 115;
|
|
57
|
+
readonly seconds: 30.7;
|
|
58
|
+
};
|
|
59
|
+
readonly tech_synthwave: {
|
|
60
|
+
readonly genre: "tech";
|
|
61
|
+
readonly energy: "driving";
|
|
62
|
+
readonly bpm: 118;
|
|
63
|
+
readonly seconds: 30.7;
|
|
64
|
+
};
|
|
65
|
+
readonly food_calm: {
|
|
66
|
+
readonly genre: "food";
|
|
67
|
+
readonly energy: "calm";
|
|
68
|
+
readonly bpm: 85;
|
|
69
|
+
readonly seconds: 30.7;
|
|
70
|
+
};
|
|
71
|
+
readonly food_medium: {
|
|
72
|
+
readonly genre: "food";
|
|
73
|
+
readonly energy: "medium";
|
|
74
|
+
readonly bpm: 105;
|
|
75
|
+
readonly seconds: 30.7;
|
|
76
|
+
};
|
|
77
|
+
readonly food_driving: {
|
|
78
|
+
readonly genre: "food";
|
|
79
|
+
readonly energy: "driving";
|
|
80
|
+
readonly bpm: 124;
|
|
81
|
+
readonly seconds: 30.7;
|
|
82
|
+
};
|
|
83
|
+
readonly food_bossa: {
|
|
84
|
+
readonly genre: "food";
|
|
85
|
+
readonly energy: "calm";
|
|
86
|
+
readonly bpm: 95;
|
|
87
|
+
readonly seconds: 30.7;
|
|
88
|
+
};
|
|
89
|
+
readonly luxe_cinematic: {
|
|
90
|
+
readonly genre: "beauty";
|
|
91
|
+
readonly energy: "calm";
|
|
92
|
+
readonly bpm: 75;
|
|
93
|
+
readonly seconds: 30.7;
|
|
94
|
+
};
|
|
95
|
+
readonly beauty_medium: {
|
|
96
|
+
readonly genre: "beauty";
|
|
97
|
+
readonly energy: "medium";
|
|
98
|
+
readonly bpm: 110;
|
|
99
|
+
readonly seconds: 30.7;
|
|
100
|
+
};
|
|
101
|
+
readonly beauty_driving: {
|
|
102
|
+
readonly genre: "beauty";
|
|
103
|
+
readonly energy: "driving";
|
|
104
|
+
readonly bpm: 122;
|
|
105
|
+
readonly seconds: 30.7;
|
|
106
|
+
};
|
|
107
|
+
readonly beauty_dreamy: {
|
|
108
|
+
readonly genre: "beauty";
|
|
109
|
+
readonly energy: "calm";
|
|
110
|
+
readonly bpm: 80;
|
|
111
|
+
readonly seconds: 30.7;
|
|
112
|
+
};
|
|
113
|
+
readonly sport_drive: {
|
|
114
|
+
readonly genre: "sport";
|
|
115
|
+
readonly energy: "driving";
|
|
116
|
+
readonly bpm: 130;
|
|
117
|
+
readonly seconds: 30.7;
|
|
118
|
+
};
|
|
119
|
+
readonly sport_calm: {
|
|
120
|
+
readonly genre: "sport";
|
|
121
|
+
readonly energy: "calm";
|
|
122
|
+
readonly bpm: 95;
|
|
123
|
+
readonly seconds: 30.7;
|
|
124
|
+
};
|
|
125
|
+
readonly sport_medium: {
|
|
126
|
+
readonly genre: "sport";
|
|
127
|
+
readonly energy: "medium";
|
|
128
|
+
readonly bpm: 115;
|
|
129
|
+
readonly seconds: 30.4;
|
|
130
|
+
};
|
|
131
|
+
readonly sport_epic: {
|
|
132
|
+
readonly genre: "sport";
|
|
133
|
+
readonly energy: "driving";
|
|
134
|
+
readonly bpm: 130;
|
|
135
|
+
readonly seconds: 30.7;
|
|
136
|
+
};
|
|
137
|
+
readonly lofi_calm: {
|
|
138
|
+
readonly genre: "lofi";
|
|
139
|
+
readonly energy: "calm";
|
|
140
|
+
readonly bpm: 75;
|
|
141
|
+
readonly seconds: 30.7;
|
|
142
|
+
};
|
|
143
|
+
readonly lofi_medium: {
|
|
144
|
+
readonly genre: "lofi";
|
|
145
|
+
readonly energy: "medium";
|
|
146
|
+
readonly bpm: 90;
|
|
147
|
+
readonly seconds: 30.7;
|
|
148
|
+
};
|
|
149
|
+
readonly lofi_jazzy: {
|
|
150
|
+
readonly genre: "lofi";
|
|
151
|
+
readonly energy: "calm";
|
|
152
|
+
readonly bpm: 75;
|
|
153
|
+
readonly seconds: 29;
|
|
154
|
+
};
|
|
155
|
+
readonly lofi_rainy: {
|
|
156
|
+
readonly genre: "lofi";
|
|
157
|
+
readonly energy: "calm";
|
|
158
|
+
readonly bpm: 70;
|
|
159
|
+
readonly seconds: 29.3;
|
|
160
|
+
};
|
|
161
|
+
readonly cinematic_calm: {
|
|
162
|
+
readonly genre: "cinematic";
|
|
163
|
+
readonly energy: "calm";
|
|
164
|
+
readonly bpm: 70;
|
|
165
|
+
readonly seconds: 30;
|
|
166
|
+
};
|
|
167
|
+
readonly cinematic_medium: {
|
|
168
|
+
readonly genre: "cinematic";
|
|
169
|
+
readonly energy: "medium";
|
|
170
|
+
readonly bpm: 100;
|
|
171
|
+
readonly seconds: 30.7;
|
|
172
|
+
};
|
|
173
|
+
readonly cinematic_driving: {
|
|
174
|
+
readonly genre: "cinematic";
|
|
175
|
+
readonly energy: "driving";
|
|
176
|
+
readonly bpm: 120;
|
|
177
|
+
readonly seconds: 29.8;
|
|
178
|
+
};
|
|
179
|
+
readonly cinematic_tension: {
|
|
180
|
+
readonly genre: "cinematic";
|
|
181
|
+
readonly energy: "medium";
|
|
182
|
+
readonly bpm: 90;
|
|
183
|
+
readonly seconds: 30.7;
|
|
184
|
+
};
|
|
185
|
+
readonly corporate_calm: {
|
|
186
|
+
readonly genre: "corporate";
|
|
187
|
+
readonly energy: "calm";
|
|
188
|
+
readonly bpm: 90;
|
|
189
|
+
readonly seconds: 30.6;
|
|
190
|
+
};
|
|
191
|
+
readonly corporate_medium: {
|
|
192
|
+
readonly genre: "corporate";
|
|
193
|
+
readonly energy: "medium";
|
|
194
|
+
readonly bpm: 110;
|
|
195
|
+
readonly seconds: 29.1;
|
|
196
|
+
};
|
|
197
|
+
readonly corporate_driving: {
|
|
198
|
+
readonly genre: "corporate";
|
|
199
|
+
readonly energy: "driving";
|
|
200
|
+
readonly bpm: 124;
|
|
201
|
+
readonly seconds: 30.7;
|
|
202
|
+
};
|
|
203
|
+
readonly corporate_bright: {
|
|
204
|
+
readonly genre: "corporate";
|
|
205
|
+
readonly energy: "medium";
|
|
206
|
+
readonly bpm: 105;
|
|
207
|
+
readonly seconds: 30.7;
|
|
208
|
+
};
|
|
209
|
+
readonly bright_pop: {
|
|
210
|
+
readonly genre: "playful";
|
|
211
|
+
readonly energy: "driving";
|
|
212
|
+
readonly bpm: 118;
|
|
213
|
+
readonly seconds: 30.7;
|
|
214
|
+
};
|
|
215
|
+
readonly playful_quirky: {
|
|
216
|
+
readonly genre: "playful";
|
|
217
|
+
readonly energy: "medium";
|
|
218
|
+
readonly bpm: 110;
|
|
219
|
+
readonly seconds: 30.7;
|
|
220
|
+
};
|
|
221
|
+
readonly playful_calm: {
|
|
222
|
+
readonly genre: "playful";
|
|
223
|
+
readonly energy: "calm";
|
|
224
|
+
readonly bpm: 85;
|
|
225
|
+
readonly seconds: 27.2;
|
|
226
|
+
};
|
|
227
|
+
readonly playful_cartoon: {
|
|
228
|
+
readonly genre: "playful";
|
|
229
|
+
readonly energy: "driving";
|
|
230
|
+
readonly bpm: 128;
|
|
231
|
+
readonly seconds: 30.7;
|
|
232
|
+
};
|
|
233
|
+
readonly warm_acoustic: {
|
|
234
|
+
readonly genre: "acoustic";
|
|
235
|
+
readonly energy: "medium";
|
|
236
|
+
readonly bpm: 100;
|
|
237
|
+
readonly seconds: 30.7;
|
|
238
|
+
};
|
|
239
|
+
readonly acoustic_calm: {
|
|
240
|
+
readonly genre: "acoustic";
|
|
241
|
+
readonly energy: "calm";
|
|
242
|
+
readonly bpm: 75;
|
|
243
|
+
readonly seconds: 30.7;
|
|
244
|
+
};
|
|
245
|
+
readonly acoustic_driving: {
|
|
246
|
+
readonly genre: "acoustic";
|
|
247
|
+
readonly energy: "driving";
|
|
248
|
+
readonly bpm: 120;
|
|
249
|
+
readonly seconds: 30.7;
|
|
250
|
+
};
|
|
251
|
+
readonly acoustic_piano: {
|
|
252
|
+
readonly genre: "acoustic";
|
|
253
|
+
readonly energy: "medium";
|
|
254
|
+
readonly bpm: 95;
|
|
255
|
+
readonly seconds: 30.7;
|
|
256
|
+
};
|
|
257
|
+
readonly ambient_calm: {
|
|
258
|
+
readonly genre: "ambient";
|
|
259
|
+
readonly energy: "calm";
|
|
260
|
+
readonly bpm: 60;
|
|
261
|
+
readonly seconds: 28.3;
|
|
262
|
+
};
|
|
263
|
+
readonly ambient_medium: {
|
|
264
|
+
readonly genre: "ambient";
|
|
265
|
+
readonly energy: "medium";
|
|
266
|
+
readonly bpm: 90;
|
|
267
|
+
readonly seconds: 30.7;
|
|
268
|
+
};
|
|
269
|
+
readonly ambient_driving: {
|
|
270
|
+
readonly genre: "ambient";
|
|
271
|
+
readonly energy: "driving";
|
|
272
|
+
readonly bpm: 118;
|
|
273
|
+
readonly seconds: 30.7;
|
|
274
|
+
};
|
|
275
|
+
readonly ambient_shimmer: {
|
|
276
|
+
readonly genre: "ambient";
|
|
277
|
+
readonly energy: "calm";
|
|
278
|
+
readonly bpm: 70;
|
|
279
|
+
readonly seconds: 28.3;
|
|
280
|
+
};
|
|
281
|
+
readonly hiphop_calm: {
|
|
282
|
+
readonly genre: "hiphop_light";
|
|
283
|
+
readonly energy: "calm";
|
|
284
|
+
readonly bpm: 80;
|
|
285
|
+
readonly seconds: 30.7;
|
|
286
|
+
};
|
|
287
|
+
readonly hiphop_medium: {
|
|
288
|
+
readonly genre: "hiphop_light";
|
|
289
|
+
readonly energy: "medium";
|
|
290
|
+
readonly bpm: 92;
|
|
291
|
+
readonly seconds: 30.7;
|
|
292
|
+
};
|
|
293
|
+
readonly hiphop_driving: {
|
|
294
|
+
readonly genre: "hiphop_light";
|
|
295
|
+
readonly energy: "driving";
|
|
296
|
+
readonly bpm: 140;
|
|
297
|
+
readonly seconds: 30.7;
|
|
298
|
+
};
|
|
299
|
+
readonly hiphop_funky: {
|
|
300
|
+
readonly genre: "hiphop_light";
|
|
301
|
+
readonly energy: "medium";
|
|
302
|
+
readonly bpm: 98;
|
|
303
|
+
readonly seconds: 27.6;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
export type EditMusicTrack = keyof typeof EDIT_MUSIC_TRACKS;
|
|
307
|
+
export declare const EDIT_MUSIC_TRACK_NAMES: [EditMusicTrack, ...EditMusicTrack[]];
|
|
308
|
+
export declare const editMusicBed: z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
genre: z.ZodEnum<{
|
|
311
|
+
acoustic: "acoustic";
|
|
312
|
+
ambient: "ambient";
|
|
313
|
+
beauty: "beauty";
|
|
314
|
+
cinematic: "cinematic";
|
|
315
|
+
corporate: "corporate";
|
|
316
|
+
fashion: "fashion";
|
|
317
|
+
food: "food";
|
|
318
|
+
hiphop_light: "hiphop_light";
|
|
319
|
+
lofi: "lofi";
|
|
320
|
+
playful: "playful";
|
|
321
|
+
sport: "sport";
|
|
322
|
+
tech: "tech";
|
|
323
|
+
}>;
|
|
324
|
+
energy: z.ZodEnum<{
|
|
325
|
+
calm: "calm";
|
|
326
|
+
driving: "driving";
|
|
327
|
+
medium: "medium";
|
|
328
|
+
}>;
|
|
329
|
+
bpm: z.ZodNumber;
|
|
330
|
+
seconds: z.ZodNumber;
|
|
331
|
+
}, z.core.$strict>;
|
|
332
|
+
export type EditMusicBed = z.infer<typeof editMusicBed>;
|
|
333
|
+
export declare const listEditMusicBeds: () => EditMusicBed[];
|
|
334
|
+
export declare const EDIT_MUSIC_MIN_VOLUME_DB = -24, EDIT_MUSIC_MAX_VOLUME_DB = 3;
|
|
335
|
+
export declare const EDIT_MUSIC_MIN_SECONDS = 3, EDIT_MUSIC_LONGEST_FADE_OUT = 5, EDIT_MUSIC_DEFAULT_FADE_OUT = 1.5;
|
|
336
|
+
export declare const editMusic: z.ZodObject<{
|
|
337
|
+
track: z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
acoustic_calm: "acoustic_calm";
|
|
339
|
+
acoustic_driving: "acoustic_driving";
|
|
340
|
+
acoustic_piano: "acoustic_piano";
|
|
341
|
+
ambient_calm: "ambient_calm";
|
|
342
|
+
ambient_driving: "ambient_driving";
|
|
343
|
+
ambient_medium: "ambient_medium";
|
|
344
|
+
ambient_shimmer: "ambient_shimmer";
|
|
345
|
+
beauty_dreamy: "beauty_dreamy";
|
|
346
|
+
beauty_driving: "beauty_driving";
|
|
347
|
+
beauty_medium: "beauty_medium";
|
|
348
|
+
bright_pop: "bright_pop";
|
|
349
|
+
cinematic_calm: "cinematic_calm";
|
|
350
|
+
cinematic_driving: "cinematic_driving";
|
|
351
|
+
cinematic_medium: "cinematic_medium";
|
|
352
|
+
cinematic_tension: "cinematic_tension";
|
|
353
|
+
corporate_bright: "corporate_bright";
|
|
354
|
+
corporate_calm: "corporate_calm";
|
|
355
|
+
corporate_driving: "corporate_driving";
|
|
356
|
+
corporate_medium: "corporate_medium";
|
|
357
|
+
fashion_calm: "fashion_calm";
|
|
358
|
+
fashion_disco: "fashion_disco";
|
|
359
|
+
fashion_driving: "fashion_driving";
|
|
360
|
+
fashion_luxe: "fashion_luxe";
|
|
361
|
+
food_bossa: "food_bossa";
|
|
362
|
+
food_calm: "food_calm";
|
|
363
|
+
food_driving: "food_driving";
|
|
364
|
+
food_medium: "food_medium";
|
|
365
|
+
hiphop_calm: "hiphop_calm";
|
|
366
|
+
hiphop_driving: "hiphop_driving";
|
|
367
|
+
hiphop_funky: "hiphop_funky";
|
|
368
|
+
hiphop_medium: "hiphop_medium";
|
|
369
|
+
lofi_calm: "lofi_calm";
|
|
370
|
+
lofi_jazzy: "lofi_jazzy";
|
|
371
|
+
lofi_medium: "lofi_medium";
|
|
372
|
+
lofi_rainy: "lofi_rainy";
|
|
373
|
+
luxe_cinematic: "luxe_cinematic";
|
|
374
|
+
playful_calm: "playful_calm";
|
|
375
|
+
playful_cartoon: "playful_cartoon";
|
|
376
|
+
playful_quirky: "playful_quirky";
|
|
377
|
+
runway_house: "runway_house";
|
|
378
|
+
sport_calm: "sport_calm";
|
|
379
|
+
sport_drive: "sport_drive";
|
|
380
|
+
sport_epic: "sport_epic";
|
|
381
|
+
sport_medium: "sport_medium";
|
|
382
|
+
tech_calm: "tech_calm";
|
|
383
|
+
tech_driving: "tech_driving";
|
|
384
|
+
tech_future: "tech_future";
|
|
385
|
+
tech_minimal: "tech_minimal";
|
|
386
|
+
tech_synthwave: "tech_synthwave";
|
|
387
|
+
warm_acoustic: "warm_acoustic";
|
|
388
|
+
}>>;
|
|
389
|
+
generate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodObject<{
|
|
390
|
+
mood: z.ZodString;
|
|
391
|
+
}, z.core.$strict>]>>;
|
|
392
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
393
|
+
at: z.ZodDefault<z.ZodNumber>;
|
|
394
|
+
fade_out: z.ZodDefault<z.ZodNumber>;
|
|
395
|
+
duck: z.ZodOptional<z.ZodBoolean>;
|
|
396
|
+
}, z.core.$strict>;
|
|
397
|
+
export type EditMusicInput = z.infer<typeof editMusic>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { musicRequest } from "./music.js";
|
|
3
|
+
export const EDIT_MUSIC_GENRES = ["fashion", "tech", "food", "beauty", "sport", "lofi", "cinematic", "corporate", "playful", "acoustic", "ambient",
|
|
4
|
+
"hiphop_light"];
|
|
5
|
+
export const EDIT_MUSIC_ENERGIES = ["calm", "medium", "driving"];
|
|
6
|
+
export const EDIT_MUSIC_TRACKS = {
|
|
7
|
+
runway_house: { genre: "fashion", energy: "medium", bpm: 122, seconds: 30.7 },
|
|
8
|
+
fashion_calm: { genre: "fashion", energy: "calm", bpm: 100, seconds: 28.4 },
|
|
9
|
+
fashion_driving: { genre: "fashion", energy: "driving", bpm: 126, seconds: 30.7 },
|
|
10
|
+
fashion_disco: { genre: "fashion", energy: "medium", bpm: 116, seconds: 30.7 },
|
|
11
|
+
fashion_luxe: { genre: "fashion", energy: "calm", bpm: 95, seconds: 30.7 },
|
|
12
|
+
tech_minimal: { genre: "tech", energy: "medium", bpm: 110, seconds: 30.7 },
|
|
13
|
+
tech_calm: { genre: "tech", energy: "calm", bpm: 90, seconds: 29.1 },
|
|
14
|
+
tech_driving: { genre: "tech", energy: "driving", bpm: 128, seconds: 30.7 },
|
|
15
|
+
tech_future: { genre: "tech", energy: "medium", bpm: 115, seconds: 30.7 },
|
|
16
|
+
tech_synthwave: { genre: "tech", energy: "driving", bpm: 118, seconds: 30.7 },
|
|
17
|
+
food_calm: { genre: "food", energy: "calm", bpm: 85, seconds: 30.7 },
|
|
18
|
+
food_medium: { genre: "food", energy: "medium", bpm: 105, seconds: 30.7 },
|
|
19
|
+
food_driving: { genre: "food", energy: "driving", bpm: 124, seconds: 30.7 },
|
|
20
|
+
food_bossa: { genre: "food", energy: "calm", bpm: 95, seconds: 30.7 },
|
|
21
|
+
luxe_cinematic: { genre: "beauty", energy: "calm", bpm: 75, seconds: 30.7 },
|
|
22
|
+
beauty_medium: { genre: "beauty", energy: "medium", bpm: 110, seconds: 30.7 },
|
|
23
|
+
beauty_driving: { genre: "beauty", energy: "driving", bpm: 122, seconds: 30.7 },
|
|
24
|
+
beauty_dreamy: { genre: "beauty", energy: "calm", bpm: 80, seconds: 30.7 },
|
|
25
|
+
sport_drive: { genre: "sport", energy: "driving", bpm: 130, seconds: 30.7 },
|
|
26
|
+
sport_calm: { genre: "sport", energy: "calm", bpm: 95, seconds: 30.7 },
|
|
27
|
+
sport_medium: { genre: "sport", energy: "medium", bpm: 115, seconds: 30.4 },
|
|
28
|
+
sport_epic: { genre: "sport", energy: "driving", bpm: 130, seconds: 30.7 },
|
|
29
|
+
lofi_calm: { genre: "lofi", energy: "calm", bpm: 75, seconds: 30.7 },
|
|
30
|
+
lofi_medium: { genre: "lofi", energy: "medium", bpm: 90, seconds: 30.7 },
|
|
31
|
+
lofi_jazzy: { genre: "lofi", energy: "calm", bpm: 75, seconds: 29 },
|
|
32
|
+
lofi_rainy: { genre: "lofi", energy: "calm", bpm: 70, seconds: 29.3 },
|
|
33
|
+
cinematic_calm: { genre: "cinematic", energy: "calm", bpm: 70, seconds: 30 },
|
|
34
|
+
cinematic_medium: { genre: "cinematic", energy: "medium", bpm: 100, seconds: 30.7 },
|
|
35
|
+
cinematic_driving: { genre: "cinematic", energy: "driving", bpm: 120, seconds: 29.8 },
|
|
36
|
+
cinematic_tension: { genre: "cinematic", energy: "medium", bpm: 90, seconds: 30.7 },
|
|
37
|
+
corporate_calm: { genre: "corporate", energy: "calm", bpm: 90, seconds: 30.6 },
|
|
38
|
+
corporate_medium: { genre: "corporate", energy: "medium", bpm: 110, seconds: 29.1 },
|
|
39
|
+
corporate_driving: { genre: "corporate", energy: "driving", bpm: 124, seconds: 30.7 },
|
|
40
|
+
corporate_bright: { genre: "corporate", energy: "medium", bpm: 105, seconds: 30.7 },
|
|
41
|
+
bright_pop: { genre: "playful", energy: "driving", bpm: 118, seconds: 30.7 },
|
|
42
|
+
playful_quirky: { genre: "playful", energy: "medium", bpm: 110, seconds: 30.7 },
|
|
43
|
+
playful_calm: { genre: "playful", energy: "calm", bpm: 85, seconds: 27.2 },
|
|
44
|
+
playful_cartoon: { genre: "playful", energy: "driving", bpm: 128, seconds: 30.7 },
|
|
45
|
+
warm_acoustic: { genre: "acoustic", energy: "medium", bpm: 100, seconds: 30.7 },
|
|
46
|
+
acoustic_calm: { genre: "acoustic", energy: "calm", bpm: 75, seconds: 30.7 },
|
|
47
|
+
acoustic_driving: { genre: "acoustic", energy: "driving", bpm: 120, seconds: 30.7 },
|
|
48
|
+
acoustic_piano: { genre: "acoustic", energy: "medium", bpm: 95, seconds: 30.7 },
|
|
49
|
+
ambient_calm: { genre: "ambient", energy: "calm", bpm: 60, seconds: 28.3 },
|
|
50
|
+
ambient_medium: { genre: "ambient", energy: "medium", bpm: 90, seconds: 30.7 },
|
|
51
|
+
ambient_driving: { genre: "ambient", energy: "driving", bpm: 118, seconds: 30.7 },
|
|
52
|
+
ambient_shimmer: { genre: "ambient", energy: "calm", bpm: 70, seconds: 28.3 },
|
|
53
|
+
hiphop_calm: { genre: "hiphop_light", energy: "calm", bpm: 80, seconds: 30.7 },
|
|
54
|
+
hiphop_medium: { genre: "hiphop_light", energy: "medium", bpm: 92, seconds: 30.7 },
|
|
55
|
+
hiphop_driving: { genre: "hiphop_light", energy: "driving", bpm: 140, seconds: 30.7 },
|
|
56
|
+
hiphop_funky: { genre: "hiphop_light", energy: "medium", bpm: 98, seconds: 27.6 },
|
|
57
|
+
};
|
|
58
|
+
export const EDIT_MUSIC_TRACK_NAMES = Object.keys(EDIT_MUSIC_TRACKS);
|
|
59
|
+
export const editMusicBed = z.strictObject({ id: z.string().min(1), genre: z.enum(EDIT_MUSIC_GENRES), energy: z.enum(EDIT_MUSIC_ENERGIES),
|
|
60
|
+
bpm: z.number().int().positive(), seconds: z.number().positive() });
|
|
61
|
+
export const listEditMusicBeds = () => EDIT_MUSIC_TRACK_NAMES.map(id => ({ id, ...EDIT_MUSIC_TRACKS[id] }));
|
|
62
|
+
export const EDIT_MUSIC_MIN_VOLUME_DB = -24, EDIT_MUSIC_MAX_VOLUME_DB = 3;
|
|
63
|
+
export const EDIT_MUSIC_MIN_SECONDS = 3, EDIT_MUSIC_LONGEST_FADE_OUT = 5, EDIT_MUSIC_DEFAULT_FADE_OUT = 1.5;
|
|
64
|
+
export const editMusic = z.strictObject({
|
|
65
|
+
track: z.enum(EDIT_MUSIC_TRACK_NAMES).optional().describe("A bed from our library, free: its id from list_template_sounds (music_beds, with " +
|
|
66
|
+
"genre, energy, tempo and length)"),
|
|
67
|
+
generate: musicRequest.optional().describe('Instead of track, only when no library bed fits: a track made for this cut by AI, paid on ' +
|
|
68
|
+
'delivery: "auto" takes the mood from the captions and the voice, { mood } says it in your words, such as "moody deep house"; it may ' +
|
|
69
|
+
"carry an invisible watermark"),
|
|
70
|
+
volume: z.number().min(EDIT_MUSIC_MIN_VOLUME_DB).max(EDIT_MUSIC_MAX_VOLUME_DB).default(0)
|
|
71
|
+
.describe("dB from the music's own level: 0 plays it at full level where no voice speaks, -6 half as loud"),
|
|
72
|
+
at: z.number().min(0).max(600).default(0).describe("The second of the edit the music starts at"),
|
|
73
|
+
fade_out: z.number().min(0).max(EDIT_MUSIC_LONGEST_FADE_OUT).default(EDIT_MUSIC_DEFAULT_FADE_OUT)
|
|
74
|
+
.describe("Seconds the music fades out over at the cut's end"),
|
|
75
|
+
duck: z.boolean().optional().describe("With voice: true (the default) lowers the music under each spoken line and lifts it between them; " +
|
|
76
|
+
"false keeps it low under the whole voice"),
|
|
77
|
+
}).refine(music => (music.track === undefined) !== (music.generate === undefined), "music takes one source: track or generate");
|
package/dist/endpoints.js
CHANGED
|
@@ -10,6 +10,7 @@ import { FEEDBACK_PATH } from "./feedback.js";
|
|
|
10
10
|
import { FILM_DRAFT_CHECK_PATH, FILM_DRAFT_FILES_PATH, FILM_DRAFT_PATH, FILM_DRAFTS_PATH } from "./film-drafts.js";
|
|
11
11
|
import { FILM_GUIDE_PATH, FILM_KIT_PATH } from "./film-guide.js";
|
|
12
12
|
import { AD_GUIDE_PATH } from "./ad-guide.js";
|
|
13
|
+
import { AD_PATH, ADS_PATH } from "./ads.js";
|
|
13
14
|
import { FILM_EDITS_PATH, FILM_EDITS_QUOTE_PATH, FILM_HEROES_PATH, FILM_HEROES_QUOTE_PATH, FILM_RENDERS_PATH, FILM_RENDERS_QUOTE_PATH, FILM_RUN_PATH, FILM_STILLS_PATH, FILM_STILLS_QUOTE_PATH, FILM_VOICES_PATH, FILM_VOICES_QUOTE_PATH, TAKE_CHECKS_PATH, TAKE_CHECKS_QUOTE_PATH, TAKE_FRAMES_PATH, TAKE_FRAMES_QUOTE_PATH } from "./own-agent-runs.js";
|
|
14
15
|
import { GENERATION_MODELS_PATH } from "./generations.js";
|
|
15
16
|
import { PRICES_PATH } from "./prices.js";
|
|
@@ -126,6 +127,9 @@ export const API_ENDPOINTS = [
|
|
|
126
127
|
{ method: "GET", path: FILM_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
127
128
|
{ method: "GET", path: FILM_KIT_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
128
129
|
{ method: "GET", path: AD_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
130
|
+
{ method: "POST", path: ADS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
131
|
+
{ method: "POST", path: AD_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
132
|
+
{ method: "GET", path: AD_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
|
|
129
133
|
];
|
|
130
134
|
export function endpointLabel(endpoint) {
|
|
131
135
|
return `${endpoint.method} ${endpoint.path.replace(/:(\w+)/g, "{$1}")}`;
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type DiyBlocked, type DiyNext } from "./diy-next.js";
|
|
2
3
|
import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
|
|
3
4
|
export declare const apiError: z.ZodObject<{
|
|
4
5
|
error: z.ZodObject<{
|
|
@@ -56,6 +57,33 @@ export declare const accountNotAdmittedError: z.ZodObject<{
|
|
|
56
57
|
}, z.core.$strip>;
|
|
57
58
|
}, z.core.$strip>;
|
|
58
59
|
export type AccountNotAdmittedError = z.infer<typeof accountNotAdmittedError>;
|
|
60
|
+
export declare const takeUncheckedError: z.ZodObject<{
|
|
61
|
+
error: z.ZodObject<{
|
|
62
|
+
code: z.ZodLiteral<"take_unchecked">;
|
|
63
|
+
message: z.ZodString;
|
|
64
|
+
next: z.ZodObject<{
|
|
65
|
+
action: z.ZodString;
|
|
66
|
+
method: z.ZodEnum<{
|
|
67
|
+
GET: "GET";
|
|
68
|
+
POST: "POST";
|
|
69
|
+
}>;
|
|
70
|
+
path: z.ZodString;
|
|
71
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
72
|
+
add: z.ZodArray<z.ZodString>;
|
|
73
|
+
note: z.ZodString;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
blocked: z.ZodObject<{
|
|
76
|
+
reason: z.ZodString;
|
|
77
|
+
unblock: z.ZodString;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type TakeUncheckedError = z.infer<typeof takeUncheckedError>;
|
|
82
|
+
export declare function takeUncheckedBody(args: {
|
|
83
|
+
message: string;
|
|
84
|
+
next: DiyNext;
|
|
85
|
+
blocked: DiyBlocked;
|
|
86
|
+
}): TakeUncheckedError;
|
|
59
87
|
export declare function insufficientCreditsBody(args: {
|
|
60
88
|
balanceCredits: number;
|
|
61
89
|
requiredCredits: number;
|
|
@@ -232,7 +260,7 @@ export type EditCeilingReachedError = z.infer<typeof editCeilingReachedError>;
|
|
|
232
260
|
export declare function editCeilingReachedBody(args: Omit<EditCeilingReachedError["error"], "code" | "message">, counting?: "revision" | "candidate"): EditCeilingReachedError;
|
|
233
261
|
export declare function unusableSourceMessage(errorClass: string, detail: string): string;
|
|
234
262
|
export declare const MALFORMED_BODY_MESSAGE: string;
|
|
235
|
-
declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "proposal_expired", "proposal_not_found", "proposal_not_ready", "proposal_stale", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
|
|
263
|
+
declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "ad_limited", "ad_not_found", "ad_slot_in_use", "ad_slot_unchecked", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "proposal_expired", "proposal_not_found", "proposal_not_ready", "proposal_stale", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "take_frames_limited", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
|
|
236
264
|
export type BareApiErrorCode = (typeof BARE_ERROR_CODES)[number];
|
|
237
265
|
export declare const API_ERROR_CODES: readonly string[];
|
|
238
266
|
export declare function apiErrorBody(args: {
|
package/dist/errors.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { diyBlocked, diyNext } from "./diy-next.js";
|
|
2
3
|
import { EDIT_ISSUE_CODES } from "./edit-validate.js";
|
|
3
4
|
import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
|
|
4
5
|
import { actorCreationLimitedError, rateLimitedError } from "./rate-limit.js";
|
|
@@ -52,6 +53,17 @@ export const accountNotAdmittedError = z.object({
|
|
|
52
53
|
message: z.string().min(1),
|
|
53
54
|
}),
|
|
54
55
|
});
|
|
56
|
+
export const takeUncheckedError = z.object({
|
|
57
|
+
error: z.object({
|
|
58
|
+
code: z.literal("take_unchecked"),
|
|
59
|
+
message: z.string().min(1),
|
|
60
|
+
next: diyNext,
|
|
61
|
+
blocked: diyBlocked,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
export function takeUncheckedBody(args) {
|
|
65
|
+
return takeUncheckedError.parse({ error: { code: "take_unchecked", ...args } });
|
|
66
|
+
}
|
|
55
67
|
export function insufficientCreditsBody(args) {
|
|
56
68
|
return insufficientCreditsError.parse({
|
|
57
69
|
error: {
|
|
@@ -289,6 +301,10 @@ const BARE_ERROR_CODES = [
|
|
|
289
301
|
"actor_storage_unavailable",
|
|
290
302
|
"actor_generation_disabled",
|
|
291
303
|
"actor_in_use",
|
|
304
|
+
"ad_limited",
|
|
305
|
+
"ad_not_found",
|
|
306
|
+
"ad_slot_in_use",
|
|
307
|
+
"ad_slot_unchecked",
|
|
292
308
|
"asset_cap_exceeded",
|
|
293
309
|
"asset_ingest_cap_exceeded",
|
|
294
310
|
"asset_not_found",
|
|
@@ -339,6 +355,7 @@ const BARE_ERROR_CODES = [
|
|
|
339
355
|
"run_not_found",
|
|
340
356
|
"source_aspect_mismatch",
|
|
341
357
|
"source_not_usable",
|
|
358
|
+
"take_frames_limited",
|
|
342
359
|
"trend_page_unavailable",
|
|
343
360
|
"trend_search_limited",
|
|
344
361
|
"trend_search_not_found",
|
|
@@ -368,6 +385,7 @@ export const API_ERROR_CODES = [
|
|
|
368
385
|
scriptEncodingLostError.shape.error.shape.code.value,
|
|
369
386
|
insufficientCreditsError.shape.error.shape.code.value,
|
|
370
387
|
maxCreditsExceededError.shape.error.shape.code.value,
|
|
388
|
+
takeUncheckedError.shape.error.shape.code.value,
|
|
371
389
|
debtOutstandingError.shape.error.shape.code.value,
|
|
372
390
|
accountNotAdmittedError.shape.error.shape.code.value,
|
|
373
391
|
editConflictError.shape.error.shape.code.value,
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from "./film-drafts.js";
|
|
|
9
9
|
export * from "./film-guide.js";
|
|
10
10
|
export * from "./ad-guide.js";
|
|
11
11
|
export * from "./own-agent-runs.js";
|
|
12
|
+
export * from "./ads.js";
|
|
13
|
+
export * from "./diy-next.js";
|
|
12
14
|
export * from "./script-voice.js";
|
|
13
15
|
export * from "./ugc-layers.js";
|
|
14
16
|
export * from "./ugc-scenes.js";
|
|
@@ -70,6 +72,7 @@ export * from "./face-billing.js";
|
|
|
70
72
|
export * from "./long-form-pricing.js";
|
|
71
73
|
export * from "./parts-pricing.js";
|
|
72
74
|
export * from "./music.js";
|
|
75
|
+
export * from "./edit-music.js";
|
|
73
76
|
export * from "./presenter-matte.js";
|
|
74
77
|
export * from "./media-timebase.js";
|
|
75
78
|
export * from "./billing-terms.js";
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,8 @@ export * from "./film-drafts.js";
|
|
|
9
9
|
export * from "./film-guide.js";
|
|
10
10
|
export * from "./ad-guide.js";
|
|
11
11
|
export * from "./own-agent-runs.js";
|
|
12
|
+
export * from "./ads.js";
|
|
13
|
+
export * from "./diy-next.js";
|
|
12
14
|
export * from "./script-voice.js";
|
|
13
15
|
export * from "./ugc-layers.js";
|
|
14
16
|
export * from "./ugc-scenes.js";
|
|
@@ -70,6 +72,7 @@ export * from "./face-billing.js";
|
|
|
70
72
|
export * from "./long-form-pricing.js";
|
|
71
73
|
export * from "./parts-pricing.js";
|
|
72
74
|
export * from "./music.js";
|
|
75
|
+
export * from "./edit-music.js";
|
|
73
76
|
export * from "./presenter-matte.js";
|
|
74
77
|
export * from "./media-timebase.js";
|
|
75
78
|
export * from "./billing-terms.js";
|
package/dist/openapi.js
CHANGED
|
@@ -176,6 +176,9 @@ export const OPENAPI_ROUTES = {
|
|
|
176
176
|
"GET /v1/film-guide": { exposure: "excluded", reason: "Not offered yet: the film guide joins the contract when its mode launches (#1356)." },
|
|
177
177
|
"GET /v1/film-kit": { exposure: "excluded", reason: "Not offered yet: the film kit joins the contract when its mode launches (#1356)." },
|
|
178
178
|
"GET /v1/ad-guide": { exposure: "excluded", reason: "Not offered yet: the ad guide joins the contract when it opens to every account (#1539)." },
|
|
179
|
+
"POST /v1/ads": { exposure: "excluded", reason: "Not offered yet: ad records join the contract with the ad guide, when it opens to every account (#1539)." },
|
|
180
|
+
"POST /v1/ads/{id}": { exposure: "excluded", reason: "Not offered yet: ad records join the contract with the ad guide, when it opens to every account (#1539)." },
|
|
181
|
+
"GET /v1/ads/{id}": { exposure: "excluded", reason: "Not offered yet: ad records join the contract with the ad guide, when it opens to every account (#1539)." },
|
|
179
182
|
"GET /internal/portfolio-metrics": { exposure: "excluded",
|
|
180
183
|
reason: "Internal funnel aggregates behind their own secret, outside the client contract (docs/03-api.md section 12)." },
|
|
181
184
|
"GET /v1/public/workflows": { exposure: "public", operationId: "listWorkflows", tag: "Workflows", anonymous: true,
|