@kinetune/cli 2.11.0 → 4.1.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 (3) hide show
  1. package/README.md +45 -12
  2. package/dist/kinetune.mjs +1681 -479
  3. package/package.json +1 -1
package/dist/kinetune.mjs CHANGED
@@ -36,30 +36,6 @@ var CATEGORY_IDS = [
36
36
  "cyber",
37
37
  "dreamy"
38
38
  ];
39
- var CATEGORIES = {
40
- release: { label: "Release", description: "Bold announcement looks for a new single.", background: "image" },
41
- fall: { label: "Fall", description: "Warm autumn colors and cozy textures.", background: "image" },
42
- halloween: { label: "Halloween", description: "Spooky nights, pumpkins and fog.", background: "image" },
43
- christmas: { label: "Christmas", description: "Snowy, glowing holiday looks.", background: "image" },
44
- summer: { label: "Summer", description: "Sun, water and holiday energy.", background: "image" },
45
- valentines: { label: "Valentine's", description: "Romantic reds, roses and soft light.", background: "image" },
46
- mood: { label: "Mood", description: "Cinematic scenes with a lyric quote.", background: "image" },
47
- retro: { label: "Retro", description: "Vinyl, film grain and vintage type.", background: "image" },
48
- synthwave: { label: "Synthwave", description: "Neon sunsets and night drives.", background: "image" },
49
- street: { label: "Street", description: "Concrete, graffiti and grit.", background: "image" },
50
- nature: { label: "Nature", description: "Forests, mountains and open water.", background: "image" },
51
- luxury: { label: "Luxury", description: "Marble, gold and deep velvet.", background: "image" },
52
- abstract: { label: "Abstract", description: "Flowing color fields and gradients.", background: "gradient" },
53
- minimal: { label: "Minimal", description: "Quiet color and clean type.", background: "gradient" },
54
- neon: { label: "Neon", description: "Glowing color in the dark.", background: "gradient" },
55
- "pop-art": { label: "Pop art", description: "Loud patterns and graphic color.", background: "pattern" },
56
- "lo-fi": { label: "Lo-fi", description: "Cozy illustrated rooms, rainy windows and soft grain.", background: "image" },
57
- grunge: { label: "Grunge", description: "Torn paper, concrete and raw black-and-white grit.", background: "image" },
58
- cosmic: { label: "Cosmic", description: "Nebulae, planets and deep-space light.", background: "image" },
59
- cyber: { label: "Cyber", description: "Cyberpunk streets, screens and digital glitches.", background: "image" },
60
- dreamy: { label: "Dreamy", description: "Clouds, soft skies and hazy golden light.", background: "image" }
61
- };
62
- var categoryUsesImages = (id2) => CATEGORIES[id2].background === "image";
63
39
 
64
40
  // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
65
41
  var external_exports = {};
@@ -1352,8 +1328,8 @@ function base64urlToUint8Array(base64url3) {
1352
1328
  function uint8ArrayToBase64url(bytes) {
1353
1329
  return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
1354
1330
  }
1355
- function hexToUint8Array(hex5) {
1356
- const cleanHex = hex5.replace(/^0x/, "");
1331
+ function hexToUint8Array(hex6) {
1332
+ const cleanHex = hex6.replace(/^0x/, "");
1357
1333
  if (cleanHex.length % 2 !== 0) {
1358
1334
  throw new Error("Invalid hex string length");
1359
1335
  }
@@ -1771,18 +1747,18 @@ function treeifyError(error62, mapper = (issue2) => issue2.message) {
1771
1747
  }
1772
1748
  function toDotPath(_path) {
1773
1749
  const segs = [];
1774
- const path4 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
1775
- for (const seg of path4) {
1776
- if (typeof seg === "number")
1777
- segs.push(`[${seg}]`);
1778
- else if (typeof seg === "symbol")
1779
- segs.push(`[${JSON.stringify(String(seg))}]`);
1780
- else if (/[^\w$]/.test(seg))
1781
- segs.push(`[${JSON.stringify(seg)}]`);
1750
+ const path4 = _path.map((seg2) => typeof seg2 === "object" ? seg2.key : seg2);
1751
+ for (const seg2 of path4) {
1752
+ if (typeof seg2 === "number")
1753
+ segs.push(`[${seg2}]`);
1754
+ else if (typeof seg2 === "symbol")
1755
+ segs.push(`[${JSON.stringify(String(seg2))}]`);
1756
+ else if (/[^\w$]/.test(seg2))
1757
+ segs.push(`[${JSON.stringify(seg2)}]`);
1782
1758
  else {
1783
1759
  if (segs.length)
1784
1760
  segs.push(".");
1785
- segs.push(seg);
1761
+ segs.push(seg2);
1786
1762
  }
1787
1763
  }
1788
1764
  return segs.join("");
@@ -3640,15 +3616,15 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3640
3616
  const syms = normalized.symbolKeys;
3641
3617
  const doc = new Doc(["payload", "ctx"], { shape, inst, memo: memo2, syms });
3642
3618
  const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
3643
- const prefixStr = (id2, k) => `
3644
- let ${id2}_ab = false;
3645
- for (let i = 0; i < ${id2}.issues.length; i++) {
3646
- const iss = ${id2}.issues[i];
3619
+ const prefixStr = (id3, k) => `
3620
+ let ${id3}_ab = false;
3621
+ for (let i = 0; i < ${id3}.issues.length; i++) {
3622
+ const iss = ${id3}.issues[i];
3647
3623
  iss.path = iss.path ? [${k}, ...iss.path] : [${k}];
3648
3624
  payload.issues.push(iss);
3649
- if (iss.continue !== true) ${id2}_ab = true;
3625
+ if (iss.continue !== true) ${id3}_ab = true;
3650
3626
  }
3651
- if (${id2}_ab && ctx && ctx.abortEarly) {
3627
+ if (${id3}_ab && ctx && ctx.abortEarly) {
3652
3628
  payload.value = newResult;
3653
3629
  return payload;
3654
3630
  }`;
@@ -3662,34 +3638,34 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3662
3638
  for (const key of normalized.allKeys) {
3663
3639
  if (key === "__proto__")
3664
3640
  continue;
3665
- const id2 = ids[key];
3641
+ const id3 = ids[key];
3666
3642
  const k = typeof key === "symbol" ? `syms[${syms.indexOf(key)}]` : esc(key);
3667
3643
  const isPresent = `${k} in input`;
3668
3644
  const schema = shape[key];
3669
3645
  const optin = schema?._zod?.optin;
3670
3646
  const isOptionalIn = optin !== void 0;
3671
3647
  const isOptionalOut = schema?._zod?.optout === "optional";
3672
- doc.write(`const ${id2} = ${parseStr(k)};`);
3648
+ doc.write(`const ${id3} = ${parseStr(k)};`);
3673
3649
  if (isOptionalIn && isOptionalOut) {
3674
- const assign = optin === "optional" ? `${id2}_present` : `${id2}.value !== undefined || ${id2}_present`;
3650
+ const assign = optin === "optional" ? `${id3}_present` : `${id3}.value !== undefined || ${id3}_present`;
3675
3651
  doc.write(`
3676
- const ${id2}_present = ${isPresent};
3677
- if (!${id2}.issues.length || ${id2}_present) {
3678
- if (${id2}.issues.length) {${prefixStr(id2, k)}
3652
+ const ${id3}_present = ${isPresent};
3653
+ if (!${id3}.issues.length || ${id3}_present) {
3654
+ if (${id3}.issues.length) {${prefixStr(id3, k)}
3679
3655
  }
3680
3656
 
3681
3657
  if (${assign}) {
3682
- newResult[${k}] = ${id2}.value;
3658
+ newResult[${k}] = ${id3}.value;
3683
3659
  }
3684
3660
  }
3685
3661
 
3686
3662
  `);
3687
3663
  } else if (!isOptionalIn) {
3688
3664
  doc.write(`
3689
- const ${id2}_present = ${isPresent};
3690
- if (${id2}.issues.length) {${prefixStr(id2, k)}
3665
+ const ${id3}_present = ${isPresent};
3666
+ if (${id3}.issues.length) {${prefixStr(id3, k)}
3691
3667
  }
3692
- if (!${id2}_present && !${id2}.issues.length) {
3668
+ if (!${id3}_present && !${id3}.issues.length) {
3693
3669
  payload.issues.push({
3694
3670
  code: "invalid_type",
3695
3671
  expected: "nonoptional",
@@ -3702,22 +3678,22 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
3702
3678
  }
3703
3679
  }
3704
3680
 
3705
- if (${id2}_present) {
3706
- newResult[${k}] = ${id2}.value;
3681
+ if (${id3}_present) {
3682
+ newResult[${k}] = ${id3}.value;
3707
3683
  }
3708
3684
 
3709
3685
  `);
3710
3686
  } else {
3711
3687
  doc.write(`
3712
- if (${id2}.issues.length) {${prefixStr(id2, k)}
3688
+ if (${id3}.issues.length) {${prefixStr(id3, k)}
3713
3689
  }
3714
3690
  `);
3715
3691
  if (optin === "defaulted") {
3716
- doc.write(`newResult[${k}] = ${id2}.value;`);
3692
+ doc.write(`newResult[${k}] = ${id3}.value;`);
3717
3693
  } else {
3718
3694
  doc.write(`
3719
- if (${id2}.value !== undefined || ${isPresent}) {
3720
- newResult[${k}] = ${id2}.value;
3695
+ if (${id3}.value !== undefined || ${isPresent}) {
3696
+ newResult[${k}] = ${id3}.value;
3721
3697
  }
3722
3698
  `);
3723
3699
  }
@@ -15735,26 +15711,26 @@ function extractDefs(ctx, schema) {
15735
15711
  return;
15736
15712
  const idToSchema = /* @__PURE__ */ new Map();
15737
15713
  for (const entry of ctx.seen.entries()) {
15738
- const id2 = ctx.metadataRegistry.get(entry[0])?.id;
15739
- if (id2) {
15740
- const existing = idToSchema.get(id2);
15714
+ const id3 = ctx.metadataRegistry.get(entry[0])?.id;
15715
+ if (id3) {
15716
+ const existing = idToSchema.get(id3);
15741
15717
  if (existing && existing !== entry[0]) {
15742
- throw new Error(`Duplicate schema id "${id2}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
15718
+ throw new Error(`Duplicate schema id "${id3}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
15743
15719
  }
15744
- idToSchema.set(id2, entry[0]);
15720
+ idToSchema.set(id3, entry[0]);
15745
15721
  }
15746
15722
  }
15747
15723
  const makeURI = (entry) => {
15748
15724
  const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
15749
15725
  if (ctx.external) {
15750
15726
  const externalId = ctx.external.registry.get(entry[0])?.id;
15751
- const uriGenerator = ctx.external.uri ?? ((id3) => id3);
15727
+ const uriGenerator = ctx.external.uri ?? ((id4) => id4);
15752
15728
  if (externalId) {
15753
15729
  return { ref: uriGenerator(externalId) };
15754
15730
  }
15755
- const id2 = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
15756
- entry[1].defId = id2;
15757
- return { defId: id2, ref: `${uriGenerator("__shared")}#/${defsSegment}/${encodeJSONPointerSegment(id2)}` };
15731
+ const id3 = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
15732
+ entry[1].defId = id3;
15733
+ return { defId: id3, ref: `${uriGenerator("__shared")}#/${defsSegment}/${encodeJSONPointerSegment(id3)}` };
15758
15734
  }
15759
15735
  const uriPrefix = `#`;
15760
15736
  const defUriPrefix = `${uriPrefix}/${defsSegment}/`;
@@ -15802,8 +15778,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15802
15778
  continue;
15803
15779
  }
15804
15780
  }
15805
- const id2 = ctx.metadataRegistry.get(entry[0])?.id;
15806
- if (id2) {
15781
+ const id3 = ctx.metadataRegistry.get(entry[0])?.id;
15782
+ if (id3) {
15807
15783
  extractToDef(entry);
15808
15784
  continue;
15809
15785
  }
@@ -16036,10 +16012,10 @@ function finalize(ctx, schema) {
16036
16012
  } else {
16037
16013
  }
16038
16014
  if (ctx.external?.uri) {
16039
- const id2 = ctx.external.registry.get(schema)?.id;
16040
- if (!id2)
16015
+ const id3 = ctx.external.registry.get(schema)?.id;
16016
+ if (!id3)
16041
16017
  throw new Error("Schema is missing an `id` property");
16042
- result.$id = ctx.external.uri(id2);
16018
+ result.$id = ctx.external.uri(id3);
16043
16019
  }
16044
16020
  assignProps(result, root.defId ? root.schema : root.def ?? root.schema);
16045
16021
  const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
@@ -16293,9 +16269,9 @@ var numberProcessor = (schema, ctx, _json, params) => {
16293
16269
  json2.type = isInt ? "integer" : "number";
16294
16270
  const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
16295
16271
  const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
16296
- const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
16272
+ const legacy2 = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
16297
16273
  if (exMin) {
16298
- if (legacy) {
16274
+ if (legacy2) {
16299
16275
  json2.minimum = exclusiveMinimum;
16300
16276
  json2.exclusiveMinimum = true;
16301
16277
  } else {
@@ -16305,7 +16281,7 @@ var numberProcessor = (schema, ctx, _json, params) => {
16305
16281
  json2.minimum = minimum;
16306
16282
  }
16307
16283
  if (exMax) {
16308
- if (legacy) {
16284
+ if (legacy2) {
16309
16285
  json2.maximum = exclusiveMaximum;
16310
16286
  json2.exclusiveMaximum = true;
16311
16287
  } else {
@@ -16645,7 +16621,7 @@ function stringifyKeyNames(bySchema, json2, visited) {
16645
16621
  const values = json2.enum ?? (json2.const !== void 0 ? [json2.const] : void 0);
16646
16622
  if (!numericType && !values?.some((v) => typeof v === "number"))
16647
16623
  return json2;
16648
- const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id: id2, ...rest } = json2;
16624
+ const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id: id3, ...rest } = json2;
16649
16625
  if (rest.enum)
16650
16626
  rest.enum = rest.enum.map((v) => typeof v === "number" ? String(v) : v);
16651
16627
  else if (typeof rest.const === "number")
@@ -19729,6 +19705,118 @@ function date4(params) {
19729
19705
  return _coercedDate(ZodDate, params);
19730
19706
  }
19731
19707
 
19708
+ // ../composition/src/song.ts
19709
+ var SPECTRUM_BANDS = 32;
19710
+ var SECTION_TYPES = ["intro", "verse", "chorus", "drop", "bridge", "outro"];
19711
+ var FRAME_BYTES = 5 + SPECTRUM_BANDS;
19712
+
19713
+ // ../composition/src/clips.ts
19714
+ var CUT_DENSITIES = ["one", "fewer", "even", "more"];
19715
+ var MAX_CLIP_SOURCES = 50;
19716
+ var TRANSITIONS = {
19717
+ slam: { name: "Bass slam", kind: "hit" },
19718
+ zoom: { name: "Zoom punch", kind: "blend" },
19719
+ flash: { name: "Flash", kind: "hit" },
19720
+ glitch: { name: "Glitch", kind: "hit" },
19721
+ whip: { name: "Whip", kind: "blend" },
19722
+ stack: { name: "Stack", kind: "blend" },
19723
+ spin: { name: "Spin", kind: "hit" },
19724
+ shutter: { name: "Shutter", kind: "blend" },
19725
+ ink: { name: "Ink", kind: "blend" },
19726
+ dissolve: { name: "Beat dissolve", kind: "blend" },
19727
+ wipe: { name: "Word wipe", kind: "blend" },
19728
+ stretch: { name: "Stretch", kind: "blend" },
19729
+ warp: { name: "Lens warp", kind: "blend" },
19730
+ flare: { name: "Flare", kind: "blend" },
19731
+ leak: { name: "Light leak", kind: "blend" },
19732
+ impact: { name: "Impact frame", kind: "hit" },
19733
+ strobe: { name: "Strobe", kind: "hit" },
19734
+ slip: { name: "Film slip", kind: "blend" },
19735
+ slice: { name: "Slice", kind: "blend" },
19736
+ grid: { name: "Grid", kind: "blend" }
19737
+ };
19738
+ var TRANSITION_IDS = Object.keys(TRANSITIONS);
19739
+ var CLIP_ENTRANCES = ["cut", ...TRANSITION_IDS];
19740
+ var TRANSITION_STYLES = {
19741
+ auto: null,
19742
+ impact: ["slam", "zoom", "flash", "impact", "strobe", "glitch", "spin"],
19743
+ flash: ["flash", "flare", "leak", "strobe", "shutter", "impact"],
19744
+ smooth: ["dissolve", "ink", "whip", "stack", "stretch", "warp", "leak"],
19745
+ none: []
19746
+ };
19747
+ var TRANSITION_STYLE_IDS = Object.keys(TRANSITION_STYLES);
19748
+ var JOIN_SECONDS = { min: 0.07, max: 1, default: 0.6 };
19749
+ var TRANSITION_DIRECTIONS = ["left", "right", "up", "down"];
19750
+ var GRADES = {
19751
+ clean: { name: "Clean", filter: "none" },
19752
+ vivid: { name: "Vivid", filter: "saturate(1.55) contrast(1.08)" },
19753
+ punch: { name: "Punch", filter: "contrast(1.35) saturate(1.2)" },
19754
+ warm: { name: "Warm", filter: "sepia(.28) saturate(1.25) brightness(1.03)" },
19755
+ cool: { name: "Cool", filter: "hue-rotate(-14deg) saturate(.92) brightness(1.04)" },
19756
+ golden: { name: "Golden hour", filter: "sepia(.45) saturate(1.4) brightness(1.06)" },
19757
+ blue: { name: "Blue hour", filter: "hue-rotate(-28deg) saturate(1.1) brightness(.92)" },
19758
+ tangerine: { name: "Tangerine", filter: "sepia(.35) hue-rotate(-12deg) saturate(1.6)" },
19759
+ teal: { name: "Teal & orange", filter: "contrast(1.12) saturate(1.35) hue-rotate(-6deg)" },
19760
+ faded: { name: "Faded film", filter: "contrast(.82) brightness(1.1) saturate(.75)" },
19761
+ matte: { name: "Matte", filter: "contrast(.78) brightness(1.06)" },
19762
+ silver: { name: "Silver", filter: "grayscale(.7) contrast(1.1)" },
19763
+ deep: { name: "Deep blacks", filter: "contrast(1.45) brightness(.9)" },
19764
+ glow: { name: "Glow", filter: "brightness(1.15) contrast(.92) saturate(1.1)" },
19765
+ vhs: { name: "VHS", filter: "saturate(1.3) contrast(.9) hue-rotate(6deg)" },
19766
+ super8: { name: "Super 8", filter: "sepia(.4) contrast(1.1) saturate(1.15)" },
19767
+ halation: { name: "Halation", filter: "brightness(1.1) saturate(1.25) contrast(1.05)" },
19768
+ bleach: { name: "Bleach bypass", filter: "saturate(.45) contrast(1.4)" },
19769
+ dream: { name: "Dream", filter: "brightness(1.15) saturate(1.1) contrast(.9)" },
19770
+ duotone: { name: "Duotone", filter: "grayscale(1) sepia(1) hue-rotate(250deg) saturate(3)" },
19771
+ cross: { name: "Cross process", filter: "hue-rotate(20deg) saturate(1.5) contrast(1.15)" },
19772
+ noir: { name: "Noir", filter: "grayscale(1) contrast(1.5)" },
19773
+ poster: { name: "Poster", filter: "contrast(2) saturate(1.6)" },
19774
+ night: { name: "Night vision", filter: "grayscale(1) sepia(1) hue-rotate(70deg) saturate(4) brightness(1.1)" },
19775
+ infrared: { name: "Infrared", filter: "invert(.85) hue-rotate(180deg) saturate(1.6)" },
19776
+ cctv: { name: "CCTV", filter: "grayscale(1) contrast(1.3) brightness(1.1)" },
19777
+ thermal: { name: "Thermal", filter: "grayscale(1) invert(1) sepia(1) hue-rotate(300deg) saturate(6)" }
19778
+ };
19779
+ var GRADE_IDS = Object.keys(GRADES);
19780
+ var GRADE_AMOUNT = { min: 0, max: 1, default: 1, step: 0.05 };
19781
+ var CLIP_SHAPES = ["both", "tall", "wide"];
19782
+ var CLIP_FILLS = ["cover", "blur", "bars"];
19783
+ var CLIP_SPEEDS = [0.5, 0.75, 1, 1.5, 2];
19784
+ var ClipMoodIdSchema = external_exports.string().regex(/^[a-z0-9][a-z0-9-]{1,39}$/, "A mood id (lowercase letters, digits and dashes)");
19785
+ var ClipFolderIdSchema = external_exports.string().regex(/^folder_[0-9a-f-]{36}$/, "A clip folder id (folder_\u2026)");
19786
+ var ClipIdSchema = external_exports.string().regex(/^clip_[0-9a-f-]{36}$/, "A clip id (clip_\u2026)");
19787
+ var ClipLookIdSchema = external_exports.string().regex(/^look_[A-Za-z0-9_-]{1,100}$/, "A Look id (look_\u2026)");
19788
+ var ClipSourcesSchema = external_exports.object({
19789
+ moods: external_exports.array(ClipMoodIdSchema).max(MAX_CLIP_SOURCES).default([]),
19790
+ folders: external_exports.array(ClipFolderIdSchema).max(MAX_CLIP_SOURCES).default([]),
19791
+ looks: external_exports.array(ClipLookIdSchema).max(MAX_CLIP_SOURCES).optional()
19792
+ }).strict().refine((s) => s.moods.length + s.folders.length + (s.looks?.length ?? 0) >= 1, { message: "Name at least one mood, folder or Look" }).refine((s) => s.moods.length + s.folders.length + (s.looks?.length ?? 0) <= MAX_CLIP_SOURCES, { message: `At most ${MAX_CLIP_SOURCES} moods, folders and Looks together` });
19793
+ var TransitionsSchema = external_exports.object({
19794
+ style: external_exports.enum(TRANSITION_STYLE_IDS).default("auto"),
19795
+ amount: external_exports.number().min(0).max(1).default(0.5),
19796
+ feel: external_exports.number().min(0).max(1).default(0.5),
19797
+ off: external_exports.array(external_exports.enum(TRANSITION_IDS)).max(TRANSITION_IDS.length).default([]),
19798
+ seed: external_exports.number().int().min(0).max(2 ** 31 - 1).default(1)
19799
+ }).strict();
19800
+ var EditClipSchema = external_exports.object({
19801
+ clip_id: ClipIdSchema,
19802
+ /** Where it starts in the video (s). */
19803
+ at: external_exports.number().min(0).max(3600),
19804
+ /** Where in the clip it starts playing (s). */
19805
+ in: external_exports.number().min(0).max(600),
19806
+ /** How long it shows (s): until the next clip. */
19807
+ duration: external_exports.number().min(0.1).max(3600),
19808
+ transition: external_exports.enum(CLIP_ENTRANCES),
19809
+ /** Set on the timeline for this join: the transition's length (s), where it travels, how hard it hits (0–1, 0.5 = as designed). */
19810
+ transition_seconds: external_exports.number().min(JOIN_SECONDS.min).max(JOIN_SECONDS.max).optional(),
19811
+ direction: external_exports.enum(TRANSITION_DIRECTIONS).optional(),
19812
+ intensity: external_exports.number().min(0).max(1).optional()
19813
+ }).strict();
19814
+ var EditSchema = external_exports.object({
19815
+ seed: external_exports.number().int().min(0).max(2 ** 31 - 1),
19816
+ density: external_exports.enum(CUT_DENSITIES),
19817
+ clips: external_exports.array(EditClipSchema).min(1).max(6e3)
19818
+ }).strict();
19819
+
19732
19820
  // ../composition/src/fonts.ts
19733
19821
  var FONTS = {
19734
19822
  inter: { family: "Inter", kind: "sans", weights: [300, 500, 700, 800] },
@@ -19779,12 +19867,30 @@ var FONTS = {
19779
19867
  "pirata-one": { family: "Pirata One", kind: "display", weights: [400] }
19780
19868
  };
19781
19869
  var FONT_IDS = Object.keys(FONTS);
19782
- var LYRIC_FONT_IDS = FONT_IDS.filter((id2) => ["sans", "condensed", "serif", "mono"].includes(FONTS[id2].kind) && id2 !== "abril-fatface");
19870
+ var LYRIC_FONT_IDS = FONT_IDS.filter((id3) => ["sans", "condensed", "serif", "mono"].includes(FONTS[id3].kind) && id3 !== "abril-fatface");
19783
19871
 
19784
- // ../composition/src/song.ts
19785
- var SPECTRUM_BANDS = 32;
19786
- var SECTION_TYPES = ["intro", "verse", "chorus", "drop", "bridge", "outro"];
19787
- var FRAME_BYTES = 5 + SPECTRUM_BANDS;
19872
+ // ../composition/src/effects.ts
19873
+ var EFFECTS = {
19874
+ "light-leak": { name: "Light leak", group: "light" },
19875
+ "god-rays": { name: "God rays", group: "light" },
19876
+ glow: { name: "Glow", group: "light" },
19877
+ vignette: { name: "Vignette", group: "light" },
19878
+ "film-burn": { name: "Film burn", group: "film" },
19879
+ "film-grain": { name: "Film grain", group: "film" },
19880
+ "old-footage": { name: "Old footage", group: "film" },
19881
+ shake: { name: "Shake", group: "camera" },
19882
+ mirror: { name: "Mirror", group: "camera" },
19883
+ blur: { name: "Blur in/out", group: "camera" },
19884
+ vhs: { name: "VHS", group: "digital" },
19885
+ glitch: { name: "Glitch", group: "digital" },
19886
+ "rgb-split": { name: "RGB split", group: "digital" }
19887
+ };
19888
+ var EFFECT_IDS = Object.keys(EFFECTS);
19889
+ var MAX_EFFECTS = 3;
19890
+ var DEFAULT_EFFECT_AMOUNT = 0.6;
19891
+ var EffectSchema = external_exports.object({ id: external_exports.enum(EFFECT_IDS), amount: external_exports.number().min(0).max(1).default(DEFAULT_EFFECT_AMOUNT) }).strict();
19892
+ var EffectsSchema = external_exports.array(EffectSchema).max(MAX_EFFECTS).refine((list) => new Set(list.map((e) => e.id)).size === list.length, { message: "Each effect once" });
19893
+ var TAU = Math.PI * 2;
19788
19894
 
19789
19895
  // ../composition/src/visualizers/engine-ids.ts
19790
19896
  var VIZZ_ENGINE_IDS = [
@@ -19952,6 +20058,11 @@ var SHORT_SPECS = {
19952
20058
  ink: "muted",
19953
20059
  motion: { shadow: S(0, 2, 8, 0.5) }
19954
20060
  },
20061
+ // The phrase packed into a solid block of heavy caps as it is sung: two words a row, each stretched or squeezed so the
20062
+ // pair fills the block's width; rows of different heights stack down with no gaps.
20063
+ slab: { filter: "bold", mode: "word", effect: "slab", face: F("archivo-black", 400, { upper: true }), size: 0.2, fit: 0.82, ink: "text", motion: { shadow: S(0, 2, 8, 0.35) } },
20064
+ // One heavy word at a time, every word stretched or squeezed to the same width: short words go wide, long ones tall.
20065
+ stamp: { filter: "bold", mode: "word", effect: "stamp", face: F("archivo-black", 400, { upper: true }), size: 0.22, fit: 0.78, ink: "text", motion: { shadow: S(0, 2, 8, 0.35) } },
19955
20066
  // Layered
19956
20067
  whisper: {
19957
20068
  filter: "layered",
@@ -20172,7 +20283,7 @@ var L = (lyrics) => ({
20172
20283
  var FX = (fx = {}) => ({ shake: 0, zoom: 0, flash: 0, rgb: 0, glitch: 0, ...fx });
20173
20284
  var SP = (style = "none", spectrum = {}) => ({ style, placement: "bottom", size: 1, opacity: 0.8, ...spectrum });
20174
20285
  var FIN = (finish = {}) => ({ grain: 0, vignette: 0.3, leak: 0, dust: 0, droplets: 0, scanlines: false, letterbox: false, ...finish });
20175
- var short = (id2, label, description, fx) => ({
20286
+ var short = (id3, label, description, fx) => ({
20176
20287
  label,
20177
20288
  description,
20178
20289
  lyrics: L({ layout: "short", reveal: "pop", exit: "fade", effect: "none" }),
@@ -20180,8 +20291,8 @@ var short = (id2, label, description, fx) => ({
20180
20291
  spectrum: SP(),
20181
20292
  finish: FIN({ vignette: 0.25 }),
20182
20293
  player: "none",
20183
- fonts: [SHORT_SPECS[id2].face.font],
20184
- short: SHORT_SPECS[id2].filter
20294
+ fonts: [SHORT_SPECS[id3].face.font],
20295
+ short: SHORT_SPECS[id3].filter
20185
20296
  });
20186
20297
  var CONDENSED = ["bebas-neue", "anton", "oswald", "barlow-condensed", "big-shoulders-display", "archivo-black", "league-spartan"];
20187
20298
  var LYRIC_STYLES = {
@@ -20493,7 +20604,7 @@ var LYRIC_STYLES = {
20493
20604
  },
20494
20605
  behind: {
20495
20606
  label: "Behind",
20496
- description: "Giant words stacked behind the subject of your photo, the subject standing in front of them.",
20607
+ description: "Giant words stacked behind the singer or subject of your clips, who stands in front of them.",
20497
20608
  lyrics: L({ layout: "stack", reveal: "rise", exit: "fade", emphasis: "accent", size: 1.3, position: "upper", place: "behind" }),
20498
20609
  fx: FX({ zoom: 0.15 }),
20499
20610
  spectrum: SP(),
@@ -20524,6 +20635,8 @@ var LYRIC_STYLES = {
20524
20635
  circuit: short("circuit", "Circuit", "Neon condensed caps that flicker on like a sign.", FX({ rgb: 0.15 })),
20525
20636
  spark: short("spark", "Spark", "The line in bold caps; the sung word glows.", FX()),
20526
20637
  loose: short("loose", "Loose", "The line spread across loose rows, plain and lowercase.", FX()),
20638
+ slab: short("slab", "Slab", "The line packed into a solid block of heavy caps, each word stretched to fill its row.", FX({ zoom: 0.15 })),
20639
+ stamp: short("stamp", "Stamp", "One heavy word at a time, every word stretched to the same width.", FX({ zoom: 0.15 })),
20527
20640
  whisper: short("whisper", "Whisper", "Neighbouring words layered: one huge in cyan, the other whispered on top in italics.", FX()),
20528
20641
  tiles: short("tiles", "Tiles", "A phrase stacked four times down the frame, folding into a ladder; then wide single words.", FX()),
20529
20642
  nested: short("nested", "Nested", "Slanted heavy caps; red key words rise in with scattered copies of themselves.", FX()),
@@ -20541,10 +20654,10 @@ var LYRIC_STYLES = {
20541
20654
  sway: short("sway", "Sway", "The line in bold caps; the sung word lights up.", FX())
20542
20655
  };
20543
20656
  var LYRIC_STYLE_IDS = Object.keys(LYRIC_STYLES);
20544
- var SHORT_FAMILY = LYRIC_STYLE_IDS.filter((id2) => LYRIC_STYLES[id2].short);
20545
- function styleParts(id2) {
20546
- const s = LYRIC_STYLES[id2];
20547
- return { style: id2, lyrics: { ...s.lyrics }, fx: { ...s.fx }, spectrum: { ...s.spectrum }, finish: { ...s.finish }, player: s.player, hero: s.hero ?? "none" };
20657
+ var SHORT_FAMILY = LYRIC_STYLE_IDS.filter((id3) => LYRIC_STYLES[id3].short);
20658
+ function styleParts(id3) {
20659
+ const s = LYRIC_STYLES[id3];
20660
+ return { style: id3, lyrics: { ...s.lyrics }, fx: { ...s.fx }, spectrum: { ...s.spectrum }, finish: { ...s.finish }, player: s.player, hero: s.hero ?? "none" };
20548
20661
  }
20549
20662
 
20550
20663
  // ../composition/src/look.ts
@@ -20554,6 +20667,7 @@ var AspectRatioSchema = external_exports.enum(ASPECT_RATIOS);
20554
20667
  var hex3 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/, "6-digit hex color");
20555
20668
  var FontIdSchema = external_exports.enum(FONT_IDS);
20556
20669
  var HEADLINES = ["none", "new-release", "out-now", "coming-soon", "listen-now"];
20670
+ var TITLE_CARDS = ["ends", "breaks", "label"];
20557
20671
  var LayoutRecipeSchema = external_exports.object({
20558
20672
  arrangement: external_exports.enum(["stack", "split", "hero"]),
20559
20673
  align: external_exports.enum(["center", "start"]),
@@ -20635,6 +20749,23 @@ var BackgroundSchema = external_exports.discriminatedUnion("kind", [
20635
20749
  external_exports.object({
20636
20750
  kind: external_exports.literal("visualizer"),
20637
20751
  ground: hex3
20752
+ }).strict(),
20753
+ // Clips cut on the beat (clips.ts): short clips from library moods and the person's folders; each video has its own Edit
20754
+ // (which clip plays when), so a Look with clips makes a new cut for every song. The Look keeps the recipe: where the clips
20755
+ // come from, how often they cut, how they meet, their grade (and its strength, 1 when left out), the effects over the picture and how
20756
+ // a clip of the other shape fills the frame.
20757
+ external_exports.object({
20758
+ kind: external_exports.literal("clips"),
20759
+ sources: ClipSourcesSchema,
20760
+ density: external_exports.enum(CUT_DENSITIES),
20761
+ transitions: TransitionsSchema,
20762
+ grade: external_exports.enum(GRADE_IDS),
20763
+ grade_amount: external_exports.number().min(0).max(1).optional(),
20764
+ effects: EffectsSchema.optional(),
20765
+ shape: external_exports.enum(CLIP_SHAPES),
20766
+ fill: external_exports.enum(CLIP_FILLS),
20767
+ speed: external_exports.union(CLIP_SPEEDS.map((v) => external_exports.literal(v))),
20768
+ dim: external_exports.number().min(0).max(0.8)
20638
20769
  }).strict()
20639
20770
  ]);
20640
20771
  var LookSpecSchema = external_exports.object({
@@ -20693,8 +20824,12 @@ var DisplaySchema = external_exports.object({
20693
20824
  cover: external_exports.boolean().default(true),
20694
20825
  lyrics: external_exports.boolean().default(true),
20695
20826
  badges: external_exports.boolean().default(true),
20827
+ censor: external_exports.boolean().optional(),
20828
+ // swear words show their vowels as * (the song is untouched); omitted: off
20696
20829
  headline: external_exports.enum(HEADLINES).optional(),
20697
20830
  // omitted: the Look's default
20831
+ title_card: external_exports.enum(TITLE_CARDS).optional(),
20832
+ // omitted: "ends" over clips, else "breaks" (TITLE_CARDS)
20698
20833
  cover_scale: scale("cover_scale", DISPLAY_SCALES.cover).optional(),
20699
20834
  // omitted: 1
20700
20835
  text_scale: scale("text_scale", DISPLAY_SCALES.text).optional(),
@@ -20768,7 +20903,7 @@ var OutroDesignSchema = external_exports.object({
20768
20903
  /** How the footage meets the card as it comes in: nothing more than its entrance, or a flash, a glitch or a film burn. */
20769
20904
  transition: external_exports.enum(OUTRO_TRANSITIONS)
20770
20905
  }).strict();
20771
- var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true });
20906
+ var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true, title_card: true });
20772
20907
 
20773
20908
  // ../composition/src/visualizers/choice-schema.ts
20774
20909
  var VisualKeySchema = external_exports.string().regex(/^[A-Za-z0-9-]+\/[a-z0-9-]+$/, 'A visual key from GET /v1/options (visualizers), like "liquid/amber-aurora"');
@@ -20779,9 +20914,78 @@ var VisualChoiceSchema = external_exports.object({
20779
20914
  sections: external_exports.partialRecord(external_exports.enum(SECTION_TYPES), VisualKeySchema).optional()
20780
20915
  }).strict();
20781
20916
 
20917
+ // ../composition/src/background-motion.ts
20918
+ var DIRECTIONS = {
20919
+ center: [0, 0],
20920
+ up: [0, -1],
20921
+ down: [0, 1],
20922
+ left: [-1, 0],
20923
+ right: [1, 0],
20924
+ "up-left": [-Math.SQRT1_2, -Math.SQRT1_2],
20925
+ "up-right": [Math.SQRT1_2, -Math.SQRT1_2],
20926
+ "down-left": [-Math.SQRT1_2, Math.SQRT1_2],
20927
+ "down-right": [Math.SQRT1_2, Math.SQRT1_2]
20928
+ };
20929
+
20930
+ // ../composition/src/stock.ts
20931
+ var STOCK_PROVIDERS = {
20932
+ pexels: { name: "Pexels", url: "https://www.pexels.com", kinds: ["photo", "video"] },
20933
+ // Pixabay's API serves photos at most 1280 px: too small for a background, so only its videos are offered.
20934
+ pixabay: { name: "Pixabay", url: "https://pixabay.com", kinds: ["video"] }
20935
+ };
20936
+ var STOCK_PROVIDER_IDS = Object.keys(STOCK_PROVIDERS);
20937
+ var STOCK_ITEM_ID_PATTERN = new RegExp(`^(?:(${STOCK_PROVIDER_IDS.join("|")}):)?\\d{1,20}$`);
20938
+
20939
+ // ../composition/src/clips-editor.ts
20940
+ var VISUAL_ENERGIES = [{ value: "all", label: "All" }, { value: "calm", label: "Calm" }, { value: "medium", label: "Medium" }, { value: "bold", label: "Bold" }];
20941
+ var CLIP_SORTS = [{ value: "best", label: "Best first" }, { value: "newest", label: "Newest" }, { value: "length", label: "Length" }];
20942
+ var CLIP_BROWSE_SHAPES = [{ value: "both", label: "Both" }, { value: "tall", label: "Tall" }, { value: "wide", label: "Wide" }];
20943
+
20944
+ // ../composition/src/canvas-frame.ts
20945
+ var CANVAS_SPEEDS = [0.25, ...CLIP_SPEEDS];
20946
+ var CANVAS_CROSSFADE = { min: 0.25, max: 2, default: 0.75, step: 0.05 };
20947
+ var CANVAS_CAMERAS = ["still", "push", "pull"];
20948
+ var CANVAS_FILLS = [...CLIP_FILLS, "colour"];
20949
+ var CANVAS_ROTATIONS = [0, 90, 180, 270];
20950
+ var CANVAS_ZOOM = { min: 1, max: 3 };
20951
+ var HEX_COLOUR = /^#[0-9a-fA-F]{6}$/;
20952
+ var DEFAULT_CANVAS_FRAME = { crossfade: CANVAS_CROSSFADE.default, camera: "still", fade: false, x: 0, y: 0, zoom: 1, rotate: 0, colour: null, steady: false };
20953
+
20954
+ // ../composition/src/canvas-settings.ts
20955
+ var CANVAS_SECONDS = { min: 3, max: 8, default: 8 };
20956
+ var CANVAS_VISUAL_KEY = /^[A-Za-z0-9-]+\/[a-z0-9-]+$/;
20957
+ var CanvasLookSchema = external_exports.object({
20958
+ loop: external_exports.enum(["drift", "rebound", "cuts"]).default("drift"),
20959
+ seconds: external_exports.number().min(CANVAS_SECONDS.min).max(CANVAS_SECONDS.max).default(CANVAS_SECONDS.default),
20960
+ cut: external_exports.enum(["hard", "smooth"]).default("hard"),
20961
+ crossfade: external_exports.number().min(CANVAS_CROSSFADE.min).max(CANVAS_CROSSFADE.max).default(CANVAS_CROSSFADE.default),
20962
+ camera: external_exports.enum(CANVAS_CAMERAS).default("still"),
20963
+ fade: external_exports.boolean().default(false),
20964
+ fill: external_exports.enum(CANVAS_FILLS).default("blur"),
20965
+ fill_colour: external_exports.string().regex(HEX_COLOUR, "A colour like #1a1a1a").nullable().default(null),
20966
+ speed: external_exports.number().refine((v) => CANVAS_SPEEDS.includes(v), { message: `speed is one of ${CANVAS_SPEEDS.join(", ")}` }).default(1),
20967
+ grade: external_exports.enum(GRADE_IDS).default("clean"),
20968
+ grade_amount: external_exports.number().min(GRADE_AMOUNT.min).max(GRADE_AMOUNT.max).default(GRADE_AMOUNT.default),
20969
+ effects: EffectsSchema.default([]),
20970
+ light: external_exports.string().regex(CANVAS_VISUAL_KEY, "A visual key from GET /v1/options (canvas.visuals)").nullable().default(null),
20971
+ atmosphere: external_exports.enum(OVERLAYS).default("none")
20972
+ }).strict().refine((v) => v.fill !== "colour" || v.fill_colour, { message: "A colour fill needs fill_colour", path: ["fill_colour"] });
20973
+
20782
20974
  // ../video-types/src/kit.ts
20783
20975
  var KIT_KINDS = ["outfit", "place", "prop"];
20784
- var KIT_ANGLES = ["three-quarter", "side", "low"];
20976
+ var KIT_ANGLES = ["wide", "three-quarter", "side", "reverse", "corner", "low", "high", "overhead", "detail", "framed"];
20977
+ var KIT_ANGLE_LINES = {
20978
+ wide: "The whole set, pulled far back",
20979
+ "three-quarter": "Round to one side, in depth",
20980
+ side: "Across it, in profile",
20981
+ reverse: "Turned round, facing the other way",
20982
+ corner: "From a far corner, on the diagonal",
20983
+ low: "Near the floor, looking up",
20984
+ high: "From up high, looking down",
20985
+ overhead: "Straight down from above",
20986
+ detail: "Close on one object or texture",
20987
+ framed: "Through a doorway or something near"
20988
+ };
20785
20989
  var KIT_HANDLE = /^[a-z0-9][a-z0-9-]{0,39}$/;
20786
20990
  var SHOT_SIZES = ["close", "medium", "wide"];
20787
20991
  var SHOT_ANGLES = ["front", "three-quarter", "side", "low", "high", "over-shoulder", "back"];
@@ -20925,47 +21129,30 @@ var CoverRedrawSchema = external_exports.object({ cover_id: external_exports.str
20925
21129
  // ../video-types/src/index.ts
20926
21130
  var MAX_VARIATIONS = 4;
20927
21131
  var variations = external_exports.number().int().min(1).max(MAX_VARIATIONS).default(1);
20928
- var BACKGROUND_TIERS = ["standard", "high", "ultra"];
20929
21132
  var MIN_TRIM_SECONDS = 8;
20930
21133
  var TrimSchema = external_exports.object({
20931
21134
  start_seconds: external_exports.number().min(0),
20932
21135
  end_seconds: external_exports.number().positive()
20933
21136
  }).strict().refine((v) => v.end_seconds > v.start_seconds, { message: "end_seconds must be greater than start_seconds" }).refine((v) => v.end_seconds - v.start_seconds >= MIN_TRIM_SECONDS - 1e-6, { message: `The trimmed section must be at least ${MIN_TRIM_SECONDS} seconds` });
20934
- var FREE_VIDEO_MAX_SECONDS = 60;
20935
- var FREE_VIDEO_RULE = `Your free video is one lyric video of your free song, up to ${FREE_VIDEO_MAX_SECONDS} seconds of it, with a Look from the library, in one format.`;
20936
- var BACKGROUND_SOURCE_IDS = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video", "designed", "visualizer"];
20937
- var MEDIA_BACKGROUND_SOURCES = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video"];
20938
- var BACKGROUND_SOURCES2 = {
20939
- "ai-image": { label: "AI image", description: "An image made for this Look, moving slowly across the song.", kind: "image", source: "generated" },
20940
- "ai-video": { label: "AI video loop", description: "An AI image brought to life as a seamless loop.", kind: "video", source: "generated" },
20941
- "stock-photo": { label: "Stock photo", description: "A stock photo, picked by the director or by you.", kind: "image", source: "stock" },
20942
- "stock-video": { label: "Stock video", description: "A stock clip made into a seamless loop.", kind: "video", source: "stock" },
20943
- "upload-photo": { label: "Your photo", description: "A photo you upload, moving slowly across the song.", kind: "image", source: "upload" },
20944
- "upload-video": { label: "Your video", description: "A clip you upload, made into a seamless loop.", kind: "video", source: "upload" },
20945
- designed: { label: "Designed", description: "A moving gradient or pattern the director designs for your song.", kind: null, source: null },
20946
- visualizer: { label: "Visualizer", description: "No picture: a visual that moves with your music fills the frame behind the words.", kind: null, source: null }
20947
- };
20948
- var MAX_BACKGROUND_SCENES = 4;
20949
- var SINGLE_SCENE_STYLES = ["behind", "screen"];
20950
- var StockIdSchema = external_exports.string().regex(/^\d{1,20}$/, "A stock photo or video id (digits)");
21137
+ var StockIdSchema = external_exports.string().regex(STOCK_ITEM_ID_PATTERN, "A stock photo or video id (from search_stock)");
20951
21138
  var KitItemIdSchema = external_exports.string().regex(/^kit_[0-9a-f-]{36}$/, "A kit piece id (kit_\u2026)");
20952
- var BACKGROUND_REFERENCES = ["none", "stock"];
20953
- var BackgroundRequestSchema = external_exports.object({
20954
- source: external_exports.enum(BACKGROUND_SOURCE_IDS).optional(),
20955
- quality: external_exports.enum(BACKGROUND_TIERS).default("high"),
20956
- /** The uploaded photo or video (POST /backgrounds) for the upload-photo and upload-video sources. */
20957
- upload_id: external_exports.string().min(1).max(120).optional(),
20958
- /** How many scenes an AI image background has (1 by default). */
20959
- scenes: external_exports.number().int().min(1).max(MAX_BACKGROUND_SCENES).optional(),
20960
- /** The stock photo or video (GET /stock) for the stock-photo and stock-video sources; omitted, the director searches and picks. */
20961
- stock_id: StockIdSchema.optional(),
20962
- /** "stock" grounds an AI image or AI video background in real stock photos (references only); "none" by default. */
20963
- references: external_exports.enum(BACKGROUND_REFERENCES).optional()
21139
+ var ClipsBackgroundRequestSchema = external_exports.object({
21140
+ kind: external_exports.literal("clips"),
21141
+ sources: ClipSourcesSchema,
21142
+ density: external_exports.enum(CUT_DENSITIES).default("even"),
21143
+ transitions: TransitionsSchema.default(() => TransitionsSchema.parse({})),
21144
+ grade: external_exports.enum(GRADE_IDS).default("clean"),
21145
+ grade_amount: external_exports.number().min(GRADE_AMOUNT.min).max(GRADE_AMOUNT.max).default(GRADE_AMOUNT.default),
21146
+ effects: EffectsSchema.default([]),
21147
+ shape: external_exports.enum(CLIP_SHAPES).default("both"),
21148
+ fill: external_exports.enum(CLIP_FILLS).default("blur"),
21149
+ speed: external_exports.number().refine((v) => CLIP_SPEEDS.includes(v), { message: `speed is one of ${CLIP_SPEEDS.join(", ")}` }).default(1)
21150
+ }).strict();
21151
+ var BackgroundChoiceSchema = external_exports.discriminatedUnion("kind", [ClipsBackgroundRequestSchema, external_exports.object({ kind: external_exports.literal("visualizer") }).strict()]);
21152
+ var EditRequestSchema = external_exports.object({
21153
+ seed: external_exports.number().int().min(0).max(2 ** 31 - 1).optional(),
21154
+ clips: external_exports.array(EditClipSchema).min(1).max(6e3).optional()
20964
21155
  }).strict();
20965
- var BACKGROUND_UPLOAD_LIMITS = {
20966
- image: { maxBytes: 25 * 1024 * 1024, minShortSide: 720, types: ["image/jpeg", "image/png", "image/webp"] },
20967
- video: { maxBytes: 300 * 1024 * 1024, minShortSide: 720, minSeconds: 4, maxSeconds: 180, types: ["video/mp4", "video/quicktime", "video/webm"] }
20968
- };
20969
21156
  var UPLOAD_CONTENT_TYPES = ["audio/mpeg", "audio/wav", "audio/mp4", "image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime", "video/webm"];
20970
21157
  var UPLOAD_MAX_BYTES = 300 * 1024 * 1024;
20971
21158
  var UploadCreateSchema = external_exports.object({
@@ -20973,25 +21160,13 @@ var UploadCreateSchema = external_exports.object({
20973
21160
  content_type: external_exports.enum(UPLOAD_CONTENT_TYPES),
20974
21161
  size_bytes: external_exports.number().int().min(1).max(UPLOAD_MAX_BYTES)
20975
21162
  }).strict();
20976
- var isUploadSource = (source) => BACKGROUND_SOURCES2[source].source === "upload";
20977
- var backgroundSourcesFor = (category) => categoryUsesImages(category) ? [...MEDIA_BACKGROUND_SOURCES, "designed", "visualizer"] : ["designed", ...MEDIA_BACKGROUND_SOURCES, "visualizer"];
20978
- var backgroundSourceFor = (category, background) => background.source ?? backgroundSourcesFor(category)[0];
20979
- var LOOK_FEATURE_ARTIST_MODES = ["never", "always"];
20980
- var CANVAS_FEATURE_ARTIST_MODES = ["auto", "always", "never"];
20981
- var LookRequestSchema = external_exports.discriminatedUnion("mode", [
20982
- external_exports.object({
20983
- mode: external_exports.literal("new"),
20984
- category: external_exports.enum(CATEGORY_IDS),
20985
- background: BackgroundRequestSchema.default({ quality: "high" }),
20986
- visibility: external_exports.enum(["private", "public"]).default("private"),
20987
- direction: external_exports.string().trim().max(2e3).optional(),
20988
- feature_artist: external_exports.enum(LOOK_FEATURE_ARTIST_MODES).default("never"),
20989
- lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(),
20990
- /** The visual the person picked (GET /v1/options visualizers); omitted: the director picks one per section. */
20991
- visual: VisualChoiceSchema.optional()
20992
- }).strict(),
20993
- external_exports.object({ mode: external_exports.literal("existing"), id: external_exports.string().min(1).max(120), lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(), visual: VisualChoiceSchema.optional() }).strict()
20994
- ]);
21163
+ var LookRequestSchema = external_exports.object({
21164
+ id: external_exports.string().min(1).max(120).optional(),
21165
+ lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(),
21166
+ behind: external_exports.boolean().optional(),
21167
+ visual: VisualChoiceSchema.optional(),
21168
+ background: BackgroundChoiceSchema.optional()
21169
+ }).strict();
20995
21170
  var common = {
20996
21171
  song_id: external_exports.string().min(1).max(120),
20997
21172
  variations,
@@ -21002,79 +21177,88 @@ var common = {
21002
21177
  var LyricVideoRequestSchema = external_exports.object({
21003
21178
  type: external_exports.literal("lyric-video"),
21004
21179
  ...common,
21005
- look: LookRequestSchema,
21180
+ look: LookRequestSchema.default({}),
21006
21181
  aspect_ratios: external_exports.array(AspectRatioSchema).min(1).max(3).refine((v) => new Set(v).size === v.length, { message: "aspect_ratios must be unique" }).default(["9:16"]),
21007
21182
  display: DisplaySchema.default(DEFAULT_DISPLAY),
21008
- trim: TrimSchema.optional()
21183
+ trim: TrimSchema.optional(),
21184
+ /** A clips video's Edit: its seed, or its clips as previewed. */
21185
+ edit: EditRequestSchema.optional()
21009
21186
  }).strict().superRefine((value, ctx) => {
21010
- if (value.look.mode === "existing" && value.variations > 1) ctx.addIssue({ code: "custom", path: ["variations"], message: "variations is only available with a new Look" });
21011
- if (value.look.mode === "new" && value.look.background.source) {
21012
- const allowed = backgroundSourcesFor(value.look.category);
21013
- if (!allowed.includes(value.look.background.source)) ctx.addIssue({
21014
- code: "custom",
21015
- path: ["look", "background", "source"],
21016
- message: `The ${value.look.category} category takes ${allowed.map((s) => `"${s}"`).join(", ")}`
21017
- });
21018
- }
21019
- if (value.look.mode === "new") {
21020
- const upload = value.look.background.source ? isUploadSource(value.look.background.source) : false;
21021
- if (upload && !value.look.background.upload_id) ctx.addIssue({ code: "custom", path: ["look", "background", "upload_id"], message: "Upload the photo or video first (POST /backgrounds) and pass its id" });
21022
- if (!upload && value.look.background.upload_id) ctx.addIssue({ code: "custom", path: ["look", "background", "upload_id"], message: "upload_id goes with the upload-photo and upload-video sources" });
21023
- if (value.look.background.stock_id && BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "stock")
21024
- ctx.addIssue({ code: "custom", path: ["look", "background", "stock_id"], message: "stock_id goes with the stock-photo and stock-video sources" });
21025
- if (upload && value.look.visibility === "public") ctx.addIssue({ code: "custom", path: ["look", "visibility"], message: "A Look with your own background stays private" });
21026
- if (value.look.background.references === "stock" && BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "generated")
21027
- ctx.addIssue({ code: "custom", path: ["look", "background", "references"], message: "references goes with the ai-image and ai-video sources" });
21028
- else if (value.look.background.references === "stock" && value.look.feature_artist !== "always")
21029
- ctx.addIssue({ code: "custom", path: ["look", "background", "references"], message: 'references "stock" goes with feature_artist "always": the stock photo is the place the artist is shown in' });
21030
- if ((value.look.background.scenes ?? 1) > 1 && backgroundSourceFor(value.look.category, value.look.background) !== "ai-image")
21031
- ctx.addIssue({ code: "custom", path: ["look", "background", "scenes"], message: "More than one scene is only available with an AI image background" });
21032
- if ((value.look.background.scenes ?? 1) > 1 && SINGLE_SCENE_STYLES.includes(value.look.lyric_style ?? ""))
21033
- ctx.addIssue({ code: "custom", path: ["look", "background", "scenes"], message: `The ${value.look.lyric_style} lyric style takes a single scene` });
21034
- }
21035
- if (value.look.mode === "new" && value.look.feature_artist === "always") {
21036
- if (BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "generated")
21037
- ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "Only an AI image or AI video background can show the artist" });
21038
- if (value.display.cover) ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "Switch off the cover to show the artist: the cover would hide them" });
21039
- if (value.look.visibility === "public") ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "A Look that shows the artist stays private" });
21040
- }
21187
+ if (value.edit?.clips && value.variations > 1) ctx.addIssue({ code: "custom", path: ["edit", "clips"], message: "An edit with its clips listed makes one video" });
21188
+ if (value.variations > 1 && value.look.background?.kind !== "clips") ctx.addIssue({ code: "custom", path: ["variations"], message: "variations go with a clips background (each one draws other clips)" });
21041
21189
  });
21042
- var CANVAS_MIN_SECONDS = 5;
21043
- var CANVAS_MAX_SECONDS = 8;
21044
- var CANVAS_SOURCE_IDS = ["ai-video", "ai-image", "stock-photo", "stock-video"];
21045
- var CANVAS_SOURCES = {
21046
- "ai-video": { label: "AI video", description: "An image made for your song, brought to life by a video model.", kind: "video", source: "generated" },
21047
- "ai-image": { label: "AI image", description: "An image made for your song, moved by our motion model.", kind: "image", source: "generated" },
21048
- "stock-photo": { label: "Stock photo", description: "A stock photo moved by our motion model.", kind: "image", source: "stock" },
21049
- "stock-video": { label: "Stock video", description: "A stock clip cut into a seamless loop.", kind: "video", source: "stock" }
21050
- };
21051
- var CANVAS_QUALITIES = ["standard", "high"];
21052
- var CANVAS_RESOLUTIONS = ["720p", "1080p"];
21053
- var CANVAS_INSPIRATIONS = ["cover", "song"];
21054
- var CANVAS_STYLES = ["cinematic", "dreamy", "abstract", "surreal", "retro", "minimal", "dark", "vibrant", "nature", "urban"];
21055
- var CanvasRequestSchema = external_exports.object({
21190
+ var CANVAS_MIN_SECONDS = CANVAS_SECONDS.min;
21191
+ var CANVAS_MAX_SECONDS = CANVAS_SECONDS.max;
21192
+ var CANVAS_LOOPS = ["drift", "rebound", "cuts"];
21193
+ var CANVAS_CUT_STYLES = ["hard", "smooth"];
21194
+ var CANVAS_STILL_MOTIONS = ["push", "drift", "still"];
21195
+ var GENERATE_STYLES = ["calm", "cinematic", "dreamy", "intense"];
21196
+ var CANVAS_GENERATE_VIDEO = ["standard", "high"];
21197
+ var GENERATE_FROM = ["song", "cover"];
21198
+ var CANVAS_MAX_STOCK_IDS = 3;
21199
+ var CanvasVisualKeySchema = external_exports.string().regex(CANVAS_VISUAL_KEY, "A visual key from GET /v1/options (canvas.visuals)");
21200
+ var SecondsSchema = external_exports.number().min(CANVAS_MIN_SECONDS).max(CANVAS_MAX_SECONDS).refine((v) => Math.abs(v * 10 - Math.round(v * 10)) < 1e-6, { message: "seconds in tenths" });
21201
+ var CanvasPictureSchema = external_exports.discriminatedUnion("kind", [
21202
+ // Clips: the sources the loop draws from (omitted: the song's own moods, by rules), and any Pexels items to bring in first.
21203
+ // How they sit and move: Drift's crossfade (s), a camera move (Cuts and Rebound), a fade through black at the loop point (Cuts), where
21204
+ // the picture sits (x, y from -1 to 1) and its zoom, a quarter turn, the fill (colour: bars in fill_colour) and a steadied copy of each clip.
21205
+ external_exports.object({
21206
+ kind: external_exports.literal("clips"),
21207
+ sources: ClipSourcesSchema.optional(),
21208
+ stock_ids: external_exports.array(StockIdSchema).min(1).max(CANVAS_MAX_STOCK_IDS).optional(),
21209
+ grade: external_exports.enum(GRADE_IDS).default("clean"),
21210
+ grade_amount: external_exports.number().min(GRADE_AMOUNT.min).max(GRADE_AMOUNT.max).default(GRADE_AMOUNT.default),
21211
+ fill: external_exports.enum(CANVAS_FILLS).default("blur"),
21212
+ fill_colour: external_exports.string().regex(HEX_COLOUR, "A colour like #1a1a1a").optional(),
21213
+ speed: external_exports.number().refine((v) => CANVAS_SPEEDS.includes(v), { message: `speed is one of ${CANVAS_SPEEDS.join(", ")}` }).default(1),
21214
+ cut: external_exports.enum(CANVAS_CUT_STYLES).default("hard"),
21215
+ crossfade: external_exports.number().min(CANVAS_CROSSFADE.min).max(CANVAS_CROSSFADE.max).default(CANVAS_CROSSFADE.default),
21216
+ camera: external_exports.enum(CANVAS_CAMERAS).default("still"),
21217
+ fade: external_exports.boolean().default(false),
21218
+ framing: external_exports.object({ x: external_exports.number().min(-1).max(1).default(0), y: external_exports.number().min(-1).max(1).default(0), zoom: external_exports.number().min(CANVAS_ZOOM.min).max(CANVAS_ZOOM.max).default(1) }).strict().default({ x: 0, y: 0, zoom: 1 }),
21219
+ rotate: external_exports.union(CANVAS_ROTATIONS.map((v) => external_exports.literal(v))).default(0),
21220
+ steady: external_exports.boolean().default(false)
21221
+ }).strict().refine((v) => v.fill !== "colour" || v.fill_colour, { message: "A colour fill needs fill_colour", path: ["fill_colour"] }),
21222
+ // The song's cover, moving.
21223
+ external_exports.object({ kind: external_exports.literal("cover"), motion: external_exports.enum(CANVAS_STILL_MOTIONS).default("push") }).strict(),
21224
+ // A visualizer (GET /options canvas.visuals: calm and medium) over the cover's own colours, blurred. Omitted: one picked for the song.
21225
+ external_exports.object({ kind: external_exports.literal("visualizer"), preset: CanvasVisualKeySchema.optional() }).strict(),
21226
+ // One call, no editor: a picture generated for this Canvas (it also lands in the workspace's AI folder), from the song or the
21227
+ // cover's world, with the artist or a cast character, as a video made to loop or a still (video null). model: the video model it is
21228
+ // made with (GET /options video_models.canvas, one of its ids); omitted, the Canvas default. video: standard or high before models
21229
+ // were named (high: the dearest offered), kept for older callers; any non-null value means a video.
21230
+ external_exports.object({
21231
+ kind: external_exports.literal("generate"),
21232
+ prompt: external_exports.string().trim().min(3).max(500).optional(),
21233
+ from: external_exports.enum(GENERATE_FROM).default("song"),
21234
+ with: external_exports.union([external_exports.enum(["none", "artist"]), KitItemIdSchema]).default("none"),
21235
+ video: external_exports.enum(CANVAS_GENERATE_VIDEO).nullable().default("standard"),
21236
+ model: external_exports.string().trim().min(1).max(160).optional(),
21237
+ /** How it moves and feels, as Generate's Style. */
21238
+ style: external_exports.enum(GENERATE_STYLES).default("calm")
21239
+ }).strict().refine((v) => !(v.model && v.video === null), { message: "A model makes a video: leave video unset, or drop model for a still", path: ["model"] })
21240
+ ]);
21241
+ var CanvasLightSchema = external_exports.object({ preset: CanvasVisualKeySchema }).strict();
21242
+ var CanvasRequestShape = external_exports.object({
21056
21243
  type: external_exports.literal("canvas"),
21057
21244
  ...common,
21058
- source: external_exports.enum(CANVAS_SOURCE_IDS).default("ai-video"),
21059
- quality: external_exports.enum(CANVAS_QUALITIES).default("standard"),
21060
- resolution: external_exports.enum(CANVAS_RESOLUTIONS).default("1080p"),
21061
- style: external_exports.enum(CANVAS_STYLES).optional(),
21062
- direction: external_exports.string().trim().max(2e3).optional(),
21063
- inspiration: external_exports.enum(CANVAS_INSPIRATIONS).default("song"),
21064
- feature_artist: external_exports.enum(CANVAS_FEATURE_ARTIST_MODES).default("auto"),
21065
- // Who may appear (feature_artist auto or always): a character of a Creator workspace's cast, whose projects have none of their
21066
- // own. Omitted: the song's artist's character.
21067
- performer: KitItemIdSchema.optional(),
21068
- seconds: external_exports.number().int().min(CANVAS_MIN_SECONDS).max(CANVAS_MAX_SECONDS).default(CANVAS_MAX_SECONDS),
21069
- /** The stock photo or video (GET /stock) for the stock sources; omitted, the director searches and picks. */
21070
- stock_id: StockIdSchema.optional()
21071
- }).strict().superRefine((value, ctx) => {
21072
- if (value.feature_artist === "always" && CANVAS_SOURCES[value.source].source === "stock")
21073
- ctx.addIssue({ code: "custom", path: ["feature_artist"], message: "Only an AI image or AI video Canvas can show the artist" });
21074
- if (value.performer && (value.feature_artist === "never" || CANVAS_SOURCES[value.source].source === "stock"))
21075
- ctx.addIssue({ code: "custom", path: ["performer"], message: "A performer goes with an AI image or AI video Canvas that may show someone (feature_artist auto or always)" });
21076
- if (value.stock_id && CANVAS_SOURCES[value.source].source !== "stock")
21077
- ctx.addIssue({ code: "custom", path: ["stock_id"], message: "stock_id goes with the stock-photo and stock-video sources" });
21245
+ picture: CanvasPictureSchema.default({ kind: "clips", grade: "clean", grade_amount: GRADE_AMOUNT.default, fill: "blur", speed: 1, cut: "hard", crossfade: CANVAS_CROSSFADE.default, camera: "still", fade: false, framing: { x: 0, y: 0, zoom: 1 }, rotate: 0, steady: false }),
21246
+ loop: external_exports.enum(CANVAS_LOOPS).default("drift"),
21247
+ seconds: SecondsSchema.default(CANVAS_MAX_SECONDS),
21248
+ /** The clips, as the editor planned and previewed them (times from the loop's start); or the seed they are drawn with. */
21249
+ edit: EditRequestSchema.optional(),
21250
+ light: CanvasLightSchema.nullable().default(null),
21251
+ atmosphere: external_exports.enum(OVERLAYS).default("none"),
21252
+ /** Effects over the whole loop (GET /options effects), up to three, each with a strength; they repeat with the loop, no seam. */
21253
+ effects: EffectsSchema.default([])
21254
+ }).strict();
21255
+ var CANVAS_LEGACY_SUNSET = "2027-02-18";
21256
+ var CanvasRequestSchema = CanvasRequestShape.superRefine((value, ctx) => {
21257
+ if (value.edit?.clips && value.variations > 1) ctx.addIssue({ code: "custom", path: ["edit", "clips"], message: "An edit with its clips listed makes one Canvas" });
21258
+ if (value.edit && value.picture.kind !== "clips") ctx.addIssue({ code: "custom", path: ["edit"], message: "edit goes with a clips picture" });
21259
+ if (value.loop !== "drift" && value.picture.kind !== "clips" && !(value.picture.kind === "generate" && value.picture.video && value.loop === "rebound"))
21260
+ ctx.addIssue({ code: "custom", path: ["loop"], message: "rebound and cuts go with a clips picture (rebound also with a generated video)" });
21261
+ if (value.variations > 1 && value.picture.kind !== "clips") ctx.addIssue({ code: "custom", path: ["variations"], message: "variations go with a clips picture (each one draws other clips)" });
21078
21262
  });
21079
21263
  var MUSIC_VIDEO_CATEGORY_IDS = [
21080
21264
  "performance",
@@ -21151,24 +21335,24 @@ var MUSIC_VIDEO_QUALITIES = {
21151
21335
  var PERSON_SLOTS = 2;
21152
21336
  var shotRoom = (model, people = 1) => Math.max(0, model.shot.references - Math.min(people, model.shot.people) * PERSON_SLOTS);
21153
21337
  function kindsFor(model) {
21154
- return MUSIC_VIDEO_CATEGORY_IDS.filter((id2) => {
21155
- const needs = MUSIC_VIDEO_CATEGORIES[id2].needs;
21338
+ return MUSIC_VIDEO_CATEGORY_IDS.filter((id3) => {
21339
+ const needs = MUSIC_VIDEO_CATEGORIES[id3].needs;
21156
21340
  if (!needs) return true;
21157
21341
  return (!needs.sings || model.performances.includes("sings")) && (!needs.plays || model.performances.includes("plays")) && (!needs.onScreen || model.onScreen.includes(needs.onScreen)) && (!needs.ability || model.abilities.includes(needs.ability)) && (!needs.keyframes || model.keyframes.start && model.keyframes.end);
21158
21342
  });
21159
21343
  }
21160
- var looksFor = (model) => MUSIC_VIDEO_STYLE_IDS.filter((id2) => {
21161
- const needs = MUSIC_VIDEO_STYLES[id2].needs;
21344
+ var looksFor = (model) => MUSIC_VIDEO_STYLE_IDS.filter((id3) => {
21345
+ const needs = MUSIC_VIDEO_STYLES[id3].needs;
21162
21346
  return !needs || model.abilities.includes(needs.ability);
21163
21347
  });
21164
21348
  var withCatalog = (model) => ({ ...model, categories: kindsFor(model), styles: looksFor(model) });
21165
21349
  var MUSIC_VIDEO_MODEL_IDS = ["one-take", "seedance-2-0", "seedance-2-0-fast", "seedance-2-0-mini", "seedance-2-5"];
21166
21350
  var MUSIC_VIDEO_LENGTH_BOUNDS = { min: 8, max: 1800 };
21167
21351
  var DEFAULT_MUSIC_VIDEO_MODEL = "one-take";
21168
- function seedance(label, id2, qualities) {
21352
+ function seedance(label, id3, qualities) {
21169
21353
  return {
21170
21354
  label,
21171
- description: MUSIC_VIDEO_MODEL_GUIDES[id2].bestFor,
21355
+ description: MUSIC_VIDEO_MODEL_GUIDES[id3].bestFor,
21172
21356
  qualities,
21173
21357
  defaultQuality: "720p",
21174
21358
  formats: ["9:16", "16:9", "1:1"],
@@ -21200,7 +21384,6 @@ var MUSIC_VIDEO_MODELS = {
21200
21384
  "seedance-2-5": { ...seedance("Seedance 2.5", "seedance-2-5", ["480p", "720p", "1080p"]) }
21201
21385
  };
21202
21386
  var MusicVideoPlanIdSchema = external_exports.string().regex(/^plan_[0-9a-f-]{36}$/, "A music video plan id (plan_\u2026)");
21203
- var LookbookIdSchema = external_exports.string().regex(/^lookbook_[0-9a-f-]{36}$/, "A lookbook id (lookbook_\u2026)");
21204
21387
  var CastingIdSchema = external_exports.string().regex(/^casting_[0-9a-f-]{36}$/, "A casting id (casting_\u2026)");
21205
21388
  var MusicVideoLookIdSchema = external_exports.string().regex(/^mvlook_[0-9a-f-]{36}$/, "A music video Look id (mvlook_\u2026)");
21206
21389
  var MusicVideoCastSchema = external_exports.object({ outfit_kit: external_exports.string().regex(/^[a-z0-9-]{1,40}$/, "A kit outfit\u2019s handle").optional() }).strict();
@@ -21269,8 +21452,6 @@ var musicVideoBrief = {
21269
21452
  // Who else may be on screen: only the people given (exact), or the director may cast more (director; omitted: director).
21270
21453
  cast_mode: external_exports.enum(MUSIC_VIDEO_CAST_MODES).optional(),
21271
21454
  scenes: MusicVideoScenesSchema.default({ mode: "invent" }),
21272
- // The lookbook whose kept pieces the video uses, like the kit pieces the direction mentions.
21273
- lookbook_id: LookbookIdSchema.optional(),
21274
21455
  // How the shots meet: cuts (between lines, like an edit; no pictures), or continuous takes, where the director carries a
21275
21456
  // shot on into the next through one picture drawn for the join (priced per picture).
21276
21457
  takes: external_exports.enum(MUSIC_VIDEO_TAKES).default("cuts"),
@@ -21305,10 +21486,14 @@ var fitsModel = (value, ctx) => {
21305
21486
  var MusicVideoPlanRequestSchema = external_exports.object({
21306
21487
  song_id: common.song_id,
21307
21488
  ...musicVideoBrief,
21308
- revise: external_exports.object({ plan_id: MusicVideoPlanIdSchema, note: external_exports.string().trim().min(1).max(1e3) }).strict().optional()
21489
+ // Required where a shot list is written (POST /music-video-plans); the brief alone is read without it elsewhere.
21490
+ credits: external_exports.number().int().min(0).max(1e5).optional(),
21491
+ revise: external_exports.object({ plan_id: MusicVideoPlanIdSchema, note: external_exports.string().trim().min(1).max(1e3) }).strict().optional(),
21492
+ // false: answer at once (202) with the shot list being written, read shot by shot at GET /music-video-plan-writes/{id} until it
21493
+ // is ready (its plan_id); true (default): wait for the shot list, a minute or more.
21494
+ wait: external_exports.boolean().optional()
21309
21495
  }).strict().superRefine(fitsModel);
21310
- var { lookbook_id: _lookbook, ...castingBrief } = musicVideoBrief;
21311
- var MusicVideoCastingRequestSchema = external_exports.object({ song_id: common.song_id, ...castingBrief }).strict().superRefine(fitsModel);
21496
+ var MusicVideoCastingRequestSchema = external_exports.object({ song_id: common.song_id, ...musicVideoBrief }).strict().superRefine(fitsModel);
21312
21497
  var MusicVideoRequestSchema = external_exports.object({
21313
21498
  type: external_exports.literal("music-video"),
21314
21499
  ...common,
@@ -21321,9 +21506,6 @@ var MusicVideoRequestSchema = external_exports.object({
21321
21506
  // Omitted: the model's default quality (MUSIC_VIDEO_MODELS[].defaultQuality), filled in below, so a parsed request always has one:
21322
21507
  // optional when parsed, typed as always there.
21323
21508
  quality: external_exports.enum(MUSIC_VIDEO_QUALITY_IDS).optional(),
21324
- // Ordered without a plan: the director first designs the shoot (the outfits, places and props the brief leaves open) and draws
21325
- // each as a picture the shots are given, priced per picture drawn (the quote counts the most it may draw).
21326
- design_shoot: external_exports.boolean().default(false),
21327
21509
  // An outro after the video's last shot (on its last frame, held, the song playing on): the release card (cover, title, artist, streaming badges, as display shows them),
21328
21510
  // designed by the director, or a saved lyric video Look's card as it is (look_id). Omitted: none. Free with the video; not part
21329
21511
  // of the plan.
@@ -21336,8 +21518,7 @@ var MusicVideoRequestSchema = external_exports.object({
21336
21518
  }).strict().overwrite((value) => ({ ...value, quality: value.quality ?? MUSIC_VIDEO_MODELS[value.model].defaultQuality })).superRefine(fitsModel).superRefine((value, ctx) => {
21337
21519
  const model = MUSIC_VIDEO_MODELS[value.model];
21338
21520
  if (value.quality && !model.qualities.includes(value.quality)) ctx.addIssue({ code: "custom", path: ["quality"], message: `${model.label} is made in ${model.qualities.map((q) => MUSIC_VIDEO_QUALITIES[q].label).join(", ")}` });
21339
- if (value.design_shoot && (value.plan_id || value.lookbook_id)) ctx.addIssue({ code: "custom", path: ["design_shoot"], message: "A plan or a lookbook already has its shoot: leave design_shoot out" });
21340
- if (value.refinish && (value.plan_id || value.design_shoot || value.variations > 1)) ctx.addIssue({ code: "custom", path: ["refinish"], message: "Finishing a video again takes only its song_id, its outro and one variation" });
21521
+ if (value.refinish && (value.plan_id || value.variations > 1)) ctx.addIssue({ code: "custom", path: ["refinish"], message: "Finishing a video again takes only its song_id, its outro and one variation" });
21341
21522
  if (value.casting_id && (value.plan_id || value.refinish)) ctx.addIssue({ code: "custom", path: ["casting_id"], message: "A plan already has its people: leave casting_id out" });
21342
21523
  if (value.casting_id && castModeOf(value) === "exact") ctx.addIssue({ code: "custom", path: ["casting_id"], message: "Only who you picked is in it (cast_mode exact): leave casting_id out" });
21343
21524
  if (value.test && !value.plan_id) ctx.addIssue({ code: "custom", path: ["test"], message: "A test is made from a plan: send its plan_id" });
@@ -21348,6 +21529,215 @@ var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideo
21348
21529
  // ../api-spec/src/song-brief.ts
21349
21530
  var SONG_BRIEF_LIMITS = { theme: 400, tone: 80, story: 1200, setting: 300, section: 60, feeling: 240, sections: 40 };
21350
21531
 
21532
+ // ../api-spec/src/artist-pages.ts
21533
+ var seg = (re) => (url2) => url2.pathname.match(re)?.[1] ?? null;
21534
+ var PLATFORMS = [
21535
+ { id: "apple_music", name: "Apple Music", category: "listen", icon: "applemusic", color: "#FA243C", hosts: ["music.apple.com", "itunes.apple.com"], externalId: seg(/\/artist\/(?:[^/]+\/)?(\d+)/) },
21536
+ { id: "spotify", name: "Spotify", category: "listen", icon: "spotify", color: "#1DB954", hosts: ["open.spotify.com"], externalId: seg(/\/artist\/([A-Za-z0-9]{22})/) },
21537
+ { id: "youtube_music", name: "YouTube Music", category: "listen", icon: "youtubemusic", color: "#FF0000", hosts: ["music.youtube.com"], externalId: seg(/\/channel\/([\w-]+)/) },
21538
+ { id: "amazon_music", name: "Amazon Music", category: "listen", icon: null, color: "#25D1DA", hosts: ["music.amazon.com", "music.amazon.ca", "music.amazon.co.uk", "music.amazon.de", "music.amazon.fr"], externalId: seg(/\/artists\/([A-Z0-9]+)/) },
21539
+ { id: "deezer", name: "Deezer", category: "listen", icon: "deezer", color: "#A238FF", hosts: ["deezer.com"], externalId: seg(/\/artist\/(\d+)/) },
21540
+ { id: "tidal", name: "TIDAL", category: "listen", icon: "tidal", color: "#000000", hosts: ["tidal.com", "listen.tidal.com"], externalId: seg(/\/artist\/(\d+)/) },
21541
+ { id: "soundcloud", name: "SoundCloud", category: "listen", icon: "soundcloud", color: "#FF5500", hosts: ["soundcloud.com"], externalId: seg(/^\/([\w-]+)\/?$/) },
21542
+ { id: "bandcamp", name: "Bandcamp", category: "store", icon: "bandcamp", color: "#408294", hosts: ["bandcamp.com"] },
21543
+ { id: "audiomack", name: "Audiomack", category: "listen", icon: "audiomack", color: "#FFA200", hosts: ["audiomack.com"], externalId: seg(/^\/([\w-]+)\/?$/) },
21544
+ { id: "shazam", name: "Shazam", category: "listen", icon: "shazam", color: "#0088FF", hosts: ["shazam.com"], externalId: seg(/\/artist\/(?:[^/]+\/)?(\d+)/) },
21545
+ { id: "pandora", name: "Pandora", category: "listen", icon: "pandora", color: "#224099", hosts: ["pandora.com"] },
21546
+ { id: "qobuz", name: "Qobuz", category: "listen", icon: null, color: "#000000", hosts: ["qobuz.com"] },
21547
+ { id: "anghami", name: "Anghami", category: "listen", icon: null, color: "#A800FF", hosts: ["anghami.com"] },
21548
+ { id: "boomplay", name: "Boomplay", category: "listen", icon: null, color: "#0A6AF2", hosts: ["boomplay.com", "boomplaymusic.com"] },
21549
+ { id: "napster", name: "Napster", category: "listen", icon: null, color: "#000000", hosts: ["napster.com"] },
21550
+ { id: "iheartradio", name: "iHeartRadio", category: "listen", icon: null, color: "#C6002B", hosts: ["iheart.com"] },
21551
+ { id: "youtube", name: "YouTube", category: "video", icon: "youtube", color: "#FF0000", hosts: ["youtube.com", "youtu.be"], externalId: seg(/\/(?:channel\/([\w-]+)|@[\w.-]+)/) },
21552
+ { id: "twitch", name: "Twitch", category: "video", icon: "twitch", color: "#9146FF", hosts: ["twitch.tv"], externalId: seg(/^\/([\w]+)\/?$/) },
21553
+ { id: "vimeo", name: "Vimeo", category: "video", icon: null, color: "#1AB7EA", hosts: ["vimeo.com"] },
21554
+ { id: "instagram", name: "Instagram", category: "social", icon: "instagram", color: "#E4405F", hosts: ["instagram.com"], externalId: seg(/^\/([\w.]+)\/?$/) },
21555
+ { id: "tiktok", name: "TikTok", category: "social", icon: "tiktok", color: "#000000", hosts: ["tiktok.com"], externalId: seg(/^\/@([\w.]+)\/?$/) },
21556
+ { id: "twitter", name: "X", category: "social", icon: "x", color: "#000000", hosts: ["twitter.com", "x.com"], externalId: seg(/^\/(\w+)\/?$/) },
21557
+ { id: "facebook", name: "Facebook", category: "social", icon: "facebook", color: "#0866FF", hosts: ["facebook.com", "fb.com"] },
21558
+ { id: "threads", name: "Threads", category: "social", icon: "threads", color: "#000000", hosts: ["threads.net", "threads.com"], externalId: seg(/^\/@([\w.]+)\/?$/) },
21559
+ { id: "bluesky", name: "Bluesky", category: "social", icon: "bluesky", color: "#1185FE", hosts: ["bsky.app"], externalId: seg(/^\/profile\/([\w.:-]+)/) },
21560
+ { id: "snapchat", name: "Snapchat", category: "social", icon: null, color: "#FFFC00", hosts: ["snapchat.com"] },
21561
+ { id: "discord", name: "Discord", category: "social", icon: null, color: "#5865F2", hosts: ["discord.gg", "discord.com"] },
21562
+ { id: "patreon", name: "Patreon", category: "store", icon: "patreon", color: "#000000", hosts: ["patreon.com"] },
21563
+ { id: "bandsintown", name: "Bandsintown", category: "live", icon: "bandsintown", color: "#00CEC8", hosts: ["bandsintown.com"], externalId: seg(/\/a\/(\d+)/) },
21564
+ { id: "songkick", name: "Songkick", category: "live", icon: "songkick", color: "#F80046", hosts: ["songkick.com"], externalId: seg(/\/artists\/(\d+)/) },
21565
+ { id: "ticketmaster", name: "Ticketmaster", category: "live", icon: "ticketmaster", color: "#026CDF", hosts: ["ticketmaster.com", "ticketmaster.ca", "ticketmaster.co.uk"], externalId: seg(/\/artist\/(\d+)/) },
21566
+ { id: "dice", name: "DICE", category: "live", icon: null, color: "#000000", hosts: ["dice.fm"] },
21567
+ { id: "setlistfm", name: "Setlist.fm", category: "live", icon: null, color: "#000000", hosts: ["setlist.fm"] },
21568
+ { id: "genius", name: "Genius", category: "info", icon: "genius", color: "#000000", hosts: ["genius.com"] },
21569
+ { id: "discogs", name: "Discogs", category: "info", icon: "discogs", color: "#333333", hosts: ["discogs.com"], externalId: seg(/\/artist\/(\d+)/) },
21570
+ { id: "musicbrainz", name: "MusicBrainz", category: "info", icon: "musicbrainz", color: "#BA478F", hosts: ["musicbrainz.org"], externalId: seg(/\/artist\/([0-9a-f-]{36})/) },
21571
+ { id: "wikipedia", name: "Wikipedia", category: "info", icon: "wikipedia", color: "#000000", hosts: ["wikipedia.org"] },
21572
+ { id: "wikidata", name: "Wikidata", category: "info", icon: null, color: "#006699", hosts: ["wikidata.org"] },
21573
+ { id: "lastfm", name: "Last.fm", category: "info", icon: "lastdotfm", color: "#D51007", hosts: ["last.fm"] },
21574
+ { id: "allmusic", name: "AllMusic", category: "info", icon: null, color: "#000000", hosts: ["allmusic.com"] },
21575
+ { id: "linktree", name: "Linktree", category: "other", icon: "linktree", color: "#43E55E", hosts: ["linktr.ee"] },
21576
+ { id: "website", name: "Website", category: "other", icon: null, color: "#3A3A44", hosts: [] }
21577
+ ];
21578
+ var BY_ID = new Map(PLATFORMS.map((p) => [p.id, p]));
21579
+ var LINK_URL_MAX = 2e3;
21580
+ var LINK_SOURCES = ["apple", "discovered", "manual"];
21581
+ var ArtistLinkSchema = external_exports.object({
21582
+ id: external_exports.string(),
21583
+ platform: external_exports.string().describe("The service: apple_music, spotify, instagram, tiktok, youtube, website, \u2026 (a new service keeps its own id)"),
21584
+ platform_name: external_exports.string(),
21585
+ category: external_exports.enum(["listen", "social", "video", "live", "info", "store", "other"]),
21586
+ url: external_exports.string(),
21587
+ external_id: external_exports.string().nullable(),
21588
+ title: external_exports.string().nullable().describe("A title the artist gave it, shown instead of the service name"),
21589
+ source: external_exports.enum(LINK_SOURCES).describe("apple: from the Apple Music connection; discovered: found automatically; manual: added by the artist"),
21590
+ confirmed: external_exports.boolean().describe("The artist said this profile is theirs"),
21591
+ state: external_exports.enum(["shown", "hidden"]).describe("hidden: kept but not on the page"),
21592
+ position: external_exports.number().int(),
21593
+ discovered_at: external_exports.string().nullable(),
21594
+ updated_at: external_exports.string()
21595
+ });
21596
+ var DISCOVERY_STATES = ["idle", "running", "found", "not_found", "failed"];
21597
+ var ArtistDiscoverySchema = external_exports.object({
21598
+ state: external_exports.enum(DISCOVERY_STATES).describe("running: looking now; found: profiles were found (new ones unconfirmed); not_found: none yet (looked again weekly); failed: try again"),
21599
+ at: external_exports.string().nullable(),
21600
+ new_links: external_exports.number().int().describe("Found links not confirmed yet")
21601
+ });
21602
+ var RESERVED_WORDS = [
21603
+ "admin",
21604
+ "administrator",
21605
+ "official",
21606
+ "support",
21607
+ "help",
21608
+ "api",
21609
+ "app",
21610
+ "settings",
21611
+ "staff",
21612
+ "kinetune",
21613
+ "kine",
21614
+ "lyrc",
21615
+ "null",
21616
+ "undefined",
21617
+ "me",
21618
+ "you",
21619
+ "www",
21620
+ "mail",
21621
+ "email",
21622
+ "root",
21623
+ "system",
21624
+ "about",
21625
+ "account",
21626
+ "login",
21627
+ "logout",
21628
+ "signin",
21629
+ "signup",
21630
+ "register",
21631
+ "search",
21632
+ "explore",
21633
+ "home",
21634
+ "new",
21635
+ "edit",
21636
+ "page",
21637
+ "pages",
21638
+ "artist",
21639
+ "artists",
21640
+ "creator",
21641
+ "creators",
21642
+ "music",
21643
+ "video",
21644
+ "videos",
21645
+ "song",
21646
+ "songs",
21647
+ "press",
21648
+ "status",
21649
+ "security",
21650
+ "legal",
21651
+ "billing",
21652
+ "pay",
21653
+ "checkout",
21654
+ "terms",
21655
+ "privacy",
21656
+ "refunds",
21657
+ "pricing",
21658
+ "developers",
21659
+ "docs",
21660
+ "blog",
21661
+ "showcase",
21662
+ "looks",
21663
+ "styles",
21664
+ "tools",
21665
+ "guides",
21666
+ "compare",
21667
+ "for",
21668
+ "v",
21669
+ "og",
21670
+ "go",
21671
+ "sitemap",
21672
+ "robots",
21673
+ "favicon",
21674
+ "static",
21675
+ "assets",
21676
+ "media",
21677
+ "contact",
21678
+ "welcome",
21679
+ "oauth",
21680
+ "mcp",
21681
+ "embed",
21682
+ "org",
21683
+ "demos",
21684
+ "samples",
21685
+ "marketing",
21686
+ "webhooks",
21687
+ "whats-new",
21688
+ "whatsnew",
21689
+ "apple",
21690
+ "applemusic"
21691
+ ];
21692
+ var RESERVED_HANDLES = /* @__PURE__ */ new Set([...RESERVED_WORDS, ...PLATFORMS.flatMap((p) => [p.id, p.id.replace(/_/g, ""), p.name.toLowerCase().replace(/[^a-z0-9]/g, "")])]);
21693
+ var PAGE_THEMES = ["stage", "paper", "neon", "studio"];
21694
+ var PAGE_FONTS = ["anton", "fraunces", "unbounded", "bebas", "archivo", "playfair"];
21695
+ var PAGE_BUTTONS = ["solid", "outline", "pill"];
21696
+ var PAGE_LAYOUTS = ["column", "split"];
21697
+ var hex5 = external_exports.string().regex(/^#[0-9a-f]{6}$/i, "A colour like #f0a845");
21698
+ var id = external_exports.string().min(1).max(80);
21699
+ var sectionBase = { id: external_exports.string().min(1).max(40), visible: external_exports.boolean().default(true), title: external_exports.string().trim().max(60).nullable().default(null) };
21700
+ var PageSectionSchema = external_exports.discriminatedUnion("type", [
21701
+ external_exports.object({
21702
+ ...sectionBase,
21703
+ type: external_exports.literal("out_now"),
21704
+ release: external_exports.enum(["newest", "pinned"]).default("newest"),
21705
+ pinned_release_id: id.nullable().default(null).describe("A catalog release id (collection) when release is pinned"),
21706
+ plays: external_exports.enum(["video", "cover"]).default("video"),
21707
+ video_id: id.nullable().default(null).describe("The Kinetune video that plays; null picks the newest finished one of that song"),
21708
+ buttons: external_exports.array(external_exports.string().max(40)).max(6).default(["spotify", "apple_music", "youtube_music"]).describe("Platform ids of the listen buttons under it")
21709
+ }),
21710
+ external_exports.object({ ...sectionBase, type: external_exports.literal("listen"), platforms: external_exports.array(external_exports.string().max(40)).max(20).default([]).describe("Platform ids in order; empty shows every shown listen link"), style: external_exports.enum(["buttons", "icons"]).default("buttons") }),
21711
+ external_exports.object({ ...sectionBase, type: external_exports.literal("videos"), items: external_exports.array(external_exports.discriminatedUnion("kind", [
21712
+ external_exports.object({ kind: external_exports.literal("kinetune"), video_id: id }),
21713
+ external_exports.object({ kind: external_exports.literal("embed"), url: external_exports.string().max(LINK_URL_MAX) })
21714
+ ])).max(24).default([]), layout: external_exports.enum(["row", "grid", "one"]).default("row") }),
21715
+ external_exports.object({ ...sectionBase, type: external_exports.literal("releases"), mode: external_exports.enum(["all", "picked"]).default("all"), picked: external_exports.array(id).max(60).default([]), hidden: external_exports.array(id).max(200).default([]), count: external_exports.union([external_exports.literal(4), external_exports.literal(8), external_exports.literal(0)]).default(8).describe("How many to show; 0 shows all") }),
21716
+ external_exports.object({ ...sectionBase, type: external_exports.literal("links"), links: external_exports.array(id).max(30).default([]).describe("Ids of the artist's links, in order"), big: id.nullable().default(null).describe("The one link drawn big") }),
21717
+ external_exports.object({ ...sectionBase, type: external_exports.literal("about"), text: external_exports.string().max(4e3).default("") }),
21718
+ external_exports.object({ ...sectionBase, type: external_exports.literal("looks") })
21719
+ ]);
21720
+ var PageDocSchema = external_exports.object({
21721
+ theme: external_exports.enum(PAGE_THEMES).default("stage"),
21722
+ accent: hex5.nullable().default(null).describe("null uses the theme's accent"),
21723
+ background: external_exports.discriminatedUnion("kind", [external_exports.object({ kind: external_exports.literal("color"), color: hex5 }), external_exports.object({ kind: external_exports.literal("photo") })]).nullable().default(null),
21724
+ font: external_exports.enum(PAGE_FONTS).nullable().default(null),
21725
+ buttons: external_exports.enum(PAGE_BUTTONS).nullable().default(null),
21726
+ layout: external_exports.enum(PAGE_LAYOUTS).nullable().default(null),
21727
+ name: external_exports.string().trim().min(1).max(80).nullable().default(null).describe("The name shown; null uses the artist's name"),
21728
+ photo: external_exports.discriminatedUnion("source", [external_exports.object({ source: external_exports.literal("picture") }), external_exports.object({ source: external_exports.literal("upload"), key: external_exports.string().max(300) }), external_exports.object({ source: external_exports.literal("video"), video_id: id, seconds: external_exports.number().min(0).max(3600) })]).default({ source: "picture" }),
21729
+ genres: external_exports.array(external_exports.string().trim().min(1).max(40)).max(5).default([]),
21730
+ place: external_exports.string().trim().max(60).default(""),
21731
+ social: external_exports.array(id).max(8).default([]).describe("Ids of the links shown as icons under the name; empty shows the shown social links"),
21732
+ sections: external_exports.array(PageSectionSchema).max(20),
21733
+ tracking: external_exports.object({
21734
+ ga4: external_exports.string().regex(/^G-[A-Z0-9]{4,12}$/, "A Google Analytics 4 measurement ID like G-ABC123XYZ").nullable().default(null),
21735
+ meta_pixel: external_exports.string().regex(/^\d{8,20}$/, "A Meta Pixel ID (digits)").nullable().default(null),
21736
+ tiktok_pixel: external_exports.string().regex(/^[A-Z0-9]{10,30}$/, "A TikTok Pixel ID").nullable().default(null)
21737
+ }).default({ ga4: null, meta_pixel: null, tiktok_pixel: null }).describe("The artist's own tracking IDs (plans only); pixels load after the fan accepts")
21738
+ });
21739
+ var PageDocPatchSchema = external_exports.object(Object.fromEntries(Object.entries(PageDocSchema.shape).map(([key, schema]) => [key, (schema instanceof external_exports.ZodDefault ? schema.unwrap() : schema).optional()])));
21740
+
21351
21741
  // ../api-spec/src/versioning.ts
21352
21742
  var API_VERSION = 1;
21353
21743
  var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
@@ -21373,11 +21763,11 @@ var SCOPE_DESCRIPTIONS = {
21373
21763
  "organizations:write": "Create workspaces you own, and rename or switch the type of one you own or run"
21374
21764
  };
21375
21765
  var ARTIST_LINK_KINDS = ["apple_music", "spotify", "youtube", "instagram", "tiktok", "website"];
21376
- var id = (what) => external_exports.string().min(1).max(120).describe(`The ${what} id`);
21377
- var songId = id("song");
21378
- var artistId = id("artist");
21379
- var lookId = id("Look");
21380
- var videoId = id("video");
21766
+ var id2 = (what) => external_exports.string().min(1).max(120).describe(`The ${what} id`);
21767
+ var songId = id2("song");
21768
+ var artistId = id2("artist");
21769
+ var lookId = id2("Look");
21770
+ var videoId = id2("video");
21381
21771
  var IDEA_ID = external_exports.string().regex(/^idea_[A-Za-z0-9]{1,40}$/).describe("The idea id (idea_\u2026)");
21382
21772
  var search = (q) => ({
21383
21773
  q: external_exports.string().max(100).optional().describe(q),
@@ -21424,28 +21814,39 @@ var lyricInput = external_exports.object({
21424
21814
  song_id: songId,
21425
21815
  callback_url: CALLBACK,
21426
21816
  metadata: METADATA,
21427
- look: lyricShape.look.describe(`{"mode":"existing","id":"look_\u2026"} to reuse a saved Look (add "lyric_style" to render it in another lyric style, at no extra cost), or {"mode":"new","category":"\u2026","lyric_style":"\u2026","background":{"source":"ai-image","quality":"high"},"visibility":"private","direction":"\u2026"} to have one designed (any category takes any background.source, "designed" being a free moving gradient the director draws; background.source "upload-photo"/"upload-video" with background.upload_id from upload_background designs it around your own media; such a Look stays private. "stock-photo"/"stock-video" with background.stock_id from search_stock uses that stock photo or clip instead of the director's pick). lyric_style (optional, from get_options) sets how the lyrics are presented and animated: block-stack, punch, player, neon, terminal, cinematic\u2026 Omit it and the director picks one. visual (both modes, optional) picks the visual that moves with the music: {"preset":"liquid/amber-aurora"} for the whole song, "sections":{"chorus":"\u2026"} for some sections, or {"preset":"none"} for no visual; keys from get_options visualizers.presets; omit it and the director picks per section. background.source "visualizer" has no picture: the visual fills the frame behind the words (free). background.scenes (2\u20134, AI image only) makes that many shots of the same world that cut on the song's sections, each priced like the first. background.references "stock" (AI image or AI video, default "none") with feature_artist "always" makes the background one real stock photo of a place the director picks, with the artist put into it and restyled a little for the Look; no extra cost. The singer is left out unless asked: feature_artist "always" (default "never") makes them the subject of the background, recognizable from their character (list_characters; start_character makes one); it needs an AI image or AI video background, a private Look and display.cover false (the cover would hide them), and that Look then only serves this artist's songs. A saved Look that shows an artist (featured_artist) only serves that artist's songs, also with display.cover false`),
21817
+ look: lyricShape.look.describe(`Which Look and what to change. {"id":"look_\u2026"} uses a saved Look (list_looks); left out, Kinetune picks one for the song by rules (get_song_draft shows which, with its picture). Change any part: "lyric_style" (get_options lyric_styles), "behind" (true: big words go behind the subject of the clips, a person or a solid figure, which stands in front of them; only the lyric styles get_options marks behind: true take it, others keep their words in front; the behind style has it on, false turns it off), "visual" (get_options visualizers), and "background": {"kind":"clips","sources":{"moods":["city"],"folders":["folder_\u2026"]},"density":"even","transitions":{"style":"auto","amount":0.5,"feel":0.5},"grade":"clean","grade_amount":1,"effects":[{"id":"film-grain","amount":0.5}],"shape":"both","fill":"blur","speed":1} for short clips cut on the beat (moods: get_options clip_moods, the Looks collection among them; folders: list_clip_folders; looks: Look ids whose own picture plays as clips, as a Look made before clips does; transitions, grades and densities: get_options; grade_amount: the grade's strength 0\u20131, default 1; effects: up to three from get_options effects, each with an amount 0\u20131, drawn over the clips across the song), or {"kind":"visualizer"} for a visual that fills the frame. Left out, the Look keeps its own picture. No AI designs anything: a lyric video costs its setup and render only`),
21428
21818
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
21429
- display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes. cover must be false to show the artist in the background"),
21819
+ display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes. title_card: when a kinetic lyric style shows its big title card instead of the small label: ends (before the first line and after the last; the default over clips), breaks (also every break of 3 s or more; the default otherwise) or label (never). censor: true shows swear words with their vowels as * (the song is untouched). A Look whose picture shows an artist needs cover false"),
21430
21820
  trim: lyricShape.trim.describe("Render only this section of the song (at least 8 seconds). Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
21431
- variations: lyricShape.variations.describe("1\u20134 different New Looks, one video each (an Existing Look renders one)")
21821
+ variations: lyricShape.variations.describe("1\u20134 videos with a clips picture, each drawing other clips (the next seed); one otherwise"),
21822
+ edit: lyricShape.edit.describe(`A clips picture's cut: {"seed":7} draws the clips (same seed, same video; another seed, other clips on the same cuts), or "clips" lists them exactly as a studio previewed them (list_clips and @kinetune/composition planEdit: {clip_id, at, in, duration, transition}, each cut where you want it, each clip from where you want it to start); a clip may also set its own transition's transition_seconds (0.07\u20131), direction (left, right, up, down: whip, stack, wipe, slip, slice) and intensity (0\u20131, 0.5 as designed: hits, zooms, flashes, warps); one variation only`)
21432
21823
  });
21824
+ var legacy = (schema, use) => schema.optional().meta({ deprecated: true, "x-sunset": CANVAS_LEGACY_SUNSET }).describe(`Deprecated: use ${use}. Stops working on ${CANVAS_LEGACY_SUNSET}.`);
21825
+ var CANVAS_LEGACY_INPUT = {
21826
+ source: legacy(external_exports.enum(["ai-video", "ai-image", "stock-photo", "stock-video"]), "picture (generate for ai-video and ai-image, clips for stock)"),
21827
+ quality: legacy(external_exports.enum(["standard", "high"]), "picture.video"),
21828
+ resolution: legacy(external_exports.enum(["720p", "1080p"]), "nothing (a Canvas is always 1080 \xD7 1920)"),
21829
+ style: legacy(external_exports.enum(["cinematic", "dreamy", "abstract", "surreal", "retro", "minimal", "dark", "vibrant", "nature", "urban"]), "picture.prompt, or a clips picture's grade"),
21830
+ direction: legacy(external_exports.string().max(2e3), "picture.prompt"),
21831
+ inspiration: legacy(external_exports.enum(["cover", "song"]), "picture.from"),
21832
+ feature_artist: legacy(external_exports.enum(["auto", "always", "never"]), "picture.with"),
21833
+ performer: legacy(KitItemIdSchema, "picture.with"),
21834
+ stock_id: legacy(StockIdSchema, "picture.stock_ids")
21835
+ };
21433
21836
  var canvasInput = external_exports.object({
21434
21837
  ...canvasShape,
21435
21838
  song_id: songId,
21436
21839
  callback_url: CALLBACK,
21437
21840
  metadata: METADATA,
21438
- source: canvasShape.source.describe("ai-video (default), ai-image, stock-photo or stock-video"),
21439
- stock_id: canvasShape.stock_id.describe("With a stock source: the stock photo or video (search_stock with seconds) to use instead of the director's pick"),
21440
- quality: canvasShape.quality.describe("AI video model tier: standard or high"),
21441
- resolution: canvasShape.resolution.describe("1080p (1080\xD71920) or 720p"),
21442
- style: canvasShape.style.describe("Optional visual style"),
21443
- direction: canvasShape.direction.describe("Optional mood, motifs or references"),
21444
- inspiration: canvasShape.inspiration.describe("Where the idea comes from: song (default; what the song means and how it sounds lead, the colors kept close to the cover, when there is one, so the two sit together in the player) or cover (the cover art's world, colors and motifs, brought to life; a song without a cover always uses song)"),
21445
- performer: canvasShape.performer.describe("A Creator workspace only: the character (list_characters with for_artist_id: one in the song's project's kit or one another project shared) who may appear, with feature_artist auto or always on an AI source. Omitted: the song's artist's character"),
21446
- feature_artist: canvasShape.feature_artist.describe(`Whether the Canvas shows the artist: auto (the director decides), always or never (AI sources; "always" needs the artist's character: list_characters, start_character makes one)`),
21447
- seconds: canvasShape.seconds.describe("Canvas length in whole seconds, 5\u20138 (default 8). Spotify loops it, so no part of the song is chosen"),
21448
- variations: canvasShape.variations.describe("1\u20134 different Canvases")
21841
+ picture: canvasShape.picture.describe(`What the Canvas shows. {"kind":"clips"} (the default): clips from library moods and the workspace's folders, "sources":{"moods":["euphoria"],"folders":["folder_\u2026"]} (left out: the song's own moods, by rules: get_song_draft with type canvas shows them), "stock_ids" (up to 3 Pexels videos from search_stock, brought into the Pexels folder first), "grade" (get_options grades) and "grade_amount" (its strength, 0\u20131; default 1), "fill" (blur, cover, bars or colour for a clip of the other shape; colour takes "fill_colour":"#rrggbb"), "speed" (0.25\u20132, get_options canvas.speeds), "cut" (hard or smooth, for a cuts loop), "crossfade" (drift: 0.25\u20132 seconds of the footage after the loop blended over its start; default 0.75), "camera" (still, push or pull: a slow push in or pull out over each cut, or in and back out over a rebound; a drift stays still), "fade" (cuts: fade through black at the loop point), "framing" ({"x":-1\u20261,"y":-1\u20261,"zoom":1\u20263}: where the picture sits and how far it is zoomed; x 1 shows its left edge, y 1 its top), "rotate" (0, 90, 180 or 270 degrees, clockwise) and "steady" (true: each clip plays a stabilised copy, made once; get_clip_steady shows it). {"kind":"cover","motion":"push"|"drift"|"still"}: the song's cover, moving. {"kind":"visualizer","preset":"sphericalShader/ring-bowl"}: a calm or medium visual, 3D or Liquid (get_options canvas.visuals). {"kind":"generate","prompt":"\u2026","from":"song"|"cover","with":"none"|"artist"|"kit_\u2026","video":"standard"|"high"|null,"model":"\u2026","style":"calm"|"cinematic"|"dreamy"|"intense"}: a picture generated for this Canvas in the same order (from the song's brief or the cover's world, with the artist or a cast character; a video made to loop by a model from get_options video_models with loops, or a still when video is null; style shapes how it looks and moves, calm by default), priced in the quote and kept in the AI folder. No AI decides anything else`),
21842
+ loop: canvasShape.loop.describe("How it loops: drift (default: one clip that flows into itself with no seam), rebound (one clip forward, then backward) or cuts (two or three clips, calm cuts, never flashing). rebound and cuts go with a clips picture (rebound also with a generated video)"),
21843
+ seconds: canvasShape.seconds.describe("3\u20138 seconds in tenths (default 8). Spotify plays it on a loop of its own, out of time with the song, so no part of the song is chosen"),
21844
+ edit: canvasShape.edit.describe(`A clips picture's clips: {"seed":7} draws them, or "clips" lists them as the editor previewed them ({clip_id, at, in, duration, transition}, times from the loop's start; "in" is where in its clip each one starts, so a drift or rebound plays the part of the clip you chose: get_clip_loop finds where it loops best); one variation only`),
21845
+ light: canvasShape.light.describe(`Light over the picture: {"preset":"polar-curves/halo-ring"}, a visual from get_options canvas.visuals with over_picture true (3D in the cover's colours, Liquid in its own); null for none`),
21846
+ atmosphere: canvasShape.atmosphere.describe("Something drifting over the picture: none (default), snow, leaves, petals, embers, sparkles, rain, confetti, hearts or dust (get_options canvas.atmospheres)"),
21847
+ effects: canvasShape.effects.describe('Effects over the whole loop, any picture: up to three of get_options effects (light-leak, god-rays, glow, vignette, film-burn, film-grain, old-footage, shake, mirror, blur, vhs, glitch, rgb-split), each once, as [{"id":"light-leak","amount":0.6}] with an amount 0\u20131 (default 0.6). They repeat with the loop, no seam. Default none'),
21848
+ variations: canvasShape.variations.describe("1\u20134 different Canvases with a clips picture (each draws other clips)"),
21849
+ ...CANVAS_LEGACY_INPUT
21449
21850
  });
21450
21851
  var DIRECTION = `Optional notes for the director (a place, an era, a story idea, a mood). Mention kit pieces by @handle (list_kit): "@nina-kazora in the @blue-set on the @rooftop, the @chrome-mic in hand"; a mentioned piece is used exactly as it is and the director designs the rest. Mention characters by @handle (list_characters) to put them in the shots beside the performer (those in the song's artist's kit and those other artists shared, list_characters with for_artist_id; the song's artist's own too when another character performs; in a story with a cast, they are the cast): "@mia-torres dances behind her in the last chorus". An unknown handle, or another artist's piece they haven't shared, answers 400. Pin a change to a moment with a sentence that says on "<words sung>" (on every "\u2026" for each time they are sung) or at m:ss (the song's time), for example: On "Drop it" cut to @rooftop-club. / @grandma appears on "She said yes". / At 1:05 the lights go out. A shot starts exactly there (the plan has one more shot when the usual cut runs over it), set in the first kit place the sentence names, with the characters it names appearing in it (and not in the shot before); shots[].cue shows it. Words the section doesn't sing, or two moments under 2 seconds apart, answer 400`;
21451
21852
  var LOOK_ID = "A music video Look (list_music_video_looks: one made public, or the workspace's own) the video follows: its treatment leads the director and its places and props join the kit. Send its category, style, takes and lipsync too (or your own)";
@@ -21453,7 +21854,6 @@ var LIPSYNC = '"auto" (default: the director has the artist sing the important l
21453
21854
  var KIT_ONLY = "Only what the kit's pictures show: no place, prop, person or lighting change beyond them (every shot in one of the kit's places, lit as in its picture; only the props and the people the brief names). Omitted: on when the brief mentions a kit piece by @handle (an outfit, a place or a prop), off otherwise; send false to let the director add to the kit";
21454
21855
  var CAST_MODE = `Who else may be on screen besides the performer and people: "director" (default when left out: the director may cast up to 3 more, each drawn as a character sheet only after the user says yes: cast_music_video) or "exact" (only who was picked; the song's other people are carried by the scene, an empty chair or a coat left out, never shown). Nobody appears on screen without a character sheet; with nobody cast, crowds and dancers are faceless. A cast-story video with "exact" needs people`;
21455
21856
  var CASTING_ID = `Ordered without a plan: a casting (cast_music_video) the user said yes to in full. Its people still proposed are drawn inside the order (the quote's "New cast" line, at the character sheet price each; only those drawn are charged), kept in the song artist's kit as AI-made and added to people. Not with plan_id or cast_mode exact`;
21456
- var LOOKBOOK_ID = "A lookbook (design_music_video_shoot) whose kept, drawn pieces the video uses like the kit pieces the direction mentions; its idea leads the director";
21457
21857
  var musicVideoInput = external_exports.object({
21458
21858
  ...musicShape,
21459
21859
  song_id: songId.describe("The song; its artist performs the video and needs their character (list_characters; start_character makes one), unless performer names another character"),
@@ -21467,7 +21867,6 @@ var musicVideoInput = external_exports.object({
21467
21867
  takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet with a cut between the song's lines, like an edit) or "continuous" (the director may carry a shot on into the next through a picture drawn of the moment they meet, priced per picture; the quote before a plan counts every join, the plan's quote only the ones it draws)`),
21468
21868
  trim: musicShape.trim.describe("Perform only this section of the song (15 seconds to 10 minutes); omitted, the whole song (15 seconds to 10 minutes long). The price follows its length. Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
21469
21869
  direction: musicShape.direction.describe(DIRECTION),
21470
- lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
21471
21870
  look_id: musicShape.look_id.describe(LOOK_ID),
21472
21871
  lipsync: musicShape.lipsync.describe(LIPSYNC),
21473
21872
  kit_only: musicShape.kit_only.describe(KIT_ONLY),
@@ -21481,8 +21880,7 @@ var musicVideoInput = external_exports.object({
21481
21880
  variations: musicShape.variations.describe("1\u20134 different music videos"),
21482
21881
  outro: musicShape.outro.describe("Optional: end on a release card after the last shot, the song playing on under it (the delivered video is up to 5 seconds longer; the director designs it for the video, or look_id: a lyric video Look from list_looks whose card is used as it is). display: title, artist, cover, badges (true/false) and optional cover_scale, text_scale, artist_scale, spacing_scale. Free with the video"),
21483
21882
  refinish: musicShape.refinish.describe("Finish a delivered music video again with another outro, or none (send song_id, refinish.video_id and outro or not; one variation): no shot is made again (its kept shots are joined again under the song), only setup and delivery are charged. Needs the video's revisable_until ahead"),
21484
- test: musicShape.test.describe("With plan_id: test the plan before the whole video. Only its test shots are made (the first chorus, else the sung section with the most lead words; whole shots, about 20 seconds at most), at 480p whatever quality is sent, with the plan's seeds and pictures, for a fraction of the price. The quote and get_video say which shots and seconds (test). It is an ordinary video marked as a test: no outro, one variation, never revised. Then order the whole video from the same plan_id without test"),
21485
- design_shoot: musicShape.design_shoot.describe("Without a plan: the director first designs the shoot (the outfits, places and props the brief leaves open) and draws each as a picture every shot is given. The quote counts the most pictures it may draw; only those drawn are charged")
21883
+ test: musicShape.test.describe("With plan_id: test the plan before the whole video. Only its test shots are made (the first chorus, else the sung section with the most lead words; whole shots, about 20 seconds at most), at 480p whatever quality is sent, with the plan's seeds and pictures, for a fraction of the price. The quote and get_video say which shots and seconds (test). It is an ordinary video marked as a test: no outro, one variation, never revised. Then order the whole video from the same plan_id without test")
21486
21884
  });
21487
21885
  var musicVideoPlanInput = external_exports.object({
21488
21886
  ...MusicVideoPlanRequestSchema.shape,
@@ -21495,7 +21893,6 @@ var musicVideoPlanInput = external_exports.object({
21495
21893
  takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet with a cut between the song's lines, like an edit) or "continuous" (the director may carry a shot on into the next through a picture drawn of the moment they meet, priced per picture; the quote before a plan counts every join, the plan's quote only the ones it draws)`),
21496
21894
  trim: musicShape.trim.describe("Only this section of the song (15 seconds to 10 minutes); omitted, the whole song (15 seconds to 10 minutes long). Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
21497
21895
  direction: musicShape.direction.describe(DIRECTION),
21498
- lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
21499
21896
  look_id: musicShape.look_id.describe(LOOK_ID),
21500
21897
  lipsync: musicShape.lipsync.describe(LIPSYNC),
21501
21898
  kit_only: musicShape.kit_only.describe(KIT_ONLY),
@@ -21503,7 +21900,9 @@ var musicVideoPlanInput = external_exports.object({
21503
21900
  performer: musicShape.performer.describe(PERFORMER),
21504
21901
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
21505
21902
  cast_mode: musicShape.cast_mode.describe(CAST_MODE),
21506
- revise: MusicVideoPlanRequestSchema.shape.revise.describe(`Rewrite an earlier plan of this song: {"plan_id":"plan_\u2026","note":"what to change"} (the next draft). It keeps that plan's brief (model, format, style, direction, people, section\u2026): send song_id and revise alone, or with only the brief fields to change`)
21903
+ credits: external_exports.number().int().min(0).max(1e5).describe("The price the user agreed to: list_music_video_drafts price.credits for this song (a rewrite costs the same). A different price answers 409 with the current one (price); without enough credits, 402. Held while it is written, charged once it is saved, nothing when it fails"),
21904
+ revise: MusicVideoPlanRequestSchema.shape.revise.describe(`Rewrite an earlier plan of this song: {"plan_id":"plan_\u2026","note":"what to change"} (the next draft). It keeps that plan's brief (model, format, style, direction, people, section\u2026): send song_id and revise alone, or with only the brief fields to change`),
21905
+ wait: MusicVideoPlanRequestSchema.shape.wait.describe("true (default): answer with the shot list once written (a minute or more). false: answer at once (202) with the shot list being written (id, status writing); read it with get_music_video_plan_write every second or two, its shots arriving as they are written, until status is ready (plan_id) or failed (error). Asking again for the same brief while it is written returns the same one")
21507
21906
  });
21508
21907
  var MusicVideoPlanSchema = external_exports.looseObject({
21509
21908
  id: external_exports.string(),
@@ -21511,7 +21910,8 @@ var MusicVideoPlanSchema = external_exports.looseObject({
21511
21910
  draft: external_exports.number().int().describe("1 for the first plan, n+1 for a rewrite"),
21512
21911
  revision_of: external_exports.string().nullable(),
21513
21912
  note: external_exports.string().nullable(),
21514
- brief: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What it was planned from: model, category, style, aspect_ratio, trim, direction, on_screen, performer, cast"),
21913
+ brief: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What it was planned from: model, category, style, aspect_ratio, trim, direction, on_screen, performer, cast. brief.model is the model it is made with"),
21914
+ written_for: external_exports.string().nullable().optional().describe("The model the director wrote it for: brief.model, or another one when the shot list was moved to brief.model (switch_music_video_model)"),
21515
21915
  title: external_exports.string().nullable().describe("The film's name, as the director titled it"),
21516
21916
  concept: external_exports.string(),
21517
21917
  style: external_exports.string(),
@@ -21522,7 +21922,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
21522
21922
  character: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }),
21523
21923
  name: external_exports.string(),
21524
21924
  wardrobe: external_exports.string(),
21525
- outfit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }).nullable().optional().describe("The kit outfit they wear throughout (drawn on their sheet by the lookbook, or picked in the brief); null: the director dresses them")
21925
+ outfit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }).nullable().optional().describe("The kit outfit they wear throughout (picked in the brief); null: the director dresses them")
21526
21926
  })).optional().describe("The other characters in its shots (mentioned by @handle in direction: the artist's own and those other artists shared), each in one outfit throughout"),
21527
21927
  on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
21528
21928
  revision: external_exports.object({ video_id: external_exports.string(), shots: external_exports.array(external_exports.number().int()), asked: external_exports.array(external_exports.number().int()).optional().describe("The shots the artist asked to change, each rewritten from its note (shots adds those carried straight on from them)") }).nullable().describe("A revision of a delivered music video (revise_music_video_shot): that video, and the shots made again (the others are reused as they were); null for a plan of a new video"),
@@ -21531,10 +21931,18 @@ var MusicVideoPlanSchema = external_exports.looseObject({
21531
21931
  index: external_exports.number().int(),
21532
21932
  description: external_exports.string(),
21533
21933
  kit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }).nullable(),
21534
- photo: external_exports.object({ stock_id: external_exports.string(), thumbnail_url: external_exports.string(), credit: external_exports.record(external_exports.string(), external_exports.unknown()).nullable() }).nullable()
21535
- })).describe("The real places it is set in: kit pieces (kit), or stock photos the director found (photo); neither: no usable photo was found, so it is imagined. Empty: every place is imagined"),
21934
+ photo: external_exports.object({ stock_id: external_exports.string(), thumbnail_url: external_exports.string(), credit: external_exports.record(external_exports.string(), external_exports.unknown()).nullable() }).nullable(),
21935
+ drawn: external_exports.boolean().optional().describe("A place drawn as a picture (no kit piece or photo): a place the director wrote, or an angle. list_music_video_pictures shows its picture once drawn"),
21936
+ angle: external_exports.object({
21937
+ of: external_exports.number().int().describe("The place it is an angle of (places[].index)"),
21938
+ from: external_exports.number().int().nullable().describe("The angle beside it that it is drawn from too, or null"),
21939
+ kind: external_exports.enum(KIT_ANGLES).nullable().describe("The kind of angle. New values may be added"),
21940
+ camera: external_exports.string().describe("Where the camera stands, in the director's words")
21941
+ }).nullable().optional().describe("An angle of another place: the same set from another camera position, which shots cut to for coverage; null for a place")
21942
+ })).describe("The places it is set in: kit pieces (kit), stock photos the director found (photo), places drawn as pictures (drawn), and the angles of each (angle). Empty: every place is imagined (plans made before drawn places)"),
21536
21943
  outfits: external_exports.array(external_exports.object({ index: external_exports.number().int(), kit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }), description: external_exports.string() })).describe("The kit outfits it uses"),
21537
21944
  props: external_exports.array(external_exports.object({ index: external_exports.number().int(), kit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }), description: external_exports.string() })).describe("The kit props it uses"),
21945
+ designed_props: external_exports.array(external_exports.object({ index: external_exports.number().int().describe("Numbered after the kit props"), name: external_exports.string(), description: external_exports.string() })).optional().describe("The props the director designed (no kit piece), numbered after props: each drawn from its words as a picture of the object alone (list_music_video_pictures)"),
21538
21946
  joins: external_exports.number().int().describe("In a continuous take, the joins drawn as pictures (priced per picture); 0 otherwise"),
21539
21947
  shots: external_exports.array(external_exports.object({
21540
21948
  index: external_exports.number().int(),
@@ -21545,7 +21953,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
21545
21953
  summary: external_exports.string().describe("What we see"),
21546
21954
  places: external_exports.array(external_exports.number().int()).describe("The places it happens in (numbers into places)"),
21547
21955
  outfit: external_exports.number().int().nullable().describe("The kit outfit worn (a number into outfits), or null: the world's wardrobe (world.wardrobe)"),
21548
- props: external_exports.array(external_exports.number().int()).describe("The kit props seen (numbers into props)"),
21956
+ props: external_exports.array(external_exports.number().int()).describe("The props seen (numbers into props, then designed_props)"),
21549
21957
  people: external_exports.array(external_exports.number().int()).optional().describe("The other characters in the shot, as they stand (numbers into people)"),
21550
21958
  continues: external_exports.boolean().describe("It carries straight on from the shot before (a continuous take), with no cut"),
21551
21959
  performance: external_exports.enum(MUSIC_VIDEO_PERFORMANCES).describe("sings: the artist sings it on camera (lip-synced); plays: they play an instrument to it; over: the song plays over the shot and nobody sings on camera. New values may be added"),
@@ -21612,7 +22020,7 @@ var VideoSchema = external_exports.looseObject({
21612
22020
  request: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What the video was made from, with your metadata"),
21613
22021
  look_id: external_exports.string().nullable(),
21614
22022
  look: external_exports.record(external_exports.string(), external_exports.unknown()).nullable(),
21615
- canvas: external_exports.record(external_exports.string(), external_exports.unknown()).nullable().optional().describe("A Canvas: its design and, for stock, the credit to show"),
22023
+ canvas: external_exports.record(external_exports.string(), external_exports.unknown()).nullable().optional().describe("A Canvas: what it was made from (picture, loop, seconds) and, for stock, the credit to show"),
21616
22024
  music_video: external_exports.object({
21617
22025
  title: external_exports.string().nullable(),
21618
22026
  concept: external_exports.string().describe("The idea, in a sentence or three"),
@@ -21657,7 +22065,7 @@ var OPERATIONS = [
21657
22065
  group: "account",
21658
22066
  title: "Get the account",
21659
22067
  summary: "Who you are signed in as, the organization (workspace) and its credit balance",
21660
- description: "Returns the organization the credentials act for (the workspace, as the app calls it; type artist holds one artist, label a roster, creator projects), how they authenticate and their scopes, the credit balance (available, monthly, top-ups) and its plan, if any: active says whether it lets the workspace create (without an active plan, creating answers 402 plan_required), storage (used_bytes against limit_bytes: an upload or new video that does not fit answers 402 storage_full, and deleting videos or archiving songs frees space at once), where it is billed, when the period ends, and a downgrade or interval switch waiting for the renewal as scheduled_change. Without a plan, free_song says where the person's one free song stands (signed in as them, never with an API key, where it is null, as it is with a plan): available (upload one song now, with create_song; it plays in the Looks), unverified (they confirm their email first), used (its song_id and title, and video: available true while its one free video is still to make, video_id once it is) or taken (it went to another workspace or account). The free video is a lyric video of the free song with an existing Look (look.mode existing) in one aspect ratio, of at most " + FREE_VIDEO_MAX_SECONDS + " seconds of it (a trim: a part of a longer song), quoted and created as usual: it holds no credits; anything else answers 402 plan_required. Monthly credits reset every month; top-ups never expire. On the organization, " + IMAGE_FALLBACK + " Check it before creating anything.",
22068
+ description: "Returns the organization the credentials act for (the workspace, as the app calls it; type artist holds one artist, label a roster, creator projects), how they authenticate and their scopes, the credit balance (available, monthly, top-ups) and its plan, if any: active says whether it lets the workspace create (without an active plan, creating answers 402 plan_required), storage (used_bytes against limit_bytes: an upload or new video that does not fit answers 402 storage_full, and deleting videos or archiving songs frees space at once), limits.clip_sources (how many clip sources, library moods and your folders together, one clips video may draw from on this plan; more answers 402 plan_required), where it is billed, when the period ends, and a downgrade or interval switch waiting for the renewal as scheduled_change. Without a plan, free_song says where the person stands on the Free plan (signed in as them, never with an API key, where it is null, as it is with a plan): songs_per_month new songs, videos_per_month lyric videos and canvases_per_month Canvases a month, starting again at resets_at (UTC months). state is this month's free song: available (upload it now, with create_song), unverified (they confirm their email first), used (its song_id and title) or taken (it went to another workspace or account). video and canvas, once the workspace has a free song: each kind's made and left this month, available while left is above 0. A free video is a lyric video of one of the workspace's free songs in one aspect ratio, of at most video_max_seconds of it (a trim: a part of a longer song), or a Canvas of it from clips, the cover or a visualizer (not a generated picture), quoted and created as usual: it holds no credits; anything else answers 402 plan_required. Monthly credits reset every month; top-ups never expire. On the organization, " + IMAGE_FALLBACK + " Check it before creating anything.",
21661
22069
  method: "GET",
21662
22070
  path: "/api/v1/account",
21663
22071
  scopes: ["videos:read", "music:read", "library:read"],
@@ -21673,7 +22081,7 @@ var OPERATIONS = [
21673
22081
  group: "account",
21674
22082
  title: "Send a file from your computer",
21675
22083
  summary: "A signed upload URL for a local file, and the file_url to use it",
21676
- description: `For an agent that has a file on the person's computer but can only pass URLs (the CLI sends files itself): returns upload_url, where you PUT the file's bytes within an hour with the headers given, e.g. curl -X PUT -H "content-type: image/png" --upload-file desk.png "<upload_url>"; then pass file_url in any *_url field within a day: create_song (audio_url, cover_art_url), add_kit_piece (file_url), start_character (photo_urls), upload_background (file_url), set_artist_image (image_url). That field checks the file like an upload (format, size, rights) and keeps its own copy; this one is deleted after a day. size_bytes must be the file's exact size (up to ${UPLOAD_MAX_BYTES / 1024 / 1024} MB), content_type its type. Up to 100 files a day; without a plan, only a free song's audio and cover.`,
22084
+ description: `For an agent that has a file on the person's computer but can only pass URLs (the CLI sends files itself): returns upload_url, where you PUT the file's bytes within an hour with the headers given, e.g. curl -X PUT -H "content-type: image/png" --upload-file desk.png "<upload_url>"; then pass file_url in any *_url field within a day: create_song (audio_url, cover_art_url), add_kit_piece (file_url), start_character (photo_urls), import_clips (file_url, into a clip folder), set_artist_image (image_url). That field checks the file like an upload (format, size, rights) and keeps its own copy; this one is deleted after a day. size_bytes must be the file's exact size (up to ${UPLOAD_MAX_BYTES / 1024 / 1024} MB), content_type its type. Up to 100 files a day; without a plan, only a free song's audio and cover.`,
21677
22085
  method: "POST",
21678
22086
  path: "/api/v1/uploads",
21679
22087
  scopes: ["music:write", "videos:write"],
@@ -21694,8 +22102,8 @@ var OPERATIONS = [
21694
22102
  id: "options.get",
21695
22103
  group: "account",
21696
22104
  title: "List the options",
21697
- summary: "Video types, Look categories, background sources, formats and the current credit prices",
21698
- description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). credits.cover: what a round of covers costs now, counts by how many (1 to 4), and redraw, one cover redrawn with a note (make_cover, redraw_cover). credits.examples: what a lyric video of a song_seconds song costs now in one 9:16 format, by how its Look is made (saved_look, new_look, new_look_ai_video), and clips: the same for the parts of a song people post (seconds: 15, 30, 60). Use it to pick a category or source and to explain prices.",
22105
+ summary: "Video types, lyric styles, clip moods, formats and the current credit prices",
22106
+ description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). credits.cover: what a round of covers costs now, counts by how many (1 to 4), and redraw, one cover redrawn with a note (make_cover, redraw_cover). credits.examples: what a lyric video of a song_seconds song costs now in one 9:16 format, as lyric_video, and clips: the same for the parts of a song people post (seconds: 15, 30, 60). clip_moods: Stock, the clip collections Kinetune keeps for everyone (free): each with id, name, group (kinetune or stock) and group_name, the heading people see (Feelings: moods, mostly tall; Places & textures: real footage), clips (how many are ready), tall and wide (how many of each shape) and poster_url; browse_clip_mood looks inside one. Use it to pick a category or source and to explain prices.",
21699
22107
  method: "GET",
21700
22108
  path: "/api/v1/options",
21701
22109
  scopes: ["videos:read", "music:read", "library:read"],
@@ -21788,7 +22196,7 @@ var OPERATIONS = [
21788
22196
  method: "POST",
21789
22197
  path: "/api/v1/artists",
21790
22198
  scopes: ["music:write", "videos:write"],
21791
- input: external_exports.object({ name: external_exports.string().trim().min(1).max(200).describe("The artist name") }),
22199
+ input: external_exports.object({ name: external_exports.string().trim().min(1).max(200).describe("The artist name"), catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).optional(), catalog_confirmed: external_exports.boolean().optional().describe("Set true after the user confirms they manage the selected artist") }),
21792
22200
  readOnly: false,
21793
22201
  destructive: false,
21794
22202
  idempotent: false,
@@ -21825,6 +22233,7 @@ var OPERATIONS = [
21825
22233
  artist_id: artistId,
21826
22234
  name: external_exports.string().trim().min(1).max(200).optional().describe("The new name"),
21827
22235
  catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).nullable().optional().describe("Their catalog profile id (find_artist_in_catalog), or null to unlink"),
22236
+ catalog_confirmed: external_exports.boolean().optional().describe("Required and true when connecting a catalog profile"),
21828
22237
  spotify_artist_id: external_exports.string().max(200).nullable().optional().describe("Their Spotify artist id or open.spotify.com/artist link, or null"),
21829
22238
  links: external_exports.record(external_exports.enum(ARTIST_LINK_KINDS), external_exports.string().max(500).nullable()).optional().describe("Their pages by site: apple_music, spotify, youtube, instagram, tiktok, website (https); null removes one")
21830
22239
  }),
@@ -21840,7 +22249,7 @@ var OPERATIONS = [
21840
22249
  group: "artists",
21841
22250
  title: "Find an artist\u2019s released songs",
21842
22251
  summary: "Search the music catalog for an artist by name, to link their released songs",
21843
- description: "The public music catalog (Apple Music\u2019s; no account or login): each match with its id, name, song_count, newest_release and up to five covers of their releases (picture_url, covers), so the user can tell which profile is theirs. Search by the full name they release under (partial names often miss), or pass their Apple Music artist link. Then link_artist with the id the user confirms. Only for the user\u2019s own music: they must own or have the rights to the songs they bring in.",
22252
+ description: "The public music catalog (Apple Music\u2019s; no account or login): each match with its id, name, song_count, newest_release and up to five covers of their releases (picture_url, covers), so the user can tell which profile is theirs. Search by the full name they release under (exact matches only), or pass their Apple Music artist link. Then link_artist with the id the user confirms. Only for the user\u2019s own music: they must own or have the rights to the songs they bring in.",
21844
22253
  method: "GET",
21845
22254
  path: "/api/v1/catalog/artists",
21846
22255
  scopes: ["music:read", "videos:read"],
@@ -21857,17 +22266,17 @@ var OPERATIONS = [
21857
22266
  group: "artists",
21858
22267
  title: "Link an artist to their released songs",
21859
22268
  summary: "Set the artist\u2019s catalog profile, once: their released songs are then listed to import",
21860
- description: "catalog_artist_id from find_artist_in_catalog, confirmed by the user. Also sets their Apple Music link (links.apple_music) unless one is set. Linking again replaces it; unlink with update_artist catalog_artist_id null. Then list_released_songs and import_songs.",
22269
+ description: "Available to Artist and Label workspaces. Send catalog_artist_id from find_artist_in_catalog with catalog_confirmed=true after the user confirms they manage the selected profile. The artist names must match exactly. Also sets their Apple Music link (links.apple_music) unless one is set. Linking again replaces it; unlink with update_artist catalog_artist_id null. Then list_released_songs and import_songs.",
21861
22270
  method: "POST",
21862
22271
  path: "/api/v1/artists/{artist_id}/catalog",
21863
22272
  scopes: ["music:write", "videos:write"],
21864
- input: external_exports.object({ artist_id: artistId, catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).describe("Their catalog profile id (find_artist_in_catalog)") }),
22273
+ input: external_exports.object({ artist_id: artistId, catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).describe("Their catalog profile id (find_artist_in_catalog)"), catalog_confirmed: external_exports.boolean().optional().describe("Set true after the user confirms they manage the selected artist") }),
21865
22274
  readOnly: false,
21866
22275
  destructive: false,
21867
22276
  idempotent: true,
21868
22277
  cli: ["artists", "link"],
21869
22278
  mcp: "link_artist",
21870
- example: { artist_id: "artist_\u2026", catalog_artist_id: "6803333408" }
22279
+ example: { artist_id: "artist_\u2026", catalog_artist_id: "6803333408", catalog_confirmed: true }
21871
22280
  },
21872
22281
  {
21873
22282
  id: "artists.archive",
@@ -21923,6 +22332,254 @@ var OPERATIONS = [
21923
22332
  cli: ["artists", "image", "remove"],
21924
22333
  mcp: "remove_artist_image"
21925
22334
  },
22335
+ /* Artist pages and profiles (docs/features/08-artist-page.md) */
22336
+ {
22337
+ id: "artists.profiles.list",
22338
+ group: "artists",
22339
+ title: "List an artist\u2019s profiles",
22340
+ summary: "The artist\u2019s links on other services, with the automatic search\u2019s state",
22341
+ description: "Their profiles on music, social, video and ticket services (several per service allowed), in the order the page shows them. source: apple (from the Apple Music connection), discovered (found automatically; new ones have confirmed false until the user says they are theirs) or manual (added). state: shown or hidden. discovery.state: running, found, not_found (nothing found yet; looked again weekly), failed (try discover_artist_profiles again) or idle. Never trust a discovered profile the user has not confirmed: only confirmed ones (and the ones added by hand) are on the page. removed: the ones the user removed (searches never add them again); update_artist_profile state shown brings one back.",
22342
+ method: "GET",
22343
+ path: "/api/v1/artists/{artist_id}/profiles",
22344
+ scopes: ["music:read", "videos:read"],
22345
+ input: external_exports.object({ artist_id: artistId }),
22346
+ readOnly: true,
22347
+ destructive: false,
22348
+ idempotent: true,
22349
+ cli: ["artists", "profiles", "list"],
22350
+ mcp: "list_artist_profiles",
22351
+ output: { name: "ArtistProfiles", schema: external_exports.object({ profiles: external_exports.array(ArtistLinkSchema), removed: external_exports.array(ArtistLinkSchema), discovery: ArtistDiscoverySchema }) }
22352
+ },
22353
+ {
22354
+ id: "artists.profiles.confirm_all",
22355
+ group: "artists",
22356
+ title: "Add every found profile",
22357
+ summary: "Say every profile the automatic search found is the artist\u2019s",
22358
+ description: "Confirms every discovered profile still waiting (confirmed false, shown): they go on the page at once. Only when the user says all of them are theirs. Answers how many and the list.",
22359
+ method: "POST",
22360
+ path: "/api/v1/artists/{artist_id}/profiles/confirm",
22361
+ scopes: ["music:write", "videos:write"],
22362
+ input: external_exports.object({ artist_id: artistId }),
22363
+ readOnly: false,
22364
+ destructive: false,
22365
+ idempotent: true,
22366
+ cli: ["artists", "profiles", "confirm-all"],
22367
+ mcp: "confirm_all_artist_profiles"
22368
+ },
22369
+ {
22370
+ id: "artists.profiles.add",
22371
+ group: "artists",
22372
+ title: "Add a profile",
22373
+ summary: "Add one of the artist\u2019s links (any service; it is recognised from the address)",
22374
+ description: 'Any https link: the service is recognised from the address (platform overrides it; it must then be on that service\u2019s site). Added links are confirmed. title replaces the service name on the page (e.g. "Tour dates"). 409 when the same link is already there.',
22375
+ method: "POST",
22376
+ path: "/api/v1/artists/{artist_id}/profiles",
22377
+ scopes: ["music:write", "videos:write"],
22378
+ input: external_exports.object({ artist_id: artistId, url: external_exports.string().min(3).max(2e3).describe("The link (https)"), platform: external_exports.string().max(40).optional().describe("The service id when the address alone doesn\u2019t say it"), title: external_exports.string().max(80).optional().describe("A title shown instead of the service name") }),
22379
+ readOnly: false,
22380
+ destructive: false,
22381
+ idempotent: false,
22382
+ cli: ["artists", "profiles", "add"],
22383
+ mcp: "add_artist_profile",
22384
+ output: { name: "ArtistProfile", schema: ArtistLinkSchema },
22385
+ example: { artist_id: "artist_\u2026", url: "https://www.instagram.com/novalane" }
22386
+ },
22387
+ {
22388
+ id: "artists.profiles.reorder",
22389
+ group: "artists",
22390
+ title: "Order the profiles",
22391
+ summary: "Put the artist\u2019s profiles in a new order",
22392
+ description: "order: profile ids, first to last; profiles left out keep their place after them.",
22393
+ method: "PATCH",
22394
+ path: "/api/v1/artists/{artist_id}/profiles",
22395
+ scopes: ["music:write", "videos:write"],
22396
+ input: external_exports.object({ artist_id: artistId, order: external_exports.array(external_exports.string().max(60)).max(200).describe("Profile ids in order") }),
22397
+ readOnly: false,
22398
+ destructive: false,
22399
+ idempotent: true,
22400
+ cli: ["artists", "profiles", "order"],
22401
+ mcp: "reorder_artist_profiles"
22402
+ },
22403
+ {
22404
+ id: "artists.profiles.update",
22405
+ group: "artists",
22406
+ title: "Change a profile",
22407
+ summary: "Confirm, hide, show, retitle or correct one of the artist\u2019s profiles",
22408
+ description: "Send only what changes. confirmed true: the user says this found profile is theirs. state hidden keeps it off the page; state shown on a removed profile brings it back. A corrected url or a title marks it as the user\u2019s own: automatic searches leave it alone from then on.",
22409
+ method: "PATCH",
22410
+ path: "/api/v1/artists/{artist_id}/profiles/{profile_id}",
22411
+ scopes: ["music:write", "videos:write"],
22412
+ input: external_exports.object({ artist_id: artistId, profile_id: id2("profile"), url: external_exports.string().max(2e3).optional(), title: external_exports.string().max(80).nullable().optional(), state: external_exports.enum(["shown", "hidden"]).optional(), confirmed: external_exports.boolean().optional(), position: external_exports.number().int().min(0).optional() }),
22413
+ readOnly: false,
22414
+ destructive: false,
22415
+ idempotent: true,
22416
+ cli: ["artists", "profiles", "update"],
22417
+ mcp: "update_artist_profile",
22418
+ output: { name: "ArtistProfile", schema: ArtistLinkSchema }
22419
+ },
22420
+ {
22421
+ id: "artists.profiles.remove",
22422
+ group: "artists",
22423
+ title: "Remove a profile",
22424
+ summary: "Remove one of the artist\u2019s profiles for good",
22425
+ description: "It leaves the page, and automatic searches never add the same link again; it stays listed in removed, and update_artist_profile state shown brings it back. To keep it but not show it, update_artist_profile state hidden.",
22426
+ method: "DELETE",
22427
+ path: "/api/v1/artists/{artist_id}/profiles/{profile_id}",
22428
+ scopes: ["music:write", "videos:write"],
22429
+ input: external_exports.object({ artist_id: artistId, profile_id: id2("profile") }),
22430
+ readOnly: false,
22431
+ destructive: true,
22432
+ idempotent: true,
22433
+ cli: ["artists", "profiles", "remove"],
22434
+ mcp: "remove_artist_profile"
22435
+ },
22436
+ {
22437
+ id: "artists.profiles.discover",
22438
+ group: "artists",
22439
+ title: "Find the artist\u2019s profiles",
22440
+ summary: "Look for the artist\u2019s profiles on other services again, from their Apple Music connection",
22441
+ description: "Runs in the background (answers 202 with discovery.state running): a few seconds later list_artist_profiles shows what was found, new ones unconfirmed. Needs the Apple Music connection (link_artist) or a confirmed Spotify profile (409 not_connected otherwise). Profiles the user added, edited or removed are never changed. Connecting Apple Music starts one by itself.",
22442
+ method: "POST",
22443
+ path: "/api/v1/artists/{artist_id}/profiles/discover",
22444
+ scopes: ["music:write", "videos:write"],
22445
+ input: external_exports.object({ artist_id: artistId }),
22446
+ readOnly: false,
22447
+ destructive: false,
22448
+ idempotent: true,
22449
+ cli: ["artists", "profiles", "discover"],
22450
+ mcp: "discover_artist_profiles"
22451
+ },
22452
+ {
22453
+ id: "artists.page.get",
22454
+ group: "artists",
22455
+ title: "Get the artist page",
22456
+ summary: "The artist\u2019s page at kinetune.com/@handle: its address, status and draft",
22457
+ description: 'Available to Artist and Label workspaces. status: no_handle (claim one with claim_artist_handle), draft (never published), live, unpublished, in_review (a staff check before an artist with a large audience goes live) or offline (the workspace is a Creator one). has_changes: the draft differs from what fans see. draft: the page as edited (theme, look, name, photo, genres, place, social icons, sections). extras: the plan includes a year of stats, no "Made with Kinetune" and the artist\u2019s own tracking.',
22458
+ method: "GET",
22459
+ path: "/api/v1/artists/{artist_id}/page",
22460
+ scopes: ["music:read", "videos:read"],
22461
+ input: external_exports.object({ artist_id: artistId }),
22462
+ readOnly: true,
22463
+ destructive: false,
22464
+ idempotent: true,
22465
+ cli: ["artists", "page", "get"],
22466
+ mcp: "get_artist_page"
22467
+ },
22468
+ {
22469
+ id: "artists.page.update",
22470
+ group: "artists",
22471
+ title: "Edit the artist page",
22472
+ summary: "Change the page\u2019s draft: look, photo, genres, sections, featured music and videos",
22473
+ description: "Send only the fields that change; sections replaces the whole list (their order is the page\u2019s). Section types: out_now (release newest or pinned; plays video or cover; buttons: service ids), listen (platforms in order), videos (items: kinetune video_id of a finished video of this artist, or embed url on YouTube, Vimeo or TikTok), releases (all or picked; hidden release ids; count 4, 8 or 0 for all), links (profile ids from list_artist_profiles; big: one drawn big), about (text), looks. Fans see changes only after publish_artist_page. tracking (GA4, Meta Pixel, TikTok Pixel ids) needs a plan with the page extras (402).",
22474
+ method: "PATCH",
22475
+ path: "/api/v1/artists/{artist_id}/page",
22476
+ scopes: ["music:write", "videos:write"],
22477
+ input: PageDocPatchSchema.extend({ artist_id: artistId }),
22478
+ readOnly: false,
22479
+ destructive: false,
22480
+ idempotent: true,
22481
+ cli: ["artists", "page", "update"],
22482
+ mcp: "update_artist_page",
22483
+ example: { artist_id: "artist_\u2026", theme: "paper", genres: ["Alt-pop"], place: "Montr\xE9al" }
22484
+ },
22485
+ {
22486
+ id: "artists.page.preview",
22487
+ group: "artists",
22488
+ title: "Preview the artist page",
22489
+ summary: "The draft as fans will see it once published",
22490
+ description: "The same shape as the live page: the artist, the resolved look, social icons and every section with its releases, videos and links.",
22491
+ method: "GET",
22492
+ path: "/api/v1/artists/{artist_id}/page/preview",
22493
+ scopes: ["music:read", "videos:read"],
22494
+ input: external_exports.object({ artist_id: artistId }),
22495
+ readOnly: true,
22496
+ destructive: false,
22497
+ idempotent: true,
22498
+ cli: ["artists", "page", "preview"],
22499
+ mcp: "preview_artist_page"
22500
+ },
22501
+ {
22502
+ id: "artists.page.publish",
22503
+ group: "artists",
22504
+ title: "Publish the artist page",
22505
+ summary: "Put the draft live at kinetune.com/@handle",
22506
+ description: "Owners and admins. Needs an address (claim_artist_handle) and the Apple Music connection or at least one song. One live page per Apple Music artist across Kinetune (409 claimed). An artist with a large audience goes to in_review first. Ask the user before publishing.",
22507
+ method: "POST",
22508
+ path: "/api/v1/artists/{artist_id}/page/publish",
22509
+ scopes: ["music:write", "videos:write"],
22510
+ input: external_exports.object({ artist_id: artistId }),
22511
+ readOnly: false,
22512
+ destructive: false,
22513
+ idempotent: true,
22514
+ cli: ["artists", "page", "publish"],
22515
+ mcp: "publish_artist_page"
22516
+ },
22517
+ {
22518
+ id: "artists.page.unpublish",
22519
+ group: "artists",
22520
+ title: "Unpublish the artist page",
22521
+ summary: "Take the page offline (everything is kept)",
22522
+ description: "Owners and admins. The address, draft and stats are kept; publishing again brings it back.",
22523
+ method: "POST",
22524
+ path: "/api/v1/artists/{artist_id}/page/unpublish",
22525
+ scopes: ["music:write", "videos:write"],
22526
+ input: external_exports.object({ artist_id: artistId }),
22527
+ readOnly: false,
22528
+ destructive: true,
22529
+ idempotent: true,
22530
+ cli: ["artists", "page", "unpublish"],
22531
+ mcp: "unpublish_artist_page"
22532
+ },
22533
+ {
22534
+ id: "artists.page.stats",
22535
+ group: "artists",
22536
+ title: "Artist page stats",
22537
+ summary: "Views, visitors, clicks and click rate, by day, service, link and referrer",
22538
+ description: "days: the period, up to 30 without the page extras (max_days says the limit), a year with them. Visitors are counted once a day without cookies; nothing personal is kept.",
22539
+ method: "GET",
22540
+ path: "/api/v1/artists/{artist_id}/page/stats",
22541
+ scopes: ["music:read", "videos:read"],
22542
+ input: external_exports.object({ artist_id: artistId, days: external_exports.number().int().min(1).max(365).optional().describe("The period in days (default 30)") }),
22543
+ readOnly: true,
22544
+ destructive: false,
22545
+ idempotent: true,
22546
+ cli: ["artists", "page", "stats"],
22547
+ mcp: "get_artist_page_stats"
22548
+ },
22549
+ {
22550
+ id: "artists.handle.claim",
22551
+ group: "artists",
22552
+ title: "Claim the page address",
22553
+ summary: "Claim or change the artist page\u2019s address (kinetune.com/@handle)",
22554
+ description: 'Owners and admins. 3 to 30 lowercase letters, numbers, "." and "_"; case doesn\u2019t matter. check_handle first. When the address is the caller\u2019s own username (problem yours), take_from_profile true moves it here and their creator profile gets a new username. A changed address forwards for 90 days; it can change 3 times in 30 days.',
22555
+ method: "POST",
22556
+ path: "/api/v1/artists/{artist_id}/handle",
22557
+ scopes: ["music:write", "videos:write"],
22558
+ input: external_exports.object({ artist_id: artistId, handle: external_exports.string().min(3).max(31).describe("The address, without kinetune.com/@"), take_from_profile: external_exports.boolean().optional().describe("Move your own username here") }),
22559
+ readOnly: false,
22560
+ destructive: false,
22561
+ idempotent: true,
22562
+ cli: ["artists", "page", "claim"],
22563
+ mcp: "claim_artist_handle",
22564
+ example: { artist_id: "artist_\u2026", handle: "novalane" }
22565
+ },
22566
+ {
22567
+ id: "handles.check",
22568
+ group: "artists",
22569
+ title: "Check a page address",
22570
+ summary: "Whether kinetune.com/@handle is free, with suggestions",
22571
+ description: "available, or problem: invalid, reserved, taken, or yours (it is your own username, which can move to the page: claim_artist_handle take_from_profile). artist_id makes the artist\u2019s own current address count as free and suggestions come from their name.",
22572
+ method: "GET",
22573
+ path: "/api/v1/handles/{handle}",
22574
+ scopes: ["music:read", "videos:read"],
22575
+ input: external_exports.object({ handle: external_exports.string().min(1).max(60).describe("The address to check"), artist_id: artistId.optional() }),
22576
+ readOnly: true,
22577
+ destructive: false,
22578
+ idempotent: true,
22579
+ cli: ["artists", "page", "check"],
22580
+ mcp: "check_handle",
22581
+ example: { handle: "novalane" }
22582
+ },
21926
22583
  /* The artist kit */
21927
22584
  {
21928
22585
  id: "characters.list",
@@ -22174,7 +22831,7 @@ var OPERATIONS = [
22174
22831
  method: "GET",
22175
22832
  path: "/api/v1/kit/{kit_id}",
22176
22833
  scopes: ["music:read", "videos:read"],
22177
- input: external_exports.object({ kit_id: id("kit piece") }),
22834
+ input: external_exports.object({ kit_id: id2("kit piece") }),
22178
22835
  readOnly: true,
22179
22836
  destructive: false,
22180
22837
  idempotent: true,
@@ -22186,19 +22843,19 @@ var OPERATIONS = [
22186
22843
  group: "artists",
22187
22844
  title: "Change a kit piece",
22188
22845
  summary: "Rename it, change its handle or description, crop it again, or share it",
22189
- description: "crop is cut again from the image the piece was added from. kept true keeps another angle of a place that is pending (a brief can mention it then). shared: offer it (a character too) to every other artist's songs (true), or keep it to its own artist's (false); it stays in its own artist's kit either way. ai_made, on a character only: an AI-made person who looks like no real person (true), or a real one (false); a person who passed a face check is real (withdraw it first). Plans already made keep the pieces as they were planned.",
22846
+ description: "crop is cut again from the image the piece was added from. kept true keeps a pending piece: another angle of a place, or a picture drawn for a shot list (a brief can mention it then). shared: offer it (a character too) to every other artist's songs (true), or keep it to its own artist's (false); it stays in its own artist's kit either way. ai_made, on a character only: an AI-made person who looks like no real person (true), or a real one (false); a person who passed a face check is real (withdraw it first). Plans already made keep the pieces as they were planned.",
22190
22847
  method: "PATCH",
22191
22848
  path: "/api/v1/kit/{kit_id}",
22192
22849
  scopes: ["music:write", "videos:write"],
22193
22850
  input: external_exports.object({
22194
- kit_id: id("kit piece"),
22851
+ kit_id: id2("kit piece"),
22195
22852
  name: external_exports.string().trim().min(1).max(60).optional(),
22196
22853
  handle: KitHandleSchema.optional(),
22197
22854
  description: external_exports.string().trim().max(300).nullable().optional(),
22198
22855
  crop: CropRectSchema.optional().describe("The new rectangle, in fractions of the source image"),
22199
22856
  ai_made: external_exports.boolean().optional().describe("A character only: an AI-made person (true) or a real one (false)"),
22200
22857
  shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (true), or only its own artist\u2019s (false)"),
22201
- kept: external_exports.literal(true).optional().describe("Another angle of a place that is pending (draw_place_angles): keep it in the kit. To leave it out, delete it")
22858
+ kept: external_exports.literal(true).optional().describe("A pending piece (another angle of a place, draw_place_angles, or a shot list's picture, draw_music_video_pictures): keep it in the kit. To leave it out, delete it")
22202
22859
  }),
22203
22860
  readOnly: false,
22204
22861
  destructive: false,
@@ -22215,7 +22872,7 @@ var OPERATIONS = [
22215
22872
  method: "DELETE",
22216
22873
  path: "/api/v1/kit/{kit_id}",
22217
22874
  scopes: ["music:write", "videos:write"],
22218
- input: external_exports.object({ kit_id: id("kit piece") }),
22875
+ input: external_exports.object({ kit_id: id2("kit piece") }),
22219
22876
  readOnly: false,
22220
22877
  destructive: true,
22221
22878
  idempotent: true,
@@ -22226,14 +22883,14 @@ var OPERATIONS = [
22226
22883
  id: "kit.angles",
22227
22884
  group: "artists",
22228
22885
  title: "Draw other angles of a place",
22229
- summary: "The same set from three-quarter, side or low, each a new place (spends credits)",
22230
- description: `A place only. Without confirm: the price (credits per angle and the total), nothing drawn; tell the user, then send confirm true after their go (and credits: the total shown; a different price answers 409 with the current quote). Each angle is one picture of the same place, its layout, props, colours and light, from another side, empty of people, drawn in about a minute; it comes back as a new place in the same artist's kit (owned and shared like the place), named "<place> \xB7 side", with angle_of (the first place of its set) and angle. A new angle is pending: the user keeps it (update_kit_piece with kept true) or leaves it out (delete_kit_piece); a brief can mention it once kept. A brief that mentions places of one set gets them as one set: the director cuts between the angles. Credits are held, then charged for each picture drawn (failed lists any that couldn't be, not charged). ${NEEDS_PLAN}`,
22886
+ summary: "The same set from the angles you pick (wide, reverse, low, overhead\u2026), each a new place (spends credits)",
22887
+ description: `A place only. Pick one or more angles from a photographer's range: ${KIT_ANGLES.map((a) => `${a} (${KIT_ANGLE_LINES[a].toLowerCase()})`).join(", ")}. Without confirm: the price (credits per angle and the total), nothing drawn; tell the user, then send confirm true after their go (and credits: the total shown; a different price answers 409 with the current quote). Each angle is one picture of the same place, its layout, props, colours and light, from a camera position worked out for this place (a new composition, not the photo nudged), empty of people, drawn in about a minute; it comes back as a new place in the same artist's kit (owned and shared like the place), named "<place> \xB7 side", with angle_of (the first place of its set) and angle. A new angle is pending: the user keeps it (update_kit_piece with kept true) or leaves it out (delete_kit_piece); a brief can mention it once kept. A brief that mentions places of one set gets them as one set: the director cuts between the angles. Credits are held, then charged for each picture drawn (failed lists any that couldn't be, not charged). ${NEEDS_PLAN}`,
22231
22888
  method: "POST",
22232
22889
  path: "/api/v1/kit/{kit_id}/angles",
22233
22890
  scopes: ["videos:write"],
22234
22891
  input: external_exports.object({
22235
- kit_id: id("place (kit piece)"),
22236
- angles: external_exports.array(external_exports.enum(KIT_ANGLES)).min(1).max(3).optional().describe("Which sides: three-quarter, side, low (default: all three)"),
22892
+ kit_id: id2("place (kit piece)"),
22893
+ angles: external_exports.array(external_exports.enum(KIT_ANGLES)).min(1).max(KIT_ANGLES.length).optional().describe(`Which angles, one or more of ${KIT_ANGLES.join(", ")} (default: three-quarter, side and low). New values may be added`),
22237
22894
  confirm: external_exports.boolean().optional().describe("true: draw them (spends credits); left out: only the price"),
22238
22895
  credits: external_exports.number().int().positive().optional().describe("With confirm: the total price shown, so a changed price is refused")
22239
22896
  }),
@@ -22242,7 +22899,7 @@ var OPERATIONS = [
22242
22899
  idempotent: false,
22243
22900
  cli: ["kit", "angles"],
22244
22901
  mcp: "draw_place_angles",
22245
- example: { angles: ["three-quarter", "side", "low"], confirm: true, credits: 54 }
22902
+ example: { angles: ["reverse", "low", "overhead"], confirm: true, credits: 54 }
22246
22903
  },
22247
22904
  /* Songs */
22248
22905
  {
@@ -22300,7 +22957,7 @@ var OPERATIONS = [
22300
22957
  group: "songs",
22301
22958
  title: "List an artist\u2019s released songs",
22302
22959
  summary: "The linked artist\u2019s songs in the music catalog, each saying whether it is already in Kinetune",
22303
- description: "Newest release first; an EP or album\u2019s tracks in order. Each has id (the track_id to import), title, release (name, kind single, ep or album, date; a date of null is announced, not out yet), track_number, duration_seconds, cover_url (up to 3000 px), song_id when it is already in the workspace (uploaded or imported) and import while it is being imported (status, error). q narrows them to a title or release. The artist must be linked first (409 artist_not_linked: find_artist_in_catalog, then link_artist).",
22960
+ description: "Newest release first; an EP or album\u2019s tracks in order. other_version marks a remix, live take or similar, or a song on someone else\u2019s release (a compilation, a soundtrack): show those after the artist\u2019s own. Slices of DJ mixes are left out (they have no audio of their own). Each has id (the track_id to import), title, release (name, kind single, ep or album, date; a date of null is announced, not out yet), track_number, duration_seconds, cover_url (up to 3000 px), song_id when it is already in the workspace, possible_duplicates for close title and duration matches, and import while it is being imported (status, error). q narrows them to a title or release. The artist must be linked first (409 artist_not_linked: find_artist_in_catalog, then link_artist).",
22304
22961
  method: "GET",
22305
22962
  path: "/api/v1/artists/{artist_id}/releases",
22306
22963
  scopes: ["music:read", "videos:read"],
@@ -22316,11 +22973,15 @@ var OPERATIONS = [
22316
22973
  group: "songs",
22317
22974
  title: "Import released songs",
22318
22975
  summary: "Bring in released songs of a linked artist by their track ids, without uploading",
22319
- description: `Each track (list_released_songs: id) becomes an import: Kinetune fetches the song\u2019s audio (about half a minute each), then the song is made with the release\u2019s title and cover and analyzed like an upload; poll get_song_import or list_song_imports (status queued, fetching, done with song_id, or failed with why). A song we can\u2019t fetch fails, and the user adds the file to it instead (add_song_import_audio). Songs already in the workspace or being imported are skipped (skipped: track_id and reason). Up to 50 at once, and a daily number per workspace (429 daily_limit). Only the user\u2019s own songs: confirm they own or have the rights to them. ${NEEDS_PLAN} Without a plan, the user\u2019s free song covers one import.`,
22976
+ description: `Each track (list_released_songs: id) becomes an import: Kinetune fetches the song\u2019s audio (about half a minute each), then the song is made with the release\u2019s title and cover and analyzed like an upload; poll get_song_import or list_song_imports (status queued, fetching, done with song_id, or failed with why). A song we can\u2019t fetch fails, and the user adds the file to it instead (add_song_import_audio). Songs already in the workspace or being imported are skipped (skipped: track_id and reason). Up to 50 at once, and a daily number per workspace (429 daily_limit). Only the user\u2019s own songs: confirm they own or have the rights to them. ${NEEDS_PLAN} Without a plan, the user\u2019s free song of the month covers one import.`,
22320
22977
  method: "POST",
22321
22978
  path: "/api/v1/song-imports",
22322
22979
  scopes: ["music:write", "videos:write"],
22323
- input: external_exports.object({ artist_id: artistId, track_ids: external_exports.array(external_exports.string().regex(/^\d{1,15}$/)).min(1).max(50).describe("The released songs\u2019 ids (list_released_songs)") }),
22980
+ input: external_exports.object({
22981
+ artist_id: artistId,
22982
+ track_ids: external_exports.array(external_exports.string().regex(/^\d{1,15}$/)).min(1).max(50).describe("The released songs\u2019 ids (list_released_songs)"),
22983
+ distinct_track_ids: external_exports.array(external_exports.string()).max(50).optional().describe("Selected releases the user confirmed are distinct from possible duplicates")
22984
+ }),
22324
22985
  readOnly: false,
22325
22986
  destructive: false,
22326
22987
  idempotent: false,
@@ -22398,7 +23059,7 @@ var OPERATIONS = [
22398
23059
  group: "songs",
22399
23060
  title: "Get a song",
22400
23061
  summary: "One song and its analysis status",
22401
- description: `${COVER_SIZES} analysis.lyrics.status says whose words its videos show: "transcribed" (as heard), "checked" (your lyrics, timed from the audio; corrected, added and kept count what checking did), "waiting" (your lyrics, checked once the analysis finishes) or "mismatch" (your lyrics didn\u2019t match what\u2019s sung, so the transcription is used). brief: what the song is about as every director reads it (theme, tone, story, mood_arc by section, setting), null before the analysis; status writing while it is written (a song analysed without one has it started by this call: get it again in half a minute), edited true once the user corrected it (edit_song_brief).`,
23062
+ description: `${COVER_SIZES} analysis.lyrics.status says whose words its videos show: "transcribed" (as heard), "checked" (your lyrics, timed from the audio; corrected, added and kept count what checking did; edited_at once words were fixed by hand with set_song_words), "waiting" (your lyrics, checked once the analysis finishes) or "mismatch" (your lyrics didn\u2019t match what\u2019s sung, so the transcription is used). brief: what the song is about as every director reads it (theme, tone, story, mood_arc by section, setting), null before the analysis; status writing while it is written (a song analysed without one has it started by this call: get it again in half a minute), edited true once the user corrected it (edit_song_brief).`,
22402
23063
  method: "GET",
22403
23064
  path: "/api/v1/songs/{song_id}",
22404
23065
  scopes: ["music:read", "videos:read"],
@@ -22656,6 +23317,64 @@ var OPERATIONS = [
22656
23317
  cli: ["songs", "clear-lyrics"],
22657
23318
  mcp: "clear_song_lyrics"
22658
23319
  },
23320
+ {
23321
+ id: "songs.set_words",
23322
+ group: "songs",
23323
+ title: "Set a song\u2019s timed words",
23324
+ summary: "Fix words and their timing by hand: text, start, end and line breaks",
23325
+ description: "The song\u2019s words as the videos show them, edited by hand: get them from get_song_analysis (words), change what is wrong (a word\u2019s text, where it starts or ends, line: true on the first word of each line, a word removed or added) and send them all back. Sorted by start, never overlapping, inside the song, up to 5000 words of 1 to 60 characters. Saved as they are (nothing is timed again): analysis.lyrics.edited_at says when, and set_song_lyrics or clear_song_lyrics later times every word from the audio again. A video can censor swear words on its own (display.censor). Videos made from then on use them; videos already made stay as they are. 409 while the song is being analysed.",
23326
+ method: "POST",
23327
+ path: "/api/v1/songs/{song_id}/words",
23328
+ scopes: ["music:write", "videos:write"],
23329
+ input: external_exports.object({ song_id: songId, words: external_exports.array(external_exports.object({
23330
+ text: external_exports.string().min(1).max(60),
23331
+ start: external_exports.number().min(0).describe("Seconds into the song"),
23332
+ end: external_exports.number().describe("Seconds into the song, after start"),
23333
+ line: external_exports.boolean().optional().describe("true on the first word of a line"),
23334
+ backing: external_exports.boolean().optional().describe("Sung by other voices, not the lead (kept from the analysis)")
23335
+ }).strict()).min(1).max(5e3).describe("Every word of the song, in order") }),
23336
+ readOnly: false,
23337
+ destructive: true,
23338
+ idempotent: true,
23339
+ cli: ["songs", "set-words"],
23340
+ mcp: "set_song_words"
23341
+ },
23342
+ {
23343
+ id: "songs.transcription_price",
23344
+ group: "songs",
23345
+ title: "Price of transcribing a song again",
23346
+ summary: "What listening to a song again costs, in credits",
23347
+ description: "credits: what transcribe_song costs now for this song (it follows the song\u2019s length and the transcription model in use).",
23348
+ method: "GET",
23349
+ path: "/api/v1/songs/{song_id}/transcription",
23350
+ scopes: ["music:read", "videos:read"],
23351
+ input: external_exports.object({ song_id: songId }),
23352
+ readOnly: true,
23353
+ destructive: false,
23354
+ idempotent: true,
23355
+ cli: ["songs", "transcription-price"],
23356
+ mcp: "get_transcription_price"
23357
+ },
23358
+ {
23359
+ id: "songs.transcribe",
23360
+ group: "songs",
23361
+ title: "Transcribe a song again",
23362
+ summary: "Listen to a song again with the best transcription model, for a few credits",
23363
+ description: 'Costs credits: tell the user the price (get_transcription_price) and send it as credits only after their go. The song is listened to again with Kinetune\u2019s current transcription model, in language when given (the language it is sung in, e.g. "fr"; use it when the words came out in the wrong language). Their own lyrics (set_song_lyrics) stay and are timed to the new hearing; without them, the new words are the song\u2019s. Timing fixed by hand (set_song_words) is replaced. Takes up to a minute or two. 409 with the new price when credits differ, 402 without enough credits, 422 when no words were heard (nothing charged), 429 when it was just done.',
23364
+ method: "POST",
23365
+ path: "/api/v1/songs/{song_id}/transcription",
23366
+ scopes: ["music:write", "videos:write"],
23367
+ input: external_exports.object({
23368
+ song_id: songId,
23369
+ credits: external_exports.number().int().min(0).optional().describe("The price you were shown (get_transcription_price)"),
23370
+ language: external_exports.string().max(20).nullable().optional().describe('The language it is sung in, e.g. "fr"; omitted: the one the analysis found')
23371
+ }),
23372
+ readOnly: false,
23373
+ destructive: true,
23374
+ idempotent: false,
23375
+ cli: ["songs", "transcribe"],
23376
+ mcp: "transcribe_song"
23377
+ },
22659
23378
  {
22660
23379
  id: "songs.edit_brief",
22661
23380
  group: "songs",
@@ -22707,7 +23426,7 @@ var OPERATIONS = [
22707
23426
  group: "looks",
22708
23427
  title: "List Looks",
22709
23428
  summary: "Browse Official, Community and your own Looks",
22710
- description: `A Look is a complete, reusable lyric-video design. Pass its id as {"mode":"existing","id":\u2026} to reuse it exactly. A Look that shows an artist (featured_artist) is private and only serves that artist's songs: choosing for a song, pass its artist_id to leave out Looks that show another artist.`,
23429
+ description: "A Look is a complete, reusable lyric-video design: colours, type, lyric style, layout, visual and its picture. Pass its id as look.id, and change any part in the order. A Look that shows an artist (featured_artist) is private and only serves that artist's songs: choosing for a song, pass its artist_id to leave out Looks that show another artist.",
22711
23430
  method: "GET",
22712
23431
  path: "/api/v1/looks",
22713
23432
  scopes: ["library:read", "videos:read"],
@@ -22732,7 +23451,7 @@ var OPERATIONS = [
22732
23451
  group: "looks",
22733
23452
  title: "Get a Look",
22734
23453
  summary: "One Look with its design and preview images",
22735
- description: "backgrounds.portrait and backgrounds.landscape are the background plates the video uses; backgrounds.previews has 480 px wide copies of them for thumbnails (null for a Look without a photo or video background).",
23454
+ description: "spec.background is the Look's picture: clips (a Look made before clips plays its own photo or loop as clips: sources.looks, get_look_clips) or the visualizer. backgrounds.portrait and backgrounds.landscape are the pictures such a Look was first made with, kept for its earlier videos; backgrounds.previews has 480 px wide copies of them for thumbnails (null for a Look without one).",
22736
23455
  method: "GET",
22737
23456
  path: "/api/v1/looks/{look_id}",
22738
23457
  scopes: ["library:read", "videos:read"],
@@ -22743,6 +23462,22 @@ var OPERATIONS = [
22743
23462
  cli: ["looks", "get"],
22744
23463
  mcp: "get_look"
22745
23464
  },
23465
+ {
23466
+ id: "looks.clips",
23467
+ group: "looks",
23468
+ title: "Get a Look's clips",
23469
+ summary: "The clips a clips Look cuts its picture from, to preview it",
23470
+ description: "For a Look whose picture is clips: its stock feelings' clips (and its folders' for its own workspace; someone else's Look never shows its owner's footage), each with its length, shape, energy, a light preview copy and what it shows: subject (null until it is analysed: each clip, once and for everyone, the first time analyze_clips asks for it or a video is made with it: faces, each box as fractions of the poster x, y, w, h, which text keeps clear; aspect; and mask, the subject's silhouette, when it has a matte), subject_clear (whether it has a clear subject, a person or a solid figure, words can go behind; null until analysed), matte_url (null, or an MP4 holding the clip and its subject's mask side by side, or one over the other for a wide clip: made for a clear subject once words go behind it, then the words go behind the subject) and still_url and depth_url (a photo clip's picture and its depth map, white is near: it moves in 3D; null until analysed). Plan a preview cut from them with @kinetune/composition planEdit, as the editor does. Empty for a Look with another kind of picture.",
23471
+ method: "GET",
23472
+ path: "/api/v1/looks/{look_id}/clips",
23473
+ scopes: ["library:read", "videos:read"],
23474
+ input: external_exports.object({ look_id: lookId }),
23475
+ readOnly: true,
23476
+ destructive: false,
23477
+ idempotent: true,
23478
+ cli: ["looks", "clips"],
23479
+ mcp: "get_look_clips"
23480
+ },
22746
23481
  {
22747
23482
  id: "looks.rename",
22748
23483
  group: "looks",
@@ -22792,67 +23527,486 @@ var OPERATIONS = [
22792
23527
  mcp: "set_look_visibility"
22793
23528
  },
22794
23529
  {
22795
- id: "backgrounds.upload",
23530
+ id: "looks.save",
22796
23531
  group: "looks",
22797
- title: "Upload a background",
22798
- summary: "Upload your own photo or video, or use one of your music videos, to design a New Look around",
22799
- description: `Photo: JPEG, PNG or WebP, at least 720 px on the short side, up to 25 MB. Video: MP4, MOV or WebM, 4\u2013180 seconds, at least 720 px on the short side, up to 300 MB; it becomes a seamless loop of up to 20 s. Only with the rights to use it. Or video_id: one of this workspace's delivered music videos (list_videos with type music-video and the song's song_id), copied in as a video background (no rights_confirmed needed); the answer's music_video names its song and section (trim). preview_url is a still (a photo, or a video's poster) and video_url the video itself (null for a photo), both signed for about a week. A lyric video with it must be of that song: it takes that section (send that trim, or leave trim out), and the music video plays once from its first frame in step with the lyrics, with its own sound. Then quote a lyric video with look {"mode":"new","category":"\u2026","background":{"source":"upload-photo" or "upload-video","upload_id":"\u2026"},"visibility":"private"}. ${NEEDS_PLAN}`,
23532
+ title: "Save as Look",
23533
+ summary: "Save a Look with your changes as your own Look",
23534
+ description: "A private Look made from a saved one (from_id) with the changes you send: lyric_style, behind, visual and background (as in create_lyric_video's look). Keeping the picture of the Look it was made from copies it. Then pass its id as look.id.",
22800
23535
  method: "POST",
22801
- path: "/api/v1/backgrounds",
23536
+ path: "/api/v1/looks",
22802
23537
  scopes: ["library:write", "videos:write"],
22803
23538
  input: external_exports.object({
22804
- file_url: httpsUrl("the photo or video").optional(),
22805
- video_id: external_exports.string().uuid().optional().describe("One of your delivered music videos, instead of a file: it then plays in step with its song\u2019s lyrics, with its own sound"),
22806
- rights_confirmed: external_exports.literal(true).optional().describe("You have the rights to use this photo or video (required with a file or file_url)")
23539
+ name: external_exports.string().trim().min(2).max(60).describe("Its name"),
23540
+ from_id: lookId.describe("The Look it starts from"),
23541
+ lyric_style: lyricShape.look.unwrap().shape.lyric_style,
23542
+ behind: lyricShape.look.unwrap().shape.behind,
23543
+ visual: lyricShape.look.unwrap().shape.visual,
23544
+ background: lyricShape.look.unwrap().shape.background
22807
23545
  }),
22808
- files: [{ field: "file", urlField: "file_url", accept: ["image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime", "video/webm"], description: "Your photo or video" }],
22809
23546
  readOnly: false,
22810
23547
  destructive: false,
22811
23548
  idempotent: false,
22812
- cli: ["backgrounds", "upload"],
22813
- mcp: "upload_background"
23549
+ cli: ["looks", "save"],
23550
+ mcp: "save_look"
22814
23551
  },
23552
+ /* Clips */
22815
23553
  {
22816
- id: "stock.search",
23554
+ id: "songs.draft",
22817
23555
  group: "looks",
22818
- title: "Search stock media",
22819
- summary: "Find stock photos or clips to use as a background",
22820
- description: `24 results a page. Pass an item's id as look.background.stock_id (source "stock-photo" or "stock-video") or as a Canvas's stock_id to use it instead of the director's pick, and credit the photographer (credit) wherever you show it. orientation: portrait for 9:16 and 1:1, landscape when 16:9 is among the formats (a Canvas is portrait). Clips too short for the loop are left out: pass seconds for a Canvas. thumbnail_url is a 480 px still, preview_url a 1280 px one (the photo, or the clip's poster), preview_video_url a small MP4 of a clip.`,
23556
+ title: "Get a song's draft lyric video",
23557
+ summary: "The Look and clips picture Kinetune picks for a song, at once and without AI",
23558
+ description: "look_id (an Official Look), background (a clips picture: moods, density, transitions, grade, shape, fill, speed) and edit.seed, picked by rules from the song (what it is about, its tempo and loudness). A create_lyric_video without look.id makes exactly this. With type canvas: the song's draft Canvas instead (picture: its clips sources and grade, loop drift, seconds 8, edit.seed), what a create_canvas with a clips picture and no sources makes. Change anything before creating.",
22821
23559
  method: "GET",
22822
- path: "/api/v1/stock",
22823
- scopes: ["videos:read", "videos:write", "library:read"],
22824
- input: external_exports.object({
22825
- kind: external_exports.enum(["photo", "video"]).describe("photo for stock-photo, video for stock-video"),
22826
- q: external_exports.string().trim().min(1).max(100).describe('Search words, e.g. "foggy pine forest"'),
22827
- orientation: external_exports.enum(["portrait", "landscape"]).optional().describe("Default portrait"),
22828
- page: external_exports.number().int().min(1).max(50).optional().describe("Default 1; next_page says whether there are more"),
22829
- seconds: external_exports.number().int().min(5).max(8).optional().describe("Clips for a Canvas of this length (5\u20138); omit for a Look's loop")
22830
- }),
23560
+ path: "/api/v1/songs/{song_id}/draft",
23561
+ scopes: ["videos:read", "videos:write"],
23562
+ input: external_exports.object({ song_id: songId, type: external_exports.enum(["lyric-video", "canvas"]).optional().describe("lyric-video (default) or canvas") }),
22831
23563
  readOnly: true,
22832
23564
  destructive: false,
22833
23565
  idempotent: true,
22834
- cli: ["stock", "search"],
22835
- mcp: "search_stock",
22836
- example: { kind: "photo", q: "foggy pine forest", orientation: "portrait" }
23566
+ cli: ["songs", "draft"],
23567
+ mcp: "get_song_draft"
22837
23568
  },
22838
- /* Quotes and videos */
22839
23569
  {
22840
- id: "quotes.lyric_video",
22841
- group: "videos",
22842
- title: "Quote a lyric video",
22843
- summary: "The exact credits for a lyric video, before anything is charged",
22844
- description: `Returns quote_id, credits (total), credits_per_video and a breakdown, and free: true when, without a plan, it is the free song's free video (create_video then holds no credits). ${QUOTE_FIRST} A quote is valid for 30 minutes.`,
22845
- method: "POST",
22846
- path: "/api/v1/quotes",
22847
- scopes: ["videos:write", "videos:read"],
22848
- input: lyricInput,
22849
- fixed: { type: "lyric-video" },
23570
+ id: "clips.list",
23571
+ group: "looks",
23572
+ title: "List clips",
23573
+ summary: "The clips of library moods and your folders, to plan a clips video's cut",
23574
+ description: "The ready clips (1\u20135 s each) of as many sources together as your plan allows (get_account limits.clip_sources; more answers 402 plan_required): library moods (get_options clip_moods), your folders (list_clip_folders) and Looks' own pictures (looks: a Look made before clips keeps its picture, its photo or loop, as clips of its own, usable wherever the Look is). Each has id, source, cut_from (the source video it was cut from: pieces sharing one look alike), duration_seconds, width, height, energy (how much it moves, 0\u20131), brightness, preview_url (a light MP4), poster_url, subject (null until it is analysed: each clip, once and for everyone, the first time analyze_clips asks for it or a video is made with it: faces, each box as fractions of the poster x, y, w, h, which text keeps clear; aspect; and mask, the subject's silhouette, when it has a matte), subject_clear (whether it has a clear subject, a person or a solid figure, words can go behind; null until analysed), matte_url (null, or an MP4 holding the clip and its subject's mask side by side, or one over the other for a wide clip: made for a clear subject once words go behind it, then the words go behind the subject) and still_url and depth_url (a photo clip's picture and its depth map, white is near: it moves in 3D; null until analysed), loop_score (how well it loops as a Canvas drift, 0\u2013100; 60 and up loops well) and strip_url (ten frames along it, side by side); both null until measured, shortly after import. Send edit.seed and Kinetune draws the clips (with words behind the subject, clips with a clear subject under the sung lines), or plan the cut yourself and send edit.clips.",
23575
+ method: "GET",
23576
+ path: "/api/v1/clips",
23577
+ scopes: ["videos:read", "videos:write", "library:read"],
23578
+ input: external_exports.object({
23579
+ moods: external_exports.string().trim().max(260).optional().describe('Mood ids, comma-separated, e.g. "city,golden"'),
23580
+ folders: external_exports.string().trim().max(300).optional().describe("Folder ids, comma-separated"),
23581
+ looks: external_exports.string().trim().max(600).optional().describe("Look ids whose own picture plays as clips (a Look made before clips: its background.sources.looks), comma-separated")
23582
+ }),
22850
23583
  readOnly: true,
22851
23584
  destructive: false,
22852
23585
  idempotent: true,
22853
- cli: ["quote", "lyric-video"],
23586
+ cli: ["clips", "list"],
23587
+ mcp: "list_clips",
23588
+ example: { moods: "city" }
23589
+ },
23590
+ {
23591
+ id: "clip_moods.browse",
23592
+ group: "looks",
23593
+ title: "Browse a Stock collection",
23594
+ summary: "The clips inside one Stock collection, a page at a time",
23595
+ description: "Stock is the clip library Kinetune keeps for everyone, free: collections in two groups, Feelings (moods, mostly tall, with Looks: every Official and Community Look's own picture) and Places & textures (real footage). get_options clip_moods lists them. This answers one collection (id, name, group, tall and wide: how many of each shape) and a page of its clips, each with id, width, height, duration_seconds, energy (how much it moves, 0\u20131), brightness, color (its main colour, hex), poster_url, preview_url (a light MP4), credit (who filmed it, where a stock site asks for it), loop_score (how well it loops as a Canvas drift, 0\u2013100, null until measured) and strip_url (frames along it, side by side). shape keeps tall or wide clips only; energy keeps the collection's calmest, middle or liveliest third; sort is best (liveliest first), newest or length. total is how many match, next_offset the next page's offset (null on the last). Pick clips for a video by naming the collection in look.background.sources.moods, or plan the cut with their ids (edit.clips). No credits.",
23596
+ method: "GET",
23597
+ path: "/api/v1/clip-moods/{mood_id}",
23598
+ scopes: ["videos:read", "videos:write", "library:read"],
23599
+ input: external_exports.object({
23600
+ mood_id: ClipMoodIdSchema.describe('A Stock collection id (get_options clip_moods), e.g. "city"'),
23601
+ shape: external_exports.enum(CLIP_BROWSE_SHAPES.map((s) => s.value)).optional().describe("both (default), tall or wide"),
23602
+ energy: external_exports.enum(VISUAL_ENERGIES.map((e) => e.value)).optional().describe("all (default), calm, medium or bold: the collection's own thirds"),
23603
+ sort: external_exports.enum(CLIP_SORTS.map((s) => s.value)).optional().describe("best (default, liveliest first), newest or length (longest first)"),
23604
+ offset: external_exports.number().int().min(0).max(1e5).optional().describe("Where the page starts (next_offset of the last page); default 0"),
23605
+ limit: external_exports.number().int().min(1).max(120).optional().describe("Clips a page, 1\u2013120; default 60")
23606
+ }),
23607
+ readOnly: true,
23608
+ destructive: false,
23609
+ idempotent: true,
23610
+ cli: ["clips", "browse"],
23611
+ mcp: "browse_clip_mood",
23612
+ example: { mood_id: "city", shape: "tall", sort: "best" }
23613
+ },
23614
+ {
23615
+ id: "clips.rebound",
23616
+ group: "looks",
23617
+ title: "A clip as a Rebound",
23618
+ summary: "A clip played forward, then backward: the file a Canvas Rebound loops",
23619
+ description: "9:16, from at for half seconds at speed, then the same backward. Made once and kept beside the clip; the render uses the same file, so a Canvas with loop rebound plays exactly what this shows. Answers {url}, signed for a day. No AI and no credits.",
23620
+ method: "GET",
23621
+ path: "/api/v1/clips/{clip_id}/rebound",
23622
+ scopes: ["videos:read", "videos:write"],
23623
+ input: external_exports.object({
23624
+ clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)"),
23625
+ at: external_exports.number().min(0).max(600).optional().describe("Where in the clip it starts, in seconds; default 0"),
23626
+ half: external_exports.number().min(1.5).max(4).describe("How long it plays forward, 1.5\u20134 seconds (the loop is twice that)"),
23627
+ speed: external_exports.number().min(0.25).max(2).optional().describe("0.25\u20132; default 1"),
23628
+ steady: external_exports.boolean().optional().describe("true: from the clip's stabilised copy (a Canvas with steady on)")
23629
+ }),
23630
+ readOnly: true,
23631
+ destructive: false,
23632
+ idempotent: true,
23633
+ cli: ["clips", "rebound"],
23634
+ mcp: "get_clip_rebound"
23635
+ },
23636
+ {
23637
+ id: "clips.steady",
23638
+ group: "looks",
23639
+ title: "A clip, steadied",
23640
+ summary: "A clip with handheld shake smoothed out: the file a Canvas with steady on plays",
23641
+ description: "The clip stabilised (two passes of ffmpeg vidstab), made once on first use (a few seconds) and kept beside the clip; the render uses the same file, so a Canvas with steady on plays exactly what this shows. Answers {url}, signed for a day. No AI and no credits.",
23642
+ method: "GET",
23643
+ path: "/api/v1/clips/{clip_id}/steady",
23644
+ scopes: ["videos:read", "videos:write"],
23645
+ input: external_exports.object({ clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)") }),
23646
+ readOnly: true,
23647
+ destructive: false,
23648
+ idempotent: true,
23649
+ cli: ["clips", "steady"],
23650
+ mcp: "get_clip_steady"
23651
+ },
23652
+ {
23653
+ id: "clips.loop",
23654
+ group: "looks",
23655
+ title: "Where a clip loops best",
23656
+ summary: "Best spot: where in a clip a Canvas drift window loops best, and its loop score",
23657
+ description: "For a window of span seconds that crossfades seam seconds into its start (both in the clip's own time: a drift plays seconds + crossfade of picture at its speed), the start in the clip whose ends look most alike, steady and with no cut inside, and its loop score 0\u2013100. Put the start in the Canvas edit's clips[0].in. Answers {start, score, measured}; a clip not measured yet answers start 0 and score null. Each clip's own score (for a default 8-second drift) is loop_score on list_clips, browse_clip_mood and get_clip_folder. No AI and no credits.",
23658
+ method: "GET",
23659
+ path: "/api/v1/clips/{clip_id}/loop",
23660
+ scopes: ["videos:read", "videos:write"],
23661
+ input: external_exports.object({
23662
+ clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)"),
23663
+ span: external_exports.number().min(0.5).max(60).describe("How much of the clip the window plays before the loop point, in seconds of the clip"),
23664
+ seam: external_exports.number().min(0).max(4).optional().describe("How much more it plays into the crossfade, in seconds of the clip; default 0.75")
23665
+ }),
23666
+ readOnly: true,
23667
+ destructive: false,
23668
+ idempotent: true,
23669
+ cli: ["clips", "loop"],
23670
+ mcp: "get_clip_loop"
23671
+ },
23672
+ {
23673
+ id: "clips.similar",
23674
+ group: "looks",
23675
+ title: "More like this",
23676
+ summary: "Clips that look and move like one clip, from Stock and your folders",
23677
+ description: "Up to limit clips (default 24) from every Stock collection and your own folders that look and move like this one: the same collection or folder counts, then how lively, how bright and the colour, so a clip from another collection can match. Clips cut from the same video show once. Each has the fields of browse_clip_mood plus source (the collection or folder it is in). No AI and no credits. The clip must be in Stock or one of your folders (404 otherwise).",
23678
+ method: "GET",
23679
+ path: "/api/v1/clips/{clip_id}/similar",
23680
+ scopes: ["videos:read", "videos:write", "library:read"],
23681
+ input: external_exports.object({
23682
+ clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)"),
23683
+ limit: external_exports.number().int().min(1).max(48).optional().describe("How many, 1\u201348; default 24")
23684
+ }),
23685
+ readOnly: true,
23686
+ destructive: false,
23687
+ idempotent: true,
23688
+ cli: ["clips", "similar"],
23689
+ mcp: "similar_clips"
23690
+ },
23691
+ {
23692
+ id: "clips.delete",
23693
+ group: "looks",
23694
+ title: "Delete a clip",
23695
+ summary: "Remove one of your clips",
23696
+ description: "Videos already made with it keep it.",
23697
+ method: "DELETE",
23698
+ path: "/api/v1/clips/{clip_id}",
23699
+ scopes: ["videos:write", "library:write"],
23700
+ input: external_exports.object({ clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026)") }),
23701
+ readOnly: false,
23702
+ destructive: true,
23703
+ idempotent: true,
23704
+ cli: ["clips", "delete"],
23705
+ mcp: "delete_clip"
23706
+ },
23707
+ {
23708
+ id: "clips.move",
23709
+ group: "looks",
23710
+ title: "Move clips",
23711
+ summary: "Move some of your clips into another of your folders",
23712
+ description: "clip_ids: your own clips (from get_clip_folder; library clips belong to no folder and never move), folder_id: one of your folders (list_clip_folders). Answers how many moved. Videos already made keep their clips.",
23713
+ method: "POST",
23714
+ path: "/api/v1/clips/move",
23715
+ scopes: ["videos:write", "library:write"],
23716
+ input: external_exports.object({ clip_ids: external_exports.array(external_exports.string().max(80)).min(1).max(200).describe("Clip ids (clip_\u2026), 1\u2013200"), folder_id: external_exports.string().max(80).describe("The folder to move them into (folder_\u2026)") }),
23717
+ readOnly: false,
23718
+ destructive: false,
23719
+ idempotent: true,
23720
+ cli: ["clips", "move"],
23721
+ mcp: "move_clips",
23722
+ example: { clip_ids: ["clip_\u2026"], folder_id: "folder_\u2026" }
23723
+ },
23724
+ {
23725
+ id: "clips.analyze",
23726
+ group: "looks",
23727
+ title: "Analyse clips",
23728
+ summary: "Find the subject and faces of clips a preview shows",
23729
+ description: "For a preview you plan yourself (planEdit): send the clip_ids it shows, and behind: true when its words go behind the subject. Each not yet analysed is analysed in the background, once (a few seconds): its subject and faces, a photo's depth map, and with behind its matte when it has a clear subject. list_clips answers what it found once done; a clip analysed once stays analysed, for everyone. At most daily_limit new clips of your own a day (Stock clips don't count) (limited: true held some back until tomorrow); a video made with clips analyses them anyway, with no limit, so you never need this to make one. Free. Answers pending (the clips still being analysed), limited and daily_limit.",
23730
+ method: "POST",
23731
+ path: "/api/v1/clips/analyze",
23732
+ scopes: ["videos:write", "library:write"],
23733
+ input: external_exports.object({ clip_ids: external_exports.array(external_exports.string().max(80)).min(1).max(200).describe("The clips the preview shows (clip_\u2026), 1\u2013200"), behind: external_exports.boolean().optional().describe("Words go behind the subject: make the mattes too") }),
23734
+ readOnly: false,
23735
+ destructive: false,
23736
+ idempotent: true,
23737
+ cli: ["clips", "analyze"],
23738
+ mcp: "analyze_clips",
23739
+ example: { clip_ids: ["clip_\u2026"], behind: true }
23740
+ },
23741
+ {
23742
+ id: "clips.generate",
23743
+ group: "looks",
23744
+ title: "Generate clips",
23745
+ summary: "New pictures or short video clips into your AI folder, from your words, the song or its cover",
23746
+ description: "The only paid part of a lyric video's or a Canvas's picture. Send prompt (or from with song_id: the song's brief, or the cover's world with the cover as the model's reference), kind (image or video), shape (tall or wide), count (1\u20134), and optionally with (the artist, or a cast character's kit id: their character sheet keeps them recognizable), quality (standard or high video) and loop (a video that starts and ends on the same frame, kept whole: a seamless Drift for a Canvas). Without credits it answers the price ({quote: {credits, per_item_credits}}) and the prompt it will use, and with from song three ideas built from the song's brief (ideas: each a title, a line, 2\u20133 tags, a prompt, the first best: true; no extra AI call, none while the song has no brief): offer them, and send the picked idea's prompt as prompt; show it, and with the user's yes send the same with credits: they are held and the clips are made in the background. get_clip_folder on the returned folder_id shows each one on its way (imports: status queued, working or failed; stage drawing, animating or cutting; expected_seconds), and each is charged only once it is a clip (a failed one is given back; retry_clip_import tries it again).",
23747
+ method: "POST",
23748
+ path: "/api/v1/clips/generate",
23749
+ scopes: ["videos:write"],
23750
+ input: external_exports.object({
23751
+ prompt: external_exports.string().trim().min(3).max(500).optional().describe('What it shows, e.g. "a diner at 3am, rain on the window". Optional with from'),
23752
+ kind: external_exports.enum(["image", "video"]),
23753
+ shape: external_exports.enum(["tall", "wide"]).optional().describe("Default tall"),
23754
+ count: external_exports.number().int().min(1).max(4).optional().describe("Default 1"),
23755
+ song_id: songId.optional().describe("The song it is for (with from or with)"),
23756
+ from: external_exports.enum(["song", "cover"]).optional().describe("Start from the song (its brief) or the cover's world"),
23757
+ with: external_exports.string().max(60).optional().describe("none (default), artist (the song's artist's character) or a cast character's kit id (kit_\u2026)"),
23758
+ model: external_exports.string().optional().describe("Video only: the video model, one of the ids get_options lists in video_models.clips (by its real name, each with its price for one clip). Left out: the default, the first listed"),
23759
+ quality: external_exports.enum(["standard", "high"]).optional().describe("Video only, before models were named: standard is the default model, high the dearest offered. Ignored with model"),
23760
+ loop: external_exports.boolean().optional().describe("Video only: made to loop (starts and ends on the same frame)"),
23761
+ style: external_exports.enum(GENERATE_STYLES).optional().describe("How it moves and feels: calm, cinematic, dreamy or intense (shapes the motion, camera and pace). Left out: as the prompt says"),
23762
+ credits: external_exports.number().int().min(1).optional().describe("The quoted credits, to make them; left out, only the price")
23763
+ }),
23764
+ readOnly: false,
23765
+ destructive: false,
23766
+ idempotent: false,
23767
+ cli: ["clips", "generate"],
23768
+ mcp: "generate_clips"
23769
+ },
23770
+ {
23771
+ id: "clip_imports.retry",
23772
+ group: "looks",
23773
+ title: "Try a clip import again",
23774
+ summary: "Try a failed link, upload, stock or generated clip again",
23775
+ description: "For an import get_clip_folder lists as failed. A generated one holds its credits again (at today's price) before it is made.",
23776
+ method: "POST",
23777
+ path: "/api/v1/clip-imports/{import_id}",
23778
+ scopes: ["videos:write"],
23779
+ input: external_exports.object({ import_id: external_exports.string().regex(/^import_[0-9a-f-]{36}$/).describe("The import id (import_\u2026)") }),
23780
+ fixed: { action: "retry" },
23781
+ readOnly: false,
23782
+ destructive: false,
23783
+ idempotent: true,
23784
+ cli: ["clips", "retry-import"],
23785
+ mcp: "retry_clip_import"
23786
+ },
23787
+ {
23788
+ id: "clip_imports.dismiss",
23789
+ group: "looks",
23790
+ title: "Dismiss a failed clip import",
23791
+ summary: "Take a failed import's tile out of its folder",
23792
+ description: "For an import get_clip_folder lists as failed, when it isn't worth trying again (retry_clip_import). Nothing is charged.",
23793
+ method: "DELETE",
23794
+ path: "/api/v1/clip-imports/{import_id}",
23795
+ scopes: ["videos:write"],
23796
+ input: external_exports.object({ import_id: external_exports.string().regex(/^import_[0-9a-f-]{36}$/).describe("The import id (import_\u2026)") }),
23797
+ readOnly: false,
23798
+ destructive: true,
23799
+ idempotent: true,
23800
+ cli: ["clips", "dismiss-import"],
23801
+ mcp: "dismiss_clip_import"
23802
+ },
23803
+ {
23804
+ id: "clip_folders.list",
23805
+ group: "looks",
23806
+ title: "List your clip folders",
23807
+ summary: "Your clip folders with how many clips each holds",
23808
+ description: "My footage: each folder with id, name, kind (user: yours, where links, uploads, cut videos and stock you found land; ai: what you generate), clips, importing (on their way) and poster_url.",
23809
+ method: "GET",
23810
+ path: "/api/v1/clip-folders",
23811
+ scopes: ["videos:read", "videos:write", "library:read"],
23812
+ input: external_exports.object({}),
23813
+ readOnly: true,
23814
+ destructive: false,
23815
+ idempotent: true,
23816
+ cli: ["clip-folders", "list"],
23817
+ mcp: "list_clip_folders"
23818
+ },
23819
+ {
23820
+ id: "clip_folders.create",
23821
+ group: "looks",
23822
+ title: "Make a clip folder",
23823
+ summary: "A new folder for your clips",
23824
+ description: "A folder in My footage, by name. Anything can be imported into it (import_clips): a link, a file or a stock video found with search_stock.",
23825
+ method: "POST",
23826
+ path: "/api/v1/clip-folders",
23827
+ scopes: ["videos:write", "library:write"],
23828
+ input: external_exports.object({ name: external_exports.string().trim().min(1).max(60).describe('Its name, e.g. "On stage"') }),
23829
+ readOnly: false,
23830
+ destructive: false,
23831
+ idempotent: false,
23832
+ cli: ["clip-folders", "create"],
23833
+ mcp: "create_clip_folder"
23834
+ },
23835
+ {
23836
+ id: "clip_folders.get",
23837
+ group: "looks",
23838
+ title: "Get a clip folder",
23839
+ summary: "A folder's clips and the imports still on their way",
23840
+ description: "clips (as list_clips) and imports (status queued, working or failed with error; done ones leave the list).",
23841
+ method: "GET",
23842
+ path: "/api/v1/clip-folders/{folder_id}",
23843
+ scopes: ["videos:read", "videos:write", "library:read"],
23844
+ input: external_exports.object({ folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)") }),
23845
+ readOnly: true,
23846
+ destructive: false,
23847
+ idempotent: true,
23848
+ cli: ["clip-folders", "get"],
23849
+ mcp: "get_clip_folder"
23850
+ },
23851
+ {
23852
+ id: "clip_folders.rename",
23853
+ group: "looks",
23854
+ title: "Rename a clip folder",
23855
+ summary: "Rename one of your clip folders",
23856
+ description: "",
23857
+ method: "PATCH",
23858
+ path: "/api/v1/clip-folders/{folder_id}",
23859
+ scopes: ["videos:write", "library:write"],
23860
+ input: external_exports.object({ folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)"), name: external_exports.string().trim().min(1).max(60) }),
23861
+ readOnly: false,
23862
+ destructive: false,
23863
+ idempotent: true,
23864
+ cli: ["clip-folders", "rename"],
23865
+ mcp: "rename_clip_folder"
23866
+ },
23867
+ {
23868
+ id: "clip_folders.delete",
23869
+ group: "looks",
23870
+ title: "Delete a clip folder",
23871
+ summary: "Remove a folder and its clips",
23872
+ description: "Videos already made with its clips keep them.",
23873
+ method: "DELETE",
23874
+ path: "/api/v1/clip-folders/{folder_id}",
23875
+ scopes: ["videos:write", "library:write"],
23876
+ input: external_exports.object({ folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)") }),
23877
+ readOnly: false,
23878
+ destructive: true,
23879
+ idempotent: true,
23880
+ cli: ["clip-folders", "delete"],
23881
+ mcp: "delete_clip_folder"
23882
+ },
23883
+ {
23884
+ id: "clip_folders.import",
23885
+ group: "looks",
23886
+ title: "Import clips",
23887
+ summary: "Cut a video into clips in one of your folders: a link, a file or a stock video",
23888
+ description: "One of: url (a YouTube, TikTok or Instagram link, up to 20 minutes), file_url (a video or photo sent with create_upload) or stock_id (a stock video from search_stock: it lands in this folder of yours, like any other source). Kinetune cuts it at every scene change into clips of 1\u20135 s, in the background (get_clip_folder shows it on its way). Only use clips you have the rights to. Free with an active plan (402 plan_required without one; get_account: plan.active); counts toward your storage.",
23889
+ method: "POST",
23890
+ path: "/api/v1/clip-folders/{folder_id}/imports",
23891
+ scopes: ["videos:write", "library:write"],
23892
+ input: external_exports.object({
23893
+ folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)"),
23894
+ url: external_exports.string().url().max(2e3).optional().describe("A YouTube, TikTok or Instagram link"),
23895
+ file_url: httpsUrl("a video or photo").optional(),
23896
+ stock_id: StockIdSchema.optional().describe("A stock video id (search_stock kind video)")
23897
+ }),
23898
+ readOnly: false,
23899
+ destructive: false,
23900
+ idempotent: false,
23901
+ cli: ["clip-folders", "import"],
23902
+ mcp: "import_clips"
23903
+ },
23904
+ {
23905
+ id: "canvas_presets.list",
23906
+ group: "looks",
23907
+ title: "List your Canvas presets",
23908
+ summary: "Your saved Canvas looks, the latest saved first",
23909
+ description: "Each with id, name and look: loop, seconds, cut, crossfade, camera, fade, fill (and fill_colour), speed, grade and grade_amount, effects, light and atmosphere. A look holds no clips or song: to use one, send its fields in a Canvas request (picture fields for the clips settings, loop, seconds, light as {preset}, atmosphere and effects at the top).",
23910
+ method: "GET",
23911
+ path: "/api/v1/canvas-presets",
23912
+ scopes: ["videos:read", "videos:write"],
23913
+ input: external_exports.object({}),
23914
+ readOnly: true,
23915
+ destructive: false,
23916
+ idempotent: true,
23917
+ cli: ["canvas-presets", "list"],
23918
+ mcp: "list_canvas_presets"
23919
+ },
23920
+ {
23921
+ id: "canvas_presets.save",
23922
+ group: "looks",
23923
+ title: "Save a Canvas preset",
23924
+ summary: "Keep a Canvas look under a name for the next Canvas",
23925
+ description: "name (1\u201360 characters) and look (as list_canvas_presets shows it; fields left out take their defaults). The same name again replaces that preset's look. Up to 50 a workspace. Free.",
23926
+ method: "POST",
23927
+ path: "/api/v1/canvas-presets",
23928
+ scopes: ["videos:write"],
23929
+ input: external_exports.object({ name: external_exports.string().trim().min(1).max(60).describe('Its name, e.g. "Night drive"'), look: CanvasLookSchema }),
23930
+ readOnly: false,
23931
+ destructive: false,
23932
+ idempotent: false,
23933
+ cli: ["canvas-presets", "save"],
23934
+ mcp: "save_canvas_preset",
23935
+ example: { name: "Night drive", look: { loop: "drift", seconds: 8, crossfade: 1, grade: "noir", grade_amount: 0.7, effects: [{ id: "film-grain", amount: 0.5 }], atmosphere: "dust" } }
23936
+ },
23937
+ {
23938
+ id: "canvas_presets.rename",
23939
+ group: "looks",
23940
+ title: "Rename a Canvas preset",
23941
+ summary: "Rename one of your Canvas presets",
23942
+ description: "",
23943
+ method: "PATCH",
23944
+ path: "/api/v1/canvas-presets/{preset_id}",
23945
+ scopes: ["videos:write"],
23946
+ input: external_exports.object({ preset_id: external_exports.string().regex(/^preset_[0-9a-f-]{36}$/).describe("A Canvas preset id (preset_\u2026; list_canvas_presets)"), name: external_exports.string().trim().min(1).max(60) }),
23947
+ readOnly: false,
23948
+ destructive: false,
23949
+ idempotent: true,
23950
+ cli: ["canvas-presets", "rename"],
23951
+ mcp: "rename_canvas_preset"
23952
+ },
23953
+ {
23954
+ id: "canvas_presets.delete",
23955
+ group: "looks",
23956
+ title: "Delete a Canvas preset",
23957
+ summary: "Remove one of your Canvas presets",
23958
+ description: "Canvases already made with it keep their look.",
23959
+ method: "DELETE",
23960
+ path: "/api/v1/canvas-presets/{preset_id}",
23961
+ scopes: ["videos:write"],
23962
+ input: external_exports.object({ preset_id: external_exports.string().regex(/^preset_[0-9a-f-]{36}$/).describe("A Canvas preset id (preset_\u2026; list_canvas_presets)") }),
23963
+ readOnly: false,
23964
+ destructive: true,
23965
+ idempotent: true,
23966
+ cli: ["canvas-presets", "delete"],
23967
+ mcp: "delete_canvas_preset"
23968
+ },
23969
+ {
23970
+ id: "stock.search",
23971
+ group: "looks",
23972
+ title: "Search stock media",
23973
+ summary: "Find stock photos or clips for your clip folders, a Canvas or a kit piece",
23974
+ description: `24 results a page. Pass a video's id to import_clips (stock_id) to cut it into your clips, or an item's id as a Canvas's stock_id to use it instead of the director's pick, and credit its creator (credit: author, author_url, source_url and provider, the site it comes from) wherever you show it. Results come from every stock site Kinetune is set up with: ids from the first are digits, others are prefixed ("pixabay:123"); pass them as given. orientation: portrait for 9:16 and 1:1, landscape when 16:9 is among the formats (a Canvas is portrait). Clips too short for the loop are left out: pass seconds for a Canvas. thumbnail_url is a 480 px still, preview_url a 1280 px one (the photo, or the clip's poster), preview_video_url a small MP4 of a clip.`,
23975
+ method: "GET",
23976
+ path: "/api/v1/stock",
23977
+ scopes: ["videos:read", "videos:write", "library:read"],
23978
+ input: external_exports.object({
23979
+ kind: external_exports.enum(["photo", "video"]).describe("photo or video"),
23980
+ q: external_exports.string().trim().min(1).max(100).describe('Search words, e.g. "foggy pine forest"'),
23981
+ orientation: external_exports.enum(["portrait", "landscape"]).optional().describe("Default portrait"),
23982
+ page: external_exports.number().int().min(1).max(50).optional().describe("Default 1; next_page says whether there are more"),
23983
+ seconds: external_exports.number().int().min(5).max(8).optional().describe("Clips for a Canvas of this length (5\u20138); omit otherwise")
23984
+ }),
23985
+ readOnly: true,
23986
+ destructive: false,
23987
+ idempotent: true,
23988
+ cli: ["stock", "search"],
23989
+ mcp: "search_stock",
23990
+ example: { kind: "photo", q: "foggy pine forest", orientation: "portrait" }
23991
+ },
23992
+ /* Quotes and videos */
23993
+ {
23994
+ id: "quotes.lyric_video",
23995
+ group: "videos",
23996
+ title: "Quote a lyric video",
23997
+ summary: "The exact credits for a lyric video, before anything is charged",
23998
+ description: `Returns quote_id, credits (total), credits_per_video and a breakdown, and free: true when, without a plan, it is one of the month's free videos (create_video then holds no credits). ${QUOTE_FIRST} A quote is valid for 30 minutes.`,
23999
+ method: "POST",
24000
+ path: "/api/v1/quotes",
24001
+ scopes: ["videos:write", "videos:read"],
24002
+ input: lyricInput,
24003
+ fixed: { type: "lyric-video" },
24004
+ readOnly: true,
24005
+ destructive: false,
24006
+ idempotent: true,
24007
+ cli: ["quote", "lyric-video"],
22854
24008
  mcp: "quote_lyric_video",
22855
- example: { song_id: "song_\u2026", look: { mode: "new", category: "synthwave", background: { source: "ai-image", quality: "high" } }, aspect_ratios: ["9:16", "16:9"] }
24009
+ example: { song_id: "song_\u2026", look: { background: { kind: "clips", sources: { moods: ["city"], folders: [] } } }, aspect_ratios: ["9:16", "16:9"] }
22856
24010
  },
22857
24011
  {
22858
24012
  id: "quotes.canvas",
@@ -22870,14 +24024,14 @@ var OPERATIONS = [
22870
24024
  idempotent: true,
22871
24025
  cli: ["quote", "canvas"],
22872
24026
  mcp: "quote_canvas",
22873
- example: { song_id: "song_\u2026", source: "ai-video", style: "dreamy" }
24027
+ example: { song_id: "song_\u2026", picture: { kind: "clips", sources: { moods: ["euphoria"], folders: [] } }, loop: "cuts", seconds: 8 }
22874
24028
  },
22875
24029
  {
22876
24030
  id: "music_video_plans.create",
22877
24031
  group: "videos",
22878
24032
  title: "Write a music video shot list",
22879
- summary: "The director's shot list for a music video, the idea and every shot, before anything is charged",
22880
- description: "Free (a limited number an hour). Takes about a minute. Returns a plan: the concept, the character it keeps the artist from, and its shots (cut between the song's lines, up to about 14 seconds each) with their lyrics and how each comes in (a cut, or carrying on in a continuous take). Show it to the user, rewrite it with revise until they like it, then quote_music_video and create_music_video with its plan_id.",
24033
+ summary: "The director's shot list for a music video, the idea and every shot (spends credits)",
24034
+ description: "Costs credits, and so does every rewrite with revise: tell the user the price (list_music_video_drafts price.credits) and send it as credits only after their go (a limited number an hour). A video made from it has no creative direction line in its quote: the shot list was paid for. Takes a minute or more (wait false answers at once with the shot list being written, read shot by shot with get_music_video_plan_write). Returns a plan: the concept, the character it keeps the artist from, and its shots (cut between the song's lines, up to about 14 seconds each) with their lyrics and how each comes in (a cut, or carrying on in a continuous take). Show it to the user, rewrite it with revise until they like it, then quote_music_video and create_music_video with its plan_id.",
22881
24035
  method: "POST",
22882
24036
  path: "/api/v1/music-video-plans",
22883
24037
  scopes: ["videos:write"],
@@ -22890,6 +24044,23 @@ var OPERATIONS = [
22890
24044
  output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema },
22891
24045
  example: { song_id: "song_\u2026", category: "cinematic", aspect_ratio: "9:16", trim: { start_seconds: 32, end_seconds: 96 } }
22892
24046
  },
24047
+ {
24048
+ id: "music_video_plans.write",
24049
+ group: "videos",
24050
+ title: "Read a shot list being written",
24051
+ summary: "A shot list the director is writing (plan_music_video with wait false): its shots as they are written",
24052
+ description: "status: writing, ready or failed. phase: writing, revising (rewriting it to pass the checks) or finishing. title and concept once written; shots: every shot's start_seconds, end_seconds, section and lyrics from the start, and its summary once written (null until then). Once ready, plan_id is the shot list (get_music_video_plan); once failed, error says why (nothing is charged). price.credits: what it costs, charged once ready. One whose writing was cut off reads as failed. The song's shot lists being written are also listed by list_music_video_drafts (writing).",
24053
+ method: "GET",
24054
+ path: "/api/v1/music-video-plan-writes/{write_id}",
24055
+ scopes: ["videos:read", "videos:write"],
24056
+ input: external_exports.object({ write_id: external_exports.string().regex(/^write_[0-9a-f-]{36}$/).describe("The shot list being written (write_\u2026), from plan_music_video with wait false") }),
24057
+ readOnly: true,
24058
+ destructive: false,
24059
+ idempotent: true,
24060
+ cli: ["plans", "writing"],
24061
+ mcp: "get_music_video_plan_write",
24062
+ example: { write_id: "write_\u2026" }
24063
+ },
22893
24064
  {
22894
24065
  id: "music_video_plans.swap_place",
22895
24066
  group: "videos",
@@ -22907,217 +24078,207 @@ var OPERATIONS = [
22907
24078
  mcp: "swap_music_video_place",
22908
24079
  output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema }
22909
24080
  },
22910
- /* Casting */
22911
24081
  {
22912
- id: "music_video_castings.create",
24082
+ id: "music_video_plans.check_model",
22913
24083
  group: "videos",
22914
- title: "Cast a music video",
22915
- summary: "The director proposes who else is in it: up to 3 new people, each drawn as a character sheet only after a yes",
22916
- description: `Optional, after the idea and before the lookbook and the shot list (nobody appears on screen without a character sheet). Free (a limited number an hour), a few seconds: returns a casting whose people (at most ${CASTING_MAX_PEOPLE}, never more than the model's room in a shot beside the performer and the people already given) each have a role, a first name, what they do (does), a description their sheet is drawn from, and about how many shots they are in. With cast_mode exact, nobody on screen or no room, it proposes nobody (status ready, people []), without a director call. Show each person with price.per_person (price.credits for all); the user may drop anyone, edit a description, or put a kit character in that role instead; then draw_music_video_cast after their yes, or order the video with casting_id to draw them inside the order. Same brief as plan_music_video. Needs an active plan (402 plan_required without one; get_account: plan.active).`,
22917
- method: "POST",
22918
- path: "/api/v1/music-video-castings",
22919
- scopes: ["videos:write"],
22920
- input: musicVideoPlanInput.omit({ revise: true, lookbook_id: true }),
22921
- readOnly: false,
22922
- destructive: false,
22923
- idempotent: false,
22924
- cli: ["casting", "propose"],
22925
- mcp: "cast_music_video",
22926
- example: { song_id: "song_\u2026", category: "story", direction: "She leaves him at the station" }
22927
- },
22928
- {
22929
- id: "music_video_castings.get",
22930
- group: "videos",
22931
- title: "Get a casting",
22932
- summary: "A casting's people as proposed, then as drawn",
22933
- description: "status: proposed (not drawn), drawing (their sheets are drawn: check back in about a minute), ready or failed. Each person: index, name, role, does, description, shots, state (proposed, declined, drawing, kept: drawn and in the song artist's kit; chosen: a kit character in that role; failed, with error) and character once kept or chosen. price.per_person is a sheet's price; charged is what was spent. people_for_brief, once ready: the {character, does} entries to add to people in plan_music_video, design_music_video_shoot and create_music_video.",
24084
+ title: "Check another model for a shot list",
24085
+ summary: "Whether a shot list can be kept with another video model, and what changes",
24086
+ description: "Nothing is saved or charged. Every model makes the same kind of shot list, so one usually moves as it is: can_switch says whether this one can (problems: why not, so it has to be written again with plan_music_video for that model); needs: what the model needs before the video can be paid for (a face check for a real person, a new character sheet its provider would take), which can be done after switching; changes: how the video is made differently with it (lip-sync, continuous takes, whole seconds, a drawn frame it can't open on), to tell the user before they pay; qualities: the resolutions it is offered in. Then switch_music_video_model after the user's yes.",
22934
24087
  method: "GET",
22935
- path: "/api/v1/music-video-castings/{casting_id}",
22936
- scopes: ["videos:read"],
22937
- input: external_exports.object({ casting_id: CastingIdSchema.describe("The casting id (casting_\u2026)") }),
24088
+ path: "/api/v1/music-video-plans/{plan_id}/model",
24089
+ scopes: ["videos:read", "videos:write"],
24090
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"), model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).describe("The model to check (get_options music_video.models[].id)") }),
22938
24091
  readOnly: true,
22939
24092
  destructive: false,
22940
24093
  idempotent: true,
22941
- cli: ["casting", "get"],
22942
- mcp: "get_music_video_casting"
24094
+ cli: ["plans", "check-model"],
24095
+ mcp: "check_music_video_model",
24096
+ example: { plan_id: "plan_\u2026", model: "seedance-2-5" }
22943
24097
  },
22944
24098
  {
22945
- id: "music_video_castings.draw",
24099
+ id: "music_video_plans.switch_model",
22946
24100
  group: "videos",
22947
- title: "Draw a music video's cast",
22948
- summary: "Draws the people the user kept as character sheets (spends credits)",
22949
- description: `Only after the user's yes to the people and the price. people: the ones kept, by index (the others are declined), each with an edited name or description if the user changed it, or character: a kit character's handle (list_characters) in that role instead, free. An empty list keeps it to the artist (nobody else is cast). credits must be price.per_person times the people drawn (0 when none is); another price answers 409 with the current one. Each description is read first like start_character's describe mode (one made-up adult, never a real or famous person: 422 naming the person's index). One hold for all; each sheet is drawn plain (base clothes, the person only: the video dresses them later), charged once it passes its check, and kept in the song artist's kit as AI-made, not shared. Poll get_music_video_casting until ready, then add people_for_brief to people. Needs an active plan (402 plan_required without one; get_account: plan.active).`,
24101
+ title: "Switch a shot list's model",
24102
+ summary: "Keeps a shot list with another video model: the same shots, idea, people and frames",
24103
+ description: `Free, no director call. Returns the next draft (note "Made with \u2026"), made with that model: the same concept, shots, characters, places and drawn frames, each shot prompted for the new model; written_for keeps the model the director wrote it for. Quote and order with the new plan id (a test is made with it at 480p); a quote, test or video of the earlier draft keeps its own model. 409 with switch (as check_music_video_model) when the shot list can't be kept with that model. Check first and tell the user its changes and needs.`,
22950
24104
  method: "POST",
22951
- path: "/api/v1/music-video-castings/{casting_id}/draw",
24105
+ path: "/api/v1/music-video-plans/{plan_id}/model",
22952
24106
  scopes: ["videos:write"],
22953
- input: external_exports.object({
22954
- casting_id: CastingIdSchema.describe("The casting id"),
22955
- credits: CastingDrawSchema.shape.credits.describe("The price shown: price.per_person \xD7 the people drawn"),
22956
- people: CastingDrawSchema.shape.people.describe('The people kept: [{"index":1},{"index":2,"description":"\u2026"},{"index":3,"character":"mia-torres"}]; [] keeps it to the artist')
22957
- }),
24107
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"), model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).describe("The model to make it with") }),
22958
24108
  readOnly: false,
22959
24109
  destructive: false,
22960
- idempotent: false,
22961
- cli: ["casting", "draw"],
22962
- mcp: "draw_music_video_cast"
24110
+ idempotent: true,
24111
+ cli: ["plans", "switch-model"],
24112
+ mcp: "switch_music_video_model",
24113
+ output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema },
24114
+ example: { plan_id: "plan_\u2026", model: "seedance-2-5" }
22963
24115
  },
24116
+ /* Versions */
22964
24117
  {
22965
- id: "music_video_castings.delete",
24118
+ id: "music_video_plans.versions",
22966
24119
  group: "videos",
22967
- title: "Delete a casting",
22968
- summary: "Deletes a casting; the people already kept stay in the kit",
22969
- description: "Not while its people are drawn (409).",
22970
- method: "DELETE",
22971
- path: "/api/v1/music-video-castings/{casting_id}",
22972
- scopes: ["videos:write"],
22973
- input: external_exports.object({ casting_id: CastingIdSchema.describe("The casting id (casting_\u2026)") }),
22974
- readOnly: false,
22975
- destructive: true,
24120
+ title: "List a shot list's versions",
24121
+ summary: "Every version of a shot list, oldest first",
24122
+ description: "Each rewrite, place photo change, angle left out or model switch writes a new version of the same shot list. versions: each its id (a plan id: get_music_video_plan opens it, and quote_music_video / create_music_video take it as plan_id), number, the note it was written from, created_at, shots, and video (a video was made from it, so it stays). current: the number of plan_id among them.",
24123
+ method: "GET",
24124
+ path: "/api/v1/music-video-plans/{plan_id}/versions",
24125
+ scopes: ["videos:read"],
24126
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("Any version of the shot list (plan_\u2026)") }),
24127
+ readOnly: true,
24128
+ destructive: false,
22976
24129
  idempotent: true,
22977
- cli: ["casting", "delete"],
22978
- mcp: "delete_music_video_casting"
24130
+ cli: ["plans", "versions"],
24131
+ mcp: "list_music_video_versions"
22979
24132
  },
22980
- /* The lookbook */
22981
24133
  {
22982
- id: "music_video_lookbooks.create",
24134
+ id: "music_video_plans.delete_version",
22983
24135
  group: "videos",
22984
- title: "Design a music video lookbook",
22985
- summary: "The director designs the outfits, places and props the brief leaves to it as pictures, before the shot list",
22986
- description: `Optional, before the shot list (plan_music_video). Free to design (a limited number an hour), about a minute: returns a lookbook whose pieces are the brief's own kit pieces (yours, used as they are) and the director's designs (an outfit drawn on the artist, a place drawn empty, a prop alone), not drawn yet. price.draw.credits is what drawing them costs: tell the user, then render_music_video_lookbook after their go. Same brief as plan_music_video. ${NEEDS_PLAN}`,
22987
- method: "POST",
22988
- path: "/api/v1/music-video-lookbooks",
24136
+ title: "Delete a version of a shot list",
24137
+ summary: "Removes one version; the others stay",
24138
+ description: "Only a version no video was made from (409 otherwise). The versions written from it are then written from the one before it. Its pictures stay (opening frames and place pictures are kept by what they show). Answers the versions left. To delete the whole shot list, delete_music_video_plan.",
24139
+ method: "DELETE",
24140
+ path: "/api/v1/music-video-plans/{plan_id}/versions/{version_id}",
22989
24141
  scopes: ["videos:write"],
22990
- input: musicVideoPlanInput.omit({ revise: true, lookbook_id: true }),
24142
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("Any version of the shot list (plan_\u2026)"), version_id: MusicVideoPlanIdSchema.describe("The version to delete (versions[].id)") }),
22991
24143
  readOnly: false,
22992
- destructive: false,
22993
- idempotent: false,
22994
- cli: ["lookbook", "design"],
22995
- mcp: "design_music_video_shoot",
22996
- example: { song_id: "song_\u2026", category: "story", direction: "@nina-kazora in the @blue-set" }
24144
+ destructive: true,
24145
+ idempotent: true,
24146
+ cli: ["plans", "delete-version"],
24147
+ mcp: "delete_music_video_version"
22997
24148
  },
24149
+ /* A shot list's pictures */
22998
24150
  {
22999
- id: "music_video_lookbooks.get",
24151
+ id: "music_video_plans.pictures",
23000
24152
  group: "videos",
23001
- title: "Get a lookbook",
23002
- summary: "A lookbook with its pictures as they are drawn",
23003
- description: "status is proposed (not drawn), rendering (being drawn: check back in about a minute), ready or failed. Each piece has its picture (image_url) once drawn, kept (true unless left out) and whether it is yours. price: per picture, to draw the rest (draw) and to redesign the director's pieces (redesign).",
24153
+ title: "List a shot list's pictures",
24154
+ summary: "Every picture a shot list draws (places, angles, outfits on its people, designed props), with each once drawn",
24155
+ description: "What a shot list's shots are made from that is drawn, each one picture: its places drawn from words and the angles of its places (kind place or angle: place, places[].index; angle), the outfits drawn on its people (kind outfit: the performer in outfits[].index, null for world.wardrobe; kind person: people[].index), and the props the director designed (kind prop: props[].index, those with designed true). key names each (place:3, outfit:1, outfit:world, person:1, prop:2); credits what drawing it costs now; image_url and thumbnail_url once drawn (signed for 7 days; null until then); kit_item_id the piece it waits as in the artist's kit. undrawn: the keys not drawn yet; credits: what drawing them all costs. Those not drawn are drawn while the video is made, in its quote; one drawn here is reused by the video, a later version, a revision and another model while what it shows is unchanged. Every drawn picture also waits in the song artist's kit (pending) until the user keeps it (update_kit_piece kept true) or leaves it out (delete_kit_piece).",
23004
24156
  method: "GET",
23005
- path: "/api/v1/music-video-lookbooks/{lookbook_id}",
24157
+ path: "/api/v1/music-video-plans/{plan_id}/pictures",
23006
24158
  scopes: ["videos:read"],
23007
- input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id (lookbook_\u2026)") }),
24159
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)") }),
23008
24160
  readOnly: true,
23009
24161
  destructive: false,
23010
24162
  idempotent: true,
23011
- cli: ["lookbook", "get"],
23012
- mcp: "get_music_video_lookbook"
24163
+ cli: ["plans", "pictures"],
24164
+ mcp: "list_music_video_pictures"
23013
24165
  },
23014
24166
  {
23015
- id: "music_video_lookbooks.update",
24167
+ id: "music_video_plans.draw_pictures",
23016
24168
  group: "videos",
23017
- title: "Save a lookbook to the kit or not",
23018
- summary: "Whether its kept pieces join the kit when a video is planned from it",
23019
- description: "save_to_kit true (default): the kept pieces become kit pieces of the workspace and the artist; false: they are used for that video only.",
23020
- method: "PATCH",
23021
- path: "/api/v1/music-video-lookbooks/{lookbook_id}",
24169
+ title: "Draw a shot list's pictures",
24170
+ summary: "Draws a shot list's places, angles, outfits and props, to see them before the video (spends credits)",
24171
+ description: `Without confirm: what drawing them costs (pictures to be drawn with each one's credits, and credits, the total), nothing drawn; tell the user, then send confirm true after their go with credits, the total shown (a different price answers 409 with the current one). pictures: the keys to draw (list_music_video_pictures), with the places an angle is drawn from that aren't yet; left out, every one not drawn yet. redraw true draws the ones named again (paid again; the earlier picture stays in the kit). Takes about a minute; charged for each picture drawn (failed lists any that couldn't be, not charged). Each waits in the song artist's kit to be kept. Answers like list_music_video_pictures. ${NEEDS_PLAN}`,
24172
+ method: "POST",
24173
+ path: "/api/v1/music-video-plans/{plan_id}/pictures",
23022
24174
  scopes: ["videos:write"],
23023
- input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id"), save_to_kit: external_exports.boolean() }),
24175
+ input: external_exports.object({
24176
+ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"),
24177
+ pictures: external_exports.array(external_exports.string().regex(/^(place|outfit|person|prop):(\d+|world)$/)).min(1).max(40).optional().describe("The pictures to draw (pictures[].key: place:3, outfit:1, outfit:world, person:1, prop:2); left out: every one not drawn yet"),
24178
+ redraw: external_exports.boolean().optional().describe("true: draw the ones named again (paid again)"),
24179
+ confirm: external_exports.boolean().optional().describe("true: draw them (spends credits); left out: only the price"),
24180
+ credits: external_exports.number().int().min(0).optional().describe("With confirm: the total price shown")
24181
+ }),
23024
24182
  readOnly: false,
23025
24183
  destructive: false,
23026
- idempotent: true,
23027
- cli: ["lookbook", "update"],
23028
- mcp: "update_music_video_lookbook"
24184
+ idempotent: false,
24185
+ cli: ["plans", "draw-pictures"],
24186
+ mcp: "draw_music_video_pictures",
24187
+ example: { plan_id: "plan_\u2026", confirm: true, credits: 54 }
23029
24188
  },
23030
24189
  {
23031
- id: "music_video_lookbooks.delete",
24190
+ id: "music_video_plans.drop_angle",
23032
24191
  group: "videos",
23033
- title: "Delete a lookbook",
23034
- summary: "Deletes a lookbook nothing was made from, with its pictures",
23035
- description: "Only a lookbook no shot list or video was made from (those keep theirs: 409), and not while its pictures are drawn (409). Pictures already drawn are not refunded.",
24192
+ title: "Leave an angle out of a shot list",
24193
+ summary: "The next draft without one set angle: its shots go back to the place's own picture",
24194
+ description: "Returns the next draft (free, no director call): the shots shot from that angle are shot from its place's picture (or the angle it was drawn from), the rest unchanged. Only an angle (places[].angle not null).",
23036
24195
  method: "DELETE",
23037
- path: "/api/v1/music-video-lookbooks/{lookbook_id}",
24196
+ path: "/api/v1/music-video-plans/{plan_id}/angles/{place}",
23038
24197
  scopes: ["videos:write"],
23039
- input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id (lookbook_\u2026)") }),
23040
- readOnly: false,
23041
- destructive: true,
23042
- idempotent: true,
23043
- cli: ["lookbook", "delete"],
23044
- mcp: "delete_music_video_lookbook"
23045
- },
23046
- {
23047
- id: "music_video_lookbooks.render",
23048
- group: "videos",
23049
- title: "Draw a lookbook",
23050
- summary: "Draws the pieces not drawn yet (spends credits)",
23051
- description: "credits is the price the user agreed to (price.draw.credits); a different price answers 409 with the current one. The credits are held, then charged as pictures are drawn; one that fails isn't charged. Poll get_music_video_lookbook until status is ready.",
23052
- method: "POST",
23053
- path: "/api/v1/music-video-lookbooks/{lookbook_id}/render",
23054
- scopes: ["videos:write"],
23055
- input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id"), credits: external_exports.number().int().positive().describe("The price shown (price.draw.credits)") }),
24198
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"), place: external_exports.number().int().min(1).describe("The angle's number (places[].index)") }),
23056
24199
  readOnly: false,
23057
24200
  destructive: false,
23058
24201
  idempotent: false,
23059
- cli: ["lookbook", "render"],
23060
- mcp: "render_music_video_lookbook"
24202
+ cli: ["plans", "drop-angle"],
24203
+ mcp: "drop_music_video_angle",
24204
+ output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema }
23061
24205
  },
24206
+ /* Casting */
23062
24207
  {
23063
- id: "music_video_lookbooks.redesign",
24208
+ id: "music_video_castings.create",
23064
24209
  group: "videos",
23065
- title: "Redesign a lookbook",
23066
- summary: "Redesigns the director's pieces with a note and draws them again (spends credits)",
23067
- description: "The user's own pieces stay. credits: price.redesign.credits.",
24210
+ title: "Cast a music video",
24211
+ summary: "The director proposes who else is in it: up to 3 new people, each drawn as a character sheet only after a yes",
24212
+ description: `Optional, after the idea and before the shot list (nobody appears on screen without a character sheet). Free (a limited number an hour), a few seconds: returns a casting whose people (at most ${CASTING_MAX_PEOPLE}, never more than the model's room in a shot beside the performer and the people already given) each have a role, a first name, what they do (does), a description their sheet is drawn from, and about how many shots they are in. With cast_mode exact, nobody on screen or no room, it proposes nobody (status ready, people []), without a director call. Show each person with price.per_person (price.credits for all); the user may drop anyone, edit a description, or put a kit character in that role instead; then draw_music_video_cast after their yes, or order the video with casting_id to draw them inside the order. Same brief as plan_music_video. Needs an active plan (402 plan_required without one; get_account: plan.active).`,
23068
24213
  method: "POST",
23069
- path: "/api/v1/music-video-lookbooks/{lookbook_id}/redesign",
24214
+ path: "/api/v1/music-video-castings",
23070
24215
  scopes: ["videos:write"],
23071
- input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id"), note: external_exports.string().trim().min(1).max(1e3).describe("What to change"), credits: external_exports.number().int().positive().describe("The price shown (price.redesign.credits)") }),
24216
+ input: musicVideoPlanInput.omit({ revise: true, credits: true }),
23072
24217
  readOnly: false,
23073
24218
  destructive: false,
23074
24219
  idempotent: false,
23075
- cli: ["lookbook", "redesign"],
23076
- mcp: "redesign_music_video_lookbook"
24220
+ cli: ["casting", "propose"],
24221
+ mcp: "cast_music_video",
24222
+ example: { song_id: "song_\u2026", category: "story", direction: "She leaves him at the station" }
23077
24223
  },
23078
24224
  {
23079
- id: "music_video_lookbooks.keep",
24225
+ id: "music_video_castings.get",
23080
24226
  group: "videos",
23081
- title: "Keep or leave out a lookbook piece",
23082
- summary: "Whether a piece goes into the video",
23083
- description: "",
23084
- method: "PATCH",
23085
- path: "/api/v1/music-video-lookbooks/{lookbook_id}/pieces/{piece}",
23086
- scopes: ["videos:write"],
23087
- input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id"), piece: external_exports.number().int().min(1).describe("The piece's number (pieces[].index)"), kept: external_exports.boolean() }),
23088
- readOnly: false,
24227
+ title: "Get a casting",
24228
+ summary: "A casting's people as proposed, then as drawn",
24229
+ description: "status: proposed (not drawn), drawing (their sheets are drawn: check back in about a minute), ready or failed. Each person: index, name, role, does, description, shots, state (proposed, declined, drawing, kept: drawn and in the song artist's kit; chosen: a kit character in that role; failed, with error) and character once kept or chosen. price.per_person is a sheet's price; charged is what was spent. people_for_brief, once ready: the {character, does} entries to add to people in plan_music_video, design_music_video_shoot and create_music_video.",
24230
+ method: "GET",
24231
+ path: "/api/v1/music-video-castings/{casting_id}",
24232
+ scopes: ["videos:read"],
24233
+ input: external_exports.object({ casting_id: CastingIdSchema.describe("The casting id (casting_\u2026)") }),
24234
+ readOnly: true,
23089
24235
  destructive: false,
23090
24236
  idempotent: true,
23091
- cli: ["lookbook", "keep"],
23092
- mcp: "keep_music_video_lookbook_piece"
24237
+ cli: ["casting", "get"],
24238
+ mcp: "get_music_video_casting"
23093
24239
  },
23094
24240
  {
23095
- id: "music_video_lookbooks.redraw",
24241
+ id: "music_video_castings.draw",
23096
24242
  group: "videos",
23097
- title: "Redraw a lookbook piece",
23098
- summary: "Draws one of the director's pieces again, with an optional note (spends credits)",
23099
- description: "credits: price.credits_per_picture.",
24243
+ title: "Draw a music video's cast",
24244
+ summary: "Draws the people the user kept as character sheets (spends credits)",
24245
+ description: `Only after the user's yes to the people and the price. people: the ones kept, by index (the others are declined), each with an edited name or description if the user changed it, or character: a kit character's handle (list_characters) in that role instead, free. An empty list keeps it to the artist (nobody else is cast). credits must be price.per_person times the people drawn (0 when none is); another price answers 409 with the current one. Each description is read first like start_character's describe mode (one made-up adult, never a real or famous person: 422 naming the person's index). One hold for all; each sheet is drawn plain (base clothes, the person only: the video dresses them later), charged once it passes its check, and kept in the song artist's kit as AI-made, not shared. Poll get_music_video_casting until ready, then add people_for_brief to people. Needs an active plan (402 plan_required without one; get_account: plan.active).`,
23100
24246
  method: "POST",
23101
- path: "/api/v1/music-video-lookbooks/{lookbook_id}/pieces/{piece}/redraw",
24247
+ path: "/api/v1/music-video-castings/{casting_id}/draw",
23102
24248
  scopes: ["videos:write"],
23103
24249
  input: external_exports.object({
23104
- lookbook_id: LookbookIdSchema.describe("The lookbook id"),
23105
- piece: external_exports.number().int().min(1).describe("The piece's number"),
23106
- note: external_exports.string().trim().min(1).max(500).optional().describe('What to change: "warmer light, nobody else"'),
23107
- credits: external_exports.number().int().positive().describe("The price shown (price.credits_per_picture)")
24250
+ casting_id: CastingIdSchema.describe("The casting id"),
24251
+ credits: CastingDrawSchema.shape.credits.describe("The price shown: price.per_person \xD7 the people drawn"),
24252
+ people: CastingDrawSchema.shape.people.describe('The people kept: [{"index":1},{"index":2,"description":"\u2026"},{"index":3,"character":"mia-torres"}]; [] keeps it to the artist')
23108
24253
  }),
23109
24254
  readOnly: false,
23110
24255
  destructive: false,
23111
24256
  idempotent: false,
23112
- cli: ["lookbook", "redraw"],
23113
- mcp: "redraw_music_video_lookbook_piece"
24257
+ cli: ["casting", "draw"],
24258
+ mcp: "draw_music_video_cast"
24259
+ },
24260
+ {
24261
+ id: "music_video_castings.delete",
24262
+ group: "videos",
24263
+ title: "Delete a casting",
24264
+ summary: "Deletes a casting; the people already kept stay in the kit",
24265
+ description: "Not while its people are drawn (409).",
24266
+ method: "DELETE",
24267
+ path: "/api/v1/music-video-castings/{casting_id}",
24268
+ scopes: ["videos:write"],
24269
+ input: external_exports.object({ casting_id: CastingIdSchema.describe("The casting id (casting_\u2026)") }),
24270
+ readOnly: false,
24271
+ destructive: true,
24272
+ idempotent: true,
24273
+ cli: ["casting", "delete"],
24274
+ mcp: "delete_music_video_casting"
23114
24275
  },
23115
24276
  {
23116
24277
  id: "music_video_plans.delete",
23117
24278
  group: "videos",
23118
24279
  title: "Delete a shot list",
23119
24280
  summary: "Deletes a shot list no video was made from, with every draft of it",
23120
- description: "Deletes the shot list with the drafts it was rewritten from and into, and their drawn frames. One a video was made from (or a delivered video's revision) stays with it: 409.",
24281
+ description: "Deletes the shot list with every version of it (list_music_video_versions; delete_music_video_version deletes one). Opening frames drawn for it stay. One a video was made from (or a delivered video's revision) stays with it: 409.",
23121
24282
  method: "DELETE",
23122
24283
  path: "/api/v1/music-video-plans/{plan_id}",
23123
24284
  scopes: ["videos:write"],
@@ -23132,8 +24293,8 @@ var OPERATIONS = [
23132
24293
  id: "music_video_plans.list",
23133
24294
  group: "videos",
23134
24295
  title: "List music video drafts",
23135
- summary: "A song's music videos in the making: shot lists not made yet and lookbooks not used yet",
23136
- description: "The latest draft of each shot list of the song that no video was made from, and the lookbooks no shot list was written from, from the last 30 days, newest first. Pick one up with get_music_video_plan or get_music_video_lookbook.",
24296
+ summary: "A song's shot lists not made yet, and what writing one costs",
24297
+ description: "price.credits: what writing a shot list (plan_music_video) costs now, and rewriting one from a note. plans: the latest draft of each shot list of the song that no video was made from, from the last 30 days, newest first; pick one up with get_music_video_plan. writing: the shot lists still being written for you.",
23137
24298
  method: "GET",
23138
24299
  path: "/api/v1/music-video-plans",
23139
24300
  scopes: ["videos:read"],
@@ -23466,6 +24627,44 @@ var OPERATIONS = [
23466
24627
  cli: ["videos", "delete"],
23467
24628
  mcp: "delete_video"
23468
24629
  },
24630
+ {
24631
+ id: "video_drafts.list",
24632
+ group: "videos",
24633
+ title: "List video drafts",
24634
+ summary: "Videos started in the studio and not made yet, newest first (kept 30 days)",
24635
+ description: "The person's own drafts in this workspace: one per song and kind of video (lyric-video, canvas, music-video), with the step it was left on and when. Starting the same kind again for a song opens its draft. They are made in the studio on web and app; to make a video here, quote and create it.",
24636
+ method: "GET",
24637
+ path: "/api/v1/video-drafts",
24638
+ scopes: ["videos:read", "videos:write"],
24639
+ input: external_exports.object({}),
24640
+ readOnly: true,
24641
+ destructive: false,
24642
+ idempotent: true,
24643
+ cli: ["drafts", "list"],
24644
+ mcp: "list_video_drafts"
24645
+ },
24646
+ {
24647
+ id: "video_drafts.delete",
24648
+ group: "videos",
24649
+ title: "Delete video drafts",
24650
+ summary: "Delete one draft, or every draft (of a song or a kind)",
24651
+ description: "Only when the user asks. id: that draft. Without id, all: true deletes every one of the person's drafts in this workspace, only a song's with song_id, only a kind with type: tell the user how many (list_video_drafts) and ask first. Videos already made are never touched. Answers deleted, how many.",
24652
+ method: "DELETE",
24653
+ path: "/api/v1/video-drafts",
24654
+ scopes: ["videos:write"],
24655
+ input: external_exports.object({
24656
+ id: external_exports.uuid().optional().describe("The draft id (list_video_drafts)"),
24657
+ all: external_exports.literal(true).optional().describe("Without id: every draft, narrowed by song_id or type"),
24658
+ song_id: songId.optional().describe("With all: only this song's drafts"),
24659
+ type: external_exports.enum(["lyric-video", "canvas", "music-video"]).optional().describe("With all: only drafts of this kind")
24660
+ }),
24661
+ readOnly: false,
24662
+ destructive: true,
24663
+ idempotent: true,
24664
+ cli: ["drafts", "delete"],
24665
+ mcp: "delete_video_drafts",
24666
+ example: { all: true }
24667
+ },
23469
24668
  {
23470
24669
  id: "videos.share",
23471
24670
  group: "videos",
@@ -27143,16 +28342,16 @@ function chosenWorkspace(config2, named = process.env.KINETUNE_ORGANIZATION) {
27143
28342
  const wanted = named?.trim();
27144
28343
  if (!wanted) return null;
27145
28344
  const stored = Object.entries(config2.workspaces ?? {});
27146
- const found = stored.find(([id2]) => id2 === wanted) ?? stored.find(([, w]) => w.name.toLowerCase() === wanted.toLowerCase());
28345
+ const found = stored.find(([id3]) => id3 === wanted) ?? stored.find(([, w]) => w.name.toLowerCase() === wanted.toLowerCase());
27147
28346
  if (found) return found[0];
27148
- throw new WorkspaceNotSignedIn(`Not signed in to ${wanted}${stored.length ? ` (signed in to: ${stored.map(([id2, w]) => `${w.name} ${id2}`).join(", ")})` : ""}. Run \`kinetune auth login --organization ${wanted}\`.`);
28347
+ throw new WorkspaceNotSignedIn(`Not signed in to ${wanted}${stored.length ? ` (signed in to: ${stored.map(([id3, w]) => `${w.name} ${id3}`).join(", ")})` : ""}. Run \`kinetune auth login --organization ${wanted}\`.`);
27149
28348
  }
27150
28349
  var WorkspaceNotSignedIn = class extends Error {
27151
28350
  };
27152
28351
  var signInOf = (config2, organization) => organization ? config2.workspaces?.[organization]?.auth : config2.auth;
27153
28352
  function withSignIn(config2, organization, auth) {
27154
28353
  const previous = signInOf(config2, organization), same = (other) => Boolean(previous && other && secretOf(other) === secretOf(previous));
27155
- const workspaces = config2.workspaces && Object.fromEntries(Object.entries(config2.workspaces).map(([id2, w]) => [id2, id2 === organization || same(w.auth) ? { ...w, auth } : w]));
28354
+ const workspaces = config2.workspaces && Object.fromEntries(Object.entries(config2.workspaces).map(([id3, w]) => [id3, id3 === organization || same(w.auth) ? { ...w, auth } : w]));
27156
28355
  return { ...config2, ...workspaces ? { workspaces } : {}, ...organization === null || same(config2.auth) ? { auth } : {} };
27157
28356
  }
27158
28357
  var secretOf = (auth) => auth.type === "oauth" ? auth.access_token : auth.api_key;
@@ -27307,7 +28506,7 @@ async function revoke(config2, auth = config2.auth) {
27307
28506
  // package.json
27308
28507
  var package_default = {
27309
28508
  name: "@kinetune/cli",
27310
- version: "2.11.0",
28509
+ version: "4.1.0",
27311
28510
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
27312
28511
  license: "MIT",
27313
28512
  homepage: "https://kinetune.com/developers#cli",
@@ -27495,7 +28694,7 @@ MCP tool: ${op.mcp} REST: ${op.method} ${op.path}`);
27495
28694
  if (type === "boolean" || p.const === true) {
27496
28695
  cmd.addOption(new Option(`--${kebab(name)}`, desc || name));
27497
28696
  if (type === "boolean" && p.default === void 0) cmd.addOption(new Option(`--no-${kebab(name)}`, `Send ${name} false`));
27498
- } else if (type === "array" && p.items?.type !== "object") cmd.addOption(new Option(`--${kebab(name)} <values...>`, desc).argParser((v, prev) => [...prev ?? [], ...v.split(",")]));
28697
+ } else if (type === "array" && p.items?.type !== "object" && !p.items?.anyOf && !p.items?.oneOf) cmd.addOption(new Option(`--${kebab(name)} <values...>`, desc).argParser((v, prev) => [...prev ?? [], ...v.split(",")]));
27499
28698
  else if (type === "number" || type === "integer") cmd.addOption(new Option(`--${kebab(name)} <number>`, desc).argParser(Number));
27500
28699
  else if (type === "object" || type === "json" || type === "array") cmd.addOption(new Option(`--${kebab(name)} <json>`, `${desc} (JSON)`).argParser((v) => {
27501
28700
  try {
@@ -27506,6 +28705,8 @@ MCP tool: ${op.mcp} REST: ${op.method} ${op.path}`);
27506
28705
  }));
27507
28706
  else cmd.addOption(new Option(`--${kebab(name)} <value>`, desc));
27508
28707
  }
28708
+ const deprecated = new Set(Object.entries(props).filter(([, prop]) => prop.deprecated || unwrapNullable(prop).schema.deprecated).map(([name]) => `--${kebab(name)}`));
28709
+ for (const option of cmd.options) if (deprecated.has(option.long ?? "")) option.hideHelp();
27509
28710
  for (const name of op.textFiles ?? []) cmd.option(`--${kebab(name)}-file <file>`, `${props[name]?.description ?? name}: read from a file (or - for stdin)`);
27510
28711
  cmd.option("--input <file>", "The whole input as JSON (a file, or - for stdin); flags override it");
27511
28712
  cmd.addOption(WORKSPACE_OPTION());
@@ -27582,17 +28783,18 @@ function program2() {
27582
28783
  });
27583
28784
  const GROUP_DESCRIPTIONS = {
27584
28785
  " uploads": "A signed upload URL for a file (for tools that pass URLs; the CLI sends files itself)",
27585
- " artists": "Artists and their image",
28786
+ " artists": "Artists, their image, their page and their profiles",
28787
+ " artists profiles": "The artist's links on other services: list, add, order, change, remove, find again",
28788
+ " artists page": "The artist page at kinetune.com/@handle: address, draft, preview, publish, stats",
27586
28789
  " songs": "Songs: upload, list, analysis",
27587
28790
  " looks": "Looks: reusable lyric-video designs",
27588
28791
  " quote": "Exact credits for a lyric video, Canvas or music video, before anything is charged",
27589
28792
  " create": "Create a lyric video, Canvas or music video (quotes first and asks unless --yes)",
27590
28793
  " videos": "Videos: status, wait, download, cancel",
27591
- " plan": "Plan a music video before paying: the director's concept and shots, free",
28794
+ " plan": "Plan a music video: the director's concept and shots, for the credits plans list shows",
27592
28795
  " plans": "Music video plans made earlier",
27593
28796
  " kit": "The artist kit: outfits, places and props a music video brief mentions by @handle",
27594
28797
  " casting": "Who else is in a music video: the director proposes people, each drawn as a character sheet after your yes",
27595
- " lookbook": "Design a music video shoot: the director's outfits, places and props as pictures, before the plan",
27596
28798
  " covers": "Cover art: Kinetune makes covers for a song (quote first), every cover kept; use, redraw or delete one"
27597
28799
  };
27598
28800
  const groups = /* @__PURE__ */ new Map();
@@ -27633,7 +28835,7 @@ function program2() {
27633
28835
  auth.command("list").description("The workspaces you are signed in to; --organization picks one for a command").action(async () => {
27634
28836
  const config2 = await loadConfig();
27635
28837
  const active = Object.entries(config2.workspaces ?? {}).find(([, w]) => config2.auth && JSON.stringify(w.auth) === JSON.stringify(config2.auth))?.[0];
27636
- print({ items: Object.entries(config2.workspaces ?? {}).map(([id2, w]) => ({ id: id2, name: w.name, type: w.auth.type === "oauth" ? "sign-in" : "api key", status: id2 === active ? "default" : "" })) });
28838
+ print({ items: Object.entries(config2.workspaces ?? {}).map(([id3, w]) => ({ id: id3, name: w.name, type: w.auth.type === "oauth" ? "sign-in" : "api key", status: id3 === active ? "default" : "" })) });
27637
28839
  });
27638
28840
  auth.command("status").description("The workspace, its plan, how you are signed in and the credit balance").addOption(WORKSPACE_OPTION()).action(async () => print(await call(operation("account.get"), {})));
27639
28841
  auth.command("token").description("Print the current bearer token (for curl or other tools)").addOption(WORKSPACE_OPTION()).action(async () => {
@@ -27642,16 +28844,16 @@ function program2() {
27642
28844
  auth.command("logout").description("Forget the stored credentials (and revoke the OAuth tokens); --organization: only that workspace's").addOption(WORKSPACE_OPTION()).action(async () => {
27643
28845
  const config2 = await loadConfig();
27644
28846
  if (workspace) {
27645
- let id2;
28847
+ let id3;
27646
28848
  try {
27647
- id2 = chosenWorkspace(config2, workspace);
28849
+ id3 = chosenWorkspace(config2, workspace);
27648
28850
  } catch (error62) {
27649
28851
  if (error62 instanceof WorkspaceNotSignedIn) throw new UsageError(error62.message);
27650
28852
  throw error62;
27651
28853
  }
27652
- const gone = config2.workspaces[id2];
28854
+ const gone = config2.workspaces[id3];
27653
28855
  await revoke(config2, gone.auth);
27654
- const { [id2]: _, ...rest } = config2.workspaces;
28856
+ const { [id3]: _, ...rest } = config2.workspaces;
27655
28857
  const isDefault = JSON.stringify(config2.auth) === JSON.stringify(gone.auth);
27656
28858
  const next = Object.values(rest)[0];
27657
28859
  await saveConfig({ ...config2, workspaces: rest, ...isDefault ? { auth: next?.auth } : {} });