rhythia-api 186.0.0 → 188.0.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/.prettierrc.json +6 -6
- package/api/acceptInvite.ts +79 -0
- package/api/addCollectionMap.ts +82 -82
- package/api/approveMap.ts +78 -78
- package/api/chartPublicStats.ts +32 -32
- package/api/createBeatmap.ts +208 -168
- package/api/createBeatmapPage.ts +64 -64
- package/api/createClan.ts +81 -81
- package/api/createCollection.ts +58 -58
- package/api/createInvite.ts +66 -0
- package/api/deleteBeatmapPage.ts +77 -77
- package/api/deleteCollection.ts +59 -59
- package/api/deleteCollectionMap.ts +71 -71
- package/api/editAboutMe.ts +91 -91
- package/api/editClan.ts +90 -90
- package/api/editCollection.ts +77 -77
- package/api/editProfile.ts +123 -123
- package/api/getAvatarUploadUrl.ts +85 -85
- package/api/getBadgedUsers.ts +56 -56
- package/api/getBeatmapComments.ts +57 -57
- package/api/getBeatmapPage.ts +106 -106
- package/api/getBeatmapPageById.ts +99 -99
- package/api/getBeatmapStarRating.ts +53 -53
- package/api/getBeatmaps.ts +159 -159
- package/api/getClan.ts +77 -77
- package/api/getClans.ts +44 -0
- package/api/getCollection.ts +130 -130
- package/api/getCollections.ts +132 -132
- package/api/getLeaderboard.ts +136 -136
- package/api/getMapUploadUrl.ts +93 -93
- package/api/getPassToken.ts +55 -55
- package/api/getProfile.ts +146 -146
- package/api/getPublicStats.ts +180 -180
- package/api/getRawStarRating.ts +57 -57
- package/api/getScore.ts +85 -85
- package/api/getTimestamp.ts +23 -23
- package/api/getUserScores.ts +175 -175
- package/api/nominateMap.ts +82 -82
- package/api/postBeatmapComment.ts +62 -59
- package/api/rankMapsArchive.ts +64 -64
- package/api/searchUsers.ts +56 -56
- package/api/setPasskey.ts +59 -59
- package/api/submitScore.ts +433 -433
- package/api/updateBeatmapPage.ts +229 -229
- package/handleApi.ts +21 -20
- package/index.html +2 -2
- package/index.ts +914 -863
- package/package.json +5 -2
- package/types/database.ts +43 -0
- package/utils/getUserBySession.ts +48 -48
- package/utils/requestUtils.ts +87 -87
- package/utils/security.ts +20 -20
- package/utils/star-calc/index.ts +72 -72
- package/utils/star-calc/osuUtils.ts +53 -53
- package/utils/star-calc/sspmParser.ts +398 -398
- package/utils/star-calc/sspmv1Parser.ts +165 -165
- package/utils/supabase.ts +13 -13
- package/utils/test +4 -4
- package/utils/validateToken.ts +7 -7
- package/vercel.json +12 -12
package/index.ts
CHANGED
|
@@ -1,459 +1,306 @@
|
|
|
1
1
|
import { handleApi } from "./handleApi"
|
|
2
2
|
|
|
3
|
-
// ./api/
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
export const Schema = {
|
|
7
|
-
input: z.strictObject({
|
|
8
|
-
data: z.object({
|
|
9
|
-
email: z.string(),
|
|
10
|
-
passkey: z.string(),
|
|
11
|
-
computerName: z.string(),
|
|
12
|
-
}),
|
|
13
|
-
}),
|
|
14
|
-
output: z.object({
|
|
15
|
-
token: z.string().optional(),
|
|
16
|
-
error: z.string().optional(),
|
|
17
|
-
}),
|
|
18
|
-
};*/
|
|
19
|
-
import { Schema as GetPassToken } from "./api/getPassToken"
|
|
20
|
-
export { Schema as SchemaGetPassToken } from "./api/getPassToken"
|
|
21
|
-
export const getPassToken = handleApi({url:"/api/getPassToken",...GetPassToken})
|
|
22
|
-
|
|
23
|
-
// ./api/getMapUploadUrl.ts API
|
|
24
|
-
|
|
25
|
-
/*
|
|
26
|
-
export const Schema = {
|
|
27
|
-
input: z.strictObject({
|
|
28
|
-
mapName: z.string().optional(),
|
|
29
|
-
session: z.string(),
|
|
30
|
-
contentLength: z.number(),
|
|
31
|
-
contentType: z.string(),
|
|
32
|
-
intrinsicToken: z.string(),
|
|
33
|
-
}),
|
|
34
|
-
output: z.strictObject({
|
|
35
|
-
error: z.string().optional(),
|
|
36
|
-
url: z.string().optional(),
|
|
37
|
-
objectKey: z.string().optional(),
|
|
38
|
-
}),
|
|
39
|
-
};*/
|
|
40
|
-
import { Schema as GetMapUploadUrl } from "./api/getMapUploadUrl"
|
|
41
|
-
export { Schema as SchemaGetMapUploadUrl } from "./api/getMapUploadUrl"
|
|
42
|
-
export const getMapUploadUrl = handleApi({url:"/api/getMapUploadUrl",...GetMapUploadUrl})
|
|
43
|
-
|
|
44
|
-
// ./api/createCollection.ts API
|
|
3
|
+
// ./api/acceptInvite.ts API
|
|
45
4
|
|
|
46
5
|
/*
|
|
47
|
-
export const Schema = {
|
|
48
|
-
input: z.strictObject({
|
|
49
|
-
session: z.string(),
|
|
50
|
-
|
|
51
|
-
}),
|
|
52
|
-
output: z.object({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}),
|
|
6
|
+
export const Schema = {
|
|
7
|
+
input: z.strictObject({
|
|
8
|
+
session: z.string(),
|
|
9
|
+
code: z.string(),
|
|
10
|
+
}),
|
|
11
|
+
output: z.object({
|
|
12
|
+
error: z.string().optional(),
|
|
13
|
+
}),
|
|
56
14
|
};*/
|
|
57
|
-
import { Schema as
|
|
58
|
-
export { Schema as
|
|
59
|
-
export const
|
|
15
|
+
import { Schema as AcceptInvite } from "./api/acceptInvite"
|
|
16
|
+
export { Schema as SchemaAcceptInvite } from "./api/acceptInvite"
|
|
17
|
+
export const acceptInvite = handleApi({url:"/api/acceptInvite",...AcceptInvite})
|
|
60
18
|
|
|
61
|
-
// ./api/
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
export const Schema = {
|
|
65
|
-
input: z.strictObject({
|
|
66
|
-
session: z.string(),
|
|
67
|
-
collection: z.number(),
|
|
68
|
-
beatmapPage: z.number(),
|
|
69
|
-
}),
|
|
70
|
-
output: z.object({
|
|
71
|
-
error: z.string().optional(),
|
|
72
|
-
}),
|
|
73
|
-
};*/
|
|
74
|
-
import { Schema as DeleteCollectionMap } from "./api/deleteCollectionMap"
|
|
75
|
-
export { Schema as SchemaDeleteCollectionMap } from "./api/deleteCollectionMap"
|
|
76
|
-
export const deleteCollectionMap = handleApi({url:"/api/deleteCollectionMap",...DeleteCollectionMap})
|
|
77
|
-
|
|
78
|
-
// ./api/getAvatarUploadUrl.ts API
|
|
19
|
+
// ./api/addCollectionMap.ts API
|
|
79
20
|
|
|
80
21
|
/*
|
|
81
|
-
export const Schema = {
|
|
82
|
-
input: z.strictObject({
|
|
83
|
-
session: z.string(),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
url: z.string().optional(),
|
|
91
|
-
objectKey: z.string().optional(),
|
|
92
|
-
}),
|
|
22
|
+
export const Schema = {
|
|
23
|
+
input: z.strictObject({
|
|
24
|
+
session: z.string(),
|
|
25
|
+
collection: z.number(),
|
|
26
|
+
beatmapPage: z.number(),
|
|
27
|
+
}),
|
|
28
|
+
output: z.object({
|
|
29
|
+
error: z.string().optional(),
|
|
30
|
+
}),
|
|
93
31
|
};*/
|
|
94
|
-
import { Schema as
|
|
95
|
-
export { Schema as
|
|
96
|
-
export const
|
|
32
|
+
import { Schema as AddCollectionMap } from "./api/addCollectionMap"
|
|
33
|
+
export { Schema as SchemaAddCollectionMap } from "./api/addCollectionMap"
|
|
34
|
+
export const addCollectionMap = handleApi({url:"/api/addCollectionMap",...AddCollectionMap})
|
|
97
35
|
|
|
98
36
|
// ./api/approveMap.ts API
|
|
99
37
|
|
|
100
38
|
/*
|
|
101
|
-
export const Schema = {
|
|
102
|
-
input: z.strictObject({
|
|
103
|
-
session: z.string(),
|
|
104
|
-
mapId: z.number(),
|
|
105
|
-
}),
|
|
106
|
-
output: z.object({
|
|
107
|
-
error: z.string().optional(),
|
|
108
|
-
}),
|
|
39
|
+
export const Schema = {
|
|
40
|
+
input: z.strictObject({
|
|
41
|
+
session: z.string(),
|
|
42
|
+
mapId: z.number(),
|
|
43
|
+
}),
|
|
44
|
+
output: z.object({
|
|
45
|
+
error: z.string().optional(),
|
|
46
|
+
}),
|
|
109
47
|
};*/
|
|
110
48
|
import { Schema as ApproveMap } from "./api/approveMap"
|
|
111
49
|
export { Schema as SchemaApproveMap } from "./api/approveMap"
|
|
112
50
|
export const approveMap = handleApi({url:"/api/approveMap",...ApproveMap})
|
|
113
51
|
|
|
114
|
-
// ./api/
|
|
52
|
+
// ./api/chartPublicStats.ts API
|
|
115
53
|
|
|
116
54
|
/*
|
|
117
|
-
export const Schema = {
|
|
118
|
-
input: z.strictObject({
|
|
119
|
-
|
|
120
|
-
mapId: z.number(),
|
|
121
|
-
}),
|
|
122
|
-
output: z.object({
|
|
123
|
-
error: z.string().optional(),
|
|
124
|
-
}),
|
|
55
|
+
export const Schema = {
|
|
56
|
+
input: z.strictObject({}),
|
|
57
|
+
output: z.object({}),
|
|
125
58
|
};*/
|
|
126
|
-
import { Schema as
|
|
127
|
-
export { Schema as
|
|
128
|
-
export const
|
|
59
|
+
import { Schema as ChartPublicStats } from "./api/chartPublicStats"
|
|
60
|
+
export { Schema as SchemaChartPublicStats } from "./api/chartPublicStats"
|
|
61
|
+
export const chartPublicStats = handleApi({url:"/api/chartPublicStats",...ChartPublicStats})
|
|
62
|
+
|
|
63
|
+
// ./api/createBeatmap.ts API
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
*/
|
|
67
|
+
import { Schema as CreateBeatmap } from "./api/createBeatmap"
|
|
68
|
+
export { Schema as SchemaCreateBeatmap } from "./api/createBeatmap"
|
|
69
|
+
export const createBeatmap = handleApi({url:"/api/createBeatmap",...CreateBeatmap})
|
|
129
70
|
|
|
130
71
|
// ./api/createBeatmapPage.ts API
|
|
131
72
|
|
|
132
73
|
/*
|
|
133
|
-
export const Schema = {
|
|
134
|
-
input: z.strictObject({
|
|
135
|
-
session: z.string(),
|
|
136
|
-
}),
|
|
137
|
-
output: z.strictObject({
|
|
138
|
-
error: z.string().optional(),
|
|
139
|
-
id: z.number().optional(),
|
|
140
|
-
}),
|
|
74
|
+
export const Schema = {
|
|
75
|
+
input: z.strictObject({
|
|
76
|
+
session: z.string(),
|
|
77
|
+
}),
|
|
78
|
+
output: z.strictObject({
|
|
79
|
+
error: z.string().optional(),
|
|
80
|
+
id: z.number().optional(),
|
|
81
|
+
}),
|
|
141
82
|
};*/
|
|
142
83
|
import { Schema as CreateBeatmapPage } from "./api/createBeatmapPage"
|
|
143
84
|
export { Schema as SchemaCreateBeatmapPage } from "./api/createBeatmapPage"
|
|
144
85
|
export const createBeatmapPage = handleApi({url:"/api/createBeatmapPage",...CreateBeatmapPage})
|
|
145
86
|
|
|
146
|
-
// ./api/
|
|
87
|
+
// ./api/createClan.ts API
|
|
147
88
|
|
|
148
89
|
/*
|
|
149
|
-
export const Schema = {
|
|
150
|
-
input: z.strictObject({
|
|
151
|
-
session: z.string(),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}),
|
|
90
|
+
export const Schema = {
|
|
91
|
+
input: z.strictObject({
|
|
92
|
+
session: z.string(),
|
|
93
|
+
name: z.string(),
|
|
94
|
+
acronym: z.string(),
|
|
95
|
+
}),
|
|
96
|
+
output: z.object({
|
|
97
|
+
error: z.string().optional(),
|
|
98
|
+
}),
|
|
159
99
|
};*/
|
|
160
|
-
import { Schema as
|
|
161
|
-
export { Schema as
|
|
162
|
-
export const
|
|
100
|
+
import { Schema as CreateClan } from "./api/createClan"
|
|
101
|
+
export { Schema as SchemaCreateClan } from "./api/createClan"
|
|
102
|
+
export const createClan = handleApi({url:"/api/createClan",...CreateClan})
|
|
163
103
|
|
|
164
|
-
// ./api/
|
|
104
|
+
// ./api/createCollection.ts API
|
|
165
105
|
|
|
166
106
|
/*
|
|
167
|
-
export const Schema = {
|
|
168
|
-
input: z.strictObject({
|
|
169
|
-
|
|
107
|
+
export const Schema = {
|
|
108
|
+
input: z.strictObject({
|
|
109
|
+
session: z.string(),
|
|
110
|
+
title: z.string(),
|
|
111
|
+
}),
|
|
112
|
+
output: z.object({
|
|
113
|
+
id: z.number(),
|
|
114
|
+
error: z.string().optional(),
|
|
115
|
+
}),
|
|
170
116
|
};*/
|
|
171
|
-
import { Schema as
|
|
172
|
-
export { Schema as
|
|
173
|
-
export const
|
|
117
|
+
import { Schema as CreateCollection } from "./api/createCollection"
|
|
118
|
+
export { Schema as SchemaCreateCollection } from "./api/createCollection"
|
|
119
|
+
export const createCollection = handleApi({url:"/api/createCollection",...CreateCollection})
|
|
174
120
|
|
|
175
|
-
// ./api/
|
|
121
|
+
// ./api/createInvite.ts API
|
|
176
122
|
|
|
177
123
|
/*
|
|
178
|
-
export const Schema = {
|
|
179
|
-
input: z.strictObject({
|
|
180
|
-
session: z.string(),
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
124
|
+
export const Schema = {
|
|
125
|
+
input: z.strictObject({
|
|
126
|
+
session: z.string(),
|
|
127
|
+
type: z.string(),
|
|
128
|
+
resourceId: z.string(),
|
|
129
|
+
}),
|
|
130
|
+
output: z.object({
|
|
131
|
+
code: z.string().optional(),
|
|
132
|
+
error: z.string().optional(),
|
|
133
|
+
}),
|
|
186
134
|
};*/
|
|
187
|
-
import { Schema as
|
|
188
|
-
export { Schema as
|
|
189
|
-
export const
|
|
135
|
+
import { Schema as CreateInvite } from "./api/createInvite"
|
|
136
|
+
export { Schema as SchemaCreateInvite } from "./api/createInvite"
|
|
137
|
+
export const createInvite = handleApi({url:"/api/createInvite",...CreateInvite})
|
|
190
138
|
|
|
191
|
-
// ./api/
|
|
139
|
+
// ./api/deleteBeatmapPage.ts API
|
|
192
140
|
|
|
193
141
|
/*
|
|
194
|
-
export const Schema = {
|
|
195
|
-
input: z.strictObject({
|
|
196
|
-
session: z.string(),
|
|
197
|
-
|
|
198
|
-
}),
|
|
199
|
-
output: z.
|
|
200
|
-
error: z.string().optional(),
|
|
201
|
-
|
|
202
|
-
.object({
|
|
203
|
-
starRating: z.number().nullable().optional(),
|
|
204
|
-
})
|
|
205
|
-
.optional(),
|
|
206
|
-
}),
|
|
142
|
+
export const Schema = {
|
|
143
|
+
input: z.strictObject({
|
|
144
|
+
session: z.string(),
|
|
145
|
+
id: z.number(),
|
|
146
|
+
}),
|
|
147
|
+
output: z.strictObject({
|
|
148
|
+
error: z.string().optional(),
|
|
149
|
+
}),
|
|
207
150
|
};*/
|
|
208
|
-
import { Schema as
|
|
209
|
-
export { Schema as
|
|
210
|
-
export const
|
|
151
|
+
import { Schema as DeleteBeatmapPage } from "./api/deleteBeatmapPage"
|
|
152
|
+
export { Schema as SchemaDeleteBeatmapPage } from "./api/deleteBeatmapPage"
|
|
153
|
+
export const deleteBeatmapPage = handleApi({url:"/api/deleteBeatmapPage",...DeleteBeatmapPage})
|
|
211
154
|
|
|
212
|
-
// ./api/
|
|
155
|
+
// ./api/deleteCollection.ts API
|
|
213
156
|
|
|
214
157
|
/*
|
|
215
|
-
export const Schema = {
|
|
216
|
-
input: z.strictObject({
|
|
217
|
-
session: z.string(),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}),
|
|
158
|
+
export const Schema = {
|
|
159
|
+
input: z.strictObject({
|
|
160
|
+
session: z.string(),
|
|
161
|
+
collection: z.number(),
|
|
162
|
+
}),
|
|
163
|
+
output: z.object({
|
|
164
|
+
error: z.string().optional(),
|
|
165
|
+
}),
|
|
224
166
|
};*/
|
|
225
|
-
import { Schema as
|
|
226
|
-
export { Schema as
|
|
227
|
-
export const
|
|
167
|
+
import { Schema as DeleteCollection } from "./api/deleteCollection"
|
|
168
|
+
export { Schema as SchemaDeleteCollection } from "./api/deleteCollection"
|
|
169
|
+
export const deleteCollection = handleApi({url:"/api/deleteCollection",...DeleteCollection})
|
|
228
170
|
|
|
229
|
-
// ./api/
|
|
171
|
+
// ./api/deleteCollectionMap.ts API
|
|
230
172
|
|
|
231
173
|
/*
|
|
232
|
-
export const Schema = {
|
|
233
|
-
input: z.strictObject({
|
|
234
|
-
session: z.string(),
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}),
|
|
174
|
+
export const Schema = {
|
|
175
|
+
input: z.strictObject({
|
|
176
|
+
session: z.string(),
|
|
177
|
+
collection: z.number(),
|
|
178
|
+
beatmapPage: z.number(),
|
|
179
|
+
}),
|
|
180
|
+
output: z.object({
|
|
181
|
+
error: z.string().optional(),
|
|
182
|
+
}),
|
|
242
183
|
};*/
|
|
243
|
-
import { Schema as
|
|
244
|
-
export { Schema as
|
|
245
|
-
export const
|
|
184
|
+
import { Schema as DeleteCollectionMap } from "./api/deleteCollectionMap"
|
|
185
|
+
export { Schema as SchemaDeleteCollectionMap } from "./api/deleteCollectionMap"
|
|
186
|
+
export const deleteCollectionMap = handleApi({url:"/api/deleteCollectionMap",...DeleteCollectionMap})
|
|
246
187
|
|
|
247
|
-
// ./api/
|
|
188
|
+
// ./api/editAboutMe.ts API
|
|
248
189
|
|
|
249
190
|
/*
|
|
250
|
-
export const Schema = {
|
|
251
|
-
input: z.strictObject({
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
value: z.number(),
|
|
261
|
-
})
|
|
262
|
-
),
|
|
263
|
-
lastBeatmaps: z.array(
|
|
264
|
-
z.object({
|
|
265
|
-
id: z.number().nullable().optional(),
|
|
266
|
-
nominations: z.array(z.number()).nullable().optional(),
|
|
267
|
-
playcount: z.number().nullable().optional(),
|
|
268
|
-
created_at: z.string().nullable().optional(),
|
|
269
|
-
difficulty: z.number().nullable().optional(),
|
|
270
|
-
noteCount: z.number().nullable().optional(),
|
|
271
|
-
length: z.number().nullable().optional(),
|
|
272
|
-
title: z.string().nullable().optional(),
|
|
273
|
-
ranked: z.boolean().nullable().optional(),
|
|
274
|
-
beatmapFile: z.string().nullable().optional(),
|
|
275
|
-
image: z.string().nullable().optional(),
|
|
276
|
-
starRating: z.number().nullable().optional(),
|
|
277
|
-
owner: z.number().nullable().optional(),
|
|
278
|
-
ownerUsername: z.string().nullable().optional(),
|
|
279
|
-
ownerAvatar: z.string().nullable().optional(),
|
|
280
|
-
status: z.string().nullable().optional(),
|
|
281
|
-
})
|
|
282
|
-
),
|
|
283
|
-
topUsers: z.array(
|
|
284
|
-
z.object({
|
|
285
|
-
username: z.string(),
|
|
286
|
-
id: z.number(),
|
|
287
|
-
avatar_url: z.string(),
|
|
288
|
-
skill_points: z.number(),
|
|
289
|
-
})
|
|
290
|
-
),
|
|
291
|
-
lastComments: z.array(
|
|
292
|
-
z.object({
|
|
293
|
-
owner: z.number(),
|
|
294
|
-
content: z.string(),
|
|
295
|
-
username: z.string(),
|
|
296
|
-
beatmapTitle: z.string(),
|
|
297
|
-
beatmapPage: z.number(),
|
|
298
|
-
})
|
|
299
|
-
),
|
|
300
|
-
}),
|
|
191
|
+
export const Schema = {
|
|
192
|
+
input: z.strictObject({
|
|
193
|
+
session: z.string(),
|
|
194
|
+
data: z.object({
|
|
195
|
+
about_me: z.string().optional(),
|
|
196
|
+
}),
|
|
197
|
+
}),
|
|
198
|
+
output: z.object({
|
|
199
|
+
error: z.string().optional(),
|
|
200
|
+
}),
|
|
301
201
|
};*/
|
|
302
|
-
import { Schema as
|
|
303
|
-
export { Schema as
|
|
304
|
-
export const
|
|
202
|
+
import { Schema as EditAboutMe } from "./api/editAboutMe"
|
|
203
|
+
export { Schema as SchemaEditAboutMe } from "./api/editAboutMe"
|
|
204
|
+
export const editAboutMe = handleApi({url:"/api/editAboutMe",...EditAboutMe})
|
|
305
205
|
|
|
306
|
-
// ./api/
|
|
206
|
+
// ./api/editClan.ts API
|
|
307
207
|
|
|
308
208
|
/*
|
|
309
|
-
export const Schema = {
|
|
310
|
-
input: z.strictObject({
|
|
311
|
-
session: z.string(),
|
|
312
|
-
id: z.number(),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
beatmapHash: z.string().nullable(),
|
|
322
|
-
created_at: z.string(),
|
|
323
|
-
id: z.number(),
|
|
324
|
-
misses: z.number().nullable(),
|
|
325
|
-
passed: z.boolean().nullable(),
|
|
326
|
-
songId: z.string().nullable(),
|
|
327
|
-
userId: z.number().nullable(),
|
|
328
|
-
beatmapDifficulty: z.number().optional().nullable(),
|
|
329
|
-
beatmapNotes: z.number().optional().nullable(),
|
|
330
|
-
beatmapTitle: z.string().optional().nullable(),
|
|
331
|
-
speed: z.number().optional().nullable(),
|
|
332
|
-
spin: z.boolean().optional().nullable(),
|
|
333
|
-
})
|
|
334
|
-
)
|
|
335
|
-
.optional(),
|
|
336
|
-
top: z
|
|
337
|
-
.array(
|
|
338
|
-
z.object({
|
|
339
|
-
awarded_sp: z.number().nullable(),
|
|
340
|
-
beatmapHash: z.string().nullable(),
|
|
341
|
-
created_at: z.string(),
|
|
342
|
-
id: z.number(),
|
|
343
|
-
misses: z.number().nullable(),
|
|
344
|
-
passed: z.boolean().nullable(),
|
|
345
|
-
rank: z.string().nullable(),
|
|
346
|
-
songId: z.string().nullable(),
|
|
347
|
-
userId: z.number().nullable(),
|
|
348
|
-
beatmapDifficulty: z.number().optional().nullable(),
|
|
349
|
-
beatmapNotes: z.number().optional().nullable(),
|
|
350
|
-
beatmapTitle: z.string().optional().nullable(),
|
|
351
|
-
speed: z.number().optional().nullable(),
|
|
352
|
-
spin: z.boolean().optional().nullable(),
|
|
353
|
-
})
|
|
354
|
-
)
|
|
355
|
-
.optional(),
|
|
356
|
-
stats: z
|
|
357
|
-
.object({
|
|
358
|
-
totalScores: z.number(),
|
|
359
|
-
spinScores: z.number(),
|
|
360
|
-
})
|
|
361
|
-
.optional(),
|
|
362
|
-
}),
|
|
209
|
+
export const Schema = {
|
|
210
|
+
input: z.strictObject({
|
|
211
|
+
session: z.string(),
|
|
212
|
+
id: z.number(),
|
|
213
|
+
name: z.string(),
|
|
214
|
+
avatar_url: z.string(),
|
|
215
|
+
description: z.string(),
|
|
216
|
+
acronym: z.string(),
|
|
217
|
+
}),
|
|
218
|
+
output: z.object({
|
|
219
|
+
error: z.string().optional(),
|
|
220
|
+
}),
|
|
363
221
|
};*/
|
|
364
|
-
import { Schema as
|
|
365
|
-
export { Schema as
|
|
366
|
-
export const
|
|
222
|
+
import { Schema as EditClan } from "./api/editClan"
|
|
223
|
+
export { Schema as SchemaEditClan } from "./api/editClan"
|
|
224
|
+
export const editClan = handleApi({url:"/api/editClan",...EditClan})
|
|
367
225
|
|
|
368
|
-
// ./api/
|
|
226
|
+
// ./api/editCollection.ts API
|
|
369
227
|
|
|
370
228
|
/*
|
|
371
|
-
export const Schema = {
|
|
372
|
-
input: z.strictObject({
|
|
373
|
-
session: z.string(),
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}),
|
|
229
|
+
export const Schema = {
|
|
230
|
+
input: z.strictObject({
|
|
231
|
+
session: z.string(),
|
|
232
|
+
collection: z.number(),
|
|
233
|
+
title: z.string(),
|
|
234
|
+
description: z.string(),
|
|
235
|
+
isList: z.boolean(),
|
|
236
|
+
}),
|
|
237
|
+
output: z.object({
|
|
238
|
+
error: z.string().optional(),
|
|
239
|
+
}),
|
|
383
240
|
};*/
|
|
384
|
-
import { Schema as
|
|
385
|
-
export { Schema as
|
|
386
|
-
export const
|
|
241
|
+
import { Schema as EditCollection } from "./api/editCollection"
|
|
242
|
+
export { Schema as SchemaEditCollection } from "./api/editCollection"
|
|
243
|
+
export const editCollection = handleApi({url:"/api/editCollection",...EditCollection})
|
|
387
244
|
|
|
388
|
-
// ./api/
|
|
245
|
+
// ./api/editProfile.ts API
|
|
389
246
|
|
|
390
247
|
/*
|
|
391
|
-
export const Schema = {
|
|
392
|
-
input: z.strictObject({
|
|
393
|
-
session: z.string(),
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
id: z.number(),
|
|
404
|
-
misses: z.number().nullable(),
|
|
405
|
-
passed: z.boolean().nullable(),
|
|
406
|
-
songId: z.string().nullable(),
|
|
407
|
-
userId: z.number().nullable(),
|
|
408
|
-
beatmapDifficulty: z.number().optional().nullable(),
|
|
409
|
-
beatmapNotes: z.number().optional().nullable(),
|
|
410
|
-
beatmapTitle: z.string().optional().nullable(),
|
|
411
|
-
username: z.string().optional().nullable(),
|
|
412
|
-
speed: z.number().optional().nullable(),
|
|
413
|
-
spin: z.boolean().optional().nullable(),
|
|
414
|
-
})
|
|
415
|
-
.optional(),
|
|
416
|
-
}),
|
|
248
|
+
export const Schema = {
|
|
249
|
+
input: z.strictObject({
|
|
250
|
+
session: z.string(),
|
|
251
|
+
data: z.object({
|
|
252
|
+
avatar_url: z.string().optional(),
|
|
253
|
+
profile_image: z.string().optional(),
|
|
254
|
+
username: z.string().optional(),
|
|
255
|
+
}),
|
|
256
|
+
}),
|
|
257
|
+
output: z.object({
|
|
258
|
+
error: z.string().optional(),
|
|
259
|
+
}),
|
|
417
260
|
};*/
|
|
418
|
-
import { Schema as
|
|
419
|
-
export { Schema as
|
|
420
|
-
export const
|
|
261
|
+
import { Schema as EditProfile } from "./api/editProfile"
|
|
262
|
+
export { Schema as SchemaEditProfile } from "./api/editProfile"
|
|
263
|
+
export const editProfile = handleApi({url:"/api/editProfile",...EditProfile})
|
|
421
264
|
|
|
422
|
-
// ./api/
|
|
265
|
+
// ./api/getAvatarUploadUrl.ts API
|
|
423
266
|
|
|
424
267
|
/*
|
|
425
|
-
export const Schema = {
|
|
426
|
-
input: z.strictObject({
|
|
427
|
-
session: z.string(),
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
268
|
+
export const Schema = {
|
|
269
|
+
input: z.strictObject({
|
|
270
|
+
session: z.string(),
|
|
271
|
+
contentLength: z.number(),
|
|
272
|
+
contentType: z.string(),
|
|
273
|
+
intrinsicToken: z.string(),
|
|
274
|
+
}),
|
|
275
|
+
output: z.strictObject({
|
|
276
|
+
error: z.string().optional(),
|
|
277
|
+
url: z.string().optional(),
|
|
278
|
+
objectKey: z.string().optional(),
|
|
279
|
+
}),
|
|
433
280
|
};*/
|
|
434
|
-
import { Schema as
|
|
435
|
-
export { Schema as
|
|
436
|
-
export const
|
|
281
|
+
import { Schema as GetAvatarUploadUrl } from "./api/getAvatarUploadUrl"
|
|
282
|
+
export { Schema as SchemaGetAvatarUploadUrl } from "./api/getAvatarUploadUrl"
|
|
283
|
+
export const getAvatarUploadUrl = handleApi({url:"/api/getAvatarUploadUrl",...GetAvatarUploadUrl})
|
|
437
284
|
|
|
438
285
|
// ./api/getBadgedUsers.ts API
|
|
439
286
|
|
|
440
287
|
/*
|
|
441
|
-
export const Schema = {
|
|
442
|
-
input: z.strictObject({
|
|
443
|
-
badge: z.string(),
|
|
444
|
-
}),
|
|
445
|
-
output: z.object({
|
|
446
|
-
error: z.string().optional(),
|
|
447
|
-
leaderboard: z
|
|
448
|
-
.array(
|
|
449
|
-
z.object({
|
|
450
|
-
flag: z.string().nullable(),
|
|
451
|
-
id: z.number(),
|
|
452
|
-
username: z.string().nullable(),
|
|
453
|
-
})
|
|
454
|
-
)
|
|
455
|
-
.optional(),
|
|
456
|
-
}),
|
|
288
|
+
export const Schema = {
|
|
289
|
+
input: z.strictObject({
|
|
290
|
+
badge: z.string(),
|
|
291
|
+
}),
|
|
292
|
+
output: z.object({
|
|
293
|
+
error: z.string().optional(),
|
|
294
|
+
leaderboard: z
|
|
295
|
+
.array(
|
|
296
|
+
z.object({
|
|
297
|
+
flag: z.string().nullable(),
|
|
298
|
+
id: z.number(),
|
|
299
|
+
username: z.string().nullable(),
|
|
300
|
+
})
|
|
301
|
+
)
|
|
302
|
+
.optional(),
|
|
303
|
+
}),
|
|
457
304
|
};*/
|
|
458
305
|
import { Schema as GetBadgedUsers } from "./api/getBadgedUsers"
|
|
459
306
|
export { Schema as SchemaGetBadgedUsers } from "./api/getBadgedUsers"
|
|
@@ -462,574 +309,778 @@ export const getBadgedUsers = handleApi({url:"/api/getBadgedUsers",...GetBadgedU
|
|
|
462
309
|
// ./api/getBeatmapComments.ts API
|
|
463
310
|
|
|
464
311
|
/*
|
|
465
|
-
export const Schema = {
|
|
466
|
-
input: z.strictObject({
|
|
467
|
-
page: z.number(),
|
|
468
|
-
}),
|
|
469
|
-
output: z.strictObject({
|
|
470
|
-
error: z.string().optional(),
|
|
471
|
-
comments: z.array(
|
|
472
|
-
z.object({
|
|
473
|
-
beatmapPage: z.number(),
|
|
474
|
-
content: z.string().nullable(),
|
|
475
|
-
owner: z.number(),
|
|
476
|
-
created_at: z.string(),
|
|
477
|
-
profiles: z.object({
|
|
478
|
-
avatar_url: z.string().nullable(),
|
|
479
|
-
username: z.string().nullable(),
|
|
480
|
-
badges: z.any().nullable(),
|
|
481
|
-
}),
|
|
482
|
-
})
|
|
483
|
-
),
|
|
484
|
-
}),
|
|
312
|
+
export const Schema = {
|
|
313
|
+
input: z.strictObject({
|
|
314
|
+
page: z.number(),
|
|
315
|
+
}),
|
|
316
|
+
output: z.strictObject({
|
|
317
|
+
error: z.string().optional(),
|
|
318
|
+
comments: z.array(
|
|
319
|
+
z.object({
|
|
320
|
+
beatmapPage: z.number(),
|
|
321
|
+
content: z.string().nullable(),
|
|
322
|
+
owner: z.number(),
|
|
323
|
+
created_at: z.string(),
|
|
324
|
+
profiles: z.object({
|
|
325
|
+
avatar_url: z.string().nullable(),
|
|
326
|
+
username: z.string().nullable(),
|
|
327
|
+
badges: z.any().nullable(),
|
|
328
|
+
}),
|
|
329
|
+
})
|
|
330
|
+
),
|
|
331
|
+
}),
|
|
485
332
|
};*/
|
|
486
333
|
import { Schema as GetBeatmapComments } from "./api/getBeatmapComments"
|
|
487
334
|
export { Schema as SchemaGetBeatmapComments } from "./api/getBeatmapComments"
|
|
488
335
|
export const getBeatmapComments = handleApi({url:"/api/getBeatmapComments",...GetBeatmapComments})
|
|
489
336
|
|
|
490
|
-
// ./api/
|
|
337
|
+
// ./api/getBeatmapPage.ts API
|
|
491
338
|
|
|
492
339
|
/*
|
|
493
|
-
export const Schema = {
|
|
494
|
-
input: z.strictObject({
|
|
495
|
-
session: z.string(),
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
),
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
340
|
+
export const Schema = {
|
|
341
|
+
input: z.strictObject({
|
|
342
|
+
session: z.string(),
|
|
343
|
+
id: z.number(),
|
|
344
|
+
}),
|
|
345
|
+
output: z.object({
|
|
346
|
+
error: z.string().optional(),
|
|
347
|
+
beatmap: z
|
|
348
|
+
.object({
|
|
349
|
+
id: z.number().nullable().optional(),
|
|
350
|
+
nominations: z.array(z.number()).nullable().optional(),
|
|
351
|
+
playcount: z.number().nullable().optional(),
|
|
352
|
+
created_at: z.string().nullable().optional(),
|
|
353
|
+
updated_at: z.number().nullable().optional(),
|
|
354
|
+
difficulty: z.number().nullable().optional(),
|
|
355
|
+
noteCount: z.number().nullable().optional(),
|
|
356
|
+
length: z.number().nullable().optional(),
|
|
357
|
+
title: z.string().nullable().optional(),
|
|
358
|
+
ranked: z.boolean().nullable().optional(),
|
|
359
|
+
beatmapFile: z.string().nullable().optional(),
|
|
360
|
+
image: z.string().nullable().optional(),
|
|
361
|
+
imageLarge: z.string().nullable().optional(),
|
|
362
|
+
starRating: z.number().nullable().optional(),
|
|
363
|
+
owner: z.number().nullable().optional(),
|
|
364
|
+
ownerUsername: z.string().nullable().optional(),
|
|
365
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
366
|
+
status: z.string().nullable().optional(),
|
|
367
|
+
description: z.string().nullable().optional(),
|
|
368
|
+
tags: z.string().nullable().optional(),
|
|
369
|
+
})
|
|
370
|
+
.optional(),
|
|
371
|
+
}),
|
|
524
372
|
};*/
|
|
525
|
-
import { Schema as
|
|
526
|
-
export { Schema as
|
|
527
|
-
export const
|
|
373
|
+
import { Schema as GetBeatmapPage } from "./api/getBeatmapPage"
|
|
374
|
+
export { Schema as SchemaGetBeatmapPage } from "./api/getBeatmapPage"
|
|
375
|
+
export const getBeatmapPage = handleApi({url:"/api/getBeatmapPage",...GetBeatmapPage})
|
|
528
376
|
|
|
529
|
-
// ./api/
|
|
377
|
+
// ./api/getBeatmapPageById.ts API
|
|
530
378
|
|
|
531
379
|
/*
|
|
532
|
-
export const Schema = {
|
|
533
|
-
input: z.strictObject({
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}),
|
|
380
|
+
export const Schema = {
|
|
381
|
+
input: z.strictObject({
|
|
382
|
+
session: z.string(),
|
|
383
|
+
mapId: z.string(),
|
|
384
|
+
}),
|
|
385
|
+
output: z.object({
|
|
386
|
+
error: z.string().optional(),
|
|
387
|
+
beatmap: z
|
|
388
|
+
.object({
|
|
389
|
+
id: z.number().nullable().optional(),
|
|
390
|
+
nominations: z.array(z.number()).nullable().optional(),
|
|
391
|
+
playcount: z.number().nullable().optional(),
|
|
392
|
+
created_at: z.string().nullable().optional(),
|
|
393
|
+
updated_at: z.number().nullable().optional(),
|
|
394
|
+
difficulty: z.number().nullable().optional(),
|
|
395
|
+
noteCount: z.number().nullable().optional(),
|
|
396
|
+
length: z.number().nullable().optional(),
|
|
397
|
+
title: z.string().nullable().optional(),
|
|
398
|
+
ranked: z.boolean().nullable().optional(),
|
|
399
|
+
beatmapFile: z.string().nullable().optional(),
|
|
400
|
+
image: z.string().nullable().optional(),
|
|
401
|
+
starRating: z.number().nullable().optional(),
|
|
402
|
+
owner: z.number().nullable().optional(),
|
|
403
|
+
ownerUsername: z.string().nullable().optional(),
|
|
404
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
405
|
+
status: z.string().nullable().optional(),
|
|
406
|
+
})
|
|
407
|
+
.optional(),
|
|
408
|
+
}),
|
|
537
409
|
};*/
|
|
538
|
-
import { Schema as
|
|
539
|
-
export { Schema as
|
|
540
|
-
export const
|
|
410
|
+
import { Schema as GetBeatmapPageById } from "./api/getBeatmapPageById"
|
|
411
|
+
export { Schema as SchemaGetBeatmapPageById } from "./api/getBeatmapPageById"
|
|
412
|
+
export const getBeatmapPageById = handleApi({url:"/api/getBeatmapPageById",...GetBeatmapPageById})
|
|
541
413
|
|
|
542
|
-
// ./api/
|
|
414
|
+
// ./api/getBeatmaps.ts API
|
|
543
415
|
|
|
544
416
|
/*
|
|
545
|
-
export const Schema = {
|
|
546
|
-
input: z.strictObject({
|
|
547
|
-
session: z.string(),
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
417
|
+
export const Schema = {
|
|
418
|
+
input: z.strictObject({
|
|
419
|
+
session: z.string(),
|
|
420
|
+
textFilter: z.string().optional(),
|
|
421
|
+
authorFilter: z.string().optional(),
|
|
422
|
+
tagsFilter: z.string().optional(),
|
|
423
|
+
page: z.number().default(1),
|
|
424
|
+
maxStars: z.number().optional(),
|
|
425
|
+
minLength: z.number().optional(),
|
|
426
|
+
maxLength: z.number().optional(),
|
|
427
|
+
minStars: z.number().optional(),
|
|
428
|
+
creator: z.number().optional(),
|
|
429
|
+
status: z.string().optional(),
|
|
430
|
+
}),
|
|
431
|
+
output: z.object({
|
|
432
|
+
error: z.string().optional(),
|
|
433
|
+
total: z.number(),
|
|
434
|
+
viewPerPage: z.number(),
|
|
435
|
+
currentPage: z.number(),
|
|
436
|
+
beatmaps: z
|
|
437
|
+
.array(
|
|
438
|
+
z.object({
|
|
439
|
+
id: z.number(),
|
|
440
|
+
playcount: z.number().nullable().optional(),
|
|
441
|
+
created_at: z.string().nullable().optional(),
|
|
442
|
+
difficulty: z.number().nullable().optional(),
|
|
443
|
+
noteCount: z.number().nullable().optional(),
|
|
444
|
+
length: z.number().nullable().optional(),
|
|
445
|
+
title: z.string().nullable().optional(),
|
|
446
|
+
ranked: z.boolean().nullable().optional(),
|
|
447
|
+
beatmapFile: z.string().nullable().optional(),
|
|
448
|
+
image: z.string().nullable().optional(),
|
|
449
|
+
starRating: z.number().nullable().optional(),
|
|
450
|
+
owner: z.number().nullable().optional(),
|
|
451
|
+
ownerUsername: z.string().nullable().optional(),
|
|
452
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
453
|
+
status: z.string().nullable().optional(),
|
|
454
|
+
tags: z.string().nullable().optional(),
|
|
455
|
+
})
|
|
456
|
+
)
|
|
457
|
+
.optional(),
|
|
458
|
+
}),
|
|
553
459
|
};*/
|
|
554
|
-
import { Schema as
|
|
555
|
-
export { Schema as
|
|
556
|
-
export const
|
|
460
|
+
import { Schema as GetBeatmaps } from "./api/getBeatmaps"
|
|
461
|
+
export { Schema as SchemaGetBeatmaps } from "./api/getBeatmaps"
|
|
462
|
+
export const getBeatmaps = handleApi({url:"/api/getBeatmaps",...GetBeatmaps})
|
|
557
463
|
|
|
558
|
-
// ./api/
|
|
464
|
+
// ./api/getBeatmapStarRating.ts API
|
|
559
465
|
|
|
560
466
|
/*
|
|
561
|
-
export const Schema = {
|
|
562
|
-
input: z.strictObject({
|
|
563
|
-
session: z.string(),
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
467
|
+
export const Schema = {
|
|
468
|
+
input: z.strictObject({
|
|
469
|
+
session: z.string(),
|
|
470
|
+
mapId: z.string(),
|
|
471
|
+
}),
|
|
472
|
+
output: z.object({
|
|
473
|
+
error: z.string().optional(),
|
|
474
|
+
beatmap: z
|
|
475
|
+
.object({
|
|
476
|
+
starRating: z.number().nullable().optional(),
|
|
477
|
+
})
|
|
478
|
+
.optional(),
|
|
479
|
+
}),
|
|
572
480
|
};*/
|
|
573
|
-
import { Schema as
|
|
574
|
-
export { Schema as
|
|
575
|
-
export const
|
|
481
|
+
import { Schema as GetBeatmapStarRating } from "./api/getBeatmapStarRating"
|
|
482
|
+
export { Schema as SchemaGetBeatmapStarRating } from "./api/getBeatmapStarRating"
|
|
483
|
+
export const getBeatmapStarRating = handleApi({url:"/api/getBeatmapStarRating",...GetBeatmapStarRating})
|
|
576
484
|
|
|
577
|
-
// ./api/
|
|
485
|
+
// ./api/getClan.ts API
|
|
578
486
|
|
|
579
487
|
/*
|
|
580
|
-
export const Schema = {
|
|
581
|
-
input: z.strictObject({
|
|
582
|
-
session: z.string(),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
z.
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
ownerUsername: z.string().nullable().optional(),
|
|
615
|
-
ownerAvatar: z.string().nullable().optional(),
|
|
616
|
-
status: z.string().nullable().optional(),
|
|
617
|
-
tags: z.string().nullable().optional(),
|
|
618
|
-
})
|
|
619
|
-
)
|
|
620
|
-
.optional(),
|
|
621
|
-
}),
|
|
488
|
+
export const Schema = {
|
|
489
|
+
input: z.strictObject({
|
|
490
|
+
session: z.string(),
|
|
491
|
+
id: z.number(),
|
|
492
|
+
}),
|
|
493
|
+
output: z.object({
|
|
494
|
+
error: z.string().optional(),
|
|
495
|
+
acronym: z.string(),
|
|
496
|
+
avatar_url: z.string(),
|
|
497
|
+
created_at: z.number(),
|
|
498
|
+
description: z.string(),
|
|
499
|
+
id: z.number(),
|
|
500
|
+
name: z.string(),
|
|
501
|
+
owner: z.number(),
|
|
502
|
+
users: z.array(
|
|
503
|
+
z.object({
|
|
504
|
+
about_me: z.string().nullable(),
|
|
505
|
+
avatar_url: z.string().nullable(),
|
|
506
|
+
profile_image: z.string().nullable(),
|
|
507
|
+
badges: z.any().nullable(),
|
|
508
|
+
created_at: z.number().nullable(),
|
|
509
|
+
flag: z.string().nullable(),
|
|
510
|
+
id: z.number(),
|
|
511
|
+
uid: z.string().nullable(),
|
|
512
|
+
ban: z.string().nullable(),
|
|
513
|
+
username: z.string().nullable(),
|
|
514
|
+
verified: z.boolean().nullable(),
|
|
515
|
+
play_count: z.number().nullable(),
|
|
516
|
+
skill_points: z.number().nullable(),
|
|
517
|
+
squares_hit: z.number().nullable(),
|
|
518
|
+
total_score: z.number().nullable(),
|
|
519
|
+
})
|
|
520
|
+
),
|
|
521
|
+
}),
|
|
622
522
|
};*/
|
|
623
|
-
import { Schema as
|
|
624
|
-
export { Schema as
|
|
625
|
-
export const
|
|
523
|
+
import { Schema as GetClan } from "./api/getClan"
|
|
524
|
+
export { Schema as SchemaGetClan } from "./api/getClan"
|
|
525
|
+
export const getClan = handleApi({url:"/api/getClan",...GetClan})
|
|
626
526
|
|
|
627
|
-
// ./api/
|
|
527
|
+
// ./api/getClans.ts API
|
|
628
528
|
|
|
629
529
|
/*
|
|
630
|
-
export const Schema = {
|
|
631
|
-
input: z.strictObject({
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
530
|
+
export const Schema = {
|
|
531
|
+
input: z.strictObject({
|
|
532
|
+
page: z.number(),
|
|
533
|
+
}),
|
|
534
|
+
output: z.object({
|
|
535
|
+
clanData: z.array(
|
|
536
|
+
z.object({
|
|
537
|
+
id: z.number(),
|
|
538
|
+
name: z.string(),
|
|
539
|
+
acronym: z.string().nullable(),
|
|
540
|
+
avatar_url: z.string().nullable(),
|
|
541
|
+
description: z.string().nullable(),
|
|
542
|
+
member_count: z.number(),
|
|
543
|
+
total_skill_points: z.number(),
|
|
544
|
+
total_pages: z.number(),
|
|
545
|
+
})
|
|
546
|
+
),
|
|
547
|
+
error: z.string().optional(),
|
|
548
|
+
}),
|
|
639
549
|
};*/
|
|
640
|
-
import { Schema as
|
|
641
|
-
export { Schema as
|
|
642
|
-
export const
|
|
550
|
+
import { Schema as GetClans } from "./api/getClans"
|
|
551
|
+
export { Schema as SchemaGetClans } from "./api/getClans"
|
|
552
|
+
export const getClans = handleApi({url:"/api/getClans",...GetClans})
|
|
553
|
+
|
|
554
|
+
// ./api/getCollection.ts API
|
|
555
|
+
|
|
556
|
+
/*
|
|
557
|
+
export const Schema = {
|
|
558
|
+
input: z.strictObject({
|
|
559
|
+
session: z.string(),
|
|
560
|
+
collection: z.number(),
|
|
561
|
+
}),
|
|
562
|
+
output: z.object({
|
|
563
|
+
collection: z.object({
|
|
564
|
+
title: z.string(),
|
|
565
|
+
description: z.string(),
|
|
566
|
+
owner: z.object({
|
|
567
|
+
id: z.number(),
|
|
568
|
+
username: z.string(),
|
|
569
|
+
}),
|
|
570
|
+
isList: z.boolean(),
|
|
571
|
+
beatmaps: z.array(
|
|
572
|
+
z.object({
|
|
573
|
+
id: z.number(),
|
|
574
|
+
playcount: z.number().nullable().optional(),
|
|
575
|
+
created_at: z.string().nullable().optional(),
|
|
576
|
+
difficulty: z.number().nullable().optional(),
|
|
577
|
+
length: z.number().nullable().optional(),
|
|
578
|
+
title: z.string().nullable().optional(),
|
|
579
|
+
ranked: z.boolean().nullable().optional(),
|
|
580
|
+
beatmapFile: z.string().nullable().optional(),
|
|
581
|
+
image: z.string().nullable().optional(),
|
|
582
|
+
starRating: z.number().nullable().optional(),
|
|
583
|
+
owner: z.number().nullable().optional(),
|
|
584
|
+
ownerUsername: z.string().nullable().optional(),
|
|
585
|
+
status: z.string().nullable().optional(),
|
|
586
|
+
tags: z.string().nullable().optional(),
|
|
587
|
+
})
|
|
588
|
+
),
|
|
589
|
+
}),
|
|
590
|
+
error: z.string().optional(),
|
|
591
|
+
}),
|
|
592
|
+
};*/
|
|
593
|
+
import { Schema as GetCollection } from "./api/getCollection"
|
|
594
|
+
export { Schema as SchemaGetCollection } from "./api/getCollection"
|
|
595
|
+
export const getCollection = handleApi({url:"/api/getCollection",...GetCollection})
|
|
596
|
+
|
|
597
|
+
// ./api/getCollections.ts API
|
|
598
|
+
|
|
599
|
+
/*
|
|
600
|
+
export const Schema = {
|
|
601
|
+
input: z.strictObject({
|
|
602
|
+
session: z.string(),
|
|
603
|
+
page: z.number().optional().default(1),
|
|
604
|
+
itemsPerPage: z.number().optional().default(10),
|
|
605
|
+
owner: z.number().optional(), // Added owner field
|
|
606
|
+
search: z.string().optional(), // Added string field
|
|
607
|
+
minBeatmaps: z.number().optional(), // Added string field
|
|
608
|
+
}),
|
|
609
|
+
output: z.object({
|
|
610
|
+
collections: z.array(
|
|
611
|
+
z.object({
|
|
612
|
+
id: z.number(),
|
|
613
|
+
title: z.string(),
|
|
614
|
+
description: z.string(),
|
|
615
|
+
owner: z.number(),
|
|
616
|
+
ownerUsername: z.string(),
|
|
617
|
+
ownerAvatarUrl: z.string(),
|
|
618
|
+
beatmapCount: z.number(),
|
|
619
|
+
starRatingDistribution: z.array(
|
|
620
|
+
z.object({
|
|
621
|
+
stars: z.number(),
|
|
622
|
+
count: z.number(),
|
|
623
|
+
})
|
|
624
|
+
),
|
|
625
|
+
createdAt: z.string(),
|
|
626
|
+
})
|
|
627
|
+
),
|
|
628
|
+
totalPages: z.number(),
|
|
629
|
+
error: z.string().optional(),
|
|
630
|
+
}),
|
|
631
|
+
};*/
|
|
632
|
+
import { Schema as GetCollections } from "./api/getCollections"
|
|
633
|
+
export { Schema as SchemaGetCollections } from "./api/getCollections"
|
|
634
|
+
export const getCollections = handleApi({url:"/api/getCollections",...GetCollections})
|
|
635
|
+
|
|
636
|
+
// ./api/getLeaderboard.ts API
|
|
637
|
+
|
|
638
|
+
/*
|
|
639
|
+
export const Schema = {
|
|
640
|
+
input: z.strictObject({
|
|
641
|
+
session: z.string(),
|
|
642
|
+
page: z.number().default(1),
|
|
643
|
+
flag: z.string().optional(),
|
|
644
|
+
spin: z.boolean().default(false),
|
|
645
|
+
}),
|
|
646
|
+
output: z.object({
|
|
647
|
+
error: z.string().optional(),
|
|
648
|
+
total: z.number(),
|
|
649
|
+
viewPerPage: z.number(),
|
|
650
|
+
currentPage: z.number(),
|
|
651
|
+
userPosition: z.number(),
|
|
652
|
+
leaderboard: z
|
|
653
|
+
.array(
|
|
654
|
+
z.object({
|
|
655
|
+
flag: z.string().nullable(),
|
|
656
|
+
id: z.number(),
|
|
657
|
+
username: z.string().nullable(),
|
|
658
|
+
play_count: z.number().nullable(),
|
|
659
|
+
skill_points: z.number().nullable(),
|
|
660
|
+
spin_skill_points: z.number().nullable(),
|
|
661
|
+
total_score: z.number().nullable(),
|
|
662
|
+
clans: z
|
|
663
|
+
.object({
|
|
664
|
+
id: z.number(),
|
|
665
|
+
acronym: z.string(),
|
|
666
|
+
})
|
|
667
|
+
.optional()
|
|
668
|
+
.nullable(),
|
|
669
|
+
})
|
|
670
|
+
)
|
|
671
|
+
.optional(),
|
|
672
|
+
}),
|
|
673
|
+
};*/
|
|
674
|
+
import { Schema as GetLeaderboard } from "./api/getLeaderboard"
|
|
675
|
+
export { Schema as SchemaGetLeaderboard } from "./api/getLeaderboard"
|
|
676
|
+
export const getLeaderboard = handleApi({url:"/api/getLeaderboard",...GetLeaderboard})
|
|
677
|
+
|
|
678
|
+
// ./api/getMapUploadUrl.ts API
|
|
679
|
+
|
|
680
|
+
/*
|
|
681
|
+
export const Schema = {
|
|
682
|
+
input: z.strictObject({
|
|
683
|
+
mapName: z.string().optional(),
|
|
684
|
+
session: z.string(),
|
|
685
|
+
contentLength: z.number(),
|
|
686
|
+
contentType: z.string(),
|
|
687
|
+
intrinsicToken: z.string(),
|
|
688
|
+
}),
|
|
689
|
+
output: z.strictObject({
|
|
690
|
+
error: z.string().optional(),
|
|
691
|
+
url: z.string().optional(),
|
|
692
|
+
objectKey: z.string().optional(),
|
|
693
|
+
}),
|
|
694
|
+
};*/
|
|
695
|
+
import { Schema as GetMapUploadUrl } from "./api/getMapUploadUrl"
|
|
696
|
+
export { Schema as SchemaGetMapUploadUrl } from "./api/getMapUploadUrl"
|
|
697
|
+
export const getMapUploadUrl = handleApi({url:"/api/getMapUploadUrl",...GetMapUploadUrl})
|
|
698
|
+
|
|
699
|
+
// ./api/getPassToken.ts API
|
|
700
|
+
|
|
701
|
+
/*
|
|
702
|
+
export const Schema = {
|
|
703
|
+
input: z.strictObject({
|
|
704
|
+
data: z.object({
|
|
705
|
+
email: z.string(),
|
|
706
|
+
passkey: z.string(),
|
|
707
|
+
computerName: z.string(),
|
|
708
|
+
}),
|
|
709
|
+
}),
|
|
710
|
+
output: z.object({
|
|
711
|
+
token: z.string().optional(),
|
|
712
|
+
error: z.string().optional(),
|
|
713
|
+
}),
|
|
714
|
+
};*/
|
|
715
|
+
import { Schema as GetPassToken } from "./api/getPassToken"
|
|
716
|
+
export { Schema as SchemaGetPassToken } from "./api/getPassToken"
|
|
717
|
+
export const getPassToken = handleApi({url:"/api/getPassToken",...GetPassToken})
|
|
643
718
|
|
|
644
719
|
// ./api/getProfile.ts API
|
|
645
720
|
|
|
646
721
|
/*
|
|
647
|
-
export const Schema = {
|
|
648
|
-
input: z.strictObject({
|
|
649
|
-
session: z.string(),
|
|
650
|
-
id: z.number().nullable().optional(),
|
|
651
|
-
}),
|
|
652
|
-
output: z.object({
|
|
653
|
-
error: z.string().optional(),
|
|
654
|
-
user: z
|
|
655
|
-
.object({
|
|
656
|
-
about_me: z.string().nullable(),
|
|
657
|
-
avatar_url: z.string().nullable(),
|
|
658
|
-
profile_image: z.string().nullable(),
|
|
659
|
-
badges: z.any().nullable(),
|
|
660
|
-
created_at: z.number().nullable(),
|
|
661
|
-
flag: z.string().nullable(),
|
|
662
|
-
id: z.number(),
|
|
663
|
-
uid: z.string().nullable(),
|
|
664
|
-
ban: z.string().nullable(),
|
|
665
|
-
username: z.string().nullable(),
|
|
666
|
-
verified: z.boolean().nullable(),
|
|
667
|
-
play_count: z.number().nullable(),
|
|
668
|
-
skill_points: z.number().nullable(),
|
|
669
|
-
squares_hit: z.number().nullable(),
|
|
670
|
-
total_score: z.number().nullable(),
|
|
671
|
-
position: z.number().nullable(),
|
|
672
|
-
is_online: z.boolean(),
|
|
673
|
-
clans: z
|
|
674
|
-
.object({
|
|
675
|
-
id: z.number(),
|
|
676
|
-
acronym: z.string(),
|
|
677
|
-
})
|
|
678
|
-
.optional()
|
|
679
|
-
.nullable(),
|
|
680
|
-
})
|
|
681
|
-
.optional(),
|
|
682
|
-
}),
|
|
722
|
+
export const Schema = {
|
|
723
|
+
input: z.strictObject({
|
|
724
|
+
session: z.string(),
|
|
725
|
+
id: z.number().nullable().optional(),
|
|
726
|
+
}),
|
|
727
|
+
output: z.object({
|
|
728
|
+
error: z.string().optional(),
|
|
729
|
+
user: z
|
|
730
|
+
.object({
|
|
731
|
+
about_me: z.string().nullable(),
|
|
732
|
+
avatar_url: z.string().nullable(),
|
|
733
|
+
profile_image: z.string().nullable(),
|
|
734
|
+
badges: z.any().nullable(),
|
|
735
|
+
created_at: z.number().nullable(),
|
|
736
|
+
flag: z.string().nullable(),
|
|
737
|
+
id: z.number(),
|
|
738
|
+
uid: z.string().nullable(),
|
|
739
|
+
ban: z.string().nullable(),
|
|
740
|
+
username: z.string().nullable(),
|
|
741
|
+
verified: z.boolean().nullable(),
|
|
742
|
+
play_count: z.number().nullable(),
|
|
743
|
+
skill_points: z.number().nullable(),
|
|
744
|
+
squares_hit: z.number().nullable(),
|
|
745
|
+
total_score: z.number().nullable(),
|
|
746
|
+
position: z.number().nullable(),
|
|
747
|
+
is_online: z.boolean(),
|
|
748
|
+
clans: z
|
|
749
|
+
.object({
|
|
750
|
+
id: z.number(),
|
|
751
|
+
acronym: z.string(),
|
|
752
|
+
})
|
|
753
|
+
.optional()
|
|
754
|
+
.nullable(),
|
|
755
|
+
})
|
|
756
|
+
.optional(),
|
|
757
|
+
}),
|
|
683
758
|
};*/
|
|
684
759
|
import { Schema as GetProfile } from "./api/getProfile"
|
|
685
760
|
export { Schema as SchemaGetProfile } from "./api/getProfile"
|
|
686
761
|
export const getProfile = handleApi({url:"/api/getProfile",...GetProfile})
|
|
687
762
|
|
|
688
|
-
// ./api/
|
|
763
|
+
// ./api/getPublicStats.ts API
|
|
689
764
|
|
|
690
765
|
/*
|
|
691
|
-
export const Schema = {
|
|
692
|
-
input: z.strictObject({
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
766
|
+
export const Schema = {
|
|
767
|
+
input: z.strictObject({}),
|
|
768
|
+
output: z.object({
|
|
769
|
+
profiles: z.number(),
|
|
770
|
+
beatmaps: z.number(),
|
|
771
|
+
scores: z.number(),
|
|
772
|
+
onlineUsers: z.number(),
|
|
773
|
+
countChart: z.array(
|
|
774
|
+
z.object({
|
|
775
|
+
type: z.string(),
|
|
776
|
+
value: z.number(),
|
|
777
|
+
})
|
|
778
|
+
),
|
|
779
|
+
lastBeatmaps: z.array(
|
|
780
|
+
z.object({
|
|
781
|
+
id: z.number().nullable().optional(),
|
|
782
|
+
nominations: z.array(z.number()).nullable().optional(),
|
|
783
|
+
playcount: z.number().nullable().optional(),
|
|
784
|
+
created_at: z.string().nullable().optional(),
|
|
785
|
+
difficulty: z.number().nullable().optional(),
|
|
786
|
+
noteCount: z.number().nullable().optional(),
|
|
787
|
+
length: z.number().nullable().optional(),
|
|
788
|
+
title: z.string().nullable().optional(),
|
|
789
|
+
ranked: z.boolean().nullable().optional(),
|
|
790
|
+
beatmapFile: z.string().nullable().optional(),
|
|
791
|
+
image: z.string().nullable().optional(),
|
|
792
|
+
starRating: z.number().nullable().optional(),
|
|
793
|
+
owner: z.number().nullable().optional(),
|
|
794
|
+
ownerUsername: z.string().nullable().optional(),
|
|
795
|
+
ownerAvatar: z.string().nullable().optional(),
|
|
796
|
+
status: z.string().nullable().optional(),
|
|
797
|
+
})
|
|
798
|
+
),
|
|
799
|
+
topUsers: z.array(
|
|
800
|
+
z.object({
|
|
801
|
+
username: z.string(),
|
|
802
|
+
id: z.number(),
|
|
803
|
+
avatar_url: z.string(),
|
|
804
|
+
skill_points: z.number(),
|
|
805
|
+
})
|
|
806
|
+
),
|
|
807
|
+
lastComments: z.array(
|
|
808
|
+
z.object({
|
|
809
|
+
owner: z.number(),
|
|
810
|
+
content: z.string(),
|
|
811
|
+
username: z.string(),
|
|
812
|
+
beatmapTitle: z.string(),
|
|
813
|
+
beatmapPage: z.number(),
|
|
814
|
+
})
|
|
815
|
+
),
|
|
816
|
+
}),
|
|
703
817
|
};*/
|
|
704
|
-
import { Schema as
|
|
705
|
-
export { Schema as
|
|
706
|
-
export const
|
|
818
|
+
import { Schema as GetPublicStats } from "./api/getPublicStats"
|
|
819
|
+
export { Schema as SchemaGetPublicStats } from "./api/getPublicStats"
|
|
820
|
+
export const getPublicStats = handleApi({url:"/api/getPublicStats",...GetPublicStats})
|
|
707
821
|
|
|
708
|
-
// ./api/
|
|
822
|
+
// ./api/getRawStarRating.ts API
|
|
709
823
|
|
|
710
824
|
/*
|
|
711
|
-
export const Schema = {
|
|
712
|
-
input: z.strictObject({
|
|
713
|
-
session: z.string(),
|
|
714
|
-
|
|
715
|
-
}),
|
|
716
|
-
output: z.object({
|
|
717
|
-
error: z.string().optional(),
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
owner: z.number(),
|
|
725
|
-
users: z.array(
|
|
726
|
-
z.object({
|
|
727
|
-
about_me: z.string().nullable(),
|
|
728
|
-
avatar_url: z.string().nullable(),
|
|
729
|
-
profile_image: z.string().nullable(),
|
|
730
|
-
badges: z.any().nullable(),
|
|
731
|
-
created_at: z.number().nullable(),
|
|
732
|
-
flag: z.string().nullable(),
|
|
733
|
-
id: z.number(),
|
|
734
|
-
uid: z.string().nullable(),
|
|
735
|
-
ban: z.string().nullable(),
|
|
736
|
-
username: z.string().nullable(),
|
|
737
|
-
verified: z.boolean().nullable(),
|
|
738
|
-
play_count: z.number().nullable(),
|
|
739
|
-
skill_points: z.number().nullable(),
|
|
740
|
-
squares_hit: z.number().nullable(),
|
|
741
|
-
total_score: z.number().nullable(),
|
|
742
|
-
})
|
|
743
|
-
),
|
|
744
|
-
}),
|
|
825
|
+
export const Schema = {
|
|
826
|
+
input: z.strictObject({
|
|
827
|
+
session: z.string(),
|
|
828
|
+
rawMap: z.string(),
|
|
829
|
+
}),
|
|
830
|
+
output: z.object({
|
|
831
|
+
error: z.string().optional(),
|
|
832
|
+
beatmap: z
|
|
833
|
+
.object({
|
|
834
|
+
starRating: z.number().nullable().optional(),
|
|
835
|
+
})
|
|
836
|
+
.optional(),
|
|
837
|
+
}),
|
|
745
838
|
};*/
|
|
746
|
-
import { Schema as
|
|
747
|
-
export { Schema as
|
|
748
|
-
export const
|
|
839
|
+
import { Schema as GetRawStarRating } from "./api/getRawStarRating"
|
|
840
|
+
export { Schema as SchemaGetRawStarRating } from "./api/getRawStarRating"
|
|
841
|
+
export const getRawStarRating = handleApi({url:"/api/getRawStarRating",...GetRawStarRating})
|
|
749
842
|
|
|
750
|
-
// ./api/
|
|
843
|
+
// ./api/getScore.ts API
|
|
751
844
|
|
|
752
845
|
/*
|
|
753
|
-
export const Schema = {
|
|
754
|
-
input: z.strictObject({
|
|
755
|
-
session: z.string(),
|
|
756
|
-
|
|
757
|
-
}),
|
|
758
|
-
output: z.object({
|
|
759
|
-
error: z.string().optional(),
|
|
760
|
-
|
|
761
|
-
.object({
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
})
|
|
780
|
-
.optional(),
|
|
781
|
-
}),
|
|
846
|
+
export const Schema = {
|
|
847
|
+
input: z.strictObject({
|
|
848
|
+
session: z.string(),
|
|
849
|
+
id: z.number(),
|
|
850
|
+
}),
|
|
851
|
+
output: z.object({
|
|
852
|
+
error: z.string().optional(),
|
|
853
|
+
score: z
|
|
854
|
+
.object({
|
|
855
|
+
awarded_sp: z.number().nullable(),
|
|
856
|
+
beatmapHash: z.string().nullable(),
|
|
857
|
+
created_at: z.string(),
|
|
858
|
+
id: z.number(),
|
|
859
|
+
misses: z.number().nullable(),
|
|
860
|
+
passed: z.boolean().nullable(),
|
|
861
|
+
songId: z.string().nullable(),
|
|
862
|
+
userId: z.number().nullable(),
|
|
863
|
+
beatmapDifficulty: z.number().optional().nullable(),
|
|
864
|
+
beatmapNotes: z.number().optional().nullable(),
|
|
865
|
+
beatmapTitle: z.string().optional().nullable(),
|
|
866
|
+
username: z.string().optional().nullable(),
|
|
867
|
+
speed: z.number().optional().nullable(),
|
|
868
|
+
spin: z.boolean().optional().nullable(),
|
|
869
|
+
})
|
|
870
|
+
.optional(),
|
|
871
|
+
}),
|
|
782
872
|
};*/
|
|
783
|
-
import { Schema as
|
|
784
|
-
export { Schema as
|
|
785
|
-
export const
|
|
873
|
+
import { Schema as GetScore } from "./api/getScore"
|
|
874
|
+
export { Schema as SchemaGetScore } from "./api/getScore"
|
|
875
|
+
export const getScore = handleApi({url:"/api/getScore",...GetScore})
|
|
786
876
|
|
|
787
|
-
// ./api/
|
|
877
|
+
// ./api/getTimestamp.ts API
|
|
788
878
|
|
|
789
879
|
/*
|
|
790
|
-
export const Schema = {
|
|
791
|
-
input: z.strictObject({
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}),
|
|
795
|
-
output: z.object({
|
|
796
|
-
error: z.string().optional(),
|
|
797
|
-
beatmap: z
|
|
798
|
-
.object({
|
|
799
|
-
id: z.number().nullable().optional(),
|
|
800
|
-
nominations: z.array(z.number()).nullable().optional(),
|
|
801
|
-
playcount: z.number().nullable().optional(),
|
|
802
|
-
created_at: z.string().nullable().optional(),
|
|
803
|
-
updated_at: z.number().nullable().optional(),
|
|
804
|
-
difficulty: z.number().nullable().optional(),
|
|
805
|
-
noteCount: z.number().nullable().optional(),
|
|
806
|
-
length: z.number().nullable().optional(),
|
|
807
|
-
title: z.string().nullable().optional(),
|
|
808
|
-
ranked: z.boolean().nullable().optional(),
|
|
809
|
-
beatmapFile: z.string().nullable().optional(),
|
|
810
|
-
image: z.string().nullable().optional(),
|
|
811
|
-
imageLarge: z.string().nullable().optional(),
|
|
812
|
-
starRating: z.number().nullable().optional(),
|
|
813
|
-
owner: z.number().nullable().optional(),
|
|
814
|
-
ownerUsername: z.string().nullable().optional(),
|
|
815
|
-
ownerAvatar: z.string().nullable().optional(),
|
|
816
|
-
status: z.string().nullable().optional(),
|
|
817
|
-
description: z.string().nullable().optional(),
|
|
818
|
-
tags: z.string().nullable().optional(),
|
|
819
|
-
})
|
|
820
|
-
.optional(),
|
|
821
|
-
}),
|
|
880
|
+
export const Schema = {
|
|
881
|
+
input: z.strictObject({}),
|
|
882
|
+
output: z.object({
|
|
883
|
+
time: z.number(),
|
|
884
|
+
}),
|
|
822
885
|
};*/
|
|
823
|
-
import { Schema as
|
|
824
|
-
export { Schema as
|
|
825
|
-
export const
|
|
886
|
+
import { Schema as GetTimestamp } from "./api/getTimestamp"
|
|
887
|
+
export { Schema as SchemaGetTimestamp } from "./api/getTimestamp"
|
|
888
|
+
export const getTimestamp = handleApi({url:"/api/getTimestamp",...GetTimestamp})
|
|
826
889
|
|
|
827
|
-
// ./api/
|
|
890
|
+
// ./api/getUserScores.ts API
|
|
828
891
|
|
|
829
892
|
/*
|
|
830
|
-
export const Schema = {
|
|
831
|
-
input: z.strictObject({
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}),
|
|
836
|
-
output: z.
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
893
|
+
export const Schema = {
|
|
894
|
+
input: z.strictObject({
|
|
895
|
+
session: z.string(),
|
|
896
|
+
id: z.number(),
|
|
897
|
+
limit: z.number().default(10),
|
|
898
|
+
}),
|
|
899
|
+
output: z.object({
|
|
900
|
+
error: z.string().optional(),
|
|
901
|
+
lastDay: z
|
|
902
|
+
.array(
|
|
903
|
+
z.object({
|
|
904
|
+
awarded_sp: z.number().nullable(),
|
|
905
|
+
beatmapHash: z.string().nullable(),
|
|
906
|
+
created_at: z.string(),
|
|
907
|
+
id: z.number(),
|
|
908
|
+
misses: z.number().nullable(),
|
|
909
|
+
passed: z.boolean().nullable(),
|
|
910
|
+
songId: z.string().nullable(),
|
|
911
|
+
userId: z.number().nullable(),
|
|
912
|
+
beatmapDifficulty: z.number().optional().nullable(),
|
|
913
|
+
beatmapNotes: z.number().optional().nullable(),
|
|
914
|
+
beatmapTitle: z.string().optional().nullable(),
|
|
915
|
+
speed: z.number().optional().nullable(),
|
|
916
|
+
spin: z.boolean().optional().nullable(),
|
|
917
|
+
})
|
|
918
|
+
)
|
|
919
|
+
.optional(),
|
|
920
|
+
top: z
|
|
921
|
+
.array(
|
|
922
|
+
z.object({
|
|
923
|
+
awarded_sp: z.number().nullable(),
|
|
924
|
+
beatmapHash: z.string().nullable(),
|
|
925
|
+
created_at: z.string(),
|
|
926
|
+
id: z.number(),
|
|
927
|
+
misses: z.number().nullable(),
|
|
928
|
+
passed: z.boolean().nullable(),
|
|
929
|
+
rank: z.string().nullable(),
|
|
930
|
+
songId: z.string().nullable(),
|
|
931
|
+
userId: z.number().nullable(),
|
|
932
|
+
beatmapDifficulty: z.number().optional().nullable(),
|
|
933
|
+
beatmapNotes: z.number().optional().nullable(),
|
|
934
|
+
beatmapTitle: z.string().optional().nullable(),
|
|
935
|
+
speed: z.number().optional().nullable(),
|
|
936
|
+
spin: z.boolean().optional().nullable(),
|
|
937
|
+
})
|
|
938
|
+
)
|
|
939
|
+
.optional(),
|
|
940
|
+
stats: z
|
|
941
|
+
.object({
|
|
942
|
+
totalScores: z.number(),
|
|
943
|
+
spinScores: z.number(),
|
|
944
|
+
})
|
|
945
|
+
.optional(),
|
|
946
|
+
}),
|
|
840
947
|
};*/
|
|
841
|
-
import { Schema as
|
|
842
|
-
export { Schema as
|
|
843
|
-
export const
|
|
948
|
+
import { Schema as GetUserScores } from "./api/getUserScores"
|
|
949
|
+
export { Schema as SchemaGetUserScores } from "./api/getUserScores"
|
|
950
|
+
export const getUserScores = handleApi({url:"/api/getUserScores",...GetUserScores})
|
|
844
951
|
|
|
845
|
-
// ./api/
|
|
952
|
+
// ./api/nominateMap.ts API
|
|
846
953
|
|
|
847
954
|
/*
|
|
848
|
-
export const Schema = {
|
|
849
|
-
input: z.strictObject({
|
|
850
|
-
session: z.string(),
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
error: z.string().optional(),
|
|
857
|
-
total: z.number(),
|
|
858
|
-
viewPerPage: z.number(),
|
|
859
|
-
currentPage: z.number(),
|
|
860
|
-
userPosition: z.number(),
|
|
861
|
-
leaderboard: z
|
|
862
|
-
.array(
|
|
863
|
-
z.object({
|
|
864
|
-
flag: z.string().nullable(),
|
|
865
|
-
id: z.number(),
|
|
866
|
-
username: z.string().nullable(),
|
|
867
|
-
play_count: z.number().nullable(),
|
|
868
|
-
skill_points: z.number().nullable(),
|
|
869
|
-
spin_skill_points: z.number().nullable(),
|
|
870
|
-
total_score: z.number().nullable(),
|
|
871
|
-
clans: z
|
|
872
|
-
.object({
|
|
873
|
-
id: z.number(),
|
|
874
|
-
acronym: z.string(),
|
|
875
|
-
})
|
|
876
|
-
.optional()
|
|
877
|
-
.nullable(),
|
|
878
|
-
})
|
|
879
|
-
)
|
|
880
|
-
.optional(),
|
|
881
|
-
}),
|
|
955
|
+
export const Schema = {
|
|
956
|
+
input: z.strictObject({
|
|
957
|
+
session: z.string(),
|
|
958
|
+
mapId: z.number(),
|
|
959
|
+
}),
|
|
960
|
+
output: z.object({
|
|
961
|
+
error: z.string().optional(),
|
|
962
|
+
}),
|
|
882
963
|
};*/
|
|
883
|
-
import { Schema as
|
|
884
|
-
export { Schema as
|
|
885
|
-
export const
|
|
964
|
+
import { Schema as NominateMap } from "./api/nominateMap"
|
|
965
|
+
export { Schema as SchemaNominateMap } from "./api/nominateMap"
|
|
966
|
+
export const nominateMap = handleApi({url:"/api/nominateMap",...NominateMap})
|
|
886
967
|
|
|
887
|
-
// ./api/
|
|
968
|
+
// ./api/postBeatmapComment.ts API
|
|
888
969
|
|
|
889
970
|
/*
|
|
890
|
-
export const Schema = {
|
|
891
|
-
input: z.strictObject({
|
|
892
|
-
session: z.string(),
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
starRating: z.number().nullable().optional(),
|
|
900
|
-
})
|
|
901
|
-
.optional(),
|
|
902
|
-
}),
|
|
971
|
+
export const Schema = {
|
|
972
|
+
input: z.strictObject({
|
|
973
|
+
session: z.string(),
|
|
974
|
+
page: z.number(),
|
|
975
|
+
content: z.string(),
|
|
976
|
+
}),
|
|
977
|
+
output: z.strictObject({
|
|
978
|
+
error: z.string().optional(),
|
|
979
|
+
}),
|
|
903
980
|
};*/
|
|
904
|
-
import { Schema as
|
|
905
|
-
export { Schema as
|
|
906
|
-
export const
|
|
981
|
+
import { Schema as PostBeatmapComment } from "./api/postBeatmapComment"
|
|
982
|
+
export { Schema as SchemaPostBeatmapComment } from "./api/postBeatmapComment"
|
|
983
|
+
export const postBeatmapComment = handleApi({url:"/api/postBeatmapComment",...PostBeatmapComment})
|
|
907
984
|
|
|
908
|
-
// ./api/
|
|
985
|
+
// ./api/rankMapsArchive.ts API
|
|
909
986
|
|
|
910
987
|
/*
|
|
911
|
-
export const Schema = {
|
|
912
|
-
input: z.strictObject({
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
z.object({
|
|
920
|
-
id: z.number(),
|
|
921
|
-
username: z.string().nullable(),
|
|
922
|
-
})
|
|
923
|
-
)
|
|
924
|
-
.optional(),
|
|
925
|
-
}),
|
|
988
|
+
export const Schema = {
|
|
989
|
+
input: z.strictObject({
|
|
990
|
+
session: z.string(),
|
|
991
|
+
mapId: z.number(),
|
|
992
|
+
}),
|
|
993
|
+
output: z.object({
|
|
994
|
+
error: z.string().optional(),
|
|
995
|
+
}),
|
|
926
996
|
};*/
|
|
927
|
-
import { Schema as
|
|
928
|
-
export { Schema as
|
|
929
|
-
export const
|
|
997
|
+
import { Schema as RankMapsArchive } from "./api/rankMapsArchive"
|
|
998
|
+
export { Schema as SchemaRankMapsArchive } from "./api/rankMapsArchive"
|
|
999
|
+
export const rankMapsArchive = handleApi({url:"/api/rankMapsArchive",...RankMapsArchive})
|
|
930
1000
|
|
|
931
|
-
// ./api/
|
|
1001
|
+
// ./api/searchUsers.ts API
|
|
932
1002
|
|
|
933
1003
|
/*
|
|
934
|
-
export const Schema = {
|
|
935
|
-
input: z.strictObject({
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
}),
|
|
950
|
-
}),
|
|
951
|
-
output: z.object({
|
|
952
|
-
error: z.string().optional(),
|
|
953
|
-
}),
|
|
1004
|
+
export const Schema = {
|
|
1005
|
+
input: z.strictObject({
|
|
1006
|
+
text: z.string(),
|
|
1007
|
+
}),
|
|
1008
|
+
output: z.object({
|
|
1009
|
+
error: z.string().optional(),
|
|
1010
|
+
results: z
|
|
1011
|
+
.array(
|
|
1012
|
+
z.object({
|
|
1013
|
+
id: z.number(),
|
|
1014
|
+
username: z.string().nullable(),
|
|
1015
|
+
})
|
|
1016
|
+
)
|
|
1017
|
+
.optional(),
|
|
1018
|
+
}),
|
|
954
1019
|
};*/
|
|
955
|
-
import { Schema as
|
|
956
|
-
export { Schema as
|
|
957
|
-
export const
|
|
1020
|
+
import { Schema as SearchUsers } from "./api/searchUsers"
|
|
1021
|
+
export { Schema as SchemaSearchUsers } from "./api/searchUsers"
|
|
1022
|
+
export const searchUsers = handleApi({url:"/api/searchUsers",...SearchUsers})
|
|
958
1023
|
|
|
959
|
-
// ./api/
|
|
1024
|
+
// ./api/setPasskey.ts API
|
|
960
1025
|
|
|
961
1026
|
/*
|
|
962
|
-
export const Schema = {
|
|
963
|
-
input: z.strictObject({
|
|
964
|
-
session: z.string(),
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1027
|
+
export const Schema = {
|
|
1028
|
+
input: z.strictObject({
|
|
1029
|
+
session: z.string(),
|
|
1030
|
+
data: z.object({
|
|
1031
|
+
passkey: z.string(),
|
|
1032
|
+
}),
|
|
1033
|
+
}),
|
|
1034
|
+
output: z.object({
|
|
1035
|
+
error: z.string().optional(),
|
|
1036
|
+
}),
|
|
971
1037
|
};*/
|
|
972
|
-
import { Schema as
|
|
973
|
-
export { Schema as
|
|
974
|
-
export const
|
|
1038
|
+
import { Schema as SetPasskey } from "./api/setPasskey"
|
|
1039
|
+
export { Schema as SchemaSetPasskey } from "./api/setPasskey"
|
|
1040
|
+
export const setPasskey = handleApi({url:"/api/setPasskey",...SetPasskey})
|
|
975
1041
|
|
|
976
|
-
// ./api/
|
|
1042
|
+
// ./api/submitScore.ts API
|
|
977
1043
|
|
|
978
1044
|
/*
|
|
979
|
-
export const Schema = {
|
|
980
|
-
input: z.strictObject({
|
|
981
|
-
session: z.string(),
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
length: z.number().nullable().optional(),
|
|
1000
|
-
title: z.string().nullable().optional(),
|
|
1001
|
-
ranked: z.boolean().nullable().optional(),
|
|
1002
|
-
beatmapFile: z.string().nullable().optional(),
|
|
1003
|
-
image: z.string().nullable().optional(),
|
|
1004
|
-
starRating: z.number().nullable().optional(),
|
|
1005
|
-
owner: z.number().nullable().optional(),
|
|
1006
|
-
ownerUsername: z.string().nullable().optional(),
|
|
1007
|
-
status: z.string().nullable().optional(),
|
|
1008
|
-
tags: z.string().nullable().optional(),
|
|
1009
|
-
})
|
|
1010
|
-
),
|
|
1011
|
-
}),
|
|
1012
|
-
error: z.string().optional(),
|
|
1013
|
-
}),
|
|
1045
|
+
export const Schema = {
|
|
1046
|
+
input: z.strictObject({
|
|
1047
|
+
session: z.string(),
|
|
1048
|
+
data: z.strictObject({
|
|
1049
|
+
token: z.string(),
|
|
1050
|
+
relayHwid: z.string(),
|
|
1051
|
+
songId: z.string(),
|
|
1052
|
+
misses: z.number(),
|
|
1053
|
+
hits: z.number(),
|
|
1054
|
+
mapHash: z.string(),
|
|
1055
|
+
speed: z.number(),
|
|
1056
|
+
mods: z.array(z.string()),
|
|
1057
|
+
additionalData: z.any(),
|
|
1058
|
+
spin: z.boolean(),
|
|
1059
|
+
virtualStars: z.number(),
|
|
1060
|
+
}),
|
|
1061
|
+
}),
|
|
1062
|
+
output: z.object({
|
|
1063
|
+
error: z.string().optional(),
|
|
1064
|
+
}),
|
|
1014
1065
|
};*/
|
|
1015
|
-
import { Schema as
|
|
1016
|
-
export { Schema as
|
|
1017
|
-
export const
|
|
1066
|
+
import { Schema as SubmitScore } from "./api/submitScore"
|
|
1067
|
+
export { Schema as SchemaSubmitScore } from "./api/submitScore"
|
|
1068
|
+
export const submitScore = handleApi({url:"/api/submitScore",...SubmitScore})
|
|
1018
1069
|
|
|
1019
1070
|
// ./api/updateBeatmapPage.ts API
|
|
1020
1071
|
|
|
1021
1072
|
/*
|
|
1022
|
-
export const Schema = {
|
|
1023
|
-
input: z.strictObject({
|
|
1024
|
-
session: z.string(),
|
|
1025
|
-
id: z.number(),
|
|
1026
|
-
beatmapHash: z.string().optional(),
|
|
1027
|
-
tags: z.string().optional(),
|
|
1028
|
-
description: z.string().optional(),
|
|
1029
|
-
}),
|
|
1030
|
-
output: z.strictObject({
|
|
1031
|
-
error: z.string().optional(),
|
|
1032
|
-
}),
|
|
1073
|
+
export const Schema = {
|
|
1074
|
+
input: z.strictObject({
|
|
1075
|
+
session: z.string(),
|
|
1076
|
+
id: z.number(),
|
|
1077
|
+
beatmapHash: z.string().optional(),
|
|
1078
|
+
tags: z.string().optional(),
|
|
1079
|
+
description: z.string().optional(),
|
|
1080
|
+
}),
|
|
1081
|
+
output: z.strictObject({
|
|
1082
|
+
error: z.string().optional(),
|
|
1083
|
+
}),
|
|
1033
1084
|
};*/
|
|
1034
1085
|
import { Schema as UpdateBeatmapPage } from "./api/updateBeatmapPage"
|
|
1035
1086
|
export { Schema as SchemaUpdateBeatmapPage } from "./api/updateBeatmapPage"
|