@kinetune/cli 0.11.0 → 2.0.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 +19 -15
  2. package/dist/kinetune.mjs +694 -129
  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, in one continuous take." },
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,35 +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 one continuous take.",
20527
- clip: { fps: 24, frames: 360, context: 0 },
20528
- minSeconds: 15,
20529
- 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.",
20530
20701
  formats: ["9:16", "16:9", "1:1"],
20531
- cast: ["face", "outfit"],
20532
- kit: { outfits: 6, places: 6, props: 8, perClip: 7 },
20533
- categories: MUSIC_VIDEO_CATEGORY_IDS,
20534
- styles: MUSIC_VIDEO_STYLE_IDS
20535
- }
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"]) }
20536
20716
  };
20537
- var ARTIST_PHOTOS_PER_UPLOAD = 20;
20538
- var ArtistPhotoIdSchema = external_exports.string().regex(/^photo_[0-9a-f-]{36}$/, "An artist photo id (photo_\u2026)");
20539
20717
  var MusicVideoPlanIdSchema = external_exports.string().regex(/^plan_[0-9a-f-]{36}$/, "A music video plan id (plan_\u2026)");
20540
20718
  var LookbookIdSchema = external_exports.string().regex(/^lookbook_[0-9a-f-]{36}$/, "A lookbook id (lookbook_\u2026)");
20541
- 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();
20542
20721
  var MUSIC_VIDEO_SCENE_MODES = ["invent", "stock"];
20543
20722
  var MusicVideoScenesSchema = external_exports.object({ mode: external_exports.enum(MUSIC_VIDEO_SCENE_MODES) }).strict();
20544
- var KitItemIdSchema = external_exports.string().regex(/^kit_[0-9a-f-]{36}$/, "A kit piece id (kit_\u2026)");
20723
+ var MUSIC_VIDEO_TAKES = ["cuts", "continuous"];
20545
20724
  var KitHandleSchema = external_exports.string().regex(KIT_HANDLE, "Lowercase letters, digits and hyphens, at most 40");
20546
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" });
20547
20726
  var KitItemCreateSchema = external_exports.object({
@@ -20555,8 +20734,11 @@ var KitItemUpdateSchema = external_exports.object({
20555
20734
  name: external_exports.string().trim().min(1).max(60).optional(),
20556
20735
  handle: KitHandleSchema.optional(),
20557
20736
  description: external_exports.string().trim().max(300).nullable().optional(),
20558
- 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()
20559
20740
  }).strict().refine((v) => Object.keys(v).length > 0, { message: "Nothing to change" });
20741
+ var MusicVideoPersonSchema = external_exports.object({ character: KitHandleSchema, does: external_exports.string().trim().min(1).max(300).optional(), outfit: KitHandleSchema.optional() }).strict();
20560
20742
  var musicVideoBrief = {
20561
20743
  model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).default(DEFAULT_MUSIC_VIDEO_MODEL),
20562
20744
  category: external_exports.enum(MUSIC_VIDEO_CATEGORY_IDS).default("performance"),
@@ -20564,23 +20746,47 @@ var musicVideoBrief = {
20564
20746
  aspect_ratio: AspectRatioSchema.default("9:16"),
20565
20747
  trim: TrimSchema.optional(),
20566
20748
  direction: external_exports.string().trim().max(2e3).optional(),
20749
+ // Who is on screen: a performer (artist: the song's artist or the brief's performer, kept from their character), a cast the director
20750
+ // 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
20751
+ // makes (MUSIC_VIDEO_MODELS[].onScreen).
20752
+ on_screen: external_exports.enum(MUSIC_VIDEO_ON_SCREEN).optional(),
20753
+ // Who performs when someone does (on screen: artist): any character of the workspace (an artist's or the cast), sung or played to
20754
+ // camera. Omitted: the song's artist's.
20755
+ performer: KitItemIdSchema.optional(),
20567
20756
  cast: MusicVideoCastSchema.optional(),
20757
+ // The people besides the performer (one entry a character, in the shots' room for people), each with what they do if the artist
20758
+ // says; the director decides the rest. direction may mention them too.
20759
+ people: external_exports.array(MusicVideoPersonSchema).max(8).refine((list) => new Set(list.map((p) => p.character)).size === list.length, { message: "Each person once" }).optional(),
20568
20760
  scenes: MusicVideoScenesSchema.default({ mode: "invent" }),
20569
- // Design the shoot: the lookbook whose kept pieces the video uses, like the kit pieces the direction mentions.
20570
- lookbook_id: LookbookIdSchema.optional()
20761
+ // The lookbook whose kept pieces the video uses, like the kit pieces the direction mentions.
20762
+ lookbook_id: LookbookIdSchema.optional(),
20763
+ // How the shots meet: cuts (between lines, like an edit; no pictures), or continuous takes, where the director carries a
20764
+ // shot on into the next through one picture drawn for the join (priced per picture).
20765
+ takes: external_exports.enum(MUSIC_VIDEO_TAKES).default("cuts"),
20766
+ // Whether the artist sings on camera: the director decides, or never (the song plays over every shot).
20767
+ lipsync: external_exports.enum(MUSIC_VIDEO_LIPSYNC).default("auto"),
20768
+ // A music video Look (made public by someone, or the workspace's own) whose direction, places and props the video follows.
20769
+ look_id: MusicVideoLookIdSchema.optional()
20571
20770
  };
20572
20771
  var MUSIC_VIDEO_BRIEF_FIELDS = Object.keys(musicVideoBrief);
20573
- var CAST_FIELDS = { face: "face_photo_id", outfit: "outfit_photo_id" };
20772
+ var onScreenOf = (brief) => brief.on_screen ?? MUSIC_VIDEO_CATEGORIES[brief.category]?.needs?.onScreen ?? "artist";
20574
20773
  var fitsModel = (value, ctx) => {
20575
20774
  const model = MUSIC_VIDEO_MODELS[value.model];
20576
20775
  const issue2 = (path4, message) => ctx.addIssue({ code: "custom", path: [path4], message });
20577
20776
  if (!model.categories.includes(value.category)) issue2("category", `${model.label} doesn\u2019t make ${MUSIC_VIDEO_CATEGORIES[value.category].label} videos`);
20578
20777
  if (value.style && !model.styles.includes(value.style)) issue2("style", `${model.label} doesn\u2019t make the ${MUSIC_VIDEO_STYLES[value.style].label} look`);
20579
20778
  if (!model.formats.includes(value.aspect_ratio)) issue2("aspect_ratio", `${model.label} makes ${model.formats.join(", ")}`);
20580
- 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`);
20581
- 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`);
20582
- if (value.scenes && value.scenes.mode !== "invent" && !model.kit.places) issue2("scenes", `${model.label} invents every place`);
20583
- 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`);
20779
+ 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`);
20780
+ 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`);
20781
+ if (value.scenes && value.scenes.mode !== "invent" && !shotRoom(model)) issue2("scenes", `${model.label} invents every place`);
20782
+ const on = onScreenOf(value);
20783
+ 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`);
20784
+ else if (on !== "artist" && value.cast) issue2("cast", "The performer isn\u2019t in this video: leave cast out");
20785
+ 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`);
20786
+ if (on !== "artist" && value.takes === "continuous") issue2("takes", "A continuous take follows the performer: choose cuts for a video without them");
20787
+ if (value.takes === "continuous" && !(model.keyframes.start && model.keyframes.end)) issue2("takes", `${model.label} makes no continuous takes`);
20788
+ if (value.people?.length && on === "none") issue2("people", "Nobody is on screen in this video: leave people out, or put a cast on screen");
20789
+ 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`);
20584
20790
  };
20585
20791
  var MusicVideoPlanRequestSchema = external_exports.object({
20586
20792
  song_id: common.song_id,
@@ -20593,10 +20799,30 @@ var MusicVideoRequestSchema = external_exports.object({
20593
20799
  ...musicVideoBrief,
20594
20800
  plan_id: MusicVideoPlanIdSchema.optional(),
20595
20801
  // How sharp it is made; not part of the plan (the treatment and shots are the same in every quality).
20596
- quality: external_exports.enum(MUSIC_VIDEO_QUALITY_IDS).default(DEFAULT_MUSIC_VIDEO_QUALITY)
20597
- }).strict().superRefine(fitsModel);
20802
+ // Omitted: the model's default quality (MUSIC_VIDEO_MODELS[].defaultQuality), filled in below, so a parsed request always has one:
20803
+ // optional when parsed, typed as always there.
20804
+ quality: external_exports.enum(MUSIC_VIDEO_QUALITY_IDS).optional(),
20805
+ // Ordered without a plan: the director first designs the shoot (the outfits, places and props the brief leaves open) and draws
20806
+ // each as a picture the shots are given, priced per picture drawn (the quote counts the most it may draw).
20807
+ design_shoot: external_exports.boolean().default(false),
20808
+ // 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),
20809
+ // 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
20810
+ // of the plan.
20811
+ outro: external_exports.object({ display: OutroDisplaySchema, look_id: external_exports.string().min(1).max(120).optional() }).strict().optional(),
20812
+ // Finishing a delivered music video again (its kept, un-outro'd master), only its outro changed: no shot is made, no plan.
20813
+ refinish: external_exports.object({ video_id: external_exports.string().uuid() }).strict().optional()
20814
+ }).strict().overwrite((value) => ({ ...value, quality: value.quality ?? MUSIC_VIDEO_MODELS[value.model].defaultQuality })).superRefine(fitsModel).superRefine((value, ctx) => {
20815
+ const model = MUSIC_VIDEO_MODELS[value.model];
20816
+ 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(", ")}` });
20817
+ 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" });
20818
+ 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" });
20819
+ });
20598
20820
  var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideoRequestSchema, CanvasRequestSchema, MusicVideoRequestSchema]);
20599
20821
 
20822
+ // ../api-spec/src/versioning.ts
20823
+ var API_VERSION = 1;
20824
+ var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
20825
+
20600
20826
  // ../api-spec/src/queue.ts
20601
20827
  var minutes = (seconds) => Math.max(1, Math.round(seconds / 60));
20602
20828
  function queueLabel(queue) {
@@ -20610,8 +20836,8 @@ var SCOPES = ["videos:read", "videos:write", "music:read", "music:write", "libra
20610
20836
  var SCOPE_DESCRIPTIONS = {
20611
20837
  "videos:read": "See videos, quotes and your credit balance",
20612
20838
  "videos:write": "Quote, create, cancel, retry and delete videos (spends credits)",
20613
- "music:read": "See artists, their photos and songs",
20614
- "music:write": "Add, rename and archive artists and songs, upload songs and artist photos",
20839
+ "music:read": "See artists, their characters, and songs",
20840
+ "music:write": "Add, rename and archive artists and songs, upload songs and make characters",
20615
20841
  "library:read": "Browse Looks",
20616
20842
  "library:write": "Rename, delete and publish your Looks",
20617
20843
  "organizations:read": "See the workspaces you belong to",
@@ -20629,13 +20855,16 @@ var search = (q) => ({
20629
20855
  });
20630
20856
  var httpsUrl = (what) => external_exports.string().url().max(2e3).describe(`A public https URL of ${what}`);
20631
20857
  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";
20632
- 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.";
20858
+ var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s character: 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.";
20633
20859
  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).";
20860
+ 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();
20634
20861
  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.";
20635
20862
  var { type: _lyricType, quote_id: _lyricQuote, ...lyricShape } = LyricVideoRequestSchema.shape;
20636
20863
  var { type: _canvasType, quote_id: _canvasQuote, ...canvasShape } = CanvasRequestSchema.shape;
20637
20864
  var { type: _musicType, quote_id: _musicQuote, ...musicShape } = MusicVideoRequestSchema.shape;
20638
- 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";
20865
+ 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";
20866
+ 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 of its cast (list_characters: 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).";
20867
+ var ON_SCREEN_DESCRIPTION = "Who is on screen: artist (the song's artist, from their character; in a Creator workspace the cast member 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";
20639
20868
  var QUOTE_ID = external_exports.string().uuid().describe("The quote_id from the matching quote: the request must be identical");
20640
20869
  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");
20641
20870
  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");
@@ -20644,7 +20873,7 @@ var lyricInput = external_exports.object({
20644
20873
  song_id: songId,
20645
20874
  callback_url: CALLBACK,
20646
20875
  metadata: METADATA,
20647
- 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`),
20876
+ 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`),
20648
20877
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
20649
20878
  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"),
20650
20879
  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)"),
@@ -20660,42 +20889,59 @@ var canvasInput = external_exports.object({
20660
20889
  quality: canvasShape.quality.describe("AI video model tier: standard or high"),
20661
20890
  resolution: canvasShape.resolution.describe("1080p (1080\xD71920) or 720p"),
20662
20891
  style: canvasShape.style.describe("Optional visual style"),
20663
- direction: canvasShape.direction.describe("Optional mood, motifs or references; the concept still comes from the cover"),
20664
- 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")'),
20892
+ direction: canvasShape.direction.describe("Optional mood, motifs or references"),
20893
+ 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)"),
20894
+ performer: canvasShape.performer.describe("A Creator workspace only: the cast character (list_characters) who may appear, with feature_artist auto or always on an AI source. Omitted: the song's artist's character"),
20895
+ 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)`),
20665
20896
  seconds: canvasShape.seconds.describe("Canvas length in whole seconds, 5\u20138 (default 8). Spotify loops it, so no part of the song is chosen"),
20666
20897
  variations: canvasShape.variations.describe("1\u20134 different Canvases")
20667
20898
  });
20668
- 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';
20899
+ 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 (any of the workspace's, 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 answers 400`;
20900
+ 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)";
20901
+ 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';
20669
20902
  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";
20670
20903
  var musicVideoInput = external_exports.object({
20671
20904
  ...musicShape,
20672
- song_id: songId.describe("The song; its artist performs the video and needs photos (add_artist_photos)"),
20905
+ 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"),
20673
20906
  callback_url: CALLBACK,
20674
20907
  metadata: METADATA,
20675
- model: musicShape.model.describe("The music video model: one-take (default; one continuous, lip-synced take of the artist). get_options lists the models with the categories, styles, formats and length each makes"),
20908
+ 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"),
20676
20909
  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`),
20677
- 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 in one take) or surreal (the world transforms with the song). get_options lists the ones each model makes"),
20910
+ 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"),
20678
20911
  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"),
20679
20912
  aspect_ratio: musicShape.aspect_ratio.describe('The one format of the file: "9:16" (default, vertical), "16:9" (wide) or "1:1" (square)'),
20913
+ 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)`),
20680
20914
  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)"),
20681
20915
  direction: musicShape.direction.describe(DIRECTION),
20682
20916
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20917
+ look_id: musicShape.look_id.describe(LOOK_ID),
20918
+ lipsync: musicShape.lipsync.describe(LIPSYNC),
20919
+ on_screen: musicShape.on_screen.describe(ON_SCREEN_DESCRIPTION),
20920
+ performer: musicShape.performer.describe(PERFORMER),
20683
20921
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
20684
20922
  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"),
20685
- 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"),
20686
- variations: musicShape.variations.describe("1\u20134 different music videos")
20923
+ 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"),
20924
+ variations: musicShape.variations.describe("1\u20134 different music videos"),
20925
+ 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"),
20926
+ 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"),
20927
+ 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")
20687
20928
  });
20688
20929
  var musicVideoPlanInput = external_exports.object({
20689
20930
  ...MusicVideoPlanRequestSchema.shape,
20690
- song_id: songId.describe("The song; its artist performs the video and needs photos (add_artist_photos)"),
20691
- model: musicShape.model.describe("The music video model: one-take (default; one continuous, lip-synced take of the artist). get_options lists the models with the categories, styles, formats and length each makes"),
20931
+ 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"),
20932
+ 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"),
20692
20933
  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`),
20693
20934
  category: musicShape.category.describe("performance (default), intercut, cinematic, story or surreal"),
20694
20935
  style: musicShape.style.describe("Optional look: natural, film, golden-hour, neon-night, noir, vintage or dreamy; omitted, the director picks one from the cover"),
20695
20936
  aspect_ratio: musicShape.aspect_ratio.describe('"9:16" (default), "16:9" or "1:1"'),
20937
+ 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)`),
20696
20938
  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)"),
20697
20939
  direction: musicShape.direction.describe(DIRECTION),
20698
20940
  lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
20941
+ look_id: musicShape.look_id.describe(LOOK_ID),
20942
+ lipsync: musicShape.lipsync.describe(LIPSYNC),
20943
+ on_screen: musicShape.on_screen.describe(ON_SCREEN_DESCRIPTION),
20944
+ performer: musicShape.performer.describe(PERFORMER),
20699
20945
  cast: musicShape.cast.describe(CAST_DESCRIPTION),
20700
20946
  revise: MusicVideoPlanRequestSchema.shape.revise.describe('Rewrite an earlier plan of this song: {"plan_id":"plan_\u2026","note":"what to change"} (the next draft)')
20701
20947
  });
@@ -20705,12 +20951,21 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20705
20951
  draft: external_exports.number().int().describe("1 for the first plan, n+1 for a rewrite"),
20706
20952
  revision_of: external_exports.string().nullable(),
20707
20953
  note: external_exports.string().nullable(),
20708
- brief: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What it was planned from: model, category, style, aspect_ratio, trim, direction, cast"),
20954
+ 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"),
20709
20955
  title: external_exports.string().nullable().describe("The film's name, as the director titled it"),
20710
20956
  concept: external_exports.string(),
20711
20957
  style: external_exports.string(),
20712
20958
  clips: external_exports.number().int(),
20713
- cast: external_exports.object({ face_photo_id: external_exports.string(), outfit_photo_id: external_exports.string() }).describe("The photos it keeps the artist from"),
20959
+ 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"),
20960
+ people: external_exports.array(external_exports.object({
20961
+ index: external_exports.number().int(),
20962
+ character: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }),
20963
+ name: external_exports.string(),
20964
+ wardrobe: external_exports.string(),
20965
+ 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")
20966
+ })).optional().describe("The other characters in its shots (mentioned by @handle in direction: the workspace's cast or its other artists), each in one outfit throughout"),
20967
+ on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
20968
+ 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"),
20714
20969
  world: external_exports.object({ setting: external_exports.string(), wardrobe: external_exports.string(), light: external_exports.string() }).describe("What every shot keeps"),
20715
20970
  places: external_exports.array(external_exports.object({
20716
20971
  index: external_exports.number().int(),
@@ -20720,6 +20975,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20720
20975
  })).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"),
20721
20976
  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"),
20722
20977
  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"),
20978
+ joins: external_exports.number().int().describe("In a continuous take, the joins drawn as pictures (priced per picture); 0 otherwise"),
20723
20979
  shots: external_exports.array(external_exports.object({
20724
20980
  index: external_exports.number().int(),
20725
20981
  start_seconds: external_exports.number(),
@@ -20728,8 +20984,13 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20728
20984
  lyrics: external_exports.string().describe('What is sung in this clip, line breaks as " / "'),
20729
20985
  summary: external_exports.string().describe("What we see"),
20730
20986
  places: external_exports.array(external_exports.number().int()).describe("The places it happens in (numbers into places)"),
20731
- outfit: external_exports.number().int().nullable().describe("The kit outfit worn (a number into outfits), or null: the outfit photo\u2019s"),
20732
- props: external_exports.array(external_exports.number().int()).describe("The kit props seen (numbers into props)")
20987
+ outfit: external_exports.number().int().nullable().describe("The kit outfit worn (a number into outfits), or null: the world's wardrobe (world.wardrobe)"),
20988
+ props: external_exports.array(external_exports.number().int()).describe("The kit props seen (numbers into props)"),
20989
+ people: external_exports.array(external_exports.number().int()).optional().describe("The other characters in the shot, as they stand (numbers into people)"),
20990
+ continues: external_exports.boolean().describe("It carries straight on from the shot before (a continuous take), with no cut"),
20991
+ 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"),
20992
+ 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"),
20993
+ 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")
20733
20994
  })),
20734
20995
  created_at: external_exports.string()
20735
20996
  });
@@ -20773,7 +21034,7 @@ var VideoSchema = external_exports.looseObject({
20773
21034
  concept: external_exports.string().describe("The idea, in a sentence or three"),
20774
21035
  style: external_exports.string().describe("The visual style it was made in (the one asked for, or the director's pick)"),
20775
21036
  clips: external_exports.number().int().describe("How many clips it is generated in"),
20776
- 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"),
21037
+ on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
20777
21038
  world: external_exports.object({ setting: external_exports.string(), wardrobe: external_exports.string(), light: external_exports.string() }),
20778
21039
  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")
20779
21040
  }).nullable().optional().describe("A music video's plan, once the director made it (null before)"),
@@ -20793,7 +21054,7 @@ var OPERATIONS = [
20793
21054
  group: "account",
20794
21055
  title: "Get the account",
20795
21056
  summary: "Who you are signed in as, the organization (workspace) and its credit balance",
20796
- 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.",
21057
+ 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.",
20797
21058
  method: "GET",
20798
21059
  path: "/api/v1/account",
20799
21060
  scopes: ["videos:read", "music:read", "library:read"],
@@ -20809,7 +21070,7 @@ var OPERATIONS = [
20809
21070
  group: "account",
20810
21071
  title: "List the options",
20811
21072
  summary: "Video types, Look categories, background sources, formats and the current credit prices",
20812
- 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.",
21073
+ 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.",
20813
21074
  method: "GET",
20814
21075
  path: "/api/v1/options",
20815
21076
  scopes: ["videos:read", "music:read", "library:read"],
@@ -20825,7 +21086,7 @@ var OPERATIONS = [
20825
21086
  group: "account",
20826
21087
  title: "List your organizations",
20827
21088
  summary: "The organizations you belong to, your role in each and the one these credentials act for",
20828
- 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.",
21089
+ 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.",
20829
21090
  method: "GET",
20830
21091
  path: "/api/v1/organizations",
20831
21092
  scopes: ["organizations:read"],
@@ -20847,7 +21108,7 @@ var OPERATIONS = [
20847
21108
  scopes: ["organizations:write"],
20848
21109
  input: external_exports.object({
20849
21110
  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)"),
20850
- type: external_exports.enum(["artist", "label"]).describe("artist: one artist and its songs; label: a roster of artists")
21111
+ 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")
20851
21112
  }),
20852
21113
  readOnly: false,
20853
21114
  destructive: false,
@@ -20860,14 +21121,14 @@ var OPERATIONS = [
20860
21121
  id: "organizations.update",
20861
21122
  group: "account",
20862
21123
  title: "Update the organization",
20863
- summary: "Rename the organization (workspace) these credentials act for, or switch it between artist and label",
20864
- 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).",
21124
+ summary: "Rename the organization (workspace) these credentials act for, or switch it between artist, label and creator",
21125
+ 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).",
20865
21126
  method: "PATCH",
20866
21127
  path: "/api/v1/organization",
20867
21128
  scopes: ["organizations:write"],
20868
21129
  input: external_exports.object({
20869
21130
  name: external_exports.string().trim().min(2).max(80).optional().describe("The new workspace name"),
20870
- type: external_exports.enum(["artist", "label"]).optional().describe("artist (one artist) or label (a roster)")
21131
+ type: external_exports.enum(["artist", "label", "creator"]).optional().describe("artist (one artist), label (a roster) or creator (projects)")
20871
21132
  }),
20872
21133
  readOnly: false,
20873
21134
  destructive: false,
@@ -20881,7 +21142,7 @@ var OPERATIONS = [
20881
21142
  id: "artists.list",
20882
21143
  group: "artists",
20883
21144
  title: "List artists",
20884
- summary: "Artists by name, with their song and photo counts and a picture",
21145
+ summary: "Artists by name, with their song counts and a picture",
20885
21146
  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.",
20886
21147
  method: "GET",
20887
21148
  path: "/api/v1/artists",
@@ -20959,92 +21220,241 @@ var OPERATIONS = [
20959
21220
  mcp: "archive_artist"
20960
21221
  },
20961
21222
  {
20962
- id: "artists.set_picture",
21223
+ id: "artists.set_image",
20963
21224
  group: "artists",
20964
- title: "Set the artist picture",
20965
- summary: "Choose which photo is the artist\u2019s picture, and how it is cropped to a square",
20966
- 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.",
21225
+ title: "Set the artist image",
21226
+ summary: "Upload or replace the artist\u2019s image, their picture on the artist page and in lists",
21227
+ 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.",
20967
21228
  method: "POST",
20968
- path: "/api/v1/artists/{artist_id}/picture",
21229
+ path: "/api/v1/artists/{artist_id}/image",
20969
21230
  scopes: ["music:write", "videos:write"],
20970
21231
  input: external_exports.object({
20971
21232
  artist_id: artistId,
20972
- photo_id: id("photo").describe("One of the artist\u2019s photos (list_artist_photos)"),
20973
- 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")
21233
+ image_url: httpsUrl("the image").optional().describe("A public https URL of the image (or upload the file with the CLI)"),
21234
+ crop: PICTURE_CROP.describe("The square to keep, in fractions of the image; centered when omitted")
20974
21235
  }),
21236
+ files: [{ field: "image", urlField: "image_url", accept: ["image/jpeg", "image/png", "image/webp"], description: "The artist image" }],
20975
21237
  readOnly: false,
20976
21238
  destructive: false,
20977
21239
  idempotent: true,
20978
- cli: ["artists", "picture"],
20979
- mcp: "set_artist_picture",
20980
- example: { artist_id: "artist_\u2026", photo_id: "photo_\u2026", crop: { x: 0.1, y: 0, size: 0.8 } }
21240
+ cli: ["artists", "image", "set"],
21241
+ mcp: "set_artist_image",
21242
+ example: { artist_id: "artist_\u2026", image_url: "https://example.com/nova-lane.jpg", crop: { x: 0.1, y: 0, size: 0.8 } }
21243
+ },
21244
+ {
21245
+ id: "artists.remove_image",
21246
+ group: "artists",
21247
+ title: "Remove the artist image",
21248
+ summary: "Remove the artist\u2019s image: they show their initial until another is set",
21249
+ description: "",
21250
+ method: "DELETE",
21251
+ path: "/api/v1/artists/{artist_id}/image",
21252
+ scopes: ["music:write", "videos:write"],
21253
+ input: external_exports.object({ artist_id: artistId }),
21254
+ readOnly: false,
21255
+ destructive: true,
21256
+ idempotent: true,
21257
+ cli: ["artists", "image", "remove"],
21258
+ mcp: "remove_artist_image"
20981
21259
  },
20982
- /* Artist photos */
21260
+ /* The artist kit */
20983
21261
  {
20984
- id: "artist_photos.list",
21262
+ id: "characters.list",
20985
21263
  group: "artists",
20986
- title: "List artist photos",
20987
- summary: "The artist\u2019s photos (identity references)",
20988
- 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.",
21264
+ title: "List characters",
21265
+ summary: "The people videos can show: your artists' characters and your cast",
21266
+ 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. outfit is the base outfit line it was drawn in; missing lists the views an added sheet doesn't show.",
20989
21267
  method: "GET",
20990
- path: "/api/v1/artists/{artist_id}/photos",
21268
+ path: "/api/v1/characters",
20991
21269
  scopes: ["music:read", "videos:read"],
20992
- input: external_exports.object({ artist_id: artistId }),
21270
+ input: external_exports.object({ artist_id: artistId.optional().describe("Only this artist's character") }),
21271
+ readOnly: true,
21272
+ destructive: false,
21273
+ idempotent: true,
21274
+ cli: ["characters", "list"],
21275
+ mcp: "list_characters"
21276
+ },
21277
+ {
21278
+ id: "characters.face_check.get",
21279
+ group: "artists",
21280
+ title: "Get a face check",
21281
+ summary: "Whether a model can show this real person yet: their face check for it",
21282
+ 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).",
21283
+ method: "GET",
21284
+ path: "/api/v1/characters/{character_id}/face-check",
21285
+ scopes: ["music:read", "videos:read"],
21286
+ 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") }),
20993
21287
  readOnly: true,
20994
21288
  destructive: false,
20995
21289
  idempotent: true,
20996
- cli: ["artists", "photos", "list"],
20997
- mcp: "list_artist_photos"
21290
+ cli: ["characters", "face-check", "get"],
21291
+ mcp: "get_face_check"
20998
21292
  },
20999
21293
  {
21000
- id: "artist_photos.add",
21294
+ id: "characters.face_check.start",
21001
21295
  group: "artists",
21002
- title: "Add artist photos",
21003
- summary: "Upload one or more photos of the artist (JPEG, PNG or WebP)",
21004
- 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}`,
21296
+ title: "Start a face check",
21297
+ summary: "The page where the person proves, live on camera, that the face is theirs",
21298
+ 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.",
21005
21299
  method: "POST",
21006
- path: "/api/v1/artists/{artist_id}/photos",
21300
+ path: "/api/v1/characters/{character_id}/face-check",
21007
21301
  scopes: ["music:write", "videos:write"],
21008
21302
  input: external_exports.object({
21009
- artist_id: artistId,
21010
- 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)"),
21011
- rights_confirmed: external_exports.literal(true).describe("You have the rights to use these photos of the artist"),
21012
- hidden: external_exports.boolean().optional().describe("true: only for a music video, kept off the artist's photos (default false)")
21303
+ character_id: external_exports.string().min(1).describe("The character id (kit_\u2026)"),
21304
+ model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).describe("The music video model it is for"),
21305
+ consent: external_exports.literal(true).describe("The person agreed to the face check")
21306
+ }),
21307
+ readOnly: false,
21308
+ destructive: false,
21309
+ idempotent: false,
21310
+ cli: ["characters", "face-check", "start"],
21311
+ mcp: "start_face_check"
21312
+ },
21313
+ {
21314
+ id: "characters.face_check.withdraw",
21315
+ group: "artists",
21316
+ title: "Withdraw a face check",
21317
+ summary: "Deletes the person's checked face: the model stops showing them",
21318
+ 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.",
21319
+ method: "DELETE",
21320
+ path: "/api/v1/characters/{character_id}/face-check",
21321
+ scopes: ["music:write", "videos:write"],
21322
+ 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") }),
21323
+ readOnly: false,
21324
+ destructive: true,
21325
+ idempotent: true,
21326
+ cli: ["characters", "face-check", "withdraw"],
21327
+ mcp: "withdraw_face_check"
21328
+ },
21329
+ {
21330
+ id: "character_requests.create",
21331
+ group: "artists",
21332
+ title: "Start a character",
21333
+ summary: "Photos of a person to draw a sheet from, or a finished sheet to add",
21334
+ 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}`,
21335
+ method: "POST",
21336
+ path: "/api/v1/character-requests",
21337
+ scopes: ["music:write", "videos:write"],
21338
+ input: external_exports.object({
21339
+ mode: external_exports.enum(["generate", "add"]).optional().describe("generate (default): draw a sheet from photos; add: a finished sheet"),
21340
+ 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)"),
21341
+ rights_confirmed: external_exports.literal(true).describe("You have the rights to use these images of this person")
21342
+ }),
21343
+ files: [{ field: "photos", urlField: "photo_urls", multiple: true, accept: ["image/jpeg", "image/png", "image/webp"], description: "Photos of the person, or the one sheet" }],
21344
+ readOnly: false,
21345
+ destructive: false,
21346
+ idempotent: false,
21347
+ cli: ["characters", "start"],
21348
+ mcp: "start_character"
21349
+ },
21350
+ {
21351
+ id: "character_requests.list",
21352
+ group: "artists",
21353
+ title: "List sheets waiting to be kept",
21354
+ summary: "Character sheets being drawn, or drawn and paid for but not kept yet",
21355
+ 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.",
21356
+ method: "GET",
21357
+ path: "/api/v1/character-requests",
21358
+ scopes: ["music:read", "videos:read"],
21359
+ input: external_exports.object({}),
21360
+ readOnly: true,
21361
+ destructive: false,
21362
+ idempotent: true,
21363
+ cli: ["characters", "waiting"],
21364
+ mcp: "list_character_requests"
21365
+ },
21366
+ {
21367
+ id: "character_requests.get",
21368
+ group: "artists",
21369
+ title: "Get a character in the making",
21370
+ summary: "What was read from the photos, the outfit line, the sheet as drawn",
21371
+ 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.",
21372
+ method: "GET",
21373
+ path: "/api/v1/character-requests/{request_id}",
21374
+ scopes: ["music:read", "videos:read"],
21375
+ input: external_exports.object({ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)") }),
21376
+ readOnly: true,
21377
+ destructive: false,
21378
+ idempotent: true,
21379
+ cli: ["characters", "get"],
21380
+ mcp: "get_character_request"
21381
+ },
21382
+ {
21383
+ id: "character_requests.draw",
21384
+ group: "artists",
21385
+ title: "Draw a character sheet",
21386
+ summary: "Draws the sheet for the credits shown (again with a note to redraw)",
21387
+ 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.',
21388
+ method: "POST",
21389
+ path: "/api/v1/character-requests/{request_id}/draw",
21390
+ scopes: ["music:write", "videos:write"],
21391
+ input: external_exports.object({
21392
+ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)"),
21393
+ credits: external_exports.number().int().positive().describe("price.credits, as shown to the user"),
21394
+ outfit: external_exports.string().trim().max(220).optional().describe("The base outfit line"),
21395
+ note: external_exports.string().trim().max(500).optional().describe("What to change, when drawing again")
21013
21396
  }),
21014
- files: [{ field: "photos", urlField: "photo_urls", multiple: true, accept: ["image/jpeg", "image/png", "image/webp"], description: "Photos of the artist" }],
21015
21397
  readOnly: false,
21016
21398
  destructive: false,
21017
21399
  idempotent: false,
21018
- cli: ["artists", "photos", "add"],
21019
- mcp: "add_artist_photos"
21400
+ cli: ["characters", "draw"],
21401
+ mcp: "draw_character_sheet"
21020
21402
  },
21021
21403
  {
21022
- id: "artist_photos.delete",
21404
+ id: "character_requests.keep",
21023
21405
  group: "artists",
21024
- title: "Delete an artist photo",
21025
- summary: "Remove one photo",
21406
+ title: "Keep a character",
21407
+ summary: "Keeps the sheet in the kit, as an artist or as named cast",
21408
+ description: "artist_id: it is that artist (one each; replace true takes the place of theirs); or name: cast, with an @handle from the name (or handle). 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.",
21409
+ method: "POST",
21410
+ path: "/api/v1/character-requests/{request_id}/keep",
21411
+ scopes: ["music:write", "videos:write"],
21412
+ input: external_exports.object({
21413
+ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)"),
21414
+ artist_id: artistId.optional().describe("It is this artist"),
21415
+ name: external_exports.string().trim().min(1).max(60).optional().describe("A cast member's name"),
21416
+ handle: external_exports.string().regex(/^[a-z0-9-]{1,40}$/).optional().describe("The @handle, without @"),
21417
+ replace: external_exports.boolean().optional().describe("Replace the artist's character"),
21418
+ ai_made: external_exports.boolean().optional().describe("An AI-made person who looks like no real person (true), or a real person (false)")
21419
+ }),
21420
+ readOnly: false,
21421
+ destructive: false,
21422
+ idempotent: false,
21423
+ cli: ["characters", "keep"],
21424
+ mcp: "keep_character"
21425
+ },
21426
+ {
21427
+ id: "character_requests.delete",
21428
+ group: "artists",
21429
+ title: "Discard a character in the making",
21430
+ summary: "Deletes its uploads and sheet",
21026
21431
  description: "",
21027
21432
  method: "DELETE",
21028
- path: "/api/v1/artists/{artist_id}/photos/{photo_id}",
21433
+ path: "/api/v1/character-requests/{request_id}",
21029
21434
  scopes: ["music:write", "videos:write"],
21030
- input: external_exports.object({ artist_id: artistId, photo_id: id("photo") }),
21435
+ input: external_exports.object({ request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)") }),
21031
21436
  readOnly: false,
21032
21437
  destructive: true,
21033
21438
  idempotent: true,
21034
- cli: ["artists", "photos", "delete"],
21035
- mcp: "delete_artist_photo"
21439
+ cli: ["characters", "discard"],
21440
+ mcp: "discard_character_request"
21036
21441
  },
21037
- /* The artist kit */
21038
21442
  {
21039
21443
  id: "kit.list",
21040
21444
  group: "artists",
21041
21445
  title: "List the kit",
21042
21446
  summary: "Outfits, places and props a music video brief can mention",
21043
- 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.`,
21447
+ 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. Every piece by default; pass q to search by name, @handle or description, and limit/offset to page. total is how many pieces match.`,
21044
21448
  method: "GET",
21045
21449
  path: "/api/v1/kit",
21046
21450
  scopes: ["music:read", "videos:read"],
21047
- 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") }),
21451
+ input: external_exports.object({
21452
+ artist_id: artistId.optional().describe("Only the workspace\u2019s pieces and this artist\u2019s outfits"),
21453
+ kind: external_exports.enum(KIT_KINDS).optional().describe("outfit, place or prop"),
21454
+ q: external_exports.string().max(100).optional().describe("Part of the name, @handle or description"),
21455
+ limit: external_exports.number().int().min(1).max(100).optional().describe("Pieces per page, 1-100 (default: every piece)"),
21456
+ offset: external_exports.number().int().min(0).optional().describe("How many pieces to skip")
21457
+ }),
21048
21458
  readOnly: true,
21049
21459
  destructive: false,
21050
21460
  idempotent: true,
@@ -21100,7 +21510,7 @@ var OPERATIONS = [
21100
21510
  group: "artists",
21101
21511
  title: "Change a kit piece",
21102
21512
  summary: "Rename it, change its handle or description, or crop it again",
21103
- description: "crop is cut again from the image the piece was added from. Plans already made keep the pieces as they were planned.",
21513
+ description: "crop is cut again from the image the piece was added from. 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.",
21104
21514
  method: "PATCH",
21105
21515
  path: "/api/v1/kit/{kit_id}",
21106
21516
  scopes: ["music:write", "videos:write"],
@@ -21109,7 +21519,8 @@ var OPERATIONS = [
21109
21519
  name: external_exports.string().trim().min(1).max(60).optional(),
21110
21520
  handle: KitHandleSchema.optional(),
21111
21521
  description: external_exports.string().trim().max(300).nullable().optional(),
21112
- crop: CropRectSchema.optional().describe("The new rectangle, in fractions of the source image")
21522
+ crop: CropRectSchema.optional().describe("The new rectangle, in fractions of the source image"),
21523
+ ai_made: external_exports.boolean().optional().describe("A character only: an AI-made person (true) or a real one (false)")
21113
21524
  }),
21114
21525
  readOnly: false,
21115
21526
  destructive: false,
@@ -21170,7 +21581,8 @@ var OPERATIONS = [
21170
21581
  language: external_exports.string().regex(/^[a-z]{2,3}$/).optional().describe('Lyrics language (ISO 639-1, e.g. "en"); detected when omitted'),
21171
21582
  audio_url: httpsUrl("the master audio").optional(),
21172
21583
  cover_art_url: httpsUrl("the square cover art").optional(),
21173
- lyrics: external_exports.string().max(1e5).optional().describe(`Optional. ${LYRICS} once the song is analyzed (get_song: analysis.lyrics.status "mismatch")`)
21584
+ lyrics: external_exports.string().max(1e5).optional().describe(`Optional. ${LYRICS} once the song is analyzed (get_song: analysis.lyrics.status "mismatch")`),
21585
+ 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.")
21174
21586
  }),
21175
21587
  files: [
21176
21588
  { field: "audio", urlField: "audio_url", accept: ["audio/mpeg", "audio/wav", "audio/mp4"], description: "Master audio (MP3, WAV or M4A)" },
@@ -21204,11 +21616,15 @@ var OPERATIONS = [
21204
21616
  group: "songs",
21205
21617
  title: "Rename a song",
21206
21618
  summary: "Change a song\u2019s title",
21207
- description: "",
21619
+ 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".`,
21208
21620
  method: "PATCH",
21209
21621
  path: "/api/v1/songs/{song_id}",
21210
21622
  scopes: ["music:write", "videos:write"],
21211
- input: external_exports.object({ song_id: songId, title: external_exports.string().trim().min(1).max(300).describe("The new title") }),
21623
+ input: external_exports.object({
21624
+ song_id: songId,
21625
+ title: external_exports.string().trim().min(1).max(300).optional().describe("The new title"),
21626
+ 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.")
21627
+ }),
21212
21628
  readOnly: false,
21213
21629
  destructive: false,
21214
21630
  idempotent: true,
@@ -21236,7 +21652,7 @@ var OPERATIONS = [
21236
21652
  group: "songs",
21237
21653
  title: "Get a song\u2019s analysis",
21238
21654
  summary: "Word-timed lyrics, tempo, beats, sections, hook and the parts a video can be cut to",
21239
- 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).',
21655
+ 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.',
21240
21656
  method: "GET",
21241
21657
  path: "/api/v1/songs/{song_id}/analysis",
21242
21658
  scopes: ["music:read", "videos:read"],
@@ -21466,9 +21882,9 @@ var OPERATIONS = [
21466
21882
  {
21467
21883
  id: "music_video_plans.create",
21468
21884
  group: "videos",
21469
- title: "Plan a music video",
21470
- summary: "The director's treatment and shots for a music video, before anything is charged",
21471
- description: "Free (a limited number an hour). Takes about a minute. Returns a plan: the concept, the face and outfit photos, and one shot per 15-second clip with its lyrics. 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.",
21885
+ title: "Write a music video shot list",
21886
+ summary: "The director's shot list for a music video, the idea and every shot, before anything is charged",
21887
+ 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.",
21472
21888
  method: "POST",
21473
21889
  path: "/api/v1/music-video-plans",
21474
21890
  scopes: ["videos:write"],
@@ -21486,7 +21902,7 @@ var OPERATIONS = [
21486
21902
  group: "videos",
21487
21903
  title: "Change a place's photo",
21488
21904
  summary: "Another stock photo for one of a plan's places",
21489
- 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.",
21905
+ 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.",
21490
21906
  method: "PATCH",
21491
21907
  path: "/api/v1/music-video-plans/{plan_id}/places/{place}",
21492
21908
  scopes: ["videos:write"],
@@ -21498,13 +21914,13 @@ var OPERATIONS = [
21498
21914
  mcp: "swap_music_video_place",
21499
21915
  output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema }
21500
21916
  },
21501
- /* Design the shoot */
21917
+ /* The lookbook */
21502
21918
  {
21503
21919
  id: "music_video_lookbooks.create",
21504
21920
  group: "videos",
21505
- title: "Design a music video shoot",
21506
- summary: "The director designs the outfits, places and props the brief leaves to it, before the plan",
21507
- 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}`,
21921
+ title: "Design a music video lookbook",
21922
+ summary: "The director designs the outfits, places and props the brief leaves to it as pictures, before the shot list",
21923
+ 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}`,
21508
21924
  method: "POST",
21509
21925
  path: "/api/v1/music-video-lookbooks",
21510
21926
  scopes: ["videos:write"],
@@ -21548,6 +21964,22 @@ var OPERATIONS = [
21548
21964
  cli: ["lookbook", "update"],
21549
21965
  mcp: "update_music_video_lookbook"
21550
21966
  },
21967
+ {
21968
+ id: "music_video_lookbooks.delete",
21969
+ group: "videos",
21970
+ title: "Delete a lookbook",
21971
+ summary: "Deletes a lookbook nothing was made from, with its pictures",
21972
+ 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.",
21973
+ method: "DELETE",
21974
+ path: "/api/v1/music-video-lookbooks/{lookbook_id}",
21975
+ scopes: ["videos:write"],
21976
+ input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id (lookbook_\u2026)") }),
21977
+ readOnly: false,
21978
+ destructive: true,
21979
+ idempotent: true,
21980
+ cli: ["lookbook", "delete"],
21981
+ mcp: "delete_music_video_lookbook"
21982
+ },
21551
21983
  {
21552
21984
  id: "music_video_lookbooks.render",
21553
21985
  group: "videos",
@@ -21617,6 +22049,38 @@ var OPERATIONS = [
21617
22049
  cli: ["lookbook", "redraw"],
21618
22050
  mcp: "redraw_music_video_lookbook_piece"
21619
22051
  },
22052
+ {
22053
+ id: "music_video_plans.delete",
22054
+ group: "videos",
22055
+ title: "Delete a shot list",
22056
+ summary: "Deletes a shot list no video was made from, with every draft of it",
22057
+ 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.",
22058
+ method: "DELETE",
22059
+ path: "/api/v1/music-video-plans/{plan_id}",
22060
+ scopes: ["videos:write"],
22061
+ input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)") }),
22062
+ readOnly: false,
22063
+ destructive: true,
22064
+ idempotent: true,
22065
+ cli: ["plans", "delete"],
22066
+ mcp: "delete_music_video_plan"
22067
+ },
22068
+ {
22069
+ id: "music_video_plans.list",
22070
+ group: "videos",
22071
+ title: "List music video drafts",
22072
+ summary: "A song's music videos in the making: shot lists not made yet and lookbooks not used yet",
22073
+ 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.",
22074
+ method: "GET",
22075
+ path: "/api/v1/music-video-plans",
22076
+ scopes: ["videos:read"],
22077
+ input: external_exports.object({ song_id: songId.describe("The song") }),
22078
+ readOnly: true,
22079
+ destructive: false,
22080
+ idempotent: true,
22081
+ cli: ["plans", "list"],
22082
+ mcp: "list_music_video_drafts"
22083
+ },
21620
22084
  {
21621
22085
  id: "music_video_plans.get",
21622
22086
  group: "videos",
@@ -21639,7 +22103,7 @@ var OPERATIONS = [
21639
22103
  group: "videos",
21640
22104
  title: "Quote a music video",
21641
22105
  summary: "The exact credits for an AI music video, before anything is charged",
21642
- 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}`,
22106
+ 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}`,
21643
22107
  method: "POST",
21644
22108
  path: "/api/v1/quotes",
21645
22109
  scopes: ["videos:write", "videos:read"],
@@ -21759,6 +22223,94 @@ var OPERATIONS = [
21759
22223
  cli: ["videos", "cancel"],
21760
22224
  mcp: "cancel_video"
21761
22225
  },
22226
+ {
22227
+ id: "videos.revise_shot",
22228
+ group: "videos",
22229
+ title: "Revise a music video shot",
22230
+ summary: "The director rewrites one shot of a delivered music video from a note (free)",
22231
+ 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.",
22232
+ method: "POST",
22233
+ path: "/api/v1/videos/{video_id}/revisions",
22234
+ scopes: ["videos:write"],
22235
+ 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") }),
22236
+ readOnly: false,
22237
+ destructive: false,
22238
+ idempotent: false,
22239
+ cli: ["videos", "revise"],
22240
+ mcp: "revise_music_video_shot",
22241
+ output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema },
22242
+ 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" }
22243
+ },
22244
+ {
22245
+ id: "videos.save_look",
22246
+ group: "videos",
22247
+ title: "Save a music video's Look",
22248
+ summary: "A delivered music video's direction as a reusable Look (free)",
22249
+ 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.",
22250
+ method: "POST",
22251
+ path: "/api/v1/videos/{video_id}/look",
22252
+ scopes: ["videos:write"],
22253
+ input: external_exports.object({ video_id: videoId }),
22254
+ readOnly: false,
22255
+ destructive: false,
22256
+ idempotent: true,
22257
+ cli: ["videos", "save-look"],
22258
+ mcp: "save_music_video_look"
22259
+ },
22260
+ {
22261
+ id: "music_video_looks.list",
22262
+ group: "videos",
22263
+ title: "List music video Looks",
22264
+ summary: "Music video Looks made public, and the workspace's own",
22265
+ 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.",
22266
+ method: "GET",
22267
+ path: "/api/v1/music-video-looks",
22268
+ scopes: ["videos:read"],
22269
+ input: external_exports.object({
22270
+ scope: external_exports.enum(["all", "community", "mine"]).optional(),
22271
+ q: external_exports.string().max(100).optional().describe("Search names and descriptions"),
22272
+ sort: external_exports.enum(["newest", "popular"]).optional(),
22273
+ limit: external_exports.number().int().min(1).max(100).optional(),
22274
+ offset: external_exports.number().int().min(0).optional()
22275
+ }),
22276
+ readOnly: true,
22277
+ destructive: false,
22278
+ idempotent: true,
22279
+ cli: ["looks", "music-video"],
22280
+ mcp: "list_music_video_looks"
22281
+ },
22282
+ {
22283
+ id: "music_video_looks.get",
22284
+ group: "videos",
22285
+ title: "Get a music video Look",
22286
+ summary: "One music video Look",
22287
+ description: "",
22288
+ method: "GET",
22289
+ path: "/api/v1/music-video-looks/{look_id}",
22290
+ scopes: ["videos:read"],
22291
+ input: external_exports.object({ look_id: MusicVideoLookIdSchema.describe("The Look id (mvlook_\u2026)") }),
22292
+ readOnly: true,
22293
+ destructive: false,
22294
+ idempotent: true,
22295
+ cli: ["looks", "music-video-get"],
22296
+ mcp: "get_music_video_look"
22297
+ },
22298
+ {
22299
+ id: "music_video_looks.archive",
22300
+ group: "videos",
22301
+ title: "Delete a music video Look",
22302
+ summary: "Removes the workspace's own Look (its reward goes back if it was public)",
22303
+ description: "",
22304
+ method: "DELETE",
22305
+ path: "/api/v1/music-video-looks/{look_id}",
22306
+ scopes: ["videos:write"],
22307
+ input: external_exports.object({ look_id: MusicVideoLookIdSchema.describe("The Look id") }),
22308
+ readOnly: false,
22309
+ destructive: true,
22310
+ idempotent: true,
22311
+ cli: ["looks", "music-video-delete"],
22312
+ mcp: "delete_music_video_look"
22313
+ },
21762
22314
  {
21763
22315
  id: "videos.retry",
21764
22316
  group: "videos",
@@ -21814,6 +22366,7 @@ var OPERATIONS = [
21814
22366
  example: { title: "Export a 15-second cut of the hook for TikTok", area: "lyric-video" }
21815
22367
  }
21816
22368
  ];
22369
+ var operationDescription = (op) => [op.deprecated ? deprecationNote(op.deprecated) : "", op.summary, op.description].filter(Boolean).join("\n\n");
21817
22370
  var operation = (opId) => {
21818
22371
  const found = OPERATIONS.find((o) => o.id === opId);
21819
22372
  if (!found) throw new Error(`Unknown operation ${opId}`);
@@ -21842,6 +22395,16 @@ function outputJsonSchema(schema) {
21842
22395
  const { $schema: _, ...rest } = external_exports.toJSONSchema(schema, { io: "output", unrepresentable: "any" });
21843
22396
  return rest;
21844
22397
  }
22398
+ var operationVariants = (op) => OPERATIONS.filter((o) => o.method === op.method && o.path === op.path);
22399
+ var openApiOperationId = (op) => {
22400
+ const variants = operationVariants(op);
22401
+ return variants.length > 1 ? `${variants[0].id.split(".")[0]}.create` : op.id;
22402
+ };
22403
+ function variantsTitle(titles) {
22404
+ const verb = titles[0].split(" ")[0];
22405
+ const parts = titles.every((t) => t.startsWith(`${verb} `)) ? titles.map((t, i) => i ? t.slice(verb.length + 1) : t) : titles;
22406
+ return parts.length > 1 ? `${parts.slice(0, -1).join(", ")} or ${parts.at(-1)}` : parts[0];
22407
+ }
21845
22408
  function openApiDocument(input2) {
21846
22409
  const paths = {};
21847
22410
  const schemas = { Video: outputJsonSchema(VideoSchema) };
@@ -21879,10 +22442,11 @@ function openApiDocument(input2) {
21879
22442
  } } } : {};
21880
22443
  if (first.output) schemas[first.output.name] ??= outputJsonSchema(first.output.schema);
21881
22444
  (paths[first.path] ??= {})[first.method.toLowerCase()] = {
21882
- operationId: variants.length > 1 ? `${first.id.split(".")[0]}.create` : first.id,
21883
- summary: variants.length > 1 ? variants.map((v) => v.op.title).join(" or ") : first.title,
21884
- description: variants.map((v) => [v.op.summary, v.op.description].filter(Boolean).join("\n\n")).join("\n\n"),
22445
+ operationId: openApiOperationId(first),
22446
+ summary: variantsTitle(variants.map((v) => v.op.title)),
22447
+ description: variants.map((v) => operationDescription(v.op)).join("\n\n"),
21885
22448
  tags: [first.group],
22449
+ ...first.deprecated ? { deprecated: true, "x-sunset": first.deprecated.sunset } : {},
21886
22450
  parameters: params,
21887
22451
  ...body,
21888
22452
  security: [{ bearer: [] }, { oauth2: [...first.scopes] }],
@@ -21903,7 +22467,7 @@ function openApiDocument(input2) {
21903
22467
  }
21904
22468
  return {
21905
22469
  openapi: "3.1.0",
21906
- 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." },
22470
+ 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." },
21907
22471
  servers: [{ url: input2.serverUrl }],
21908
22472
  components: { securitySchemes: {
21909
22473
  bearer: { type: "http", scheme: "bearer", description: "An organization API key (kt_live_\u2026) or an OAuth access token" },
@@ -25456,7 +26020,7 @@ async function revoke(config2) {
25456
26020
  // package.json
25457
26021
  var package_default = {
25458
26022
  name: "@kinetune/cli",
25459
- version: "0.11.0",
26023
+ version: "2.0.0",
25460
26024
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
25461
26025
  license: "MIT",
25462
26026
  homepage: "https://kinetune.com/developers#cli",
@@ -25546,7 +26110,7 @@ async function call(op, input2, files = []) {
25546
26110
  const { token, config: config2 } = await credentials();
25547
26111
  const request = buildRequest(op, input2, urls(config2).api);
25548
26112
  let body;
25549
- const headers = { authorization: `Bearer ${token}`, accept: "application/json" };
26113
+ const headers = { authorization: `Bearer ${token}`, accept: "application/json", "user-agent": `kinetune-cli/${VERSION}` };
25550
26114
  if (files.length) {
25551
26115
  const form = new FormData();
25552
26116
  for (const [k, v] of Object.entries(request.body ?? {})) if (v !== void 0) form.set(k, typeof v === "object" ? JSON.stringify(v) : String(v));
@@ -25557,6 +26121,8 @@ async function call(op, input2, files = []) {
25557
26121
  headers["content-type"] = "application/json";
25558
26122
  }
25559
26123
  const response = await fetch(request.url, { method: request.method, headers, ...body ? { body } : {} });
26124
+ 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"}.
26125
+ `);
25560
26126
  const text = await response.text();
25561
26127
  let data = null;
25562
26128
  try {
@@ -25594,7 +26160,7 @@ function addOperation(parent, op) {
25594
26160
  const props = schema.properties ?? {};
25595
26161
  const positional = pathFields(op);
25596
26162
  const fileFields = new Map((op.files ?? []).map((f) => [f.urlField, f]));
25597
- const cmd = parent.command(op.cli.at(-1)).summary(op.summary).description([op.summary, op.description].filter(Boolean).join("\n\n") + `
26163
+ const cmd = parent.command(op.cli.at(-1)).summary(op.deprecated ? `(deprecated) ${op.summary}` : op.summary).description(operationDescription(op) + `
25598
26164
 
25599
26165
  MCP tool: ${op.mcp} REST: ${op.method} ${op.path}`);
25600
26166
  for (const name of positional) cmd.argument(`<${name}>`, props[name]?.description ?? name);
@@ -25693,8 +26259,7 @@ function program2() {
25693
26259
  forceJson = Boolean(cmd.opts().json);
25694
26260
  });
25695
26261
  const GROUP_DESCRIPTIONS = {
25696
- " artists": "Artists and their photos",
25697
- " artists photos": "Artist photos (identity references)",
26262
+ " artists": "Artists and their image",
25698
26263
  " songs": "Songs: upload, list, analysis",
25699
26264
  " looks": "Looks: reusable lyric-video designs",
25700
26265
  " quote": "Exact credits for a lyric video, Canvas or music video, before anything is charged",