@takaro/apiclient 0.0.0-dev.318c3f4 → 0.0.0-dev.318d34c

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.
@@ -724,6 +724,12 @@ export const MetaFilterGroupOrLeafDTOOperatorEnum = {
724
724
  LessThan: '<',
725
725
  ArrayContains: 'array_contains',
726
726
  };
727
+ export const ModuleInstallationKpisQueryDTOPeriodEnum = {
728
+ _24h: '24h',
729
+ _7d: '7d',
730
+ _30d: '30d',
731
+ _90d: '90d',
732
+ };
727
733
  export const ModuleInstallationSearchInputDTOSortDirectionEnum = {
728
734
  Asc: 'asc',
729
735
  Desc: 'desc',
@@ -1448,6 +1454,56 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
1448
1454
  options: localVarRequestOptions,
1449
1455
  };
1450
1456
  },
1457
+ /**
1458
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
1459
+ * @summary Get per-installation module KPIs
1460
+ * @param {string} gameServerId
1461
+ * @param {string} moduleId
1462
+ * @param {string} [startDate]
1463
+ * @param {string} [endDate]
1464
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
1465
+ * @param {*} [options] Override http request option.
1466
+ * @throws {RequiredError}
1467
+ */
1468
+ analyticsControllerGetModuleInstallationKpis: async (gameServerId, moduleId, startDate, endDate, period, options = {}) => {
1469
+ // verify required parameter 'gameServerId' is not null or undefined
1470
+ assertParamExists('analyticsControllerGetModuleInstallationKpis', 'gameServerId', gameServerId);
1471
+ // verify required parameter 'moduleId' is not null or undefined
1472
+ assertParamExists('analyticsControllerGetModuleInstallationKpis', 'moduleId', moduleId);
1473
+ const localVarPath = `/analytics/modules/installation-kpis`;
1474
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1475
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1476
+ let baseOptions;
1477
+ if (configuration) {
1478
+ baseOptions = configuration.baseOptions;
1479
+ }
1480
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1481
+ const localVarHeaderParameter = {};
1482
+ const localVarQueryParameter = {};
1483
+ // authentication domainAuth required
1484
+ if (startDate !== undefined) {
1485
+ localVarQueryParameter['startDate'] = startDate;
1486
+ }
1487
+ if (endDate !== undefined) {
1488
+ localVarQueryParameter['endDate'] = endDate;
1489
+ }
1490
+ if (gameServerId !== undefined) {
1491
+ localVarQueryParameter['gameServerId'] = gameServerId;
1492
+ }
1493
+ if (moduleId !== undefined) {
1494
+ localVarQueryParameter['moduleId'] = moduleId;
1495
+ }
1496
+ if (period !== undefined) {
1497
+ localVarQueryParameter['period'] = period;
1498
+ }
1499
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1501
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1502
+ return {
1503
+ url: toPathString(localVarUrlObj),
1504
+ options: localVarRequestOptions,
1505
+ };
1506
+ },
1451
1507
  /**
1452
1508
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
1453
1509
  * @summary Get module item failure aggregate
@@ -2548,6 +2604,24 @@ export const AnalyticsApiFp = function (configuration) {
2548
2604
  const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsControllerGetModuleHealth']?.[localVarOperationServerIndex]?.url;
2549
2605
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2550
2606
  },
2607
+ /**
2608
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
2609
+ * @summary Get per-installation module KPIs
2610
+ * @param {string} gameServerId
2611
+ * @param {string} moduleId
2612
+ * @param {string} [startDate]
2613
+ * @param {string} [endDate]
2614
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
2615
+ * @param {*} [options] Override http request option.
2616
+ * @throws {RequiredError}
2617
+ */
2618
+ async analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options) {
2619
+ const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options);
2620
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2621
+ const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsControllerGetModuleInstallationKpis']?.[localVarOperationServerIndex]
2622
+ ?.url;
2623
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2624
+ },
2551
2625
  /**
2552
2626
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
2553
2627
  * @summary Get module item failure aggregate
@@ -3090,6 +3164,22 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
3090
3164
  .analyticsControllerGetModuleHealth(startDate, endDate, gameServerId, period, options)
3091
3165
  .then((request) => request(axios, basePath));
3092
3166
  },
3167
+ /**
3168
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
3169
+ * @summary Get per-installation module KPIs
3170
+ * @param {string} gameServerId
3171
+ * @param {string} moduleId
3172
+ * @param {string} [startDate]
3173
+ * @param {string} [endDate]
3174
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
3175
+ * @param {*} [options] Override http request option.
3176
+ * @throws {RequiredError}
3177
+ */
3178
+ analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options) {
3179
+ return localVarFp
3180
+ .analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options)
3181
+ .then((request) => request(axios, basePath));
3182
+ },
3093
3183
  /**
3094
3184
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
3095
3185
  * @summary Get module item failure aggregate
@@ -3619,6 +3709,23 @@ export class AnalyticsApi extends BaseAPI {
3619
3709
  .analyticsControllerGetModuleHealth(startDate, endDate, gameServerId, period, options)
3620
3710
  .then((request) => request(this.axios, this.basePath));
3621
3711
  }
3712
+ /**
3713
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
3714
+ * @summary Get per-installation module KPIs
3715
+ * @param {string} gameServerId
3716
+ * @param {string} moduleId
3717
+ * @param {string} [startDate]
3718
+ * @param {string} [endDate]
3719
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
3720
+ * @param {*} [options] Override http request option.
3721
+ * @throws {RequiredError}
3722
+ * @memberof AnalyticsApi
3723
+ */
3724
+ analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options) {
3725
+ return AnalyticsApiFp(this.configuration)
3726
+ .analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options)
3727
+ .then((request) => request(this.axios, this.basePath));
3728
+ }
3622
3729
  /**
3623
3730
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
3624
3731
  * @summary Get module item failure aggregate
@@ -4064,6 +4171,15 @@ export const AnalyticsControllerGetModuleHealthPeriodEnum = {
4064
4171
  _30d: '30d',
4065
4172
  _90d: '90d',
4066
4173
  };
4174
+ /**
4175
+ * @export
4176
+ */
4177
+ export const AnalyticsControllerGetModuleInstallationKpisPeriodEnum = {
4178
+ _24h: '24h',
4179
+ _7d: '7d',
4180
+ _30d: '30d',
4181
+ _90d: '90d',
4182
+ };
4067
4183
  /**
4068
4184
  * @export
4069
4185
  */
@@ -4254,118 +4370,99 @@ export const AnalyticsControllerGetTopServersPeriodEnum = {
4254
4370
  _90d: '90d',
4255
4371
  };
4256
4372
  /**
4257
- * CommandApi - axios parameter creator
4373
+ * AuthApi - axios parameter creator
4258
4374
  * @export
4259
4375
  */
4260
- export const CommandApiAxiosParamCreator = function (configuration) {
4376
+ export const AuthApiAxiosParamCreator = function (configuration) {
4261
4377
  return {
4262
4378
  /**
4263
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
4264
- * @summary Create
4265
- * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
4379
+ * <br> OperationId: `AuthControllerAccount`
4380
+ * @summary Account
4266
4381
  * @param {*} [options] Override http request option.
4267
4382
  * @throws {RequiredError}
4268
4383
  */
4269
- commandControllerCreate: async (commandCreateDTO, options = {}) => {
4270
- const localVarPath = `/command`;
4384
+ authControllerAccount: async (options = {}) => {
4385
+ const localVarPath = `/auth/account`;
4271
4386
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4272
4387
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4273
4388
  let baseOptions;
4274
4389
  if (configuration) {
4275
4390
  baseOptions = configuration.baseOptions;
4276
4391
  }
4277
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4392
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4278
4393
  const localVarHeaderParameter = {};
4279
4394
  const localVarQueryParameter = {};
4280
- // authentication domainAuth required
4281
- localVarHeaderParameter['Content-Type'] = 'application/json';
4282
4395
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4283
4396
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4284
4397
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4285
- localVarRequestOptions.data = serializeDataIfNeeded(commandCreateDTO, localVarRequestOptions, configuration);
4286
4398
  return {
4287
4399
  url: toPathString(localVarUrlObj),
4288
4400
  options: localVarRequestOptions,
4289
4401
  };
4290
4402
  },
4291
4403
  /**
4292
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreateArgument`
4293
- * @summary Create argument
4294
- * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO
4404
+ * <br> OperationId: `AuthControllerCallback`
4405
+ * @summary Callback
4295
4406
  * @param {*} [options] Override http request option.
4296
4407
  * @throws {RequiredError}
4297
4408
  */
4298
- commandControllerCreateArgument: async (commandArgumentCreateDTO, options = {}) => {
4299
- const localVarPath = `/command/argument`;
4409
+ authControllerCallback: async (options = {}) => {
4410
+ const localVarPath = `/auth/callback`;
4300
4411
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4301
4412
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4302
4413
  let baseOptions;
4303
4414
  if (configuration) {
4304
4415
  baseOptions = configuration.baseOptions;
4305
4416
  }
4306
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4417
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4307
4418
  const localVarHeaderParameter = {};
4308
4419
  const localVarQueryParameter = {};
4309
- // authentication domainAuth required
4310
- localVarHeaderParameter['Content-Type'] = 'application/json';
4311
4420
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4312
4421
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4313
4422
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4314
- localVarRequestOptions.data = serializeDataIfNeeded(commandArgumentCreateDTO, localVarRequestOptions, configuration);
4315
4423
  return {
4316
4424
  url: toPathString(localVarUrlObj),
4317
4425
  options: localVarRequestOptions,
4318
4426
  };
4319
4427
  },
4320
4428
  /**
4321
- * Required permissions: `READ_MODULES`<br> OperationId: `CommandControllerGetExecutions`
4322
- * @summary Get executions
4323
- * @param {string} id
4324
- * @param {any} [success]
4325
- * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
4429
+ * <br> OperationId: `AuthControllerLogin`
4430
+ * @summary Login
4431
+ * @param {string} [redirect]
4326
4432
  * @param {*} [options] Override http request option.
4327
4433
  * @throws {RequiredError}
4328
4434
  */
4329
- commandControllerGetExecutions: async (id, success, eventSearchInputDTO, options = {}) => {
4330
- // verify required parameter 'id' is not null or undefined
4331
- assertParamExists('commandControllerGetExecutions', 'id', id);
4332
- const localVarPath = `/command/{id}/executions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4435
+ authControllerLogin: async (redirect, options = {}) => {
4436
+ const localVarPath = `/auth/login`;
4333
4437
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4334
4438
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4335
4439
  let baseOptions;
4336
4440
  if (configuration) {
4337
4441
  baseOptions = configuration.baseOptions;
4338
4442
  }
4339
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4443
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4340
4444
  const localVarHeaderParameter = {};
4341
4445
  const localVarQueryParameter = {};
4342
- // authentication domainAuth required
4343
- if (success !== undefined) {
4344
- for (const [key, value] of Object.entries(success)) {
4345
- localVarQueryParameter[key] = value;
4346
- }
4446
+ if (redirect !== undefined) {
4447
+ localVarQueryParameter['redirect'] = redirect;
4347
4448
  }
4348
- localVarHeaderParameter['Content-Type'] = 'application/json';
4349
4449
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4350
4450
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4351
4451
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4352
- localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration);
4353
4452
  return {
4354
4453
  url: toPathString(localVarUrlObj),
4355
4454
  options: localVarRequestOptions,
4356
4455
  };
4357
4456
  },
4358
4457
  /**
4359
- * Required permissions: `READ_MODULES`<br> OperationId: `CommandControllerGetOne`
4360
- * @summary Get one
4361
- * @param {string} id
4458
+ * <br> OperationId: `AuthControllerLogout`
4459
+ * @summary Logout
4460
+ * @param {string} [redirect]
4362
4461
  * @param {*} [options] Override http request option.
4363
4462
  * @throws {RequiredError}
4364
4463
  */
4365
- commandControllerGetOne: async (id, options = {}) => {
4366
- // verify required parameter 'id' is not null or undefined
4367
- assertParamExists('commandControllerGetOne', 'id', id);
4368
- const localVarPath = `/command/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4464
+ authControllerLogout: async (redirect, options = {}) => {
4465
+ const localVarPath = `/auth/logout`;
4369
4466
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4370
4467
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4371
4468
  let baseOptions;
@@ -4375,7 +4472,9 @@ export const CommandApiAxiosParamCreator = function (configuration) {
4375
4472
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4376
4473
  const localVarHeaderParameter = {};
4377
4474
  const localVarQueryParameter = {};
4378
- // authentication domainAuth required
4475
+ if (redirect !== undefined) {
4476
+ localVarQueryParameter['redirect'] = redirect;
4477
+ }
4379
4478
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4380
4479
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4381
4480
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -4384,123 +4483,420 @@ export const CommandApiAxiosParamCreator = function (configuration) {
4384
4483
  options: localVarRequestOptions,
4385
4484
  };
4386
4485
  },
4486
+ };
4487
+ };
4488
+ /**
4489
+ * AuthApi - functional programming interface
4490
+ * @export
4491
+ */
4492
+ export const AuthApiFp = function (configuration) {
4493
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
4494
+ return {
4387
4495
  /**
4388
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerRemove`
4389
- * @summary Remove
4390
- * @param {string} id
4496
+ * <br> OperationId: `AuthControllerAccount`
4497
+ * @summary Account
4391
4498
  * @param {*} [options] Override http request option.
4392
4499
  * @throws {RequiredError}
4393
4500
  */
4394
- commandControllerRemove: async (id, options = {}) => {
4395
- // verify required parameter 'id' is not null or undefined
4396
- assertParamExists('commandControllerRemove', 'id', id);
4397
- const localVarPath = `/command/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4398
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4399
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4400
- let baseOptions;
4401
- if (configuration) {
4402
- baseOptions = configuration.baseOptions;
4403
- }
4404
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4405
- const localVarHeaderParameter = {};
4406
- const localVarQueryParameter = {};
4407
- // authentication domainAuth required
4408
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4409
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4410
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4411
- return {
4412
- url: toPathString(localVarUrlObj),
4413
- options: localVarRequestOptions,
4414
- };
4501
+ async authControllerAccount(options) {
4502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerAccount(options);
4503
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4504
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerAccount']?.[localVarOperationServerIndex]?.url;
4505
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4415
4506
  },
4416
4507
  /**
4417
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerRemoveArgument`
4418
- * @summary Remove argument
4419
- * @param {string} id
4508
+ * <br> OperationId: `AuthControllerCallback`
4509
+ * @summary Callback
4420
4510
  * @param {*} [options] Override http request option.
4421
4511
  * @throws {RequiredError}
4422
4512
  */
4423
- commandControllerRemoveArgument: async (id, options = {}) => {
4424
- // verify required parameter 'id' is not null or undefined
4425
- assertParamExists('commandControllerRemoveArgument', 'id', id);
4426
- const localVarPath = `/command/argument/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4427
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4428
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4429
- let baseOptions;
4430
- if (configuration) {
4431
- baseOptions = configuration.baseOptions;
4432
- }
4433
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4434
- const localVarHeaderParameter = {};
4435
- const localVarQueryParameter = {};
4436
- // authentication domainAuth required
4437
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4438
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4439
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4440
- return {
4441
- url: toPathString(localVarUrlObj),
4442
- options: localVarRequestOptions,
4443
- };
4513
+ async authControllerCallback(options) {
4514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerCallback(options);
4515
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4516
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerCallback']?.[localVarOperationServerIndex]?.url;
4517
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4444
4518
  },
4445
4519
  /**
4446
- * Search commands Required permissions: `READ_MODULES`<br> OperationId: `CommandControllerSearch`
4447
- * @summary Search
4448
- * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO
4520
+ * <br> OperationId: `AuthControllerLogin`
4521
+ * @summary Login
4522
+ * @param {string} [redirect]
4449
4523
  * @param {*} [options] Override http request option.
4450
4524
  * @throws {RequiredError}
4451
4525
  */
4452
- commandControllerSearch: async (commandSearchInputDTO, options = {}) => {
4453
- const localVarPath = `/command/search`;
4454
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4455
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4456
- let baseOptions;
4457
- if (configuration) {
4458
- baseOptions = configuration.baseOptions;
4459
- }
4460
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4461
- const localVarHeaderParameter = {};
4462
- const localVarQueryParameter = {};
4463
- // authentication domainAuth required
4464
- localVarHeaderParameter['Content-Type'] = 'application/json';
4465
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4466
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4467
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4468
- localVarRequestOptions.data = serializeDataIfNeeded(commandSearchInputDTO, localVarRequestOptions, configuration);
4469
- return {
4470
- url: toPathString(localVarUrlObj),
4471
- options: localVarRequestOptions,
4472
- };
4526
+ async authControllerLogin(redirect, options) {
4527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(redirect, options);
4528
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4529
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
4530
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4473
4531
  },
4474
4532
  /**
4475
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerTrigger`
4476
- * @summary Trigger
4477
- * @param {string} id
4478
- * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO
4533
+ * <br> OperationId: `AuthControllerLogout`
4534
+ * @summary Logout
4535
+ * @param {string} [redirect]
4479
4536
  * @param {*} [options] Override http request option.
4480
4537
  * @throws {RequiredError}
4481
4538
  */
4482
- commandControllerTrigger: async (id, commandTriggerDTO, options = {}) => {
4483
- // verify required parameter 'id' is not null or undefined
4484
- assertParamExists('commandControllerTrigger', 'id', id);
4485
- const localVarPath = `/command/{id}/trigger`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4486
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4487
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4488
- let baseOptions;
4489
- if (configuration) {
4490
- baseOptions = configuration.baseOptions;
4491
- }
4492
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4493
- const localVarHeaderParameter = {};
4494
- const localVarQueryParameter = {};
4495
- // authentication domainAuth required
4496
- localVarHeaderParameter['Content-Type'] = 'application/json';
4497
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4498
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4499
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4500
- localVarRequestOptions.data = serializeDataIfNeeded(commandTriggerDTO, localVarRequestOptions, configuration);
4501
- return {
4502
- url: toPathString(localVarUrlObj),
4503
- options: localVarRequestOptions,
4539
+ async authControllerLogout(redirect, options) {
4540
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogout(redirect, options);
4541
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4542
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerLogout']?.[localVarOperationServerIndex]?.url;
4543
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4544
+ },
4545
+ };
4546
+ };
4547
+ /**
4548
+ * AuthApi - factory interface
4549
+ * @export
4550
+ */
4551
+ export const AuthApiFactory = function (configuration, basePath, axios) {
4552
+ const localVarFp = AuthApiFp(configuration);
4553
+ return {
4554
+ /**
4555
+ * <br> OperationId: `AuthControllerAccount`
4556
+ * @summary Account
4557
+ * @param {*} [options] Override http request option.
4558
+ * @throws {RequiredError}
4559
+ */
4560
+ authControllerAccount(options) {
4561
+ return localVarFp.authControllerAccount(options).then((request) => request(axios, basePath));
4562
+ },
4563
+ /**
4564
+ * <br> OperationId: `AuthControllerCallback`
4565
+ * @summary Callback
4566
+ * @param {*} [options] Override http request option.
4567
+ * @throws {RequiredError}
4568
+ */
4569
+ authControllerCallback(options) {
4570
+ return localVarFp.authControllerCallback(options).then((request) => request(axios, basePath));
4571
+ },
4572
+ /**
4573
+ * <br> OperationId: `AuthControllerLogin`
4574
+ * @summary Login
4575
+ * @param {string} [redirect]
4576
+ * @param {*} [options] Override http request option.
4577
+ * @throws {RequiredError}
4578
+ */
4579
+ authControllerLogin(redirect, options) {
4580
+ return localVarFp.authControllerLogin(redirect, options).then((request) => request(axios, basePath));
4581
+ },
4582
+ /**
4583
+ * <br> OperationId: `AuthControllerLogout`
4584
+ * @summary Logout
4585
+ * @param {string} [redirect]
4586
+ * @param {*} [options] Override http request option.
4587
+ * @throws {RequiredError}
4588
+ */
4589
+ authControllerLogout(redirect, options) {
4590
+ return localVarFp.authControllerLogout(redirect, options).then((request) => request(axios, basePath));
4591
+ },
4592
+ };
4593
+ };
4594
+ /**
4595
+ * AuthApi - object-oriented interface
4596
+ * @export
4597
+ * @class AuthApi
4598
+ * @extends {BaseAPI}
4599
+ */
4600
+ export class AuthApi extends BaseAPI {
4601
+ /**
4602
+ * <br> OperationId: `AuthControllerAccount`
4603
+ * @summary Account
4604
+ * @param {*} [options] Override http request option.
4605
+ * @throws {RequiredError}
4606
+ * @memberof AuthApi
4607
+ */
4608
+ authControllerAccount(options) {
4609
+ return AuthApiFp(this.configuration)
4610
+ .authControllerAccount(options)
4611
+ .then((request) => request(this.axios, this.basePath));
4612
+ }
4613
+ /**
4614
+ * <br> OperationId: `AuthControllerCallback`
4615
+ * @summary Callback
4616
+ * @param {*} [options] Override http request option.
4617
+ * @throws {RequiredError}
4618
+ * @memberof AuthApi
4619
+ */
4620
+ authControllerCallback(options) {
4621
+ return AuthApiFp(this.configuration)
4622
+ .authControllerCallback(options)
4623
+ .then((request) => request(this.axios, this.basePath));
4624
+ }
4625
+ /**
4626
+ * <br> OperationId: `AuthControllerLogin`
4627
+ * @summary Login
4628
+ * @param {string} [redirect]
4629
+ * @param {*} [options] Override http request option.
4630
+ * @throws {RequiredError}
4631
+ * @memberof AuthApi
4632
+ */
4633
+ authControllerLogin(redirect, options) {
4634
+ return AuthApiFp(this.configuration)
4635
+ .authControllerLogin(redirect, options)
4636
+ .then((request) => request(this.axios, this.basePath));
4637
+ }
4638
+ /**
4639
+ * <br> OperationId: `AuthControllerLogout`
4640
+ * @summary Logout
4641
+ * @param {string} [redirect]
4642
+ * @param {*} [options] Override http request option.
4643
+ * @throws {RequiredError}
4644
+ * @memberof AuthApi
4645
+ */
4646
+ authControllerLogout(redirect, options) {
4647
+ return AuthApiFp(this.configuration)
4648
+ .authControllerLogout(redirect, options)
4649
+ .then((request) => request(this.axios, this.basePath));
4650
+ }
4651
+ }
4652
+ /**
4653
+ * CommandApi - axios parameter creator
4654
+ * @export
4655
+ */
4656
+ export const CommandApiAxiosParamCreator = function (configuration) {
4657
+ return {
4658
+ /**
4659
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
4660
+ * @summary Create
4661
+ * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
4662
+ * @param {*} [options] Override http request option.
4663
+ * @throws {RequiredError}
4664
+ */
4665
+ commandControllerCreate: async (commandCreateDTO, options = {}) => {
4666
+ const localVarPath = `/command`;
4667
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4668
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4669
+ let baseOptions;
4670
+ if (configuration) {
4671
+ baseOptions = configuration.baseOptions;
4672
+ }
4673
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4674
+ const localVarHeaderParameter = {};
4675
+ const localVarQueryParameter = {};
4676
+ // authentication domainAuth required
4677
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4678
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4679
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4680
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4681
+ localVarRequestOptions.data = serializeDataIfNeeded(commandCreateDTO, localVarRequestOptions, configuration);
4682
+ return {
4683
+ url: toPathString(localVarUrlObj),
4684
+ options: localVarRequestOptions,
4685
+ };
4686
+ },
4687
+ /**
4688
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreateArgument`
4689
+ * @summary Create argument
4690
+ * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO
4691
+ * @param {*} [options] Override http request option.
4692
+ * @throws {RequiredError}
4693
+ */
4694
+ commandControllerCreateArgument: async (commandArgumentCreateDTO, options = {}) => {
4695
+ const localVarPath = `/command/argument`;
4696
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4697
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4698
+ let baseOptions;
4699
+ if (configuration) {
4700
+ baseOptions = configuration.baseOptions;
4701
+ }
4702
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4703
+ const localVarHeaderParameter = {};
4704
+ const localVarQueryParameter = {};
4705
+ // authentication domainAuth required
4706
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4707
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4708
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4709
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4710
+ localVarRequestOptions.data = serializeDataIfNeeded(commandArgumentCreateDTO, localVarRequestOptions, configuration);
4711
+ return {
4712
+ url: toPathString(localVarUrlObj),
4713
+ options: localVarRequestOptions,
4714
+ };
4715
+ },
4716
+ /**
4717
+ * Required permissions: `READ_MODULES`<br> OperationId: `CommandControllerGetExecutions`
4718
+ * @summary Get executions
4719
+ * @param {string} id
4720
+ * @param {any} [success]
4721
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
4722
+ * @param {*} [options] Override http request option.
4723
+ * @throws {RequiredError}
4724
+ */
4725
+ commandControllerGetExecutions: async (id, success, eventSearchInputDTO, options = {}) => {
4726
+ // verify required parameter 'id' is not null or undefined
4727
+ assertParamExists('commandControllerGetExecutions', 'id', id);
4728
+ const localVarPath = `/command/{id}/executions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4731
+ let baseOptions;
4732
+ if (configuration) {
4733
+ baseOptions = configuration.baseOptions;
4734
+ }
4735
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4736
+ const localVarHeaderParameter = {};
4737
+ const localVarQueryParameter = {};
4738
+ // authentication domainAuth required
4739
+ if (success !== undefined) {
4740
+ for (const [key, value] of Object.entries(success)) {
4741
+ localVarQueryParameter[key] = value;
4742
+ }
4743
+ }
4744
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4745
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4747
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4748
+ localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration);
4749
+ return {
4750
+ url: toPathString(localVarUrlObj),
4751
+ options: localVarRequestOptions,
4752
+ };
4753
+ },
4754
+ /**
4755
+ * Required permissions: `READ_MODULES`<br> OperationId: `CommandControllerGetOne`
4756
+ * @summary Get one
4757
+ * @param {string} id
4758
+ * @param {*} [options] Override http request option.
4759
+ * @throws {RequiredError}
4760
+ */
4761
+ commandControllerGetOne: async (id, options = {}) => {
4762
+ // verify required parameter 'id' is not null or undefined
4763
+ assertParamExists('commandControllerGetOne', 'id', id);
4764
+ const localVarPath = `/command/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4766
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4767
+ let baseOptions;
4768
+ if (configuration) {
4769
+ baseOptions = configuration.baseOptions;
4770
+ }
4771
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4772
+ const localVarHeaderParameter = {};
4773
+ const localVarQueryParameter = {};
4774
+ // authentication domainAuth required
4775
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4776
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4777
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4778
+ return {
4779
+ url: toPathString(localVarUrlObj),
4780
+ options: localVarRequestOptions,
4781
+ };
4782
+ },
4783
+ /**
4784
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerRemove`
4785
+ * @summary Remove
4786
+ * @param {string} id
4787
+ * @param {*} [options] Override http request option.
4788
+ * @throws {RequiredError}
4789
+ */
4790
+ commandControllerRemove: async (id, options = {}) => {
4791
+ // verify required parameter 'id' is not null or undefined
4792
+ assertParamExists('commandControllerRemove', 'id', id);
4793
+ const localVarPath = `/command/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4796
+ let baseOptions;
4797
+ if (configuration) {
4798
+ baseOptions = configuration.baseOptions;
4799
+ }
4800
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4801
+ const localVarHeaderParameter = {};
4802
+ const localVarQueryParameter = {};
4803
+ // authentication domainAuth required
4804
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4805
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4806
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4807
+ return {
4808
+ url: toPathString(localVarUrlObj),
4809
+ options: localVarRequestOptions,
4810
+ };
4811
+ },
4812
+ /**
4813
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerRemoveArgument`
4814
+ * @summary Remove argument
4815
+ * @param {string} id
4816
+ * @param {*} [options] Override http request option.
4817
+ * @throws {RequiredError}
4818
+ */
4819
+ commandControllerRemoveArgument: async (id, options = {}) => {
4820
+ // verify required parameter 'id' is not null or undefined
4821
+ assertParamExists('commandControllerRemoveArgument', 'id', id);
4822
+ const localVarPath = `/command/argument/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4825
+ let baseOptions;
4826
+ if (configuration) {
4827
+ baseOptions = configuration.baseOptions;
4828
+ }
4829
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4830
+ const localVarHeaderParameter = {};
4831
+ const localVarQueryParameter = {};
4832
+ // authentication domainAuth required
4833
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4834
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4835
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4836
+ return {
4837
+ url: toPathString(localVarUrlObj),
4838
+ options: localVarRequestOptions,
4839
+ };
4840
+ },
4841
+ /**
4842
+ * Search commands Required permissions: `READ_MODULES`<br> OperationId: `CommandControllerSearch`
4843
+ * @summary Search
4844
+ * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO
4845
+ * @param {*} [options] Override http request option.
4846
+ * @throws {RequiredError}
4847
+ */
4848
+ commandControllerSearch: async (commandSearchInputDTO, options = {}) => {
4849
+ const localVarPath = `/command/search`;
4850
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4851
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4852
+ let baseOptions;
4853
+ if (configuration) {
4854
+ baseOptions = configuration.baseOptions;
4855
+ }
4856
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4857
+ const localVarHeaderParameter = {};
4858
+ const localVarQueryParameter = {};
4859
+ // authentication domainAuth required
4860
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4861
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4862
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4863
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4864
+ localVarRequestOptions.data = serializeDataIfNeeded(commandSearchInputDTO, localVarRequestOptions, configuration);
4865
+ return {
4866
+ url: toPathString(localVarUrlObj),
4867
+ options: localVarRequestOptions,
4868
+ };
4869
+ },
4870
+ /**
4871
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerTrigger`
4872
+ * @summary Trigger
4873
+ * @param {string} id
4874
+ * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO
4875
+ * @param {*} [options] Override http request option.
4876
+ * @throws {RequiredError}
4877
+ */
4878
+ commandControllerTrigger: async (id, commandTriggerDTO, options = {}) => {
4879
+ // verify required parameter 'id' is not null or undefined
4880
+ assertParamExists('commandControllerTrigger', 'id', id);
4881
+ const localVarPath = `/command/{id}/trigger`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4882
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4883
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4884
+ let baseOptions;
4885
+ if (configuration) {
4886
+ baseOptions = configuration.baseOptions;
4887
+ }
4888
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4889
+ const localVarHeaderParameter = {};
4890
+ const localVarQueryParameter = {};
4891
+ // authentication domainAuth required
4892
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4893
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4894
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4895
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4896
+ localVarRequestOptions.data = serializeDataIfNeeded(commandTriggerDTO, localVarRequestOptions, configuration);
4897
+ return {
4898
+ url: toPathString(localVarUrlObj),
4899
+ options: localVarRequestOptions,
4504
4900
  };
4505
4901
  },
4506
4902
  /**
@@ -13306,75 +13702,438 @@ export class PlayerOnGameServerApi extends BaseAPI {
13306
13702
  .then((request) => request(this.axios, this.basePath));
13307
13703
  }
13308
13704
  /**
13309
- * Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
13310
- * @summary Delete
13311
- * @param {string} gameServerId
13312
- * @param {string} playerId
13705
+ * Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
13706
+ * @summary Delete
13707
+ * @param {string} gameServerId
13708
+ * @param {string} playerId
13709
+ * @param {*} [options] Override http request option.
13710
+ * @throws {RequiredError}
13711
+ * @memberof PlayerOnGameServerApi
13712
+ */
13713
+ playerOnGameServerControllerDelete(gameServerId, playerId, options) {
13714
+ return PlayerOnGameServerApiFp(this.configuration)
13715
+ .playerOnGameServerControllerDelete(gameServerId, playerId, options)
13716
+ .then((request) => request(this.axios, this.basePath));
13717
+ }
13718
+ /**
13719
+ * Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
13720
+ * @summary Get one
13721
+ * @param {string} gameServerId
13722
+ * @param {string} playerId
13723
+ * @param {*} [options] Override http request option.
13724
+ * @throws {RequiredError}
13725
+ * @memberof PlayerOnGameServerApi
13726
+ */
13727
+ playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
13728
+ return PlayerOnGameServerApiFp(this.configuration)
13729
+ .playerOnGameServerControllerGetOne(gameServerId, playerId, options)
13730
+ .then((request) => request(this.axios, this.basePath));
13731
+ }
13732
+ /**
13733
+ * Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
13734
+ * @summary Search
13735
+ * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
13736
+ * @param {*} [options] Override http request option.
13737
+ * @throws {RequiredError}
13738
+ * @memberof PlayerOnGameServerApi
13739
+ */
13740
+ playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
13741
+ return PlayerOnGameServerApiFp(this.configuration)
13742
+ .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options)
13743
+ .then((request) => request(this.axios, this.basePath));
13744
+ }
13745
+ /**
13746
+ * Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
13747
+ * @summary Set currency
13748
+ * @param {string} gameServerId
13749
+ * @param {string} playerId
13750
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
13751
+ * @param {*} [options] Override http request option.
13752
+ * @throws {RequiredError}
13753
+ * @memberof PlayerOnGameServerApi
13754
+ */
13755
+ playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
13756
+ return PlayerOnGameServerApiFp(this.configuration)
13757
+ .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
13758
+ .then((request) => request(this.axios, this.basePath));
13759
+ }
13760
+ /**
13761
+ * Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
13762
+ * @summary Transact between players
13763
+ * @param {string} gameServerId
13764
+ * @param {string} sender
13765
+ * @param {string} receiver
13766
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
13767
+ * @param {*} [options] Override http request option.
13768
+ * @throws {RequiredError}
13769
+ * @memberof PlayerOnGameServerApi
13770
+ */
13771
+ playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
13772
+ return PlayerOnGameServerApiFp(this.configuration)
13773
+ .playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options)
13774
+ .then((request) => request(this.axios, this.basePath));
13775
+ }
13776
+ }
13777
+ /**
13778
+ * RegistryApi - axios parameter creator
13779
+ * @export
13780
+ */
13781
+ export const RegistryApiAxiosParamCreator = function (configuration) {
13782
+ return {
13783
+ /**
13784
+ * Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
13785
+ * @summary Install a module from a registry
13786
+ * @param {string} id
13787
+ * @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
13788
+ * @param {*} [options] Override http request option.
13789
+ * @throws {RequiredError}
13790
+ */
13791
+ registryControllerInstall: async (id, registryInstallBody, options = {}) => {
13792
+ // verify required parameter 'id' is not null or undefined
13793
+ assertParamExists('registryControllerInstall', 'id', id);
13794
+ const localVarPath = `/registry/{id}/install`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
13795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13797
+ let baseOptions;
13798
+ if (configuration) {
13799
+ baseOptions = configuration.baseOptions;
13800
+ }
13801
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
13802
+ const localVarHeaderParameter = {};
13803
+ const localVarQueryParameter = {};
13804
+ // authentication domainAuth required
13805
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13806
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13807
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13808
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13809
+ localVarRequestOptions.data = serializeDataIfNeeded(registryInstallBody, localVarRequestOptions, configuration);
13810
+ return {
13811
+ url: toPathString(localVarUrlObj),
13812
+ options: localVarRequestOptions,
13813
+ };
13814
+ },
13815
+ /**
13816
+ * List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
13817
+ * @summary List subscribed registries
13818
+ * @param {*} [options] Override http request option.
13819
+ * @throws {RequiredError}
13820
+ */
13821
+ registryControllerList: async (options = {}) => {
13822
+ const localVarPath = `/registry`;
13823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13825
+ let baseOptions;
13826
+ if (configuration) {
13827
+ baseOptions = configuration.baseOptions;
13828
+ }
13829
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13830
+ const localVarHeaderParameter = {};
13831
+ const localVarQueryParameter = {};
13832
+ // authentication domainAuth required
13833
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13834
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13835
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13836
+ return {
13837
+ url: toPathString(localVarUrlObj),
13838
+ options: localVarRequestOptions,
13839
+ };
13840
+ },
13841
+ /**
13842
+ * Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
13843
+ * @summary Refresh registry manifest
13844
+ * @param {string} id
13845
+ * @param {*} [options] Override http request option.
13846
+ * @throws {RequiredError}
13847
+ */
13848
+ registryControllerRefresh: async (id, options = {}) => {
13849
+ // verify required parameter 'id' is not null or undefined
13850
+ assertParamExists('registryControllerRefresh', 'id', id);
13851
+ const localVarPath = `/registry/{id}/refresh`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
13852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13853
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13854
+ let baseOptions;
13855
+ if (configuration) {
13856
+ baseOptions = configuration.baseOptions;
13857
+ }
13858
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
13859
+ const localVarHeaderParameter = {};
13860
+ const localVarQueryParameter = {};
13861
+ // authentication domainAuth required
13862
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13863
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13864
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13865
+ return {
13866
+ url: toPathString(localVarUrlObj),
13867
+ options: localVarRequestOptions,
13868
+ };
13869
+ },
13870
+ /**
13871
+ * Subscribe to a module registry by URL. The URL must serve a valid registry.json manifest. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerSubscribe`
13872
+ * @summary Subscribe to a registry
13873
+ * @param {RegistrySubscribeBody} [registrySubscribeBody] RegistrySubscribeBody
13874
+ * @param {*} [options] Override http request option.
13875
+ * @throws {RequiredError}
13876
+ */
13877
+ registryControllerSubscribe: async (registrySubscribeBody, options = {}) => {
13878
+ const localVarPath = `/registry`;
13879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13881
+ let baseOptions;
13882
+ if (configuration) {
13883
+ baseOptions = configuration.baseOptions;
13884
+ }
13885
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
13886
+ const localVarHeaderParameter = {};
13887
+ const localVarQueryParameter = {};
13888
+ // authentication domainAuth required
13889
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13890
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13891
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13892
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13893
+ localVarRequestOptions.data = serializeDataIfNeeded(registrySubscribeBody, localVarRequestOptions, configuration);
13894
+ return {
13895
+ url: toPathString(localVarUrlObj),
13896
+ options: localVarRequestOptions,
13897
+ };
13898
+ },
13899
+ /**
13900
+ * Unsubscribe from a registry. Installed modules from this registry will be orphaned (registry_id set to null). Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerUnsubscribe`
13901
+ * @summary Unsubscribe from a registry
13902
+ * @param {string} id
13903
+ * @param {*} [options] Override http request option.
13904
+ * @throws {RequiredError}
13905
+ */
13906
+ registryControllerUnsubscribe: async (id, options = {}) => {
13907
+ // verify required parameter 'id' is not null or undefined
13908
+ assertParamExists('registryControllerUnsubscribe', 'id', id);
13909
+ const localVarPath = `/registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
13910
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13911
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13912
+ let baseOptions;
13913
+ if (configuration) {
13914
+ baseOptions = configuration.baseOptions;
13915
+ }
13916
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
13917
+ const localVarHeaderParameter = {};
13918
+ const localVarQueryParameter = {};
13919
+ // authentication domainAuth required
13920
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13921
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13922
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13923
+ return {
13924
+ url: toPathString(localVarUrlObj),
13925
+ options: localVarRequestOptions,
13926
+ };
13927
+ },
13928
+ };
13929
+ };
13930
+ /**
13931
+ * RegistryApi - functional programming interface
13932
+ * @export
13933
+ */
13934
+ export const RegistryApiFp = function (configuration) {
13935
+ const localVarAxiosParamCreator = RegistryApiAxiosParamCreator(configuration);
13936
+ return {
13937
+ /**
13938
+ * Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
13939
+ * @summary Install a module from a registry
13940
+ * @param {string} id
13941
+ * @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
13942
+ * @param {*} [options] Override http request option.
13943
+ * @throws {RequiredError}
13944
+ */
13945
+ async registryControllerInstall(id, registryInstallBody, options) {
13946
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registryControllerInstall(id, registryInstallBody, options);
13947
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13948
+ const localVarOperationServerBasePath = operationServerMap['RegistryApi.registryControllerInstall']?.[localVarOperationServerIndex]?.url;
13949
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13950
+ },
13951
+ /**
13952
+ * List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
13953
+ * @summary List subscribed registries
13954
+ * @param {*} [options] Override http request option.
13955
+ * @throws {RequiredError}
13956
+ */
13957
+ async registryControllerList(options) {
13958
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registryControllerList(options);
13959
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13960
+ const localVarOperationServerBasePath = operationServerMap['RegistryApi.registryControllerList']?.[localVarOperationServerIndex]?.url;
13961
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13962
+ },
13963
+ /**
13964
+ * Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
13965
+ * @summary Refresh registry manifest
13966
+ * @param {string} id
13967
+ * @param {*} [options] Override http request option.
13968
+ * @throws {RequiredError}
13969
+ */
13970
+ async registryControllerRefresh(id, options) {
13971
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registryControllerRefresh(id, options);
13972
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13973
+ const localVarOperationServerBasePath = operationServerMap['RegistryApi.registryControllerRefresh']?.[localVarOperationServerIndex]?.url;
13974
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13975
+ },
13976
+ /**
13977
+ * Subscribe to a module registry by URL. The URL must serve a valid registry.json manifest. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerSubscribe`
13978
+ * @summary Subscribe to a registry
13979
+ * @param {RegistrySubscribeBody} [registrySubscribeBody] RegistrySubscribeBody
13980
+ * @param {*} [options] Override http request option.
13981
+ * @throws {RequiredError}
13982
+ */
13983
+ async registryControllerSubscribe(registrySubscribeBody, options) {
13984
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registryControllerSubscribe(registrySubscribeBody, options);
13985
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13986
+ const localVarOperationServerBasePath = operationServerMap['RegistryApi.registryControllerSubscribe']?.[localVarOperationServerIndex]?.url;
13987
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13988
+ },
13989
+ /**
13990
+ * Unsubscribe from a registry. Installed modules from this registry will be orphaned (registry_id set to null). Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerUnsubscribe`
13991
+ * @summary Unsubscribe from a registry
13992
+ * @param {string} id
13993
+ * @param {*} [options] Override http request option.
13994
+ * @throws {RequiredError}
13995
+ */
13996
+ async registryControllerUnsubscribe(id, options) {
13997
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registryControllerUnsubscribe(id, options);
13998
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13999
+ const localVarOperationServerBasePath = operationServerMap['RegistryApi.registryControllerUnsubscribe']?.[localVarOperationServerIndex]?.url;
14000
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14001
+ },
14002
+ };
14003
+ };
14004
+ /**
14005
+ * RegistryApi - factory interface
14006
+ * @export
14007
+ */
14008
+ export const RegistryApiFactory = function (configuration, basePath, axios) {
14009
+ const localVarFp = RegistryApiFp(configuration);
14010
+ return {
14011
+ /**
14012
+ * Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
14013
+ * @summary Install a module from a registry
14014
+ * @param {string} id
14015
+ * @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
14016
+ * @param {*} [options] Override http request option.
14017
+ * @throws {RequiredError}
14018
+ */
14019
+ registryControllerInstall(id, registryInstallBody, options) {
14020
+ return localVarFp
14021
+ .registryControllerInstall(id, registryInstallBody, options)
14022
+ .then((request) => request(axios, basePath));
14023
+ },
14024
+ /**
14025
+ * List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
14026
+ * @summary List subscribed registries
14027
+ * @param {*} [options] Override http request option.
14028
+ * @throws {RequiredError}
14029
+ */
14030
+ registryControllerList(options) {
14031
+ return localVarFp.registryControllerList(options).then((request) => request(axios, basePath));
14032
+ },
14033
+ /**
14034
+ * Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
14035
+ * @summary Refresh registry manifest
14036
+ * @param {string} id
14037
+ * @param {*} [options] Override http request option.
14038
+ * @throws {RequiredError}
14039
+ */
14040
+ registryControllerRefresh(id, options) {
14041
+ return localVarFp.registryControllerRefresh(id, options).then((request) => request(axios, basePath));
14042
+ },
14043
+ /**
14044
+ * Subscribe to a module registry by URL. The URL must serve a valid registry.json manifest. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerSubscribe`
14045
+ * @summary Subscribe to a registry
14046
+ * @param {RegistrySubscribeBody} [registrySubscribeBody] RegistrySubscribeBody
14047
+ * @param {*} [options] Override http request option.
14048
+ * @throws {RequiredError}
14049
+ */
14050
+ registryControllerSubscribe(registrySubscribeBody, options) {
14051
+ return localVarFp
14052
+ .registryControllerSubscribe(registrySubscribeBody, options)
14053
+ .then((request) => request(axios, basePath));
14054
+ },
14055
+ /**
14056
+ * Unsubscribe from a registry. Installed modules from this registry will be orphaned (registry_id set to null). Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerUnsubscribe`
14057
+ * @summary Unsubscribe from a registry
14058
+ * @param {string} id
14059
+ * @param {*} [options] Override http request option.
14060
+ * @throws {RequiredError}
14061
+ */
14062
+ registryControllerUnsubscribe(id, options) {
14063
+ return localVarFp.registryControllerUnsubscribe(id, options).then((request) => request(axios, basePath));
14064
+ },
14065
+ };
14066
+ };
14067
+ /**
14068
+ * RegistryApi - object-oriented interface
14069
+ * @export
14070
+ * @class RegistryApi
14071
+ * @extends {BaseAPI}
14072
+ */
14073
+ export class RegistryApi extends BaseAPI {
14074
+ /**
14075
+ * Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
14076
+ * @summary Install a module from a registry
14077
+ * @param {string} id
14078
+ * @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
13313
14079
  * @param {*} [options] Override http request option.
13314
14080
  * @throws {RequiredError}
13315
- * @memberof PlayerOnGameServerApi
14081
+ * @memberof RegistryApi
13316
14082
  */
13317
- playerOnGameServerControllerDelete(gameServerId, playerId, options) {
13318
- return PlayerOnGameServerApiFp(this.configuration)
13319
- .playerOnGameServerControllerDelete(gameServerId, playerId, options)
14083
+ registryControllerInstall(id, registryInstallBody, options) {
14084
+ return RegistryApiFp(this.configuration)
14085
+ .registryControllerInstall(id, registryInstallBody, options)
13320
14086
  .then((request) => request(this.axios, this.basePath));
13321
14087
  }
13322
14088
  /**
13323
- * Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
13324
- * @summary Get one
13325
- * @param {string} gameServerId
13326
- * @param {string} playerId
14089
+ * List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
14090
+ * @summary List subscribed registries
13327
14091
  * @param {*} [options] Override http request option.
13328
14092
  * @throws {RequiredError}
13329
- * @memberof PlayerOnGameServerApi
14093
+ * @memberof RegistryApi
13330
14094
  */
13331
- playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
13332
- return PlayerOnGameServerApiFp(this.configuration)
13333
- .playerOnGameServerControllerGetOne(gameServerId, playerId, options)
14095
+ registryControllerList(options) {
14096
+ return RegistryApiFp(this.configuration)
14097
+ .registryControllerList(options)
13334
14098
  .then((request) => request(this.axios, this.basePath));
13335
14099
  }
13336
14100
  /**
13337
- * Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
13338
- * @summary Search
13339
- * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
14101
+ * Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
14102
+ * @summary Refresh registry manifest
14103
+ * @param {string} id
13340
14104
  * @param {*} [options] Override http request option.
13341
14105
  * @throws {RequiredError}
13342
- * @memberof PlayerOnGameServerApi
14106
+ * @memberof RegistryApi
13343
14107
  */
13344
- playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
13345
- return PlayerOnGameServerApiFp(this.configuration)
13346
- .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options)
14108
+ registryControllerRefresh(id, options) {
14109
+ return RegistryApiFp(this.configuration)
14110
+ .registryControllerRefresh(id, options)
13347
14111
  .then((request) => request(this.axios, this.basePath));
13348
14112
  }
13349
14113
  /**
13350
- * Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
13351
- * @summary Set currency
13352
- * @param {string} gameServerId
13353
- * @param {string} playerId
13354
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
14114
+ * Subscribe to a module registry by URL. The URL must serve a valid registry.json manifest. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerSubscribe`
14115
+ * @summary Subscribe to a registry
14116
+ * @param {RegistrySubscribeBody} [registrySubscribeBody] RegistrySubscribeBody
13355
14117
  * @param {*} [options] Override http request option.
13356
14118
  * @throws {RequiredError}
13357
- * @memberof PlayerOnGameServerApi
14119
+ * @memberof RegistryApi
13358
14120
  */
13359
- playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
13360
- return PlayerOnGameServerApiFp(this.configuration)
13361
- .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
14121
+ registryControllerSubscribe(registrySubscribeBody, options) {
14122
+ return RegistryApiFp(this.configuration)
14123
+ .registryControllerSubscribe(registrySubscribeBody, options)
13362
14124
  .then((request) => request(this.axios, this.basePath));
13363
14125
  }
13364
14126
  /**
13365
- * Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
13366
- * @summary Transact between players
13367
- * @param {string} gameServerId
13368
- * @param {string} sender
13369
- * @param {string} receiver
13370
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
14127
+ * Unsubscribe from a registry. Installed modules from this registry will be orphaned (registry_id set to null). Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerUnsubscribe`
14128
+ * @summary Unsubscribe from a registry
14129
+ * @param {string} id
13371
14130
  * @param {*} [options] Override http request option.
13372
14131
  * @throws {RequiredError}
13373
- * @memberof PlayerOnGameServerApi
14132
+ * @memberof RegistryApi
13374
14133
  */
13375
- playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
13376
- return PlayerOnGameServerApiFp(this.configuration)
13377
- .playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options)
14134
+ registryControllerUnsubscribe(id, options) {
14135
+ return RegistryApiFp(this.configuration)
14136
+ .registryControllerUnsubscribe(id, options)
13378
14137
  .then((request) => request(this.axios, this.basePath));
13379
14138
  }
13380
14139
  }
@@ -16045,6 +16804,240 @@ export class ShopOrderApi extends BaseAPI {
16045
16804
  .then((request) => request(this.axios, this.basePath));
16046
16805
  }
16047
16806
  }
16807
+ /**
16808
+ * StorefrontConfigApi - axios parameter creator
16809
+ * @export
16810
+ */
16811
+ export const StorefrontConfigApiAxiosParamCreator = function (configuration) {
16812
+ return {
16813
+ /**
16814
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16815
+ * @summary Get effective config
16816
+ * @param {string} gameServerId
16817
+ * @param {*} [options] Override http request option.
16818
+ * @throws {RequiredError}
16819
+ */
16820
+ storefrontConfigControllerGetEffectiveConfig: async (gameServerId, options = {}) => {
16821
+ // verify required parameter 'gameServerId' is not null or undefined
16822
+ assertParamExists('storefrontConfigControllerGetEffectiveConfig', 'gameServerId', gameServerId);
16823
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
16824
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16825
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16826
+ let baseOptions;
16827
+ if (configuration) {
16828
+ baseOptions = configuration.baseOptions;
16829
+ }
16830
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
16831
+ const localVarHeaderParameter = {};
16832
+ const localVarQueryParameter = {};
16833
+ // authentication domainAuth required
16834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16836
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16837
+ return {
16838
+ url: toPathString(localVarUrlObj),
16839
+ options: localVarRequestOptions,
16840
+ };
16841
+ },
16842
+ /**
16843
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16844
+ * @summary List templates
16845
+ * @param {*} [options] Override http request option.
16846
+ * @throws {RequiredError}
16847
+ */
16848
+ storefrontConfigControllerListTemplates: async (options = {}) => {
16849
+ const localVarPath = `/storefront/templates`;
16850
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16851
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16852
+ let baseOptions;
16853
+ if (configuration) {
16854
+ baseOptions = configuration.baseOptions;
16855
+ }
16856
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
16857
+ const localVarHeaderParameter = {};
16858
+ const localVarQueryParameter = {};
16859
+ // authentication domainAuth required
16860
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16862
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16863
+ return {
16864
+ url: toPathString(localVarUrlObj),
16865
+ options: localVarRequestOptions,
16866
+ };
16867
+ },
16868
+ /**
16869
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
16870
+ * @summary Set config
16871
+ * @param {string} gameServerId
16872
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16873
+ * @param {*} [options] Override http request option.
16874
+ * @throws {RequiredError}
16875
+ */
16876
+ storefrontConfigControllerSetConfig: async (gameServerId, storefrontConfigUpsertBody, options = {}) => {
16877
+ // verify required parameter 'gameServerId' is not null or undefined
16878
+ assertParamExists('storefrontConfigControllerSetConfig', 'gameServerId', gameServerId);
16879
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
16880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16882
+ let baseOptions;
16883
+ if (configuration) {
16884
+ baseOptions = configuration.baseOptions;
16885
+ }
16886
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
16887
+ const localVarHeaderParameter = {};
16888
+ const localVarQueryParameter = {};
16889
+ // authentication domainAuth required
16890
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16891
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16893
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16894
+ localVarRequestOptions.data = serializeDataIfNeeded(storefrontConfigUpsertBody, localVarRequestOptions, configuration);
16895
+ return {
16896
+ url: toPathString(localVarUrlObj),
16897
+ options: localVarRequestOptions,
16898
+ };
16899
+ },
16900
+ };
16901
+ };
16902
+ /**
16903
+ * StorefrontConfigApi - functional programming interface
16904
+ * @export
16905
+ */
16906
+ export const StorefrontConfigApiFp = function (configuration) {
16907
+ const localVarAxiosParamCreator = StorefrontConfigApiAxiosParamCreator(configuration);
16908
+ return {
16909
+ /**
16910
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16911
+ * @summary Get effective config
16912
+ * @param {string} gameServerId
16913
+ * @param {*} [options] Override http request option.
16914
+ * @throws {RequiredError}
16915
+ */
16916
+ async storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
16917
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerGetEffectiveConfig(gameServerId, options);
16918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16919
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerGetEffectiveConfig']?.[localVarOperationServerIndex]?.url;
16920
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16921
+ },
16922
+ /**
16923
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16924
+ * @summary List templates
16925
+ * @param {*} [options] Override http request option.
16926
+ * @throws {RequiredError}
16927
+ */
16928
+ async storefrontConfigControllerListTemplates(options) {
16929
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerListTemplates(options);
16930
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16931
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerListTemplates']?.[localVarOperationServerIndex]?.url;
16932
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16933
+ },
16934
+ /**
16935
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
16936
+ * @summary Set config
16937
+ * @param {string} gameServerId
16938
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16939
+ * @param {*} [options] Override http request option.
16940
+ * @throws {RequiredError}
16941
+ */
16942
+ async storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
16943
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options);
16944
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16945
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerSetConfig']?.[localVarOperationServerIndex]
16946
+ ?.url;
16947
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16948
+ },
16949
+ };
16950
+ };
16951
+ /**
16952
+ * StorefrontConfigApi - factory interface
16953
+ * @export
16954
+ */
16955
+ export const StorefrontConfigApiFactory = function (configuration, basePath, axios) {
16956
+ const localVarFp = StorefrontConfigApiFp(configuration);
16957
+ return {
16958
+ /**
16959
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16960
+ * @summary Get effective config
16961
+ * @param {string} gameServerId
16962
+ * @param {*} [options] Override http request option.
16963
+ * @throws {RequiredError}
16964
+ */
16965
+ storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
16966
+ return localVarFp
16967
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
16968
+ .then((request) => request(axios, basePath));
16969
+ },
16970
+ /**
16971
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16972
+ * @summary List templates
16973
+ * @param {*} [options] Override http request option.
16974
+ * @throws {RequiredError}
16975
+ */
16976
+ storefrontConfigControllerListTemplates(options) {
16977
+ return localVarFp.storefrontConfigControllerListTemplates(options).then((request) => request(axios, basePath));
16978
+ },
16979
+ /**
16980
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
16981
+ * @summary Set config
16982
+ * @param {string} gameServerId
16983
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16984
+ * @param {*} [options] Override http request option.
16985
+ * @throws {RequiredError}
16986
+ */
16987
+ storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
16988
+ return localVarFp
16989
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
16990
+ .then((request) => request(axios, basePath));
16991
+ },
16992
+ };
16993
+ };
16994
+ /**
16995
+ * StorefrontConfigApi - object-oriented interface
16996
+ * @export
16997
+ * @class StorefrontConfigApi
16998
+ * @extends {BaseAPI}
16999
+ */
17000
+ export class StorefrontConfigApi extends BaseAPI {
17001
+ /**
17002
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
17003
+ * @summary Get effective config
17004
+ * @param {string} gameServerId
17005
+ * @param {*} [options] Override http request option.
17006
+ * @throws {RequiredError}
17007
+ * @memberof StorefrontConfigApi
17008
+ */
17009
+ storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
17010
+ return StorefrontConfigApiFp(this.configuration)
17011
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
17012
+ .then((request) => request(this.axios, this.basePath));
17013
+ }
17014
+ /**
17015
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
17016
+ * @summary List templates
17017
+ * @param {*} [options] Override http request option.
17018
+ * @throws {RequiredError}
17019
+ * @memberof StorefrontConfigApi
17020
+ */
17021
+ storefrontConfigControllerListTemplates(options) {
17022
+ return StorefrontConfigApiFp(this.configuration)
17023
+ .storefrontConfigControllerListTemplates(options)
17024
+ .then((request) => request(this.axios, this.basePath));
17025
+ }
17026
+ /**
17027
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
17028
+ * @summary Set config
17029
+ * @param {string} gameServerId
17030
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
17031
+ * @param {*} [options] Override http request option.
17032
+ * @throws {RequiredError}
17033
+ * @memberof StorefrontConfigApi
17034
+ */
17035
+ storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
17036
+ return StorefrontConfigApiFp(this.configuration)
17037
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
17038
+ .then((request) => request(this.axios, this.basePath));
17039
+ }
17040
+ }
16048
17041
  /**
16049
17042
  * TrackingApi - axios parameter creator
16050
17043
  * @export