@saavn-labs/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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +339 -0
  3. package/dist/core/models/album.d.ts +32 -0
  4. package/dist/core/models/album.js +1 -0
  5. package/dist/core/models/artist.d.ts +61 -0
  6. package/dist/core/models/artist.js +1 -0
  7. package/dist/core/models/index.d.ts +4 -0
  8. package/dist/core/models/index.js +4 -0
  9. package/dist/core/models/playlist.d.ts +35 -0
  10. package/dist/core/models/playlist.js +1 -0
  11. package/dist/core/models/song.d.ts +52 -0
  12. package/dist/core/models/song.js +1 -0
  13. package/dist/core/modules/album.module.d.ts +82 -0
  14. package/dist/core/modules/album.module.js +74 -0
  15. package/dist/core/modules/artist.module.d.ts +97 -0
  16. package/dist/core/modules/artist.module.js +49 -0
  17. package/dist/core/modules/extras.module.d.ts +385 -0
  18. package/dist/core/modules/extras.module.js +64 -0
  19. package/dist/core/modules/playlist.module.d.ts +79 -0
  20. package/dist/core/modules/playlist.module.js +74 -0
  21. package/dist/core/modules/song.module.d.ts +91 -0
  22. package/dist/core/modules/song.module.js +97 -0
  23. package/dist/helpers/errors.d.ts +25 -0
  24. package/dist/helpers/errors.js +84 -0
  25. package/dist/helpers/experimental/stream-urls/index.d.ts +20 -0
  26. package/dist/helpers/experimental/stream-urls/index.js +33 -0
  27. package/dist/helpers/experimental/stream-urls/stream-urls.edge.d.ts +4 -0
  28. package/dist/helpers/experimental/stream-urls/stream-urls.edge.js +38 -0
  29. package/dist/helpers/experimental/stream-urls/stream-urls.node.d.ts +4 -0
  30. package/dist/helpers/experimental/stream-urls/stream-urls.node.js +27 -0
  31. package/dist/helpers/fetch.d.ts +38 -0
  32. package/dist/helpers/fetch.js +38 -0
  33. package/dist/helpers/utils.d.ts +13 -0
  34. package/dist/helpers/utils.js +58 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +8 -0
  37. package/dist/saavn/common-mapper.d.ts +77 -0
  38. package/dist/saavn/common-mapper.js +348 -0
  39. package/dist/saavn/entities/album.entity.d.ts +151 -0
  40. package/dist/saavn/entities/album.entity.js +25 -0
  41. package/dist/saavn/entities/artist.entity.d.ts +274 -0
  42. package/dist/saavn/entities/artist.entity.js +49 -0
  43. package/dist/saavn/entities/base.d.ts +117 -0
  44. package/dist/saavn/entities/base.js +71 -0
  45. package/dist/saavn/entities/extras.d.ts +102 -0
  46. package/dist/saavn/entities/extras.js +43 -0
  47. package/dist/saavn/entities/index.d.ts +6 -0
  48. package/dist/saavn/entities/index.js +6 -0
  49. package/dist/saavn/entities/playlist.entity.d.ts +143 -0
  50. package/dist/saavn/entities/playlist.entity.js +55 -0
  51. package/dist/saavn/entities/show.entity.d.ts +14 -0
  52. package/dist/saavn/entities/show.entity.js +14 -0
  53. package/dist/saavn/entities/song.entity.d.ts +142 -0
  54. package/dist/saavn/entities/song.entity.js +48 -0
  55. package/dist/saavn/operations/get-details/index.d.ts +755 -0
  56. package/dist/saavn/operations/get-details/index.js +34 -0
  57. package/dist/saavn/operations/get-details/mapper.ops.d.ts +35 -0
  58. package/dist/saavn/operations/get-details/mapper.ops.js +55 -0
  59. package/dist/saavn/operations/get-details/schema.ops.d.ts +706 -0
  60. package/dist/saavn/operations/get-details/schema.ops.js +49 -0
  61. package/dist/saavn/operations/get-reco/index.d.ts +144 -0
  62. package/dist/saavn/operations/get-reco/index.js +19 -0
  63. package/dist/saavn/operations/get-reco/mapper.ops.d.ts +36 -0
  64. package/dist/saavn/operations/get-reco/mapper.ops.js +43 -0
  65. package/dist/saavn/operations/get-reco/schema.ops.d.ts +103 -0
  66. package/dist/saavn/operations/get-reco/schema.ops.js +28 -0
  67. package/dist/saavn/operations/get-trending/index.d.ts +288 -0
  68. package/dist/saavn/operations/get-trending/index.js +24 -0
  69. package/dist/saavn/operations/get-trending/mapper.ops.d.ts +13 -0
  70. package/dist/saavn/operations/get-trending/mapper.ops.js +134 -0
  71. package/dist/saavn/operations/get-trending/schema.ops.d.ts +272 -0
  72. package/dist/saavn/operations/get-trending/schema.ops.js +34 -0
  73. package/dist/saavn/operations/index.d.ts +6 -0
  74. package/dist/saavn/operations/index.js +6 -0
  75. package/dist/saavn/operations/search-results/index.d.ts +790 -0
  76. package/dist/saavn/operations/search-results/index.js +29 -0
  77. package/dist/saavn/operations/search-results/mapper.ops.d.ts +413 -0
  78. package/dist/saavn/operations/search-results/mapper.ops.js +80 -0
  79. package/dist/saavn/operations/search-results/schema.ops.d.ts +366 -0
  80. package/dist/saavn/operations/search-results/schema.ops.js +101 -0
  81. package/dist/saavn/operations/web-api/index.d.ts +604 -0
  82. package/dist/saavn/operations/web-api/index.js +29 -0
  83. package/dist/saavn/operations/web-api/mapper.ops.d.ts +11 -0
  84. package/dist/saavn/operations/web-api/mapper.ops.js +23 -0
  85. package/dist/saavn/operations/web-api/schema.ops.d.ts +582 -0
  86. package/dist/saavn/operations/web-api/schema.ops.js +50 -0
  87. package/dist/saavn/operations/web-radio/index.d.ts +181 -0
  88. package/dist/saavn/operations/web-radio/index.js +19 -0
  89. package/dist/saavn/operations/web-radio/mapper.ops.d.ts +14 -0
  90. package/dist/saavn/operations/web-radio/mapper.ops.js +35 -0
  91. package/dist/saavn/operations/web-radio/schema.ops.d.ts +162 -0
  92. package/dist/saavn/operations/web-radio/schema.ops.js +56 -0
  93. package/dist/saavn/primitives/enums.d.ts +17 -0
  94. package/dist/saavn/primitives/enums.js +4 -0
  95. package/dist/saavn/primitives/string.d.ts +5 -0
  96. package/dist/saavn/primitives/string.js +22 -0
  97. package/dist/saavn/run-operation.d.ts +12 -0
  98. package/dist/saavn/run-operation.js +39 -0
  99. package/dist/schemas/index.d.ts +2188 -0
  100. package/dist/schemas/index.js +14 -0
  101. package/dist/types.d.ts +24 -0
  102. package/dist/types.js +1 -0
  103. package/package.json +82 -0
@@ -0,0 +1,706 @@
1
+ import { z } from 'zod';
2
+ export declare const SaavnGetDetailsSchema: {
3
+ readonly album: {
4
+ readonly params: z.ZodObject<{
5
+ albumid: z.ZodString;
6
+ }, z.core.$strict>;
7
+ readonly response: z.ZodLazy<z.ZodObject<{
8
+ id: z.ZodString;
9
+ title: z.ZodString;
10
+ subtitle: z.ZodString;
11
+ type: z.ZodLiteral<"album">;
12
+ image: z.ZodString;
13
+ perma_url: z.ZodString;
14
+ explicit_content: z.ZodString;
15
+ header_desc: z.ZodString;
16
+ play_count: z.ZodString;
17
+ language: z.ZodString;
18
+ year: z.ZodString;
19
+ list_count: z.ZodString;
20
+ list_type: z.ZodLiteral<"song">;
21
+ list: z.ZodArray<z.ZodLazy<z.ZodObject<{
22
+ id: z.ZodString;
23
+ title: z.ZodString;
24
+ subtitle: z.ZodString;
25
+ type: z.ZodLiteral<"song">;
26
+ perma_url: z.ZodString;
27
+ image: z.ZodString;
28
+ explicit_content: z.ZodString;
29
+ header_desc: z.ZodString;
30
+ language: z.ZodString;
31
+ year: z.ZodString;
32
+ play_count: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
33
+ more_info: z.ZodObject<{
34
+ music: z.ZodString;
35
+ album_id: z.ZodString;
36
+ album: z.ZodString;
37
+ label: z.ZodString;
38
+ label_id: z.ZodNullable<z.ZodString>;
39
+ origin: z.ZodString;
40
+ is_dolby_content: z.ZodBoolean;
41
+ encrypted_media_url: z.ZodString;
42
+ encrypted_drm_media_url: z.ZodString;
43
+ album_url: z.ZodString;
44
+ duration: z.ZodString;
45
+ has_lyrics: z.ZodString;
46
+ lyrics_snippet: z.ZodString;
47
+ lyrics_id: z.ZodOptional<z.ZodString>;
48
+ copyright_text: z.ZodString;
49
+ release_date: z.ZodNullable<z.ZodString>;
50
+ label_url: z.ZodOptional<z.ZodString>;
51
+ vcode: z.ZodOptional<z.ZodString>;
52
+ vlink: z.ZodOptional<z.ZodString>;
53
+ artistMap: z.ZodLazy<z.ZodObject<{
54
+ primary_artists: z.ZodArray<z.ZodObject<{
55
+ id: z.ZodString;
56
+ name: z.ZodString;
57
+ role: z.ZodString;
58
+ image: z.ZodString;
59
+ type: z.ZodLiteral<"artist">;
60
+ perma_url: z.ZodString;
61
+ }, z.core.$loose>>;
62
+ featured_artists: z.ZodArray<z.ZodObject<{
63
+ id: z.ZodString;
64
+ name: z.ZodString;
65
+ role: z.ZodString;
66
+ image: z.ZodString;
67
+ type: z.ZodLiteral<"artist">;
68
+ perma_url: z.ZodString;
69
+ }, z.core.$loose>>;
70
+ artists: z.ZodArray<z.ZodObject<{
71
+ id: z.ZodString;
72
+ name: z.ZodString;
73
+ role: z.ZodString;
74
+ image: z.ZodString;
75
+ type: z.ZodLiteral<"artist">;
76
+ perma_url: z.ZodString;
77
+ }, z.core.$loose>>;
78
+ }, z.core.$loose>>;
79
+ }, z.core.$loose>;
80
+ }, z.core.$loose>>>;
81
+ more_info: z.ZodObject<{
82
+ song_count: z.ZodString;
83
+ copyright_text: z.ZodString;
84
+ is_dolby_content: z.ZodBoolean;
85
+ label_url: z.ZodString;
86
+ artistMap: z.ZodObject<{
87
+ primary_artists: z.ZodArray<z.ZodObject<{
88
+ id: z.ZodString;
89
+ name: z.ZodString;
90
+ role: z.ZodString;
91
+ image: z.ZodString;
92
+ type: z.ZodLiteral<"artist">;
93
+ perma_url: z.ZodString;
94
+ }, z.core.$loose>>;
95
+ featured_artists: z.ZodArray<z.ZodObject<{
96
+ id: z.ZodString;
97
+ name: z.ZodString;
98
+ role: z.ZodString;
99
+ image: z.ZodString;
100
+ type: z.ZodLiteral<"artist">;
101
+ perma_url: z.ZodString;
102
+ }, z.core.$loose>>;
103
+ artists: z.ZodArray<z.ZodObject<{
104
+ id: z.ZodString;
105
+ name: z.ZodString;
106
+ role: z.ZodString;
107
+ image: z.ZodString;
108
+ type: z.ZodLiteral<"artist">;
109
+ perma_url: z.ZodString;
110
+ }, z.core.$loose>>;
111
+ }, z.core.$loose>;
112
+ }, z.core.$loose>;
113
+ }, z.core.$loose>>;
114
+ };
115
+ readonly artist: {
116
+ readonly params: z.ZodObject<{
117
+ artistId: z.ZodString;
118
+ n_song: z.ZodOptional<z.ZodString>;
119
+ n_album: z.ZodOptional<z.ZodString>;
120
+ category: z.ZodOptional<z.ZodEnum<{
121
+ "": "";
122
+ alphabetical: "alphabetical";
123
+ latest: "latest";
124
+ }>>;
125
+ sort_order: z.ZodOptional<z.ZodEnum<{
126
+ asc: "asc";
127
+ desc: "desc";
128
+ }>>;
129
+ }, z.core.$strict>;
130
+ readonly response: z.ZodLazy<z.ZodObject<{
131
+ type: z.ZodLiteral<"artist">;
132
+ image: z.ZodString;
133
+ name: z.ZodString;
134
+ artistId: z.ZodString;
135
+ subtitle: z.ZodString;
136
+ follower_count: z.ZodString;
137
+ isVerified: z.ZodBoolean;
138
+ isRadioPresent: z.ZodBoolean;
139
+ dominantLanguage: z.ZodString;
140
+ dominantType: z.ZodString;
141
+ bio: z.ZodString;
142
+ dob: z.ZodString;
143
+ fb: z.ZodString;
144
+ twitter: z.ZodString;
145
+ wiki: z.ZodString;
146
+ availableLanguages: z.ZodArray<z.ZodString>;
147
+ fan_count: z.ZodString;
148
+ is_followed: z.ZodBoolean;
149
+ topSongs: z.ZodArray<z.ZodLazy<z.ZodObject<{
150
+ id: z.ZodString;
151
+ title: z.ZodString;
152
+ subtitle: z.ZodString;
153
+ type: z.ZodLiteral<"song">;
154
+ perma_url: z.ZodString;
155
+ image: z.ZodString;
156
+ explicit_content: z.ZodString;
157
+ header_desc: z.ZodString;
158
+ language: z.ZodString;
159
+ year: z.ZodString;
160
+ play_count: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
161
+ more_info: z.ZodObject<{
162
+ music: z.ZodString;
163
+ album_id: z.ZodString;
164
+ album: z.ZodString;
165
+ label: z.ZodString;
166
+ label_id: z.ZodNullable<z.ZodString>;
167
+ origin: z.ZodString;
168
+ is_dolby_content: z.ZodBoolean;
169
+ encrypted_media_url: z.ZodString;
170
+ encrypted_drm_media_url: z.ZodString;
171
+ album_url: z.ZodString;
172
+ duration: z.ZodString;
173
+ has_lyrics: z.ZodString;
174
+ lyrics_snippet: z.ZodString;
175
+ lyrics_id: z.ZodOptional<z.ZodString>;
176
+ copyright_text: z.ZodString;
177
+ release_date: z.ZodNullable<z.ZodString>;
178
+ label_url: z.ZodOptional<z.ZodString>;
179
+ vcode: z.ZodOptional<z.ZodString>;
180
+ vlink: z.ZodOptional<z.ZodString>;
181
+ artistMap: z.ZodLazy<z.ZodObject<{
182
+ primary_artists: z.ZodArray<z.ZodObject<{
183
+ id: z.ZodString;
184
+ name: z.ZodString;
185
+ role: z.ZodString;
186
+ image: z.ZodString;
187
+ type: z.ZodLiteral<"artist">;
188
+ perma_url: z.ZodString;
189
+ }, z.core.$loose>>;
190
+ featured_artists: z.ZodArray<z.ZodObject<{
191
+ id: z.ZodString;
192
+ name: z.ZodString;
193
+ role: z.ZodString;
194
+ image: z.ZodString;
195
+ type: z.ZodLiteral<"artist">;
196
+ perma_url: z.ZodString;
197
+ }, z.core.$loose>>;
198
+ artists: z.ZodArray<z.ZodObject<{
199
+ id: z.ZodString;
200
+ name: z.ZodString;
201
+ role: z.ZodString;
202
+ image: z.ZodString;
203
+ type: z.ZodLiteral<"artist">;
204
+ perma_url: z.ZodString;
205
+ }, z.core.$loose>>;
206
+ }, z.core.$loose>>;
207
+ }, z.core.$loose>;
208
+ }, z.core.$loose>>>;
209
+ topAlbums: z.ZodArray<z.ZodObject<{
210
+ id: z.ZodString;
211
+ title: z.ZodString;
212
+ subtitle: z.ZodString;
213
+ type: z.ZodLiteral<"album">;
214
+ image: z.ZodString;
215
+ perma_url: z.ZodString;
216
+ explicit_content: z.ZodString;
217
+ header_desc: z.ZodString;
218
+ language: z.ZodString;
219
+ year: z.ZodString;
220
+ play_count: z.ZodString;
221
+ more_info: z.ZodObject<{
222
+ query: z.ZodString;
223
+ text: z.ZodString;
224
+ music: z.ZodNullable<z.ZodString>;
225
+ song_count: z.ZodString;
226
+ artistMap: z.ZodObject<{
227
+ primary_artists: z.ZodArray<z.ZodObject<{
228
+ id: z.ZodString;
229
+ name: z.ZodString;
230
+ role: z.ZodString;
231
+ image: z.ZodString;
232
+ type: z.ZodLiteral<"artist">;
233
+ perma_url: z.ZodString;
234
+ }, z.core.$loose>>;
235
+ featured_artists: z.ZodArray<z.ZodObject<{
236
+ id: z.ZodString;
237
+ name: z.ZodString;
238
+ role: z.ZodString;
239
+ image: z.ZodString;
240
+ type: z.ZodLiteral<"artist">;
241
+ perma_url: z.ZodString;
242
+ }, z.core.$loose>>;
243
+ artists: z.ZodArray<z.ZodObject<{
244
+ id: z.ZodString;
245
+ name: z.ZodString;
246
+ role: z.ZodString;
247
+ image: z.ZodString;
248
+ type: z.ZodLiteral<"artist">;
249
+ perma_url: z.ZodString;
250
+ }, z.core.$loose>>;
251
+ }, z.core.$loose>;
252
+ }, z.core.$loose>;
253
+ }, z.core.$loose>>;
254
+ topEpisodes: z.ZodArray<z.ZodAny>;
255
+ dedicated_artist_playlist: z.ZodArray<z.ZodObject<{
256
+ id: z.ZodString;
257
+ title: z.ZodString;
258
+ subtitle: z.ZodString;
259
+ type: z.ZodLiteral<"playlist">;
260
+ image: z.ZodString;
261
+ perma_url: z.ZodString;
262
+ explicit_content: z.ZodString;
263
+ more_info: z.ZodObject<{
264
+ firstname: z.ZodString;
265
+ lastname: z.ZodOptional<z.ZodString>;
266
+ artist_name: z.ZodNullable<z.ZodArray<z.ZodString>>;
267
+ entity_type: z.ZodString;
268
+ is_dolby_content: z.ZodNullable<z.ZodBoolean>;
269
+ language: z.ZodString;
270
+ uid: z.ZodString;
271
+ song_count: z.ZodString;
272
+ }, z.core.$loose>;
273
+ }, z.core.$loose>>;
274
+ featured_artist_playlist: z.ZodArray<z.ZodObject<{
275
+ id: z.ZodString;
276
+ title: z.ZodString;
277
+ subtitle: z.ZodString;
278
+ type: z.ZodLiteral<"playlist">;
279
+ image: z.ZodString;
280
+ perma_url: z.ZodString;
281
+ explicit_content: z.ZodString;
282
+ more_info: z.ZodObject<{
283
+ firstname: z.ZodString;
284
+ lastname: z.ZodOptional<z.ZodString>;
285
+ artist_name: z.ZodNullable<z.ZodArray<z.ZodString>>;
286
+ entity_type: z.ZodString;
287
+ is_dolby_content: z.ZodNullable<z.ZodBoolean>;
288
+ language: z.ZodString;
289
+ uid: z.ZodString;
290
+ song_count: z.ZodString;
291
+ }, z.core.$loose>;
292
+ }, z.core.$loose>>;
293
+ singles: z.ZodArray<z.ZodObject<{
294
+ id: z.ZodString;
295
+ title: z.ZodString;
296
+ subtitle: z.ZodString;
297
+ type: z.ZodLiteral<"album">;
298
+ image: z.ZodString;
299
+ perma_url: z.ZodString;
300
+ explicit_content: z.ZodString;
301
+ header_desc: z.ZodString;
302
+ language: z.ZodString;
303
+ year: z.ZodString;
304
+ play_count: z.ZodString;
305
+ more_info: z.ZodObject<{
306
+ query: z.ZodString;
307
+ text: z.ZodString;
308
+ music: z.ZodNullable<z.ZodString>;
309
+ song_count: z.ZodString;
310
+ artistMap: z.ZodObject<{
311
+ primary_artists: z.ZodArray<z.ZodObject<{
312
+ id: z.ZodString;
313
+ name: z.ZodString;
314
+ role: z.ZodString;
315
+ image: z.ZodString;
316
+ type: z.ZodLiteral<"artist">;
317
+ perma_url: z.ZodString;
318
+ }, z.core.$loose>>;
319
+ featured_artists: z.ZodArray<z.ZodObject<{
320
+ id: z.ZodString;
321
+ name: z.ZodString;
322
+ role: z.ZodString;
323
+ image: z.ZodString;
324
+ type: z.ZodLiteral<"artist">;
325
+ perma_url: z.ZodString;
326
+ }, z.core.$loose>>;
327
+ artists: z.ZodArray<z.ZodObject<{
328
+ id: z.ZodString;
329
+ name: z.ZodString;
330
+ role: z.ZodString;
331
+ image: z.ZodString;
332
+ type: z.ZodLiteral<"artist">;
333
+ perma_url: z.ZodString;
334
+ }, z.core.$loose>>;
335
+ }, z.core.$loose>;
336
+ }, z.core.$loose>;
337
+ }, z.core.$loose>>;
338
+ latest_release: z.ZodArray<z.ZodObject<{
339
+ id: z.ZodString;
340
+ title: z.ZodString;
341
+ subtitle: z.ZodString;
342
+ type: z.ZodLiteral<"album">;
343
+ image: z.ZodString;
344
+ perma_url: z.ZodString;
345
+ explicit_content: z.ZodString;
346
+ header_desc: z.ZodString;
347
+ language: z.ZodString;
348
+ year: z.ZodString;
349
+ play_count: z.ZodString;
350
+ more_info: z.ZodObject<{
351
+ query: z.ZodString;
352
+ text: z.ZodString;
353
+ music: z.ZodNullable<z.ZodString>;
354
+ song_count: z.ZodString;
355
+ artistMap: z.ZodObject<{
356
+ primary_artists: z.ZodArray<z.ZodObject<{
357
+ id: z.ZodString;
358
+ name: z.ZodString;
359
+ role: z.ZodString;
360
+ image: z.ZodString;
361
+ type: z.ZodLiteral<"artist">;
362
+ perma_url: z.ZodString;
363
+ }, z.core.$loose>>;
364
+ featured_artists: z.ZodArray<z.ZodObject<{
365
+ id: z.ZodString;
366
+ name: z.ZodString;
367
+ role: z.ZodString;
368
+ image: z.ZodString;
369
+ type: z.ZodLiteral<"artist">;
370
+ perma_url: z.ZodString;
371
+ }, z.core.$loose>>;
372
+ artists: z.ZodArray<z.ZodObject<{
373
+ id: z.ZodString;
374
+ name: z.ZodString;
375
+ role: z.ZodString;
376
+ image: z.ZodString;
377
+ type: z.ZodLiteral<"artist">;
378
+ perma_url: z.ZodString;
379
+ }, z.core.$loose>>;
380
+ }, z.core.$loose>;
381
+ }, z.core.$loose>;
382
+ description: z.ZodString;
383
+ }, z.core.$loose>>;
384
+ similarArtists: z.ZodArray<z.ZodAny>;
385
+ urls: z.ZodObject<{
386
+ albums: z.ZodString;
387
+ bio: z.ZodString;
388
+ comments: z.ZodString;
389
+ songs: z.ZodString;
390
+ overview: z.ZodString;
391
+ }, z.core.$loose>;
392
+ }, z.core.$loose>>;
393
+ };
394
+ readonly playlist: {
395
+ readonly params: z.ZodObject<{
396
+ listid: z.ZodString;
397
+ p: z.ZodOptional<z.ZodString>;
398
+ n: z.ZodOptional<z.ZodString>;
399
+ }, z.core.$strict>;
400
+ readonly response: z.ZodLazy<z.ZodObject<{
401
+ id: z.ZodString;
402
+ title: z.ZodString;
403
+ subtitle: z.ZodString;
404
+ type: z.ZodLiteral<"playlist">;
405
+ image: z.ZodString;
406
+ perma_url: z.ZodString;
407
+ explicit_content: z.ZodString;
408
+ header_desc: z.ZodString;
409
+ language: z.ZodString;
410
+ year: z.ZodString;
411
+ play_count: z.ZodString;
412
+ list_count: z.ZodString;
413
+ list_type: z.ZodString;
414
+ list: z.ZodArray<z.ZodLazy<z.ZodObject<{
415
+ id: z.ZodString;
416
+ title: z.ZodString;
417
+ subtitle: z.ZodString;
418
+ type: z.ZodLiteral<"song">;
419
+ perma_url: z.ZodString;
420
+ image: z.ZodString;
421
+ explicit_content: z.ZodString;
422
+ header_desc: z.ZodString;
423
+ language: z.ZodString;
424
+ year: z.ZodString;
425
+ play_count: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
426
+ more_info: z.ZodObject<{
427
+ music: z.ZodString;
428
+ album_id: z.ZodString;
429
+ album: z.ZodString;
430
+ label: z.ZodString;
431
+ label_id: z.ZodNullable<z.ZodString>;
432
+ origin: z.ZodString;
433
+ is_dolby_content: z.ZodBoolean;
434
+ encrypted_media_url: z.ZodString;
435
+ encrypted_drm_media_url: z.ZodString;
436
+ album_url: z.ZodString;
437
+ duration: z.ZodString;
438
+ has_lyrics: z.ZodString;
439
+ lyrics_snippet: z.ZodString;
440
+ lyrics_id: z.ZodOptional<z.ZodString>;
441
+ copyright_text: z.ZodString;
442
+ release_date: z.ZodNullable<z.ZodString>;
443
+ label_url: z.ZodOptional<z.ZodString>;
444
+ vcode: z.ZodOptional<z.ZodString>;
445
+ vlink: z.ZodOptional<z.ZodString>;
446
+ artistMap: z.ZodLazy<z.ZodObject<{
447
+ primary_artists: z.ZodArray<z.ZodObject<{
448
+ id: z.ZodString;
449
+ name: z.ZodString;
450
+ role: z.ZodString;
451
+ image: z.ZodString;
452
+ type: z.ZodLiteral<"artist">;
453
+ perma_url: z.ZodString;
454
+ }, z.core.$loose>>;
455
+ featured_artists: z.ZodArray<z.ZodObject<{
456
+ id: z.ZodString;
457
+ name: z.ZodString;
458
+ role: z.ZodString;
459
+ image: z.ZodString;
460
+ type: z.ZodLiteral<"artist">;
461
+ perma_url: z.ZodString;
462
+ }, z.core.$loose>>;
463
+ artists: z.ZodArray<z.ZodObject<{
464
+ id: z.ZodString;
465
+ name: z.ZodString;
466
+ role: z.ZodString;
467
+ image: z.ZodString;
468
+ type: z.ZodLiteral<"artist">;
469
+ perma_url: z.ZodString;
470
+ }, z.core.$loose>>;
471
+ }, z.core.$loose>>;
472
+ }, z.core.$loose>;
473
+ }, z.core.$loose>>>;
474
+ more_info: z.ZodObject<{
475
+ uid: z.ZodString;
476
+ contents: z.ZodString;
477
+ is_dolby_content: z.ZodBoolean;
478
+ last_updated: z.ZodString;
479
+ username: z.ZodString;
480
+ firstname: z.ZodString;
481
+ lastname: z.ZodString;
482
+ is_followed: z.ZodString;
483
+ follower_count: z.ZodString;
484
+ fan_count: z.ZodString;
485
+ playlist_type: z.ZodString;
486
+ images: z.ZodArray<z.ZodAny>;
487
+ user_image: z.ZodString;
488
+ initials: z.ZodString;
489
+ custom_username: z.ZodString;
490
+ video_count: z.ZodString;
491
+ artists: z.ZodArray<z.ZodObject<{
492
+ id: z.ZodString;
493
+ name: z.ZodString;
494
+ role: z.ZodString;
495
+ image: z.ZodString;
496
+ type: z.ZodLiteral<"artist">;
497
+ perma_url: z.ZodString;
498
+ }, z.core.$loose>>;
499
+ subtitle_desc: z.ZodArray<z.ZodString>;
500
+ }, z.core.$loose>;
501
+ }, z.core.$loose>>;
502
+ };
503
+ readonly songs: {
504
+ readonly params: z.ZodObject<{
505
+ pids: z.ZodString;
506
+ }, z.core.$strict>;
507
+ readonly response: z.ZodObject<{
508
+ songs: z.ZodArray<z.ZodObject<{
509
+ id: z.ZodString;
510
+ title: z.ZodString;
511
+ subtitle: z.ZodString;
512
+ type: z.ZodLiteral<"song">;
513
+ perma_url: z.ZodString;
514
+ image: z.ZodString;
515
+ explicit_content: z.ZodString;
516
+ header_desc: z.ZodString;
517
+ language: z.ZodString;
518
+ year: z.ZodString;
519
+ play_count: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
520
+ more_info: z.ZodObject<{
521
+ music: z.ZodString;
522
+ album_id: z.ZodString;
523
+ album: z.ZodString;
524
+ label: z.ZodString;
525
+ label_id: z.ZodNullable<z.ZodString>;
526
+ origin: z.ZodString;
527
+ is_dolby_content: z.ZodBoolean;
528
+ encrypted_media_url: z.ZodString;
529
+ encrypted_drm_media_url: z.ZodString;
530
+ album_url: z.ZodString;
531
+ duration: z.ZodString;
532
+ has_lyrics: z.ZodString;
533
+ lyrics_snippet: z.ZodString;
534
+ lyrics_id: z.ZodOptional<z.ZodString>;
535
+ copyright_text: z.ZodString;
536
+ release_date: z.ZodNullable<z.ZodString>;
537
+ label_url: z.ZodOptional<z.ZodString>;
538
+ vcode: z.ZodOptional<z.ZodString>;
539
+ vlink: z.ZodOptional<z.ZodString>;
540
+ artistMap: z.ZodLazy<z.ZodObject<{
541
+ primary_artists: z.ZodArray<z.ZodObject<{
542
+ id: z.ZodString;
543
+ name: z.ZodString;
544
+ role: z.ZodString;
545
+ image: z.ZodString;
546
+ type: z.ZodLiteral<"artist">;
547
+ perma_url: z.ZodString;
548
+ }, z.core.$loose>>;
549
+ featured_artists: z.ZodArray<z.ZodObject<{
550
+ id: z.ZodString;
551
+ name: z.ZodString;
552
+ role: z.ZodString;
553
+ image: z.ZodString;
554
+ type: z.ZodLiteral<"artist">;
555
+ perma_url: z.ZodString;
556
+ }, z.core.$loose>>;
557
+ artists: z.ZodArray<z.ZodObject<{
558
+ id: z.ZodString;
559
+ name: z.ZodString;
560
+ role: z.ZodString;
561
+ image: z.ZodString;
562
+ type: z.ZodLiteral<"artist">;
563
+ perma_url: z.ZodString;
564
+ }, z.core.$loose>>;
565
+ }, z.core.$loose>>;
566
+ }, z.core.$loose>;
567
+ }, z.core.$loose>>;
568
+ }, z.core.$loose>;
569
+ };
570
+ readonly topAlbumsOfTheYear: {
571
+ readonly params: z.ZodObject<{
572
+ album_year: z.ZodString;
573
+ album_lang: z.ZodOptional<z.ZodString>;
574
+ }, z.core.$strict>;
575
+ readonly response: z.ZodArray<z.ZodLazy<z.ZodObject<{
576
+ id: z.ZodString;
577
+ title: z.ZodString;
578
+ subtitle: z.ZodString;
579
+ type: z.ZodLiteral<"album">;
580
+ image: z.ZodString;
581
+ perma_url: z.ZodString;
582
+ explicit_content: z.ZodString;
583
+ header_desc: z.ZodString;
584
+ play_count: z.ZodString;
585
+ language: z.ZodString;
586
+ year: z.ZodString;
587
+ list_count: z.ZodString;
588
+ list_type: z.ZodLiteral<"song">;
589
+ list: z.ZodArray<z.ZodLazy<z.ZodObject<{
590
+ id: z.ZodString;
591
+ title: z.ZodString;
592
+ subtitle: z.ZodString;
593
+ type: z.ZodLiteral<"song">;
594
+ perma_url: z.ZodString;
595
+ image: z.ZodString;
596
+ explicit_content: z.ZodString;
597
+ header_desc: z.ZodString;
598
+ language: z.ZodString;
599
+ year: z.ZodString;
600
+ play_count: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
601
+ more_info: z.ZodObject<{
602
+ music: z.ZodString;
603
+ album_id: z.ZodString;
604
+ album: z.ZodString;
605
+ label: z.ZodString;
606
+ label_id: z.ZodNullable<z.ZodString>;
607
+ origin: z.ZodString;
608
+ is_dolby_content: z.ZodBoolean;
609
+ encrypted_media_url: z.ZodString;
610
+ encrypted_drm_media_url: z.ZodString;
611
+ album_url: z.ZodString;
612
+ duration: z.ZodString;
613
+ has_lyrics: z.ZodString;
614
+ lyrics_snippet: z.ZodString;
615
+ lyrics_id: z.ZodOptional<z.ZodString>;
616
+ copyright_text: z.ZodString;
617
+ release_date: z.ZodNullable<z.ZodString>;
618
+ label_url: z.ZodOptional<z.ZodString>;
619
+ vcode: z.ZodOptional<z.ZodString>;
620
+ vlink: z.ZodOptional<z.ZodString>;
621
+ artistMap: z.ZodLazy<z.ZodObject<{
622
+ primary_artists: z.ZodArray<z.ZodObject<{
623
+ id: z.ZodString;
624
+ name: z.ZodString;
625
+ role: z.ZodString;
626
+ image: z.ZodString;
627
+ type: z.ZodLiteral<"artist">;
628
+ perma_url: z.ZodString;
629
+ }, z.core.$loose>>;
630
+ featured_artists: z.ZodArray<z.ZodObject<{
631
+ id: z.ZodString;
632
+ name: z.ZodString;
633
+ role: z.ZodString;
634
+ image: z.ZodString;
635
+ type: z.ZodLiteral<"artist">;
636
+ perma_url: z.ZodString;
637
+ }, z.core.$loose>>;
638
+ artists: z.ZodArray<z.ZodObject<{
639
+ id: z.ZodString;
640
+ name: z.ZodString;
641
+ role: z.ZodString;
642
+ image: z.ZodString;
643
+ type: z.ZodLiteral<"artist">;
644
+ perma_url: z.ZodString;
645
+ }, z.core.$loose>>;
646
+ }, z.core.$loose>>;
647
+ }, z.core.$loose>;
648
+ }, z.core.$loose>>>;
649
+ more_info: z.ZodObject<{
650
+ song_count: z.ZodString;
651
+ copyright_text: z.ZodString;
652
+ is_dolby_content: z.ZodBoolean;
653
+ label_url: z.ZodString;
654
+ artistMap: z.ZodObject<{
655
+ primary_artists: z.ZodArray<z.ZodObject<{
656
+ id: z.ZodString;
657
+ name: z.ZodString;
658
+ role: z.ZodString;
659
+ image: z.ZodString;
660
+ type: z.ZodLiteral<"artist">;
661
+ perma_url: z.ZodString;
662
+ }, z.core.$loose>>;
663
+ featured_artists: z.ZodArray<z.ZodObject<{
664
+ id: z.ZodString;
665
+ name: z.ZodString;
666
+ role: z.ZodString;
667
+ image: z.ZodString;
668
+ type: z.ZodLiteral<"artist">;
669
+ perma_url: z.ZodString;
670
+ }, z.core.$loose>>;
671
+ artists: z.ZodArray<z.ZodObject<{
672
+ id: z.ZodString;
673
+ name: z.ZodString;
674
+ role: z.ZodString;
675
+ image: z.ZodString;
676
+ type: z.ZodLiteral<"artist">;
677
+ perma_url: z.ZodString;
678
+ }, z.core.$loose>>;
679
+ }, z.core.$loose>;
680
+ }, z.core.$loose>;
681
+ }, z.core.$loose>>>;
682
+ };
683
+ readonly topSearches: {
684
+ readonly params: z.ZodObject<{}, z.core.$strict>;
685
+ readonly response: z.ZodArray<z.ZodObject<{
686
+ id: z.ZodString;
687
+ title: z.ZodString;
688
+ subtitle: z.ZodString;
689
+ type: z.ZodUnion<readonly [z.ZodLiteral<"album">, z.ZodLiteral<"artist">, z.ZodLiteral<"song">]>;
690
+ image: z.ZodString;
691
+ perma_url: z.ZodString;
692
+ explicit_content: z.ZodString;
693
+ more_info: z.ZodObject<{
694
+ album: z.ZodString;
695
+ artistMap: z.ZodArray<z.ZodObject<{
696
+ id: z.ZodString;
697
+ name: z.ZodString;
698
+ role: z.ZodString;
699
+ image: z.ZodString;
700
+ type: z.ZodLiteral<"artist">;
701
+ perma_url: z.ZodString;
702
+ }, z.core.$loose>>;
703
+ }, z.core.$loose>;
704
+ }, z.core.$loose>>;
705
+ };
706
+ };