@takaro/apiclient 0.0.0-dev.f545766 → 0.0.0-dev.f62bfa1

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.
@@ -2264,6 +2264,30 @@ export interface DomainCreateInputDTO {
2264
2264
  * @memberof DomainCreateInputDTO
2265
2265
  */
2266
2266
  maxFunctionsInModule?: number;
2267
+ /**
2268
+ *
2269
+ * @type {number}
2270
+ * @memberof DomainCreateInputDTO
2271
+ */
2272
+ maxCustomRoles?: number;
2273
+ /**
2274
+ *
2275
+ * @type {number}
2276
+ * @memberof DomainCreateInputDTO
2277
+ */
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;
2267
2291
  }
2268
2292
 
2269
2293
  export const DomainCreateInputDTOStateEnum = {
@@ -2422,6 +2446,18 @@ export interface DomainOutputDTO {
2422
2446
  * @memberof DomainOutputDTO
2423
2447
  */
2424
2448
  maxFunctionsInModule: number;
2449
+ /**
2450
+ *
2451
+ * @type {number}
2452
+ * @memberof DomainOutputDTO
2453
+ */
2454
+ maxCustomRoles: number;
2455
+ /**
2456
+ *
2457
+ * @type {number}
2458
+ * @memberof DomainOutputDTO
2459
+ */
2460
+ maxDiscordLinkedRoles: number;
2425
2461
  /**
2426
2462
  *
2427
2463
  * @type {string}
@@ -2653,6 +2689,18 @@ export interface DomainUpdateInputDTO {
2653
2689
  * @memberof DomainUpdateInputDTO
2654
2690
  */
2655
2691
  maxFunctionsInModule?: number;
2692
+ /**
2693
+ *
2694
+ * @type {number}
2695
+ * @memberof DomainUpdateInputDTO
2696
+ */
2697
+ maxCustomRoles?: number;
2698
+ /**
2699
+ *
2700
+ * @type {number}
2701
+ * @memberof DomainUpdateInputDTO
2702
+ */
2703
+ maxDiscordLinkedRoles?: number;
2656
2704
  }
2657
2705
 
2658
2706
  export const DomainUpdateInputDTOStateEnum = {
@@ -3105,19 +3153,19 @@ export interface ErrorOutput {
3105
3153
  * @type {string}
3106
3154
  * @memberof ErrorOutput
3107
3155
  */
3108
- code: string;
3156
+ code?: string;
3109
3157
  /**
3110
3158
  *
3111
3159
  * @type {string}
3112
3160
  * @memberof ErrorOutput
3113
3161
  */
3114
- message: string;
3162
+ message?: string;
3115
3163
  /**
3116
3164
  *
3117
3165
  * @type {string}
3118
3166
  * @memberof ErrorOutput
3119
3167
  */
3120
- details: string;
3168
+ details?: string;
3121
3169
  }
3122
3170
  /**
3123
3171
  *
@@ -3130,7 +3178,7 @@ export interface EventChatMessage {
3130
3178
  * @type {IGamePlayer}
3131
3179
  * @memberof EventChatMessage
3132
3180
  */
3133
- player: IGamePlayer;
3181
+ player?: IGamePlayer;
3134
3182
  /**
3135
3183
  *
3136
3184
  * @type {string}
@@ -3263,6 +3311,7 @@ export const EventCreateDTOEventNameEnum = {
3263
3311
  PlayerInventoryChanged: 'player-inventory-changed',
3264
3312
  EventRateLimited: 'event-rate-limited',
3265
3313
  PlayerSyncSnapshot: 'player-sync-snapshot',
3314
+ InviteLinkCreated: 'invite-link-created',
3266
3315
  PlayerConnected: 'player-connected',
3267
3316
  PlayerDisconnected: 'player-disconnected',
3268
3317
  ChatMessage: 'chat-message',
@@ -3481,6 +3530,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
3481
3530
  PlayerInventoryChanged: 'player-inventory-changed',
3482
3531
  EventRateLimited: 'event-rate-limited',
3483
3532
  PlayerSyncSnapshot: 'player-sync-snapshot',
3533
+ InviteLinkCreated: 'invite-link-created',
3484
3534
  PlayerConnected: 'player-connected',
3485
3535
  PlayerDisconnected: 'player-disconnected',
3486
3536
  ChatMessage: 'chat-message',
@@ -3851,6 +3901,7 @@ export const EventOutputDTOEventNameEnum = {
3851
3901
  PlayerInventoryChanged: 'player-inventory-changed',
3852
3902
  EventRateLimited: 'event-rate-limited',
3853
3903
  PlayerSyncSnapshot: 'player-sync-snapshot',
3904
+ InviteLinkCreated: 'invite-link-created',
3854
3905
  PlayerConnected: 'player-connected',
3855
3906
  PlayerDisconnected: 'player-disconnected',
3856
3907
  ChatMessage: 'chat-message',
@@ -3883,6 +3934,7 @@ export type EventOutputDTOMeta =
3883
3934
  | TakaroEventGameserverDeleted
3884
3935
  | TakaroEventGameserverUpdated
3885
3936
  | TakaroEventHookExecuted
3937
+ | TakaroEventInviteLinkCreated
3886
3938
  | TakaroEventModuleCreated
3887
3939
  | TakaroEventModuleDeleted
3888
3940
  | TakaroEventModuleInstalled
@@ -4090,6 +4142,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
4090
4142
  PlayerInventoryChanged: 'player-inventory-changed',
4091
4143
  EventRateLimited: 'event-rate-limited',
4092
4144
  PlayerSyncSnapshot: 'player-sync-snapshot',
4145
+ InviteLinkCreated: 'invite-link-created',
4093
4146
  PlayerConnected: 'player-connected',
4094
4147
  PlayerDisconnected: 'player-disconnected',
4095
4148
  ChatMessage: 'chat-message',
@@ -5584,6 +5637,7 @@ export const HookCreateDTOEventTypeEnum = {
5584
5637
  PlayerInventoryChanged: 'player-inventory-changed',
5585
5638
  EventRateLimited: 'event-rate-limited',
5586
5639
  PlayerSyncSnapshot: 'player-sync-snapshot',
5640
+ InviteLinkCreated: 'invite-link-created',
5587
5641
  } as const;
5588
5642
 
5589
5643
  export type HookCreateDTOEventTypeEnum = (typeof HookCreateDTOEventTypeEnum)[keyof typeof HookCreateDTOEventTypeEnum];
@@ -5747,6 +5801,7 @@ export const HookOutputDTOEventTypeEnum = {
5747
5801
  PlayerInventoryChanged: 'player-inventory-changed',
5748
5802
  EventRateLimited: 'event-rate-limited',
5749
5803
  PlayerSyncSnapshot: 'player-sync-snapshot',
5804
+ InviteLinkCreated: 'invite-link-created',
5750
5805
  } as const;
5751
5806
 
5752
5807
  export type HookOutputDTOEventTypeEnum = (typeof HookOutputDTOEventTypeEnum)[keyof typeof HookOutputDTOEventTypeEnum];
@@ -5855,6 +5910,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
5855
5910
  PlayerInventoryChanged: 'player-inventory-changed',
5856
5911
  EventRateLimited: 'event-rate-limited',
5857
5912
  PlayerSyncSnapshot: 'player-sync-snapshot',
5913
+ InviteLinkCreated: 'invite-link-created',
5858
5914
  } as const;
5859
5915
 
5860
5916
  export type HookSearchInputAllowedFiltersEventTypeEnum =
@@ -6035,6 +6091,7 @@ export const HookTriggerDTOEventTypeEnum = {
6035
6091
  PlayerInventoryChanged: 'player-inventory-changed',
6036
6092
  EventRateLimited: 'event-rate-limited',
6037
6093
  PlayerSyncSnapshot: 'player-sync-snapshot',
6094
+ InviteLinkCreated: 'invite-link-created',
6038
6095
  } as const;
6039
6096
 
6040
6097
  export type HookTriggerDTOEventTypeEnum =
@@ -6125,6 +6182,7 @@ export const HookUpdateDTOEventTypeEnum = {
6125
6182
  PlayerInventoryChanged: 'player-inventory-changed',
6126
6183
  EventRateLimited: 'event-rate-limited',
6127
6184
  PlayerSyncSnapshot: 'player-sync-snapshot',
6185
+ InviteLinkCreated: 'invite-link-created',
6128
6186
  } as const;
6129
6187
 
6130
6188
  export type HookUpdateDTOEventTypeEnum = (typeof HookUpdateDTOEventTypeEnum)[keyof typeof HookUpdateDTOEventTypeEnum];
@@ -6457,6 +6515,7 @@ export const IHookEventTypeEnum = {
6457
6515
  PlayerInventoryChanged: 'player-inventory-changed',
6458
6516
  EventRateLimited: 'event-rate-limited',
6459
6517
  PlayerSyncSnapshot: 'player-sync-snapshot',
6518
+ InviteLinkCreated: 'invite-link-created',
6460
6519
  } as const;
6461
6520
 
6462
6521
  export type IHookEventTypeEnum = (typeof IHookEventTypeEnum)[keyof typeof IHookEventTypeEnum];
@@ -6886,25 +6945,6 @@ export interface InviteCreateDTO {
6886
6945
  */
6887
6946
  email: string;
6888
6947
  }
6889
- /**
6890
- *
6891
- * @export
6892
- * @interface InviteOutputDTO
6893
- */
6894
- export interface InviteOutputDTO {
6895
- /**
6896
- *
6897
- * @type {string}
6898
- * @memberof InviteOutputDTO
6899
- */
6900
- botInvite: string;
6901
- /**
6902
- *
6903
- * @type {string}
6904
- * @memberof InviteOutputDTO
6905
- */
6906
- devServer: string;
6907
- }
6908
6948
  /**
6909
6949
  *
6910
6950
  * @export
@@ -7048,27 +7088,28 @@ export interface InviteLinkCreateResultDTOAPI {
7048
7088
  /**
7049
7089
  *
7050
7090
  * @export
7051
- * @interface InviteLinkOutputDTO
7091
+ * @interface InviteLinkOutputArrayDTOAPI
7052
7092
  */
7053
- export interface InviteLinkOutputDTO {
7054
- /**
7055
- *
7056
- * @type {string}
7057
- * @memberof InviteLinkOutputDTO
7058
- */
7059
- id: string;
7093
+ export interface InviteLinkOutputArrayDTOAPI {
7060
7094
  /**
7061
7095
  *
7062
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7063
- * @memberof InviteLinkOutputDTO
7096
+ * @type {Array<InviteLinkOutputDTO>}
7097
+ * @memberof InviteLinkOutputArrayDTOAPI
7064
7098
  */
7065
- createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7099
+ data: Array<InviteLinkOutputDTO>;
7066
7100
  /**
7067
7101
  *
7068
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7069
- * @memberof InviteLinkOutputDTO
7102
+ * @type {MetadataOutput}
7103
+ * @memberof InviteLinkOutputArrayDTOAPI
7070
7104
  */
7071
- updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7105
+ meta: MetadataOutput;
7106
+ }
7107
+ /**
7108
+ *
7109
+ * @export
7110
+ * @interface InviteLinkOutputDTO
7111
+ */
7112
+ export interface InviteLinkOutputDTO {
7072
7113
  /**
7073
7114
  *
7074
7115
  * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
@@ -7117,6 +7158,24 @@ export interface InviteLinkOutputDTO {
7117
7158
  * @memberof InviteLinkOutputDTO
7118
7159
  */
7119
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;
7120
7179
  }
7121
7180
 
7122
7181
  export const InviteLinkOutputDTOStatusEnum = {
@@ -7148,25 +7207,6 @@ export interface InviteLinkOutputDTOAPI {
7148
7207
  */
7149
7208
  meta: MetadataOutput;
7150
7209
  }
7151
- /**
7152
- *
7153
- * @export
7154
- * @interface InviteLinkOutputArrayDTOAPI
7155
- */
7156
- export interface InviteLinkOutputArrayDTOAPI {
7157
- /**
7158
- *
7159
- * @type {Array<InviteLinkOutputDTO>}
7160
- * @memberof InviteLinkOutputArrayDTOAPI
7161
- */
7162
- data: Array<InviteLinkOutputDTO>;
7163
- /**
7164
- *
7165
- * @type {MetadataOutput}
7166
- * @memberof InviteLinkOutputArrayDTOAPI
7167
- */
7168
- meta: MetadataOutput;
7169
- }
7170
7210
  /**
7171
7211
  *
7172
7212
  * @export
@@ -7364,15 +7404,21 @@ export type InviteLinkSearchInputDTOSortDirectionEnum =
7364
7404
  /**
7365
7405
  *
7366
7406
  * @export
7367
- * @interface RedeemInputDTO
7407
+ * @interface InviteOutputDTO
7368
7408
  */
7369
- export interface RedeemInputDTO {
7409
+ export interface InviteOutputDTO {
7370
7410
  /**
7371
7411
  *
7372
7412
  * @type {string}
7373
- * @memberof RedeemInputDTO
7413
+ * @memberof InviteOutputDTO
7374
7414
  */
7375
- token: string;
7415
+ botInvite: string;
7416
+ /**
7417
+ *
7418
+ * @type {string}
7419
+ * @memberof InviteOutputDTO
7420
+ */
7421
+ devServer: string;
7376
7422
  }
7377
7423
  /**
7378
7424
  *
@@ -8280,7 +8326,7 @@ export interface MetadataOutput {
8280
8326
  * @type {ErrorOutput}
8281
8327
  * @memberof MetadataOutput
8282
8328
  */
8283
- error: ErrorOutput;
8329
+ error?: ErrorOutput;
8284
8330
  /**
8285
8331
  *
8286
8332
  * @type {number}
@@ -12548,6 +12594,19 @@ export const RecentOrderDTOStatusEnum = {
12548
12594
 
12549
12595
  export type RecentOrderDTOStatusEnum = (typeof RecentOrderDTOStatusEnum)[keyof typeof RecentOrderDTOStatusEnum];
12550
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
+ }
12551
12610
  /**
12552
12611
  *
12553
12612
  * @export
@@ -12559,7 +12618,7 @@ export interface RedirectQs {
12559
12618
  * @type {string}
12560
12619
  * @memberof RedirectQs
12561
12620
  */
12562
- redirect: string;
12621
+ redirect?: string;
12563
12622
  }
12564
12623
  /**
12565
12624
  *
@@ -13360,7 +13419,7 @@ export interface RoleUpdateInputDTO {
13360
13419
  * @type {string}
13361
13420
  * @memberof RoleUpdateInputDTO
13362
13421
  */
13363
- linkedDiscordRoleId?: string;
13422
+ linkedDiscordRoleId?: string | null;
13364
13423
  }
13365
13424
  /**
13366
13425
  *
@@ -16280,6 +16339,49 @@ export interface TakaroEventHookExecuted {
16280
16339
  */
16281
16340
  timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
16282
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
+ }
16283
16385
  /**
16284
16386
  *
16285
16387
  * @export
@@ -17638,6 +17740,37 @@ export interface UserCreateInputDTO {
17638
17740
  */
17639
17741
  isDashboardUser?: boolean;
17640
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
+ }
17641
17774
  /**
17642
17775
  *
17643
17776
  * @export
@@ -17741,7 +17874,7 @@ export interface UserOutputDTO {
17741
17874
  * @type {PlayerOutputWithRolesDTO}
17742
17875
  * @memberof UserOutputDTO
17743
17876
  */
17744
- player: PlayerOutputWithRolesDTO;
17877
+ player?: PlayerOutputWithRolesDTO;
17745
17878
  /**
17746
17879
  *
17747
17880
  * @type {boolean}
@@ -17759,25 +17892,25 @@ export interface UserOutputDTO {
17759
17892
  * @type {string}
17760
17893
  * @memberof UserOutputDTO
17761
17894
  */
17762
- id: string;
17895
+ inviteLinkId?: string;
17763
17896
  /**
17764
17897
  *
17765
- * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17898
+ * @type {string}
17766
17899
  * @memberof UserOutputDTO
17767
17900
  */
17768
- createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17901
+ id: string;
17769
17902
  /**
17770
17903
  *
17771
17904
  * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17772
17905
  * @memberof UserOutputDTO
17773
17906
  */
17774
- updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17907
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17775
17908
  /**
17776
17909
  *
17777
- * @type {string}
17910
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
17778
17911
  * @memberof UserOutputDTO
17779
17912
  */
17780
- inviteLinkId?: string;
17913
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17781
17914
  }
17782
17915
  /**
17783
17916
  *
@@ -17869,7 +18002,7 @@ export interface UserOutputWithRolesDTO {
17869
18002
  * @type {PlayerOutputWithRolesDTO}
17870
18003
  * @memberof UserOutputWithRolesDTO
17871
18004
  */
17872
- player: PlayerOutputWithRolesDTO;
18005
+ player?: PlayerOutputWithRolesDTO;
17873
18006
  /**
17874
18007
  *
17875
18008
  * @type {boolean}
@@ -26404,6 +26537,52 @@ export const DomainApiAxiosParamCreator = function (configuration?: Configuratio
26404
26537
  options: localVarRequestOptions,
26405
26538
  };
26406
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
+ },
26407
26586
  /**
26408
26587
  * <br> OperationId: `DomainControllerGetOne`
26409
26588
  * @summary Get one
@@ -26676,6 +26855,35 @@ export const DomainApiFp = function (configuration?: Configuration) {
26676
26855
  configuration,
26677
26856
  )(axios, localVarOperationServerBasePath || basePath);
26678
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
+ },
26679
26887
  /**
26680
26888
  * <br> OperationId: `DomainControllerGetOne`
26681
26889
  * @summary Get one
@@ -26850,6 +27058,23 @@ export const DomainApiFactory = function (configuration?: Configuration, basePat
26850
27058
  .domainControllerCreate(domainCreateInputDTO, options)
26851
27059
  .then((request) => request(axios, basePath));
26852
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
+ },
26853
27078
  /**
26854
27079
  * <br> OperationId: `DomainControllerGetOne`
26855
27080
  * @summary Get one
@@ -26955,6 +27180,25 @@ export class DomainApi extends BaseAPI {
26955
27180
  .then((request) => request(this.axios, this.basePath));
26956
27181
  }
26957
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
+
26958
27202
  /**
26959
27203
  * <br> OperationId: `DomainControllerGetOne`
26960
27204
  * @summary Get one
@@ -27915,16 +28159,14 @@ export const ExternalAuthApiAxiosParamCreator = function (configuration?: Config
27915
28159
  /**
27916
28160
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27917
28161
  * @summary Auth discord
27918
- * @param {string} redirect
28162
+ * @param {string} [redirect]
27919
28163
  * @param {*} [options] Override http request option.
27920
28164
  * @throws {RequiredError}
27921
28165
  */
27922
28166
  externalAuthControllerAuthDiscord: async (
27923
- redirect: string,
28167
+ redirect?: string,
27924
28168
  options: RawAxiosRequestConfig = {},
27925
28169
  ): Promise<RequestArgs> => {
27926
- // verify required parameter 'redirect' is not null or undefined
27927
- assertParamExists('externalAuthControllerAuthDiscord', 'redirect', redirect);
27928
28170
  const localVarPath = `/auth/discord`;
27929
28171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27930
28172
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -27991,12 +28233,12 @@ export const ExternalAuthApiFp = function (configuration?: Configuration) {
27991
28233
  /**
27992
28234
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
27993
28235
  * @summary Auth discord
27994
- * @param {string} redirect
28236
+ * @param {string} [redirect]
27995
28237
  * @param {*} [options] Override http request option.
27996
28238
  * @throws {RequiredError}
27997
28239
  */
27998
28240
  async externalAuthControllerAuthDiscord(
27999
- redirect: string,
28241
+ redirect?: string,
28000
28242
  options?: RawAxiosRequestConfig,
28001
28243
  ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28002
28244
  const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscord(redirect, options);
@@ -28050,11 +28292,11 @@ export const ExternalAuthApiFactory = function (
28050
28292
  /**
28051
28293
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28052
28294
  * @summary Auth discord
28053
- * @param {string} redirect
28295
+ * @param {string} [redirect]
28054
28296
  * @param {*} [options] Override http request option.
28055
28297
  * @throws {RequiredError}
28056
28298
  */
28057
- externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28299
+ externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28058
28300
  return localVarFp
28059
28301
  .externalAuthControllerAuthDiscord(redirect, options)
28060
28302
  .then((request) => request(axios, basePath));
@@ -28081,12 +28323,12 @@ export class ExternalAuthApi extends BaseAPI {
28081
28323
  /**
28082
28324
  * <br> OperationId: `ExternalAuthControllerAuthDiscord`
28083
28325
  * @summary Auth discord
28084
- * @param {string} redirect
28326
+ * @param {string} [redirect]
28085
28327
  * @param {*} [options] Override http request option.
28086
28328
  * @throws {RequiredError}
28087
28329
  * @memberof ExternalAuthApi
28088
28330
  */
28089
- public externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig) {
28331
+ public externalAuthControllerAuthDiscord(redirect?: string, options?: RawAxiosRequestConfig) {
28090
28332
  return ExternalAuthApiFp(this.configuration)
28091
28333
  .externalAuthControllerAuthDiscord(redirect, options)
28092
28334
  .then((request) => request(this.axios, this.basePath));
@@ -31788,6 +32030,488 @@ export class HookApi extends BaseAPI {
31788
32030
  }
31789
32031
  }
31790
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
+
31791
32515
  /**
31792
32516
  * ItemApi - axios parameter creator
31793
32517
  * @export
@@ -32026,6 +32750,34 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration)
32026
32750
  options: localVarRequestOptions,
32027
32751
  };
32028
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
+ },
32029
32781
  /**
32030
32782
  * <br> OperationId: `MetaGetMetrics`
32031
32783
  * @summary Get metrics
@@ -32197,6 +32949,27 @@ export const MetaApiFp = function (configuration?: Configuration) {
32197
32949
  configuration,
32198
32950
  )(axios, localVarOperationServerBasePath || basePath);
32199
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
+ },
32200
32973
  /**
32201
32974
  * <br> OperationId: `MetaGetMetrics`
32202
32975
  * @summary Get metrics
@@ -32321,6 +33094,15 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath?
32321
33094
  metaGetHealth(options?: RawAxiosRequestConfig): AxiosPromise<HealthOutputDTO> {
32322
33095
  return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
32323
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
+ },
32324
33106
  /**
32325
33107
  * <br> OperationId: `MetaGetMetrics`
32326
33108
  * @summary Get metrics
@@ -32389,6 +33171,19 @@ export class MetaApi extends BaseAPI {
32389
33171
  .then((request) => request(this.axios, this.basePath));
32390
33172
  }
32391
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
+
32392
33187
  /**
32393
33188
  * <br> OperationId: `MetaGetMetrics`
32394
33189
  * @summary Get metrics
@@ -41099,6 +41894,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41099
41894
  */
41100
41895
  userControllerCountBillableDashboardUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41101
41896
  const localVarPath = `/user/count`;
41897
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41102
41898
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41103
41899
  let baseOptions;
41104
41900
  if (configuration) {
@@ -41109,8 +41905,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41109
41905
  const localVarHeaderParameter = {} as any;
41110
41906
  const localVarQueryParameter = {} as any;
41111
41907
 
41908
+ // authentication domainAuth required
41909
+
41112
41910
  setSearchParams(localVarUrlObj, localVarQueryParameter);
41113
- const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41911
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41114
41912
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
41115
41913
 
41116
41914
  return {
@@ -41223,6 +42021,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
41223
42021
  * @summary Invite
41224
42022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
41225
42023
  * @param {*} [options] Override http request option.
42024
+ * @deprecated
41226
42025
  * @throws {RequiredError}
41227
42026
  */
41228
42027
  userControllerInvite: async (
@@ -41717,6 +42516,7 @@ export const UserApiFp = function (configuration?: Configuration) {
41717
42516
  * @summary Invite
41718
42517
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
41719
42518
  * @param {*} [options] Override http request option.
42519
+ * @deprecated
41720
42520
  * @throws {RequiredError}
41721
42521
  */
41722
42522
  async userControllerInvite(
@@ -42020,6 +42820,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
42020
42820
  * @summary Invite
42021
42821
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
42022
42822
  * @param {*} [options] Override http request option.
42823
+ * @deprecated
42023
42824
  * @throws {RequiredError}
42024
42825
  */
42025
42826
  userControllerInvite(
@@ -42220,6 +43021,7 @@ export class UserApi extends BaseAPI {
42220
43021
  * @summary Invite
42221
43022
  * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
42222
43023
  * @param {*} [options] Override http request option.
43024
+ * @deprecated
42223
43025
  * @throws {RequiredError}
42224
43026
  * @memberof UserApi
42225
43027
  */
@@ -42842,474 +43644,3 @@ export class VariableApi extends BaseAPI {
42842
43644
  .then((request) => request(this.axios, this.basePath));
42843
43645
  }
42844
43646
  }
42845
-
42846
- /**
42847
- * InviteLinkApi - axios parameter creator
42848
- * @export
42849
- */
42850
- export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
42851
- return {
42852
- /**
42853
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
42854
- * @summary Create invite link
42855
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
42856
- * @param {*} [options] Override http request option.
42857
- * @throws {RequiredError}
42858
- */
42859
- inviteLinkControllerCreate: async (
42860
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
42861
- options: RawAxiosRequestConfig = {},
42862
- ): Promise<RequestArgs> => {
42863
- const localVarPath = `/invite-link`;
42864
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42865
- let baseOptions;
42866
- if (configuration) {
42867
- baseOptions = configuration.baseOptions;
42868
- }
42869
-
42870
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42871
- const localVarHeaderParameter = {} as any;
42872
- const localVarQueryParameter = {} as any;
42873
-
42874
- // authentication domainAuth required
42875
-
42876
- localVarHeaderParameter['Content-Type'] = 'application/json';
42877
-
42878
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42879
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42880
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42881
- localVarRequestOptions.data = serializeDataIfNeeded(
42882
- inviteLinkCreateInputDTO,
42883
- localVarRequestOptions,
42884
- configuration,
42885
- );
42886
-
42887
- return {
42888
- url: toPathString(localVarUrlObj),
42889
- options: localVarRequestOptions,
42890
- };
42891
- },
42892
- /**
42893
- * <br> OperationId: `InviteLinkControllerPreview`
42894
- * @summary Preview
42895
- * @param {string} token
42896
- * @param {*} [options] Override http request option.
42897
- * @throws {RequiredError}
42898
- */
42899
- inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42900
- assertParamExists('inviteLinkControllerPreview', 'token', token);
42901
- const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
42902
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42903
- let baseOptions;
42904
- if (configuration) {
42905
- baseOptions = configuration.baseOptions;
42906
- }
42907
-
42908
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
42909
- const localVarHeaderParameter = {} as any;
42910
- const localVarQueryParameter = {} as any;
42911
-
42912
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42913
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42914
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42915
-
42916
- return {
42917
- url: toPathString(localVarUrlObj),
42918
- options: localVarRequestOptions,
42919
- };
42920
- },
42921
- /**
42922
- * <br> OperationId: `InviteLinkControllerRedeem`
42923
- * @summary Redeem
42924
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
42925
- * @param {*} [options] Override http request option.
42926
- * @throws {RequiredError}
42927
- */
42928
- inviteLinkControllerRedeem: async (
42929
- redeemInputDTO?: RedeemInputDTO,
42930
- options: RawAxiosRequestConfig = {},
42931
- ): Promise<RequestArgs> => {
42932
- const localVarPath = `/invite-link/redeem`;
42933
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42934
- let baseOptions;
42935
- if (configuration) {
42936
- baseOptions = configuration.baseOptions;
42937
- }
42938
-
42939
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42940
- const localVarHeaderParameter = {} as any;
42941
- const localVarQueryParameter = {} as any;
42942
-
42943
- localVarHeaderParameter['Content-Type'] = 'application/json';
42944
-
42945
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42946
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42947
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42948
- localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
42949
-
42950
- return {
42951
- url: toPathString(localVarUrlObj),
42952
- options: localVarRequestOptions,
42953
- };
42954
- },
42955
- /**
42956
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
42957
- * @summary Revoke
42958
- * @param {string} id
42959
- * @param {*} [options] Override http request option.
42960
- * @throws {RequiredError}
42961
- */
42962
- inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42963
- assertParamExists('inviteLinkControllerRevoke', 'id', id);
42964
- const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
42965
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42966
- let baseOptions;
42967
- if (configuration) {
42968
- baseOptions = configuration.baseOptions;
42969
- }
42970
-
42971
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
42972
- const localVarHeaderParameter = {} as any;
42973
- const localVarQueryParameter = {} as any;
42974
-
42975
- // authentication domainAuth required
42976
-
42977
- setSearchParams(localVarUrlObj, localVarQueryParameter);
42978
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42979
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42980
-
42981
- return {
42982
- url: toPathString(localVarUrlObj),
42983
- options: localVarRequestOptions,
42984
- };
42985
- },
42986
- /**
42987
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
42988
- * @summary Search
42989
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
42990
- * @param {*} [options] Override http request option.
42991
- * @throws {RequiredError}
42992
- */
42993
- inviteLinkControllerSearch: async (
42994
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
42995
- options: RawAxiosRequestConfig = {},
42996
- ): Promise<RequestArgs> => {
42997
- const localVarPath = `/invite-link/search`;
42998
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42999
- let baseOptions;
43000
- if (configuration) {
43001
- baseOptions = configuration.baseOptions;
43002
- }
43003
-
43004
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
43005
- const localVarHeaderParameter = {} as any;
43006
- const localVarQueryParameter = {} as any;
43007
-
43008
- // authentication domainAuth required
43009
-
43010
- localVarHeaderParameter['Content-Type'] = 'application/json';
43011
-
43012
- setSearchParams(localVarUrlObj, localVarQueryParameter);
43013
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43014
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
43015
- localVarRequestOptions.data = serializeDataIfNeeded(
43016
- inviteLinkSearchInputDTO,
43017
- localVarRequestOptions,
43018
- configuration,
43019
- );
43020
-
43021
- return {
43022
- url: toPathString(localVarUrlObj),
43023
- options: localVarRequestOptions,
43024
- };
43025
- },
43026
- };
43027
- };
43028
-
43029
- /**
43030
- * InviteLinkApi - functional programming interface
43031
- * @export
43032
- */
43033
- export const InviteLinkApiFp = function (configuration?: Configuration) {
43034
- const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
43035
- return {
43036
- /**
43037
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43038
- * @summary Create invite link
43039
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43040
- * @param {*} [options] Override http request option.
43041
- * @throws {RequiredError}
43042
- */
43043
- async inviteLinkControllerCreate(
43044
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43045
- options?: RawAxiosRequestConfig,
43046
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
43047
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
43048
- inviteLinkCreateInputDTO,
43049
- options,
43050
- );
43051
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43052
- const localVarOperationServerBasePath =
43053
- operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
43054
- return (axios, basePath) =>
43055
- createRequestFunction(
43056
- localVarAxiosArgs,
43057
- globalAxios,
43058
- BASE_PATH,
43059
- configuration,
43060
- )(axios, localVarOperationServerBasePath || basePath);
43061
- },
43062
- /**
43063
- * <br> OperationId: `InviteLinkControllerPreview`
43064
- * @summary Preview
43065
- * @param {string} token
43066
- * @param {*} [options] Override http request option.
43067
- * @throws {RequiredError}
43068
- */
43069
- async inviteLinkControllerPreview(
43070
- token: string,
43071
- options?: RawAxiosRequestConfig,
43072
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
43073
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
43074
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43075
- const localVarOperationServerBasePath =
43076
- operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
43077
- return (axios, basePath) =>
43078
- createRequestFunction(
43079
- localVarAxiosArgs,
43080
- globalAxios,
43081
- BASE_PATH,
43082
- configuration,
43083
- )(axios, localVarOperationServerBasePath || basePath);
43084
- },
43085
- /**
43086
- * <br> OperationId: `InviteLinkControllerRedeem`
43087
- * @summary Redeem
43088
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43089
- * @param {*} [options] Override http request option.
43090
- * @throws {RequiredError}
43091
- */
43092
- async inviteLinkControllerRedeem(
43093
- redeemInputDTO?: RedeemInputDTO,
43094
- options?: RawAxiosRequestConfig,
43095
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
43096
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
43097
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43098
- const localVarOperationServerBasePath =
43099
- operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
43100
- return (axios, basePath) =>
43101
- createRequestFunction(
43102
- localVarAxiosArgs,
43103
- globalAxios,
43104
- BASE_PATH,
43105
- configuration,
43106
- )(axios, localVarOperationServerBasePath || basePath);
43107
- },
43108
- /**
43109
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43110
- * @summary Revoke
43111
- * @param {string} id
43112
- * @param {*} [options] Override http request option.
43113
- * @throws {RequiredError}
43114
- */
43115
- async inviteLinkControllerRevoke(
43116
- id: string,
43117
- options?: RawAxiosRequestConfig,
43118
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
43119
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
43120
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43121
- const localVarOperationServerBasePath =
43122
- operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
43123
- return (axios, basePath) =>
43124
- createRequestFunction(
43125
- localVarAxiosArgs,
43126
- globalAxios,
43127
- BASE_PATH,
43128
- configuration,
43129
- )(axios, localVarOperationServerBasePath || basePath);
43130
- },
43131
- /**
43132
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43133
- * @summary Search
43134
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43135
- * @param {*} [options] Override http request option.
43136
- * @throws {RequiredError}
43137
- */
43138
- async inviteLinkControllerSearch(
43139
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43140
- options?: RawAxiosRequestConfig,
43141
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
43142
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
43143
- inviteLinkSearchInputDTO,
43144
- options,
43145
- );
43146
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43147
- const localVarOperationServerBasePath =
43148
- operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
43149
- return (axios, basePath) =>
43150
- createRequestFunction(
43151
- localVarAxiosArgs,
43152
- globalAxios,
43153
- BASE_PATH,
43154
- configuration,
43155
- )(axios, localVarOperationServerBasePath || basePath);
43156
- },
43157
- };
43158
- };
43159
-
43160
- /**
43161
- * InviteLinkApi - factory interface
43162
- * @export
43163
- */
43164
- export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43165
- const localVarFp = InviteLinkApiFp(configuration);
43166
- return {
43167
- /**
43168
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43169
- * @summary Create invite link
43170
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43171
- * @param {*} [options] Override http request option.
43172
- * @throws {RequiredError}
43173
- */
43174
- inviteLinkControllerCreate(
43175
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43176
- options?: RawAxiosRequestConfig,
43177
- ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
43178
- return localVarFp
43179
- .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43180
- .then((request) => request(axios, basePath));
43181
- },
43182
- /**
43183
- * <br> OperationId: `InviteLinkControllerPreview`
43184
- * @summary Preview
43185
- * @param {string} token
43186
- * @param {*} [options] Override http request option.
43187
- * @throws {RequiredError}
43188
- */
43189
- inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
43190
- return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
43191
- },
43192
- /**
43193
- * <br> OperationId: `InviteLinkControllerRedeem`
43194
- * @summary Redeem
43195
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43196
- * @param {*} [options] Override http request option.
43197
- * @throws {RequiredError}
43198
- */
43199
- inviteLinkControllerRedeem(
43200
- redeemInputDTO?: RedeemInputDTO,
43201
- options?: RawAxiosRequestConfig,
43202
- ): AxiosPromise<UserOutputWithRolesDTOAPI> {
43203
- return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
43204
- },
43205
- /**
43206
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43207
- * @summary Revoke
43208
- * @param {string} id
43209
- * @param {*} [options] Override http request option.
43210
- * @throws {RequiredError}
43211
- */
43212
- inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
43213
- return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
43214
- },
43215
- /**
43216
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43217
- * @summary Search
43218
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43219
- * @param {*} [options] Override http request option.
43220
- * @throws {RequiredError}
43221
- */
43222
- inviteLinkControllerSearch(
43223
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43224
- options?: RawAxiosRequestConfig,
43225
- ): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
43226
- return localVarFp
43227
- .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43228
- .then((request) => request(axios, basePath));
43229
- },
43230
- };
43231
- };
43232
-
43233
- /**
43234
- * InviteLinkApi - object-oriented interface
43235
- * @export
43236
- * @class InviteLinkApi
43237
- * @extends {BaseAPI}
43238
- */
43239
- export class InviteLinkApi extends BaseAPI {
43240
- /**
43241
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43242
- * @summary Create invite link
43243
- * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43244
- * @param {*} [options] Override http request option.
43245
- * @throws {RequiredError}
43246
- * @memberof InviteLinkApi
43247
- */
43248
- public inviteLinkControllerCreate(
43249
- inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43250
- options?: RawAxiosRequestConfig,
43251
- ) {
43252
- return InviteLinkApiFp(this.configuration)
43253
- .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43254
- .then((request) => request(this.axios, this.basePath));
43255
- }
43256
-
43257
- /**
43258
- * <br> OperationId: `InviteLinkControllerPreview`
43259
- * @summary Preview
43260
- * @param {string} token
43261
- * @param {*} [options] Override http request option.
43262
- * @throws {RequiredError}
43263
- * @memberof InviteLinkApi
43264
- */
43265
- public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
43266
- return InviteLinkApiFp(this.configuration)
43267
- .inviteLinkControllerPreview(token, options)
43268
- .then((request) => request(this.axios, this.basePath));
43269
- }
43270
-
43271
- /**
43272
- * <br> OperationId: `InviteLinkControllerRedeem`
43273
- * @summary Redeem
43274
- * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43275
- * @param {*} [options] Override http request option.
43276
- * @throws {RequiredError}
43277
- * @memberof InviteLinkApi
43278
- */
43279
- public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
43280
- return InviteLinkApiFp(this.configuration)
43281
- .inviteLinkControllerRedeem(redeemInputDTO, options)
43282
- .then((request) => request(this.axios, this.basePath));
43283
- }
43284
-
43285
- /**
43286
- * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43287
- * @summary Revoke
43288
- * @param {string} id
43289
- * @param {*} [options] Override http request option.
43290
- * @throws {RequiredError}
43291
- * @memberof InviteLinkApi
43292
- */
43293
- public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
43294
- return InviteLinkApiFp(this.configuration)
43295
- .inviteLinkControllerRevoke(id, options)
43296
- .then((request) => request(this.axios, this.basePath));
43297
- }
43298
-
43299
- /**
43300
- * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43301
- * @summary Search
43302
- * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43303
- * @param {*} [options] Override http request option.
43304
- * @throws {RequiredError}
43305
- * @memberof InviteLinkApi
43306
- */
43307
- public inviteLinkControllerSearch(
43308
- inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43309
- options?: RawAxiosRequestConfig,
43310
- ) {
43311
- return InviteLinkApiFp(this.configuration)
43312
- .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43313
- .then((request) => request(this.axios, this.basePath));
43314
- }
43315
- }