@flipdish/authorization 0.0.173-rc.1781171113 → 0.0.174-rc.1781171339
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/api.ts +0 -201
- package/configuration.ts +1 -1
- package/dist/api.d.ts +0 -153
- package/dist/api.js +1 -105
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1338,128 +1338,6 @@ export interface RematerializeRoleAssignmentSuccessResponseRoleAssignment {
|
|
|
1338
1338
|
*/
|
|
1339
1339
|
'assignmentId': string;
|
|
1340
1340
|
}
|
|
1341
|
-
/**
|
|
1342
|
-
*
|
|
1343
|
-
* @export
|
|
1344
|
-
* @interface RemoveTeammateRequestBody
|
|
1345
|
-
*/
|
|
1346
|
-
export interface RemoveTeammateRequestBody {
|
|
1347
|
-
/**
|
|
1348
|
-
*
|
|
1349
|
-
* @type {RemoveTeammateRequestBodyPrincipal}
|
|
1350
|
-
* @memberof RemoveTeammateRequestBody
|
|
1351
|
-
*/
|
|
1352
|
-
'principal': RemoveTeammateRequestBodyPrincipal;
|
|
1353
|
-
/**
|
|
1354
|
-
*
|
|
1355
|
-
* @type {RemoveTeammateRequestBodyActor}
|
|
1356
|
-
* @memberof RemoveTeammateRequestBody
|
|
1357
|
-
*/
|
|
1358
|
-
'actor'?: RemoveTeammateRequestBodyActor;
|
|
1359
|
-
}
|
|
1360
|
-
/**
|
|
1361
|
-
* Actor performing the removal
|
|
1362
|
-
* @export
|
|
1363
|
-
* @interface RemoveTeammateRequestBodyActor
|
|
1364
|
-
*/
|
|
1365
|
-
export interface RemoveTeammateRequestBodyActor {
|
|
1366
|
-
/**
|
|
1367
|
-
*
|
|
1368
|
-
* @type {string}
|
|
1369
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1370
|
-
*/
|
|
1371
|
-
'type': RemoveTeammateRequestBodyActorTypeEnum;
|
|
1372
|
-
/**
|
|
1373
|
-
*
|
|
1374
|
-
* @type {string}
|
|
1375
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1376
|
-
*/
|
|
1377
|
-
'id': string;
|
|
1378
|
-
/**
|
|
1379
|
-
*
|
|
1380
|
-
* @type {string}
|
|
1381
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1382
|
-
*/
|
|
1383
|
-
'name'?: string;
|
|
1384
|
-
/**
|
|
1385
|
-
*
|
|
1386
|
-
* @type {string}
|
|
1387
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1388
|
-
*/
|
|
1389
|
-
'email'?: string;
|
|
1390
|
-
/**
|
|
1391
|
-
*
|
|
1392
|
-
* @type {string}
|
|
1393
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1394
|
-
*/
|
|
1395
|
-
'phone'?: string;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
export const RemoveTeammateRequestBodyActorTypeEnum = {
|
|
1399
|
-
User: 'User',
|
|
1400
|
-
Automation: 'Automation'
|
|
1401
|
-
} as const;
|
|
1402
|
-
|
|
1403
|
-
export type RemoveTeammateRequestBodyActorTypeEnum = typeof RemoveTeammateRequestBodyActorTypeEnum[keyof typeof RemoveTeammateRequestBodyActorTypeEnum];
|
|
1404
|
-
|
|
1405
|
-
/**
|
|
1406
|
-
* Principal to remove from the org
|
|
1407
|
-
* @export
|
|
1408
|
-
* @interface RemoveTeammateRequestBodyPrincipal
|
|
1409
|
-
*/
|
|
1410
|
-
export interface RemoveTeammateRequestBodyPrincipal {
|
|
1411
|
-
/**
|
|
1412
|
-
*
|
|
1413
|
-
* @type {string}
|
|
1414
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1415
|
-
*/
|
|
1416
|
-
'type': RemoveTeammateRequestBodyPrincipalTypeEnum;
|
|
1417
|
-
/**
|
|
1418
|
-
*
|
|
1419
|
-
* @type {string}
|
|
1420
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1421
|
-
*/
|
|
1422
|
-
'id': string;
|
|
1423
|
-
/**
|
|
1424
|
-
*
|
|
1425
|
-
* @type {string}
|
|
1426
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1427
|
-
*/
|
|
1428
|
-
'name'?: string;
|
|
1429
|
-
/**
|
|
1430
|
-
*
|
|
1431
|
-
* @type {string}
|
|
1432
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1433
|
-
*/
|
|
1434
|
-
'email'?: string;
|
|
1435
|
-
/**
|
|
1436
|
-
*
|
|
1437
|
-
* @type {string}
|
|
1438
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1439
|
-
*/
|
|
1440
|
-
'phone'?: string;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
export const RemoveTeammateRequestBodyPrincipalTypeEnum = {
|
|
1444
|
-
User: 'User',
|
|
1445
|
-
Automation: 'Automation'
|
|
1446
|
-
} as const;
|
|
1447
|
-
|
|
1448
|
-
export type RemoveTeammateRequestBodyPrincipalTypeEnum = typeof RemoveTeammateRequestBodyPrincipalTypeEnum[keyof typeof RemoveTeammateRequestBodyPrincipalTypeEnum];
|
|
1449
|
-
|
|
1450
|
-
/**
|
|
1451
|
-
* Teammate removed from org
|
|
1452
|
-
* @export
|
|
1453
|
-
* @interface RemoveTeammateSuccessResponse
|
|
1454
|
-
*/
|
|
1455
|
-
export interface RemoveTeammateSuccessResponse {
|
|
1456
|
-
/**
|
|
1457
|
-
*
|
|
1458
|
-
* @type {string}
|
|
1459
|
-
* @memberof RemoveTeammateSuccessResponse
|
|
1460
|
-
*/
|
|
1461
|
-
'message': string;
|
|
1462
|
-
}
|
|
1463
1341
|
/**
|
|
1464
1342
|
*
|
|
1465
1343
|
* @export
|
|
@@ -2701,47 +2579,6 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
2701
2579
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2702
2580
|
localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
2703
2581
|
|
|
2704
|
-
return {
|
|
2705
|
-
url: toPathString(localVarUrlObj),
|
|
2706
|
-
options: localVarRequestOptions,
|
|
2707
|
-
};
|
|
2708
|
-
},
|
|
2709
|
-
/**
|
|
2710
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2711
|
-
* @summary Remove teammate
|
|
2712
|
-
* @param {string} orgId
|
|
2713
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2714
|
-
* @param {*} [options] Override http request option.
|
|
2715
|
-
* @throws {RequiredError}
|
|
2716
|
-
*/
|
|
2717
|
-
removeTeammate: async (orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2718
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
2719
|
-
assertParamExists('removeTeammate', 'orgId', orgId)
|
|
2720
|
-
const localVarPath = `/orgs/{orgId}/roleAssignments/remove`
|
|
2721
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
2722
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2723
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2724
|
-
let baseOptions;
|
|
2725
|
-
if (configuration) {
|
|
2726
|
-
baseOptions = configuration.baseOptions;
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2730
|
-
const localVarHeaderParameter = {} as any;
|
|
2731
|
-
const localVarQueryParameter = {} as any;
|
|
2732
|
-
|
|
2733
|
-
// authentication ApiKeyAuth required
|
|
2734
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2739
|
-
|
|
2740
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2741
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2742
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2743
|
-
localVarRequestOptions.data = serializeDataIfNeeded(removeTeammateRequestBody, localVarRequestOptions, configuration)
|
|
2744
|
-
|
|
2745
2582
|
return {
|
|
2746
2583
|
url: toPathString(localVarUrlObj),
|
|
2747
2584
|
options: localVarRequestOptions,
|
|
@@ -2785,20 +2622,6 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
2785
2622
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']?.[localVarOperationServerIndex]?.url;
|
|
2786
2623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2787
2624
|
},
|
|
2788
|
-
/**
|
|
2789
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2790
|
-
* @summary Remove teammate
|
|
2791
|
-
* @param {string} orgId
|
|
2792
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2793
|
-
* @param {*} [options] Override http request option.
|
|
2794
|
-
* @throws {RequiredError}
|
|
2795
|
-
*/
|
|
2796
|
-
async removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoveTeammateSuccessResponse>> {
|
|
2797
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options);
|
|
2798
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2799
|
-
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.removeTeammate']?.[localVarOperationServerIndex]?.url;
|
|
2800
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2801
|
-
},
|
|
2802
2625
|
}
|
|
2803
2626
|
};
|
|
2804
2627
|
|
|
@@ -2831,17 +2654,6 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
2831
2654
|
rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RematerializeRoleAssignmentSuccessResponse> {
|
|
2832
2655
|
return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(axios, basePath));
|
|
2833
2656
|
},
|
|
2834
|
-
/**
|
|
2835
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2836
|
-
* @summary Remove teammate
|
|
2837
|
-
* @param {string} orgId
|
|
2838
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2839
|
-
* @param {*} [options] Override http request option.
|
|
2840
|
-
* @throws {RequiredError}
|
|
2841
|
-
*/
|
|
2842
|
-
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RemoveTeammateSuccessResponse> {
|
|
2843
|
-
return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(axios, basePath));
|
|
2844
|
-
},
|
|
2845
2657
|
};
|
|
2846
2658
|
};
|
|
2847
2659
|
|
|
@@ -2877,19 +2689,6 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
2877
2689
|
public rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
|
|
2878
2690
|
return RoleAssignmentApiFp(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2879
2691
|
}
|
|
2880
|
-
|
|
2881
|
-
/**
|
|
2882
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2883
|
-
* @summary Remove teammate
|
|
2884
|
-
* @param {string} orgId
|
|
2885
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2886
|
-
* @param {*} [options] Override http request option.
|
|
2887
|
-
* @throws {RequiredError}
|
|
2888
|
-
* @memberof RoleAssignmentApi
|
|
2889
|
-
*/
|
|
2890
|
-
public removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig) {
|
|
2891
|
-
return RoleAssignmentApiFp(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2892
|
-
}
|
|
2893
2692
|
}
|
|
2894
2693
|
|
|
2895
2694
|
|
package/configuration.ts
CHANGED
|
@@ -100,7 +100,7 @@ export class Configuration {
|
|
|
100
100
|
|
|
101
101
|
const extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
102
102
|
headers: {
|
|
103
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.174-rc.1781171339"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1284,122 +1284,6 @@ export interface RematerializeRoleAssignmentSuccessResponseRoleAssignment {
|
|
|
1284
1284
|
*/
|
|
1285
1285
|
'assignmentId': string;
|
|
1286
1286
|
}
|
|
1287
|
-
/**
|
|
1288
|
-
*
|
|
1289
|
-
* @export
|
|
1290
|
-
* @interface RemoveTeammateRequestBody
|
|
1291
|
-
*/
|
|
1292
|
-
export interface RemoveTeammateRequestBody {
|
|
1293
|
-
/**
|
|
1294
|
-
*
|
|
1295
|
-
* @type {RemoveTeammateRequestBodyPrincipal}
|
|
1296
|
-
* @memberof RemoveTeammateRequestBody
|
|
1297
|
-
*/
|
|
1298
|
-
'principal': RemoveTeammateRequestBodyPrincipal;
|
|
1299
|
-
/**
|
|
1300
|
-
*
|
|
1301
|
-
* @type {RemoveTeammateRequestBodyActor}
|
|
1302
|
-
* @memberof RemoveTeammateRequestBody
|
|
1303
|
-
*/
|
|
1304
|
-
'actor'?: RemoveTeammateRequestBodyActor;
|
|
1305
|
-
}
|
|
1306
|
-
/**
|
|
1307
|
-
* Actor performing the removal
|
|
1308
|
-
* @export
|
|
1309
|
-
* @interface RemoveTeammateRequestBodyActor
|
|
1310
|
-
*/
|
|
1311
|
-
export interface RemoveTeammateRequestBodyActor {
|
|
1312
|
-
/**
|
|
1313
|
-
*
|
|
1314
|
-
* @type {string}
|
|
1315
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1316
|
-
*/
|
|
1317
|
-
'type': RemoveTeammateRequestBodyActorTypeEnum;
|
|
1318
|
-
/**
|
|
1319
|
-
*
|
|
1320
|
-
* @type {string}
|
|
1321
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1322
|
-
*/
|
|
1323
|
-
'id': string;
|
|
1324
|
-
/**
|
|
1325
|
-
*
|
|
1326
|
-
* @type {string}
|
|
1327
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1328
|
-
*/
|
|
1329
|
-
'name'?: string;
|
|
1330
|
-
/**
|
|
1331
|
-
*
|
|
1332
|
-
* @type {string}
|
|
1333
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1334
|
-
*/
|
|
1335
|
-
'email'?: string;
|
|
1336
|
-
/**
|
|
1337
|
-
*
|
|
1338
|
-
* @type {string}
|
|
1339
|
-
* @memberof RemoveTeammateRequestBodyActor
|
|
1340
|
-
*/
|
|
1341
|
-
'phone'?: string;
|
|
1342
|
-
}
|
|
1343
|
-
export declare const RemoveTeammateRequestBodyActorTypeEnum: {
|
|
1344
|
-
readonly User: "User";
|
|
1345
|
-
readonly Automation: "Automation";
|
|
1346
|
-
};
|
|
1347
|
-
export type RemoveTeammateRequestBodyActorTypeEnum = typeof RemoveTeammateRequestBodyActorTypeEnum[keyof typeof RemoveTeammateRequestBodyActorTypeEnum];
|
|
1348
|
-
/**
|
|
1349
|
-
* Principal to remove from the org
|
|
1350
|
-
* @export
|
|
1351
|
-
* @interface RemoveTeammateRequestBodyPrincipal
|
|
1352
|
-
*/
|
|
1353
|
-
export interface RemoveTeammateRequestBodyPrincipal {
|
|
1354
|
-
/**
|
|
1355
|
-
*
|
|
1356
|
-
* @type {string}
|
|
1357
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1358
|
-
*/
|
|
1359
|
-
'type': RemoveTeammateRequestBodyPrincipalTypeEnum;
|
|
1360
|
-
/**
|
|
1361
|
-
*
|
|
1362
|
-
* @type {string}
|
|
1363
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1364
|
-
*/
|
|
1365
|
-
'id': string;
|
|
1366
|
-
/**
|
|
1367
|
-
*
|
|
1368
|
-
* @type {string}
|
|
1369
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1370
|
-
*/
|
|
1371
|
-
'name'?: string;
|
|
1372
|
-
/**
|
|
1373
|
-
*
|
|
1374
|
-
* @type {string}
|
|
1375
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1376
|
-
*/
|
|
1377
|
-
'email'?: string;
|
|
1378
|
-
/**
|
|
1379
|
-
*
|
|
1380
|
-
* @type {string}
|
|
1381
|
-
* @memberof RemoveTeammateRequestBodyPrincipal
|
|
1382
|
-
*/
|
|
1383
|
-
'phone'?: string;
|
|
1384
|
-
}
|
|
1385
|
-
export declare const RemoveTeammateRequestBodyPrincipalTypeEnum: {
|
|
1386
|
-
readonly User: "User";
|
|
1387
|
-
readonly Automation: "Automation";
|
|
1388
|
-
};
|
|
1389
|
-
export type RemoveTeammateRequestBodyPrincipalTypeEnum = typeof RemoveTeammateRequestBodyPrincipalTypeEnum[keyof typeof RemoveTeammateRequestBodyPrincipalTypeEnum];
|
|
1390
|
-
/**
|
|
1391
|
-
* Teammate removed from org
|
|
1392
|
-
* @export
|
|
1393
|
-
* @interface RemoveTeammateSuccessResponse
|
|
1394
|
-
*/
|
|
1395
|
-
export interface RemoveTeammateSuccessResponse {
|
|
1396
|
-
/**
|
|
1397
|
-
*
|
|
1398
|
-
* @type {string}
|
|
1399
|
-
* @memberof RemoveTeammateSuccessResponse
|
|
1400
|
-
*/
|
|
1401
|
-
'message': string;
|
|
1402
|
-
}
|
|
1403
1287
|
/**
|
|
1404
1288
|
*
|
|
1405
1289
|
* @export
|
|
@@ -2082,15 +1966,6 @@ export declare const RoleAssignmentApiAxiosParamCreator: (configuration?: Config
|
|
|
2082
1966
|
* @throws {RequiredError}
|
|
2083
1967
|
*/
|
|
2084
1968
|
rematerializeRoleAssignmentV2: (orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2085
|
-
/**
|
|
2086
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2087
|
-
* @summary Remove teammate
|
|
2088
|
-
* @param {string} orgId
|
|
2089
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2090
|
-
* @param {*} [options] Override http request option.
|
|
2091
|
-
* @throws {RequiredError}
|
|
2092
|
-
*/
|
|
2093
|
-
removeTeammate: (orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2094
1969
|
};
|
|
2095
1970
|
/**
|
|
2096
1971
|
* RoleAssignmentApi - functional programming interface
|
|
@@ -2115,15 +1990,6 @@ export declare const RoleAssignmentApiFp: (configuration?: Configuration) => {
|
|
|
2115
1990
|
* @throws {RequiredError}
|
|
2116
1991
|
*/
|
|
2117
1992
|
rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RematerializeRoleAssignmentSuccessResponse>>;
|
|
2118
|
-
/**
|
|
2119
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2120
|
-
* @summary Remove teammate
|
|
2121
|
-
* @param {string} orgId
|
|
2122
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2123
|
-
* @param {*} [options] Override http request option.
|
|
2124
|
-
* @throws {RequiredError}
|
|
2125
|
-
*/
|
|
2126
|
-
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoveTeammateSuccessResponse>>;
|
|
2127
1993
|
};
|
|
2128
1994
|
/**
|
|
2129
1995
|
* RoleAssignmentApi - factory interface
|
|
@@ -2148,15 +2014,6 @@ export declare const RoleAssignmentApiFactory: (configuration?: Configuration, b
|
|
|
2148
2014
|
* @throws {RequiredError}
|
|
2149
2015
|
*/
|
|
2150
2016
|
rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RematerializeRoleAssignmentSuccessResponse>;
|
|
2151
|
-
/**
|
|
2152
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2153
|
-
* @summary Remove teammate
|
|
2154
|
-
* @param {string} orgId
|
|
2155
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2156
|
-
* @param {*} [options] Override http request option.
|
|
2157
|
-
* @throws {RequiredError}
|
|
2158
|
-
*/
|
|
2159
|
-
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RemoveTeammateSuccessResponse>;
|
|
2160
2017
|
};
|
|
2161
2018
|
/**
|
|
2162
2019
|
* RoleAssignmentApi - object-oriented interface
|
|
@@ -2185,16 +2042,6 @@ export declare class RoleAssignmentApi extends BaseAPI {
|
|
|
2185
2042
|
* @memberof RoleAssignmentApi
|
|
2186
2043
|
*/
|
|
2187
2044
|
rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RematerializeRoleAssignmentSuccessResponse, any, {}>>;
|
|
2188
|
-
/**
|
|
2189
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
2190
|
-
* @summary Remove teammate
|
|
2191
|
-
* @param {string} orgId
|
|
2192
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
2193
|
-
* @param {*} [options] Override http request option.
|
|
2194
|
-
* @throws {RequiredError}
|
|
2195
|
-
* @memberof RoleAssignmentApi
|
|
2196
|
-
*/
|
|
2197
|
-
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RemoveTeammateSuccessResponse, any, {}>>;
|
|
2198
2045
|
}
|
|
2199
2046
|
/**
|
|
2200
2047
|
* UserManagementApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RoleNames = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.
|
|
87
|
+
exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.RoleNames = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = exports.ListOrgRolesSuccessResponseValueAnyOfRolesEnum = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.IsInRoleRequestCheckModeEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = void 0;
|
|
88
88
|
var axios_1 = require("axios");
|
|
89
89
|
// Some imports not used depending on template conditions
|
|
90
90
|
// @ts-ignore
|
|
@@ -392,14 +392,6 @@ exports.Permissions = {
|
|
|
392
392
|
RoleFactory: 'RoleFactory',
|
|
393
393
|
RoleAuthDeveloper: 'RoleAuthDeveloper'
|
|
394
394
|
};
|
|
395
|
-
exports.RemoveTeammateRequestBodyActorTypeEnum = {
|
|
396
|
-
User: 'User',
|
|
397
|
-
Automation: 'Automation'
|
|
398
|
-
};
|
|
399
|
-
exports.RemoveTeammateRequestBodyPrincipalTypeEnum = {
|
|
400
|
-
User: 'User',
|
|
401
|
-
Automation: 'Automation'
|
|
402
|
-
};
|
|
403
395
|
exports.RoleAssignmentRequestBodyRoleNameEnum = {
|
|
404
396
|
Owner: 'Owner',
|
|
405
397
|
PropertyOwner: 'PropertyOwner',
|
|
@@ -1690,54 +1682,6 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
|
|
|
1690
1682
|
});
|
|
1691
1683
|
});
|
|
1692
1684
|
},
|
|
1693
|
-
/**
|
|
1694
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1695
|
-
* @summary Remove teammate
|
|
1696
|
-
* @param {string} orgId
|
|
1697
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
1698
|
-
* @param {*} [options] Override http request option.
|
|
1699
|
-
* @throws {RequiredError}
|
|
1700
|
-
*/
|
|
1701
|
-
removeTeammate: function (orgId_1, removeTeammateRequestBody_1) {
|
|
1702
|
-
var args_1 = [];
|
|
1703
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1704
|
-
args_1[_i - 2] = arguments[_i];
|
|
1705
|
-
}
|
|
1706
|
-
return __awaiter(_this, __spreadArray([orgId_1, removeTeammateRequestBody_1], args_1, true), void 0, function (orgId, removeTeammateRequestBody, options) {
|
|
1707
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1708
|
-
if (options === void 0) { options = {}; }
|
|
1709
|
-
return __generator(this, function (_a) {
|
|
1710
|
-
switch (_a.label) {
|
|
1711
|
-
case 0:
|
|
1712
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
1713
|
-
(0, common_1.assertParamExists)('removeTeammate', 'orgId', orgId);
|
|
1714
|
-
localVarPath = "/orgs/{orgId}/roleAssignments/remove"
|
|
1715
|
-
.replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
|
|
1716
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1717
|
-
if (configuration) {
|
|
1718
|
-
baseOptions = configuration.baseOptions;
|
|
1719
|
-
}
|
|
1720
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1721
|
-
localVarHeaderParameter = {};
|
|
1722
|
-
localVarQueryParameter = {};
|
|
1723
|
-
// authentication ApiKeyAuth required
|
|
1724
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
1725
|
-
case 1:
|
|
1726
|
-
// authentication ApiKeyAuth required
|
|
1727
|
-
_a.sent();
|
|
1728
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1729
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1730
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1731
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1732
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(removeTeammateRequestBody, localVarRequestOptions, configuration);
|
|
1733
|
-
return [2 /*return*/, {
|
|
1734
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1735
|
-
options: localVarRequestOptions,
|
|
1736
|
-
}];
|
|
1737
|
-
}
|
|
1738
|
-
});
|
|
1739
|
-
});
|
|
1740
|
-
},
|
|
1741
1685
|
};
|
|
1742
1686
|
};
|
|
1743
1687
|
exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
|
|
@@ -1796,30 +1740,6 @@ var RoleAssignmentApiFp = function (configuration) {
|
|
|
1796
1740
|
});
|
|
1797
1741
|
});
|
|
1798
1742
|
},
|
|
1799
|
-
/**
|
|
1800
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1801
|
-
* @summary Remove teammate
|
|
1802
|
-
* @param {string} orgId
|
|
1803
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
1804
|
-
* @param {*} [options] Override http request option.
|
|
1805
|
-
* @throws {RequiredError}
|
|
1806
|
-
*/
|
|
1807
|
-
removeTeammate: function (orgId, removeTeammateRequestBody, options) {
|
|
1808
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1809
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1810
|
-
var _a, _b, _c;
|
|
1811
|
-
return __generator(this, function (_d) {
|
|
1812
|
-
switch (_d.label) {
|
|
1813
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options)];
|
|
1814
|
-
case 1:
|
|
1815
|
-
localVarAxiosArgs = _d.sent();
|
|
1816
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1817
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.removeTeammate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1818
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1819
|
-
}
|
|
1820
|
-
});
|
|
1821
|
-
});
|
|
1822
|
-
},
|
|
1823
1743
|
};
|
|
1824
1744
|
};
|
|
1825
1745
|
exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
|
|
@@ -1852,17 +1772,6 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1852
1772
|
rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentRequestBody, options) {
|
|
1853
1773
|
return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
1854
1774
|
},
|
|
1855
|
-
/**
|
|
1856
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1857
|
-
* @summary Remove teammate
|
|
1858
|
-
* @param {string} orgId
|
|
1859
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
1860
|
-
* @param {*} [options] Override http request option.
|
|
1861
|
-
* @throws {RequiredError}
|
|
1862
|
-
*/
|
|
1863
|
-
removeTeammate: function (orgId, removeTeammateRequestBody, options) {
|
|
1864
|
-
return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
1865
|
-
},
|
|
1866
1775
|
};
|
|
1867
1776
|
};
|
|
1868
1777
|
exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
|
|
@@ -1903,19 +1812,6 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
|
|
|
1903
1812
|
var _this = this;
|
|
1904
1813
|
return (0, exports.RoleAssignmentApiFp)(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1905
1814
|
};
|
|
1906
|
-
/**
|
|
1907
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
1908
|
-
* @summary Remove teammate
|
|
1909
|
-
* @param {string} orgId
|
|
1910
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
1911
|
-
* @param {*} [options] Override http request option.
|
|
1912
|
-
* @throws {RequiredError}
|
|
1913
|
-
* @memberof RoleAssignmentApi
|
|
1914
|
-
*/
|
|
1915
|
-
RoleAssignmentApi.prototype.removeTeammate = function (orgId, removeTeammateRequestBody, options) {
|
|
1916
|
-
var _this = this;
|
|
1917
|
-
return (0, exports.RoleAssignmentApiFp)(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1918
|
-
};
|
|
1919
1815
|
return RoleAssignmentApi;
|
|
1920
1816
|
}(base_1.BaseAPI));
|
|
1921
1817
|
exports.RoleAssignmentApi = RoleAssignmentApi;
|
package/dist/configuration.js
CHANGED
|
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
|
|
|
36
36
|
this.serverIndex = param.serverIndex;
|
|
37
37
|
var extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
38
38
|
headers: {
|
|
39
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.174-rc.1781171339"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|
package/package.json
CHANGED