ApiSchemasVariables
Variable: track
const track: object & Typed<{
album?: string;
artists?: readonly string[];
duration?: number;
isrc?: string;
mbid?: string;
title: string;
}>;Defined in: packages/core/src/schemas/library/media.ts:110
A piece of music, known by its ids; file when the space holds the audio.
Type Declaration
description
readonly description: "A piece of music, by title, artists and ids. Its audio, when the space holds it, is a std.file it links to. A playlist is a std.list." = 'A piece of music, by title, artists and ids. Its audio, when the space holds it, is a std.file it links to. A playlist is a std.list.';links
readonly links: object;links.file
readonly file: LinkDeclaration;name
readonly name: "std.track" = 'std.track';schema
readonly schema: object;schema.properties
readonly properties: object;schema.properties.album
readonly album: object;schema.properties.album.maxLength
maxLength: number = max;schema.properties.album.minLength?
minLength?: number = min;schema.properties.album.type
type: "string";schema.properties.artists
readonly artists: object;schema.properties.artists.items
readonly items: object;schema.properties.artists.items.maxLength
maxLength: number = max;schema.properties.artists.items.minLength?
minLength?: number = min;schema.properties.artists.items.type
type: "string";schema.properties.artists.maxItems
readonly maxItems: 20 = 20;schema.properties.artists.type
readonly type: "array" = 'array';schema.properties.duration
readonly duration: object;schema.properties.duration.description
readonly description: "Seconds" = 'Seconds';schema.properties.duration.minimum
readonly minimum: 0 = 0;schema.properties.duration.type
readonly type: "number" = 'number';schema.properties.isrc
readonly isrc: object;schema.properties.isrc.maxLength
maxLength: number = max;schema.properties.isrc.minLength?
minLength?: number = min;schema.properties.isrc.type
type: "string";schema.properties.mbid
readonly mbid: object;schema.properties.mbid.maxLength
maxLength: number = max;schema.properties.mbid.minLength?
minLength?: number = min;schema.properties.mbid.type
type: "string";schema.properties.title
readonly title: object;schema.properties.title.maxLength
maxLength: number = max;schema.properties.title.minLength?
minLength?: number = min;schema.properties.title.type
type: "string";schema.required
readonly required: readonly ["title"];schema.type
readonly type: "object" = 'object';title
readonly title: "Track" = 'Track';