@clipwright/core 0.71.0 → 0.73.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 (83) hide show
  1. package/dist/ad-guide.js +3 -2
  2. package/dist/ads.js +2 -3
  3. package/dist/api-failure.d.ts +1 -4
  4. package/dist/api-failure.js +6 -16
  5. package/dist/assets.d.ts +6 -0
  6. package/dist/billing-terms.d.ts +12 -0
  7. package/dist/contract-dispositions.d.ts +19 -1
  8. package/dist/contract-dispositions.js +2 -0
  9. package/dist/contracts/v1/workflow-brief.d.ts +10 -0
  10. package/dist/contracts/v1/workflow-catalog.d.ts +10 -0
  11. package/dist/contracts/v1/workflow-client.d.ts +5 -0
  12. package/dist/contracts/v1/workflow-execution.d.ts +16 -0
  13. package/dist/contracts/v1/workflow-plan.d.ts +15 -0
  14. package/dist/contracts/v1/workflow-run-read.d.ts +11 -0
  15. package/dist/cuts.js +2 -2
  16. package/dist/edit-music.js +5 -5
  17. package/dist/endpoint-notes.js +2 -0
  18. package/dist/endpoints.js +3 -0
  19. package/dist/errors.d.ts +2 -29
  20. package/dist/errors.js +2 -13
  21. package/dist/face-billing.d.ts +11 -1
  22. package/dist/face-billing.js +5 -2
  23. package/dist/faceless-price.d.ts +1 -0
  24. package/dist/faceless-price.js +1 -0
  25. package/dist/faceless-public.d.ts +29 -1
  26. package/dist/faceless-public.js +12 -24
  27. package/dist/film-cut.d.ts +0 -4
  28. package/dist/film-cut.js +2 -4
  29. package/dist/film-drafts.d.ts +11 -0
  30. package/dist/film-drafts.js +8 -0
  31. package/dist/film-guide.d.ts +10 -49
  32. package/dist/film-guide.js +37 -3
  33. package/dist/generations-output.d.ts +5 -0
  34. package/dist/generations-output.js +2 -0
  35. package/dist/generations.d.ts +25 -0
  36. package/dist/generations.js +3 -1
  37. package/dist/idempotency.d.ts +1 -0
  38. package/dist/idempotency.js +7 -0
  39. package/dist/index.d.ts +3 -0
  40. package/dist/index.js +3 -0
  41. package/dist/mascots.d.ts +110 -1
  42. package/dist/mascots.js +38 -1
  43. package/dist/mcp-ugc-descriptions.d.ts +1 -1
  44. package/dist/mcp-ugc-descriptions.js +1 -1
  45. package/dist/music.d.ts +1 -0
  46. package/dist/music.js +1 -0
  47. package/dist/openapi.js +13 -8
  48. package/dist/own-agent-price.d.ts +20 -3
  49. package/dist/own-agent-price.js +39 -8
  50. package/dist/own-agent-runs.d.ts +77 -23
  51. package/dist/own-agent-runs.js +26 -12
  52. package/dist/parts-pricing.d.ts +14 -5
  53. package/dist/parts-pricing.js +27 -14
  54. package/dist/presenter-engine.d.ts +17 -0
  55. package/dist/presenter-engine.js +35 -0
  56. package/dist/prices.d.ts +7 -3
  57. package/dist/prices.js +66 -20
  58. package/dist/reference-analysis.d.ts +47 -0
  59. package/dist/reference-analysis.js +7 -0
  60. package/dist/reference-display.js +3 -0
  61. package/dist/reference-film-kit.d.ts +43 -0
  62. package/dist/reference-film-kit.js +22 -0
  63. package/dist/render-backend.d.ts +1 -0
  64. package/dist/runs.d.ts +12 -0
  65. package/dist/skill-theme-explainer.js +3 -1
  66. package/dist/skill-theme.js +5 -0
  67. package/dist/skills.d.ts +58 -1
  68. package/dist/skills.js +70 -33
  69. package/dist/upscale.d.ts +120 -0
  70. package/dist/upscale.js +116 -0
  71. package/dist/voice-admission.d.ts +14 -0
  72. package/dist/voice-admission.js +9 -0
  73. package/dist/voice-listing.js +1 -1
  74. package/dist/voices.d.ts +1 -0
  75. package/dist/workflows/methods/faceless-explainer.d.ts +2 -0
  76. package/dist/workflows/methods/kinetic-launch.d.ts +4 -0
  77. package/dist/workflows/methods/product-image-story.d.ts +2 -0
  78. package/dist/workflows/methods/reference-remake.d.ts +2 -0
  79. package/dist/workflows/methods/shared.d.ts +2 -0
  80. package/dist/workflows/methods/ugc-faq-answer.d.ts +2 -0
  81. package/dist/workflows/methods/ugc-product-intro.d.ts +2 -0
  82. package/dist/workflows/methods/website-proof-demo.d.ts +4 -0
  83. package/package.json +1 -1
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>;
@@ -44,6 +44,10 @@ export declare const FIELD_DISPOSITIONS: {
44
44
  readonly kind: "implemented";
45
45
  readonly provenBy: "egress";
46
46
  };
47
+ readonly voice_run_id: {
48
+ readonly kind: "implemented";
49
+ readonly provenBy: "egress";
50
+ };
47
51
  readonly person: {
48
52
  readonly kind: "warned";
49
53
  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 +99,10 @@ export declare const FIELD_DISPOSITIONS: {
95
99
  readonly kind: "implemented";
96
100
  readonly provenBy: "egress";
97
101
  };
102
+ readonly presenter_engine: {
103
+ readonly kind: "implemented";
104
+ readonly provenBy: "egress";
105
+ };
98
106
  readonly image: {
99
107
  readonly kind: "implemented";
100
108
  readonly provenBy: "egress";
@@ -284,7 +292,7 @@ export declare function compositionLayerFields(input: {
284
292
  }): string[];
285
293
  export declare function compositionLayersNotDrawnWarnings(input: Parameters<typeof compositionLayerFields>[0], reason: string): string[];
286
294
  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>;
295
+ 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_engine" | "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" | "voice_run_id" | "webhook_url", Disposition>;
288
296
  type RejectedField = {
289
297
  [K in ContractField]: (typeof FIELD_DISPOSITIONS)[K]["kind"] extends "rejected" ? K : never;
290
298
  }[ContractField];
@@ -4490,6 +4498,10 @@ export declare const offeredUgcInput: z.ZodObject<{
4490
4498
  "1080p": "1080p";
4491
4499
  "720p": "720p";
4492
4500
  }>>;
4501
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
4502
+ avatar6_turbo: "avatar6_turbo";
4503
+ avatar_iv: "avatar_iv";
4504
+ }>>;
4493
4505
  voice: z.ZodOptional<z.ZodString>;
4494
4506
  voice_id: z.ZodOptional<z.ZodString>;
4495
4507
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -4500,6 +4512,7 @@ export declare const offeredUgcInput: z.ZodObject<{
4500
4512
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
4501
4513
  }>>;
4502
4514
  voice_pace: z.ZodOptional<z.ZodNumber>;
4515
+ voice_run_id: z.ZodOptional<z.ZodString>;
4503
4516
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
4504
4517
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
4505
4518
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -4815,6 +4828,10 @@ export declare const mcpUgcInputShape: {
4815
4828
  "1080p": "1080p";
4816
4829
  "720p": "720p";
4817
4830
  }>>;
4831
+ presenter_engine: z.ZodOptional<z.ZodEnum<{
4832
+ avatar6_turbo: "avatar6_turbo";
4833
+ avatar_iv: "avatar_iv";
4834
+ }>>;
4818
4835
  voice: z.ZodOptional<z.ZodString>;
4819
4836
  voice_id: z.ZodOptional<z.ZodString>;
4820
4837
  tts_model: z.ZodOptional<z.ZodEnum<{
@@ -4825,6 +4842,7 @@ export declare const mcpUgcInputShape: {
4825
4842
  "gemini-3.8-flash-tts": "gemini-3.8-flash-tts";
4826
4843
  }>>;
4827
4844
  voice_pace: z.ZodOptional<z.ZodNumber>;
4845
+ voice_run_id: z.ZodOptional<z.ZodString>;
4828
4846
  pause_trim: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
4829
4847
  sentence_end_s: z.ZodOptional<z.ZodNumber>;
4830
4848
  comma_s: z.ZodOptional<z.ZodNumber>;
@@ -30,6 +30,7 @@ export const FIELD_DISPOSITIONS = {
30
30
  tts_model: { kind: "implemented", provenBy: "egress" },
31
31
  voice_pace: { kind: "implemented", provenBy: "egress" },
32
32
  pause_trim: { kind: "implemented", provenBy: "egress" },
33
+ voice_run_id: { kind: "implemented", provenBy: "egress" },
33
34
  person: {
34
35
  kind: "warned",
35
36
  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 +55,7 @@ export const FIELD_DISPOSITIONS = {
54
55
  presenter_place: { kind: "implemented", provenBy: "egress" },
55
56
  resolution: { kind: "implemented", provenBy: "egress" },
56
57
  aspect_ratio: { kind: "implemented", provenBy: "egress" },
58
+ presenter_engine: { kind: "implemented", provenBy: "egress" },
57
59
  image: { kind: "implemented", provenBy: "egress" },
58
60
  actor_id: { kind: "implemented", provenBy: "egress" },
59
61
  presenter_framing: { kind: "implemented", provenBy: "egress" },
@@ -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>;
@@ -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, checked against its picture; picture: a picture; card: a " +
26
- "text card; footage: the user's own video, which needs no check"),
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)
@@ -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 cut by AI, paid on ' +
68
- 'delivery: "auto" takes the mood from the captions and the voice, { mood } says it in your words, such as "moody deep house"; it may ' +
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 cut 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 edit the music starts at"),
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 cut's end"),
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");
@@ -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 },