@flipdish/authorization 0.0.351-rc.1787593978 → 0.0.352-rc.1787648484
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 +544 -0
- package/configuration.ts +1 -1
- package/dist/api.d.ts +359 -0
- package/dist/api.js +444 -2
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,116 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AccessBlockStateResponse
|
|
30
|
+
*/
|
|
31
|
+
export interface AccessBlockStateResponse {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
35
|
+
* @memberof AccessBlockStateResponse
|
|
36
|
+
*/
|
|
37
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccessBlockStateResponse
|
|
42
|
+
*/
|
|
43
|
+
'reason'?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccessBlockStateResponse
|
|
48
|
+
*/
|
|
49
|
+
'blockedAt': string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AccessBlockStateResponseBlockedBlockedBy}
|
|
53
|
+
* @memberof AccessBlockStateResponse
|
|
54
|
+
*/
|
|
55
|
+
'blockedBy': AccessBlockStateResponseBlockedBlockedBy;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
* @interface AccessBlockStateResponseBlocked
|
|
61
|
+
*/
|
|
62
|
+
export interface AccessBlockStateResponseBlocked {
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
66
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
67
|
+
*/
|
|
68
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
73
|
+
*/
|
|
74
|
+
'reason'?: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
79
|
+
*/
|
|
80
|
+
'blockedAt': string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {AccessBlockStateResponseBlockedBlockedBy}
|
|
84
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
85
|
+
*/
|
|
86
|
+
'blockedBy': AccessBlockStateResponseBlockedBlockedBy;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface AccessBlockStateResponseBlockedBlockedBy
|
|
92
|
+
*/
|
|
93
|
+
export interface AccessBlockStateResponseBlockedBlockedBy {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AccessBlockStateResponseBlockedBlockedBy
|
|
98
|
+
*/
|
|
99
|
+
'principalId': string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof AccessBlockStateResponseBlockedBlockedBy
|
|
104
|
+
*/
|
|
105
|
+
'email': string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @export
|
|
110
|
+
* @interface AccessBlockStateResponseBlockedPrincipal
|
|
111
|
+
*/
|
|
112
|
+
export interface AccessBlockStateResponseBlockedPrincipal {
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof AccessBlockStateResponseBlockedPrincipal
|
|
117
|
+
*/
|
|
118
|
+
'type': AccessBlockStateResponseBlockedPrincipalTypeEnum;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof AccessBlockStateResponseBlockedPrincipal
|
|
123
|
+
*/
|
|
124
|
+
'id': string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const AccessBlockStateResponseBlockedPrincipalTypeEnum = {
|
|
128
|
+
User: 'User',
|
|
129
|
+
Automation: 'Automation',
|
|
130
|
+
Kiosk: 'Kiosk',
|
|
131
|
+
Terminal: 'Terminal'
|
|
132
|
+
} as const;
|
|
133
|
+
|
|
134
|
+
export type AccessBlockStateResponseBlockedPrincipalTypeEnum = typeof AccessBlockStateResponseBlockedPrincipalTypeEnum[keyof typeof AccessBlockStateResponseBlockedPrincipalTypeEnum];
|
|
135
|
+
|
|
26
136
|
/**
|
|
27
137
|
*
|
|
28
138
|
* @export
|
|
@@ -756,6 +866,25 @@ export interface AuthorizeBatchChecks400ResponseAnyOfInner {
|
|
|
756
866
|
*/
|
|
757
867
|
export interface AuthorizeBatchChecks400ResponseAnyOfInnerPathInner {
|
|
758
868
|
}
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @export
|
|
872
|
+
* @interface BlockPrincipalAccessRequest
|
|
873
|
+
*/
|
|
874
|
+
export interface BlockPrincipalAccessRequest {
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
878
|
+
* @memberof BlockPrincipalAccessRequest
|
|
879
|
+
*/
|
|
880
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @type {string}
|
|
884
|
+
* @memberof BlockPrincipalAccessRequest
|
|
885
|
+
*/
|
|
886
|
+
'reason'?: string;
|
|
887
|
+
}
|
|
759
888
|
/**
|
|
760
889
|
*
|
|
761
890
|
* @export
|
|
@@ -1763,6 +1892,19 @@ export interface ListPermissionsSuccessResponse {
|
|
|
1763
1892
|
*/
|
|
1764
1893
|
'permissions': Permissions & Array<Permissions>;
|
|
1765
1894
|
}
|
|
1895
|
+
/**
|
|
1896
|
+
*
|
|
1897
|
+
* @export
|
|
1898
|
+
* @interface ListPrincipalAccessBlocksResponse
|
|
1899
|
+
*/
|
|
1900
|
+
export interface ListPrincipalAccessBlocksResponse {
|
|
1901
|
+
/**
|
|
1902
|
+
*
|
|
1903
|
+
* @type {Array<AccessBlockStateResponse>}
|
|
1904
|
+
* @memberof ListPrincipalAccessBlocksResponse
|
|
1905
|
+
*/
|
|
1906
|
+
'items': Array<AccessBlockStateResponse>;
|
|
1907
|
+
}
|
|
1766
1908
|
/**
|
|
1767
1909
|
* Successful roles retrieval response
|
|
1768
1910
|
* @export
|
|
@@ -1859,6 +2001,7 @@ export const Permissions = {
|
|
|
1859
2001
|
ViewMenu: 'ViewMenu',
|
|
1860
2002
|
CreateGlobalApiKey: 'CreateGlobalAPIKey',
|
|
1861
2003
|
ListGlobalApiKeys: 'ListGlobalAPIKeys',
|
|
2004
|
+
BlockPrincipalAccess: 'BlockPrincipalAccess',
|
|
1862
2005
|
CreateMenu: 'CreateMenu',
|
|
1863
2006
|
UpdateMenu: 'UpdateMenu',
|
|
1864
2007
|
DeleteMenu: 'DeleteMenu',
|
|
@@ -2762,6 +2905,46 @@ export const StaffAccessGrantResponseStatusEnum = {
|
|
|
2762
2905
|
|
|
2763
2906
|
export type StaffAccessGrantResponseStatusEnum = typeof StaffAccessGrantResponseStatusEnum[keyof typeof StaffAccessGrantResponseStatusEnum];
|
|
2764
2907
|
|
|
2908
|
+
/**
|
|
2909
|
+
*
|
|
2910
|
+
* @export
|
|
2911
|
+
* @interface UnblockPrincipalAccessRequest
|
|
2912
|
+
*/
|
|
2913
|
+
export interface UnblockPrincipalAccessRequest {
|
|
2914
|
+
/**
|
|
2915
|
+
*
|
|
2916
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
2917
|
+
* @memberof UnblockPrincipalAccessRequest
|
|
2918
|
+
*/
|
|
2919
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
2920
|
+
}
|
|
2921
|
+
/**
|
|
2922
|
+
*
|
|
2923
|
+
* @export
|
|
2924
|
+
* @interface UnblockPrincipalAccessResponse
|
|
2925
|
+
*/
|
|
2926
|
+
export interface UnblockPrincipalAccessResponse {
|
|
2927
|
+
/**
|
|
2928
|
+
*
|
|
2929
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
2930
|
+
* @memberof UnblockPrincipalAccessResponse
|
|
2931
|
+
*/
|
|
2932
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
2933
|
+
/**
|
|
2934
|
+
*
|
|
2935
|
+
* @type {string}
|
|
2936
|
+
* @memberof UnblockPrincipalAccessResponse
|
|
2937
|
+
*/
|
|
2938
|
+
'status': UnblockPrincipalAccessResponseStatusEnum;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
export const UnblockPrincipalAccessResponseStatusEnum = {
|
|
2942
|
+
RestorationInProgress: 'restoration_in_progress',
|
|
2943
|
+
NotBlocked: 'not_blocked'
|
|
2944
|
+
} as const;
|
|
2945
|
+
|
|
2946
|
+
export type UnblockPrincipalAccessResponseStatusEnum = typeof UnblockPrincipalAccessResponseStatusEnum[keyof typeof UnblockPrincipalAccessResponseStatusEnum];
|
|
2947
|
+
|
|
2765
2948
|
/**
|
|
2766
2949
|
*
|
|
2767
2950
|
* @export
|
|
@@ -4754,6 +4937,367 @@ export class JoinAccessApi extends BaseAPI {
|
|
|
4754
4937
|
|
|
4755
4938
|
|
|
4756
4939
|
|
|
4940
|
+
/**
|
|
4941
|
+
* PrincipalAccessBlockApi - axios parameter creator
|
|
4942
|
+
* @export
|
|
4943
|
+
*/
|
|
4944
|
+
export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4945
|
+
return {
|
|
4946
|
+
/**
|
|
4947
|
+
* 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.
|
|
4948
|
+
* @summary Block principal access
|
|
4949
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
4950
|
+
* @param {*} [options] Override http request option.
|
|
4951
|
+
* @throws {RequiredError}
|
|
4952
|
+
*/
|
|
4953
|
+
blockPrincipalAccess: async (blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4954
|
+
const localVarPath = `/principals/block`;
|
|
4955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4957
|
+
let baseOptions;
|
|
4958
|
+
if (configuration) {
|
|
4959
|
+
baseOptions = configuration.baseOptions;
|
|
4960
|
+
}
|
|
4961
|
+
|
|
4962
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4963
|
+
const localVarHeaderParameter = {} as any;
|
|
4964
|
+
const localVarQueryParameter = {} as any;
|
|
4965
|
+
|
|
4966
|
+
// authentication ApiKeyAuth required
|
|
4967
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4968
|
+
|
|
4969
|
+
|
|
4970
|
+
|
|
4971
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4972
|
+
|
|
4973
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4974
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4975
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4976
|
+
localVarRequestOptions.data = serializeDataIfNeeded(blockPrincipalAccessRequest, localVarRequestOptions, configuration)
|
|
4977
|
+
|
|
4978
|
+
return {
|
|
4979
|
+
url: toPathString(localVarUrlObj),
|
|
4980
|
+
options: localVarRequestOptions,
|
|
4981
|
+
};
|
|
4982
|
+
},
|
|
4983
|
+
/**
|
|
4984
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
4985
|
+
* @summary Get principal access block
|
|
4986
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
4987
|
+
* @param {string} id
|
|
4988
|
+
* @param {*} [options] Override http request option.
|
|
4989
|
+
* @throws {RequiredError}
|
|
4990
|
+
*/
|
|
4991
|
+
getPrincipalAccessBlock: async (type: GetPrincipalAccessBlockTypeEnum, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4992
|
+
// verify required parameter 'type' is not null or undefined
|
|
4993
|
+
assertParamExists('getPrincipalAccessBlock', 'type', type)
|
|
4994
|
+
// verify required parameter 'id' is not null or undefined
|
|
4995
|
+
assertParamExists('getPrincipalAccessBlock', 'id', id)
|
|
4996
|
+
const localVarPath = `/principals/block`;
|
|
4997
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4998
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4999
|
+
let baseOptions;
|
|
5000
|
+
if (configuration) {
|
|
5001
|
+
baseOptions = configuration.baseOptions;
|
|
5002
|
+
}
|
|
5003
|
+
|
|
5004
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5005
|
+
const localVarHeaderParameter = {} as any;
|
|
5006
|
+
const localVarQueryParameter = {} as any;
|
|
5007
|
+
|
|
5008
|
+
// authentication ApiKeyAuth required
|
|
5009
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5010
|
+
|
|
5011
|
+
if (type !== undefined) {
|
|
5012
|
+
localVarQueryParameter['type'] = type;
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
if (id !== undefined) {
|
|
5016
|
+
localVarQueryParameter['id'] = id;
|
|
5017
|
+
}
|
|
5018
|
+
|
|
5019
|
+
|
|
5020
|
+
|
|
5021
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5022
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5023
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5024
|
+
|
|
5025
|
+
return {
|
|
5026
|
+
url: toPathString(localVarUrlObj),
|
|
5027
|
+
options: localVarRequestOptions,
|
|
5028
|
+
};
|
|
5029
|
+
},
|
|
5030
|
+
/**
|
|
5031
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5032
|
+
* @summary List principal access blocks
|
|
5033
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
5034
|
+
* @param {*} [options] Override http request option.
|
|
5035
|
+
* @throws {RequiredError}
|
|
5036
|
+
*/
|
|
5037
|
+
listPrincipalAccessBlocks: async (type?: ListPrincipalAccessBlocksTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5038
|
+
const localVarPath = `/principals/blocks`;
|
|
5039
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5040
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5041
|
+
let baseOptions;
|
|
5042
|
+
if (configuration) {
|
|
5043
|
+
baseOptions = configuration.baseOptions;
|
|
5044
|
+
}
|
|
5045
|
+
|
|
5046
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5047
|
+
const localVarHeaderParameter = {} as any;
|
|
5048
|
+
const localVarQueryParameter = {} as any;
|
|
5049
|
+
|
|
5050
|
+
// authentication ApiKeyAuth required
|
|
5051
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5052
|
+
|
|
5053
|
+
if (type !== undefined) {
|
|
5054
|
+
localVarQueryParameter['type'] = type;
|
|
5055
|
+
}
|
|
5056
|
+
|
|
5057
|
+
|
|
5058
|
+
|
|
5059
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5060
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5061
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5062
|
+
|
|
5063
|
+
return {
|
|
5064
|
+
url: toPathString(localVarUrlObj),
|
|
5065
|
+
options: localVarRequestOptions,
|
|
5066
|
+
};
|
|
5067
|
+
},
|
|
5068
|
+
/**
|
|
5069
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5070
|
+
* @summary Unblock principal access
|
|
5071
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
5072
|
+
* @param {*} [options] Override http request option.
|
|
5073
|
+
* @throws {RequiredError}
|
|
5074
|
+
*/
|
|
5075
|
+
unblockPrincipalAccess: async (unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5076
|
+
const localVarPath = `/principals/unblock`;
|
|
5077
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5078
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5079
|
+
let baseOptions;
|
|
5080
|
+
if (configuration) {
|
|
5081
|
+
baseOptions = configuration.baseOptions;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5085
|
+
const localVarHeaderParameter = {} as any;
|
|
5086
|
+
const localVarQueryParameter = {} as any;
|
|
5087
|
+
|
|
5088
|
+
// authentication ApiKeyAuth required
|
|
5089
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5090
|
+
|
|
5091
|
+
|
|
5092
|
+
|
|
5093
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5094
|
+
|
|
5095
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5096
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5097
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5098
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unblockPrincipalAccessRequest, localVarRequestOptions, configuration)
|
|
5099
|
+
|
|
5100
|
+
return {
|
|
5101
|
+
url: toPathString(localVarUrlObj),
|
|
5102
|
+
options: localVarRequestOptions,
|
|
5103
|
+
};
|
|
5104
|
+
},
|
|
5105
|
+
}
|
|
5106
|
+
};
|
|
5107
|
+
|
|
5108
|
+
/**
|
|
5109
|
+
* PrincipalAccessBlockApi - functional programming interface
|
|
5110
|
+
* @export
|
|
5111
|
+
*/
|
|
5112
|
+
export const PrincipalAccessBlockApiFp = function(configuration?: Configuration) {
|
|
5113
|
+
const localVarAxiosParamCreator = PrincipalAccessBlockApiAxiosParamCreator(configuration)
|
|
5114
|
+
return {
|
|
5115
|
+
/**
|
|
5116
|
+
* 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.
|
|
5117
|
+
* @summary Block principal access
|
|
5118
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
5119
|
+
* @param {*} [options] Override http request option.
|
|
5120
|
+
* @throws {RequiredError}
|
|
5121
|
+
*/
|
|
5122
|
+
async blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessBlockStateResponseBlocked>> {
|
|
5123
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.blockPrincipalAccess(blockPrincipalAccessRequest, options);
|
|
5124
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5125
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.blockPrincipalAccess']?.[localVarOperationServerIndex]?.url;
|
|
5126
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5127
|
+
},
|
|
5128
|
+
/**
|
|
5129
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
5130
|
+
* @summary Get principal access block
|
|
5131
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
5132
|
+
* @param {string} id
|
|
5133
|
+
* @param {*} [options] Override http request option.
|
|
5134
|
+
* @throws {RequiredError}
|
|
5135
|
+
*/
|
|
5136
|
+
async getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessBlockStateResponse>> {
|
|
5137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPrincipalAccessBlock(type, id, options);
|
|
5138
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5139
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.getPrincipalAccessBlock']?.[localVarOperationServerIndex]?.url;
|
|
5140
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5141
|
+
},
|
|
5142
|
+
/**
|
|
5143
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5144
|
+
* @summary List principal access blocks
|
|
5145
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
5146
|
+
* @param {*} [options] Override http request option.
|
|
5147
|
+
* @throws {RequiredError}
|
|
5148
|
+
*/
|
|
5149
|
+
async listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPrincipalAccessBlocksResponse>> {
|
|
5150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPrincipalAccessBlocks(type, options);
|
|
5151
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5152
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.listPrincipalAccessBlocks']?.[localVarOperationServerIndex]?.url;
|
|
5153
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5154
|
+
},
|
|
5155
|
+
/**
|
|
5156
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5157
|
+
* @summary Unblock principal access
|
|
5158
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
5159
|
+
* @param {*} [options] Override http request option.
|
|
5160
|
+
* @throws {RequiredError}
|
|
5161
|
+
*/
|
|
5162
|
+
async unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnblockPrincipalAccessResponse>> {
|
|
5163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unblockPrincipalAccess(unblockPrincipalAccessRequest, options);
|
|
5164
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5165
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.unblockPrincipalAccess']?.[localVarOperationServerIndex]?.url;
|
|
5166
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5167
|
+
},
|
|
5168
|
+
}
|
|
5169
|
+
};
|
|
5170
|
+
|
|
5171
|
+
/**
|
|
5172
|
+
* PrincipalAccessBlockApi - factory interface
|
|
5173
|
+
* @export
|
|
5174
|
+
*/
|
|
5175
|
+
export const PrincipalAccessBlockApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5176
|
+
const localVarFp = PrincipalAccessBlockApiFp(configuration)
|
|
5177
|
+
return {
|
|
5178
|
+
/**
|
|
5179
|
+
* 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.
|
|
5180
|
+
* @summary Block principal access
|
|
5181
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
5182
|
+
* @param {*} [options] Override http request option.
|
|
5183
|
+
* @throws {RequiredError}
|
|
5184
|
+
*/
|
|
5185
|
+
blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccessBlockStateResponseBlocked> {
|
|
5186
|
+
return localVarFp.blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(axios, basePath));
|
|
5187
|
+
},
|
|
5188
|
+
/**
|
|
5189
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
5190
|
+
* @summary Get principal access block
|
|
5191
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
5192
|
+
* @param {string} id
|
|
5193
|
+
* @param {*} [options] Override http request option.
|
|
5194
|
+
* @throws {RequiredError}
|
|
5195
|
+
*/
|
|
5196
|
+
getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccessBlockStateResponse> {
|
|
5197
|
+
return localVarFp.getPrincipalAccessBlock(type, id, options).then((request) => request(axios, basePath));
|
|
5198
|
+
},
|
|
5199
|
+
/**
|
|
5200
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5201
|
+
* @summary List principal access blocks
|
|
5202
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
5203
|
+
* @param {*} [options] Override http request option.
|
|
5204
|
+
* @throws {RequiredError}
|
|
5205
|
+
*/
|
|
5206
|
+
listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListPrincipalAccessBlocksResponse> {
|
|
5207
|
+
return localVarFp.listPrincipalAccessBlocks(type, options).then((request) => request(axios, basePath));
|
|
5208
|
+
},
|
|
5209
|
+
/**
|
|
5210
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5211
|
+
* @summary Unblock principal access
|
|
5212
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
5213
|
+
* @param {*} [options] Override http request option.
|
|
5214
|
+
* @throws {RequiredError}
|
|
5215
|
+
*/
|
|
5216
|
+
unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnblockPrincipalAccessResponse> {
|
|
5217
|
+
return localVarFp.unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(axios, basePath));
|
|
5218
|
+
},
|
|
5219
|
+
};
|
|
5220
|
+
};
|
|
5221
|
+
|
|
5222
|
+
/**
|
|
5223
|
+
* PrincipalAccessBlockApi - object-oriented interface
|
|
5224
|
+
* @export
|
|
5225
|
+
* @class PrincipalAccessBlockApi
|
|
5226
|
+
* @extends {BaseAPI}
|
|
5227
|
+
*/
|
|
5228
|
+
export class PrincipalAccessBlockApi extends BaseAPI {
|
|
5229
|
+
/**
|
|
5230
|
+
* 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.
|
|
5231
|
+
* @summary Block principal access
|
|
5232
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
5233
|
+
* @param {*} [options] Override http request option.
|
|
5234
|
+
* @throws {RequiredError}
|
|
5235
|
+
* @memberof PrincipalAccessBlockApi
|
|
5236
|
+
*/
|
|
5237
|
+
public blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig) {
|
|
5238
|
+
return PrincipalAccessBlockApiFp(this.configuration).blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5239
|
+
}
|
|
5240
|
+
|
|
5241
|
+
/**
|
|
5242
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
5243
|
+
* @summary Get principal access block
|
|
5244
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
5245
|
+
* @param {string} id
|
|
5246
|
+
* @param {*} [options] Override http request option.
|
|
5247
|
+
* @throws {RequiredError}
|
|
5248
|
+
* @memberof PrincipalAccessBlockApi
|
|
5249
|
+
*/
|
|
5250
|
+
public getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig) {
|
|
5251
|
+
return PrincipalAccessBlockApiFp(this.configuration).getPrincipalAccessBlock(type, id, options).then((request) => request(this.axios, this.basePath));
|
|
5252
|
+
}
|
|
5253
|
+
|
|
5254
|
+
/**
|
|
5255
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5256
|
+
* @summary List principal access blocks
|
|
5257
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
5258
|
+
* @param {*} [options] Override http request option.
|
|
5259
|
+
* @throws {RequiredError}
|
|
5260
|
+
* @memberof PrincipalAccessBlockApi
|
|
5261
|
+
*/
|
|
5262
|
+
public listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig) {
|
|
5263
|
+
return PrincipalAccessBlockApiFp(this.configuration).listPrincipalAccessBlocks(type, options).then((request) => request(this.axios, this.basePath));
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
/**
|
|
5267
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5268
|
+
* @summary Unblock principal access
|
|
5269
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
5270
|
+
* @param {*} [options] Override http request option.
|
|
5271
|
+
* @throws {RequiredError}
|
|
5272
|
+
* @memberof PrincipalAccessBlockApi
|
|
5273
|
+
*/
|
|
5274
|
+
public unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig) {
|
|
5275
|
+
return PrincipalAccessBlockApiFp(this.configuration).unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5276
|
+
}
|
|
5277
|
+
}
|
|
5278
|
+
|
|
5279
|
+
/**
|
|
5280
|
+
* @export
|
|
5281
|
+
*/
|
|
5282
|
+
export const GetPrincipalAccessBlockTypeEnum = {
|
|
5283
|
+
User: 'User',
|
|
5284
|
+
Automation: 'Automation',
|
|
5285
|
+
Kiosk: 'Kiosk',
|
|
5286
|
+
Terminal: 'Terminal'
|
|
5287
|
+
} as const;
|
|
5288
|
+
export type GetPrincipalAccessBlockTypeEnum = typeof GetPrincipalAccessBlockTypeEnum[keyof typeof GetPrincipalAccessBlockTypeEnum];
|
|
5289
|
+
/**
|
|
5290
|
+
* @export
|
|
5291
|
+
*/
|
|
5292
|
+
export const ListPrincipalAccessBlocksTypeEnum = {
|
|
5293
|
+
User: 'User',
|
|
5294
|
+
Automation: 'Automation',
|
|
5295
|
+
Kiosk: 'Kiosk',
|
|
5296
|
+
Terminal: 'Terminal'
|
|
5297
|
+
} as const;
|
|
5298
|
+
export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum];
|
|
5299
|
+
|
|
5300
|
+
|
|
4757
5301
|
/**
|
|
4758
5302
|
* RoleAssignmentApi - axios parameter creator
|
|
4759
5303
|
* @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.352-rc.1787648484"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|