@takaro/apiclient 0.0.0-dev.3ea3701 → 0.0.0-dev.3f7926c

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.
@@ -2276,6 +2276,12 @@ export interface DomainCreateInputDTO {
2276
2276
  * @memberof DomainCreateInputDTO
2277
2277
  */
2278
2278
  maxDiscordLinkedRoles?: number;
2279
+ /**
2280
+ *
2281
+ * @type {boolean}
2282
+ * @memberof DomainCreateInputDTO
2283
+ */
2284
+ skipBuiltinSeeding?: boolean;
2279
2285
  /**
2280
2286
  *
2281
2287
  * @type {string}
@@ -3147,19 +3153,19 @@ export interface ErrorOutput {
3147
3153
  * @type {string}
3148
3154
  * @memberof ErrorOutput
3149
3155
  */
3150
- code: string;
3156
+ code?: string;
3151
3157
  /**
3152
3158
  *
3153
3159
  * @type {string}
3154
3160
  * @memberof ErrorOutput
3155
3161
  */
3156
- message: string;
3162
+ message?: string;
3157
3163
  /**
3158
3164
  *
3159
3165
  * @type {string}
3160
3166
  * @memberof ErrorOutput
3161
3167
  */
3162
- details: string;
3168
+ details?: string;
3163
3169
  }
3164
3170
  /**
3165
3171
  *
@@ -3172,7 +3178,7 @@ export interface EventChatMessage {
3172
3178
  * @type {IGamePlayer}
3173
3179
  * @memberof EventChatMessage
3174
3180
  */
3175
- player: IGamePlayer;
3181
+ player?: IGamePlayer;
3176
3182
  /**
3177
3183
  *
3178
3184
  * @type {string}
@@ -3305,6 +3311,7 @@ export const EventCreateDTOEventNameEnum = {
3305
3311
  PlayerInventoryChanged: 'player-inventory-changed',
3306
3312
  EventRateLimited: 'event-rate-limited',
3307
3313
  PlayerSyncSnapshot: 'player-sync-snapshot',
3314
+ InviteLinkCreated: 'invite-link-created',
3308
3315
  PlayerConnected: 'player-connected',
3309
3316
  PlayerDisconnected: 'player-disconnected',
3310
3317
  ChatMessage: 'chat-message',
@@ -3523,6 +3530,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
3523
3530
  PlayerInventoryChanged: 'player-inventory-changed',
3524
3531
  EventRateLimited: 'event-rate-limited',
3525
3532
  PlayerSyncSnapshot: 'player-sync-snapshot',
3533
+ InviteLinkCreated: 'invite-link-created',
3526
3534
  PlayerConnected: 'player-connected',
3527
3535
  PlayerDisconnected: 'player-disconnected',
3528
3536
  ChatMessage: 'chat-message',
@@ -3893,6 +3901,7 @@ export const EventOutputDTOEventNameEnum = {
3893
3901
  PlayerInventoryChanged: 'player-inventory-changed',
3894
3902
  EventRateLimited: 'event-rate-limited',
3895
3903
  PlayerSyncSnapshot: 'player-sync-snapshot',
3904
+ InviteLinkCreated: 'invite-link-created',
3896
3905
  PlayerConnected: 'player-connected',
3897
3906
  PlayerDisconnected: 'player-disconnected',
3898
3907
  ChatMessage: 'chat-message',
@@ -3925,6 +3934,7 @@ export type EventOutputDTOMeta =
3925
3934
  | TakaroEventGameserverDeleted
3926
3935
  | TakaroEventGameserverUpdated
3927
3936
  | TakaroEventHookExecuted
3937
+ | TakaroEventInviteLinkCreated
3928
3938
  | TakaroEventModuleCreated
3929
3939
  | TakaroEventModuleDeleted
3930
3940
  | TakaroEventModuleInstalled
@@ -4132,6 +4142,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
4132
4142
  PlayerInventoryChanged: 'player-inventory-changed',
4133
4143
  EventRateLimited: 'event-rate-limited',
4134
4144
  PlayerSyncSnapshot: 'player-sync-snapshot',
4145
+ InviteLinkCreated: 'invite-link-created',
4135
4146
  PlayerConnected: 'player-connected',
4136
4147
  PlayerDisconnected: 'player-disconnected',
4137
4148
  ChatMessage: 'chat-message',
@@ -5626,6 +5637,7 @@ export const HookCreateDTOEventTypeEnum = {
5626
5637
  PlayerInventoryChanged: 'player-inventory-changed',
5627
5638
  EventRateLimited: 'event-rate-limited',
5628
5639
  PlayerSyncSnapshot: 'player-sync-snapshot',
5640
+ InviteLinkCreated: 'invite-link-created',
5629
5641
  } as const;
5630
5642
 
5631
5643
  export type HookCreateDTOEventTypeEnum = (typeof HookCreateDTOEventTypeEnum)[keyof typeof HookCreateDTOEventTypeEnum];
@@ -5789,6 +5801,7 @@ export const HookOutputDTOEventTypeEnum = {
5789
5801
  PlayerInventoryChanged: 'player-inventory-changed',
5790
5802
  EventRateLimited: 'event-rate-limited',
5791
5803
  PlayerSyncSnapshot: 'player-sync-snapshot',
5804
+ InviteLinkCreated: 'invite-link-created',
5792
5805
  } as const;
5793
5806
 
5794
5807
  export type HookOutputDTOEventTypeEnum = (typeof HookOutputDTOEventTypeEnum)[keyof typeof HookOutputDTOEventTypeEnum];
@@ -5897,6 +5910,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
5897
5910
  PlayerInventoryChanged: 'player-inventory-changed',
5898
5911
  EventRateLimited: 'event-rate-limited',
5899
5912
  PlayerSyncSnapshot: 'player-sync-snapshot',
5913
+ InviteLinkCreated: 'invite-link-created',
5900
5914
  } as const;
5901
5915
 
5902
5916
  export type HookSearchInputAllowedFiltersEventTypeEnum =
@@ -6077,6 +6091,7 @@ export const HookTriggerDTOEventTypeEnum = {
6077
6091
  PlayerInventoryChanged: 'player-inventory-changed',
6078
6092
  EventRateLimited: 'event-rate-limited',
6079
6093
  PlayerSyncSnapshot: 'player-sync-snapshot',
6094
+ InviteLinkCreated: 'invite-link-created',
6080
6095
  } as const;
6081
6096
 
6082
6097
  export type HookTriggerDTOEventTypeEnum =
@@ -6167,6 +6182,7 @@ export const HookUpdateDTOEventTypeEnum = {
6167
6182
  PlayerInventoryChanged: 'player-inventory-changed',
6168
6183
  EventRateLimited: 'event-rate-limited',
6169
6184
  PlayerSyncSnapshot: 'player-sync-snapshot',
6185
+ InviteLinkCreated: 'invite-link-created',
6170
6186
  } as const;
6171
6187
 
6172
6188
  export type HookUpdateDTOEventTypeEnum = (typeof HookUpdateDTOEventTypeEnum)[keyof typeof HookUpdateDTOEventTypeEnum];
@@ -6499,6 +6515,7 @@ export const IHookEventTypeEnum = {
6499
6515
  PlayerInventoryChanged: 'player-inventory-changed',
6500
6516
  EventRateLimited: 'event-rate-limited',
6501
6517
  PlayerSyncSnapshot: 'player-sync-snapshot',
6518
+ InviteLinkCreated: 'invite-link-created',
6502
6519
  } as const;
6503
6520
 
6504
6521
  export type IHookEventTypeEnum = (typeof IHookEventTypeEnum)[keyof typeof IHookEventTypeEnum];
@@ -6928,25 +6945,6 @@ export interface InviteCreateDTO {
6928
6945
  */
6929
6946
  email: string;
6930
6947
  }
6931
- /**
6932
- *
6933
- * @export
6934
- * @interface InviteOutputDTO
6935
- */
6936
- export interface InviteOutputDTO {
6937
- /**
6938
- *
6939
- * @type {string}
6940
- * @memberof InviteOutputDTO
6941
- */
6942
- botInvite: string;
6943
- /**
6944
- *
6945
- * @type {string}
6946
- * @memberof InviteOutputDTO
6947
- */
6948
- devServer: string;
6949
- }
6950
6948
  /**
6951
6949
  *
6952
6950
  * @export
@@ -7090,27 +7088,28 @@ export interface InviteLinkCreateResultDTOAPI {
7090
7088
  /**
7091
7089
  *
7092
7090
  * @export
7093
- * @interface InviteLinkOutputDTO
7091
+ * @interface InviteLinkOutputArrayDTOAPI
7094
7092
  */
7095
- export interface InviteLinkOutputDTO {
7096
- /**
7097
- *
7098
- * @type {string}
7099
- * @memberof InviteLinkOutputDTO
7100
- */
7101
- id: string;
7093
+ export interface InviteLinkOutputArrayDTOAPI {
7102
7094
  /**
7103
7095
  *
7104
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7105
- * @memberof InviteLinkOutputDTO
7096
+ * @type {Array<InviteLinkOutputDTO>}
7097
+ * @memberof InviteLinkOutputArrayDTOAPI
7106
7098
  */
7107
- createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7099
+ data: Array<InviteLinkOutputDTO>;
7108
7100
  /**
7109
7101
  *
7110
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7111
- * @memberof InviteLinkOutputDTO
7102
+ * @type {MetadataOutput}
7103
+ * @memberof InviteLinkOutputArrayDTOAPI
7112
7104
  */
7113
- updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7105
+ meta: MetadataOutput;
7106
+ }
7107
+ /**
7108
+ *
7109
+ * @export
7110
+ * @interface InviteLinkOutputDTO
7111
+ */
7112
+ export interface InviteLinkOutputDTO {
7114
7113
  /**
7115
7114
  *
7116
7115
  * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
@@ -7159,6 +7158,24 @@ export interface InviteLinkOutputDTO {
7159
7158
  * @memberof InviteLinkOutputDTO
7160
7159
  */
7161
7160
  roles: Array<InviteLinkRoleDTO>;
7161
+ /**
7162
+ *
7163
+ * @type {string}
7164
+ * @memberof InviteLinkOutputDTO
7165
+ */
7166
+ id: string;
7167
+ /**
7168
+ *
7169
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7170
+ * @memberof InviteLinkOutputDTO
7171
+ */
7172
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7173
+ /**
7174
+ *
7175
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7176
+ * @memberof InviteLinkOutputDTO
7177
+ */
7178
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7162
7179
  }
7163
7180
 
7164
7181
  export const InviteLinkOutputDTOStatusEnum = {
@@ -7190,25 +7207,6 @@ export interface InviteLinkOutputDTOAPI {
7190
7207
  */
7191
7208
  meta: MetadataOutput;
7192
7209
  }
7193
- /**
7194
- *
7195
- * @export
7196
- * @interface InviteLinkOutputArrayDTOAPI
7197
- */
7198
- export interface InviteLinkOutputArrayDTOAPI {
7199
- /**
7200
- *
7201
- * @type {Array<InviteLinkOutputDTO>}
7202
- * @memberof InviteLinkOutputArrayDTOAPI
7203
- */
7204
- data: Array<InviteLinkOutputDTO>;
7205
- /**
7206
- *
7207
- * @type {MetadataOutput}
7208
- * @memberof InviteLinkOutputArrayDTOAPI
7209
- */
7210
- meta: MetadataOutput;
7211
- }
7212
7210
  /**
7213
7211
  *
7214
7212
  * @export
@@ -7406,15 +7404,21 @@ export type InviteLinkSearchInputDTOSortDirectionEnum =
7406
7404
  /**
7407
7405
  *
7408
7406
  * @export
7409
- * @interface RedeemInputDTO
7407
+ * @interface InviteOutputDTO
7410
7408
  */
7411
- export interface RedeemInputDTO {
7409
+ export interface InviteOutputDTO {
7412
7410
  /**
7413
7411
  *
7414
7412
  * @type {string}
7415
- * @memberof RedeemInputDTO
7413
+ * @memberof InviteOutputDTO
7416
7414
  */
7417
- token: string;
7415
+ botInvite: string;
7416
+ /**
7417
+ *
7418
+ * @type {string}
7419
+ * @memberof InviteOutputDTO
7420
+ */
7421
+ devServer: string;
7418
7422
  }
7419
7423
  /**
7420
7424
  *
@@ -8322,7 +8326,7 @@ export interface MetadataOutput {
8322
8326
  * @type {ErrorOutput}
8323
8327
  * @memberof MetadataOutput
8324
8328
  */
8325
- error: ErrorOutput;
8329
+ error?: ErrorOutput;
8326
8330
  /**
8327
8331
  *
8328
8332
  * @type {number}
@@ -12590,6 +12594,19 @@ export const RecentOrderDTOStatusEnum = {
12590
12594
 
12591
12595
  export type RecentOrderDTOStatusEnum = (typeof RecentOrderDTOStatusEnum)[keyof typeof RecentOrderDTOStatusEnum];
12592
12596
 
12597
+ /**
12598
+ *
12599
+ * @export
12600
+ * @interface RedeemInputDTO
12601
+ */
12602
+ export interface RedeemInputDTO {
12603
+ /**
12604
+ *
12605
+ * @type {string}
12606
+ * @memberof RedeemInputDTO
12607
+ */
12608
+ token: string;
12609
+ }
12593
12610
  /**
12594
12611
  *
12595
12612
  * @export
@@ -12601,7 +12618,7 @@ export interface RedirectQs {
12601
12618
  * @type {string}
12602
12619
  * @memberof RedirectQs
12603
12620
  */
12604
- redirect: string;
12621
+ redirect?: string;
12605
12622
  }
12606
12623
  /**
12607
12624
  *
@@ -16322,6 +16339,49 @@ export interface TakaroEventHookExecuted {
16322
16339
  */
16323
16340
  timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16324
16341
  }
16342
+ /**
16343
+ *
16344
+ * @export
16345
+ * @interface TakaroEventInviteLinkCreated
16346
+ */
16347
+ export interface TakaroEventInviteLinkCreated {
16348
+ /**
16349
+ *
16350
+ * @type {string}
16351
+ * @memberof TakaroEventInviteLinkCreated
16352
+ */
16353
+ inviteLinkId: string;
16354
+ /**
16355
+ *
16356
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
16357
+ * @memberof TakaroEventInviteLinkCreated
16358
+ */
16359
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16360
+ /**
16361
+ *
16362
+ * @type {number}
16363
+ * @memberof TakaroEventInviteLinkCreated
16364
+ */
16365
+ maxUses: number;
16366
+ /**
16367
+ *
16368
+ * @type {Array<string>}
16369
+ * @memberof TakaroEventInviteLinkCreated
16370
+ */
16371
+ roleIds: Array<string>;
16372
+ /**
16373
+ *
16374
+ * @type {boolean}
16375
+ * @memberof TakaroEventInviteLinkCreated
16376
+ */
16377
+ staffOrigin: boolean;
16378
+ /**
16379
+ *
16380
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
16381
+ * @memberof TakaroEventInviteLinkCreated
16382
+ */
16383
+ timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16384
+ }
16325
16385
  /**
16326
16386
  *
16327
16387
  * @export
@@ -17680,6 +17740,37 @@ export interface UserCreateInputDTO {
17680
17740
  */
17681
17741
  isDashboardUser?: boolean;
17682
17742
  }
17743
+ /**
17744
+ *
17745
+ * @export
17746
+ * @interface UserCreateInviteDTO
17747
+ */
17748
+ export interface UserCreateInviteDTO {
17749
+ /**
17750
+ *
17751
+ * @type {string}
17752
+ * @memberof UserCreateInviteDTO
17753
+ */
17754
+ name: string;
17755
+ /**
17756
+ *
17757
+ * @type {string}
17758
+ * @memberof UserCreateInviteDTO
17759
+ */
17760
+ email: string;
17761
+ /**
17762
+ *
17763
+ * @type {string}
17764
+ * @memberof UserCreateInviteDTO
17765
+ */
17766
+ idpId?: string;
17767
+ /**
17768
+ *
17769
+ * @type {boolean}
17770
+ * @memberof UserCreateInviteDTO
17771
+ */
17772
+ isDashboardUser?: boolean;
17773
+ }
17683
17774
  /**
17684
17775
  *
17685
17776
  * @export
@@ -17783,7 +17874,7 @@ export interface UserOutputDTO {
17783
17874
  * @type {PlayerOutputWithRolesDTO}
17784
17875
  * @memberof UserOutputDTO
17785
17876
  */
17786
- player: PlayerOutputWithRolesDTO;
17877
+ player?: PlayerOutputWithRolesDTO;
17787
17878
  /**
17788
17879
  *
17789
17880
  * @type {boolean}
@@ -17801,25 +17892,25 @@ export interface UserOutputDTO {
17801
17892
  * @type {string}
17802
17893
  * @memberof UserOutputDTO
17803
17894
  */
17804
- id: string;
17895
+ inviteLinkId?: string;
17805
17896
  /**
17806
17897
  *
17807
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17898
+ * @type {string}
17808
17899
  * @memberof UserOutputDTO
17809
17900
  */
17810
- createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17901
+ id: string;
17811
17902
  /**
17812
17903
  *
17813
17904
  * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17814
17905
  * @memberof UserOutputDTO
17815
17906
  */
17816
- updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17907
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17817
17908
  /**
17818
17909
  *
17819
- * @type {string}
17910
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17820
17911
  * @memberof UserOutputDTO
17821
17912
  */
17822
- inviteLinkId?: string;
17913
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17823
17914
  }
17824
17915
  /**
17825
17916
  *
@@ -17911,7 +18002,7 @@ export interface UserOutputWithRolesDTO {
17911
18002
  * @type {PlayerOutputWithRolesDTO}
17912
18003
  * @memberof UserOutputWithRolesDTO
17913
18004
  */
17914
- player: PlayerOutputWithRolesDTO;
18005
+ player?: PlayerOutputWithRolesDTO;
17915
18006
  /**
17916
18007
  *
17917
18008
  * @type {boolean}
@@ -26446,6 +26537,52 @@ export const DomainApiAxiosParamCreator = function (configuration?: Configuratio
26446
26537
  options: localVarRequestOptions,
26447
26538
  };
26448
26539
  },
26540
+ /**
26541
+ * 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`
26542
+ * @summary Create staff-recovery invite link for a domain
26543
+ * @param {string} id
26544
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
26545
+ * @param {*} [options] Override http request option.
26546
+ * @throws {RequiredError}
26547
+ */
26548
+ domainControllerCreateInviteLink: async (
26549
+ id: string,
26550
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
26551
+ options: RawAxiosRequestConfig = {},
26552
+ ): Promise<RequestArgs> => {
26553
+ // verify required parameter 'id' is not null or undefined
26554
+ assertParamExists('domainControllerCreateInviteLink', 'id', id);
26555
+ const localVarPath = `/domain/{id}/invite-link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
26556
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26557
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26558
+ let baseOptions;
26559
+ if (configuration) {
26560
+ baseOptions = configuration.baseOptions;
26561
+ }
26562
+
26563
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
26564
+ const localVarHeaderParameter = {} as any;
26565
+ const localVarQueryParameter = {} as any;
26566
+
26567
+ // authentication adminAuth required
26568
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
26569
+
26570
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26571
+
26572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26574
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
26575
+ localVarRequestOptions.data = serializeDataIfNeeded(
26576
+ inviteLinkCreateInputDTO,
26577
+ localVarRequestOptions,
26578
+ configuration,
26579
+ );
26580
+
26581
+ return {
26582
+ url: toPathString(localVarUrlObj),
26583
+ options: localVarRequestOptions,
26584
+ };
26585
+ },
26449
26586
  /**
26450
26587
  * <br> OperationId: `DomainControllerGetOne`
26451
26588
  * @summary Get one
@@ -26718,6 +26855,35 @@ export const DomainApiFp = function (configuration?: Configuration) {
26718
26855
  configuration,
26719
26856
  )(axios, localVarOperationServerBasePath || basePath);
26720
26857
  },
26858
+ /**
26859
+ * 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`
26860
+ * @summary Create staff-recovery invite link for a domain
26861
+ * @param {string} id
26862
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
26863
+ * @param {*} [options] Override http request option.
26864
+ * @throws {RequiredError}
26865
+ */
26866
+ async domainControllerCreateInviteLink(
26867
+ id: string,
26868
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
26869
+ options?: RawAxiosRequestConfig,
26870
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
26871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreateInviteLink(
26872
+ id,
26873
+ inviteLinkCreateInputDTO,
26874
+ options,
26875
+ );
26876
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26877
+ const localVarOperationServerBasePath =
26878
+ operationServerMap['DomainApi.domainControllerCreateInviteLink']?.[localVarOperationServerIndex]?.url;
26879
+ return (axios, basePath) =>
26880
+ createRequestFunction(
26881
+ localVarAxiosArgs,
26882
+ globalAxios,
26883
+ BASE_PATH,
26884
+ configuration,
26885
+ )(axios, localVarOperationServerBasePath || basePath);
26886
+ },
26721
26887
  /**
26722
26888
  * <br> OperationId: `DomainControllerGetOne`
26723
26889
  * @summary Get one
@@ -26892,6 +27058,23 @@ export const DomainApiFactory = function (configuration?: Configuration, basePat
26892
27058
  .domainControllerCreate(domainCreateInputDTO, options)
26893
27059
  .then((request) => request(axios, basePath));
26894
27060
  },
27061
+ /**
27062
+ * 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`
27063
+ * @summary Create staff-recovery invite link for a domain
27064
+ * @param {string} id
27065
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
27066
+ * @param {*} [options] Override http request option.
27067
+ * @throws {RequiredError}
27068
+ */
27069
+ domainControllerCreateInviteLink(
27070
+ id: string,
27071
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
27072
+ options?: RawAxiosRequestConfig,
27073
+ ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
27074
+ return localVarFp
27075
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
27076
+ .then((request) => request(axios, basePath));
27077
+ },
26895
27078
  /**
26896
27079
  * <br> OperationId: `DomainControllerGetOne`
26897
27080
  * @summary Get one
@@ -26997,6 +27180,25 @@ export class DomainApi extends BaseAPI {
26997
27180
  .then((request) => request(this.axios, this.basePath));
26998
27181
  }
26999
27182
 
27183
+ /**
27184
+ * 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`
27185
+ * @summary Create staff-recovery invite link for a domain
27186
+ * @param {string} id
27187
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
27188
+ * @param {*} [options] Override http request option.
27189
+ * @throws {RequiredError}
27190
+ * @memberof DomainApi
27191
+ */
27192
+ public domainControllerCreateInviteLink(
27193
+ id: string,
27194
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
27195
+ options?: RawAxiosRequestConfig,
27196
+ ) {
27197
+ return DomainApiFp(this.configuration)
27198
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
27199
+ .then((request) => request(this.axios, this.basePath));
27200
+ }
27201
+
27000
27202
  /**
27001
27203
  * <br> OperationId: `DomainControllerGetOne`
27002
27204
  * @summary Get one
@@ -27957,16 +28159,14 @@ export const ExternalAuthApiAxiosParamCreator = function (configuration?: Config
27957
28159
  /**
27958
28160
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27959
28161
  * @summary Auth discord
27960
- * @param {string} redirect
28162
+ * @param {string} [redirect]
27961
28163
  * @param {*} [options] Override http request option.
27962
28164
  * @throws {RequiredError}
27963
28165
  */
27964
28166
  externalAuthControllerAuthDiscord: async (
27965
- redirect: string,
28167
+ redirect?: string,
27966
28168
  options: RawAxiosRequestConfig = {},
27967
28169
  ): Promise<RequestArgs> => {
27968
- // verify required parameter 'redirect' is not null or undefined
27969
- assertParamExists('externalAuthControllerAuthDiscord', 'redirect', redirect);
27970
28170
  const localVarPath = `/auth/discord`;
27971
28171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27972
28172
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -28033,12 +28233,12 @@ export const ExternalAuthApiFp = function (configuration?: Configuration) {
28033
28233
  /**
28034
28234
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28035
28235
  * @summary Auth discord
28036
- * @param {string} redirect
28236
+ * @param {string} [redirect]
28037
28237
  * @param {*} [options] Override http request option.
28038
28238
  * @throws {RequiredError}
28039
28239
  */
28040
28240
  async externalAuthControllerAuthDiscord(
28041
- redirect: string,
28241
+ redirect?: string,
28042
28242
  options?: RawAxiosRequestConfig,
28043
28243
  ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28044
28244
  const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscord(redirect, options);
@@ -28092,11 +28292,11 @@ export const ExternalAuthApiFactory = function (
28092
28292
  /**
28093
28293
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28094
28294
  * @summary Auth discord
28095
- * @param {string} redirect
28295
+ * @param {string} [redirect]
28096
28296
  * @param {*} [options] Override http request option.
28097
28297
  * @throws {RequiredError}
28098
28298
  */
28099
- externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28299
+ externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28100
28300
  return localVarFp
28101
28301
  .externalAuthControllerAuthDiscord(redirect, options)
28102
28302
  .then((request) => request(axios, basePath));
@@ -28123,12 +28323,12 @@ export class ExternalAuthApi extends BaseAPI {
28123
28323
  /**
28124
28324
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28125
28325
  * @summary Auth discord
28126
- * @param {string} redirect
28326
+ * @param {string} [redirect]
28127
28327
  * @param {*} [options] Override http request option.
28128
28328
  * @throws {RequiredError}
28129
28329
  * @memberof ExternalAuthApi
28130
28330
  */
28131
- public externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig) {
28331
+ public externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig) {
28132
28332
  return ExternalAuthApiFp(this.configuration)
28133
28333
  .externalAuthControllerAuthDiscord(redirect, options)
28134
28334
  .then((request) => request(this.axios, this.basePath));
@@ -31830,6 +32030,488 @@ export class HookApi extends BaseAPI {
31830
32030
  }
31831
32031
  }
31832
32032
 
32033
+ /**
32034
+ * InviteLinkApi - axios parameter creator
32035
+ * @export
32036
+ */
32037
+ export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
32038
+ return {
32039
+ /**
32040
+ * 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`
32041
+ * @summary Create invite link
32042
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
32043
+ * @param {*} [options] Override http request option.
32044
+ * @throws {RequiredError}
32045
+ */
32046
+ inviteLinkControllerCreate: async (
32047
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
32048
+ options: RawAxiosRequestConfig = {},
32049
+ ): Promise<RequestArgs> => {
32050
+ const localVarPath = `/invite-link`;
32051
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32052
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32053
+ let baseOptions;
32054
+ if (configuration) {
32055
+ baseOptions = configuration.baseOptions;
32056
+ }
32057
+
32058
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
32059
+ const localVarHeaderParameter = {} as any;
32060
+ const localVarQueryParameter = {} as any;
32061
+
32062
+ // authentication domainAuth required
32063
+
32064
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32065
+
32066
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32067
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32068
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32069
+ localVarRequestOptions.data = serializeDataIfNeeded(
32070
+ inviteLinkCreateInputDTO,
32071
+ localVarRequestOptions,
32072
+ configuration,
32073
+ );
32074
+
32075
+ return {
32076
+ url: toPathString(localVarUrlObj),
32077
+ options: localVarRequestOptions,
32078
+ };
32079
+ },
32080
+ /**
32081
+ * <br> OperationId: `InviteLinkControllerPreview`
32082
+ * @summary Preview
32083
+ * @param {string} token
32084
+ * @param {*} [options] Override http request option.
32085
+ * @throws {RequiredError}
32086
+ */
32087
+ inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32088
+ // verify required parameter 'token' is not null or undefined
32089
+ assertParamExists('inviteLinkControllerPreview', 'token', token);
32090
+ const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
32091
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32092
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32093
+ let baseOptions;
32094
+ if (configuration) {
32095
+ baseOptions = configuration.baseOptions;
32096
+ }
32097
+
32098
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
32099
+ const localVarHeaderParameter = {} as any;
32100
+ const localVarQueryParameter = {} as any;
32101
+
32102
+ // authentication domainAuth required
32103
+
32104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32106
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32107
+
32108
+ return {
32109
+ url: toPathString(localVarUrlObj),
32110
+ options: localVarRequestOptions,
32111
+ };
32112
+ },
32113
+ /**
32114
+ * <br> OperationId: `InviteLinkControllerRedeem`
32115
+ * @summary Redeem
32116
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
32117
+ * @param {*} [options] Override http request option.
32118
+ * @throws {RequiredError}
32119
+ */
32120
+ inviteLinkControllerRedeem: async (
32121
+ redeemInputDTO?: RedeemInputDTO,
32122
+ options: RawAxiosRequestConfig = {},
32123
+ ): Promise<RequestArgs> => {
32124
+ const localVarPath = `/invite-link/redeem`;
32125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32127
+ let baseOptions;
32128
+ if (configuration) {
32129
+ baseOptions = configuration.baseOptions;
32130
+ }
32131
+
32132
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
32133
+ const localVarHeaderParameter = {} as any;
32134
+ const localVarQueryParameter = {} as any;
32135
+
32136
+ // authentication domainAuth required
32137
+
32138
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32139
+
32140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32142
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32143
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
32144
+
32145
+ return {
32146
+ url: toPathString(localVarUrlObj),
32147
+ options: localVarRequestOptions,
32148
+ };
32149
+ },
32150
+ /**
32151
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32152
+ * @summary Revoke
32153
+ * @param {string} id
32154
+ * @param {*} [options] Override http request option.
32155
+ * @throws {RequiredError}
32156
+ */
32157
+ inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32158
+ // verify required parameter 'id' is not null or undefined
32159
+ assertParamExists('inviteLinkControllerRevoke', 'id', id);
32160
+ const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
32161
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32162
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32163
+ let baseOptions;
32164
+ if (configuration) {
32165
+ baseOptions = configuration.baseOptions;
32166
+ }
32167
+
32168
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
32169
+ const localVarHeaderParameter = {} as any;
32170
+ const localVarQueryParameter = {} as any;
32171
+
32172
+ // authentication domainAuth required
32173
+
32174
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32176
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32177
+
32178
+ return {
32179
+ url: toPathString(localVarUrlObj),
32180
+ options: localVarRequestOptions,
32181
+ };
32182
+ },
32183
+ /**
32184
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
32185
+ * @summary Search
32186
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
32187
+ * @param {*} [options] Override http request option.
32188
+ * @throws {RequiredError}
32189
+ */
32190
+ inviteLinkControllerSearch: async (
32191
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
32192
+ options: RawAxiosRequestConfig = {},
32193
+ ): Promise<RequestArgs> => {
32194
+ const localVarPath = `/invite-link/search`;
32195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32196
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32197
+ let baseOptions;
32198
+ if (configuration) {
32199
+ baseOptions = configuration.baseOptions;
32200
+ }
32201
+
32202
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
32203
+ const localVarHeaderParameter = {} as any;
32204
+ const localVarQueryParameter = {} as any;
32205
+
32206
+ // authentication domainAuth required
32207
+
32208
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32209
+
32210
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32212
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32213
+ localVarRequestOptions.data = serializeDataIfNeeded(
32214
+ inviteLinkSearchInputDTO,
32215
+ localVarRequestOptions,
32216
+ configuration,
32217
+ );
32218
+
32219
+ return {
32220
+ url: toPathString(localVarUrlObj),
32221
+ options: localVarRequestOptions,
32222
+ };
32223
+ },
32224
+ };
32225
+ };
32226
+
32227
+ /**
32228
+ * InviteLinkApi - functional programming interface
32229
+ * @export
32230
+ */
32231
+ export const InviteLinkApiFp = function (configuration?: Configuration) {
32232
+ const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
32233
+ return {
32234
+ /**
32235
+ * 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`
32236
+ * @summary Create invite link
32237
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
32238
+ * @param {*} [options] Override http request option.
32239
+ * @throws {RequiredError}
32240
+ */
32241
+ async inviteLinkControllerCreate(
32242
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
32243
+ options?: RawAxiosRequestConfig,
32244
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
32245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
32246
+ inviteLinkCreateInputDTO,
32247
+ options,
32248
+ );
32249
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32250
+ const localVarOperationServerBasePath =
32251
+ operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
32252
+ return (axios, basePath) =>
32253
+ createRequestFunction(
32254
+ localVarAxiosArgs,
32255
+ globalAxios,
32256
+ BASE_PATH,
32257
+ configuration,
32258
+ )(axios, localVarOperationServerBasePath || basePath);
32259
+ },
32260
+ /**
32261
+ * <br> OperationId: `InviteLinkControllerPreview`
32262
+ * @summary Preview
32263
+ * @param {string} token
32264
+ * @param {*} [options] Override http request option.
32265
+ * @throws {RequiredError}
32266
+ */
32267
+ async inviteLinkControllerPreview(
32268
+ token: string,
32269
+ options?: RawAxiosRequestConfig,
32270
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
32271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
32272
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32273
+ const localVarOperationServerBasePath =
32274
+ operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
32275
+ return (axios, basePath) =>
32276
+ createRequestFunction(
32277
+ localVarAxiosArgs,
32278
+ globalAxios,
32279
+ BASE_PATH,
32280
+ configuration,
32281
+ )(axios, localVarOperationServerBasePath || basePath);
32282
+ },
32283
+ /**
32284
+ * <br> OperationId: `InviteLinkControllerRedeem`
32285
+ * @summary Redeem
32286
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
32287
+ * @param {*} [options] Override http request option.
32288
+ * @throws {RequiredError}
32289
+ */
32290
+ async inviteLinkControllerRedeem(
32291
+ redeemInputDTO?: RedeemInputDTO,
32292
+ options?: RawAxiosRequestConfig,
32293
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
32294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
32295
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32296
+ const localVarOperationServerBasePath =
32297
+ operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
32298
+ return (axios, basePath) =>
32299
+ createRequestFunction(
32300
+ localVarAxiosArgs,
32301
+ globalAxios,
32302
+ BASE_PATH,
32303
+ configuration,
32304
+ )(axios, localVarOperationServerBasePath || basePath);
32305
+ },
32306
+ /**
32307
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32308
+ * @summary Revoke
32309
+ * @param {string} id
32310
+ * @param {*} [options] Override http request option.
32311
+ * @throws {RequiredError}
32312
+ */
32313
+ async inviteLinkControllerRevoke(
32314
+ id: string,
32315
+ options?: RawAxiosRequestConfig,
32316
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
32317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
32318
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32319
+ const localVarOperationServerBasePath =
32320
+ operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
32321
+ return (axios, basePath) =>
32322
+ createRequestFunction(
32323
+ localVarAxiosArgs,
32324
+ globalAxios,
32325
+ BASE_PATH,
32326
+ configuration,
32327
+ )(axios, localVarOperationServerBasePath || basePath);
32328
+ },
32329
+ /**
32330
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
32331
+ * @summary Search
32332
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
32333
+ * @param {*} [options] Override http request option.
32334
+ * @throws {RequiredError}
32335
+ */
32336
+ async inviteLinkControllerSearch(
32337
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
32338
+ options?: RawAxiosRequestConfig,
32339
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
32340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
32341
+ inviteLinkSearchInputDTO,
32342
+ options,
32343
+ );
32344
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32345
+ const localVarOperationServerBasePath =
32346
+ operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
32347
+ return (axios, basePath) =>
32348
+ createRequestFunction(
32349
+ localVarAxiosArgs,
32350
+ globalAxios,
32351
+ BASE_PATH,
32352
+ configuration,
32353
+ )(axios, localVarOperationServerBasePath || basePath);
32354
+ },
32355
+ };
32356
+ };
32357
+
32358
+ /**
32359
+ * InviteLinkApi - factory interface
32360
+ * @export
32361
+ */
32362
+ export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
32363
+ const localVarFp = InviteLinkApiFp(configuration);
32364
+ return {
32365
+ /**
32366
+ * 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`
32367
+ * @summary Create invite link
32368
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
32369
+ * @param {*} [options] Override http request option.
32370
+ * @throws {RequiredError}
32371
+ */
32372
+ inviteLinkControllerCreate(
32373
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
32374
+ options?: RawAxiosRequestConfig,
32375
+ ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
32376
+ return localVarFp
32377
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
32378
+ .then((request) => request(axios, basePath));
32379
+ },
32380
+ /**
32381
+ * <br> OperationId: `InviteLinkControllerPreview`
32382
+ * @summary Preview
32383
+ * @param {string} token
32384
+ * @param {*} [options] Override http request option.
32385
+ * @throws {RequiredError}
32386
+ */
32387
+ inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
32388
+ return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
32389
+ },
32390
+ /**
32391
+ * <br> OperationId: `InviteLinkControllerRedeem`
32392
+ * @summary Redeem
32393
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
32394
+ * @param {*} [options] Override http request option.
32395
+ * @throws {RequiredError}
32396
+ */
32397
+ inviteLinkControllerRedeem(
32398
+ redeemInputDTO?: RedeemInputDTO,
32399
+ options?: RawAxiosRequestConfig,
32400
+ ): AxiosPromise<UserOutputWithRolesDTOAPI> {
32401
+ return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
32402
+ },
32403
+ /**
32404
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32405
+ * @summary Revoke
32406
+ * @param {string} id
32407
+ * @param {*} [options] Override http request option.
32408
+ * @throws {RequiredError}
32409
+ */
32410
+ inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
32411
+ return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
32412
+ },
32413
+ /**
32414
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
32415
+ * @summary Search
32416
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
32417
+ * @param {*} [options] Override http request option.
32418
+ * @throws {RequiredError}
32419
+ */
32420
+ inviteLinkControllerSearch(
32421
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
32422
+ options?: RawAxiosRequestConfig,
32423
+ ): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
32424
+ return localVarFp
32425
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
32426
+ .then((request) => request(axios, basePath));
32427
+ },
32428
+ };
32429
+ };
32430
+
32431
+ /**
32432
+ * InviteLinkApi - object-oriented interface
32433
+ * @export
32434
+ * @class InviteLinkApi
32435
+ * @extends {BaseAPI}
32436
+ */
32437
+ export class InviteLinkApi extends BaseAPI {
32438
+ /**
32439
+ * 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`
32440
+ * @summary Create invite link
32441
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
32442
+ * @param {*} [options] Override http request option.
32443
+ * @throws {RequiredError}
32444
+ * @memberof InviteLinkApi
32445
+ */
32446
+ public inviteLinkControllerCreate(
32447
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
32448
+ options?: RawAxiosRequestConfig,
32449
+ ) {
32450
+ return InviteLinkApiFp(this.configuration)
32451
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
32452
+ .then((request) => request(this.axios, this.basePath));
32453
+ }
32454
+
32455
+ /**
32456
+ * <br> OperationId: `InviteLinkControllerPreview`
32457
+ * @summary Preview
32458
+ * @param {string} token
32459
+ * @param {*} [options] Override http request option.
32460
+ * @throws {RequiredError}
32461
+ * @memberof InviteLinkApi
32462
+ */
32463
+ public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
32464
+ return InviteLinkApiFp(this.configuration)
32465
+ .inviteLinkControllerPreview(token, options)
32466
+ .then((request) => request(this.axios, this.basePath));
32467
+ }
32468
+
32469
+ /**
32470
+ * <br> OperationId: `InviteLinkControllerRedeem`
32471
+ * @summary Redeem
32472
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
32473
+ * @param {*} [options] Override http request option.
32474
+ * @throws {RequiredError}
32475
+ * @memberof InviteLinkApi
32476
+ */
32477
+ public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
32478
+ return InviteLinkApiFp(this.configuration)
32479
+ .inviteLinkControllerRedeem(redeemInputDTO, options)
32480
+ .then((request) => request(this.axios, this.basePath));
32481
+ }
32482
+
32483
+ /**
32484
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
32485
+ * @summary Revoke
32486
+ * @param {string} id
32487
+ * @param {*} [options] Override http request option.
32488
+ * @throws {RequiredError}
32489
+ * @memberof InviteLinkApi
32490
+ */
32491
+ public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
32492
+ return InviteLinkApiFp(this.configuration)
32493
+ .inviteLinkControllerRevoke(id, options)
32494
+ .then((request) => request(this.axios, this.basePath));
32495
+ }
32496
+
32497
+ /**
32498
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
32499
+ * @summary Search
32500
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
32501
+ * @param {*} [options] Override http request option.
32502
+ * @throws {RequiredError}
32503
+ * @memberof InviteLinkApi
32504
+ */
32505
+ public inviteLinkControllerSearch(
32506
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
32507
+ options?: RawAxiosRequestConfig,
32508
+ ) {
32509
+ return InviteLinkApiFp(this.configuration)
32510
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
32511
+ .then((request) => request(this.axios, this.basePath));
32512
+ }
32513
+ }
32514
+
31833
32515
  /**
31834
32516
  * ItemApi - axios parameter creator
31835
32517
  * @export
@@ -32068,6 +32750,34 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration)
32068
32750
  options: localVarRequestOptions,
32069
32751
  };
32070
32752
  },
32753
+ /**
32754
+ * <br> OperationId: `MetaGetLiveness`
32755
+ * @summary Get liveness
32756
+ * @param {*} [options] Override http request option.
32757
+ * @throws {RequiredError}
32758
+ */
32759
+ metaGetLiveness: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32760
+ const localVarPath = `/livez`;
32761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32763
+ let baseOptions;
32764
+ if (configuration) {
32765
+ baseOptions = configuration.baseOptions;
32766
+ }
32767
+
32768
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
32769
+ const localVarHeaderParameter = {} as any;
32770
+ const localVarQueryParameter = {} as any;
32771
+
32772
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32773
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32774
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
32775
+
32776
+ return {
32777
+ url: toPathString(localVarUrlObj),
32778
+ options: localVarRequestOptions,
32779
+ };
32780
+ },
32071
32781
  /**
32072
32782
  * <br> OperationId: `MetaGetMetrics`
32073
32783
  * @summary Get metrics
@@ -32239,6 +32949,27 @@ export const MetaApiFp = function (configuration?: Configuration) {
32239
32949
  configuration,
32240
32950
  )(axios, localVarOperationServerBasePath || basePath);
32241
32951
  },
32952
+ /**
32953
+ * <br> OperationId: `MetaGetLiveness`
32954
+ * @summary Get liveness
32955
+ * @param {*} [options] Override http request option.
32956
+ * @throws {RequiredError}
32957
+ */
32958
+ async metaGetLiveness(
32959
+ options?: RawAxiosRequestConfig,
32960
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthOutputDTO>> {
32961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
32962
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32963
+ const localVarOperationServerBasePath =
32964
+ operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
32965
+ return (axios, basePath) =>
32966
+ createRequestFunction(
32967
+ localVarAxiosArgs,
32968
+ globalAxios,
32969
+ BASE_PATH,
32970
+ configuration,
32971
+ )(axios, localVarOperationServerBasePath || basePath);
32972
+ },
32242
32973
  /**
32243
32974
  * <br> OperationId: `MetaGetMetrics`
32244
32975
  * @summary Get metrics
@@ -32363,6 +33094,15 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath?
32363
33094
  metaGetHealth(options?: RawAxiosRequestConfig): AxiosPromise<HealthOutputDTO> {
32364
33095
  return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
32365
33096
  },
33097
+ /**
33098
+ * <br> OperationId: `MetaGetLiveness`
33099
+ * @summary Get liveness
33100
+ * @param {*} [options] Override http request option.
33101
+ * @throws {RequiredError}
33102
+ */
33103
+ metaGetLiveness(options?: RawAxiosRequestConfig): AxiosPromise<HealthOutputDTO> {
33104
+ return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
33105
+ },
32366
33106
  /**
32367
33107
  * <br> OperationId: `MetaGetMetrics`
32368
33108
  * @summary Get metrics
@@ -32431,6 +33171,19 @@ export class MetaApi extends BaseAPI {
32431
33171
  .then((request) => request(this.axios, this.basePath));
32432
33172
  }
32433
33173
 
33174
+ /**
33175
+ * <br> OperationId: `MetaGetLiveness`
33176
+ * @summary Get liveness
33177
+ * @param {*} [options] Override http request option.
33178
+ * @throws {RequiredError}
33179
+ * @memberof MetaApi
33180
+ */
33181
+ public metaGetLiveness(options?: RawAxiosRequestConfig) {
33182
+ return MetaApiFp(this.configuration)
33183
+ .metaGetLiveness(options)
33184
+ .then((request) => request(this.axios, this.basePath));
33185
+ }
33186
+
32434
33187
  /**
32435
33188
  * <br> OperationId: `MetaGetMetrics`
32436
33189
  * @summary Get metrics
@@ -41141,6 +41894,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41141
41894
  */
41142
41895
  userControllerCountBillableDashboardUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41143
41896
  const localVarPath = `/user/count`;
41897
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41144
41898
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41145
41899
  let baseOptions;
41146
41900
  if (configuration) {
@@ -41151,8 +41905,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41151
41905
  const localVarHeaderParameter = {} as any;
41152
41906
  const localVarQueryParameter = {} as any;
41153
41907
 
41908
+ // authentication domainAuth required
41909
+
41154
41910
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41155
- const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41911
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41156
41912
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
41157
41913
 
41158
41914
  return {
@@ -41265,6 +42021,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41265
42021
  * @summary Invite
41266
42022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
41267
42023
  * @param {*} [options] Override http request option.
42024
+ * @deprecated
41268
42025
  * @throws {RequiredError}
41269
42026
  */
41270
42027
  userControllerInvite: async (
@@ -41759,6 +42516,7 @@ export const UserApiFp = function (configuration?: Configuration) {
41759
42516
  * @summary Invite
41760
42517
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
41761
42518
  * @param {*} [options] Override http request option.
42519
+ * @deprecated
41762
42520
  * @throws {RequiredError}
41763
42521
  */
41764
42522
  async userControllerInvite(
@@ -42062,6 +42820,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
42062
42820
  * @summary Invite
42063
42821
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
42064
42822
  * @param {*} [options] Override http request option.
42823
+ * @deprecated
42065
42824
  * @throws {RequiredError}
42066
42825
  */
42067
42826
  userControllerInvite(
@@ -42262,6 +43021,7 @@ export class UserApi extends BaseAPI {
42262
43021
  * @summary Invite
42263
43022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
42264
43023
  * @param {*} [options] Override http request option.
43024
+ * @deprecated
42265
43025
  * @throws {RequiredError}
42266
43026
  * @memberof UserApi
42267
43027
  */
@@ -42884,474 +43644,3 @@ export class VariableApi extends BaseAPI {
42884
43644
  .then((request) => request(this.axios, this.basePath));
42885
43645
  }
42886
43646
  }
42887
-
42888
- /**
42889
- * InviteLinkApi - axios parameter creator
42890
- * @export
42891
- */
42892
- export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
42893
- return {
42894
- /**
42895
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
42896
- * @summary Create invite link
42897
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
42898
- * @param {*} [options] Override http request option.
42899
- * @throws {RequiredError}
42900
- */
42901
- inviteLinkControllerCreate: async (
42902
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
42903
- options: RawAxiosRequestConfig = {},
42904
- ): Promise<RequestArgs> => {
42905
- const localVarPath = `/invite-link`;
42906
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42907
- let baseOptions;
42908
- if (configuration) {
42909
- baseOptions = configuration.baseOptions;
42910
- }
42911
-
42912
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42913
- const localVarHeaderParameter = {} as any;
42914
- const localVarQueryParameter = {} as any;
42915
-
42916
- // authentication domainAuth required
42917
-
42918
- localVarHeaderParameter['Content-Type'] = 'application/json';
42919
-
42920
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42921
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42922
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42923
- localVarRequestOptions.data = serializeDataIfNeeded(
42924
- inviteLinkCreateInputDTO,
42925
- localVarRequestOptions,
42926
- configuration,
42927
- );
42928
-
42929
- return {
42930
- url: toPathString(localVarUrlObj),
42931
- options: localVarRequestOptions,
42932
- };
42933
- },
42934
- /**
42935
- * <br> OperationId: `InviteLinkControllerPreview`
42936
- * @summary Preview
42937
- * @param {string} token
42938
- * @param {*} [options] Override http request option.
42939
- * @throws {RequiredError}
42940
- */
42941
- inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42942
- assertParamExists('inviteLinkControllerPreview', 'token', token);
42943
- const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
42944
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42945
- let baseOptions;
42946
- if (configuration) {
42947
- baseOptions = configuration.baseOptions;
42948
- }
42949
-
42950
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
42951
- const localVarHeaderParameter = {} as any;
42952
- const localVarQueryParameter = {} as any;
42953
-
42954
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42955
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42956
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42957
-
42958
- return {
42959
- url: toPathString(localVarUrlObj),
42960
- options: localVarRequestOptions,
42961
- };
42962
- },
42963
- /**
42964
- * <br> OperationId: `InviteLinkControllerRedeem`
42965
- * @summary Redeem
42966
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
42967
- * @param {*} [options] Override http request option.
42968
- * @throws {RequiredError}
42969
- */
42970
- inviteLinkControllerRedeem: async (
42971
- redeemInputDTO?: RedeemInputDTO,
42972
- options: RawAxiosRequestConfig = {},
42973
- ): Promise<RequestArgs> => {
42974
- const localVarPath = `/invite-link/redeem`;
42975
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42976
- let baseOptions;
42977
- if (configuration) {
42978
- baseOptions = configuration.baseOptions;
42979
- }
42980
-
42981
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42982
- const localVarHeaderParameter = {} as any;
42983
- const localVarQueryParameter = {} as any;
42984
-
42985
- localVarHeaderParameter['Content-Type'] = 'application/json';
42986
-
42987
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42988
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42989
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42990
- localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
42991
-
42992
- return {
42993
- url: toPathString(localVarUrlObj),
42994
- options: localVarRequestOptions,
42995
- };
42996
- },
42997
- /**
42998
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
42999
- * @summary Revoke
43000
- * @param {string} id
43001
- * @param {*} [options] Override http request option.
43002
- * @throws {RequiredError}
43003
- */
43004
- inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43005
- assertParamExists('inviteLinkControllerRevoke', 'id', id);
43006
- const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
43007
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43008
- let baseOptions;
43009
- if (configuration) {
43010
- baseOptions = configuration.baseOptions;
43011
- }
43012
-
43013
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
43014
- const localVarHeaderParameter = {} as any;
43015
- const localVarQueryParameter = {} as any;
43016
-
43017
- // authentication domainAuth required
43018
-
43019
- setSearchParams(localVarUrlObj, localVarQueryParameter);
43020
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43021
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
43022
-
43023
- return {
43024
- url: toPathString(localVarUrlObj),
43025
- options: localVarRequestOptions,
43026
- };
43027
- },
43028
- /**
43029
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43030
- * @summary Search
43031
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43032
- * @param {*} [options] Override http request option.
43033
- * @throws {RequiredError}
43034
- */
43035
- inviteLinkControllerSearch: async (
43036
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43037
- options: RawAxiosRequestConfig = {},
43038
- ): Promise<RequestArgs> => {
43039
- const localVarPath = `/invite-link/search`;
43040
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43041
- let baseOptions;
43042
- if (configuration) {
43043
- baseOptions = configuration.baseOptions;
43044
- }
43045
-
43046
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
43047
- const localVarHeaderParameter = {} as any;
43048
- const localVarQueryParameter = {} as any;
43049
-
43050
- // authentication domainAuth required
43051
-
43052
- localVarHeaderParameter['Content-Type'] = 'application/json';
43053
-
43054
- setSearchParams(localVarUrlObj, localVarQueryParameter);
43055
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43056
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
43057
- localVarRequestOptions.data = serializeDataIfNeeded(
43058
- inviteLinkSearchInputDTO,
43059
- localVarRequestOptions,
43060
- configuration,
43061
- );
43062
-
43063
- return {
43064
- url: toPathString(localVarUrlObj),
43065
- options: localVarRequestOptions,
43066
- };
43067
- },
43068
- };
43069
- };
43070
-
43071
- /**
43072
- * InviteLinkApi - functional programming interface
43073
- * @export
43074
- */
43075
- export const InviteLinkApiFp = function (configuration?: Configuration) {
43076
- const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
43077
- return {
43078
- /**
43079
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43080
- * @summary Create invite link
43081
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43082
- * @param {*} [options] Override http request option.
43083
- * @throws {RequiredError}
43084
- */
43085
- async inviteLinkControllerCreate(
43086
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43087
- options?: RawAxiosRequestConfig,
43088
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
43089
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
43090
- inviteLinkCreateInputDTO,
43091
- options,
43092
- );
43093
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43094
- const localVarOperationServerBasePath =
43095
- operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
43096
- return (axios, basePath) =>
43097
- createRequestFunction(
43098
- localVarAxiosArgs,
43099
- globalAxios,
43100
- BASE_PATH,
43101
- configuration,
43102
- )(axios, localVarOperationServerBasePath || basePath);
43103
- },
43104
- /**
43105
- * <br> OperationId: `InviteLinkControllerPreview`
43106
- * @summary Preview
43107
- * @param {string} token
43108
- * @param {*} [options] Override http request option.
43109
- * @throws {RequiredError}
43110
- */
43111
- async inviteLinkControllerPreview(
43112
- token: string,
43113
- options?: RawAxiosRequestConfig,
43114
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
43115
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
43116
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43117
- const localVarOperationServerBasePath =
43118
- operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
43119
- return (axios, basePath) =>
43120
- createRequestFunction(
43121
- localVarAxiosArgs,
43122
- globalAxios,
43123
- BASE_PATH,
43124
- configuration,
43125
- )(axios, localVarOperationServerBasePath || basePath);
43126
- },
43127
- /**
43128
- * <br> OperationId: `InviteLinkControllerRedeem`
43129
- * @summary Redeem
43130
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43131
- * @param {*} [options] Override http request option.
43132
- * @throws {RequiredError}
43133
- */
43134
- async inviteLinkControllerRedeem(
43135
- redeemInputDTO?: RedeemInputDTO,
43136
- options?: RawAxiosRequestConfig,
43137
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
43138
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
43139
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43140
- const localVarOperationServerBasePath =
43141
- operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
43142
- return (axios, basePath) =>
43143
- createRequestFunction(
43144
- localVarAxiosArgs,
43145
- globalAxios,
43146
- BASE_PATH,
43147
- configuration,
43148
- )(axios, localVarOperationServerBasePath || basePath);
43149
- },
43150
- /**
43151
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43152
- * @summary Revoke
43153
- * @param {string} id
43154
- * @param {*} [options] Override http request option.
43155
- * @throws {RequiredError}
43156
- */
43157
- async inviteLinkControllerRevoke(
43158
- id: string,
43159
- options?: RawAxiosRequestConfig,
43160
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
43161
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
43162
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43163
- const localVarOperationServerBasePath =
43164
- operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
43165
- return (axios, basePath) =>
43166
- createRequestFunction(
43167
- localVarAxiosArgs,
43168
- globalAxios,
43169
- BASE_PATH,
43170
- configuration,
43171
- )(axios, localVarOperationServerBasePath || basePath);
43172
- },
43173
- /**
43174
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43175
- * @summary Search
43176
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43177
- * @param {*} [options] Override http request option.
43178
- * @throws {RequiredError}
43179
- */
43180
- async inviteLinkControllerSearch(
43181
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43182
- options?: RawAxiosRequestConfig,
43183
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
43184
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
43185
- inviteLinkSearchInputDTO,
43186
- options,
43187
- );
43188
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43189
- const localVarOperationServerBasePath =
43190
- operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
43191
- return (axios, basePath) =>
43192
- createRequestFunction(
43193
- localVarAxiosArgs,
43194
- globalAxios,
43195
- BASE_PATH,
43196
- configuration,
43197
- )(axios, localVarOperationServerBasePath || basePath);
43198
- },
43199
- };
43200
- };
43201
-
43202
- /**
43203
- * InviteLinkApi - factory interface
43204
- * @export
43205
- */
43206
- export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43207
- const localVarFp = InviteLinkApiFp(configuration);
43208
- return {
43209
- /**
43210
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43211
- * @summary Create invite link
43212
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43213
- * @param {*} [options] Override http request option.
43214
- * @throws {RequiredError}
43215
- */
43216
- inviteLinkControllerCreate(
43217
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43218
- options?: RawAxiosRequestConfig,
43219
- ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
43220
- return localVarFp
43221
- .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43222
- .then((request) => request(axios, basePath));
43223
- },
43224
- /**
43225
- * <br> OperationId: `InviteLinkControllerPreview`
43226
- * @summary Preview
43227
- * @param {string} token
43228
- * @param {*} [options] Override http request option.
43229
- * @throws {RequiredError}
43230
- */
43231
- inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
43232
- return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
43233
- },
43234
- /**
43235
- * <br> OperationId: `InviteLinkControllerRedeem`
43236
- * @summary Redeem
43237
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43238
- * @param {*} [options] Override http request option.
43239
- * @throws {RequiredError}
43240
- */
43241
- inviteLinkControllerRedeem(
43242
- redeemInputDTO?: RedeemInputDTO,
43243
- options?: RawAxiosRequestConfig,
43244
- ): AxiosPromise<UserOutputWithRolesDTOAPI> {
43245
- return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
43246
- },
43247
- /**
43248
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43249
- * @summary Revoke
43250
- * @param {string} id
43251
- * @param {*} [options] Override http request option.
43252
- * @throws {RequiredError}
43253
- */
43254
- inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
43255
- return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
43256
- },
43257
- /**
43258
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43259
- * @summary Search
43260
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43261
- * @param {*} [options] Override http request option.
43262
- * @throws {RequiredError}
43263
- */
43264
- inviteLinkControllerSearch(
43265
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43266
- options?: RawAxiosRequestConfig,
43267
- ): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
43268
- return localVarFp
43269
- .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43270
- .then((request) => request(axios, basePath));
43271
- },
43272
- };
43273
- };
43274
-
43275
- /**
43276
- * InviteLinkApi - object-oriented interface
43277
- * @export
43278
- * @class InviteLinkApi
43279
- * @extends {BaseAPI}
43280
- */
43281
- export class InviteLinkApi extends BaseAPI {
43282
- /**
43283
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43284
- * @summary Create invite link
43285
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43286
- * @param {*} [options] Override http request option.
43287
- * @throws {RequiredError}
43288
- * @memberof InviteLinkApi
43289
- */
43290
- public inviteLinkControllerCreate(
43291
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43292
- options?: RawAxiosRequestConfig,
43293
- ) {
43294
- return InviteLinkApiFp(this.configuration)
43295
- .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43296
- .then((request) => request(this.axios, this.basePath));
43297
- }
43298
-
43299
- /**
43300
- * <br> OperationId: `InviteLinkControllerPreview`
43301
- * @summary Preview
43302
- * @param {string} token
43303
- * @param {*} [options] Override http request option.
43304
- * @throws {RequiredError}
43305
- * @memberof InviteLinkApi
43306
- */
43307
- public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
43308
- return InviteLinkApiFp(this.configuration)
43309
- .inviteLinkControllerPreview(token, options)
43310
- .then((request) => request(this.axios, this.basePath));
43311
- }
43312
-
43313
- /**
43314
- * <br> OperationId: `InviteLinkControllerRedeem`
43315
- * @summary Redeem
43316
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43317
- * @param {*} [options] Override http request option.
43318
- * @throws {RequiredError}
43319
- * @memberof InviteLinkApi
43320
- */
43321
- public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
43322
- return InviteLinkApiFp(this.configuration)
43323
- .inviteLinkControllerRedeem(redeemInputDTO, options)
43324
- .then((request) => request(this.axios, this.basePath));
43325
- }
43326
-
43327
- /**
43328
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43329
- * @summary Revoke
43330
- * @param {string} id
43331
- * @param {*} [options] Override http request option.
43332
- * @throws {RequiredError}
43333
- * @memberof InviteLinkApi
43334
- */
43335
- public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
43336
- return InviteLinkApiFp(this.configuration)
43337
- .inviteLinkControllerRevoke(id, options)
43338
- .then((request) => request(this.axios, this.basePath));
43339
- }
43340
-
43341
- /**
43342
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43343
- * @summary Search
43344
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43345
- * @param {*} [options] Override http request option.
43346
- * @throws {RequiredError}
43347
- * @memberof InviteLinkApi
43348
- */
43349
- public inviteLinkControllerSearch(
43350
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43351
- options?: RawAxiosRequestConfig,
43352
- ) {
43353
- return InviteLinkApiFp(this.configuration)
43354
- .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43355
- .then((request) => request(this.axios, this.basePath));
43356
- }
43357
- }