@takaro/apiclient 0.0.0-dev.47585eb → 0.0.0-dev.47ceb18

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.
@@ -148,6 +148,7 @@ export const EventCreateDTOEventNameEnum = {
148
148
  PlayerInventoryChanged: 'player-inventory-changed',
149
149
  EventRateLimited: 'event-rate-limited',
150
150
  PlayerSyncSnapshot: 'player-sync-snapshot',
151
+ InviteLinkCreated: 'invite-link-created',
151
152
  PlayerConnected: 'player-connected',
152
153
  PlayerDisconnected: 'player-disconnected',
153
154
  ChatMessage: 'chat-message',
@@ -194,6 +195,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
194
195
  PlayerInventoryChanged: 'player-inventory-changed',
195
196
  EventRateLimited: 'event-rate-limited',
196
197
  PlayerSyncSnapshot: 'player-sync-snapshot',
198
+ InviteLinkCreated: 'invite-link-created',
197
199
  PlayerConnected: 'player-connected',
198
200
  PlayerDisconnected: 'player-disconnected',
199
201
  ChatMessage: 'chat-message',
@@ -240,6 +242,7 @@ export const EventOutputDTOEventNameEnum = {
240
242
  PlayerInventoryChanged: 'player-inventory-changed',
241
243
  EventRateLimited: 'event-rate-limited',
242
244
  PlayerSyncSnapshot: 'player-sync-snapshot',
245
+ InviteLinkCreated: 'invite-link-created',
243
246
  PlayerConnected: 'player-connected',
244
247
  PlayerDisconnected: 'player-disconnected',
245
248
  ChatMessage: 'chat-message',
@@ -286,6 +289,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
286
289
  PlayerInventoryChanged: 'player-inventory-changed',
287
290
  EventRateLimited: 'event-rate-limited',
288
291
  PlayerSyncSnapshot: 'player-sync-snapshot',
292
+ InviteLinkCreated: 'invite-link-created',
289
293
  PlayerConnected: 'player-connected',
290
294
  PlayerDisconnected: 'player-disconnected',
291
295
  ChatMessage: 'chat-message',
@@ -438,6 +442,7 @@ export const HookCreateDTOEventTypeEnum = {
438
442
  PlayerInventoryChanged: 'player-inventory-changed',
439
443
  EventRateLimited: 'event-rate-limited',
440
444
  PlayerSyncSnapshot: 'player-sync-snapshot',
445
+ InviteLinkCreated: 'invite-link-created',
441
446
  };
442
447
  export const HookOutputDTOEventTypeEnum = {
443
448
  Log: 'log',
@@ -486,6 +491,7 @@ export const HookOutputDTOEventTypeEnum = {
486
491
  PlayerInventoryChanged: 'player-inventory-changed',
487
492
  EventRateLimited: 'event-rate-limited',
488
493
  PlayerSyncSnapshot: 'player-sync-snapshot',
494
+ InviteLinkCreated: 'invite-link-created',
489
495
  };
490
496
  export const HookSearchInputAllowedFiltersEventTypeEnum = {
491
497
  Log: 'log',
@@ -534,6 +540,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
534
540
  PlayerInventoryChanged: 'player-inventory-changed',
535
541
  EventRateLimited: 'event-rate-limited',
536
542
  PlayerSyncSnapshot: 'player-sync-snapshot',
543
+ InviteLinkCreated: 'invite-link-created',
537
544
  };
538
545
  export const HookSearchInputDTOExtendEnum = {
539
546
  Module: 'module',
@@ -590,6 +597,7 @@ export const HookTriggerDTOEventTypeEnum = {
590
597
  PlayerInventoryChanged: 'player-inventory-changed',
591
598
  EventRateLimited: 'event-rate-limited',
592
599
  PlayerSyncSnapshot: 'player-sync-snapshot',
600
+ InviteLinkCreated: 'invite-link-created',
593
601
  };
594
602
  export const HookUpdateDTOEventTypeEnum = {
595
603
  Log: 'log',
@@ -638,6 +646,7 @@ export const HookUpdateDTOEventTypeEnum = {
638
646
  PlayerInventoryChanged: 'player-inventory-changed',
639
647
  EventRateLimited: 'event-rate-limited',
640
648
  PlayerSyncSnapshot: 'player-sync-snapshot',
649
+ InviteLinkCreated: 'invite-link-created',
641
650
  };
642
651
  export const IEntityDTOTypeEnum = {
643
652
  Hostile: 'hostile',
@@ -691,11 +700,34 @@ export const IHookEventTypeEnum = {
691
700
  PlayerInventoryChanged: 'player-inventory-changed',
692
701
  EventRateLimited: 'event-rate-limited',
693
702
  PlayerSyncSnapshot: 'player-sync-snapshot',
703
+ InviteLinkCreated: 'invite-link-created',
694
704
  };
695
705
  export const ITakaroQuerySortDirectionEnum = {
696
706
  Asc: 'asc',
697
707
  Desc: 'desc',
698
708
  };
709
+ export const InviteLinkCreateResultDTOStatusEnum = {
710
+ Active: 'ACTIVE',
711
+ Revoked: 'REVOKED',
712
+ Expired: 'EXPIRED',
713
+ Depleted: 'DEPLETED',
714
+ };
715
+ export const InviteLinkOutputDTOStatusEnum = {
716
+ Active: 'ACTIVE',
717
+ Revoked: 'REVOKED',
718
+ Expired: 'EXPIRED',
719
+ Depleted: 'DEPLETED',
720
+ };
721
+ export const InviteLinkPreviewDTOStatusEnum = {
722
+ Active: 'ACTIVE',
723
+ Revoked: 'REVOKED',
724
+ Expired: 'EXPIRED',
725
+ Depleted: 'DEPLETED',
726
+ };
727
+ export const InviteLinkSearchInputDTOSortDirectionEnum = {
728
+ Asc: 'asc',
729
+ Desc: 'desc',
730
+ };
699
731
  export const ItemSearchInputDTOExtendEnum = {
700
732
  Gameserver: 'gameserver',
701
733
  };
@@ -1413,7 +1445,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
1413
1445
  };
1414
1446
  },
1415
1447
  /**
1416
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
1448
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
1417
1449
  * @summary Get module health scores
1418
1450
  * @param {string} [startDate]
1419
1451
  * @param {string} [endDate]
@@ -2304,7 +2336,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
2304
2336
  },
2305
2337
  /**
2306
2338
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
2307
- * @summary Get top modules by event volume
2339
+ * @summary Get top modules by execution volume
2308
2340
  * @param {string} [startDate]
2309
2341
  * @param {string} [endDate]
2310
2342
  * @param {string} [gameServerId]
@@ -2589,7 +2621,7 @@ export const AnalyticsApiFp = function (configuration) {
2589
2621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2590
2622
  },
2591
2623
  /**
2592
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
2624
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
2593
2625
  * @summary Get module health scores
2594
2626
  * @param {string} [startDate]
2595
2627
  * @param {string} [endDate]
@@ -2934,7 +2966,7 @@ export const AnalyticsApiFp = function (configuration) {
2934
2966
  },
2935
2967
  /**
2936
2968
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
2937
- * @summary Get top modules by event volume
2969
+ * @summary Get top modules by execution volume
2938
2970
  * @param {string} [startDate]
2939
2971
  * @param {string} [endDate]
2940
2972
  * @param {string} [gameServerId]
@@ -3150,7 +3182,7 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
3150
3182
  .then((request) => request(axios, basePath));
3151
3183
  },
3152
3184
  /**
3153
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
3185
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
3154
3186
  * @summary Get module health scores
3155
3187
  * @param {string} [startDate]
3156
3188
  * @param {string} [endDate]
@@ -3467,7 +3499,7 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
3467
3499
  },
3468
3500
  /**
3469
3501
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
3470
- * @summary Get top modules by event volume
3502
+ * @summary Get top modules by execution volume
3471
3503
  * @param {string} [startDate]
3472
3504
  * @param {string} [endDate]
3473
3505
  * @param {string} [gameServerId]
@@ -3694,7 +3726,7 @@ export class AnalyticsApi extends BaseAPI {
3694
3726
  .then((request) => request(this.axios, this.basePath));
3695
3727
  }
3696
3728
  /**
3697
- * Normalized 0-1 scores across five dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
3729
+ * Normalized 0-1 scores across six dimensions per top module for radar visualization. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleHealth`
3698
3730
  * @summary Get module health scores
3699
3731
  * @param {string} [startDate]
3700
3732
  * @param {string} [endDate]
@@ -4032,7 +4064,7 @@ export class AnalyticsApi extends BaseAPI {
4032
4064
  }
4033
4065
  /**
4034
4066
  * Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetTopModulesByVolume`
4035
- * @summary Get top modules by event volume
4067
+ * @summary Get top modules by execution volume
4036
4068
  * @param {string} [startDate]
4037
4069
  * @param {string} [endDate]
4038
4070
  * @param {string} [gameServerId]
@@ -6516,6 +6548,39 @@ export const DomainApiAxiosParamCreator = function (configuration) {
6516
6548
  options: localVarRequestOptions,
6517
6549
  };
6518
6550
  },
6551
+ /**
6552
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
6553
+ * @summary Create admin invite link for a domain
6554
+ * @param {string} id
6555
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
6556
+ * @param {*} [options] Override http request option.
6557
+ * @throws {RequiredError}
6558
+ */
6559
+ domainControllerCreateInviteLink: async (id, inviteLinkCreateInputDTO, options = {}) => {
6560
+ // verify required parameter 'id' is not null or undefined
6561
+ assertParamExists('domainControllerCreateInviteLink', 'id', id);
6562
+ const localVarPath = `/domain/{id}/invite-link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6565
+ let baseOptions;
6566
+ if (configuration) {
6567
+ baseOptions = configuration.baseOptions;
6568
+ }
6569
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6570
+ const localVarHeaderParameter = {};
6571
+ const localVarQueryParameter = {};
6572
+ // authentication adminAuth required
6573
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6574
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6575
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6577
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6578
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkCreateInputDTO, localVarRequestOptions, configuration);
6579
+ return {
6580
+ url: toPathString(localVarUrlObj),
6581
+ options: localVarRequestOptions,
6582
+ };
6583
+ },
6519
6584
  /**
6520
6585
  * <br> OperationId: `DomainControllerGetOne`
6521
6586
  * @summary Get one
@@ -6727,6 +6792,20 @@ export const DomainApiFp = function (configuration) {
6727
6792
  const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerCreate']?.[localVarOperationServerIndex]?.url;
6728
6793
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6729
6794
  },
6795
+ /**
6796
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
6797
+ * @summary Create admin invite link for a domain
6798
+ * @param {string} id
6799
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
6800
+ * @param {*} [options] Override http request option.
6801
+ * @throws {RequiredError}
6802
+ */
6803
+ async domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options) {
6804
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options);
6805
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6806
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerCreateInviteLink']?.[localVarOperationServerIndex]?.url;
6807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6808
+ },
6730
6809
  /**
6731
6810
  * <br> OperationId: `DomainControllerGetOne`
6732
6811
  * @summary Get one
@@ -6828,6 +6907,19 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
6828
6907
  .domainControllerCreate(domainCreateInputDTO, options)
6829
6908
  .then((request) => request(axios, basePath));
6830
6909
  },
6910
+ /**
6911
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
6912
+ * @summary Create admin invite link for a domain
6913
+ * @param {string} id
6914
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
6915
+ * @param {*} [options] Override http request option.
6916
+ * @throws {RequiredError}
6917
+ */
6918
+ domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options) {
6919
+ return localVarFp
6920
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
6921
+ .then((request) => request(axios, basePath));
6922
+ },
6831
6923
  /**
6832
6924
  * <br> OperationId: `DomainControllerGetOne`
6833
6925
  * @summary Get one
@@ -6918,6 +7010,20 @@ export class DomainApi extends BaseAPI {
6918
7010
  .domainControllerCreate(domainCreateInputDTO, options)
6919
7011
  .then((request) => request(this.axios, this.basePath));
6920
7012
  }
7013
+ /**
7014
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
7015
+ * @summary Create admin invite link for a domain
7016
+ * @param {string} id
7017
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
7018
+ * @param {*} [options] Override http request option.
7019
+ * @throws {RequiredError}
7020
+ * @memberof DomainApi
7021
+ */
7022
+ domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options) {
7023
+ return DomainApiFp(this.configuration)
7024
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
7025
+ .then((request) => request(this.axios, this.basePath));
7026
+ }
6921
7027
  /**
6922
7028
  * <br> OperationId: `DomainControllerGetOne`
6923
7029
  * @summary Get one
@@ -10580,6 +10686,369 @@ export class HookApi extends BaseAPI {
10580
10686
  .then((request) => request(this.axios, this.basePath));
10581
10687
  }
10582
10688
  }
10689
+ /**
10690
+ * InviteLinkApi - axios parameter creator
10691
+ * @export
10692
+ */
10693
+ export const InviteLinkApiAxiosParamCreator = function (configuration) {
10694
+ return {
10695
+ /**
10696
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
10697
+ * @summary Create invite link
10698
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
10699
+ * @param {*} [options] Override http request option.
10700
+ * @throws {RequiredError}
10701
+ */
10702
+ inviteLinkControllerCreate: async (inviteLinkCreateInputDTO, options = {}) => {
10703
+ const localVarPath = `/invite-link`;
10704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10706
+ let baseOptions;
10707
+ if (configuration) {
10708
+ baseOptions = configuration.baseOptions;
10709
+ }
10710
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10711
+ const localVarHeaderParameter = {};
10712
+ const localVarQueryParameter = {};
10713
+ // authentication domainAuth required
10714
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10715
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10716
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10717
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10718
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkCreateInputDTO, localVarRequestOptions, configuration);
10719
+ return {
10720
+ url: toPathString(localVarUrlObj),
10721
+ options: localVarRequestOptions,
10722
+ };
10723
+ },
10724
+ /**
10725
+ * <br> OperationId: `InviteLinkControllerPreview`
10726
+ * @summary Preview
10727
+ * @param {string} token
10728
+ * @param {*} [options] Override http request option.
10729
+ * @throws {RequiredError}
10730
+ */
10731
+ inviteLinkControllerPreview: async (token, options = {}) => {
10732
+ // verify required parameter 'token' is not null or undefined
10733
+ assertParamExists('inviteLinkControllerPreview', 'token', token);
10734
+ const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
10735
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10736
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10737
+ let baseOptions;
10738
+ if (configuration) {
10739
+ baseOptions = configuration.baseOptions;
10740
+ }
10741
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10742
+ const localVarHeaderParameter = {};
10743
+ const localVarQueryParameter = {};
10744
+ // authentication domainAuth required
10745
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10747
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10748
+ return {
10749
+ url: toPathString(localVarUrlObj),
10750
+ options: localVarRequestOptions,
10751
+ };
10752
+ },
10753
+ /**
10754
+ * <br> OperationId: `InviteLinkControllerRedeem`
10755
+ * @summary Redeem
10756
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
10757
+ * @param {*} [options] Override http request option.
10758
+ * @throws {RequiredError}
10759
+ */
10760
+ inviteLinkControllerRedeem: async (redeemInputDTO, options = {}) => {
10761
+ const localVarPath = `/invite-link/redeem`;
10762
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10763
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10764
+ let baseOptions;
10765
+ if (configuration) {
10766
+ baseOptions = configuration.baseOptions;
10767
+ }
10768
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10769
+ const localVarHeaderParameter = {};
10770
+ const localVarQueryParameter = {};
10771
+ // authentication domainAuth required
10772
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10773
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10775
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10776
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
10777
+ return {
10778
+ url: toPathString(localVarUrlObj),
10779
+ options: localVarRequestOptions,
10780
+ };
10781
+ },
10782
+ /**
10783
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
10784
+ * @summary Revoke
10785
+ * @param {string} id
10786
+ * @param {*} [options] Override http request option.
10787
+ * @throws {RequiredError}
10788
+ */
10789
+ inviteLinkControllerRevoke: async (id, options = {}) => {
10790
+ // verify required parameter 'id' is not null or undefined
10791
+ assertParamExists('inviteLinkControllerRevoke', 'id', id);
10792
+ const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10793
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10794
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10795
+ let baseOptions;
10796
+ if (configuration) {
10797
+ baseOptions = configuration.baseOptions;
10798
+ }
10799
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
10800
+ const localVarHeaderParameter = {};
10801
+ const localVarQueryParameter = {};
10802
+ // authentication domainAuth required
10803
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10804
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10805
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10806
+ return {
10807
+ url: toPathString(localVarUrlObj),
10808
+ options: localVarRequestOptions,
10809
+ };
10810
+ },
10811
+ /**
10812
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
10813
+ * @summary Search
10814
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
10815
+ * @param {*} [options] Override http request option.
10816
+ * @throws {RequiredError}
10817
+ */
10818
+ inviteLinkControllerSearch: async (inviteLinkSearchInputDTO, options = {}) => {
10819
+ const localVarPath = `/invite-link/search`;
10820
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10821
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10822
+ let baseOptions;
10823
+ if (configuration) {
10824
+ baseOptions = configuration.baseOptions;
10825
+ }
10826
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10827
+ const localVarHeaderParameter = {};
10828
+ const localVarQueryParameter = {};
10829
+ // authentication domainAuth required
10830
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10831
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10832
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10833
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10834
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkSearchInputDTO, localVarRequestOptions, configuration);
10835
+ return {
10836
+ url: toPathString(localVarUrlObj),
10837
+ options: localVarRequestOptions,
10838
+ };
10839
+ },
10840
+ };
10841
+ };
10842
+ /**
10843
+ * InviteLinkApi - functional programming interface
10844
+ * @export
10845
+ */
10846
+ export const InviteLinkApiFp = function (configuration) {
10847
+ const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
10848
+ return {
10849
+ /**
10850
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
10851
+ * @summary Create invite link
10852
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
10853
+ * @param {*} [options] Override http request option.
10854
+ * @throws {RequiredError}
10855
+ */
10856
+ async inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
10857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(inviteLinkCreateInputDTO, options);
10858
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10859
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
10860
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10861
+ },
10862
+ /**
10863
+ * <br> OperationId: `InviteLinkControllerPreview`
10864
+ * @summary Preview
10865
+ * @param {string} token
10866
+ * @param {*} [options] Override http request option.
10867
+ * @throws {RequiredError}
10868
+ */
10869
+ async inviteLinkControllerPreview(token, options) {
10870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
10871
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10872
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
10873
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10874
+ },
10875
+ /**
10876
+ * <br> OperationId: `InviteLinkControllerRedeem`
10877
+ * @summary Redeem
10878
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
10879
+ * @param {*} [options] Override http request option.
10880
+ * @throws {RequiredError}
10881
+ */
10882
+ async inviteLinkControllerRedeem(redeemInputDTO, options) {
10883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
10884
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10885
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
10886
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10887
+ },
10888
+ /**
10889
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
10890
+ * @summary Revoke
10891
+ * @param {string} id
10892
+ * @param {*} [options] Override http request option.
10893
+ * @throws {RequiredError}
10894
+ */
10895
+ async inviteLinkControllerRevoke(id, options) {
10896
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
10897
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10898
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
10899
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10900
+ },
10901
+ /**
10902
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
10903
+ * @summary Search
10904
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
10905
+ * @param {*} [options] Override http request option.
10906
+ * @throws {RequiredError}
10907
+ */
10908
+ async inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
10909
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(inviteLinkSearchInputDTO, options);
10910
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10911
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
10912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10913
+ },
10914
+ };
10915
+ };
10916
+ /**
10917
+ * InviteLinkApi - factory interface
10918
+ * @export
10919
+ */
10920
+ export const InviteLinkApiFactory = function (configuration, basePath, axios) {
10921
+ const localVarFp = InviteLinkApiFp(configuration);
10922
+ return {
10923
+ /**
10924
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
10925
+ * @summary Create invite link
10926
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
10927
+ * @param {*} [options] Override http request option.
10928
+ * @throws {RequiredError}
10929
+ */
10930
+ inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
10931
+ return localVarFp
10932
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
10933
+ .then((request) => request(axios, basePath));
10934
+ },
10935
+ /**
10936
+ * <br> OperationId: `InviteLinkControllerPreview`
10937
+ * @summary Preview
10938
+ * @param {string} token
10939
+ * @param {*} [options] Override http request option.
10940
+ * @throws {RequiredError}
10941
+ */
10942
+ inviteLinkControllerPreview(token, options) {
10943
+ return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
10944
+ },
10945
+ /**
10946
+ * <br> OperationId: `InviteLinkControllerRedeem`
10947
+ * @summary Redeem
10948
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
10949
+ * @param {*} [options] Override http request option.
10950
+ * @throws {RequiredError}
10951
+ */
10952
+ inviteLinkControllerRedeem(redeemInputDTO, options) {
10953
+ return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
10954
+ },
10955
+ /**
10956
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
10957
+ * @summary Revoke
10958
+ * @param {string} id
10959
+ * @param {*} [options] Override http request option.
10960
+ * @throws {RequiredError}
10961
+ */
10962
+ inviteLinkControllerRevoke(id, options) {
10963
+ return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
10964
+ },
10965
+ /**
10966
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
10967
+ * @summary Search
10968
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
10969
+ * @param {*} [options] Override http request option.
10970
+ * @throws {RequiredError}
10971
+ */
10972
+ inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
10973
+ return localVarFp
10974
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
10975
+ .then((request) => request(axios, basePath));
10976
+ },
10977
+ };
10978
+ };
10979
+ /**
10980
+ * InviteLinkApi - object-oriented interface
10981
+ * @export
10982
+ * @class InviteLinkApi
10983
+ * @extends {BaseAPI}
10984
+ */
10985
+ export class InviteLinkApi extends BaseAPI {
10986
+ /**
10987
+ * Creates a new shareable invite link. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — copy the URL and distribute it securely. Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
10988
+ * @summary Create invite link
10989
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
10990
+ * @param {*} [options] Override http request option.
10991
+ * @throws {RequiredError}
10992
+ * @memberof InviteLinkApi
10993
+ */
10994
+ inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
10995
+ return InviteLinkApiFp(this.configuration)
10996
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
10997
+ .then((request) => request(this.axios, this.basePath));
10998
+ }
10999
+ /**
11000
+ * <br> OperationId: `InviteLinkControllerPreview`
11001
+ * @summary Preview
11002
+ * @param {string} token
11003
+ * @param {*} [options] Override http request option.
11004
+ * @throws {RequiredError}
11005
+ * @memberof InviteLinkApi
11006
+ */
11007
+ inviteLinkControllerPreview(token, options) {
11008
+ return InviteLinkApiFp(this.configuration)
11009
+ .inviteLinkControllerPreview(token, options)
11010
+ .then((request) => request(this.axios, this.basePath));
11011
+ }
11012
+ /**
11013
+ * <br> OperationId: `InviteLinkControllerRedeem`
11014
+ * @summary Redeem
11015
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
11016
+ * @param {*} [options] Override http request option.
11017
+ * @throws {RequiredError}
11018
+ * @memberof InviteLinkApi
11019
+ */
11020
+ inviteLinkControllerRedeem(redeemInputDTO, options) {
11021
+ return InviteLinkApiFp(this.configuration)
11022
+ .inviteLinkControllerRedeem(redeemInputDTO, options)
11023
+ .then((request) => request(this.axios, this.basePath));
11024
+ }
11025
+ /**
11026
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
11027
+ * @summary Revoke
11028
+ * @param {string} id
11029
+ * @param {*} [options] Override http request option.
11030
+ * @throws {RequiredError}
11031
+ * @memberof InviteLinkApi
11032
+ */
11033
+ inviteLinkControllerRevoke(id, options) {
11034
+ return InviteLinkApiFp(this.configuration)
11035
+ .inviteLinkControllerRevoke(id, options)
11036
+ .then((request) => request(this.axios, this.basePath));
11037
+ }
11038
+ /**
11039
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
11040
+ * @summary Search
11041
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
11042
+ * @param {*} [options] Override http request option.
11043
+ * @throws {RequiredError}
11044
+ * @memberof InviteLinkApi
11045
+ */
11046
+ inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
11047
+ return InviteLinkApiFp(this.configuration)
11048
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
11049
+ .then((request) => request(this.axios, this.basePath));
11050
+ }
11051
+ }
10583
11052
  /**
10584
11053
  * ItemApi - axios parameter creator
10585
11054
  * @export
@@ -17452,6 +17921,32 @@ export const UserApiAxiosParamCreator = function (configuration) {
17452
17921
  options: localVarRequestOptions,
17453
17922
  };
17454
17923
  },
17924
+ /**
17925
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
17926
+ * @summary Count billable dashboard users
17927
+ * @param {*} [options] Override http request option.
17928
+ * @throws {RequiredError}
17929
+ */
17930
+ userControllerCountBillableDashboardUsers: async (options = {}) => {
17931
+ const localVarPath = `/user/count`;
17932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17933
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17934
+ let baseOptions;
17935
+ if (configuration) {
17936
+ baseOptions = configuration.baseOptions;
17937
+ }
17938
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
17939
+ const localVarHeaderParameter = {};
17940
+ const localVarQueryParameter = {};
17941
+ // authentication domainAuth required
17942
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17944
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
17945
+ return {
17946
+ url: toPathString(localVarUrlObj),
17947
+ options: localVarRequestOptions,
17948
+ };
17949
+ },
17455
17950
  /**
17456
17951
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
17457
17952
  * @summary Create
@@ -17541,6 +18036,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
17541
18036
  * @summary Invite
17542
18037
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
17543
18038
  * @param {*} [options] Override http request option.
18039
+ * @deprecated
17544
18040
  * @throws {RequiredError}
17545
18041
  */
17546
18042
  userControllerInvite: async (inviteCreateDTO, options = {}) => {
@@ -17852,6 +18348,18 @@ export const UserApiFp = function (configuration) {
17852
18348
  const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerAssignRole']?.[localVarOperationServerIndex]?.url;
17853
18349
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17854
18350
  },
18351
+ /**
18352
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
18353
+ * @summary Count billable dashboard users
18354
+ * @param {*} [options] Override http request option.
18355
+ * @throws {RequiredError}
18356
+ */
18357
+ async userControllerCountBillableDashboardUsers(options) {
18358
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerCountBillableDashboardUsers(options);
18359
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18360
+ const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerCountBillableDashboardUsers']?.[localVarOperationServerIndex]?.url;
18361
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18362
+ },
17855
18363
  /**
17856
18364
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
17857
18365
  * @summary Create
@@ -17895,6 +18403,7 @@ export const UserApiFp = function (configuration) {
17895
18403
  * @summary Invite
17896
18404
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
17897
18405
  * @param {*} [options] Override http request option.
18406
+ * @deprecated
17898
18407
  * @throws {RequiredError}
17899
18408
  */
17900
18409
  async userControllerInvite(inviteCreateDTO, options) {
@@ -18043,6 +18552,15 @@ export const UserApiFactory = function (configuration, basePath, axios) {
18043
18552
  .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options)
18044
18553
  .then((request) => request(axios, basePath));
18045
18554
  },
18555
+ /**
18556
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
18557
+ * @summary Count billable dashboard users
18558
+ * @param {*} [options] Override http request option.
18559
+ * @throws {RequiredError}
18560
+ */
18561
+ userControllerCountBillableDashboardUsers(options) {
18562
+ return localVarFp.userControllerCountBillableDashboardUsers(options).then((request) => request(axios, basePath));
18563
+ },
18046
18564
  /**
18047
18565
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
18048
18566
  * @summary Create
@@ -18077,6 +18595,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
18077
18595
  * @summary Invite
18078
18596
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
18079
18597
  * @param {*} [options] Override http request option.
18598
+ * @deprecated
18080
18599
  * @throws {RequiredError}
18081
18600
  */
18082
18601
  userControllerInvite(inviteCreateDTO, options) {
@@ -18198,6 +18717,18 @@ export class UserApi extends BaseAPI {
18198
18717
  .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options)
18199
18718
  .then((request) => request(this.axios, this.basePath));
18200
18719
  }
18720
+ /**
18721
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
18722
+ * @summary Count billable dashboard users
18723
+ * @param {*} [options] Override http request option.
18724
+ * @throws {RequiredError}
18725
+ * @memberof UserApi
18726
+ */
18727
+ userControllerCountBillableDashboardUsers(options) {
18728
+ return UserApiFp(this.configuration)
18729
+ .userControllerCountBillableDashboardUsers(options)
18730
+ .then((request) => request(this.axios, this.basePath));
18731
+ }
18201
18732
  /**
18202
18733
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
18203
18734
  * @summary Create
@@ -18241,6 +18772,7 @@ export class UserApi extends BaseAPI {
18241
18772
  * @summary Invite
18242
18773
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
18243
18774
  * @param {*} [options] Override http request option.
18775
+ * @deprecated
18244
18776
  * @throws {RequiredError}
18245
18777
  * @memberof UserApi
18246
18778
  */