@anvil-js/client 0.0.1
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/LICENSE +99 -0
- package/README.md +31 -0
- package/dist/chunk-DV6XOONA.js +41 -0
- package/dist/chunk-DV6XOONA.js.map +1 -0
- package/dist/chunk-WIGN6UED.js +728 -0
- package/dist/chunk-WIGN6UED.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/provider-2AIXk8yy.d.ts +15601 -0
- package/dist/react/index.d.ts +25 -0
- package/dist/react/index.js +16 -0
- package/dist/react/index.js.map +1 -0
- package/dist/schemas/index.d.ts +2584 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/server.d.ts +3869 -0
- package/dist/server.js +492 -0
- package/dist/server.js.map +1 -0
- package/dist/ws/index.d.ts +298 -0
- package/dist/ws/index.js +608 -0
- package/dist/ws/index.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,2584 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const UUIDSchema: z.ZodString;
|
|
4
|
+
type UUID = z.infer<typeof UUIDSchema>;
|
|
5
|
+
declare const ISODateSchema: z.ZodString;
|
|
6
|
+
type ISODate = z.infer<typeof ISODateSchema>;
|
|
7
|
+
declare const ArchSchema: z.ZodEnum<["x64", "arm64", "x86"]>;
|
|
8
|
+
type Arch = z.infer<typeof ArchSchema>;
|
|
9
|
+
declare const PlatformSchema: z.ZodEnum<["windows", "macos", "linux"]>;
|
|
10
|
+
type Platform = z.infer<typeof PlatformSchema>;
|
|
11
|
+
declare const LoaderTypeSchema: z.ZodEnum<["vanilla", "fabric", "forge", "neoforge", "quilt"]>;
|
|
12
|
+
type LoaderType = z.infer<typeof LoaderTypeSchema>;
|
|
13
|
+
declare const LocalizedStringSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
14
|
+
type LocalizedString = z.infer<typeof LocalizedStringSchema>;
|
|
15
|
+
declare const TRPCErrorSchema: z.ZodObject<{
|
|
16
|
+
code: z.ZodEnum<["BAD_REQUEST", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "TOO_MANY_REQUESTS", "INTERNAL_SERVER_ERROR"]>;
|
|
17
|
+
message: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
code: "BAD_REQUEST" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "TOO_MANY_REQUESTS" | "INTERNAL_SERVER_ERROR";
|
|
20
|
+
message: string;
|
|
21
|
+
}, {
|
|
22
|
+
code: "BAD_REQUEST" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "TOO_MANY_REQUESTS" | "INTERNAL_SERVER_ERROR";
|
|
23
|
+
message: string;
|
|
24
|
+
}>;
|
|
25
|
+
type TRPCError = z.infer<typeof TRPCErrorSchema>;
|
|
26
|
+
declare const PaginationInputSchema: z.ZodObject<{
|
|
27
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
page: number;
|
|
31
|
+
pageSize: number;
|
|
32
|
+
}, {
|
|
33
|
+
page?: number | undefined;
|
|
34
|
+
pageSize?: number | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
type PaginationInput = z.infer<typeof PaginationInputSchema>;
|
|
37
|
+
declare const PaginatedSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
38
|
+
items: z.ZodArray<T, "many">;
|
|
39
|
+
total: z.ZodNumber;
|
|
40
|
+
page: z.ZodNumber;
|
|
41
|
+
pageSize: z.ZodNumber;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
page: number;
|
|
44
|
+
pageSize: number;
|
|
45
|
+
items: T["_output"][];
|
|
46
|
+
total: number;
|
|
47
|
+
}, {
|
|
48
|
+
page: number;
|
|
49
|
+
pageSize: number;
|
|
50
|
+
items: T["_input"][];
|
|
51
|
+
total: number;
|
|
52
|
+
}>;
|
|
53
|
+
|
|
54
|
+
declare const UserSummarySchema: z.ZodObject<{
|
|
55
|
+
uuid: z.ZodString;
|
|
56
|
+
email: z.ZodString;
|
|
57
|
+
username: z.ZodString;
|
|
58
|
+
displayName: z.ZodString;
|
|
59
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
60
|
+
role: z.ZodDefault<z.ZodEnum<["USER", "MODERATOR", "ADMIN"]>>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
email: string;
|
|
63
|
+
uuid: string;
|
|
64
|
+
username: string;
|
|
65
|
+
displayName: string;
|
|
66
|
+
avatarUrl: string | null;
|
|
67
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
68
|
+
}, {
|
|
69
|
+
email: string;
|
|
70
|
+
uuid: string;
|
|
71
|
+
username: string;
|
|
72
|
+
displayName: string;
|
|
73
|
+
avatarUrl: string | null;
|
|
74
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
type UserSummary = z.infer<typeof UserSummarySchema>;
|
|
77
|
+
declare const SessionSchema: z.ZodObject<{
|
|
78
|
+
anvil: z.ZodObject<{
|
|
79
|
+
user: z.ZodObject<{
|
|
80
|
+
uuid: z.ZodString;
|
|
81
|
+
email: z.ZodString;
|
|
82
|
+
username: z.ZodString;
|
|
83
|
+
displayName: z.ZodString;
|
|
84
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
85
|
+
role: z.ZodDefault<z.ZodEnum<["USER", "MODERATOR", "ADMIN"]>>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
email: string;
|
|
88
|
+
uuid: string;
|
|
89
|
+
username: string;
|
|
90
|
+
displayName: string;
|
|
91
|
+
avatarUrl: string | null;
|
|
92
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
93
|
+
}, {
|
|
94
|
+
email: string;
|
|
95
|
+
uuid: string;
|
|
96
|
+
username: string;
|
|
97
|
+
displayName: string;
|
|
98
|
+
avatarUrl: string | null;
|
|
99
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
accessToken: z.ZodString;
|
|
102
|
+
refreshToken: z.ZodString;
|
|
103
|
+
expiresAt: z.ZodString;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
user: {
|
|
106
|
+
email: string;
|
|
107
|
+
uuid: string;
|
|
108
|
+
username: string;
|
|
109
|
+
displayName: string;
|
|
110
|
+
avatarUrl: string | null;
|
|
111
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
112
|
+
};
|
|
113
|
+
accessToken: string;
|
|
114
|
+
refreshToken: string;
|
|
115
|
+
expiresAt: string;
|
|
116
|
+
}, {
|
|
117
|
+
user: {
|
|
118
|
+
email: string;
|
|
119
|
+
uuid: string;
|
|
120
|
+
username: string;
|
|
121
|
+
displayName: string;
|
|
122
|
+
avatarUrl: string | null;
|
|
123
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
124
|
+
};
|
|
125
|
+
accessToken: string;
|
|
126
|
+
refreshToken: string;
|
|
127
|
+
expiresAt: string;
|
|
128
|
+
}>;
|
|
129
|
+
mojang: z.ZodNullable<z.ZodObject<{
|
|
130
|
+
uuid: z.ZodString;
|
|
131
|
+
username: z.ZodString;
|
|
132
|
+
accessToken: z.ZodString;
|
|
133
|
+
expiresAt: z.ZodString;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
uuid: string;
|
|
136
|
+
username: string;
|
|
137
|
+
accessToken: string;
|
|
138
|
+
expiresAt: string;
|
|
139
|
+
}, {
|
|
140
|
+
uuid: string;
|
|
141
|
+
username: string;
|
|
142
|
+
accessToken: string;
|
|
143
|
+
expiresAt: string;
|
|
144
|
+
}>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
anvil: {
|
|
147
|
+
user: {
|
|
148
|
+
email: string;
|
|
149
|
+
uuid: string;
|
|
150
|
+
username: string;
|
|
151
|
+
displayName: string;
|
|
152
|
+
avatarUrl: string | null;
|
|
153
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
154
|
+
};
|
|
155
|
+
accessToken: string;
|
|
156
|
+
refreshToken: string;
|
|
157
|
+
expiresAt: string;
|
|
158
|
+
};
|
|
159
|
+
mojang: {
|
|
160
|
+
uuid: string;
|
|
161
|
+
username: string;
|
|
162
|
+
accessToken: string;
|
|
163
|
+
expiresAt: string;
|
|
164
|
+
} | null;
|
|
165
|
+
}, {
|
|
166
|
+
anvil: {
|
|
167
|
+
user: {
|
|
168
|
+
email: string;
|
|
169
|
+
uuid: string;
|
|
170
|
+
username: string;
|
|
171
|
+
displayName: string;
|
|
172
|
+
avatarUrl: string | null;
|
|
173
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
174
|
+
};
|
|
175
|
+
accessToken: string;
|
|
176
|
+
refreshToken: string;
|
|
177
|
+
expiresAt: string;
|
|
178
|
+
};
|
|
179
|
+
mojang: {
|
|
180
|
+
uuid: string;
|
|
181
|
+
username: string;
|
|
182
|
+
accessToken: string;
|
|
183
|
+
expiresAt: string;
|
|
184
|
+
} | null;
|
|
185
|
+
}>;
|
|
186
|
+
type Session = z.infer<typeof SessionSchema>;
|
|
187
|
+
declare const LoginInputSchema: z.ZodObject<{
|
|
188
|
+
email: z.ZodString;
|
|
189
|
+
password: z.ZodString;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
email: string;
|
|
192
|
+
password: string;
|
|
193
|
+
}, {
|
|
194
|
+
email: string;
|
|
195
|
+
password: string;
|
|
196
|
+
}>;
|
|
197
|
+
type LoginInput = z.infer<typeof LoginInputSchema>;
|
|
198
|
+
declare const RegisterInputSchema: z.ZodObject<{
|
|
199
|
+
email: z.ZodString;
|
|
200
|
+
username: z.ZodString;
|
|
201
|
+
password: z.ZodString;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
email: string;
|
|
204
|
+
username: string;
|
|
205
|
+
password: string;
|
|
206
|
+
}, {
|
|
207
|
+
email: string;
|
|
208
|
+
username: string;
|
|
209
|
+
password: string;
|
|
210
|
+
}>;
|
|
211
|
+
type RegisterInput = z.infer<typeof RegisterInputSchema>;
|
|
212
|
+
declare const RefreshInputSchema: z.ZodObject<{
|
|
213
|
+
refreshToken: z.ZodString;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
refreshToken: string;
|
|
216
|
+
}, {
|
|
217
|
+
refreshToken: string;
|
|
218
|
+
}>;
|
|
219
|
+
type RefreshInput = z.infer<typeof RefreshInputSchema>;
|
|
220
|
+
declare const ForgotPasswordInputSchema: z.ZodObject<{
|
|
221
|
+
email: z.ZodString;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
email: string;
|
|
224
|
+
}, {
|
|
225
|
+
email: string;
|
|
226
|
+
}>;
|
|
227
|
+
type ForgotPasswordInput = z.infer<typeof ForgotPasswordInputSchema>;
|
|
228
|
+
declare const ResetPasswordInputSchema: z.ZodObject<{
|
|
229
|
+
token: z.ZodString;
|
|
230
|
+
newPassword: z.ZodString;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
token: string;
|
|
233
|
+
newPassword: string;
|
|
234
|
+
}, {
|
|
235
|
+
token: string;
|
|
236
|
+
newPassword: string;
|
|
237
|
+
}>;
|
|
238
|
+
type ResetPasswordInput = z.infer<typeof ResetPasswordInputSchema>;
|
|
239
|
+
declare const ValidateInputSchema: z.ZodObject<{
|
|
240
|
+
token: z.ZodString;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
token: string;
|
|
243
|
+
}, {
|
|
244
|
+
token: string;
|
|
245
|
+
}>;
|
|
246
|
+
type ValidateInput = z.infer<typeof ValidateInputSchema>;
|
|
247
|
+
|
|
248
|
+
declare const BuildSummarySchema: z.ZodObject<{
|
|
249
|
+
id: z.ZodString;
|
|
250
|
+
slug: z.ZodString;
|
|
251
|
+
name: z.ZodString;
|
|
252
|
+
shortDescription: z.ZodString;
|
|
253
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
254
|
+
mcVersions: z.ZodArray<z.ZodString, "many">;
|
|
255
|
+
loaders: z.ZodArray<z.ZodEnum<["vanilla", "fabric", "forge", "neoforge", "quilt"]>, "many">;
|
|
256
|
+
visibility: z.ZodEnum<["public", "private", "unlisted"]>;
|
|
257
|
+
pricing: z.ZodDiscriminatedUnion<"model", [z.ZodObject<{
|
|
258
|
+
model: z.ZodLiteral<"free">;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
model: "free";
|
|
261
|
+
}, {
|
|
262
|
+
model: "free";
|
|
263
|
+
}>, z.ZodObject<{
|
|
264
|
+
model: z.ZodLiteral<"paid">;
|
|
265
|
+
priceCents: z.ZodNumber;
|
|
266
|
+
currency: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
model: "paid";
|
|
269
|
+
priceCents: number;
|
|
270
|
+
currency: string;
|
|
271
|
+
}, {
|
|
272
|
+
model: "paid";
|
|
273
|
+
priceCents: number;
|
|
274
|
+
currency: string;
|
|
275
|
+
}>, z.ZodObject<{
|
|
276
|
+
model: z.ZodLiteral<"subscription">;
|
|
277
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
278
|
+
id: z.ZodString;
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
priceCents: z.ZodNumber;
|
|
281
|
+
interval: z.ZodEnum<["month", "year"]>;
|
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
id: string;
|
|
284
|
+
name: string;
|
|
285
|
+
priceCents: number;
|
|
286
|
+
interval: "month" | "year";
|
|
287
|
+
}, {
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
priceCents: number;
|
|
291
|
+
interval: "month" | "year";
|
|
292
|
+
}>, "many">;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
model: "subscription";
|
|
295
|
+
tiers: {
|
|
296
|
+
id: string;
|
|
297
|
+
name: string;
|
|
298
|
+
priceCents: number;
|
|
299
|
+
interval: "month" | "year";
|
|
300
|
+
}[];
|
|
301
|
+
}, {
|
|
302
|
+
model: "subscription";
|
|
303
|
+
tiers: {
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
priceCents: number;
|
|
307
|
+
interval: "month" | "year";
|
|
308
|
+
}[];
|
|
309
|
+
}>]>;
|
|
310
|
+
stats: z.ZodObject<{
|
|
311
|
+
downloads: z.ZodNumber;
|
|
312
|
+
favorites: z.ZodNumber;
|
|
313
|
+
updatedAt: z.ZodString;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
downloads: number;
|
|
316
|
+
favorites: number;
|
|
317
|
+
updatedAt: string;
|
|
318
|
+
}, {
|
|
319
|
+
downloads: number;
|
|
320
|
+
favorites: number;
|
|
321
|
+
updatedAt: string;
|
|
322
|
+
}>;
|
|
323
|
+
source: z.ZodDefault<z.ZodEnum<["modrinth", "anvil"]>>;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
id: string;
|
|
326
|
+
slug: string;
|
|
327
|
+
name: string;
|
|
328
|
+
shortDescription: string;
|
|
329
|
+
iconUrl: string | null;
|
|
330
|
+
mcVersions: string[];
|
|
331
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
332
|
+
visibility: "public" | "private" | "unlisted";
|
|
333
|
+
pricing: {
|
|
334
|
+
model: "free";
|
|
335
|
+
} | {
|
|
336
|
+
model: "paid";
|
|
337
|
+
priceCents: number;
|
|
338
|
+
currency: string;
|
|
339
|
+
} | {
|
|
340
|
+
model: "subscription";
|
|
341
|
+
tiers: {
|
|
342
|
+
id: string;
|
|
343
|
+
name: string;
|
|
344
|
+
priceCents: number;
|
|
345
|
+
interval: "month" | "year";
|
|
346
|
+
}[];
|
|
347
|
+
};
|
|
348
|
+
stats: {
|
|
349
|
+
downloads: number;
|
|
350
|
+
favorites: number;
|
|
351
|
+
updatedAt: string;
|
|
352
|
+
};
|
|
353
|
+
source: "anvil" | "modrinth";
|
|
354
|
+
}, {
|
|
355
|
+
id: string;
|
|
356
|
+
slug: string;
|
|
357
|
+
name: string;
|
|
358
|
+
shortDescription: string;
|
|
359
|
+
iconUrl: string | null;
|
|
360
|
+
mcVersions: string[];
|
|
361
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
362
|
+
visibility: "public" | "private" | "unlisted";
|
|
363
|
+
pricing: {
|
|
364
|
+
model: "free";
|
|
365
|
+
} | {
|
|
366
|
+
model: "paid";
|
|
367
|
+
priceCents: number;
|
|
368
|
+
currency: string;
|
|
369
|
+
} | {
|
|
370
|
+
model: "subscription";
|
|
371
|
+
tiers: {
|
|
372
|
+
id: string;
|
|
373
|
+
name: string;
|
|
374
|
+
priceCents: number;
|
|
375
|
+
interval: "month" | "year";
|
|
376
|
+
}[];
|
|
377
|
+
};
|
|
378
|
+
stats: {
|
|
379
|
+
downloads: number;
|
|
380
|
+
favorites: number;
|
|
381
|
+
updatedAt: string;
|
|
382
|
+
};
|
|
383
|
+
source?: "anvil" | "modrinth" | undefined;
|
|
384
|
+
}>;
|
|
385
|
+
type BuildSummary = z.infer<typeof BuildSummarySchema>;
|
|
386
|
+
declare const BuildFileSchema: z.ZodObject<{
|
|
387
|
+
url: z.ZodString;
|
|
388
|
+
sha256: z.ZodString;
|
|
389
|
+
sizeBytes: z.ZodNumber;
|
|
390
|
+
primary: z.ZodBoolean;
|
|
391
|
+
}, "strip", z.ZodTypeAny, {
|
|
392
|
+
url: string;
|
|
393
|
+
sha256: string;
|
|
394
|
+
sizeBytes: number;
|
|
395
|
+
primary: boolean;
|
|
396
|
+
}, {
|
|
397
|
+
url: string;
|
|
398
|
+
sha256: string;
|
|
399
|
+
sizeBytes: number;
|
|
400
|
+
primary: boolean;
|
|
401
|
+
}>;
|
|
402
|
+
type BuildFile = z.infer<typeof BuildFileSchema>;
|
|
403
|
+
declare const BuildVersionSchema: z.ZodObject<{
|
|
404
|
+
id: z.ZodString;
|
|
405
|
+
buildId: z.ZodString;
|
|
406
|
+
name: z.ZodString;
|
|
407
|
+
mcVersion: z.ZodString;
|
|
408
|
+
loader: z.ZodEnum<["vanilla", "fabric", "forge", "neoforge", "quilt"]>;
|
|
409
|
+
loaderVersion: z.ZodString;
|
|
410
|
+
files: z.ZodArray<z.ZodObject<{
|
|
411
|
+
url: z.ZodString;
|
|
412
|
+
sha256: z.ZodString;
|
|
413
|
+
sizeBytes: z.ZodNumber;
|
|
414
|
+
primary: z.ZodBoolean;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
url: string;
|
|
417
|
+
sha256: string;
|
|
418
|
+
sizeBytes: number;
|
|
419
|
+
primary: boolean;
|
|
420
|
+
}, {
|
|
421
|
+
url: string;
|
|
422
|
+
sha256: string;
|
|
423
|
+
sizeBytes: number;
|
|
424
|
+
primary: boolean;
|
|
425
|
+
}>, "many">;
|
|
426
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
427
|
+
kind: z.ZodEnum<["required", "optional", "incompatible", "embedded"]>;
|
|
428
|
+
projectId: z.ZodString;
|
|
429
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
430
|
+
}, "strip", z.ZodTypeAny, {
|
|
431
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
432
|
+
projectId: string;
|
|
433
|
+
versionId?: string | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
436
|
+
projectId: string;
|
|
437
|
+
versionId?: string | undefined;
|
|
438
|
+
}>, "many">;
|
|
439
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
440
|
+
publishedAt: z.ZodString;
|
|
441
|
+
}, "strip", z.ZodTypeAny, {
|
|
442
|
+
id: string;
|
|
443
|
+
name: string;
|
|
444
|
+
buildId: string;
|
|
445
|
+
mcVersion: string;
|
|
446
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
447
|
+
loaderVersion: string;
|
|
448
|
+
files: {
|
|
449
|
+
url: string;
|
|
450
|
+
sha256: string;
|
|
451
|
+
sizeBytes: number;
|
|
452
|
+
primary: boolean;
|
|
453
|
+
}[];
|
|
454
|
+
dependencies: {
|
|
455
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
456
|
+
projectId: string;
|
|
457
|
+
versionId?: string | undefined;
|
|
458
|
+
}[];
|
|
459
|
+
publishedAt: string;
|
|
460
|
+
changelog?: string | undefined;
|
|
461
|
+
}, {
|
|
462
|
+
id: string;
|
|
463
|
+
name: string;
|
|
464
|
+
buildId: string;
|
|
465
|
+
mcVersion: string;
|
|
466
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
467
|
+
loaderVersion: string;
|
|
468
|
+
files: {
|
|
469
|
+
url: string;
|
|
470
|
+
sha256: string;
|
|
471
|
+
sizeBytes: number;
|
|
472
|
+
primary: boolean;
|
|
473
|
+
}[];
|
|
474
|
+
dependencies: {
|
|
475
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
476
|
+
projectId: string;
|
|
477
|
+
versionId?: string | undefined;
|
|
478
|
+
}[];
|
|
479
|
+
publishedAt: string;
|
|
480
|
+
changelog?: string | undefined;
|
|
481
|
+
}>;
|
|
482
|
+
type BuildVersion = z.infer<typeof BuildVersionSchema>;
|
|
483
|
+
declare const BuildSchema: z.ZodObject<{
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
slug: z.ZodString;
|
|
486
|
+
name: z.ZodString;
|
|
487
|
+
shortDescription: z.ZodString;
|
|
488
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
489
|
+
mcVersions: z.ZodArray<z.ZodString, "many">;
|
|
490
|
+
loaders: z.ZodArray<z.ZodEnum<["vanilla", "fabric", "forge", "neoforge", "quilt"]>, "many">;
|
|
491
|
+
visibility: z.ZodEnum<["public", "private", "unlisted"]>;
|
|
492
|
+
pricing: z.ZodDiscriminatedUnion<"model", [z.ZodObject<{
|
|
493
|
+
model: z.ZodLiteral<"free">;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
model: "free";
|
|
496
|
+
}, {
|
|
497
|
+
model: "free";
|
|
498
|
+
}>, z.ZodObject<{
|
|
499
|
+
model: z.ZodLiteral<"paid">;
|
|
500
|
+
priceCents: z.ZodNumber;
|
|
501
|
+
currency: z.ZodString;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
model: "paid";
|
|
504
|
+
priceCents: number;
|
|
505
|
+
currency: string;
|
|
506
|
+
}, {
|
|
507
|
+
model: "paid";
|
|
508
|
+
priceCents: number;
|
|
509
|
+
currency: string;
|
|
510
|
+
}>, z.ZodObject<{
|
|
511
|
+
model: z.ZodLiteral<"subscription">;
|
|
512
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
513
|
+
id: z.ZodString;
|
|
514
|
+
name: z.ZodString;
|
|
515
|
+
priceCents: z.ZodNumber;
|
|
516
|
+
interval: z.ZodEnum<["month", "year"]>;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
id: string;
|
|
519
|
+
name: string;
|
|
520
|
+
priceCents: number;
|
|
521
|
+
interval: "month" | "year";
|
|
522
|
+
}, {
|
|
523
|
+
id: string;
|
|
524
|
+
name: string;
|
|
525
|
+
priceCents: number;
|
|
526
|
+
interval: "month" | "year";
|
|
527
|
+
}>, "many">;
|
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
model: "subscription";
|
|
530
|
+
tiers: {
|
|
531
|
+
id: string;
|
|
532
|
+
name: string;
|
|
533
|
+
priceCents: number;
|
|
534
|
+
interval: "month" | "year";
|
|
535
|
+
}[];
|
|
536
|
+
}, {
|
|
537
|
+
model: "subscription";
|
|
538
|
+
tiers: {
|
|
539
|
+
id: string;
|
|
540
|
+
name: string;
|
|
541
|
+
priceCents: number;
|
|
542
|
+
interval: "month" | "year";
|
|
543
|
+
}[];
|
|
544
|
+
}>]>;
|
|
545
|
+
stats: z.ZodObject<{
|
|
546
|
+
downloads: z.ZodNumber;
|
|
547
|
+
favorites: z.ZodNumber;
|
|
548
|
+
updatedAt: z.ZodString;
|
|
549
|
+
}, "strip", z.ZodTypeAny, {
|
|
550
|
+
downloads: number;
|
|
551
|
+
favorites: number;
|
|
552
|
+
updatedAt: string;
|
|
553
|
+
}, {
|
|
554
|
+
downloads: number;
|
|
555
|
+
favorites: number;
|
|
556
|
+
updatedAt: string;
|
|
557
|
+
}>;
|
|
558
|
+
source: z.ZodDefault<z.ZodEnum<["modrinth", "anvil"]>>;
|
|
559
|
+
} & {
|
|
560
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
561
|
+
id: z.ZodString;
|
|
562
|
+
buildId: z.ZodString;
|
|
563
|
+
name: z.ZodString;
|
|
564
|
+
mcVersion: z.ZodString;
|
|
565
|
+
loader: z.ZodEnum<["vanilla", "fabric", "forge", "neoforge", "quilt"]>;
|
|
566
|
+
loaderVersion: z.ZodString;
|
|
567
|
+
files: z.ZodArray<z.ZodObject<{
|
|
568
|
+
url: z.ZodString;
|
|
569
|
+
sha256: z.ZodString;
|
|
570
|
+
sizeBytes: z.ZodNumber;
|
|
571
|
+
primary: z.ZodBoolean;
|
|
572
|
+
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
url: string;
|
|
574
|
+
sha256: string;
|
|
575
|
+
sizeBytes: number;
|
|
576
|
+
primary: boolean;
|
|
577
|
+
}, {
|
|
578
|
+
url: string;
|
|
579
|
+
sha256: string;
|
|
580
|
+
sizeBytes: number;
|
|
581
|
+
primary: boolean;
|
|
582
|
+
}>, "many">;
|
|
583
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
584
|
+
kind: z.ZodEnum<["required", "optional", "incompatible", "embedded"]>;
|
|
585
|
+
projectId: z.ZodString;
|
|
586
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
587
|
+
}, "strip", z.ZodTypeAny, {
|
|
588
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
589
|
+
projectId: string;
|
|
590
|
+
versionId?: string | undefined;
|
|
591
|
+
}, {
|
|
592
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
593
|
+
projectId: string;
|
|
594
|
+
versionId?: string | undefined;
|
|
595
|
+
}>, "many">;
|
|
596
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
597
|
+
publishedAt: z.ZodString;
|
|
598
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
|
+
id: string;
|
|
600
|
+
name: string;
|
|
601
|
+
buildId: string;
|
|
602
|
+
mcVersion: string;
|
|
603
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
604
|
+
loaderVersion: string;
|
|
605
|
+
files: {
|
|
606
|
+
url: string;
|
|
607
|
+
sha256: string;
|
|
608
|
+
sizeBytes: number;
|
|
609
|
+
primary: boolean;
|
|
610
|
+
}[];
|
|
611
|
+
dependencies: {
|
|
612
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
613
|
+
projectId: string;
|
|
614
|
+
versionId?: string | undefined;
|
|
615
|
+
}[];
|
|
616
|
+
publishedAt: string;
|
|
617
|
+
changelog?: string | undefined;
|
|
618
|
+
}, {
|
|
619
|
+
id: string;
|
|
620
|
+
name: string;
|
|
621
|
+
buildId: string;
|
|
622
|
+
mcVersion: string;
|
|
623
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
624
|
+
loaderVersion: string;
|
|
625
|
+
files: {
|
|
626
|
+
url: string;
|
|
627
|
+
sha256: string;
|
|
628
|
+
sizeBytes: number;
|
|
629
|
+
primary: boolean;
|
|
630
|
+
}[];
|
|
631
|
+
dependencies: {
|
|
632
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
633
|
+
projectId: string;
|
|
634
|
+
versionId?: string | undefined;
|
|
635
|
+
}[];
|
|
636
|
+
publishedAt: string;
|
|
637
|
+
changelog?: string | undefined;
|
|
638
|
+
}>, "many">;
|
|
639
|
+
description: z.ZodOptional<z.ZodString>;
|
|
640
|
+
longDescription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
id: string;
|
|
643
|
+
slug: string;
|
|
644
|
+
name: string;
|
|
645
|
+
shortDescription: string;
|
|
646
|
+
iconUrl: string | null;
|
|
647
|
+
mcVersions: string[];
|
|
648
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
649
|
+
visibility: "public" | "private" | "unlisted";
|
|
650
|
+
pricing: {
|
|
651
|
+
model: "free";
|
|
652
|
+
} | {
|
|
653
|
+
model: "paid";
|
|
654
|
+
priceCents: number;
|
|
655
|
+
currency: string;
|
|
656
|
+
} | {
|
|
657
|
+
model: "subscription";
|
|
658
|
+
tiers: {
|
|
659
|
+
id: string;
|
|
660
|
+
name: string;
|
|
661
|
+
priceCents: number;
|
|
662
|
+
interval: "month" | "year";
|
|
663
|
+
}[];
|
|
664
|
+
};
|
|
665
|
+
stats: {
|
|
666
|
+
downloads: number;
|
|
667
|
+
favorites: number;
|
|
668
|
+
updatedAt: string;
|
|
669
|
+
};
|
|
670
|
+
source: "anvil" | "modrinth";
|
|
671
|
+
versions: {
|
|
672
|
+
id: string;
|
|
673
|
+
name: string;
|
|
674
|
+
buildId: string;
|
|
675
|
+
mcVersion: string;
|
|
676
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
677
|
+
loaderVersion: string;
|
|
678
|
+
files: {
|
|
679
|
+
url: string;
|
|
680
|
+
sha256: string;
|
|
681
|
+
sizeBytes: number;
|
|
682
|
+
primary: boolean;
|
|
683
|
+
}[];
|
|
684
|
+
dependencies: {
|
|
685
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
686
|
+
projectId: string;
|
|
687
|
+
versionId?: string | undefined;
|
|
688
|
+
}[];
|
|
689
|
+
publishedAt: string;
|
|
690
|
+
changelog?: string | undefined;
|
|
691
|
+
}[];
|
|
692
|
+
description?: string | undefined;
|
|
693
|
+
longDescription?: Record<string, string> | undefined;
|
|
694
|
+
}, {
|
|
695
|
+
id: string;
|
|
696
|
+
slug: string;
|
|
697
|
+
name: string;
|
|
698
|
+
shortDescription: string;
|
|
699
|
+
iconUrl: string | null;
|
|
700
|
+
mcVersions: string[];
|
|
701
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
702
|
+
visibility: "public" | "private" | "unlisted";
|
|
703
|
+
pricing: {
|
|
704
|
+
model: "free";
|
|
705
|
+
} | {
|
|
706
|
+
model: "paid";
|
|
707
|
+
priceCents: number;
|
|
708
|
+
currency: string;
|
|
709
|
+
} | {
|
|
710
|
+
model: "subscription";
|
|
711
|
+
tiers: {
|
|
712
|
+
id: string;
|
|
713
|
+
name: string;
|
|
714
|
+
priceCents: number;
|
|
715
|
+
interval: "month" | "year";
|
|
716
|
+
}[];
|
|
717
|
+
};
|
|
718
|
+
stats: {
|
|
719
|
+
downloads: number;
|
|
720
|
+
favorites: number;
|
|
721
|
+
updatedAt: string;
|
|
722
|
+
};
|
|
723
|
+
versions: {
|
|
724
|
+
id: string;
|
|
725
|
+
name: string;
|
|
726
|
+
buildId: string;
|
|
727
|
+
mcVersion: string;
|
|
728
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
729
|
+
loaderVersion: string;
|
|
730
|
+
files: {
|
|
731
|
+
url: string;
|
|
732
|
+
sha256: string;
|
|
733
|
+
sizeBytes: number;
|
|
734
|
+
primary: boolean;
|
|
735
|
+
}[];
|
|
736
|
+
dependencies: {
|
|
737
|
+
kind: "required" | "optional" | "incompatible" | "embedded";
|
|
738
|
+
projectId: string;
|
|
739
|
+
versionId?: string | undefined;
|
|
740
|
+
}[];
|
|
741
|
+
publishedAt: string;
|
|
742
|
+
changelog?: string | undefined;
|
|
743
|
+
}[];
|
|
744
|
+
source?: "anvil" | "modrinth" | undefined;
|
|
745
|
+
description?: string | undefined;
|
|
746
|
+
longDescription?: Record<string, string> | undefined;
|
|
747
|
+
}>;
|
|
748
|
+
type Build = z.infer<typeof BuildSchema>;
|
|
749
|
+
declare const ListBuildsInputSchema: z.ZodObject<{
|
|
750
|
+
search: z.ZodOptional<z.ZodString>;
|
|
751
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
752
|
+
mcVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
753
|
+
loaders: z.ZodOptional<z.ZodArray<z.ZodEnum<["vanilla", "fabric", "forge", "neoforge", "quilt"]>, "many">>;
|
|
754
|
+
visibility: z.ZodOptional<z.ZodArray<z.ZodEnum<["public", "private", "unlisted"]>, "many">>;
|
|
755
|
+
source: z.ZodOptional<z.ZodArray<z.ZodEnum<["modrinth", "anvil"]>, "many">>;
|
|
756
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
757
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
758
|
+
sort: z.ZodDefault<z.ZodEnum<["popular", "recent", "name"]>>;
|
|
759
|
+
}, "strip", z.ZodTypeAny, {
|
|
760
|
+
sort: "name" | "popular" | "recent";
|
|
761
|
+
page: number;
|
|
762
|
+
pageSize: number;
|
|
763
|
+
mcVersions?: string[] | undefined;
|
|
764
|
+
loaders?: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[] | undefined;
|
|
765
|
+
visibility?: ("public" | "private" | "unlisted")[] | undefined;
|
|
766
|
+
source?: ("anvil" | "modrinth")[] | undefined;
|
|
767
|
+
search?: string | undefined;
|
|
768
|
+
tags?: string[] | undefined;
|
|
769
|
+
}, {
|
|
770
|
+
sort?: "name" | "popular" | "recent" | undefined;
|
|
771
|
+
page?: number | undefined;
|
|
772
|
+
pageSize?: number | undefined;
|
|
773
|
+
mcVersions?: string[] | undefined;
|
|
774
|
+
loaders?: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[] | undefined;
|
|
775
|
+
visibility?: ("public" | "private" | "unlisted")[] | undefined;
|
|
776
|
+
source?: ("anvil" | "modrinth")[] | undefined;
|
|
777
|
+
search?: string | undefined;
|
|
778
|
+
tags?: string[] | undefined;
|
|
779
|
+
}>;
|
|
780
|
+
type ListBuildsInput = z.infer<typeof ListBuildsInputSchema>;
|
|
781
|
+
declare const GetBuildInputSchema: z.ZodObject<{
|
|
782
|
+
idOrSlug: z.ZodString;
|
|
783
|
+
}, "strip", z.ZodTypeAny, {
|
|
784
|
+
idOrSlug: string;
|
|
785
|
+
}, {
|
|
786
|
+
idOrSlug: string;
|
|
787
|
+
}>;
|
|
788
|
+
type GetBuildInput = z.infer<typeof GetBuildInputSchema>;
|
|
789
|
+
declare const RequestDownloadInputSchema: z.ZodObject<{
|
|
790
|
+
versionId: z.ZodString;
|
|
791
|
+
clientArch: z.ZodOptional<z.ZodEnum<["x64", "arm64", "x86"]>>;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
versionId: string;
|
|
794
|
+
clientArch?: "x64" | "arm64" | "x86" | undefined;
|
|
795
|
+
}, {
|
|
796
|
+
versionId: string;
|
|
797
|
+
clientArch?: "x64" | "arm64" | "x86" | undefined;
|
|
798
|
+
}>;
|
|
799
|
+
type RequestDownloadInput = z.infer<typeof RequestDownloadInputSchema>;
|
|
800
|
+
declare const RequestDownloadOutputSchema: z.ZodObject<{
|
|
801
|
+
installId: z.ZodString;
|
|
802
|
+
downloadUrl: z.ZodString;
|
|
803
|
+
expiresAt: z.ZodString;
|
|
804
|
+
sha256: z.ZodString;
|
|
805
|
+
sizeBytes: z.ZodNumber;
|
|
806
|
+
}, "strip", z.ZodTypeAny, {
|
|
807
|
+
expiresAt: string;
|
|
808
|
+
sha256: string;
|
|
809
|
+
sizeBytes: number;
|
|
810
|
+
installId: string;
|
|
811
|
+
downloadUrl: string;
|
|
812
|
+
}, {
|
|
813
|
+
expiresAt: string;
|
|
814
|
+
sha256: string;
|
|
815
|
+
sizeBytes: number;
|
|
816
|
+
installId: string;
|
|
817
|
+
downloadUrl: string;
|
|
818
|
+
}>;
|
|
819
|
+
type RequestDownloadOutput = z.infer<typeof RequestDownloadInputSchema>;
|
|
820
|
+
|
|
821
|
+
declare const LicenseSchema: z.ZodObject<{
|
|
822
|
+
id: z.ZodString;
|
|
823
|
+
buildId: z.ZodString;
|
|
824
|
+
buildName: z.ZodString;
|
|
825
|
+
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
826
|
+
source: z.ZodEnum<["purchase", "subscription", "gift", "promo", "dev_grant"]>;
|
|
827
|
+
grantedAt: z.ZodString;
|
|
828
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
829
|
+
}, "strip", z.ZodTypeAny, {
|
|
830
|
+
status: "active" | "expired" | "revoked";
|
|
831
|
+
expiresAt: string | null;
|
|
832
|
+
id: string;
|
|
833
|
+
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
834
|
+
buildId: string;
|
|
835
|
+
buildName: string;
|
|
836
|
+
grantedAt: string;
|
|
837
|
+
}, {
|
|
838
|
+
status: "active" | "expired" | "revoked";
|
|
839
|
+
expiresAt: string | null;
|
|
840
|
+
id: string;
|
|
841
|
+
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
842
|
+
buildId: string;
|
|
843
|
+
buildName: string;
|
|
844
|
+
grantedAt: string;
|
|
845
|
+
}>;
|
|
846
|
+
type License = z.infer<typeof LicenseSchema>;
|
|
847
|
+
declare const ListLicensesInputSchema: z.ZodObject<{
|
|
848
|
+
buildId: z.ZodOptional<z.ZodString>;
|
|
849
|
+
status: z.ZodOptional<z.ZodEnum<["active", "expired", "revoked"]>>;
|
|
850
|
+
}, "strip", z.ZodTypeAny, {
|
|
851
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
852
|
+
buildId?: string | undefined;
|
|
853
|
+
}, {
|
|
854
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
855
|
+
buildId?: string | undefined;
|
|
856
|
+
}>;
|
|
857
|
+
type ListLicensesInput = z.infer<typeof ListLicensesInputSchema>;
|
|
858
|
+
declare const CheckLicenseInputSchema: z.ZodObject<{
|
|
859
|
+
buildId: z.ZodString;
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
861
|
+
buildId: string;
|
|
862
|
+
}, {
|
|
863
|
+
buildId: string;
|
|
864
|
+
}>;
|
|
865
|
+
type CheckLicenseInput = z.infer<typeof CheckLicenseInputSchema>;
|
|
866
|
+
declare const CheckLicenseOutputSchema: z.ZodObject<{
|
|
867
|
+
hasAccess: z.ZodBoolean;
|
|
868
|
+
license: z.ZodOptional<z.ZodObject<{
|
|
869
|
+
id: z.ZodString;
|
|
870
|
+
buildId: z.ZodString;
|
|
871
|
+
buildName: z.ZodString;
|
|
872
|
+
status: z.ZodEnum<["active", "expired", "revoked"]>;
|
|
873
|
+
source: z.ZodEnum<["purchase", "subscription", "gift", "promo", "dev_grant"]>;
|
|
874
|
+
grantedAt: z.ZodString;
|
|
875
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
876
|
+
}, "strip", z.ZodTypeAny, {
|
|
877
|
+
status: "active" | "expired" | "revoked";
|
|
878
|
+
expiresAt: string | null;
|
|
879
|
+
id: string;
|
|
880
|
+
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
881
|
+
buildId: string;
|
|
882
|
+
buildName: string;
|
|
883
|
+
grantedAt: string;
|
|
884
|
+
}, {
|
|
885
|
+
status: "active" | "expired" | "revoked";
|
|
886
|
+
expiresAt: string | null;
|
|
887
|
+
id: string;
|
|
888
|
+
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
889
|
+
buildId: string;
|
|
890
|
+
buildName: string;
|
|
891
|
+
grantedAt: string;
|
|
892
|
+
}>>;
|
|
893
|
+
reason: z.ZodOptional<z.ZodEnum<["no_license", "expired", "revoked", "region_locked"]>>;
|
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
|
895
|
+
hasAccess: boolean;
|
|
896
|
+
license?: {
|
|
897
|
+
status: "active" | "expired" | "revoked";
|
|
898
|
+
expiresAt: string | null;
|
|
899
|
+
id: string;
|
|
900
|
+
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
901
|
+
buildId: string;
|
|
902
|
+
buildName: string;
|
|
903
|
+
grantedAt: string;
|
|
904
|
+
} | undefined;
|
|
905
|
+
reason?: "expired" | "revoked" | "no_license" | "region_locked" | undefined;
|
|
906
|
+
}, {
|
|
907
|
+
hasAccess: boolean;
|
|
908
|
+
license?: {
|
|
909
|
+
status: "active" | "expired" | "revoked";
|
|
910
|
+
expiresAt: string | null;
|
|
911
|
+
id: string;
|
|
912
|
+
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
913
|
+
buildId: string;
|
|
914
|
+
buildName: string;
|
|
915
|
+
grantedAt: string;
|
|
916
|
+
} | undefined;
|
|
917
|
+
reason?: "expired" | "revoked" | "no_license" | "region_locked" | undefined;
|
|
918
|
+
}>;
|
|
919
|
+
type CheckLicenseOutput = z.infer<typeof CheckLicenseOutputSchema>;
|
|
920
|
+
|
|
921
|
+
declare const LauncherModeSchema: z.ZodEnum<["anvil", "mojang", "hybrid"]>;
|
|
922
|
+
type LauncherMode = z.infer<typeof LauncherModeSchema>;
|
|
923
|
+
declare const AuthProviderSchema: z.ZodEnum<["mojang", "anvil"]>;
|
|
924
|
+
type AuthProvider = z.infer<typeof AuthProviderSchema>;
|
|
925
|
+
declare const ContentSourceSchema: z.ZodEnum<["modrinth", "anvil"]>;
|
|
926
|
+
type ContentSource = z.infer<typeof ContentSourceSchema>;
|
|
927
|
+
declare const AnvilConnectionSchema: z.ZodObject<{
|
|
928
|
+
enabled: z.ZodBoolean;
|
|
929
|
+
baseUrl: z.ZodNullable<z.ZodString>;
|
|
930
|
+
apiKey: z.ZodNullable<z.ZodString>;
|
|
931
|
+
}, "strip", z.ZodTypeAny, {
|
|
932
|
+
enabled: boolean;
|
|
933
|
+
baseUrl: string | null;
|
|
934
|
+
apiKey: string | null;
|
|
935
|
+
}, {
|
|
936
|
+
enabled: boolean;
|
|
937
|
+
baseUrl: string | null;
|
|
938
|
+
apiKey: string | null;
|
|
939
|
+
}>;
|
|
940
|
+
type AnvilConnection = z.infer<typeof AnvilConnectionSchema>;
|
|
941
|
+
declare const AuthConfigSchema: z.ZodObject<{
|
|
942
|
+
providers: z.ZodArray<z.ZodEnum<["mojang", "anvil"]>, "many">;
|
|
943
|
+
}, "strip", z.ZodTypeAny, {
|
|
944
|
+
providers: ("anvil" | "mojang")[];
|
|
945
|
+
}, {
|
|
946
|
+
providers: ("anvil" | "mojang")[];
|
|
947
|
+
}>;
|
|
948
|
+
type AuthConfig = z.infer<typeof AuthConfigSchema>;
|
|
949
|
+
declare const ContentConfigSchema: z.ZodObject<{
|
|
950
|
+
sources: z.ZodArray<z.ZodEnum<["modrinth", "anvil"]>, "many">;
|
|
951
|
+
}, "strip", z.ZodTypeAny, {
|
|
952
|
+
sources: ("anvil" | "modrinth")[];
|
|
953
|
+
}, {
|
|
954
|
+
sources: ("anvil" | "modrinth")[];
|
|
955
|
+
}>;
|
|
956
|
+
type ContentConfig = z.infer<typeof ContentConfigSchema>;
|
|
957
|
+
declare const LauncherConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
958
|
+
mode: z.ZodEnum<["anvil", "mojang", "hybrid"]>;
|
|
959
|
+
auth: z.ZodObject<{
|
|
960
|
+
providers: z.ZodArray<z.ZodEnum<["mojang", "anvil"]>, "many">;
|
|
961
|
+
}, "strip", z.ZodTypeAny, {
|
|
962
|
+
providers: ("anvil" | "mojang")[];
|
|
963
|
+
}, {
|
|
964
|
+
providers: ("anvil" | "mojang")[];
|
|
965
|
+
}>;
|
|
966
|
+
content: z.ZodObject<{
|
|
967
|
+
sources: z.ZodArray<z.ZodEnum<["modrinth", "anvil"]>, "many">;
|
|
968
|
+
}, "strip", z.ZodTypeAny, {
|
|
969
|
+
sources: ("anvil" | "modrinth")[];
|
|
970
|
+
}, {
|
|
971
|
+
sources: ("anvil" | "modrinth")[];
|
|
972
|
+
}>;
|
|
973
|
+
anvil: z.ZodObject<{
|
|
974
|
+
enabled: z.ZodBoolean;
|
|
975
|
+
baseUrl: z.ZodNullable<z.ZodString>;
|
|
976
|
+
apiKey: z.ZodNullable<z.ZodString>;
|
|
977
|
+
}, "strip", z.ZodTypeAny, {
|
|
978
|
+
enabled: boolean;
|
|
979
|
+
baseUrl: string | null;
|
|
980
|
+
apiKey: string | null;
|
|
981
|
+
}, {
|
|
982
|
+
enabled: boolean;
|
|
983
|
+
baseUrl: string | null;
|
|
984
|
+
apiKey: string | null;
|
|
985
|
+
}>;
|
|
986
|
+
telemetry: z.ZodBoolean;
|
|
987
|
+
autoUpdate: z.ZodBoolean;
|
|
988
|
+
region: z.ZodOptional<z.ZodString>;
|
|
989
|
+
version: z.ZodLiteral<1>;
|
|
990
|
+
}, "strip", z.ZodTypeAny, {
|
|
991
|
+
anvil: {
|
|
992
|
+
enabled: boolean;
|
|
993
|
+
baseUrl: string | null;
|
|
994
|
+
apiKey: string | null;
|
|
995
|
+
};
|
|
996
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
997
|
+
auth: {
|
|
998
|
+
providers: ("anvil" | "mojang")[];
|
|
999
|
+
};
|
|
1000
|
+
content: {
|
|
1001
|
+
sources: ("anvil" | "modrinth")[];
|
|
1002
|
+
};
|
|
1003
|
+
telemetry: boolean;
|
|
1004
|
+
autoUpdate: boolean;
|
|
1005
|
+
version: 1;
|
|
1006
|
+
region?: string | undefined;
|
|
1007
|
+
}, {
|
|
1008
|
+
anvil: {
|
|
1009
|
+
enabled: boolean;
|
|
1010
|
+
baseUrl: string | null;
|
|
1011
|
+
apiKey: string | null;
|
|
1012
|
+
};
|
|
1013
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1014
|
+
auth: {
|
|
1015
|
+
providers: ("anvil" | "mojang")[];
|
|
1016
|
+
};
|
|
1017
|
+
content: {
|
|
1018
|
+
sources: ("anvil" | "modrinth")[];
|
|
1019
|
+
};
|
|
1020
|
+
telemetry: boolean;
|
|
1021
|
+
autoUpdate: boolean;
|
|
1022
|
+
version: 1;
|
|
1023
|
+
region?: string | undefined;
|
|
1024
|
+
}>, {
|
|
1025
|
+
anvil: {
|
|
1026
|
+
enabled: boolean;
|
|
1027
|
+
baseUrl: string | null;
|
|
1028
|
+
apiKey: string | null;
|
|
1029
|
+
};
|
|
1030
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1031
|
+
auth: {
|
|
1032
|
+
providers: ("anvil" | "mojang")[];
|
|
1033
|
+
};
|
|
1034
|
+
content: {
|
|
1035
|
+
sources: ("anvil" | "modrinth")[];
|
|
1036
|
+
};
|
|
1037
|
+
telemetry: boolean;
|
|
1038
|
+
autoUpdate: boolean;
|
|
1039
|
+
version: 1;
|
|
1040
|
+
region?: string | undefined;
|
|
1041
|
+
}, {
|
|
1042
|
+
anvil: {
|
|
1043
|
+
enabled: boolean;
|
|
1044
|
+
baseUrl: string | null;
|
|
1045
|
+
apiKey: string | null;
|
|
1046
|
+
};
|
|
1047
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1048
|
+
auth: {
|
|
1049
|
+
providers: ("anvil" | "mojang")[];
|
|
1050
|
+
};
|
|
1051
|
+
content: {
|
|
1052
|
+
sources: ("anvil" | "modrinth")[];
|
|
1053
|
+
};
|
|
1054
|
+
telemetry: boolean;
|
|
1055
|
+
autoUpdate: boolean;
|
|
1056
|
+
version: 1;
|
|
1057
|
+
region?: string | undefined;
|
|
1058
|
+
}>, {
|
|
1059
|
+
anvil: {
|
|
1060
|
+
enabled: boolean;
|
|
1061
|
+
baseUrl: string | null;
|
|
1062
|
+
apiKey: string | null;
|
|
1063
|
+
};
|
|
1064
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1065
|
+
auth: {
|
|
1066
|
+
providers: ("anvil" | "mojang")[];
|
|
1067
|
+
};
|
|
1068
|
+
content: {
|
|
1069
|
+
sources: ("anvil" | "modrinth")[];
|
|
1070
|
+
};
|
|
1071
|
+
telemetry: boolean;
|
|
1072
|
+
autoUpdate: boolean;
|
|
1073
|
+
version: 1;
|
|
1074
|
+
region?: string | undefined;
|
|
1075
|
+
}, {
|
|
1076
|
+
anvil: {
|
|
1077
|
+
enabled: boolean;
|
|
1078
|
+
baseUrl: string | null;
|
|
1079
|
+
apiKey: string | null;
|
|
1080
|
+
};
|
|
1081
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1082
|
+
auth: {
|
|
1083
|
+
providers: ("anvil" | "mojang")[];
|
|
1084
|
+
};
|
|
1085
|
+
content: {
|
|
1086
|
+
sources: ("anvil" | "modrinth")[];
|
|
1087
|
+
};
|
|
1088
|
+
telemetry: boolean;
|
|
1089
|
+
autoUpdate: boolean;
|
|
1090
|
+
version: 1;
|
|
1091
|
+
region?: string | undefined;
|
|
1092
|
+
}>, {
|
|
1093
|
+
anvil: {
|
|
1094
|
+
enabled: boolean;
|
|
1095
|
+
baseUrl: string | null;
|
|
1096
|
+
apiKey: string | null;
|
|
1097
|
+
};
|
|
1098
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1099
|
+
auth: {
|
|
1100
|
+
providers: ("anvil" | "mojang")[];
|
|
1101
|
+
};
|
|
1102
|
+
content: {
|
|
1103
|
+
sources: ("anvil" | "modrinth")[];
|
|
1104
|
+
};
|
|
1105
|
+
telemetry: boolean;
|
|
1106
|
+
autoUpdate: boolean;
|
|
1107
|
+
version: 1;
|
|
1108
|
+
region?: string | undefined;
|
|
1109
|
+
}, {
|
|
1110
|
+
anvil: {
|
|
1111
|
+
enabled: boolean;
|
|
1112
|
+
baseUrl: string | null;
|
|
1113
|
+
apiKey: string | null;
|
|
1114
|
+
};
|
|
1115
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1116
|
+
auth: {
|
|
1117
|
+
providers: ("anvil" | "mojang")[];
|
|
1118
|
+
};
|
|
1119
|
+
content: {
|
|
1120
|
+
sources: ("anvil" | "modrinth")[];
|
|
1121
|
+
};
|
|
1122
|
+
telemetry: boolean;
|
|
1123
|
+
autoUpdate: boolean;
|
|
1124
|
+
version: 1;
|
|
1125
|
+
region?: string | undefined;
|
|
1126
|
+
}>;
|
|
1127
|
+
type LauncherConfig = z.infer<typeof LauncherConfigSchema>;
|
|
1128
|
+
declare const defaultLauncherConfig: () => LauncherConfig;
|
|
1129
|
+
declare const isAuthProviderAnvil: (c: LauncherConfig) => boolean;
|
|
1130
|
+
|
|
1131
|
+
declare const RelationshipTypeSchema: z.ZodEnum<["FRIENDS", "BLOCKED", "NEUTRAL"]>;
|
|
1132
|
+
type RelationshipType = z.infer<typeof RelationshipTypeSchema>;
|
|
1133
|
+
declare const RelationshipStatusSchema: z.ZodEnum<["PENDING", "VERIFIED"]>;
|
|
1134
|
+
type RelationshipStatus = z.infer<typeof RelationshipStatusSchema>;
|
|
1135
|
+
declare const RelationshipDirectionSchema: z.ZodEnum<["INCOMING", "OUTGOING", "MUTUAL"]>;
|
|
1136
|
+
type RelationshipDirection = z.infer<typeof RelationshipDirectionSchema>;
|
|
1137
|
+
declare const RelationshipsListKindSchema: z.ZodEnum<["FRIENDS", "INCOMING_PENDING", "OUTGOING_PENDING", "BLOCKED"]>;
|
|
1138
|
+
type RelationshipsListKind = z.infer<typeof RelationshipsListKindSchema>;
|
|
1139
|
+
declare const PresenceStatusSchema: z.ZodEnum<["ONLINE", "OFFLINE", "AWAY", "BUSY"]>;
|
|
1140
|
+
type PresenceStatus = z.infer<typeof PresenceStatusSchema>;
|
|
1141
|
+
declare const RelationshipSchema: z.ZodObject<{
|
|
1142
|
+
id: z.ZodString;
|
|
1143
|
+
type: z.ZodEnum<["FRIENDS", "BLOCKED", "NEUTRAL"]>;
|
|
1144
|
+
status: z.ZodEnum<["PENDING", "VERIFIED"]>;
|
|
1145
|
+
direction: z.ZodEnum<["INCOMING", "OUTGOING", "MUTUAL"]>;
|
|
1146
|
+
otherUser: z.ZodObject<{
|
|
1147
|
+
uuid: z.ZodString;
|
|
1148
|
+
email: z.ZodString;
|
|
1149
|
+
username: z.ZodString;
|
|
1150
|
+
displayName: z.ZodString;
|
|
1151
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1152
|
+
role: z.ZodDefault<z.ZodEnum<["USER", "MODERATOR", "ADMIN"]>>;
|
|
1153
|
+
}, "strip", z.ZodTypeAny, {
|
|
1154
|
+
email: string;
|
|
1155
|
+
uuid: string;
|
|
1156
|
+
username: string;
|
|
1157
|
+
displayName: string;
|
|
1158
|
+
avatarUrl: string | null;
|
|
1159
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
1160
|
+
}, {
|
|
1161
|
+
email: string;
|
|
1162
|
+
uuid: string;
|
|
1163
|
+
username: string;
|
|
1164
|
+
displayName: string;
|
|
1165
|
+
avatarUrl: string | null;
|
|
1166
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
1167
|
+
}>;
|
|
1168
|
+
since: z.ZodString;
|
|
1169
|
+
initiatorUuid: z.ZodString;
|
|
1170
|
+
}, "strip", z.ZodTypeAny, {
|
|
1171
|
+
type: "FRIENDS" | "BLOCKED" | "NEUTRAL";
|
|
1172
|
+
status: "PENDING" | "VERIFIED";
|
|
1173
|
+
id: string;
|
|
1174
|
+
direction: "INCOMING" | "OUTGOING" | "MUTUAL";
|
|
1175
|
+
otherUser: {
|
|
1176
|
+
email: string;
|
|
1177
|
+
uuid: string;
|
|
1178
|
+
username: string;
|
|
1179
|
+
displayName: string;
|
|
1180
|
+
avatarUrl: string | null;
|
|
1181
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
1182
|
+
};
|
|
1183
|
+
since: string;
|
|
1184
|
+
initiatorUuid: string;
|
|
1185
|
+
}, {
|
|
1186
|
+
type: "FRIENDS" | "BLOCKED" | "NEUTRAL";
|
|
1187
|
+
status: "PENDING" | "VERIFIED";
|
|
1188
|
+
id: string;
|
|
1189
|
+
direction: "INCOMING" | "OUTGOING" | "MUTUAL";
|
|
1190
|
+
otherUser: {
|
|
1191
|
+
email: string;
|
|
1192
|
+
uuid: string;
|
|
1193
|
+
username: string;
|
|
1194
|
+
displayName: string;
|
|
1195
|
+
avatarUrl: string | null;
|
|
1196
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
1197
|
+
};
|
|
1198
|
+
since: string;
|
|
1199
|
+
initiatorUuid: string;
|
|
1200
|
+
}>;
|
|
1201
|
+
type Relationship = z.infer<typeof RelationshipSchema>;
|
|
1202
|
+
declare const TrustedHostSchema: z.ZodObject<{
|
|
1203
|
+
id: z.ZodString;
|
|
1204
|
+
name: z.ZodString;
|
|
1205
|
+
domains: z.ZodArray<z.ZodString, "many">;
|
|
1206
|
+
addedAt: z.ZodString;
|
|
1207
|
+
}, "strip", z.ZodTypeAny, {
|
|
1208
|
+
id: string;
|
|
1209
|
+
name: string;
|
|
1210
|
+
domains: string[];
|
|
1211
|
+
addedAt: string;
|
|
1212
|
+
}, {
|
|
1213
|
+
id: string;
|
|
1214
|
+
name: string;
|
|
1215
|
+
domains: string[];
|
|
1216
|
+
addedAt: string;
|
|
1217
|
+
}>;
|
|
1218
|
+
type TrustedHost = z.infer<typeof TrustedHostSchema>;
|
|
1219
|
+
declare const UserActivitySchema: z.ZodObject<{
|
|
1220
|
+
type: z.ZodString;
|
|
1221
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1222
|
+
}, "strip", z.ZodTypeAny, {
|
|
1223
|
+
type: string;
|
|
1224
|
+
metadata: Record<string, string>;
|
|
1225
|
+
}, {
|
|
1226
|
+
type: string;
|
|
1227
|
+
metadata: Record<string, string>;
|
|
1228
|
+
}>;
|
|
1229
|
+
type UserActivity = z.infer<typeof UserActivitySchema>;
|
|
1230
|
+
declare const PresenceSchema: z.ZodObject<{
|
|
1231
|
+
uuid: z.ZodString;
|
|
1232
|
+
status: z.ZodEnum<["ONLINE", "OFFLINE", "AWAY", "BUSY"]>;
|
|
1233
|
+
lastOnline: z.ZodString;
|
|
1234
|
+
currentActivity: z.ZodOptional<z.ZodObject<{
|
|
1235
|
+
type: z.ZodString;
|
|
1236
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1237
|
+
}, "strip", z.ZodTypeAny, {
|
|
1238
|
+
type: string;
|
|
1239
|
+
metadata: Record<string, string>;
|
|
1240
|
+
}, {
|
|
1241
|
+
type: string;
|
|
1242
|
+
metadata: Record<string, string>;
|
|
1243
|
+
}>>;
|
|
1244
|
+
}, "strip", z.ZodTypeAny, {
|
|
1245
|
+
status: "ONLINE" | "OFFLINE" | "AWAY" | "BUSY";
|
|
1246
|
+
uuid: string;
|
|
1247
|
+
lastOnline: string;
|
|
1248
|
+
currentActivity?: {
|
|
1249
|
+
type: string;
|
|
1250
|
+
metadata: Record<string, string>;
|
|
1251
|
+
} | undefined;
|
|
1252
|
+
}, {
|
|
1253
|
+
status: "ONLINE" | "OFFLINE" | "AWAY" | "BUSY";
|
|
1254
|
+
uuid: string;
|
|
1255
|
+
lastOnline: string;
|
|
1256
|
+
currentActivity?: {
|
|
1257
|
+
type: string;
|
|
1258
|
+
metadata: Record<string, string>;
|
|
1259
|
+
} | undefined;
|
|
1260
|
+
}>;
|
|
1261
|
+
type Presence = z.infer<typeof PresenceSchema>;
|
|
1262
|
+
declare const LocalizedRuleSchema: z.ZodObject<{
|
|
1263
|
+
locale: z.ZodString;
|
|
1264
|
+
title: z.ZodString;
|
|
1265
|
+
body: z.ZodString;
|
|
1266
|
+
}, "strip", z.ZodTypeAny, {
|
|
1267
|
+
locale: string;
|
|
1268
|
+
title: string;
|
|
1269
|
+
body: string;
|
|
1270
|
+
}, {
|
|
1271
|
+
locale: string;
|
|
1272
|
+
title: string;
|
|
1273
|
+
body: string;
|
|
1274
|
+
}>;
|
|
1275
|
+
type LocalizedRule = z.infer<typeof LocalizedRuleSchema>;
|
|
1276
|
+
declare const CommunityRulesStatusSchema: z.ZodObject<{
|
|
1277
|
+
accepted: z.ZodBoolean;
|
|
1278
|
+
version: z.ZodString;
|
|
1279
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
1280
|
+
locale: z.ZodString;
|
|
1281
|
+
title: z.ZodString;
|
|
1282
|
+
body: z.ZodString;
|
|
1283
|
+
}, "strip", z.ZodTypeAny, {
|
|
1284
|
+
locale: string;
|
|
1285
|
+
title: string;
|
|
1286
|
+
body: string;
|
|
1287
|
+
}, {
|
|
1288
|
+
locale: string;
|
|
1289
|
+
title: string;
|
|
1290
|
+
body: string;
|
|
1291
|
+
}>, "many">;
|
|
1292
|
+
updatedAt: z.ZodString;
|
|
1293
|
+
}, "strip", z.ZodTypeAny, {
|
|
1294
|
+
updatedAt: string;
|
|
1295
|
+
version: string;
|
|
1296
|
+
accepted: boolean;
|
|
1297
|
+
rules: {
|
|
1298
|
+
locale: string;
|
|
1299
|
+
title: string;
|
|
1300
|
+
body: string;
|
|
1301
|
+
}[];
|
|
1302
|
+
}, {
|
|
1303
|
+
updatedAt: string;
|
|
1304
|
+
version: string;
|
|
1305
|
+
accepted: boolean;
|
|
1306
|
+
rules: {
|
|
1307
|
+
locale: string;
|
|
1308
|
+
title: string;
|
|
1309
|
+
body: string;
|
|
1310
|
+
}[];
|
|
1311
|
+
}>;
|
|
1312
|
+
type CommunityRulesStatus = z.infer<typeof CommunityRulesStatusSchema>;
|
|
1313
|
+
declare const SuspensionStatusSchema: z.ZodObject<{
|
|
1314
|
+
suspended: z.ZodBoolean;
|
|
1315
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
}, "strip", z.ZodTypeAny, {
|
|
1318
|
+
suspended: boolean;
|
|
1319
|
+
expiresAt?: string | undefined;
|
|
1320
|
+
reason?: string | undefined;
|
|
1321
|
+
}, {
|
|
1322
|
+
suspended: boolean;
|
|
1323
|
+
expiresAt?: string | undefined;
|
|
1324
|
+
reason?: string | undefined;
|
|
1325
|
+
}>;
|
|
1326
|
+
type SuspensionStatus = z.infer<typeof SuspensionStatusSchema>;
|
|
1327
|
+
declare const CreateRelationshipInputSchema: z.ZodObject<{
|
|
1328
|
+
targetUuid: z.ZodString;
|
|
1329
|
+
type: z.ZodEnum<["FRIENDS", "BLOCKED", "NEUTRAL"]>;
|
|
1330
|
+
}, "strip", z.ZodTypeAny, {
|
|
1331
|
+
type: "FRIENDS" | "BLOCKED" | "NEUTRAL";
|
|
1332
|
+
targetUuid: string;
|
|
1333
|
+
}, {
|
|
1334
|
+
type: "FRIENDS" | "BLOCKED" | "NEUTRAL";
|
|
1335
|
+
targetUuid: string;
|
|
1336
|
+
}>;
|
|
1337
|
+
type CreateRelationshipInput = z.infer<typeof CreateRelationshipInputSchema>;
|
|
1338
|
+
declare const DeleteRelationshipInputSchema: z.ZodObject<{
|
|
1339
|
+
targetUuid: z.ZodString;
|
|
1340
|
+
type: z.ZodEnum<["FRIENDS", "BLOCKED", "NEUTRAL"]>;
|
|
1341
|
+
}, "strip", z.ZodTypeAny, {
|
|
1342
|
+
type: "FRIENDS" | "BLOCKED" | "NEUTRAL";
|
|
1343
|
+
targetUuid: string;
|
|
1344
|
+
}, {
|
|
1345
|
+
type: "FRIENDS" | "BLOCKED" | "NEUTRAL";
|
|
1346
|
+
targetUuid: string;
|
|
1347
|
+
}>;
|
|
1348
|
+
type DeleteRelationshipInput = z.infer<typeof DeleteRelationshipInputSchema>;
|
|
1349
|
+
declare const ListRelationshipsInputSchema: z.ZodObject<{
|
|
1350
|
+
type: z.ZodOptional<z.ZodEnum<["FRIENDS", "INCOMING_PENDING", "OUTGOING_PENDING", "BLOCKED"]>>;
|
|
1351
|
+
}, "strip", z.ZodTypeAny, {
|
|
1352
|
+
type?: "FRIENDS" | "BLOCKED" | "INCOMING_PENDING" | "OUTGOING_PENDING" | undefined;
|
|
1353
|
+
}, {
|
|
1354
|
+
type?: "FRIENDS" | "BLOCKED" | "INCOMING_PENDING" | "OUTGOING_PENDING" | undefined;
|
|
1355
|
+
}>;
|
|
1356
|
+
type ListRelationshipsInput = z.infer<typeof ListRelationshipsInputSchema>;
|
|
1357
|
+
declare const AcceptRequestInputSchema: z.ZodObject<{
|
|
1358
|
+
fromUuid: z.ZodString;
|
|
1359
|
+
}, "strip", z.ZodTypeAny, {
|
|
1360
|
+
fromUuid: string;
|
|
1361
|
+
}, {
|
|
1362
|
+
fromUuid: string;
|
|
1363
|
+
}>;
|
|
1364
|
+
type AcceptRequestInput = z.infer<typeof AcceptRequestInputSchema>;
|
|
1365
|
+
declare const CancelRequestInputSchema: z.ZodObject<{
|
|
1366
|
+
toUuid: z.ZodString;
|
|
1367
|
+
}, "strip", z.ZodTypeAny, {
|
|
1368
|
+
toUuid: string;
|
|
1369
|
+
}, {
|
|
1370
|
+
toUuid: string;
|
|
1371
|
+
}>;
|
|
1372
|
+
type CancelRequestInput = z.infer<typeof CancelRequestInputSchema>;
|
|
1373
|
+
declare const LookupByNameInputSchema: z.ZodObject<{
|
|
1374
|
+
username: z.ZodString;
|
|
1375
|
+
}, "strip", z.ZodTypeAny, {
|
|
1376
|
+
username: string;
|
|
1377
|
+
}, {
|
|
1378
|
+
username: string;
|
|
1379
|
+
}>;
|
|
1380
|
+
type LookupByNameInput = z.infer<typeof LookupByNameInputSchema>;
|
|
1381
|
+
declare const ReportActivityInputSchema: z.ZodObject<{
|
|
1382
|
+
type: z.ZodString;
|
|
1383
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1384
|
+
}, "strip", z.ZodTypeAny, {
|
|
1385
|
+
type: string;
|
|
1386
|
+
metadata: Record<string, string>;
|
|
1387
|
+
}, {
|
|
1388
|
+
type: string;
|
|
1389
|
+
metadata: Record<string, string>;
|
|
1390
|
+
}>;
|
|
1391
|
+
type ReportActivityInput = z.infer<typeof ReportActivityInputSchema>;
|
|
1392
|
+
declare const InviteToServerInputSchema: z.ZodObject<{
|
|
1393
|
+
targetUuid: z.ZodString;
|
|
1394
|
+
address: z.ZodString;
|
|
1395
|
+
}, "strip", z.ZodTypeAny, {
|
|
1396
|
+
targetUuid: string;
|
|
1397
|
+
address: string;
|
|
1398
|
+
}, {
|
|
1399
|
+
targetUuid: string;
|
|
1400
|
+
address: string;
|
|
1401
|
+
}>;
|
|
1402
|
+
type InviteToServerInput = z.infer<typeof InviteToServerInputSchema>;
|
|
1403
|
+
declare const CreateTrustedHostInputSchema: z.ZodObject<{
|
|
1404
|
+
name: z.ZodString;
|
|
1405
|
+
domains: z.ZodArray<z.ZodString, "many">;
|
|
1406
|
+
}, "strip", z.ZodTypeAny, {
|
|
1407
|
+
name: string;
|
|
1408
|
+
domains: string[];
|
|
1409
|
+
}, {
|
|
1410
|
+
name: string;
|
|
1411
|
+
domains: string[];
|
|
1412
|
+
}>;
|
|
1413
|
+
type CreateTrustedHostInput = z.infer<typeof CreateTrustedHostInputSchema>;
|
|
1414
|
+
declare const DeleteTrustedHostInputSchema: z.ZodObject<{
|
|
1415
|
+
id: z.ZodString;
|
|
1416
|
+
}, "strip", z.ZodTypeAny, {
|
|
1417
|
+
id: string;
|
|
1418
|
+
}, {
|
|
1419
|
+
id: string;
|
|
1420
|
+
}>;
|
|
1421
|
+
type DeleteTrustedHostInput = z.infer<typeof DeleteTrustedHostInputSchema>;
|
|
1422
|
+
declare const LookupByNameOutputSchema: z.ZodObject<{
|
|
1423
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
1424
|
+
uuid: z.ZodString;
|
|
1425
|
+
username: z.ZodString;
|
|
1426
|
+
displayName: z.ZodString;
|
|
1427
|
+
}, "strip", z.ZodTypeAny, {
|
|
1428
|
+
uuid: string;
|
|
1429
|
+
username: string;
|
|
1430
|
+
displayName: string;
|
|
1431
|
+
}, {
|
|
1432
|
+
uuid: string;
|
|
1433
|
+
username: string;
|
|
1434
|
+
displayName: string;
|
|
1435
|
+
}>>;
|
|
1436
|
+
nameMap: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1437
|
+
}, "strip", z.ZodTypeAny, {
|
|
1438
|
+
user: {
|
|
1439
|
+
uuid: string;
|
|
1440
|
+
username: string;
|
|
1441
|
+
displayName: string;
|
|
1442
|
+
} | null;
|
|
1443
|
+
nameMap: Record<string, string>;
|
|
1444
|
+
}, {
|
|
1445
|
+
user: {
|
|
1446
|
+
uuid: string;
|
|
1447
|
+
username: string;
|
|
1448
|
+
displayName: string;
|
|
1449
|
+
} | null;
|
|
1450
|
+
nameMap: Record<string, string>;
|
|
1451
|
+
}>;
|
|
1452
|
+
type LookupByNameOutput = z.infer<typeof LookupByNameOutputSchema>;
|
|
1453
|
+
/**
|
|
1454
|
+
* Stable label for the relationship kind (used by the UI for tabs / filters).
|
|
1455
|
+
*/
|
|
1456
|
+
declare const RELATIONSHIP_LABELS: Record<RelationshipsListKind, string>;
|
|
1457
|
+
declare const PRESENCE_COLORS: Record<PresenceStatus, string>;
|
|
1458
|
+
|
|
1459
|
+
declare const ModrinthProjectTypeSchema: z.ZodEnum<["mod", "modpack", "resourcepack", "shader", "world"]>;
|
|
1460
|
+
type ModrinthProjectType = z.infer<typeof ModrinthProjectTypeSchema>;
|
|
1461
|
+
declare const ModrinthDonationLinkSchema: z.ZodObject<{
|
|
1462
|
+
id: z.ZodString;
|
|
1463
|
+
platform: z.ZodString;
|
|
1464
|
+
url: z.ZodString;
|
|
1465
|
+
}, "strip", z.ZodTypeAny, {
|
|
1466
|
+
url: string;
|
|
1467
|
+
id: string;
|
|
1468
|
+
platform: string;
|
|
1469
|
+
}, {
|
|
1470
|
+
url: string;
|
|
1471
|
+
id: string;
|
|
1472
|
+
platform: string;
|
|
1473
|
+
}>;
|
|
1474
|
+
declare const ModrinthProjectSchema: z.ZodObject<{
|
|
1475
|
+
project_id: z.ZodString;
|
|
1476
|
+
project_type: z.ZodEnum<["mod", "modpack", "resourcepack", "shader", "world"]>;
|
|
1477
|
+
slug: z.ZodString;
|
|
1478
|
+
author: z.ZodString;
|
|
1479
|
+
title: z.ZodString;
|
|
1480
|
+
description: z.ZodString;
|
|
1481
|
+
categories: z.ZodArray<z.ZodString, "many">;
|
|
1482
|
+
display_categories: z.ZodArray<z.ZodString, "many">;
|
|
1483
|
+
versions: z.ZodArray<z.ZodString, "many">;
|
|
1484
|
+
downloads: z.ZodNumber;
|
|
1485
|
+
follows: z.ZodNumber;
|
|
1486
|
+
icon_url: z.ZodNullable<z.ZodString>;
|
|
1487
|
+
date_created: z.ZodString;
|
|
1488
|
+
date_modified: z.ZodString;
|
|
1489
|
+
latest_version: z.ZodNullable<z.ZodString>;
|
|
1490
|
+
license: z.ZodNullable<z.ZodString>;
|
|
1491
|
+
client_side: z.ZodEnum<["required", "optional", "unsupported"]>;
|
|
1492
|
+
server_side: z.ZodEnum<["required", "optional", "unsupported"]>;
|
|
1493
|
+
gallery: z.ZodArray<z.ZodString, "many">;
|
|
1494
|
+
}, "strip", z.ZodTypeAny, {
|
|
1495
|
+
slug: string;
|
|
1496
|
+
downloads: number;
|
|
1497
|
+
versions: string[];
|
|
1498
|
+
description: string;
|
|
1499
|
+
license: string | null;
|
|
1500
|
+
title: string;
|
|
1501
|
+
project_id: string;
|
|
1502
|
+
project_type: "mod" | "modpack" | "resourcepack" | "shader" | "world";
|
|
1503
|
+
author: string;
|
|
1504
|
+
categories: string[];
|
|
1505
|
+
display_categories: string[];
|
|
1506
|
+
follows: number;
|
|
1507
|
+
icon_url: string | null;
|
|
1508
|
+
date_created: string;
|
|
1509
|
+
date_modified: string;
|
|
1510
|
+
latest_version: string | null;
|
|
1511
|
+
client_side: "required" | "optional" | "unsupported";
|
|
1512
|
+
server_side: "required" | "optional" | "unsupported";
|
|
1513
|
+
gallery: string[];
|
|
1514
|
+
}, {
|
|
1515
|
+
slug: string;
|
|
1516
|
+
downloads: number;
|
|
1517
|
+
versions: string[];
|
|
1518
|
+
description: string;
|
|
1519
|
+
license: string | null;
|
|
1520
|
+
title: string;
|
|
1521
|
+
project_id: string;
|
|
1522
|
+
project_type: "mod" | "modpack" | "resourcepack" | "shader" | "world";
|
|
1523
|
+
author: string;
|
|
1524
|
+
categories: string[];
|
|
1525
|
+
display_categories: string[];
|
|
1526
|
+
follows: number;
|
|
1527
|
+
icon_url: string | null;
|
|
1528
|
+
date_created: string;
|
|
1529
|
+
date_modified: string;
|
|
1530
|
+
latest_version: string | null;
|
|
1531
|
+
client_side: "required" | "optional" | "unsupported";
|
|
1532
|
+
server_side: "required" | "optional" | "unsupported";
|
|
1533
|
+
gallery: string[];
|
|
1534
|
+
}>;
|
|
1535
|
+
type ModrinthProject = z.infer<typeof ModrinthProjectSchema>;
|
|
1536
|
+
declare const ModrinthSearchResponseSchema: z.ZodObject<{
|
|
1537
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
1538
|
+
project_id: z.ZodString;
|
|
1539
|
+
project_type: z.ZodEnum<["mod", "modpack", "resourcepack", "shader", "world"]>;
|
|
1540
|
+
slug: z.ZodString;
|
|
1541
|
+
author: z.ZodString;
|
|
1542
|
+
title: z.ZodString;
|
|
1543
|
+
description: z.ZodString;
|
|
1544
|
+
categories: z.ZodArray<z.ZodString, "many">;
|
|
1545
|
+
display_categories: z.ZodArray<z.ZodString, "many">;
|
|
1546
|
+
versions: z.ZodArray<z.ZodString, "many">;
|
|
1547
|
+
downloads: z.ZodNumber;
|
|
1548
|
+
follows: z.ZodNumber;
|
|
1549
|
+
icon_url: z.ZodNullable<z.ZodString>;
|
|
1550
|
+
date_created: z.ZodString;
|
|
1551
|
+
date_modified: z.ZodString;
|
|
1552
|
+
latest_version: z.ZodNullable<z.ZodString>;
|
|
1553
|
+
license: z.ZodNullable<z.ZodString>;
|
|
1554
|
+
client_side: z.ZodEnum<["required", "optional", "unsupported"]>;
|
|
1555
|
+
server_side: z.ZodEnum<["required", "optional", "unsupported"]>;
|
|
1556
|
+
gallery: z.ZodArray<z.ZodString, "many">;
|
|
1557
|
+
}, "strip", z.ZodTypeAny, {
|
|
1558
|
+
slug: string;
|
|
1559
|
+
downloads: number;
|
|
1560
|
+
versions: string[];
|
|
1561
|
+
description: string;
|
|
1562
|
+
license: string | null;
|
|
1563
|
+
title: string;
|
|
1564
|
+
project_id: string;
|
|
1565
|
+
project_type: "mod" | "modpack" | "resourcepack" | "shader" | "world";
|
|
1566
|
+
author: string;
|
|
1567
|
+
categories: string[];
|
|
1568
|
+
display_categories: string[];
|
|
1569
|
+
follows: number;
|
|
1570
|
+
icon_url: string | null;
|
|
1571
|
+
date_created: string;
|
|
1572
|
+
date_modified: string;
|
|
1573
|
+
latest_version: string | null;
|
|
1574
|
+
client_side: "required" | "optional" | "unsupported";
|
|
1575
|
+
server_side: "required" | "optional" | "unsupported";
|
|
1576
|
+
gallery: string[];
|
|
1577
|
+
}, {
|
|
1578
|
+
slug: string;
|
|
1579
|
+
downloads: number;
|
|
1580
|
+
versions: string[];
|
|
1581
|
+
description: string;
|
|
1582
|
+
license: string | null;
|
|
1583
|
+
title: string;
|
|
1584
|
+
project_id: string;
|
|
1585
|
+
project_type: "mod" | "modpack" | "resourcepack" | "shader" | "world";
|
|
1586
|
+
author: string;
|
|
1587
|
+
categories: string[];
|
|
1588
|
+
display_categories: string[];
|
|
1589
|
+
follows: number;
|
|
1590
|
+
icon_url: string | null;
|
|
1591
|
+
date_created: string;
|
|
1592
|
+
date_modified: string;
|
|
1593
|
+
latest_version: string | null;
|
|
1594
|
+
client_side: "required" | "optional" | "unsupported";
|
|
1595
|
+
server_side: "required" | "optional" | "unsupported";
|
|
1596
|
+
gallery: string[];
|
|
1597
|
+
}>, "many">;
|
|
1598
|
+
offset: z.ZodNumber;
|
|
1599
|
+
limit: z.ZodNumber;
|
|
1600
|
+
total_hits: z.ZodNumber;
|
|
1601
|
+
}, "strip", z.ZodTypeAny, {
|
|
1602
|
+
offset: number;
|
|
1603
|
+
hits: {
|
|
1604
|
+
slug: string;
|
|
1605
|
+
downloads: number;
|
|
1606
|
+
versions: string[];
|
|
1607
|
+
description: string;
|
|
1608
|
+
license: string | null;
|
|
1609
|
+
title: string;
|
|
1610
|
+
project_id: string;
|
|
1611
|
+
project_type: "mod" | "modpack" | "resourcepack" | "shader" | "world";
|
|
1612
|
+
author: string;
|
|
1613
|
+
categories: string[];
|
|
1614
|
+
display_categories: string[];
|
|
1615
|
+
follows: number;
|
|
1616
|
+
icon_url: string | null;
|
|
1617
|
+
date_created: string;
|
|
1618
|
+
date_modified: string;
|
|
1619
|
+
latest_version: string | null;
|
|
1620
|
+
client_side: "required" | "optional" | "unsupported";
|
|
1621
|
+
server_side: "required" | "optional" | "unsupported";
|
|
1622
|
+
gallery: string[];
|
|
1623
|
+
}[];
|
|
1624
|
+
limit: number;
|
|
1625
|
+
total_hits: number;
|
|
1626
|
+
}, {
|
|
1627
|
+
offset: number;
|
|
1628
|
+
hits: {
|
|
1629
|
+
slug: string;
|
|
1630
|
+
downloads: number;
|
|
1631
|
+
versions: string[];
|
|
1632
|
+
description: string;
|
|
1633
|
+
license: string | null;
|
|
1634
|
+
title: string;
|
|
1635
|
+
project_id: string;
|
|
1636
|
+
project_type: "mod" | "modpack" | "resourcepack" | "shader" | "world";
|
|
1637
|
+
author: string;
|
|
1638
|
+
categories: string[];
|
|
1639
|
+
display_categories: string[];
|
|
1640
|
+
follows: number;
|
|
1641
|
+
icon_url: string | null;
|
|
1642
|
+
date_created: string;
|
|
1643
|
+
date_modified: string;
|
|
1644
|
+
latest_version: string | null;
|
|
1645
|
+
client_side: "required" | "optional" | "unsupported";
|
|
1646
|
+
server_side: "required" | "optional" | "unsupported";
|
|
1647
|
+
gallery: string[];
|
|
1648
|
+
}[];
|
|
1649
|
+
limit: number;
|
|
1650
|
+
total_hits: number;
|
|
1651
|
+
}>;
|
|
1652
|
+
type ModrinthSearchResponse = z.infer<typeof ModrinthSearchResponseSchema>;
|
|
1653
|
+
declare const ModrinthSearchInputSchema: z.ZodObject<{
|
|
1654
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
facets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1656
|
+
index: z.ZodDefault<z.ZodEnum<["relevance", "downloads", "follows", "newest", "updated"]>>;
|
|
1657
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
1658
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1659
|
+
filters: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
}, "strip", z.ZodTypeAny, {
|
|
1661
|
+
offset: number;
|
|
1662
|
+
limit: number;
|
|
1663
|
+
index: "downloads" | "follows" | "relevance" | "newest" | "updated";
|
|
1664
|
+
query?: string | undefined;
|
|
1665
|
+
facets?: string[] | undefined;
|
|
1666
|
+
filters?: string | undefined;
|
|
1667
|
+
}, {
|
|
1668
|
+
offset?: number | undefined;
|
|
1669
|
+
limit?: number | undefined;
|
|
1670
|
+
query?: string | undefined;
|
|
1671
|
+
facets?: string[] | undefined;
|
|
1672
|
+
index?: "downloads" | "follows" | "relevance" | "newest" | "updated" | undefined;
|
|
1673
|
+
filters?: string | undefined;
|
|
1674
|
+
}>;
|
|
1675
|
+
type ModrinthSearchInput = z.infer<typeof ModrinthSearchInputSchema>;
|
|
1676
|
+
declare const MODRINTH_CATEGORIES: {
|
|
1677
|
+
id: ModrinthProjectType;
|
|
1678
|
+
label: string;
|
|
1679
|
+
}[];
|
|
1680
|
+
declare const MC_VERSIONS_POPULAR: string[];
|
|
1681
|
+
|
|
1682
|
+
declare const CosmeticTypeSchema: z.ZodEnum<["hat", "body", "back", "face", "hand", "feet", "particle", "emote"]>;
|
|
1683
|
+
type CosmeticType = z.infer<typeof CosmeticTypeSchema>;
|
|
1684
|
+
declare const CosmeticRaritySchema: z.ZodEnum<["common", "uncommon", "rare", "epic", "legendary"]>;
|
|
1685
|
+
type CosmeticRarity = z.infer<typeof CosmeticRaritySchema>;
|
|
1686
|
+
declare const CosmeticSchema: z.ZodObject<{
|
|
1687
|
+
id: z.ZodString;
|
|
1688
|
+
type: z.ZodEnum<["hat", "body", "back", "face", "hand", "feet", "particle", "emote"]>;
|
|
1689
|
+
rarity: z.ZodEnum<["common", "uncommon", "rare", "epic", "legendary"]>;
|
|
1690
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1691
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1692
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
1693
|
+
modelUrl: z.ZodNullable<z.ZodString>;
|
|
1694
|
+
owned: z.ZodDefault<z.ZodBoolean>;
|
|
1695
|
+
equipped: z.ZodDefault<z.ZodBoolean>;
|
|
1696
|
+
}, "strip", z.ZodTypeAny, {
|
|
1697
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1698
|
+
id: string;
|
|
1699
|
+
name: Record<string, string>;
|
|
1700
|
+
iconUrl: string | null;
|
|
1701
|
+
rarity: "common" | "uncommon" | "rare" | "epic" | "legendary";
|
|
1702
|
+
modelUrl: string | null;
|
|
1703
|
+
owned: boolean;
|
|
1704
|
+
equipped: boolean;
|
|
1705
|
+
description?: Record<string, string> | undefined;
|
|
1706
|
+
}, {
|
|
1707
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1708
|
+
id: string;
|
|
1709
|
+
name: Record<string, string>;
|
|
1710
|
+
iconUrl: string | null;
|
|
1711
|
+
rarity: "common" | "uncommon" | "rare" | "epic" | "legendary";
|
|
1712
|
+
modelUrl: string | null;
|
|
1713
|
+
description?: Record<string, string> | undefined;
|
|
1714
|
+
owned?: boolean | undefined;
|
|
1715
|
+
equipped?: boolean | undefined;
|
|
1716
|
+
}>;
|
|
1717
|
+
type Cosmetic = z.infer<typeof CosmeticSchema>;
|
|
1718
|
+
declare const OutfitSlotSchema: z.ZodObject<{
|
|
1719
|
+
type: z.ZodEnum<["hat", "body", "back", "face", "hand", "feet", "particle", "emote"]>;
|
|
1720
|
+
cosmeticId: z.ZodNullable<z.ZodString>;
|
|
1721
|
+
}, "strip", z.ZodTypeAny, {
|
|
1722
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1723
|
+
cosmeticId: string | null;
|
|
1724
|
+
}, {
|
|
1725
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1726
|
+
cosmeticId: string | null;
|
|
1727
|
+
}>;
|
|
1728
|
+
type OutfitSlot = z.infer<typeof OutfitSlotSchema>;
|
|
1729
|
+
declare const OutfitSchema: z.ZodObject<{
|
|
1730
|
+
id: z.ZodString;
|
|
1731
|
+
name: z.ZodString;
|
|
1732
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
1733
|
+
type: z.ZodEnum<["hat", "body", "back", "face", "hand", "feet", "particle", "emote"]>;
|
|
1734
|
+
cosmeticId: z.ZodNullable<z.ZodString>;
|
|
1735
|
+
}, "strip", z.ZodTypeAny, {
|
|
1736
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1737
|
+
cosmeticId: string | null;
|
|
1738
|
+
}, {
|
|
1739
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1740
|
+
cosmeticId: string | null;
|
|
1741
|
+
}>, "many">;
|
|
1742
|
+
createdAt: z.ZodString;
|
|
1743
|
+
updatedAt: z.ZodString;
|
|
1744
|
+
}, "strip", z.ZodTypeAny, {
|
|
1745
|
+
id: string;
|
|
1746
|
+
name: string;
|
|
1747
|
+
updatedAt: string;
|
|
1748
|
+
slots: {
|
|
1749
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1750
|
+
cosmeticId: string | null;
|
|
1751
|
+
}[];
|
|
1752
|
+
createdAt: string;
|
|
1753
|
+
}, {
|
|
1754
|
+
id: string;
|
|
1755
|
+
name: string;
|
|
1756
|
+
updatedAt: string;
|
|
1757
|
+
slots: {
|
|
1758
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1759
|
+
cosmeticId: string | null;
|
|
1760
|
+
}[];
|
|
1761
|
+
createdAt: string;
|
|
1762
|
+
}>;
|
|
1763
|
+
type Outfit = z.infer<typeof OutfitSchema>;
|
|
1764
|
+
declare const EmoteWheelSlotSchema: z.ZodObject<{
|
|
1765
|
+
position: z.ZodNumber;
|
|
1766
|
+
emoteId: z.ZodNullable<z.ZodString>;
|
|
1767
|
+
}, "strip", z.ZodTypeAny, {
|
|
1768
|
+
position: number;
|
|
1769
|
+
emoteId: string | null;
|
|
1770
|
+
}, {
|
|
1771
|
+
position: number;
|
|
1772
|
+
emoteId: string | null;
|
|
1773
|
+
}>;
|
|
1774
|
+
type EmoteWheelSlot = z.infer<typeof EmoteWheelSlotSchema>;
|
|
1775
|
+
declare const EmoteWheelSchema: z.ZodObject<{
|
|
1776
|
+
id: z.ZodString;
|
|
1777
|
+
name: z.ZodString;
|
|
1778
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
1779
|
+
position: z.ZodNumber;
|
|
1780
|
+
emoteId: z.ZodNullable<z.ZodString>;
|
|
1781
|
+
}, "strip", z.ZodTypeAny, {
|
|
1782
|
+
position: number;
|
|
1783
|
+
emoteId: string | null;
|
|
1784
|
+
}, {
|
|
1785
|
+
position: number;
|
|
1786
|
+
emoteId: string | null;
|
|
1787
|
+
}>, "many">;
|
|
1788
|
+
createdAt: z.ZodString;
|
|
1789
|
+
}, "strip", z.ZodTypeAny, {
|
|
1790
|
+
id: string;
|
|
1791
|
+
name: string;
|
|
1792
|
+
slots: {
|
|
1793
|
+
position: number;
|
|
1794
|
+
emoteId: string | null;
|
|
1795
|
+
}[];
|
|
1796
|
+
createdAt: string;
|
|
1797
|
+
}, {
|
|
1798
|
+
id: string;
|
|
1799
|
+
name: string;
|
|
1800
|
+
slots: {
|
|
1801
|
+
position: number;
|
|
1802
|
+
emoteId: string | null;
|
|
1803
|
+
}[];
|
|
1804
|
+
createdAt: string;
|
|
1805
|
+
}>;
|
|
1806
|
+
type EmoteWheel = z.infer<typeof EmoteWheelSchema>;
|
|
1807
|
+
declare const SkinVariantSchema: z.ZodEnum<["classic", "slim"]>;
|
|
1808
|
+
type SkinVariant = z.infer<typeof SkinVariantSchema>;
|
|
1809
|
+
declare const SkinSchema: z.ZodObject<{
|
|
1810
|
+
id: z.ZodString;
|
|
1811
|
+
name: z.ZodString;
|
|
1812
|
+
variant: z.ZodEnum<["classic", "slim"]>;
|
|
1813
|
+
textureUrl: z.ZodString;
|
|
1814
|
+
sha256: z.ZodString;
|
|
1815
|
+
sizeBytes: z.ZodNumber;
|
|
1816
|
+
source: z.ZodEnum<["uploaded", "mojang"]>;
|
|
1817
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
1818
|
+
createdAt: z.ZodString;
|
|
1819
|
+
}, "strip", z.ZodTypeAny, {
|
|
1820
|
+
id: string;
|
|
1821
|
+
name: string;
|
|
1822
|
+
source: "mojang" | "uploaded";
|
|
1823
|
+
sha256: string;
|
|
1824
|
+
sizeBytes: number;
|
|
1825
|
+
active: boolean;
|
|
1826
|
+
createdAt: string;
|
|
1827
|
+
variant: "classic" | "slim";
|
|
1828
|
+
textureUrl: string;
|
|
1829
|
+
}, {
|
|
1830
|
+
id: string;
|
|
1831
|
+
name: string;
|
|
1832
|
+
source: "mojang" | "uploaded";
|
|
1833
|
+
sha256: string;
|
|
1834
|
+
sizeBytes: number;
|
|
1835
|
+
createdAt: string;
|
|
1836
|
+
variant: "classic" | "slim";
|
|
1837
|
+
textureUrl: string;
|
|
1838
|
+
active?: boolean | undefined;
|
|
1839
|
+
}>;
|
|
1840
|
+
type Skin = z.infer<typeof SkinSchema>;
|
|
1841
|
+
declare const EquipCosmeticInputSchema: z.ZodObject<{
|
|
1842
|
+
cosmeticId: z.ZodString;
|
|
1843
|
+
equipped: z.ZodBoolean;
|
|
1844
|
+
}, "strip", z.ZodTypeAny, {
|
|
1845
|
+
equipped: boolean;
|
|
1846
|
+
cosmeticId: string;
|
|
1847
|
+
}, {
|
|
1848
|
+
equipped: boolean;
|
|
1849
|
+
cosmeticId: string;
|
|
1850
|
+
}>;
|
|
1851
|
+
type EquipCosmeticInput = z.infer<typeof EquipCosmeticInputSchema>;
|
|
1852
|
+
declare const CreateOutfitInputSchema: z.ZodObject<{
|
|
1853
|
+
name: z.ZodString;
|
|
1854
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
1855
|
+
type: z.ZodEnum<["hat", "body", "back", "face", "hand", "feet", "particle", "emote"]>;
|
|
1856
|
+
cosmeticId: z.ZodNullable<z.ZodString>;
|
|
1857
|
+
}, "strip", z.ZodTypeAny, {
|
|
1858
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1859
|
+
cosmeticId: string | null;
|
|
1860
|
+
}, {
|
|
1861
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1862
|
+
cosmeticId: string | null;
|
|
1863
|
+
}>, "many">;
|
|
1864
|
+
}, "strip", z.ZodTypeAny, {
|
|
1865
|
+
name: string;
|
|
1866
|
+
slots: {
|
|
1867
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1868
|
+
cosmeticId: string | null;
|
|
1869
|
+
}[];
|
|
1870
|
+
}, {
|
|
1871
|
+
name: string;
|
|
1872
|
+
slots: {
|
|
1873
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1874
|
+
cosmeticId: string | null;
|
|
1875
|
+
}[];
|
|
1876
|
+
}>;
|
|
1877
|
+
type CreateOutfitInput = z.infer<typeof CreateOutfitInputSchema>;
|
|
1878
|
+
declare const UpdateOutfitInputSchema: z.ZodObject<{
|
|
1879
|
+
id: z.ZodString;
|
|
1880
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1882
|
+
type: z.ZodEnum<["hat", "body", "back", "face", "hand", "feet", "particle", "emote"]>;
|
|
1883
|
+
cosmeticId: z.ZodNullable<z.ZodString>;
|
|
1884
|
+
}, "strip", z.ZodTypeAny, {
|
|
1885
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1886
|
+
cosmeticId: string | null;
|
|
1887
|
+
}, {
|
|
1888
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1889
|
+
cosmeticId: string | null;
|
|
1890
|
+
}>, "many">>;
|
|
1891
|
+
}, "strip", z.ZodTypeAny, {
|
|
1892
|
+
id: string;
|
|
1893
|
+
name?: string | undefined;
|
|
1894
|
+
slots?: {
|
|
1895
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1896
|
+
cosmeticId: string | null;
|
|
1897
|
+
}[] | undefined;
|
|
1898
|
+
}, {
|
|
1899
|
+
id: string;
|
|
1900
|
+
name?: string | undefined;
|
|
1901
|
+
slots?: {
|
|
1902
|
+
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1903
|
+
cosmeticId: string | null;
|
|
1904
|
+
}[] | undefined;
|
|
1905
|
+
}>;
|
|
1906
|
+
type UpdateOutfitInput = z.infer<typeof UpdateOutfitInputSchema>;
|
|
1907
|
+
declare const DeleteOutfitInputSchema: z.ZodObject<{
|
|
1908
|
+
id: z.ZodString;
|
|
1909
|
+
}, "strip", z.ZodTypeAny, {
|
|
1910
|
+
id: string;
|
|
1911
|
+
}, {
|
|
1912
|
+
id: string;
|
|
1913
|
+
}>;
|
|
1914
|
+
type DeleteOutfitInput = z.infer<typeof DeleteOutfitInputSchema>;
|
|
1915
|
+
declare const SaveEmoteWheelInputSchema: z.ZodObject<{
|
|
1916
|
+
id: z.ZodNullable<z.ZodString>;
|
|
1917
|
+
name: z.ZodString;
|
|
1918
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
1919
|
+
position: z.ZodNumber;
|
|
1920
|
+
emoteId: z.ZodNullable<z.ZodString>;
|
|
1921
|
+
}, "strip", z.ZodTypeAny, {
|
|
1922
|
+
position: number;
|
|
1923
|
+
emoteId: string | null;
|
|
1924
|
+
}, {
|
|
1925
|
+
position: number;
|
|
1926
|
+
emoteId: string | null;
|
|
1927
|
+
}>, "many">;
|
|
1928
|
+
}, "strip", z.ZodTypeAny, {
|
|
1929
|
+
id: string | null;
|
|
1930
|
+
name: string;
|
|
1931
|
+
slots: {
|
|
1932
|
+
position: number;
|
|
1933
|
+
emoteId: string | null;
|
|
1934
|
+
}[];
|
|
1935
|
+
}, {
|
|
1936
|
+
id: string | null;
|
|
1937
|
+
name: string;
|
|
1938
|
+
slots: {
|
|
1939
|
+
position: number;
|
|
1940
|
+
emoteId: string | null;
|
|
1941
|
+
}[];
|
|
1942
|
+
}>;
|
|
1943
|
+
type SaveEmoteWheelInput = z.infer<typeof SaveEmoteWheelInputSchema>;
|
|
1944
|
+
declare const UploadSkinInputSchema: z.ZodObject<{
|
|
1945
|
+
name: z.ZodString;
|
|
1946
|
+
variant: z.ZodEnum<["classic", "slim"]>;
|
|
1947
|
+
data: z.ZodString;
|
|
1948
|
+
}, "strip", z.ZodTypeAny, {
|
|
1949
|
+
name: string;
|
|
1950
|
+
variant: "classic" | "slim";
|
|
1951
|
+
data: string;
|
|
1952
|
+
}, {
|
|
1953
|
+
name: string;
|
|
1954
|
+
variant: "classic" | "slim";
|
|
1955
|
+
data: string;
|
|
1956
|
+
}>;
|
|
1957
|
+
type UploadSkinInput = z.infer<typeof UploadSkinInputSchema>;
|
|
1958
|
+
declare const SetActiveSkinInputSchema: z.ZodObject<{
|
|
1959
|
+
id: z.ZodString;
|
|
1960
|
+
}, "strip", z.ZodTypeAny, {
|
|
1961
|
+
id: string;
|
|
1962
|
+
}, {
|
|
1963
|
+
id: string;
|
|
1964
|
+
}>;
|
|
1965
|
+
type SetActiveSkinInput = z.infer<typeof SetActiveSkinInputSchema>;
|
|
1966
|
+
declare const COSMETIC_TYPE_LABELS: Record<CosmeticType, string>;
|
|
1967
|
+
declare const RARITY_COLORS: Record<CosmeticRarity, string>;
|
|
1968
|
+
|
|
1969
|
+
declare const ChannelKindSchema: z.ZodEnum<["DM", "GROUP", "ANNOUNCEMENT"]>;
|
|
1970
|
+
type ChannelKind = z.infer<typeof ChannelKindSchema>;
|
|
1971
|
+
declare const ChatMemberSchema: z.ZodObject<{
|
|
1972
|
+
user: z.ZodObject<{
|
|
1973
|
+
uuid: z.ZodString;
|
|
1974
|
+
email: z.ZodString;
|
|
1975
|
+
username: z.ZodString;
|
|
1976
|
+
displayName: z.ZodString;
|
|
1977
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1978
|
+
role: z.ZodDefault<z.ZodEnum<["USER", "MODERATOR", "ADMIN"]>>;
|
|
1979
|
+
}, "strip", z.ZodTypeAny, {
|
|
1980
|
+
email: string;
|
|
1981
|
+
uuid: string;
|
|
1982
|
+
username: string;
|
|
1983
|
+
displayName: string;
|
|
1984
|
+
avatarUrl: string | null;
|
|
1985
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
1986
|
+
}, {
|
|
1987
|
+
email: string;
|
|
1988
|
+
uuid: string;
|
|
1989
|
+
username: string;
|
|
1990
|
+
displayName: string;
|
|
1991
|
+
avatarUrl: string | null;
|
|
1992
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
1993
|
+
}>;
|
|
1994
|
+
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
1995
|
+
joinedAt: z.ZodString;
|
|
1996
|
+
lastReadAt: z.ZodNullable<z.ZodString>;
|
|
1997
|
+
muted: z.ZodDefault<z.ZodBoolean>;
|
|
1998
|
+
}, "strip", z.ZodTypeAny, {
|
|
1999
|
+
role: "owner" | "admin" | "member";
|
|
2000
|
+
user: {
|
|
2001
|
+
email: string;
|
|
2002
|
+
uuid: string;
|
|
2003
|
+
username: string;
|
|
2004
|
+
displayName: string;
|
|
2005
|
+
avatarUrl: string | null;
|
|
2006
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
2007
|
+
};
|
|
2008
|
+
joinedAt: string;
|
|
2009
|
+
lastReadAt: string | null;
|
|
2010
|
+
muted: boolean;
|
|
2011
|
+
}, {
|
|
2012
|
+
role: "owner" | "admin" | "member";
|
|
2013
|
+
user: {
|
|
2014
|
+
email: string;
|
|
2015
|
+
uuid: string;
|
|
2016
|
+
username: string;
|
|
2017
|
+
displayName: string;
|
|
2018
|
+
avatarUrl: string | null;
|
|
2019
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
2020
|
+
};
|
|
2021
|
+
joinedAt: string;
|
|
2022
|
+
lastReadAt: string | null;
|
|
2023
|
+
muted?: boolean | undefined;
|
|
2024
|
+
}>;
|
|
2025
|
+
type ChatMember = z.infer<typeof ChatMemberSchema>;
|
|
2026
|
+
declare const ChannelSchema: z.ZodObject<{
|
|
2027
|
+
id: z.ZodString;
|
|
2028
|
+
kind: z.ZodEnum<["DM", "GROUP", "ANNOUNCEMENT"]>;
|
|
2029
|
+
name: z.ZodNullable<z.ZodString>;
|
|
2030
|
+
members: z.ZodArray<z.ZodObject<{
|
|
2031
|
+
user: z.ZodObject<{
|
|
2032
|
+
uuid: z.ZodString;
|
|
2033
|
+
email: z.ZodString;
|
|
2034
|
+
username: z.ZodString;
|
|
2035
|
+
displayName: z.ZodString;
|
|
2036
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
2037
|
+
role: z.ZodDefault<z.ZodEnum<["USER", "MODERATOR", "ADMIN"]>>;
|
|
2038
|
+
}, "strip", z.ZodTypeAny, {
|
|
2039
|
+
email: string;
|
|
2040
|
+
uuid: string;
|
|
2041
|
+
username: string;
|
|
2042
|
+
displayName: string;
|
|
2043
|
+
avatarUrl: string | null;
|
|
2044
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
2045
|
+
}, {
|
|
2046
|
+
email: string;
|
|
2047
|
+
uuid: string;
|
|
2048
|
+
username: string;
|
|
2049
|
+
displayName: string;
|
|
2050
|
+
avatarUrl: string | null;
|
|
2051
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
2052
|
+
}>;
|
|
2053
|
+
role: z.ZodEnum<["owner", "admin", "member"]>;
|
|
2054
|
+
joinedAt: z.ZodString;
|
|
2055
|
+
lastReadAt: z.ZodNullable<z.ZodString>;
|
|
2056
|
+
muted: z.ZodDefault<z.ZodBoolean>;
|
|
2057
|
+
}, "strip", z.ZodTypeAny, {
|
|
2058
|
+
role: "owner" | "admin" | "member";
|
|
2059
|
+
user: {
|
|
2060
|
+
email: string;
|
|
2061
|
+
uuid: string;
|
|
2062
|
+
username: string;
|
|
2063
|
+
displayName: string;
|
|
2064
|
+
avatarUrl: string | null;
|
|
2065
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
2066
|
+
};
|
|
2067
|
+
joinedAt: string;
|
|
2068
|
+
lastReadAt: string | null;
|
|
2069
|
+
muted: boolean;
|
|
2070
|
+
}, {
|
|
2071
|
+
role: "owner" | "admin" | "member";
|
|
2072
|
+
user: {
|
|
2073
|
+
email: string;
|
|
2074
|
+
uuid: string;
|
|
2075
|
+
username: string;
|
|
2076
|
+
displayName: string;
|
|
2077
|
+
avatarUrl: string | null;
|
|
2078
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
2079
|
+
};
|
|
2080
|
+
joinedAt: string;
|
|
2081
|
+
lastReadAt: string | null;
|
|
2082
|
+
muted?: boolean | undefined;
|
|
2083
|
+
}>, "many">;
|
|
2084
|
+
createdAt: z.ZodString;
|
|
2085
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
2086
|
+
unreadCount: z.ZodDefault<z.ZodNumber>;
|
|
2087
|
+
}, "strip", z.ZodTypeAny, {
|
|
2088
|
+
id: string;
|
|
2089
|
+
name: string | null;
|
|
2090
|
+
kind: "DM" | "GROUP" | "ANNOUNCEMENT";
|
|
2091
|
+
createdAt: string;
|
|
2092
|
+
members: {
|
|
2093
|
+
role: "owner" | "admin" | "member";
|
|
2094
|
+
user: {
|
|
2095
|
+
email: string;
|
|
2096
|
+
uuid: string;
|
|
2097
|
+
username: string;
|
|
2098
|
+
displayName: string;
|
|
2099
|
+
avatarUrl: string | null;
|
|
2100
|
+
role: "USER" | "MODERATOR" | "ADMIN";
|
|
2101
|
+
};
|
|
2102
|
+
joinedAt: string;
|
|
2103
|
+
lastReadAt: string | null;
|
|
2104
|
+
muted: boolean;
|
|
2105
|
+
}[];
|
|
2106
|
+
lastMessageAt: string | null;
|
|
2107
|
+
unreadCount: number;
|
|
2108
|
+
}, {
|
|
2109
|
+
id: string;
|
|
2110
|
+
name: string | null;
|
|
2111
|
+
kind: "DM" | "GROUP" | "ANNOUNCEMENT";
|
|
2112
|
+
createdAt: string;
|
|
2113
|
+
members: {
|
|
2114
|
+
role: "owner" | "admin" | "member";
|
|
2115
|
+
user: {
|
|
2116
|
+
email: string;
|
|
2117
|
+
uuid: string;
|
|
2118
|
+
username: string;
|
|
2119
|
+
displayName: string;
|
|
2120
|
+
avatarUrl: string | null;
|
|
2121
|
+
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
2122
|
+
};
|
|
2123
|
+
joinedAt: string;
|
|
2124
|
+
lastReadAt: string | null;
|
|
2125
|
+
muted?: boolean | undefined;
|
|
2126
|
+
}[];
|
|
2127
|
+
lastMessageAt: string | null;
|
|
2128
|
+
unreadCount?: number | undefined;
|
|
2129
|
+
}>;
|
|
2130
|
+
type Channel = z.infer<typeof ChannelSchema>;
|
|
2131
|
+
declare const MessageSchema: z.ZodObject<{
|
|
2132
|
+
id: z.ZodString;
|
|
2133
|
+
channelId: z.ZodString;
|
|
2134
|
+
authorUuid: z.ZodString;
|
|
2135
|
+
authorDisplayName: z.ZodString;
|
|
2136
|
+
body: z.ZodString;
|
|
2137
|
+
bodyMarkdown: z.ZodOptional<z.ZodString>;
|
|
2138
|
+
createdAt: z.ZodString;
|
|
2139
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
2140
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
2141
|
+
replyTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2142
|
+
}, "strip", z.ZodTypeAny, {
|
|
2143
|
+
id: string;
|
|
2144
|
+
body: string;
|
|
2145
|
+
createdAt: string;
|
|
2146
|
+
channelId: string;
|
|
2147
|
+
authorUuid: string;
|
|
2148
|
+
authorDisplayName: string;
|
|
2149
|
+
editedAt: string | null;
|
|
2150
|
+
deletedAt: string | null;
|
|
2151
|
+
bodyMarkdown?: string | undefined;
|
|
2152
|
+
replyTo?: string | null | undefined;
|
|
2153
|
+
}, {
|
|
2154
|
+
id: string;
|
|
2155
|
+
body: string;
|
|
2156
|
+
createdAt: string;
|
|
2157
|
+
channelId: string;
|
|
2158
|
+
authorUuid: string;
|
|
2159
|
+
authorDisplayName: string;
|
|
2160
|
+
editedAt: string | null;
|
|
2161
|
+
deletedAt: string | null;
|
|
2162
|
+
bodyMarkdown?: string | undefined;
|
|
2163
|
+
replyTo?: string | null | undefined;
|
|
2164
|
+
}>;
|
|
2165
|
+
type Message = z.infer<typeof MessageSchema>;
|
|
2166
|
+
declare const ListChannelsInputSchema: z.ZodObject<{
|
|
2167
|
+
kind: z.ZodOptional<z.ZodEnum<["DM", "GROUP", "ANNOUNCEMENT"]>>;
|
|
2168
|
+
}, "strip", z.ZodTypeAny, {
|
|
2169
|
+
kind?: "DM" | "GROUP" | "ANNOUNCEMENT" | undefined;
|
|
2170
|
+
}, {
|
|
2171
|
+
kind?: "DM" | "GROUP" | "ANNOUNCEMENT" | undefined;
|
|
2172
|
+
}>;
|
|
2173
|
+
type ListChannelsInput = z.infer<typeof ListChannelsInputSchema>;
|
|
2174
|
+
declare const CreateDMInputSchema: z.ZodObject<{
|
|
2175
|
+
otherUserUuid: z.ZodString;
|
|
2176
|
+
}, "strip", z.ZodTypeAny, {
|
|
2177
|
+
otherUserUuid: string;
|
|
2178
|
+
}, {
|
|
2179
|
+
otherUserUuid: string;
|
|
2180
|
+
}>;
|
|
2181
|
+
type CreateDMInput = z.infer<typeof CreateDMInputSchema>;
|
|
2182
|
+
declare const CreateGroupInputSchema: z.ZodObject<{
|
|
2183
|
+
name: z.ZodString;
|
|
2184
|
+
memberUuids: z.ZodArray<z.ZodString, "many">;
|
|
2185
|
+
}, "strip", z.ZodTypeAny, {
|
|
2186
|
+
name: string;
|
|
2187
|
+
memberUuids: string[];
|
|
2188
|
+
}, {
|
|
2189
|
+
name: string;
|
|
2190
|
+
memberUuids: string[];
|
|
2191
|
+
}>;
|
|
2192
|
+
type CreateGroupInput = z.infer<typeof CreateGroupInputSchema>;
|
|
2193
|
+
declare const ListMessagesInputSchema: z.ZodObject<{
|
|
2194
|
+
channelId: z.ZodString;
|
|
2195
|
+
before: z.ZodOptional<z.ZodString>;
|
|
2196
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
2197
|
+
}, "strip", z.ZodTypeAny, {
|
|
2198
|
+
limit: number;
|
|
2199
|
+
channelId: string;
|
|
2200
|
+
before?: string | undefined;
|
|
2201
|
+
}, {
|
|
2202
|
+
channelId: string;
|
|
2203
|
+
limit?: number | undefined;
|
|
2204
|
+
before?: string | undefined;
|
|
2205
|
+
}>;
|
|
2206
|
+
type ListMessagesInput = z.infer<typeof ListMessagesInputSchema>;
|
|
2207
|
+
declare const SendMessageInputSchema: z.ZodObject<{
|
|
2208
|
+
channelId: z.ZodString;
|
|
2209
|
+
body: z.ZodString;
|
|
2210
|
+
replyTo: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
}, "strip", z.ZodTypeAny, {
|
|
2212
|
+
body: string;
|
|
2213
|
+
channelId: string;
|
|
2214
|
+
replyTo?: string | undefined;
|
|
2215
|
+
}, {
|
|
2216
|
+
body: string;
|
|
2217
|
+
channelId: string;
|
|
2218
|
+
replyTo?: string | undefined;
|
|
2219
|
+
}>;
|
|
2220
|
+
type SendMessageInput = z.infer<typeof SendMessageInputSchema>;
|
|
2221
|
+
declare const EditMessageInputSchema: z.ZodObject<{
|
|
2222
|
+
id: z.ZodString;
|
|
2223
|
+
body: z.ZodString;
|
|
2224
|
+
}, "strip", z.ZodTypeAny, {
|
|
2225
|
+
id: string;
|
|
2226
|
+
body: string;
|
|
2227
|
+
}, {
|
|
2228
|
+
id: string;
|
|
2229
|
+
body: string;
|
|
2230
|
+
}>;
|
|
2231
|
+
type EditMessageInput = z.infer<typeof EditMessageInputSchema>;
|
|
2232
|
+
declare const DeleteMessageInputSchema: z.ZodObject<{
|
|
2233
|
+
id: z.ZodString;
|
|
2234
|
+
}, "strip", z.ZodTypeAny, {
|
|
2235
|
+
id: string;
|
|
2236
|
+
}, {
|
|
2237
|
+
id: string;
|
|
2238
|
+
}>;
|
|
2239
|
+
type DeleteMessageInput = z.infer<typeof DeleteMessageInputSchema>;
|
|
2240
|
+
declare const MarkReadInputSchema: z.ZodObject<{
|
|
2241
|
+
channelId: z.ZodString;
|
|
2242
|
+
messageId: z.ZodString;
|
|
2243
|
+
}, "strip", z.ZodTypeAny, {
|
|
2244
|
+
channelId: string;
|
|
2245
|
+
messageId: string;
|
|
2246
|
+
}, {
|
|
2247
|
+
channelId: string;
|
|
2248
|
+
messageId: string;
|
|
2249
|
+
}>;
|
|
2250
|
+
type MarkReadInput = z.infer<typeof MarkReadInputSchema>;
|
|
2251
|
+
declare const ReportMessageInputSchema: z.ZodObject<{
|
|
2252
|
+
messageId: z.ZodString;
|
|
2253
|
+
reason: z.ZodEnum<["spam", "harassment", "illegal", "other"]>;
|
|
2254
|
+
note: z.ZodOptional<z.ZodString>;
|
|
2255
|
+
}, "strip", z.ZodTypeAny, {
|
|
2256
|
+
reason: "spam" | "harassment" | "illegal" | "other";
|
|
2257
|
+
messageId: string;
|
|
2258
|
+
note?: string | undefined;
|
|
2259
|
+
}, {
|
|
2260
|
+
reason: "spam" | "harassment" | "illegal" | "other";
|
|
2261
|
+
messageId: string;
|
|
2262
|
+
note?: string | undefined;
|
|
2263
|
+
}>;
|
|
2264
|
+
type ReportMessageInput = z.infer<typeof ReportMessageInputSchema>;
|
|
2265
|
+
declare const ChannelReportsInputSchema: z.ZodObject<{
|
|
2266
|
+
channelId: z.ZodString;
|
|
2267
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2268
|
+
end: z.ZodOptional<z.ZodString>;
|
|
2269
|
+
}, "strip", z.ZodTypeAny, {
|
|
2270
|
+
channelId: string;
|
|
2271
|
+
start?: string | undefined;
|
|
2272
|
+
end?: string | undefined;
|
|
2273
|
+
}, {
|
|
2274
|
+
channelId: string;
|
|
2275
|
+
start?: string | undefined;
|
|
2276
|
+
end?: string | undefined;
|
|
2277
|
+
}>;
|
|
2278
|
+
type ChannelReportsInput = z.infer<typeof ChannelReportsInputSchema>;
|
|
2279
|
+
declare const CHANNEL_KIND_LABELS: Record<ChannelKind, string>;
|
|
2280
|
+
|
|
2281
|
+
declare const MediaKindSchema: z.ZodEnum<["screenshot", "video", "world", "skin"]>;
|
|
2282
|
+
type MediaKind = z.infer<typeof MediaKindSchema>;
|
|
2283
|
+
declare const MediaItemSchema: z.ZodObject<{
|
|
2284
|
+
id: z.ZodString;
|
|
2285
|
+
kind: z.ZodEnum<["screenshot", "video", "world", "skin"]>;
|
|
2286
|
+
url: z.ZodString;
|
|
2287
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
2288
|
+
sha256: z.ZodString;
|
|
2289
|
+
sizeBytes: z.ZodNumber;
|
|
2290
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2291
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2292
|
+
durationSec: z.ZodOptional<z.ZodNumber>;
|
|
2293
|
+
createdAt: z.ZodString;
|
|
2294
|
+
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
url: string;
|
|
2296
|
+
id: string;
|
|
2297
|
+
sha256: string;
|
|
2298
|
+
sizeBytes: number;
|
|
2299
|
+
kind: "world" | "screenshot" | "video" | "skin";
|
|
2300
|
+
createdAt: string;
|
|
2301
|
+
thumbnailUrl: string | null;
|
|
2302
|
+
width?: number | undefined;
|
|
2303
|
+
height?: number | undefined;
|
|
2304
|
+
durationSec?: number | undefined;
|
|
2305
|
+
}, {
|
|
2306
|
+
url: string;
|
|
2307
|
+
id: string;
|
|
2308
|
+
sha256: string;
|
|
2309
|
+
sizeBytes: number;
|
|
2310
|
+
kind: "world" | "screenshot" | "video" | "skin";
|
|
2311
|
+
createdAt: string;
|
|
2312
|
+
thumbnailUrl: string | null;
|
|
2313
|
+
width?: number | undefined;
|
|
2314
|
+
height?: number | undefined;
|
|
2315
|
+
durationSec?: number | undefined;
|
|
2316
|
+
}>;
|
|
2317
|
+
type MediaItem = z.infer<typeof MediaItemSchema>;
|
|
2318
|
+
declare const ListMediaInputSchema: z.ZodObject<{
|
|
2319
|
+
kind: z.ZodOptional<z.ZodEnum<["screenshot", "video", "world", "skin"]>>;
|
|
2320
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
2321
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
2322
|
+
}, "strip", z.ZodTypeAny, {
|
|
2323
|
+
offset: number;
|
|
2324
|
+
limit: number;
|
|
2325
|
+
kind?: "world" | "screenshot" | "video" | "skin" | undefined;
|
|
2326
|
+
}, {
|
|
2327
|
+
offset?: number | undefined;
|
|
2328
|
+
kind?: "world" | "screenshot" | "video" | "skin" | undefined;
|
|
2329
|
+
limit?: number | undefined;
|
|
2330
|
+
}>;
|
|
2331
|
+
type ListMediaInput = z.infer<typeof ListMediaInputSchema>;
|
|
2332
|
+
declare const UploadMediaInputSchema: z.ZodObject<{
|
|
2333
|
+
kind: z.ZodEnum<["screenshot", "video", "world", "skin"]>;
|
|
2334
|
+
data: z.ZodString;
|
|
2335
|
+
filename: z.ZodString;
|
|
2336
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2337
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2338
|
+
}, "strip", z.ZodTypeAny, {
|
|
2339
|
+
kind: "world" | "screenshot" | "video" | "skin";
|
|
2340
|
+
data: string;
|
|
2341
|
+
filename: string;
|
|
2342
|
+
width?: number | undefined;
|
|
2343
|
+
height?: number | undefined;
|
|
2344
|
+
}, {
|
|
2345
|
+
kind: "world" | "screenshot" | "video" | "skin";
|
|
2346
|
+
data: string;
|
|
2347
|
+
filename: string;
|
|
2348
|
+
width?: number | undefined;
|
|
2349
|
+
height?: number | undefined;
|
|
2350
|
+
}>;
|
|
2351
|
+
type UploadMediaInput = z.infer<typeof UploadMediaInputSchema>;
|
|
2352
|
+
declare const DeleteMediaInputSchema: z.ZodObject<{
|
|
2353
|
+
id: z.ZodString;
|
|
2354
|
+
}, "strip", z.ZodTypeAny, {
|
|
2355
|
+
id: string;
|
|
2356
|
+
}, {
|
|
2357
|
+
id: string;
|
|
2358
|
+
}>;
|
|
2359
|
+
type DeleteMediaInput = z.infer<typeof DeleteMediaInputSchema>;
|
|
2360
|
+
declare const SignalingKindSchema: z.ZodEnum<["offer", "answer", "candidate"]>;
|
|
2361
|
+
type SignalingKind = z.infer<typeof SignalingKindSchema>;
|
|
2362
|
+
declare const SignalingMessageSchema: z.ZodObject<{
|
|
2363
|
+
id: z.ZodString;
|
|
2364
|
+
kind: z.ZodEnum<["offer", "answer", "candidate"]>;
|
|
2365
|
+
fromUuid: z.ZodString;
|
|
2366
|
+
toUuid: z.ZodString;
|
|
2367
|
+
payload: z.ZodString;
|
|
2368
|
+
createdAt: z.ZodString;
|
|
2369
|
+
}, "strip", z.ZodTypeAny, {
|
|
2370
|
+
id: string;
|
|
2371
|
+
kind: "offer" | "answer" | "candidate";
|
|
2372
|
+
fromUuid: string;
|
|
2373
|
+
toUuid: string;
|
|
2374
|
+
createdAt: string;
|
|
2375
|
+
payload: string;
|
|
2376
|
+
}, {
|
|
2377
|
+
id: string;
|
|
2378
|
+
kind: "offer" | "answer" | "candidate";
|
|
2379
|
+
fromUuid: string;
|
|
2380
|
+
toUuid: string;
|
|
2381
|
+
createdAt: string;
|
|
2382
|
+
payload: string;
|
|
2383
|
+
}>;
|
|
2384
|
+
type SignalingMessage = z.infer<typeof SignalingMessageSchema>;
|
|
2385
|
+
declare const SendSignalingInputSchema: z.ZodObject<{
|
|
2386
|
+
toUuid: z.ZodString;
|
|
2387
|
+
kind: z.ZodEnum<["offer", "answer", "candidate"]>;
|
|
2388
|
+
payload: z.ZodString;
|
|
2389
|
+
}, "strip", z.ZodTypeAny, {
|
|
2390
|
+
kind: "offer" | "answer" | "candidate";
|
|
2391
|
+
toUuid: string;
|
|
2392
|
+
payload: string;
|
|
2393
|
+
}, {
|
|
2394
|
+
kind: "offer" | "answer" | "candidate";
|
|
2395
|
+
toUuid: string;
|
|
2396
|
+
payload: string;
|
|
2397
|
+
}>;
|
|
2398
|
+
type SendSignalingInput = z.infer<typeof SendSignalingInputSchema>;
|
|
2399
|
+
declare const ListSignalingInputSchema: z.ZodObject<{
|
|
2400
|
+
fromUuid: z.ZodOptional<z.ZodString>;
|
|
2401
|
+
since: z.ZodOptional<z.ZodString>;
|
|
2402
|
+
}, "strip", z.ZodTypeAny, {
|
|
2403
|
+
since?: string | undefined;
|
|
2404
|
+
fromUuid?: string | undefined;
|
|
2405
|
+
}, {
|
|
2406
|
+
since?: string | undefined;
|
|
2407
|
+
fromUuid?: string | undefined;
|
|
2408
|
+
}>;
|
|
2409
|
+
declare const UpnpSessionStatusSchema: z.ZodEnum<["pending", "active", "closed", "error"]>;
|
|
2410
|
+
type UpnpSessionStatus = z.infer<typeof UpnpSessionStatusSchema>;
|
|
2411
|
+
declare const UpnpSessionSchema: z.ZodObject<{
|
|
2412
|
+
id: z.ZodString;
|
|
2413
|
+
ownerUuid: z.ZodString;
|
|
2414
|
+
ownerDisplayName: z.ZodString;
|
|
2415
|
+
publicAddress: z.ZodString;
|
|
2416
|
+
publicPort: z.ZodNumber;
|
|
2417
|
+
localAddress: z.ZodString;
|
|
2418
|
+
localPort: z.ZodNumber;
|
|
2419
|
+
status: z.ZodEnum<["pending", "active", "closed", "error"]>;
|
|
2420
|
+
createdAt: z.ZodString;
|
|
2421
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
2422
|
+
invitedUuids: z.ZodArray<z.ZodString, "many">;
|
|
2423
|
+
}, "strip", z.ZodTypeAny, {
|
|
2424
|
+
status: "active" | "pending" | "closed" | "error";
|
|
2425
|
+
id: string;
|
|
2426
|
+
createdAt: string;
|
|
2427
|
+
ownerUuid: string;
|
|
2428
|
+
ownerDisplayName: string;
|
|
2429
|
+
publicAddress: string;
|
|
2430
|
+
publicPort: number;
|
|
2431
|
+
localAddress: string;
|
|
2432
|
+
localPort: number;
|
|
2433
|
+
closedAt: string | null;
|
|
2434
|
+
invitedUuids: string[];
|
|
2435
|
+
}, {
|
|
2436
|
+
status: "active" | "pending" | "closed" | "error";
|
|
2437
|
+
id: string;
|
|
2438
|
+
createdAt: string;
|
|
2439
|
+
ownerUuid: string;
|
|
2440
|
+
ownerDisplayName: string;
|
|
2441
|
+
publicAddress: string;
|
|
2442
|
+
publicPort: number;
|
|
2443
|
+
localAddress: string;
|
|
2444
|
+
localPort: number;
|
|
2445
|
+
closedAt: string | null;
|
|
2446
|
+
invitedUuids: string[];
|
|
2447
|
+
}>;
|
|
2448
|
+
type UpnpSession = z.infer<typeof UpnpSessionSchema>;
|
|
2449
|
+
declare const CreateUpnpInputSchema: z.ZodObject<{
|
|
2450
|
+
localAddress: z.ZodString;
|
|
2451
|
+
localPort: z.ZodNumber;
|
|
2452
|
+
invitedUuids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2453
|
+
}, "strip", z.ZodTypeAny, {
|
|
2454
|
+
localAddress: string;
|
|
2455
|
+
localPort: number;
|
|
2456
|
+
invitedUuids: string[];
|
|
2457
|
+
}, {
|
|
2458
|
+
localAddress: string;
|
|
2459
|
+
localPort: number;
|
|
2460
|
+
invitedUuids?: string[] | undefined;
|
|
2461
|
+
}>;
|
|
2462
|
+
type CreateUpnpInput = z.infer<typeof CreateUpnpInputSchema>;
|
|
2463
|
+
declare const CloseUpnpInputSchema: z.ZodObject<{
|
|
2464
|
+
id: z.ZodString;
|
|
2465
|
+
}, "strip", z.ZodTypeAny, {
|
|
2466
|
+
id: string;
|
|
2467
|
+
}, {
|
|
2468
|
+
id: string;
|
|
2469
|
+
}>;
|
|
2470
|
+
type CloseUpnpInput = z.infer<typeof CloseUpnpInputSchema>;
|
|
2471
|
+
declare const KnownServerSchema: z.ZodObject<{
|
|
2472
|
+
id: z.ZodString;
|
|
2473
|
+
name: z.ZodString;
|
|
2474
|
+
address: z.ZodString;
|
|
2475
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
2477
|
+
playerCount: z.ZodNullable<z.ZodNumber>;
|
|
2478
|
+
maxPlayers: z.ZodNullable<z.ZodNumber>;
|
|
2479
|
+
version: z.ZodNullable<z.ZodString>;
|
|
2480
|
+
pingMs: z.ZodNullable<z.ZodNumber>;
|
|
2481
|
+
source: z.ZodEnum<["anvil", "community"]>;
|
|
2482
|
+
}, "strip", z.ZodTypeAny, {
|
|
2483
|
+
id: string;
|
|
2484
|
+
name: string;
|
|
2485
|
+
iconUrl: string | null;
|
|
2486
|
+
source: "anvil" | "community";
|
|
2487
|
+
version: string | null;
|
|
2488
|
+
address: string;
|
|
2489
|
+
playerCount: number | null;
|
|
2490
|
+
maxPlayers: number | null;
|
|
2491
|
+
pingMs: number | null;
|
|
2492
|
+
description?: string | undefined;
|
|
2493
|
+
}, {
|
|
2494
|
+
id: string;
|
|
2495
|
+
name: string;
|
|
2496
|
+
iconUrl: string | null;
|
|
2497
|
+
source: "anvil" | "community";
|
|
2498
|
+
version: string | null;
|
|
2499
|
+
address: string;
|
|
2500
|
+
playerCount: number | null;
|
|
2501
|
+
maxPlayers: number | null;
|
|
2502
|
+
pingMs: number | null;
|
|
2503
|
+
description?: string | undefined;
|
|
2504
|
+
}>;
|
|
2505
|
+
type KnownServer = z.infer<typeof KnownServerSchema>;
|
|
2506
|
+
declare const SystemStatusSchema: z.ZodObject<{
|
|
2507
|
+
status: z.ZodEnum<["operational", "degraded", "outage"]>;
|
|
2508
|
+
maintenanceUntil: z.ZodNullable<z.ZodString>;
|
|
2509
|
+
message: z.ZodNullable<z.ZodString>;
|
|
2510
|
+
}, "strip", z.ZodTypeAny, {
|
|
2511
|
+
message: string | null;
|
|
2512
|
+
status: "operational" | "degraded" | "outage";
|
|
2513
|
+
maintenanceUntil: string | null;
|
|
2514
|
+
}, {
|
|
2515
|
+
message: string | null;
|
|
2516
|
+
status: "operational" | "degraded" | "outage";
|
|
2517
|
+
maintenanceUntil: string | null;
|
|
2518
|
+
}>;
|
|
2519
|
+
type SystemStatus = z.infer<typeof SystemStatusSchema>;
|
|
2520
|
+
declare const InstalledInstanceSchema: z.ZodObject<{
|
|
2521
|
+
id: z.ZodString;
|
|
2522
|
+
name: z.ZodString;
|
|
2523
|
+
mcVersion: z.ZodString;
|
|
2524
|
+
loader: z.ZodEnum<["vanilla", "fabric", "forge", "neoforge", "quilt"]>;
|
|
2525
|
+
loaderVersion: z.ZodString;
|
|
2526
|
+
path: z.ZodString;
|
|
2527
|
+
sizeBytes: z.ZodNumber;
|
|
2528
|
+
lastPlayedAt: z.ZodNullable<z.ZodString>;
|
|
2529
|
+
installedAt: z.ZodString;
|
|
2530
|
+
}, "strip", z.ZodTypeAny, {
|
|
2531
|
+
path: string;
|
|
2532
|
+
id: string;
|
|
2533
|
+
name: string;
|
|
2534
|
+
sizeBytes: number;
|
|
2535
|
+
mcVersion: string;
|
|
2536
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
2537
|
+
loaderVersion: string;
|
|
2538
|
+
lastPlayedAt: string | null;
|
|
2539
|
+
installedAt: string;
|
|
2540
|
+
}, {
|
|
2541
|
+
path: string;
|
|
2542
|
+
id: string;
|
|
2543
|
+
name: string;
|
|
2544
|
+
sizeBytes: number;
|
|
2545
|
+
mcVersion: string;
|
|
2546
|
+
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
2547
|
+
loaderVersion: string;
|
|
2548
|
+
lastPlayedAt: string | null;
|
|
2549
|
+
installedAt: string;
|
|
2550
|
+
}>;
|
|
2551
|
+
type InstalledInstance = z.infer<typeof InstalledInstanceSchema>;
|
|
2552
|
+
declare const ReportTelemetryInputSchema: z.ZodObject<{
|
|
2553
|
+
event: z.ZodEnum<["launch", "playtime", "crash"]>;
|
|
2554
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2555
|
+
}, "strip", z.ZodTypeAny, {
|
|
2556
|
+
metadata: Record<string, string>;
|
|
2557
|
+
event: "launch" | "playtime" | "crash";
|
|
2558
|
+
}, {
|
|
2559
|
+
event: "launch" | "playtime" | "crash";
|
|
2560
|
+
metadata?: Record<string, string> | undefined;
|
|
2561
|
+
}>;
|
|
2562
|
+
type ReportTelemetryInput = z.infer<typeof ReportTelemetryInputSchema>;
|
|
2563
|
+
declare const LauncherUpdateInfoSchema: z.ZodObject<{
|
|
2564
|
+
currentVersion: z.ZodString;
|
|
2565
|
+
latestVersion: z.ZodString;
|
|
2566
|
+
updateAvailable: z.ZodBoolean;
|
|
2567
|
+
changelog: z.ZodNullable<z.ZodString>;
|
|
2568
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
2569
|
+
}, "strip", z.ZodTypeAny, {
|
|
2570
|
+
changelog: string | null;
|
|
2571
|
+
downloadUrl: string | null;
|
|
2572
|
+
currentVersion: string;
|
|
2573
|
+
latestVersion: string;
|
|
2574
|
+
updateAvailable: boolean;
|
|
2575
|
+
}, {
|
|
2576
|
+
changelog: string | null;
|
|
2577
|
+
downloadUrl: string | null;
|
|
2578
|
+
currentVersion: string;
|
|
2579
|
+
latestVersion: string;
|
|
2580
|
+
updateAvailable: boolean;
|
|
2581
|
+
}>;
|
|
2582
|
+
type LauncherUpdateInfo = z.infer<typeof LauncherUpdateInfoSchema>;
|
|
2583
|
+
|
|
2584
|
+
export { type AcceptRequestInput, AcceptRequestInputSchema, type AnvilConnection, AnvilConnectionSchema, type Arch, ArchSchema, type AuthConfig, AuthConfigSchema, type AuthProvider, AuthProviderSchema, type Build, type BuildFile, BuildFileSchema, BuildSchema, type BuildSummary, BuildSummarySchema, type BuildVersion, BuildVersionSchema, CHANNEL_KIND_LABELS, COSMETIC_TYPE_LABELS, type CancelRequestInput, CancelRequestInputSchema, type Channel, type ChannelKind, ChannelKindSchema, type ChannelReportsInput, ChannelReportsInputSchema, ChannelSchema, type ChatMember, ChatMemberSchema, type CheckLicenseInput, CheckLicenseInputSchema, type CheckLicenseOutput, CheckLicenseOutputSchema, type CloseUpnpInput, CloseUpnpInputSchema, type CommunityRulesStatus, CommunityRulesStatusSchema, type ContentConfig, ContentConfigSchema, type ContentSource, ContentSourceSchema, type Cosmetic, type CosmeticRarity, CosmeticRaritySchema, CosmeticSchema, type CosmeticType, CosmeticTypeSchema, type CreateDMInput, CreateDMInputSchema, type CreateGroupInput, CreateGroupInputSchema, type CreateOutfitInput, CreateOutfitInputSchema, type CreateRelationshipInput, CreateRelationshipInputSchema, type CreateTrustedHostInput, CreateTrustedHostInputSchema, type CreateUpnpInput, CreateUpnpInputSchema, type DeleteMediaInput, DeleteMediaInputSchema, type DeleteMessageInput, DeleteMessageInputSchema, type DeleteOutfitInput, DeleteOutfitInputSchema, type DeleteRelationshipInput, DeleteRelationshipInputSchema, type DeleteTrustedHostInput, DeleteTrustedHostInputSchema, type EditMessageInput, EditMessageInputSchema, type EmoteWheel, EmoteWheelSchema, type EmoteWheelSlot, EmoteWheelSlotSchema, type EquipCosmeticInput, EquipCosmeticInputSchema, type ForgotPasswordInput, ForgotPasswordInputSchema, type GetBuildInput, GetBuildInputSchema, type ISODate, ISODateSchema, type InstalledInstance, InstalledInstanceSchema, type InviteToServerInput, InviteToServerInputSchema, type KnownServer, KnownServerSchema, type LauncherConfig, LauncherConfigSchema, type LauncherMode, LauncherModeSchema, type LauncherUpdateInfo, LauncherUpdateInfoSchema, type License, LicenseSchema, type ListBuildsInput, ListBuildsInputSchema, type ListChannelsInput, ListChannelsInputSchema, type ListLicensesInput, ListLicensesInputSchema, type ListMediaInput, ListMediaInputSchema, type ListMessagesInput, ListMessagesInputSchema, type ListRelationshipsInput, ListRelationshipsInputSchema, ListSignalingInputSchema, type LoaderType, LoaderTypeSchema, type LocalizedRule, LocalizedRuleSchema, type LocalizedString, LocalizedStringSchema, type LoginInput, LoginInputSchema, type LookupByNameInput, LookupByNameInputSchema, type LookupByNameOutput, LookupByNameOutputSchema, MC_VERSIONS_POPULAR, MODRINTH_CATEGORIES, type MarkReadInput, MarkReadInputSchema, type MediaItem, MediaItemSchema, type MediaKind, MediaKindSchema, type Message, MessageSchema, ModrinthDonationLinkSchema, type ModrinthProject, ModrinthProjectSchema, type ModrinthProjectType, ModrinthProjectTypeSchema, type ModrinthSearchInput, ModrinthSearchInputSchema, type ModrinthSearchResponse, ModrinthSearchResponseSchema, type Outfit, OutfitSchema, type OutfitSlot, OutfitSlotSchema, PRESENCE_COLORS, PaginatedSchema, type PaginationInput, PaginationInputSchema, type Platform, PlatformSchema, type Presence, PresenceSchema, type PresenceStatus, PresenceStatusSchema, RARITY_COLORS, RELATIONSHIP_LABELS, type RefreshInput, RefreshInputSchema, type RegisterInput, RegisterInputSchema, type Relationship, type RelationshipDirection, RelationshipDirectionSchema, RelationshipSchema, type RelationshipStatus, RelationshipStatusSchema, type RelationshipType, RelationshipTypeSchema, type RelationshipsListKind, RelationshipsListKindSchema, type ReportActivityInput, ReportActivityInputSchema, type ReportMessageInput, ReportMessageInputSchema, type ReportTelemetryInput, ReportTelemetryInputSchema, type RequestDownloadInput, RequestDownloadInputSchema, type RequestDownloadOutput, RequestDownloadOutputSchema, type ResetPasswordInput, ResetPasswordInputSchema, type SaveEmoteWheelInput, SaveEmoteWheelInputSchema, type SendMessageInput, SendMessageInputSchema, type SendSignalingInput, SendSignalingInputSchema, type Session, SessionSchema, type SetActiveSkinInput, SetActiveSkinInputSchema, type SignalingKind, SignalingKindSchema, type SignalingMessage, SignalingMessageSchema, type Skin, SkinSchema, type SkinVariant, SkinVariantSchema, type SuspensionStatus, SuspensionStatusSchema, type SystemStatus, SystemStatusSchema, type TRPCError, TRPCErrorSchema, type TrustedHost, TrustedHostSchema, type UUID, UUIDSchema, type UpdateOutfitInput, UpdateOutfitInputSchema, type UploadMediaInput, UploadMediaInputSchema, type UploadSkinInput, UploadSkinInputSchema, type UpnpSession, UpnpSessionSchema, type UpnpSessionStatus, UpnpSessionStatusSchema, type UserActivity, UserActivitySchema, type UserSummary, UserSummarySchema, type ValidateInput, ValidateInputSchema, defaultLauncherConfig, isAuthProviderAnvil };
|