@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.
Files changed (65) hide show
  1. package/README.md +5 -0
  2. package/dist/generated/types.d.ts +1812 -0
  3. package/dist/generated/types.d.ts.map +1 -0
  4. package/dist/http.d.ts +2 -2
  5. package/dist/http.d.ts.map +1 -1
  6. package/dist/namespaces/_helpers.d.ts +1 -1
  7. package/dist/namespaces/_helpers.d.ts.map +1 -1
  8. package/dist/namespaces/actor.d.ts +13 -23
  9. package/dist/namespaces/actor.d.ts.map +1 -1
  10. package/dist/namespaces/album.d.ts +5 -11
  11. package/dist/namespaces/album.d.ts.map +1 -1
  12. package/dist/namespaces/apikey.d.ts +4 -17
  13. package/dist/namespaces/apikey.d.ts.map +1 -1
  14. package/dist/namespaces/artist.d.ts +8 -23
  15. package/dist/namespaces/artist.d.ts.map +1 -1
  16. package/dist/namespaces/charts.d.ts +6 -18
  17. package/dist/namespaces/charts.d.ts.map +1 -1
  18. package/dist/namespaces/dropbox.d.ts +6 -13
  19. package/dist/namespaces/dropbox.d.ts.map +1 -1
  20. package/dist/namespaces/feed.d.ts +12 -31
  21. package/dist/namespaces/feed.d.ts.map +1 -1
  22. package/dist/namespaces/googledrive.d.ts +5 -10
  23. package/dist/namespaces/googledrive.d.ts.map +1 -1
  24. package/dist/namespaces/graph.d.ts +9 -22
  25. package/dist/namespaces/graph.d.ts.map +1 -1
  26. package/dist/namespaces/like.d.ts +7 -8
  27. package/dist/namespaces/like.d.ts.map +1 -1
  28. package/dist/namespaces/mirror.d.ts +3 -7
  29. package/dist/namespaces/mirror.d.ts.map +1 -1
  30. package/dist/namespaces/player.d.ts +13 -35
  31. package/dist/namespaces/player.d.ts.map +1 -1
  32. package/dist/namespaces/playlist.d.ts +10 -34
  33. package/dist/namespaces/playlist.d.ts.map +1 -1
  34. package/dist/namespaces/scrobble.d.ts +4 -35
  35. package/dist/namespaces/scrobble.d.ts.map +1 -1
  36. package/dist/namespaces/shout.d.ts +11 -32
  37. package/dist/namespaces/shout.d.ts.map +1 -1
  38. package/dist/namespaces/song.d.ts +4 -38
  39. package/dist/namespaces/song.d.ts.map +1 -1
  40. package/dist/namespaces/spotify.d.ts +4 -7
  41. package/dist/namespaces/spotify.d.ts.map +1 -1
  42. package/dist/namespaces/stats.d.ts +4 -8
  43. package/dist/namespaces/stats.d.ts.map +1 -1
  44. package/package.json +1 -1
  45. package/src/generated/types.ts +2019 -0
  46. package/src/http.ts +3 -3
  47. package/src/namespaces/_helpers.ts +1 -1
  48. package/src/namespaces/actor.ts +23 -19
  49. package/src/namespaces/album.ts +9 -9
  50. package/src/namespaces/apikey.ts +9 -9
  51. package/src/namespaces/artist.ts +15 -21
  52. package/src/namespaces/charts.ts +10 -19
  53. package/src/namespaces/dropbox.ts +11 -5
  54. package/src/namespaces/feed.ts +22 -16
  55. package/src/namespaces/googledrive.ts +9 -4
  56. package/src/namespaces/graph.ts +15 -16
  57. package/src/namespaces/like.ts +12 -6
  58. package/src/namespaces/mirror.ts +3 -7
  59. package/src/namespaces/player.ts +25 -27
  60. package/src/namespaces/playlist.ts +19 -9
  61. package/src/namespaces/scrobble.ts +8 -34
  62. package/src/namespaces/shout.ts +21 -12
  63. package/src/namespaces/song.ts +15 -36
  64. package/src/namespaces/spotify.ts +7 -3
  65. package/src/namespaces/stats.ts +7 -3
@@ -1,41 +1,19 @@
1
- import type { Call } from "./_helpers";
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 PlayerId = {
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?: 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<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,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,GAAG;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ertFilesParams, 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
- 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<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,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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Ac;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 { Call } from "./_helpers";
1
+ import type { CreateScrobbleInput, GetScrobbleParams, GetScrobblesParams } from "../generated/types";
2
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
- };
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,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,CAAC;IACf,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;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,CAAC,EAAE,MA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CAOxB"}
@@ -1,38 +1,17 @@
1
- import type { Call } from "./_helpers";
1
+ import type { CreateShoutInput, GetAlbumShoutsParams, GetArtistShoutsParams, GetProfileShoutsParams, GetShoutRepliesParams, GetTrackShoutsParams, RemoveShoutParams, ReplyShoutInput, ReportShoutInput } from "../generated/types";
2
2
  import type { RequestOptions } from "../types";
3
- type UriPage = {
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
- 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<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,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;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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 { Call } from "./_helpers";
1
+ import type { CreateSongInput, GetSongParams, GetSongRecentListenersParams, GetSongsParams, MatchSongParams } from "../generated/types";
2
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
- };
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,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,M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":"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 { Call } from "./_helpers";
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,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,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 { Call } from "./_helpers";
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
- 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<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,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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocksky/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript SDK for the Rocksky XRPC API",
5
5
  "license": "MIT",
6
6
  "repository": {