sonovault 4.3.0 → 4.4.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 CHANGED
@@ -152,6 +152,8 @@ Runnable scripts live in [`examples/`](examples/): find an ISRC, resolve cross-p
152
152
  | `sv.genres` | `list` |
153
153
  | `sv.suggestions` | `submit`, `list` |
154
154
  | `sv.streams` | `create`, `list`, `get`, `update`, `history`, `report`, `live`, `stop` |
155
+
156
+ If a station moves to a new stream URL, `sv.streams.update(id, { url })` repoints the stream in place, keeping its id and history.
155
157
  | `sv.webhooks` | `create`, `list`, `get`, `update`, `delete`, `test`, `deliveries` |
156
158
 
157
159
  Some endpoints (audio identify, browse, stream monitoring) need a paid tier. See [pricing](https://sonovault.now/pricing). Everything else works on the free tier.
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 = "4.3.0";
53
+ var VERSION = "4.4.0";
54
54
 
55
55
  // src/client.ts
56
56
  var SonoVault = class {
@@ -130,6 +130,11 @@ var SonoVault = class {
130
130
  create: (body) => this.request("/v1/streams", { method: "POST", json: body }),
131
131
  list: () => this.request("/v1/streams"),
132
132
  get: (id) => this.request(`/v1/streams/${id}`),
133
+ /**
134
+ * Change a stream's `url`, `format`, `detection_mode` and/or
135
+ * `outage_notifications`. A new `url` keeps the stream's id, history and
136
+ * billing. Paid tiers.
137
+ */
133
138
  update: (id, body) => this.request(`/v1/streams/${id}`, { method: "PATCH", json: body }),
134
139
  history: (id, params = {}) => this.request(`/v1/streams/${id}/history`, { query: params }),
135
140
  report: (params) => this.request("/v1/streams/report", { query: params }),
package/dist/index.d.cts CHANGED
@@ -352,6 +352,8 @@ interface StreamStatus extends Stream {
352
352
  */
353
353
  interface StreamUpdateResponse {
354
354
  id: string;
355
+ /** The stream URL now in force, as stored (it may be normalised). */
356
+ url?: string;
355
357
  format?: "electronic" | "classical" | "pop" | null;
356
358
  detection_mode?: "precise" | "balanced" | "broad";
357
359
  outage_notifications?: boolean;
@@ -537,6 +539,11 @@ declare class SonoVault {
537
539
  streams: Stream[];
538
540
  }>;
539
541
  get: (id: string) => Promise<StreamStatus>;
542
+ /**
543
+ * Change a stream's `url`, `format`, `detection_mode` and/or
544
+ * `outage_notifications`. A new `url` keeps the stream's id, history and
545
+ * billing. Paid tiers.
546
+ */
540
547
  update: (id: string, body: Record<string, unknown>) => Promise<StreamUpdateResponse>;
541
548
  history: (id: string, params?: {
542
549
  since?: string;
package/dist/index.d.ts CHANGED
@@ -352,6 +352,8 @@ interface StreamStatus extends Stream {
352
352
  */
353
353
  interface StreamUpdateResponse {
354
354
  id: string;
355
+ /** The stream URL now in force, as stored (it may be normalised). */
356
+ url?: string;
355
357
  format?: "electronic" | "classical" | "pop" | null;
356
358
  detection_mode?: "precise" | "balanced" | "broad";
357
359
  outage_notifications?: boolean;
@@ -537,6 +539,11 @@ declare class SonoVault {
537
539
  streams: Stream[];
538
540
  }>;
539
541
  get: (id: string) => Promise<StreamStatus>;
542
+ /**
543
+ * Change a stream's `url`, `format`, `detection_mode` and/or
544
+ * `outage_notifications`. A new `url` keeps the stream's id, history and
545
+ * billing. Paid tiers.
546
+ */
540
547
  update: (id: string, body: Record<string, unknown>) => Promise<StreamUpdateResponse>;
541
548
  history: (id: string, params?: {
542
549
  since?: string;
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 = "4.3.0";
24
+ var VERSION = "4.4.0";
25
25
 
26
26
  // src/client.ts
27
27
  var SonoVault = class {
@@ -101,6 +101,11 @@ var SonoVault = class {
101
101
  create: (body) => this.request("/v1/streams", { method: "POST", json: body }),
102
102
  list: () => this.request("/v1/streams"),
103
103
  get: (id) => this.request(`/v1/streams/${id}`),
104
+ /**
105
+ * Change a stream's `url`, `format`, `detection_mode` and/or
106
+ * `outage_notifications`. A new `url` keeps the stream's id, history and
107
+ * billing. Paid tiers.
108
+ */
104
109
  update: (id, body) => this.request(`/v1/streams/${id}`, { method: "PATCH", json: body }),
105
110
  history: (id, params = {}) => this.request(`/v1/streams/${id}/history`, { query: params }),
106
111
  report: (params) => this.request("/v1/streams/report", { query: params }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonovault",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "TypeScript/Node client for the SonoVault music metadata API: ISRC, ISWC, genre, BPM, key, labels, release dates, and cross-platform IDs for 93M+ tracks.",
5
5
  "keywords": [
6
6
  "music",