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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -170,6 +170,7 @@ export const EventCreateDTOEventNameEnum = {
170
170
  SettingsSet: 'settings-set',
171
171
  PlayerNewIpDetected: 'player-new-ip-detected',
172
172
  PlayerNewNameDetected: 'player-new-name-detected',
173
+ PlayerIdentityConflict: 'player-identity-conflict',
173
174
  ServerStatusChanged: 'server-status-changed',
174
175
  ModuleCreated: 'module-created',
175
176
  ModuleUpdated: 'module-updated',
@@ -184,6 +185,8 @@ export const EventCreateDTOEventNameEnum = {
184
185
  ShopOrderStatusChanged: 'shop-order-status-changed',
185
186
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
186
187
  PlayerLinked: 'player-linked',
188
+ PlayerUnlinked: 'player-unlinked',
189
+ PlayerMerged: 'player-merged',
187
190
  GameserverCreated: 'gameserver-created',
188
191
  GameserverUpdated: 'gameserver-updated',
189
192
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -230,6 +233,7 @@ export const EventOutputDTOEventNameEnum = {
230
233
  SettingsSet: 'settings-set',
231
234
  PlayerNewIpDetected: 'player-new-ip-detected',
232
235
  PlayerNewNameDetected: 'player-new-name-detected',
236
+ PlayerIdentityConflict: 'player-identity-conflict',
233
237
  ServerStatusChanged: 'server-status-changed',
234
238
  ModuleCreated: 'module-created',
235
239
  ModuleUpdated: 'module-updated',
@@ -244,6 +248,8 @@ export const EventOutputDTOEventNameEnum = {
244
248
  ShopOrderStatusChanged: 'shop-order-status-changed',
245
249
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
246
250
  PlayerLinked: 'player-linked',
251
+ PlayerUnlinked: 'player-unlinked',
252
+ PlayerMerged: 'player-merged',
247
253
  GameserverCreated: 'gameserver-created',
248
254
  GameserverUpdated: 'gameserver-updated',
249
255
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -354,6 +360,7 @@ export const GetJobInputDTOTypeEnum = {
354
360
  CleanRevokedApiKeys: 'cleanRevokedApiKeys',
355
361
  CleanExecutionClaims: 'cleanExecutionClaims',
356
362
  DeleteClickHouseEvents: 'deleteClickHouseEvents',
363
+ RepointClickHouseEvents: 'repointClickHouseEvents',
357
364
  CleanConnectorMigrations: 'cleanConnectorMigrations',
358
365
  };
359
366
  export const HookCreateDTOEventTypeEnum = {
@@ -379,6 +386,7 @@ export const HookCreateDTOEventTypeEnum = {
379
386
  SettingsSet: 'settings-set',
380
387
  PlayerNewIpDetected: 'player-new-ip-detected',
381
388
  PlayerNewNameDetected: 'player-new-name-detected',
389
+ PlayerIdentityConflict: 'player-identity-conflict',
382
390
  ServerStatusChanged: 'server-status-changed',
383
391
  ModuleCreated: 'module-created',
384
392
  ModuleUpdated: 'module-updated',
@@ -393,6 +401,8 @@ export const HookCreateDTOEventTypeEnum = {
393
401
  ShopOrderStatusChanged: 'shop-order-status-changed',
394
402
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
395
403
  PlayerLinked: 'player-linked',
404
+ PlayerUnlinked: 'player-unlinked',
405
+ PlayerMerged: 'player-merged',
396
406
  GameserverCreated: 'gameserver-created',
397
407
  GameserverUpdated: 'gameserver-updated',
398
408
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -441,6 +451,7 @@ export const HookOutputDTOEventTypeEnum = {
441
451
  SettingsSet: 'settings-set',
442
452
  PlayerNewIpDetected: 'player-new-ip-detected',
443
453
  PlayerNewNameDetected: 'player-new-name-detected',
454
+ PlayerIdentityConflict: 'player-identity-conflict',
444
455
  ServerStatusChanged: 'server-status-changed',
445
456
  ModuleCreated: 'module-created',
446
457
  ModuleUpdated: 'module-updated',
@@ -455,6 +466,8 @@ export const HookOutputDTOEventTypeEnum = {
455
466
  ShopOrderStatusChanged: 'shop-order-status-changed',
456
467
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
457
468
  PlayerLinked: 'player-linked',
469
+ PlayerUnlinked: 'player-unlinked',
470
+ PlayerMerged: 'player-merged',
458
471
  GameserverCreated: 'gameserver-created',
459
472
  GameserverUpdated: 'gameserver-updated',
460
473
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -503,6 +516,7 @@ export const HookTriggerDTOEventTypeEnum = {
503
516
  SettingsSet: 'settings-set',
504
517
  PlayerNewIpDetected: 'player-new-ip-detected',
505
518
  PlayerNewNameDetected: 'player-new-name-detected',
519
+ PlayerIdentityConflict: 'player-identity-conflict',
506
520
  ServerStatusChanged: 'server-status-changed',
507
521
  ModuleCreated: 'module-created',
508
522
  ModuleUpdated: 'module-updated',
@@ -517,6 +531,8 @@ export const HookTriggerDTOEventTypeEnum = {
517
531
  ShopOrderStatusChanged: 'shop-order-status-changed',
518
532
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
519
533
  PlayerLinked: 'player-linked',
534
+ PlayerUnlinked: 'player-unlinked',
535
+ PlayerMerged: 'player-merged',
520
536
  GameserverCreated: 'gameserver-created',
521
537
  GameserverUpdated: 'gameserver-updated',
522
538
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -565,6 +581,7 @@ export const HookUpdateDTOEventTypeEnum = {
565
581
  SettingsSet: 'settings-set',
566
582
  PlayerNewIpDetected: 'player-new-ip-detected',
567
583
  PlayerNewNameDetected: 'player-new-name-detected',
584
+ PlayerIdentityConflict: 'player-identity-conflict',
568
585
  ServerStatusChanged: 'server-status-changed',
569
586
  ModuleCreated: 'module-created',
570
587
  ModuleUpdated: 'module-updated',
@@ -579,6 +596,8 @@ export const HookUpdateDTOEventTypeEnum = {
579
596
  ShopOrderStatusChanged: 'shop-order-status-changed',
580
597
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
581
598
  PlayerLinked: 'player-linked',
599
+ PlayerUnlinked: 'player-unlinked',
600
+ PlayerMerged: 'player-merged',
582
601
  GameserverCreated: 'gameserver-created',
583
602
  GameserverUpdated: 'gameserver-updated',
584
603
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -632,6 +651,7 @@ export const IHookEventTypeEnum = {
632
651
  SettingsSet: 'settings-set',
633
652
  PlayerNewIpDetected: 'player-new-ip-detected',
634
653
  PlayerNewNameDetected: 'player-new-name-detected',
654
+ PlayerIdentityConflict: 'player-identity-conflict',
635
655
  ServerStatusChanged: 'server-status-changed',
636
656
  ModuleCreated: 'module-created',
637
657
  ModuleUpdated: 'module-updated',
@@ -646,6 +666,8 @@ export const IHookEventTypeEnum = {
646
666
  ShopOrderStatusChanged: 'shop-order-status-changed',
647
667
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
648
668
  PlayerLinked: 'player-linked',
669
+ PlayerUnlinked: 'player-unlinked',
670
+ PlayerMerged: 'player-merged',
649
671
  GameserverCreated: 'gameserver-created',
650
672
  GameserverUpdated: 'gameserver-updated',
651
673
  GameserverVersionChanged: 'gameserver-version-changed',
@@ -990,11 +1012,50 @@ export const TakaroEventItemsGivenLineResultEnum = {
990
1012
  Failed: 'FAILED',
991
1013
  Unknown: 'UNKNOWN',
992
1014
  };
1015
+ export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
1016
+ SteamId: 'steamId',
1017
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1018
+ XboxLiveId: 'xboxLiveId',
1019
+ PlatformId: 'platformId',
1020
+ };
1021
+ export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
1022
+ SteamId: 'steamId',
1023
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1024
+ XboxLiveId: 'xboxLiveId',
1025
+ PlatformId: 'platformId',
1026
+ };
993
1027
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
994
1028
  Added: 'added',
995
1029
  Removed: 'removed',
996
1030
  Changed: 'changed',
997
1031
  };
1032
+ export const TakaroEventPlayerLinkedSourceEnum = {
1033
+ GameCode: 'game-code',
1034
+ WebCode: 'web-code',
1035
+ SteamAuto: 'steam-auto',
1036
+ Admin: 'admin',
1037
+ Unknown: 'unknown',
1038
+ };
1039
+ export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
1040
+ SteamId: 'steamId',
1041
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1042
+ XboxLiveId: 'xboxLiveId',
1043
+ PlatformId: 'platformId',
1044
+ };
1045
+ export const TakaroEventPlayerMergedServerOutcomeEnum = {
1046
+ Moved: 'moved',
1047
+ Combined: 'combined',
1048
+ };
1049
+ export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
1050
+ Survivor: 'survivor',
1051
+ Absorbed: 'absorbed',
1052
+ };
1053
+ export const TakaroEventPlayerUnlinkedReasonEnum = {
1054
+ Self: 'self',
1055
+ Admin: 'admin',
1056
+ Displaced: 'displaced',
1057
+ Merged: 'merged',
1058
+ };
998
1059
  export const TakaroEventRateLimitedScopeEnum = {
999
1060
  Server: 'server',
1000
1061
  Domain: 'domain',
@@ -1145,6 +1206,20 @@ export const TriggerJobInputDTOTypeEnum = {
1145
1206
  SyncSteam: 'syncSteam',
1146
1207
  SyncDiscordRoles: 'syncDiscordRoles',
1147
1208
  };
1209
+ export const UserOutputDTOPlayerLinkSourceEnum = {
1210
+ GameCode: 'game-code',
1211
+ WebCode: 'web-code',
1212
+ SteamAuto: 'steam-auto',
1213
+ Admin: 'admin',
1214
+ Unknown: 'unknown',
1215
+ };
1216
+ export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
1217
+ GameCode: 'game-code',
1218
+ WebCode: 'web-code',
1219
+ SteamAuto: 'steam-auto',
1220
+ Admin: 'admin',
1221
+ Unknown: 'unknown',
1222
+ };
1148
1223
  export const UserSearchInputDTOExtendEnum = {
1149
1224
  Roles: 'roles',
1150
1225
  };
@@ -3030,6 +3105,40 @@ export const DomainApiAxiosParamCreator = function (configuration) {
3030
3105
  options: localVarRequestOptions,
3031
3106
  };
3032
3107
  },
3108
+ /**
3109
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3110
+ * @summary Put an Unbacked domain on a Plan
3111
+ * @param {string} id
3112
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3113
+ * @param {*} [options] Override http request option.
3114
+ * @throws {RequiredError}
3115
+ */
3116
+ domainControllerSetPlanByStaff: async (id, staffDomainPlanInputDTO, options = {}) => {
3117
+ // verify required parameter 'id' is not null or undefined
3118
+ assertParamExists('domainControllerSetPlanByStaff', 'id', id);
3119
+ const localVarPath = `/staff/domains/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3122
+ let baseOptions;
3123
+ if (configuration) {
3124
+ baseOptions = configuration.baseOptions;
3125
+ }
3126
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3127
+ const localVarHeaderParameter = {};
3128
+ const localVarQueryParameter = {};
3129
+ // authentication staffSession required
3130
+ // authentication adminAuth required
3131
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3135
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3136
+ localVarRequestOptions.data = serializeDataIfNeeded(staffDomainPlanInputDTO, localVarRequestOptions, configuration);
3137
+ return {
3138
+ url: toPathString(localVarUrlObj),
3139
+ options: localVarRequestOptions,
3140
+ };
3141
+ },
3033
3142
  /**
3034
3143
  * <br> OperationId: `DomainControllerUpdate`
3035
3144
  * @summary Update
@@ -3207,6 +3316,20 @@ export const DomainApiFp = function (configuration) {
3207
3316
  const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
3208
3317
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3209
3318
  },
3319
+ /**
3320
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3321
+ * @summary Put an Unbacked domain on a Plan
3322
+ * @param {string} id
3323
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3324
+ * @param {*} [options] Override http request option.
3325
+ * @throws {RequiredError}
3326
+ */
3327
+ async domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options);
3329
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3330
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlanByStaff']?.[localVarOperationServerIndex]?.url;
3331
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3332
+ },
3210
3333
  /**
3211
3334
  * <br> OperationId: `DomainControllerUpdate`
3212
3335
  * @summary Update
@@ -3346,6 +3469,19 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
3346
3469
  .domainControllerSetPlan(id, domainPlanInputDTO, options)
3347
3470
  .then((request) => request(axios, basePath));
3348
3471
  },
3472
+ /**
3473
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3474
+ * @summary Put an Unbacked domain on a Plan
3475
+ * @param {string} id
3476
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3477
+ * @param {*} [options] Override http request option.
3478
+ * @throws {RequiredError}
3479
+ */
3480
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3481
+ return localVarFp
3482
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
3483
+ .then((request) => request(axios, basePath));
3484
+ },
3349
3485
  /**
3350
3486
  * <br> OperationId: `DomainControllerUpdate`
3351
3487
  * @summary Update
@@ -3502,6 +3638,20 @@ export class DomainApi extends BaseAPI {
3502
3638
  .domainControllerSetPlan(id, domainPlanInputDTO, options)
3503
3639
  .then((request) => request(this.axios, this.basePath));
3504
3640
  }
3641
+ /**
3642
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3643
+ * @summary Put an Unbacked domain on a Plan
3644
+ * @param {string} id
3645
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3646
+ * @param {*} [options] Override http request option.
3647
+ * @throws {RequiredError}
3648
+ * @memberof DomainApi
3649
+ */
3650
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3651
+ return DomainApiFp(this.configuration)
3652
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
3653
+ .then((request) => request(this.axios, this.basePath));
3654
+ }
3505
3655
  /**
3506
3656
  * <br> OperationId: `DomainControllerUpdate`
3507
3657
  * @summary Update