artifacts-api-client 2.0.0 → 2.1.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.
Files changed (29) hide show
  1. package/dist/api/artifacts-accounts.api.d.ts +4 -4
  2. package/dist/api/artifacts-accounts.api.js +10 -10
  3. package/dist/api/artifacts-characters.api.d.ts +6 -1
  4. package/dist/api/artifacts-characters.api.js +7 -0
  5. package/dist/api/artifacts-events.api.d.ts +1 -10
  6. package/dist/api/artifacts-events.api.js +0 -14
  7. package/dist/api/artifacts-game-assistant.api.d.ts +11 -0
  8. package/dist/api/artifacts-game-assistant.api.js +20 -0
  9. package/dist/api/artifacts-gems-shop.api.d.ts +16 -0
  10. package/dist/api/artifacts-gems-shop.api.js +44 -0
  11. package/dist/api/artifacts-grand-exchange.api.d.ts +6 -3
  12. package/dist/api/artifacts-grand-exchange.api.js +6 -3
  13. package/dist/api/artifacts-my-account.api.d.ts +28 -5
  14. package/dist/api/artifacts-my-account.api.js +71 -4
  15. package/dist/api/artifacts-my-characters.api.d.ts +36 -12
  16. package/dist/api/artifacts-my-characters.api.js +55 -12
  17. package/dist/api/artifacts-raids.api.d.ts +12 -0
  18. package/dist/api/artifacts-raids.api.js +26 -0
  19. package/dist/api/artifacts-season-rewards.api.d.ts +10 -0
  20. package/dist/api/artifacts-season-rewards.api.js +22 -0
  21. package/dist/api/artifacts-simulation.api.js +1 -1
  22. package/dist/api/artifacts-skins.api.d.ts +10 -0
  23. package/dist/api/artifacts-skins.api.js +20 -0
  24. package/dist/api/artifacts-token.api.d.ts +2 -2
  25. package/dist/api/artifacts.api.d.ts +10 -0
  26. package/dist/api/artifacts.api.js +15 -0
  27. package/dist/api/types/api-schema-bindings.types.d.ts +62 -20
  28. package/dist/api/types/api-schema.types.d.ts +6228 -2577
  29. package/package.json +1 -1
@@ -10,7 +10,8 @@ class ArtifactsMyCharactersApi {
10
10
  move(name, body) {
11
11
  return this.httpClient.post(`/my/${name}/action/move`, { body, isSecure: true });
12
12
  }
13
- /** Execute a transition from the current map to another layer. The character must be on a map that has a transition available. */
13
+ /** Execute a transition from the current map to another layer.
14
+ * The character must be on a map that has a transition available. */
14
15
  transition(name) {
15
16
  return this.httpClient.post(`/my/${name}/action/transition`, {
16
17
  isSecure: true,
@@ -20,15 +21,17 @@ class ArtifactsMyCharactersApi {
20
21
  rest(name) {
21
22
  return this.httpClient.post(`/my/${name}/action/rest`, { isSecure: true });
22
23
  }
23
- /** Equip an item on your character. */
24
- equipItem(name, body) {
24
+ /** Equip multiple items on your character.
25
+ * The cooldown will be 3 seconds multiplied by the number of different items equipped. */
26
+ equipItems(name, body) {
25
27
  return this.httpClient.post(`/my/${name}/action/equip`, {
26
28
  body,
27
29
  isSecure: true,
28
30
  });
29
31
  }
30
- /** Unequip an item on your character. */
31
- unequipItem(name, body) {
32
+ /** Unequip multiple items on your character.
33
+ * The cooldown will be 3 seconds multiplied by the number of different items unequipped. */
34
+ unequipItems(name, body) {
32
35
  return this.httpClient.post(`/my/${name}/action/unequip`, {
33
36
  body,
34
37
  isSecure: true,
@@ -68,14 +71,16 @@ class ArtifactsMyCharactersApi {
68
71
  isSecure: true,
69
72
  });
70
73
  }
71
- /** Deposit multiple items in a bank on the character's map. The cooldown will be 3 seconds multiplied by the number of different items deposited. */
74
+ /** Deposit multiple items in a bank on the character's map.
75
+ * The cooldown will be 3 seconds multiplied by the number of different items deposited. */
72
76
  depositBankItem(name, body) {
73
77
  return this.httpClient.post(`/my/${name}/action/bank/deposit/item`, {
74
78
  body,
75
79
  isSecure: true,
76
80
  });
77
81
  }
78
- /** Take items from your bank and put them in the character's inventory. The cooldown will be 3 seconds multiplied by the number of different items withdrawn. */
82
+ /** Take items from your bank and put them in the character's inventory.
83
+ * The cooldown will be 3 seconds multiplied by the number of different items withdrawn. */
79
84
  withdrawBankItem(name, body) {
80
85
  return this.httpClient.post(`/my/${name}/action/bank/withdraw/item`, {
81
86
  body,
@@ -123,20 +128,44 @@ class ArtifactsMyCharactersApi {
123
128
  isSecure: true,
124
129
  });
125
130
  }
126
- /** Create a sell order at the Grand Exchange on the character's map. Please note there is a 3% listing tax, charged at the time of posting, on the total price. */
131
+ /** Create a sell order at the Grand Exchange on the character's map. */
127
132
  createGrandExchangeSellOrder(name, body) {
128
- return this.httpClient.post(`/my/${name}/action/grandexchange/sell`, {
133
+ return this.httpClient.post(`/my/${name}/action/grandexchange/create_sell_order`, {
129
134
  body,
130
135
  isSecure: true,
131
136
  });
132
137
  }
133
- /** Cancel a sell order at the Grand Exchange on the character's map. */
134
- cancelGrandExchangeSellOrder(name, body) {
138
+ /** Cancel an order (sell or buy) at the Grand Exchange on the character's map.
139
+
140
+ For sell orders: Items are returned to your inventory.
141
+ For buy orders: Gold is refunded to your character. */
142
+ cancelGrandExchangeOrder(name, body) {
135
143
  return this.httpClient.post(`/my/${name}/action/grandexchange/cancel`, {
136
144
  body,
137
145
  isSecure: true,
138
146
  });
139
147
  }
148
+ /** Create a buy order at the Grand Exchange on the character's map.
149
+
150
+ The total gold (price * quantity) is locked when creating the order.
151
+ Other players can then sell items to fulfill your order.
152
+ Items will be delivered to your pending items when the order is filled. */
153
+ createGrandExchangeBuyOrder(name, body) {
154
+ return this.httpClient.post(`/my/${name}/action/grandexchange/create_buy_order`, {
155
+ body,
156
+ isSecure: true,
157
+ });
158
+ }
159
+ /** Sell items to an existing buy order at the Grand Exchange on the character's map.
160
+
161
+ You will receive the gold immediately.
162
+ The buyer will receive the items in their pending items. */
163
+ fillGrandExchange(name, body) {
164
+ return this.httpClient.post(`/my/${name}/action/grandexchange/fill`, {
165
+ body,
166
+ isSecure: true,
167
+ });
168
+ }
140
169
  /** Complete a task. */
141
170
  completeTask(name) {
142
171
  return this.httpClient.post(`/my/${name}/action/task/complete`, {
@@ -175,13 +204,20 @@ class ArtifactsMyCharactersApi {
175
204
  isSecure: true,
176
205
  });
177
206
  }
178
- /** Give items to another character in your account on the same map. The cooldown will be 3 seconds multiplied by the number of different items given. */
207
+ /** Give items to another character in your account on the same map.
208
+ * The cooldown will be 3 seconds multiplied by the number of different items given. */
179
209
  giveItems(name, body) {
180
210
  return this.httpClient.post(`/my/${name}/action/give/item`, {
181
211
  body,
182
212
  isSecure: true,
183
213
  });
184
214
  }
215
+ /** Claim a pending item with a specific character. */
216
+ claimPendingItem(id, name) {
217
+ return this.httpClient.post(`/my/${name}/action/claim_item/${id}`, {
218
+ isSecure: true,
219
+ });
220
+ }
185
221
  /** Delete an item from your character's inventory. */
186
222
  deleteItem(name, body) {
187
223
  return this.httpClient.post(`/my/${name}/action/delete`, {
@@ -196,6 +232,13 @@ class ArtifactsMyCharactersApi {
196
232
  isSecure: true,
197
233
  });
198
234
  }
235
+ /** Rename a character. An active membership is required. */
236
+ rename(name, body) {
237
+ return this.httpClient.post(`/my/${name}/action/rename`, {
238
+ body,
239
+ isSecure: true,
240
+ });
241
+ }
199
242
  /** History of the last 5000 actions of all your characters. */
200
243
  getAllLogs(params = {}) {
201
244
  return this.httpClient.get(`/my/logs`, {
@@ -0,0 +1,12 @@
1
+ import { ArtifactsHttpClient } from "../http-client/artifacts.http-client";
2
+ import { GetAllRaidsApiQuery, GetAllRaidsApiResult, GetRaidApiResult, GetRaidLeaderboardApiQuery, GetRaidLeaderboardApiResult } from "./types/api-schema-bindings.types";
3
+ export declare class ArtifactsRaidsApi {
4
+ private readonly httpClient;
5
+ constructor(httpClient: ArtifactsHttpClient);
6
+ /** Fetch the list of all raids. */
7
+ getAll(params: GetAllRaidsApiQuery): Promise<GetAllRaidsApiResult>;
8
+ /** Retrieve the details of a specific raid. */
9
+ get(code: string): Promise<GetRaidApiResult>;
10
+ /** Retrieve the leaderboard for the active or latest raid instance. */
11
+ getLeaderboard(code: string, params: GetRaidLeaderboardApiQuery): Promise<GetRaidLeaderboardApiResult>;
12
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArtifactsRaidsApi = void 0;
4
+ class ArtifactsRaidsApi {
5
+ httpClient;
6
+ constructor(httpClient) {
7
+ this.httpClient = httpClient;
8
+ }
9
+ /** Fetch the list of all raids. */
10
+ getAll(params) {
11
+ return this.httpClient.get(`/raids`, {
12
+ query: params,
13
+ });
14
+ }
15
+ /** Retrieve the details of a specific raid. */
16
+ get(code) {
17
+ return this.httpClient.get(`/raids/${code}`);
18
+ }
19
+ /** Retrieve the leaderboard for the active or latest raid instance. */
20
+ getLeaderboard(code, params) {
21
+ return this.httpClient.get(`/raids/${code}/leaderboard`, {
22
+ query: params,
23
+ });
24
+ }
25
+ }
26
+ exports.ArtifactsRaidsApi = ArtifactsRaidsApi;
@@ -0,0 +1,10 @@
1
+ import { ArtifactsHttpClient } from '../http-client/artifacts.http-client';
2
+ import { GetAllSeasonRewardsApiQuery, GetAllSeasonRewardsApiResult, GetSeasonRewardsByCodeApiQuery, GetSeasonRewardsByCodeApiResult } from './types/api-schema-bindings.types';
3
+ export declare class ArtifactsSeasonRewardsApi {
4
+ private readonly httpClient;
5
+ constructor(httpClient: ArtifactsHttpClient);
6
+ /** List of all rewards for the current season. */
7
+ get(params: GetAllSeasonRewardsApiQuery): Promise<GetAllSeasonRewardsApiResult>;
8
+ /** List all season rewards matching a specific code. */
9
+ getByCode(code: string, params: GetSeasonRewardsByCodeApiQuery): Promise<GetSeasonRewardsByCodeApiResult>;
10
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArtifactsSeasonRewardsApi = void 0;
4
+ class ArtifactsSeasonRewardsApi {
5
+ httpClient;
6
+ constructor(httpClient) {
7
+ this.httpClient = httpClient;
8
+ }
9
+ /** List of all rewards for the current season. */
10
+ get(params) {
11
+ return this.httpClient.get(`/season_rewards`, {
12
+ query: params,
13
+ });
14
+ }
15
+ /** List all season rewards matching a specific code. */
16
+ getByCode(code, params) {
17
+ return this.httpClient.get(`/skins/${code}`, {
18
+ query: params,
19
+ });
20
+ }
21
+ }
22
+ exports.ArtifactsSeasonRewardsApi = ArtifactsSeasonRewardsApi;
@@ -8,7 +8,7 @@ class ArtifactsSimulationApi {
8
8
  }
9
9
  /** Simulate combat with fake characters against a monster multiple times. Member or founder account required. */
10
10
  simulate(body) {
11
- return this.httpClient.post(`/simulation/fight_simulation`, {
11
+ return this.httpClient.post(`/simulation/fight`, {
12
12
  body,
13
13
  isSecure: true,
14
14
  });
@@ -0,0 +1,10 @@
1
+ import { ArtifactsHttpClient } from '../http-client/artifacts.http-client';
2
+ import { GetAllSkinsApiQuery, GetAllSkinsApiResult, GetSkinApiResult } from './types/api-schema-bindings.types';
3
+ export declare class ArtifactsSkinsApi {
4
+ private readonly httpClient;
5
+ constructor(httpClient: ArtifactsHttpClient);
6
+ /** List of all skins available in the game. */
7
+ getAll(params: GetAllSkinsApiQuery): Promise<GetAllSkinsApiResult>;
8
+ /** Retrieve the details of a skin. */
9
+ get(code: string): Promise<GetSkinApiResult>;
10
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArtifactsSkinsApi = void 0;
4
+ class ArtifactsSkinsApi {
5
+ httpClient;
6
+ constructor(httpClient) {
7
+ this.httpClient = httpClient;
8
+ }
9
+ /** List of all skins available in the game. */
10
+ getAll(params) {
11
+ return this.httpClient.get(`/skins`, {
12
+ query: params,
13
+ });
14
+ }
15
+ /** Retrieve the details of a skin. */
16
+ get(code) {
17
+ return this.httpClient.get(`/skins/${code}`);
18
+ }
19
+ }
20
+ exports.ArtifactsSkinsApi = ArtifactsSkinsApi;
@@ -1,5 +1,5 @@
1
1
  import { ArtifactsHttpClient } from '../http-client/artifacts.http-client';
2
- import { GenerateTokenResult } from './types/api-schema-bindings.types';
2
+ import { GenerateTokenApiResult } from './types/api-schema-bindings.types';
3
3
  export declare class ArtifactsTokenApi {
4
4
  private readonly httpClient;
5
5
  constructor(httpClient: ArtifactsHttpClient);
@@ -7,5 +7,5 @@ export declare class ArtifactsTokenApi {
7
7
  * Use your account as HTTPBasic Auth to generate your token to use the API.
8
8
  * You can also generate your token directly on the website.
9
9
  */
10
- generate(username: string, password: string): Promise<GenerateTokenResult>;
10
+ generate(username: string, password: string): Promise<GenerateTokenApiResult>;
11
11
  }
@@ -19,6 +19,11 @@ import { ArtifactsEffectsApi } from './artifacts-effects.api';
19
19
  import { ArtifactsNpcsApi } from './artifacts-npcs.api';
20
20
  import { ArtifactsTasksApi } from './artifacts-tasks.api';
21
21
  import { ArtifactsSimulationApi } from './artifacts-simulation.api';
22
+ import { ArtifactsSkinsApi } from './artifacts-skins.api';
23
+ import { ArtifactsSeasonRewardsApi } from './artifacts-season-rewards.api';
24
+ import { ArtifactsRaidsApi } from './artifacts-raids.api';
25
+ import { ArtifactsGemsShopApi } from './artifacts-gems-shop.api';
26
+ import { ArtifactsGameAssistantApi } from './artifacts-game-assistant.api';
22
27
  export declare class ArtifactsApi {
23
28
  private readonly httpClient;
24
29
  readonly myAccount: ArtifactsMyAccountApi;
@@ -26,6 +31,8 @@ export declare class ArtifactsApi {
26
31
  readonly accounts: ArtifactsAccountsApi;
27
32
  readonly achievements: ArtifactsAchievementsApi;
28
33
  readonly badges: ArtifactsBadgesApi;
34
+ readonly skins: ArtifactsSkinsApi;
35
+ readonly seasonRewards: ArtifactsSeasonRewardsApi;
29
36
  readonly characters: ArtifactsCharactersApi;
30
37
  readonly effects: ArtifactsEffectsApi;
31
38
  readonly events: ArtifactsEventsApi;
@@ -35,10 +42,13 @@ export declare class ArtifactsApi {
35
42
  readonly maps: ArtifactsMapsApi;
36
43
  readonly monsters: ArtifactsMonstersApi;
37
44
  readonly npcs: ArtifactsNpcsApi;
45
+ readonly raids: ArtifactsRaidsApi;
38
46
  readonly resources: ArtifactsResourcesApi;
39
47
  readonly tasks: ArtifactsTasksApi;
40
48
  readonly simulation: ArtifactsSimulationApi;
41
49
  readonly token: ArtifactsTokenApi;
50
+ readonly gemsShop: ArtifactsGemsShopApi;
51
+ readonly gameAssistant: ArtifactsGameAssistantApi;
42
52
  protected constructor(httpClient: ArtifactsHttpClient);
43
53
  static create(params?: ArtifactsApiParams): ArtifactsApi;
44
54
  getStatus(): Promise<GetStatusApiResult>;
@@ -20,6 +20,11 @@ const artifacts_effects_api_1 = require("./artifacts-effects.api");
20
20
  const artifacts_npcs_api_1 = require("./artifacts-npcs.api");
21
21
  const artifacts_tasks_api_1 = require("./artifacts-tasks.api");
22
22
  const artifacts_simulation_api_1 = require("./artifacts-simulation.api");
23
+ const artifacts_skins_api_1 = require("./artifacts-skins.api");
24
+ const artifacts_season_rewards_api_1 = require("./artifacts-season-rewards.api");
25
+ const artifacts_raids_api_1 = require("./artifacts-raids.api");
26
+ const artifacts_gems_shop_api_1 = require("./artifacts-gems-shop.api");
27
+ const artifacts_game_assistant_api_1 = require("./artifacts-game-assistant.api");
23
28
  class ArtifactsApi {
24
29
  httpClient;
25
30
  myAccount;
@@ -27,6 +32,8 @@ class ArtifactsApi {
27
32
  accounts;
28
33
  achievements;
29
34
  badges;
35
+ skins;
36
+ seasonRewards;
30
37
  characters;
31
38
  effects;
32
39
  events;
@@ -36,10 +43,13 @@ class ArtifactsApi {
36
43
  maps;
37
44
  monsters;
38
45
  npcs;
46
+ raids;
39
47
  resources;
40
48
  tasks;
41
49
  simulation;
42
50
  token;
51
+ gemsShop;
52
+ gameAssistant;
43
53
  constructor(httpClient) {
44
54
  this.httpClient = httpClient;
45
55
  this.myAccount = new artifacts_my_account_api_1.ArtifactsMyAccountApi(httpClient);
@@ -47,6 +57,8 @@ class ArtifactsApi {
47
57
  this.accounts = new artifacts_accounts_api_1.ArtifactsAccountsApi(httpClient);
48
58
  this.achievements = new artifacts_achievements_api_1.ArtifactsAchievementsApi(httpClient);
49
59
  this.badges = new artifacts_badges_api_1.ArtifactsBadgesApi(httpClient);
60
+ this.skins = new artifacts_skins_api_1.ArtifactsSkinsApi(httpClient);
61
+ this.seasonRewards = new artifacts_season_rewards_api_1.ArtifactsSeasonRewardsApi(httpClient);
50
62
  this.characters = new artifacts_characters_api_1.ArtifactsCharactersApi(httpClient);
51
63
  this.effects = new artifacts_effects_api_1.ArtifactsEffectsApi(httpClient);
52
64
  this.events = new artifacts_events_api_1.ArtifactsEventsApi(httpClient);
@@ -56,10 +68,13 @@ class ArtifactsApi {
56
68
  this.maps = new artifacts_maps_api_1.ArtifactsMapsApi(httpClient);
57
69
  this.monsters = new artifacts_monsters_api_1.ArtifactsMonstersApi(httpClient);
58
70
  this.npcs = new artifacts_npcs_api_1.ArtifactsNpcsApi(httpClient);
71
+ this.raids = new artifacts_raids_api_1.ArtifactsRaidsApi(httpClient);
59
72
  this.resources = new artifacts_resources_api_1.ArtifactsResourcesApi(httpClient);
60
73
  this.tasks = new artifacts_tasks_api_1.ArtifactsTasksApi(httpClient);
61
74
  this.simulation = new artifacts_simulation_api_1.ArtifactsSimulationApi(httpClient);
62
75
  this.token = new artifacts_token_api_1.ArtifactsTokenApi(httpClient);
76
+ this.gemsShop = new artifacts_gems_shop_api_1.ArtifactsGemsShopApi(httpClient);
77
+ this.gameAssistant = new artifacts_game_assistant_api_1.ArtifactsGameAssistantApi(httpClient);
63
78
  }
64
79
  static create(params = {}) {
65
80
  const httpClient = new artifacts_http_client_1.ArtifactsHttpClient(params.baseUrl ?? 'https://api.artifactsmmo.com', params.token ?? '');
@@ -3,21 +3,35 @@ export type GetStatusApiResult = paths['/']['get']['responses'][200]['content'][
3
3
  export type GetBankApiResult = paths['/my/bank']['get']['responses'][200]['content']['application/json'];
4
4
  export type GetBankItemsApiQuery = paths['/my/bank/items']['get']['parameters']['query'];
5
5
  export type GetBankItemsApiResult = paths['/my/bank/items']['get']['responses'][200]['content']['application/json'];
6
- export type GetMyGrandExchangeSellOrdersApiRequest = paths['/my/grandexchange/orders']['get']['parameters']['query'];
7
- export type GetMyGrandExchangeSellOrdersApiResult = paths['/my/grandexchange/orders']['get']['responses'][200]['content']['application/json'];
8
- export type GetMyGrandExchangeSellHistoryApiRequest = paths['/my/grandexchange/history']['get']['parameters']['query'];
9
- export type GetMyGrandExchangeSellHistoryApiResult = paths['/my/grandexchange/history']['get']['responses'][200]['content']['application/json'];
6
+ export type GetMyGrandExchangeOrdersApiRequest = paths['/my/grandexchange/orders']['get']['parameters']['query'];
7
+ export type GetMyGrandExchangeOrdersApiResult = paths['/my/grandexchange/orders']['get']['responses'][200]['content']['application/json'];
8
+ export type GetMyGrandExchangeHistoryApiRequest = paths['/my/grandexchange/history']['get']['parameters']['query'];
9
+ export type GetMyGrandExchangeHistoryApiResult = paths['/my/grandexchange/history']['get']['responses'][200]['content']['application/json'];
10
10
  export type GetAccountDetailsApiResult = paths['/my/details']['get']['responses'][200]['content']['application/json'];
11
+ export type GetPendingItemsApiRequest = paths['/my/pending_items']['get']['parameters']['query'];
12
+ export type GetPendingItemsApiResult = paths['/my/pending_items']['get']['responses'][200]['content']['application/json'];
13
+ export type GetRateLimitsApiResult = paths['/my/rates']['get']['responses'][200]['content']['application/json'];
11
14
  export type ChangePasswordApiBody = paths['/my/change_password']['post']['requestBody']['content']['application/json'];
12
15
  export type ChangePasswordApiResult = paths['/my/change_password']['post']['responses'][200]['content']['application/json'];
16
+ export type ChangeEmailApiBody = paths['/my/change_email']['post']['requestBody']['content']['application/json'];
17
+ export type ChangeEmailApiResult = paths['/my/change_email']['post']['responses'][200]['content']['application/json'];
18
+ export type GetMySubscriptionApiResult = paths['/my/subscription']['get']['responses'][200]['content']['application/json'];
19
+ export type SubscribeWithStripeApiBody = paths['/my/subscribe/stripe']['post']['requestBody']['content']['application/json'];
20
+ export type SubscribeWithStripeApiResult = paths['/my/subscribe/stripe']['post']['responses'][200]['content']['application/json'];
21
+ export type SubscribeWithMemberTokenApiResult = paths['/my/subscribe/member_token']['post']['responses'][200]['content']['application/json'];
22
+ export type CancelSubscriptionApiResult = paths['/my/subscribe/cancel']['post']['responses'][200]['content']['application/json'];
23
+ export type GetMyPurchaseHistoryApiResult = paths['/my/purchase_history']['get']['responses'][200]['content']['application/json'];
24
+ export type GetMyGemsHistoryApiResult = paths['/my/gems_history']['get']['responses'][200]['content']['application/json'];
25
+ export type BuyGemsApiBody = paths['/my/buy_gems']['post']['requestBody']['content']['application/json'];
26
+ export type BuyGemsApiResult = paths['/my/buy_gems']['post']['responses'][200]['content']['application/json'];
13
27
  export type MoveApiBody = paths['/my/{name}/action/move']['post']['requestBody']['content']['application/json'];
14
28
  export type MoveApiResult = paths['/my/{name}/action/move']['post']['responses'][200]['content']['application/json'];
15
29
  export type TransitionApiResult = paths['/my/{name}/action/transition']['post']['responses'][200]['content']['application/json'];
16
30
  export type RestApiResult = paths['/my/{name}/action/rest']['post']['responses'][200]['content']['application/json'];
17
- export type EquipItemApiBody = paths['/my/{name}/action/equip']['post']['requestBody']['content']['application/json'];
18
- export type EquipItemApiResult = paths['/my/{name}/action/equip']['post']['responses'][200]['content']['application/json'];
19
- export type UnequipItemApiBody = paths['/my/{name}/action/unequip']['post']['requestBody']['content']['application/json'];
20
- export type UnequipItemApiResult = paths['/my/{name}/action/unequip']['post']['responses'][200]['content']['application/json'];
31
+ export type EquipItemsApiBody = paths['/my/{name}/action/equip']['post']['requestBody']['content']['application/json'];
32
+ export type EquipItemsApiResult = paths['/my/{name}/action/equip']['post']['responses'][200]['content']['application/json'];
33
+ export type UnequipItemsApiBody = paths['/my/{name}/action/unequip']['post']['requestBody']['content']['application/json'];
34
+ export type UnequipItemsApiResult = paths['/my/{name}/action/unequip']['post']['responses'][200]['content']['application/json'];
21
35
  export type UseItemApiBody = paths['/my/{name}/action/use']['post']['requestBody']['content']['application/json'];
22
36
  export type UseItemApiResult = paths['/my/{name}/action/use']['post']['responses'][200]['content']['application/json'];
23
37
  export type FightApiBody = components['schemas']['FightRequestSchema'];
@@ -42,10 +56,14 @@ export type RecyclingApiBody = paths['/my/{name}/action/recycling']['post']['req
42
56
  export type RecyclingApiResult = paths['/my/{name}/action/recycling']['post']['responses'][200]['content']['application/json'];
43
57
  export type BuyGrandExchangeItemApiBody = paths['/my/{name}/action/grandexchange/buy']['post']['requestBody']['content']['application/json'];
44
58
  export type BuyGrandExchangeItemApiResult = paths['/my/{name}/action/grandexchange/buy']['post']['responses'][200]['content']['application/json'];
45
- export type CreateGrandExchangeSellOrderApiBody = paths['/my/{name}/action/grandexchange/sell']['post']['requestBody']['content']['application/json'];
46
- export type CreateGrandExchangeSellOrderApiResult = paths['/my/{name}/action/grandexchange/sell']['post']['responses'][200]['content']['application/json'];
47
- export type CancelGrandExchangeSellOrderApiBody = paths['/my/{name}/action/grandexchange/cancel']['post']['requestBody']['content']['application/json'];
48
- export type CancelGrandExchangeSellOrderApiResult = paths['/my/{name}/action/grandexchange/cancel']['post']['responses'][200]['content']['application/json'];
59
+ export type CreateGrandExchangeSellOrderApiBody = paths['/my/{name}/action/grandexchange/create_sell_order']['post']['requestBody']['content']['application/json'];
60
+ export type CreateGrandExchangeSellOrderApiResult = paths['/my/{name}/action/grandexchange/create_sell_order']['post']['responses'][200]['content']['application/json'];
61
+ export type CancelGrandExchangeOrderApiBody = paths['/my/{name}/action/grandexchange/cancel']['post']['requestBody']['content']['application/json'];
62
+ export type CancelGrandExchangeOrderApiResult = paths['/my/{name}/action/grandexchange/cancel']['post']['responses'][200]['content']['application/json'];
63
+ export type CreateGrandExchangeBuyOrderApiBody = paths['/my/{name}/action/grandexchange/create_buy_order']['post']['requestBody']['content']['application/json'];
64
+ export type CreateGrandExchangeBuyOrderApiResult = paths['/my/{name}/action/grandexchange/create_buy_order']['post']['responses'][200]['content']['application/json'];
65
+ export type FillGrandExchangeApiBody = paths['/my/{name}/action/grandexchange/fill']['post']['requestBody']['content']['application/json'];
66
+ export type FillGrandExchangeApiResult = paths['/my/{name}/action/grandexchange/fill']['post']['responses'][200]['content']['application/json'];
49
67
  export type CompleteTaskApiResult = paths['/my/{name}/action/task/complete']['post']['responses'][200]['content']['application/json'];
50
68
  export type ExchangeTaskApiResult = paths['/my/{name}/action/task/exchange']['post']['responses'][200]['content']['application/json'];
51
69
  export type AcceptTaskApiResult = paths['/my/{name}/action/task/new']['post']['responses'][200]['content']['application/json'];
@@ -56,24 +74,27 @@ export type GiveGoldApiBody = paths['/my/{name}/action/give/gold']['post']['requ
56
74
  export type GiveGoldApiResult = paths['/my/{name}/action/give/gold']['post']['responses'][200]['content']['application/json'];
57
75
  export type GiveItemsApiBody = paths['/my/{name}/action/give/item']['post']['requestBody']['content']['application/json'];
58
76
  export type GiveItemsApiResult = paths['/my/{name}/action/give/item']['post']['responses'][200]['content']['application/json'];
77
+ export type ClaimPendingItemApiResult = paths['/my/{name}/action/claim_item/{id}']['post']['responses'][200]['content']['application/json'];
59
78
  export type DeleteItemApiBody = paths['/my/{name}/action/delete']['post']['requestBody']['content']['application/json'];
60
79
  export type DeleteItemApiResult = paths['/my/{name}/action/delete']['post']['responses'][200]['content']['application/json'];
61
80
  export type ChangeSkinApiBody = paths['/my/{name}/action/change_skin']['post']['requestBody']['content']['application/json'];
62
81
  export type ChangeSkinApiResult = paths['/my/{name}/action/change_skin']['post']['responses'][200]['content']['application/json'];
82
+ export type RenameApiBody = paths['/my/{name}/action/rename']['post']['requestBody']['content']['application/json'];
83
+ export type RenameApiResult = paths['/my/{name}/action/rename']['post']['responses'][200]['content']['application/json'];
63
84
  export type GetAllLogsApiQuery = paths['/my/logs']['get']['parameters']['query'];
64
85
  export type GetAllLogsApiResult = paths['/my/logs']['get']['responses'][200]['content']['application/json'];
65
86
  export type GetLogsApiQuery = paths['/my/logs/{name}']['get']['parameters']['query'];
66
87
  export type GetLogsApiResult = paths['/my/logs/{name}']['get']['responses'][200]['content']['application/json'];
67
88
  export type GetMyCharactersApiResult = paths['/my/characters']['get']['responses'][200]['content']['application/json'];
89
+ export type GetAccountAchievementsApiQuery = paths['/accounts/{account}/achievements']['get']['parameters']['query'];
90
+ export type GetAccountAchievementsApiResult = paths['/accounts/{account}/achievements']['get']['responses'][200]['content']['application/json'];
91
+ export type GetAccountCharactersApiResult = paths['/accounts/{account}/characters']['get']['responses'][200]['content']['application/json'];
68
92
  export type CreateAccountApiBody = paths['/accounts/create']['post']['requestBody']['content']['application/json'];
69
93
  export type CreateAccountApiResult = paths['/accounts/create']['post']['responses'][200]['content']['application/json'];
70
94
  export type ForgotPasswordApiBody = paths['/accounts/forgot_password']['post']['requestBody']['content']['application/json'];
71
95
  export type ForgotPasswordApiResult = paths['/accounts/forgot_password']['post']['responses'][200]['content']['application/json'];
72
96
  export type ResetPasswordApiBody = paths['/accounts/reset_password']['post']['requestBody']['content']['application/json'];
73
97
  export type ResetPasswordApiResult = paths['/accounts/reset_password']['post']['responses'][200]['content']['application/json'];
74
- export type GetAccountAchievementsApiQuery = paths['/accounts/{account}/achievements']['get']['parameters']['query'];
75
- export type GetAccountAchievementsApiResult = paths['/accounts/{account}/achievements']['get']['responses'][200]['content']['application/json'];
76
- export type GetAccountCharactersApiResult = paths['/accounts/{account}/characters']['get']['responses'][200]['content']['application/json'];
77
98
  export type GetAccountApiResult = paths['/accounts/{account}']['get']['responses'][200]['content']['application/json'];
78
99
  export type GetAllAchievementsApiQuery = paths['/achievements']['get']['parameters']['query'];
79
100
  export type GetAllAchievementsApiResult = paths['/achievements']['get']['responses'][200]['content']['application/json'];
@@ -81,10 +102,18 @@ export type GetAchievementApiResult = paths['/achievements/{code}']['get']['resp
81
102
  export type GetAllBadgesApiQuery = paths['/badges']['get']['parameters']['query'];
82
103
  export type GetAllBadgesApiResult = paths['/badges']['get']['responses'][200]['content']['application/json'];
83
104
  export type GetBadgeApiResult = paths['/badges/{code}']['get']['responses'][200]['content']['application/json'];
105
+ export type GetAllSkinsApiQuery = paths['/skins']['get']['parameters']['query'];
106
+ export type GetAllSkinsApiResult = paths['/skins']['get']['responses'][200]['content']['application/json'];
107
+ export type GetSkinApiResult = paths['/skins/{code}']['get']['responses'][200]['content']['application/json'];
108
+ export type GetAllSeasonRewardsApiQuery = paths['/season_rewards']['get']['parameters']['query'];
109
+ export type GetAllSeasonRewardsApiResult = paths['/season_rewards/{code}']['get']['responses'][200]['content']['application/json'];
110
+ export type GetSeasonRewardsByCodeApiQuery = paths['/season_rewards/{code}']['get']['parameters']['query'];
111
+ export type GetSeasonRewardsByCodeApiResult = paths['/season_rewards/{code}']['get']['responses'][200]['content']['application/json'];
84
112
  export type CreateCharacterApiBody = paths['/characters/create']['post']['requestBody']['content']['application/json'];
85
113
  export type CreateCharacterApiResult = paths['/accounts/create']['post']['responses'][200]['content']['application/json'];
86
114
  export type DeleteCharacterApiBody = paths['/characters/delete']['post']['requestBody']['content']['application/json'];
87
115
  export type DeleteCharacterApiResult = paths['/characters/delete']['post']['responses'][200]['content']['application/json'];
116
+ export type GetCharacterStatsApiResult = paths['/characters/{name}/stats']['get']['responses'][200]['content']['application/json'];
88
117
  export type GetActiveCharactersApiQuery = paths['/characters/active']['get']['parameters']['query'];
89
118
  export type GetActiveCharactersApiResult = paths['/characters/active']['get']['responses'][200]['content']['application/json'];
90
119
  export type GetCharacterApiResult = paths['/characters/{name}']['get']['responses'][200]['content']['application/json'];
@@ -95,8 +124,6 @@ export type GetAllActiveEventsApiQuery = paths['/events/active']['get']['paramet
95
124
  export type GetAllActiveEventsApiResult = paths['/events/active']['get']['responses'][200]['content']['application/json'];
96
125
  export type GetAllEventsApiQuery = paths['/events']['get']['parameters']['query'];
97
126
  export type GetAllEventsApiResult = paths['/events']['get']['responses'][200]['content']['application/json'];
98
- export type SpawnEventApiBody = paths['/events/spawn']['post']['requestBody']['content']['application/json'];
99
- export type SpawnEventApiResult = paths['/events/spawn']['post']['responses'][200]['content']['application/json'];
100
127
  export type GetGrandExchangeSellHistoryApiQuery = paths['/grandexchange/history/{code}']['get']['parameters']['query'];
101
128
  export type GetGrandExchangeSellHistoryApiResult = paths['/grandexchange/history/{code}']['get']['responses'][200]['content']['application/json'];
102
129
  export type GetGrandExchangeSellOrdersApiQuery = paths['/grandexchange/orders']['get']['parameters']['query'];
@@ -125,6 +152,11 @@ export type GetNpcItemsApiQuery = paths['/npcs/items/{code}']['get']['parameters
125
152
  export type GetNpcItemsApiResult = paths['/npcs/items/{code}']['get']['responses'][200]['content']['application/json'];
126
153
  export type GetAllNpcsItemsApiQuery = paths['/npcs/items']['get']['parameters']['query'];
127
154
  export type GetAllNpcsItemsApiResult = paths['/npcs/items']['get']['responses'][200]['content']['application/json'];
155
+ export type GetAllRaidsApiQuery = paths['/raids']['get']['parameters']['query'];
156
+ export type GetAllRaidsApiResult = paths['/raids']['get']['responses'][200]['content']['application/json'];
157
+ export type GetRaidApiResult = paths['/raids/{code}']['get']['responses'][200]['content']['application/json'];
158
+ export type GetRaidLeaderboardApiQuery = paths['/raids/{code}/leaderboard']['get']['parameters']['query'];
159
+ export type GetRaidLeaderboardApiResult = paths['/raids/{code}/leaderboard']['get']['responses'][200]['content']['application/json'];
128
160
  export type GetAllResourcesApiQuery = paths['/resources']['get']['parameters']['query'];
129
161
  export type GetAllResourcesApiResult = paths['/resources']['get']['responses'][200]['content']['application/json'];
130
162
  export type GetResourceApiResult = paths['/resources/{code}']['get']['responses'][200]['content']['application/json'];
@@ -134,6 +166,16 @@ export type GetTaskApiResult = paths['/tasks/list/{code}']['get']['responses'][2
134
166
  export type GetAllTasksRewardsApiQuery = paths['/tasks/rewards']['get']['parameters']['query'];
135
167
  export type GetAllTasksRewardsApiResult = paths['/tasks/rewards']['get']['responses'][200]['content']['application/json'];
136
168
  export type GetTasksRewardsApiResult = paths['/tasks/rewards/{code}']['get']['responses'][200]['content']['application/json'];
137
- export type FightSimulationApiBody = paths['/simulation/fight_simulation']['post']['requestBody']['content']['application/json'];
138
- export type FightSimulationApiResult = paths['/simulation/fight_simulation']['post']['responses'][200]['content']['application/json'];
139
- export type GenerateTokenResult = paths['/token']['post']['responses'][200]['content']['application/json'];
169
+ export type FightSimulationApiBody = paths['/simulation/fight']['post']['requestBody']['content']['application/json'];
170
+ export type FightSimulationApiResult = paths['/simulation/fight']['post']['responses'][200]['content']['application/json'];
171
+ export type GenerateTokenApiResult = paths['/token']['post']['responses'][200]['content']['application/json'];
172
+ export type GetCatalogApiResult = paths['/gems_shop/']['get']['responses'][200]['content']['application/json'];
173
+ export type BuySkinApiBody = paths['/gems_shop/skin']['post']['requestBody']['content']['application/json'];
174
+ export type BuySkinApiResult = paths['/gems_shop/skin']['post']['responses'][200]['content']['application/json'];
175
+ export type BuySpawnEventApiBody = paths['/gems_shop/spawn_event']['post']['requestBody']['content']['application/json'];
176
+ export type BuySpawnEventApiResult = paths['/gems_shop/spawn_event']['post']['responses'][200]['content']['application/json'];
177
+ export type BuySubscriptionApiResult = paths['/gems_shop/subscription']['post']['responses'][200]['content']['application/json'];
178
+ export type BuyCustomDesignApiBody = paths['/gems_shop/buy_custom_design']['post']['requestBody']['content']['application/json'];
179
+ export type BuyCustomDesignApiResult = paths['/gems_shop/buy_custom_design']['post']['responses'][200]['content']['application/json'];
180
+ export type AskGameAssistantApiBody = paths['/game_assistant/ask']['post']['requestBody']['content']['application/json'];
181
+ export type AskGameAssistantApiResult = paths['/game_assistant/ask']['post']['responses'][200]['content']['application/json'];