@flipdish/authorization 0.0.474-rc.1789049032 → 0.0.475-rc.1789049557
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 +91 -131
- package/configuration.ts +1 -1
- package/dist/api.d.ts +52 -79
- package/dist/api.js +91 -136
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1913,6 +1913,25 @@ export interface ListJoinRequestsResponse {
|
|
|
1913
1913
|
*/
|
|
1914
1914
|
'items': Array<GetJoinAccessRequest200Response>;
|
|
1915
1915
|
}
|
|
1916
|
+
/**
|
|
1917
|
+
* The named roles held by a user
|
|
1918
|
+
* @export
|
|
1919
|
+
* @interface ListNamedRolesResponse
|
|
1920
|
+
*/
|
|
1921
|
+
export interface ListNamedRolesResponse {
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @type {string}
|
|
1925
|
+
* @memberof ListNamedRolesResponse
|
|
1926
|
+
*/
|
|
1927
|
+
'userId': string;
|
|
1928
|
+
/**
|
|
1929
|
+
* The named roles currently held by this user
|
|
1930
|
+
* @type {Array<RoleNames>}
|
|
1931
|
+
* @memberof ListNamedRolesResponse
|
|
1932
|
+
*/
|
|
1933
|
+
'roles': Array<RoleNames>;
|
|
1934
|
+
}
|
|
1916
1935
|
/**
|
|
1917
1936
|
*
|
|
1918
1937
|
* @export
|
|
@@ -2226,7 +2245,6 @@ export const Permissions = {
|
|
|
2226
2245
|
CreateGlobalApiKey: 'CreateGlobalAPIKey',
|
|
2227
2246
|
ListGlobalApiKeys: 'ListGlobalAPIKeys',
|
|
2228
2247
|
BlockPrincipalAccess: 'BlockPrincipalAccess',
|
|
2229
|
-
ListPrincipalOrgs: 'ListPrincipalOrgs',
|
|
2230
2248
|
CreateMenu: 'CreateMenu',
|
|
2231
2249
|
UpdateMenu: 'UpdateMenu',
|
|
2232
2250
|
DeleteMenu: 'DeleteMenu',
|
|
@@ -2479,25 +2497,6 @@ export const PrincipalInOrgTypeEnum = {
|
|
|
2479
2497
|
|
|
2480
2498
|
export type PrincipalInOrgTypeEnum = typeof PrincipalInOrgTypeEnum[keyof typeof PrincipalInOrgTypeEnum];
|
|
2481
2499
|
|
|
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
2500
|
/**
|
|
2502
2501
|
* Principals in org
|
|
2503
2502
|
* @export
|
|
@@ -5448,6 +5447,43 @@ export const NamedRolesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
5448
5447
|
options: localVarRequestOptions,
|
|
5449
5448
|
};
|
|
5450
5449
|
},
|
|
5450
|
+
/**
|
|
5451
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
5452
|
+
* @summary List named roles for a user
|
|
5453
|
+
* @param {string} principalId
|
|
5454
|
+
* @param {*} [options] Override http request option.
|
|
5455
|
+
* @throws {RequiredError}
|
|
5456
|
+
*/
|
|
5457
|
+
listNamedRoles: async (principalId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5458
|
+
// verify required parameter 'principalId' is not null or undefined
|
|
5459
|
+
assertParamExists('listNamedRoles', 'principalId', principalId)
|
|
5460
|
+
const localVarPath = `/namedRoles/{principalId}`
|
|
5461
|
+
.replace(`{${"principalId"}}`, encodeURIComponent(String(principalId)));
|
|
5462
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5463
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5464
|
+
let baseOptions;
|
|
5465
|
+
if (configuration) {
|
|
5466
|
+
baseOptions = configuration.baseOptions;
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5469
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5470
|
+
const localVarHeaderParameter = {} as any;
|
|
5471
|
+
const localVarQueryParameter = {} as any;
|
|
5472
|
+
|
|
5473
|
+
// authentication ApiKeyAuth required
|
|
5474
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5475
|
+
|
|
5476
|
+
|
|
5477
|
+
|
|
5478
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5480
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5481
|
+
|
|
5482
|
+
return {
|
|
5483
|
+
url: toPathString(localVarUrlObj),
|
|
5484
|
+
options: localVarRequestOptions,
|
|
5485
|
+
};
|
|
5486
|
+
},
|
|
5451
5487
|
/**
|
|
5452
5488
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
5453
5489
|
* @summary Remove a named role
|
|
@@ -5508,6 +5544,19 @@ export const NamedRolesApiFp = function(configuration?: Configuration) {
|
|
|
5508
5544
|
const localVarOperationServerBasePath = operationServerMap['NamedRolesApi.applyNamedRole']?.[localVarOperationServerIndex]?.url;
|
|
5509
5545
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5510
5546
|
},
|
|
5547
|
+
/**
|
|
5548
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
5549
|
+
* @summary List named roles for a user
|
|
5550
|
+
* @param {string} principalId
|
|
5551
|
+
* @param {*} [options] Override http request option.
|
|
5552
|
+
* @throws {RequiredError}
|
|
5553
|
+
*/
|
|
5554
|
+
async listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNamedRolesResponse>> {
|
|
5555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNamedRoles(principalId, options);
|
|
5556
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5557
|
+
const localVarOperationServerBasePath = operationServerMap['NamedRolesApi.listNamedRoles']?.[localVarOperationServerIndex]?.url;
|
|
5558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5559
|
+
},
|
|
5511
5560
|
/**
|
|
5512
5561
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
5513
5562
|
* @summary Remove a named role
|
|
@@ -5541,6 +5590,16 @@ export const NamedRolesApiFactory = function (configuration?: Configuration, bas
|
|
|
5541
5590
|
applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<NamedRoleAssignmentResponse> {
|
|
5542
5591
|
return localVarFp.applyNamedRole(applyNamedRoleRequestBody, options).then((request) => request(axios, basePath));
|
|
5543
5592
|
},
|
|
5593
|
+
/**
|
|
5594
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
5595
|
+
* @summary List named roles for a user
|
|
5596
|
+
* @param {string} principalId
|
|
5597
|
+
* @param {*} [options] Override http request option.
|
|
5598
|
+
* @throws {RequiredError}
|
|
5599
|
+
*/
|
|
5600
|
+
listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): AxiosPromise<ListNamedRolesResponse> {
|
|
5601
|
+
return localVarFp.listNamedRoles(principalId, options).then((request) => request(axios, basePath));
|
|
5602
|
+
},
|
|
5544
5603
|
/**
|
|
5545
5604
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
5546
5605
|
* @summary Remove a named role
|
|
@@ -5573,6 +5632,18 @@ export class NamedRolesApi extends BaseAPI {
|
|
|
5573
5632
|
return NamedRolesApiFp(this.configuration).applyNamedRole(applyNamedRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
5574
5633
|
}
|
|
5575
5634
|
|
|
5635
|
+
/**
|
|
5636
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
5637
|
+
* @summary List named roles for a user
|
|
5638
|
+
* @param {string} principalId
|
|
5639
|
+
* @param {*} [options] Override http request option.
|
|
5640
|
+
* @throws {RequiredError}
|
|
5641
|
+
* @memberof NamedRolesApi
|
|
5642
|
+
*/
|
|
5643
|
+
public listNamedRoles(principalId: string, options?: RawAxiosRequestConfig) {
|
|
5644
|
+
return NamedRolesApiFp(this.configuration).listNamedRoles(principalId, options).then((request) => request(this.axios, this.basePath));
|
|
5645
|
+
}
|
|
5646
|
+
|
|
5576
5647
|
/**
|
|
5577
5648
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
5578
5649
|
* @summary Remove a named role
|
|
@@ -5949,117 +6020,6 @@ export const ListPrincipalAccessBlocksTypeEnum = {
|
|
|
5949
6020
|
export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum];
|
|
5950
6021
|
|
|
5951
6022
|
|
|
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
6023
|
/**
|
|
6064
6024
|
* RoleAssignmentApi - axios parameter creator
|
|
6065
6025
|
* @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.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.475-rc.1789049557"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1830,6 +1830,25 @@ export interface ListJoinRequestsResponse {
|
|
|
1830
1830
|
*/
|
|
1831
1831
|
'items': Array<GetJoinAccessRequest200Response>;
|
|
1832
1832
|
}
|
|
1833
|
+
/**
|
|
1834
|
+
* The named roles held by a user
|
|
1835
|
+
* @export
|
|
1836
|
+
* @interface ListNamedRolesResponse
|
|
1837
|
+
*/
|
|
1838
|
+
export interface ListNamedRolesResponse {
|
|
1839
|
+
/**
|
|
1840
|
+
*
|
|
1841
|
+
* @type {string}
|
|
1842
|
+
* @memberof ListNamedRolesResponse
|
|
1843
|
+
*/
|
|
1844
|
+
'userId': string;
|
|
1845
|
+
/**
|
|
1846
|
+
* The named roles currently held by this user
|
|
1847
|
+
* @type {Array<RoleNames>}
|
|
1848
|
+
* @memberof ListNamedRolesResponse
|
|
1849
|
+
*/
|
|
1850
|
+
'roles': Array<RoleNames>;
|
|
1851
|
+
}
|
|
1833
1852
|
/**
|
|
1834
1853
|
*
|
|
1835
1854
|
* @export
|
|
@@ -2134,7 +2153,6 @@ export declare const Permissions: {
|
|
|
2134
2153
|
readonly CreateGlobalApiKey: "CreateGlobalAPIKey";
|
|
2135
2154
|
readonly ListGlobalApiKeys: "ListGlobalAPIKeys";
|
|
2136
2155
|
readonly BlockPrincipalAccess: "BlockPrincipalAccess";
|
|
2137
|
-
readonly ListPrincipalOrgs: "ListPrincipalOrgs";
|
|
2138
2156
|
readonly CreateMenu: "CreateMenu";
|
|
2139
2157
|
readonly UpdateMenu: "UpdateMenu";
|
|
2140
2158
|
readonly DeleteMenu: "DeleteMenu";
|
|
@@ -2381,25 +2399,6 @@ export declare const PrincipalInOrgTypeEnum: {
|
|
|
2381
2399
|
readonly Terminal: "Terminal";
|
|
2382
2400
|
};
|
|
2383
2401
|
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
2402
|
/**
|
|
2404
2403
|
* Principals in org
|
|
2405
2404
|
* @export
|
|
@@ -4203,6 +4202,14 @@ export declare const NamedRolesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
4203
4202
|
* @throws {RequiredError}
|
|
4204
4203
|
*/
|
|
4205
4204
|
applyNamedRole: (applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4205
|
+
/**
|
|
4206
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
4207
|
+
* @summary List named roles for a user
|
|
4208
|
+
* @param {string} principalId
|
|
4209
|
+
* @param {*} [options] Override http request option.
|
|
4210
|
+
* @throws {RequiredError}
|
|
4211
|
+
*/
|
|
4212
|
+
listNamedRoles: (principalId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4206
4213
|
/**
|
|
4207
4214
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
4208
4215
|
* @summary Remove a named role
|
|
@@ -4225,6 +4232,14 @@ export declare const NamedRolesApiFp: (configuration?: Configuration) => {
|
|
|
4225
4232
|
* @throws {RequiredError}
|
|
4226
4233
|
*/
|
|
4227
4234
|
applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NamedRoleAssignmentResponse>>;
|
|
4235
|
+
/**
|
|
4236
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
4237
|
+
* @summary List named roles for a user
|
|
4238
|
+
* @param {string} principalId
|
|
4239
|
+
* @param {*} [options] Override http request option.
|
|
4240
|
+
* @throws {RequiredError}
|
|
4241
|
+
*/
|
|
4242
|
+
listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNamedRolesResponse>>;
|
|
4228
4243
|
/**
|
|
4229
4244
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
4230
4245
|
* @summary Remove a named role
|
|
@@ -4247,6 +4262,14 @@ export declare const NamedRolesApiFactory: (configuration?: Configuration, baseP
|
|
|
4247
4262
|
* @throws {RequiredError}
|
|
4248
4263
|
*/
|
|
4249
4264
|
applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<NamedRoleAssignmentResponse>;
|
|
4265
|
+
/**
|
|
4266
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
4267
|
+
* @summary List named roles for a user
|
|
4268
|
+
* @param {string} principalId
|
|
4269
|
+
* @param {*} [options] Override http request option.
|
|
4270
|
+
* @throws {RequiredError}
|
|
4271
|
+
*/
|
|
4272
|
+
listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): AxiosPromise<ListNamedRolesResponse>;
|
|
4250
4273
|
/**
|
|
4251
4274
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
4252
4275
|
* @summary Remove a named role
|
|
@@ -4272,6 +4295,15 @@ export declare class NamedRolesApi extends BaseAPI {
|
|
|
4272
4295
|
* @memberof NamedRolesApi
|
|
4273
4296
|
*/
|
|
4274
4297
|
applyNamedRole(applyNamedRoleRequestBody?: ApplyNamedRoleRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NamedRoleAssignmentResponse, any, {}, any>>;
|
|
4298
|
+
/**
|
|
4299
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
4300
|
+
* @summary List named roles for a user
|
|
4301
|
+
* @param {string} principalId
|
|
4302
|
+
* @param {*} [options] Override http request option.
|
|
4303
|
+
* @throws {RequiredError}
|
|
4304
|
+
* @memberof NamedRolesApi
|
|
4305
|
+
*/
|
|
4306
|
+
listNamedRoles(principalId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNamedRolesResponse, any, {}, any>>;
|
|
4275
4307
|
/**
|
|
4276
4308
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
4277
4309
|
* @summary Remove a named role
|
|
@@ -4464,65 +4496,6 @@ export declare const ListPrincipalAccessBlocksTypeEnum: {
|
|
|
4464
4496
|
readonly Terminal: "Terminal";
|
|
4465
4497
|
};
|
|
4466
4498
|
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
4499
|
/**
|
|
4527
4500
|
* RoleAssignmentApi - axios parameter creator
|
|
4528
4501
|
* @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.
|
|
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',
|
|
@@ -3198,6 +3197,51 @@ var NamedRolesApiAxiosParamCreator = function (configuration) {
|
|
|
3198
3197
|
});
|
|
3199
3198
|
});
|
|
3200
3199
|
},
|
|
3200
|
+
/**
|
|
3201
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3202
|
+
* @summary List named roles for a user
|
|
3203
|
+
* @param {string} principalId
|
|
3204
|
+
* @param {*} [options] Override http request option.
|
|
3205
|
+
* @throws {RequiredError}
|
|
3206
|
+
*/
|
|
3207
|
+
listNamedRoles: function (principalId_1) {
|
|
3208
|
+
var args_1 = [];
|
|
3209
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3210
|
+
args_1[_i - 1] = arguments[_i];
|
|
3211
|
+
}
|
|
3212
|
+
return __awaiter(_this, __spreadArray([principalId_1], args_1, true), void 0, function (principalId, options) {
|
|
3213
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3214
|
+
if (options === void 0) { options = {}; }
|
|
3215
|
+
return __generator(this, function (_a) {
|
|
3216
|
+
switch (_a.label) {
|
|
3217
|
+
case 0:
|
|
3218
|
+
// verify required parameter 'principalId' is not null or undefined
|
|
3219
|
+
(0, common_1.assertParamExists)('listNamedRoles', 'principalId', principalId);
|
|
3220
|
+
localVarPath = "/namedRoles/{principalId}"
|
|
3221
|
+
.replace("{".concat("principalId", "}"), encodeURIComponent(String(principalId)));
|
|
3222
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3223
|
+
if (configuration) {
|
|
3224
|
+
baseOptions = configuration.baseOptions;
|
|
3225
|
+
}
|
|
3226
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3227
|
+
localVarHeaderParameter = {};
|
|
3228
|
+
localVarQueryParameter = {};
|
|
3229
|
+
// authentication ApiKeyAuth required
|
|
3230
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
3231
|
+
case 1:
|
|
3232
|
+
// authentication ApiKeyAuth required
|
|
3233
|
+
_a.sent();
|
|
3234
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3235
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3236
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3237
|
+
return [2 /*return*/, {
|
|
3238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3239
|
+
options: localVarRequestOptions,
|
|
3240
|
+
}];
|
|
3241
|
+
}
|
|
3242
|
+
});
|
|
3243
|
+
});
|
|
3244
|
+
},
|
|
3201
3245
|
/**
|
|
3202
3246
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3203
3247
|
* @summary Remove a named role
|
|
@@ -3275,6 +3319,29 @@ var NamedRolesApiFp = function (configuration) {
|
|
|
3275
3319
|
});
|
|
3276
3320
|
});
|
|
3277
3321
|
},
|
|
3322
|
+
/**
|
|
3323
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3324
|
+
* @summary List named roles for a user
|
|
3325
|
+
* @param {string} principalId
|
|
3326
|
+
* @param {*} [options] Override http request option.
|
|
3327
|
+
* @throws {RequiredError}
|
|
3328
|
+
*/
|
|
3329
|
+
listNamedRoles: function (principalId, options) {
|
|
3330
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3331
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3332
|
+
var _a, _b, _c;
|
|
3333
|
+
return __generator(this, function (_d) {
|
|
3334
|
+
switch (_d.label) {
|
|
3335
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listNamedRoles(principalId, options)];
|
|
3336
|
+
case 1:
|
|
3337
|
+
localVarAxiosArgs = _d.sent();
|
|
3338
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3339
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NamedRolesApi.listNamedRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3340
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3341
|
+
}
|
|
3342
|
+
});
|
|
3343
|
+
});
|
|
3344
|
+
},
|
|
3278
3345
|
/**
|
|
3279
3346
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3280
3347
|
* @summary Remove a named role
|
|
@@ -3318,6 +3385,16 @@ var NamedRolesApiFactory = function (configuration, basePath, axios) {
|
|
|
3318
3385
|
applyNamedRole: function (applyNamedRoleRequestBody, options) {
|
|
3319
3386
|
return localVarFp.applyNamedRole(applyNamedRoleRequestBody, options).then(function (request) { return request(axios, basePath); });
|
|
3320
3387
|
},
|
|
3388
|
+
/**
|
|
3389
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3390
|
+
* @summary List named roles for a user
|
|
3391
|
+
* @param {string} principalId
|
|
3392
|
+
* @param {*} [options] Override http request option.
|
|
3393
|
+
* @throws {RequiredError}
|
|
3394
|
+
*/
|
|
3395
|
+
listNamedRoles: function (principalId, options) {
|
|
3396
|
+
return localVarFp.listNamedRoles(principalId, options).then(function (request) { return request(axios, basePath); });
|
|
3397
|
+
},
|
|
3321
3398
|
/**
|
|
3322
3399
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3323
3400
|
* @summary Remove a named role
|
|
@@ -3354,6 +3431,18 @@ var NamedRolesApi = /** @class */ (function (_super) {
|
|
|
3354
3431
|
var _this = this;
|
|
3355
3432
|
return (0, exports.NamedRolesApiFp)(this.configuration).applyNamedRole(applyNamedRoleRequestBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3356
3433
|
};
|
|
3434
|
+
/**
|
|
3435
|
+
* Lists the named roles currently held by the given user. No org context needed, since named roles are global. Caller must hold Admin, Factory, or AuthDeveloper.
|
|
3436
|
+
* @summary List named roles for a user
|
|
3437
|
+
* @param {string} principalId
|
|
3438
|
+
* @param {*} [options] Override http request option.
|
|
3439
|
+
* @throws {RequiredError}
|
|
3440
|
+
* @memberof NamedRolesApi
|
|
3441
|
+
*/
|
|
3442
|
+
NamedRolesApi.prototype.listNamedRoles = function (principalId, options) {
|
|
3443
|
+
var _this = this;
|
|
3444
|
+
return (0, exports.NamedRolesApiFp)(this.configuration).listNamedRoles(principalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3445
|
+
};
|
|
3357
3446
|
/**
|
|
3358
3447
|
* Removes the named role given in the body so the user can no longer act as it. Does not end passes already held; those run to their own expiry. Subject to the same privilege-level gate and AuthDeveloper block as assignment. Mirrors /orgs/{orgId}/roleAssignments/remove.
|
|
3359
3448
|
* @summary Remove a named role
|
|
@@ -3800,140 +3889,6 @@ exports.ListPrincipalAccessBlocksTypeEnum = {
|
|
|
3800
3889
|
Kiosk: 'Kiosk',
|
|
3801
3890
|
Terminal: 'Terminal'
|
|
3802
3891
|
};
|
|
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
3892
|
/**
|
|
3938
3893
|
* RoleAssignmentApi - axios parameter creator
|
|
3939
3894
|
* @export
|
package/dist/configuration.js
CHANGED
|
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
|
|
|
36
36
|
this.serverIndex = param.serverIndex;
|
|
37
37
|
var extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
38
38
|
headers: {
|
|
39
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.475-rc.1789049557"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|
package/package.json
CHANGED