@vllnt/convex-music 0.1.0 → 0.2.0-canary.69003b8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +136 -64
- package/dist/component/_generated/api.d.ts +2 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +0 -166
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/actions.js +3 -3
- package/dist/component/actions.js.map +1 -1
- package/dist/component/catalog/browse_order.d.ts +0 -6
- package/dist/component/catalog/browse_order.d.ts.map +1 -1
- package/dist/component/catalog/browse_order.js +0 -6
- package/dist/component/catalog/browse_order.js.map +1 -1
- package/dist/component/catalog/mutations.d.ts.map +1 -1
- package/dist/component/catalog/mutations.js +7 -0
- package/dist/component/catalog/mutations.js.map +1 -1
- package/dist/component/catalog/queries.d.ts +2 -8
- package/dist/component/catalog/queries.d.ts.map +1 -1
- package/dist/component/catalog/queries.js +20 -17
- package/dist/component/catalog/queries.js.map +1 -1
- package/dist/component/guards.d.ts +14 -0
- package/dist/component/guards.d.ts.map +1 -0
- package/dist/component/guards.js +50 -0
- package/dist/component/guards.js.map +1 -0
- package/dist/component/imports/actions.d.ts +4 -4
- package/dist/component/imports/actions.d.ts.map +1 -1
- package/dist/component/imports/actions.js +42 -35
- package/dist/component/imports/actions.js.map +1 -1
- package/dist/component/imports/dedupe.d.ts +0 -7
- package/dist/component/imports/dedupe.d.ts.map +1 -1
- package/dist/component/imports/dedupe.js +0 -7
- package/dist/component/imports/dedupe.js.map +1 -1
- package/dist/component/imports/state.d.ts +0 -6
- package/dist/component/imports/state.d.ts.map +1 -1
- package/dist/component/imports/state.js +0 -6
- package/dist/component/imports/state.js.map +1 -1
- package/dist/component/mutations.d.ts.map +1 -1
- package/dist/component/mutations.js +3 -0
- package/dist/component/mutations.js.map +1 -1
- package/dist/component/providers/apple/jwt.d.ts +0 -7
- package/dist/component/providers/apple/jwt.d.ts.map +1 -1
- package/dist/component/providers/apple/jwt.js +0 -7
- package/dist/component/providers/apple/jwt.js.map +1 -1
- package/dist/component/providers/fetch.d.ts +0 -18
- package/dist/component/providers/fetch.d.ts.map +1 -1
- package/dist/component/providers/fetch.js +0 -18
- package/dist/component/providers/fetch.js.map +1 -1
- package/dist/component/providers/spotify/impl.d.ts +0 -1
- package/dist/component/providers/spotify/impl.d.ts.map +1 -1
- package/dist/component/providers/spotify/impl.js.map +1 -1
- package/dist/component/sources/actions.d.ts.map +1 -1
- package/dist/component/sources/actions.js +7 -3
- package/dist/component/sources/actions.js.map +1 -1
- package/dist/component/sources/mutations.d.ts +1 -1
- package/dist/component/sources/mutations.d.ts.map +1 -1
- package/dist/component/sources/mutations.js +5 -2
- package/dist/component/sources/mutations.js.map +1 -1
- package/dist/component/sync/lifecycle.d.ts +0 -8
- package/dist/component/sync/lifecycle.d.ts.map +1 -1
- package/dist/component/sync/lifecycle.js +0 -8
- package/dist/component/sync/lifecycle.js.map +1 -1
- package/dist/component/sync/mutations.d.ts +1 -1
- package/dist/component/sync/mutations.d.ts.map +1 -1
- package/dist/component/sync/mutations.js +2 -2
- package/dist/component/sync/mutations.js.map +1 -1
- package/dist/component/validators.d.ts.map +1 -1
- package/dist/component/validators.js +0 -13
- package/dist/component/validators.js.map +1 -1
- package/package.json +31 -24
- package/src/component/_generated/api.ts +2 -0
- package/src/component/_generated/component.ts +0 -259
- package/src/component/actions.ts +3 -3
- package/src/component/catalog/browse_order.ts +0 -7
- package/src/component/catalog/mutations.ts +7 -0
- package/src/component/catalog/queries.ts +16 -15
- package/src/component/guards.ts +54 -0
- package/src/component/imports/actions.ts +24 -15
- package/src/component/imports/dedupe.ts +0 -8
- package/src/component/imports/state.ts +0 -7
- package/src/component/mutations.ts +3 -0
- package/src/component/providers/apple/jwt.ts +0 -8
- package/src/component/providers/fetch.ts +0 -19
- package/src/component/providers/spotify/impl.ts +0 -1
- package/src/component/sources/actions.ts +7 -3
- package/src/component/sources/mutations.ts +5 -2
- package/src/component/sync/lifecycle.ts +0 -9
- package/src/component/sync/mutations.ts +6 -2
- package/src/component/validators.ts +0 -13
- package/src/component/cache-migration.test.ts +0 -128
- package/src/component/catalog/browse_order.test.ts +0 -55
- package/src/component/catalog/field_source_policy.test.ts +0 -47
- package/src/component/catalog/merge.test.ts +0 -187
- package/src/component/crons.test.ts +0 -8
- package/src/component/imports/dedupe.test.ts +0 -66
- package/src/component/imports/state.test.ts +0 -60
- package/src/component/providers/apple/impl.test.ts +0 -267
- package/src/component/providers/apple/jwt.test.ts +0 -153
- package/src/component/providers/apple/mappers.test.ts +0 -190
- package/src/component/providers/deezer/impl.test.ts +0 -109
- package/src/component/providers/deezer/mappers.test.ts +0 -78
- package/src/component/providers/fetch.test.ts +0 -308
- package/src/component/providers/musicbrainz/impl.test.ts +0 -79
- package/src/component/providers/musicbrainz/mappers.test.ts +0 -75
- package/src/component/providers/registry.test.ts +0 -14
- package/src/component/providers/spotify/client.test.ts +0 -80
- package/src/component/providers/spotify/impl.test.ts +0 -329
- package/src/component/providers/spotify/mappers.test.ts +0 -182
- package/src/component/providers/wikidata/impl.test.ts +0 -81
- package/src/component/providers/wikidata/mappers.test.ts +0 -62
- package/src/component/sync/lifecycle.test.ts +0 -72
- package/src/react/index.test.ts +0 -78
package/README.md
CHANGED
|
@@ -7,42 +7,58 @@
|
|
|
7
7
|
|
|
8
8
|
# @vllnt/convex-music
|
|
9
9
|
|
|
10
|
-
A provider-neutral, cached music catalog for Convex apps — look up tracks,
|
|
11
|
-
from Spotify, Apple Music, and more through one typed API,
|
|
12
|
-
own sandboxed tables.
|
|
10
|
+
A provider-neutral, cached music catalog for Convex apps — look up tracks,
|
|
11
|
+
artists, and albums from Spotify, Apple Music, and more through one typed API,
|
|
12
|
+
with results cached in the component's own sandboxed tables.
|
|
13
13
|
|
|
14
14
|
```ts
|
|
15
15
|
const music = new Music(components.music);
|
|
16
16
|
|
|
17
17
|
// Cache a provider's normalized facts for an entity (TTL-bounded)…
|
|
18
|
-
await music.put(ctx, {
|
|
18
|
+
await music.put(ctx, {
|
|
19
|
+
kind: "track",
|
|
20
|
+
provider: "spotify",
|
|
21
|
+
externalId: id,
|
|
22
|
+
isrc,
|
|
23
|
+
value,
|
|
24
|
+
});
|
|
19
25
|
// …then read it back fast on the next request.
|
|
20
|
-
const hit = await music.get(ctx, {
|
|
26
|
+
const hit = await music.get(ctx, {
|
|
27
|
+
kind: "track",
|
|
28
|
+
provider: "spotify",
|
|
29
|
+
externalId: id,
|
|
30
|
+
});
|
|
21
31
|
```
|
|
22
32
|
|
|
23
33
|
## Features
|
|
24
34
|
|
|
25
|
-
- One typed API across providers — Spotify and Apple Music today; Deezer,
|
|
26
|
-
Wikidata as drop-in adapters.
|
|
27
|
-
- Sandboxed cache tables with a per-entry TTL — dedupe provider calls and ease
|
|
28
|
-
|
|
35
|
+
- One typed API across providers — Spotify and Apple Music today; Deezer,
|
|
36
|
+
MusicBrainz, and Wikidata as drop-in adapters.
|
|
37
|
+
- Sandboxed cache tables with a per-entry TTL — dedupe provider calls and ease
|
|
38
|
+
rate limits.
|
|
39
|
+
- Tracks, artists, and albums, cached by opaque provider id and cross-referenced
|
|
40
|
+
by ISRC.
|
|
29
41
|
- `getByIsrc` resolves the same recording across every provider you've cached.
|
|
30
|
-
- `pruneExpired` deletes an indexed 100-row batch and reschedules full batches
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
and read via API; your app keeps gameplay + editorial,
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
42
|
+
- `pruneExpired` deletes an indexed 100-row batch and reschedules full batches
|
|
43
|
+
until the backlog drains.
|
|
44
|
+
- Owns a durable music catalog (artists / tracks / playlists / albums) populated
|
|
45
|
+
from providers and read via API; your app keeps gameplay + editorial,
|
|
46
|
+
referencing catalog rows by id / ISRC.
|
|
47
|
+
- In-component import / sync / repair lifecycle and opt-in auto-import.
|
|
48
|
+
- Provider fetch/search actions (`fetchArtist`, `fetchTrack`, `search`,
|
|
49
|
+
`resolveByIsrc`), distinct from reactive catalog reads (`getArtist`,
|
|
50
|
+
`getTrack`, `getAlbum`).
|
|
51
|
+
- Field-source projection queries for provider provenance; see the current
|
|
52
|
+
[catalog query surface](src/component/catalog/queries.ts).
|
|
53
|
+
- `[planned]` Multiple catalogs per mount — one `app.use` holds many catalogs
|
|
54
|
+
(e.g. artists, tracks), each with its own providers + field-source policy; a
|
|
55
|
+
default catalog keeps single use zero-config. Named mounts remain available
|
|
56
|
+
for hard isolation.
|
|
57
|
+
- Pluggable providers — add a provider as one adapter (its raw schema + a mapper
|
|
58
|
+
to the internal normalized schema) registered in the registry; no core
|
|
59
|
+
changes.
|
|
60
|
+
- `[planned]` Artist-image auto-sync with a configurable provider-selection
|
|
61
|
+
policy.
|
|
46
62
|
|
|
47
63
|
## Installation
|
|
48
64
|
|
|
@@ -50,18 +66,27 @@ const hit = await music.get(ctx, { kind: "track", provider: "spotify", externalI
|
|
|
50
66
|
npm install @vllnt/convex-music
|
|
51
67
|
```
|
|
52
68
|
|
|
53
|
-
Requires `convex@^1.
|
|
69
|
+
Requires `convex@^1.45.0`. Use `npm install @vllnt/convex-music@canary` to try
|
|
70
|
+
unreleased changes from `main`.
|
|
54
71
|
|
|
55
|
-
###
|
|
72
|
+
### Provider credentials
|
|
56
73
|
|
|
57
|
-
|
|
74
|
+
The host reads
|
|
75
|
+
[Convex environment variables](https://docs.convex.dev/production/environment-variables)
|
|
76
|
+
and passes them to `music.configure(ctx, provider, secrets)` from a trusted
|
|
77
|
+
mutation. The component cannot read the host's environment: **it persists these
|
|
78
|
+
secrets in its sandboxed `providerConfig` table** and caches provider tokens
|
|
79
|
+
internally.
|
|
58
80
|
|
|
59
|
-
| Provider
|
|
60
|
-
|
|
|
61
|
-
| Spotify
|
|
81
|
+
| Provider | Variables |
|
|
82
|
+
| ----------- | ------------------------------------------------------------------ |
|
|
83
|
+
| Spotify | `SPOTIFY_CLIENT_ID`, `SPOTIFY_CLIENT_SECRET` |
|
|
62
84
|
| Apple Music | `APPLE_MUSIC_ISSUER`, `APPLE_MUSIC_KID`, `APPLE_MUSIC_PRIVATE_KEY` |
|
|
63
85
|
|
|
64
|
-
|
|
86
|
+
Pass `{ clientId, clientSecret }` for Spotify or
|
|
87
|
+
`{ issuer, keyId, privateKeyPem }` for Apple. Keep setup internal or
|
|
88
|
+
admin-authorized; never return secrets to browser clients or log them. Calling
|
|
89
|
+
`configure` again replaces that provider's stored secrets.
|
|
65
90
|
|
|
66
91
|
## Usage
|
|
67
92
|
|
|
@@ -76,17 +101,33 @@ app.use(music);
|
|
|
76
101
|
export default app;
|
|
77
102
|
```
|
|
78
103
|
|
|
79
|
-
|
|
80
|
-
|
|
104
|
+
Run `npx convex dev` to generate the component references. For separate catalogs
|
|
105
|
+
today, use named mounts such as `app.use(music, { name: "primaryMusic" })` and
|
|
106
|
+
`app.use(music, { name: "secondaryMusic" })`, with clients constructed from
|
|
107
|
+
`components.primaryMusic` and `components.secondaryMusic`. Each mount has its
|
|
108
|
+
own data and provider configuration; runtime multi-catalog APIs remain planned.
|
|
109
|
+
|
|
110
|
+
Then use the client from your own queries and mutations. The host owns auth —
|
|
111
|
+
gate the write methods behind your own authorized functions. Store only
|
|
112
|
+
app-specific domain data in your own tables:
|
|
81
113
|
|
|
82
114
|
```ts
|
|
115
|
+
import { v } from "convex/values";
|
|
83
116
|
import { Music } from "@vllnt/convex-music";
|
|
84
117
|
import { components } from "./_generated/api";
|
|
118
|
+
import { internalMutation } from "./_generated/server";
|
|
85
119
|
|
|
86
120
|
const music = new Music(components.music);
|
|
121
|
+
const trackValue = v.object({
|
|
122
|
+
title: v.string(),
|
|
123
|
+
artists: v.array(
|
|
124
|
+
v.object({ name: v.string(), externalId: v.optional(v.string()) }),
|
|
125
|
+
),
|
|
126
|
+
});
|
|
87
127
|
|
|
88
128
|
export const cacheTrack = internalMutation({
|
|
89
129
|
args: { externalId: v.string(), isrc: v.string(), value: trackValue },
|
|
130
|
+
returns: v.string(),
|
|
90
131
|
handler: (ctx, args) =>
|
|
91
132
|
music.put(ctx, {
|
|
92
133
|
kind: "track",
|
|
@@ -101,24 +142,33 @@ export const cacheTrack = internalMutation({
|
|
|
101
142
|
|
|
102
143
|
## API Reference
|
|
103
144
|
|
|
104
|
-
| Method
|
|
105
|
-
|
|
|
106
|
-
| `put(ctx, input)`
|
|
107
|
-
| `get(ctx, key)`
|
|
108
|
-
| `getByIsrc(ctx, isrc)`
|
|
109
|
-
| `invalidate(ctx, key)`
|
|
110
|
-
| `pruneExpired(ctx)`
|
|
111
|
-
| `stats(ctx)`
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
145
|
+
| Method | Kind | Description |
|
|
146
|
+
| ----------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------- |
|
|
147
|
+
| `put(ctx, input)` | mutation | Cache (insert or refresh) one provider's facts; returns the entry id. |
|
|
148
|
+
| `get(ctx, key)` | query | Fetch one cached entry, or `null` if missing or expired. |
|
|
149
|
+
| `getByIsrc(ctx, isrc)` | query | Every fresh cached track for an ISRC, across providers. |
|
|
150
|
+
| `invalidate(ctx, key)` | mutation | Drop one cached entry; returns whether a row was deleted. |
|
|
151
|
+
| `pruneExpired(ctx)` | mutation | Delete one bounded expired-entry batch, rescheduling until drained; returns this batch's count. |
|
|
152
|
+
| `stats(ctx)` | query | Maintained count of cached entries (no table scan). |
|
|
153
|
+
| `getArtist` / `getTrack` / `getPlaylist` / `getAlbum(ctx, id)` | query | Read a durable catalog entity. |
|
|
154
|
+
| `searchArtists` / `searchTracks(ctx, query, limit?)` | query | Search the local catalog. |
|
|
155
|
+
| `fetchArtist` / `fetchTrack(ctx, input)` | action | Read-through provider fetch and catalog promotion. |
|
|
156
|
+
| `search(ctx, input)` | action | Provider discovery without catalog promotion. |
|
|
157
|
+
| `importArtist` / `importTrack` / `importPlaylist` / `importAlbum(ctx, input)` | action | Import traversal with request status. |
|
|
158
|
+
| `configure(ctx, provider, secrets)` | mutation | Persist provider credentials (trusted setup only). |
|
|
159
|
+
|
|
160
|
+
Full reference — signatures, value shapes, and error codes:
|
|
161
|
+
[`docs/API.md`](docs/API.md).
|
|
162
|
+
|
|
163
|
+
## React
|
|
164
|
+
|
|
165
|
+
Available in the `./react` entry, over the implemented catalog queries. All hooks return `undefined` while loading, in addition to the
|
|
166
|
+
results below.
|
|
167
|
+
|
|
168
|
+
Optional, tree-shakeable hooks over `convex/react`. The host re-exports its own
|
|
169
|
+
catalog query refs and passes them in — the component never owns the host's
|
|
170
|
+
`api`. `react` is an optional peer dependency; `convex/react` comes from the
|
|
171
|
+
required `convex` peer.
|
|
122
172
|
|
|
123
173
|
```tsx
|
|
124
174
|
import { useArtist, useSearchTracks } from "@vllnt/convex-music/react";
|
|
@@ -128,19 +178,22 @@ const artist = useArtist(api.music.getArtist, artistId);
|
|
|
128
178
|
const tracks = useSearchTracks(api.music.searchTracks, query, 20);
|
|
129
179
|
```
|
|
130
180
|
|
|
131
|
-
| Hook
|
|
132
|
-
|
|
|
133
|
-
| `useArtist(ref, id)`
|
|
134
|
-
| `useTrack(ref, id)`
|
|
135
|
-
| `useArtistImage(ref, provider, id, policy?)`
|
|
136
|
-
| `useTrackPreview(ref, provider, id, policy?)` | `string \| null`
|
|
137
|
-
| `useSearchArtists(ref, query, limit?)`
|
|
138
|
-
| `useSearchTracks(ref, query, limit?)`
|
|
181
|
+
| Hook | Returns | Description |
|
|
182
|
+
| --------------------------------------------- | ----------------------- | ------------------------------------------------------ |
|
|
183
|
+
| `useArtist(ref, id)` | `CatalogArtist \| null` | Reactively read one unified artist by id. |
|
|
184
|
+
| `useTrack(ref, id)` | `CatalogTrack \| null` | Reactively read one unified track by id. |
|
|
185
|
+
| `useArtistImage(ref, provider, id, policy?)` | `string \| null` | Project an artist image per a field-source policy. |
|
|
186
|
+
| `useTrackPreview(ref, provider, id, policy?)` | `string \| null` | Project a track preview URL per a field-source policy. |
|
|
187
|
+
| `useSearchArtists(ref, query, limit?)` | `CatalogArtist[]` | Reactively search artists by name. |
|
|
188
|
+
| `useSearchTracks(ref, query, limit?)` | `CatalogTrack[]` | Reactively search tracks by title. |
|
|
139
189
|
|
|
140
190
|
## Security
|
|
141
191
|
|
|
142
|
-
-
|
|
143
|
-
|
|
192
|
+
- Catalog facts and provider credentials are stored separately in sandboxed
|
|
193
|
+
component tables.
|
|
194
|
+
- `configure` persists provider secrets in `providerConfig`; internal token
|
|
195
|
+
actions read them. Do not expose credential setup, stored secrets, or cached
|
|
196
|
+
tokens to browser clients.
|
|
144
197
|
- The host gates every write method behind its own authorized functions.
|
|
145
198
|
|
|
146
199
|
See [`SECURITY.md`](SECURITY.md) for vulnerability reporting.
|
|
@@ -152,15 +205,34 @@ pnpm test # vitest + convex-test + @edge-runtime/vm
|
|
|
152
205
|
pnpm test:coverage # 100% coverage gate
|
|
153
206
|
```
|
|
154
207
|
|
|
208
|
+
### Testing your app
|
|
209
|
+
|
|
210
|
+
`@vllnt/convex-music/test` exports `register(t, name = "music")` to mount the
|
|
211
|
+
component (and its `action-cache` and `rate-limiter` children) in a
|
|
212
|
+
`convex-test` instance. It needs `convex-test` and `vitest` (with Vite's
|
|
213
|
+
`import.meta.glob`) in the consuming app:
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
/// <reference types="vite/client" />
|
|
217
|
+
import { convexTest } from "convex-test";
|
|
218
|
+
import { register } from "@vllnt/convex-music/test";
|
|
219
|
+
import schema from "./schema";
|
|
220
|
+
|
|
221
|
+
const t = convexTest(schema, import.meta.glob("./**/*.ts"));
|
|
222
|
+
register(t);
|
|
223
|
+
```
|
|
224
|
+
|
|
155
225
|
## Contributing
|
|
156
226
|
|
|
157
227
|
See [`CONTRIBUTING.md`](CONTRIBUTING.md). Issues and pull requests welcome.
|
|
158
228
|
|
|
159
229
|
## Author
|
|
160
230
|
|
|
161
|
-
Built by [bntvllnt](https://github.com/bntvllnt) ·
|
|
231
|
+
Built by [bntvllnt](https://github.com/bntvllnt) ·
|
|
232
|
+
[bntvllnt.com](https://bntvllnt.com) · [X @bntvllnt](https://x.com/bntvllnt)
|
|
162
233
|
|
|
163
|
-
Part of the [@vllnt](https://github.com/vllnt) Convex component fleet —
|
|
234
|
+
Part of the [@vllnt](https://github.com/vllnt) Convex component fleet —
|
|
235
|
+
[vllnt.com](https://vllnt.com)
|
|
164
236
|
|
|
165
237
|
If this is useful, [sponsor the work](https://github.com/sponsors/bntvllnt).
|
|
166
238
|
|
|
@@ -16,6 +16,7 @@ import type * as catalog_queries from "../catalog/queries.js";
|
|
|
16
16
|
import type * as config_mutations from "../config/mutations.js";
|
|
17
17
|
import type * as config_queries from "../config/queries.js";
|
|
18
18
|
import type * as crons from "../crons.js";
|
|
19
|
+
import type * as guards from "../guards.js";
|
|
19
20
|
import type * as imports_actions from "../imports/actions.js";
|
|
20
21
|
import type * as imports_dedupe from "../imports/dedupe.js";
|
|
21
22
|
import type * as imports_mutations from "../imports/mutations.js";
|
|
@@ -63,6 +64,7 @@ declare const fullApi: ApiFromModules<{
|
|
|
63
64
|
"config/mutations": typeof config_mutations;
|
|
64
65
|
"config/queries": typeof config_queries;
|
|
65
66
|
crons: typeof crons;
|
|
67
|
+
guards: typeof guards;
|
|
66
68
|
"imports/actions": typeof imports_actions;
|
|
67
69
|
"imports/dedupe": typeof imports_dedupe;
|
|
68
70
|
"imports/mutations": typeof imports_mutations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAC;AAC9C,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AAyB,CAAC;IAC9D,yBAAyB,EAAE,OAAO,uBAAuB,CAAC;IAC1D,iBAAiB,EAAE,OAAO,eAAe,CAAC;IAC1C,yBAAyB,EAAE,OAAO,uBAAuB,CAAC;IAC1D,4BAA4B,EAAE,OAAO,0BAA0B,CAAC;IAChE,0BAA0B,EAAE,OAAO,wBAAwB,CAAC;IAC5D,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,eAAe,CAAC;IAC1C,mBAAmB,EAAE,OAAO,iBAAiB,CAAC;IAC9C,iBAAiB,EAAE,OAAO,eAAe,CAAC;IAC1C,gBAAgB,EAAE,OAAO,cAAc,CAAC;IACxC,gBAAgB,EAAE,OAAO,cAAc,CAAC;IACxC,cAAc,EAAE,OAAO,YAAY,CAAC;IACpC,UAAU,EAAE,OAAO,UAAU,CAAC;CAC/B,CAAiB,CAAC;AAEnB;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,EAAE,SAAS,CACzB,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,CACjB,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,CAC9B,OAAO,OAAO,EACd,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,CACnB,CAAC;AAElB,eAAO,MAAM,UAAU,EAAqC;IAC1D,WAAW,EAAE,OAAO,kDAAkD,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IACpG,WAAW,EAAE,OAAO,kDAAkD,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;CACrG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAsDH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GA+CR,MAAa,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAGZ,MAAa,CAAC;AAElB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAGjB,MAAa,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAG1C,CAAC"}
|
|
@@ -308,41 +308,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
308
308
|
syncStatus?: "pending" | "running" | "synced" | "failed" | "stale";
|
|
309
309
|
updatedAt: number;
|
|
310
310
|
}, Name>;
|
|
311
|
-
getArtistByProvider: FunctionReference<"query", "internal", {
|
|
312
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
313
|
-
providerId: string;
|
|
314
|
-
}, null | {
|
|
315
|
-
_creationTime: number;
|
|
316
|
-
_id: string;
|
|
317
|
-
country?: string;
|
|
318
|
-
debutYear?: number;
|
|
319
|
-
gender?: string;
|
|
320
|
-
genres: Array<string>;
|
|
321
|
-
imageUrl?: string;
|
|
322
|
-
lastRepairAt?: number;
|
|
323
|
-
lastSyncError?: string;
|
|
324
|
-
lastSyncedAt?: number;
|
|
325
|
-
members?: "solo" | "group";
|
|
326
|
-
name: string;
|
|
327
|
-
nameKey: string;
|
|
328
|
-
nextSyncAt: number;
|
|
329
|
-
popularity?: number;
|
|
330
|
-
providers: Array<{
|
|
331
|
-
genres?: Array<string>;
|
|
332
|
-
imageUrl?: string;
|
|
333
|
-
popularity?: number;
|
|
334
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
335
|
-
providerId: string;
|
|
336
|
-
url?: string;
|
|
337
|
-
}>;
|
|
338
|
-
repairAttempts?: number;
|
|
339
|
-
repairError?: string;
|
|
340
|
-
repairStartedAt?: number;
|
|
341
|
-
repairStatus?: "clean" | "needs_repair" | "repairing" | "failed_repair";
|
|
342
|
-
syncRetryCount?: number;
|
|
343
|
-
syncStatus?: "pending" | "running" | "synced" | "failed" | "stale";
|
|
344
|
-
updatedAt: number;
|
|
345
|
-
}, Name>;
|
|
346
311
|
getArtistImage: FunctionReference<"query", "internal", {
|
|
347
312
|
policy?: {
|
|
348
313
|
from: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
@@ -439,37 +404,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
439
404
|
title: string;
|
|
440
405
|
updatedAt: number;
|
|
441
406
|
}, Name>;
|
|
442
|
-
getTrackByProvider: FunctionReference<"query", "internal", {
|
|
443
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
444
|
-
providerId: string;
|
|
445
|
-
}, null | {
|
|
446
|
-
_creationTime: number;
|
|
447
|
-
_id: string;
|
|
448
|
-
artistIds: Array<string>;
|
|
449
|
-
durationMs?: number;
|
|
450
|
-
genres: Array<string>;
|
|
451
|
-
isrc: string;
|
|
452
|
-
lastRepairAt?: number;
|
|
453
|
-
lastSyncError?: string;
|
|
454
|
-
lastSyncedAt?: number;
|
|
455
|
-
nextSyncAt: number;
|
|
456
|
-
popularity?: number;
|
|
457
|
-
providers: Array<{
|
|
458
|
-
coverUrl?: string;
|
|
459
|
-
previewUrl?: string;
|
|
460
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
461
|
-
providerId: string;
|
|
462
|
-
url?: string;
|
|
463
|
-
}>;
|
|
464
|
-
repairAttempts?: number;
|
|
465
|
-
repairError?: string;
|
|
466
|
-
repairStartedAt?: number;
|
|
467
|
-
repairStatus?: "clean" | "needs_repair" | "repairing" | "failed_repair";
|
|
468
|
-
syncRetryCount?: number;
|
|
469
|
-
syncStatus?: "pending" | "running" | "synced" | "failed" | "stale";
|
|
470
|
-
title: string;
|
|
471
|
-
updatedAt: number;
|
|
472
|
-
}, Name>;
|
|
473
407
|
getTrackPreview: FunctionReference<"query", "internal", {
|
|
474
408
|
policy?: {
|
|
475
409
|
from: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
@@ -665,41 +599,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
665
599
|
requestId: string;
|
|
666
600
|
status: "queued" | "claimed" | "running" | "retry_waiting" | "completed" | "failed" | "canceled" | "stale";
|
|
667
601
|
}, Name>;
|
|
668
|
-
runAlbumImport: FunctionReference<"action", "internal", {
|
|
669
|
-
limit?: number;
|
|
670
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
671
|
-
providerId: string;
|
|
672
|
-
requestId: string;
|
|
673
|
-
}, {
|
|
674
|
-
status: "queued" | "claimed" | "running" | "retry_waiting" | "completed" | "failed" | "canceled" | "stale";
|
|
675
|
-
}, Name>;
|
|
676
|
-
runArtistImport: FunctionReference<"action", "internal", {
|
|
677
|
-
name: string;
|
|
678
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
679
|
-
providerId: string;
|
|
680
|
-
requestId: string;
|
|
681
|
-
targetMode: "name" | "providerId";
|
|
682
|
-
tracks?: "none" | "top" | "all";
|
|
683
|
-
withTracks?: boolean;
|
|
684
|
-
}, {
|
|
685
|
-
status: "queued" | "claimed" | "running" | "retry_waiting" | "completed" | "failed" | "canceled" | "stale";
|
|
686
|
-
}, Name>;
|
|
687
|
-
runPlaylistImport: FunctionReference<"action", "internal", {
|
|
688
|
-
limit?: number;
|
|
689
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
690
|
-
providerId: string;
|
|
691
|
-
requestId: string;
|
|
692
|
-
}, {
|
|
693
|
-
status: "queued" | "claimed" | "running" | "retry_waiting" | "completed" | "failed" | "canceled" | "stale";
|
|
694
|
-
}, Name>;
|
|
695
|
-
runTrackImport: FunctionReference<"action", "internal", {
|
|
696
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
697
|
-
providerId: string;
|
|
698
|
-
requestId: string;
|
|
699
|
-
withAlbum?: boolean;
|
|
700
|
-
}, {
|
|
701
|
-
status: "queued" | "claimed" | "running" | "retry_waiting" | "completed" | "failed" | "canceled" | "stale";
|
|
702
|
-
}, Name>;
|
|
703
602
|
};
|
|
704
603
|
mutations: {
|
|
705
604
|
createRequest: FunctionReference<"mutation", "internal", {
|
|
@@ -990,10 +889,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
990
889
|
enabled: boolean;
|
|
991
890
|
sourceId: string;
|
|
992
891
|
}, null, Name>;
|
|
993
|
-
touchSource: FunctionReference<"mutation", "internal", {
|
|
994
|
-
now: number;
|
|
995
|
-
sourceId: string;
|
|
996
|
-
}, null, Name>;
|
|
997
892
|
};
|
|
998
893
|
queries: {
|
|
999
894
|
listSources: FunctionReference<"query", "internal", {
|
|
@@ -1017,67 +912,6 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
1017
912
|
};
|
|
1018
913
|
sync: {
|
|
1019
914
|
mutations: {
|
|
1020
|
-
claimNextStale: FunctionReference<"mutation", "internal", {
|
|
1021
|
-
kind: "artist" | "track";
|
|
1022
|
-
}, null | {
|
|
1023
|
-
_creationTime: number;
|
|
1024
|
-
_id: string;
|
|
1025
|
-
country?: string;
|
|
1026
|
-
debutYear?: number;
|
|
1027
|
-
gender?: string;
|
|
1028
|
-
genres: Array<string>;
|
|
1029
|
-
imageUrl?: string;
|
|
1030
|
-
lastRepairAt?: number;
|
|
1031
|
-
lastSyncError?: string;
|
|
1032
|
-
lastSyncedAt?: number;
|
|
1033
|
-
members?: "solo" | "group";
|
|
1034
|
-
name: string;
|
|
1035
|
-
nameKey: string;
|
|
1036
|
-
nextSyncAt: number;
|
|
1037
|
-
popularity?: number;
|
|
1038
|
-
providers: Array<{
|
|
1039
|
-
genres?: Array<string>;
|
|
1040
|
-
imageUrl?: string;
|
|
1041
|
-
popularity?: number;
|
|
1042
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
1043
|
-
providerId: string;
|
|
1044
|
-
url?: string;
|
|
1045
|
-
}>;
|
|
1046
|
-
repairAttempts?: number;
|
|
1047
|
-
repairError?: string;
|
|
1048
|
-
repairStartedAt?: number;
|
|
1049
|
-
repairStatus?: "clean" | "needs_repair" | "repairing" | "failed_repair";
|
|
1050
|
-
syncRetryCount?: number;
|
|
1051
|
-
syncStatus?: "pending" | "running" | "synced" | "failed" | "stale";
|
|
1052
|
-
updatedAt: number;
|
|
1053
|
-
} | {
|
|
1054
|
-
_creationTime: number;
|
|
1055
|
-
_id: string;
|
|
1056
|
-
artistIds: Array<string>;
|
|
1057
|
-
durationMs?: number;
|
|
1058
|
-
genres: Array<string>;
|
|
1059
|
-
isrc: string;
|
|
1060
|
-
lastRepairAt?: number;
|
|
1061
|
-
lastSyncError?: string;
|
|
1062
|
-
lastSyncedAt?: number;
|
|
1063
|
-
nextSyncAt: number;
|
|
1064
|
-
popularity?: number;
|
|
1065
|
-
providers: Array<{
|
|
1066
|
-
coverUrl?: string;
|
|
1067
|
-
previewUrl?: string;
|
|
1068
|
-
provider: "spotify" | "apple" | "musicbrainz" | "wikidata" | "deezer";
|
|
1069
|
-
providerId: string;
|
|
1070
|
-
url?: string;
|
|
1071
|
-
}>;
|
|
1072
|
-
repairAttempts?: number;
|
|
1073
|
-
repairError?: string;
|
|
1074
|
-
repairStartedAt?: number;
|
|
1075
|
-
repairStatus?: "clean" | "needs_repair" | "repairing" | "failed_repair";
|
|
1076
|
-
syncRetryCount?: number;
|
|
1077
|
-
syncStatus?: "pending" | "running" | "synced" | "failed" | "stale";
|
|
1078
|
-
title: string;
|
|
1079
|
-
updatedAt: number;
|
|
1080
|
-
}, Name>;
|
|
1081
915
|
markStale: FunctionReference<"mutation", "internal", {
|
|
1082
916
|
kind: "artist" | "track";
|
|
1083
917
|
limit?: number;
|