@tidal-music/api 0.41.0 → 0.43.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.
@@ -6644,8 +6644,8 @@ export interface paths {
6644
6644
  include?: string[];
6645
6645
  /** @description Offline item id (e.g. `1234`) */
6646
6646
  "filter[id]"?: string[];
6647
- /** @description One of: PENDING, STORED (e.g. `PENDING`) */
6648
- "filter[state]"?: ("PENDING" | "STORED")[];
6647
+ /** @description One of: PENDING, STORED, FAILED (e.g. `PENDING`) */
6648
+ "filter[state]"?: ("PENDING" | "STORED" | "FAILED")[];
6649
6649
  /**
6650
6650
  * @description Applies context-dependent replacements to media resource identifiers in selected relationships without changing stored data. Paths are comma-separated and follow `include` syntax. Example: offlineInventory
6651
6651
  * @example offlineInventory
@@ -10328,8 +10328,8 @@ export interface paths {
10328
10328
  };
10329
10329
  path: {
10330
10330
  /**
10331
- * @description Opaque identifier for a search history entry
10332
- * @example MjcyNjg5OTAjamF5
10331
+ * @description Canonical opaque identifier for a user's exact saved history query.
10332
+ * @example 24HkRueBIeyGHPttoaQetVx4SwUxlzp3da06bqbwjF1t4dNXV
10333
10333
  */
10334
10334
  id: string;
10335
10335
  };
@@ -21116,7 +21116,7 @@ export interface components {
21116
21116
  contributionsEnabled?: boolean;
21117
21117
  contributionsSalesPitch?: string;
21118
21118
  externalLinks?: components["schemas"]["External_Link_Payload"][];
21119
- handle?: string;
21119
+ handle?: string | (never | null);
21120
21120
  name?: string;
21121
21121
  };
21122
21122
  ArtistsUpdateOperation_Payload_Meta: {
@@ -22446,12 +22446,6 @@ export interface components {
22446
22446
  included?: components["schemas"]["Included"];
22447
22447
  links: components["schemas"]["Links"];
22448
22448
  };
22449
- Highlight: {
22450
- /** Format: int32 */
22451
- length?: number;
22452
- /** Format: int32 */
22453
- start?: number;
22454
- };
22455
22449
  Idempotency409ResponseBody: {
22456
22450
  errors: {
22457
22451
  /**
@@ -23911,7 +23905,6 @@ export interface components {
23911
23905
  type: "scopes";
23912
23906
  };
23913
23907
  SearchHistoryEntries_Attributes: {
23914
- highlights: components["schemas"]["Highlight"][];
23915
23908
  query: string;
23916
23909
  };
23917
23910
  SearchHistoryEntries_Resource_Object: {
package/dist/index.js CHANGED
@@ -45,11 +45,13 @@ function r(e) {
45
45
  options: z,
46
46
  id: R
47
47
  });
48
- if (n) if (n instanceof x) B = n;
49
- else if (n instanceof Response) {
50
- V = n;
51
- break;
52
- } else throw Error("onRequest: must return new Request() or Response() when modifying the request");
48
+ if (n) {
49
+ if (n instanceof x) B = n;
50
+ else if (n instanceof Response) {
51
+ V = n;
52
+ break;
53
+ } else throw Error("onRequest: must return new Request() or Response() when modifying the request");
54
+ }
53
55
  }
54
56
  }
55
57
  if (!V) {
@@ -350,7 +352,7 @@ var p = {
350
352
  maxDelayMs: 32e3,
351
353
  maxRetries: 3
352
354
  }
353
- }, m = 1e4, h = new Set([
355
+ }, m = 1e4, h = /* @__PURE__ */ new Set([
354
356
  "GET",
355
357
  "HEAD",
356
358
  "OPTIONS"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidal-music/api",
3
- "version": "0.41.0",
3
+ "version": "0.43.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -11,9 +11,9 @@
11
11
  },
12
12
  "license": "Apache-2.0",
13
13
  "module": "dist/index.js",
14
- "types": "./dist/src/index.d.ts",
14
+ "types": "./dist/index.d.ts",
15
15
  "exports": {
16
- "types": "./dist/src/index.d.ts",
16
+ "types": "./dist/index.d.ts",
17
17
  "import": "./dist/index.js",
18
18
  "default": "./dist/index.js"
19
19
  },
@@ -21,13 +21,13 @@
21
21
  "openapi-fetch": "0.17.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@vitest/coverage-v8": "4.1.8",
25
- "@vitest/ui": "4.1.8",
24
+ "@vitest/coverage-v8": "4.1.10",
25
+ "@vitest/ui": "4.1.10",
26
26
  "openapi-typescript": "7.13.0",
27
27
  "typescript": "6.0.3",
28
- "vite": "8.0.16",
29
- "vite-plugin-dts": "5.0.2",
30
- "vitest": "4.1.8",
28
+ "vite": "8.2.1",
29
+ "vite-plugin-dts": "5.0.3",
30
+ "vitest": "4.1.10",
31
31
  "@tidal-music/auth": "^1.6.1",
32
32
  "@tidal-music/common": "^0.2.1"
33
33
  },
File without changes
File without changes
File without changes