guildwars2-ts 1.2.3 → 1.3.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/dist/index.d.mts +149 -48
- package/dist/index.d.ts +149 -48
- package/dist/index.js +343 -271
- package/dist/index.mjs +343 -271
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -534,23 +534,147 @@ declare const BackstoryQuestionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
534
534
|
/** When present, an array of professions that this question is presented to. */
|
|
535
535
|
professions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
536
536
|
}, "strip", z.ZodTypeAny, {
|
|
537
|
+
answers: string[];
|
|
537
538
|
id: number;
|
|
538
539
|
title: string;
|
|
539
540
|
description: string;
|
|
540
541
|
order: number;
|
|
541
|
-
answers: string[];
|
|
542
542
|
professions?: string[] | undefined;
|
|
543
543
|
races?: string[] | undefined;
|
|
544
544
|
}, {
|
|
545
|
+
answers: string[];
|
|
545
546
|
id: number;
|
|
546
547
|
title: string;
|
|
547
548
|
description: string;
|
|
548
549
|
order: number;
|
|
549
|
-
answers: string[];
|
|
550
550
|
professions?: string[] | undefined;
|
|
551
551
|
races?: string[] | undefined;
|
|
552
552
|
}>, "many">;
|
|
553
553
|
|
|
554
|
+
/**
|
|
555
|
+
* /v2/commerce/listings definition.
|
|
556
|
+
*/
|
|
557
|
+
declare const CommerceListingsDTO: z.ZodArray<z.ZodObject<{
|
|
558
|
+
/** The item id. Can be resolved against /v2/items. */
|
|
559
|
+
id: z.ZodNumber;
|
|
560
|
+
/** List of all buy listings, descending from the highest buy order. */
|
|
561
|
+
buys: z.ZodArray<z.ZodObject<{
|
|
562
|
+
/** The number of individual listings this object refers to. */
|
|
563
|
+
listings: z.ZodNumber;
|
|
564
|
+
/** The sell offer or buy order price in coins. */
|
|
565
|
+
unit_price: z.ZodNumber;
|
|
566
|
+
/** The amount of items being sold/bought in this listing. */
|
|
567
|
+
quantity: z.ZodNumber;
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
listings: number;
|
|
570
|
+
quantity: number;
|
|
571
|
+
unit_price: number;
|
|
572
|
+
}, {
|
|
573
|
+
listings: number;
|
|
574
|
+
quantity: number;
|
|
575
|
+
unit_price: number;
|
|
576
|
+
}>, "many">;
|
|
577
|
+
/** List of all sell listings, ascending from the lowest sell order. */
|
|
578
|
+
sells: z.ZodArray<z.ZodObject<{
|
|
579
|
+
/** The number of individual listings this object refers to. */
|
|
580
|
+
listings: z.ZodNumber;
|
|
581
|
+
/** The sell offer or buy order price in coins. */
|
|
582
|
+
unit_price: z.ZodNumber;
|
|
583
|
+
/** The amount of items being sold/bought in this listing. */
|
|
584
|
+
quantity: z.ZodNumber;
|
|
585
|
+
}, "strip", z.ZodTypeAny, {
|
|
586
|
+
listings: number;
|
|
587
|
+
quantity: number;
|
|
588
|
+
unit_price: number;
|
|
589
|
+
}, {
|
|
590
|
+
listings: number;
|
|
591
|
+
quantity: number;
|
|
592
|
+
unit_price: number;
|
|
593
|
+
}>, "many">;
|
|
594
|
+
}, "strip", z.ZodTypeAny, {
|
|
595
|
+
id: number;
|
|
596
|
+
buys: {
|
|
597
|
+
listings: number;
|
|
598
|
+
quantity: number;
|
|
599
|
+
unit_price: number;
|
|
600
|
+
}[];
|
|
601
|
+
sells: {
|
|
602
|
+
listings: number;
|
|
603
|
+
quantity: number;
|
|
604
|
+
unit_price: number;
|
|
605
|
+
}[];
|
|
606
|
+
}, {
|
|
607
|
+
id: number;
|
|
608
|
+
buys: {
|
|
609
|
+
listings: number;
|
|
610
|
+
quantity: number;
|
|
611
|
+
unit_price: number;
|
|
612
|
+
}[];
|
|
613
|
+
sells: {
|
|
614
|
+
listings: number;
|
|
615
|
+
quantity: number;
|
|
616
|
+
unit_price: number;
|
|
617
|
+
}[];
|
|
618
|
+
}>, "many">;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* /v2/commerce/prices definition.
|
|
622
|
+
*/
|
|
623
|
+
declare const CommercePricesDTO: z.ZodArray<z.ZodObject<{
|
|
624
|
+
/** The item id. Can be resolved against /v2/items. */
|
|
625
|
+
id: z.ZodNumber;
|
|
626
|
+
/** Whether free to play accounts can purchase or sell this item. */
|
|
627
|
+
whitelisted: z.ZodBoolean;
|
|
628
|
+
/** Buy information. */
|
|
629
|
+
buys: z.ZodObject<{
|
|
630
|
+
/** The highest buy order or lowest sell offer price in copper coins. */
|
|
631
|
+
quantity: z.ZodNumber;
|
|
632
|
+
/** The amount of items being sold/bought. */
|
|
633
|
+
unit_price: z.ZodNumber;
|
|
634
|
+
}, "strip", z.ZodTypeAny, {
|
|
635
|
+
quantity: number;
|
|
636
|
+
unit_price: number;
|
|
637
|
+
}, {
|
|
638
|
+
quantity: number;
|
|
639
|
+
unit_price: number;
|
|
640
|
+
}>;
|
|
641
|
+
/** Sell information. */
|
|
642
|
+
sells: z.ZodObject<{
|
|
643
|
+
/** The highest buy order or lowest sell offer price in copper coins. */
|
|
644
|
+
quantity: z.ZodNumber;
|
|
645
|
+
/** The amount of items being sold/bought. */
|
|
646
|
+
unit_price: z.ZodNumber;
|
|
647
|
+
}, "strip", z.ZodTypeAny, {
|
|
648
|
+
quantity: number;
|
|
649
|
+
unit_price: number;
|
|
650
|
+
}, {
|
|
651
|
+
quantity: number;
|
|
652
|
+
unit_price: number;
|
|
653
|
+
}>;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
id: number;
|
|
656
|
+
buys: {
|
|
657
|
+
quantity: number;
|
|
658
|
+
unit_price: number;
|
|
659
|
+
};
|
|
660
|
+
sells: {
|
|
661
|
+
quantity: number;
|
|
662
|
+
unit_price: number;
|
|
663
|
+
};
|
|
664
|
+
whitelisted: boolean;
|
|
665
|
+
}, {
|
|
666
|
+
id: number;
|
|
667
|
+
buys: {
|
|
668
|
+
quantity: number;
|
|
669
|
+
unit_price: number;
|
|
670
|
+
};
|
|
671
|
+
sells: {
|
|
672
|
+
quantity: number;
|
|
673
|
+
unit_price: number;
|
|
674
|
+
};
|
|
675
|
+
whitelisted: boolean;
|
|
676
|
+
}>, "many">;
|
|
677
|
+
|
|
554
678
|
declare const ContinentsMapsDTO: z.ZodArray<z.ZodObject<{
|
|
555
679
|
/** The map name. */
|
|
556
680
|
name: z.ZodString;
|
|
@@ -7020,6 +7144,7 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7020
7144
|
} | undefined;
|
|
7021
7145
|
}>;
|
|
7022
7146
|
}, "strip", z.ZodTypeAny, {
|
|
7147
|
+
active: boolean;
|
|
7023
7148
|
leaderboards: {
|
|
7024
7149
|
ladder?: {
|
|
7025
7150
|
settings: {
|
|
@@ -7041,7 +7166,6 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7041
7166
|
};
|
|
7042
7167
|
id: string;
|
|
7043
7168
|
name: string;
|
|
7044
|
-
active: boolean;
|
|
7045
7169
|
start: string;
|
|
7046
7170
|
end: string;
|
|
7047
7171
|
divisions: {
|
|
@@ -7065,6 +7189,7 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7065
7189
|
overlay_small: string;
|
|
7066
7190
|
}[] | undefined;
|
|
7067
7191
|
}, {
|
|
7192
|
+
active: boolean;
|
|
7068
7193
|
leaderboards: {
|
|
7069
7194
|
ladder?: {
|
|
7070
7195
|
settings: {
|
|
@@ -7086,7 +7211,6 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7086
7211
|
};
|
|
7087
7212
|
id: string;
|
|
7088
7213
|
name: string;
|
|
7089
|
-
active: boolean;
|
|
7090
7214
|
start: string;
|
|
7091
7215
|
end: string;
|
|
7092
7216
|
divisions: {
|
|
@@ -8131,9 +8255,9 @@ declare class CharactersApi extends ApiBase {
|
|
|
8131
8255
|
*/
|
|
8132
8256
|
getCrafting(id: string): Promise<{
|
|
8133
8257
|
crafting: {
|
|
8258
|
+
active: boolean;
|
|
8134
8259
|
discipline: "Armorsmith" | "Artificer" | "Chef" | "Huntsman" | "Jeweler" | "Leatherworker" | "Scribe" | "Tailor" | "Weaponsmith";
|
|
8135
8260
|
rating: number;
|
|
8136
|
-
active: boolean;
|
|
8137
8261
|
}[];
|
|
8138
8262
|
}>;
|
|
8139
8263
|
/**
|
|
@@ -8445,43 +8569,20 @@ declare class CommerceApi extends ApiBase {
|
|
|
8445
8569
|
quantity: number;
|
|
8446
8570
|
coins_per_gem: number;
|
|
8447
8571
|
}>;
|
|
8572
|
+
getListings(): Promise<z.infer<typeof numberArrayType>>;
|
|
8448
8573
|
/**
|
|
8449
8574
|
* Returns current buy and sell listings from the trading post.
|
|
8450
|
-
* TODO: Functionality to return a complete list of every listing is currently unsupported
|
|
8451
8575
|
*
|
|
8452
8576
|
* @param ids - Listing ids
|
|
8453
8577
|
*/
|
|
8454
|
-
getListings(ids: number[]): Promise<
|
|
8455
|
-
|
|
8456
|
-
buys: {
|
|
8457
|
-
listings: number;
|
|
8458
|
-
quantity: number;
|
|
8459
|
-
unit_price: number;
|
|
8460
|
-
}[];
|
|
8461
|
-
sells: {
|
|
8462
|
-
listings: number;
|
|
8463
|
-
quantity: number;
|
|
8464
|
-
unit_price: number;
|
|
8465
|
-
}[];
|
|
8466
|
-
}[]>;
|
|
8578
|
+
getListings(ids: number[]): Promise<z.infer<typeof CommerceListingsDTO>>;
|
|
8579
|
+
getPrices(): Promise<z.infer<typeof numberArrayType>>;
|
|
8467
8580
|
/**
|
|
8468
8581
|
* Returns current aggregated buy and sell listing information from the trading post.
|
|
8469
|
-
* TODO: Functionality to return a complete list of every listing is currently unsupported
|
|
8470
8582
|
*
|
|
8471
8583
|
* @param ids - Item ids
|
|
8472
8584
|
*/
|
|
8473
|
-
getPrices(ids: number[]): Promise<
|
|
8474
|
-
id: number;
|
|
8475
|
-
buys: {
|
|
8476
|
-
quantity: number;
|
|
8477
|
-
unit_price: number;
|
|
8478
|
-
};
|
|
8479
|
-
sells: {
|
|
8480
|
-
quantity: number;
|
|
8481
|
-
unit_price: number;
|
|
8482
|
-
};
|
|
8483
|
-
whitelisted: boolean;
|
|
8484
|
-
}[]>;
|
|
8585
|
+
getPrices(ids: number[]): Promise<z.infer<typeof CommercePricesDTO>>;
|
|
8485
8586
|
/**
|
|
8486
8587
|
* Provides access to the current and historical transactions of a player.
|
|
8487
8588
|
* Results are cached for 5 minutes.
|
|
@@ -8611,10 +8712,10 @@ declare class GuildApi extends ApiBase {
|
|
|
8611
8712
|
* @param id - Unique guild id
|
|
8612
8713
|
*/
|
|
8613
8714
|
getRanks(id: string): Promise<{
|
|
8715
|
+
permissions: string[];
|
|
8614
8716
|
id: string;
|
|
8615
8717
|
order: number;
|
|
8616
8718
|
icon: string;
|
|
8617
|
-
permissions: string[];
|
|
8618
8719
|
}[]>;
|
|
8619
8720
|
/**
|
|
8620
8721
|
* Returns information about the items in a guild's vault.
|
|
@@ -8653,6 +8754,20 @@ declare class GuildApi extends ApiBase {
|
|
|
8653
8754
|
name: string;
|
|
8654
8755
|
role: "Member" | "Captain";
|
|
8655
8756
|
}[];
|
|
8757
|
+
games: {
|
|
8758
|
+
id: string;
|
|
8759
|
+
map_id: string;
|
|
8760
|
+
started: string;
|
|
8761
|
+
ended: string;
|
|
8762
|
+
team: string;
|
|
8763
|
+
scores: {
|
|
8764
|
+
red: number;
|
|
8765
|
+
blue: number;
|
|
8766
|
+
};
|
|
8767
|
+
rating_type: "Ranked" | "Unranked" | "None";
|
|
8768
|
+
rating_change: number;
|
|
8769
|
+
season?: string | undefined;
|
|
8770
|
+
}[];
|
|
8656
8771
|
id: number;
|
|
8657
8772
|
name: string;
|
|
8658
8773
|
aggregate: {
|
|
@@ -8678,20 +8793,6 @@ declare class GuildApi extends ApiBase {
|
|
|
8678
8793
|
forfeits: number;
|
|
8679
8794
|
} | undefined;
|
|
8680
8795
|
};
|
|
8681
|
-
games: {
|
|
8682
|
-
id: string;
|
|
8683
|
-
map_id: string;
|
|
8684
|
-
started: string;
|
|
8685
|
-
ended: string;
|
|
8686
|
-
team: string;
|
|
8687
|
-
scores: {
|
|
8688
|
-
red: number;
|
|
8689
|
-
blue: number;
|
|
8690
|
-
};
|
|
8691
|
-
rating_type: "Ranked" | "Unranked" | "None";
|
|
8692
|
-
rating_change: number;
|
|
8693
|
-
season?: string | undefined;
|
|
8694
|
-
}[];
|
|
8695
8796
|
seasons?: {
|
|
8696
8797
|
id: string;
|
|
8697
8798
|
rating: number;
|
|
@@ -9713,9 +9814,9 @@ declare class TokenInfoApi extends ApiBase {
|
|
|
9713
9814
|
* Returns information about the supplied API key.
|
|
9714
9815
|
*/
|
|
9715
9816
|
get(): Promise<{
|
|
9817
|
+
permissions: ("account" | "progression" | "wallet" | "characters" | "pvp" | "guilds" | "builds" | "inventories" | "tradingpost" | "unlocks")[];
|
|
9716
9818
|
id: string;
|
|
9717
9819
|
name: string;
|
|
9718
|
-
permissions: ("account" | "progression" | "wallet" | "characters" | "pvp" | "guilds" | "builds" | "inventories" | "tradingpost" | "unlocks")[];
|
|
9719
9820
|
type?: string | undefined;
|
|
9720
9821
|
expires_at?: string | undefined;
|
|
9721
9822
|
issued_at?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -534,23 +534,147 @@ declare const BackstoryQuestionsDTO: z.ZodArray<z.ZodObject<{
|
|
|
534
534
|
/** When present, an array of professions that this question is presented to. */
|
|
535
535
|
professions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
536
536
|
}, "strip", z.ZodTypeAny, {
|
|
537
|
+
answers: string[];
|
|
537
538
|
id: number;
|
|
538
539
|
title: string;
|
|
539
540
|
description: string;
|
|
540
541
|
order: number;
|
|
541
|
-
answers: string[];
|
|
542
542
|
professions?: string[] | undefined;
|
|
543
543
|
races?: string[] | undefined;
|
|
544
544
|
}, {
|
|
545
|
+
answers: string[];
|
|
545
546
|
id: number;
|
|
546
547
|
title: string;
|
|
547
548
|
description: string;
|
|
548
549
|
order: number;
|
|
549
|
-
answers: string[];
|
|
550
550
|
professions?: string[] | undefined;
|
|
551
551
|
races?: string[] | undefined;
|
|
552
552
|
}>, "many">;
|
|
553
553
|
|
|
554
|
+
/**
|
|
555
|
+
* /v2/commerce/listings definition.
|
|
556
|
+
*/
|
|
557
|
+
declare const CommerceListingsDTO: z.ZodArray<z.ZodObject<{
|
|
558
|
+
/** The item id. Can be resolved against /v2/items. */
|
|
559
|
+
id: z.ZodNumber;
|
|
560
|
+
/** List of all buy listings, descending from the highest buy order. */
|
|
561
|
+
buys: z.ZodArray<z.ZodObject<{
|
|
562
|
+
/** The number of individual listings this object refers to. */
|
|
563
|
+
listings: z.ZodNumber;
|
|
564
|
+
/** The sell offer or buy order price in coins. */
|
|
565
|
+
unit_price: z.ZodNumber;
|
|
566
|
+
/** The amount of items being sold/bought in this listing. */
|
|
567
|
+
quantity: z.ZodNumber;
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
listings: number;
|
|
570
|
+
quantity: number;
|
|
571
|
+
unit_price: number;
|
|
572
|
+
}, {
|
|
573
|
+
listings: number;
|
|
574
|
+
quantity: number;
|
|
575
|
+
unit_price: number;
|
|
576
|
+
}>, "many">;
|
|
577
|
+
/** List of all sell listings, ascending from the lowest sell order. */
|
|
578
|
+
sells: z.ZodArray<z.ZodObject<{
|
|
579
|
+
/** The number of individual listings this object refers to. */
|
|
580
|
+
listings: z.ZodNumber;
|
|
581
|
+
/** The sell offer or buy order price in coins. */
|
|
582
|
+
unit_price: z.ZodNumber;
|
|
583
|
+
/** The amount of items being sold/bought in this listing. */
|
|
584
|
+
quantity: z.ZodNumber;
|
|
585
|
+
}, "strip", z.ZodTypeAny, {
|
|
586
|
+
listings: number;
|
|
587
|
+
quantity: number;
|
|
588
|
+
unit_price: number;
|
|
589
|
+
}, {
|
|
590
|
+
listings: number;
|
|
591
|
+
quantity: number;
|
|
592
|
+
unit_price: number;
|
|
593
|
+
}>, "many">;
|
|
594
|
+
}, "strip", z.ZodTypeAny, {
|
|
595
|
+
id: number;
|
|
596
|
+
buys: {
|
|
597
|
+
listings: number;
|
|
598
|
+
quantity: number;
|
|
599
|
+
unit_price: number;
|
|
600
|
+
}[];
|
|
601
|
+
sells: {
|
|
602
|
+
listings: number;
|
|
603
|
+
quantity: number;
|
|
604
|
+
unit_price: number;
|
|
605
|
+
}[];
|
|
606
|
+
}, {
|
|
607
|
+
id: number;
|
|
608
|
+
buys: {
|
|
609
|
+
listings: number;
|
|
610
|
+
quantity: number;
|
|
611
|
+
unit_price: number;
|
|
612
|
+
}[];
|
|
613
|
+
sells: {
|
|
614
|
+
listings: number;
|
|
615
|
+
quantity: number;
|
|
616
|
+
unit_price: number;
|
|
617
|
+
}[];
|
|
618
|
+
}>, "many">;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* /v2/commerce/prices definition.
|
|
622
|
+
*/
|
|
623
|
+
declare const CommercePricesDTO: z.ZodArray<z.ZodObject<{
|
|
624
|
+
/** The item id. Can be resolved against /v2/items. */
|
|
625
|
+
id: z.ZodNumber;
|
|
626
|
+
/** Whether free to play accounts can purchase or sell this item. */
|
|
627
|
+
whitelisted: z.ZodBoolean;
|
|
628
|
+
/** Buy information. */
|
|
629
|
+
buys: z.ZodObject<{
|
|
630
|
+
/** The highest buy order or lowest sell offer price in copper coins. */
|
|
631
|
+
quantity: z.ZodNumber;
|
|
632
|
+
/** The amount of items being sold/bought. */
|
|
633
|
+
unit_price: z.ZodNumber;
|
|
634
|
+
}, "strip", z.ZodTypeAny, {
|
|
635
|
+
quantity: number;
|
|
636
|
+
unit_price: number;
|
|
637
|
+
}, {
|
|
638
|
+
quantity: number;
|
|
639
|
+
unit_price: number;
|
|
640
|
+
}>;
|
|
641
|
+
/** Sell information. */
|
|
642
|
+
sells: z.ZodObject<{
|
|
643
|
+
/** The highest buy order or lowest sell offer price in copper coins. */
|
|
644
|
+
quantity: z.ZodNumber;
|
|
645
|
+
/** The amount of items being sold/bought. */
|
|
646
|
+
unit_price: z.ZodNumber;
|
|
647
|
+
}, "strip", z.ZodTypeAny, {
|
|
648
|
+
quantity: number;
|
|
649
|
+
unit_price: number;
|
|
650
|
+
}, {
|
|
651
|
+
quantity: number;
|
|
652
|
+
unit_price: number;
|
|
653
|
+
}>;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
id: number;
|
|
656
|
+
buys: {
|
|
657
|
+
quantity: number;
|
|
658
|
+
unit_price: number;
|
|
659
|
+
};
|
|
660
|
+
sells: {
|
|
661
|
+
quantity: number;
|
|
662
|
+
unit_price: number;
|
|
663
|
+
};
|
|
664
|
+
whitelisted: boolean;
|
|
665
|
+
}, {
|
|
666
|
+
id: number;
|
|
667
|
+
buys: {
|
|
668
|
+
quantity: number;
|
|
669
|
+
unit_price: number;
|
|
670
|
+
};
|
|
671
|
+
sells: {
|
|
672
|
+
quantity: number;
|
|
673
|
+
unit_price: number;
|
|
674
|
+
};
|
|
675
|
+
whitelisted: boolean;
|
|
676
|
+
}>, "many">;
|
|
677
|
+
|
|
554
678
|
declare const ContinentsMapsDTO: z.ZodArray<z.ZodObject<{
|
|
555
679
|
/** The map name. */
|
|
556
680
|
name: z.ZodString;
|
|
@@ -7020,6 +7144,7 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7020
7144
|
} | undefined;
|
|
7021
7145
|
}>;
|
|
7022
7146
|
}, "strip", z.ZodTypeAny, {
|
|
7147
|
+
active: boolean;
|
|
7023
7148
|
leaderboards: {
|
|
7024
7149
|
ladder?: {
|
|
7025
7150
|
settings: {
|
|
@@ -7041,7 +7166,6 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7041
7166
|
};
|
|
7042
7167
|
id: string;
|
|
7043
7168
|
name: string;
|
|
7044
|
-
active: boolean;
|
|
7045
7169
|
start: string;
|
|
7046
7170
|
end: string;
|
|
7047
7171
|
divisions: {
|
|
@@ -7065,6 +7189,7 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7065
7189
|
overlay_small: string;
|
|
7066
7190
|
}[] | undefined;
|
|
7067
7191
|
}, {
|
|
7192
|
+
active: boolean;
|
|
7068
7193
|
leaderboards: {
|
|
7069
7194
|
ladder?: {
|
|
7070
7195
|
settings: {
|
|
@@ -7086,7 +7211,6 @@ declare const PvPSeasonDTO: z.ZodArray<z.ZodObject<{
|
|
|
7086
7211
|
};
|
|
7087
7212
|
id: string;
|
|
7088
7213
|
name: string;
|
|
7089
|
-
active: boolean;
|
|
7090
7214
|
start: string;
|
|
7091
7215
|
end: string;
|
|
7092
7216
|
divisions: {
|
|
@@ -8131,9 +8255,9 @@ declare class CharactersApi extends ApiBase {
|
|
|
8131
8255
|
*/
|
|
8132
8256
|
getCrafting(id: string): Promise<{
|
|
8133
8257
|
crafting: {
|
|
8258
|
+
active: boolean;
|
|
8134
8259
|
discipline: "Armorsmith" | "Artificer" | "Chef" | "Huntsman" | "Jeweler" | "Leatherworker" | "Scribe" | "Tailor" | "Weaponsmith";
|
|
8135
8260
|
rating: number;
|
|
8136
|
-
active: boolean;
|
|
8137
8261
|
}[];
|
|
8138
8262
|
}>;
|
|
8139
8263
|
/**
|
|
@@ -8445,43 +8569,20 @@ declare class CommerceApi extends ApiBase {
|
|
|
8445
8569
|
quantity: number;
|
|
8446
8570
|
coins_per_gem: number;
|
|
8447
8571
|
}>;
|
|
8572
|
+
getListings(): Promise<z.infer<typeof numberArrayType>>;
|
|
8448
8573
|
/**
|
|
8449
8574
|
* Returns current buy and sell listings from the trading post.
|
|
8450
|
-
* TODO: Functionality to return a complete list of every listing is currently unsupported
|
|
8451
8575
|
*
|
|
8452
8576
|
* @param ids - Listing ids
|
|
8453
8577
|
*/
|
|
8454
|
-
getListings(ids: number[]): Promise<
|
|
8455
|
-
|
|
8456
|
-
buys: {
|
|
8457
|
-
listings: number;
|
|
8458
|
-
quantity: number;
|
|
8459
|
-
unit_price: number;
|
|
8460
|
-
}[];
|
|
8461
|
-
sells: {
|
|
8462
|
-
listings: number;
|
|
8463
|
-
quantity: number;
|
|
8464
|
-
unit_price: number;
|
|
8465
|
-
}[];
|
|
8466
|
-
}[]>;
|
|
8578
|
+
getListings(ids: number[]): Promise<z.infer<typeof CommerceListingsDTO>>;
|
|
8579
|
+
getPrices(): Promise<z.infer<typeof numberArrayType>>;
|
|
8467
8580
|
/**
|
|
8468
8581
|
* Returns current aggregated buy and sell listing information from the trading post.
|
|
8469
|
-
* TODO: Functionality to return a complete list of every listing is currently unsupported
|
|
8470
8582
|
*
|
|
8471
8583
|
* @param ids - Item ids
|
|
8472
8584
|
*/
|
|
8473
|
-
getPrices(ids: number[]): Promise<
|
|
8474
|
-
id: number;
|
|
8475
|
-
buys: {
|
|
8476
|
-
quantity: number;
|
|
8477
|
-
unit_price: number;
|
|
8478
|
-
};
|
|
8479
|
-
sells: {
|
|
8480
|
-
quantity: number;
|
|
8481
|
-
unit_price: number;
|
|
8482
|
-
};
|
|
8483
|
-
whitelisted: boolean;
|
|
8484
|
-
}[]>;
|
|
8585
|
+
getPrices(ids: number[]): Promise<z.infer<typeof CommercePricesDTO>>;
|
|
8485
8586
|
/**
|
|
8486
8587
|
* Provides access to the current and historical transactions of a player.
|
|
8487
8588
|
* Results are cached for 5 minutes.
|
|
@@ -8611,10 +8712,10 @@ declare class GuildApi extends ApiBase {
|
|
|
8611
8712
|
* @param id - Unique guild id
|
|
8612
8713
|
*/
|
|
8613
8714
|
getRanks(id: string): Promise<{
|
|
8715
|
+
permissions: string[];
|
|
8614
8716
|
id: string;
|
|
8615
8717
|
order: number;
|
|
8616
8718
|
icon: string;
|
|
8617
|
-
permissions: string[];
|
|
8618
8719
|
}[]>;
|
|
8619
8720
|
/**
|
|
8620
8721
|
* Returns information about the items in a guild's vault.
|
|
@@ -8653,6 +8754,20 @@ declare class GuildApi extends ApiBase {
|
|
|
8653
8754
|
name: string;
|
|
8654
8755
|
role: "Member" | "Captain";
|
|
8655
8756
|
}[];
|
|
8757
|
+
games: {
|
|
8758
|
+
id: string;
|
|
8759
|
+
map_id: string;
|
|
8760
|
+
started: string;
|
|
8761
|
+
ended: string;
|
|
8762
|
+
team: string;
|
|
8763
|
+
scores: {
|
|
8764
|
+
red: number;
|
|
8765
|
+
blue: number;
|
|
8766
|
+
};
|
|
8767
|
+
rating_type: "Ranked" | "Unranked" | "None";
|
|
8768
|
+
rating_change: number;
|
|
8769
|
+
season?: string | undefined;
|
|
8770
|
+
}[];
|
|
8656
8771
|
id: number;
|
|
8657
8772
|
name: string;
|
|
8658
8773
|
aggregate: {
|
|
@@ -8678,20 +8793,6 @@ declare class GuildApi extends ApiBase {
|
|
|
8678
8793
|
forfeits: number;
|
|
8679
8794
|
} | undefined;
|
|
8680
8795
|
};
|
|
8681
|
-
games: {
|
|
8682
|
-
id: string;
|
|
8683
|
-
map_id: string;
|
|
8684
|
-
started: string;
|
|
8685
|
-
ended: string;
|
|
8686
|
-
team: string;
|
|
8687
|
-
scores: {
|
|
8688
|
-
red: number;
|
|
8689
|
-
blue: number;
|
|
8690
|
-
};
|
|
8691
|
-
rating_type: "Ranked" | "Unranked" | "None";
|
|
8692
|
-
rating_change: number;
|
|
8693
|
-
season?: string | undefined;
|
|
8694
|
-
}[];
|
|
8695
8796
|
seasons?: {
|
|
8696
8797
|
id: string;
|
|
8697
8798
|
rating: number;
|
|
@@ -9713,9 +9814,9 @@ declare class TokenInfoApi extends ApiBase {
|
|
|
9713
9814
|
* Returns information about the supplied API key.
|
|
9714
9815
|
*/
|
|
9715
9816
|
get(): Promise<{
|
|
9817
|
+
permissions: ("account" | "progression" | "wallet" | "characters" | "pvp" | "guilds" | "builds" | "inventories" | "tradingpost" | "unlocks")[];
|
|
9716
9818
|
id: string;
|
|
9717
9819
|
name: string;
|
|
9718
|
-
permissions: ("account" | "progression" | "wallet" | "characters" | "pvp" | "guilds" | "builds" | "inventories" | "tradingpost" | "unlocks")[];
|
|
9719
9820
|
type?: string | undefined;
|
|
9720
9821
|
expires_at?: string | undefined;
|
|
9721
9822
|
issued_at?: string | undefined;
|