@kinetune/cli 2.1.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
@@ -20785,7 +20788,6 @@ var fitsModel = (value, ctx) => {
20785
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`);
20786
20789
  else if (on !== "artist" && value.cast) issue2("cast", "The performer isn\u2019t in this video: leave cast out");
20787
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`);
20788
- if (on !== "artist" && value.takes === "continuous") issue2("takes", "A continuous take follows the performer: choose cuts for a video without them");
20789
20791
  if (value.takes === "continuous" && !(model.keyframes.start && model.keyframes.end)) issue2("takes", `${model.label} makes no continuous takes`);
20790
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");
20791
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`);
@@ -20850,23 +20852,25 @@ var songId = id("song");
20850
20852
  var artistId = id("artist");
20851
20853
  var lookId = id("Look");
20852
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)");
20853
20856
  var search = (q) => ({
20854
20857
  q: external_exports.string().max(100).optional().describe(q),
20855
20858
  limit: external_exports.number().int().min(1).max(100).optional().describe("Results per page, 1-100 (default 50)"),
20856
20859
  offset: external_exports.number().int().min(0).optional().describe("How many results to skip")
20857
20860
  });
20858
20861
  var httpsUrl = (what) => external_exports.string().url().max(2e3).describe(`A public https URL of ${what}`);
20859
- var LYRICS = "The song\u2019s lyrics as text: plain (Suno-style [Verse]/[Chorus] tags and (x2) marks are fine), or the contents of an SRT, WebVTT or LRC file. Every word is still timed from the audio: your text fixes misheard words and sets where lines break in videos. A part sung again (a chorus) can be written once; lyrics that don\u2019t match what\u2019s sung, or cover only part of it, are refused";
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";
20860
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.";
20861
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).";
20862
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).";
20863
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.";
20864
20868
  var { type: _lyricType, quote_id: _lyricQuote, ...lyricShape } = LyricVideoRequestSchema.shape;
20865
20869
  var { type: _canvasType, quote_id: _canvasQuote, ...canvasShape } = CanvasRequestSchema.shape;
20866
20870
  var { type: _musicType, quote_id: _musicQuote, ...musicShape } = MusicVideoRequestSchema.shape;
20867
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";
20868
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).";
20869
- var ON_SCREEN_DESCRIPTION = "Who is on screen: artist (the song's artist, from their character; in a Creator workspace the character performer names), cast (people the director casts and describes; the artist needn't appear) or none (places, light and objects). Omitted: the kind's (cast-story a cast, mood and places no one, else the artist). Only what the model makes: get_options lists on_screen per model (cast and none are offered once a model is tested with them). Without the artist no character is needed, there are no outfits and no continuous takes";
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";
20870
20874
  var QUOTE_ID = external_exports.string().uuid().describe("The quote_id from the matching quote: the request must be identical");
20871
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");
20872
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");
@@ -20875,7 +20879,7 @@ var lyricInput = external_exports.object({
20875
20879
  song_id: songId,
20876
20880
  callback_url: CALLBACK,
20877
20881
  metadata: METADATA,
20878
- look: lyricShape.look.describe(`{"mode":"existing","id":"look_\u2026"} to reuse a saved Look (add "lyric_style" to render it in another lyric style, at no extra cost), or {"mode":"new","category":"\u2026","lyric_style":"\u2026","background":{"source":"ai-image","quality":"high"},"visibility":"private","direction":"\u2026"} to have one designed (background.source "upload-photo"/"upload-video" with background.upload_id from upload_background designs it around your own media; such a Look stays private. "stock-photo"/"stock-video" with background.stock_id from search_stock uses that stock photo or clip instead of the director's pick). lyric_style (optional, from get_options) sets how the lyrics are presented and animated: block-stack, punch, player, neon, terminal, cinematic\u2026 Omit it and the director picks one. background.scenes (2\u20134, AI image only) makes that many shots of the same world that cut on the song's sections, each priced like the first. background.references "stock" (AI image or AI video, default "none") with feature_artist "always" makes the background one real stock photo of a place the director picks, with the artist put into it and restyled a little for the Look; no extra cost. The singer is left out unless asked: feature_artist "always" (default "never") makes them the subject of the background, recognizable from their character (list_characters; start_character makes one); it needs an AI image or AI video background, a private Look and display.cover false (the cover would hide them), and that Look then only serves this artist's songs. A saved Look that shows an artist (featured_artist) only serves that artist's songs, also with display.cover false`),
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`),
20879
20883
  aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
20880
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"),
20881
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)"),
@@ -20997,6 +21001,27 @@ var MusicVideoPlanSchema = external_exports.looseObject({
20997
21001
  created_at: external_exports.string()
20998
21002
  });
20999
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.";
21000
21025
  var VideoOutputSchema = external_exports.looseObject({
21001
21026
  aspect_ratio: external_exports.enum(["9:16", "16:9", "1:1"]).describe("The format of this file"),
21002
21027
  url: external_exports.string().optional().describe("The full-quality file"),
@@ -21045,6 +21070,7 @@ var VideoSchema = external_exports.looseObject({
21045
21070
  error: external_exports.string().nullable(),
21046
21071
  error_code: external_exports.string().nullable(),
21047
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"),
21048
21074
  created_at: external_exports.string(),
21049
21075
  updated_at: external_exports.string()
21050
21076
  });
@@ -21056,7 +21082,7 @@ var OPERATIONS = [
21056
21082
  group: "account",
21057
21083
  title: "Get the account",
21058
21084
  summary: "Who you are signed in as, the organization (workspace) and its credit balance",
21059
- description: "Returns the organization the credentials act for (the workspace, as the app calls it; type artist holds one artist, label a roster, creator projects), how they authenticate and their scopes, the credit balance (available, monthly, top-ups) and its plan, if any: active says whether it lets the workspace create (without an active plan, creating answers 402 plan_required: tell the person to choose a plan in the app), storage (used_bytes against limit_bytes, what the plan allows: an upload or new video that does not fit answers 402 storage_full, and deleting videos or archiving songs frees space at once), where it is billed, when the period ends, and a downgrade or interval switch waiting for the renewal as scheduled_change. Without a plan, free_song says where the person's one free song stands (signed in as them, never with an API key, where it is null, as it is with a plan): available (upload one song now, with create_song; it plays in the Looks, and nothing is made from it until there is a plan), unverified (they confirm their email first), used (its song_id and title) or taken (it went to another workspace or account). Monthly credits reset every month; top-ups never expire. Check it before creating anything.",
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.",
21060
21086
  method: "GET",
21061
21087
  path: "/api/v1/account",
21062
21088
  scopes: ["videos:read", "music:read", "library:read"],
@@ -21088,7 +21114,7 @@ var OPERATIONS = [
21088
21114
  group: "account",
21089
21115
  title: "List your organizations",
21090
21116
  summary: "The organizations you belong to, your role in each and the one these credentials act for",
21091
- description: "Every organization (workspace, in the app) the signed-in person is a member of; with an API key, the member who created it (the key needs organizations:read). type is artist (one artist and its songs), creator (projects: the same records as artists, a performer optional) or label (a roster of artists). current marks the organization these credentials act for. Each organization has its own plan, music, videos, Looks and credits: to work in another one, sign in again and pick it on the consent screen, or use an API key created in it.",
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.",
21092
21118
  method: "GET",
21093
21119
  path: "/api/v1/organizations",
21094
21120
  scopes: ["organizations:read"],
@@ -21145,7 +21171,7 @@ var OPERATIONS = [
21145
21171
  group: "artists",
21146
21172
  title: "List artists",
21147
21173
  summary: "Artists by name, with their song counts and a picture",
21148
- description: "Songs belong to an artist; create the artist first. Sorted by name, 50 per page by default: pass q to search by name, and limit/offset to page.",
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,
21149
21175
  method: "GET",
21150
21176
  path: "/api/v1/artists",
21151
21177
  scopes: ["music:read", "videos:read"],
@@ -21177,8 +21203,8 @@ var OPERATIONS = [
21177
21203
  id: "artists.get",
21178
21204
  group: "artists",
21179
21205
  title: "Get an artist",
21180
- summary: "One artist",
21181
- description: "",
21206
+ summary: "One artist, with their song count and picture",
21207
+ description: IMAGE_FALLBACK,
21182
21208
  method: "GET",
21183
21209
  path: "/api/v1/artists/{artist_id}",
21184
21210
  scopes: ["music:read", "videos:read"],
@@ -21818,12 +21844,16 @@ var OPERATIONS = [
21818
21844
  id: "backgrounds.upload",
21819
21845
  group: "looks",
21820
21846
  title: "Upload a background",
21821
- summary: "Upload your own photo or video to design a New Look around",
21822
- 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}`,
21823
21849
  method: "POST",
21824
21850
  path: "/api/v1/backgrounds",
21825
21851
  scopes: ["library:write", "videos:write"],
21826
- 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
+ }),
21827
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" }],
21828
21858
  readOnly: false,
21829
21859
  destructive: false,
@@ -22184,7 +22214,7 @@ var OPERATIONS = [
22184
22214
  group: "videos",
22185
22215
  title: "List videos",
22186
22216
  summary: "Videos, newest first, with status and thumbnails",
22187
- 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.",
22188
22218
  method: "GET",
22189
22219
  path: "/api/v1/videos",
22190
22220
  scopes: ["videos:read"],
@@ -22192,6 +22222,7 @@ var OPERATIONS = [
22192
22222
  song_id: songId.optional().describe("Only this song\u2019s videos"),
22193
22223
  artist_id: artistId.optional().describe("Only videos of this artist\u2019s songs"),
22194
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)"),
22195
22226
  q: external_exports.string().trim().min(1).max(100).optional().describe("Search the song title, artist name, Look name or video id"),
22196
22227
  limit: external_exports.number().int().min(1).max(100).optional(),
22197
22228
  cursor: external_exports.string().min(1).max(200).optional().describe("next_cursor from the previous page")
@@ -22355,6 +22386,46 @@ var OPERATIONS = [
22355
22386
  cli: ["videos", "delete"],
22356
22387
  mcp: "delete_video"
22357
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
+ },
22358
22429
  /* Community */
22359
22430
  {
22360
22431
  id: "ideas.suggest",
@@ -22376,6 +22447,110 @@ var OPERATIONS = [
22376
22447
  cli: ["ideas", "suggest"],
22377
22448
  mcp: "suggest_idea",
22378
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"
22379
22554
  }
22380
22555
  ];
22381
22556
  var operationDescription = (op) => [op.deprecated ? deprecationNote(op.deprecated) : "", op.summary, op.description].filter(Boolean).join("\n\n");
@@ -26032,7 +26207,7 @@ async function revoke(config2) {
26032
26207
  // package.json
26033
26208
  var package_default = {
26034
26209
  name: "@kinetune/cli",
26035
- version: "2.1.0",
26210
+ version: "2.2.0",
26036
26211
  description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
26037
26212
  license: "MIT",
26038
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.1.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",