@kinetune/cli 2.0.0 → 2.2.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.
package/README.md CHANGED
@@ -128,6 +128,26 @@ kinetune looks list --artist-id ARTIST_ID # leave out Looks t
128
128
 
129
129
  A New Look leaves the singer out unless you ask: `"feature_artist":"always"` in the look (AI image or AI video, private, with `"cover":false` in display) makes them the subject of the background.
130
130
 
131
+ ## Make a video public
132
+
133
+ ```bash
134
+ kinetune videos share VIDEO_ID # a lyric video or Canvas, into the Community
135
+ kinetune videos share VIDEO_ID --rights-confirmed # a music video: you may show the artist publicly
136
+ kinetune videos share VIDEO_ID --socials --credit-handle @novalane # Kinetune may also post it, crediting you
137
+ kinetune videos unshare VIDEO_ID # private again
138
+ ```
139
+
140
+ Its Look becomes reusable by anyone while it is public (a music video's concept, never the people in it). Agents
141
+ ask before sharing and pass `--rights-confirmed` and `--socials` only when the person said so.
142
+
143
+ ## Ideas for Kinetune
144
+
145
+ ```bash
146
+ kinetune ideas list --q "tiktok" # the Community board, most voted first (--sort new, --status open, --yours)
147
+ kinetune ideas vote IDEA_ID # or unvote; follow / unfollow for an email when it ships
148
+ kinetune ideas suggest --title "Export a 15-second cut of the hook for TikTok"
149
+ ```
150
+
131
151
  ## For agents and scripts
132
152
 
133
153
  - Path ids are arguments, fields are flags, `--input file.json` (or `-` for stdin) takes the whole request.
package/dist/kinetune.mjs CHANGED
@@ -20272,12 +20272,14 @@ var BackgroundSchema = external_exports.discriminatedUnion("kind", [
20272
20272
  scenes: external_exports.array(external_exports.string().min(10).max(1e3)).min(1).max(3).optional()
20273
20273
  }).strict(),
20274
20274
  // A seamless loop (its still is the first and last frame) that repeats under the whole song. It
20275
- // only pulses with the beat; the blur is baked into the stored loop.
20275
+ // only pulses with the beat; the blur is baked into the stored loop. once: the song's own music
20276
+ // video, played once from its first frame in step with the song (no loop, no pulse, no blur).
20276
20277
  external_exports.object({
20277
20278
  kind: external_exports.literal("video"),
20278
20279
  ...backgroundMedia,
20279
- motion_prompt: external_exports.string().min(10).max(1e3).optional()
20280
+ motion_prompt: external_exports.string().min(10).max(1e3).optional(),
20280
20281
  // generated: how the scene moves
20282
+ once: external_exports.boolean().optional()
20281
20283
  }).strict(),
20282
20284
  external_exports.object({
20283
20285
  kind: external_exports.literal("gradient"),
@@ -20449,7 +20451,7 @@ var BACKGROUND_SOURCES2 = {
20449
20451
  "stock-video": { label: "Stock video", description: "A stock clip made into a seamless loop.", kind: "video", source: "stock" },
20450
20452
  "upload-photo": { label: "Your photo", description: "A photo you upload, moving slowly across the song.", kind: "image", source: "upload" },
20451
20453
  "upload-video": { label: "Your video", description: "A clip you upload, made into a seamless loop.", kind: "video", source: "upload" },
20452
- designed: { label: "Designed", description: "A drawn gradient or pattern.", kind: null, source: null }
20454
+ designed: { label: "Designed", description: "A moving gradient or pattern the director designs from your cover.", kind: null, source: null }
20453
20455
  };
20454
20456
  var MAX_BACKGROUND_SCENES = 4;
20455
20457
  var SINGLE_SCENE_STYLES = ["behind", "screen"];
@@ -20473,7 +20475,7 @@ var BACKGROUND_UPLOAD_LIMITS = {
20473
20475
  video: { maxBytes: 300 * 1024 * 1024, minShortSide: 720, minSeconds: 4, maxSeconds: 180, types: ["video/mp4", "video/quicktime", "video/webm"] }
20474
20476
  };
20475
20477
  var isUploadSource = (source) => BACKGROUND_SOURCES2[source].source === "upload";
20476
- var backgroundSourcesFor = (category) => categoryUsesImages(category) ? MEDIA_BACKGROUND_SOURCES : ["designed"];
20478
+ var backgroundSourcesFor = (category) => categoryUsesImages(category) ? [...MEDIA_BACKGROUND_SOURCES, "designed"] : ["designed", ...MEDIA_BACKGROUND_SOURCES];
20477
20479
  var backgroundSourceFor = (category, background) => background.source ?? backgroundSourcesFor(category)[0];
20478
20480
  var LOOK_FEATURE_ARTIST_MODES = ["never", "always"];
20479
20481
  var CANVAS_FEATURE_ARTIST_MODES = ["auto", "always", "never"];
@@ -20593,25 +20595,26 @@ var MUSIC_VIDEO_CATEGORY_IDS = [
20593
20595
  "band",
20594
20596
  "action"
20595
20597
  ];
20598
+ var MUSIC_VIDEO_ABILITIES = ["choreography", "ensemble", "action", "stylized"];
20596
20599
  var MUSIC_VIDEO_CATEGORIES = {
20597
20600
  performance: { label: "Performance", description: "The performer sings to camera in one place that suits the song." },
20598
20601
  intercut: { label: "Performance & story", description: "The performer sings to camera, cut against them living the song\u2019s story." },
20599
- cinematic: { label: "Cinematic", description: "A performance with a moving camera that travels through a location." },
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." },
20602
+ cinematic: { label: "Cinematic", description: "A performance on the move: long travelling takes through one place, singing to the lens." },
20603
+ story: { label: "Story", description: "The performer lives the song\u2019s story, singing its lines inside it, never on a separate stage." },
20604
+ surreal: { label: "Surreal", description: "Impossible things happen in ordinary places while the performer keeps singing." },
20605
+ studio: { label: "Studio session", description: "A live take in a recording room: the performer at the mic, the band around them." },
20603
20606
  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
+ instrument: { label: "At the instrument", description: "The performer plays and sings the song at their instrument: piano, guitar, decks or drums.", needs: { plays: true } },
20608
+ "lyric-led": { label: "Lyric-led story", description: "The performer lives the song\u2019s story and sings its key lines to the lens from inside it.", needs: { sings: true } },
20609
+ vlog: { label: "Phone diary", description: "Their own footage of a day, a trip or a tour, the lines sung into the phone." },
20607
20610
  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" } },
20611
+ oner: { label: "One take", description: "One unbroken take with the performer from start to end, held still or travelling.", needs: { keyframes: true } },
20612
+ "cast-story": { label: "Story with a cast", description: "Other people live the song\u2019s story; the performer doesn\u2019t appear.", needs: { onScreen: "cast" } },
20613
+ mood: { label: "Mood", description: "One material, its light and color moving with the music; no one on screen.", needs: { onScreen: "none" } },
20614
+ places: { label: "Places", description: "A journey through places that suit the song; no one on screen.", needs: { onScreen: "none" } },
20612
20615
  dance: { label: "Dance", description: "Choreography: the performer and dancers move with the song.", needs: { ability: "choreography" } },
20613
20616
  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" } }
20617
+ action: { label: "Action", description: "A chase toward one goal, cut fast to the song, the performer singing between.", needs: { ability: "action" } }
20615
20618
  };
20616
20619
  var MUSIC_VIDEO_STYLE_IDS = [
20617
20620
  "natural",
@@ -20691,7 +20694,7 @@ function seedance(label, model, qualities) {
20691
20694
  shot: { references: 9, people: 3 },
20692
20695
  // 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
20696
  // 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: [] })
20697
+ ...withCatalog({ clip: { fps: 24, frames: 360, context: 0 }, keyframes: { start: true, end: true }, performances: MUSIC_VIDEO_PERFORMANCES, onScreen: ["artist", "cast", "none"], abilities: MUSIC_VIDEO_ABILITIES })
20695
20698
  };
20696
20699
  }
20697
20700
  var MUSIC_VIDEO_MODELS = {
@@ -20701,10 +20704,10 @@ var MUSIC_VIDEO_MODELS = {
20701
20704
  formats: ["9:16", "16:9", "1:1"],
20702
20705
  shot: { references: 9, people: 3 },
20703
20706
  // 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.
20707
+ // places and props). Dances, a band, action and the stylized looks too; its kinds and looks follow from that.
20705
20708
  qualities: ["480p", "768p", "1080p"],
20706
20709
  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: [] })
20710
+ ...withCatalog({ clip: { fps: 24, frames: 360, context: 0 }, keyframes: { start: true, end: true }, performances: MUSIC_VIDEO_PERFORMANCES, onScreen: ["artist", "cast", "none"], abilities: MUSIC_VIDEO_ABILITIES })
20708
20711
  },
20709
20712
  // 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
20713
  // 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
@@ -20736,7 +20739,9 @@ var KitItemUpdateSchema = external_exports.object({
20736
20739
  description: external_exports.string().trim().max(300).nullable().optional(),
20737
20740
  crop: CropRectSchema.optional(),
20738
20741
  /** 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()
20742
+ ai_made: external_exports.boolean().optional(),
20743
+ /** Offered to every other artist's studio too (true), or only its own artist's (false). */
20744
+ shared: external_exports.boolean().optional()
20740
20745
  }).strict().refine((v) => Object.keys(v).length > 0, { message: "Nothing to change" });
20741
20746
  var MusicVideoPersonSchema = external_exports.object({ character: KitHandleSchema, does: external_exports.string().trim().min(1).max(300).optional(), outfit: KitHandleSchema.optional() }).strict();
20742
20747
  var musicVideoBrief = {
@@ -20783,7 +20788,6 @@ var fitsModel = (value, ctx) => {
20783
20788
  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
20789
  else if (on !== "artist" && value.cast) issue2("cast", "The performer isn\u2019t in this video: leave cast out");
20785
20790
  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
20791
  if (value.takes === "continuous" && !(model.keyframes.start && model.keyframes.end)) issue2("takes", `${model.label} makes no continuous takes`);
20788
20792
  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
20793
  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`);
@@ -20848,23 +20852,25 @@ var songId = id("song");
20848
20852
  var artistId = id("artist");
20849
20853
  var lookId = id("Look");
20850
20854
  var videoId = id("video");
20855
+ var IDEA_ID = external_exports.string().regex(/^idea_[A-Za-z0-9]{1,40}$/).describe("The idea id (idea_\u2026)");
20851
20856
  var search = (q) => ({
20852
20857
  q: external_exports.string().max(100).optional().describe(q),
20853
20858
  limit: external_exports.number().int().min(1).max(100).optional().describe("Results per page, 1-100 (default 50)"),
20854
20859
  offset: external_exports.number().int().min(0).optional().describe("How many results to skip")
20855
20860
  });
20856
20861
  var httpsUrl = (what) => external_exports.string().url().max(2e3).describe(`A public https URL of ${what}`);
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";
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.";
20862
+ 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, and its section tags set the song\u2019s sections (a chorus sung once is still a chorus). 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";
20863
+ var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s character: outfits, places and props. Each is in one artist\u2019s kit (owner_artist_id, a project in a Creator workspace; an outfit\u2019s is its artist_id) and serves their songs; shared true offers it to every other artist\u2019s songs too (owner_name says whose it is). Each has a name and an @handle unique in the workspace; a music video brief (direction) that mentions @handle uses that piece exactly as it is, and the director designs the rest.";
20859
20864
  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
20865
  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();
20866
+ var IMAGE_FALLBACK = "image_url is the picture uploaded for it (null without one); while it has none, image_fallback is the cover of its newest song still there (song_id, preview_url 640 px and thumbnail_url 160 px WebP), to show in its place, or null without a song. It is read-only, never saved as the picture, and follows the newest song (a new song or an archived one changes it).";
20861
20867
  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.";
20862
20868
  var { type: _lyricType, quote_id: _lyricQuote, ...lyricShape } = LyricVideoRequestSchema.shape;
20863
20869
  var { type: _canvasType, quote_id: _canvasQuote, ...canvasShape } = CanvasRequestSchema.shape;
20864
20870
  var { type: _musicType, quote_id: _musicQuote, ...musicShape } = MusicVideoRequestSchema.shape;
20865
20871
  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";
20872
+ var PERFORMER = "Only in a Creator workspace (its projects have no character of their own): who performs (sings to camera lip-synced, or plays), a character in the song's project's kit or one another project shared (list_characters with for_artist_id: its id, kit_\u2026). Anywhere else the song's artist performs, from their character: leave it out. Only when someone performs (on_screen artist: every kind but cast-story, mood and places).";
20873
+ var ON_SCREEN_DESCRIPTION = "Who is on screen: artist (the song's artist, from their character; in a Creator workspace the character performer names), cast (people the director casts and describes; the artist needn't appear) or none (places, light and objects). Omitted: the kind's (cast-story a cast, mood and places no one, else the artist). Only what the model makes: get_options lists on_screen per model (cast and none are offered once a model is tested with them). Without the artist no character is needed and there are no outfits; continuous takes join on the cast and the place";
20868
20874
  var QUOTE_ID = external_exports.string().uuid().describe("The quote_id from the matching quote: the request must be identical");
20869
20875
  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");
20870
20876
  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");
@@ -20873,7 +20879,7 @@ var lyricInput = external_exports.object({
20873
20879
  song_id: songId,
20874
20880
  callback_url: CALLBACK,
20875
20881
  metadata: METADATA,
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`),
20882
+ look: lyricShape.look.describe(`{"mode":"existing","id":"look_\u2026"} to reuse a saved Look (add "lyric_style" to render it in another lyric style, at no extra cost), or {"mode":"new","category":"\u2026","lyric_style":"\u2026","background":{"source":"ai-image","quality":"high"},"visibility":"private","direction":"\u2026"} to have one designed (any category takes any background.source, "designed" being a free moving gradient the director draws; background.source "upload-photo"/"upload-video" with background.upload_id from upload_background designs it around your own media; such a Look stays private. "stock-photo"/"stock-video" with background.stock_id from search_stock uses that stock photo or clip instead of the director's pick). lyric_style (optional, from get_options) sets how the lyrics are presented and animated: block-stack, punch, player, neon, terminal, cinematic\u2026 Omit it and the director picks one. 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`),
20877
20883
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
20878
20884
  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"),
20879
20885
  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)"),
@@ -20891,12 +20897,12 @@ var canvasInput = external_exports.object({
20891
20897
  style: canvasShape.style.describe("Optional visual style"),
20892
20898
  direction: canvasShape.direction.describe("Optional mood, motifs or references"),
20893
20899
  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"),
20900
+ performer: canvasShape.performer.describe("A Creator workspace only: the character (list_characters with for_artist_id: one in the song's project's kit or one another project shared) who may appear, with feature_artist auto or always on an AI source. Omitted: the song's artist's character"),
20895
20901
  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)`),
20896
20902
  seconds: canvasShape.seconds.describe("Canvas length in whole seconds, 5\u20138 (default 8). Spotify loops it, so no part of the song is chosen"),
20897
20903
  variations: canvasShape.variations.describe("1\u20134 different Canvases")
20898
20904
  });
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`;
20905
+ var DIRECTION = `Optional notes for the director (a place, an era, a story idea, a mood). Mention kit pieces by @handle (list_kit): "@nina-kazora in the @blue-set on the @rooftop, the @chrome-mic in hand"; a mentioned piece is used exactly as it is and the director designs the rest. Mention characters by @handle (list_characters) to put them in the shots beside the performer (those in the song's artist's kit and those other artists shared, list_characters with for_artist_id; the song's artist's own too when another character performs; in a story with a cast, they are the cast): "@mia-torres dances behind her in the last chorus". An unknown handle, or another artist's piece they haven't shared, answers 400`;
20900
20906
  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
20907
  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';
20902
20908
  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";
@@ -20963,7 +20969,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20963
20969
  name: external_exports.string(),
20964
20970
  wardrobe: external_exports.string(),
20965
20971
  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"),
20972
+ })).optional().describe("The other characters in its shots (mentioned by @handle in direction: the artist's own and those other artists shared), each in one outfit throughout"),
20967
20973
  on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
20968
20974
  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"),
20969
20975
  world: external_exports.object({ setting: external_exports.string(), wardrobe: external_exports.string(), light: external_exports.string() }).describe("What every shot keeps"),
@@ -20995,6 +21001,27 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20995
21001
  created_at: external_exports.string()
20996
21002
  });
20997
21003
  var QUOTE_FIRST = "Always quote first and tell the user the credits before creating; credits are reserved at creation and charged only when the video is delivered.";
21004
+ var SharingSchema = external_exports.object({
21005
+ socials: external_exports.boolean().describe("Kinetune may also post it on its socials"),
21006
+ credit_handle: external_exports.string().nullable().describe("The @handle credited there"),
21007
+ shared_at: external_exports.string().describe("When it was made public"),
21008
+ featured: external_exports.boolean().describe("Kinetune features it (the Community's featured row, and kinetune.com)"),
21009
+ hidden: external_exports.boolean().describe("Kinetune's staff hid it: it stays out of the Community until they lift it")
21010
+ }).nullable();
21011
+ var VideoSharingSchema = external_exports.looseObject({
21012
+ video_id: external_exports.string(),
21013
+ sharing: SharingSchema.describe("Its place in the Community, or null while it is private"),
21014
+ look: external_exports.looseObject({
21015
+ type: external_exports.enum(["music-video", "lyric-video"]),
21016
+ id: external_exports.string(),
21017
+ name: external_exports.string(),
21018
+ visibility: external_exports.enum(["private", "public"]),
21019
+ reward_credits: external_exports.number().describe("Credits the workspace holds while the Look stays public"),
21020
+ shows_artist: external_exports.boolean().optional().describe("A lyric video's Look that shows the artist: it stays private"),
21021
+ official: external_exports.boolean().optional()
21022
+ }).nullable().describe("Its Look as making it public or private leaves it (a music video's concept, or the lyric video's Look); null when it has none")
21023
+ });
21024
+ var SHARE_CONSENT = "Never set rights_confirmed or socials on your own, and never assume them from an earlier answer: only when the user says so for this video.";
20998
21025
  var VideoOutputSchema = external_exports.looseObject({
20999
21026
  aspect_ratio: external_exports.enum(["9:16", "16:9", "1:1"]).describe("The format of this file"),
21000
21027
  url: external_exports.string().optional().describe("The full-quality file"),
@@ -21043,6 +21070,7 @@ var VideoSchema = external_exports.looseObject({
21043
21070
  error: external_exports.string().nullable(),
21044
21071
  error_code: external_exports.string().nullable(),
21045
21072
  retry_of_job_id: external_exports.string().nullable(),
21073
+ sharing: SharingSchema.optional().describe("get_video: its place in the Community (share_video), or null while it is private"),
21046
21074
  created_at: external_exports.string(),
21047
21075
  updated_at: external_exports.string()
21048
21076
  });
@@ -21054,7 +21082,7 @@ var OPERATIONS = [
21054
21082
  group: "account",
21055
21083
  title: "Get the account",
21056
21084
  summary: "Who you are signed in as, the organization (workspace) and its credit balance",
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.",
21085
+ 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. On the organization, " + IMAGE_FALLBACK + " Check it before creating anything.",
21058
21086
  method: "GET",
21059
21087
  path: "/api/v1/account",
21060
21088
  scopes: ["videos:read", "music:read", "library:read"],
@@ -21086,7 +21114,7 @@ var OPERATIONS = [
21086
21114
  group: "account",
21087
21115
  title: "List your organizations",
21088
21116
  summary: "The organizations you belong to, your role in each and the one these credentials act for",
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.",
21117
+ 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. " + IMAGE_FALLBACK + " 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.",
21090
21118
  method: "GET",
21091
21119
  path: "/api/v1/organizations",
21092
21120
  scopes: ["organizations:read"],
@@ -21143,7 +21171,7 @@ var OPERATIONS = [
21143
21171
  group: "artists",
21144
21172
  title: "List artists",
21145
21173
  summary: "Artists by name, with their song counts and a picture",
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.",
21174
+ 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. " + IMAGE_FALLBACK,
21147
21175
  method: "GET",
21148
21176
  path: "/api/v1/artists",
21149
21177
  scopes: ["music:read", "videos:read"],
@@ -21175,8 +21203,8 @@ var OPERATIONS = [
21175
21203
  id: "artists.get",
21176
21204
  group: "artists",
21177
21205
  title: "Get an artist",
21178
- summary: "One artist",
21179
- description: "",
21206
+ summary: "One artist, with their song count and picture",
21207
+ description: IMAGE_FALLBACK,
21180
21208
  method: "GET",
21181
21209
  path: "/api/v1/artists/{artist_id}",
21182
21210
  scopes: ["music:read", "videos:read"],
@@ -21263,11 +21291,15 @@ var OPERATIONS = [
21263
21291
  group: "artists",
21264
21292
  title: "List characters",
21265
21293
  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.",
21294
+ description: "Each character is one sheet in the kit (a front close-up, full body front, three-quarter, profile and back, in a plain base outfit), made with start_character. artist_id set: it is that artist (one each); otherwise cast, used by its handle. Each is in one artist's kit (owner_artist_id, owner_name; an artist's character is in their own) and appears in their videos; shared true offers it to every other artist's videos too (update_kit_piece shares it). outfit is the base outfit line it was drawn in; missing lists the views an added sheet doesn't show.",
21267
21295
  method: "GET",
21268
21296
  path: "/api/v1/characters",
21269
21297
  scopes: ["music:read", "videos:read"],
21270
- input: external_exports.object({ artist_id: artistId.optional().describe("Only this artist's character") }),
21298
+ input: external_exports.object({
21299
+ artist_id: artistId.optional().describe("Only this artist's character"),
21300
+ owner_artist_id: artistId.optional().describe("Only those in this artist's kit: their own character and the people kept for them"),
21301
+ for_artist_id: artistId.optional().describe("Those a video of this artist's songs can show: theirs first, then those other artists shared")
21302
+ }),
21271
21303
  readOnly: true,
21272
21304
  destructive: false,
21273
21305
  idempotent: true,
@@ -21405,13 +21437,15 @@ var OPERATIONS = [
21405
21437
  group: "artists",
21406
21438
  title: "Keep a character",
21407
21439
  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.",
21440
+ description: "artist_id: it is that artist (one each, in their own kit; replace true takes the place of theirs); or name: cast, with an @handle from the name (or handle), in owner_artist_id's kit (left out: the workspace's only artist, else its first, shared). shared true offers them to every other artist's videos too (default false). ai_made: ask the user whether this is an AI-made person who looks like no real person, or a real person (false: a model that needs a face check shows them once they pass it); never guess it. Left out, they count as real. The uploads are deleted.",
21409
21441
  method: "POST",
21410
21442
  path: "/api/v1/character-requests/{request_id}/keep",
21411
21443
  scopes: ["music:write", "videos:write"],
21412
21444
  input: external_exports.object({
21413
21445
  request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)"),
21414
21446
  artist_id: artistId.optional().describe("It is this artist"),
21447
+ owner_artist_id: artistId.optional().describe("Cast only: the artist whose kit they go in (a project in a Creator workspace)"),
21448
+ shared: external_exports.boolean().optional().describe("Offer them to every other artist's videos too (default false)"),
21415
21449
  name: external_exports.string().trim().min(1).max(60).optional().describe("A cast member's name"),
21416
21450
  handle: external_exports.string().regex(/^[a-z0-9-]{1,40}$/).optional().describe("The @handle, without @"),
21417
21451
  replace: external_exports.boolean().optional().describe("Replace the artist's character"),
@@ -21444,12 +21478,13 @@ var OPERATIONS = [
21444
21478
  group: "artists",
21445
21479
  title: "List the kit",
21446
21480
  summary: "Outfits, places and props a music video brief can mention",
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.`,
21481
+ description: `${KIT_ABOUT} With artist_id: what a brief for their song can mention, their own pieces first, then those other artists shared; with owner_artist_id: only their own (their kit page); without either, every piece. url is the piece cropped, up to 1536 px (what the AI receives; width and height describe it), thumbnail_url a 320 px copy, source_url the image the crop is a rectangle of. Every piece by default; pass q to search by name, @handle or description, and limit/offset to page. total is how many pieces match.`,
21448
21482
  method: "GET",
21449
21483
  path: "/api/v1/kit",
21450
21484
  scopes: ["music:read", "videos:read"],
21451
21485
  input: external_exports.object({
21452
- artist_id: artistId.optional().describe("Only the workspace\u2019s pieces and this artist\u2019s outfits"),
21486
+ artist_id: artistId.optional().describe("What a brief for this artist\u2019s song can mention: theirs and those shared"),
21487
+ owner_artist_id: artistId.optional().describe("Only the pieces in this artist\u2019s kit"),
21453
21488
  kind: external_exports.enum(KIT_KINDS).optional().describe("outfit, place or prop"),
21454
21489
  q: external_exports.string().max(100).optional().describe("Part of the name, @handle or description"),
21455
21490
  limit: external_exports.number().int().min(1).max(100).optional().describe("Pieces per page, 1-100 (default: every piece)"),
@@ -21466,14 +21501,16 @@ var OPERATIONS = [
21466
21501
  group: "artists",
21467
21502
  title: "Add a kit piece",
21468
21503
  summary: "An outfit, place or prop from an image, a link or a stock photo, cropped",
21469
- description: `${KIT_ABOUT} An outfit needs artist_id; a place or prop is the workspace's. The image is an upload or file_url (JPEG, PNG or WebP, at least 512 px on its short side, up to 15 MB, with rights_confirmed) or a stock_id from search_stock (credited, no rights needed). crop keeps a rectangle of it (fractions; at least 256 px on its short side), for a prop cut out of a bigger photo. handle follows the name (Blue set \u2192 blue-set; -2 when taken) unless given. ${NEEDS_PLAN}`,
21504
+ description: `${KIT_ABOUT} An outfit needs artist_id (its artist's kit); a place or prop goes in owner_artist_id's kit (left out: the workspace's only artist, else its first, shared). shared true offers it to every other artist's songs too (default false). The image is an upload or file_url (JPEG, PNG or WebP, at least 512 px on its short side, up to 15 MB, with rights_confirmed) or a stock_id from search_stock (credited, no rights needed). crop keeps a rectangle of it (fractions; at least 256 px on its short side), for a prop cut out of a bigger photo. handle follows the name (Blue set \u2192 blue-set; -2 when taken) unless given. ${NEEDS_PLAN}`,
21470
21505
  method: "POST",
21471
21506
  path: "/api/v1/kit",
21472
21507
  scopes: ["music:write", "videos:write"],
21473
21508
  input: external_exports.object({
21474
- kind: external_exports.enum(KIT_KINDS).describe("outfit (an artist\u2019s), place or prop (the workspace\u2019s)"),
21509
+ kind: external_exports.enum(KIT_KINDS).describe("outfit (an artist\u2019s), place or prop"),
21475
21510
  name: external_exports.string().trim().min(1).max(60).describe("What it is called, e.g. Blue set"),
21476
21511
  artist_id: artistId.optional().describe("The artist an outfit belongs to (outfits only)"),
21512
+ owner_artist_id: artistId.optional().describe("A place or prop: the artist whose kit it goes in (a project in a Creator workspace)"),
21513
+ shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (default false)"),
21477
21514
  handle: KitHandleSchema.optional().describe("Its @handle (default: from the name)"),
21478
21515
  description: external_exports.string().trim().max(300).optional().describe("What it is, for the director (a stock photo\u2019s caption by default)"),
21479
21516
  crop: CropRectSchema.optional().describe('The rectangle to keep, in fractions of the image: {"x","y","w","h"}; the whole image when omitted'),
@@ -21509,8 +21546,8 @@ var OPERATIONS = [
21509
21546
  id: "kit.update",
21510
21547
  group: "artists",
21511
21548
  title: "Change a kit piece",
21512
- summary: "Rename it, change its handle or description, or crop it again",
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.",
21549
+ summary: "Rename it, change its handle or description, crop it again, or share it",
21550
+ description: "crop is cut again from the image the piece was added from. shared: offer it (a character too) to every other artist's songs (true), or keep it to its own artist's (false); it stays in its own artist's kit either way. ai_made, on a character only: an AI-made person who looks like no real person (true), or a real one (false); a person who passed a face check is real (withdraw it first). Plans already made keep the pieces as they were planned.",
21514
21551
  method: "PATCH",
21515
21552
  path: "/api/v1/kit/{kit_id}",
21516
21553
  scopes: ["music:write", "videos:write"],
@@ -21520,7 +21557,8 @@ var OPERATIONS = [
21520
21557
  handle: KitHandleSchema.optional(),
21521
21558
  description: external_exports.string().trim().max(300).nullable().optional(),
21522
21559
  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)")
21560
+ ai_made: external_exports.boolean().optional().describe("A character only: an AI-made person (true) or a real one (false)"),
21561
+ shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (true), or only its own artist\u2019s (false)")
21524
21562
  }),
21525
21563
  readOnly: false,
21526
21564
  destructive: false,
@@ -21806,12 +21844,16 @@ var OPERATIONS = [
21806
21844
  id: "backgrounds.upload",
21807
21845
  group: "looks",
21808
21846
  title: "Upload a background",
21809
- summary: "Upload your own photo or video to design a New Look around",
21810
- description: `Photo: JPEG, PNG or WebP, at least 720 px on the short side, up to 25 MB. Video: MP4, MOV or WebM, 4\u2013180 seconds, at least 720 px on the short side, up to 300 MB; it becomes a seamless loop of up to 20 s. Only with the rights to use it. Then quote a lyric video with look {"mode":"new","category":"\u2026","background":{"source":"upload-photo" or "upload-video","upload_id":"\u2026"},"visibility":"private"}. ${NEEDS_PLAN}`,
21847
+ summary: "Upload your own photo or video, or use one of your music videos, to design a New Look around",
21848
+ description: `Photo: JPEG, PNG or WebP, at least 720 px on the short side, up to 25 MB. Video: MP4, MOV or WebM, 4\u2013180 seconds, at least 720 px on the short side, up to 300 MB; it becomes a seamless loop of up to 20 s. Only with the rights to use it. Or video_id: one of this workspace's delivered music videos (list_videos with type music-video and the song's song_id), copied in as a video background (no rights_confirmed needed); the answer's music_video names its song and section (trim). A lyric video with it must be of that song: it takes that section (send that trim, or leave trim out), and the music video plays once from its first frame in step with the lyrics, with its own sound. Then quote a lyric video with look {"mode":"new","category":"\u2026","background":{"source":"upload-photo" or "upload-video","upload_id":"\u2026"},"visibility":"private"}. ${NEEDS_PLAN}`,
21811
21849
  method: "POST",
21812
21850
  path: "/api/v1/backgrounds",
21813
21851
  scopes: ["library:write", "videos:write"],
21814
- input: external_exports.object({ file_url: httpsUrl("the photo or video").optional(), rights_confirmed: external_exports.literal(true).describe("You have the rights to use this photo or video") }),
21852
+ input: external_exports.object({
21853
+ file_url: httpsUrl("the photo or video").optional(),
21854
+ video_id: external_exports.string().uuid().optional().describe("One of your delivered music videos, instead of a file: it then plays in step with its song\u2019s lyrics, with its own sound"),
21855
+ rights_confirmed: external_exports.literal(true).optional().describe("You have the rights to use this photo or video (required with a file or file_url)")
21856
+ }),
21815
21857
  files: [{ field: "file", urlField: "file_url", accept: ["image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime", "video/webm"], description: "Your photo or video" }],
21816
21858
  readOnly: false,
21817
21859
  destructive: false,
@@ -22172,7 +22214,7 @@ var OPERATIONS = [
22172
22214
  group: "videos",
22173
22215
  title: "List videos",
22174
22216
  summary: "Videos, newest first, with status and thumbnails",
22175
- description: "A page at a time (limit, default 50): next_cursor is null on the last page, otherwise pass it as cursor for the next one with the same filters. counts says how many videos match song_id, artist_id and q: all, and by type (lyric_video, canvas, music_video). Each video's outputs carry aspect_ratio, poster_url, poster_seconds and web_url (for thumbnails and previews); get_video has the download links. A video that is waiting has queue: why (plan_limit or render_capacity), its place in line or about how long.",
22217
+ description: "A page at a time (limit, default 50): next_cursor is null on the last page, otherwise pass it as cursor for the next one with the same filters. counts says how many videos match song_id, artist_id, quote_id and q: all, and by type (lyric_video, canvas, music_video). Each video's outputs carry aspect_ratio, poster_url, poster_seconds and web_url (for thumbnails and previews); get_video has the download links. A video that is waiting has queue: why (plan_limit or render_capacity), its place in line or about how long.",
22176
22218
  method: "GET",
22177
22219
  path: "/api/v1/videos",
22178
22220
  scopes: ["videos:read"],
@@ -22180,6 +22222,7 @@ var OPERATIONS = [
22180
22222
  song_id: songId.optional().describe("Only this song\u2019s videos"),
22181
22223
  artist_id: artistId.optional().describe("Only videos of this artist\u2019s songs"),
22182
22224
  type: external_exports.enum(["lyric-video", "canvas", "music-video"]).optional(),
22225
+ quote_id: external_exports.string().uuid().optional().describe("Only the videos this quote made (none until it is used)"),
22183
22226
  q: external_exports.string().trim().min(1).max(100).optional().describe("Search the song title, artist name, Look name or video id"),
22184
22227
  limit: external_exports.number().int().min(1).max(100).optional(),
22185
22228
  cursor: external_exports.string().min(1).max(200).optional().describe("next_cursor from the previous page")
@@ -22343,6 +22386,46 @@ var OPERATIONS = [
22343
22386
  cli: ["videos", "delete"],
22344
22387
  mcp: "delete_video"
22345
22388
  },
22389
+ {
22390
+ id: "videos.share",
22391
+ group: "videos",
22392
+ title: "Make a video public",
22393
+ summary: "Show a delivered video in the Community, its Look reusable by anyone",
22394
+ description: `Only when the user asks for it, in their own words: ask them first and never make a video public on your own. Public, everyone signed in to Kinetune sees it in the Community, Kinetune may feature it on kinetune.com, and its Look becomes public with it so anyone can reuse it (a music video's concept: its kind, look, edit, places and props, never the artist or anyone else in it; a lyric video's Look unless it shows the artist or is Official); the workspace holds the Look's reward credits while it stays public. rights_confirmed (a music video needs it): the user confirms they have the right to show the artist and everyone in it publicly. socials true: the user also lets Kinetune post it on its socials (TikTok, Instagram, YouTube, X), crediting credit_handle. ${SHARE_CONSENT} Sharing again replaces those choices; a video Kinetune's staff hid stays hidden. Only a delivered (completed) video. unshare_video makes it private again; get_video shows sharing.`,
22395
+ method: "POST",
22396
+ path: "/api/v1/videos/{video_id}/share",
22397
+ scopes: ["videos:write"],
22398
+ input: external_exports.object({
22399
+ video_id: videoId,
22400
+ rights_confirmed: external_exports.literal(true).optional().describe("The user confirmed they have the right to show the artist and everyone in it publicly (required for a music video). Only when they said so"),
22401
+ socials: external_exports.boolean().optional().describe("The user also lets Kinetune post it on its socials, crediting credit_handle (default false). Only when they said so"),
22402
+ credit_handle: external_exports.string().trim().regex(/^@?[A-Za-z0-9_.]{1,30}$/).optional().describe("With socials: the @handle to credit (letters, digits, dots and underscores, up to 30), as the user gave it")
22403
+ }),
22404
+ readOnly: false,
22405
+ destructive: false,
22406
+ idempotent: true,
22407
+ cli: ["videos", "share"],
22408
+ mcp: "share_video",
22409
+ output: { name: "VideoSharing", schema: VideoSharingSchema },
22410
+ example: { video_id: "00000000-0000-0000-0000-000000000000", rights_confirmed: true }
22411
+ },
22412
+ {
22413
+ id: "videos.unshare",
22414
+ group: "videos",
22415
+ title: "Make a video private",
22416
+ summary: "Take a video out of the Community, its Look private again",
22417
+ description: "It leaves the Community and Kinetune's featured row at once, with the loves it had, and its Look is private again (its reward credits go back). Ask the user first.",
22418
+ method: "DELETE",
22419
+ path: "/api/v1/videos/{video_id}/share",
22420
+ scopes: ["videos:write"],
22421
+ input: external_exports.object({ video_id: videoId }),
22422
+ readOnly: false,
22423
+ destructive: true,
22424
+ idempotent: true,
22425
+ cli: ["videos", "unshare"],
22426
+ mcp: "unshare_video",
22427
+ output: { name: "VideoSharing", schema: VideoSharingSchema }
22428
+ },
22346
22429
  /* Community */
22347
22430
  {
22348
22431
  id: "ideas.suggest",
@@ -22364,6 +22447,110 @@ var OPERATIONS = [
22364
22447
  cli: ["ideas", "suggest"],
22365
22448
  mcp: "suggest_idea",
22366
22449
  example: { title: "Export a 15-second cut of the hook for TikTok", area: "lyric-video" }
22450
+ },
22451
+ {
22452
+ id: "ideas.list",
22453
+ group: "community",
22454
+ title: "List ideas",
22455
+ summary: "The Community board's ideas, most voted first, with your vote and follow",
22456
+ description: "Everyone's ideas for Kinetune, a page at a time (limit, default 30): next_cursor is null on the last page, otherwise pass it as cursor with the same filters. Before suggesting an idea, search for it (q) and vote for the one that is already there. status: one status, or open for every open one (under_review, planned, in_progress); yours true: ones the person suggested or voted for. counts says how many match area and q, by status. Each idea has its votes, voted and following (the person's), and its author by name only.",
22457
+ method: "GET",
22458
+ path: "/api/v1/community/ideas",
22459
+ scopes: ["videos:read", "music:read", "library:read"],
22460
+ input: external_exports.object({
22461
+ q: external_exports.string().trim().max(100).optional().describe("Words in the title or details"),
22462
+ sort: external_exports.enum(["top", "new"]).optional().describe("top (default: most voted) or new"),
22463
+ status: external_exports.enum(["open", "under_review", "planned", "in_progress", "shipped", "declined"]).optional(),
22464
+ area: external_exports.enum(["lyric-video", "canvas", "music-video", "everything"]).optional(),
22465
+ yours: external_exports.boolean().optional().describe("Only the ones the person suggested or voted for"),
22466
+ limit: external_exports.number().int().min(1).max(100).optional(),
22467
+ cursor: external_exports.string().min(1).max(200).optional().describe("next_cursor from the previous page")
22468
+ }),
22469
+ readOnly: true,
22470
+ destructive: false,
22471
+ idempotent: true,
22472
+ cli: ["ideas", "list"],
22473
+ mcp: "list_ideas"
22474
+ },
22475
+ {
22476
+ id: "ideas.get",
22477
+ group: "community",
22478
+ title: "Get an idea",
22479
+ summary: "One idea with its comments and Kinetune's word on it",
22480
+ description: "status_note is the team's word on its status. An idea merged into another answers with that one. People appear by name and picture only.",
22481
+ method: "GET",
22482
+ path: "/api/v1/community/ideas/{idea_id}",
22483
+ scopes: ["videos:read", "music:read", "library:read"],
22484
+ input: external_exports.object({ idea_id: IDEA_ID }),
22485
+ readOnly: true,
22486
+ destructive: false,
22487
+ idempotent: true,
22488
+ cli: ["ideas", "get"],
22489
+ mcp: "get_idea"
22490
+ },
22491
+ {
22492
+ id: "ideas.vote",
22493
+ group: "community",
22494
+ title: "Vote for an idea",
22495
+ summary: "Add the person's vote to an open idea",
22496
+ description: "Upvotes only, while the idea is open (409 once it shipped or was declined). Votes are public as a count, under the person's account: ask before voting.",
22497
+ method: "POST",
22498
+ path: "/api/v1/community/ideas/{idea_id}/vote",
22499
+ scopes: ["videos:write", "music:write", "library:write"],
22500
+ input: external_exports.object({ idea_id: IDEA_ID }),
22501
+ readOnly: false,
22502
+ destructive: false,
22503
+ idempotent: true,
22504
+ cli: ["ideas", "vote"],
22505
+ mcp: "vote_for_idea"
22506
+ },
22507
+ {
22508
+ id: "ideas.unvote",
22509
+ group: "community",
22510
+ title: "Take back a vote",
22511
+ summary: "Remove the person's vote from an open idea",
22512
+ description: "",
22513
+ method: "DELETE",
22514
+ path: "/api/v1/community/ideas/{idea_id}/vote",
22515
+ scopes: ["videos:write", "music:write", "library:write"],
22516
+ input: external_exports.object({ idea_id: IDEA_ID }),
22517
+ readOnly: false,
22518
+ destructive: false,
22519
+ idempotent: true,
22520
+ cli: ["ideas", "unvote"],
22521
+ mcp: "remove_idea_vote"
22522
+ },
22523
+ {
22524
+ id: "ideas.follow",
22525
+ group: "community",
22526
+ title: "Follow an idea",
22527
+ summary: "The person hears by email when it ships",
22528
+ description: "Sent under the Product news email topic (the person can switch it off in the app).",
22529
+ method: "POST",
22530
+ path: "/api/v1/community/ideas/{idea_id}/follow",
22531
+ scopes: ["videos:write", "music:write", "library:write"],
22532
+ input: external_exports.object({ idea_id: IDEA_ID }),
22533
+ readOnly: false,
22534
+ destructive: false,
22535
+ idempotent: true,
22536
+ cli: ["ideas", "follow"],
22537
+ mcp: "follow_idea"
22538
+ },
22539
+ {
22540
+ id: "ideas.unfollow",
22541
+ group: "community",
22542
+ title: "Stop following an idea",
22543
+ summary: "No more email about it",
22544
+ description: "",
22545
+ method: "DELETE",
22546
+ path: "/api/v1/community/ideas/{idea_id}/follow",
22547
+ scopes: ["videos:write", "music:write", "library:write"],
22548
+ input: external_exports.object({ idea_id: IDEA_ID }),
22549
+ readOnly: false,
22550
+ destructive: false,
22551
+ idempotent: true,
22552
+ cli: ["ideas", "unfollow"],
22553
+ mcp: "unfollow_idea"
22367
22554
  }
22368
22555
  ];
22369
22556
  var operationDescription = (op) => [op.deprecated ? deprecationNote(op.deprecated) : "", op.summary, op.description].filter(Boolean).join("\n\n");
@@ -26020,7 +26207,7 @@ async function revoke(config2) {
26020
26207
  // package.json
26021
26208
  var package_default = {
26022
26209
  name: "@kinetune/cli",
26023
- version: "2.0.0",
26210
+ version: "2.2.0",
26024
26211
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
26025
26212
  license: "MIT",
26026
26213
  homepage: "https://kinetune.com/developers#cli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinetune/cli",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://kinetune.com/developers#cli",