@clipwright/core 0.72.0 → 0.74.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/account-actors.d.ts +0 -3
- package/dist/account-actors.js +0 -7
- package/dist/ad-guide.js +3 -2
- package/dist/ads.js +2 -3
- package/dist/api-failure.d.ts +1 -4
- package/dist/api-failure.js +6 -16
- package/dist/assets.d.ts +6 -0
- package/dist/billing-terms.d.ts +12 -0
- package/dist/contract-dispositions.d.ts +23 -19
- package/dist/contract-dispositions.js +16 -72
- package/dist/contracts/v1/workflow-brief.d.ts +10 -0
- package/dist/contracts/v1/workflow-catalog.d.ts +10 -0
- package/dist/contracts/v1/workflow-client.d.ts +5 -0
- package/dist/contracts/v1/workflow-execution.d.ts +16 -0
- package/dist/contracts/v1/workflow-plan.d.ts +15 -0
- package/dist/contracts/v1/workflow-run-read.d.ts +11 -0
- package/dist/cuts.js +2 -2
- package/dist/edit-music.js +5 -5
- package/dist/endpoint-notes.js +2 -0
- package/dist/endpoints.js +3 -0
- package/dist/errors.d.ts +2 -29
- package/dist/errors.js +2 -13
- package/dist/face-billing.d.ts +11 -1
- package/dist/face-billing.js +5 -2
- package/dist/faceless-price.d.ts +0 -4
- package/dist/faceless-price.js +0 -4
- package/dist/faceless-public.d.ts +29 -3
- package/dist/faceless-public.js +12 -33
- package/dist/film-cut.d.ts +0 -4
- package/dist/film-cut.js +2 -4
- package/dist/film-drafts.d.ts +11 -0
- package/dist/film-drafts.js +8 -0
- package/dist/film-guide.d.ts +10 -49
- package/dist/film-guide.js +37 -3
- package/dist/generations-output.d.ts +5 -0
- package/dist/generations-output.js +2 -0
- package/dist/generations.d.ts +25 -0
- package/dist/generations.js +3 -1
- package/dist/idempotency.d.ts +1 -0
- package/dist/idempotency.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/mascots.d.ts +110 -1
- package/dist/mascots.js +38 -1
- package/dist/mcp-ugc-descriptions.d.ts +1 -1
- package/dist/mcp-ugc-descriptions.js +1 -1
- package/dist/music.d.ts +1 -2
- package/dist/music.js +1 -4
- package/dist/openapi.js +13 -8
- package/dist/own-agent-price.d.ts +18 -4
- package/dist/own-agent-price.js +37 -9
- package/dist/own-agent-runs.d.ts +77 -23
- package/dist/own-agent-runs.js +26 -12
- package/dist/parts-pricing.d.ts +14 -5
- package/dist/parts-pricing.js +27 -14
- package/dist/presenter-engine.d.ts +16 -0
- package/dist/presenter-engine.js +32 -0
- package/dist/presenter-matte.d.ts +0 -2
- package/dist/presenter-matte.js +0 -4
- package/dist/prices.d.ts +10 -6
- package/dist/prices.js +76 -32
- package/dist/reference-analysis.d.ts +47 -0
- package/dist/reference-analysis.js +7 -0
- package/dist/reference-display.js +3 -0
- package/dist/reference-film-kit.d.ts +43 -0
- package/dist/reference-film-kit.js +22 -0
- package/dist/render-backend.d.ts +1 -0
- package/dist/runs.d.ts +12 -0
- package/dist/scene-bible.d.ts +0 -1
- package/dist/scene-bible.js +0 -7
- package/dist/service-offer.d.ts +11 -0
- package/dist/service-offer.js +6 -0
- package/dist/skill-theme-explainer.js +3 -1
- package/dist/skill-theme.js +5 -0
- package/dist/skills.d.ts +58 -1
- package/dist/skills.js +70 -36
- package/dist/templates/comment-cta.d.ts +0 -2
- package/dist/templates/comment-cta.js +0 -4
- package/dist/templates/index.d.ts +3 -3
- package/dist/templates/index.js +7 -17
- package/dist/templates/series-frame.d.ts +0 -2
- package/dist/templates/series-frame.js +0 -4
- package/dist/upscale.d.ts +120 -0
- package/dist/upscale.js +116 -0
- package/dist/voice-admission.d.ts +14 -0
- package/dist/voice-admission.js +9 -0
- package/dist/voice-listing.js +1 -1
- package/dist/voices.d.ts +1 -0
- package/dist/workflows/methods/faceless-explainer.d.ts +2 -0
- package/dist/workflows/methods/kinetic-launch.d.ts +4 -0
- package/dist/workflows/methods/product-image-story.d.ts +2 -0
- package/dist/workflows/methods/reference-remake.d.ts +2 -0
- package/dist/workflows/methods/shared.d.ts +2 -0
- package/dist/workflows/methods/ugc-faq-answer.d.ts +2 -0
- package/dist/workflows/methods/ugc-product-intro.d.ts +2 -0
- package/dist/workflows/methods/website-proof-demo.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const UPSCALE_QUOTE_PATH = "/v1/skills/upscale/quote";
|
|
3
|
+
export declare const UPSCALE_RUN_PATH = "/v1/skills/upscale/run";
|
|
4
|
+
export declare const UPSCALE_VIDEO_MODEL = "upscale-video";
|
|
5
|
+
export declare const UPSCALE_IMAGE_MODEL = "upscale-image";
|
|
6
|
+
export declare const UPSCALE_MODELS: readonly ["upscale-video", "upscale-image"];
|
|
7
|
+
export type UpscaleModel = (typeof UPSCALE_MODELS)[number];
|
|
8
|
+
export declare const isUpscaleModel: (model: string) => model is UpscaleModel;
|
|
9
|
+
export interface UpscaleVideoRow {
|
|
10
|
+
source: {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
unit_credits: number;
|
|
17
|
+
measured: boolean;
|
|
18
|
+
warning?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface UpscaleVideoCapability {
|
|
21
|
+
fps: number;
|
|
22
|
+
max_frames: number;
|
|
23
|
+
rows: readonly UpscaleVideoRow[];
|
|
24
|
+
}
|
|
25
|
+
export interface UpscaleImageCapability {
|
|
26
|
+
factor: 2;
|
|
27
|
+
media_types: readonly ("image/png" | "image/jpeg")[];
|
|
28
|
+
min_short_side: number;
|
|
29
|
+
max_long_side: number;
|
|
30
|
+
max_output_pixels: number;
|
|
31
|
+
unit_credits: number;
|
|
32
|
+
measured: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const UPSCALE_CAPABILITIES: {
|
|
35
|
+
readonly video: UpscaleVideoCapability;
|
|
36
|
+
readonly image: UpscaleImageCapability;
|
|
37
|
+
};
|
|
38
|
+
export declare function findUpscaleVideoRow(width: number, height: number): UpscaleVideoRow | null;
|
|
39
|
+
export declare function upscaleImageRefusal(width: number, height: number): string | null;
|
|
40
|
+
export declare const upscaleVideoUnits: (frames: number, fps: number) => number;
|
|
41
|
+
export declare function upscaledFromWarning(kind: "image" | "video", width: number, height: number): string;
|
|
42
|
+
export declare const upscaleSource: z.ZodUnion<readonly [z.ZodObject<{
|
|
43
|
+
run_id: z.ZodString;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
asset_id: z.ZodString;
|
|
46
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
47
|
+
upload_id: z.ZodString;
|
|
48
|
+
rights_confirmed: z.ZodLiteral<true>;
|
|
49
|
+
}, z.core.$strict>]>;
|
|
50
|
+
export type UpscaleSource = z.infer<typeof upscaleSource>;
|
|
51
|
+
export declare const upscaleRequest: z.ZodObject<{
|
|
52
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
53
|
+
run_id: z.ZodString;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
asset_id: z.ZodString;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
upload_id: z.ZodString;
|
|
58
|
+
rights_confirmed: z.ZodLiteral<true>;
|
|
59
|
+
}, z.core.$strict>]>;
|
|
60
|
+
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export type UpscaleRequest = z.infer<typeof upscaleRequest>;
|
|
63
|
+
export declare const upscaleQuote: z.ZodObject<{
|
|
64
|
+
skill: z.ZodEnum<{
|
|
65
|
+
generate_image: "generate_image";
|
|
66
|
+
generate_video: "generate_video";
|
|
67
|
+
}>;
|
|
68
|
+
kind: z.ZodEnum<{
|
|
69
|
+
image: "image";
|
|
70
|
+
video: "video";
|
|
71
|
+
}>;
|
|
72
|
+
model: z.ZodEnum<{
|
|
73
|
+
"upscale-image": "upscale-image";
|
|
74
|
+
"upscale-video": "upscale-video";
|
|
75
|
+
}>;
|
|
76
|
+
unit: z.ZodEnum<{
|
|
77
|
+
image: "image";
|
|
78
|
+
second: "second";
|
|
79
|
+
}>;
|
|
80
|
+
unit_credits: z.ZodNumber;
|
|
81
|
+
units: z.ZodNumber;
|
|
82
|
+
credits: z.ZodNumber;
|
|
83
|
+
width: z.ZodNumber;
|
|
84
|
+
height: z.ZodNumber;
|
|
85
|
+
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
86
|
+
upscaled_from: z.ZodObject<{
|
|
87
|
+
width: z.ZodNumber;
|
|
88
|
+
height: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
91
|
+
contract_version: z.ZodString;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export type UpscaleQuote = z.infer<typeof upscaleQuote>;
|
|
94
|
+
export declare const listedUpscale: z.ZodObject<{
|
|
95
|
+
video: z.ZodObject<{
|
|
96
|
+
fps: z.ZodNumber;
|
|
97
|
+
max_frames: z.ZodNumber;
|
|
98
|
+
unit: z.ZodLiteral<"second">;
|
|
99
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
100
|
+
from: z.ZodObject<{
|
|
101
|
+
width: z.ZodNumber;
|
|
102
|
+
height: z.ZodNumber;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
width: z.ZodNumber;
|
|
105
|
+
height: z.ZodNumber;
|
|
106
|
+
unit_credits: z.ZodNumber;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
110
|
+
unit: z.ZodLiteral<"image">;
|
|
111
|
+
factor: z.ZodNumber;
|
|
112
|
+
media_types: z.ZodArray<z.ZodString>;
|
|
113
|
+
min_short_side: z.ZodNumber;
|
|
114
|
+
max_long_side: z.ZodNumber;
|
|
115
|
+
max_output_pixels: z.ZodNumber;
|
|
116
|
+
unit_credits: z.ZodNumber;
|
|
117
|
+
}, z.core.$strict>>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
export type ListedUpscale = z.infer<typeof listedUpscale>;
|
|
120
|
+
export declare function listUpscale(): ListedUpscale;
|
package/dist/upscale.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { assetId } from "./asset-identity.js";
|
|
3
|
+
import { GENERATION_KINDS } from "./generations-output.js";
|
|
4
|
+
import { maxCreditsField } from "./max-credits.js";
|
|
5
|
+
import { runId } from "./runs.js";
|
|
6
|
+
import { uploadId } from "./uploads.js";
|
|
7
|
+
export const UPSCALE_QUOTE_PATH = "/v1/skills/upscale/quote";
|
|
8
|
+
export const UPSCALE_RUN_PATH = "/v1/skills/upscale/run";
|
|
9
|
+
export const UPSCALE_VIDEO_MODEL = "upscale-video";
|
|
10
|
+
export const UPSCALE_IMAGE_MODEL = "upscale-image";
|
|
11
|
+
export const UPSCALE_MODELS = [UPSCALE_VIDEO_MODEL, UPSCALE_IMAGE_MODEL];
|
|
12
|
+
export const isUpscaleModel = (model) => UPSCALE_MODELS.includes(model);
|
|
13
|
+
const row = (source, output, warning) => ({ source: { width: source[0], height: source[1] }, width: output[0], height: output[1], unit_credits: 2, measured: true,
|
|
14
|
+
...(warning === undefined ? {} : { warning }) });
|
|
15
|
+
export const UPSCALE_CAPABILITIES = deepFreeze({
|
|
16
|
+
video: {
|
|
17
|
+
fps: 24,
|
|
18
|
+
max_frames: 721,
|
|
19
|
+
rows: [
|
|
20
|
+
row([480, 854], [720, 1280]),
|
|
21
|
+
row([854, 480], [1280, 720]),
|
|
22
|
+
row([496, 864], [736, 1280], "the source is 2.1% off 9:16 and keeps its own shape at 736x1280; nothing is cropped"),
|
|
23
|
+
row([360, 640], [720, 1280]),
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
image: {
|
|
27
|
+
factor: 2,
|
|
28
|
+
media_types: ["image/png", "image/jpeg"],
|
|
29
|
+
min_short_side: 384,
|
|
30
|
+
max_long_side: 2048,
|
|
31
|
+
max_output_pixels: 16_000_000,
|
|
32
|
+
unit_credits: 4,
|
|
33
|
+
measured: true,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
function deepFreeze(value) {
|
|
37
|
+
if (value !== null && typeof value === "object" && !Object.isFrozen(value)) {
|
|
38
|
+
Object.freeze(value);
|
|
39
|
+
for (const inner of Object.values(value))
|
|
40
|
+
deepFreeze(inner);
|
|
41
|
+
}
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
export function findUpscaleVideoRow(width, height) {
|
|
45
|
+
return UPSCALE_CAPABILITIES.video.rows.find((one) => one.measured && one.source.width === width && one.source.height === height) ?? null;
|
|
46
|
+
}
|
|
47
|
+
export function upscaleImageRefusal(width, height) {
|
|
48
|
+
const rule = UPSCALE_CAPABILITIES.image;
|
|
49
|
+
if (Math.min(width, height) < rule.min_short_side)
|
|
50
|
+
return `its short side is under ${rule.min_short_side} px`;
|
|
51
|
+
if (Math.max(width, height) > rule.max_long_side)
|
|
52
|
+
return `its long side is over ${rule.max_long_side} px`;
|
|
53
|
+
if (width * rule.factor * height * rule.factor > rule.max_output_pixels)
|
|
54
|
+
return `doubled it would be over ${rule.max_output_pixels / 1_000_000} MP`;
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
export const upscaleVideoUnits = (frames, fps) => Math.max(1, Math.ceil((frames - 1) / fps));
|
|
58
|
+
export function upscaledFromWarning(kind, width, height) {
|
|
59
|
+
const lead = "upscaled from";
|
|
60
|
+
return `${lead} ${width}x${height}; the same ${kind === "video" ? "take" : "picture"}, larger — lettering the draft drew wrong stays wrong`;
|
|
61
|
+
}
|
|
62
|
+
const SOURCE_DESCRIPTION = "{run_id} of a delivered clip or picture, {asset_id} of a picture asset, or {upload_id, rights_confirmed: true}.";
|
|
63
|
+
export const upscaleSource = z.union([
|
|
64
|
+
z.strictObject({ run_id: runId }),
|
|
65
|
+
z.strictObject({ asset_id: assetId }),
|
|
66
|
+
z.strictObject({ upload_id: uploadId, rights_confirmed: z.literal(true) }),
|
|
67
|
+
]);
|
|
68
|
+
export const upscaleRequest = z.strictObject({
|
|
69
|
+
source: upscaleSource.describe(SOURCE_DESCRIPTION),
|
|
70
|
+
max_credits: maxCreditsField,
|
|
71
|
+
});
|
|
72
|
+
const size = z.strictObject({ width: z.number().int().positive(), height: z.number().int().positive() });
|
|
73
|
+
export const upscaleQuote = z.strictObject({
|
|
74
|
+
skill: z.enum(["generate_image", "generate_video"]),
|
|
75
|
+
kind: z.enum(GENERATION_KINDS),
|
|
76
|
+
model: z.enum(UPSCALE_MODELS),
|
|
77
|
+
unit: z.enum(["image", "second"]),
|
|
78
|
+
unit_credits: z.number().int().positive(),
|
|
79
|
+
units: z.number().int().positive(),
|
|
80
|
+
credits: z.number().int().positive(),
|
|
81
|
+
width: z.number().int().positive(),
|
|
82
|
+
height: z.number().int().positive(),
|
|
83
|
+
duration_s: z.number().int().positive().nullable(),
|
|
84
|
+
upscaled_from: size,
|
|
85
|
+
warnings: z.array(z.string()),
|
|
86
|
+
contract_version: z.string().min(1),
|
|
87
|
+
});
|
|
88
|
+
export const listedUpscale = z.strictObject({
|
|
89
|
+
video: z.strictObject({
|
|
90
|
+
fps: z.number().int().positive(),
|
|
91
|
+
max_frames: z.number().int().positive(),
|
|
92
|
+
unit: z.literal("second"),
|
|
93
|
+
rows: z.array(z.strictObject({ from: size, width: z.number().int().positive(), height: z.number().int().positive(),
|
|
94
|
+
unit_credits: z.number().int().positive() })),
|
|
95
|
+
}),
|
|
96
|
+
image: z.strictObject({
|
|
97
|
+
unit: z.literal("image"),
|
|
98
|
+
factor: z.number().int().positive(),
|
|
99
|
+
media_types: z.array(z.string().min(1)),
|
|
100
|
+
min_short_side: z.number().int().positive(),
|
|
101
|
+
max_long_side: z.number().int().positive(),
|
|
102
|
+
max_output_pixels: z.number().int().positive(),
|
|
103
|
+
unit_credits: z.number().int().positive(),
|
|
104
|
+
}).nullable(),
|
|
105
|
+
}).describe("What upscale takes: each measured clip size with the size it is lifted to, and the picture rule; each priced per second " +
|
|
106
|
+
"of the source or per picture.");
|
|
107
|
+
export function listUpscale() {
|
|
108
|
+
const { video, image } = UPSCALE_CAPABILITIES;
|
|
109
|
+
return {
|
|
110
|
+
video: { fps: video.fps, max_frames: video.max_frames, unit: "second",
|
|
111
|
+
rows: video.rows.filter((one) => one.measured).map((one) => ({ from: { ...one.source }, width: one.width, height: one.height,
|
|
112
|
+
unit_credits: one.unit_credits })) },
|
|
113
|
+
image: image.measured ? { unit: "image", factor: image.factor, media_types: [...image.media_types], min_short_side: image.min_short_side,
|
|
114
|
+
max_long_side: image.max_long_side, max_output_pixels: image.max_output_pixels, unit_credits: image.unit_credits } : null,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -4205,6 +4205,10 @@ export declare const serverUgcInput: z.ZodObject<{
|
|
|
4205
4205
|
"1080p": "1080p";
|
|
4206
4206
|
"720p": "720p";
|
|
4207
4207
|
}>>;
|
|
4208
|
+
presenter_engine: z.ZodOptional<z.ZodEnum<{
|
|
4209
|
+
avatar6_turbo: "avatar6_turbo";
|
|
4210
|
+
avatar_iv: "avatar_iv";
|
|
4211
|
+
}>>;
|
|
4208
4212
|
voice: z.ZodOptional<z.ZodString>;
|
|
4209
4213
|
voice_id: z.ZodOptional<z.ZodString>;
|
|
4210
4214
|
tts_model: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4215,6 +4219,7 @@ export declare const serverUgcInput: z.ZodObject<{
|
|
|
4215
4219
|
"gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
|
|
4216
4220
|
}>>;
|
|
4217
4221
|
voice_pace: z.ZodOptional<z.ZodNumber>;
|
|
4222
|
+
voice_run_id: z.ZodOptional<z.ZodString>;
|
|
4218
4223
|
pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
4219
4224
|
sentence_end_s: z.ZodOptional<z.ZodNumber>;
|
|
4220
4225
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7544,6 +7549,15 @@ export declare const serverFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7544
7549
|
moves: z.ZodOptional<z.ZodNever>;
|
|
7545
7550
|
pause_trim: z.ZodOptional<z.ZodNever>;
|
|
7546
7551
|
}, z.core.$strict>], "input_mode">;
|
|
7552
|
+
export declare function filmVoiceRefusal(voice: string, options?: {
|
|
7553
|
+
serviceVoices?: boolean;
|
|
7554
|
+
}): string | undefined;
|
|
7555
|
+
export declare function serverFilmVoiceInputWith(voiceRefusal: (voice: string) => string | undefined): z.ZodObject<{
|
|
7556
|
+
text: z.ZodString;
|
|
7557
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
7558
|
+
cut_id: z.ZodOptional<z.ZodString>;
|
|
7559
|
+
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
7560
|
+
}, z.core.$strict>;
|
|
7547
7561
|
export declare function voiceGenderOf(voice: string, voices?: readonly CatalogFileVoice[]): Gender | undefined;
|
|
7548
7562
|
export declare function buildVoiceVerificationWarnings(input: {
|
|
7549
7563
|
voice?: string | undefined;
|
package/dist/voice-admission.js
CHANGED
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { serverUgcInputWith } from "./skills.js";
|
|
3
3
|
import { makeFacelessInput } from "./faceless-public.js";
|
|
4
4
|
import { isFacelessVoiceName } from "./faceless-voices.js";
|
|
5
|
+
import { filmVoiceInput } from "./own-agent-runs.js";
|
|
5
6
|
import { normalizeVoiceLabel } from "./voice-catalog.js";
|
|
6
7
|
import { VOICE_CATALOG } from "./voice-catalog-data.js";
|
|
7
8
|
import { vendorVerifiedModels } from "./voice-listing.js";
|
|
@@ -46,6 +47,14 @@ export function facelessVoiceRefusal(voice, voices = VOICE_CATALOG.voices) {
|
|
|
46
47
|
return `unknown voice "${voice}": call list_voices with skill=make_faceless for the voice names make_faceless accepts`;
|
|
47
48
|
}
|
|
48
49
|
export const serverFacelessInput = makeFacelessInput.refine((input) => input.voice === undefined || facelessVoiceRefusal(input.voice) === undefined, { path: ["voice"], error: (issue) => facelessVoiceRefusal(issue.input.voice) });
|
|
50
|
+
export function filmVoiceRefusal(voice, options = {}) {
|
|
51
|
+
if (options.serviceVoices === true && !isVoicePresetName(voice) && voicePresetOf(voice) !== undefined)
|
|
52
|
+
return undefined;
|
|
53
|
+
return facelessVoiceRefusal(voice);
|
|
54
|
+
}
|
|
55
|
+
export function serverFilmVoiceInputWith(voiceRefusal) {
|
|
56
|
+
return filmVoiceInput.refine((input) => input.voice === undefined || voiceRefusal(input.voice) === undefined, { path: ["voice"], error: (issue) => voiceRefusal(issue.input.voice) });
|
|
57
|
+
}
|
|
49
58
|
export function voiceGenderOf(voice, voices = VOICE_CATALOG.voices) {
|
|
50
59
|
const preset = voicePresetOf(voice);
|
|
51
60
|
if (preset !== undefined)
|
package/dist/voice-listing.js
CHANGED
|
@@ -28,7 +28,7 @@ const presentText = (raw) => raw?.trim() || undefined;
|
|
|
28
28
|
export function listVoices(query, catalog = VOICE_CATALOG, modelLanguages = TTS_MODEL_LANGUAGES, servicePresets = {}) {
|
|
29
29
|
const languagesOf = (id) => modelLanguages.models.find((model) => model.id === id)?.languages ?? [...(MEASURED_MODEL_LANGUAGES[id] ?? [])];
|
|
30
30
|
const supportedModels = (language) => ELEVENLABS_TTS_MODELS.filter((id) => languagesOf(id).includes(language));
|
|
31
|
-
const presets = [...Object.entries(VOICE_PRESETS), ...Object.entries(servicePresets)].map(([name, preset]) => ({
|
|
31
|
+
const presets = [...Object.entries(VOICE_PRESETS), ...Object.entries(servicePresets)].map(([name, { tempo: _tempo, ...preset }]) => ({
|
|
32
32
|
name,
|
|
33
33
|
kind: "preset",
|
|
34
34
|
skill: "make_ugc",
|
package/dist/voices.d.ts
CHANGED
|
@@ -225,10 +225,12 @@ export declare const facelessExplainer: {
|
|
|
225
225
|
look: "commercial" | "natural" | "raw_iphone";
|
|
226
226
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
227
227
|
resolution?: "1080p" | "720p" | undefined;
|
|
228
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
228
229
|
voice?: string | undefined;
|
|
229
230
|
voice_id?: string | undefined;
|
|
230
231
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
231
232
|
voice_pace?: number | undefined;
|
|
233
|
+
voice_run_id?: string | undefined;
|
|
232
234
|
pause_trim?: false | {
|
|
233
235
|
sentence_end_s?: number | undefined;
|
|
234
236
|
comma_s?: number | undefined;
|
|
@@ -225,10 +225,12 @@ export declare const kineticLaunch: {
|
|
|
225
225
|
look: "commercial" | "natural" | "raw_iphone";
|
|
226
226
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
227
227
|
resolution?: "1080p" | "720p" | undefined;
|
|
228
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
228
229
|
voice?: string | undefined;
|
|
229
230
|
voice_id?: string | undefined;
|
|
230
231
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
231
232
|
voice_pace?: number | undefined;
|
|
233
|
+
voice_run_id?: string | undefined;
|
|
232
234
|
pause_trim?: false | {
|
|
233
235
|
sentence_end_s?: number | undefined;
|
|
234
236
|
comma_s?: number | undefined;
|
|
@@ -4425,10 +4427,12 @@ export declare const kineticLaunchFilm: {
|
|
|
4425
4427
|
look: "commercial" | "natural" | "raw_iphone";
|
|
4426
4428
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
4427
4429
|
resolution?: "1080p" | "720p" | undefined;
|
|
4430
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
4428
4431
|
voice?: string | undefined;
|
|
4429
4432
|
voice_id?: string | undefined;
|
|
4430
4433
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
4431
4434
|
voice_pace?: number | undefined;
|
|
4435
|
+
voice_run_id?: string | undefined;
|
|
4432
4436
|
pause_trim?: false | {
|
|
4433
4437
|
sentence_end_s?: number | undefined;
|
|
4434
4438
|
comma_s?: number | undefined;
|
|
@@ -225,10 +225,12 @@ export declare const productImageStory: {
|
|
|
225
225
|
look: "commercial" | "natural" | "raw_iphone";
|
|
226
226
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
227
227
|
resolution?: "1080p" | "720p" | undefined;
|
|
228
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
228
229
|
voice?: string | undefined;
|
|
229
230
|
voice_id?: string | undefined;
|
|
230
231
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
231
232
|
voice_pace?: number | undefined;
|
|
233
|
+
voice_run_id?: string | undefined;
|
|
232
234
|
pause_trim?: false | {
|
|
233
235
|
sentence_end_s?: number | undefined;
|
|
234
236
|
comma_s?: number | undefined;
|
|
@@ -225,10 +225,12 @@ export declare const referenceRemake: {
|
|
|
225
225
|
look: "commercial" | "natural" | "raw_iphone";
|
|
226
226
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
227
227
|
resolution?: "1080p" | "720p" | undefined;
|
|
228
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
228
229
|
voice?: string | undefined;
|
|
229
230
|
voice_id?: string | undefined;
|
|
230
231
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
231
232
|
voice_pace?: number | undefined;
|
|
233
|
+
voice_run_id?: string | undefined;
|
|
232
234
|
pause_trim?: false | {
|
|
233
235
|
sentence_end_s?: number | undefined;
|
|
234
236
|
comma_s?: number | undefined;
|
|
@@ -244,10 +244,12 @@ export declare function defineWorkflowMethod(value: MethodDescriptorArgs): {
|
|
|
244
244
|
look: "commercial" | "natural" | "raw_iphone";
|
|
245
245
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
246
246
|
resolution?: "1080p" | "720p" | undefined;
|
|
247
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
247
248
|
voice?: string | undefined;
|
|
248
249
|
voice_id?: string | undefined;
|
|
249
250
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
250
251
|
voice_pace?: number | undefined;
|
|
252
|
+
voice_run_id?: string | undefined;
|
|
251
253
|
pause_trim?: false | {
|
|
252
254
|
sentence_end_s?: number | undefined;
|
|
253
255
|
comma_s?: number | undefined;
|
|
@@ -225,10 +225,12 @@ export declare const ugcFaqAnswer: {
|
|
|
225
225
|
look: "commercial" | "natural" | "raw_iphone";
|
|
226
226
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
227
227
|
resolution?: "1080p" | "720p" | undefined;
|
|
228
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
228
229
|
voice?: string | undefined;
|
|
229
230
|
voice_id?: string | undefined;
|
|
230
231
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
231
232
|
voice_pace?: number | undefined;
|
|
233
|
+
voice_run_id?: string | undefined;
|
|
232
234
|
pause_trim?: false | {
|
|
233
235
|
sentence_end_s?: number | undefined;
|
|
234
236
|
comma_s?: number | undefined;
|
|
@@ -225,10 +225,12 @@ export declare const ugcProductIntro: {
|
|
|
225
225
|
look: "commercial" | "natural" | "raw_iphone";
|
|
226
226
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
227
227
|
resolution?: "1080p" | "720p" | undefined;
|
|
228
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
228
229
|
voice?: string | undefined;
|
|
229
230
|
voice_id?: string | undefined;
|
|
230
231
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
231
232
|
voice_pace?: number | undefined;
|
|
233
|
+
voice_run_id?: string | undefined;
|
|
232
234
|
pause_trim?: false | {
|
|
233
235
|
sentence_end_s?: number | undefined;
|
|
234
236
|
comma_s?: number | undefined;
|
|
@@ -225,10 +225,12 @@ export declare const websiteProofDemo: {
|
|
|
225
225
|
look: "commercial" | "natural" | "raw_iphone";
|
|
226
226
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
227
227
|
resolution?: "1080p" | "720p" | undefined;
|
|
228
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
228
229
|
voice?: string | undefined;
|
|
229
230
|
voice_id?: string | undefined;
|
|
230
231
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
231
232
|
voice_pace?: number | undefined;
|
|
233
|
+
voice_run_id?: string | undefined;
|
|
232
234
|
pause_trim?: false | {
|
|
233
235
|
sentence_end_s?: number | undefined;
|
|
234
236
|
comma_s?: number | undefined;
|
|
@@ -4425,10 +4427,12 @@ export declare const websiteProofDemoFilm: {
|
|
|
4425
4427
|
look: "commercial" | "natural" | "raw_iphone";
|
|
4426
4428
|
aspect_ratio?: "16:9" | "1:1" | "9:16" | undefined;
|
|
4427
4429
|
resolution?: "1080p" | "720p" | undefined;
|
|
4430
|
+
presenter_engine?: "avatar6_turbo" | "avatar_iv" | undefined;
|
|
4428
4431
|
voice?: string | undefined;
|
|
4429
4432
|
voice_id?: string | undefined;
|
|
4430
4433
|
tts_model?: "eleven_flash_v2_5" | "eleven_turbo_v2_5" | "eleven_v3" | "eleven_v4" | "gemini-3.8-flash-tts" | undefined;
|
|
4431
4434
|
voice_pace?: number | undefined;
|
|
4435
|
+
voice_run_id?: string | undefined;
|
|
4432
4436
|
pause_trim?: false | {
|
|
4433
4437
|
sentence_end_s?: number | undefined;
|
|
4434
4438
|
comma_s?: number | undefined;
|