@clipwright/core 0.72.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/errors.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type DiyBlocked, type DiyNext } from "./diy-next.js";
2
+ import { type DiyNext } from "./diy-next.js";
3
3
  import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
4
4
  export declare const apiError: z.ZodObject<{
5
5
  error: z.ZodObject<{
@@ -68,33 +68,6 @@ export declare const accountNotAdmittedError: z.ZodObject<{
68
68
  }, z.core.$strip>;
69
69
  }, z.core.$strip>;
70
70
  export type AccountNotAdmittedError = z.infer<typeof accountNotAdmittedError>;
71
- export declare const takeUncheckedError: z.ZodObject<{
72
- error: z.ZodObject<{
73
- code: z.ZodLiteral<"take_unchecked">;
74
- message: z.ZodString;
75
- next: z.ZodObject<{
76
- action: z.ZodString;
77
- method: z.ZodEnum<{
78
- GET: "GET";
79
- POST: "POST";
80
- }>;
81
- path: z.ZodString;
82
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
83
- add: z.ZodArray<z.ZodString>;
84
- note: z.ZodString;
85
- }, z.core.$strict>;
86
- blocked: z.ZodObject<{
87
- reason: z.ZodString;
88
- unblock: z.ZodString;
89
- }, z.core.$strict>;
90
- }, z.core.$strip>;
91
- }, z.core.$strip>;
92
- export type TakeUncheckedError = z.infer<typeof takeUncheckedError>;
93
- export declare function takeUncheckedBody(args: {
94
- message: string;
95
- next: DiyNext;
96
- blocked: DiyBlocked;
97
- }): TakeUncheckedError;
98
71
  export declare function insufficientCreditsBody(args: {
99
72
  balanceCredits: number;
100
73
  requiredCredits: number;
@@ -271,7 +244,7 @@ export type EditCeilingReachedError = z.infer<typeof editCeilingReachedError>;
271
244
  export declare function editCeilingReachedBody(args: Omit<EditCeilingReachedError["error"], "code" | "message">, counting?: "revision" | "candidate"): EditCeilingReachedError;
272
245
  export declare function unusableSourceMessage(errorClass: string, detail: string): string;
273
246
  export declare const MALFORMED_BODY_MESSAGE: string;
274
- declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "ad_limited", "ad_not_found", "ad_slot_in_use", "ad_slot_unchecked", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "cut_limited", "cut_not_found", "cut_preview_limited", "cut_slot_in_use", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_asset_not_ready", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_hero_limited", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "take_check_limited", "take_frames_limited", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
247
+ declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "ad_limited", "ad_not_found", "ad_slot_in_use", "ad_slot_unchecked", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "cut_busy", "cut_limited", "cut_not_found", "cut_preview_limited", "cut_slot_in_use", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_asset_not_ready", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_hero_limited", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "take_check_limited", "take_frames_limited", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
275
248
  export type BareApiErrorCode = (typeof BARE_ERROR_CODES)[number];
276
249
  export declare const API_ERROR_CODES: readonly string[];
277
250
  export declare function apiErrorBody(args: {
package/dist/errors.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { diyBlocked, diyNext } from "./diy-next.js";
2
+ import { diyNext } from "./diy-next.js";
3
3
  import { EDIT_ISSUE_CODES } from "./edit-validate.js";
4
4
  import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
5
5
  import { actorCreationLimitedError, rateLimitedError } from "./rate-limit.js";
@@ -54,17 +54,6 @@ export const accountNotAdmittedError = z.object({
54
54
  message: z.string().min(1),
55
55
  }),
56
56
  });
57
- export const takeUncheckedError = z.object({
58
- error: z.object({
59
- code: z.literal("take_unchecked"),
60
- message: z.string().min(1),
61
- next: diyNext,
62
- blocked: diyBlocked,
63
- }),
64
- });
65
- export function takeUncheckedBody(args) {
66
- return takeUncheckedError.parse({ error: { code: "take_unchecked", ...args } });
67
- }
68
57
  export function insufficientCreditsBody(args) {
69
58
  return insufficientCreditsError.parse({
70
59
  error: {
@@ -314,6 +303,7 @@ const BARE_ERROR_CODES = [
314
303
  "creator_profile_limited",
315
304
  "creator_profile_not_found",
316
305
  "creator_url_unsupported",
306
+ "cut_busy",
317
307
  "cut_limited",
318
308
  "cut_not_found",
319
309
  "cut_preview_limited",
@@ -389,7 +379,6 @@ export const API_ERROR_CODES = [
389
379
  scriptEncodingLostError.shape.error.shape.code.value,
390
380
  insufficientCreditsError.shape.error.shape.code.value,
391
381
  maxCreditsExceededError.shape.error.shape.code.value,
392
- takeUncheckedError.shape.error.shape.code.value,
393
382
  debtOutstandingError.shape.error.shape.code.value,
394
383
  accountNotAdmittedError.shape.error.shape.code.value,
395
384
  editConflictError.shape.error.shape.code.value,
@@ -6,13 +6,16 @@ export declare const faceBillingIntervalSchema: z.ZodReadonly<z.ZodObject<{
6
6
  }, z.core.$strict>>;
7
7
  export declare const PRESENTER_ENGINES: readonly ["heygen", "omnihuman"];
8
8
  export type PresenterEngine = (typeof PRESENTER_ENGINES)[number];
9
+ export declare const SHORT_PRESENTER_ENGINES: readonly ["heygen", "omnihuman", "heygen_avatar6_turbo"];
10
+ export type ShortPresenterEngine = (typeof SHORT_PRESENTER_ENGINES)[number];
9
11
  export declare const presenterRatesSchema: z.ZodReadonly<z.ZodObject<{
10
12
  heygen: z.ZodNumber;
11
13
  omnihuman: z.ZodNumber;
14
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
12
15
  }, z.core.$strict>>;
13
16
  export declare const SHOT_ENGINES: readonly ["shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
14
17
  export type ShotEngine = (typeof SHOT_ENGINES)[number];
15
- export declare const TAKE_ENGINES: readonly ["heygen", "omnihuman", "shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
18
+ export declare const TAKE_ENGINES: readonly ["heygen", "omnihuman", "heygen_avatar6_turbo", "shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
16
19
  export type TakeEngine = (typeof TAKE_ENGINES)[number];
17
20
  export declare const shotRatesSchema: z.ZodReadonly<z.ZodObject<{
18
21
  shot_talking_action: z.ZodNumber;
@@ -31,6 +34,7 @@ export declare const partsFaceTariffSchema: z.ZodReadonly<z.ZodObject<{
31
34
  presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
32
35
  heygen: z.ZodNumber;
33
36
  omnihuman: z.ZodNumber;
37
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
34
38
  }, z.core.$strict>>;
35
39
  shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
36
40
  shot_talking_action: z.ZodNumber;
@@ -65,6 +69,7 @@ export declare const faceBillingTariffSchema: z.ZodUnion<readonly [z.ZodReadonly
65
69
  presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
66
70
  heygen: z.ZodNumber;
67
71
  omnihuman: z.ZodNumber;
72
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
68
73
  }, z.core.$strict>>;
69
74
  shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
70
75
  shot_talking_action: z.ZodNumber;
@@ -106,6 +111,7 @@ export declare const faceBillingPlanContentSchema: z.ZodReadonly<z.ZodObject<{
106
111
  seedance: "seedance";
107
112
  seedance_no_text: "seedance_no_text";
108
113
  }>>;
114
+ engine: z.ZodOptional<z.ZodLiteral<"heygen_avatar6_turbo">>;
109
115
  }, z.core.$strict>>>>;
110
116
  }, z.core.$strict>>;
111
117
  export declare const faceBillingPlanSchema: z.ZodReadonly<z.ZodObject<{
@@ -133,6 +139,7 @@ export declare const faceBillingPlanSchema: z.ZodReadonly<z.ZodObject<{
133
139
  seedance: "seedance";
134
140
  seedance_no_text: "seedance_no_text";
135
141
  }>>;
142
+ engine: z.ZodOptional<z.ZodLiteral<"heygen_avatar6_turbo">>;
136
143
  }, z.core.$strict>>>>;
137
144
  hash: z.ZodString;
138
145
  }, z.core.$strict>>;
@@ -166,6 +173,7 @@ export declare const faceBillingFactsSchema: z.ZodReadonly<z.ZodObject<{
166
173
  presenterCreditsPerSecond: z.ZodReadonly<z.ZodObject<{
167
174
  heygen: z.ZodNumber;
168
175
  omnihuman: z.ZodNumber;
176
+ heygen_avatar6_turbo: z.ZodOptional<z.ZodNumber>;
169
177
  }, z.core.$strict>>;
170
178
  shotCreditsPerSecond: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
171
179
  shot_talking_action: z.ZodNumber;
@@ -206,6 +214,7 @@ export declare const faceBillingFactsSchema: z.ZodReadonly<z.ZodObject<{
206
214
  seedance: "seedance";
207
215
  seedance_no_text: "seedance_no_text";
208
216
  }>>;
217
+ engine: z.ZodOptional<z.ZodLiteral<"heygen_avatar6_turbo">>;
209
218
  }, z.core.$strict>>>>;
210
219
  hash: z.ZodString;
211
220
  }, z.core.$strict>>;
@@ -220,6 +229,7 @@ export declare const faceBillingFactsSchema: z.ZodReadonly<z.ZodObject<{
220
229
  unknownUnitIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
221
230
  acceptedEngines: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodEnum<{
222
231
  heygen: "heygen";
232
+ heygen_avatar6_turbo: "heygen_avatar6_turbo";
223
233
  omnihuman: "omnihuman";
224
234
  shot_action: "shot_action";
225
235
  shot_omni: "shot_omni";
@@ -17,10 +17,12 @@ const legacyFaceBillingTariffSchema = z.object({
17
17
  rounding: z.literal("ceil_aggregate_seconds"),
18
18
  }).strict().readonly();
19
19
  export const PRESENTER_ENGINES = ["heygen", "omnihuman"];
20
+ export const SHORT_PRESENTER_ENGINES = [...PRESENTER_ENGINES, "heygen_avatar6_turbo"];
20
21
  const tariffCredits = z.number().int().nonnegative().max(2_147_483_647);
21
- export const presenterRatesSchema = z.object({ heygen: tariffCredits.positive(), omnihuman: tariffCredits.positive() }).strict().readonly();
22
+ export const presenterRatesSchema = z.object({ heygen: tariffCredits.positive(), omnihuman: tariffCredits.positive(),
23
+ heygen_avatar6_turbo: tariffCredits.positive().optional() }).strict().readonly();
22
24
  export const SHOT_ENGINES = ["shot_talking_action", "shot_action", "shot_omni", "shot_seedance", "shot_omni_no_text", "shot_seedance_no_text"];
23
- export const TAKE_ENGINES = [...PRESENTER_ENGINES, ...SHOT_ENGINES];
25
+ export const TAKE_ENGINES = [...SHORT_PRESENTER_ENGINES, ...SHOT_ENGINES];
24
26
  export const shotRatesSchema = z.object({ shot_talking_action: tariffCredits.positive(), shot_action: tariffCredits.positive(),
25
27
  shot_omni: tariffCredits.positive().optional(), shot_seedance: tariffCredits.positive().optional(),
26
28
  shot_omni_no_text: tariffCredits.positive().optional(), shot_seedance_no_text: tariffCredits.positive().optional() }).strict().readonly();
@@ -58,6 +60,7 @@ const unitSchema = z.object({
58
60
  optional: z.literal(true).optional(),
59
61
  shot: z.enum(LIVE_SHOT_KINDS).optional(),
60
62
  shotModel: z.enum(SHOT_MODELS).optional(),
63
+ engine: z.literal("heygen_avatar6_turbo").optional(),
61
64
  }).strict().readonly();
62
65
  const planShape = {
63
66
  version: z.literal(1),
@@ -129,6 +129,7 @@ export declare const EXPLAINER_TIER_TARIFFS: {
129
129
  };
130
130
  export declare const explainerTierTariff: (tier: ExplainerTier | undefined) => SkillFilmTariff;
131
131
  export declare const skillAgentEnabled: (env: Record<string, string | undefined>) => boolean;
132
+ export declare const explainerFilmOffered: (env: Record<string, string | undefined>) => boolean;
132
133
  export declare const facelessImageCeilings: (selectedFrames: number) => number[];
133
134
  export declare function quoteFaceless(input: {
134
135
  outputFrames: number;
@@ -86,6 +86,7 @@ export const EXPLAINER_TIERS = ["standard", "pro"];
86
86
  export const EXPLAINER_TIER_TARIFFS = { standard: "skill-agent-sonnet-v2", pro: "skill-agent-opus-v1" };
87
87
  export const explainerTierTariff = (tier) => EXPLAINER_TIER_TARIFFS[tier ?? "standard"];
88
88
  export const skillAgentEnabled = (env) => env.CLIPWRIGHT_SKILL_AGENT === "1";
89
+ export const explainerFilmOffered = (env) => facelessExplainerEnabled(env) && skillAgentEnabled(env);
89
90
  export const facelessImageCeilings = (selectedFrames) => [facelessMaxGeneratedImages(selectedFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES), FACELESS_EXPLAINER_POSE_PICTURES, 0];
90
91
  export function quoteFaceless(input) {
91
92
  const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).parse(input.outputFrames);
@@ -43,7 +43,7 @@ export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
43
43
  readonly at: "scene_changes";
44
44
  }>;
45
45
  export declare const FACELESS_FORMATS: readonly ["standard", "explainer"];
46
- export declare const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not available on make_faceless right now; omit format";
46
+ export declare const FACELESS_EXPLAINER_DISABLED_MESSAGE: string;
47
47
  export declare const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mode script: write it as a hook, three to five steps and a result";
48
48
  export declare function facelessRunFrame(storedInput: unknown): {
49
49
  width: number;
@@ -6641,6 +6641,34 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
6641
6641
  rig: z.ZodOptional<z.ZodString>;
6642
6642
  photo: z.ZodOptional<z.ZodLiteral<true>>;
6643
6643
  unread: z.ZodOptional<z.ZodLiteral<true>>;
6644
+ sprites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
6645
+ blink: "blink";
6646
+ half: "half";
6647
+ look_left: "look_left";
6648
+ look_right: "look_right";
6649
+ open: "open";
6650
+ smile: "smile";
6651
+ surprise: "surprise";
6652
+ }> & z.core.$partial, z.ZodObject<{
6653
+ key: z.ZodString;
6654
+ bytes: z.ZodNumber;
6655
+ sha256: z.ZodString;
6656
+ }, z.core.$strict>>>;
6657
+ anchors: z.ZodOptional<z.ZodObject<{
6658
+ eyes: z.ZodTuple<[z.ZodObject<{
6659
+ x: z.ZodNumber;
6660
+ y: z.ZodNumber;
6661
+ }, z.core.$strict>, z.ZodObject<{
6662
+ x: z.ZodNumber;
6663
+ y: z.ZodNumber;
6664
+ }, z.core.$strict>], null>;
6665
+ mouth: z.ZodObject<{
6666
+ x: z.ZodNumber;
6667
+ y: z.ZodNumber;
6668
+ }, z.core.$strict>;
6669
+ }, z.core.$strict>>;
6670
+ head: z.ZodOptional<z.ZodLiteral<true>>;
6671
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
6644
6672
  }, z.core.$strict>>;
6645
6673
  }, z.core.$strict>>;
6646
6674
  workflow_directions: z.ZodOptional<z.ZodObject<{
@@ -11,7 +11,7 @@ import { MAX_TEMPLATE_MEDIA, MAX_TEMPLATES, templateRefusals } from "./templates
11
11
  import { isPresenterMatteEnabled, needsPresenterCutout, PRESENTER_MATTE_DISABLED_MESSAGE } from "./presenter-matte.js";
12
12
  import { assetId } from "./asset-identity.js";
13
13
  import { FACELESS_REJECTED_FIELDS } from "./contract-dispositions.js";
14
- import { FACELESS_MAX_OUTPUT_FRAMES, FACELESS_MAX_SELECTED_SECONDS, FACELESS_MAX_SHOTS, FACELESS_MIN_OUTPUT_FRAMES, FACELESS_MIN_SELECTED_SECONDS, EXPLAINER_FILM_INCLUDED_SECONDS, EXPLAINER_TIER_TARIFFS, EXPLAINER_TIERS, explainerObjectCeiling, facelessQuote, FACELESS_EXPLAINER_POSE_PICTURES, FACELESS_IMAGE_CREDITS, quoteFaceless, SKILL_FILM_TARIFFS } from "./faceless-price.js";
14
+ import { FACELESS_MAX_OUTPUT_FRAMES, FACELESS_MAX_SELECTED_SECONDS, FACELESS_MAX_SHOTS, FACELESS_MIN_OUTPUT_FRAMES, FACELESS_MIN_SELECTED_SECONDS, EXPLAINER_TIER_TARIFFS, EXPLAINER_TIERS, explainerObjectCeiling, facelessQuote, quoteFaceless } from "./faceless-price.js";
15
15
  import { DEFAULT_FACELESS_VOICE } from "./faceless-voices.js";
16
16
  import { resolveFacelessCustomerAnchors } from "./faceless-customer-anchors.js";
17
17
  import { FACELESS_TRANSITION_LOOKS } from "./faceless-media-record.js";
@@ -64,15 +64,15 @@ function refuseSounds(input, context) {
64
64
  context.addIssue({ code: customIssue, path, message });
65
65
  }
66
66
  export const FACELESS_FORMATS = ["standard", "explainer"];
67
- export const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not available on make_faceless right now; omit format";
67
+ export const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not offered on make_faceless: write the explainer film yourself, " +
68
+ "starting with get_film_guide, each part quoted before it is made; omit format for a narrated video over pictures";
68
69
  export const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mode script: write it as a hook, three to five steps and a result";
69
70
  const common = {
70
71
  duration_seconds: z.number().min(FACELESS_MIN_SELECTED_SECONDS).max(FACELESS_MAX_SELECTED_SECONDS).refine((seconds) => Number.isInteger(seconds * 25), "duration_seconds must align to a 25 fps frame boundary"),
71
72
  style_reference: qualifiedImageUrl.optional(),
72
73
  character_reference: qualifiedImageUrl.optional()
73
- .describe("A picture of a person or figure: a public https image, or a picture you uploaded or saved in your assets. Standard format: the figure is in every picture we generate and in the opening clip; " +
74
- "your own scene_images are shown as they are. Format explainer: the figure is the hero, a person's photo drawn as a cartoon unless " +
75
- "character_details ask for a photoreal look."),
74
+ .describe("A picture of a person or figure: a public https image, or a picture you uploaded or saved in your assets. The figure is in every picture we generate and in the opening clip; " +
75
+ "your own scene_images are shown as they are."),
76
76
  character_details: z.string().trim().min(1).max(2000).optional(),
77
77
  mascot_id: assetId.optional(),
78
78
  scene_images: z.array(facelessCustomerSceneImage).max(60).optional(),
@@ -275,8 +275,6 @@ export function explainerTierTotals(input) {
275
275
  const total = (tier) => quoteFacelessInput(input, { explainerFilm: EXPLAINER_TIER_TARIFFS[tier] }).totalCredits;
276
276
  return { tier: input.tier ?? "standard", standard: total("standard"), pro: total("pro") };
277
277
  }
278
- const tierFilm = (tier) => SKILL_FILM_TARIFFS[EXPLAINER_TIER_TARIFFS[tier]];
279
- const tierPrice = (tier) => `${tierFilm(tier).filmCredits} credits for a film up to ${EXPLAINER_FILM_INCLUDED_SECONDS} s plus ${tierFilm(tier).perExtraSecond} each second over`;
280
278
  export const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
281
279
  export const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
282
280
  export const offeredFacelessInputShape = {
@@ -287,18 +285,16 @@ export const offeredFacelessInputShape = {
287
285
  brief: briefInput.shape.brief.optional()
288
286
  .describe("What the video is about; the narration is written from it. Required when input_mode is 'brief'; must be absent when it is 'script'."),
289
287
  duration_seconds: common.duration_seconds
290
- .describe("Selected length, 30 to 90 seconds, on a 1/25 s frame boundary. The video ends with its narration and runs at least 25 seconds (an explainer, as long as its narration), usually at most a quarter past the selection and 90 seconds; when the narration takes longer, the video runs to its end. A video more than 5 seconds longer than the selection says so in warnings[]. The charge never exceeds the quote. A script is accepted when its estimated length is 21 seconds to the selection plus 5, at most 90."),
288
+ .describe("Selected length, 30 to 90 seconds, on a 1/25 s frame boundary. The video ends with its narration and runs at least 25 seconds, usually at most a quarter past the selection and 90 seconds; when the narration takes longer, the video runs to its end. A video more than 5 seconds longer than the selection says so in warnings[]. The charge never exceeds the quote. A script is accepted when its estimated length is 21 seconds to the selection plus 5, at most 90."),
291
289
  style_reference: common.style_reference
292
290
  .describe("Public https image whose visual style the scenes follow."),
293
291
  character_reference: common.character_reference,
294
292
  character_details: common.character_details
295
293
  .describe("Fixed visual details of that person or figure, such as hair, clothing and absent accessories; kept in every generated scene."),
296
294
  mascot_id: common.mascot_id
297
- .describe("A mascot saved in your assets (list_assets with mascot true), for format explainer: its hero, already drawn, with no pose pictures made or charged. " +
298
- "Replaces character_reference and character_details."),
295
+ .describe("Format explainer only, which is not offered here."),
299
296
  scene_images: common.scene_images
300
- .describe("Your images, each placed at a word range or quote of the narration. Free. With format explainer: " +
301
- `up to ${EXPLAINER_MAX_PRODUCT_PICTURES} pictures of your product, each shown as it is on its words, held by the hero, as a card or full frame.`),
297
+ .describe("Your images, each placed at a word range or quote of the narration. Free."),
302
298
  captions: common.captions.describe("Burned-in captions; on by default."),
303
299
  transitions: scriptInput.shape.transitions
304
300
  .describe("Flash or light leak on the cuts, with its sound: every scene change, or the one nearest each anchor (script only). " +
@@ -311,20 +307,12 @@ export const offeredFacelessInputShape = {
311
307
  scenes: z.unknown().optional().describe("Script only: as make_ugc scenes."),
312
308
  motion_style: z.unknown().optional().describe("As make_ugc motion_style; spans script only. Free."),
313
309
  moves: z.unknown().optional().describe(`Script only: ${MOVES_DESCRIPTION}`),
314
- format: common.format.describe("'explainer': a drawn explainer cartoon, an event on every word, a hero in the corner; script only. " +
315
- "It fits a chain of concrete actions told by one narrator: a how-to by steps, how something works, a workflow, a tool walkthrough, " +
316
- "N mistakes or N ways, with something to show on every phrase. Reasoning without actions, a dialogue or a story about people fits " +
317
- "poorly. Every script quote answers explainer_fit: offer the format where it fits; where it does not, show its reason and its " +
318
- "rewrite into actions before asking. The hero: mascot_id, else your brand's mascot, free; else the character you name or one that fits " +
319
- `the script, its ${FACELESS_EXPLAINER_POSE_PICTURES} pose pictures at ${FACELESS_IMAGE_CREDITS} each on the quote. Priced as one film by tier; ` +
320
- "a film takes about half an hour. Without voice, an English script is read by our fastest voice."),
321
- tier: common.tier.describe(`Format explainer: 'standard' (default): ${tierPrice("standard")}. 'pro': more careful direction and ` +
322
- `richer scenes, ${tierPrice("pro")}. Pose pictures are on top. quote_faceless names both totals: show them and let the user pick. ` +
323
- "Elsewhere tier is refused."),
324
- pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes, shots or format explainer."),
310
+ format: common.format.describe("'explainer' is not offered here: for an explainer film, write it yourself starting with get_film_guide."),
311
+ tier: common.tier.describe("Format explainer only, which is not offered here."),
312
+ pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes or shots."),
325
313
  voice: common.voice
326
314
  .describe("Narration voice: a name from list_voices with skill=make_faceless (kind faceless_voice). " +
327
- `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 ` +
315
+ `Omitted means ${DEFAULT_FACELESS_VOICE}. Choose a voice in the language of the narration: a voice reads any ` +
328
316
  "language, with the accent of its own. The API refuses an unknown name and a make_ugc voice before any charge. " +
329
317
  "A raw voice_id is not accepted here."),
330
318
  resolution: common.resolution,
@@ -843,9 +843,5 @@ export declare const filmCutCheck: z.ZodObject<{
843
843
  add: z.ZodArray<z.ZodString>;
844
844
  note: z.ZodString;
845
845
  }, z.core.$strict>>;
846
- blocked: z.ZodOptional<z.ZodObject<{
847
- reason: z.ZodString;
848
- unblock: z.ZodString;
849
- }, z.core.$strict>>;
850
846
  }, z.core.$strict>;
851
847
  export type FilmCutCheck = z.infer<typeof filmCutCheck>;
package/dist/film-cut.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { assetId } from "./asset-identity.js";
3
3
  import { cutId } from "./cut-ids.js";
4
- import { diyBlocked, diyNext } from "./diy-next.js";
4
+ import { diyNext } from "./diy-next.js";
5
5
  import { FACELESS_BEAT_KINDS, FACELESS_CAMERA_MOVES, FACELESS_CUT_LOOKS, FACELESS_SHOT_SIZES, FACELESS_SPEEDS } from "./faceless-direction-summary.js";
6
6
  import { filmLookDescription, filmLookTag } from "./film-look.js";
7
7
  import { maxCreditsField } from "./max-credits.js";
@@ -164,7 +164,5 @@ export const filmCutCheck = z.strictObject({
164
164
  live_sec: z.number().nonnegative(),
165
165
  }).nullable(),
166
166
  warnings: z.array(z.string()),
167
- next: diyNext.optional().describe("A passed sheet: its quote_cut; a take not yet cleared to play: its check_take quote; a refused " +
168
- "sheet: check_cut again, add naming the fields to fix"),
169
- blocked: diyBlocked.optional().describe("Why a take of the cut cannot play yet, and what unblocks it"),
167
+ next: diyNext.optional().describe("A passed sheet: its quote_cut; a refused sheet: check_cut again, add naming the fields to fix"),
170
168
  });
@@ -350,6 +350,12 @@ export declare const filmDraft: z.ZodObject<{
350
350
  expires_at: z.ZodString;
351
351
  }, z.core.$strict>;
352
352
  export type FilmDraft = z.infer<typeof filmDraft>;
353
+ export declare const filmSceneVideo: z.ZodObject<{
354
+ asset_id: z.ZodOptional<z.ZodString>;
355
+ run_id: z.ZodOptional<z.ZodString>;
356
+ from: z.ZodDefault<z.ZodNumber>;
357
+ }, z.core.$strict>;
358
+ export type FilmSceneVideo = z.infer<typeof filmSceneVideo>;
353
359
  export declare const FILM_DRAFT_CHECK_PATH = "/v1/film-drafts/:id/check";
354
360
  export declare const checkFilmInput: z.ZodObject<{
355
361
  revision: z.ZodNumber;
@@ -364,6 +370,11 @@ export declare const checkFilmInput: z.ZodObject<{
364
370
  occurrence: z.ZodOptional<z.ZodNumber>;
365
371
  }, z.core.$strict>]>;
366
372
  }, z.core.$strict>>>;
373
+ scene_video: z.ZodOptional<z.ZodObject<{
374
+ asset_id: z.ZodOptional<z.ZodString>;
375
+ run_id: z.ZodOptional<z.ZodString>;
376
+ from: z.ZodDefault<z.ZodNumber>;
377
+ }, z.core.$strict>>;
367
378
  files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
368
379
  cues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
369
380
  sfx: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -90,11 +90,19 @@ export const filmDraft = z.strictObject({
90
90
  created_at: z.string(),
91
91
  expires_at: z.string(),
92
92
  });
93
+ export const filmSceneVideo = z.strictObject({
94
+ asset_id: assetId.optional().describe("A video asset of this account. A make_ugc video becomes one with create_asset and the url get_run gives"),
95
+ run_id: runId.optional().describe("A delivered generate_video run of this account"),
96
+ from: z.number().min(0).max(600).default(0).describe("The second of the video the film's first frame shows"),
97
+ }).refine(v => (v.asset_id === undefined) !== (v.run_id === undefined), { message: "name exactly one of asset_id and run_id" })
98
+ .describe("The video your <Presenter> plays, without its sound, second by second beside the film; past its end its last frame holds. " +
99
+ "Lips match the film's voice only when the video was made from this same voice");
93
100
  export const FILM_DRAFT_CHECK_PATH = "/v1/film-drafts/:id/check";
94
101
  export const checkFilmInput = z.strictObject({
95
102
  revision: z.number().int().min(0).describe("The draft revision to check; a draft that moved on is refused with 409"),
96
103
  voice_run_id: runId.describe("A delivered make_voice run of this account: the check reads its words and length"),
97
104
  scene_images: z.array(facelessCustomerSceneImage).max(EXPLAINER_MAX_PRODUCT_PICTURES).optional().describe("The product pictures you will send to stills and render"),
105
+ scene_video: filmSceneVideo.optional(),
98
106
  files: z.record(z.string(), z.string().max(FILM_FILE_MAX_BYTES).nullable()).optional()
99
107
  .describe("Changes to check without saving them, as put_film_files takes them: text replaces a file, null deletes it"),
100
108
  cues: putFilmFilesInput.shape.cues, sfx: putFilmFilesInput.shape.sfx, captions: putFilmFilesInput.shape.captions,
@@ -1,8 +1,9 @@
1
1
  import { z } from "zod";
2
2
  export declare const FILM_GUIDE_PATH = "/v1/film-guide";
3
3
  export declare const FILM_KIT_PATH = "/v1/film-kit";
4
- export declare const FILM_KIT_FILES: readonly ["index.ts", "src/lib/motion.ts", "src/lib/frame.tsx", "src/lib/marks.tsx", "src/lib/ui.tsx", "src/lib/objects.tsx", "src/lib/product.tsx", "src/lib/depth.tsx", "src/Film.tsx", "src/types.ts", "src/theme.ts", "src/hero/HeroSticker.tsx", "films/espresso-hit/Movie.tsx", "films/espresso-hit/scenes.tsx"];
4
+ export declare const FILM_KIT_FILES: readonly ["index.ts", "src/lib/motion.ts", "src/lib/frame.tsx", "src/lib/marks.tsx", "src/lib/ui.tsx", "src/lib/objects.tsx", "src/lib/product.tsx", "src/lib/depth.tsx", "src/lib/split.tsx", "src/lib/charts.tsx", "src/lib/type.tsx", "src/lib/captions.tsx", "src/lib/transitions.tsx", "src/lib/video.tsx", "src/lib/sound.tsx", "src/lib/chapters.tsx", "src/lib/panels.tsx", "src/lib/actor.tsx", "src/Film.tsx", "src/types.ts", "src/theme.ts", "src/hero/HeroSticker.tsx", "films/espresso-hit/Movie.tsx", "films/espresso-hit/scenes.tsx", "CATALOGUE.md", "catalogue/recipes-1.md", "catalogue/recipes-2.md", "catalogue/asks.md", "src/lib/tiles.tsx", "src/lib/apps.tsx", "src/lib/installer.tsx", "src/lib/screens.tsx", "src/lib/cards.tsx", "src/lib/devices.tsx", "src/lib/media.tsx", "src/lib/boards.tsx", "src/lib/data.tsx", "src/lib/grids.tsx", "src/lib/course.tsx", "src/lib/series.tsx", "src/lib/badges.tsx", "src/lib/route.tsx", "src/lib/calls.tsx"];
5
5
  export type FilmKitFile = (typeof FILM_KIT_FILES)[number];
6
+ export declare const isFilmKitFile: (path: string) => path is FilmKitFile;
6
7
  export declare const FILM_GUIDE_FORMATS: readonly ["explainer", "story", "list", "own_pictures", "cartoon"];
7
8
  export type FilmGuideFormat = (typeof FILM_GUIDE_FORMATS)[number];
8
9
  export declare const FILM_GUIDE_SECTIONS: readonly ["steps", "story", "words", "captions", "voice", "consistency", "pictures", "motion", "density", "repair"];
@@ -64,22 +65,7 @@ export declare const filmGuide: z.ZodObject<{
64
65
  method: z.ZodString;
65
66
  kit_version: z.ZodString;
66
67
  kit_files: z.ZodArray<z.ZodObject<{
67
- path: z.ZodEnum<{
68
- "films/espresso-hit/Movie.tsx": "films/espresso-hit/Movie.tsx";
69
- "films/espresso-hit/scenes.tsx": "films/espresso-hit/scenes.tsx";
70
- "index.ts": "index.ts";
71
- "src/Film.tsx": "src/Film.tsx";
72
- "src/hero/HeroSticker.tsx": "src/hero/HeroSticker.tsx";
73
- "src/lib/depth.tsx": "src/lib/depth.tsx";
74
- "src/lib/frame.tsx": "src/lib/frame.tsx";
75
- "src/lib/marks.tsx": "src/lib/marks.tsx";
76
- "src/lib/motion.ts": "src/lib/motion.ts";
77
- "src/lib/objects.tsx": "src/lib/objects.tsx";
78
- "src/lib/product.tsx": "src/lib/product.tsx";
79
- "src/lib/ui.tsx": "src/lib/ui.tsx";
80
- "src/theme.ts": "src/theme.ts";
81
- "src/types.ts": "src/types.ts";
82
- }>;
68
+ path: z.ZodString;
83
69
  bytes: z.ZodNumber;
84
70
  }, z.core.$strict>>;
85
71
  kept_sounds: z.ZodArray<z.ZodString>;
@@ -113,44 +99,19 @@ export declare const filmGuide: z.ZodObject<{
113
99
  }, z.core.$strict>;
114
100
  export type FilmGuide = z.infer<typeof filmGuide>;
115
101
  export declare const filmKitQuery: z.ZodObject<{
116
- path: z.ZodOptional<z.ZodEnum<{
117
- "films/espresso-hit/Movie.tsx": "films/espresso-hit/Movie.tsx";
118
- "films/espresso-hit/scenes.tsx": "films/espresso-hit/scenes.tsx";
119
- "index.ts": "index.ts";
120
- "src/Film.tsx": "src/Film.tsx";
121
- "src/hero/HeroSticker.tsx": "src/hero/HeroSticker.tsx";
122
- "src/lib/depth.tsx": "src/lib/depth.tsx";
123
- "src/lib/frame.tsx": "src/lib/frame.tsx";
124
- "src/lib/marks.tsx": "src/lib/marks.tsx";
125
- "src/lib/motion.ts": "src/lib/motion.ts";
126
- "src/lib/objects.tsx": "src/lib/objects.tsx";
127
- "src/lib/product.tsx": "src/lib/product.tsx";
128
- "src/lib/ui.tsx": "src/lib/ui.tsx";
129
- "src/theme.ts": "src/theme.ts";
130
- "src/types.ts": "src/types.ts";
131
- }>>;
102
+ path: z.ZodOptional<z.ZodString & z.ZodType<"CATALOGUE.md" | "catalogue/asks.md" | "catalogue/recipes-1.md" | "catalogue/recipes-2.md" | "films/espresso-hit/Movie.tsx" | "films/espresso-hit/scenes.tsx" | "index.ts" | "src/Film.tsx" | "src/hero/HeroSticker.tsx" | "src/lib/actor.tsx" | "src/lib/apps.tsx" | "src/lib/badges.tsx" | "src/lib/boards.tsx" | "src/lib/calls.tsx" | "src/lib/captions.tsx" | "src/lib/cards.tsx" | "src/lib/chapters.tsx" | "src/lib/charts.tsx" | "src/lib/course.tsx" | "src/lib/data.tsx" | "src/lib/depth.tsx" | "src/lib/devices.tsx" | "src/lib/frame.tsx" | "src/lib/grids.tsx" | "src/lib/installer.tsx" | "src/lib/marks.tsx" | "src/lib/media.tsx" | "src/lib/motion.ts" | "src/lib/objects.tsx" | "src/lib/panels.tsx" | "src/lib/product.tsx" | "src/lib/route.tsx" | "src/lib/screens.tsx" | "src/lib/series.tsx" | "src/lib/sound.tsx" | "src/lib/split.tsx" | "src/lib/tiles.tsx" | "src/lib/transitions.tsx" | "src/lib/type.tsx" | "src/lib/ui.tsx" | "src/lib/video.tsx" | "src/theme.ts" | "src/types.ts", string, z.core.$ZodTypeInternals<"CATALOGUE.md" | "catalogue/asks.md" | "catalogue/recipes-1.md" | "catalogue/recipes-2.md" | "films/espresso-hit/Movie.tsx" | "films/espresso-hit/scenes.tsx" | "index.ts" | "src/Film.tsx" | "src/hero/HeroSticker.tsx" | "src/lib/actor.tsx" | "src/lib/apps.tsx" | "src/lib/badges.tsx" | "src/lib/boards.tsx" | "src/lib/calls.tsx" | "src/lib/captions.tsx" | "src/lib/cards.tsx" | "src/lib/chapters.tsx" | "src/lib/charts.tsx" | "src/lib/course.tsx" | "src/lib/data.tsx" | "src/lib/depth.tsx" | "src/lib/devices.tsx" | "src/lib/frame.tsx" | "src/lib/grids.tsx" | "src/lib/installer.tsx" | "src/lib/marks.tsx" | "src/lib/media.tsx" | "src/lib/motion.ts" | "src/lib/objects.tsx" | "src/lib/panels.tsx" | "src/lib/product.tsx" | "src/lib/route.tsx" | "src/lib/screens.tsx" | "src/lib/series.tsx" | "src/lib/sound.tsx" | "src/lib/split.tsx" | "src/lib/tiles.tsx" | "src/lib/transitions.tsx" | "src/lib/type.tsx" | "src/lib/ui.tsx" | "src/lib/video.tsx" | "src/theme.ts" | "src/types.ts", string>>>;
132
103
  }, z.core.$strict>;
133
104
  export type FilmKitQuery = z.infer<typeof filmKitQuery>;
134
105
  export declare const filmKit: z.ZodObject<{
135
106
  kit_version: z.ZodString;
136
107
  files: z.ZodArray<z.ZodObject<{
137
- path: z.ZodEnum<{
138
- "films/espresso-hit/Movie.tsx": "films/espresso-hit/Movie.tsx";
139
- "films/espresso-hit/scenes.tsx": "films/espresso-hit/scenes.tsx";
140
- "index.ts": "index.ts";
141
- "src/Film.tsx": "src/Film.tsx";
142
- "src/hero/HeroSticker.tsx": "src/hero/HeroSticker.tsx";
143
- "src/lib/depth.tsx": "src/lib/depth.tsx";
144
- "src/lib/frame.tsx": "src/lib/frame.tsx";
145
- "src/lib/marks.tsx": "src/lib/marks.tsx";
146
- "src/lib/motion.ts": "src/lib/motion.ts";
147
- "src/lib/objects.tsx": "src/lib/objects.tsx";
148
- "src/lib/product.tsx": "src/lib/product.tsx";
149
- "src/lib/ui.tsx": "src/lib/ui.tsx";
150
- "src/theme.ts": "src/theme.ts";
151
- "src/types.ts": "src/types.ts";
152
- }>;
108
+ path: z.ZodString;
153
109
  text: z.ZodString;
154
110
  }, z.core.$strict>>;
111
+ index: z.ZodOptional<z.ZodArray<z.ZodObject<{
112
+ path: z.ZodString;
113
+ bytes: z.ZodNumber;
114
+ about: z.ZodString;
115
+ }, z.core.$strict>>>;
155
116
  }, z.core.$strict>;
156
117
  export type FilmKit = z.infer<typeof filmKit>;
@@ -11,13 +11,44 @@ export const FILM_KIT_FILES = [
11
11
  "src/lib/objects.tsx",
12
12
  "src/lib/product.tsx",
13
13
  "src/lib/depth.tsx",
14
+ "src/lib/split.tsx",
15
+ "src/lib/charts.tsx",
16
+ "src/lib/type.tsx",
17
+ "src/lib/captions.tsx",
18
+ "src/lib/transitions.tsx",
19
+ "src/lib/video.tsx",
20
+ "src/lib/sound.tsx",
21
+ "src/lib/chapters.tsx",
22
+ "src/lib/panels.tsx",
23
+ "src/lib/actor.tsx",
14
24
  "src/Film.tsx",
15
25
  "src/types.ts",
16
26
  "src/theme.ts",
17
27
  "src/hero/HeroSticker.tsx",
18
28
  "films/espresso-hit/Movie.tsx",
19
29
  "films/espresso-hit/scenes.tsx",
30
+ "CATALOGUE.md",
31
+ "catalogue/recipes-1.md",
32
+ "catalogue/recipes-2.md",
33
+ "catalogue/asks.md",
34
+ "src/lib/tiles.tsx",
35
+ "src/lib/apps.tsx",
36
+ "src/lib/installer.tsx",
37
+ "src/lib/screens.tsx",
38
+ "src/lib/cards.tsx",
39
+ "src/lib/devices.tsx",
40
+ "src/lib/media.tsx",
41
+ "src/lib/boards.tsx",
42
+ "src/lib/data.tsx",
43
+ "src/lib/grids.tsx",
44
+ "src/lib/course.tsx",
45
+ "src/lib/series.tsx",
46
+ "src/lib/badges.tsx",
47
+ "src/lib/route.tsx",
48
+ "src/lib/calls.tsx",
20
49
  ];
50
+ export const isFilmKitFile = (path) => FILM_KIT_FILES.includes(path);
51
+ const kitPath = z.string().min(1);
21
52
  export const FILM_GUIDE_FORMATS = ["explainer", "story", "list", "own_pictures", "cartoon"];
22
53
  export const FILM_GUIDE_SECTIONS = ["steps", "story", "words", "captions", "voice", "consistency", "pictures", "motion", "density", "repair"];
23
54
  export const RECENT_LOOKS_MAX = 5;
@@ -45,7 +76,7 @@ export const filmGuide = z.strictObject({
45
76
  guide: z.string().min(1).describe("The explainer guide, Markdown: the steps, the tools and routes, the rules the checks refuse"),
46
77
  method: z.string().min(1).describe("Its appendix, Markdown: the craft behind every step"),
47
78
  kit_version: kitVersion,
48
- kit_files: z.array(z.strictObject({ path: z.enum(FILM_KIT_FILES), bytes: z.number().int().positive() }))
79
+ kit_files: z.array(z.strictObject({ path: kitPath, bytes: z.number().int().positive() }))
49
80
  .describe("The scene kit's files get_film_kit serves, in reading order"),
50
81
  kept_sounds: z.array(z.string()).max(FILM_KEPT_SOUNDS_MAX)
51
82
  .describe("Sounds your account's films made and kept, newest first: name one exactly in sfx and it plays again, made nothing new"),
@@ -57,9 +88,12 @@ export const filmGuide = z.strictObject({
57
88
  .describe("The looks this account's latest faceless videos used, newest first: pick another unless the user keeps their style"),
58
89
  });
59
90
  export const filmKitQuery = z.strictObject({
60
- path: z.enum(FILM_KIT_FILES).optional().describe("One kit file; every file when omitted"),
91
+ path: z.string().refine(isFilmKitFile, { message: "not a kit file: kit_files of get_film_guide lists them" }).optional()
92
+ .describe("One kit file as kit_files of get_film_guide names it; omitted, the list of files with their size and what each holds"),
61
93
  });
62
94
  export const filmKit = z.strictObject({
63
95
  kit_version: kitVersion,
64
- files: z.array(z.strictObject({ path: z.enum(FILM_KIT_FILES), text: z.string() })),
96
+ files: z.array(z.strictObject({ path: kitPath, text: z.string() })).describe("The file asked for by path; none without a path"),
97
+ index: z.array(z.strictObject({ path: kitPath, bytes: z.number().int().positive(), about: z.string() })).optional()
98
+ .describe("Without a path: every kit file in reading order, its size and what it holds; read each one with path"),
65
99
  });
@@ -14,5 +14,10 @@ export declare const runGeneration: z.ZodObject<{
14
14
  duration_s: z.ZodNullable<z.ZodNumber>;
15
15
  reusable_until: z.ZodString;
16
16
  thumbnail_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ upscaled_from: z.ZodOptional<z.ZodObject<{
18
+ ref: z.ZodString;
19
+ width: z.ZodNumber;
20
+ height: z.ZodNumber;
21
+ }, z.core.$strict>>;
17
22
  }, z.core.$strict>;
18
23
  export type RunGeneration = z.infer<typeof runGeneration>;
@@ -10,4 +10,6 @@ export const runGeneration = z.strictObject({
10
10
  duration_s: z.number().positive().nullable(),
11
11
  reusable_until: z.string().datetime().describe("Until then, create_asset with source.run_id turns this file into an asset_id for templates and inserts."),
12
12
  thumbnail_urls: z.array(z.string().url()).max(3).optional(),
13
+ upscaled_from: z.strictObject({ ref: z.string().min(1), width: z.number().int().positive(), height: z.number().int().positive() }).optional()
14
+ .describe("The source an upscale was made from: its run_id, asset_id or upload_id, and its width and height."),
13
15
  });