@kinetune/cli 2.10.0 → 4.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/README.md +61 -12
- package/dist/kinetune.mjs +2163 -488
- package/package.json +1 -1
package/dist/kinetune.mjs
CHANGED
|
@@ -36,30 +36,6 @@ var CATEGORY_IDS = [
|
|
|
36
36
|
"cyber",
|
|
37
37
|
"dreamy"
|
|
38
38
|
];
|
|
39
|
-
var CATEGORIES = {
|
|
40
|
-
release: { label: "Release", description: "Bold announcement looks for a new single.", background: "image" },
|
|
41
|
-
fall: { label: "Fall", description: "Warm autumn colors and cozy textures.", background: "image" },
|
|
42
|
-
halloween: { label: "Halloween", description: "Spooky nights, pumpkins and fog.", background: "image" },
|
|
43
|
-
christmas: { label: "Christmas", description: "Snowy, glowing holiday looks.", background: "image" },
|
|
44
|
-
summer: { label: "Summer", description: "Sun, water and holiday energy.", background: "image" },
|
|
45
|
-
valentines: { label: "Valentine's", description: "Romantic reds, roses and soft light.", background: "image" },
|
|
46
|
-
mood: { label: "Mood", description: "Cinematic scenes with a lyric quote.", background: "image" },
|
|
47
|
-
retro: { label: "Retro", description: "Vinyl, film grain and vintage type.", background: "image" },
|
|
48
|
-
synthwave: { label: "Synthwave", description: "Neon sunsets and night drives.", background: "image" },
|
|
49
|
-
street: { label: "Street", description: "Concrete, graffiti and grit.", background: "image" },
|
|
50
|
-
nature: { label: "Nature", description: "Forests, mountains and open water.", background: "image" },
|
|
51
|
-
luxury: { label: "Luxury", description: "Marble, gold and deep velvet.", background: "image" },
|
|
52
|
-
abstract: { label: "Abstract", description: "Flowing color fields and gradients.", background: "gradient" },
|
|
53
|
-
minimal: { label: "Minimal", description: "Quiet color and clean type.", background: "gradient" },
|
|
54
|
-
neon: { label: "Neon", description: "Glowing color in the dark.", background: "gradient" },
|
|
55
|
-
"pop-art": { label: "Pop art", description: "Loud patterns and graphic color.", background: "pattern" },
|
|
56
|
-
"lo-fi": { label: "Lo-fi", description: "Cozy illustrated rooms, rainy windows and soft grain.", background: "image" },
|
|
57
|
-
grunge: { label: "Grunge", description: "Torn paper, concrete and raw black-and-white grit.", background: "image" },
|
|
58
|
-
cosmic: { label: "Cosmic", description: "Nebulae, planets and deep-space light.", background: "image" },
|
|
59
|
-
cyber: { label: "Cyber", description: "Cyberpunk streets, screens and digital glitches.", background: "image" },
|
|
60
|
-
dreamy: { label: "Dreamy", description: "Clouds, soft skies and hazy golden light.", background: "image" }
|
|
61
|
-
};
|
|
62
|
-
var categoryUsesImages = (id2) => CATEGORIES[id2].background === "image";
|
|
63
39
|
|
|
64
40
|
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
|
|
65
41
|
var external_exports = {};
|
|
@@ -920,8 +896,8 @@ var allowsEval = /* @__PURE__ */ cached(() => {
|
|
|
920
896
|
return false;
|
|
921
897
|
}
|
|
922
898
|
try {
|
|
923
|
-
const
|
|
924
|
-
new
|
|
899
|
+
const F2 = Function;
|
|
900
|
+
new F2("");
|
|
925
901
|
return true;
|
|
926
902
|
} catch (_) {
|
|
927
903
|
return false;
|
|
@@ -1352,8 +1328,8 @@ function base64urlToUint8Array(base64url3) {
|
|
|
1352
1328
|
function uint8ArrayToBase64url(bytes) {
|
|
1353
1329
|
return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
1354
1330
|
}
|
|
1355
|
-
function hexToUint8Array(
|
|
1356
|
-
const cleanHex =
|
|
1331
|
+
function hexToUint8Array(hex6) {
|
|
1332
|
+
const cleanHex = hex6.replace(/^0x/, "");
|
|
1357
1333
|
if (cleanHex.length % 2 !== 0) {
|
|
1358
1334
|
throw new Error("Invalid hex string length");
|
|
1359
1335
|
}
|
|
@@ -1771,18 +1747,18 @@ function treeifyError(error62, mapper = (issue2) => issue2.message) {
|
|
|
1771
1747
|
}
|
|
1772
1748
|
function toDotPath(_path) {
|
|
1773
1749
|
const segs = [];
|
|
1774
|
-
const path4 = _path.map((
|
|
1775
|
-
for (const
|
|
1776
|
-
if (typeof
|
|
1777
|
-
segs.push(`[${
|
|
1778
|
-
else if (typeof
|
|
1779
|
-
segs.push(`[${JSON.stringify(String(
|
|
1780
|
-
else if (/[^\w$]/.test(
|
|
1781
|
-
segs.push(`[${JSON.stringify(
|
|
1750
|
+
const path4 = _path.map((seg2) => typeof seg2 === "object" ? seg2.key : seg2);
|
|
1751
|
+
for (const seg2 of path4) {
|
|
1752
|
+
if (typeof seg2 === "number")
|
|
1753
|
+
segs.push(`[${seg2}]`);
|
|
1754
|
+
else if (typeof seg2 === "symbol")
|
|
1755
|
+
segs.push(`[${JSON.stringify(String(seg2))}]`);
|
|
1756
|
+
else if (/[^\w$]/.test(seg2))
|
|
1757
|
+
segs.push(`[${JSON.stringify(seg2)}]`);
|
|
1782
1758
|
else {
|
|
1783
1759
|
if (segs.length)
|
|
1784
1760
|
segs.push(".");
|
|
1785
|
-
segs.push(
|
|
1761
|
+
segs.push(seg2);
|
|
1786
1762
|
}
|
|
1787
1763
|
}
|
|
1788
1764
|
return segs.join("");
|
|
@@ -2638,9 +2614,9 @@ var Doc = class {
|
|
|
2638
2614
|
}
|
|
2639
2615
|
}
|
|
2640
2616
|
compile() {
|
|
2641
|
-
const
|
|
2617
|
+
const F2 = Function;
|
|
2642
2618
|
const content = this?.content ?? [``];
|
|
2643
|
-
const factory = new
|
|
2619
|
+
const factory = new F2(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {
|
|
2644
2620
|
${content.join("\n")}
|
|
2645
2621
|
};`);
|
|
2646
2622
|
return factory(...Object.values(this.closed));
|
|
@@ -3640,15 +3616,15 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3640
3616
|
const syms = normalized.symbolKeys;
|
|
3641
3617
|
const doc = new Doc(["payload", "ctx"], { shape, inst, memo: memo2, syms });
|
|
3642
3618
|
const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
|
|
3643
|
-
const prefixStr = (
|
|
3644
|
-
let ${
|
|
3645
|
-
for (let i = 0; i < ${
|
|
3646
|
-
const iss = ${
|
|
3619
|
+
const prefixStr = (id3, k) => `
|
|
3620
|
+
let ${id3}_ab = false;
|
|
3621
|
+
for (let i = 0; i < ${id3}.issues.length; i++) {
|
|
3622
|
+
const iss = ${id3}.issues[i];
|
|
3647
3623
|
iss.path = iss.path ? [${k}, ...iss.path] : [${k}];
|
|
3648
3624
|
payload.issues.push(iss);
|
|
3649
|
-
if (iss.continue !== true) ${
|
|
3625
|
+
if (iss.continue !== true) ${id3}_ab = true;
|
|
3650
3626
|
}
|
|
3651
|
-
if (${
|
|
3627
|
+
if (${id3}_ab && ctx && ctx.abortEarly) {
|
|
3652
3628
|
payload.value = newResult;
|
|
3653
3629
|
return payload;
|
|
3654
3630
|
}`;
|
|
@@ -3662,34 +3638,34 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3662
3638
|
for (const key of normalized.allKeys) {
|
|
3663
3639
|
if (key === "__proto__")
|
|
3664
3640
|
continue;
|
|
3665
|
-
const
|
|
3641
|
+
const id3 = ids[key];
|
|
3666
3642
|
const k = typeof key === "symbol" ? `syms[${syms.indexOf(key)}]` : esc(key);
|
|
3667
3643
|
const isPresent = `${k} in input`;
|
|
3668
3644
|
const schema = shape[key];
|
|
3669
3645
|
const optin = schema?._zod?.optin;
|
|
3670
3646
|
const isOptionalIn = optin !== void 0;
|
|
3671
3647
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3672
|
-
doc.write(`const ${
|
|
3648
|
+
doc.write(`const ${id3} = ${parseStr(k)};`);
|
|
3673
3649
|
if (isOptionalIn && isOptionalOut) {
|
|
3674
|
-
const assign = optin === "optional" ? `${
|
|
3650
|
+
const assign = optin === "optional" ? `${id3}_present` : `${id3}.value !== undefined || ${id3}_present`;
|
|
3675
3651
|
doc.write(`
|
|
3676
|
-
const ${
|
|
3677
|
-
if (!${
|
|
3678
|
-
if (${
|
|
3652
|
+
const ${id3}_present = ${isPresent};
|
|
3653
|
+
if (!${id3}.issues.length || ${id3}_present) {
|
|
3654
|
+
if (${id3}.issues.length) {${prefixStr(id3, k)}
|
|
3679
3655
|
}
|
|
3680
3656
|
|
|
3681
3657
|
if (${assign}) {
|
|
3682
|
-
newResult[${k}] = ${
|
|
3658
|
+
newResult[${k}] = ${id3}.value;
|
|
3683
3659
|
}
|
|
3684
3660
|
}
|
|
3685
3661
|
|
|
3686
3662
|
`);
|
|
3687
3663
|
} else if (!isOptionalIn) {
|
|
3688
3664
|
doc.write(`
|
|
3689
|
-
const ${
|
|
3690
|
-
if (${
|
|
3665
|
+
const ${id3}_present = ${isPresent};
|
|
3666
|
+
if (${id3}.issues.length) {${prefixStr(id3, k)}
|
|
3691
3667
|
}
|
|
3692
|
-
if (!${
|
|
3668
|
+
if (!${id3}_present && !${id3}.issues.length) {
|
|
3693
3669
|
payload.issues.push({
|
|
3694
3670
|
code: "invalid_type",
|
|
3695
3671
|
expected: "nonoptional",
|
|
@@ -3702,22 +3678,22 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3702
3678
|
}
|
|
3703
3679
|
}
|
|
3704
3680
|
|
|
3705
|
-
if (${
|
|
3706
|
-
newResult[${k}] = ${
|
|
3681
|
+
if (${id3}_present) {
|
|
3682
|
+
newResult[${k}] = ${id3}.value;
|
|
3707
3683
|
}
|
|
3708
3684
|
|
|
3709
3685
|
`);
|
|
3710
3686
|
} else {
|
|
3711
3687
|
doc.write(`
|
|
3712
|
-
if (${
|
|
3688
|
+
if (${id3}.issues.length) {${prefixStr(id3, k)}
|
|
3713
3689
|
}
|
|
3714
3690
|
`);
|
|
3715
3691
|
if (optin === "defaulted") {
|
|
3716
|
-
doc.write(`newResult[${k}] = ${
|
|
3692
|
+
doc.write(`newResult[${k}] = ${id3}.value;`);
|
|
3717
3693
|
} else {
|
|
3718
3694
|
doc.write(`
|
|
3719
|
-
if (${
|
|
3720
|
-
newResult[${k}] = ${
|
|
3695
|
+
if (${id3}.value !== undefined || ${isPresent}) {
|
|
3696
|
+
newResult[${k}] = ${id3}.value;
|
|
3721
3697
|
}
|
|
3722
3698
|
`);
|
|
3723
3699
|
}
|
|
@@ -4983,9 +4959,9 @@ var $ZodFunction = /* @__PURE__ */ $constructor("$ZodFunction", (inst, def) => {
|
|
|
4983
4959
|
return payload;
|
|
4984
4960
|
};
|
|
4985
4961
|
inst.input = (...args) => {
|
|
4986
|
-
const
|
|
4962
|
+
const F2 = inst.constructor;
|
|
4987
4963
|
if (Array.isArray(args[0])) {
|
|
4988
|
-
return new
|
|
4964
|
+
return new F2({
|
|
4989
4965
|
type: "function",
|
|
4990
4966
|
input: new $ZodTuple({
|
|
4991
4967
|
type: "tuple",
|
|
@@ -4995,15 +4971,15 @@ var $ZodFunction = /* @__PURE__ */ $constructor("$ZodFunction", (inst, def) => {
|
|
|
4995
4971
|
output: inst._def.output
|
|
4996
4972
|
});
|
|
4997
4973
|
}
|
|
4998
|
-
return new
|
|
4974
|
+
return new F2({
|
|
4999
4975
|
type: "function",
|
|
5000
4976
|
input: args[0],
|
|
5001
4977
|
output: inst._def.output
|
|
5002
4978
|
});
|
|
5003
4979
|
};
|
|
5004
4980
|
inst.output = (output2) => {
|
|
5005
|
-
const
|
|
5006
|
-
return new
|
|
4981
|
+
const F2 = inst.constructor;
|
|
4982
|
+
return new F2({
|
|
5007
4983
|
type: "function",
|
|
5008
4984
|
input: inst._def.input,
|
|
5009
4985
|
output: output2
|
|
@@ -13075,13 +13051,13 @@ function compileFn(schema, options) {
|
|
|
13075
13051
|
const code = doc.content.join("\n");
|
|
13076
13052
|
const fullCode = options?.debug ? constantNames.length > 0 ? `// Constants: ${constantNames.join(", ")}
|
|
13077
13053
|
${code}` : code : "";
|
|
13078
|
-
const
|
|
13054
|
+
const F2 = Function;
|
|
13079
13055
|
const factoryCode = `return (input) => {
|
|
13080
13056
|
${code}
|
|
13081
13057
|
}`;
|
|
13082
13058
|
let fn;
|
|
13083
13059
|
try {
|
|
13084
|
-
const factory = new
|
|
13060
|
+
const factory = new F2(...constantNames, factoryCode);
|
|
13085
13061
|
fn = factory(...constantValues);
|
|
13086
13062
|
} catch (err) {
|
|
13087
13063
|
throw new ZodCompileUnsupportedError(`this schema (generated code failed to evaluate: ${err.message})`);
|
|
@@ -15735,26 +15711,26 @@ function extractDefs(ctx, schema) {
|
|
|
15735
15711
|
return;
|
|
15736
15712
|
const idToSchema = /* @__PURE__ */ new Map();
|
|
15737
15713
|
for (const entry of ctx.seen.entries()) {
|
|
15738
|
-
const
|
|
15739
|
-
if (
|
|
15740
|
-
const existing = idToSchema.get(
|
|
15714
|
+
const id3 = ctx.metadataRegistry.get(entry[0])?.id;
|
|
15715
|
+
if (id3) {
|
|
15716
|
+
const existing = idToSchema.get(id3);
|
|
15741
15717
|
if (existing && existing !== entry[0]) {
|
|
15742
|
-
throw new Error(`Duplicate schema id "${
|
|
15718
|
+
throw new Error(`Duplicate schema id "${id3}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
|
|
15743
15719
|
}
|
|
15744
|
-
idToSchema.set(
|
|
15720
|
+
idToSchema.set(id3, entry[0]);
|
|
15745
15721
|
}
|
|
15746
15722
|
}
|
|
15747
15723
|
const makeURI = (entry) => {
|
|
15748
15724
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
15749
15725
|
if (ctx.external) {
|
|
15750
15726
|
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
15751
|
-
const uriGenerator = ctx.external.uri ?? ((
|
|
15727
|
+
const uriGenerator = ctx.external.uri ?? ((id4) => id4);
|
|
15752
15728
|
if (externalId) {
|
|
15753
15729
|
return { ref: uriGenerator(externalId) };
|
|
15754
15730
|
}
|
|
15755
|
-
const
|
|
15756
|
-
entry[1].defId =
|
|
15757
|
-
return { defId:
|
|
15731
|
+
const id3 = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
|
|
15732
|
+
entry[1].defId = id3;
|
|
15733
|
+
return { defId: id3, ref: `${uriGenerator("__shared")}#/${defsSegment}/${encodeJSONPointerSegment(id3)}` };
|
|
15758
15734
|
}
|
|
15759
15735
|
const uriPrefix = `#`;
|
|
15760
15736
|
const defUriPrefix = `${uriPrefix}/${defsSegment}/`;
|
|
@@ -15802,8 +15778,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15802
15778
|
continue;
|
|
15803
15779
|
}
|
|
15804
15780
|
}
|
|
15805
|
-
const
|
|
15806
|
-
if (
|
|
15781
|
+
const id3 = ctx.metadataRegistry.get(entry[0])?.id;
|
|
15782
|
+
if (id3) {
|
|
15807
15783
|
extractToDef(entry);
|
|
15808
15784
|
continue;
|
|
15809
15785
|
}
|
|
@@ -16036,10 +16012,10 @@ function finalize(ctx, schema) {
|
|
|
16036
16012
|
} else {
|
|
16037
16013
|
}
|
|
16038
16014
|
if (ctx.external?.uri) {
|
|
16039
|
-
const
|
|
16040
|
-
if (!
|
|
16015
|
+
const id3 = ctx.external.registry.get(schema)?.id;
|
|
16016
|
+
if (!id3)
|
|
16041
16017
|
throw new Error("Schema is missing an `id` property");
|
|
16042
|
-
result.$id = ctx.external.uri(
|
|
16018
|
+
result.$id = ctx.external.uri(id3);
|
|
16043
16019
|
}
|
|
16044
16020
|
assignProps(result, root.defId ? root.schema : root.def ?? root.schema);
|
|
16045
16021
|
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
@@ -16293,9 +16269,9 @@ var numberProcessor = (schema, ctx, _json, params) => {
|
|
|
16293
16269
|
json2.type = isInt ? "integer" : "number";
|
|
16294
16270
|
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
16295
16271
|
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
16296
|
-
const
|
|
16272
|
+
const legacy2 = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
16297
16273
|
if (exMin) {
|
|
16298
|
-
if (
|
|
16274
|
+
if (legacy2) {
|
|
16299
16275
|
json2.minimum = exclusiveMinimum;
|
|
16300
16276
|
json2.exclusiveMinimum = true;
|
|
16301
16277
|
} else {
|
|
@@ -16305,7 +16281,7 @@ var numberProcessor = (schema, ctx, _json, params) => {
|
|
|
16305
16281
|
json2.minimum = minimum;
|
|
16306
16282
|
}
|
|
16307
16283
|
if (exMax) {
|
|
16308
|
-
if (
|
|
16284
|
+
if (legacy2) {
|
|
16309
16285
|
json2.maximum = exclusiveMaximum;
|
|
16310
16286
|
json2.exclusiveMaximum = true;
|
|
16311
16287
|
} else {
|
|
@@ -16645,7 +16621,7 @@ function stringifyKeyNames(bySchema, json2, visited) {
|
|
|
16645
16621
|
const values = json2.enum ?? (json2.const !== void 0 ? [json2.const] : void 0);
|
|
16646
16622
|
if (!numericType && !values?.some((v) => typeof v === "number"))
|
|
16647
16623
|
return json2;
|
|
16648
|
-
const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id:
|
|
16624
|
+
const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id: id3, ...rest } = json2;
|
|
16649
16625
|
if (rest.enum)
|
|
16650
16626
|
rest.enum = rest.enum.map((v) => typeof v === "number" ? String(v) : v);
|
|
16651
16627
|
else if (typeof rest.const === "number")
|
|
@@ -19729,11 +19705,123 @@ function date4(params) {
|
|
|
19729
19705
|
return _coercedDate(ZodDate, params);
|
|
19730
19706
|
}
|
|
19731
19707
|
|
|
19708
|
+
// ../composition/src/song.ts
|
|
19709
|
+
var SPECTRUM_BANDS = 32;
|
|
19710
|
+
var SECTION_TYPES = ["intro", "verse", "chorus", "drop", "bridge", "outro"];
|
|
19711
|
+
var FRAME_BYTES = 5 + SPECTRUM_BANDS;
|
|
19712
|
+
|
|
19713
|
+
// ../composition/src/clips.ts
|
|
19714
|
+
var CUT_DENSITIES = ["one", "fewer", "even", "more"];
|
|
19715
|
+
var MAX_CLIP_SOURCES = 50;
|
|
19716
|
+
var TRANSITIONS = {
|
|
19717
|
+
slam: { name: "Bass slam", kind: "hit" },
|
|
19718
|
+
zoom: { name: "Zoom punch", kind: "blend" },
|
|
19719
|
+
flash: { name: "Flash", kind: "hit" },
|
|
19720
|
+
glitch: { name: "Glitch", kind: "hit" },
|
|
19721
|
+
whip: { name: "Whip", kind: "blend" },
|
|
19722
|
+
stack: { name: "Stack", kind: "blend" },
|
|
19723
|
+
spin: { name: "Spin", kind: "hit" },
|
|
19724
|
+
shutter: { name: "Shutter", kind: "blend" },
|
|
19725
|
+
ink: { name: "Ink", kind: "blend" },
|
|
19726
|
+
dissolve: { name: "Beat dissolve", kind: "blend" },
|
|
19727
|
+
wipe: { name: "Word wipe", kind: "blend" },
|
|
19728
|
+
stretch: { name: "Stretch", kind: "blend" },
|
|
19729
|
+
warp: { name: "Lens warp", kind: "blend" },
|
|
19730
|
+
flare: { name: "Flare", kind: "blend" },
|
|
19731
|
+
leak: { name: "Light leak", kind: "blend" },
|
|
19732
|
+
impact: { name: "Impact frame", kind: "hit" },
|
|
19733
|
+
strobe: { name: "Strobe", kind: "hit" },
|
|
19734
|
+
slip: { name: "Film slip", kind: "blend" },
|
|
19735
|
+
slice: { name: "Slice", kind: "blend" },
|
|
19736
|
+
grid: { name: "Grid", kind: "blend" }
|
|
19737
|
+
};
|
|
19738
|
+
var TRANSITION_IDS = Object.keys(TRANSITIONS);
|
|
19739
|
+
var CLIP_ENTRANCES = ["cut", ...TRANSITION_IDS];
|
|
19740
|
+
var TRANSITION_STYLES = {
|
|
19741
|
+
auto: null,
|
|
19742
|
+
impact: ["slam", "zoom", "flash", "impact", "strobe", "glitch", "spin"],
|
|
19743
|
+
flash: ["flash", "flare", "leak", "strobe", "shutter", "impact"],
|
|
19744
|
+
smooth: ["dissolve", "ink", "whip", "stack", "stretch", "warp", "leak"],
|
|
19745
|
+
none: []
|
|
19746
|
+
};
|
|
19747
|
+
var TRANSITION_STYLE_IDS = Object.keys(TRANSITION_STYLES);
|
|
19748
|
+
var JOIN_SECONDS = { min: 0.07, max: 1, default: 0.6 };
|
|
19749
|
+
var TRANSITION_DIRECTIONS = ["left", "right", "up", "down"];
|
|
19750
|
+
var GRADES = {
|
|
19751
|
+
clean: { name: "Clean", filter: "none" },
|
|
19752
|
+
vivid: { name: "Vivid", filter: "saturate(1.55) contrast(1.08)" },
|
|
19753
|
+
punch: { name: "Punch", filter: "contrast(1.35) saturate(1.2)" },
|
|
19754
|
+
warm: { name: "Warm", filter: "sepia(.28) saturate(1.25) brightness(1.03)" },
|
|
19755
|
+
cool: { name: "Cool", filter: "hue-rotate(-14deg) saturate(.92) brightness(1.04)" },
|
|
19756
|
+
golden: { name: "Golden hour", filter: "sepia(.45) saturate(1.4) brightness(1.06)" },
|
|
19757
|
+
blue: { name: "Blue hour", filter: "hue-rotate(-28deg) saturate(1.1) brightness(.92)" },
|
|
19758
|
+
tangerine: { name: "Tangerine", filter: "sepia(.35) hue-rotate(-12deg) saturate(1.6)" },
|
|
19759
|
+
teal: { name: "Teal & orange", filter: "contrast(1.12) saturate(1.35) hue-rotate(-6deg)" },
|
|
19760
|
+
faded: { name: "Faded film", filter: "contrast(.82) brightness(1.1) saturate(.75)" },
|
|
19761
|
+
matte: { name: "Matte", filter: "contrast(.78) brightness(1.06)" },
|
|
19762
|
+
silver: { name: "Silver", filter: "grayscale(.7) contrast(1.1)" },
|
|
19763
|
+
deep: { name: "Deep blacks", filter: "contrast(1.45) brightness(.9)" },
|
|
19764
|
+
glow: { name: "Glow", filter: "brightness(1.15) contrast(.92) saturate(1.1)" },
|
|
19765
|
+
vhs: { name: "VHS", filter: "saturate(1.3) contrast(.9) hue-rotate(6deg)" },
|
|
19766
|
+
super8: { name: "Super 8", filter: "sepia(.4) contrast(1.1) saturate(1.15)" },
|
|
19767
|
+
halation: { name: "Halation", filter: "brightness(1.1) saturate(1.25) contrast(1.05)" },
|
|
19768
|
+
bleach: { name: "Bleach bypass", filter: "saturate(.45) contrast(1.4)" },
|
|
19769
|
+
dream: { name: "Dream", filter: "brightness(1.15) saturate(1.1) contrast(.9)" },
|
|
19770
|
+
duotone: { name: "Duotone", filter: "grayscale(1) sepia(1) hue-rotate(250deg) saturate(3)" },
|
|
19771
|
+
cross: { name: "Cross process", filter: "hue-rotate(20deg) saturate(1.5) contrast(1.15)" },
|
|
19772
|
+
noir: { name: "Noir", filter: "grayscale(1) contrast(1.5)" },
|
|
19773
|
+
poster: { name: "Poster", filter: "contrast(2) saturate(1.6)" },
|
|
19774
|
+
night: { name: "Night vision", filter: "grayscale(1) sepia(1) hue-rotate(70deg) saturate(4) brightness(1.1)" },
|
|
19775
|
+
infrared: { name: "Infrared", filter: "invert(.85) hue-rotate(180deg) saturate(1.6)" },
|
|
19776
|
+
cctv: { name: "CCTV", filter: "grayscale(1) contrast(1.3) brightness(1.1)" },
|
|
19777
|
+
thermal: { name: "Thermal", filter: "grayscale(1) invert(1) sepia(1) hue-rotate(300deg) saturate(6)" }
|
|
19778
|
+
};
|
|
19779
|
+
var GRADE_IDS = Object.keys(GRADES);
|
|
19780
|
+
var GRADE_AMOUNT = { min: 0, max: 1, default: 1, step: 0.05 };
|
|
19781
|
+
var CLIP_SHAPES = ["both", "tall", "wide"];
|
|
19782
|
+
var CLIP_FILLS = ["cover", "blur", "bars"];
|
|
19783
|
+
var CLIP_SPEEDS = [0.5, 0.75, 1, 1.5, 2];
|
|
19784
|
+
var ClipMoodIdSchema = external_exports.string().regex(/^[a-z0-9][a-z0-9-]{1,39}$/, "A mood id (lowercase letters, digits and dashes)");
|
|
19785
|
+
var ClipFolderIdSchema = external_exports.string().regex(/^folder_[0-9a-f-]{36}$/, "A clip folder id (folder_\u2026)");
|
|
19786
|
+
var ClipIdSchema = external_exports.string().regex(/^clip_[0-9a-f-]{36}$/, "A clip id (clip_\u2026)");
|
|
19787
|
+
var ClipLookIdSchema = external_exports.string().regex(/^look_[A-Za-z0-9_-]{1,100}$/, "A Look id (look_\u2026)");
|
|
19788
|
+
var ClipSourcesSchema = external_exports.object({
|
|
19789
|
+
moods: external_exports.array(ClipMoodIdSchema).max(MAX_CLIP_SOURCES).default([]),
|
|
19790
|
+
folders: external_exports.array(ClipFolderIdSchema).max(MAX_CLIP_SOURCES).default([]),
|
|
19791
|
+
looks: external_exports.array(ClipLookIdSchema).max(MAX_CLIP_SOURCES).optional()
|
|
19792
|
+
}).strict().refine((s) => s.moods.length + s.folders.length + (s.looks?.length ?? 0) >= 1, { message: "Name at least one mood, folder or Look" }).refine((s) => s.moods.length + s.folders.length + (s.looks?.length ?? 0) <= MAX_CLIP_SOURCES, { message: `At most ${MAX_CLIP_SOURCES} moods, folders and Looks together` });
|
|
19793
|
+
var TransitionsSchema = external_exports.object({
|
|
19794
|
+
style: external_exports.enum(TRANSITION_STYLE_IDS).default("auto"),
|
|
19795
|
+
amount: external_exports.number().min(0).max(1).default(0.5),
|
|
19796
|
+
feel: external_exports.number().min(0).max(1).default(0.5),
|
|
19797
|
+
off: external_exports.array(external_exports.enum(TRANSITION_IDS)).max(TRANSITION_IDS.length).default([]),
|
|
19798
|
+
seed: external_exports.number().int().min(0).max(2 ** 31 - 1).default(1)
|
|
19799
|
+
}).strict();
|
|
19800
|
+
var EditClipSchema = external_exports.object({
|
|
19801
|
+
clip_id: ClipIdSchema,
|
|
19802
|
+
/** Where it starts in the video (s). */
|
|
19803
|
+
at: external_exports.number().min(0).max(3600),
|
|
19804
|
+
/** Where in the clip it starts playing (s). */
|
|
19805
|
+
in: external_exports.number().min(0).max(600),
|
|
19806
|
+
/** How long it shows (s): until the next clip. */
|
|
19807
|
+
duration: external_exports.number().min(0.1).max(3600),
|
|
19808
|
+
transition: external_exports.enum(CLIP_ENTRANCES),
|
|
19809
|
+
/** Set on the timeline for this join: the transition's length (s), where it travels, how hard it hits (0–1, 0.5 = as designed). */
|
|
19810
|
+
transition_seconds: external_exports.number().min(JOIN_SECONDS.min).max(JOIN_SECONDS.max).optional(),
|
|
19811
|
+
direction: external_exports.enum(TRANSITION_DIRECTIONS).optional(),
|
|
19812
|
+
intensity: external_exports.number().min(0).max(1).optional()
|
|
19813
|
+
}).strict();
|
|
19814
|
+
var EditSchema = external_exports.object({
|
|
19815
|
+
seed: external_exports.number().int().min(0).max(2 ** 31 - 1),
|
|
19816
|
+
density: external_exports.enum(CUT_DENSITIES),
|
|
19817
|
+
clips: external_exports.array(EditClipSchema).min(1).max(6e3)
|
|
19818
|
+
}).strict();
|
|
19819
|
+
|
|
19732
19820
|
// ../composition/src/fonts.ts
|
|
19733
19821
|
var FONTS = {
|
|
19734
|
-
inter: { family: "Inter", kind: "sans", weights: [500, 700, 800] },
|
|
19822
|
+
inter: { family: "Inter", kind: "sans", weights: [300, 500, 700, 800] },
|
|
19735
19823
|
montserrat: { family: "Montserrat", kind: "sans", weights: [500, 700, 800] },
|
|
19736
|
-
poppins: { family: "Poppins", kind: "sans", weights: [500, 700, 800] },
|
|
19824
|
+
poppins: { family: "Poppins", kind: "sans", weights: [300, 500, 700, 800] },
|
|
19737
19825
|
"dm-sans": { family: "DM Sans", kind: "sans", weights: [500, 700] },
|
|
19738
19826
|
outfit: { family: "Outfit", kind: "sans", weights: [500, 700, 800] },
|
|
19739
19827
|
sora: { family: "Sora", kind: "sans", weights: [500, 700, 800] },
|
|
@@ -19745,7 +19833,7 @@ var FONTS = {
|
|
|
19745
19833
|
"bebas-neue": { family: "Bebas Neue", kind: "condensed", weights: [400] },
|
|
19746
19834
|
anton: { family: "Anton", kind: "condensed", weights: [400] },
|
|
19747
19835
|
oswald: { family: "Oswald", kind: "condensed", weights: [500, 700] },
|
|
19748
|
-
"barlow-condensed": { family: "Barlow Condensed", kind: "condensed", weights: [600, 800] },
|
|
19836
|
+
"barlow-condensed": { family: "Barlow Condensed", kind: "condensed", weights: [500, 600, 800] },
|
|
19749
19837
|
"big-shoulders-display": { family: "Big Shoulders Display", kind: "condensed", weights: [700, 900] },
|
|
19750
19838
|
"playfair-display": { family: "Playfair Display", kind: "serif", weights: [600, 800] },
|
|
19751
19839
|
"dm-serif-display": { family: "DM Serif Display", kind: "serif", weights: [400] },
|
|
@@ -19769,15 +19857,40 @@ var FONTS = {
|
|
|
19769
19857
|
"rubik-mono-one": { family: "Rubik Mono One", kind: "display", weights: [400] },
|
|
19770
19858
|
creepster: { family: "Creepster", kind: "display", weights: [400] },
|
|
19771
19859
|
"mountains-of-christmas": { family: "Mountains of Christmas", kind: "display", weights: [700] },
|
|
19772
|
-
"space-mono": { family: "Space Mono", kind: "mono", weights: [400, 700] }
|
|
19860
|
+
"space-mono": { family: "Space Mono", kind: "mono", weights: [400, 700] },
|
|
19861
|
+
arimo: { family: "Arimo", kind: "sans", weights: [400, 700] },
|
|
19862
|
+
kanit: { family: "Kanit", kind: "sans", weights: [700] },
|
|
19863
|
+
"do-hyeon": { family: "Do Hyeon", kind: "sans", weights: [400] },
|
|
19864
|
+
"six-caps": { family: "Six Caps", kind: "condensed", weights: [400] },
|
|
19865
|
+
staatliches: { family: "Staatliches", kind: "display", weights: [400] },
|
|
19866
|
+
"krona-one": { family: "Krona One", kind: "display", weights: [400] },
|
|
19867
|
+
"pirata-one": { family: "Pirata One", kind: "display", weights: [400] }
|
|
19773
19868
|
};
|
|
19774
19869
|
var FONT_IDS = Object.keys(FONTS);
|
|
19775
|
-
var LYRIC_FONT_IDS = FONT_IDS.filter((
|
|
19870
|
+
var LYRIC_FONT_IDS = FONT_IDS.filter((id3) => ["sans", "condensed", "serif", "mono"].includes(FONTS[id3].kind) && id3 !== "abril-fatface");
|
|
19776
19871
|
|
|
19777
|
-
// ../composition/src/
|
|
19778
|
-
var
|
|
19779
|
-
|
|
19780
|
-
|
|
19872
|
+
// ../composition/src/effects.ts
|
|
19873
|
+
var EFFECTS = {
|
|
19874
|
+
"light-leak": { name: "Light leak", group: "light" },
|
|
19875
|
+
"god-rays": { name: "God rays", group: "light" },
|
|
19876
|
+
glow: { name: "Glow", group: "light" },
|
|
19877
|
+
vignette: { name: "Vignette", group: "light" },
|
|
19878
|
+
"film-burn": { name: "Film burn", group: "film" },
|
|
19879
|
+
"film-grain": { name: "Film grain", group: "film" },
|
|
19880
|
+
"old-footage": { name: "Old footage", group: "film" },
|
|
19881
|
+
shake: { name: "Shake", group: "camera" },
|
|
19882
|
+
mirror: { name: "Mirror", group: "camera" },
|
|
19883
|
+
blur: { name: "Blur in/out", group: "camera" },
|
|
19884
|
+
vhs: { name: "VHS", group: "digital" },
|
|
19885
|
+
glitch: { name: "Glitch", group: "digital" },
|
|
19886
|
+
"rgb-split": { name: "RGB split", group: "digital" }
|
|
19887
|
+
};
|
|
19888
|
+
var EFFECT_IDS = Object.keys(EFFECTS);
|
|
19889
|
+
var MAX_EFFECTS = 3;
|
|
19890
|
+
var DEFAULT_EFFECT_AMOUNT = 0.6;
|
|
19891
|
+
var EffectSchema = external_exports.object({ id: external_exports.enum(EFFECT_IDS), amount: external_exports.number().min(0).max(1).default(DEFAULT_EFFECT_AMOUNT) }).strict();
|
|
19892
|
+
var EffectsSchema = external_exports.array(EffectSchema).max(MAX_EFFECTS).refine((list) => new Set(list.map((e) => e.id)).size === list.length, { message: "Each effect once" });
|
|
19893
|
+
var TAU = Math.PI * 2;
|
|
19781
19894
|
|
|
19782
19895
|
// ../composition/src/visualizers/engine-ids.ts
|
|
19783
19896
|
var VIZZ_ENGINE_IDS = [
|
|
@@ -19796,9 +19909,300 @@ var VIZZ_ENGINE_IDS = [
|
|
|
19796
19909
|
var LIQUID_ENGINE = "liquid";
|
|
19797
19910
|
var VISUALIZER_ENGINE_IDS = [...VIZZ_ENGINE_IDS, LIQUID_ENGINE];
|
|
19798
19911
|
|
|
19912
|
+
// ../composition/src/short-styles.ts
|
|
19913
|
+
var S = (x, y, blur, opacity) => ({ x, y, blur, opacity });
|
|
19914
|
+
var F = (font2, weight, more = {}) => ({ font: font2, weight, ...more });
|
|
19915
|
+
var SHORT_SPECS = {
|
|
19916
|
+
// Bold
|
|
19917
|
+
chant: {
|
|
19918
|
+
filter: "bold",
|
|
19919
|
+
mode: "word",
|
|
19920
|
+
effect: "chant",
|
|
19921
|
+
face: F("anton", 400, { italic: true, upper: true }),
|
|
19922
|
+
size: 0.12,
|
|
19923
|
+
fit: 0.7,
|
|
19924
|
+
ink: "text",
|
|
19925
|
+
key: { size: 0.15, fit: 0.62, ink: "accent" },
|
|
19926
|
+
motion: {
|
|
19927
|
+
in: { ms: 220, ease: "out", pose: { rotate: -14, scale: 1.12, blur: 10, opacity: 0 } },
|
|
19928
|
+
out: { ms: 110, ease: "in", pose: { scale: 1.08, blur: 12, opacity: 0 } },
|
|
19929
|
+
handover: true,
|
|
19930
|
+
shadow: S(0, 2, 8, 0.65),
|
|
19931
|
+
lineHeight: 0.91,
|
|
19932
|
+
orbit: { rx: 0.02, ry: 0.015, period: 4 },
|
|
19933
|
+
tilt: { min: -12, max: -2, spin: 2 }
|
|
19934
|
+
},
|
|
19935
|
+
glow: 0.9
|
|
19936
|
+
},
|
|
19937
|
+
doodle: {
|
|
19938
|
+
filter: "bold",
|
|
19939
|
+
mode: "word",
|
|
19940
|
+
effect: "doodle",
|
|
19941
|
+
face: F("bebas-neue", 400, { upper: true }),
|
|
19942
|
+
size: 0.2,
|
|
19943
|
+
fit: 0.86,
|
|
19944
|
+
ink: "text",
|
|
19945
|
+
key: { face: F("anton", 400, { upper: true }), size: 0.3, fit: 0.8, ink: "accent" },
|
|
19946
|
+
motion: { out: { ms: 260, ease: "out", pose: { opacity: 0, blur: 12, scale: 1.05 } }, lineHeight: 0.99 }
|
|
19947
|
+
},
|
|
19948
|
+
highlight: {
|
|
19949
|
+
filter: "bold",
|
|
19950
|
+
mode: "word",
|
|
19951
|
+
effect: "highlight",
|
|
19952
|
+
face: F("arimo", 700),
|
|
19953
|
+
size: 0.16,
|
|
19954
|
+
fit: 0.7,
|
|
19955
|
+
ink: "text",
|
|
19956
|
+
key: { size: 0.19, fit: 0.76 },
|
|
19957
|
+
motion: { shadow: S(0, 2, 8, 0.55) }
|
|
19958
|
+
},
|
|
19959
|
+
smear: {
|
|
19960
|
+
filter: "bold",
|
|
19961
|
+
mode: "word",
|
|
19962
|
+
effect: "smear",
|
|
19963
|
+
face: F("pirata-one", 400),
|
|
19964
|
+
size: 0.075,
|
|
19965
|
+
fit: 0.62,
|
|
19966
|
+
ink: "text",
|
|
19967
|
+
key: { face: F("krona-one", 400), size: 0.09, fit: 0.62, ink: "accent" },
|
|
19968
|
+
motion: { in: { ms: 150, ease: "out", pose: { y: -0.065, scaleY: 3.2, blur: 6, opacity: 0.8 } } },
|
|
19969
|
+
place: "right"
|
|
19970
|
+
},
|
|
19971
|
+
twin: {
|
|
19972
|
+
filter: "bold",
|
|
19973
|
+
mode: "word",
|
|
19974
|
+
effect: "twin",
|
|
19975
|
+
face: F("poppins", 700, { upper: true }),
|
|
19976
|
+
size: 0.21,
|
|
19977
|
+
fit: 0.81,
|
|
19978
|
+
ink: "text",
|
|
19979
|
+
key: { ink: "accent" },
|
|
19980
|
+
motion: {}
|
|
19981
|
+
},
|
|
19982
|
+
marquee: {
|
|
19983
|
+
filter: "bold",
|
|
19984
|
+
mode: "word",
|
|
19985
|
+
effect: "marquee",
|
|
19986
|
+
face: F("archivo-black", 400, { upper: true }),
|
|
19987
|
+
size: 0.13,
|
|
19988
|
+
fit: 0.84,
|
|
19989
|
+
ink: "text",
|
|
19990
|
+
key: { size: 0.15, fit: 0.88, ink: "accent" },
|
|
19991
|
+
motion: { in: { ms: 60, ease: "out", pose: { x: -0.25, scaleX: 1.8, blur: 16, opacity: 0.7 } }, shadow: S(0, 4, 4, 0.85) }
|
|
19992
|
+
},
|
|
19993
|
+
gilded: {
|
|
19994
|
+
filter: "bold",
|
|
19995
|
+
mode: "line",
|
|
19996
|
+
effect: "gilded",
|
|
19997
|
+
face: F("playfair-display", 600, { italic: true }),
|
|
19998
|
+
size: 0.062,
|
|
19999
|
+
fit: 0.86,
|
|
20000
|
+
ink: "text",
|
|
20001
|
+
key: { size: 0.15, fit: 0.8, ink: "accent" },
|
|
20002
|
+
motion: { in: { ms: 420, ease: "out", pose: { y: 0.06, blur: 14, opacity: 0 } }, shadow: S(0, 1, 6, 0.45) }
|
|
20003
|
+
},
|
|
20004
|
+
sparkle: {
|
|
20005
|
+
filter: "bold",
|
|
20006
|
+
mode: "word",
|
|
20007
|
+
effect: "sparkle",
|
|
20008
|
+
face: F("anton", 400, { upper: true }),
|
|
20009
|
+
size: 0.34,
|
|
20010
|
+
fit: 0.8,
|
|
20011
|
+
ink: "accent",
|
|
20012
|
+
key: { size: 0.4, fit: 0.94, ink: "text" },
|
|
20013
|
+
aside: F("instrument-serif", 400, { italic: true }),
|
|
20014
|
+
motion: {},
|
|
20015
|
+
glow: 0.8
|
|
20016
|
+
},
|
|
20017
|
+
flare: {
|
|
20018
|
+
filter: "bold",
|
|
20019
|
+
mode: "word",
|
|
20020
|
+
effect: "flare",
|
|
20021
|
+
face: F("montserrat", 800, { upper: true }),
|
|
20022
|
+
size: 0.075,
|
|
20023
|
+
fit: 0.6,
|
|
20024
|
+
ink: "text",
|
|
20025
|
+
key: { size: 0.09 },
|
|
20026
|
+
motion: {}
|
|
20027
|
+
},
|
|
20028
|
+
circuit: {
|
|
20029
|
+
filter: "bold",
|
|
20030
|
+
mode: "word",
|
|
20031
|
+
effect: "circuit",
|
|
20032
|
+
face: F("bebas-neue", 400, { upper: true, tracking: 0.02 }),
|
|
20033
|
+
size: 0.17,
|
|
20034
|
+
fit: 0.6,
|
|
20035
|
+
ink: "accent",
|
|
20036
|
+
key: { size: 0.2 },
|
|
20037
|
+
motion: {},
|
|
20038
|
+
blend: "difference"
|
|
20039
|
+
},
|
|
20040
|
+
spark: {
|
|
20041
|
+
filter: "bold",
|
|
20042
|
+
mode: "line",
|
|
20043
|
+
effect: "spark",
|
|
20044
|
+
face: F("righteous", 400, { upper: true }),
|
|
20045
|
+
size: 0.108,
|
|
20046
|
+
fit: 0.86,
|
|
20047
|
+
ink: "text",
|
|
20048
|
+
motion: { shadow: S(3, 4, 2, 0.8) },
|
|
20049
|
+
glow: 0.75
|
|
20050
|
+
},
|
|
20051
|
+
loose: {
|
|
20052
|
+
filter: "bold",
|
|
20053
|
+
mode: "grid",
|
|
20054
|
+
effect: "loose",
|
|
20055
|
+
face: F("arimo", 400, { scaleX: 0.8 }),
|
|
20056
|
+
size: 0.13,
|
|
20057
|
+
fit: 0.65,
|
|
20058
|
+
ink: "muted",
|
|
20059
|
+
motion: { shadow: S(0, 2, 8, 0.5) }
|
|
20060
|
+
},
|
|
20061
|
+
// The phrase packed into a solid block of heavy caps as it is sung: two words a row, each stretched or squeezed so the
|
|
20062
|
+
// pair fills the block's width; rows of different heights stack down with no gaps.
|
|
20063
|
+
slab: { filter: "bold", mode: "word", effect: "slab", face: F("archivo-black", 400, { upper: true }), size: 0.2, fit: 0.82, ink: "text", motion: { shadow: S(0, 2, 8, 0.35) } },
|
|
20064
|
+
// One heavy word at a time, every word stretched or squeezed to the same width: short words go wide, long ones tall.
|
|
20065
|
+
stamp: { filter: "bold", mode: "word", effect: "stamp", face: F("archivo-black", 400, { upper: true }), size: 0.22, fit: 0.78, ink: "text", motion: { shadow: S(0, 2, 8, 0.35) } },
|
|
20066
|
+
// Layered
|
|
20067
|
+
whisper: {
|
|
20068
|
+
filter: "layered",
|
|
20069
|
+
mode: "word",
|
|
20070
|
+
effect: "whisper",
|
|
20071
|
+
face: F("bebas-neue", 400, { upper: true, scaleY: 1.15 }),
|
|
20072
|
+
size: 0.17,
|
|
20073
|
+
fit: 0.5,
|
|
20074
|
+
ink: "text",
|
|
20075
|
+
key: { size: 0.17, fit: 0.5, ink: "accent" },
|
|
20076
|
+
aside: F("instrument-serif", 400, { italic: true }),
|
|
20077
|
+
motion: {}
|
|
20078
|
+
},
|
|
20079
|
+
tiles: {
|
|
20080
|
+
filter: "layered",
|
|
20081
|
+
mode: "word",
|
|
20082
|
+
effect: "tiles",
|
|
20083
|
+
face: F("krona-one", 400, { upper: true }),
|
|
20084
|
+
size: 0.2,
|
|
20085
|
+
fit: 0.7,
|
|
20086
|
+
ink: "text",
|
|
20087
|
+
key: { ink: "accent" },
|
|
20088
|
+
aside: F("anton", 400, { upper: true }),
|
|
20089
|
+
motion: {}
|
|
20090
|
+
},
|
|
20091
|
+
nested: {
|
|
20092
|
+
filter: "layered",
|
|
20093
|
+
mode: "word",
|
|
20094
|
+
effect: "nested",
|
|
20095
|
+
face: F("anton", 400, { upper: true, italic: true }),
|
|
20096
|
+
size: 0.24,
|
|
20097
|
+
fit: 0.5,
|
|
20098
|
+
ink: "text",
|
|
20099
|
+
key: { size: 0.33, fit: 0.52, ink: "accent" },
|
|
20100
|
+
motion: { in: { ms: 240, ease: "out", pose: { x: -0.05, scaleX: 0.75, blur: 12, opacity: 0 } }, out: { ms: 180, ease: "out", pose: { x: 0.05, scaleX: 1.3, blur: 16, opacity: 0 } }, handover: true, shadow: S(0, 2, 10, 0.5) },
|
|
20101
|
+
glow: 0.7
|
|
20102
|
+
},
|
|
20103
|
+
pair: {
|
|
20104
|
+
filter: "layered",
|
|
20105
|
+
mode: "word",
|
|
20106
|
+
effect: "pair",
|
|
20107
|
+
face: F("krona-one", 400),
|
|
20108
|
+
size: 0.15,
|
|
20109
|
+
fit: 0.5,
|
|
20110
|
+
ink: "accent",
|
|
20111
|
+
aside: F("pirata-one", 400),
|
|
20112
|
+
motion: {}
|
|
20113
|
+
},
|
|
20114
|
+
tall: {
|
|
20115
|
+
filter: "layered",
|
|
20116
|
+
mode: "word",
|
|
20117
|
+
effect: "tall",
|
|
20118
|
+
face: F("do-hyeon", 400, { upper: true }),
|
|
20119
|
+
size: 0.2,
|
|
20120
|
+
fit: 0.84,
|
|
20121
|
+
ink: "text",
|
|
20122
|
+
key: { face: F("six-caps", 400, { upper: true }), size: 0.42, fit: 0.6, ink: "accent" },
|
|
20123
|
+
motion: { out: { ms: 220, ease: "in", pose: { x: -0.2, blur: 10, opacity: 0 } } }
|
|
20124
|
+
},
|
|
20125
|
+
baton: {
|
|
20126
|
+
filter: "layered",
|
|
20127
|
+
mode: "line",
|
|
20128
|
+
effect: "baton",
|
|
20129
|
+
face: F("anton", 400, { upper: true }),
|
|
20130
|
+
size: 0.2,
|
|
20131
|
+
fit: 0.8,
|
|
20132
|
+
ink: "text",
|
|
20133
|
+
key: { ink: "text" },
|
|
20134
|
+
aside: F("poppins", 700, { upper: true }),
|
|
20135
|
+
motion: {},
|
|
20136
|
+
dim: 0.65
|
|
20137
|
+
},
|
|
20138
|
+
mixtape: {
|
|
20139
|
+
filter: "layered",
|
|
20140
|
+
mode: "word",
|
|
20141
|
+
effect: "mixtape",
|
|
20142
|
+
face: F("staatliches", 400, { upper: true }),
|
|
20143
|
+
size: 0.29,
|
|
20144
|
+
fit: 0.84,
|
|
20145
|
+
ink: "text",
|
|
20146
|
+
key: { face: F("righteous", 400), ink: "accent" },
|
|
20147
|
+
motion: {}
|
|
20148
|
+
},
|
|
20149
|
+
trail: {
|
|
20150
|
+
filter: "layered",
|
|
20151
|
+
mode: "word",
|
|
20152
|
+
effect: "trail",
|
|
20153
|
+
face: F("kanit", 700, { upper: true }),
|
|
20154
|
+
size: 0.085,
|
|
20155
|
+
fit: 0.5,
|
|
20156
|
+
ink: "accent",
|
|
20157
|
+
key: { face: F("shrikhand", 400, { upper: true }), size: 0.17, fit: 0.72, ink: "text" },
|
|
20158
|
+
motion: { shadow: S(0, 2, 6, 0.45) }
|
|
20159
|
+
},
|
|
20160
|
+
// Minimal
|
|
20161
|
+
caption: { filter: "minimal", mode: "line", effect: "caption", face: F("arimo", 400, { italic: true }), size: 0.082, fit: 0.86, ink: "accent", motion: { shadow: S(1, 2, 6, 0.3) } },
|
|
20162
|
+
focus: {
|
|
20163
|
+
filter: "minimal",
|
|
20164
|
+
mode: "word",
|
|
20165
|
+
effect: "focus",
|
|
20166
|
+
face: F("anton", 400),
|
|
20167
|
+
size: 0.16,
|
|
20168
|
+
fit: 0.4,
|
|
20169
|
+
ink: "text",
|
|
20170
|
+
key: { face: F("monoton", 400, { upper: true }), size: 0.17, fit: 0.66, ink: "accent" },
|
|
20171
|
+
aside: F("archivo-black", 400, { upper: true }),
|
|
20172
|
+
motion: { shadow: S(0, 2, 8, 0.45) },
|
|
20173
|
+
glow: 0.35
|
|
20174
|
+
},
|
|
20175
|
+
hush: { filter: "minimal", mode: "word", effect: "hush", face: F("poppins", 700, { upper: true }), size: 0.09, fit: 0.6, ink: "text", motion: { shadow: S(0, 2, 8, 0.25) } },
|
|
20176
|
+
dusk: { filter: "minimal", mode: "word", effect: "dusk", face: F("inter", 300), size: 0.085, fit: 0.55, ink: "accent", motion: { in: { ms: 70, ease: "linear", pose: { opacity: 0 } }, out: { ms: 70, ease: "linear", pose: { opacity: 0 } }, shadow: S(0, 1, 3, 0.35) } },
|
|
20177
|
+
murmur: {
|
|
20178
|
+
filter: "minimal",
|
|
20179
|
+
mode: "word",
|
|
20180
|
+
effect: "murmur",
|
|
20181
|
+
face: F("libre-baskerville", 400, { italic: true }),
|
|
20182
|
+
size: 0.075,
|
|
20183
|
+
fit: 0.7,
|
|
20184
|
+
ink: "accent",
|
|
20185
|
+
aside: F("libre-baskerville", 400, { italic: true }),
|
|
20186
|
+
motion: { out: { ms: 350, ease: "out", pose: { opacity: 0, blur: 4 } }, shadow: S(0, 2, 8, 0.45) }
|
|
20187
|
+
},
|
|
20188
|
+
steel: { filter: "minimal", mode: "word", effect: "steel", face: F("oswald", 700, { upper: true }), size: 0.17, fit: 0.66, ink: "text", motion: {}, blend: "difference" },
|
|
20189
|
+
sway: { filter: "minimal", mode: "line", effect: "sway", face: F("poppins", 700, { upper: true }), size: 0.075, fit: 0.86, ink: "text", motion: { shadow: S(0, 2, 8, 0.4) }, glow: 0.55 }
|
|
20190
|
+
};
|
|
20191
|
+
var SHORT_STYLE_IDS = Object.keys(SHORT_SPECS);
|
|
20192
|
+
var MIXTAPE_FLICKER = [
|
|
20193
|
+
F("anton", 400),
|
|
20194
|
+
F("playfair-display", 800),
|
|
20195
|
+
F("bungee", 400),
|
|
20196
|
+
F("pacifico", 400),
|
|
20197
|
+
F("archivo-black", 400),
|
|
20198
|
+
F("monoton", 400),
|
|
20199
|
+
F("permanent-marker", 400),
|
|
20200
|
+
F("abril-fatface", 400)
|
|
20201
|
+
];
|
|
20202
|
+
|
|
19799
20203
|
// ../composition/src/lyric-styles.ts
|
|
19800
20204
|
var LYRIC_STAGES = ["showcase", "kinetic"];
|
|
19801
|
-
var LYRIC_LAYOUTS = ["line", "stack", "word", "scatter", "typewriter", "cascade", "subtitle", "chat"];
|
|
20205
|
+
var LYRIC_LAYOUTS = ["line", "stack", "word", "scatter", "typewriter", "cascade", "subtitle", "chat", "short"];
|
|
19802
20206
|
var SHADER_REVEALS = ["burn", "ink", "smoke", "particles", "drip"];
|
|
19803
20207
|
var LYRIC_REVEALS = ["fade", "rise", "pop", "blur", "slide", "drop", "flip", "glitch", "wipe", "type", ...SHADER_REVEALS];
|
|
19804
20208
|
var LYRIC_EXITS = ["fade", "blur", "rise", "scale", "glitch", "cut", ...SHADER_REVEALS];
|
|
@@ -19879,6 +20283,17 @@ var L = (lyrics) => ({
|
|
|
19879
20283
|
var FX = (fx = {}) => ({ shake: 0, zoom: 0, flash: 0, rgb: 0, glitch: 0, ...fx });
|
|
19880
20284
|
var SP = (style = "none", spectrum = {}) => ({ style, placement: "bottom", size: 1, opacity: 0.8, ...spectrum });
|
|
19881
20285
|
var FIN = (finish = {}) => ({ grain: 0, vignette: 0.3, leak: 0, dust: 0, droplets: 0, scanlines: false, letterbox: false, ...finish });
|
|
20286
|
+
var short = (id3, label, description, fx) => ({
|
|
20287
|
+
label,
|
|
20288
|
+
description,
|
|
20289
|
+
lyrics: L({ layout: "short", reveal: "pop", exit: "fade", effect: "none" }),
|
|
20290
|
+
fx,
|
|
20291
|
+
spectrum: SP(),
|
|
20292
|
+
finish: FIN({ vignette: 0.25 }),
|
|
20293
|
+
player: "none",
|
|
20294
|
+
fonts: [SHORT_SPECS[id3].face.font],
|
|
20295
|
+
short: SHORT_SPECS[id3].filter
|
|
20296
|
+
});
|
|
19882
20297
|
var CONDENSED = ["bebas-neue", "anton", "oswald", "barlow-condensed", "big-shoulders-display", "archivo-black", "league-spartan"];
|
|
19883
20298
|
var LYRIC_STYLES = {
|
|
19884
20299
|
showcase: {
|
|
@@ -20189,7 +20604,7 @@ var LYRIC_STYLES = {
|
|
|
20189
20604
|
},
|
|
20190
20605
|
behind: {
|
|
20191
20606
|
label: "Behind",
|
|
20192
|
-
description: "Giant words stacked behind the subject of your
|
|
20607
|
+
description: "Giant words stacked behind the singer or subject of your clips, who stands in front of them.",
|
|
20193
20608
|
lyrics: L({ layout: "stack", reveal: "rise", exit: "fade", emphasis: "accent", size: 1.3, position: "upper", place: "behind" }),
|
|
20194
20609
|
fx: FX({ zoom: 0.15 }),
|
|
20195
20610
|
spectrum: SP(),
|
|
@@ -20206,12 +20621,43 @@ var LYRIC_STYLES = {
|
|
|
20206
20621
|
finish: FIN({ vignette: 0.4 }),
|
|
20207
20622
|
player: "none",
|
|
20208
20623
|
fonts: CONDENSED
|
|
20209
|
-
}
|
|
20624
|
+
},
|
|
20625
|
+
// The Short family: built for 9:16 edits over footage (short-styles.ts holds each one's type and effect).
|
|
20626
|
+
chant: short("chant", "Chant", "The word stacked three times in glowing italic caps.", FX({ zoom: 0.2 })),
|
|
20627
|
+
doodle: short("doodle", "Doodle", "Huge words; the key ones in red with hand-drawn stars and bolts.", FX({ shake: 0.2, zoom: 0.25 })),
|
|
20628
|
+
highlight: short("highlight", "Highlight", "The sung word on a coloured block, the word before it above.", FX()),
|
|
20629
|
+
smear: short("smear", "Smear", "Key words smear in from above, off to one side.", FX()),
|
|
20630
|
+
twin: short("twin", "Twin", "Bold caps pushing each other up; a held key word grows with the last word laid small on top.", FX({ zoom: 0.15 })),
|
|
20631
|
+
marquee: short("marquee", "Marquee", "Heavy caps with a reflection; held words fill the frame in scrolling rows.", FX({ zoom: 0.2 })),
|
|
20632
|
+
gilded: short("gilded", "Gilded", "Italic serif typing in; key words in a warm gradient over their reflection.", FX()),
|
|
20633
|
+
sparkle: short("sparkle", "Sparkle", "Big caps springing in and growing; key words burst into hand-drawn stickers.", FX({ zoom: 0.15 })),
|
|
20634
|
+
flare: short("flare", "Flare", "Bold caps over a streak of light that flares on the beat.", FX()),
|
|
20635
|
+
circuit: short("circuit", "Circuit", "Neon condensed caps that flicker on like a sign.", FX({ rgb: 0.15 })),
|
|
20636
|
+
spark: short("spark", "Spark", "The line in bold caps; the sung word glows.", FX()),
|
|
20637
|
+
loose: short("loose", "Loose", "The line spread across loose rows, plain and lowercase.", FX()),
|
|
20638
|
+
slab: short("slab", "Slab", "The line packed into a solid block of heavy caps, each word stretched to fill its row.", FX({ zoom: 0.15 })),
|
|
20639
|
+
stamp: short("stamp", "Stamp", "One heavy word at a time, every word stretched to the same width.", FX({ zoom: 0.15 })),
|
|
20640
|
+
whisper: short("whisper", "Whisper", "Neighbouring words layered: one huge in cyan, the other whispered on top in italics.", FX()),
|
|
20641
|
+
tiles: short("tiles", "Tiles", "A phrase stacked four times down the frame, folding into a ladder; then wide single words.", FX()),
|
|
20642
|
+
nested: short("nested", "Nested", "Slanted heavy caps; red key words rise in with scattered copies of themselves.", FX()),
|
|
20643
|
+
pair: short("pair", "Pair", "Small blackletter words around a wide key word that types in as it is sung.", FX()),
|
|
20644
|
+
tall: short("tall", "Tall", "One white word at a time with a streak behind it; a tall red word under a line.", FX({ zoom: 0.15 })),
|
|
20645
|
+
baton: short("baton", "Baton", "One line at a time rolling up over dimmed footage, cyan and white in turn.", FX()),
|
|
20646
|
+
mixtape: short("mixtape", "Mixtape", "Big stencil caps; key words in rounded cyan that flicker through typefaces.", FX()),
|
|
20647
|
+
trail: short("trail", "Trail", "Small caps that slide in leaving a trail.", FX()),
|
|
20648
|
+
caption: short("caption", "Caption", "A quiet italic line that fills in as it is sung.", FX()),
|
|
20649
|
+
focus: short("focus", "Focus", "Striped neon key words turning slowly; long lines tilt in 3D and stretch tall.", FX({ glitch: 0.15 })),
|
|
20650
|
+
hush: short("hush", "Hush", "Quiet bold caps in warm white, one word at a time.", FX()),
|
|
20651
|
+
dusk: short("dusk", "Dusk", "One light lowercase word at a time, in a warm tint.", FX()),
|
|
20652
|
+
murmur: short("murmur", "Murmur", "Two italic serif words drifting softly.", FX()),
|
|
20653
|
+
steel: short("steel", "Steel", "Condensed caps in brushed metal.", FX({ glitch: 0.2 })),
|
|
20654
|
+
sway: short("sway", "Sway", "The line in bold caps; the sung word lights up.", FX())
|
|
20210
20655
|
};
|
|
20211
20656
|
var LYRIC_STYLE_IDS = Object.keys(LYRIC_STYLES);
|
|
20212
|
-
|
|
20213
|
-
|
|
20214
|
-
|
|
20657
|
+
var SHORT_FAMILY = LYRIC_STYLE_IDS.filter((id3) => LYRIC_STYLES[id3].short);
|
|
20658
|
+
function styleParts(id3) {
|
|
20659
|
+
const s = LYRIC_STYLES[id3];
|
|
20660
|
+
return { style: id3, lyrics: { ...s.lyrics }, fx: { ...s.fx }, spectrum: { ...s.spectrum }, finish: { ...s.finish }, player: s.player, hero: s.hero ?? "none" };
|
|
20215
20661
|
}
|
|
20216
20662
|
|
|
20217
20663
|
// ../composition/src/look.ts
|
|
@@ -20221,6 +20667,7 @@ var AspectRatioSchema = external_exports.enum(ASPECT_RATIOS);
|
|
|
20221
20667
|
var hex3 = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/, "6-digit hex color");
|
|
20222
20668
|
var FontIdSchema = external_exports.enum(FONT_IDS);
|
|
20223
20669
|
var HEADLINES = ["none", "new-release", "out-now", "coming-soon", "listen-now"];
|
|
20670
|
+
var TITLE_CARDS = ["ends", "breaks", "label"];
|
|
20224
20671
|
var LayoutRecipeSchema = external_exports.object({
|
|
20225
20672
|
arrangement: external_exports.enum(["stack", "split", "hero"]),
|
|
20226
20673
|
align: external_exports.enum(["center", "start"]),
|
|
@@ -20302,6 +20749,23 @@ var BackgroundSchema = external_exports.discriminatedUnion("kind", [
|
|
|
20302
20749
|
external_exports.object({
|
|
20303
20750
|
kind: external_exports.literal("visualizer"),
|
|
20304
20751
|
ground: hex3
|
|
20752
|
+
}).strict(),
|
|
20753
|
+
// Clips cut on the beat (clips.ts): short clips from library moods and the person's folders; each video has its own Edit
|
|
20754
|
+
// (which clip plays when), so a Look with clips makes a new cut for every song. The Look keeps the recipe: where the clips
|
|
20755
|
+
// come from, how often they cut, how they meet, their grade (and its strength, 1 when left out), the effects over the picture and how
|
|
20756
|
+
// a clip of the other shape fills the frame.
|
|
20757
|
+
external_exports.object({
|
|
20758
|
+
kind: external_exports.literal("clips"),
|
|
20759
|
+
sources: ClipSourcesSchema,
|
|
20760
|
+
density: external_exports.enum(CUT_DENSITIES),
|
|
20761
|
+
transitions: TransitionsSchema,
|
|
20762
|
+
grade: external_exports.enum(GRADE_IDS),
|
|
20763
|
+
grade_amount: external_exports.number().min(0).max(1).optional(),
|
|
20764
|
+
effects: EffectsSchema.optional(),
|
|
20765
|
+
shape: external_exports.enum(CLIP_SHAPES),
|
|
20766
|
+
fill: external_exports.enum(CLIP_FILLS),
|
|
20767
|
+
speed: external_exports.union(CLIP_SPEEDS.map((v) => external_exports.literal(v))),
|
|
20768
|
+
dim: external_exports.number().min(0).max(0.8)
|
|
20305
20769
|
}).strict()
|
|
20306
20770
|
]);
|
|
20307
20771
|
var LookSpecSchema = external_exports.object({
|
|
@@ -20360,8 +20824,12 @@ var DisplaySchema = external_exports.object({
|
|
|
20360
20824
|
cover: external_exports.boolean().default(true),
|
|
20361
20825
|
lyrics: external_exports.boolean().default(true),
|
|
20362
20826
|
badges: external_exports.boolean().default(true),
|
|
20827
|
+
censor: external_exports.boolean().optional(),
|
|
20828
|
+
// swear words show their vowels as * (the song is untouched); omitted: off
|
|
20363
20829
|
headline: external_exports.enum(HEADLINES).optional(),
|
|
20364
20830
|
// omitted: the Look's default
|
|
20831
|
+
title_card: external_exports.enum(TITLE_CARDS).optional(),
|
|
20832
|
+
// omitted: "ends" over clips, else "breaks" (TITLE_CARDS)
|
|
20365
20833
|
cover_scale: scale("cover_scale", DISPLAY_SCALES.cover).optional(),
|
|
20366
20834
|
// omitted: 1
|
|
20367
20835
|
text_scale: scale("text_scale", DISPLAY_SCALES.text).optional(),
|
|
@@ -20435,7 +20903,7 @@ var OutroDesignSchema = external_exports.object({
|
|
|
20435
20903
|
/** How the footage meets the card as it comes in: nothing more than its entrance, or a flash, a glitch or a film burn. */
|
|
20436
20904
|
transition: external_exports.enum(OUTRO_TRANSITIONS)
|
|
20437
20905
|
}).strict();
|
|
20438
|
-
var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true });
|
|
20906
|
+
var OutroDisplaySchema = DisplaySchema.omit({ lyrics: true, headline: true, title_card: true });
|
|
20439
20907
|
|
|
20440
20908
|
// ../composition/src/visualizers/choice-schema.ts
|
|
20441
20909
|
var VisualKeySchema = external_exports.string().regex(/^[A-Za-z0-9-]+\/[a-z0-9-]+$/, 'A visual key from GET /v1/options (visualizers), like "liquid/amber-aurora"');
|
|
@@ -20446,9 +20914,78 @@ var VisualChoiceSchema = external_exports.object({
|
|
|
20446
20914
|
sections: external_exports.partialRecord(external_exports.enum(SECTION_TYPES), VisualKeySchema).optional()
|
|
20447
20915
|
}).strict();
|
|
20448
20916
|
|
|
20917
|
+
// ../composition/src/background-motion.ts
|
|
20918
|
+
var DIRECTIONS = {
|
|
20919
|
+
center: [0, 0],
|
|
20920
|
+
up: [0, -1],
|
|
20921
|
+
down: [0, 1],
|
|
20922
|
+
left: [-1, 0],
|
|
20923
|
+
right: [1, 0],
|
|
20924
|
+
"up-left": [-Math.SQRT1_2, -Math.SQRT1_2],
|
|
20925
|
+
"up-right": [Math.SQRT1_2, -Math.SQRT1_2],
|
|
20926
|
+
"down-left": [-Math.SQRT1_2, Math.SQRT1_2],
|
|
20927
|
+
"down-right": [Math.SQRT1_2, Math.SQRT1_2]
|
|
20928
|
+
};
|
|
20929
|
+
|
|
20930
|
+
// ../composition/src/stock.ts
|
|
20931
|
+
var STOCK_PROVIDERS = {
|
|
20932
|
+
pexels: { name: "Pexels", url: "https://www.pexels.com", kinds: ["photo", "video"] },
|
|
20933
|
+
// Pixabay's API serves photos at most 1280 px: too small for a background, so only its videos are offered.
|
|
20934
|
+
pixabay: { name: "Pixabay", url: "https://pixabay.com", kinds: ["video"] }
|
|
20935
|
+
};
|
|
20936
|
+
var STOCK_PROVIDER_IDS = Object.keys(STOCK_PROVIDERS);
|
|
20937
|
+
var STOCK_ITEM_ID_PATTERN = new RegExp(`^(?:(${STOCK_PROVIDER_IDS.join("|")}):)?\\d{1,20}$`);
|
|
20938
|
+
|
|
20939
|
+
// ../composition/src/clips-editor.ts
|
|
20940
|
+
var VISUAL_ENERGIES = [{ value: "all", label: "All" }, { value: "calm", label: "Calm" }, { value: "medium", label: "Medium" }, { value: "bold", label: "Bold" }];
|
|
20941
|
+
var CLIP_SORTS = [{ value: "best", label: "Best first" }, { value: "newest", label: "Newest" }, { value: "length", label: "Length" }];
|
|
20942
|
+
var CLIP_BROWSE_SHAPES = [{ value: "both", label: "Both" }, { value: "tall", label: "Tall" }, { value: "wide", label: "Wide" }];
|
|
20943
|
+
|
|
20944
|
+
// ../composition/src/canvas-frame.ts
|
|
20945
|
+
var CANVAS_SPEEDS = [0.25, ...CLIP_SPEEDS];
|
|
20946
|
+
var CANVAS_CROSSFADE = { min: 0.25, max: 2, default: 0.75, step: 0.05 };
|
|
20947
|
+
var CANVAS_CAMERAS = ["still", "push", "pull"];
|
|
20948
|
+
var CANVAS_FILLS = [...CLIP_FILLS, "colour"];
|
|
20949
|
+
var CANVAS_ROTATIONS = [0, 90, 180, 270];
|
|
20950
|
+
var CANVAS_ZOOM = { min: 1, max: 3 };
|
|
20951
|
+
var HEX_COLOUR = /^#[0-9a-fA-F]{6}$/;
|
|
20952
|
+
var DEFAULT_CANVAS_FRAME = { crossfade: CANVAS_CROSSFADE.default, camera: "still", fade: false, x: 0, y: 0, zoom: 1, rotate: 0, colour: null, steady: false };
|
|
20953
|
+
|
|
20954
|
+
// ../composition/src/canvas-settings.ts
|
|
20955
|
+
var CANVAS_SECONDS = { min: 3, max: 8, default: 8 };
|
|
20956
|
+
var CANVAS_VISUAL_KEY = /^[A-Za-z0-9-]+\/[a-z0-9-]+$/;
|
|
20957
|
+
var CanvasLookSchema = external_exports.object({
|
|
20958
|
+
loop: external_exports.enum(["drift", "rebound", "cuts"]).default("drift"),
|
|
20959
|
+
seconds: external_exports.number().min(CANVAS_SECONDS.min).max(CANVAS_SECONDS.max).default(CANVAS_SECONDS.default),
|
|
20960
|
+
cut: external_exports.enum(["hard", "smooth"]).default("hard"),
|
|
20961
|
+
crossfade: external_exports.number().min(CANVAS_CROSSFADE.min).max(CANVAS_CROSSFADE.max).default(CANVAS_CROSSFADE.default),
|
|
20962
|
+
camera: external_exports.enum(CANVAS_CAMERAS).default("still"),
|
|
20963
|
+
fade: external_exports.boolean().default(false),
|
|
20964
|
+
fill: external_exports.enum(CANVAS_FILLS).default("blur"),
|
|
20965
|
+
fill_colour: external_exports.string().regex(HEX_COLOUR, "A colour like #1a1a1a").nullable().default(null),
|
|
20966
|
+
speed: external_exports.number().refine((v) => CANVAS_SPEEDS.includes(v), { message: `speed is one of ${CANVAS_SPEEDS.join(", ")}` }).default(1),
|
|
20967
|
+
grade: external_exports.enum(GRADE_IDS).default("clean"),
|
|
20968
|
+
grade_amount: external_exports.number().min(GRADE_AMOUNT.min).max(GRADE_AMOUNT.max).default(GRADE_AMOUNT.default),
|
|
20969
|
+
effects: EffectsSchema.default([]),
|
|
20970
|
+
light: external_exports.string().regex(CANVAS_VISUAL_KEY, "A visual key from GET /v1/options (canvas.visuals)").nullable().default(null),
|
|
20971
|
+
atmosphere: external_exports.enum(OVERLAYS).default("none")
|
|
20972
|
+
}).strict().refine((v) => v.fill !== "colour" || v.fill_colour, { message: "A colour fill needs fill_colour", path: ["fill_colour"] });
|
|
20973
|
+
|
|
20449
20974
|
// ../video-types/src/kit.ts
|
|
20450
20975
|
var KIT_KINDS = ["outfit", "place", "prop"];
|
|
20451
|
-
var KIT_ANGLES = ["three-quarter", "side", "low"];
|
|
20976
|
+
var KIT_ANGLES = ["wide", "three-quarter", "side", "reverse", "corner", "low", "high", "overhead", "detail", "framed"];
|
|
20977
|
+
var KIT_ANGLE_LINES = {
|
|
20978
|
+
wide: "The whole set, pulled far back",
|
|
20979
|
+
"three-quarter": "Round to one side, in depth",
|
|
20980
|
+
side: "Across it, in profile",
|
|
20981
|
+
reverse: "Turned round, facing the other way",
|
|
20982
|
+
corner: "From a far corner, on the diagonal",
|
|
20983
|
+
low: "Near the floor, looking up",
|
|
20984
|
+
high: "From up high, looking down",
|
|
20985
|
+
overhead: "Straight down from above",
|
|
20986
|
+
detail: "Close on one object or texture",
|
|
20987
|
+
framed: "Through a doorway or something near"
|
|
20988
|
+
};
|
|
20452
20989
|
var KIT_HANDLE = /^[a-z0-9][a-z0-9-]{0,39}$/;
|
|
20453
20990
|
var SHOT_SIZES = ["close", "medium", "wide"];
|
|
20454
20991
|
var SHOT_ANGLES = ["front", "three-quarter", "side", "low", "high", "over-shoulder", "back"];
|
|
@@ -20592,47 +21129,30 @@ var CoverRedrawSchema = external_exports.object({ cover_id: external_exports.str
|
|
|
20592
21129
|
// ../video-types/src/index.ts
|
|
20593
21130
|
var MAX_VARIATIONS = 4;
|
|
20594
21131
|
var variations = external_exports.number().int().min(1).max(MAX_VARIATIONS).default(1);
|
|
20595
|
-
var BACKGROUND_TIERS = ["standard", "high", "ultra"];
|
|
20596
21132
|
var MIN_TRIM_SECONDS = 8;
|
|
20597
21133
|
var TrimSchema = external_exports.object({
|
|
20598
21134
|
start_seconds: external_exports.number().min(0),
|
|
20599
21135
|
end_seconds: external_exports.number().positive()
|
|
20600
21136
|
}).strict().refine((v) => v.end_seconds > v.start_seconds, { message: "end_seconds must be greater than start_seconds" }).refine((v) => v.end_seconds - v.start_seconds >= MIN_TRIM_SECONDS - 1e-6, { message: `The trimmed section must be at least ${MIN_TRIM_SECONDS} seconds` });
|
|
20601
|
-
var
|
|
20602
|
-
var FREE_VIDEO_RULE = `Your free video is one lyric video of your free song, up to ${FREE_VIDEO_MAX_SECONDS} seconds of it, with a Look from the library, in one format.`;
|
|
20603
|
-
var BACKGROUND_SOURCE_IDS = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video", "designed", "visualizer"];
|
|
20604
|
-
var MEDIA_BACKGROUND_SOURCES = ["ai-image", "ai-video", "stock-photo", "stock-video", "upload-photo", "upload-video"];
|
|
20605
|
-
var BACKGROUND_SOURCES2 = {
|
|
20606
|
-
"ai-image": { label: "AI image", description: "An image made for this Look, moving slowly across the song.", kind: "image", source: "generated" },
|
|
20607
|
-
"ai-video": { label: "AI video loop", description: "An AI image brought to life as a seamless loop.", kind: "video", source: "generated" },
|
|
20608
|
-
"stock-photo": { label: "Stock photo", description: "A stock photo, picked by the director or by you.", kind: "image", source: "stock" },
|
|
20609
|
-
"stock-video": { label: "Stock video", description: "A stock clip made into a seamless loop.", kind: "video", source: "stock" },
|
|
20610
|
-
"upload-photo": { label: "Your photo", description: "A photo you upload, moving slowly across the song.", kind: "image", source: "upload" },
|
|
20611
|
-
"upload-video": { label: "Your video", description: "A clip you upload, made into a seamless loop.", kind: "video", source: "upload" },
|
|
20612
|
-
designed: { label: "Designed", description: "A moving gradient or pattern the director designs for your song.", kind: null, source: null },
|
|
20613
|
-
visualizer: { label: "Visualizer", description: "No picture: a visual that moves with your music fills the frame behind the words.", kind: null, source: null }
|
|
20614
|
-
};
|
|
20615
|
-
var MAX_BACKGROUND_SCENES = 4;
|
|
20616
|
-
var SINGLE_SCENE_STYLES = ["behind", "screen"];
|
|
20617
|
-
var StockIdSchema = external_exports.string().regex(/^\d{1,20}$/, "A stock photo or video id (digits)");
|
|
21137
|
+
var StockIdSchema = external_exports.string().regex(STOCK_ITEM_ID_PATTERN, "A stock photo or video id (from search_stock)");
|
|
20618
21138
|
var KitItemIdSchema = external_exports.string().regex(/^kit_[0-9a-f-]{36}$/, "A kit piece id (kit_\u2026)");
|
|
20619
|
-
var
|
|
20620
|
-
|
|
20621
|
-
|
|
20622
|
-
|
|
20623
|
-
|
|
20624
|
-
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
|
|
20628
|
-
|
|
20629
|
-
|
|
20630
|
-
|
|
21139
|
+
var ClipsBackgroundRequestSchema = external_exports.object({
|
|
21140
|
+
kind: external_exports.literal("clips"),
|
|
21141
|
+
sources: ClipSourcesSchema,
|
|
21142
|
+
density: external_exports.enum(CUT_DENSITIES).default("even"),
|
|
21143
|
+
transitions: TransitionsSchema.default(() => TransitionsSchema.parse({})),
|
|
21144
|
+
grade: external_exports.enum(GRADE_IDS).default("clean"),
|
|
21145
|
+
grade_amount: external_exports.number().min(GRADE_AMOUNT.min).max(GRADE_AMOUNT.max).default(GRADE_AMOUNT.default),
|
|
21146
|
+
effects: EffectsSchema.default([]),
|
|
21147
|
+
shape: external_exports.enum(CLIP_SHAPES).default("both"),
|
|
21148
|
+
fill: external_exports.enum(CLIP_FILLS).default("blur"),
|
|
21149
|
+
speed: external_exports.number().refine((v) => CLIP_SPEEDS.includes(v), { message: `speed is one of ${CLIP_SPEEDS.join(", ")}` }).default(1)
|
|
21150
|
+
}).strict();
|
|
21151
|
+
var BackgroundChoiceSchema = external_exports.discriminatedUnion("kind", [ClipsBackgroundRequestSchema, external_exports.object({ kind: external_exports.literal("visualizer") }).strict()]);
|
|
21152
|
+
var EditRequestSchema = external_exports.object({
|
|
21153
|
+
seed: external_exports.number().int().min(0).max(2 ** 31 - 1).optional(),
|
|
21154
|
+
clips: external_exports.array(EditClipSchema).min(1).max(6e3).optional()
|
|
20631
21155
|
}).strict();
|
|
20632
|
-
var BACKGROUND_UPLOAD_LIMITS = {
|
|
20633
|
-
image: { maxBytes: 25 * 1024 * 1024, minShortSide: 720, types: ["image/jpeg", "image/png", "image/webp"] },
|
|
20634
|
-
video: { maxBytes: 300 * 1024 * 1024, minShortSide: 720, minSeconds: 4, maxSeconds: 180, types: ["video/mp4", "video/quicktime", "video/webm"] }
|
|
20635
|
-
};
|
|
20636
21156
|
var UPLOAD_CONTENT_TYPES = ["audio/mpeg", "audio/wav", "audio/mp4", "image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime", "video/webm"];
|
|
20637
21157
|
var UPLOAD_MAX_BYTES = 300 * 1024 * 1024;
|
|
20638
21158
|
var UploadCreateSchema = external_exports.object({
|
|
@@ -20640,25 +21160,13 @@ var UploadCreateSchema = external_exports.object({
|
|
|
20640
21160
|
content_type: external_exports.enum(UPLOAD_CONTENT_TYPES),
|
|
20641
21161
|
size_bytes: external_exports.number().int().min(1).max(UPLOAD_MAX_BYTES)
|
|
20642
21162
|
}).strict();
|
|
20643
|
-
var
|
|
20644
|
-
|
|
20645
|
-
|
|
20646
|
-
|
|
20647
|
-
|
|
20648
|
-
|
|
20649
|
-
|
|
20650
|
-
mode: external_exports.literal("new"),
|
|
20651
|
-
category: external_exports.enum(CATEGORY_IDS),
|
|
20652
|
-
background: BackgroundRequestSchema.default({ quality: "high" }),
|
|
20653
|
-
visibility: external_exports.enum(["private", "public"]).default("private"),
|
|
20654
|
-
direction: external_exports.string().trim().max(2e3).optional(),
|
|
20655
|
-
feature_artist: external_exports.enum(LOOK_FEATURE_ARTIST_MODES).default("never"),
|
|
20656
|
-
lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(),
|
|
20657
|
-
/** The visual the person picked (GET /v1/options visualizers); omitted: the director picks one per section. */
|
|
20658
|
-
visual: VisualChoiceSchema.optional()
|
|
20659
|
-
}).strict(),
|
|
20660
|
-
external_exports.object({ mode: external_exports.literal("existing"), id: external_exports.string().min(1).max(120), lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(), visual: VisualChoiceSchema.optional() }).strict()
|
|
20661
|
-
]);
|
|
21163
|
+
var LookRequestSchema = external_exports.object({
|
|
21164
|
+
id: external_exports.string().min(1).max(120).optional(),
|
|
21165
|
+
lyric_style: external_exports.enum(LYRIC_STYLE_IDS).optional(),
|
|
21166
|
+
behind: external_exports.boolean().optional(),
|
|
21167
|
+
visual: VisualChoiceSchema.optional(),
|
|
21168
|
+
background: BackgroundChoiceSchema.optional()
|
|
21169
|
+
}).strict();
|
|
20662
21170
|
var common = {
|
|
20663
21171
|
song_id: external_exports.string().min(1).max(120),
|
|
20664
21172
|
variations,
|
|
@@ -20669,79 +21177,88 @@ var common = {
|
|
|
20669
21177
|
var LyricVideoRequestSchema = external_exports.object({
|
|
20670
21178
|
type: external_exports.literal("lyric-video"),
|
|
20671
21179
|
...common,
|
|
20672
|
-
look: LookRequestSchema,
|
|
21180
|
+
look: LookRequestSchema.default({}),
|
|
20673
21181
|
aspect_ratios: external_exports.array(AspectRatioSchema).min(1).max(3).refine((v) => new Set(v).size === v.length, { message: "aspect_ratios must be unique" }).default(["9:16"]),
|
|
20674
21182
|
display: DisplaySchema.default(DEFAULT_DISPLAY),
|
|
20675
|
-
trim: TrimSchema.optional()
|
|
21183
|
+
trim: TrimSchema.optional(),
|
|
21184
|
+
/** A clips video's Edit: its seed, or its clips as previewed. */
|
|
21185
|
+
edit: EditRequestSchema.optional()
|
|
20676
21186
|
}).strict().superRefine((value, ctx) => {
|
|
20677
|
-
if (value.
|
|
20678
|
-
if (value.
|
|
20679
|
-
const allowed = backgroundSourcesFor(value.look.category);
|
|
20680
|
-
if (!allowed.includes(value.look.background.source)) ctx.addIssue({
|
|
20681
|
-
code: "custom",
|
|
20682
|
-
path: ["look", "background", "source"],
|
|
20683
|
-
message: `The ${value.look.category} category takes ${allowed.map((s) => `"${s}"`).join(", ")}`
|
|
20684
|
-
});
|
|
20685
|
-
}
|
|
20686
|
-
if (value.look.mode === "new") {
|
|
20687
|
-
const upload = value.look.background.source ? isUploadSource(value.look.background.source) : false;
|
|
20688
|
-
if (upload && !value.look.background.upload_id) ctx.addIssue({ code: "custom", path: ["look", "background", "upload_id"], message: "Upload the photo or video first (POST /backgrounds) and pass its id" });
|
|
20689
|
-
if (!upload && value.look.background.upload_id) ctx.addIssue({ code: "custom", path: ["look", "background", "upload_id"], message: "upload_id goes with the upload-photo and upload-video sources" });
|
|
20690
|
-
if (value.look.background.stock_id && BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "stock")
|
|
20691
|
-
ctx.addIssue({ code: "custom", path: ["look", "background", "stock_id"], message: "stock_id goes with the stock-photo and stock-video sources" });
|
|
20692
|
-
if (upload && value.look.visibility === "public") ctx.addIssue({ code: "custom", path: ["look", "visibility"], message: "A Look with your own background stays private" });
|
|
20693
|
-
if (value.look.background.references === "stock" && BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "generated")
|
|
20694
|
-
ctx.addIssue({ code: "custom", path: ["look", "background", "references"], message: "references goes with the ai-image and ai-video sources" });
|
|
20695
|
-
else if (value.look.background.references === "stock" && value.look.feature_artist !== "always")
|
|
20696
|
-
ctx.addIssue({ code: "custom", path: ["look", "background", "references"], message: 'references "stock" goes with feature_artist "always": the stock photo is the place the artist is shown in' });
|
|
20697
|
-
if ((value.look.background.scenes ?? 1) > 1 && backgroundSourceFor(value.look.category, value.look.background) !== "ai-image")
|
|
20698
|
-
ctx.addIssue({ code: "custom", path: ["look", "background", "scenes"], message: "More than one scene is only available with an AI image background" });
|
|
20699
|
-
if ((value.look.background.scenes ?? 1) > 1 && SINGLE_SCENE_STYLES.includes(value.look.lyric_style ?? ""))
|
|
20700
|
-
ctx.addIssue({ code: "custom", path: ["look", "background", "scenes"], message: `The ${value.look.lyric_style} lyric style takes a single scene` });
|
|
20701
|
-
}
|
|
20702
|
-
if (value.look.mode === "new" && value.look.feature_artist === "always") {
|
|
20703
|
-
if (BACKGROUND_SOURCES2[backgroundSourceFor(value.look.category, value.look.background)].source !== "generated")
|
|
20704
|
-
ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "Only an AI image or AI video background can show the artist" });
|
|
20705
|
-
if (value.display.cover) ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "Switch off the cover to show the artist: the cover would hide them" });
|
|
20706
|
-
if (value.look.visibility === "public") ctx.addIssue({ code: "custom", path: ["look", "feature_artist"], message: "A Look that shows the artist stays private" });
|
|
20707
|
-
}
|
|
21187
|
+
if (value.edit?.clips && value.variations > 1) ctx.addIssue({ code: "custom", path: ["edit", "clips"], message: "An edit with its clips listed makes one video" });
|
|
21188
|
+
if (value.variations > 1 && value.look.background?.kind !== "clips") ctx.addIssue({ code: "custom", path: ["variations"], message: "variations go with a clips background (each one draws other clips)" });
|
|
20708
21189
|
});
|
|
20709
|
-
var CANVAS_MIN_SECONDS =
|
|
20710
|
-
var CANVAS_MAX_SECONDS =
|
|
20711
|
-
var
|
|
20712
|
-
var
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
var
|
|
20719
|
-
var
|
|
20720
|
-
var
|
|
20721
|
-
|
|
20722
|
-
|
|
21190
|
+
var CANVAS_MIN_SECONDS = CANVAS_SECONDS.min;
|
|
21191
|
+
var CANVAS_MAX_SECONDS = CANVAS_SECONDS.max;
|
|
21192
|
+
var CANVAS_LOOPS = ["drift", "rebound", "cuts"];
|
|
21193
|
+
var CANVAS_CUT_STYLES = ["hard", "smooth"];
|
|
21194
|
+
var CANVAS_STILL_MOTIONS = ["push", "drift", "still"];
|
|
21195
|
+
var GENERATE_STYLES = ["calm", "cinematic", "dreamy", "intense"];
|
|
21196
|
+
var CANVAS_GENERATE_VIDEO = ["standard", "high"];
|
|
21197
|
+
var GENERATE_FROM = ["song", "cover"];
|
|
21198
|
+
var CANVAS_MAX_STOCK_IDS = 3;
|
|
21199
|
+
var CanvasVisualKeySchema = external_exports.string().regex(CANVAS_VISUAL_KEY, "A visual key from GET /v1/options (canvas.visuals)");
|
|
21200
|
+
var SecondsSchema = external_exports.number().min(CANVAS_MIN_SECONDS).max(CANVAS_MAX_SECONDS).refine((v) => Math.abs(v * 10 - Math.round(v * 10)) < 1e-6, { message: "seconds in tenths" });
|
|
21201
|
+
var CanvasPictureSchema = external_exports.discriminatedUnion("kind", [
|
|
21202
|
+
// Clips: the sources the loop draws from (omitted: the song's own moods, by rules), and any Pexels items to bring in first.
|
|
21203
|
+
// How they sit and move: Drift's crossfade (s), a camera move (Cuts and Rebound), a fade through black at the loop point (Cuts), where
|
|
21204
|
+
// the picture sits (x, y from -1 to 1) and its zoom, a quarter turn, the fill (colour: bars in fill_colour) and a steadied copy of each clip.
|
|
21205
|
+
external_exports.object({
|
|
21206
|
+
kind: external_exports.literal("clips"),
|
|
21207
|
+
sources: ClipSourcesSchema.optional(),
|
|
21208
|
+
stock_ids: external_exports.array(StockIdSchema).min(1).max(CANVAS_MAX_STOCK_IDS).optional(),
|
|
21209
|
+
grade: external_exports.enum(GRADE_IDS).default("clean"),
|
|
21210
|
+
grade_amount: external_exports.number().min(GRADE_AMOUNT.min).max(GRADE_AMOUNT.max).default(GRADE_AMOUNT.default),
|
|
21211
|
+
fill: external_exports.enum(CANVAS_FILLS).default("blur"),
|
|
21212
|
+
fill_colour: external_exports.string().regex(HEX_COLOUR, "A colour like #1a1a1a").optional(),
|
|
21213
|
+
speed: external_exports.number().refine((v) => CANVAS_SPEEDS.includes(v), { message: `speed is one of ${CANVAS_SPEEDS.join(", ")}` }).default(1),
|
|
21214
|
+
cut: external_exports.enum(CANVAS_CUT_STYLES).default("hard"),
|
|
21215
|
+
crossfade: external_exports.number().min(CANVAS_CROSSFADE.min).max(CANVAS_CROSSFADE.max).default(CANVAS_CROSSFADE.default),
|
|
21216
|
+
camera: external_exports.enum(CANVAS_CAMERAS).default("still"),
|
|
21217
|
+
fade: external_exports.boolean().default(false),
|
|
21218
|
+
framing: external_exports.object({ x: external_exports.number().min(-1).max(1).default(0), y: external_exports.number().min(-1).max(1).default(0), zoom: external_exports.number().min(CANVAS_ZOOM.min).max(CANVAS_ZOOM.max).default(1) }).strict().default({ x: 0, y: 0, zoom: 1 }),
|
|
21219
|
+
rotate: external_exports.union(CANVAS_ROTATIONS.map((v) => external_exports.literal(v))).default(0),
|
|
21220
|
+
steady: external_exports.boolean().default(false)
|
|
21221
|
+
}).strict().refine((v) => v.fill !== "colour" || v.fill_colour, { message: "A colour fill needs fill_colour", path: ["fill_colour"] }),
|
|
21222
|
+
// The song's cover, moving.
|
|
21223
|
+
external_exports.object({ kind: external_exports.literal("cover"), motion: external_exports.enum(CANVAS_STILL_MOTIONS).default("push") }).strict(),
|
|
21224
|
+
// A visualizer (GET /options canvas.visuals: calm and medium) over the cover's own colours, blurred. Omitted: one picked for the song.
|
|
21225
|
+
external_exports.object({ kind: external_exports.literal("visualizer"), preset: CanvasVisualKeySchema.optional() }).strict(),
|
|
21226
|
+
// One call, no editor: a picture generated for this Canvas (it also lands in the workspace's AI folder), from the song or the
|
|
21227
|
+
// cover's world, with the artist or a cast character, as a video made to loop or a still (video null). model: the video model it is
|
|
21228
|
+
// made with (GET /options video_models.canvas, one of its ids); omitted, the Canvas default. video: standard or high before models
|
|
21229
|
+
// were named (high: the dearest offered), kept for older callers; any non-null value means a video.
|
|
21230
|
+
external_exports.object({
|
|
21231
|
+
kind: external_exports.literal("generate"),
|
|
21232
|
+
prompt: external_exports.string().trim().min(3).max(500).optional(),
|
|
21233
|
+
from: external_exports.enum(GENERATE_FROM).default("song"),
|
|
21234
|
+
with: external_exports.union([external_exports.enum(["none", "artist"]), KitItemIdSchema]).default("none"),
|
|
21235
|
+
video: external_exports.enum(CANVAS_GENERATE_VIDEO).nullable().default("standard"),
|
|
21236
|
+
model: external_exports.string().trim().min(1).max(160).optional(),
|
|
21237
|
+
/** How it moves and feels, as Generate's Style. */
|
|
21238
|
+
style: external_exports.enum(GENERATE_STYLES).default("calm")
|
|
21239
|
+
}).strict().refine((v) => !(v.model && v.video === null), { message: "A model makes a video: leave video unset, or drop model for a still", path: ["model"] })
|
|
21240
|
+
]);
|
|
21241
|
+
var CanvasLightSchema = external_exports.object({ preset: CanvasVisualKeySchema }).strict();
|
|
21242
|
+
var CanvasRequestShape = external_exports.object({
|
|
20723
21243
|
type: external_exports.literal("canvas"),
|
|
20724
21244
|
...common,
|
|
20725
|
-
|
|
20726
|
-
|
|
20727
|
-
|
|
20728
|
-
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
20735
|
-
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
20739
|
-
if (value.
|
|
20740
|
-
ctx.addIssue({ code: "custom", path: ["
|
|
20741
|
-
if (value.
|
|
20742
|
-
ctx.addIssue({ code: "custom", path: ["performer"], message: "A performer goes with an AI image or AI video Canvas that may show someone (feature_artist auto or always)" });
|
|
20743
|
-
if (value.stock_id && CANVAS_SOURCES[value.source].source !== "stock")
|
|
20744
|
-
ctx.addIssue({ code: "custom", path: ["stock_id"], message: "stock_id goes with the stock-photo and stock-video sources" });
|
|
21245
|
+
picture: CanvasPictureSchema.default({ kind: "clips", grade: "clean", grade_amount: GRADE_AMOUNT.default, fill: "blur", speed: 1, cut: "hard", crossfade: CANVAS_CROSSFADE.default, camera: "still", fade: false, framing: { x: 0, y: 0, zoom: 1 }, rotate: 0, steady: false }),
|
|
21246
|
+
loop: external_exports.enum(CANVAS_LOOPS).default("drift"),
|
|
21247
|
+
seconds: SecondsSchema.default(CANVAS_MAX_SECONDS),
|
|
21248
|
+
/** The clips, as the editor planned and previewed them (times from the loop's start); or the seed they are drawn with. */
|
|
21249
|
+
edit: EditRequestSchema.optional(),
|
|
21250
|
+
light: CanvasLightSchema.nullable().default(null),
|
|
21251
|
+
atmosphere: external_exports.enum(OVERLAYS).default("none"),
|
|
21252
|
+
/** Effects over the whole loop (GET /options effects), up to three, each with a strength; they repeat with the loop, no seam. */
|
|
21253
|
+
effects: EffectsSchema.default([])
|
|
21254
|
+
}).strict();
|
|
21255
|
+
var CANVAS_LEGACY_SUNSET = "2027-02-18";
|
|
21256
|
+
var CanvasRequestSchema = CanvasRequestShape.superRefine((value, ctx) => {
|
|
21257
|
+
if (value.edit?.clips && value.variations > 1) ctx.addIssue({ code: "custom", path: ["edit", "clips"], message: "An edit with its clips listed makes one Canvas" });
|
|
21258
|
+
if (value.edit && value.picture.kind !== "clips") ctx.addIssue({ code: "custom", path: ["edit"], message: "edit goes with a clips picture" });
|
|
21259
|
+
if (value.loop !== "drift" && value.picture.kind !== "clips" && !(value.picture.kind === "generate" && value.picture.video && value.loop === "rebound"))
|
|
21260
|
+
ctx.addIssue({ code: "custom", path: ["loop"], message: "rebound and cuts go with a clips picture (rebound also with a generated video)" });
|
|
21261
|
+
if (value.variations > 1 && value.picture.kind !== "clips") ctx.addIssue({ code: "custom", path: ["variations"], message: "variations go with a clips picture (each one draws other clips)" });
|
|
20745
21262
|
});
|
|
20746
21263
|
var MUSIC_VIDEO_CATEGORY_IDS = [
|
|
20747
21264
|
"performance",
|
|
@@ -20818,24 +21335,24 @@ var MUSIC_VIDEO_QUALITIES = {
|
|
|
20818
21335
|
var PERSON_SLOTS = 2;
|
|
20819
21336
|
var shotRoom = (model, people = 1) => Math.max(0, model.shot.references - Math.min(people, model.shot.people) * PERSON_SLOTS);
|
|
20820
21337
|
function kindsFor(model) {
|
|
20821
|
-
return MUSIC_VIDEO_CATEGORY_IDS.filter((
|
|
20822
|
-
const needs = MUSIC_VIDEO_CATEGORIES[
|
|
21338
|
+
return MUSIC_VIDEO_CATEGORY_IDS.filter((id3) => {
|
|
21339
|
+
const needs = MUSIC_VIDEO_CATEGORIES[id3].needs;
|
|
20823
21340
|
if (!needs) return true;
|
|
20824
21341
|
return (!needs.sings || model.performances.includes("sings")) && (!needs.plays || model.performances.includes("plays")) && (!needs.onScreen || model.onScreen.includes(needs.onScreen)) && (!needs.ability || model.abilities.includes(needs.ability)) && (!needs.keyframes || model.keyframes.start && model.keyframes.end);
|
|
20825
21342
|
});
|
|
20826
21343
|
}
|
|
20827
|
-
var looksFor = (model) => MUSIC_VIDEO_STYLE_IDS.filter((
|
|
20828
|
-
const needs = MUSIC_VIDEO_STYLES[
|
|
21344
|
+
var looksFor = (model) => MUSIC_VIDEO_STYLE_IDS.filter((id3) => {
|
|
21345
|
+
const needs = MUSIC_VIDEO_STYLES[id3].needs;
|
|
20829
21346
|
return !needs || model.abilities.includes(needs.ability);
|
|
20830
21347
|
});
|
|
20831
21348
|
var withCatalog = (model) => ({ ...model, categories: kindsFor(model), styles: looksFor(model) });
|
|
20832
21349
|
var MUSIC_VIDEO_MODEL_IDS = ["one-take", "seedance-2-0", "seedance-2-0-fast", "seedance-2-0-mini", "seedance-2-5"];
|
|
20833
21350
|
var MUSIC_VIDEO_LENGTH_BOUNDS = { min: 8, max: 1800 };
|
|
20834
21351
|
var DEFAULT_MUSIC_VIDEO_MODEL = "one-take";
|
|
20835
|
-
function seedance(label,
|
|
21352
|
+
function seedance(label, id3, qualities) {
|
|
20836
21353
|
return {
|
|
20837
21354
|
label,
|
|
20838
|
-
description: MUSIC_VIDEO_MODEL_GUIDES[
|
|
21355
|
+
description: MUSIC_VIDEO_MODEL_GUIDES[id3].bestFor,
|
|
20839
21356
|
qualities,
|
|
20840
21357
|
defaultQuality: "720p",
|
|
20841
21358
|
formats: ["9:16", "16:9", "1:1"],
|
|
@@ -20867,7 +21384,6 @@ var MUSIC_VIDEO_MODELS = {
|
|
|
20867
21384
|
"seedance-2-5": { ...seedance("Seedance 2.5", "seedance-2-5", ["480p", "720p", "1080p"]) }
|
|
20868
21385
|
};
|
|
20869
21386
|
var MusicVideoPlanIdSchema = external_exports.string().regex(/^plan_[0-9a-f-]{36}$/, "A music video plan id (plan_\u2026)");
|
|
20870
|
-
var LookbookIdSchema = external_exports.string().regex(/^lookbook_[0-9a-f-]{36}$/, "A lookbook id (lookbook_\u2026)");
|
|
20871
21387
|
var CastingIdSchema = external_exports.string().regex(/^casting_[0-9a-f-]{36}$/, "A casting id (casting_\u2026)");
|
|
20872
21388
|
var MusicVideoLookIdSchema = external_exports.string().regex(/^mvlook_[0-9a-f-]{36}$/, "A music video Look id (mvlook_\u2026)");
|
|
20873
21389
|
var MusicVideoCastSchema = external_exports.object({ outfit_kit: external_exports.string().regex(/^[a-z0-9-]{1,40}$/, "A kit outfit\u2019s handle").optional() }).strict();
|
|
@@ -20936,8 +21452,6 @@ var musicVideoBrief = {
|
|
|
20936
21452
|
// Who else may be on screen: only the people given (exact), or the director may cast more (director; omitted: director).
|
|
20937
21453
|
cast_mode: external_exports.enum(MUSIC_VIDEO_CAST_MODES).optional(),
|
|
20938
21454
|
scenes: MusicVideoScenesSchema.default({ mode: "invent" }),
|
|
20939
|
-
// The lookbook whose kept pieces the video uses, like the kit pieces the direction mentions.
|
|
20940
|
-
lookbook_id: LookbookIdSchema.optional(),
|
|
20941
21455
|
// How the shots meet: cuts (between lines, like an edit; no pictures), or continuous takes, where the director carries a
|
|
20942
21456
|
// shot on into the next through one picture drawn for the join (priced per picture).
|
|
20943
21457
|
takes: external_exports.enum(MUSIC_VIDEO_TAKES).default("cuts"),
|
|
@@ -20972,10 +21486,14 @@ var fitsModel = (value, ctx) => {
|
|
|
20972
21486
|
var MusicVideoPlanRequestSchema = external_exports.object({
|
|
20973
21487
|
song_id: common.song_id,
|
|
20974
21488
|
...musicVideoBrief,
|
|
20975
|
-
|
|
21489
|
+
// Required where a shot list is written (POST /music-video-plans); the brief alone is read without it elsewhere.
|
|
21490
|
+
credits: external_exports.number().int().min(0).max(1e5).optional(),
|
|
21491
|
+
revise: external_exports.object({ plan_id: MusicVideoPlanIdSchema, note: external_exports.string().trim().min(1).max(1e3) }).strict().optional(),
|
|
21492
|
+
// false: answer at once (202) with the shot list being written, read shot by shot at GET /music-video-plan-writes/{id} until it
|
|
21493
|
+
// is ready (its plan_id); true (default): wait for the shot list, a minute or more.
|
|
21494
|
+
wait: external_exports.boolean().optional()
|
|
20976
21495
|
}).strict().superRefine(fitsModel);
|
|
20977
|
-
var {
|
|
20978
|
-
var MusicVideoCastingRequestSchema = external_exports.object({ song_id: common.song_id, ...castingBrief }).strict().superRefine(fitsModel);
|
|
21496
|
+
var MusicVideoCastingRequestSchema = external_exports.object({ song_id: common.song_id, ...musicVideoBrief }).strict().superRefine(fitsModel);
|
|
20979
21497
|
var MusicVideoRequestSchema = external_exports.object({
|
|
20980
21498
|
type: external_exports.literal("music-video"),
|
|
20981
21499
|
...common,
|
|
@@ -20988,9 +21506,6 @@ var MusicVideoRequestSchema = external_exports.object({
|
|
|
20988
21506
|
// Omitted: the model's default quality (MUSIC_VIDEO_MODELS[].defaultQuality), filled in below, so a parsed request always has one:
|
|
20989
21507
|
// optional when parsed, typed as always there.
|
|
20990
21508
|
quality: external_exports.enum(MUSIC_VIDEO_QUALITY_IDS).optional(),
|
|
20991
|
-
// Ordered without a plan: the director first designs the shoot (the outfits, places and props the brief leaves open) and draws
|
|
20992
|
-
// each as a picture the shots are given, priced per picture drawn (the quote counts the most it may draw).
|
|
20993
|
-
design_shoot: external_exports.boolean().default(false),
|
|
20994
21509
|
// An outro after the video's last shot (on its last frame, held, the song playing on): the release card (cover, title, artist, streaming badges, as display shows them),
|
|
20995
21510
|
// designed by the director, or a saved lyric video Look's card as it is (look_id). Omitted: none. Free with the video; not part
|
|
20996
21511
|
// of the plan.
|
|
@@ -21003,8 +21518,7 @@ var MusicVideoRequestSchema = external_exports.object({
|
|
|
21003
21518
|
}).strict().overwrite((value) => ({ ...value, quality: value.quality ?? MUSIC_VIDEO_MODELS[value.model].defaultQuality })).superRefine(fitsModel).superRefine((value, ctx) => {
|
|
21004
21519
|
const model = MUSIC_VIDEO_MODELS[value.model];
|
|
21005
21520
|
if (value.quality && !model.qualities.includes(value.quality)) ctx.addIssue({ code: "custom", path: ["quality"], message: `${model.label} is made in ${model.qualities.map((q) => MUSIC_VIDEO_QUALITIES[q].label).join(", ")}` });
|
|
21006
|
-
if (value.
|
|
21007
|
-
if (value.refinish && (value.plan_id || value.design_shoot || value.variations > 1)) ctx.addIssue({ code: "custom", path: ["refinish"], message: "Finishing a video again takes only its song_id, its outro and one variation" });
|
|
21521
|
+
if (value.refinish && (value.plan_id || value.variations > 1)) ctx.addIssue({ code: "custom", path: ["refinish"], message: "Finishing a video again takes only its song_id, its outro and one variation" });
|
|
21008
21522
|
if (value.casting_id && (value.plan_id || value.refinish)) ctx.addIssue({ code: "custom", path: ["casting_id"], message: "A plan already has its people: leave casting_id out" });
|
|
21009
21523
|
if (value.casting_id && castModeOf(value) === "exact") ctx.addIssue({ code: "custom", path: ["casting_id"], message: "Only who you picked is in it (cast_mode exact): leave casting_id out" });
|
|
21010
21524
|
if (value.test && !value.plan_id) ctx.addIssue({ code: "custom", path: ["test"], message: "A test is made from a plan: send its plan_id" });
|
|
@@ -21015,6 +21529,215 @@ var VideoRequestSchema = external_exports.discriminatedUnion("type", [LyricVideo
|
|
|
21015
21529
|
// ../api-spec/src/song-brief.ts
|
|
21016
21530
|
var SONG_BRIEF_LIMITS = { theme: 400, tone: 80, story: 1200, setting: 300, section: 60, feeling: 240, sections: 40 };
|
|
21017
21531
|
|
|
21532
|
+
// ../api-spec/src/artist-pages.ts
|
|
21533
|
+
var seg = (re) => (url2) => url2.pathname.match(re)?.[1] ?? null;
|
|
21534
|
+
var PLATFORMS = [
|
|
21535
|
+
{ id: "apple_music", name: "Apple Music", category: "listen", icon: "applemusic", color: "#FA243C", hosts: ["music.apple.com", "itunes.apple.com"], externalId: seg(/\/artist\/(?:[^/]+\/)?(\d+)/) },
|
|
21536
|
+
{ id: "spotify", name: "Spotify", category: "listen", icon: "spotify", color: "#1DB954", hosts: ["open.spotify.com"], externalId: seg(/\/artist\/([A-Za-z0-9]{22})/) },
|
|
21537
|
+
{ id: "youtube_music", name: "YouTube Music", category: "listen", icon: "youtubemusic", color: "#FF0000", hosts: ["music.youtube.com"], externalId: seg(/\/channel\/([\w-]+)/) },
|
|
21538
|
+
{ id: "amazon_music", name: "Amazon Music", category: "listen", icon: null, color: "#25D1DA", hosts: ["music.amazon.com", "music.amazon.ca", "music.amazon.co.uk", "music.amazon.de", "music.amazon.fr"], externalId: seg(/\/artists\/([A-Z0-9]+)/) },
|
|
21539
|
+
{ id: "deezer", name: "Deezer", category: "listen", icon: "deezer", color: "#A238FF", hosts: ["deezer.com"], externalId: seg(/\/artist\/(\d+)/) },
|
|
21540
|
+
{ id: "tidal", name: "TIDAL", category: "listen", icon: "tidal", color: "#000000", hosts: ["tidal.com", "listen.tidal.com"], externalId: seg(/\/artist\/(\d+)/) },
|
|
21541
|
+
{ id: "soundcloud", name: "SoundCloud", category: "listen", icon: "soundcloud", color: "#FF5500", hosts: ["soundcloud.com"], externalId: seg(/^\/([\w-]+)\/?$/) },
|
|
21542
|
+
{ id: "bandcamp", name: "Bandcamp", category: "store", icon: "bandcamp", color: "#408294", hosts: ["bandcamp.com"] },
|
|
21543
|
+
{ id: "audiomack", name: "Audiomack", category: "listen", icon: "audiomack", color: "#FFA200", hosts: ["audiomack.com"], externalId: seg(/^\/([\w-]+)\/?$/) },
|
|
21544
|
+
{ id: "shazam", name: "Shazam", category: "listen", icon: "shazam", color: "#0088FF", hosts: ["shazam.com"], externalId: seg(/\/artist\/(?:[^/]+\/)?(\d+)/) },
|
|
21545
|
+
{ id: "pandora", name: "Pandora", category: "listen", icon: "pandora", color: "#224099", hosts: ["pandora.com"] },
|
|
21546
|
+
{ id: "qobuz", name: "Qobuz", category: "listen", icon: null, color: "#000000", hosts: ["qobuz.com"] },
|
|
21547
|
+
{ id: "anghami", name: "Anghami", category: "listen", icon: null, color: "#A800FF", hosts: ["anghami.com"] },
|
|
21548
|
+
{ id: "boomplay", name: "Boomplay", category: "listen", icon: null, color: "#0A6AF2", hosts: ["boomplay.com", "boomplaymusic.com"] },
|
|
21549
|
+
{ id: "napster", name: "Napster", category: "listen", icon: null, color: "#000000", hosts: ["napster.com"] },
|
|
21550
|
+
{ id: "iheartradio", name: "iHeartRadio", category: "listen", icon: null, color: "#C6002B", hosts: ["iheart.com"] },
|
|
21551
|
+
{ id: "youtube", name: "YouTube", category: "video", icon: "youtube", color: "#FF0000", hosts: ["youtube.com", "youtu.be"], externalId: seg(/\/(?:channel\/([\w-]+)|@[\w.-]+)/) },
|
|
21552
|
+
{ id: "twitch", name: "Twitch", category: "video", icon: "twitch", color: "#9146FF", hosts: ["twitch.tv"], externalId: seg(/^\/([\w]+)\/?$/) },
|
|
21553
|
+
{ id: "vimeo", name: "Vimeo", category: "video", icon: null, color: "#1AB7EA", hosts: ["vimeo.com"] },
|
|
21554
|
+
{ id: "instagram", name: "Instagram", category: "social", icon: "instagram", color: "#E4405F", hosts: ["instagram.com"], externalId: seg(/^\/([\w.]+)\/?$/) },
|
|
21555
|
+
{ id: "tiktok", name: "TikTok", category: "social", icon: "tiktok", color: "#000000", hosts: ["tiktok.com"], externalId: seg(/^\/@([\w.]+)\/?$/) },
|
|
21556
|
+
{ id: "twitter", name: "X", category: "social", icon: "x", color: "#000000", hosts: ["twitter.com", "x.com"], externalId: seg(/^\/(\w+)\/?$/) },
|
|
21557
|
+
{ id: "facebook", name: "Facebook", category: "social", icon: "facebook", color: "#0866FF", hosts: ["facebook.com", "fb.com"] },
|
|
21558
|
+
{ id: "threads", name: "Threads", category: "social", icon: "threads", color: "#000000", hosts: ["threads.net", "threads.com"], externalId: seg(/^\/@([\w.]+)\/?$/) },
|
|
21559
|
+
{ id: "bluesky", name: "Bluesky", category: "social", icon: "bluesky", color: "#1185FE", hosts: ["bsky.app"], externalId: seg(/^\/profile\/([\w.:-]+)/) },
|
|
21560
|
+
{ id: "snapchat", name: "Snapchat", category: "social", icon: null, color: "#FFFC00", hosts: ["snapchat.com"] },
|
|
21561
|
+
{ id: "discord", name: "Discord", category: "social", icon: null, color: "#5865F2", hosts: ["discord.gg", "discord.com"] },
|
|
21562
|
+
{ id: "patreon", name: "Patreon", category: "store", icon: "patreon", color: "#000000", hosts: ["patreon.com"] },
|
|
21563
|
+
{ id: "bandsintown", name: "Bandsintown", category: "live", icon: "bandsintown", color: "#00CEC8", hosts: ["bandsintown.com"], externalId: seg(/\/a\/(\d+)/) },
|
|
21564
|
+
{ id: "songkick", name: "Songkick", category: "live", icon: "songkick", color: "#F80046", hosts: ["songkick.com"], externalId: seg(/\/artists\/(\d+)/) },
|
|
21565
|
+
{ id: "ticketmaster", name: "Ticketmaster", category: "live", icon: "ticketmaster", color: "#026CDF", hosts: ["ticketmaster.com", "ticketmaster.ca", "ticketmaster.co.uk"], externalId: seg(/\/artist\/(\d+)/) },
|
|
21566
|
+
{ id: "dice", name: "DICE", category: "live", icon: null, color: "#000000", hosts: ["dice.fm"] },
|
|
21567
|
+
{ id: "setlistfm", name: "Setlist.fm", category: "live", icon: null, color: "#000000", hosts: ["setlist.fm"] },
|
|
21568
|
+
{ id: "genius", name: "Genius", category: "info", icon: "genius", color: "#000000", hosts: ["genius.com"] },
|
|
21569
|
+
{ id: "discogs", name: "Discogs", category: "info", icon: "discogs", color: "#333333", hosts: ["discogs.com"], externalId: seg(/\/artist\/(\d+)/) },
|
|
21570
|
+
{ id: "musicbrainz", name: "MusicBrainz", category: "info", icon: "musicbrainz", color: "#BA478F", hosts: ["musicbrainz.org"], externalId: seg(/\/artist\/([0-9a-f-]{36})/) },
|
|
21571
|
+
{ id: "wikipedia", name: "Wikipedia", category: "info", icon: "wikipedia", color: "#000000", hosts: ["wikipedia.org"] },
|
|
21572
|
+
{ id: "wikidata", name: "Wikidata", category: "info", icon: null, color: "#006699", hosts: ["wikidata.org"] },
|
|
21573
|
+
{ id: "lastfm", name: "Last.fm", category: "info", icon: "lastdotfm", color: "#D51007", hosts: ["last.fm"] },
|
|
21574
|
+
{ id: "allmusic", name: "AllMusic", category: "info", icon: null, color: "#000000", hosts: ["allmusic.com"] },
|
|
21575
|
+
{ id: "linktree", name: "Linktree", category: "other", icon: "linktree", color: "#43E55E", hosts: ["linktr.ee"] },
|
|
21576
|
+
{ id: "website", name: "Website", category: "other", icon: null, color: "#3A3A44", hosts: [] }
|
|
21577
|
+
];
|
|
21578
|
+
var BY_ID = new Map(PLATFORMS.map((p) => [p.id, p]));
|
|
21579
|
+
var LINK_URL_MAX = 2e3;
|
|
21580
|
+
var LINK_SOURCES = ["apple", "discovered", "manual"];
|
|
21581
|
+
var ArtistLinkSchema = external_exports.object({
|
|
21582
|
+
id: external_exports.string(),
|
|
21583
|
+
platform: external_exports.string().describe("The service: apple_music, spotify, instagram, tiktok, youtube, website, \u2026 (a new service keeps its own id)"),
|
|
21584
|
+
platform_name: external_exports.string(),
|
|
21585
|
+
category: external_exports.enum(["listen", "social", "video", "live", "info", "store", "other"]),
|
|
21586
|
+
url: external_exports.string(),
|
|
21587
|
+
external_id: external_exports.string().nullable(),
|
|
21588
|
+
title: external_exports.string().nullable().describe("A title the artist gave it, shown instead of the service name"),
|
|
21589
|
+
source: external_exports.enum(LINK_SOURCES).describe("apple: from the Apple Music connection; discovered: found automatically; manual: added by the artist"),
|
|
21590
|
+
confirmed: external_exports.boolean().describe("The artist said this profile is theirs"),
|
|
21591
|
+
state: external_exports.enum(["shown", "hidden"]).describe("hidden: kept but not on the page"),
|
|
21592
|
+
position: external_exports.number().int(),
|
|
21593
|
+
discovered_at: external_exports.string().nullable(),
|
|
21594
|
+
updated_at: external_exports.string()
|
|
21595
|
+
});
|
|
21596
|
+
var DISCOVERY_STATES = ["idle", "running", "found", "not_found", "failed"];
|
|
21597
|
+
var ArtistDiscoverySchema = external_exports.object({
|
|
21598
|
+
state: external_exports.enum(DISCOVERY_STATES).describe("running: looking now; found: profiles were found (new ones unconfirmed); not_found: none yet (looked again weekly); failed: try again"),
|
|
21599
|
+
at: external_exports.string().nullable(),
|
|
21600
|
+
new_links: external_exports.number().int().describe("Found links not confirmed yet")
|
|
21601
|
+
});
|
|
21602
|
+
var RESERVED_WORDS = [
|
|
21603
|
+
"admin",
|
|
21604
|
+
"administrator",
|
|
21605
|
+
"official",
|
|
21606
|
+
"support",
|
|
21607
|
+
"help",
|
|
21608
|
+
"api",
|
|
21609
|
+
"app",
|
|
21610
|
+
"settings",
|
|
21611
|
+
"staff",
|
|
21612
|
+
"kinetune",
|
|
21613
|
+
"kine",
|
|
21614
|
+
"lyrc",
|
|
21615
|
+
"null",
|
|
21616
|
+
"undefined",
|
|
21617
|
+
"me",
|
|
21618
|
+
"you",
|
|
21619
|
+
"www",
|
|
21620
|
+
"mail",
|
|
21621
|
+
"email",
|
|
21622
|
+
"root",
|
|
21623
|
+
"system",
|
|
21624
|
+
"about",
|
|
21625
|
+
"account",
|
|
21626
|
+
"login",
|
|
21627
|
+
"logout",
|
|
21628
|
+
"signin",
|
|
21629
|
+
"signup",
|
|
21630
|
+
"register",
|
|
21631
|
+
"search",
|
|
21632
|
+
"explore",
|
|
21633
|
+
"home",
|
|
21634
|
+
"new",
|
|
21635
|
+
"edit",
|
|
21636
|
+
"page",
|
|
21637
|
+
"pages",
|
|
21638
|
+
"artist",
|
|
21639
|
+
"artists",
|
|
21640
|
+
"creator",
|
|
21641
|
+
"creators",
|
|
21642
|
+
"music",
|
|
21643
|
+
"video",
|
|
21644
|
+
"videos",
|
|
21645
|
+
"song",
|
|
21646
|
+
"songs",
|
|
21647
|
+
"press",
|
|
21648
|
+
"status",
|
|
21649
|
+
"security",
|
|
21650
|
+
"legal",
|
|
21651
|
+
"billing",
|
|
21652
|
+
"pay",
|
|
21653
|
+
"checkout",
|
|
21654
|
+
"terms",
|
|
21655
|
+
"privacy",
|
|
21656
|
+
"refunds",
|
|
21657
|
+
"pricing",
|
|
21658
|
+
"developers",
|
|
21659
|
+
"docs",
|
|
21660
|
+
"blog",
|
|
21661
|
+
"showcase",
|
|
21662
|
+
"looks",
|
|
21663
|
+
"styles",
|
|
21664
|
+
"tools",
|
|
21665
|
+
"guides",
|
|
21666
|
+
"compare",
|
|
21667
|
+
"for",
|
|
21668
|
+
"v",
|
|
21669
|
+
"og",
|
|
21670
|
+
"go",
|
|
21671
|
+
"sitemap",
|
|
21672
|
+
"robots",
|
|
21673
|
+
"favicon",
|
|
21674
|
+
"static",
|
|
21675
|
+
"assets",
|
|
21676
|
+
"media",
|
|
21677
|
+
"contact",
|
|
21678
|
+
"welcome",
|
|
21679
|
+
"oauth",
|
|
21680
|
+
"mcp",
|
|
21681
|
+
"embed",
|
|
21682
|
+
"org",
|
|
21683
|
+
"demos",
|
|
21684
|
+
"samples",
|
|
21685
|
+
"marketing",
|
|
21686
|
+
"webhooks",
|
|
21687
|
+
"whats-new",
|
|
21688
|
+
"whatsnew",
|
|
21689
|
+
"apple",
|
|
21690
|
+
"applemusic"
|
|
21691
|
+
];
|
|
21692
|
+
var RESERVED_HANDLES = /* @__PURE__ */ new Set([...RESERVED_WORDS, ...PLATFORMS.flatMap((p) => [p.id, p.id.replace(/_/g, ""), p.name.toLowerCase().replace(/[^a-z0-9]/g, "")])]);
|
|
21693
|
+
var PAGE_THEMES = ["stage", "paper", "neon", "studio"];
|
|
21694
|
+
var PAGE_FONTS = ["anton", "fraunces", "unbounded", "bebas", "archivo", "playfair"];
|
|
21695
|
+
var PAGE_BUTTONS = ["solid", "outline", "pill"];
|
|
21696
|
+
var PAGE_LAYOUTS = ["column", "split"];
|
|
21697
|
+
var hex5 = external_exports.string().regex(/^#[0-9a-f]{6}$/i, "A colour like #f0a845");
|
|
21698
|
+
var id = external_exports.string().min(1).max(80);
|
|
21699
|
+
var sectionBase = { id: external_exports.string().min(1).max(40), visible: external_exports.boolean().default(true), title: external_exports.string().trim().max(60).nullable().default(null) };
|
|
21700
|
+
var PageSectionSchema = external_exports.discriminatedUnion("type", [
|
|
21701
|
+
external_exports.object({
|
|
21702
|
+
...sectionBase,
|
|
21703
|
+
type: external_exports.literal("out_now"),
|
|
21704
|
+
release: external_exports.enum(["newest", "pinned"]).default("newest"),
|
|
21705
|
+
pinned_release_id: id.nullable().default(null).describe("A catalog release id (collection) when release is pinned"),
|
|
21706
|
+
plays: external_exports.enum(["video", "cover"]).default("video"),
|
|
21707
|
+
video_id: id.nullable().default(null).describe("The Kinetune video that plays; null picks the newest finished one of that song"),
|
|
21708
|
+
buttons: external_exports.array(external_exports.string().max(40)).max(6).default(["spotify", "apple_music", "youtube_music"]).describe("Platform ids of the listen buttons under it")
|
|
21709
|
+
}),
|
|
21710
|
+
external_exports.object({ ...sectionBase, type: external_exports.literal("listen"), platforms: external_exports.array(external_exports.string().max(40)).max(20).default([]).describe("Platform ids in order; empty shows every shown listen link"), style: external_exports.enum(["buttons", "icons"]).default("buttons") }),
|
|
21711
|
+
external_exports.object({ ...sectionBase, type: external_exports.literal("videos"), items: external_exports.array(external_exports.discriminatedUnion("kind", [
|
|
21712
|
+
external_exports.object({ kind: external_exports.literal("kinetune"), video_id: id }),
|
|
21713
|
+
external_exports.object({ kind: external_exports.literal("embed"), url: external_exports.string().max(LINK_URL_MAX) })
|
|
21714
|
+
])).max(24).default([]), layout: external_exports.enum(["row", "grid", "one"]).default("row") }),
|
|
21715
|
+
external_exports.object({ ...sectionBase, type: external_exports.literal("releases"), mode: external_exports.enum(["all", "picked"]).default("all"), picked: external_exports.array(id).max(60).default([]), hidden: external_exports.array(id).max(200).default([]), count: external_exports.union([external_exports.literal(4), external_exports.literal(8), external_exports.literal(0)]).default(8).describe("How many to show; 0 shows all") }),
|
|
21716
|
+
external_exports.object({ ...sectionBase, type: external_exports.literal("links"), links: external_exports.array(id).max(30).default([]).describe("Ids of the artist's links, in order"), big: id.nullable().default(null).describe("The one link drawn big") }),
|
|
21717
|
+
external_exports.object({ ...sectionBase, type: external_exports.literal("about"), text: external_exports.string().max(4e3).default("") }),
|
|
21718
|
+
external_exports.object({ ...sectionBase, type: external_exports.literal("looks") })
|
|
21719
|
+
]);
|
|
21720
|
+
var PageDocSchema = external_exports.object({
|
|
21721
|
+
theme: external_exports.enum(PAGE_THEMES).default("stage"),
|
|
21722
|
+
accent: hex5.nullable().default(null).describe("null uses the theme's accent"),
|
|
21723
|
+
background: external_exports.discriminatedUnion("kind", [external_exports.object({ kind: external_exports.literal("color"), color: hex5 }), external_exports.object({ kind: external_exports.literal("photo") })]).nullable().default(null),
|
|
21724
|
+
font: external_exports.enum(PAGE_FONTS).nullable().default(null),
|
|
21725
|
+
buttons: external_exports.enum(PAGE_BUTTONS).nullable().default(null),
|
|
21726
|
+
layout: external_exports.enum(PAGE_LAYOUTS).nullable().default(null),
|
|
21727
|
+
name: external_exports.string().trim().min(1).max(80).nullable().default(null).describe("The name shown; null uses the artist's name"),
|
|
21728
|
+
photo: external_exports.discriminatedUnion("source", [external_exports.object({ source: external_exports.literal("picture") }), external_exports.object({ source: external_exports.literal("upload"), key: external_exports.string().max(300) }), external_exports.object({ source: external_exports.literal("video"), video_id: id, seconds: external_exports.number().min(0).max(3600) })]).default({ source: "picture" }),
|
|
21729
|
+
genres: external_exports.array(external_exports.string().trim().min(1).max(40)).max(5).default([]),
|
|
21730
|
+
place: external_exports.string().trim().max(60).default(""),
|
|
21731
|
+
social: external_exports.array(id).max(8).default([]).describe("Ids of the links shown as icons under the name; empty shows the shown social links"),
|
|
21732
|
+
sections: external_exports.array(PageSectionSchema).max(20),
|
|
21733
|
+
tracking: external_exports.object({
|
|
21734
|
+
ga4: external_exports.string().regex(/^G-[A-Z0-9]{4,12}$/, "A Google Analytics 4 measurement ID like G-ABC123XYZ").nullable().default(null),
|
|
21735
|
+
meta_pixel: external_exports.string().regex(/^\d{8,20}$/, "A Meta Pixel ID (digits)").nullable().default(null),
|
|
21736
|
+
tiktok_pixel: external_exports.string().regex(/^[A-Z0-9]{10,30}$/, "A TikTok Pixel ID").nullable().default(null)
|
|
21737
|
+
}).default({ ga4: null, meta_pixel: null, tiktok_pixel: null }).describe("The artist's own tracking IDs (plans only); pixels load after the fan accepts")
|
|
21738
|
+
});
|
|
21739
|
+
var PageDocPatchSchema = external_exports.object(Object.fromEntries(Object.entries(PageDocSchema.shape).map(([key, schema]) => [key, (schema instanceof external_exports.ZodDefault ? schema.unwrap() : schema).optional()])));
|
|
21740
|
+
|
|
21018
21741
|
// ../api-spec/src/versioning.ts
|
|
21019
21742
|
var API_VERSION = 1;
|
|
21020
21743
|
var deprecationNote = (d) => `Deprecated since ${d.since}${d.use ? `: use ${d.use} instead` : ""}. It stops working on ${d.sunset}.`;
|
|
@@ -21039,11 +21762,12 @@ var SCOPE_DESCRIPTIONS = {
|
|
|
21039
21762
|
"organizations:read": "See the workspaces you belong to",
|
|
21040
21763
|
"organizations:write": "Create workspaces you own, and rename or switch the type of one you own or run"
|
|
21041
21764
|
};
|
|
21042
|
-
var
|
|
21043
|
-
var
|
|
21044
|
-
var
|
|
21045
|
-
var
|
|
21046
|
-
var
|
|
21765
|
+
var ARTIST_LINK_KINDS = ["apple_music", "spotify", "youtube", "instagram", "tiktok", "website"];
|
|
21766
|
+
var id2 = (what) => external_exports.string().min(1).max(120).describe(`The ${what} id`);
|
|
21767
|
+
var songId = id2("song");
|
|
21768
|
+
var artistId = id2("artist");
|
|
21769
|
+
var lookId = id2("Look");
|
|
21770
|
+
var videoId = id2("video");
|
|
21047
21771
|
var IDEA_ID = external_exports.string().regex(/^idea_[A-Za-z0-9]{1,40}$/).describe("The idea id (idea_\u2026)");
|
|
21048
21772
|
var search = (q) => ({
|
|
21049
21773
|
q: external_exports.string().max(100).optional().describe(q),
|
|
@@ -21090,28 +21814,39 @@ var lyricInput = external_exports.object({
|
|
|
21090
21814
|
song_id: songId,
|
|
21091
21815
|
callback_url: CALLBACK,
|
|
21092
21816
|
metadata: METADATA,
|
|
21093
|
-
look: lyricShape.look.describe(`{"
|
|
21817
|
+
look: lyricShape.look.describe(`Which Look and what to change. {"id":"look_\u2026"} uses a saved Look (list_looks); left out, Kinetune picks one for the song by rules (get_song_draft shows which, with its picture). Change any part: "lyric_style" (get_options lyric_styles), "behind" (true: big words go behind the subject of the clips, a person or a solid figure, which stands in front of them; only the lyric styles get_options marks behind: true take it, others keep their words in front; the behind style has it on, false turns it off), "visual" (get_options visualizers), and "background": {"kind":"clips","sources":{"moods":["city"],"folders":["folder_\u2026"]},"density":"even","transitions":{"style":"auto","amount":0.5,"feel":0.5},"grade":"clean","grade_amount":1,"effects":[{"id":"film-grain","amount":0.5}],"shape":"both","fill":"blur","speed":1} for short clips cut on the beat (moods: get_options clip_moods, the Looks collection among them; folders: list_clip_folders; looks: Look ids whose own picture plays as clips, as a Look made before clips does; transitions, grades and densities: get_options; grade_amount: the grade's strength 0\u20131, default 1; effects: up to three from get_options effects, each with an amount 0\u20131, drawn over the clips across the song), or {"kind":"visualizer"} for a visual that fills the frame. Left out, the Look keeps its own picture. No AI designs anything: a lyric video costs its setup and render only`),
|
|
21094
21818
|
aspect_ratios: lyricShape.aspect_ratios.describe('Formats to render, each its own file: "9:16" (vertical), "16:9" (wide), "1:1" (square)'),
|
|
21095
|
-
display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes.
|
|
21819
|
+
display: lyricShape.display.describe("Which elements show (title, artist, cover, lyrics, badges, headline) and their sizes. title_card: when a kinetic lyric style shows its big title card instead of the small label: ends (before the first line and after the last; the default over clips), breaks (also every break of 3 s or more; the default otherwise) or label (never). censor: true shows swear words with their vowels as * (the song is untouched). A Look whose picture shows an artist needs cover false"),
|
|
21096
21820
|
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)"),
|
|
21097
|
-
variations: lyricShape.variations.describe("1\u20134
|
|
21821
|
+
variations: lyricShape.variations.describe("1\u20134 videos with a clips picture, each drawing other clips (the next seed); one otherwise"),
|
|
21822
|
+
edit: lyricShape.edit.describe(`A clips picture's cut: {"seed":7} draws the clips (same seed, same video; another seed, other clips on the same cuts), or "clips" lists them exactly as a studio previewed them (list_clips and @kinetune/composition planEdit: {clip_id, at, in, duration, transition}, each cut where you want it, each clip from where you want it to start); a clip may also set its own transition's transition_seconds (0.07\u20131), direction (left, right, up, down: whip, stack, wipe, slip, slice) and intensity (0\u20131, 0.5 as designed: hits, zooms, flashes, warps); one variation only`)
|
|
21098
21823
|
});
|
|
21824
|
+
var legacy = (schema, use) => schema.optional().meta({ deprecated: true, "x-sunset": CANVAS_LEGACY_SUNSET }).describe(`Deprecated: use ${use}. Stops working on ${CANVAS_LEGACY_SUNSET}.`);
|
|
21825
|
+
var CANVAS_LEGACY_INPUT = {
|
|
21826
|
+
source: legacy(external_exports.enum(["ai-video", "ai-image", "stock-photo", "stock-video"]), "picture (generate for ai-video and ai-image, clips for stock)"),
|
|
21827
|
+
quality: legacy(external_exports.enum(["standard", "high"]), "picture.video"),
|
|
21828
|
+
resolution: legacy(external_exports.enum(["720p", "1080p"]), "nothing (a Canvas is always 1080 \xD7 1920)"),
|
|
21829
|
+
style: legacy(external_exports.enum(["cinematic", "dreamy", "abstract", "surreal", "retro", "minimal", "dark", "vibrant", "nature", "urban"]), "picture.prompt, or a clips picture's grade"),
|
|
21830
|
+
direction: legacy(external_exports.string().max(2e3), "picture.prompt"),
|
|
21831
|
+
inspiration: legacy(external_exports.enum(["cover", "song"]), "picture.from"),
|
|
21832
|
+
feature_artist: legacy(external_exports.enum(["auto", "always", "never"]), "picture.with"),
|
|
21833
|
+
performer: legacy(KitItemIdSchema, "picture.with"),
|
|
21834
|
+
stock_id: legacy(StockIdSchema, "picture.stock_ids")
|
|
21835
|
+
};
|
|
21099
21836
|
var canvasInput = external_exports.object({
|
|
21100
21837
|
...canvasShape,
|
|
21101
21838
|
song_id: songId,
|
|
21102
21839
|
callback_url: CALLBACK,
|
|
21103
21840
|
metadata: METADATA,
|
|
21104
|
-
|
|
21105
|
-
|
|
21106
|
-
|
|
21107
|
-
|
|
21108
|
-
|
|
21109
|
-
|
|
21110
|
-
|
|
21111
|
-
|
|
21112
|
-
|
|
21113
|
-
seconds: canvasShape.seconds.describe("Canvas length in whole seconds, 5\u20138 (default 8). Spotify loops it, so no part of the song is chosen"),
|
|
21114
|
-
variations: canvasShape.variations.describe("1\u20134 different Canvases")
|
|
21841
|
+
picture: canvasShape.picture.describe(`What the Canvas shows. {"kind":"clips"} (the default): clips from library moods and the workspace's folders, "sources":{"moods":["euphoria"],"folders":["folder_\u2026"]} (left out: the song's own moods, by rules: get_song_draft with type canvas shows them), "stock_ids" (up to 3 Pexels videos from search_stock, brought into the Pexels folder first), "grade" (get_options grades) and "grade_amount" (its strength, 0\u20131; default 1), "fill" (blur, cover, bars or colour for a clip of the other shape; colour takes "fill_colour":"#rrggbb"), "speed" (0.25\u20132, get_options canvas.speeds), "cut" (hard or smooth, for a cuts loop), "crossfade" (drift: 0.25\u20132 seconds of the footage after the loop blended over its start; default 0.75), "camera" (still, push or pull: a slow push in or pull out over each cut, or in and back out over a rebound; a drift stays still), "fade" (cuts: fade through black at the loop point), "framing" ({"x":-1\u20261,"y":-1\u20261,"zoom":1\u20263}: where the picture sits and how far it is zoomed; x 1 shows its left edge, y 1 its top), "rotate" (0, 90, 180 or 270 degrees, clockwise) and "steady" (true: each clip plays a stabilised copy, made once; get_clip_steady shows it). {"kind":"cover","motion":"push"|"drift"|"still"}: the song's cover, moving. {"kind":"visualizer","preset":"sphericalShader/ring-bowl"}: a calm or medium visual, 3D or Liquid (get_options canvas.visuals). {"kind":"generate","prompt":"\u2026","from":"song"|"cover","with":"none"|"artist"|"kit_\u2026","video":"standard"|"high"|null,"model":"\u2026","style":"calm"|"cinematic"|"dreamy"|"intense"}: a picture generated for this Canvas in the same order (from the song's brief or the cover's world, with the artist or a cast character; a video made to loop by a model from get_options video_models with loops, or a still when video is null; style shapes how it looks and moves, calm by default), priced in the quote and kept in the AI folder. No AI decides anything else`),
|
|
21842
|
+
loop: canvasShape.loop.describe("How it loops: drift (default: one clip that flows into itself with no seam), rebound (one clip forward, then backward) or cuts (two or three clips, calm cuts, never flashing). rebound and cuts go with a clips picture (rebound also with a generated video)"),
|
|
21843
|
+
seconds: canvasShape.seconds.describe("3\u20138 seconds in tenths (default 8). Spotify plays it on a loop of its own, out of time with the song, so no part of the song is chosen"),
|
|
21844
|
+
edit: canvasShape.edit.describe(`A clips picture's clips: {"seed":7} draws them, or "clips" lists them as the editor previewed them ({clip_id, at, in, duration, transition}, times from the loop's start; "in" is where in its clip each one starts, so a drift or rebound plays the part of the clip you chose: get_clip_loop finds where it loops best); one variation only`),
|
|
21845
|
+
light: canvasShape.light.describe(`Light over the picture: {"preset":"polar-curves/halo-ring"}, a visual from get_options canvas.visuals with over_picture true (3D in the cover's colours, Liquid in its own); null for none`),
|
|
21846
|
+
atmosphere: canvasShape.atmosphere.describe("Something drifting over the picture: none (default), snow, leaves, petals, embers, sparkles, rain, confetti, hearts or dust (get_options canvas.atmospheres)"),
|
|
21847
|
+
effects: canvasShape.effects.describe('Effects over the whole loop, any picture: up to three of get_options effects (light-leak, god-rays, glow, vignette, film-burn, film-grain, old-footage, shake, mirror, blur, vhs, glitch, rgb-split), each once, as [{"id":"light-leak","amount":0.6}] with an amount 0\u20131 (default 0.6). They repeat with the loop, no seam. Default none'),
|
|
21848
|
+
variations: canvasShape.variations.describe("1\u20134 different Canvases with a clips picture (each draws other clips)"),
|
|
21849
|
+
...CANVAS_LEGACY_INPUT
|
|
21115
21850
|
});
|
|
21116
21851
|
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. Pin a change to a moment with a sentence that says on "<words sung>" (on every "\u2026" for each time they are sung) or at m:ss (the song's time), for example: On "Drop it" cut to @rooftop-club. / @grandma appears on "She said yes". / At 1:05 the lights go out. A shot starts exactly there (the plan has one more shot when the usual cut runs over it), set in the first kit place the sentence names, with the characters it names appearing in it (and not in the shot before); shots[].cue shows it. Words the section doesn't sing, or two moments under 2 seconds apart, answer 400`;
|
|
21117
21852
|
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)";
|
|
@@ -21119,7 +21854,6 @@ var LIPSYNC = '"auto" (default: the director has the artist sing the important l
|
|
|
21119
21854
|
var KIT_ONLY = "Only what the kit's pictures show: no place, prop, person or lighting change beyond them (every shot in one of the kit's places, lit as in its picture; only the props and the people the brief names). Omitted: on when the brief mentions a kit piece by @handle (an outfit, a place or a prop), off otherwise; send false to let the director add to the kit";
|
|
21120
21855
|
var CAST_MODE = `Who else may be on screen besides the performer and people: "director" (default when left out: the director may cast up to 3 more, each drawn as a character sheet only after the user says yes: cast_music_video) or "exact" (only who was picked; the song's other people are carried by the scene, an empty chair or a coat left out, never shown). Nobody appears on screen without a character sheet; with nobody cast, crowds and dancers are faceless. A cast-story video with "exact" needs people`;
|
|
21121
21856
|
var CASTING_ID = `Ordered without a plan: a casting (cast_music_video) the user said yes to in full. Its people still proposed are drawn inside the order (the quote's "New cast" line, at the character sheet price each; only those drawn are charged), kept in the song artist's kit as AI-made and added to people. Not with plan_id or cast_mode exact`;
|
|
21122
|
-
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";
|
|
21123
21857
|
var musicVideoInput = external_exports.object({
|
|
21124
21858
|
...musicShape,
|
|
21125
21859
|
song_id: songId.describe("The song; its artist performs the video and needs their character (list_characters; start_character makes one), unless performer names another character"),
|
|
@@ -21133,7 +21867,6 @@ var musicVideoInput = external_exports.object({
|
|
|
21133
21867
|
takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet with a cut between the song's lines, like an edit) or "continuous" (the director may carry a shot on into the next through a picture drawn of the moment they meet, priced per picture; the quote before a plan counts every join, the plan's quote only the ones it draws)`),
|
|
21134
21868
|
trim: musicShape.trim.describe("Perform only this section of the song (15 seconds to 10 minutes); omitted, the whole song (15 seconds to 10 minutes long). The price follows its length. Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
|
|
21135
21869
|
direction: musicShape.direction.describe(DIRECTION),
|
|
21136
|
-
lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
|
|
21137
21870
|
look_id: musicShape.look_id.describe(LOOK_ID),
|
|
21138
21871
|
lipsync: musicShape.lipsync.describe(LIPSYNC),
|
|
21139
21872
|
kit_only: musicShape.kit_only.describe(KIT_ONLY),
|
|
@@ -21147,8 +21880,7 @@ var musicVideoInput = external_exports.object({
|
|
|
21147
21880
|
variations: musicShape.variations.describe("1\u20134 different music videos"),
|
|
21148
21881
|
outro: musicShape.outro.describe("Optional: end on a release card after the last shot, the song playing on under it (the delivered video is up to 5 seconds longer; the director designs it for the video, or look_id: a lyric video Look from list_looks whose card is used as it is). display: title, artist, cover, badges (true/false) and optional cover_scale, text_scale, artist_scale, spacing_scale. Free with the video"),
|
|
21149
21882
|
refinish: musicShape.refinish.describe("Finish a delivered music video again with another outro, or none (send song_id, refinish.video_id and outro or not; one variation): no shot is made again (its kept shots are joined again under the song), only setup and delivery are charged. Needs the video's revisable_until ahead"),
|
|
21150
|
-
test: musicShape.test.describe("With plan_id: test the plan before the whole video. Only its test shots are made (the first chorus, else the sung section with the most lead words; whole shots, about 20 seconds at most), at 480p whatever quality is sent, with the plan's seeds and pictures, for a fraction of the price. The quote and get_video say which shots and seconds (test). It is an ordinary video marked as a test: no outro, one variation, never revised. Then order the whole video from the same plan_id without test")
|
|
21151
|
-
design_shoot: musicShape.design_shoot.describe("Without a plan: the director first designs the shoot (the outfits, places and props the brief leaves open) and draws each as a picture every shot is given. The quote counts the most pictures it may draw; only those drawn are charged")
|
|
21883
|
+
test: musicShape.test.describe("With plan_id: test the plan before the whole video. Only its test shots are made (the first chorus, else the sung section with the most lead words; whole shots, about 20 seconds at most), at 480p whatever quality is sent, with the plan's seeds and pictures, for a fraction of the price. The quote and get_video say which shots and seconds (test). It is an ordinary video marked as a test: no outro, one variation, never revised. Then order the whole video from the same plan_id without test")
|
|
21152
21884
|
});
|
|
21153
21885
|
var musicVideoPlanInput = external_exports.object({
|
|
21154
21886
|
...MusicVideoPlanRequestSchema.shape,
|
|
@@ -21161,7 +21893,6 @@ var musicVideoPlanInput = external_exports.object({
|
|
|
21161
21893
|
takes: musicShape.takes.describe(`How the shots meet: "cuts" (default: shots meet with a cut between the song's lines, like an edit) or "continuous" (the director may carry a shot on into the next through a picture drawn of the moment they meet, priced per picture; the quote before a plan counts every join, the plan's quote only the ones it draws)`),
|
|
21162
21894
|
trim: musicShape.trim.describe("Only this section of the song (15 seconds to 10 minutes); omitted, the whole song (15 seconds to 10 minutes long). Best: a part from get_song_analysis (parts[]: its start and end never cut a word)"),
|
|
21163
21895
|
direction: musicShape.direction.describe(DIRECTION),
|
|
21164
|
-
lookbook_id: musicShape.lookbook_id.describe(LOOKBOOK_ID),
|
|
21165
21896
|
look_id: musicShape.look_id.describe(LOOK_ID),
|
|
21166
21897
|
lipsync: musicShape.lipsync.describe(LIPSYNC),
|
|
21167
21898
|
kit_only: musicShape.kit_only.describe(KIT_ONLY),
|
|
@@ -21169,7 +21900,9 @@ var musicVideoPlanInput = external_exports.object({
|
|
|
21169
21900
|
performer: musicShape.performer.describe(PERFORMER),
|
|
21170
21901
|
cast: musicShape.cast.describe(CAST_DESCRIPTION),
|
|
21171
21902
|
cast_mode: musicShape.cast_mode.describe(CAST_MODE),
|
|
21172
|
-
|
|
21903
|
+
credits: external_exports.number().int().min(0).max(1e5).describe("The price the user agreed to: list_music_video_drafts price.credits for this song (a rewrite costs the same). A different price answers 409 with the current one (price); without enough credits, 402. Held while it is written, charged once it is saved, nothing when it fails"),
|
|
21904
|
+
revise: MusicVideoPlanRequestSchema.shape.revise.describe(`Rewrite an earlier plan of this song: {"plan_id":"plan_\u2026","note":"what to change"} (the next draft). It keeps that plan's brief (model, format, style, direction, people, section\u2026): send song_id and revise alone, or with only the brief fields to change`),
|
|
21905
|
+
wait: MusicVideoPlanRequestSchema.shape.wait.describe("true (default): answer with the shot list once written (a minute or more). false: answer at once (202) with the shot list being written (id, status writing); read it with get_music_video_plan_write every second or two, its shots arriving as they are written, until status is ready (plan_id) or failed (error). Asking again for the same brief while it is written returns the same one")
|
|
21173
21906
|
});
|
|
21174
21907
|
var MusicVideoPlanSchema = external_exports.looseObject({
|
|
21175
21908
|
id: external_exports.string(),
|
|
@@ -21177,7 +21910,8 @@ var MusicVideoPlanSchema = external_exports.looseObject({
|
|
|
21177
21910
|
draft: external_exports.number().int().describe("1 for the first plan, n+1 for a rewrite"),
|
|
21178
21911
|
revision_of: external_exports.string().nullable(),
|
|
21179
21912
|
note: external_exports.string().nullable(),
|
|
21180
|
-
brief: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What it was planned from: model, category, style, aspect_ratio, trim, direction, on_screen, performer, cast"),
|
|
21913
|
+
brief: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What it was planned from: model, category, style, aspect_ratio, trim, direction, on_screen, performer, cast. brief.model is the model it is made with"),
|
|
21914
|
+
written_for: external_exports.string().nullable().optional().describe("The model the director wrote it for: brief.model, or another one when the shot list was moved to brief.model (switch_music_video_model)"),
|
|
21181
21915
|
title: external_exports.string().nullable().describe("The film's name, as the director titled it"),
|
|
21182
21916
|
concept: external_exports.string(),
|
|
21183
21917
|
style: external_exports.string(),
|
|
@@ -21188,7 +21922,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
|
|
|
21188
21922
|
character: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }),
|
|
21189
21923
|
name: external_exports.string(),
|
|
21190
21924
|
wardrobe: external_exports.string(),
|
|
21191
|
-
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 (
|
|
21925
|
+
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 (picked in the brief); null: the director dresses them")
|
|
21192
21926
|
})).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"),
|
|
21193
21927
|
on_screen: external_exports.enum(["artist", "cast", "none"]).optional().describe("Who is on screen: the artist, a cast or no one"),
|
|
21194
21928
|
revision: external_exports.object({ video_id: external_exports.string(), shots: external_exports.array(external_exports.number().int()), asked: external_exports.array(external_exports.number().int()).optional().describe("The shots the artist asked to change, each rewritten from its note (shots adds those carried straight on from them)") }).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"),
|
|
@@ -21197,10 +21931,18 @@ var MusicVideoPlanSchema = external_exports.looseObject({
|
|
|
21197
21931
|
index: external_exports.number().int(),
|
|
21198
21932
|
description: external_exports.string(),
|
|
21199
21933
|
kit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }).nullable(),
|
|
21200
|
-
photo: external_exports.object({ stock_id: external_exports.string(), thumbnail_url: external_exports.string(), credit: external_exports.record(external_exports.string(), external_exports.unknown()).nullable() }).nullable()
|
|
21201
|
-
|
|
21934
|
+
photo: external_exports.object({ stock_id: external_exports.string(), thumbnail_url: external_exports.string(), credit: external_exports.record(external_exports.string(), external_exports.unknown()).nullable() }).nullable(),
|
|
21935
|
+
drawn: external_exports.boolean().optional().describe("A place drawn as a picture (no kit piece or photo): a place the director wrote, or an angle. list_music_video_pictures shows its picture once drawn"),
|
|
21936
|
+
angle: external_exports.object({
|
|
21937
|
+
of: external_exports.number().int().describe("The place it is an angle of (places[].index)"),
|
|
21938
|
+
from: external_exports.number().int().nullable().describe("The angle beside it that it is drawn from too, or null"),
|
|
21939
|
+
kind: external_exports.enum(KIT_ANGLES).nullable().describe("The kind of angle. New values may be added"),
|
|
21940
|
+
camera: external_exports.string().describe("Where the camera stands, in the director's words")
|
|
21941
|
+
}).nullable().optional().describe("An angle of another place: the same set from another camera position, which shots cut to for coverage; null for a place")
|
|
21942
|
+
})).describe("The places it is set in: kit pieces (kit), stock photos the director found (photo), places drawn as pictures (drawn), and the angles of each (angle). Empty: every place is imagined (plans made before drawn places)"),
|
|
21202
21943
|
outfits: external_exports.array(external_exports.object({ index: external_exports.number().int(), kit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }), description: external_exports.string() })).describe("The kit outfits it uses"),
|
|
21203
21944
|
props: external_exports.array(external_exports.object({ index: external_exports.number().int(), kit: external_exports.object({ id: external_exports.string(), name: external_exports.string(), handle: external_exports.string() }), description: external_exports.string() })).describe("The kit props it uses"),
|
|
21945
|
+
designed_props: external_exports.array(external_exports.object({ index: external_exports.number().int().describe("Numbered after the kit props"), name: external_exports.string(), description: external_exports.string() })).optional().describe("The props the director designed (no kit piece), numbered after props: each drawn from its words as a picture of the object alone (list_music_video_pictures)"),
|
|
21204
21946
|
joins: external_exports.number().int().describe("In a continuous take, the joins drawn as pictures (priced per picture); 0 otherwise"),
|
|
21205
21947
|
shots: external_exports.array(external_exports.object({
|
|
21206
21948
|
index: external_exports.number().int(),
|
|
@@ -21211,7 +21953,7 @@ var MusicVideoPlanSchema = external_exports.looseObject({
|
|
|
21211
21953
|
summary: external_exports.string().describe("What we see"),
|
|
21212
21954
|
places: external_exports.array(external_exports.number().int()).describe("The places it happens in (numbers into places)"),
|
|
21213
21955
|
outfit: external_exports.number().int().nullable().describe("The kit outfit worn (a number into outfits), or null: the world's wardrobe (world.wardrobe)"),
|
|
21214
|
-
props: external_exports.array(external_exports.number().int()).describe("The
|
|
21956
|
+
props: external_exports.array(external_exports.number().int()).describe("The props seen (numbers into props, then designed_props)"),
|
|
21215
21957
|
people: external_exports.array(external_exports.number().int()).optional().describe("The other characters in the shot, as they stand (numbers into people)"),
|
|
21216
21958
|
continues: external_exports.boolean().describe("It carries straight on from the shot before (a continuous take), with no cut"),
|
|
21217
21959
|
performance: external_exports.enum(MUSIC_VIDEO_PERFORMANCES).describe("sings: the artist sings it on camera (lip-synced); plays: they play an instrument to it; over: the song plays over the shot and nobody sings on camera. New values may be added"),
|
|
@@ -21278,7 +22020,7 @@ var VideoSchema = external_exports.looseObject({
|
|
|
21278
22020
|
request: external_exports.record(external_exports.string(), external_exports.unknown()).describe("What the video was made from, with your metadata"),
|
|
21279
22021
|
look_id: external_exports.string().nullable(),
|
|
21280
22022
|
look: external_exports.record(external_exports.string(), external_exports.unknown()).nullable(),
|
|
21281
|
-
canvas: external_exports.record(external_exports.string(), external_exports.unknown()).nullable().optional().describe("A Canvas:
|
|
22023
|
+
canvas: external_exports.record(external_exports.string(), external_exports.unknown()).nullable().optional().describe("A Canvas: what it was made from (picture, loop, seconds) and, for stock, the credit to show"),
|
|
21282
22024
|
music_video: external_exports.object({
|
|
21283
22025
|
title: external_exports.string().nullable(),
|
|
21284
22026
|
concept: external_exports.string().describe("The idea, in a sentence or three"),
|
|
@@ -21323,7 +22065,7 @@ var OPERATIONS = [
|
|
|
21323
22065
|
group: "account",
|
|
21324
22066
|
title: "Get the account",
|
|
21325
22067
|
summary: "Who you are signed in as, the organization (workspace) and its credit balance",
|
|
21326
|
-
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), storage (used_bytes against limit_bytes: 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
|
|
22068
|
+
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), storage (used_bytes against limit_bytes: an upload or new video that does not fit answers 402 storage_full, and deleting videos or archiving songs frees space at once), limits.clip_sources (how many clip sources, library moods and your folders together, one clips video may draw from on this plan; more answers 402 plan_required), 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 stands on the Free plan (signed in as them, never with an API key, where it is null, as it is with a plan): songs_per_month new songs, videos_per_month lyric videos and canvases_per_month Canvases a month, starting again at resets_at (UTC months). state is this month's free song: available (upload it now, with create_song), unverified (they confirm their email first), used (its song_id and title) or taken (it went to another workspace or account). video and canvas, once the workspace has a free song: each kind's made and left this month, available while left is above 0. A free video is a lyric video of one of the workspace's free songs in one aspect ratio, of at most video_max_seconds of it (a trim: a part of a longer song), or a Canvas of it from clips, the cover or a visualizer (not a generated picture), quoted and created as usual: it holds no credits; anything else answers 402 plan_required. Monthly credits reset every month; top-ups never expire. On the organization, " + IMAGE_FALLBACK + " Check it before creating anything.",
|
|
21327
22069
|
method: "GET",
|
|
21328
22070
|
path: "/api/v1/account",
|
|
21329
22071
|
scopes: ["videos:read", "music:read", "library:read"],
|
|
@@ -21339,7 +22081,7 @@ var OPERATIONS = [
|
|
|
21339
22081
|
group: "account",
|
|
21340
22082
|
title: "Send a file from your computer",
|
|
21341
22083
|
summary: "A signed upload URL for a local file, and the file_url to use it",
|
|
21342
|
-
description: `For an agent that has a file on the person's computer but can only pass URLs (the CLI sends files itself): returns upload_url, where you PUT the file's bytes within an hour with the headers given, e.g. curl -X PUT -H "content-type: image/png" --upload-file desk.png "<upload_url>"; then pass file_url in any *_url field within a day: create_song (audio_url, cover_art_url), add_kit_piece (file_url), start_character (photo_urls),
|
|
22084
|
+
description: `For an agent that has a file on the person's computer but can only pass URLs (the CLI sends files itself): returns upload_url, where you PUT the file's bytes within an hour with the headers given, e.g. curl -X PUT -H "content-type: image/png" --upload-file desk.png "<upload_url>"; then pass file_url in any *_url field within a day: create_song (audio_url, cover_art_url), add_kit_piece (file_url), start_character (photo_urls), import_clips (file_url, into a clip folder), set_artist_image (image_url). That field checks the file like an upload (format, size, rights) and keeps its own copy; this one is deleted after a day. size_bytes must be the file's exact size (up to ${UPLOAD_MAX_BYTES / 1024 / 1024} MB), content_type its type. Up to 100 files a day; without a plan, only a free song's audio and cover.`,
|
|
21343
22085
|
method: "POST",
|
|
21344
22086
|
path: "/api/v1/uploads",
|
|
21345
22087
|
scopes: ["music:write", "videos:write"],
|
|
@@ -21360,8 +22102,8 @@ var OPERATIONS = [
|
|
|
21360
22102
|
id: "options.get",
|
|
21361
22103
|
group: "account",
|
|
21362
22104
|
title: "List the options",
|
|
21363
|
-
summary: "Video types,
|
|
21364
|
-
description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). credits.cover: what a round of covers costs now, counts by how many (1 to 4), and redraw, one cover redrawn with a note (make_cover, redraw_cover). credits.examples: what a lyric video of a song_seconds song costs now in one 9:16 format,
|
|
22105
|
+
summary: "Video types, lyric styles, clip moods, formats and the current credit prices",
|
|
22106
|
+
description: "Everything a request can choose from, with the credit table (plans and credit_packs: the plan catalog the app shows, each plan's monthly credits, limits, features and shelf, its prices in cents and the app's highlighted one, and each pack's credits and price; reference only, nothing is bought through the API; music_video.categories: each kind, with demos, the real music videos of it Kinetune chose: one per model (model: its id) and a fallback (model null) for a model without its own; each with sound in video_url, a few silent seconds from its poster moment hover_seconds in hover_url, its poster in still_url, made_with: the model and quality it was made with, and story: its brief, the director's idea and its shots; signed for about a week. Show the one for the model in hand, else the fallback; demo is the fallback alone, as before. music_video.styles: each visual style (how the video is rendered), with its one picture: image_url (512 px square WebP) and thumbnail_url (160 px); its demo and demos are deprecated (still given until 2027-05-05: use image_url). music_video.models[].guide: what each model is best for (best_for), its strengths and weaknesses, the kinds it suits, its sharpest resolution (max_quality), public benchmark scores (board, entry, score, source, url, date) and page_url, the page comparing them; music_video.categories[].recommended_model: the offered model to suggest for that kind when the person hasn't named one. The catalog is set by Kinetune's admins and can change; a subscription keeps what it was bought with. credits.character_sheet: what drawing one character sheet costs now (draw_character_sheet). credits.cover: what a round of covers costs now, counts by how many (1 to 4), and redraw, one cover redrawn with a note (make_cover, redraw_cover). credits.examples: what a lyric video of a song_seconds song costs now in one 9:16 format, as lyric_video, and clips: the same for the parts of a song people post (seconds: 15, 30, 60). clip_moods: Stock, the clip collections Kinetune keeps for everyone (free): each with id, name, group (kinetune or stock) and group_name, the heading people see (Feelings: moods, mostly tall; Places & textures: real footage), clips (how many are ready), tall and wide (how many of each shape) and poster_url; browse_clip_mood looks inside one. Use it to pick a category or source and to explain prices.",
|
|
21365
22107
|
method: "GET",
|
|
21366
22108
|
path: "/api/v1/options",
|
|
21367
22109
|
scopes: ["videos:read", "music:read", "library:read"],
|
|
@@ -21454,7 +22196,7 @@ var OPERATIONS = [
|
|
|
21454
22196
|
method: "POST",
|
|
21455
22197
|
path: "/api/v1/artists",
|
|
21456
22198
|
scopes: ["music:write", "videos:write"],
|
|
21457
|
-
input: external_exports.object({ name: external_exports.string().trim().min(1).max(200).describe("The artist name") }),
|
|
22199
|
+
input: external_exports.object({ name: external_exports.string().trim().min(1).max(200).describe("The artist name"), catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).optional(), catalog_confirmed: external_exports.boolean().optional().describe("Set true after the user confirms they manage the selected artist") }),
|
|
21458
22200
|
readOnly: false,
|
|
21459
22201
|
destructive: false,
|
|
21460
22202
|
idempotent: false,
|
|
@@ -21481,18 +22223,60 @@ var OPERATIONS = [
|
|
|
21481
22223
|
{
|
|
21482
22224
|
id: "artists.update",
|
|
21483
22225
|
group: "artists",
|
|
21484
|
-
title: "
|
|
21485
|
-
summary: "
|
|
21486
|
-
description: "",
|
|
22226
|
+
title: "Change an artist",
|
|
22227
|
+
summary: "Rename an artist, or set their catalog profile, Spotify id and links",
|
|
22228
|
+
description: "Send only what changes. catalog_artist_id: their profile in the music catalog (find_artist_in_catalog; link_artist does the same), null unlinks. spotify_artist_id: their Spotify artist id or open.spotify.com link. links: their pages, shown on their artist page: apple_music, spotify, youtube, instagram, tiktok (https links to that site) and website (any https link); a link set to null is removed, the others are kept.",
|
|
21487
22229
|
method: "PATCH",
|
|
21488
22230
|
path: "/api/v1/artists/{artist_id}",
|
|
21489
22231
|
scopes: ["music:write", "videos:write"],
|
|
21490
|
-
input: external_exports.object({
|
|
22232
|
+
input: external_exports.object({
|
|
22233
|
+
artist_id: artistId,
|
|
22234
|
+
name: external_exports.string().trim().min(1).max(200).optional().describe("The new name"),
|
|
22235
|
+
catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).nullable().optional().describe("Their catalog profile id (find_artist_in_catalog), or null to unlink"),
|
|
22236
|
+
catalog_confirmed: external_exports.boolean().optional().describe("Required and true when connecting a catalog profile"),
|
|
22237
|
+
spotify_artist_id: external_exports.string().max(200).nullable().optional().describe("Their Spotify artist id or open.spotify.com/artist link, or null"),
|
|
22238
|
+
links: external_exports.record(external_exports.enum(ARTIST_LINK_KINDS), external_exports.string().max(500).nullable()).optional().describe("Their pages by site: apple_music, spotify, youtube, instagram, tiktok, website (https); null removes one")
|
|
22239
|
+
}),
|
|
21491
22240
|
readOnly: false,
|
|
21492
22241
|
destructive: false,
|
|
21493
22242
|
idempotent: true,
|
|
21494
22243
|
cli: ["artists", "rename"],
|
|
21495
|
-
mcp: "rename_artist"
|
|
22244
|
+
mcp: "rename_artist",
|
|
22245
|
+
example: { artist_id: "artist_\u2026", links: { instagram: "https://www.instagram.com/novalane" } }
|
|
22246
|
+
},
|
|
22247
|
+
{
|
|
22248
|
+
id: "artists.find_in_catalog",
|
|
22249
|
+
group: "artists",
|
|
22250
|
+
title: "Find an artist\u2019s released songs",
|
|
22251
|
+
summary: "Search the music catalog for an artist by name, to link their released songs",
|
|
22252
|
+
description: "The public music catalog (Apple Music\u2019s; no account or login): each match with its id, name, song_count, newest_release and up to five covers of their releases (picture_url, covers), so the user can tell which profile is theirs. Search by the full name they release under (exact matches only), or pass their Apple Music artist link. Then link_artist with the id the user confirms. Only for the user\u2019s own music: they must own or have the rights to the songs they bring in.",
|
|
22253
|
+
method: "GET",
|
|
22254
|
+
path: "/api/v1/catalog/artists",
|
|
22255
|
+
scopes: ["music:read", "videos:read"],
|
|
22256
|
+
input: external_exports.object({ q: external_exports.string().trim().min(1).max(200).describe("The artist name, or their Apple Music artist link") }),
|
|
22257
|
+
readOnly: true,
|
|
22258
|
+
destructive: false,
|
|
22259
|
+
idempotent: true,
|
|
22260
|
+
cli: ["artists", "find"],
|
|
22261
|
+
mcp: "find_artist_in_catalog",
|
|
22262
|
+
example: { q: "Nina Kazora" }
|
|
22263
|
+
},
|
|
22264
|
+
{
|
|
22265
|
+
id: "artists.link",
|
|
22266
|
+
group: "artists",
|
|
22267
|
+
title: "Link an artist to their released songs",
|
|
22268
|
+
summary: "Set the artist\u2019s catalog profile, once: their released songs are then listed to import",
|
|
22269
|
+
description: "Available to Artist and Label workspaces. Send catalog_artist_id from find_artist_in_catalog with catalog_confirmed=true after the user confirms they manage the selected profile. The artist names must match exactly. Also sets their Apple Music link (links.apple_music) unless one is set. Linking again replaces it; unlink with update_artist catalog_artist_id null. Then list_released_songs and import_songs.",
|
|
22270
|
+
method: "POST",
|
|
22271
|
+
path: "/api/v1/artists/{artist_id}/catalog",
|
|
22272
|
+
scopes: ["music:write", "videos:write"],
|
|
22273
|
+
input: external_exports.object({ artist_id: artistId, catalog_artist_id: external_exports.string().regex(/^\d{1,15}$/).describe("Their catalog profile id (find_artist_in_catalog)"), catalog_confirmed: external_exports.boolean().optional().describe("Set true after the user confirms they manage the selected artist") }),
|
|
22274
|
+
readOnly: false,
|
|
22275
|
+
destructive: false,
|
|
22276
|
+
idempotent: true,
|
|
22277
|
+
cli: ["artists", "link"],
|
|
22278
|
+
mcp: "link_artist",
|
|
22279
|
+
example: { artist_id: "artist_\u2026", catalog_artist_id: "6803333408", catalog_confirmed: true }
|
|
21496
22280
|
},
|
|
21497
22281
|
{
|
|
21498
22282
|
id: "artists.archive",
|
|
@@ -21548,6 +22332,254 @@ var OPERATIONS = [
|
|
|
21548
22332
|
cli: ["artists", "image", "remove"],
|
|
21549
22333
|
mcp: "remove_artist_image"
|
|
21550
22334
|
},
|
|
22335
|
+
/* Artist pages and profiles (docs/features/08-artist-page.md) */
|
|
22336
|
+
{
|
|
22337
|
+
id: "artists.profiles.list",
|
|
22338
|
+
group: "artists",
|
|
22339
|
+
title: "List an artist\u2019s profiles",
|
|
22340
|
+
summary: "The artist\u2019s links on other services, with the automatic search\u2019s state",
|
|
22341
|
+
description: "Their profiles on music, social, video and ticket services (several per service allowed), in the order the page shows them. source: apple (from the Apple Music connection), discovered (found automatically; new ones have confirmed false until the user says they are theirs) or manual (added). state: shown or hidden. discovery.state: running, found, not_found (nothing found yet; looked again weekly), failed (try discover_artist_profiles again) or idle. Never trust a discovered profile the user has not confirmed: only confirmed ones (and the ones added by hand) are on the page. removed: the ones the user removed (searches never add them again); update_artist_profile state shown brings one back.",
|
|
22342
|
+
method: "GET",
|
|
22343
|
+
path: "/api/v1/artists/{artist_id}/profiles",
|
|
22344
|
+
scopes: ["music:read", "videos:read"],
|
|
22345
|
+
input: external_exports.object({ artist_id: artistId }),
|
|
22346
|
+
readOnly: true,
|
|
22347
|
+
destructive: false,
|
|
22348
|
+
idempotent: true,
|
|
22349
|
+
cli: ["artists", "profiles", "list"],
|
|
22350
|
+
mcp: "list_artist_profiles",
|
|
22351
|
+
output: { name: "ArtistProfiles", schema: external_exports.object({ profiles: external_exports.array(ArtistLinkSchema), removed: external_exports.array(ArtistLinkSchema), discovery: ArtistDiscoverySchema }) }
|
|
22352
|
+
},
|
|
22353
|
+
{
|
|
22354
|
+
id: "artists.profiles.confirm_all",
|
|
22355
|
+
group: "artists",
|
|
22356
|
+
title: "Add every found profile",
|
|
22357
|
+
summary: "Say every profile the automatic search found is the artist\u2019s",
|
|
22358
|
+
description: "Confirms every discovered profile still waiting (confirmed false, shown): they go on the page at once. Only when the user says all of them are theirs. Answers how many and the list.",
|
|
22359
|
+
method: "POST",
|
|
22360
|
+
path: "/api/v1/artists/{artist_id}/profiles/confirm",
|
|
22361
|
+
scopes: ["music:write", "videos:write"],
|
|
22362
|
+
input: external_exports.object({ artist_id: artistId }),
|
|
22363
|
+
readOnly: false,
|
|
22364
|
+
destructive: false,
|
|
22365
|
+
idempotent: true,
|
|
22366
|
+
cli: ["artists", "profiles", "confirm-all"],
|
|
22367
|
+
mcp: "confirm_all_artist_profiles"
|
|
22368
|
+
},
|
|
22369
|
+
{
|
|
22370
|
+
id: "artists.profiles.add",
|
|
22371
|
+
group: "artists",
|
|
22372
|
+
title: "Add a profile",
|
|
22373
|
+
summary: "Add one of the artist\u2019s links (any service; it is recognised from the address)",
|
|
22374
|
+
description: 'Any https link: the service is recognised from the address (platform overrides it; it must then be on that service\u2019s site). Added links are confirmed. title replaces the service name on the page (e.g. "Tour dates"). 409 when the same link is already there.',
|
|
22375
|
+
method: "POST",
|
|
22376
|
+
path: "/api/v1/artists/{artist_id}/profiles",
|
|
22377
|
+
scopes: ["music:write", "videos:write"],
|
|
22378
|
+
input: external_exports.object({ artist_id: artistId, url: external_exports.string().min(3).max(2e3).describe("The link (https)"), platform: external_exports.string().max(40).optional().describe("The service id when the address alone doesn\u2019t say it"), title: external_exports.string().max(80).optional().describe("A title shown instead of the service name") }),
|
|
22379
|
+
readOnly: false,
|
|
22380
|
+
destructive: false,
|
|
22381
|
+
idempotent: false,
|
|
22382
|
+
cli: ["artists", "profiles", "add"],
|
|
22383
|
+
mcp: "add_artist_profile",
|
|
22384
|
+
output: { name: "ArtistProfile", schema: ArtistLinkSchema },
|
|
22385
|
+
example: { artist_id: "artist_\u2026", url: "https://www.instagram.com/novalane" }
|
|
22386
|
+
},
|
|
22387
|
+
{
|
|
22388
|
+
id: "artists.profiles.reorder",
|
|
22389
|
+
group: "artists",
|
|
22390
|
+
title: "Order the profiles",
|
|
22391
|
+
summary: "Put the artist\u2019s profiles in a new order",
|
|
22392
|
+
description: "order: profile ids, first to last; profiles left out keep their place after them.",
|
|
22393
|
+
method: "PATCH",
|
|
22394
|
+
path: "/api/v1/artists/{artist_id}/profiles",
|
|
22395
|
+
scopes: ["music:write", "videos:write"],
|
|
22396
|
+
input: external_exports.object({ artist_id: artistId, order: external_exports.array(external_exports.string().max(60)).max(200).describe("Profile ids in order") }),
|
|
22397
|
+
readOnly: false,
|
|
22398
|
+
destructive: false,
|
|
22399
|
+
idempotent: true,
|
|
22400
|
+
cli: ["artists", "profiles", "order"],
|
|
22401
|
+
mcp: "reorder_artist_profiles"
|
|
22402
|
+
},
|
|
22403
|
+
{
|
|
22404
|
+
id: "artists.profiles.update",
|
|
22405
|
+
group: "artists",
|
|
22406
|
+
title: "Change a profile",
|
|
22407
|
+
summary: "Confirm, hide, show, retitle or correct one of the artist\u2019s profiles",
|
|
22408
|
+
description: "Send only what changes. confirmed true: the user says this found profile is theirs. state hidden keeps it off the page; state shown on a removed profile brings it back. A corrected url or a title marks it as the user\u2019s own: automatic searches leave it alone from then on.",
|
|
22409
|
+
method: "PATCH",
|
|
22410
|
+
path: "/api/v1/artists/{artist_id}/profiles/{profile_id}",
|
|
22411
|
+
scopes: ["music:write", "videos:write"],
|
|
22412
|
+
input: external_exports.object({ artist_id: artistId, profile_id: id2("profile"), url: external_exports.string().max(2e3).optional(), title: external_exports.string().max(80).nullable().optional(), state: external_exports.enum(["shown", "hidden"]).optional(), confirmed: external_exports.boolean().optional(), position: external_exports.number().int().min(0).optional() }),
|
|
22413
|
+
readOnly: false,
|
|
22414
|
+
destructive: false,
|
|
22415
|
+
idempotent: true,
|
|
22416
|
+
cli: ["artists", "profiles", "update"],
|
|
22417
|
+
mcp: "update_artist_profile",
|
|
22418
|
+
output: { name: "ArtistProfile", schema: ArtistLinkSchema }
|
|
22419
|
+
},
|
|
22420
|
+
{
|
|
22421
|
+
id: "artists.profiles.remove",
|
|
22422
|
+
group: "artists",
|
|
22423
|
+
title: "Remove a profile",
|
|
22424
|
+
summary: "Remove one of the artist\u2019s profiles for good",
|
|
22425
|
+
description: "It leaves the page, and automatic searches never add the same link again; it stays listed in removed, and update_artist_profile state shown brings it back. To keep it but not show it, update_artist_profile state hidden.",
|
|
22426
|
+
method: "DELETE",
|
|
22427
|
+
path: "/api/v1/artists/{artist_id}/profiles/{profile_id}",
|
|
22428
|
+
scopes: ["music:write", "videos:write"],
|
|
22429
|
+
input: external_exports.object({ artist_id: artistId, profile_id: id2("profile") }),
|
|
22430
|
+
readOnly: false,
|
|
22431
|
+
destructive: true,
|
|
22432
|
+
idempotent: true,
|
|
22433
|
+
cli: ["artists", "profiles", "remove"],
|
|
22434
|
+
mcp: "remove_artist_profile"
|
|
22435
|
+
},
|
|
22436
|
+
{
|
|
22437
|
+
id: "artists.profiles.discover",
|
|
22438
|
+
group: "artists",
|
|
22439
|
+
title: "Find the artist\u2019s profiles",
|
|
22440
|
+
summary: "Look for the artist\u2019s profiles on other services again, from their Apple Music connection",
|
|
22441
|
+
description: "Runs in the background (answers 202 with discovery.state running): a few seconds later list_artist_profiles shows what was found, new ones unconfirmed. Needs the Apple Music connection (link_artist) or a confirmed Spotify profile (409 not_connected otherwise). Profiles the user added, edited or removed are never changed. Connecting Apple Music starts one by itself.",
|
|
22442
|
+
method: "POST",
|
|
22443
|
+
path: "/api/v1/artists/{artist_id}/profiles/discover",
|
|
22444
|
+
scopes: ["music:write", "videos:write"],
|
|
22445
|
+
input: external_exports.object({ artist_id: artistId }),
|
|
22446
|
+
readOnly: false,
|
|
22447
|
+
destructive: false,
|
|
22448
|
+
idempotent: true,
|
|
22449
|
+
cli: ["artists", "profiles", "discover"],
|
|
22450
|
+
mcp: "discover_artist_profiles"
|
|
22451
|
+
},
|
|
22452
|
+
{
|
|
22453
|
+
id: "artists.page.get",
|
|
22454
|
+
group: "artists",
|
|
22455
|
+
title: "Get the artist page",
|
|
22456
|
+
summary: "The artist\u2019s page at kinetune.com/@handle: its address, status and draft",
|
|
22457
|
+
description: 'Available to Artist and Label workspaces. status: no_handle (claim one with claim_artist_handle), draft (never published), live, unpublished, in_review (a staff check before an artist with a large audience goes live) or offline (the workspace is a Creator one). has_changes: the draft differs from what fans see. draft: the page as edited (theme, look, name, photo, genres, place, social icons, sections). extras: the plan includes a year of stats, no "Made with Kinetune" and the artist\u2019s own tracking.',
|
|
22458
|
+
method: "GET",
|
|
22459
|
+
path: "/api/v1/artists/{artist_id}/page",
|
|
22460
|
+
scopes: ["music:read", "videos:read"],
|
|
22461
|
+
input: external_exports.object({ artist_id: artistId }),
|
|
22462
|
+
readOnly: true,
|
|
22463
|
+
destructive: false,
|
|
22464
|
+
idempotent: true,
|
|
22465
|
+
cli: ["artists", "page", "get"],
|
|
22466
|
+
mcp: "get_artist_page"
|
|
22467
|
+
},
|
|
22468
|
+
{
|
|
22469
|
+
id: "artists.page.update",
|
|
22470
|
+
group: "artists",
|
|
22471
|
+
title: "Edit the artist page",
|
|
22472
|
+
summary: "Change the page\u2019s draft: look, photo, genres, sections, featured music and videos",
|
|
22473
|
+
description: "Send only the fields that change; sections replaces the whole list (their order is the page\u2019s). Section types: out_now (release newest or pinned; plays video or cover; buttons: service ids), listen (platforms in order), videos (items: kinetune video_id of a finished video of this artist, or embed url on YouTube, Vimeo or TikTok), releases (all or picked; hidden release ids; count 4, 8 or 0 for all), links (profile ids from list_artist_profiles; big: one drawn big), about (text), looks. Fans see changes only after publish_artist_page. tracking (GA4, Meta Pixel, TikTok Pixel ids) needs a plan with the page extras (402).",
|
|
22474
|
+
method: "PATCH",
|
|
22475
|
+
path: "/api/v1/artists/{artist_id}/page",
|
|
22476
|
+
scopes: ["music:write", "videos:write"],
|
|
22477
|
+
input: PageDocPatchSchema.extend({ artist_id: artistId }),
|
|
22478
|
+
readOnly: false,
|
|
22479
|
+
destructive: false,
|
|
22480
|
+
idempotent: true,
|
|
22481
|
+
cli: ["artists", "page", "update"],
|
|
22482
|
+
mcp: "update_artist_page",
|
|
22483
|
+
example: { artist_id: "artist_\u2026", theme: "paper", genres: ["Alt-pop"], place: "Montr\xE9al" }
|
|
22484
|
+
},
|
|
22485
|
+
{
|
|
22486
|
+
id: "artists.page.preview",
|
|
22487
|
+
group: "artists",
|
|
22488
|
+
title: "Preview the artist page",
|
|
22489
|
+
summary: "The draft as fans will see it once published",
|
|
22490
|
+
description: "The same shape as the live page: the artist, the resolved look, social icons and every section with its releases, videos and links.",
|
|
22491
|
+
method: "GET",
|
|
22492
|
+
path: "/api/v1/artists/{artist_id}/page/preview",
|
|
22493
|
+
scopes: ["music:read", "videos:read"],
|
|
22494
|
+
input: external_exports.object({ artist_id: artistId }),
|
|
22495
|
+
readOnly: true,
|
|
22496
|
+
destructive: false,
|
|
22497
|
+
idempotent: true,
|
|
22498
|
+
cli: ["artists", "page", "preview"],
|
|
22499
|
+
mcp: "preview_artist_page"
|
|
22500
|
+
},
|
|
22501
|
+
{
|
|
22502
|
+
id: "artists.page.publish",
|
|
22503
|
+
group: "artists",
|
|
22504
|
+
title: "Publish the artist page",
|
|
22505
|
+
summary: "Put the draft live at kinetune.com/@handle",
|
|
22506
|
+
description: "Owners and admins. Needs an address (claim_artist_handle) and the Apple Music connection or at least one song. One live page per Apple Music artist across Kinetune (409 claimed). An artist with a large audience goes to in_review first. Ask the user before publishing.",
|
|
22507
|
+
method: "POST",
|
|
22508
|
+
path: "/api/v1/artists/{artist_id}/page/publish",
|
|
22509
|
+
scopes: ["music:write", "videos:write"],
|
|
22510
|
+
input: external_exports.object({ artist_id: artistId }),
|
|
22511
|
+
readOnly: false,
|
|
22512
|
+
destructive: false,
|
|
22513
|
+
idempotent: true,
|
|
22514
|
+
cli: ["artists", "page", "publish"],
|
|
22515
|
+
mcp: "publish_artist_page"
|
|
22516
|
+
},
|
|
22517
|
+
{
|
|
22518
|
+
id: "artists.page.unpublish",
|
|
22519
|
+
group: "artists",
|
|
22520
|
+
title: "Unpublish the artist page",
|
|
22521
|
+
summary: "Take the page offline (everything is kept)",
|
|
22522
|
+
description: "Owners and admins. The address, draft and stats are kept; publishing again brings it back.",
|
|
22523
|
+
method: "POST",
|
|
22524
|
+
path: "/api/v1/artists/{artist_id}/page/unpublish",
|
|
22525
|
+
scopes: ["music:write", "videos:write"],
|
|
22526
|
+
input: external_exports.object({ artist_id: artistId }),
|
|
22527
|
+
readOnly: false,
|
|
22528
|
+
destructive: true,
|
|
22529
|
+
idempotent: true,
|
|
22530
|
+
cli: ["artists", "page", "unpublish"],
|
|
22531
|
+
mcp: "unpublish_artist_page"
|
|
22532
|
+
},
|
|
22533
|
+
{
|
|
22534
|
+
id: "artists.page.stats",
|
|
22535
|
+
group: "artists",
|
|
22536
|
+
title: "Artist page stats",
|
|
22537
|
+
summary: "Views, visitors, clicks and click rate, by day, service, link and referrer",
|
|
22538
|
+
description: "days: the period, up to 30 without the page extras (max_days says the limit), a year with them. Visitors are counted once a day without cookies; nothing personal is kept.",
|
|
22539
|
+
method: "GET",
|
|
22540
|
+
path: "/api/v1/artists/{artist_id}/page/stats",
|
|
22541
|
+
scopes: ["music:read", "videos:read"],
|
|
22542
|
+
input: external_exports.object({ artist_id: artistId, days: external_exports.number().int().min(1).max(365).optional().describe("The period in days (default 30)") }),
|
|
22543
|
+
readOnly: true,
|
|
22544
|
+
destructive: false,
|
|
22545
|
+
idempotent: true,
|
|
22546
|
+
cli: ["artists", "page", "stats"],
|
|
22547
|
+
mcp: "get_artist_page_stats"
|
|
22548
|
+
},
|
|
22549
|
+
{
|
|
22550
|
+
id: "artists.handle.claim",
|
|
22551
|
+
group: "artists",
|
|
22552
|
+
title: "Claim the page address",
|
|
22553
|
+
summary: "Claim or change the artist page\u2019s address (kinetune.com/@handle)",
|
|
22554
|
+
description: 'Owners and admins. 3 to 30 lowercase letters, numbers, "." and "_"; case doesn\u2019t matter. check_handle first. When the address is the caller\u2019s own username (problem yours), take_from_profile true moves it here and their creator profile gets a new username. A changed address forwards for 90 days; it can change 3 times in 30 days.',
|
|
22555
|
+
method: "POST",
|
|
22556
|
+
path: "/api/v1/artists/{artist_id}/handle",
|
|
22557
|
+
scopes: ["music:write", "videos:write"],
|
|
22558
|
+
input: external_exports.object({ artist_id: artistId, handle: external_exports.string().min(3).max(31).describe("The address, without kinetune.com/@"), take_from_profile: external_exports.boolean().optional().describe("Move your own username here") }),
|
|
22559
|
+
readOnly: false,
|
|
22560
|
+
destructive: false,
|
|
22561
|
+
idempotent: true,
|
|
22562
|
+
cli: ["artists", "page", "claim"],
|
|
22563
|
+
mcp: "claim_artist_handle",
|
|
22564
|
+
example: { artist_id: "artist_\u2026", handle: "novalane" }
|
|
22565
|
+
},
|
|
22566
|
+
{
|
|
22567
|
+
id: "handles.check",
|
|
22568
|
+
group: "artists",
|
|
22569
|
+
title: "Check a page address",
|
|
22570
|
+
summary: "Whether kinetune.com/@handle is free, with suggestions",
|
|
22571
|
+
description: "available, or problem: invalid, reserved, taken, or yours (it is your own username, which can move to the page: claim_artist_handle take_from_profile). artist_id makes the artist\u2019s own current address count as free and suggestions come from their name.",
|
|
22572
|
+
method: "GET",
|
|
22573
|
+
path: "/api/v1/handles/{handle}",
|
|
22574
|
+
scopes: ["music:read", "videos:read"],
|
|
22575
|
+
input: external_exports.object({ handle: external_exports.string().min(1).max(60).describe("The address to check"), artist_id: artistId.optional() }),
|
|
22576
|
+
readOnly: true,
|
|
22577
|
+
destructive: false,
|
|
22578
|
+
idempotent: true,
|
|
22579
|
+
cli: ["artists", "page", "check"],
|
|
22580
|
+
mcp: "check_handle",
|
|
22581
|
+
example: { handle: "novalane" }
|
|
22582
|
+
},
|
|
21551
22583
|
/* The artist kit */
|
|
21552
22584
|
{
|
|
21553
22585
|
id: "characters.list",
|
|
@@ -21799,7 +22831,7 @@ var OPERATIONS = [
|
|
|
21799
22831
|
method: "GET",
|
|
21800
22832
|
path: "/api/v1/kit/{kit_id}",
|
|
21801
22833
|
scopes: ["music:read", "videos:read"],
|
|
21802
|
-
input: external_exports.object({ kit_id:
|
|
22834
|
+
input: external_exports.object({ kit_id: id2("kit piece") }),
|
|
21803
22835
|
readOnly: true,
|
|
21804
22836
|
destructive: false,
|
|
21805
22837
|
idempotent: true,
|
|
@@ -21811,19 +22843,19 @@ var OPERATIONS = [
|
|
|
21811
22843
|
group: "artists",
|
|
21812
22844
|
title: "Change a kit piece",
|
|
21813
22845
|
summary: "Rename it, change its handle or description, crop it again, or share it",
|
|
21814
|
-
description: "crop is cut again from the image the piece was added from. kept true keeps another angle of a place
|
|
22846
|
+
description: "crop is cut again from the image the piece was added from. kept true keeps a pending piece: another angle of a place, or a picture drawn for a shot list (a brief can mention it then). 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.",
|
|
21815
22847
|
method: "PATCH",
|
|
21816
22848
|
path: "/api/v1/kit/{kit_id}",
|
|
21817
22849
|
scopes: ["music:write", "videos:write"],
|
|
21818
22850
|
input: external_exports.object({
|
|
21819
|
-
kit_id:
|
|
22851
|
+
kit_id: id2("kit piece"),
|
|
21820
22852
|
name: external_exports.string().trim().min(1).max(60).optional(),
|
|
21821
22853
|
handle: KitHandleSchema.optional(),
|
|
21822
22854
|
description: external_exports.string().trim().max(300).nullable().optional(),
|
|
21823
22855
|
crop: CropRectSchema.optional().describe("The new rectangle, in fractions of the source image"),
|
|
21824
22856
|
ai_made: external_exports.boolean().optional().describe("A character only: an AI-made person (true) or a real one (false)"),
|
|
21825
22857
|
shared: external_exports.boolean().optional().describe("Offer it to every other artist\u2019s songs too (true), or only its own artist\u2019s (false)"),
|
|
21826
|
-
kept: external_exports.literal(true).optional().describe("
|
|
22858
|
+
kept: external_exports.literal(true).optional().describe("A pending piece (another angle of a place, draw_place_angles, or a shot list's picture, draw_music_video_pictures): keep it in the kit. To leave it out, delete it")
|
|
21827
22859
|
}),
|
|
21828
22860
|
readOnly: false,
|
|
21829
22861
|
destructive: false,
|
|
@@ -21840,7 +22872,7 @@ var OPERATIONS = [
|
|
|
21840
22872
|
method: "DELETE",
|
|
21841
22873
|
path: "/api/v1/kit/{kit_id}",
|
|
21842
22874
|
scopes: ["music:write", "videos:write"],
|
|
21843
|
-
input: external_exports.object({ kit_id:
|
|
22875
|
+
input: external_exports.object({ kit_id: id2("kit piece") }),
|
|
21844
22876
|
readOnly: false,
|
|
21845
22877
|
destructive: true,
|
|
21846
22878
|
idempotent: true,
|
|
@@ -21851,14 +22883,14 @@ var OPERATIONS = [
|
|
|
21851
22883
|
id: "kit.angles",
|
|
21852
22884
|
group: "artists",
|
|
21853
22885
|
title: "Draw other angles of a place",
|
|
21854
|
-
summary: "The same set from
|
|
21855
|
-
description: `A place only. Without confirm: the price (credits per angle and the total), nothing drawn; tell the user, then send confirm true after their go (and credits: the total shown; a different price answers 409 with the current quote). Each angle is one picture of the same place, its layout, props, colours and light, from
|
|
22886
|
+
summary: "The same set from the angles you pick (wide, reverse, low, overhead\u2026), each a new place (spends credits)",
|
|
22887
|
+
description: `A place only. Pick one or more angles from a photographer's range: ${KIT_ANGLES.map((a) => `${a} (${KIT_ANGLE_LINES[a].toLowerCase()})`).join(", ")}. Without confirm: the price (credits per angle and the total), nothing drawn; tell the user, then send confirm true after their go (and credits: the total shown; a different price answers 409 with the current quote). Each angle is one picture of the same place, its layout, props, colours and light, from a camera position worked out for this place (a new composition, not the photo nudged), empty of people, drawn in about a minute; it comes back as a new place in the same artist's kit (owned and shared like the place), named "<place> \xB7 side", with angle_of (the first place of its set) and angle. A new angle is pending: the user keeps it (update_kit_piece with kept true) or leaves it out (delete_kit_piece); a brief can mention it once kept. A brief that mentions places of one set gets them as one set: the director cuts between the angles. Credits are held, then charged for each picture drawn (failed lists any that couldn't be, not charged). ${NEEDS_PLAN}`,
|
|
21856
22888
|
method: "POST",
|
|
21857
22889
|
path: "/api/v1/kit/{kit_id}/angles",
|
|
21858
22890
|
scopes: ["videos:write"],
|
|
21859
22891
|
input: external_exports.object({
|
|
21860
|
-
kit_id:
|
|
21861
|
-
angles: external_exports.array(external_exports.enum(KIT_ANGLES)).min(1).max(
|
|
22892
|
+
kit_id: id2("place (kit piece)"),
|
|
22893
|
+
angles: external_exports.array(external_exports.enum(KIT_ANGLES)).min(1).max(KIT_ANGLES.length).optional().describe(`Which angles, one or more of ${KIT_ANGLES.join(", ")} (default: three-quarter, side and low). New values may be added`),
|
|
21862
22894
|
confirm: external_exports.boolean().optional().describe("true: draw them (spends credits); left out: only the price"),
|
|
21863
22895
|
credits: external_exports.number().int().positive().optional().describe("With confirm: the total price shown, so a changed price is refused")
|
|
21864
22896
|
}),
|
|
@@ -21867,7 +22899,7 @@ var OPERATIONS = [
|
|
|
21867
22899
|
idempotent: false,
|
|
21868
22900
|
cli: ["kit", "angles"],
|
|
21869
22901
|
mcp: "draw_place_angles",
|
|
21870
|
-
example: { angles: ["
|
|
22902
|
+
example: { angles: ["reverse", "low", "overhead"], confirm: true, credits: 54 }
|
|
21871
22903
|
},
|
|
21872
22904
|
/* Songs */
|
|
21873
22905
|
{
|
|
@@ -21896,13 +22928,13 @@ var OPERATIONS = [
|
|
|
21896
22928
|
group: "songs",
|
|
21897
22929
|
title: "Upload a song",
|
|
21898
22930
|
summary: "Add a song: master audio, and square cover art if it has one",
|
|
21899
|
-
description: `Audio: MP3, WAV or M4A up to 250 MB. Cover (optional): a square JPEG or PNG, 1000\u20136000 px (3000\xD73000 recommended), up to 20 MB; it is kept at 1536, 640 and 160 px, not as uploaded. Without one the song has no cover (cover_art null) and every video still works; set_song_cover adds one later. The song is analyzed next (lyrics, beats, sections): poll get_song until analysis.status is "ready", usually about a minute. Pass lyrics (or set them later with set_song_lyrics) to have the videos spell every word right. ${NEEDS_PLAN}`,
|
|
22931
|
+
description: `Audio: MP3, WAV or M4A up to 250 MB. Cover (optional): a square JPEG or PNG, 1000\u20136000 px (3000\xD73000 recommended), up to 20 MB; it is kept at 1536, 640 and 160 px, not as uploaded. Without one the song has no cover (cover_art null) and every video still works; set_song_cover adds one later. The song is analyzed next (lyrics, beats, sections): poll get_song until analysis.status is "ready", usually about a minute. Pass lyrics (or set them later with set_song_lyrics) to have the videos spell every word right. The file\u2019s tags fill what is left out: its title, ISRC, embedded lyrics and embedded cover (a square one, 1000 px or more). The same song already in the workspace (the same audio file, or the same ISRC) is refused with 409, code duplicate, and its song_id. A released song of a linked artist can be imported instead of uploaded (import_songs). ${NEEDS_PLAN}`,
|
|
21900
22932
|
method: "POST",
|
|
21901
22933
|
path: "/api/v1/songs",
|
|
21902
22934
|
scopes: ["music:write", "videos:write"],
|
|
21903
22935
|
input: external_exports.object({
|
|
21904
22936
|
artist_id: artistId.optional().describe("The artist id. An artist workspace may leave it out: its songs are its artist's"),
|
|
21905
|
-
title: external_exports.string().trim().min(1).max(300).describe("The song title"),
|
|
22937
|
+
title: external_exports.string().trim().min(1).max(300).optional().describe("The song title; left out, the file\u2019s title tag, then its file name"),
|
|
21906
22938
|
language: external_exports.string().regex(/^[a-z]{2,3}$/).optional().describe('Lyrics language (ISO 639-1, e.g. "en"); detected when omitted'),
|
|
21907
22939
|
audio_url: httpsUrl("the master audio").optional(),
|
|
21908
22940
|
cover_art_url: httpsUrl("the square cover art").optional().describe("Optional: a public https URL of the square cover art (a file on your computer: create_upload's file_url, or upload it with the CLI). Leave it out for a song without cover art"),
|
|
@@ -21921,38 +22953,140 @@ var OPERATIONS = [
|
|
|
21921
22953
|
mcp: "create_song"
|
|
21922
22954
|
},
|
|
21923
22955
|
{
|
|
21924
|
-
id: "songs.
|
|
22956
|
+
id: "songs.list_released",
|
|
21925
22957
|
group: "songs",
|
|
21926
|
-
title: "
|
|
21927
|
-
summary: "
|
|
21928
|
-
description:
|
|
22958
|
+
title: "List an artist\u2019s released songs",
|
|
22959
|
+
summary: "The linked artist\u2019s songs in the music catalog, each saying whether it is already in Kinetune",
|
|
22960
|
+
description: "Newest release first; an EP or album\u2019s tracks in order. other_version marks a remix, live take or similar, or a song on someone else\u2019s release (a compilation, a soundtrack): show those after the artist\u2019s own. Slices of DJ mixes are left out (they have no audio of their own). Each has id (the track_id to import), title, release (name, kind single, ep or album, date; a date of null is announced, not out yet), track_number, duration_seconds, cover_url (up to 3000 px), song_id when it is already in the workspace, possible_duplicates for close title and duration matches, and import while it is being imported (status, error). q narrows them to a title or release. The artist must be linked first (409 artist_not_linked: find_artist_in_catalog, then link_artist).",
|
|
21929
22961
|
method: "GET",
|
|
21930
|
-
path: "/api/v1/
|
|
22962
|
+
path: "/api/v1/artists/{artist_id}/releases",
|
|
21931
22963
|
scopes: ["music:read", "videos:read"],
|
|
21932
|
-
input: external_exports.object({
|
|
22964
|
+
input: external_exports.object({ artist_id: artistId, q: external_exports.string().max(100).optional().describe("Part of a title or release name") }),
|
|
21933
22965
|
readOnly: true,
|
|
21934
22966
|
destructive: false,
|
|
21935
22967
|
idempotent: true,
|
|
21936
|
-
cli: ["songs", "
|
|
21937
|
-
mcp: "
|
|
22968
|
+
cli: ["songs", "released"],
|
|
22969
|
+
mcp: "list_released_songs"
|
|
21938
22970
|
},
|
|
21939
22971
|
{
|
|
21940
|
-
id: "songs.
|
|
22972
|
+
id: "songs.import",
|
|
21941
22973
|
group: "songs",
|
|
21942
|
-
title: "
|
|
21943
|
-
summary: "
|
|
21944
|
-
description: `
|
|
21945
|
-
method: "
|
|
21946
|
-
path: "/api/v1/
|
|
22974
|
+
title: "Import released songs",
|
|
22975
|
+
summary: "Bring in released songs of a linked artist by their track ids, without uploading",
|
|
22976
|
+
description: `Each track (list_released_songs: id) becomes an import: Kinetune fetches the song\u2019s audio (about half a minute each), then the song is made with the release\u2019s title and cover and analyzed like an upload; poll get_song_import or list_song_imports (status queued, fetching, done with song_id, or failed with why). A song we can\u2019t fetch fails, and the user adds the file to it instead (add_song_import_audio). Songs already in the workspace or being imported are skipped (skipped: track_id and reason). Up to 50 at once, and a daily number per workspace (429 daily_limit). Only the user\u2019s own songs: confirm they own or have the rights to them. ${NEEDS_PLAN} Without a plan, the user\u2019s free song of the month covers one import.`,
|
|
22977
|
+
method: "POST",
|
|
22978
|
+
path: "/api/v1/song-imports",
|
|
21947
22979
|
scopes: ["music:write", "videos:write"],
|
|
21948
22980
|
input: external_exports.object({
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
22981
|
+
artist_id: artistId,
|
|
22982
|
+
track_ids: external_exports.array(external_exports.string().regex(/^\d{1,15}$/)).min(1).max(50).describe("The released songs\u2019 ids (list_released_songs)"),
|
|
22983
|
+
distinct_track_ids: external_exports.array(external_exports.string()).max(50).optional().describe("Selected releases the user confirmed are distinct from possible duplicates")
|
|
21952
22984
|
}),
|
|
21953
22985
|
readOnly: false,
|
|
21954
|
-
destructive:
|
|
21955
|
-
idempotent:
|
|
22986
|
+
destructive: false,
|
|
22987
|
+
idempotent: false,
|
|
22988
|
+
cli: ["songs", "import"],
|
|
22989
|
+
mcp: "import_songs",
|
|
22990
|
+
example: { artist_id: "artist_\u2026", track_ids: ["6817595861", "6816549264"] }
|
|
22991
|
+
},
|
|
22992
|
+
{
|
|
22993
|
+
id: "imports.list",
|
|
22994
|
+
group: "songs",
|
|
22995
|
+
title: "List song imports",
|
|
22996
|
+
summary: "Released songs being imported, failed ones waiting for a file, and today\u2019s done ones",
|
|
22997
|
+
description: "Newest first. status: queued, fetching, done (song_id: the song made) or failed (error says why; add_song_import_audio with the file, or cancel_song_import).",
|
|
22998
|
+
method: "GET",
|
|
22999
|
+
path: "/api/v1/song-imports",
|
|
23000
|
+
scopes: ["music:read", "videos:read"],
|
|
23001
|
+
input: external_exports.object({ artist_id: artistId.optional().describe("Only this artist\u2019s imports"), status: external_exports.enum(["queued", "fetching", "failed", "done"]).optional().describe("Only imports with this status") }),
|
|
23002
|
+
readOnly: true,
|
|
23003
|
+
destructive: false,
|
|
23004
|
+
idempotent: true,
|
|
23005
|
+
cli: ["songs", "imports"],
|
|
23006
|
+
mcp: "list_song_imports"
|
|
23007
|
+
},
|
|
23008
|
+
{
|
|
23009
|
+
id: "imports.get",
|
|
23010
|
+
group: "songs",
|
|
23011
|
+
title: "Get a song import",
|
|
23012
|
+
summary: "One import: queued, fetching, done (with its song) or failed (and why)",
|
|
23013
|
+
description: "",
|
|
23014
|
+
method: "GET",
|
|
23015
|
+
path: "/api/v1/song-imports/{import_id}",
|
|
23016
|
+
scopes: ["music:read", "videos:read"],
|
|
23017
|
+
input: external_exports.object({ import_id: external_exports.string().min(1).max(120).describe("The import id (import_\u2026)") }),
|
|
23018
|
+
readOnly: true,
|
|
23019
|
+
destructive: false,
|
|
23020
|
+
idempotent: true,
|
|
23021
|
+
cli: ["songs", "import-status"],
|
|
23022
|
+
mcp: "get_song_import"
|
|
23023
|
+
},
|
|
23024
|
+
{
|
|
23025
|
+
id: "imports.add_audio",
|
|
23026
|
+
group: "songs",
|
|
23027
|
+
title: "Add the file to a song import",
|
|
23028
|
+
summary: "Give the audio of a released song Kinetune couldn\u2019t fetch",
|
|
23029
|
+
description: "The song is made from the file with the release\u2019s title and cover (MP3, WAV or M4A up to 250 MB), and analyzed. For a failed import (or one still queued).",
|
|
23030
|
+
method: "POST",
|
|
23031
|
+
path: "/api/v1/song-imports/{import_id}/audio",
|
|
23032
|
+
scopes: ["music:write", "videos:write"],
|
|
23033
|
+
input: external_exports.object({ import_id: external_exports.string().min(1).max(120).describe("The import id (import_\u2026)"), audio_url: httpsUrl("the song\u2019s audio").optional() }),
|
|
23034
|
+
files: [{ field: "audio", urlField: "audio_url", accept: ["audio/mpeg", "audio/wav", "audio/mp4"], description: "The song\u2019s audio (MP3, WAV or M4A)" }],
|
|
23035
|
+
readOnly: false,
|
|
23036
|
+
destructive: false,
|
|
23037
|
+
idempotent: false,
|
|
23038
|
+
cli: ["songs", "import-audio"],
|
|
23039
|
+
mcp: "add_song_import_audio"
|
|
23040
|
+
},
|
|
23041
|
+
{
|
|
23042
|
+
id: "imports.cancel",
|
|
23043
|
+
group: "songs",
|
|
23044
|
+
title: "Let a song import go",
|
|
23045
|
+
summary: "Remove a failed (or queued) import from the list",
|
|
23046
|
+
description: "Its song isn\u2019t made; it can be imported again later.",
|
|
23047
|
+
method: "DELETE",
|
|
23048
|
+
path: "/api/v1/song-imports/{import_id}",
|
|
23049
|
+
scopes: ["music:write", "videos:write"],
|
|
23050
|
+
input: external_exports.object({ import_id: external_exports.string().min(1).max(120).describe("The import id (import_\u2026)") }),
|
|
23051
|
+
readOnly: false,
|
|
23052
|
+
destructive: true,
|
|
23053
|
+
idempotent: true,
|
|
23054
|
+
cli: ["songs", "import-cancel"],
|
|
23055
|
+
mcp: "cancel_song_import"
|
|
23056
|
+
},
|
|
23057
|
+
{
|
|
23058
|
+
id: "songs.get",
|
|
23059
|
+
group: "songs",
|
|
23060
|
+
title: "Get a song",
|
|
23061
|
+
summary: "One song and its analysis status",
|
|
23062
|
+
description: `${COVER_SIZES} analysis.lyrics.status says whose words its videos show: "transcribed" (as heard), "checked" (your lyrics, timed from the audio; corrected, added and kept count what checking did; edited_at once words were fixed by hand with set_song_words), "waiting" (your lyrics, checked once the analysis finishes) or "mismatch" (your lyrics didn\u2019t match what\u2019s sung, so the transcription is used). brief: what the song is about as every director reads it (theme, tone, story, mood_arc by section, setting), null before the analysis; status writing while it is written (a song analysed without one has it started by this call: get it again in half a minute), edited true once the user corrected it (edit_song_brief).`,
|
|
23063
|
+
method: "GET",
|
|
23064
|
+
path: "/api/v1/songs/{song_id}",
|
|
23065
|
+
scopes: ["music:read", "videos:read"],
|
|
23066
|
+
input: external_exports.object({ song_id: songId }),
|
|
23067
|
+
readOnly: true,
|
|
23068
|
+
destructive: false,
|
|
23069
|
+
idempotent: true,
|
|
23070
|
+
cli: ["songs", "get"],
|
|
23071
|
+
mcp: "get_song"
|
|
23072
|
+
},
|
|
23073
|
+
{
|
|
23074
|
+
id: "songs.update",
|
|
23075
|
+
group: "songs",
|
|
23076
|
+
title: "Rename a song",
|
|
23077
|
+
summary: "Change a song\u2019s title",
|
|
23078
|
+
description: `A new title changes nothing else. instrumental is deprecated: the analysis hears whether a song has vocals. Switching it still analyzes the song again and replaces the analysis (an instrumental isn't transcribed, and its lyrics, including any set with set_song_lyrics, are deleted): poll get_song until analysis.status is "ready". Leave it out unless the user asks.`,
|
|
23079
|
+
method: "PATCH",
|
|
23080
|
+
path: "/api/v1/songs/{song_id}",
|
|
23081
|
+
scopes: ["music:write", "videos:write"],
|
|
23082
|
+
input: external_exports.object({
|
|
23083
|
+
song_id: songId,
|
|
23084
|
+
title: external_exports.string().trim().min(1).max(300).optional().describe("The new title"),
|
|
23085
|
+
instrumental: external_exports.boolean().optional().meta({ deprecated: true, "x-sunset": "2027-04-30" }).describe("Deprecated: the analysis hears whether a song has vocals. true: a song without vocals (never transcribed, never lip-synced). Stops working on 2027-04-30.")
|
|
23086
|
+
}),
|
|
23087
|
+
readOnly: false,
|
|
23088
|
+
destructive: true,
|
|
23089
|
+
idempotent: true,
|
|
21956
23090
|
cli: ["songs", "rename"],
|
|
21957
23091
|
mcp: "rename_song"
|
|
21958
23092
|
},
|
|
@@ -22183,6 +23317,64 @@ var OPERATIONS = [
|
|
|
22183
23317
|
cli: ["songs", "clear-lyrics"],
|
|
22184
23318
|
mcp: "clear_song_lyrics"
|
|
22185
23319
|
},
|
|
23320
|
+
{
|
|
23321
|
+
id: "songs.set_words",
|
|
23322
|
+
group: "songs",
|
|
23323
|
+
title: "Set a song\u2019s timed words",
|
|
23324
|
+
summary: "Fix words and their timing by hand: text, start, end and line breaks",
|
|
23325
|
+
description: "The song\u2019s words as the videos show them, edited by hand: get them from get_song_analysis (words), change what is wrong (a word\u2019s text, where it starts or ends, line: true on the first word of each line, a word removed or added) and send them all back. Sorted by start, never overlapping, inside the song, up to 5000 words of 1 to 60 characters. Saved as they are (nothing is timed again): analysis.lyrics.edited_at says when, and set_song_lyrics or clear_song_lyrics later times every word from the audio again. A video can censor swear words on its own (display.censor). Videos made from then on use them; videos already made stay as they are. 409 while the song is being analysed.",
|
|
23326
|
+
method: "POST",
|
|
23327
|
+
path: "/api/v1/songs/{song_id}/words",
|
|
23328
|
+
scopes: ["music:write", "videos:write"],
|
|
23329
|
+
input: external_exports.object({ song_id: songId, words: external_exports.array(external_exports.object({
|
|
23330
|
+
text: external_exports.string().min(1).max(60),
|
|
23331
|
+
start: external_exports.number().min(0).describe("Seconds into the song"),
|
|
23332
|
+
end: external_exports.number().describe("Seconds into the song, after start"),
|
|
23333
|
+
line: external_exports.boolean().optional().describe("true on the first word of a line"),
|
|
23334
|
+
backing: external_exports.boolean().optional().describe("Sung by other voices, not the lead (kept from the analysis)")
|
|
23335
|
+
}).strict()).min(1).max(5e3).describe("Every word of the song, in order") }),
|
|
23336
|
+
readOnly: false,
|
|
23337
|
+
destructive: true,
|
|
23338
|
+
idempotent: true,
|
|
23339
|
+
cli: ["songs", "set-words"],
|
|
23340
|
+
mcp: "set_song_words"
|
|
23341
|
+
},
|
|
23342
|
+
{
|
|
23343
|
+
id: "songs.transcription_price",
|
|
23344
|
+
group: "songs",
|
|
23345
|
+
title: "Price of transcribing a song again",
|
|
23346
|
+
summary: "What listening to a song again costs, in credits",
|
|
23347
|
+
description: "credits: what transcribe_song costs now for this song (it follows the song\u2019s length and the transcription model in use).",
|
|
23348
|
+
method: "GET",
|
|
23349
|
+
path: "/api/v1/songs/{song_id}/transcription",
|
|
23350
|
+
scopes: ["music:read", "videos:read"],
|
|
23351
|
+
input: external_exports.object({ song_id: songId }),
|
|
23352
|
+
readOnly: true,
|
|
23353
|
+
destructive: false,
|
|
23354
|
+
idempotent: true,
|
|
23355
|
+
cli: ["songs", "transcription-price"],
|
|
23356
|
+
mcp: "get_transcription_price"
|
|
23357
|
+
},
|
|
23358
|
+
{
|
|
23359
|
+
id: "songs.transcribe",
|
|
23360
|
+
group: "songs",
|
|
23361
|
+
title: "Transcribe a song again",
|
|
23362
|
+
summary: "Listen to a song again with the best transcription model, for a few credits",
|
|
23363
|
+
description: 'Costs credits: tell the user the price (get_transcription_price) and send it as credits only after their go. The song is listened to again with Kinetune\u2019s current transcription model, in language when given (the language it is sung in, e.g. "fr"; use it when the words came out in the wrong language). Their own lyrics (set_song_lyrics) stay and are timed to the new hearing; without them, the new words are the song\u2019s. Timing fixed by hand (set_song_words) is replaced. Takes up to a minute or two. 409 with the new price when credits differ, 402 without enough credits, 422 when no words were heard (nothing charged), 429 when it was just done.',
|
|
23364
|
+
method: "POST",
|
|
23365
|
+
path: "/api/v1/songs/{song_id}/transcription",
|
|
23366
|
+
scopes: ["music:write", "videos:write"],
|
|
23367
|
+
input: external_exports.object({
|
|
23368
|
+
song_id: songId,
|
|
23369
|
+
credits: external_exports.number().int().min(0).optional().describe("The price you were shown (get_transcription_price)"),
|
|
23370
|
+
language: external_exports.string().max(20).nullable().optional().describe('The language it is sung in, e.g. "fr"; omitted: the one the analysis found')
|
|
23371
|
+
}),
|
|
23372
|
+
readOnly: false,
|
|
23373
|
+
destructive: true,
|
|
23374
|
+
idempotent: false,
|
|
23375
|
+
cli: ["songs", "transcribe"],
|
|
23376
|
+
mcp: "transcribe_song"
|
|
23377
|
+
},
|
|
22186
23378
|
{
|
|
22187
23379
|
id: "songs.edit_brief",
|
|
22188
23380
|
group: "songs",
|
|
@@ -22234,7 +23426,7 @@ var OPERATIONS = [
|
|
|
22234
23426
|
group: "looks",
|
|
22235
23427
|
title: "List Looks",
|
|
22236
23428
|
summary: "Browse Official, Community and your own Looks",
|
|
22237
|
-
description:
|
|
23429
|
+
description: "A Look is a complete, reusable lyric-video design: colours, type, lyric style, layout, visual and its picture. Pass its id as look.id, and change any part in the order. A Look that shows an artist (featured_artist) is private and only serves that artist's songs: choosing for a song, pass its artist_id to leave out Looks that show another artist.",
|
|
22238
23430
|
method: "GET",
|
|
22239
23431
|
path: "/api/v1/looks",
|
|
22240
23432
|
scopes: ["library:read", "videos:read"],
|
|
@@ -22259,7 +23451,7 @@ var OPERATIONS = [
|
|
|
22259
23451
|
group: "looks",
|
|
22260
23452
|
title: "Get a Look",
|
|
22261
23453
|
summary: "One Look with its design and preview images",
|
|
22262
|
-
description: "backgrounds.portrait and backgrounds.landscape are the
|
|
23454
|
+
description: "spec.background is the Look's picture: clips (a Look made before clips plays its own photo or loop as clips: sources.looks, get_look_clips) or the visualizer. backgrounds.portrait and backgrounds.landscape are the pictures such a Look was first made with, kept for its earlier videos; backgrounds.previews has 480 px wide copies of them for thumbnails (null for a Look without one).",
|
|
22263
23455
|
method: "GET",
|
|
22264
23456
|
path: "/api/v1/looks/{look_id}",
|
|
22265
23457
|
scopes: ["library:read", "videos:read"],
|
|
@@ -22270,6 +23462,22 @@ var OPERATIONS = [
|
|
|
22270
23462
|
cli: ["looks", "get"],
|
|
22271
23463
|
mcp: "get_look"
|
|
22272
23464
|
},
|
|
23465
|
+
{
|
|
23466
|
+
id: "looks.clips",
|
|
23467
|
+
group: "looks",
|
|
23468
|
+
title: "Get a Look's clips",
|
|
23469
|
+
summary: "The clips a clips Look cuts its picture from, to preview it",
|
|
23470
|
+
description: "For a Look whose picture is clips: its stock feelings' clips (and its folders' for its own workspace; someone else's Look never shows its owner's footage), each with its length, shape, energy, a light preview copy and what it shows: subject (null until it is analysed: each clip, once and for everyone, the first time analyze_clips asks for it or a video is made with it: faces, each box as fractions of the poster x, y, w, h, which text keeps clear; aspect; and mask, the subject's silhouette, when it has a matte), subject_clear (whether it has a clear subject, a person or a solid figure, words can go behind; null until analysed), matte_url (null, or an MP4 holding the clip and its subject's mask side by side, or one over the other for a wide clip: made for a clear subject once words go behind it, then the words go behind the subject) and still_url and depth_url (a photo clip's picture and its depth map, white is near: it moves in 3D; null until analysed). Plan a preview cut from them with @kinetune/composition planEdit, as the editor does. Empty for a Look with another kind of picture.",
|
|
23471
|
+
method: "GET",
|
|
23472
|
+
path: "/api/v1/looks/{look_id}/clips",
|
|
23473
|
+
scopes: ["library:read", "videos:read"],
|
|
23474
|
+
input: external_exports.object({ look_id: lookId }),
|
|
23475
|
+
readOnly: true,
|
|
23476
|
+
destructive: false,
|
|
23477
|
+
idempotent: true,
|
|
23478
|
+
cli: ["looks", "clips"],
|
|
23479
|
+
mcp: "get_look_clips"
|
|
23480
|
+
},
|
|
22273
23481
|
{
|
|
22274
23482
|
id: "looks.rename",
|
|
22275
23483
|
group: "looks",
|
|
@@ -22319,41 +23527,460 @@ var OPERATIONS = [
|
|
|
22319
23527
|
mcp: "set_look_visibility"
|
|
22320
23528
|
},
|
|
22321
23529
|
{
|
|
22322
|
-
id: "
|
|
23530
|
+
id: "looks.save",
|
|
22323
23531
|
group: "looks",
|
|
22324
|
-
title: "
|
|
22325
|
-
summary: "
|
|
22326
|
-
description:
|
|
23532
|
+
title: "Save as Look",
|
|
23533
|
+
summary: "Save a Look with your changes as your own Look",
|
|
23534
|
+
description: "A private Look made from a saved one (from_id) with the changes you send: lyric_style, behind, visual and background (as in create_lyric_video's look). Keeping the picture of the Look it was made from copies it. Then pass its id as look.id.",
|
|
22327
23535
|
method: "POST",
|
|
22328
|
-
path: "/api/v1/
|
|
23536
|
+
path: "/api/v1/looks",
|
|
22329
23537
|
scopes: ["library:write", "videos:write"],
|
|
22330
23538
|
input: external_exports.object({
|
|
22331
|
-
|
|
22332
|
-
|
|
22333
|
-
|
|
23539
|
+
name: external_exports.string().trim().min(2).max(60).describe("Its name"),
|
|
23540
|
+
from_id: lookId.describe("The Look it starts from"),
|
|
23541
|
+
lyric_style: lyricShape.look.unwrap().shape.lyric_style,
|
|
23542
|
+
behind: lyricShape.look.unwrap().shape.behind,
|
|
23543
|
+
visual: lyricShape.look.unwrap().shape.visual,
|
|
23544
|
+
background: lyricShape.look.unwrap().shape.background
|
|
23545
|
+
}),
|
|
23546
|
+
readOnly: false,
|
|
23547
|
+
destructive: false,
|
|
23548
|
+
idempotent: false,
|
|
23549
|
+
cli: ["looks", "save"],
|
|
23550
|
+
mcp: "save_look"
|
|
23551
|
+
},
|
|
23552
|
+
/* Clips */
|
|
23553
|
+
{
|
|
23554
|
+
id: "songs.draft",
|
|
23555
|
+
group: "looks",
|
|
23556
|
+
title: "Get a song's draft lyric video",
|
|
23557
|
+
summary: "The Look and clips picture Kinetune picks for a song, at once and without AI",
|
|
23558
|
+
description: "look_id (an Official Look), background (a clips picture: moods, density, transitions, grade, shape, fill, speed) and edit.seed, picked by rules from the song (what it is about, its tempo and loudness). A create_lyric_video without look.id makes exactly this. With type canvas: the song's draft Canvas instead (picture: its clips sources and grade, loop drift, seconds 8, edit.seed), what a create_canvas with a clips picture and no sources makes. Change anything before creating.",
|
|
23559
|
+
method: "GET",
|
|
23560
|
+
path: "/api/v1/songs/{song_id}/draft",
|
|
23561
|
+
scopes: ["videos:read", "videos:write"],
|
|
23562
|
+
input: external_exports.object({ song_id: songId, type: external_exports.enum(["lyric-video", "canvas"]).optional().describe("lyric-video (default) or canvas") }),
|
|
23563
|
+
readOnly: true,
|
|
23564
|
+
destructive: false,
|
|
23565
|
+
idempotent: true,
|
|
23566
|
+
cli: ["songs", "draft"],
|
|
23567
|
+
mcp: "get_song_draft"
|
|
23568
|
+
},
|
|
23569
|
+
{
|
|
23570
|
+
id: "clips.list",
|
|
23571
|
+
group: "looks",
|
|
23572
|
+
title: "List clips",
|
|
23573
|
+
summary: "The clips of library moods and your folders, to plan a clips video's cut",
|
|
23574
|
+
description: "The ready clips (1\u20135 s each) of as many sources together as your plan allows (get_account limits.clip_sources; more answers 402 plan_required): library moods (get_options clip_moods), your folders (list_clip_folders) and Looks' own pictures (looks: a Look made before clips keeps its picture, its photo or loop, as clips of its own, usable wherever the Look is). Each has id, source, cut_from (the source video it was cut from: pieces sharing one look alike), duration_seconds, width, height, energy (how much it moves, 0\u20131), brightness, preview_url (a light MP4), poster_url, subject (null until it is analysed: each clip, once and for everyone, the first time analyze_clips asks for it or a video is made with it: faces, each box as fractions of the poster x, y, w, h, which text keeps clear; aspect; and mask, the subject's silhouette, when it has a matte), subject_clear (whether it has a clear subject, a person or a solid figure, words can go behind; null until analysed), matte_url (null, or an MP4 holding the clip and its subject's mask side by side, or one over the other for a wide clip: made for a clear subject once words go behind it, then the words go behind the subject) and still_url and depth_url (a photo clip's picture and its depth map, white is near: it moves in 3D; null until analysed), loop_score (how well it loops as a Canvas drift, 0\u2013100; 60 and up loops well) and strip_url (ten frames along it, side by side); both null until measured, shortly after import. Send edit.seed and Kinetune draws the clips (with words behind the subject, clips with a clear subject under the sung lines), or plan the cut yourself and send edit.clips.",
|
|
23575
|
+
method: "GET",
|
|
23576
|
+
path: "/api/v1/clips",
|
|
23577
|
+
scopes: ["videos:read", "videos:write", "library:read"],
|
|
23578
|
+
input: external_exports.object({
|
|
23579
|
+
moods: external_exports.string().trim().max(260).optional().describe('Mood ids, comma-separated, e.g. "city,golden"'),
|
|
23580
|
+
folders: external_exports.string().trim().max(300).optional().describe("Folder ids, comma-separated"),
|
|
23581
|
+
looks: external_exports.string().trim().max(600).optional().describe("Look ids whose own picture plays as clips (a Look made before clips: its background.sources.looks), comma-separated")
|
|
23582
|
+
}),
|
|
23583
|
+
readOnly: true,
|
|
23584
|
+
destructive: false,
|
|
23585
|
+
idempotent: true,
|
|
23586
|
+
cli: ["clips", "list"],
|
|
23587
|
+
mcp: "list_clips",
|
|
23588
|
+
example: { moods: "city" }
|
|
23589
|
+
},
|
|
23590
|
+
{
|
|
23591
|
+
id: "clip_moods.browse",
|
|
23592
|
+
group: "looks",
|
|
23593
|
+
title: "Browse a Stock collection",
|
|
23594
|
+
summary: "The clips inside one Stock collection, a page at a time",
|
|
23595
|
+
description: "Stock is the clip library Kinetune keeps for everyone, free: collections in two groups, Feelings (moods, mostly tall, with Looks: every Official and Community Look's own picture) and Places & textures (real footage). get_options clip_moods lists them. This answers one collection (id, name, group, tall and wide: how many of each shape) and a page of its clips, each with id, width, height, duration_seconds, energy (how much it moves, 0\u20131), brightness, color (its main colour, hex), poster_url, preview_url (a light MP4), credit (who filmed it, where a stock site asks for it), loop_score (how well it loops as a Canvas drift, 0\u2013100, null until measured) and strip_url (frames along it, side by side). shape keeps tall or wide clips only; energy keeps the collection's calmest, middle or liveliest third; sort is best (liveliest first), newest or length. total is how many match, next_offset the next page's offset (null on the last). Pick clips for a video by naming the collection in look.background.sources.moods, or plan the cut with their ids (edit.clips). No credits.",
|
|
23596
|
+
method: "GET",
|
|
23597
|
+
path: "/api/v1/clip-moods/{mood_id}",
|
|
23598
|
+
scopes: ["videos:read", "videos:write", "library:read"],
|
|
23599
|
+
input: external_exports.object({
|
|
23600
|
+
mood_id: ClipMoodIdSchema.describe('A Stock collection id (get_options clip_moods), e.g. "city"'),
|
|
23601
|
+
shape: external_exports.enum(CLIP_BROWSE_SHAPES.map((s) => s.value)).optional().describe("both (default), tall or wide"),
|
|
23602
|
+
energy: external_exports.enum(VISUAL_ENERGIES.map((e) => e.value)).optional().describe("all (default), calm, medium or bold: the collection's own thirds"),
|
|
23603
|
+
sort: external_exports.enum(CLIP_SORTS.map((s) => s.value)).optional().describe("best (default, liveliest first), newest or length (longest first)"),
|
|
23604
|
+
offset: external_exports.number().int().min(0).max(1e5).optional().describe("Where the page starts (next_offset of the last page); default 0"),
|
|
23605
|
+
limit: external_exports.number().int().min(1).max(120).optional().describe("Clips a page, 1\u2013120; default 60")
|
|
23606
|
+
}),
|
|
23607
|
+
readOnly: true,
|
|
23608
|
+
destructive: false,
|
|
23609
|
+
idempotent: true,
|
|
23610
|
+
cli: ["clips", "browse"],
|
|
23611
|
+
mcp: "browse_clip_mood",
|
|
23612
|
+
example: { mood_id: "city", shape: "tall", sort: "best" }
|
|
23613
|
+
},
|
|
23614
|
+
{
|
|
23615
|
+
id: "clips.rebound",
|
|
23616
|
+
group: "looks",
|
|
23617
|
+
title: "A clip as a Rebound",
|
|
23618
|
+
summary: "A clip played forward, then backward: the file a Canvas Rebound loops",
|
|
23619
|
+
description: "9:16, from at for half seconds at speed, then the same backward. Made once and kept beside the clip; the render uses the same file, so a Canvas with loop rebound plays exactly what this shows. Answers {url}, signed for a day. No AI and no credits.",
|
|
23620
|
+
method: "GET",
|
|
23621
|
+
path: "/api/v1/clips/{clip_id}/rebound",
|
|
23622
|
+
scopes: ["videos:read", "videos:write"],
|
|
23623
|
+
input: external_exports.object({
|
|
23624
|
+
clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)"),
|
|
23625
|
+
at: external_exports.number().min(0).max(600).optional().describe("Where in the clip it starts, in seconds; default 0"),
|
|
23626
|
+
half: external_exports.number().min(1.5).max(4).describe("How long it plays forward, 1.5\u20134 seconds (the loop is twice that)"),
|
|
23627
|
+
speed: external_exports.number().min(0.25).max(2).optional().describe("0.25\u20132; default 1"),
|
|
23628
|
+
steady: external_exports.boolean().optional().describe("true: from the clip's stabilised copy (a Canvas with steady on)")
|
|
23629
|
+
}),
|
|
23630
|
+
readOnly: true,
|
|
23631
|
+
destructive: false,
|
|
23632
|
+
idempotent: true,
|
|
23633
|
+
cli: ["clips", "rebound"],
|
|
23634
|
+
mcp: "get_clip_rebound"
|
|
23635
|
+
},
|
|
23636
|
+
{
|
|
23637
|
+
id: "clips.steady",
|
|
23638
|
+
group: "looks",
|
|
23639
|
+
title: "A clip, steadied",
|
|
23640
|
+
summary: "A clip with handheld shake smoothed out: the file a Canvas with steady on plays",
|
|
23641
|
+
description: "The clip stabilised (two passes of ffmpeg vidstab), made once on first use (a few seconds) and kept beside the clip; the render uses the same file, so a Canvas with steady on plays exactly what this shows. Answers {url}, signed for a day. No AI and no credits.",
|
|
23642
|
+
method: "GET",
|
|
23643
|
+
path: "/api/v1/clips/{clip_id}/steady",
|
|
23644
|
+
scopes: ["videos:read", "videos:write"],
|
|
23645
|
+
input: external_exports.object({ clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)") }),
|
|
23646
|
+
readOnly: true,
|
|
23647
|
+
destructive: false,
|
|
23648
|
+
idempotent: true,
|
|
23649
|
+
cli: ["clips", "steady"],
|
|
23650
|
+
mcp: "get_clip_steady"
|
|
23651
|
+
},
|
|
23652
|
+
{
|
|
23653
|
+
id: "clips.loop",
|
|
23654
|
+
group: "looks",
|
|
23655
|
+
title: "Where a clip loops best",
|
|
23656
|
+
summary: "Best spot: where in a clip a Canvas drift window loops best, and its loop score",
|
|
23657
|
+
description: "For a window of span seconds that crossfades seam seconds into its start (both in the clip's own time: a drift plays seconds + crossfade of picture at its speed), the start in the clip whose ends look most alike, steady and with no cut inside, and its loop score 0\u2013100. Put the start in the Canvas edit's clips[0].in. Answers {start, score, measured}; a clip not measured yet answers start 0 and score null. Each clip's own score (for a default 8-second drift) is loop_score on list_clips, browse_clip_mood and get_clip_folder. No AI and no credits.",
|
|
23658
|
+
method: "GET",
|
|
23659
|
+
path: "/api/v1/clips/{clip_id}/loop",
|
|
23660
|
+
scopes: ["videos:read", "videos:write"],
|
|
23661
|
+
input: external_exports.object({
|
|
23662
|
+
clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)"),
|
|
23663
|
+
span: external_exports.number().min(0.5).max(60).describe("How much of the clip the window plays before the loop point, in seconds of the clip"),
|
|
23664
|
+
seam: external_exports.number().min(0).max(4).optional().describe("How much more it plays into the crossfade, in seconds of the clip; default 0.75")
|
|
23665
|
+
}),
|
|
23666
|
+
readOnly: true,
|
|
23667
|
+
destructive: false,
|
|
23668
|
+
idempotent: true,
|
|
23669
|
+
cli: ["clips", "loop"],
|
|
23670
|
+
mcp: "get_clip_loop"
|
|
23671
|
+
},
|
|
23672
|
+
{
|
|
23673
|
+
id: "clips.similar",
|
|
23674
|
+
group: "looks",
|
|
23675
|
+
title: "More like this",
|
|
23676
|
+
summary: "Clips that look and move like one clip, from Stock and your folders",
|
|
23677
|
+
description: "Up to limit clips (default 24) from every Stock collection and your own folders that look and move like this one: the same collection or folder counts, then how lively, how bright and the colour, so a clip from another collection can match. Clips cut from the same video show once. Each has the fields of browse_clip_mood plus source (the collection or folder it is in). No AI and no credits. The clip must be in Stock or one of your folders (404 otherwise).",
|
|
23678
|
+
method: "GET",
|
|
23679
|
+
path: "/api/v1/clips/{clip_id}/similar",
|
|
23680
|
+
scopes: ["videos:read", "videos:write", "library:read"],
|
|
23681
|
+
input: external_exports.object({
|
|
23682
|
+
clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026; browse_clip_mood, get_clip_folder or list_clips)"),
|
|
23683
|
+
limit: external_exports.number().int().min(1).max(48).optional().describe("How many, 1\u201348; default 24")
|
|
23684
|
+
}),
|
|
23685
|
+
readOnly: true,
|
|
23686
|
+
destructive: false,
|
|
23687
|
+
idempotent: true,
|
|
23688
|
+
cli: ["clips", "similar"],
|
|
23689
|
+
mcp: "similar_clips"
|
|
23690
|
+
},
|
|
23691
|
+
{
|
|
23692
|
+
id: "clips.delete",
|
|
23693
|
+
group: "looks",
|
|
23694
|
+
title: "Delete a clip",
|
|
23695
|
+
summary: "Remove one of your clips",
|
|
23696
|
+
description: "Videos already made with it keep it.",
|
|
23697
|
+
method: "DELETE",
|
|
23698
|
+
path: "/api/v1/clips/{clip_id}",
|
|
23699
|
+
scopes: ["videos:write", "library:write"],
|
|
23700
|
+
input: external_exports.object({ clip_id: external_exports.string().regex(/^clip_[0-9a-f-]{36}$/).describe("A clip id (clip_\u2026)") }),
|
|
23701
|
+
readOnly: false,
|
|
23702
|
+
destructive: true,
|
|
23703
|
+
idempotent: true,
|
|
23704
|
+
cli: ["clips", "delete"],
|
|
23705
|
+
mcp: "delete_clip"
|
|
23706
|
+
},
|
|
23707
|
+
{
|
|
23708
|
+
id: "clips.move",
|
|
23709
|
+
group: "looks",
|
|
23710
|
+
title: "Move clips",
|
|
23711
|
+
summary: "Move some of your clips into another of your folders",
|
|
23712
|
+
description: "clip_ids: your own clips (from get_clip_folder; library clips belong to no folder and never move), folder_id: one of your folders (list_clip_folders). Answers how many moved. Videos already made keep their clips.",
|
|
23713
|
+
method: "POST",
|
|
23714
|
+
path: "/api/v1/clips/move",
|
|
23715
|
+
scopes: ["videos:write", "library:write"],
|
|
23716
|
+
input: external_exports.object({ clip_ids: external_exports.array(external_exports.string().max(80)).min(1).max(200).describe("Clip ids (clip_\u2026), 1\u2013200"), folder_id: external_exports.string().max(80).describe("The folder to move them into (folder_\u2026)") }),
|
|
23717
|
+
readOnly: false,
|
|
23718
|
+
destructive: false,
|
|
23719
|
+
idempotent: true,
|
|
23720
|
+
cli: ["clips", "move"],
|
|
23721
|
+
mcp: "move_clips",
|
|
23722
|
+
example: { clip_ids: ["clip_\u2026"], folder_id: "folder_\u2026" }
|
|
23723
|
+
},
|
|
23724
|
+
{
|
|
23725
|
+
id: "clips.analyze",
|
|
23726
|
+
group: "looks",
|
|
23727
|
+
title: "Analyse clips",
|
|
23728
|
+
summary: "Find the subject and faces of clips a preview shows",
|
|
23729
|
+
description: "For a preview you plan yourself (planEdit): send the clip_ids it shows, and behind: true when its words go behind the subject. Each not yet analysed is analysed in the background, once (a few seconds): its subject and faces, a photo's depth map, and with behind its matte when it has a clear subject. list_clips answers what it found once done; a clip analysed once stays analysed, for everyone. At most daily_limit new clips of your own a day (Stock clips don't count) (limited: true held some back until tomorrow); a video made with clips analyses them anyway, with no limit, so you never need this to make one. Free. Answers pending (the clips still being analysed), limited and daily_limit.",
|
|
23730
|
+
method: "POST",
|
|
23731
|
+
path: "/api/v1/clips/analyze",
|
|
23732
|
+
scopes: ["videos:write", "library:write"],
|
|
23733
|
+
input: external_exports.object({ clip_ids: external_exports.array(external_exports.string().max(80)).min(1).max(200).describe("The clips the preview shows (clip_\u2026), 1\u2013200"), behind: external_exports.boolean().optional().describe("Words go behind the subject: make the mattes too") }),
|
|
23734
|
+
readOnly: false,
|
|
23735
|
+
destructive: false,
|
|
23736
|
+
idempotent: true,
|
|
23737
|
+
cli: ["clips", "analyze"],
|
|
23738
|
+
mcp: "analyze_clips",
|
|
23739
|
+
example: { clip_ids: ["clip_\u2026"], behind: true }
|
|
23740
|
+
},
|
|
23741
|
+
{
|
|
23742
|
+
id: "clips.generate",
|
|
23743
|
+
group: "looks",
|
|
23744
|
+
title: "Generate clips",
|
|
23745
|
+
summary: "New pictures or short video clips into your AI folder, from your words, the song or its cover",
|
|
23746
|
+
description: "The only paid part of a lyric video's or a Canvas's picture. Send prompt (or from with song_id: the song's brief, or the cover's world with the cover as the model's reference), kind (image or video), shape (tall or wide), count (1\u20134), and optionally with (the artist, or a cast character's kit id: their character sheet keeps them recognizable), quality (standard or high video) and loop (a video that starts and ends on the same frame, kept whole: a seamless Drift for a Canvas). Without credits it answers the price ({quote: {credits, per_item_credits}}) and the prompt it will use, and with from song three ideas built from the song's brief (ideas: each a title, a line, 2\u20133 tags, a prompt, the first best: true; no extra AI call, none while the song has no brief): offer them, and send the picked idea's prompt as prompt; show it, and with the user's yes send the same with credits: they are held and the clips are made in the background. get_clip_folder on the returned folder_id shows each one on its way (imports: status queued, working or failed; stage drawing, animating or cutting; expected_seconds), and each is charged only once it is a clip (a failed one is given back; retry_clip_import tries it again).",
|
|
23747
|
+
method: "POST",
|
|
23748
|
+
path: "/api/v1/clips/generate",
|
|
23749
|
+
scopes: ["videos:write"],
|
|
23750
|
+
input: external_exports.object({
|
|
23751
|
+
prompt: external_exports.string().trim().min(3).max(500).optional().describe('What it shows, e.g. "a diner at 3am, rain on the window". Optional with from'),
|
|
23752
|
+
kind: external_exports.enum(["image", "video"]),
|
|
23753
|
+
shape: external_exports.enum(["tall", "wide"]).optional().describe("Default tall"),
|
|
23754
|
+
count: external_exports.number().int().min(1).max(4).optional().describe("Default 1"),
|
|
23755
|
+
song_id: songId.optional().describe("The song it is for (with from or with)"),
|
|
23756
|
+
from: external_exports.enum(["song", "cover"]).optional().describe("Start from the song (its brief) or the cover's world"),
|
|
23757
|
+
with: external_exports.string().max(60).optional().describe("none (default), artist (the song's artist's character) or a cast character's kit id (kit_\u2026)"),
|
|
23758
|
+
model: external_exports.string().optional().describe("Video only: the video model, one of the ids get_options lists in video_models.clips (by its real name, each with its price for one clip). Left out: the default, the first listed"),
|
|
23759
|
+
quality: external_exports.enum(["standard", "high"]).optional().describe("Video only, before models were named: standard is the default model, high the dearest offered. Ignored with model"),
|
|
23760
|
+
loop: external_exports.boolean().optional().describe("Video only: made to loop (starts and ends on the same frame)"),
|
|
23761
|
+
style: external_exports.enum(GENERATE_STYLES).optional().describe("How it moves and feels: calm, cinematic, dreamy or intense (shapes the motion, camera and pace). Left out: as the prompt says"),
|
|
23762
|
+
credits: external_exports.number().int().min(1).optional().describe("The quoted credits, to make them; left out, only the price")
|
|
23763
|
+
}),
|
|
23764
|
+
readOnly: false,
|
|
23765
|
+
destructive: false,
|
|
23766
|
+
idempotent: false,
|
|
23767
|
+
cli: ["clips", "generate"],
|
|
23768
|
+
mcp: "generate_clips"
|
|
23769
|
+
},
|
|
23770
|
+
{
|
|
23771
|
+
id: "clip_imports.retry",
|
|
23772
|
+
group: "looks",
|
|
23773
|
+
title: "Try a clip import again",
|
|
23774
|
+
summary: "Try a failed link, upload, stock or generated clip again",
|
|
23775
|
+
description: "For an import get_clip_folder lists as failed. A generated one holds its credits again (at today's price) before it is made.",
|
|
23776
|
+
method: "POST",
|
|
23777
|
+
path: "/api/v1/clip-imports/{import_id}",
|
|
23778
|
+
scopes: ["videos:write"],
|
|
23779
|
+
input: external_exports.object({ import_id: external_exports.string().regex(/^import_[0-9a-f-]{36}$/).describe("The import id (import_\u2026)") }),
|
|
23780
|
+
fixed: { action: "retry" },
|
|
23781
|
+
readOnly: false,
|
|
23782
|
+
destructive: false,
|
|
23783
|
+
idempotent: true,
|
|
23784
|
+
cli: ["clips", "retry-import"],
|
|
23785
|
+
mcp: "retry_clip_import"
|
|
23786
|
+
},
|
|
23787
|
+
{
|
|
23788
|
+
id: "clip_imports.dismiss",
|
|
23789
|
+
group: "looks",
|
|
23790
|
+
title: "Dismiss a failed clip import",
|
|
23791
|
+
summary: "Take a failed import's tile out of its folder",
|
|
23792
|
+
description: "For an import get_clip_folder lists as failed, when it isn't worth trying again (retry_clip_import). Nothing is charged.",
|
|
23793
|
+
method: "DELETE",
|
|
23794
|
+
path: "/api/v1/clip-imports/{import_id}",
|
|
23795
|
+
scopes: ["videos:write"],
|
|
23796
|
+
input: external_exports.object({ import_id: external_exports.string().regex(/^import_[0-9a-f-]{36}$/).describe("The import id (import_\u2026)") }),
|
|
23797
|
+
readOnly: false,
|
|
23798
|
+
destructive: true,
|
|
23799
|
+
idempotent: true,
|
|
23800
|
+
cli: ["clips", "dismiss-import"],
|
|
23801
|
+
mcp: "dismiss_clip_import"
|
|
23802
|
+
},
|
|
23803
|
+
{
|
|
23804
|
+
id: "clip_folders.list",
|
|
23805
|
+
group: "looks",
|
|
23806
|
+
title: "List your clip folders",
|
|
23807
|
+
summary: "Your clip folders with how many clips each holds",
|
|
23808
|
+
description: "My footage: each folder with id, name, kind (user: yours, where links, uploads, cut videos and stock you found land; ai: what you generate), clips, importing (on their way) and poster_url.",
|
|
23809
|
+
method: "GET",
|
|
23810
|
+
path: "/api/v1/clip-folders",
|
|
23811
|
+
scopes: ["videos:read", "videos:write", "library:read"],
|
|
23812
|
+
input: external_exports.object({}),
|
|
23813
|
+
readOnly: true,
|
|
23814
|
+
destructive: false,
|
|
23815
|
+
idempotent: true,
|
|
23816
|
+
cli: ["clip-folders", "list"],
|
|
23817
|
+
mcp: "list_clip_folders"
|
|
23818
|
+
},
|
|
23819
|
+
{
|
|
23820
|
+
id: "clip_folders.create",
|
|
23821
|
+
group: "looks",
|
|
23822
|
+
title: "Make a clip folder",
|
|
23823
|
+
summary: "A new folder for your clips",
|
|
23824
|
+
description: "A folder in My footage, by name. Anything can be imported into it (import_clips): a link, a file or a stock video found with search_stock.",
|
|
23825
|
+
method: "POST",
|
|
23826
|
+
path: "/api/v1/clip-folders",
|
|
23827
|
+
scopes: ["videos:write", "library:write"],
|
|
23828
|
+
input: external_exports.object({ name: external_exports.string().trim().min(1).max(60).describe('Its name, e.g. "On stage"') }),
|
|
23829
|
+
readOnly: false,
|
|
23830
|
+
destructive: false,
|
|
23831
|
+
idempotent: false,
|
|
23832
|
+
cli: ["clip-folders", "create"],
|
|
23833
|
+
mcp: "create_clip_folder"
|
|
23834
|
+
},
|
|
23835
|
+
{
|
|
23836
|
+
id: "clip_folders.get",
|
|
23837
|
+
group: "looks",
|
|
23838
|
+
title: "Get a clip folder",
|
|
23839
|
+
summary: "A folder's clips and the imports still on their way",
|
|
23840
|
+
description: "clips (as list_clips) and imports (status queued, working or failed with error; done ones leave the list).",
|
|
23841
|
+
method: "GET",
|
|
23842
|
+
path: "/api/v1/clip-folders/{folder_id}",
|
|
23843
|
+
scopes: ["videos:read", "videos:write", "library:read"],
|
|
23844
|
+
input: external_exports.object({ folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)") }),
|
|
23845
|
+
readOnly: true,
|
|
23846
|
+
destructive: false,
|
|
23847
|
+
idempotent: true,
|
|
23848
|
+
cli: ["clip-folders", "get"],
|
|
23849
|
+
mcp: "get_clip_folder"
|
|
23850
|
+
},
|
|
23851
|
+
{
|
|
23852
|
+
id: "clip_folders.rename",
|
|
23853
|
+
group: "looks",
|
|
23854
|
+
title: "Rename a clip folder",
|
|
23855
|
+
summary: "Rename one of your clip folders",
|
|
23856
|
+
description: "",
|
|
23857
|
+
method: "PATCH",
|
|
23858
|
+
path: "/api/v1/clip-folders/{folder_id}",
|
|
23859
|
+
scopes: ["videos:write", "library:write"],
|
|
23860
|
+
input: external_exports.object({ folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)"), name: external_exports.string().trim().min(1).max(60) }),
|
|
23861
|
+
readOnly: false,
|
|
23862
|
+
destructive: false,
|
|
23863
|
+
idempotent: true,
|
|
23864
|
+
cli: ["clip-folders", "rename"],
|
|
23865
|
+
mcp: "rename_clip_folder"
|
|
23866
|
+
},
|
|
23867
|
+
{
|
|
23868
|
+
id: "clip_folders.delete",
|
|
23869
|
+
group: "looks",
|
|
23870
|
+
title: "Delete a clip folder",
|
|
23871
|
+
summary: "Remove a folder and its clips",
|
|
23872
|
+
description: "Videos already made with its clips keep them.",
|
|
23873
|
+
method: "DELETE",
|
|
23874
|
+
path: "/api/v1/clip-folders/{folder_id}",
|
|
23875
|
+
scopes: ["videos:write", "library:write"],
|
|
23876
|
+
input: external_exports.object({ folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)") }),
|
|
23877
|
+
readOnly: false,
|
|
23878
|
+
destructive: true,
|
|
23879
|
+
idempotent: true,
|
|
23880
|
+
cli: ["clip-folders", "delete"],
|
|
23881
|
+
mcp: "delete_clip_folder"
|
|
23882
|
+
},
|
|
23883
|
+
{
|
|
23884
|
+
id: "clip_folders.import",
|
|
23885
|
+
group: "looks",
|
|
23886
|
+
title: "Import clips",
|
|
23887
|
+
summary: "Cut a video into clips in one of your folders: a link, a file or a stock video",
|
|
23888
|
+
description: "One of: url (a YouTube, TikTok or Instagram link, up to 20 minutes), file_url (a video or photo sent with create_upload) or stock_id (a stock video from search_stock: it lands in this folder of yours, like any other source). Kinetune cuts it at every scene change into clips of 1\u20135 s, in the background (get_clip_folder shows it on its way). Only use clips you have the rights to. Free with an active plan (402 plan_required without one; get_account: plan.active); counts toward your storage.",
|
|
23889
|
+
method: "POST",
|
|
23890
|
+
path: "/api/v1/clip-folders/{folder_id}/imports",
|
|
23891
|
+
scopes: ["videos:write", "library:write"],
|
|
23892
|
+
input: external_exports.object({
|
|
23893
|
+
folder_id: external_exports.string().regex(/^folder_[0-9a-f-]{36}$/).describe("A clip folder id (folder_\u2026; list_clip_folders)"),
|
|
23894
|
+
url: external_exports.string().url().max(2e3).optional().describe("A YouTube, TikTok or Instagram link"),
|
|
23895
|
+
file_url: httpsUrl("a video or photo").optional(),
|
|
23896
|
+
stock_id: StockIdSchema.optional().describe("A stock video id (search_stock kind video)")
|
|
22334
23897
|
}),
|
|
22335
|
-
files: [{ field: "file", urlField: "file_url", accept: ["image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime", "video/webm"], description: "Your photo or video" }],
|
|
22336
23898
|
readOnly: false,
|
|
22337
23899
|
destructive: false,
|
|
22338
23900
|
idempotent: false,
|
|
22339
|
-
cli: ["
|
|
22340
|
-
mcp: "
|
|
23901
|
+
cli: ["clip-folders", "import"],
|
|
23902
|
+
mcp: "import_clips"
|
|
23903
|
+
},
|
|
23904
|
+
{
|
|
23905
|
+
id: "canvas_presets.list",
|
|
23906
|
+
group: "looks",
|
|
23907
|
+
title: "List your Canvas presets",
|
|
23908
|
+
summary: "Your saved Canvas looks, the latest saved first",
|
|
23909
|
+
description: "Each with id, name and look: loop, seconds, cut, crossfade, camera, fade, fill (and fill_colour), speed, grade and grade_amount, effects, light and atmosphere. A look holds no clips or song: to use one, send its fields in a Canvas request (picture fields for the clips settings, loop, seconds, light as {preset}, atmosphere and effects at the top).",
|
|
23910
|
+
method: "GET",
|
|
23911
|
+
path: "/api/v1/canvas-presets",
|
|
23912
|
+
scopes: ["videos:read", "videos:write"],
|
|
23913
|
+
input: external_exports.object({}),
|
|
23914
|
+
readOnly: true,
|
|
23915
|
+
destructive: false,
|
|
23916
|
+
idempotent: true,
|
|
23917
|
+
cli: ["canvas-presets", "list"],
|
|
23918
|
+
mcp: "list_canvas_presets"
|
|
23919
|
+
},
|
|
23920
|
+
{
|
|
23921
|
+
id: "canvas_presets.save",
|
|
23922
|
+
group: "looks",
|
|
23923
|
+
title: "Save a Canvas preset",
|
|
23924
|
+
summary: "Keep a Canvas look under a name for the next Canvas",
|
|
23925
|
+
description: "name (1\u201360 characters) and look (as list_canvas_presets shows it; fields left out take their defaults). The same name again replaces that preset's look. Up to 50 a workspace. Free.",
|
|
23926
|
+
method: "POST",
|
|
23927
|
+
path: "/api/v1/canvas-presets",
|
|
23928
|
+
scopes: ["videos:write"],
|
|
23929
|
+
input: external_exports.object({ name: external_exports.string().trim().min(1).max(60).describe('Its name, e.g. "Night drive"'), look: CanvasLookSchema }),
|
|
23930
|
+
readOnly: false,
|
|
23931
|
+
destructive: false,
|
|
23932
|
+
idempotent: false,
|
|
23933
|
+
cli: ["canvas-presets", "save"],
|
|
23934
|
+
mcp: "save_canvas_preset",
|
|
23935
|
+
example: { name: "Night drive", look: { loop: "drift", seconds: 8, crossfade: 1, grade: "noir", grade_amount: 0.7, effects: [{ id: "film-grain", amount: 0.5 }], atmosphere: "dust" } }
|
|
23936
|
+
},
|
|
23937
|
+
{
|
|
23938
|
+
id: "canvas_presets.rename",
|
|
23939
|
+
group: "looks",
|
|
23940
|
+
title: "Rename a Canvas preset",
|
|
23941
|
+
summary: "Rename one of your Canvas presets",
|
|
23942
|
+
description: "",
|
|
23943
|
+
method: "PATCH",
|
|
23944
|
+
path: "/api/v1/canvas-presets/{preset_id}",
|
|
23945
|
+
scopes: ["videos:write"],
|
|
23946
|
+
input: external_exports.object({ preset_id: external_exports.string().regex(/^preset_[0-9a-f-]{36}$/).describe("A Canvas preset id (preset_\u2026; list_canvas_presets)"), name: external_exports.string().trim().min(1).max(60) }),
|
|
23947
|
+
readOnly: false,
|
|
23948
|
+
destructive: false,
|
|
23949
|
+
idempotent: true,
|
|
23950
|
+
cli: ["canvas-presets", "rename"],
|
|
23951
|
+
mcp: "rename_canvas_preset"
|
|
23952
|
+
},
|
|
23953
|
+
{
|
|
23954
|
+
id: "canvas_presets.delete",
|
|
23955
|
+
group: "looks",
|
|
23956
|
+
title: "Delete a Canvas preset",
|
|
23957
|
+
summary: "Remove one of your Canvas presets",
|
|
23958
|
+
description: "Canvases already made with it keep their look.",
|
|
23959
|
+
method: "DELETE",
|
|
23960
|
+
path: "/api/v1/canvas-presets/{preset_id}",
|
|
23961
|
+
scopes: ["videos:write"],
|
|
23962
|
+
input: external_exports.object({ preset_id: external_exports.string().regex(/^preset_[0-9a-f-]{36}$/).describe("A Canvas preset id (preset_\u2026; list_canvas_presets)") }),
|
|
23963
|
+
readOnly: false,
|
|
23964
|
+
destructive: true,
|
|
23965
|
+
idempotent: true,
|
|
23966
|
+
cli: ["canvas-presets", "delete"],
|
|
23967
|
+
mcp: "delete_canvas_preset"
|
|
22341
23968
|
},
|
|
22342
23969
|
{
|
|
22343
23970
|
id: "stock.search",
|
|
22344
23971
|
group: "looks",
|
|
22345
23972
|
title: "Search stock media",
|
|
22346
|
-
summary: "Find stock photos or clips
|
|
22347
|
-
description: `24 results a page. Pass
|
|
23973
|
+
summary: "Find stock photos or clips for your clip folders, a Canvas or a kit piece",
|
|
23974
|
+
description: `24 results a page. Pass a video's id to import_clips (stock_id) to cut it into your clips, or an item's id as a Canvas's stock_id to use it instead of the director's pick, and credit its creator (credit: author, author_url, source_url and provider, the site it comes from) wherever you show it. Results come from every stock site Kinetune is set up with: ids from the first are digits, others are prefixed ("pixabay:123"); pass them as given. orientation: portrait for 9:16 and 1:1, landscape when 16:9 is among the formats (a Canvas is portrait). Clips too short for the loop are left out: pass seconds for a Canvas. thumbnail_url is a 480 px still, preview_url a 1280 px one (the photo, or the clip's poster), preview_video_url a small MP4 of a clip.`,
|
|
22348
23975
|
method: "GET",
|
|
22349
23976
|
path: "/api/v1/stock",
|
|
22350
23977
|
scopes: ["videos:read", "videos:write", "library:read"],
|
|
22351
23978
|
input: external_exports.object({
|
|
22352
|
-
kind: external_exports.enum(["photo", "video"]).describe("photo
|
|
23979
|
+
kind: external_exports.enum(["photo", "video"]).describe("photo or video"),
|
|
22353
23980
|
q: external_exports.string().trim().min(1).max(100).describe('Search words, e.g. "foggy pine forest"'),
|
|
22354
23981
|
orientation: external_exports.enum(["portrait", "landscape"]).optional().describe("Default portrait"),
|
|
22355
23982
|
page: external_exports.number().int().min(1).max(50).optional().describe("Default 1; next_page says whether there are more"),
|
|
22356
|
-
seconds: external_exports.number().int().min(5).max(8).optional().describe("Clips for a Canvas of this length (5\u20138); omit
|
|
23983
|
+
seconds: external_exports.number().int().min(5).max(8).optional().describe("Clips for a Canvas of this length (5\u20138); omit otherwise")
|
|
22357
23984
|
}),
|
|
22358
23985
|
readOnly: true,
|
|
22359
23986
|
destructive: false,
|
|
@@ -22368,7 +23995,7 @@ var OPERATIONS = [
|
|
|
22368
23995
|
group: "videos",
|
|
22369
23996
|
title: "Quote a lyric video",
|
|
22370
23997
|
summary: "The exact credits for a lyric video, before anything is charged",
|
|
22371
|
-
description: `Returns quote_id, credits (total), credits_per_video and a breakdown, and free: true when, without a plan, it is the
|
|
23998
|
+
description: `Returns quote_id, credits (total), credits_per_video and a breakdown, and free: true when, without a plan, it is one of the month's free videos (create_video then holds no credits). ${QUOTE_FIRST} A quote is valid for 30 minutes.`,
|
|
22372
23999
|
method: "POST",
|
|
22373
24000
|
path: "/api/v1/quotes",
|
|
22374
24001
|
scopes: ["videos:write", "videos:read"],
|
|
@@ -22379,7 +24006,7 @@ var OPERATIONS = [
|
|
|
22379
24006
|
idempotent: true,
|
|
22380
24007
|
cli: ["quote", "lyric-video"],
|
|
22381
24008
|
mcp: "quote_lyric_video",
|
|
22382
|
-
example: { song_id: "song_\u2026", look: {
|
|
24009
|
+
example: { song_id: "song_\u2026", look: { background: { kind: "clips", sources: { moods: ["city"], folders: [] } } }, aspect_ratios: ["9:16", "16:9"] }
|
|
22383
24010
|
},
|
|
22384
24011
|
{
|
|
22385
24012
|
id: "quotes.canvas",
|
|
@@ -22397,14 +24024,14 @@ var OPERATIONS = [
|
|
|
22397
24024
|
idempotent: true,
|
|
22398
24025
|
cli: ["quote", "canvas"],
|
|
22399
24026
|
mcp: "quote_canvas",
|
|
22400
|
-
example: { song_id: "song_\u2026",
|
|
24027
|
+
example: { song_id: "song_\u2026", picture: { kind: "clips", sources: { moods: ["euphoria"], folders: [] } }, loop: "cuts", seconds: 8 }
|
|
22401
24028
|
},
|
|
22402
24029
|
{
|
|
22403
24030
|
id: "music_video_plans.create",
|
|
22404
24031
|
group: "videos",
|
|
22405
24032
|
title: "Write a music video shot list",
|
|
22406
|
-
summary: "The director's shot list for a music video, the idea and every shot
|
|
22407
|
-
description: "
|
|
24033
|
+
summary: "The director's shot list for a music video, the idea and every shot (spends credits)",
|
|
24034
|
+
description: "Costs credits, and so does every rewrite with revise: tell the user the price (list_music_video_drafts price.credits) and send it as credits only after their go (a limited number an hour). A video made from it has no creative direction line in its quote: the shot list was paid for. Takes a minute or more (wait false answers at once with the shot list being written, read shot by shot with get_music_video_plan_write). Returns a plan: the concept, the character it keeps the artist from, and its shots (cut between the song's lines, up to about 14 seconds each) with their lyrics and how each comes in (a cut, or carrying on in a continuous take). Show it to the user, rewrite it with revise until they like it, then quote_music_video and create_music_video with its plan_id.",
|
|
22408
24035
|
method: "POST",
|
|
22409
24036
|
path: "/api/v1/music-video-plans",
|
|
22410
24037
|
scopes: ["videos:write"],
|
|
@@ -22417,6 +24044,23 @@ var OPERATIONS = [
|
|
|
22417
24044
|
output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema },
|
|
22418
24045
|
example: { song_id: "song_\u2026", category: "cinematic", aspect_ratio: "9:16", trim: { start_seconds: 32, end_seconds: 96 } }
|
|
22419
24046
|
},
|
|
24047
|
+
{
|
|
24048
|
+
id: "music_video_plans.write",
|
|
24049
|
+
group: "videos",
|
|
24050
|
+
title: "Read a shot list being written",
|
|
24051
|
+
summary: "A shot list the director is writing (plan_music_video with wait false): its shots as they are written",
|
|
24052
|
+
description: "status: writing, ready or failed. phase: writing, revising (rewriting it to pass the checks) or finishing. title and concept once written; shots: every shot's start_seconds, end_seconds, section and lyrics from the start, and its summary once written (null until then). Once ready, plan_id is the shot list (get_music_video_plan); once failed, error says why (nothing is charged). price.credits: what it costs, charged once ready. One whose writing was cut off reads as failed. The song's shot lists being written are also listed by list_music_video_drafts (writing).",
|
|
24053
|
+
method: "GET",
|
|
24054
|
+
path: "/api/v1/music-video-plan-writes/{write_id}",
|
|
24055
|
+
scopes: ["videos:read", "videos:write"],
|
|
24056
|
+
input: external_exports.object({ write_id: external_exports.string().regex(/^write_[0-9a-f-]{36}$/).describe("The shot list being written (write_\u2026), from plan_music_video with wait false") }),
|
|
24057
|
+
readOnly: true,
|
|
24058
|
+
destructive: false,
|
|
24059
|
+
idempotent: true,
|
|
24060
|
+
cli: ["plans", "writing"],
|
|
24061
|
+
mcp: "get_music_video_plan_write",
|
|
24062
|
+
example: { write_id: "write_\u2026" }
|
|
24063
|
+
},
|
|
22420
24064
|
{
|
|
22421
24065
|
id: "music_video_plans.swap_place",
|
|
22422
24066
|
group: "videos",
|
|
@@ -22434,217 +24078,207 @@ var OPERATIONS = [
|
|
|
22434
24078
|
mcp: "swap_music_video_place",
|
|
22435
24079
|
output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema }
|
|
22436
24080
|
},
|
|
22437
|
-
/* Casting */
|
|
22438
|
-
{
|
|
22439
|
-
id: "music_video_castings.create",
|
|
22440
|
-
group: "videos",
|
|
22441
|
-
title: "Cast a music video",
|
|
22442
|
-
summary: "The director proposes who else is in it: up to 3 new people, each drawn as a character sheet only after a yes",
|
|
22443
|
-
description: `Optional, after the idea and before the lookbook and the shot list (nobody appears on screen without a character sheet). Free (a limited number an hour), a few seconds: returns a casting whose people (at most ${CASTING_MAX_PEOPLE}, never more than the model's room in a shot beside the performer and the people already given) each have a role, a first name, what they do (does), a description their sheet is drawn from, and about how many shots they are in. With cast_mode exact, nobody on screen or no room, it proposes nobody (status ready, people []), without a director call. Show each person with price.per_person (price.credits for all); the user may drop anyone, edit a description, or put a kit character in that role instead; then draw_music_video_cast after their yes, or order the video with casting_id to draw them inside the order. Same brief as plan_music_video. Needs an active plan (402 plan_required without one; get_account: plan.active).`,
|
|
22444
|
-
method: "POST",
|
|
22445
|
-
path: "/api/v1/music-video-castings",
|
|
22446
|
-
scopes: ["videos:write"],
|
|
22447
|
-
input: musicVideoPlanInput.omit({ revise: true, lookbook_id: true }),
|
|
22448
|
-
readOnly: false,
|
|
22449
|
-
destructive: false,
|
|
22450
|
-
idempotent: false,
|
|
22451
|
-
cli: ["casting", "propose"],
|
|
22452
|
-
mcp: "cast_music_video",
|
|
22453
|
-
example: { song_id: "song_\u2026", category: "story", direction: "She leaves him at the station" }
|
|
22454
|
-
},
|
|
22455
24081
|
{
|
|
22456
|
-
id: "
|
|
24082
|
+
id: "music_video_plans.check_model",
|
|
22457
24083
|
group: "videos",
|
|
22458
|
-
title: "
|
|
22459
|
-
summary: "
|
|
22460
|
-
description: "
|
|
24084
|
+
title: "Check another model for a shot list",
|
|
24085
|
+
summary: "Whether a shot list can be kept with another video model, and what changes",
|
|
24086
|
+
description: "Nothing is saved or charged. Every model makes the same kind of shot list, so one usually moves as it is: can_switch says whether this one can (problems: why not, so it has to be written again with plan_music_video for that model); needs: what the model needs before the video can be paid for (a face check for a real person, a new character sheet its provider would take), which can be done after switching; changes: how the video is made differently with it (lip-sync, continuous takes, whole seconds, a drawn frame it can't open on), to tell the user before they pay; qualities: the resolutions it is offered in. Then switch_music_video_model after the user's yes.",
|
|
22461
24087
|
method: "GET",
|
|
22462
|
-
path: "/api/v1/music-video-
|
|
22463
|
-
scopes: ["videos:read"],
|
|
22464
|
-
input: external_exports.object({
|
|
24088
|
+
path: "/api/v1/music-video-plans/{plan_id}/model",
|
|
24089
|
+
scopes: ["videos:read", "videos:write"],
|
|
24090
|
+
input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"), model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).describe("The model to check (get_options music_video.models[].id)") }),
|
|
22465
24091
|
readOnly: true,
|
|
22466
24092
|
destructive: false,
|
|
22467
24093
|
idempotent: true,
|
|
22468
|
-
cli: ["
|
|
22469
|
-
mcp: "
|
|
24094
|
+
cli: ["plans", "check-model"],
|
|
24095
|
+
mcp: "check_music_video_model",
|
|
24096
|
+
example: { plan_id: "plan_\u2026", model: "seedance-2-5" }
|
|
22470
24097
|
},
|
|
22471
24098
|
{
|
|
22472
|
-
id: "
|
|
24099
|
+
id: "music_video_plans.switch_model",
|
|
22473
24100
|
group: "videos",
|
|
22474
|
-
title: "
|
|
22475
|
-
summary: "
|
|
22476
|
-
description: `
|
|
24101
|
+
title: "Switch a shot list's model",
|
|
24102
|
+
summary: "Keeps a shot list with another video model: the same shots, idea, people and frames",
|
|
24103
|
+
description: `Free, no director call. Returns the next draft (note "Made with \u2026"), made with that model: the same concept, shots, characters, places and drawn frames, each shot prompted for the new model; written_for keeps the model the director wrote it for. Quote and order with the new plan id (a test is made with it at 480p); a quote, test or video of the earlier draft keeps its own model. 409 with switch (as check_music_video_model) when the shot list can't be kept with that model. Check first and tell the user its changes and needs.`,
|
|
22477
24104
|
method: "POST",
|
|
22478
|
-
path: "/api/v1/music-video-
|
|
24105
|
+
path: "/api/v1/music-video-plans/{plan_id}/model",
|
|
22479
24106
|
scopes: ["videos:write"],
|
|
22480
|
-
input: external_exports.object({
|
|
22481
|
-
casting_id: CastingIdSchema.describe("The casting id"),
|
|
22482
|
-
credits: CastingDrawSchema.shape.credits.describe("The price shown: price.per_person \xD7 the people drawn"),
|
|
22483
|
-
people: CastingDrawSchema.shape.people.describe('The people kept: [{"index":1},{"index":2,"description":"\u2026"},{"index":3,"character":"mia-torres"}]; [] keeps it to the artist')
|
|
22484
|
-
}),
|
|
24107
|
+
input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"), model: external_exports.enum(MUSIC_VIDEO_MODEL_IDS).describe("The model to make it with") }),
|
|
22485
24108
|
readOnly: false,
|
|
22486
24109
|
destructive: false,
|
|
22487
|
-
idempotent:
|
|
22488
|
-
cli: ["
|
|
22489
|
-
mcp: "
|
|
24110
|
+
idempotent: true,
|
|
24111
|
+
cli: ["plans", "switch-model"],
|
|
24112
|
+
mcp: "switch_music_video_model",
|
|
24113
|
+
output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema },
|
|
24114
|
+
example: { plan_id: "plan_\u2026", model: "seedance-2-5" }
|
|
22490
24115
|
},
|
|
24116
|
+
/* Versions */
|
|
22491
24117
|
{
|
|
22492
|
-
id: "
|
|
24118
|
+
id: "music_video_plans.versions",
|
|
22493
24119
|
group: "videos",
|
|
22494
|
-
title: "
|
|
22495
|
-
summary: "
|
|
22496
|
-
description: "
|
|
22497
|
-
method: "
|
|
22498
|
-
path: "/api/v1/music-video-
|
|
22499
|
-
scopes: ["videos:
|
|
22500
|
-
input: external_exports.object({
|
|
22501
|
-
readOnly:
|
|
22502
|
-
destructive:
|
|
24120
|
+
title: "List a shot list's versions",
|
|
24121
|
+
summary: "Every version of a shot list, oldest first",
|
|
24122
|
+
description: "Each rewrite, place photo change, angle left out or model switch writes a new version of the same shot list. versions: each its id (a plan id: get_music_video_plan opens it, and quote_music_video / create_music_video take it as plan_id), number, the note it was written from, created_at, shots, and video (a video was made from it, so it stays). current: the number of plan_id among them.",
|
|
24123
|
+
method: "GET",
|
|
24124
|
+
path: "/api/v1/music-video-plans/{plan_id}/versions",
|
|
24125
|
+
scopes: ["videos:read"],
|
|
24126
|
+
input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("Any version of the shot list (plan_\u2026)") }),
|
|
24127
|
+
readOnly: true,
|
|
24128
|
+
destructive: false,
|
|
22503
24129
|
idempotent: true,
|
|
22504
|
-
cli: ["
|
|
22505
|
-
mcp: "
|
|
24130
|
+
cli: ["plans", "versions"],
|
|
24131
|
+
mcp: "list_music_video_versions"
|
|
22506
24132
|
},
|
|
22507
|
-
/* The lookbook */
|
|
22508
24133
|
{
|
|
22509
|
-
id: "
|
|
24134
|
+
id: "music_video_plans.delete_version",
|
|
22510
24135
|
group: "videos",
|
|
22511
|
-
title: "
|
|
22512
|
-
summary: "
|
|
22513
|
-
description:
|
|
22514
|
-
method: "
|
|
22515
|
-
path: "/api/v1/music-video-
|
|
24136
|
+
title: "Delete a version of a shot list",
|
|
24137
|
+
summary: "Removes one version; the others stay",
|
|
24138
|
+
description: "Only a version no video was made from (409 otherwise). The versions written from it are then written from the one before it. Its pictures stay (opening frames and place pictures are kept by what they show). Answers the versions left. To delete the whole shot list, delete_music_video_plan.",
|
|
24139
|
+
method: "DELETE",
|
|
24140
|
+
path: "/api/v1/music-video-plans/{plan_id}/versions/{version_id}",
|
|
22516
24141
|
scopes: ["videos:write"],
|
|
22517
|
-
input:
|
|
24142
|
+
input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("Any version of the shot list (plan_\u2026)"), version_id: MusicVideoPlanIdSchema.describe("The version to delete (versions[].id)") }),
|
|
22518
24143
|
readOnly: false,
|
|
22519
|
-
destructive:
|
|
22520
|
-
idempotent:
|
|
22521
|
-
cli: ["
|
|
22522
|
-
mcp: "
|
|
22523
|
-
example: { song_id: "song_\u2026", category: "story", direction: "@nina-kazora in the @blue-set" }
|
|
24144
|
+
destructive: true,
|
|
24145
|
+
idempotent: true,
|
|
24146
|
+
cli: ["plans", "delete-version"],
|
|
24147
|
+
mcp: "delete_music_video_version"
|
|
22524
24148
|
},
|
|
24149
|
+
/* A shot list's pictures */
|
|
22525
24150
|
{
|
|
22526
|
-
id: "
|
|
24151
|
+
id: "music_video_plans.pictures",
|
|
22527
24152
|
group: "videos",
|
|
22528
|
-
title: "
|
|
22529
|
-
summary: "
|
|
22530
|
-
description: "
|
|
24153
|
+
title: "List a shot list's pictures",
|
|
24154
|
+
summary: "Every picture a shot list draws (places, angles, outfits on its people, designed props), with each once drawn",
|
|
24155
|
+
description: "What a shot list's shots are made from that is drawn, each one picture: its places drawn from words and the angles of its places (kind place or angle: place, places[].index; angle), the outfits drawn on its people (kind outfit: the performer in outfits[].index, null for world.wardrobe; kind person: people[].index), and the props the director designed (kind prop: props[].index, those with designed true). key names each (place:3, outfit:1, outfit:world, person:1, prop:2); credits what drawing it costs now; image_url and thumbnail_url once drawn (signed for 7 days; null until then); kit_item_id the piece it waits as in the artist's kit. undrawn: the keys not drawn yet; credits: what drawing them all costs. Those not drawn are drawn while the video is made, in its quote; one drawn here is reused by the video, a later version, a revision and another model while what it shows is unchanged. Every drawn picture also waits in the song artist's kit (pending) until the user keeps it (update_kit_piece kept true) or leaves it out (delete_kit_piece).",
|
|
22531
24156
|
method: "GET",
|
|
22532
|
-
path: "/api/v1/music-video-
|
|
24157
|
+
path: "/api/v1/music-video-plans/{plan_id}/pictures",
|
|
22533
24158
|
scopes: ["videos:read"],
|
|
22534
|
-
input: external_exports.object({
|
|
24159
|
+
input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)") }),
|
|
22535
24160
|
readOnly: true,
|
|
22536
24161
|
destructive: false,
|
|
22537
24162
|
idempotent: true,
|
|
22538
|
-
cli: ["
|
|
22539
|
-
mcp: "
|
|
24163
|
+
cli: ["plans", "pictures"],
|
|
24164
|
+
mcp: "list_music_video_pictures"
|
|
22540
24165
|
},
|
|
22541
24166
|
{
|
|
22542
|
-
id: "
|
|
24167
|
+
id: "music_video_plans.draw_pictures",
|
|
22543
24168
|
group: "videos",
|
|
22544
|
-
title: "
|
|
22545
|
-
summary: "
|
|
22546
|
-
description:
|
|
22547
|
-
method: "
|
|
22548
|
-
path: "/api/v1/music-video-
|
|
24169
|
+
title: "Draw a shot list's pictures",
|
|
24170
|
+
summary: "Draws a shot list's places, angles, outfits and props, to see them before the video (spends credits)",
|
|
24171
|
+
description: `Without confirm: what drawing them costs (pictures to be drawn with each one's credits, and credits, the total), nothing drawn; tell the user, then send confirm true after their go with credits, the total shown (a different price answers 409 with the current one). pictures: the keys to draw (list_music_video_pictures), with the places an angle is drawn from that aren't yet; left out, every one not drawn yet. redraw true draws the ones named again (paid again; the earlier picture stays in the kit). Takes about a minute; charged for each picture drawn (failed lists any that couldn't be, not charged). Each waits in the song artist's kit to be kept. Answers like list_music_video_pictures. ${NEEDS_PLAN}`,
|
|
24172
|
+
method: "POST",
|
|
24173
|
+
path: "/api/v1/music-video-plans/{plan_id}/pictures",
|
|
22549
24174
|
scopes: ["videos:write"],
|
|
22550
|
-
input: external_exports.object({
|
|
24175
|
+
input: external_exports.object({
|
|
24176
|
+
plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"),
|
|
24177
|
+
pictures: external_exports.array(external_exports.string().regex(/^(place|outfit|person|prop):(\d+|world)$/)).min(1).max(40).optional().describe("The pictures to draw (pictures[].key: place:3, outfit:1, outfit:world, person:1, prop:2); left out: every one not drawn yet"),
|
|
24178
|
+
redraw: external_exports.boolean().optional().describe("true: draw the ones named again (paid again)"),
|
|
24179
|
+
confirm: external_exports.boolean().optional().describe("true: draw them (spends credits); left out: only the price"),
|
|
24180
|
+
credits: external_exports.number().int().min(0).optional().describe("With confirm: the total price shown")
|
|
24181
|
+
}),
|
|
22551
24182
|
readOnly: false,
|
|
22552
24183
|
destructive: false,
|
|
22553
|
-
idempotent:
|
|
22554
|
-
cli: ["
|
|
22555
|
-
mcp: "
|
|
24184
|
+
idempotent: false,
|
|
24185
|
+
cli: ["plans", "draw-pictures"],
|
|
24186
|
+
mcp: "draw_music_video_pictures",
|
|
24187
|
+
example: { plan_id: "plan_\u2026", confirm: true, credits: 54 }
|
|
22556
24188
|
},
|
|
22557
24189
|
{
|
|
22558
|
-
id: "
|
|
24190
|
+
id: "music_video_plans.drop_angle",
|
|
22559
24191
|
group: "videos",
|
|
22560
|
-
title: "
|
|
22561
|
-
summary: "
|
|
22562
|
-
description: "
|
|
24192
|
+
title: "Leave an angle out of a shot list",
|
|
24193
|
+
summary: "The next draft without one set angle: its shots go back to the place's own picture",
|
|
24194
|
+
description: "Returns the next draft (free, no director call): the shots shot from that angle are shot from its place's picture (or the angle it was drawn from), the rest unchanged. Only an angle (places[].angle not null).",
|
|
22563
24195
|
method: "DELETE",
|
|
22564
|
-
path: "/api/v1/music-video-
|
|
22565
|
-
scopes: ["videos:write"],
|
|
22566
|
-
input: external_exports.object({ lookbook_id: LookbookIdSchema.describe("The lookbook id (lookbook_\u2026)") }),
|
|
22567
|
-
readOnly: false,
|
|
22568
|
-
destructive: true,
|
|
22569
|
-
idempotent: true,
|
|
22570
|
-
cli: ["lookbook", "delete"],
|
|
22571
|
-
mcp: "delete_music_video_lookbook"
|
|
22572
|
-
},
|
|
22573
|
-
{
|
|
22574
|
-
id: "music_video_lookbooks.render",
|
|
22575
|
-
group: "videos",
|
|
22576
|
-
title: "Draw a lookbook",
|
|
22577
|
-
summary: "Draws the pieces not drawn yet (spends credits)",
|
|
22578
|
-
description: "credits is the price the user agreed to (price.draw.credits); a different price answers 409 with the current one. The credits are held, then charged as pictures are drawn; one that fails isn't charged. Poll get_music_video_lookbook until status is ready.",
|
|
22579
|
-
method: "POST",
|
|
22580
|
-
path: "/api/v1/music-video-lookbooks/{lookbook_id}/render",
|
|
24196
|
+
path: "/api/v1/music-video-plans/{plan_id}/angles/{place}",
|
|
22581
24197
|
scopes: ["videos:write"],
|
|
22582
|
-
input: external_exports.object({
|
|
24198
|
+
input: external_exports.object({ plan_id: MusicVideoPlanIdSchema.describe("The plan id (plan_\u2026)"), place: external_exports.number().int().min(1).describe("The angle's number (places[].index)") }),
|
|
22583
24199
|
readOnly: false,
|
|
22584
24200
|
destructive: false,
|
|
22585
24201
|
idempotent: false,
|
|
22586
|
-
cli: ["
|
|
22587
|
-
mcp: "
|
|
24202
|
+
cli: ["plans", "drop-angle"],
|
|
24203
|
+
mcp: "drop_music_video_angle",
|
|
24204
|
+
output: { name: "MusicVideoPlan", schema: MusicVideoPlanSchema }
|
|
22588
24205
|
},
|
|
24206
|
+
/* Casting */
|
|
22589
24207
|
{
|
|
22590
|
-
id: "
|
|
24208
|
+
id: "music_video_castings.create",
|
|
22591
24209
|
group: "videos",
|
|
22592
|
-
title: "
|
|
22593
|
-
summary: "
|
|
22594
|
-
description:
|
|
24210
|
+
title: "Cast a music video",
|
|
24211
|
+
summary: "The director proposes who else is in it: up to 3 new people, each drawn as a character sheet only after a yes",
|
|
24212
|
+
description: `Optional, after the idea and before the shot list (nobody appears on screen without a character sheet). Free (a limited number an hour), a few seconds: returns a casting whose people (at most ${CASTING_MAX_PEOPLE}, never more than the model's room in a shot beside the performer and the people already given) each have a role, a first name, what they do (does), a description their sheet is drawn from, and about how many shots they are in. With cast_mode exact, nobody on screen or no room, it proposes nobody (status ready, people []), without a director call. Show each person with price.per_person (price.credits for all); the user may drop anyone, edit a description, or put a kit character in that role instead; then draw_music_video_cast after their yes, or order the video with casting_id to draw them inside the order. Same brief as plan_music_video. Needs an active plan (402 plan_required without one; get_account: plan.active).`,
|
|
22595
24213
|
method: "POST",
|
|
22596
|
-
path: "/api/v1/music-video-
|
|
24214
|
+
path: "/api/v1/music-video-castings",
|
|
22597
24215
|
scopes: ["videos:write"],
|
|
22598
|
-
input:
|
|
24216
|
+
input: musicVideoPlanInput.omit({ revise: true, credits: true }),
|
|
22599
24217
|
readOnly: false,
|
|
22600
24218
|
destructive: false,
|
|
22601
24219
|
idempotent: false,
|
|
22602
|
-
cli: ["
|
|
22603
|
-
mcp: "
|
|
24220
|
+
cli: ["casting", "propose"],
|
|
24221
|
+
mcp: "cast_music_video",
|
|
24222
|
+
example: { song_id: "song_\u2026", category: "story", direction: "She leaves him at the station" }
|
|
22604
24223
|
},
|
|
22605
24224
|
{
|
|
22606
|
-
id: "
|
|
24225
|
+
id: "music_video_castings.get",
|
|
22607
24226
|
group: "videos",
|
|
22608
|
-
title: "
|
|
22609
|
-
summary: "
|
|
22610
|
-
description: "",
|
|
22611
|
-
method: "
|
|
22612
|
-
path: "/api/v1/music-video-
|
|
22613
|
-
scopes: ["videos:
|
|
22614
|
-
input: external_exports.object({
|
|
22615
|
-
readOnly:
|
|
24227
|
+
title: "Get a casting",
|
|
24228
|
+
summary: "A casting's people as proposed, then as drawn",
|
|
24229
|
+
description: "status: proposed (not drawn), drawing (their sheets are drawn: check back in about a minute), ready or failed. Each person: index, name, role, does, description, shots, state (proposed, declined, drawing, kept: drawn and in the song artist's kit; chosen: a kit character in that role; failed, with error) and character once kept or chosen. price.per_person is a sheet's price; charged is what was spent. people_for_brief, once ready: the {character, does} entries to add to people in plan_music_video, design_music_video_shoot and create_music_video.",
|
|
24230
|
+
method: "GET",
|
|
24231
|
+
path: "/api/v1/music-video-castings/{casting_id}",
|
|
24232
|
+
scopes: ["videos:read"],
|
|
24233
|
+
input: external_exports.object({ casting_id: CastingIdSchema.describe("The casting id (casting_\u2026)") }),
|
|
24234
|
+
readOnly: true,
|
|
22616
24235
|
destructive: false,
|
|
22617
24236
|
idempotent: true,
|
|
22618
|
-
cli: ["
|
|
22619
|
-
mcp: "
|
|
24237
|
+
cli: ["casting", "get"],
|
|
24238
|
+
mcp: "get_music_video_casting"
|
|
22620
24239
|
},
|
|
22621
24240
|
{
|
|
22622
|
-
id: "
|
|
24241
|
+
id: "music_video_castings.draw",
|
|
22623
24242
|
group: "videos",
|
|
22624
|
-
title: "
|
|
22625
|
-
summary: "Draws
|
|
22626
|
-
description:
|
|
24243
|
+
title: "Draw a music video's cast",
|
|
24244
|
+
summary: "Draws the people the user kept as character sheets (spends credits)",
|
|
24245
|
+
description: `Only after the user's yes to the people and the price. people: the ones kept, by index (the others are declined), each with an edited name or description if the user changed it, or character: a kit character's handle (list_characters) in that role instead, free. An empty list keeps it to the artist (nobody else is cast). credits must be price.per_person times the people drawn (0 when none is); another price answers 409 with the current one. Each description is read first like start_character's describe mode (one made-up adult, never a real or famous person: 422 naming the person's index). One hold for all; each sheet is drawn plain (base clothes, the person only: the video dresses them later), charged once it passes its check, and kept in the song artist's kit as AI-made, not shared. Poll get_music_video_casting until ready, then add people_for_brief to people. Needs an active plan (402 plan_required without one; get_account: plan.active).`,
|
|
22627
24246
|
method: "POST",
|
|
22628
|
-
path: "/api/v1/music-video-
|
|
24247
|
+
path: "/api/v1/music-video-castings/{casting_id}/draw",
|
|
22629
24248
|
scopes: ["videos:write"],
|
|
22630
24249
|
input: external_exports.object({
|
|
22631
|
-
|
|
22632
|
-
|
|
22633
|
-
|
|
22634
|
-
credits: external_exports.number().int().positive().describe("The price shown (price.credits_per_picture)")
|
|
24250
|
+
casting_id: CastingIdSchema.describe("The casting id"),
|
|
24251
|
+
credits: CastingDrawSchema.shape.credits.describe("The price shown: price.per_person \xD7 the people drawn"),
|
|
24252
|
+
people: CastingDrawSchema.shape.people.describe('The people kept: [{"index":1},{"index":2,"description":"\u2026"},{"index":3,"character":"mia-torres"}]; [] keeps it to the artist')
|
|
22635
24253
|
}),
|
|
22636
24254
|
readOnly: false,
|
|
22637
24255
|
destructive: false,
|
|
22638
24256
|
idempotent: false,
|
|
22639
|
-
cli: ["
|
|
22640
|
-
mcp: "
|
|
24257
|
+
cli: ["casting", "draw"],
|
|
24258
|
+
mcp: "draw_music_video_cast"
|
|
24259
|
+
},
|
|
24260
|
+
{
|
|
24261
|
+
id: "music_video_castings.delete",
|
|
24262
|
+
group: "videos",
|
|
24263
|
+
title: "Delete a casting",
|
|
24264
|
+
summary: "Deletes a casting; the people already kept stay in the kit",
|
|
24265
|
+
description: "Not while its people are drawn (409).",
|
|
24266
|
+
method: "DELETE",
|
|
24267
|
+
path: "/api/v1/music-video-castings/{casting_id}",
|
|
24268
|
+
scopes: ["videos:write"],
|
|
24269
|
+
input: external_exports.object({ casting_id: CastingIdSchema.describe("The casting id (casting_\u2026)") }),
|
|
24270
|
+
readOnly: false,
|
|
24271
|
+
destructive: true,
|
|
24272
|
+
idempotent: true,
|
|
24273
|
+
cli: ["casting", "delete"],
|
|
24274
|
+
mcp: "delete_music_video_casting"
|
|
22641
24275
|
},
|
|
22642
24276
|
{
|
|
22643
24277
|
id: "music_video_plans.delete",
|
|
22644
24278
|
group: "videos",
|
|
22645
24279
|
title: "Delete a shot list",
|
|
22646
24280
|
summary: "Deletes a shot list no video was made from, with every draft of it",
|
|
22647
|
-
description: "Deletes the shot list with
|
|
24281
|
+
description: "Deletes the shot list with every version of it (list_music_video_versions; delete_music_video_version deletes one). Opening frames drawn for it stay. One a video was made from (or a delivered video's revision) stays with it: 409.",
|
|
22648
24282
|
method: "DELETE",
|
|
22649
24283
|
path: "/api/v1/music-video-plans/{plan_id}",
|
|
22650
24284
|
scopes: ["videos:write"],
|
|
@@ -22659,8 +24293,8 @@ var OPERATIONS = [
|
|
|
22659
24293
|
id: "music_video_plans.list",
|
|
22660
24294
|
group: "videos",
|
|
22661
24295
|
title: "List music video drafts",
|
|
22662
|
-
summary: "A song's
|
|
22663
|
-
description: "
|
|
24296
|
+
summary: "A song's shot lists not made yet, and what writing one costs",
|
|
24297
|
+
description: "price.credits: what writing a shot list (plan_music_video) costs now, and rewriting one from a note. plans: the latest draft of each shot list of the song that no video was made from, from the last 30 days, newest first; pick one up with get_music_video_plan. writing: the shot lists still being written for you.",
|
|
22664
24298
|
method: "GET",
|
|
22665
24299
|
path: "/api/v1/music-video-plans",
|
|
22666
24300
|
scopes: ["videos:read"],
|
|
@@ -22993,6 +24627,44 @@ var OPERATIONS = [
|
|
|
22993
24627
|
cli: ["videos", "delete"],
|
|
22994
24628
|
mcp: "delete_video"
|
|
22995
24629
|
},
|
|
24630
|
+
{
|
|
24631
|
+
id: "video_drafts.list",
|
|
24632
|
+
group: "videos",
|
|
24633
|
+
title: "List video drafts",
|
|
24634
|
+
summary: "Videos started in the studio and not made yet, newest first (kept 30 days)",
|
|
24635
|
+
description: "The person's own drafts in this workspace: one per song and kind of video (lyric-video, canvas, music-video), with the step it was left on and when. Starting the same kind again for a song opens its draft. They are made in the studio on web and app; to make a video here, quote and create it.",
|
|
24636
|
+
method: "GET",
|
|
24637
|
+
path: "/api/v1/video-drafts",
|
|
24638
|
+
scopes: ["videos:read", "videos:write"],
|
|
24639
|
+
input: external_exports.object({}),
|
|
24640
|
+
readOnly: true,
|
|
24641
|
+
destructive: false,
|
|
24642
|
+
idempotent: true,
|
|
24643
|
+
cli: ["drafts", "list"],
|
|
24644
|
+
mcp: "list_video_drafts"
|
|
24645
|
+
},
|
|
24646
|
+
{
|
|
24647
|
+
id: "video_drafts.delete",
|
|
24648
|
+
group: "videos",
|
|
24649
|
+
title: "Delete video drafts",
|
|
24650
|
+
summary: "Delete one draft, or every draft (of a song or a kind)",
|
|
24651
|
+
description: "Only when the user asks. id: that draft. Without id, all: true deletes every one of the person's drafts in this workspace, only a song's with song_id, only a kind with type: tell the user how many (list_video_drafts) and ask first. Videos already made are never touched. Answers deleted, how many.",
|
|
24652
|
+
method: "DELETE",
|
|
24653
|
+
path: "/api/v1/video-drafts",
|
|
24654
|
+
scopes: ["videos:write"],
|
|
24655
|
+
input: external_exports.object({
|
|
24656
|
+
id: external_exports.uuid().optional().describe("The draft id (list_video_drafts)"),
|
|
24657
|
+
all: external_exports.literal(true).optional().describe("Without id: every draft, narrowed by song_id or type"),
|
|
24658
|
+
song_id: songId.optional().describe("With all: only this song's drafts"),
|
|
24659
|
+
type: external_exports.enum(["lyric-video", "canvas", "music-video"]).optional().describe("With all: only drafts of this kind")
|
|
24660
|
+
}),
|
|
24661
|
+
readOnly: false,
|
|
24662
|
+
destructive: true,
|
|
24663
|
+
idempotent: true,
|
|
24664
|
+
cli: ["drafts", "delete"],
|
|
24665
|
+
mcp: "delete_video_drafts",
|
|
24666
|
+
example: { all: true }
|
|
24667
|
+
},
|
|
22996
24668
|
{
|
|
22997
24669
|
id: "videos.share",
|
|
22998
24670
|
group: "videos",
|
|
@@ -25883,7 +27555,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25883
27555
|
const negativeNumberArg = (arg) => {
|
|
25884
27556
|
if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
|
|
25885
27557
|
return !this._getCommandAndAncestors().some(
|
|
25886
|
-
(cmd) => cmd.options.map((opt) => opt.short).some((
|
|
27558
|
+
(cmd) => cmd.options.map((opt) => opt.short).some((short2) => /^-\d$/.test(short2))
|
|
25887
27559
|
);
|
|
25888
27560
|
};
|
|
25889
27561
|
let activeVariadicOption = null;
|
|
@@ -26670,16 +28342,16 @@ function chosenWorkspace(config2, named = process.env.KINETUNE_ORGANIZATION) {
|
|
|
26670
28342
|
const wanted = named?.trim();
|
|
26671
28343
|
if (!wanted) return null;
|
|
26672
28344
|
const stored = Object.entries(config2.workspaces ?? {});
|
|
26673
|
-
const found = stored.find(([
|
|
28345
|
+
const found = stored.find(([id3]) => id3 === wanted) ?? stored.find(([, w]) => w.name.toLowerCase() === wanted.toLowerCase());
|
|
26674
28346
|
if (found) return found[0];
|
|
26675
|
-
throw new WorkspaceNotSignedIn(`Not signed in to ${wanted}${stored.length ? ` (signed in to: ${stored.map(([
|
|
28347
|
+
throw new WorkspaceNotSignedIn(`Not signed in to ${wanted}${stored.length ? ` (signed in to: ${stored.map(([id3, w]) => `${w.name} ${id3}`).join(", ")})` : ""}. Run \`kinetune auth login --organization ${wanted}\`.`);
|
|
26676
28348
|
}
|
|
26677
28349
|
var WorkspaceNotSignedIn = class extends Error {
|
|
26678
28350
|
};
|
|
26679
28351
|
var signInOf = (config2, organization) => organization ? config2.workspaces?.[organization]?.auth : config2.auth;
|
|
26680
28352
|
function withSignIn(config2, organization, auth) {
|
|
26681
28353
|
const previous = signInOf(config2, organization), same = (other) => Boolean(previous && other && secretOf(other) === secretOf(previous));
|
|
26682
|
-
const workspaces = config2.workspaces && Object.fromEntries(Object.entries(config2.workspaces).map(([
|
|
28354
|
+
const workspaces = config2.workspaces && Object.fromEntries(Object.entries(config2.workspaces).map(([id3, w]) => [id3, id3 === organization || same(w.auth) ? { ...w, auth } : w]));
|
|
26683
28355
|
return { ...config2, ...workspaces ? { workspaces } : {}, ...organization === null || same(config2.auth) ? { auth } : {} };
|
|
26684
28356
|
}
|
|
26685
28357
|
var secretOf = (auth) => auth.type === "oauth" ? auth.access_token : auth.api_key;
|
|
@@ -26834,7 +28506,7 @@ async function revoke(config2, auth = config2.auth) {
|
|
|
26834
28506
|
// package.json
|
|
26835
28507
|
var package_default = {
|
|
26836
28508
|
name: "@kinetune/cli",
|
|
26837
|
-
version: "
|
|
28509
|
+
version: "4.1.0",
|
|
26838
28510
|
description: "Command line for Kinetune: lyric videos, Spotify Canvas loops and AI music videos from your songs, for people and AI agents.",
|
|
26839
28511
|
license: "MIT",
|
|
26840
28512
|
homepage: "https://kinetune.com/developers#cli",
|
|
@@ -27022,7 +28694,7 @@ MCP tool: ${op.mcp} REST: ${op.method} ${op.path}`);
|
|
|
27022
28694
|
if (type === "boolean" || p.const === true) {
|
|
27023
28695
|
cmd.addOption(new Option(`--${kebab(name)}`, desc || name));
|
|
27024
28696
|
if (type === "boolean" && p.default === void 0) cmd.addOption(new Option(`--no-${kebab(name)}`, `Send ${name} false`));
|
|
27025
|
-
} else if (type === "array" && p.items?.type !== "object") cmd.addOption(new Option(`--${kebab(name)} <values...>`, desc).argParser((v, prev) => [...prev ?? [], ...v.split(",")]));
|
|
28697
|
+
} else if (type === "array" && p.items?.type !== "object" && !p.items?.anyOf && !p.items?.oneOf) cmd.addOption(new Option(`--${kebab(name)} <values...>`, desc).argParser((v, prev) => [...prev ?? [], ...v.split(",")]));
|
|
27026
28698
|
else if (type === "number" || type === "integer") cmd.addOption(new Option(`--${kebab(name)} <number>`, desc).argParser(Number));
|
|
27027
28699
|
else if (type === "object" || type === "json" || type === "array") cmd.addOption(new Option(`--${kebab(name)} <json>`, `${desc} (JSON)`).argParser((v) => {
|
|
27028
28700
|
try {
|
|
@@ -27033,6 +28705,8 @@ MCP tool: ${op.mcp} REST: ${op.method} ${op.path}`);
|
|
|
27033
28705
|
}));
|
|
27034
28706
|
else cmd.addOption(new Option(`--${kebab(name)} <value>`, desc));
|
|
27035
28707
|
}
|
|
28708
|
+
const deprecated = new Set(Object.entries(props).filter(([, prop]) => prop.deprecated || unwrapNullable(prop).schema.deprecated).map(([name]) => `--${kebab(name)}`));
|
|
28709
|
+
for (const option of cmd.options) if (deprecated.has(option.long ?? "")) option.hideHelp();
|
|
27036
28710
|
for (const name of op.textFiles ?? []) cmd.option(`--${kebab(name)}-file <file>`, `${props[name]?.description ?? name}: read from a file (or - for stdin)`);
|
|
27037
28711
|
cmd.option("--input <file>", "The whole input as JSON (a file, or - for stdin); flags override it");
|
|
27038
28712
|
cmd.addOption(WORKSPACE_OPTION());
|
|
@@ -27109,17 +28783,18 @@ function program2() {
|
|
|
27109
28783
|
});
|
|
27110
28784
|
const GROUP_DESCRIPTIONS = {
|
|
27111
28785
|
" uploads": "A signed upload URL for a file (for tools that pass URLs; the CLI sends files itself)",
|
|
27112
|
-
" artists": "Artists and their
|
|
28786
|
+
" artists": "Artists, their image, their page and their profiles",
|
|
28787
|
+
" artists profiles": "The artist's links on other services: list, add, order, change, remove, find again",
|
|
28788
|
+
" artists page": "The artist page at kinetune.com/@handle: address, draft, preview, publish, stats",
|
|
27113
28789
|
" songs": "Songs: upload, list, analysis",
|
|
27114
28790
|
" looks": "Looks: reusable lyric-video designs",
|
|
27115
28791
|
" quote": "Exact credits for a lyric video, Canvas or music video, before anything is charged",
|
|
27116
28792
|
" create": "Create a lyric video, Canvas or music video (quotes first and asks unless --yes)",
|
|
27117
28793
|
" videos": "Videos: status, wait, download, cancel",
|
|
27118
|
-
" plan": "Plan a music video
|
|
28794
|
+
" plan": "Plan a music video: the director's concept and shots, for the credits plans list shows",
|
|
27119
28795
|
" plans": "Music video plans made earlier",
|
|
27120
28796
|
" kit": "The artist kit: outfits, places and props a music video brief mentions by @handle",
|
|
27121
28797
|
" casting": "Who else is in a music video: the director proposes people, each drawn as a character sheet after your yes",
|
|
27122
|
-
" lookbook": "Design a music video shoot: the director's outfits, places and props as pictures, before the plan",
|
|
27123
28798
|
" covers": "Cover art: Kinetune makes covers for a song (quote first), every cover kept; use, redraw or delete one"
|
|
27124
28799
|
};
|
|
27125
28800
|
const groups = /* @__PURE__ */ new Map();
|
|
@@ -27160,7 +28835,7 @@ function program2() {
|
|
|
27160
28835
|
auth.command("list").description("The workspaces you are signed in to; --organization picks one for a command").action(async () => {
|
|
27161
28836
|
const config2 = await loadConfig();
|
|
27162
28837
|
const active = Object.entries(config2.workspaces ?? {}).find(([, w]) => config2.auth && JSON.stringify(w.auth) === JSON.stringify(config2.auth))?.[0];
|
|
27163
|
-
print({ items: Object.entries(config2.workspaces ?? {}).map(([
|
|
28838
|
+
print({ items: Object.entries(config2.workspaces ?? {}).map(([id3, w]) => ({ id: id3, name: w.name, type: w.auth.type === "oauth" ? "sign-in" : "api key", status: id3 === active ? "default" : "" })) });
|
|
27164
28839
|
});
|
|
27165
28840
|
auth.command("status").description("The workspace, its plan, how you are signed in and the credit balance").addOption(WORKSPACE_OPTION()).action(async () => print(await call(operation("account.get"), {})));
|
|
27166
28841
|
auth.command("token").description("Print the current bearer token (for curl or other tools)").addOption(WORKSPACE_OPTION()).action(async () => {
|
|
@@ -27169,16 +28844,16 @@ function program2() {
|
|
|
27169
28844
|
auth.command("logout").description("Forget the stored credentials (and revoke the OAuth tokens); --organization: only that workspace's").addOption(WORKSPACE_OPTION()).action(async () => {
|
|
27170
28845
|
const config2 = await loadConfig();
|
|
27171
28846
|
if (workspace) {
|
|
27172
|
-
let
|
|
28847
|
+
let id3;
|
|
27173
28848
|
try {
|
|
27174
|
-
|
|
28849
|
+
id3 = chosenWorkspace(config2, workspace);
|
|
27175
28850
|
} catch (error62) {
|
|
27176
28851
|
if (error62 instanceof WorkspaceNotSignedIn) throw new UsageError(error62.message);
|
|
27177
28852
|
throw error62;
|
|
27178
28853
|
}
|
|
27179
|
-
const gone = config2.workspaces[
|
|
28854
|
+
const gone = config2.workspaces[id3];
|
|
27180
28855
|
await revoke(config2, gone.auth);
|
|
27181
|
-
const { [
|
|
28856
|
+
const { [id3]: _, ...rest } = config2.workspaces;
|
|
27182
28857
|
const isDefault = JSON.stringify(config2.auth) === JSON.stringify(gone.auth);
|
|
27183
28858
|
const next = Object.values(rest)[0];
|
|
27184
28859
|
await saveConfig({ ...config2, workspaces: rest, ...isDefault ? { auth: next?.auth } : {} });
|