@flipdish/authorization 0.2.36 → 0.2.37-rc.1779456495
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/.openapi-generator/FILES +1 -0
- package/api.ts +621 -18
- package/configuration.ts +1 -1
- package/dist/api.d.ts +348 -18
- package/dist/api.js +689 -18
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1154,23 +1154,23 @@ export interface ListOrgRolesSuccessResponseValue {
|
|
|
1154
1154
|
*/
|
|
1155
1155
|
'optionalPermissionSetKeys'?: Array<string>;
|
|
1156
1156
|
/**
|
|
1157
|
-
* Property IDs the roles are scoped to
|
|
1158
|
-
* @type {Array<
|
|
1157
|
+
* Property IDs, or * for all properties, the roles are scoped to
|
|
1158
|
+
* @type {Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>}
|
|
1159
1159
|
* @memberof ListOrgRolesSuccessResponseValue
|
|
1160
1160
|
*/
|
|
1161
|
-
'properties'?: Array<
|
|
1161
|
+
'properties'?: Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>;
|
|
1162
1162
|
/**
|
|
1163
|
-
* Brand IDs the roles are scoped to
|
|
1164
|
-
* @type {Array<
|
|
1163
|
+
* Brand IDs, or * for all brands, the roles are scoped to
|
|
1164
|
+
* @type {Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>}
|
|
1165
1165
|
* @memberof ListOrgRolesSuccessResponseValue
|
|
1166
1166
|
*/
|
|
1167
|
-
'brands'?: Array<
|
|
1167
|
+
'brands'?: Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>;
|
|
1168
1168
|
/**
|
|
1169
|
-
* Sales channel IDs the roles are scoped to
|
|
1170
|
-
* @type {Array<
|
|
1169
|
+
* Sales channel IDs, or * for all sales channels, the roles are scoped to
|
|
1170
|
+
* @type {Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>}
|
|
1171
1171
|
* @memberof ListOrgRolesSuccessResponseValue
|
|
1172
1172
|
*/
|
|
1173
|
-
'salesChannels'?: Array<
|
|
1173
|
+
'salesChannels'?: Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>;
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
1176
|
export const ListOrgRolesSuccessResponseValueRolesEnum = {
|
|
@@ -1209,23 +1209,23 @@ export interface ListOrgRolesSuccessResponseValueAnyOf {
|
|
|
1209
1209
|
*/
|
|
1210
1210
|
'optionalPermissionSetKeys'?: Array<string>;
|
|
1211
1211
|
/**
|
|
1212
|
-
* Property IDs the roles are scoped to
|
|
1213
|
-
* @type {Array<
|
|
1212
|
+
* Property IDs, or * for all properties, the roles are scoped to
|
|
1213
|
+
* @type {Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>}
|
|
1214
1214
|
* @memberof ListOrgRolesSuccessResponseValueAnyOf
|
|
1215
1215
|
*/
|
|
1216
|
-
'properties'?: Array<
|
|
1216
|
+
'properties'?: Array<ListOrgRolesSuccessResponseValueAnyOfPropertiesInner>;
|
|
1217
1217
|
/**
|
|
1218
|
-
* Brand IDs the roles are scoped to
|
|
1219
|
-
* @type {Array<
|
|
1218
|
+
* Brand IDs, or * for all brands, the roles are scoped to
|
|
1219
|
+
* @type {Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>}
|
|
1220
1220
|
* @memberof ListOrgRolesSuccessResponseValueAnyOf
|
|
1221
1221
|
*/
|
|
1222
|
-
'brands'?: Array<
|
|
1222
|
+
'brands'?: Array<ListOrgRolesSuccessResponseValueAnyOfBrandsInner>;
|
|
1223
1223
|
/**
|
|
1224
|
-
* Sales channel IDs the roles are scoped to
|
|
1225
|
-
* @type {Array<
|
|
1224
|
+
* Sales channel IDs, or * for all sales channels, the roles are scoped to
|
|
1225
|
+
* @type {Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>}
|
|
1226
1226
|
* @memberof ListOrgRolesSuccessResponseValueAnyOf
|
|
1227
1227
|
*/
|
|
1228
|
-
'salesChannels'?: Array<
|
|
1228
|
+
'salesChannels'?: Array<ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner>;
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
export const ListOrgRolesSuccessResponseValueAnyOfRolesEnum = {
|
|
@@ -1239,6 +1239,13 @@ export const ListOrgRolesSuccessResponseValueAnyOfRolesEnum = {
|
|
|
1239
1239
|
|
|
1240
1240
|
export type ListOrgRolesSuccessResponseValueAnyOfRolesEnum = typeof ListOrgRolesSuccessResponseValueAnyOfRolesEnum[keyof typeof ListOrgRolesSuccessResponseValueAnyOfRolesEnum];
|
|
1241
1241
|
|
|
1242
|
+
/**
|
|
1243
|
+
*
|
|
1244
|
+
* @export
|
|
1245
|
+
* @interface ListOrgRolesSuccessResponseValueAnyOfBrandsInner
|
|
1246
|
+
*/
|
|
1247
|
+
export interface ListOrgRolesSuccessResponseValueAnyOfBrandsInner {
|
|
1248
|
+
}
|
|
1242
1249
|
/**
|
|
1243
1250
|
* ID of the org the roles are assigned in
|
|
1244
1251
|
* @export
|
|
@@ -1246,6 +1253,20 @@ export type ListOrgRolesSuccessResponseValueAnyOfRolesEnum = typeof ListOrgRoles
|
|
|
1246
1253
|
*/
|
|
1247
1254
|
export interface ListOrgRolesSuccessResponseValueAnyOfOrgId {
|
|
1248
1255
|
}
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @export
|
|
1259
|
+
* @interface ListOrgRolesSuccessResponseValueAnyOfPropertiesInner
|
|
1260
|
+
*/
|
|
1261
|
+
export interface ListOrgRolesSuccessResponseValueAnyOfPropertiesInner {
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @export
|
|
1266
|
+
* @interface ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner
|
|
1267
|
+
*/
|
|
1268
|
+
export interface ListOrgRolesSuccessResponseValueAnyOfSalesChannelsInner {
|
|
1269
|
+
}
|
|
1249
1270
|
/**
|
|
1250
1271
|
*
|
|
1251
1272
|
* @export
|
|
@@ -1987,6 +2008,49 @@ export const UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
|
|
|
1987
2008
|
|
|
1988
2009
|
export type UpdateTeammateAccessRequestBodyAppAccessLevelEnum = typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum[keyof typeof UpdateTeammateAccessRequestBodyAppAccessLevelEnum];
|
|
1989
2010
|
|
|
2011
|
+
/**
|
|
2012
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
2013
|
+
* @export
|
|
2014
|
+
* @interface V2UiRoleAssignmentRequestBody
|
|
2015
|
+
*/
|
|
2016
|
+
export interface V2UiRoleAssignmentRequestBody {
|
|
2017
|
+
/**
|
|
2018
|
+
* Teammate app access level (role)
|
|
2019
|
+
* @type {string}
|
|
2020
|
+
* @memberof V2UiRoleAssignmentRequestBody
|
|
2021
|
+
*/
|
|
2022
|
+
'appAccessLevel': V2UiRoleAssignmentRequestBodyAppAccessLevelEnum;
|
|
2023
|
+
/**
|
|
2024
|
+
* Org-wide store access; when false, propertyIds are required for property-scoped roles
|
|
2025
|
+
* @type {boolean}
|
|
2026
|
+
* @memberof V2UiRoleAssignmentRequestBody
|
|
2027
|
+
*/
|
|
2028
|
+
'hasAccessToAllStores': boolean;
|
|
2029
|
+
/**
|
|
2030
|
+
* Property resource ids (e.g. p123) when scoped to properties
|
|
2031
|
+
* @type {Array<string>}
|
|
2032
|
+
* @memberof V2UiRoleAssignmentRequestBody
|
|
2033
|
+
*/
|
|
2034
|
+
'propertyIds'?: Array<string>;
|
|
2035
|
+
/**
|
|
2036
|
+
* Optional v2 permission set keys to apply to this teammate role
|
|
2037
|
+
* @type {Array<string>}
|
|
2038
|
+
* @memberof V2UiRoleAssignmentRequestBody
|
|
2039
|
+
*/
|
|
2040
|
+
'optionalPermissionSetKeys'?: Array<string>;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
export const V2UiRoleAssignmentRequestBodyAppAccessLevelEnum = {
|
|
2044
|
+
Owner: 'Owner',
|
|
2045
|
+
ManagedOwner: 'ManagedOwner',
|
|
2046
|
+
PropertyOwner: 'PropertyOwner',
|
|
2047
|
+
PropertyManager: 'PropertyManager',
|
|
2048
|
+
FinanceManager: 'FinanceManager',
|
|
2049
|
+
Integrator: 'Integrator'
|
|
2050
|
+
} as const;
|
|
2051
|
+
|
|
2052
|
+
export type V2UiRoleAssignmentRequestBodyAppAccessLevelEnum = typeof V2UiRoleAssignmentRequestBodyAppAccessLevelEnum[keyof typeof V2UiRoleAssignmentRequestBodyAppAccessLevelEnum];
|
|
2053
|
+
|
|
1990
2054
|
/**
|
|
1991
2055
|
*
|
|
1992
2056
|
* @export
|
|
@@ -3359,6 +3423,51 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3359
3423
|
options: localVarRequestOptions,
|
|
3360
3424
|
};
|
|
3361
3425
|
},
|
|
3426
|
+
/**
|
|
3427
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3428
|
+
* @summary Grant v2 teammate access to a user
|
|
3429
|
+
* @param {string} orgId
|
|
3430
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3431
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3432
|
+
* @param {*} [options] Override http request option.
|
|
3433
|
+
* @throws {RequiredError}
|
|
3434
|
+
*/
|
|
3435
|
+
grantTeammateAccessV2: async (orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3436
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
3437
|
+
assertParamExists('grantTeammateAccessV2', 'orgId', orgId)
|
|
3438
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3439
|
+
assertParamExists('grantTeammateAccessV2', 'userId', userId)
|
|
3440
|
+
const localVarPath = `/v2/orgs/{orgId}/users/{userId}/grantTeammateAccess`
|
|
3441
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
3442
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3443
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3444
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3445
|
+
let baseOptions;
|
|
3446
|
+
if (configuration) {
|
|
3447
|
+
baseOptions = configuration.baseOptions;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3451
|
+
const localVarHeaderParameter = {} as any;
|
|
3452
|
+
const localVarQueryParameter = {} as any;
|
|
3453
|
+
|
|
3454
|
+
// authentication ApiKeyAuth required
|
|
3455
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
|
|
3459
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3460
|
+
|
|
3461
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3463
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3464
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
3465
|
+
|
|
3466
|
+
return {
|
|
3467
|
+
url: toPathString(localVarUrlObj),
|
|
3468
|
+
options: localVarRequestOptions,
|
|
3469
|
+
};
|
|
3470
|
+
},
|
|
3362
3471
|
/**
|
|
3363
3472
|
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
3364
3473
|
* @summary Rematerialize V2 Role Assignment
|
|
@@ -3522,6 +3631,51 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3522
3631
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3523
3632
|
localVarRequestOptions.data = serializeDataIfNeeded(updateTeammateAccessRequestBody, localVarRequestOptions, configuration)
|
|
3524
3633
|
|
|
3634
|
+
return {
|
|
3635
|
+
url: toPathString(localVarUrlObj),
|
|
3636
|
+
options: localVarRequestOptions,
|
|
3637
|
+
};
|
|
3638
|
+
},
|
|
3639
|
+
/**
|
|
3640
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3641
|
+
* @summary Update v2 teammate access for a user
|
|
3642
|
+
* @param {string} orgId
|
|
3643
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3644
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3645
|
+
* @param {*} [options] Override http request option.
|
|
3646
|
+
* @throws {RequiredError}
|
|
3647
|
+
*/
|
|
3648
|
+
updateTeammateAccessV2: async (orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3649
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
3650
|
+
assertParamExists('updateTeammateAccessV2', 'orgId', orgId)
|
|
3651
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3652
|
+
assertParamExists('updateTeammateAccessV2', 'userId', userId)
|
|
3653
|
+
const localVarPath = `/v2/orgs/{orgId}/users/{userId}/updateTeammateAccess`
|
|
3654
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
3655
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
3656
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3658
|
+
let baseOptions;
|
|
3659
|
+
if (configuration) {
|
|
3660
|
+
baseOptions = configuration.baseOptions;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3664
|
+
const localVarHeaderParameter = {} as any;
|
|
3665
|
+
const localVarQueryParameter = {} as any;
|
|
3666
|
+
|
|
3667
|
+
// authentication ApiKeyAuth required
|
|
3668
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3669
|
+
|
|
3670
|
+
|
|
3671
|
+
|
|
3672
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3673
|
+
|
|
3674
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3675
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3676
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3677
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
3678
|
+
|
|
3525
3679
|
return {
|
|
3526
3680
|
url: toPathString(localVarUrlObj),
|
|
3527
3681
|
options: localVarRequestOptions,
|
|
@@ -3580,6 +3734,21 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3580
3734
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccess']?.[localVarOperationServerIndex]?.url;
|
|
3581
3735
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3582
3736
|
},
|
|
3737
|
+
/**
|
|
3738
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3739
|
+
* @summary Grant v2 teammate access to a user
|
|
3740
|
+
* @param {string} orgId
|
|
3741
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3742
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3743
|
+
* @param {*} [options] Override http request option.
|
|
3744
|
+
* @throws {RequiredError}
|
|
3745
|
+
*/
|
|
3746
|
+
async grantTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
|
|
3747
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options);
|
|
3748
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3749
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.grantTeammateAccessV2']?.[localVarOperationServerIndex]?.url;
|
|
3750
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3751
|
+
},
|
|
3583
3752
|
/**
|
|
3584
3753
|
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
3585
3754
|
* @summary Rematerialize V2 Role Assignment
|
|
@@ -3637,6 +3806,21 @@ export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
|
3637
3806
|
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.updateTeammateAccess']?.[localVarOperationServerIndex]?.url;
|
|
3638
3807
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3639
3808
|
},
|
|
3809
|
+
/**
|
|
3810
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3811
|
+
* @summary Update v2 teammate access for a user
|
|
3812
|
+
* @param {string} orgId
|
|
3813
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3814
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3815
|
+
* @param {*} [options] Override http request option.
|
|
3816
|
+
* @throws {RequiredError}
|
|
3817
|
+
*/
|
|
3818
|
+
async updateTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TeammateAccessSuccessResponse>> {
|
|
3819
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options);
|
|
3820
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3821
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.updateTeammateAccessV2']?.[localVarOperationServerIndex]?.url;
|
|
3822
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3823
|
+
},
|
|
3640
3824
|
}
|
|
3641
3825
|
};
|
|
3642
3826
|
|
|
@@ -3681,6 +3865,18 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3681
3865
|
grantTeammateAccess(orgId: string, userId: string, grantTeammateAccessRequestBody?: GrantTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3682
3866
|
return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
|
|
3683
3867
|
},
|
|
3868
|
+
/**
|
|
3869
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3870
|
+
* @summary Grant v2 teammate access to a user
|
|
3871
|
+
* @param {string} orgId
|
|
3872
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3873
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3874
|
+
* @param {*} [options] Override http request option.
|
|
3875
|
+
* @throws {RequiredError}
|
|
3876
|
+
*/
|
|
3877
|
+
grantTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3878
|
+
return localVarFp.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(axios, basePath));
|
|
3879
|
+
},
|
|
3684
3880
|
/**
|
|
3685
3881
|
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
3686
3882
|
* @summary Rematerialize V2 Role Assignment
|
|
@@ -3726,6 +3922,18 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
3726
3922
|
updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3727
3923
|
return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(axios, basePath));
|
|
3728
3924
|
},
|
|
3925
|
+
/**
|
|
3926
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3927
|
+
* @summary Update v2 teammate access for a user
|
|
3928
|
+
* @param {string} orgId
|
|
3929
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3930
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3931
|
+
* @param {*} [options] Override http request option.
|
|
3932
|
+
* @throws {RequiredError}
|
|
3933
|
+
*/
|
|
3934
|
+
updateTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TeammateAccessSuccessResponse> {
|
|
3935
|
+
return localVarFp.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(axios, basePath));
|
|
3936
|
+
},
|
|
3729
3937
|
};
|
|
3730
3938
|
};
|
|
3731
3939
|
|
|
@@ -3776,6 +3984,20 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3776
3984
|
return RoleAssignmentApiFp(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3777
3985
|
}
|
|
3778
3986
|
|
|
3987
|
+
/**
|
|
3988
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
3989
|
+
* @summary Grant v2 teammate access to a user
|
|
3990
|
+
* @param {string} orgId
|
|
3991
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
3992
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
3993
|
+
* @param {*} [options] Override http request option.
|
|
3994
|
+
* @throws {RequiredError}
|
|
3995
|
+
* @memberof RoleAssignmentApi
|
|
3996
|
+
*/
|
|
3997
|
+
public grantTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
|
|
3998
|
+
return RoleAssignmentApiFp(this.configuration).grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3999
|
+
}
|
|
4000
|
+
|
|
3779
4001
|
/**
|
|
3780
4002
|
* Rematerializes a V2 role assignment and applies the resulting policy assignments
|
|
3781
4003
|
* @summary Rematerialize V2 Role Assignment
|
|
@@ -3828,6 +4050,20 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
3828
4050
|
public updateTeammateAccess(orgId: string, userId: string, updateTeammateAccessRequestBody?: UpdateTeammateAccessRequestBody, options?: RawAxiosRequestConfig) {
|
|
3829
4051
|
return RoleAssignmentApiFp(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3830
4052
|
}
|
|
4053
|
+
|
|
4054
|
+
/**
|
|
4055
|
+
* Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
|
|
4056
|
+
* @summary Update v2 teammate access for a user
|
|
4057
|
+
* @param {string} orgId
|
|
4058
|
+
* @param {string} userId Target Flipdish user id (numeric string)
|
|
4059
|
+
* @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
|
|
4060
|
+
* @param {*} [options] Override http request option.
|
|
4061
|
+
* @throws {RequiredError}
|
|
4062
|
+
* @memberof RoleAssignmentApi
|
|
4063
|
+
*/
|
|
4064
|
+
public updateTeammateAccessV2(orgId: string, userId: string, v2UiRoleAssignmentRequestBody?: V2UiRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
|
|
4065
|
+
return RoleAssignmentApiFp(this.configuration).updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4066
|
+
}
|
|
3831
4067
|
}
|
|
3832
4068
|
|
|
3833
4069
|
|
|
@@ -3866,6 +4102,43 @@ export const UserManagementApiAxiosParamCreator = function (configuration?: Conf
|
|
|
3866
4102
|
|
|
3867
4103
|
|
|
3868
4104
|
|
|
4105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4107
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4108
|
+
|
|
4109
|
+
return {
|
|
4110
|
+
url: toPathString(localVarUrlObj),
|
|
4111
|
+
options: localVarRequestOptions,
|
|
4112
|
+
};
|
|
4113
|
+
},
|
|
4114
|
+
/**
|
|
4115
|
+
* List the users in a given org for the v2 control plane UI
|
|
4116
|
+
* @summary List Users in Org V2
|
|
4117
|
+
* @param {string} orgId
|
|
4118
|
+
* @param {*} [options] Override http request option.
|
|
4119
|
+
* @throws {RequiredError}
|
|
4120
|
+
*/
|
|
4121
|
+
listUsersInOrgV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4122
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4123
|
+
assertParamExists('listUsersInOrgV2', 'orgId', orgId)
|
|
4124
|
+
const localVarPath = `/v2/orgs/{orgId}/users`
|
|
4125
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4127
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4128
|
+
let baseOptions;
|
|
4129
|
+
if (configuration) {
|
|
4130
|
+
baseOptions = configuration.baseOptions;
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4134
|
+
const localVarHeaderParameter = {} as any;
|
|
4135
|
+
const localVarQueryParameter = {} as any;
|
|
4136
|
+
|
|
4137
|
+
// authentication ApiKeyAuth required
|
|
4138
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4139
|
+
|
|
4140
|
+
|
|
4141
|
+
|
|
3869
4142
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3870
4143
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3871
4144
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3935,6 +4208,19 @@ export const UserManagementApiFp = function(configuration?: Configuration) {
|
|
|
3935
4208
|
const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrg']?.[localVarOperationServerIndex]?.url;
|
|
3936
4209
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3937
4210
|
},
|
|
4211
|
+
/**
|
|
4212
|
+
* List the users in a given org for the v2 control plane UI
|
|
4213
|
+
* @summary List Users in Org V2
|
|
4214
|
+
* @param {string} orgId
|
|
4215
|
+
* @param {*} [options] Override http request option.
|
|
4216
|
+
* @throws {RequiredError}
|
|
4217
|
+
*/
|
|
4218
|
+
async listUsersInOrgV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalsInOrgResponse>> {
|
|
4219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsersInOrgV2(orgId, options);
|
|
4220
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4221
|
+
const localVarOperationServerBasePath = operationServerMap['UserManagementApi.listUsersInOrgV2']?.[localVarOperationServerIndex]?.url;
|
|
4222
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4223
|
+
},
|
|
3938
4224
|
/**
|
|
3939
4225
|
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
3940
4226
|
* @summary List Users in Org with teammate permission summary
|
|
@@ -3968,6 +4254,16 @@ export const UserManagementApiFactory = function (configuration?: Configuration,
|
|
|
3968
4254
|
listUsersInOrg(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
|
|
3969
4255
|
return localVarFp.listUsersInOrg(orgId, options).then((request) => request(axios, basePath));
|
|
3970
4256
|
},
|
|
4257
|
+
/**
|
|
4258
|
+
* List the users in a given org for the v2 control plane UI
|
|
4259
|
+
* @summary List Users in Org V2
|
|
4260
|
+
* @param {string} orgId
|
|
4261
|
+
* @param {*} [options] Override http request option.
|
|
4262
|
+
* @throws {RequiredError}
|
|
4263
|
+
*/
|
|
4264
|
+
listUsersInOrgV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalsInOrgResponse> {
|
|
4265
|
+
return localVarFp.listUsersInOrgV2(orgId, options).then((request) => request(axios, basePath));
|
|
4266
|
+
},
|
|
3971
4267
|
/**
|
|
3972
4268
|
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
3973
4269
|
* @summary List Users in Org with teammate permission summary
|
|
@@ -4000,6 +4296,18 @@ export class UserManagementApi extends BaseAPI {
|
|
|
4000
4296
|
return UserManagementApiFp(this.configuration).listUsersInOrg(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4001
4297
|
}
|
|
4002
4298
|
|
|
4299
|
+
/**
|
|
4300
|
+
* List the users in a given org for the v2 control plane UI
|
|
4301
|
+
* @summary List Users in Org V2
|
|
4302
|
+
* @param {string} orgId
|
|
4303
|
+
* @param {*} [options] Override http request option.
|
|
4304
|
+
* @throws {RequiredError}
|
|
4305
|
+
* @memberof UserManagementApi
|
|
4306
|
+
*/
|
|
4307
|
+
public listUsersInOrgV2(orgId: string, options?: RawAxiosRequestConfig) {
|
|
4308
|
+
return UserManagementApiFp(this.configuration).listUsersInOrgV2(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4003
4311
|
/**
|
|
4004
4312
|
* Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
|
|
4005
4313
|
* @summary List Users in Org with teammate permission summary
|
|
@@ -4049,6 +4357,43 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
4049
4357
|
|
|
4050
4358
|
|
|
4051
4359
|
|
|
4360
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4361
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4362
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4363
|
+
|
|
4364
|
+
return {
|
|
4365
|
+
url: toPathString(localVarUrlObj),
|
|
4366
|
+
options: localVarRequestOptions,
|
|
4367
|
+
};
|
|
4368
|
+
},
|
|
4369
|
+
/**
|
|
4370
|
+
* List the v2 materialized permissions for an org
|
|
4371
|
+
* @summary List Org Permissions V2
|
|
4372
|
+
* @param {string} orgId
|
|
4373
|
+
* @param {*} [options] Override http request option.
|
|
4374
|
+
* @throws {RequiredError}
|
|
4375
|
+
*/
|
|
4376
|
+
listOrgPermissionsV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4377
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4378
|
+
assertParamExists('listOrgPermissionsV2', 'orgId', orgId)
|
|
4379
|
+
const localVarPath = `/v2/orgs/{orgId}/permissions`
|
|
4380
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4382
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4383
|
+
let baseOptions;
|
|
4384
|
+
if (configuration) {
|
|
4385
|
+
baseOptions = configuration.baseOptions;
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4389
|
+
const localVarHeaderParameter = {} as any;
|
|
4390
|
+
const localVarQueryParameter = {} as any;
|
|
4391
|
+
|
|
4392
|
+
// authentication ApiKeyAuth required
|
|
4393
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
|
|
4052
4397
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4053
4398
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4054
4399
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4086,6 +4431,43 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
4086
4431
|
|
|
4087
4432
|
|
|
4088
4433
|
|
|
4434
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4435
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4436
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4437
|
+
|
|
4438
|
+
return {
|
|
4439
|
+
url: toPathString(localVarUrlObj),
|
|
4440
|
+
options: localVarRequestOptions,
|
|
4441
|
+
};
|
|
4442
|
+
},
|
|
4443
|
+
/**
|
|
4444
|
+
* List the v2 role assignments for an org
|
|
4445
|
+
* @summary List Org Roles V2
|
|
4446
|
+
* @param {string} orgId
|
|
4447
|
+
* @param {*} [options] Override http request option.
|
|
4448
|
+
* @throws {RequiredError}
|
|
4449
|
+
*/
|
|
4450
|
+
listOrgRolesV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4451
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4452
|
+
assertParamExists('listOrgRolesV2', 'orgId', orgId)
|
|
4453
|
+
const localVarPath = `/v2/orgs/{orgId}/roles`
|
|
4454
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4455
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4456
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4457
|
+
let baseOptions;
|
|
4458
|
+
if (configuration) {
|
|
4459
|
+
baseOptions = configuration.baseOptions;
|
|
4460
|
+
}
|
|
4461
|
+
|
|
4462
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4463
|
+
const localVarHeaderParameter = {} as any;
|
|
4464
|
+
const localVarQueryParameter = {} as any;
|
|
4465
|
+
|
|
4466
|
+
// authentication ApiKeyAuth required
|
|
4467
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4468
|
+
|
|
4469
|
+
|
|
4470
|
+
|
|
4089
4471
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4090
4472
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4091
4473
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4123,6 +4505,43 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
4123
4505
|
|
|
4124
4506
|
|
|
4125
4507
|
|
|
4508
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4510
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4511
|
+
|
|
4512
|
+
return {
|
|
4513
|
+
url: toPathString(localVarUrlObj),
|
|
4514
|
+
options: localVarRequestOptions,
|
|
4515
|
+
};
|
|
4516
|
+
},
|
|
4517
|
+
/**
|
|
4518
|
+
* List the v2 materialized permissions for the current user
|
|
4519
|
+
* @summary List Own Permissions V2
|
|
4520
|
+
* @param {string} orgId
|
|
4521
|
+
* @param {*} [options] Override http request option.
|
|
4522
|
+
* @throws {RequiredError}
|
|
4523
|
+
*/
|
|
4524
|
+
listOwnPermissionsV2: async (orgId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4525
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4526
|
+
assertParamExists('listOwnPermissionsV2', 'orgId', orgId)
|
|
4527
|
+
const localVarPath = `/v2/orgs/{orgId}/user/permissions`
|
|
4528
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4530
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4531
|
+
let baseOptions;
|
|
4532
|
+
if (configuration) {
|
|
4533
|
+
baseOptions = configuration.baseOptions;
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4537
|
+
const localVarHeaderParameter = {} as any;
|
|
4538
|
+
const localVarQueryParameter = {} as any;
|
|
4539
|
+
|
|
4540
|
+
// authentication ApiKeyAuth required
|
|
4541
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4542
|
+
|
|
4543
|
+
|
|
4544
|
+
|
|
4126
4545
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4127
4546
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4128
4547
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4164,6 +4583,47 @@ export const UserPermissionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
4164
4583
|
|
|
4165
4584
|
|
|
4166
4585
|
|
|
4586
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4588
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4589
|
+
|
|
4590
|
+
return {
|
|
4591
|
+
url: toPathString(localVarUrlObj),
|
|
4592
|
+
options: localVarRequestOptions,
|
|
4593
|
+
};
|
|
4594
|
+
},
|
|
4595
|
+
/**
|
|
4596
|
+
* List the v2 materialized permissions for a given user
|
|
4597
|
+
* @summary List User Permissions V2
|
|
4598
|
+
* @param {string} orgId
|
|
4599
|
+
* @param {string} userId
|
|
4600
|
+
* @param {*} [options] Override http request option.
|
|
4601
|
+
* @throws {RequiredError}
|
|
4602
|
+
*/
|
|
4603
|
+
listUserPermissionsV2: async (orgId: string, userId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4604
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4605
|
+
assertParamExists('listUserPermissionsV2', 'orgId', orgId)
|
|
4606
|
+
// verify required parameter 'userId' is not null or undefined
|
|
4607
|
+
assertParamExists('listUserPermissionsV2', 'userId', userId)
|
|
4608
|
+
const localVarPath = `/v2/orgs/{orgId}/user/{userId}/permissions`
|
|
4609
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
4610
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4611
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4612
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4613
|
+
let baseOptions;
|
|
4614
|
+
if (configuration) {
|
|
4615
|
+
baseOptions = configuration.baseOptions;
|
|
4616
|
+
}
|
|
4617
|
+
|
|
4618
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4619
|
+
const localVarHeaderParameter = {} as any;
|
|
4620
|
+
const localVarQueryParameter = {} as any;
|
|
4621
|
+
|
|
4622
|
+
// authentication ApiKeyAuth required
|
|
4623
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4624
|
+
|
|
4625
|
+
|
|
4626
|
+
|
|
4167
4627
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4168
4628
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4169
4629
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4196,6 +4656,19 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
4196
4656
|
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgPermissions']?.[localVarOperationServerIndex]?.url;
|
|
4197
4657
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4198
4658
|
},
|
|
4659
|
+
/**
|
|
4660
|
+
* List the v2 materialized permissions for an org
|
|
4661
|
+
* @summary List Org Permissions V2
|
|
4662
|
+
* @param {string} orgId
|
|
4663
|
+
* @param {*} [options] Override http request option.
|
|
4664
|
+
* @throws {RequiredError}
|
|
4665
|
+
*/
|
|
4666
|
+
async listOrgPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }>> {
|
|
4667
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgPermissionsV2(orgId, options);
|
|
4668
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4669
|
+
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgPermissionsV2']?.[localVarOperationServerIndex]?.url;
|
|
4670
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4671
|
+
},
|
|
4199
4672
|
/**
|
|
4200
4673
|
* List the available roles for the current user
|
|
4201
4674
|
* @summary List Org Roles
|
|
@@ -4209,6 +4682,19 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
4209
4682
|
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRoles']?.[localVarOperationServerIndex]?.url;
|
|
4210
4683
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4211
4684
|
},
|
|
4685
|
+
/**
|
|
4686
|
+
* List the v2 role assignments for an org
|
|
4687
|
+
* @summary List Org Roles V2
|
|
4688
|
+
* @param {string} orgId
|
|
4689
|
+
* @param {*} [options] Override http request option.
|
|
4690
|
+
* @throws {RequiredError}
|
|
4691
|
+
*/
|
|
4692
|
+
async listOrgRolesV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }>> {
|
|
4693
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgRolesV2(orgId, options);
|
|
4694
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4695
|
+
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOrgRolesV2']?.[localVarOperationServerIndex]?.url;
|
|
4696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4697
|
+
},
|
|
4212
4698
|
/**
|
|
4213
4699
|
* List the available permissions for the current user
|
|
4214
4700
|
* @summary List Own Permissions
|
|
@@ -4222,6 +4708,19 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
4222
4708
|
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOwnPermissions']?.[localVarOperationServerIndex]?.url;
|
|
4223
4709
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4224
4710
|
},
|
|
4711
|
+
/**
|
|
4712
|
+
* List the v2 materialized permissions for the current user
|
|
4713
|
+
* @summary List Own Permissions V2
|
|
4714
|
+
* @param {string} orgId
|
|
4715
|
+
* @param {*} [options] Override http request option.
|
|
4716
|
+
* @throws {RequiredError}
|
|
4717
|
+
*/
|
|
4718
|
+
async listOwnPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserPermissionsSuccessResponse>> {
|
|
4719
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnPermissionsV2(orgId, options);
|
|
4720
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4721
|
+
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listOwnPermissionsV2']?.[localVarOperationServerIndex]?.url;
|
|
4722
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4723
|
+
},
|
|
4225
4724
|
/**
|
|
4226
4725
|
* List the available permissions for a given user
|
|
4227
4726
|
* @summary List User Permissions
|
|
@@ -4236,6 +4735,20 @@ export const UserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
4236
4735
|
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listUserPermissions']?.[localVarOperationServerIndex]?.url;
|
|
4237
4736
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4238
4737
|
},
|
|
4738
|
+
/**
|
|
4739
|
+
* List the v2 materialized permissions for a given user
|
|
4740
|
+
* @summary List User Permissions V2
|
|
4741
|
+
* @param {string} orgId
|
|
4742
|
+
* @param {string} userId
|
|
4743
|
+
* @param {*} [options] Override http request option.
|
|
4744
|
+
* @throws {RequiredError}
|
|
4745
|
+
*/
|
|
4746
|
+
async listUserPermissionsV2(orgId: string, userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserPermissionsSuccessResponse>> {
|
|
4747
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPermissionsV2(orgId, userId, options);
|
|
4748
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4749
|
+
const localVarOperationServerBasePath = operationServerMap['UserPermissionsApi.listUserPermissionsV2']?.[localVarOperationServerIndex]?.url;
|
|
4750
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4751
|
+
},
|
|
4239
4752
|
}
|
|
4240
4753
|
};
|
|
4241
4754
|
|
|
@@ -4256,6 +4769,16 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
|
|
|
4256
4769
|
listOrgPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }> {
|
|
4257
4770
|
return localVarFp.listOrgPermissions(orgId, options).then((request) => request(axios, basePath));
|
|
4258
4771
|
},
|
|
4772
|
+
/**
|
|
4773
|
+
* List the v2 materialized permissions for an org
|
|
4774
|
+
* @summary List Org Permissions V2
|
|
4775
|
+
* @param {string} orgId
|
|
4776
|
+
* @param {*} [options] Override http request option.
|
|
4777
|
+
* @throws {RequiredError}
|
|
4778
|
+
*/
|
|
4779
|
+
listOrgPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: { [key: string]: GetUserPermissionsSuccessResponseResourcesValue; }; }> {
|
|
4780
|
+
return localVarFp.listOrgPermissionsV2(orgId, options).then((request) => request(axios, basePath));
|
|
4781
|
+
},
|
|
4259
4782
|
/**
|
|
4260
4783
|
* List the available roles for the current user
|
|
4261
4784
|
* @summary List Org Roles
|
|
@@ -4266,6 +4789,16 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
|
|
|
4266
4789
|
listOrgRoles(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }> {
|
|
4267
4790
|
return localVarFp.listOrgRoles(orgId, options).then((request) => request(axios, basePath));
|
|
4268
4791
|
},
|
|
4792
|
+
/**
|
|
4793
|
+
* List the v2 role assignments for an org
|
|
4794
|
+
* @summary List Org Roles V2
|
|
4795
|
+
* @param {string} orgId
|
|
4796
|
+
* @param {*} [options] Override http request option.
|
|
4797
|
+
* @throws {RequiredError}
|
|
4798
|
+
*/
|
|
4799
|
+
listOrgRolesV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ListOrgRolesSuccessResponseValue; }> {
|
|
4800
|
+
return localVarFp.listOrgRolesV2(orgId, options).then((request) => request(axios, basePath));
|
|
4801
|
+
},
|
|
4269
4802
|
/**
|
|
4270
4803
|
* List the available permissions for the current user
|
|
4271
4804
|
* @summary List Own Permissions
|
|
@@ -4276,6 +4809,16 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
|
|
|
4276
4809
|
listOwnPermissions(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
|
|
4277
4810
|
return localVarFp.listOwnPermissions(orgId, options).then((request) => request(axios, basePath));
|
|
4278
4811
|
},
|
|
4812
|
+
/**
|
|
4813
|
+
* List the v2 materialized permissions for the current user
|
|
4814
|
+
* @summary List Own Permissions V2
|
|
4815
|
+
* @param {string} orgId
|
|
4816
|
+
* @param {*} [options] Override http request option.
|
|
4817
|
+
* @throws {RequiredError}
|
|
4818
|
+
*/
|
|
4819
|
+
listOwnPermissionsV2(orgId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
|
|
4820
|
+
return localVarFp.listOwnPermissionsV2(orgId, options).then((request) => request(axios, basePath));
|
|
4821
|
+
},
|
|
4279
4822
|
/**
|
|
4280
4823
|
* List the available permissions for a given user
|
|
4281
4824
|
* @summary List User Permissions
|
|
@@ -4287,6 +4830,17 @@ export const UserPermissionsApiFactory = function (configuration?: Configuration
|
|
|
4287
4830
|
listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
|
|
4288
4831
|
return localVarFp.listUserPermissions(orgId, userId, options).then((request) => request(axios, basePath));
|
|
4289
4832
|
},
|
|
4833
|
+
/**
|
|
4834
|
+
* List the v2 materialized permissions for a given user
|
|
4835
|
+
* @summary List User Permissions V2
|
|
4836
|
+
* @param {string} orgId
|
|
4837
|
+
* @param {string} userId
|
|
4838
|
+
* @param {*} [options] Override http request option.
|
|
4839
|
+
* @throws {RequiredError}
|
|
4840
|
+
*/
|
|
4841
|
+
listUserPermissionsV2(orgId: string, userId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetUserPermissionsSuccessResponse> {
|
|
4842
|
+
return localVarFp.listUserPermissionsV2(orgId, userId, options).then((request) => request(axios, basePath));
|
|
4843
|
+
},
|
|
4290
4844
|
};
|
|
4291
4845
|
};
|
|
4292
4846
|
|
|
@@ -4309,6 +4863,18 @@ export class UserPermissionsApi extends BaseAPI {
|
|
|
4309
4863
|
return UserPermissionsApiFp(this.configuration).listOrgPermissions(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4310
4864
|
}
|
|
4311
4865
|
|
|
4866
|
+
/**
|
|
4867
|
+
* List the v2 materialized permissions for an org
|
|
4868
|
+
* @summary List Org Permissions V2
|
|
4869
|
+
* @param {string} orgId
|
|
4870
|
+
* @param {*} [options] Override http request option.
|
|
4871
|
+
* @throws {RequiredError}
|
|
4872
|
+
* @memberof UserPermissionsApi
|
|
4873
|
+
*/
|
|
4874
|
+
public listOrgPermissionsV2(orgId: string, options?: RawAxiosRequestConfig) {
|
|
4875
|
+
return UserPermissionsApiFp(this.configuration).listOrgPermissionsV2(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4876
|
+
}
|
|
4877
|
+
|
|
4312
4878
|
/**
|
|
4313
4879
|
* List the available roles for the current user
|
|
4314
4880
|
* @summary List Org Roles
|
|
@@ -4321,6 +4887,18 @@ export class UserPermissionsApi extends BaseAPI {
|
|
|
4321
4887
|
return UserPermissionsApiFp(this.configuration).listOrgRoles(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4322
4888
|
}
|
|
4323
4889
|
|
|
4890
|
+
/**
|
|
4891
|
+
* List the v2 role assignments for an org
|
|
4892
|
+
* @summary List Org Roles V2
|
|
4893
|
+
* @param {string} orgId
|
|
4894
|
+
* @param {*} [options] Override http request option.
|
|
4895
|
+
* @throws {RequiredError}
|
|
4896
|
+
* @memberof UserPermissionsApi
|
|
4897
|
+
*/
|
|
4898
|
+
public listOrgRolesV2(orgId: string, options?: RawAxiosRequestConfig) {
|
|
4899
|
+
return UserPermissionsApiFp(this.configuration).listOrgRolesV2(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4324
4902
|
/**
|
|
4325
4903
|
* List the available permissions for the current user
|
|
4326
4904
|
* @summary List Own Permissions
|
|
@@ -4333,6 +4911,18 @@ export class UserPermissionsApi extends BaseAPI {
|
|
|
4333
4911
|
return UserPermissionsApiFp(this.configuration).listOwnPermissions(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4334
4912
|
}
|
|
4335
4913
|
|
|
4914
|
+
/**
|
|
4915
|
+
* List the v2 materialized permissions for the current user
|
|
4916
|
+
* @summary List Own Permissions V2
|
|
4917
|
+
* @param {string} orgId
|
|
4918
|
+
* @param {*} [options] Override http request option.
|
|
4919
|
+
* @throws {RequiredError}
|
|
4920
|
+
* @memberof UserPermissionsApi
|
|
4921
|
+
*/
|
|
4922
|
+
public listOwnPermissionsV2(orgId: string, options?: RawAxiosRequestConfig) {
|
|
4923
|
+
return UserPermissionsApiFp(this.configuration).listOwnPermissionsV2(orgId, options).then((request) => request(this.axios, this.basePath));
|
|
4924
|
+
}
|
|
4925
|
+
|
|
4336
4926
|
/**
|
|
4337
4927
|
* List the available permissions for a given user
|
|
4338
4928
|
* @summary List User Permissions
|
|
@@ -4345,6 +4935,19 @@ export class UserPermissionsApi extends BaseAPI {
|
|
|
4345
4935
|
public listUserPermissions(orgId: string, userId: string, options?: RawAxiosRequestConfig) {
|
|
4346
4936
|
return UserPermissionsApiFp(this.configuration).listUserPermissions(orgId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
4347
4937
|
}
|
|
4938
|
+
|
|
4939
|
+
/**
|
|
4940
|
+
* List the v2 materialized permissions for a given user
|
|
4941
|
+
* @summary List User Permissions V2
|
|
4942
|
+
* @param {string} orgId
|
|
4943
|
+
* @param {string} userId
|
|
4944
|
+
* @param {*} [options] Override http request option.
|
|
4945
|
+
* @throws {RequiredError}
|
|
4946
|
+
* @memberof UserPermissionsApi
|
|
4947
|
+
*/
|
|
4948
|
+
public listUserPermissionsV2(orgId: string, userId: string, options?: RawAxiosRequestConfig) {
|
|
4949
|
+
return UserPermissionsApiFp(this.configuration).listUserPermissionsV2(orgId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
4950
|
+
}
|
|
4348
4951
|
}
|
|
4349
4952
|
|
|
4350
4953
|
|