@flipdish/authorization 0.2.51 → 0.2.52

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,14 +84,31 @@ 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.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.ListGlobalApiKeysStatusEnum = exports.APIKeysApi = exports.APIKeysApiFactory = exports.APIKeysApiFp = exports.APIKeysApiAxiosParamCreator = exports.RoleNames = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.RemoveTeammateRequestBodyPrincipalTypeEnum = exports.RemoveTeammateRequestBodyActorTypeEnum = exports.PrincipalInOrgTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.JoinAccessErrorResponseCodeEnum = exports.IsInRoleRequestCheckModeEnum = exports.InviteTokenResponseRoleNameEnum = exports.GlobalApiKeyStateResponseUpdatedStatusEnum = exports.GlobalApiKeyStateResponseRevokedStatusEnum = exports.GlobalApiKeyStateResponseStatusEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetJoinAccessRequest200ResponseRoleNameEnum = exports.GetJoinAccessRequest200ResponseStateEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AccessRequestResponseRoleNameEnum = exports.AccessRequestResponseStateEnum = void 0;
88
- exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.JoinAccessApi = exports.JoinAccessApiFactory = exports.JoinAccessApiFp = exports.JoinAccessApiAxiosParamCreator = exports.ConfigurationDataApi = void 0;
87
+ exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.ListGlobalApiKeysStatusEnum = exports.APIKeysApi = exports.APIKeysApiFactory = exports.APIKeysApiFp = exports.APIKeysApiAxiosParamCreator = exports.UnblockPrincipalAccessResponseStatusEnum = exports.TimedAccessGrantResponseStatusEnum = exports.TimedAccessGrantResponsePrincipalTypeEnum = exports.TimedAccessGrantRequestBodyRoleNameEnum = exports.TimedAccessGrantStatusEnum = exports.TimedAccessGrantPrincipalTypeEnum = exports.RoleNames = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.RemoveTeammateRequestBodyPrincipalTypeEnum = exports.RemoveTeammateRequestBodyActorTypeEnum = exports.PrincipalInOrgTypeEnum = exports.Permissions = exports.ListOrgRolesSuccessResponseValueRolesEnum = exports.JoinAccessErrorResponseCodeEnum = exports.IsInRoleRequestCheckModeEnum = exports.InviteTokenResponseRoleNameEnum = exports.GlobalApiKeyStateResponseUpdatedStatusEnum = exports.GlobalApiKeyStateResponseRevokedStatusEnum = exports.GlobalApiKeyStateResponseStatusEnum = exports.GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = exports.GetJoinAccessRequest200ResponseRoleNameEnum = exports.GetJoinAccessRequest200ResponseStateEnum = exports.GetAuthorizedOrgsRequestPrincipalTypeEnum = exports.AuthorizationRequestResourceOneOf3TypeEnum = exports.AuthorizationRequestResourceOneOf2TypeEnum = exports.AuthorizationRequestResourceOneOf1TypeEnum = exports.AuthorizationRequestResourceOneOfTypeEnum = exports.AuthorizationRequestPrincipalTypeEnum = exports.AuthorizationRequestCheckModeEnum = exports.AuthorizationBatchResponseAllowedResourcesInnerPrincipalTypeEnum = exports.AuthenticateAndCheckIsInRoleRequestCheckModeEnum = exports.AuthenticateAndAuthorizeRequestCheckModeEnum = exports.AccessRequestResponseRoleNameEnum = exports.AccessRequestResponseStateEnum = exports.AccessBlockStateResponseBlockedPrincipalTypeEnum = exports.AcceptJoinRequestRoleNameEnum = void 0;
88
+ exports.UserPermissionsApi = exports.UserPermissionsApiFactory = exports.UserPermissionsApiFp = exports.UserPermissionsApiAxiosParamCreator = exports.UserManagementApi = exports.UserManagementApiFactory = exports.UserManagementApiFp = exports.UserManagementApiAxiosParamCreator = exports.ListMyTimedAccessGrantsStatusEnum = exports.TimedAccessApi = exports.TimedAccessApiFactory = exports.TimedAccessApiFp = exports.TimedAccessApiAxiosParamCreator = exports.RoleAssignmentApi = exports.RoleAssignmentApiFactory = exports.RoleAssignmentApiFp = exports.RoleAssignmentApiAxiosParamCreator = exports.ListPrincipalAccessBlocksTypeEnum = exports.GetPrincipalAccessBlockTypeEnum = exports.PrincipalAccessBlockApi = exports.PrincipalAccessBlockApiFactory = exports.PrincipalAccessBlockApiFp = exports.PrincipalAccessBlockApiAxiosParamCreator = exports.JoinAccessApi = exports.JoinAccessApiFactory = exports.JoinAccessApiFp = exports.JoinAccessApiAxiosParamCreator = exports.ConfigurationDataApi = exports.ConfigurationDataApiFactory = exports.ConfigurationDataApiFp = exports.ConfigurationDataApiAxiosParamCreator = exports.AuthorizedEntitiesApi = exports.AuthorizedEntitiesApiFactory = exports.AuthorizedEntitiesApiFp = exports.AuthorizedEntitiesApiAxiosParamCreator = exports.AuthorizationApi = void 0;
89
89
  var axios_1 = require("axios");
90
90
  // Some imports not used depending on template conditions
91
91
  // @ts-ignore
92
92
  var common_1 = require("./common");
93
93
  // @ts-ignore
94
94
  var base_1 = require("./base");
95
+ exports.AcceptJoinRequestRoleNameEnum = {
96
+ Owner: 'Owner',
97
+ PropertyOwner: 'PropertyOwner',
98
+ ManagedOwner: 'ManagedOwner',
99
+ Integrator: 'Integrator',
100
+ PropertyManager: 'PropertyManager',
101
+ FinanceManager: 'FinanceManager',
102
+ StaffMember: 'StaffMember',
103
+ Kiosk: 'Kiosk',
104
+ Terminal: 'Terminal'
105
+ };
106
+ exports.AccessBlockStateResponseBlockedPrincipalTypeEnum = {
107
+ User: 'User',
108
+ Automation: 'Automation',
109
+ Kiosk: 'Kiosk',
110
+ Terminal: 'Terminal'
111
+ };
95
112
  exports.AccessRequestResponseStateEnum = {
96
113
  Pending: 'Pending',
97
114
  Approved: 'Approved',
@@ -284,6 +301,7 @@ exports.Permissions = {
284
301
  ViewMenu: 'ViewMenu',
285
302
  CreateGlobalApiKey: 'CreateGlobalAPIKey',
286
303
  ListGlobalApiKeys: 'ListGlobalAPIKeys',
304
+ BlockPrincipalAccess: 'BlockPrincipalAccess',
287
305
  CreateMenu: 'CreateMenu',
288
306
  UpdateMenu: 'UpdateMenu',
289
307
  DeleteMenu: 'DeleteMenu',
@@ -510,6 +528,33 @@ exports.RoleNames = {
510
528
  AuthDeveloper: 'AuthDeveloper',
511
529
  FlipdishStaff: 'FlipdishStaff'
512
530
  };
531
+ exports.TimedAccessGrantPrincipalTypeEnum = {
532
+ User: 'User',
533
+ Automation: 'Automation',
534
+ Kiosk: 'Kiosk',
535
+ Terminal: 'Terminal'
536
+ };
537
+ exports.TimedAccessGrantStatusEnum = {
538
+ Active: 'active',
539
+ Expired: 'expired'
540
+ };
541
+ exports.TimedAccessGrantRequestBodyRoleNameEnum = {
542
+ Owner: 'Owner'
543
+ };
544
+ exports.TimedAccessGrantResponsePrincipalTypeEnum = {
545
+ User: 'User',
546
+ Automation: 'Automation',
547
+ Kiosk: 'Kiosk',
548
+ Terminal: 'Terminal'
549
+ };
550
+ exports.TimedAccessGrantResponseStatusEnum = {
551
+ Active: 'active',
552
+ Expired: 'expired'
553
+ };
554
+ exports.UnblockPrincipalAccessResponseStatusEnum = {
555
+ RestorationInProgress: 'restoration_in_progress',
556
+ NotBlocked: 'not_blocked'
557
+ };
513
558
  /**
514
559
  * APIKeysApi - axios parameter creator
515
560
  * @export
@@ -2267,19 +2312,20 @@ var JoinAccessApiAxiosParamCreator = function (configuration) {
2267
2312
  var _this = this;
2268
2313
  return {
2269
2314
  /**
2270
- * Grants the role stored on the access request (copied from the invite token at create time) via AuthZ V2 role assignment (source join).
2315
+ * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
2271
2316
  * @summary Accept a pending join access request
2272
2317
  * @param {string} orgId
2273
2318
  * @param {string} requestId
2319
+ * @param {AcceptJoinRequest} [acceptJoinRequest]
2274
2320
  * @param {*} [options] Override http request option.
2275
2321
  * @throws {RequiredError}
2276
2322
  */
2277
- acceptJoinAccessRequest: function (orgId_1, requestId_1) {
2323
+ acceptJoinAccessRequest: function (orgId_1, requestId_1, acceptJoinRequest_1) {
2278
2324
  var args_1 = [];
2279
- for (var _i = 2; _i < arguments.length; _i++) {
2280
- args_1[_i - 2] = arguments[_i];
2325
+ for (var _i = 3; _i < arguments.length; _i++) {
2326
+ args_1[_i - 3] = arguments[_i];
2281
2327
  }
2282
- return __awaiter(_this, __spreadArray([orgId_1, requestId_1], args_1, true), void 0, function (orgId, requestId, options) {
2328
+ return __awaiter(_this, __spreadArray([orgId_1, requestId_1, acceptJoinRequest_1], args_1, true), void 0, function (orgId, requestId, acceptJoinRequest, options) {
2283
2329
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2284
2330
  if (options === void 0) { options = {}; }
2285
2331
  return __generator(this, function (_a) {
@@ -2304,9 +2350,11 @@ var JoinAccessApiAxiosParamCreator = function (configuration) {
2304
2350
  case 1:
2305
2351
  // authentication ApiKeyAuth required
2306
2352
  _a.sent();
2353
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2307
2354
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2308
2355
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2309
2356
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2357
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(acceptJoinRequest, localVarRequestOptions, configuration);
2310
2358
  return [2 /*return*/, {
2311
2359
  url: (0, common_1.toPathString)(localVarUrlObj),
2312
2360
  options: localVarRequestOptions,
@@ -2573,20 +2621,21 @@ var JoinAccessApiFp = function (configuration) {
2573
2621
  var localVarAxiosParamCreator = (0, exports.JoinAccessApiAxiosParamCreator)(configuration);
2574
2622
  return {
2575
2623
  /**
2576
- * Grants the role stored on the access request (copied from the invite token at create time) via AuthZ V2 role assignment (source join).
2624
+ * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
2577
2625
  * @summary Accept a pending join access request
2578
2626
  * @param {string} orgId
2579
2627
  * @param {string} requestId
2628
+ * @param {AcceptJoinRequest} [acceptJoinRequest]
2580
2629
  * @param {*} [options] Override http request option.
2581
2630
  * @throws {RequiredError}
2582
2631
  */
2583
- acceptJoinAccessRequest: function (orgId, requestId, options) {
2632
+ acceptJoinAccessRequest: function (orgId, requestId, acceptJoinRequest, options) {
2584
2633
  return __awaiter(this, void 0, void 0, function () {
2585
2634
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2586
2635
  var _a, _b, _c;
2587
2636
  return __generator(this, function (_d) {
2588
2637
  switch (_d.label) {
2589
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.acceptJoinAccessRequest(orgId, requestId, options)];
2638
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options)];
2590
2639
  case 1:
2591
2640
  localVarAxiosArgs = _d.sent();
2592
2641
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -2728,15 +2777,16 @@ var JoinAccessApiFactory = function (configuration, basePath, axios) {
2728
2777
  var localVarFp = (0, exports.JoinAccessApiFp)(configuration);
2729
2778
  return {
2730
2779
  /**
2731
- * Grants the role stored on the access request (copied from the invite token at create time) via AuthZ V2 role assignment (source join).
2780
+ * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
2732
2781
  * @summary Accept a pending join access request
2733
2782
  * @param {string} orgId
2734
2783
  * @param {string} requestId
2784
+ * @param {AcceptJoinRequest} [acceptJoinRequest]
2735
2785
  * @param {*} [options] Override http request option.
2736
2786
  * @throws {RequiredError}
2737
2787
  */
2738
- acceptJoinAccessRequest: function (orgId, requestId, options) {
2739
- return localVarFp.acceptJoinAccessRequest(orgId, requestId, options).then(function (request) { return request(axios, basePath); });
2788
+ acceptJoinAccessRequest: function (orgId, requestId, acceptJoinRequest, options) {
2789
+ return localVarFp.acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options).then(function (request) { return request(axios, basePath); });
2740
2790
  },
2741
2791
  /**
2742
2792
  * Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one.
@@ -2809,17 +2859,18 @@ var JoinAccessApi = /** @class */ (function (_super) {
2809
2859
  return _super !== null && _super.apply(this, arguments) || this;
2810
2860
  }
2811
2861
  /**
2812
- * Grants the role stored on the access request (copied from the invite token at create time) via AuthZ V2 role assignment (source join).
2862
+ * Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
2813
2863
  * @summary Accept a pending join access request
2814
2864
  * @param {string} orgId
2815
2865
  * @param {string} requestId
2866
+ * @param {AcceptJoinRequest} [acceptJoinRequest]
2816
2867
  * @param {*} [options] Override http request option.
2817
2868
  * @throws {RequiredError}
2818
2869
  * @memberof JoinAccessApi
2819
2870
  */
2820
- JoinAccessApi.prototype.acceptJoinAccessRequest = function (orgId, requestId, options) {
2871
+ JoinAccessApi.prototype.acceptJoinAccessRequest = function (orgId, requestId, acceptJoinRequest, options) {
2821
2872
  var _this = this;
2822
- return (0, exports.JoinAccessApiFp)(this.configuration).acceptJoinAccessRequest(orgId, requestId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2873
+ return (0, exports.JoinAccessApiFp)(this.configuration).acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2823
2874
  };
2824
2875
  /**
2825
2876
  * Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one.
@@ -2891,35 +2942,31 @@ var JoinAccessApi = /** @class */ (function (_super) {
2891
2942
  }(base_1.BaseAPI));
2892
2943
  exports.JoinAccessApi = JoinAccessApi;
2893
2944
  /**
2894
- * RoleAssignmentApi - axios parameter creator
2945
+ * PrincipalAccessBlockApi - axios parameter creator
2895
2946
  * @export
2896
2947
  */
2897
- var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2948
+ var PrincipalAccessBlockApiAxiosParamCreator = function (configuration) {
2898
2949
  var _this = this;
2899
2950
  return {
2900
2951
  /**
2901
- * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
2902
- * @summary Apply role assignment
2903
- * @param {string} orgId
2904
- * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
2952
+ * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess.
2953
+ * @summary Block principal access
2954
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
2905
2955
  * @param {*} [options] Override http request option.
2906
2956
  * @throws {RequiredError}
2907
2957
  */
2908
- applyRoleAssignment: function (orgId_1, roleAssignmentRequestBody_1) {
2958
+ blockPrincipalAccess: function (blockPrincipalAccessRequest_1) {
2909
2959
  var args_1 = [];
2910
- for (var _i = 2; _i < arguments.length; _i++) {
2911
- args_1[_i - 2] = arguments[_i];
2960
+ for (var _i = 1; _i < arguments.length; _i++) {
2961
+ args_1[_i - 1] = arguments[_i];
2912
2962
  }
2913
- return __awaiter(_this, __spreadArray([orgId_1, roleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, roleAssignmentRequestBody, options) {
2963
+ return __awaiter(_this, __spreadArray([blockPrincipalAccessRequest_1], args_1, true), void 0, function (blockPrincipalAccessRequest, options) {
2914
2964
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2915
2965
  if (options === void 0) { options = {}; }
2916
2966
  return __generator(this, function (_a) {
2917
2967
  switch (_a.label) {
2918
2968
  case 0:
2919
- // verify required parameter 'orgId' is not null or undefined
2920
- (0, common_1.assertParamExists)('applyRoleAssignment', 'orgId', orgId);
2921
- localVarPath = "/orgs/{orgId}/roleAssignments/apply"
2922
- .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
2969
+ localVarPath = "/principals/block";
2923
2970
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2924
2971
  if (configuration) {
2925
2972
  baseOptions = configuration.baseOptions;
@@ -2936,7 +2983,7 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2936
2983
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2937
2984
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2938
2985
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2939
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(roleAssignmentRequestBody, localVarRequestOptions, configuration);
2986
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(blockPrincipalAccessRequest, localVarRequestOptions, configuration);
2940
2987
  return [2 /*return*/, {
2941
2988
  url: (0, common_1.toPathString)(localVarUrlObj),
2942
2989
  options: localVarRequestOptions,
@@ -2946,33 +2993,34 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2946
2993
  });
2947
2994
  },
2948
2995
  /**
2949
- * Rematerializes a role assignment and applies the resulting policy assignments
2950
- * @summary Rematerialize Role Assignment
2951
- * @param {string} orgId
2952
- * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
2996
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
2997
+ * @summary Get principal access block
2998
+ * @param {GetPrincipalAccessBlockTypeEnum} type
2999
+ * @param {string} id
2953
3000
  * @param {*} [options] Override http request option.
2954
3001
  * @throws {RequiredError}
2955
3002
  */
2956
- rematerializeRoleAssignmentV2: function (orgId_1, rematerializeRoleAssignmentRequestBody_1) {
3003
+ getPrincipalAccessBlock: function (type_1, id_1) {
2957
3004
  var args_1 = [];
2958
3005
  for (var _i = 2; _i < arguments.length; _i++) {
2959
3006
  args_1[_i - 2] = arguments[_i];
2960
3007
  }
2961
- return __awaiter(_this, __spreadArray([orgId_1, rematerializeRoleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3008
+ return __awaiter(_this, __spreadArray([type_1, id_1], args_1, true), void 0, function (type, id, options) {
2962
3009
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2963
3010
  if (options === void 0) { options = {}; }
2964
3011
  return __generator(this, function (_a) {
2965
3012
  switch (_a.label) {
2966
3013
  case 0:
2967
- // verify required parameter 'orgId' is not null or undefined
2968
- (0, common_1.assertParamExists)('rematerializeRoleAssignmentV2', 'orgId', orgId);
2969
- localVarPath = "/orgs/{orgId}/roleAssignments/rematerialize"
2970
- .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3014
+ // verify required parameter 'type' is not null or undefined
3015
+ (0, common_1.assertParamExists)('getPrincipalAccessBlock', 'type', type);
3016
+ // verify required parameter 'id' is not null or undefined
3017
+ (0, common_1.assertParamExists)('getPrincipalAccessBlock', 'id', id);
3018
+ localVarPath = "/principals/block";
2971
3019
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2972
3020
  if (configuration) {
2973
3021
  baseOptions = configuration.baseOptions;
2974
3022
  }
2975
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3023
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2976
3024
  localVarHeaderParameter = {};
2977
3025
  localVarQueryParameter = {};
2978
3026
  // authentication ApiKeyAuth required
@@ -2980,11 +3028,15 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2980
3028
  case 1:
2981
3029
  // authentication ApiKeyAuth required
2982
3030
  _a.sent();
2983
- localVarHeaderParameter['Content-Type'] = 'application/json';
3031
+ if (type !== undefined) {
3032
+ localVarQueryParameter['type'] = type;
3033
+ }
3034
+ if (id !== undefined) {
3035
+ localVarQueryParameter['id'] = id;
3036
+ }
2984
3037
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2985
3038
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2986
3039
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2987
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration);
2988
3040
  return [2 /*return*/, {
2989
3041
  url: (0, common_1.toPathString)(localVarUrlObj),
2990
3042
  options: localVarRequestOptions,
@@ -2994,28 +3046,69 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
2994
3046
  });
2995
3047
  },
2996
3048
  /**
2997
- * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
2998
- * @summary Remove teammate
2999
- * @param {string} orgId
3000
- * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3049
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
3050
+ * @summary List principal access blocks
3051
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
3001
3052
  * @param {*} [options] Override http request option.
3002
3053
  * @throws {RequiredError}
3003
3054
  */
3004
- removeTeammate: function (orgId_1, removeTeammateRequestBody_1) {
3055
+ listPrincipalAccessBlocks: function (type_1) {
3005
3056
  var args_1 = [];
3006
- for (var _i = 2; _i < arguments.length; _i++) {
3007
- args_1[_i - 2] = arguments[_i];
3057
+ for (var _i = 1; _i < arguments.length; _i++) {
3058
+ args_1[_i - 1] = arguments[_i];
3008
3059
  }
3009
- return __awaiter(_this, __spreadArray([orgId_1, removeTeammateRequestBody_1], args_1, true), void 0, function (orgId, removeTeammateRequestBody, options) {
3060
+ return __awaiter(_this, __spreadArray([type_1], args_1, true), void 0, function (type, options) {
3010
3061
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3011
3062
  if (options === void 0) { options = {}; }
3012
3063
  return __generator(this, function (_a) {
3013
3064
  switch (_a.label) {
3014
3065
  case 0:
3015
- // verify required parameter 'orgId' is not null or undefined
3016
- (0, common_1.assertParamExists)('removeTeammate', 'orgId', orgId);
3017
- localVarPath = "/orgs/{orgId}/roleAssignments/remove"
3018
- .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3066
+ localVarPath = "/principals/blocks";
3067
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3068
+ if (configuration) {
3069
+ baseOptions = configuration.baseOptions;
3070
+ }
3071
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3072
+ localVarHeaderParameter = {};
3073
+ localVarQueryParameter = {};
3074
+ // authentication ApiKeyAuth required
3075
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3076
+ case 1:
3077
+ // authentication ApiKeyAuth required
3078
+ _a.sent();
3079
+ if (type !== undefined) {
3080
+ localVarQueryParameter['type'] = type;
3081
+ }
3082
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3083
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3084
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3085
+ return [2 /*return*/, {
3086
+ url: (0, common_1.toPathString)(localVarUrlObj),
3087
+ options: localVarRequestOptions,
3088
+ }];
3089
+ }
3090
+ });
3091
+ });
3092
+ },
3093
+ /**
3094
+ * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
3095
+ * @summary Unblock principal access
3096
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
3097
+ * @param {*} [options] Override http request option.
3098
+ * @throws {RequiredError}
3099
+ */
3100
+ unblockPrincipalAccess: function (unblockPrincipalAccessRequest_1) {
3101
+ var args_1 = [];
3102
+ for (var _i = 1; _i < arguments.length; _i++) {
3103
+ args_1[_i - 1] = arguments[_i];
3104
+ }
3105
+ return __awaiter(_this, __spreadArray([unblockPrincipalAccessRequest_1], args_1, true), void 0, function (unblockPrincipalAccessRequest, options) {
3106
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3107
+ if (options === void 0) { options = {}; }
3108
+ return __generator(this, function (_a) {
3109
+ switch (_a.label) {
3110
+ case 0:
3111
+ localVarPath = "/principals/unblock";
3019
3112
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3020
3113
  if (configuration) {
3021
3114
  baseOptions = configuration.baseOptions;
@@ -3032,7 +3125,7 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
3032
3125
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3033
3126
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3034
3127
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3035
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(removeTeammateRequestBody, localVarRequestOptions, configuration);
3128
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unblockPrincipalAccessRequest, localVarRequestOptions, configuration);
3036
3129
  return [2 /*return*/, {
3037
3130
  url: (0, common_1.toPathString)(localVarUrlObj),
3038
3131
  options: localVarRequestOptions,
@@ -3043,81 +3136,102 @@ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
3043
3136
  },
3044
3137
  };
3045
3138
  };
3046
- exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
3139
+ exports.PrincipalAccessBlockApiAxiosParamCreator = PrincipalAccessBlockApiAxiosParamCreator;
3047
3140
  /**
3048
- * RoleAssignmentApi - functional programming interface
3141
+ * PrincipalAccessBlockApi - functional programming interface
3049
3142
  * @export
3050
3143
  */
3051
- var RoleAssignmentApiFp = function (configuration) {
3052
- var localVarAxiosParamCreator = (0, exports.RoleAssignmentApiAxiosParamCreator)(configuration);
3144
+ var PrincipalAccessBlockApiFp = function (configuration) {
3145
+ var localVarAxiosParamCreator = (0, exports.PrincipalAccessBlockApiAxiosParamCreator)(configuration);
3053
3146
  return {
3054
3147
  /**
3055
- * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
3056
- * @summary Apply role assignment
3057
- * @param {string} orgId
3058
- * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3148
+ * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess.
3149
+ * @summary Block principal access
3150
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
3059
3151
  * @param {*} [options] Override http request option.
3060
3152
  * @throws {RequiredError}
3061
3153
  */
3062
- applyRoleAssignment: function (orgId, roleAssignmentRequestBody, options) {
3154
+ blockPrincipalAccess: function (blockPrincipalAccessRequest, options) {
3063
3155
  return __awaiter(this, void 0, void 0, function () {
3064
3156
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3065
3157
  var _a, _b, _c;
3066
3158
  return __generator(this, function (_d) {
3067
3159
  switch (_d.label) {
3068
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options)];
3160
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.blockPrincipalAccess(blockPrincipalAccessRequest, options)];
3069
3161
  case 1:
3070
3162
  localVarAxiosArgs = _d.sent();
3071
3163
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3072
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.applyRoleAssignment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3164
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrincipalAccessBlockApi.blockPrincipalAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3073
3165
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3074
3166
  }
3075
3167
  });
3076
3168
  });
3077
3169
  },
3078
3170
  /**
3079
- * Rematerializes a role assignment and applies the resulting policy assignments
3080
- * @summary Rematerialize Role Assignment
3081
- * @param {string} orgId
3082
- * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3171
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
3172
+ * @summary Get principal access block
3173
+ * @param {GetPrincipalAccessBlockTypeEnum} type
3174
+ * @param {string} id
3083
3175
  * @param {*} [options] Override http request option.
3084
3176
  * @throws {RequiredError}
3085
3177
  */
3086
- rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3178
+ getPrincipalAccessBlock: function (type, id, options) {
3087
3179
  return __awaiter(this, void 0, void 0, function () {
3088
3180
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3089
3181
  var _a, _b, _c;
3090
3182
  return __generator(this, function (_d) {
3091
3183
  switch (_d.label) {
3092
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options)];
3184
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrincipalAccessBlock(type, id, options)];
3093
3185
  case 1:
3094
3186
  localVarAxiosArgs = _d.sent();
3095
3187
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3096
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3188
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrincipalAccessBlockApi.getPrincipalAccessBlock']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3097
3189
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3098
3190
  }
3099
3191
  });
3100
3192
  });
3101
3193
  },
3102
3194
  /**
3103
- * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
3104
- * @summary Remove teammate
3105
- * @param {string} orgId
3106
- * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3195
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
3196
+ * @summary List principal access blocks
3197
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
3107
3198
  * @param {*} [options] Override http request option.
3108
3199
  * @throws {RequiredError}
3109
3200
  */
3110
- removeTeammate: function (orgId, removeTeammateRequestBody, options) {
3201
+ listPrincipalAccessBlocks: function (type, options) {
3111
3202
  return __awaiter(this, void 0, void 0, function () {
3112
3203
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3113
3204
  var _a, _b, _c;
3114
3205
  return __generator(this, function (_d) {
3115
3206
  switch (_d.label) {
3116
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options)];
3207
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPrincipalAccessBlocks(type, options)];
3117
3208
  case 1:
3118
3209
  localVarAxiosArgs = _d.sent();
3119
3210
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3120
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.removeTeammate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3211
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrincipalAccessBlockApi.listPrincipalAccessBlocks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3212
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3213
+ }
3214
+ });
3215
+ });
3216
+ },
3217
+ /**
3218
+ * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
3219
+ * @summary Unblock principal access
3220
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
3221
+ * @param {*} [options] Override http request option.
3222
+ * @throws {RequiredError}
3223
+ */
3224
+ unblockPrincipalAccess: function (unblockPrincipalAccessRequest, options) {
3225
+ return __awaiter(this, void 0, void 0, function () {
3226
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3227
+ var _a, _b, _c;
3228
+ return __generator(this, function (_d) {
3229
+ switch (_d.label) {
3230
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unblockPrincipalAccess(unblockPrincipalAccessRequest, options)];
3231
+ case 1:
3232
+ localVarAxiosArgs = _d.sent();
3233
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3234
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrincipalAccessBlockApi.unblockPrincipalAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3121
3235
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3122
3236
  }
3123
3237
  });
@@ -3125,103 +3239,714 @@ var RoleAssignmentApiFp = function (configuration) {
3125
3239
  },
3126
3240
  };
3127
3241
  };
3128
- exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
3242
+ exports.PrincipalAccessBlockApiFp = PrincipalAccessBlockApiFp;
3129
3243
  /**
3130
- * RoleAssignmentApi - factory interface
3244
+ * PrincipalAccessBlockApi - factory interface
3131
3245
  * @export
3132
3246
  */
3133
- var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
3134
- var localVarFp = (0, exports.RoleAssignmentApiFp)(configuration);
3247
+ var PrincipalAccessBlockApiFactory = function (configuration, basePath, axios) {
3248
+ var localVarFp = (0, exports.PrincipalAccessBlockApiFp)(configuration);
3135
3249
  return {
3136
3250
  /**
3137
- * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
3138
- * @summary Apply role assignment
3139
- * @param {string} orgId
3140
- * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3251
+ * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess.
3252
+ * @summary Block principal access
3253
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
3141
3254
  * @param {*} [options] Override http request option.
3142
3255
  * @throws {RequiredError}
3143
3256
  */
3144
- applyRoleAssignment: function (orgId, roleAssignmentRequestBody, options) {
3145
- return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
3257
+ blockPrincipalAccess: function (blockPrincipalAccessRequest, options) {
3258
+ return localVarFp.blockPrincipalAccess(blockPrincipalAccessRequest, options).then(function (request) { return request(axios, basePath); });
3146
3259
  },
3147
3260
  /**
3148
- * Rematerializes a role assignment and applies the resulting policy assignments
3149
- * @summary Rematerialize Role Assignment
3150
- * @param {string} orgId
3151
- * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3261
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
3262
+ * @summary Get principal access block
3263
+ * @param {GetPrincipalAccessBlockTypeEnum} type
3264
+ * @param {string} id
3152
3265
  * @param {*} [options] Override http request option.
3153
3266
  * @throws {RequiredError}
3154
3267
  */
3155
- rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3156
- return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
3268
+ getPrincipalAccessBlock: function (type, id, options) {
3269
+ return localVarFp.getPrincipalAccessBlock(type, id, options).then(function (request) { return request(axios, basePath); });
3157
3270
  },
3158
3271
  /**
3159
- * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
3160
- * @summary Remove teammate
3161
- * @param {string} orgId
3162
- * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3272
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
3273
+ * @summary List principal access blocks
3274
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
3163
3275
  * @param {*} [options] Override http request option.
3164
3276
  * @throws {RequiredError}
3165
3277
  */
3166
- removeTeammate: function (orgId, removeTeammateRequestBody, options) {
3167
- return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(axios, basePath); });
3278
+ listPrincipalAccessBlocks: function (type, options) {
3279
+ return localVarFp.listPrincipalAccessBlocks(type, options).then(function (request) { return request(axios, basePath); });
3280
+ },
3281
+ /**
3282
+ * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
3283
+ * @summary Unblock principal access
3284
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
3285
+ * @param {*} [options] Override http request option.
3286
+ * @throws {RequiredError}
3287
+ */
3288
+ unblockPrincipalAccess: function (unblockPrincipalAccessRequest, options) {
3289
+ return localVarFp.unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then(function (request) { return request(axios, basePath); });
3168
3290
  },
3169
3291
  };
3170
3292
  };
3171
- exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
3293
+ exports.PrincipalAccessBlockApiFactory = PrincipalAccessBlockApiFactory;
3172
3294
  /**
3173
- * RoleAssignmentApi - object-oriented interface
3295
+ * PrincipalAccessBlockApi - object-oriented interface
3174
3296
  * @export
3175
- * @class RoleAssignmentApi
3297
+ * @class PrincipalAccessBlockApi
3176
3298
  * @extends {BaseAPI}
3177
3299
  */
3178
- var RoleAssignmentApi = /** @class */ (function (_super) {
3179
- __extends(RoleAssignmentApi, _super);
3180
- function RoleAssignmentApi() {
3300
+ var PrincipalAccessBlockApi = /** @class */ (function (_super) {
3301
+ __extends(PrincipalAccessBlockApi, _super);
3302
+ function PrincipalAccessBlockApi() {
3181
3303
  return _super !== null && _super.apply(this, arguments) || this;
3182
3304
  }
3183
3305
  /**
3184
- * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
3185
- * @summary Apply role assignment
3186
- * @param {string} orgId
3187
- * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3306
+ * Write an access_block flag and a temporary AVP forbid so authorization checks DENY. Decision-cache bust is delayed like other grant changes. Grant drain/restore runs asynchronously. Authentication still succeeds. Requires BlockPrincipalAccess.
3307
+ * @summary Block principal access
3308
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
3188
3309
  * @param {*} [options] Override http request option.
3189
3310
  * @throws {RequiredError}
3190
- * @memberof RoleAssignmentApi
3311
+ * @memberof PrincipalAccessBlockApi
3191
3312
  */
3192
- RoleAssignmentApi.prototype.applyRoleAssignment = function (orgId, roleAssignmentRequestBody, options) {
3313
+ PrincipalAccessBlockApi.prototype.blockPrincipalAccess = function (blockPrincipalAccessRequest, options) {
3193
3314
  var _this = this;
3194
- return (0, exports.RoleAssignmentApiFp)(this.configuration).applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3315
+ return (0, exports.PrincipalAccessBlockApiFp)(this.configuration).blockPrincipalAccess(blockPrincipalAccessRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3195
3316
  };
3196
3317
  /**
3197
- * Rematerializes a role assignment and applies the resulting policy assignments
3198
- * @summary Rematerialize Role Assignment
3199
- * @param {string} orgId
3200
- * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3318
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
3319
+ * @summary Get principal access block
3320
+ * @param {GetPrincipalAccessBlockTypeEnum} type
3321
+ * @param {string} id
3201
3322
  * @param {*} [options] Override http request option.
3202
3323
  * @throws {RequiredError}
3203
- * @memberof RoleAssignmentApi
3324
+ * @memberof PrincipalAccessBlockApi
3204
3325
  */
3205
- RoleAssignmentApi.prototype.rematerializeRoleAssignmentV2 = function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3326
+ PrincipalAccessBlockApi.prototype.getPrincipalAccessBlock = function (type, id, options) {
3206
3327
  var _this = this;
3207
- return (0, exports.RoleAssignmentApiFp)(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3328
+ return (0, exports.PrincipalAccessBlockApiFp)(this.configuration).getPrincipalAccessBlock(type, id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3208
3329
  };
3209
3330
  /**
3210
- * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
3211
- * @summary Remove teammate
3212
- * @param {string} orgId
3213
- * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3331
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
3332
+ * @summary List principal access blocks
3333
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
3214
3334
  * @param {*} [options] Override http request option.
3215
3335
  * @throws {RequiredError}
3216
- * @memberof RoleAssignmentApi
3336
+ * @memberof PrincipalAccessBlockApi
3217
3337
  */
3218
- RoleAssignmentApi.prototype.removeTeammate = function (orgId, removeTeammateRequestBody, options) {
3338
+ PrincipalAccessBlockApi.prototype.listPrincipalAccessBlocks = function (type, options) {
3219
3339
  var _this = this;
3220
- return (0, exports.RoleAssignmentApiFp)(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3340
+ return (0, exports.PrincipalAccessBlockApiFp)(this.configuration).listPrincipalAccessBlocks(type, options).then(function (request) { return request(_this.axios, _this.basePath); });
3221
3341
  };
3222
- return RoleAssignmentApi;
3342
+ /**
3343
+ * Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
3344
+ * @summary Unblock principal access
3345
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
3346
+ * @param {*} [options] Override http request option.
3347
+ * @throws {RequiredError}
3348
+ * @memberof PrincipalAccessBlockApi
3349
+ */
3350
+ PrincipalAccessBlockApi.prototype.unblockPrincipalAccess = function (unblockPrincipalAccessRequest, options) {
3351
+ var _this = this;
3352
+ return (0, exports.PrincipalAccessBlockApiFp)(this.configuration).unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3353
+ };
3354
+ return PrincipalAccessBlockApi;
3223
3355
  }(base_1.BaseAPI));
3224
- exports.RoleAssignmentApi = RoleAssignmentApi;
3356
+ exports.PrincipalAccessBlockApi = PrincipalAccessBlockApi;
3357
+ /**
3358
+ * @export
3359
+ */
3360
+ exports.GetPrincipalAccessBlockTypeEnum = {
3361
+ User: 'User',
3362
+ Automation: 'Automation',
3363
+ Kiosk: 'Kiosk',
3364
+ Terminal: 'Terminal'
3365
+ };
3366
+ /**
3367
+ * @export
3368
+ */
3369
+ exports.ListPrincipalAccessBlocksTypeEnum = {
3370
+ User: 'User',
3371
+ Automation: 'Automation',
3372
+ Kiosk: 'Kiosk',
3373
+ Terminal: 'Terminal'
3374
+ };
3375
+ /**
3376
+ * RoleAssignmentApi - axios parameter creator
3377
+ * @export
3378
+ */
3379
+ var RoleAssignmentApiAxiosParamCreator = function (configuration) {
3380
+ var _this = this;
3381
+ return {
3382
+ /**
3383
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
3384
+ * @summary Apply role assignment
3385
+ * @param {string} orgId
3386
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3387
+ * @param {*} [options] Override http request option.
3388
+ * @throws {RequiredError}
3389
+ */
3390
+ applyRoleAssignment: function (orgId_1, roleAssignmentRequestBody_1) {
3391
+ var args_1 = [];
3392
+ for (var _i = 2; _i < arguments.length; _i++) {
3393
+ args_1[_i - 2] = arguments[_i];
3394
+ }
3395
+ return __awaiter(_this, __spreadArray([orgId_1, roleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, roleAssignmentRequestBody, options) {
3396
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3397
+ if (options === void 0) { options = {}; }
3398
+ return __generator(this, function (_a) {
3399
+ switch (_a.label) {
3400
+ case 0:
3401
+ // verify required parameter 'orgId' is not null or undefined
3402
+ (0, common_1.assertParamExists)('applyRoleAssignment', 'orgId', orgId);
3403
+ localVarPath = "/orgs/{orgId}/roleAssignments/apply"
3404
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3405
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3406
+ if (configuration) {
3407
+ baseOptions = configuration.baseOptions;
3408
+ }
3409
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3410
+ localVarHeaderParameter = {};
3411
+ localVarQueryParameter = {};
3412
+ // authentication ApiKeyAuth required
3413
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3414
+ case 1:
3415
+ // authentication ApiKeyAuth required
3416
+ _a.sent();
3417
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3418
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3419
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3420
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3421
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(roleAssignmentRequestBody, localVarRequestOptions, configuration);
3422
+ return [2 /*return*/, {
3423
+ url: (0, common_1.toPathString)(localVarUrlObj),
3424
+ options: localVarRequestOptions,
3425
+ }];
3426
+ }
3427
+ });
3428
+ });
3429
+ },
3430
+ /**
3431
+ * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
3432
+ * @summary Rematerialize Role Assignment
3433
+ * @param {string} orgId
3434
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3435
+ * @param {*} [options] Override http request option.
3436
+ * @throws {RequiredError}
3437
+ */
3438
+ rematerializeRoleAssignmentV2: function (orgId_1, rematerializeRoleAssignmentRequestBody_1) {
3439
+ var args_1 = [];
3440
+ for (var _i = 2; _i < arguments.length; _i++) {
3441
+ args_1[_i - 2] = arguments[_i];
3442
+ }
3443
+ return __awaiter(_this, __spreadArray([orgId_1, rematerializeRoleAssignmentRequestBody_1], args_1, true), void 0, function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3444
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3445
+ if (options === void 0) { options = {}; }
3446
+ return __generator(this, function (_a) {
3447
+ switch (_a.label) {
3448
+ case 0:
3449
+ // verify required parameter 'orgId' is not null or undefined
3450
+ (0, common_1.assertParamExists)('rematerializeRoleAssignmentV2', 'orgId', orgId);
3451
+ localVarPath = "/orgs/{orgId}/roleAssignments/rematerialize"
3452
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3453
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3454
+ if (configuration) {
3455
+ baseOptions = configuration.baseOptions;
3456
+ }
3457
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3458
+ localVarHeaderParameter = {};
3459
+ localVarQueryParameter = {};
3460
+ // authentication ApiKeyAuth required
3461
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3462
+ case 1:
3463
+ // authentication ApiKeyAuth required
3464
+ _a.sent();
3465
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3466
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3467
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3468
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3469
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration);
3470
+ return [2 /*return*/, {
3471
+ url: (0, common_1.toPathString)(localVarUrlObj),
3472
+ options: localVarRequestOptions,
3473
+ }];
3474
+ }
3475
+ });
3476
+ });
3477
+ },
3478
+ /**
3479
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
3480
+ * @summary Remove teammate
3481
+ * @param {string} orgId
3482
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3483
+ * @param {*} [options] Override http request option.
3484
+ * @throws {RequiredError}
3485
+ */
3486
+ removeTeammate: function (orgId_1, removeTeammateRequestBody_1) {
3487
+ var args_1 = [];
3488
+ for (var _i = 2; _i < arguments.length; _i++) {
3489
+ args_1[_i - 2] = arguments[_i];
3490
+ }
3491
+ return __awaiter(_this, __spreadArray([orgId_1, removeTeammateRequestBody_1], args_1, true), void 0, function (orgId, removeTeammateRequestBody, options) {
3492
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3493
+ if (options === void 0) { options = {}; }
3494
+ return __generator(this, function (_a) {
3495
+ switch (_a.label) {
3496
+ case 0:
3497
+ // verify required parameter 'orgId' is not null or undefined
3498
+ (0, common_1.assertParamExists)('removeTeammate', 'orgId', orgId);
3499
+ localVarPath = "/orgs/{orgId}/roleAssignments/remove"
3500
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3501
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3502
+ if (configuration) {
3503
+ baseOptions = configuration.baseOptions;
3504
+ }
3505
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3506
+ localVarHeaderParameter = {};
3507
+ localVarQueryParameter = {};
3508
+ // authentication ApiKeyAuth required
3509
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3510
+ case 1:
3511
+ // authentication ApiKeyAuth required
3512
+ _a.sent();
3513
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3514
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3515
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3516
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3517
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(removeTeammateRequestBody, localVarRequestOptions, configuration);
3518
+ return [2 /*return*/, {
3519
+ url: (0, common_1.toPathString)(localVarUrlObj),
3520
+ options: localVarRequestOptions,
3521
+ }];
3522
+ }
3523
+ });
3524
+ });
3525
+ },
3526
+ };
3527
+ };
3528
+ exports.RoleAssignmentApiAxiosParamCreator = RoleAssignmentApiAxiosParamCreator;
3529
+ /**
3530
+ * RoleAssignmentApi - functional programming interface
3531
+ * @export
3532
+ */
3533
+ var RoleAssignmentApiFp = function (configuration) {
3534
+ var localVarAxiosParamCreator = (0, exports.RoleAssignmentApiAxiosParamCreator)(configuration);
3535
+ return {
3536
+ /**
3537
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
3538
+ * @summary Apply role assignment
3539
+ * @param {string} orgId
3540
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3541
+ * @param {*} [options] Override http request option.
3542
+ * @throws {RequiredError}
3543
+ */
3544
+ applyRoleAssignment: function (orgId, roleAssignmentRequestBody, options) {
3545
+ return __awaiter(this, void 0, void 0, function () {
3546
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3547
+ var _a, _b, _c;
3548
+ return __generator(this, function (_d) {
3549
+ switch (_d.label) {
3550
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options)];
3551
+ case 1:
3552
+ localVarAxiosArgs = _d.sent();
3553
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3554
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.applyRoleAssignment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3555
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3556
+ }
3557
+ });
3558
+ });
3559
+ },
3560
+ /**
3561
+ * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
3562
+ * @summary Rematerialize Role Assignment
3563
+ * @param {string} orgId
3564
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3565
+ * @param {*} [options] Override http request option.
3566
+ * @throws {RequiredError}
3567
+ */
3568
+ rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3569
+ return __awaiter(this, void 0, void 0, function () {
3570
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3571
+ var _a, _b, _c;
3572
+ return __generator(this, function (_d) {
3573
+ switch (_d.label) {
3574
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options)];
3575
+ case 1:
3576
+ localVarAxiosArgs = _d.sent();
3577
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3578
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3579
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3580
+ }
3581
+ });
3582
+ });
3583
+ },
3584
+ /**
3585
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
3586
+ * @summary Remove teammate
3587
+ * @param {string} orgId
3588
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3589
+ * @param {*} [options] Override http request option.
3590
+ * @throws {RequiredError}
3591
+ */
3592
+ removeTeammate: function (orgId, removeTeammateRequestBody, options) {
3593
+ return __awaiter(this, void 0, void 0, function () {
3594
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3595
+ var _a, _b, _c;
3596
+ return __generator(this, function (_d) {
3597
+ switch (_d.label) {
3598
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options)];
3599
+ case 1:
3600
+ localVarAxiosArgs = _d.sent();
3601
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3602
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RoleAssignmentApi.removeTeammate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3603
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3604
+ }
3605
+ });
3606
+ });
3607
+ },
3608
+ };
3609
+ };
3610
+ exports.RoleAssignmentApiFp = RoleAssignmentApiFp;
3611
+ /**
3612
+ * RoleAssignmentApi - factory interface
3613
+ * @export
3614
+ */
3615
+ var RoleAssignmentApiFactory = function (configuration, basePath, axios) {
3616
+ var localVarFp = (0, exports.RoleAssignmentApiFp)(configuration);
3617
+ return {
3618
+ /**
3619
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
3620
+ * @summary Apply role assignment
3621
+ * @param {string} orgId
3622
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3623
+ * @param {*} [options] Override http request option.
3624
+ * @throws {RequiredError}
3625
+ */
3626
+ applyRoleAssignment: function (orgId, roleAssignmentRequestBody, options) {
3627
+ return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
3628
+ },
3629
+ /**
3630
+ * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
3631
+ * @summary Rematerialize Role Assignment
3632
+ * @param {string} orgId
3633
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3634
+ * @param {*} [options] Override http request option.
3635
+ * @throws {RequiredError}
3636
+ */
3637
+ rematerializeRoleAssignmentV2: function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3638
+ return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(axios, basePath); });
3639
+ },
3640
+ /**
3641
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
3642
+ * @summary Remove teammate
3643
+ * @param {string} orgId
3644
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3645
+ * @param {*} [options] Override http request option.
3646
+ * @throws {RequiredError}
3647
+ */
3648
+ removeTeammate: function (orgId, removeTeammateRequestBody, options) {
3649
+ return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(axios, basePath); });
3650
+ },
3651
+ };
3652
+ };
3653
+ exports.RoleAssignmentApiFactory = RoleAssignmentApiFactory;
3654
+ /**
3655
+ * RoleAssignmentApi - object-oriented interface
3656
+ * @export
3657
+ * @class RoleAssignmentApi
3658
+ * @extends {BaseAPI}
3659
+ */
3660
+ var RoleAssignmentApi = /** @class */ (function (_super) {
3661
+ __extends(RoleAssignmentApi, _super);
3662
+ function RoleAssignmentApi() {
3663
+ return _super !== null && _super.apply(this, arguments) || this;
3664
+ }
3665
+ /**
3666
+ * Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
3667
+ * @summary Apply role assignment
3668
+ * @param {string} orgId
3669
+ * @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
3670
+ * @param {*} [options] Override http request option.
3671
+ * @throws {RequiredError}
3672
+ * @memberof RoleAssignmentApi
3673
+ */
3674
+ RoleAssignmentApi.prototype.applyRoleAssignment = function (orgId, roleAssignmentRequestBody, options) {
3675
+ var _this = this;
3676
+ return (0, exports.RoleAssignmentApiFp)(this.configuration).applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3677
+ };
3678
+ /**
3679
+ * Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
3680
+ * @summary Rematerialize Role Assignment
3681
+ * @param {string} orgId
3682
+ * @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
3683
+ * @param {*} [options] Override http request option.
3684
+ * @throws {RequiredError}
3685
+ * @memberof RoleAssignmentApi
3686
+ */
3687
+ RoleAssignmentApi.prototype.rematerializeRoleAssignmentV2 = function (orgId, rematerializeRoleAssignmentRequestBody, options) {
3688
+ var _this = this;
3689
+ return (0, exports.RoleAssignmentApiFp)(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3690
+ };
3691
+ /**
3692
+ * Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
3693
+ * @summary Remove teammate
3694
+ * @param {string} orgId
3695
+ * @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
3696
+ * @param {*} [options] Override http request option.
3697
+ * @throws {RequiredError}
3698
+ * @memberof RoleAssignmentApi
3699
+ */
3700
+ RoleAssignmentApi.prototype.removeTeammate = function (orgId, removeTeammateRequestBody, options) {
3701
+ var _this = this;
3702
+ return (0, exports.RoleAssignmentApiFp)(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3703
+ };
3704
+ return RoleAssignmentApi;
3705
+ }(base_1.BaseAPI));
3706
+ exports.RoleAssignmentApi = RoleAssignmentApi;
3707
+ /**
3708
+ * TimedAccessApi - axios parameter creator
3709
+ * @export
3710
+ */
3711
+ var TimedAccessApiAxiosParamCreator = function (configuration) {
3712
+ var _this = this;
3713
+ return {
3714
+ /**
3715
+ * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
3716
+ * @summary Create a timed access pass
3717
+ * @param {string} orgId
3718
+ * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
3719
+ * @param {*} [options] Override http request option.
3720
+ * @throws {RequiredError}
3721
+ */
3722
+ createTimedAccessGrant: function (orgId_1, timedAccessGrantRequestBody_1) {
3723
+ var args_1 = [];
3724
+ for (var _i = 2; _i < arguments.length; _i++) {
3725
+ args_1[_i - 2] = arguments[_i];
3726
+ }
3727
+ return __awaiter(_this, __spreadArray([orgId_1, timedAccessGrantRequestBody_1], args_1, true), void 0, function (orgId, timedAccessGrantRequestBody, options) {
3728
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3729
+ if (options === void 0) { options = {}; }
3730
+ return __generator(this, function (_a) {
3731
+ switch (_a.label) {
3732
+ case 0:
3733
+ // verify required parameter 'orgId' is not null or undefined
3734
+ (0, common_1.assertParamExists)('createTimedAccessGrant', 'orgId', orgId);
3735
+ localVarPath = "/timedAccess/orgs/{orgId}/grants"
3736
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3737
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3738
+ if (configuration) {
3739
+ baseOptions = configuration.baseOptions;
3740
+ }
3741
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3742
+ localVarHeaderParameter = {};
3743
+ localVarQueryParameter = {};
3744
+ // authentication ApiKeyAuth required
3745
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3746
+ case 1:
3747
+ // authentication ApiKeyAuth required
3748
+ _a.sent();
3749
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3750
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3751
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3752
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3753
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(timedAccessGrantRequestBody, localVarRequestOptions, configuration);
3754
+ return [2 /*return*/, {
3755
+ url: (0, common_1.toPathString)(localVarUrlObj),
3756
+ options: localVarRequestOptions,
3757
+ }];
3758
+ }
3759
+ });
3760
+ });
3761
+ },
3762
+ /**
3763
+ * Returns the authenticated caller\'s active pass for the requested org.
3764
+ * @summary List the caller\'s active timed access pass for an org
3765
+ * @param {string} orgId
3766
+ * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
3767
+ * @param {*} [options] Override http request option.
3768
+ * @throws {RequiredError}
3769
+ */
3770
+ listMyTimedAccessGrants: function (orgId_1, status_1) {
3771
+ var args_1 = [];
3772
+ for (var _i = 2; _i < arguments.length; _i++) {
3773
+ args_1[_i - 2] = arguments[_i];
3774
+ }
3775
+ return __awaiter(_this, __spreadArray([orgId_1, status_1], args_1, true), void 0, function (orgId, status, options) {
3776
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3777
+ if (options === void 0) { options = {}; }
3778
+ return __generator(this, function (_a) {
3779
+ switch (_a.label) {
3780
+ case 0:
3781
+ // verify required parameter 'orgId' is not null or undefined
3782
+ (0, common_1.assertParamExists)('listMyTimedAccessGrants', 'orgId', orgId);
3783
+ localVarPath = "/timedAccess/orgs/{orgId}/grants"
3784
+ .replace("{".concat("orgId", "}"), encodeURIComponent(String(orgId)));
3785
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3786
+ if (configuration) {
3787
+ baseOptions = configuration.baseOptions;
3788
+ }
3789
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3790
+ localVarHeaderParameter = {};
3791
+ localVarQueryParameter = {};
3792
+ // authentication ApiKeyAuth required
3793
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3794
+ case 1:
3795
+ // authentication ApiKeyAuth required
3796
+ _a.sent();
3797
+ if (status !== undefined) {
3798
+ localVarQueryParameter['status'] = status;
3799
+ }
3800
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3801
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3802
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3803
+ return [2 /*return*/, {
3804
+ url: (0, common_1.toPathString)(localVarUrlObj),
3805
+ options: localVarRequestOptions,
3806
+ }];
3807
+ }
3808
+ });
3809
+ });
3810
+ },
3811
+ };
3812
+ };
3813
+ exports.TimedAccessApiAxiosParamCreator = TimedAccessApiAxiosParamCreator;
3814
+ /**
3815
+ * TimedAccessApi - functional programming interface
3816
+ * @export
3817
+ */
3818
+ var TimedAccessApiFp = function (configuration) {
3819
+ var localVarAxiosParamCreator = (0, exports.TimedAccessApiAxiosParamCreator)(configuration);
3820
+ return {
3821
+ /**
3822
+ * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
3823
+ * @summary Create a timed access pass
3824
+ * @param {string} orgId
3825
+ * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
3826
+ * @param {*} [options] Override http request option.
3827
+ * @throws {RequiredError}
3828
+ */
3829
+ createTimedAccessGrant: function (orgId, timedAccessGrantRequestBody, options) {
3830
+ return __awaiter(this, void 0, void 0, function () {
3831
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3832
+ var _a, _b, _c;
3833
+ return __generator(this, function (_d) {
3834
+ switch (_d.label) {
3835
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options)];
3836
+ case 1:
3837
+ localVarAxiosArgs = _d.sent();
3838
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3839
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TimedAccessApi.createTimedAccessGrant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3840
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3841
+ }
3842
+ });
3843
+ });
3844
+ },
3845
+ /**
3846
+ * Returns the authenticated caller\'s active pass for the requested org.
3847
+ * @summary List the caller\'s active timed access pass for an org
3848
+ * @param {string} orgId
3849
+ * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
3850
+ * @param {*} [options] Override http request option.
3851
+ * @throws {RequiredError}
3852
+ */
3853
+ listMyTimedAccessGrants: function (orgId, status, options) {
3854
+ return __awaiter(this, void 0, void 0, function () {
3855
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3856
+ var _a, _b, _c;
3857
+ return __generator(this, function (_d) {
3858
+ switch (_d.label) {
3859
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listMyTimedAccessGrants(orgId, status, options)];
3860
+ case 1:
3861
+ localVarAxiosArgs = _d.sent();
3862
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3863
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TimedAccessApi.listMyTimedAccessGrants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3864
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3865
+ }
3866
+ });
3867
+ });
3868
+ },
3869
+ };
3870
+ };
3871
+ exports.TimedAccessApiFp = TimedAccessApiFp;
3872
+ /**
3873
+ * TimedAccessApi - factory interface
3874
+ * @export
3875
+ */
3876
+ var TimedAccessApiFactory = function (configuration, basePath, axios) {
3877
+ var localVarFp = (0, exports.TimedAccessApiFp)(configuration);
3878
+ return {
3879
+ /**
3880
+ * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
3881
+ * @summary Create a timed access pass
3882
+ * @param {string} orgId
3883
+ * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
3884
+ * @param {*} [options] Override http request option.
3885
+ * @throws {RequiredError}
3886
+ */
3887
+ createTimedAccessGrant: function (orgId, timedAccessGrantRequestBody, options) {
3888
+ return localVarFp.createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options).then(function (request) { return request(axios, basePath); });
3889
+ },
3890
+ /**
3891
+ * Returns the authenticated caller\'s active pass for the requested org.
3892
+ * @summary List the caller\'s active timed access pass for an org
3893
+ * @param {string} orgId
3894
+ * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
3895
+ * @param {*} [options] Override http request option.
3896
+ * @throws {RequiredError}
3897
+ */
3898
+ listMyTimedAccessGrants: function (orgId, status, options) {
3899
+ return localVarFp.listMyTimedAccessGrants(orgId, status, options).then(function (request) { return request(axios, basePath); });
3900
+ },
3901
+ };
3902
+ };
3903
+ exports.TimedAccessApiFactory = TimedAccessApiFactory;
3904
+ /**
3905
+ * TimedAccessApi - object-oriented interface
3906
+ * @export
3907
+ * @class TimedAccessApi
3908
+ * @extends {BaseAPI}
3909
+ */
3910
+ var TimedAccessApi = /** @class */ (function (_super) {
3911
+ __extends(TimedAccessApi, _super);
3912
+ function TimedAccessApi() {
3913
+ return _super !== null && _super.apply(this, arguments) || this;
3914
+ }
3915
+ /**
3916
+ * Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
3917
+ * @summary Create a timed access pass
3918
+ * @param {string} orgId
3919
+ * @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
3920
+ * @param {*} [options] Override http request option.
3921
+ * @throws {RequiredError}
3922
+ * @memberof TimedAccessApi
3923
+ */
3924
+ TimedAccessApi.prototype.createTimedAccessGrant = function (orgId, timedAccessGrantRequestBody, options) {
3925
+ var _this = this;
3926
+ return (0, exports.TimedAccessApiFp)(this.configuration).createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
3927
+ };
3928
+ /**
3929
+ * Returns the authenticated caller\'s active pass for the requested org.
3930
+ * @summary List the caller\'s active timed access pass for an org
3931
+ * @param {string} orgId
3932
+ * @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
3933
+ * @param {*} [options] Override http request option.
3934
+ * @throws {RequiredError}
3935
+ * @memberof TimedAccessApi
3936
+ */
3937
+ TimedAccessApi.prototype.listMyTimedAccessGrants = function (orgId, status, options) {
3938
+ var _this = this;
3939
+ return (0, exports.TimedAccessApiFp)(this.configuration).listMyTimedAccessGrants(orgId, status, options).then(function (request) { return request(_this.axios, _this.basePath); });
3940
+ };
3941
+ return TimedAccessApi;
3942
+ }(base_1.BaseAPI));
3943
+ exports.TimedAccessApi = TimedAccessApi;
3944
+ /**
3945
+ * @export
3946
+ */
3947
+ exports.ListMyTimedAccessGrantsStatusEnum = {
3948
+ Active: 'active'
3949
+ };
3225
3950
  /**
3226
3951
  * UserManagementApi - axios parameter creator
3227
3952
  * @export