@clipwright/core 0.47.0 → 0.48.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/contract-dispositions.d.ts +163 -42
- package/dist/contract-dispositions.js +3 -2
- package/dist/contract-dispositions.js.map +1 -1
- package/dist/contracts/v1/workflow-brief.d.ts +468 -94
- package/dist/contracts/v1/workflow-brief.js +2 -0
- package/dist/contracts/v1/workflow-brief.js.map +1 -1
- package/dist/contracts/v1/workflow-catalog.d.ts +470 -94
- package/dist/contracts/v1/workflow-client.d.ts +251 -47
- package/dist/contracts/v1/workflow-client.js +2 -1
- package/dist/contracts/v1/workflow-client.js.map +1 -1
- package/dist/contracts/v1/workflow-execution.d.ts +16 -0
- package/dist/contracts/v1/workflow-next.d.ts +8 -0
- package/dist/contracts/v1/workflow-plan.d.ts +704 -141
- package/dist/contracts/v1/workflow-run-read.d.ts +4 -0
- package/dist/endpoints.js +21 -0
- package/dist/endpoints.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +8 -0
- package/dist/errors.js.map +1 -1
- package/dist/faceless-price.d.ts +34 -1
- package/dist/faceless-price.js +19 -3
- package/dist/faceless-price.js.map +1 -1
- package/dist/faceless-public.d.ts +217 -51
- package/dist/faceless-public.js +59 -12
- package/dist/faceless-public.js.map +1 -1
- package/dist/film-drafts.d.ts +251 -0
- package/dist/film-drafts.js +92 -0
- package/dist/film-drafts.js.map +1 -0
- package/dist/film-guide.d.ts +74 -0
- package/dist/film-guide.js +42 -0
- package/dist/film-guide.js.map +1 -0
- package/dist/film-styles.d.ts +109 -0
- package/dist/film-styles.js +29 -0
- package/dist/film-styles.js.map +1 -0
- package/dist/generation-shot.d.ts +100 -0
- package/dist/generation-shot.js +129 -0
- package/dist/generation-shot.js.map +1 -0
- package/dist/generations.d.ts +69 -3
- package/dist/generations.js +37 -3
- package/dist/generations.js.map +1 -1
- package/dist/idempotency.d.ts +3 -0
- package/dist/idempotency.js +6 -0
- package/dist/idempotency.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +14 -0
- package/dist/openapi.js.map +1 -1
- package/dist/own-agent-price.d.ts +53 -0
- package/dist/own-agent-price.js +67 -0
- package/dist/own-agent-price.js.map +1 -0
- package/dist/own-agent-runs.d.ts +186 -0
- package/dist/own-agent-runs.js +110 -0
- package/dist/own-agent-runs.js.map +1 -0
- package/dist/prices.js +27 -14
- package/dist/prices.js.map +1 -1
- package/dist/reference-lyrics.d.ts +47 -0
- package/dist/reference-lyrics.js +39 -0
- package/dist/reference-lyrics.js.map +1 -0
- package/dist/resolved-timeline.d.ts +3 -3
- package/dist/run-static-warnings.js +3 -1
- package/dist/run-static-warnings.js.map +1 -1
- package/dist/scene-place.d.ts +5 -2
- package/dist/scene-place.js +8 -2
- package/dist/scene-place.js.map +1 -1
- package/dist/skill-theme-explainer.d.ts +2 -0
- package/dist/skill-theme-explainer.js +64 -0
- package/dist/skill-theme-explainer.js.map +1 -0
- package/dist/skill-theme.d.ts +161 -0
- package/dist/skill-theme.js +274 -0
- package/dist/skill-theme.js.map +1 -0
- package/dist/skills.d.ts +740 -120
- package/dist/skills.js +27 -7
- package/dist/skills.js.map +1 -1
- package/dist/ugc-scenes.d.ts +9 -4
- package/dist/ugc-scenes.js +27 -3
- package/dist/ugc-scenes.js.map +1 -1
- package/dist/voice-admission.d.ts +233 -47
- package/dist/workflows/methods/faceless-explainer.d.ts +107 -0
- package/dist/workflows/methods/kinetic-launch.d.ts +107 -0
- package/dist/workflows/methods/product-image-story.d.ts +107 -0
- package/dist/workflows/methods/reference-remake.d.ts +107 -0
- package/dist/workflows/methods/shared.d.ts +107 -0
- package/dist/workflows/methods/ugc-faq-answer.d.ts +107 -0
- package/dist/workflows/methods/ugc-product-intro.d.ts +107 -0
- package/dist/workflows/methods/website-proof-demo.d.ts +107 -0
- package/dist/workflows/reference-remake.d.ts +57 -0
- package/dist/workflows/reference-remake.js +139 -11
- package/dist/workflows/reference-remake.js.map +1 -1
- package/dist/workflows/validate.js +1 -1
- package/dist/workflows/validate.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FILM_GUIDE_PATH = "/v1/film-guide";
|
|
3
|
+
export declare const FILM_KIT_PATH = "/v1/film-kit";
|
|
4
|
+
/** The kit files an agent reads, relative to the kit's root, in reading order: the module a film imports, the drawers behind it, the film
|
|
5
|
+
* frame, then the reference film. */
|
|
6
|
+
export declare const FILM_KIT_FILES: readonly ["index.ts", "src/lib/motion.ts", "src/lib/frame.tsx", "src/lib/marks.tsx", "src/lib/ui.tsx", "src/lib/objects.tsx", "src/lib/product.tsx", "src/Film.tsx", "src/types.ts", "src/theme.ts", "src/hero/HeroSticker.tsx", "films/espresso-hit/Movie.tsx", "films/espresso-hit/scenes.tsx"];
|
|
7
|
+
export type FilmKitFile = (typeof FILM_KIT_FILES)[number];
|
|
8
|
+
/** The most kept sounds the guide names, as many as the hosted writer is shown. */
|
|
9
|
+
export declare const FILM_KEPT_SOUNDS_MAX = 60;
|
|
10
|
+
export declare const filmGuide: z.ZodObject<{
|
|
11
|
+
guide: z.ZodString;
|
|
12
|
+
method: z.ZodString;
|
|
13
|
+
kit_version: z.ZodString;
|
|
14
|
+
kit_files: z.ZodArray<z.ZodObject<{
|
|
15
|
+
path: z.ZodEnum<{
|
|
16
|
+
"films/espresso-hit/Movie.tsx": "films/espresso-hit/Movie.tsx";
|
|
17
|
+
"films/espresso-hit/scenes.tsx": "films/espresso-hit/scenes.tsx";
|
|
18
|
+
"index.ts": "index.ts";
|
|
19
|
+
"src/Film.tsx": "src/Film.tsx";
|
|
20
|
+
"src/hero/HeroSticker.tsx": "src/hero/HeroSticker.tsx";
|
|
21
|
+
"src/lib/frame.tsx": "src/lib/frame.tsx";
|
|
22
|
+
"src/lib/marks.tsx": "src/lib/marks.tsx";
|
|
23
|
+
"src/lib/motion.ts": "src/lib/motion.ts";
|
|
24
|
+
"src/lib/objects.tsx": "src/lib/objects.tsx";
|
|
25
|
+
"src/lib/product.tsx": "src/lib/product.tsx";
|
|
26
|
+
"src/lib/ui.tsx": "src/lib/ui.tsx";
|
|
27
|
+
"src/theme.ts": "src/theme.ts";
|
|
28
|
+
"src/types.ts": "src/types.ts";
|
|
29
|
+
}>;
|
|
30
|
+
bytes: z.ZodNumber;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
kept_sounds: z.ZodArray<z.ZodString>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export type FilmGuide = z.infer<typeof filmGuide>;
|
|
35
|
+
export declare const filmKitQuery: z.ZodObject<{
|
|
36
|
+
path: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
"films/espresso-hit/Movie.tsx": "films/espresso-hit/Movie.tsx";
|
|
38
|
+
"films/espresso-hit/scenes.tsx": "films/espresso-hit/scenes.tsx";
|
|
39
|
+
"index.ts": "index.ts";
|
|
40
|
+
"src/Film.tsx": "src/Film.tsx";
|
|
41
|
+
"src/hero/HeroSticker.tsx": "src/hero/HeroSticker.tsx";
|
|
42
|
+
"src/lib/frame.tsx": "src/lib/frame.tsx";
|
|
43
|
+
"src/lib/marks.tsx": "src/lib/marks.tsx";
|
|
44
|
+
"src/lib/motion.ts": "src/lib/motion.ts";
|
|
45
|
+
"src/lib/objects.tsx": "src/lib/objects.tsx";
|
|
46
|
+
"src/lib/product.tsx": "src/lib/product.tsx";
|
|
47
|
+
"src/lib/ui.tsx": "src/lib/ui.tsx";
|
|
48
|
+
"src/theme.ts": "src/theme.ts";
|
|
49
|
+
"src/types.ts": "src/types.ts";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type FilmKitQuery = z.infer<typeof filmKitQuery>;
|
|
53
|
+
export declare const filmKit: z.ZodObject<{
|
|
54
|
+
kit_version: z.ZodString;
|
|
55
|
+
files: z.ZodArray<z.ZodObject<{
|
|
56
|
+
path: z.ZodEnum<{
|
|
57
|
+
"films/espresso-hit/Movie.tsx": "films/espresso-hit/Movie.tsx";
|
|
58
|
+
"films/espresso-hit/scenes.tsx": "films/espresso-hit/scenes.tsx";
|
|
59
|
+
"index.ts": "index.ts";
|
|
60
|
+
"src/Film.tsx": "src/Film.tsx";
|
|
61
|
+
"src/hero/HeroSticker.tsx": "src/hero/HeroSticker.tsx";
|
|
62
|
+
"src/lib/frame.tsx": "src/lib/frame.tsx";
|
|
63
|
+
"src/lib/marks.tsx": "src/lib/marks.tsx";
|
|
64
|
+
"src/lib/motion.ts": "src/lib/motion.ts";
|
|
65
|
+
"src/lib/objects.tsx": "src/lib/objects.tsx";
|
|
66
|
+
"src/lib/product.tsx": "src/lib/product.tsx";
|
|
67
|
+
"src/lib/ui.tsx": "src/lib/ui.tsx";
|
|
68
|
+
"src/theme.ts": "src/theme.ts";
|
|
69
|
+
"src/types.ts": "src/types.ts";
|
|
70
|
+
}>;
|
|
71
|
+
text: z.ZodString;
|
|
72
|
+
}, z.core.$strict>>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
export type FilmKit = z.infer<typeof filmKit>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// The «own agent» explainer's guide and scene kit, served read-only (#1356): the guide a customer's agent writes its film from, its method
|
|
3
|
+
// appendix, and the kit's sources with a reference film, so the agent reads the props it draws with instead of guessing them.
|
|
4
|
+
export const FILM_GUIDE_PATH = "/v1/film-guide";
|
|
5
|
+
export const FILM_KIT_PATH = "/v1/film-kit";
|
|
6
|
+
/** The kit files an agent reads, relative to the kit's root, in reading order: the module a film imports, the drawers behind it, the film
|
|
7
|
+
* frame, then the reference film. */
|
|
8
|
+
export const FILM_KIT_FILES = [
|
|
9
|
+
"index.ts",
|
|
10
|
+
"src/lib/motion.ts",
|
|
11
|
+
"src/lib/frame.tsx",
|
|
12
|
+
"src/lib/marks.tsx",
|
|
13
|
+
"src/lib/ui.tsx",
|
|
14
|
+
"src/lib/objects.tsx",
|
|
15
|
+
"src/lib/product.tsx",
|
|
16
|
+
"src/Film.tsx",
|
|
17
|
+
"src/types.ts",
|
|
18
|
+
"src/theme.ts",
|
|
19
|
+
"src/hero/HeroSticker.tsx",
|
|
20
|
+
"films/espresso-hit/Movie.tsx",
|
|
21
|
+
"films/espresso-hit/scenes.tsx",
|
|
22
|
+
];
|
|
23
|
+
/** The most kept sounds the guide names, as many as the hosted writer is shown. */
|
|
24
|
+
export const FILM_KEPT_SOUNDS_MAX = 60;
|
|
25
|
+
const kitVersion = z.string().regex(/^[a-f0-9]{12}$/).describe("The kit's version: a digest of its files, which changes when any of them does");
|
|
26
|
+
export const filmGuide = z.strictObject({
|
|
27
|
+
guide: z.string().min(1).describe("The explainer guide, Markdown: the steps, the tools and routes, the rules the checks refuse"),
|
|
28
|
+
method: z.string().min(1).describe("Its appendix, Markdown: the craft behind every step"),
|
|
29
|
+
kit_version: kitVersion,
|
|
30
|
+
kit_files: z.array(z.strictObject({ path: z.enum(FILM_KIT_FILES), bytes: z.number().int().positive() }))
|
|
31
|
+
.describe("The scene kit's files get_film_kit serves, in reading order"),
|
|
32
|
+
kept_sounds: z.array(z.string()).max(FILM_KEPT_SOUNDS_MAX)
|
|
33
|
+
.describe("Sounds your account's films made and kept, newest first: name one exactly in sfx and it plays again, made nothing new"),
|
|
34
|
+
});
|
|
35
|
+
export const filmKitQuery = z.strictObject({
|
|
36
|
+
path: z.enum(FILM_KIT_FILES).optional().describe("One kit file; every file when omitted"),
|
|
37
|
+
});
|
|
38
|
+
export const filmKit = z.strictObject({
|
|
39
|
+
kit_version: kitVersion,
|
|
40
|
+
files: z.array(z.strictObject({ path: z.enum(FILM_KIT_FILES), text: z.string() })),
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=film-guide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"film-guide.js","sourceRoot":"","sources":["../src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,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC;SACvD,QAAQ,CAAC,uHAAuH,CAAC;CACrI,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CAC1F,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,YAAY,CAAC;IACpC,WAAW,EAAE,UAAU;IACvB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;CACnF,CAAC,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FILM_STYLES: readonly ["pixel", "ps2", "comic", "bricks", "clay", "paper", "anime", "lowpoly", "riso", "diorama", "popup", "claymation", "watercolor", "isle", "cel80s"];
|
|
3
|
+
export type FilmStyle = (typeof FILM_STYLES)[number];
|
|
4
|
+
/** What a style can draw: one subject a beat. */
|
|
5
|
+
export declare const FILM_STYLE_SUBJECTS: readonly ["seed", "plant-seed", "water", "sun", "sprout", "transplant", "stake", "green-fruit", "tomato", "salad", "hook_cold", "hook_heat", "hook_how", "loop", "low", "coil_in", "coil_soak", "fan_blow", "fan_cool", "comp_travel", "comp_squeeze", "out_coil", "heat_away", "to_liquid", "valve", "pressure", "ice", "same_loop", "finale"];
|
|
6
|
+
/** A styled film's bounds: beats, a beat's length and the film's, as the style runtime takes them. */
|
|
7
|
+
export declare const FILM_MAX_BEATS = 40, FILM_BEAT_MIN_SEC = 0.5, FILM_BEAT_MAX_SEC = 20, FILM_STYLED_MAX_SEC = 90, FILM_BEAT_LINE_MAX_CHARS = 160;
|
|
8
|
+
/** One beat: the subject drawn, the line shown, and when it starts (an anchor of the draft's cues, or seconds); it lasts until the next. */
|
|
9
|
+
export declare const filmBeat: z.ZodObject<{
|
|
10
|
+
subject: z.ZodEnum<{
|
|
11
|
+
coil_in: "coil_in";
|
|
12
|
+
coil_soak: "coil_soak";
|
|
13
|
+
comp_squeeze: "comp_squeeze";
|
|
14
|
+
comp_travel: "comp_travel";
|
|
15
|
+
fan_blow: "fan_blow";
|
|
16
|
+
fan_cool: "fan_cool";
|
|
17
|
+
finale: "finale";
|
|
18
|
+
"green-fruit": "green-fruit";
|
|
19
|
+
heat_away: "heat_away";
|
|
20
|
+
hook_cold: "hook_cold";
|
|
21
|
+
hook_heat: "hook_heat";
|
|
22
|
+
hook_how: "hook_how";
|
|
23
|
+
ice: "ice";
|
|
24
|
+
loop: "loop";
|
|
25
|
+
low: "low";
|
|
26
|
+
out_coil: "out_coil";
|
|
27
|
+
"plant-seed": "plant-seed";
|
|
28
|
+
pressure: "pressure";
|
|
29
|
+
salad: "salad";
|
|
30
|
+
same_loop: "same_loop";
|
|
31
|
+
seed: "seed";
|
|
32
|
+
sprout: "sprout";
|
|
33
|
+
stake: "stake";
|
|
34
|
+
sun: "sun";
|
|
35
|
+
to_liquid: "to_liquid";
|
|
36
|
+
tomato: "tomato";
|
|
37
|
+
transplant: "transplant";
|
|
38
|
+
valve: "valve";
|
|
39
|
+
water: "water";
|
|
40
|
+
}>;
|
|
41
|
+
line: z.ZodString;
|
|
42
|
+
at: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
export type FilmBeat = z.infer<typeof filmBeat>;
|
|
45
|
+
/** What a styled draft keeps beside its theme: the style, the brand roles the brand or the call chose (none: the style's own colours), the
|
|
46
|
+
* account's seed for the style's variation, and the beats. */
|
|
47
|
+
export declare const filmDraftCanvas: z.ZodObject<{
|
|
48
|
+
style: z.ZodEnum<{
|
|
49
|
+
anime: "anime";
|
|
50
|
+
bricks: "bricks";
|
|
51
|
+
cel80s: "cel80s";
|
|
52
|
+
clay: "clay";
|
|
53
|
+
claymation: "claymation";
|
|
54
|
+
comic: "comic";
|
|
55
|
+
diorama: "diorama";
|
|
56
|
+
isle: "isle";
|
|
57
|
+
lowpoly: "lowpoly";
|
|
58
|
+
paper: "paper";
|
|
59
|
+
pixel: "pixel";
|
|
60
|
+
popup: "popup";
|
|
61
|
+
ps2: "ps2";
|
|
62
|
+
riso: "riso";
|
|
63
|
+
watercolor: "watercolor";
|
|
64
|
+
}>;
|
|
65
|
+
roles: z.ZodObject<{
|
|
66
|
+
background: z.ZodOptional<z.ZodString>;
|
|
67
|
+
surface: z.ZodOptional<z.ZodString>;
|
|
68
|
+
ink: z.ZodOptional<z.ZodString>;
|
|
69
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
70
|
+
accent_ink: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
seed: z.ZodNumber;
|
|
73
|
+
beats: z.ZodArray<z.ZodObject<{
|
|
74
|
+
subject: z.ZodEnum<{
|
|
75
|
+
coil_in: "coil_in";
|
|
76
|
+
coil_soak: "coil_soak";
|
|
77
|
+
comp_squeeze: "comp_squeeze";
|
|
78
|
+
comp_travel: "comp_travel";
|
|
79
|
+
fan_blow: "fan_blow";
|
|
80
|
+
fan_cool: "fan_cool";
|
|
81
|
+
finale: "finale";
|
|
82
|
+
"green-fruit": "green-fruit";
|
|
83
|
+
heat_away: "heat_away";
|
|
84
|
+
hook_cold: "hook_cold";
|
|
85
|
+
hook_heat: "hook_heat";
|
|
86
|
+
hook_how: "hook_how";
|
|
87
|
+
ice: "ice";
|
|
88
|
+
loop: "loop";
|
|
89
|
+
low: "low";
|
|
90
|
+
out_coil: "out_coil";
|
|
91
|
+
"plant-seed": "plant-seed";
|
|
92
|
+
pressure: "pressure";
|
|
93
|
+
salad: "salad";
|
|
94
|
+
same_loop: "same_loop";
|
|
95
|
+
seed: "seed";
|
|
96
|
+
sprout: "sprout";
|
|
97
|
+
stake: "stake";
|
|
98
|
+
sun: "sun";
|
|
99
|
+
to_liquid: "to_liquid";
|
|
100
|
+
tomato: "tomato";
|
|
101
|
+
transplant: "transplant";
|
|
102
|
+
valve: "valve";
|
|
103
|
+
water: "water";
|
|
104
|
+
}>;
|
|
105
|
+
line: z.ZodString;
|
|
106
|
+
at: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
export type FilmDraftCanvas = z.infer<typeof filmDraftCanvas>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// The drawn styles a film draft may name (#1338): each draws the whole film from the draft's beats, in the draft's brand colours, instead of
|
|
3
|
+
// the draft's scene code. A test holds these names equal to the styles and subjects the render site carries.
|
|
4
|
+
export const FILM_STYLES = ["pixel", "ps2", "comic", "bricks", "clay", "paper", "anime", "lowpoly", "riso", "diorama",
|
|
5
|
+
"popup", "claymation", "watercolor", "isle", "cel80s"];
|
|
6
|
+
/** What a style can draw: one subject a beat. */
|
|
7
|
+
export const FILM_STYLE_SUBJECTS = ["seed", "plant-seed", "water", "sun", "sprout", "transplant", "stake", "green-fruit", "tomato", "salad",
|
|
8
|
+
"hook_cold", "hook_heat", "hook_how", "loop", "low", "coil_in", "coil_soak", "fan_blow", "fan_cool", "comp_travel", "comp_squeeze", "out_coil",
|
|
9
|
+
"heat_away", "to_liquid", "valve", "pressure", "ice", "same_loop", "finale"];
|
|
10
|
+
/** A styled film's bounds: beats, a beat's length and the film's, as the style runtime takes them. */
|
|
11
|
+
export const FILM_MAX_BEATS = 40, FILM_BEAT_MIN_SEC = 0.5, FILM_BEAT_MAX_SEC = 20, FILM_STYLED_MAX_SEC = 90, FILM_BEAT_LINE_MAX_CHARS = 160;
|
|
12
|
+
const ANCHOR = z.string().regex(/^[A-Za-z_]\w{0,40}$/, "an anchor is an identifier");
|
|
13
|
+
/** One beat: the subject drawn, the line shown, and when it starts (an anchor of the draft's cues, or seconds); it lasts until the next. */
|
|
14
|
+
export const filmBeat = z.strictObject({
|
|
15
|
+
subject: z.enum(FILM_STYLE_SUBJECTS).describe("What the style draws on this beat"),
|
|
16
|
+
line: z.string().trim().min(1).max(FILM_BEAT_LINE_MAX_CHARS).describe("The words shown on this beat"),
|
|
17
|
+
at: z.union([ANCHOR, z.number().min(0).max(600)]).describe("When the beat starts: an anchor of the draft's cues or seconds; the first starts the film"),
|
|
18
|
+
});
|
|
19
|
+
const ROLE = z.string().regex(/^#[0-9a-fA-F]{6}$/);
|
|
20
|
+
/** What a styled draft keeps beside its theme: the style, the brand roles the brand or the call chose (none: the style's own colours), the
|
|
21
|
+
* account's seed for the style's variation, and the beats. */
|
|
22
|
+
export const filmDraftCanvas = z.strictObject({
|
|
23
|
+
style: z.enum(FILM_STYLES),
|
|
24
|
+
roles: z.strictObject({ background: ROLE.optional(), surface: ROLE.optional(), ink: ROLE.optional(), accent: ROLE.optional(),
|
|
25
|
+
accent_ink: ROLE.optional() }),
|
|
26
|
+
seed: z.number().int().min(0).max(2 ** 31 - 1),
|
|
27
|
+
beats: z.array(filmBeat).max(FILM_MAX_BEATS),
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=film-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"film-styles.js","sourceRoot":"","sources":["../src/film-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6IAA6I;AAC7I,6GAA6G;AAE7G,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;IACnH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE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AAC;CACxJ,CAAC,CAAC;AAGH,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AACnD;+DAC+D;AAC/D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE;QAC1H,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** A clip described as a shot: framing, subject, start, timed beats, camera, light and continuity, in place of a free prompt. */
|
|
3
|
+
export declare const SHOT_SIZES: readonly ["extreme_close_up", "close_up", "medium_close_up", "medium", "full", "wide"];
|
|
4
|
+
export declare const SHOT_ANGLES: readonly ["eye_level", "low", "high", "overhead"];
|
|
5
|
+
export declare const SHOT_DEPTHS: readonly ["shallow", "deep"];
|
|
6
|
+
export declare const SHOT_CAMERA_MOVES: readonly ["static", "push_in", "pull_back", "pan", "handheld"];
|
|
7
|
+
export declare const SHOT_CAMERA_SPEEDS: readonly ["slow", "medium"];
|
|
8
|
+
export declare const SHOT_BEAT_MIN_S = 1;
|
|
9
|
+
export declare const SHOT_BEAT_MAX_S = 5;
|
|
10
|
+
export declare const SHOT_MAX_BEATS = 10;
|
|
11
|
+
export declare const SHOT_MAX_OBJECTS = 6;
|
|
12
|
+
/** All the shot's words together, so the written clip stays inside the prompt's length. */
|
|
13
|
+
export declare const SHOT_TEXT_MAX_CHARS = 3000;
|
|
14
|
+
export type ShotSize = (typeof SHOT_SIZES)[number];
|
|
15
|
+
export type ShotAngle = (typeof SHOT_ANGLES)[number];
|
|
16
|
+
export type ShotCameraMove = (typeof SHOT_CAMERA_MOVES)[number];
|
|
17
|
+
export declare const shotObject: z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
count: z.ZodNumber;
|
|
20
|
+
at_start: z.ZodString;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const shotBeat: z.ZodObject<{
|
|
23
|
+
from_s: z.ZodNumber;
|
|
24
|
+
to_s: z.ZodNumber;
|
|
25
|
+
action: z.ZodString;
|
|
26
|
+
end_state: z.ZodString;
|
|
27
|
+
objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
/** Validated against duration_s by `shotIssues`, which the clip request and later callers run. */
|
|
30
|
+
export declare const generationShot: z.ZodObject<{
|
|
31
|
+
framing: z.ZodObject<{
|
|
32
|
+
size: z.ZodEnum<{
|
|
33
|
+
close_up: "close_up";
|
|
34
|
+
extreme_close_up: "extreme_close_up";
|
|
35
|
+
full: "full";
|
|
36
|
+
medium: "medium";
|
|
37
|
+
medium_close_up: "medium_close_up";
|
|
38
|
+
wide: "wide";
|
|
39
|
+
}>;
|
|
40
|
+
angle: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
eye_level: "eye_level";
|
|
42
|
+
high: "high";
|
|
43
|
+
low: "low";
|
|
44
|
+
overhead: "overhead";
|
|
45
|
+
}>>;
|
|
46
|
+
lens_mm: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
depth: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
deep: "deep";
|
|
49
|
+
shallow: "shallow";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
subject: z.ZodObject<{
|
|
53
|
+
label: z.ZodString;
|
|
54
|
+
fixed: z.ZodArray<z.ZodString>;
|
|
55
|
+
objects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
count: z.ZodNumber;
|
|
58
|
+
at_start: z.ZodString;
|
|
59
|
+
}, z.core.$strict>>>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
start_state: z.ZodString;
|
|
62
|
+
beats: z.ZodArray<z.ZodObject<{
|
|
63
|
+
from_s: z.ZodNumber;
|
|
64
|
+
to_s: z.ZodNumber;
|
|
65
|
+
action: z.ZodString;
|
|
66
|
+
end_state: z.ZodString;
|
|
67
|
+
objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
camera: z.ZodObject<{
|
|
70
|
+
move: z.ZodEnum<{
|
|
71
|
+
handheld: "handheld";
|
|
72
|
+
pan: "pan";
|
|
73
|
+
pull_back: "pull_back";
|
|
74
|
+
push_in: "push_in";
|
|
75
|
+
static: "static";
|
|
76
|
+
}>;
|
|
77
|
+
speed: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
medium: "medium";
|
|
79
|
+
slow: "slow";
|
|
80
|
+
}>>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
light: z.ZodObject<{
|
|
83
|
+
key: z.ZodString;
|
|
84
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
continuity: z.ZodObject<{
|
|
87
|
+
persistent: z.ZodArray<z.ZodString>;
|
|
88
|
+
end_state: z.ZodString;
|
|
89
|
+
continues_from: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
export type GenerationShot = z.infer<typeof generationShot>;
|
|
93
|
+
export interface ShotIssue {
|
|
94
|
+
path: (string | number)[];
|
|
95
|
+
message: string;
|
|
96
|
+
}
|
|
97
|
+
/** The first negating word of `text`, or null; the one lint for a shot's words and any text written from them. */
|
|
98
|
+
export declare function negationIn(text: string): string | null;
|
|
99
|
+
/** Everything a shot must satisfy for a clip of `durationS` seconds; empty means the shot is sound. Paths are relative to the shot. */
|
|
100
|
+
export declare function shotIssues(shot: GenerationShot, durationS: number): ShotIssue[];
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** A clip described as a shot: framing, subject, start, timed beats, camera, light and continuity, in place of a free prompt. */
|
|
3
|
+
export const SHOT_SIZES = ["extreme_close_up", "close_up", "medium_close_up", "medium", "full", "wide"];
|
|
4
|
+
export const SHOT_ANGLES = ["eye_level", "low", "high", "overhead"];
|
|
5
|
+
export const SHOT_DEPTHS = ["shallow", "deep"];
|
|
6
|
+
export const SHOT_CAMERA_MOVES = ["static", "push_in", "pull_back", "pan", "handheld"];
|
|
7
|
+
export const SHOT_CAMERA_SPEEDS = ["slow", "medium"];
|
|
8
|
+
export const SHOT_BEAT_MIN_S = 1;
|
|
9
|
+
export const SHOT_BEAT_MAX_S = 5;
|
|
10
|
+
export const SHOT_MAX_BEATS = 10;
|
|
11
|
+
export const SHOT_MAX_OBJECTS = 6;
|
|
12
|
+
/** All the shot's words together, so the written clip stays inside the prompt's length. */
|
|
13
|
+
export const SHOT_TEXT_MAX_CHARS = 3000;
|
|
14
|
+
const text = (max) => z.string().trim().min(1).max(max);
|
|
15
|
+
const BEATS_DESCRIPTION = "The action, second by second: contiguous beats from 0 to duration_s, each 1 to 5 seconds, every second " +
|
|
16
|
+
"owned by one beat. A beat holds one action done once, written as cause, contact and result (her fingertip dips into the jar once " +
|
|
17
|
+
"and lifts a pea-sized dab), and its end_state says what the frame shows when the beat ends (a dab of cream sits on her " +
|
|
18
|
+
"fingertip). After the main action, a still beat (she holds the jar beside her face and smiles) keeps the clip from repeating it.";
|
|
19
|
+
const SUBJECT_DESCRIPTION = "Who or what the clip follows: label is the name every beat uses (the woman), fixed holds 1 to 3 traits " +
|
|
20
|
+
"that stay the same (hair, clothes, the product's shape and print), objects lists every object the clip shows with its exact " +
|
|
21
|
+
"count and where it is in the first frame (one open jar of cream, in her left hand at chest height).";
|
|
22
|
+
export const shotObject = z.strictObject({
|
|
23
|
+
name: text(40).describe("The object's name as the beats write it: jar, cream."),
|
|
24
|
+
count: z.number().int().min(1).max(10).describe("How many of it the frame shows throughout."),
|
|
25
|
+
at_start: text(200).describe("Where it is and how it looks in the first frame."),
|
|
26
|
+
});
|
|
27
|
+
export const shotBeat = z.strictObject({
|
|
28
|
+
from_s: z.number().int().min(0),
|
|
29
|
+
to_s: z.number().int().positive(),
|
|
30
|
+
action: text(300).describe("One action, done once, as cause, contact and result."),
|
|
31
|
+
end_state: text(200).describe("What the frame shows at to_s."),
|
|
32
|
+
objects: z.array(text(40)).max(SHOT_MAX_OBJECTS).optional()
|
|
33
|
+
.describe("The objects this beat handles, by their names in subject.objects; each name also appears in action."),
|
|
34
|
+
});
|
|
35
|
+
/** Validated against duration_s by `shotIssues`, which the clip request and later callers run. */
|
|
36
|
+
export const generationShot = z.strictObject({
|
|
37
|
+
framing: z.strictObject({
|
|
38
|
+
size: z.enum(SHOT_SIZES),
|
|
39
|
+
angle: z.enum(SHOT_ANGLES).optional(),
|
|
40
|
+
lens_mm: z.number().int().min(12).max(200).optional(),
|
|
41
|
+
depth: z.enum(SHOT_DEPTHS).optional(),
|
|
42
|
+
}),
|
|
43
|
+
subject: z.strictObject({
|
|
44
|
+
label: text(60),
|
|
45
|
+
fixed: z.array(text(200)).min(1).max(3),
|
|
46
|
+
objects: z.array(shotObject).max(SHOT_MAX_OBJECTS).optional(),
|
|
47
|
+
}).describe(SUBJECT_DESCRIPTION),
|
|
48
|
+
start_state: text(300).describe("What the first frame already shows, in one sentence."),
|
|
49
|
+
beats: z.array(shotBeat).min(1).max(SHOT_MAX_BEATS).describe(BEATS_DESCRIPTION),
|
|
50
|
+
camera: z.strictObject({ move: z.enum(SHOT_CAMERA_MOVES), speed: z.enum(SHOT_CAMERA_SPEEDS).optional() })
|
|
51
|
+
.describe("One camera move for the whole clip."),
|
|
52
|
+
light: z.strictObject({ key: text(160), direction: text(120).optional() })
|
|
53
|
+
.describe("The light, worded the same in every clip of a sequence."),
|
|
54
|
+
continuity: z.strictObject({
|
|
55
|
+
persistent: z.array(text(160)).max(5).describe("What holds for the whole clip: exactly one jar, the same bathroom."),
|
|
56
|
+
end_state: text(300).describe("The last frame; the next clip of a sequence starts from it."),
|
|
57
|
+
continues_from: text(300).optional().describe("The previous clip's end_state, word for word, when this clip continues it."),
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
/** Negation and its contractions: a model reads the named thing as something to draw. */
|
|
61
|
+
const NEGATION = /\b(?:no|not|never|none|nothing|nobody|nowhere|neither|nor|without|avoid(?:s|ed|ing)?|\w+n['’]t|cannot)\b/i;
|
|
62
|
+
/** The first negating word of `text`, or null; the one lint for a shot's words and any text written from them. */
|
|
63
|
+
export function negationIn(text) {
|
|
64
|
+
return NEGATION.exec(text)?.[0] ?? null;
|
|
65
|
+
}
|
|
66
|
+
const negationMessage = (word) => `"${word}" describes what is absent; describe what is visible instead (her fingertips are clean, the counter is bare)`;
|
|
67
|
+
function freeText(shot) {
|
|
68
|
+
return [
|
|
69
|
+
[["subject", "label"], shot.subject.label],
|
|
70
|
+
...shot.subject.fixed.map((one, at) => [["subject", "fixed", at], one]),
|
|
71
|
+
...(shot.subject.objects ?? []).flatMap((one, at) => [
|
|
72
|
+
[["subject", "objects", at, "name"], one.name], [["subject", "objects", at, "at_start"], one.at_start]
|
|
73
|
+
]),
|
|
74
|
+
[["start_state"], shot.start_state],
|
|
75
|
+
...shot.beats.flatMap((beat, at) => [
|
|
76
|
+
[["beats", at, "action"], beat.action], [["beats", at, "end_state"], beat.end_state]
|
|
77
|
+
]),
|
|
78
|
+
[["light", "key"], shot.light.key],
|
|
79
|
+
...(shot.light.direction === undefined ? [] : [[["light", "direction"], shot.light.direction]]),
|
|
80
|
+
...shot.continuity.persistent.map((one, at) => [["continuity", "persistent", at], one]),
|
|
81
|
+
[["continuity", "end_state"], shot.continuity.end_state],
|
|
82
|
+
...(shot.continuity.continues_from === undefined ? []
|
|
83
|
+
: [[["continuity", "continues_from"], shot.continuity.continues_from]]),
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
/** The name as a whole word, read literally: no word character on either side, so "c++" and "jar.box" match as written. */
|
|
87
|
+
const mentions = (haystack, name) => new RegExp(`(?<!\\w)${name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}(?!\\w)`, "i").test(haystack);
|
|
88
|
+
/** Everything a shot must satisfy for a clip of `durationS` seconds; empty means the shot is sound. Paths are relative to the shot. */
|
|
89
|
+
export function shotIssues(shot, durationS) {
|
|
90
|
+
const issues = [];
|
|
91
|
+
let at = 0;
|
|
92
|
+
shot.beats.forEach((beat, index) => {
|
|
93
|
+
if (beat.from_s !== at) {
|
|
94
|
+
issues.push({ path: ["beats", index, "from_s"], message: `starts at ${beat.from_s} s; beats are contiguous, so this one starts at ${at} s` });
|
|
95
|
+
}
|
|
96
|
+
const length = beat.to_s - beat.from_s;
|
|
97
|
+
if (length < SHOT_BEAT_MIN_S || length > SHOT_BEAT_MAX_S) {
|
|
98
|
+
issues.push({ path: ["beats", index, "to_s"], message: `lasts ${length} s; a beat lasts ${SHOT_BEAT_MIN_S} to ${SHOT_BEAT_MAX_S} seconds` });
|
|
99
|
+
}
|
|
100
|
+
at = beat.to_s;
|
|
101
|
+
});
|
|
102
|
+
if (at !== durationS) {
|
|
103
|
+
issues.push({ path: ["beats"], message: `end at ${at} s; the beats cover exactly duration_s, ${durationS} s` });
|
|
104
|
+
}
|
|
105
|
+
const declared = new Set((shot.subject.objects ?? []).map((one) => one.name.toLowerCase()));
|
|
106
|
+
if (declared.size !== (shot.subject.objects ?? []).length)
|
|
107
|
+
issues.push({ path: ["subject", "objects"], message: "names each object once" });
|
|
108
|
+
shot.beats.forEach((beat, index) => {
|
|
109
|
+
(beat.objects ?? []).forEach((name, slot) => {
|
|
110
|
+
if (!declared.has(name.toLowerCase())) {
|
|
111
|
+
issues.push({ path: ["beats", index, "objects", slot], message: `"${name}" is not in subject.objects; declare it with its count and where it is at the start` });
|
|
112
|
+
}
|
|
113
|
+
else if (!mentions(beat.action, name)) {
|
|
114
|
+
issues.push({ path: ["beats", index, "objects", slot], message: `"${name}" is not named in this beat's action` });
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
const words = freeText(shot);
|
|
119
|
+
for (const [path, value] of words) {
|
|
120
|
+
const found = negationIn(value);
|
|
121
|
+
if (found !== null)
|
|
122
|
+
issues.push({ path, message: negationMessage(found) });
|
|
123
|
+
}
|
|
124
|
+
const total = words.reduce((sum, [, value]) => sum + value.length, 0);
|
|
125
|
+
if (total > SHOT_TEXT_MAX_CHARS)
|
|
126
|
+
issues.push({ path: [], message: `holds ${total} characters of text; a shot holds at most ${SHOT_TEXT_MAX_CHARS}` });
|
|
127
|
+
return issues;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=generation-shot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generation-shot.js","sourceRoot":"","sources":["../src/generation-shot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,iIAAiI;AAEjI,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,kBAAkB,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AACjH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAU,CAAC;AAC7E,MAAM,CAA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CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,KAAK,6CAA6C,mBAAmB,EAAE,EAAE,CAAC,CAAC;IACtJ,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/generations.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const GENERATE_IMAGE_RUN_PATH = "/v1/skills/generate_image/run";
|
|
|
5
5
|
export declare const GENERATE_VIDEO_QUOTE_PATH = "/v1/skills/generate_video/quote";
|
|
6
6
|
export declare const GENERATE_VIDEO_RUN_PATH = "/v1/skills/generate_video/run";
|
|
7
7
|
export declare const GENERATION_IMAGE_MODELS: readonly ["seedream-5.0-flash", "flare"];
|
|
8
|
-
export declare const GENERATION_VIDEO_MODELS: readonly ["seedance-2.0", "seedance-2.0-mini", "seedance-2.0-fast", "seedance-2.5", "kling-3.0", "gemini-omni-flash-1.1"];
|
|
8
|
+
export declare const GENERATION_VIDEO_MODELS: readonly ["seedance-2.0", "seedance-2.0-mini", "seedance-2.0-fast", "seedance-2.5", "kling-3.0", "kling-4.0", "kling-4.0-flash", "gemini-omni-flash-1.1"];
|
|
9
9
|
export type GenerationImageModel = (typeof GENERATION_IMAGE_MODELS)[number];
|
|
10
10
|
export type GenerationVideoModel = (typeof GENERATION_VIDEO_MODELS)[number];
|
|
11
11
|
export type GenerationModel = GenerationImageModel | GenerationVideoModel;
|
|
@@ -59,6 +59,8 @@ export interface GenerationVideoCapability {
|
|
|
59
59
|
};
|
|
60
60
|
/** The only lengths a model takes when it is not every whole second of the range. */
|
|
61
61
|
duration_values?: readonly number[];
|
|
62
|
+
/** `false` where first_frame mode takes no last_frame; absent, it takes one. */
|
|
63
|
+
last_frame?: false;
|
|
62
64
|
rows: readonly GenerationVideoRow[];
|
|
63
65
|
}
|
|
64
66
|
type GenerationCapabilities = {
|
|
@@ -100,12 +102,76 @@ export declare const generateImageRequest: z.ZodObject<{
|
|
|
100
102
|
}, z.core.$strict>]>>>;
|
|
101
103
|
}, z.core.$strict>;
|
|
102
104
|
export type GenerateImageRequest = z.infer<typeof generateImageRequest>;
|
|
103
|
-
/** No audio field: the vendor is always asked for a silent clip. */
|
|
105
|
+
/** No audio field: the vendor is always asked for a silent clip. Exactly one of `prompt` and `shot`. */
|
|
104
106
|
export declare const generateVideoRequest: z.ZodObject<{
|
|
105
|
-
prompt: z.ZodString
|
|
107
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
108
|
+
shot: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
framing: z.ZodObject<{
|
|
110
|
+
size: z.ZodEnum<{
|
|
111
|
+
close_up: "close_up";
|
|
112
|
+
extreme_close_up: "extreme_close_up";
|
|
113
|
+
full: "full";
|
|
114
|
+
medium: "medium";
|
|
115
|
+
medium_close_up: "medium_close_up";
|
|
116
|
+
wide: "wide";
|
|
117
|
+
}>;
|
|
118
|
+
angle: z.ZodOptional<z.ZodEnum<{
|
|
119
|
+
eye_level: "eye_level";
|
|
120
|
+
high: "high";
|
|
121
|
+
low: "low";
|
|
122
|
+
overhead: "overhead";
|
|
123
|
+
}>>;
|
|
124
|
+
lens_mm: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
depth: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
deep: "deep";
|
|
127
|
+
shallow: "shallow";
|
|
128
|
+
}>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
subject: z.ZodObject<{
|
|
131
|
+
label: z.ZodString;
|
|
132
|
+
fixed: z.ZodArray<z.ZodString>;
|
|
133
|
+
objects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
|
+
name: z.ZodString;
|
|
135
|
+
count: z.ZodNumber;
|
|
136
|
+
at_start: z.ZodString;
|
|
137
|
+
}, z.core.$strict>>>;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
start_state: z.ZodString;
|
|
140
|
+
beats: z.ZodArray<z.ZodObject<{
|
|
141
|
+
from_s: z.ZodNumber;
|
|
142
|
+
to_s: z.ZodNumber;
|
|
143
|
+
action: z.ZodString;
|
|
144
|
+
end_state: z.ZodString;
|
|
145
|
+
objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
camera: z.ZodObject<{
|
|
148
|
+
move: z.ZodEnum<{
|
|
149
|
+
handheld: "handheld";
|
|
150
|
+
pan: "pan";
|
|
151
|
+
pull_back: "pull_back";
|
|
152
|
+
push_in: "push_in";
|
|
153
|
+
static: "static";
|
|
154
|
+
}>;
|
|
155
|
+
speed: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
medium: "medium";
|
|
157
|
+
slow: "slow";
|
|
158
|
+
}>>;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
light: z.ZodObject<{
|
|
161
|
+
key: z.ZodString;
|
|
162
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
continuity: z.ZodObject<{
|
|
165
|
+
persistent: z.ZodArray<z.ZodString>;
|
|
166
|
+
end_state: z.ZodString;
|
|
167
|
+
continues_from: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
}, z.core.$strict>>;
|
|
106
170
|
model: z.ZodEnum<{
|
|
107
171
|
"gemini-omni-flash-1.1": "gemini-omni-flash-1.1";
|
|
108
172
|
"kling-3.0": "kling-3.0";
|
|
173
|
+
"kling-4.0": "kling-4.0";
|
|
174
|
+
"kling-4.0-flash": "kling-4.0-flash";
|
|
109
175
|
"seedance-2.0": "seedance-2.0";
|
|
110
176
|
"seedance-2.0-fast": "seedance-2.0-fast";
|
|
111
177
|
"seedance-2.0-mini": "seedance-2.0-mini";
|