@clipwright/core 0.58.0 → 0.60.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 (92) hide show
  1. package/dist/actors.d.ts +18 -0
  2. package/dist/actors.js +17 -1
  3. package/dist/actors.js.map +1 -1
  4. package/dist/ad-guide.d.ts +6 -0
  5. package/dist/ad-guide.js +7 -0
  6. package/dist/ad-guide.js.map +1 -0
  7. package/dist/billing-terms.d.ts +8 -0
  8. package/dist/contract-dispositions.d.ts +48 -1
  9. package/dist/contract-dispositions.js +15 -2
  10. package/dist/contract-dispositions.js.map +1 -1
  11. package/dist/contracts/v1/workflow-brief.d.ts +102 -0
  12. package/dist/contracts/v1/workflow-catalog.d.ts +102 -0
  13. package/dist/contracts/v1/workflow-client.d.ts +51 -0
  14. package/dist/contracts/v1/workflow-execution.d.ts +206 -0
  15. package/dist/contracts/v1/workflow-next.d.ts +91 -0
  16. package/dist/contracts/v1/workflow-plan.d.ts +153 -0
  17. package/dist/contracts/v1/workflow-run-read.d.ts +17 -0
  18. package/dist/edit-shots.d.ts +83 -0
  19. package/dist/edit-shots.js +14 -1
  20. package/dist/edit-shots.js.map +1 -1
  21. package/dist/endpoint-notes.js +6 -4
  22. package/dist/endpoint-notes.js.map +1 -1
  23. package/dist/endpoints.js +3 -0
  24. package/dist/endpoints.js.map +1 -1
  25. package/dist/errors.d.ts +1 -1
  26. package/dist/errors.js +4 -0
  27. package/dist/errors.js.map +1 -1
  28. package/dist/face-billing.d.ts +54 -3
  29. package/dist/face-billing.js +19 -3
  30. package/dist/face-billing.js.map +1 -1
  31. package/dist/faceless-direction-summary.d.ts +29 -0
  32. package/dist/faceless-direction-summary.js +11 -0
  33. package/dist/faceless-direction-summary.js.map +1 -0
  34. package/dist/faceless-price.d.ts +51 -1
  35. package/dist/faceless-price.js +52 -2
  36. package/dist/faceless-price.js.map +1 -1
  37. package/dist/faceless-public.d.ts +221 -1
  38. package/dist/faceless-public.js +50 -9
  39. package/dist/faceless-public.js.map +1 -1
  40. package/dist/generations.d.ts +16 -3
  41. package/dist/generations.js +62 -23
  42. package/dist/generations.js.map +1 -1
  43. package/dist/index.d.ts +5 -0
  44. package/dist/index.js +5 -0
  45. package/dist/index.js.map +1 -1
  46. package/dist/live-shot-kinds.d.ts +64 -0
  47. package/dist/live-shot-kinds.js +114 -0
  48. package/dist/live-shot-kinds.js.map +1 -1
  49. package/dist/mcp-ugc-descriptions.js +3 -2
  50. package/dist/mcp-ugc-descriptions.js.map +1 -1
  51. package/dist/music.js +2 -1
  52. package/dist/music.js.map +1 -1
  53. package/dist/openapi.js +1 -0
  54. package/dist/openapi.js.map +1 -1
  55. package/dist/parts-pricing.d.ts +21 -2
  56. package/dist/parts-pricing.js +34 -4
  57. package/dist/parts-pricing.js.map +1 -1
  58. package/dist/prices.js +9 -9
  59. package/dist/prices.js.map +1 -1
  60. package/dist/resolved-timeline.d.ts +7 -0
  61. package/dist/resolved-timeline.js +5 -2
  62. package/dist/resolved-timeline.js.map +1 -1
  63. package/dist/run-static-warnings.js +2 -0
  64. package/dist/run-static-warnings.js.map +1 -1
  65. package/dist/runs.d.ts +18 -0
  66. package/dist/scene-bible.d.ts +49 -0
  67. package/dist/scene-bible.js +71 -0
  68. package/dist/scene-bible.js.map +1 -0
  69. package/dist/scene-proposal.d.ts +82 -0
  70. package/dist/scene-proposal.js +59 -0
  71. package/dist/scene-proposal.js.map +1 -0
  72. package/dist/skills.d.ts +4496 -107
  73. package/dist/skills.js +106 -34
  74. package/dist/skills.js.map +1 -1
  75. package/dist/trend-niches.js +4 -2
  76. package/dist/trend-niches.js.map +1 -1
  77. package/dist/trend-search.d.ts +10 -5
  78. package/dist/trend-search.js +23 -11
  79. package/dist/trend-search.js.map +1 -1
  80. package/dist/uploads.d.ts +1 -1
  81. package/dist/uploads.js +3 -3
  82. package/dist/uploads.js.map +1 -1
  83. package/dist/voice-admission.d.ts +51 -0
  84. package/dist/workflows/methods/faceless-explainer.d.ts +42 -0
  85. package/dist/workflows/methods/kinetic-launch.d.ts +84 -0
  86. package/dist/workflows/methods/product-image-story.d.ts +42 -0
  87. package/dist/workflows/methods/reference-remake.d.ts +42 -0
  88. package/dist/workflows/methods/shared.d.ts +42 -0
  89. package/dist/workflows/methods/ugc-faq-answer.d.ts +42 -0
  90. package/dist/workflows/methods/ugc-product-intro.d.ts +42 -0
  91. package/dist/workflows/methods/website-proof-demo.d.ts +84 -0
  92. package/package.json +1 -1
@@ -6,7 +6,9 @@ import { namedThings } from "./explainer-fit.js";
6
6
  /** The tariff new faceless runs are admitted on (#800); runs admitted on `faceless-image-i2v-v1` keep it. */
7
7
  export const FACELESS_TARIFF_ID = "faceless-parts-v1";
8
8
  export const FACELESS_LEGACY_TARIFF_ID = "faceless-image-i2v-v1";
9
- export const FACELESS_TARIFF_IDS = [FACELESS_TARIFF_ID, FACELESS_LEGACY_TARIFF_ID];
9
+ /** A directed video's tariff (#1573): its level, live seconds and direction line, frozen at admission. */
10
+ export const FACELESS_DIRECTED_TARIFF_ID = "faceless-parts-v2";
11
+ export const FACELESS_TARIFF_IDS = [FACELESS_TARIFF_ID, FACELESS_LEGACY_TARIFF_ID, FACELESS_DIRECTED_TARIFF_ID];
10
12
  /** A picture video ends with its speech and runs at least 25 s. */
11
13
  export const FACELESS_MIN_OUTPUT_FRAMES = 625;
12
14
  /** An explainer runs to its last word and 0.8 s past it, however short; one second is the shortest its composition draws (#1216). */
@@ -41,9 +43,15 @@ export const facelessQuote = z.object({
41
43
  imageCredits: z.number().int().nonnegative().optional(),
42
44
  /** Asked-for music, inside `totalCredits` (#1063); absent when not asked. */
43
45
  musicCredits: z.number().int().positive().optional(),
44
- /** Action shots (#1113), inside `totalCredits`: on a quote the ceiling, on a run the drawn seconds; absent when none was asked. */
46
+ /** Action shots (#1113) inside `totalCredits`: on a quote the ceiling, on a run the drawn seconds; absent when none was asked. A directed
47
+ * video's live seconds: on its quote all of them at the text-in-frame rate, the most it charges; on its run those with no text in frame. */
45
48
  shotSeconds: z.number().int().nonnegative().optional(),
46
49
  shotCredits: z.number().int().nonnegative().optional(),
50
+ /** A directed video's run: its live seconds whose frame shows readable text, a logo or a sign, inside `totalCredits`; absent elsewhere. */
51
+ textShotSeconds: z.number().int().nonnegative().optional(),
52
+ textShotCredits: z.number().int().nonnegative().optional(),
53
+ /** A directed video's quote: what it is charged when no live second shows readable text, at most `totalCredits`; absent elsewhere. */
54
+ totalCreditsWithoutText: z.number().int().nonnegative().optional(),
47
55
  /** Scenes made for the video (#1107 on faceless, #1113), inside `totalCredits`: asked on a quote, drawn on a run; absent when none was asked. */
48
56
  scenes: z.number().int().nonnegative().optional(),
49
57
  sceneCredits: z.number().int().nonnegative().optional(),
@@ -57,6 +65,8 @@ export const facelessQuote = z.object({
57
65
  objectPictureCredits: z.number().int().nonnegative().optional(),
58
66
  /** A drawn explainer film's price, inside `baseCredits` beside its hero's poses: on a quote at the selection, on a run at the delivered length. */
59
67
  filmCredits: z.number().int().positive().optional(),
68
+ /** A directed video's direction (its storyboard, look and sound), inside `totalCredits`; absent on other videos. */
69
+ directionCredits: z.number().int().positive().optional(),
60
70
  }).strict();
61
71
  /** A run's bill names the delivered frames, which may pass the selection or, on an explainer, fall short of 25 s; its total stays within the quote. */
62
72
  export const facelessRunBilling = facelessQuote.extend({ outputFrames: z.number().int().min(FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES)
@@ -155,4 +165,44 @@ export function quoteFaceless(input) {
155
165
  ...(shots ? { shotSeconds, shotCredits } : {}), ...(scenes ? { scenes, sceneCredits } : {}), ...(posePictures === undefined ? {} : { posePictures }),
156
166
  ...(authoredScenes ? { authoredScenes, authoredSceneCredits } : {}), ...(objectPictures ? { objectPictures, objectPictureCredits } : {}) };
157
167
  }
168
+ /** A directed video's prices (#1573): a live second, the direction line, and a picture made for the video; production and the minimum are
169
+ * the parts tariff's, with no opening clip. A video mostly on the caller's own pictures pays the smaller direction line. */
170
+ export const FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND = 12;
171
+ // A live second whose frame shows readable text, a logo or a sign costs the text rate; the hold counts every live second at it.
172
+ export const FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND = 20;
173
+ export const FACELESS_DIRECTED_DIRECTION_CREDITS = 120;
174
+ export const FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS = 60;
175
+ export const FACELESS_DIRECTED_IMAGE_CREDITS = 9;
176
+ /** The pictures a directed video may make: one per 2.5 selected seconds, at most 24, less the caller's own pictures. */
177
+ export const facelessDirectedPictures = (selectedSeconds) => Math.min(24, Math.ceil(selectedSeconds / 2.5));
178
+ /** The share of the selected seconds each level plays live: standard about a third, pro every second. Live shots are made at 720p only,
179
+ * so a 1080p video has none. */
180
+ export const FACELESS_DIRECTED_LIVE_SHARE = { standard: 1 / 3, pro: 1 };
181
+ /** The most a directed video is charged on its level, which is also the budget it is planned within: every picture it may
182
+ * make, every selected second, the direction, and the level's live seconds held at the text rate, whole seconds that fit `maxCredits`. */
183
+ export function quoteDirectedFaceless(ask) {
184
+ // The run is charged what it shows, text seconds at 20 and the rest at 12: `totalCreditsWithoutText` is the charge when none shows text.
185
+ const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).multipleOf(25).parse(ask.outputFrames);
186
+ const seconds = outputFrames / 25, pictures = facelessDirectedPictures(seconds);
187
+ const own = z.number().int().nonnegative().parse(ask.ownPictures), stillsCeiling = Math.max(0, pictures - own);
188
+ const ownPicturesRun = own > 0 && own * 2 >= pictures;
189
+ const directionCredits = ownPicturesRun ? FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS : FACELESS_DIRECTED_DIRECTION_CREDITS;
190
+ const liveSecondsCeiling = ask.resolution === "1080p" ? 0 : Math.floor(seconds * FACELESS_DIRECTED_LIVE_SHARE[ask.tier]);
191
+ const baseCredits = facelessPartsBaseAt(stillsCeiling, FACELESS_DIRECTED_IMAGE_CREDITS, outputFrames);
192
+ const musicCredits = ask.music === undefined ? 0 : MUSIC_BED_CREDITS;
193
+ const fixed = Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits + directionCredits) + musicCredits;
194
+ const text = FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND, plain = FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND;
195
+ const fits = ask.maxCredits === undefined ? liveSecondsCeiling : Math.floor((ask.maxCredits - fixed) / text);
196
+ const shotSeconds = Math.max(0, Math.min(liveSecondsCeiling, fits)), shotCredits = shotSeconds * text;
197
+ // A level plays at most its held seconds with or without text: the hold covers them at the text rate.
198
+ const plainLiveSeconds = shotSeconds;
199
+ return { liveSecondsCeiling, plainLiveSeconds, stillsCeiling, ownPicturesRun, quote: { outputFrames, baseCredits, openerCredits: 0,
200
+ totalCredits: fixed + shotCredits, totalCreditsWithoutText: fixed + plainLiveSeconds * plain, tariffId: FACELESS_DIRECTED_TARIFF_ID,
201
+ captions: z.boolean().parse(ask.captions), images: stillsCeiling, imageCredits: FACELESS_DIRECTED_IMAGE_CREDITS, directionCredits, shotSeconds,
202
+ shotCredits, ...(musicCredits ? { musicCredits } : {}) } };
203
+ }
204
+ /** The parts base at a picture price: `images` pictures and every second of `outputFrames`, the seconds rounded up once. */
205
+ export function facelessPartsBaseAt(images, imageCredits, outputFrames) {
206
+ return images * imageCredits + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
207
+ }
158
208
  //# sourceMappingURL=faceless-price.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"faceless-price.js","sourceRoot":"","sources":["../src/faceless-price.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnH,OAAO,EAAE,iBAAiB,EAAqB,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,iB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AAkB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7G,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,IAAI,CAAC;IACtG,sGAAsG;IACtG,MAAM,gBAAgB,GAAG,WAAW,CAAC;IACrC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;YAChI,YAAY,EAAE,KAAK,GAAG,WAAW,EAAE,uBAAuB,EAAE,KAAK,GAAG,gBAAgB,GAAG,KAAK,EAAE,QAAQ,EAAE,2BAA2B;YACnI,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,WAAW;YAC9I,WAAW,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AAC/D,CAAC;AAED,4HAA4H;AAC5H,MAAM,UAAU,mBAAmB,CAAC,MAAc,EAAE,YAAoB,EAAE,YAAoB;IAC5F,OAAO,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,gCAAgC,GAAG,YAAY,GAAG,IAAI,CAAC,CAAC;AACnG,CAAC"}
@@ -71,8 +71,32 @@ export declare function mascotFieldRefusals(input: Record<string, unknown>): {
71
71
  path: string[];
72
72
  message: string;
73
73
  }[];
74
- /** A tier picks the explainer's level, so it means nothing on another format. */
74
+ /** A tier picks the explainer's level, or a directed video's (#1573), so it means nothing on another run. */
75
75
  export declare const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
76
+ /** The schema takes `tier` on any format; admission refuses it before any reserve unless the run is an explainer or directed. */
77
+ export declare function facelessTierRefusal(input: {
78
+ tier?: unknown;
79
+ format?: unknown;
80
+ }, directed: boolean): string | null;
81
+ /** A directed run's level: `standard` unless asked, so the cheaper level is never a surprise. */
82
+ export declare function directedFacelessTier(input: {
83
+ tier?: (typeof EXPLAINER_TIERS)[number] | undefined;
84
+ }): (typeof EXPLAINER_TIERS)[number];
85
+ /** Server-only: admission freezes a directed video's level and how the caller's pictures may be placed (#1573): `none` without pictures,
86
+ * `keep` on their anchors, `by_meaning` where one plainly shows another sentence. A public body naming it is refused as an unknown field. */
87
+ export declare const facelessDirectedMark: z.ZodObject<{
88
+ version: z.ZodLiteral<1>;
89
+ tier: z.ZodEnum<{
90
+ pro: "pro";
91
+ standard: "standard";
92
+ }>;
93
+ pairing: z.ZodEnum<{
94
+ by_meaning: "by_meaning";
95
+ keep: "keep";
96
+ none: "none";
97
+ }>;
98
+ }, z.core.$strict>;
99
+ export type FacelessDirectedMark = z.infer<typeof facelessDirectedMark>;
76
100
  /** The line a faceless quote and run name when a style has nothing to dress: captions off and no templates or scenes (#1123). */
77
101
  export declare function facelessMotionStyleWarnings(input: {
78
102
  motion_style?: Parameters<typeof motionStyleAsked>[0]["motion_style"];
@@ -373,6 +397,22 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
373
397
  "720p": "720p";
374
398
  }>>;
375
399
  max_credits: z.ZodOptional<z.ZodNumber>;
400
+ scene: z.ZodOptional<z.ZodObject<{
401
+ place: z.ZodOptional<z.ZodString>;
402
+ posture: z.ZodOptional<z.ZodEnum<{
403
+ seated: "seated";
404
+ standing: "standing";
405
+ }>>;
406
+ wardrobe: z.ZodOptional<z.ZodString>;
407
+ product: z.ZodOptional<z.ZodString>;
408
+ props: z.ZodOptional<z.ZodArray<z.ZodString>>;
409
+ light: z.ZodOptional<z.ZodString>;
410
+ }, z.core.$strict>>;
411
+ proposal: z.ZodOptional<z.ZodObject<{
412
+ id: z.ZodString;
413
+ accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
414
+ }, z.core.$strict>>;
415
+ propose: z.ZodOptional<z.ZodLiteral<false>>;
376
416
  input_mode: z.ZodLiteral<"script">;
377
417
  script: z.ZodString;
378
418
  transitions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
@@ -3127,6 +3167,7 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3127
3167
  comma_s: z.ZodOptional<z.ZodNumber>;
3128
3168
  mid_phrase_s: z.ZodOptional<z.ZodNumber>;
3129
3169
  }, z.core.$strict>]>>;
3170
+ keep_anchors: z.ZodOptional<z.ZodBoolean>;
3130
3171
  }, z.core.$strict>, z.ZodObject<{
3131
3172
  duration_seconds: z.ZodNumber;
3132
3173
  style_reference: z.ZodOptional<z.ZodString>;
@@ -3397,6 +3438,22 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3397
3438
  "720p": "720p";
3398
3439
  }>>;
3399
3440
  max_credits: z.ZodOptional<z.ZodNumber>;
3441
+ scene: z.ZodOptional<z.ZodObject<{
3442
+ place: z.ZodOptional<z.ZodString>;
3443
+ posture: z.ZodOptional<z.ZodEnum<{
3444
+ seated: "seated";
3445
+ standing: "standing";
3446
+ }>>;
3447
+ wardrobe: z.ZodOptional<z.ZodString>;
3448
+ product: z.ZodOptional<z.ZodString>;
3449
+ props: z.ZodOptional<z.ZodArray<z.ZodString>>;
3450
+ light: z.ZodOptional<z.ZodString>;
3451
+ }, z.core.$strict>>;
3452
+ proposal: z.ZodOptional<z.ZodObject<{
3453
+ id: z.ZodString;
3454
+ accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
3455
+ }, z.core.$strict>>;
3456
+ propose: z.ZodOptional<z.ZodLiteral<false>>;
3400
3457
  input_mode: z.ZodLiteral<"brief">;
3401
3458
  brief: z.ZodString;
3402
3459
  transitions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
@@ -3411,6 +3468,7 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3411
3468
  scenes: z.ZodOptional<z.ZodNever>;
3412
3469
  moves: z.ZodOptional<z.ZodNever>;
3413
3470
  pause_trim: z.ZodOptional<z.ZodNever>;
3471
+ keep_anchors: z.ZodOptional<z.ZodNever>;
3414
3472
  }, z.core.$strict>], "input_mode">;
3415
3473
  export type MakeFacelessInput = z.infer<typeof makeFacelessInput>;
3416
3474
  export type MakeFacelessInputArgs = z.input<typeof makeFacelessInput>;
@@ -3801,6 +3859,22 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3801
3859
  "720p": "720p";
3802
3860
  }>>;
3803
3861
  max_credits: z.ZodOptional<z.ZodNumber>;
3862
+ scene: z.ZodOptional<z.ZodObject<{
3863
+ place: z.ZodOptional<z.ZodString>;
3864
+ posture: z.ZodOptional<z.ZodEnum<{
3865
+ seated: "seated";
3866
+ standing: "standing";
3867
+ }>>;
3868
+ wardrobe: z.ZodOptional<z.ZodString>;
3869
+ product: z.ZodOptional<z.ZodString>;
3870
+ props: z.ZodOptional<z.ZodArray<z.ZodString>>;
3871
+ light: z.ZodOptional<z.ZodString>;
3872
+ }, z.core.$strict>>;
3873
+ proposal: z.ZodOptional<z.ZodObject<{
3874
+ id: z.ZodString;
3875
+ accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
3876
+ }, z.core.$strict>>;
3877
+ propose: z.ZodOptional<z.ZodLiteral<false>>;
3804
3878
  input_mode: z.ZodLiteral<"script">;
3805
3879
  script: z.ZodString;
3806
3880
  transitions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
@@ -6555,6 +6629,7 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
6555
6629
  comma_s: z.ZodOptional<z.ZodNumber>;
6556
6630
  mid_phrase_s: z.ZodOptional<z.ZodNumber>;
6557
6631
  }, z.core.$strict>]>>;
6632
+ keep_anchors: z.ZodOptional<z.ZodBoolean>;
6558
6633
  insert_assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
6559
6634
  insert_id: z.ZodString;
6560
6635
  slot: z.ZodOptional<z.ZodString>;
@@ -6632,6 +6707,27 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
6632
6707
  }, z.core.$strict>>;
6633
6708
  captures: z.ZodBoolean;
6634
6709
  }, z.core.$strict>>;
6710
+ scene_direction: z.ZodOptional<z.ZodObject<{
6711
+ mode: z.ZodLiteral<"complete">;
6712
+ proposal: z.ZodOptional<z.ZodObject<{
6713
+ id: z.ZodString;
6714
+ content_digest: z.ZodString;
6715
+ accepted: z.ZodArray<z.ZodString>;
6716
+ }, z.core.$strict>>;
6717
+ knowledge: z.ZodOptional<z.ZodLiteral<"ugc_ad">>;
6718
+ }, z.core.$strict>>;
6719
+ directed: z.ZodOptional<z.ZodObject<{
6720
+ version: z.ZodLiteral<1>;
6721
+ tier: z.ZodEnum<{
6722
+ pro: "pro";
6723
+ standard: "standard";
6724
+ }>;
6725
+ pairing: z.ZodEnum<{
6726
+ by_meaning: "by_meaning";
6727
+ keep: "keep";
6728
+ none: "none";
6729
+ }>;
6730
+ }, z.core.$strict>>;
6635
6731
  }, z.core.$strict>, z.ZodObject<{
6636
6732
  duration_seconds: z.ZodNumber;
6637
6733
  style_reference: z.ZodOptional<z.ZodString>;
@@ -6902,6 +6998,22 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
6902
6998
  "720p": "720p";
6903
6999
  }>>;
6904
7000
  max_credits: z.ZodOptional<z.ZodNumber>;
7001
+ scene: z.ZodOptional<z.ZodObject<{
7002
+ place: z.ZodOptional<z.ZodString>;
7003
+ posture: z.ZodOptional<z.ZodEnum<{
7004
+ seated: "seated";
7005
+ standing: "standing";
7006
+ }>>;
7007
+ wardrobe: z.ZodOptional<z.ZodString>;
7008
+ product: z.ZodOptional<z.ZodString>;
7009
+ props: z.ZodOptional<z.ZodArray<z.ZodString>>;
7010
+ light: z.ZodOptional<z.ZodString>;
7011
+ }, z.core.$strict>>;
7012
+ proposal: z.ZodOptional<z.ZodObject<{
7013
+ id: z.ZodString;
7014
+ accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
7015
+ }, z.core.$strict>>;
7016
+ propose: z.ZodOptional<z.ZodLiteral<false>>;
6905
7017
  input_mode: z.ZodLiteral<"brief">;
6906
7018
  brief: z.ZodString;
6907
7019
  transitions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
@@ -6916,6 +7028,28 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
6916
7028
  scenes: z.ZodOptional<z.ZodNever>;
6917
7029
  moves: z.ZodOptional<z.ZodNever>;
6918
7030
  pause_trim: z.ZodOptional<z.ZodNever>;
7031
+ keep_anchors: z.ZodOptional<z.ZodNever>;
7032
+ scene_direction: z.ZodOptional<z.ZodObject<{
7033
+ mode: z.ZodLiteral<"complete">;
7034
+ proposal: z.ZodOptional<z.ZodObject<{
7035
+ id: z.ZodString;
7036
+ content_digest: z.ZodString;
7037
+ accepted: z.ZodArray<z.ZodString>;
7038
+ }, z.core.$strict>>;
7039
+ knowledge: z.ZodOptional<z.ZodLiteral<"ugc_ad">>;
7040
+ }, z.core.$strict>>;
7041
+ directed: z.ZodOptional<z.ZodObject<{
7042
+ version: z.ZodLiteral<1>;
7043
+ tier: z.ZodEnum<{
7044
+ pro: "pro";
7045
+ standard: "standard";
7046
+ }>;
7047
+ pairing: z.ZodEnum<{
7048
+ by_meaning: "by_meaning";
7049
+ keep: "keep";
7050
+ none: "none";
7051
+ }>;
7052
+ }, z.core.$strict>>;
6919
7053
  }, z.core.$strict>, z.ZodObject<{
6920
7054
  input_mode: z.ZodLiteral<"revision">;
6921
7055
  revision: z.ZodObject<{
@@ -7109,12 +7243,29 @@ export declare const offeredFacelessInputShape: {
7109
7243
  standard: "standard";
7110
7244
  }>>;
7111
7245
  pause_trim: z.ZodOptional<z.ZodUnknown>;
7246
+ keep_anchors: z.ZodOptional<z.ZodBoolean>;
7112
7247
  voice: z.ZodOptional<z.ZodString>;
7113
7248
  resolution: z.ZodOptional<z.ZodEnum<{
7114
7249
  "1080p": "1080p";
7115
7250
  "720p": "720p";
7116
7251
  }>>;
7117
7252
  max_credits: z.ZodOptional<z.ZodNumber>;
7253
+ scene: z.ZodOptional<z.ZodObject<{
7254
+ place: z.ZodOptional<z.ZodString>;
7255
+ posture: z.ZodOptional<z.ZodEnum<{
7256
+ seated: "seated";
7257
+ standing: "standing";
7258
+ }>>;
7259
+ wardrobe: z.ZodOptional<z.ZodString>;
7260
+ product: z.ZodOptional<z.ZodString>;
7261
+ props: z.ZodOptional<z.ZodArray<z.ZodString>>;
7262
+ light: z.ZodOptional<z.ZodString>;
7263
+ }, z.core.$strict>>;
7264
+ proposal: z.ZodOptional<z.ZodObject<{
7265
+ id: z.ZodString;
7266
+ accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
7267
+ }, z.core.$strict>>;
7268
+ propose: z.ZodOptional<z.ZodLiteral<false>>;
7118
7269
  };
7119
7270
  /** The flat form as a tool input: an undeclared key is refused at the tool boundary, */
7120
7271
  /** a field refused by name with its registry reason. */
@@ -7175,12 +7326,29 @@ export declare const offeredFacelessInput: z.ZodObject<{
7175
7326
  standard: "standard";
7176
7327
  }>>;
7177
7328
  pause_trim: z.ZodOptional<z.ZodUnknown>;
7329
+ keep_anchors: z.ZodOptional<z.ZodBoolean>;
7178
7330
  voice: z.ZodOptional<z.ZodString>;
7179
7331
  resolution: z.ZodOptional<z.ZodEnum<{
7180
7332
  "1080p": "1080p";
7181
7333
  "720p": "720p";
7182
7334
  }>>;
7183
7335
  max_credits: z.ZodOptional<z.ZodNumber>;
7336
+ scene: z.ZodOptional<z.ZodObject<{
7337
+ place: z.ZodOptional<z.ZodString>;
7338
+ posture: z.ZodOptional<z.ZodEnum<{
7339
+ seated: "seated";
7340
+ standing: "standing";
7341
+ }>>;
7342
+ wardrobe: z.ZodOptional<z.ZodString>;
7343
+ product: z.ZodOptional<z.ZodString>;
7344
+ props: z.ZodOptional<z.ZodArray<z.ZodString>>;
7345
+ light: z.ZodOptional<z.ZodString>;
7346
+ }, z.core.$strict>>;
7347
+ proposal: z.ZodOptional<z.ZodObject<{
7348
+ id: z.ZodString;
7349
+ accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
7350
+ }, z.core.$strict>>;
7351
+ propose: z.ZodOptional<z.ZodLiteral<false>>;
7184
7352
  }, z.core.$strict>;
7185
7353
  export declare const facelessPlannerInput: z.ZodObject<{
7186
7354
  script: z.ZodString;
@@ -7201,6 +7369,7 @@ export declare const facelessQuoteResponse: z.ZodObject<{
7201
7369
  tariffId: z.ZodEnum<{
7202
7370
  "faceless-image-i2v-v1": "faceless-image-i2v-v1";
7203
7371
  "faceless-parts-v1": "faceless-parts-v1";
7372
+ "faceless-parts-v2": "faceless-parts-v2";
7204
7373
  }>;
7205
7374
  captions: z.ZodBoolean;
7206
7375
  images: z.ZodOptional<z.ZodNumber>;
@@ -7208,6 +7377,9 @@ export declare const facelessQuoteResponse: z.ZodObject<{
7208
7377
  musicCredits: z.ZodOptional<z.ZodNumber>;
7209
7378
  shotSeconds: z.ZodOptional<z.ZodNumber>;
7210
7379
  shotCredits: z.ZodOptional<z.ZodNumber>;
7380
+ textShotSeconds: z.ZodOptional<z.ZodNumber>;
7381
+ textShotCredits: z.ZodOptional<z.ZodNumber>;
7382
+ totalCreditsWithoutText: z.ZodOptional<z.ZodNumber>;
7211
7383
  scenes: z.ZodOptional<z.ZodNumber>;
7212
7384
  sceneCredits: z.ZodOptional<z.ZodNumber>;
7213
7385
  posePictures: z.ZodOptional<z.ZodNumber>;
@@ -7216,6 +7388,7 @@ export declare const facelessQuoteResponse: z.ZodObject<{
7216
7388
  objectPictures: z.ZodOptional<z.ZodNumber>;
7217
7389
  objectPictureCredits: z.ZodOptional<z.ZodNumber>;
7218
7390
  filmCredits: z.ZodOptional<z.ZodNumber>;
7391
+ directionCredits: z.ZodOptional<z.ZodNumber>;
7219
7392
  skill: z.ZodLiteral<"make_faceless">;
7220
7393
  explainer_fit: z.ZodOptional<z.ZodObject<{
7221
7394
  fits: z.ZodBoolean;
@@ -7230,6 +7403,53 @@ export declare const facelessQuoteResponse: z.ZodObject<{
7230
7403
  standard: z.ZodNumber;
7231
7404
  pro: z.ZodNumber;
7232
7405
  }, z.core.$strict>>;
7406
+ tiers: z.ZodOptional<z.ZodObject<{
7407
+ tier: z.ZodEnum<{
7408
+ pro: "pro";
7409
+ standard: "standard";
7410
+ }>;
7411
+ standard: z.ZodNumber;
7412
+ pro: z.ZodNumber;
7413
+ }, z.core.$strict>>;
7414
+ scene_proposal: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7415
+ state: z.ZodLiteral<"writing">;
7416
+ retry_after_s: z.ZodNumber;
7417
+ }, z.core.$strict>, z.ZodObject<{
7418
+ state: z.ZodLiteral<"ready">;
7419
+ id: z.ZodString;
7420
+ expires_at: z.ZodString;
7421
+ scene: z.ZodOptional<z.ZodObject<{
7422
+ place: z.ZodOptional<z.ZodString>;
7423
+ posture: z.ZodOptional<z.ZodEnum<{
7424
+ seated: "seated";
7425
+ standing: "standing";
7426
+ }>>;
7427
+ wardrobe: z.ZodOptional<z.ZodString>;
7428
+ product: z.ZodOptional<z.ZodString>;
7429
+ props: z.ZodOptional<z.ZodArray<z.ZodString>>;
7430
+ light: z.ZodOptional<z.ZodString>;
7431
+ }, z.core.$strict>>;
7432
+ free: z.ZodArray<z.ZodObject<{
7433
+ what: z.ZodString;
7434
+ }, z.core.$strict>>;
7435
+ options: z.ZodArray<z.ZodObject<{
7436
+ id: z.ZodString;
7437
+ what: z.ZodString;
7438
+ field: z.ZodEnum<{
7439
+ moves: "moves";
7440
+ music: "music";
7441
+ scenes: "scenes";
7442
+ shots: "shots";
7443
+ }>;
7444
+ credits: z.ZodNumber;
7445
+ item: z.ZodUnknown;
7446
+ }, z.core.$strict>>;
7447
+ base_credits: z.ZodNumber;
7448
+ notes: z.ZodArray<z.ZodString>;
7449
+ }, z.core.$strict>, z.ZodObject<{
7450
+ state: z.ZodLiteral<"unavailable">;
7451
+ reason: z.ZodString;
7452
+ }, z.core.$strict>], "state">>;
7233
7453
  warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
7234
7454
  contract_version: z.ZodString;
7235
7455
  }, z.core.$strict>;
@@ -23,6 +23,8 @@ import { pauseTrim } from "./reference-voice.js";
23
23
  import { pinnedMascot } from "./mascots.js";
24
24
  import { filmDirections } from "./film-directions.js";
25
25
  import { maxCreditsField } from "./max-credits.js";
26
+ import { FACELESS_SCENE_DESCRIPTION, sceneBible, sceneDirectionMark } from "./scene-bible.js";
27
+ import { facelessProposeField, facelessSceneProposalAccept, sceneProposal } from "./scene-proposal.js";
26
28
  export const qualifiedImageUrl = uploadResponse.shape.url.max(MAX_URL_LENGTH).refine((value) => {
27
29
  const host = new URL(value).hostname.toLowerCase();
28
30
  return host !== "localhost" && !host.endsWith(".localhost") &&
@@ -100,6 +102,11 @@ const common = {
100
102
  resolution: offeredResolution.optional().describe("Output resolution: 720p (720x1280) or 1080p (1080x1920). Omitted means 720p. " +
101
103
  "The price does not depend on it."),
102
104
  max_credits: maxCreditsField,
105
+ // make_ugc's scene (#1491); its posture is the main character's.
106
+ scene: sceneBible.optional(),
107
+ // quote_faceless's scene proposal (#1491), as on make_ugc: admission expands an accepted one into the fields above.
108
+ proposal: facelessSceneProposalAccept.optional(),
109
+ propose: facelessProposeField,
103
110
  };
104
111
  /** The frame a faceless run delivers: 720 by 1280 when admission pinned 720p (#911), else the 1080 by 1920 of every earlier run and every revision. */
105
112
  export function facelessRunFrame(storedInput) {
@@ -154,13 +161,24 @@ export function mascotFieldRefusals(input) {
154
161
  .map(field => ({ path: [field], message: `mascot_id is the hero already made; omit ${field}` })),
155
162
  ];
156
163
  }
157
- /** A tier picks the explainer's level, so it means nothing on another format. */
164
+ /** A tier picks the explainer's level, or a directed video's (#1573), so it means nothing on another run. */
158
165
  export const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
159
166
  function refuseExplainerFields(input, context) {
160
- const tier = input.tier !== undefined && input.format !== "explainer" ? [{ path: ["tier"], message: EXPLAINER_TIER_REFUSAL }] : [];
161
- for (const { path, message } of [...explainerFieldRefusals(input), ...mascotFieldRefusals(input), ...tier])
167
+ for (const { path, message } of [...explainerFieldRefusals(input), ...mascotFieldRefusals(input)])
162
168
  context.addIssue({ code: customIssue, path, message });
163
169
  }
170
+ /** The schema takes `tier` on any format; admission refuses it before any reserve unless the run is an explainer or directed. */
171
+ export function facelessTierRefusal(input, directed) {
172
+ return input.tier !== undefined && input.format !== "explainer" && !directed ? EXPLAINER_TIER_REFUSAL : null;
173
+ }
174
+ /** A directed run's level: `standard` unless asked, so the cheaper level is never a surprise. */
175
+ export function directedFacelessTier(input) {
176
+ return input.tier ?? "standard";
177
+ }
178
+ /** Server-only: admission freezes a directed video's level and how the caller's pictures may be placed (#1573): `none` without pictures,
179
+ * `keep` on their anchors, `by_meaning` where one plainly shows another sentence. A public body naming it is refused as an unknown field. */
180
+ export const facelessDirectedMark = z.strictObject({ version: z.literal(1), tier: z.enum(EXPLAINER_TIERS),
181
+ pairing: z.enum(["none", "keep", "by_meaning"]) });
164
182
  /** The line a faceless quote and run name when a style has nothing to dress: captions off and no templates or scenes (#1123). */
165
183
  export function facelessMotionStyleWarnings(input) {
166
184
  return motionStyleAsked(input) && !motionStyleHasCanvas({ ...input, captions: input.captions !== false }) ? [MOTION_STYLE_UNUSED_WARNING] : [];
@@ -203,6 +221,8 @@ const scriptShape = { ...common,
203
221
  moves: z.array(ugcMove).min(1).max(MAX_MOVES).optional(),
204
222
  // make_ugc's field (#1228): the narration's pauses are cut before its words are timed, so everything drawn on them follows the cut.
205
223
  pause_trim: z.union([z.literal(false), pauseTrim]).optional(),
224
+ // #1573: true pins every scene image to its anchor; otherwise a picture that plainly shows another sentence may move there, named in warnings[].
225
+ keep_anchors: z.boolean().optional(),
206
226
  };
207
227
  const scriptBase = z.object(scriptShape).strict();
208
228
  function refineScript(input, context) {
@@ -243,8 +263,11 @@ const storedScriptInput = z.object({ ...scriptShape,
243
263
  mascot: pinnedMascot.optional(),
244
264
  /** What the workflow method the run was launched from requires of its film (#1461). */
245
265
  workflow_directions: filmDirections.optional(),
266
+ /** Set when admission froze the scene director for the run (#1491). */
267
+ scene_direction: sceneDirectionMark.optional(),
268
+ directed: facelessDirectedMark.optional(),
246
269
  }).strict().superRefine(refineScript);
247
- const briefInput = z.object({ ...common,
270
+ const briefShape = { ...common,
248
271
  input_mode: z.literal("brief"),
249
272
  brief: z.string().trim().min(1).max(10_000),
250
273
  transitions: orPlainCuts(briefTransitions).optional(),
@@ -254,13 +277,18 @@ const briefInput = z.object({ ...common,
254
277
  scenes: z.never({ error: "scenes need input_mode script: they sit on the narration's words" }).optional(),
255
278
  moves: z.never({ error: "moves need input_mode script: they sit on the narration's words" }).optional(),
256
279
  pause_trim: z.never({ error: "pause_trim needs input_mode script" }).optional(),
257
- }).strict().superRefine((input, context) => {
280
+ keep_anchors: z.never({ error: "keep_anchors needs input_mode script: it keeps your scene_images on the words you anchored them to" }).optional(),
281
+ };
282
+ function refineBrief(input, context) {
258
283
  refuseSounds(input, context);
259
284
  refuseExplainerFields(input, context);
260
285
  if (input.motion_style?.spans)
261
286
  context.addIssue({ code: customIssue, path: ["motion_style", "spans"],
262
287
  message: "motion_style spans need input_mode script: they sit on the narration's words; a brief takes style only" });
263
- });
288
+ }
289
+ const briefInput = z.object(briefShape).strict().superRefine(refineBrief);
290
+ const storedBriefInput = z.object({ ...briefShape, scene_direction: sceneDirectionMark.optional(), directed: facelessDirectedMark.optional() })
291
+ .strict().superRefine(refineBrief);
264
292
  export const makeFacelessInput = z.discriminatedUnion("input_mode", [scriptInput, briefInput]);
265
293
  /** The stored input of a revision: the request as resolved, and what admission froze about it. */
266
294
  export const facelessRevisionInput = z.strictObject({
@@ -269,7 +297,7 @@ export const facelessRevisionInput = z.strictObject({
269
297
  resolved_revision: z.strictObject({ root_run_id: runId, own_images: z.boolean(), summary: editSummaryWire, billing: revisionBilling }),
270
298
  });
271
299
  /** What a `make_faceless` run stores as its input: a generate request or a revision. */
272
- export const facelessStoredInput = z.discriminatedUnion("input_mode", [storedScriptInput, briefInput, facelessRevisionInput]);
300
+ export const facelessStoredInput = z.discriminatedUnion("input_mode", [storedScriptInput, storedBriefInput, facelessRevisionInput]);
273
301
  /** Admission and the run validate accepted input without canonicalizing its narration again. */
274
302
  /** A brief's default flash is frozen here, so the stored input names what the video draws; a stored input is read as stored. */
275
303
  export function parseFacelessInputPreservingScript(input) {
@@ -346,10 +374,16 @@ export const offeredFacelessInputShape = {
346
374
  "rewrite into actions before asking. The hero: mascot_id, else your brand's mascot, free; else the character you name or one that fits " +
347
375
  `the script, its ${FACELESS_EXPLAINER_POSE_PICTURES} pose pictures at ${FACELESS_IMAGE_CREDITS} each on the quote. Priced as one film by tier; ` +
348
376
  "a film takes about half an hour. Without voice, an English script is read by our fastest voice."),
349
- tier: common.tier.describe(`Format explainer only. 'standard' (default): ${tierPrice("standard")}. 'pro': more careful direction and ` +
350
- `richer scenes, ${tierPrice("pro")}. Pose pictures are on top. quote_faceless names both totals: show them and let the user pick.`),
377
+ tier: common.tier.describe(`Format explainer: 'standard' (default): ${tierPrice("standard")}. 'pro': more careful direction and ` +
378
+ `richer scenes, ${tierPrice("pro")}. Pose pictures are on top. quote_faceless names both totals: show them and let the user pick. ` +
379
+ "Other formats, where your account has the two levels: 'standard' (default) is your story in pictures that move, with captions and " +
380
+ "sound and about a third of it live; 'pro' plays every shot as live footage. quote_faceless names both totals in tiers. " +
381
+ "Elsewhere tier is refused."),
351
382
  // No shape here keeps tools/list small, as for templates: the field is make_ugc's, which the client and the server check strictly.
352
383
  pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes, shots or format explainer."),
384
+ keep_anchors: scriptInput.shape.keep_anchors.describe("Script only, with scene_images. true keeps each picture on the words you anchored it to. " +
385
+ "Omitted or false: a picture that plainly shows another sentence of the script may be shown on that sentence instead; warnings[] names " +
386
+ "each move, and keep_anchors true keeps yours."),
353
387
  voice: common.voice
354
388
  .describe("Narration voice: a name from list_voices with skill=make_faceless (kind faceless_voice). " +
355
389
  `Omitted means ${DEFAULT_FACELESS_VOICE}; for an English explainer, the fastest voice. Choose a voice in the language of the narration: a voice reads any ` +
@@ -357,6 +391,9 @@ export const offeredFacelessInputShape = {
357
391
  "A raw voice_id is not accepted here."),
358
392
  resolution: common.resolution,
359
393
  max_credits: common.max_credits,
394
+ scene: common.scene.describe(FACELESS_SCENE_DESCRIPTION),
395
+ proposal: common.proposal,
396
+ propose: common.propose,
360
397
  };
361
398
  const rejectedFacelessField = (key) => Object.hasOwn(FACELESS_REJECTED_FIELDS, key)
362
399
  ? FACELESS_REJECTED_FIELDS[key].message
@@ -385,6 +422,10 @@ export const facelessQuoteResponse = facelessQuote.extend({
385
422
  explainer_fit: z.strictObject({ fits: z.boolean(), reason: z.string(), rewrite: z.string().optional() }).optional(),
386
423
  /** An explainer's two levels on the same request: each one's total, and the level `totalCredits` is for. */
387
424
  explainer_tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
425
+ /** The two levels of a video that has them, on the same request and `max_credits`: each one's total, and the level `totalCredits` is for. */
426
+ tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
427
+ /** The scene the quote proposes and its options with their prices (#1491); absent where the quote proposes none. */
428
+ scene_proposal: sceneProposal.optional(),
388
429
  warnings: z.array(z.string()).default([]),
389
430
  contract_version: z.string().min(1),
390
431
  }).strict();