@flipdish/authorization 0.0.340-rc.1787320464 → 0.0.342-rc.1787325938

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
@@ -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
@@ -1846,6 +1988,7 @@ export const Permissions = {
1846
1988
  ViewMenu: 'ViewMenu',
1847
1989
  CreateGlobalApiKey: 'CreateGlobalAPIKey',
1848
1990
  ListGlobalApiKeys: 'ListGlobalAPIKeys',
1991
+ BlockPrincipalAccess: 'BlockPrincipalAccess',
1849
1992
  CreateMenu: 'CreateMenu',
1850
1993
  UpdateMenu: 'UpdateMenu',
1851
1994
  DeleteMenu: 'DeleteMenu',
@@ -2509,6 +2652,45 @@ export const RoleNames = {
2509
2652
  export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
2510
2653
 
2511
2654
 
2655
+ /**
2656
+ *
2657
+ * @export
2658
+ * @interface UnblockPrincipalAccessRequest
2659
+ */
2660
+ export interface UnblockPrincipalAccessRequest {
2661
+ /**
2662
+ *
2663
+ * @type {AccessBlockStateResponseBlockedPrincipal}
2664
+ * @memberof UnblockPrincipalAccessRequest
2665
+ */
2666
+ 'principal': AccessBlockStateResponseBlockedPrincipal;
2667
+ }
2668
+ /**
2669
+ *
2670
+ * @export
2671
+ * @interface UnblockPrincipalAccessResponse
2672
+ */
2673
+ export interface UnblockPrincipalAccessResponse {
2674
+ /**
2675
+ *
2676
+ * @type {AccessBlockStateResponseBlockedPrincipal}
2677
+ * @memberof UnblockPrincipalAccessResponse
2678
+ */
2679
+ 'principal': AccessBlockStateResponseBlockedPrincipal;
2680
+ /**
2681
+ *
2682
+ * @type {boolean}
2683
+ * @memberof UnblockPrincipalAccessResponse
2684
+ */
2685
+ 'unblocked': UnblockPrincipalAccessResponseUnblockedEnum;
2686
+ }
2687
+
2688
+ export const UnblockPrincipalAccessResponseUnblockedEnum = {
2689
+ True: true
2690
+ } as const;
2691
+
2692
+ export type UnblockPrincipalAccessResponseUnblockedEnum = typeof UnblockPrincipalAccessResponseUnblockedEnum[keyof typeof UnblockPrincipalAccessResponseUnblockedEnum];
2693
+
2512
2694
  /**
2513
2695
  *
2514
2696
  * @export
@@ -4501,6 +4683,367 @@ export class JoinAccessApi extends BaseAPI {
4501
4683
 
4502
4684
 
4503
4685
 
4686
+ /**
4687
+ * PrincipalAccessBlockApi - axios parameter creator
4688
+ * @export
4689
+ */
4690
+ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?: Configuration) {
4691
+ return {
4692
+ /**
4693
+ * Write an access_block flag that denies all authorization checks for the principal until unblocked. Authentication still succeeds. Requires BlockPrincipalAccess.
4694
+ * @summary Block principal access
4695
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
4696
+ * @param {*} [options] Override http request option.
4697
+ * @throws {RequiredError}
4698
+ */
4699
+ blockPrincipalAccess: async (blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4700
+ const localVarPath = `/principals/block`;
4701
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4703
+ let baseOptions;
4704
+ if (configuration) {
4705
+ baseOptions = configuration.baseOptions;
4706
+ }
4707
+
4708
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4709
+ const localVarHeaderParameter = {} as any;
4710
+ const localVarQueryParameter = {} as any;
4711
+
4712
+ // authentication ApiKeyAuth required
4713
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4714
+
4715
+
4716
+
4717
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4718
+
4719
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4720
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4721
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4722
+ localVarRequestOptions.data = serializeDataIfNeeded(blockPrincipalAccessRequest, localVarRequestOptions, configuration)
4723
+
4724
+ return {
4725
+ url: toPathString(localVarUrlObj),
4726
+ options: localVarRequestOptions,
4727
+ };
4728
+ },
4729
+ /**
4730
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
4731
+ * @summary Get principal access block
4732
+ * @param {GetPrincipalAccessBlockTypeEnum} type
4733
+ * @param {string} id
4734
+ * @param {*} [options] Override http request option.
4735
+ * @throws {RequiredError}
4736
+ */
4737
+ getPrincipalAccessBlock: async (type: GetPrincipalAccessBlockTypeEnum, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4738
+ // verify required parameter 'type' is not null or undefined
4739
+ assertParamExists('getPrincipalAccessBlock', 'type', type)
4740
+ // verify required parameter 'id' is not null or undefined
4741
+ assertParamExists('getPrincipalAccessBlock', 'id', id)
4742
+ const localVarPath = `/principals/block`;
4743
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4744
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4745
+ let baseOptions;
4746
+ if (configuration) {
4747
+ baseOptions = configuration.baseOptions;
4748
+ }
4749
+
4750
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4751
+ const localVarHeaderParameter = {} as any;
4752
+ const localVarQueryParameter = {} as any;
4753
+
4754
+ // authentication ApiKeyAuth required
4755
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4756
+
4757
+ if (type !== undefined) {
4758
+ localVarQueryParameter['type'] = type;
4759
+ }
4760
+
4761
+ if (id !== undefined) {
4762
+ localVarQueryParameter['id'] = id;
4763
+ }
4764
+
4765
+
4766
+
4767
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4768
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4769
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4770
+
4771
+ return {
4772
+ url: toPathString(localVarUrlObj),
4773
+ options: localVarRequestOptions,
4774
+ };
4775
+ },
4776
+ /**
4777
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
4778
+ * @summary List principal access blocks
4779
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
4780
+ * @param {*} [options] Override http request option.
4781
+ * @throws {RequiredError}
4782
+ */
4783
+ listPrincipalAccessBlocks: async (type?: ListPrincipalAccessBlocksTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4784
+ const localVarPath = `/principals/blocks`;
4785
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4786
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4787
+ let baseOptions;
4788
+ if (configuration) {
4789
+ baseOptions = configuration.baseOptions;
4790
+ }
4791
+
4792
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4793
+ const localVarHeaderParameter = {} as any;
4794
+ const localVarQueryParameter = {} as any;
4795
+
4796
+ // authentication ApiKeyAuth required
4797
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4798
+
4799
+ if (type !== undefined) {
4800
+ localVarQueryParameter['type'] = type;
4801
+ }
4802
+
4803
+
4804
+
4805
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4806
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4807
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4808
+
4809
+ return {
4810
+ url: toPathString(localVarUrlObj),
4811
+ options: localVarRequestOptions,
4812
+ };
4813
+ },
4814
+ /**
4815
+ * Delete the access_block flag and restore existing role assignments. Cached DENYs may last ~10s. Requires BlockPrincipalAccess.
4816
+ * @summary Unblock principal access
4817
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
4818
+ * @param {*} [options] Override http request option.
4819
+ * @throws {RequiredError}
4820
+ */
4821
+ unblockPrincipalAccess: async (unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4822
+ const localVarPath = `/principals/unblock`;
4823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4825
+ let baseOptions;
4826
+ if (configuration) {
4827
+ baseOptions = configuration.baseOptions;
4828
+ }
4829
+
4830
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4831
+ const localVarHeaderParameter = {} as any;
4832
+ const localVarQueryParameter = {} as any;
4833
+
4834
+ // authentication ApiKeyAuth required
4835
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4836
+
4837
+
4838
+
4839
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4840
+
4841
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4843
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4844
+ localVarRequestOptions.data = serializeDataIfNeeded(unblockPrincipalAccessRequest, localVarRequestOptions, configuration)
4845
+
4846
+ return {
4847
+ url: toPathString(localVarUrlObj),
4848
+ options: localVarRequestOptions,
4849
+ };
4850
+ },
4851
+ }
4852
+ };
4853
+
4854
+ /**
4855
+ * PrincipalAccessBlockApi - functional programming interface
4856
+ * @export
4857
+ */
4858
+ export const PrincipalAccessBlockApiFp = function(configuration?: Configuration) {
4859
+ const localVarAxiosParamCreator = PrincipalAccessBlockApiAxiosParamCreator(configuration)
4860
+ return {
4861
+ /**
4862
+ * Write an access_block flag that denies all authorization checks for the principal until unblocked. Authentication still succeeds. Requires BlockPrincipalAccess.
4863
+ * @summary Block principal access
4864
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
4865
+ * @param {*} [options] Override http request option.
4866
+ * @throws {RequiredError}
4867
+ */
4868
+ async blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessBlockStateResponseBlocked>> {
4869
+ const localVarAxiosArgs = await localVarAxiosParamCreator.blockPrincipalAccess(blockPrincipalAccessRequest, options);
4870
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4871
+ const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.blockPrincipalAccess']?.[localVarOperationServerIndex]?.url;
4872
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4873
+ },
4874
+ /**
4875
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
4876
+ * @summary Get principal access block
4877
+ * @param {GetPrincipalAccessBlockTypeEnum} type
4878
+ * @param {string} id
4879
+ * @param {*} [options] Override http request option.
4880
+ * @throws {RequiredError}
4881
+ */
4882
+ async getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessBlockStateResponse>> {
4883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPrincipalAccessBlock(type, id, options);
4884
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4885
+ const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.getPrincipalAccessBlock']?.[localVarOperationServerIndex]?.url;
4886
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4887
+ },
4888
+ /**
4889
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
4890
+ * @summary List principal access blocks
4891
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
4892
+ * @param {*} [options] Override http request option.
4893
+ * @throws {RequiredError}
4894
+ */
4895
+ async listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPrincipalAccessBlocksResponse>> {
4896
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPrincipalAccessBlocks(type, options);
4897
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4898
+ const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.listPrincipalAccessBlocks']?.[localVarOperationServerIndex]?.url;
4899
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4900
+ },
4901
+ /**
4902
+ * Delete the access_block flag and restore existing role assignments. Cached DENYs may last ~10s. Requires BlockPrincipalAccess.
4903
+ * @summary Unblock principal access
4904
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
4905
+ * @param {*} [options] Override http request option.
4906
+ * @throws {RequiredError}
4907
+ */
4908
+ async unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnblockPrincipalAccessResponse>> {
4909
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unblockPrincipalAccess(unblockPrincipalAccessRequest, options);
4910
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4911
+ const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.unblockPrincipalAccess']?.[localVarOperationServerIndex]?.url;
4912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4913
+ },
4914
+ }
4915
+ };
4916
+
4917
+ /**
4918
+ * PrincipalAccessBlockApi - factory interface
4919
+ * @export
4920
+ */
4921
+ export const PrincipalAccessBlockApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4922
+ const localVarFp = PrincipalAccessBlockApiFp(configuration)
4923
+ return {
4924
+ /**
4925
+ * Write an access_block flag that denies all authorization checks for the principal until unblocked. Authentication still succeeds. Requires BlockPrincipalAccess.
4926
+ * @summary Block principal access
4927
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
4928
+ * @param {*} [options] Override http request option.
4929
+ * @throws {RequiredError}
4930
+ */
4931
+ blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccessBlockStateResponseBlocked> {
4932
+ return localVarFp.blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(axios, basePath));
4933
+ },
4934
+ /**
4935
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
4936
+ * @summary Get principal access block
4937
+ * @param {GetPrincipalAccessBlockTypeEnum} type
4938
+ * @param {string} id
4939
+ * @param {*} [options] Override http request option.
4940
+ * @throws {RequiredError}
4941
+ */
4942
+ getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccessBlockStateResponse> {
4943
+ return localVarFp.getPrincipalAccessBlock(type, id, options).then((request) => request(axios, basePath));
4944
+ },
4945
+ /**
4946
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
4947
+ * @summary List principal access blocks
4948
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
4949
+ * @param {*} [options] Override http request option.
4950
+ * @throws {RequiredError}
4951
+ */
4952
+ listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListPrincipalAccessBlocksResponse> {
4953
+ return localVarFp.listPrincipalAccessBlocks(type, options).then((request) => request(axios, basePath));
4954
+ },
4955
+ /**
4956
+ * Delete the access_block flag and restore existing role assignments. Cached DENYs may last ~10s. Requires BlockPrincipalAccess.
4957
+ * @summary Unblock principal access
4958
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
4959
+ * @param {*} [options] Override http request option.
4960
+ * @throws {RequiredError}
4961
+ */
4962
+ unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnblockPrincipalAccessResponse> {
4963
+ return localVarFp.unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(axios, basePath));
4964
+ },
4965
+ };
4966
+ };
4967
+
4968
+ /**
4969
+ * PrincipalAccessBlockApi - object-oriented interface
4970
+ * @export
4971
+ * @class PrincipalAccessBlockApi
4972
+ * @extends {BaseAPI}
4973
+ */
4974
+ export class PrincipalAccessBlockApi extends BaseAPI {
4975
+ /**
4976
+ * Write an access_block flag that denies all authorization checks for the principal until unblocked. Authentication still succeeds. Requires BlockPrincipalAccess.
4977
+ * @summary Block principal access
4978
+ * @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
4979
+ * @param {*} [options] Override http request option.
4980
+ * @throws {RequiredError}
4981
+ * @memberof PrincipalAccessBlockApi
4982
+ */
4983
+ public blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig) {
4984
+ return PrincipalAccessBlockApiFp(this.configuration).blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath));
4985
+ }
4986
+
4987
+ /**
4988
+ * Get the current access block for a principal. Requires BlockPrincipalAccess.
4989
+ * @summary Get principal access block
4990
+ * @param {GetPrincipalAccessBlockTypeEnum} type
4991
+ * @param {string} id
4992
+ * @param {*} [options] Override http request option.
4993
+ * @throws {RequiredError}
4994
+ * @memberof PrincipalAccessBlockApi
4995
+ */
4996
+ public getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig) {
4997
+ return PrincipalAccessBlockApiFp(this.configuration).getPrincipalAccessBlock(type, id, options).then((request) => request(this.axios, this.basePath));
4998
+ }
4999
+
5000
+ /**
5001
+ * List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
5002
+ * @summary List principal access blocks
5003
+ * @param {ListPrincipalAccessBlocksTypeEnum} [type]
5004
+ * @param {*} [options] Override http request option.
5005
+ * @throws {RequiredError}
5006
+ * @memberof PrincipalAccessBlockApi
5007
+ */
5008
+ public listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig) {
5009
+ return PrincipalAccessBlockApiFp(this.configuration).listPrincipalAccessBlocks(type, options).then((request) => request(this.axios, this.basePath));
5010
+ }
5011
+
5012
+ /**
5013
+ * Delete the access_block flag and restore existing role assignments. Cached DENYs may last ~10s. Requires BlockPrincipalAccess.
5014
+ * @summary Unblock principal access
5015
+ * @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
5016
+ * @param {*} [options] Override http request option.
5017
+ * @throws {RequiredError}
5018
+ * @memberof PrincipalAccessBlockApi
5019
+ */
5020
+ public unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig) {
5021
+ return PrincipalAccessBlockApiFp(this.configuration).unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath));
5022
+ }
5023
+ }
5024
+
5025
+ /**
5026
+ * @export
5027
+ */
5028
+ export const GetPrincipalAccessBlockTypeEnum = {
5029
+ User: 'User',
5030
+ Automation: 'Automation',
5031
+ Kiosk: 'Kiosk',
5032
+ Terminal: 'Terminal'
5033
+ } as const;
5034
+ export type GetPrincipalAccessBlockTypeEnum = typeof GetPrincipalAccessBlockTypeEnum[keyof typeof GetPrincipalAccessBlockTypeEnum];
5035
+ /**
5036
+ * @export
5037
+ */
5038
+ export const ListPrincipalAccessBlocksTypeEnum = {
5039
+ User: 'User',
5040
+ Automation: 'Automation',
5041
+ Kiosk: 'Kiosk',
5042
+ Terminal: 'Terminal'
5043
+ } as const;
5044
+ export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum];
5045
+
5046
+
4504
5047
  /**
4505
5048
  * RoleAssignmentApi - axios parameter creator
4506
5049
  * @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.340-rc.1787320464"
103
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.342-rc.1787325938"
104
104
  }
105
105
  };
106
106