@rocksky/sdk 0.1.0 → 0.2.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 +5 -0
- package/dist/generated/types.d.ts +1812 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/http.d.ts +2 -2
- package/dist/http.d.ts.map +1 -1
- package/dist/namespaces/_helpers.d.ts +1 -1
- package/dist/namespaces/_helpers.d.ts.map +1 -1
- package/dist/namespaces/actor.d.ts +13 -23
- package/dist/namespaces/actor.d.ts.map +1 -1
- package/dist/namespaces/album.d.ts +5 -11
- package/dist/namespaces/album.d.ts.map +1 -1
- package/dist/namespaces/apikey.d.ts +4 -17
- package/dist/namespaces/apikey.d.ts.map +1 -1
- package/dist/namespaces/artist.d.ts +8 -23
- package/dist/namespaces/artist.d.ts.map +1 -1
- package/dist/namespaces/charts.d.ts +6 -18
- package/dist/namespaces/charts.d.ts.map +1 -1
- package/dist/namespaces/dropbox.d.ts +6 -13
- package/dist/namespaces/dropbox.d.ts.map +1 -1
- package/dist/namespaces/feed.d.ts +12 -31
- package/dist/namespaces/feed.d.ts.map +1 -1
- package/dist/namespaces/googledrive.d.ts +5 -10
- package/dist/namespaces/googledrive.d.ts.map +1 -1
- package/dist/namespaces/graph.d.ts +9 -22
- package/dist/namespaces/graph.d.ts.map +1 -1
- package/dist/namespaces/like.d.ts +7 -8
- package/dist/namespaces/like.d.ts.map +1 -1
- package/dist/namespaces/mirror.d.ts +3 -7
- package/dist/namespaces/mirror.d.ts.map +1 -1
- package/dist/namespaces/player.d.ts +13 -35
- package/dist/namespaces/player.d.ts.map +1 -1
- package/dist/namespaces/playlist.d.ts +10 -34
- package/dist/namespaces/playlist.d.ts.map +1 -1
- package/dist/namespaces/scrobble.d.ts +4 -35
- package/dist/namespaces/scrobble.d.ts.map +1 -1
- package/dist/namespaces/shout.d.ts +11 -32
- package/dist/namespaces/shout.d.ts.map +1 -1
- package/dist/namespaces/song.d.ts +4 -38
- package/dist/namespaces/song.d.ts.map +1 -1
- package/dist/namespaces/spotify.d.ts +4 -7
- package/dist/namespaces/spotify.d.ts.map +1 -1
- package/dist/namespaces/stats.d.ts +4 -8
- package/dist/namespaces/stats.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/types.ts +2019 -0
- package/src/http.ts +3 -3
- package/src/namespaces/_helpers.ts +1 -1
- package/src/namespaces/actor.ts +23 -19
- package/src/namespaces/album.ts +9 -9
- package/src/namespaces/apikey.ts +9 -9
- package/src/namespaces/artist.ts +15 -21
- package/src/namespaces/charts.ts +10 -19
- package/src/namespaces/dropbox.ts +11 -5
- package/src/namespaces/feed.ts +22 -16
- package/src/namespaces/googledrive.ts +9 -4
- package/src/namespaces/graph.ts +15 -16
- package/src/namespaces/like.ts +12 -6
- package/src/namespaces/mirror.ts +3 -7
- package/src/namespaces/player.ts +25 -27
- package/src/namespaces/playlist.ts +19 -9
- package/src/namespaces/scrobble.ts +8 -34
- package/src/namespaces/shout.ts +21 -12
- package/src/namespaces/song.ts +15 -36
- package/src/namespaces/spotify.ts +7 -3
- package/src/namespaces/stats.ts +7 -3
|
@@ -1,41 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AddDirectoryToQueueParams, AddItemsToQueueParams, GetCurrentlyPlayingParams, GetPlaybackQueueParams, NextParams, PauseParams, PlayDirectoryParams, PlayFileParams, PlayParams, PreviousParams, SeekParams } from "../generated/types";
|
|
2
2
|
import type { RequestOptions } from "../types";
|
|
3
|
-
type
|
|
4
|
-
playerId?: string;
|
|
5
|
-
};
|
|
3
|
+
import type { Call } from "./_helpers";
|
|
6
4
|
export declare class PlayerNamespace {
|
|
7
5
|
private readonly call;
|
|
8
6
|
constructor(call: Call);
|
|
9
|
-
getCurrentlyPlaying<T = unknown>(params?:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
playFile<T = unknown>(params: PlayerId & {
|
|
21
|
-
fileId: string;
|
|
22
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
23
|
-
playDirectory<T = unknown>(params: PlayerId & {
|
|
24
|
-
directoryId: string;
|
|
25
|
-
shuffle?: boolean;
|
|
26
|
-
recurse?: boolean;
|
|
27
|
-
position?: number;
|
|
28
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
29
|
-
addItemsToQueue<T = unknown>(params: PlayerId & {
|
|
30
|
-
items: string[];
|
|
31
|
-
position?: number;
|
|
32
|
-
shuffle?: boolean;
|
|
33
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
34
|
-
addDirectoryToQueue<T = unknown>(params: PlayerId & {
|
|
35
|
-
directory: string;
|
|
36
|
-
position?: number;
|
|
37
|
-
shuffle?: boolean;
|
|
38
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
7
|
+
getCurrentlyPlaying<T = unknown>(params?: GetCurrentlyPlayingParams, opts?: RequestOptions): Promise<T>;
|
|
8
|
+
getPlaybackQueue<T = unknown>(params?: GetPlaybackQueueParams, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
play<T = unknown>(params?: PlayParams, opts?: RequestOptions): Promise<T>;
|
|
10
|
+
pause<T = unknown>(params?: PauseParams, opts?: RequestOptions): Promise<T>;
|
|
11
|
+
next<T = unknown>(params?: NextParams, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
previous<T = unknown>(params?: PreviousParams, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
seek<T = unknown>(params: SeekParams, opts?: RequestOptions): Promise<T>;
|
|
14
|
+
playFile<T = unknown>(params: PlayFileParams, opts?: RequestOptions): Promise<T>;
|
|
15
|
+
playDirectory<T = unknown>(params: PlayDirectoryParams, opts?: RequestOptions): Promise<T>;
|
|
16
|
+
addItemsToQueue<T = unknown>(params: AddItemsToQueueParams, opts?: RequestOptions): Promise<T>;
|
|
17
|
+
addDirectoryToQueue<T = unknown>(params: AddDirectoryToQueueParams, opts?: RequestOptions): Promise<T>;
|
|
39
18
|
}
|
|
40
|
-
export {};
|
|
41
19
|
//# sourceMappingURL=player.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player.d.ts","sourceRoot":"","sources":["../../src/namespaces/player.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"player.d.ts","sourceRoot":"","sources":["../../src/namespaces/player.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,cAAc,EACd,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAC7B,MAAM,GAAE,yBAA8B,EACtC,IAAI,CAAC,EAAE,cAAc;IAQvB,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAC1B,MAAM,GAAE,sBAA2B,EACnC,IAAI,CAAC,EAAE,cAAc;IAQvB,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,UAAe,EAAE,IAAI,CAAC,EAAE,cAAc;IAQhE,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,WAAgB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQlE,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,UAAe,EAAE,IAAI,CAAC,EAAE,cAAc;IAQhE,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,cAAmB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQxE,IAAI,CAAC,CAAC,GAAG,OAAO,EACd,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,cAAc;IASvB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAClB,MAAM,EAAE,cAAc,EACtB,IAAI,CAAC,EAAE,cAAc;IASvB,aAAa,CAAC,CAAC,GAAG,OAAO,EACvB,MAAM,EAAE,mBAAmB,EAC3B,IAAI,CAAC,EAAE,cAAc;IASvB,eAAe,CAAC,CAAC,GAAG,OAAO,EACzB,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,cAAc;IASvB,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAC7B,MAAM,EAAE,yBAAyB,EACjC,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CreatePlaylistParams, GetPlaylistParams, GetPlaylistsParams, InsertDirectoryParams, InsertFilesParams, RemovePlaylistParams, RemoveTrackParams, StartPlaylistParams } from "../generated/types";
|
|
2
2
|
import type { RequestOptions } from "../types";
|
|
3
|
+
import type { Call } from "./_helpers";
|
|
3
4
|
export declare class PlaylistNamespace {
|
|
4
5
|
private readonly call;
|
|
5
6
|
constructor(call: Call);
|
|
6
|
-
getPlaylists<T = unknown>(params?:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
name: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
17
|
-
removePlaylist<T = unknown>(params: {
|
|
18
|
-
uri: string;
|
|
19
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
20
|
-
startPlaylist<T = unknown>(params: {
|
|
21
|
-
uri: string;
|
|
22
|
-
shuffle?: boolean;
|
|
23
|
-
position?: number;
|
|
24
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
25
|
-
insertDirectory<T = unknown>(params: {
|
|
26
|
-
uri: string;
|
|
27
|
-
directory: string;
|
|
28
|
-
position?: number;
|
|
29
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
30
|
-
insertFiles<T = unknown>(params: {
|
|
31
|
-
uri: string;
|
|
32
|
-
files: string[];
|
|
33
|
-
position?: number;
|
|
34
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
35
|
-
removeTrack<T = unknown>(params: {
|
|
36
|
-
uri: string;
|
|
37
|
-
position: number;
|
|
38
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
7
|
+
getPlaylists<T = unknown>(params?: GetPlaylistsParams, opts?: RequestOptions): Promise<T>;
|
|
8
|
+
getPlaylist<T = unknown>(params: GetPlaylistParams, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
createPlaylist<T = unknown>(params: CreatePlaylistParams, opts?: RequestOptions): Promise<T>;
|
|
10
|
+
removePlaylist<T = unknown>(params: RemovePlaylistParams, opts?: RequestOptions): Promise<T>;
|
|
11
|
+
startPlaylist<T = unknown>(params: StartPlaylistParams, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
insertDirectory<T = unknown>(params: InsertDirectoryParams, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
insertFiles<T = unknown>(params: InsertFilesParams, opts?: RequestOptions): Promise<T>;
|
|
14
|
+
removeTrack<T = unknown>(params: RemoveTrackParams, opts?: RequestOptions): Promise<T>;
|
|
39
15
|
}
|
|
40
16
|
//# sourceMappingURL=playlist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playlist.d.ts","sourceRoot":"","sources":["../../src/namespaces/playlist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"playlist.d.ts","sourceRoot":"","sources":["../../src/namespaces/playlist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,YAAY,CAAC,CAAC,GAAG,OAAO,EACtB,MAAM,GAAE,kBAAuB,EAC/B,IAAI,CAAC,EAAE,cAAc;IAQvB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc;IAOzE,cAAc,CAAC,CAAC,GAAG,OAAO,EACxB,MAAM,EAAE,oBAAoB,EAC5B,IAAI,CAAC,EAAE,cAAc;IASvB,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ/E,aAAa,CAAC,CAAC,GAAG,OAAO,EACvB,MAAM,EAAE,mBAAmB,EAC3B,IAAI,CAAC,EAAE,cAAc;IASvB,eAAe,CAAC,CAAC,GAAG,OAAO,EACzB,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -1,43 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CreateScrobbleInput, GetScrobbleParams, GetScrobblesParams } from "../generated/types";
|
|
2
2
|
import type { RequestOptions } from "../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
artist: string;
|
|
6
|
-
album?: string;
|
|
7
|
-
duration?: number;
|
|
8
|
-
mbId?: string;
|
|
9
|
-
isrc?: string;
|
|
10
|
-
albumArt?: string;
|
|
11
|
-
trackNumber?: number;
|
|
12
|
-
releaseDate?: string;
|
|
13
|
-
year?: number;
|
|
14
|
-
discNumber?: number;
|
|
15
|
-
lyrics?: string;
|
|
16
|
-
composer?: string;
|
|
17
|
-
copyrightMessage?: string;
|
|
18
|
-
label?: string;
|
|
19
|
-
artistPicture?: string;
|
|
20
|
-
spotifyLink?: string;
|
|
21
|
-
lastfmLink?: string;
|
|
22
|
-
tidalLink?: string;
|
|
23
|
-
appleMusicLink?: string;
|
|
24
|
-
youtubeLink?: string;
|
|
25
|
-
deezerLink?: string;
|
|
26
|
-
timestamp?: number;
|
|
27
|
-
};
|
|
28
|
-
export type GetScrobblesParams = {
|
|
29
|
-
did?: string;
|
|
30
|
-
following?: boolean;
|
|
31
|
-
limit?: number;
|
|
32
|
-
offset?: number;
|
|
33
|
-
};
|
|
3
|
+
import type { Call } from "./_helpers";
|
|
4
|
+
export type { CreateScrobbleInput, GetScrobblesParams };
|
|
34
5
|
export declare class ScrobbleNamespace {
|
|
35
6
|
private readonly call;
|
|
36
7
|
constructor(call: Call);
|
|
37
8
|
createScrobble<T = unknown>(input: CreateScrobbleInput, opts?: RequestOptions): Promise<T>;
|
|
38
|
-
getScrobble<T = unknown>(params:
|
|
39
|
-
uri: string;
|
|
40
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
getScrobble<T = unknown>(params: GetScrobbleParams, opts?: RequestOptions): Promise<T>;
|
|
41
10
|
getScrobbles<T = unknown>(params?: GetScrobblesParams, opts?: RequestOptions): Promise<T>;
|
|
42
11
|
}
|
|
43
12
|
//# sourceMappingURL=scrobble.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrobble.d.ts","sourceRoot":"","sources":["../../src/namespaces/scrobble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"scrobble.d.ts","sourceRoot":"","sources":["../../src/namespaces/scrobble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;AAExD,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,cAAc,CAAC,CAAC,GAAG,OAAO,EACxB,KAAK,EAAE,mBAAmB,EAC1B,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc;IAOzE,YAAY,CAAC,CAAC,GAAG,OAAO,EACtB,MAAM,GAAE,kBAAuB,EAC/B,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -1,38 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CreateShoutInput, GetAlbumShoutsParams, GetArtistShoutsParams, GetProfileShoutsParams, GetShoutRepliesParams, GetTrackShoutsParams, RemoveShoutParams, ReplyShoutInput, ReportShoutInput } from "../generated/types";
|
|
2
2
|
import type { RequestOptions } from "../types";
|
|
3
|
-
type
|
|
4
|
-
uri: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
offset?: number;
|
|
7
|
-
};
|
|
3
|
+
import type { Call } from "./_helpers";
|
|
8
4
|
export declare class ShoutNamespace {
|
|
9
5
|
private readonly call;
|
|
10
6
|
constructor(call: Call);
|
|
11
|
-
createShout<T = unknown>(input?:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
reason?: string;
|
|
21
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
22
|
-
removeShout<T = unknown>(params: {
|
|
23
|
-
id: string;
|
|
24
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
25
|
-
getShoutReplies<T = unknown>(params: UriPage, opts?: RequestOptions): Promise<T>;
|
|
26
|
-
getProfileShouts<T = unknown>(params: {
|
|
27
|
-
did: string;
|
|
28
|
-
limit?: number;
|
|
29
|
-
offset?: number;
|
|
30
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
31
|
-
getTrackShouts<T = unknown>(params: {
|
|
32
|
-
uri: string;
|
|
33
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
34
|
-
getArtistShouts<T = unknown>(params: UriPage, opts?: RequestOptions): Promise<T>;
|
|
35
|
-
getAlbumShouts<T = unknown>(params: UriPage, opts?: RequestOptions): Promise<T>;
|
|
7
|
+
createShout<T = unknown>(input?: CreateShoutInput, opts?: RequestOptions): Promise<T>;
|
|
8
|
+
replyShout<T = unknown>(input: ReplyShoutInput, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
reportShout<T = unknown>(input: ReportShoutInput, opts?: RequestOptions): Promise<T>;
|
|
10
|
+
removeShout<T = unknown>(params: RemoveShoutParams, opts?: RequestOptions): Promise<T>;
|
|
11
|
+
getShoutReplies<T = unknown>(params: GetShoutRepliesParams, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
getProfileShouts<T = unknown>(params: GetProfileShoutsParams, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
getTrackShouts<T = unknown>(params: GetTrackShoutsParams, opts?: RequestOptions): Promise<T>;
|
|
14
|
+
getArtistShouts<T = unknown>(params: GetArtistShoutsParams, opts?: RequestOptions): Promise<T>;
|
|
15
|
+
getAlbumShouts<T = unknown>(params: GetAlbumShoutsParams, opts?: RequestOptions): Promise<T>;
|
|
36
16
|
}
|
|
37
|
-
export {};
|
|
38
17
|
//# sourceMappingURL=shout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shout.d.ts","sourceRoot":"","sources":["../../src/namespaces/shout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"shout.d.ts","sourceRoot":"","sources":["../../src/namespaces/shout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,KAAK,GAAE,gBAAqB,EAC5B,IAAI,CAAC,EAAE,cAAc;IASvB,UAAU,CAAC,CAAC,GAAG,OAAO,EACpB,KAAK,EAAE,eAAe,EACtB,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,KAAK,EAAE,gBAAgB,EACvB,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQzE,eAAe,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc;IAOjF,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAC1B,MAAM,EAAE,sBAAsB,EAC9B,IAAI,CAAC,EAAE,cAAc;IAQvB,cAAc,CAAC,CAAC,GAAG,OAAO,EACxB,MAAM,EAAE,oBAAoB,EAC5B,IAAI,CAAC,EAAE,cAAc;IAQvB,eAAe,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc;IAOjF,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,cAAc;CAMhF"}
|
|
@@ -1,47 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CreateSongInput, GetSongParams, GetSongRecentListenersParams, GetSongsParams, MatchSongParams } from "../generated/types";
|
|
2
2
|
import type { RequestOptions } from "../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
mbid?: string;
|
|
6
|
-
isrc?: string;
|
|
7
|
-
spotifyId?: string;
|
|
8
|
-
};
|
|
9
|
-
export type GetSongsParams = GetSongParams & {
|
|
10
|
-
limit?: number;
|
|
11
|
-
offset?: number;
|
|
12
|
-
genre?: string;
|
|
13
|
-
};
|
|
14
|
-
export type MatchSongParams = {
|
|
15
|
-
title: string;
|
|
16
|
-
artist: string;
|
|
17
|
-
mbId?: string;
|
|
18
|
-
isrc?: string;
|
|
19
|
-
};
|
|
20
|
-
export type CreateSongInput = {
|
|
21
|
-
title: string;
|
|
22
|
-
artist: string;
|
|
23
|
-
albumArtist: string;
|
|
24
|
-
album: string;
|
|
25
|
-
duration?: number;
|
|
26
|
-
mbId?: string;
|
|
27
|
-
isrc?: string;
|
|
28
|
-
albumArt?: string;
|
|
29
|
-
trackNumber?: number;
|
|
30
|
-
releaseDate?: string;
|
|
31
|
-
year?: number;
|
|
32
|
-
discNumber?: number;
|
|
33
|
-
lyrics?: string;
|
|
34
|
-
};
|
|
3
|
+
import type { Call } from "./_helpers";
|
|
4
|
+
export type { CreateSongInput, GetSongParams, GetSongRecentListenersParams, GetSongsParams, MatchSongParams, };
|
|
35
5
|
export declare class SongNamespace {
|
|
36
6
|
private readonly call;
|
|
37
7
|
constructor(call: Call);
|
|
38
8
|
getSong<T = unknown>(params: GetSongParams, opts?: RequestOptions): Promise<T>;
|
|
39
9
|
getSongs<T = unknown>(params?: GetSongsParams, opts?: RequestOptions): Promise<T>;
|
|
40
|
-
getSongRecentListeners<T = unknown>(params:
|
|
41
|
-
uri: string;
|
|
42
|
-
limit?: number;
|
|
43
|
-
offset?: number;
|
|
44
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
10
|
+
getSongRecentListeners<T = unknown>(params: GetSongRecentListenersParams, opts?: RequestOptions): Promise<T>;
|
|
45
11
|
matchSong<T = unknown>(params: MatchSongParams, opts?: RequestOptions): Promise<T>;
|
|
46
12
|
createSong<T = unknown>(input: CreateSongInput, opts?: RequestOptions): Promise<T>;
|
|
47
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"song.d.ts","sourceRoot":"","sources":["../../src/namespaces/song.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"song.d.ts","sourceRoot":"","sources":["../../src/namespaces/song.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,4BAA4B,EAC5B,cAAc,EACd,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,YAAY,EACV,eAAe,EACf,aAAa,EACb,4BAA4B,EAC5B,cAAc,EACd,eAAe,GAChB,CAAC;AAEF,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,cAAc;IAOjE,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,cAAmB,EAAE,IAAI,CAAC,EAAE,cAAc;IAOxE,sBAAsB,CAAC,CAAC,GAAG,OAAO,EAChC,MAAM,EAAE,4BAA4B,EACpC,IAAI,CAAC,EAAE,cAAc;IAQvB,SAAS,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc;IAOrE,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc;CAOtE"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GetCurrentlyPlayingParams, SeekParams } from "../generated/types";
|
|
2
2
|
import type { RequestOptions } from "../types";
|
|
3
|
+
import type { Call } from "./_helpers";
|
|
3
4
|
export declare class SpotifyNamespace {
|
|
4
5
|
private readonly call;
|
|
5
6
|
constructor(call: Call);
|
|
6
|
-
getCurrentlyPlaying<T = unknown>(params?:
|
|
7
|
-
actor?: string;
|
|
8
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
7
|
+
getCurrentlyPlaying<T = unknown>(params?: GetCurrentlyPlayingParams, opts?: RequestOptions): Promise<T>;
|
|
9
8
|
play<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
10
9
|
pause<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
11
10
|
next<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
12
11
|
previous<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
13
|
-
seek<T = unknown>(params:
|
|
14
|
-
position: number;
|
|
15
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
seek<T = unknown>(params: SeekParams, opts?: RequestOptions): Promise<T>;
|
|
16
13
|
}
|
|
17
14
|
//# sourceMappingURL=spotify.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spotify.d.ts","sourceRoot":"","sources":["../../src/namespaces/spotify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"spotify.d.ts","sourceRoot":"","sources":["../../src/namespaces/spotify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAC7B,MAAM,GAAE,yBAA8B,EACtC,IAAI,CAAC,EAAE,cAAc;IAQvB,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;IAOvC,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;IAOxC,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;IAOvC,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;IAO3C,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,cAAc;CAO5D"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GetStatsParams, GetWrappedParams } from "../generated/types";
|
|
2
2
|
import type { RequestOptions } from "../types";
|
|
3
|
+
import type { Call } from "./_helpers";
|
|
3
4
|
export declare class StatsNamespace {
|
|
4
5
|
private readonly call;
|
|
5
6
|
constructor(call: Call);
|
|
6
|
-
getStats<T = unknown>(params:
|
|
7
|
-
|
|
8
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
9
|
-
getWrapped<T = unknown>(params: {
|
|
10
|
-
did: string;
|
|
11
|
-
year?: number;
|
|
12
|
-
}, opts?: RequestOptions): Promise<T>;
|
|
7
|
+
getStats<T = unknown>(params: GetStatsParams, opts?: RequestOptions): Promise<T>;
|
|
8
|
+
getWrapped<T = unknown>(params: GetWrappedParams, opts?: RequestOptions): Promise<T>;
|
|
13
9
|
}
|
|
14
10
|
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/namespaces/stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/namespaces/stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,cAAc;IAOnE,UAAU,CAAC,CAAC,GAAG,OAAO,EACpB,MAAM,EAAE,gBAAgB,EACxB,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|