@flipdish/authorization 0.0.474-rc.1789049032 → 0.0.476-rc.1789049776

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -2226,7 +2226,6 @@ export const Permissions = {
2226
2226
  CreateGlobalApiKey: 'CreateGlobalAPIKey',
2227
2227
  ListGlobalApiKeys: 'ListGlobalAPIKeys',
2228
2228
  BlockPrincipalAccess: 'BlockPrincipalAccess',
2229
- ListPrincipalOrgs: 'ListPrincipalOrgs',
2230
2229
  CreateMenu: 'CreateMenu',
2231
2230
  UpdateMenu: 'UpdateMenu',
2232
2231
  DeleteMenu: 'DeleteMenu',
@@ -2479,25 +2478,6 @@ export const PrincipalInOrgTypeEnum = {
2479
2478
 
2480
2479
  export type PrincipalInOrgTypeEnum = typeof PrincipalInOrgTypeEnum[keyof typeof PrincipalInOrgTypeEnum];
2481
2480
 
2482
- /**
2483
- * A principal and its org memberships, read straight from the principals store. These are the orgs the principal holds permission assignments in, which is a superset of the orgs any given action is allowed on. No policy evaluation is performed.
2484
- * @export
2485
- * @interface PrincipalOrgsResponse
2486
- */
2487
- export interface PrincipalOrgsResponse {
2488
- /**
2489
- *
2490
- * @type {AuthorizationRequestPrincipal}
2491
- * @memberof PrincipalOrgsResponse
2492
- */
2493
- 'principal': AuthorizationRequestPrincipal;
2494
- /**
2495
- * Org ids the principal holds permission assignments in, ascending
2496
- * @type {Array<string>}
2497
- * @memberof PrincipalOrgsResponse
2498
- */
2499
- 'orgIds': Array<string>;
2500
- }
2501
2481
  /**
2502
2482
  * Principals in org
2503
2483
  * @export
@@ -5949,117 +5929,6 @@ export const ListPrincipalAccessBlocksTypeEnum = {
5949
5929
  export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum];
5950
5930
 
5951
5931
 
5952
- /**
5953
- * PrincipalsApi - axios parameter creator
5954
- * @export
5955
- */
5956
- export const PrincipalsApiAxiosParamCreator = function (configuration?: Configuration) {
5957
- return {
5958
- /**
5959
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
5960
- * @summary Get principal org memberships
5961
- * @param {string} principalId
5962
- * @param {*} [options] Override http request option.
5963
- * @throws {RequiredError}
5964
- */
5965
- getPrincipalOrgs: async (principalId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5966
- // verify required parameter 'principalId' is not null or undefined
5967
- assertParamExists('getPrincipalOrgs', 'principalId', principalId)
5968
- const localVarPath = `/principals/{principalId}/orgs`
5969
- .replace(`{${"principalId"}}`, encodeURIComponent(String(principalId)));
5970
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5971
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5972
- let baseOptions;
5973
- if (configuration) {
5974
- baseOptions = configuration.baseOptions;
5975
- }
5976
-
5977
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5978
- const localVarHeaderParameter = {} as any;
5979
- const localVarQueryParameter = {} as any;
5980
-
5981
- // authentication ApiKeyAuth required
5982
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5983
-
5984
-
5985
-
5986
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5987
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5988
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5989
-
5990
- return {
5991
- url: toPathString(localVarUrlObj),
5992
- options: localVarRequestOptions,
5993
- };
5994
- },
5995
- }
5996
- };
5997
-
5998
- /**
5999
- * PrincipalsApi - functional programming interface
6000
- * @export
6001
- */
6002
- export const PrincipalsApiFp = function(configuration?: Configuration) {
6003
- const localVarAxiosParamCreator = PrincipalsApiAxiosParamCreator(configuration)
6004
- return {
6005
- /**
6006
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
6007
- * @summary Get principal org memberships
6008
- * @param {string} principalId
6009
- * @param {*} [options] Override http request option.
6010
- * @throws {RequiredError}
6011
- */
6012
- async getPrincipalOrgs(principalId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalOrgsResponse>> {
6013
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPrincipalOrgs(principalId, options);
6014
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6015
- const localVarOperationServerBasePath = operationServerMap['PrincipalsApi.getPrincipalOrgs']?.[localVarOperationServerIndex]?.url;
6016
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6017
- },
6018
- }
6019
- };
6020
-
6021
- /**
6022
- * PrincipalsApi - factory interface
6023
- * @export
6024
- */
6025
- export const PrincipalsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6026
- const localVarFp = PrincipalsApiFp(configuration)
6027
- return {
6028
- /**
6029
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
6030
- * @summary Get principal org memberships
6031
- * @param {string} principalId
6032
- * @param {*} [options] Override http request option.
6033
- * @throws {RequiredError}
6034
- */
6035
- getPrincipalOrgs(principalId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalOrgsResponse> {
6036
- return localVarFp.getPrincipalOrgs(principalId, options).then((request) => request(axios, basePath));
6037
- },
6038
- };
6039
- };
6040
-
6041
- /**
6042
- * PrincipalsApi - object-oriented interface
6043
- * @export
6044
- * @class PrincipalsApi
6045
- * @extends {BaseAPI}
6046
- */
6047
- export class PrincipalsApi extends BaseAPI {
6048
- /**
6049
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
6050
- * @summary Get principal org memberships
6051
- * @param {string} principalId
6052
- * @param {*} [options] Override http request option.
6053
- * @throws {RequiredError}
6054
- * @memberof PrincipalsApi
6055
- */
6056
- public getPrincipalOrgs(principalId: string, options?: RawAxiosRequestConfig) {
6057
- return PrincipalsApiFp(this.configuration).getPrincipalOrgs(principalId, options).then((request) => request(this.axios, this.basePath));
6058
- }
6059
- }
6060
-
6061
-
6062
-
6063
5932
  /**
6064
5933
  * RoleAssignmentApi - axios parameter creator
6065
5934
  * @export
package/configuration.ts CHANGED
@@ -100,7 +100,7 @@ export class Configuration {
100
100
 
101
101
  const extraHeaders = param.useDefaultUserAgent ? {} : {
102
102
  headers: {
103
- "user-agent": "Flipdish authorization typescript SDK / 0.0.474-rc.1789049032"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.476-rc.1789049776"
104
104
  }
105
105
  };
106
106
 
package/dist/api.d.ts CHANGED
@@ -2134,7 +2134,6 @@ export declare const Permissions: {
2134
2134
  readonly CreateGlobalApiKey: "CreateGlobalAPIKey";
2135
2135
  readonly ListGlobalApiKeys: "ListGlobalAPIKeys";
2136
2136
  readonly BlockPrincipalAccess: "BlockPrincipalAccess";
2137
- readonly ListPrincipalOrgs: "ListPrincipalOrgs";
2138
2137
  readonly CreateMenu: "CreateMenu";
2139
2138
  readonly UpdateMenu: "UpdateMenu";
2140
2139
  readonly DeleteMenu: "DeleteMenu";
@@ -2381,25 +2380,6 @@ export declare const PrincipalInOrgTypeEnum: {
2381
2380
  readonly Terminal: "Terminal";
2382
2381
  };
2383
2382
  export type PrincipalInOrgTypeEnum = typeof PrincipalInOrgTypeEnum[keyof typeof PrincipalInOrgTypeEnum];
2384
- /**
2385
- * A principal and its org memberships, read straight from the principals store. These are the orgs the principal holds permission assignments in, which is a superset of the orgs any given action is allowed on. No policy evaluation is performed.
2386
- * @export
2387
- * @interface PrincipalOrgsResponse
2388
- */
2389
- export interface PrincipalOrgsResponse {
2390
- /**
2391
- *
2392
- * @type {AuthorizationRequestPrincipal}
2393
- * @memberof PrincipalOrgsResponse
2394
- */
2395
- 'principal': AuthorizationRequestPrincipal;
2396
- /**
2397
- * Org ids the principal holds permission assignments in, ascending
2398
- * @type {Array<string>}
2399
- * @memberof PrincipalOrgsResponse
2400
- */
2401
- 'orgIds': Array<string>;
2402
- }
2403
2383
  /**
2404
2384
  * Principals in org
2405
2385
  * @export
@@ -4464,65 +4444,6 @@ export declare const ListPrincipalAccessBlocksTypeEnum: {
4464
4444
  readonly Terminal: "Terminal";
4465
4445
  };
4466
4446
  export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum];
4467
- /**
4468
- * PrincipalsApi - axios parameter creator
4469
- * @export
4470
- */
4471
- export declare const PrincipalsApiAxiosParamCreator: (configuration?: Configuration) => {
4472
- /**
4473
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
4474
- * @summary Get principal org memberships
4475
- * @param {string} principalId
4476
- * @param {*} [options] Override http request option.
4477
- * @throws {RequiredError}
4478
- */
4479
- getPrincipalOrgs: (principalId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4480
- };
4481
- /**
4482
- * PrincipalsApi - functional programming interface
4483
- * @export
4484
- */
4485
- export declare const PrincipalsApiFp: (configuration?: Configuration) => {
4486
- /**
4487
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
4488
- * @summary Get principal org memberships
4489
- * @param {string} principalId
4490
- * @param {*} [options] Override http request option.
4491
- * @throws {RequiredError}
4492
- */
4493
- getPrincipalOrgs(principalId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrincipalOrgsResponse>>;
4494
- };
4495
- /**
4496
- * PrincipalsApi - factory interface
4497
- * @export
4498
- */
4499
- export declare const PrincipalsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4500
- /**
4501
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
4502
- * @summary Get principal org memberships
4503
- * @param {string} principalId
4504
- * @param {*} [options] Override http request option.
4505
- * @throws {RequiredError}
4506
- */
4507
- getPrincipalOrgs(principalId: string, options?: RawAxiosRequestConfig): AxiosPromise<PrincipalOrgsResponse>;
4508
- };
4509
- /**
4510
- * PrincipalsApi - object-oriented interface
4511
- * @export
4512
- * @class PrincipalsApi
4513
- * @extends {BaseAPI}
4514
- */
4515
- export declare class PrincipalsApi extends BaseAPI {
4516
- /**
4517
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
4518
- * @summary Get principal org memberships
4519
- * @param {string} principalId
4520
- * @param {*} [options] Override http request option.
4521
- * @throws {RequiredError}
4522
- * @memberof PrincipalsApi
4523
- */
4524
- getPrincipalOrgs(principalId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PrincipalOrgsResponse, any, {}, any>>;
4525
- }
4526
4447
  /**
4527
4448
  * RoleAssignmentApi - axios parameter creator
4528
4449
  * @export
package/dist/api.js CHANGED
@@ -85,7 +85,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
87
  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.RoleLevelDefinitionScopeEnum = exports.RoleAssignmentRequestBodyPrincipalTypeEnum = exports.RoleAssignmentRequestBodyActorTypeEnum = exports.RoleAssignmentRequestBodyRoleNameEnum = exports.RemoveTeammateRequestBodyPrincipalTypeEnum = exports.RemoveTeammateRequestBodyActorTypeEnum = exports.PrincipalInOrgTypeEnum = exports.Permissions = exports.ListRoleDefinitionsSuccessResponseRolesInnerNameEnum = 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.AuthenticateApiKey200ResponseOkEnum = 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.PrincipalsApi = exports.PrincipalsApiFactory = exports.PrincipalsApiFp = exports.PrincipalsApiAxiosParamCreator = exports.ListPrincipalAccessBlocksTypeEnum = exports.GetPrincipalAccessBlockTypeEnum = exports.PrincipalAccessBlockApi = exports.PrincipalAccessBlockApiFactory = exports.PrincipalAccessBlockApiFp = exports.PrincipalAccessBlockApiAxiosParamCreator = exports.NamedRolesApi = exports.NamedRolesApiFactory = exports.NamedRolesApiFp = exports.NamedRolesApiAxiosParamCreator = 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 = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = 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.NamedRolesApi = exports.NamedRolesApiFactory = exports.NamedRolesApiFp = exports.NamedRolesApiAxiosParamCreator = 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 = exports.AuthorizationApiFactory = exports.AuthorizationApiFp = exports.AuthorizationApiAxiosParamCreator = void 0;
89
89
  var axios_1 = require("axios");
90
90
  // Some imports not used depending on template conditions
91
91
  // @ts-ignore
@@ -316,7 +316,6 @@ exports.Permissions = {
316
316
  CreateGlobalApiKey: 'CreateGlobalAPIKey',
317
317
  ListGlobalApiKeys: 'ListGlobalAPIKeys',
318
318
  BlockPrincipalAccess: 'BlockPrincipalAccess',
319
- ListPrincipalOrgs: 'ListPrincipalOrgs',
320
319
  CreateMenu: 'CreateMenu',
321
320
  UpdateMenu: 'UpdateMenu',
322
321
  DeleteMenu: 'DeleteMenu',
@@ -3800,140 +3799,6 @@ exports.ListPrincipalAccessBlocksTypeEnum = {
3800
3799
  Kiosk: 'Kiosk',
3801
3800
  Terminal: 'Terminal'
3802
3801
  };
3803
- /**
3804
- * PrincipalsApi - axios parameter creator
3805
- * @export
3806
- */
3807
- var PrincipalsApiAxiosParamCreator = function (configuration) {
3808
- var _this = this;
3809
- return {
3810
- /**
3811
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
3812
- * @summary Get principal org memberships
3813
- * @param {string} principalId
3814
- * @param {*} [options] Override http request option.
3815
- * @throws {RequiredError}
3816
- */
3817
- getPrincipalOrgs: function (principalId_1) {
3818
- var args_1 = [];
3819
- for (var _i = 1; _i < arguments.length; _i++) {
3820
- args_1[_i - 1] = arguments[_i];
3821
- }
3822
- return __awaiter(_this, __spreadArray([principalId_1], args_1, true), void 0, function (principalId, options) {
3823
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3824
- if (options === void 0) { options = {}; }
3825
- return __generator(this, function (_a) {
3826
- switch (_a.label) {
3827
- case 0:
3828
- // verify required parameter 'principalId' is not null or undefined
3829
- (0, common_1.assertParamExists)('getPrincipalOrgs', 'principalId', principalId);
3830
- localVarPath = "/principals/{principalId}/orgs"
3831
- .replace("{".concat("principalId", "}"), encodeURIComponent(String(principalId)));
3832
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3833
- if (configuration) {
3834
- baseOptions = configuration.baseOptions;
3835
- }
3836
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3837
- localVarHeaderParameter = {};
3838
- localVarQueryParameter = {};
3839
- // authentication ApiKeyAuth required
3840
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
3841
- case 1:
3842
- // authentication ApiKeyAuth required
3843
- _a.sent();
3844
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3845
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3846
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3847
- return [2 /*return*/, {
3848
- url: (0, common_1.toPathString)(localVarUrlObj),
3849
- options: localVarRequestOptions,
3850
- }];
3851
- }
3852
- });
3853
- });
3854
- },
3855
- };
3856
- };
3857
- exports.PrincipalsApiAxiosParamCreator = PrincipalsApiAxiosParamCreator;
3858
- /**
3859
- * PrincipalsApi - functional programming interface
3860
- * @export
3861
- */
3862
- var PrincipalsApiFp = function (configuration) {
3863
- var localVarAxiosParamCreator = (0, exports.PrincipalsApiAxiosParamCreator)(configuration);
3864
- return {
3865
- /**
3866
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
3867
- * @summary Get principal org memberships
3868
- * @param {string} principalId
3869
- * @param {*} [options] Override http request option.
3870
- * @throws {RequiredError}
3871
- */
3872
- getPrincipalOrgs: function (principalId, options) {
3873
- return __awaiter(this, void 0, void 0, function () {
3874
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3875
- var _a, _b, _c;
3876
- return __generator(this, function (_d) {
3877
- switch (_d.label) {
3878
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrincipalOrgs(principalId, options)];
3879
- case 1:
3880
- localVarAxiosArgs = _d.sent();
3881
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3882
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrincipalsApi.getPrincipalOrgs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3883
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3884
- }
3885
- });
3886
- });
3887
- },
3888
- };
3889
- };
3890
- exports.PrincipalsApiFp = PrincipalsApiFp;
3891
- /**
3892
- * PrincipalsApi - factory interface
3893
- * @export
3894
- */
3895
- var PrincipalsApiFactory = function (configuration, basePath, axios) {
3896
- var localVarFp = (0, exports.PrincipalsApiFp)(configuration);
3897
- return {
3898
- /**
3899
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
3900
- * @summary Get principal org memberships
3901
- * @param {string} principalId
3902
- * @param {*} [options] Override http request option.
3903
- * @throws {RequiredError}
3904
- */
3905
- getPrincipalOrgs: function (principalId, options) {
3906
- return localVarFp.getPrincipalOrgs(principalId, options).then(function (request) { return request(axios, basePath); });
3907
- },
3908
- };
3909
- };
3910
- exports.PrincipalsApiFactory = PrincipalsApiFactory;
3911
- /**
3912
- * PrincipalsApi - object-oriented interface
3913
- * @export
3914
- * @class PrincipalsApi
3915
- * @extends {BaseAPI}
3916
- */
3917
- var PrincipalsApi = /** @class */ (function (_super) {
3918
- __extends(PrincipalsApi, _super);
3919
- function PrincipalsApi() {
3920
- return _super !== null && _super.apply(this, arguments) || this;
3921
- }
3922
- /**
3923
- * Returns the principal and the orgs it holds permission assignments in, read from the principals store with no policy evaluation. This is a superset of the orgs any single action is allowed on, so it is a sound negative filter (no membership means no permission) but not an authoritative allow. Intended as a cheap prefilter ahead of /authorize/batch/checks; use /getAuthorizedOrgs when you need a per-action answer. Requires ListPrincipalOrgs.
3924
- * @summary Get principal org memberships
3925
- * @param {string} principalId
3926
- * @param {*} [options] Override http request option.
3927
- * @throws {RequiredError}
3928
- * @memberof PrincipalsApi
3929
- */
3930
- PrincipalsApi.prototype.getPrincipalOrgs = function (principalId, options) {
3931
- var _this = this;
3932
- return (0, exports.PrincipalsApiFp)(this.configuration).getPrincipalOrgs(principalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3933
- };
3934
- return PrincipalsApi;
3935
- }(base_1.BaseAPI));
3936
- exports.PrincipalsApi = PrincipalsApi;
3937
3802
  /**
3938
3803
  * RoleAssignmentApi - axios parameter creator
3939
3804
  * @export
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
36
36
  this.serverIndex = param.serverIndex;
37
37
  var extraHeaders = param.useDefaultUserAgent ? {} : {
38
38
  headers: {
39
- "user-agent": "Flipdish authorization typescript SDK / 0.0.474-rc.1789049032"
39
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.476-rc.1789049776"
40
40
  }
41
41
  };
42
42
  this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/authorization",
3
- "version": "0.0.474-rc.1789049032",
3
+ "version": "0.0.476-rc.1789049776",
4
4
  "description": "OpenAPI client for @flipdish/authorization",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {