@vllnt/convex-music 0.1.0-canary.09eea4e
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/LICENSE +21 -0
- package/README.md +169 -0
- package/dist/client/index.d.ts +284 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +166 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.d.ts +100 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +2 -0
- package/dist/client/types.js.map +1 -0
- package/dist/component/_generated/api.d.ts +125 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +1143 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +133 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +80 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/actions.d.ts +144 -0
- package/dist/component/actions.d.ts.map +1 -0
- package/dist/component/actions.js +125 -0
- package/dist/component/actions.js.map +1 -0
- package/dist/component/catalog/browse_order.d.ts +22 -0
- package/dist/component/catalog/browse_order.d.ts.map +1 -0
- package/dist/component/catalog/browse_order.js +37 -0
- package/dist/component/catalog/browse_order.js.map +1 -0
- package/dist/component/catalog/field_source_policy.d.ts +30 -0
- package/dist/component/catalog/field_source_policy.d.ts.map +1 -0
- package/dist/component/catalog/field_source_policy.js +36 -0
- package/dist/component/catalog/field_source_policy.js.map +1 -0
- package/dist/component/catalog/merge.d.ts +58 -0
- package/dist/component/catalog/merge.d.ts.map +1 -0
- package/dist/component/catalog/merge.js +74 -0
- package/dist/component/catalog/merge.js.map +1 -0
- package/dist/component/catalog/mutations.d.ts +78 -0
- package/dist/component/catalog/mutations.d.ts.map +1 -0
- package/dist/component/catalog/mutations.js +259 -0
- package/dist/component/catalog/mutations.js.map +1 -0
- package/dist/component/catalog/promote.d.ts +21 -0
- package/dist/component/catalog/promote.d.ts.map +1 -0
- package/dist/component/catalog/promote.js +25 -0
- package/dist/component/catalog/promote.js.map +1 -0
- package/dist/component/catalog/queries.d.ts +421 -0
- package/dist/component/catalog/queries.d.ts.map +1 -0
- package/dist/component/catalog/queries.js +168 -0
- package/dist/component/catalog/queries.js.map +1 -0
- package/dist/component/config/mutations.d.ts +11 -0
- package/dist/component/config/mutations.d.ts.map +1 -0
- package/dist/component/config/mutations.js +30 -0
- package/dist/component/config/mutations.js.map +1 -0
- package/dist/component/config/queries.d.ts +9 -0
- package/dist/component/config/queries.d.ts.map +1 -0
- package/dist/component/config/queries.js +20 -0
- package/dist/component/config/queries.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +30 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/crons.d.ts +11 -0
- package/dist/component/crons.d.ts.map +1 -0
- package/dist/component/crons.js +41 -0
- package/dist/component/crons.js.map +1 -0
- package/dist/component/imports/actions.d.ts +119 -0
- package/dist/component/imports/actions.d.ts.map +1 -0
- package/dist/component/imports/actions.js +442 -0
- package/dist/component/imports/actions.js.map +1 -0
- package/dist/component/imports/dedupe.d.ts +29 -0
- package/dist/component/imports/dedupe.d.ts.map +1 -0
- package/dist/component/imports/dedupe.js +33 -0
- package/dist/component/imports/dedupe.js.map +1 -0
- package/dist/component/imports/mutations.d.ts +59 -0
- package/dist/component/imports/mutations.d.ts.map +1 -0
- package/dist/component/imports/mutations.js +151 -0
- package/dist/component/imports/mutations.js.map +1 -0
- package/dist/component/imports/queries.d.ts +68 -0
- package/dist/component/imports/queries.d.ts.map +1 -0
- package/dist/component/imports/queries.js +22 -0
- package/dist/component/imports/queries.js.map +1 -0
- package/dist/component/imports/state.d.ts +36 -0
- package/dist/component/imports/state.d.ts.map +1 -0
- package/dist/component/imports/state.js +62 -0
- package/dist/component/imports/state.js.map +1 -0
- package/dist/component/mutations.d.ts +55 -0
- package/dist/component/mutations.d.ts.map +1 -0
- package/dist/component/mutations.js +74 -0
- package/dist/component/mutations.js.map +1 -0
- package/dist/component/providers/actions.d.ts +26 -0
- package/dist/component/providers/actions.d.ts.map +1 -0
- package/dist/component/providers/actions.js +92 -0
- package/dist/component/providers/actions.js.map +1 -0
- package/dist/component/providers/apple/impl.d.ts +52 -0
- package/dist/component/providers/apple/impl.d.ts.map +1 -0
- package/dist/component/providers/apple/impl.js +127 -0
- package/dist/component/providers/apple/impl.js.map +1 -0
- package/dist/component/providers/apple/jwt.d.ts +32 -0
- package/dist/component/providers/apple/jwt.d.ts.map +1 -0
- package/dist/component/providers/apple/jwt.js +68 -0
- package/dist/component/providers/apple/jwt.js.map +1 -0
- package/dist/component/providers/apple/mappers.d.ts +20 -0
- package/dist/component/providers/apple/mappers.d.ts.map +1 -0
- package/dist/component/providers/apple/mappers.js +68 -0
- package/dist/component/providers/apple/mappers.js.map +1 -0
- package/dist/component/providers/apple/types.d.ts +80 -0
- package/dist/component/providers/apple/types.d.ts.map +1 -0
- package/dist/component/providers/apple/types.js +7 -0
- package/dist/component/providers/apple/types.js.map +1 -0
- package/dist/component/providers/deezer/impl.d.ts +37 -0
- package/dist/component/providers/deezer/impl.d.ts.map +1 -0
- package/dist/component/providers/deezer/impl.js +99 -0
- package/dist/component/providers/deezer/impl.js.map +1 -0
- package/dist/component/providers/deezer/mappers.d.ts +18 -0
- package/dist/component/providers/deezer/mappers.d.ts.map +1 -0
- package/dist/component/providers/deezer/mappers.js +53 -0
- package/dist/component/providers/deezer/mappers.js.map +1 -0
- package/dist/component/providers/deezer/types.d.ts +59 -0
- package/dist/component/providers/deezer/types.d.ts.map +1 -0
- package/dist/component/providers/deezer/types.js +7 -0
- package/dist/component/providers/deezer/types.js.map +1 -0
- package/dist/component/providers/fetch.d.ts +69 -0
- package/dist/component/providers/fetch.d.ts.map +1 -0
- package/dist/component/providers/fetch.js +145 -0
- package/dist/component/providers/fetch.js.map +1 -0
- package/dist/component/providers/musicbrainz/impl.d.ts +36 -0
- package/dist/component/providers/musicbrainz/impl.d.ts.map +1 -0
- package/dist/component/providers/musicbrainz/impl.js +74 -0
- package/dist/component/providers/musicbrainz/impl.js.map +1 -0
- package/dist/component/providers/musicbrainz/mappers.d.ts +10 -0
- package/dist/component/providers/musicbrainz/mappers.d.ts.map +1 -0
- package/dist/component/providers/musicbrainz/mappers.js +32 -0
- package/dist/component/providers/musicbrainz/mappers.js.map +1 -0
- package/dist/component/providers/musicbrainz/types.d.ts +24 -0
- package/dist/component/providers/musicbrainz/types.d.ts.map +1 -0
- package/dist/component/providers/musicbrainz/types.js +7 -0
- package/dist/component/providers/musicbrainz/types.js.map +1 -0
- package/dist/component/providers/registry.d.ts +22 -0
- package/dist/component/providers/registry.d.ts.map +1 -0
- package/dist/component/providers/registry.js +33 -0
- package/dist/component/providers/registry.js.map +1 -0
- package/dist/component/providers/spotify/client.d.ts +25 -0
- package/dist/component/providers/spotify/client.d.ts.map +1 -0
- package/dist/component/providers/spotify/client.js +30 -0
- package/dist/component/providers/spotify/client.js.map +1 -0
- package/dist/component/providers/spotify/impl.d.ts +51 -0
- package/dist/component/providers/spotify/impl.d.ts.map +1 -0
- package/dist/component/providers/spotify/impl.js +131 -0
- package/dist/component/providers/spotify/impl.js.map +1 -0
- package/dist/component/providers/spotify/mappers.d.ts +18 -0
- package/dist/component/providers/spotify/mappers.d.ts.map +1 -0
- package/dist/component/providers/spotify/mappers.js +60 -0
- package/dist/component/providers/spotify/mappers.js.map +1 -0
- package/dist/component/providers/spotify/types.d.ts +97 -0
- package/dist/component/providers/spotify/types.d.ts.map +1 -0
- package/dist/component/providers/spotify/types.js +7 -0
- package/dist/component/providers/spotify/types.js.map +1 -0
- package/dist/component/providers/types.d.ts +84 -0
- package/dist/component/providers/types.d.ts.map +1 -0
- package/dist/component/providers/types.js +10 -0
- package/dist/component/providers/types.js.map +1 -0
- package/dist/component/providers/wikidata/impl.d.ts +34 -0
- package/dist/component/providers/wikidata/impl.d.ts.map +1 -0
- package/dist/component/providers/wikidata/impl.js +88 -0
- package/dist/component/providers/wikidata/impl.js.map +1 -0
- package/dist/component/providers/wikidata/mappers.d.ts +11 -0
- package/dist/component/providers/wikidata/mappers.d.ts.map +1 -0
- package/dist/component/providers/wikidata/mappers.js +53 -0
- package/dist/component/providers/wikidata/mappers.js.map +1 -0
- package/dist/component/providers/wikidata/types.d.ts +35 -0
- package/dist/component/providers/wikidata/types.d.ts.map +1 -0
- package/dist/component/providers/wikidata/types.js +8 -0
- package/dist/component/providers/wikidata/types.js.map +1 -0
- package/dist/component/queries.d.ts +103 -0
- package/dist/component/queries.d.ts.map +1 -0
- package/dist/component/queries.js +45 -0
- package/dist/component/queries.js.map +1 -0
- package/dist/component/schema.d.ts +566 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +59 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/sources/actions.d.ts +51 -0
- package/dist/component/sources/actions.d.ts.map +1 -0
- package/dist/component/sources/actions.js +164 -0
- package/dist/component/sources/actions.js.map +1 -0
- package/dist/component/sources/mutations.d.ts +25 -0
- package/dist/component/sources/mutations.d.ts.map +1 -0
- package/dist/component/sources/mutations.js +64 -0
- package/dist/component/sources/mutations.js.map +1 -0
- package/dist/component/sources/queries.d.ts +19 -0
- package/dist/component/sources/queries.d.ts.map +1 -0
- package/dist/component/sources/queries.js +20 -0
- package/dist/component/sources/queries.js.map +1 -0
- package/dist/component/sync/lifecycle.d.ts +46 -0
- package/dist/component/sync/lifecycle.d.ts.map +1 -0
- package/dist/component/sync/lifecycle.js +87 -0
- package/dist/component/sync/lifecycle.js.map +1 -0
- package/dist/component/sync/mutations.d.ts +101 -0
- package/dist/component/sync/mutations.d.ts.map +1 -0
- package/dist/component/sync/mutations.js +132 -0
- package/dist/component/sync/mutations.js.map +1 -0
- package/dist/component/sync/queries.d.ts +69 -0
- package/dist/component/sync/queries.d.ts.map +1 -0
- package/dist/component/sync/queries.js +32 -0
- package/dist/component/sync/queries.js.map +1 -0
- package/dist/component/validators.d.ts +1112 -0
- package/dist/component/validators.d.ts.map +1 -0
- package/dist/component/validators.js +317 -0
- package/dist/component/validators.js.map +1 -0
- package/dist/react/index.d.ts +42 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +43 -0
- package/dist/react/index.js.map +1 -0
- package/dist/shared.d.ts +28 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +24 -0
- package/dist/shared.js.map +1 -0
- package/package.json +126 -0
- package/src/client/index.ts +558 -0
- package/src/client/types.ts +117 -0
- package/src/component/_generated/api.ts +141 -0
- package/src/component/_generated/component.ts +1814 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +169 -0
- package/src/component/actions.ts +156 -0
- package/src/component/catalog/browse_order.test.ts +55 -0
- package/src/component/catalog/browse_order.ts +43 -0
- package/src/component/catalog/field_source_policy.test.ts +47 -0
- package/src/component/catalog/field_source_policy.ts +44 -0
- package/src/component/catalog/merge.test.ts +187 -0
- package/src/component/catalog/merge.ts +134 -0
- package/src/component/catalog/mutations.ts +328 -0
- package/src/component/catalog/promote.ts +40 -0
- package/src/component/catalog/queries.ts +220 -0
- package/src/component/config/mutations.ts +29 -0
- package/src/component/config/queries.ts +20 -0
- package/src/component/convex.config.ts +32 -0
- package/src/component/crons.test.ts +8 -0
- package/src/component/crons.ts +52 -0
- package/src/component/imports/actions.ts +553 -0
- package/src/component/imports/dedupe.test.ts +66 -0
- package/src/component/imports/dedupe.ts +54 -0
- package/src/component/imports/mutations.ts +203 -0
- package/src/component/imports/queries.ts +25 -0
- package/src/component/imports/state.test.ts +60 -0
- package/src/component/imports/state.ts +74 -0
- package/src/component/mutations.ts +96 -0
- package/src/component/providers/actions.ts +127 -0
- package/src/component/providers/apple/impl.test.ts +267 -0
- package/src/component/providers/apple/impl.ts +224 -0
- package/src/component/providers/apple/jwt.test.ts +153 -0
- package/src/component/providers/apple/jwt.ts +99 -0
- package/src/component/providers/apple/mappers.test.ts +190 -0
- package/src/component/providers/apple/mappers.ts +100 -0
- package/src/component/providers/apple/types.ts +77 -0
- package/src/component/providers/deezer/impl.test.ts +109 -0
- package/src/component/providers/deezer/impl.ts +179 -0
- package/src/component/providers/deezer/mappers.test.ts +78 -0
- package/src/component/providers/deezer/mappers.ts +72 -0
- package/src/component/providers/deezer/types.ts +59 -0
- package/src/component/providers/fetch.test.ts +282 -0
- package/src/component/providers/fetch.ts +190 -0
- package/src/component/providers/musicbrainz/impl.test.ts +79 -0
- package/src/component/providers/musicbrainz/impl.ts +132 -0
- package/src/component/providers/musicbrainz/mappers.test.ts +75 -0
- package/src/component/providers/musicbrainz/mappers.ts +34 -0
- package/src/component/providers/musicbrainz/types.ts +20 -0
- package/src/component/providers/registry.test.ts +14 -0
- package/src/component/providers/registry.ts +48 -0
- package/src/component/providers/spotify/client.test.ts +80 -0
- package/src/component/providers/spotify/client.ts +57 -0
- package/src/component/providers/spotify/impl.test.ts +311 -0
- package/src/component/providers/spotify/impl.ts +230 -0
- package/src/component/providers/spotify/mappers.test.ts +182 -0
- package/src/component/providers/spotify/mappers.ts +81 -0
- package/src/component/providers/spotify/types.ts +101 -0
- package/src/component/providers/types.ts +95 -0
- package/src/component/providers/wikidata/impl.test.ts +81 -0
- package/src/component/providers/wikidata/impl.ts +139 -0
- package/src/component/providers/wikidata/mappers.test.ts +62 -0
- package/src/component/providers/wikidata/mappers.ts +66 -0
- package/src/component/providers/wikidata/types.ts +28 -0
- package/src/component/queries.ts +51 -0
- package/src/component/schema.ts +81 -0
- package/src/component/sources/actions.ts +177 -0
- package/src/component/sources/mutations.ts +67 -0
- package/src/component/sources/queries.ts +21 -0
- package/src/component/sync/lifecycle.test.ts +72 -0
- package/src/component/sync/lifecycle.ts +121 -0
- package/src/component/sync/mutations.ts +154 -0
- package/src/component/sync/queries.ts +33 -0
- package/src/component/validators.ts +411 -0
- package/src/react/index.test.ts +78 -0
- package/src/react/index.ts +112 -0
- package/src/shared.ts +32 -0
- package/src/test.ts +22 -0
|
@@ -0,0 +1,1112 @@
|
|
|
1
|
+
/** A supported music provider. */
|
|
2
|
+
export declare const provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
3
|
+
/** A cached entity kind. */
|
|
4
|
+
export declare const entityKind: import("convex/values").VUnion<"album" | "artist" | "track", [import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
5
|
+
/** Normalized, provider-sourced track facts. */
|
|
6
|
+
export declare const trackValue: import("convex/values").VObject<{
|
|
7
|
+
albumId?: string | undefined;
|
|
8
|
+
artists: {
|
|
9
|
+
externalId?: string | undefined;
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
coverUrl?: string | undefined;
|
|
13
|
+
durationMs?: number | undefined;
|
|
14
|
+
genres: string[];
|
|
15
|
+
isrc?: string | undefined;
|
|
16
|
+
popularity?: number | undefined;
|
|
17
|
+
previewUrl?: string | undefined;
|
|
18
|
+
title: string;
|
|
19
|
+
url?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
title: import("convex/values").VString<string, "required">;
|
|
22
|
+
artists: import("convex/values").VArray<{
|
|
23
|
+
externalId?: string | undefined;
|
|
24
|
+
name: string;
|
|
25
|
+
}[], import("convex/values").VObject<{
|
|
26
|
+
externalId?: string | undefined;
|
|
27
|
+
name: string;
|
|
28
|
+
}, {
|
|
29
|
+
name: import("convex/values").VString<string, "required">;
|
|
30
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
31
|
+
}, "required", "externalId" | "name">, "required">;
|
|
32
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
33
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
34
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
35
|
+
durationMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
36
|
+
previewUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
37
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
38
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
39
|
+
/** The track's album provider id, for `importTrack({ withAlbum })`. */
|
|
40
|
+
albumId: import("convex/values").VString<string | undefined, "optional">;
|
|
41
|
+
}, "required", "albumId" | "artists" | "coverUrl" | "durationMs" | "genres" | "isrc" | "popularity" | "previewUrl" | "title" | "url">;
|
|
42
|
+
/** Normalized, provider-sourced artist facts (fields vary by provider). */
|
|
43
|
+
export declare const artistValue: import("convex/values").VObject<{
|
|
44
|
+
country?: string | undefined;
|
|
45
|
+
debutYear?: number | undefined;
|
|
46
|
+
gender?: string | undefined;
|
|
47
|
+
genres: string[];
|
|
48
|
+
imageUrl?: string | undefined;
|
|
49
|
+
members?: "group" | "solo" | undefined;
|
|
50
|
+
name: string;
|
|
51
|
+
popularity?: number | undefined;
|
|
52
|
+
url?: string | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
name: import("convex/values").VString<string, "required">;
|
|
55
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
56
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
57
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
58
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
59
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
60
|
+
gender: import("convex/values").VString<string | undefined, "optional">;
|
|
61
|
+
debutYear: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
62
|
+
members: import("convex/values").VUnion<"group" | "solo" | undefined, [import("convex/values").VLiteral<"solo", "required">, import("convex/values").VLiteral<"group", "required">], "optional", never>;
|
|
63
|
+
}, "required", "country" | "debutYear" | "gender" | "genres" | "imageUrl" | "members" | "name" | "popularity" | "url">;
|
|
64
|
+
/** Normalized, provider-sourced album facts. */
|
|
65
|
+
export declare const albumValue: import("convex/values").VObject<{
|
|
66
|
+
artists: {
|
|
67
|
+
externalId?: string | undefined;
|
|
68
|
+
name: string;
|
|
69
|
+
}[];
|
|
70
|
+
coverUrl?: string | undefined;
|
|
71
|
+
releaseDate?: string | undefined;
|
|
72
|
+
title: string;
|
|
73
|
+
trackCount?: number | undefined;
|
|
74
|
+
url?: string | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
title: import("convex/values").VString<string, "required">;
|
|
77
|
+
artists: import("convex/values").VArray<{
|
|
78
|
+
externalId?: string | undefined;
|
|
79
|
+
name: string;
|
|
80
|
+
}[], import("convex/values").VObject<{
|
|
81
|
+
externalId?: string | undefined;
|
|
82
|
+
name: string;
|
|
83
|
+
}, {
|
|
84
|
+
name: import("convex/values").VString<string, "required">;
|
|
85
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
86
|
+
}, "required", "externalId" | "name">, "required">;
|
|
87
|
+
releaseDate: import("convex/values").VString<string | undefined, "optional">;
|
|
88
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
89
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
90
|
+
trackCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
91
|
+
}, "required", "artists" | "coverUrl" | "releaseDate" | "title" | "trackCount" | "url">;
|
|
92
|
+
/** The normalized payload for any cached entity, by kind. */
|
|
93
|
+
export declare const cacheValue: import("convex/values").VUnion<{
|
|
94
|
+
albumId?: string | undefined;
|
|
95
|
+
artists: {
|
|
96
|
+
externalId?: string | undefined;
|
|
97
|
+
name: string;
|
|
98
|
+
}[];
|
|
99
|
+
coverUrl?: string | undefined;
|
|
100
|
+
durationMs?: number | undefined;
|
|
101
|
+
genres: string[];
|
|
102
|
+
isrc?: string | undefined;
|
|
103
|
+
popularity?: number | undefined;
|
|
104
|
+
previewUrl?: string | undefined;
|
|
105
|
+
title: string;
|
|
106
|
+
url?: string | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
country?: string | undefined;
|
|
109
|
+
debutYear?: number | undefined;
|
|
110
|
+
gender?: string | undefined;
|
|
111
|
+
genres: string[];
|
|
112
|
+
imageUrl?: string | undefined;
|
|
113
|
+
members?: "group" | "solo" | undefined;
|
|
114
|
+
name: string;
|
|
115
|
+
popularity?: number | undefined;
|
|
116
|
+
url?: string | undefined;
|
|
117
|
+
} | {
|
|
118
|
+
artists: {
|
|
119
|
+
externalId?: string | undefined;
|
|
120
|
+
name: string;
|
|
121
|
+
}[];
|
|
122
|
+
coverUrl?: string | undefined;
|
|
123
|
+
releaseDate?: string | undefined;
|
|
124
|
+
title: string;
|
|
125
|
+
trackCount?: number | undefined;
|
|
126
|
+
url?: string | undefined;
|
|
127
|
+
}, [import("convex/values").VObject<{
|
|
128
|
+
albumId?: string | undefined;
|
|
129
|
+
artists: {
|
|
130
|
+
externalId?: string | undefined;
|
|
131
|
+
name: string;
|
|
132
|
+
}[];
|
|
133
|
+
coverUrl?: string | undefined;
|
|
134
|
+
durationMs?: number | undefined;
|
|
135
|
+
genres: string[];
|
|
136
|
+
isrc?: string | undefined;
|
|
137
|
+
popularity?: number | undefined;
|
|
138
|
+
previewUrl?: string | undefined;
|
|
139
|
+
title: string;
|
|
140
|
+
url?: string | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
title: import("convex/values").VString<string, "required">;
|
|
143
|
+
artists: import("convex/values").VArray<{
|
|
144
|
+
externalId?: string | undefined;
|
|
145
|
+
name: string;
|
|
146
|
+
}[], import("convex/values").VObject<{
|
|
147
|
+
externalId?: string | undefined;
|
|
148
|
+
name: string;
|
|
149
|
+
}, {
|
|
150
|
+
name: import("convex/values").VString<string, "required">;
|
|
151
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
152
|
+
}, "required", "externalId" | "name">, "required">;
|
|
153
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
154
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
155
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
156
|
+
durationMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
157
|
+
previewUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
158
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
159
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
160
|
+
/** The track's album provider id, for `importTrack({ withAlbum })`. */
|
|
161
|
+
albumId: import("convex/values").VString<string | undefined, "optional">;
|
|
162
|
+
}, "required", "albumId" | "artists" | "coverUrl" | "durationMs" | "genres" | "isrc" | "popularity" | "previewUrl" | "title" | "url">, import("convex/values").VObject<{
|
|
163
|
+
country?: string | undefined;
|
|
164
|
+
debutYear?: number | undefined;
|
|
165
|
+
gender?: string | undefined;
|
|
166
|
+
genres: string[];
|
|
167
|
+
imageUrl?: string | undefined;
|
|
168
|
+
members?: "group" | "solo" | undefined;
|
|
169
|
+
name: string;
|
|
170
|
+
popularity?: number | undefined;
|
|
171
|
+
url?: string | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
name: import("convex/values").VString<string, "required">;
|
|
174
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
175
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
176
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
177
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
178
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
179
|
+
gender: import("convex/values").VString<string | undefined, "optional">;
|
|
180
|
+
debutYear: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
181
|
+
members: import("convex/values").VUnion<"group" | "solo" | undefined, [import("convex/values").VLiteral<"solo", "required">, import("convex/values").VLiteral<"group", "required">], "optional", never>;
|
|
182
|
+
}, "required", "country" | "debutYear" | "gender" | "genres" | "imageUrl" | "members" | "name" | "popularity" | "url">, import("convex/values").VObject<{
|
|
183
|
+
artists: {
|
|
184
|
+
externalId?: string | undefined;
|
|
185
|
+
name: string;
|
|
186
|
+
}[];
|
|
187
|
+
coverUrl?: string | undefined;
|
|
188
|
+
releaseDate?: string | undefined;
|
|
189
|
+
title: string;
|
|
190
|
+
trackCount?: number | undefined;
|
|
191
|
+
url?: string | undefined;
|
|
192
|
+
}, {
|
|
193
|
+
title: import("convex/values").VString<string, "required">;
|
|
194
|
+
artists: import("convex/values").VArray<{
|
|
195
|
+
externalId?: string | undefined;
|
|
196
|
+
name: string;
|
|
197
|
+
}[], import("convex/values").VObject<{
|
|
198
|
+
externalId?: string | undefined;
|
|
199
|
+
name: string;
|
|
200
|
+
}, {
|
|
201
|
+
name: import("convex/values").VString<string, "required">;
|
|
202
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
203
|
+
}, "required", "externalId" | "name">, "required">;
|
|
204
|
+
releaseDate: import("convex/values").VString<string | undefined, "optional">;
|
|
205
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
206
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
207
|
+
trackCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
208
|
+
}, "required", "artists" | "coverUrl" | "releaseDate" | "title" | "trackCount" | "url">], "required", "albumId" | "artists" | "country" | "coverUrl" | "debutYear" | "durationMs" | "gender" | "genres" | "imageUrl" | "isrc" | "members" | "name" | "popularity" | "previewUrl" | "releaseDate" | "title" | "trackCount" | "url">;
|
|
209
|
+
/**
|
|
210
|
+
* Column validators for a stored cache entry (excluding system fields). Shared
|
|
211
|
+
* between the schema and the query return validators.
|
|
212
|
+
*/
|
|
213
|
+
export declare const cacheEntryFields: {
|
|
214
|
+
kind: import("convex/values").VUnion<"album" | "artist" | "track", [import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
215
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
216
|
+
externalId: import("convex/values").VString<string, "required">;
|
|
217
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
218
|
+
value: import("convex/values").VUnion<{
|
|
219
|
+
albumId?: string | undefined;
|
|
220
|
+
artists: {
|
|
221
|
+
externalId?: string | undefined;
|
|
222
|
+
name: string;
|
|
223
|
+
}[];
|
|
224
|
+
coverUrl?: string | undefined;
|
|
225
|
+
durationMs?: number | undefined;
|
|
226
|
+
genres: string[];
|
|
227
|
+
isrc?: string | undefined;
|
|
228
|
+
popularity?: number | undefined;
|
|
229
|
+
previewUrl?: string | undefined;
|
|
230
|
+
title: string;
|
|
231
|
+
url?: string | undefined;
|
|
232
|
+
} | {
|
|
233
|
+
country?: string | undefined;
|
|
234
|
+
debutYear?: number | undefined;
|
|
235
|
+
gender?: string | undefined;
|
|
236
|
+
genres: string[];
|
|
237
|
+
imageUrl?: string | undefined;
|
|
238
|
+
members?: "group" | "solo" | undefined;
|
|
239
|
+
name: string;
|
|
240
|
+
popularity?: number | undefined;
|
|
241
|
+
url?: string | undefined;
|
|
242
|
+
} | {
|
|
243
|
+
artists: {
|
|
244
|
+
externalId?: string | undefined;
|
|
245
|
+
name: string;
|
|
246
|
+
}[];
|
|
247
|
+
coverUrl?: string | undefined;
|
|
248
|
+
releaseDate?: string | undefined;
|
|
249
|
+
title: string;
|
|
250
|
+
trackCount?: number | undefined;
|
|
251
|
+
url?: string | undefined;
|
|
252
|
+
}, [import("convex/values").VObject<{
|
|
253
|
+
albumId?: string | undefined;
|
|
254
|
+
artists: {
|
|
255
|
+
externalId?: string | undefined;
|
|
256
|
+
name: string;
|
|
257
|
+
}[];
|
|
258
|
+
coverUrl?: string | undefined;
|
|
259
|
+
durationMs?: number | undefined;
|
|
260
|
+
genres: string[];
|
|
261
|
+
isrc?: string | undefined;
|
|
262
|
+
popularity?: number | undefined;
|
|
263
|
+
previewUrl?: string | undefined;
|
|
264
|
+
title: string;
|
|
265
|
+
url?: string | undefined;
|
|
266
|
+
}, {
|
|
267
|
+
title: import("convex/values").VString<string, "required">;
|
|
268
|
+
artists: import("convex/values").VArray<{
|
|
269
|
+
externalId?: string | undefined;
|
|
270
|
+
name: string;
|
|
271
|
+
}[], import("convex/values").VObject<{
|
|
272
|
+
externalId?: string | undefined;
|
|
273
|
+
name: string;
|
|
274
|
+
}, {
|
|
275
|
+
name: import("convex/values").VString<string, "required">;
|
|
276
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
277
|
+
}, "required", "externalId" | "name">, "required">;
|
|
278
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
279
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
280
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
281
|
+
durationMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
282
|
+
previewUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
283
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
284
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
285
|
+
/** The track's album provider id, for `importTrack({ withAlbum })`. */
|
|
286
|
+
albumId: import("convex/values").VString<string | undefined, "optional">;
|
|
287
|
+
}, "required", "albumId" | "artists" | "coverUrl" | "durationMs" | "genres" | "isrc" | "popularity" | "previewUrl" | "title" | "url">, import("convex/values").VObject<{
|
|
288
|
+
country?: string | undefined;
|
|
289
|
+
debutYear?: number | undefined;
|
|
290
|
+
gender?: string | undefined;
|
|
291
|
+
genres: string[];
|
|
292
|
+
imageUrl?: string | undefined;
|
|
293
|
+
members?: "group" | "solo" | undefined;
|
|
294
|
+
name: string;
|
|
295
|
+
popularity?: number | undefined;
|
|
296
|
+
url?: string | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
name: import("convex/values").VString<string, "required">;
|
|
299
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
300
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
301
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
302
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
303
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
304
|
+
gender: import("convex/values").VString<string | undefined, "optional">;
|
|
305
|
+
debutYear: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
306
|
+
members: import("convex/values").VUnion<"group" | "solo" | undefined, [import("convex/values").VLiteral<"solo", "required">, import("convex/values").VLiteral<"group", "required">], "optional", never>;
|
|
307
|
+
}, "required", "country" | "debutYear" | "gender" | "genres" | "imageUrl" | "members" | "name" | "popularity" | "url">, import("convex/values").VObject<{
|
|
308
|
+
artists: {
|
|
309
|
+
externalId?: string | undefined;
|
|
310
|
+
name: string;
|
|
311
|
+
}[];
|
|
312
|
+
coverUrl?: string | undefined;
|
|
313
|
+
releaseDate?: string | undefined;
|
|
314
|
+
title: string;
|
|
315
|
+
trackCount?: number | undefined;
|
|
316
|
+
url?: string | undefined;
|
|
317
|
+
}, {
|
|
318
|
+
title: import("convex/values").VString<string, "required">;
|
|
319
|
+
artists: import("convex/values").VArray<{
|
|
320
|
+
externalId?: string | undefined;
|
|
321
|
+
name: string;
|
|
322
|
+
}[], import("convex/values").VObject<{
|
|
323
|
+
externalId?: string | undefined;
|
|
324
|
+
name: string;
|
|
325
|
+
}, {
|
|
326
|
+
name: import("convex/values").VString<string, "required">;
|
|
327
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
328
|
+
}, "required", "externalId" | "name">, "required">;
|
|
329
|
+
releaseDate: import("convex/values").VString<string | undefined, "optional">;
|
|
330
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
331
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
332
|
+
trackCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
333
|
+
}, "required", "artists" | "coverUrl" | "releaseDate" | "title" | "trackCount" | "url">], "required", "albumId" | "artists" | "country" | "coverUrl" | "debutYear" | "durationMs" | "gender" | "genres" | "imageUrl" | "isrc" | "members" | "name" | "popularity" | "previewUrl" | "releaseDate" | "title" | "trackCount" | "url">;
|
|
334
|
+
fetchedAt: import("convex/values").VFloat64<number, "required">;
|
|
335
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
336
|
+
};
|
|
337
|
+
/** Public shape of a cache entry returned by queries. */
|
|
338
|
+
export declare const cacheEntryDoc: import("convex/values").VObject<{
|
|
339
|
+
_creationTime: number;
|
|
340
|
+
_id: import("convex/values").GenericId<"cacheEntries">;
|
|
341
|
+
expiresAt: number;
|
|
342
|
+
externalId: string;
|
|
343
|
+
fetchedAt: number;
|
|
344
|
+
isrc?: string | undefined;
|
|
345
|
+
kind: "album" | "artist" | "track";
|
|
346
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
347
|
+
value: {
|
|
348
|
+
albumId?: string | undefined;
|
|
349
|
+
artists: {
|
|
350
|
+
externalId?: string | undefined;
|
|
351
|
+
name: string;
|
|
352
|
+
}[];
|
|
353
|
+
coverUrl?: string | undefined;
|
|
354
|
+
durationMs?: number | undefined;
|
|
355
|
+
genres: string[];
|
|
356
|
+
isrc?: string | undefined;
|
|
357
|
+
popularity?: number | undefined;
|
|
358
|
+
previewUrl?: string | undefined;
|
|
359
|
+
title: string;
|
|
360
|
+
url?: string | undefined;
|
|
361
|
+
} | {
|
|
362
|
+
country?: string | undefined;
|
|
363
|
+
debutYear?: number | undefined;
|
|
364
|
+
gender?: string | undefined;
|
|
365
|
+
genres: string[];
|
|
366
|
+
imageUrl?: string | undefined;
|
|
367
|
+
members?: "group" | "solo" | undefined;
|
|
368
|
+
name: string;
|
|
369
|
+
popularity?: number | undefined;
|
|
370
|
+
url?: string | undefined;
|
|
371
|
+
} | {
|
|
372
|
+
artists: {
|
|
373
|
+
externalId?: string | undefined;
|
|
374
|
+
name: string;
|
|
375
|
+
}[];
|
|
376
|
+
coverUrl?: string | undefined;
|
|
377
|
+
releaseDate?: string | undefined;
|
|
378
|
+
title: string;
|
|
379
|
+
trackCount?: number | undefined;
|
|
380
|
+
url?: string | undefined;
|
|
381
|
+
};
|
|
382
|
+
}, {
|
|
383
|
+
kind: import("convex/values").VUnion<"album" | "artist" | "track", [import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
384
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
385
|
+
externalId: import("convex/values").VString<string, "required">;
|
|
386
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
387
|
+
value: import("convex/values").VUnion<{
|
|
388
|
+
albumId?: string | undefined;
|
|
389
|
+
artists: {
|
|
390
|
+
externalId?: string | undefined;
|
|
391
|
+
name: string;
|
|
392
|
+
}[];
|
|
393
|
+
coverUrl?: string | undefined;
|
|
394
|
+
durationMs?: number | undefined;
|
|
395
|
+
genres: string[];
|
|
396
|
+
isrc?: string | undefined;
|
|
397
|
+
popularity?: number | undefined;
|
|
398
|
+
previewUrl?: string | undefined;
|
|
399
|
+
title: string;
|
|
400
|
+
url?: string | undefined;
|
|
401
|
+
} | {
|
|
402
|
+
country?: string | undefined;
|
|
403
|
+
debutYear?: number | undefined;
|
|
404
|
+
gender?: string | undefined;
|
|
405
|
+
genres: string[];
|
|
406
|
+
imageUrl?: string | undefined;
|
|
407
|
+
members?: "group" | "solo" | undefined;
|
|
408
|
+
name: string;
|
|
409
|
+
popularity?: number | undefined;
|
|
410
|
+
url?: string | undefined;
|
|
411
|
+
} | {
|
|
412
|
+
artists: {
|
|
413
|
+
externalId?: string | undefined;
|
|
414
|
+
name: string;
|
|
415
|
+
}[];
|
|
416
|
+
coverUrl?: string | undefined;
|
|
417
|
+
releaseDate?: string | undefined;
|
|
418
|
+
title: string;
|
|
419
|
+
trackCount?: number | undefined;
|
|
420
|
+
url?: string | undefined;
|
|
421
|
+
}, [import("convex/values").VObject<{
|
|
422
|
+
albumId?: string | undefined;
|
|
423
|
+
artists: {
|
|
424
|
+
externalId?: string | undefined;
|
|
425
|
+
name: string;
|
|
426
|
+
}[];
|
|
427
|
+
coverUrl?: string | undefined;
|
|
428
|
+
durationMs?: number | undefined;
|
|
429
|
+
genres: string[];
|
|
430
|
+
isrc?: string | undefined;
|
|
431
|
+
popularity?: number | undefined;
|
|
432
|
+
previewUrl?: string | undefined;
|
|
433
|
+
title: string;
|
|
434
|
+
url?: string | undefined;
|
|
435
|
+
}, {
|
|
436
|
+
title: import("convex/values").VString<string, "required">;
|
|
437
|
+
artists: import("convex/values").VArray<{
|
|
438
|
+
externalId?: string | undefined;
|
|
439
|
+
name: string;
|
|
440
|
+
}[], import("convex/values").VObject<{
|
|
441
|
+
externalId?: string | undefined;
|
|
442
|
+
name: string;
|
|
443
|
+
}, {
|
|
444
|
+
name: import("convex/values").VString<string, "required">;
|
|
445
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
446
|
+
}, "required", "externalId" | "name">, "required">;
|
|
447
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
448
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
449
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
450
|
+
durationMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
451
|
+
previewUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
452
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
453
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
454
|
+
/** The track's album provider id, for `importTrack({ withAlbum })`. */
|
|
455
|
+
albumId: import("convex/values").VString<string | undefined, "optional">;
|
|
456
|
+
}, "required", "albumId" | "artists" | "coverUrl" | "durationMs" | "genres" | "isrc" | "popularity" | "previewUrl" | "title" | "url">, import("convex/values").VObject<{
|
|
457
|
+
country?: string | undefined;
|
|
458
|
+
debutYear?: number | undefined;
|
|
459
|
+
gender?: string | undefined;
|
|
460
|
+
genres: string[];
|
|
461
|
+
imageUrl?: string | undefined;
|
|
462
|
+
members?: "group" | "solo" | undefined;
|
|
463
|
+
name: string;
|
|
464
|
+
popularity?: number | undefined;
|
|
465
|
+
url?: string | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
name: import("convex/values").VString<string, "required">;
|
|
468
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
469
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
470
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
471
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
472
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
473
|
+
gender: import("convex/values").VString<string | undefined, "optional">;
|
|
474
|
+
debutYear: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
475
|
+
members: import("convex/values").VUnion<"group" | "solo" | undefined, [import("convex/values").VLiteral<"solo", "required">, import("convex/values").VLiteral<"group", "required">], "optional", never>;
|
|
476
|
+
}, "required", "country" | "debutYear" | "gender" | "genres" | "imageUrl" | "members" | "name" | "popularity" | "url">, import("convex/values").VObject<{
|
|
477
|
+
artists: {
|
|
478
|
+
externalId?: string | undefined;
|
|
479
|
+
name: string;
|
|
480
|
+
}[];
|
|
481
|
+
coverUrl?: string | undefined;
|
|
482
|
+
releaseDate?: string | undefined;
|
|
483
|
+
title: string;
|
|
484
|
+
trackCount?: number | undefined;
|
|
485
|
+
url?: string | undefined;
|
|
486
|
+
}, {
|
|
487
|
+
title: import("convex/values").VString<string, "required">;
|
|
488
|
+
artists: import("convex/values").VArray<{
|
|
489
|
+
externalId?: string | undefined;
|
|
490
|
+
name: string;
|
|
491
|
+
}[], import("convex/values").VObject<{
|
|
492
|
+
externalId?: string | undefined;
|
|
493
|
+
name: string;
|
|
494
|
+
}, {
|
|
495
|
+
name: import("convex/values").VString<string, "required">;
|
|
496
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
497
|
+
}, "required", "externalId" | "name">, "required">;
|
|
498
|
+
releaseDate: import("convex/values").VString<string | undefined, "optional">;
|
|
499
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
500
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
501
|
+
trackCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
502
|
+
}, "required", "artists" | "coverUrl" | "releaseDate" | "title" | "trackCount" | "url">], "required", "albumId" | "artists" | "country" | "coverUrl" | "debutYear" | "durationMs" | "gender" | "genres" | "imageUrl" | "isrc" | "members" | "name" | "popularity" | "previewUrl" | "releaseDate" | "title" | "trackCount" | "url">;
|
|
503
|
+
fetchedAt: import("convex/values").VFloat64<number, "required">;
|
|
504
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
505
|
+
_id: import("convex/values").VId<import("convex/values").GenericId<"cacheEntries">, "required">;
|
|
506
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
507
|
+
}, "required", "_creationTime" | "_id" | "expiresAt" | "externalId" | "fetchedAt" | "isrc" | "kind" | "provider" | "value" | "value.albumId" | "value.artists" | "value.country" | "value.coverUrl" | "value.debutYear" | "value.durationMs" | "value.gender" | "value.genres" | "value.imageUrl" | "value.isrc" | "value.members" | "value.name" | "value.popularity" | "value.previewUrl" | "value.releaseDate" | "value.title" | "value.trackCount" | "value.url">;
|
|
508
|
+
/** Lifecycle of a catalog row's freshness sync. */
|
|
509
|
+
export declare const syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "required", never>;
|
|
510
|
+
/** Lifecycle of a catalog row's data-quality repair. */
|
|
511
|
+
export declare const repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing", [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "required", never>;
|
|
512
|
+
/** One provider's contribution to a unified artist (provenance). */
|
|
513
|
+
export declare const artistProviderEntry: import("convex/values").VObject<{
|
|
514
|
+
genres?: string[] | undefined;
|
|
515
|
+
imageUrl?: string | undefined;
|
|
516
|
+
popularity?: number | undefined;
|
|
517
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
518
|
+
providerId: string;
|
|
519
|
+
url?: string | undefined;
|
|
520
|
+
}, {
|
|
521
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
522
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
523
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
524
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
525
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
526
|
+
genres: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
527
|
+
}, "required", "genres" | "imageUrl" | "popularity" | "provider" | "providerId" | "url">;
|
|
528
|
+
/** One provider's contribution to a unified track (provenance). */
|
|
529
|
+
export declare const trackProviderEntry: import("convex/values").VObject<{
|
|
530
|
+
coverUrl?: string | undefined;
|
|
531
|
+
previewUrl?: string | undefined;
|
|
532
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
533
|
+
providerId: string;
|
|
534
|
+
url?: string | undefined;
|
|
535
|
+
}, {
|
|
536
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
537
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
538
|
+
previewUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
539
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
540
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
541
|
+
}, "required", "coverUrl" | "previewUrl" | "provider" | "providerId" | "url">;
|
|
542
|
+
/** Columns of a unified artist row. */
|
|
543
|
+
export declare const artistFields: {
|
|
544
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
545
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
546
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
547
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
548
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
549
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
550
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
551
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
552
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
553
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
554
|
+
name: import("convex/values").VString<string, "required">;
|
|
555
|
+
nameKey: import("convex/values").VString<string, "required">;
|
|
556
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
557
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
558
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
559
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
560
|
+
gender: import("convex/values").VString<string | undefined, "optional">;
|
|
561
|
+
debutYear: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
562
|
+
members: import("convex/values").VUnion<"group" | "solo" | undefined, [import("convex/values").VLiteral<"solo", "required">, import("convex/values").VLiteral<"group", "required">], "optional", never>;
|
|
563
|
+
providers: import("convex/values").VArray<{
|
|
564
|
+
genres?: string[] | undefined;
|
|
565
|
+
imageUrl?: string | undefined;
|
|
566
|
+
popularity?: number | undefined;
|
|
567
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
568
|
+
providerId: string;
|
|
569
|
+
url?: string | undefined;
|
|
570
|
+
}[], import("convex/values").VObject<{
|
|
571
|
+
genres?: string[] | undefined;
|
|
572
|
+
imageUrl?: string | undefined;
|
|
573
|
+
popularity?: number | undefined;
|
|
574
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
575
|
+
providerId: string;
|
|
576
|
+
url?: string | undefined;
|
|
577
|
+
}, {
|
|
578
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
579
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
580
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
581
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
582
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
583
|
+
genres: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
584
|
+
}, "required", "genres" | "imageUrl" | "popularity" | "provider" | "providerId" | "url">, "required">;
|
|
585
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
586
|
+
};
|
|
587
|
+
/** Columns of a unified track row. */
|
|
588
|
+
export declare const trackFields: {
|
|
589
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
590
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
591
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
592
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
593
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
594
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
595
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
596
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
597
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
598
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
599
|
+
isrc: import("convex/values").VString<string, "required">;
|
|
600
|
+
title: import("convex/values").VString<string, "required">;
|
|
601
|
+
artistIds: import("convex/values").VArray<import("convex/values").GenericId<"artists">[], import("convex/values").VId<import("convex/values").GenericId<"artists">, "required">, "required">;
|
|
602
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
603
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
604
|
+
durationMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
605
|
+
providers: import("convex/values").VArray<{
|
|
606
|
+
coverUrl?: string | undefined;
|
|
607
|
+
previewUrl?: string | undefined;
|
|
608
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
609
|
+
providerId: string;
|
|
610
|
+
url?: string | undefined;
|
|
611
|
+
}[], import("convex/values").VObject<{
|
|
612
|
+
coverUrl?: string | undefined;
|
|
613
|
+
previewUrl?: string | undefined;
|
|
614
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
615
|
+
providerId: string;
|
|
616
|
+
url?: string | undefined;
|
|
617
|
+
}, {
|
|
618
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
619
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
620
|
+
previewUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
621
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
622
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
623
|
+
}, "required", "coverUrl" | "previewUrl" | "provider" | "providerId" | "url">, "required">;
|
|
624
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
625
|
+
};
|
|
626
|
+
/** Columns of a playlist row (source-provider identity + ordered membership). */
|
|
627
|
+
export declare const playlistFields: {
|
|
628
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
629
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
630
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
631
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
632
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
633
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
634
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
635
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
636
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
637
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
638
|
+
title: import("convex/values").VString<string, "required">;
|
|
639
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
640
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
641
|
+
description: import("convex/values").VString<string | undefined, "optional">;
|
|
642
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
643
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
644
|
+
owner: import("convex/values").VString<string | undefined, "optional">;
|
|
645
|
+
trackIds: import("convex/values").VArray<import("convex/values").GenericId<"tracks">[], import("convex/values").VId<import("convex/values").GenericId<"tracks">, "required">, "required">;
|
|
646
|
+
snapshotVersion: import("convex/values").VString<string | undefined, "optional">;
|
|
647
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* Columns of an album row. Provider-keyed like a playlist (cross-provider
|
|
651
|
+
* unification by (artist+title+year) is a later identity step); carries the
|
|
652
|
+
* album-specific facts + its track membership.
|
|
653
|
+
*/
|
|
654
|
+
export declare const albumFields: {
|
|
655
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
656
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
657
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
658
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
659
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
660
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
661
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
662
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
663
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
664
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
665
|
+
title: import("convex/values").VString<string, "required">;
|
|
666
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
667
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
668
|
+
artistIds: import("convex/values").VArray<import("convex/values").GenericId<"artists">[], import("convex/values").VId<import("convex/values").GenericId<"artists">, "required">, "required">;
|
|
669
|
+
releaseDate: import("convex/values").VString<string | undefined, "optional">;
|
|
670
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
671
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
672
|
+
trackCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
673
|
+
trackIds: import("convex/values").VArray<import("convex/values").GenericId<"tracks">[], import("convex/values").VId<import("convex/values").GenericId<"tracks">, "required">, "required">;
|
|
674
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
675
|
+
};
|
|
676
|
+
/** Reverse index: `(provider, providerId)` → artist (arrays aren't indexable). */
|
|
677
|
+
export declare const artistProviderLinkFields: {
|
|
678
|
+
artistId: import("convex/values").VId<import("convex/values").GenericId<"artists">, "required">;
|
|
679
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
680
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
681
|
+
};
|
|
682
|
+
/** Reverse index: `(provider, providerId)` → track. */
|
|
683
|
+
export declare const trackProviderLinkFields: {
|
|
684
|
+
trackId: import("convex/values").VId<import("convex/values").GenericId<"tracks">, "required">;
|
|
685
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
686
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
687
|
+
};
|
|
688
|
+
/** A concurrency claim on a track sync (token + lease). */
|
|
689
|
+
export declare const trackClaimFields: {
|
|
690
|
+
isrc: import("convex/values").VString<string, "required">;
|
|
691
|
+
claimToken: import("convex/values").VString<string, "required">;
|
|
692
|
+
acquiredAt: import("convex/values").VFloat64<number, "required">;
|
|
693
|
+
leaseUntil: import("convex/values").VFloat64<number, "required">;
|
|
694
|
+
};
|
|
695
|
+
/** Public shape of a unified artist returned by queries. */
|
|
696
|
+
export declare const artistDoc: import("convex/values").VObject<{
|
|
697
|
+
_creationTime: number;
|
|
698
|
+
_id: import("convex/values").GenericId<"artists">;
|
|
699
|
+
country?: string | undefined;
|
|
700
|
+
debutYear?: number | undefined;
|
|
701
|
+
gender?: string | undefined;
|
|
702
|
+
genres: string[];
|
|
703
|
+
imageUrl?: string | undefined;
|
|
704
|
+
lastRepairAt?: number | undefined;
|
|
705
|
+
lastSyncError?: string | undefined;
|
|
706
|
+
lastSyncedAt?: number | undefined;
|
|
707
|
+
members?: "group" | "solo" | undefined;
|
|
708
|
+
name: string;
|
|
709
|
+
nameKey: string;
|
|
710
|
+
nextSyncAt?: number | undefined;
|
|
711
|
+
popularity?: number | undefined;
|
|
712
|
+
providers: {
|
|
713
|
+
genres?: string[] | undefined;
|
|
714
|
+
imageUrl?: string | undefined;
|
|
715
|
+
popularity?: number | undefined;
|
|
716
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
717
|
+
providerId: string;
|
|
718
|
+
url?: string | undefined;
|
|
719
|
+
}[];
|
|
720
|
+
repairAttempts?: number | undefined;
|
|
721
|
+
repairError?: string | undefined;
|
|
722
|
+
repairStartedAt?: number | undefined;
|
|
723
|
+
repairStatus?: "clean" | "failed_repair" | "needs_repair" | "repairing" | undefined;
|
|
724
|
+
syncRetryCount?: number | undefined;
|
|
725
|
+
syncStatus?: "failed" | "pending" | "running" | "stale" | "synced" | undefined;
|
|
726
|
+
updatedAt: number;
|
|
727
|
+
}, {
|
|
728
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
729
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
730
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
731
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
732
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
733
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
734
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
735
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
736
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
737
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
738
|
+
name: import("convex/values").VString<string, "required">;
|
|
739
|
+
nameKey: import("convex/values").VString<string, "required">;
|
|
740
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
741
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
742
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
743
|
+
country: import("convex/values").VString<string | undefined, "optional">;
|
|
744
|
+
gender: import("convex/values").VString<string | undefined, "optional">;
|
|
745
|
+
debutYear: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
746
|
+
members: import("convex/values").VUnion<"group" | "solo" | undefined, [import("convex/values").VLiteral<"solo", "required">, import("convex/values").VLiteral<"group", "required">], "optional", never>;
|
|
747
|
+
providers: import("convex/values").VArray<{
|
|
748
|
+
genres?: string[] | undefined;
|
|
749
|
+
imageUrl?: string | undefined;
|
|
750
|
+
popularity?: number | undefined;
|
|
751
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
752
|
+
providerId: string;
|
|
753
|
+
url?: string | undefined;
|
|
754
|
+
}[], import("convex/values").VObject<{
|
|
755
|
+
genres?: string[] | undefined;
|
|
756
|
+
imageUrl?: string | undefined;
|
|
757
|
+
popularity?: number | undefined;
|
|
758
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
759
|
+
providerId: string;
|
|
760
|
+
url?: string | undefined;
|
|
761
|
+
}, {
|
|
762
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
763
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
764
|
+
imageUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
765
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
766
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
767
|
+
genres: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
768
|
+
}, "required", "genres" | "imageUrl" | "popularity" | "provider" | "providerId" | "url">, "required">;
|
|
769
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
770
|
+
_id: import("convex/values").VId<import("convex/values").GenericId<"artists">, "required">;
|
|
771
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
772
|
+
}, "required", "_creationTime" | "_id" | "country" | "debutYear" | "gender" | "genres" | "imageUrl" | "lastRepairAt" | "lastSyncError" | "lastSyncedAt" | "members" | "name" | "nameKey" | "nextSyncAt" | "popularity" | "providers" | "repairAttempts" | "repairError" | "repairStartedAt" | "repairStatus" | "syncRetryCount" | "syncStatus" | "updatedAt">;
|
|
773
|
+
/** Public shape of a unified track returned by queries. */
|
|
774
|
+
export declare const trackDoc: import("convex/values").VObject<{
|
|
775
|
+
_creationTime: number;
|
|
776
|
+
_id: import("convex/values").GenericId<"tracks">;
|
|
777
|
+
artistIds: import("convex/values").GenericId<"artists">[];
|
|
778
|
+
durationMs?: number | undefined;
|
|
779
|
+
genres: string[];
|
|
780
|
+
isrc: string;
|
|
781
|
+
lastRepairAt?: number | undefined;
|
|
782
|
+
lastSyncError?: string | undefined;
|
|
783
|
+
lastSyncedAt?: number | undefined;
|
|
784
|
+
nextSyncAt?: number | undefined;
|
|
785
|
+
popularity?: number | undefined;
|
|
786
|
+
providers: {
|
|
787
|
+
coverUrl?: string | undefined;
|
|
788
|
+
previewUrl?: string | undefined;
|
|
789
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
790
|
+
providerId: string;
|
|
791
|
+
url?: string | undefined;
|
|
792
|
+
}[];
|
|
793
|
+
repairAttempts?: number | undefined;
|
|
794
|
+
repairError?: string | undefined;
|
|
795
|
+
repairStartedAt?: number | undefined;
|
|
796
|
+
repairStatus?: "clean" | "failed_repair" | "needs_repair" | "repairing" | undefined;
|
|
797
|
+
syncRetryCount?: number | undefined;
|
|
798
|
+
syncStatus?: "failed" | "pending" | "running" | "stale" | "synced" | undefined;
|
|
799
|
+
title: string;
|
|
800
|
+
updatedAt: number;
|
|
801
|
+
}, {
|
|
802
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
803
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
804
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
805
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
806
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
807
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
808
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
809
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
810
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
811
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
812
|
+
isrc: import("convex/values").VString<string, "required">;
|
|
813
|
+
title: import("convex/values").VString<string, "required">;
|
|
814
|
+
artistIds: import("convex/values").VArray<import("convex/values").GenericId<"artists">[], import("convex/values").VId<import("convex/values").GenericId<"artists">, "required">, "required">;
|
|
815
|
+
genres: import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">;
|
|
816
|
+
popularity: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
817
|
+
durationMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
818
|
+
providers: import("convex/values").VArray<{
|
|
819
|
+
coverUrl?: string | undefined;
|
|
820
|
+
previewUrl?: string | undefined;
|
|
821
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
822
|
+
providerId: string;
|
|
823
|
+
url?: string | undefined;
|
|
824
|
+
}[], import("convex/values").VObject<{
|
|
825
|
+
coverUrl?: string | undefined;
|
|
826
|
+
previewUrl?: string | undefined;
|
|
827
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
828
|
+
providerId: string;
|
|
829
|
+
url?: string | undefined;
|
|
830
|
+
}, {
|
|
831
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
832
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
833
|
+
previewUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
834
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
835
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
836
|
+
}, "required", "coverUrl" | "previewUrl" | "provider" | "providerId" | "url">, "required">;
|
|
837
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
838
|
+
_id: import("convex/values").VId<import("convex/values").GenericId<"tracks">, "required">;
|
|
839
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
840
|
+
}, "required", "_creationTime" | "_id" | "artistIds" | "durationMs" | "genres" | "isrc" | "lastRepairAt" | "lastSyncError" | "lastSyncedAt" | "nextSyncAt" | "popularity" | "providers" | "repairAttempts" | "repairError" | "repairStartedAt" | "repairStatus" | "syncRetryCount" | "syncStatus" | "title" | "updatedAt">;
|
|
841
|
+
/** Public shape of a playlist returned by queries. */
|
|
842
|
+
export declare const playlistDoc: import("convex/values").VObject<{
|
|
843
|
+
_creationTime: number;
|
|
844
|
+
_id: import("convex/values").GenericId<"playlists">;
|
|
845
|
+
coverUrl?: string | undefined;
|
|
846
|
+
description?: string | undefined;
|
|
847
|
+
lastRepairAt?: number | undefined;
|
|
848
|
+
lastSyncError?: string | undefined;
|
|
849
|
+
lastSyncedAt?: number | undefined;
|
|
850
|
+
nextSyncAt?: number | undefined;
|
|
851
|
+
owner?: string | undefined;
|
|
852
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
853
|
+
providerId: string;
|
|
854
|
+
repairAttempts?: number | undefined;
|
|
855
|
+
repairError?: string | undefined;
|
|
856
|
+
repairStartedAt?: number | undefined;
|
|
857
|
+
repairStatus?: "clean" | "failed_repair" | "needs_repair" | "repairing" | undefined;
|
|
858
|
+
snapshotVersion?: string | undefined;
|
|
859
|
+
syncRetryCount?: number | undefined;
|
|
860
|
+
syncStatus?: "failed" | "pending" | "running" | "stale" | "synced" | undefined;
|
|
861
|
+
title: string;
|
|
862
|
+
trackIds: import("convex/values").GenericId<"tracks">[];
|
|
863
|
+
updatedAt: number;
|
|
864
|
+
url?: string | undefined;
|
|
865
|
+
}, {
|
|
866
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
867
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
868
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
869
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
870
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
871
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
872
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
873
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
874
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
875
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
876
|
+
title: import("convex/values").VString<string, "required">;
|
|
877
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
878
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
879
|
+
description: import("convex/values").VString<string | undefined, "optional">;
|
|
880
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
881
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
882
|
+
owner: import("convex/values").VString<string | undefined, "optional">;
|
|
883
|
+
trackIds: import("convex/values").VArray<import("convex/values").GenericId<"tracks">[], import("convex/values").VId<import("convex/values").GenericId<"tracks">, "required">, "required">;
|
|
884
|
+
snapshotVersion: import("convex/values").VString<string | undefined, "optional">;
|
|
885
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
886
|
+
_id: import("convex/values").VId<import("convex/values").GenericId<"playlists">, "required">;
|
|
887
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
888
|
+
}, "required", "_creationTime" | "_id" | "coverUrl" | "description" | "lastRepairAt" | "lastSyncError" | "lastSyncedAt" | "nextSyncAt" | "owner" | "provider" | "providerId" | "repairAttempts" | "repairError" | "repairStartedAt" | "repairStatus" | "snapshotVersion" | "syncRetryCount" | "syncStatus" | "title" | "trackIds" | "updatedAt" | "url">;
|
|
889
|
+
/** Public shape of an album returned by queries. */
|
|
890
|
+
export declare const albumDoc: import("convex/values").VObject<{
|
|
891
|
+
_creationTime: number;
|
|
892
|
+
_id: import("convex/values").GenericId<"albums">;
|
|
893
|
+
artistIds: import("convex/values").GenericId<"artists">[];
|
|
894
|
+
coverUrl?: string | undefined;
|
|
895
|
+
lastRepairAt?: number | undefined;
|
|
896
|
+
lastSyncError?: string | undefined;
|
|
897
|
+
lastSyncedAt?: number | undefined;
|
|
898
|
+
nextSyncAt?: number | undefined;
|
|
899
|
+
provider: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata";
|
|
900
|
+
providerId: string;
|
|
901
|
+
releaseDate?: string | undefined;
|
|
902
|
+
repairAttempts?: number | undefined;
|
|
903
|
+
repairError?: string | undefined;
|
|
904
|
+
repairStartedAt?: number | undefined;
|
|
905
|
+
repairStatus?: "clean" | "failed_repair" | "needs_repair" | "repairing" | undefined;
|
|
906
|
+
syncRetryCount?: number | undefined;
|
|
907
|
+
syncStatus?: "failed" | "pending" | "running" | "stale" | "synced" | undefined;
|
|
908
|
+
title: string;
|
|
909
|
+
trackCount?: number | undefined;
|
|
910
|
+
trackIds: import("convex/values").GenericId<"tracks">[];
|
|
911
|
+
updatedAt: number;
|
|
912
|
+
url?: string | undefined;
|
|
913
|
+
}, {
|
|
914
|
+
syncStatus: import("convex/values").VUnion<"failed" | "pending" | "running" | "stale" | "synced" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"synced", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"stale", "required">], "optional", never>;
|
|
915
|
+
syncRetryCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
916
|
+
lastSyncError: import("convex/values").VString<string | undefined, "optional">;
|
|
917
|
+
nextSyncAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
918
|
+
lastSyncedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
919
|
+
repairStatus: import("convex/values").VUnion<"clean" | "failed_repair" | "needs_repair" | "repairing" | undefined, [import("convex/values").VLiteral<"clean", "required">, import("convex/values").VLiteral<"needs_repair", "required">, import("convex/values").VLiteral<"repairing", "required">, import("convex/values").VLiteral<"failed_repair", "required">], "optional", never>;
|
|
920
|
+
repairAttempts: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
921
|
+
repairError: import("convex/values").VString<string | undefined, "optional">;
|
|
922
|
+
lastRepairAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
923
|
+
repairStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
924
|
+
title: import("convex/values").VString<string, "required">;
|
|
925
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
926
|
+
providerId: import("convex/values").VString<string, "required">;
|
|
927
|
+
artistIds: import("convex/values").VArray<import("convex/values").GenericId<"artists">[], import("convex/values").VId<import("convex/values").GenericId<"artists">, "required">, "required">;
|
|
928
|
+
releaseDate: import("convex/values").VString<string | undefined, "optional">;
|
|
929
|
+
coverUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
930
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
931
|
+
trackCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
932
|
+
trackIds: import("convex/values").VArray<import("convex/values").GenericId<"tracks">[], import("convex/values").VId<import("convex/values").GenericId<"tracks">, "required">, "required">;
|
|
933
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
934
|
+
_id: import("convex/values").VId<import("convex/values").GenericId<"albums">, "required">;
|
|
935
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
936
|
+
}, "required", "_creationTime" | "_id" | "artistIds" | "coverUrl" | "lastRepairAt" | "lastSyncError" | "lastSyncedAt" | "nextSyncAt" | "provider" | "providerId" | "releaseDate" | "repairAttempts" | "repairError" | "repairStartedAt" | "repairStatus" | "syncRetryCount" | "syncStatus" | "title" | "trackCount" | "trackIds" | "updatedAt" | "url">;
|
|
937
|
+
/**
|
|
938
|
+
* Provider credentials, as a string map (`clientId`/`clientSecret` for Spotify;
|
|
939
|
+
* `issuer`/`keyId`/`privateKeyPem` for Apple). A Convex component is sandboxed
|
|
940
|
+
* from the host deployment's env vars, so the host reads its own env and passes
|
|
941
|
+
* credentials in via `configure`; the component stores them in its own
|
|
942
|
+
* sandboxed table (never readable by the host or sibling components).
|
|
943
|
+
*/
|
|
944
|
+
export declare const providerSecrets: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
945
|
+
/** Columns of a stored provider-credentials row. */
|
|
946
|
+
export declare const providerConfigFields: {
|
|
947
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>;
|
|
948
|
+
secrets: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
|
|
949
|
+
};
|
|
950
|
+
/** What an import targets. */
|
|
951
|
+
export declare const importEntityType: import("convex/values").VUnion<"album" | "artist" | "playlist" | "track", [import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"playlist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
952
|
+
/** The kind of import work. */
|
|
953
|
+
export declare const importMode: import("convex/values").VUnion<"import" | "refresh" | "reimport" | "repair", [import("convex/values").VLiteral<"import", "required">, import("convex/values").VLiteral<"refresh", "required">, import("convex/values").VLiteral<"reimport", "required">, import("convex/values").VLiteral<"repair", "required">], "required", never>;
|
|
954
|
+
/**
|
|
955
|
+
* Artist-import track traversal depth: `none` (artist only), `top` (the
|
|
956
|
+
* provider's top tracks), or `all` (every track across the artist's albums).
|
|
957
|
+
*/
|
|
958
|
+
export declare const artistTracksMode: import("convex/values").VUnion<"all" | "none" | "top", [import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"top", "required">, import("convex/values").VLiteral<"all", "required">], "required", never>;
|
|
959
|
+
/** Queue ordering hint. */
|
|
960
|
+
export declare const importPriority: import("convex/values").VUnion<"high" | "low" | "normal", [import("convex/values").VLiteral<"high", "required">, import("convex/values").VLiteral<"normal", "required">, import("convex/values").VLiteral<"low", "required">], "required", never>;
|
|
961
|
+
/** How the target is identified. */
|
|
962
|
+
export declare const importTargetMode: import("convex/values").VUnion<"entityId" | "isrc" | "name" | "providerId" | "url", [import("convex/values").VLiteral<"name", "required">, import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"isrc", "required">, import("convex/values").VLiteral<"providerId", "required">, import("convex/values").VLiteral<"entityId", "required">], "required", never>;
|
|
963
|
+
/** The 8 lifecycle states of an import request. */
|
|
964
|
+
export declare const importStatus: import("convex/values").VUnion<"canceled" | "claimed" | "completed" | "failed" | "queued" | "retry_waiting" | "running" | "stale", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"claimed", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"retry_waiting", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"stale", "required">], "required", never>;
|
|
965
|
+
/** Per-call import options (provider select + traversal depth + mode). */
|
|
966
|
+
export declare const importOptions: import("convex/values").VObject<{
|
|
967
|
+
mode?: "import" | "refresh" | "reimport" | "repair" | undefined;
|
|
968
|
+
priority?: "high" | "low" | "normal" | undefined;
|
|
969
|
+
providers?: ("apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata")[] | undefined;
|
|
970
|
+
withTracks?: boolean | undefined;
|
|
971
|
+
}, {
|
|
972
|
+
providers: import("convex/values").VArray<("apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata")[] | undefined, import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata", [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "required", never>, "optional">;
|
|
973
|
+
withTracks: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
974
|
+
mode: import("convex/values").VUnion<"import" | "refresh" | "reimport" | "repair" | undefined, [import("convex/values").VLiteral<"import", "required">, import("convex/values").VLiteral<"refresh", "required">, import("convex/values").VLiteral<"reimport", "required">, import("convex/values").VLiteral<"repair", "required">], "optional", never>;
|
|
975
|
+
priority: import("convex/values").VUnion<"high" | "low" | "normal" | undefined, [import("convex/values").VLiteral<"high", "required">, import("convex/values").VLiteral<"normal", "required">, import("convex/values").VLiteral<"low", "required">], "optional", never>;
|
|
976
|
+
}, "required", "mode" | "priority" | "providers" | "withTracks">;
|
|
977
|
+
/** Columns of an import-request row. */
|
|
978
|
+
export declare const importRequestFields: {
|
|
979
|
+
entityType: import("convex/values").VUnion<"album" | "artist" | "playlist" | "track", [import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"playlist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
980
|
+
requestType: import("convex/values").VUnion<"import" | "refresh" | "reimport" | "repair", [import("convex/values").VLiteral<"import", "required">, import("convex/values").VLiteral<"refresh", "required">, import("convex/values").VLiteral<"reimport", "required">, import("convex/values").VLiteral<"repair", "required">], "required", never>;
|
|
981
|
+
targetMode: import("convex/values").VUnion<"entityId" | "isrc" | "name" | "providerId" | "url", [import("convex/values").VLiteral<"name", "required">, import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"isrc", "required">, import("convex/values").VLiteral<"providerId", "required">, import("convex/values").VLiteral<"entityId", "required">], "required", never>;
|
|
982
|
+
providerScope: import("convex/values").VString<string, "required">;
|
|
983
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata" | undefined, [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "optional", never>;
|
|
984
|
+
providerId: import("convex/values").VString<string | undefined, "optional">;
|
|
985
|
+
entityId: import("convex/values").VString<string | undefined, "optional">;
|
|
986
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
987
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
988
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
989
|
+
withTracks: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
990
|
+
priority: import("convex/values").VUnion<"high" | "low" | "normal", [import("convex/values").VLiteral<"high", "required">, import("convex/values").VLiteral<"normal", "required">, import("convex/values").VLiteral<"low", "required">], "required", never>;
|
|
991
|
+
status: import("convex/values").VUnion<"canceled" | "claimed" | "completed" | "failed" | "queued" | "retry_waiting" | "running" | "stale", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"claimed", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"retry_waiting", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"stale", "required">], "required", never>;
|
|
992
|
+
dedupeKey: import("convex/values").VString<string, "required">;
|
|
993
|
+
retryCount: import("convex/values").VFloat64<number, "required">;
|
|
994
|
+
nextAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
995
|
+
resolvedArtistId: import("convex/values").VId<import("convex/values").GenericId<"artists"> | undefined, "optional">;
|
|
996
|
+
resolvedTrackId: import("convex/values").VId<import("convex/values").GenericId<"tracks"> | undefined, "optional">;
|
|
997
|
+
resolvedPlaylistId: import("convex/values").VId<import("convex/values").GenericId<"playlists"> | undefined, "optional">;
|
|
998
|
+
resolvedAlbumId: import("convex/values").VId<import("convex/values").GenericId<"albums"> | undefined, "optional">;
|
|
999
|
+
errorSummary: import("convex/values").VString<string | undefined, "optional">;
|
|
1000
|
+
resultSummary: import("convex/values").VString<string | undefined, "optional">;
|
|
1001
|
+
requestedAt: import("convex/values").VFloat64<number, "required">;
|
|
1002
|
+
startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1003
|
+
finishedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1004
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
1005
|
+
};
|
|
1006
|
+
/** Public shape of an import request returned by queries. */
|
|
1007
|
+
export declare const importRequestDoc: import("convex/values").VObject<{
|
|
1008
|
+
_creationTime: number;
|
|
1009
|
+
_id: import("convex/values").GenericId<"importRequests">;
|
|
1010
|
+
dedupeKey: string;
|
|
1011
|
+
entityId?: string | undefined;
|
|
1012
|
+
entityType: "album" | "artist" | "playlist" | "track";
|
|
1013
|
+
errorSummary?: string | undefined;
|
|
1014
|
+
finishedAt?: number | undefined;
|
|
1015
|
+
isrc?: string | undefined;
|
|
1016
|
+
name?: string | undefined;
|
|
1017
|
+
nextAttemptAt?: number | undefined;
|
|
1018
|
+
priority: "high" | "low" | "normal";
|
|
1019
|
+
provider?: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata" | undefined;
|
|
1020
|
+
providerId?: string | undefined;
|
|
1021
|
+
providerScope: string;
|
|
1022
|
+
requestType: "import" | "refresh" | "reimport" | "repair";
|
|
1023
|
+
requestedAt: number;
|
|
1024
|
+
resolvedAlbumId?: import("convex/values").GenericId<"albums"> | undefined;
|
|
1025
|
+
resolvedArtistId?: import("convex/values").GenericId<"artists"> | undefined;
|
|
1026
|
+
resolvedPlaylistId?: import("convex/values").GenericId<"playlists"> | undefined;
|
|
1027
|
+
resolvedTrackId?: import("convex/values").GenericId<"tracks"> | undefined;
|
|
1028
|
+
resultSummary?: string | undefined;
|
|
1029
|
+
retryCount: number;
|
|
1030
|
+
startedAt?: number | undefined;
|
|
1031
|
+
status: "canceled" | "claimed" | "completed" | "failed" | "queued" | "retry_waiting" | "running" | "stale";
|
|
1032
|
+
targetMode: "entityId" | "isrc" | "name" | "providerId" | "url";
|
|
1033
|
+
updatedAt: number;
|
|
1034
|
+
url?: string | undefined;
|
|
1035
|
+
withTracks?: boolean | undefined;
|
|
1036
|
+
}, {
|
|
1037
|
+
entityType: import("convex/values").VUnion<"album" | "artist" | "playlist" | "track", [import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"playlist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
1038
|
+
requestType: import("convex/values").VUnion<"import" | "refresh" | "reimport" | "repair", [import("convex/values").VLiteral<"import", "required">, import("convex/values").VLiteral<"refresh", "required">, import("convex/values").VLiteral<"reimport", "required">, import("convex/values").VLiteral<"repair", "required">], "required", never>;
|
|
1039
|
+
targetMode: import("convex/values").VUnion<"entityId" | "isrc" | "name" | "providerId" | "url", [import("convex/values").VLiteral<"name", "required">, import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"isrc", "required">, import("convex/values").VLiteral<"providerId", "required">, import("convex/values").VLiteral<"entityId", "required">], "required", never>;
|
|
1040
|
+
providerScope: import("convex/values").VString<string, "required">;
|
|
1041
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata" | undefined, [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "optional", never>;
|
|
1042
|
+
providerId: import("convex/values").VString<string | undefined, "optional">;
|
|
1043
|
+
entityId: import("convex/values").VString<string | undefined, "optional">;
|
|
1044
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
1045
|
+
isrc: import("convex/values").VString<string | undefined, "optional">;
|
|
1046
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
1047
|
+
withTracks: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1048
|
+
priority: import("convex/values").VUnion<"high" | "low" | "normal", [import("convex/values").VLiteral<"high", "required">, import("convex/values").VLiteral<"normal", "required">, import("convex/values").VLiteral<"low", "required">], "required", never>;
|
|
1049
|
+
status: import("convex/values").VUnion<"canceled" | "claimed" | "completed" | "failed" | "queued" | "retry_waiting" | "running" | "stale", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"claimed", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"retry_waiting", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"failed", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"stale", "required">], "required", never>;
|
|
1050
|
+
dedupeKey: import("convex/values").VString<string, "required">;
|
|
1051
|
+
retryCount: import("convex/values").VFloat64<number, "required">;
|
|
1052
|
+
nextAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1053
|
+
resolvedArtistId: import("convex/values").VId<import("convex/values").GenericId<"artists"> | undefined, "optional">;
|
|
1054
|
+
resolvedTrackId: import("convex/values").VId<import("convex/values").GenericId<"tracks"> | undefined, "optional">;
|
|
1055
|
+
resolvedPlaylistId: import("convex/values").VId<import("convex/values").GenericId<"playlists"> | undefined, "optional">;
|
|
1056
|
+
resolvedAlbumId: import("convex/values").VId<import("convex/values").GenericId<"albums"> | undefined, "optional">;
|
|
1057
|
+
errorSummary: import("convex/values").VString<string | undefined, "optional">;
|
|
1058
|
+
resultSummary: import("convex/values").VString<string | undefined, "optional">;
|
|
1059
|
+
requestedAt: import("convex/values").VFloat64<number, "required">;
|
|
1060
|
+
startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1061
|
+
finishedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1062
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
1063
|
+
_id: import("convex/values").VId<import("convex/values").GenericId<"importRequests">, "required">;
|
|
1064
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
1065
|
+
}, "required", "_creationTime" | "_id" | "dedupeKey" | "entityId" | "entityType" | "errorSummary" | "finishedAt" | "isrc" | "name" | "nextAttemptAt" | "priority" | "provider" | "providerId" | "providerScope" | "requestType" | "requestedAt" | "resolvedAlbumId" | "resolvedArtistId" | "resolvedPlaylistId" | "resolvedTrackId" | "resultSummary" | "retryCount" | "startedAt" | "status" | "targetMode" | "updatedAt" | "url" | "withTracks">;
|
|
1066
|
+
/**
|
|
1067
|
+
* A registered import source — the generic, host-managed "keep this synced"
|
|
1068
|
+
* input (artist by name, playlist by url/id, track by ISRC, …). The host's
|
|
1069
|
+
* curated/categorized definitions stay host-side and reconcile INTO this
|
|
1070
|
+
* registry; the auto-import sweep imports enabled sources.
|
|
1071
|
+
*/
|
|
1072
|
+
export declare const sourceFields: {
|
|
1073
|
+
kind: import("convex/values").VUnion<"album" | "artist" | "playlist" | "track", [import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"playlist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
1074
|
+
by: import("convex/values").VUnion<"entityId" | "isrc" | "name" | "providerId" | "url", [import("convex/values").VLiteral<"name", "required">, import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"isrc", "required">, import("convex/values").VLiteral<"providerId", "required">, import("convex/values").VLiteral<"entityId", "required">], "required", never>;
|
|
1075
|
+
value: import("convex/values").VString<string, "required">;
|
|
1076
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata" | undefined, [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "optional", never>;
|
|
1077
|
+
withTracks: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1078
|
+
cadenceMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1079
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
1080
|
+
lastImportedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1081
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1082
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
1083
|
+
};
|
|
1084
|
+
/** Public shape of a registered source returned by queries. */
|
|
1085
|
+
export declare const sourceDoc: import("convex/values").VObject<{
|
|
1086
|
+
_creationTime: number;
|
|
1087
|
+
_id: import("convex/values").GenericId<"sources">;
|
|
1088
|
+
by: "entityId" | "isrc" | "name" | "providerId" | "url";
|
|
1089
|
+
cadenceMs?: number | undefined;
|
|
1090
|
+
createdAt: number;
|
|
1091
|
+
enabled: boolean;
|
|
1092
|
+
kind: "album" | "artist" | "playlist" | "track";
|
|
1093
|
+
lastImportedAt?: number | undefined;
|
|
1094
|
+
provider?: "apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata" | undefined;
|
|
1095
|
+
updatedAt: number;
|
|
1096
|
+
value: string;
|
|
1097
|
+
withTracks?: boolean | undefined;
|
|
1098
|
+
}, {
|
|
1099
|
+
kind: import("convex/values").VUnion<"album" | "artist" | "playlist" | "track", [import("convex/values").VLiteral<"artist", "required">, import("convex/values").VLiteral<"track", "required">, import("convex/values").VLiteral<"playlist", "required">, import("convex/values").VLiteral<"album", "required">], "required", never>;
|
|
1100
|
+
by: import("convex/values").VUnion<"entityId" | "isrc" | "name" | "providerId" | "url", [import("convex/values").VLiteral<"name", "required">, import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"isrc", "required">, import("convex/values").VLiteral<"providerId", "required">, import("convex/values").VLiteral<"entityId", "required">], "required", never>;
|
|
1101
|
+
value: import("convex/values").VString<string, "required">;
|
|
1102
|
+
provider: import("convex/values").VUnion<"apple" | "deezer" | "musicbrainz" | "spotify" | "wikidata" | undefined, [import("convex/values").VLiteral<"spotify", "required">, import("convex/values").VLiteral<"apple", "required">, import("convex/values").VLiteral<"musicbrainz", "required">, import("convex/values").VLiteral<"wikidata", "required">, import("convex/values").VLiteral<"deezer", "required">], "optional", never>;
|
|
1103
|
+
withTracks: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1104
|
+
cadenceMs: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1105
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
1106
|
+
lastImportedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1107
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
1108
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
1109
|
+
_id: import("convex/values").VId<import("convex/values").GenericId<"sources">, "required">;
|
|
1110
|
+
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
1111
|
+
}, "required", "_creationTime" | "_id" | "by" | "cadenceMs" | "createdAt" | "enabled" | "kind" | "lastImportedAt" | "provider" | "updatedAt" | "value" | "withTracks">;
|
|
1112
|
+
//# sourceMappingURL=validators.d.ts.map
|