@kinetune/cli 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kinetune.mjs +30 -18
- package/package.json +1 -1
package/dist/kinetune.mjs
CHANGED
|
@@ -20736,7 +20736,9 @@ var KitItemUpdateSchema = external_exports.object({
|
|
|
20736
20736
|
description: external_exports.string().trim().max(300).nullable().optional(),
|
|
20737
20737
|
crop: CropRectSchema.optional(),
|
|
20738
20738
|
/** A character only: it shows an AI-made person (looks like no real person) or a real one. */
|
|
20739
|
-
ai_made: external_exports.boolean().optional()
|
|
20739
|
+
ai_made: external_exports.boolean().optional(),
|
|
20740
|
+
/** Offered to every other artist's studio too (true), or only its own artist's (false). */
|
|
20741
|
+
shared: external_exports.boolean().optional()
|
|
20740
20742
|
}).strict().refine((v) => Object.keys(v).length > 0, { message: "Nothing to change" });
|
|
20741
20743
|
var MusicVideoPersonSchema = external_exports.object({ character: KitHandleSchema, does: external_exports.string().trim().min(1).max(300).optional(), outfit: KitHandleSchema.optional() }).strict();
|
|
20742
20744
|
var musicVideoBrief = {
|
|
@@ -20855,7 +20857,7 @@ var search = (q) => ({
|
|
|
20855
20857
|
});
|
|
20856
20858
|
var httpsUrl = (what) => external_exports.string().url().max(2e3).describe(`A public https URL of ${what}`);
|
|
20857
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";
|
|
20858
|
-
var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s character: outfits
|
|
20860
|
+
var KIT_ABOUT = "The kit is what a music video is made from besides the artist\u2019s character: outfits, places and props. Each is in one artist\u2019s kit (owner_artist_id, a project in a Creator workspace; an outfit\u2019s is its artist_id) and serves their songs; shared true offers it to every other artist\u2019s songs too (owner_name says whose it is). Each has a name and an @handle unique in the workspace; a music video brief (direction) that mentions @handle uses that piece exactly as it is, and the director designs the rest.";
|
|
20859
20861
|
var NEEDS_PLAN = "Needs an active plan (402 plan_required without one; get_account: plan.active) and room in its storage (402 storage_full when it would not fit; get_account: storage).";
|
|
20860
20862
|
var PICTURE_CROP = external_exports.object({ x: external_exports.number().min(0).max(1), y: external_exports.number().min(0).max(1), size: external_exports.number().min(0.1).max(1) }).optional();
|
|
20861
20863
|
var COVER_SIZES = "cover_art.url is the cover at up to 1536 px (JPEG; width and height describe it), preview_url a 640 px and thumbnail_url a 160 px WebP. Image links are signed for 7 days and stay the same all day, so they can be cached.";
|
|
@@ -20863,8 +20865,8 @@ var { type: _lyricType, quote_id: _lyricQuote, ...lyricShape } = LyricVideoReque
|
|
|
20863
20865
|
var { type: _canvasType, quote_id: _canvasQuote, ...canvasShape } = CanvasRequestSchema.shape;
|
|
20864
20866
|
var { type: _musicType, quote_id: _musicQuote, ...musicShape } = MusicVideoRequestSchema.shape;
|
|
20865
20867
|
var CAST_DESCRIPTION = "The performer in it, kept from their character: what they wear, outfit_kit (a kit outfit's @handle, without the @, worn in every shot they are in); left out, the director picks. Only when the performer is on screen";
|
|
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
|
|
20867
|
-
var ON_SCREEN_DESCRIPTION = "Who is on screen: artist (the song's artist, from their character; in a Creator workspace the
|
|
20868
|
+
var PERFORMER = "Only in a Creator workspace (its projects have no character of their own): who performs (sings to camera lip-synced, or plays), a character in the song's project's kit or one another project shared (list_characters with for_artist_id: its id, kit_\u2026). Anywhere else the song's artist performs, from their character: leave it out. Only when someone performs (on_screen artist: every kind but cast-story, mood and places).";
|
|
20869
|
+
var ON_SCREEN_DESCRIPTION = "Who is on screen: artist (the song's artist, from their character; in a Creator workspace the character performer names), cast (people the director casts and describes; the artist needn't appear) or none (places, light and objects). Omitted: the kind's (cast-story a cast, mood and places no one, else the artist). Only what the model makes: get_options lists on_screen per model (cast and none are offered once a model is tested with them). Without the artist no character is needed, there are no outfits and no continuous takes";
|
|
20868
20870
|
var QUOTE_ID = external_exports.string().uuid().describe("The quote_id from the matching quote: the request must be identical");
|
|
20869
20871
|
var METADATA = external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe("Your own JSON (an order id, for example): kept with the video and returned in its request. Quote and create with the same value");
|
|
20870
20872
|
var CALLBACK = external_exports.string().max(2e3).optional().describe("An https URL to POST the finished video to (signed; see Callbacks). Quote and create with the same value");
|
|
@@ -20891,12 +20893,12 @@ var canvasInput = external_exports.object({
|
|
|
20891
20893
|
style: canvasShape.style.describe("Optional visual style"),
|
|
20892
20894
|
direction: canvasShape.direction.describe("Optional mood, motifs or references"),
|
|
20893
20895
|
inspiration: canvasShape.inspiration.describe("Where the idea comes from: cover (default; the cover art's world, colors and motifs, brought to life) or song (its words, story and sound lead, the colors kept close to the cover so the two sit together in the player)"),
|
|
20894
|
-
performer: canvasShape.performer.describe("A Creator workspace only: the
|
|
20896
|
+
performer: canvasShape.performer.describe("A Creator workspace only: the character (list_characters with for_artist_id: one in the song's project's kit or one another project shared) who may appear, with feature_artist auto or always on an AI source. Omitted: the song's artist's character"),
|
|
20895
20897
|
feature_artist: canvasShape.feature_artist.describe(`Whether the Canvas shows the artist: auto (the director decides), always or never (AI sources; "always" needs the artist's character: list_characters, start_character makes one)`),
|
|
20896
20898
|
seconds: canvasShape.seconds.describe("Canvas length in whole seconds, 5\u20138 (default 8). Spotify loops it, so no part of the song is chosen"),
|
|
20897
20899
|
variations: canvasShape.variations.describe("1\u20134 different Canvases")
|
|
20898
20900
|
});
|
|
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 (
|
|
20901
|
+
var DIRECTION = `Optional notes for the director (a place, an era, a story idea, a mood). Mention kit pieces by @handle (list_kit): "@nina-kazora in the @blue-set on the @rooftop, the @chrome-mic in hand"; a mentioned piece is used exactly as it is and the director designs the rest. Mention characters by @handle (list_characters) to put them in the shots beside the performer (those in the song's artist's kit and those other artists shared, list_characters with for_artist_id; the song's artist's own too when another character performs; in a story with a cast, they are the cast): "@mia-torres dances behind her in the last chorus". An unknown handle, or another artist's piece they haven't shared, answers 400`;
|
|
20900
20902
|
var LOOK_ID = "A music video Look (list_music_video_looks: one made public, or the workspace's own) the video follows: its treatment leads the director and its places and props join the kit. Send its category, style, takes and lipsync too (or your own)";
|
|
20901
20903
|
var LIPSYNC = '"auto" (default: the director has the artist sing the important lines on camera) or "never" (nobody sings on camera; the song plays over every shot). A kind sung on camera (lyric-led) refuses "never"; an instrumental song never lip-syncs';
|
|
20902
20904
|
var LOOKBOOK_ID = "A lookbook (design_music_video_shoot) whose kept, drawn pieces the video uses like the kit pieces the direction mentions; its idea leads the director";
|
|
@@ -20963,7 +20965,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
|
|
|
20963
20965
|
name: external_exports.string(),
|
|
20964
20966
|
wardrobe: external_exports.string(),
|
|
20965
20967
|
outfit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }).nullable().optional().describe("The kit outfit they wear throughout (drawn on their sheet by the lookbook, or picked in the brief); null: the director dresses them")
|
|
20966
|
-
})).optional().describe("The other characters in its shots (mentioned by @handle in direction: the
|
|
20968
|
+
})).optional().describe("The other characters in its shots (mentioned by @handle in direction: the artist's own and those other artists shared), each in one outfit throughout"),
|
|
20967
20969
|
on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
|
|
20968
20970
|
revision: external_exports.object({ video_id: external_exports.string(), shots: external_exports.array(external_exports.number().int()) }).nullable().describe("A revision of a delivered music video (revise_music_video_shot): that video, and the shots made again (the others are reused as they were); null for a plan of a new video"),
|
|
20969
20971
|
world: external_exports.object({ setting: external_exports.string(), wardrobe: external_exports.string(), light: external_exports.string() }).describe("What every shot keeps"),
|
|
@@ -21263,11 +21265,15 @@ var OPERATIONS = [
|
|
|
21263
21265
|
group: "artists",
|
|
21264
21266
|
title: "List characters",
|
|
21265
21267
|
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.",
|
|
21268
|
+
description: "Each character is one sheet in the kit (a front close-up, full body front, three-quarter, profile and back, in a plain base outfit), made with start_character. artist_id set: it is that artist (one each); otherwise cast, used by its handle. Each is in one artist's kit (owner_artist_id, owner_name; an artist's character is in their own) and appears in their videos; shared true offers it to every other artist's videos too (update_kit_piece shares it). outfit is the base outfit line it was drawn in; missing lists the views an added sheet doesn't show.",
|
|
21267
21269
|
method: "GET",
|
|
21268
21270
|
path: "/api/v1/characters",
|
|
21269
21271
|
scopes: ["music:read", "videos:read"],
|
|
21270
|
-
input: external_exports.object({
|
|
21272
|
+
input: external_exports.object({
|
|
21273
|
+
artist_id: artistId.optional().describe("Only this artist's character"),
|
|
21274
|
+
owner_artist_id: artistId.optional().describe("Only those in this artist's kit: their own character and the people kept for them"),
|
|
21275
|
+
for_artist_id: artistId.optional().describe("Those a video of this artist's songs can show: theirs first, then those other artists shared")
|
|
21276
|
+
}),
|
|
21271
21277
|
readOnly: true,
|
|
21272
21278
|
destructive: false,
|
|
21273
21279
|
idempotent: true,
|
|
@@ -21405,13 +21411,15 @@ var OPERATIONS = [
|
|
|
21405
21411
|
group: "artists",
|
|
21406
21412
|
title: "Keep a character",
|
|
21407
21413
|
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.",
|
|
21414
|
+
description: "artist_id: it is that artist (one each, in their own kit; replace true takes the place of theirs); or name: cast, with an @handle from the name (or handle), in owner_artist_id's kit (left out: the workspace's only artist, else its first, shared). shared true offers them to every other artist's videos too (default false). ai_made: ask the user whether this is an AI-made person who looks like no real person, or a real person (false: a model that needs a face check shows them once they pass it); never guess it. Left out, they count as real. The uploads are deleted.",
|
|
21409
21415
|
method: "POST",
|
|
21410
21416
|
path: "/api/v1/character-requests/{request_id}/keep",
|
|
21411
21417
|
scopes: ["music:write", "videos:write"],
|
|
21412
21418
|
input: external_exports.object({
|
|
21413
21419
|
request_id: external_exports.string().min(1).describe("The request id (charreq_\u2026)"),
|
|
21414
21420
|
artist_id: artistId.optional().describe("It is this artist"),
|
|
21421
|
+
owner_artist_id: artistId.optional().describe("Cast only: the artist whose kit they go in (a project in a Creator workspace)"),
|
|
21422
|
+
shared: external_exports.boolean().optional().describe("Offer them to every other artist's videos too (default false)"),
|
|
21415
21423
|
name: external_exports.string().trim().min(1).max(60).optional().describe("A cast member's name"),
|
|
21416
21424
|
handle: external_exports.string().regex(/^[a-z0-9-]{1,40}$/).optional().describe("The @handle, without @"),
|
|
21417
21425
|
replace: external_exports.boolean().optional().describe("Replace the artist's character"),
|
|
@@ -21444,12 +21452,13 @@ var OPERATIONS = [
|
|
|
21444
21452
|
group: "artists",
|
|
21445
21453
|
title: "List the kit",
|
|
21446
21454
|
summary: "Outfits, places and props a music video brief can mention",
|
|
21447
|
-
description: `${KIT_ABOUT} With artist_id:
|
|
21455
|
+
description: `${KIT_ABOUT} With artist_id: what a brief for their song can mention, their own pieces first, then those other artists shared; with owner_artist_id: only their own (their kit page); without either, every piece. url is the piece cropped, up to 1536 px (what the AI receives; width and height describe it), thumbnail_url a 320 px copy, source_url the image the crop is a rectangle of. Every piece by default; pass q to search by name, @handle or description, and limit/offset to page. total is how many pieces match.`,
|
|
21448
21456
|
method: "GET",
|
|
21449
21457
|
path: "/api/v1/kit",
|
|
21450
21458
|
scopes: ["music:read", "videos:read"],
|
|
21451
21459
|
input: external_exports.object({
|
|
21452
|
-
artist_id: artistId.optional().describe("
|
|
21460
|
+
artist_id: artistId.optional().describe("What a brief for this artist\u2019s song can mention: theirs and those shared"),
|
|
21461
|
+
owner_artist_id: artistId.optional().describe("Only the pieces in this artist\u2019s kit"),
|
|
21453
21462
|
kind: external_exports.enum(KIT_KINDS).optional().describe("outfit, place or prop"),
|
|
21454
21463
|
q: external_exports.string().max(100).optional().describe("Part of the name, @handle or description"),
|
|
21455
21464
|
limit: external_exports.number().int().min(1).max(100).optional().describe("Pieces per page, 1-100 (default: every piece)"),
|
|
@@ -21466,14 +21475,16 @@ var OPERATIONS = [
|
|
|
21466
21475
|
group: "artists",
|
|
21467
21476
|
title: "Add a kit piece",
|
|
21468
21477
|
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
|
|
21478
|
+
description: `${KIT_ABOUT} An outfit needs artist_id (its artist's kit); a place or prop goes in owner_artist_id's kit (left out: the workspace's only artist, else its first, shared). shared true offers it to every other artist's songs too (default false). The image is an upload or file_url (JPEG, PNG or WebP, at least 512 px on its short side, up to 15 MB, with rights_confirmed) or a stock_id from search_stock (credited, no rights needed). crop keeps a rectangle of it (fractions; at least 256 px on its short side), for a prop cut out of a bigger photo. handle follows the name (Blue set \u2192 blue-set; -2 when taken) unless given. ${NEEDS_PLAN}`,
|
|
21470
21479
|
method: "POST",
|
|
21471
21480
|
path: "/api/v1/kit",
|
|
21472
21481
|
scopes: ["music:write", "videos:write"],
|
|
21473
21482
|
input: external_exports.object({
|
|
21474
|
-
kind: external_exports.enum(KIT_KINDS).describe("outfit (an artist\u2019s), place or prop
|
|
21483
|
+
kind: external_exports.enum(KIT_KINDS).describe("outfit (an artist\u2019s), place or prop"),
|
|
21475
21484
|
name: external_exports.string().trim().min(1).max(60).describe("What it is called, e.g. Blue set"),
|
|
21476
21485
|
artist_id: artistId.optional().describe("The artist an outfit belongs to (outfits only)"),
|
|
21486
|
+
owner_artist_id: artistId.optional().describe("A place or prop: the artist whose kit it goes in (a project in a Creator workspace)"),
|
|
21487
|
+
shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (default false)"),
|
|
21477
21488
|
handle: KitHandleSchema.optional().describe("Its @handle (default: from the name)"),
|
|
21478
21489
|
description: external_exports.string().trim().max(300).optional().describe("What it is, for the director (a stock photo\u2019s caption by default)"),
|
|
21479
21490
|
crop: CropRectSchema.optional().describe('The rectangle to keep, in fractions of the image: {"x","y","w","h"}; the whole image when omitted'),
|
|
@@ -21509,8 +21520,8 @@ var OPERATIONS = [
|
|
|
21509
21520
|
id: "kit.update",
|
|
21510
21521
|
group: "artists",
|
|
21511
21522
|
title: "Change a kit piece",
|
|
21512
|
-
summary: "Rename it, change its handle or description,
|
|
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.",
|
|
21523
|
+
summary: "Rename it, change its handle or description, crop it again, or share it",
|
|
21524
|
+
description: "crop is cut again from the image the piece was added from. shared: offer it (a character too) to every other artist's songs (true), or keep it to its own artist's (false); it stays in its own artist's kit either way. ai_made, on a character only: an AI-made person who looks like no real person (true), or a real one (false); a person who passed a face check is real (withdraw it first). Plans already made keep the pieces as they were planned.",
|
|
21514
21525
|
method: "PATCH",
|
|
21515
21526
|
path: "/api/v1/kit/{kit_id}",
|
|
21516
21527
|
scopes: ["music:write", "videos:write"],
|
|
@@ -21520,7 +21531,8 @@ var OPERATIONS = [
|
|
|
21520
21531
|
handle: KitHandleSchema.optional(),
|
|
21521
21532
|
description: external_exports.string().trim().max(300).nullable().optional(),
|
|
21522
21533
|
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)")
|
|
21534
|
+
ai_made: external_exports.boolean().optional().describe("A character only: an AI-made person (true) or a real one (false)"),
|
|
21535
|
+
shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (true), or only its own artist\u2019s (false)")
|
|
21524
21536
|
}),
|
|
21525
21537
|
readOnly: false,
|
|
21526
21538
|
destructive: false,
|
|
@@ -26020,7 +26032,7 @@ async function revoke(config2) {
|
|
|
26020
26032
|
// package.json
|
|
26021
26033
|
var package_default = {
|
|
26022
26034
|
name: "@kinetune/cli",
|
|
26023
|
-
version: "2.
|
|
26035
|
+
version: "2.1.0",
|
|
26024
26036
|
description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
|
|
26025
26037
|
license: "MIT",
|
|
26026
26038
|
homepage: "https://kinetune.com/developers#cli",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinetune/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.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",
|