@wynnjs/api 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/dist/index.cjs +1804 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2862 -0
- package/dist/index.d.ts +2862 -0
- package/dist/index.js +1699 -0
- package/dist/index.js.map +1 -0
- package/package.json +76 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2862 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Authentication credentials for endpoints that require a logged-in user.
|
|
6
|
+
*
|
|
7
|
+
* - `token` — API token issued from the Wynncraft developer portal
|
|
8
|
+
* - `oauth` — OAuth2 access token
|
|
9
|
+
* - `session` — browser session cookie (e.g. `PHPSESSID=...`)
|
|
10
|
+
*/
|
|
11
|
+
type WynnAuth = {
|
|
12
|
+
type: "token"; /** API token from the Wynncraft developer portal. */
|
|
13
|
+
token: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "oauth"; /** OAuth2 access token from an authorization flow. */
|
|
16
|
+
accessToken: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: "session"; /** Full session cookie header value. */
|
|
19
|
+
cookie: string;
|
|
20
|
+
};
|
|
21
|
+
/** Options for constructing a {@link WynnClient}. */
|
|
22
|
+
type WynnClientOptions = {
|
|
23
|
+
/** Override the default {@link API_BASE_URL}. */
|
|
24
|
+
baseUrl?: string;
|
|
25
|
+
/** Credentials for authenticated endpoints. */
|
|
26
|
+
auth?: WynnAuth;
|
|
27
|
+
/** Inject a custom Axios instance (useful for testing). */
|
|
28
|
+
http?: AxiosInstance;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
declare const MultipleObjectsEntrySchema: z.ZodObject<{
|
|
32
|
+
username: z.ZodOptional<z.ZodString>;
|
|
33
|
+
name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
35
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
36
|
+
rank: z.ZodOptional<z.ZodString>;
|
|
37
|
+
supportRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
shortenedRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
legacyRankColour: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
main: z.ZodString;
|
|
41
|
+
sub: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
rankBadge: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
type MultipleObjectsEntry = z.infer<typeof MultipleObjectsEntrySchema>;
|
|
46
|
+
declare const MultipleObjectsMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
47
|
+
username: z.ZodOptional<z.ZodString>;
|
|
48
|
+
name: z.ZodOptional<z.ZodString>;
|
|
49
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
50
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
51
|
+
rank: z.ZodOptional<z.ZodString>;
|
|
52
|
+
supportRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
shortenedRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
legacyRankColour: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
main: z.ZodString;
|
|
56
|
+
sub: z.ZodString;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
rankBadge: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$loose>>;
|
|
60
|
+
type MultipleObjectsMap = z.infer<typeof MultipleObjectsMapSchema>;
|
|
61
|
+
declare const MultipleObjectsReturnedBodySchema: z.ZodObject<{
|
|
62
|
+
error: z.ZodLiteral<"MultipleObjectsReturned">;
|
|
63
|
+
detail: z.ZodString;
|
|
64
|
+
code: z.ZodLiteral<300>;
|
|
65
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
66
|
+
objects: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
|
+
username: z.ZodOptional<z.ZodString>;
|
|
68
|
+
name: z.ZodOptional<z.ZodString>;
|
|
69
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
70
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
71
|
+
rank: z.ZodOptional<z.ZodString>;
|
|
72
|
+
supportRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
shortenedRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
legacyRankColour: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
main: z.ZodString;
|
|
76
|
+
sub: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
rankBadge: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$loose>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
type MultipleObjectsReturnedBody = z.infer<typeof MultipleObjectsReturnedBodySchema>;
|
|
82
|
+
|
|
83
|
+
/** JSON error body returned by the Wynncraft API. */
|
|
84
|
+
declare const WynnApiErrorBodySchema: z.ZodObject<{
|
|
85
|
+
error: z.ZodString;
|
|
86
|
+
detail: z.ZodString;
|
|
87
|
+
code: z.ZodNumber;
|
|
88
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
89
|
+
objects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
90
|
+
username: z.ZodOptional<z.ZodString>;
|
|
91
|
+
name: z.ZodOptional<z.ZodString>;
|
|
92
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
93
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
94
|
+
rank: z.ZodOptional<z.ZodString>;
|
|
95
|
+
supportRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
shortenedRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
legacyRankColour: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
main: z.ZodString;
|
|
99
|
+
sub: z.ZodString;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
rankBadge: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$loose>>>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
type WynnApiErrorBody = z.infer<typeof WynnApiErrorBodySchema>;
|
|
105
|
+
type WynnErrorSubclass = new (body: WynnApiErrorBody, status: number) => WynnApiError;
|
|
106
|
+
declare class MultipleObjectsReturnedError extends WynnApiError {
|
|
107
|
+
readonly name = "MultipleObjectsReturned";
|
|
108
|
+
readonly objects: MultipleObjectsMap;
|
|
109
|
+
constructor(body: WynnApiErrorBody & {
|
|
110
|
+
objects: MultipleObjectsMap;
|
|
111
|
+
}, status: number);
|
|
112
|
+
}
|
|
113
|
+
type MultipleObjectsReturnedConstructor = new (body: WynnApiErrorBody & {
|
|
114
|
+
objects: MultipleObjectsMap;
|
|
115
|
+
}, status: number) => MultipleObjectsReturnedError;
|
|
116
|
+
/**
|
|
117
|
+
* Base error thrown for Wynncraft API error responses.
|
|
118
|
+
*
|
|
119
|
+
* Use `instanceof` checks against {@link WynnApiError.NotFound},
|
|
120
|
+
* {@link WynnApiError.Forbidden}, and other subclasses for typed handling.
|
|
121
|
+
*/
|
|
122
|
+
declare class WynnApiError extends Error {
|
|
123
|
+
readonly name: string;
|
|
124
|
+
/** Machine-readable error name from the API, e.g. `NotFound`. */
|
|
125
|
+
readonly error: string;
|
|
126
|
+
/** Human-readable error message from the API. */
|
|
127
|
+
readonly detail: string;
|
|
128
|
+
/** Wynncraft error code. */
|
|
129
|
+
readonly code: number;
|
|
130
|
+
/** Optional identifier for the resource that caused the error. */
|
|
131
|
+
readonly identifier?: string;
|
|
132
|
+
/** Present on {@link WynnApiError.MultipleObjectsReturned} errors. */
|
|
133
|
+
readonly objects?: MultipleObjectsMap;
|
|
134
|
+
/** HTTP status code from the response. */
|
|
135
|
+
readonly status: number;
|
|
136
|
+
/**
|
|
137
|
+
* @param body - Parsed Wynncraft error response body.
|
|
138
|
+
* @param status - HTTP status code from the response.
|
|
139
|
+
*/
|
|
140
|
+
constructor(body: WynnApiErrorBody, status: number);
|
|
141
|
+
}
|
|
142
|
+
/** Typed subclasses for known Wynncraft API error names. */
|
|
143
|
+
declare namespace WynnApiError {
|
|
144
|
+
const MultipleObjectsReturned: MultipleObjectsReturnedConstructor;
|
|
145
|
+
const InvalidFormError: WynnErrorSubclass;
|
|
146
|
+
const InvalidQueryParamsError: WynnErrorSubclass;
|
|
147
|
+
const MalformedPayload: WynnErrorSubclass;
|
|
148
|
+
const MalformedTokenError: WynnErrorSubclass;
|
|
149
|
+
const CSRFError: WynnErrorSubclass;
|
|
150
|
+
const InvalidTokenError: WynnErrorSubclass;
|
|
151
|
+
const PaginationError: WynnErrorSubclass;
|
|
152
|
+
const Forbidden: WynnErrorSubclass;
|
|
153
|
+
const NotFound: WynnErrorSubclass;
|
|
154
|
+
const MethodNotAllowed: WynnErrorSubclass;
|
|
155
|
+
const TooManyRequest: WynnErrorSubclass;
|
|
156
|
+
const InternalError: WynnErrorSubclass;
|
|
157
|
+
const InvalidCharacterUUID: WynnErrorSubclass;
|
|
158
|
+
const NoCharacterFound: WynnErrorSubclass;
|
|
159
|
+
const MalformedPrefixError: WynnErrorSubclass;
|
|
160
|
+
const InvalidTree: WynnErrorSubclass;
|
|
161
|
+
}
|
|
162
|
+
declare const WYNN_ERROR_REGISTRY: Record<string, WynnErrorSubclass | MultipleObjectsReturnedConstructor>;
|
|
163
|
+
/** Union of all registered Wynncraft error names. */
|
|
164
|
+
type WynnErrorName = keyof typeof WYNN_ERROR_REGISTRY;
|
|
165
|
+
/** Instance type for a known Wynncraft API error subclass. */
|
|
166
|
+
type KnownWynnApiError = InstanceType<(typeof WYNN_ERROR_REGISTRY)[WynnErrorName]>;
|
|
167
|
+
|
|
168
|
+
/** Parsed Wynncraft rate-limit headers from a response. */
|
|
169
|
+
type RateLimitInfo = {
|
|
170
|
+
bucket: string;
|
|
171
|
+
limit: number;
|
|
172
|
+
remaining: number;
|
|
173
|
+
/** Unix timestamp when the bucket resets. */
|
|
174
|
+
reset: number;
|
|
175
|
+
};
|
|
176
|
+
/** Successful API response with parsed rate-limit metadata. */
|
|
177
|
+
type WynnResponse<T> = {
|
|
178
|
+
data: T;
|
|
179
|
+
rateLimit: RateLimitInfo | null;
|
|
180
|
+
};
|
|
181
|
+
/** Wynncraft request shape: axios fields plus route path and presence-only query flags. */
|
|
182
|
+
type RequestConfig<D = unknown> = Pick<AxiosRequestConfig<D>, "method" | "data" | "headers" | "params"> & {
|
|
183
|
+
/** API route path, e.g. `/player/foo`. */
|
|
184
|
+
path: string;
|
|
185
|
+
/**
|
|
186
|
+
* Query flags sent without values, e.g. `?fullResult`.
|
|
187
|
+
* Wynncraft uses these for optional response expansions.
|
|
188
|
+
*/
|
|
189
|
+
presenceParams?: string[];
|
|
190
|
+
};
|
|
191
|
+
/** Minimal HTTP surface used by API modules. */
|
|
192
|
+
interface WynnHttpClient {
|
|
193
|
+
request<T>(config: RequestConfig): Promise<WynnResponse<T>>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
declare const ClassTreeSchema: z.ZodEnum<{
|
|
197
|
+
archer: "archer";
|
|
198
|
+
warrior: "warrior";
|
|
199
|
+
assassin: "assassin";
|
|
200
|
+
mage: "mage";
|
|
201
|
+
shaman: "shaman";
|
|
202
|
+
}>;
|
|
203
|
+
type ClassTree = z.infer<typeof ClassTreeSchema>;
|
|
204
|
+
|
|
205
|
+
declare const GetAbilityMapResultSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
206
|
+
type: z.ZodEnum<{
|
|
207
|
+
ability: "ability";
|
|
208
|
+
connector: "connector";
|
|
209
|
+
}>;
|
|
210
|
+
coordinates: z.ZodObject<{
|
|
211
|
+
x: z.ZodNumber;
|
|
212
|
+
y: z.ZodNumber;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
meta: z.ZodObject<{
|
|
215
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
216
|
+
name: z.ZodOptional<z.ZodString>;
|
|
217
|
+
value: z.ZodObject<{
|
|
218
|
+
id: z.ZodString;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
customModelData: z.ZodObject<{
|
|
221
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
format: z.ZodString;
|
|
225
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
226
|
+
page: z.ZodNumber;
|
|
227
|
+
id: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
family: z.ZodArray<z.ZodString>;
|
|
230
|
+
}, z.core.$strip>>>;
|
|
231
|
+
type GetAbilityMapResult = z.infer<typeof GetAbilityMapResultSchema>;
|
|
232
|
+
|
|
233
|
+
declare const GetAbilityTreeResultSchema: z.ZodObject<{
|
|
234
|
+
archetypes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
description: z.ZodString;
|
|
237
|
+
shortDescription: z.ZodString;
|
|
238
|
+
icon: z.ZodObject<{
|
|
239
|
+
name: z.ZodOptional<z.ZodString>;
|
|
240
|
+
value: z.ZodObject<{
|
|
241
|
+
id: z.ZodString;
|
|
242
|
+
name: z.ZodString;
|
|
243
|
+
customModelData: z.ZodObject<{
|
|
244
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
format: z.ZodString;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
slot: z.ZodNumber;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
pages: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
252
|
+
name: z.ZodString;
|
|
253
|
+
icon: z.ZodObject<{
|
|
254
|
+
name: z.ZodOptional<z.ZodString>;
|
|
255
|
+
value: z.ZodObject<{
|
|
256
|
+
id: z.ZodString;
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
customModelData: z.ZodObject<{
|
|
259
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
format: z.ZodString;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
slot: z.ZodNumber;
|
|
265
|
+
coordinates: z.ZodObject<{
|
|
266
|
+
x: z.ZodNumber;
|
|
267
|
+
y: z.ZodNumber;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
description: z.ZodArray<z.ZodString>;
|
|
270
|
+
requirements: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
271
|
+
links: z.ZodArray<z.ZodString>;
|
|
272
|
+
locks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
273
|
+
page: z.ZodNumber;
|
|
274
|
+
}, z.core.$strip>>>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
type GetAbilityTreeResult = z.infer<typeof GetAbilityTreeResultSchema>;
|
|
277
|
+
|
|
278
|
+
declare const ListAspectsResultSchema: z.ZodArray<z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
internalName: z.ZodString;
|
|
281
|
+
icon: z.ZodObject<{
|
|
282
|
+
name: z.ZodOptional<z.ZodString>;
|
|
283
|
+
value: z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
name: z.ZodString;
|
|
286
|
+
customModelData: z.ZodObject<{
|
|
287
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
format: z.ZodString;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
rarity: z.ZodString;
|
|
293
|
+
requiredClass: z.ZodString;
|
|
294
|
+
tiers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
295
|
+
threshold: z.ZodNumber;
|
|
296
|
+
description: z.ZodArray<z.ZodString>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
type ListAspectsResult = z.infer<typeof ListAspectsResultSchema>;
|
|
300
|
+
|
|
301
|
+
/** Ability trees, maps, and aspects. */
|
|
302
|
+
declare class AbilityModule {
|
|
303
|
+
private readonly client;
|
|
304
|
+
constructor(client: WynnHttpClient);
|
|
305
|
+
/**
|
|
306
|
+
* Fetch the ability tree layout for a class.
|
|
307
|
+
*
|
|
308
|
+
* @param tree - Class tree: `archer`, `warrior`, `assassin`, `mage`, or `shaman`.
|
|
309
|
+
* @returns Ability tree nodes and connections.
|
|
310
|
+
*/
|
|
311
|
+
getTree(tree: ClassTree): Promise<WynnResponse<GetAbilityTreeResult>>;
|
|
312
|
+
/**
|
|
313
|
+
* Fetch the ability map for a class.
|
|
314
|
+
*
|
|
315
|
+
* @param tree - Class tree: `archer`, `warrior`, `assassin`, `mage`, or `shaman`.
|
|
316
|
+
* @returns Ability map keyed by page.
|
|
317
|
+
*/
|
|
318
|
+
getMap(tree: ClassTree): Promise<WynnResponse<GetAbilityMapResult>>;
|
|
319
|
+
/**
|
|
320
|
+
* List all aspects for a class tree.
|
|
321
|
+
*
|
|
322
|
+
* @param tree - Class tree: `archer`, `warrior`, `assassin`, `mage`, or `shaman`.
|
|
323
|
+
* @returns Aspect definitions for the given tree.
|
|
324
|
+
*/
|
|
325
|
+
listAspects(tree: ClassTree): Promise<WynnResponse<ListAspectsResult>>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare const ClassNameSchema: z.ZodEnum<{
|
|
329
|
+
archer: "archer";
|
|
330
|
+
warrior: "warrior";
|
|
331
|
+
assassin: "assassin";
|
|
332
|
+
mage: "mage";
|
|
333
|
+
shaman: "shaman";
|
|
334
|
+
}>;
|
|
335
|
+
type ClassName = z.infer<typeof ClassNameSchema>;
|
|
336
|
+
declare const GetClassResultSchema: z.ZodObject<{
|
|
337
|
+
id: z.ZodString;
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
lore: z.ZodString;
|
|
340
|
+
overallDifficulty: z.ZodNumber;
|
|
341
|
+
overallMax: z.ZodNumber;
|
|
342
|
+
archetypes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
343
|
+
name: z.ZodString;
|
|
344
|
+
difficulty: z.ZodNumber;
|
|
345
|
+
max: z.ZodNumber;
|
|
346
|
+
icon: z.ZodString;
|
|
347
|
+
damage: z.ZodNumber;
|
|
348
|
+
defence: z.ZodNumber;
|
|
349
|
+
range: z.ZodNumber;
|
|
350
|
+
speed: z.ZodNumber;
|
|
351
|
+
}, z.core.$strip>>;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
type GetClassResult = z.infer<typeof GetClassResultSchema>;
|
|
354
|
+
|
|
355
|
+
declare const ListClassesResultSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
356
|
+
name: z.ZodString;
|
|
357
|
+
overallDifficulty: z.ZodNumber;
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
type ListClassesResult = z.infer<typeof ListClassesResultSchema>;
|
|
360
|
+
|
|
361
|
+
/** Playable classes and their metadata. */
|
|
362
|
+
declare class ClassesModule {
|
|
363
|
+
private readonly client;
|
|
364
|
+
constructor(client: WynnHttpClient);
|
|
365
|
+
/** @returns All playable classes. */
|
|
366
|
+
list(): Promise<WynnResponse<ListClassesResult>>;
|
|
367
|
+
/**
|
|
368
|
+
* Fetch metadata for a single class.
|
|
369
|
+
*
|
|
370
|
+
* @param className - Class identifier, e.g. `mage` or `warrior`.
|
|
371
|
+
* @returns Class stats, archetypes, and weapon types.
|
|
372
|
+
*/
|
|
373
|
+
getClass(className: ClassName): Promise<WynnResponse<GetClassResult>>;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
declare const GetGuildOptionsSchema: z.ZodObject<{
|
|
377
|
+
identifier: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
username: "username";
|
|
379
|
+
uuid: "uuid";
|
|
380
|
+
}>>;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
type GetGuildOptions = z.infer<typeof GetGuildOptionsSchema>;
|
|
383
|
+
declare const GuildResultSchema: z.ZodObject<{
|
|
384
|
+
uuid: z.ZodUUID;
|
|
385
|
+
name: z.ZodString;
|
|
386
|
+
prefix: z.ZodString;
|
|
387
|
+
level: z.ZodNumber;
|
|
388
|
+
xpPercent: z.ZodNumber;
|
|
389
|
+
territories: z.ZodNumber;
|
|
390
|
+
wars: z.ZodNumber;
|
|
391
|
+
raids: z.ZodNumber;
|
|
392
|
+
created: z.ZodString;
|
|
393
|
+
members: z.ZodObject<{
|
|
394
|
+
total: z.ZodNumber;
|
|
395
|
+
owner: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
396
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
397
|
+
username: z.ZodOptional<z.ZodString>;
|
|
398
|
+
online: z.ZodBoolean;
|
|
399
|
+
lastJoin: z.ZodNullable<z.ZodString>;
|
|
400
|
+
server: z.ZodNullable<z.ZodString>;
|
|
401
|
+
contributed: z.ZodNumber;
|
|
402
|
+
contributionRank: z.ZodNumber;
|
|
403
|
+
joined: z.ZodString;
|
|
404
|
+
weekly: z.ZodObject<{
|
|
405
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
406
|
+
streak: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
globalData: z.ZodObject<{
|
|
409
|
+
contentCompletion: z.ZodNumber;
|
|
410
|
+
wars: z.ZodNumber;
|
|
411
|
+
totalLevel: z.ZodNumber;
|
|
412
|
+
mobsKilled: z.ZodNumber;
|
|
413
|
+
chestsFound: z.ZodNumber;
|
|
414
|
+
dungeons: z.ZodObject<{
|
|
415
|
+
total: z.ZodNumber;
|
|
416
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
raids: z.ZodObject<{
|
|
419
|
+
total: z.ZodNumber;
|
|
420
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
worldEvents: z.ZodNumber;
|
|
423
|
+
lootruns: z.ZodNumber;
|
|
424
|
+
caves: z.ZodNumber;
|
|
425
|
+
completedQuests: z.ZodNumber;
|
|
426
|
+
pvp: z.ZodObject<{
|
|
427
|
+
kills: z.ZodOptional<z.ZodNumber>;
|
|
428
|
+
deaths: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
}, z.core.$strip>;
|
|
430
|
+
currentGuildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
431
|
+
total: z.ZodNumber;
|
|
432
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
433
|
+
}, z.core.$strip>>>;
|
|
434
|
+
guildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
435
|
+
total: z.ZodNumber;
|
|
436
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
437
|
+
}, z.core.$strip>>>;
|
|
438
|
+
playtime: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
restrictions: z.ZodObject<{
|
|
441
|
+
online_status: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
+
main_access: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
guild_high_ranked_access: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
}, z.core.$strip>>>;
|
|
446
|
+
chief: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
447
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
448
|
+
username: z.ZodOptional<z.ZodString>;
|
|
449
|
+
online: z.ZodBoolean;
|
|
450
|
+
lastJoin: z.ZodNullable<z.ZodString>;
|
|
451
|
+
server: z.ZodNullable<z.ZodString>;
|
|
452
|
+
contributed: z.ZodNumber;
|
|
453
|
+
contributionRank: z.ZodNumber;
|
|
454
|
+
joined: z.ZodString;
|
|
455
|
+
weekly: z.ZodObject<{
|
|
456
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
streak: z.ZodOptional<z.ZodNumber>;
|
|
458
|
+
}, z.core.$strip>;
|
|
459
|
+
globalData: z.ZodObject<{
|
|
460
|
+
contentCompletion: z.ZodNumber;
|
|
461
|
+
wars: z.ZodNumber;
|
|
462
|
+
totalLevel: z.ZodNumber;
|
|
463
|
+
mobsKilled: z.ZodNumber;
|
|
464
|
+
chestsFound: z.ZodNumber;
|
|
465
|
+
dungeons: z.ZodObject<{
|
|
466
|
+
total: z.ZodNumber;
|
|
467
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
raids: z.ZodObject<{
|
|
470
|
+
total: z.ZodNumber;
|
|
471
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
worldEvents: z.ZodNumber;
|
|
474
|
+
lootruns: z.ZodNumber;
|
|
475
|
+
caves: z.ZodNumber;
|
|
476
|
+
completedQuests: z.ZodNumber;
|
|
477
|
+
pvp: z.ZodObject<{
|
|
478
|
+
kills: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
deaths: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
currentGuildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
482
|
+
total: z.ZodNumber;
|
|
483
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
484
|
+
}, z.core.$strip>>>;
|
|
485
|
+
guildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
486
|
+
total: z.ZodNumber;
|
|
487
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
488
|
+
}, z.core.$strip>>>;
|
|
489
|
+
playtime: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
restrictions: z.ZodObject<{
|
|
492
|
+
online_status: z.ZodOptional<z.ZodBoolean>;
|
|
493
|
+
main_access: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
guild_high_ranked_access: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
+
}, z.core.$strip>;
|
|
496
|
+
}, z.core.$strip>>>;
|
|
497
|
+
strategist: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
498
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
499
|
+
username: z.ZodOptional<z.ZodString>;
|
|
500
|
+
online: z.ZodBoolean;
|
|
501
|
+
lastJoin: z.ZodNullable<z.ZodString>;
|
|
502
|
+
server: z.ZodNullable<z.ZodString>;
|
|
503
|
+
contributed: z.ZodNumber;
|
|
504
|
+
contributionRank: z.ZodNumber;
|
|
505
|
+
joined: z.ZodString;
|
|
506
|
+
weekly: z.ZodObject<{
|
|
507
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
streak: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
}, z.core.$strip>;
|
|
510
|
+
globalData: z.ZodObject<{
|
|
511
|
+
contentCompletion: z.ZodNumber;
|
|
512
|
+
wars: z.ZodNumber;
|
|
513
|
+
totalLevel: z.ZodNumber;
|
|
514
|
+
mobsKilled: z.ZodNumber;
|
|
515
|
+
chestsFound: z.ZodNumber;
|
|
516
|
+
dungeons: z.ZodObject<{
|
|
517
|
+
total: z.ZodNumber;
|
|
518
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
519
|
+
}, z.core.$strip>;
|
|
520
|
+
raids: z.ZodObject<{
|
|
521
|
+
total: z.ZodNumber;
|
|
522
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
worldEvents: z.ZodNumber;
|
|
525
|
+
lootruns: z.ZodNumber;
|
|
526
|
+
caves: z.ZodNumber;
|
|
527
|
+
completedQuests: z.ZodNumber;
|
|
528
|
+
pvp: z.ZodObject<{
|
|
529
|
+
kills: z.ZodOptional<z.ZodNumber>;
|
|
530
|
+
deaths: z.ZodOptional<z.ZodNumber>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
currentGuildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
533
|
+
total: z.ZodNumber;
|
|
534
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
535
|
+
}, z.core.$strip>>>;
|
|
536
|
+
guildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
537
|
+
total: z.ZodNumber;
|
|
538
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
539
|
+
}, z.core.$strip>>>;
|
|
540
|
+
playtime: z.ZodOptional<z.ZodNumber>;
|
|
541
|
+
}, z.core.$strip>;
|
|
542
|
+
restrictions: z.ZodObject<{
|
|
543
|
+
online_status: z.ZodOptional<z.ZodBoolean>;
|
|
544
|
+
main_access: z.ZodOptional<z.ZodBoolean>;
|
|
545
|
+
guild_high_ranked_access: z.ZodOptional<z.ZodBoolean>;
|
|
546
|
+
}, z.core.$strip>;
|
|
547
|
+
}, z.core.$strip>>>;
|
|
548
|
+
recruiter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
549
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
550
|
+
username: z.ZodOptional<z.ZodString>;
|
|
551
|
+
online: z.ZodBoolean;
|
|
552
|
+
lastJoin: z.ZodNullable<z.ZodString>;
|
|
553
|
+
server: z.ZodNullable<z.ZodString>;
|
|
554
|
+
contributed: z.ZodNumber;
|
|
555
|
+
contributionRank: z.ZodNumber;
|
|
556
|
+
joined: z.ZodString;
|
|
557
|
+
weekly: z.ZodObject<{
|
|
558
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
559
|
+
streak: z.ZodOptional<z.ZodNumber>;
|
|
560
|
+
}, z.core.$strip>;
|
|
561
|
+
globalData: z.ZodObject<{
|
|
562
|
+
contentCompletion: z.ZodNumber;
|
|
563
|
+
wars: z.ZodNumber;
|
|
564
|
+
totalLevel: z.ZodNumber;
|
|
565
|
+
mobsKilled: z.ZodNumber;
|
|
566
|
+
chestsFound: z.ZodNumber;
|
|
567
|
+
dungeons: z.ZodObject<{
|
|
568
|
+
total: z.ZodNumber;
|
|
569
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
570
|
+
}, z.core.$strip>;
|
|
571
|
+
raids: z.ZodObject<{
|
|
572
|
+
total: z.ZodNumber;
|
|
573
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
574
|
+
}, z.core.$strip>;
|
|
575
|
+
worldEvents: z.ZodNumber;
|
|
576
|
+
lootruns: z.ZodNumber;
|
|
577
|
+
caves: z.ZodNumber;
|
|
578
|
+
completedQuests: z.ZodNumber;
|
|
579
|
+
pvp: z.ZodObject<{
|
|
580
|
+
kills: z.ZodOptional<z.ZodNumber>;
|
|
581
|
+
deaths: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
currentGuildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
584
|
+
total: z.ZodNumber;
|
|
585
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
586
|
+
}, z.core.$strip>>>;
|
|
587
|
+
guildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
588
|
+
total: z.ZodNumber;
|
|
589
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
590
|
+
}, z.core.$strip>>>;
|
|
591
|
+
playtime: z.ZodOptional<z.ZodNumber>;
|
|
592
|
+
}, z.core.$strip>;
|
|
593
|
+
restrictions: z.ZodObject<{
|
|
594
|
+
online_status: z.ZodOptional<z.ZodBoolean>;
|
|
595
|
+
main_access: z.ZodOptional<z.ZodBoolean>;
|
|
596
|
+
guild_high_ranked_access: z.ZodOptional<z.ZodBoolean>;
|
|
597
|
+
}, z.core.$strip>;
|
|
598
|
+
}, z.core.$strip>>>;
|
|
599
|
+
recruit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
600
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
601
|
+
username: z.ZodOptional<z.ZodString>;
|
|
602
|
+
online: z.ZodBoolean;
|
|
603
|
+
lastJoin: z.ZodNullable<z.ZodString>;
|
|
604
|
+
server: z.ZodNullable<z.ZodString>;
|
|
605
|
+
contributed: z.ZodNumber;
|
|
606
|
+
contributionRank: z.ZodNumber;
|
|
607
|
+
joined: z.ZodString;
|
|
608
|
+
weekly: z.ZodObject<{
|
|
609
|
+
completed: z.ZodOptional<z.ZodBoolean>;
|
|
610
|
+
streak: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
globalData: z.ZodObject<{
|
|
613
|
+
contentCompletion: z.ZodNumber;
|
|
614
|
+
wars: z.ZodNumber;
|
|
615
|
+
totalLevel: z.ZodNumber;
|
|
616
|
+
mobsKilled: z.ZodNumber;
|
|
617
|
+
chestsFound: z.ZodNumber;
|
|
618
|
+
dungeons: z.ZodObject<{
|
|
619
|
+
total: z.ZodNumber;
|
|
620
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
621
|
+
}, z.core.$strip>;
|
|
622
|
+
raids: z.ZodObject<{
|
|
623
|
+
total: z.ZodNumber;
|
|
624
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
|
+
worldEvents: z.ZodNumber;
|
|
627
|
+
lootruns: z.ZodNumber;
|
|
628
|
+
caves: z.ZodNumber;
|
|
629
|
+
completedQuests: z.ZodNumber;
|
|
630
|
+
pvp: z.ZodObject<{
|
|
631
|
+
kills: z.ZodOptional<z.ZodNumber>;
|
|
632
|
+
deaths: z.ZodOptional<z.ZodNumber>;
|
|
633
|
+
}, z.core.$strip>;
|
|
634
|
+
currentGuildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
635
|
+
total: z.ZodNumber;
|
|
636
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
637
|
+
}, z.core.$strip>>>;
|
|
638
|
+
guildRaids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
639
|
+
total: z.ZodNumber;
|
|
640
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
641
|
+
}, z.core.$strip>>>;
|
|
642
|
+
playtime: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
}, z.core.$strip>;
|
|
644
|
+
restrictions: z.ZodObject<{
|
|
645
|
+
online_status: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
+
main_access: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
guild_high_ranked_access: z.ZodOptional<z.ZodBoolean>;
|
|
648
|
+
}, z.core.$strip>;
|
|
649
|
+
}, z.core.$strip>>>;
|
|
650
|
+
}, z.core.$strip>;
|
|
651
|
+
online: z.ZodNumber;
|
|
652
|
+
banner: z.ZodObject<{
|
|
653
|
+
base: z.ZodString;
|
|
654
|
+
tier: z.ZodNumber;
|
|
655
|
+
structure: z.ZodString;
|
|
656
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
657
|
+
color: z.ZodString;
|
|
658
|
+
pattern: z.ZodString;
|
|
659
|
+
}, z.core.$strip>>;
|
|
660
|
+
}, z.core.$strip>;
|
|
661
|
+
seasonRanks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
662
|
+
rating: z.ZodNumber;
|
|
663
|
+
finalTerritories: z.ZodNumber;
|
|
664
|
+
}, z.core.$strip>>;
|
|
665
|
+
ranking: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
type GuildResult = z.infer<typeof GuildResultSchema>;
|
|
668
|
+
|
|
669
|
+
declare const ListGuildsOptionsSchema: z.ZodObject<{
|
|
670
|
+
identifier: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
username: "username";
|
|
672
|
+
uuid: "uuid";
|
|
673
|
+
}>>;
|
|
674
|
+
}, z.core.$strip>;
|
|
675
|
+
type ListGuildsOptions = z.infer<typeof ListGuildsOptionsSchema>;
|
|
676
|
+
declare const ListGuildsByNameResultSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
677
|
+
uuid: z.ZodUUID;
|
|
678
|
+
prefix: z.ZodString;
|
|
679
|
+
}, z.core.$strip>>;
|
|
680
|
+
declare const ListGuildsByUuidResultSchema: z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
681
|
+
name: z.ZodString;
|
|
682
|
+
prefix: z.ZodString;
|
|
683
|
+
}, z.core.$strip>>;
|
|
684
|
+
type ListGuildsByNameResult = z.infer<typeof ListGuildsByNameResultSchema>;
|
|
685
|
+
type ListGuildsByUuidResult = z.infer<typeof ListGuildsByUuidResultSchema>;
|
|
686
|
+
type ListGuildsResult = ListGuildsByNameResult | ListGuildsByUuidResult;
|
|
687
|
+
|
|
688
|
+
declare const ListGuildSeasonsResultSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
689
|
+
initDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
690
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
691
|
+
territoryHoldingSrPerHour: z.ZodNumber;
|
|
692
|
+
srPerWar: z.ZodNumber;
|
|
693
|
+
ratingRewards: z.ZodArray<z.ZodObject<{
|
|
694
|
+
condition: z.ZodObject<{
|
|
695
|
+
type: z.ZodEnum<{
|
|
696
|
+
SR: "SR";
|
|
697
|
+
LEADERBOARD_POSITION: "LEADERBOARD_POSITION";
|
|
698
|
+
}>;
|
|
699
|
+
value: z.ZodNumber;
|
|
700
|
+
}, z.core.$strip>;
|
|
701
|
+
type: z.ZodEnum<{
|
|
702
|
+
BADGE: "BADGE";
|
|
703
|
+
EFFECT: "EFFECT";
|
|
704
|
+
COSMETIC: "COSMETIC";
|
|
705
|
+
EMERALD: "EMERALD";
|
|
706
|
+
PRIVATE_BANK_SLOT: "PRIVATE_BANK_SLOT";
|
|
707
|
+
PUBLIC_BANK_SLOT: "PUBLIC_BANK_SLOT";
|
|
708
|
+
GUILD_TOME: "GUILD_TOME";
|
|
709
|
+
STRUCTURE: "STRUCTURE";
|
|
710
|
+
}>;
|
|
711
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
712
|
+
expires: z.ZodNullable<z.ZodString>;
|
|
713
|
+
}, z.core.$strip>>;
|
|
714
|
+
leaderboardRewards: z.ZodArray<z.ZodObject<{
|
|
715
|
+
condition: z.ZodObject<{
|
|
716
|
+
type: z.ZodEnum<{
|
|
717
|
+
SR: "SR";
|
|
718
|
+
LEADERBOARD_POSITION: "LEADERBOARD_POSITION";
|
|
719
|
+
}>;
|
|
720
|
+
value: z.ZodNumber;
|
|
721
|
+
}, z.core.$strip>;
|
|
722
|
+
type: z.ZodEnum<{
|
|
723
|
+
BADGE: "BADGE";
|
|
724
|
+
EFFECT: "EFFECT";
|
|
725
|
+
COSMETIC: "COSMETIC";
|
|
726
|
+
EMERALD: "EMERALD";
|
|
727
|
+
PRIVATE_BANK_SLOT: "PRIVATE_BANK_SLOT";
|
|
728
|
+
PUBLIC_BANK_SLOT: "PUBLIC_BANK_SLOT";
|
|
729
|
+
GUILD_TOME: "GUILD_TOME";
|
|
730
|
+
STRUCTURE: "STRUCTURE";
|
|
731
|
+
}>;
|
|
732
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
733
|
+
expires: z.ZodNullable<z.ZodString>;
|
|
734
|
+
}, z.core.$strip>>;
|
|
735
|
+
}, z.core.$strip>>;
|
|
736
|
+
type ListGuildSeasonsResult = z.infer<typeof ListGuildSeasonsResultSchema>;
|
|
737
|
+
|
|
738
|
+
declare const ListGuildTerritoriesResultSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
739
|
+
guild: z.ZodObject<{
|
|
740
|
+
uuid: z.ZodUUID;
|
|
741
|
+
name: z.ZodString;
|
|
742
|
+
prefix: z.ZodString;
|
|
743
|
+
hq: z.ZodString;
|
|
744
|
+
}, z.core.$strip>;
|
|
745
|
+
acquired: z.ZodString;
|
|
746
|
+
hq: z.ZodBoolean;
|
|
747
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
748
|
+
type: z.ZodEnum<{
|
|
749
|
+
EMERALD: "EMERALD";
|
|
750
|
+
ORE: "ORE";
|
|
751
|
+
WOOD: "WOOD";
|
|
752
|
+
FISH: "FISH";
|
|
753
|
+
CROP: "CROP";
|
|
754
|
+
}>;
|
|
755
|
+
generation: z.ZodNumber;
|
|
756
|
+
stored: z.ZodNumber;
|
|
757
|
+
limit: z.ZodNumber;
|
|
758
|
+
}, z.core.$strip>>;
|
|
759
|
+
links: z.ZodArray<z.ZodString>;
|
|
760
|
+
treasury: z.ZodEnum<{
|
|
761
|
+
VERY_LOW: "VERY_LOW";
|
|
762
|
+
LOW: "LOW";
|
|
763
|
+
MEDIUM: "MEDIUM";
|
|
764
|
+
HIGH: "HIGH";
|
|
765
|
+
VERY_HIGH: "VERY_HIGH";
|
|
766
|
+
}>;
|
|
767
|
+
defences: z.ZodEnum<{
|
|
768
|
+
VERY_LOW: "VERY_LOW";
|
|
769
|
+
LOW: "LOW";
|
|
770
|
+
MEDIUM: "MEDIUM";
|
|
771
|
+
HIGH: "HIGH";
|
|
772
|
+
VERY_HIGH: "VERY_HIGH";
|
|
773
|
+
}>;
|
|
774
|
+
location: z.ZodObject<{
|
|
775
|
+
start: z.ZodArray<z.ZodNumber>;
|
|
776
|
+
end: z.ZodArray<z.ZodNumber>;
|
|
777
|
+
}, z.core.$strip>;
|
|
778
|
+
}, z.core.$strip>>;
|
|
779
|
+
type ListGuildTerritoriesResult = z.infer<typeof ListGuildTerritoriesResultSchema>;
|
|
780
|
+
|
|
781
|
+
/** Guild listings, seasons, and territory data. */
|
|
782
|
+
declare class GuildModule {
|
|
783
|
+
private readonly client;
|
|
784
|
+
constructor(client: WynnHttpClient);
|
|
785
|
+
/**
|
|
786
|
+
* List guilds with optional filters.
|
|
787
|
+
*
|
|
788
|
+
* @param options.identifier - Lookup key for list entries: `username` or `uuid`.
|
|
789
|
+
* @returns Guild list keyed by the chosen identifier.
|
|
790
|
+
*/
|
|
791
|
+
listGuilds(options?: ListGuildsOptions): Promise<WynnResponse<ListGuildsResult>>;
|
|
792
|
+
/** @returns All guild territories. */
|
|
793
|
+
listTerritories(): Promise<WynnResponse<ListGuildTerritoriesResult>>;
|
|
794
|
+
/** @returns Guild season history. */
|
|
795
|
+
listSeasons(): Promise<WynnResponse<ListGuildSeasonsResult>>;
|
|
796
|
+
/**
|
|
797
|
+
* Fetch a guild by name.
|
|
798
|
+
*
|
|
799
|
+
* @param name - Guild name.
|
|
800
|
+
* @param options.identifier - Response key for members: `username` or `uuid`.
|
|
801
|
+
* @returns Guild profile and member data.
|
|
802
|
+
*/
|
|
803
|
+
getGuild(name: string, options?: GetGuildOptions): Promise<WynnResponse<GuildResult>>;
|
|
804
|
+
/**
|
|
805
|
+
* Fetch a guild by tag prefix.
|
|
806
|
+
*
|
|
807
|
+
* @param prefix - Guild tag prefix, e.g. `ABC`.
|
|
808
|
+
* @param options.identifier - Response key for members: `username` or `uuid`.
|
|
809
|
+
* @returns Guild profile and member data.
|
|
810
|
+
*/
|
|
811
|
+
getGuildByPrefix(prefix: string, options?: GetGuildOptions): Promise<WynnResponse<GuildResult>>;
|
|
812
|
+
/**
|
|
813
|
+
* Fetch a guild by UUID.
|
|
814
|
+
*
|
|
815
|
+
* @param uuid - Guild UUID.
|
|
816
|
+
* @param options.identifier - Response key for members: `username` or `uuid`.
|
|
817
|
+
* @returns Guild profile and member data.
|
|
818
|
+
*/
|
|
819
|
+
getGuildByUuid(uuid: string, options?: GetGuildOptions): Promise<WynnResponse<GuildResult>>;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
declare const GetItemMetadataOptionsSchema: z.ZodObject<{
|
|
823
|
+
static: z.ZodOptional<z.ZodBoolean>;
|
|
824
|
+
}, z.core.$strip>;
|
|
825
|
+
type GetItemMetadataOptions = z.infer<typeof GetItemMetadataOptionsSchema>;
|
|
826
|
+
declare const ItemMetadataSchema: z.ZodObject<{
|
|
827
|
+
filters: z.ZodObject<{
|
|
828
|
+
type: z.ZodArray<z.ZodString>;
|
|
829
|
+
advanced: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
830
|
+
tier: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
831
|
+
identifications: z.ZodArray<z.ZodString>;
|
|
832
|
+
majorIds: z.ZodArray<z.ZodString>;
|
|
833
|
+
levelRange: z.ZodArray<z.ZodNumber>;
|
|
834
|
+
}, z.core.$strip>;
|
|
835
|
+
static: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
836
|
+
}, z.core.$strip>;
|
|
837
|
+
type ItemMetadata = z.infer<typeof ItemMetadataSchema>;
|
|
838
|
+
declare const ItemStaticMetadataSchema: z.ZodObject<{
|
|
839
|
+
attackSpeed: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
840
|
+
emblem: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
841
|
+
gathering: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
842
|
+
identifications: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
843
|
+
majorIds: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
844
|
+
set: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
845
|
+
subType: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
846
|
+
tier: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
847
|
+
type: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
848
|
+
}, z.core.$strip>;
|
|
849
|
+
type ItemStaticMetadata = z.infer<typeof ItemStaticMetadataSchema>;
|
|
850
|
+
type GetItemMetadataResult = ItemMetadata | ItemStaticMetadata;
|
|
851
|
+
|
|
852
|
+
declare const ListItemsOptionsSchema: z.ZodObject<{
|
|
853
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
854
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
855
|
+
}, z.core.$strip>;
|
|
856
|
+
type ListItemsOptions = z.infer<typeof ListItemsOptionsSchema>;
|
|
857
|
+
declare const ListItemsResultSchema: z.ZodObject<{
|
|
858
|
+
controller: z.ZodObject<{
|
|
859
|
+
count: z.ZodNumber;
|
|
860
|
+
current_count: z.ZodNumber;
|
|
861
|
+
pages: z.ZodNumber;
|
|
862
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
863
|
+
current: z.ZodNumber;
|
|
864
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
865
|
+
}, z.core.$strip>;
|
|
866
|
+
results: z.ZodArray<z.ZodObject<{
|
|
867
|
+
displayName: z.ZodString;
|
|
868
|
+
internalName: z.ZodString;
|
|
869
|
+
type: z.ZodString;
|
|
870
|
+
subType: z.ZodString;
|
|
871
|
+
icon: z.ZodObject<{
|
|
872
|
+
value: z.ZodObject<{
|
|
873
|
+
id: z.ZodString;
|
|
874
|
+
name: z.ZodString;
|
|
875
|
+
customModelData: z.ZodObject<{
|
|
876
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
877
|
+
}, z.core.$strip>;
|
|
878
|
+
}, z.core.$strip>;
|
|
879
|
+
format: z.ZodString;
|
|
880
|
+
}, z.core.$strip>;
|
|
881
|
+
emblem: z.ZodString;
|
|
882
|
+
tier: z.ZodString;
|
|
883
|
+
attackSpeed: z.ZodOptional<z.ZodString>;
|
|
884
|
+
averageDps: z.ZodOptional<z.ZodNumber>;
|
|
885
|
+
restriction: z.ZodOptional<z.ZodString>;
|
|
886
|
+
dropRestriction: z.ZodOptional<z.ZodString>;
|
|
887
|
+
gathering: z.ZodOptional<z.ZodString>;
|
|
888
|
+
set: z.ZodOptional<z.ZodString>;
|
|
889
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
890
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
891
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
892
|
+
classRequirement: z.ZodOptional<z.ZodString>;
|
|
893
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
894
|
+
dexterity: z.ZodOptional<z.ZodNumber>;
|
|
895
|
+
intelligence: z.ZodOptional<z.ZodNumber>;
|
|
896
|
+
defence: z.ZodOptional<z.ZodNumber>;
|
|
897
|
+
agility: z.ZodOptional<z.ZodNumber>;
|
|
898
|
+
}, z.core.$strip>>;
|
|
899
|
+
majorIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
900
|
+
powderSlots: z.ZodOptional<z.ZodNumber>;
|
|
901
|
+
lore: z.ZodOptional<z.ZodString>;
|
|
902
|
+
identifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
903
|
+
min: z.ZodNumber;
|
|
904
|
+
raw: z.ZodNumber;
|
|
905
|
+
max: z.ZodNumber;
|
|
906
|
+
}, z.core.$strip>]>>>;
|
|
907
|
+
base: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
908
|
+
min: z.ZodNumber;
|
|
909
|
+
raw: z.ZodNumber;
|
|
910
|
+
max: z.ZodNumber;
|
|
911
|
+
}, z.core.$strip>]>>>;
|
|
912
|
+
}, z.core.$strip>>;
|
|
913
|
+
}, z.core.$strip>;
|
|
914
|
+
type ListItemsResult = z.infer<typeof ListItemsResultSchema>;
|
|
915
|
+
|
|
916
|
+
declare const ListItemSetsResultSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
917
|
+
internalName: z.ZodString;
|
|
918
|
+
bonuses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
919
|
+
major: z.ZodArray<z.ZodString>;
|
|
920
|
+
minor: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
921
|
+
}, z.core.$strip>>;
|
|
922
|
+
parts: z.ZodArray<z.ZodString>;
|
|
923
|
+
}, z.core.$strip>>;
|
|
924
|
+
type ListItemSetsResult = z.infer<typeof ListItemSetsResultSchema>;
|
|
925
|
+
|
|
926
|
+
declare const ListRecipesOptionsSchema: z.ZodObject<{
|
|
927
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
928
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
929
|
+
}, z.core.$strip>;
|
|
930
|
+
type ListRecipesOptions = z.infer<typeof ListRecipesOptionsSchema>;
|
|
931
|
+
declare const ListRecipesResultSchema: z.ZodObject<{
|
|
932
|
+
controller: z.ZodObject<{
|
|
933
|
+
count: z.ZodNumber;
|
|
934
|
+
current_count: z.ZodNumber;
|
|
935
|
+
pages: z.ZodNumber;
|
|
936
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
937
|
+
current: z.ZodNumber;
|
|
938
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
939
|
+
}, z.core.$strip>;
|
|
940
|
+
results: z.ZodArray<z.ZodObject<{
|
|
941
|
+
internalName: z.ZodString;
|
|
942
|
+
type: z.ZodString;
|
|
943
|
+
skill: z.ZodString;
|
|
944
|
+
level: z.ZodObject<{
|
|
945
|
+
minimum: z.ZodNumber;
|
|
946
|
+
maximum: z.ZodNumber;
|
|
947
|
+
}, z.core.$strip>;
|
|
948
|
+
durability: z.ZodOptional<z.ZodObject<{
|
|
949
|
+
minimum: z.ZodNumber;
|
|
950
|
+
maximum: z.ZodNumber;
|
|
951
|
+
}, z.core.$strip>>;
|
|
952
|
+
materials: z.ZodArray<z.ZodObject<{
|
|
953
|
+
item: z.ZodString;
|
|
954
|
+
amount: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>>;
|
|
956
|
+
healthOrDamage: z.ZodObject<{
|
|
957
|
+
minimum: z.ZodNumber;
|
|
958
|
+
maximum: z.ZodNumber;
|
|
959
|
+
}, z.core.$strip>;
|
|
960
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
961
|
+
minimum: z.ZodNumber;
|
|
962
|
+
maximum: z.ZodNumber;
|
|
963
|
+
}, z.core.$strip>>;
|
|
964
|
+
basicDuration: z.ZodOptional<z.ZodObject<{
|
|
965
|
+
minimum: z.ZodNumber;
|
|
966
|
+
maximum: z.ZodNumber;
|
|
967
|
+
}, z.core.$strip>>;
|
|
968
|
+
sprites: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
969
|
+
format: z.ZodString;
|
|
970
|
+
value: z.ZodObject<{
|
|
971
|
+
id: z.ZodString;
|
|
972
|
+
customModelData: z.ZodNumber;
|
|
973
|
+
name: z.ZodString;
|
|
974
|
+
}, z.core.$strip>;
|
|
975
|
+
name: z.ZodString;
|
|
976
|
+
}, z.core.$strip>>;
|
|
977
|
+
xp: z.ZodNumber;
|
|
978
|
+
}, z.core.$strip>>;
|
|
979
|
+
}, z.core.$strip>;
|
|
980
|
+
type ListRecipesResult = z.infer<typeof ListRecipesResultSchema>;
|
|
981
|
+
|
|
982
|
+
declare const QuickSearchItemsResultSchema: z.ZodArray<z.ZodObject<{
|
|
983
|
+
displayName: z.ZodString;
|
|
984
|
+
internalName: z.ZodString;
|
|
985
|
+
type: z.ZodString;
|
|
986
|
+
subType: z.ZodString;
|
|
987
|
+
icon: z.ZodObject<{
|
|
988
|
+
value: z.ZodObject<{
|
|
989
|
+
id: z.ZodString;
|
|
990
|
+
name: z.ZodString;
|
|
991
|
+
customModelData: z.ZodObject<{
|
|
992
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
993
|
+
}, z.core.$strip>;
|
|
994
|
+
}, z.core.$strip>;
|
|
995
|
+
format: z.ZodString;
|
|
996
|
+
}, z.core.$strip>;
|
|
997
|
+
emblem: z.ZodString;
|
|
998
|
+
tier: z.ZodString;
|
|
999
|
+
attackSpeed: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
averageDps: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
restriction: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
dropRestriction: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
gathering: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
set: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1006
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
1007
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
1008
|
+
classRequirement: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
1010
|
+
dexterity: z.ZodOptional<z.ZodNumber>;
|
|
1011
|
+
intelligence: z.ZodOptional<z.ZodNumber>;
|
|
1012
|
+
defence: z.ZodOptional<z.ZodNumber>;
|
|
1013
|
+
agility: z.ZodOptional<z.ZodNumber>;
|
|
1014
|
+
}, z.core.$strip>>;
|
|
1015
|
+
majorIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1016
|
+
powderSlots: z.ZodOptional<z.ZodNumber>;
|
|
1017
|
+
lore: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
identifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1019
|
+
min: z.ZodNumber;
|
|
1020
|
+
raw: z.ZodNumber;
|
|
1021
|
+
max: z.ZodNumber;
|
|
1022
|
+
}, z.core.$strip>]>>>;
|
|
1023
|
+
base: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1024
|
+
min: z.ZodNumber;
|
|
1025
|
+
raw: z.ZodNumber;
|
|
1026
|
+
max: z.ZodNumber;
|
|
1027
|
+
}, z.core.$strip>]>>>;
|
|
1028
|
+
}, z.core.$strip>>;
|
|
1029
|
+
type QuickSearchItemsResult = z.infer<typeof QuickSearchItemsResultSchema>;
|
|
1030
|
+
|
|
1031
|
+
declare const ItemSearchRequestSchema: z.ZodObject<{
|
|
1032
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1033
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1034
|
+
tier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1035
|
+
attackSpeed: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1036
|
+
levelRange: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
1037
|
+
professions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1038
|
+
identifications: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1039
|
+
majorIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1040
|
+
}, z.core.$strip>;
|
|
1041
|
+
type ItemSearchRequest = z.infer<typeof ItemSearchRequestSchema>;
|
|
1042
|
+
declare const SearchItemsOptionsSchema: z.ZodObject<{
|
|
1043
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
1044
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
1045
|
+
}, z.core.$strip>;
|
|
1046
|
+
type SearchItemsOptions = z.infer<typeof SearchItemsOptionsSchema>;
|
|
1047
|
+
declare const SearchItemsResultSchema: z.ZodObject<{
|
|
1048
|
+
controller: z.ZodObject<{
|
|
1049
|
+
count: z.ZodNumber;
|
|
1050
|
+
current_count: z.ZodNumber;
|
|
1051
|
+
pages: z.ZodNumber;
|
|
1052
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
1053
|
+
current: z.ZodNumber;
|
|
1054
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
1055
|
+
}, z.core.$strip>;
|
|
1056
|
+
results: z.ZodArray<z.ZodObject<{
|
|
1057
|
+
displayName: z.ZodString;
|
|
1058
|
+
internalName: z.ZodString;
|
|
1059
|
+
type: z.ZodString;
|
|
1060
|
+
subType: z.ZodString;
|
|
1061
|
+
icon: z.ZodObject<{
|
|
1062
|
+
value: z.ZodObject<{
|
|
1063
|
+
id: z.ZodString;
|
|
1064
|
+
name: z.ZodString;
|
|
1065
|
+
customModelData: z.ZodObject<{
|
|
1066
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
1067
|
+
}, z.core.$strip>;
|
|
1068
|
+
}, z.core.$strip>;
|
|
1069
|
+
format: z.ZodString;
|
|
1070
|
+
}, z.core.$strip>;
|
|
1071
|
+
emblem: z.ZodString;
|
|
1072
|
+
tier: z.ZodString;
|
|
1073
|
+
attackSpeed: z.ZodOptional<z.ZodString>;
|
|
1074
|
+
averageDps: z.ZodOptional<z.ZodNumber>;
|
|
1075
|
+
restriction: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
dropRestriction: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
gathering: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
set: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1080
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
1081
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
1082
|
+
classRequirement: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
1084
|
+
dexterity: z.ZodOptional<z.ZodNumber>;
|
|
1085
|
+
intelligence: z.ZodOptional<z.ZodNumber>;
|
|
1086
|
+
defence: z.ZodOptional<z.ZodNumber>;
|
|
1087
|
+
agility: z.ZodOptional<z.ZodNumber>;
|
|
1088
|
+
}, z.core.$strip>>;
|
|
1089
|
+
majorIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1090
|
+
powderSlots: z.ZodOptional<z.ZodNumber>;
|
|
1091
|
+
lore: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
identifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1093
|
+
min: z.ZodNumber;
|
|
1094
|
+
raw: z.ZodNumber;
|
|
1095
|
+
max: z.ZodNumber;
|
|
1096
|
+
}, z.core.$strip>]>>>;
|
|
1097
|
+
base: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1098
|
+
min: z.ZodNumber;
|
|
1099
|
+
raw: z.ZodNumber;
|
|
1100
|
+
max: z.ZodNumber;
|
|
1101
|
+
}, z.core.$strip>]>>>;
|
|
1102
|
+
}, z.core.$strip>>;
|
|
1103
|
+
}, z.core.$strip>;
|
|
1104
|
+
type SearchItemsResult = z.infer<typeof SearchItemsResultSchema>;
|
|
1105
|
+
|
|
1106
|
+
declare const RecipeSearchRequestSchema: z.ZodObject<{
|
|
1107
|
+
query: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1108
|
+
xp: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
1109
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1110
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1111
|
+
materials: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1112
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
1113
|
+
durability: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
1114
|
+
healthOrDamage: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
1115
|
+
duration: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
1116
|
+
basicDuration: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
|
1117
|
+
}, z.core.$strip>;
|
|
1118
|
+
type RecipeSearchRequest = z.infer<typeof RecipeSearchRequestSchema>;
|
|
1119
|
+
declare const SearchRecipesOptionsSchema: z.ZodObject<{
|
|
1120
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
1121
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
1122
|
+
}, z.core.$strip>;
|
|
1123
|
+
type SearchRecipesOptions = z.infer<typeof SearchRecipesOptionsSchema>;
|
|
1124
|
+
declare const SearchRecipesResultSchema: z.ZodObject<{
|
|
1125
|
+
controller: z.ZodObject<{
|
|
1126
|
+
count: z.ZodNumber;
|
|
1127
|
+
current_count: z.ZodNumber;
|
|
1128
|
+
pages: z.ZodNumber;
|
|
1129
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
1130
|
+
current: z.ZodNumber;
|
|
1131
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
1132
|
+
}, z.core.$strip>;
|
|
1133
|
+
results: z.ZodArray<z.ZodObject<{
|
|
1134
|
+
internalName: z.ZodString;
|
|
1135
|
+
type: z.ZodString;
|
|
1136
|
+
skill: z.ZodString;
|
|
1137
|
+
level: z.ZodObject<{
|
|
1138
|
+
minimum: z.ZodNumber;
|
|
1139
|
+
maximum: z.ZodNumber;
|
|
1140
|
+
}, z.core.$strip>;
|
|
1141
|
+
durability: z.ZodOptional<z.ZodObject<{
|
|
1142
|
+
minimum: z.ZodNumber;
|
|
1143
|
+
maximum: z.ZodNumber;
|
|
1144
|
+
}, z.core.$strip>>;
|
|
1145
|
+
materials: z.ZodArray<z.ZodObject<{
|
|
1146
|
+
item: z.ZodString;
|
|
1147
|
+
amount: z.ZodNumber;
|
|
1148
|
+
}, z.core.$strip>>;
|
|
1149
|
+
healthOrDamage: z.ZodObject<{
|
|
1150
|
+
minimum: z.ZodNumber;
|
|
1151
|
+
maximum: z.ZodNumber;
|
|
1152
|
+
}, z.core.$strip>;
|
|
1153
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
1154
|
+
minimum: z.ZodNumber;
|
|
1155
|
+
maximum: z.ZodNumber;
|
|
1156
|
+
}, z.core.$strip>>;
|
|
1157
|
+
basicDuration: z.ZodOptional<z.ZodObject<{
|
|
1158
|
+
minimum: z.ZodNumber;
|
|
1159
|
+
maximum: z.ZodNumber;
|
|
1160
|
+
}, z.core.$strip>>;
|
|
1161
|
+
sprites: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1162
|
+
format: z.ZodString;
|
|
1163
|
+
value: z.ZodObject<{
|
|
1164
|
+
id: z.ZodString;
|
|
1165
|
+
customModelData: z.ZodNumber;
|
|
1166
|
+
name: z.ZodString;
|
|
1167
|
+
}, z.core.$strip>;
|
|
1168
|
+
name: z.ZodString;
|
|
1169
|
+
}, z.core.$strip>>;
|
|
1170
|
+
xp: z.ZodNumber;
|
|
1171
|
+
}, z.core.$strip>>;
|
|
1172
|
+
}, z.core.$strip>;
|
|
1173
|
+
type SearchRecipesResult = z.infer<typeof SearchRecipesResultSchema>;
|
|
1174
|
+
|
|
1175
|
+
/** Item database, search, recipes, and metadata. */
|
|
1176
|
+
declare class ItemModule {
|
|
1177
|
+
private readonly client;
|
|
1178
|
+
constructor(client: WynnHttpClient);
|
|
1179
|
+
/**
|
|
1180
|
+
* List items from the item database.
|
|
1181
|
+
*
|
|
1182
|
+
* @param options.page - Page number for paginated results.
|
|
1183
|
+
* @param options.fullResult - Include full item data when `true`.
|
|
1184
|
+
* @returns Paginated item list.
|
|
1185
|
+
*/
|
|
1186
|
+
listItems(options?: ListItemsOptions): Promise<WynnResponse<ListItemsResult>>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Search items with structured filters.
|
|
1189
|
+
*
|
|
1190
|
+
* @param filters - Search criteria such as `type`, `tier`, `levelRange`, and `identifications`.
|
|
1191
|
+
* @param options.page - Page number for paginated results.
|
|
1192
|
+
* @param options.fullResult - Include full item data when `true`.
|
|
1193
|
+
* @returns Paginated matching items.
|
|
1194
|
+
*/
|
|
1195
|
+
searchItems(filters?: ItemSearchRequest, options?: SearchItemsOptions): Promise<WynnResponse<SearchItemsResult>>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Quick text search for items by name.
|
|
1198
|
+
*
|
|
1199
|
+
* @param query - Free-text item name query.
|
|
1200
|
+
* @returns Matching items keyed by internal name.
|
|
1201
|
+
*/
|
|
1202
|
+
quickSearchItems(query: string): Promise<WynnResponse<QuickSearchItemsResult>>;
|
|
1203
|
+
/**
|
|
1204
|
+
* List recipes from the recipe database.
|
|
1205
|
+
*
|
|
1206
|
+
* @param options.page - Page number for paginated results.
|
|
1207
|
+
* @param options.fullResult - Include full recipe data when `true`.
|
|
1208
|
+
* @returns Paginated recipe list.
|
|
1209
|
+
*/
|
|
1210
|
+
listRecipes(options?: ListRecipesOptions): Promise<WynnResponse<ListRecipesResult>>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Search recipes with structured filters.
|
|
1213
|
+
*
|
|
1214
|
+
* @param filters - Search criteria such as `type`, `skill`, `materials`, and `level`.
|
|
1215
|
+
* @param options.page - Page number for paginated results.
|
|
1216
|
+
* @param options.fullResult - Include full recipe data when `true`.
|
|
1217
|
+
* @returns Paginated matching recipes.
|
|
1218
|
+
*/
|
|
1219
|
+
searchRecipes(filters?: RecipeSearchRequest, options?: SearchRecipesOptions): Promise<WynnResponse<SearchRecipesResult>>;
|
|
1220
|
+
/**
|
|
1221
|
+
* Fetch item metadata.
|
|
1222
|
+
*
|
|
1223
|
+
* @param options.static - Include static value maps when `true`.
|
|
1224
|
+
* @returns Filter definitions, tiers, and identification metadata.
|
|
1225
|
+
*/
|
|
1226
|
+
getMetadata(options?: GetItemMetadataOptions): Promise<WynnResponse<GetItemMetadataResult>>;
|
|
1227
|
+
/** @returns All item sets. */
|
|
1228
|
+
listSets(): Promise<WynnResponse<ListItemSetsResult>>;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
declare const LeaderboardEntrySchema: z.ZodObject<{
|
|
1232
|
+
metaScore: z.ZodOptional<z.ZodNumber>;
|
|
1233
|
+
name: z.ZodString;
|
|
1234
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
1235
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
1237
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1238
|
+
banner: z.ZodOptional<z.ZodObject<{
|
|
1239
|
+
base: z.ZodString;
|
|
1240
|
+
tier: z.ZodNumber;
|
|
1241
|
+
structure: z.ZodString;
|
|
1242
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
1243
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
colour: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
pattern: z.ZodString;
|
|
1246
|
+
}, z.core.$loose>>;
|
|
1247
|
+
}, z.core.$loose>>;
|
|
1248
|
+
previousRanking: z.ZodOptional<z.ZodNumber>;
|
|
1249
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
1250
|
+
xp: z.ZodOptional<z.ZodNumber>;
|
|
1251
|
+
territories: z.ZodOptional<z.ZodNumber>;
|
|
1252
|
+
wars: z.ZodOptional<z.ZodNumber>;
|
|
1253
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1254
|
+
characterUuid: z.ZodOptional<z.ZodUUID>;
|
|
1255
|
+
characterType: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
characterData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1257
|
+
rank: z.ZodOptional<z.ZodString>;
|
|
1258
|
+
supportRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1259
|
+
shortenedRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1260
|
+
legacyRankColour: z.ZodOptional<z.ZodObject<{
|
|
1261
|
+
main: z.ZodString;
|
|
1262
|
+
sub: z.ZodString;
|
|
1263
|
+
}, z.core.$strip>>;
|
|
1264
|
+
rankBadge: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
restricted: z.ZodOptional<z.ZodBoolean>;
|
|
1266
|
+
}, z.core.$loose>;
|
|
1267
|
+
type LeaderboardEntry = z.infer<typeof LeaderboardEntrySchema>;
|
|
1268
|
+
declare const GetLeaderboardOptionsSchema: z.ZodObject<{
|
|
1269
|
+
resultLimit: z.ZodOptional<z.ZodNumber>;
|
|
1270
|
+
}, z.core.$strip>;
|
|
1271
|
+
type GetLeaderboardOptions = z.infer<typeof GetLeaderboardOptionsSchema>;
|
|
1272
|
+
declare const GetLeaderboardResultSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1273
|
+
metaScore: z.ZodOptional<z.ZodNumber>;
|
|
1274
|
+
name: z.ZodString;
|
|
1275
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
1276
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1277
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
1278
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1279
|
+
banner: z.ZodOptional<z.ZodObject<{
|
|
1280
|
+
base: z.ZodString;
|
|
1281
|
+
tier: z.ZodNumber;
|
|
1282
|
+
structure: z.ZodString;
|
|
1283
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
1284
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
colour: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
pattern: z.ZodString;
|
|
1287
|
+
}, z.core.$loose>>;
|
|
1288
|
+
}, z.core.$loose>>;
|
|
1289
|
+
previousRanking: z.ZodOptional<z.ZodNumber>;
|
|
1290
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
1291
|
+
xp: z.ZodOptional<z.ZodNumber>;
|
|
1292
|
+
territories: z.ZodOptional<z.ZodNumber>;
|
|
1293
|
+
wars: z.ZodOptional<z.ZodNumber>;
|
|
1294
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1295
|
+
characterUuid: z.ZodOptional<z.ZodUUID>;
|
|
1296
|
+
characterType: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
characterData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1298
|
+
rank: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
supportRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1300
|
+
shortenedRank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1301
|
+
legacyRankColour: z.ZodOptional<z.ZodObject<{
|
|
1302
|
+
main: z.ZodString;
|
|
1303
|
+
sub: z.ZodString;
|
|
1304
|
+
}, z.core.$strip>>;
|
|
1305
|
+
rankBadge: z.ZodOptional<z.ZodString>;
|
|
1306
|
+
restricted: z.ZodOptional<z.ZodBoolean>;
|
|
1307
|
+
}, z.core.$loose>>;
|
|
1308
|
+
type GetLeaderboardResult = z.infer<typeof GetLeaderboardResultSchema>;
|
|
1309
|
+
|
|
1310
|
+
declare const ListLeaderboardTypesResultSchema: z.ZodArray<z.ZodString>;
|
|
1311
|
+
type ListLeaderboardTypesResult = z.infer<typeof ListLeaderboardTypesResultSchema>;
|
|
1312
|
+
|
|
1313
|
+
/** Leaderboard types and rankings. */
|
|
1314
|
+
declare class LeaderboardsModule {
|
|
1315
|
+
private readonly client;
|
|
1316
|
+
constructor(client: WynnHttpClient);
|
|
1317
|
+
/** @returns Available leaderboard type identifiers. */
|
|
1318
|
+
listTypes(): Promise<WynnResponse<ListLeaderboardTypesResult>>;
|
|
1319
|
+
/**
|
|
1320
|
+
* Fetch entries for a leaderboard type.
|
|
1321
|
+
*
|
|
1322
|
+
* @param lbType - Leaderboard type slug from {@link LeaderboardsModule.listTypes}.
|
|
1323
|
+
* @param options.resultLimit - Maximum number of entries to return.
|
|
1324
|
+
* @returns Leaderboard entries keyed by rank position.
|
|
1325
|
+
*/
|
|
1326
|
+
get(lbType: string, options?: GetLeaderboardOptions): Promise<WynnResponse<GetLeaderboardResult>>;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
declare const GetQuestCountResultSchema: z.ZodObject<{
|
|
1330
|
+
quests: z.ZodNumber;
|
|
1331
|
+
}, z.core.$strip>;
|
|
1332
|
+
type GetQuestCountResult = z.infer<typeof GetQuestCountResultSchema>;
|
|
1333
|
+
|
|
1334
|
+
declare const ListGatheringNodesResultSchema: z.ZodArray<z.ZodObject<{
|
|
1335
|
+
x: z.ZodNumber;
|
|
1336
|
+
y: z.ZodNumber;
|
|
1337
|
+
z: z.ZodNumber;
|
|
1338
|
+
angle: z.ZodNumber;
|
|
1339
|
+
type: z.ZodEnum<{
|
|
1340
|
+
NODE: "NODE";
|
|
1341
|
+
WALL: "WALL";
|
|
1342
|
+
CORNER: "CORNER";
|
|
1343
|
+
}>;
|
|
1344
|
+
resource: z.ZodString;
|
|
1345
|
+
level: z.ZodNumber;
|
|
1346
|
+
}, z.core.$strip>>;
|
|
1347
|
+
type ListGatheringNodesResult = z.infer<typeof ListGatheringNodesResultSchema>;
|
|
1348
|
+
|
|
1349
|
+
declare const ListMapMarkersResultSchema: z.ZodArray<z.ZodObject<{
|
|
1350
|
+
name: z.ZodString;
|
|
1351
|
+
icon: z.ZodString;
|
|
1352
|
+
x: z.ZodString;
|
|
1353
|
+
y: z.ZodString;
|
|
1354
|
+
z: z.ZodString;
|
|
1355
|
+
}, z.core.$strip>>;
|
|
1356
|
+
type ListMapMarkersResult = z.infer<typeof ListMapMarkersResultSchema>;
|
|
1357
|
+
|
|
1358
|
+
declare const ListMapCampsOptionsSchema: z.ZodObject<{
|
|
1359
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
1360
|
+
}, z.core.$strip>;
|
|
1361
|
+
type ListMapCampsOptions = z.infer<typeof ListMapCampsOptionsSchema>;
|
|
1362
|
+
declare const ListMapCampsResultSchema: z.ZodArray<z.ZodObject<{
|
|
1363
|
+
name: z.ZodString;
|
|
1364
|
+
internalName: z.ZodString;
|
|
1365
|
+
type: z.ZodString;
|
|
1366
|
+
lore: z.ZodNullable<z.ZodString>;
|
|
1367
|
+
difficulty: z.ZodNullable<z.ZodString>;
|
|
1368
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
1369
|
+
length: z.ZodNullable<z.ZodString>;
|
|
1370
|
+
requirements: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1371
|
+
type: z.ZodString;
|
|
1372
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1373
|
+
}, z.core.$strip>>>;
|
|
1374
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
1375
|
+
x: z.ZodNumber;
|
|
1376
|
+
y: z.ZodNumber;
|
|
1377
|
+
z: z.ZodNumber;
|
|
1378
|
+
}, z.core.$strip>>;
|
|
1379
|
+
rewards: z.ZodArray<z.ZodObject<{
|
|
1380
|
+
name: z.ZodString;
|
|
1381
|
+
type: z.ZodString;
|
|
1382
|
+
amount: z.ZodNumber;
|
|
1383
|
+
always: z.ZodBoolean;
|
|
1384
|
+
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1385
|
+
shiny: z.ZodOptional<z.ZodBoolean>;
|
|
1386
|
+
}, z.core.$strip>>;
|
|
1387
|
+
}, z.core.$strip>>;
|
|
1388
|
+
type ListMapCampsResult = z.infer<typeof ListMapCampsResultSchema>;
|
|
1389
|
+
|
|
1390
|
+
declare const ListMapLootPoolsOptionsSchema: z.ZodObject<{
|
|
1391
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
1392
|
+
}, z.core.$strip>;
|
|
1393
|
+
type ListMapLootPoolsOptions = z.infer<typeof ListMapLootPoolsOptionsSchema>;
|
|
1394
|
+
declare const ListMapLootPoolsResultSchema: z.ZodArray<z.ZodObject<{
|
|
1395
|
+
name: z.ZodString;
|
|
1396
|
+
internalName: z.ZodString;
|
|
1397
|
+
type: z.ZodString;
|
|
1398
|
+
rewards: z.ZodArray<z.ZodObject<{
|
|
1399
|
+
name: z.ZodString;
|
|
1400
|
+
type: z.ZodString;
|
|
1401
|
+
amount: z.ZodNumber;
|
|
1402
|
+
always: z.ZodBoolean;
|
|
1403
|
+
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1404
|
+
shiny: z.ZodOptional<z.ZodBoolean>;
|
|
1405
|
+
}, z.core.$strip>>;
|
|
1406
|
+
}, z.core.$strip>>;
|
|
1407
|
+
type ListMapLootPoolsResult = z.infer<typeof ListMapLootPoolsResultSchema>;
|
|
1408
|
+
|
|
1409
|
+
declare const ListMapRaidsOptionsSchema: z.ZodObject<{
|
|
1410
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
1411
|
+
}, z.core.$strip>;
|
|
1412
|
+
type ListMapRaidsOptions = z.infer<typeof ListMapRaidsOptionsSchema>;
|
|
1413
|
+
declare const ListMapRaidsResultSchema: z.ZodArray<z.ZodObject<{
|
|
1414
|
+
name: z.ZodString;
|
|
1415
|
+
internalName: z.ZodString;
|
|
1416
|
+
type: z.ZodString;
|
|
1417
|
+
lore: z.ZodNullable<z.ZodString>;
|
|
1418
|
+
difficulty: z.ZodNullable<z.ZodString>;
|
|
1419
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
1420
|
+
length: z.ZodNullable<z.ZodString>;
|
|
1421
|
+
requirements: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1422
|
+
type: z.ZodString;
|
|
1423
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1424
|
+
}, z.core.$strip>>>;
|
|
1425
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
1426
|
+
x: z.ZodNumber;
|
|
1427
|
+
y: z.ZodNumber;
|
|
1428
|
+
z: z.ZodNumber;
|
|
1429
|
+
}, z.core.$strip>>;
|
|
1430
|
+
rewards: z.ZodArray<z.ZodObject<{
|
|
1431
|
+
name: z.ZodString;
|
|
1432
|
+
type: z.ZodString;
|
|
1433
|
+
amount: z.ZodNumber;
|
|
1434
|
+
always: z.ZodBoolean;
|
|
1435
|
+
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1436
|
+
shiny: z.ZodOptional<z.ZodBoolean>;
|
|
1437
|
+
}, z.core.$strip>>;
|
|
1438
|
+
}, z.core.$strip>>;
|
|
1439
|
+
type ListMapRaidsResult = z.infer<typeof ListMapRaidsResultSchema>;
|
|
1440
|
+
|
|
1441
|
+
declare const ListPlayerLocationsResultSchema: z.ZodArray<z.ZodObject<{
|
|
1442
|
+
uuid: z.ZodUUID;
|
|
1443
|
+
name: z.ZodString;
|
|
1444
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
1445
|
+
character: z.ZodUUID;
|
|
1446
|
+
server: z.ZodNullable<z.ZodString>;
|
|
1447
|
+
x: z.ZodNumber;
|
|
1448
|
+
y: z.ZodNumber;
|
|
1449
|
+
z: z.ZodNumber;
|
|
1450
|
+
friends: z.ZodArray<z.ZodObject<{
|
|
1451
|
+
uuid: z.ZodUUID;
|
|
1452
|
+
name: z.ZodString;
|
|
1453
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
1454
|
+
character: z.ZodUUID;
|
|
1455
|
+
server: z.ZodNullable<z.ZodString>;
|
|
1456
|
+
x: z.ZodNumber;
|
|
1457
|
+
y: z.ZodNumber;
|
|
1458
|
+
z: z.ZodNumber;
|
|
1459
|
+
}, z.core.$strip>>;
|
|
1460
|
+
party: z.ZodArray<z.ZodObject<{
|
|
1461
|
+
uuid: z.ZodUUID;
|
|
1462
|
+
name: z.ZodString;
|
|
1463
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
1464
|
+
character: z.ZodUUID;
|
|
1465
|
+
server: z.ZodNullable<z.ZodString>;
|
|
1466
|
+
x: z.ZodNumber;
|
|
1467
|
+
y: z.ZodNumber;
|
|
1468
|
+
z: z.ZodNumber;
|
|
1469
|
+
}, z.core.$strip>>;
|
|
1470
|
+
guild: z.ZodArray<z.ZodObject<{
|
|
1471
|
+
uuid: z.ZodUUID;
|
|
1472
|
+
name: z.ZodString;
|
|
1473
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
1474
|
+
character: z.ZodUUID;
|
|
1475
|
+
server: z.ZodNullable<z.ZodString>;
|
|
1476
|
+
x: z.ZodNumber;
|
|
1477
|
+
y: z.ZodNumber;
|
|
1478
|
+
z: z.ZodNumber;
|
|
1479
|
+
}, z.core.$strip>>;
|
|
1480
|
+
}, z.core.$strip>>;
|
|
1481
|
+
type ListPlayerLocationsResult = z.infer<typeof ListPlayerLocationsResultSchema>;
|
|
1482
|
+
|
|
1483
|
+
declare const ListWorldEventsResultSchema: z.ZodArray<z.ZodObject<{
|
|
1484
|
+
name: z.ZodString;
|
|
1485
|
+
internalName: z.ZodString;
|
|
1486
|
+
lore: z.ZodString;
|
|
1487
|
+
difficulty: z.ZodNullable<z.ZodString>;
|
|
1488
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
1489
|
+
length: z.ZodNullable<z.ZodString>;
|
|
1490
|
+
rewardPerLevel: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1491
|
+
requirements: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1492
|
+
type: z.ZodString;
|
|
1493
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1494
|
+
}, z.core.$strip>>>;
|
|
1495
|
+
location: z.ZodArray<z.ZodObject<{
|
|
1496
|
+
event: z.ZodUnion<readonly [z.ZodObject<{
|
|
1497
|
+
x: z.ZodNumber;
|
|
1498
|
+
y: z.ZodNumber;
|
|
1499
|
+
z: z.ZodNumber;
|
|
1500
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
1501
|
+
spawn: z.ZodUnion<readonly [z.ZodObject<{
|
|
1502
|
+
x: z.ZodNumber;
|
|
1503
|
+
y: z.ZodNumber;
|
|
1504
|
+
z: z.ZodNumber;
|
|
1505
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
1506
|
+
reward: z.ZodUnion<readonly [z.ZodObject<{
|
|
1507
|
+
x: z.ZodNumber;
|
|
1508
|
+
y: z.ZodNumber;
|
|
1509
|
+
z: z.ZodNumber;
|
|
1510
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
1511
|
+
radius: z.ZodNullable<z.ZodNumber>;
|
|
1512
|
+
spawnRadius: z.ZodNullable<z.ZodNumber>;
|
|
1513
|
+
}, z.core.$strip>>;
|
|
1514
|
+
schedule: z.ZodNullable<z.ZodString>;
|
|
1515
|
+
}, z.core.$strip>>;
|
|
1516
|
+
type ListWorldEventsResult = z.infer<typeof ListWorldEventsResultSchema>;
|
|
1517
|
+
|
|
1518
|
+
/** Map markers, raids, camps, and world events. */
|
|
1519
|
+
declare class MapModule {
|
|
1520
|
+
private readonly client;
|
|
1521
|
+
constructor(client: WynnHttpClient);
|
|
1522
|
+
/** @returns Live player locations on the world map. */
|
|
1523
|
+
listPlayerLocations(): Promise<WynnResponse<ListPlayerLocationsResult>>;
|
|
1524
|
+
/** @returns Map markers such as NPCs, dungeons, and points of interest. */
|
|
1525
|
+
listMarkers(): Promise<WynnResponse<ListMapMarkersResult>>;
|
|
1526
|
+
/** @returns Currently active world events. */
|
|
1527
|
+
listWorldEvents(): Promise<WynnResponse<ListWorldEventsResult>>;
|
|
1528
|
+
/**
|
|
1529
|
+
* List camps.
|
|
1530
|
+
*
|
|
1531
|
+
* @param options.level - Filter to camps at a specific combat level.
|
|
1532
|
+
* @returns Camp definitions and loot pool contents.
|
|
1533
|
+
*/
|
|
1534
|
+
listCamps(options?: ListMapCampsOptions): Promise<WynnResponse<ListMapCampsResult>>;
|
|
1535
|
+
/**
|
|
1536
|
+
* List raids.
|
|
1537
|
+
*
|
|
1538
|
+
* @param options.level - Filter to raids at a specific combat level.
|
|
1539
|
+
* @returns Raid definitions and loot pool contents.
|
|
1540
|
+
*/
|
|
1541
|
+
listRaids(options?: ListMapRaidsOptions): Promise<WynnResponse<ListMapRaidsResult>>;
|
|
1542
|
+
/**
|
|
1543
|
+
* List loot pools.
|
|
1544
|
+
*
|
|
1545
|
+
* @param options.level - Filter to loot pools at a specific combat level.
|
|
1546
|
+
* @returns Loot pool definitions and contents.
|
|
1547
|
+
*/
|
|
1548
|
+
listLootPools(options?: ListMapLootPoolsOptions): Promise<WynnResponse<ListMapLootPoolsResult>>;
|
|
1549
|
+
/** @returns Gathering node locations across the map. */
|
|
1550
|
+
listGatheringNodes(): Promise<WynnResponse<ListGatheringNodesResult>>;
|
|
1551
|
+
/** @returns Quest completion counts across the map. */
|
|
1552
|
+
getQuestCount(): Promise<WynnResponse<GetQuestCountResult>>;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
declare const PublisherArticleTypeSchema: z.ZodEnum<{
|
|
1556
|
+
event: "event";
|
|
1557
|
+
blog: "blog";
|
|
1558
|
+
giveaway: "giveaway";
|
|
1559
|
+
article: "article";
|
|
1560
|
+
poll: "poll";
|
|
1561
|
+
}>;
|
|
1562
|
+
type PublisherArticleType = z.infer<typeof PublisherArticleTypeSchema>;
|
|
1563
|
+
declare const PublisherArticleSchema: z.ZodObject<{
|
|
1564
|
+
id: z.ZodNumber;
|
|
1565
|
+
type: z.ZodEnum<{
|
|
1566
|
+
event: "event";
|
|
1567
|
+
blog: "blog";
|
|
1568
|
+
giveaway: "giveaway";
|
|
1569
|
+
article: "article";
|
|
1570
|
+
poll: "poll";
|
|
1571
|
+
}>;
|
|
1572
|
+
created_by: z.ZodString;
|
|
1573
|
+
discord_messages: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1574
|
+
discord_recap: z.ZodBoolean;
|
|
1575
|
+
allow_discord: z.ZodBoolean;
|
|
1576
|
+
destination: z.ZodString;
|
|
1577
|
+
published: z.ZodBoolean;
|
|
1578
|
+
pinned: z.ZodBoolean;
|
|
1579
|
+
visible: z.ZodBoolean;
|
|
1580
|
+
content: z.ZodArray<z.ZodObject<{
|
|
1581
|
+
id: z.ZodString;
|
|
1582
|
+
type: z.ZodString;
|
|
1583
|
+
focus: z.ZodBoolean;
|
|
1584
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1585
|
+
answers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1586
|
+
override: z.ZodBoolean;
|
|
1587
|
+
question: z.ZodString;
|
|
1588
|
+
requirements: z.ZodArray<z.ZodObject<{
|
|
1589
|
+
type: z.ZodString;
|
|
1590
|
+
subType: z.ZodNullable<z.ZodString>;
|
|
1591
|
+
value: z.ZodNumber;
|
|
1592
|
+
}, z.core.$strip>>;
|
|
1593
|
+
}, z.core.$strip>]>;
|
|
1594
|
+
discord: z.ZodBoolean;
|
|
1595
|
+
website: z.ZodBoolean;
|
|
1596
|
+
}, z.core.$strip>>;
|
|
1597
|
+
start_date: z.ZodString;
|
|
1598
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
1599
|
+
recap: z.ZodString;
|
|
1600
|
+
title: z.ZodString;
|
|
1601
|
+
banner: z.ZodString;
|
|
1602
|
+
banner_zoom: z.ZodBoolean;
|
|
1603
|
+
likes: z.ZodNumber;
|
|
1604
|
+
published_at: z.ZodString;
|
|
1605
|
+
require_discord: z.ZodBoolean;
|
|
1606
|
+
require_clan: z.ZodBoolean;
|
|
1607
|
+
poll_settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1608
|
+
type: z.ZodString;
|
|
1609
|
+
subType: z.ZodNullable<z.ZodString>;
|
|
1610
|
+
value: z.ZodNumber;
|
|
1611
|
+
}, z.core.$strip>>>;
|
|
1612
|
+
poll_public: z.ZodOptional<z.ZodBoolean>;
|
|
1613
|
+
votes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1614
|
+
}, z.core.$loose>;
|
|
1615
|
+
type PublisherArticle = z.infer<typeof PublisherArticleSchema>;
|
|
1616
|
+
declare const PublisherArticleSummarySchema: z.ZodObject<{
|
|
1617
|
+
pk: z.ZodNumber;
|
|
1618
|
+
title: z.ZodString;
|
|
1619
|
+
type: z.ZodEnum<{
|
|
1620
|
+
event: "event";
|
|
1621
|
+
blog: "blog";
|
|
1622
|
+
giveaway: "giveaway";
|
|
1623
|
+
article: "article";
|
|
1624
|
+
poll: "poll";
|
|
1625
|
+
}>;
|
|
1626
|
+
banner: z.ZodString;
|
|
1627
|
+
banner_zoom: z.ZodBoolean;
|
|
1628
|
+
recap: z.ZodString;
|
|
1629
|
+
visible: z.ZodBoolean;
|
|
1630
|
+
start_date: z.ZodString;
|
|
1631
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
1632
|
+
pinned: z.ZodBoolean;
|
|
1633
|
+
has_content: z.ZodBoolean;
|
|
1634
|
+
published_at: z.ZodString;
|
|
1635
|
+
}, z.core.$strip>;
|
|
1636
|
+
type PublisherArticleSummary = z.infer<typeof PublisherArticleSummarySchema>;
|
|
1637
|
+
|
|
1638
|
+
declare const FetchPublisherArticleResultSchema: z.ZodObject<{
|
|
1639
|
+
id: z.ZodNumber;
|
|
1640
|
+
type: z.ZodEnum<{
|
|
1641
|
+
event: "event";
|
|
1642
|
+
blog: "blog";
|
|
1643
|
+
giveaway: "giveaway";
|
|
1644
|
+
article: "article";
|
|
1645
|
+
poll: "poll";
|
|
1646
|
+
}>;
|
|
1647
|
+
created_by: z.ZodString;
|
|
1648
|
+
discord_messages: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1649
|
+
discord_recap: z.ZodBoolean;
|
|
1650
|
+
allow_discord: z.ZodBoolean;
|
|
1651
|
+
destination: z.ZodString;
|
|
1652
|
+
published: z.ZodBoolean;
|
|
1653
|
+
pinned: z.ZodBoolean;
|
|
1654
|
+
visible: z.ZodBoolean;
|
|
1655
|
+
content: z.ZodArray<z.ZodObject<{
|
|
1656
|
+
id: z.ZodString;
|
|
1657
|
+
type: z.ZodString;
|
|
1658
|
+
focus: z.ZodBoolean;
|
|
1659
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1660
|
+
answers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1661
|
+
override: z.ZodBoolean;
|
|
1662
|
+
question: z.ZodString;
|
|
1663
|
+
requirements: z.ZodArray<z.ZodObject<{
|
|
1664
|
+
type: z.ZodString;
|
|
1665
|
+
subType: z.ZodNullable<z.ZodString>;
|
|
1666
|
+
value: z.ZodNumber;
|
|
1667
|
+
}, z.core.$strip>>;
|
|
1668
|
+
}, z.core.$strip>]>;
|
|
1669
|
+
discord: z.ZodBoolean;
|
|
1670
|
+
website: z.ZodBoolean;
|
|
1671
|
+
}, z.core.$strip>>;
|
|
1672
|
+
start_date: z.ZodString;
|
|
1673
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
1674
|
+
recap: z.ZodString;
|
|
1675
|
+
title: z.ZodString;
|
|
1676
|
+
banner: z.ZodString;
|
|
1677
|
+
banner_zoom: z.ZodBoolean;
|
|
1678
|
+
likes: z.ZodNumber;
|
|
1679
|
+
published_at: z.ZodString;
|
|
1680
|
+
require_discord: z.ZodBoolean;
|
|
1681
|
+
require_clan: z.ZodBoolean;
|
|
1682
|
+
poll_settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1683
|
+
type: z.ZodString;
|
|
1684
|
+
subType: z.ZodNullable<z.ZodString>;
|
|
1685
|
+
value: z.ZodNumber;
|
|
1686
|
+
}, z.core.$strip>>>;
|
|
1687
|
+
poll_public: z.ZodOptional<z.ZodBoolean>;
|
|
1688
|
+
votes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1689
|
+
}, z.core.$loose>;
|
|
1690
|
+
type FetchPublisherArticleResult = z.infer<typeof FetchPublisherArticleResultSchema>;
|
|
1691
|
+
|
|
1692
|
+
declare const ListLatestNewsResultSchema: z.ZodArray<z.ZodObject<{
|
|
1693
|
+
title: z.ZodString;
|
|
1694
|
+
date: z.ZodString;
|
|
1695
|
+
forumThread: z.ZodString;
|
|
1696
|
+
author: z.ZodString;
|
|
1697
|
+
content: z.ZodString;
|
|
1698
|
+
comments: z.ZodString;
|
|
1699
|
+
}, z.core.$strip>>;
|
|
1700
|
+
type ListLatestNewsResult = z.infer<typeof ListLatestNewsResultSchema>;
|
|
1701
|
+
|
|
1702
|
+
declare const ListPublisherArticlesOptionsSchema: z.ZodObject<{
|
|
1703
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
1704
|
+
}, z.core.$strip>;
|
|
1705
|
+
type ListPublisherArticlesOptions = z.infer<typeof ListPublisherArticlesOptionsSchema>;
|
|
1706
|
+
declare const ListPublisherArticlesResultSchema: z.ZodObject<{
|
|
1707
|
+
controller: z.ZodObject<{
|
|
1708
|
+
count: z.ZodNumber;
|
|
1709
|
+
current_count: z.ZodNumber;
|
|
1710
|
+
pages: z.ZodNumber;
|
|
1711
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
1712
|
+
current: z.ZodNumber;
|
|
1713
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
1714
|
+
}, z.core.$strip>;
|
|
1715
|
+
results: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1716
|
+
pk: z.ZodNumber;
|
|
1717
|
+
title: z.ZodString;
|
|
1718
|
+
type: z.ZodEnum<{
|
|
1719
|
+
event: "event";
|
|
1720
|
+
blog: "blog";
|
|
1721
|
+
giveaway: "giveaway";
|
|
1722
|
+
article: "article";
|
|
1723
|
+
poll: "poll";
|
|
1724
|
+
}>;
|
|
1725
|
+
banner: z.ZodString;
|
|
1726
|
+
banner_zoom: z.ZodBoolean;
|
|
1727
|
+
recap: z.ZodString;
|
|
1728
|
+
visible: z.ZodBoolean;
|
|
1729
|
+
start_date: z.ZodString;
|
|
1730
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
1731
|
+
pinned: z.ZodBoolean;
|
|
1732
|
+
has_content: z.ZodBoolean;
|
|
1733
|
+
published_at: z.ZodString;
|
|
1734
|
+
}, z.core.$strip>>;
|
|
1735
|
+
}, z.core.$strip>;
|
|
1736
|
+
type ListPublisherArticlesResult = z.infer<typeof ListPublisherArticlesResultSchema>;
|
|
1737
|
+
|
|
1738
|
+
declare const ListPublisherVideosResultSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1739
|
+
type ListPublisherVideosResult = z.infer<typeof ListPublisherVideosResultSchema>;
|
|
1740
|
+
|
|
1741
|
+
/** Publisher articles, videos, and latest news. */
|
|
1742
|
+
declare class NewsModule {
|
|
1743
|
+
private readonly client;
|
|
1744
|
+
constructor(client: WynnHttpClient);
|
|
1745
|
+
/**
|
|
1746
|
+
* Fetch a single publisher article.
|
|
1747
|
+
*
|
|
1748
|
+
* @param articleType - Article category: `blog`, `event`, `giveaway`, `article`, or `poll`.
|
|
1749
|
+
* @param pk - Article primary key (numeric ID or slug).
|
|
1750
|
+
* @returns Full article content and metadata.
|
|
1751
|
+
*/
|
|
1752
|
+
fetchArticle(articleType: PublisherArticleType, pk: string | number): Promise<WynnResponse<FetchPublisherArticleResult>>;
|
|
1753
|
+
/**
|
|
1754
|
+
* List publisher articles of a given type.
|
|
1755
|
+
*
|
|
1756
|
+
* @param articleType - Article category: `blog`, `event`, `giveaway`, `article`, or `poll`.
|
|
1757
|
+
* @param options.page - Page number for paginated results.
|
|
1758
|
+
* @returns Paginated article summaries.
|
|
1759
|
+
*/
|
|
1760
|
+
listArticles(articleType: PublisherArticleType, options?: ListPublisherArticlesOptions): Promise<WynnResponse<ListPublisherArticlesResult>>;
|
|
1761
|
+
/** @returns Publisher video listings. */
|
|
1762
|
+
listVideos(): Promise<WynnResponse<ListPublisherVideosResult>>;
|
|
1763
|
+
/** @returns Latest news feed entries. */
|
|
1764
|
+
listLatestNews(): Promise<WynnResponse<ListLatestNewsResult>>;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
declare const ExchangeOAuthTokenOptionsSchema: z.ZodObject<{
|
|
1768
|
+
code: z.ZodString;
|
|
1769
|
+
redirectUri: z.ZodString;
|
|
1770
|
+
clientId: z.ZodString;
|
|
1771
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
1772
|
+
codeVerifier: z.ZodOptional<z.ZodString>;
|
|
1773
|
+
}, z.core.$strip>;
|
|
1774
|
+
type ExchangeOAuthTokenOptions = z.infer<typeof ExchangeOAuthTokenOptionsSchema>;
|
|
1775
|
+
declare const ExchangeOAuthTokenResultSchema: z.ZodObject<{
|
|
1776
|
+
access_token: z.ZodString;
|
|
1777
|
+
token_type: z.ZodLiteral<"bearer">;
|
|
1778
|
+
scope: z.ZodString;
|
|
1779
|
+
}, z.core.$strip>;
|
|
1780
|
+
type ExchangeOAuthTokenResult = z.infer<typeof ExchangeOAuthTokenResultSchema>;
|
|
1781
|
+
declare function toOAuthTokenFormBody(options: ExchangeOAuthTokenOptions): URLSearchParams;
|
|
1782
|
+
|
|
1783
|
+
declare const GetOAuthIdentityResultSchema: z.ZodObject<{
|
|
1784
|
+
application: z.ZodObject<{
|
|
1785
|
+
client_id: z.ZodString;
|
|
1786
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
1787
|
+
}, z.core.$strip>;
|
|
1788
|
+
profiles: z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
1789
|
+
username: z.ZodString;
|
|
1790
|
+
primary: z.ZodBoolean;
|
|
1791
|
+
rank: z.ZodString;
|
|
1792
|
+
supportRank: z.ZodNullable<z.ZodString>;
|
|
1793
|
+
shortenedRank: z.ZodNullable<z.ZodString>;
|
|
1794
|
+
legacyRankColour: z.ZodObject<{
|
|
1795
|
+
main: z.ZodString;
|
|
1796
|
+
sub: z.ZodString;
|
|
1797
|
+
}, z.core.$strip>;
|
|
1798
|
+
rankBadge: z.ZodString;
|
|
1799
|
+
accessRules: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1800
|
+
}, z.core.$strip>>;
|
|
1801
|
+
}, z.core.$strip>;
|
|
1802
|
+
type GetOAuthIdentityResult = z.infer<typeof GetOAuthIdentityResultSchema>;
|
|
1803
|
+
|
|
1804
|
+
/** OAuth identity and token exchange. */
|
|
1805
|
+
declare class OAuthModule {
|
|
1806
|
+
private readonly client;
|
|
1807
|
+
constructor(client: WynnHttpClient);
|
|
1808
|
+
/**
|
|
1809
|
+
* Fetch the authenticated OAuth user's identity.
|
|
1810
|
+
*
|
|
1811
|
+
* Requires `{ type: "oauth", accessToken }` credentials on the client.
|
|
1812
|
+
*
|
|
1813
|
+
* @returns OAuth user profile and linked Wynncraft account.
|
|
1814
|
+
*/
|
|
1815
|
+
me(): Promise<WynnResponse<GetOAuthIdentityResult>>;
|
|
1816
|
+
/**
|
|
1817
|
+
* Exchange an authorization code for access tokens.
|
|
1818
|
+
*
|
|
1819
|
+
* @param options.code - Authorization code from the OAuth redirect.
|
|
1820
|
+
* @param options.redirectUri - Redirect URI registered with the OAuth app.
|
|
1821
|
+
* @param options.clientId - OAuth application client ID.
|
|
1822
|
+
* @param options.clientSecret - OAuth application client secret (confidential clients).
|
|
1823
|
+
* @param options.codeVerifier - PKCE code verifier, if the flow used PKCE.
|
|
1824
|
+
* @returns Access token and granted scopes.
|
|
1825
|
+
*/
|
|
1826
|
+
exchangeToken(options: ExchangeOAuthTokenOptions): Promise<WynnResponse<ExchangeOAuthTokenResult>>;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
declare const ListPlayerCharactersResultSchema: z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
1830
|
+
type: z.ZodString;
|
|
1831
|
+
reskin: z.ZodNullable<z.ZodString>;
|
|
1832
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
1833
|
+
level: z.ZodNumber;
|
|
1834
|
+
xp: z.ZodNumber;
|
|
1835
|
+
xpPercent: z.ZodNumber;
|
|
1836
|
+
totalLevel: z.ZodNumber;
|
|
1837
|
+
gamemode: z.ZodArray<z.ZodString>;
|
|
1838
|
+
meta: z.ZodObject<{
|
|
1839
|
+
died: z.ZodBoolean;
|
|
1840
|
+
}, z.core.$strip>;
|
|
1841
|
+
}, z.core.$strip>>;
|
|
1842
|
+
type ListPlayerCharactersResult = z.infer<typeof ListPlayerCharactersResultSchema>;
|
|
1843
|
+
|
|
1844
|
+
declare const GetCharacterAbilitiesResultSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1845
|
+
type: z.ZodEnum<{
|
|
1846
|
+
ability: "ability";
|
|
1847
|
+
connector: "connector";
|
|
1848
|
+
}>;
|
|
1849
|
+
coordinates: z.ZodObject<{
|
|
1850
|
+
x: z.ZodNumber;
|
|
1851
|
+
y: z.ZodNumber;
|
|
1852
|
+
}, z.core.$strip>;
|
|
1853
|
+
meta: z.ZodObject<{
|
|
1854
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1855
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1856
|
+
value: z.ZodObject<{
|
|
1857
|
+
id: z.ZodString;
|
|
1858
|
+
name: z.ZodString;
|
|
1859
|
+
customModelData: z.ZodObject<{
|
|
1860
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
1861
|
+
}, z.core.$strip>;
|
|
1862
|
+
}, z.core.$strip>;
|
|
1863
|
+
format: z.ZodString;
|
|
1864
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
1865
|
+
page: z.ZodNumber;
|
|
1866
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
}, z.core.$strip>;
|
|
1868
|
+
family: z.ZodArray<z.ZodString>;
|
|
1869
|
+
}, z.core.$strip>>>;
|
|
1870
|
+
type GetCharacterAbilitiesResult = z.infer<typeof GetCharacterAbilitiesResultSchema>;
|
|
1871
|
+
|
|
1872
|
+
declare const GetPlayerOptionsSchema: z.ZodObject<{
|
|
1873
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
1874
|
+
}, z.core.$strip>;
|
|
1875
|
+
type GetPlayerOptions = z.infer<typeof GetPlayerOptionsSchema>;
|
|
1876
|
+
declare const GetPlayerResultSchema: z.ZodObject<{
|
|
1877
|
+
username: z.ZodString;
|
|
1878
|
+
online: z.ZodBoolean;
|
|
1879
|
+
server: z.ZodNullable<z.ZodString>;
|
|
1880
|
+
activeCharacter: z.ZodNullable<z.ZodUUID>;
|
|
1881
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
1882
|
+
uuid: z.ZodUUID;
|
|
1883
|
+
rank: z.ZodString;
|
|
1884
|
+
rankBadge: z.ZodString;
|
|
1885
|
+
legacyRankColour: z.ZodObject<{
|
|
1886
|
+
main: z.ZodString;
|
|
1887
|
+
sub: z.ZodString;
|
|
1888
|
+
}, z.core.$strip>;
|
|
1889
|
+
shortenedRank: z.ZodNullable<z.ZodString>;
|
|
1890
|
+
supportRank: z.ZodNullable<z.ZodString>;
|
|
1891
|
+
veteran: z.ZodBoolean;
|
|
1892
|
+
lastJoin: z.ZodString;
|
|
1893
|
+
guild: z.ZodNullable<z.ZodObject<{
|
|
1894
|
+
uuid: z.ZodUUID;
|
|
1895
|
+
name: z.ZodString;
|
|
1896
|
+
prefix: z.ZodString;
|
|
1897
|
+
rank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1898
|
+
rankStars: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1899
|
+
}, z.core.$strip>>;
|
|
1900
|
+
ranking: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1901
|
+
previousRanking: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1902
|
+
firstJoin: z.ZodString;
|
|
1903
|
+
playtime: z.ZodNumber;
|
|
1904
|
+
globalData: z.ZodObject<{
|
|
1905
|
+
contentCompletion: z.ZodNumber;
|
|
1906
|
+
wars: z.ZodNumber;
|
|
1907
|
+
totalLevel: z.ZodNumber;
|
|
1908
|
+
mobsKilled: z.ZodNumber;
|
|
1909
|
+
chestsFound: z.ZodNumber;
|
|
1910
|
+
dungeons: z.ZodObject<{
|
|
1911
|
+
total: z.ZodNumber;
|
|
1912
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1913
|
+
}, z.core.$strip>;
|
|
1914
|
+
raids: z.ZodObject<{
|
|
1915
|
+
total: z.ZodNumber;
|
|
1916
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1917
|
+
}, z.core.$strip>;
|
|
1918
|
+
worldEvents: z.ZodNumber;
|
|
1919
|
+
lootruns: z.ZodNumber;
|
|
1920
|
+
caves: z.ZodNumber;
|
|
1921
|
+
completedQuests: z.ZodNumber;
|
|
1922
|
+
guildRaids: z.ZodNullable<z.ZodObject<{
|
|
1923
|
+
total: z.ZodNumber;
|
|
1924
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1925
|
+
}, z.core.$strip>>;
|
|
1926
|
+
raidStats: z.ZodNullable<z.ZodObject<{
|
|
1927
|
+
damageTaken: z.ZodNumber;
|
|
1928
|
+
damageDealt: z.ZodNumber;
|
|
1929
|
+
healthHealed: z.ZodNumber;
|
|
1930
|
+
deaths: z.ZodNumber;
|
|
1931
|
+
buffsTaken: z.ZodNumber;
|
|
1932
|
+
gambitsUsed: z.ZodNumber;
|
|
1933
|
+
}, z.core.$strip>>;
|
|
1934
|
+
pvp: z.ZodObject<{
|
|
1935
|
+
kills: z.ZodOptional<z.ZodNumber>;
|
|
1936
|
+
deaths: z.ZodOptional<z.ZodNumber>;
|
|
1937
|
+
}, z.core.$strip>;
|
|
1938
|
+
}, z.core.$strip>;
|
|
1939
|
+
featuredStats: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1940
|
+
wallpaper: z.ZodString;
|
|
1941
|
+
avatar: z.ZodString;
|
|
1942
|
+
restrictions: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1943
|
+
characters: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
1944
|
+
type: z.ZodString;
|
|
1945
|
+
reskin: z.ZodNullable<z.ZodString>;
|
|
1946
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
1947
|
+
level: z.ZodNumber;
|
|
1948
|
+
xp: z.ZodNumber;
|
|
1949
|
+
xpPercent: z.ZodNumber;
|
|
1950
|
+
totalLevel: z.ZodNumber;
|
|
1951
|
+
preEconomy: z.ZodNullable<z.ZodBoolean>;
|
|
1952
|
+
gamemode: z.ZodArray<z.ZodString>;
|
|
1953
|
+
contentCompletion: z.ZodNumber;
|
|
1954
|
+
wars: z.ZodNumber;
|
|
1955
|
+
playtime: z.ZodNumber;
|
|
1956
|
+
mobsKilled: z.ZodNumber;
|
|
1957
|
+
chestsFound: z.ZodNumber;
|
|
1958
|
+
itemsIdentified: z.ZodNumber;
|
|
1959
|
+
blocksWalked: z.ZodNumber;
|
|
1960
|
+
logins: z.ZodNumber;
|
|
1961
|
+
deaths: z.ZodNumber;
|
|
1962
|
+
discoveries: z.ZodNumber;
|
|
1963
|
+
pvp: z.ZodObject<{
|
|
1964
|
+
kills: z.ZodOptional<z.ZodNumber>;
|
|
1965
|
+
deaths: z.ZodOptional<z.ZodNumber>;
|
|
1966
|
+
}, z.core.$strip>;
|
|
1967
|
+
skillPoints: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1968
|
+
professions: z.ZodObject<{
|
|
1969
|
+
fishing: z.ZodOptional<z.ZodObject<{
|
|
1970
|
+
level: z.ZodNumber;
|
|
1971
|
+
xpPercent: z.ZodNumber;
|
|
1972
|
+
}, z.core.$strip>>;
|
|
1973
|
+
woodcutting: z.ZodOptional<z.ZodObject<{
|
|
1974
|
+
level: z.ZodNumber;
|
|
1975
|
+
xpPercent: z.ZodNumber;
|
|
1976
|
+
}, z.core.$strip>>;
|
|
1977
|
+
mining: z.ZodOptional<z.ZodObject<{
|
|
1978
|
+
level: z.ZodNumber;
|
|
1979
|
+
xpPercent: z.ZodNumber;
|
|
1980
|
+
}, z.core.$strip>>;
|
|
1981
|
+
farming: z.ZodOptional<z.ZodObject<{
|
|
1982
|
+
level: z.ZodNumber;
|
|
1983
|
+
xpPercent: z.ZodNumber;
|
|
1984
|
+
}, z.core.$strip>>;
|
|
1985
|
+
scribing: z.ZodOptional<z.ZodObject<{
|
|
1986
|
+
level: z.ZodNumber;
|
|
1987
|
+
xpPercent: z.ZodNumber;
|
|
1988
|
+
}, z.core.$strip>>;
|
|
1989
|
+
jeweling: z.ZodOptional<z.ZodObject<{
|
|
1990
|
+
level: z.ZodNumber;
|
|
1991
|
+
xpPercent: z.ZodNumber;
|
|
1992
|
+
}, z.core.$strip>>;
|
|
1993
|
+
alchemism: z.ZodOptional<z.ZodObject<{
|
|
1994
|
+
level: z.ZodNumber;
|
|
1995
|
+
xpPercent: z.ZodNumber;
|
|
1996
|
+
}, z.core.$strip>>;
|
|
1997
|
+
cooking: z.ZodOptional<z.ZodObject<{
|
|
1998
|
+
level: z.ZodNumber;
|
|
1999
|
+
xpPercent: z.ZodNumber;
|
|
2000
|
+
}, z.core.$strip>>;
|
|
2001
|
+
weaponsmithing: z.ZodOptional<z.ZodObject<{
|
|
2002
|
+
level: z.ZodNumber;
|
|
2003
|
+
xpPercent: z.ZodNumber;
|
|
2004
|
+
}, z.core.$strip>>;
|
|
2005
|
+
tailoring: z.ZodOptional<z.ZodObject<{
|
|
2006
|
+
level: z.ZodNumber;
|
|
2007
|
+
xpPercent: z.ZodNumber;
|
|
2008
|
+
}, z.core.$strip>>;
|
|
2009
|
+
woodworking: z.ZodOptional<z.ZodObject<{
|
|
2010
|
+
level: z.ZodNumber;
|
|
2011
|
+
xpPercent: z.ZodNumber;
|
|
2012
|
+
}, z.core.$strip>>;
|
|
2013
|
+
armouring: z.ZodOptional<z.ZodObject<{
|
|
2014
|
+
level: z.ZodNumber;
|
|
2015
|
+
xpPercent: z.ZodNumber;
|
|
2016
|
+
}, z.core.$strip>>;
|
|
2017
|
+
}, z.core.$strip>;
|
|
2018
|
+
dungeons: z.ZodNullable<z.ZodObject<{
|
|
2019
|
+
total: z.ZodNumber;
|
|
2020
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2021
|
+
}, z.core.$strip>>;
|
|
2022
|
+
raids: z.ZodNullable<z.ZodObject<{
|
|
2023
|
+
total: z.ZodNumber;
|
|
2024
|
+
list: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2025
|
+
}, z.core.$strip>>;
|
|
2026
|
+
worldEvents: z.ZodNumber;
|
|
2027
|
+
lootruns: z.ZodNumber;
|
|
2028
|
+
caves: z.ZodNumber;
|
|
2029
|
+
quests: z.ZodArray<z.ZodString>;
|
|
2030
|
+
restrictions: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
2031
|
+
removedStat: z.ZodArray<z.ZodString>;
|
|
2032
|
+
}, z.core.$strip>>>;
|
|
2033
|
+
}, z.core.$strip>;
|
|
2034
|
+
type GetPlayerResult = z.infer<typeof GetPlayerResultSchema>;
|
|
2035
|
+
|
|
2036
|
+
declare const ListOnlinePlayersOptionsSchema: z.ZodObject<{
|
|
2037
|
+
identifier: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUUID]>>;
|
|
2038
|
+
server: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
2039
|
+
}, z.core.$strip>;
|
|
2040
|
+
type ListOnlinePlayersOptions = z.infer<typeof ListOnlinePlayersOptionsSchema>;
|
|
2041
|
+
declare const ListOnlinePlayersResultSchema: z.ZodObject<{
|
|
2042
|
+
total: z.ZodNumber;
|
|
2043
|
+
players: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2044
|
+
}, z.core.$strip>;
|
|
2045
|
+
type ListOnlinePlayersResult = z.infer<typeof ListOnlinePlayersResultSchema>;
|
|
2046
|
+
|
|
2047
|
+
declare const LegacyRankColourSchema: z.ZodObject<{
|
|
2048
|
+
main: z.ZodString;
|
|
2049
|
+
sub: z.ZodString;
|
|
2050
|
+
}, z.core.$strip>;
|
|
2051
|
+
type LegacyRankColour = z.infer<typeof LegacyRankColourSchema>;
|
|
2052
|
+
/** Public player identity fields returned by authenticated player endpoints. */
|
|
2053
|
+
declare const PlayerIdentitySchema: z.ZodObject<{
|
|
2054
|
+
username: z.ZodString;
|
|
2055
|
+
online: z.ZodBoolean;
|
|
2056
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
2057
|
+
rank: z.ZodString;
|
|
2058
|
+
supportRank: z.ZodNullable<z.ZodString>;
|
|
2059
|
+
shortenedRank: z.ZodNullable<z.ZodString>;
|
|
2060
|
+
legacyRankColour: z.ZodObject<{
|
|
2061
|
+
main: z.ZodString;
|
|
2062
|
+
sub: z.ZodString;
|
|
2063
|
+
}, z.core.$strip>;
|
|
2064
|
+
rankBadge: z.ZodString;
|
|
2065
|
+
}, z.core.$strip>;
|
|
2066
|
+
type PlayerIdentity = z.infer<typeof PlayerIdentitySchema>;
|
|
2067
|
+
/**
|
|
2068
|
+
* Authenticated player identities keyed by account UUID.
|
|
2069
|
+
*
|
|
2070
|
+
* The whoami endpoint returns one entry — use `Object.values(data)[0]` to
|
|
2071
|
+
* access the profile directly.
|
|
2072
|
+
*/
|
|
2073
|
+
declare const WhoAmIResultSchema: z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
2074
|
+
username: z.ZodString;
|
|
2075
|
+
online: z.ZodBoolean;
|
|
2076
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
2077
|
+
rank: z.ZodString;
|
|
2078
|
+
supportRank: z.ZodNullable<z.ZodString>;
|
|
2079
|
+
shortenedRank: z.ZodNullable<z.ZodString>;
|
|
2080
|
+
legacyRankColour: z.ZodObject<{
|
|
2081
|
+
main: z.ZodString;
|
|
2082
|
+
sub: z.ZodString;
|
|
2083
|
+
}, z.core.$strip>;
|
|
2084
|
+
rankBadge: z.ZodString;
|
|
2085
|
+
}, z.core.$strip>>;
|
|
2086
|
+
/** Map of account UUID → {@link PlayerIdentity}. */
|
|
2087
|
+
type WhoAmIResult = z.infer<typeof WhoAmIResultSchema>;
|
|
2088
|
+
|
|
2089
|
+
/** Player profiles, characters, and online status. */
|
|
2090
|
+
declare class PlayerModule {
|
|
2091
|
+
private readonly client;
|
|
2092
|
+
constructor(client: WynnHttpClient);
|
|
2093
|
+
/**
|
|
2094
|
+
* List currently online players.
|
|
2095
|
+
*
|
|
2096
|
+
* @param options.identifier - Filter by username or UUID.
|
|
2097
|
+
* @param options.server - Filter by server name or number.
|
|
2098
|
+
* @returns Online player count and username-to-server map.
|
|
2099
|
+
*/
|
|
2100
|
+
listOnlinePlayers(options?: ListOnlinePlayersOptions): Promise<WynnResponse<ListOnlinePlayersResult>>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Fetch the authenticated player's profile.
|
|
2103
|
+
*
|
|
2104
|
+
* Requires credentials on the client.
|
|
2105
|
+
*
|
|
2106
|
+
* @returns UUID-keyed map of {@link PlayerIdentity}. The API returns a
|
|
2107
|
+
* single entry for the authenticated account.
|
|
2108
|
+
*
|
|
2109
|
+
* @example
|
|
2110
|
+
* ```ts
|
|
2111
|
+
* const { data } = await client.player.whoAmI();
|
|
2112
|
+
* const profile = Object.values(data)[0]!;
|
|
2113
|
+
* ```
|
|
2114
|
+
*/
|
|
2115
|
+
whoAmI(): Promise<WynnResponse<WhoAmIResult>>;
|
|
2116
|
+
/**
|
|
2117
|
+
* Fetch a player profile by username.
|
|
2118
|
+
*
|
|
2119
|
+
* @param username - Wynncraft username.
|
|
2120
|
+
* @param options.fullResult - Include extended character data when `true`.
|
|
2121
|
+
* @returns Player profile and character summaries.
|
|
2122
|
+
*/
|
|
2123
|
+
getPlayer(username: string, options?: GetPlayerOptions): Promise<WynnResponse<GetPlayerResult>>;
|
|
2124
|
+
/**
|
|
2125
|
+
* List characters for a player.
|
|
2126
|
+
*
|
|
2127
|
+
* @param username - Wynncraft username.
|
|
2128
|
+
* @returns Character list keyed by UUID.
|
|
2129
|
+
*/
|
|
2130
|
+
listCharacters(username: string): Promise<WynnResponse<ListPlayerCharactersResult>>;
|
|
2131
|
+
/**
|
|
2132
|
+
* Fetch ability assignments for a specific character.
|
|
2133
|
+
*
|
|
2134
|
+
* @param username - Wynncraft username.
|
|
2135
|
+
* @param characterUuid - Character UUID from {@link PlayerModule.listCharacters}.
|
|
2136
|
+
* @returns Ability map keyed by page.
|
|
2137
|
+
*/
|
|
2138
|
+
getCharacterAbilities(username: string, characterUuid: string): Promise<WynnResponse<GetCharacterAbilitiesResult>>;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
declare const GlobalSearchOptionsSchema: z.ZodObject<{
|
|
2142
|
+
only: z.ZodOptional<z.ZodString>;
|
|
2143
|
+
}, z.core.$strip>;
|
|
2144
|
+
type GlobalSearchOptions = z.infer<typeof GlobalSearchOptionsSchema>;
|
|
2145
|
+
declare const GlobalSearchResultSchema: z.ZodObject<{
|
|
2146
|
+
query: z.ZodString;
|
|
2147
|
+
players: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2148
|
+
guilds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2149
|
+
name: z.ZodString;
|
|
2150
|
+
prefix: z.ZodString;
|
|
2151
|
+
}, z.core.$strip>>>;
|
|
2152
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2153
|
+
displayName: z.ZodString;
|
|
2154
|
+
internalName: z.ZodString;
|
|
2155
|
+
type: z.ZodString;
|
|
2156
|
+
subType: z.ZodString;
|
|
2157
|
+
icon: z.ZodObject<{
|
|
2158
|
+
value: z.ZodObject<{
|
|
2159
|
+
id: z.ZodString;
|
|
2160
|
+
name: z.ZodString;
|
|
2161
|
+
customModelData: z.ZodObject<{
|
|
2162
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
2163
|
+
}, z.core.$strip>;
|
|
2164
|
+
}, z.core.$strip>;
|
|
2165
|
+
format: z.ZodString;
|
|
2166
|
+
}, z.core.$strip>;
|
|
2167
|
+
emblem: z.ZodString;
|
|
2168
|
+
tier: z.ZodString;
|
|
2169
|
+
attackSpeed: z.ZodOptional<z.ZodString>;
|
|
2170
|
+
averageDps: z.ZodOptional<z.ZodNumber>;
|
|
2171
|
+
restriction: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
dropRestriction: z.ZodOptional<z.ZodString>;
|
|
2173
|
+
gathering: z.ZodOptional<z.ZodString>;
|
|
2174
|
+
set: z.ZodOptional<z.ZodString>;
|
|
2175
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2176
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
2177
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
2178
|
+
classRequirement: z.ZodOptional<z.ZodString>;
|
|
2179
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
2180
|
+
dexterity: z.ZodOptional<z.ZodNumber>;
|
|
2181
|
+
intelligence: z.ZodOptional<z.ZodNumber>;
|
|
2182
|
+
defence: z.ZodOptional<z.ZodNumber>;
|
|
2183
|
+
agility: z.ZodOptional<z.ZodNumber>;
|
|
2184
|
+
}, z.core.$strip>>;
|
|
2185
|
+
majorIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2186
|
+
powderSlots: z.ZodOptional<z.ZodNumber>;
|
|
2187
|
+
lore: z.ZodOptional<z.ZodString>;
|
|
2188
|
+
identifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2189
|
+
min: z.ZodNumber;
|
|
2190
|
+
raw: z.ZodNumber;
|
|
2191
|
+
max: z.ZodNumber;
|
|
2192
|
+
}, z.core.$strip>]>>>;
|
|
2193
|
+
base: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2194
|
+
min: z.ZodNumber;
|
|
2195
|
+
raw: z.ZodNumber;
|
|
2196
|
+
max: z.ZodNumber;
|
|
2197
|
+
}, z.core.$strip>]>>>;
|
|
2198
|
+
}, z.core.$strip>>>;
|
|
2199
|
+
guildsPrefix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2200
|
+
name: z.ZodString;
|
|
2201
|
+
prefix: z.ZodString;
|
|
2202
|
+
}, z.core.$strip>>>;
|
|
2203
|
+
territories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2204
|
+
start: z.ZodArray<z.ZodUnknown>;
|
|
2205
|
+
end: z.ZodArray<z.ZodUnknown>;
|
|
2206
|
+
}, z.core.$strip>>>;
|
|
2207
|
+
discoveries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2208
|
+
start: z.ZodArray<z.ZodUnknown>;
|
|
2209
|
+
end: z.ZodArray<z.ZodUnknown>;
|
|
2210
|
+
}, z.core.$strip>>>;
|
|
2211
|
+
}, z.core.$strip>;
|
|
2212
|
+
type GlobalSearchResult = z.infer<typeof GlobalSearchResultSchema>;
|
|
2213
|
+
|
|
2214
|
+
/** Global search across players, guilds, and items. */
|
|
2215
|
+
declare class SearchModule {
|
|
2216
|
+
private readonly client;
|
|
2217
|
+
constructor(client: WynnHttpClient);
|
|
2218
|
+
/**
|
|
2219
|
+
* Search across Wynncraft resources.
|
|
2220
|
+
*
|
|
2221
|
+
* @param query - Free-text search query.
|
|
2222
|
+
* @param options.only - Limit results to a resource type, e.g. `player`, `guild`, or `item`.
|
|
2223
|
+
* @returns Matching players, guilds, items, and related entities.
|
|
2224
|
+
*/
|
|
2225
|
+
search(query: string, options?: GlobalSearchOptions): Promise<WynnResponse<GlobalSearchResult>>;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Typed Wynncraft API v3 client.
|
|
2230
|
+
*
|
|
2231
|
+
* Grouped by domain — `player`, `guild`, `item`, and so on. Every method
|
|
2232
|
+
* returns a {@link WynnResponse} with parsed rate-limit headers.
|
|
2233
|
+
*
|
|
2234
|
+
* @example
|
|
2235
|
+
* ```ts
|
|
2236
|
+
* const client = new WynnClient({
|
|
2237
|
+
* auth: { type: "token", token: process.env.WYNN_API_TOKEN! },
|
|
2238
|
+
* });
|
|
2239
|
+
*
|
|
2240
|
+
* const { data, rateLimit } = await client.player.getPlayer("username");
|
|
2241
|
+
* ```
|
|
2242
|
+
*/
|
|
2243
|
+
declare class WynnClient implements WynnHttpClient {
|
|
2244
|
+
/** Player profiles, characters, and online status. */
|
|
2245
|
+
readonly player: PlayerModule;
|
|
2246
|
+
/** Guild listings, seasons, and territory data. */
|
|
2247
|
+
readonly guild: GuildModule;
|
|
2248
|
+
/** Item database, search, recipes, and metadata. */
|
|
2249
|
+
readonly item: ItemModule;
|
|
2250
|
+
/** Ability trees, maps, and aspects. */
|
|
2251
|
+
readonly ability: AbilityModule;
|
|
2252
|
+
/** Playable classes and their metadata. */
|
|
2253
|
+
readonly classes: ClassesModule;
|
|
2254
|
+
/** Map markers, raids, camps, and world events. */
|
|
2255
|
+
readonly map: MapModule;
|
|
2256
|
+
/** Leaderboard types and rankings. */
|
|
2257
|
+
readonly leaderboards: LeaderboardsModule;
|
|
2258
|
+
/** Publisher articles, videos, and latest news. */
|
|
2259
|
+
readonly news: NewsModule;
|
|
2260
|
+
/** Global search across players, guilds, and items. */
|
|
2261
|
+
readonly search: SearchModule;
|
|
2262
|
+
/** OAuth identity and token exchange. */
|
|
2263
|
+
readonly oauth: OAuthModule;
|
|
2264
|
+
private readonly http;
|
|
2265
|
+
private readonly auth?;
|
|
2266
|
+
/**
|
|
2267
|
+
* @param options - Client configuration. All fields are optional.
|
|
2268
|
+
* @param options.baseUrl - API base URL. Defaults to {@link API_BASE_URL}.
|
|
2269
|
+
* @param options.auth - Credentials for authenticated endpoints.
|
|
2270
|
+
* @param options.http - Custom Axios instance, e.g. for mocking in tests.
|
|
2271
|
+
*/
|
|
2272
|
+
constructor(options?: WynnClientOptions);
|
|
2273
|
+
/**
|
|
2274
|
+
* Low-level request helper. Prefer module methods when available.
|
|
2275
|
+
*
|
|
2276
|
+
* @param config.path - API route path, e.g. `/player/foo`.
|
|
2277
|
+
* @param config.method - HTTP method. Defaults to `GET`.
|
|
2278
|
+
* @param config.params - Standard query parameters.
|
|
2279
|
+
* @param config.presenceParams - Wynncraft presence flags without values, e.g. `fullResult`.
|
|
2280
|
+
* @param config.data - Request body for `POST`/`PUT` requests.
|
|
2281
|
+
* @param config.headers - Additional request headers.
|
|
2282
|
+
* @returns Parsed response body and rate-limit metadata.
|
|
2283
|
+
*/
|
|
2284
|
+
request<T>(config: RequestConfig): Promise<WynnResponse<T>>;
|
|
2285
|
+
/** Return the credentials passed at construction, if any. */
|
|
2286
|
+
getAuth(): WynnAuth | undefined;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/** Base URL for all Wynncraft API v3 requests. */
|
|
2290
|
+
declare const API_BASE_URL = "https://api.wynncraft.com/v3";
|
|
2291
|
+
/** Wynncraft API release this client targets. Independent from the npm package version. */
|
|
2292
|
+
declare const WYNNCRAFT_API_VERSION = "3.7.2";
|
|
2293
|
+
/** Base URL for Wynncraft CDN assets. */
|
|
2294
|
+
declare const CDN_BASE_URL = "https://cdn.wynncraft.com";
|
|
2295
|
+
/**
|
|
2296
|
+
* Build a full CDN URL from a relative asset path.
|
|
2297
|
+
*
|
|
2298
|
+
* @param path - Asset path, with or without a leading slash.
|
|
2299
|
+
* @returns Absolute CDN URL.
|
|
2300
|
+
*/
|
|
2301
|
+
declare function assetUrl(path: string): string;
|
|
2302
|
+
|
|
2303
|
+
declare const MapCoordinate3DSchema: z.ZodObject<{
|
|
2304
|
+
x: z.ZodNumber;
|
|
2305
|
+
y: z.ZodNumber;
|
|
2306
|
+
z: z.ZodNumber;
|
|
2307
|
+
}, z.core.$strip>;
|
|
2308
|
+
type MapCoordinate3D = z.infer<typeof MapCoordinate3DSchema>;
|
|
2309
|
+
|
|
2310
|
+
declare const PaginationControllerSchema: z.ZodObject<{
|
|
2311
|
+
count: z.ZodNumber;
|
|
2312
|
+
current_count: z.ZodNumber;
|
|
2313
|
+
pages: z.ZodNumber;
|
|
2314
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
2315
|
+
current: z.ZodNumber;
|
|
2316
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
2317
|
+
}, z.core.$strip>;
|
|
2318
|
+
type PaginationController = z.infer<typeof PaginationControllerSchema>;
|
|
2319
|
+
declare const PaginatedQueryOptionsSchema: z.ZodObject<{
|
|
2320
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
2321
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
2322
|
+
}, z.core.$strip>;
|
|
2323
|
+
type PaginatedQueryOptions = z.infer<typeof PaginatedQueryOptionsSchema>;
|
|
2324
|
+
declare const PaginatedItemQueryOptionsSchema: z.ZodObject<{
|
|
2325
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
2326
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
2327
|
+
}, z.core.$strip>;
|
|
2328
|
+
type PaginatedItemQueryOptions = PaginatedQueryOptions;
|
|
2329
|
+
declare const PaginatedRecipeQueryOptionsSchema: z.ZodObject<{
|
|
2330
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
2331
|
+
fullResult: z.ZodOptional<z.ZodBoolean>;
|
|
2332
|
+
}, z.core.$strip>;
|
|
2333
|
+
type PaginatedRecipeQueryOptions = PaginatedQueryOptions;
|
|
2334
|
+
|
|
2335
|
+
declare const AbilityIconSchema: z.ZodObject<{
|
|
2336
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2337
|
+
value: z.ZodObject<{
|
|
2338
|
+
id: z.ZodString;
|
|
2339
|
+
name: z.ZodString;
|
|
2340
|
+
customModelData: z.ZodObject<{
|
|
2341
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
2342
|
+
}, z.core.$strip>;
|
|
2343
|
+
}, z.core.$strip>;
|
|
2344
|
+
format: z.ZodString;
|
|
2345
|
+
}, z.core.$strip>;
|
|
2346
|
+
type AbilityIcon = z.infer<typeof AbilityIconSchema>;
|
|
2347
|
+
declare const AbilityMapNodeSchema: z.ZodObject<{
|
|
2348
|
+
type: z.ZodEnum<{
|
|
2349
|
+
ability: "ability";
|
|
2350
|
+
connector: "connector";
|
|
2351
|
+
}>;
|
|
2352
|
+
coordinates: z.ZodObject<{
|
|
2353
|
+
x: z.ZodNumber;
|
|
2354
|
+
y: z.ZodNumber;
|
|
2355
|
+
}, z.core.$strip>;
|
|
2356
|
+
meta: z.ZodObject<{
|
|
2357
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2358
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2359
|
+
value: z.ZodObject<{
|
|
2360
|
+
id: z.ZodString;
|
|
2361
|
+
name: z.ZodString;
|
|
2362
|
+
customModelData: z.ZodObject<{
|
|
2363
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
2364
|
+
}, z.core.$strip>;
|
|
2365
|
+
}, z.core.$strip>;
|
|
2366
|
+
format: z.ZodString;
|
|
2367
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
2368
|
+
page: z.ZodNumber;
|
|
2369
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2370
|
+
}, z.core.$strip>;
|
|
2371
|
+
family: z.ZodArray<z.ZodString>;
|
|
2372
|
+
}, z.core.$strip>;
|
|
2373
|
+
type AbilityMapNode = z.infer<typeof AbilityMapNodeSchema>;
|
|
2374
|
+
declare const AbilityMapPagesSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
2375
|
+
type: z.ZodEnum<{
|
|
2376
|
+
ability: "ability";
|
|
2377
|
+
connector: "connector";
|
|
2378
|
+
}>;
|
|
2379
|
+
coordinates: z.ZodObject<{
|
|
2380
|
+
x: z.ZodNumber;
|
|
2381
|
+
y: z.ZodNumber;
|
|
2382
|
+
}, z.core.$strip>;
|
|
2383
|
+
meta: z.ZodObject<{
|
|
2384
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2385
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
value: z.ZodObject<{
|
|
2387
|
+
id: z.ZodString;
|
|
2388
|
+
name: z.ZodString;
|
|
2389
|
+
customModelData: z.ZodObject<{
|
|
2390
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
2391
|
+
}, z.core.$strip>;
|
|
2392
|
+
}, z.core.$strip>;
|
|
2393
|
+
format: z.ZodString;
|
|
2394
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
2395
|
+
page: z.ZodNumber;
|
|
2396
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2397
|
+
}, z.core.$strip>;
|
|
2398
|
+
family: z.ZodArray<z.ZodString>;
|
|
2399
|
+
}, z.core.$strip>>>;
|
|
2400
|
+
type AbilityMapPages = z.infer<typeof AbilityMapPagesSchema>;
|
|
2401
|
+
|
|
2402
|
+
declare const IdentificationValueSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2403
|
+
min: z.ZodNumber;
|
|
2404
|
+
raw: z.ZodNumber;
|
|
2405
|
+
max: z.ZodNumber;
|
|
2406
|
+
}, z.core.$strip>]>;
|
|
2407
|
+
type IdentificationValue = z.infer<typeof IdentificationValueSchema>;
|
|
2408
|
+
declare const ItemSchema: z.ZodObject<{
|
|
2409
|
+
displayName: z.ZodString;
|
|
2410
|
+
internalName: z.ZodString;
|
|
2411
|
+
type: z.ZodString;
|
|
2412
|
+
subType: z.ZodString;
|
|
2413
|
+
icon: z.ZodObject<{
|
|
2414
|
+
value: z.ZodObject<{
|
|
2415
|
+
id: z.ZodString;
|
|
2416
|
+
name: z.ZodString;
|
|
2417
|
+
customModelData: z.ZodObject<{
|
|
2418
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
2419
|
+
}, z.core.$strip>;
|
|
2420
|
+
}, z.core.$strip>;
|
|
2421
|
+
format: z.ZodString;
|
|
2422
|
+
}, z.core.$strip>;
|
|
2423
|
+
emblem: z.ZodString;
|
|
2424
|
+
tier: z.ZodString;
|
|
2425
|
+
attackSpeed: z.ZodOptional<z.ZodString>;
|
|
2426
|
+
averageDps: z.ZodOptional<z.ZodNumber>;
|
|
2427
|
+
restriction: z.ZodOptional<z.ZodString>;
|
|
2428
|
+
dropRestriction: z.ZodOptional<z.ZodString>;
|
|
2429
|
+
gathering: z.ZodOptional<z.ZodString>;
|
|
2430
|
+
set: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2432
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
2433
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
2434
|
+
classRequirement: z.ZodOptional<z.ZodString>;
|
|
2435
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
2436
|
+
dexterity: z.ZodOptional<z.ZodNumber>;
|
|
2437
|
+
intelligence: z.ZodOptional<z.ZodNumber>;
|
|
2438
|
+
defence: z.ZodOptional<z.ZodNumber>;
|
|
2439
|
+
agility: z.ZodOptional<z.ZodNumber>;
|
|
2440
|
+
}, z.core.$strip>>;
|
|
2441
|
+
majorIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2442
|
+
powderSlots: z.ZodOptional<z.ZodNumber>;
|
|
2443
|
+
lore: z.ZodOptional<z.ZodString>;
|
|
2444
|
+
identifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2445
|
+
min: z.ZodNumber;
|
|
2446
|
+
raw: z.ZodNumber;
|
|
2447
|
+
max: z.ZodNumber;
|
|
2448
|
+
}, z.core.$strip>]>>>;
|
|
2449
|
+
base: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2450
|
+
min: z.ZodNumber;
|
|
2451
|
+
raw: z.ZodNumber;
|
|
2452
|
+
max: z.ZodNumber;
|
|
2453
|
+
}, z.core.$strip>]>>>;
|
|
2454
|
+
}, z.core.$strip>;
|
|
2455
|
+
type Item = z.infer<typeof ItemSchema>;
|
|
2456
|
+
declare const ItemListSchema: z.ZodArray<z.ZodObject<{
|
|
2457
|
+
displayName: z.ZodString;
|
|
2458
|
+
internalName: z.ZodString;
|
|
2459
|
+
type: z.ZodString;
|
|
2460
|
+
subType: z.ZodString;
|
|
2461
|
+
icon: z.ZodObject<{
|
|
2462
|
+
value: z.ZodObject<{
|
|
2463
|
+
id: z.ZodString;
|
|
2464
|
+
name: z.ZodString;
|
|
2465
|
+
customModelData: z.ZodObject<{
|
|
2466
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
2467
|
+
}, z.core.$strip>;
|
|
2468
|
+
}, z.core.$strip>;
|
|
2469
|
+
format: z.ZodString;
|
|
2470
|
+
}, z.core.$strip>;
|
|
2471
|
+
emblem: z.ZodString;
|
|
2472
|
+
tier: z.ZodString;
|
|
2473
|
+
attackSpeed: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
averageDps: z.ZodOptional<z.ZodNumber>;
|
|
2475
|
+
restriction: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
dropRestriction: z.ZodOptional<z.ZodString>;
|
|
2477
|
+
gathering: z.ZodOptional<z.ZodString>;
|
|
2478
|
+
set: z.ZodOptional<z.ZodString>;
|
|
2479
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2480
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
2481
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
2482
|
+
classRequirement: z.ZodOptional<z.ZodString>;
|
|
2483
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
2484
|
+
dexterity: z.ZodOptional<z.ZodNumber>;
|
|
2485
|
+
intelligence: z.ZodOptional<z.ZodNumber>;
|
|
2486
|
+
defence: z.ZodOptional<z.ZodNumber>;
|
|
2487
|
+
agility: z.ZodOptional<z.ZodNumber>;
|
|
2488
|
+
}, z.core.$strip>>;
|
|
2489
|
+
majorIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2490
|
+
powderSlots: z.ZodOptional<z.ZodNumber>;
|
|
2491
|
+
lore: z.ZodOptional<z.ZodString>;
|
|
2492
|
+
identifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2493
|
+
min: z.ZodNumber;
|
|
2494
|
+
raw: z.ZodNumber;
|
|
2495
|
+
max: z.ZodNumber;
|
|
2496
|
+
}, z.core.$strip>]>>>;
|
|
2497
|
+
base: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2498
|
+
min: z.ZodNumber;
|
|
2499
|
+
raw: z.ZodNumber;
|
|
2500
|
+
max: z.ZodNumber;
|
|
2501
|
+
}, z.core.$strip>]>>>;
|
|
2502
|
+
}, z.core.$strip>>;
|
|
2503
|
+
type ItemList = z.infer<typeof ItemListSchema>;
|
|
2504
|
+
declare const PaginatedItemResponseSchema: z.ZodObject<{
|
|
2505
|
+
controller: z.ZodObject<{
|
|
2506
|
+
count: z.ZodNumber;
|
|
2507
|
+
current_count: z.ZodNumber;
|
|
2508
|
+
pages: z.ZodNumber;
|
|
2509
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
2510
|
+
current: z.ZodNumber;
|
|
2511
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
2512
|
+
}, z.core.$strip>;
|
|
2513
|
+
results: z.ZodArray<z.ZodObject<{
|
|
2514
|
+
displayName: z.ZodString;
|
|
2515
|
+
internalName: z.ZodString;
|
|
2516
|
+
type: z.ZodString;
|
|
2517
|
+
subType: z.ZodString;
|
|
2518
|
+
icon: z.ZodObject<{
|
|
2519
|
+
value: z.ZodObject<{
|
|
2520
|
+
id: z.ZodString;
|
|
2521
|
+
name: z.ZodString;
|
|
2522
|
+
customModelData: z.ZodObject<{
|
|
2523
|
+
rangeDispatch: z.ZodArray<z.ZodNumber>;
|
|
2524
|
+
}, z.core.$strip>;
|
|
2525
|
+
}, z.core.$strip>;
|
|
2526
|
+
format: z.ZodString;
|
|
2527
|
+
}, z.core.$strip>;
|
|
2528
|
+
emblem: z.ZodString;
|
|
2529
|
+
tier: z.ZodString;
|
|
2530
|
+
attackSpeed: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
averageDps: z.ZodOptional<z.ZodNumber>;
|
|
2532
|
+
restriction: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
dropRestriction: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
gathering: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
set: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2537
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
2538
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
2539
|
+
classRequirement: z.ZodOptional<z.ZodString>;
|
|
2540
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
2541
|
+
dexterity: z.ZodOptional<z.ZodNumber>;
|
|
2542
|
+
intelligence: z.ZodOptional<z.ZodNumber>;
|
|
2543
|
+
defence: z.ZodOptional<z.ZodNumber>;
|
|
2544
|
+
agility: z.ZodOptional<z.ZodNumber>;
|
|
2545
|
+
}, z.core.$strip>>;
|
|
2546
|
+
majorIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2547
|
+
powderSlots: z.ZodOptional<z.ZodNumber>;
|
|
2548
|
+
lore: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
identifications: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2550
|
+
min: z.ZodNumber;
|
|
2551
|
+
raw: z.ZodNumber;
|
|
2552
|
+
max: z.ZodNumber;
|
|
2553
|
+
}, z.core.$strip>]>>>;
|
|
2554
|
+
base: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
2555
|
+
min: z.ZodNumber;
|
|
2556
|
+
raw: z.ZodNumber;
|
|
2557
|
+
max: z.ZodNumber;
|
|
2558
|
+
}, z.core.$strip>]>>>;
|
|
2559
|
+
}, z.core.$strip>>;
|
|
2560
|
+
}, z.core.$strip>;
|
|
2561
|
+
type PaginatedItemResponse = z.infer<typeof PaginatedItemResponseSchema>;
|
|
2562
|
+
|
|
2563
|
+
declare const RecipeSchema: z.ZodObject<{
|
|
2564
|
+
internalName: z.ZodString;
|
|
2565
|
+
type: z.ZodString;
|
|
2566
|
+
skill: z.ZodString;
|
|
2567
|
+
level: z.ZodObject<{
|
|
2568
|
+
minimum: z.ZodNumber;
|
|
2569
|
+
maximum: z.ZodNumber;
|
|
2570
|
+
}, z.core.$strip>;
|
|
2571
|
+
durability: z.ZodOptional<z.ZodObject<{
|
|
2572
|
+
minimum: z.ZodNumber;
|
|
2573
|
+
maximum: z.ZodNumber;
|
|
2574
|
+
}, z.core.$strip>>;
|
|
2575
|
+
materials: z.ZodArray<z.ZodObject<{
|
|
2576
|
+
item: z.ZodString;
|
|
2577
|
+
amount: z.ZodNumber;
|
|
2578
|
+
}, z.core.$strip>>;
|
|
2579
|
+
healthOrDamage: z.ZodObject<{
|
|
2580
|
+
minimum: z.ZodNumber;
|
|
2581
|
+
maximum: z.ZodNumber;
|
|
2582
|
+
}, z.core.$strip>;
|
|
2583
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
2584
|
+
minimum: z.ZodNumber;
|
|
2585
|
+
maximum: z.ZodNumber;
|
|
2586
|
+
}, z.core.$strip>>;
|
|
2587
|
+
basicDuration: z.ZodOptional<z.ZodObject<{
|
|
2588
|
+
minimum: z.ZodNumber;
|
|
2589
|
+
maximum: z.ZodNumber;
|
|
2590
|
+
}, z.core.$strip>>;
|
|
2591
|
+
sprites: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2592
|
+
format: z.ZodString;
|
|
2593
|
+
value: z.ZodObject<{
|
|
2594
|
+
id: z.ZodString;
|
|
2595
|
+
customModelData: z.ZodNumber;
|
|
2596
|
+
name: z.ZodString;
|
|
2597
|
+
}, z.core.$strip>;
|
|
2598
|
+
name: z.ZodString;
|
|
2599
|
+
}, z.core.$strip>>;
|
|
2600
|
+
xp: z.ZodNumber;
|
|
2601
|
+
}, z.core.$strip>;
|
|
2602
|
+
type Recipe = z.infer<typeof RecipeSchema>;
|
|
2603
|
+
declare const RecipeListSchema: z.ZodArray<z.ZodObject<{
|
|
2604
|
+
internalName: z.ZodString;
|
|
2605
|
+
type: z.ZodString;
|
|
2606
|
+
skill: z.ZodString;
|
|
2607
|
+
level: z.ZodObject<{
|
|
2608
|
+
minimum: z.ZodNumber;
|
|
2609
|
+
maximum: z.ZodNumber;
|
|
2610
|
+
}, z.core.$strip>;
|
|
2611
|
+
durability: z.ZodOptional<z.ZodObject<{
|
|
2612
|
+
minimum: z.ZodNumber;
|
|
2613
|
+
maximum: z.ZodNumber;
|
|
2614
|
+
}, z.core.$strip>>;
|
|
2615
|
+
materials: z.ZodArray<z.ZodObject<{
|
|
2616
|
+
item: z.ZodString;
|
|
2617
|
+
amount: z.ZodNumber;
|
|
2618
|
+
}, z.core.$strip>>;
|
|
2619
|
+
healthOrDamage: z.ZodObject<{
|
|
2620
|
+
minimum: z.ZodNumber;
|
|
2621
|
+
maximum: z.ZodNumber;
|
|
2622
|
+
}, z.core.$strip>;
|
|
2623
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
2624
|
+
minimum: z.ZodNumber;
|
|
2625
|
+
maximum: z.ZodNumber;
|
|
2626
|
+
}, z.core.$strip>>;
|
|
2627
|
+
basicDuration: z.ZodOptional<z.ZodObject<{
|
|
2628
|
+
minimum: z.ZodNumber;
|
|
2629
|
+
maximum: z.ZodNumber;
|
|
2630
|
+
}, z.core.$strip>>;
|
|
2631
|
+
sprites: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2632
|
+
format: z.ZodString;
|
|
2633
|
+
value: z.ZodObject<{
|
|
2634
|
+
id: z.ZodString;
|
|
2635
|
+
customModelData: z.ZodNumber;
|
|
2636
|
+
name: z.ZodString;
|
|
2637
|
+
}, z.core.$strip>;
|
|
2638
|
+
name: z.ZodString;
|
|
2639
|
+
}, z.core.$strip>>;
|
|
2640
|
+
xp: z.ZodNumber;
|
|
2641
|
+
}, z.core.$strip>>;
|
|
2642
|
+
type RecipeList = z.infer<typeof RecipeListSchema>;
|
|
2643
|
+
declare const PaginatedRecipeResponseSchema: z.ZodObject<{
|
|
2644
|
+
controller: z.ZodObject<{
|
|
2645
|
+
count: z.ZodNumber;
|
|
2646
|
+
current_count: z.ZodNumber;
|
|
2647
|
+
pages: z.ZodNumber;
|
|
2648
|
+
prev: z.ZodNullable<z.ZodNumber>;
|
|
2649
|
+
current: z.ZodNumber;
|
|
2650
|
+
next: z.ZodNullable<z.ZodNumber>;
|
|
2651
|
+
}, z.core.$strip>;
|
|
2652
|
+
results: z.ZodArray<z.ZodObject<{
|
|
2653
|
+
internalName: z.ZodString;
|
|
2654
|
+
type: z.ZodString;
|
|
2655
|
+
skill: z.ZodString;
|
|
2656
|
+
level: z.ZodObject<{
|
|
2657
|
+
minimum: z.ZodNumber;
|
|
2658
|
+
maximum: z.ZodNumber;
|
|
2659
|
+
}, z.core.$strip>;
|
|
2660
|
+
durability: z.ZodOptional<z.ZodObject<{
|
|
2661
|
+
minimum: z.ZodNumber;
|
|
2662
|
+
maximum: z.ZodNumber;
|
|
2663
|
+
}, z.core.$strip>>;
|
|
2664
|
+
materials: z.ZodArray<z.ZodObject<{
|
|
2665
|
+
item: z.ZodString;
|
|
2666
|
+
amount: z.ZodNumber;
|
|
2667
|
+
}, z.core.$strip>>;
|
|
2668
|
+
healthOrDamage: z.ZodObject<{
|
|
2669
|
+
minimum: z.ZodNumber;
|
|
2670
|
+
maximum: z.ZodNumber;
|
|
2671
|
+
}, z.core.$strip>;
|
|
2672
|
+
duration: z.ZodOptional<z.ZodObject<{
|
|
2673
|
+
minimum: z.ZodNumber;
|
|
2674
|
+
maximum: z.ZodNumber;
|
|
2675
|
+
}, z.core.$strip>>;
|
|
2676
|
+
basicDuration: z.ZodOptional<z.ZodObject<{
|
|
2677
|
+
minimum: z.ZodNumber;
|
|
2678
|
+
maximum: z.ZodNumber;
|
|
2679
|
+
}, z.core.$strip>>;
|
|
2680
|
+
sprites: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2681
|
+
format: z.ZodString;
|
|
2682
|
+
value: z.ZodObject<{
|
|
2683
|
+
id: z.ZodString;
|
|
2684
|
+
customModelData: z.ZodNumber;
|
|
2685
|
+
name: z.ZodString;
|
|
2686
|
+
}, z.core.$strip>;
|
|
2687
|
+
name: z.ZodString;
|
|
2688
|
+
}, z.core.$strip>>;
|
|
2689
|
+
xp: z.ZodNumber;
|
|
2690
|
+
}, z.core.$strip>>;
|
|
2691
|
+
}, z.core.$strip>;
|
|
2692
|
+
type PaginatedRecipeResponse = z.infer<typeof PaginatedRecipeResponseSchema>;
|
|
2693
|
+
|
|
2694
|
+
declare const WorldEventRequirementSchema: z.ZodObject<{
|
|
2695
|
+
type: z.ZodString;
|
|
2696
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
2697
|
+
}, z.core.$strip>;
|
|
2698
|
+
type WorldEventRequirement = z.infer<typeof WorldEventRequirementSchema>;
|
|
2699
|
+
declare const LootPoolRewardSchema: z.ZodObject<{
|
|
2700
|
+
name: z.ZodString;
|
|
2701
|
+
type: z.ZodString;
|
|
2702
|
+
amount: z.ZodNumber;
|
|
2703
|
+
always: z.ZodBoolean;
|
|
2704
|
+
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2705
|
+
shiny: z.ZodOptional<z.ZodBoolean>;
|
|
2706
|
+
}, z.core.$strip>;
|
|
2707
|
+
type LootPoolReward = z.infer<typeof LootPoolRewardSchema>;
|
|
2708
|
+
declare const MapLootPoolQueryOptionsSchema: z.ZodObject<{
|
|
2709
|
+
level: z.ZodOptional<z.ZodNumber>;
|
|
2710
|
+
}, z.core.$strip>;
|
|
2711
|
+
type MapLootPoolQueryOptions = z.infer<typeof MapLootPoolQueryOptionsSchema>;
|
|
2712
|
+
declare const MapLootPoolContentSchema: z.ZodObject<{
|
|
2713
|
+
name: z.ZodString;
|
|
2714
|
+
internalName: z.ZodString;
|
|
2715
|
+
type: z.ZodString;
|
|
2716
|
+
lore: z.ZodNullable<z.ZodString>;
|
|
2717
|
+
difficulty: z.ZodNullable<z.ZodString>;
|
|
2718
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
2719
|
+
length: z.ZodNullable<z.ZodString>;
|
|
2720
|
+
requirements: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2721
|
+
type: z.ZodString;
|
|
2722
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
2723
|
+
}, z.core.$strip>>>;
|
|
2724
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
2725
|
+
x: z.ZodNumber;
|
|
2726
|
+
y: z.ZodNumber;
|
|
2727
|
+
z: z.ZodNumber;
|
|
2728
|
+
}, z.core.$strip>>;
|
|
2729
|
+
rewards: z.ZodArray<z.ZodObject<{
|
|
2730
|
+
name: z.ZodString;
|
|
2731
|
+
type: z.ZodString;
|
|
2732
|
+
amount: z.ZodNumber;
|
|
2733
|
+
always: z.ZodBoolean;
|
|
2734
|
+
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2735
|
+
shiny: z.ZodOptional<z.ZodBoolean>;
|
|
2736
|
+
}, z.core.$strip>>;
|
|
2737
|
+
}, z.core.$strip>;
|
|
2738
|
+
type MapLootPoolContent = z.infer<typeof MapLootPoolContentSchema>;
|
|
2739
|
+
declare const LootPoolSchema: z.ZodObject<{
|
|
2740
|
+
name: z.ZodString;
|
|
2741
|
+
internalName: z.ZodString;
|
|
2742
|
+
type: z.ZodString;
|
|
2743
|
+
rewards: z.ZodArray<z.ZodObject<{
|
|
2744
|
+
name: z.ZodString;
|
|
2745
|
+
type: z.ZodString;
|
|
2746
|
+
amount: z.ZodNumber;
|
|
2747
|
+
always: z.ZodBoolean;
|
|
2748
|
+
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2749
|
+
shiny: z.ZodOptional<z.ZodBoolean>;
|
|
2750
|
+
}, z.core.$strip>>;
|
|
2751
|
+
}, z.core.$strip>;
|
|
2752
|
+
type LootPool = z.infer<typeof LootPoolSchema>;
|
|
2753
|
+
declare const WorldEventSchema: z.ZodObject<{
|
|
2754
|
+
name: z.ZodString;
|
|
2755
|
+
internalName: z.ZodString;
|
|
2756
|
+
lore: z.ZodString;
|
|
2757
|
+
difficulty: z.ZodNullable<z.ZodString>;
|
|
2758
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
2759
|
+
length: z.ZodNullable<z.ZodString>;
|
|
2760
|
+
rewardPerLevel: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2761
|
+
requirements: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2762
|
+
type: z.ZodString;
|
|
2763
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
2764
|
+
}, z.core.$strip>>>;
|
|
2765
|
+
location: z.ZodArray<z.ZodObject<{
|
|
2766
|
+
event: z.ZodUnion<readonly [z.ZodObject<{
|
|
2767
|
+
x: z.ZodNumber;
|
|
2768
|
+
y: z.ZodNumber;
|
|
2769
|
+
z: z.ZodNumber;
|
|
2770
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
2771
|
+
spawn: z.ZodUnion<readonly [z.ZodObject<{
|
|
2772
|
+
x: z.ZodNumber;
|
|
2773
|
+
y: z.ZodNumber;
|
|
2774
|
+
z: z.ZodNumber;
|
|
2775
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
2776
|
+
reward: z.ZodUnion<readonly [z.ZodObject<{
|
|
2777
|
+
x: z.ZodNumber;
|
|
2778
|
+
y: z.ZodNumber;
|
|
2779
|
+
z: z.ZodNumber;
|
|
2780
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
2781
|
+
radius: z.ZodNullable<z.ZodNumber>;
|
|
2782
|
+
spawnRadius: z.ZodNullable<z.ZodNumber>;
|
|
2783
|
+
}, z.core.$strip>>;
|
|
2784
|
+
schedule: z.ZodNullable<z.ZodString>;
|
|
2785
|
+
}, z.core.$strip>;
|
|
2786
|
+
type WorldEvent = z.infer<typeof WorldEventSchema>;
|
|
2787
|
+
declare const PlayerLocationMemberSchema: z.ZodObject<{
|
|
2788
|
+
uuid: z.ZodUUID;
|
|
2789
|
+
name: z.ZodString;
|
|
2790
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
2791
|
+
character: z.ZodUUID;
|
|
2792
|
+
server: z.ZodNullable<z.ZodString>;
|
|
2793
|
+
x: z.ZodNumber;
|
|
2794
|
+
y: z.ZodNumber;
|
|
2795
|
+
z: z.ZodNumber;
|
|
2796
|
+
}, z.core.$strip>;
|
|
2797
|
+
type PlayerLocationMember = z.infer<typeof PlayerLocationMemberSchema>;
|
|
2798
|
+
declare const PlayerLocationSchema: z.ZodObject<{
|
|
2799
|
+
uuid: z.ZodUUID;
|
|
2800
|
+
name: z.ZodString;
|
|
2801
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
2802
|
+
character: z.ZodUUID;
|
|
2803
|
+
server: z.ZodNullable<z.ZodString>;
|
|
2804
|
+
x: z.ZodNumber;
|
|
2805
|
+
y: z.ZodNumber;
|
|
2806
|
+
z: z.ZodNumber;
|
|
2807
|
+
friends: z.ZodArray<z.ZodObject<{
|
|
2808
|
+
uuid: z.ZodUUID;
|
|
2809
|
+
name: z.ZodString;
|
|
2810
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
2811
|
+
character: z.ZodUUID;
|
|
2812
|
+
server: z.ZodNullable<z.ZodString>;
|
|
2813
|
+
x: z.ZodNumber;
|
|
2814
|
+
y: z.ZodNumber;
|
|
2815
|
+
z: z.ZodNumber;
|
|
2816
|
+
}, z.core.$strip>>;
|
|
2817
|
+
party: z.ZodArray<z.ZodObject<{
|
|
2818
|
+
uuid: z.ZodUUID;
|
|
2819
|
+
name: z.ZodString;
|
|
2820
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
2821
|
+
character: z.ZodUUID;
|
|
2822
|
+
server: z.ZodNullable<z.ZodString>;
|
|
2823
|
+
x: z.ZodNumber;
|
|
2824
|
+
y: z.ZodNumber;
|
|
2825
|
+
z: z.ZodNumber;
|
|
2826
|
+
}, z.core.$strip>>;
|
|
2827
|
+
guild: z.ZodArray<z.ZodObject<{
|
|
2828
|
+
uuid: z.ZodUUID;
|
|
2829
|
+
name: z.ZodString;
|
|
2830
|
+
nickname: z.ZodNullable<z.ZodString>;
|
|
2831
|
+
character: z.ZodUUID;
|
|
2832
|
+
server: z.ZodNullable<z.ZodString>;
|
|
2833
|
+
x: z.ZodNumber;
|
|
2834
|
+
y: z.ZodNumber;
|
|
2835
|
+
z: z.ZodNumber;
|
|
2836
|
+
}, z.core.$strip>>;
|
|
2837
|
+
}, z.core.$strip>;
|
|
2838
|
+
type PlayerLocation = z.infer<typeof PlayerLocationSchema>;
|
|
2839
|
+
declare const GatheringNodeSchema: z.ZodObject<{
|
|
2840
|
+
x: z.ZodNumber;
|
|
2841
|
+
y: z.ZodNumber;
|
|
2842
|
+
z: z.ZodNumber;
|
|
2843
|
+
angle: z.ZodNumber;
|
|
2844
|
+
type: z.ZodEnum<{
|
|
2845
|
+
NODE: "NODE";
|
|
2846
|
+
WALL: "WALL";
|
|
2847
|
+
CORNER: "CORNER";
|
|
2848
|
+
}>;
|
|
2849
|
+
resource: z.ZodString;
|
|
2850
|
+
level: z.ZodNumber;
|
|
2851
|
+
}, z.core.$strip>;
|
|
2852
|
+
type GatheringNode = z.infer<typeof GatheringNodeSchema>;
|
|
2853
|
+
declare const MapMarkerSchema: z.ZodObject<{
|
|
2854
|
+
name: z.ZodString;
|
|
2855
|
+
icon: z.ZodString;
|
|
2856
|
+
x: z.ZodString;
|
|
2857
|
+
y: z.ZodString;
|
|
2858
|
+
z: z.ZodString;
|
|
2859
|
+
}, z.core.$strip>;
|
|
2860
|
+
type MapMarker = z.infer<typeof MapMarkerSchema>;
|
|
2861
|
+
|
|
2862
|
+
export { API_BASE_URL, type AbilityIcon, AbilityIconSchema, type AbilityMapNode, AbilityMapNodeSchema, type AbilityMapPages, AbilityMapPagesSchema, CDN_BASE_URL, type ClassName, ClassNameSchema, type ClassTree, ClassTreeSchema, type ExchangeOAuthTokenOptions, ExchangeOAuthTokenOptionsSchema, type ExchangeOAuthTokenResult, ExchangeOAuthTokenResultSchema, type FetchPublisherArticleResult, FetchPublisherArticleResultSchema, type GatheringNode, GatheringNodeSchema, type GetAbilityMapResult, GetAbilityMapResultSchema, type GetAbilityTreeResult, GetAbilityTreeResultSchema, type GetCharacterAbilitiesResult, GetCharacterAbilitiesResultSchema, type GetClassResult, GetClassResultSchema, type GetGuildOptions, GetGuildOptionsSchema, type GetItemMetadataOptions, GetItemMetadataOptionsSchema, type GetItemMetadataResult, type GetLeaderboardOptions, GetLeaderboardOptionsSchema, type GetLeaderboardResult, GetLeaderboardResultSchema, type GetOAuthIdentityResult, GetOAuthIdentityResultSchema, type GetPlayerOptions, GetPlayerOptionsSchema, type GetPlayerResult, GetPlayerResultSchema, type GetQuestCountResult, GetQuestCountResultSchema, type GlobalSearchOptions, GlobalSearchOptionsSchema, type GlobalSearchResult, GlobalSearchResultSchema, type GuildResult, GuildResultSchema, type IdentificationValue, IdentificationValueSchema, type Item, type ItemList, ItemListSchema, type ItemMetadata, ItemMetadataSchema, ItemSchema, type ItemSearchRequest, ItemSearchRequestSchema, type ItemStaticMetadata, ItemStaticMetadataSchema, type KnownWynnApiError, type LeaderboardEntry, LeaderboardEntrySchema, type LegacyRankColour, LegacyRankColourSchema, type ListAspectsResult, ListAspectsResultSchema, type ListClassesResult, ListClassesResultSchema, type ListGatheringNodesResult, ListGatheringNodesResultSchema, type ListGuildSeasonsResult, ListGuildSeasonsResultSchema, type ListGuildTerritoriesResult, ListGuildTerritoriesResultSchema, type ListGuildsByNameResult, ListGuildsByNameResultSchema, type ListGuildsByUuidResult, ListGuildsByUuidResultSchema, type ListGuildsOptions, ListGuildsOptionsSchema, type ListGuildsResult, type ListItemSetsResult, ListItemSetsResultSchema, type ListItemsOptions, ListItemsOptionsSchema, type ListItemsResult, ListItemsResultSchema, type ListLatestNewsResult, ListLatestNewsResultSchema, type ListLeaderboardTypesResult, ListLeaderboardTypesResultSchema, type ListMapCampsOptions, ListMapCampsOptionsSchema, type ListMapCampsResult, ListMapCampsResultSchema, type ListMapLootPoolsOptions, ListMapLootPoolsOptionsSchema, type ListMapLootPoolsResult, ListMapLootPoolsResultSchema, type ListMapMarkersResult, ListMapMarkersResultSchema, type ListMapRaidsOptions, ListMapRaidsOptionsSchema, type ListMapRaidsResult, ListMapRaidsResultSchema, type ListOnlinePlayersOptions, ListOnlinePlayersOptionsSchema, type ListOnlinePlayersResult, ListOnlinePlayersResultSchema, type ListPlayerCharactersResult, ListPlayerCharactersResultSchema, type ListPlayerLocationsResult, ListPlayerLocationsResultSchema, type ListPublisherArticlesOptions, ListPublisherArticlesOptionsSchema, type ListPublisherArticlesResult, ListPublisherArticlesResultSchema, type ListPublisherVideosResult, ListPublisherVideosResultSchema, type ListRecipesOptions, ListRecipesOptionsSchema, type ListRecipesResult, ListRecipesResultSchema, type ListWorldEventsResult, ListWorldEventsResultSchema, type LootPool, type LootPoolReward, LootPoolRewardSchema, LootPoolSchema, type MapCoordinate3D, MapCoordinate3DSchema, type MapLootPoolContent, MapLootPoolContentSchema, type MapLootPoolQueryOptions, MapLootPoolQueryOptionsSchema, type MapMarker, MapMarkerSchema, type MultipleObjectsEntry, MultipleObjectsEntrySchema, type MultipleObjectsMap, MultipleObjectsMapSchema, type MultipleObjectsReturnedBody, MultipleObjectsReturnedBodySchema, type PaginatedItemQueryOptions, PaginatedItemQueryOptionsSchema, type PaginatedItemResponse, PaginatedItemResponseSchema, type PaginatedQueryOptions, PaginatedQueryOptionsSchema, type PaginatedRecipeQueryOptions, PaginatedRecipeQueryOptionsSchema, type PaginatedRecipeResponse, PaginatedRecipeResponseSchema, type PaginationController, PaginationControllerSchema, type PlayerIdentity, PlayerIdentitySchema, type PlayerLocation, type PlayerLocationMember, PlayerLocationMemberSchema, PlayerLocationSchema, type PublisherArticle, PublisherArticleSchema, type PublisherArticleSummary, PublisherArticleSummarySchema, type PublisherArticleType, PublisherArticleTypeSchema, type QuickSearchItemsResult, QuickSearchItemsResultSchema, type RateLimitInfo, type Recipe, type RecipeList, RecipeListSchema, RecipeSchema, type RecipeSearchRequest, RecipeSearchRequestSchema, type RequestConfig, type SearchItemsOptions, SearchItemsOptionsSchema, type SearchItemsResult, SearchItemsResultSchema, type SearchRecipesOptions, SearchRecipesOptionsSchema, type SearchRecipesResult, SearchRecipesResultSchema, WYNNCRAFT_API_VERSION, type WhoAmIResult, WhoAmIResultSchema, type WorldEvent, type WorldEventRequirement, WorldEventRequirementSchema, WorldEventSchema, WynnApiError, type WynnApiErrorBody, type WynnAuth, WynnClient, type WynnClientOptions, type WynnErrorName, type WynnHttpClient, type WynnResponse, assetUrl, toOAuthTokenFormBody };
|