guildwars2-ts 1.1.2 → 1.1.4

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 CHANGED
@@ -1,16 +1,16 @@
1
- ISC License
2
-
3
- Copyright (c) 2023 Ivan Sosnov
4
- Copyright (c) 2021 Julio Sansossio (parts of request base code)
5
-
6
- Permission to use, copy, modify, and/or distribute this software for any
7
- purpose with or without fee is hereby granted, provided that the above
8
- copyright notice and this permission notice appear in all copies.
9
-
10
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
- PERFORMANCE OF THIS SOFTWARE.
1
+ ISC License
2
+
3
+ Copyright (c) 2023 Ivan Sosnov
4
+ Copyright (c) 2021 Julio Sansossio (parts of request base code)
5
+
6
+ Permission to use, copy, modify, and/or distribute this software for any
7
+ purpose with or without fee is hereby granted, provided that the above
8
+ copyright notice and this permission notice appear in all copies.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
+ PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -20,10 +20,7 @@ const api: GW2Api = new GW2Api({
20
20
  // Token is not required for all of the endpoints
21
21
  token: "YOUR-TOKEN-HERE",
22
22
  language: ApiLanguage.English,
23
- rateLimit: {
24
- retry: true,
25
- attempts: 3,
26
- },
23
+ rateLimitRetry: true
27
24
  });
28
25
 
29
26
  (async () => {
@@ -42,12 +39,6 @@ const api: GW2Api = new GW2Api({
42
39
 
43
40
  If you find any kinds of errors in the program code, or wish to add/update any of the functionality provided by this project, please feel free to open a pull request. Validation error logs are extremely helpful, so please include them in the request
44
41
 
45
- ## Plans
46
- - Data caching for repeated requests
47
- - Better logging
48
- - Support for different schemas, when available
49
- - Endpoint structure rework (backend only)
50
-
51
42
  [npm-image]: https://img.shields.io/npm/v/guildwars2-ts
52
43
  [npm-link]: https://www.npmjs.com/package/guildwars2-ts
53
44
  [license]: https://img.shields.io/gitlab/license/dinckelman%2Fguildwars2-ts
package/dist/index.d.mts CHANGED
@@ -26,17 +26,8 @@ type UrlParams = Record<string, string | number | string[] | number[]>;
26
26
  interface ApiParams {
27
27
  token?: string;
28
28
  language?: ApiLanguage;
29
- rateLimit?: RatelimitParams;
29
+ rateLimitRetry?: boolean;
30
30
  }
31
- /**
32
- * Ratelimiting parameters
33
- */
34
- type RatelimitParams = {
35
- retry: true;
36
- attempts: number;
37
- } | {
38
- retry: false;
39
- };
40
31
 
41
32
  /**
42
33
  * Base Api object. Implements anything needed for the requests to all endpoints
@@ -340,6 +331,70 @@ declare class AccountApi extends ApiBase {
340
331
  id: number;
341
332
  value: number;
342
333
  }[]>;
334
+ /**
335
+ * Returns the current set of daily Wizard's Vault achievements for the account.
336
+ */
337
+ getWizardsVaultDaily(): Promise<{
338
+ objectives: {
339
+ id: number;
340
+ title: string;
341
+ track: string;
342
+ acclaim: number;
343
+ progress_current: number;
344
+ progress_complete: number;
345
+ claimed: boolean;
346
+ }[];
347
+ meta_progress_current: number;
348
+ meta_progress_complete: number;
349
+ meta_reward_item_id: number;
350
+ meta_reward_astral: number;
351
+ meta_reward_claimed: boolean;
352
+ }>;
353
+ /**
354
+ * Returns the current set of Wizard's Vault rewards, along with details about which have already been purchased by the account, and in what quantity.
355
+ */
356
+ getWizardsVaultListings(): Promise<{
357
+ id: number;
358
+ type: "Featured" | "Normal" | "Legacy";
359
+ item_id: number;
360
+ item_count: number;
361
+ cost: number;
362
+ purchased?: number | undefined;
363
+ purchase_limit?: number | undefined;
364
+ }[]>;
365
+ /**
366
+ * Returns the current set of special Wizard's Vault achievements for the account.
367
+ */
368
+ getWizardsVaultSpecial(): Promise<{
369
+ objectives: {
370
+ id: number;
371
+ title: string;
372
+ track: string;
373
+ acclaim: number;
374
+ progress_current: number;
375
+ progress_complete: number;
376
+ claimed: boolean;
377
+ }[];
378
+ }>;
379
+ /**
380
+ * Returns the current set of weekly Wizard's Vault achievements for the account.
381
+ */
382
+ getWizardsVaultWeekly(): Promise<{
383
+ objectives: {
384
+ id: number;
385
+ title: string;
386
+ track: string;
387
+ acclaim: number;
388
+ progress_current: number;
389
+ progress_complete: number;
390
+ claimed: boolean;
391
+ }[];
392
+ meta_progress_current: number;
393
+ meta_progress_complete: number;
394
+ meta_reward_item_id: number;
395
+ meta_reward_astral: number;
396
+ meta_reward_claimed: boolean;
397
+ }>;
343
398
  /**
344
399
  * Returns information about which world bosses have been killed by the account since daily-reset.
345
400
  */
@@ -433,16 +488,16 @@ declare const BackstoryAnswersDTO: z.ZodArray<z.ZodObject<{
433
488
  races: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
434
489
  }, "strip", z.ZodTypeAny, {
435
490
  id: string;
436
- description: string;
437
491
  title: string;
492
+ description: string;
438
493
  journal: string;
439
494
  question: number;
440
495
  professions?: string[] | undefined;
441
496
  races?: string[] | undefined;
442
497
  }, {
443
498
  id: string;
444
- description: string;
445
499
  title: string;
500
+ description: string;
446
501
  journal: string;
447
502
  question: number;
448
503
  professions?: string[] | undefined;
@@ -469,17 +524,17 @@ declare const BackstoryQuestionsDTO: z.ZodArray<z.ZodObject<{
469
524
  professions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
470
525
  }, "strip", z.ZodTypeAny, {
471
526
  id: number;
527
+ title: string;
472
528
  description: string;
473
529
  order: number;
474
- title: string;
475
530
  answers: string[];
476
531
  races?: string[] | undefined;
477
532
  professions?: string[] | undefined;
478
533
  }, {
479
534
  id: number;
535
+ title: string;
480
536
  description: string;
481
537
  order: number;
482
- title: string;
483
538
  answers: string[];
484
539
  races?: string[] | undefined;
485
540
  professions?: string[] | undefined;
@@ -5837,10 +5892,10 @@ declare const LegendaryArmoryDTO: z.ZodArray<z.ZodObject<{
5837
5892
  max_count: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<7>, z.ZodLiteral<8>]>;
5838
5893
  }, "strip", z.ZodTypeAny, {
5839
5894
  id: number;
5840
- max_count: 1 | 2 | 4 | 7 | 8;
5895
+ max_count: 4 | 2 | 1 | 7 | 8;
5841
5896
  }, {
5842
5897
  id: number;
5843
- max_count: 1 | 2 | 4 | 7 | 8;
5898
+ max_count: 4 | 2 | 1 | 7 | 8;
5844
5899
  }>, "many">;
5845
5900
 
5846
5901
  /**
@@ -6087,16 +6142,16 @@ declare const MinisDTO: z.ZodArray<z.ZodObject<{
6087
6142
  }, "strip", z.ZodTypeAny, {
6088
6143
  id: number;
6089
6144
  name: string;
6145
+ item_id: number;
6090
6146
  order: number;
6091
6147
  icon: string;
6092
- item_id: number;
6093
6148
  unlock?: string | undefined;
6094
6149
  }, {
6095
6150
  id: number;
6096
6151
  name: string;
6152
+ item_id: number;
6097
6153
  order: number;
6098
6154
  icon: string;
6099
- item_id: number;
6100
6155
  unlock?: string | undefined;
6101
6156
  }>, "many">;
6102
6157
 
@@ -9745,6 +9800,58 @@ declare const StoriesSeasonsDTO: z.ZodArray<z.ZodObject<{
9745
9800
  order: number;
9746
9801
  }>, "many">;
9747
9802
 
9803
+ /**
9804
+ * /v2/wizardsvault/listings definition
9805
+ */
9806
+ declare const WizardsVaultListingsDTO: z.ZodArray<z.ZodObject<{
9807
+ /** The listing id. */
9808
+ id: z.ZodNumber;
9809
+ /** The id of the item */
9810
+ item_id: z.ZodNumber;
9811
+ /** The quantity of the item the user receives */
9812
+ item_count: z.ZodNumber;
9813
+ /** Appears to be the position in the wizards vault UI. */
9814
+ type: z.ZodEnum<["Featured", "Normal", "Legacy"]>;
9815
+ /** The quantity of Astral Acclaim to purchase . */
9816
+ cost: z.ZodNumber;
9817
+ }, "strip", z.ZodTypeAny, {
9818
+ id: number;
9819
+ type: "Featured" | "Normal" | "Legacy";
9820
+ item_id: number;
9821
+ item_count: number;
9822
+ cost: number;
9823
+ }, {
9824
+ id: number;
9825
+ type: "Featured" | "Normal" | "Legacy";
9826
+ item_id: number;
9827
+ item_count: number;
9828
+ cost: number;
9829
+ }>, "many">;
9830
+
9831
+ /**
9832
+ * /v2/wizardsvault/objectives definition
9833
+ */
9834
+ declare const WizardsVaultObjectivesDTO: z.ZodArray<z.ZodObject<{
9835
+ /** The ID of the objective. */
9836
+ id: z.ZodNumber;
9837
+ /** The title of the objective. */
9838
+ title: z.ZodString;
9839
+ /** The reward track containing the objective. */
9840
+ track: z.ZodEnum<["PvP", "WvW", "PvE"]>;
9841
+ /** The amount of astral acclaim awarded. */
9842
+ acclaim: z.ZodNumber;
9843
+ }, "strip", z.ZodTypeAny, {
9844
+ id: number;
9845
+ title: string;
9846
+ track: "PvP" | "WvW" | "PvE";
9847
+ acclaim: number;
9848
+ }, {
9849
+ id: number;
9850
+ title: string;
9851
+ track: "PvP" | "WvW" | "PvE";
9852
+ acclaim: number;
9853
+ }>, "many">;
9854
+
9748
9855
  /**
9749
9856
  * /v2/wvw/abilities definition
9750
9857
  */
@@ -11021,8 +11128,8 @@ declare class GuildApi extends ApiBase {
11021
11128
  } | {
11022
11129
  type: "stash";
11023
11130
  count: number;
11024
- coins: number;
11025
11131
  item_id: number;
11132
+ coins: number;
11026
11133
  operation: "deposit" | "withdraw" | "move";
11027
11134
  } | {
11028
11135
  type: "motd";
@@ -12292,6 +12399,39 @@ declare class PvPApi extends ApiBase {
12292
12399
  }>;
12293
12400
  }
12294
12401
 
12402
+ declare class WizardsVaultApi extends ApiBase {
12403
+ /**
12404
+ * Returns information about the current Wizard's Vault season.
12405
+ */
12406
+ get(): Promise<{
12407
+ listings: number[];
12408
+ objectives: number[];
12409
+ title: string;
12410
+ start: string;
12411
+ end: string;
12412
+ }>;
12413
+ /**
12414
+ * Returns details about listings in the Wizard's Vault.
12415
+ */
12416
+ getListings(): Promise<z.infer<typeof numberArrayType>>;
12417
+ /**
12418
+ * Returns details about listings in the Wizard's Vault.
12419
+ *
12420
+ * @param ids - (optional) List of listing ids, or "all".
12421
+ */
12422
+ getListings(ids: number[] | 'all'): Promise<z.infer<typeof WizardsVaultListingsDTO>>;
12423
+ /**
12424
+ * Returns all Wizard's Vault's objectives in the game.
12425
+ */
12426
+ getObjectives(): Promise<z.infer<typeof numberArrayType>>;
12427
+ /**
12428
+ * Returns all Wizard's Vault's objectives in the game.
12429
+ *
12430
+ * @param ids - (optional) List of objective ids, or "all".
12431
+ */
12432
+ getObjectives(ids: number[] | 'all'): Promise<z.infer<typeof WizardsVaultObjectivesDTO>>;
12433
+ }
12434
+
12295
12435
  /**
12296
12436
  * /v2/wvw Api
12297
12437
  */
@@ -12518,6 +12658,8 @@ declare class GW2Api extends ApiBase {
12518
12658
  readonly tokenInfo: TokenInfoApi;
12519
12659
  /** /v2/traits Api */
12520
12660
  readonly traits: TraitsApi;
12661
+ /** /v2/wizardsvault Api */
12662
+ readonly wizardsVault: WizardsVaultApi;
12521
12663
  /** /v2/worldbosses Api */
12522
12664
  readonly worldBosses: WorldBossesApi;
12523
12665
  /** /v2/worlds Api */
@@ -12530,13 +12672,10 @@ declare class GW2Api extends ApiBase {
12530
12672
  * TSlog log level
12531
12673
  */
12532
12674
  declare enum LogLevel {
12533
- silly = 0,
12534
- trace = 1,
12535
- debug = 2,
12536
- info = 3,
12537
- warn = 4,
12538
12675
  error = 5,
12539
- fatal = 6
12676
+ warn = 4,
12677
+ info = 3,
12678
+ debug = 2
12540
12679
  }
12541
12680
  /**
12542
12681
  * Set logger level
@@ -12551,4 +12690,4 @@ declare const setLogLevel: (minLevel: LogLevel) => void;
12551
12690
  */
12552
12691
  declare const setPathLogging: (displayFilePath: boolean) => void;
12553
12692
 
12554
- export { ApiLanguage, ApiParams, GW2Api, LogLevel, RatelimitParams, UrlParams, setLogLevel, setPathLogging };
12693
+ export { ApiLanguage, type ApiParams, GW2Api, LogLevel, setLogLevel, setPathLogging };
package/dist/index.d.ts CHANGED
@@ -26,17 +26,8 @@ type UrlParams = Record<string, string | number | string[] | number[]>;
26
26
  interface ApiParams {
27
27
  token?: string;
28
28
  language?: ApiLanguage;
29
- rateLimit?: RatelimitParams;
29
+ rateLimitRetry?: boolean;
30
30
  }
31
- /**
32
- * Ratelimiting parameters
33
- */
34
- type RatelimitParams = {
35
- retry: true;
36
- attempts: number;
37
- } | {
38
- retry: false;
39
- };
40
31
 
41
32
  /**
42
33
  * Base Api object. Implements anything needed for the requests to all endpoints
@@ -340,6 +331,70 @@ declare class AccountApi extends ApiBase {
340
331
  id: number;
341
332
  value: number;
342
333
  }[]>;
334
+ /**
335
+ * Returns the current set of daily Wizard's Vault achievements for the account.
336
+ */
337
+ getWizardsVaultDaily(): Promise<{
338
+ objectives: {
339
+ id: number;
340
+ title: string;
341
+ track: string;
342
+ acclaim: number;
343
+ progress_current: number;
344
+ progress_complete: number;
345
+ claimed: boolean;
346
+ }[];
347
+ meta_progress_current: number;
348
+ meta_progress_complete: number;
349
+ meta_reward_item_id: number;
350
+ meta_reward_astral: number;
351
+ meta_reward_claimed: boolean;
352
+ }>;
353
+ /**
354
+ * Returns the current set of Wizard's Vault rewards, along with details about which have already been purchased by the account, and in what quantity.
355
+ */
356
+ getWizardsVaultListings(): Promise<{
357
+ id: number;
358
+ type: "Featured" | "Normal" | "Legacy";
359
+ item_id: number;
360
+ item_count: number;
361
+ cost: number;
362
+ purchased?: number | undefined;
363
+ purchase_limit?: number | undefined;
364
+ }[]>;
365
+ /**
366
+ * Returns the current set of special Wizard's Vault achievements for the account.
367
+ */
368
+ getWizardsVaultSpecial(): Promise<{
369
+ objectives: {
370
+ id: number;
371
+ title: string;
372
+ track: string;
373
+ acclaim: number;
374
+ progress_current: number;
375
+ progress_complete: number;
376
+ claimed: boolean;
377
+ }[];
378
+ }>;
379
+ /**
380
+ * Returns the current set of weekly Wizard's Vault achievements for the account.
381
+ */
382
+ getWizardsVaultWeekly(): Promise<{
383
+ objectives: {
384
+ id: number;
385
+ title: string;
386
+ track: string;
387
+ acclaim: number;
388
+ progress_current: number;
389
+ progress_complete: number;
390
+ claimed: boolean;
391
+ }[];
392
+ meta_progress_current: number;
393
+ meta_progress_complete: number;
394
+ meta_reward_item_id: number;
395
+ meta_reward_astral: number;
396
+ meta_reward_claimed: boolean;
397
+ }>;
343
398
  /**
344
399
  * Returns information about which world bosses have been killed by the account since daily-reset.
345
400
  */
@@ -433,16 +488,16 @@ declare const BackstoryAnswersDTO: z.ZodArray<z.ZodObject<{
433
488
  races: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
434
489
  }, "strip", z.ZodTypeAny, {
435
490
  id: string;
436
- description: string;
437
491
  title: string;
492
+ description: string;
438
493
  journal: string;
439
494
  question: number;
440
495
  professions?: string[] | undefined;
441
496
  races?: string[] | undefined;
442
497
  }, {
443
498
  id: string;
444
- description: string;
445
499
  title: string;
500
+ description: string;
446
501
  journal: string;
447
502
  question: number;
448
503
  professions?: string[] | undefined;
@@ -469,17 +524,17 @@ declare const BackstoryQuestionsDTO: z.ZodArray<z.ZodObject<{
469
524
  professions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
470
525
  }, "strip", z.ZodTypeAny, {
471
526
  id: number;
527
+ title: string;
472
528
  description: string;
473
529
  order: number;
474
- title: string;
475
530
  answers: string[];
476
531
  races?: string[] | undefined;
477
532
  professions?: string[] | undefined;
478
533
  }, {
479
534
  id: number;
535
+ title: string;
480
536
  description: string;
481
537
  order: number;
482
- title: string;
483
538
  answers: string[];
484
539
  races?: string[] | undefined;
485
540
  professions?: string[] | undefined;
@@ -5837,10 +5892,10 @@ declare const LegendaryArmoryDTO: z.ZodArray<z.ZodObject<{
5837
5892
  max_count: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<7>, z.ZodLiteral<8>]>;
5838
5893
  }, "strip", z.ZodTypeAny, {
5839
5894
  id: number;
5840
- max_count: 1 | 2 | 4 | 7 | 8;
5895
+ max_count: 4 | 2 | 1 | 7 | 8;
5841
5896
  }, {
5842
5897
  id: number;
5843
- max_count: 1 | 2 | 4 | 7 | 8;
5898
+ max_count: 4 | 2 | 1 | 7 | 8;
5844
5899
  }>, "many">;
5845
5900
 
5846
5901
  /**
@@ -6087,16 +6142,16 @@ declare const MinisDTO: z.ZodArray<z.ZodObject<{
6087
6142
  }, "strip", z.ZodTypeAny, {
6088
6143
  id: number;
6089
6144
  name: string;
6145
+ item_id: number;
6090
6146
  order: number;
6091
6147
  icon: string;
6092
- item_id: number;
6093
6148
  unlock?: string | undefined;
6094
6149
  }, {
6095
6150
  id: number;
6096
6151
  name: string;
6152
+ item_id: number;
6097
6153
  order: number;
6098
6154
  icon: string;
6099
- item_id: number;
6100
6155
  unlock?: string | undefined;
6101
6156
  }>, "many">;
6102
6157
 
@@ -9745,6 +9800,58 @@ declare const StoriesSeasonsDTO: z.ZodArray<z.ZodObject<{
9745
9800
  order: number;
9746
9801
  }>, "many">;
9747
9802
 
9803
+ /**
9804
+ * /v2/wizardsvault/listings definition
9805
+ */
9806
+ declare const WizardsVaultListingsDTO: z.ZodArray<z.ZodObject<{
9807
+ /** The listing id. */
9808
+ id: z.ZodNumber;
9809
+ /** The id of the item */
9810
+ item_id: z.ZodNumber;
9811
+ /** The quantity of the item the user receives */
9812
+ item_count: z.ZodNumber;
9813
+ /** Appears to be the position in the wizards vault UI. */
9814
+ type: z.ZodEnum<["Featured", "Normal", "Legacy"]>;
9815
+ /** The quantity of Astral Acclaim to purchase . */
9816
+ cost: z.ZodNumber;
9817
+ }, "strip", z.ZodTypeAny, {
9818
+ id: number;
9819
+ type: "Featured" | "Normal" | "Legacy";
9820
+ item_id: number;
9821
+ item_count: number;
9822
+ cost: number;
9823
+ }, {
9824
+ id: number;
9825
+ type: "Featured" | "Normal" | "Legacy";
9826
+ item_id: number;
9827
+ item_count: number;
9828
+ cost: number;
9829
+ }>, "many">;
9830
+
9831
+ /**
9832
+ * /v2/wizardsvault/objectives definition
9833
+ */
9834
+ declare const WizardsVaultObjectivesDTO: z.ZodArray<z.ZodObject<{
9835
+ /** The ID of the objective. */
9836
+ id: z.ZodNumber;
9837
+ /** The title of the objective. */
9838
+ title: z.ZodString;
9839
+ /** The reward track containing the objective. */
9840
+ track: z.ZodEnum<["PvP", "WvW", "PvE"]>;
9841
+ /** The amount of astral acclaim awarded. */
9842
+ acclaim: z.ZodNumber;
9843
+ }, "strip", z.ZodTypeAny, {
9844
+ id: number;
9845
+ title: string;
9846
+ track: "PvP" | "WvW" | "PvE";
9847
+ acclaim: number;
9848
+ }, {
9849
+ id: number;
9850
+ title: string;
9851
+ track: "PvP" | "WvW" | "PvE";
9852
+ acclaim: number;
9853
+ }>, "many">;
9854
+
9748
9855
  /**
9749
9856
  * /v2/wvw/abilities definition
9750
9857
  */
@@ -11021,8 +11128,8 @@ declare class GuildApi extends ApiBase {
11021
11128
  } | {
11022
11129
  type: "stash";
11023
11130
  count: number;
11024
- coins: number;
11025
11131
  item_id: number;
11132
+ coins: number;
11026
11133
  operation: "deposit" | "withdraw" | "move";
11027
11134
  } | {
11028
11135
  type: "motd";
@@ -12292,6 +12399,39 @@ declare class PvPApi extends ApiBase {
12292
12399
  }>;
12293
12400
  }
12294
12401
 
12402
+ declare class WizardsVaultApi extends ApiBase {
12403
+ /**
12404
+ * Returns information about the current Wizard's Vault season.
12405
+ */
12406
+ get(): Promise<{
12407
+ listings: number[];
12408
+ objectives: number[];
12409
+ title: string;
12410
+ start: string;
12411
+ end: string;
12412
+ }>;
12413
+ /**
12414
+ * Returns details about listings in the Wizard's Vault.
12415
+ */
12416
+ getListings(): Promise<z.infer<typeof numberArrayType>>;
12417
+ /**
12418
+ * Returns details about listings in the Wizard's Vault.
12419
+ *
12420
+ * @param ids - (optional) List of listing ids, or "all".
12421
+ */
12422
+ getListings(ids: number[] | 'all'): Promise<z.infer<typeof WizardsVaultListingsDTO>>;
12423
+ /**
12424
+ * Returns all Wizard's Vault's objectives in the game.
12425
+ */
12426
+ getObjectives(): Promise<z.infer<typeof numberArrayType>>;
12427
+ /**
12428
+ * Returns all Wizard's Vault's objectives in the game.
12429
+ *
12430
+ * @param ids - (optional) List of objective ids, or "all".
12431
+ */
12432
+ getObjectives(ids: number[] | 'all'): Promise<z.infer<typeof WizardsVaultObjectivesDTO>>;
12433
+ }
12434
+
12295
12435
  /**
12296
12436
  * /v2/wvw Api
12297
12437
  */
@@ -12518,6 +12658,8 @@ declare class GW2Api extends ApiBase {
12518
12658
  readonly tokenInfo: TokenInfoApi;
12519
12659
  /** /v2/traits Api */
12520
12660
  readonly traits: TraitsApi;
12661
+ /** /v2/wizardsvault Api */
12662
+ readonly wizardsVault: WizardsVaultApi;
12521
12663
  /** /v2/worldbosses Api */
12522
12664
  readonly worldBosses: WorldBossesApi;
12523
12665
  /** /v2/worlds Api */
@@ -12530,13 +12672,10 @@ declare class GW2Api extends ApiBase {
12530
12672
  * TSlog log level
12531
12673
  */
12532
12674
  declare enum LogLevel {
12533
- silly = 0,
12534
- trace = 1,
12535
- debug = 2,
12536
- info = 3,
12537
- warn = 4,
12538
12675
  error = 5,
12539
- fatal = 6
12676
+ warn = 4,
12677
+ info = 3,
12678
+ debug = 2
12540
12679
  }
12541
12680
  /**
12542
12681
  * Set logger level
@@ -12551,4 +12690,4 @@ declare const setLogLevel: (minLevel: LogLevel) => void;
12551
12690
  */
12552
12691
  declare const setPathLogging: (displayFilePath: boolean) => void;
12553
12692
 
12554
- export { ApiLanguage, ApiParams, GW2Api, LogLevel, RatelimitParams, UrlParams, setLogLevel, setPathLogging };
12693
+ export { ApiLanguage, type ApiParams, GW2Api, LogLevel, setLogLevel, setPathLogging };