@clipwright/core 0.65.0 → 0.66.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.
@@ -1,10 +1,11 @@
1
1
  import { z } from "zod";
2
2
  export declare const AD_GUIDE_PATH = "/v1/ad-guide";
3
- export declare const AD_GUIDE_SECTION_IDS: readonly ["ugc", "order", "script", "product_sheet", "photo_edit", "hero", "location", "props", "states", "models", "motion_test", "shot_list", "devices", "takes", "audit", "repair", "edit", "final_check", "spend"];
3
+ export declare const AD_GUIDE_SECTION_IDS: readonly ["ugc", "order", "script", "product_sheet", "photo_edit", "hero", "location", "props", "states", "board", "models", "motion_test", "shot_list", "devices", "takes", "audit", "repair", "edit", "final_check", "spend"];
4
4
  export type AdGuideSectionId = (typeof AD_GUIDE_SECTION_IDS)[number];
5
5
  export declare const adGuideQuery: z.ZodObject<{
6
6
  section: z.ZodOptional<z.ZodEnum<{
7
7
  audit: "audit";
8
+ board: "board";
8
9
  devices: "devices";
9
10
  edit: "edit";
10
11
  final_check: "final_check";
package/dist/ad-guide.js CHANGED
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import { brandGuideBlock } from "./design.js";
3
3
  import { guideCatalog } from "./film-guide.js";
4
4
  export const AD_GUIDE_PATH = "/v1/ad-guide";
5
- export const AD_GUIDE_SECTION_IDS = ["ugc", "order", "script", "product_sheet", "photo_edit", "hero", "location", "props", "states", "models",
5
+ export const AD_GUIDE_SECTION_IDS = ["ugc", "order", "script", "product_sheet", "photo_edit", "hero", "location", "props", "states", "board", "models",
6
6
  "motion_test", "shot_list", "devices", "takes", "audit", "repair", "edit", "final_check", "spend"];
7
7
  export const adGuideQuery = z.strictObject({
8
8
  section: z.enum(AD_GUIDE_SECTION_IDS).optional()
@@ -9,7 +9,7 @@ export declare const OWN_FILM_RENDER_CREDITS = 100, OWN_FILM_INCLUDED_SECONDS =
9
9
  export declare const OWN_VOICE_CREDITS_PER_SECOND = 2;
10
10
  export declare const OWN_STILLS_MAX_PER_CALL = 24, OWN_FILM_MAX_SECONDS = 120, OWN_VOICE_MAX_SECONDS = 120;
11
11
  export declare const OWN_STILLS_SINGLE_MAX = 8;
12
- export declare const OWN_HERO_POSE_CREDITS = 7, OWN_HERO_POSES = 9;
12
+ export declare const OWN_HERO_POSE_CREDITS = 9, OWN_HERO_POSES = 9;
13
13
  export declare const OWN_EDIT_CREDITS = 10, OWN_EDIT_MAX_SECONDS = 60;
14
14
  export declare const OWN_TAKE_FRAMES_MAX = 96, TAKE_FRAMES_PER_HOUR = 60, TAKE_FRAMES_WINDOW_SECONDS = 3600;
15
15
  export declare const TAKE_PICTURE_CHECKS_PER_HOUR = 30;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { FACELESS_EXPLAINER_POSE_PICTURES, FACELESS_IMAGE_CREDITS } from "./faceless-price.js";
2
+ import { FACELESS_EXPLAINER_POSE_PICTURES } from "./faceless-price.js";
3
3
  import { MUSIC_BED_CREDITS } from "./music.js";
4
4
  export const OWN_AGENT_TARIFF = "own-agent-v2";
5
5
  export const OWN_AGENT_TARIFF_V1 = "own-agent-v1";
@@ -11,7 +11,7 @@ export const OWN_FILM_RENDER_CREDITS = 100, OWN_FILM_INCLUDED_SECONDS = 60, OWN_
11
11
  export const OWN_VOICE_CREDITS_PER_SECOND = 2;
12
12
  export const OWN_STILLS_MAX_PER_CALL = 24, OWN_FILM_MAX_SECONDS = 120, OWN_VOICE_MAX_SECONDS = 120;
13
13
  export const OWN_STILLS_SINGLE_MAX = 8;
14
- export const OWN_HERO_POSE_CREDITS = FACELESS_IMAGE_CREDITS, OWN_HERO_POSES = FACELESS_EXPLAINER_POSE_PICTURES;
14
+ export const OWN_HERO_POSE_CREDITS = 9, OWN_HERO_POSES = FACELESS_EXPLAINER_POSE_PICTURES;
15
15
  export const OWN_EDIT_CREDITS = 10, OWN_EDIT_MAX_SECONDS = 60;
16
16
  export const OWN_TAKE_FRAMES_MAX = 96, TAKE_FRAMES_PER_HOUR = 60, TAKE_FRAMES_WINDOW_SECONDS = 3600;
17
17
  export const TAKE_PICTURE_CHECKS_PER_HOUR = 30;
@@ -97,6 +97,7 @@ export declare const filmEditInput: z.ZodObject<{
97
97
  from: z.ZodNumber;
98
98
  to: z.ZodNumber;
99
99
  speed: z.ZodDefault<z.ZodNumber>;
100
+ sound: z.ZodOptional<z.ZodBoolean>;
100
101
  slot: z.ZodOptional<z.ZodString>;
101
102
  }, z.core.$strict>>;
102
103
  voice: z.ZodOptional<z.ZodObject<{
@@ -73,10 +73,14 @@ const editClip = z.strictObject({
73
73
  from: editSecond.describe("The second of the clip the cut starts at"),
74
74
  to: editSecond.describe("The second of the clip the cut ends at, after from"),
75
75
  speed: z.number().min(0.5).max(2).default(1).describe("Play speed; the clip lasts (to - from) / speed in the edit. 1.2 lifts a slow beat"),
76
+ sound: z.boolean().optional().describe("Play this window's own sound (a clip made with audio: true) at the level of speech; at speed 1, " +
77
+ "never over the voice's words"),
76
78
  slot: adSlotId.optional().describe("With ad_id: the slot of the ad this clip fills. A clip made with generate_video must have passed " +
77
79
  "check_take in that slot; your own footage needs no check"),
78
80
  }).refine(clip => (clip.run_id === undefined) !== (clip.asset_id === undefined), "name the clip by run_id or by asset_id, one of them")
79
- .refine(clip => clip.to > clip.from, "to must be after from");
81
+ .refine(clip => clip.to > clip.from, "to must be after from")
82
+ .refine(clip => clip.sound !== true || clip.run_id !== undefined, { path: ["sound"], message: "a clip's own sound is kept only from a generate_video run made with audio: true" })
83
+ .refine(clip => clip.sound !== true || clip.speed === 1, { path: ["sound"], message: "a clip's own sound plays at speed 1 only" });
80
84
  const voicePiece = z.strictObject({
81
85
  from: editSecond.describe("The second of the take the piece starts at (make_voice words give each word's start and end)"),
82
86
  to: editSecond.describe("The second of the take the piece ends at, after from"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipwright/core",
3
- "version": "0.65.0",
3
+ "version": "0.66.0",
4
4
  "description": "Zod schemas and the shared request/response contract of the Clipwright UGC video API",
5
5
  "repository": {
6
6
  "type": "git",