@takaro/apiclient 0.0.0-dev.e05670d → 0.0.0-dev.e07aa80

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,18 @@ 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;
2285
+ /**
2286
+ *
2287
+ * @type {string}
2288
+ * @memberof DomainCreateInputDTO
2289
+ */
2290
+ serverRegistrationToken?: string;
2279
2291
  }
2280
2292
 
2281
2293
  export const DomainCreateInputDTOStateEnum = {
@@ -3141,19 +3153,19 @@ export interface ErrorOutput {
3141
3153
  * @type {string}
3142
3154
  * @memberof ErrorOutput
3143
3155
  */
3144
- code: string;
3156
+ code?: string;
3145
3157
  /**
3146
3158
  *
3147
3159
  * @type {string}
3148
3160
  * @memberof ErrorOutput
3149
3161
  */
3150
- message: string;
3162
+ message?: string;
3151
3163
  /**
3152
3164
  *
3153
3165
  * @type {string}
3154
3166
  * @memberof ErrorOutput
3155
3167
  */
3156
- details: string;
3168
+ details?: string;
3157
3169
  }
3158
3170
  /**
3159
3171
  *
@@ -3166,7 +3178,7 @@ export interface EventChatMessage {
3166
3178
  * @type {IGamePlayer}
3167
3179
  * @memberof EventChatMessage
3168
3180
  */
3169
- player: IGamePlayer;
3181
+ player?: IGamePlayer;
3170
3182
  /**
3171
3183
  *
3172
3184
  * @type {string}
@@ -3299,6 +3311,7 @@ export const EventCreateDTOEventNameEnum = {
3299
3311
  PlayerInventoryChanged: 'player-inventory-changed',
3300
3312
  EventRateLimited: 'event-rate-limited',
3301
3313
  PlayerSyncSnapshot: 'player-sync-snapshot',
3314
+ InviteLinkCreated: 'invite-link-created',
3302
3315
  PlayerConnected: 'player-connected',
3303
3316
  PlayerDisconnected: 'player-disconnected',
3304
3317
  ChatMessage: 'chat-message',
@@ -3517,6 +3530,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
3517
3530
  PlayerInventoryChanged: 'player-inventory-changed',
3518
3531
  EventRateLimited: 'event-rate-limited',
3519
3532
  PlayerSyncSnapshot: 'player-sync-snapshot',
3533
+ InviteLinkCreated: 'invite-link-created',
3520
3534
  PlayerConnected: 'player-connected',
3521
3535
  PlayerDisconnected: 'player-disconnected',
3522
3536
  ChatMessage: 'chat-message',
@@ -3887,6 +3901,7 @@ export const EventOutputDTOEventNameEnum = {
3887
3901
  PlayerInventoryChanged: 'player-inventory-changed',
3888
3902
  EventRateLimited: 'event-rate-limited',
3889
3903
  PlayerSyncSnapshot: 'player-sync-snapshot',
3904
+ InviteLinkCreated: 'invite-link-created',
3890
3905
  PlayerConnected: 'player-connected',
3891
3906
  PlayerDisconnected: 'player-disconnected',
3892
3907
  ChatMessage: 'chat-message',
@@ -3919,6 +3934,7 @@ export type EventOutputDTOMeta =
3919
3934
  | TakaroEventGameserverDeleted
3920
3935
  | TakaroEventGameserverUpdated
3921
3936
  | TakaroEventHookExecuted
3937
+ | TakaroEventInviteLinkCreated
3922
3938
  | TakaroEventModuleCreated
3923
3939
  | TakaroEventModuleDeleted
3924
3940
  | TakaroEventModuleInstalled
@@ -4126,6 +4142,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
4126
4142
  PlayerInventoryChanged: 'player-inventory-changed',
4127
4143
  EventRateLimited: 'event-rate-limited',
4128
4144
  PlayerSyncSnapshot: 'player-sync-snapshot',
4145
+ InviteLinkCreated: 'invite-link-created',
4129
4146
  PlayerConnected: 'player-connected',
4130
4147
  PlayerDisconnected: 'player-disconnected',
4131
4148
  ChatMessage: 'chat-message',
@@ -5620,6 +5637,7 @@ export const HookCreateDTOEventTypeEnum = {
5620
5637
  PlayerInventoryChanged: 'player-inventory-changed',
5621
5638
  EventRateLimited: 'event-rate-limited',
5622
5639
  PlayerSyncSnapshot: 'player-sync-snapshot',
5640
+ InviteLinkCreated: 'invite-link-created',
5623
5641
  } as const;
5624
5642
 
5625
5643
  export type HookCreateDTOEventTypeEnum = (typeof HookCreateDTOEventTypeEnum)[keyof typeof HookCreateDTOEventTypeEnum];
@@ -5783,6 +5801,7 @@ export const HookOutputDTOEventTypeEnum = {
5783
5801
  PlayerInventoryChanged: 'player-inventory-changed',
5784
5802
  EventRateLimited: 'event-rate-limited',
5785
5803
  PlayerSyncSnapshot: 'player-sync-snapshot',
5804
+ InviteLinkCreated: 'invite-link-created',
5786
5805
  } as const;
5787
5806
 
5788
5807
  export type HookOutputDTOEventTypeEnum = (typeof HookOutputDTOEventTypeEnum)[keyof typeof HookOutputDTOEventTypeEnum];
@@ -5891,6 +5910,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
5891
5910
  PlayerInventoryChanged: 'player-inventory-changed',
5892
5911
  EventRateLimited: 'event-rate-limited',
5893
5912
  PlayerSyncSnapshot: 'player-sync-snapshot',
5913
+ InviteLinkCreated: 'invite-link-created',
5894
5914
  } as const;
5895
5915
 
5896
5916
  export type HookSearchInputAllowedFiltersEventTypeEnum =
@@ -6071,6 +6091,7 @@ export const HookTriggerDTOEventTypeEnum = {
6071
6091
  PlayerInventoryChanged: 'player-inventory-changed',
6072
6092
  EventRateLimited: 'event-rate-limited',
6073
6093
  PlayerSyncSnapshot: 'player-sync-snapshot',
6094
+ InviteLinkCreated: 'invite-link-created',
6074
6095
  } as const;
6075
6096
 
6076
6097
  export type HookTriggerDTOEventTypeEnum =
@@ -6161,6 +6182,7 @@ export const HookUpdateDTOEventTypeEnum = {
6161
6182
  PlayerInventoryChanged: 'player-inventory-changed',
6162
6183
  EventRateLimited: 'event-rate-limited',
6163
6184
  PlayerSyncSnapshot: 'player-sync-snapshot',
6185
+ InviteLinkCreated: 'invite-link-created',
6164
6186
  } as const;
6165
6187
 
6166
6188
  export type HookUpdateDTOEventTypeEnum = (typeof HookUpdateDTOEventTypeEnum)[keyof typeof HookUpdateDTOEventTypeEnum];
@@ -6493,6 +6515,7 @@ export const IHookEventTypeEnum = {
6493
6515
  PlayerInventoryChanged: 'player-inventory-changed',
6494
6516
  EventRateLimited: 'event-rate-limited',
6495
6517
  PlayerSyncSnapshot: 'player-sync-snapshot',
6518
+ InviteLinkCreated: 'invite-link-created',
6496
6519
  } as const;
6497
6520
 
6498
6521
  export type IHookEventTypeEnum = (typeof IHookEventTypeEnum)[keyof typeof IHookEventTypeEnum];
@@ -6922,25 +6945,6 @@ export interface InviteCreateDTO {
6922
6945
  */
6923
6946
  email: string;
6924
6947
  }
6925
- /**
6926
- *
6927
- * @export
6928
- * @interface InviteOutputDTO
6929
- */
6930
- export interface InviteOutputDTO {
6931
- /**
6932
- *
6933
- * @type {string}
6934
- * @memberof InviteOutputDTO
6935
- */
6936
- botInvite: string;
6937
- /**
6938
- *
6939
- * @type {string}
6940
- * @memberof InviteOutputDTO
6941
- */
6942
- devServer: string;
6943
- }
6944
6948
  /**
6945
6949
  *
6946
6950
  * @export
@@ -7084,27 +7088,28 @@ export interface InviteLinkCreateResultDTOAPI {
7084
7088
  /**
7085
7089
  *
7086
7090
  * @export
7087
- * @interface InviteLinkOutputDTO
7091
+ * @interface InviteLinkOutputArrayDTOAPI
7088
7092
  */
7089
- export interface InviteLinkOutputDTO {
7090
- /**
7091
- *
7092
- * @type {string}
7093
- * @memberof InviteLinkOutputDTO
7094
- */
7095
- id: string;
7093
+ export interface InviteLinkOutputArrayDTOAPI {
7096
7094
  /**
7097
7095
  *
7098
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7099
- * @memberof InviteLinkOutputDTO
7096
+ * @type {Array<InviteLinkOutputDTO>}
7097
+ * @memberof InviteLinkOutputArrayDTOAPI
7100
7098
  */
7101
- createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7099
+ data: Array<InviteLinkOutputDTO>;
7102
7100
  /**
7103
7101
  *
7104
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7105
- * @memberof InviteLinkOutputDTO
7102
+ * @type {MetadataOutput}
7103
+ * @memberof InviteLinkOutputArrayDTOAPI
7106
7104
  */
7107
- updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7105
+ meta: MetadataOutput;
7106
+ }
7107
+ /**
7108
+ *
7109
+ * @export
7110
+ * @interface InviteLinkOutputDTO
7111
+ */
7112
+ export interface InviteLinkOutputDTO {
7108
7113
  /**
7109
7114
  *
7110
7115
  * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
@@ -7153,6 +7158,24 @@ export interface InviteLinkOutputDTO {
7153
7158
  * @memberof InviteLinkOutputDTO
7154
7159
  */
7155
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;
7156
7179
  }
7157
7180
 
7158
7181
  export const InviteLinkOutputDTOStatusEnum = {
@@ -7184,25 +7207,6 @@ export interface InviteLinkOutputDTOAPI {
7184
7207
  */
7185
7208
  meta: MetadataOutput;
7186
7209
  }
7187
- /**
7188
- *
7189
- * @export
7190
- * @interface InviteLinkOutputArrayDTOAPI
7191
- */
7192
- export interface InviteLinkOutputArrayDTOAPI {
7193
- /**
7194
- *
7195
- * @type {Array<InviteLinkOutputDTO>}
7196
- * @memberof InviteLinkOutputArrayDTOAPI
7197
- */
7198
- data: Array<InviteLinkOutputDTO>;
7199
- /**
7200
- *
7201
- * @type {MetadataOutput}
7202
- * @memberof InviteLinkOutputArrayDTOAPI
7203
- */
7204
- meta: MetadataOutput;
7205
- }
7206
7210
  /**
7207
7211
  *
7208
7212
  * @export
@@ -7400,15 +7404,21 @@ export type InviteLinkSearchInputDTOSortDirectionEnum =
7400
7404
  /**
7401
7405
  *
7402
7406
  * @export
7403
- * @interface RedeemInputDTO
7407
+ * @interface InviteOutputDTO
7404
7408
  */
7405
- export interface RedeemInputDTO {
7409
+ export interface InviteOutputDTO {
7406
7410
  /**
7407
7411
  *
7408
7412
  * @type {string}
7409
- * @memberof RedeemInputDTO
7413
+ * @memberof InviteOutputDTO
7410
7414
  */
7411
- token: string;
7415
+ botInvite: string;
7416
+ /**
7417
+ *
7418
+ * @type {string}
7419
+ * @memberof InviteOutputDTO
7420
+ */
7421
+ devServer: string;
7412
7422
  }
7413
7423
  /**
7414
7424
  *
@@ -8316,7 +8326,7 @@ export interface MetadataOutput {
8316
8326
  * @type {ErrorOutput}
8317
8327
  * @memberof MetadataOutput
8318
8328
  */
8319
- error: ErrorOutput;
8329
+ error?: ErrorOutput;
8320
8330
  /**
8321
8331
  *
8322
8332
  * @type {number}
@@ -12584,6 +12594,19 @@ export const RecentOrderDTOStatusEnum = {
12584
12594
 
12585
12595
  export type RecentOrderDTOStatusEnum = (typeof RecentOrderDTOStatusEnum)[keyof typeof RecentOrderDTOStatusEnum];
12586
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
+ }
12587
12610
  /**
12588
12611
  *
12589
12612
  * @export
@@ -12595,7 +12618,7 @@ export interface RedirectQs {
12595
12618
  * @type {string}
12596
12619
  * @memberof RedirectQs
12597
12620
  */
12598
- redirect: string;
12621
+ redirect?: string;
12599
12622
  }
12600
12623
  /**
12601
12624
  *
@@ -16316,6 +16339,49 @@ export interface TakaroEventHookExecuted {
16316
16339
  */
16317
16340
  timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16318
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
+ }
16319
16385
  /**
16320
16386
  *
16321
16387
  * @export
@@ -17674,6 +17740,37 @@ export interface UserCreateInputDTO {
17674
17740
  */
17675
17741
  isDashboardUser?: boolean;
17676
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
+ }
17677
17774
  /**
17678
17775
  *
17679
17776
  * @export
@@ -17777,7 +17874,7 @@ export interface UserOutputDTO {
17777
17874
  * @type {PlayerOutputWithRolesDTO}
17778
17875
  * @memberof UserOutputDTO
17779
17876
  */
17780
- player: PlayerOutputWithRolesDTO;
17877
+ player?: PlayerOutputWithRolesDTO;
17781
17878
  /**
17782
17879
  *
17783
17880
  * @type {boolean}
@@ -17795,25 +17892,25 @@ export interface UserOutputDTO {
17795
17892
  * @type {string}
17796
17893
  * @memberof UserOutputDTO
17797
17894
  */
17798
- id: string;
17895
+ inviteLinkId?: string;
17799
17896
  /**
17800
17897
  *
17801
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17898
+ * @type {string}
17802
17899
  * @memberof UserOutputDTO
17803
17900
  */
17804
- createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17901
+ id: string;
17805
17902
  /**
17806
17903
  *
17807
17904
  * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17808
17905
  * @memberof UserOutputDTO
17809
17906
  */
17810
- updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17907
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17811
17908
  /**
17812
17909
  *
17813
- * @type {string}
17910
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17814
17911
  * @memberof UserOutputDTO
17815
17912
  */
17816
- inviteLinkId?: string;
17913
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17817
17914
  }
17818
17915
  /**
17819
17916
  *
@@ -17905,7 +18002,7 @@ export interface UserOutputWithRolesDTO {
17905
18002
  * @type {PlayerOutputWithRolesDTO}
17906
18003
  * @memberof UserOutputWithRolesDTO
17907
18004
  */
17908
- player: PlayerOutputWithRolesDTO;
18005
+ player?: PlayerOutputWithRolesDTO;
17909
18006
  /**
17910
18007
  *
17911
18008
  * @type {boolean}
@@ -26440,6 +26537,52 @@ export const DomainApiAxiosParamCreator = function (configuration?: Configuratio
26440
26537
  options: localVarRequestOptions,
26441
26538
  };
26442
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
+ },
26443
26586
  /**
26444
26587
  * <br> OperationId: `DomainControllerGetOne`
26445
26588
  * @summary Get one
@@ -26712,6 +26855,35 @@ export const DomainApiFp = function (configuration?: Configuration) {
26712
26855
  configuration,
26713
26856
  )(axios, localVarOperationServerBasePath || basePath);
26714
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
+ },
26715
26887
  /**
26716
26888
  * <br> OperationId: `DomainControllerGetOne`
26717
26889
  * @summary Get one
@@ -26886,6 +27058,23 @@ export const DomainApiFactory = function (configuration?: Configuration, basePat
26886
27058
  .domainControllerCreate(domainCreateInputDTO, options)
26887
27059
  .then((request) => request(axios, basePath));
26888
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
+ },
26889
27078
  /**
26890
27079
  * <br> OperationId: `DomainControllerGetOne`
26891
27080
  * @summary Get one
@@ -26991,6 +27180,25 @@ export class DomainApi extends BaseAPI {
26991
27180
  .then((request) => request(this.axios, this.basePath));
26992
27181
  }
26993
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
+
26994
27202
  /**
26995
27203
  * <br> OperationId: `DomainControllerGetOne`
26996
27204
  * @summary Get one
@@ -27951,16 +28159,14 @@ export const ExternalAuthApiAxiosParamCreator = function (configuration?: Config
27951
28159
  /**
27952
28160
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27953
28161
  * @summary Auth discord
27954
- * @param {string} redirect
28162
+ * @param {string} [redirect]
27955
28163
  * @param {*} [options] Override http request option.
27956
28164
  * @throws {RequiredError}
27957
28165
  */
27958
28166
  externalAuthControllerAuthDiscord: async (
27959
- redirect: string,
28167
+ redirect?: string,
27960
28168
  options: RawAxiosRequestConfig = {},
27961
28169
  ): Promise<RequestArgs> => {
27962
- // verify required parameter 'redirect' is not null or undefined
27963
- assertParamExists('externalAuthControllerAuthDiscord', 'redirect', redirect);
27964
28170
  const localVarPath = `/auth/discord`;
27965
28171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27966
28172
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -28027,12 +28233,12 @@ export const ExternalAuthApiFp = function (configuration?: Configuration) {
28027
28233
  /**
28028
28234
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28029
28235
  * @summary Auth discord
28030
- * @param {string} redirect
28236
+ * @param {string} [redirect]
28031
28237
  * @param {*} [options] Override http request option.
28032
28238
  * @throws {RequiredError}
28033
28239
  */
28034
28240
  async externalAuthControllerAuthDiscord(
28035
- redirect: string,
28241
+ redirect?: string,
28036
28242
  options?: RawAxiosRequestConfig,
28037
28243
  ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28038
28244
  const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscord(redirect, options);
@@ -28086,11 +28292,11 @@ export const ExternalAuthApiFactory = function (
28086
28292
  /**
28087
28293
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28088
28294
  * @summary Auth discord
28089
- * @param {string} redirect
28295
+ * @param {string} [redirect]
28090
28296
  * @param {*} [options] Override http request option.
28091
28297
  * @throws {RequiredError}
28092
28298
  */
28093
- externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28299
+ externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28094
28300
  return localVarFp
28095
28301
  .externalAuthControllerAuthDiscord(redirect, options)
28096
28302
  .then((request) => request(axios, basePath));
@@ -28117,12 +28323,12 @@ export class ExternalAuthApi extends BaseAPI {
28117
28323
  /**
28118
28324
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28119
28325
  * @summary Auth discord
28120
- * @param {string} redirect
28326
+ * @param {string} [redirect]
28121
28327
  * @param {*} [options] Override http request option.
28122
28328
  * @throws {RequiredError}
28123
28329
  * @memberof ExternalAuthApi
28124
28330
  */
28125
- public externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig) {
28331
+ public externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig) {
28126
28332
  return ExternalAuthApiFp(this.configuration)
28127
28333
  .externalAuthControllerAuthDiscord(redirect, options)
28128
28334
  .then((request) => request(this.axios, this.basePath));
@@ -31824,6 +32030,488 @@ export class HookApi extends BaseAPI {
31824
32030
  }
31825
32031
  }
31826
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
+
31827
32515
  /**
31828
32516
  * ItemApi - axios parameter creator
31829
32517
  * @export
@@ -32062,6 +32750,34 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration)
32062
32750
  options: localVarRequestOptions,
32063
32751
  };
32064
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
+ },
32065
32781
  /**
32066
32782
  * <br> OperationId: `MetaGetMetrics`
32067
32783
  * @summary Get metrics
@@ -32233,6 +32949,27 @@ export const MetaApiFp = function (configuration?: Configuration) {
32233
32949
  configuration,
32234
32950
  )(axios, localVarOperationServerBasePath || basePath);
32235
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
+ },
32236
32973
  /**
32237
32974
  * <br> OperationId: `MetaGetMetrics`
32238
32975
  * @summary Get metrics
@@ -32357,6 +33094,15 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath?
32357
33094
  metaGetHealth(options?: RawAxiosRequestConfig): AxiosPromise<HealthOutputDTO> {
32358
33095
  return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
32359
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
+ },
32360
33106
  /**
32361
33107
  * <br> OperationId: `MetaGetMetrics`
32362
33108
  * @summary Get metrics
@@ -32425,6 +33171,19 @@ export class MetaApi extends BaseAPI {
32425
33171
  .then((request) => request(this.axios, this.basePath));
32426
33172
  }
32427
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
+
32428
33187
  /**
32429
33188
  * <br> OperationId: `MetaGetMetrics`
32430
33189
  * @summary Get metrics
@@ -41135,6 +41894,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41135
41894
  */
41136
41895
  userControllerCountBillableDashboardUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41137
41896
  const localVarPath = `/user/count`;
41897
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41138
41898
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41139
41899
  let baseOptions;
41140
41900
  if (configuration) {
@@ -41145,8 +41905,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41145
41905
  const localVarHeaderParameter = {} as any;
41146
41906
  const localVarQueryParameter = {} as any;
41147
41907
 
41908
+ // authentication domainAuth required
41909
+
41148
41910
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41149
- const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41911
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41150
41912
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
41151
41913
 
41152
41914
  return {
@@ -41259,6 +42021,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41259
42021
  * @summary Invite
41260
42022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
41261
42023
  * @param {*} [options] Override http request option.
42024
+ * @deprecated
41262
42025
  * @throws {RequiredError}
41263
42026
  */
41264
42027
  userControllerInvite: async (
@@ -41753,6 +42516,7 @@ export const UserApiFp = function (configuration?: Configuration) {
41753
42516
  * @summary Invite
41754
42517
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
41755
42518
  * @param {*} [options] Override http request option.
42519
+ * @deprecated
41756
42520
  * @throws {RequiredError}
41757
42521
  */
41758
42522
  async userControllerInvite(
@@ -42056,6 +42820,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
42056
42820
  * @summary Invite
42057
42821
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
42058
42822
  * @param {*} [options] Override http request option.
42823
+ * @deprecated
42059
42824
  * @throws {RequiredError}
42060
42825
  */
42061
42826
  userControllerInvite(
@@ -42256,6 +43021,7 @@ export class UserApi extends BaseAPI {
42256
43021
  * @summary Invite
42257
43022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
42258
43023
  * @param {*} [options] Override http request option.
43024
+ * @deprecated
42259
43025
  * @throws {RequiredError}
42260
43026
  * @memberof UserApi
42261
43027
  */
@@ -42878,474 +43644,3 @@ export class VariableApi extends BaseAPI {
42878
43644
  .then((request) => request(this.axios, this.basePath));
42879
43645
  }
42880
43646
  }
42881
-
42882
- /**
42883
- * InviteLinkApi - axios parameter creator
42884
- * @export
42885
- */
42886
- export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
42887
- return {
42888
- /**
42889
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
42890
- * @summary Create invite link
42891
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
42892
- * @param {*} [options] Override http request option.
42893
- * @throws {RequiredError}
42894
- */
42895
- inviteLinkControllerCreate: async (
42896
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
42897
- options: RawAxiosRequestConfig = {},
42898
- ): Promise<RequestArgs> => {
42899
- const localVarPath = `/invite-link`;
42900
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42901
- let baseOptions;
42902
- if (configuration) {
42903
- baseOptions = configuration.baseOptions;
42904
- }
42905
-
42906
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42907
- const localVarHeaderParameter = {} as any;
42908
- const localVarQueryParameter = {} as any;
42909
-
42910
- // authentication domainAuth required
42911
-
42912
- localVarHeaderParameter['Content-Type'] = 'application/json';
42913
-
42914
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42915
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42916
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42917
- localVarRequestOptions.data = serializeDataIfNeeded(
42918
- inviteLinkCreateInputDTO,
42919
- localVarRequestOptions,
42920
- configuration,
42921
- );
42922
-
42923
- return {
42924
- url: toPathString(localVarUrlObj),
42925
- options: localVarRequestOptions,
42926
- };
42927
- },
42928
- /**
42929
- * <br> OperationId: `InviteLinkControllerPreview`
42930
- * @summary Preview
42931
- * @param {string} token
42932
- * @param {*} [options] Override http request option.
42933
- * @throws {RequiredError}
42934
- */
42935
- inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42936
- assertParamExists('inviteLinkControllerPreview', 'token', token);
42937
- const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
42938
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42939
- let baseOptions;
42940
- if (configuration) {
42941
- baseOptions = configuration.baseOptions;
42942
- }
42943
-
42944
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
42945
- const localVarHeaderParameter = {} as any;
42946
- const localVarQueryParameter = {} as any;
42947
-
42948
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42949
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42950
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42951
-
42952
- return {
42953
- url: toPathString(localVarUrlObj),
42954
- options: localVarRequestOptions,
42955
- };
42956
- },
42957
- /**
42958
- * <br> OperationId: `InviteLinkControllerRedeem`
42959
- * @summary Redeem
42960
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
42961
- * @param {*} [options] Override http request option.
42962
- * @throws {RequiredError}
42963
- */
42964
- inviteLinkControllerRedeem: async (
42965
- redeemInputDTO?: RedeemInputDTO,
42966
- options: RawAxiosRequestConfig = {},
42967
- ): Promise<RequestArgs> => {
42968
- const localVarPath = `/invite-link/redeem`;
42969
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42970
- let baseOptions;
42971
- if (configuration) {
42972
- baseOptions = configuration.baseOptions;
42973
- }
42974
-
42975
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42976
- const localVarHeaderParameter = {} as any;
42977
- const localVarQueryParameter = {} as any;
42978
-
42979
- localVarHeaderParameter['Content-Type'] = 'application/json';
42980
-
42981
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42982
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42983
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42984
- localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
42985
-
42986
- return {
42987
- url: toPathString(localVarUrlObj),
42988
- options: localVarRequestOptions,
42989
- };
42990
- },
42991
- /**
42992
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
42993
- * @summary Revoke
42994
- * @param {string} id
42995
- * @param {*} [options] Override http request option.
42996
- * @throws {RequiredError}
42997
- */
42998
- inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42999
- assertParamExists('inviteLinkControllerRevoke', 'id', id);
43000
- const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
43001
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43002
- let baseOptions;
43003
- if (configuration) {
43004
- baseOptions = configuration.baseOptions;
43005
- }
43006
-
43007
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
43008
- const localVarHeaderParameter = {} as any;
43009
- const localVarQueryParameter = {} as any;
43010
-
43011
- // authentication domainAuth required
43012
-
43013
- setSearchParams(localVarUrlObj, localVarQueryParameter);
43014
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43015
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
43016
-
43017
- return {
43018
- url: toPathString(localVarUrlObj),
43019
- options: localVarRequestOptions,
43020
- };
43021
- },
43022
- /**
43023
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43024
- * @summary Search
43025
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43026
- * @param {*} [options] Override http request option.
43027
- * @throws {RequiredError}
43028
- */
43029
- inviteLinkControllerSearch: async (
43030
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43031
- options: RawAxiosRequestConfig = {},
43032
- ): Promise<RequestArgs> => {
43033
- const localVarPath = `/invite-link/search`;
43034
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43035
- let baseOptions;
43036
- if (configuration) {
43037
- baseOptions = configuration.baseOptions;
43038
- }
43039
-
43040
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
43041
- const localVarHeaderParameter = {} as any;
43042
- const localVarQueryParameter = {} as any;
43043
-
43044
- // authentication domainAuth required
43045
-
43046
- localVarHeaderParameter['Content-Type'] = 'application/json';
43047
-
43048
- setSearchParams(localVarUrlObj, localVarQueryParameter);
43049
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43050
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
43051
- localVarRequestOptions.data = serializeDataIfNeeded(
43052
- inviteLinkSearchInputDTO,
43053
- localVarRequestOptions,
43054
- configuration,
43055
- );
43056
-
43057
- return {
43058
- url: toPathString(localVarUrlObj),
43059
- options: localVarRequestOptions,
43060
- };
43061
- },
43062
- };
43063
- };
43064
-
43065
- /**
43066
- * InviteLinkApi - functional programming interface
43067
- * @export
43068
- */
43069
- export const InviteLinkApiFp = function (configuration?: Configuration) {
43070
- const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
43071
- return {
43072
- /**
43073
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43074
- * @summary Create invite link
43075
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43076
- * @param {*} [options] Override http request option.
43077
- * @throws {RequiredError}
43078
- */
43079
- async inviteLinkControllerCreate(
43080
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43081
- options?: RawAxiosRequestConfig,
43082
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
43083
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
43084
- inviteLinkCreateInputDTO,
43085
- options,
43086
- );
43087
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43088
- const localVarOperationServerBasePath =
43089
- operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
43090
- return (axios, basePath) =>
43091
- createRequestFunction(
43092
- localVarAxiosArgs,
43093
- globalAxios,
43094
- BASE_PATH,
43095
- configuration,
43096
- )(axios, localVarOperationServerBasePath || basePath);
43097
- },
43098
- /**
43099
- * <br> OperationId: `InviteLinkControllerPreview`
43100
- * @summary Preview
43101
- * @param {string} token
43102
- * @param {*} [options] Override http request option.
43103
- * @throws {RequiredError}
43104
- */
43105
- async inviteLinkControllerPreview(
43106
- token: string,
43107
- options?: RawAxiosRequestConfig,
43108
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
43109
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
43110
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43111
- const localVarOperationServerBasePath =
43112
- operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
43113
- return (axios, basePath) =>
43114
- createRequestFunction(
43115
- localVarAxiosArgs,
43116
- globalAxios,
43117
- BASE_PATH,
43118
- configuration,
43119
- )(axios, localVarOperationServerBasePath || basePath);
43120
- },
43121
- /**
43122
- * <br> OperationId: `InviteLinkControllerRedeem`
43123
- * @summary Redeem
43124
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43125
- * @param {*} [options] Override http request option.
43126
- * @throws {RequiredError}
43127
- */
43128
- async inviteLinkControllerRedeem(
43129
- redeemInputDTO?: RedeemInputDTO,
43130
- options?: RawAxiosRequestConfig,
43131
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
43132
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
43133
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43134
- const localVarOperationServerBasePath =
43135
- operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
43136
- return (axios, basePath) =>
43137
- createRequestFunction(
43138
- localVarAxiosArgs,
43139
- globalAxios,
43140
- BASE_PATH,
43141
- configuration,
43142
- )(axios, localVarOperationServerBasePath || basePath);
43143
- },
43144
- /**
43145
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43146
- * @summary Revoke
43147
- * @param {string} id
43148
- * @param {*} [options] Override http request option.
43149
- * @throws {RequiredError}
43150
- */
43151
- async inviteLinkControllerRevoke(
43152
- id: string,
43153
- options?: RawAxiosRequestConfig,
43154
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
43155
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
43156
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43157
- const localVarOperationServerBasePath =
43158
- operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
43159
- return (axios, basePath) =>
43160
- createRequestFunction(
43161
- localVarAxiosArgs,
43162
- globalAxios,
43163
- BASE_PATH,
43164
- configuration,
43165
- )(axios, localVarOperationServerBasePath || basePath);
43166
- },
43167
- /**
43168
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43169
- * @summary Search
43170
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43171
- * @param {*} [options] Override http request option.
43172
- * @throws {RequiredError}
43173
- */
43174
- async inviteLinkControllerSearch(
43175
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43176
- options?: RawAxiosRequestConfig,
43177
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
43178
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
43179
- inviteLinkSearchInputDTO,
43180
- options,
43181
- );
43182
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43183
- const localVarOperationServerBasePath =
43184
- operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
43185
- return (axios, basePath) =>
43186
- createRequestFunction(
43187
- localVarAxiosArgs,
43188
- globalAxios,
43189
- BASE_PATH,
43190
- configuration,
43191
- )(axios, localVarOperationServerBasePath || basePath);
43192
- },
43193
- };
43194
- };
43195
-
43196
- /**
43197
- * InviteLinkApi - factory interface
43198
- * @export
43199
- */
43200
- export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43201
- const localVarFp = InviteLinkApiFp(configuration);
43202
- return {
43203
- /**
43204
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43205
- * @summary Create invite link
43206
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43207
- * @param {*} [options] Override http request option.
43208
- * @throws {RequiredError}
43209
- */
43210
- inviteLinkControllerCreate(
43211
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43212
- options?: RawAxiosRequestConfig,
43213
- ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
43214
- return localVarFp
43215
- .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43216
- .then((request) => request(axios, basePath));
43217
- },
43218
- /**
43219
- * <br> OperationId: `InviteLinkControllerPreview`
43220
- * @summary Preview
43221
- * @param {string} token
43222
- * @param {*} [options] Override http request option.
43223
- * @throws {RequiredError}
43224
- */
43225
- inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
43226
- return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
43227
- },
43228
- /**
43229
- * <br> OperationId: `InviteLinkControllerRedeem`
43230
- * @summary Redeem
43231
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43232
- * @param {*} [options] Override http request option.
43233
- * @throws {RequiredError}
43234
- */
43235
- inviteLinkControllerRedeem(
43236
- redeemInputDTO?: RedeemInputDTO,
43237
- options?: RawAxiosRequestConfig,
43238
- ): AxiosPromise<UserOutputWithRolesDTOAPI> {
43239
- return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
43240
- },
43241
- /**
43242
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43243
- * @summary Revoke
43244
- * @param {string} id
43245
- * @param {*} [options] Override http request option.
43246
- * @throws {RequiredError}
43247
- */
43248
- inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
43249
- return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
43250
- },
43251
- /**
43252
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43253
- * @summary Search
43254
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43255
- * @param {*} [options] Override http request option.
43256
- * @throws {RequiredError}
43257
- */
43258
- inviteLinkControllerSearch(
43259
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43260
- options?: RawAxiosRequestConfig,
43261
- ): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
43262
- return localVarFp
43263
- .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43264
- .then((request) => request(axios, basePath));
43265
- },
43266
- };
43267
- };
43268
-
43269
- /**
43270
- * InviteLinkApi - object-oriented interface
43271
- * @export
43272
- * @class InviteLinkApi
43273
- * @extends {BaseAPI}
43274
- */
43275
- export class InviteLinkApi extends BaseAPI {
43276
- /**
43277
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43278
- * @summary Create invite link
43279
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43280
- * @param {*} [options] Override http request option.
43281
- * @throws {RequiredError}
43282
- * @memberof InviteLinkApi
43283
- */
43284
- public inviteLinkControllerCreate(
43285
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43286
- options?: RawAxiosRequestConfig,
43287
- ) {
43288
- return InviteLinkApiFp(this.configuration)
43289
- .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43290
- .then((request) => request(this.axios, this.basePath));
43291
- }
43292
-
43293
- /**
43294
- * <br> OperationId: `InviteLinkControllerPreview`
43295
- * @summary Preview
43296
- * @param {string} token
43297
- * @param {*} [options] Override http request option.
43298
- * @throws {RequiredError}
43299
- * @memberof InviteLinkApi
43300
- */
43301
- public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
43302
- return InviteLinkApiFp(this.configuration)
43303
- .inviteLinkControllerPreview(token, options)
43304
- .then((request) => request(this.axios, this.basePath));
43305
- }
43306
-
43307
- /**
43308
- * <br> OperationId: `InviteLinkControllerRedeem`
43309
- * @summary Redeem
43310
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43311
- * @param {*} [options] Override http request option.
43312
- * @throws {RequiredError}
43313
- * @memberof InviteLinkApi
43314
- */
43315
- public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
43316
- return InviteLinkApiFp(this.configuration)
43317
- .inviteLinkControllerRedeem(redeemInputDTO, options)
43318
- .then((request) => request(this.axios, this.basePath));
43319
- }
43320
-
43321
- /**
43322
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43323
- * @summary Revoke
43324
- * @param {string} id
43325
- * @param {*} [options] Override http request option.
43326
- * @throws {RequiredError}
43327
- * @memberof InviteLinkApi
43328
- */
43329
- public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
43330
- return InviteLinkApiFp(this.configuration)
43331
- .inviteLinkControllerRevoke(id, options)
43332
- .then((request) => request(this.axios, this.basePath));
43333
- }
43334
-
43335
- /**
43336
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43337
- * @summary Search
43338
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43339
- * @param {*} [options] Override http request option.
43340
- * @throws {RequiredError}
43341
- * @memberof InviteLinkApi
43342
- */
43343
- public inviteLinkControllerSearch(
43344
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43345
- options?: RawAxiosRequestConfig,
43346
- ) {
43347
- return InviteLinkApiFp(this.configuration)
43348
- .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43349
- .then((request) => request(this.axios, this.basePath));
43350
- }
43351
- }