@takaro/apiclient 0.0.0-dev.eae51e8 → 0.0.0-dev.ec22120

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.
@@ -168,6 +168,23 @@ export const CommandSearchInputDTOSortDirectionEnum = {
168
168
  Asc: 'asc',
169
169
  Desc: 'desc',
170
170
  };
171
+ export const ConnectorMigrationClaimOutputDTOOutcomeEnum = {
172
+ Claimed: 'claimed',
173
+ Refused: 'refused',
174
+ None: 'none',
175
+ };
176
+ export const ConnectorMigrationOutputDTOStatusEnum = {
177
+ Pending: 'pending',
178
+ Completed: 'completed',
179
+ Cancelled: 'cancelled',
180
+ Reverted: 'reverted',
181
+ };
182
+ export const ConnectorMigrationOutputDTOLegacyTypeEnum = {
183
+ Sevendaystodie: 'SEVENDAYSTODIE',
184
+ Rust: 'RUST',
185
+ Generic: 'GENERIC',
186
+ Mock: 'MOCK',
187
+ };
171
188
  export const CronJobSearchInputDTOExtendEnum = {
172
189
  Module: 'module',
173
190
  GameServer: 'gameServer',
@@ -286,6 +303,10 @@ export const EventCreateDTOEventNameEnum = {
286
303
  DomainCreated: 'domain-created',
287
304
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
288
305
  DomainPlanChanged: 'domain-plan-changed',
306
+ ConnectorMigrationStarted: 'connector-migration-started',
307
+ ConnectorMigrationCompleted: 'connector-migration-completed',
308
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
309
+ ConnectorMigrationReverted: 'connector-migration-reverted',
289
310
  DiscordGuildEnabled: 'discord-guild-enabled',
290
311
  ItemsGiven: 'items-given',
291
312
  PlayerConnected: 'player-connected',
@@ -341,6 +362,10 @@ export const EventExploreFiltersDTOEventNameEnum = {
341
362
  DomainCreated: 'domain-created',
342
363
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
343
364
  DomainPlanChanged: 'domain-plan-changed',
365
+ ConnectorMigrationStarted: 'connector-migration-started',
366
+ ConnectorMigrationCompleted: 'connector-migration-completed',
367
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
368
+ ConnectorMigrationReverted: 'connector-migration-reverted',
344
369
  DiscordGuildEnabled: 'discord-guild-enabled',
345
370
  ItemsGiven: 'items-given',
346
371
  PlayerConnected: 'player-connected',
@@ -396,6 +421,10 @@ export const EventOutputDTOEventNameEnum = {
396
421
  DomainCreated: 'domain-created',
397
422
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
398
423
  DomainPlanChanged: 'domain-plan-changed',
424
+ ConnectorMigrationStarted: 'connector-migration-started',
425
+ ConnectorMigrationCompleted: 'connector-migration-completed',
426
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
427
+ ConnectorMigrationReverted: 'connector-migration-reverted',
399
428
  DiscordGuildEnabled: 'discord-guild-enabled',
400
429
  ItemsGiven: 'items-given',
401
430
  PlayerConnected: 'player-connected',
@@ -451,6 +480,10 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
451
480
  DomainCreated: 'domain-created',
452
481
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
453
482
  DomainPlanChanged: 'domain-plan-changed',
483
+ ConnectorMigrationStarted: 'connector-migration-started',
484
+ ConnectorMigrationCompleted: 'connector-migration-completed',
485
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
486
+ ConnectorMigrationReverted: 'connector-migration-reverted',
454
487
  DiscordGuildEnabled: 'discord-guild-enabled',
455
488
  ItemsGiven: 'items-given',
456
489
  PlayerConnected: 'player-connected',
@@ -549,6 +582,7 @@ export const GetJobInputDTOTypeEnum = {
549
582
  EmitRateLimitSummary: 'emitRateLimitSummary',
550
583
  CleanRevokedApiKeys: 'cleanRevokedApiKeys',
551
584
  CleanExecutionClaims: 'cleanExecutionClaims',
585
+ CleanConnectorMigrations: 'cleanConnectorMigrations',
552
586
  };
553
587
  export const GetSettingsInputKeysEnum = {
554
588
  CommandPrefix: 'commandPrefix',
@@ -627,6 +661,10 @@ export const HookCreateDTOEventTypeEnum = {
627
661
  DomainCreated: 'domain-created',
628
662
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
629
663
  DomainPlanChanged: 'domain-plan-changed',
664
+ ConnectorMigrationStarted: 'connector-migration-started',
665
+ ConnectorMigrationCompleted: 'connector-migration-completed',
666
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
667
+ ConnectorMigrationReverted: 'connector-migration-reverted',
630
668
  DiscordGuildEnabled: 'discord-guild-enabled',
631
669
  ItemsGiven: 'items-given',
632
670
  };
@@ -684,6 +722,10 @@ export const HookOutputDTOEventTypeEnum = {
684
722
  DomainCreated: 'domain-created',
685
723
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
686
724
  DomainPlanChanged: 'domain-plan-changed',
725
+ ConnectorMigrationStarted: 'connector-migration-started',
726
+ ConnectorMigrationCompleted: 'connector-migration-completed',
727
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
728
+ ConnectorMigrationReverted: 'connector-migration-reverted',
687
729
  DiscordGuildEnabled: 'discord-guild-enabled',
688
730
  ItemsGiven: 'items-given',
689
731
  };
@@ -741,6 +783,10 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
741
783
  DomainCreated: 'domain-created',
742
784
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
743
785
  DomainPlanChanged: 'domain-plan-changed',
786
+ ConnectorMigrationStarted: 'connector-migration-started',
787
+ ConnectorMigrationCompleted: 'connector-migration-completed',
788
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
789
+ ConnectorMigrationReverted: 'connector-migration-reverted',
744
790
  DiscordGuildEnabled: 'discord-guild-enabled',
745
791
  ItemsGiven: 'items-given',
746
792
  };
@@ -806,6 +852,10 @@ export const HookTriggerDTOEventTypeEnum = {
806
852
  DomainCreated: 'domain-created',
807
853
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
808
854
  DomainPlanChanged: 'domain-plan-changed',
855
+ ConnectorMigrationStarted: 'connector-migration-started',
856
+ ConnectorMigrationCompleted: 'connector-migration-completed',
857
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
858
+ ConnectorMigrationReverted: 'connector-migration-reverted',
809
859
  DiscordGuildEnabled: 'discord-guild-enabled',
810
860
  ItemsGiven: 'items-given',
811
861
  };
@@ -863,6 +913,10 @@ export const HookUpdateDTOEventTypeEnum = {
863
913
  DomainCreated: 'domain-created',
864
914
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
865
915
  DomainPlanChanged: 'domain-plan-changed',
916
+ ConnectorMigrationStarted: 'connector-migration-started',
917
+ ConnectorMigrationCompleted: 'connector-migration-completed',
918
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
919
+ ConnectorMigrationReverted: 'connector-migration-reverted',
866
920
  DiscordGuildEnabled: 'discord-guild-enabled',
867
921
  ItemsGiven: 'items-given',
868
922
  };
@@ -925,6 +979,10 @@ export const IHookEventTypeEnum = {
925
979
  DomainCreated: 'domain-created',
926
980
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
927
981
  DomainPlanChanged: 'domain-plan-changed',
982
+ ConnectorMigrationStarted: 'connector-migration-started',
983
+ ConnectorMigrationCompleted: 'connector-migration-completed',
984
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
985
+ ConnectorMigrationReverted: 'connector-migration-reverted',
928
986
  DiscordGuildEnabled: 'discord-guild-enabled',
929
987
  ItemsGiven: 'items-given',
930
988
  };
@@ -9642,6 +9700,102 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
9642
9700
  options: localVarRequestOptions,
9643
9701
  };
9644
9702
  },
9703
+ /**
9704
+ * Cancel a pending Connector Migration. Its identity token stops claiming the gameserver; the legacy connection was never changed. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCancelConnectorMigration`
9705
+ * @summary Cancel connector migration
9706
+ * @param {string} id
9707
+ * @param {*} [options] Override http request option.
9708
+ * @throws {RequiredError}
9709
+ */
9710
+ gameServerControllerCancelConnectorMigration: async (id, options = {}) => {
9711
+ // verify required parameter 'id' is not null or undefined
9712
+ assertParamExists('gameServerControllerCancelConnectorMigration', 'id', id);
9713
+ const localVarPath = `/gameserver/{id}/connector-migration/cancel`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
9714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9715
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9716
+ let baseOptions;
9717
+ if (configuration) {
9718
+ baseOptions = configuration.baseOptions;
9719
+ }
9720
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
9721
+ const localVarHeaderParameter = {};
9722
+ const localVarQueryParameter = {};
9723
+ // authentication bearerAuth required
9724
+ // http bearer authentication required
9725
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
9726
+ // authentication domainAuth required
9727
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9729
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9730
+ return {
9731
+ url: toPathString(localVarUrlObj),
9732
+ options: localVarRequestOptions,
9733
+ };
9734
+ },
9735
+ /**
9736
+ * Claim the legacy gameserver whose pending Connector Migration issued this identity token. Written by the connector on handshake; users normally never call it. The outcome is claimed, refused (with the reason, also recorded on the gameserver) or none (no pending migration holds the token in this domain). Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerClaimConnectorMigration`
9737
+ * @summary Claim connector migration
9738
+ * @param {ConnectorMigrationClaimInputDTO} [connectorMigrationClaimInputDTO] ConnectorMigrationClaimInputDTO
9739
+ * @param {*} [options] Override http request option.
9740
+ * @throws {RequiredError}
9741
+ */
9742
+ gameServerControllerClaimConnectorMigration: async (connectorMigrationClaimInputDTO, options = {}) => {
9743
+ const localVarPath = `/gameserver/connector-migration/claim`;
9744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9745
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9746
+ let baseOptions;
9747
+ if (configuration) {
9748
+ baseOptions = configuration.baseOptions;
9749
+ }
9750
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
9751
+ const localVarHeaderParameter = {};
9752
+ const localVarQueryParameter = {};
9753
+ // authentication bearerAuth required
9754
+ // http bearer authentication required
9755
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
9756
+ // authentication domainAuth required
9757
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9760
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9761
+ localVarRequestOptions.data = serializeDataIfNeeded(connectorMigrationClaimInputDTO, localVarRequestOptions, configuration);
9762
+ return {
9763
+ url: toPathString(localVarUrlObj),
9764
+ options: localVarRequestOptions,
9765
+ };
9766
+ },
9767
+ /**
9768
+ * Report of a completed Connector Migration: players seen since the switch that matched existing ones vs. newly created, and item rows reused vs. newly added. A high playersNew count suggests reverting.<br> OperationId: `GameServerControllerConnectorMigrationReport`
9769
+ * @summary Connector migration report
9770
+ * @param {string} id
9771
+ * @param {*} [options] Override http request option.
9772
+ * @throws {RequiredError}
9773
+ */
9774
+ gameServerControllerConnectorMigrationReport: async (id, options = {}) => {
9775
+ // verify required parameter 'id' is not null or undefined
9776
+ assertParamExists('gameServerControllerConnectorMigrationReport', 'id', id);
9777
+ const localVarPath = `/gameserver/{id}/connector-migration/report`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
9778
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9779
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9780
+ let baseOptions;
9781
+ if (configuration) {
9782
+ baseOptions = configuration.baseOptions;
9783
+ }
9784
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9785
+ const localVarHeaderParameter = {};
9786
+ const localVarQueryParameter = {};
9787
+ // authentication bearerAuth required
9788
+ // http bearer authentication required
9789
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
9790
+ // authentication domainAuth required
9791
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9792
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9793
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9794
+ return {
9795
+ url: toPathString(localVarUrlObj),
9796
+ options: localVarRequestOptions,
9797
+ };
9798
+ },
9645
9799
  /**
9646
9800
  * Create a gameserver Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCreate`
9647
9801
  * @summary Create
@@ -10448,6 +10602,38 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
10448
10602
  options: localVarRequestOptions,
10449
10603
  };
10450
10604
  },
10605
+ /**
10606
+ * Revert a completed Connector Migration within 14 days of completion. Restores the legacy type and connection, retires the identity token and drops the connector connection. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRevertConnectorMigration`
10607
+ * @summary Revert connector migration
10608
+ * @param {string} id
10609
+ * @param {*} [options] Override http request option.
10610
+ * @throws {RequiredError}
10611
+ */
10612
+ gameServerControllerRevertConnectorMigration: async (id, options = {}) => {
10613
+ // verify required parameter 'id' is not null or undefined
10614
+ assertParamExists('gameServerControllerRevertConnectorMigration', 'id', id);
10615
+ const localVarPath = `/gameserver/{id}/connector-migration/revert`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10618
+ let baseOptions;
10619
+ if (configuration) {
10620
+ baseOptions = configuration.baseOptions;
10621
+ }
10622
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10623
+ const localVarHeaderParameter = {};
10624
+ const localVarQueryParameter = {};
10625
+ // authentication bearerAuth required
10626
+ // http bearer authentication required
10627
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
10628
+ // authentication domainAuth required
10629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10631
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10632
+ return {
10633
+ url: toPathString(localVarUrlObj),
10634
+ options: localVarRequestOptions,
10635
+ };
10636
+ },
10451
10637
  /**
10452
10638
  * Fetch gameservers<br> OperationId: `GameServerControllerSearch`
10453
10639
  * @summary Search
@@ -10550,6 +10736,41 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
10550
10736
  options: localVarRequestOptions,
10551
10737
  };
10552
10738
  },
10739
+ /**
10740
+ * Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
10741
+ * @summary Set game
10742
+ * @param {string} id
10743
+ * @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
10744
+ * @param {*} [options] Override http request option.
10745
+ * @throws {RequiredError}
10746
+ */
10747
+ gameServerControllerSetGame: async (id, gameServerGameInputDTO, options = {}) => {
10748
+ // verify required parameter 'id' is not null or undefined
10749
+ assertParamExists('gameServerControllerSetGame', 'id', id);
10750
+ const localVarPath = `/gameserver/{id}/game`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10751
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10752
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10753
+ let baseOptions;
10754
+ if (configuration) {
10755
+ baseOptions = configuration.baseOptions;
10756
+ }
10757
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
10758
+ const localVarHeaderParameter = {};
10759
+ const localVarQueryParameter = {};
10760
+ // authentication bearerAuth required
10761
+ // http bearer authentication required
10762
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
10763
+ // authentication domainAuth required
10764
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10766
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10767
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10768
+ localVarRequestOptions.data = serializeDataIfNeeded(gameServerGameInputDTO, localVarRequestOptions, configuration);
10769
+ return {
10770
+ url: toPathString(localVarUrlObj),
10771
+ options: localVarRequestOptions,
10772
+ };
10773
+ },
10553
10774
  /**
10554
10775
  * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
10555
10776
  * @summary Shutdown
@@ -10582,6 +10803,38 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
10582
10803
  options: localVarRequestOptions,
10583
10804
  };
10584
10805
  },
10806
+ /**
10807
+ * Start a Connector Migration of a legacy gameserver, or return the pending one. Put the returned identity token and registration token in the connector config; the gameserver keeps its legacy connection until that connector first connects. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerStartConnectorMigration`
10808
+ * @summary Start connector migration
10809
+ * @param {string} id
10810
+ * @param {*} [options] Override http request option.
10811
+ * @throws {RequiredError}
10812
+ */
10813
+ gameServerControllerStartConnectorMigration: async (id, options = {}) => {
10814
+ // verify required parameter 'id' is not null or undefined
10815
+ assertParamExists('gameServerControllerStartConnectorMigration', 'id', id);
10816
+ const localVarPath = `/gameserver/{id}/connector-migration`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10817
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10818
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10819
+ let baseOptions;
10820
+ if (configuration) {
10821
+ baseOptions = configuration.baseOptions;
10822
+ }
10823
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10824
+ const localVarHeaderParameter = {};
10825
+ const localVarQueryParameter = {};
10826
+ // authentication bearerAuth required
10827
+ // http bearer authentication required
10828
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
10829
+ // authentication domainAuth required
10830
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10831
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10832
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10833
+ return {
10834
+ url: toPathString(localVarUrlObj),
10835
+ options: localVarRequestOptions,
10836
+ };
10837
+ },
10585
10838
  /**
10586
10839
  * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerTeleportPlayer`
10587
10840
  * @summary Teleport player
@@ -10861,6 +11114,48 @@ export const GameServerApiFp = function (configuration) {
10861
11114
  const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerBanPlayer']?.[localVarOperationServerIndex]?.url;
10862
11115
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10863
11116
  },
11117
+ /**
11118
+ * Cancel a pending Connector Migration. Its identity token stops claiming the gameserver; the legacy connection was never changed. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCancelConnectorMigration`
11119
+ * @summary Cancel connector migration
11120
+ * @param {string} id
11121
+ * @param {*} [options] Override http request option.
11122
+ * @throws {RequiredError}
11123
+ */
11124
+ async gameServerControllerCancelConnectorMigration(id, options) {
11125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerCancelConnectorMigration(id, options);
11126
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11127
+ const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerCancelConnectorMigration']?.[localVarOperationServerIndex]
11128
+ ?.url;
11129
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11130
+ },
11131
+ /**
11132
+ * Claim the legacy gameserver whose pending Connector Migration issued this identity token. Written by the connector on handshake; users normally never call it. The outcome is claimed, refused (with the reason, also recorded on the gameserver) or none (no pending migration holds the token in this domain). Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerClaimConnectorMigration`
11133
+ * @summary Claim connector migration
11134
+ * @param {ConnectorMigrationClaimInputDTO} [connectorMigrationClaimInputDTO] ConnectorMigrationClaimInputDTO
11135
+ * @param {*} [options] Override http request option.
11136
+ * @throws {RequiredError}
11137
+ */
11138
+ async gameServerControllerClaimConnectorMigration(connectorMigrationClaimInputDTO, options) {
11139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerClaimConnectorMigration(connectorMigrationClaimInputDTO, options);
11140
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11141
+ const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerClaimConnectorMigration']?.[localVarOperationServerIndex]
11142
+ ?.url;
11143
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11144
+ },
11145
+ /**
11146
+ * Report of a completed Connector Migration: players seen since the switch that matched existing ones vs. newly created, and item rows reused vs. newly added. A high playersNew count suggests reverting.<br> OperationId: `GameServerControllerConnectorMigrationReport`
11147
+ * @summary Connector migration report
11148
+ * @param {string} id
11149
+ * @param {*} [options] Override http request option.
11150
+ * @throws {RequiredError}
11151
+ */
11152
+ async gameServerControllerConnectorMigrationReport(id, options) {
11153
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerConnectorMigrationReport(id, options);
11154
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11155
+ const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerConnectorMigrationReport']?.[localVarOperationServerIndex]
11156
+ ?.url;
11157
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11158
+ },
10864
11159
  /**
10865
11160
  * Create a gameserver Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCreate`
10866
11161
  * @summary Create
@@ -11179,6 +11474,20 @@ export const GameServerApiFp = function (configuration) {
11179
11474
  const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerResetCurrency']?.[localVarOperationServerIndex]?.url;
11180
11475
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11181
11476
  },
11477
+ /**
11478
+ * Revert a completed Connector Migration within 14 days of completion. Restores the legacy type and connection, retires the identity token and drops the connector connection. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRevertConnectorMigration`
11479
+ * @summary Revert connector migration
11480
+ * @param {string} id
11481
+ * @param {*} [options] Override http request option.
11482
+ * @throws {RequiredError}
11483
+ */
11484
+ async gameServerControllerRevertConnectorMigration(id, options) {
11485
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerRevertConnectorMigration(id, options);
11486
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11487
+ const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerRevertConnectorMigration']?.[localVarOperationServerIndex]
11488
+ ?.url;
11489
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11490
+ },
11182
11491
  /**
11183
11492
  * Fetch gameservers<br> OperationId: `GameServerControllerSearch`
11184
11493
  * @summary Search
@@ -11220,6 +11529,20 @@ export const GameServerApiFp = function (configuration) {
11220
11529
  const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerSetCapabilities']?.[localVarOperationServerIndex]?.url;
11221
11530
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11222
11531
  },
11532
+ /**
11533
+ * Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
11534
+ * @summary Set game
11535
+ * @param {string} id
11536
+ * @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
11537
+ * @param {*} [options] Override http request option.
11538
+ * @throws {RequiredError}
11539
+ */
11540
+ async gameServerControllerSetGame(id, gameServerGameInputDTO, options) {
11541
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerSetGame(id, gameServerGameInputDTO, options);
11542
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11543
+ const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerSetGame']?.[localVarOperationServerIndex]?.url;
11544
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11545
+ },
11223
11546
  /**
11224
11547
  * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
11225
11548
  * @summary Shutdown
@@ -11233,6 +11556,20 @@ export const GameServerApiFp = function (configuration) {
11233
11556
  const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerShutdown']?.[localVarOperationServerIndex]?.url;
11234
11557
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11235
11558
  },
11559
+ /**
11560
+ * Start a Connector Migration of a legacy gameserver, or return the pending one. Put the returned identity token and registration token in the connector config; the gameserver keeps its legacy connection until that connector first connects. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerStartConnectorMigration`
11561
+ * @summary Start connector migration
11562
+ * @param {string} id
11563
+ * @param {*} [options] Override http request option.
11564
+ * @throws {RequiredError}
11565
+ */
11566
+ async gameServerControllerStartConnectorMigration(id, options) {
11567
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerStartConnectorMigration(id, options);
11568
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11569
+ const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerStartConnectorMigration']?.[localVarOperationServerIndex]
11570
+ ?.url;
11571
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11572
+ },
11236
11573
  /**
11237
11574
  * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerTeleportPlayer`
11238
11575
  * @summary Teleport player
@@ -11357,6 +11694,42 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
11357
11694
  .gameServerControllerBanPlayer(gameServerId, playerId, banPlayerInputDTO, options)
11358
11695
  .then((request) => request(axios, basePath));
11359
11696
  },
11697
+ /**
11698
+ * Cancel a pending Connector Migration. Its identity token stops claiming the gameserver; the legacy connection was never changed. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCancelConnectorMigration`
11699
+ * @summary Cancel connector migration
11700
+ * @param {string} id
11701
+ * @param {*} [options] Override http request option.
11702
+ * @throws {RequiredError}
11703
+ */
11704
+ gameServerControllerCancelConnectorMigration(id, options) {
11705
+ return localVarFp
11706
+ .gameServerControllerCancelConnectorMigration(id, options)
11707
+ .then((request) => request(axios, basePath));
11708
+ },
11709
+ /**
11710
+ * Claim the legacy gameserver whose pending Connector Migration issued this identity token. Written by the connector on handshake; users normally never call it. The outcome is claimed, refused (with the reason, also recorded on the gameserver) or none (no pending migration holds the token in this domain). Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerClaimConnectorMigration`
11711
+ * @summary Claim connector migration
11712
+ * @param {ConnectorMigrationClaimInputDTO} [connectorMigrationClaimInputDTO] ConnectorMigrationClaimInputDTO
11713
+ * @param {*} [options] Override http request option.
11714
+ * @throws {RequiredError}
11715
+ */
11716
+ gameServerControllerClaimConnectorMigration(connectorMigrationClaimInputDTO, options) {
11717
+ return localVarFp
11718
+ .gameServerControllerClaimConnectorMigration(connectorMigrationClaimInputDTO, options)
11719
+ .then((request) => request(axios, basePath));
11720
+ },
11721
+ /**
11722
+ * Report of a completed Connector Migration: players seen since the switch that matched existing ones vs. newly created, and item rows reused vs. newly added. A high playersNew count suggests reverting.<br> OperationId: `GameServerControllerConnectorMigrationReport`
11723
+ * @summary Connector migration report
11724
+ * @param {string} id
11725
+ * @param {*} [options] Override http request option.
11726
+ * @throws {RequiredError}
11727
+ */
11728
+ gameServerControllerConnectorMigrationReport(id, options) {
11729
+ return localVarFp
11730
+ .gameServerControllerConnectorMigrationReport(id, options)
11731
+ .then((request) => request(axios, basePath));
11732
+ },
11360
11733
  /**
11361
11734
  * Create a gameserver Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCreate`
11362
11735
  * @summary Create
@@ -11625,6 +11998,18 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
11625
11998
  gameServerControllerResetCurrency(id, options) {
11626
11999
  return localVarFp.gameServerControllerResetCurrency(id, options).then((request) => request(axios, basePath));
11627
12000
  },
12001
+ /**
12002
+ * Revert a completed Connector Migration within 14 days of completion. Restores the legacy type and connection, retires the identity token and drops the connector connection. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRevertConnectorMigration`
12003
+ * @summary Revert connector migration
12004
+ * @param {string} id
12005
+ * @param {*} [options] Override http request option.
12006
+ * @throws {RequiredError}
12007
+ */
12008
+ gameServerControllerRevertConnectorMigration(id, options) {
12009
+ return localVarFp
12010
+ .gameServerControllerRevertConnectorMigration(id, options)
12011
+ .then((request) => request(axios, basePath));
12012
+ },
11628
12013
  /**
11629
12014
  * Fetch gameservers<br> OperationId: `GameServerControllerSearch`
11630
12015
  * @summary Search
@@ -11663,6 +12048,19 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
11663
12048
  .gameServerControllerSetCapabilities(id, gameServerCapabilitiesInputDTO, options)
11664
12049
  .then((request) => request(axios, basePath));
11665
12050
  },
12051
+ /**
12052
+ * Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
12053
+ * @summary Set game
12054
+ * @param {string} id
12055
+ * @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
12056
+ * @param {*} [options] Override http request option.
12057
+ * @throws {RequiredError}
12058
+ */
12059
+ gameServerControllerSetGame(id, gameServerGameInputDTO, options) {
12060
+ return localVarFp
12061
+ .gameServerControllerSetGame(id, gameServerGameInputDTO, options)
12062
+ .then((request) => request(axios, basePath));
12063
+ },
11666
12064
  /**
11667
12065
  * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
11668
12066
  * @summary Shutdown
@@ -11673,6 +12071,18 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
11673
12071
  gameServerControllerShutdown(id, options) {
11674
12072
  return localVarFp.gameServerControllerShutdown(id, options).then((request) => request(axios, basePath));
11675
12073
  },
12074
+ /**
12075
+ * Start a Connector Migration of a legacy gameserver, or return the pending one. Put the returned identity token and registration token in the connector config; the gameserver keeps its legacy connection until that connector first connects. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerStartConnectorMigration`
12076
+ * @summary Start connector migration
12077
+ * @param {string} id
12078
+ * @param {*} [options] Override http request option.
12079
+ * @throws {RequiredError}
12080
+ */
12081
+ gameServerControllerStartConnectorMigration(id, options) {
12082
+ return localVarFp
12083
+ .gameServerControllerStartConnectorMigration(id, options)
12084
+ .then((request) => request(axios, basePath));
12085
+ },
11676
12086
  /**
11677
12087
  * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerTeleportPlayer`
11678
12088
  * @summary Teleport player
@@ -11788,6 +12198,45 @@ export class GameServerApi extends BaseAPI {
11788
12198
  .gameServerControllerBanPlayer(gameServerId, playerId, banPlayerInputDTO, options)
11789
12199
  .then((request) => request(this.axios, this.basePath));
11790
12200
  }
12201
+ /**
12202
+ * Cancel a pending Connector Migration. Its identity token stops claiming the gameserver; the legacy connection was never changed. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCancelConnectorMigration`
12203
+ * @summary Cancel connector migration
12204
+ * @param {string} id
12205
+ * @param {*} [options] Override http request option.
12206
+ * @throws {RequiredError}
12207
+ * @memberof GameServerApi
12208
+ */
12209
+ gameServerControllerCancelConnectorMigration(id, options) {
12210
+ return GameServerApiFp(this.configuration)
12211
+ .gameServerControllerCancelConnectorMigration(id, options)
12212
+ .then((request) => request(this.axios, this.basePath));
12213
+ }
12214
+ /**
12215
+ * Claim the legacy gameserver whose pending Connector Migration issued this identity token. Written by the connector on handshake; users normally never call it. The outcome is claimed, refused (with the reason, also recorded on the gameserver) or none (no pending migration holds the token in this domain). Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerClaimConnectorMigration`
12216
+ * @summary Claim connector migration
12217
+ * @param {ConnectorMigrationClaimInputDTO} [connectorMigrationClaimInputDTO] ConnectorMigrationClaimInputDTO
12218
+ * @param {*} [options] Override http request option.
12219
+ * @throws {RequiredError}
12220
+ * @memberof GameServerApi
12221
+ */
12222
+ gameServerControllerClaimConnectorMigration(connectorMigrationClaimInputDTO, options) {
12223
+ return GameServerApiFp(this.configuration)
12224
+ .gameServerControllerClaimConnectorMigration(connectorMigrationClaimInputDTO, options)
12225
+ .then((request) => request(this.axios, this.basePath));
12226
+ }
12227
+ /**
12228
+ * Report of a completed Connector Migration: players seen since the switch that matched existing ones vs. newly created, and item rows reused vs. newly added. A high playersNew count suggests reverting.<br> OperationId: `GameServerControllerConnectorMigrationReport`
12229
+ * @summary Connector migration report
12230
+ * @param {string} id
12231
+ * @param {*} [options] Override http request option.
12232
+ * @throws {RequiredError}
12233
+ * @memberof GameServerApi
12234
+ */
12235
+ gameServerControllerConnectorMigrationReport(id, options) {
12236
+ return GameServerApiFp(this.configuration)
12237
+ .gameServerControllerConnectorMigrationReport(id, options)
12238
+ .then((request) => request(this.axios, this.basePath));
12239
+ }
11791
12240
  /**
11792
12241
  * Create a gameserver Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerCreate`
11793
12242
  * @summary Create
@@ -12105,6 +12554,19 @@ export class GameServerApi extends BaseAPI {
12105
12554
  .gameServerControllerResetCurrency(id, options)
12106
12555
  .then((request) => request(this.axios, this.basePath));
12107
12556
  }
12557
+ /**
12558
+ * Revert a completed Connector Migration within 14 days of completion. Restores the legacy type and connection, retires the identity token and drops the connector connection. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRevertConnectorMigration`
12559
+ * @summary Revert connector migration
12560
+ * @param {string} id
12561
+ * @param {*} [options] Override http request option.
12562
+ * @throws {RequiredError}
12563
+ * @memberof GameServerApi
12564
+ */
12565
+ gameServerControllerRevertConnectorMigration(id, options) {
12566
+ return GameServerApiFp(this.configuration)
12567
+ .gameServerControllerRevertConnectorMigration(id, options)
12568
+ .then((request) => request(this.axios, this.basePath));
12569
+ }
12108
12570
  /**
12109
12571
  * Fetch gameservers<br> OperationId: `GameServerControllerSearch`
12110
12572
  * @summary Search
@@ -12146,6 +12608,20 @@ export class GameServerApi extends BaseAPI {
12146
12608
  .gameServerControllerSetCapabilities(id, gameServerCapabilitiesInputDTO, options)
12147
12609
  .then((request) => request(this.axios, this.basePath));
12148
12610
  }
12611
+ /**
12612
+ * Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
12613
+ * @summary Set game
12614
+ * @param {string} id
12615
+ * @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
12616
+ * @param {*} [options] Override http request option.
12617
+ * @throws {RequiredError}
12618
+ * @memberof GameServerApi
12619
+ */
12620
+ gameServerControllerSetGame(id, gameServerGameInputDTO, options) {
12621
+ return GameServerApiFp(this.configuration)
12622
+ .gameServerControllerSetGame(id, gameServerGameInputDTO, options)
12623
+ .then((request) => request(this.axios, this.basePath));
12624
+ }
12149
12625
  /**
12150
12626
  * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
12151
12627
  * @summary Shutdown
@@ -12159,6 +12635,19 @@ export class GameServerApi extends BaseAPI {
12159
12635
  .gameServerControllerShutdown(id, options)
12160
12636
  .then((request) => request(this.axios, this.basePath));
12161
12637
  }
12638
+ /**
12639
+ * Start a Connector Migration of a legacy gameserver, or return the pending one. Put the returned identity token and registration token in the connector config; the gameserver keeps its legacy connection until that connector first connects. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerStartConnectorMigration`
12640
+ * @summary Start connector migration
12641
+ * @param {string} id
12642
+ * @param {*} [options] Override http request option.
12643
+ * @throws {RequiredError}
12644
+ * @memberof GameServerApi
12645
+ */
12646
+ gameServerControllerStartConnectorMigration(id, options) {
12647
+ return GameServerApiFp(this.configuration)
12648
+ .gameServerControllerStartConnectorMigration(id, options)
12649
+ .then((request) => request(this.axios, this.basePath));
12650
+ }
12162
12651
  /**
12163
12652
  * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerTeleportPlayer`
12164
12653
  * @summary Teleport player