sonovault 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.cjs +1 -3
- package/dist/index.d.cts +1 -11
- package/dist/index.d.ts +1 -11
- package/dist/index.js +1 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://github.com/rekordcloud/sonovault-js/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/sonovault)
|
|
5
5
|
|
|
6
|
-
TypeScript/Node client for the **[SonoVault](https://sonovault.now)** music metadata API.
|
|
6
|
+
TypeScript/Node client for the **[SonoVault](https://sonovault.now)** music metadata API. 93M+ tracks with ISRC, ISWC, genre, record label, canonical release dates, and cross-platform IDs for Spotify, Apple Music, Tidal, Beatport, Discogs, and MusicBrainz. One call resolves them all.
|
|
7
7
|
|
|
8
8
|
- **One key, no OAuth.** A single `x-api-key` header, no approval queue.
|
|
9
9
|
- **Free tier.** 1,000 requests/month, no credit card: [get an API key](https://sonovault.now).
|
|
@@ -109,7 +109,7 @@ Runnable scripts live in [`examples/`](examples/): find an ISRC, resolve cross-p
|
|
|
109
109
|
|
|
110
110
|
| Namespace | Methods |
|
|
111
111
|
|---|---|
|
|
112
|
-
| `sv.tracks` | `search`, `get`, `byIsrc`, `iswc`, `byIswc`, `links`, `resolve`, `
|
|
112
|
+
| `sv.tracks` | `search`, `get`, `byIsrc`, `iswc`, `byIswc`, `links`, `resolve`, `identifyAudio`, `browse` |
|
|
113
113
|
| `sv.artists` | `search`, `get`, `releases` |
|
|
114
114
|
| `sv.labels` | `search`, `get`, `releases`, `artists` |
|
|
115
115
|
| `sv.releases` | `search`, `get`, `latest` |
|
package/dist/index.cjs
CHANGED
|
@@ -50,7 +50,7 @@ var SonoVaultError = class extends Error {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
// src/version.ts
|
|
53
|
-
var VERSION = "
|
|
53
|
+
var VERSION = "2.0.0";
|
|
54
54
|
|
|
55
55
|
// src/client.ts
|
|
56
56
|
var SonoVault = class {
|
|
@@ -73,8 +73,6 @@ var SonoVault = class {
|
|
|
73
73
|
links: (params) => this.request("/v1/tracks/links", { query: params }),
|
|
74
74
|
/** Resolve up to 100 track names, ISRCs, or platform IDs in one request. */
|
|
75
75
|
resolve: (body) => this.request("/v1/tracks/resolve", { method: "POST", json: body }),
|
|
76
|
-
/** Identify a track from a Chromaprint fingerprint (`fpcalc -raw`). Paid tiers. */
|
|
77
|
-
identify: (body) => this.request("/v1/tracks/identify", { method: "POST", json: body }),
|
|
78
76
|
/**
|
|
79
77
|
* Identify a track from raw audio bytes (any ffmpeg-decodable format).
|
|
80
78
|
* Send the whole track when you can — the matching section is often mid-track.
|
package/dist/index.d.cts
CHANGED
|
@@ -120,14 +120,6 @@ interface ResolveResponse {
|
|
|
120
120
|
credits_remaining: number;
|
|
121
121
|
message: string | null;
|
|
122
122
|
}
|
|
123
|
-
interface IdentifyRequest {
|
|
124
|
-
/** 50–50,000 integers from `fpcalc -raw` (Chromaprint). */
|
|
125
|
-
fingerprint: number[];
|
|
126
|
-
/** Clip duration in seconds. */
|
|
127
|
-
fingerprint_duration?: number;
|
|
128
|
-
/** Max results to return, 1–25. */
|
|
129
|
-
top_n?: number;
|
|
130
|
-
}
|
|
131
123
|
interface IdentifyResult {
|
|
132
124
|
id: number;
|
|
133
125
|
title: string;
|
|
@@ -238,8 +230,6 @@ declare class SonoVault {
|
|
|
238
230
|
}) => Promise<PlatformLinksResponse>;
|
|
239
231
|
/** Resolve up to 100 track names, ISRCs, or platform IDs in one request. */
|
|
240
232
|
resolve: (body: ResolveRequest) => Promise<ResolveResponse>;
|
|
241
|
-
/** Identify a track from a Chromaprint fingerprint (`fpcalc -raw`). Paid tiers. */
|
|
242
|
-
identify: (body: IdentifyRequest) => Promise<IdentifyResponse>;
|
|
243
233
|
/**
|
|
244
234
|
* Identify a track from raw audio bytes (any ffmpeg-decodable format).
|
|
245
235
|
* Send the whole track when you can — the matching section is often mid-track.
|
|
@@ -423,4 +413,4 @@ declare function verifyWebhookSignature(options: {
|
|
|
423
413
|
*/
|
|
424
414
|
declare function paginate<T>(fetchPage: (cursor: string | undefined) => Promise<Page<T>>): AsyncGenerator<T>;
|
|
425
415
|
|
|
426
|
-
export { type Artist, type Genre, type
|
|
416
|
+
export { type Artist, type Genre, type IdentifyResponse, type IdentifyResult, type IswcLookupResponse, type Label, type Page, type PlatformLink, type PlatformLinksResponse, type Release, type ResolveInputType, type ResolveRequest, type ResolveResponse, type ResolveResult, SonoVault, SonoVaultError, type SonoVaultOptions, type Stream, type StreamEvent, type Track, type TrackArtist, type TrackRelease, type Webhook, paginate, verifyWebhookSignature };
|
package/dist/index.d.ts
CHANGED
|
@@ -120,14 +120,6 @@ interface ResolveResponse {
|
|
|
120
120
|
credits_remaining: number;
|
|
121
121
|
message: string | null;
|
|
122
122
|
}
|
|
123
|
-
interface IdentifyRequest {
|
|
124
|
-
/** 50–50,000 integers from `fpcalc -raw` (Chromaprint). */
|
|
125
|
-
fingerprint: number[];
|
|
126
|
-
/** Clip duration in seconds. */
|
|
127
|
-
fingerprint_duration?: number;
|
|
128
|
-
/** Max results to return, 1–25. */
|
|
129
|
-
top_n?: number;
|
|
130
|
-
}
|
|
131
123
|
interface IdentifyResult {
|
|
132
124
|
id: number;
|
|
133
125
|
title: string;
|
|
@@ -238,8 +230,6 @@ declare class SonoVault {
|
|
|
238
230
|
}) => Promise<PlatformLinksResponse>;
|
|
239
231
|
/** Resolve up to 100 track names, ISRCs, or platform IDs in one request. */
|
|
240
232
|
resolve: (body: ResolveRequest) => Promise<ResolveResponse>;
|
|
241
|
-
/** Identify a track from a Chromaprint fingerprint (`fpcalc -raw`). Paid tiers. */
|
|
242
|
-
identify: (body: IdentifyRequest) => Promise<IdentifyResponse>;
|
|
243
233
|
/**
|
|
244
234
|
* Identify a track from raw audio bytes (any ffmpeg-decodable format).
|
|
245
235
|
* Send the whole track when you can — the matching section is often mid-track.
|
|
@@ -423,4 +413,4 @@ declare function verifyWebhookSignature(options: {
|
|
|
423
413
|
*/
|
|
424
414
|
declare function paginate<T>(fetchPage: (cursor: string | undefined) => Promise<Page<T>>): AsyncGenerator<T>;
|
|
425
415
|
|
|
426
|
-
export { type Artist, type Genre, type
|
|
416
|
+
export { type Artist, type Genre, type IdentifyResponse, type IdentifyResult, type IswcLookupResponse, type Label, type Page, type PlatformLink, type PlatformLinksResponse, type Release, type ResolveInputType, type ResolveRequest, type ResolveResponse, type ResolveResult, SonoVault, SonoVaultError, type SonoVaultOptions, type Stream, type StreamEvent, type Track, type TrackArtist, type TrackRelease, type Webhook, paginate, verifyWebhookSignature };
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var SonoVaultError = class extends Error {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// src/version.ts
|
|
24
|
-
var VERSION = "
|
|
24
|
+
var VERSION = "2.0.0";
|
|
25
25
|
|
|
26
26
|
// src/client.ts
|
|
27
27
|
var SonoVault = class {
|
|
@@ -44,8 +44,6 @@ var SonoVault = class {
|
|
|
44
44
|
links: (params) => this.request("/v1/tracks/links", { query: params }),
|
|
45
45
|
/** Resolve up to 100 track names, ISRCs, or platform IDs in one request. */
|
|
46
46
|
resolve: (body) => this.request("/v1/tracks/resolve", { method: "POST", json: body }),
|
|
47
|
-
/** Identify a track from a Chromaprint fingerprint (`fpcalc -raw`). Paid tiers. */
|
|
48
|
-
identify: (body) => this.request("/v1/tracks/identify", { method: "POST", json: body }),
|
|
49
47
|
/**
|
|
50
48
|
* Identify a track from raw audio bytes (any ffmpeg-decodable format).
|
|
51
49
|
* Send the whole track when you can — the matching section is often mid-track.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonovault",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "TypeScript/Node client for the SonoVault music metadata API — ISRC, ISWC, genre, labels, release dates, and cross-platform IDs for
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "TypeScript/Node client for the SonoVault music metadata API — ISRC, ISWC, genre, labels, release dates, and cross-platform IDs for 93M+ tracks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"music",
|
|
7
7
|
"metadata",
|