@takaro/apiclient 0.0.0-dev.19a2dfa → 0.0.0-dev.1a17f48

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
@@ -16171,6 +16306,111 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
16171
16306
  options: localVarRequestOptions,
16172
16307
  };
16173
16308
  },
16309
+ /**
16310
+ * 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`
16311
+ * @summary Link a player to a user
16312
+ * @param {string} id
16313
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
16314
+ * @param {*} [options] Override http request option.
16315
+ * @throws {RequiredError}
16316
+ */
16317
+ playerControllerLinkUser: async (id, playerLinkUserInputDTO, options = {}) => {
16318
+ // verify required parameter 'id' is not null or undefined
16319
+ assertParamExists('playerControllerLinkUser', 'id', id);
16320
+ const localVarPath = `/player/{id}/link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16323
+ let baseOptions;
16324
+ if (configuration) {
16325
+ baseOptions = configuration.baseOptions;
16326
+ }
16327
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
16328
+ const localVarHeaderParameter = {};
16329
+ const localVarQueryParameter = {};
16330
+ // authentication bearerAuth required
16331
+ // http bearer authentication required
16332
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16333
+ // authentication domainAuth required
16334
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16335
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16337
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16338
+ localVarRequestOptions.data = serializeDataIfNeeded(playerLinkUserInputDTO, localVarRequestOptions, configuration);
16339
+ return {
16340
+ url: toPathString(localVarUrlObj),
16341
+ options: localVarRequestOptions,
16342
+ };
16343
+ },
16344
+ /**
16345
+ * 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`
16346
+ * @summary Merge a player into another
16347
+ * @param {string} id
16348
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
16349
+ * @param {*} [options] Override http request option.
16350
+ * @throws {RequiredError}
16351
+ */
16352
+ playerControllerMerge: async (id, playerMergeExecuteInputDTO, options = {}) => {
16353
+ // verify required parameter 'id' is not null or undefined
16354
+ assertParamExists('playerControllerMerge', 'id', id);
16355
+ const localVarPath = `/player/{id}/merge`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16356
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16357
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16358
+ let baseOptions;
16359
+ if (configuration) {
16360
+ baseOptions = configuration.baseOptions;
16361
+ }
16362
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
16363
+ const localVarHeaderParameter = {};
16364
+ const localVarQueryParameter = {};
16365
+ // authentication bearerAuth required
16366
+ // http bearer authentication required
16367
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16368
+ // authentication domainAuth required
16369
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16370
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16372
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16373
+ localVarRequestOptions.data = serializeDataIfNeeded(playerMergeExecuteInputDTO, localVarRequestOptions, configuration);
16374
+ return {
16375
+ url: toPathString(localVarUrlObj),
16376
+ options: localVarRequestOptions,
16377
+ };
16378
+ },
16379
+ /**
16380
+ * 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`
16381
+ * @summary Preview merging a player into another
16382
+ * @param {string} id
16383
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
16384
+ * @param {*} [options] Override http request option.
16385
+ * @throws {RequiredError}
16386
+ */
16387
+ playerControllerMergePreview: async (id, playerMergeInputDTO, options = {}) => {
16388
+ // verify required parameter 'id' is not null or undefined
16389
+ assertParamExists('playerControllerMergePreview', 'id', id);
16390
+ const localVarPath = `/player/{id}/merge/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16393
+ let baseOptions;
16394
+ if (configuration) {
16395
+ baseOptions = configuration.baseOptions;
16396
+ }
16397
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
16398
+ const localVarHeaderParameter = {};
16399
+ const localVarQueryParameter = {};
16400
+ // authentication bearerAuth required
16401
+ // http bearer authentication required
16402
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16403
+ // authentication domainAuth required
16404
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16405
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16407
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16408
+ localVarRequestOptions.data = serializeDataIfNeeded(playerMergeInputDTO, localVarRequestOptions, configuration);
16409
+ return {
16410
+ url: toPathString(localVarUrlObj),
16411
+ options: localVarRequestOptions,
16412
+ };
16413
+ },
16174
16414
  /**
16175
16415
  * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16176
16416
  * @summary Remove a role from a player
@@ -16243,6 +16483,38 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
16243
16483
  options: localVarRequestOptions,
16244
16484
  };
16245
16485
  },
16486
+ /**
16487
+ * 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`
16488
+ * @summary Unlink a player from its user
16489
+ * @param {string} id
16490
+ * @param {*} [options] Override http request option.
16491
+ * @throws {RequiredError}
16492
+ */
16493
+ playerControllerUnlinkUser: async (id, options = {}) => {
16494
+ // verify required parameter 'id' is not null or undefined
16495
+ assertParamExists('playerControllerUnlinkUser', 'id', id);
16496
+ const localVarPath = `/player/{id}/link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
16497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16499
+ let baseOptions;
16500
+ if (configuration) {
16501
+ baseOptions = configuration.baseOptions;
16502
+ }
16503
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
16504
+ const localVarHeaderParameter = {};
16505
+ const localVarQueryParameter = {};
16506
+ // authentication bearerAuth required
16507
+ // http bearer authentication required
16508
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
16509
+ // authentication domainAuth required
16510
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16512
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16513
+ return {
16514
+ url: toPathString(localVarUrlObj),
16515
+ options: localVarRequestOptions,
16516
+ };
16517
+ },
16246
16518
  };
16247
16519
  };
16248
16520
  /**
@@ -16398,6 +16670,48 @@ export const PlayerApiFp = function (configuration) {
16398
16670
  const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerGetOne']?.[localVarOperationServerIndex]?.url;
16399
16671
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16400
16672
  },
16673
+ /**
16674
+ * 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`
16675
+ * @summary Link a player to a user
16676
+ * @param {string} id
16677
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
16678
+ * @param {*} [options] Override http request option.
16679
+ * @throws {RequiredError}
16680
+ */
16681
+ async playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
16682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerLinkUser(id, playerLinkUserInputDTO, options);
16683
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16684
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerLinkUser']?.[localVarOperationServerIndex]?.url;
16685
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16686
+ },
16687
+ /**
16688
+ * 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`
16689
+ * @summary Merge a player into another
16690
+ * @param {string} id
16691
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
16692
+ * @param {*} [options] Override http request option.
16693
+ * @throws {RequiredError}
16694
+ */
16695
+ async playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
16696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerMerge(id, playerMergeExecuteInputDTO, options);
16697
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16698
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerMerge']?.[localVarOperationServerIndex]?.url;
16699
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16700
+ },
16701
+ /**
16702
+ * 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`
16703
+ * @summary Preview merging a player into another
16704
+ * @param {string} id
16705
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
16706
+ * @param {*} [options] Override http request option.
16707
+ * @throws {RequiredError}
16708
+ */
16709
+ async playerControllerMergePreview(id, playerMergeInputDTO, options) {
16710
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerMergePreview(id, playerMergeInputDTO, options);
16711
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16712
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerMergePreview']?.[localVarOperationServerIndex]?.url;
16713
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16714
+ },
16401
16715
  /**
16402
16716
  * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16403
16717
  * @summary Remove a role from a player
@@ -16426,6 +16740,19 @@ export const PlayerApiFp = function (configuration) {
16426
16740
  const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerSearch']?.[localVarOperationServerIndex]?.url;
16427
16741
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16428
16742
  },
16743
+ /**
16744
+ * 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`
16745
+ * @summary Unlink a player from its user
16746
+ * @param {string} id
16747
+ * @param {*} [options] Override http request option.
16748
+ * @throws {RequiredError}
16749
+ */
16750
+ async playerControllerUnlinkUser(id, options) {
16751
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerUnlinkUser(id, options);
16752
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16753
+ const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerUnlinkUser']?.[localVarOperationServerIndex]?.url;
16754
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16755
+ },
16429
16756
  };
16430
16757
  };
16431
16758
  /**
@@ -16554,6 +16881,45 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
16554
16881
  playerControllerGetOne(id, options) {
16555
16882
  return localVarFp.playerControllerGetOne(id, options).then((request) => request(axios, basePath));
16556
16883
  },
16884
+ /**
16885
+ * 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`
16886
+ * @summary Link a player to a user
16887
+ * @param {string} id
16888
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
16889
+ * @param {*} [options] Override http request option.
16890
+ * @throws {RequiredError}
16891
+ */
16892
+ playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
16893
+ return localVarFp
16894
+ .playerControllerLinkUser(id, playerLinkUserInputDTO, options)
16895
+ .then((request) => request(axios, basePath));
16896
+ },
16897
+ /**
16898
+ * 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`
16899
+ * @summary Merge a player into another
16900
+ * @param {string} id
16901
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
16902
+ * @param {*} [options] Override http request option.
16903
+ * @throws {RequiredError}
16904
+ */
16905
+ playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
16906
+ return localVarFp
16907
+ .playerControllerMerge(id, playerMergeExecuteInputDTO, options)
16908
+ .then((request) => request(axios, basePath));
16909
+ },
16910
+ /**
16911
+ * 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`
16912
+ * @summary Preview merging a player into another
16913
+ * @param {string} id
16914
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
16915
+ * @param {*} [options] Override http request option.
16916
+ * @throws {RequiredError}
16917
+ */
16918
+ playerControllerMergePreview(id, playerMergeInputDTO, options) {
16919
+ return localVarFp
16920
+ .playerControllerMergePreview(id, playerMergeInputDTO, options)
16921
+ .then((request) => request(axios, basePath));
16922
+ },
16557
16923
  /**
16558
16924
  * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16559
16925
  * @summary Remove a role from a player
@@ -16580,6 +16946,16 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
16580
16946
  .playerControllerSearch(playerSearchInputDTO, options)
16581
16947
  .then((request) => request(axios, basePath));
16582
16948
  },
16949
+ /**
16950
+ * 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`
16951
+ * @summary Unlink a player from its user
16952
+ * @param {string} id
16953
+ * @param {*} [options] Override http request option.
16954
+ * @throws {RequiredError}
16955
+ */
16956
+ playerControllerUnlinkUser(id, options) {
16957
+ return localVarFp.playerControllerUnlinkUser(id, options).then((request) => request(axios, basePath));
16958
+ },
16583
16959
  };
16584
16960
  };
16585
16961
  /**
@@ -16735,6 +17111,48 @@ export class PlayerApi extends BaseAPI {
16735
17111
  .playerControllerGetOne(id, options)
16736
17112
  .then((request) => request(this.axios, this.basePath));
16737
17113
  }
17114
+ /**
17115
+ * 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`
17116
+ * @summary Link a player to a user
17117
+ * @param {string} id
17118
+ * @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
17119
+ * @param {*} [options] Override http request option.
17120
+ * @throws {RequiredError}
17121
+ * @memberof PlayerApi
17122
+ */
17123
+ playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
17124
+ return PlayerApiFp(this.configuration)
17125
+ .playerControllerLinkUser(id, playerLinkUserInputDTO, options)
17126
+ .then((request) => request(this.axios, this.basePath));
17127
+ }
17128
+ /**
17129
+ * 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`
17130
+ * @summary Merge a player into another
17131
+ * @param {string} id
17132
+ * @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
17133
+ * @param {*} [options] Override http request option.
17134
+ * @throws {RequiredError}
17135
+ * @memberof PlayerApi
17136
+ */
17137
+ playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
17138
+ return PlayerApiFp(this.configuration)
17139
+ .playerControllerMerge(id, playerMergeExecuteInputDTO, options)
17140
+ .then((request) => request(this.axios, this.basePath));
17141
+ }
17142
+ /**
17143
+ * 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`
17144
+ * @summary Preview merging a player into another
17145
+ * @param {string} id
17146
+ * @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
17147
+ * @param {*} [options] Override http request option.
17148
+ * @throws {RequiredError}
17149
+ * @memberof PlayerApi
17150
+ */
17151
+ playerControllerMergePreview(id, playerMergeInputDTO, options) {
17152
+ return PlayerApiFp(this.configuration)
17153
+ .playerControllerMergePreview(id, playerMergeInputDTO, options)
17154
+ .then((request) => request(this.axios, this.basePath));
17155
+ }
16738
17156
  /**
16739
17157
  * Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
16740
17158
  * @summary Remove a role from a player
@@ -16763,6 +17181,19 @@ export class PlayerApi extends BaseAPI {
16763
17181
  .playerControllerSearch(playerSearchInputDTO, options)
16764
17182
  .then((request) => request(this.axios, this.basePath));
16765
17183
  }
17184
+ /**
17185
+ * 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`
17186
+ * @summary Unlink a player from its user
17187
+ * @param {string} id
17188
+ * @param {*} [options] Override http request option.
17189
+ * @throws {RequiredError}
17190
+ * @memberof PlayerApi
17191
+ */
17192
+ playerControllerUnlinkUser(id, options) {
17193
+ return PlayerApiFp(this.configuration)
17194
+ .playerControllerUnlinkUser(id, options)
17195
+ .then((request) => request(this.axios, this.basePath));
17196
+ }
16766
17197
  }
16767
17198
  /**
16768
17199
  * PlayerOnGameServerApi - axios parameter creator
@@ -17523,61 +17954,61 @@ export class PlayerOnGameServerApi extends BaseAPI {
17523
17954
  }
17524
17955
  }
17525
17956
  /**
17526
- * RegistryApi - axios parameter creator
17957
+ * PlayerPortalApi - axios parameter creator
17527
17958
  * @export
17528
17959
  */
17529
- export const RegistryApiAxiosParamCreator = function (configuration) {
17960
+ export const PlayerPortalApiAxiosParamCreator = function (configuration) {
17530
17961
  return {
17531
17962
  /**
17532
- * Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
17533
- * @summary Install a module from a registry
17534
- * @param {string} id
17535
- * @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
17963
+ * 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`
17964
+ * @summary Dismiss the displaced notice
17965
+ * @param {string} domainId
17536
17966
  * @param {*} [options] Override http request option.
17537
17967
  * @throws {RequiredError}
17538
17968
  */
17539
- registryControllerInstall: async (id, registryInstallBody, options = {}) => {
17540
- // verify required parameter 'id' is not null or undefined
17541
- assertParamExists('registryControllerInstall', 'id', id);
17542
- const localVarPath = `/registry/{id}/install`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
17969
+ playerPortalControllerDismissDisplacedNotice: async (domainId, options = {}) => {
17970
+ // verify required parameter 'domainId' is not null or undefined
17971
+ assertParamExists('playerPortalControllerDismissDisplacedNotice', 'domainId', domainId);
17972
+ const localVarPath = `/player-portal/{domainId}/displaced-notice`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
17543
17973
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17544
17974
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17545
17975
  let baseOptions;
17546
17976
  if (configuration) {
17547
17977
  baseOptions = configuration.baseOptions;
17548
17978
  }
17549
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
17979
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
17550
17980
  const localVarHeaderParameter = {};
17551
17981
  const localVarQueryParameter = {};
17552
17982
  // authentication bearerAuth required
17553
17983
  // http bearer authentication required
17554
17984
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
17555
17985
  // authentication domainAuth required
17556
- localVarHeaderParameter['Content-Type'] = 'application/json';
17557
17986
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17558
17987
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17559
17988
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
17560
- localVarRequestOptions.data = serializeDataIfNeeded(registryInstallBody, localVarRequestOptions, configuration);
17561
17989
  return {
17562
17990
  url: toPathString(localVarUrlObj),
17563
17991
  options: localVarRequestOptions,
17564
17992
  };
17565
17993
  },
17566
17994
  /**
17567
- * List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
17568
- * @summary List subscribed registries
17995
+ * 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`
17996
+ * @summary Enter a Domain\'s Player Portal
17997
+ * @param {string} domainId
17569
17998
  * @param {*} [options] Override http request option.
17570
17999
  * @throws {RequiredError}
17571
18000
  */
17572
- registryControllerList: async (options = {}) => {
17573
- const localVarPath = `/registry`;
18001
+ playerPortalControllerEnter: async (domainId, options = {}) => {
18002
+ // verify required parameter 'domainId' is not null or undefined
18003
+ assertParamExists('playerPortalControllerEnter', 'domainId', domainId);
18004
+ const localVarPath = `/player-portal/{domainId}/enter`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
17574
18005
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17575
18006
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17576
18007
  let baseOptions;
17577
18008
  if (configuration) {
17578
18009
  baseOptions = configuration.baseOptions;
17579
18010
  }
17580
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18011
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
17581
18012
  const localVarHeaderParameter = {};
17582
18013
  const localVarQueryParameter = {};
17583
18014
  // authentication bearerAuth required
@@ -17593,9 +18024,628 @@ export const RegistryApiAxiosParamCreator = function (configuration) {
17593
18024
  };
17594
18025
  },
17595
18026
  /**
17596
- * Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
17597
- * @summary Refresh registry manifest
17598
- * @param {string} id
18027
+ * 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`
18028
+ * @summary Inspect a game-issued Link Code
18029
+ * @param {string} domainId
18030
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18031
+ * @param {*} [options] Override http request option.
18032
+ * @throws {RequiredError}
18033
+ */
18034
+ playerPortalControllerInspectLinkCode: async (domainId, playerPortalLinkCodeInputDTO, options = {}) => {
18035
+ // verify required parameter 'domainId' is not null or undefined
18036
+ assertParamExists('playerPortalControllerInspectLinkCode', 'domainId', domainId);
18037
+ const localVarPath = `/player-portal/{domainId}/link-code/inspect`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18040
+ let baseOptions;
18041
+ if (configuration) {
18042
+ baseOptions = configuration.baseOptions;
18043
+ }
18044
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18045
+ const localVarHeaderParameter = {};
18046
+ const localVarQueryParameter = {};
18047
+ // authentication bearerAuth required
18048
+ // http bearer authentication required
18049
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18050
+ // authentication domainAuth required
18051
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18052
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18053
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18054
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18055
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
18056
+ return {
18057
+ url: toPathString(localVarUrlObj),
18058
+ options: localVarRequestOptions,
18059
+ };
18060
+ },
18061
+ /**
18062
+ * 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`
18063
+ * @summary Get a Link Code to type in game
18064
+ * @param {string} domainId
18065
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
18066
+ * @param {*} [options] Override http request option.
18067
+ * @throws {RequiredError}
18068
+ */
18069
+ playerPortalControllerIssuePortalLinkCode: async (domainId, playerPortalIssueLinkCodeInputDTO, options = {}) => {
18070
+ // verify required parameter 'domainId' is not null or undefined
18071
+ assertParamExists('playerPortalControllerIssuePortalLinkCode', 'domainId', domainId);
18072
+ const localVarPath = `/player-portal/{domainId}/portal-link-code`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18073
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18074
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18075
+ let baseOptions;
18076
+ if (configuration) {
18077
+ baseOptions = configuration.baseOptions;
18078
+ }
18079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18080
+ const localVarHeaderParameter = {};
18081
+ const localVarQueryParameter = {};
18082
+ // authentication bearerAuth required
18083
+ // http bearer authentication required
18084
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18085
+ // authentication domainAuth required
18086
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18087
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18088
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18089
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18090
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalIssueLinkCodeInputDTO, localVarRequestOptions, configuration);
18091
+ return {
18092
+ url: toPathString(localVarUrlObj),
18093
+ options: localVarRequestOptions,
18094
+ };
18095
+ },
18096
+ /**
18097
+ * 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`
18098
+ * @summary Redeem a game-issued Link Code
18099
+ * @param {string} domainId
18100
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18101
+ * @param {*} [options] Override http request option.
18102
+ * @throws {RequiredError}
18103
+ */
18104
+ playerPortalControllerRedeemLinkCode: async (domainId, playerPortalLinkCodeInputDTO, options = {}) => {
18105
+ // verify required parameter 'domainId' is not null or undefined
18106
+ assertParamExists('playerPortalControllerRedeemLinkCode', 'domainId', domainId);
18107
+ const localVarPath = `/player-portal/{domainId}/link-code/redeem`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18109
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18110
+ let baseOptions;
18111
+ if (configuration) {
18112
+ baseOptions = configuration.baseOptions;
18113
+ }
18114
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18115
+ const localVarHeaderParameter = {};
18116
+ const localVarQueryParameter = {};
18117
+ // authentication bearerAuth required
18118
+ // http bearer authentication required
18119
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18120
+ // authentication domainAuth required
18121
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18124
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18125
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
18126
+ return {
18127
+ url: toPathString(localVarUrlObj),
18128
+ options: localVarRequestOptions,
18129
+ };
18130
+ },
18131
+ /**
18132
+ * 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`
18133
+ * @summary Find a game-issued Link Code\'s Player Portal
18134
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18135
+ * @param {*} [options] Override http request option.
18136
+ * @throws {RequiredError}
18137
+ */
18138
+ playerPortalControllerResolveLinkCode: async (playerPortalLinkCodeInputDTO, options = {}) => {
18139
+ const localVarPath = `/player-portal/link-code/resolve`;
18140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18142
+ let baseOptions;
18143
+ if (configuration) {
18144
+ baseOptions = configuration.baseOptions;
18145
+ }
18146
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18147
+ const localVarHeaderParameter = {};
18148
+ const localVarQueryParameter = {};
18149
+ // authentication bearerAuth required
18150
+ // http bearer authentication required
18151
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18152
+ // authentication domainAuth required
18153
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18156
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18157
+ localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
18158
+ return {
18159
+ url: toPathString(localVarUrlObj),
18160
+ options: localVarRequestOptions,
18161
+ };
18162
+ },
18163
+ /**
18164
+ * 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`
18165
+ * @summary Get a Domain\'s Player Portal state
18166
+ * @param {string} domainId
18167
+ * @param {*} [options] Override http request option.
18168
+ * @throws {RequiredError}
18169
+ */
18170
+ playerPortalControllerState: async (domainId, options = {}) => {
18171
+ // verify required parameter 'domainId' is not null or undefined
18172
+ assertParamExists('playerPortalControllerState', 'domainId', domainId);
18173
+ const localVarPath = `/player-portal/{domainId}`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
18174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18176
+ let baseOptions;
18177
+ if (configuration) {
18178
+ baseOptions = configuration.baseOptions;
18179
+ }
18180
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18181
+ const localVarHeaderParameter = {};
18182
+ const localVarQueryParameter = {};
18183
+ // authentication bearerAuth required
18184
+ // http bearer authentication required
18185
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18186
+ // authentication domainAuth required
18187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18189
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18190
+ return {
18191
+ url: toPathString(localVarUrlObj),
18192
+ options: localVarRequestOptions,
18193
+ };
18194
+ },
18195
+ /**
18196
+ * 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`
18197
+ * @summary Unlink your own Player
18198
+ * @param {string} domainId
18199
+ * @param {string} playerId
18200
+ * @param {*} [options] Override http request option.
18201
+ * @throws {RequiredError}
18202
+ */
18203
+ playerPortalControllerUnlinkSelf: async (domainId, playerId, options = {}) => {
18204
+ // verify required parameter 'domainId' is not null or undefined
18205
+ assertParamExists('playerPortalControllerUnlinkSelf', 'domainId', domainId);
18206
+ // verify required parameter 'playerId' is not null or undefined
18207
+ assertParamExists('playerPortalControllerUnlinkSelf', 'playerId', playerId);
18208
+ const localVarPath = `/player-portal/{domainId}/link/{playerId}`
18209
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
18210
+ .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId)));
18211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18213
+ let baseOptions;
18214
+ if (configuration) {
18215
+ baseOptions = configuration.baseOptions;
18216
+ }
18217
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
18218
+ const localVarHeaderParameter = {};
18219
+ const localVarQueryParameter = {};
18220
+ // authentication bearerAuth required
18221
+ // http bearer authentication required
18222
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18223
+ // authentication domainAuth required
18224
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18225
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18226
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18227
+ return {
18228
+ url: toPathString(localVarUrlObj),
18229
+ options: localVarRequestOptions,
18230
+ };
18231
+ },
18232
+ };
18233
+ };
18234
+ /**
18235
+ * PlayerPortalApi - functional programming interface
18236
+ * @export
18237
+ */
18238
+ export const PlayerPortalApiFp = function (configuration) {
18239
+ const localVarAxiosParamCreator = PlayerPortalApiAxiosParamCreator(configuration);
18240
+ return {
18241
+ /**
18242
+ * 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`
18243
+ * @summary Dismiss the displaced notice
18244
+ * @param {string} domainId
18245
+ * @param {*} [options] Override http request option.
18246
+ * @throws {RequiredError}
18247
+ */
18248
+ async playerPortalControllerDismissDisplacedNotice(domainId, options) {
18249
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerDismissDisplacedNotice(domainId, options);
18250
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18251
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerDismissDisplacedNotice']?.[localVarOperationServerIndex]?.url;
18252
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18253
+ },
18254
+ /**
18255
+ * 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`
18256
+ * @summary Enter a Domain\'s Player Portal
18257
+ * @param {string} domainId
18258
+ * @param {*} [options] Override http request option.
18259
+ * @throws {RequiredError}
18260
+ */
18261
+ async playerPortalControllerEnter(domainId, options) {
18262
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerEnter(domainId, options);
18263
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18264
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerEnter']?.[localVarOperationServerIndex]?.url;
18265
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18266
+ },
18267
+ /**
18268
+ * 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`
18269
+ * @summary Inspect a game-issued Link Code
18270
+ * @param {string} domainId
18271
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18272
+ * @param {*} [options] Override http request option.
18273
+ * @throws {RequiredError}
18274
+ */
18275
+ async playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18276
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options);
18277
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18278
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerInspectLinkCode']?.[localVarOperationServerIndex]
18279
+ ?.url;
18280
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18281
+ },
18282
+ /**
18283
+ * 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`
18284
+ * @summary Get a Link Code to type in game
18285
+ * @param {string} domainId
18286
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
18287
+ * @param {*} [options] Override http request option.
18288
+ * @throws {RequiredError}
18289
+ */
18290
+ async playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
18291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options);
18292
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18293
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerIssuePortalLinkCode']?.[localVarOperationServerIndex]
18294
+ ?.url;
18295
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18296
+ },
18297
+ /**
18298
+ * 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`
18299
+ * @summary Redeem a game-issued Link Code
18300
+ * @param {string} domainId
18301
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18302
+ * @param {*} [options] Override http request option.
18303
+ * @throws {RequiredError}
18304
+ */
18305
+ async playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options);
18307
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18308
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerRedeemLinkCode']?.[localVarOperationServerIndex]?.url;
18309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18310
+ },
18311
+ /**
18312
+ * 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`
18313
+ * @summary Find a game-issued Link Code\'s Player Portal
18314
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18315
+ * @param {*} [options] Override http request option.
18316
+ * @throws {RequiredError}
18317
+ */
18318
+ async playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
18319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options);
18320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18321
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerResolveLinkCode']?.[localVarOperationServerIndex]
18322
+ ?.url;
18323
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18324
+ },
18325
+ /**
18326
+ * 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`
18327
+ * @summary Get a Domain\'s Player Portal state
18328
+ * @param {string} domainId
18329
+ * @param {*} [options] Override http request option.
18330
+ * @throws {RequiredError}
18331
+ */
18332
+ async playerPortalControllerState(domainId, options) {
18333
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerState(domainId, options);
18334
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18335
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerState']?.[localVarOperationServerIndex]?.url;
18336
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18337
+ },
18338
+ /**
18339
+ * 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`
18340
+ * @summary Unlink your own Player
18341
+ * @param {string} domainId
18342
+ * @param {string} playerId
18343
+ * @param {*} [options] Override http request option.
18344
+ * @throws {RequiredError}
18345
+ */
18346
+ async playerPortalControllerUnlinkSelf(domainId, playerId, options) {
18347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerUnlinkSelf(domainId, playerId, options);
18348
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18349
+ const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerUnlinkSelf']?.[localVarOperationServerIndex]?.url;
18350
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18351
+ },
18352
+ };
18353
+ };
18354
+ /**
18355
+ * PlayerPortalApi - factory interface
18356
+ * @export
18357
+ */
18358
+ export const PlayerPortalApiFactory = function (configuration, basePath, axios) {
18359
+ const localVarFp = PlayerPortalApiFp(configuration);
18360
+ return {
18361
+ /**
18362
+ * 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`
18363
+ * @summary Dismiss the displaced notice
18364
+ * @param {string} domainId
18365
+ * @param {*} [options] Override http request option.
18366
+ * @throws {RequiredError}
18367
+ */
18368
+ playerPortalControllerDismissDisplacedNotice(domainId, options) {
18369
+ return localVarFp
18370
+ .playerPortalControllerDismissDisplacedNotice(domainId, options)
18371
+ .then((request) => request(axios, basePath));
18372
+ },
18373
+ /**
18374
+ * 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`
18375
+ * @summary Enter a Domain\'s Player Portal
18376
+ * @param {string} domainId
18377
+ * @param {*} [options] Override http request option.
18378
+ * @throws {RequiredError}
18379
+ */
18380
+ playerPortalControllerEnter(domainId, options) {
18381
+ return localVarFp.playerPortalControllerEnter(domainId, options).then((request) => request(axios, basePath));
18382
+ },
18383
+ /**
18384
+ * 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`
18385
+ * @summary Inspect a game-issued Link Code
18386
+ * @param {string} domainId
18387
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18388
+ * @param {*} [options] Override http request option.
18389
+ * @throws {RequiredError}
18390
+ */
18391
+ playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18392
+ return localVarFp
18393
+ .playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
18394
+ .then((request) => request(axios, basePath));
18395
+ },
18396
+ /**
18397
+ * 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`
18398
+ * @summary Get a Link Code to type in game
18399
+ * @param {string} domainId
18400
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
18401
+ * @param {*} [options] Override http request option.
18402
+ * @throws {RequiredError}
18403
+ */
18404
+ playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
18405
+ return localVarFp
18406
+ .playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options)
18407
+ .then((request) => request(axios, basePath));
18408
+ },
18409
+ /**
18410
+ * 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`
18411
+ * @summary Redeem a game-issued Link Code
18412
+ * @param {string} domainId
18413
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18414
+ * @param {*} [options] Override http request option.
18415
+ * @throws {RequiredError}
18416
+ */
18417
+ playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18418
+ return localVarFp
18419
+ .playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
18420
+ .then((request) => request(axios, basePath));
18421
+ },
18422
+ /**
18423
+ * 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`
18424
+ * @summary Find a game-issued Link Code\'s Player Portal
18425
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18426
+ * @param {*} [options] Override http request option.
18427
+ * @throws {RequiredError}
18428
+ */
18429
+ playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
18430
+ return localVarFp
18431
+ .playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options)
18432
+ .then((request) => request(axios, basePath));
18433
+ },
18434
+ /**
18435
+ * 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`
18436
+ * @summary Get a Domain\'s Player Portal state
18437
+ * @param {string} domainId
18438
+ * @param {*} [options] Override http request option.
18439
+ * @throws {RequiredError}
18440
+ */
18441
+ playerPortalControllerState(domainId, options) {
18442
+ return localVarFp.playerPortalControllerState(domainId, options).then((request) => request(axios, basePath));
18443
+ },
18444
+ /**
18445
+ * 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`
18446
+ * @summary Unlink your own Player
18447
+ * @param {string} domainId
18448
+ * @param {string} playerId
18449
+ * @param {*} [options] Override http request option.
18450
+ * @throws {RequiredError}
18451
+ */
18452
+ playerPortalControllerUnlinkSelf(domainId, playerId, options) {
18453
+ return localVarFp
18454
+ .playerPortalControllerUnlinkSelf(domainId, playerId, options)
18455
+ .then((request) => request(axios, basePath));
18456
+ },
18457
+ };
18458
+ };
18459
+ /**
18460
+ * PlayerPortalApi - object-oriented interface
18461
+ * @export
18462
+ * @class PlayerPortalApi
18463
+ * @extends {BaseAPI}
18464
+ */
18465
+ export class PlayerPortalApi extends BaseAPI {
18466
+ /**
18467
+ * 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`
18468
+ * @summary Dismiss the displaced notice
18469
+ * @param {string} domainId
18470
+ * @param {*} [options] Override http request option.
18471
+ * @throws {RequiredError}
18472
+ * @memberof PlayerPortalApi
18473
+ */
18474
+ playerPortalControllerDismissDisplacedNotice(domainId, options) {
18475
+ return PlayerPortalApiFp(this.configuration)
18476
+ .playerPortalControllerDismissDisplacedNotice(domainId, options)
18477
+ .then((request) => request(this.axios, this.basePath));
18478
+ }
18479
+ /**
18480
+ * 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`
18481
+ * @summary Enter a Domain\'s Player Portal
18482
+ * @param {string} domainId
18483
+ * @param {*} [options] Override http request option.
18484
+ * @throws {RequiredError}
18485
+ * @memberof PlayerPortalApi
18486
+ */
18487
+ playerPortalControllerEnter(domainId, options) {
18488
+ return PlayerPortalApiFp(this.configuration)
18489
+ .playerPortalControllerEnter(domainId, options)
18490
+ .then((request) => request(this.axios, this.basePath));
18491
+ }
18492
+ /**
18493
+ * 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`
18494
+ * @summary Inspect a game-issued Link Code
18495
+ * @param {string} domainId
18496
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18497
+ * @param {*} [options] Override http request option.
18498
+ * @throws {RequiredError}
18499
+ * @memberof PlayerPortalApi
18500
+ */
18501
+ playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18502
+ return PlayerPortalApiFp(this.configuration)
18503
+ .playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
18504
+ .then((request) => request(this.axios, this.basePath));
18505
+ }
18506
+ /**
18507
+ * 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`
18508
+ * @summary Get a Link Code to type in game
18509
+ * @param {string} domainId
18510
+ * @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
18511
+ * @param {*} [options] Override http request option.
18512
+ * @throws {RequiredError}
18513
+ * @memberof PlayerPortalApi
18514
+ */
18515
+ playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
18516
+ return PlayerPortalApiFp(this.configuration)
18517
+ .playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options)
18518
+ .then((request) => request(this.axios, this.basePath));
18519
+ }
18520
+ /**
18521
+ * 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`
18522
+ * @summary Redeem a game-issued Link Code
18523
+ * @param {string} domainId
18524
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18525
+ * @param {*} [options] Override http request option.
18526
+ * @throws {RequiredError}
18527
+ * @memberof PlayerPortalApi
18528
+ */
18529
+ playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
18530
+ return PlayerPortalApiFp(this.configuration)
18531
+ .playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
18532
+ .then((request) => request(this.axios, this.basePath));
18533
+ }
18534
+ /**
18535
+ * 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`
18536
+ * @summary Find a game-issued Link Code\'s Player Portal
18537
+ * @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
18538
+ * @param {*} [options] Override http request option.
18539
+ * @throws {RequiredError}
18540
+ * @memberof PlayerPortalApi
18541
+ */
18542
+ playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
18543
+ return PlayerPortalApiFp(this.configuration)
18544
+ .playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options)
18545
+ .then((request) => request(this.axios, this.basePath));
18546
+ }
18547
+ /**
18548
+ * 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`
18549
+ * @summary Get a Domain\'s Player Portal state
18550
+ * @param {string} domainId
18551
+ * @param {*} [options] Override http request option.
18552
+ * @throws {RequiredError}
18553
+ * @memberof PlayerPortalApi
18554
+ */
18555
+ playerPortalControllerState(domainId, options) {
18556
+ return PlayerPortalApiFp(this.configuration)
18557
+ .playerPortalControllerState(domainId, options)
18558
+ .then((request) => request(this.axios, this.basePath));
18559
+ }
18560
+ /**
18561
+ * 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`
18562
+ * @summary Unlink your own Player
18563
+ * @param {string} domainId
18564
+ * @param {string} playerId
18565
+ * @param {*} [options] Override http request option.
18566
+ * @throws {RequiredError}
18567
+ * @memberof PlayerPortalApi
18568
+ */
18569
+ playerPortalControllerUnlinkSelf(domainId, playerId, options) {
18570
+ return PlayerPortalApiFp(this.configuration)
18571
+ .playerPortalControllerUnlinkSelf(domainId, playerId, options)
18572
+ .then((request) => request(this.axios, this.basePath));
18573
+ }
18574
+ }
18575
+ /**
18576
+ * RegistryApi - axios parameter creator
18577
+ * @export
18578
+ */
18579
+ export const RegistryApiAxiosParamCreator = function (configuration) {
18580
+ return {
18581
+ /**
18582
+ * Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
18583
+ * @summary Install a module from a registry
18584
+ * @param {string} id
18585
+ * @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
18586
+ * @param {*} [options] Override http request option.
18587
+ * @throws {RequiredError}
18588
+ */
18589
+ registryControllerInstall: async (id, registryInstallBody, options = {}) => {
18590
+ // verify required parameter 'id' is not null or undefined
18591
+ assertParamExists('registryControllerInstall', 'id', id);
18592
+ const localVarPath = `/registry/{id}/install`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
18593
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18594
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18595
+ let baseOptions;
18596
+ if (configuration) {
18597
+ baseOptions = configuration.baseOptions;
18598
+ }
18599
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18600
+ const localVarHeaderParameter = {};
18601
+ const localVarQueryParameter = {};
18602
+ // authentication bearerAuth required
18603
+ // http bearer authentication required
18604
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18605
+ // authentication domainAuth required
18606
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18607
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18608
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18609
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18610
+ localVarRequestOptions.data = serializeDataIfNeeded(registryInstallBody, localVarRequestOptions, configuration);
18611
+ return {
18612
+ url: toPathString(localVarUrlObj),
18613
+ options: localVarRequestOptions,
18614
+ };
18615
+ },
18616
+ /**
18617
+ * List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
18618
+ * @summary List subscribed registries
18619
+ * @param {*} [options] Override http request option.
18620
+ * @throws {RequiredError}
18621
+ */
18622
+ registryControllerList: async (options = {}) => {
18623
+ const localVarPath = `/registry`;
18624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18625
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18626
+ let baseOptions;
18627
+ if (configuration) {
18628
+ baseOptions = configuration.baseOptions;
18629
+ }
18630
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18631
+ const localVarHeaderParameter = {};
18632
+ const localVarQueryParameter = {};
18633
+ // authentication bearerAuth required
18634
+ // http bearer authentication required
18635
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
18636
+ // authentication domainAuth required
18637
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18639
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18640
+ return {
18641
+ url: toPathString(localVarUrlObj),
18642
+ options: localVarRequestOptions,
18643
+ };
18644
+ },
18645
+ /**
18646
+ * Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
18647
+ * @summary Refresh registry manifest
18648
+ * @param {string} id
17599
18649
  * @param {*} [options] Override http request option.
17600
18650
  * @throws {RequiredError}
17601
18651
  */
@@ -23006,38 +24056,6 @@ export const UserApiAxiosParamCreator = function (configuration) {
23006
24056
  options: localVarRequestOptions,
23007
24057
  };
23008
24058
  },
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
24059
  /**
23042
24060
  * 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
24061
  * @summary Log in with a username and password
@@ -23397,19 +24415,6 @@ export const UserApiFp = function (configuration) {
23397
24415
  const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerInvite']?.[localVarOperationServerIndex]?.url;
23398
24416
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23399
24417
  },
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
24418
  /**
23414
24419
  * 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
24420
  * @summary Log in with a username and password
@@ -23598,18 +24603,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
23598
24603
  userControllerInvite(inviteCreateDTO, options) {
23599
24604
  return localVarFp.userControllerInvite(inviteCreateDTO, options).then((request) => request(axios, basePath));
23600
24605
  },
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
24606
  /**
23614
24607
  * 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
24608
  * @summary Log in with a username and password
@@ -23791,19 +24784,6 @@ export class UserApi extends BaseAPI {
23791
24784
  .userControllerInvite(inviteCreateDTO, options)
23792
24785
  .then((request) => request(this.axios, this.basePath));
23793
24786
  }
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
24787
  /**
23808
24788
  * 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
24789
  * @summary Log in with a username and password