@tidal-music/api 0.22.0 → 0.24.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/dist/{index.d.ts → src/allAPI.generated.d.ts} +24086 -23855
- package/dist/src/api.d.ts +10 -0
- package/dist/src/index.d.ts +10 -0
- package/package.json +9 -8
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CredentialsProvider } from '@tidal-music/common';
|
|
2
|
+
import { paths } from './allAPI.generated';
|
|
3
|
+
/**
|
|
4
|
+
* Create a Tidal API client with the provided credentials.
|
|
5
|
+
*
|
|
6
|
+
* @param credentialsProvider The credentials provider, from Auth module.
|
|
7
|
+
* @param baseUrl Override the base URL to use for the API client.
|
|
8
|
+
* @returns A Tidal API client.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createAPIClient(credentialsProvider: CredentialsProvider, baseUrl?: string): import('openapi-fetch').Client<paths, `${string}/${string}`>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated OpenAPI components type containing all API schemas.
|
|
3
|
+
* This type is available for advanced TypeScript usage but excluded from documentation
|
|
4
|
+
* due to its size (~12K lines). Use TypeScript's autocomplete to explore available schemas.
|
|
5
|
+
* Or see: https://tidal-music.github.io/tidal-api-reference/ for the full API reference.
|
|
6
|
+
*
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
export type { components } from './allAPI.generated';
|
|
10
|
+
export { createAPIClient } from './api';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tidal-music/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -11,25 +11,26 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"module": "dist/index.js",
|
|
14
|
-
"types": "dist/index.d.ts",
|
|
14
|
+
"types": "./dist/src/index.d.ts",
|
|
15
15
|
"exports": {
|
|
16
16
|
"import": "./dist/index.js",
|
|
17
|
+
"types": "./dist/src/index.d.ts",
|
|
17
18
|
"default": "./dist/index.js"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"openapi-fetch": "0.17.0",
|
|
21
|
-
"@tidal-music/api": "0.
|
|
22
|
+
"@tidal-music/api": "0.24.0"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@vitest/coverage-v8": "4.1.5",
|
|
25
26
|
"@vitest/ui": "4.1.5",
|
|
26
27
|
"openapi-typescript": "7.13.0",
|
|
27
|
-
"typescript": "
|
|
28
|
-
"vite": "8.0.
|
|
29
|
-
"vite-plugin-dts": "
|
|
28
|
+
"typescript": "6.0.3",
|
|
29
|
+
"vite": "8.0.12",
|
|
30
|
+
"vite-plugin-dts": "5.0.0",
|
|
30
31
|
"vitest": "4.1.5",
|
|
31
|
-
"@tidal-music/
|
|
32
|
-
"@tidal-music/
|
|
32
|
+
"@tidal-music/auth": "^1.6.0",
|
|
33
|
+
"@tidal-music/common": "^0.2.0"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|
|
35
36
|
"build": "vite build",
|