@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
|
@@ -556,6 +556,7 @@ export declare const workflowLaunchResponse: z.ZodObject<{
|
|
|
556
556
|
presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
|
|
557
557
|
heygen: z.ZodNumber;
|
|
558
558
|
omnihuman: z.ZodNumber;
|
|
559
|
+
heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
|
|
559
560
|
}, z.core.$strict>>;
|
|
560
561
|
shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
561
562
|
shot_talking_action: z.ZodNumber;
|
|
@@ -657,6 +658,11 @@ export declare const workflowLaunchResponse: z.ZodObject<{
|
|
|
657
658
|
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
658
659
|
reusable_until: z.ZodString;
|
|
659
660
|
thumbnail_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
661
|
+
upscaled_from: z.ZodOptional<z.ZodObject<{
|
|
662
|
+
ref: z.ZodString;
|
|
663
|
+
width: z.ZodNumber;
|
|
664
|
+
height: z.ZodNumber;
|
|
665
|
+
}, z.core.$strict>>;
|
|
660
666
|
}, z.core.$strict>>;
|
|
661
667
|
resolved_broll_policy: z.ZodOptional<z.ZodEnum<{
|
|
662
668
|
anyone: "anyone";
|
|
@@ -846,6 +852,11 @@ export declare const workflowNativeRunRead: z.ZodObject<{
|
|
|
846
852
|
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
847
853
|
reusable_until: z.ZodString;
|
|
848
854
|
thumbnail_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
855
|
+
upscaled_from: z.ZodOptional<z.ZodObject<{
|
|
856
|
+
ref: z.ZodString;
|
|
857
|
+
width: z.ZodNumber;
|
|
858
|
+
height: z.ZodNumber;
|
|
859
|
+
}, z.core.$strict>>;
|
|
849
860
|
}, z.core.$strict>>;
|
|
850
861
|
warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
851
862
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -1109,6 +1120,11 @@ export declare const workflowLaunchResponseRead: z.ZodObject<{
|
|
|
1109
1120
|
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
1110
1121
|
reusable_until: z.ZodString;
|
|
1111
1122
|
thumbnail_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1123
|
+
upscaled_from: z.ZodOptional<z.ZodObject<{
|
|
1124
|
+
ref: z.ZodString;
|
|
1125
|
+
width: z.ZodNumber;
|
|
1126
|
+
height: z.ZodNumber;
|
|
1127
|
+
}, z.core.$strict>>;
|
|
1112
1128
|
}, z.core.$strict>>;
|
|
1113
1129
|
warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1114
1130
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -1170,6 +1170,10 @@ export declare const workflowPlanDocument: z.ZodObject<{
|
|
|
1170
1170
|
"1080p": "1080p";
|
|
1171
1171
|
"720p": "720p";
|
|
1172
1172
|
}>>;
|
|
1173
|
+
presenter_engine: z.ZodOptional<z.ZodEnum<{
|
|
1174
|
+
avatar6_turbo: "avatar6_turbo";
|
|
1175
|
+
avatar_iv: "avatar_iv";
|
|
1176
|
+
}>>;
|
|
1173
1177
|
voice: z.ZodOptional<z.ZodString>;
|
|
1174
1178
|
voice_id: z.ZodOptional<z.ZodString>;
|
|
1175
1179
|
tts_model: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1180,6 +1184,7 @@ export declare const workflowPlanDocument: z.ZodObject<{
|
|
|
1180
1184
|
"gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
|
|
1181
1185
|
}>>;
|
|
1182
1186
|
voice_pace: z.ZodOptional<z.ZodNumber>;
|
|
1187
|
+
voice_run_id: z.ZodOptional<z.ZodString>;
|
|
1183
1188
|
pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
1184
1189
|
sentence_end_s: z.ZodOptional<z.ZodNumber>;
|
|
1185
1190
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
@@ -9844,6 +9849,10 @@ export declare const createWorkflowPlan: z.ZodObject<{
|
|
|
9844
9849
|
"1080p": "1080p";
|
|
9845
9850
|
"720p": "720p";
|
|
9846
9851
|
}>>;
|
|
9852
|
+
presenter_engine: z.ZodOptional<z.ZodEnum<{
|
|
9853
|
+
avatar6_turbo: "avatar6_turbo";
|
|
9854
|
+
avatar_iv: "avatar_iv";
|
|
9855
|
+
}>>;
|
|
9847
9856
|
voice: z.ZodOptional<z.ZodString>;
|
|
9848
9857
|
voice_id: z.ZodOptional<z.ZodString>;
|
|
9849
9858
|
tts_model: z.ZodOptional<z.ZodEnum<{
|
|
@@ -9854,6 +9863,7 @@ export declare const createWorkflowPlan: z.ZodObject<{
|
|
|
9854
9863
|
"gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
|
|
9855
9864
|
}>>;
|
|
9856
9865
|
voice_pace: z.ZodOptional<z.ZodNumber>;
|
|
9866
|
+
voice_run_id: z.ZodOptional<z.ZodString>;
|
|
9857
9867
|
pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
9858
9868
|
sentence_end_s: z.ZodOptional<z.ZodNumber>;
|
|
9859
9869
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18416,6 +18426,10 @@ export declare const saveWorkflowPlan: z.ZodObject<{
|
|
|
18416
18426
|
"1080p": "1080p";
|
|
18417
18427
|
"720p": "720p";
|
|
18418
18428
|
}>>;
|
|
18429
|
+
presenter_engine: z.ZodOptional<z.ZodEnum<{
|
|
18430
|
+
avatar6_turbo: "avatar6_turbo";
|
|
18431
|
+
avatar_iv: "avatar_iv";
|
|
18432
|
+
}>>;
|
|
18419
18433
|
voice: z.ZodOptional<z.ZodString>;
|
|
18420
18434
|
voice_id: z.ZodOptional<z.ZodString>;
|
|
18421
18435
|
tts_model: z.ZodOptional<z.ZodEnum<{
|
|
@@ -18426,6 +18440,7 @@ export declare const saveWorkflowPlan: z.ZodObject<{
|
|
|
18426
18440
|
"gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
|
|
18427
18441
|
}>>;
|
|
18428
18442
|
voice_pace: z.ZodOptional<z.ZodNumber>;
|
|
18443
|
+
voice_run_id: z.ZodOptional<z.ZodString>;
|
|
18429
18444
|
pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
18430
18445
|
sentence_end_s: z.ZodOptional<z.ZodNumber>;
|
|
18431
18446
|
comma_s: z.ZodOptional<z.ZodNumber>;
|
|
@@ -383,6 +383,7 @@ export declare const workflowRun: z.ZodObject<{
|
|
|
383
383
|
presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
|
|
384
384
|
heygen: z.ZodNumber;
|
|
385
385
|
omnihuman: z.ZodNumber;
|
|
386
|
+
heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
|
|
386
387
|
}, z.core.$strict>>;
|
|
387
388
|
shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
388
389
|
shot_talking_action: z.ZodNumber;
|
|
@@ -484,6 +485,11 @@ export declare const workflowRun: z.ZodObject<{
|
|
|
484
485
|
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
485
486
|
reusable_until: z.ZodString;
|
|
486
487
|
thumbnail_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
488
|
+
upscaled_from: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
ref: z.ZodString;
|
|
490
|
+
width: z.ZodNumber;
|
|
491
|
+
height: z.ZodNumber;
|
|
492
|
+
}, z.core.$strict>>;
|
|
487
493
|
}, z.core.$strict>>;
|
|
488
494
|
resolved_broll_policy: z.ZodOptional<z.ZodEnum<{
|
|
489
495
|
anyone: "anyone";
|
|
@@ -831,6 +837,11 @@ export declare const workflowRunRead: z.ZodObject<{
|
|
|
831
837
|
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
832
838
|
reusable_until: z.ZodString;
|
|
833
839
|
thumbnail_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
840
|
+
upscaled_from: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
ref: z.ZodString;
|
|
842
|
+
width: z.ZodNumber;
|
|
843
|
+
height: z.ZodNumber;
|
|
844
|
+
}, z.core.$strict>>;
|
|
834
845
|
}, z.core.$strict>>;
|
|
835
846
|
warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
836
847
|
error: z.ZodNullable<z.ZodString>;
|
package/dist/cuts.js
CHANGED
|
@@ -22,8 +22,8 @@ export const facelessBrief = z.strictObject({
|
|
|
22
22
|
});
|
|
23
23
|
export const cutSlot = z.strictObject({
|
|
24
24
|
id: cutSlotId,
|
|
25
|
-
needs: z.enum(CUT_SLOT_NEEDS).describe("take: a clip made with generate_video
|
|
26
|
-
"text card; footage: the user's own video
|
|
25
|
+
needs: z.enum(CUT_SLOT_NEEDS).describe("take: a clip made with generate_video from its picture; picture: a picture; card: a " +
|
|
26
|
+
"text card; footage: the user's own video"),
|
|
27
27
|
shot: z.string().trim().min(1).max(500).describe("What the shot shows, in a line, and the words it plays on"),
|
|
28
28
|
});
|
|
29
29
|
const slots = z.array(cutSlot).min(1).max(CUT_MAX_SLOTS)
|
package/dist/edit-music.js
CHANGED
|
@@ -64,15 +64,15 @@ export const EDIT_MUSIC_MIN_SECONDS = 3, EDIT_MUSIC_LONGEST_FADE_OUT = 5, EDIT_M
|
|
|
64
64
|
export const editMusic = z.strictObject({
|
|
65
65
|
track: z.enum(EDIT_MUSIC_TRACK_NAMES).optional().describe("A bed from our library, free: its id from list_template_sounds (music_beds, with " +
|
|
66
66
|
"genre, energy, tempo and length)"),
|
|
67
|
-
generate: musicRequest.optional().describe('Instead of track, only when no library bed fits: a track made for this
|
|
68
|
-
'delivery: "auto" takes the mood from the
|
|
67
|
+
generate: musicRequest.optional().describe('Instead of track, only when no library bed fits: a track made for this video by AI, paid on ' +
|
|
68
|
+
'delivery: "auto" takes the mood from the video\'s own text (its voice and captions), { mood } says it in your words, such as "moody deep house"; it may ' +
|
|
69
69
|
"carry an invisible watermark"),
|
|
70
70
|
volume: z.number().min(EDIT_MUSIC_MIN_VOLUME_DB).max(EDIT_MUSIC_MAX_VOLUME_DB).default(0)
|
|
71
71
|
.describe("dB from the music's own level, against the voice and the clips' own sound: 0 plays it at full level where no voice " +
|
|
72
|
-
"speaks, -6 half as loud. Every
|
|
73
|
-
at: z.number().min(0).max(600).default(0).describe("The second of the
|
|
72
|
+
"speaks, -6 half as loud. Every video is delivered at one loudness, so music with nothing else to sound under plays the same at any volume"),
|
|
73
|
+
at: z.number().min(0).max(600).default(0).describe("The second of the video the music starts at"),
|
|
74
74
|
fade_out: z.number().min(0).max(EDIT_MUSIC_LONGEST_FADE_OUT).default(EDIT_MUSIC_DEFAULT_FADE_OUT)
|
|
75
|
-
.describe("Seconds the music fades out over at the
|
|
75
|
+
.describe("Seconds the music fades out over at the video's end"),
|
|
76
76
|
duck: z.boolean().optional().describe("With voice: true (the default) lowers the music under each spoken line and lifts it between them; " +
|
|
77
77
|
"false keeps it low under the whole voice"),
|
|
78
78
|
}).refine(music => (music.track === undefined) !== (music.generate === undefined), "music takes one source: track or generate");
|
package/dist/endpoint-notes.js
CHANGED
|
@@ -108,4 +108,6 @@ export const ENDPOINT_NOTES = {
|
|
|
108
108
|
"POST /v1/skills/generate_image/run": "Starts one image generation and answers at once with a run_id; the run's generation block holds the image once delivered. A failed generation is charged nothing. While generations are closed it answers generations_disabled and charges nothing.",
|
|
109
109
|
"POST /v1/skills/generate_video/quote": "Prices one clip with this request, silent unless audio is set: credits per second times its duration, width, height and warnings. Charges nothing.",
|
|
110
110
|
"POST /v1/skills/generate_video/run": "Starts one clip generation and answers at once with a run_id; the run's generation block holds the clip once delivered. A failed generation is charged nothing. While generations are closed it answers generations_disabled and charges nothing.",
|
|
111
|
+
"POST /v1/skills/upscale/quote": "Prices one upscale of a delivered clip or picture: credits, the output width and height, the source size and warnings. Charges nothing.",
|
|
112
|
+
"POST /v1/skills/upscale/run": "Starts one upscale and answers at once with a run_id of skill generate_video or generate_image; its generation block holds the larger file once delivered. The same take, larger: lettering the draft drew wrong stays wrong. A failed upscale is charged nothing.",
|
|
111
113
|
};
|
package/dist/endpoints.js
CHANGED
|
@@ -15,6 +15,7 @@ import { AD_GUIDE_PATH } from "./ad-guide.js";
|
|
|
15
15
|
import { AD_PATH, ADS_PATH } from "./ads.js";
|
|
16
16
|
import { FILM_EDITS_PATH, FILM_EDITS_QUOTE_PATH, FILM_HEROES_PATH, FILM_HEROES_QUOTE_PATH, FILM_RENDERS_PATH, FILM_RENDERS_QUOTE_PATH, FILM_RUN_PATH, FILM_STILLS_PATH, FILM_STILLS_QUOTE_PATH, FILM_VOICES_PATH, FILM_VOICES_QUOTE_PATH, TAKE_CHECKS_PATH, TAKE_CHECKS_QUOTE_PATH, TAKE_FRAMES_PATH, TAKE_FRAMES_QUOTE_PATH } from "./own-agent-runs.js";
|
|
17
17
|
import { GENERATION_MODELS_PATH } from "./generations.js";
|
|
18
|
+
import { UPSCALE_QUOTE_PATH, UPSCALE_RUN_PATH } from "./upscale.js";
|
|
18
19
|
import { PRICES_PATH } from "./prices.js";
|
|
19
20
|
import { REFERENCE_ANALYSES_PATH, REFERENCE_ANALYSIS_PATH, REFERENCE_ANALYSIS_QUOTE_PATH } from "./reference-analysis.js";
|
|
20
21
|
import { RUN_MEDIA_PATH } from "./run-media.js";
|
|
@@ -94,6 +95,8 @@ export const API_ENDPOINTS = [
|
|
|
94
95
|
{ method: "POST", path: "/v1/skills/generate_image/run", billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
95
96
|
{ method: "POST", path: "/v1/skills/generate_video/quote", billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
96
97
|
{ method: "POST", path: "/v1/skills/generate_video/run", billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
98
|
+
{ method: "POST", path: UPSCALE_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
99
|
+
{ method: "POST", path: UPSCALE_RUN_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
|
|
97
100
|
{ method: "POST", path: REFERENCE_ANALYSIS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
98
101
|
{ method: "POST", path: REFERENCE_ANALYSES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
|
|
99
102
|
{ method: "GET", path: REFERENCE_ANALYSIS_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type
|
|
2
|
+
import { type DiyNext } from "./diy-next.js";
|
|
3
3
|
import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
|
|
4
4
|
export declare const apiError: z.ZodObject<{
|
|
5
5
|
error: z.ZodObject<{
|
|
@@ -68,33 +68,6 @@ export declare const accountNotAdmittedError: z.ZodObject<{
|
|
|
68
68
|
}, z.core.$strip>;
|
|
69
69
|
}, z.core.$strip>;
|
|
70
70
|
export type AccountNotAdmittedError = z.infer<typeof accountNotAdmittedError>;
|
|
71
|
-
export declare const takeUncheckedError: z.ZodObject<{
|
|
72
|
-
error: z.ZodObject<{
|
|
73
|
-
code: z.ZodLiteral<"take_unchecked">;
|
|
74
|
-
message: z.ZodString;
|
|
75
|
-
next: z.ZodObject<{
|
|
76
|
-
action: z.ZodString;
|
|
77
|
-
method: z.ZodEnum<{
|
|
78
|
-
GET: "GET";
|
|
79
|
-
POST: "POST";
|
|
80
|
-
}>;
|
|
81
|
-
path: z.ZodString;
|
|
82
|
-
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
83
|
-
add: z.ZodArray<z.ZodString>;
|
|
84
|
-
note: z.ZodString;
|
|
85
|
-
}, z.core.$strict>;
|
|
86
|
-
blocked: z.ZodObject<{
|
|
87
|
-
reason: z.ZodString;
|
|
88
|
-
unblock: z.ZodString;
|
|
89
|
-
}, z.core.$strict>;
|
|
90
|
-
}, z.core.$strip>;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
export type TakeUncheckedError = z.infer<typeof takeUncheckedError>;
|
|
93
|
-
export declare function takeUncheckedBody(args: {
|
|
94
|
-
message: string;
|
|
95
|
-
next: DiyNext;
|
|
96
|
-
blocked: DiyBlocked;
|
|
97
|
-
}): TakeUncheckedError;
|
|
98
71
|
export declare function insufficientCreditsBody(args: {
|
|
99
72
|
balanceCredits: number;
|
|
100
73
|
requiredCredits: number;
|
|
@@ -271,7 +244,7 @@ export type EditCeilingReachedError = z.infer<typeof editCeilingReachedError>;
|
|
|
271
244
|
export declare function editCeilingReachedBody(args: Omit<EditCeilingReachedError["error"], "code" | "message">, counting?: "revision" | "candidate"): EditCeilingReachedError;
|
|
272
245
|
export declare function unusableSourceMessage(errorClass: string, detail: string): string;
|
|
273
246
|
export declare const MALFORMED_BODY_MESSAGE: string;
|
|
274
|
-
declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "ad_limited", "ad_not_found", "ad_slot_in_use", "ad_slot_unchecked", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "cut_limited", "cut_not_found", "cut_preview_limited", "cut_slot_in_use", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_asset_not_ready", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_hero_limited", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "take_check_limited", "take_frames_limited", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
|
|
247
|
+
declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "ad_limited", "ad_not_found", "ad_slot_in_use", "ad_slot_unchecked", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "cut_busy", "cut_limited", "cut_not_found", "cut_preview_limited", "cut_slot_in_use", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_asset_not_ready", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_hero_limited", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "take_check_limited", "take_frames_limited", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
|
|
275
248
|
export type BareApiErrorCode = (typeof BARE_ERROR_CODES)[number];
|
|
276
249
|
export declare const API_ERROR_CODES: readonly string[];
|
|
277
250
|
export declare function apiErrorBody(args: {
|
package/dist/errors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { diyNext } from "./diy-next.js";
|
|
3
3
|
import { EDIT_ISSUE_CODES } from "./edit-validate.js";
|
|
4
4
|
import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
|
|
5
5
|
import { actorCreationLimitedError, rateLimitedError } from "./rate-limit.js";
|
|
@@ -54,17 +54,6 @@ export const accountNotAdmittedError = z.object({
|
|
|
54
54
|
message: z.string().min(1),
|
|
55
55
|
}),
|
|
56
56
|
});
|
|
57
|
-
export const takeUncheckedError = z.object({
|
|
58
|
-
error: z.object({
|
|
59
|
-
code: z.literal("take_unchecked"),
|
|
60
|
-
message: z.string().min(1),
|
|
61
|
-
next: diyNext,
|
|
62
|
-
blocked: diyBlocked,
|
|
63
|
-
}),
|
|
64
|
-
});
|
|
65
|
-
export function takeUncheckedBody(args) {
|
|
66
|
-
return takeUncheckedError.parse({ error: { code: "take_unchecked", ...args } });
|
|
67
|
-
}
|
|
68
57
|
export function insufficientCreditsBody(args) {
|
|
69
58
|
return insufficientCreditsError.parse({
|
|
70
59
|
error: {
|
|
@@ -314,6 +303,7 @@ const BARE_ERROR_CODES = [
|
|
|
314
303
|
"creator_profile_limited",
|
|
315
304
|
"creator_profile_not_found",
|
|
316
305
|
"creator_url_unsupported",
|
|
306
|
+
"cut_busy",
|
|
317
307
|
"cut_limited",
|
|
318
308
|
"cut_not_found",
|
|
319
309
|
"cut_preview_limited",
|
|
@@ -389,7 +379,6 @@ export const API_ERROR_CODES = [
|
|
|
389
379
|
scriptEncodingLostError.shape.error.shape.code.value,
|
|
390
380
|
insufficientCreditsError.shape.error.shape.code.value,
|
|
391
381
|
maxCreditsExceededError.shape.error.shape.code.value,
|
|
392
|
-
takeUncheckedError.shape.error.shape.code.value,
|
|
393
382
|
debtOutstandingError.shape.error.shape.code.value,
|
|
394
383
|
accountNotAdmittedError.shape.error.shape.code.value,
|
|
395
384
|
editConflictError.shape.error.shape.code.value,
|
package/dist/face-billing.d.ts
CHANGED
|
@@ -6,13 +6,16 @@ export declare const faceBillingIntervalSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strict>>;
|
|
7
7
|
export declare const PRESENTER_ENGINES: readonly ["heygen", "omnihuman"];
|
|
8
8
|
export type PresenterEngine = (typeof PRESENTER_ENGINES)[number];
|
|
9
|
+
export declare const SHORT_PRESENTER_ENGINES: readonly ["heygen", "omnihuman", "heygen_avatar6_turbo"];
|
|
10
|
+
export type ShortPresenterEngine = (typeof SHORT_PRESENTER_ENGINES)[number];
|
|
9
11
|
export declare const presenterRatesSchema: z.ZodReadonly<z.ZodObject<{
|
|
10
12
|
heygen: z.ZodNumber;
|
|
11
13
|
omnihuman: z.ZodNumber;
|
|
14
|
+
heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
|
|
12
15
|
}, z.core.$strict>>;
|
|
13
16
|
export declare const SHOT_ENGINES: readonly ["shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
|
|
14
17
|
export type ShotEngine = (typeof SHOT_ENGINES)[number];
|
|
15
|
-
export declare const TAKE_ENGINES: readonly ["heygen", "omnihuman", "shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
|
|
18
|
+
export declare const TAKE_ENGINES: readonly ["heygen", "omnihuman", "heygen_avatar6_turbo", "shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
|
|
16
19
|
export type TakeEngine = (typeof TAKE_ENGINES)[number];
|
|
17
20
|
export declare const shotRatesSchema: z.ZodReadonly<z.ZodObject<{
|
|
18
21
|
shot_talking_action: z.ZodNumber;
|
|
@@ -31,6 +34,7 @@ export declare const partsFaceTariffSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
31
34
|
presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
|
|
32
35
|
heygen: z.ZodNumber;
|
|
33
36
|
omnihuman: z.ZodNumber;
|
|
37
|
+
heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
|
|
34
38
|
}, z.core.$strict>>;
|
|
35
39
|
shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
36
40
|
shot_talking_action: z.ZodNumber;
|
|
@@ -65,6 +69,7 @@ export declare const faceBillingTariffSchema: z.ZodUnion<readonly [z.ZodReadonly
|
|
|
65
69
|
presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
|
|
66
70
|
heygen: z.ZodNumber;
|
|
67
71
|
omnihuman: z.ZodNumber;
|
|
72
|
+
heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
|
|
68
73
|
}, z.core.$strict>>;
|
|
69
74
|
shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
70
75
|
shot_talking_action: z.ZodNumber;
|
|
@@ -106,6 +111,7 @@ export declare const faceBillingPlanContentSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
106
111
|
seedance: "seedance";
|
|
107
112
|
seedance_no_text: "seedance_no_text";
|
|
108
113
|
}>>;
|
|
114
|
+
engine: z.ZodOptional<z.ZodLiteral<"heygen_avatar6_turbo">>;
|
|
109
115
|
}, z.core.$strict>>>>;
|
|
110
116
|
}, z.core.$strict>>;
|
|
111
117
|
export declare const faceBillingPlanSchema: z.ZodReadonly<z.ZodObject<{
|
|
@@ -133,6 +139,7 @@ export declare const faceBillingPlanSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
133
139
|
seedance: "seedance";
|
|
134
140
|
seedance_no_text: "seedance_no_text";
|
|
135
141
|
}>>;
|
|
142
|
+
engine: z.ZodOptional<z.ZodLiteral<"heygen_avatar6_turbo">>;
|
|
136
143
|
}, z.core.$strict>>>>;
|
|
137
144
|
hash: z.ZodString;
|
|
138
145
|
}, z.core.$strict>>;
|
|
@@ -166,6 +173,7 @@ export declare const faceBillingFactsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
166
173
|
presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
|
|
167
174
|
heygen: z.ZodNumber;
|
|
168
175
|
omnihuman: z.ZodNumber;
|
|
176
|
+
heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
|
|
169
177
|
}, z.core.$strict>>;
|
|
170
178
|
shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
171
179
|
shot_talking_action: z.ZodNumber;
|
|
@@ -206,6 +214,7 @@ export declare const faceBillingFactsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
206
214
|
seedance: "seedance";
|
|
207
215
|
seedance_no_text: "seedance_no_text";
|
|
208
216
|
}>>;
|
|
217
|
+
engine: z.ZodOptional<z.ZodLiteral<"heygen_avatar6_turbo">>;
|
|
209
218
|
}, z.core.$strict>>>>;
|
|
210
219
|
hash: z.ZodString;
|
|
211
220
|
}, z.core.$strict>>;
|
|
@@ -220,6 +229,7 @@ export declare const faceBillingFactsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
220
229
|
unknownUnitIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
221
230
|
acceptedEngines: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
222
231
|
heygen: "heygen";
|
|
232
|
+
heygen_avatar6_turbo: "heygen_avatar6_turbo";
|
|
223
233
|
omnihuman: "omnihuman";
|
|
224
234
|
shot_action: "shot_action";
|
|
225
235
|
shot_omni: "shot_omni";
|
package/dist/face-billing.js
CHANGED
|
@@ -17,10 +17,12 @@ const legacyFaceBillingTariffSchema = z.object({
|
|
|
17
17
|
rounding: z.literal("ceil_aggregate_seconds"),
|
|
18
18
|
}).strict().readonly();
|
|
19
19
|
export const PRESENTER_ENGINES = ["heygen", "omnihuman"];
|
|
20
|
+
export const SHORT_PRESENTER_ENGINES = [...PRESENTER_ENGINES, "heygen_avatar6_turbo"];
|
|
20
21
|
const tariffCredits = z.number().int().nonnegative().max(2_147_483_647);
|
|
21
|
-
export const presenterRatesSchema = z.object({ heygen: tariffCredits.positive(), omnihuman: tariffCredits.positive()
|
|
22
|
+
export const presenterRatesSchema = z.object({ heygen: tariffCredits.positive(), omnihuman: tariffCredits.positive(),
|
|
23
|
+
heygen_avatar6_turbo: tariffCredits.positive().optional() }).strict().readonly();
|
|
22
24
|
export const SHOT_ENGINES = ["shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
|
|
23
|
-
export const TAKE_ENGINES = [...
|
|
25
|
+
export const TAKE_ENGINES = [...SHORT_PRESENTER_ENGINES, ...SHOT_ENGINES];
|
|
24
26
|
export const shotRatesSchema = z.object({ shot_talking_action: tariffCredits.positive(), shot_action: tariffCredits.positive(),
|
|
25
27
|
shot_omni: tariffCredits.positive().optional(), shot_seedance: tariffCredits.positive().optional(),
|
|
26
28
|
shot_omni_no_text: tariffCredits.positive().optional(), shot_seedance_no_text: tariffCredits.positive().optional() }).strict().readonly();
|
|
@@ -58,6 +60,7 @@ const unitSchema = z.object({
|
|
|
58
60
|
optional: z.literal(true).optional(),
|
|
59
61
|
shot: z.enum(LIVE_SHOT_KINDS).optional(),
|
|
60
62
|
shotModel: z.enum(SHOT_MODELS).optional(),
|
|
63
|
+
engine: z.literal("heygen_avatar6_turbo").optional(),
|
|
61
64
|
}).strict().readonly();
|
|
62
65
|
const planShape = {
|
|
63
66
|
version: z.literal(1),
|
package/dist/faceless-price.d.ts
CHANGED
|
@@ -86,14 +86,11 @@ export declare const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
|
|
|
86
86
|
export declare const FACELESS_MAX_SHOTS = 10;
|
|
87
87
|
export declare const FACELESS_SHOT_MAX_SEC = 5;
|
|
88
88
|
export declare const FACELESS_MAX_CAP_USD_MICROS = 10000000;
|
|
89
|
-
export declare const facelessScenesEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
90
89
|
export declare const facelessShotSecondsCeiling: (shots: number) => number;
|
|
91
90
|
export declare function facelessPartsBase(images: number, outputFrames: number): number;
|
|
92
|
-
export declare const facelessExplainerEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
93
91
|
export declare const FACELESS_EXPLAINER_POSE_PICTURES = 9;
|
|
94
92
|
export declare const EXPLAINER_BEAT_CREDITS = 65;
|
|
95
93
|
export declare const EXPLAINER_MAX_AUTHORED_BEATS = 8;
|
|
96
|
-
export declare const explainerBeatsEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
97
94
|
export declare const EXPLAINER_MAX_OBJECT_PICTURES = 12;
|
|
98
95
|
export declare const explainerObjectCeiling: (script: string) => number;
|
|
99
96
|
export declare const EXPLAINER_FILM_CREDITS = 500;
|
|
@@ -128,7 +125,6 @@ export declare const EXPLAINER_TIER_TARIFFS: {
|
|
|
128
125
|
readonly pro: "skill-agent-opus-v1";
|
|
129
126
|
};
|
|
130
127
|
export declare const explainerTierTariff: (tier: ExplainerTier | undefined) => SkillFilmTariff;
|
|
131
|
-
export declare const skillAgentEnabled: (env: Record<string, string | undefined>) => boolean;
|
|
132
128
|
export declare const facelessImageCeilings: (selectedFrames: number) => number[];
|
|
133
129
|
export declare function quoteFaceless(input: {
|
|
134
130
|
outputFrames: number;
|
package/dist/faceless-price.js
CHANGED
|
@@ -57,16 +57,13 @@ export const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
|
|
|
57
57
|
export const FACELESS_MAX_SHOTS = 10;
|
|
58
58
|
export const FACELESS_SHOT_MAX_SEC = 5;
|
|
59
59
|
export const FACELESS_MAX_CAP_USD_MICROS = 10_000_000;
|
|
60
|
-
export const facelessScenesEnabled = (env) => env.CLIPWRIGHT_FACELESS_SCENES === "1";
|
|
61
60
|
export const facelessShotSecondsCeiling = (shots) => shots * FACELESS_SHOT_MAX_SEC;
|
|
62
61
|
export function facelessPartsBase(images, outputFrames) {
|
|
63
62
|
return images * FACELESS_IMAGE_CREDITS + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
|
|
64
63
|
}
|
|
65
|
-
export const facelessExplainerEnabled = (env) => env.CLIPWRIGHT_FACELESS_EXPLAINER === "1";
|
|
66
64
|
export const FACELESS_EXPLAINER_POSE_PICTURES = 9;
|
|
67
65
|
export const EXPLAINER_BEAT_CREDITS = 65;
|
|
68
66
|
export const EXPLAINER_MAX_AUTHORED_BEATS = 8;
|
|
69
|
-
export const explainerBeatsEnabled = (env) => env.CLIPWRIGHT_EXPLAINER_BEATS === "1";
|
|
70
67
|
export const EXPLAINER_MAX_OBJECT_PICTURES = 12;
|
|
71
68
|
export const explainerObjectCeiling = (script) => Math.min(EXPLAINER_MAX_OBJECT_PICTURES, namedThings(script));
|
|
72
69
|
export const EXPLAINER_FILM_CREDITS = 500;
|
|
@@ -85,7 +82,6 @@ export const explainerFilmCredits = (outputFrames) => skillFilmCredits("skill-ex
|
|
|
85
82
|
export const EXPLAINER_TIERS = ["standard", "pro"];
|
|
86
83
|
export const EXPLAINER_TIER_TARIFFS = { standard: "skill-agent-sonnet-v2", pro: "skill-agent-opus-v1" };
|
|
87
84
|
export const explainerTierTariff = (tier) => EXPLAINER_TIER_TARIFFS[tier ?? "standard"];
|
|
88
|
-
export const skillAgentEnabled = (env) => env.CLIPWRIGHT_SKILL_AGENT === "1";
|
|
89
85
|
export const facelessImageCeilings = (selectedFrames) => [facelessMaxGeneratedImages(selectedFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES), FACELESS_EXPLAINER_POSE_PICTURES, 0];
|
|
90
86
|
export function quoteFaceless(input) {
|
|
91
87
|
const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).parse(input.outputFrames);
|
|
@@ -43,7 +43,7 @@ export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
|
|
|
43
43
|
readonly at: "scene_changes";
|
|
44
44
|
}>;
|
|
45
45
|
export declare const FACELESS_FORMATS: readonly ["standard", "explainer"];
|
|
46
|
-
export declare const FACELESS_EXPLAINER_DISABLED_MESSAGE
|
|
46
|
+
export declare const FACELESS_EXPLAINER_DISABLED_MESSAGE: string;
|
|
47
47
|
export declare const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mode script: write it as a hook, three to five steps and a result";
|
|
48
48
|
export declare function facelessRunFrame(storedInput: unknown): {
|
|
49
49
|
width: number;
|
|
@@ -109,8 +109,6 @@ export declare const facelessActionShot: z.ZodObject<{
|
|
|
109
109
|
}, z.core.$strict>;
|
|
110
110
|
export type FacelessActionShot = z.infer<typeof facelessActionShot>;
|
|
111
111
|
export declare const FACELESS_SHOTS_BRIEF_REFUSAL = "shots need input_mode script: they sit on the narration's words";
|
|
112
|
-
export declare const FACELESS_SHOTS_DISABLED_MESSAGE = "shots are not available on make_faceless right now; omit shots";
|
|
113
|
-
export declare const FACELESS_SCENES_DISABLED_MESSAGE = "scenes are not available on make_faceless right now; omit scenes";
|
|
114
112
|
export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
113
|
duration_seconds: z.ZodNumber;
|
|
116
114
|
style_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -6641,6 +6639,34 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6641
6639
|
rig: z.ZodOptional<z.ZodString>;
|
|
6642
6640
|
photo: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6643
6641
|
unread: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6642
|
+
sprites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
6643
|
+
blink: "blink";
|
|
6644
|
+
half: "half";
|
|
6645
|
+
look_left: "look_left";
|
|
6646
|
+
look_right: "look_right";
|
|
6647
|
+
open: "open";
|
|
6648
|
+
smile: "smile";
|
|
6649
|
+
surprise: "surprise";
|
|
6650
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
6651
|
+
key: z.ZodString;
|
|
6652
|
+
bytes: z.ZodNumber;
|
|
6653
|
+
sha256: z.ZodString;
|
|
6654
|
+
}, z.core.$strict>>>;
|
|
6655
|
+
anchors: z.ZodOptional<z.ZodObject<{
|
|
6656
|
+
eyes: z.ZodTuple<[z.ZodObject<{
|
|
6657
|
+
x: z.ZodNumber;
|
|
6658
|
+
y: z.ZodNumber;
|
|
6659
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6660
|
+
x: z.ZodNumber;
|
|
6661
|
+
y: z.ZodNumber;
|
|
6662
|
+
}, z.core.$strict>], null>;
|
|
6663
|
+
mouth: z.ZodObject<{
|
|
6664
|
+
x: z.ZodNumber;
|
|
6665
|
+
y: z.ZodNumber;
|
|
6666
|
+
}, z.core.$strict>;
|
|
6667
|
+
}, z.core.$strict>>;
|
|
6668
|
+
head: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6669
|
+
quiet: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6644
6670
|
}, z.core.$strict>>;
|
|
6645
6671
|
}, z.core.$strict>>;
|
|
6646
6672
|
workflow_directions: z.ZodOptional<z.ZodObject<{
|
package/dist/faceless-public.js
CHANGED
|
@@ -8,10 +8,9 @@ import { MOTION_STYLE_UNUSED_WARNING, motionStyleAsked, motionStyleHasCanvas, mo
|
|
|
8
8
|
import { MAX_SCENES, sceneRefusals } from "./ugc-scenes.js";
|
|
9
9
|
import { MAX_MOVES, moveRefusals, MOVES_DESCRIPTION, ugcMove } from "./moves.js";
|
|
10
10
|
import { MAX_TEMPLATE_MEDIA, MAX_TEMPLATES, templateRefusals } from "./templates/index.js";
|
|
11
|
-
import { isPresenterMatteEnabled, needsPresenterCutout, PRESENTER_MATTE_DISABLED_MESSAGE } from "./presenter-matte.js";
|
|
12
11
|
import { assetId } from "./asset-identity.js";
|
|
13
12
|
import { FACELESS_REJECTED_FIELDS } from "./contract-dispositions.js";
|
|
14
|
-
import { FACELESS_MAX_OUTPUT_FRAMES, FACELESS_MAX_SELECTED_SECONDS, FACELESS_MAX_SHOTS, FACELESS_MIN_OUTPUT_FRAMES, FACELESS_MIN_SELECTED_SECONDS,
|
|
13
|
+
import { FACELESS_MAX_OUTPUT_FRAMES, FACELESS_MAX_SELECTED_SECONDS, FACELESS_MAX_SHOTS, FACELESS_MIN_OUTPUT_FRAMES, FACELESS_MIN_SELECTED_SECONDS, EXPLAINER_TIER_TARIFFS, EXPLAINER_TIERS, explainerObjectCeiling, facelessQuote, quoteFaceless } from "./faceless-price.js";
|
|
15
14
|
import { DEFAULT_FACELESS_VOICE } from "./faceless-voices.js";
|
|
16
15
|
import { resolveFacelessCustomerAnchors } from "./faceless-customer-anchors.js";
|
|
17
16
|
import { FACELESS_TRANSITION_LOOKS } from "./faceless-media-record.js";
|
|
@@ -64,15 +63,15 @@ function refuseSounds(input, context) {
|
|
|
64
63
|
context.addIssue({ code: customIssue, path, message });
|
|
65
64
|
}
|
|
66
65
|
export const FACELESS_FORMATS = ["standard", "explainer"];
|
|
67
|
-
export const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not
|
|
66
|
+
export const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not offered on make_faceless: write the explainer film yourself, " +
|
|
67
|
+
"starting with get_film_guide, each part quoted before it is made; omit format for a narrated video over pictures";
|
|
68
68
|
export const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mode script: write it as a hook, three to five steps and a result";
|
|
69
69
|
const common = {
|
|
70
70
|
duration_seconds: z.number().min(FACELESS_MIN_SELECTED_SECONDS).max(FACELESS_MAX_SELECTED_SECONDS).refine((seconds) => Number.isInteger(seconds * 25), "duration_seconds must align to a 25 fps frame boundary"),
|
|
71
71
|
style_reference: qualifiedImageUrl.optional(),
|
|
72
72
|
character_reference: qualifiedImageUrl.optional()
|
|
73
|
-
.describe("A picture of a person or figure: a public https image, or a picture you uploaded or saved in your assets.
|
|
74
|
-
"your own scene_images are shown as they are.
|
|
75
|
-
"character_details ask for a photoreal look."),
|
|
73
|
+
.describe("A picture of a person or figure: a public https image, or a picture you uploaded or saved in your assets. The figure is in every picture we generate and in the opening clip; " +
|
|
74
|
+
"your own scene_images are shown as they are."),
|
|
76
75
|
character_details: z.string().trim().min(1).max(2000).optional(),
|
|
77
76
|
mascot_id: assetId.optional(),
|
|
78
77
|
scene_images: z.array(facelessCustomerSceneImage).max(60).optional(),
|
|
@@ -160,12 +159,6 @@ function refuseTemplates(input, context) {
|
|
|
160
159
|
for (const { path, message } of templateRefusals({ script: input.script, templates: input.templates, aspect_ratio: "9:16" })) {
|
|
161
160
|
context.addIssue({ code: customIssue, path, message });
|
|
162
161
|
}
|
|
163
|
-
if (isPresenterMatteEnabled())
|
|
164
|
-
return;
|
|
165
|
-
input.templates.forEach((item, index) => {
|
|
166
|
-
if (needsPresenterCutout([item]))
|
|
167
|
-
context.addIssue({ code: customIssue, path: ["templates", index, "kind"], message: PRESENTER_MATTE_DISABLED_MESSAGE });
|
|
168
|
-
});
|
|
169
162
|
}
|
|
170
163
|
export const facelessActionShot = z.strictObject({
|
|
171
164
|
id: z.string().trim().min(1).max(64),
|
|
@@ -175,8 +168,6 @@ export const facelessActionShot = z.strictObject({
|
|
|
175
168
|
asset_id: assetId.optional(),
|
|
176
169
|
});
|
|
177
170
|
export const FACELESS_SHOTS_BRIEF_REFUSAL = "shots need input_mode script: they sit on the narration's words";
|
|
178
|
-
export const FACELESS_SHOTS_DISABLED_MESSAGE = "shots are not available on make_faceless right now; omit shots";
|
|
179
|
-
export const FACELESS_SCENES_DISABLED_MESSAGE = "scenes are not available on make_faceless right now; omit scenes";
|
|
180
171
|
const scriptShape = { ...common,
|
|
181
172
|
input_mode: z.literal("script"),
|
|
182
173
|
script: z.string().trim().min(1).max(10_000),
|
|
@@ -275,8 +266,6 @@ export function explainerTierTotals(input) {
|
|
|
275
266
|
const total = (tier) => quoteFacelessInput(input, { explainerFilm: EXPLAINER_TIER_TARIFFS[tier] }).totalCredits;
|
|
276
267
|
return { tier: input.tier ?? "standard", standard: total("standard"), pro: total("pro") };
|
|
277
268
|
}
|
|
278
|
-
const tierFilm = (tier) => SKILL_FILM_TARIFFS[EXPLAINER_TIER_TARIFFS[tier]];
|
|
279
|
-
const tierPrice = (tier) => `${tierFilm(tier).filmCredits} credits for a film up to ${EXPLAINER_FILM_INCLUDED_SECONDS} s plus ${tierFilm(tier).perExtraSecond} each second over`;
|
|
280
269
|
export const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
|
|
281
270
|
export const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
|
|
282
271
|
export const offeredFacelessInputShape = {
|
|
@@ -287,18 +276,16 @@ export const offeredFacelessInputShape = {
|
|
|
287
276
|
brief: briefInput.shape.brief.optional()
|
|
288
277
|
.describe("What the video is about; the narration is written from it. Required when input_mode is 'brief'; must be absent when it is 'script'."),
|
|
289
278
|
duration_seconds: common.duration_seconds
|
|
290
|
-
.describe("Selected length, 30 to 90 seconds, on a 1/25 s frame boundary. The video ends with its narration and runs at least 25 seconds
|
|
279
|
+
.describe("Selected length, 30 to 90 seconds, on a 1/25 s frame boundary. The video ends with its narration and runs at least 25 seconds, usually at most a quarter past the selection and 90 seconds; when the narration takes longer, the video runs to its end. A video more than 5 seconds longer than the selection says so in warnings[]. The charge never exceeds the quote. A script is accepted when its estimated length is 21 seconds to the selection plus 5, at most 90."),
|
|
291
280
|
style_reference: common.style_reference
|
|
292
281
|
.describe("Public https image whose visual style the scenes follow."),
|
|
293
282
|
character_reference: common.character_reference,
|
|
294
283
|
character_details: common.character_details
|
|
295
284
|
.describe("Fixed visual details of that person or figure, such as hair, clothing and absent accessories; kept in every generated scene."),
|
|
296
285
|
mascot_id: common.mascot_id
|
|
297
|
-
.describe("
|
|
298
|
-
"Replaces character_reference and character_details."),
|
|
286
|
+
.describe("Format explainer only, which is not offered here."),
|
|
299
287
|
scene_images: common.scene_images
|
|
300
|
-
.describe("Your images, each placed at a word range or quote of the narration. Free.
|
|
301
|
-
`up to ${EXPLAINER_MAX_PRODUCT_PICTURES} pictures of your product, each shown as it is on its words, held by the hero, as a card or full frame.`),
|
|
288
|
+
.describe("Your images, each placed at a word range or quote of the narration. Free."),
|
|
302
289
|
captions: common.captions.describe("Burned-in captions; on by default."),
|
|
303
290
|
transitions: scriptInput.shape.transitions
|
|
304
291
|
.describe("Flash or light leak on the cuts, with its sound: every scene change, or the one nearest each anchor (script only). " +
|
|
@@ -311,20 +298,12 @@ export const offeredFacelessInputShape = {
|
|
|
311
298
|
scenes: z.unknown().optional().describe("Script only: as make_ugc scenes."),
|
|
312
299
|
motion_style: z.unknown().optional().describe("As make_ugc motion_style; spans script only. Free."),
|
|
313
300
|
moves: z.unknown().optional().describe(`Script only: ${MOVES_DESCRIPTION}`),
|
|
314
|
-
format: common.format.describe("'explainer'
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
"poorly. Every script quote answers explainer_fit: offer the format where it fits; where it does not, show its reason and its " +
|
|
318
|
-
"rewrite into actions before asking. The hero: mascot_id, else your brand's mascot, free; else the character you name or one that fits " +
|
|
319
|
-
`the script, its ${FACELESS_EXPLAINER_POSE_PICTURES} pose pictures at ${FACELESS_IMAGE_CREDITS} each on the quote. Priced as one film by tier; ` +
|
|
320
|
-
"a film takes about half an hour. Without voice, an English script is read by our fastest voice."),
|
|
321
|
-
tier: common.tier.describe(`Format explainer: 'standard' (default): ${tierPrice("standard")}. 'pro': more careful direction and ` +
|
|
322
|
-
`richer scenes, ${tierPrice("pro")}. Pose pictures are on top. quote_faceless names both totals: show them and let the user pick. ` +
|
|
323
|
-
"Elsewhere tier is refused."),
|
|
324
|
-
pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes, shots or format explainer."),
|
|
301
|
+
format: common.format.describe("'explainer' is not offered here: for an explainer film, write it yourself starting with get_film_guide."),
|
|
302
|
+
tier: common.tier.describe("Format explainer only, which is not offered here."),
|
|
303
|
+
pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes or shots."),
|
|
325
304
|
voice: common.voice
|
|
326
305
|
.describe("Narration voice: a name from list_voices with skill=make_faceless (kind faceless_voice). " +
|
|
327
|
-
`Omitted means ${DEFAULT_FACELESS_VOICE}
|
|
306
|
+
`Omitted means ${DEFAULT_FACELESS_VOICE}. Choose a voice in the language of the narration: a voice reads any ` +
|
|
328
307
|
"language, with the accent of its own. The API refuses an unknown name and a make_ugc voice before any charge. " +
|
|
329
308
|
"A raw voice_id is not accepted here."),
|
|
330
309
|
resolution: common.resolution,
|
package/dist/film-cut.d.ts
CHANGED
|
@@ -843,9 +843,5 @@ export declare const filmCutCheck: z.ZodObject<{
|
|
|
843
843
|
add: z.ZodArray<z.ZodString>;
|
|
844
844
|
note: z.ZodString;
|
|
845
845
|
}, z.core.$strict>>;
|
|
846
|
-
blocked: z.ZodOptional<z.ZodObject<{
|
|
847
|
-
reason: z.ZodString;
|
|
848
|
-
unblock: z.ZodString;
|
|
849
|
-
}, z.core.$strict>>;
|
|
850
846
|
}, z.core.$strict>;
|
|
851
847
|
export type FilmCutCheck = z.infer<typeof filmCutCheck>;
|