@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
|
@@ -11,7 +11,7 @@ export declare const OWN_STILLS_MAX_PER_CALL = 24, OWN_FILM_MAX_SECONDS = 120, O
|
|
|
11
11
|
export declare const OWN_STILLS_SINGLE_MAX = 8;
|
|
12
12
|
export declare const OWN_HERO_POSE_CREDITS = 7, OWN_HERO_POSES = 9;
|
|
13
13
|
export declare const OWN_EDIT_CREDITS = 10, OWN_EDIT_MAX_SECONDS = 60;
|
|
14
|
-
export declare const OWN_TAKE_FRAMES_MAX = 96;
|
|
14
|
+
export declare const OWN_TAKE_FRAMES_MAX = 96, TAKE_FRAMES_PER_HOUR = 60, TAKE_FRAMES_WINDOW_SECONDS = 3600;
|
|
15
15
|
export declare const OWN_TAKE_CHECK_CREDITS = 10;
|
|
16
16
|
export declare const ownAgentTerms: z.ZodObject<{
|
|
17
17
|
tariff: z.ZodEnum<{
|
|
@@ -25,6 +25,7 @@ export declare const ownAgentTerms: z.ZodObject<{
|
|
|
25
25
|
voice_credits_per_second: z.ZodNumber;
|
|
26
26
|
pose_credits: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
edit_credits: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
music_credits: z.ZodOptional<z.ZodNumber>;
|
|
28
29
|
take_check_credits: z.ZodOptional<z.ZodNumber>;
|
|
29
30
|
free_stills: z.ZodOptional<z.ZodNumber>;
|
|
30
31
|
free_stills_window_hours: z.ZodOptional<z.ZodNumber>;
|
|
@@ -36,7 +37,7 @@ export declare const ownFilmRenderCredits: (s: number, terms?: OwnAgentTerms) =>
|
|
|
36
37
|
export declare const ownVoiceCredits: (s: number, terms?: OwnAgentTerms) => number;
|
|
37
38
|
export declare function ownStillsCredits(n: number, terms?: OwnAgentTerms, free?: number): number;
|
|
38
39
|
export declare function ownHeroCredits(n: number, terms?: OwnAgentTerms): number;
|
|
39
|
-
export declare function ownEditCredits(s: number, terms?: OwnAgentTerms): number;
|
|
40
|
+
export declare function ownEditCredits(s: number, terms?: OwnAgentTerms, music?: boolean): number;
|
|
40
41
|
export type OwnAgentDelivery = {
|
|
41
42
|
skill: "film_stills";
|
|
42
43
|
frames: number;
|
|
@@ -53,6 +54,7 @@ export type OwnAgentDelivery = {
|
|
|
53
54
|
} | {
|
|
54
55
|
skill: "film_edit";
|
|
55
56
|
seconds: number;
|
|
57
|
+
music?: boolean;
|
|
56
58
|
} | {
|
|
57
59
|
skill: "film_take_frames";
|
|
58
60
|
sheets: number;
|
package/dist/own-agent-price.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { FACELESS_EXPLAINER_POSE_PICTURES, FACELESS_IMAGE_CREDITS } from "./faceless-price.js";
|
|
3
|
+
import { MUSIC_BED_CREDITS } from "./music.js";
|
|
3
4
|
export const OWN_AGENT_TARIFF = "own-agent-v2";
|
|
4
5
|
export const OWN_AGENT_TARIFF_V1 = "own-agent-v1";
|
|
5
6
|
export const OWN_AGENT_SKILLS = ["film_stills", "film_voice", "film_render", "film_hero", "film_edit", "film_take_frames", "film_take_check"];
|
|
@@ -11,7 +12,7 @@ export const OWN_STILLS_MAX_PER_CALL = 24, OWN_FILM_MAX_SECONDS = 120, OWN_VOICE
|
|
|
11
12
|
export const OWN_STILLS_SINGLE_MAX = 8;
|
|
12
13
|
export const OWN_HERO_POSE_CREDITS = FACELESS_IMAGE_CREDITS, OWN_HERO_POSES = FACELESS_EXPLAINER_POSE_PICTURES;
|
|
13
14
|
export const OWN_EDIT_CREDITS = 10, OWN_EDIT_MAX_SECONDS = 60;
|
|
14
|
-
export const OWN_TAKE_FRAMES_MAX = 96;
|
|
15
|
+
export const OWN_TAKE_FRAMES_MAX = 96, TAKE_FRAMES_PER_HOUR = 60, TAKE_FRAMES_WINDOW_SECONDS = 3600;
|
|
15
16
|
export const OWN_TAKE_CHECK_CREDITS = 10;
|
|
16
17
|
export const ownAgentTerms = z.strictObject({
|
|
17
18
|
tariff: z.enum([OWN_AGENT_TARIFF_V1, OWN_AGENT_TARIFF]),
|
|
@@ -22,13 +23,14 @@ export const ownAgentTerms = z.strictObject({
|
|
|
22
23
|
voice_credits_per_second: z.number().int().nonnegative(),
|
|
23
24
|
pose_credits: z.number().int().nonnegative().optional(),
|
|
24
25
|
edit_credits: z.number().int().nonnegative().optional(),
|
|
26
|
+
music_credits: z.number().int().nonnegative().optional(),
|
|
25
27
|
take_check_credits: z.number().int().nonnegative().optional(),
|
|
26
28
|
free_stills: z.number().int().nonnegative().optional(),
|
|
27
29
|
free_stills_window_hours: z.number().int().positive().optional(),
|
|
28
30
|
}).refine(t => (t.tariff === OWN_AGENT_TARIFF) === (t.free_stills !== undefined) && (t.free_stills === undefined) === (t.free_stills_window_hours === undefined), `free stills come with their window, and only on ${OWN_AGENT_TARIFF}`);
|
|
29
31
|
export const ownAgentTermsNow = () => ({ tariff: OWN_AGENT_TARIFF, still_credits: OWN_STILL_CREDITS, render_credits: OWN_FILM_RENDER_CREDITS,
|
|
30
32
|
included_seconds: OWN_FILM_INCLUDED_SECONDS, extra_second_credits: OWN_FILM_EXTRA_SECOND_CREDITS, voice_credits_per_second: OWN_VOICE_CREDITS_PER_SECOND,
|
|
31
|
-
pose_credits: OWN_HERO_POSE_CREDITS, edit_credits: OWN_EDIT_CREDITS, take_check_credits: OWN_TAKE_CHECK_CREDITS, free_stills: OWN_FREE_STILLS,
|
|
33
|
+
pose_credits: OWN_HERO_POSE_CREDITS, edit_credits: OWN_EDIT_CREDITS, music_credits: MUSIC_BED_CREDITS, take_check_credits: OWN_TAKE_CHECK_CREDITS, free_stills: OWN_FREE_STILLS,
|
|
32
34
|
free_stills_window_hours: OWN_FREE_STILLS_WINDOW_HOURS });
|
|
33
35
|
export const isOwnAgentEnabled = (env) => env.CLIPWRIGHT_OWN_AGENT === "1";
|
|
34
36
|
const seconds = (s, max, what) => {
|
|
@@ -55,11 +57,13 @@ export function ownHeroCredits(n, terms = ownAgentTermsNow()) {
|
|
|
55
57
|
throw new Error("these terms price no hero pose");
|
|
56
58
|
return terms.pose_credits * n;
|
|
57
59
|
}
|
|
58
|
-
export function ownEditCredits(s, terms = ownAgentTermsNow()) {
|
|
60
|
+
export function ownEditCredits(s, terms = ownAgentTermsNow(), music = false) {
|
|
59
61
|
seconds(s, OWN_EDIT_MAX_SECONDS, "an edit");
|
|
60
62
|
if (terms.edit_credits === undefined)
|
|
61
63
|
throw new Error("these terms price no edit");
|
|
62
|
-
|
|
64
|
+
if (music && terms.music_credits === undefined)
|
|
65
|
+
throw new Error("these terms price no music");
|
|
66
|
+
return terms.edit_credits + (music ? terms.music_credits : 0);
|
|
63
67
|
}
|
|
64
68
|
export function ownTakeCheckCredits(n, terms = ownAgentTermsNow()) {
|
|
65
69
|
if (n !== 0 && n !== 1)
|
|
@@ -77,7 +81,7 @@ export function ownAgentCharge(delivery, terms, heldCredits) {
|
|
|
77
81
|
const charge = delivery.skill === "film_stills" ? ownStillsCredits(delivery.frames, terms, delivery.free)
|
|
78
82
|
: delivery.skill === "film_voice" ? ownVoiceCredits(delivery.seconds, terms)
|
|
79
83
|
: delivery.skill === "film_hero" ? ownHeroCredits(delivery.poses, terms)
|
|
80
|
-
: delivery.skill === "film_edit" ? ownEditCredits(delivery.seconds, terms)
|
|
84
|
+
: delivery.skill === "film_edit" ? ownEditCredits(delivery.seconds, terms, delivery.music === true)
|
|
81
85
|
: delivery.skill === "film_take_frames" ? ownTakeFramesCredits(delivery.sheets)
|
|
82
86
|
: delivery.skill === "film_take_check" ? ownTakeCheckCredits(delivery.checks, terms) : ownFilmRenderCredits(delivery.seconds, terms);
|
|
83
87
|
if (!Number.isSafeInteger(heldCredits) || charge > heldCredits)
|
package/dist/own-agent-runs.d.ts
CHANGED
|
@@ -85,8 +85,10 @@ export declare const filmRenderInput: z.ZodObject<{
|
|
|
85
85
|
}, z.core.$strict>;
|
|
86
86
|
export type FilmRenderInput = z.infer<typeof filmRenderInput>;
|
|
87
87
|
export declare const FILM_EDIT_WIDTH = 720, FILM_EDIT_HEIGHT = 1280, FILM_EDIT_FPS = 25;
|
|
88
|
-
export declare const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS =
|
|
88
|
+
export declare const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS = 160, FILM_EDIT_MAX_HOLD_SEC = 3;
|
|
89
89
|
export declare const FILM_EDIT_CAPTION_POSITIONS: readonly ["top", "middle", "bottom", "low"];
|
|
90
|
+
export declare const FILM_EDIT_CAPTION_STYLES: readonly ["outline", "banner", "badge"];
|
|
91
|
+
export declare const FILM_EDIT_CAPTION_ALIGNS: readonly ["center", "left"];
|
|
90
92
|
export declare const filmEditInput: z.ZodObject<{
|
|
91
93
|
clips: z.ZodArray<z.ZodObject<{
|
|
92
94
|
run_id: z.ZodOptional<z.ZodString>;
|
|
@@ -94,6 +96,7 @@ export declare const filmEditInput: z.ZodObject<{
|
|
|
94
96
|
from: z.ZodNumber;
|
|
95
97
|
to: z.ZodNumber;
|
|
96
98
|
speed: z.ZodDefault<z.ZodNumber>;
|
|
99
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
97
100
|
}, z.core.$strict>>;
|
|
98
101
|
voice: z.ZodOptional<z.ZodObject<{
|
|
99
102
|
run_id: z.ZodString;
|
|
@@ -114,8 +117,81 @@ export declare const filmEditInput: z.ZodObject<{
|
|
|
114
117
|
middle: "middle";
|
|
115
118
|
top: "top";
|
|
116
119
|
}>>;
|
|
120
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
121
|
+
center: "center";
|
|
122
|
+
left: "left";
|
|
123
|
+
}>>;
|
|
124
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
125
|
+
badge: "badge";
|
|
126
|
+
banner: "banner";
|
|
127
|
+
outline: "outline";
|
|
128
|
+
}>>;
|
|
129
|
+
color: z.ZodOptional<z.ZodString>;
|
|
130
|
+
highlight: z.ZodOptional<z.ZodNumber>;
|
|
117
131
|
}, z.core.$strict>>>;
|
|
118
132
|
hold: z.ZodDefault<z.ZodNumber>;
|
|
133
|
+
music: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
track: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
acoustic_calm: "acoustic_calm";
|
|
136
|
+
acoustic_driving: "acoustic_driving";
|
|
137
|
+
acoustic_piano: "acoustic_piano";
|
|
138
|
+
ambient_calm: "ambient_calm";
|
|
139
|
+
ambient_driving: "ambient_driving";
|
|
140
|
+
ambient_medium: "ambient_medium";
|
|
141
|
+
ambient_shimmer: "ambient_shimmer";
|
|
142
|
+
beauty_dreamy: "beauty_dreamy";
|
|
143
|
+
beauty_driving: "beauty_driving";
|
|
144
|
+
beauty_medium: "beauty_medium";
|
|
145
|
+
bright_pop: "bright_pop";
|
|
146
|
+
cinematic_calm: "cinematic_calm";
|
|
147
|
+
cinematic_driving: "cinematic_driving";
|
|
148
|
+
cinematic_medium: "cinematic_medium";
|
|
149
|
+
cinematic_tension: "cinematic_tension";
|
|
150
|
+
corporate_bright: "corporate_bright";
|
|
151
|
+
corporate_calm: "corporate_calm";
|
|
152
|
+
corporate_driving: "corporate_driving";
|
|
153
|
+
corporate_medium: "corporate_medium";
|
|
154
|
+
fashion_calm: "fashion_calm";
|
|
155
|
+
fashion_disco: "fashion_disco";
|
|
156
|
+
fashion_driving: "fashion_driving";
|
|
157
|
+
fashion_luxe: "fashion_luxe";
|
|
158
|
+
food_bossa: "food_bossa";
|
|
159
|
+
food_calm: "food_calm";
|
|
160
|
+
food_driving: "food_driving";
|
|
161
|
+
food_medium: "food_medium";
|
|
162
|
+
hiphop_calm: "hiphop_calm";
|
|
163
|
+
hiphop_driving: "hiphop_driving";
|
|
164
|
+
hiphop_funky: "hiphop_funky";
|
|
165
|
+
hiphop_medium: "hiphop_medium";
|
|
166
|
+
lofi_calm: "lofi_calm";
|
|
167
|
+
lofi_jazzy: "lofi_jazzy";
|
|
168
|
+
lofi_medium: "lofi_medium";
|
|
169
|
+
lofi_rainy: "lofi_rainy";
|
|
170
|
+
luxe_cinematic: "luxe_cinematic";
|
|
171
|
+
playful_calm: "playful_calm";
|
|
172
|
+
playful_cartoon: "playful_cartoon";
|
|
173
|
+
playful_quirky: "playful_quirky";
|
|
174
|
+
runway_house: "runway_house";
|
|
175
|
+
sport_calm: "sport_calm";
|
|
176
|
+
sport_drive: "sport_drive";
|
|
177
|
+
sport_epic: "sport_epic";
|
|
178
|
+
sport_medium: "sport_medium";
|
|
179
|
+
tech_calm: "tech_calm";
|
|
180
|
+
tech_driving: "tech_driving";
|
|
181
|
+
tech_future: "tech_future";
|
|
182
|
+
tech_minimal: "tech_minimal";
|
|
183
|
+
tech_synthwave: "tech_synthwave";
|
|
184
|
+
warm_acoustic: "warm_acoustic";
|
|
185
|
+
}>>;
|
|
186
|
+
generate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodObject<{
|
|
187
|
+
mood: z.ZodString;
|
|
188
|
+
}, z.core.$strict>]>>;
|
|
189
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
190
|
+
at: z.ZodDefault<z.ZodNumber>;
|
|
191
|
+
fade_out: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
duck: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
ad_id: z.ZodOptional<z.ZodString>;
|
|
119
195
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
120
196
|
}, z.core.$strict>;
|
|
121
197
|
export type FilmEditInput = z.infer<typeof filmEditInput>;
|
|
@@ -123,6 +199,13 @@ export type FilmEditRequest = z.input<typeof filmEditInput>;
|
|
|
123
199
|
export declare const TAKE_FRAMES_COLUMNS = 8, TAKE_FRAMES_CELL_WIDTH = 240, TAKE_FRAMES_PER_SHEET = 24;
|
|
124
200
|
export declare const TAKE_FRAMES_MIN_FPS = 1, TAKE_FRAMES_MAX_FPS = 24, TAKE_FRAMES_DEFAULT_FPS = 8;
|
|
125
201
|
export declare const TAKE_CHECK_PROMPT_MAX_CHARS = 1500, TAKE_CHECK_MAX_MOVES = 5;
|
|
202
|
+
export declare const TAKE_MOTION_FORMATS: readonly ["fashion", "product"];
|
|
203
|
+
export type TakeMotionFormat = (typeof TAKE_MOTION_FORMATS)[number];
|
|
204
|
+
export declare const TAKE_MOTION_TARGETS: Record<TakeMotionFormat, {
|
|
205
|
+
subject: number;
|
|
206
|
+
camera: number | null;
|
|
207
|
+
}>;
|
|
208
|
+
export declare const TAKE_SHAKE_LIMIT = 4;
|
|
126
209
|
export declare const takeFramesInput: z.ZodObject<{
|
|
127
210
|
run_id: z.ZodOptional<z.ZodString>;
|
|
128
211
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
@@ -145,11 +228,92 @@ export declare const takeCheckInput: z.ZodObject<{
|
|
|
145
228
|
direction: z.ZodString;
|
|
146
229
|
product_image: z.ZodOptional<z.ZodString>;
|
|
147
230
|
moves: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
231
|
+
ad_id: z.ZodOptional<z.ZodString>;
|
|
232
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
233
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
fashion: "fashion";
|
|
235
|
+
product: "product";
|
|
236
|
+
}>>;
|
|
148
237
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
149
238
|
}, z.core.$strict>;
|
|
150
239
|
export type TakeCheckInput = z.infer<typeof takeCheckInput>;
|
|
151
240
|
export type TakeCheckRequest = z.input<typeof takeCheckInput>;
|
|
152
241
|
export declare const TAKE_DEFECT_LEVELS: readonly ["asset", "action", "camera", "roll"];
|
|
242
|
+
export declare const takeMotionWindow: z.ZodObject<{
|
|
243
|
+
subject: z.ZodNumber;
|
|
244
|
+
camera: z.ZodNumber;
|
|
245
|
+
jitter: z.ZodNumber;
|
|
246
|
+
from: z.ZodNumber;
|
|
247
|
+
to: z.ZodNumber;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
export type TakeMotionWindow = z.infer<typeof takeMotionWindow>;
|
|
250
|
+
export declare const takeMotion: z.ZodObject<{
|
|
251
|
+
subject: z.ZodNumber;
|
|
252
|
+
camera: z.ZodNumber;
|
|
253
|
+
jitter: z.ZodNumber;
|
|
254
|
+
format: z.ZodEnum<{
|
|
255
|
+
fashion: "fashion";
|
|
256
|
+
product: "product";
|
|
257
|
+
}>;
|
|
258
|
+
target: z.ZodObject<{
|
|
259
|
+
subject: z.ZodNumber;
|
|
260
|
+
camera: z.ZodNullable<z.ZodNumber>;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
263
|
+
subject: z.ZodNumber;
|
|
264
|
+
camera: z.ZodNumber;
|
|
265
|
+
jitter: z.ZodNumber;
|
|
266
|
+
from: z.ZodNumber;
|
|
267
|
+
to: z.ZodNumber;
|
|
268
|
+
}, z.core.$strict>>;
|
|
269
|
+
finding: z.ZodNullable<z.ZodString>;
|
|
270
|
+
shake: z.ZodNullable<z.ZodString>;
|
|
271
|
+
}, z.core.$strict>;
|
|
272
|
+
export type TakeMotion = z.infer<typeof takeMotion>;
|
|
273
|
+
export declare const takeCheckVerdict: z.ZodObject<{
|
|
274
|
+
duration_sec: z.ZodNumber;
|
|
275
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
276
|
+
code: z.ZodString;
|
|
277
|
+
level: z.ZodEnum<{
|
|
278
|
+
action: "action";
|
|
279
|
+
asset: "asset";
|
|
280
|
+
camera: "camera";
|
|
281
|
+
roll: "roll";
|
|
282
|
+
}>;
|
|
283
|
+
from: z.ZodNumber;
|
|
284
|
+
to: z.ZodNumber;
|
|
285
|
+
whole_take: z.ZodBoolean;
|
|
286
|
+
why: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
clean: z.ZodArray<z.ZodObject<{
|
|
289
|
+
from: z.ZodNumber;
|
|
290
|
+
to: z.ZodNumber;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
motion: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
subject: z.ZodNumber;
|
|
294
|
+
camera: z.ZodNumber;
|
|
295
|
+
jitter: z.ZodNumber;
|
|
296
|
+
format: z.ZodEnum<{
|
|
297
|
+
fashion: "fashion";
|
|
298
|
+
product: "product";
|
|
299
|
+
}>;
|
|
300
|
+
target: z.ZodObject<{
|
|
301
|
+
subject: z.ZodNumber;
|
|
302
|
+
camera: z.ZodNullable<z.ZodNumber>;
|
|
303
|
+
}, z.core.$strict>;
|
|
304
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
305
|
+
subject: z.ZodNumber;
|
|
306
|
+
camera: z.ZodNumber;
|
|
307
|
+
jitter: z.ZodNumber;
|
|
308
|
+
from: z.ZodNumber;
|
|
309
|
+
to: z.ZodNumber;
|
|
310
|
+
}, z.core.$strict>>;
|
|
311
|
+
finding: z.ZodNullable<z.ZodString>;
|
|
312
|
+
shake: z.ZodNullable<z.ZodString>;
|
|
313
|
+
}, z.core.$strict>>;
|
|
314
|
+
}, z.core.$strict>;
|
|
315
|
+
export type TakeCheckVerdict = z.infer<typeof takeCheckVerdict>;
|
|
316
|
+
export declare const takeCheckPassed: (verdict: Pick<TakeCheckVerdict, "findings" | "clean">) => boolean;
|
|
153
317
|
export declare const FILM_HERO_SOURCE_FIELDS: readonly ["character_reference", "character_details", "script", "voice_run_id"];
|
|
154
318
|
export declare const filmHeroInput: z.ZodObject<{
|
|
155
319
|
character_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -163,6 +327,17 @@ export type FilmHeroInput = z.infer<typeof filmHeroInput>;
|
|
|
163
327
|
export declare function ownVoiceCeilingSeconds(text: string): number;
|
|
164
328
|
export declare const ownFilmFrames: (voiceSeconds: number) => number;
|
|
165
329
|
export declare const ownFilmSeconds: (voiceSeconds: number) => number;
|
|
330
|
+
export declare const ownAgentQuoteLine: z.ZodObject<{
|
|
331
|
+
label: z.ZodString;
|
|
332
|
+
unit: z.ZodEnum<{
|
|
333
|
+
film: "film";
|
|
334
|
+
track: "track";
|
|
335
|
+
}>;
|
|
336
|
+
quantity: z.ZodNumber;
|
|
337
|
+
unit_credits: z.ZodNumber;
|
|
338
|
+
credits: z.ZodNumber;
|
|
339
|
+
}, z.core.$strict>;
|
|
340
|
+
export type OwnAgentQuoteLine = z.infer<typeof ownAgentQuoteLine>;
|
|
166
341
|
export declare const ownAgentQuote: z.ZodObject<{
|
|
167
342
|
skill: z.ZodEnum<{
|
|
168
343
|
film_edit: "film_edit";
|
|
@@ -187,7 +362,28 @@ export declare const ownAgentQuote: z.ZodObject<{
|
|
|
187
362
|
free_units: z.ZodOptional<z.ZodNumber>;
|
|
188
363
|
free_left: z.ZodOptional<z.ZodNumber>;
|
|
189
364
|
frames: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
366
|
+
label: z.ZodString;
|
|
367
|
+
unit: z.ZodEnum<{
|
|
368
|
+
film: "film";
|
|
369
|
+
track: "track";
|
|
370
|
+
}>;
|
|
371
|
+
quantity: z.ZodNumber;
|
|
372
|
+
unit_credits: z.ZodNumber;
|
|
373
|
+
credits: z.ZodNumber;
|
|
374
|
+
}, z.core.$strict>>>;
|
|
190
375
|
warnings: z.ZodArray<z.ZodString>;
|
|
376
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
action: z.ZodString;
|
|
378
|
+
method: z.ZodEnum<{
|
|
379
|
+
GET: "GET";
|
|
380
|
+
POST: "POST";
|
|
381
|
+
}>;
|
|
382
|
+
path: z.ZodString;
|
|
383
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
384
|
+
add: z.ZodArray<z.ZodString>;
|
|
385
|
+
note: z.ZodString;
|
|
386
|
+
}, z.core.$strict>>;
|
|
191
387
|
}, z.core.$strict>;
|
|
192
388
|
export type OwnAgentQuote = z.infer<typeof ownAgentQuote>;
|
|
193
389
|
export declare const filmStill: z.ZodObject<{
|
|
@@ -269,6 +465,13 @@ export declare const filmRun: z.ZodObject<{
|
|
|
269
465
|
to: z.ZodNumber;
|
|
270
466
|
frames: z.ZodNumber;
|
|
271
467
|
}, z.core.$strict>>;
|
|
468
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
469
|
+
subject: z.ZodNumber;
|
|
470
|
+
camera: z.ZodNumber;
|
|
471
|
+
jitter: z.ZodNumber;
|
|
472
|
+
from: z.ZodNumber;
|
|
473
|
+
to: z.ZodNumber;
|
|
474
|
+
}, z.core.$strict>>>;
|
|
272
475
|
}, z.core.$strict>>;
|
|
273
476
|
take_check: z.ZodOptional<z.ZodObject<{
|
|
274
477
|
duration_sec: z.ZodNumber;
|
|
@@ -289,7 +492,44 @@ export declare const filmRun: z.ZodObject<{
|
|
|
289
492
|
from: z.ZodNumber;
|
|
290
493
|
to: z.ZodNumber;
|
|
291
494
|
}, z.core.$strict>>;
|
|
495
|
+
motion: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
subject: z.ZodNumber;
|
|
497
|
+
camera: z.ZodNumber;
|
|
498
|
+
jitter: z.ZodNumber;
|
|
499
|
+
format: z.ZodEnum<{
|
|
500
|
+
fashion: "fashion";
|
|
501
|
+
product: "product";
|
|
502
|
+
}>;
|
|
503
|
+
target: z.ZodObject<{
|
|
504
|
+
subject: z.ZodNumber;
|
|
505
|
+
camera: z.ZodNullable<z.ZodNumber>;
|
|
506
|
+
}, z.core.$strict>;
|
|
507
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
508
|
+
subject: z.ZodNumber;
|
|
509
|
+
camera: z.ZodNumber;
|
|
510
|
+
jitter: z.ZodNumber;
|
|
511
|
+
from: z.ZodNumber;
|
|
512
|
+
to: z.ZodNumber;
|
|
513
|
+
}, z.core.$strict>>;
|
|
514
|
+
finding: z.ZodNullable<z.ZodString>;
|
|
515
|
+
shake: z.ZodNullable<z.ZodString>;
|
|
516
|
+
}, z.core.$strict>>;
|
|
292
517
|
}, z.core.$strict>>;
|
|
518
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
519
|
+
action: z.ZodString;
|
|
520
|
+
method: z.ZodEnum<{
|
|
521
|
+
GET: "GET";
|
|
522
|
+
POST: "POST";
|
|
523
|
+
}>;
|
|
524
|
+
path: z.ZodString;
|
|
525
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
526
|
+
add: z.ZodArray<z.ZodString>;
|
|
527
|
+
note: z.ZodString;
|
|
528
|
+
}, z.core.$strict>>>;
|
|
529
|
+
blocked: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
530
|
+
reason: z.ZodString;
|
|
531
|
+
unblock: z.ZodString;
|
|
532
|
+
}, z.core.$strict>>>;
|
|
293
533
|
created_at: z.ZodString;
|
|
294
534
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
295
535
|
}, z.core.$strict>;
|
package/dist/own-agent-runs.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { assetId } from "./asset-identity.js";
|
|
3
|
+
import { adId, adSlotId } from "./ad-ids.js";
|
|
4
|
+
import { diyBlocked, diyNext } from "./diy-next.js";
|
|
5
|
+
import { editMusic } from "./edit-music.js";
|
|
3
6
|
import { EXPLAINER_MAX_PRODUCT_PICTURES, facelessCustomerSceneImage, qualifiedImageUrl } from "./faceless-public.js";
|
|
4
7
|
import { FACELESS_VOICE_NAMES } from "./faceless-voices.js";
|
|
5
8
|
import { filmDraftId } from "./film-drafts.js";
|
|
@@ -56,8 +59,10 @@ export const filmRenderInput = z.strictObject({
|
|
|
56
59
|
max_credits: maxCreditsField,
|
|
57
60
|
});
|
|
58
61
|
export const FILM_EDIT_WIDTH = 720, FILM_EDIT_HEIGHT = 1280, FILM_EDIT_FPS = 25;
|
|
59
|
-
export const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS =
|
|
62
|
+
export const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS = 160, FILM_EDIT_MAX_HOLD_SEC = 3;
|
|
60
63
|
export const FILM_EDIT_CAPTION_POSITIONS = ["top", "middle", "bottom", "low"];
|
|
64
|
+
export const FILM_EDIT_CAPTION_STYLES = ["outline", "banner", "badge"];
|
|
65
|
+
export const FILM_EDIT_CAPTION_ALIGNS = ["center", "left"];
|
|
61
66
|
const editSecond = z.number().min(0).max(600);
|
|
62
67
|
const editClip = z.strictObject({
|
|
63
68
|
run_id: runId.optional().describe("A delivered generate_video run of this account"),
|
|
@@ -65,6 +70,7 @@ const editClip = z.strictObject({
|
|
|
65
70
|
from: editSecond.describe("The second of the clip the cut starts at"),
|
|
66
71
|
to: editSecond.describe("The second of the clip the cut ends at, after from"),
|
|
67
72
|
speed: z.number().min(0.5).max(2).default(1).describe("Play speed; the clip lasts (to - from) / speed in the edit. 1.2 lifts a slow beat"),
|
|
73
|
+
slot: adSlotId.optional().describe("With ad_id: the slot of the ad this clip fills; its take must have passed check_take in that slot"),
|
|
68
74
|
}).refine(clip => (clip.run_id === undefined) !== (clip.asset_id === undefined), "name the clip by run_id or by asset_id, one of them")
|
|
69
75
|
.refine(clip => clip.to > clip.from, "to must be after from");
|
|
70
76
|
const voicePiece = z.strictObject({
|
|
@@ -79,7 +85,17 @@ const editCaption = z.strictObject({
|
|
|
79
85
|
end: editSecond.describe("The second of the edit it goes, after start"),
|
|
80
86
|
position: z.enum(FILM_EDIT_CAPTION_POSITIONS).default("bottom")
|
|
81
87
|
.describe("Where it sits; pick the one that keeps it off the product, its print, the working hands and the face"),
|
|
82
|
-
|
|
88
|
+
align: z.enum(FILM_EDIT_CAPTION_ALIGNS).default("center").describe("center, or left to sit at the frame's left edge"),
|
|
89
|
+
style: z.enum(FILM_EDIT_CAPTION_STYLES).default("outline")
|
|
90
|
+
.describe("outline: bold white with a dark outline; banner: a band across the frame that stays for its seconds; badge: the words on a filled box"),
|
|
91
|
+
color: z.string().regex(/^#[0-9a-fA-F]{6}$/, "a hex colour such as #F4EBD9").optional()
|
|
92
|
+
.describe("The fill of the boxed word, the badge or the banner, as #RRGGBB; omitted, white. The words take black or white, whichever reads"),
|
|
93
|
+
highlight: z.number().int().min(0).max(9).optional()
|
|
94
|
+
.describe("outline only: the place of the word drawn in a filled box (0 for the first), the word being spoken"),
|
|
95
|
+
}).refine(caption => caption.end > caption.start, "end must be after start")
|
|
96
|
+
.refine(caption => caption.highlight === undefined || caption.style === "outline", "highlight boxes a word of an outline caption only")
|
|
97
|
+
.refine(caption => caption.color === undefined || caption.style !== "outline" || caption.highlight !== undefined, "color fills a boxed word, a badge or a banner; an outline caption without highlight has none")
|
|
98
|
+
.refine(caption => caption.highlight === undefined || caption.highlight < caption.text.split(/\s+/).length, "highlight names a word the caption does not have");
|
|
83
99
|
export const filmEditInput = z.strictObject({
|
|
84
100
|
clips: z.array(editClip).min(1).max(FILM_EDIT_MAX_CLIPS)
|
|
85
101
|
.describe("The cut in order, each a window of one of your clips; they play back to back with hard cuts"),
|
|
@@ -90,14 +106,24 @@ export const filmEditInput = z.strictObject({
|
|
|
90
106
|
.describe("Instead of the whole take: its sentences laid one by one, each on the second its picture starts; pieces may not overlap"),
|
|
91
107
|
}).optional().describe("The voice-over; without it the edit is silent"),
|
|
92
108
|
captions: z.array(editCaption).max(FILM_EDIT_MAX_CAPTIONS).default([])
|
|
93
|
-
.describe("Burned-in captions:
|
|
109
|
+
.describe("Burned-in captions, each in its style: outline (default), banner or badge"),
|
|
94
110
|
hold: z.number().min(0).max(FILM_EDIT_MAX_HOLD_SEC).default(0)
|
|
95
111
|
.describe("Seconds the last frame is held at the end, for the packshot"),
|
|
112
|
+
music: editMusic.optional().describe("Music from at to the end: a library track (free) or one made for the cut (paid on delivery); " +
|
|
113
|
+
"under a voice it plays lower"),
|
|
114
|
+
ad_id: adId.optional().describe("The ad record this cut belongs to: every clip then names its slot, and a slot whose take has not passed " +
|
|
115
|
+
"check_take is refused before any credits"),
|
|
96
116
|
max_credits: maxCreditsField,
|
|
97
|
-
})
|
|
117
|
+
}).refine(edit => edit.ad_id !== undefined || edit.clips.every(clip => clip.slot === undefined), "a clip's slot needs ad_id")
|
|
118
|
+
.refine(edit => edit.ad_id === undefined || edit.clips.every(clip => clip.slot !== undefined), "with ad_id, every clip names its slot");
|
|
98
119
|
export const TAKE_FRAMES_COLUMNS = 8, TAKE_FRAMES_CELL_WIDTH = 240, TAKE_FRAMES_PER_SHEET = 24;
|
|
99
120
|
export const TAKE_FRAMES_MIN_FPS = 1, TAKE_FRAMES_MAX_FPS = 24, TAKE_FRAMES_DEFAULT_FPS = 8;
|
|
100
121
|
export const TAKE_CHECK_PROMPT_MAX_CHARS = 1500, TAKE_CHECK_MAX_MOVES = 5;
|
|
122
|
+
export const TAKE_MOTION_FORMATS = ["fashion", "product"];
|
|
123
|
+
export const TAKE_MOTION_TARGETS = {
|
|
124
|
+
fashion: { subject: 11, camera: 5 }, product: { subject: 1.5, camera: null }
|
|
125
|
+
};
|
|
126
|
+
export const TAKE_SHAKE_LIMIT = 4;
|
|
101
127
|
const takeSecond = z.number().min(0).max(600);
|
|
102
128
|
const takeSource = {
|
|
103
129
|
run_id: runId.optional().describe("The take: a delivered generate_video run of this account"),
|
|
@@ -125,10 +151,34 @@ export const takeCheckInput = z.strictObject({
|
|
|
125
151
|
.describe("https picture of the product as it really is (your upload or a saved asset): the take's product is compared with it"),
|
|
126
152
|
moves: z.array(takeSecond).max(TAKE_CHECK_MAX_MOVES).optional()
|
|
127
153
|
.describe("Seconds of the take where a hand meets the product (a grip, a lid, a set-down): looked at first"),
|
|
154
|
+
ad_id: adId.optional().describe("With slot: the ad record the verdict joins, as a take of that slot"),
|
|
155
|
+
slot: adSlotId.optional().describe("With ad_id: the slot of the ad this take is for"),
|
|
156
|
+
format: z.enum(TAKE_MOTION_FORMATS).optional().describe("What the take's motion is measured against: fashion (people and clothes in " +
|
|
157
|
+
"motion: fashion, lifestyle, sport) or product (a product worked in the hands); omitted, product"),
|
|
128
158
|
max_credits: maxCreditsField,
|
|
129
|
-
}).refine(oneTake, ONE_TAKE);
|
|
159
|
+
}).refine(oneTake, ONE_TAKE).refine(v => (v.ad_id === undefined) === (v.slot === undefined), "ad_id and slot go together");
|
|
130
160
|
export const TAKE_DEFECT_LEVELS = ["asset", "action", "camera", "roll"];
|
|
131
161
|
const takeWindow = z.strictObject({ from: z.number().min(0), to: z.number().min(0) });
|
|
162
|
+
const motionNumbers = {
|
|
163
|
+
subject: z.number().nonnegative().describe("How much the subject moves once the camera's own move is taken out: mean change of brightness between frames, 0 to 255"),
|
|
164
|
+
camera: z.number().nonnegative().describe("How fast the camera travels on its smooth path, percent of the frame's width a second"),
|
|
165
|
+
jitter: z.number().nonnegative().describe("Camera shake: how far the camera strays from that smooth path, percent of the frame's width a step"),
|
|
166
|
+
};
|
|
167
|
+
export const takeMotionWindow = z.strictObject({ from: z.number().min(0), to: z.number().min(0), ...motionNumbers });
|
|
168
|
+
export const takeMotion = z.strictObject({
|
|
169
|
+
format: z.enum(TAKE_MOTION_FORMATS),
|
|
170
|
+
target: z.strictObject({ subject: z.number().nonnegative(), camera: z.number().nonnegative().nullable() }),
|
|
171
|
+
...motionNumbers,
|
|
172
|
+
windows: z.array(takeMotionWindow),
|
|
173
|
+
finding: z.string().nullable().describe("too static for this format, with what to change; null when every window reaches the target"),
|
|
174
|
+
shake: z.string().nullable().describe("camera shake past the limit, with what to change; null when the camera is steady"),
|
|
175
|
+
});
|
|
176
|
+
export const takeCheckVerdict = z.strictObject({ duration_sec: z.number().positive(),
|
|
177
|
+
findings: z.array(z.strictObject({ code: z.string(), level: z.enum(TAKE_DEFECT_LEVELS), from: z.number().min(0), to: z.number().min(0),
|
|
178
|
+
whole_take: z.boolean(), why: z.string().nullable() })),
|
|
179
|
+
clean: z.array(takeWindow),
|
|
180
|
+
motion: takeMotion.optional() });
|
|
181
|
+
export const takeCheckPassed = (verdict) => verdict.clean.length > 0 && !verdict.findings.some(finding => finding.whole_take);
|
|
132
182
|
export const FILM_HERO_SOURCE_FIELDS = ["character_reference", "character_details", "script", "voice_run_id"];
|
|
133
183
|
export const filmHeroInput = z.strictObject({
|
|
134
184
|
character_reference: qualifiedImageUrl.optional().describe("https image of the character the poses are drawn after: a public picture, your upload, a " +
|
|
@@ -148,6 +198,8 @@ export function ownVoiceCeilingSeconds(text) {
|
|
|
148
198
|
export const ownFilmFrames = (voiceSeconds) => Math.ceil((voiceSeconds + FILM_TAIL_SEC) * FILM_RENDER_FPS);
|
|
149
199
|
export const ownFilmSeconds = (voiceSeconds) => +(ownFilmFrames(voiceSeconds) / FILM_RENDER_FPS).toFixed(2);
|
|
150
200
|
const filmSec = z.number().positive().describe("How long the film runs: the voice, then a short tail; say this length, not the voice's");
|
|
201
|
+
export const ownAgentQuoteLine = z.strictObject({ label: z.string().min(1), unit: z.enum(["film", "track"]), quantity: z.number().int().nonnegative(),
|
|
202
|
+
unit_credits: z.number().int().nonnegative(), credits: z.number().int().nonnegative() });
|
|
151
203
|
export const ownAgentQuote = z.strictObject({
|
|
152
204
|
skill: z.enum(OWN_AGENT_SKILLS),
|
|
153
205
|
credits: z.number().int().nonnegative(),
|
|
@@ -158,7 +210,9 @@ export const ownAgentQuote = z.strictObject({
|
|
|
158
210
|
.describe(`How many of the asked stills are free: the first ${OWN_FREE_STILLS} stills of a draft in any ${OWN_FREE_STILLS_WINDOW_HOURS} h are`),
|
|
159
211
|
free_left: z.number().int().nonnegative().optional().describe("Free stills this draft has left in the rolling day after this call"),
|
|
160
212
|
frames: z.number().int().positive().optional(),
|
|
213
|
+
lines: z.array(ownAgentQuoteLine).optional(),
|
|
161
214
|
warnings: z.array(z.string()),
|
|
215
|
+
next: diyNext.optional(),
|
|
162
216
|
});
|
|
163
217
|
export const filmStill = z.strictObject({
|
|
164
218
|
at: z.union([z.string(), z.number()]),
|
|
@@ -183,12 +237,13 @@ export const filmRun = z.strictObject({
|
|
|
183
237
|
hero: z.strictObject({ mascot_id: assetId, poses: z.array(z.enum(MASCOT_POSES)), character: z.string().nullable(),
|
|
184
238
|
sheet_url: z.string().url().nullable().default(null) }).optional(),
|
|
185
239
|
take_frames: z.strictObject({ fps: z.number().int().positive(), frames: z.number().int().positive(),
|
|
186
|
-
sheets: z.array(z.strictObject({ image_url: z.string().url(), from: z.number().min(0), to: z.number().min(0), frames: z.number().int().positive() }))
|
|
240
|
+
sheets: z.array(z.strictObject({ image_url: z.string().url(), from: z.number().min(0), to: z.number().min(0), frames: z.number().int().positive() })),
|
|
241
|
+
shots: z.array(takeMotionWindow).optional()
|
|
242
|
+
.describe("The stretches between cuts and whips in these seconds, each with its subject motion, camera move and camera shake: a reference's energy, shot by shot") })
|
|
187
243
|
.optional(),
|
|
188
|
-
take_check:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
clean: z.array(takeWindow) }).optional(),
|
|
244
|
+
take_check: takeCheckVerdict.optional(),
|
|
245
|
+
next: diyNext.nullable().optional(),
|
|
246
|
+
blocked: diyBlocked.nullable().optional(),
|
|
192
247
|
created_at: z.string(),
|
|
193
248
|
finished_at: z.string().nullable(),
|
|
194
249
|
});
|
|
@@ -1095,6 +1095,30 @@ export declare const templateSoundsList: z.ZodObject<{
|
|
|
1095
1095
|
names: z.ZodArray<z.ZodString>;
|
|
1096
1096
|
plays: z.ZodString;
|
|
1097
1097
|
}, z.core.$strict>>;
|
|
1098
|
+
music_beds: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1099
|
+
id: z.ZodString;
|
|
1100
|
+
genre: z.ZodEnum<{
|
|
1101
|
+
acoustic: "acoustic";
|
|
1102
|
+
ambient: "ambient";
|
|
1103
|
+
beauty: "beauty";
|
|
1104
|
+
cinematic: "cinematic";
|
|
1105
|
+
corporate: "corporate";
|
|
1106
|
+
fashion: "fashion";
|
|
1107
|
+
food: "food";
|
|
1108
|
+
hiphop_light: "hiphop_light";
|
|
1109
|
+
lofi: "lofi";
|
|
1110
|
+
playful: "playful";
|
|
1111
|
+
sport: "sport";
|
|
1112
|
+
tech: "tech";
|
|
1113
|
+
}>;
|
|
1114
|
+
energy: z.ZodEnum<{
|
|
1115
|
+
calm: "calm";
|
|
1116
|
+
driving: "driving";
|
|
1117
|
+
medium: "medium";
|
|
1118
|
+
}>;
|
|
1119
|
+
bpm: z.ZodNumber;
|
|
1120
|
+
seconds: z.ZodNumber;
|
|
1121
|
+
}, z.core.$strict>>>;
|
|
1098
1122
|
contract_version: z.ZodString;
|
|
1099
1123
|
}, z.core.$strict>;
|
|
1100
1124
|
export type TemplateSoundsList = z.infer<typeof templateSoundsList>;
|
package/dist/templates/sounds.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { editMusicBed } from "../edit-music.js";
|
|
2
3
|
export const TEMPLATE_SOUND_BEATS = ["click", "toggle", "ring", "answer", "notify", "step", "whoosh", "flash", "pop", "hangup", "money", "edit"];
|
|
3
4
|
export const TEMPLATE_SOUNDS = {
|
|
4
5
|
click: { default: "click_mouse", names: ["click_mouse", "click_soft", "click_crisp", "click_light", "tick_soft", "click_sharp", "key"],
|
|
@@ -96,6 +97,7 @@ export const TEMPLATE_SOUNDS_PATH = "/v1/template-sounds";
|
|
|
96
97
|
export const templateSoundsList = z.strictObject({
|
|
97
98
|
beats: z.array(z.strictObject({ beat: z.enum(TEMPLATE_SOUND_BEATS), default: z.string().min(1), names: z.array(z.string().min(1)).min(1),
|
|
98
99
|
plays: z.string().min(1) })),
|
|
100
|
+
music_beds: z.array(editMusicBed).default([]),
|
|
99
101
|
contract_version: z.string().min(1),
|
|
100
102
|
});
|
|
101
103
|
export function listTemplateSounds() {
|