@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,790 @@
1
+ import { SaavnSearchResultsSchema } from './schema.ops';
2
+ export declare const SaavnSearchResults: {
3
+ all: {
4
+ call: string;
5
+ schema: {
6
+ readonly params: import("zod").ZodObject<{
7
+ query: import("zod").ZodString;
8
+ }, import("zod/v4/core").$strict>;
9
+ readonly response: import("zod").ZodObject<{
10
+ albums: import("zod").ZodObject<{
11
+ position: import("zod").ZodNumber;
12
+ data: import("zod").ZodArray<import("zod").ZodObject<{
13
+ id: import("zod").ZodString;
14
+ title: import("zod").ZodString;
15
+ subtitle: import("zod").ZodString;
16
+ type: import("zod").ZodLiteral<"album">;
17
+ image: import("zod").ZodString;
18
+ perma_url: import("zod").ZodString;
19
+ explicit_content: import("zod").ZodString;
20
+ description: import("zod").ZodString;
21
+ more_info: import("zod").ZodObject<{
22
+ music: import("zod").ZodNullable<import("zod").ZodString>;
23
+ ctr: import("zod").ZodNumber;
24
+ year: import("zod").ZodString;
25
+ language: import("zod").ZodString;
26
+ song_pids: import("zod").ZodString;
27
+ }, import("zod/v4/core").$loose>;
28
+ }, import("zod/v4/core").$loose>>;
29
+ }, import("zod/v4/core").$loose>;
30
+ artists: import("zod").ZodObject<{
31
+ position: import("zod").ZodNumber;
32
+ data: import("zod").ZodArray<import("zod").ZodObject<{
33
+ id: import("zod").ZodString;
34
+ title: import("zod").ZodString;
35
+ image: import("zod").ZodString;
36
+ type: import("zod").ZodLiteral<"artist">;
37
+ isRadioPresent: import("zod").ZodBoolean;
38
+ ctr: import("zod").ZodNumber;
39
+ description: import("zod").ZodString;
40
+ position: import("zod").ZodNumber;
41
+ }, import("zod/v4/core").$loose>>;
42
+ }, import("zod/v4/core").$loose>;
43
+ playlists: import("zod").ZodObject<{
44
+ position: import("zod").ZodNumber;
45
+ data: import("zod").ZodArray<import("zod").ZodObject<{
46
+ id: import("zod").ZodString;
47
+ title: import("zod").ZodString;
48
+ subtitle: import("zod").ZodString;
49
+ type: import("zod").ZodLiteral<"playlist">;
50
+ image: import("zod").ZodString;
51
+ perma_url: import("zod").ZodString;
52
+ explicit_content: import("zod").ZodString;
53
+ description: import("zod").ZodString;
54
+ more_info: import("zod").ZodObject<{
55
+ firstname: import("zod").ZodString;
56
+ lastname: import("zod").ZodOptional<import("zod").ZodString>;
57
+ artist_name: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>;
58
+ entity_type: import("zod").ZodString;
59
+ is_dolby_content: import("zod").ZodNullable<import("zod").ZodBoolean>;
60
+ language: import("zod").ZodString;
61
+ }, import("zod/v4/core").$loose>;
62
+ }, import("zod/v4/core").$loose>>;
63
+ }, import("zod/v4/core").$loose>;
64
+ shows: import("zod").ZodObject<{
65
+ position: import("zod").ZodNumber;
66
+ data: import("zod").ZodArray<import("zod").ZodObject<{
67
+ id: import("zod").ZodString;
68
+ title: import("zod").ZodString;
69
+ subtitle: import("zod").ZodString;
70
+ type: import("zod").ZodLiteral<"show">;
71
+ image: import("zod").ZodString;
72
+ perma_url: import("zod").ZodString;
73
+ more_info: import("zod").ZodObject<{
74
+ season_number: import("zod").ZodNumber;
75
+ }, import("zod/v4/core").$loose>;
76
+ explicit_content: import("zod").ZodString;
77
+ description: import("zod").ZodString;
78
+ }, import("zod/v4/core").$loose>>;
79
+ }, import("zod/v4/core").$loose>;
80
+ songs: import("zod").ZodObject<{
81
+ position: import("zod").ZodNumber;
82
+ data: import("zod").ZodArray<import("zod").ZodObject<{
83
+ id: import("zod").ZodString;
84
+ title: import("zod").ZodString;
85
+ subtitle: import("zod").ZodString;
86
+ type: import("zod").ZodLiteral<"song">;
87
+ perma_url: import("zod").ZodString;
88
+ image: import("zod").ZodString;
89
+ explicit_content: import("zod").ZodString;
90
+ description: import("zod").ZodString;
91
+ more_info: import("zod").ZodObject<{
92
+ album: import("zod").ZodString;
93
+ album_id: import("zod").ZodString;
94
+ ctr: import("zod").ZodNumber;
95
+ score: import("zod").ZodString;
96
+ vcode: import("zod").ZodString;
97
+ vlink: import("zod").ZodString;
98
+ primary_artists: import("zod").ZodString;
99
+ singers: import("zod").ZodString;
100
+ language: import("zod").ZodString;
101
+ }, import("zod/v4/core").$loose>;
102
+ }, import("zod/v4/core").$loose>>;
103
+ }, import("zod/v4/core").$loose>;
104
+ episodes: import("zod").ZodObject<{
105
+ position: import("zod").ZodNumber;
106
+ data: import("zod").ZodArray<import("zod").ZodAny>;
107
+ }, import("zod/v4/core").$loose>;
108
+ topquery: import("zod").ZodObject<{
109
+ position: import("zod").ZodNumber;
110
+ data: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
111
+ id: import("zod").ZodString;
112
+ title: import("zod").ZodString;
113
+ subtitle: import("zod").ZodString;
114
+ type: import("zod").ZodLiteral<"album">;
115
+ image: import("zod").ZodString;
116
+ perma_url: import("zod").ZodString;
117
+ explicit_content: import("zod").ZodString;
118
+ description: import("zod").ZodString;
119
+ more_info: import("zod").ZodObject<{
120
+ music: import("zod").ZodNullable<import("zod").ZodString>;
121
+ ctr: import("zod").ZodNumber;
122
+ year: import("zod").ZodString;
123
+ language: import("zod").ZodString;
124
+ song_pids: import("zod").ZodString;
125
+ }, import("zod/v4/core").$loose>;
126
+ }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
127
+ id: import("zod").ZodString;
128
+ title: import("zod").ZodString;
129
+ image: import("zod").ZodString;
130
+ type: import("zod").ZodLiteral<"artist">;
131
+ isRadioPresent: import("zod").ZodBoolean;
132
+ ctr: import("zod").ZodNumber;
133
+ description: import("zod").ZodString;
134
+ position: import("zod").ZodNumber;
135
+ }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
136
+ id: import("zod").ZodString;
137
+ title: import("zod").ZodString;
138
+ subtitle: import("zod").ZodString;
139
+ type: import("zod").ZodLiteral<"playlist">;
140
+ image: import("zod").ZodString;
141
+ perma_url: import("zod").ZodString;
142
+ explicit_content: import("zod").ZodString;
143
+ description: import("zod").ZodString;
144
+ more_info: import("zod").ZodObject<{
145
+ firstname: import("zod").ZodString;
146
+ lastname: import("zod").ZodOptional<import("zod").ZodString>;
147
+ artist_name: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>;
148
+ entity_type: import("zod").ZodString;
149
+ is_dolby_content: import("zod").ZodNullable<import("zod").ZodBoolean>;
150
+ language: import("zod").ZodString;
151
+ }, import("zod/v4/core").$loose>;
152
+ }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
153
+ id: import("zod").ZodString;
154
+ title: import("zod").ZodString;
155
+ subtitle: import("zod").ZodString;
156
+ type: import("zod").ZodLiteral<"song">;
157
+ perma_url: import("zod").ZodString;
158
+ image: import("zod").ZodString;
159
+ explicit_content: import("zod").ZodString;
160
+ description: import("zod").ZodString;
161
+ more_info: import("zod").ZodObject<{
162
+ album: import("zod").ZodString;
163
+ album_id: import("zod").ZodString;
164
+ ctr: import("zod").ZodNumber;
165
+ score: import("zod").ZodString;
166
+ vcode: import("zod").ZodString;
167
+ vlink: import("zod").ZodString;
168
+ primary_artists: import("zod").ZodString;
169
+ singers: import("zod").ZodString;
170
+ language: import("zod").ZodString;
171
+ }, import("zod/v4/core").$loose>;
172
+ }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
173
+ id: import("zod").ZodString;
174
+ title: import("zod").ZodString;
175
+ subtitle: import("zod").ZodString;
176
+ type: import("zod").ZodLiteral<"show">;
177
+ image: import("zod").ZodString;
178
+ perma_url: import("zod").ZodString;
179
+ more_info: import("zod").ZodObject<{
180
+ season_number: import("zod").ZodNumber;
181
+ }, import("zod/v4/core").$loose>;
182
+ explicit_content: import("zod").ZodString;
183
+ description: import("zod").ZodString;
184
+ }, import("zod/v4/core").$loose>], "type">>;
185
+ }, import("zod/v4/core").$loose>;
186
+ }, import("zod/v4/core").$loose>;
187
+ };
188
+ mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.all.response>) => {
189
+ albums: {
190
+ position: number;
191
+ data: ({
192
+ id: any;
193
+ type: "song";
194
+ title: any;
195
+ subtitle: any;
196
+ description: any;
197
+ url: any;
198
+ images: import("../../..").Image[];
199
+ flags: {
200
+ isExplicit: boolean;
201
+ isRadioPresent?: undefined;
202
+ };
203
+ name?: undefined;
204
+ } | {
205
+ id: any;
206
+ type: "album";
207
+ title: any;
208
+ subtitle: any;
209
+ description: any;
210
+ url: any;
211
+ images: import("../../..").Image[];
212
+ flags: {
213
+ isExplicit: boolean;
214
+ isRadioPresent?: undefined;
215
+ };
216
+ name?: undefined;
217
+ } | {
218
+ id: any;
219
+ type: "artist";
220
+ name: any;
221
+ url: any;
222
+ images: import("../../..").Image[];
223
+ flags: {
224
+ isRadioPresent: any;
225
+ isExplicit?: undefined;
226
+ };
227
+ title?: undefined;
228
+ subtitle?: undefined;
229
+ description?: undefined;
230
+ } | {
231
+ id: any;
232
+ type: "playlist";
233
+ title: any;
234
+ subtitle: any;
235
+ description: any;
236
+ url: any;
237
+ images: import("../../..").Image[];
238
+ flags: {
239
+ isExplicit: boolean;
240
+ isRadioPresent?: undefined;
241
+ };
242
+ name?: undefined;
243
+ } | {
244
+ id: any;
245
+ type: "show";
246
+ title: any;
247
+ subtitle: any;
248
+ description: any;
249
+ url: any;
250
+ images: import("../../..").Image[];
251
+ flags?: undefined;
252
+ name?: undefined;
253
+ } | null)[];
254
+ };
255
+ artists: {
256
+ position: number;
257
+ data: ({
258
+ id: any;
259
+ type: "song";
260
+ title: any;
261
+ subtitle: any;
262
+ description: any;
263
+ url: any;
264
+ images: import("../../..").Image[];
265
+ flags: {
266
+ isExplicit: boolean;
267
+ isRadioPresent?: undefined;
268
+ };
269
+ name?: undefined;
270
+ } | {
271
+ id: any;
272
+ type: "album";
273
+ title: any;
274
+ subtitle: any;
275
+ description: any;
276
+ url: any;
277
+ images: import("../../..").Image[];
278
+ flags: {
279
+ isExplicit: boolean;
280
+ isRadioPresent?: undefined;
281
+ };
282
+ name?: undefined;
283
+ } | {
284
+ id: any;
285
+ type: "artist";
286
+ name: any;
287
+ url: any;
288
+ images: import("../../..").Image[];
289
+ flags: {
290
+ isRadioPresent: any;
291
+ isExplicit?: undefined;
292
+ };
293
+ title?: undefined;
294
+ subtitle?: undefined;
295
+ description?: undefined;
296
+ } | {
297
+ id: any;
298
+ type: "playlist";
299
+ title: any;
300
+ subtitle: any;
301
+ description: any;
302
+ url: any;
303
+ images: import("../../..").Image[];
304
+ flags: {
305
+ isExplicit: boolean;
306
+ isRadioPresent?: undefined;
307
+ };
308
+ name?: undefined;
309
+ } | {
310
+ id: any;
311
+ type: "show";
312
+ title: any;
313
+ subtitle: any;
314
+ description: any;
315
+ url: any;
316
+ images: import("../../..").Image[];
317
+ flags?: undefined;
318
+ name?: undefined;
319
+ } | null)[];
320
+ };
321
+ playlists: {
322
+ position: number;
323
+ data: ({
324
+ id: any;
325
+ type: "song";
326
+ title: any;
327
+ subtitle: any;
328
+ description: any;
329
+ url: any;
330
+ images: import("../../..").Image[];
331
+ flags: {
332
+ isExplicit: boolean;
333
+ isRadioPresent?: undefined;
334
+ };
335
+ name?: undefined;
336
+ } | {
337
+ id: any;
338
+ type: "album";
339
+ title: any;
340
+ subtitle: any;
341
+ description: any;
342
+ url: any;
343
+ images: import("../../..").Image[];
344
+ flags: {
345
+ isExplicit: boolean;
346
+ isRadioPresent?: undefined;
347
+ };
348
+ name?: undefined;
349
+ } | {
350
+ id: any;
351
+ type: "artist";
352
+ name: any;
353
+ url: any;
354
+ images: import("../../..").Image[];
355
+ flags: {
356
+ isRadioPresent: any;
357
+ isExplicit?: undefined;
358
+ };
359
+ title?: undefined;
360
+ subtitle?: undefined;
361
+ description?: undefined;
362
+ } | {
363
+ id: any;
364
+ type: "playlist";
365
+ title: any;
366
+ subtitle: any;
367
+ description: any;
368
+ url: any;
369
+ images: import("../../..").Image[];
370
+ flags: {
371
+ isExplicit: boolean;
372
+ isRadioPresent?: undefined;
373
+ };
374
+ name?: undefined;
375
+ } | {
376
+ id: any;
377
+ type: "show";
378
+ title: any;
379
+ subtitle: any;
380
+ description: any;
381
+ url: any;
382
+ images: import("../../..").Image[];
383
+ flags?: undefined;
384
+ name?: undefined;
385
+ } | null)[];
386
+ };
387
+ shows: {
388
+ position: number;
389
+ data: ({
390
+ id: any;
391
+ type: "song";
392
+ title: any;
393
+ subtitle: any;
394
+ description: any;
395
+ url: any;
396
+ images: import("../../..").Image[];
397
+ flags: {
398
+ isExplicit: boolean;
399
+ isRadioPresent?: undefined;
400
+ };
401
+ name?: undefined;
402
+ } | {
403
+ id: any;
404
+ type: "album";
405
+ title: any;
406
+ subtitle: any;
407
+ description: any;
408
+ url: any;
409
+ images: import("../../..").Image[];
410
+ flags: {
411
+ isExplicit: boolean;
412
+ isRadioPresent?: undefined;
413
+ };
414
+ name?: undefined;
415
+ } | {
416
+ id: any;
417
+ type: "artist";
418
+ name: any;
419
+ url: any;
420
+ images: import("../../..").Image[];
421
+ flags: {
422
+ isRadioPresent: any;
423
+ isExplicit?: undefined;
424
+ };
425
+ title?: undefined;
426
+ subtitle?: undefined;
427
+ description?: undefined;
428
+ } | {
429
+ id: any;
430
+ type: "playlist";
431
+ title: any;
432
+ subtitle: any;
433
+ description: any;
434
+ url: any;
435
+ images: import("../../..").Image[];
436
+ flags: {
437
+ isExplicit: boolean;
438
+ isRadioPresent?: undefined;
439
+ };
440
+ name?: undefined;
441
+ } | {
442
+ id: any;
443
+ type: "show";
444
+ title: any;
445
+ subtitle: any;
446
+ description: any;
447
+ url: any;
448
+ images: import("../../..").Image[];
449
+ flags?: undefined;
450
+ name?: undefined;
451
+ } | null)[];
452
+ };
453
+ songs: {
454
+ position: number;
455
+ data: ({
456
+ id: any;
457
+ type: "song";
458
+ title: any;
459
+ subtitle: any;
460
+ description: any;
461
+ url: any;
462
+ images: import("../../..").Image[];
463
+ flags: {
464
+ isExplicit: boolean;
465
+ isRadioPresent?: undefined;
466
+ };
467
+ name?: undefined;
468
+ } | {
469
+ id: any;
470
+ type: "album";
471
+ title: any;
472
+ subtitle: any;
473
+ description: any;
474
+ url: any;
475
+ images: import("../../..").Image[];
476
+ flags: {
477
+ isExplicit: boolean;
478
+ isRadioPresent?: undefined;
479
+ };
480
+ name?: undefined;
481
+ } | {
482
+ id: any;
483
+ type: "artist";
484
+ name: any;
485
+ url: any;
486
+ images: import("../../..").Image[];
487
+ flags: {
488
+ isRadioPresent: any;
489
+ isExplicit?: undefined;
490
+ };
491
+ title?: undefined;
492
+ subtitle?: undefined;
493
+ description?: undefined;
494
+ } | {
495
+ id: any;
496
+ type: "playlist";
497
+ title: any;
498
+ subtitle: any;
499
+ description: any;
500
+ url: any;
501
+ images: import("../../..").Image[];
502
+ flags: {
503
+ isExplicit: boolean;
504
+ isRadioPresent?: undefined;
505
+ };
506
+ name?: undefined;
507
+ } | {
508
+ id: any;
509
+ type: "show";
510
+ title: any;
511
+ subtitle: any;
512
+ description: any;
513
+ url: any;
514
+ images: import("../../..").Image[];
515
+ flags?: undefined;
516
+ name?: undefined;
517
+ } | null)[];
518
+ };
519
+ topquery: {
520
+ position: any;
521
+ data: any;
522
+ };
523
+ };
524
+ };
525
+ albums: {
526
+ call: string;
527
+ schema: {
528
+ readonly params: import("zod").ZodObject<{
529
+ q: import("zod").ZodString;
530
+ p: import("zod").ZodOptional<import("zod").ZodString>;
531
+ n: import("zod").ZodOptional<import("zod").ZodString>;
532
+ }, import("zod/v4/core").$strict>;
533
+ readonly response: import("zod").ZodObject<{
534
+ total: import("zod").ZodNumber;
535
+ start: import("zod").ZodNumber;
536
+ results: import("zod").ZodArray<import("zod").ZodObject<{
537
+ id: import("zod").ZodString;
538
+ title: import("zod").ZodString;
539
+ subtitle: import("zod").ZodString;
540
+ type: import("zod").ZodLiteral<"album">;
541
+ image: import("zod").ZodString;
542
+ perma_url: import("zod").ZodString;
543
+ explicit_content: import("zod").ZodString;
544
+ header_desc: import("zod").ZodString;
545
+ language: import("zod").ZodString;
546
+ year: import("zod").ZodString;
547
+ play_count: import("zod").ZodString;
548
+ more_info: import("zod").ZodObject<{
549
+ query: import("zod").ZodString;
550
+ text: import("zod").ZodString;
551
+ music: import("zod").ZodNullable<import("zod").ZodString>;
552
+ song_count: import("zod").ZodString;
553
+ artistMap: import("zod").ZodObject<{
554
+ primary_artists: import("zod").ZodArray<import("zod").ZodObject<{
555
+ id: import("zod").ZodString;
556
+ name: import("zod").ZodString;
557
+ role: import("zod").ZodString;
558
+ image: import("zod").ZodString;
559
+ type: import("zod").ZodLiteral<"artist">;
560
+ perma_url: import("zod").ZodString;
561
+ }, import("zod/v4/core").$loose>>;
562
+ featured_artists: import("zod").ZodArray<import("zod").ZodObject<{
563
+ id: import("zod").ZodString;
564
+ name: import("zod").ZodString;
565
+ role: import("zod").ZodString;
566
+ image: import("zod").ZodString;
567
+ type: import("zod").ZodLiteral<"artist">;
568
+ perma_url: import("zod").ZodString;
569
+ }, import("zod/v4/core").$loose>>;
570
+ artists: import("zod").ZodArray<import("zod").ZodObject<{
571
+ id: import("zod").ZodString;
572
+ name: import("zod").ZodString;
573
+ role: import("zod").ZodString;
574
+ image: import("zod").ZodString;
575
+ type: import("zod").ZodLiteral<"artist">;
576
+ perma_url: import("zod").ZodString;
577
+ }, import("zod/v4/core").$loose>>;
578
+ }, import("zod/v4/core").$loose>;
579
+ }, import("zod/v4/core").$loose>;
580
+ }, import("zod/v4/core").$loose>>;
581
+ }, import("zod/v4/core").$loose>;
582
+ };
583
+ mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.albums.response>) => {
584
+ total: number;
585
+ start: number;
586
+ results: import("../../../core/models").Album[];
587
+ };
588
+ };
589
+ artists: {
590
+ call: string;
591
+ schema: {
592
+ readonly params: import("zod").ZodObject<{
593
+ q: import("zod").ZodString;
594
+ p: import("zod").ZodOptional<import("zod").ZodString>;
595
+ n: import("zod").ZodOptional<import("zod").ZodString>;
596
+ }, import("zod/v4/core").$strict>;
597
+ readonly response: import("zod").ZodObject<{
598
+ total: import("zod").ZodNumber;
599
+ start: import("zod").ZodNumber;
600
+ results: import("zod").ZodArray<import("zod").ZodObject<{
601
+ id: import("zod").ZodString;
602
+ name: import("zod").ZodString;
603
+ role: import("zod").ZodString;
604
+ image: import("zod").ZodString;
605
+ type: import("zod").ZodLiteral<"artist">;
606
+ perma_url: import("zod").ZodString;
607
+ ctr: import("zod").ZodNumber;
608
+ entity: import("zod").ZodNumber;
609
+ isRadioPresent: import("zod").ZodBoolean;
610
+ is_followed: import("zod").ZodBoolean;
611
+ }, import("zod/v4/core").$loose>>;
612
+ }, import("zod/v4/core").$loose>;
613
+ };
614
+ mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.artists.response>) => {
615
+ total: number;
616
+ start: number;
617
+ results: {
618
+ flags: {
619
+ isRadioPresent: boolean;
620
+ isFollowed: boolean;
621
+ };
622
+ id: string;
623
+ type: "artist";
624
+ name: string;
625
+ subtitle?: string;
626
+ url: string;
627
+ images: import("../../..").Image[];
628
+ stats?: {
629
+ followerCount?: number;
630
+ fanCount?: number;
631
+ };
632
+ language?: {
633
+ primary?: string;
634
+ available?: string[];
635
+ };
636
+ profile?: {
637
+ bio?: import("../../..").BioSection[];
638
+ dob?: string;
639
+ };
640
+ links?: {
641
+ saavn?: {
642
+ overview?: string;
643
+ albums?: string;
644
+ songs?: string;
645
+ bio?: string;
646
+ comments?: string;
647
+ };
648
+ social?: {
649
+ wiki?: string;
650
+ facebook?: string;
651
+ twitter?: string;
652
+ };
653
+ };
654
+ songs?: {
655
+ top?: import("../../../core/models").Song[];
656
+ latest?: import("../../../core/models").Song[];
657
+ };
658
+ albums?: {
659
+ top?: import("../../../core/models").Album[];
660
+ singles?: import("../../../core/models").Album[];
661
+ latest?: import("../../../core/models").Album[];
662
+ };
663
+ playlists?: {
664
+ dedicated?: import("../../../core/models").Playlist[];
665
+ featured?: import("../../../core/models").Playlist[];
666
+ };
667
+ related?: {
668
+ similar?: import("../../../core/models").Artist[];
669
+ };
670
+ }[];
671
+ };
672
+ };
673
+ playlists: {
674
+ call: string;
675
+ schema: {
676
+ readonly params: import("zod").ZodObject<{
677
+ q: import("zod").ZodString;
678
+ p: import("zod").ZodOptional<import("zod").ZodString>;
679
+ n: import("zod").ZodOptional<import("zod").ZodString>;
680
+ }, import("zod/v4/core").$strict>;
681
+ readonly response: import("zod").ZodObject<{
682
+ total: import("zod").ZodNumber;
683
+ start: import("zod").ZodNumber;
684
+ results: import("zod").ZodArray<import("zod").ZodObject<{
685
+ id: import("zod").ZodString;
686
+ title: import("zod").ZodString;
687
+ subtitle: import("zod").ZodString;
688
+ type: import("zod").ZodLiteral<"playlist">;
689
+ image: import("zod").ZodString;
690
+ perma_url: import("zod").ZodString;
691
+ explicit_content: import("zod").ZodString;
692
+ more_info: import("zod").ZodObject<{
693
+ firstname: import("zod").ZodString;
694
+ lastname: import("zod").ZodOptional<import("zod").ZodString>;
695
+ artist_name: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>;
696
+ entity_type: import("zod").ZodString;
697
+ is_dolby_content: import("zod").ZodNullable<import("zod").ZodBoolean>;
698
+ language: import("zod").ZodString;
699
+ uid: import("zod").ZodString;
700
+ song_count: import("zod").ZodString;
701
+ }, import("zod/v4/core").$loose>;
702
+ }, import("zod/v4/core").$loose>>;
703
+ }, import("zod/v4/core").$loose>;
704
+ };
705
+ mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.playlists.response>) => {
706
+ total: number;
707
+ start: number;
708
+ results: import("../../../core/models").Playlist[];
709
+ };
710
+ };
711
+ songs: {
712
+ call: string;
713
+ schema: {
714
+ readonly params: import("zod").ZodObject<{
715
+ q: import("zod").ZodString;
716
+ p: import("zod").ZodOptional<import("zod").ZodString>;
717
+ n: import("zod").ZodOptional<import("zod").ZodString>;
718
+ }, import("zod/v4/core").$strict>;
719
+ readonly response: import("zod").ZodObject<{
720
+ total: import("zod").ZodNumber;
721
+ start: import("zod").ZodNumber;
722
+ results: import("zod").ZodArray<import("zod").ZodObject<{
723
+ id: import("zod").ZodString;
724
+ title: import("zod").ZodString;
725
+ subtitle: import("zod").ZodString;
726
+ type: import("zod").ZodLiteral<"song">;
727
+ perma_url: import("zod").ZodString;
728
+ image: import("zod").ZodString;
729
+ explicit_content: import("zod").ZodString;
730
+ header_desc: import("zod").ZodString;
731
+ language: import("zod").ZodString;
732
+ year: import("zod").ZodString;
733
+ play_count: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
734
+ more_info: import("zod").ZodObject<{
735
+ music: import("zod").ZodString;
736
+ album_id: import("zod").ZodString;
737
+ album: import("zod").ZodString;
738
+ label: import("zod").ZodString;
739
+ label_id: import("zod").ZodNullable<import("zod").ZodString>;
740
+ origin: import("zod").ZodString;
741
+ is_dolby_content: import("zod").ZodBoolean;
742
+ encrypted_media_url: import("zod").ZodString;
743
+ encrypted_drm_media_url: import("zod").ZodString;
744
+ album_url: import("zod").ZodString;
745
+ duration: import("zod").ZodString;
746
+ has_lyrics: import("zod").ZodString;
747
+ lyrics_snippet: import("zod").ZodString;
748
+ lyrics_id: import("zod").ZodOptional<import("zod").ZodString>;
749
+ copyright_text: import("zod").ZodString;
750
+ release_date: import("zod").ZodNullable<import("zod").ZodString>;
751
+ label_url: import("zod").ZodOptional<import("zod").ZodString>;
752
+ vcode: import("zod").ZodOptional<import("zod").ZodString>;
753
+ vlink: import("zod").ZodOptional<import("zod").ZodString>;
754
+ artistMap: import("zod").ZodLazy<import("zod").ZodObject<{
755
+ primary_artists: import("zod").ZodArray<import("zod").ZodObject<{
756
+ id: import("zod").ZodString;
757
+ name: import("zod").ZodString;
758
+ role: import("zod").ZodString;
759
+ image: import("zod").ZodString;
760
+ type: import("zod").ZodLiteral<"artist">;
761
+ perma_url: import("zod").ZodString;
762
+ }, import("zod/v4/core").$loose>>;
763
+ featured_artists: import("zod").ZodArray<import("zod").ZodObject<{
764
+ id: import("zod").ZodString;
765
+ name: import("zod").ZodString;
766
+ role: import("zod").ZodString;
767
+ image: import("zod").ZodString;
768
+ type: import("zod").ZodLiteral<"artist">;
769
+ perma_url: import("zod").ZodString;
770
+ }, import("zod/v4/core").$loose>>;
771
+ artists: import("zod").ZodArray<import("zod").ZodObject<{
772
+ id: import("zod").ZodString;
773
+ name: import("zod").ZodString;
774
+ role: import("zod").ZodString;
775
+ image: import("zod").ZodString;
776
+ type: import("zod").ZodLiteral<"artist">;
777
+ perma_url: import("zod").ZodString;
778
+ }, import("zod/v4/core").$loose>>;
779
+ }, import("zod/v4/core").$loose>>;
780
+ }, import("zod/v4/core").$loose>;
781
+ }, import("zod/v4/core").$loose>>;
782
+ }, import("zod/v4/core").$loose>;
783
+ };
784
+ mapper: (data: import("zod").infer<typeof SaavnSearchResultsSchema.songs.response>) => {
785
+ total: number;
786
+ start: number;
787
+ results: import("../../../core/models").Song[];
788
+ };
789
+ };
790
+ };