@takaro/apiclient 0.0.0-dev.f3406c4 → 0.0.0-dev.f3cb890

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.
@@ -267,6 +267,7 @@ export const EventCreateDTOEventNameEnum = {
267
267
  SettingsSet: 'settings-set',
268
268
  PlayerNewIpDetected: 'player-new-ip-detected',
269
269
  PlayerNewNameDetected: 'player-new-name-detected',
270
+ PlayerIdentityConflict: 'player-identity-conflict',
270
271
  ServerStatusChanged: 'server-status-changed',
271
272
  ModuleCreated: 'module-created',
272
273
  ModuleUpdated: 'module-updated',
@@ -281,6 +282,8 @@ export const EventCreateDTOEventNameEnum = {
281
282
  ShopOrderStatusChanged: 'shop-order-status-changed',
282
283
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
283
284
  PlayerLinked: 'player-linked',
285
+ PlayerUnlinked: 'player-unlinked',
286
+ PlayerMerged: 'player-merged',
284
287
  GameserverCreated: 'gameserver-created',
285
288
  GameserverUpdated: 'gameserver-updated',
286
289
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -327,6 +330,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
327
330
  SettingsSet: 'settings-set',
328
331
  PlayerNewIpDetected: 'player-new-ip-detected',
329
332
  PlayerNewNameDetected: 'player-new-name-detected',
333
+ PlayerIdentityConflict: 'player-identity-conflict',
330
334
  ServerStatusChanged: 'server-status-changed',
331
335
  ModuleCreated: 'module-created',
332
336
  ModuleUpdated: 'module-updated',
@@ -341,6 +345,8 @@ export const EventExploreFiltersDTOEventNameEnum = {
341
345
  ShopOrderStatusChanged: 'shop-order-status-changed',
342
346
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
343
347
  PlayerLinked: 'player-linked',
348
+ PlayerUnlinked: 'player-unlinked',
349
+ PlayerMerged: 'player-merged',
344
350
  GameserverCreated: 'gameserver-created',
345
351
  GameserverUpdated: 'gameserver-updated',
346
352
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -387,6 +393,7 @@ export const EventOutputDTOEventNameEnum = {
387
393
  SettingsSet: 'settings-set',
388
394
  PlayerNewIpDetected: 'player-new-ip-detected',
389
395
  PlayerNewNameDetected: 'player-new-name-detected',
396
+ PlayerIdentityConflict: 'player-identity-conflict',
390
397
  ServerStatusChanged: 'server-status-changed',
391
398
  ModuleCreated: 'module-created',
392
399
  ModuleUpdated: 'module-updated',
@@ -401,6 +408,8 @@ export const EventOutputDTOEventNameEnum = {
401
408
  ShopOrderStatusChanged: 'shop-order-status-changed',
402
409
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
403
410
  PlayerLinked: 'player-linked',
411
+ PlayerUnlinked: 'player-unlinked',
412
+ PlayerMerged: 'player-merged',
404
413
  GameserverCreated: 'gameserver-created',
405
414
  GameserverUpdated: 'gameserver-updated',
406
415
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -447,6 +456,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
447
456
  SettingsSet: 'settings-set',
448
457
  PlayerNewIpDetected: 'player-new-ip-detected',
449
458
  PlayerNewNameDetected: 'player-new-name-detected',
459
+ PlayerIdentityConflict: 'player-identity-conflict',
450
460
  ServerStatusChanged: 'server-status-changed',
451
461
  ModuleCreated: 'module-created',
452
462
  ModuleUpdated: 'module-updated',
@@ -461,6 +471,8 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
461
471
  ShopOrderStatusChanged: 'shop-order-status-changed',
462
472
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
463
473
  PlayerLinked: 'player-linked',
474
+ PlayerUnlinked: 'player-unlinked',
475
+ PlayerMerged: 'player-merged',
464
476
  GameserverCreated: 'gameserver-created',
465
477
  GameserverUpdated: 'gameserver-updated',
466
478
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -595,6 +607,7 @@ export const GetJobInputDTOTypeEnum = {
595
607
  CleanRevokedApiKeys: 'cleanRevokedApiKeys',
596
608
  CleanExecutionClaims: 'cleanExecutionClaims',
597
609
  DeleteClickHouseEvents: 'deleteClickHouseEvents',
610
+ RepointClickHouseEvents: 'repointClickHouseEvents',
598
611
  CleanConnectorMigrations: 'cleanConnectorMigrations',
599
612
  };
600
613
  export const GetSettingsInputKeysEnum = {
@@ -643,6 +656,7 @@ export const HookCreateDTOEventTypeEnum = {
643
656
  SettingsSet: 'settings-set',
644
657
  PlayerNewIpDetected: 'player-new-ip-detected',
645
658
  PlayerNewNameDetected: 'player-new-name-detected',
659
+ PlayerIdentityConflict: 'player-identity-conflict',
646
660
  ServerStatusChanged: 'server-status-changed',
647
661
  ModuleCreated: 'module-created',
648
662
  ModuleUpdated: 'module-updated',
@@ -657,6 +671,8 @@ export const HookCreateDTOEventTypeEnum = {
657
671
  ShopOrderStatusChanged: 'shop-order-status-changed',
658
672
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
659
673
  PlayerLinked: 'player-linked',
674
+ PlayerUnlinked: 'player-unlinked',
675
+ PlayerMerged: 'player-merged',
660
676
  GameserverCreated: 'gameserver-created',
661
677
  GameserverUpdated: 'gameserver-updated',
662
678
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -705,6 +721,7 @@ export const HookOutputDTOEventTypeEnum = {
705
721
  SettingsSet: 'settings-set',
706
722
  PlayerNewIpDetected: 'player-new-ip-detected',
707
723
  PlayerNewNameDetected: 'player-new-name-detected',
724
+ PlayerIdentityConflict: 'player-identity-conflict',
708
725
  ServerStatusChanged: 'server-status-changed',
709
726
  ModuleCreated: 'module-created',
710
727
  ModuleUpdated: 'module-updated',
@@ -719,6 +736,8 @@ export const HookOutputDTOEventTypeEnum = {
719
736
  ShopOrderStatusChanged: 'shop-order-status-changed',
720
737
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
721
738
  PlayerLinked: 'player-linked',
739
+ PlayerUnlinked: 'player-unlinked',
740
+ PlayerMerged: 'player-merged',
722
741
  GameserverCreated: 'gameserver-created',
723
742
  GameserverUpdated: 'gameserver-updated',
724
743
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -767,6 +786,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
767
786
  SettingsSet: 'settings-set',
768
787
  PlayerNewIpDetected: 'player-new-ip-detected',
769
788
  PlayerNewNameDetected: 'player-new-name-detected',
789
+ PlayerIdentityConflict: 'player-identity-conflict',
770
790
  ServerStatusChanged: 'server-status-changed',
771
791
  ModuleCreated: 'module-created',
772
792
  ModuleUpdated: 'module-updated',
@@ -781,6 +801,8 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
781
801
  ShopOrderStatusChanged: 'shop-order-status-changed',
782
802
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
783
803
  PlayerLinked: 'player-linked',
804
+ PlayerUnlinked: 'player-unlinked',
805
+ PlayerMerged: 'player-merged',
784
806
  GameserverCreated: 'gameserver-created',
785
807
  GameserverUpdated: 'gameserver-updated',
786
808
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -837,6 +859,7 @@ export const HookTriggerDTOEventTypeEnum = {
837
859
  SettingsSet: 'settings-set',
838
860
  PlayerNewIpDetected: 'player-new-ip-detected',
839
861
  PlayerNewNameDetected: 'player-new-name-detected',
862
+ PlayerIdentityConflict: 'player-identity-conflict',
840
863
  ServerStatusChanged: 'server-status-changed',
841
864
  ModuleCreated: 'module-created',
842
865
  ModuleUpdated: 'module-updated',
@@ -851,6 +874,8 @@ export const HookTriggerDTOEventTypeEnum = {
851
874
  ShopOrderStatusChanged: 'shop-order-status-changed',
852
875
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
853
876
  PlayerLinked: 'player-linked',
877
+ PlayerUnlinked: 'player-unlinked',
878
+ PlayerMerged: 'player-merged',
854
879
  GameserverCreated: 'gameserver-created',
855
880
  GameserverUpdated: 'gameserver-updated',
856
881
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -899,6 +924,7 @@ export const HookUpdateDTOEventTypeEnum = {
899
924
  SettingsSet: 'settings-set',
900
925
  PlayerNewIpDetected: 'player-new-ip-detected',
901
926
  PlayerNewNameDetected: 'player-new-name-detected',
927
+ PlayerIdentityConflict: 'player-identity-conflict',
902
928
  ServerStatusChanged: 'server-status-changed',
903
929
  ModuleCreated: 'module-created',
904
930
  ModuleUpdated: 'module-updated',
@@ -913,6 +939,8 @@ export const HookUpdateDTOEventTypeEnum = {
913
939
  ShopOrderStatusChanged: 'shop-order-status-changed',
914
940
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
915
941
  PlayerLinked: 'player-linked',
942
+ PlayerUnlinked: 'player-unlinked',
943
+ PlayerMerged: 'player-merged',
916
944
  GameserverCreated: 'gameserver-created',
917
945
  GameserverUpdated: 'gameserver-updated',
918
946
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -966,6 +994,7 @@ export const IHookEventTypeEnum = {
966
994
  SettingsSet: 'settings-set',
967
995
  PlayerNewIpDetected: 'player-new-ip-detected',
968
996
  PlayerNewNameDetected: 'player-new-name-detected',
997
+ PlayerIdentityConflict: 'player-identity-conflict',
969
998
  ServerStatusChanged: 'server-status-changed',
970
999
  ModuleCreated: 'module-created',
971
1000
  ModuleUpdated: 'module-updated',
@@ -980,6 +1009,8 @@ export const IHookEventTypeEnum = {
980
1009
  ShopOrderStatusChanged: 'shop-order-status-changed',
981
1010
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
982
1011
  PlayerLinked: 'player-linked',
1012
+ PlayerUnlinked: 'player-unlinked',
1013
+ PlayerMerged: 'player-merged',
983
1014
  GameserverCreated: 'gameserver-created',
984
1015
  GameserverUpdated: 'gameserver-updated',
985
1016
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -1198,6 +1229,39 @@ export const ParamKeyKeyEnum = {
1198
1229
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
1199
1230
  TakaroAiEnabled: 'takaroAiEnabled',
1200
1231
  };
1232
+ export const PlayerMergeGameServerDTOOutcomeEnum = {
1233
+ Moved: 'moved',
1234
+ Combined: 'combined',
1235
+ };
1236
+ export const PlayerMergeGameServerDTOKeptPogFromEnum = {
1237
+ Survivor: 'survivor',
1238
+ Absorbed: 'absorbed',
1239
+ };
1240
+ export const PlayerMergeGameServerDTOInventoryFromEnum = {
1241
+ Survivor: 'survivor',
1242
+ Absorbed: 'absorbed',
1243
+ };
1244
+ export const PlayerMergeIdentifierDTOIdentifierEnum = {
1245
+ SteamId: 'steamId',
1246
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1247
+ XboxLiveId: 'xboxLiveId',
1248
+ PlatformId: 'platformId',
1249
+ };
1250
+ export const PlayerMergeIdentifierDTOFromEnum = {
1251
+ Survivor: 'survivor',
1252
+ Absorbed: 'absorbed',
1253
+ };
1254
+ export const PlayerMergeRefusalDTOCodeEnum = {
1255
+ SamePlayer: 'same-player',
1256
+ IdentifierConflict: 'identifier-conflict',
1257
+ FixturePlayer: 'fixture-player',
1258
+ };
1259
+ export const PlayerMergeRefusalDTOIdentifierEnum = {
1260
+ SteamId: 'steamId',
1261
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1262
+ XboxLiveId: 'xboxLiveId',
1263
+ PlatformId: 'platformId',
1264
+ };
1201
1265
  export const PlayerOnGameServerSearchInputDTOExtendEnum = {
1202
1266
  GameServer: 'gameServer',
1203
1267
  Player: 'player',
@@ -1206,6 +1270,24 @@ export const PlayerOnGameServerSearchInputDTOSortDirectionEnum = {
1206
1270
  Asc: 'asc',
1207
1271
  Desc: 'desc',
1208
1272
  };
1273
+ export const PlayerPortalLinkCodeDTOStatusEnum = {
1274
+ Valid: 'valid',
1275
+ Expired: 'expired',
1276
+ Invalid: 'invalid',
1277
+ };
1278
+ export const PlayerPortalLinkDTOSourceEnum = {
1279
+ GameCode: 'game-code',
1280
+ WebCode: 'web-code',
1281
+ SteamAuto: 'steam-auto',
1282
+ Admin: 'admin',
1283
+ Unknown: 'unknown',
1284
+ };
1285
+ export const PlayerPortalServerDTOGameServerTypeEnum = {
1286
+ Sevendaystodie: 'SEVENDAYSTODIE',
1287
+ Rust: 'RUST',
1288
+ Generic: 'GENERIC',
1289
+ Mock: 'MOCK',
1290
+ };
1209
1291
  export const PlayerSearchInputAllowedFiltersRoleAssignmentScopeEnum = {
1210
1292
  Global: 'global',
1211
1293
  GameServer: 'gameServer',
@@ -1387,11 +1469,50 @@ export const TakaroEventItemsGivenLineResultEnum = {
1387
1469
  Failed: 'FAILED',
1388
1470
  Unknown: 'UNKNOWN',
1389
1471
  };
1472
+ export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
1473
+ SteamId: 'steamId',
1474
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1475
+ XboxLiveId: 'xboxLiveId',
1476
+ PlatformId: 'platformId',
1477
+ };
1478
+ export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
1479
+ SteamId: 'steamId',
1480
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1481
+ XboxLiveId: 'xboxLiveId',
1482
+ PlatformId: 'platformId',
1483
+ };
1390
1484
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
1391
1485
  Added: 'added',
1392
1486
  Removed: 'removed',
1393
1487
  Changed: 'changed',
1394
1488
  };
1489
+ export const TakaroEventPlayerLinkedSourceEnum = {
1490
+ GameCode: 'game-code',
1491
+ WebCode: 'web-code',
1492
+ SteamAuto: 'steam-auto',
1493
+ Admin: 'admin',
1494
+ Unknown: 'unknown',
1495
+ };
1496
+ export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
1497
+ SteamId: 'steamId',
1498
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1499
+ XboxLiveId: 'xboxLiveId',
1500
+ PlatformId: 'platformId',
1501
+ };
1502
+ export const TakaroEventPlayerMergedServerOutcomeEnum = {
1503
+ Moved: 'moved',
1504
+ Combined: 'combined',
1505
+ };
1506
+ export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
1507
+ Survivor: 'survivor',
1508
+ Absorbed: 'absorbed',
1509
+ };
1510
+ export const TakaroEventPlayerUnlinkedReasonEnum = {
1511
+ Self: 'self',
1512
+ Admin: 'admin',
1513
+ Displaced: 'displaced',
1514
+ Merged: 'merged',
1515
+ };
1395
1516
  export const TakaroEventRateLimitedScopeEnum = {
1396
1517
  Server: 'server',
1397
1518
  Domain: 'domain',
@@ -1542,6 +1663,20 @@ export const TriggerJobInputDTOTypeEnum = {
1542
1663
  SyncSteam: 'syncSteam',
1543
1664
  SyncDiscordRoles: 'syncDiscordRoles',
1544
1665
  };
1666
+ export const UserOutputDTOPlayerLinkSourceEnum = {
1667
+ GameCode: 'game-code',
1668
+ WebCode: 'web-code',
1669
+ SteamAuto: 'steam-auto',
1670
+ Admin: 'admin',
1671
+ Unknown: 'unknown',
1672
+ };
1673
+ export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
1674
+ GameCode: 'game-code',
1675
+ WebCode: 'web-code',
1676
+ SteamAuto: 'steam-auto',
1677
+ Admin: 'admin',
1678
+ Unknown: 'unknown',
1679
+ };
1545
1680
  export const UserSearchInputDTOExtendEnum = {
1546
1681
  Roles: 'roles',
1547
1682
  };
@@ -5970,7 +6105,7 @@ export const AuthControllerLoginLocaleEnum = {
5970
6105
  export const CommandApiAxiosParamCreator = function (configuration) {
5971
6106
  return {
5972
6107
  /**
5973
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
6108
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
5974
6109
  * @summary Create
5975
6110
  * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
5976
6111
  * @param {*} [options] Override http request option.
@@ -6238,7 +6373,7 @@ export const CommandApiAxiosParamCreator = function (configuration) {
6238
6373
  };
6239
6374
  },
6240
6375
  /**
6241
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6376
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6242
6377
  * @summary Update
6243
6378
  * @param {string} id
6244
6379
  * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
@@ -6317,7 +6452,7 @@ export const CommandApiFp = function (configuration) {
6317
6452
  const localVarAxiosParamCreator = CommandApiAxiosParamCreator(configuration);
6318
6453
  return {
6319
6454
  /**
6320
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
6455
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
6321
6456
  * @summary Create
6322
6457
  * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
6323
6458
  * @param {*} [options] Override http request option.
@@ -6424,7 +6559,7 @@ export const CommandApiFp = function (configuration) {
6424
6559
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6425
6560
  },
6426
6561
  /**
6427
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6562
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6428
6563
  * @summary Update
6429
6564
  * @param {string} id
6430
6565
  * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
@@ -6461,7 +6596,7 @@ export const CommandApiFactory = function (configuration, basePath, axios) {
6461
6596
  const localVarFp = CommandApiFp(configuration);
6462
6597
  return {
6463
6598
  /**
6464
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
6599
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
6465
6600
  * @summary Create
6466
6601
  * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
6467
6602
  * @param {*} [options] Override http request option.
@@ -6552,7 +6687,7 @@ export const CommandApiFactory = function (configuration, basePath, axios) {
6552
6687
  .then((request) => request(axios, basePath));
6553
6688
  },
6554
6689
  /**
6555
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6690
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6556
6691
  * @summary Update
6557
6692
  * @param {string} id
6558
6693
  * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
@@ -6587,7 +6722,7 @@ export const CommandApiFactory = function (configuration, basePath, axios) {
6587
6722
  */
6588
6723
  export class CommandApi extends BaseAPI {
6589
6724
  /**
6590
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
6725
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
6591
6726
  * @summary Create
6592
6727
  * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
6593
6728
  * @param {*} [options] Override http request option.
@@ -6694,7 +6829,7 @@ export class CommandApi extends BaseAPI {
6694
6829
  .then((request) => request(this.axios, this.basePath));
6695
6830
  }
6696
6831
  /**
6697
- * Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6832
+ * The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
6698
6833
  * @summary Update
6699
6834
  * @param {string} id
6700
6835
  * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
@@ -14903,6 +15038,41 @@ export const ModuleApiAxiosParamCreator = function (configuration) {
14903
15038
  options: localVarRequestOptions,
14904
15039
  };
14905
15040
  },
15041
+ /**
15042
+ * Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
15043
+ * @summary Import versions into an existing module
15044
+ * @param {string} id
15045
+ * @param {any} [body]
15046
+ * @param {*} [options] Override http request option.
15047
+ * @throws {RequiredError}
15048
+ */
15049
+ moduleControllerImportVersions: async (id, body, options = {}) => {
15050
+ // verify required parameter 'id' is not null or undefined
15051
+ assertParamExists('moduleControllerImportVersions', 'id', id);
15052
+ const localVarPath = `/module/{id}/import`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
15053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15054
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15055
+ let baseOptions;
15056
+ if (configuration) {
15057
+ baseOptions = configuration.baseOptions;
15058
+ }
15059
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
15060
+ const localVarHeaderParameter = {};
15061
+ const localVarQueryParameter = {};
15062
+ // authentication bearerAuth required
15063
+ // http bearer authentication required
15064
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
15065
+ // authentication domainAuth required
15066
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15067
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15068
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15069
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
15070
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
15071
+ return {
15072
+ url: toPathString(localVarUrlObj),
15073
+ options: localVarRequestOptions,
15074
+ };
15075
+ },
14906
15076
  /**
14907
15077
  * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
14908
15078
  * @summary Remove a module
@@ -15298,6 +15468,20 @@ export const ModuleApiFp = function (configuration) {
15298
15468
  const localVarOperationServerBasePath = operationServerMap['ModuleApi.moduleControllerImport']?.[localVarOperationServerIndex]?.url;
15299
15469
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15300
15470
  },
15471
+ /**
15472
+ * Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
15473
+ * @summary Import versions into an existing module
15474
+ * @param {string} id
15475
+ * @param {any} [body]
15476
+ * @param {*} [options] Override http request option.
15477
+ * @throws {RequiredError}
15478
+ */
15479
+ async moduleControllerImportVersions(id, body, options) {
15480
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerImportVersions(id, body, options);
15481
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15482
+ const localVarOperationServerBasePath = operationServerMap['ModuleApi.moduleControllerImportVersions']?.[localVarOperationServerIndex]?.url;
15483
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15484
+ },
15301
15485
  /**
15302
15486
  * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
15303
15487
  * @summary Remove a module
@@ -15485,6 +15669,17 @@ export const ModuleApiFactory = function (configuration, basePath, axios) {
15485
15669
  moduleControllerImport(body, options) {
15486
15670
  return localVarFp.moduleControllerImport(body, options).then((request) => request(axios, basePath));
15487
15671
  },
15672
+ /**
15673
+ * Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
15674
+ * @summary Import versions into an existing module
15675
+ * @param {string} id
15676
+ * @param {any} [body]
15677
+ * @param {*} [options] Override http request option.
15678
+ * @throws {RequiredError}
15679
+ */
15680
+ moduleControllerImportVersions(id, body, options) {
15681
+ return localVarFp.moduleControllerImportVersions(id, body, options).then((request) => request(axios, basePath));
15682
+ },
15488
15683
  /**
15489
15684
  * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
15490
15685
  * @summary Remove a module
@@ -15668,6 +15863,20 @@ export class ModuleApi extends BaseAPI {
15668
15863
  .moduleControllerImport(body, options)
15669
15864
  .then((request) => request(this.axios, this.basePath));
15670
15865
  }
15866
+ /**
15867
+ * Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
15868
+ * @summary Import versions into an existing module
15869
+ * @param {string} id
15870
+ * @param {any} [body]
15871
+ * @param {*} [options] Override http request option.
15872
+ * @throws {RequiredError}
15873
+ * @memberof ModuleApi
15874
+ */
15875
+ moduleControllerImportVersions(id, body, options) {
15876
+ return ModuleApiFp(this.configuration)
15877
+ .moduleControllerImportVersions(id, body, options)
15878
+ .then((request) => request(this.axios, this.basePath));
15879
+ }
15671
15880
  /**
15672
15881
  * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
15673
15882
  * @summary Remove a module
@@ -16171,6 +16380,111 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
16171
16380
  options: localVarRequestOptions,
16172
16381
  };
16173
16382
  },
16383
+ /**
16384
+ * Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
16385
+ * @summary Link a player to a user
16386
+ * @param {string} id
16387
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
16388
+ * @param {*} [options] Override http request option.
16389
+ * @throws {RequiredError}
16390
+ */
16391
+ playerControllerLinkUser: async (id, playerLinkUserInputDTO, options = {}) => {
16392
+ // verify required parameter 'id' is not null or undefined
16393
+ assertParamExists('playerControllerLinkUser', 'id', id);
16394
+ const localVarPath = `/player/{id}/link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16395
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16396
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16397
+ let baseOptions;
16398
+ if (configuration) {
16399
+ baseOptions = configuration.baseOptions;
16400
+ }
16401
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
16402
+ const localVarHeaderParameter = {};
16403
+ const localVarQueryParameter = {};
16404
+ // authentication bearerAuth required
16405
+ // http bearer authentication required
16406
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16407
+ // authentication domainAuth required
16408
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16409
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16410
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16411
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16412
+ localVarRequestOptions.data = serializeDataIfNeeded(playerLinkUserInputDTO, localVarRequestOptions, configuration);
16413
+ return {
16414
+ url: toPathString(localVarUrlObj),
16415
+ options: localVarRequestOptions,
16416
+ };
16417
+ },
16418
+ /**
16419
+ * Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
16420
+ * @summary Merge a player into another
16421
+ * @param {string} id
16422
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
16423
+ * @param {*} [options] Override http request option.
16424
+ * @throws {RequiredError}
16425
+ */
16426
+ playerControllerMerge: async (id, playerMergeExecuteInputDTO, options = {}) => {
16427
+ // verify required parameter 'id' is not null or undefined
16428
+ assertParamExists('playerControllerMerge', 'id', id);
16429
+ const localVarPath = `/player/{id}/merge`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16432
+ let baseOptions;
16433
+ if (configuration) {
16434
+ baseOptions = configuration.baseOptions;
16435
+ }
16436
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
16437
+ const localVarHeaderParameter = {};
16438
+ const localVarQueryParameter = {};
16439
+ // authentication bearerAuth required
16440
+ // http bearer authentication required
16441
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16442
+ // authentication domainAuth required
16443
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16446
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16447
+ localVarRequestOptions.data = serializeDataIfNeeded(playerMergeExecuteInputDTO, localVarRequestOptions, configuration);
16448
+ return {
16449
+ url: toPathString(localVarUrlObj),
16450
+ options: localVarRequestOptions,
16451
+ };
16452
+ },
16453
+ /**
16454
+ * Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
16455
+ * @summary Preview merging a player into another
16456
+ * @param {string} id
16457
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
16458
+ * @param {*} [options] Override http request option.
16459
+ * @throws {RequiredError}
16460
+ */
16461
+ playerControllerMergePreview: async (id, playerMergeInputDTO, options = {}) => {
16462
+ // verify required parameter 'id' is not null or undefined
16463
+ assertParamExists('playerControllerMergePreview', 'id', id);
16464
+ const localVarPath = `/player/{id}/merge/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16465
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16466
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16467
+ let baseOptions;
16468
+ if (configuration) {
16469
+ baseOptions = configuration.baseOptions;
16470
+ }
16471
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
16472
+ const localVarHeaderParameter = {};
16473
+ const localVarQueryParameter = {};
16474
+ // authentication bearerAuth required
16475
+ // http bearer authentication required
16476
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16477
+ // authentication domainAuth required
16478
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16479
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16480
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16481
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16482
+ localVarRequestOptions.data = serializeDataIfNeeded(playerMergeInputDTO, localVarRequestOptions, configuration);
16483
+ return {
16484
+ url: toPathString(localVarUrlObj),
16485
+ options: localVarRequestOptions,
16486
+ };
16487
+ },
16174
16488
  /**
16175
16489
  * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16176
16490
  * @summary Remove a role from a player
@@ -16243,6 +16557,38 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
16243
16557
  options: localVarRequestOptions,
16244
16558
  };
16245
16559
  },
16560
+ /**
16561
+ * End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
16562
+ * @summary Unlink a player from its user
16563
+ * @param {string} id
16564
+ * @param {*} [options] Override http request option.
16565
+ * @throws {RequiredError}
16566
+ */
16567
+ playerControllerUnlinkUser: async (id, options = {}) => {
16568
+ // verify required parameter 'id' is not null or undefined
16569
+ assertParamExists('playerControllerUnlinkUser', 'id', id);
16570
+ const localVarPath = `/player/{id}/link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16571
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16572
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16573
+ let baseOptions;
16574
+ if (configuration) {
16575
+ baseOptions = configuration.baseOptions;
16576
+ }
16577
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
16578
+ const localVarHeaderParameter = {};
16579
+ const localVarQueryParameter = {};
16580
+ // authentication bearerAuth required
16581
+ // http bearer authentication required
16582
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16583
+ // authentication domainAuth required
16584
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16585
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16586
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16587
+ return {
16588
+ url: toPathString(localVarUrlObj),
16589
+ options: localVarRequestOptions,
16590
+ };
16591
+ },
16246
16592
  };
16247
16593
  };
16248
16594
  /**
@@ -16398,6 +16744,48 @@ export const PlayerApiFp = function (configuration) {
16398
16744
  const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerGetOne']?.[localVarOperationServerIndex]?.url;
16399
16745
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16400
16746
  },
16747
+ /**
16748
+ * Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
16749
+ * @summary Link a player to a user
16750
+ * @param {string} id
16751
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
16752
+ * @param {*} [options] Override http request option.
16753
+ * @throws {RequiredError}
16754
+ */
16755
+ async playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
16756
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerLinkUser(id, playerLinkUserInputDTO, options);
16757
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16758
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerLinkUser']?.[localVarOperationServerIndex]?.url;
16759
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16760
+ },
16761
+ /**
16762
+ * Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
16763
+ * @summary Merge a player into another
16764
+ * @param {string} id
16765
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
16766
+ * @param {*} [options] Override http request option.
16767
+ * @throws {RequiredError}
16768
+ */
16769
+ async playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
16770
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerMerge(id, playerMergeExecuteInputDTO, options);
16771
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16772
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerMerge']?.[localVarOperationServerIndex]?.url;
16773
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16774
+ },
16775
+ /**
16776
+ * Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
16777
+ * @summary Preview merging a player into another
16778
+ * @param {string} id
16779
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
16780
+ * @param {*} [options] Override http request option.
16781
+ * @throws {RequiredError}
16782
+ */
16783
+ async playerControllerMergePreview(id, playerMergeInputDTO, options) {
16784
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerMergePreview(id, playerMergeInputDTO, options);
16785
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16786
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerMergePreview']?.[localVarOperationServerIndex]?.url;
16787
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16788
+ },
16401
16789
  /**
16402
16790
  * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16403
16791
  * @summary Remove a role from a player
@@ -16426,6 +16814,19 @@ export const PlayerApiFp = function (configuration) {
16426
16814
  const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerSearch']?.[localVarOperationServerIndex]?.url;
16427
16815
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16428
16816
  },
16817
+ /**
16818
+ * End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
16819
+ * @summary Unlink a player from its user
16820
+ * @param {string} id
16821
+ * @param {*} [options] Override http request option.
16822
+ * @throws {RequiredError}
16823
+ */
16824
+ async playerControllerUnlinkUser(id, options) {
16825
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerUnlinkUser(id, options);
16826
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16827
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerUnlinkUser']?.[localVarOperationServerIndex]?.url;
16828
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16829
+ },
16429
16830
  };
16430
16831
  };
16431
16832
  /**
@@ -16554,6 +16955,45 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
16554
16955
  playerControllerGetOne(id, options) {
16555
16956
  return localVarFp.playerControllerGetOne(id, options).then((request) => request(axios, basePath));
16556
16957
  },
16958
+ /**
16959
+ * Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
16960
+ * @summary Link a player to a user
16961
+ * @param {string} id
16962
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
16963
+ * @param {*} [options] Override http request option.
16964
+ * @throws {RequiredError}
16965
+ */
16966
+ playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
16967
+ return localVarFp
16968
+ .playerControllerLinkUser(id, playerLinkUserInputDTO, options)
16969
+ .then((request) => request(axios, basePath));
16970
+ },
16971
+ /**
16972
+ * Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
16973
+ * @summary Merge a player into another
16974
+ * @param {string} id
16975
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
16976
+ * @param {*} [options] Override http request option.
16977
+ * @throws {RequiredError}
16978
+ */
16979
+ playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
16980
+ return localVarFp
16981
+ .playerControllerMerge(id, playerMergeExecuteInputDTO, options)
16982
+ .then((request) => request(axios, basePath));
16983
+ },
16984
+ /**
16985
+ * Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
16986
+ * @summary Preview merging a player into another
16987
+ * @param {string} id
16988
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
16989
+ * @param {*} [options] Override http request option.
16990
+ * @throws {RequiredError}
16991
+ */
16992
+ playerControllerMergePreview(id, playerMergeInputDTO, options) {
16993
+ return localVarFp
16994
+ .playerControllerMergePreview(id, playerMergeInputDTO, options)
16995
+ .then((request) => request(axios, basePath));
16996
+ },
16557
16997
  /**
16558
16998
  * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16559
16999
  * @summary Remove a role from a player
@@ -16580,6 +17020,16 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
16580
17020
  .playerControllerSearch(playerSearchInputDTO, options)
16581
17021
  .then((request) => request(axios, basePath));
16582
17022
  },
17023
+ /**
17024
+ * End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
17025
+ * @summary Unlink a player from its user
17026
+ * @param {string} id
17027
+ * @param {*} [options] Override http request option.
17028
+ * @throws {RequiredError}
17029
+ */
17030
+ playerControllerUnlinkUser(id, options) {
17031
+ return localVarFp.playerControllerUnlinkUser(id, options).then((request) => request(axios, basePath));
17032
+ },
16583
17033
  };
16584
17034
  };
16585
17035
  /**
@@ -16736,23 +17186,65 @@ export class PlayerApi extends BaseAPI {
16736
17186
  .then((request) => request(this.axios, this.basePath));
16737
17187
  }
16738
17188
  /**
16739
- * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16740
- * @summary Remove a role from a player
17189
+ * Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
17190
+ * @summary Link a player to a user
16741
17191
  * @param {string} id
16742
- * @param {string} roleId
16743
- * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO
17192
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
16744
17193
  * @param {*} [options] Override http request option.
16745
17194
  * @throws {RequiredError}
16746
17195
  * @memberof PlayerApi
16747
17196
  */
16748
- playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options) {
17197
+ playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
16749
17198
  return PlayerApiFp(this.configuration)
16750
- .playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options)
17199
+ .playerControllerLinkUser(id, playerLinkUserInputDTO, options)
16751
17200
  .then((request) => request(this.axios, this.basePath));
16752
17201
  }
16753
17202
  /**
16754
- * Search every player Takaro knows about, across all game servers. Match on their name or on a platform identifier: Steam ID, Xbox live ID, Epic Online Services ID, or their Takaro player id. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerControllerSearch`
16755
- * @summary Find a player by name or platform id
17203
+ * Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
17204
+ * @summary Merge a player into another
17205
+ * @param {string} id
17206
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
17207
+ * @param {*} [options] Override http request option.
17208
+ * @throws {RequiredError}
17209
+ * @memberof PlayerApi
17210
+ */
17211
+ playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
17212
+ return PlayerApiFp(this.configuration)
17213
+ .playerControllerMerge(id, playerMergeExecuteInputDTO, options)
17214
+ .then((request) => request(this.axios, this.basePath));
17215
+ }
17216
+ /**
17217
+ * Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
17218
+ * @summary Preview merging a player into another
17219
+ * @param {string} id
17220
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
17221
+ * @param {*} [options] Override http request option.
17222
+ * @throws {RequiredError}
17223
+ * @memberof PlayerApi
17224
+ */
17225
+ playerControllerMergePreview(id, playerMergeInputDTO, options) {
17226
+ return PlayerApiFp(this.configuration)
17227
+ .playerControllerMergePreview(id, playerMergeInputDTO, options)
17228
+ .then((request) => request(this.axios, this.basePath));
17229
+ }
17230
+ /**
17231
+ * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
17232
+ * @summary Remove a role from a player
17233
+ * @param {string} id
17234
+ * @param {string} roleId
17235
+ * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO
17236
+ * @param {*} [options] Override http request option.
17237
+ * @throws {RequiredError}
17238
+ * @memberof PlayerApi
17239
+ */
17240
+ playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options) {
17241
+ return PlayerApiFp(this.configuration)
17242
+ .playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options)
17243
+ .then((request) => request(this.axios, this.basePath));
17244
+ }
17245
+ /**
17246
+ * Search every player Takaro knows about, across all game servers. Match on their name or on a platform identifier: Steam ID, Xbox live ID, Epic Online Services ID, or their Takaro player id. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerControllerSearch`
17247
+ * @summary Find a player by name or platform id
16756
17248
  * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO
16757
17249
  * @param {*} [options] Override http request option.
16758
17250
  * @throws {RequiredError}
@@ -16763,6 +17255,19 @@ export class PlayerApi extends BaseAPI {
16763
17255
  .playerControllerSearch(playerSearchInputDTO, options)
16764
17256
  .then((request) => request(this.axios, this.basePath));
16765
17257
  }
17258
+ /**
17259
+ * End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
17260
+ * @summary Unlink a player from its user
17261
+ * @param {string} id
17262
+ * @param {*} [options] Override http request option.
17263
+ * @throws {RequiredError}
17264
+ * @memberof PlayerApi
17265
+ */
17266
+ playerControllerUnlinkUser(id, options) {
17267
+ return PlayerApiFp(this.configuration)
17268
+ .playerControllerUnlinkUser(id, options)
17269
+ .then((request) => request(this.axios, this.basePath));
17270
+ }
16766
17271
  }
16767
17272
  /**
16768
17273
  * PlayerOnGameServerApi - axios parameter creator
@@ -17185,340 +17690,959 @@ export const PlayerOnGameServerApiFp = function (configuration) {
17185
17690
  * @param {*} [options] Override http request option.
17186
17691
  * @throws {RequiredError}
17187
17692
  */
17188
- async playerOnGameServerControllerDelete(gameServerId, playerId, options) {
17189
- const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerDelete(gameServerId, playerId, options);
17693
+ async playerOnGameServerControllerDelete(gameServerId, playerId, options) {
17694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerDelete(gameServerId, playerId, options);
17695
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17696
+ const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerDelete']?.[localVarOperationServerIndex]
17697
+ ?.url;
17698
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17699
+ },
17700
+ /**
17701
+ * Fetch a single player\'s record on a specific game server, with their currency balance, playtime and online status. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
17702
+ * @summary Get one player on a game server
17703
+ * @param {string} gameServerId
17704
+ * @param {string} playerId
17705
+ * @param {*} [options] Override http request option.
17706
+ * @throws {RequiredError}
17707
+ */
17708
+ async playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
17709
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerGetOne(gameServerId, playerId, options);
17710
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17711
+ const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerGetOne']?.[localVarOperationServerIndex]
17712
+ ?.url;
17713
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17714
+ },
17715
+ /**
17716
+ * Find the per-server record of a player: their currency balance, playtime, online status and when they were last seen on that game server. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
17717
+ * @summary Search players on a game server
17718
+ * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
17719
+ * @param {*} [options] Override http request option.
17720
+ * @throws {RequiredError}
17721
+ */
17722
+ async playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
17723
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options);
17724
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17725
+ const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSearch']?.[localVarOperationServerIndex]
17726
+ ?.url;
17727
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17728
+ },
17729
+ /**
17730
+ * Overwrite a player\'s currency balance on a game server with an exact amount, rather than adding to or subtracting from it. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
17731
+ * @summary Set a player\'s currency balance
17732
+ * @param {string} gameServerId
17733
+ * @param {string} playerId
17734
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17735
+ * @param {*} [options] Override http request option.
17736
+ * @throws {RequiredError}
17737
+ */
17738
+ async playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17739
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options);
17740
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17741
+ const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSetCurrency']?.[localVarOperationServerIndex]?.url;
17742
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17743
+ },
17744
+ /**
17745
+ * Move currency from one player to another on the same game server, deducting from the sender and adding to the receiver in a single operation. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
17746
+ * @summary Transfer currency between two players
17747
+ * @param {string} gameServerId
17748
+ * @param {string} sender
17749
+ * @param {string} receiver
17750
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17751
+ * @param {*} [options] Override http request option.
17752
+ * @throws {RequiredError}
17753
+ */
17754
+ async playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
17755
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options);
17756
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17757
+ const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerTransactBetweenPlayers']?.[localVarOperationServerIndex]?.url;
17758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17759
+ },
17760
+ };
17761
+ };
17762
+ /**
17763
+ * PlayerOnGameServerApi - factory interface
17764
+ * @export
17765
+ */
17766
+ export const PlayerOnGameServerApiFactory = function (configuration, basePath, axios) {
17767
+ const localVarFp = PlayerOnGameServerApiFp(configuration);
17768
+ return {
17769
+ /**
17770
+ * Grant currency to a player on a game server as a reward, a payout or a manual correction. The amount is added to the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerAddCurrency`
17771
+ * @summary Give a player currency
17772
+ * @param {string} gameServerId
17773
+ * @param {string} playerId
17774
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17775
+ * @param {*} [options] Override http request option.
17776
+ * @throws {RequiredError}
17777
+ */
17778
+ playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17779
+ return localVarFp
17780
+ .playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
17781
+ .then((request) => request(axios, basePath));
17782
+ },
17783
+ /**
17784
+ * Bulk add currency to players on a game server, targeted by player ids or by a player-on-game-server search query (at most 1000 resolved players). Processes each player individually and reports partial failures. `playerIds` is deprecated; use `ids`. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
17785
+ * @summary Give several players currency at once
17786
+ * @param {string} gameServerId
17787
+ * @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
17788
+ * @param {*} [options] Override http request option.
17789
+ * @throws {RequiredError}
17790
+ */
17791
+ playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options) {
17792
+ return localVarFp
17793
+ .playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options)
17794
+ .then((request) => request(axios, basePath));
17795
+ },
17796
+ /**
17797
+ * Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
17798
+ * @summary Permanently delete several players\' records and their history
17799
+ * @param {string} gameServerId
17800
+ * @param {PogBulkDeleteInputDTO} [pogBulkDeleteInputDTO] PogBulkDeleteInputDTO
17801
+ * @param {*} [options] Override http request option.
17802
+ * @throws {RequiredError}
17803
+ */
17804
+ playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options) {
17805
+ return localVarFp
17806
+ .playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options)
17807
+ .then((request) => request(axios, basePath));
17808
+ },
17809
+ /**
17810
+ * Remove currency from a player on a game server as a fine or a manual correction. The amount is subtracted from the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDeductCurrency`
17811
+ * @summary Take currency away from a player
17812
+ * @param {string} gameServerId
17813
+ * @param {string} playerId
17814
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17815
+ * @param {*} [options] Override http request option.
17816
+ * @throws {RequiredError}
17817
+ */
17818
+ playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17819
+ return localVarFp
17820
+ .playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
17821
+ .then((request) => request(axios, basePath));
17822
+ },
17823
+ /**
17824
+ * Removes the per-server record only. The player themselves, and their records on other game servers, remain untouched. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
17825
+ * @summary Permanently delete a player\'s record and its history
17826
+ * @param {string} gameServerId
17827
+ * @param {string} playerId
17828
+ * @param {*} [options] Override http request option.
17829
+ * @throws {RequiredError}
17830
+ */
17831
+ playerOnGameServerControllerDelete(gameServerId, playerId, options) {
17832
+ return localVarFp
17833
+ .playerOnGameServerControllerDelete(gameServerId, playerId, options)
17834
+ .then((request) => request(axios, basePath));
17835
+ },
17836
+ /**
17837
+ * Fetch a single player\'s record on a specific game server, with their currency balance, playtime and online status. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
17838
+ * @summary Get one player on a game server
17839
+ * @param {string} gameServerId
17840
+ * @param {string} playerId
17841
+ * @param {*} [options] Override http request option.
17842
+ * @throws {RequiredError}
17843
+ */
17844
+ playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
17845
+ return localVarFp
17846
+ .playerOnGameServerControllerGetOne(gameServerId, playerId, options)
17847
+ .then((request) => request(axios, basePath));
17848
+ },
17849
+ /**
17850
+ * Find the per-server record of a player: their currency balance, playtime, online status and when they were last seen on that game server. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
17851
+ * @summary Search players on a game server
17852
+ * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
17853
+ * @param {*} [options] Override http request option.
17854
+ * @throws {RequiredError}
17855
+ */
17856
+ playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
17857
+ return localVarFp
17858
+ .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options)
17859
+ .then((request) => request(axios, basePath));
17860
+ },
17861
+ /**
17862
+ * Overwrite a player\'s currency balance on a game server with an exact amount, rather than adding to or subtracting from it. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
17863
+ * @summary Set a player\'s currency balance
17864
+ * @param {string} gameServerId
17865
+ * @param {string} playerId
17866
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17867
+ * @param {*} [options] Override http request option.
17868
+ * @throws {RequiredError}
17869
+ */
17870
+ playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17871
+ return localVarFp
17872
+ .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
17873
+ .then((request) => request(axios, basePath));
17874
+ },
17875
+ /**
17876
+ * Move currency from one player to another on the same game server, deducting from the sender and adding to the receiver in a single operation. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
17877
+ * @summary Transfer currency between two players
17878
+ * @param {string} gameServerId
17879
+ * @param {string} sender
17880
+ * @param {string} receiver
17881
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17882
+ * @param {*} [options] Override http request option.
17883
+ * @throws {RequiredError}
17884
+ */
17885
+ playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
17886
+ return localVarFp
17887
+ .playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options)
17888
+ .then((request) => request(axios, basePath));
17889
+ },
17890
+ };
17891
+ };
17892
+ /**
17893
+ * PlayerOnGameServerApi - object-oriented interface
17894
+ * @export
17895
+ * @class PlayerOnGameServerApi
17896
+ * @extends {BaseAPI}
17897
+ */
17898
+ export class PlayerOnGameServerApi extends BaseAPI {
17899
+ /**
17900
+ * Grant currency to a player on a game server as a reward, a payout or a manual correction. The amount is added to the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerAddCurrency`
17901
+ * @summary Give a player currency
17902
+ * @param {string} gameServerId
17903
+ * @param {string} playerId
17904
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17905
+ * @param {*} [options] Override http request option.
17906
+ * @throws {RequiredError}
17907
+ * @memberof PlayerOnGameServerApi
17908
+ */
17909
+ playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17910
+ return PlayerOnGameServerApiFp(this.configuration)
17911
+ .playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
17912
+ .then((request) => request(this.axios, this.basePath));
17913
+ }
17914
+ /**
17915
+ * Bulk add currency to players on a game server, targeted by player ids or by a player-on-game-server search query (at most 1000 resolved players). Processes each player individually and reports partial failures. `playerIds` is deprecated; use `ids`. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
17916
+ * @summary Give several players currency at once
17917
+ * @param {string} gameServerId
17918
+ * @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
17919
+ * @param {*} [options] Override http request option.
17920
+ * @throws {RequiredError}
17921
+ * @memberof PlayerOnGameServerApi
17922
+ */
17923
+ playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options) {
17924
+ return PlayerOnGameServerApiFp(this.configuration)
17925
+ .playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options)
17926
+ .then((request) => request(this.axios, this.basePath));
17927
+ }
17928
+ /**
17929
+ * Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
17930
+ * @summary Permanently delete several players\' records and their history
17931
+ * @param {string} gameServerId
17932
+ * @param {PogBulkDeleteInputDTO} [pogBulkDeleteInputDTO] PogBulkDeleteInputDTO
17933
+ * @param {*} [options] Override http request option.
17934
+ * @throws {RequiredError}
17935
+ * @memberof PlayerOnGameServerApi
17936
+ */
17937
+ playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options) {
17938
+ return PlayerOnGameServerApiFp(this.configuration)
17939
+ .playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options)
17940
+ .then((request) => request(this.axios, this.basePath));
17941
+ }
17942
+ /**
17943
+ * Remove currency from a player on a game server as a fine or a manual correction. The amount is subtracted from the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDeductCurrency`
17944
+ * @summary Take currency away from a player
17945
+ * @param {string} gameServerId
17946
+ * @param {string} playerId
17947
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17948
+ * @param {*} [options] Override http request option.
17949
+ * @throws {RequiredError}
17950
+ * @memberof PlayerOnGameServerApi
17951
+ */
17952
+ playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17953
+ return PlayerOnGameServerApiFp(this.configuration)
17954
+ .playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
17955
+ .then((request) => request(this.axios, this.basePath));
17956
+ }
17957
+ /**
17958
+ * Removes the per-server record only. The player themselves, and their records on other game servers, remain untouched. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
17959
+ * @summary Permanently delete a player\'s record and its history
17960
+ * @param {string} gameServerId
17961
+ * @param {string} playerId
17962
+ * @param {*} [options] Override http request option.
17963
+ * @throws {RequiredError}
17964
+ * @memberof PlayerOnGameServerApi
17965
+ */
17966
+ playerOnGameServerControllerDelete(gameServerId, playerId, options) {
17967
+ return PlayerOnGameServerApiFp(this.configuration)
17968
+ .playerOnGameServerControllerDelete(gameServerId, playerId, options)
17969
+ .then((request) => request(this.axios, this.basePath));
17970
+ }
17971
+ /**
17972
+ * Fetch a single player\'s record on a specific game server, with their currency balance, playtime and online status. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
17973
+ * @summary Get one player on a game server
17974
+ * @param {string} gameServerId
17975
+ * @param {string} playerId
17976
+ * @param {*} [options] Override http request option.
17977
+ * @throws {RequiredError}
17978
+ * @memberof PlayerOnGameServerApi
17979
+ */
17980
+ playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
17981
+ return PlayerOnGameServerApiFp(this.configuration)
17982
+ .playerOnGameServerControllerGetOne(gameServerId, playerId, options)
17983
+ .then((request) => request(this.axios, this.basePath));
17984
+ }
17985
+ /**
17986
+ * Find the per-server record of a player: their currency balance, playtime, online status and when they were last seen on that game server. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
17987
+ * @summary Search players on a game server
17988
+ * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
17989
+ * @param {*} [options] Override http request option.
17990
+ * @throws {RequiredError}
17991
+ * @memberof PlayerOnGameServerApi
17992
+ */
17993
+ playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
17994
+ return PlayerOnGameServerApiFp(this.configuration)
17995
+ .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options)
17996
+ .then((request) => request(this.axios, this.basePath));
17997
+ }
17998
+ /**
17999
+ * Overwrite a player\'s currency balance on a game server with an exact amount, rather than adding to or subtracting from it. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
18000
+ * @summary Set a player\'s currency balance
18001
+ * @param {string} gameServerId
18002
+ * @param {string} playerId
18003
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18004
+ * @param {*} [options] Override http request option.
18005
+ * @throws {RequiredError}
18006
+ * @memberof PlayerOnGameServerApi
18007
+ */
18008
+ playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
18009
+ return PlayerOnGameServerApiFp(this.configuration)
18010
+ .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
18011
+ .then((request) => request(this.axios, this.basePath));
18012
+ }
18013
+ /**
18014
+ * Move currency from one player to another on the same game server, deducting from the sender and adding to the receiver in a single operation. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
18015
+ * @summary Transfer currency between two players
18016
+ * @param {string} gameServerId
18017
+ * @param {string} sender
18018
+ * @param {string} receiver
18019
+ * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18020
+ * @param {*} [options] Override http request option.
18021
+ * @throws {RequiredError}
18022
+ * @memberof PlayerOnGameServerApi
18023
+ */
18024
+ playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
18025
+ return PlayerOnGameServerApiFp(this.configuration)
18026
+ .playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options)
18027
+ .then((request) => request(this.axios, this.basePath));
18028
+ }
18029
+ }
18030
+ /**
18031
+ * PlayerPortalApi - axios parameter creator
18032
+ * @export
18033
+ */
18034
+ export const PlayerPortalApiAxiosParamCreator = function (configuration) {
18035
+ return {
18036
+ /**
18037
+ * Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
18038
+ * @summary Dismiss the displaced notice
18039
+ * @param {string} domainId
18040
+ * @param {*} [options] Override http request option.
18041
+ * @throws {RequiredError}
18042
+ */
18043
+ playerPortalControllerDismissDisplacedNotice: async (domainId, options = {}) => {
18044
+ // verify required parameter 'domainId' is not null or undefined
18045
+ assertParamExists('playerPortalControllerDismissDisplacedNotice', 'domainId', domainId);
18046
+ const localVarPath = `/player-portal/{domainId}/displaced-notice`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18047
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18048
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18049
+ let baseOptions;
18050
+ if (configuration) {
18051
+ baseOptions = configuration.baseOptions;
18052
+ }
18053
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
18054
+ const localVarHeaderParameter = {};
18055
+ const localVarQueryParameter = {};
18056
+ // authentication bearerAuth required
18057
+ // http bearer authentication required
18058
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18059
+ // authentication domainAuth required
18060
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18062
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18063
+ return {
18064
+ url: toPathString(localVarUrlObj),
18065
+ options: localVarRequestOptions,
18066
+ };
18067
+ },
18068
+ /**
18069
+ * Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
18070
+ * @summary Enter a Domain\'s Player Portal
18071
+ * @param {string} domainId
18072
+ * @param {*} [options] Override http request option.
18073
+ * @throws {RequiredError}
18074
+ */
18075
+ playerPortalControllerEnter: async (domainId, options = {}) => {
18076
+ // verify required parameter 'domainId' is not null or undefined
18077
+ assertParamExists('playerPortalControllerEnter', 'domainId', domainId);
18078
+ const localVarPath = `/player-portal/{domainId}/enter`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18079
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18080
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18081
+ let baseOptions;
18082
+ if (configuration) {
18083
+ baseOptions = configuration.baseOptions;
18084
+ }
18085
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18086
+ const localVarHeaderParameter = {};
18087
+ const localVarQueryParameter = {};
18088
+ // authentication bearerAuth required
18089
+ // http bearer authentication required
18090
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18091
+ // authentication domainAuth required
18092
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18093
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18094
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18095
+ return {
18096
+ url: toPathString(localVarUrlObj),
18097
+ options: localVarRequestOptions,
18098
+ };
18099
+ },
18100
+ /**
18101
+ * Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
18102
+ * @summary Inspect a game-issued Link Code
18103
+ * @param {string} domainId
18104
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18105
+ * @param {*} [options] Override http request option.
18106
+ * @throws {RequiredError}
18107
+ */
18108
+ playerPortalControllerInspectLinkCode: async (domainId, playerPortalLinkCodeInputDTO, options = {}) => {
18109
+ // verify required parameter 'domainId' is not null or undefined
18110
+ assertParamExists('playerPortalControllerInspectLinkCode', 'domainId', domainId);
18111
+ const localVarPath = `/player-portal/{domainId}/link-code/inspect`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18114
+ let baseOptions;
18115
+ if (configuration) {
18116
+ baseOptions = configuration.baseOptions;
18117
+ }
18118
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18119
+ const localVarHeaderParameter = {};
18120
+ const localVarQueryParameter = {};
18121
+ // authentication bearerAuth required
18122
+ // http bearer authentication required
18123
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18124
+ // authentication domainAuth required
18125
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18128
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18129
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
18130
+ return {
18131
+ url: toPathString(localVarUrlObj),
18132
+ options: localVarRequestOptions,
18133
+ };
18134
+ },
18135
+ /**
18136
+ * Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
18137
+ * @summary Get a Link Code to type in game
18138
+ * @param {string} domainId
18139
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
18140
+ * @param {*} [options] Override http request option.
18141
+ * @throws {RequiredError}
18142
+ */
18143
+ playerPortalControllerIssuePortalLinkCode: async (domainId, playerPortalIssueLinkCodeInputDTO, options = {}) => {
18144
+ // verify required parameter 'domainId' is not null or undefined
18145
+ assertParamExists('playerPortalControllerIssuePortalLinkCode', 'domainId', domainId);
18146
+ const localVarPath = `/player-portal/{domainId}/portal-link-code`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18149
+ let baseOptions;
18150
+ if (configuration) {
18151
+ baseOptions = configuration.baseOptions;
18152
+ }
18153
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18154
+ const localVarHeaderParameter = {};
18155
+ const localVarQueryParameter = {};
18156
+ // authentication bearerAuth required
18157
+ // http bearer authentication required
18158
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18159
+ // authentication domainAuth required
18160
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18161
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18162
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18163
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18164
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalIssueLinkCodeInputDTO, localVarRequestOptions, configuration);
18165
+ return {
18166
+ url: toPathString(localVarUrlObj),
18167
+ options: localVarRequestOptions,
18168
+ };
18169
+ },
18170
+ /**
18171
+ * Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
18172
+ * @summary Redeem a game-issued Link Code
18173
+ * @param {string} domainId
18174
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18175
+ * @param {*} [options] Override http request option.
18176
+ * @throws {RequiredError}
18177
+ */
18178
+ playerPortalControllerRedeemLinkCode: async (domainId, playerPortalLinkCodeInputDTO, options = {}) => {
18179
+ // verify required parameter 'domainId' is not null or undefined
18180
+ assertParamExists('playerPortalControllerRedeemLinkCode', 'domainId', domainId);
18181
+ const localVarPath = `/player-portal/{domainId}/link-code/redeem`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18184
+ let baseOptions;
18185
+ if (configuration) {
18186
+ baseOptions = configuration.baseOptions;
18187
+ }
18188
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18189
+ const localVarHeaderParameter = {};
18190
+ const localVarQueryParameter = {};
18191
+ // authentication bearerAuth required
18192
+ // http bearer authentication required
18193
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18194
+ // authentication domainAuth required
18195
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18198
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18199
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
18200
+ return {
18201
+ url: toPathString(localVarUrlObj),
18202
+ options: localVarRequestOptions,
18203
+ };
18204
+ },
18205
+ /**
18206
+ * Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
18207
+ * @summary Find a game-issued Link Code\'s Player Portal
18208
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18209
+ * @param {*} [options] Override http request option.
18210
+ * @throws {RequiredError}
18211
+ */
18212
+ playerPortalControllerResolveLinkCode: async (playerPortalLinkCodeInputDTO, options = {}) => {
18213
+ const localVarPath = `/player-portal/link-code/resolve`;
18214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18216
+ let baseOptions;
18217
+ if (configuration) {
18218
+ baseOptions = configuration.baseOptions;
18219
+ }
18220
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18221
+ const localVarHeaderParameter = {};
18222
+ const localVarQueryParameter = {};
18223
+ // authentication bearerAuth required
18224
+ // http bearer authentication required
18225
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18226
+ // authentication domainAuth required
18227
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18230
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18231
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
18232
+ return {
18233
+ url: toPathString(localVarUrlObj),
18234
+ options: localVarRequestOptions,
18235
+ };
18236
+ },
18237
+ /**
18238
+ * The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
18239
+ * @summary Get a Domain\'s Player Portal state
18240
+ * @param {string} domainId
18241
+ * @param {*} [options] Override http request option.
18242
+ * @throws {RequiredError}
18243
+ */
18244
+ playerPortalControllerState: async (domainId, options = {}) => {
18245
+ // verify required parameter 'domainId' is not null or undefined
18246
+ assertParamExists('playerPortalControllerState', 'domainId', domainId);
18247
+ const localVarPath = `/player-portal/{domainId}`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18248
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18249
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18250
+ let baseOptions;
18251
+ if (configuration) {
18252
+ baseOptions = configuration.baseOptions;
18253
+ }
18254
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18255
+ const localVarHeaderParameter = {};
18256
+ const localVarQueryParameter = {};
18257
+ // authentication bearerAuth required
18258
+ // http bearer authentication required
18259
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18260
+ // authentication domainAuth required
18261
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18262
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18263
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18264
+ return {
18265
+ url: toPathString(localVarUrlObj),
18266
+ options: localVarRequestOptions,
18267
+ };
18268
+ },
18269
+ /**
18270
+ * Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
18271
+ * @summary Unlink your own Player
18272
+ * @param {string} domainId
18273
+ * @param {string} playerId
18274
+ * @param {*} [options] Override http request option.
18275
+ * @throws {RequiredError}
18276
+ */
18277
+ playerPortalControllerUnlinkSelf: async (domainId, playerId, options = {}) => {
18278
+ // verify required parameter 'domainId' is not null or undefined
18279
+ assertParamExists('playerPortalControllerUnlinkSelf', 'domainId', domainId);
18280
+ // verify required parameter 'playerId' is not null or undefined
18281
+ assertParamExists('playerPortalControllerUnlinkSelf', 'playerId', playerId);
18282
+ const localVarPath = `/player-portal/{domainId}/link/{playerId}`
18283
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
18284
+ .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId)));
18285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18286
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18287
+ let baseOptions;
18288
+ if (configuration) {
18289
+ baseOptions = configuration.baseOptions;
18290
+ }
18291
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
18292
+ const localVarHeaderParameter = {};
18293
+ const localVarQueryParameter = {};
18294
+ // authentication bearerAuth required
18295
+ // http bearer authentication required
18296
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18297
+ // authentication domainAuth required
18298
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18300
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18301
+ return {
18302
+ url: toPathString(localVarUrlObj),
18303
+ options: localVarRequestOptions,
18304
+ };
18305
+ },
18306
+ };
18307
+ };
18308
+ /**
18309
+ * PlayerPortalApi - functional programming interface
18310
+ * @export
18311
+ */
18312
+ export const PlayerPortalApiFp = function (configuration) {
18313
+ const localVarAxiosParamCreator = PlayerPortalApiAxiosParamCreator(configuration);
18314
+ return {
18315
+ /**
18316
+ * Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
18317
+ * @summary Dismiss the displaced notice
18318
+ * @param {string} domainId
18319
+ * @param {*} [options] Override http request option.
18320
+ * @throws {RequiredError}
18321
+ */
18322
+ async playerPortalControllerDismissDisplacedNotice(domainId, options) {
18323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerDismissDisplacedNotice(domainId, options);
18324
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18325
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerDismissDisplacedNotice']?.[localVarOperationServerIndex]?.url;
18326
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18327
+ },
18328
+ /**
18329
+ * Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
18330
+ * @summary Enter a Domain\'s Player Portal
18331
+ * @param {string} domainId
18332
+ * @param {*} [options] Override http request option.
18333
+ * @throws {RequiredError}
18334
+ */
18335
+ async playerPortalControllerEnter(domainId, options) {
18336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerEnter(domainId, options);
18337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18338
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerEnter']?.[localVarOperationServerIndex]?.url;
18339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18340
+ },
18341
+ /**
18342
+ * Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
18343
+ * @summary Inspect a game-issued Link Code
18344
+ * @param {string} domainId
18345
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18346
+ * @param {*} [options] Override http request option.
18347
+ * @throws {RequiredError}
18348
+ */
18349
+ async playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18350
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options);
18351
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18352
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerInspectLinkCode']?.[localVarOperationServerIndex]
18353
+ ?.url;
18354
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18355
+ },
18356
+ /**
18357
+ * Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
18358
+ * @summary Get a Link Code to type in game
18359
+ * @param {string} domainId
18360
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
18361
+ * @param {*} [options] Override http request option.
18362
+ * @throws {RequiredError}
18363
+ */
18364
+ async playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
18365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options);
17190
18366
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17191
- const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerDelete']?.[localVarOperationServerIndex]
18367
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerIssuePortalLinkCode']?.[localVarOperationServerIndex]
17192
18368
  ?.url;
17193
18369
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17194
18370
  },
17195
18371
  /**
17196
- * Fetch a single player\'s record on a specific game server, with their currency balance, playtime and online status. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
17197
- * @summary Get one player on a game server
17198
- * @param {string} gameServerId
17199
- * @param {string} playerId
18372
+ * Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
18373
+ * @summary Redeem a game-issued Link Code
18374
+ * @param {string} domainId
18375
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17200
18376
  * @param {*} [options] Override http request option.
17201
18377
  * @throws {RequiredError}
17202
18378
  */
17203
- async playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
17204
- const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerGetOne(gameServerId, playerId, options);
18379
+ async playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options);
17205
18381
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17206
- const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerGetOne']?.[localVarOperationServerIndex]
17207
- ?.url;
18382
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerRedeemLinkCode']?.[localVarOperationServerIndex]?.url;
17208
18383
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17209
18384
  },
17210
18385
  /**
17211
- * Find the per-server record of a player: their currency balance, playtime, online status and when they were last seen on that game server. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
17212
- * @summary Search players on a game server
17213
- * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
18386
+ * Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
18387
+ * @summary Find a game-issued Link Code\'s Player Portal
18388
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17214
18389
  * @param {*} [options] Override http request option.
17215
18390
  * @throws {RequiredError}
17216
18391
  */
17217
- async playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
17218
- const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options);
18392
+ async playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
18393
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options);
17219
18394
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17220
- const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSearch']?.[localVarOperationServerIndex]
18395
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerResolveLinkCode']?.[localVarOperationServerIndex]
17221
18396
  ?.url;
17222
18397
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17223
18398
  },
17224
18399
  /**
17225
- * Overwrite a player\'s currency balance on a game server with an exact amount, rather than adding to or subtracting from it. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
17226
- * @summary Set a player\'s currency balance
17227
- * @param {string} gameServerId
17228
- * @param {string} playerId
17229
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18400
+ * The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
18401
+ * @summary Get a Domain\'s Player Portal state
18402
+ * @param {string} domainId
17230
18403
  * @param {*} [options] Override http request option.
17231
18404
  * @throws {RequiredError}
17232
18405
  */
17233
- async playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17234
- const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options);
18406
+ async playerPortalControllerState(domainId, options) {
18407
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerState(domainId, options);
17235
18408
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17236
- const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSetCurrency']?.[localVarOperationServerIndex]?.url;
18409
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerState']?.[localVarOperationServerIndex]?.url;
17237
18410
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17238
18411
  },
17239
18412
  /**
17240
- * Move currency from one player to another on the same game server, deducting from the sender and adding to the receiver in a single operation. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
17241
- * @summary Transfer currency between two players
17242
- * @param {string} gameServerId
17243
- * @param {string} sender
17244
- * @param {string} receiver
17245
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18413
+ * Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
18414
+ * @summary Unlink your own Player
18415
+ * @param {string} domainId
18416
+ * @param {string} playerId
17246
18417
  * @param {*} [options] Override http request option.
17247
18418
  * @throws {RequiredError}
17248
18419
  */
17249
- async playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
17250
- const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options);
18420
+ async playerPortalControllerUnlinkSelf(domainId, playerId, options) {
18421
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerUnlinkSelf(domainId, playerId, options);
17251
18422
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17252
- const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerTransactBetweenPlayers']?.[localVarOperationServerIndex]?.url;
18423
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerUnlinkSelf']?.[localVarOperationServerIndex]?.url;
17253
18424
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17254
18425
  },
17255
18426
  };
17256
18427
  };
17257
18428
  /**
17258
- * PlayerOnGameServerApi - factory interface
18429
+ * PlayerPortalApi - factory interface
17259
18430
  * @export
17260
18431
  */
17261
- export const PlayerOnGameServerApiFactory = function (configuration, basePath, axios) {
17262
- const localVarFp = PlayerOnGameServerApiFp(configuration);
18432
+ export const PlayerPortalApiFactory = function (configuration, basePath, axios) {
18433
+ const localVarFp = PlayerPortalApiFp(configuration);
17263
18434
  return {
17264
18435
  /**
17265
- * Grant currency to a player on a game server as a reward, a payout or a manual correction. The amount is added to the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerAddCurrency`
17266
- * @summary Give a player currency
17267
- * @param {string} gameServerId
17268
- * @param {string} playerId
17269
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18436
+ * Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
18437
+ * @summary Dismiss the displaced notice
18438
+ * @param {string} domainId
17270
18439
  * @param {*} [options] Override http request option.
17271
18440
  * @throws {RequiredError}
17272
18441
  */
17273
- playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
18442
+ playerPortalControllerDismissDisplacedNotice(domainId, options) {
17274
18443
  return localVarFp
17275
- .playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
18444
+ .playerPortalControllerDismissDisplacedNotice(domainId, options)
17276
18445
  .then((request) => request(axios, basePath));
17277
18446
  },
17278
18447
  /**
17279
- * Bulk add currency to players on a game server, targeted by player ids or by a player-on-game-server search query (at most 1000 resolved players). Processes each player individually and reports partial failures. `playerIds` is deprecated; use `ids`. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
17280
- * @summary Give several players currency at once
17281
- * @param {string} gameServerId
17282
- * @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
18448
+ * Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
18449
+ * @summary Enter a Domain\'s Player Portal
18450
+ * @param {string} domainId
17283
18451
  * @param {*} [options] Override http request option.
17284
18452
  * @throws {RequiredError}
17285
18453
  */
17286
- playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options) {
17287
- return localVarFp
17288
- .playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options)
17289
- .then((request) => request(axios, basePath));
18454
+ playerPortalControllerEnter(domainId, options) {
18455
+ return localVarFp.playerPortalControllerEnter(domainId, options).then((request) => request(axios, basePath));
17290
18456
  },
17291
18457
  /**
17292
- * Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
17293
- * @summary Permanently delete several players\' records and their history
17294
- * @param {string} gameServerId
17295
- * @param {PogBulkDeleteInputDTO} [pogBulkDeleteInputDTO] PogBulkDeleteInputDTO
18458
+ * Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
18459
+ * @summary Inspect a game-issued Link Code
18460
+ * @param {string} domainId
18461
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17296
18462
  * @param {*} [options] Override http request option.
17297
18463
  * @throws {RequiredError}
17298
18464
  */
17299
- playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options) {
18465
+ playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
17300
18466
  return localVarFp
17301
- .playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options)
18467
+ .playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
17302
18468
  .then((request) => request(axios, basePath));
17303
18469
  },
17304
18470
  /**
17305
- * Remove currency from a player on a game server as a fine or a manual correction. The amount is subtracted from the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDeductCurrency`
17306
- * @summary Take currency away from a player
17307
- * @param {string} gameServerId
17308
- * @param {string} playerId
17309
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18471
+ * Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
18472
+ * @summary Get a Link Code to type in game
18473
+ * @param {string} domainId
18474
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
17310
18475
  * @param {*} [options] Override http request option.
17311
18476
  * @throws {RequiredError}
17312
18477
  */
17313
- playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
18478
+ playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
17314
18479
  return localVarFp
17315
- .playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
18480
+ .playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options)
17316
18481
  .then((request) => request(axios, basePath));
17317
18482
  },
17318
18483
  /**
17319
- * Removes the per-server record only. The player themselves, and their records on other game servers, remain untouched. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
17320
- * @summary Permanently delete a player\'s record and its history
17321
- * @param {string} gameServerId
17322
- * @param {string} playerId
18484
+ * Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
18485
+ * @summary Redeem a game-issued Link Code
18486
+ * @param {string} domainId
18487
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17323
18488
  * @param {*} [options] Override http request option.
17324
18489
  * @throws {RequiredError}
17325
18490
  */
17326
- playerOnGameServerControllerDelete(gameServerId, playerId, options) {
18491
+ playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
17327
18492
  return localVarFp
17328
- .playerOnGameServerControllerDelete(gameServerId, playerId, options)
18493
+ .playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
17329
18494
  .then((request) => request(axios, basePath));
17330
18495
  },
17331
18496
  /**
17332
- * Fetch a single player\'s record on a specific game server, with their currency balance, playtime and online status. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
17333
- * @summary Get one player on a game server
17334
- * @param {string} gameServerId
17335
- * @param {string} playerId
18497
+ * Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
18498
+ * @summary Find a game-issued Link Code\'s Player Portal
18499
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17336
18500
  * @param {*} [options] Override http request option.
17337
18501
  * @throws {RequiredError}
17338
18502
  */
17339
- playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
18503
+ playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
17340
18504
  return localVarFp
17341
- .playerOnGameServerControllerGetOne(gameServerId, playerId, options)
18505
+ .playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options)
17342
18506
  .then((request) => request(axios, basePath));
17343
18507
  },
17344
18508
  /**
17345
- * Find the per-server record of a player: their currency balance, playtime, online status and when they were last seen on that game server. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
17346
- * @summary Search players on a game server
17347
- * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
18509
+ * The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
18510
+ * @summary Get a Domain\'s Player Portal state
18511
+ * @param {string} domainId
17348
18512
  * @param {*} [options] Override http request option.
17349
18513
  * @throws {RequiredError}
17350
18514
  */
17351
- playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
17352
- return localVarFp
17353
- .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options)
17354
- .then((request) => request(axios, basePath));
18515
+ playerPortalControllerState(domainId, options) {
18516
+ return localVarFp.playerPortalControllerState(domainId, options).then((request) => request(axios, basePath));
17355
18517
  },
17356
18518
  /**
17357
- * Overwrite a player\'s currency balance on a game server with an exact amount, rather than adding to or subtracting from it. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
17358
- * @summary Set a player\'s currency balance
17359
- * @param {string} gameServerId
18519
+ * Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
18520
+ * @summary Unlink your own Player
18521
+ * @param {string} domainId
17360
18522
  * @param {string} playerId
17361
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17362
- * @param {*} [options] Override http request option.
17363
- * @throws {RequiredError}
17364
- */
17365
- playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17366
- return localVarFp
17367
- .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
17368
- .then((request) => request(axios, basePath));
17369
- },
17370
- /**
17371
- * Move currency from one player to another on the same game server, deducting from the sender and adding to the receiver in a single operation. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
17372
- * @summary Transfer currency between two players
17373
- * @param {string} gameServerId
17374
- * @param {string} sender
17375
- * @param {string} receiver
17376
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17377
18523
  * @param {*} [options] Override http request option.
17378
18524
  * @throws {RequiredError}
17379
18525
  */
17380
- playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
18526
+ playerPortalControllerUnlinkSelf(domainId, playerId, options) {
17381
18527
  return localVarFp
17382
- .playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options)
18528
+ .playerPortalControllerUnlinkSelf(domainId, playerId, options)
17383
18529
  .then((request) => request(axios, basePath));
17384
18530
  },
17385
18531
  };
17386
18532
  };
17387
18533
  /**
17388
- * PlayerOnGameServerApi - object-oriented interface
18534
+ * PlayerPortalApi - object-oriented interface
17389
18535
  * @export
17390
- * @class PlayerOnGameServerApi
18536
+ * @class PlayerPortalApi
17391
18537
  * @extends {BaseAPI}
17392
18538
  */
17393
- export class PlayerOnGameServerApi extends BaseAPI {
18539
+ export class PlayerPortalApi extends BaseAPI {
17394
18540
  /**
17395
- * Grant currency to a player on a game server as a reward, a payout or a manual correction. The amount is added to the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerAddCurrency`
17396
- * @summary Give a player currency
17397
- * @param {string} gameServerId
17398
- * @param {string} playerId
17399
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18541
+ * Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
18542
+ * @summary Dismiss the displaced notice
18543
+ * @param {string} domainId
17400
18544
  * @param {*} [options] Override http request option.
17401
18545
  * @throws {RequiredError}
17402
- * @memberof PlayerOnGameServerApi
18546
+ * @memberof PlayerPortalApi
17403
18547
  */
17404
- playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17405
- return PlayerOnGameServerApiFp(this.configuration)
17406
- .playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
18548
+ playerPortalControllerDismissDisplacedNotice(domainId, options) {
18549
+ return PlayerPortalApiFp(this.configuration)
18550
+ .playerPortalControllerDismissDisplacedNotice(domainId, options)
17407
18551
  .then((request) => request(this.axios, this.basePath));
17408
18552
  }
17409
18553
  /**
17410
- * Bulk add currency to players on a game server, targeted by player ids or by a player-on-game-server search query (at most 1000 resolved players). Processes each player individually and reports partial failures. `playerIds` is deprecated; use `ids`. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkAddCurrency`
17411
- * @summary Give several players currency at once
17412
- * @param {string} gameServerId
17413
- * @param {PogBulkAddCurrencyInputDTO} [pogBulkAddCurrencyInputDTO] PogBulkAddCurrencyInputDTO
18554
+ * Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
18555
+ * @summary Enter a Domain\'s Player Portal
18556
+ * @param {string} domainId
17414
18557
  * @param {*} [options] Override http request option.
17415
18558
  * @throws {RequiredError}
17416
- * @memberof PlayerOnGameServerApi
18559
+ * @memberof PlayerPortalApi
17417
18560
  */
17418
- playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options) {
17419
- return PlayerOnGameServerApiFp(this.configuration)
17420
- .playerOnGameServerControllerBulkAddCurrency(gameServerId, pogBulkAddCurrencyInputDTO, options)
18561
+ playerPortalControllerEnter(domainId, options) {
18562
+ return PlayerPortalApiFp(this.configuration)
18563
+ .playerPortalControllerEnter(domainId, options)
17421
18564
  .then((request) => request(this.axios, this.basePath));
17422
18565
  }
17423
18566
  /**
17424
- * Bulk delete POG records by player IDs for a specific gameserver. Deletes POG records only, Player records remain intact. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerBulkDelete`
17425
- * @summary Permanently delete several players\' records and their history
17426
- * @param {string} gameServerId
17427
- * @param {PogBulkDeleteInputDTO} [pogBulkDeleteInputDTO] PogBulkDeleteInputDTO
18567
+ * Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
18568
+ * @summary Inspect a game-issued Link Code
18569
+ * @param {string} domainId
18570
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17428
18571
  * @param {*} [options] Override http request option.
17429
18572
  * @throws {RequiredError}
17430
- * @memberof PlayerOnGameServerApi
18573
+ * @memberof PlayerPortalApi
17431
18574
  */
17432
- playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options) {
17433
- return PlayerOnGameServerApiFp(this.configuration)
17434
- .playerOnGameServerControllerBulkDelete(gameServerId, pogBulkDeleteInputDTO, options)
18575
+ playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18576
+ return PlayerPortalApiFp(this.configuration)
18577
+ .playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
17435
18578
  .then((request) => request(this.axios, this.basePath));
17436
18579
  }
17437
18580
  /**
17438
- * Remove currency from a player on a game server as a fine or a manual correction. The amount is subtracted from the balance they already have. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDeductCurrency`
17439
- * @summary Take currency away from a player
17440
- * @param {string} gameServerId
17441
- * @param {string} playerId
17442
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
18581
+ * Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
18582
+ * @summary Get a Link Code to type in game
18583
+ * @param {string} domainId
18584
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
17443
18585
  * @param {*} [options] Override http request option.
17444
18586
  * @throws {RequiredError}
17445
- * @memberof PlayerOnGameServerApi
18587
+ * @memberof PlayerPortalApi
17446
18588
  */
17447
- playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17448
- return PlayerOnGameServerApiFp(this.configuration)
17449
- .playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
18589
+ playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
18590
+ return PlayerPortalApiFp(this.configuration)
18591
+ .playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options)
17450
18592
  .then((request) => request(this.axios, this.basePath));
17451
18593
  }
17452
18594
  /**
17453
- * Removes the per-server record only. The player themselves, and their records on other game servers, remain untouched. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
17454
- * @summary Permanently delete a player\'s record and its history
17455
- * @param {string} gameServerId
17456
- * @param {string} playerId
18595
+ * Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
18596
+ * @summary Redeem a game-issued Link Code
18597
+ * @param {string} domainId
18598
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17457
18599
  * @param {*} [options] Override http request option.
17458
18600
  * @throws {RequiredError}
17459
- * @memberof PlayerOnGameServerApi
18601
+ * @memberof PlayerPortalApi
17460
18602
  */
17461
- playerOnGameServerControllerDelete(gameServerId, playerId, options) {
17462
- return PlayerOnGameServerApiFp(this.configuration)
17463
- .playerOnGameServerControllerDelete(gameServerId, playerId, options)
18603
+ playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18604
+ return PlayerPortalApiFp(this.configuration)
18605
+ .playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
17464
18606
  .then((request) => request(this.axios, this.basePath));
17465
18607
  }
17466
18608
  /**
17467
- * Fetch a single player\'s record on a specific game server, with their currency balance, playtime and online status. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
17468
- * @summary Get one player on a game server
17469
- * @param {string} gameServerId
17470
- * @param {string} playerId
18609
+ * Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
18610
+ * @summary Find a game-issued Link Code\'s Player Portal
18611
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
17471
18612
  * @param {*} [options] Override http request option.
17472
18613
  * @throws {RequiredError}
17473
- * @memberof PlayerOnGameServerApi
18614
+ * @memberof PlayerPortalApi
17474
18615
  */
17475
- playerOnGameServerControllerGetOne(gameServerId, playerId, options) {
17476
- return PlayerOnGameServerApiFp(this.configuration)
17477
- .playerOnGameServerControllerGetOne(gameServerId, playerId, options)
18616
+ playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
18617
+ return PlayerPortalApiFp(this.configuration)
18618
+ .playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options)
17478
18619
  .then((request) => request(this.axios, this.basePath));
17479
18620
  }
17480
18621
  /**
17481
- * Find the per-server record of a player: their currency balance, playtime, online status and when they were last seen on that game server. Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSearch`
17482
- * @summary Search players on a game server
17483
- * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO
18622
+ * The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
18623
+ * @summary Get a Domain\'s Player Portal state
18624
+ * @param {string} domainId
17484
18625
  * @param {*} [options] Override http request option.
17485
18626
  * @throws {RequiredError}
17486
- * @memberof PlayerOnGameServerApi
18627
+ * @memberof PlayerPortalApi
17487
18628
  */
17488
- playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) {
17489
- return PlayerOnGameServerApiFp(this.configuration)
17490
- .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options)
18629
+ playerPortalControllerState(domainId, options) {
18630
+ return PlayerPortalApiFp(this.configuration)
18631
+ .playerPortalControllerState(domainId, options)
17491
18632
  .then((request) => request(this.axios, this.basePath));
17492
18633
  }
17493
18634
  /**
17494
- * Overwrite a player\'s currency balance on a game server with an exact amount, rather than adding to or subtracting from it. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerSetCurrency`
17495
- * @summary Set a player\'s currency balance
17496
- * @param {string} gameServerId
18635
+ * Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
18636
+ * @summary Unlink your own Player
18637
+ * @param {string} domainId
17497
18638
  * @param {string} playerId
17498
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17499
- * @param {*} [options] Override http request option.
17500
- * @throws {RequiredError}
17501
- * @memberof PlayerOnGameServerApi
17502
- */
17503
- playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) {
17504
- return PlayerOnGameServerApiFp(this.configuration)
17505
- .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
17506
- .then((request) => request(this.axios, this.basePath));
17507
- }
17508
- /**
17509
- * Move currency from one player to another on the same game server, deducting from the sender and adding to the receiver in a single operation. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerTransactBetweenPlayers`
17510
- * @summary Transfer currency between two players
17511
- * @param {string} gameServerId
17512
- * @param {string} sender
17513
- * @param {string} receiver
17514
- * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO
17515
18639
  * @param {*} [options] Override http request option.
17516
18640
  * @throws {RequiredError}
17517
- * @memberof PlayerOnGameServerApi
18641
+ * @memberof PlayerPortalApi
17518
18642
  */
17519
- playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options) {
17520
- return PlayerOnGameServerApiFp(this.configuration)
17521
- .playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options)
18643
+ playerPortalControllerUnlinkSelf(domainId, playerId, options) {
18644
+ return PlayerPortalApiFp(this.configuration)
18645
+ .playerPortalControllerUnlinkSelf(domainId, playerId, options)
17522
18646
  .then((request) => request(this.axios, this.basePath));
17523
18647
  }
17524
18648
  }
@@ -23006,38 +24130,6 @@ export const UserApiAxiosParamCreator = function (configuration) {
23006
24130
  options: localVarRequestOptions,
23007
24131
  };
23008
24132
  },
23009
- /**
23010
- * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
23011
- * @summary Link player profile
23012
- * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
23013
- * @param {*} [options] Override http request option.
23014
- * @throws {RequiredError}
23015
- */
23016
- userControllerLinkPlayerProfile: async (linkPlayerUnauthedInputDTO, options = {}) => {
23017
- const localVarPath = `/user/player`;
23018
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
23019
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23020
- let baseOptions;
23021
- if (configuration) {
23022
- baseOptions = configuration.baseOptions;
23023
- }
23024
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
23025
- const localVarHeaderParameter = {};
23026
- const localVarQueryParameter = {};
23027
- // authentication bearerAuth required
23028
- // http bearer authentication required
23029
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
23030
- // authentication domainAuth required
23031
- localVarHeaderParameter['Content-Type'] = 'application/json';
23032
- setSearchParams(localVarUrlObj, localVarQueryParameter);
23033
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23034
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
23035
- localVarRequestOptions.data = serializeDataIfNeeded(linkPlayerUnauthedInputDTO, localVarRequestOptions, configuration);
23036
- return {
23037
- url: toPathString(localVarUrlObj),
23038
- options: localVarRequestOptions,
23039
- };
23040
- },
23041
24133
  /**
23042
24134
  * Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
23043
24135
  * @summary Log in with a username and password
@@ -23397,19 +24489,6 @@ export const UserApiFp = function (configuration) {
23397
24489
  const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerInvite']?.[localVarOperationServerIndex]?.url;
23398
24490
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23399
24491
  },
23400
- /**
23401
- * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
23402
- * @summary Link player profile
23403
- * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
23404
- * @param {*} [options] Override http request option.
23405
- * @throws {RequiredError}
23406
- */
23407
- async userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) {
23408
- const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options);
23409
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23410
- const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerLinkPlayerProfile']?.[localVarOperationServerIndex]?.url;
23411
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23412
- },
23413
24492
  /**
23414
24493
  * Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
23415
24494
  * @summary Log in with a username and password
@@ -23598,18 +24677,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
23598
24677
  userControllerInvite(inviteCreateDTO, options) {
23599
24678
  return localVarFp.userControllerInvite(inviteCreateDTO, options).then((request) => request(axios, basePath));
23600
24679
  },
23601
- /**
23602
- * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
23603
- * @summary Link player profile
23604
- * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
23605
- * @param {*} [options] Override http request option.
23606
- * @throws {RequiredError}
23607
- */
23608
- userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) {
23609
- return localVarFp
23610
- .userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options)
23611
- .then((request) => request(axios, basePath));
23612
- },
23613
24680
  /**
23614
24681
  * Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
23615
24682
  * @summary Log in with a username and password
@@ -23791,19 +24858,6 @@ export class UserApi extends BaseAPI {
23791
24858
  .userControllerInvite(inviteCreateDTO, options)
23792
24859
  .then((request) => request(this.axios, this.basePath));
23793
24860
  }
23794
- /**
23795
- * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
23796
- * @summary Link player profile
23797
- * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
23798
- * @param {*} [options] Override http request option.
23799
- * @throws {RequiredError}
23800
- * @memberof UserApi
23801
- */
23802
- userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) {
23803
- return UserApiFp(this.configuration)
23804
- .userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options)
23805
- .then((request) => request(this.axios, this.basePath));
23806
- }
23807
24861
  /**
23808
24862
  * Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
23809
24863
  * @summary Log in with a username and password