@blizzard-api/wow 4.1.6 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/account-profile/index.d.ts +2 -2
  2. package/dist/account-profile/index.js +22 -10
  3. package/dist/account-profile/index.js.map +1 -1
  4. package/dist/achievements/index.d.ts +1 -1
  5. package/dist/azerite-essence/index.d.ts +1 -1
  6. package/dist/character-achievements/index.d.ts +1 -1
  7. package/dist/character-achievements/index.js +3 -3
  8. package/dist/character-achievements/index.js.map +1 -1
  9. package/dist/character-appearance/index.d.ts +1 -1
  10. package/dist/character-collections/index.d.ts +2 -2
  11. package/dist/character-collections/index.js +19 -8
  12. package/dist/character-collections/index.js.map +1 -1
  13. package/dist/character-equipment/index.d.ts +1 -1
  14. package/dist/character-house/index.d.ts +2 -0
  15. package/dist/character-house/index.js +22 -0
  16. package/dist/character-house/index.js.map +1 -0
  17. package/dist/character-hunter-pets/index.d.ts +1 -1
  18. package/dist/character-mythic-keystone-profile/index.d.ts +1 -1
  19. package/dist/character-pvp/index.d.ts +1 -1
  20. package/dist/character-soulbinds/index.d.ts +1 -1
  21. package/dist/covenant/index.d.ts +1 -1
  22. package/dist/creature/index.d.ts +1 -1
  23. package/dist/guild/index.d.ts +1 -1
  24. package/dist/guild/index.js +5 -5
  25. package/dist/guild/index.js.map +1 -1
  26. package/dist/guild-crest/index.d.ts +1 -1
  27. package/dist/heirloom/index.d.ts +1 -1
  28. package/dist/housing-decor/index.d.ts +1 -1
  29. package/dist/{index-t9XEyuoB.d.ts → index-0Bhntrik.d.ts} +4 -7
  30. package/dist/{index-C1YdeTeh.d.ts → index-B8gaHbmp.d.ts} +7 -20
  31. package/dist/{index-BXil5dXL.d.ts → index-BA-S_4s8.d.ts} +4 -10
  32. package/dist/{index-fgCzpXCR.d.ts → index-BDKw2T5h.d.ts} +3 -6
  33. package/dist/{index-DwH3cSMV.d.ts → index-BHHO7RV3.d.ts} +3 -6
  34. package/dist/{index-XAI3xA9N.d.ts → index-BKuDd7nT.d.ts} +6 -20
  35. package/dist/{index-CaRIVhVv.d.ts → index-Bz4N9R8o.d.ts} +3 -5
  36. package/dist/{index-BzlqLJ2o.d.ts → index-C9yo07sd.d.ts} +4 -8
  37. package/dist/index-CAAhdmK-.d.ts +25 -0
  38. package/dist/{index-Djm0g1Yi.d.ts → index-CCBUIqOU.d.ts} +5 -10
  39. package/dist/{index-BmPjWZiM.d.ts → index-CT77a0JF.d.ts} +10 -19
  40. package/dist/{index-Mo0Nrg5B.d.ts → index-Cc4oZQrM.d.ts} +5 -14
  41. package/dist/{index-C0vm3zy-.d.ts → index-Cev12iRl.d.ts} +5 -12
  42. package/dist/{index-BM2O2XmC.d.ts → index-CljBIBHy.d.ts} +5 -13
  43. package/dist/{index-C_3k8Q6y.d.ts → index-D317dq94.d.ts} +7 -10
  44. package/dist/{index-BYi-k0bg.d.ts → index-D4WW7V4l.d.ts} +5 -11
  45. package/dist/index-DB-CW2qB.d.ts +42 -0
  46. package/dist/{index-gYxee23q.d.ts → index-DFlcJK5P.d.ts} +3 -6
  47. package/dist/{index-DOEs0UyY.d.ts → index-DGUAqQfD.d.ts} +3 -4
  48. package/dist/{index-D8XusKs5.d.ts → index-DP01g0EB.d.ts} +4 -8
  49. package/dist/{index-CJD7VTCV.d.ts → index-DRLsvfW5.d.ts} +3 -5
  50. package/dist/{index-DxnUqJGs.d.ts → index-DVacJ9ne.d.ts} +6 -15
  51. package/dist/{index-CEF2RBas.d.ts → index-DWXx_hQX.d.ts} +3 -5
  52. package/dist/index-DXJEmC1r.d.ts +115 -0
  53. package/dist/{index-Zo-8eUYk.d.ts → index-Dcoq8HHI.d.ts} +4 -11
  54. package/dist/{index-mg4RaAL2.d.ts → index-DkkhK4mL.d.ts} +3 -6
  55. package/dist/{index-CahuOTZl.d.ts → index-DzFNhtcD.d.ts} +11 -18
  56. package/dist/{index-YDf016Cx.d.ts → index-ECczWYo-.d.ts} +3 -6
  57. package/dist/{index-DE8VhwEW.d.ts → index-FuJJlGI3.d.ts} +24 -26
  58. package/dist/{index-DqReVqKo.d.ts → index-G_mEQkdH.d.ts} +3 -5
  59. package/dist/{index-BT8uSt8c.d.ts → index-Ho48pOyM.d.ts} +4 -11
  60. package/dist/{index-CNnXwh3U.d.ts → index-QcJecti6.d.ts} +22 -26
  61. package/dist/{index-voS2LTm4.d.ts → index-U0fk242w.d.ts} +3 -6
  62. package/dist/{index-DMYMiLKS.d.ts → index-Y2Yt9EzH.d.ts} +3 -5
  63. package/dist/{index-DU34NE5y.d.ts → index-_gTBl2_Y.d.ts} +5 -12
  64. package/dist/{index-CHk_Cxrn.d.ts → index-bl4DdMgs.d.ts} +8 -11
  65. package/dist/{index-CPXZZPZt.d.ts → index-clqZ-M8A.d.ts} +3 -6
  66. package/dist/{index-D9zRWOGv.d.ts → index-eLWbd2FJ.d.ts} +3 -6
  67. package/dist/index.d.ts +52 -36
  68. package/dist/index.js +18 -3
  69. package/dist/index.js.map +1 -1
  70. package/dist/item/index.d.ts +1 -1
  71. package/dist/item-appearance/index.d.ts +2 -0
  72. package/dist/item-appearance/index.js +74 -0
  73. package/dist/item-appearance/index.js.map +1 -0
  74. package/dist/journal/index.d.ts +1 -1
  75. package/dist/mount/index.d.ts +1 -1
  76. package/dist/mythic-keystone-affix/index.d.ts +1 -1
  77. package/dist/mythic-keystone-dungeon/index.d.ts +1 -1
  78. package/dist/mythic-keystone-leaderboard/index.d.ts +1 -1
  79. package/dist/mythic-raid-leaderboard/index.d.ts +1 -1
  80. package/dist/neighborhood-map/index.d.ts +2 -0
  81. package/dist/neighborhood-map/index.js +38 -0
  82. package/dist/neighborhood-map/index.js.map +1 -0
  83. package/dist/pet/index.d.ts +1 -1
  84. package/dist/playable-class/index.d.ts +1 -1
  85. package/dist/playable-specialization/index.d.ts +1 -1
  86. package/dist/profession/index.d.ts +1 -1
  87. package/dist/pvp-season/index.d.ts +1 -1
  88. package/dist/pvp-tier/index.d.ts +1 -1
  89. package/dist/reputations/index.d.ts +1 -1
  90. package/dist/spell/index.d.ts +1 -1
  91. package/dist/talent/index.d.ts +1 -1
  92. package/dist/tech-talent/index.d.ts +1 -1
  93. package/dist/toy/index.d.ts +1 -1
  94. package/dist/types-BihzpfkI.d.ts +18 -0
  95. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { GenderName, Href, KeyBase, MediaAsset, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { GenderName, Href, IdKey, MediaAsset, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a playable class index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -20,7 +20,7 @@ interface PlayableClassMediaResponse extends ResponseBase {
20
20
  */
21
21
  interface PlayableClassResponse extends NameId, ResponseBase {
22
22
  gender_name: GenderName;
23
- media: Media;
23
+ media: IdKey;
24
24
  playable_races: Array<NameIdKey>;
25
25
  power_type: NameIdKey;
26
26
  pvp_talent_slots: Href;
@@ -33,9 +33,6 @@ interface PlayableClassResponse extends NameId, ResponseBase {
33
33
  interface PvpTalentSlotsResponse extends ResponseBase {
34
34
  talent_slots: Array<TalentSlot>;
35
35
  }
36
- interface Media extends KeyBase {
37
- id: number;
38
- }
39
36
  interface TalentSlot {
40
37
  slot_number: number;
41
38
  unlock_player_level: number;
@@ -64,4 +61,4 @@ declare function playableClassMedia(playableClassId: number): Resource<PlayableC
64
61
  */
65
62
  declare function pvpTalentSlots(playableClassId: number): Resource<PvpTalentSlotsResponse>;
66
63
  export { PlayableClassIndexResponse as a, PvpTalentSlotsResponse as c, pvpTalentSlots as i, playableClassIndex as n, PlayableClassMediaResponse as o, playableClassMedia as r, PlayableClassResponse as s, playableClass as t };
67
- //# sourceMappingURL=index-DwH3cSMV.d.ts.map
64
+ //# sourceMappingURL=index-BHHO7RV3.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Character, Color, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Color, IdKey, NameId, NameIdKey, NameType, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterEquipmentSummaryResponse extends ResponseBase {
3
3
  character: Character;
4
4
  equipped_item_sets?: Array<Set>;
@@ -49,16 +49,12 @@ interface EquippedItem {
49
49
  enchantments?: Array<Enchantment>;
50
50
  inventory_type: NameType;
51
51
  is_subclass_hidden?: boolean;
52
- item: KeyBase & {
53
- id: number;
54
- };
52
+ item: IdKey;
55
53
  item_class: NameIdKey;
56
54
  item_subclass: NameIdKey;
57
55
  level: DisplayStringValue;
58
56
  limit_category?: string;
59
- media: KeyBase & {
60
- id: number;
61
- };
57
+ media: IdKey;
62
58
  modified_appearance_id?: number;
63
59
  modified_crafting_stat?: Array<ModifiedCraftingStat>;
64
60
  name: string;
@@ -80,19 +76,11 @@ interface ItemElement {
80
76
  is_equipped?: boolean;
81
77
  item: NameIdKey;
82
78
  }
83
- interface ModifiedCraftingStat {
84
- id: number;
85
- name: string;
86
- type: string;
87
- }
79
+ interface ModifiedCraftingStat extends NameId, NameType {}
88
80
  interface NameDescription {
89
81
  color: Color;
90
82
  display_string: string;
91
83
  }
92
- interface NameType {
93
- name: string;
94
- type: string;
95
- }
96
84
  interface PlayableClasses {
97
85
  display_string: string;
98
86
  links: Array<NameIdKey>;
@@ -116,9 +104,7 @@ interface Socket {
116
104
  display_color?: Color;
117
105
  display_string?: string;
118
106
  item?: NameIdKey;
119
- media?: KeyBase & {
120
- id: number;
121
- };
107
+ media?: IdKey;
122
108
  socket_type: NameType;
123
109
  }
124
110
  interface Spell {
@@ -152,4 +138,4 @@ interface Weapon {
152
138
  */
153
139
  declare function characterEquipmentSummary(realmSlug: string, characterName: string): Resource<CharacterEquipmentSummaryResponse>;
154
140
  export { CharacterEquipmentSummaryResponse as n, characterEquipmentSummary as t };
155
- //# sourceMappingURL=index-XAI3xA9N.d.ts.map
141
+ //# sourceMappingURL=index-BKuDd7nT.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Character, Href, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Href, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterAchievementCriteria {
3
3
  amount?: number;
4
4
  child_criteria?: Array<CharacterAchievementCriteria>;
@@ -46,9 +46,7 @@ interface Statistic {
46
46
  name: string;
47
47
  quantity: number;
48
48
  }
49
- interface SubCategory {
50
- id: number;
51
- name: string;
49
+ interface SubCategory extends NameId {
52
50
  statistics: Array<Statistic>;
53
51
  }
54
52
  /**
@@ -64,4 +62,4 @@ declare function characterAchievementsSummary(realmSlug: string, characterName:
64
62
  */
65
63
  declare function characterAchievementStatistics(realmSlug: string, characterName: string): Resource<CharacterAchievementStatisticsResponse>;
66
64
  export { CharacterAchievementsSummaryResponse as a, CharacterAchievementStatisticsResponse as i, characterAchievementsSummary as n, CharacterAchievementCriteria as r, characterAchievementStatistics as t };
67
- //# sourceMappingURL=index-CaRIVhVv.d.ts.map
65
+ //# sourceMappingURL=index-Bz4N9R8o.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, Faction, Factions, Href, KeyBase, Locales, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, Faction, Factions, Href, IdKey, KeyBase, Locales, NameId, NameIdKey, NameType, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a journal encounter index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -82,7 +82,7 @@ interface JournalInstanceResponse extends NameId, ResponseBase {
82
82
  expansion?: NameIdKey;
83
83
  location?: NameId;
84
84
  map?: NameId;
85
- media: Media;
85
+ media: IdKey;
86
86
  minimum_level?: number;
87
87
  modes?: Array<ModeElement>;
88
88
  order_index?: number;
@@ -166,11 +166,7 @@ interface JournalEncounterSearchResponseItem extends KeyBase {
166
166
  sections?: Array<JournalSectionSearch>;
167
167
  };
168
168
  }
169
- interface Media extends KeyBase {
170
- id: number;
171
- }
172
- interface Mode {
173
- name: string;
169
+ interface Mode extends NameType {
174
170
  type: ModeType;
175
171
  }
176
172
  interface ModeElement {
@@ -226,4 +222,4 @@ declare function journalInstanceIndex(): Resource<JournalInstanceIndexResponse>;
226
222
  */
227
223
  declare function journalInstanceMedia(journalInstanceId: number): Resource<JournalInstanceMediaResponse>;
228
224
  export { JournalInstanceResponse as _, journalExpansionIndex as a, journalInstanceMedia as c, JournalEncounterSearchParameters as d, JournalEncounterSearchResponse as f, JournalInstanceMediaResponse as g, JournalInstanceIndexResponse as h, journalExpansion as i, JournalEncounterIndexResponse as l, JournalExpansionResponse as m, journalEncounterIndex as n, journalInstance as o, JournalExpansionIndexResponse as p, journalEncounterSearch as r, journalInstanceIndex as s, journalEncounter as t, JournalEncounterResponse as u, JournalSection as v, JournalSectionSearch as y };
229
- //# sourceMappingURL=index-BzlqLJ2o.d.ts.map
225
+ //# sourceMappingURL=index-C9yo07sd.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { Resource, ResponseBase } from "@blizzard-api/core";
2
+ /**
3
+ * The response for a character's house.
4
+ *
5
+ * Blizzard disabled this endpoint in early 2026 over player privacy concerns, and it currently returns 404 even for
6
+ * characters that own a house. The response type is unverified until the endpoint returns.
7
+ * @see {@link https://us.forums.blizzard.com/en/blizzard/t/new-housing-apis/56815}
8
+ */
9
+ interface CharacterHouseResponse extends ResponseBase {
10
+ id?: number;
11
+ }
12
+ /**
13
+ * Get a summary of a house a character has built.
14
+ *
15
+ * Blizzard disabled this endpoint in early 2026 over player privacy concerns, and it currently returns 404 even for
16
+ * characters that own a house. The helper is kept for when it returns; the response type is unverified.
17
+ * @see {@link https://us.forums.blizzard.com/en/blizzard/t/new-housing-apis/56815}
18
+ * @param realmSlug The slug of the realm.
19
+ * @param characterName The lowercase name of the character.
20
+ * @param houseNumber The number of the character's house (e.g. 1 for house-1).
21
+ * @returns The character's house. See {@link CharacterHouseResponse}.
22
+ */
23
+ declare function characterHouse(realmSlug: string, characterName: string, houseNumber: number): Resource<CharacterHouseResponse>;
24
+ export { CharacterHouseResponse as n, characterHouse as t };
25
+ //# sourceMappingURL=index-CAAhdmK-.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Character, Color, Faction, Factions, Href, KeyBase, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Color, Faction, Factions, Href, IdKey, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface GuildAchievementsResponse extends ResponseBase {
3
3
  achievements: Array<Achievement>;
4
4
  category_progress: Array<CategoryProgress>;
@@ -46,9 +46,7 @@ interface ActivityElement {
46
46
  interface Border {
47
47
  color: RgbWithId;
48
48
  id: number;
49
- media: KeyBase & {
50
- id: number;
51
- };
49
+ media: IdKey;
52
50
  }
53
51
  interface CategoryProgress {
54
52
  category: NameIdKey;
@@ -93,9 +91,6 @@ interface Member {
93
91
  rank: number;
94
92
  }
95
93
  type ModeType = 'HEROIC' | 'LEGACY_10_MAN' | 'LEGACY_10_MAN_HEROIC' | 'LEGACY_25_MAN' | 'LEGACY_25_MAN_HEROIC' | 'LFR' | 'MYTHIC' | 'MYTHIC_KEYSTONE' | 'NORMAL';
96
- interface Playable extends KeyBase {
97
- id: number;
98
- }
99
94
  interface RecentEvent {
100
95
  achievement: NameIdKey;
101
96
  timestamp: number;
@@ -109,8 +104,8 @@ interface RosterMemberCharacter extends Character {
109
104
  type: Factions;
110
105
  };
111
106
  level: number;
112
- playable_class: Playable;
113
- playable_race: Playable;
107
+ playable_class: IdKey;
108
+ playable_race: IdKey;
114
109
  }
115
110
  /**
116
111
  * @param realmSlug The slug of the realm.
@@ -137,4 +132,4 @@ declare function guildActivity(realmSlug: string, nameSlug: string): Resource<Gu
137
132
  */
138
133
  declare function guildRoster(realmSlug: string, nameSlug: string): Resource<GuildRosterResponse>;
139
134
  export { GuildAchievementsResponse as a, GuildRosterResponse as c, guildRoster as i, guildAchievements as n, GuildActivityResponse as o, guildActivity as r, GuildResponse as s, guild as t };
140
- //# sourceMappingURL=index-Djm0g1Yi.d.ts.map
135
+ //# sourceMappingURL=index-CCBUIqOU.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, Color, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, Color, IdKey, KeyBase, Locales, MediaAsset, NameId, NameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for an item class index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -10,10 +10,8 @@ interface ItemClassIndexResponse extends ResponseBase {
10
10
  * The response for an item class.
11
11
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
12
12
  */
13
- interface ItemClassResponse extends ResponseBase {
14
- id: number;
13
+ interface ItemClassResponse extends NameId, ResponseBase {
15
14
  item_subclasses: Array<NameIdKey>;
16
- name: string;
17
15
  }
18
16
  /**
19
17
  * The response for an item media.
@@ -28,9 +26,7 @@ interface ItemMediaResponse extends ResponseBase {
28
26
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
29
27
  */
30
28
  interface ItemResponse extends NameId, ResponseBase {
31
- appearances?: Array<KeyBase & {
32
- id: number;
33
- }>;
29
+ appearances?: Array<IdKey>;
34
30
  description?: string;
35
31
  inventory_type: InventoryTypeName;
36
32
  is_equippable: boolean;
@@ -39,7 +35,7 @@ interface ItemResponse extends NameId, ResponseBase {
39
35
  item_subclass: NameIdKey;
40
36
  level: number;
41
37
  max_count: number;
42
- media: Media;
38
+ media: IdKey;
43
39
  preview_item: PreviewItem;
44
40
  purchase_price: number;
45
41
  purchase_quantity: number;
@@ -75,11 +71,9 @@ interface ItemSetIndexResponse extends ResponseBase {
75
71
  * The response for an item set.
76
72
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
77
73
  */
78
- interface ItemSetResponse extends ResponseBase {
74
+ interface ItemSetResponse extends NameId, ResponseBase {
79
75
  effects: Array<Effect>;
80
- id: number;
81
76
  items: Array<NameIdKey>;
82
- name: string;
83
77
  }
84
78
  /**
85
79
  * The response for an item subclass.
@@ -165,9 +159,6 @@ interface ItemSearchResponseItem extends KeyBase {
165
159
  sell_price: number;
166
160
  };
167
161
  }
168
- interface Media extends KeyBase {
169
- id: number;
170
- }
171
162
  interface PreviewItem {
172
163
  armor?: Armor;
173
164
  binding?: {
@@ -182,11 +173,11 @@ interface PreviewItem {
182
173
  durability?: Durability;
183
174
  inventory_type: InventoryTypeName;
184
175
  is_subclass_hidden?: boolean;
185
- item: Media;
176
+ item: IdKey;
186
177
  item_class: NameIdKey;
187
178
  item_subclass: NameIdKey;
188
179
  level?: Durability;
189
- media: Media;
180
+ media: IdKey;
190
181
  name: string;
191
182
  quality: ItemQuality;
192
183
  recipe?: Recipe;
@@ -213,11 +204,11 @@ interface RecipeItem {
213
204
  };
214
205
  durability: Durability;
215
206
  inventory_type: InventoryTypeName;
216
- item: Media;
207
+ item: IdKey;
217
208
  item_class: NameIdKey;
218
209
  item_subclass: NameIdKey;
219
210
  level: Durability;
220
- media: Media;
211
+ media: IdKey;
221
212
  name: string;
222
213
  quality: ItemQuality;
223
214
  requirements: Requirements;
@@ -304,4 +295,4 @@ declare function itemSetIndex(): Resource<ItemSetIndexResponse>;
304
295
  */
305
296
  declare function itemSubclass(itemClassId: number, itemSubclassId: number): Resource<ItemSubclassResponse>;
306
297
  export { ItemSubclassResponse as _, itemSearch as a, itemSubclass as c, ItemMediaResponse as d, ItemResponse as f, ItemSetResponse as g, ItemSetIndexResponse as h, itemMedia as i, ItemClassIndexResponse as l, ItemSearchResponse as m, itemClass as n, itemSet as o, ItemSearchParameters as p, itemClassIndex as r, itemSetIndex as s, item as t, ItemClassResponse as u };
307
- //# sourceMappingURL=index-BmPjWZiM.d.ts.map
298
+ //# sourceMappingURL=index-CT77a0JF.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseSearchParameters, Faction, Factions, KeyBase, Locales, NameIdKey, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
1
+ import { BaseSearchParameters, Faction, Factions, IdKey, KeyBase, Locales, NameIdKey, NameType, NullishNameId, NullishNameIdKey, Resource, ResponseBase, SearchResponseWithoutResults } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a mount index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -10,19 +10,17 @@ interface MountIndexResponse extends ResponseBase {
10
10
  * The response for a mount.
11
11
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
12
12
  */
13
- interface MountResponse extends ResponseBase {
14
- creature_displays: Array<CreatureDisplay>;
13
+ interface MountResponse extends NullishNameId, ResponseBase {
14
+ creature_displays: Array<IdKey>;
15
15
  description: null | string;
16
16
  faction?: Faction;
17
- id: number;
18
- name: string;
19
17
  requirements?: {
20
18
  classes?: Array<NameIdKey>;
21
19
  faction?: Faction;
22
20
  races?: Array<NameIdKey>;
23
21
  };
24
22
  should_exclude_if_uncollected?: boolean;
25
- source?: Source;
23
+ source?: NameType;
26
24
  }
27
25
  /**
28
26
  * The search parameters for mounts.
@@ -41,9 +39,6 @@ interface MountSearchParameters extends BaseSearchParameters {
41
39
  interface MountSearchResponse extends SearchResponseWithoutResults {
42
40
  results: Array<MountSearchResponseItem>;
43
41
  }
44
- interface CreatureDisplay extends KeyBase {
45
- id: number;
46
- }
47
42
  interface MountSearchResponseItem extends KeyBase {
48
43
  data: {
49
44
  creature_displays: Array<{
@@ -61,10 +56,6 @@ interface MountSearchResponseItem extends KeyBase {
61
56
  };
62
57
  };
63
58
  }
64
- interface Source {
65
- name: string;
66
- type: string;
67
- }
68
59
  /**
69
60
  * Get a mount by ID.
70
61
  * @param mountId The mount ID.
@@ -83,4 +74,4 @@ declare function mountIndex(): Resource<MountIndexResponse>;
83
74
  */
84
75
  declare function mountSearch(options: MountSearchParameters): Resource<MountSearchResponse, Omit<MountSearchParameters, 'locale' | 'name'>>;
85
76
  export { MountResponse as a, MountIndexResponse as i, mountIndex as n, MountSearchParameters as o, mountSearch as r, MountSearchResponse as s, mount as t };
86
- //# sourceMappingURL=index-Mo0Nrg5B.d.ts.map
77
+ //# sourceMappingURL=index-Cc4oZQrM.d.ts.map
@@ -1,4 +1,4 @@
1
- import { GenderName, KeyBase, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { GenderName, IdKey, KeyBase, MediaAsset, NameId, NameIdKey, NameType, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a playable specialization index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -22,21 +22,14 @@ interface PlayableSpecializationMediaResponse extends ResponseBase {
22
22
  interface PlayableSpecializationResponse extends NameId, ResponseBase {
23
23
  gender_description: GenderName;
24
24
  hero_talent_trees: Array<NullishNameIdKey>;
25
- media: Media;
25
+ media: IdKey;
26
26
  playable_class: NameIdKey;
27
27
  power_type: NameIdKey;
28
- primary_stat_type: PrimaryStatType;
28
+ primary_stat_type: NameType;
29
29
  pvp_talents: Array<PvpTalent>;
30
- role: PrimaryStatType;
30
+ role: NameType;
31
31
  spec_talent_tree: SpecTalentTree;
32
32
  }
33
- interface Media extends KeyBase {
34
- id: number;
35
- }
36
- interface PrimaryStatType {
37
- name: string;
38
- type: string;
39
- }
40
33
  interface PvpTalent {
41
34
  spell_tooltip: SpellTooltip;
42
35
  talent: NameIdKey;
@@ -69,4 +62,4 @@ declare function playableSpecializationIndex(): Resource<PlayableSpecializationI
69
62
  */
70
63
  declare function playableSpecializationMedia(specializationId: number): Resource<PlayableSpecializationMediaResponse>;
71
64
  export { PlayableSpecializationMediaResponse as a, PlayableSpecializationIndexResponse as i, playableSpecializationIndex as n, PlayableSpecializationResponse as o, playableSpecializationMedia as r, playableSpecialization as t };
72
- //# sourceMappingURL=index-C0vm3zy-.d.ts.map
65
+ //# sourceMappingURL=index-Cev12iRl.d.ts.map
@@ -1,13 +1,10 @@
1
- import { KeyBase, MediaAsset, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, MediaAsset, NullishNameId, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a Mythic Keystone affix index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
5
5
  */
6
6
  interface MythicKeystoneAffixIndexResponse extends ResponseBase {
7
- affixes: Array<KeyBase & {
8
- id: number;
9
- name: null | string;
10
- }>;
7
+ affixes: Array<NullishNameIdKey>;
11
8
  }
12
9
  /**
13
10
  * The response for a Mythic Keystone affix media.
@@ -21,14 +18,9 @@ interface MythicKeystoneAffixMediaResponse extends ResponseBase {
21
18
  * The response for a Mythic Keystone affix.
22
19
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
23
20
  */
24
- interface MythicKeystoneAffixResponse extends ResponseBase {
21
+ interface MythicKeystoneAffixResponse extends NullishNameId, ResponseBase {
25
22
  description: null | string;
26
- id: number;
27
- media: Media;
28
- name: null | string;
29
- }
30
- interface Media extends KeyBase {
31
- id: number;
23
+ media: IdKey;
32
24
  }
33
25
  /**
34
26
  * Get a list of all Mythic Keystone affixes.
@@ -48,4 +40,4 @@ declare function mythicKeystoneAffixIndex(): Resource<MythicKeystoneAffixIndexRe
48
40
  */
49
41
  declare function mythicKeystoneAffixMedia(mythicKeystoneAffixId: number): Resource<MythicKeystoneAffixMediaResponse>;
50
42
  export { MythicKeystoneAffixMediaResponse as a, MythicKeystoneAffixIndexResponse as i, mythicKeystoneAffixIndex as n, MythicKeystoneAffixResponse as o, mythicKeystoneAffixMedia as r, mythicKeystoneAffix as t };
51
- //# sourceMappingURL=index-BM2O2XmC.d.ts.map
43
+ //# sourceMappingURL=index-CljBIBHy.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Href, KeyBase, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Href, IdKey, NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a Mythic Keystone dungeon index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -30,8 +30,8 @@ interface MythicKeystoneIndexResponse extends ResponseBase {
30
30
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
31
31
  */
32
32
  interface MythicKeystonePeriodIndexResponse extends ResponseBase {
33
- current_period: Period;
34
- periods: Array<Period>;
33
+ current_period: IdKey;
34
+ periods: Array<IdKey>;
35
35
  }
36
36
  /**
37
37
  * The response for a Mythic Keystone period.
@@ -47,8 +47,8 @@ interface MythicKeystonePeriodResponse extends ResponseBase {
47
47
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
48
48
  */
49
49
  interface MythicKeystoneSeasonIndexResponse extends ResponseBase {
50
- current_season: Period;
51
- seasons: Array<Period>;
50
+ current_season: IdKey;
51
+ seasons: Array<IdKey>;
52
52
  }
53
53
  /**
54
54
  * The response for a Mythic Keystone season.
@@ -57,7 +57,7 @@ interface MythicKeystoneSeasonIndexResponse extends ResponseBase {
57
57
  interface MythicKeystoneSeasonResponse extends ResponseBase {
58
58
  end_timestamp?: number;
59
59
  id: number;
60
- periods: Array<Period>;
60
+ periods: Array<IdKey>;
61
61
  season_name: null | string;
62
62
  start_timestamp: number;
63
63
  }
@@ -65,9 +65,6 @@ interface KeystoneUpgrade {
65
65
  qualifying_duration: number;
66
66
  upgrade_level: number;
67
67
  }
68
- interface Period extends KeyBase {
69
- id: number;
70
- }
71
68
  interface Zone {
72
69
  slug: string;
73
70
  }
@@ -110,4 +107,4 @@ declare function mythicKeystoneSeason(mythicKeystoneSeasonId: number): Resource<
110
107
  */
111
108
  declare function mythicKeystoneSeasonIndex(): Resource<MythicKeystoneSeasonIndexResponse>;
112
109
  export { mythicKeystonePeriodIndex as a, MythicKeystoneDungeonIndexResponse as c, MythicKeystonePeriodIndexResponse as d, MythicKeystonePeriodResponse as f, mythicKeystonePeriod as i, MythicKeystoneDungeonResponse as l, MythicKeystoneSeasonResponse as m, mythicKeystoneDungeonIndex as n, mythicKeystoneSeason as o, MythicKeystoneSeasonIndexResponse as p, mythicKeystoneIndex as r, mythicKeystoneSeasonIndex as s, mythicKeystoneDungeon as t, MythicKeystoneIndexResponse as u };
113
- //# sourceMappingURL=index-C_3k8Q6y.d.ts.map
110
+ //# sourceMappingURL=index-D317dq94.d.ts.map
@@ -1,18 +1,14 @@
1
- import { Character, Color, KeyBase, NameId, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Color, IdKey, NameId, NameIdKey, Realm, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterMythicKeystoneProfileIndexResponse extends ResponseBase {
3
3
  character: Character;
4
4
  current_period: CurrentPeriod;
5
- seasons: Array<KeyBase & {
6
- id: number;
7
- }>;
5
+ seasons: Array<IdKey>;
8
6
  }
9
7
  interface CharacterMythicKeystoneSeasonDetailsResponse extends ResponseBase {
10
8
  best_runs: Array<BestRun>;
11
9
  character: Character;
12
10
  mythic_rating: MythicRating;
13
- season: KeyBase & {
14
- id: number;
15
- };
11
+ season: IdKey;
16
12
  }
17
13
  interface BestRun {
18
14
  completed_timestamp: number;
@@ -25,9 +21,7 @@ interface BestRun {
25
21
  mythic_rating: MythicRating;
26
22
  }
27
23
  interface CurrentPeriod {
28
- period: KeyBase & {
29
- id: number;
30
- };
24
+ period: IdKey;
31
25
  }
32
26
  interface Member {
33
27
  character: NameId & {
@@ -57,4 +51,4 @@ declare function characterMythicKeystoneProfileIndex(realmSlug: string, characte
57
51
  */
58
52
  declare function characterMythicKeystoneSeasonDetails(realmSlug: string, characterName: string, seasonId: number): Resource<CharacterMythicKeystoneSeasonDetailsResponse>;
59
53
  export { CharacterMythicKeystoneSeasonDetailsResponse as i, characterMythicKeystoneSeasonDetails as n, CharacterMythicKeystoneProfileIndexResponse as r, characterMythicKeystoneProfileIndex as t };
60
- //# sourceMappingURL=index-BYi-k0bg.d.ts.map
54
+ //# sourceMappingURL=index-D4WW7V4l.d.ts.map
@@ -0,0 +1,42 @@
1
+ import { NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
+ /**
3
+ * The response for an index of neighborhood maps.
4
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
5
+ */
6
+ interface NeighborhoodMapIndexResponse extends ResponseBase {
7
+ maps: Array<NameIdKey>;
8
+ }
9
+ /**
10
+ * The response for a neighborhood map.
11
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
12
+ */
13
+ interface NeighborhoodMapResponse extends NameId, ResponseBase {}
14
+ /**
15
+ * The response for a neighborhood within a neighborhood map.
16
+ * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
17
+ */
18
+ interface NeighborhoodResponse extends ResponseBase {
19
+ id: number;
20
+ neighborhood_map: NameIdKey;
21
+ neighborhood_name: string;
22
+ }
23
+ /**
24
+ * Get an index of neighborhood maps.
25
+ * @returns The neighborhood map index. See {@link NeighborhoodMapIndexResponse}.
26
+ */
27
+ declare function neighborhoodMaps(): Resource<NeighborhoodMapIndexResponse>;
28
+ /**
29
+ * Get a neighborhood map by ID.
30
+ * @param neighborhoodMapId The neighborhood map ID.
31
+ * @returns The neighborhood map. See {@link NeighborhoodMapResponse}.
32
+ */
33
+ declare function neighborhoodMap(neighborhoodMapId: number): Resource<NeighborhoodMapResponse>;
34
+ /**
35
+ * Get a neighborhood within a neighborhood map by ID.
36
+ * @param neighborhoodMapId The neighborhood map ID.
37
+ * @param neighborhoodId The neighborhood ID.
38
+ * @returns The neighborhood. See {@link NeighborhoodResponse}.
39
+ */
40
+ declare function neighborhood(neighborhoodMapId: number, neighborhoodId: number): Resource<NeighborhoodResponse>;
41
+ export { NeighborhoodMapResponse as a, NeighborhoodMapIndexResponse as i, neighborhoodMap as n, NeighborhoodResponse as o, neighborhoodMaps as r, neighborhood as t };
42
+ //# sourceMappingURL=index-DB-CW2qB.d.ts.map
@@ -1,4 +1,4 @@
1
- import { KeyBase, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { IdKey, KeyBase, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  /**
3
3
  * The response for a tech talent index.
4
4
  * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
@@ -20,7 +20,7 @@ interface TechTalentMediaResponse extends ResponseBase {
20
20
  interface TechTalentResponse extends NameId, ResponseBase {
21
21
  description?: string;
22
22
  display_order: number;
23
- media: Media;
23
+ media: IdKey;
24
24
  prerequisite_talent?: NameIdKey;
25
25
  socket_type?: {
26
26
  name: string;
@@ -50,9 +50,6 @@ interface TechTalentTreeResponse extends ResponseBase {
50
50
  playable_class?: NameIdKey;
51
51
  talents: Array<NameIdKey>;
52
52
  }
53
- interface Media extends KeyBase {
54
- id: number;
55
- }
56
53
  interface SpellTooltip {
57
54
  cast_time: string;
58
55
  cooldown?: string;
@@ -94,4 +91,4 @@ declare function techTalentTree(techTalentTreeId: number): Resource<TechTalentTr
94
91
  */
95
92
  declare function techTalentTreeIndex(): Resource<TechTalentTreeIndexResponse>;
96
93
  export { techTalentTreeIndex as a, TechTalentResponse as c, techTalentTree as i, TechTalentTreeIndexResponse as l, techTalentIndex as n, TechTalentIndexResponse as o, techTalentMedia as r, TechTalentMediaResponse as s, techTalent as t, TechTalentTreeResponse as u };
97
- //# sourceMappingURL=index-gYxee23q.d.ts.map
94
+ //# sourceMappingURL=index-DFlcJK5P.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Character, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, NameIdKey, NameType, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterSoulbindsResponse extends ResponseBase {
3
3
  character: Character;
4
4
  chosen_covenant: NameIdKey;
@@ -24,8 +24,7 @@ interface Trait {
24
24
  tier: number;
25
25
  trait?: NameIdKey;
26
26
  }
27
- interface TypeClass {
28
- name: string;
27
+ interface TypeClass extends NameType {
29
28
  type: 'ENDURANCE' | 'FINESSE' | 'POTENCY';
30
29
  }
31
30
  /**
@@ -35,4 +34,4 @@ interface TypeClass {
35
34
  */
36
35
  declare function characterSoulbinds(realmSlug: string, characterName: string): Resource<CharacterSoulbindsResponse>;
37
36
  export { CharacterSoulbindsResponse as n, characterSoulbinds as t };
38
- //# sourceMappingURL=index-DOEs0UyY.d.ts.map
37
+ //# sourceMappingURL=index-DGUAqQfD.d.ts.map
@@ -1,16 +1,12 @@
1
- import { Character, Faction, KeyBase, NameId, Resource, ResponseBase } from "@blizzard-api/core";
1
+ import { Character, Faction, IdKey, NameId, Resource, ResponseBase } from "@blizzard-api/core";
2
2
  interface CharacterPvpBracketStatisticsResponse extends ResponseBase {
3
3
  bracket: Bracket;
4
4
  character: Character;
5
5
  faction: Faction;
6
6
  rating: number;
7
- season: KeyBase & {
8
- id: number;
9
- };
7
+ season: IdKey;
10
8
  season_match_statistics: MatchStatistics;
11
- tier: KeyBase & {
12
- id: number;
13
- };
9
+ tier: IdKey;
14
10
  weekly_match_statistics: MatchStatistics;
15
11
  }
16
12
  interface CharacterPvpSummaryResponse extends ResponseBase {
@@ -46,4 +42,4 @@ declare function characterPvpBracketStatistics(realmSlug: string, characterName:
46
42
  */
47
43
  declare function characterPvpSummary(realmSlug: string, characterName: string): Resource<CharacterPvpSummaryResponse>;
48
44
  export { CharacterPvpSummaryResponse as i, characterPvpSummary as n, CharacterPvpBracketStatisticsResponse as r, characterPvpBracketStatistics as t };
49
- //# sourceMappingURL=index-D8XusKs5.d.ts.map
45
+ //# sourceMappingURL=index-DP01g0EB.d.ts.map