@kinetune/cli 0.12.0 → 2.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 +17 -13
  2. package/dist/kinetune.mjs +701 -132
  3. package/package.json +1 -1
package/dist/kinetune.mjs CHANGED
@@ -1352,8 +1352,8 @@ function base64urlToUint8Array(base64url3) {
1352
1352
  function uint8ArrayToBase64url(bytes) {
1353
1353
  return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
1354
1354
  }
1355
- function hexToUint8Array(hex4) {
1356
- const cleanHex = hex4.replace(/^0x/, "");
1355
+ function hexToUint8Array(hex5) {
1356
+ const cleanHex = hex5.replace(/^0x/, "");
1357
1357
  if (cleanHex.length % 2 !== 0) {
1358
1358
  throw new Error("Invalid hex string length");
1359
1359
  }
@@ -20207,6 +20207,10 @@ var LYRIC_STYLES = {
20207
20207
  }
20208
20208
  };
20209
20209
  var LYRIC_STYLE_IDS = Object.keys(LYRIC_STYLES);
20210
+ function styleParts(id2) {
20211
+ const s = LYRIC_STYLES[id2];
20212
+ return { style: id2, lyrics: { ...s.lyrics }, fx: { ...s.fx }, spectrum: { ...s.spectrum }, finish: { ...s.finish }, player: s.player, hero: s.hero ?? "none" };
20213
+ }
20210
20214
 
20211
20215
  // ../composition/src/look.ts
20212
20216
  var LOOK_VERSION = 3;
@@ -20359,6 +20363,70 @@ var DisplaySchema = external_exports.object({
20359
20363
  }).strict();
20360
20364
  var DEFAULT_DISPLAY = { title: true, artist: true, cover: true, lyrics: true, badges: true };
20361
20365
 
20366
+ // ../composition/src/defaults.ts
20367
+ var EXAMPLE_LOOK = {
20368
+ version: LOOK_VERSION,
20369
+ category: "release",
20370
+ name: "Midnight Studio",
20371
+ description: "Deep blue studio haze with a crisp white sleeve and bold condensed type.",
20372
+ tags: ["bold", "night", "clean"],
20373
+ palette: { text: "#FFFFFF", muted: "#C9D2F2", accent: "#5B8CFF", accent2: "#B06BFF", shade: "#070B1A" },
20374
+ type: {
20375
+ title: { font: "bebas-neue", weight: 400, uppercase: true, tracking: 0.02 },
20376
+ artist: { font: "inter", weight: 500, uppercase: false, tracking: 0.01 },
20377
+ headline: { font: "inter", weight: 800, uppercase: true, tracking: 0.16 },
20378
+ lyrics: { font: "inter", weight: 800, uppercase: false, tracking: 0 }
20379
+ },
20380
+ layout: {
20381
+ "9:16": { arrangement: "stack", align: "center", cover_size: 0.64, gap: 1, vertical: "center", text_order: "title-first" },
20382
+ "16:9": { arrangement: "split", align: "start", cover_size: 0.62, gap: 1, vertical: "center", text_order: "title-first" },
20383
+ "1:1": { arrangement: "stack", align: "center", cover_size: 0.46, gap: 0.8, vertical: "center", text_order: "title-first" }
20384
+ },
20385
+ cover: { frame: "white", tilt: 0, shadow: 0.7, glow: 0.3 },
20386
+ headline: { style: "pill", default: "new-release" },
20387
+ badges: { style: "glass" },
20388
+ ...styleParts("showcase"),
20389
+ background: { kind: "image", source: "generated", prompt: "A dark blue photo studio with soft haze and a single cool key light on a seamless backdrop.", blur: 2, dim: 0.3, motion: "ken-burns", direction: "right" },
20390
+ overlay: { kind: "sparkles", density: 0.35 },
20391
+ visualizer: {
20392
+ blend: "screen",
20393
+ intensity: 0.8,
20394
+ shots: {
20395
+ intro: { engine: "polar-curves", preset_id: "config-1784810137382-604", overrides: {}, camera: "drift", opacity: 0.6 },
20396
+ verse: { engine: "waveform-v2", preset_id: "config-1768065577705-516", overrides: {}, camera: "drift", opacity: 0.7 },
20397
+ chorus: { engine: "audioReactiveSphere", preset_id: "config-1741402612225-728", overrides: {}, camera: "push", opacity: 0.85 },
20398
+ drop: { engine: "particleDance", preset_id: "config-1770146293356-684", overrides: {}, camera: "orbit", opacity: 0.9 },
20399
+ bridge: { engine: "polar-curves", preset_id: "config-1784810137382-604", overrides: {}, camera: "roll", opacity: 0.7 },
20400
+ outro: { engine: "waveform-v2", preset_id: "config-1768065577705-516", overrides: {}, camera: "pull", opacity: 0.6 }
20401
+ }
20402
+ },
20403
+ motion: { energy: 0.6, intro: "rise" }
20404
+ };
20405
+
20406
+ // ../composition/src/outro.ts
20407
+ var hex4 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/);
20408
+ var font = external_exports.enum(FONT_IDS);
20409
+ var OUTRO_BACKDROPS = ["scrim", "darken", "blur"];
20410
+ var OUTRO_TRANSITIONS = ["none", "flash", "glitch", "burn"];
20411
+ var OutroDesignSchema = external_exports.object({
20412
+ palette: external_exports.object({ text: hex4, muted: hex4, accent: hex4, shade: hex4 }).strict(),
20413
+ title_font: font,
20414
+ artist_font: font,
20415
+ title_uppercase: external_exports.boolean(),
20416
+ headline: external_exports.enum(HEADLINES),
20417
+ headline_style: external_exports.enum(["pill", "plain", "underline", "outline", "ribbon"]),
20418
+ cover_frame: external_exports.enum(["none", "white", "accent", "rounded", "circle", "vinyl"]),
20419
+ badges: external_exports.enum(["light", "dark", "glass", "outline"]),
20420
+ align: external_exports.enum(["center", "start"]),
20421
+ vertical: external_exports.enum(["center", "upper", "lower"]),
20422
+ entrance: external_exports.enum(["fade", "rise", "zoom"]),
20423
+ /** What sits between the footage and the card: a soft gradient, an even darkening, or the footage blurred. */
20424
+ backdrop: external_exports.enum(OUTRO_BACKDROPS),
20425
+ /** How the footage meets the card as it comes in: nothing more than its entrance, or a flash, a glitch or a film burn. */
20426
+ transition: external_exports.enum(OUTRO_TRANSITIONS)
20427
+ }).strict();
20428
+ var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true });
20429
+
20362
20430
  // ../video-types/src/kit.ts
20363
20431
  var KIT_KINDS = ["outfit", "place", "prop"];
20364
20432
  var KIT_HANDLE = /^[a-z0-9][a-z0-9-]{0,39}$/;
@@ -20386,6 +20454,7 @@ var BACKGROUND_SOURCES2 = {
20386
20454
  var MAX_BACKGROUND_SCENES = 4;
20387
20455
  var SINGLE_SCENE_STYLES = ["behind", "screen"];
20388
20456
  var StockIdSchema = external_exports.string().regex(/^\d{1,20}$/, "A stock photo or video id (digits)");
20457
+ var KitItemIdSchema = external_exports.string().regex(/^kit_[0-9a-f-]{36}$/, "A kit piece id (kit_\u2026)");
20389
20458
  var BACKGROUND_REFERENCES = ["none", "stock"];
20390
20459
  var BackgroundRequestSchema = external_exports.object({
20391
20460
  source: external_exports.enum(BACKGROUND_SOURCE_IDS).optional(),
@@ -20478,6 +20547,7 @@ var CANVAS_SOURCES = {
20478
20547
  };
20479
20548
  var CANVAS_QUALITIES = ["standard", "high"];
20480
20549
  var CANVAS_RESOLUTIONS = ["720p", "1080p"];
20550
+ var CANVAS_INSPIRATIONS = ["cover", "song"];
20481
20551
  var CANVAS_STYLES = ["cinematic", "dreamy", "abstract", "surreal", "retro", "minimal", "dark", "vibrant", "nature", "urban"];
20482
20552
  var CanvasRequestSchema = external_exports.object({
20483
20553
  type: external_exports.literal("canvas"),
@@ -20487,25 +20557,82 @@ var CanvasRequestSchema = external_exports.object({
20487
20557
  resolution: external_exports.enum(CANVAS_RESOLUTIONS).default("1080p"),
20488
20558
  style: external_exports.enum(CANVAS_STYLES).optional(),
20489
20559
  direction: external_exports.string().trim().max(2e3).optional(),
20560
+ inspiration: external_exports.enum(CANVAS_INSPIRATIONS).default("cover"),
20490
20561
  feature_artist: external_exports.enum(CANVAS_FEATURE_ARTIST_MODES).default("auto"),
20562
+ // Who may appear (feature_artist auto or always): a character of a Creator workspace's cast, whose projects have none of their
20563
+ // own. Omitted: the song's artist's character.
20564
+ performer: KitItemIdSchema.optional(),
20491
20565
  seconds: external_exports.number().int().min(CANVAS_MIN_SECONDS).max(CANVAS_MAX_SECONDS).default(CANVAS_MAX_SECONDS),
20492
20566
  /** The stock photo or video (GET /stock) for the stock sources; omitted, the director searches and picks. */
20493
20567
  stock_id: StockIdSchema.optional()
20494
20568
  }).strict().superRefine((value, ctx) => {
20495
20569
  if (value.feature_artist === "always" && CANVAS_SOURCES[value.source].source === "stock")
20496
20570
  ctx.addIssue({ code: "custom", path: ["feature_artist"], message: "Only an AI image or AI video Canvas can show the artist" });
20571
+ if (value.performer && (value.feature_artist === "never" || CANVAS_SOURCES[value.source].source === "stock"))
20572
+ 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)" });
20497
20573
  if (value.stock_id && CANVAS_SOURCES[value.source].source !== "stock")
20498
20574
  ctx.addIssue({ code: "custom", path: ["stock_id"], message: "stock_id goes with the stock-photo and stock-video sources" });
20499
20575
  });
20500
- var MUSIC_VIDEO_CATEGORY_IDS = ["performance", "intercut", "cinematic", "story", "surreal"];
20576
+ var MUSIC_VIDEO_CATEGORY_IDS = [
20577
+ "performance",
20578
+ "intercut",
20579
+ "cinematic",
20580
+ "story",
20581
+ "surreal",
20582
+ "studio",
20583
+ "live",
20584
+ "instrument",
20585
+ "lyric-led",
20586
+ "vlog",
20587
+ "fashion",
20588
+ "oner",
20589
+ "cast-story",
20590
+ "mood",
20591
+ "places",
20592
+ "dance",
20593
+ "band",
20594
+ "action"
20595
+ ];
20501
20596
  var MUSIC_VIDEO_CATEGORIES = {
20502
- performance: { label: "Performance", description: "The artist sings to camera in one place that suits the song." },
20503
- intercut: { label: "Performance & story", description: "The artist sings to camera, cut against them living the song\u2019s story." },
20597
+ performance: { label: "Performance", description: "The performer sings to camera in one place that suits the song." },
20598
+ intercut: { label: "Performance & story", description: "The performer sings to camera, cut against them living the song\u2019s story." },
20504
20599
  cinematic: { label: "Cinematic", description: "A performance with a moving camera that travels through a location." },
20505
- story: { label: "Story", description: "The artist acts out the song\u2019s story while singing it." },
20506
- surreal: { label: "Surreal", description: "The world around the artist transforms with the song, dreamlike and impossible." }
20600
+ story: { label: "Story", description: "The performer acts out the song\u2019s story while singing it." },
20601
+ surreal: { label: "Surreal", description: "The world around the performer transforms with the song, dreamlike and impossible." },
20602
+ studio: { label: "Studio session", description: "In the studio or a live room: at the mic, at the instrument, between takes." },
20603
+ live: { label: "Live stage", description: "On stage under the lights, the crowd a glow behind them." },
20604
+ instrument: { label: "At the instrument", description: "The performer plays the song: piano, guitar, decks or drums.", needs: { plays: true } },
20605
+ "lyric-led": { label: "Lyric-led story", description: "A story told between the key lines, which the performer sings to camera.", needs: { sings: true } },
20606
+ vlog: { label: "Phone diary", description: "Handheld and selfie-style, like a day filmed on their phone." },
20607
+ fashion: { label: "Fashion editorial", description: "Poses, fabric and light, cut like a fashion film." },
20608
+ oner: { label: "One take", description: "One unbroken take that travels with the performer from start to end.", needs: { keyframes: true } },
20609
+ "cast-story": { label: "Story with a cast", description: "Other people live the song\u2019s story; the performer needn\u2019t appear.", needs: { onScreen: "cast" } },
20610
+ mood: { label: "Mood", description: "Light, places and objects moving with the music; no one on screen.", needs: { onScreen: "none" } },
20611
+ places: { label: "Places", description: "A journey through places that suit the song, the performer small in them or absent.", needs: { onScreen: "none" } },
20612
+ dance: { label: "Dance", description: "Choreography: the performer and dancers move with the song.", needs: { ability: "choreography" } },
20613
+ band: { label: "Band", description: "The whole band performs the song together.", needs: { ability: "ensemble" } },
20614
+ action: { label: "Action", description: "Chases, stunts and fast motion cut to the song.", needs: { ability: "action" } }
20507
20615
  };
20508
- var MUSIC_VIDEO_STYLE_IDS = ["natural", "film", "golden-hour", "neon-night", "noir", "vintage", "dreamy"];
20616
+ var MUSIC_VIDEO_STYLE_IDS = [
20617
+ "natural",
20618
+ "film",
20619
+ "golden-hour",
20620
+ "neon-night",
20621
+ "noir",
20622
+ "vintage",
20623
+ "dreamy",
20624
+ "super-8",
20625
+ "vhs",
20626
+ "documentary",
20627
+ "glossy-pop",
20628
+ "indie",
20629
+ "cyberpunk",
20630
+ "y2k",
20631
+ "lofi",
20632
+ "painterly",
20633
+ "anime",
20634
+ "clay"
20635
+ ];
20509
20636
  var MUSIC_VIDEO_STYLES = {
20510
20637
  natural: { label: "Natural", description: "True-to-life color and light." },
20511
20638
  film: { label: "Film", description: "35 mm film: grain, soft contrast and rich color." },
@@ -20513,37 +20640,87 @@ var MUSIC_VIDEO_STYLES = {
20513
20640
  "neon-night": { label: "Neon night", description: "Night with colored neon and wet reflections." },
20514
20641
  noir: { label: "Noir", description: "High-contrast black and white." },
20515
20642
  vintage: { label: "Vintage", description: "A faded retro grade with period detail." },
20516
- dreamy: { label: "Dreamy", description: "Soft haze, glow and pastel light." }
20643
+ dreamy: { label: "Dreamy", description: "Soft haze, glow and pastel light." },
20644
+ "super-8": { label: "Super 8", description: "Home-movie film: heavy grain, warm flicker, soft edges." },
20645
+ vhs: { label: "VHS", description: "A camcorder tape: bleeding color, scan lines, a date stamp feel." },
20646
+ documentary: { label: "Documentary", description: "Handheld and observed, natural light, nothing staged." },
20647
+ "glossy-pop": { label: "Glossy pop", description: "Saturated, polished and bright, a big-budget pop sheen." },
20648
+ indie: { label: "Indie", description: "Muted, desaturated color and quiet, real places." },
20649
+ cyberpunk: { label: "Cyberpunk", description: "Rain, holograms and a city of hard neon." },
20650
+ y2k: { label: "Y2K", description: "Chrome, pastels and early-2000s gloss." },
20651
+ lofi: { label: "Lo-fi bedroom", description: "Warm lamps, soft focus, a small room at night." },
20652
+ painterly: { label: "Painterly", description: "Moving like a painting: brushstrokes and color fields.", needs: { ability: "stylized" } },
20653
+ anime: { label: "Anime", description: "Hand-drawn anime: clean lines, cel shading.", needs: { ability: "stylized" } },
20654
+ clay: { label: "Clay", description: "Stop-motion clay: soft forms and handmade texture.", needs: { ability: "stylized" } }
20517
20655
  };
20518
- var MUSIC_VIDEO_QUALITY_IDS = ["480p", "768p", "1080p"];
20519
- var DEFAULT_MUSIC_VIDEO_QUALITY = "768p";
20520
- var MUSIC_VIDEO_CAST_SLOTS = ["face", "outfit"];
20521
- var MUSIC_VIDEO_MODEL_IDS = ["one-take"];
20656
+ var MUSIC_VIDEO_PERFORMANCES = ["sings", "plays", "over"];
20657
+ var MUSIC_VIDEO_ON_SCREEN = ["artist", "cast", "none"];
20658
+ var MUSIC_VIDEO_LIPSYNC = ["auto", "never"];
20659
+ var MUSIC_VIDEO_QUALITY_IDS = ["480p", "720p", "768p", "1080p", "4k"];
20660
+ var MUSIC_VIDEO_QUALITIES = {
20661
+ "480p": { label: "480p", description: "Drafts and small screens; the lowest price." },
20662
+ "720p": { label: "720p", description: "HD, sharp on phones and in social feeds." },
20663
+ "768p": { label: "768p", description: "Sharp on phones and in social feeds." },
20664
+ "1080p": { label: "1080p", description: "Full HD for YouTube and a release." },
20665
+ "4k": { label: "4K", description: "Ultra HD for big screens; the highest price." }
20666
+ };
20667
+ var PERSON_SLOTS = 2;
20668
+ var shotRoom = (model, people = 1) => Math.max(0, model.shot.references - Math.min(people, model.shot.people) * PERSON_SLOTS);
20669
+ function kindsFor(model) {
20670
+ return MUSIC_VIDEO_CATEGORY_IDS.filter((id2) => {
20671
+ const needs = MUSIC_VIDEO_CATEGORIES[id2].needs;
20672
+ if (!needs) return true;
20673
+ 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);
20674
+ });
20675
+ }
20676
+ var looksFor = (model) => MUSIC_VIDEO_STYLE_IDS.filter((id2) => {
20677
+ const needs = MUSIC_VIDEO_STYLES[id2].needs;
20678
+ return !needs || model.abilities.includes(needs.ability);
20679
+ });
20680
+ var withCatalog = (model) => ({ ...model, categories: kindsFor(model), styles: looksFor(model) });
20681
+ var MUSIC_VIDEO_MODEL_IDS = ["one-take", "seedance-2-0", "seedance-2-0-fast", "seedance-2-0-mini", "seedance-2-5"];
20682
+ var MUSIC_VIDEO_LENGTH_BOUNDS = { min: 8, max: 1800 };
20522
20683
  var DEFAULT_MUSIC_VIDEO_MODEL = "one-take";
20684
+ function seedance(label, model, qualities) {
20685
+ return {
20686
+ label,
20687
+ description: `${model}: a performer sings your song, lip-synced, kept from their character, or your cast lives its story, in shots cut between the lines.`,
20688
+ qualities,
20689
+ defaultQuality: "720p",
20690
+ formats: ["9:16", "16:9", "1:1"],
20691
+ shot: { references: 9, people: 3 },
20692
+ // Clips of up to 15 seconds, each several shots it edits itself (its video keeps its own sound, its lips on it). Its first and last
20693
+ // frames go as reference pictures named in the prompt (BytePlus's keyframe anchors), so it makes continuous takes too.
20694
+ ...withCatalog({ clip: { fps: 24, frames: 360, context: 0 }, keyframes: { start: true, end: true }, performances: MUSIC_VIDEO_PERFORMANCES, onScreen: ["artist", "cast", "none"], abilities: [] })
20695
+ };
20696
+ }
20523
20697
  var MUSIC_VIDEO_MODELS = {
20524
20698
  "one-take": {
20525
20699
  label: "MiniMax H3 Max",
20526
- description: "MiniMax\u2019s H3 Max video model: the artist performs your song, lip-synced, from two photos (the face and the outfit), in shots cut between the lines.",
20527
- clip: { fps: 24, frames: 360, context: 0 },
20528
- keyframes: { start: true, end: true },
20529
- minSeconds: 15,
20530
- maxSeconds: 600,
20700
+ description: "MiniMax\u2019s H3 Max video model: a performer sings your song, lip-synced, kept from their character, or your cast lives its story, in shots cut between the lines.",
20531
20701
  formats: ["9:16", "16:9", "1:1"],
20532
- cast: ["face", "outfit"],
20533
- kit: { outfits: 6, places: 6, props: 8, perClip: 7 },
20534
- categories: MUSIC_VIDEO_CATEGORY_IDS,
20535
- styles: MUSIC_VIDEO_STYLE_IDS
20536
- }
20702
+ shot: { references: 9, people: 3 },
20703
+ // On screen: the artist, a cast (each kept from their own character, as the artist is) or no one (a shot from words alone, or its
20704
+ // places and props). No choreography, ensembles, action or stylized looks yet; its kinds and looks follow from that.
20705
+ qualities: ["480p", "768p", "1080p"],
20706
+ defaultQuality: "768p",
20707
+ ...withCatalog({ clip: { fps: 24, frames: 360, context: 0 }, keyframes: { start: true, end: true }, performances: MUSIC_VIDEO_PERFORMANCES, onScreen: ["artist", "cast", "none"], abilities: [] })
20708
+ },
20709
+ // ByteDance's Seedance: shots up to 15 seconds (2.5 makes 30; kept at 15 until a test shows its lip-sync holds longer), nine
20710
+ // pictures a shot (2.5 takes 30; the kit stays the same), and no given first or last frame together with the song, so no
20711
+ // continuous takes. People in its pictures must be registered with the model first (docs/SEEDANCE.md).
20712
+ "seedance-2-0": { ...seedance("Seedance 2.0", "ByteDance\u2019s Seedance 2.0 video model", ["480p", "720p", "1080p", "4k"]) },
20713
+ "seedance-2-0-fast": { ...seedance("Seedance 2.0 Fast", "ByteDance\u2019s Seedance 2.0 Fast video model, quicker and cheaper", ["480p", "720p"]) },
20714
+ "seedance-2-0-mini": { ...seedance("Seedance 2.0 Mini", "ByteDance\u2019s Seedance 2.0 Mini video model, the lowest price", ["480p", "720p"]) },
20715
+ "seedance-2-5": { ...seedance("Seedance 2.5", "ByteDance\u2019s Seedance 2.5 video model, its most capable", ["480p", "720p", "1080p"]) }
20537
20716
  };
20538
- var ARTIST_PHOTOS_PER_UPLOAD = 20;
20539
- var ArtistPhotoIdSchema = external_exports.string().regex(/^photo_[0-9a-f-]{36}$/, "An artist photo id (photo_\u2026)");
20540
20717
  var MusicVideoPlanIdSchema = external_exports.string().regex(/^plan_[0-9a-f-]{36}$/, "A music video plan id (plan_\u2026)");
20541
20718
  var LookbookIdSchema = external_exports.string().regex(/^lookbook_[0-9a-f-]{36}$/, "A lookbook id (lookbook_\u2026)");
20542
- var MusicVideoCastSchema = external_exports.object({ face_photo_id: ArtistPhotoIdSchema.optional(), outfit_photo_id: ArtistPhotoIdSchema.optional() }).strict();
20719
+ var MusicVideoLookIdSchema = external_exports.string().regex(/^mvlook_[0-9a-f-]{36}$/, "A music video Look id (mvlook_\u2026)");
20720
+ var MusicVideoCastSchema = external_exports.object({ outfit_kit: external_exports.string().regex(/^[a-z0-9-]{1,40}$/, "A kit outfit\u2019s handle").optional() }).strict();
20543
20721
  var MUSIC_VIDEO_SCENE_MODES = ["invent", "stock"];
20544
20722
  var MusicVideoScenesSchema = external_exports.object({ mode: external_exports.enum(MUSIC_VIDEO_SCENE_MODES) }).strict();
20545
20723
  var MUSIC_VIDEO_TAKES = ["cuts", "continuous"];
20546
- var KitItemIdSchema = external_exports.string().regex(/^kit_[0-9a-f-]{36}$/, "A kit piece id (kit_\u2026)");
20547
20724
  var KitHandleSchema = external_exports.string().regex(KIT_HANDLE, "Lowercase letters, digits and hyphens, at most 40");
20548
20725
  var CropRectSchema = external_exports.object({ x: external_exports.number().min(0).max(1), y: external_exports.number().min(0).max(1), w: external_exports.number().min(0.02).max(1), h: external_exports.number().min(0.02).max(1) }).strict().refine((c) => c.x + c.w <= 1.0001 && c.y + c.h <= 1.0001, { message: "The crop must stay inside the image" });
20549
20726
  var KitItemCreateSchema = external_exports.object({
@@ -20557,8 +20734,13 @@ var KitItemUpdateSchema = external_exports.object({
20557
20734
  name: external_exports.string().trim().min(1).max(60).optional(),
20558
20735
  handle: KitHandleSchema.optional(),
20559
20736
  description: external_exports.string().trim().max(300).nullable().optional(),
20560
- crop: CropRectSchema.optional()
20737
+ crop: CropRectSchema.optional(),
20738
+ /** A character only: it shows an AI-made person (looks like no real person) or a real one. */
20739
+ ai_made: external_exports.boolean().optional(),
20740
+ /** Offered to every other artist's studio too (true), or only its own artist's (false). */
20741
+ shared: external_exports.boolean().optional()
20561
20742
  }).strict().refine((v) => Object.keys(v).length > 0, { message: "Nothing to change" });
20743
+ var MusicVideoPersonSchema = external_exports.object({ character: KitHandleSchema, does: external_exports.string().trim().min(1).max(300).optional(), outfit: KitHandleSchema.optional() }).strict();
20562
20744
  var musicVideoBrief = {
20563
20745
  model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).default(DEFAULT_MUSIC_VIDEO_MODEL),
20564
20746
  category: external_exports.enum(MUSIC_VIDEO_CATEGORY_IDS).default("performance"),
@@ -20566,27 +20748,47 @@ var musicVideoBrief = {
20566
20748
  aspect_ratio: AspectRatioSchema.default("9:16"),
20567
20749
  trim: TrimSchema.optional(),
20568
20750
  direction: external_exports.string().trim().max(2e3).optional(),
20751
+ // Who is on screen: a performer (artist: the song's artist or the brief's performer, kept from their character), a cast the director
20752
+ // describes, or no one. Omitted: the kind's (a story with a cast, a mood video with no one, else the performer). Only what the model
20753
+ // makes (MUSIC_VIDEO_MODELS[].onScreen).
20754
+ on_screen: external_exports.enum(MUSIC_VIDEO_ON_SCREEN).optional(),
20755
+ // Who performs when someone does (on screen: artist): any character of the workspace (an artist's or the cast), sung or played to
20756
+ // camera. Omitted: the song's artist's.
20757
+ performer: KitItemIdSchema.optional(),
20569
20758
  cast: MusicVideoCastSchema.optional(),
20759
+ // The people besides the performer (one entry a character, in the shots' room for people), each with what they do if the artist
20760
+ // says; the director decides the rest. direction may mention them too.
20761
+ people: external_exports.array(MusicVideoPersonSchema).max(8).refine((list) => new Set(list.map((p) => p.character)).size === list.length, { message: "Each person once" }).optional(),
20570
20762
  scenes: MusicVideoScenesSchema.default({ mode: "invent" }),
20571
- // Design the shoot: the lookbook whose kept pieces the video uses, like the kit pieces the direction mentions.
20763
+ // The lookbook whose kept pieces the video uses, like the kit pieces the direction mentions.
20572
20764
  lookbook_id: LookbookIdSchema.optional(),
20573
20765
  // How the shots meet: cuts (between lines, like an edit; no pictures), or continuous takes, where the director carries a
20574
20766
  // shot on into the next through one picture drawn for the join (priced per picture).
20575
- takes: external_exports.enum(MUSIC_VIDEO_TAKES).default("cuts")
20767
+ takes: external_exports.enum(MUSIC_VIDEO_TAKES).default("cuts"),
20768
+ // Whether the artist sings on camera: the director decides, or never (the song plays over every shot).
20769
+ lipsync: external_exports.enum(MUSIC_VIDEO_LIPSYNC).default("auto"),
20770
+ // A music video Look (made public by someone, or the workspace's own) whose direction, places and props the video follows.
20771
+ look_id: MusicVideoLookIdSchema.optional()
20576
20772
  };
20577
20773
  var MUSIC_VIDEO_BRIEF_FIELDS = Object.keys(musicVideoBrief);
20578
- var CAST_FIELDS = { face: "face_photo_id", outfit: "outfit_photo_id" };
20774
+ var onScreenOf = (brief) => brief.on_screen ?? MUSIC_VIDEO_CATEGORIES[brief.category]?.needs?.onScreen ?? "artist";
20579
20775
  var fitsModel = (value, ctx) => {
20580
20776
  const model = MUSIC_VIDEO_MODELS[value.model];
20581
20777
  const issue2 = (path4, message) => ctx.addIssue({ code: "custom", path: [path4], message });
20582
20778
  if (!model.categories.includes(value.category)) issue2("category", `${model.label} doesn\u2019t make ${MUSIC_VIDEO_CATEGORIES[value.category].label} videos`);
20583
20779
  if (value.style && !model.styles.includes(value.style)) issue2("style", `${model.label} doesn\u2019t make the ${MUSIC_VIDEO_STYLES[value.style].label} look`);
20584
20780
  if (!model.formats.includes(value.aspect_ratio)) issue2("aspect_ratio", `${model.label} makes ${model.formats.join(", ")}`);
20585
- if (value.trim && value.trim.end_seconds - value.trim.start_seconds > model.maxSeconds + 1e-6) issue2("trim", `A music video is at most ${model.maxSeconds / 60} minutes: pick a shorter section`);
20586
- if (value.trim && value.trim.end_seconds - value.trim.start_seconds < model.minSeconds - 1e-6) issue2("trim", `A music video is at least ${model.minSeconds} seconds: pick a longer section`);
20587
- if (value.scenes && value.scenes.mode !== "invent" && !model.kit.places) issue2("scenes", `${model.label} invents every place`);
20588
- for (const slot of MUSIC_VIDEO_CAST_SLOTS) if (value.cast?.[CAST_FIELDS[slot]] && !model.cast.includes(slot)) issue2("cast", `${model.label} takes no ${slot} photo`);
20781
+ if (value.trim && value.trim.end_seconds - value.trim.start_seconds > MUSIC_VIDEO_LENGTH_BOUNDS.max + 1e-6) issue2("trim", `A music video is at most ${MUSIC_VIDEO_LENGTH_BOUNDS.max / 60} minutes: pick a shorter section`);
20782
+ if (value.trim && value.trim.end_seconds - value.trim.start_seconds < MUSIC_VIDEO_LENGTH_BOUNDS.min - 1e-6) issue2("trim", `A music video is at least ${MUSIC_VIDEO_LENGTH_BOUNDS.min} seconds: pick a longer section`);
20783
+ if (value.scenes && value.scenes.mode !== "invent" && !shotRoom(model)) issue2("scenes", `${model.label} invents every place`);
20784
+ const on = onScreenOf(value);
20785
+ if (!model.onScreen.includes(on)) issue2("on_screen", `${model.label} doesn\u2019t make videos ${on === "cast" ? "with a cast" : "with no one on screen"} yet`);
20786
+ else if (on !== "artist" && value.cast) issue2("cast", "The performer isn\u2019t in this video: leave cast out");
20787
+ if (on !== "artist" && value.performer) issue2("performer", `Nobody performs in a video ${on === "cast" ? "with a cast (mention its characters in direction)" : "with no one on screen"}: leave performer out`);
20788
+ if (on !== "artist" && value.takes === "continuous") issue2("takes", "A continuous take follows the performer: choose cuts for a video without them");
20589
20789
  if (value.takes === "continuous" && !(model.keyframes.start && model.keyframes.end)) issue2("takes", `${model.label} makes no continuous takes`);
20790
+ if (value.people?.length && on === "none") issue2("people", "Nobody is on screen in this video: leave people out, or put a cast on screen");
20791
+ if (value.lipsync === "never" && MUSIC_VIDEO_CATEGORIES[value.category].needs?.sings) issue2("lipsync", `A ${MUSIC_VIDEO_CATEGORIES[value.category].label} video is sung on camera: choose another kind, or let the director decide`);
20590
20792
  };
20591
20793
  var MusicVideoPlanRequestSchema = external_exports.object({
20592
20794
  song_id: common.song_id,
@@ -20599,10 +20801,30 @@ var MusicVideoRequestSchema = external_exports.object({
20599
20801
  ...musicVideoBrief,
20600
20802
  plan_id: MusicVideoPlanIdSchema.optional(),
20601
20803
  // How sharp it is made; not part of the plan (the treatment and shots are the same in every quality).
20602
- quality: external_exports.enum(MUSIC_VIDEO_QUALITY_IDS).default(DEFAULT_MUSIC_VIDEO_QUALITY)
20603
- }).strict().superRefine(fitsModel);
20804
+ // Omitted: the model's default quality (MUSIC_VIDEO_MODELS[].defaultQuality), filled in below, so a parsed request always has one:
20805
+ // optional when parsed, typed as always there.
20806
+ quality: external_exports.enum(MUSIC_VIDEO_QUALITY_IDS).optional(),
20807
+ // Ordered without a plan: the director first designs the shoot (the outfits, places and props the brief leaves open) and draws
20808
+ // each as a picture the shots are given, priced per picture drawn (the quote counts the most it may draw).
20809
+ design_shoot: external_exports.boolean().default(false),
20810
+ // 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),
20811
+ // 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
20812
+ // of the plan.
20813
+ outro: external_exports.object({ display: OutroDisplaySchema, look_id: external_exports.string().min(1).max(120).optional() }).strict().optional(),
20814
+ // Finishing a delivered music video again (its kept, un-outro'd master), only its outro changed: no shot is made, no plan.
20815
+ refinish: external_exports.object({ video_id: external_exports.string().uuid() }).strict().optional()
20816
+ }).strict().overwrite((value) => ({ ...value, quality: value.quality ?? MUSIC_VIDEO_MODELS[value.model].defaultQuality })).superRefine(fitsModel).superRefine((value, ctx) => {
20817
+ const model = MUSIC_VIDEO_MODELS[value.model];
20818
+ 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(", ")}` });
20819
+ 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" });
20820
+ 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" });
20821
+ });
20604
20822
  var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideoRequestSchema, CanvasRequestSchema, MusicVideoRequestSchema]);
20605
20823
 
20824
+ // ../api-spec/src/versioning.ts
20825
+ var API_VERSION = 1;
20826
+ var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
20827
+
20606
20828
  // ../api-spec/src/queue.ts
20607
20829
  var minutes = (seconds) => Math.max(1, Math.round(seconds / 60));
20608
20830
  function queueLabel(queue) {
@@ -20616,8 +20838,8 @@ var SCOPES = ["videos:read", "videos:write", "music:read", "music:write", "libra
20616
20838
  var SCOPE_DESCRIPTIONS = {
20617
20839
  "videos:read": "See videos, quotes and your credit balance",
20618
20840
  "videos:write": "Quote, create, cancel, retry and delete videos (spends credits)",
20619
- "music:read": "See artists, their photos and songs",
20620
- "music:write": "Add, rename and archive artists and songs, upload songs and artist photos",
20841
+ "music:read": "See artists, their characters, and songs",
20842
+ "music:write": "Add, rename and archive artists and songs, upload songs and make characters",
20621
20843
  "library:read": "Browse Looks",
20622
20844
  "library:write": "Rename, delete and publish your Looks",
20623
20845
  "organizations:read": "See the workspaces you belong to",
@@ -20635,13 +20857,16 @@ var search = (q) => ({
20635
20857
  });
20636
20858
  var httpsUrl = (what) => external_exports.string().url().max(2e3).describe(`A public https URL of ${what}`);
20637
20859
  var LYRICS = "The song\u2019s lyrics as text: plain (Suno-style [Verse]/[Chorus] tags and (x2) marks are fine), or the contents of an SRT, WebVTT or LRC file. Every word is still timed from the audio: your text fixes misheard words and sets where lines break in videos. A part sung again (a chorus) can be written once; lyrics that don\u2019t match what\u2019s sung, or cover only part of it, are refused";
20638
- var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s photos: outfits (an artist\u2019s), places and props (the workspace\u2019s, for every artist). Each has a name and an @handle; a music video brief (direction) that mentions @handle uses that piece exactly as it is, and the director designs the rest.";
20860
+ var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s character: outfits, places and props. Each is in one artist\u2019s kit (owner_artist_id, a project in a Creator workspace; an outfit\u2019s is its artist_id) and serves their songs; shared true offers it to every other artist\u2019s songs too (owner_name says whose it is). Each has a name and an @handle unique in the workspace; a music video brief (direction) that mentions @handle uses that piece exactly as it is, and the director designs the rest.";
20639
20861
  var NEEDS_PLAN = "Needs an active plan (402 plan_required without one; get_account: plan.active) and room in its storage (402 storage_full when it would not fit; get_account: storage).";
20862
+ var PICTURE_CROP = external_exports.object({ x: external_exports.number().min(0).max(1), y: external_exports.number().min(0).max(1), size: external_exports.number().min(0.1).max(1) }).optional();
20640
20863
  var COVER_SIZES = "cover_art.url is the cover at up to 1536 px (JPEG; width and height describe it), preview_url a 640 px and thumbnail_url a 160 px WebP. Image links are signed for 7 days and stay the same all day, so they can be cached.";
20641
20864
  var { type: _lyricType, quote_id: _lyricQuote, ...lyricShape } = LyricVideoRequestSchema.shape;
20642
20865
  var { type: _canvasType, quote_id: _canvasQuote, ...canvasShape } = CanvasRequestSchema.shape;
20643
20866
  var { type: _musicType, quote_id: _musicQuote, ...musicShape } = MusicVideoRequestSchema.shape;
20644
- var CAST_DESCRIPTION = "The two photos the artist is kept from: face_photo_id (a sharp face, mouth visible) and outfit_photo_id (the outfit and body worn throughout); either left out, the director picks it. One photo can be both; hidden photos (add_artist_photos hidden) work too";
20867
+ var CAST_DESCRIPTION = "The performer in it, kept from their character: what they wear, outfit_kit (a kit outfit's @handle, without the @, worn in every shot they are in); left out, the director picks. Only when the performer is on screen";
20868
+ var PERFORMER = "Only in a Creator workspace (its projects have no character of their own): who performs (sings to camera lip-synced, or plays), a character in the song's project's kit or one another project shared (list_characters with for_artist_id: its id, kit_\u2026). Anywhere else the song's artist performs, from their character: leave it out. Only when someone performs (on_screen artist: every kind but cast-story, mood and places).";
20869
+ var ON_SCREEN_DESCRIPTION = "Who is on screen: artist (the song's artist, from their character; in a Creator workspace the character performer names), cast (people the director casts and describes; the artist needn't appear) or none (places, light and objects). Omitted: the kind's (cast-story a cast, mood and places no one, else the artist). Only what the model makes: get_options lists on_screen per model (cast and none are offered once a model is tested with them). Without the artist no character is needed, there are no outfits and no continuous takes";
20645
20870
  var QUOTE_ID = external_exports.string().uuid().describe("The quote_id from the matching quote: the request must be identical");
20646
20871
  var METADATA = external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe("Your own JSON (an order id, for example): kept with the video and returned in its request. Quote and create with the same value");
20647
20872
  var CALLBACK = external_exports.string().max(2e3).optional().describe("An https URL to POST the finished video to (signed; see Callbacks). Quote and create with the same value");
@@ -20650,7 +20875,7 @@ var lyricInput = external_exports.object({
20650
20875
  song_id: songId,
20651
20876
  callback_url: CALLBACK,
20652
20877
  metadata: METADATA,
20653
- 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 (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. 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 artist photos (add_artist_photos); 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`),
20878
+ 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 (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. 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`),
20654
20879
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
20655
20880
  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"),
20656
20881
  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)"),
@@ -20666,16 +20891,20 @@ var canvasInput = external_exports.object({
20666
20891
  quality: canvasShape.quality.describe("AI video model tier: standard or high"),
20667
20892
  resolution: canvasShape.resolution.describe("1080p (1080\xD71920) or 720p"),
20668
20893
  style: canvasShape.style.describe("Optional visual style"),
20669
- direction: canvasShape.direction.describe("Optional mood, motifs or references; the concept still comes from the cover"),
20670
- feature_artist: canvasShape.feature_artist.describe('Whether the Canvas shows the artist: auto (the director decides), always or never (AI sources; needs artist photos for "always")'),
20894
+ direction: canvasShape.direction.describe("Optional mood, motifs or references"),
20895
+ inspiration: canvasShape.inspiration.describe("Where the idea comes from: cover (default; the cover art's world, colors and motifs, brought to life) or song (its words, story and sound lead, the colors kept close to the cover so the two sit together in the player)"),
20896
+ 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"),
20897
+ 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)`),
20671
20898
  seconds: canvasShape.seconds.describe("Canvas length in whole seconds, 5\u20138 (default 8). Spotify loops it, so no part of the song is chosen"),
20672
20899
  variations: canvasShape.variations.describe("1\u20134 different Canvases")
20673
20900
  });
20674
- 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. An unknown handle answers 400';
20901
+ 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`;
20902
+ 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)";
20903
+ var LIPSYNC = '"auto" (default: the director has the artist sing the important lines on camera) or "never" (nobody sings on camera; the song plays over every shot). A kind sung on camera (lyric-led) refuses "never"; an instrumental song never lip-syncs';
20675
20904
  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";
20676
20905
  var musicVideoInput = external_exports.object({
20677
20906
  ...musicShape,
20678
- song_id: songId.describe("The song; its artist performs the video and needs photos (add_artist_photos)"),
20907
+ 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"),
20679
20908
  callback_url: CALLBACK,
20680
20909
  metadata: METADATA,
20681
20910
  model: musicShape.model.describe("The music video model: one-take (default; MiniMax H3 Max, the artist lip-synced in shots cut between the song's lines). get_options lists the models with the categories, styles, formats, takes and length each makes"),
@@ -20683,27 +20912,38 @@ var musicVideoInput = external_exports.object({
20683
20912
  category: musicShape.category.describe("performance (default: sings to camera in one place), intercut (performance cut against the artist living the song's story), cinematic (a moving camera through a location), story (acts out the song's story) or surreal (the world transforms with the song). get_options lists the ones each model makes"),
20684
20913
  style: musicShape.style.describe("Optional look: natural, film, golden-hour, neon-night, noir, vintage or dreamy. Omit it and the director picks one from the cover"),
20685
20914
  aspect_ratio: musicShape.aspect_ratio.describe('The one format of the file: "9:16" (default, vertical), "16:9" (wide) or "1:1" (square)'),
20686
- takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet between the song's lines like an edit, with a cut or the transition the director picks at each join: dissolve, dip to black, flash or whip; ask for them, or for none, in direction) 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)`),
20915
+ 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)`),
20687
20916
  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)"),
20688
20917
  direction: musicShape.direction.describe(DIRECTION),
20689
20918
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20919
+ look_id: musicShape.look_id.describe(LOOK_ID),
20920
+ lipsync: musicShape.lipsync.describe(LIPSYNC),
20921
+ on_screen: musicShape.on_screen.describe(ON_SCREEN_DESCRIPTION),
20922
+ performer: musicShape.performer.describe(PERFORMER),
20690
20923
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
20691
20924
  plan_id: musicShape.plan_id.describe("Make the video from this plan (plan_music_video): its brief replaces the one sent, so send song_id and plan_id. Omitted, the director plans it while it is made"),
20692
- quality: musicShape.quality.describe("The resolution it is made at: one of the qualities get_options lists for the model (768p by default; 1080p is the same video sharper for about twice the credits); not part of the plan, so a plan is made in any quality. get_options lists each model's qualities with about how long each takes; credits.music_video.models has a minute by model and quality"),
20693
- variations: musicShape.variations.describe("1\u20134 different music videos")
20925
+ quality: musicShape.quality.describe("The resolution it is made at: one of the qualities get_options lists for the model (left out, the model's default_quality: 768p for MiniMax H3 Max, 720p for Seedance; a sharper one is the same video for more credits); not part of the plan, so a plan is made in any quality. get_options lists each model's qualities with about how long each takes; credits.music_video.models has a minute by model and quality"),
20926
+ variations: musicShape.variations.describe("1\u20134 different music videos"),
20927
+ 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"),
20928
+ 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, only setup and delivery are charged. Needs the video's revisable_until ahead"),
20929
+ 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")
20694
20930
  });
20695
20931
  var musicVideoPlanInput = external_exports.object({
20696
20932
  ...MusicVideoPlanRequestSchema.shape,
20697
- song_id: songId.describe("The song; its artist performs the video and needs photos (add_artist_photos)"),
20933
+ 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"),
20698
20934
  model: musicShape.model.describe("The music video model: one-take (default; MiniMax H3 Max, the artist lip-synced in shots cut between the song's lines). get_options lists the models with the categories, styles, formats, takes and length each makes"),
20699
20935
  scenes: musicShape.scenes.describe(`Where it is set besides the places the direction mentions from the kit: {"mode":"invent"} (default: the director imagines the others) or {"mode":"stock"} (it finds a real stock photo of each place it writes, empty of people, and the artist is put into it), up to the model's kit.places in all`),
20700
20936
  category: musicShape.category.describe("performance (default), intercut, cinematic, story or surreal"),
20701
20937
  style: musicShape.style.describe("Optional look: natural, film, golden-hour, neon-night, noir, vintage or dreamy; omitted, the director picks one from the cover"),
20702
20938
  aspect_ratio: musicShape.aspect_ratio.describe('"9:16" (default), "16:9" or "1:1"'),
20703
- takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet between the song's lines like an edit, with a cut or the transition the director picks at each join: dissolve, dip to black, flash or whip; ask for them, or for none, in direction) 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)`),
20939
+ 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)`),
20704
20940
  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)"),
20705
20941
  direction: musicShape.direction.describe(DIRECTION),
20706
20942
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20943
+ look_id: musicShape.look_id.describe(LOOK_ID),
20944
+ lipsync: musicShape.lipsync.describe(LIPSYNC),
20945
+ on_screen: musicShape.on_screen.describe(ON_SCREEN_DESCRIPTION),
20946
+ performer: musicShape.performer.describe(PERFORMER),
20707
20947
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
20708
20948
  revise: MusicVideoPlanRequestSchema.shape.revise.describe('Rewrite an earlier plan of this song: {"plan_id":"plan_\u2026","note":"what to change"} (the next draft)')
20709
20949
  });
@@ -20713,12 +20953,21 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20713
20953
  draft: external_exports.number().int().describe("1 for the first plan, n+1 for a rewrite"),
20714
20954
  revision_of: external_exports.string().nullable(),
20715
20955
  note: external_exports.string().nullable(),
20716
- brief: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What it was planned from: model, category, style, aspect_ratio, trim, direction, cast"),
20956
+ 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"),
20717
20957
  title: external_exports.string().nullable().describe("The film's name, as the director titled it"),
20718
20958
  concept: external_exports.string(),
20719
20959
  style: external_exports.string(),
20720
20960
  clips: external_exports.number().int(),
20721
- cast: external_exports.object({ face_photo_id: external_exports.string(), outfit_photo_id: external_exports.string() }).describe("The photos it keeps the artist from"),
20961
+ character: external_exports.object({ id: external_exports.string(), name: external_exports.string().nullable().optional().describe("The performer's name as shots read it") }).nullable().optional().describe("The character who performs (the brief's performer, else the artist's; list_characters; null when nobody performs): each outfit is drawn on it when the video is made, priced in the quote"),
20962
+ people: external_exports.array(external_exports.object({
20963
+ index: external_exports.number().int(),
20964
+ character: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }),
20965
+ name: external_exports.string(),
20966
+ wardrobe: external_exports.string(),
20967
+ 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")
20968
+ })).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"),
20969
+ on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
20970
+ revision: external_exports.object({ video_id: external_exports.string(), shots: external_exports.array(external_exports.number().int()) }).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"),
20722
20971
  world: external_exports.object({ setting: external_exports.string(), wardrobe: external_exports.string(), light: external_exports.string() }).describe("What every shot keeps"),
20723
20972
  places: external_exports.array(external_exports.object({
20724
20973
  index: external_exports.number().int(),
@@ -20728,6 +20977,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20728
20977
  })).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"),
20729
20978
  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"),
20730
20979
  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"),
20980
+ joins: external_exports.number().int().describe("In a continuous take, the joins drawn as pictures (priced per picture); 0 otherwise"),
20731
20981
  shots: external_exports.array(external_exports.object({
20732
20982
  index: external_exports.number().int(),
20733
20983
  start_seconds: external_exports.number(),
@@ -20736,8 +20986,13 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20736
20986
  lyrics: external_exports.string().describe('What is sung in this clip, line breaks as " / "'),
20737
20987
  summary: external_exports.string().describe("What we see"),
20738
20988
  places: external_exports.array(external_exports.number().int()).describe("The places it happens in (numbers into places)"),
20739
- outfit: external_exports.number().int().nullable().describe("The kit outfit worn (a number into outfits), or null: the outfit photo\u2019s"),
20740
- props: external_exports.array(external_exports.number().int()).describe("The kit props seen (numbers into props)")
20989
+ outfit: external_exports.number().int().nullable().describe("The kit outfit worn (a number into outfits), or null: the world's wardrobe (world.wardrobe)"),
20990
+ props: external_exports.array(external_exports.number().int()).describe("The kit props seen (numbers into props)"),
20991
+ people: external_exports.array(external_exports.number().int()).optional().describe("The other characters in the shot, as they stand (numbers into people)"),
20992
+ continues: external_exports.boolean().describe("It carries straight on from the shot before (a continuous take), with no cut"),
20993
+ 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"),
20994
+ on_screen: external_exports.enum(MUSIC_VIDEO_ON_SCREEN).describe("Who is in the shot: the artist, a cast (other people), or nobody. New values may be added"),
20995
+ framing: external_exports.enum(["close", "wide"]).describe("close: the artist sings it on camera, face and mouth large in frame; wide: the song plays over them (dancing, walking, the place). New values may be added")
20741
20996
  })),
20742
20997
  created_at: external_exports.string()
20743
20998
  });
@@ -20781,7 +21036,7 @@ var VideoSchema = external_exports.looseObject({
20781
21036
  concept: external_exports.string().describe("The idea, in a sentence or three"),
20782
21037
  style: external_exports.string().describe("The visual style it was made in (the one asked for, or the director's pick)"),
20783
21038
  clips: external_exports.number().int().describe("How many clips it is generated in"),
20784
- cast: external_exports.object({ face_photo_id: external_exports.string(), outfit_photo_id: external_exports.string() }).describe("The artist photos it keeps the artist from: the face, and the outfit and body"),
21039
+ on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
20785
21040
  world: external_exports.object({ setting: external_exports.string(), wardrobe: external_exports.string(), light: external_exports.string() }),
20786
21041
  shots: external_exports.array(external_exports.object({ index: external_exports.number().int(), start_seconds: external_exports.number(), end_seconds: external_exports.number(), section: external_exports.string().nullable(), lyrics: external_exports.string(), summary: external_exports.string() })).describe("Each clip's beat, timed from the start of the video")
20787
21042
  }).nullable().optional().describe("A music video's plan, once the director made it (null before)"),
@@ -20801,7 +21056,7 @@ var OPERATIONS = [
20801
21056
  group: "account",
20802
21057
  title: "Get the account",
20803
21058
  summary: "Who you are signed in as, the organization (workspace) and its credit balance",
20804
- description: "Returns the organization the credentials act for (the workspace, as the app calls it; type artist holds one artist, label a roster), 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: tell the person to choose a plan in the app), storage (used_bytes against limit_bytes, what the plan allows: 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. Monthly credits reset every month; top-ups never expire. Check it before creating anything.",
21059
+ 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: tell the person to choose a plan in the app), storage (used_bytes against limit_bytes, what the plan allows: 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, and nothing is made from it until there is a plan), unverified (they confirm their email first), used (its song_id and title) or taken (it went to another workspace or account). Monthly credits reset every month; top-ups never expire. Check it before creating anything.",
20805
21060
  method: "GET",
20806
21061
  path: "/api/v1/account",
20807
21062
  scopes: ["videos:read", "music:read", "library:read"],
@@ -20817,7 +21072,7 @@ var OPERATIONS = [
20817
21072
  group: "account",
20818
21073
  title: "List the options",
20819
21074
  summary: "Video types, Look categories, background sources, formats and the current credit prices",
20820
- description: "Everything a request can choose from, with the credit table, and what's on sale (plans: each plan's monthly and yearly price in cents, monthly credits, limits and features, the recommended one marked highlighted, and shelf: everyday for lyric videos, Canvas and some AI music videos, studio for AI music videos every month; credit_packs: each pack's credits and price in cents). The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. Use it to pick a category or source and to explain prices.",
21075
+ description: "Everything a request can choose from, with the credit table, and what's on sale (plans: each plan's monthly and yearly price in cents, monthly credits, limits and features, the recommended one marked highlighted, and shelf: everyday for lyric videos, Canvas and some AI music videos, studio for AI music videos every month; credit_packs: each pack's credits and price in cents; music_video.categories and music_video.styles: each kind and look, with demo when Kinetune has chosen one: a real music video of it with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week). The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. Use it to pick a category or source and to explain prices.",
20821
21076
  method: "GET",
20822
21077
  path: "/api/v1/options",
20823
21078
  scopes: ["videos:read", "music:read", "library:read"],
@@ -20833,7 +21088,7 @@ var OPERATIONS = [
20833
21088
  group: "account",
20834
21089
  title: "List your organizations",
20835
21090
  summary: "The organizations you belong to, your role in each and the one these credentials act for",
20836
- description: "Every organization (workspace, in the app) the signed-in person is a member of; with an API key, the member who created it (the key needs organizations:read). type is artist (one artist and its songs) or label (a roster of artists). current marks the organization these credentials act for. Each organization has its own plan, music, videos, Looks and credits: to work in another one, sign in again and pick it on the consent screen, or use an API key created in it.",
21091
+ description: "Every organization (workspace, in the app) the signed-in person is a member of; with an API key, the member who created it (the key needs organizations:read). type is artist (one artist and its songs), creator (projects: the same records as artists, a performer optional) or label (a roster of artists). current marks the organization these credentials act for. Each organization has its own plan, music, videos, Looks and credits: to work in another one, sign in again and pick it on the consent screen, or use an API key created in it.",
20837
21092
  method: "GET",
20838
21093
  path: "/api/v1/organizations",
20839
21094
  scopes: ["organizations:read"],
@@ -20855,7 +21110,7 @@ var OPERATIONS = [
20855
21110
  scopes: ["organizations:write"],
20856
21111
  input: external_exports.object({
20857
21112
  name: external_exports.string().trim().min(2).max(80).describe("The workspace name, as people see it in the app (an artist workspace usually carries the artist name)"),
20858
- type: external_exports.enum(["artist", "label"]).describe("artist: one artist and its songs; label: a roster of artists")
21113
+ type: external_exports.enum(["artist", "label", "creator"]).describe("artist: one artist and its songs; label: a roster of artists (or a team working for them); creator: projects (artists in the API) whose performer is optional")
20859
21114
  }),
20860
21115
  readOnly: false,
20861
21116
  destructive: false,
@@ -20868,14 +21123,14 @@ var OPERATIONS = [
20868
21123
  id: "organizations.update",
20869
21124
  group: "account",
20870
21125
  title: "Update the organization",
20871
- summary: "Rename the organization (workspace) these credentials act for, or switch it between artist and label",
20872
- description: "Owners and admins only. An artist workspace can become a label any time; a label can become an artist workspace only while it has one artist or none (409 otherwise).",
21126
+ summary: "Rename the organization (workspace) these credentials act for, or switch it between artist, label and creator",
21127
+ description: "Owners and admins only. An artist workspace can become a label or creator workspace any time, and those can switch between each other; they can become an artist workspace only while they have one artist or none (409 otherwise).",
20873
21128
  method: "PATCH",
20874
21129
  path: "/api/v1/organization",
20875
21130
  scopes: ["organizations:write"],
20876
21131
  input: external_exports.object({
20877
21132
  name: external_exports.string().trim().min(2).max(80).optional().describe("The new workspace name"),
20878
- type: external_exports.enum(["artist", "label"]).optional().describe("artist (one artist) or label (a roster)")
21133
+ type: external_exports.enum(["artist", "label", "creator"]).optional().describe("artist (one artist), label (a roster) or creator (projects)")
20879
21134
  }),
20880
21135
  readOnly: false,
20881
21136
  destructive: false,
@@ -20889,7 +21144,7 @@ var OPERATIONS = [
20889
21144
  id: "artists.list",
20890
21145
  group: "artists",
20891
21146
  title: "List artists",
20892
- summary: "Artists by name, with their song and photo counts and a picture",
21147
+ summary: "Artists by name, with their song counts and a picture",
20893
21148
  description: "Songs belong to an artist; create the artist first. Sorted by name, 50 per page by default: pass q to search by name, and limit/offset to page.",
20894
21149
  method: "GET",
20895
21150
  path: "/api/v1/artists",
@@ -20967,92 +21222,248 @@ var OPERATIONS = [
20967
21222
  mcp: "archive_artist"
20968
21223
  },
20969
21224
  {
20970
- id: "artists.set_picture",
21225
+ id: "artists.set_image",
20971
21226
  group: "artists",
20972
- title: "Set the artist picture",
20973
- summary: "Choose which photo is the artist\u2019s picture, and how it is cropped to a square",
20974
- description: "The picture (image_url on the artist, a 512 px square) is cut from one of the artist\u2019s photos; the photo itself is unchanged. The first photo becomes the picture automatically, centered. crop is in fractions of the photo (its url): x/y the top-left corner, size the side relative to the photo\u2019s short side; leave it out to center.",
21227
+ title: "Set the artist image",
21228
+ summary: "Upload or replace the artist\u2019s image, their picture on the artist page and in lists",
21229
+ description: "The artist image (image_url on the artist) is kept as a 512 px square: upload the file (or a public https image_url, JPEG, PNG or WebP, at least 512 px on the short side, up to 15 MB) and, optionally, crop: the square to keep in fractions of the upright image (x/y the top-left corner, size the side relative to the image\u2019s short side); left out, it is centered. It replaces the current image; the uploaded file itself is not kept. It is only a display picture: never shown to a model (videos keep the artist from their character: list_characters). Works without a plan.",
20975
21230
  method: "POST",
20976
- path: "/api/v1/artists/{artist_id}/picture",
21231
+ path: "/api/v1/artists/{artist_id}/image",
20977
21232
  scopes: ["music:write", "videos:write"],
20978
21233
  input: external_exports.object({
20979
21234
  artist_id: artistId,
20980
- photo_id: id("photo").describe("One of the artist\u2019s photos (list_artist_photos)"),
20981
- crop: external_exports.object({ x: external_exports.number().min(0).max(1), y: external_exports.number().min(0).max(1), size: external_exports.number().min(0.1).max(1) }).optional().describe("The square to keep, in fractions of the photo; centered when omitted")
21235
+ image_url: httpsUrl("the image").optional().describe("A public https URL of the image (or upload the file with the CLI)"),
21236
+ crop: PICTURE_CROP.describe("The square to keep, in fractions of the image; centered when omitted")
20982
21237
  }),
21238
+ files: [{ field: "image", urlField: "image_url", accept: ["image/jpeg", "image/png", "image/webp"], description: "The artist image" }],
20983
21239
  readOnly: false,
20984
21240
  destructive: false,
20985
21241
  idempotent: true,
20986
- cli: ["artists", "picture"],
20987
- mcp: "set_artist_picture",
20988
- example: { artist_id: "artist_\u2026", photo_id: "photo_\u2026", crop: { x: 0.1, y: 0, size: 0.8 } }
21242
+ cli: ["artists", "image", "set"],
21243
+ mcp: "set_artist_image",
21244
+ example: { artist_id: "artist_\u2026", image_url: "https://example.com/nova-lane.jpg", crop: { x: 0.1, y: 0, size: 0.8 } }
20989
21245
  },
20990
- /* Artist photos */
20991
21246
  {
20992
- id: "artist_photos.list",
21247
+ id: "artists.remove_image",
20993
21248
  group: "artists",
20994
- title: "List artist photos",
20995
- summary: "The artist\u2019s photos (identity references)",
20996
- description: "Photos keep the artist recognizable when a Look or Canvas shows them; the cover art stays the creative source. url is the photo upright at up to 1536 px (what the AI receives; width and height describe it), thumbnail_url a copy 320 px on its short side for grids.",
21249
+ title: "Remove the artist image",
21250
+ summary: "Remove the artist\u2019s image: they show their initial until another is set",
21251
+ description: "",
21252
+ method: "DELETE",
21253
+ path: "/api/v1/artists/{artist_id}/image",
21254
+ scopes: ["music:write", "videos:write"],
21255
+ input: external_exports.object({ artist_id: artistId }),
21256
+ readOnly: false,
21257
+ destructive: true,
21258
+ idempotent: true,
21259
+ cli: ["artists", "image", "remove"],
21260
+ mcp: "remove_artist_image"
21261
+ },
21262
+ /* The artist kit */
21263
+ {
21264
+ id: "characters.list",
21265
+ group: "artists",
21266
+ title: "List characters",
21267
+ summary: "The people videos can show: your artists' characters and your cast",
21268
+ description: "Each character is one sheet in the kit (a front close-up, full body front, three-quarter, profile and back, in a plain base outfit), made with start_character. artist_id set: it is that artist (one each); otherwise cast, used by its handle. Each is in one artist's kit (owner_artist_id, owner_name; an artist's character is in their own) and appears in their videos; shared true offers it to every other artist's videos too (update_kit_piece shares it). outfit is the base outfit line it was drawn in; missing lists the views an added sheet doesn't show.",
20997
21269
  method: "GET",
20998
- path: "/api/v1/artists/{artist_id}/photos",
21270
+ path: "/api/v1/characters",
20999
21271
  scopes: ["music:read", "videos:read"],
21000
- input: external_exports.object({ artist_id: artistId }),
21272
+ input: external_exports.object({
21273
+ artist_id: artistId.optional().describe("Only this artist's character"),
21274
+ owner_artist_id: artistId.optional().describe("Only those in this artist's kit: their own character and the people kept for them"),
21275
+ for_artist_id: artistId.optional().describe("Those a video of this artist's songs can show: theirs first, then those other artists shared")
21276
+ }),
21001
21277
  readOnly: true,
21002
21278
  destructive: false,
21003
21279
  idempotent: true,
21004
- cli: ["artists", "photos", "list"],
21005
- mcp: "list_artist_photos"
21280
+ cli: ["characters", "list"],
21281
+ mcp: "list_characters"
21006
21282
  },
21007
21283
  {
21008
- id: "artist_photos.add",
21284
+ id: "characters.face_check.get",
21009
21285
  group: "artists",
21010
- title: "Add artist photos",
21011
- summary: "Upload one or more photos of the artist (JPEG, PNG or WebP)",
21012
- description: `As many as your plan's storage holds (up to 20 an upload), at least 512 px on the short side, up to 15 MB each. hidden keeps them off the artist's photos, for photos meant for one music video only (pass their ids in its cast). Only with the rights to use them (rights_confirmed). They are identity references only: never shown publicly or used as they are. Each is kept upright at up to 1536 px, with a small thumbnail; the uploaded file itself is not kept. ${NEEDS_PLAN}`,
21286
+ title: "Get a face check",
21287
+ summary: "Whether a model can show this real person yet: their face check for it",
21288
+ description: "Some models (get_options: music_video.models[].face_check) show a real person only once they have proved, live on camera, that the face on the character is theirs: a Kinetune face check, done once and covering every model that shares it. status: not_needed (the model needs none, or the character is AI-made: ai_made); not_checked; waiting (a check started in the last 30 minutes); passed; failed (the last one didn't pass: start another). Asked before quoting such a model for each real person in it (the performer and the people).",
21289
+ method: "GET",
21290
+ path: "/api/v1/characters/{character_id}/face-check",
21291
+ scopes: ["music:read", "videos:read"],
21292
+ input: external_exports.object({ character_id: external_exports.string().min(1).describe("The character id (kit_\u2026)"), model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).describe("The music video model") }),
21293
+ readOnly: true,
21294
+ destructive: false,
21295
+ idempotent: true,
21296
+ cli: ["characters", "face-check", "get"],
21297
+ mcp: "get_face_check"
21298
+ },
21299
+ {
21300
+ id: "characters.face_check.start",
21301
+ group: "artists",
21302
+ title: "Start a face check",
21303
+ summary: "The page where the person proves, live on camera, that the face is theirs",
21304
+ description: "Only the person shown on the character can pass it, on a phone with a camera: give them the link (good for 30 minutes), then get_face_check until passed. consent: they agreed to Kinetune checking their face and keeping it to match their pictures in this model's videos (kinetune.com/privacy, Face checks); ask them first, never assume it. A failed check is started again.",
21013
21305
  method: "POST",
21014
- path: "/api/v1/artists/{artist_id}/photos",
21306
+ path: "/api/v1/characters/{character_id}/face-check",
21015
21307
  scopes: ["music:write", "videos:write"],
21016
21308
  input: external_exports.object({
21017
- artist_id: artistId,
21018
- photo_urls: external_exports.array(httpsUrl("a photo")).min(1).max(ARTIST_PHOTOS_PER_UPLOAD).optional().describe("Public https URLs of the photos (or upload files with the CLI)"),
21019
- rights_confirmed: external_exports.literal(true).describe("You have the rights to use these photos of the artist"),
21020
- hidden: external_exports.boolean().optional().describe("true: only for a music video, kept off the artist's photos (default false)")
21309
+ character_id: external_exports.string().min(1).describe("The character id (kit_\u2026)"),
21310
+ model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).describe("The music video model it is for"),
21311
+ consent: external_exports.literal(true).describe("The person agreed to the face check")
21312
+ }),
21313
+ readOnly: false,
21314
+ destructive: false,
21315
+ idempotent: false,
21316
+ cli: ["characters", "face-check", "start"],
21317
+ mcp: "start_face_check"
21318
+ },
21319
+ {
21320
+ id: "characters.face_check.withdraw",
21321
+ group: "artists",
21322
+ title: "Withdraw a face check",
21323
+ summary: "Deletes the person's checked face: the model stops showing them",
21324
+ description: "Their checked face is deleted with every picture registered against it, and the models it covered can't show them until they pass a new check. Videos already made stay. Deleting the character withdraws every check.",
21325
+ method: "DELETE",
21326
+ path: "/api/v1/characters/{character_id}/face-check",
21327
+ scopes: ["music:write", "videos:write"],
21328
+ input: external_exports.object({ character_id: external_exports.string().min(1).describe("The character id (kit_\u2026)"), model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).optional().describe("The music video model it was for; left out, every face check of this person") }),
21329
+ readOnly: false,
21330
+ destructive: true,
21331
+ idempotent: true,
21332
+ cli: ["characters", "face-check", "withdraw"],
21333
+ mcp: "withdraw_face_check"
21334
+ },
21335
+ {
21336
+ id: "character_requests.create",
21337
+ group: "artists",
21338
+ title: "Start a character",
21339
+ summary: "Photos of a person to draw a sheet from, or a finished sheet to add",
21340
+ description: `mode generate: 1 to 5 photos of one person (any angles); they are read (a clear face is needed, someone else is set aside) and given a base outfit line, which can be edited before drawing (draw_character_sheet, priced in credits). mode add: one finished sheet, read (one person, a clear face, the views it shows, any text on it) and kept as it is, free. Only with the rights to use these images (rights_confirmed). Uploads are kept until the character is kept (keep_character), or a day; a sheet drawn and paid for, 30 days (list_character_requests finds it). ${NEEDS_PLAN}`,
21341
+ method: "POST",
21342
+ path: "/api/v1/character-requests",
21343
+ scopes: ["music:write", "videos:write"],
21344
+ input: external_exports.object({
21345
+ mode: external_exports.enum(["generate", "add"]).optional().describe("generate (default): draw a sheet from photos; add: a finished sheet"),
21346
+ photo_urls: external_exports.array(httpsUrl("a photo")).min(1).max(5).optional().describe("Public https URLs of the photos, or of the one sheet (or upload files with the CLI)"),
21347
+ rights_confirmed: external_exports.literal(true).describe("You have the rights to use these images of this person")
21348
+ }),
21349
+ files: [{ field: "photos", urlField: "photo_urls", multiple: true, accept: ["image/jpeg", "image/png", "image/webp"], description: "Photos of the person, or the one sheet" }],
21350
+ readOnly: false,
21351
+ destructive: false,
21352
+ idempotent: false,
21353
+ cli: ["characters", "start"],
21354
+ mcp: "start_character"
21355
+ },
21356
+ {
21357
+ id: "character_requests.list",
21358
+ group: "artists",
21359
+ title: "List sheets waiting to be kept",
21360
+ summary: "Character sheets being drawn, or drawn and paid for but not kept yet",
21361
+ description: "Newest first. A sheet drawn and paid for waits 30 days to be kept (keep_character), then is deleted; one being drawn shows status drawing.",
21362
+ method: "GET",
21363
+ path: "/api/v1/character-requests",
21364
+ scopes: ["music:read", "videos:read"],
21365
+ input: external_exports.object({}),
21366
+ readOnly: true,
21367
+ destructive: false,
21368
+ idempotent: true,
21369
+ cli: ["characters", "waiting"],
21370
+ mcp: "list_character_requests"
21371
+ },
21372
+ {
21373
+ id: "character_requests.get",
21374
+ group: "artists",
21375
+ title: "Get a character in the making",
21376
+ summary: "What was read from the photos, the outfit line, the sheet as drawn",
21377
+ description: "status: analyzed (problem says what stops it, if anything), drawing (about a minute), drawn (a sheet to keep: sheet.url), failed. price.credits is what drawing costs now; charged is what the drawn sheet cost. extras, on an added sheet: what keeps it from being a plain base (jewellery, glasses, a hat, something held); draw_character_sheet draws it again as a base sheet.",
21378
+ method: "GET",
21379
+ path: "/api/v1/character-requests/{request_id}",
21380
+ scopes: ["music:read", "videos:read"],
21381
+ input: external_exports.object({ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)") }),
21382
+ readOnly: true,
21383
+ destructive: false,
21384
+ idempotent: true,
21385
+ cli: ["characters", "get"],
21386
+ mcp: "get_character_request"
21387
+ },
21388
+ {
21389
+ id: "character_requests.draw",
21390
+ group: "artists",
21391
+ title: "Draw a character sheet",
21392
+ summary: "Draws the sheet for the credits shown (again with a note to redraw)",
21393
+ description: 'From photos, or an added sheet drawn again as a plain base sheet (nothing worn or held beyond one plain outfit). credits must be price.credits from get_character_request: tell the user first. outfit: the base outfit line as the user left it (always drawn plain: one top and fitted trousers or skirt, solid colours, barefoot, no jewellery). note: what to change when drawing again ("her hair is shorter"). Charged only once the sheet passes its check (one person, a clear face, no text); a failed check is redrawn once at no charge.',
21394
+ method: "POST",
21395
+ path: "/api/v1/character-requests/{request_id}/draw",
21396
+ scopes: ["music:write", "videos:write"],
21397
+ input: external_exports.object({
21398
+ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)"),
21399
+ credits: external_exports.number().int().positive().describe("price.credits, as shown to the user"),
21400
+ outfit: external_exports.string().trim().max(220).optional().describe("The base outfit line"),
21401
+ note: external_exports.string().trim().max(500).optional().describe("What to change, when drawing again")
21021
21402
  }),
21022
- files: [{ field: "photos", urlField: "photo_urls", multiple: true, accept: ["image/jpeg", "image/png", "image/webp"], description: "Photos of the artist" }],
21023
21403
  readOnly: false,
21024
21404
  destructive: false,
21025
21405
  idempotent: false,
21026
- cli: ["artists", "photos", "add"],
21027
- mcp: "add_artist_photos"
21406
+ cli: ["characters", "draw"],
21407
+ mcp: "draw_character_sheet"
21028
21408
  },
21029
21409
  {
21030
- id: "artist_photos.delete",
21410
+ id: "character_requests.keep",
21031
21411
  group: "artists",
21032
- title: "Delete an artist photo",
21033
- summary: "Remove one photo",
21412
+ title: "Keep a character",
21413
+ summary: "Keeps the sheet in the kit, as an artist or as named cast",
21414
+ description: "artist_id: it is that artist (one each, in their own kit; replace true takes the place of theirs); or name: cast, with an @handle from the name (or handle), in owner_artist_id's kit (left out: the workspace's only artist, else its first, shared). shared true offers them to every other artist's videos too (default false). ai_made: ask the user whether this is an AI-made person who looks like no real person, or a real person (false: a model that needs a face check shows them once they pass it); never guess it. Left out, they count as real. The uploads are deleted.",
21415
+ method: "POST",
21416
+ path: "/api/v1/character-requests/{request_id}/keep",
21417
+ scopes: ["music:write", "videos:write"],
21418
+ input: external_exports.object({
21419
+ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)"),
21420
+ artist_id: artistId.optional().describe("It is this artist"),
21421
+ owner_artist_id: artistId.optional().describe("Cast only: the artist whose kit they go in (a project in a Creator workspace)"),
21422
+ shared: external_exports.boolean().optional().describe("Offer them to every other artist's videos too (default false)"),
21423
+ name: external_exports.string().trim().min(1).max(60).optional().describe("A cast member's name"),
21424
+ handle: external_exports.string().regex(/^[a-z0-9-]{1,40}$/).optional().describe("The @handle, without @"),
21425
+ replace: external_exports.boolean().optional().describe("Replace the artist's character"),
21426
+ ai_made: external_exports.boolean().optional().describe("An AI-made person who looks like no real person (true), or a real person (false)")
21427
+ }),
21428
+ readOnly: false,
21429
+ destructive: false,
21430
+ idempotent: false,
21431
+ cli: ["characters", "keep"],
21432
+ mcp: "keep_character"
21433
+ },
21434
+ {
21435
+ id: "character_requests.delete",
21436
+ group: "artists",
21437
+ title: "Discard a character in the making",
21438
+ summary: "Deletes its uploads and sheet",
21034
21439
  description: "",
21035
21440
  method: "DELETE",
21036
- path: "/api/v1/artists/{artist_id}/photos/{photo_id}",
21441
+ path: "/api/v1/character-requests/{request_id}",
21037
21442
  scopes: ["music:write", "videos:write"],
21038
- input: external_exports.object({ artist_id: artistId, photo_id: id("photo") }),
21443
+ input: external_exports.object({ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)") }),
21039
21444
  readOnly: false,
21040
21445
  destructive: true,
21041
21446
  idempotent: true,
21042
- cli: ["artists", "photos", "delete"],
21043
- mcp: "delete_artist_photo"
21447
+ cli: ["characters", "discard"],
21448
+ mcp: "discard_character_request"
21044
21449
  },
21045
- /* The artist kit */
21046
21450
  {
21047
21451
  id: "kit.list",
21048
21452
  group: "artists",
21049
21453
  title: "List the kit",
21050
21454
  summary: "Outfits, places and props a music video brief can mention",
21051
- description: `${KIT_ABOUT} With artist_id: the workspace's places and props and that artist's outfits (what a brief for their song can mention); without it, every artist's outfits too. url is the piece cropped, up to 1536 px (what the AI receives; width and height describe it), thumbnail_url a 320 px copy, source_url the image the crop is a rectangle of.`,
21455
+ description: `${KIT_ABOUT} With artist_id: what a brief for their song can mention, their own pieces first, then those other artists shared; with owner_artist_id: only their own (their kit page); without either, every piece. url is the piece cropped, up to 1536 px (what the AI receives; width and height describe it), thumbnail_url a 320 px copy, source_url the image the crop is a rectangle of. Every piece by default; pass q to search by name, @handle or description, and limit/offset to page. total is how many pieces match.`,
21052
21456
  method: "GET",
21053
21457
  path: "/api/v1/kit",
21054
21458
  scopes: ["music:read", "videos:read"],
21055
- input: external_exports.object({ artist_id: artistId.optional().describe("Only the workspace\u2019s pieces and this artist\u2019s outfits"), kind: external_exports.enum(KIT_KINDS).optional().describe("outfit, place or prop") }),
21459
+ input: external_exports.object({
21460
+ artist_id: artistId.optional().describe("What a brief for this artist\u2019s song can mention: theirs and those shared"),
21461
+ owner_artist_id: artistId.optional().describe("Only the pieces in this artist\u2019s kit"),
21462
+ kind: external_exports.enum(KIT_KINDS).optional().describe("outfit, place or prop"),
21463
+ q: external_exports.string().max(100).optional().describe("Part of the name, @handle or description"),
21464
+ limit: external_exports.number().int().min(1).max(100).optional().describe("Pieces per page, 1-100 (default: every piece)"),
21465
+ offset: external_exports.number().int().min(0).optional().describe("How many pieces to skip")
21466
+ }),
21056
21467
  readOnly: true,
21057
21468
  destructive: false,
21058
21469
  idempotent: true,
@@ -21064,14 +21475,16 @@ var OPERATIONS = [
21064
21475
  group: "artists",
21065
21476
  title: "Add a kit piece",
21066
21477
  summary: "An outfit, place or prop from an image, a link or a stock photo, cropped",
21067
- description: `${KIT_ABOUT} An outfit needs artist_id; a place or prop is the workspace's. The image is an upload or file_url (JPEG, PNG or WebP, at least 512 px on its short side, up to 15 MB, with rights_confirmed) or a stock_id from search_stock (credited, no rights needed). crop keeps a rectangle of it (fractions; at least 256 px on its short side), for a prop cut out of a bigger photo. handle follows the name (Blue set \u2192 blue-set; -2 when taken) unless given. ${NEEDS_PLAN}`,
21478
+ description: `${KIT_ABOUT} An outfit needs artist_id (its artist's kit); a place or prop goes in owner_artist_id's kit (left out: the workspace's only artist, else its first, shared). shared true offers it to every other artist's songs too (default false). The image is an upload or file_url (JPEG, PNG or WebP, at least 512 px on its short side, up to 15 MB, with rights_confirmed) or a stock_id from search_stock (credited, no rights needed). crop keeps a rectangle of it (fractions; at least 256 px on its short side), for a prop cut out of a bigger photo. handle follows the name (Blue set \u2192 blue-set; -2 when taken) unless given. ${NEEDS_PLAN}`,
21068
21479
  method: "POST",
21069
21480
  path: "/api/v1/kit",
21070
21481
  scopes: ["music:write", "videos:write"],
21071
21482
  input: external_exports.object({
21072
- kind: external_exports.enum(KIT_KINDS).describe("outfit (an artist\u2019s), place or prop (the workspace\u2019s)"),
21483
+ kind: external_exports.enum(KIT_KINDS).describe("outfit (an artist\u2019s), place or prop"),
21073
21484
  name: external_exports.string().trim().min(1).max(60).describe("What it is called, e.g. Blue set"),
21074
21485
  artist_id: artistId.optional().describe("The artist an outfit belongs to (outfits only)"),
21486
+ owner_artist_id: artistId.optional().describe("A place or prop: the artist whose kit it goes in (a project in a Creator workspace)"),
21487
+ shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (default false)"),
21075
21488
  handle: KitHandleSchema.optional().describe("Its @handle (default: from the name)"),
21076
21489
  description: external_exports.string().trim().max(300).optional().describe("What it is, for the director (a stock photo\u2019s caption by default)"),
21077
21490
  crop: CropRectSchema.optional().describe('The rectangle to keep, in fractions of the image: {"x","y","w","h"}; the whole image when omitted'),
@@ -21107,8 +21520,8 @@ var OPERATIONS = [
21107
21520
  id: "kit.update",
21108
21521
  group: "artists",
21109
21522
  title: "Change a kit piece",
21110
- summary: "Rename it, change its handle or description, or crop it again",
21111
- description: "crop is cut again from the image the piece was added from. Plans already made keep the pieces as they were planned.",
21523
+ summary: "Rename it, change its handle or description, crop it again, or share it",
21524
+ description: "crop is cut again from the image the piece was added from. 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.",
21112
21525
  method: "PATCH",
21113
21526
  path: "/api/v1/kit/{kit_id}",
21114
21527
  scopes: ["music:write", "videos:write"],
@@ -21117,7 +21530,9 @@ var OPERATIONS = [
21117
21530
  name: external_exports.string().trim().min(1).max(60).optional(),
21118
21531
  handle: KitHandleSchema.optional(),
21119
21532
  description: external_exports.string().trim().max(300).nullable().optional(),
21120
- crop: CropRectSchema.optional().describe("The new rectangle, in fractions of the source image")
21533
+ crop: CropRectSchema.optional().describe("The new rectangle, in fractions of the source image"),
21534
+ ai_made: external_exports.boolean().optional().describe("A character only: an AI-made person (true) or a real one (false)"),
21535
+ shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (true), or only its own artist\u2019s (false)")
21121
21536
  }),
21122
21537
  readOnly: false,
21123
21538
  destructive: false,
@@ -21178,7 +21593,8 @@ var OPERATIONS = [
21178
21593
  language: external_exports.string().regex(/^[a-z]{2,3}$/).optional().describe('Lyrics language (ISO 639-1, e.g. "en"); detected when omitted'),
21179
21594
  audio_url: httpsUrl("the master audio").optional(),
21180
21595
  cover_art_url: httpsUrl("the square cover art").optional(),
21181
- lyrics: external_exports.string().max(1e5).optional().describe(`Optional. ${LYRICS} once the song is analyzed (get_song: analysis.lyrics.status "mismatch")`)
21596
+ lyrics: external_exports.string().max(1e5).optional().describe(`Optional. ${LYRICS} once the song is analyzed (get_song: analysis.lyrics.status "mismatch")`),
21597
+ instrumental: external_exports.boolean().optional().meta({ deprecated: true, "x-sunset": "2027-04-30" }).describe("Deprecated: the analysis hears whether a song has vocals (get_song: instrumental). true still skips transcription: lyric videos have no words and music videos never lip-sync (no lyrics with it). Stops working on 2027-04-30.")
21182
21598
  }),
21183
21599
  files: [
21184
21600
  { field: "audio", urlField: "audio_url", accept: ["audio/mpeg", "audio/wav", "audio/mp4"], description: "Master audio (MP3, WAV or M4A)" },
@@ -21212,11 +21628,15 @@ var OPERATIONS = [
21212
21628
  group: "songs",
21213
21629
  title: "Rename a song",
21214
21630
  summary: "Change a song\u2019s title",
21215
- description: "",
21631
+ description: `instrumental is deprecated: the analysis hears whether a song has vocals. Switching it still analyzes the song again (an instrumental isn't transcribed, and its lyrics go): poll get_song until analysis.status is "ready".`,
21216
21632
  method: "PATCH",
21217
21633
  path: "/api/v1/songs/{song_id}",
21218
21634
  scopes: ["music:write", "videos:write"],
21219
- input: external_exports.object({ song_id: songId, title: external_exports.string().trim().min(1).max(300).describe("The new title") }),
21635
+ input: external_exports.object({
21636
+ song_id: songId,
21637
+ title: external_exports.string().trim().min(1).max(300).optional().describe("The new title"),
21638
+ instrumental: external_exports.boolean().optional().meta({ deprecated: true, "x-sunset": "2027-04-30" }).describe("Deprecated: the analysis hears whether a song has vocals. true: a song without vocals (never transcribed, never lip-synced). Stops working on 2027-04-30.")
21639
+ }),
21220
21640
  readOnly: false,
21221
21641
  destructive: false,
21222
21642
  idempotent: true,
@@ -21244,7 +21664,7 @@ var OPERATIONS = [
21244
21664
  group: "songs",
21245
21665
  title: "Get a song\u2019s analysis",
21246
21666
  summary: "Word-timed lyrics, tempo, beats, sections, hook and the parts a video can be cut to",
21247
- description: 'parts lists where a video can start and end without cutting a word: each section (Verse 1, Chorus 1\u2026), clips of about 15 seconds cut between the lines of long sections (kind "clip", parent: its section) and each verse with the chorus after it (kind "pair"); pass a part\u2019s start and end as a video\u2019s trim (start_seconds, end_seconds), picking one at least as long as the video type\u2019s minimum (a lyric video 8 seconds, a music video 15). default_part is the one the app starts on: the sung part nearest 15 seconds. lyrics.text is the song\u2019s lyrics to edit: yours as you gave them, or the transcription a line per phrase (lyrics.yours says which).',
21667
+ description: 'parts lists where a video can start and end without cutting a word: each section (Verse 1, Chorus 1\u2026), clips of about 15 seconds cut between the lines of long sections (kind "clip", parent: its section) and each verse with the chorus after it (kind "pair"); pass a part\u2019s start and end as a video\u2019s trim (start_seconds, end_seconds), picking one at least as long as the video type\u2019s minimum (a lyric video 8 seconds, a music video 15). default_part is the one the app starts on: the sung part nearest 15 seconds. lyrics.text is the song\u2019s lyrics to edit: yours as you gave them, or the transcription a line per phrase (lyrics.yours says which). The analysis also listens for who sings: map.voices lists where someone other than the lead artist sings (voice "other": another solo voice; "group": a choir, a crowd or backing singers), and those words carry backing: true (music videos keep them off camera, never lip-synced by the artist); map.instrumental is true when no vocals were heard. A song analyzed before voices were heard has no map.voices until its first music video plan listens to it.',
21248
21668
  method: "GET",
21249
21669
  path: "/api/v1/songs/{song_id}/analysis",
21250
21670
  scopes: ["music:read", "videos:read"],
@@ -21474,9 +21894,9 @@ var OPERATIONS = [
21474
21894
  {
21475
21895
  id: "music_video_plans.create",
21476
21896
  group: "videos",
21477
- title: "Plan a music video",
21478
- summary: "The director's treatment and shots for a music video, before anything is charged",
21479
- description: "Free (a limited number an hour). Takes about a minute. Returns a plan: the concept, the face and outfit photos, 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, the director's transition, 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.",
21897
+ title: "Write a music video shot list",
21898
+ summary: "The director's shot list for a music video, the idea and every shot, before anything is charged",
21899
+ 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.",
21480
21900
  method: "POST",
21481
21901
  path: "/api/v1/music-video-plans",
21482
21902
  scopes: ["videos:write"],
@@ -21494,7 +21914,7 @@ var OPERATIONS = [
21494
21914
  group: "videos",
21495
21915
  title: "Change a place's photo",
21496
21916
  summary: "Another stock photo for one of a plan's places",
21497
- description: "Returns the next draft: the same treatment and shots, set in this photo (no director call, free). Pick a photo of the same kind of place, with no people, from search_stock.",
21917
+ description: "Returns the next draft: the same shot list, set in this photo (no director call, free). Pick a photo of the same kind of place, with no people, from search_stock.",
21498
21918
  method: "PATCH",
21499
21919
  path: "/api/v1/music-video-plans/{plan_id}/places/{place}",
21500
21920
  scopes: ["videos:write"],
@@ -21506,13 +21926,13 @@ var OPERATIONS = [
21506
21926
  mcp: "swap_music_video_place",
21507
21927
  output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema }
21508
21928
  },
21509
- /* Design the shoot */
21929
+ /* The lookbook */
21510
21930
  {
21511
21931
  id: "music_video_lookbooks.create",
21512
21932
  group: "videos",
21513
- title: "Design a music video shoot",
21514
- summary: "The director designs the outfits, places and props the brief leaves to it, before the plan",
21515
- description: `Optional, before 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}`,
21933
+ title: "Design a music video lookbook",
21934
+ summary: "The director designs the outfits, places and props the brief leaves to it as pictures, before the shot list",
21935
+ 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}`,
21516
21936
  method: "POST",
21517
21937
  path: "/api/v1/music-video-lookbooks",
21518
21938
  scopes: ["videos:write"],
@@ -21556,6 +21976,22 @@ var OPERATIONS = [
21556
21976
  cli: ["lookbook", "update"],
21557
21977
  mcp: "update_music_video_lookbook"
21558
21978
  },
21979
+ {
21980
+ id: "music_video_lookbooks.delete",
21981
+ group: "videos",
21982
+ title: "Delete a lookbook",
21983
+ summary: "Deletes a lookbook nothing was made from, with its pictures",
21984
+ 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.",
21985
+ method: "DELETE",
21986
+ path: "/api/v1/music-video-lookbooks/{lookbook_id}",
21987
+ scopes: ["videos:write"],
21988
+ input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id (lookbook_\u2026)") }),
21989
+ readOnly: false,
21990
+ destructive: true,
21991
+ idempotent: true,
21992
+ cli: ["lookbook", "delete"],
21993
+ mcp: "delete_music_video_lookbook"
21994
+ },
21559
21995
  {
21560
21996
  id: "music_video_lookbooks.render",
21561
21997
  group: "videos",
@@ -21625,6 +22061,38 @@ var OPERATIONS = [
21625
22061
  cli: ["lookbook", "redraw"],
21626
22062
  mcp: "redraw_music_video_lookbook_piece"
21627
22063
  },
22064
+ {
22065
+ id: "music_video_plans.delete",
22066
+ group: "videos",
22067
+ title: "Delete a shot list",
22068
+ summary: "Deletes a shot list no video was made from, with every draft of it",
22069
+ 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.",
22070
+ method: "DELETE",
22071
+ path: "/api/v1/music-video-plans/{plan_id}",
22072
+ scopes: ["videos:write"],
22073
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)") }),
22074
+ readOnly: false,
22075
+ destructive: true,
22076
+ idempotent: true,
22077
+ cli: ["plans", "delete"],
22078
+ mcp: "delete_music_video_plan"
22079
+ },
22080
+ {
22081
+ id: "music_video_plans.list",
22082
+ group: "videos",
22083
+ title: "List music video drafts",
22084
+ summary: "A song's music videos in the making: shot lists not made yet and lookbooks not used yet",
22085
+ 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.",
22086
+ method: "GET",
22087
+ path: "/api/v1/music-video-plans",
22088
+ scopes: ["videos:read"],
22089
+ input: external_exports.object({ song_id: songId.describe("The song") }),
22090
+ readOnly: true,
22091
+ destructive: false,
22092
+ idempotent: true,
22093
+ cli: ["plans", "list"],
22094
+ mcp: "list_music_video_drafts"
22095
+ },
21628
22096
  {
21629
22097
  id: "music_video_plans.get",
21630
22098
  group: "videos",
@@ -21647,7 +22115,7 @@ var OPERATIONS = [
21647
22115
  group: "videos",
21648
22116
  title: "Quote a music video",
21649
22117
  summary: "The exact credits for an AI music video, before anything is charged",
21650
- description: `Returns quote_id, credits and a breakdown; the price follows the section's length (clips of about 15 seconds). The song's artist performs it, so the artist needs photos. ${QUOTE_FIRST}`,
22118
+ description: `Returns quote_id, credits and a breakdown; the price follows the section's length (clips of about 15 seconds). The song's artist performs it, so the artist needs their character (start_character). ${QUOTE_FIRST}`,
21651
22119
  method: "POST",
21652
22120
  path: "/api/v1/quotes",
21653
22121
  scopes: ["videos:write", "videos:read"],
@@ -21767,6 +22235,94 @@ var OPERATIONS = [
21767
22235
  cli: ["videos", "cancel"],
21768
22236
  mcp: "cancel_video"
21769
22237
  },
22238
+ {
22239
+ id: "videos.revise_shot",
22240
+ group: "videos",
22241
+ title: "Revise a music video shot",
22242
+ summary: "The director rewrites one shot of a delivered music video from a note (free)",
22243
+ description: "For a music video whose revisable_until (get_video) is still ahead. Free (counted with the plans an hour), about half a minute. Returns a plan whose revision names the video and the shots made again: the shot asked, and the next one when it carries straight on from it. Show the rewritten shot, then quote_music_video with song_id, plan_id and the video's quality: only the shots made again are charged, the others are reused. create_music_video makes the revision as a new video; the original never changes.",
22244
+ method: "POST",
22245
+ path: "/api/v1/videos/{video_id}/revisions",
22246
+ scopes: ["videos:write"],
22247
+ input: external_exports.object({ video_id: videoId, shot: external_exports.number().int().min(1).describe("The shot to change (its index in the plan's shots)"), note: external_exports.string().trim().min(1).max(1e3).describe("What should change, in the artist's words") }),
22248
+ readOnly: false,
22249
+ destructive: false,
22250
+ idempotent: false,
22251
+ cli: ["videos", "revise"],
22252
+ mcp: "revise_music_video_shot",
22253
+ output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema },
22254
+ example: { video_id: "00000000-0000-0000-0000-000000000000", shot: 5, note: "Keep the rooftop, but she looks up at the city lights instead of the lens" }
22255
+ },
22256
+ {
22257
+ id: "videos.save_look",
22258
+ group: "videos",
22259
+ title: "Save a music video's Look",
22260
+ summary: "A delivered music video's direction as a reusable Look (free)",
22261
+ description: "Made the first time (the director writes its treatment without the song, the lyrics or the artist), private to the workspace until the video is made public; its AI-drawn places and props travel with it, never the artist. Use it with plan_music_video or quote_music_video look_id on any song.",
22262
+ method: "POST",
22263
+ path: "/api/v1/videos/{video_id}/look",
22264
+ scopes: ["videos:write"],
22265
+ input: external_exports.object({ video_id: videoId }),
22266
+ readOnly: false,
22267
+ destructive: false,
22268
+ idempotent: true,
22269
+ cli: ["videos", "save-look"],
22270
+ mcp: "save_music_video_look"
22271
+ },
22272
+ {
22273
+ id: "music_video_looks.list",
22274
+ group: "videos",
22275
+ title: "List music video Looks",
22276
+ summary: "Music video Looks made public, and the workspace's own",
22277
+ description: "scope: all (default), community (public ones) or mine. A Look carries category, style, takes, lipsync, a treatment and its places and props (pieces); pass its id as look_id with those choices.",
22278
+ method: "GET",
22279
+ path: "/api/v1/music-video-looks",
22280
+ scopes: ["videos:read"],
22281
+ input: external_exports.object({
22282
+ scope: external_exports.enum(["all", "community", "mine"]).optional(),
22283
+ q: external_exports.string().max(100).optional().describe("Search names and descriptions"),
22284
+ sort: external_exports.enum(["newest", "popular"]).optional(),
22285
+ limit: external_exports.number().int().min(1).max(100).optional(),
22286
+ offset: external_exports.number().int().min(0).optional()
22287
+ }),
22288
+ readOnly: true,
22289
+ destructive: false,
22290
+ idempotent: true,
22291
+ cli: ["looks", "music-video"],
22292
+ mcp: "list_music_video_looks"
22293
+ },
22294
+ {
22295
+ id: "music_video_looks.get",
22296
+ group: "videos",
22297
+ title: "Get a music video Look",
22298
+ summary: "One music video Look",
22299
+ description: "",
22300
+ method: "GET",
22301
+ path: "/api/v1/music-video-looks/{look_id}",
22302
+ scopes: ["videos:read"],
22303
+ input: external_exports.object({ look_id: MusicVideoLookIdSchema.describe("The Look id (mvlook_\u2026)") }),
22304
+ readOnly: true,
22305
+ destructive: false,
22306
+ idempotent: true,
22307
+ cli: ["looks", "music-video-get"],
22308
+ mcp: "get_music_video_look"
22309
+ },
22310
+ {
22311
+ id: "music_video_looks.archive",
22312
+ group: "videos",
22313
+ title: "Delete a music video Look",
22314
+ summary: "Removes the workspace's own Look (its reward goes back if it was public)",
22315
+ description: "",
22316
+ method: "DELETE",
22317
+ path: "/api/v1/music-video-looks/{look_id}",
22318
+ scopes: ["videos:write"],
22319
+ input: external_exports.object({ look_id: MusicVideoLookIdSchema.describe("The Look id") }),
22320
+ readOnly: false,
22321
+ destructive: true,
22322
+ idempotent: true,
22323
+ cli: ["looks", "music-video-delete"],
22324
+ mcp: "delete_music_video_look"
22325
+ },
21770
22326
  {
21771
22327
  id: "videos.retry",
21772
22328
  group: "videos",
@@ -21822,6 +22378,7 @@ var OPERATIONS = [
21822
22378
  example: { title: "Export a 15-second cut of the hook for TikTok", area: "lyric-video" }
21823
22379
  }
21824
22380
  ];
22381
+ var operationDescription = (op) => [op.deprecated ? deprecationNote(op.deprecated) : "", op.summary, op.description].filter(Boolean).join("\n\n");
21825
22382
  var operation = (opId) => {
21826
22383
  const found = OPERATIONS.find((o) => o.id === opId);
21827
22384
  if (!found) throw new Error(`Unknown operation ${opId}`);
@@ -21850,6 +22407,16 @@ function outputJsonSchema(schema) {
21850
22407
  const { $schema: _, ...rest } = external_exports.toJSONSchema(schema, { io: "output", unrepresentable: "any" });
21851
22408
  return rest;
21852
22409
  }
22410
+ var operationVariants = (op) => OPERATIONS.filter((o) => o.method === op.method && o.path === op.path);
22411
+ var openApiOperationId = (op) => {
22412
+ const variants = operationVariants(op);
22413
+ return variants.length > 1 ? `${variants[0].id.split(".")[0]}.create` : op.id;
22414
+ };
22415
+ function variantsTitle(titles) {
22416
+ const verb = titles[0].split(" ")[0];
22417
+ const parts = titles.every((t) => t.startsWith(`${verb} `)) ? titles.map((t, i) => i ? t.slice(verb.length + 1) : t) : titles;
22418
+ return parts.length > 1 ? `${parts.slice(0, -1).join(", ")} or ${parts.at(-1)}` : parts[0];
22419
+ }
21853
22420
  function openApiDocument(input2) {
21854
22421
  const paths = {};
21855
22422
  const schemas = { Video: outputJsonSchema(VideoSchema) };
@@ -21887,10 +22454,11 @@ function openApiDocument(input2) {
21887
22454
  } } } : {};
21888
22455
  if (first.output) schemas[first.output.name] ??= outputJsonSchema(first.output.schema);
21889
22456
  (paths[first.path] ??= {})[first.method.toLowerCase()] = {
21890
- operationId: variants.length > 1 ? `${first.id.split(".")[0]}.create` : first.id,
21891
- summary: variants.length > 1 ? variants.map((v) => v.op.title).join(" or ") : first.title,
21892
- description: variants.map((v) => [v.op.summary, v.op.description].filter(Boolean).join("\n\n")).join("\n\n"),
22457
+ operationId: openApiOperationId(first),
22458
+ summary: variantsTitle(variants.map((v) => v.op.title)),
22459
+ description: variants.map((v) => operationDescription(v.op)).join("\n\n"),
21893
22460
  tags: [first.group],
22461
+ ...first.deprecated ? { deprecated: true, "x-sunset": first.deprecated.sunset } : {},
21894
22462
  parameters: params,
21895
22463
  ...body,
21896
22464
  security: [{ bearer: [] }, { oauth2: [...first.scopes] }],
@@ -21911,7 +22479,7 @@ function openApiDocument(input2) {
21911
22479
  }
21912
22480
  return {
21913
22481
  openapi: "3.1.0",
21914
- info: { title: "Kinetune API", version: input2.version ?? "1", description: "Lyric videos, Spotify Canvas loops and AI music videos from your songs. The same operations power the app, the MCP server, the CLI and the n8n node." },
22482
+ info: { title: "Kinetune API", version: input2.version ?? String(API_VERSION), description: "Lyric videos, Spotify Canvas loops and AI music videos from your songs. The same operations power the app, the MCP server, the CLI and the n8n node." },
21915
22483
  servers: [{ url: input2.serverUrl }],
21916
22484
  components: { securitySchemes: {
21917
22485
  bearer: { type: "http", scheme: "bearer", description: "An organization API key (kt_live_\u2026) or an OAuth access token" },
@@ -25464,7 +26032,7 @@ async function revoke(config2) {
25464
26032
  // package.json
25465
26033
  var package_default = {
25466
26034
  name: "@kinetune/cli",
25467
- version: "0.12.0",
26035
+ version: "2.1.0",
25468
26036
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
25469
26037
  license: "MIT",
25470
26038
  homepage: "https://kinetune.com/developers#cli",
@@ -25554,7 +26122,7 @@ async function call(op, input2, files = []) {
25554
26122
  const { token, config: config2 } = await credentials();
25555
26123
  const request = buildRequest(op, input2, urls(config2).api);
25556
26124
  let body;
25557
- const headers = { authorization: `Bearer ${token}`, accept: "application/json" };
26125
+ const headers = { authorization: `Bearer ${token}`, accept: "application/json", "user-agent": `kinetune-cli/${VERSION}` };
25558
26126
  if (files.length) {
25559
26127
  const form = new FormData();
25560
26128
  for (const [k, v] of Object.entries(request.body ?? {})) if (v !== void 0) form.set(k, typeof v === "object" ? JSON.stringify(v) : String(v));
@@ -25565,6 +26133,8 @@ async function call(op, input2, files = []) {
25565
26133
  headers["content-type"] = "application/json";
25566
26134
  }
25567
26135
  const response = await fetch(request.url, { method: request.method, headers, ...body ? { body } : {} });
26136
+ if (response.headers.get("deprecation")) process.stderr.write(`Warning: \`kinetune ${op.cli.join(" ")}\` is deprecated and stops working on ${response.headers.get("sunset") ?? "a date to come"}. See ${response.headers.get("link")?.match(/<([^>]+)>/)?.[1] ?? "the changelog"}.
26137
+ `);
25568
26138
  const text = await response.text();
25569
26139
  let data = null;
25570
26140
  try {
@@ -25602,7 +26172,7 @@ function addOperation(parent, op) {
25602
26172
  const props = schema.properties ?? {};
25603
26173
  const positional = pathFields(op);
25604
26174
  const fileFields = new Map((op.files ?? []).map((f) => [f.urlField, f]));
25605
- const cmd = parent.command(op.cli.at(-1)).summary(op.summary).description([op.summary, op.description].filter(Boolean).join("\n\n") + `
26175
+ const cmd = parent.command(op.cli.at(-1)).summary(op.deprecated ? `(deprecated) ${op.summary}` : op.summary).description(operationDescription(op) + `
25606
26176
 
25607
26177
  MCP tool: ${op.mcp} REST: ${op.method} ${op.path}`);
25608
26178
  for (const name of positional) cmd.argument(`<${name}>`, props[name]?.description ?? name);
@@ -25701,8 +26271,7 @@ function program2() {
25701
26271
  forceJson = Boolean(cmd.opts().json);
25702
26272
  });
25703
26273
  const GROUP_DESCRIPTIONS = {
25704
- " artists": "Artists and their photos",
25705
- " artists photos": "Artist photos (identity references)",
26274
+ " artists": "Artists and their image",
25706
26275
  " songs": "Songs: upload, list, analysis",
25707
26276
  " looks": "Looks: reusable lyric-video designs",
25708
26277
  " quote": "Exact credits for a lyric video, Canvas or music video, before anything is charged",