@anvil-js/client 0.0.1 → 0.0.3
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/README.md +15 -2
- package/dist/factory-6sY9ZEqy.d.cts +1932 -0
- package/dist/factory-6sY9ZEqy.d.ts +1932 -0
- package/dist/index.cjs +892 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +80 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/{provider-2AIXk8yy.d.ts → react/index.d.cts} +30 -1929
- package/dist/react/index.d.ts +13685 -8
- package/dist/react/index.js +60 -3
- package/dist/react/index.js.map +1 -1
- package/dist/schemas/index.cjs +850 -0
- package/dist/schemas/index.cjs.map +1 -0
- package/dist/schemas/index.d.cts +2584 -0
- package/dist/schemas/index.d.ts +185 -185
- package/dist/server.cjs +1038 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +3869 -0
- package/dist/server.d.ts +247 -247
- package/dist/ws/index.cjs +589 -0
- package/dist/ws/index.cjs.map +1 -0
- package/dist/ws/index.d.cts +288 -0
- package/dist/ws/index.d.ts +1 -11
- package/dist/ws/index.js +3 -25
- package/dist/ws/index.js.map +1 -1
- package/package.json +54 -15
- package/dist/chunk-DV6XOONA.js +0 -41
- package/dist/chunk-DV6XOONA.js.map +0 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ declare const TRPCErrorSchema: z.ZodObject<{
|
|
|
16
16
|
code: z.ZodEnum<["BAD_REQUEST", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "TOO_MANY_REQUESTS", "INTERNAL_SERVER_ERROR"]>;
|
|
17
17
|
message: z.ZodString;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
code: "BAD_REQUEST" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "TOO_MANY_REQUESTS"
|
|
19
|
+
code: "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "TOO_MANY_REQUESTS";
|
|
20
20
|
message: string;
|
|
21
21
|
}, {
|
|
22
|
-
code: "BAD_REQUEST" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "TOO_MANY_REQUESTS"
|
|
22
|
+
code: "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "TOO_MANY_REQUESTS";
|
|
23
23
|
message: string;
|
|
24
24
|
}>;
|
|
25
25
|
type TRPCError = z.infer<typeof TRPCErrorSchema>;
|
|
@@ -102,6 +102,9 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
102
102
|
refreshToken: z.ZodString;
|
|
103
103
|
expiresAt: z.ZodString;
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
accessToken: string;
|
|
106
|
+
refreshToken: string;
|
|
107
|
+
expiresAt: string;
|
|
105
108
|
user: {
|
|
106
109
|
email: string;
|
|
107
110
|
uuid: string;
|
|
@@ -110,10 +113,10 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
110
113
|
avatarUrl: string | null;
|
|
111
114
|
role: "USER" | "MODERATOR" | "ADMIN";
|
|
112
115
|
};
|
|
116
|
+
}, {
|
|
113
117
|
accessToken: string;
|
|
114
118
|
refreshToken: string;
|
|
115
119
|
expiresAt: string;
|
|
116
|
-
}, {
|
|
117
120
|
user: {
|
|
118
121
|
email: string;
|
|
119
122
|
uuid: string;
|
|
@@ -122,9 +125,6 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
122
125
|
avatarUrl: string | null;
|
|
123
126
|
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
124
127
|
};
|
|
125
|
-
accessToken: string;
|
|
126
|
-
refreshToken: string;
|
|
127
|
-
expiresAt: string;
|
|
128
128
|
}>;
|
|
129
129
|
mojang: z.ZodNullable<z.ZodObject<{
|
|
130
130
|
uuid: z.ZodString;
|
|
@@ -132,18 +132,21 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
132
132
|
accessToken: z.ZodString;
|
|
133
133
|
expiresAt: z.ZodString;
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
135
|
-
uuid: string;
|
|
136
|
-
username: string;
|
|
137
135
|
accessToken: string;
|
|
138
136
|
expiresAt: string;
|
|
139
|
-
}, {
|
|
140
137
|
uuid: string;
|
|
141
138
|
username: string;
|
|
139
|
+
}, {
|
|
142
140
|
accessToken: string;
|
|
143
141
|
expiresAt: string;
|
|
142
|
+
uuid: string;
|
|
143
|
+
username: string;
|
|
144
144
|
}>>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
anvil: {
|
|
147
|
+
accessToken: string;
|
|
148
|
+
refreshToken: string;
|
|
149
|
+
expiresAt: string;
|
|
147
150
|
user: {
|
|
148
151
|
email: string;
|
|
149
152
|
uuid: string;
|
|
@@ -152,18 +155,18 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
152
155
|
avatarUrl: string | null;
|
|
153
156
|
role: "USER" | "MODERATOR" | "ADMIN";
|
|
154
157
|
};
|
|
155
|
-
accessToken: string;
|
|
156
|
-
refreshToken: string;
|
|
157
|
-
expiresAt: string;
|
|
158
158
|
};
|
|
159
159
|
mojang: {
|
|
160
|
-
uuid: string;
|
|
161
|
-
username: string;
|
|
162
160
|
accessToken: string;
|
|
163
161
|
expiresAt: string;
|
|
162
|
+
uuid: string;
|
|
163
|
+
username: string;
|
|
164
164
|
} | null;
|
|
165
165
|
}, {
|
|
166
166
|
anvil: {
|
|
167
|
+
accessToken: string;
|
|
168
|
+
refreshToken: string;
|
|
169
|
+
expiresAt: string;
|
|
167
170
|
user: {
|
|
168
171
|
email: string;
|
|
169
172
|
uuid: string;
|
|
@@ -172,15 +175,12 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
172
175
|
avatarUrl: string | null;
|
|
173
176
|
role?: "USER" | "MODERATOR" | "ADMIN" | undefined;
|
|
174
177
|
};
|
|
175
|
-
accessToken: string;
|
|
176
|
-
refreshToken: string;
|
|
177
|
-
expiresAt: string;
|
|
178
178
|
};
|
|
179
179
|
mojang: {
|
|
180
|
-
uuid: string;
|
|
181
|
-
username: string;
|
|
182
180
|
accessToken: string;
|
|
183
181
|
expiresAt: string;
|
|
182
|
+
uuid: string;
|
|
183
|
+
username: string;
|
|
184
184
|
} | null;
|
|
185
185
|
}>;
|
|
186
186
|
type Session = z.infer<typeof SessionSchema>;
|
|
@@ -201,12 +201,12 @@ declare const RegisterInputSchema: z.ZodObject<{
|
|
|
201
201
|
password: z.ZodString;
|
|
202
202
|
}, "strip", z.ZodTypeAny, {
|
|
203
203
|
email: string;
|
|
204
|
-
username: string;
|
|
205
204
|
password: string;
|
|
205
|
+
username: string;
|
|
206
206
|
}, {
|
|
207
207
|
email: string;
|
|
208
|
-
username: string;
|
|
209
208
|
password: string;
|
|
209
|
+
username: string;
|
|
210
210
|
}>;
|
|
211
211
|
type RegisterInput = z.infer<typeof RegisterInputSchema>;
|
|
212
212
|
declare const RefreshInputSchema: z.ZodObject<{
|
|
@@ -280,31 +280,31 @@ declare const BuildSummarySchema: z.ZodObject<{
|
|
|
280
280
|
priceCents: z.ZodNumber;
|
|
281
281
|
interval: z.ZodEnum<["month", "year"]>;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
|
|
283
|
+
interval: "month" | "year";
|
|
284
284
|
name: string;
|
|
285
|
+
id: string;
|
|
285
286
|
priceCents: number;
|
|
286
|
-
interval: "month" | "year";
|
|
287
287
|
}, {
|
|
288
|
-
|
|
288
|
+
interval: "month" | "year";
|
|
289
289
|
name: string;
|
|
290
|
+
id: string;
|
|
290
291
|
priceCents: number;
|
|
291
|
-
interval: "month" | "year";
|
|
292
292
|
}>, "many">;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
294
|
model: "subscription";
|
|
295
295
|
tiers: {
|
|
296
|
-
|
|
296
|
+
interval: "month" | "year";
|
|
297
297
|
name: string;
|
|
298
|
+
id: string;
|
|
298
299
|
priceCents: number;
|
|
299
|
-
interval: "month" | "year";
|
|
300
300
|
}[];
|
|
301
301
|
}, {
|
|
302
302
|
model: "subscription";
|
|
303
303
|
tiers: {
|
|
304
|
-
|
|
304
|
+
interval: "month" | "year";
|
|
305
305
|
name: string;
|
|
306
|
+
id: string;
|
|
306
307
|
priceCents: number;
|
|
307
|
-
interval: "month" | "year";
|
|
308
308
|
}[];
|
|
309
309
|
}>]>;
|
|
310
310
|
stats: z.ZodObject<{
|
|
@@ -322,14 +322,15 @@ declare const BuildSummarySchema: z.ZodObject<{
|
|
|
322
322
|
}>;
|
|
323
323
|
source: z.ZodDefault<z.ZodEnum<["modrinth", "anvil"]>>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
mcVersions: string[];
|
|
326
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
327
|
+
visibility: "public" | "private" | "unlisted";
|
|
328
|
+
source: "anvil" | "modrinth";
|
|
329
|
+
name: string;
|
|
325
330
|
id: string;
|
|
326
331
|
slug: string;
|
|
327
|
-
name: string;
|
|
328
332
|
shortDescription: string;
|
|
329
333
|
iconUrl: string | null;
|
|
330
|
-
mcVersions: string[];
|
|
331
|
-
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
332
|
-
visibility: "public" | "private" | "unlisted";
|
|
333
334
|
pricing: {
|
|
334
335
|
model: "free";
|
|
335
336
|
} | {
|
|
@@ -339,10 +340,10 @@ declare const BuildSummarySchema: z.ZodObject<{
|
|
|
339
340
|
} | {
|
|
340
341
|
model: "subscription";
|
|
341
342
|
tiers: {
|
|
342
|
-
|
|
343
|
+
interval: "month" | "year";
|
|
343
344
|
name: string;
|
|
345
|
+
id: string;
|
|
344
346
|
priceCents: number;
|
|
345
|
-
interval: "month" | "year";
|
|
346
347
|
}[];
|
|
347
348
|
};
|
|
348
349
|
stats: {
|
|
@@ -350,16 +351,15 @@ declare const BuildSummarySchema: z.ZodObject<{
|
|
|
350
351
|
favorites: number;
|
|
351
352
|
updatedAt: string;
|
|
352
353
|
};
|
|
353
|
-
source: "anvil" | "modrinth";
|
|
354
354
|
}, {
|
|
355
|
+
mcVersions: string[];
|
|
356
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
357
|
+
visibility: "public" | "private" | "unlisted";
|
|
358
|
+
name: string;
|
|
355
359
|
id: string;
|
|
356
360
|
slug: string;
|
|
357
|
-
name: string;
|
|
358
361
|
shortDescription: string;
|
|
359
362
|
iconUrl: string | null;
|
|
360
|
-
mcVersions: string[];
|
|
361
|
-
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
362
|
-
visibility: "public" | "private" | "unlisted";
|
|
363
363
|
pricing: {
|
|
364
364
|
model: "free";
|
|
365
365
|
} | {
|
|
@@ -369,10 +369,10 @@ declare const BuildSummarySchema: z.ZodObject<{
|
|
|
369
369
|
} | {
|
|
370
370
|
model: "subscription";
|
|
371
371
|
tiers: {
|
|
372
|
-
|
|
372
|
+
interval: "month" | "year";
|
|
373
373
|
name: string;
|
|
374
|
+
id: string;
|
|
374
375
|
priceCents: number;
|
|
375
|
-
interval: "month" | "year";
|
|
376
376
|
}[];
|
|
377
377
|
};
|
|
378
378
|
stats: {
|
|
@@ -439,8 +439,8 @@ declare const BuildVersionSchema: z.ZodObject<{
|
|
|
439
439
|
changelog: z.ZodOptional<z.ZodString>;
|
|
440
440
|
publishedAt: z.ZodString;
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
id: string;
|
|
443
442
|
name: string;
|
|
443
|
+
id: string;
|
|
444
444
|
buildId: string;
|
|
445
445
|
mcVersion: string;
|
|
446
446
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
@@ -459,8 +459,8 @@ declare const BuildVersionSchema: z.ZodObject<{
|
|
|
459
459
|
publishedAt: string;
|
|
460
460
|
changelog?: string | undefined;
|
|
461
461
|
}, {
|
|
462
|
-
id: string;
|
|
463
462
|
name: string;
|
|
463
|
+
id: string;
|
|
464
464
|
buildId: string;
|
|
465
465
|
mcVersion: string;
|
|
466
466
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
@@ -515,31 +515,31 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
515
515
|
priceCents: z.ZodNumber;
|
|
516
516
|
interval: z.ZodEnum<["month", "year"]>;
|
|
517
517
|
}, "strip", z.ZodTypeAny, {
|
|
518
|
-
|
|
518
|
+
interval: "month" | "year";
|
|
519
519
|
name: string;
|
|
520
|
+
id: string;
|
|
520
521
|
priceCents: number;
|
|
521
|
-
interval: "month" | "year";
|
|
522
522
|
}, {
|
|
523
|
-
|
|
523
|
+
interval: "month" | "year";
|
|
524
524
|
name: string;
|
|
525
|
+
id: string;
|
|
525
526
|
priceCents: number;
|
|
526
|
-
interval: "month" | "year";
|
|
527
527
|
}>, "many">;
|
|
528
528
|
}, "strip", z.ZodTypeAny, {
|
|
529
529
|
model: "subscription";
|
|
530
530
|
tiers: {
|
|
531
|
-
|
|
531
|
+
interval: "month" | "year";
|
|
532
532
|
name: string;
|
|
533
|
+
id: string;
|
|
533
534
|
priceCents: number;
|
|
534
|
-
interval: "month" | "year";
|
|
535
535
|
}[];
|
|
536
536
|
}, {
|
|
537
537
|
model: "subscription";
|
|
538
538
|
tiers: {
|
|
539
|
-
|
|
539
|
+
interval: "month" | "year";
|
|
540
540
|
name: string;
|
|
541
|
+
id: string;
|
|
541
542
|
priceCents: number;
|
|
542
|
-
interval: "month" | "year";
|
|
543
543
|
}[];
|
|
544
544
|
}>]>;
|
|
545
545
|
stats: z.ZodObject<{
|
|
@@ -596,8 +596,8 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
596
596
|
changelog: z.ZodOptional<z.ZodString>;
|
|
597
597
|
publishedAt: z.ZodString;
|
|
598
598
|
}, "strip", z.ZodTypeAny, {
|
|
599
|
-
id: string;
|
|
600
599
|
name: string;
|
|
600
|
+
id: string;
|
|
601
601
|
buildId: string;
|
|
602
602
|
mcVersion: string;
|
|
603
603
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
@@ -616,8 +616,8 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
616
616
|
publishedAt: string;
|
|
617
617
|
changelog?: string | undefined;
|
|
618
618
|
}, {
|
|
619
|
-
id: string;
|
|
620
619
|
name: string;
|
|
620
|
+
id: string;
|
|
621
621
|
buildId: string;
|
|
622
622
|
mcVersion: string;
|
|
623
623
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
@@ -639,14 +639,15 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
639
639
|
description: z.ZodOptional<z.ZodString>;
|
|
640
640
|
longDescription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
641
641
|
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
mcVersions: string[];
|
|
643
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
644
|
+
visibility: "public" | "private" | "unlisted";
|
|
645
|
+
source: "anvil" | "modrinth";
|
|
646
|
+
name: string;
|
|
642
647
|
id: string;
|
|
643
648
|
slug: string;
|
|
644
|
-
name: string;
|
|
645
649
|
shortDescription: string;
|
|
646
650
|
iconUrl: string | null;
|
|
647
|
-
mcVersions: string[];
|
|
648
|
-
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
649
|
-
visibility: "public" | "private" | "unlisted";
|
|
650
651
|
pricing: {
|
|
651
652
|
model: "free";
|
|
652
653
|
} | {
|
|
@@ -656,10 +657,10 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
656
657
|
} | {
|
|
657
658
|
model: "subscription";
|
|
658
659
|
tiers: {
|
|
659
|
-
|
|
660
|
+
interval: "month" | "year";
|
|
660
661
|
name: string;
|
|
662
|
+
id: string;
|
|
661
663
|
priceCents: number;
|
|
662
|
-
interval: "month" | "year";
|
|
663
664
|
}[];
|
|
664
665
|
};
|
|
665
666
|
stats: {
|
|
@@ -667,10 +668,9 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
667
668
|
favorites: number;
|
|
668
669
|
updatedAt: string;
|
|
669
670
|
};
|
|
670
|
-
source: "anvil" | "modrinth";
|
|
671
671
|
versions: {
|
|
672
|
-
id: string;
|
|
673
672
|
name: string;
|
|
673
|
+
id: string;
|
|
674
674
|
buildId: string;
|
|
675
675
|
mcVersion: string;
|
|
676
676
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
@@ -692,14 +692,14 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
692
692
|
description?: string | undefined;
|
|
693
693
|
longDescription?: Record<string, string> | undefined;
|
|
694
694
|
}, {
|
|
695
|
+
mcVersions: string[];
|
|
696
|
+
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
697
|
+
visibility: "public" | "private" | "unlisted";
|
|
698
|
+
name: string;
|
|
695
699
|
id: string;
|
|
696
700
|
slug: string;
|
|
697
|
-
name: string;
|
|
698
701
|
shortDescription: string;
|
|
699
702
|
iconUrl: string | null;
|
|
700
|
-
mcVersions: string[];
|
|
701
|
-
loaders: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[];
|
|
702
|
-
visibility: "public" | "private" | "unlisted";
|
|
703
703
|
pricing: {
|
|
704
704
|
model: "free";
|
|
705
705
|
} | {
|
|
@@ -709,10 +709,10 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
709
709
|
} | {
|
|
710
710
|
model: "subscription";
|
|
711
711
|
tiers: {
|
|
712
|
-
|
|
712
|
+
interval: "month" | "year";
|
|
713
713
|
name: string;
|
|
714
|
+
id: string;
|
|
714
715
|
priceCents: number;
|
|
715
|
-
interval: "month" | "year";
|
|
716
716
|
}[];
|
|
717
717
|
};
|
|
718
718
|
stats: {
|
|
@@ -721,8 +721,8 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
721
721
|
updatedAt: string;
|
|
722
722
|
};
|
|
723
723
|
versions: {
|
|
724
|
-
id: string;
|
|
725
724
|
name: string;
|
|
725
|
+
id: string;
|
|
726
726
|
buildId: string;
|
|
727
727
|
mcVersion: string;
|
|
728
728
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
@@ -741,8 +741,8 @@ declare const BuildSchema: z.ZodObject<{
|
|
|
741
741
|
publishedAt: string;
|
|
742
742
|
changelog?: string | undefined;
|
|
743
743
|
}[];
|
|
744
|
-
source?: "anvil" | "modrinth" | undefined;
|
|
745
744
|
description?: string | undefined;
|
|
745
|
+
source?: "anvil" | "modrinth" | undefined;
|
|
746
746
|
longDescription?: Record<string, string> | undefined;
|
|
747
747
|
}>;
|
|
748
748
|
type Build = z.infer<typeof BuildSchema>;
|
|
@@ -757,25 +757,25 @@ declare const ListBuildsInputSchema: z.ZodObject<{
|
|
|
757
757
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
758
758
|
sort: z.ZodDefault<z.ZodEnum<["popular", "recent", "name"]>>;
|
|
759
759
|
}, "strip", z.ZodTypeAny, {
|
|
760
|
-
sort: "
|
|
760
|
+
sort: "popular" | "recent" | "name";
|
|
761
761
|
page: number;
|
|
762
762
|
pageSize: number;
|
|
763
|
+
search?: string | undefined;
|
|
764
|
+
tags?: string[] | undefined;
|
|
763
765
|
mcVersions?: string[] | undefined;
|
|
764
766
|
loaders?: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[] | undefined;
|
|
765
767
|
visibility?: ("public" | "private" | "unlisted")[] | undefined;
|
|
766
768
|
source?: ("anvil" | "modrinth")[] | undefined;
|
|
769
|
+
}, {
|
|
770
|
+
sort?: "popular" | "recent" | "name" | undefined;
|
|
767
771
|
search?: string | undefined;
|
|
768
772
|
tags?: string[] | undefined;
|
|
769
|
-
}, {
|
|
770
|
-
sort?: "name" | "popular" | "recent" | undefined;
|
|
771
|
-
page?: number | undefined;
|
|
772
|
-
pageSize?: number | undefined;
|
|
773
773
|
mcVersions?: string[] | undefined;
|
|
774
774
|
loaders?: ("vanilla" | "fabric" | "forge" | "neoforge" | "quilt")[] | undefined;
|
|
775
775
|
visibility?: ("public" | "private" | "unlisted")[] | undefined;
|
|
776
776
|
source?: ("anvil" | "modrinth")[] | undefined;
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
page?: number | undefined;
|
|
778
|
+
pageSize?: number | undefined;
|
|
779
779
|
}>;
|
|
780
780
|
type ListBuildsInput = z.infer<typeof ListBuildsInputSchema>;
|
|
781
781
|
declare const GetBuildInputSchema: z.ZodObject<{
|
|
@@ -827,18 +827,18 @@ declare const LicenseSchema: z.ZodObject<{
|
|
|
827
827
|
grantedAt: z.ZodString;
|
|
828
828
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
829
829
|
}, "strip", z.ZodTypeAny, {
|
|
830
|
-
status: "
|
|
830
|
+
status: "expired" | "active" | "revoked";
|
|
831
831
|
expiresAt: string | null;
|
|
832
|
-
id: string;
|
|
833
832
|
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
833
|
+
id: string;
|
|
834
834
|
buildId: string;
|
|
835
835
|
buildName: string;
|
|
836
836
|
grantedAt: string;
|
|
837
837
|
}, {
|
|
838
|
-
status: "
|
|
838
|
+
status: "expired" | "active" | "revoked";
|
|
839
839
|
expiresAt: string | null;
|
|
840
|
-
id: string;
|
|
841
840
|
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
841
|
+
id: string;
|
|
842
842
|
buildId: string;
|
|
843
843
|
buildName: string;
|
|
844
844
|
grantedAt: string;
|
|
@@ -848,10 +848,10 @@ declare const ListLicensesInputSchema: z.ZodObject<{
|
|
|
848
848
|
buildId: z.ZodOptional<z.ZodString>;
|
|
849
849
|
status: z.ZodOptional<z.ZodEnum<["active", "expired", "revoked"]>>;
|
|
850
850
|
}, "strip", z.ZodTypeAny, {
|
|
851
|
-
status?: "
|
|
851
|
+
status?: "expired" | "active" | "revoked" | undefined;
|
|
852
852
|
buildId?: string | undefined;
|
|
853
853
|
}, {
|
|
854
|
-
status?: "
|
|
854
|
+
status?: "expired" | "active" | "revoked" | undefined;
|
|
855
855
|
buildId?: string | undefined;
|
|
856
856
|
}>;
|
|
857
857
|
type ListLicensesInput = z.infer<typeof ListLicensesInputSchema>;
|
|
@@ -874,18 +874,18 @@ declare const CheckLicenseOutputSchema: z.ZodObject<{
|
|
|
874
874
|
grantedAt: z.ZodString;
|
|
875
875
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
876
876
|
}, "strip", z.ZodTypeAny, {
|
|
877
|
-
status: "
|
|
877
|
+
status: "expired" | "active" | "revoked";
|
|
878
878
|
expiresAt: string | null;
|
|
879
|
-
id: string;
|
|
880
879
|
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
880
|
+
id: string;
|
|
881
881
|
buildId: string;
|
|
882
882
|
buildName: string;
|
|
883
883
|
grantedAt: string;
|
|
884
884
|
}, {
|
|
885
|
-
status: "
|
|
885
|
+
status: "expired" | "active" | "revoked";
|
|
886
886
|
expiresAt: string | null;
|
|
887
|
-
id: string;
|
|
888
887
|
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
888
|
+
id: string;
|
|
889
889
|
buildId: string;
|
|
890
890
|
buildName: string;
|
|
891
891
|
grantedAt: string;
|
|
@@ -894,10 +894,10 @@ declare const CheckLicenseOutputSchema: z.ZodObject<{
|
|
|
894
894
|
}, "strip", z.ZodTypeAny, {
|
|
895
895
|
hasAccess: boolean;
|
|
896
896
|
license?: {
|
|
897
|
-
status: "
|
|
897
|
+
status: "expired" | "active" | "revoked";
|
|
898
898
|
expiresAt: string | null;
|
|
899
|
-
id: string;
|
|
900
899
|
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
900
|
+
id: string;
|
|
901
901
|
buildId: string;
|
|
902
902
|
buildName: string;
|
|
903
903
|
grantedAt: string;
|
|
@@ -906,10 +906,10 @@ declare const CheckLicenseOutputSchema: z.ZodObject<{
|
|
|
906
906
|
}, {
|
|
907
907
|
hasAccess: boolean;
|
|
908
908
|
license?: {
|
|
909
|
-
status: "
|
|
909
|
+
status: "expired" | "active" | "revoked";
|
|
910
910
|
expiresAt: string | null;
|
|
911
|
-
id: string;
|
|
912
911
|
source: "subscription" | "purchase" | "gift" | "promo" | "dev_grant";
|
|
912
|
+
id: string;
|
|
913
913
|
buildId: string;
|
|
914
914
|
buildName: string;
|
|
915
915
|
grantedAt: string;
|
|
@@ -988,140 +988,140 @@ declare const LauncherConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
988
988
|
region: z.ZodOptional<z.ZodString>;
|
|
989
989
|
version: z.ZodLiteral<1>;
|
|
990
990
|
}, "strip", z.ZodTypeAny, {
|
|
991
|
+
version: 1;
|
|
991
992
|
anvil: {
|
|
992
993
|
enabled: boolean;
|
|
993
994
|
baseUrl: string | null;
|
|
994
995
|
apiKey: string | null;
|
|
995
996
|
};
|
|
996
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
997
997
|
auth: {
|
|
998
998
|
providers: ("anvil" | "mojang")[];
|
|
999
999
|
};
|
|
1000
|
+
telemetry: boolean;
|
|
1001
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1000
1002
|
content: {
|
|
1001
1003
|
sources: ("anvil" | "modrinth")[];
|
|
1002
1004
|
};
|
|
1003
|
-
telemetry: boolean;
|
|
1004
1005
|
autoUpdate: boolean;
|
|
1005
|
-
version: 1;
|
|
1006
1006
|
region?: string | undefined;
|
|
1007
1007
|
}, {
|
|
1008
|
+
version: 1;
|
|
1008
1009
|
anvil: {
|
|
1009
1010
|
enabled: boolean;
|
|
1010
1011
|
baseUrl: string | null;
|
|
1011
1012
|
apiKey: string | null;
|
|
1012
1013
|
};
|
|
1013
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
1014
1014
|
auth: {
|
|
1015
1015
|
providers: ("anvil" | "mojang")[];
|
|
1016
1016
|
};
|
|
1017
|
+
telemetry: boolean;
|
|
1018
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1017
1019
|
content: {
|
|
1018
1020
|
sources: ("anvil" | "modrinth")[];
|
|
1019
1021
|
};
|
|
1020
|
-
telemetry: boolean;
|
|
1021
1022
|
autoUpdate: boolean;
|
|
1022
|
-
version: 1;
|
|
1023
1023
|
region?: string | undefined;
|
|
1024
1024
|
}>, {
|
|
1025
|
+
version: 1;
|
|
1025
1026
|
anvil: {
|
|
1026
1027
|
enabled: boolean;
|
|
1027
1028
|
baseUrl: string | null;
|
|
1028
1029
|
apiKey: string | null;
|
|
1029
1030
|
};
|
|
1030
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
1031
1031
|
auth: {
|
|
1032
1032
|
providers: ("anvil" | "mojang")[];
|
|
1033
1033
|
};
|
|
1034
|
+
telemetry: boolean;
|
|
1035
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1034
1036
|
content: {
|
|
1035
1037
|
sources: ("anvil" | "modrinth")[];
|
|
1036
1038
|
};
|
|
1037
|
-
telemetry: boolean;
|
|
1038
1039
|
autoUpdate: boolean;
|
|
1039
|
-
version: 1;
|
|
1040
1040
|
region?: string | undefined;
|
|
1041
1041
|
}, {
|
|
1042
|
+
version: 1;
|
|
1042
1043
|
anvil: {
|
|
1043
1044
|
enabled: boolean;
|
|
1044
1045
|
baseUrl: string | null;
|
|
1045
1046
|
apiKey: string | null;
|
|
1046
1047
|
};
|
|
1047
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
1048
1048
|
auth: {
|
|
1049
1049
|
providers: ("anvil" | "mojang")[];
|
|
1050
1050
|
};
|
|
1051
|
+
telemetry: boolean;
|
|
1052
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1051
1053
|
content: {
|
|
1052
1054
|
sources: ("anvil" | "modrinth")[];
|
|
1053
1055
|
};
|
|
1054
|
-
telemetry: boolean;
|
|
1055
1056
|
autoUpdate: boolean;
|
|
1056
|
-
version: 1;
|
|
1057
1057
|
region?: string | undefined;
|
|
1058
1058
|
}>, {
|
|
1059
|
+
version: 1;
|
|
1059
1060
|
anvil: {
|
|
1060
1061
|
enabled: boolean;
|
|
1061
1062
|
baseUrl: string | null;
|
|
1062
1063
|
apiKey: string | null;
|
|
1063
1064
|
};
|
|
1064
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
1065
1065
|
auth: {
|
|
1066
1066
|
providers: ("anvil" | "mojang")[];
|
|
1067
1067
|
};
|
|
1068
|
+
telemetry: boolean;
|
|
1069
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1068
1070
|
content: {
|
|
1069
1071
|
sources: ("anvil" | "modrinth")[];
|
|
1070
1072
|
};
|
|
1071
|
-
telemetry: boolean;
|
|
1072
1073
|
autoUpdate: boolean;
|
|
1073
|
-
version: 1;
|
|
1074
1074
|
region?: string | undefined;
|
|
1075
1075
|
}, {
|
|
1076
|
+
version: 1;
|
|
1076
1077
|
anvil: {
|
|
1077
1078
|
enabled: boolean;
|
|
1078
1079
|
baseUrl: string | null;
|
|
1079
1080
|
apiKey: string | null;
|
|
1080
1081
|
};
|
|
1081
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
1082
1082
|
auth: {
|
|
1083
1083
|
providers: ("anvil" | "mojang")[];
|
|
1084
1084
|
};
|
|
1085
|
+
telemetry: boolean;
|
|
1086
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1085
1087
|
content: {
|
|
1086
1088
|
sources: ("anvil" | "modrinth")[];
|
|
1087
1089
|
};
|
|
1088
|
-
telemetry: boolean;
|
|
1089
1090
|
autoUpdate: boolean;
|
|
1090
|
-
version: 1;
|
|
1091
1091
|
region?: string | undefined;
|
|
1092
1092
|
}>, {
|
|
1093
|
+
version: 1;
|
|
1093
1094
|
anvil: {
|
|
1094
1095
|
enabled: boolean;
|
|
1095
1096
|
baseUrl: string | null;
|
|
1096
1097
|
apiKey: string | null;
|
|
1097
1098
|
};
|
|
1098
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
1099
1099
|
auth: {
|
|
1100
1100
|
providers: ("anvil" | "mojang")[];
|
|
1101
1101
|
};
|
|
1102
|
+
telemetry: boolean;
|
|
1103
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1102
1104
|
content: {
|
|
1103
1105
|
sources: ("anvil" | "modrinth")[];
|
|
1104
1106
|
};
|
|
1105
|
-
telemetry: boolean;
|
|
1106
1107
|
autoUpdate: boolean;
|
|
1107
|
-
version: 1;
|
|
1108
1108
|
region?: string | undefined;
|
|
1109
1109
|
}, {
|
|
1110
|
+
version: 1;
|
|
1110
1111
|
anvil: {
|
|
1111
1112
|
enabled: boolean;
|
|
1112
1113
|
baseUrl: string | null;
|
|
1113
1114
|
apiKey: string | null;
|
|
1114
1115
|
};
|
|
1115
|
-
mode: "anvil" | "mojang" | "hybrid";
|
|
1116
1116
|
auth: {
|
|
1117
1117
|
providers: ("anvil" | "mojang")[];
|
|
1118
1118
|
};
|
|
1119
|
+
telemetry: boolean;
|
|
1120
|
+
mode: "anvil" | "mojang" | "hybrid";
|
|
1119
1121
|
content: {
|
|
1120
1122
|
sources: ("anvil" | "modrinth")[];
|
|
1121
1123
|
};
|
|
1122
|
-
telemetry: boolean;
|
|
1123
1124
|
autoUpdate: boolean;
|
|
1124
|
-
version: 1;
|
|
1125
1125
|
region?: string | undefined;
|
|
1126
1126
|
}>;
|
|
1127
1127
|
type LauncherConfig = z.infer<typeof LauncherConfigSchema>;
|
|
@@ -1205,13 +1205,13 @@ declare const TrustedHostSchema: z.ZodObject<{
|
|
|
1205
1205
|
domains: z.ZodArray<z.ZodString, "many">;
|
|
1206
1206
|
addedAt: z.ZodString;
|
|
1207
1207
|
}, "strip", z.ZodTypeAny, {
|
|
1208
|
-
id: string;
|
|
1209
1208
|
name: string;
|
|
1209
|
+
id: string;
|
|
1210
1210
|
domains: string[];
|
|
1211
1211
|
addedAt: string;
|
|
1212
1212
|
}, {
|
|
1213
|
-
id: string;
|
|
1214
1213
|
name: string;
|
|
1214
|
+
id: string;
|
|
1215
1215
|
domains: string[];
|
|
1216
1216
|
addedAt: string;
|
|
1217
1217
|
}>;
|
|
@@ -1291,8 +1291,8 @@ declare const CommunityRulesStatusSchema: z.ZodObject<{
|
|
|
1291
1291
|
}>, "many">;
|
|
1292
1292
|
updatedAt: z.ZodString;
|
|
1293
1293
|
}, "strip", z.ZodTypeAny, {
|
|
1294
|
-
updatedAt: string;
|
|
1295
1294
|
version: string;
|
|
1295
|
+
updatedAt: string;
|
|
1296
1296
|
accepted: boolean;
|
|
1297
1297
|
rules: {
|
|
1298
1298
|
locale: string;
|
|
@@ -1300,8 +1300,8 @@ declare const CommunityRulesStatusSchema: z.ZodObject<{
|
|
|
1300
1300
|
body: string;
|
|
1301
1301
|
}[];
|
|
1302
1302
|
}, {
|
|
1303
|
-
updatedAt: string;
|
|
1304
1303
|
version: string;
|
|
1304
|
+
updatedAt: string;
|
|
1305
1305
|
accepted: boolean;
|
|
1306
1306
|
rules: {
|
|
1307
1307
|
locale: string;
|
|
@@ -1463,12 +1463,12 @@ declare const ModrinthDonationLinkSchema: z.ZodObject<{
|
|
|
1463
1463
|
platform: z.ZodString;
|
|
1464
1464
|
url: z.ZodString;
|
|
1465
1465
|
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
url: string;
|
|
1467
1466
|
id: string;
|
|
1467
|
+
url: string;
|
|
1468
1468
|
platform: string;
|
|
1469
1469
|
}, {
|
|
1470
|
-
url: string;
|
|
1471
1470
|
id: string;
|
|
1471
|
+
url: string;
|
|
1472
1472
|
platform: string;
|
|
1473
1473
|
}>;
|
|
1474
1474
|
declare const ModrinthProjectSchema: z.ZodObject<{
|
|
@@ -1492,14 +1492,14 @@ declare const ModrinthProjectSchema: z.ZodObject<{
|
|
|
1492
1492
|
server_side: z.ZodEnum<["required", "optional", "unsupported"]>;
|
|
1493
1493
|
gallery: z.ZodArray<z.ZodString, "many">;
|
|
1494
1494
|
}, "strip", z.ZodTypeAny, {
|
|
1495
|
+
description: string;
|
|
1495
1496
|
slug: string;
|
|
1496
1497
|
downloads: number;
|
|
1497
1498
|
versions: string[];
|
|
1498
|
-
description: string;
|
|
1499
1499
|
license: string | null;
|
|
1500
1500
|
title: string;
|
|
1501
1501
|
project_id: string;
|
|
1502
|
-
project_type: "
|
|
1502
|
+
project_type: "world" | "mod" | "modpack" | "resourcepack" | "shader";
|
|
1503
1503
|
author: string;
|
|
1504
1504
|
categories: string[];
|
|
1505
1505
|
display_categories: string[];
|
|
@@ -1512,14 +1512,14 @@ declare const ModrinthProjectSchema: z.ZodObject<{
|
|
|
1512
1512
|
server_side: "required" | "optional" | "unsupported";
|
|
1513
1513
|
gallery: string[];
|
|
1514
1514
|
}, {
|
|
1515
|
+
description: string;
|
|
1515
1516
|
slug: string;
|
|
1516
1517
|
downloads: number;
|
|
1517
1518
|
versions: string[];
|
|
1518
|
-
description: string;
|
|
1519
1519
|
license: string | null;
|
|
1520
1520
|
title: string;
|
|
1521
1521
|
project_id: string;
|
|
1522
|
-
project_type: "
|
|
1522
|
+
project_type: "world" | "mod" | "modpack" | "resourcepack" | "shader";
|
|
1523
1523
|
author: string;
|
|
1524
1524
|
categories: string[];
|
|
1525
1525
|
display_categories: string[];
|
|
@@ -1555,14 +1555,14 @@ declare const ModrinthSearchResponseSchema: z.ZodObject<{
|
|
|
1555
1555
|
server_side: z.ZodEnum<["required", "optional", "unsupported"]>;
|
|
1556
1556
|
gallery: z.ZodArray<z.ZodString, "many">;
|
|
1557
1557
|
}, "strip", z.ZodTypeAny, {
|
|
1558
|
+
description: string;
|
|
1558
1559
|
slug: string;
|
|
1559
1560
|
downloads: number;
|
|
1560
1561
|
versions: string[];
|
|
1561
|
-
description: string;
|
|
1562
1562
|
license: string | null;
|
|
1563
1563
|
title: string;
|
|
1564
1564
|
project_id: string;
|
|
1565
|
-
project_type: "
|
|
1565
|
+
project_type: "world" | "mod" | "modpack" | "resourcepack" | "shader";
|
|
1566
1566
|
author: string;
|
|
1567
1567
|
categories: string[];
|
|
1568
1568
|
display_categories: string[];
|
|
@@ -1575,14 +1575,14 @@ declare const ModrinthSearchResponseSchema: z.ZodObject<{
|
|
|
1575
1575
|
server_side: "required" | "optional" | "unsupported";
|
|
1576
1576
|
gallery: string[];
|
|
1577
1577
|
}, {
|
|
1578
|
+
description: string;
|
|
1578
1579
|
slug: string;
|
|
1579
1580
|
downloads: number;
|
|
1580
1581
|
versions: string[];
|
|
1581
|
-
description: string;
|
|
1582
1582
|
license: string | null;
|
|
1583
1583
|
title: string;
|
|
1584
1584
|
project_id: string;
|
|
1585
|
-
project_type: "
|
|
1585
|
+
project_type: "world" | "mod" | "modpack" | "resourcepack" | "shader";
|
|
1586
1586
|
author: string;
|
|
1587
1587
|
categories: string[];
|
|
1588
1588
|
display_categories: string[];
|
|
@@ -1599,16 +1599,17 @@ declare const ModrinthSearchResponseSchema: z.ZodObject<{
|
|
|
1599
1599
|
limit: z.ZodNumber;
|
|
1600
1600
|
total_hits: z.ZodNumber;
|
|
1601
1601
|
}, "strip", z.ZodTypeAny, {
|
|
1602
|
+
limit: number;
|
|
1602
1603
|
offset: number;
|
|
1603
1604
|
hits: {
|
|
1605
|
+
description: string;
|
|
1604
1606
|
slug: string;
|
|
1605
1607
|
downloads: number;
|
|
1606
1608
|
versions: string[];
|
|
1607
|
-
description: string;
|
|
1608
1609
|
license: string | null;
|
|
1609
1610
|
title: string;
|
|
1610
1611
|
project_id: string;
|
|
1611
|
-
project_type: "
|
|
1612
|
+
project_type: "world" | "mod" | "modpack" | "resourcepack" | "shader";
|
|
1612
1613
|
author: string;
|
|
1613
1614
|
categories: string[];
|
|
1614
1615
|
display_categories: string[];
|
|
@@ -1621,19 +1622,19 @@ declare const ModrinthSearchResponseSchema: z.ZodObject<{
|
|
|
1621
1622
|
server_side: "required" | "optional" | "unsupported";
|
|
1622
1623
|
gallery: string[];
|
|
1623
1624
|
}[];
|
|
1624
|
-
limit: number;
|
|
1625
1625
|
total_hits: number;
|
|
1626
1626
|
}, {
|
|
1627
|
+
limit: number;
|
|
1627
1628
|
offset: number;
|
|
1628
1629
|
hits: {
|
|
1630
|
+
description: string;
|
|
1629
1631
|
slug: string;
|
|
1630
1632
|
downloads: number;
|
|
1631
1633
|
versions: string[];
|
|
1632
|
-
description: string;
|
|
1633
1634
|
license: string | null;
|
|
1634
1635
|
title: string;
|
|
1635
1636
|
project_id: string;
|
|
1636
|
-
project_type: "
|
|
1637
|
+
project_type: "world" | "mod" | "modpack" | "resourcepack" | "shader";
|
|
1637
1638
|
author: string;
|
|
1638
1639
|
categories: string[];
|
|
1639
1640
|
display_categories: string[];
|
|
@@ -1646,7 +1647,6 @@ declare const ModrinthSearchResponseSchema: z.ZodObject<{
|
|
|
1646
1647
|
server_side: "required" | "optional" | "unsupported";
|
|
1647
1648
|
gallery: string[];
|
|
1648
1649
|
}[];
|
|
1649
|
-
limit: number;
|
|
1650
1650
|
total_hits: number;
|
|
1651
1651
|
}>;
|
|
1652
1652
|
type ModrinthSearchResponse = z.infer<typeof ModrinthSearchResponseSchema>;
|
|
@@ -1658,16 +1658,16 @@ declare const ModrinthSearchInputSchema: z.ZodObject<{
|
|
|
1658
1658
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1659
1659
|
filters: z.ZodOptional<z.ZodString>;
|
|
1660
1660
|
}, "strip", z.ZodTypeAny, {
|
|
1661
|
-
offset: number;
|
|
1662
1661
|
limit: number;
|
|
1662
|
+
offset: number;
|
|
1663
1663
|
index: "downloads" | "follows" | "relevance" | "newest" | "updated";
|
|
1664
1664
|
query?: string | undefined;
|
|
1665
1665
|
facets?: string[] | undefined;
|
|
1666
1666
|
filters?: string | undefined;
|
|
1667
1667
|
}, {
|
|
1668
|
-
offset?: number | undefined;
|
|
1669
|
-
limit?: number | undefined;
|
|
1670
1668
|
query?: string | undefined;
|
|
1669
|
+
limit?: number | undefined;
|
|
1670
|
+
offset?: number | undefined;
|
|
1671
1671
|
facets?: string[] | undefined;
|
|
1672
1672
|
index?: "downloads" | "follows" | "relevance" | "newest" | "updated" | undefined;
|
|
1673
1673
|
filters?: string | undefined;
|
|
@@ -1695,18 +1695,18 @@ declare const CosmeticSchema: z.ZodObject<{
|
|
|
1695
1695
|
equipped: z.ZodDefault<z.ZodBoolean>;
|
|
1696
1696
|
}, "strip", z.ZodTypeAny, {
|
|
1697
1697
|
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1698
|
-
id: string;
|
|
1699
1698
|
name: Record<string, string>;
|
|
1699
|
+
id: string;
|
|
1700
1700
|
iconUrl: string | null;
|
|
1701
|
+
owned: boolean;
|
|
1701
1702
|
rarity: "common" | "uncommon" | "rare" | "epic" | "legendary";
|
|
1702
1703
|
modelUrl: string | null;
|
|
1703
|
-
owned: boolean;
|
|
1704
1704
|
equipped: boolean;
|
|
1705
1705
|
description?: Record<string, string> | undefined;
|
|
1706
1706
|
}, {
|
|
1707
1707
|
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
1708
|
-
id: string;
|
|
1709
1708
|
name: Record<string, string>;
|
|
1709
|
+
id: string;
|
|
1710
1710
|
iconUrl: string | null;
|
|
1711
1711
|
rarity: "common" | "uncommon" | "rare" | "epic" | "legendary";
|
|
1712
1712
|
modelUrl: string | null;
|
|
@@ -1742,8 +1742,8 @@ declare const OutfitSchema: z.ZodObject<{
|
|
|
1742
1742
|
createdAt: z.ZodString;
|
|
1743
1743
|
updatedAt: z.ZodString;
|
|
1744
1744
|
}, "strip", z.ZodTypeAny, {
|
|
1745
|
-
id: string;
|
|
1746
1745
|
name: string;
|
|
1746
|
+
id: string;
|
|
1747
1747
|
updatedAt: string;
|
|
1748
1748
|
slots: {
|
|
1749
1749
|
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
@@ -1751,8 +1751,8 @@ declare const OutfitSchema: z.ZodObject<{
|
|
|
1751
1751
|
}[];
|
|
1752
1752
|
createdAt: string;
|
|
1753
1753
|
}, {
|
|
1754
|
-
id: string;
|
|
1755
1754
|
name: string;
|
|
1755
|
+
id: string;
|
|
1756
1756
|
updatedAt: string;
|
|
1757
1757
|
slots: {
|
|
1758
1758
|
type: "body" | "hat" | "back" | "face" | "hand" | "feet" | "particle" | "emote";
|
|
@@ -1787,16 +1787,16 @@ declare const EmoteWheelSchema: z.ZodObject<{
|
|
|
1787
1787
|
}>, "many">;
|
|
1788
1788
|
createdAt: z.ZodString;
|
|
1789
1789
|
}, "strip", z.ZodTypeAny, {
|
|
1790
|
-
id: string;
|
|
1791
1790
|
name: string;
|
|
1791
|
+
id: string;
|
|
1792
1792
|
slots: {
|
|
1793
1793
|
position: number;
|
|
1794
1794
|
emoteId: string | null;
|
|
1795
1795
|
}[];
|
|
1796
1796
|
createdAt: string;
|
|
1797
1797
|
}, {
|
|
1798
|
-
id: string;
|
|
1799
1798
|
name: string;
|
|
1799
|
+
id: string;
|
|
1800
1800
|
slots: {
|
|
1801
1801
|
position: number;
|
|
1802
1802
|
emoteId: string | null;
|
|
@@ -1817,9 +1817,9 @@ declare const SkinSchema: z.ZodObject<{
|
|
|
1817
1817
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
1818
1818
|
createdAt: z.ZodString;
|
|
1819
1819
|
}, "strip", z.ZodTypeAny, {
|
|
1820
|
-
id: string;
|
|
1821
|
-
name: string;
|
|
1822
1820
|
source: "mojang" | "uploaded";
|
|
1821
|
+
name: string;
|
|
1822
|
+
id: string;
|
|
1823
1823
|
sha256: string;
|
|
1824
1824
|
sizeBytes: number;
|
|
1825
1825
|
active: boolean;
|
|
@@ -1827,9 +1827,9 @@ declare const SkinSchema: z.ZodObject<{
|
|
|
1827
1827
|
variant: "classic" | "slim";
|
|
1828
1828
|
textureUrl: string;
|
|
1829
1829
|
}, {
|
|
1830
|
-
id: string;
|
|
1831
|
-
name: string;
|
|
1832
1830
|
source: "mojang" | "uploaded";
|
|
1831
|
+
name: string;
|
|
1832
|
+
id: string;
|
|
1833
1833
|
sha256: string;
|
|
1834
1834
|
sizeBytes: number;
|
|
1835
1835
|
createdAt: string;
|
|
@@ -1926,15 +1926,15 @@ declare const SaveEmoteWheelInputSchema: z.ZodObject<{
|
|
|
1926
1926
|
emoteId: string | null;
|
|
1927
1927
|
}>, "many">;
|
|
1928
1928
|
}, "strip", z.ZodTypeAny, {
|
|
1929
|
-
id: string | null;
|
|
1930
1929
|
name: string;
|
|
1930
|
+
id: string | null;
|
|
1931
1931
|
slots: {
|
|
1932
1932
|
position: number;
|
|
1933
1933
|
emoteId: string | null;
|
|
1934
1934
|
}[];
|
|
1935
1935
|
}, {
|
|
1936
|
-
id: string | null;
|
|
1937
1936
|
name: string;
|
|
1937
|
+
id: string | null;
|
|
1938
1938
|
slots: {
|
|
1939
1939
|
position: number;
|
|
1940
1940
|
emoteId: string | null;
|
|
@@ -1996,7 +1996,7 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
1996
1996
|
lastReadAt: z.ZodNullable<z.ZodString>;
|
|
1997
1997
|
muted: z.ZodDefault<z.ZodBoolean>;
|
|
1998
1998
|
}, "strip", z.ZodTypeAny, {
|
|
1999
|
-
role: "
|
|
1999
|
+
role: "admin" | "owner" | "member";
|
|
2000
2000
|
user: {
|
|
2001
2001
|
email: string;
|
|
2002
2002
|
uuid: string;
|
|
@@ -2009,7 +2009,7 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
2009
2009
|
lastReadAt: string | null;
|
|
2010
2010
|
muted: boolean;
|
|
2011
2011
|
}, {
|
|
2012
|
-
role: "
|
|
2012
|
+
role: "admin" | "owner" | "member";
|
|
2013
2013
|
user: {
|
|
2014
2014
|
email: string;
|
|
2015
2015
|
uuid: string;
|
|
@@ -2055,7 +2055,7 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
2055
2055
|
lastReadAt: z.ZodNullable<z.ZodString>;
|
|
2056
2056
|
muted: z.ZodDefault<z.ZodBoolean>;
|
|
2057
2057
|
}, "strip", z.ZodTypeAny, {
|
|
2058
|
-
role: "
|
|
2058
|
+
role: "admin" | "owner" | "member";
|
|
2059
2059
|
user: {
|
|
2060
2060
|
email: string;
|
|
2061
2061
|
uuid: string;
|
|
@@ -2068,7 +2068,7 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
2068
2068
|
lastReadAt: string | null;
|
|
2069
2069
|
muted: boolean;
|
|
2070
2070
|
}, {
|
|
2071
|
-
role: "
|
|
2071
|
+
role: "admin" | "owner" | "member";
|
|
2072
2072
|
user: {
|
|
2073
2073
|
email: string;
|
|
2074
2074
|
uuid: string;
|
|
@@ -2085,12 +2085,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
2085
2085
|
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
2086
2086
|
unreadCount: z.ZodDefault<z.ZodNumber>;
|
|
2087
2087
|
}, "strip", z.ZodTypeAny, {
|
|
2088
|
-
id: string;
|
|
2089
|
-
name: string | null;
|
|
2090
2088
|
kind: "DM" | "GROUP" | "ANNOUNCEMENT";
|
|
2089
|
+
name: string | null;
|
|
2090
|
+
id: string;
|
|
2091
2091
|
createdAt: string;
|
|
2092
2092
|
members: {
|
|
2093
|
-
role: "
|
|
2093
|
+
role: "admin" | "owner" | "member";
|
|
2094
2094
|
user: {
|
|
2095
2095
|
email: string;
|
|
2096
2096
|
uuid: string;
|
|
@@ -2106,12 +2106,12 @@ declare const ChannelSchema: z.ZodObject<{
|
|
|
2106
2106
|
lastMessageAt: string | null;
|
|
2107
2107
|
unreadCount: number;
|
|
2108
2108
|
}, {
|
|
2109
|
-
id: string;
|
|
2110
|
-
name: string | null;
|
|
2111
2109
|
kind: "DM" | "GROUP" | "ANNOUNCEMENT";
|
|
2110
|
+
name: string | null;
|
|
2111
|
+
id: string;
|
|
2112
2112
|
createdAt: string;
|
|
2113
2113
|
members: {
|
|
2114
|
-
role: "
|
|
2114
|
+
role: "admin" | "owner" | "member";
|
|
2115
2115
|
user: {
|
|
2116
2116
|
email: string;
|
|
2117
2117
|
uuid: string;
|
|
@@ -2292,22 +2292,22 @@ declare const MediaItemSchema: z.ZodObject<{
|
|
|
2292
2292
|
durationSec: z.ZodOptional<z.ZodNumber>;
|
|
2293
2293
|
createdAt: z.ZodString;
|
|
2294
2294
|
}, "strip", z.ZodTypeAny, {
|
|
2295
|
-
|
|
2295
|
+
kind: "skin" | "screenshot" | "video" | "world";
|
|
2296
2296
|
id: string;
|
|
2297
|
+
url: string;
|
|
2297
2298
|
sha256: string;
|
|
2298
2299
|
sizeBytes: number;
|
|
2299
|
-
kind: "world" | "screenshot" | "video" | "skin";
|
|
2300
2300
|
createdAt: string;
|
|
2301
2301
|
thumbnailUrl: string | null;
|
|
2302
2302
|
width?: number | undefined;
|
|
2303
2303
|
height?: number | undefined;
|
|
2304
2304
|
durationSec?: number | undefined;
|
|
2305
2305
|
}, {
|
|
2306
|
-
|
|
2306
|
+
kind: "skin" | "screenshot" | "video" | "world";
|
|
2307
2307
|
id: string;
|
|
2308
|
+
url: string;
|
|
2308
2309
|
sha256: string;
|
|
2309
2310
|
sizeBytes: number;
|
|
2310
|
-
kind: "world" | "screenshot" | "video" | "skin";
|
|
2311
2311
|
createdAt: string;
|
|
2312
2312
|
thumbnailUrl: string | null;
|
|
2313
2313
|
width?: number | undefined;
|
|
@@ -2320,13 +2320,13 @@ declare const ListMediaInputSchema: z.ZodObject<{
|
|
|
2320
2320
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2321
2321
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
2322
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2323
|
-
offset: number;
|
|
2324
2323
|
limit: number;
|
|
2325
|
-
|
|
2324
|
+
offset: number;
|
|
2325
|
+
kind?: "skin" | "screenshot" | "video" | "world" | undefined;
|
|
2326
2326
|
}, {
|
|
2327
|
-
|
|
2328
|
-
kind?: "world" | "screenshot" | "video" | "skin" | undefined;
|
|
2327
|
+
kind?: "skin" | "screenshot" | "video" | "world" | undefined;
|
|
2329
2328
|
limit?: number | undefined;
|
|
2329
|
+
offset?: number | undefined;
|
|
2330
2330
|
}>;
|
|
2331
2331
|
type ListMediaInput = z.infer<typeof ListMediaInputSchema>;
|
|
2332
2332
|
declare const UploadMediaInputSchema: z.ZodObject<{
|
|
@@ -2336,13 +2336,13 @@ declare const UploadMediaInputSchema: z.ZodObject<{
|
|
|
2336
2336
|
width: z.ZodOptional<z.ZodNumber>;
|
|
2337
2337
|
height: z.ZodOptional<z.ZodNumber>;
|
|
2338
2338
|
}, "strip", z.ZodTypeAny, {
|
|
2339
|
-
kind: "
|
|
2339
|
+
kind: "skin" | "screenshot" | "video" | "world";
|
|
2340
2340
|
data: string;
|
|
2341
2341
|
filename: string;
|
|
2342
2342
|
width?: number | undefined;
|
|
2343
2343
|
height?: number | undefined;
|
|
2344
2344
|
}, {
|
|
2345
|
-
kind: "
|
|
2345
|
+
kind: "skin" | "screenshot" | "video" | "world";
|
|
2346
2346
|
data: string;
|
|
2347
2347
|
filename: string;
|
|
2348
2348
|
width?: number | undefined;
|
|
@@ -2367,15 +2367,15 @@ declare const SignalingMessageSchema: z.ZodObject<{
|
|
|
2367
2367
|
payload: z.ZodString;
|
|
2368
2368
|
createdAt: z.ZodString;
|
|
2369
2369
|
}, "strip", z.ZodTypeAny, {
|
|
2370
|
-
id: string;
|
|
2371
2370
|
kind: "offer" | "answer" | "candidate";
|
|
2371
|
+
id: string;
|
|
2372
2372
|
fromUuid: string;
|
|
2373
2373
|
toUuid: string;
|
|
2374
2374
|
createdAt: string;
|
|
2375
2375
|
payload: string;
|
|
2376
2376
|
}, {
|
|
2377
|
-
id: string;
|
|
2378
2377
|
kind: "offer" | "answer" | "candidate";
|
|
2378
|
+
id: string;
|
|
2379
2379
|
fromUuid: string;
|
|
2380
2380
|
toUuid: string;
|
|
2381
2381
|
createdAt: string;
|
|
@@ -2421,7 +2421,7 @@ declare const UpnpSessionSchema: z.ZodObject<{
|
|
|
2421
2421
|
closedAt: z.ZodNullable<z.ZodString>;
|
|
2422
2422
|
invitedUuids: z.ZodArray<z.ZodString, "many">;
|
|
2423
2423
|
}, "strip", z.ZodTypeAny, {
|
|
2424
|
-
status: "
|
|
2424
|
+
status: "pending" | "error" | "active" | "closed";
|
|
2425
2425
|
id: string;
|
|
2426
2426
|
createdAt: string;
|
|
2427
2427
|
ownerUuid: string;
|
|
@@ -2433,7 +2433,7 @@ declare const UpnpSessionSchema: z.ZodObject<{
|
|
|
2433
2433
|
closedAt: string | null;
|
|
2434
2434
|
invitedUuids: string[];
|
|
2435
2435
|
}, {
|
|
2436
|
-
status: "
|
|
2436
|
+
status: "pending" | "error" | "active" | "closed";
|
|
2437
2437
|
id: string;
|
|
2438
2438
|
createdAt: string;
|
|
2439
2439
|
ownerUuid: string;
|
|
@@ -2480,22 +2480,22 @@ declare const KnownServerSchema: z.ZodObject<{
|
|
|
2480
2480
|
pingMs: z.ZodNullable<z.ZodNumber>;
|
|
2481
2481
|
source: z.ZodEnum<["anvil", "community"]>;
|
|
2482
2482
|
}, "strip", z.ZodTypeAny, {
|
|
2483
|
-
|
|
2483
|
+
version: string | null;
|
|
2484
|
+
source: "anvil" | "community";
|
|
2484
2485
|
name: string;
|
|
2486
|
+
id: string;
|
|
2485
2487
|
iconUrl: string | null;
|
|
2486
|
-
source: "anvil" | "community";
|
|
2487
|
-
version: string | null;
|
|
2488
2488
|
address: string;
|
|
2489
2489
|
playerCount: number | null;
|
|
2490
2490
|
maxPlayers: number | null;
|
|
2491
2491
|
pingMs: number | null;
|
|
2492
2492
|
description?: string | undefined;
|
|
2493
2493
|
}, {
|
|
2494
|
-
|
|
2494
|
+
version: string | null;
|
|
2495
|
+
source: "anvil" | "community";
|
|
2495
2496
|
name: string;
|
|
2497
|
+
id: string;
|
|
2496
2498
|
iconUrl: string | null;
|
|
2497
|
-
source: "anvil" | "community";
|
|
2498
|
-
version: string | null;
|
|
2499
2499
|
address: string;
|
|
2500
2500
|
playerCount: number | null;
|
|
2501
2501
|
maxPlayers: number | null;
|
|
@@ -2529,22 +2529,22 @@ declare const InstalledInstanceSchema: z.ZodObject<{
|
|
|
2529
2529
|
installedAt: z.ZodString;
|
|
2530
2530
|
}, "strip", z.ZodTypeAny, {
|
|
2531
2531
|
path: string;
|
|
2532
|
-
id: string;
|
|
2533
2532
|
name: string;
|
|
2534
|
-
|
|
2533
|
+
id: string;
|
|
2535
2534
|
mcVersion: string;
|
|
2536
2535
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
2537
2536
|
loaderVersion: string;
|
|
2537
|
+
sizeBytes: number;
|
|
2538
2538
|
lastPlayedAt: string | null;
|
|
2539
2539
|
installedAt: string;
|
|
2540
2540
|
}, {
|
|
2541
2541
|
path: string;
|
|
2542
|
-
id: string;
|
|
2543
2542
|
name: string;
|
|
2544
|
-
|
|
2543
|
+
id: string;
|
|
2545
2544
|
mcVersion: string;
|
|
2546
2545
|
loader: "vanilla" | "fabric" | "forge" | "neoforge" | "quilt";
|
|
2547
2546
|
loaderVersion: string;
|
|
2547
|
+
sizeBytes: number;
|
|
2548
2548
|
lastPlayedAt: string | null;
|
|
2549
2549
|
installedAt: string;
|
|
2550
2550
|
}>;
|