@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.
Files changed (97) hide show
  1. package/dist/account-actors.d.ts +0 -3
  2. package/dist/account-actors.js +0 -7
  3. package/dist/ad-guide.js +3 -2
  4. package/dist/ads.js +2 -3
  5. package/dist/api-failure.d.ts +1 -4
  6. package/dist/api-failure.js +6 -16
  7. package/dist/assets.d.ts +6 -0
  8. package/dist/billing-terms.d.ts +12 -0
  9. package/dist/contract-dispositions.d.ts +23 -19
  10. package/dist/contract-dispositions.js +16 -72
  11. package/dist/contracts/v1/workflow-brief.d.ts +10 -0
  12. package/dist/contracts/v1/workflow-catalog.d.ts +10 -0
  13. package/dist/contracts/v1/workflow-client.d.ts +5 -0
  14. package/dist/contracts/v1/workflow-execution.d.ts +16 -0
  15. package/dist/contracts/v1/workflow-plan.d.ts +15 -0
  16. package/dist/contracts/v1/workflow-run-read.d.ts +11 -0
  17. package/dist/cuts.js +2 -2
  18. package/dist/edit-music.js +5 -5
  19. package/dist/endpoint-notes.js +2 -0
  20. package/dist/endpoints.js +3 -0
  21. package/dist/errors.d.ts +2 -29
  22. package/dist/errors.js +2 -13
  23. package/dist/face-billing.d.ts +11 -1
  24. package/dist/face-billing.js +5 -2
  25. package/dist/faceless-price.d.ts +0 -4
  26. package/dist/faceless-price.js +0 -4
  27. package/dist/faceless-public.d.ts +29 -3
  28. package/dist/faceless-public.js +12 -33
  29. package/dist/film-cut.d.ts +0 -4
  30. package/dist/film-cut.js +2 -4
  31. package/dist/film-drafts.d.ts +11 -0
  32. package/dist/film-drafts.js +8 -0
  33. package/dist/film-guide.d.ts +10 -49
  34. package/dist/film-guide.js +37 -3
  35. package/dist/generations-output.d.ts +5 -0
  36. package/dist/generations-output.js +2 -0
  37. package/dist/generations.d.ts +25 -0
  38. package/dist/generations.js +3 -1
  39. package/dist/idempotency.d.ts +1 -0
  40. package/dist/idempotency.js +7 -0
  41. package/dist/index.d.ts +4 -0
  42. package/dist/index.js +4 -0
  43. package/dist/mascots.d.ts +110 -1
  44. package/dist/mascots.js +38 -1
  45. package/dist/mcp-ugc-descriptions.d.ts +1 -1
  46. package/dist/mcp-ugc-descriptions.js +1 -1
  47. package/dist/music.d.ts +1 -2
  48. package/dist/music.js +1 -4
  49. package/dist/openapi.js +13 -8
  50. package/dist/own-agent-price.d.ts +18 -4
  51. package/dist/own-agent-price.js +37 -9
  52. package/dist/own-agent-runs.d.ts +77 -23
  53. package/dist/own-agent-runs.js +26 -12
  54. package/dist/parts-pricing.d.ts +14 -5
  55. package/dist/parts-pricing.js +27 -14
  56. package/dist/presenter-engine.d.ts +16 -0
  57. package/dist/presenter-engine.js +32 -0
  58. package/dist/presenter-matte.d.ts +0 -2
  59. package/dist/presenter-matte.js +0 -4
  60. package/dist/prices.d.ts +10 -6
  61. package/dist/prices.js +76 -32
  62. package/dist/reference-analysis.d.ts +47 -0
  63. package/dist/reference-analysis.js +7 -0
  64. package/dist/reference-display.js +3 -0
  65. package/dist/reference-film-kit.d.ts +43 -0
  66. package/dist/reference-film-kit.js +22 -0
  67. package/dist/render-backend.d.ts +1 -0
  68. package/dist/runs.d.ts +12 -0
  69. package/dist/scene-bible.d.ts +0 -1
  70. package/dist/scene-bible.js +0 -7
  71. package/dist/service-offer.d.ts +11 -0
  72. package/dist/service-offer.js +6 -0
  73. package/dist/skill-theme-explainer.js +3 -1
  74. package/dist/skill-theme.js +5 -0
  75. package/dist/skills.d.ts +58 -1
  76. package/dist/skills.js +70 -36
  77. package/dist/templates/comment-cta.d.ts +0 -2
  78. package/dist/templates/comment-cta.js +0 -4
  79. package/dist/templates/index.d.ts +3 -3
  80. package/dist/templates/index.js +7 -17
  81. package/dist/templates/series-frame.d.ts +0 -2
  82. package/dist/templates/series-frame.js +0 -4
  83. package/dist/upscale.d.ts +120 -0
  84. package/dist/upscale.js +116 -0
  85. package/dist/voice-admission.d.ts +14 -0
  86. package/dist/voice-admission.js +9 -0
  87. package/dist/voice-listing.js +1 -1
  88. package/dist/voices.d.ts +1 -0
  89. package/dist/workflows/methods/faceless-explainer.d.ts +2 -0
  90. package/dist/workflows/methods/kinetic-launch.d.ts +4 -0
  91. package/dist/workflows/methods/product-image-story.d.ts +2 -0
  92. package/dist/workflows/methods/reference-remake.d.ts +2 -0
  93. package/dist/workflows/methods/shared.d.ts +2 -0
  94. package/dist/workflows/methods/ugc-faq-answer.d.ts +2 -0
  95. package/dist/workflows/methods/ugc-product-intro.d.ts +2 -0
  96. package/dist/workflows/methods/website-proof-demo.d.ts +4 -0
  97. package/package.json +1 -1
@@ -416,7 +416,6 @@ export type CreateActorDisposition = {
416
416
  kind: "rejected";
417
417
  message: string;
418
418
  };
419
- type CreateActorField = keyof typeof createActorInput.shape;
420
419
  export declare const CREATE_ACTOR_FIELD_DISPOSITIONS: {
421
420
  readonly description: {
422
421
  readonly kind: "implemented";
@@ -471,8 +470,6 @@ export declare const CREATE_ACTOR_FIELD_DISPOSITIONS: {
471
470
  readonly provenBy: "admission";
472
471
  };
473
472
  };
474
- export declare const ACTOR_VIEWS_DISABLED_MESSAGE = "is not available right now: deriving an actor from an actor is off; create an actor from a description instead";
475
- export declare function createActorDispositions(viewsEnabled: boolean): Record<CreateActorField, CreateActorDisposition>;
476
473
  export declare function createActorRejectedFields(input: Readonly<Record<string, unknown>>, dispositions: Readonly<Record<string, CreateActorDisposition>>): {
477
474
  field: string;
478
475
  message: string;
@@ -359,13 +359,6 @@ export const CREATE_ACTOR_FIELD_DISPOSITIONS = {
359
359
  portrait: { kind: "implemented", provenBy: "egress" },
360
360
  max_credits: { kind: "implemented", provenBy: "admission" },
361
361
  };
362
- export const ACTOR_VIEWS_DISABLED_MESSAGE = "is not available right now: deriving an actor from an actor is off; create an actor from a description instead";
363
- export function createActorDispositions(viewsEnabled) {
364
- if (viewsEnabled)
365
- return CREATE_ACTOR_FIELD_DISPOSITIONS;
366
- const rejected = (field) => ({ kind: "rejected", message: `${field} ${ACTOR_VIEWS_DISABLED_MESSAGE}` });
367
- return { ...CREATE_ACTOR_FIELD_DISPOSITIONS, ...Object.fromEntries(ACTOR_VIEW_FIELDS.map((field) => [field, rejected(field)])) };
368
- }
369
362
  export function createActorRejectedFields(input, dispositions) {
370
363
  return Object.entries(dispositions).flatMap(([field, disposition]) => disposition.kind === "rejected" && input[field] !== undefined ? [{ field, message: disposition.message }] : []);
371
364
  }
package/dist/ad-guide.js CHANGED
@@ -6,11 +6,12 @@ export const AD_GUIDE_SECTION_IDS = ["ugc", "order", "script", "product_sheet",
6
6
  "motion_test", "shot_list", "devices", "takes", "audit", "repair", "edit", "final_check", "spend"];
7
7
  export const adGuideQuery = z.strictObject({
8
8
  section: z.enum(AD_GUIDE_SECTION_IDS).optional()
9
- .describe("One part of the guide instead of all of it: ugc (the make_ugc rules) or one step of making the ad yourself"),
9
+ .describe("One part of the guide, whole: ugc (the make_ugc rules) or one step of making the ad yourself. Without it you get the index"),
10
10
  });
11
11
  export const adGuide = z.strictObject({
12
12
  brand: brandGuideBlock.optional(),
13
- guide: z.string().min(1).describe("The ad guide, Markdown: the word → device catalogue, the hook, poses, live shots, captions, hands and density"),
13
+ guide: z.string().min(1).describe("The ad guide, Markdown. Without section: which section to read, every section's title, the order " +
14
+ "and the final check of making the ad yourself. With section: that part"),
14
15
  version: z.string().regex(/^[a-f0-9]{12}$/).optional().describe("The guide's version: it changes whenever any part of the guide does"),
15
16
  guides: guideCatalog.optional(),
16
17
  });
package/dist/ads.js CHANGED
@@ -22,8 +22,7 @@ export const adSlot = z.strictObject({
22
22
  id: adSlotId,
23
23
  shot: z.string().trim().min(1).max(500).describe("What the shot shows, in a line: its action and the spoken line it carries"),
24
24
  people_only: z.boolean().optional().describe("Only people in this shot, with no product, label or detail anywhere in it (a face for " +
25
- "the hook, a person talking): a take made with generate_video goes into the edit without check_take. Once a slot has a check, this " +
26
- "cannot be turned on"),
25
+ "the hook, a person talking). Kept and shown; it changes nothing, as no slot asks for a check"),
27
26
  });
28
27
  const slots = z.array(adSlot).min(1).max(AD_MAX_SLOTS)
29
28
  .refine(list => new Set(list.map(slot => slot.id)).size === list.length, "each slot id is used once")
@@ -44,7 +43,7 @@ const adCheck = z.strictObject({
44
43
  export const adTake = z.strictObject({
45
44
  run_id: runId.nullable().describe("The take's generate_video run, or null for a video asset"),
46
45
  asset_id: assetId.nullable(),
47
- own_footage: z.boolean().describe("Your own footage, not a clip made with generate_video: the edit needs no check of it, and its checks are advice"),
46
+ own_footage: z.boolean().describe("Your own footage, not a clip made with generate_video"),
48
47
  passed: z.boolean(),
49
48
  checks: z.array(adCheck),
50
49
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { DiyBlocked, DiyNext } from "./diy-next.js";
2
+ import type { DiyNext } from "./diy-next.js";
3
3
  import { workflowCommandErrorRead } from "./contracts/v1/workflow-execution.js";
4
4
  export interface RateLimitedFailure extends WorkflowDiagnostics {
5
5
  kind: "rate_limited";
@@ -104,7 +104,6 @@ export interface ClientFailure extends WorkflowDiagnostics {
104
104
  message: string;
105
105
  code: string | undefined;
106
106
  next?: DiyNext;
107
- blocked?: DiyBlocked;
108
107
  }
109
108
  export type ApiFailure = RateLimitedFailure | InsufficientCreditsFailure | MaxCreditsExceededFailure | DebtOutstandingFailure | NotAdmittedFailure | EditConflictFailure | RunNotEditableFailure | EditingClosedFailure | EditCeilingReachedFailure | EditInvalidFailure | WorkflowFailure | ServerFailure | ClientFailure;
110
109
  export declare function isRetryableFailure(failure: ApiFailure): boolean;
@@ -143,9 +142,7 @@ export interface AgentFailureReport {
143
142
  issues?: EditIssueRead[] | WorkflowFailure["issues"];
144
143
  warnings?: string[];
145
144
  next?: DiyNext;
146
- blocked?: DiyBlocked;
147
145
  }
148
- export declare const TAKE_UNCHECKED_NEXT_ACTION: string;
149
146
  export declare const UPLOAD_NOT_FINISHED_NEXT_ACTION: string;
150
147
  export declare const ASSET_NOT_READY_NEXT_ACTION: string;
151
148
  export declare const UNAUTHORIZED_NEXT_ACTION: string;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { accountNotAdmittedError, apiError, debtOutstandingError, editCeilingReachedError, editConflictError, editingDisabledError, editingNotPricedError, editInvalidError, insufficientCreditsError, maxCreditsExceededError, runNotEditableError, takeUncheckedError, } from "./errors.js";
2
+ import { accountNotAdmittedError, apiError, debtOutstandingError, editCeilingReachedError, editConflictError, editingDisabledError, editingNotPricedError, editInvalidError, insufficientCreditsError, maxCreditsExceededError, runNotEditableError, } from "./errors.js";
3
3
  import { PUBLIC_APP_BASE_URL } from "./public-endpoints.js";
4
4
  import { rateLimitedError } from "./rate-limit.js";
5
5
  import { workflowCommandErrorRead } from "./contracts/v1/workflow-execution.js";
@@ -215,11 +215,6 @@ export function parseApiFailure(input) {
215
215
  const { error } = workflow.data;
216
216
  return { kind: error.code, status, message: error.message, issues: error.issues, warnings: error.warnings };
217
217
  }
218
- const unchecked = takeUncheckedError.safeParse(body);
219
- if (unchecked.success && status === 409) {
220
- const { error } = unchecked.data;
221
- return { kind: "client_error", status, message: error.message, code: error.code, next: error.next, blocked: error.blocked };
222
- }
223
218
  const generic = apiError.safeParse(body);
224
219
  const message = generic.success
225
220
  ? generic.data.error.message
@@ -258,9 +253,6 @@ function messageFromStatus(status, bodyText) {
258
253
  : `HTTP ${status}: the response body is not a Clipwright error object`;
259
254
  return tail === undefined ? head : `${head}. Body: ${tail}`;
260
255
  }
261
- export const TAKE_UNCHECKED_NEXT_ACTION = "Do not render yet: each clip the message names was made with generate_video and has no passing check_take on its file. Quote " +
262
- "the check in next (add direction: the shot's part of the prompt the take was made with), run check_take after the user's go-ahead, " +
263
- "and cut only takes that pass. Nothing was charged and no run was created.";
264
256
  export const UPLOAD_NOT_FINISHED_NEXT_ACTION = "Finish the upload first: PUT the file to the put_url from create_upload with the given put_headers, confirm it " +
265
257
  "with get_upload, then repeat this call. If the message says the upload is finishing, the file is already there: " +
266
258
  "wait a few seconds and repeat. Nothing was charged and no run was created.";
@@ -450,13 +442,11 @@ export function agentFailureReport(failure) {
450
442
  code: failure.code ?? `http_${failure.status}`,
451
443
  retryable: false,
452
444
  ...(failure.next && { next: failure.next }),
453
- ...(failure.blocked && { blocked: failure.blocked }),
454
- next_action: failure.code === "take_unchecked" ? TAKE_UNCHECKED_NEXT_ACTION :
455
- failure.code === "upload_not_finished" ? UPLOAD_NOT_FINISHED_NEXT_ACTION :
456
- failure.code === "unauthorized" ? UNAUTHORIZED_NEXT_ACTION :
457
- failure.next ? refusalNextAction(failure.next) :
458
- "STOP. Do NOT retry: the request itself was rejected, so repeating it unchanged gives " +
459
- "the same answer. Read the message, fix the call, or tell the user what is wrong.",
445
+ next_action: failure.code === "upload_not_finished" ? UPLOAD_NOT_FINISHED_NEXT_ACTION :
446
+ failure.code === "unauthorized" ? UNAUTHORIZED_NEXT_ACTION :
447
+ failure.next ? refusalNextAction(failure.next) :
448
+ "STOP. Do NOT retry: the request itself was rejected, so repeating it unchanged gives " +
449
+ "the same answer. Read the message, fix the call, or tell the user what is wrong.",
460
450
  };
461
451
  }
462
452
  }
package/dist/assets.d.ts CHANGED
@@ -221,6 +221,7 @@ export declare const asset: z.ZodObject<{
221
221
  wink: "wink";
222
222
  }>>;
223
223
  character: z.ZodNullable<z.ZodString>;
224
+ head: z.ZodOptional<z.ZodBoolean>;
224
225
  }, z.core.$strict>>;
225
226
  url: z.ZodString;
226
227
  preview_url: z.ZodOptional<z.ZodString>;
@@ -350,6 +351,7 @@ export declare const assetItem: z.ZodUnion<readonly [z.ZodObject<{
350
351
  wink: "wink";
351
352
  }>>;
352
353
  character: z.ZodNullable<z.ZodString>;
354
+ head: z.ZodOptional<z.ZodBoolean>;
353
355
  }, z.core.$strict>>;
354
356
  url: z.ZodString;
355
357
  preview_url: z.ZodOptional<z.ZodString>;
@@ -486,6 +488,7 @@ export declare const assetList: z.ZodObject<{
486
488
  wink: "wink";
487
489
  }>>;
488
490
  character: z.ZodNullable<z.ZodString>;
491
+ head: z.ZodOptional<z.ZodBoolean>;
489
492
  }, z.core.$strict>>;
490
493
  url: z.ZodString;
491
494
  preview_url: z.ZodOptional<z.ZodString>;
@@ -579,6 +582,7 @@ export declare const assetRead: z.ZodObject<{
579
582
  wink: "wink";
580
583
  }>>;
581
584
  character: z.ZodNullable<z.ZodString>;
585
+ head: z.ZodOptional<z.ZodBoolean>;
582
586
  }, z.core.$strict>>;
583
587
  url: z.ZodString;
584
588
  preview_url: z.ZodOptional<z.ZodString>;
@@ -640,6 +644,7 @@ export declare const assetItemRead: z.ZodUnion<readonly [z.ZodObject<{
640
644
  wink: "wink";
641
645
  }>>;
642
646
  character: z.ZodNullable<z.ZodString>;
647
+ head: z.ZodOptional<z.ZodBoolean>;
643
648
  }, z.core.$strict>>;
644
649
  url: z.ZodString;
645
650
  preview_url: z.ZodOptional<z.ZodString>;
@@ -702,6 +707,7 @@ export declare const assetListRead: z.ZodObject<{
702
707
  wink: "wink";
703
708
  }>>;
704
709
  character: z.ZodNullable<z.ZodString>;
710
+ head: z.ZodOptional<z.ZodBoolean>;
705
711
  }, z.core.$strict>>;
706
712
  url: z.ZodString;
707
713
  preview_url: z.ZodOptional<z.ZodString>;
@@ -19,6 +19,7 @@ export declare const faceBillingAdmissionTermsSchema: z.ZodReadonly<z.ZodObject<
19
19
  presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
20
20
  heygen: z.ZodNumber;
21
21
  omnihuman: z.ZodNumber;
22
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
22
23
  }, z.core.$strict>>;
23
24
  shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
24
25
  shot_talking_action: z.ZodNumber;
@@ -44,9 +45,14 @@ export declare const durationPartsAdmissionTermsSchema: z.ZodReadonly<z.ZodObjec
44
45
  presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
45
46
  heygen: z.ZodNumber;
46
47
  omnihuman: z.ZodNumber;
48
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
47
49
  }, z.core.$strict>>;
48
50
  productionCreditsPerSecond: z.ZodNumber;
49
51
  minimumCredits: z.ZodNumber;
52
+ presenterEngine: z.ZodOptional<z.ZodEnum<{
53
+ heygen: "heygen";
54
+ heygen_avatar6_turbo: "heygen_avatar6_turbo";
55
+ }>>;
50
56
  }, z.core.$strict>>;
51
57
  }, z.core.$strict>>;
52
58
  export type DurationPartsAdmissionTerms = z.infer<typeof durationPartsAdmissionTermsSchema>;
@@ -70,6 +76,7 @@ export declare const runBillingAdmissionTermsSchema: z.ZodUnion<readonly [z.ZodR
70
76
  presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
71
77
  heygen: z.ZodNumber;
72
78
  omnihuman: z.ZodNumber;
79
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
73
80
  }, z.core.$strict>>;
74
81
  shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
75
82
  shot_talking_action: z.ZodNumber;
@@ -93,9 +100,14 @@ export declare const runBillingAdmissionTermsSchema: z.ZodUnion<readonly [z.ZodR
93
100
  presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
94
101
  heygen: z.ZodNumber;
95
102
  omnihuman: z.ZodNumber;
103
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
96
104
  }, z.core.$strict>>;
97
105
  productionCreditsPerSecond: z.ZodNumber;
98
106
  minimumCredits: z.ZodNumber;
107
+ presenterEngine: z.ZodOptional<z.ZodEnum<{
108
+ heygen: "heygen";
109
+ heygen_avatar6_turbo: "heygen_avatar6_turbo";
110
+ }>>;
99
111
  }, z.core.$strict>>;
100
112
  }, z.core.$strict>>]>;
101
113
  export type RunBillingAdmissionTerms = z.infer<typeof runBillingAdmissionTermsSchema>;
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { makeUgcInputShape } from "./skills.js";
3
+ import { type ServiceOffer } from "./service-offer.js";
3
4
  export declare const CONTRACT_VERSION = "2026-10-18";
4
5
  export declare const CONTRACT_VERSION_HEADER = "X-Clipwright-Contract";
5
6
  export declare const BROLL_UNUSED_WARNING = "broll_policy has no effect on this video: it shows none of your media";
@@ -44,6 +45,10 @@ export declare const FIELD_DISPOSITIONS: {
44
45
  readonly kind: "implemented";
45
46
  readonly provenBy: "egress";
46
47
  };
48
+ readonly voice_run_id: {
49
+ readonly kind: "implemented";
50
+ readonly provenBy: "egress";
51
+ };
47
52
  readonly person: {
48
53
  readonly kind: "warned";
49
54
  readonly warning: "person is not honored yet: this request uses the default actor; choose actor_id from list_actors or provide image to select a different face";
@@ -95,6 +100,10 @@ export declare const FIELD_DISPOSITIONS: {
95
100
  readonly kind: "implemented";
96
101
  readonly provenBy: "egress";
97
102
  };
103
+ readonly presenter_engine: {
104
+ readonly kind: "implemented";
105
+ readonly provenBy: "egress";
106
+ };
98
107
  readonly image: {
99
108
  readonly kind: "implemented";
100
109
  readonly provenBy: "egress";
@@ -241,31 +250,16 @@ export declare const FACELESS_REJECTED_FIELDS: {
241
250
  };
242
251
  export type ContractField = keyof typeof FIELD_DISPOSITIONS;
243
252
  export interface ContractFlags {
244
- remoteFetch: boolean;
245
- compose: boolean;
246
- actorGeneration?: boolean;
247
- longForm?: boolean;
253
+ longForm: boolean;
248
254
  outputMarking?: boolean;
249
- music?: boolean;
250
- liveShots?: boolean;
251
- scenes?: boolean;
252
- motionStyles?: boolean;
253
255
  }
254
- export declare function isMotionStylesEnabled(env?: Record<string, string | undefined>): boolean;
255
- export declare const MOTION_STYLES_DISABLED_MESSAGE = "motion_style is not available right now; omit motion_style";
256
- export declare function isScenesEnabled(env?: Record<string, string | undefined>): boolean;
257
- export declare function isLiveShotsEnabled(env?: Record<string, string | undefined>): boolean;
258
256
  export declare const LIVE_SHOTS_DISABLED_MESSAGE = "shots are not available right now; omit shots and product_asset_id";
259
- export declare function isActorGenerationEnabled(env?: Record<string, string | undefined>): boolean;
260
- export declare function isActorViewsEnabled(env?: Record<string, string | undefined>): boolean;
261
- export declare function contractFlagsFromEnv(env?: Record<string, string | undefined>): ContractFlags;
262
- export declare function isLongFormQualificationEnabled(env?: Record<string, string | undefined>): boolean;
257
+ export declare function contractFlagsFor(offer: ServiceOffer): ContractFlags;
263
258
  export declare const LONG_FORM_DISABLED_MESSAGE = "long-form qualification is not available right now; pass script without segments or inserts";
264
259
  export declare function legacyCaptionWarnings(input: {
265
260
  captions?: boolean | undefined;
266
261
  caption_style?: string | undefined;
267
262
  }): string[];
268
- export declare const CAPTIONS_COMPOSE_DISABLED_WARNING = "captions were not drawn: composition is not available right now";
269
263
  export declare function compositionLayerFields(input: {
270
264
  overlays?: unknown;
271
265
  layout_windows?: unknown;
@@ -284,7 +278,7 @@ export declare function compositionLayerFields(input: {
284
278
  }): string[];
285
279
  export declare function compositionLayersNotDrawnWarnings(input: Parameters<typeof compositionLayerFields>[0], reason: string): string[];
286
280
  export declare function resolveDispositions(flags: ContractFlags): Record<ContractField, Disposition>;
287
- export declare const EFFECTIVE_DISPOSITIONS: Record<"actor_gender" | "actor_id" | "aspect_ratio" | "background" | "broll_policy" | "broll_url" | "call" | "caption_emphasis" | "caption_mode" | "caption_place" | "caption_position" | "caption_style" | "captions" | "character" | "design" | "disclosure_overlay" | "edit_sounds" | "end_hold_s" | "framing" | "image" | "inserts" | "interview" | "layout_windows" | "look" | "max_credits" | "motion_style" | "moves" | "music" | "name" | "overlays" | "pause_trim" | "person" | "presenter_framing" | "presenter_gaze" | "presenter_mic" | "presenter_place" | "product_asset_id" | "propose" | "resolution" | "scenes" | "script" | "segments" | "shots" | "template_sounds" | "template_theme" | "templates" | "tts_model" | "visible_ai_label" | "voice" | "voice_id" | "voice_pace" | "webhook_url", Disposition>;
281
+ export declare const dispositionsFor: (offer: ServiceOffer) => Record<ContractField, Disposition>;
288
282
  type RejectedField = {
289
283
  [K in ContractField]: (typeof FIELD_DISPOSITIONS)[K]["kind"] extends "rejected" ? K : never;
290
284
  }[ContractField];
@@ -4490,6 +4484,10 @@ export declare const offeredUgcInput: z.ZodObject<{
4490
4484
  "1080p": "1080p";
4491
4485
  "720p": "720p";
4492
4486
  }>>;
4487
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
4488
+ avatar6_turbo: "avatar6_turbo";
4489
+ avatar_iv: "avatar_iv";
4490
+ }>>;
4493
4491
  voice: z.ZodOptional<z.ZodString>;
4494
4492
  voice_id: z.ZodOptional<z.ZodString>;
4495
4493
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -4500,6 +4498,7 @@ export declare const offeredUgcInput: z.ZodObject<{
4500
4498
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
4501
4499
  }>>;
4502
4500
  voice_pace: z.ZodOptional<z.ZodNumber>;
4501
+ voice_run_id: z.ZodOptional<z.ZodString>;
4503
4502
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
4504
4503
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
4505
4504
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -4815,6 +4814,10 @@ export declare const mcpUgcInputShape: {
4815
4814
  "1080p": "1080p";
4816
4815
  "720p": "720p";
4817
4816
  }>>;
4817
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
4818
+ avatar6_turbo: "avatar6_turbo";
4819
+ avatar_iv: "avatar_iv";
4820
+ }>>;
4818
4821
  voice: z.ZodOptional<z.ZodString>;
4819
4822
  voice_id: z.ZodOptional<z.ZodString>;
4820
4823
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -4825,6 +4828,7 @@ export declare const mcpUgcInputShape: {
4825
4828
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
4826
4829
  }>>;
4827
4830
  voice_pace: z.ZodOptional<z.ZodNumber>;
4831
+ voice_run_id: z.ZodOptional<z.ZodString>;
4828
4832
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
4829
4833
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
4830
4834
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -4991,7 +4995,7 @@ export interface RejectedFieldHit {
4991
4995
  field: ContractField;
4992
4996
  message: string;
4993
4997
  }
4994
- export declare function rejectedFields(input: Readonly<Record<string, unknown>>, env?: Record<string, string | undefined>): RejectedFieldHit[];
4998
+ export declare function rejectedFields(input: Readonly<Record<string, unknown>>, offer?: ServiceOffer): RejectedFieldHit[];
4995
4999
  export interface UnknownFieldHit {
4996
5000
  field: string;
4997
5001
  suggestion?: string | undefined;
@@ -8,11 +8,10 @@ import { MAX_OVERLAYS, placeWarnings } from "./ugc-layers.js";
8
8
  import { callWarnings } from "./ugc-call.js";
9
9
  import { BROLL_POLICY_DESCRIPTION } from "./broll-policy.js";
10
10
  import { mcpDesign } from "./design.js";
11
- import { isMusicEnabled, MUSIC_DISABLED_MESSAGE } from "./music.js";
12
11
  import { MAX_SCENES, SCENES_DISABLED_MESSAGE } from "./ugc-scenes.js";
13
12
  import { MOTION_STYLE_UNUSED_WARNING, motionStyleAsked, motionStyleHasCanvas } from "./motion-styles.js";
14
13
  import { AD_PAUSE_TRIM_WARNING } from "./ad-pause-trim.js";
15
- import { isPresenterMatteEnabled, needsPresenterCutout, PRESENTER_MATTE_DISABLED_MESSAGE } from "./presenter-matte.js";
14
+ import { BASE_OFFER } from "./service-offer.js";
16
15
  export const CONTRACT_VERSION = "2026-10-18";
17
16
  export const CONTRACT_VERSION_HEADER = "X-Clipwright-Contract";
18
17
  export const BROLL_UNUSED_WARNING = "broll_policy has no effect on this video: it shows none of your media";
@@ -30,6 +29,7 @@ export const FIELD_DISPOSITIONS = {
30
29
  tts_model: { kind: "implemented", provenBy: "egress" },
31
30
  voice_pace: { kind: "implemented", provenBy: "egress" },
32
31
  pause_trim: { kind: "implemented", provenBy: "egress" },
32
+ voice_run_id: { kind: "implemented", provenBy: "egress" },
33
33
  person: {
34
34
  kind: "warned",
35
35
  warning: "person is not honored yet: this request uses the default actor; choose actor_id from list_actors or provide image to select a different face",
@@ -54,6 +54,7 @@ export const FIELD_DISPOSITIONS = {
54
54
  presenter_place: { kind: "implemented", provenBy: "egress" },
55
55
  resolution: { kind: "implemented", provenBy: "egress" },
56
56
  aspect_ratio: { kind: "implemented", provenBy: "egress" },
57
+ presenter_engine: { kind: "implemented", provenBy: "egress" },
57
58
  image: { kind: "implemented", provenBy: "egress" },
58
59
  actor_id: { kind: "implemented", provenBy: "egress" },
59
60
  presenter_framing: { kind: "implemented", provenBy: "egress" },
@@ -109,53 +110,16 @@ export const FACELESS_REJECTED_FIELDS = {
109
110
  },
110
111
  };
111
112
  const CONTRACT_FIELDS = Object.keys(makeUgcInputShape);
112
- export function isMotionStylesEnabled(env = typeof process === "undefined" ? {} : process.env) {
113
- return env.CLIPWRIGHT_MOTION_STYLES === "1" && env.CLIPWRIGHT_COMPOSE === "1";
114
- }
115
- export const MOTION_STYLES_DISABLED_MESSAGE = "motion_style is not available right now; omit motion_style";
116
- export function isScenesEnabled(env = typeof process === "undefined" ? {} : process.env) {
117
- return env.CLIPWRIGHT_SCENES === "1" && isLongFormQualificationEnabled(env);
118
- }
119
- export function isLiveShotsEnabled(env = typeof process === "undefined" ? {} : process.env) {
120
- return env.CLIPWRIGHT_LIVE_SHOTS === "1" && isLongFormQualificationEnabled(env);
121
- }
122
113
  export const LIVE_SHOTS_DISABLED_MESSAGE = "shots are not available right now; omit shots and product_asset_id";
123
- export function isActorGenerationEnabled(env = typeof process === "undefined" ? {} : process.env) {
124
- return env.CLIPWRIGHT_ACTOR_GENERATION === "1" && env.CLIPWRIGHT_REMOTE_FETCH === "1";
125
- }
126
- export function isActorViewsEnabled(env = typeof process === "undefined" ? {} : process.env) {
127
- return env.CLIPWRIGHT_ACTOR_VIEWS === "1" && isActorGenerationEnabled(env);
128
- }
129
114
  const PERSON_WITH_ACTOR_GENERATION = {
130
115
  kind: "warned",
131
116
  warning: "person is not honored: this request uses the default actor; create a personal actor from the description with create_actor, then pass its actor_id",
132
117
  triggersWhen: "present",
133
118
  };
134
- export function contractFlagsFromEnv(env = typeof process === "undefined" ? {} : process.env) {
135
- return {
136
- remoteFetch: env.CLIPWRIGHT_REMOTE_FETCH === "1",
137
- compose: env.CLIPWRIGHT_COMPOSE === "1",
138
- longForm: isLongFormQualificationEnabled(env),
139
- ...(env.CLIPWRIGHT_OUTPUT_MARKING === "1" ? { outputMarking: true } : {}),
140
- ...(isMusicEnabled(env) ? { music: true } : {}),
141
- ...(isLiveShotsEnabled(env) ? { liveShots: true } : {}),
142
- ...(isScenesEnabled(env) ? { scenes: true } : {}),
143
- ...(isMotionStylesEnabled(env) ? { motionStyles: true } : {}),
144
- };
145
- }
146
- export function isLongFormQualificationEnabled(env = typeof process === "undefined" ? {} : process.env) {
147
- return env.CLIPWRIGHT_LONG_FORM_QUALIFICATION === "1" &&
148
- env.CLIPWRIGHT_COMPOSE === "1" && env.CLIPWRIGHT_REMOTE_FETCH === "1";
119
+ export function contractFlagsFor(offer) {
120
+ return { longForm: offer.longForm, ...(offer.outputMarking ? { outputMarking: true } : {}) };
149
121
  }
150
122
  export const LONG_FORM_DISABLED_MESSAGE = "long-form qualification is not available right now; pass script without segments or inserts";
151
- const REMOTE_FETCH_DISABLED = {
152
- kind: "rejected",
153
- message: "image is temporarily disabled (remote media fetch is off); omit it to render with the default actor",
154
- };
155
- const COMPOSE_DISABLED = {
156
- kind: "rejected",
157
- message: "background is not available right now. Request an aspect_ratio close to your image instead",
158
- };
159
123
  export function legacyCaptionWarnings(input) {
160
124
  return [
161
125
  ...(input.captions === true ? ["captions requested but not rendered in this prototype (stage-B)"] : []),
@@ -163,7 +127,6 @@ export function legacyCaptionWarnings(input) {
163
127
  ? ["caption_style is not honored: captions are not rendered in this prototype (stage-B)"] : []),
164
128
  ];
165
129
  }
166
- export const CAPTIONS_COMPOSE_DISABLED_WARNING = "captions were not drawn: composition is not available right now";
167
130
  export function compositionLayerFields(input) {
168
131
  return [
169
132
  ...(input.overlays !== undefined ? ["overlays"] : []),
@@ -182,14 +145,11 @@ export function compositionLayersNotDrawnWarnings(input, reason) {
182
145
  const fields = compositionLayerFields(input);
183
146
  return fields.length ? [`${fields.join(", ")} ${fields.length === 1 ? "was" : "were"} not drawn: ${reason}`] : [];
184
147
  }
185
- function longFormReady(flags) {
186
- return flags.longForm === true && flags.remoteFetch && flags.compose;
187
- }
188
148
  const LONG_FORM_DISABLED = { kind: "rejected", message: LONG_FORM_DISABLED_MESSAGE };
189
149
  const TEMPLATES_DISABLED = { kind: "rejected",
190
150
  message: "templates are not available right now; omit templates, template_theme and template_sounds" };
191
151
  export function resolveDispositions(flags) {
192
- const longForm = longFormReady(flags);
152
+ const longForm = flags.longForm;
193
153
  return {
194
154
  ...FIELD_DISPOSITIONS,
195
155
  segments: longForm ? FIELD_DISPOSITIONS.segments : LONG_FORM_DISABLED,
@@ -200,36 +160,22 @@ export function resolveDispositions(flags) {
200
160
  templates: longForm ? FIELD_DISPOSITIONS.templates : TEMPLATES_DISABLED,
201
161
  template_theme: longForm ? FIELD_DISPOSITIONS.template_theme : TEMPLATES_DISABLED,
202
162
  template_sounds: longForm ? FIELD_DISPOSITIONS.template_sounds : TEMPLATES_DISABLED,
203
- scenes: longForm && flags.scenes === true ? FIELD_DISPOSITIONS.scenes : { kind: "rejected", message: SCENES_DISABLED_MESSAGE },
204
- motion_style: flags.compose && flags.motionStyles === true ? FIELD_DISPOSITIONS.motion_style
205
- : { kind: "rejected", message: MOTION_STYLES_DISABLED_MESSAGE },
163
+ scenes: longForm ? FIELD_DISPOSITIONS.scenes : { kind: "rejected", message: SCENES_DISABLED_MESSAGE },
206
164
  edit_sounds: longForm ? FIELD_DISPOSITIONS.edit_sounds : LONG_FORM_DISABLED,
207
165
  call: longForm ? FIELD_DISPOSITIONS.call : LONG_FORM_DISABLED,
208
166
  interview: longForm ? FIELD_DISPOSITIONS.interview : LONG_FORM_DISABLED,
209
167
  presenter_gaze: longForm ? FIELD_DISPOSITIONS.presenter_gaze : LONG_FORM_DISABLED,
210
168
  end_hold_s: longForm ? FIELD_DISPOSITIONS.end_hold_s : LONG_FORM_DISABLED,
211
- shots: longForm && flags.liveShots === true ? FIELD_DISPOSITIONS.shots : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
212
- product_asset_id: longForm && flags.liveShots === true ? FIELD_DISPOSITIONS.product_asset_id
213
- : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
214
- person: flags.actorGeneration === true ? PERSON_WITH_ACTOR_GENERATION : FIELD_DISPOSITIONS.person,
215
- image: flags.remoteFetch ? FIELD_DISPOSITIONS.image : REMOTE_FETCH_DISABLED,
216
- actor_id: flags.remoteFetch ? FIELD_DISPOSITIONS.actor_id : {
217
- kind: "rejected", message: "actor_id is temporarily disabled (remote media fetch is off); omit it to use the default actor",
218
- },
219
- actor_gender: flags.remoteFetch ? FIELD_DISPOSITIONS.actor_gender : {
220
- kind: "rejected", message: "actor_gender is temporarily disabled together with image and actor_id (remote media fetch is off); omit it to use the default actor",
221
- },
222
- background: flags.compose ? FIELD_DISPOSITIONS.background : COMPOSE_DISABLED,
169
+ shots: longForm ? FIELD_DISPOSITIONS.shots : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
170
+ product_asset_id: longForm ? FIELD_DISPOSITIONS.product_asset_id : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
171
+ person: PERSON_WITH_ACTOR_GENERATION,
223
172
  visible_ai_label: flags.outputMarking === true ? FIELD_DISPOSITIONS.visible_ai_label : {
224
173
  kind: "rejected", message: "visible_ai_label is not available right now; omit it",
225
174
  },
226
- music: flags.music === true ? FIELD_DISPOSITIONS.music : { kind: "rejected", message: MUSIC_DISABLED_MESSAGE },
227
175
  };
228
176
  }
229
- export const EFFECTIVE_DISPOSITIONS = resolveDispositions({
230
- ...contractFlagsFromEnv(),
231
- actorGeneration: isActorGenerationEnabled(),
232
- });
177
+ export const dispositionsFor = (offer) => resolveDispositions(contractFlagsFor(offer));
178
+ const WARNING_DISPOSITIONS = dispositionsFor(BASE_OFFER);
233
179
  const FIELD_DEFAULTS = Object.fromEntries(CONTRACT_FIELDS.map((field) => {
234
180
  const parsed = makeUgcInputShape[field].safeParse(undefined);
235
181
  return [field, parsed.success ? parsed.data : undefined];
@@ -273,19 +219,17 @@ export const mcpUgcInputShape = { ...offeredUgcInputShape, ...compactlyDescribed
273
219
  interview: mcpUgcInterview.optional(), presenter_gaze: mcpPresenterGaze.optional(), shots: mcpLiveShots.optional(),
274
220
  design: mcpDesign.optional().describe("Look of templates, end card, caption highlight; absent: brand kit; not with template_theme. " +
275
221
  "look, fonts: from brand_kit; palette #RRGGBB.") };
276
- export function rejectedFields(input, env = typeof process === "undefined" ? {} : process.env) {
222
+ export function rejectedFields(input, offer = BASE_OFFER) {
223
+ const dispositions = dispositionsFor(offer);
277
224
  const hits = [];
278
225
  for (const field of CONTRACT_FIELDS) {
279
- const disposition = EFFECTIVE_DISPOSITIONS[field];
226
+ const disposition = dispositions[field];
280
227
  if (disposition.kind !== "rejected")
281
228
  continue;
282
229
  if (input[field] === undefined)
283
230
  continue;
284
231
  hits.push({ field, message: disposition.message });
285
232
  }
286
- if (!hits.some(hit => hit.field === "templates") && needsPresenterCutout(input.templates) && !isPresenterMatteEnabled(env)) {
287
- hits.push({ field: "templates", message: PRESENTER_MATTE_DISABLED_MESSAGE });
288
- }
289
233
  return hits;
290
234
  }
291
235
  const normalizedFieldName = (name) => name.toLowerCase().replace(/[^a-z0-9]/g, "");
@@ -304,7 +248,7 @@ export function unknownFields(raw, fields = CONTRACT_FIELDS) {
304
248
  export function dispositionWarnings(input) {
305
249
  const warnings = [];
306
250
  for (const field of CONTRACT_FIELDS) {
307
- const disposition = EFFECTIVE_DISPOSITIONS[field];
251
+ const disposition = WARNING_DISPOSITIONS[field];
308
252
  if (disposition.kind === "stored" && input[field] !== undefined && !carriesCustomerMedia(input)) {
309
253
  warnings.push(disposition.warning);
310
254
  }
@@ -1132,6 +1132,10 @@ export declare const workflowNativeInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
1132
1132
  "1080p": "1080p";
1133
1133
  "720p": "720p";
1134
1134
  }>>;
1135
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
1136
+ avatar6_turbo: "avatar6_turbo";
1137
+ avatar_iv: "avatar_iv";
1138
+ }>>;
1135
1139
  voice: z.ZodOptional<z.ZodString>;
1136
1140
  voice_id: z.ZodOptional<z.ZodString>;
1137
1141
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -1142,6 +1146,7 @@ export declare const workflowNativeInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
1142
1146
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
1143
1147
  }>>;
1144
1148
  voice_pace: z.ZodOptional<z.ZodNumber>;
1149
+ voice_run_id: z.ZodOptional<z.ZodString>;
1145
1150
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
1146
1151
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
1147
1152
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -8723,6 +8728,10 @@ export declare const workflowBrief: z.ZodObject<{
8723
8728
  "1080p": "1080p";
8724
8729
  "720p": "720p";
8725
8730
  }>>;
8731
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
8732
+ avatar6_turbo: "avatar6_turbo";
8733
+ avatar_iv: "avatar_iv";
8734
+ }>>;
8726
8735
  voice: z.ZodOptional<z.ZodString>;
8727
8736
  voice_id: z.ZodOptional<z.ZodString>;
8728
8737
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -8733,6 +8742,7 @@ export declare const workflowBrief: z.ZodObject<{
8733
8742
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
8734
8743
  }>>;
8735
8744
  voice_pace: z.ZodOptional<z.ZodNumber>;
8745
+ voice_run_id: z.ZodOptional<z.ZodString>;
8736
8746
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
8737
8747
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
8738
8748
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -1252,6 +1252,10 @@ export declare const methodDescriptor: z.ZodObject<{
1252
1252
  "1080p": "1080p";
1253
1253
  "720p": "720p";
1254
1254
  }>>;
1255
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
1256
+ avatar6_turbo: "avatar6_turbo";
1257
+ avatar_iv: "avatar_iv";
1258
+ }>>;
1255
1259
  voice: z.ZodOptional<z.ZodString>;
1256
1260
  voice_id: z.ZodOptional<z.ZodString>;
1257
1261
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -1262,6 +1266,7 @@ export declare const methodDescriptor: z.ZodObject<{
1262
1266
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
1263
1267
  }>>;
1264
1268
  voice_pace: z.ZodOptional<z.ZodNumber>;
1269
+ voice_run_id: z.ZodOptional<z.ZodString>;
1265
1270
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
1266
1271
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
1267
1272
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -9989,6 +9994,10 @@ export declare const workflowMethodResponse: z.ZodObject<{
9989
9994
  "1080p": "1080p";
9990
9995
  "720p": "720p";
9991
9996
  }>>;
9997
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
9998
+ avatar6_turbo: "avatar6_turbo";
9999
+ avatar_iv: "avatar_iv";
10000
+ }>>;
9992
10001
  voice: z.ZodOptional<z.ZodString>;
9993
10002
  voice_id: z.ZodOptional<z.ZodString>;
9994
10003
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -9999,6 +10008,7 @@ export declare const workflowMethodResponse: z.ZodObject<{
9999
10008
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
10000
10009
  }>>;
10001
10010
  voice_pace: z.ZodOptional<z.ZodNumber>;
10011
+ voice_run_id: z.ZodOptional<z.ZodString>;
10002
10012
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
10003
10013
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
10004
10014
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -2139,6 +2139,10 @@ export declare const workflowToolInputs: {
2139
2139
  "1080p": "1080p";
2140
2140
  "720p": "720p";
2141
2141
  }>>;
2142
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
2143
+ avatar6_turbo: "avatar6_turbo";
2144
+ avatar_iv: "avatar_iv";
2145
+ }>>;
2142
2146
  voice: z.ZodOptional<z.ZodString>;
2143
2147
  voice_id: z.ZodOptional<z.ZodString>;
2144
2148
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -2149,6 +2153,7 @@ export declare const workflowToolInputs: {
2149
2153
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
2150
2154
  }>>;
2151
2155
  voice_pace: z.ZodOptional<z.ZodNumber>;
2156
+ voice_run_id: z.ZodOptional<z.ZodString>;
2152
2157
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
2153
2158
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
2154
2159
  comma_s: z.ZodOptional<z.ZodNumber>;