@rocksky/sdk 0.1.0 → 0.2.1

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.
Files changed (74) hide show
  1. package/README.md +5 -0
  2. package/dist/client.d.ts +37 -28
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/generated/types.d.ts +1932 -0
  5. package/dist/generated/types.d.ts.map +1 -0
  6. package/dist/http.d.ts +3 -3
  7. package/dist/http.d.ts.map +1 -1
  8. package/dist/index.d.ts +17 -17
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +6 -1
  11. package/dist/namespaces/_helpers.d.ts +11 -5
  12. package/dist/namespaces/_helpers.d.ts.map +1 -1
  13. package/dist/namespaces/actor.d.ts +15 -25
  14. package/dist/namespaces/actor.d.ts.map +1 -1
  15. package/dist/namespaces/album.d.ts +7 -13
  16. package/dist/namespaces/album.d.ts.map +1 -1
  17. package/dist/namespaces/apikey.d.ts +9 -22
  18. package/dist/namespaces/apikey.d.ts.map +1 -1
  19. package/dist/namespaces/artist.d.ts +11 -26
  20. package/dist/namespaces/artist.d.ts.map +1 -1
  21. package/dist/namespaces/charts.d.ts +8 -20
  22. package/dist/namespaces/charts.d.ts.map +1 -1
  23. package/dist/namespaces/dropbox.d.ts +7 -14
  24. package/dist/namespaces/dropbox.d.ts.map +1 -1
  25. package/dist/namespaces/feed.d.ts +14 -33
  26. package/dist/namespaces/feed.d.ts.map +1 -1
  27. package/dist/namespaces/googledrive.d.ts +6 -11
  28. package/dist/namespaces/googledrive.d.ts.map +1 -1
  29. package/dist/namespaces/graph.d.ts +10 -23
  30. package/dist/namespaces/graph.d.ts.map +1 -1
  31. package/dist/namespaces/like.d.ts +8 -9
  32. package/dist/namespaces/like.d.ts.map +1 -1
  33. package/dist/namespaces/mirror.d.ts +6 -10
  34. package/dist/namespaces/mirror.d.ts.map +1 -1
  35. package/dist/namespaces/player.d.ts +14 -36
  36. package/dist/namespaces/player.d.ts.map +1 -1
  37. package/dist/namespaces/playlist.d.ts +11 -35
  38. package/dist/namespaces/playlist.d.ts.map +1 -1
  39. package/dist/namespaces/scrobble.d.ts +7 -38
  40. package/dist/namespaces/scrobble.d.ts.map +1 -1
  41. package/dist/namespaces/shout.d.ts +12 -33
  42. package/dist/namespaces/shout.d.ts.map +1 -1
  43. package/dist/namespaces/song.d.ts +9 -43
  44. package/dist/namespaces/song.d.ts.map +1 -1
  45. package/dist/namespaces/spotify.d.ts +9 -12
  46. package/dist/namespaces/spotify.d.ts.map +1 -1
  47. package/dist/namespaces/stats.d.ts +5 -9
  48. package/dist/namespaces/stats.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/src/client.ts +50 -33
  51. package/src/generated/types.ts +2143 -0
  52. package/src/http.ts +5 -5
  53. package/src/index.ts +17 -17
  54. package/src/namespaces/_helpers.ts +23 -13
  55. package/src/namespaces/actor.ts +37 -33
  56. package/src/namespaces/album.ts +14 -14
  57. package/src/namespaces/apikey.ts +18 -18
  58. package/src/namespaces/artist.ts +26 -32
  59. package/src/namespaces/charts.ts +15 -24
  60. package/src/namespaces/dropbox.ts +19 -13
  61. package/src/namespaces/feed.ts +42 -36
  62. package/src/namespaces/googledrive.ts +15 -10
  63. package/src/namespaces/graph.ts +24 -25
  64. package/src/namespaces/like.ts +17 -11
  65. package/src/namespaces/mirror.ts +8 -12
  66. package/src/namespaces/player.ts +44 -46
  67. package/src/namespaces/playlist.ts +34 -24
  68. package/src/namespaces/scrobble.ts +14 -40
  69. package/src/namespaces/shout.ts +36 -27
  70. package/src/namespaces/song.ts +27 -48
  71. package/src/namespaces/spotify.ts +19 -15
  72. package/src/namespaces/stats.ts +11 -7
  73. package/src/pipe.ts +1 -1
  74. package/src/realtime.ts +2 -2
@@ -1 +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"}
1
+ {"version":3,"file":"googledrive.d.ts","sourceRoot":"","sources":["../../src/namespaces/googledrive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,cAAc;IAQpD,QAAQ,CACN,MAAM,GAAE,cAAmB,EAC3B,IAAI,CAAC,EAAE,cAAc;IASvB,YAAY,CACV,MAAM,EAAE,kBAAkB,EAC1B,IAAI,CAAC,EAAE,cAAc;CAQxB"}
@@ -1,28 +1,15 @@
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
- };
1
+ import type { FollowAccountParams, GetFollowersParams, GetFollowsParams, GetKnownFollowersParams, UnfollowAccountParams } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
4
+ export type FollowListParams = GetFollowersParams;
5
+ export type KnownFollowersParams = GetKnownFollowersParams;
15
6
  export declare class GraphNamespace {
16
7
  private readonly call;
17
8
  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>;
9
+ followAccount(params: FollowAccountParams, opts?: RequestOptions): Promise<import("../generated/types.js").FollowAccountOutput>;
10
+ unfollowAccount(params: UnfollowAccountParams, opts?: RequestOptions): Promise<import("../generated/types.js").UnfollowAccountOutput>;
11
+ getFollowers(params: GetFollowersParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetFollowersOutput>;
12
+ getFollows(params: GetFollowsParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetFollowsOutput>;
13
+ getKnownFollowers(params: GetKnownFollowersParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetKnownFollowersOutput>;
27
14
  }
28
15
  //# sourceMappingURL=graph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/namespaces/graph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAA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D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAClD,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAE3D,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,aAAa,CACX,MAAM,EAAE,mBAAmB,EAC3B,IAAI,CAAC,EAAE,cAAc;IASvB,eAAe,CACb,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,cAAc;IASvB,YAAY,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO9D,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO1D,iBAAiB,CACf,MAAM,EAAE,uBAAuB,EAC/B,IAAI,CAAC,EAAE,cAAc;CAOxB"}
@@ -1,14 +1,13 @@
1
- import type { Call } from "./_helpers";
2
- import type { RequestOptions } from "../types";
3
- export type LikeInput = {
4
- uri?: string;
5
- };
1
+ import type { DislikeShoutInput, DislikeSongInput, LikeShoutInput, LikeSongInput } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
4
+ export type LikeInput = LikeSongInput;
6
5
  export declare class LikeNamespace {
7
6
  private readonly call;
8
7
  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>;
8
+ likeSong(input?: LikeSongInput, opts?: RequestOptions): Promise<import("../generated/types.js").SongViewDetailed>;
9
+ dislikeSong(input?: DislikeSongInput, opts?: RequestOptions): Promise<import("../generated/types.js").SongViewDetailed>;
10
+ likeShout(input?: LikeShoutInput, opts?: RequestOptions): Promise<import("../generated/types.js").ShoutView>;
11
+ dislikeShout(input?: DislikeShoutInput, opts?: RequestOptions): Promise<import("../generated/types.js").ShoutView>;
13
12
  }
14
13
  //# sourceMappingURL=like.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"like.d.ts","sourceRoot":"","sources":["../../src/namespaces/like.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC;AAEtC,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,QAAQ,CAAC,KAAK,GAAE,aAAkB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQzD,WAAW,CAAC,KAAK,GAAE,gBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ/D,SAAS,CAAC,KAAK,GAAE,cAAmB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ3D,YAAY,CAAC,KAAK,GAAE,iBAAsB,EAAE,IAAI,CAAC,EAAE,cAAc;CAOlE"}
@@ -1,15 +1,11 @@
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
- };
1
+ import type { PutMirrorSourceInput } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
4
+ export type { PutMirrorSourceInput };
9
5
  export declare class MirrorNamespace {
10
6
  private readonly call;
11
7
  constructor(call: Call);
12
- getMirrorSources<T = unknown>(opts?: RequestOptions): Promise<T>;
13
- putMirrorSource<T = unknown>(input: PutMirrorSourceInput, opts?: RequestOptions): Promise<T>;
8
+ getMirrorSources(opts?: RequestOptions): Promise<import("../generated/types.js").GetMirrorSourcesOutput>;
9
+ putMirrorSource(input: PutMirrorSourceInput, opts?: RequestOptions): Promise<import("../generated/types.js").MirrorSourceView>;
14
10
  }
15
11
  //# sourceMappingURL=mirror.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"mirror.d.ts","sourceRoot":"","sources":["../../src/namespaces/mirror.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,gBAAgB,CAAC,IAAI,CAAC,EAAE,cAAc;IAOtC,eAAe,CACb,KAAK,EAAE,oBAAoB,EAC3B,IAAI,CAAC,EAAE,cAAc;CAQxB"}
@@ -1,41 +1,19 @@
1
- import type { Call } from "./_helpers";
2
- import type { RequestOptions } from "../types";
3
- type PlayerId = {
4
- playerId?: string;
5
- };
1
+ import type { AddDirectoryToQueueParams, AddItemsToQueueParams, GetCurrentlyPlayingParams, GetPlaybackQueueParams, NextParams, PauseParams, PlayDirectoryParams, PlayFileParams, PlayParams, PreviousParams, SeekParams } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
6
4
  export declare class PlayerNamespace {
7
5
  private readonly call;
8
6
  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>;
7
+ getCurrentlyPlaying(params?: GetCurrentlyPlayingParams, opts?: RequestOptions): Promise<import("../generated/types.js").PlayerCurrentlyPlayingViewDetailed>;
8
+ getPlaybackQueue(params?: GetPlaybackQueueParams, opts?: RequestOptions): Promise<import("../generated/types.js").PlayerPlaybackQueueViewDetailed>;
9
+ play(params?: PlayParams, opts?: RequestOptions): Promise<void>;
10
+ pause(params?: PauseParams, opts?: RequestOptions): Promise<void>;
11
+ next(params?: NextParams, opts?: RequestOptions): Promise<void>;
12
+ previous(params?: PreviousParams, opts?: RequestOptions): Promise<void>;
13
+ seek(params: SeekParams, opts?: RequestOptions): Promise<void>;
14
+ playFile(params: PlayFileParams, opts?: RequestOptions): Promise<void>;
15
+ playDirectory(params: PlayDirectoryParams, opts?: RequestOptions): Promise<void>;
16
+ addItemsToQueue(params: AddItemsToQueueParams, opts?: RequestOptions): Promise<void>;
17
+ addDirectoryToQueue(params: AddDirectoryToQueueParams, opts?: RequestOptions): Promise<void>;
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,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,KAAK,QAAQ,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAC7B,MAAM,GAAE,QAAQ,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,EAC1C,IAAI,CAAC,EAAE,cAAc;IAQvB,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAC1B,MAAM,GAAE,QAAa,EACrB,IAAI,CAAC,EAAE,cAAc;IAQvB,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,QAAa,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ9D,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,QAAa,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ/D,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,QAAa,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ9D,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,GAAE,QAAa,EAAE,IAAI,CAAC,EAAE,cAAc;IAQlE,IAAI,CAAC,CAAC,GAAG,OAAO,EACd,MAAM,EAAE,QAAQ,GAA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,CAAC;AAE1C,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,mBAAmB,CACjB,MAAM,GAAE,yBAA8B,EACtC,IAAI,CAAC,EAAE,cAAc;IAQvB,gBAAgB,CACd,MAAM,GAAE,sBAA2B,EACnC,IAAI,CAAC,EAAE,cAAc;IAQvB,IAAI,CAAC,MAAM,GAAE,UAAe,EAAE,IAAI,CAAC,EAAE,cAAc;IAQnD,KAAK,CAAC,MAAM,GAAE,WAAgB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQrD,IAAI,CAAC,MAAM,GAAE,UAAe,EAAE,IAAI,CAAC,EAAE,cAAc;IAQnD,QAAQ,CAAC,MAAM,GAAE,cAAmB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQ3D,IAAI,CACF,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,cAAc;IASvB,QAAQ,CACN,MAAM,EAAE,cAAc,EACtB,IAAI,CAAC,EAAE,cAAc;IASvB,aAAa,CACX,MAAM,EAAE,mBAAmB,EAC3B,IAAI,CAAC,EAAE,cAAc;IASvB,eAAe,CACb,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,cAAc;IASvB,mBAAmB,CACjB,MAAM,EAAE,yBAAyB,EACjC,IAAI,CAAC,EAAE,cAAc;CAOxB"}
@@ -1,40 +1,16 @@
1
- import type { Call } from "./_helpers";
2
- import type { RequestOptions } from "../types";
1
+ import type { CreatePlaylistParams, GetPlaylistParams, GetPlaylistsParams, InsertDirectoryParams, InsertFilesParams, RemovePlaylistParams, RemoveTrackParams, StartPlaylistParams } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
3
4
  export declare class PlaylistNamespace {
4
5
  private readonly call;
5
6
  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>;
7
+ getPlaylists(params?: GetPlaylistsParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetPlaylistsOutput>;
8
+ getPlaylist(params: GetPlaylistParams, opts?: RequestOptions): Promise<import("../generated/types.js").PlaylistViewDetailed>;
9
+ createPlaylist(params: CreatePlaylistParams, opts?: RequestOptions): Promise<void>;
10
+ removePlaylist(params: RemovePlaylistParams, opts?: RequestOptions): Promise<void>;
11
+ startPlaylist(params: StartPlaylistParams, opts?: RequestOptions): Promise<void>;
12
+ insertDirectory(params: InsertDirectoryParams, opts?: RequestOptions): Promise<void>;
13
+ insertFiles(params: InsertFilesParams, opts?: RequestOptions): Promise<void>;
14
+ removeTrack(params: RemoveTrackParams, opts?: RequestOptions): Promise<void>;
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,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CA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Ac;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"}
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,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,YAAY,CACV,MAAM,GAAE,kBAAuB,EAC/B,IAAI,CAAC,EAAE,cAAc;IAQvB,WAAW,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO5D,cAAc,CACZ,MAAM,EAAE,oBAAoB,EAC5B,IAAI,CAAC,EAAE,cAAc;IASvB,cAAc,CAAC,MAAM,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,cAAc;IAQlE,aAAa,CACX,MAAM,EAAE,mBAAmB,EAC3B,IAAI,CAAC,EAAE,cAAc;IASvB,eAAe,CACb,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CACT,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CACT,MAAM,EAAE,iBAAiB,EACzB,IAAI,CAAC,EAAE,cAAc;CAOxB"}
@@ -1,43 +1,12 @@
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
- };
1
+ import type { CreateScrobbleInput, GetScrobbleParams, GetScrobblesParams } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
4
+ export type { CreateScrobbleInput, GetScrobblesParams };
34
5
  export declare class ScrobbleNamespace {
35
6
  private readonly call;
36
7
  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>;
8
+ createScrobble(input: CreateScrobbleInput, opts?: RequestOptions): Promise<import("../generated/types.js").ScrobbleViewBasic>;
9
+ getScrobble(params: GetScrobbleParams, opts?: RequestOptions): Promise<import("../generated/types.js").ScrobbleViewDetailed>;
10
+ getScrobbles(params?: GetScrobblesParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetScrobblesOutput>;
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,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK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AmB,EAC1B,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;IAOvE,YAAY,CAAC,CAAC,GAAG,OAAO,EACtB,MAAM,GAAE,kBAAuB,EAC/B,IAAI,CAAC,EAAE,cAAc;CAOxB"}
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,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;AAExD,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,cAAc,CACZ,KAAK,EAAE,mBAAmB,EAC1B,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO5D,YAAY,CACV,MAAM,GAAE,kBAAuB,EAC/B,IAAI,CAAC,EAAE,cAAc;CAOxB"}
@@ -1,38 +1,17 @@
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
- };
1
+ import type { CreateShoutInput, GetAlbumShoutsParams, GetArtistShoutsParams, GetProfileShoutsParams, GetShoutRepliesParams, GetTrackShoutsParams, RemoveShoutParams, ReplyShoutInput, ReportShoutInput } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
8
4
  export declare class ShoutNamespace {
9
5
  private readonly call;
10
6
  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>;
7
+ createShout(input?: CreateShoutInput, opts?: RequestOptions): Promise<import("../generated/types.js").ShoutView>;
8
+ replyShout(input: ReplyShoutInput, opts?: RequestOptions): Promise<import("../generated/types.js").ShoutView>;
9
+ reportShout(input: ReportShoutInput, opts?: RequestOptions): Promise<import("../generated/types.js").ShoutView>;
10
+ removeShout(params: RemoveShoutParams, opts?: RequestOptions): Promise<import("../generated/types.js").ShoutView>;
11
+ getShoutReplies(params: GetShoutRepliesParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetShoutRepliesOutput>;
12
+ getProfileShouts(params: GetProfileShoutsParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetProfileShoutsOutput>;
13
+ getTrackShouts(params: GetTrackShoutsParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetTrackShoutsOutput>;
14
+ getArtistShouts(params: GetArtistShoutsParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetArtistShoutsOutput>;
15
+ getAlbumShouts(params: GetAlbumShoutsParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetAlbumShoutsOutput>;
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,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,KAAK,OAAO,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,KAAK,GAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAO,EAChC,IAAI,CAAC,EAAE,cAAc;IASvB,UAAU,CAAC,CAAC,GAAG,OAAO,EACpB,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAC3C,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EACrB,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAC3C,IAAI,CAAC,EAAE,cAAc;IASvB,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,cAAc;IAQtE,eAAe,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc;IAOnE,gBAAgB,CAAC,CAAC,GAAG,OAAO,EAC1B,MAAM,EAAE;QAAE,GAAG,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B,CACd,MAAM,EAAE,sBAAsB,EAC9B,IAAI,CAAC,EAAE,cAAc;IAQvB,cAAc,CACZ,MAAM,EAAE,oBAAoB,EAC5B,IAAI,CAAC,EAAE,cAAc;IAQvB,eAAe,CAAC,MAAM,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc;IAOpE,cAAc,CAAC,MAAM,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,cAAc;CAMnE"}
@@ -1,48 +1,14 @@
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
- };
1
+ import type { CreateSongInput, GetSongParams, GetSongRecentListenersParams, GetSongsParams, MatchSongParams } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
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
- 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>;
8
+ getSong(params: GetSongParams, opts?: RequestOptions): Promise<import("../generated/types.js").SongViewDetailed>;
9
+ getSongs(params?: GetSongsParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetSongsOutput>;
10
+ getSongRecentListeners(params: GetSongRecentListenersParams, opts?: RequestOptions): Promise<import("../generated/types.js").GetSongRecentListenersOutput>;
11
+ matchSong(params: MatchSongParams, opts?: RequestOptions): Promise<import("../generated/types.js").SongViewDetailed>;
12
+ createSong(input: CreateSongInput, opts?: RequestOptions): Promise<import("../generated/types.js").SongViewDetailed>;
47
13
  }
48
14
  //# sourceMappingURL=song.d.ts.map
@@ -1 +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,MAA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uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,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,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,cAAc;IAOpD,QAAQ,CAAC,MAAM,GAAE,cAAmB,EAAE,IAAI,CAAC,EAAE,cAAc;IAO3D,sBAAsB,CACpB,MAAM,EAAE,4BAA4B,EACpC,IAAI,CAAC,EAAE,cAAc;IAQvB,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc;IAOxD,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc;CAOzD"}
@@ -1,17 +1,14 @@
1
- import type { Call } from "./_helpers";
2
- import type { RequestOptions } from "../types";
1
+ import type { GetCurrentlyPlayingParams, SeekParams } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
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>;
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>;
7
+ getCurrentlyPlaying(params?: GetCurrentlyPlayingParams, opts?: RequestOptions): Promise<import("../generated/types.js").PlayerCurrentlyPlayingViewDetailed>;
8
+ play(opts?: RequestOptions): Promise<void>;
9
+ pause(opts?: RequestOptions): Promise<void>;
10
+ next(opts?: RequestOptions): Promise<void>;
11
+ previous(opts?: RequestOptions): Promise<void>;
12
+ seek(params: SeekParams, opts?: RequestOptions): Promise<void>;
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,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"}
1
+ {"version":3,"file":"spotify.d.ts","sourceRoot":"","sources":["../../src/namespaces/spotify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,mBAAmB,CACjB,MAAM,GAAE,yBAA8B,EACtC,IAAI,CAAC,EAAE,cAAc;IAQvB,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc;IAO1B,KAAK,CAAC,IAAI,CAAC,EAAE,cAAc;IAO3B,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc;IAO1B,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc;IAO9B,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,cAAc;CAO/C"}
@@ -1,14 +1,10 @@
1
- import type { Call } from "./_helpers";
2
- import type { RequestOptions } from "../types";
1
+ import type { GetStatsParams, GetWrappedParams } from "../generated/types.js";
2
+ import type { RequestOptions } from "../types.js";
3
+ import type { Call } from "./_helpers.js";
3
4
  export declare class StatsNamespace {
4
5
  private readonly call;
5
6
  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>;
7
+ getStats(params: GetStatsParams, opts?: RequestOptions): Promise<import("../generated/types.js").StatsView>;
8
+ getWrapped(params: GetWrappedParams, opts?: RequestOptions): Promise<import("../generated/types.js").StatsWrappedView>;
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,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"}
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/namespaces/stats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,IAAI;IAEvC,QAAQ,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,cAAc;IAOtD,UAAU,CACR,MAAM,EAAE,gBAAgB,EACxB,IAAI,CAAC,EAAE,cAAc;CAOxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocksky/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "TypeScript SDK for the Rocksky XRPC API",
5
5
  "license": "MIT",
6
6
  "repository": {