@ansango/lastfm-api 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/README.md +66 -22
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -1
- package/dist/client.js.map +1 -1
- package/dist/entrypoints/insights.d.ts +4 -0
- package/dist/entrypoints/insights.d.ts.map +1 -0
- package/dist/entrypoints/insights.js +3 -0
- package/dist/entrypoints/insights.js.map +1 -0
- package/dist/entrypoints/insights.schemas.d.ts +2 -0
- package/dist/entrypoints/insights.schemas.d.ts.map +1 -0
- package/dist/entrypoints/insights.schemas.js +3 -0
- package/dist/entrypoints/insights.schemas.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/services/album.d.ts +2 -4
- package/dist/services/album.d.ts.map +1 -1
- package/dist/services/album.js.map +1 -1
- package/dist/services/artist.d.ts +2 -4
- package/dist/services/artist.d.ts.map +1 -1
- package/dist/services/artist.js.map +1 -1
- package/dist/services/auth.d.ts +1 -38
- package/dist/services/auth.d.ts.map +1 -1
- package/dist/services/auth.js +1 -19
- package/dist/services/auth.js.map +1 -1
- package/dist/services/auth.schemas.d.ts +0 -13
- package/dist/services/auth.schemas.d.ts.map +1 -1
- package/dist/services/auth.schemas.js +0 -7
- package/dist/services/auth.schemas.js.map +1 -1
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/insights/binges.d.ts +8 -0
- package/dist/services/insights/binges.d.ts.map +1 -0
- package/dist/services/insights/binges.js +53 -0
- package/dist/services/insights/binges.js.map +1 -0
- package/dist/services/insights/compare.d.ts +8 -0
- package/dist/services/insights/compare.d.ts.map +1 -0
- package/dist/services/insights/compare.js +39 -0
- package/dist/services/insights/compare.js.map +1 -0
- package/dist/services/insights/discoveries.d.ts +8 -0
- package/dist/services/insights/discoveries.d.ts.map +1 -0
- package/dist/services/insights/discoveries.js +53 -0
- package/dist/services/insights/discoveries.js.map +1 -0
- package/dist/services/insights/hours.d.ts +8 -0
- package/dist/services/insights/hours.d.ts.map +1 -0
- package/dist/services/insights/hours.js +43 -0
- package/dist/services/insights/hours.js.map +1 -0
- package/dist/services/insights/lib/binges.d.ts +31 -0
- package/dist/services/insights/lib/binges.d.ts.map +1 -0
- package/dist/services/insights/lib/binges.js +61 -0
- package/dist/services/insights/lib/binges.js.map +1 -0
- package/dist/services/insights/lib/compare.d.ts +31 -0
- package/dist/services/insights/lib/compare.d.ts.map +1 -0
- package/dist/services/insights/lib/compare.js +68 -0
- package/dist/services/insights/lib/compare.js.map +1 -0
- package/dist/services/insights/lib/discoveries.d.ts +17 -0
- package/dist/services/insights/lib/discoveries.d.ts.map +1 -0
- package/dist/services/insights/lib/discoveries.js +24 -0
- package/dist/services/insights/lib/discoveries.js.map +1 -0
- package/dist/services/insights/lib/diversity.d.ts +28 -0
- package/dist/services/insights/lib/diversity.d.ts.map +1 -0
- package/dist/services/insights/lib/diversity.js +39 -0
- package/dist/services/insights/lib/diversity.js.map +1 -0
- package/dist/services/insights/lib/hours.d.ts +39 -0
- package/dist/services/insights/lib/hours.d.ts.map +1 -0
- package/dist/services/insights/lib/hours.js +66 -0
- package/dist/services/insights/lib/hours.js.map +1 -0
- package/dist/services/insights/lib/mood.d.ts +22 -0
- package/dist/services/insights/lib/mood.d.ts.map +1 -0
- package/dist/services/insights/lib/mood.js +187 -0
- package/dist/services/insights/lib/mood.js.map +1 -0
- package/dist/services/insights/lib/periods.d.ts +17 -0
- package/dist/services/insights/lib/periods.d.ts.map +1 -0
- package/dist/services/insights/lib/periods.js +66 -0
- package/dist/services/insights/lib/periods.js.map +1 -0
- package/dist/services/insights/lib/personality.d.ts +30 -0
- package/dist/services/insights/lib/personality.d.ts.map +1 -0
- package/dist/services/insights/lib/personality.js +131 -0
- package/dist/services/insights/lib/personality.js.map +1 -0
- package/dist/services/insights/lib/trends.d.ts +30 -0
- package/dist/services/insights/lib/trends.d.ts.map +1 -0
- package/dist/services/insights/lib/trends.js +67 -0
- package/dist/services/insights/lib/trends.js.map +1 -0
- package/dist/services/insights/mood.d.ts +8 -0
- package/dist/services/insights/mood.d.ts.map +1 -0
- package/dist/services/insights/mood.js +53 -0
- package/dist/services/insights/mood.js.map +1 -0
- package/dist/services/insights/now-playing.d.ts +20 -0
- package/dist/services/insights/now-playing.d.ts.map +1 -0
- package/dist/services/insights/now-playing.js +128 -0
- package/dist/services/insights/now-playing.js.map +1 -0
- package/dist/services/insights/personality.d.ts +8 -0
- package/dist/services/insights/personality.d.ts.map +1 -0
- package/dist/services/insights/personality.js +42 -0
- package/dist/services/insights/personality.js.map +1 -0
- package/dist/services/insights/summary.d.ts +8 -0
- package/dist/services/insights/summary.d.ts.map +1 -0
- package/dist/services/insights/summary.js +117 -0
- package/dist/services/insights/summary.js.map +1 -0
- package/dist/services/insights/trends.d.ts +8 -0
- package/dist/services/insights/trends.d.ts.map +1 -0
- package/dist/services/insights/trends.js +96 -0
- package/dist/services/insights/trends.js.map +1 -0
- package/dist/services/insights.d.ts +96 -0
- package/dist/services/insights.d.ts.map +1 -0
- package/dist/services/insights.js +26 -0
- package/dist/services/insights.js.map +1 -0
- package/dist/services/insights.schemas.d.ts +710 -0
- package/dist/services/insights.schemas.d.ts.map +1 -0
- package/dist/services/insights.schemas.js +307 -0
- package/dist/services/insights.schemas.js.map +1 -0
- package/dist/services/track.d.ts +6 -12
- package/dist/services/track.d.ts.map +1 -1
- package/dist/services/track.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +12 -4
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const insightsPeriodSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>;
|
|
3
|
+
export declare const insightArtistEntrySchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
url: z.ZodOptional<z.ZodString>;
|
|
8
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
'#text': z.ZodString;
|
|
10
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const insightTrackEntrySchema: z.ZodObject<{
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
artist: z.ZodString;
|
|
16
|
+
album: z.ZodOptional<z.ZodString>;
|
|
17
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
url: z.ZodOptional<z.ZodString>;
|
|
20
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
'#text': z.ZodString;
|
|
22
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const insightAlbumEntrySchema: z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
artist: z.ZodOptional<z.ZodString>;
|
|
28
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
30
|
+
url: z.ZodOptional<z.ZodString>;
|
|
31
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
+
'#text': z.ZodString;
|
|
33
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const insightTagEntrySchema: z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
url: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const insightsDiversityStatsSchema: z.ZodObject<{
|
|
42
|
+
shannon: z.ZodNumber;
|
|
43
|
+
normalized: z.ZodNumber;
|
|
44
|
+
top1Share: z.ZodNumber;
|
|
45
|
+
top3Share: z.ZodNumber;
|
|
46
|
+
top5Share: z.ZodNumber;
|
|
47
|
+
uniqueArtists: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export declare const insightsSummaryRequestSchema: z.ZodObject<{
|
|
50
|
+
user: z.ZodString;
|
|
51
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
52
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export declare const insightsSummaryResponseSchema: z.ZodObject<{
|
|
55
|
+
user: z.ZodString;
|
|
56
|
+
period: z.ZodString;
|
|
57
|
+
label: z.ZodString;
|
|
58
|
+
lastfmPeriod: z.ZodString;
|
|
59
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
to: z.ZodNumber;
|
|
61
|
+
topArtists: z.ZodArray<z.ZodObject<{
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
65
|
+
url: z.ZodOptional<z.ZodString>;
|
|
66
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
67
|
+
'#text': z.ZodString;
|
|
68
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
69
|
+
}, z.core.$strip>>>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
topTracks: z.ZodArray<z.ZodObject<{
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
artist: z.ZodString;
|
|
74
|
+
album: z.ZodOptional<z.ZodString>;
|
|
75
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
77
|
+
url: z.ZodOptional<z.ZodString>;
|
|
78
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
79
|
+
'#text': z.ZodString;
|
|
80
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
topAlbums: z.ZodArray<z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
artist: z.ZodOptional<z.ZodString>;
|
|
86
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
88
|
+
url: z.ZodOptional<z.ZodString>;
|
|
89
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
|
+
'#text': z.ZodString;
|
|
91
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
92
|
+
}, z.core.$strip>>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
topTags: z.ZodArray<z.ZodObject<{
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
url: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
totalScrobbles: z.ZodNumber;
|
|
100
|
+
diversity: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
shannon: z.ZodNumber;
|
|
102
|
+
normalized: z.ZodNumber;
|
|
103
|
+
top1Share: z.ZodNumber;
|
|
104
|
+
top3Share: z.ZodNumber;
|
|
105
|
+
top5Share: z.ZodNumber;
|
|
106
|
+
uniqueArtists: z.ZodNumber;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const insightsNowPlayingRequestSchema: z.ZodObject<{
|
|
110
|
+
user: z.ZodString;
|
|
111
|
+
similarLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
112
|
+
bioMaxChars: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const insightsNowPlayingResponseSchema: z.ZodObject<{
|
|
115
|
+
user: z.ZodString;
|
|
116
|
+
nowPlaying: z.ZodBoolean;
|
|
117
|
+
track: z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
120
|
+
url: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
artist: z.ZodObject<{
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
125
|
+
url: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
album: z.ZodOptional<z.ZodString>;
|
|
128
|
+
image: z.ZodOptional<z.ZodString>;
|
|
129
|
+
bio: z.ZodString;
|
|
130
|
+
similar: z.ZodArray<z.ZodObject<{
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
url: z.ZodOptional<z.ZodString>;
|
|
133
|
+
match: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export declare const insightsHoursRequestSchema: z.ZodObject<{
|
|
137
|
+
user: z.ZodString;
|
|
138
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
sinceDays: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
maxPages: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export declare const insightsHoursResponseSchema: z.ZodObject<{
|
|
144
|
+
user: z.ZodString;
|
|
145
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
to: z.ZodNumber;
|
|
147
|
+
total: z.ZodNumber;
|
|
148
|
+
byHour: z.ZodArray<z.ZodNumber>;
|
|
149
|
+
byWeekday: z.ZodArray<z.ZodNumber>;
|
|
150
|
+
peakHour: z.ZodNullable<z.ZodNumber>;
|
|
151
|
+
peakHourCount: z.ZodNumber;
|
|
152
|
+
peakWeekday: z.ZodNullable<z.ZodNumber>;
|
|
153
|
+
peakWeekdayCount: z.ZodNumber;
|
|
154
|
+
peakWeekdayLabel: z.ZodNullable<z.ZodString>;
|
|
155
|
+
nightShare: z.ZodNumber;
|
|
156
|
+
morningShare: z.ZodNumber;
|
|
157
|
+
afternoonShare: z.ZodNumber;
|
|
158
|
+
eveningShare: z.ZodNumber;
|
|
159
|
+
weekendShare: z.ZodNumber;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
export declare const insightBingeItemSchema: z.ZodObject<{
|
|
162
|
+
artist: z.ZodString;
|
|
163
|
+
track: z.ZodOptional<z.ZodString>;
|
|
164
|
+
length: z.ZodNumber;
|
|
165
|
+
startUts: z.ZodNumber;
|
|
166
|
+
endUts: z.ZodNumber;
|
|
167
|
+
durationSeconds: z.ZodNumber;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export declare const insightsBingesRequestSchema: z.ZodObject<{
|
|
170
|
+
user: z.ZodString;
|
|
171
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
sinceDays: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
maxGapSeconds: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
trackKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"artist">, z.ZodLiteral<"track">, z.ZodBoolean]>>;
|
|
177
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
maxPages: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export declare const insightsBingesResponseSchema: z.ZodObject<{
|
|
181
|
+
user: z.ZodString;
|
|
182
|
+
totalScrobbles: z.ZodNumber;
|
|
183
|
+
binges: z.ZodArray<z.ZodObject<{
|
|
184
|
+
artist: z.ZodString;
|
|
185
|
+
track: z.ZodOptional<z.ZodString>;
|
|
186
|
+
length: z.ZodNumber;
|
|
187
|
+
startUts: z.ZodNumber;
|
|
188
|
+
endUts: z.ZodNumber;
|
|
189
|
+
durationSeconds: z.ZodNumber;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
export declare const insightRankedItemSchema: z.ZodObject<{
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
playcount: z.ZodNumber;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export declare const insightRankedWithDeltaSchema: z.ZodObject<{
|
|
197
|
+
name: z.ZodString;
|
|
198
|
+
playcount: z.ZodNumber;
|
|
199
|
+
currentRank: z.ZodNumber;
|
|
200
|
+
previousRank: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
deltaRank: z.ZodNumber;
|
|
202
|
+
deltaCount: z.ZodNumber;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
export declare const insightsTrendsRequestSchema: z.ZodObject<{
|
|
205
|
+
user: z.ZodString;
|
|
206
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"artists">, z.ZodLiteral<"tracks">, z.ZodLiteral<"albums">]>>;
|
|
207
|
+
currentPeriod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
208
|
+
previousPeriod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
209
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
210
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export declare const insightsTrendsResponseSchema: z.ZodObject<{
|
|
213
|
+
user: z.ZodString;
|
|
214
|
+
target: z.ZodUnion<readonly [z.ZodLiteral<"artists">, z.ZodLiteral<"tracks">, z.ZodLiteral<"albums">]>;
|
|
215
|
+
currentPeriod: z.ZodString;
|
|
216
|
+
previousPeriod: z.ZodString;
|
|
217
|
+
risers: z.ZodArray<z.ZodObject<{
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
playcount: z.ZodNumber;
|
|
220
|
+
currentRank: z.ZodNumber;
|
|
221
|
+
previousRank: z.ZodOptional<z.ZodNumber>;
|
|
222
|
+
deltaRank: z.ZodNumber;
|
|
223
|
+
deltaCount: z.ZodNumber;
|
|
224
|
+
}, z.core.$strip>>;
|
|
225
|
+
fallers: z.ZodArray<z.ZodObject<{
|
|
226
|
+
name: z.ZodString;
|
|
227
|
+
playcount: z.ZodNumber;
|
|
228
|
+
currentRank: z.ZodNumber;
|
|
229
|
+
previousRank: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
deltaRank: z.ZodNumber;
|
|
231
|
+
deltaCount: z.ZodNumber;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
newcomers: z.ZodArray<z.ZodObject<{
|
|
234
|
+
name: z.ZodString;
|
|
235
|
+
playcount: z.ZodNumber;
|
|
236
|
+
currentRank: z.ZodNumber;
|
|
237
|
+
previousRank: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
deltaRank: z.ZodNumber;
|
|
239
|
+
deltaCount: z.ZodNumber;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
departures: z.ZodArray<z.ZodObject<{
|
|
242
|
+
name: z.ZodString;
|
|
243
|
+
playcount: z.ZodNumber;
|
|
244
|
+
}, z.core.$strip>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
export declare const insightDiscoveredArtistSchema: z.ZodObject<{
|
|
247
|
+
name: z.ZodString;
|
|
248
|
+
firstSeen: z.ZodNumber;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export declare const insightsDiscoveriesRequestSchema: z.ZodObject<{
|
|
251
|
+
user: z.ZodString;
|
|
252
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
windowDays: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
baselineLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
256
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
maxPages: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
export declare const insightsDiscoveriesResponseSchema: z.ZodObject<{
|
|
260
|
+
user: z.ZodString;
|
|
261
|
+
windowDays: z.ZodNumber;
|
|
262
|
+
baselineSize: z.ZodNumber;
|
|
263
|
+
totalDiscovered: z.ZodNumber;
|
|
264
|
+
discoveries: z.ZodArray<z.ZodObject<{
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
firstSeen: z.ZodNumber;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
export declare const insightMoodAxesSchema: z.ZodObject<{
|
|
270
|
+
energy: z.ZodNumber;
|
|
271
|
+
valence: z.ZodNumber;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
export declare const insightsMoodRequestSchema: z.ZodObject<{
|
|
274
|
+
user: z.ZodString;
|
|
275
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
276
|
+
topArtistsLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
export declare const insightsMoodResponseSchema: z.ZodObject<{
|
|
279
|
+
user: z.ZodString;
|
|
280
|
+
period: z.ZodString;
|
|
281
|
+
axes: z.ZodObject<{
|
|
282
|
+
energy: z.ZodNumber;
|
|
283
|
+
valence: z.ZodNumber;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
label: z.ZodString;
|
|
286
|
+
categories: z.ZodArray<z.ZodString>;
|
|
287
|
+
confidence: z.ZodNumber;
|
|
288
|
+
tagSourceCount: z.ZodNumber;
|
|
289
|
+
artistCount: z.ZodNumber;
|
|
290
|
+
primarySource: z.ZodUnion<readonly [z.ZodLiteral<"user-tags">, z.ZodLiteral<"artist-tags">, z.ZodLiteral<"mixed">]>;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
export declare const insightPersonalityFeaturesSchema: z.ZodObject<{
|
|
293
|
+
totalScrobbles: z.ZodNumber;
|
|
294
|
+
uniqueArtists: z.ZodNumber;
|
|
295
|
+
top1Share: z.ZodNumber;
|
|
296
|
+
top3Share: z.ZodNumber;
|
|
297
|
+
top5Share: z.ZodNumber;
|
|
298
|
+
normalizedDiversity: z.ZodNumber;
|
|
299
|
+
newArtistsLast30d: z.ZodNumber;
|
|
300
|
+
totalArtistsLast30d: z.ZodNumber;
|
|
301
|
+
nightHourShare: z.ZodNumber;
|
|
302
|
+
morningHourShare: z.ZodNumber;
|
|
303
|
+
weekdayShare: z.ZodNumber;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
export declare const insightPersonalityArchetypeSchema: z.ZodObject<{
|
|
306
|
+
id: z.ZodString;
|
|
307
|
+
name: z.ZodString;
|
|
308
|
+
emoji: z.ZodString;
|
|
309
|
+
blurb: z.ZodString;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export declare const insightsPersonalityRequestSchema: z.ZodObject<{
|
|
312
|
+
user: z.ZodString;
|
|
313
|
+
}, z.core.$strip>;
|
|
314
|
+
export declare const insightsPersonalityResponseSchema: z.ZodObject<{
|
|
315
|
+
user: z.ZodString;
|
|
316
|
+
winner: z.ZodUnion<readonly [z.ZodLiteral<"Devotee">, z.ZodLiteral<"Explorer">, z.ZodLiteral<"Drifter">, z.ZodLiteral<"DJ">, z.ZodLiteral<"Nocturnal">, z.ZodLiteral<"Archivist">]>;
|
|
317
|
+
archetype: z.ZodObject<{
|
|
318
|
+
id: z.ZodString;
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
emoji: z.ZodString;
|
|
321
|
+
blurb: z.ZodString;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
scores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
324
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
325
|
+
features: z.ZodObject<{
|
|
326
|
+
totalScrobbles: z.ZodNumber;
|
|
327
|
+
uniqueArtists: z.ZodNumber;
|
|
328
|
+
top1Share: z.ZodNumber;
|
|
329
|
+
top3Share: z.ZodNumber;
|
|
330
|
+
top5Share: z.ZodNumber;
|
|
331
|
+
normalizedDiversity: z.ZodNumber;
|
|
332
|
+
newArtistsLast30d: z.ZodNumber;
|
|
333
|
+
totalArtistsLast30d: z.ZodNumber;
|
|
334
|
+
nightHourShare: z.ZodNumber;
|
|
335
|
+
morningHourShare: z.ZodNumber;
|
|
336
|
+
weekdayShare: z.ZodNumber;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
}, z.core.$strip>;
|
|
339
|
+
export declare const insightSharedArtistSchema: z.ZodObject<{
|
|
340
|
+
name: z.ZodString;
|
|
341
|
+
userAPlaycount: z.ZodNumber;
|
|
342
|
+
userBPlaycount: z.ZodNumber;
|
|
343
|
+
weight: z.ZodNumber;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
export declare const insightsCompareRequestSchema: z.ZodObject<{
|
|
346
|
+
userA: z.ZodString;
|
|
347
|
+
userB: z.ZodString;
|
|
348
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
349
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
export declare const insightsCompareResponseSchema: z.ZodObject<{
|
|
352
|
+
userA: z.ZodString;
|
|
353
|
+
userB: z.ZodString;
|
|
354
|
+
period: z.ZodString;
|
|
355
|
+
compatibilityScore: z.ZodNumber;
|
|
356
|
+
jaccard: z.ZodNumber;
|
|
357
|
+
sharedCount: z.ZodNumber;
|
|
358
|
+
userACount: z.ZodNumber;
|
|
359
|
+
userBCount: z.ZodNumber;
|
|
360
|
+
sharedArtists: z.ZodArray<z.ZodObject<{
|
|
361
|
+
name: z.ZodString;
|
|
362
|
+
userAPlaycount: z.ZodNumber;
|
|
363
|
+
userBPlaycount: z.ZodNumber;
|
|
364
|
+
weight: z.ZodNumber;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
onlyUserA: z.ZodArray<z.ZodString>;
|
|
367
|
+
onlyUserB: z.ZodArray<z.ZodString>;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
export declare const insightsGetSummaryRequestSchema: z.ZodObject<{
|
|
370
|
+
user: z.ZodString;
|
|
371
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
372
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
export declare const insightsGetSummaryResponseSchema: z.ZodObject<{
|
|
375
|
+
user: z.ZodString;
|
|
376
|
+
period: z.ZodString;
|
|
377
|
+
label: z.ZodString;
|
|
378
|
+
lastfmPeriod: z.ZodString;
|
|
379
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
to: z.ZodNumber;
|
|
381
|
+
topArtists: z.ZodArray<z.ZodObject<{
|
|
382
|
+
name: z.ZodString;
|
|
383
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
385
|
+
url: z.ZodOptional<z.ZodString>;
|
|
386
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
387
|
+
'#text': z.ZodString;
|
|
388
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
389
|
+
}, z.core.$strip>>>;
|
|
390
|
+
}, z.core.$strip>>;
|
|
391
|
+
topTracks: z.ZodArray<z.ZodObject<{
|
|
392
|
+
name: z.ZodString;
|
|
393
|
+
artist: z.ZodString;
|
|
394
|
+
album: z.ZodOptional<z.ZodString>;
|
|
395
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
397
|
+
url: z.ZodOptional<z.ZodString>;
|
|
398
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
399
|
+
'#text': z.ZodString;
|
|
400
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
401
|
+
}, z.core.$strip>>>;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
topAlbums: z.ZodArray<z.ZodObject<{
|
|
404
|
+
name: z.ZodString;
|
|
405
|
+
artist: z.ZodOptional<z.ZodString>;
|
|
406
|
+
playcount: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
408
|
+
url: z.ZodOptional<z.ZodString>;
|
|
409
|
+
image: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
410
|
+
'#text': z.ZodString;
|
|
411
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
412
|
+
}, z.core.$strip>>>;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
topTags: z.ZodArray<z.ZodObject<{
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
417
|
+
url: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
totalScrobbles: z.ZodNumber;
|
|
420
|
+
diversity: z.ZodOptional<z.ZodObject<{
|
|
421
|
+
shannon: z.ZodNumber;
|
|
422
|
+
normalized: z.ZodNumber;
|
|
423
|
+
top1Share: z.ZodNumber;
|
|
424
|
+
top3Share: z.ZodNumber;
|
|
425
|
+
top5Share: z.ZodNumber;
|
|
426
|
+
uniqueArtists: z.ZodNumber;
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
export declare const insightsGetNowPlayingRequestSchema: z.ZodObject<{
|
|
430
|
+
user: z.ZodString;
|
|
431
|
+
similarLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
432
|
+
bioMaxChars: z.ZodOptional<z.ZodNumber>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
export declare const insightsGetNowPlayingResponseSchema: z.ZodObject<{
|
|
435
|
+
user: z.ZodString;
|
|
436
|
+
nowPlaying: z.ZodBoolean;
|
|
437
|
+
track: z.ZodObject<{
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
440
|
+
url: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
artist: z.ZodObject<{
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
mbid: z.ZodOptional<z.ZodString>;
|
|
445
|
+
url: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
album: z.ZodOptional<z.ZodString>;
|
|
448
|
+
image: z.ZodOptional<z.ZodString>;
|
|
449
|
+
bio: z.ZodString;
|
|
450
|
+
similar: z.ZodArray<z.ZodObject<{
|
|
451
|
+
name: z.ZodString;
|
|
452
|
+
url: z.ZodOptional<z.ZodString>;
|
|
453
|
+
match: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
export declare const insightsGetHoursHistogramRequestSchema: z.ZodObject<{
|
|
457
|
+
user: z.ZodString;
|
|
458
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
sinceDays: z.ZodOptional<z.ZodNumber>;
|
|
461
|
+
maxPages: z.ZodOptional<z.ZodNumber>;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
export declare const insightsGetHoursHistogramResponseSchema: z.ZodObject<{
|
|
464
|
+
user: z.ZodString;
|
|
465
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
to: z.ZodNumber;
|
|
467
|
+
total: z.ZodNumber;
|
|
468
|
+
byHour: z.ZodArray<z.ZodNumber>;
|
|
469
|
+
byWeekday: z.ZodArray<z.ZodNumber>;
|
|
470
|
+
peakHour: z.ZodNullable<z.ZodNumber>;
|
|
471
|
+
peakHourCount: z.ZodNumber;
|
|
472
|
+
peakWeekday: z.ZodNullable<z.ZodNumber>;
|
|
473
|
+
peakWeekdayCount: z.ZodNumber;
|
|
474
|
+
peakWeekdayLabel: z.ZodNullable<z.ZodString>;
|
|
475
|
+
nightShare: z.ZodNumber;
|
|
476
|
+
morningShare: z.ZodNumber;
|
|
477
|
+
afternoonShare: z.ZodNumber;
|
|
478
|
+
eveningShare: z.ZodNumber;
|
|
479
|
+
weekendShare: z.ZodNumber;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
export declare const insightsGetBingesRequestSchema: z.ZodObject<{
|
|
482
|
+
user: z.ZodString;
|
|
483
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
484
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
sinceDays: z.ZodOptional<z.ZodNumber>;
|
|
486
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
487
|
+
maxGapSeconds: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
trackKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"artist">, z.ZodLiteral<"track">, z.ZodBoolean]>>;
|
|
489
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
maxPages: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
export declare const insightsGetBingesResponseSchema: z.ZodObject<{
|
|
493
|
+
user: z.ZodString;
|
|
494
|
+
totalScrobbles: z.ZodNumber;
|
|
495
|
+
binges: z.ZodArray<z.ZodObject<{
|
|
496
|
+
artist: z.ZodString;
|
|
497
|
+
track: z.ZodOptional<z.ZodString>;
|
|
498
|
+
length: z.ZodNumber;
|
|
499
|
+
startUts: z.ZodNumber;
|
|
500
|
+
endUts: z.ZodNumber;
|
|
501
|
+
durationSeconds: z.ZodNumber;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
}, z.core.$strip>;
|
|
504
|
+
export declare const insightsGetTrendsRequestSchema: z.ZodObject<{
|
|
505
|
+
user: z.ZodString;
|
|
506
|
+
target: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"artists">, z.ZodLiteral<"tracks">, z.ZodLiteral<"albums">]>>;
|
|
507
|
+
currentPeriod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
508
|
+
previousPeriod: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
509
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
510
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
export declare const insightsGetTrendsResponseSchema: z.ZodObject<{
|
|
513
|
+
user: z.ZodString;
|
|
514
|
+
target: z.ZodUnion<readonly [z.ZodLiteral<"artists">, z.ZodLiteral<"tracks">, z.ZodLiteral<"albums">]>;
|
|
515
|
+
currentPeriod: z.ZodString;
|
|
516
|
+
previousPeriod: z.ZodString;
|
|
517
|
+
risers: z.ZodArray<z.ZodObject<{
|
|
518
|
+
name: z.ZodString;
|
|
519
|
+
playcount: z.ZodNumber;
|
|
520
|
+
currentRank: z.ZodNumber;
|
|
521
|
+
previousRank: z.ZodOptional<z.ZodNumber>;
|
|
522
|
+
deltaRank: z.ZodNumber;
|
|
523
|
+
deltaCount: z.ZodNumber;
|
|
524
|
+
}, z.core.$strip>>;
|
|
525
|
+
fallers: z.ZodArray<z.ZodObject<{
|
|
526
|
+
name: z.ZodString;
|
|
527
|
+
playcount: z.ZodNumber;
|
|
528
|
+
currentRank: z.ZodNumber;
|
|
529
|
+
previousRank: z.ZodOptional<z.ZodNumber>;
|
|
530
|
+
deltaRank: z.ZodNumber;
|
|
531
|
+
deltaCount: z.ZodNumber;
|
|
532
|
+
}, z.core.$strip>>;
|
|
533
|
+
newcomers: z.ZodArray<z.ZodObject<{
|
|
534
|
+
name: z.ZodString;
|
|
535
|
+
playcount: z.ZodNumber;
|
|
536
|
+
currentRank: z.ZodNumber;
|
|
537
|
+
previousRank: z.ZodOptional<z.ZodNumber>;
|
|
538
|
+
deltaRank: z.ZodNumber;
|
|
539
|
+
deltaCount: z.ZodNumber;
|
|
540
|
+
}, z.core.$strip>>;
|
|
541
|
+
departures: z.ZodArray<z.ZodObject<{
|
|
542
|
+
name: z.ZodString;
|
|
543
|
+
playcount: z.ZodNumber;
|
|
544
|
+
}, z.core.$strip>>;
|
|
545
|
+
}, z.core.$strip>;
|
|
546
|
+
export declare const insightsGetDiscoveriesRequestSchema: z.ZodObject<{
|
|
547
|
+
user: z.ZodString;
|
|
548
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
549
|
+
to: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
windowDays: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
baselineLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
552
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
maxPages: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
export declare const insightsGetDiscoveriesResponseSchema: z.ZodObject<{
|
|
556
|
+
user: z.ZodString;
|
|
557
|
+
windowDays: z.ZodNumber;
|
|
558
|
+
baselineSize: z.ZodNumber;
|
|
559
|
+
totalDiscovered: z.ZodNumber;
|
|
560
|
+
discoveries: z.ZodArray<z.ZodObject<{
|
|
561
|
+
name: z.ZodString;
|
|
562
|
+
firstSeen: z.ZodNumber;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
}, z.core.$strip>;
|
|
565
|
+
export declare const insightsGetMoodRequestSchema: z.ZodObject<{
|
|
566
|
+
user: z.ZodString;
|
|
567
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
568
|
+
topArtistsLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
export declare const insightsGetMoodResponseSchema: z.ZodObject<{
|
|
571
|
+
user: z.ZodString;
|
|
572
|
+
period: z.ZodString;
|
|
573
|
+
axes: z.ZodObject<{
|
|
574
|
+
energy: z.ZodNumber;
|
|
575
|
+
valence: z.ZodNumber;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
label: z.ZodString;
|
|
578
|
+
categories: z.ZodArray<z.ZodString>;
|
|
579
|
+
confidence: z.ZodNumber;
|
|
580
|
+
tagSourceCount: z.ZodNumber;
|
|
581
|
+
artistCount: z.ZodNumber;
|
|
582
|
+
primarySource: z.ZodUnion<readonly [z.ZodLiteral<"user-tags">, z.ZodLiteral<"artist-tags">, z.ZodLiteral<"mixed">]>;
|
|
583
|
+
}, z.core.$strip>;
|
|
584
|
+
export declare const insightsGetPersonalityRequestSchema: z.ZodObject<{
|
|
585
|
+
user: z.ZodString;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
export declare const insightsGetPersonalityResponseSchema: z.ZodObject<{
|
|
588
|
+
user: z.ZodString;
|
|
589
|
+
winner: z.ZodUnion<readonly [z.ZodLiteral<"Devotee">, z.ZodLiteral<"Explorer">, z.ZodLiteral<"Drifter">, z.ZodLiteral<"DJ">, z.ZodLiteral<"Nocturnal">, z.ZodLiteral<"Archivist">]>;
|
|
590
|
+
archetype: z.ZodObject<{
|
|
591
|
+
id: z.ZodString;
|
|
592
|
+
name: z.ZodString;
|
|
593
|
+
emoji: z.ZodString;
|
|
594
|
+
blurb: z.ZodString;
|
|
595
|
+
}, z.core.$strip>;
|
|
596
|
+
scores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
597
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
598
|
+
features: z.ZodObject<{
|
|
599
|
+
totalScrobbles: z.ZodNumber;
|
|
600
|
+
uniqueArtists: z.ZodNumber;
|
|
601
|
+
top1Share: z.ZodNumber;
|
|
602
|
+
top3Share: z.ZodNumber;
|
|
603
|
+
top5Share: z.ZodNumber;
|
|
604
|
+
normalizedDiversity: z.ZodNumber;
|
|
605
|
+
newArtistsLast30d: z.ZodNumber;
|
|
606
|
+
totalArtistsLast30d: z.ZodNumber;
|
|
607
|
+
nightHourShare: z.ZodNumber;
|
|
608
|
+
morningHourShare: z.ZodNumber;
|
|
609
|
+
weekdayShare: z.ZodNumber;
|
|
610
|
+
}, z.core.$strip>;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
export declare const insightsCompareUsersRequestSchema: z.ZodObject<{
|
|
613
|
+
userA: z.ZodString;
|
|
614
|
+
userB: z.ZodString;
|
|
615
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
616
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
export declare const insightsCompareUsersResponseSchema: z.ZodObject<{
|
|
619
|
+
userA: z.ZodString;
|
|
620
|
+
userB: z.ZodString;
|
|
621
|
+
period: z.ZodString;
|
|
622
|
+
compatibilityScore: z.ZodNumber;
|
|
623
|
+
jaccard: z.ZodNumber;
|
|
624
|
+
sharedCount: z.ZodNumber;
|
|
625
|
+
userACount: z.ZodNumber;
|
|
626
|
+
userBCount: z.ZodNumber;
|
|
627
|
+
sharedArtists: z.ZodArray<z.ZodObject<{
|
|
628
|
+
name: z.ZodString;
|
|
629
|
+
userAPlaycount: z.ZodNumber;
|
|
630
|
+
userBPlaycount: z.ZodNumber;
|
|
631
|
+
weight: z.ZodNumber;
|
|
632
|
+
}, z.core.$strip>>;
|
|
633
|
+
onlyUserA: z.ZodArray<z.ZodString>;
|
|
634
|
+
onlyUserB: z.ZodArray<z.ZodString>;
|
|
635
|
+
}, z.core.$strip>;
|
|
636
|
+
export declare const insightsGetCompareUsersRequestSchema: z.ZodObject<{
|
|
637
|
+
userA: z.ZodString;
|
|
638
|
+
userB: z.ZodString;
|
|
639
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"yearly">]>>;
|
|
640
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
export declare const insightsGetCompareUsersResponseSchema: z.ZodObject<{
|
|
643
|
+
userA: z.ZodString;
|
|
644
|
+
userB: z.ZodString;
|
|
645
|
+
period: z.ZodString;
|
|
646
|
+
compatibilityScore: z.ZodNumber;
|
|
647
|
+
jaccard: z.ZodNumber;
|
|
648
|
+
sharedCount: z.ZodNumber;
|
|
649
|
+
userACount: z.ZodNumber;
|
|
650
|
+
userBCount: z.ZodNumber;
|
|
651
|
+
sharedArtists: z.ZodArray<z.ZodObject<{
|
|
652
|
+
name: z.ZodString;
|
|
653
|
+
userAPlaycount: z.ZodNumber;
|
|
654
|
+
userBPlaycount: z.ZodNumber;
|
|
655
|
+
weight: z.ZodNumber;
|
|
656
|
+
}, z.core.$strip>>;
|
|
657
|
+
onlyUserA: z.ZodArray<z.ZodString>;
|
|
658
|
+
onlyUserB: z.ZodArray<z.ZodString>;
|
|
659
|
+
}, z.core.$strip>;
|
|
660
|
+
export type InsightsPeriod = z.infer<typeof insightsPeriodSchema>;
|
|
661
|
+
export type InsightArtistEntry = z.infer<typeof insightArtistEntrySchema>;
|
|
662
|
+
export type InsightTrackEntry = z.infer<typeof insightTrackEntrySchema>;
|
|
663
|
+
export type InsightAlbumEntry = z.infer<typeof insightAlbumEntrySchema>;
|
|
664
|
+
export type InsightTagEntry = z.infer<typeof insightTagEntrySchema>;
|
|
665
|
+
export type InsightsDiversityStats = z.infer<typeof insightsDiversityStatsSchema>;
|
|
666
|
+
export type InsightsSummaryRequest = z.infer<typeof insightsSummaryRequestSchema>;
|
|
667
|
+
export type InsightsSummaryResponse = z.infer<typeof insightsSummaryResponseSchema>;
|
|
668
|
+
export type InsightsGetSummaryRequest = InsightsSummaryRequest;
|
|
669
|
+
export type InsightsGetSummaryResponse = InsightsSummaryResponse;
|
|
670
|
+
export type InsightsNowPlayingRequest = z.infer<typeof insightsNowPlayingRequestSchema>;
|
|
671
|
+
export type InsightsNowPlayingResponse = z.infer<typeof insightsNowPlayingResponseSchema>;
|
|
672
|
+
export type InsightsGetNowPlayingRequest = InsightsNowPlayingRequest;
|
|
673
|
+
export type InsightsGetNowPlayingResponse = InsightsNowPlayingResponse;
|
|
674
|
+
export type InsightsHoursRequest = z.infer<typeof insightsHoursRequestSchema>;
|
|
675
|
+
export type InsightsHoursResponse = z.infer<typeof insightsHoursResponseSchema>;
|
|
676
|
+
export type InsightsGetHoursHistogramRequest = InsightsHoursRequest;
|
|
677
|
+
export type InsightsGetHoursHistogramResponse = InsightsHoursResponse;
|
|
678
|
+
export type InsightBingeItem = z.infer<typeof insightBingeItemSchema>;
|
|
679
|
+
export type InsightsBingesRequest = z.infer<typeof insightsBingesRequestSchema>;
|
|
680
|
+
export type InsightsBingesResponse = z.infer<typeof insightsBingesResponseSchema>;
|
|
681
|
+
export type InsightsGetBingesRequest = InsightsBingesRequest;
|
|
682
|
+
export type InsightsGetBingesResponse = InsightsBingesResponse;
|
|
683
|
+
export type InsightRankedItem = z.infer<typeof insightRankedItemSchema>;
|
|
684
|
+
export type InsightRankedWithDelta = z.infer<typeof insightRankedWithDeltaSchema>;
|
|
685
|
+
export type InsightsTrendsRequest = z.infer<typeof insightsTrendsRequestSchema>;
|
|
686
|
+
export type InsightsTrendsResponse = z.infer<typeof insightsTrendsResponseSchema>;
|
|
687
|
+
export type InsightsGetTrendsRequest = InsightsTrendsRequest;
|
|
688
|
+
export type InsightsGetTrendsResponse = InsightsTrendsResponse;
|
|
689
|
+
export type InsightDiscoveredArtist = z.infer<typeof insightDiscoveredArtistSchema>;
|
|
690
|
+
export type InsightsDiscoveriesRequest = z.infer<typeof insightsDiscoveriesRequestSchema>;
|
|
691
|
+
export type InsightsDiscoveriesResponse = z.infer<typeof insightsDiscoveriesResponseSchema>;
|
|
692
|
+
export type InsightsGetDiscoveriesRequest = InsightsDiscoveriesRequest;
|
|
693
|
+
export type InsightsGetDiscoveriesResponse = InsightsDiscoveriesResponse;
|
|
694
|
+
export type InsightMoodAxes = z.infer<typeof insightMoodAxesSchema>;
|
|
695
|
+
export type InsightsMoodRequest = z.infer<typeof insightsMoodRequestSchema>;
|
|
696
|
+
export type InsightsMoodResponse = z.infer<typeof insightsMoodResponseSchema>;
|
|
697
|
+
export type InsightsGetMoodRequest = InsightsMoodRequest;
|
|
698
|
+
export type InsightsGetMoodResponse = InsightsMoodResponse;
|
|
699
|
+
export type InsightPersonalityFeatures = z.infer<typeof insightPersonalityFeaturesSchema>;
|
|
700
|
+
export type InsightPersonalityArchetype = z.infer<typeof insightPersonalityArchetypeSchema>;
|
|
701
|
+
export type InsightsPersonalityRequest = z.infer<typeof insightsPersonalityRequestSchema>;
|
|
702
|
+
export type InsightsPersonalityResponse = z.infer<typeof insightsPersonalityResponseSchema>;
|
|
703
|
+
export type InsightsGetPersonalityRequest = InsightsPersonalityRequest;
|
|
704
|
+
export type InsightsGetPersonalityResponse = InsightsPersonalityResponse;
|
|
705
|
+
export type InsightSharedArtist = z.infer<typeof insightSharedArtistSchema>;
|
|
706
|
+
export type InsightsCompareRequest = z.infer<typeof insightsCompareRequestSchema>;
|
|
707
|
+
export type InsightsCompareResponse = z.infer<typeof insightsCompareResponseSchema>;
|
|
708
|
+
export type InsightsCompareUsersRequest = InsightsCompareRequest;
|
|
709
|
+
export type InsightsCompareUsersResponse = InsightsCompareResponse;
|
|
710
|
+
//# sourceMappingURL=insights.schemas.d.ts.map
|