@rocksky/sdk 0.1.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/LICENSE +21 -0
- package/README.md +279 -0
- package/dist/client.d.ts +107 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/errors.d.ts +26 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/http.d.ts +28 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1492 -0
- package/dist/namespaces/_helpers.d.ts +9 -0
- package/dist/namespaces/_helpers.d.ts.map +1 -0
- package/dist/namespaces/actor.d.ts +30 -0
- package/dist/namespaces/actor.d.ts.map +1 -0
- package/dist/namespaces/album.d.ts +18 -0
- package/dist/namespaces/album.d.ts.map +1 -0
- package/dist/namespaces/apikey.d.ts +27 -0
- package/dist/namespaces/apikey.d.ts.map +1 -0
- package/dist/namespaces/artist.d.ts +31 -0
- package/dist/namespaces/artist.d.ts.map +1 -0
- package/dist/namespaces/charts.d.ts +25 -0
- package/dist/namespaces/charts.d.ts.map +1 -0
- package/dist/namespaces/dropbox.d.ts +19 -0
- package/dist/namespaces/dropbox.d.ts.map +1 -0
- package/dist/namespaces/feed.d.ts +38 -0
- package/dist/namespaces/feed.d.ts.map +1 -0
- package/dist/namespaces/googledrive.d.ts +16 -0
- package/dist/namespaces/googledrive.d.ts.map +1 -0
- package/dist/namespaces/graph.d.ts +28 -0
- package/dist/namespaces/graph.d.ts.map +1 -0
- package/dist/namespaces/like.d.ts +14 -0
- package/dist/namespaces/like.d.ts.map +1 -0
- package/dist/namespaces/mirror.d.ts +15 -0
- package/dist/namespaces/mirror.d.ts.map +1 -0
- package/dist/namespaces/player.d.ts +41 -0
- package/dist/namespaces/player.d.ts.map +1 -0
- package/dist/namespaces/playlist.d.ts +40 -0
- package/dist/namespaces/playlist.d.ts.map +1 -0
- package/dist/namespaces/scrobble.d.ts +43 -0
- package/dist/namespaces/scrobble.d.ts.map +1 -0
- package/dist/namespaces/shout.d.ts +38 -0
- package/dist/namespaces/shout.d.ts.map +1 -0
- package/dist/namespaces/song.d.ts +48 -0
- package/dist/namespaces/song.d.ts.map +1 -0
- package/dist/namespaces/spotify.d.ts +17 -0
- package/dist/namespaces/spotify.d.ts.map +1 -0
- package/dist/namespaces/stats.d.ts +14 -0
- package/dist/namespaces/stats.d.ts.map +1 -0
- package/dist/paginate.d.ts +38 -0
- package/dist/paginate.d.ts.map +1 -0
- package/dist/pipe.d.ts +36 -0
- package/dist/pipe.d.ts.map +1 -0
- package/dist/realtime.d.ts +144 -0
- package/dist/realtime.d.ts.map +1 -0
- package/dist/types.d.ts +29 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +65 -0
- package/src/client.ts +235 -0
- package/src/errors.ts +47 -0
- package/src/http.ts +195 -0
- package/src/index.ts +85 -0
- package/src/namespaces/_helpers.ts +17 -0
- package/src/namespaces/actor.ts +89 -0
- package/src/namespaces/album.ts +34 -0
- package/src/namespaces/apikey.ts +50 -0
- package/src/namespaces/artist.ts +74 -0
- package/src/namespaces/charts.ts +47 -0
- package/src/namespaces/dropbox.ts +47 -0
- package/src/namespaces/feed.ts +106 -0
- package/src/namespaces/googledrive.ts +36 -0
- package/src/namespaces/graph.ts +63 -0
- package/src/namespaces/like.ts +40 -0
- package/src/namespaces/mirror.ts +31 -0
- package/src/namespaces/player.ts +127 -0
- package/src/namespaces/playlist.ts +85 -0
- package/src/namespaces/scrobble.ts +67 -0
- package/src/namespaces/shout.ts +90 -0
- package/src/namespaces/song.ts +81 -0
- package/src/namespaces/spotify.ts +52 -0
- package/src/namespaces/stats.ts +23 -0
- package/src/paginate.ts +90 -0
- package/src/pipe.ts +146 -0
- package/src/realtime.ts +408 -0
- package/src/types.ts +41 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type HttpClientConfig } from "../http";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type Call = <T>(nsid: string, method: "GET" | "POST", opts?: {
|
|
4
|
+
params?: Record<string, unknown>;
|
|
5
|
+
body?: unknown;
|
|
6
|
+
requireAuth?: boolean;
|
|
7
|
+
} & RequestOptions) => Promise<T>;
|
|
8
|
+
export declare function makeCall(config: HttpClientConfig): Call;
|
|
9
|
+
//# sourceMappingURL=_helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_helpers.d.ts","sourceRoot":"","sources":["../../src/namespaces/_helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAY,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,EACnB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,GAAG,MAAM,EACtB,IAAI,CAAC,EAAE;IACL,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,cAAc,KACf,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,wBAAgB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAGvD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type GetProfileParams = {
|
|
4
|
+
did?: string;
|
|
5
|
+
};
|
|
6
|
+
export type DidParam = {
|
|
7
|
+
did: string;
|
|
8
|
+
};
|
|
9
|
+
export type ActorPagedParams = DidParam & {
|
|
10
|
+
limit?: number;
|
|
11
|
+
offset?: number;
|
|
12
|
+
};
|
|
13
|
+
export type ActorRangeParams = ActorPagedParams & {
|
|
14
|
+
startDate?: string;
|
|
15
|
+
endDate?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare class ActorNamespace {
|
|
18
|
+
private readonly call;
|
|
19
|
+
constructor(call: Call);
|
|
20
|
+
getProfile<T = unknown>(params?: GetProfileParams, opts?: RequestOptions): Promise<T>;
|
|
21
|
+
getActorAlbums<T = unknown>(params: ActorRangeParams, opts?: RequestOptions): Promise<T>;
|
|
22
|
+
getActorArtists<T = unknown>(params: ActorRangeParams, opts?: RequestOptions): Promise<T>;
|
|
23
|
+
getActorSongs<T = unknown>(params: ActorRangeParams, opts?: RequestOptions): Promise<T>;
|
|
24
|
+
getActorScrobbles<T = unknown>(params: ActorPagedParams, opts?: RequestOptions): Promise<T>;
|
|
25
|
+
getActorLovedSongs<T = unknown>(params: ActorPagedParams, opts?: RequestOptions): Promise<T>;
|
|
26
|
+
getActorPlaylists<T = unknown>(params: ActorPagedParams, opts?: RequestOptions): Promise<T>;
|
|
27
|
+
getActorNeighbours<T = unknown>(params: DidParam, opts?: RequestOptions): Promise<T>;
|
|
28
|
+
getActorCompatibility<T = unknown>(params: DidParam, opts?: RequestOptions): Promise<T>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=actor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../../src/namespaces/actor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACvC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,gBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO5E,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO3E,eAAe,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO5E,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO1E,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAC3B,MAAM,EAAE,gBAAgB,EACxB,IAAI,CAAC,EAAE,cAAc;IAQvB,kBAAkB,CAAC,CAAC,GAAG,OAAO,EAC5B,MAAM,EAAE,gBAAgB,EACxB,IAAI,CAAC,EAAE,cAAc;IAQvB,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAC3B,MAAM,EAAE,gBAAgB,EACxB,IAAI,CAAC,EAAE,cAAc;IAQvB,kBAAkB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,cAAc;IAOvE,qBAAqB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,cAAc;CAM3E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type UriParam = {
|
|
4
|
+
uri: string;
|
|
5
|
+
};
|
|
6
|
+
export type GetAlbumsParams = {
|
|
7
|
+
limit?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
genre?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare class AlbumNamespace {
|
|
12
|
+
private readonly call;
|
|
13
|
+
constructor(call: Call);
|
|
14
|
+
getAlbum<T = unknown>(params: UriParam, opts?: RequestOptions): Promise<T>;
|
|
15
|
+
getAlbums<T = unknown>(params?: GetAlbumsParams, opts?: RequestOptions): Promise<T>;
|
|
16
|
+
getAlbumTracks<T = unknown>(params: UriParam, opts?: RequestOptions): Promise<T>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=album.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"album.d.ts","sourceRoot":"","sources":["../../src/namespaces/album.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACvC,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,cAAc;IAO7D,SAAS,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,eAAoB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO1E,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,cAAc;CAMpE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type ListApikeysParams = {
|
|
4
|
+
limit?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
};
|
|
7
|
+
export type CreateApikeyInput = {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
};
|
|
11
|
+
export type UpdateApikeyInput = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
};
|
|
16
|
+
export type RemoveApikeyParams = {
|
|
17
|
+
id: string;
|
|
18
|
+
};
|
|
19
|
+
export declare class ApikeyNamespace {
|
|
20
|
+
private readonly call;
|
|
21
|
+
constructor(call: Call);
|
|
22
|
+
getApikeys<T = unknown>(params?: ListApikeysParams, opts?: RequestOptions): Promise<T>;
|
|
23
|
+
createApikey<T = unknown>(input: CreateApikeyInput, opts?: RequestOptions): Promise<T>;
|
|
24
|
+
updateApikey<T = unknown>(input: UpdateApikeyInput, opts?: RequestOptions): Promise<T>;
|
|
25
|
+
removeApikey<T = unknown>(params: RemoveApikeyParams, opts?: RequestOptions): Promise<T>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=apikey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../../src/namespaces/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,UAAU,CAAC,CAAC,GAAG,OAAO,EACpB,MAAM,GAAE,iBAAsB,EAC9B,IAAI,CAAC,EAAE,cAAc;IASvB,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQzE,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQzE,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc;CAO5E"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type UriParam = {
|
|
4
|
+
uri: string;
|
|
5
|
+
};
|
|
6
|
+
export type ArtistListenersParams = UriParam & {
|
|
7
|
+
limit?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
};
|
|
10
|
+
export type GetArtistsParams = {
|
|
11
|
+
limit?: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
names?: string;
|
|
14
|
+
genre?: string;
|
|
15
|
+
};
|
|
16
|
+
export type GetArtistTracksParams = {
|
|
17
|
+
uri?: string;
|
|
18
|
+
limit?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
};
|
|
21
|
+
export declare class ArtistNamespace {
|
|
22
|
+
private readonly call;
|
|
23
|
+
constructor(call: Call);
|
|
24
|
+
getArtist<T = unknown>(params: UriParam, opts?: RequestOptions): Promise<T>;
|
|
25
|
+
getArtists<T = unknown>(params?: GetArtistsParams, opts?: RequestOptions): Promise<T>;
|
|
26
|
+
getArtistAlbums<T = unknown>(params: UriParam, opts?: RequestOptions): Promise<T>;
|
|
27
|
+
getArtistTracks<T = unknown>(params?: GetArtistTracksParams, opts?: RequestOptions): Promise<T>;
|
|
28
|
+
getArtistListeners<T = unknown>(params: ArtistListenersParams, opts?: RequestOptions): Promise<T>;
|
|
29
|
+
getArtistRecentListeners<T = unknown>(params: ArtistListenersParams, opts?: RequestOptions): Promise<T>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=artist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artist.d.ts","sourceRoot":"","sources":["../../src/namespaces/artist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AACvC,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,SAAS,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,cAAc;IAO9D,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,gBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO5E,eAAe,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,cAAc;IAOpE,eAAe,CAAC,CAAC,GAAG,OAAO,EACzB,MAAM,GAAE,qBAA0B,EAClC,IAAI,CAAC,EAAE,cAAc;IAQvB,kBAAkB,CAAC,CAAC,GAAG,OAAO,EAC5B,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,cAAc;IAQvB,wBAAwB,CAAC,CAAC,GAAG,OAAO,EAClC,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type ScrobblesChartParams = {
|
|
4
|
+
did?: string;
|
|
5
|
+
artisturi?: string;
|
|
6
|
+
albumuri?: string;
|
|
7
|
+
songuri?: string;
|
|
8
|
+
genre?: string;
|
|
9
|
+
from?: string;
|
|
10
|
+
to?: string;
|
|
11
|
+
};
|
|
12
|
+
export type TopChartParams = {
|
|
13
|
+
limit?: number;
|
|
14
|
+
offset?: number;
|
|
15
|
+
startDate?: string;
|
|
16
|
+
endDate?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare class ChartsNamespace {
|
|
19
|
+
private readonly call;
|
|
20
|
+
constructor(call: Call);
|
|
21
|
+
getScrobblesChart<T = unknown>(params?: ScrobblesChartParams, opts?: RequestOptions): Promise<T>;
|
|
22
|
+
getTopArtists<T = unknown>(params?: TopChartParams, opts?: RequestOptions): Promise<T>;
|
|
23
|
+
getTopTracks<T = unknown>(params?: TopChartParams, opts?: RequestOptions): Promise<T>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=charts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charts.d.ts","sourceRoot":"","sources":["../../src/namespaces/charts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAC3B,MAAM,GAAE,oBAAyB,EACjC,IAAI,CAAC,EAAE,cAAc;IAQvB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,cAAmB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO7E,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,cAAmB,EAAE,IAAI,CAAC,EAAE,cAAc;CAM7E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export declare class DropboxNamespace {
|
|
4
|
+
private readonly call;
|
|
5
|
+
constructor(call: Call);
|
|
6
|
+
getFiles<T = unknown>(params?: {
|
|
7
|
+
at?: string;
|
|
8
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
getMetadata<T = unknown>(params: {
|
|
10
|
+
path: string;
|
|
11
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
getTemporaryLink<T = unknown>(params: {
|
|
13
|
+
path: string;
|
|
14
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
15
|
+
downloadFile<T = unknown>(params: {
|
|
16
|
+
fileId: string;
|
|
17
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=dropbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropbox.d.ts","sourceRoot":"","sources":["../../src/namespaces/dropbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,QAAQ,CAAC,CAAC,GAAG,OAAO,EAClB,MAAM,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAO,EAC5B,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;IAQxE,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAC1B,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EACxB,IAAI,CAAC,EAAE,cAAc;IASvB,YAAY,CAAC,CAAC,GAAG,OAAO,EACtB,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAC1B,IAAI,CAAC,EAAE,cAAc;CAQxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type RecommendParams = {
|
|
4
|
+
did: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare class FeedNamespace {
|
|
8
|
+
private readonly call;
|
|
9
|
+
constructor(call: Call);
|
|
10
|
+
search<T = unknown>(params: {
|
|
11
|
+
query: string;
|
|
12
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
getFeed<T = unknown>(params: {
|
|
14
|
+
feed: string;
|
|
15
|
+
limit?: number;
|
|
16
|
+
cursor?: string;
|
|
17
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
18
|
+
getFeedGenerators<T = unknown>(params?: {
|
|
19
|
+
size?: number;
|
|
20
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
21
|
+
getFeedGenerator<T = unknown>(params: {
|
|
22
|
+
feed: string;
|
|
23
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
24
|
+
describeFeedGenerator<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
25
|
+
getFeedSkeleton<T = unknown>(params: {
|
|
26
|
+
feed: string;
|
|
27
|
+
limit?: number;
|
|
28
|
+
offset?: number;
|
|
29
|
+
cursor?: string;
|
|
30
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
31
|
+
getRecommendations<T = unknown>(params: RecommendParams, opts?: RequestOptions): Promise<T>;
|
|
32
|
+
getArtistRecommendations<T = unknown>(params: RecommendParams, opts?: RequestOptions): Promise<T>;
|
|
33
|
+
getAlbumRecommendations<T = unknown>(params: RecommendParams, opts?: RequestOptions): Promise<T>;
|
|
34
|
+
getStories<T = unknown>(params?: {
|
|
35
|
+
size?: number;
|
|
36
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL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AC,EAAE,MAAM,CAAC;KACjB,EACD,IAAI,CAAC,EAAE,cAAc;IAQvB,kBAAkB,CAAC,CAAC,GAAG,OAAO,EAC5B,MAAM,EAAE,eAAe,EACvB,IAAI,CAAC,EAAE,cAAc;IAQvB,wBAAwB,CAAC,CAAC,GAAG,OAAO,EAClC,MAAM,EAAE,eAAe,EACvB,IAAI,CAAC,EAAE,cAAc;IAQvB,uBAAuB,CAAC,CAAC,GAAG,OAAO,EACjC,MAAM,EAAE,eAAe,EACvB,IAAI,CAAC,EAAE,cAAc;IAQvB,UAAU,CAAC,CAAC,GAAG,OAAO,EACpB,MAAM,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO,EAC9B,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export declare class GoogleDriveNamespace {
|
|
4
|
+
private readonly call;
|
|
5
|
+
constructor(call: Call);
|
|
6
|
+
getFile<T = unknown>(params: {
|
|
7
|
+
fileId: string;
|
|
8
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
getFiles<T = unknown>(params?: {
|
|
10
|
+
at?: string;
|
|
11
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
downloadFile<T = unknown>(params: {
|
|
13
|
+
fileId: string;
|
|
14
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=googledrive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googledrive.d.ts","sourceRoot":"","sources":["../../src/namespaces/googledrive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;IAQtE,QAAQ,CAAC,CAAC,GAAG,OAAO,EAClB,MAAM,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAO,EAC5B,IAAI,CAAC,EAAE,cAAc;IASvB,YAAY,CAAC,CAAC,GAAG,OAAO,EACtB,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAC1B,IAAI,CAAC,EAAE,cAAc;CAQxB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type ActorParam = {
|
|
4
|
+
actor: string;
|
|
5
|
+
};
|
|
6
|
+
export type FollowListParams = ActorParam & {
|
|
7
|
+
limit?: number;
|
|
8
|
+
cursor?: string;
|
|
9
|
+
dids?: string[];
|
|
10
|
+
};
|
|
11
|
+
export type KnownFollowersParams = ActorParam & {
|
|
12
|
+
limit?: number;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare class GraphNamespace {
|
|
16
|
+
private readonly call;
|
|
17
|
+
constructor(call: Call);
|
|
18
|
+
followAccount<T = unknown>(params: {
|
|
19
|
+
account: string;
|
|
20
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
21
|
+
unfollowAccount<T = unknown>(params: {
|
|
22
|
+
account: string;
|
|
23
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
24
|
+
getFollowers<T = unknown>(params: FollowListParams, opts?: RequestOptions): Promise<T>;
|
|
25
|
+
getFollows<T = unknown>(params: FollowListParams, opts?: RequestOptions): Promise<T>;
|
|
26
|
+
getKnownFollowers<T = unknown>(params: KnownFollowersParams, opts?: RequestOptions): Promise<T>;
|
|
27
|
+
}
|
|
28
|
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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type LikeInput = {
|
|
4
|
+
uri?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class LikeNamespace {
|
|
7
|
+
private readonly call;
|
|
8
|
+
constructor(call: Call);
|
|
9
|
+
likeSong<T = unknown>(input?: LikeInput, opts?: RequestOptions): Promise<T>;
|
|
10
|
+
dislikeSong<T = unknown>(input?: LikeInput, opts?: RequestOptions): Promise<T>;
|
|
11
|
+
likeShout<T = unknown>(input?: LikeInput, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
dislikeShout<T = unknown>(input?: LikeInput, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=like.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"like.d.ts","sourceRoot":"","sources":["../../src/namespaces/like.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,GAAE,SAAc,EAAE,IAAI,CAAC,EAAE,cAAc;IAQlE,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,GAAE,SAAc,EAAE,IAAI,CAAC,EAAE,cAAc;IAQrE,SAAS,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,GAAE,SAAc,EAAE,IAAI,CAAC,EAAE,cAAc;IAQnE,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,GAAE,SAAc,EAAE,IAAI,CAAC,EAAE,cAAc;CAOvE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type PutMirrorSourceInput = {
|
|
4
|
+
provider: string;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
externalUsername?: string;
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class MirrorNamespace {
|
|
10
|
+
private readonly call;
|
|
11
|
+
constructor(call: Call);
|
|
12
|
+
getMirrorSources<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
13
|
+
putMirrorSource<T = unknown>(input: PutMirrorSourceInput, opts?: RequestOptions): Promise<T>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=mirror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mirror.d.ts","sourceRoot":"","sources":["../../src/namespaces/mirror.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;IAOnD,eAAe,CAAC,CAAC,GAAG,OAAO,EACzB,KAAK,EAAE,oBAAoB,EAC3B,IAAI,CAAC,EAAE,cAAc;CAQxB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
type PlayerId = {
|
|
4
|
+
playerId?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class PlayerNamespace {
|
|
7
|
+
private readonly call;
|
|
8
|
+
constructor(call: Call);
|
|
9
|
+
getCurrentlyPlaying<T = unknown>(params?: PlayerId & {
|
|
10
|
+
actor?: string;
|
|
11
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
12
|
+
getPlaybackQueue<T = unknown>(params?: PlayerId, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
play<T = unknown>(params?: PlayerId, opts?: RequestOptions): Promise<T>;
|
|
14
|
+
pause<T = unknown>(params?: PlayerId, opts?: RequestOptions): Promise<T>;
|
|
15
|
+
next<T = unknown>(params?: PlayerId, opts?: RequestOptions): Promise<T>;
|
|
16
|
+
previous<T = unknown>(params?: PlayerId, opts?: RequestOptions): Promise<T>;
|
|
17
|
+
seek<T = unknown>(params: PlayerId & {
|
|
18
|
+
position: number;
|
|
19
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
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>;
|
|
39
|
+
}
|
|
40
|
+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,MAAM,EAAE,MAAM,CAAA;KAAE,EACrC,IAAI,CAAC,EAAE,cAAc;IASvB,aAAa,CAAC,CAAC,GAAG,OAAO,EACvB,MAAM,EAAE,QAAQ,GAAG;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EACD,IAAI,CAAC,EAAE,cAAc;IASvB,eAAe,CAAC,CAAC,GAAG,OAAO,EACzB,MAAM,EAAE,QAAQ,GAAG;QACjB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,EACD,IAAI,CAAC,EAAE,cAAc;IASvB,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAC7B,MAAM,EAAE,QAAQ,GAAG;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,EACD,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export declare class PlaylistNamespace {
|
|
4
|
+
private readonly call;
|
|
5
|
+
constructor(call: Call);
|
|
6
|
+
getPlaylists<T = unknown>(params?: {
|
|
7
|
+
limit?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
10
|
+
getPlaylist<T = unknown>(params: {
|
|
11
|
+
uri: string;
|
|
12
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
createPlaylist<T = unknown>(params: {
|
|
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>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=playlist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playlist.d.ts","sourceRoot":"","sources":["../../src/namespaces/playlist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,YAAY,CAAC,CAAC,GAAG,OAAO,EACtB,MAAM,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO,EAChD,IAAI,CAAC,EAAE,cAAc;IAQvB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;IAOvE,cAAc,CAAC,CAAC,GAAG,OAAO,EACxB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAC9C,IAAI,CAAC,EAAE,cAAc;IASvB,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ1E,aAAa,CAAC,CAAC,GAAG,OAAO,EACvB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAC7D,IAAI,CAAC,EAAE,cAAc;IASvB,eAAe,CAAC,CAAC,GAAG,OAAO,EACzB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAC7D,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAC3D,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EACzC,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type CreateScrobbleInput = {
|
|
4
|
+
title: string;
|
|
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
|
+
};
|
|
34
|
+
export declare class ScrobbleNamespace {
|
|
35
|
+
private readonly call;
|
|
36
|
+
constructor(call: Call);
|
|
37
|
+
createScrobble<T = unknown>(input: CreateScrobbleInput, opts?: RequestOptions): Promise<T>;
|
|
38
|
+
getScrobble<T = unknown>(params: {
|
|
39
|
+
uri: string;
|
|
40
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
41
|
+
getScrobbles<T = unknown>(params?: GetScrobblesParams, opts?: RequestOptions): Promise<T>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=scrobble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrobble.d.ts","sourceRoot":"","sources":["../../src/namespaces/scrobble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM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AOvE,YAAY,CAAC,CAAC,GAAG,OAAO,EACtB,MAAM,GAAE,kBAAuB,EAC/B,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
type UriPage = {
|
|
4
|
+
uri: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
offset?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare class ShoutNamespace {
|
|
9
|
+
private readonly call;
|
|
10
|
+
constructor(call: Call);
|
|
11
|
+
createShout<T = unknown>(input?: {
|
|
12
|
+
message?: string;
|
|
13
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
14
|
+
replyShout<T = unknown>(input: {
|
|
15
|
+
shoutId: string;
|
|
16
|
+
message: string;
|
|
17
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
18
|
+
reportShout<T = unknown>(input: {
|
|
19
|
+
shoutId: string;
|
|
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>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=shout.d.ts.map
|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,MAAM,CAAA;KAAE,EACxD,IAAI,CAAC,EAAE,cAAc;IAQvB,cAAc,CAAC,CAAC,GAAG,OAAO,EACxB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EACvB,IAAI,CAAC,EAAE,cAAc;IAQvB,eAAe,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;IAOnE,cAAc,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;CAMnE"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export type GetSongParams = {
|
|
4
|
+
uri?: string;
|
|
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
|
+
};
|
|
35
|
+
export declare class SongNamespace {
|
|
36
|
+
private readonly call;
|
|
37
|
+
constructor(call: Call);
|
|
38
|
+
getSong<T = unknown>(params: GetSongParams, opts?: RequestOptions): Promise<T>;
|
|
39
|
+
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>;
|
|
45
|
+
matchSong<T = unknown>(params: MatchSongParams, opts?: RequestOptions): Promise<T>;
|
|
46
|
+
createSong<T = unknown>(input: CreateSongInput, opts?: RequestOptions): Promise<T>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=song.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"song.d.ts","sourceRoot":"","sources":["../../src/namespaces/song.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,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;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EACxD,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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export declare class SpotifyNamespace {
|
|
4
|
+
private readonly call;
|
|
5
|
+
constructor(call: Call);
|
|
6
|
+
getCurrentlyPlaying<T = unknown>(params?: {
|
|
7
|
+
actor?: string;
|
|
8
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
play<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
10
|
+
pause<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
11
|
+
next<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
12
|
+
previous<T = unknown>(opts?: RequestOptions): Promise<T>;
|
|
13
|
+
seek<T = unknown>(params: {
|
|
14
|
+
position: number;
|
|
15
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=spotify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spotify.d.ts","sourceRoot":"","sources":["../../src/namespaces/spotify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAC7B,MAAM,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,EAC/B,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;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;CAOtE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Call } from "./_helpers";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export declare class StatsNamespace {
|
|
4
|
+
private readonly call;
|
|
5
|
+
constructor(call: Call);
|
|
6
|
+
getStats<T = unknown>(params: {
|
|
7
|
+
did: string;
|
|
8
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
9
|
+
getWrapped<T = unknown>(params: {
|
|
10
|
+
did: string;
|
|
11
|
+
year?: number;
|
|
12
|
+
}, opts?: RequestOptions): Promise<T>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/namespaces/stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;IAOpE,UAAU,CAAC,CAAC,GAAG,OAAO,EACpB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EACtC,IAAI,CAAC,EAAE,cAAc;CAOxB"}
|