@takaro/apiclient 0.0.0-dev.809cc38 → 0.0.0-dev.80cea27

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.
@@ -433,6 +433,7 @@ export const GetJobInputDTOTypeEnum = {
433
433
  SyncDiscordRoles: 'syncDiscordRoles',
434
434
  EmitRateLimitSummary: 'emitRateLimitSummary',
435
435
  CleanRevokedApiKeys: 'cleanRevokedApiKeys',
436
+ CleanExecutionClaims: 'cleanExecutionClaims',
436
437
  };
437
438
  export const GetSettingsInputKeysEnum = {
438
439
  CommandPrefix: 'commandPrefix',
@@ -837,6 +838,20 @@ export const JobStatusOutputDTOStatusEnum = {
837
838
  Waiting: 'waiting',
838
839
  WaitingChildren: 'waiting-children',
839
840
  };
841
+ export const LoginQueryParamsLocaleEnum = {
842
+ En: 'en',
843
+ Nl: 'nl',
844
+ Fr: 'fr',
845
+ De: 'de',
846
+ Es: 'es',
847
+ Ru: 'ru',
848
+ PtBr: 'pt-BR',
849
+ Pl: 'pl',
850
+ Uk: 'uk',
851
+ ZhCn: 'zh-CN',
852
+ Ja: 'ja',
853
+ It: 'it',
854
+ };
840
855
  export const ManagementDomainOutputDTOStateEnum = {
841
856
  Active: 'ACTIVE',
842
857
  Disabled: 'DISABLED',
@@ -1057,11 +1072,24 @@ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
1057
1072
  Gt: 'gt',
1058
1073
  Lt: 'lt',
1059
1074
  };
1075
+ export const ShopOrderDeliveryItemDTOResultEnum = {
1076
+ Delivered: 'DELIVERED',
1077
+ Failed: 'FAILED',
1078
+ Unknown: 'UNKNOWN',
1079
+ };
1060
1080
  export const ShopOrderOutputDTOStatusEnum = {
1061
1081
  Completed: 'COMPLETED',
1062
1082
  Paid: 'PAID',
1063
1083
  Canceled: 'CANCELED',
1064
1084
  };
1085
+ export const ShopOrderOutputDTODeliveryStatusEnum = {
1086
+ NotApplicable: 'NOT_APPLICABLE',
1087
+ NotAttempted: 'NOT_ATTEMPTED',
1088
+ InProgress: 'IN_PROGRESS',
1089
+ Delivered: 'DELIVERED',
1090
+ Failed: 'FAILED',
1091
+ Unknown: 'UNKNOWN',
1092
+ };
1065
1093
  export const ShopOrderSearchInputDTOExtendEnum = {
1066
1094
  Listing: 'listing',
1067
1095
  ListingItems: 'listing.items',
@@ -5277,10 +5305,11 @@ export const AuthApiAxiosParamCreator = function (configuration) {
5277
5305
  * <br> OperationId: `AuthControllerLogin`
5278
5306
  * @summary Login
5279
5307
  * @param {string} [redirect]
5308
+ * @param {AuthControllerLoginLocaleEnum} [locale]
5280
5309
  * @param {*} [options] Override http request option.
5281
5310
  * @throws {RequiredError}
5282
5311
  */
5283
- authControllerLogin: async (redirect, options = {}) => {
5312
+ authControllerLogin: async (redirect, locale, options = {}) => {
5284
5313
  const localVarPath = `/auth/login`;
5285
5314
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5286
5315
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5294,6 +5323,9 @@ export const AuthApiAxiosParamCreator = function (configuration) {
5294
5323
  if (redirect !== undefined) {
5295
5324
  localVarQueryParameter['redirect'] = redirect;
5296
5325
  }
5326
+ if (locale !== undefined) {
5327
+ localVarQueryParameter['locale'] = locale;
5328
+ }
5297
5329
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5298
5330
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5299
5331
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -5368,11 +5400,12 @@ export const AuthApiFp = function (configuration) {
5368
5400
  * <br> OperationId: `AuthControllerLogin`
5369
5401
  * @summary Login
5370
5402
  * @param {string} [redirect]
5403
+ * @param {AuthControllerLoginLocaleEnum} [locale]
5371
5404
  * @param {*} [options] Override http request option.
5372
5405
  * @throws {RequiredError}
5373
5406
  */
5374
- async authControllerLogin(redirect, options) {
5375
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(redirect, options);
5407
+ async authControllerLogin(redirect, locale, options) {
5408
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(redirect, locale, options);
5376
5409
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5377
5410
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
5378
5411
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5421,11 +5454,12 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
5421
5454
  * <br> OperationId: `AuthControllerLogin`
5422
5455
  * @summary Login
5423
5456
  * @param {string} [redirect]
5457
+ * @param {AuthControllerLoginLocaleEnum} [locale]
5424
5458
  * @param {*} [options] Override http request option.
5425
5459
  * @throws {RequiredError}
5426
5460
  */
5427
- authControllerLogin(redirect, options) {
5428
- return localVarFp.authControllerLogin(redirect, options).then((request) => request(axios, basePath));
5461
+ authControllerLogin(redirect, locale, options) {
5462
+ return localVarFp.authControllerLogin(redirect, locale, options).then((request) => request(axios, basePath));
5429
5463
  },
5430
5464
  /**
5431
5465
  * <br> OperationId: `AuthControllerLogout`
@@ -5474,13 +5508,14 @@ export class AuthApi extends BaseAPI {
5474
5508
  * <br> OperationId: `AuthControllerLogin`
5475
5509
  * @summary Login
5476
5510
  * @param {string} [redirect]
5511
+ * @param {AuthControllerLoginLocaleEnum} [locale]
5477
5512
  * @param {*} [options] Override http request option.
5478
5513
  * @throws {RequiredError}
5479
5514
  * @memberof AuthApi
5480
5515
  */
5481
- authControllerLogin(redirect, options) {
5516
+ authControllerLogin(redirect, locale, options) {
5482
5517
  return AuthApiFp(this.configuration)
5483
- .authControllerLogin(redirect, options)
5518
+ .authControllerLogin(redirect, locale, options)
5484
5519
  .then((request) => request(this.axios, this.basePath));
5485
5520
  }
5486
5521
  /**
@@ -5497,6 +5532,23 @@ export class AuthApi extends BaseAPI {
5497
5532
  .then((request) => request(this.axios, this.basePath));
5498
5533
  }
5499
5534
  }
5535
+ /**
5536
+ * @export
5537
+ */
5538
+ export const AuthControllerLoginLocaleEnum = {
5539
+ En: 'en',
5540
+ Nl: 'nl',
5541
+ Fr: 'fr',
5542
+ De: 'de',
5543
+ Es: 'es',
5544
+ Ru: 'ru',
5545
+ PtBr: 'pt-BR',
5546
+ Pl: 'pl',
5547
+ Uk: 'uk',
5548
+ ZhCn: 'zh-CN',
5549
+ Ja: 'ja',
5550
+ It: 'it',
5551
+ };
5500
5552
  /**
5501
5553
  * CommandApi - axios parameter creator
5502
5554
  * @export
@@ -12324,7 +12376,7 @@ export const ModuleApiAxiosParamCreator = function (configuration) {
12324
12376
  };
12325
12377
  },
12326
12378
  /**
12327
- * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
12379
+ * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Besides the installation columns, `sortBy` accepts `moduleName` to order by the installed module\'s name, case-insensitively. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
12328
12380
  * @summary List the modules installed on a game server
12329
12381
  * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO
12330
12382
  * @param {*} [options] Override http request option.
@@ -12660,7 +12712,7 @@ export const ModuleApiFp = function (configuration) {
12660
12712
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12661
12713
  },
12662
12714
  /**
12663
- * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
12715
+ * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Besides the installation columns, `sortBy` accepts `moduleName` to order by the installed module\'s name, case-insensitively. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
12664
12716
  * @summary List the modules installed on a game server
12665
12717
  * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO
12666
12718
  * @param {*} [options] Override http request option.
@@ -12842,7 +12894,7 @@ export const ModuleApiFactory = function (configuration, basePath, axios) {
12842
12894
  .then((request) => request(axios, basePath));
12843
12895
  },
12844
12896
  /**
12845
- * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
12897
+ * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Besides the installation columns, `sortBy` accepts `moduleName` to order by the installed module\'s name, case-insensitively. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
12846
12898
  * @summary List the modules installed on a game server
12847
12899
  * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO
12848
12900
  * @param {*} [options] Override http request option.
@@ -13030,7 +13082,7 @@ export class ModuleApi extends BaseAPI {
13030
13082
  .then((request) => request(this.axios, this.basePath));
13031
13083
  }
13032
13084
  /**
13033
- * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
13085
+ * Find module installations, optionally narrowed to one game server or one module, with the configuration each installation was given. Besides the installation columns, `sortBy` accepts `moduleName` to order by the installed module\'s name, case-insensitively. Required permissions: `READ_MODULES`<br> OperationId: `ModuleInstallationsControllerGetInstalledModules`
13034
13086
  * @summary List the modules installed on a game server
13035
13087
  * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO
13036
13088
  * @param {*} [options] Override http request option.
@@ -17934,7 +17986,7 @@ export const ShopOrderApiAxiosParamCreator = function (configuration) {
17934
17986
  };
17935
17987
  },
17936
17988
  /**
17937
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
17989
+ * Claiming an order will mark it as completed and give the user the item in-game. The returned status of COMPLETED is a statement about the ORDER, not about delivery: it means the order was claimed, not that the items reached the game server. Read the deliveryStatus field for that — DELIVERED means every line was acknowledged by the game server, FAILED means every line was definitively refused, and UNKNOWN means the outcome could not be reconciled and must not be replayed automatically. deliveryItems records what the game server said about each line. Claiming a COMPLETED order whose deliveryStatus is FAILED retries its delivery with the lines that were paid for, exactly as redeliver does. Claiming one whose deliveryStatus is UNKNOWN or IN_PROGRESS, or any other already-claimed order, fails with 400, which is what makes concurrent or repeated claims deliver at most once.<br> OperationId: `ShopOrderControllerClaim`
17938
17990
  * @summary Claim an order
17939
17991
  * @param {string} id
17940
17992
  * @param {*} [options] Override http request option.
@@ -17966,8 +18018,8 @@ export const ShopOrderApiAxiosParamCreator = function (configuration) {
17966
18018
  };
17967
18019
  },
17968
18020
  /**
17969
- * <br> OperationId: `ShopOrderControllerCreate`
17970
- * @summary Create
18021
+ * Create a new shop order. Accepts an optional caller-chosen idempotencyKey that makes this request recoverable: retrying with the same key and the same listing, amount and player returns the original order (HTTP 200) without charging again; reusing a key with different input fails with 409. Use a fresh random value (e.g. a UUIDv4) per intended purchase. Keys are unique per domain and are also a supported search filter on POST /shop/order/search, for reconciling a lost response without an ambiguous player/listing/time search.<br> OperationId: `ShopOrderControllerCreate`
18022
+ * @summary Create an order
17971
18023
  * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
17972
18024
  * @param {*} [options] Override http request option.
17973
18025
  * @throws {RequiredError}
@@ -18029,6 +18081,38 @@ export const ShopOrderApiAxiosParamCreator = function (configuration) {
18029
18081
  options: localVarRequestOptions,
18030
18082
  };
18031
18083
  },
18084
+ /**
18085
+ * Retry the in-game delivery of an order that was already claimed. Legal only when deliveryStatus is FAILED, where every line was definitively refused by the game server and replaying therefore cannot hand the player anything twice. DELIVERED and NOT_APPLICABLE are a no-op and return the order unchanged. UNKNOWN and IN_PROGRESS fail with 409: Takaro cannot tell whether the items already landed, and it will not deliver them again to find out. An order that was never claimed fails with 400. Claiming a FAILED order retries its delivery the same way. This endpoint does not re-run the listing\'s shop action, which already ran when the order was claimed.<br> OperationId: `ShopOrderControllerRedeliver`
18086
+ * @summary Retry delivery of a claimed order
18087
+ * @param {string} id
18088
+ * @param {*} [options] Override http request option.
18089
+ * @throws {RequiredError}
18090
+ */
18091
+ shopOrderControllerRedeliver: async (id, options = {}) => {
18092
+ // verify required parameter 'id' is not null or undefined
18093
+ assertParamExists('shopOrderControllerRedeliver', 'id', id);
18094
+ const localVarPath = `/shop/order/{id}/redeliver`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
18095
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18096
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18097
+ let baseOptions;
18098
+ if (configuration) {
18099
+ baseOptions = configuration.baseOptions;
18100
+ }
18101
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18102
+ const localVarHeaderParameter = {};
18103
+ const localVarQueryParameter = {};
18104
+ // authentication bearerAuth required
18105
+ // http bearer authentication required
18106
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18107
+ // authentication domainAuth required
18108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18110
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18111
+ return {
18112
+ url: toPathString(localVarUrlObj),
18113
+ options: localVarRequestOptions,
18114
+ };
18115
+ },
18032
18116
  /**
18033
18117
  * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
18034
18118
  * @summary Search orders
@@ -18084,7 +18168,7 @@ export const ShopOrderApiFp = function (configuration) {
18084
18168
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18085
18169
  },
18086
18170
  /**
18087
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
18171
+ * Claiming an order will mark it as completed and give the user the item in-game. The returned status of COMPLETED is a statement about the ORDER, not about delivery: it means the order was claimed, not that the items reached the game server. Read the deliveryStatus field for that — DELIVERED means every line was acknowledged by the game server, FAILED means every line was definitively refused, and UNKNOWN means the outcome could not be reconciled and must not be replayed automatically. deliveryItems records what the game server said about each line. Claiming a COMPLETED order whose deliveryStatus is FAILED retries its delivery with the lines that were paid for, exactly as redeliver does. Claiming one whose deliveryStatus is UNKNOWN or IN_PROGRESS, or any other already-claimed order, fails with 400, which is what makes concurrent or repeated claims deliver at most once.<br> OperationId: `ShopOrderControllerClaim`
18088
18172
  * @summary Claim an order
18089
18173
  * @param {string} id
18090
18174
  * @param {*} [options] Override http request option.
@@ -18097,8 +18181,8 @@ export const ShopOrderApiFp = function (configuration) {
18097
18181
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18098
18182
  },
18099
18183
  /**
18100
- * <br> OperationId: `ShopOrderControllerCreate`
18101
- * @summary Create
18184
+ * Create a new shop order. Accepts an optional caller-chosen idempotencyKey that makes this request recoverable: retrying with the same key and the same listing, amount and player returns the original order (HTTP 200) without charging again; reusing a key with different input fails with 409. Use a fresh random value (e.g. a UUIDv4) per intended purchase. Keys are unique per domain and are also a supported search filter on POST /shop/order/search, for reconciling a lost response without an ambiguous player/listing/time search.<br> OperationId: `ShopOrderControllerCreate`
18185
+ * @summary Create an order
18102
18186
  * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
18103
18187
  * @param {*} [options] Override http request option.
18104
18188
  * @throws {RequiredError}
@@ -18122,6 +18206,19 @@ export const ShopOrderApiFp = function (configuration) {
18122
18206
  const localVarOperationServerBasePath = operationServerMap['ShopOrderApi.shopOrderControllerGetOne']?.[localVarOperationServerIndex]?.url;
18123
18207
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18124
18208
  },
18209
+ /**
18210
+ * Retry the in-game delivery of an order that was already claimed. Legal only when deliveryStatus is FAILED, where every line was definitively refused by the game server and replaying therefore cannot hand the player anything twice. DELIVERED and NOT_APPLICABLE are a no-op and return the order unchanged. UNKNOWN and IN_PROGRESS fail with 409: Takaro cannot tell whether the items already landed, and it will not deliver them again to find out. An order that was never claimed fails with 400. Claiming a FAILED order retries its delivery the same way. This endpoint does not re-run the listing\'s shop action, which already ran when the order was claimed.<br> OperationId: `ShopOrderControllerRedeliver`
18211
+ * @summary Retry delivery of a claimed order
18212
+ * @param {string} id
18213
+ * @param {*} [options] Override http request option.
18214
+ * @throws {RequiredError}
18215
+ */
18216
+ async shopOrderControllerRedeliver(id, options) {
18217
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerRedeliver(id, options);
18218
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18219
+ const localVarOperationServerBasePath = operationServerMap['ShopOrderApi.shopOrderControllerRedeliver']?.[localVarOperationServerIndex]?.url;
18220
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18221
+ },
18125
18222
  /**
18126
18223
  * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
18127
18224
  * @summary Search orders
@@ -18155,7 +18252,7 @@ export const ShopOrderApiFactory = function (configuration, basePath, axios) {
18155
18252
  return localVarFp.shopOrderControllerCancel(id, options).then((request) => request(axios, basePath));
18156
18253
  },
18157
18254
  /**
18158
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
18255
+ * Claiming an order will mark it as completed and give the user the item in-game. The returned status of COMPLETED is a statement about the ORDER, not about delivery: it means the order was claimed, not that the items reached the game server. Read the deliveryStatus field for that — DELIVERED means every line was acknowledged by the game server, FAILED means every line was definitively refused, and UNKNOWN means the outcome could not be reconciled and must not be replayed automatically. deliveryItems records what the game server said about each line. Claiming a COMPLETED order whose deliveryStatus is FAILED retries its delivery with the lines that were paid for, exactly as redeliver does. Claiming one whose deliveryStatus is UNKNOWN or IN_PROGRESS, or any other already-claimed order, fails with 400, which is what makes concurrent or repeated claims deliver at most once.<br> OperationId: `ShopOrderControllerClaim`
18159
18256
  * @summary Claim an order
18160
18257
  * @param {string} id
18161
18258
  * @param {*} [options] Override http request option.
@@ -18165,8 +18262,8 @@ export const ShopOrderApiFactory = function (configuration, basePath, axios) {
18165
18262
  return localVarFp.shopOrderControllerClaim(id, options).then((request) => request(axios, basePath));
18166
18263
  },
18167
18264
  /**
18168
- * <br> OperationId: `ShopOrderControllerCreate`
18169
- * @summary Create
18265
+ * Create a new shop order. Accepts an optional caller-chosen idempotencyKey that makes this request recoverable: retrying with the same key and the same listing, amount and player returns the original order (HTTP 200) without charging again; reusing a key with different input fails with 409. Use a fresh random value (e.g. a UUIDv4) per intended purchase. Keys are unique per domain and are also a supported search filter on POST /shop/order/search, for reconciling a lost response without an ambiguous player/listing/time search.<br> OperationId: `ShopOrderControllerCreate`
18266
+ * @summary Create an order
18170
18267
  * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
18171
18268
  * @param {*} [options] Override http request option.
18172
18269
  * @throws {RequiredError}
@@ -18186,6 +18283,16 @@ export const ShopOrderApiFactory = function (configuration, basePath, axios) {
18186
18283
  shopOrderControllerGetOne(id, options) {
18187
18284
  return localVarFp.shopOrderControllerGetOne(id, options).then((request) => request(axios, basePath));
18188
18285
  },
18286
+ /**
18287
+ * Retry the in-game delivery of an order that was already claimed. Legal only when deliveryStatus is FAILED, where every line was definitively refused by the game server and replaying therefore cannot hand the player anything twice. DELIVERED and NOT_APPLICABLE are a no-op and return the order unchanged. UNKNOWN and IN_PROGRESS fail with 409: Takaro cannot tell whether the items already landed, and it will not deliver them again to find out. An order that was never claimed fails with 400. Claiming a FAILED order retries its delivery the same way. This endpoint does not re-run the listing\'s shop action, which already ran when the order was claimed.<br> OperationId: `ShopOrderControllerRedeliver`
18288
+ * @summary Retry delivery of a claimed order
18289
+ * @param {string} id
18290
+ * @param {*} [options] Override http request option.
18291
+ * @throws {RequiredError}
18292
+ */
18293
+ shopOrderControllerRedeliver(id, options) {
18294
+ return localVarFp.shopOrderControllerRedeliver(id, options).then((request) => request(axios, basePath));
18295
+ },
18189
18296
  /**
18190
18297
  * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
18191
18298
  * @summary Search orders
@@ -18221,7 +18328,7 @@ export class ShopOrderApi extends BaseAPI {
18221
18328
  .then((request) => request(this.axios, this.basePath));
18222
18329
  }
18223
18330
  /**
18224
- * Claiming an order will mark it as completed and give the user the item in-game<br> OperationId: `ShopOrderControllerClaim`
18331
+ * Claiming an order will mark it as completed and give the user the item in-game. The returned status of COMPLETED is a statement about the ORDER, not about delivery: it means the order was claimed, not that the items reached the game server. Read the deliveryStatus field for that — DELIVERED means every line was acknowledged by the game server, FAILED means every line was definitively refused, and UNKNOWN means the outcome could not be reconciled and must not be replayed automatically. deliveryItems records what the game server said about each line. Claiming a COMPLETED order whose deliveryStatus is FAILED retries its delivery with the lines that were paid for, exactly as redeliver does. Claiming one whose deliveryStatus is UNKNOWN or IN_PROGRESS, or any other already-claimed order, fails with 400, which is what makes concurrent or repeated claims deliver at most once.<br> OperationId: `ShopOrderControllerClaim`
18225
18332
  * @summary Claim an order
18226
18333
  * @param {string} id
18227
18334
  * @param {*} [options] Override http request option.
@@ -18234,8 +18341,8 @@ export class ShopOrderApi extends BaseAPI {
18234
18341
  .then((request) => request(this.axios, this.basePath));
18235
18342
  }
18236
18343
  /**
18237
- * <br> OperationId: `ShopOrderControllerCreate`
18238
- * @summary Create
18344
+ * Create a new shop order. Accepts an optional caller-chosen idempotencyKey that makes this request recoverable: retrying with the same key and the same listing, amount and player returns the original order (HTTP 200) without charging again; reusing a key with different input fails with 409. Use a fresh random value (e.g. a UUIDv4) per intended purchase. Keys are unique per domain and are also a supported search filter on POST /shop/order/search, for reconciling a lost response without an ambiguous player/listing/time search.<br> OperationId: `ShopOrderControllerCreate`
18345
+ * @summary Create an order
18239
18346
  * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO
18240
18347
  * @param {*} [options] Override http request option.
18241
18348
  * @throws {RequiredError}
@@ -18259,6 +18366,19 @@ export class ShopOrderApi extends BaseAPI {
18259
18366
  .shopOrderControllerGetOne(id, options)
18260
18367
  .then((request) => request(this.axios, this.basePath));
18261
18368
  }
18369
+ /**
18370
+ * Retry the in-game delivery of an order that was already claimed. Legal only when deliveryStatus is FAILED, where every line was definitively refused by the game server and replaying therefore cannot hand the player anything twice. DELIVERED and NOT_APPLICABLE are a no-op and return the order unchanged. UNKNOWN and IN_PROGRESS fail with 409: Takaro cannot tell whether the items already landed, and it will not deliver them again to find out. An order that was never claimed fails with 400. Claiming a FAILED order retries its delivery the same way. This endpoint does not re-run the listing\'s shop action, which already ran when the order was claimed.<br> OperationId: `ShopOrderControllerRedeliver`
18371
+ * @summary Retry delivery of a claimed order
18372
+ * @param {string} id
18373
+ * @param {*} [options] Override http request option.
18374
+ * @throws {RequiredError}
18375
+ * @memberof ShopOrderApi
18376
+ */
18377
+ shopOrderControllerRedeliver(id, options) {
18378
+ return ShopOrderApiFp(this.configuration)
18379
+ .shopOrderControllerRedeliver(id, options)
18380
+ .then((request) => request(this.axios, this.basePath));
18381
+ }
18262
18382
  /**
18263
18383
  * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders.<br> OperationId: `ShopOrderControllerSearch`
18264
18384
  * @summary Search orders
@@ -19415,6 +19535,38 @@ export const UserApiAxiosParamCreator = function (configuration) {
19415
19535
  options: localVarRequestOptions,
19416
19536
  };
19417
19537
  },
19538
+ /**
19539
+ * The Discord ID linked to each of up to 100 players in this domain, for rendering player lists. Players without a linked Discord account are omitted. Required permissions: `READ_USERS`<br> OperationId: `UserControllerDiscordLinksForPlayers`
19540
+ * @summary Linked Discord accounts of players
19541
+ * @param {PlayerDiscordLinksInputDTO} [playerDiscordLinksInputDTO] PlayerDiscordLinksInputDTO
19542
+ * @param {*} [options] Override http request option.
19543
+ * @throws {RequiredError}
19544
+ */
19545
+ userControllerDiscordLinksForPlayers: async (playerDiscordLinksInputDTO, options = {}) => {
19546
+ const localVarPath = `/user/discord-links`;
19547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19549
+ let baseOptions;
19550
+ if (configuration) {
19551
+ baseOptions = configuration.baseOptions;
19552
+ }
19553
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
19554
+ const localVarHeaderParameter = {};
19555
+ const localVarQueryParameter = {};
19556
+ // authentication bearerAuth required
19557
+ // http bearer authentication required
19558
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
19559
+ // authentication domainAuth required
19560
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19561
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19562
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19563
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
19564
+ localVarRequestOptions.data = serializeDataIfNeeded(playerDiscordLinksInputDTO, localVarRequestOptions, configuration);
19565
+ return {
19566
+ url: toPathString(localVarUrlObj),
19567
+ options: localVarRequestOptions,
19568
+ };
19569
+ },
19418
19570
  /**
19419
19571
  * Required permissions: `READ_USERS`<br> OperationId: `UserControllerGetOne`
19420
19572
  * @summary Get one
@@ -19831,6 +19983,19 @@ export const UserApiFp = function (configuration) {
19831
19983
  const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerDeleteSelectedDomainCookie']?.[localVarOperationServerIndex]?.url;
19832
19984
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19833
19985
  },
19986
+ /**
19987
+ * The Discord ID linked to each of up to 100 players in this domain, for rendering player lists. Players without a linked Discord account are omitted. Required permissions: `READ_USERS`<br> OperationId: `UserControllerDiscordLinksForPlayers`
19988
+ * @summary Linked Discord accounts of players
19989
+ * @param {PlayerDiscordLinksInputDTO} [playerDiscordLinksInputDTO] PlayerDiscordLinksInputDTO
19990
+ * @param {*} [options] Override http request option.
19991
+ * @throws {RequiredError}
19992
+ */
19993
+ async userControllerDiscordLinksForPlayers(playerDiscordLinksInputDTO, options) {
19994
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerDiscordLinksForPlayers(playerDiscordLinksInputDTO, options);
19995
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19996
+ const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerDiscordLinksForPlayers']?.[localVarOperationServerIndex]?.url;
19997
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19998
+ },
19834
19999
  /**
19835
20000
  * Required permissions: `READ_USERS`<br> OperationId: `UserControllerGetOne`
19836
20001
  * @summary Get one
@@ -20026,6 +20191,18 @@ export const UserApiFactory = function (configuration, basePath, axios) {
20026
20191
  userControllerDeleteSelectedDomainCookie(options) {
20027
20192
  return localVarFp.userControllerDeleteSelectedDomainCookie(options).then((request) => request(axios, basePath));
20028
20193
  },
20194
+ /**
20195
+ * The Discord ID linked to each of up to 100 players in this domain, for rendering player lists. Players without a linked Discord account are omitted. Required permissions: `READ_USERS`<br> OperationId: `UserControllerDiscordLinksForPlayers`
20196
+ * @summary Linked Discord accounts of players
20197
+ * @param {PlayerDiscordLinksInputDTO} [playerDiscordLinksInputDTO] PlayerDiscordLinksInputDTO
20198
+ * @param {*} [options] Override http request option.
20199
+ * @throws {RequiredError}
20200
+ */
20201
+ userControllerDiscordLinksForPlayers(playerDiscordLinksInputDTO, options) {
20202
+ return localVarFp
20203
+ .userControllerDiscordLinksForPlayers(playerDiscordLinksInputDTO, options)
20204
+ .then((request) => request(axios, basePath));
20205
+ },
20029
20206
  /**
20030
20207
  * Required permissions: `READ_USERS`<br> OperationId: `UserControllerGetOne`
20031
20208
  * @summary Get one
@@ -20200,6 +20377,19 @@ export class UserApi extends BaseAPI {
20200
20377
  .userControllerDeleteSelectedDomainCookie(options)
20201
20378
  .then((request) => request(this.axios, this.basePath));
20202
20379
  }
20380
+ /**
20381
+ * The Discord ID linked to each of up to 100 players in this domain, for rendering player lists. Players without a linked Discord account are omitted. Required permissions: `READ_USERS`<br> OperationId: `UserControllerDiscordLinksForPlayers`
20382
+ * @summary Linked Discord accounts of players
20383
+ * @param {PlayerDiscordLinksInputDTO} [playerDiscordLinksInputDTO] PlayerDiscordLinksInputDTO
20384
+ * @param {*} [options] Override http request option.
20385
+ * @throws {RequiredError}
20386
+ * @memberof UserApi
20387
+ */
20388
+ userControllerDiscordLinksForPlayers(playerDiscordLinksInputDTO, options) {
20389
+ return UserApiFp(this.configuration)
20390
+ .userControllerDiscordLinksForPlayers(playerDiscordLinksInputDTO, options)
20391
+ .then((request) => request(this.axios, this.basePath));
20392
+ }
20203
20393
  /**
20204
20394
  * Required permissions: `READ_USERS`<br> OperationId: `UserControllerGetOne`
20205
20395
  * @summary Get one