@takaro/apiclient 0.0.0-dev.9be8884 → 0.0.0-dev.9d3c1bc
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.
- package/dist/generated/api.d.ts +371 -301
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +4881 -4782
- package/dist/generated/api.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +693 -534
- package/src/lib/__tests__/baseClient.unit.test.ts +1 -1
package/src/generated/api.ts
CHANGED
|
@@ -2282,6 +2282,12 @@ export interface DomainCreateInputDTO {
|
|
|
2282
2282
|
* @memberof DomainCreateInputDTO
|
|
2283
2283
|
*/
|
|
2284
2284
|
serverRegistrationToken?: string;
|
|
2285
|
+
/**
|
|
2286
|
+
*
|
|
2287
|
+
* @type {boolean}
|
|
2288
|
+
* @memberof DomainCreateInputDTO
|
|
2289
|
+
*/
|
|
2290
|
+
skipBuiltinSeeding?: boolean;
|
|
2285
2291
|
}
|
|
2286
2292
|
|
|
2287
2293
|
export const DomainCreateInputDTOStateEnum = {
|
|
@@ -3305,6 +3311,7 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
3305
3311
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
3306
3312
|
EventRateLimited: 'event-rate-limited',
|
|
3307
3313
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
3314
|
+
InviteLinkCreated: 'invite-link-created',
|
|
3308
3315
|
PlayerConnected: 'player-connected',
|
|
3309
3316
|
PlayerDisconnected: 'player-disconnected',
|
|
3310
3317
|
ChatMessage: 'chat-message',
|
|
@@ -3523,6 +3530,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
|
|
|
3523
3530
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
3524
3531
|
EventRateLimited: 'event-rate-limited',
|
|
3525
3532
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
3533
|
+
InviteLinkCreated: 'invite-link-created',
|
|
3526
3534
|
PlayerConnected: 'player-connected',
|
|
3527
3535
|
PlayerDisconnected: 'player-disconnected',
|
|
3528
3536
|
ChatMessage: 'chat-message',
|
|
@@ -3893,6 +3901,7 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
3893
3901
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
3894
3902
|
EventRateLimited: 'event-rate-limited',
|
|
3895
3903
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
3904
|
+
InviteLinkCreated: 'invite-link-created',
|
|
3896
3905
|
PlayerConnected: 'player-connected',
|
|
3897
3906
|
PlayerDisconnected: 'player-disconnected',
|
|
3898
3907
|
ChatMessage: 'chat-message',
|
|
@@ -3925,6 +3934,7 @@ export type EventOutputDTOMeta =
|
|
|
3925
3934
|
| TakaroEventGameserverDeleted
|
|
3926
3935
|
| TakaroEventGameserverUpdated
|
|
3927
3936
|
| TakaroEventHookExecuted
|
|
3937
|
+
| TakaroEventInviteLinkCreated
|
|
3928
3938
|
| TakaroEventModuleCreated
|
|
3929
3939
|
| TakaroEventModuleDeleted
|
|
3930
3940
|
| TakaroEventModuleInstalled
|
|
@@ -4132,6 +4142,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
|
|
|
4132
4142
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
4133
4143
|
EventRateLimited: 'event-rate-limited',
|
|
4134
4144
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
4145
|
+
InviteLinkCreated: 'invite-link-created',
|
|
4135
4146
|
PlayerConnected: 'player-connected',
|
|
4136
4147
|
PlayerDisconnected: 'player-disconnected',
|
|
4137
4148
|
ChatMessage: 'chat-message',
|
|
@@ -5626,6 +5637,7 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
5626
5637
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
5627
5638
|
EventRateLimited: 'event-rate-limited',
|
|
5628
5639
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
5640
|
+
InviteLinkCreated: 'invite-link-created',
|
|
5629
5641
|
} as const;
|
|
5630
5642
|
|
|
5631
5643
|
export type HookCreateDTOEventTypeEnum = (typeof HookCreateDTOEventTypeEnum)[keyof typeof HookCreateDTOEventTypeEnum];
|
|
@@ -5789,6 +5801,7 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
5789
5801
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
5790
5802
|
EventRateLimited: 'event-rate-limited',
|
|
5791
5803
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
5804
|
+
InviteLinkCreated: 'invite-link-created',
|
|
5792
5805
|
} as const;
|
|
5793
5806
|
|
|
5794
5807
|
export type HookOutputDTOEventTypeEnum = (typeof HookOutputDTOEventTypeEnum)[keyof typeof HookOutputDTOEventTypeEnum];
|
|
@@ -5897,6 +5910,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
|
5897
5910
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
5898
5911
|
EventRateLimited: 'event-rate-limited',
|
|
5899
5912
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
5913
|
+
InviteLinkCreated: 'invite-link-created',
|
|
5900
5914
|
} as const;
|
|
5901
5915
|
|
|
5902
5916
|
export type HookSearchInputAllowedFiltersEventTypeEnum =
|
|
@@ -6077,6 +6091,7 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
6077
6091
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
6078
6092
|
EventRateLimited: 'event-rate-limited',
|
|
6079
6093
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
6094
|
+
InviteLinkCreated: 'invite-link-created',
|
|
6080
6095
|
} as const;
|
|
6081
6096
|
|
|
6082
6097
|
export type HookTriggerDTOEventTypeEnum =
|
|
@@ -6167,6 +6182,7 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
6167
6182
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
6168
6183
|
EventRateLimited: 'event-rate-limited',
|
|
6169
6184
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
6185
|
+
InviteLinkCreated: 'invite-link-created',
|
|
6170
6186
|
} as const;
|
|
6171
6187
|
|
|
6172
6188
|
export type HookUpdateDTOEventTypeEnum = (typeof HookUpdateDTOEventTypeEnum)[keyof typeof HookUpdateDTOEventTypeEnum];
|
|
@@ -6499,6 +6515,7 @@ export const IHookEventTypeEnum = {
|
|
|
6499
6515
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
6500
6516
|
EventRateLimited: 'event-rate-limited',
|
|
6501
6517
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
6518
|
+
InviteLinkCreated: 'invite-link-created',
|
|
6502
6519
|
} as const;
|
|
6503
6520
|
|
|
6504
6521
|
export type IHookEventTypeEnum = (typeof IHookEventTypeEnum)[keyof typeof IHookEventTypeEnum];
|
|
@@ -6928,25 +6945,6 @@ export interface InviteCreateDTO {
|
|
|
6928
6945
|
*/
|
|
6929
6946
|
email: string;
|
|
6930
6947
|
}
|
|
6931
|
-
/**
|
|
6932
|
-
*
|
|
6933
|
-
* @export
|
|
6934
|
-
* @interface InviteOutputDTO
|
|
6935
|
-
*/
|
|
6936
|
-
export interface InviteOutputDTO {
|
|
6937
|
-
/**
|
|
6938
|
-
*
|
|
6939
|
-
* @type {string}
|
|
6940
|
-
* @memberof InviteOutputDTO
|
|
6941
|
-
*/
|
|
6942
|
-
botInvite: string;
|
|
6943
|
-
/**
|
|
6944
|
-
*
|
|
6945
|
-
* @type {string}
|
|
6946
|
-
* @memberof InviteOutputDTO
|
|
6947
|
-
*/
|
|
6948
|
-
devServer: string;
|
|
6949
|
-
}
|
|
6950
6948
|
/**
|
|
6951
6949
|
*
|
|
6952
6950
|
* @export
|
|
@@ -7090,27 +7088,28 @@ export interface InviteLinkCreateResultDTOAPI {
|
|
|
7090
7088
|
/**
|
|
7091
7089
|
*
|
|
7092
7090
|
* @export
|
|
7093
|
-
* @interface
|
|
7091
|
+
* @interface InviteLinkOutputArrayDTOAPI
|
|
7094
7092
|
*/
|
|
7095
|
-
export interface
|
|
7096
|
-
/**
|
|
7097
|
-
*
|
|
7098
|
-
* @type {string}
|
|
7099
|
-
* @memberof InviteLinkOutputDTO
|
|
7100
|
-
*/
|
|
7101
|
-
id: string;
|
|
7093
|
+
export interface InviteLinkOutputArrayDTOAPI {
|
|
7102
7094
|
/**
|
|
7103
7095
|
*
|
|
7104
|
-
* @type {
|
|
7105
|
-
* @memberof
|
|
7096
|
+
* @type {Array<InviteLinkOutputDTO>}
|
|
7097
|
+
* @memberof InviteLinkOutputArrayDTOAPI
|
|
7106
7098
|
*/
|
|
7107
|
-
|
|
7099
|
+
data: Array<InviteLinkOutputDTO>;
|
|
7108
7100
|
/**
|
|
7109
7101
|
*
|
|
7110
|
-
* @type {
|
|
7111
|
-
* @memberof
|
|
7102
|
+
* @type {MetadataOutput}
|
|
7103
|
+
* @memberof InviteLinkOutputArrayDTOAPI
|
|
7112
7104
|
*/
|
|
7113
|
-
|
|
7105
|
+
meta: MetadataOutput;
|
|
7106
|
+
}
|
|
7107
|
+
/**
|
|
7108
|
+
*
|
|
7109
|
+
* @export
|
|
7110
|
+
* @interface InviteLinkOutputDTO
|
|
7111
|
+
*/
|
|
7112
|
+
export interface InviteLinkOutputDTO {
|
|
7114
7113
|
/**
|
|
7115
7114
|
*
|
|
7116
7115
|
* @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
|
|
@@ -7159,6 +7158,24 @@ export interface InviteLinkOutputDTO {
|
|
|
7159
7158
|
* @memberof InviteLinkOutputDTO
|
|
7160
7159
|
*/
|
|
7161
7160
|
roles: Array<InviteLinkRoleDTO>;
|
|
7161
|
+
/**
|
|
7162
|
+
*
|
|
7163
|
+
* @type {string}
|
|
7164
|
+
* @memberof InviteLinkOutputDTO
|
|
7165
|
+
*/
|
|
7166
|
+
id: string;
|
|
7167
|
+
/**
|
|
7168
|
+
*
|
|
7169
|
+
* @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
|
|
7170
|
+
* @memberof InviteLinkOutputDTO
|
|
7171
|
+
*/
|
|
7172
|
+
createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
|
|
7173
|
+
/**
|
|
7174
|
+
*
|
|
7175
|
+
* @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
|
|
7176
|
+
* @memberof InviteLinkOutputDTO
|
|
7177
|
+
*/
|
|
7178
|
+
updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
|
|
7162
7179
|
}
|
|
7163
7180
|
|
|
7164
7181
|
export const InviteLinkOutputDTOStatusEnum = {
|
|
@@ -7190,25 +7207,6 @@ export interface InviteLinkOutputDTOAPI {
|
|
|
7190
7207
|
*/
|
|
7191
7208
|
meta: MetadataOutput;
|
|
7192
7209
|
}
|
|
7193
|
-
/**
|
|
7194
|
-
*
|
|
7195
|
-
* @export
|
|
7196
|
-
* @interface InviteLinkOutputArrayDTOAPI
|
|
7197
|
-
*/
|
|
7198
|
-
export interface InviteLinkOutputArrayDTOAPI {
|
|
7199
|
-
/**
|
|
7200
|
-
*
|
|
7201
|
-
* @type {Array<InviteLinkOutputDTO>}
|
|
7202
|
-
* @memberof InviteLinkOutputArrayDTOAPI
|
|
7203
|
-
*/
|
|
7204
|
-
data: Array<InviteLinkOutputDTO>;
|
|
7205
|
-
/**
|
|
7206
|
-
*
|
|
7207
|
-
* @type {MetadataOutput}
|
|
7208
|
-
* @memberof InviteLinkOutputArrayDTOAPI
|
|
7209
|
-
*/
|
|
7210
|
-
meta: MetadataOutput;
|
|
7211
|
-
}
|
|
7212
7210
|
/**
|
|
7213
7211
|
*
|
|
7214
7212
|
* @export
|
|
@@ -7406,15 +7404,21 @@ export type InviteLinkSearchInputDTOSortDirectionEnum =
|
|
|
7406
7404
|
/**
|
|
7407
7405
|
*
|
|
7408
7406
|
* @export
|
|
7409
|
-
* @interface
|
|
7407
|
+
* @interface InviteOutputDTO
|
|
7410
7408
|
*/
|
|
7411
|
-
export interface
|
|
7409
|
+
export interface InviteOutputDTO {
|
|
7412
7410
|
/**
|
|
7413
7411
|
*
|
|
7414
7412
|
* @type {string}
|
|
7415
|
-
* @memberof
|
|
7413
|
+
* @memberof InviteOutputDTO
|
|
7416
7414
|
*/
|
|
7417
|
-
|
|
7415
|
+
botInvite: string;
|
|
7416
|
+
/**
|
|
7417
|
+
*
|
|
7418
|
+
* @type {string}
|
|
7419
|
+
* @memberof InviteOutputDTO
|
|
7420
|
+
*/
|
|
7421
|
+
devServer: string;
|
|
7418
7422
|
}
|
|
7419
7423
|
/**
|
|
7420
7424
|
*
|
|
@@ -12590,6 +12594,19 @@ export const RecentOrderDTOStatusEnum = {
|
|
|
12590
12594
|
|
|
12591
12595
|
export type RecentOrderDTOStatusEnum = (typeof RecentOrderDTOStatusEnum)[keyof typeof RecentOrderDTOStatusEnum];
|
|
12592
12596
|
|
|
12597
|
+
/**
|
|
12598
|
+
*
|
|
12599
|
+
* @export
|
|
12600
|
+
* @interface RedeemInputDTO
|
|
12601
|
+
*/
|
|
12602
|
+
export interface RedeemInputDTO {
|
|
12603
|
+
/**
|
|
12604
|
+
*
|
|
12605
|
+
* @type {string}
|
|
12606
|
+
* @memberof RedeemInputDTO
|
|
12607
|
+
*/
|
|
12608
|
+
token: string;
|
|
12609
|
+
}
|
|
12593
12610
|
/**
|
|
12594
12611
|
*
|
|
12595
12612
|
* @export
|
|
@@ -16322,6 +16339,19 @@ export interface TakaroEventHookExecuted {
|
|
|
16322
16339
|
*/
|
|
16323
16340
|
timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
|
|
16324
16341
|
}
|
|
16342
|
+
/**
|
|
16343
|
+
*
|
|
16344
|
+
* @export
|
|
16345
|
+
* @interface TakaroEventInviteLinkCreated
|
|
16346
|
+
*/
|
|
16347
|
+
export interface TakaroEventInviteLinkCreated {
|
|
16348
|
+
/**
|
|
16349
|
+
*
|
|
16350
|
+
* @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
|
|
16351
|
+
* @memberof TakaroEventInviteLinkCreated
|
|
16352
|
+
*/
|
|
16353
|
+
timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
|
|
16354
|
+
}
|
|
16325
16355
|
/**
|
|
16326
16356
|
*
|
|
16327
16357
|
* @export
|
|
@@ -17801,25 +17831,25 @@ export interface UserOutputDTO {
|
|
|
17801
17831
|
* @type {string}
|
|
17802
17832
|
* @memberof UserOutputDTO
|
|
17803
17833
|
*/
|
|
17804
|
-
|
|
17834
|
+
inviteLinkId?: string;
|
|
17805
17835
|
/**
|
|
17806
17836
|
*
|
|
17807
|
-
* @type {
|
|
17837
|
+
* @type {string}
|
|
17808
17838
|
* @memberof UserOutputDTO
|
|
17809
17839
|
*/
|
|
17810
|
-
|
|
17840
|
+
id: string;
|
|
17811
17841
|
/**
|
|
17812
17842
|
*
|
|
17813
17843
|
* @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
|
|
17814
17844
|
* @memberof UserOutputDTO
|
|
17815
17845
|
*/
|
|
17816
|
-
|
|
17846
|
+
createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
|
|
17817
17847
|
/**
|
|
17818
17848
|
*
|
|
17819
|
-
* @type {
|
|
17849
|
+
* @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
|
|
17820
17850
|
* @memberof UserOutputDTO
|
|
17821
17851
|
*/
|
|
17822
|
-
|
|
17852
|
+
updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
|
|
17823
17853
|
}
|
|
17824
17854
|
/**
|
|
17825
17855
|
*
|
|
@@ -26446,6 +26476,52 @@ export const DomainApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
26446
26476
|
options: localVarRequestOptions,
|
|
26447
26477
|
};
|
|
26448
26478
|
},
|
|
26479
|
+
/**
|
|
26480
|
+
* 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`
|
|
26481
|
+
* @summary Create admin invite link for a domain
|
|
26482
|
+
* @param {string} id
|
|
26483
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
26484
|
+
* @param {*} [options] Override http request option.
|
|
26485
|
+
* @throws {RequiredError}
|
|
26486
|
+
*/
|
|
26487
|
+
domainControllerCreateInviteLink: async (
|
|
26488
|
+
id: string,
|
|
26489
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
26490
|
+
options: RawAxiosRequestConfig = {},
|
|
26491
|
+
): Promise<RequestArgs> => {
|
|
26492
|
+
// verify required parameter 'id' is not null or undefined
|
|
26493
|
+
assertParamExists('domainControllerCreateInviteLink', 'id', id);
|
|
26494
|
+
const localVarPath = `/domain/{id}/invite-link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
26495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26496
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26497
|
+
let baseOptions;
|
|
26498
|
+
if (configuration) {
|
|
26499
|
+
baseOptions = configuration.baseOptions;
|
|
26500
|
+
}
|
|
26501
|
+
|
|
26502
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
26503
|
+
const localVarHeaderParameter = {} as any;
|
|
26504
|
+
const localVarQueryParameter = {} as any;
|
|
26505
|
+
|
|
26506
|
+
// authentication adminAuth required
|
|
26507
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
26508
|
+
|
|
26509
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26510
|
+
|
|
26511
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26512
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26513
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
26514
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
26515
|
+
inviteLinkCreateInputDTO,
|
|
26516
|
+
localVarRequestOptions,
|
|
26517
|
+
configuration,
|
|
26518
|
+
);
|
|
26519
|
+
|
|
26520
|
+
return {
|
|
26521
|
+
url: toPathString(localVarUrlObj),
|
|
26522
|
+
options: localVarRequestOptions,
|
|
26523
|
+
};
|
|
26524
|
+
},
|
|
26449
26525
|
/**
|
|
26450
26526
|
* <br> OperationId: `DomainControllerGetOne`
|
|
26451
26527
|
* @summary Get one
|
|
@@ -26718,6 +26794,35 @@ export const DomainApiFp = function (configuration?: Configuration) {
|
|
|
26718
26794
|
configuration,
|
|
26719
26795
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
26720
26796
|
},
|
|
26797
|
+
/**
|
|
26798
|
+
* 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`
|
|
26799
|
+
* @summary Create admin invite link for a domain
|
|
26800
|
+
* @param {string} id
|
|
26801
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
26802
|
+
* @param {*} [options] Override http request option.
|
|
26803
|
+
* @throws {RequiredError}
|
|
26804
|
+
*/
|
|
26805
|
+
async domainControllerCreateInviteLink(
|
|
26806
|
+
id: string,
|
|
26807
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
26808
|
+
options?: RawAxiosRequestConfig,
|
|
26809
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
|
|
26810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreateInviteLink(
|
|
26811
|
+
id,
|
|
26812
|
+
inviteLinkCreateInputDTO,
|
|
26813
|
+
options,
|
|
26814
|
+
);
|
|
26815
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26816
|
+
const localVarOperationServerBasePath =
|
|
26817
|
+
operationServerMap['DomainApi.domainControllerCreateInviteLink']?.[localVarOperationServerIndex]?.url;
|
|
26818
|
+
return (axios, basePath) =>
|
|
26819
|
+
createRequestFunction(
|
|
26820
|
+
localVarAxiosArgs,
|
|
26821
|
+
globalAxios,
|
|
26822
|
+
BASE_PATH,
|
|
26823
|
+
configuration,
|
|
26824
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
26825
|
+
},
|
|
26721
26826
|
/**
|
|
26722
26827
|
* <br> OperationId: `DomainControllerGetOne`
|
|
26723
26828
|
* @summary Get one
|
|
@@ -26892,6 +26997,23 @@ export const DomainApiFactory = function (configuration?: Configuration, basePat
|
|
|
26892
26997
|
.domainControllerCreate(domainCreateInputDTO, options)
|
|
26893
26998
|
.then((request) => request(axios, basePath));
|
|
26894
26999
|
},
|
|
27000
|
+
/**
|
|
27001
|
+
* 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`
|
|
27002
|
+
* @summary Create admin invite link for a domain
|
|
27003
|
+
* @param {string} id
|
|
27004
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
27005
|
+
* @param {*} [options] Override http request option.
|
|
27006
|
+
* @throws {RequiredError}
|
|
27007
|
+
*/
|
|
27008
|
+
domainControllerCreateInviteLink(
|
|
27009
|
+
id: string,
|
|
27010
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
27011
|
+
options?: RawAxiosRequestConfig,
|
|
27012
|
+
): AxiosPromise<InviteLinkCreateResultDTOAPI> {
|
|
27013
|
+
return localVarFp
|
|
27014
|
+
.domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
|
|
27015
|
+
.then((request) => request(axios, basePath));
|
|
27016
|
+
},
|
|
26895
27017
|
/**
|
|
26896
27018
|
* <br> OperationId: `DomainControllerGetOne`
|
|
26897
27019
|
* @summary Get one
|
|
@@ -26997,6 +27119,25 @@ export class DomainApi extends BaseAPI {
|
|
|
26997
27119
|
.then((request) => request(this.axios, this.basePath));
|
|
26998
27120
|
}
|
|
26999
27121
|
|
|
27122
|
+
/**
|
|
27123
|
+
* 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`
|
|
27124
|
+
* @summary Create admin invite link for a domain
|
|
27125
|
+
* @param {string} id
|
|
27126
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
27127
|
+
* @param {*} [options] Override http request option.
|
|
27128
|
+
* @throws {RequiredError}
|
|
27129
|
+
* @memberof DomainApi
|
|
27130
|
+
*/
|
|
27131
|
+
public domainControllerCreateInviteLink(
|
|
27132
|
+
id: string,
|
|
27133
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
27134
|
+
options?: RawAxiosRequestConfig,
|
|
27135
|
+
) {
|
|
27136
|
+
return DomainApiFp(this.configuration)
|
|
27137
|
+
.domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
|
|
27138
|
+
.then((request) => request(this.axios, this.basePath));
|
|
27139
|
+
}
|
|
27140
|
+
|
|
27000
27141
|
/**
|
|
27001
27142
|
* <br> OperationId: `DomainControllerGetOne`
|
|
27002
27143
|
* @summary Get one
|
|
@@ -31830,6 +31971,488 @@ export class HookApi extends BaseAPI {
|
|
|
31830
31971
|
}
|
|
31831
31972
|
}
|
|
31832
31973
|
|
|
31974
|
+
/**
|
|
31975
|
+
* InviteLinkApi - axios parameter creator
|
|
31976
|
+
* @export
|
|
31977
|
+
*/
|
|
31978
|
+
export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31979
|
+
return {
|
|
31980
|
+
/**
|
|
31981
|
+
* 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`
|
|
31982
|
+
* @summary Create invite link
|
|
31983
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
31984
|
+
* @param {*} [options] Override http request option.
|
|
31985
|
+
* @throws {RequiredError}
|
|
31986
|
+
*/
|
|
31987
|
+
inviteLinkControllerCreate: async (
|
|
31988
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
31989
|
+
options: RawAxiosRequestConfig = {},
|
|
31990
|
+
): Promise<RequestArgs> => {
|
|
31991
|
+
const localVarPath = `/invite-link`;
|
|
31992
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31993
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31994
|
+
let baseOptions;
|
|
31995
|
+
if (configuration) {
|
|
31996
|
+
baseOptions = configuration.baseOptions;
|
|
31997
|
+
}
|
|
31998
|
+
|
|
31999
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
32000
|
+
const localVarHeaderParameter = {} as any;
|
|
32001
|
+
const localVarQueryParameter = {} as any;
|
|
32002
|
+
|
|
32003
|
+
// authentication domainAuth required
|
|
32004
|
+
|
|
32005
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32006
|
+
|
|
32007
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32009
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
32010
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
32011
|
+
inviteLinkCreateInputDTO,
|
|
32012
|
+
localVarRequestOptions,
|
|
32013
|
+
configuration,
|
|
32014
|
+
);
|
|
32015
|
+
|
|
32016
|
+
return {
|
|
32017
|
+
url: toPathString(localVarUrlObj),
|
|
32018
|
+
options: localVarRequestOptions,
|
|
32019
|
+
};
|
|
32020
|
+
},
|
|
32021
|
+
/**
|
|
32022
|
+
* <br> OperationId: `InviteLinkControllerPreview`
|
|
32023
|
+
* @summary Preview
|
|
32024
|
+
* @param {string} token
|
|
32025
|
+
* @param {*} [options] Override http request option.
|
|
32026
|
+
* @throws {RequiredError}
|
|
32027
|
+
*/
|
|
32028
|
+
inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32029
|
+
// verify required parameter 'token' is not null or undefined
|
|
32030
|
+
assertParamExists('inviteLinkControllerPreview', 'token', token);
|
|
32031
|
+
const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
|
|
32032
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32033
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32034
|
+
let baseOptions;
|
|
32035
|
+
if (configuration) {
|
|
32036
|
+
baseOptions = configuration.baseOptions;
|
|
32037
|
+
}
|
|
32038
|
+
|
|
32039
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
32040
|
+
const localVarHeaderParameter = {} as any;
|
|
32041
|
+
const localVarQueryParameter = {} as any;
|
|
32042
|
+
|
|
32043
|
+
// authentication domainAuth required
|
|
32044
|
+
|
|
32045
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32046
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32047
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
32048
|
+
|
|
32049
|
+
return {
|
|
32050
|
+
url: toPathString(localVarUrlObj),
|
|
32051
|
+
options: localVarRequestOptions,
|
|
32052
|
+
};
|
|
32053
|
+
},
|
|
32054
|
+
/**
|
|
32055
|
+
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
32056
|
+
* @summary Redeem
|
|
32057
|
+
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
32058
|
+
* @param {*} [options] Override http request option.
|
|
32059
|
+
* @throws {RequiredError}
|
|
32060
|
+
*/
|
|
32061
|
+
inviteLinkControllerRedeem: async (
|
|
32062
|
+
redeemInputDTO?: RedeemInputDTO,
|
|
32063
|
+
options: RawAxiosRequestConfig = {},
|
|
32064
|
+
): Promise<RequestArgs> => {
|
|
32065
|
+
const localVarPath = `/invite-link/redeem`;
|
|
32066
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32067
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32068
|
+
let baseOptions;
|
|
32069
|
+
if (configuration) {
|
|
32070
|
+
baseOptions = configuration.baseOptions;
|
|
32071
|
+
}
|
|
32072
|
+
|
|
32073
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
32074
|
+
const localVarHeaderParameter = {} as any;
|
|
32075
|
+
const localVarQueryParameter = {} as any;
|
|
32076
|
+
|
|
32077
|
+
// authentication domainAuth required
|
|
32078
|
+
|
|
32079
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32080
|
+
|
|
32081
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32082
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32083
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
32084
|
+
localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
|
|
32085
|
+
|
|
32086
|
+
return {
|
|
32087
|
+
url: toPathString(localVarUrlObj),
|
|
32088
|
+
options: localVarRequestOptions,
|
|
32089
|
+
};
|
|
32090
|
+
},
|
|
32091
|
+
/**
|
|
32092
|
+
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
32093
|
+
* @summary Revoke
|
|
32094
|
+
* @param {string} id
|
|
32095
|
+
* @param {*} [options] Override http request option.
|
|
32096
|
+
* @throws {RequiredError}
|
|
32097
|
+
*/
|
|
32098
|
+
inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32099
|
+
// verify required parameter 'id' is not null or undefined
|
|
32100
|
+
assertParamExists('inviteLinkControllerRevoke', 'id', id);
|
|
32101
|
+
const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
32102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32104
|
+
let baseOptions;
|
|
32105
|
+
if (configuration) {
|
|
32106
|
+
baseOptions = configuration.baseOptions;
|
|
32107
|
+
}
|
|
32108
|
+
|
|
32109
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
32110
|
+
const localVarHeaderParameter = {} as any;
|
|
32111
|
+
const localVarQueryParameter = {} as any;
|
|
32112
|
+
|
|
32113
|
+
// authentication domainAuth required
|
|
32114
|
+
|
|
32115
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32116
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32117
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
32118
|
+
|
|
32119
|
+
return {
|
|
32120
|
+
url: toPathString(localVarUrlObj),
|
|
32121
|
+
options: localVarRequestOptions,
|
|
32122
|
+
};
|
|
32123
|
+
},
|
|
32124
|
+
/**
|
|
32125
|
+
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
32126
|
+
* @summary Search
|
|
32127
|
+
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
32128
|
+
* @param {*} [options] Override http request option.
|
|
32129
|
+
* @throws {RequiredError}
|
|
32130
|
+
*/
|
|
32131
|
+
inviteLinkControllerSearch: async (
|
|
32132
|
+
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
32133
|
+
options: RawAxiosRequestConfig = {},
|
|
32134
|
+
): Promise<RequestArgs> => {
|
|
32135
|
+
const localVarPath = `/invite-link/search`;
|
|
32136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32137
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32138
|
+
let baseOptions;
|
|
32139
|
+
if (configuration) {
|
|
32140
|
+
baseOptions = configuration.baseOptions;
|
|
32141
|
+
}
|
|
32142
|
+
|
|
32143
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
32144
|
+
const localVarHeaderParameter = {} as any;
|
|
32145
|
+
const localVarQueryParameter = {} as any;
|
|
32146
|
+
|
|
32147
|
+
// authentication domainAuth required
|
|
32148
|
+
|
|
32149
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32150
|
+
|
|
32151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32153
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
32154
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
32155
|
+
inviteLinkSearchInputDTO,
|
|
32156
|
+
localVarRequestOptions,
|
|
32157
|
+
configuration,
|
|
32158
|
+
);
|
|
32159
|
+
|
|
32160
|
+
return {
|
|
32161
|
+
url: toPathString(localVarUrlObj),
|
|
32162
|
+
options: localVarRequestOptions,
|
|
32163
|
+
};
|
|
32164
|
+
},
|
|
32165
|
+
};
|
|
32166
|
+
};
|
|
32167
|
+
|
|
32168
|
+
/**
|
|
32169
|
+
* InviteLinkApi - functional programming interface
|
|
32170
|
+
* @export
|
|
32171
|
+
*/
|
|
32172
|
+
export const InviteLinkApiFp = function (configuration?: Configuration) {
|
|
32173
|
+
const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
|
|
32174
|
+
return {
|
|
32175
|
+
/**
|
|
32176
|
+
* 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`
|
|
32177
|
+
* @summary Create invite link
|
|
32178
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
32179
|
+
* @param {*} [options] Override http request option.
|
|
32180
|
+
* @throws {RequiredError}
|
|
32181
|
+
*/
|
|
32182
|
+
async inviteLinkControllerCreate(
|
|
32183
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
32184
|
+
options?: RawAxiosRequestConfig,
|
|
32185
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
|
|
32186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
|
|
32187
|
+
inviteLinkCreateInputDTO,
|
|
32188
|
+
options,
|
|
32189
|
+
);
|
|
32190
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32191
|
+
const localVarOperationServerBasePath =
|
|
32192
|
+
operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
32193
|
+
return (axios, basePath) =>
|
|
32194
|
+
createRequestFunction(
|
|
32195
|
+
localVarAxiosArgs,
|
|
32196
|
+
globalAxios,
|
|
32197
|
+
BASE_PATH,
|
|
32198
|
+
configuration,
|
|
32199
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
32200
|
+
},
|
|
32201
|
+
/**
|
|
32202
|
+
* <br> OperationId: `InviteLinkControllerPreview`
|
|
32203
|
+
* @summary Preview
|
|
32204
|
+
* @param {string} token
|
|
32205
|
+
* @param {*} [options] Override http request option.
|
|
32206
|
+
* @throws {RequiredError}
|
|
32207
|
+
*/
|
|
32208
|
+
async inviteLinkControllerPreview(
|
|
32209
|
+
token: string,
|
|
32210
|
+
options?: RawAxiosRequestConfig,
|
|
32211
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
|
|
32212
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
|
|
32213
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32214
|
+
const localVarOperationServerBasePath =
|
|
32215
|
+
operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
|
|
32216
|
+
return (axios, basePath) =>
|
|
32217
|
+
createRequestFunction(
|
|
32218
|
+
localVarAxiosArgs,
|
|
32219
|
+
globalAxios,
|
|
32220
|
+
BASE_PATH,
|
|
32221
|
+
configuration,
|
|
32222
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
32223
|
+
},
|
|
32224
|
+
/**
|
|
32225
|
+
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
32226
|
+
* @summary Redeem
|
|
32227
|
+
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
32228
|
+
* @param {*} [options] Override http request option.
|
|
32229
|
+
* @throws {RequiredError}
|
|
32230
|
+
*/
|
|
32231
|
+
async inviteLinkControllerRedeem(
|
|
32232
|
+
redeemInputDTO?: RedeemInputDTO,
|
|
32233
|
+
options?: RawAxiosRequestConfig,
|
|
32234
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
|
|
32235
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
|
|
32236
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32237
|
+
const localVarOperationServerBasePath =
|
|
32238
|
+
operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
|
|
32239
|
+
return (axios, basePath) =>
|
|
32240
|
+
createRequestFunction(
|
|
32241
|
+
localVarAxiosArgs,
|
|
32242
|
+
globalAxios,
|
|
32243
|
+
BASE_PATH,
|
|
32244
|
+
configuration,
|
|
32245
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
32246
|
+
},
|
|
32247
|
+
/**
|
|
32248
|
+
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
32249
|
+
* @summary Revoke
|
|
32250
|
+
* @param {string} id
|
|
32251
|
+
* @param {*} [options] Override http request option.
|
|
32252
|
+
* @throws {RequiredError}
|
|
32253
|
+
*/
|
|
32254
|
+
async inviteLinkControllerRevoke(
|
|
32255
|
+
id: string,
|
|
32256
|
+
options?: RawAxiosRequestConfig,
|
|
32257
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
|
|
32258
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
|
|
32259
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32260
|
+
const localVarOperationServerBasePath =
|
|
32261
|
+
operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
|
|
32262
|
+
return (axios, basePath) =>
|
|
32263
|
+
createRequestFunction(
|
|
32264
|
+
localVarAxiosArgs,
|
|
32265
|
+
globalAxios,
|
|
32266
|
+
BASE_PATH,
|
|
32267
|
+
configuration,
|
|
32268
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
32269
|
+
},
|
|
32270
|
+
/**
|
|
32271
|
+
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
32272
|
+
* @summary Search
|
|
32273
|
+
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
32274
|
+
* @param {*} [options] Override http request option.
|
|
32275
|
+
* @throws {RequiredError}
|
|
32276
|
+
*/
|
|
32277
|
+
async inviteLinkControllerSearch(
|
|
32278
|
+
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
32279
|
+
options?: RawAxiosRequestConfig,
|
|
32280
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
|
|
32281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
|
|
32282
|
+
inviteLinkSearchInputDTO,
|
|
32283
|
+
options,
|
|
32284
|
+
);
|
|
32285
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32286
|
+
const localVarOperationServerBasePath =
|
|
32287
|
+
operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
|
|
32288
|
+
return (axios, basePath) =>
|
|
32289
|
+
createRequestFunction(
|
|
32290
|
+
localVarAxiosArgs,
|
|
32291
|
+
globalAxios,
|
|
32292
|
+
BASE_PATH,
|
|
32293
|
+
configuration,
|
|
32294
|
+
)(axios, localVarOperationServerBasePath || basePath);
|
|
32295
|
+
},
|
|
32296
|
+
};
|
|
32297
|
+
};
|
|
32298
|
+
|
|
32299
|
+
/**
|
|
32300
|
+
* InviteLinkApi - factory interface
|
|
32301
|
+
* @export
|
|
32302
|
+
*/
|
|
32303
|
+
export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32304
|
+
const localVarFp = InviteLinkApiFp(configuration);
|
|
32305
|
+
return {
|
|
32306
|
+
/**
|
|
32307
|
+
* 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`
|
|
32308
|
+
* @summary Create invite link
|
|
32309
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
32310
|
+
* @param {*} [options] Override http request option.
|
|
32311
|
+
* @throws {RequiredError}
|
|
32312
|
+
*/
|
|
32313
|
+
inviteLinkControllerCreate(
|
|
32314
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
32315
|
+
options?: RawAxiosRequestConfig,
|
|
32316
|
+
): AxiosPromise<InviteLinkCreateResultDTOAPI> {
|
|
32317
|
+
return localVarFp
|
|
32318
|
+
.inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
|
|
32319
|
+
.then((request) => request(axios, basePath));
|
|
32320
|
+
},
|
|
32321
|
+
/**
|
|
32322
|
+
* <br> OperationId: `InviteLinkControllerPreview`
|
|
32323
|
+
* @summary Preview
|
|
32324
|
+
* @param {string} token
|
|
32325
|
+
* @param {*} [options] Override http request option.
|
|
32326
|
+
* @throws {RequiredError}
|
|
32327
|
+
*/
|
|
32328
|
+
inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
|
|
32329
|
+
return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
|
|
32330
|
+
},
|
|
32331
|
+
/**
|
|
32332
|
+
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
32333
|
+
* @summary Redeem
|
|
32334
|
+
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
32335
|
+
* @param {*} [options] Override http request option.
|
|
32336
|
+
* @throws {RequiredError}
|
|
32337
|
+
*/
|
|
32338
|
+
inviteLinkControllerRedeem(
|
|
32339
|
+
redeemInputDTO?: RedeemInputDTO,
|
|
32340
|
+
options?: RawAxiosRequestConfig,
|
|
32341
|
+
): AxiosPromise<UserOutputWithRolesDTOAPI> {
|
|
32342
|
+
return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
|
|
32343
|
+
},
|
|
32344
|
+
/**
|
|
32345
|
+
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
32346
|
+
* @summary Revoke
|
|
32347
|
+
* @param {string} id
|
|
32348
|
+
* @param {*} [options] Override http request option.
|
|
32349
|
+
* @throws {RequiredError}
|
|
32350
|
+
*/
|
|
32351
|
+
inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
|
|
32352
|
+
return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
|
|
32353
|
+
},
|
|
32354
|
+
/**
|
|
32355
|
+
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
32356
|
+
* @summary Search
|
|
32357
|
+
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
32358
|
+
* @param {*} [options] Override http request option.
|
|
32359
|
+
* @throws {RequiredError}
|
|
32360
|
+
*/
|
|
32361
|
+
inviteLinkControllerSearch(
|
|
32362
|
+
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
32363
|
+
options?: RawAxiosRequestConfig,
|
|
32364
|
+
): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
|
|
32365
|
+
return localVarFp
|
|
32366
|
+
.inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
|
|
32367
|
+
.then((request) => request(axios, basePath));
|
|
32368
|
+
},
|
|
32369
|
+
};
|
|
32370
|
+
};
|
|
32371
|
+
|
|
32372
|
+
/**
|
|
32373
|
+
* InviteLinkApi - object-oriented interface
|
|
32374
|
+
* @export
|
|
32375
|
+
* @class InviteLinkApi
|
|
32376
|
+
* @extends {BaseAPI}
|
|
32377
|
+
*/
|
|
32378
|
+
export class InviteLinkApi extends BaseAPI {
|
|
32379
|
+
/**
|
|
32380
|
+
* 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`
|
|
32381
|
+
* @summary Create invite link
|
|
32382
|
+
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
32383
|
+
* @param {*} [options] Override http request option.
|
|
32384
|
+
* @throws {RequiredError}
|
|
32385
|
+
* @memberof InviteLinkApi
|
|
32386
|
+
*/
|
|
32387
|
+
public inviteLinkControllerCreate(
|
|
32388
|
+
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
32389
|
+
options?: RawAxiosRequestConfig,
|
|
32390
|
+
) {
|
|
32391
|
+
return InviteLinkApiFp(this.configuration)
|
|
32392
|
+
.inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
|
|
32393
|
+
.then((request) => request(this.axios, this.basePath));
|
|
32394
|
+
}
|
|
32395
|
+
|
|
32396
|
+
/**
|
|
32397
|
+
* <br> OperationId: `InviteLinkControllerPreview`
|
|
32398
|
+
* @summary Preview
|
|
32399
|
+
* @param {string} token
|
|
32400
|
+
* @param {*} [options] Override http request option.
|
|
32401
|
+
* @throws {RequiredError}
|
|
32402
|
+
* @memberof InviteLinkApi
|
|
32403
|
+
*/
|
|
32404
|
+
public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
|
|
32405
|
+
return InviteLinkApiFp(this.configuration)
|
|
32406
|
+
.inviteLinkControllerPreview(token, options)
|
|
32407
|
+
.then((request) => request(this.axios, this.basePath));
|
|
32408
|
+
}
|
|
32409
|
+
|
|
32410
|
+
/**
|
|
32411
|
+
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
32412
|
+
* @summary Redeem
|
|
32413
|
+
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
32414
|
+
* @param {*} [options] Override http request option.
|
|
32415
|
+
* @throws {RequiredError}
|
|
32416
|
+
* @memberof InviteLinkApi
|
|
32417
|
+
*/
|
|
32418
|
+
public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
|
|
32419
|
+
return InviteLinkApiFp(this.configuration)
|
|
32420
|
+
.inviteLinkControllerRedeem(redeemInputDTO, options)
|
|
32421
|
+
.then((request) => request(this.axios, this.basePath));
|
|
32422
|
+
}
|
|
32423
|
+
|
|
32424
|
+
/**
|
|
32425
|
+
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
32426
|
+
* @summary Revoke
|
|
32427
|
+
* @param {string} id
|
|
32428
|
+
* @param {*} [options] Override http request option.
|
|
32429
|
+
* @throws {RequiredError}
|
|
32430
|
+
* @memberof InviteLinkApi
|
|
32431
|
+
*/
|
|
32432
|
+
public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
|
|
32433
|
+
return InviteLinkApiFp(this.configuration)
|
|
32434
|
+
.inviteLinkControllerRevoke(id, options)
|
|
32435
|
+
.then((request) => request(this.axios, this.basePath));
|
|
32436
|
+
}
|
|
32437
|
+
|
|
32438
|
+
/**
|
|
32439
|
+
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
32440
|
+
* @summary Search
|
|
32441
|
+
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
32442
|
+
* @param {*} [options] Override http request option.
|
|
32443
|
+
* @throws {RequiredError}
|
|
32444
|
+
* @memberof InviteLinkApi
|
|
32445
|
+
*/
|
|
32446
|
+
public inviteLinkControllerSearch(
|
|
32447
|
+
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
32448
|
+
options?: RawAxiosRequestConfig,
|
|
32449
|
+
) {
|
|
32450
|
+
return InviteLinkApiFp(this.configuration)
|
|
32451
|
+
.inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
|
|
32452
|
+
.then((request) => request(this.axios, this.basePath));
|
|
32453
|
+
}
|
|
32454
|
+
}
|
|
32455
|
+
|
|
31833
32456
|
/**
|
|
31834
32457
|
* ItemApi - axios parameter creator
|
|
31835
32458
|
* @export
|
|
@@ -41141,6 +41764,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
41141
41764
|
*/
|
|
41142
41765
|
userControllerCountBillableDashboardUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41143
41766
|
const localVarPath = `/user/count`;
|
|
41767
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41144
41768
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41145
41769
|
let baseOptions;
|
|
41146
41770
|
if (configuration) {
|
|
@@ -41151,8 +41775,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
41151
41775
|
const localVarHeaderParameter = {} as any;
|
|
41152
41776
|
const localVarQueryParameter = {} as any;
|
|
41153
41777
|
|
|
41778
|
+
// authentication domainAuth required
|
|
41779
|
+
|
|
41154
41780
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41155
|
-
|
|
41781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41156
41782
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
41157
41783
|
|
|
41158
41784
|
return {
|
|
@@ -41265,6 +41891,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
41265
41891
|
* @summary Invite
|
|
41266
41892
|
* @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
|
|
41267
41893
|
* @param {*} [options] Override http request option.
|
|
41894
|
+
* @deprecated
|
|
41268
41895
|
* @throws {RequiredError}
|
|
41269
41896
|
*/
|
|
41270
41897
|
userControllerInvite: async (
|
|
@@ -41759,6 +42386,7 @@ export const UserApiFp = function (configuration?: Configuration) {
|
|
|
41759
42386
|
* @summary Invite
|
|
41760
42387
|
* @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
|
|
41761
42388
|
* @param {*} [options] Override http request option.
|
|
42389
|
+
* @deprecated
|
|
41762
42390
|
* @throws {RequiredError}
|
|
41763
42391
|
*/
|
|
41764
42392
|
async userControllerInvite(
|
|
@@ -42062,6 +42690,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
42062
42690
|
* @summary Invite
|
|
42063
42691
|
* @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
|
|
42064
42692
|
* @param {*} [options] Override http request option.
|
|
42693
|
+
* @deprecated
|
|
42065
42694
|
* @throws {RequiredError}
|
|
42066
42695
|
*/
|
|
42067
42696
|
userControllerInvite(
|
|
@@ -42262,6 +42891,7 @@ export class UserApi extends BaseAPI {
|
|
|
42262
42891
|
* @summary Invite
|
|
42263
42892
|
* @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO
|
|
42264
42893
|
* @param {*} [options] Override http request option.
|
|
42894
|
+
* @deprecated
|
|
42265
42895
|
* @throws {RequiredError}
|
|
42266
42896
|
* @memberof UserApi
|
|
42267
42897
|
*/
|
|
@@ -42884,474 +43514,3 @@ export class VariableApi extends BaseAPI {
|
|
|
42884
43514
|
.then((request) => request(this.axios, this.basePath));
|
|
42885
43515
|
}
|
|
42886
43516
|
}
|
|
42887
|
-
|
|
42888
|
-
/**
|
|
42889
|
-
* InviteLinkApi - axios parameter creator
|
|
42890
|
-
* @export
|
|
42891
|
-
*/
|
|
42892
|
-
export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42893
|
-
return {
|
|
42894
|
-
/**
|
|
42895
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
|
|
42896
|
-
* @summary Create invite link
|
|
42897
|
-
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
42898
|
-
* @param {*} [options] Override http request option.
|
|
42899
|
-
* @throws {RequiredError}
|
|
42900
|
-
*/
|
|
42901
|
-
inviteLinkControllerCreate: async (
|
|
42902
|
-
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
42903
|
-
options: RawAxiosRequestConfig = {},
|
|
42904
|
-
): Promise<RequestArgs> => {
|
|
42905
|
-
const localVarPath = `/invite-link`;
|
|
42906
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42907
|
-
let baseOptions;
|
|
42908
|
-
if (configuration) {
|
|
42909
|
-
baseOptions = configuration.baseOptions;
|
|
42910
|
-
}
|
|
42911
|
-
|
|
42912
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
42913
|
-
const localVarHeaderParameter = {} as any;
|
|
42914
|
-
const localVarQueryParameter = {} as any;
|
|
42915
|
-
|
|
42916
|
-
// authentication domainAuth required
|
|
42917
|
-
|
|
42918
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42919
|
-
|
|
42920
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42921
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42922
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
42923
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
42924
|
-
inviteLinkCreateInputDTO,
|
|
42925
|
-
localVarRequestOptions,
|
|
42926
|
-
configuration,
|
|
42927
|
-
);
|
|
42928
|
-
|
|
42929
|
-
return {
|
|
42930
|
-
url: toPathString(localVarUrlObj),
|
|
42931
|
-
options: localVarRequestOptions,
|
|
42932
|
-
};
|
|
42933
|
-
},
|
|
42934
|
-
/**
|
|
42935
|
-
* <br> OperationId: `InviteLinkControllerPreview`
|
|
42936
|
-
* @summary Preview
|
|
42937
|
-
* @param {string} token
|
|
42938
|
-
* @param {*} [options] Override http request option.
|
|
42939
|
-
* @throws {RequiredError}
|
|
42940
|
-
*/
|
|
42941
|
-
inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42942
|
-
assertParamExists('inviteLinkControllerPreview', 'token', token);
|
|
42943
|
-
const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
|
|
42944
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42945
|
-
let baseOptions;
|
|
42946
|
-
if (configuration) {
|
|
42947
|
-
baseOptions = configuration.baseOptions;
|
|
42948
|
-
}
|
|
42949
|
-
|
|
42950
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
42951
|
-
const localVarHeaderParameter = {} as any;
|
|
42952
|
-
const localVarQueryParameter = {} as any;
|
|
42953
|
-
|
|
42954
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42955
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42956
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
42957
|
-
|
|
42958
|
-
return {
|
|
42959
|
-
url: toPathString(localVarUrlObj),
|
|
42960
|
-
options: localVarRequestOptions,
|
|
42961
|
-
};
|
|
42962
|
-
},
|
|
42963
|
-
/**
|
|
42964
|
-
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
42965
|
-
* @summary Redeem
|
|
42966
|
-
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
42967
|
-
* @param {*} [options] Override http request option.
|
|
42968
|
-
* @throws {RequiredError}
|
|
42969
|
-
*/
|
|
42970
|
-
inviteLinkControllerRedeem: async (
|
|
42971
|
-
redeemInputDTO?: RedeemInputDTO,
|
|
42972
|
-
options: RawAxiosRequestConfig = {},
|
|
42973
|
-
): Promise<RequestArgs> => {
|
|
42974
|
-
const localVarPath = `/invite-link/redeem`;
|
|
42975
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42976
|
-
let baseOptions;
|
|
42977
|
-
if (configuration) {
|
|
42978
|
-
baseOptions = configuration.baseOptions;
|
|
42979
|
-
}
|
|
42980
|
-
|
|
42981
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
42982
|
-
const localVarHeaderParameter = {} as any;
|
|
42983
|
-
const localVarQueryParameter = {} as any;
|
|
42984
|
-
|
|
42985
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42986
|
-
|
|
42987
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42988
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42989
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
42990
|
-
localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
|
|
42991
|
-
|
|
42992
|
-
return {
|
|
42993
|
-
url: toPathString(localVarUrlObj),
|
|
42994
|
-
options: localVarRequestOptions,
|
|
42995
|
-
};
|
|
42996
|
-
},
|
|
42997
|
-
/**
|
|
42998
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
42999
|
-
* @summary Revoke
|
|
43000
|
-
* @param {string} id
|
|
43001
|
-
* @param {*} [options] Override http request option.
|
|
43002
|
-
* @throws {RequiredError}
|
|
43003
|
-
*/
|
|
43004
|
-
inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43005
|
-
assertParamExists('inviteLinkControllerRevoke', 'id', id);
|
|
43006
|
-
const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
43007
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43008
|
-
let baseOptions;
|
|
43009
|
-
if (configuration) {
|
|
43010
|
-
baseOptions = configuration.baseOptions;
|
|
43011
|
-
}
|
|
43012
|
-
|
|
43013
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
43014
|
-
const localVarHeaderParameter = {} as any;
|
|
43015
|
-
const localVarQueryParameter = {} as any;
|
|
43016
|
-
|
|
43017
|
-
// authentication domainAuth required
|
|
43018
|
-
|
|
43019
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43020
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43021
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
43022
|
-
|
|
43023
|
-
return {
|
|
43024
|
-
url: toPathString(localVarUrlObj),
|
|
43025
|
-
options: localVarRequestOptions,
|
|
43026
|
-
};
|
|
43027
|
-
},
|
|
43028
|
-
/**
|
|
43029
|
-
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
43030
|
-
* @summary Search
|
|
43031
|
-
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
43032
|
-
* @param {*} [options] Override http request option.
|
|
43033
|
-
* @throws {RequiredError}
|
|
43034
|
-
*/
|
|
43035
|
-
inviteLinkControllerSearch: async (
|
|
43036
|
-
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
43037
|
-
options: RawAxiosRequestConfig = {},
|
|
43038
|
-
): Promise<RequestArgs> => {
|
|
43039
|
-
const localVarPath = `/invite-link/search`;
|
|
43040
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43041
|
-
let baseOptions;
|
|
43042
|
-
if (configuration) {
|
|
43043
|
-
baseOptions = configuration.baseOptions;
|
|
43044
|
-
}
|
|
43045
|
-
|
|
43046
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
43047
|
-
const localVarHeaderParameter = {} as any;
|
|
43048
|
-
const localVarQueryParameter = {} as any;
|
|
43049
|
-
|
|
43050
|
-
// authentication domainAuth required
|
|
43051
|
-
|
|
43052
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43053
|
-
|
|
43054
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43055
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43056
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
43057
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
43058
|
-
inviteLinkSearchInputDTO,
|
|
43059
|
-
localVarRequestOptions,
|
|
43060
|
-
configuration,
|
|
43061
|
-
);
|
|
43062
|
-
|
|
43063
|
-
return {
|
|
43064
|
-
url: toPathString(localVarUrlObj),
|
|
43065
|
-
options: localVarRequestOptions,
|
|
43066
|
-
};
|
|
43067
|
-
},
|
|
43068
|
-
};
|
|
43069
|
-
};
|
|
43070
|
-
|
|
43071
|
-
/**
|
|
43072
|
-
* InviteLinkApi - functional programming interface
|
|
43073
|
-
* @export
|
|
43074
|
-
*/
|
|
43075
|
-
export const InviteLinkApiFp = function (configuration?: Configuration) {
|
|
43076
|
-
const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
|
|
43077
|
-
return {
|
|
43078
|
-
/**
|
|
43079
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
|
|
43080
|
-
* @summary Create invite link
|
|
43081
|
-
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
43082
|
-
* @param {*} [options] Override http request option.
|
|
43083
|
-
* @throws {RequiredError}
|
|
43084
|
-
*/
|
|
43085
|
-
async inviteLinkControllerCreate(
|
|
43086
|
-
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
43087
|
-
options?: RawAxiosRequestConfig,
|
|
43088
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
|
|
43089
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
|
|
43090
|
-
inviteLinkCreateInputDTO,
|
|
43091
|
-
options,
|
|
43092
|
-
);
|
|
43093
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
43094
|
-
const localVarOperationServerBasePath =
|
|
43095
|
-
operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
43096
|
-
return (axios, basePath) =>
|
|
43097
|
-
createRequestFunction(
|
|
43098
|
-
localVarAxiosArgs,
|
|
43099
|
-
globalAxios,
|
|
43100
|
-
BASE_PATH,
|
|
43101
|
-
configuration,
|
|
43102
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
43103
|
-
},
|
|
43104
|
-
/**
|
|
43105
|
-
* <br> OperationId: `InviteLinkControllerPreview`
|
|
43106
|
-
* @summary Preview
|
|
43107
|
-
* @param {string} token
|
|
43108
|
-
* @param {*} [options] Override http request option.
|
|
43109
|
-
* @throws {RequiredError}
|
|
43110
|
-
*/
|
|
43111
|
-
async inviteLinkControllerPreview(
|
|
43112
|
-
token: string,
|
|
43113
|
-
options?: RawAxiosRequestConfig,
|
|
43114
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
|
|
43115
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
|
|
43116
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
43117
|
-
const localVarOperationServerBasePath =
|
|
43118
|
-
operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
|
|
43119
|
-
return (axios, basePath) =>
|
|
43120
|
-
createRequestFunction(
|
|
43121
|
-
localVarAxiosArgs,
|
|
43122
|
-
globalAxios,
|
|
43123
|
-
BASE_PATH,
|
|
43124
|
-
configuration,
|
|
43125
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
43126
|
-
},
|
|
43127
|
-
/**
|
|
43128
|
-
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
43129
|
-
* @summary Redeem
|
|
43130
|
-
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
43131
|
-
* @param {*} [options] Override http request option.
|
|
43132
|
-
* @throws {RequiredError}
|
|
43133
|
-
*/
|
|
43134
|
-
async inviteLinkControllerRedeem(
|
|
43135
|
-
redeemInputDTO?: RedeemInputDTO,
|
|
43136
|
-
options?: RawAxiosRequestConfig,
|
|
43137
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
|
|
43138
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
|
|
43139
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
43140
|
-
const localVarOperationServerBasePath =
|
|
43141
|
-
operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
|
|
43142
|
-
return (axios, basePath) =>
|
|
43143
|
-
createRequestFunction(
|
|
43144
|
-
localVarAxiosArgs,
|
|
43145
|
-
globalAxios,
|
|
43146
|
-
BASE_PATH,
|
|
43147
|
-
configuration,
|
|
43148
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
43149
|
-
},
|
|
43150
|
-
/**
|
|
43151
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
43152
|
-
* @summary Revoke
|
|
43153
|
-
* @param {string} id
|
|
43154
|
-
* @param {*} [options] Override http request option.
|
|
43155
|
-
* @throws {RequiredError}
|
|
43156
|
-
*/
|
|
43157
|
-
async inviteLinkControllerRevoke(
|
|
43158
|
-
id: string,
|
|
43159
|
-
options?: RawAxiosRequestConfig,
|
|
43160
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
|
|
43161
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
|
|
43162
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
43163
|
-
const localVarOperationServerBasePath =
|
|
43164
|
-
operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
|
|
43165
|
-
return (axios, basePath) =>
|
|
43166
|
-
createRequestFunction(
|
|
43167
|
-
localVarAxiosArgs,
|
|
43168
|
-
globalAxios,
|
|
43169
|
-
BASE_PATH,
|
|
43170
|
-
configuration,
|
|
43171
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
43172
|
-
},
|
|
43173
|
-
/**
|
|
43174
|
-
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
43175
|
-
* @summary Search
|
|
43176
|
-
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
43177
|
-
* @param {*} [options] Override http request option.
|
|
43178
|
-
* @throws {RequiredError}
|
|
43179
|
-
*/
|
|
43180
|
-
async inviteLinkControllerSearch(
|
|
43181
|
-
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
43182
|
-
options?: RawAxiosRequestConfig,
|
|
43183
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
|
|
43184
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
|
|
43185
|
-
inviteLinkSearchInputDTO,
|
|
43186
|
-
options,
|
|
43187
|
-
);
|
|
43188
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
43189
|
-
const localVarOperationServerBasePath =
|
|
43190
|
-
operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
|
|
43191
|
-
return (axios, basePath) =>
|
|
43192
|
-
createRequestFunction(
|
|
43193
|
-
localVarAxiosArgs,
|
|
43194
|
-
globalAxios,
|
|
43195
|
-
BASE_PATH,
|
|
43196
|
-
configuration,
|
|
43197
|
-
)(axios, localVarOperationServerBasePath || basePath);
|
|
43198
|
-
},
|
|
43199
|
-
};
|
|
43200
|
-
};
|
|
43201
|
-
|
|
43202
|
-
/**
|
|
43203
|
-
* InviteLinkApi - factory interface
|
|
43204
|
-
* @export
|
|
43205
|
-
*/
|
|
43206
|
-
export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
43207
|
-
const localVarFp = InviteLinkApiFp(configuration);
|
|
43208
|
-
return {
|
|
43209
|
-
/**
|
|
43210
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
|
|
43211
|
-
* @summary Create invite link
|
|
43212
|
-
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
43213
|
-
* @param {*} [options] Override http request option.
|
|
43214
|
-
* @throws {RequiredError}
|
|
43215
|
-
*/
|
|
43216
|
-
inviteLinkControllerCreate(
|
|
43217
|
-
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
43218
|
-
options?: RawAxiosRequestConfig,
|
|
43219
|
-
): AxiosPromise<InviteLinkCreateResultDTOAPI> {
|
|
43220
|
-
return localVarFp
|
|
43221
|
-
.inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
|
|
43222
|
-
.then((request) => request(axios, basePath));
|
|
43223
|
-
},
|
|
43224
|
-
/**
|
|
43225
|
-
* <br> OperationId: `InviteLinkControllerPreview`
|
|
43226
|
-
* @summary Preview
|
|
43227
|
-
* @param {string} token
|
|
43228
|
-
* @param {*} [options] Override http request option.
|
|
43229
|
-
* @throws {RequiredError}
|
|
43230
|
-
*/
|
|
43231
|
-
inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
|
|
43232
|
-
return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
|
|
43233
|
-
},
|
|
43234
|
-
/**
|
|
43235
|
-
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
43236
|
-
* @summary Redeem
|
|
43237
|
-
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
43238
|
-
* @param {*} [options] Override http request option.
|
|
43239
|
-
* @throws {RequiredError}
|
|
43240
|
-
*/
|
|
43241
|
-
inviteLinkControllerRedeem(
|
|
43242
|
-
redeemInputDTO?: RedeemInputDTO,
|
|
43243
|
-
options?: RawAxiosRequestConfig,
|
|
43244
|
-
): AxiosPromise<UserOutputWithRolesDTOAPI> {
|
|
43245
|
-
return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
|
|
43246
|
-
},
|
|
43247
|
-
/**
|
|
43248
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
43249
|
-
* @summary Revoke
|
|
43250
|
-
* @param {string} id
|
|
43251
|
-
* @param {*} [options] Override http request option.
|
|
43252
|
-
* @throws {RequiredError}
|
|
43253
|
-
*/
|
|
43254
|
-
inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
|
|
43255
|
-
return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
|
|
43256
|
-
},
|
|
43257
|
-
/**
|
|
43258
|
-
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
43259
|
-
* @summary Search
|
|
43260
|
-
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
43261
|
-
* @param {*} [options] Override http request option.
|
|
43262
|
-
* @throws {RequiredError}
|
|
43263
|
-
*/
|
|
43264
|
-
inviteLinkControllerSearch(
|
|
43265
|
-
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
43266
|
-
options?: RawAxiosRequestConfig,
|
|
43267
|
-
): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
|
|
43268
|
-
return localVarFp
|
|
43269
|
-
.inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
|
|
43270
|
-
.then((request) => request(axios, basePath));
|
|
43271
|
-
},
|
|
43272
|
-
};
|
|
43273
|
-
};
|
|
43274
|
-
|
|
43275
|
-
/**
|
|
43276
|
-
* InviteLinkApi - object-oriented interface
|
|
43277
|
-
* @export
|
|
43278
|
-
* @class InviteLinkApi
|
|
43279
|
-
* @extends {BaseAPI}
|
|
43280
|
-
*/
|
|
43281
|
-
export class InviteLinkApi extends BaseAPI {
|
|
43282
|
-
/**
|
|
43283
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
|
|
43284
|
-
* @summary Create invite link
|
|
43285
|
-
* @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
|
|
43286
|
-
* @param {*} [options] Override http request option.
|
|
43287
|
-
* @throws {RequiredError}
|
|
43288
|
-
* @memberof InviteLinkApi
|
|
43289
|
-
*/
|
|
43290
|
-
public inviteLinkControllerCreate(
|
|
43291
|
-
inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
|
|
43292
|
-
options?: RawAxiosRequestConfig,
|
|
43293
|
-
) {
|
|
43294
|
-
return InviteLinkApiFp(this.configuration)
|
|
43295
|
-
.inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
|
|
43296
|
-
.then((request) => request(this.axios, this.basePath));
|
|
43297
|
-
}
|
|
43298
|
-
|
|
43299
|
-
/**
|
|
43300
|
-
* <br> OperationId: `InviteLinkControllerPreview`
|
|
43301
|
-
* @summary Preview
|
|
43302
|
-
* @param {string} token
|
|
43303
|
-
* @param {*} [options] Override http request option.
|
|
43304
|
-
* @throws {RequiredError}
|
|
43305
|
-
* @memberof InviteLinkApi
|
|
43306
|
-
*/
|
|
43307
|
-
public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
|
|
43308
|
-
return InviteLinkApiFp(this.configuration)
|
|
43309
|
-
.inviteLinkControllerPreview(token, options)
|
|
43310
|
-
.then((request) => request(this.axios, this.basePath));
|
|
43311
|
-
}
|
|
43312
|
-
|
|
43313
|
-
/**
|
|
43314
|
-
* <br> OperationId: `InviteLinkControllerRedeem`
|
|
43315
|
-
* @summary Redeem
|
|
43316
|
-
* @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
|
|
43317
|
-
* @param {*} [options] Override http request option.
|
|
43318
|
-
* @throws {RequiredError}
|
|
43319
|
-
* @memberof InviteLinkApi
|
|
43320
|
-
*/
|
|
43321
|
-
public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
|
|
43322
|
-
return InviteLinkApiFp(this.configuration)
|
|
43323
|
-
.inviteLinkControllerRedeem(redeemInputDTO, options)
|
|
43324
|
-
.then((request) => request(this.axios, this.basePath));
|
|
43325
|
-
}
|
|
43326
|
-
|
|
43327
|
-
/**
|
|
43328
|
-
* Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
|
|
43329
|
-
* @summary Revoke
|
|
43330
|
-
* @param {string} id
|
|
43331
|
-
* @param {*} [options] Override http request option.
|
|
43332
|
-
* @throws {RequiredError}
|
|
43333
|
-
* @memberof InviteLinkApi
|
|
43334
|
-
*/
|
|
43335
|
-
public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
|
|
43336
|
-
return InviteLinkApiFp(this.configuration)
|
|
43337
|
-
.inviteLinkControllerRevoke(id, options)
|
|
43338
|
-
.then((request) => request(this.axios, this.basePath));
|
|
43339
|
-
}
|
|
43340
|
-
|
|
43341
|
-
/**
|
|
43342
|
-
* Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
|
|
43343
|
-
* @summary Search
|
|
43344
|
-
* @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
|
|
43345
|
-
* @param {*} [options] Override http request option.
|
|
43346
|
-
* @throws {RequiredError}
|
|
43347
|
-
* @memberof InviteLinkApi
|
|
43348
|
-
*/
|
|
43349
|
-
public inviteLinkControllerSearch(
|
|
43350
|
-
inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
|
|
43351
|
-
options?: RawAxiosRequestConfig,
|
|
43352
|
-
) {
|
|
43353
|
-
return InviteLinkApiFp(this.configuration)
|
|
43354
|
-
.inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
|
|
43355
|
-
.then((request) => request(this.axios, this.basePath));
|
|
43356
|
-
}
|
|
43357
|
-
}
|