@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/dist/api.js CHANGED
@@ -84,8 +84,8 @@ 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.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.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = exports.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = exports.ListOrgRolesSuccessResponseValueAnyOfRolesEnum = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.IsInRoleRequestCheckModeEnum = exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
88
- exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = void 0;
87
+ 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.V2UiRoleAssignmentRequestBodyAppAccessLevelEnum = exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = exports.RoleNames = exports.RevokeRoleRequestBodyRoleEnum = exports.RevokeForbiddenRoleRequestBodyCompensatingRoleEnum = exports.PrincipalInOrgWithTeammatePermissionSummaryTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueAnyOfValueResourceTypeEnum = exports.ListOrgRolesSuccessResponseValueAnyOfRolesEnum = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.IsInRoleRequestCheckModeEnum = exports.GrantTeammateAccessRequestBodyAppAccessLevelEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPrincipalTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerResourceTypeEnum = exports.GetPrincipalRolesSuccessResponseRolesInnerPolicyTypeEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AssignRoleRequestBodyRoleEnum = void 0;
88
+ exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = void 0;
89
89
  var axios_1 = require("axios");
90
90
  // Some imports not used depending on template conditions
91
91
  // @ts-ignore
@@ -596,6 +596,14 @@ exports.UpdateTeammateAccessRequestBodyAppAccessLevelEnum = {
596
596
  FinanceManager: 'FinanceManager',
597
597
  Integrator: 'Integrator'
598
598
  };
599
+ exports.V2UiRoleAssignmentRequestBodyAppAccessLevelEnum = {
600
+ Owner: 'Owner',
601
+ ManagedOwner: 'ManagedOwner',
602
+ PropertyOwner: 'PropertyOwner',
603
+ PropertyManager: 'PropertyManager',
604
+ FinanceManager: 'FinanceManager',
605
+ Integrator: 'Integrator'
606
+ };
599
607
  /**
600
608
  * AuthenticationApi - axios parameter creator
601
609
  * @export
@@ -2244,6 +2252,58 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2244
2252
  });
2245
2253
  });
2246
2254
  },
2255
+ /**
2256
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
2257
+ * @summary Grant v2 teammate access to a user
2258
+ * @param {string} orgId
2259
+ * @param {string} userId Target Flipdish user id (numeric string)
2260
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ grantTeammateAccessV2: function (orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1) {
2265
+ var args_1 = [];
2266
+ for (var _i = 3; _i < arguments.length; _i++) {
2267
+ args_1[_i - 3] = arguments[_i];
2268
+ }
2269
+ return __awaiter(_this, __spreadArray([orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
2270
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2271
+ if (options === void 0) { options = {}; }
2272
+ return __generator(this, function (_a) {
2273
+ switch (_a.label) {
2274
+ case 0:
2275
+ // verify required parameter 'orgId' is not null or undefined
2276
+ (0, common_1.assertParamExists)('grantTeammateAccessV2', 'orgId', orgId);
2277
+ // verify required parameter 'userId' is not null or undefined
2278
+ (0, common_1.assertParamExists)('grantTeammateAccessV2', 'userId', userId);
2279
+ localVarPath = "/v2/orgs/{orgId}/users/{userId}/grantTeammateAccess"
2280
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
2281
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
2282
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2283
+ if (configuration) {
2284
+ baseOptions = configuration.baseOptions;
2285
+ }
2286
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2287
+ localVarHeaderParameter = {};
2288
+ localVarQueryParameter = {};
2289
+ // authentication ApiKeyAuth required
2290
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2291
+ case 1:
2292
+ // authentication ApiKeyAuth required
2293
+ _a.sent();
2294
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2295
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2296
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2297
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2298
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration);
2299
+ return [2 /*return*/, {
2300
+ url: (0, common_1.toPathString)(localVarUrlObj),
2301
+ options: localVarRequestOptions,
2302
+ }];
2303
+ }
2304
+ });
2305
+ });
2306
+ },
2247
2307
  /**
2248
2308
  * Rematerializes a V2 role assignment and applies the resulting policy assignments
2249
2309
  * @summary Rematerialize V2 Role Assignment
@@ -2440,6 +2500,58 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2440
2500
  });
2441
2501
  });
2442
2502
  },
2503
+ /**
2504
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
2505
+ * @summary Update v2 teammate access for a user
2506
+ * @param {string} orgId
2507
+ * @param {string} userId Target Flipdish user id (numeric string)
2508
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2509
+ * @param {*} [options] Override http request option.
2510
+ * @throws {RequiredError}
2511
+ */
2512
+ updateTeammateAccessV2: function (orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1) {
2513
+ var args_1 = [];
2514
+ for (var _i = 3; _i < arguments.length; _i++) {
2515
+ args_1[_i - 3] = arguments[_i];
2516
+ }
2517
+ return __awaiter(_this, __spreadArray([orgId_1, userId_1, v2UiRoleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
2518
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2519
+ if (options === void 0) { options = {}; }
2520
+ return __generator(this, function (_a) {
2521
+ switch (_a.label) {
2522
+ case 0:
2523
+ // verify required parameter 'orgId' is not null or undefined
2524
+ (0, common_1.assertParamExists)('updateTeammateAccessV2', 'orgId', orgId);
2525
+ // verify required parameter 'userId' is not null or undefined
2526
+ (0, common_1.assertParamExists)('updateTeammateAccessV2', 'userId', userId);
2527
+ localVarPath = "/v2/orgs/{orgId}/users/{userId}/updateTeammateAccess"
2528
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
2529
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
2530
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2531
+ if (configuration) {
2532
+ baseOptions = configuration.baseOptions;
2533
+ }
2534
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2535
+ localVarHeaderParameter = {};
2536
+ localVarQueryParameter = {};
2537
+ // authentication ApiKeyAuth required
2538
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2539
+ case 1:
2540
+ // authentication ApiKeyAuth required
2541
+ _a.sent();
2542
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2543
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2544
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2545
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2546
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2UiRoleAssignmentRequestBody, localVarRequestOptions, configuration);
2547
+ return [2 /*return*/, {
2548
+ url: (0, common_1.toPathString)(localVarUrlObj),
2549
+ options: localVarRequestOptions,
2550
+ }];
2551
+ }
2552
+ });
2553
+ });
2554
+ },
2443
2555
  };
2444
2556
  };
2445
2557
  exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
@@ -2523,6 +2635,31 @@ var RoleAssignmentApiFp = function (configuration) {
2523
2635
  });
2524
2636
  });
2525
2637
  },
2638
+ /**
2639
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
2640
+ * @summary Grant v2 teammate access to a user
2641
+ * @param {string} orgId
2642
+ * @param {string} userId Target Flipdish user id (numeric string)
2643
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2644
+ * @param {*} [options] Override http request option.
2645
+ * @throws {RequiredError}
2646
+ */
2647
+ grantTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
2648
+ return __awaiter(this, void 0, void 0, function () {
2649
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2650
+ var _a, _b, _c;
2651
+ return __generator(this, function (_d) {
2652
+ switch (_d.label) {
2653
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options)];
2654
+ case 1:
2655
+ localVarAxiosArgs = _d.sent();
2656
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2657
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.grantTeammateAccessV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2658
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2659
+ }
2660
+ });
2661
+ });
2662
+ },
2526
2663
  /**
2527
2664
  * Rematerializes a V2 role assignment and applies the resulting policy assignments
2528
2665
  * @summary Rematerialize V2 Role Assignment
@@ -2620,6 +2757,31 @@ var RoleAssignmentApiFp = function (configuration) {
2620
2757
  });
2621
2758
  });
2622
2759
  },
2760
+ /**
2761
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
2762
+ * @summary Update v2 teammate access for a user
2763
+ * @param {string} orgId
2764
+ * @param {string} userId Target Flipdish user id (numeric string)
2765
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2766
+ * @param {*} [options] Override http request option.
2767
+ * @throws {RequiredError}
2768
+ */
2769
+ updateTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
2770
+ return __awaiter(this, void 0, void 0, function () {
2771
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2772
+ var _a, _b, _c;
2773
+ return __generator(this, function (_d) {
2774
+ switch (_d.label) {
2775
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options)];
2776
+ case 1:
2777
+ localVarAxiosArgs = _d.sent();
2778
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2779
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.updateTeammateAccessV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2780
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2781
+ }
2782
+ });
2783
+ });
2784
+ },
2623
2785
  };
2624
2786
  };
2625
2787
  exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
@@ -2664,6 +2826,18 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
2664
2826
  grantTeammateAccess: function (orgId, userId, grantTeammateAccessRequestBody, options) {
2665
2827
  return localVarFp.grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
2666
2828
  },
2829
+ /**
2830
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
2831
+ * @summary Grant v2 teammate access to a user
2832
+ * @param {string} orgId
2833
+ * @param {string} userId Target Flipdish user id (numeric string)
2834
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2835
+ * @param {*} [options] Override http request option.
2836
+ * @throws {RequiredError}
2837
+ */
2838
+ grantTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
2839
+ return localVarFp.grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
2840
+ },
2667
2841
  /**
2668
2842
  * Rematerializes a V2 role assignment and applies the resulting policy assignments
2669
2843
  * @summary Rematerialize V2 Role Assignment
@@ -2709,6 +2883,18 @@ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
2709
2883
  updateTeammateAccess: function (orgId, userId, updateTeammateAccessRequestBody, options) {
2710
2884
  return localVarFp.updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(axios, basePath); });
2711
2885
  },
2886
+ /**
2887
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
2888
+ * @summary Update v2 teammate access for a user
2889
+ * @param {string} orgId
2890
+ * @param {string} userId Target Flipdish user id (numeric string)
2891
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2892
+ * @param {*} [options] Override http request option.
2893
+ * @throws {RequiredError}
2894
+ */
2895
+ updateTeammateAccessV2: function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
2896
+ return localVarFp.updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
2897
+ },
2712
2898
  };
2713
2899
  };
2714
2900
  exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
@@ -2763,6 +2949,20 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
2763
2949
  var _this = this;
2764
2950
  return (0, exports.RoleAssignmentApiFp)(this.configuration).grantTeammateAccess(orgId, userId, grantTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2765
2951
  };
2952
+ /**
2953
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
2954
+ * @summary Grant v2 teammate access to a user
2955
+ * @param {string} orgId
2956
+ * @param {string} userId Target Flipdish user id (numeric string)
2957
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
2958
+ * @param {*} [options] Override http request option.
2959
+ * @throws {RequiredError}
2960
+ * @memberof RoleAssignmentApi
2961
+ */
2962
+ RoleAssignmentApi.prototype.grantTeammateAccessV2 = function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
2963
+ var _this = this;
2964
+ return (0, exports.RoleAssignmentApiFp)(this.configuration).grantTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2965
+ };
2766
2966
  /**
2767
2967
  * Rematerializes a V2 role assignment and applies the resulting policy assignments
2768
2968
  * @summary Rematerialize V2 Role Assignment
@@ -2816,6 +3016,20 @@ var RoleAssignmentApi = /** @class */ (function (_super) {
2816
3016
  var _this = this;
2817
3017
  return (0, exports.RoleAssignmentApiFp)(this.configuration).updateTeammateAccess(orgId, userId, updateTeammateAccessRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
2818
3018
  };
3019
+ /**
3020
+ * Apply a v2 UI role assignment without invoking legacy teammate/Zeus role assignment flows.
3021
+ * @summary Update v2 teammate access for a user
3022
+ * @param {string} orgId
3023
+ * @param {string} userId Target Flipdish user id (numeric string)
3024
+ * @param {V2UiRoleAssignmentRequestBody} [v2UiRoleAssignmentRequestBody]
3025
+ * @param {*} [options] Override http request option.
3026
+ * @throws {RequiredError}
3027
+ * @memberof RoleAssignmentApi
3028
+ */
3029
+ RoleAssignmentApi.prototype.updateTeammateAccessV2 = function (orgId, userId, v2UiRoleAssignmentRequestBody, options) {
3030
+ var _this = this;
3031
+ return (0, exports.RoleAssignmentApiFp)(this.configuration).updateTeammateAccessV2(orgId, userId, v2UiRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3032
+ };
2819
3033
  return RoleAssignmentApi;
2820
3034
  }(base_1.BaseAPI));
2821
3035
  exports.RoleAssignmentApi = RoleAssignmentApi;
@@ -2871,6 +3085,51 @@ var UserManagementApiAxiosParamCreator = function (configuration) {
2871
3085
  });
2872
3086
  });
2873
3087
  },
3088
+ /**
3089
+ * List the users in a given org for the v2 control plane UI
3090
+ * @summary List Users in Org V2
3091
+ * @param {string} orgId
3092
+ * @param {*} [options] Override http request option.
3093
+ * @throws {RequiredError}
3094
+ */
3095
+ listUsersInOrgV2: function (orgId_1) {
3096
+ var args_1 = [];
3097
+ for (var _i = 1; _i < arguments.length; _i++) {
3098
+ args_1[_i - 1] = arguments[_i];
3099
+ }
3100
+ return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
3101
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3102
+ if (options === void 0) { options = {}; }
3103
+ return __generator(this, function (_a) {
3104
+ switch (_a.label) {
3105
+ case 0:
3106
+ // verify required parameter 'orgId' is not null or undefined
3107
+ (0, common_1.assertParamExists)('listUsersInOrgV2', 'orgId', orgId);
3108
+ localVarPath = "/v2/orgs/{orgId}/users"
3109
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3110
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3111
+ if (configuration) {
3112
+ baseOptions = configuration.baseOptions;
3113
+ }
3114
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3115
+ localVarHeaderParameter = {};
3116
+ localVarQueryParameter = {};
3117
+ // authentication ApiKeyAuth required
3118
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3119
+ case 1:
3120
+ // authentication ApiKeyAuth required
3121
+ _a.sent();
3122
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3123
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3124
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3125
+ return [2 /*return*/, {
3126
+ url: (0, common_1.toPathString)(localVarUrlObj),
3127
+ options: localVarRequestOptions,
3128
+ }];
3129
+ }
3130
+ });
3131
+ });
3132
+ },
2874
3133
  /**
2875
3134
  * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
2876
3135
  * @summary List Users in Org with teammate permission summary
@@ -2949,6 +3208,29 @@ var UserManagementApiFp = function (configuration) {
2949
3208
  });
2950
3209
  });
2951
3210
  },
3211
+ /**
3212
+ * List the users in a given org for the v2 control plane UI
3213
+ * @summary List Users in Org V2
3214
+ * @param {string} orgId
3215
+ * @param {*} [options] Override http request option.
3216
+ * @throws {RequiredError}
3217
+ */
3218
+ listUsersInOrgV2: function (orgId, options) {
3219
+ return __awaiter(this, void 0, void 0, function () {
3220
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3221
+ var _a, _b, _c;
3222
+ return __generator(this, function (_d) {
3223
+ switch (_d.label) {
3224
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsersInOrgV2(orgId, options)];
3225
+ case 1:
3226
+ localVarAxiosArgs = _d.sent();
3227
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3228
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserManagementApi.listUsersInOrgV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3229
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3230
+ }
3231
+ });
3232
+ });
3233
+ },
2952
3234
  /**
2953
3235
  * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
2954
3236
  * @summary List Users in Org with teammate permission summary
@@ -2992,6 +3274,16 @@ var UserManagementApiFactory = function (configuration, basePath, axios) {
2992
3274
  listUsersInOrg: function (orgId, options) {
2993
3275
  return localVarFp.listUsersInOrg(orgId, options).then(function (request) { return request(axios, basePath); });
2994
3276
  },
3277
+ /**
3278
+ * List the users in a given org for the v2 control plane UI
3279
+ * @summary List Users in Org V2
3280
+ * @param {string} orgId
3281
+ * @param {*} [options] Override http request option.
3282
+ * @throws {RequiredError}
3283
+ */
3284
+ listUsersInOrgV2: function (orgId, options) {
3285
+ return localVarFp.listUsersInOrgV2(orgId, options).then(function (request) { return request(axios, basePath); });
3286
+ },
2995
3287
  /**
2996
3288
  * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
2997
3289
  * @summary List Users in Org with teammate permission summary
@@ -3028,6 +3320,18 @@ var UserManagementApi = /** @class */ (function (_super) {
3028
3320
  var _this = this;
3029
3321
  return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrg(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3030
3322
  };
3323
+ /**
3324
+ * List the users in a given org for the v2 control plane UI
3325
+ * @summary List Users in Org V2
3326
+ * @param {string} orgId
3327
+ * @param {*} [options] Override http request option.
3328
+ * @throws {RequiredError}
3329
+ * @memberof UserManagementApi
3330
+ */
3331
+ UserManagementApi.prototype.listUsersInOrgV2 = function (orgId, options) {
3332
+ var _this = this;
3333
+ return (0, exports.UserManagementApiFp)(this.configuration).listUsersInOrgV2(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3334
+ };
3031
3335
  /**
3032
3336
  * Same principals as list users, plus roleDisplay and isCustomised per principal (extra Dynamo reads for compensating roles and granular assignments).
3033
3337
  * @summary List Users in Org with teammate permission summary
@@ -3096,13 +3400,13 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
3096
3400
  });
3097
3401
  },
3098
3402
  /**
3099
- * List the available roles for the current user
3100
- * @summary List Org Roles
3403
+ * List the v2 materialized permissions for an org
3404
+ * @summary List Org Permissions V2
3101
3405
  * @param {string} orgId
3102
3406
  * @param {*} [options] Override http request option.
3103
3407
  * @throws {RequiredError}
3104
3408
  */
3105
- listOrgRoles: function (orgId_1) {
3409
+ listOrgPermissionsV2: function (orgId_1) {
3106
3410
  var args_1 = [];
3107
3411
  for (var _i = 1; _i < arguments.length; _i++) {
3108
3412
  args_1[_i - 1] = arguments[_i];
@@ -3114,8 +3418,8 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
3114
3418
  switch (_a.label) {
3115
3419
  case 0:
3116
3420
  // verify required parameter 'orgId' is not null or undefined
3117
- (0, common_1.assertParamExists)('listOrgRoles', 'orgId', orgId);
3118
- localVarPath = "/orgs/{orgId}/roles"
3421
+ (0, common_1.assertParamExists)('listOrgPermissionsV2', 'orgId', orgId);
3422
+ localVarPath = "/v2/orgs/{orgId}/permissions"
3119
3423
  .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3120
3424
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3121
3425
  if (configuration) {
@@ -3141,13 +3445,13 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
3141
3445
  });
3142
3446
  },
3143
3447
  /**
3144
- * List the available permissions for the current user
3145
- * @summary List Own Permissions
3448
+ * List the available roles for the current user
3449
+ * @summary List Org Roles
3146
3450
  * @param {string} orgId
3147
3451
  * @param {*} [options] Override http request option.
3148
3452
  * @throws {RequiredError}
3149
3453
  */
3150
- listOwnPermissions: function (orgId_1) {
3454
+ listOrgRoles: function (orgId_1) {
3151
3455
  var args_1 = [];
3152
3456
  for (var _i = 1; _i < arguments.length; _i++) {
3153
3457
  args_1[_i - 1] = arguments[_i];
@@ -3159,8 +3463,8 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
3159
3463
  switch (_a.label) {
3160
3464
  case 0:
3161
3465
  // verify required parameter 'orgId' is not null or undefined
3162
- (0, common_1.assertParamExists)('listOwnPermissions', 'orgId', orgId);
3163
- localVarPath = "/orgs/{orgId}/user/permissions"
3466
+ (0, common_1.assertParamExists)('listOrgRoles', 'orgId', orgId);
3467
+ localVarPath = "/orgs/{orgId}/roles"
3164
3468
  .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3165
3469
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3166
3470
  if (configuration) {
@@ -3186,17 +3490,152 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
3186
3490
  });
3187
3491
  },
3188
3492
  /**
3189
- * List the available permissions for a given user
3190
- * @summary List User Permissions
3493
+ * List the v2 role assignments for an org
3494
+ * @summary List Org Roles V2
3191
3495
  * @param {string} orgId
3192
- * @param {string} userId
3193
3496
  * @param {*} [options] Override http request option.
3194
3497
  * @throws {RequiredError}
3195
3498
  */
3196
- listUserPermissions: function (orgId_1, userId_1) {
3499
+ listOrgRolesV2: function (orgId_1) {
3197
3500
  var args_1 = [];
3198
- for (var _i = 2; _i < arguments.length; _i++) {
3199
- args_1[_i - 2] = arguments[_i];
3501
+ for (var _i = 1; _i < arguments.length; _i++) {
3502
+ args_1[_i - 1] = arguments[_i];
3503
+ }
3504
+ return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
3505
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3506
+ if (options === void 0) { options = {}; }
3507
+ return __generator(this, function (_a) {
3508
+ switch (_a.label) {
3509
+ case 0:
3510
+ // verify required parameter 'orgId' is not null or undefined
3511
+ (0, common_1.assertParamExists)('listOrgRolesV2', 'orgId', orgId);
3512
+ localVarPath = "/v2/orgs/{orgId}/roles"
3513
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3514
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3515
+ if (configuration) {
3516
+ baseOptions = configuration.baseOptions;
3517
+ }
3518
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3519
+ localVarHeaderParameter = {};
3520
+ localVarQueryParameter = {};
3521
+ // authentication ApiKeyAuth required
3522
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3523
+ case 1:
3524
+ // authentication ApiKeyAuth required
3525
+ _a.sent();
3526
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3527
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3528
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3529
+ return [2 /*return*/, {
3530
+ url: (0, common_1.toPathString)(localVarUrlObj),
3531
+ options: localVarRequestOptions,
3532
+ }];
3533
+ }
3534
+ });
3535
+ });
3536
+ },
3537
+ /**
3538
+ * List the available permissions for the current user
3539
+ * @summary List Own Permissions
3540
+ * @param {string} orgId
3541
+ * @param {*} [options] Override http request option.
3542
+ * @throws {RequiredError}
3543
+ */
3544
+ listOwnPermissions: function (orgId_1) {
3545
+ var args_1 = [];
3546
+ for (var _i = 1; _i < arguments.length; _i++) {
3547
+ args_1[_i - 1] = arguments[_i];
3548
+ }
3549
+ return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
3550
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3551
+ if (options === void 0) { options = {}; }
3552
+ return __generator(this, function (_a) {
3553
+ switch (_a.label) {
3554
+ case 0:
3555
+ // verify required parameter 'orgId' is not null or undefined
3556
+ (0, common_1.assertParamExists)('listOwnPermissions', 'orgId', orgId);
3557
+ localVarPath = "/orgs/{orgId}/user/permissions"
3558
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3559
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3560
+ if (configuration) {
3561
+ baseOptions = configuration.baseOptions;
3562
+ }
3563
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3564
+ localVarHeaderParameter = {};
3565
+ localVarQueryParameter = {};
3566
+ // authentication ApiKeyAuth required
3567
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3568
+ case 1:
3569
+ // authentication ApiKeyAuth required
3570
+ _a.sent();
3571
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3572
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3573
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3574
+ return [2 /*return*/, {
3575
+ url: (0, common_1.toPathString)(localVarUrlObj),
3576
+ options: localVarRequestOptions,
3577
+ }];
3578
+ }
3579
+ });
3580
+ });
3581
+ },
3582
+ /**
3583
+ * List the v2 materialized permissions for the current user
3584
+ * @summary List Own Permissions V2
3585
+ * @param {string} orgId
3586
+ * @param {*} [options] Override http request option.
3587
+ * @throws {RequiredError}
3588
+ */
3589
+ listOwnPermissionsV2: function (orgId_1) {
3590
+ var args_1 = [];
3591
+ for (var _i = 1; _i < arguments.length; _i++) {
3592
+ args_1[_i - 1] = arguments[_i];
3593
+ }
3594
+ return __awaiter(_this, __spreadArray([orgId_1], args_1, true), void 0, function (orgId, options) {
3595
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3596
+ if (options === void 0) { options = {}; }
3597
+ return __generator(this, function (_a) {
3598
+ switch (_a.label) {
3599
+ case 0:
3600
+ // verify required parameter 'orgId' is not null or undefined
3601
+ (0, common_1.assertParamExists)('listOwnPermissionsV2', 'orgId', orgId);
3602
+ localVarPath = "/v2/orgs/{orgId}/user/permissions"
3603
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3604
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3605
+ if (configuration) {
3606
+ baseOptions = configuration.baseOptions;
3607
+ }
3608
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3609
+ localVarHeaderParameter = {};
3610
+ localVarQueryParameter = {};
3611
+ // authentication ApiKeyAuth required
3612
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3613
+ case 1:
3614
+ // authentication ApiKeyAuth required
3615
+ _a.sent();
3616
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3617
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3618
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3619
+ return [2 /*return*/, {
3620
+ url: (0, common_1.toPathString)(localVarUrlObj),
3621
+ options: localVarRequestOptions,
3622
+ }];
3623
+ }
3624
+ });
3625
+ });
3626
+ },
3627
+ /**
3628
+ * List the available permissions for a given user
3629
+ * @summary List User Permissions
3630
+ * @param {string} orgId
3631
+ * @param {string} userId
3632
+ * @param {*} [options] Override http request option.
3633
+ * @throws {RequiredError}
3634
+ */
3635
+ listUserPermissions: function (orgId_1, userId_1) {
3636
+ var args_1 = [];
3637
+ for (var _i = 2; _i < arguments.length; _i++) {
3638
+ args_1[_i - 2] = arguments[_i];
3200
3639
  }
3201
3640
  return __awaiter(_this, __spreadArray([orgId_1, userId_1], args_1, true), void 0, function (orgId, userId, options) {
3202
3641
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -3234,6 +3673,55 @@ var UserPermissionsApiAxiosParamCreator = function (configuration) {
3234
3673
  });
3235
3674
  });
3236
3675
  },
3676
+ /**
3677
+ * List the v2 materialized permissions for a given user
3678
+ * @summary List User Permissions V2
3679
+ * @param {string} orgId
3680
+ * @param {string} userId
3681
+ * @param {*} [options] Override http request option.
3682
+ * @throws {RequiredError}
3683
+ */
3684
+ listUserPermissionsV2: function (orgId_1, userId_1) {
3685
+ var args_1 = [];
3686
+ for (var _i = 2; _i < arguments.length; _i++) {
3687
+ args_1[_i - 2] = arguments[_i];
3688
+ }
3689
+ return __awaiter(_this, __spreadArray([orgId_1, userId_1], args_1, true), void 0, function (orgId, userId, options) {
3690
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3691
+ if (options === void 0) { options = {}; }
3692
+ return __generator(this, function (_a) {
3693
+ switch (_a.label) {
3694
+ case 0:
3695
+ // verify required parameter 'orgId' is not null or undefined
3696
+ (0, common_1.assertParamExists)('listUserPermissionsV2', 'orgId', orgId);
3697
+ // verify required parameter 'userId' is not null or undefined
3698
+ (0, common_1.assertParamExists)('listUserPermissionsV2', 'userId', userId);
3699
+ localVarPath = "/v2/orgs/{orgId}/user/{userId}/permissions"
3700
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)))
3701
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
3702
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3703
+ if (configuration) {
3704
+ baseOptions = configuration.baseOptions;
3705
+ }
3706
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3707
+ localVarHeaderParameter = {};
3708
+ localVarQueryParameter = {};
3709
+ // authentication ApiKeyAuth required
3710
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3711
+ case 1:
3712
+ // authentication ApiKeyAuth required
3713
+ _a.sent();
3714
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3715
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3716
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3717
+ return [2 /*return*/, {
3718
+ url: (0, common_1.toPathString)(localVarUrlObj),
3719
+ options: localVarRequestOptions,
3720
+ }];
3721
+ }
3722
+ });
3723
+ });
3724
+ },
3237
3725
  };
3238
3726
  };
3239
3727
  exports.UserPermissionsApiAxiosParamCreator = UserPermissionsApiAxiosParamCreator;
@@ -3267,6 +3755,29 @@ var UserPermissionsApiFp = function (configuration) {
3267
3755
  });
3268
3756
  });
3269
3757
  },
3758
+ /**
3759
+ * List the v2 materialized permissions for an org
3760
+ * @summary List Org Permissions V2
3761
+ * @param {string} orgId
3762
+ * @param {*} [options] Override http request option.
3763
+ * @throws {RequiredError}
3764
+ */
3765
+ listOrgPermissionsV2: function (orgId, options) {
3766
+ return __awaiter(this, void 0, void 0, function () {
3767
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3768
+ var _a, _b, _c;
3769
+ return __generator(this, function (_d) {
3770
+ switch (_d.label) {
3771
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgPermissionsV2(orgId, options)];
3772
+ case 1:
3773
+ localVarAxiosArgs = _d.sent();
3774
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3775
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgPermissionsV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3776
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3777
+ }
3778
+ });
3779
+ });
3780
+ },
3270
3781
  /**
3271
3782
  * List the available roles for the current user
3272
3783
  * @summary List Org Roles
@@ -3290,6 +3801,29 @@ var UserPermissionsApiFp = function (configuration) {
3290
3801
  });
3291
3802
  });
3292
3803
  },
3804
+ /**
3805
+ * List the v2 role assignments for an org
3806
+ * @summary List Org Roles V2
3807
+ * @param {string} orgId
3808
+ * @param {*} [options] Override http request option.
3809
+ * @throws {RequiredError}
3810
+ */
3811
+ listOrgRolesV2: function (orgId, options) {
3812
+ return __awaiter(this, void 0, void 0, function () {
3813
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3814
+ var _a, _b, _c;
3815
+ return __generator(this, function (_d) {
3816
+ switch (_d.label) {
3817
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgRolesV2(orgId, options)];
3818
+ case 1:
3819
+ localVarAxiosArgs = _d.sent();
3820
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3821
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOrgRolesV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3822
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3823
+ }
3824
+ });
3825
+ });
3826
+ },
3293
3827
  /**
3294
3828
  * List the available permissions for the current user
3295
3829
  * @summary List Own Permissions
@@ -3313,6 +3847,29 @@ var UserPermissionsApiFp = function (configuration) {
3313
3847
  });
3314
3848
  });
3315
3849
  },
3850
+ /**
3851
+ * List the v2 materialized permissions for the current user
3852
+ * @summary List Own Permissions V2
3853
+ * @param {string} orgId
3854
+ * @param {*} [options] Override http request option.
3855
+ * @throws {RequiredError}
3856
+ */
3857
+ listOwnPermissionsV2: function (orgId, options) {
3858
+ return __awaiter(this, void 0, void 0, function () {
3859
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3860
+ var _a, _b, _c;
3861
+ return __generator(this, function (_d) {
3862
+ switch (_d.label) {
3863
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOwnPermissionsV2(orgId, options)];
3864
+ case 1:
3865
+ localVarAxiosArgs = _d.sent();
3866
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3867
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listOwnPermissionsV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3868
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3869
+ }
3870
+ });
3871
+ });
3872
+ },
3316
3873
  /**
3317
3874
  * List the available permissions for a given user
3318
3875
  * @summary List User Permissions
@@ -3337,6 +3894,30 @@ var UserPermissionsApiFp = function (configuration) {
3337
3894
  });
3338
3895
  });
3339
3896
  },
3897
+ /**
3898
+ * List the v2 materialized permissions for a given user
3899
+ * @summary List User Permissions V2
3900
+ * @param {string} orgId
3901
+ * @param {string} userId
3902
+ * @param {*} [options] Override http request option.
3903
+ * @throws {RequiredError}
3904
+ */
3905
+ listUserPermissionsV2: function (orgId, userId, options) {
3906
+ return __awaiter(this, void 0, void 0, function () {
3907
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3908
+ var _a, _b, _c;
3909
+ return __generator(this, function (_d) {
3910
+ switch (_d.label) {
3911
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUserPermissionsV2(orgId, userId, options)];
3912
+ case 1:
3913
+ localVarAxiosArgs = _d.sent();
3914
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3915
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPermissionsApi.listUserPermissionsV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3916
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3917
+ }
3918
+ });
3919
+ });
3920
+ },
3340
3921
  };
3341
3922
  };
3342
3923
  exports.UserPermissionsApiFp = UserPermissionsApiFp;
@@ -3357,6 +3938,16 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
3357
3938
  listOrgPermissions: function (orgId, options) {
3358
3939
  return localVarFp.listOrgPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
3359
3940
  },
3941
+ /**
3942
+ * List the v2 materialized permissions for an org
3943
+ * @summary List Org Permissions V2
3944
+ * @param {string} orgId
3945
+ * @param {*} [options] Override http request option.
3946
+ * @throws {RequiredError}
3947
+ */
3948
+ listOrgPermissionsV2: function (orgId, options) {
3949
+ return localVarFp.listOrgPermissionsV2(orgId, options).then(function (request) { return request(axios, basePath); });
3950
+ },
3360
3951
  /**
3361
3952
  * List the available roles for the current user
3362
3953
  * @summary List Org Roles
@@ -3367,6 +3958,16 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
3367
3958
  listOrgRoles: function (orgId, options) {
3368
3959
  return localVarFp.listOrgRoles(orgId, options).then(function (request) { return request(axios, basePath); });
3369
3960
  },
3961
+ /**
3962
+ * List the v2 role assignments for an org
3963
+ * @summary List Org Roles V2
3964
+ * @param {string} orgId
3965
+ * @param {*} [options] Override http request option.
3966
+ * @throws {RequiredError}
3967
+ */
3968
+ listOrgRolesV2: function (orgId, options) {
3969
+ return localVarFp.listOrgRolesV2(orgId, options).then(function (request) { return request(axios, basePath); });
3970
+ },
3370
3971
  /**
3371
3972
  * List the available permissions for the current user
3372
3973
  * @summary List Own Permissions
@@ -3377,6 +3978,16 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
3377
3978
  listOwnPermissions: function (orgId, options) {
3378
3979
  return localVarFp.listOwnPermissions(orgId, options).then(function (request) { return request(axios, basePath); });
3379
3980
  },
3981
+ /**
3982
+ * List the v2 materialized permissions for the current user
3983
+ * @summary List Own Permissions V2
3984
+ * @param {string} orgId
3985
+ * @param {*} [options] Override http request option.
3986
+ * @throws {RequiredError}
3987
+ */
3988
+ listOwnPermissionsV2: function (orgId, options) {
3989
+ return localVarFp.listOwnPermissionsV2(orgId, options).then(function (request) { return request(axios, basePath); });
3990
+ },
3380
3991
  /**
3381
3992
  * List the available permissions for a given user
3382
3993
  * @summary List User Permissions
@@ -3388,6 +3999,17 @@ var UserPermissionsApiFactory = function (configuration, basePath, axios) {
3388
3999
  listUserPermissions: function (orgId, userId, options) {
3389
4000
  return localVarFp.listUserPermissions(orgId, userId, options).then(function (request) { return request(axios, basePath); });
3390
4001
  },
4002
+ /**
4003
+ * List the v2 materialized permissions for a given user
4004
+ * @summary List User Permissions V2
4005
+ * @param {string} orgId
4006
+ * @param {string} userId
4007
+ * @param {*} [options] Override http request option.
4008
+ * @throws {RequiredError}
4009
+ */
4010
+ listUserPermissionsV2: function (orgId, userId, options) {
4011
+ return localVarFp.listUserPermissionsV2(orgId, userId, options).then(function (request) { return request(axios, basePath); });
4012
+ },
3391
4013
  };
3392
4014
  };
3393
4015
  exports.UserPermissionsApiFactory = UserPermissionsApiFactory;
@@ -3414,6 +4036,18 @@ var UserPermissionsApi = /** @class */ (function (_super) {
3414
4036
  var _this = this;
3415
4037
  return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3416
4038
  };
4039
+ /**
4040
+ * List the v2 materialized permissions for an org
4041
+ * @summary List Org Permissions V2
4042
+ * @param {string} orgId
4043
+ * @param {*} [options] Override http request option.
4044
+ * @throws {RequiredError}
4045
+ * @memberof UserPermissionsApi
4046
+ */
4047
+ UserPermissionsApi.prototype.listOrgPermissionsV2 = function (orgId, options) {
4048
+ var _this = this;
4049
+ return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgPermissionsV2(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4050
+ };
3417
4051
  /**
3418
4052
  * List the available roles for the current user
3419
4053
  * @summary List Org Roles
@@ -3426,6 +4060,18 @@ var UserPermissionsApi = /** @class */ (function (_super) {
3426
4060
  var _this = this;
3427
4061
  return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgRoles(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3428
4062
  };
4063
+ /**
4064
+ * List the v2 role assignments for an org
4065
+ * @summary List Org Roles V2
4066
+ * @param {string} orgId
4067
+ * @param {*} [options] Override http request option.
4068
+ * @throws {RequiredError}
4069
+ * @memberof UserPermissionsApi
4070
+ */
4071
+ UserPermissionsApi.prototype.listOrgRolesV2 = function (orgId, options) {
4072
+ var _this = this;
4073
+ return (0, exports.UserPermissionsApiFp)(this.configuration).listOrgRolesV2(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4074
+ };
3429
4075
  /**
3430
4076
  * List the available permissions for the current user
3431
4077
  * @summary List Own Permissions
@@ -3438,6 +4084,18 @@ var UserPermissionsApi = /** @class */ (function (_super) {
3438
4084
  var _this = this;
3439
4085
  return (0, exports.UserPermissionsApiFp)(this.configuration).listOwnPermissions(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3440
4086
  };
4087
+ /**
4088
+ * List the v2 materialized permissions for the current user
4089
+ * @summary List Own Permissions V2
4090
+ * @param {string} orgId
4091
+ * @param {*} [options] Override http request option.
4092
+ * @throws {RequiredError}
4093
+ * @memberof UserPermissionsApi
4094
+ */
4095
+ UserPermissionsApi.prototype.listOwnPermissionsV2 = function (orgId, options) {
4096
+ var _this = this;
4097
+ return (0, exports.UserPermissionsApiFp)(this.configuration).listOwnPermissionsV2(orgId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4098
+ };
3441
4099
  /**
3442
4100
  * List the available permissions for a given user
3443
4101
  * @summary List User Permissions
@@ -3451,6 +4109,19 @@ var UserPermissionsApi = /** @class */ (function (_super) {
3451
4109
  var _this = this;
3452
4110
  return (0, exports.UserPermissionsApiFp)(this.configuration).listUserPermissions(orgId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3453
4111
  };
4112
+ /**
4113
+ * List the v2 materialized permissions for a given user
4114
+ * @summary List User Permissions V2
4115
+ * @param {string} orgId
4116
+ * @param {string} userId
4117
+ * @param {*} [options] Override http request option.
4118
+ * @throws {RequiredError}
4119
+ * @memberof UserPermissionsApi
4120
+ */
4121
+ UserPermissionsApi.prototype.listUserPermissionsV2 = function (orgId, userId, options) {
4122
+ var _this = this;
4123
+ return (0, exports.UserPermissionsApiFp)(this.configuration).listUserPermissionsV2(orgId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4124
+ };
3454
4125
  return UserPermissionsApi;
3455
4126
  }(base_1.BaseAPI));
3456
4127
  exports.UserPermissionsApi = UserPermissionsApi;