@tidal-music/api 0.40.0 → 0.42.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
  };
@@ -10439,93 +10439,6 @@ export interface paths {
10439
10439
  patch?: never;
10440
10440
  trace?: never;
10441
10441
  };
10442
- "/searchResults/{id}": {
10443
- parameters: {
10444
- query?: never;
10445
- header?: never;
10446
- path?: never;
10447
- cookie?: never;
10448
- };
10449
- /**
10450
- * Get single searchResult.
10451
- * @deprecated
10452
- * @description Deprecated. Use GET /searchResults?filter[query]=... to search instead. Opaque identifiers returned by that operation remain valid for searchResults relationship operations.
10453
- */
10454
- get: {
10455
- parameters: {
10456
- query?: {
10457
- /**
10458
- * @description Explicit filter. Valid values: INCLUDE or EXCLUDE
10459
- * @example INCLUDE
10460
- */
10461
- explicitFilter?: "INCLUDE" | "EXCLUDE";
10462
- /**
10463
- * @description ISO 3166-1 alpha-2 country code
10464
- * @example US
10465
- */
10466
- countryCode?: string;
10467
- /**
10468
- * @description The type of device making the request
10469
- * @example PHONE
10470
- */
10471
- deviceType?: "BROWSER" | "CAR" | "DESKTOP" | "PHONE" | "TABLET" | "TV";
10472
- /**
10473
- * @description The system type of the device making the request
10474
- * @example IOS
10475
- */
10476
- systemType?: "ANDROID" | "DESKTOP" | "TESLA" | "IOS" | "WEB";
10477
- /**
10478
- * @description Client version number
10479
- * @example 2026.0.1
10480
- */
10481
- clientVersion?: string;
10482
- /**
10483
- * @description Allows the client to customize which related resources should be returned. Available options: albums, artists, playlists, topHits, tracks, videos
10484
- * @example albums
10485
- */
10486
- include?: string[];
10487
- /**
10488
- * @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: albums
10489
- * @example albums
10490
- */
10491
- replaceMedia?: string;
10492
- };
10493
- header?: never;
10494
- path: {
10495
- /** @description An opaque search results identifier */
10496
- id: string;
10497
- };
10498
- cookie?: never;
10499
- };
10500
- requestBody?: never;
10501
- responses: {
10502
- /** @description Successful response */
10503
- 200: {
10504
- headers: {
10505
- [name: string]: unknown;
10506
- };
10507
- content: {
10508
- "application/vnd.api+json": components["schemas"]["SearchResults_Single_Resource_Data_Document"];
10509
- };
10510
- };
10511
- 400: components["responses"]["Default400Response"];
10512
- 404: components["responses"]["Default404Response"];
10513
- 405: components["responses"]["Default405Response"];
10514
- 406: components["responses"]["Default406Response"];
10515
- 415: components["responses"]["Default415Response"];
10516
- 429: components["responses"]["Default429Response"];
10517
- 500: components["responses"]["Default500Response"];
10518
- 503: components["responses"]["Default503Response"];
10519
- };
10520
- };
10521
- put?: never;
10522
- post?: never;
10523
- delete?: never;
10524
- options?: never;
10525
- head?: never;
10526
- patch?: never;
10527
- trace?: never;
10528
- };
10529
10442
  "/searchResults/{id}/relationships/albums": {
10530
10443
  parameters: {
10531
10444
  query?: never;
@@ -11124,78 +11037,6 @@ export interface paths {
11124
11037
  patch?: never;
11125
11038
  trace?: never;
11126
11039
  };
11127
- "/searchSuggestions/{id}": {
11128
- parameters: {
11129
- query?: never;
11130
- header?: never;
11131
- path?: never;
11132
- cookie?: never;
11133
- };
11134
- /**
11135
- * Get single searchSuggestion.
11136
- * @deprecated
11137
- * @description Deprecated. Use GET /searchSuggestions?filter[query]=... to search instead. Opaque identifiers returned by that operation remain valid for searchSuggestions relationship operations.
11138
- */
11139
- get: {
11140
- parameters: {
11141
- query?: {
11142
- /**
11143
- * @description Explicit filter. Valid values: INCLUDE or EXCLUDE
11144
- * @example INCLUDE
11145
- */
11146
- explicitFilter?: "INCLUDE" | "EXCLUDE";
11147
- /**
11148
- * @description ISO 3166-1 alpha-2 country code
11149
- * @example US
11150
- */
11151
- countryCode?: string;
11152
- /**
11153
- * @description Allows the client to customize which related resources should be returned. Available options: directHits, history
11154
- * @example directHits
11155
- */
11156
- include?: string[];
11157
- /**
11158
- * @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: directHits
11159
- * @example directHits
11160
- */
11161
- replaceMedia?: string;
11162
- };
11163
- header?: never;
11164
- path: {
11165
- /** @description An opaque search suggestions identifier */
11166
- id: string;
11167
- };
11168
- cookie?: never;
11169
- };
11170
- requestBody?: never;
11171
- responses: {
11172
- /** @description Successful response */
11173
- 200: {
11174
- headers: {
11175
- [name: string]: unknown;
11176
- };
11177
- content: {
11178
- "application/vnd.api+json": components["schemas"]["SearchSuggestions_Single_Resource_Data_Document"];
11179
- };
11180
- };
11181
- 400: components["responses"]["Default400Response"];
11182
- 404: components["responses"]["Default404Response"];
11183
- 405: components["responses"]["Default405Response"];
11184
- 406: components["responses"]["Default406Response"];
11185
- 415: components["responses"]["Default415Response"];
11186
- 429: components["responses"]["Default429Response"];
11187
- 500: components["responses"]["Default500Response"];
11188
- 503: components["responses"]["Default503Response"];
11189
- };
11190
- };
11191
- put?: never;
11192
- post?: never;
11193
- delete?: never;
11194
- options?: never;
11195
- head?: never;
11196
- patch?: never;
11197
- trace?: never;
11198
- };
11199
11040
  "/searchSuggestions/{id}/relationships/directHits": {
11200
11041
  parameters: {
11201
11042
  query?: never;
@@ -22605,12 +22446,6 @@ export interface components {
22605
22446
  included?: components["schemas"]["Included"];
22606
22447
  links: components["schemas"]["Links"];
22607
22448
  };
22608
- Highlight: {
22609
- /** Format: int32 */
22610
- length?: number;
22611
- /** Format: int32 */
22612
- start?: number;
22613
- };
22614
22449
  Idempotency409ResponseBody: {
22615
22450
  errors: {
22616
22451
  /**
@@ -24070,7 +23905,6 @@ export interface components {
24070
23905
  type: "scopes";
24071
23906
  };
24072
23907
  SearchHistoryEntries_Attributes: {
24073
- highlights: components["schemas"]["Highlight"][];
24074
23908
  query: string;
24075
23909
  };
24076
23910
  SearchHistoryEntries_Resource_Object: {
@@ -24198,11 +24032,6 @@ export interface components {
24198
24032
  */
24199
24033
  type: "searchResults";
24200
24034
  };
24201
- SearchResults_Single_Resource_Data_Document: {
24202
- data: components["schemas"]["SearchResults_Resource_Object"];
24203
- included?: components["schemas"]["Included"];
24204
- links: components["schemas"]["Links"];
24205
- };
24206
24035
  SearchResults_TopHits_Multi_Relationship_Data_Document: {
24207
24036
  data?: components["schemas"]["SearchResults_TopHits_Resource_Identifier"][];
24208
24037
  included?: components["schemas"]["Included"];
@@ -24332,11 +24161,6 @@ export interface components {
24332
24161
  */
24333
24162
  type: "searchSuggestions";
24334
24163
  };
24335
- SearchSuggestions_Single_Resource_Data_Document: {
24336
- data: components["schemas"]["SearchSuggestions_Resource_Object"];
24337
- included?: components["schemas"]["Included"];
24338
- links: components["schemas"]["Links"];
24339
- };
24340
24164
  /** @description Suggested search queries */
24341
24165
  SearchSuggestions_Suggestions: {
24342
24166
  highlights?: components["schemas"]["SearchSuggestions_Highlights"][];
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.40.0",
3
+ "version": "0.42.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