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