///
import type { WalletAdapter } from '@solana/wallet-adapter-base';
import { z } from 'zod';
import type { ClaimableTokensClient, EntityManagerService, LoggerService, PaymentRouterClient, SolanaClient, SolanaRelayService } from '../../services';
import { type StorageService } from '../../services/Storage/types';
import { AudioFile, ImageFile } from '../../types/File';
import { StemCategory } from '../../types/StemCategory';
import { Mood, Genre, type UpdateTrackRequest, type CreateTrackRequest } from '../generated/default';
export type TracksApiServicesConfig = {
storage: StorageService;
entityManager?: EntityManagerService;
logger?: LoggerService;
claimableTokensClient: ClaimableTokensClient;
paymentRouterClient: PaymentRouterClient;
solanaRelay: SolanaRelayService;
solanaClient: SolanaClient;
};
export declare const EthCollectibleGatedConditions: z.ZodObject<{
chain: z.ZodLiteral<"eth">;
address: z.ZodString;
standard: z.ZodUnion<[z.ZodLiteral<"ERC721">, z.ZodLiteral<"ERC1155">]>;
name: z.ZodString;
slug: z.ZodString;
imageUrl: z.ZodOptional;
externalLink: z.ZodNullable>;
}, "strict", z.ZodTypeAny, {
name: string;
address: string;
chain: "eth";
standard: "ERC721" | "ERC1155";
slug: string;
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}, {
name: string;
address: string;
chain: "eth";
standard: "ERC721" | "ERC1155";
slug: string;
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}>;
export declare const SolCollectibleGatedConditions: z.ZodObject<{
chain: z.ZodLiteral<"sol">;
address: z.ZodString;
name: z.ZodString;
imageUrl: z.ZodOptional;
externalLink: z.ZodNullable>;
}, "strict", z.ZodTypeAny, {
name: string;
address: string;
chain: "sol";
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}, {
name: string;
address: string;
chain: "sol";
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}>;
export declare const CollectibleGatedConditions: z.ZodObject<{
nftCollection: z.ZodOptional;
address: z.ZodString;
standard: z.ZodUnion<[z.ZodLiteral<"ERC721">, z.ZodLiteral<"ERC1155">]>;
name: z.ZodString;
slug: z.ZodString;
imageUrl: z.ZodOptional;
externalLink: z.ZodNullable>;
}, "strict", z.ZodTypeAny, {
name: string;
address: string;
chain: "eth";
standard: "ERC721" | "ERC1155";
slug: string;
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}, {
name: string;
address: string;
chain: "eth";
standard: "ERC721" | "ERC1155";
slug: string;
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}>, z.ZodObject<{
chain: z.ZodLiteral<"sol">;
address: z.ZodString;
name: z.ZodString;
imageUrl: z.ZodOptional;
externalLink: z.ZodNullable>;
}, "strict", z.ZodTypeAny, {
name: string;
address: string;
chain: "sol";
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}, {
name: string;
address: string;
chain: "sol";
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
}>]>>;
}, "strict", z.ZodTypeAny, {
nftCollection?: {
name: string;
address: string;
chain: "eth";
standard: "ERC721" | "ERC1155";
slug: string;
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
} | {
name: string;
address: string;
chain: "sol";
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
} | undefined;
}, {
nftCollection?: {
name: string;
address: string;
chain: "eth";
standard: "ERC721" | "ERC1155";
slug: string;
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
} | {
name: string;
address: string;
chain: "sol";
imageUrl?: string | undefined;
externalLink?: string | null | undefined;
} | undefined;
}>;
export declare const FollowGatedConditions: z.ZodObject<{
followUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
followUserId: number;
}, {
followUserId: number;
}>;
export declare const TipGatedConditions: z.ZodObject<{
tipUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
tipUserId: number;
}, {
tipUserId: number;
}>;
export declare const TokenGatedConditions: z.ZodObject<{
tokenGate: z.ZodObject<{
tokenMint: z.ZodString;
tokenAmount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tokenMint: string;
tokenAmount: number;
}, {
tokenMint: string;
tokenAmount: number;
}>;
}, "strict", z.ZodTypeAny, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}>;
export declare const USDCPurchaseConditions: z.ZodObject<{
usdcPurchase: z.ZodObject<{
price: z.ZodNumber;
splits: z.ZodArray, "many">;
}, "strip", z.ZodTypeAny, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}>;
}, "strict", z.ZodTypeAny, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}>;
export declare const UploadStemMetadataSchema: z.ZodObject<{
category: z.ZodEnum<[StemCategory, ...StemCategory[]]>;
parentTrackId: z.ZodEffects;
}, "strip", z.ZodTypeAny, {
category: StemCategory;
parentTrackId: number;
}, {
category: StemCategory;
parentTrackId: string;
}>;
export declare const UploadTrackMetadataSchema: z.ZodObject<{
trackId: z.ZodOptional>;
ownerId: z.ZodOptional;
aiAttributionUserId: z.ZodOptional>;
description: z.ZodOptional>;
fieldVisibility: z.ZodOptional;
tags: z.ZodOptional;
genre: z.ZodOptional;
share: z.ZodOptional;
playCount: z.ZodOptional;
remixes: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
}, {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
}>>;
genre: z.ZodEnum<[Genre, ...Genre[]]>;
isrc: z.ZodOptional>;
isUnlisted: z.ZodOptional;
iswc: z.ZodOptional>;
license: z.ZodOptional>;
mood: z.ZodOptional>>;
isStreamGated: z.ZodOptional;
streamConditions: z.ZodNullable, z.ZodObject<{
tipUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
tipUserId: number;
}, {
tipUserId: number;
}>, z.ZodObject<{
usdcPurchase: z.ZodObject<{
price: z.ZodNumber;
splits: z.ZodArray, "many">;
}, "strip", z.ZodTypeAny, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}>;
}, "strict", z.ZodTypeAny, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}>, z.ZodObject<{
tokenGate: z.ZodObject<{
tokenMint: z.ZodString;
tokenAmount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tokenMint: string;
tokenAmount: number;
}, {
tokenMint: string;
tokenAmount: number;
}>;
}, "strict", z.ZodTypeAny, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}>]>>>;
accessAuthorities: z.ZodOptional>>;
isDownloadGated: z.ZodOptional;
downloadConditions: z.ZodNullable, z.ZodObject<{
tipUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
tipUserId: number;
}, {
tipUserId: number;
}>, z.ZodObject<{
usdcPurchase: z.ZodObject<{
price: z.ZodNumber;
splits: z.ZodArray, "many">;
}, "strip", z.ZodTypeAny, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}>;
}, "strict", z.ZodTypeAny, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}>, z.ZodObject<{
tokenGate: z.ZodObject<{
tokenMint: z.ZodString;
tokenAmount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tokenMint: string;
tokenAmount: number;
}, {
tokenMint: string;
tokenAmount: number;
}>;
}, "strict", z.ZodTypeAny, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}>]>>>;
releaseDate: z.ZodOptional;
remixOf: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
parentTrackId: number;
}, {
parentTrackId: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
tracks: {
parentTrackId: number;
}[];
}, {
tracks: {
parentTrackId: string;
}[];
}>>;
stemOf: z.ZodOptional;
parentTrackId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
category: StemCategory;
parentTrackId: number;
}, {
category: StemCategory;
parentTrackId: string;
}>>;
tags: z.ZodNullable>;
title: z.ZodString;
duration: z.ZodOptional;
previewStartSeconds: z.ZodOptional;
placementHosts: z.ZodOptional;
audioUploadId: z.ZodOptional;
trackCid: z.ZodOptional;
previewCid: z.ZodOptional;
origFileCid: z.ZodOptional;
origFilename: z.ZodOptional;
coverArtSizes: z.ZodOptional;
isDownloadable: z.ZodOptional;
isOriginalAvailable: z.ZodOptional;
ddexReleaseIds: z.ZodOptional>>;
ddexApp: z.ZodNullable>;
artists: z.ZodNullable;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>;
resourceContributors: z.ZodOptional;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>;
indirectResourceContributors: z.ZodOptional;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>;
rightsController: z.ZodOptional;
rights_share_unknown: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
}, {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
}>>>;
copyrightLine: z.ZodOptional>>;
producerCopyrightLine: z.ZodOptional>>;
parentalWarningType: z.ZodOptional>;
bpm: z.ZodOptional>;
isCustomBpm: z.ZodOptional;
musicalKey: z.ZodOptional>;
isCustomMusicalKey: z.ZodOptional;
audioAnalysisErrorCount: z.ZodOptional;
commentsDisabled: z.ZodOptional;
isScheduledRelease: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
genre: "Electronic" | "Rock" | "Metal" | "Alternative" | "Hip-Hop/Rap" | "Experimental" | "Punk" | "Folk" | "Pop" | "Ambient" | "Soundtrack" | "World" | "Jazz" | "Acoustic" | "Funk" | "R&B/Soul" | "Devotional" | "Classical" | "Reggae" | "Podcasts" | "Country" | "Spoken Word" | "Comedy" | "Blues" | "Kids" | "Audiobooks" | "Latin" | "Lo-Fi" | "Hyperpop" | "Dancehall" | "Techno" | "Trap" | "House" | "Tech House" | "Deep House" | "Disco" | "Electro" | "Jungle" | "Progressive House" | "Hardstyle" | "Glitch Hop" | "Trance" | "Future Bass" | "Future House" | "Tropical House" | "Downtempo" | "Drum & Bass" | "Dubstep" | "Jersey Club" | "Vaporwave" | "Moombahton";
title: string;
trackId?: number | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: number | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: number;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: number;
} | undefined;
tags?: string | null | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
}, {
genre: "Electronic" | "Rock" | "Metal" | "Alternative" | "Hip-Hop/Rap" | "Experimental" | "Punk" | "Folk" | "Pop" | "Ambient" | "Soundtrack" | "World" | "Jazz" | "Acoustic" | "Funk" | "R&B/Soul" | "Devotional" | "Classical" | "Reggae" | "Podcasts" | "Country" | "Spoken Word" | "Comedy" | "Blues" | "Kids" | "Audiobooks" | "Latin" | "Lo-Fi" | "Hyperpop" | "Dancehall" | "Techno" | "Trap" | "House" | "Tech House" | "Deep House" | "Disco" | "Electro" | "Jungle" | "Progressive House" | "Hardstyle" | "Glitch Hop" | "Trance" | "Future Bass" | "Future House" | "Tropical House" | "Downtempo" | "Drum & Bass" | "Dubstep" | "Jersey Club" | "Vaporwave" | "Moombahton";
title: string;
trackId?: string | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: string | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: string;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: string;
} | undefined;
tags?: string | null | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
}>;
export type TrackMetadata = z.input;
export declare const UploadTrackFilesProgressEventSchema: z.ZodObject<{
total: z.ZodNumber;
loaded: z.ZodNumber;
transcode: z.ZodNumber;
key: z.ZodEnum<["audio", "image"]>;
}, "strip", z.ZodTypeAny, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}>;
/**
* The progress event emitted during track file uploads
*/
type UploadTrackFilesProgressEvent = z.input;
export declare const UploadTrackFilesProgressHandlerSchema: z.ZodFunction;
}, "strip", z.ZodTypeAny, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}>], z.ZodUnknown>, z.ZodVoid>;
export type UploadTrackFilesProgressHandler = (
/**
* Overall progress percentage (0-1)
*/
progress: number,
/**
* The progress event
*/
event: UploadTrackFilesProgressEvent) => void;
export declare const UploadTrackSchema: z.ZodObject<{
userId: z.ZodEffects;
audioFile: z.ZodEffects;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>;
imageFile: z.ZodEffects;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>;
metadata: z.ZodObject<{
trackId: z.ZodOptional>;
ownerId: z.ZodOptional;
aiAttributionUserId: z.ZodOptional>;
description: z.ZodOptional>;
fieldVisibility: z.ZodOptional;
tags: z.ZodOptional;
genre: z.ZodOptional;
share: z.ZodOptional;
playCount: z.ZodOptional;
remixes: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
}, {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
}>>;
genre: z.ZodEnum<[Genre, ...Genre[]]>;
isrc: z.ZodOptional>;
isUnlisted: z.ZodOptional;
iswc: z.ZodOptional>;
license: z.ZodOptional>;
mood: z.ZodOptional>>;
isStreamGated: z.ZodOptional;
streamConditions: z.ZodNullable, z.ZodObject<{
tipUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
tipUserId: number;
}, {
tipUserId: number;
}>, z.ZodObject<{
usdcPurchase: z.ZodObject<{
price: z.ZodNumber;
splits: z.ZodArray, "many">;
}, "strip", z.ZodTypeAny, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}>;
}, "strict", z.ZodTypeAny, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}>, z.ZodObject<{
tokenGate: z.ZodObject<{
tokenMint: z.ZodString;
tokenAmount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tokenMint: string;
tokenAmount: number;
}, {
tokenMint: string;
tokenAmount: number;
}>;
}, "strict", z.ZodTypeAny, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}>]>>>;
accessAuthorities: z.ZodOptional>>;
isDownloadGated: z.ZodOptional;
downloadConditions: z.ZodNullable, z.ZodObject<{
tipUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
tipUserId: number;
}, {
tipUserId: number;
}>, z.ZodObject<{
usdcPurchase: z.ZodObject<{
price: z.ZodNumber;
splits: z.ZodArray, "many">;
}, "strip", z.ZodTypeAny, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}>;
}, "strict", z.ZodTypeAny, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}>, z.ZodObject<{
tokenGate: z.ZodObject<{
tokenMint: z.ZodString;
tokenAmount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tokenMint: string;
tokenAmount: number;
}, {
tokenMint: string;
tokenAmount: number;
}>;
}, "strict", z.ZodTypeAny, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}>]>>>;
releaseDate: z.ZodOptional;
remixOf: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
parentTrackId: number;
}, {
parentTrackId: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
tracks: {
parentTrackId: number;
}[];
}, {
tracks: {
parentTrackId: string;
}[];
}>>;
stemOf: z.ZodOptional;
parentTrackId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
category: StemCategory;
parentTrackId: number;
}, {
category: StemCategory;
parentTrackId: string;
}>>;
tags: z.ZodNullable>;
title: z.ZodString;
duration: z.ZodOptional;
previewStartSeconds: z.ZodOptional;
placementHosts: z.ZodOptional;
audioUploadId: z.ZodOptional;
trackCid: z.ZodOptional;
previewCid: z.ZodOptional;
origFileCid: z.ZodOptional;
origFilename: z.ZodOptional;
coverArtSizes: z.ZodOptional;
isDownloadable: z.ZodOptional;
isOriginalAvailable: z.ZodOptional;
ddexReleaseIds: z.ZodOptional>>;
ddexApp: z.ZodNullable>;
artists: z.ZodNullable;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>;
resourceContributors: z.ZodOptional;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>;
indirectResourceContributors: z.ZodOptional;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>;
rightsController: z.ZodOptional;
rights_share_unknown: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
}, {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
}>>>;
copyrightLine: z.ZodOptional>>;
producerCopyrightLine: z.ZodOptional>>;
parentalWarningType: z.ZodOptional>;
bpm: z.ZodOptional>;
isCustomBpm: z.ZodOptional;
musicalKey: z.ZodOptional>;
isCustomMusicalKey: z.ZodOptional;
audioAnalysisErrorCount: z.ZodOptional;
commentsDisabled: z.ZodOptional;
isScheduledRelease: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
genre: "Electronic" | "Rock" | "Metal" | "Alternative" | "Hip-Hop/Rap" | "Experimental" | "Punk" | "Folk" | "Pop" | "Ambient" | "Soundtrack" | "World" | "Jazz" | "Acoustic" | "Funk" | "R&B/Soul" | "Devotional" | "Classical" | "Reggae" | "Podcasts" | "Country" | "Spoken Word" | "Comedy" | "Blues" | "Kids" | "Audiobooks" | "Latin" | "Lo-Fi" | "Hyperpop" | "Dancehall" | "Techno" | "Trap" | "House" | "Tech House" | "Deep House" | "Disco" | "Electro" | "Jungle" | "Progressive House" | "Hardstyle" | "Glitch Hop" | "Trance" | "Future Bass" | "Future House" | "Tropical House" | "Downtempo" | "Drum & Bass" | "Dubstep" | "Jersey Club" | "Vaporwave" | "Moombahton";
title: string;
trackId?: number | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: number | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: number;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: number;
} | undefined;
tags?: string | null | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
}, {
genre: "Electronic" | "Rock" | "Metal" | "Alternative" | "Hip-Hop/Rap" | "Experimental" | "Punk" | "Folk" | "Pop" | "Ambient" | "Soundtrack" | "World" | "Jazz" | "Acoustic" | "Funk" | "R&B/Soul" | "Devotional" | "Classical" | "Reggae" | "Podcasts" | "Country" | "Spoken Word" | "Comedy" | "Blues" | "Kids" | "Audiobooks" | "Latin" | "Lo-Fi" | "Hyperpop" | "Dancehall" | "Techno" | "Trap" | "House" | "Tech House" | "Deep House" | "Disco" | "Electro" | "Jungle" | "Progressive House" | "Hardstyle" | "Glitch Hop" | "Trance" | "Future Bass" | "Future House" | "Tropical House" | "Downtempo" | "Drum & Bass" | "Dubstep" | "Jersey Club" | "Vaporwave" | "Moombahton";
title: string;
trackId?: string | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: string | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: string;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: string;
} | undefined;
tags?: string | null | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
}>;
onProgress: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}>], z.ZodUnknown>, z.ZodVoid>>;
}, "strict", z.ZodTypeAny, {
userId: number;
metadata: {
genre: "Electronic" | "Rock" | "Metal" | "Alternative" | "Hip-Hop/Rap" | "Experimental" | "Punk" | "Folk" | "Pop" | "Ambient" | "Soundtrack" | "World" | "Jazz" | "Acoustic" | "Funk" | "R&B/Soul" | "Devotional" | "Classical" | "Reggae" | "Podcasts" | "Country" | "Spoken Word" | "Comedy" | "Blues" | "Kids" | "Audiobooks" | "Latin" | "Lo-Fi" | "Hyperpop" | "Dancehall" | "Techno" | "Trap" | "House" | "Tech House" | "Deep House" | "Disco" | "Electro" | "Jungle" | "Progressive House" | "Hardstyle" | "Glitch Hop" | "Trance" | "Future Bass" | "Future House" | "Tropical House" | "Downtempo" | "Drum & Bass" | "Dubstep" | "Jersey Club" | "Vaporwave" | "Moombahton";
title: string;
trackId?: number | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: number | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: number;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: number;
} | undefined;
tags?: string | null | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
};
audioFile: (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}) & (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined);
imageFile: (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}) & (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined);
onProgress?: ((args_0: number, args_1: {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, ...args_2: unknown[]) => void) | undefined;
}, {
userId: string;
metadata: {
genre: "Electronic" | "Rock" | "Metal" | "Alternative" | "Hip-Hop/Rap" | "Experimental" | "Punk" | "Folk" | "Pop" | "Ambient" | "Soundtrack" | "World" | "Jazz" | "Acoustic" | "Funk" | "R&B/Soul" | "Devotional" | "Classical" | "Reggae" | "Podcasts" | "Country" | "Spoken Word" | "Comedy" | "Blues" | "Kids" | "Audiobooks" | "Latin" | "Lo-Fi" | "Hyperpop" | "Dancehall" | "Techno" | "Trap" | "House" | "Tech House" | "Deep House" | "Disco" | "Electro" | "Jungle" | "Progressive House" | "Hardstyle" | "Glitch Hop" | "Trance" | "Future Bass" | "Future House" | "Tropical House" | "Downtempo" | "Drum & Bass" | "Dubstep" | "Jersey Club" | "Vaporwave" | "Moombahton";
title: string;
trackId?: string | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: string | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: string;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: string;
} | undefined;
tags?: string | null | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
};
audioFile: (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}) & (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined);
imageFile: (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}) & (File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined);
onProgress?: ((args_0: number, args_1: {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, ...args_2: unknown[]) => void) | undefined;
}>;
export type UploadTrackRequest = Omit, 'onProgress'> & {
onProgress?: UploadTrackFilesProgressHandler;
};
export declare const UploadTrackFilesSchema: z.ZodObject<{
audioFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>>;
imageFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>>;
fileMetadata: z.ZodOptional;
previewStartSeconds: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
placementHosts?: string | undefined;
previewStartSeconds?: number | undefined;
}, {
placementHosts?: string | undefined;
previewStartSeconds?: number | undefined;
}>>;
onProgress: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}>], z.ZodUnknown>, z.ZodVoid>>;
}, "strict", z.ZodTypeAny, {
audioFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
imageFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
fileMetadata?: {
placementHosts?: string | undefined;
previewStartSeconds?: number | undefined;
} | undefined;
onProgress?: ((args_0: number, args_1: {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, ...args_2: unknown[]) => void) | undefined;
}, {
audioFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
imageFile?: File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
} | undefined;
fileMetadata?: {
placementHosts?: string | undefined;
previewStartSeconds?: number | undefined;
} | undefined;
onProgress?: ((args_0: number, args_1: {
key: "image" | "audio";
total: number;
loaded: number;
transcode: number;
}, ...args_2: unknown[]) => void) | undefined;
}>;
export type UploadTrackFilesRequest = Omit, 'onProgress'> & {
onProgress?: UploadTrackFilesProgressHandler;
};
export declare const UpdateTrackSchema: z.ZodObject<{
userId: z.ZodEffects;
trackId: z.ZodEffects;
metadata: z.ZodObject<{
trackId: z.ZodOptional>>;
ownerId: z.ZodOptional>;
aiAttributionUserId: z.ZodOptional>>;
description: z.ZodOptional>>;
fieldVisibility: z.ZodOptional;
tags: z.ZodOptional;
genre: z.ZodOptional;
share: z.ZodOptional;
playCount: z.ZodOptional;
remixes: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
}, {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
}>>>;
genre: z.ZodOptional>;
isrc: z.ZodOptional>>;
isUnlisted: z.ZodOptional>;
iswc: z.ZodOptional>>;
license: z.ZodOptional>>;
mood: z.ZodOptional>>>;
isStreamGated: z.ZodOptional>;
streamConditions: z.ZodOptional, z.ZodObject<{
tipUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
tipUserId: number;
}, {
tipUserId: number;
}>, z.ZodObject<{
usdcPurchase: z.ZodObject<{
price: z.ZodNumber;
splits: z.ZodArray, "many">;
}, "strip", z.ZodTypeAny, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}>;
}, "strict", z.ZodTypeAny, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}>, z.ZodObject<{
tokenGate: z.ZodObject<{
tokenMint: z.ZodString;
tokenAmount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tokenMint: string;
tokenAmount: number;
}, {
tokenMint: string;
tokenAmount: number;
}>;
}, "strict", z.ZodTypeAny, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}>]>>>>;
accessAuthorities: z.ZodOptional>>>;
isDownloadGated: z.ZodOptional>;
downloadConditions: z.ZodOptional, z.ZodObject<{
tipUserId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
tipUserId: number;
}, {
tipUserId: number;
}>, z.ZodObject<{
usdcPurchase: z.ZodObject<{
price: z.ZodNumber;
splits: z.ZodArray, "many">;
}, "strip", z.ZodTypeAny, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}, {
splits: {
userId: number;
percentage: number;
}[];
price: number;
}>;
}, "strict", z.ZodTypeAny, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}, {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
}>, z.ZodObject<{
tokenGate: z.ZodObject<{
tokenMint: z.ZodString;
tokenAmount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
tokenMint: string;
tokenAmount: number;
}, {
tokenMint: string;
tokenAmount: number;
}>;
}, "strict", z.ZodTypeAny, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}, {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
}>]>>>>;
releaseDate: z.ZodOptional>;
remixOf: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
parentTrackId: number;
}, {
parentTrackId: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
tracks: {
parentTrackId: number;
}[];
}, {
tracks: {
parentTrackId: string;
}[];
}>>>;
stemOf: z.ZodOptional;
parentTrackId: z.ZodEffects;
}, "strict", z.ZodTypeAny, {
category: StemCategory;
parentTrackId: number;
}, {
category: StemCategory;
parentTrackId: string;
}>>>;
tags: z.ZodOptional>>;
title: z.ZodOptional;
duration: z.ZodOptional>;
previewStartSeconds: z.ZodOptional>;
placementHosts: z.ZodOptional>;
audioUploadId: z.ZodOptional>;
trackCid: z.ZodOptional>;
previewCid: z.ZodOptional>;
origFileCid: z.ZodOptional>;
origFilename: z.ZodOptional>;
coverArtSizes: z.ZodOptional>;
isDownloadable: z.ZodOptional>;
isOriginalAvailable: z.ZodOptional>;
ddexReleaseIds: z.ZodOptional>>>;
ddexApp: z.ZodOptional>>;
artists: z.ZodOptional;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>>;
resourceContributors: z.ZodOptional;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>>;
indirectResourceContributors: z.ZodOptional;
sequence_number: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}, {
name: string;
roles: string[];
sequence_number?: number | undefined;
}>, "many">>>>;
rightsController: z.ZodOptional;
rights_share_unknown: z.ZodOptional;
}, "strict", z.ZodTypeAny, {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
}, {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
}>>>>;
copyrightLine: z.ZodOptional>>>;
producerCopyrightLine: z.ZodOptional>>>;
parentalWarningType: z.ZodOptional>>;
bpm: z.ZodOptional>>;
isCustomBpm: z.ZodOptional>;
musicalKey: z.ZodOptional>>;
isCustomMusicalKey: z.ZodOptional>;
audioAnalysisErrorCount: z.ZodOptional>;
commentsDisabled: z.ZodOptional>;
isScheduledRelease: z.ZodOptional>;
}, "strict", z.ZodTypeAny, {
trackId?: number | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: number | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
genre?: Genre | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: number;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: number;
} | undefined;
tags?: string | null | undefined;
title?: string | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
}, {
trackId?: string | undefined;
ownerId?: number | undefined;
aiAttributionUserId?: string | undefined;
description?: string | null | undefined;
fieldVisibility?: {
mood?: boolean | undefined;
tags?: boolean | undefined;
genre?: boolean | undefined;
share?: boolean | undefined;
playCount?: boolean | undefined;
remixes?: boolean | undefined;
} | undefined;
genre?: Genre | undefined;
isrc?: string | null | undefined;
isUnlisted?: boolean | undefined;
iswc?: string | null | undefined;
license?: string | null | undefined;
mood?: Mood | null | undefined;
isStreamGated?: boolean | undefined;
streamConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
accessAuthorities?: string[] | null | undefined;
isDownloadGated?: boolean | undefined;
downloadConditions?: {
followUserId: number;
} | {
tipUserId: number;
} | {
tokenGate: {
tokenMint: string;
tokenAmount: number;
};
} | {
usdcPurchase: {
splits: {
userId: number;
percentage: number;
}[];
price: number;
};
} | null | undefined;
releaseDate?: Date | undefined;
remixOf?: {
tracks: {
parentTrackId: string;
}[];
} | undefined;
stemOf?: {
category: StemCategory;
parentTrackId: string;
} | undefined;
tags?: string | null | undefined;
title?: string | undefined;
duration?: number | undefined;
previewStartSeconds?: number | undefined;
placementHosts?: string | undefined;
audioUploadId?: string | undefined;
trackCid?: string | undefined;
previewCid?: string | undefined;
origFileCid?: string | undefined;
origFilename?: string | undefined;
coverArtSizes?: string | undefined;
isDownloadable?: boolean | undefined;
isOriginalAvailable?: boolean | undefined;
ddexReleaseIds?: Record | null | undefined;
ddexApp?: string | null | undefined;
artists?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
resourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
indirectResourceContributors?: {
name: string;
roles: string[];
sequence_number?: number | undefined;
}[] | null | undefined;
rightsController?: {
name: string;
roles: string[];
rights_share_unknown?: string | undefined;
} | null | undefined;
copyrightLine?: {
year: string;
text: string;
} | null | undefined;
producerCopyrightLine?: {
year: string;
text: string;
} | null | undefined;
parentalWarningType?: string | null | undefined;
bpm?: number | null | undefined;
isCustomBpm?: boolean | undefined;
musicalKey?: string | null | undefined;
isCustomMusicalKey?: boolean | undefined;
audioAnalysisErrorCount?: number | undefined;
commentsDisabled?: boolean | undefined;
isScheduledRelease?: boolean | undefined;
}>;
audioFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional;
}, "strip", z.ZodTypeAny, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}, {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
}>, z.ZodType, z.ZodObject<{
uri: z.ZodString;
name: z.ZodNullable;
type: z.ZodNullable;
copyError: z.ZodOptional;
fileCopyUri: z.ZodNullable>;
size: z.ZodNullable>;
}, "strip", z.ZodTypeAny, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>]>, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}, File | {
buffer: Buffer;
name?: string | undefined;
type?: string | undefined;
} | {
name: string | null;
type: string | null;
uri: string;
copyError?: string | undefined;
fileCopyUri?: string | null | undefined;
size?: number | null | undefined;
}>>;
imageFile: z.ZodOptional;
name: z.ZodOptional;
type: z.ZodOptional