@clipwright/core 0.72.0 → 0.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/account-actors.d.ts +0 -3
  2. package/dist/account-actors.js +0 -7
  3. package/dist/ad-guide.js +3 -2
  4. package/dist/ads.js +2 -3
  5. package/dist/api-failure.d.ts +1 -4
  6. package/dist/api-failure.js +6 -16
  7. package/dist/assets.d.ts +6 -0
  8. package/dist/billing-terms.d.ts +12 -0
  9. package/dist/contract-dispositions.d.ts +23 -19
  10. package/dist/contract-dispositions.js +16 -72
  11. package/dist/contracts/v1/workflow-brief.d.ts +10 -0
  12. package/dist/contracts/v1/workflow-catalog.d.ts +10 -0
  13. package/dist/contracts/v1/workflow-client.d.ts +5 -0
  14. package/dist/contracts/v1/workflow-execution.d.ts +16 -0
  15. package/dist/contracts/v1/workflow-plan.d.ts +15 -0
  16. package/dist/contracts/v1/workflow-run-read.d.ts +11 -0
  17. package/dist/cuts.js +2 -2
  18. package/dist/edit-music.js +5 -5
  19. package/dist/endpoint-notes.js +2 -0
  20. package/dist/endpoints.js +3 -0
  21. package/dist/errors.d.ts +2 -29
  22. package/dist/errors.js +2 -13
  23. package/dist/face-billing.d.ts +11 -1
  24. package/dist/face-billing.js +5 -2
  25. package/dist/faceless-price.d.ts +0 -4
  26. package/dist/faceless-price.js +0 -4
  27. package/dist/faceless-public.d.ts +29 -3
  28. package/dist/faceless-public.js +12 -33
  29. package/dist/film-cut.d.ts +0 -4
  30. package/dist/film-cut.js +2 -4
  31. package/dist/film-drafts.d.ts +11 -0
  32. package/dist/film-drafts.js +8 -0
  33. package/dist/film-guide.d.ts +10 -49
  34. package/dist/film-guide.js +37 -3
  35. package/dist/generations-output.d.ts +5 -0
  36. package/dist/generations-output.js +2 -0
  37. package/dist/generations.d.ts +25 -0
  38. package/dist/generations.js +3 -1
  39. package/dist/idempotency.d.ts +1 -0
  40. package/dist/idempotency.js +7 -0
  41. package/dist/index.d.ts +4 -0
  42. package/dist/index.js +4 -0
  43. package/dist/mascots.d.ts +110 -1
  44. package/dist/mascots.js +38 -1
  45. package/dist/mcp-ugc-descriptions.d.ts +1 -1
  46. package/dist/mcp-ugc-descriptions.js +1 -1
  47. package/dist/music.d.ts +1 -2
  48. package/dist/music.js +1 -4
  49. package/dist/openapi.js +13 -8
  50. package/dist/own-agent-price.d.ts +18 -4
  51. package/dist/own-agent-price.js +37 -9
  52. package/dist/own-agent-runs.d.ts +77 -23
  53. package/dist/own-agent-runs.js +26 -12
  54. package/dist/parts-pricing.d.ts +14 -5
  55. package/dist/parts-pricing.js +27 -14
  56. package/dist/presenter-engine.d.ts +16 -0
  57. package/dist/presenter-engine.js +32 -0
  58. package/dist/presenter-matte.d.ts +0 -2
  59. package/dist/presenter-matte.js +0 -4
  60. package/dist/prices.d.ts +10 -6
  61. package/dist/prices.js +76 -32
  62. package/dist/reference-analysis.d.ts +47 -0
  63. package/dist/reference-analysis.js +7 -0
  64. package/dist/reference-display.js +3 -0
  65. package/dist/reference-film-kit.d.ts +43 -0
  66. package/dist/reference-film-kit.js +22 -0
  67. package/dist/render-backend.d.ts +1 -0
  68. package/dist/runs.d.ts +12 -0
  69. package/dist/scene-bible.d.ts +0 -1
  70. package/dist/scene-bible.js +0 -7
  71. package/dist/service-offer.d.ts +11 -0
  72. package/dist/service-offer.js +6 -0
  73. package/dist/skill-theme-explainer.js +3 -1
  74. package/dist/skill-theme.js +5 -0
  75. package/dist/skills.d.ts +58 -1
  76. package/dist/skills.js +70 -36
  77. package/dist/templates/comment-cta.d.ts +0 -2
  78. package/dist/templates/comment-cta.js +0 -4
  79. package/dist/templates/index.d.ts +3 -3
  80. package/dist/templates/index.js +7 -17
  81. package/dist/templates/series-frame.d.ts +0 -2
  82. package/dist/templates/series-frame.js +0 -4
  83. package/dist/upscale.d.ts +120 -0
  84. package/dist/upscale.js +116 -0
  85. package/dist/voice-admission.d.ts +14 -0
  86. package/dist/voice-admission.js +9 -0
  87. package/dist/voice-listing.js +1 -1
  88. package/dist/voices.d.ts +1 -0
  89. package/dist/workflows/methods/faceless-explainer.d.ts +2 -0
  90. package/dist/workflows/methods/kinetic-launch.d.ts +4 -0
  91. package/dist/workflows/methods/product-image-story.d.ts +2 -0
  92. package/dist/workflows/methods/reference-remake.d.ts +2 -0
  93. package/dist/workflows/methods/shared.d.ts +2 -0
  94. package/dist/workflows/methods/ugc-faq-answer.d.ts +2 -0
  95. package/dist/workflows/methods/ugc-product-intro.d.ts +2 -0
  96. package/dist/workflows/methods/website-proof-demo.d.ts +4 -0
  97. package/package.json +1 -1
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
  });
@@ -357,6 +357,31 @@ export declare const generationModels: z.ZodObject<{
357
357
  reference: z.ZodOptional<z.ZodLiteral<true>>;
358
358
  }, z.core.$strict>>;
359
359
  }, z.core.$strict>>;
360
+ upscale: z.ZodOptional<z.ZodObject<{
361
+ video: z.ZodObject<{
362
+ fps: z.ZodNumber;
363
+ max_frames: z.ZodNumber;
364
+ unit: z.ZodLiteral<"second">;
365
+ rows: z.ZodArray<z.ZodObject<{
366
+ from: z.ZodObject<{
367
+ width: z.ZodNumber;
368
+ height: z.ZodNumber;
369
+ }, z.core.$strict>;
370
+ width: z.ZodNumber;
371
+ height: z.ZodNumber;
372
+ unit_credits: z.ZodNumber;
373
+ }, z.core.$strict>>;
374
+ }, z.core.$strict>;
375
+ image: z.ZodNullable<z.ZodObject<{
376
+ unit: z.ZodLiteral<"image">;
377
+ factor: z.ZodNumber;
378
+ media_types: z.ZodArray<z.ZodString>;
379
+ min_short_side: z.ZodNumber;
380
+ max_long_side: z.ZodNumber;
381
+ max_output_pixels: z.ZodNumber;
382
+ unit_credits: z.ZodNumber;
383
+ }, z.core.$strict>>;
384
+ }, z.core.$strict>>;
360
385
  contract_version: z.ZodString;
361
386
  }, z.core.$strict>;
362
387
  export type GenerationModels = z.infer<typeof generationModels>;
@@ -4,6 +4,7 @@ import { generationShot, shotIssues } from "./generation-shot.js";
4
4
  import { GENERATION_KINDS } from "./generations-output.js";
5
5
  import { maxCreditsField } from "./max-credits.js";
6
6
  import { runId } from "./runs.js";
7
+ import { listedUpscale } from "./upscale.js";
7
8
  import { uploadId } from "./uploads.js";
8
9
  export const GENERATION_MODELS_PATH = "/v1/generations/models";
9
10
  export const GENERATE_IMAGE_QUOTE_PATH = "/v1/skills/generate_image/quote";
@@ -63,7 +64,7 @@ export const GENERATION_CAPABILITIES = deepFreeze({
63
64
  },
64
65
  flare: {
65
66
  kind: "image",
66
- rows: [image("9:16", 1008, 1792, 7, true), image("16:9", 1792, 1008, 7), image("1:1", 1024, 1024, 7), image("21:9", 2352, 1008, 16, true)],
67
+ rows: [image("9:16", 1008, 1792, 7, true), image("16:9", 1792, 1008, 7), image("1:1", 1024, 1024, 7), image("21:9", 2352, 1008, 20, true)],
67
68
  },
68
69
  "gemini-3-pro-image": {
69
70
  kind: "image",
@@ -334,6 +335,7 @@ const listedModel = z.strictObject({
334
335
  });
335
336
  export const generationModels = z.strictObject({
336
337
  models: z.array(listedModel),
338
+ upscale: listedUpscale.optional(),
337
339
  contract_version: z.string().min(1),
338
340
  });
339
341
  export function listGenerationModels(options = {}) {
@@ -8,6 +8,7 @@ export declare function actorIdempotencyKeyFor(input: unknown, clientId: string)
8
8
  export declare function revisionIdempotencyKeyFor(sourceRunId: string, request: unknown, clientId: string): string;
9
9
  export declare function candidateIdempotencyKeyFor(sourceRunId: string, request: unknown, clientId: string): string;
10
10
  export declare function generationIdempotencyKeyFor(skill: "generate_image" | "generate_video", request: unknown, clientId: string): string;
11
+ export declare function upscaleIdempotencyKeyFor(request: unknown, clientId: string): string;
11
12
  export declare function ownAgentIdempotencyKeyFor(skill: OwnAgentSkill, request: unknown, clientId: string): string;
12
13
  export declare function uploadRequestIdentity(kind: "import" | "intent", input: unknown): unknown;
13
14
  export declare function uploadRequestIdempotencyKeyFor(kind: "import" | "intent", input: unknown, clientId: string): string;
@@ -8,6 +8,7 @@ import { filmCutPreviewInput, filmCutRunInput } from "./film-cut.js";
8
8
  import { generateImageRequest, generateVideoRequest } from "./generations.js";
9
9
  import { filmEditInput, filmHeroInput, filmRenderInput, filmStillsInput, filmVoiceInput, takeCheckInput, takeFramesInput } from "./own-agent-runs.js";
10
10
  import { runId } from "./runs.js";
11
+ import { upscaleRequest } from "./upscale.js";
11
12
  import { measuredVideoSize } from "./video-size.js";
12
13
  import { makeUgcInput } from "./skills.js";
13
14
  import { uploadImportRequest, uploadIntentRequest } from "./uploads.js";
@@ -65,6 +66,12 @@ export function generationIdempotencyKeyFor(skill, request, clientId) {
65
66
  .update(clientId + JSON.stringify(canonicalize(parsed)))
66
67
  .digest("hex");
67
68
  }
69
+ export function upscaleIdempotencyKeyFor(request, clientId) {
70
+ const parsed = { op: "upscale", request: upscaleRequest.parse(request) };
71
+ return createHash("sha256")
72
+ .update(clientId + JSON.stringify(canonicalize(parsed)))
73
+ .digest("hex");
74
+ }
68
75
  export function ownAgentIdempotencyKeyFor(skill, request, clientId) {
69
76
  const schema = skill === "film_stills" ? filmStillsInput : skill === "film_voice" ? filmVoiceInput : skill === "film_hero" ? filmHeroInput
70
77
  : skill === "film_edit" ? filmEditInput : skill === "film_take_frames" ? takeFramesInput : skill === "film_take_check" ? takeCheckInput
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./skills.js";
2
+ export * from "./service-offer.js";
2
3
  export * from "./design.js";
3
4
  export * from "./skill-theme.js";
4
5
  export * from "./skill-theme-explainer.js";
@@ -74,6 +75,7 @@ export * from "./speech-rhythm-contract.js";
74
75
  export * from "./face-billing.js";
75
76
  export * from "./long-form-pricing.js";
76
77
  export * from "./parts-pricing.js";
78
+ export * from "./presenter-engine.js";
77
79
  export * from "./music.js";
78
80
  export * from "./edit-music.js";
79
81
  export * from "./presenter-matte.js";
@@ -93,6 +95,7 @@ export * from "./generation-shot.js";
93
95
  export * from "./scene-bible.js";
94
96
  export * from "./generations.js";
95
97
  export * from "./generations-output.js";
98
+ export * from "./upscale.js";
96
99
  export * from "./reference-profile.js";
97
100
  export * from "./reference-bring.js";
98
101
  export * from "./reference-lyrics.js";
@@ -102,6 +105,7 @@ export * from "./reference-staging.js";
102
105
  export * from "./reference-text-spans.js";
103
106
  export * from "./reference-voice.js";
104
107
  export * from "./reference-analysis.js";
108
+ export * from "./reference-film-kit.js";
105
109
  export * from "./brand-styles.js";
106
110
  export * from "./reference-display.js";
107
111
  export * from "./creator-profile.js";
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./skills.js";
2
+ export * from "./service-offer.js";
2
3
  export * from "./design.js";
3
4
  export * from "./skill-theme.js";
4
5
  export * from "./skill-theme-explainer.js";
@@ -74,6 +75,7 @@ export * from "./speech-rhythm-contract.js";
74
75
  export * from "./face-billing.js";
75
76
  export * from "./long-form-pricing.js";
76
77
  export * from "./parts-pricing.js";
78
+ export * from "./presenter-engine.js";
77
79
  export * from "./music.js";
78
80
  export * from "./edit-music.js";
79
81
  export * from "./presenter-matte.js";
@@ -93,6 +95,7 @@ export * from "./generation-shot.js";
93
95
  export * from "./scene-bible.js";
94
96
  export * from "./generations.js";
95
97
  export * from "./generations-output.js";
98
+ export * from "./upscale.js";
96
99
  export * from "./reference-profile.js";
97
100
  export * from "./reference-bring.js";
98
101
  export * from "./reference-lyrics.js";
@@ -102,6 +105,7 @@ export * from "./reference-staging.js";
102
105
  export * from "./reference-text-spans.js";
103
106
  export * from "./reference-voice.js";
104
107
  export * from "./reference-analysis.js";
108
+ export * from "./reference-film-kit.js";
105
109
  export * from "./brand-styles.js";
106
110
  export * from "./reference-display.js";
107
111
  export * from "./creator-profile.js";
package/dist/mascots.d.ts CHANGED
@@ -1,6 +1,29 @@
1
1
  import { z } from "zod";
2
2
  export declare const MASCOT_POSES: readonly ["up", "palm", "point", "celebrate", "surprise", "think", "shrug", "wink", "neutral"];
3
3
  export type MascotPoseName = (typeof MASCOT_POSES)[number];
4
+ export declare const MASCOT_SPRITES: readonly ["half", "open", "blink", "smile", "surprise", "look_left", "look_right"];
5
+ export type MascotSpriteName = (typeof MASCOT_SPRITES)[number];
6
+ export declare const MASCOT_TALK_SPRITES: readonly ["half", "open", "blink"];
7
+ export declare const mascotSprite: z.ZodObject<{
8
+ key: z.ZodString;
9
+ bytes: z.ZodNumber;
10
+ sha256: z.ZodString;
11
+ }, z.core.$strict>;
12
+ export type MascotSprite = z.infer<typeof mascotSprite>;
13
+ export declare const mascotAnchors: z.ZodObject<{
14
+ eyes: z.ZodTuple<[z.ZodObject<{
15
+ x: z.ZodNumber;
16
+ y: z.ZodNumber;
17
+ }, z.core.$strict>, z.ZodObject<{
18
+ x: z.ZodNumber;
19
+ y: z.ZodNumber;
20
+ }, z.core.$strict>], null>;
21
+ mouth: z.ZodObject<{
22
+ x: z.ZodNumber;
23
+ y: z.ZodNumber;
24
+ }, z.core.$strict>;
25
+ }, z.core.$strict>;
26
+ export type MascotAnchors = z.infer<typeof mascotAnchors>;
4
27
  export declare const mascotPose: z.ZodObject<{
5
28
  key: z.ZodString;
6
29
  bytes: z.ZodNumber;
@@ -25,11 +48,40 @@ export declare const mascotPose: z.ZodObject<{
25
48
  rig: z.ZodOptional<z.ZodString>;
26
49
  photo: z.ZodOptional<z.ZodLiteral<true>>;
27
50
  unread: z.ZodOptional<z.ZodLiteral<true>>;
51
+ sprites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
52
+ blink: "blink";
53
+ half: "half";
54
+ look_left: "look_left";
55
+ look_right: "look_right";
56
+ open: "open";
57
+ smile: "smile";
58
+ surprise: "surprise";
59
+ }> & z.core.$partial, z.ZodObject<{
60
+ key: z.ZodString;
61
+ bytes: z.ZodNumber;
62
+ sha256: z.ZodString;
63
+ }, z.core.$strict>>>;
64
+ anchors: z.ZodOptional<z.ZodObject<{
65
+ eyes: z.ZodTuple<[z.ZodObject<{
66
+ x: z.ZodNumber;
67
+ y: z.ZodNumber;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ x: z.ZodNumber;
70
+ y: z.ZodNumber;
71
+ }, z.core.$strict>], null>;
72
+ mouth: z.ZodObject<{
73
+ x: z.ZodNumber;
74
+ y: z.ZodNumber;
75
+ }, z.core.$strict>;
76
+ }, z.core.$strict>>;
77
+ head: z.ZodOptional<z.ZodLiteral<true>>;
78
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
28
79
  }, z.core.$strict>;
29
80
  export type MascotPose = z.infer<typeof mascotPose>;
30
- export type MascotPoseFace = "works" | "still" | "faceless";
81
+ export type MascotPoseFace = "works" | "still" | "faceless" | "quiet";
31
82
  export declare function mascotPoseFace(pose: unknown): MascotPoseFace;
32
83
  export declare const mascotPoseWorks: (pose: unknown) => boolean;
84
+ export declare function heroLook(details: string | null | undefined): "drawn" | "photo";
33
85
  export declare const mascotPoses: z.ZodRecord<z.ZodEnum<{
34
86
  celebrate: "celebrate";
35
87
  neutral: "neutral";
@@ -64,6 +116,34 @@ export declare const mascotPoses: z.ZodRecord<z.ZodEnum<{
64
116
  rig: z.ZodOptional<z.ZodString>;
65
117
  photo: z.ZodOptional<z.ZodLiteral<true>>;
66
118
  unread: z.ZodOptional<z.ZodLiteral<true>>;
119
+ sprites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
120
+ blink: "blink";
121
+ half: "half";
122
+ look_left: "look_left";
123
+ look_right: "look_right";
124
+ open: "open";
125
+ smile: "smile";
126
+ surprise: "surprise";
127
+ }> & z.core.$partial, z.ZodObject<{
128
+ key: z.ZodString;
129
+ bytes: z.ZodNumber;
130
+ sha256: z.ZodString;
131
+ }, z.core.$strict>>>;
132
+ anchors: z.ZodOptional<z.ZodObject<{
133
+ eyes: z.ZodTuple<[z.ZodObject<{
134
+ x: z.ZodNumber;
135
+ y: z.ZodNumber;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ x: z.ZodNumber;
138
+ y: z.ZodNumber;
139
+ }, z.core.$strict>], null>;
140
+ mouth: z.ZodObject<{
141
+ x: z.ZodNumber;
142
+ y: z.ZodNumber;
143
+ }, z.core.$strict>;
144
+ }, z.core.$strict>>;
145
+ head: z.ZodOptional<z.ZodLiteral<true>>;
146
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
67
147
  }, z.core.$strict>>;
68
148
  export type MascotPoses = z.infer<typeof mascotPoses>;
69
149
  export declare const pinnedMascot: z.ZodObject<{
@@ -102,6 +182,34 @@ export declare const pinnedMascot: z.ZodObject<{
102
182
  rig: z.ZodOptional<z.ZodString>;
103
183
  photo: z.ZodOptional<z.ZodLiteral<true>>;
104
184
  unread: z.ZodOptional<z.ZodLiteral<true>>;
185
+ sprites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
186
+ blink: "blink";
187
+ half: "half";
188
+ look_left: "look_left";
189
+ look_right: "look_right";
190
+ open: "open";
191
+ smile: "smile";
192
+ surprise: "surprise";
193
+ }> & z.core.$partial, z.ZodObject<{
194
+ key: z.ZodString;
195
+ bytes: z.ZodNumber;
196
+ sha256: z.ZodString;
197
+ }, z.core.$strict>>>;
198
+ anchors: z.ZodOptional<z.ZodObject<{
199
+ eyes: z.ZodTuple<[z.ZodObject<{
200
+ x: z.ZodNumber;
201
+ y: z.ZodNumber;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ x: z.ZodNumber;
204
+ y: z.ZodNumber;
205
+ }, z.core.$strict>], null>;
206
+ mouth: z.ZodObject<{
207
+ x: z.ZodNumber;
208
+ y: z.ZodNumber;
209
+ }, z.core.$strict>;
210
+ }, z.core.$strict>>;
211
+ head: z.ZodOptional<z.ZodLiteral<true>>;
212
+ quiet: z.ZodOptional<z.ZodLiteral<true>>;
105
213
  }, z.core.$strict>>;
106
214
  }, z.core.$strict>;
107
215
  export type PinnedMascot = z.infer<typeof pinnedMascot>;
@@ -118,5 +226,6 @@ export declare const mascotSummary: z.ZodObject<{
118
226
  wink: "wink";
119
227
  }>>;
120
228
  character: z.ZodNullable<z.ZodString>;
229
+ head: z.ZodOptional<z.ZodBoolean>;
121
230
  }, z.core.$strict>;
122
231
  export type MascotSummary = z.infer<typeof mascotSummary>;
package/dist/mascots.js CHANGED
@@ -2,6 +2,15 @@ import { z } from "zod";
2
2
  import { assetId } from "./asset-identity.js";
3
3
  export const MASCOT_POSES = ["up", "palm", "point", "celebrate", "surprise", "think", "shrug", "wink", "neutral"];
4
4
  const share = z.number().min(0).max(1);
5
+ export const MASCOT_SPRITES = ["half", "open", "blink", "smile", "surprise", "look_left", "look_right"];
6
+ export const MASCOT_TALK_SPRITES = ["half", "open", "blink"];
7
+ export const mascotSprite = z.strictObject({
8
+ key: z.string().min(1).max(300),
9
+ bytes: z.number().int().positive().max(32 * 1024 ** 2),
10
+ sha256: z.string().regex(/^[a-f0-9]{64}$/),
11
+ });
12
+ const point = z.strictObject({ x: share, y: share });
13
+ export const mascotAnchors = z.strictObject({ eyes: z.tuple([point, point]), mouth: point });
5
14
  export const mascotPose = z.strictObject({
6
15
  key: z.string().min(1).max(300),
7
16
  bytes: z.number().int().positive().max(32 * 1024 ** 2),
@@ -13,13 +22,35 @@ export const mascotPose = z.strictObject({
13
22
  rig: z.string().min(1).max(300).optional(),
14
23
  photo: z.literal(true).optional(),
15
24
  unread: z.literal(true).optional(),
25
+ sprites: z.partialRecord(z.enum(MASCOT_SPRITES), mascotSprite).optional(),
26
+ anchors: mascotAnchors.optional(),
27
+ head: z.literal(true).optional(),
28
+ quiet: z.literal(true).optional(),
29
+ }).superRefine((pose, ctx) => {
30
+ const issue = (message) => ctx.addIssue({ code: z.ZodIssueCode.custom, message });
31
+ if (pose.sprites && !pose.anchors)
32
+ issue("a pose with sprites carries their anchors");
33
+ if (pose.anchors && !pose.sprites)
34
+ issue("anchors come with sprites");
35
+ if (pose.sprites && (pose.mouth || pose.eyes))
36
+ issue("a pose with sprites keeps its own mouth: no mouth or eyes to draw");
37
+ if (pose.head && !MASCOT_SPRITES.every(name => pose.sprites?.[name]))
38
+ issue("a head carries every sprite");
39
+ if (pose.quiet && (pose.sprites || pose.mouth || pose.eyes))
40
+ issue("a quiet pose has no face to move");
16
41
  });
17
42
  export function mascotPoseFace(pose) {
18
43
  if (typeof pose !== "object" || pose === null)
19
44
  return "faceless";
20
- const { photo, mouth, eyes, unread } = pose;
45
+ const { photo, mouth, eyes, unread, sprites, anchors, quiet } = pose;
21
46
  if (photo === true)
22
47
  return "works";
48
+ if (typeof sprites === "object" && sprites !== null) {
49
+ const has = (name) => { const s = sprites[name]; return (typeof s === "object" && s !== null) || typeof s === "string"; };
50
+ return has("half") && has("open") && typeof anchors === "object" && anchors !== null ? "works" : "still";
51
+ }
52
+ if (quiet === true)
53
+ return "quiet";
23
54
  if (typeof mouth === "object" && mouth !== null) {
24
55
  const ink = mouth.ink;
25
56
  return typeof ink === "string" ? "works" : !Object.hasOwn(mouth, "ink") ? "still" : "faceless";
@@ -28,10 +59,16 @@ export function mascotPoseFace(pose) {
28
59
  return unread === true || (Array.isArray(points) && points.length > 0) ? "still" : "faceless";
29
60
  }
30
61
  export const mascotPoseWorks = (pose) => mascotPoseFace(pose) === "works";
62
+ const PHOTO_LOOK = /\b(?:photo[- ]?real\w*|photographic|hyper[- ]?real\w*|realistic|life[- ]?like|true[- ]to[- ]life|live[- ]action|real[- ]photo|keep (?:\w+ )?(?:as )?(?:a |the )?photo|as (?:a |in the )?photo)\b/i;
63
+ const DRAWN_LOOK = /\b(?:cartoon\w*|drawn|drawing|illustrat\w*|animated|anime|[23]d|comic\w*|sketch\w*|styli[sz]ed|caricature\w*)\b/i;
64
+ export function heroLook(details) {
65
+ return details && PHOTO_LOOK.test(details) && !DRAWN_LOOK.test(details) ? "photo" : "drawn";
66
+ }
31
67
  export const mascotPoses = z.partialRecord(z.enum(MASCOT_POSES), mascotPose)
32
68
  .refine((poses) => poses.neutral !== undefined, { message: "a mascot holds its neutral pose" });
33
69
  export const pinnedMascot = z.strictObject({ asset_id: assetId, poses: mascotPoses });
34
70
  export const mascotSummary = z.strictObject({
35
71
  poses: z.array(z.enum(MASCOT_POSES)).min(1),
36
72
  character: z.string().min(1).nullable(),
73
+ head: z.boolean().optional(),
37
74
  });
@@ -23,7 +23,7 @@ export declare const MCP_UGC_DESCRIPTIONS: {
23
23
  readonly actor_gender: string;
24
24
  readonly aspect_ratio: string;
25
25
  readonly caption_mode: string;
26
- readonly visible_ai_label: "Visible AI label, default true. False hides only the visible label; invisible marking and signed provenance stay.";
26
+ readonly visible_ai_label: "Not available right now: a request that sets it is refused.";
27
27
  readonly layout_windows: string;
28
28
  readonly end_hold_s: string;
29
29
  readonly edit_sounds: string;
@@ -105,7 +105,7 @@ export const MCP_UGC_DESCRIPTIONS = {
105
105
  "image. A source more than 15% off the request is refused (aspect_conflict) before any charge.",
106
106
  caption_mode: "full (default): every spoken word. highlights: only around caption_emphasis quotes (lead-in, quote, short tail); requires " +
107
107
  "caption_emphasis. Captions hide under a full-frame insert.",
108
- visible_ai_label: "Visible AI label, default true. False hides only the visible label; invisible marking and signed provenance stay.",
108
+ visible_ai_label: "Not available right now: a request that sets it is refused.",
109
109
  layout_windows: "Text-anchored presenter reframings: split (9:16 only) or card; no overlap with each other or an insert; needs what " +
110
110
  "inserts need. A covered or blurred presenter is billed as face time.",
111
111
  end_hold_s: "Seconds the last frame holds after the last word, the presenter frozen and every layer kept; production seconds. Needs " +