@flipdish/authorization 0.2.51 → 0.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +1189 -159
- package/configuration.ts +1 -1
- package/dist/api.d.ts +787 -57
- package/dist/api.js +858 -133
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,150 @@ 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 AcceptJoinRequest
|
|
30
|
+
*/
|
|
31
|
+
export interface AcceptJoinRequest {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AcceptJoinRequest
|
|
36
|
+
*/
|
|
37
|
+
'roleName'?: AcceptJoinRequestRoleNameEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<GetJoinAccessRequest200ResponsePropertyIdsInner>}
|
|
41
|
+
* @memberof AcceptJoinRequest
|
|
42
|
+
*/
|
|
43
|
+
'propertyIds'?: Array<GetJoinAccessRequest200ResponsePropertyIdsInner>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const AcceptJoinRequestRoleNameEnum = {
|
|
47
|
+
Owner: 'Owner',
|
|
48
|
+
PropertyOwner: 'PropertyOwner',
|
|
49
|
+
ManagedOwner: 'ManagedOwner',
|
|
50
|
+
Integrator: 'Integrator',
|
|
51
|
+
PropertyManager: 'PropertyManager',
|
|
52
|
+
FinanceManager: 'FinanceManager',
|
|
53
|
+
StaffMember: 'StaffMember',
|
|
54
|
+
Kiosk: 'Kiosk',
|
|
55
|
+
Terminal: 'Terminal'
|
|
56
|
+
} as const;
|
|
57
|
+
|
|
58
|
+
export type AcceptJoinRequestRoleNameEnum = typeof AcceptJoinRequestRoleNameEnum[keyof typeof AcceptJoinRequestRoleNameEnum];
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
* @interface AccessBlockStateResponse
|
|
64
|
+
*/
|
|
65
|
+
export interface AccessBlockStateResponse {
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
69
|
+
* @memberof AccessBlockStateResponse
|
|
70
|
+
*/
|
|
71
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AccessBlockStateResponse
|
|
76
|
+
*/
|
|
77
|
+
'reason'?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof AccessBlockStateResponse
|
|
82
|
+
*/
|
|
83
|
+
'blockedAt': string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {AccessBlockStateResponseBlockedBlockedBy}
|
|
87
|
+
* @memberof AccessBlockStateResponse
|
|
88
|
+
*/
|
|
89
|
+
'blockedBy': AccessBlockStateResponseBlockedBlockedBy;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @export
|
|
94
|
+
* @interface AccessBlockStateResponseBlocked
|
|
95
|
+
*/
|
|
96
|
+
export interface AccessBlockStateResponseBlocked {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
100
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
101
|
+
*/
|
|
102
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
107
|
+
*/
|
|
108
|
+
'reason'?: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
113
|
+
*/
|
|
114
|
+
'blockedAt': string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {AccessBlockStateResponseBlockedBlockedBy}
|
|
118
|
+
* @memberof AccessBlockStateResponseBlocked
|
|
119
|
+
*/
|
|
120
|
+
'blockedBy': AccessBlockStateResponseBlockedBlockedBy;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @export
|
|
125
|
+
* @interface AccessBlockStateResponseBlockedBlockedBy
|
|
126
|
+
*/
|
|
127
|
+
export interface AccessBlockStateResponseBlockedBlockedBy {
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof AccessBlockStateResponseBlockedBlockedBy
|
|
132
|
+
*/
|
|
133
|
+
'principalId': string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof AccessBlockStateResponseBlockedBlockedBy
|
|
138
|
+
*/
|
|
139
|
+
'email': string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @export
|
|
144
|
+
* @interface AccessBlockStateResponseBlockedPrincipal
|
|
145
|
+
*/
|
|
146
|
+
export interface AccessBlockStateResponseBlockedPrincipal {
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof AccessBlockStateResponseBlockedPrincipal
|
|
151
|
+
*/
|
|
152
|
+
'type': AccessBlockStateResponseBlockedPrincipalTypeEnum;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof AccessBlockStateResponseBlockedPrincipal
|
|
157
|
+
*/
|
|
158
|
+
'id': string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export const AccessBlockStateResponseBlockedPrincipalTypeEnum = {
|
|
162
|
+
User: 'User',
|
|
163
|
+
Automation: 'Automation',
|
|
164
|
+
Kiosk: 'Kiosk',
|
|
165
|
+
Terminal: 'Terminal'
|
|
166
|
+
} as const;
|
|
167
|
+
|
|
168
|
+
export type AccessBlockStateResponseBlockedPrincipalTypeEnum = typeof AccessBlockStateResponseBlockedPrincipalTypeEnum[keyof typeof AccessBlockStateResponseBlockedPrincipalTypeEnum];
|
|
169
|
+
|
|
26
170
|
/**
|
|
27
171
|
*
|
|
28
172
|
* @export
|
|
@@ -53,6 +197,12 @@ export interface AccessRequestResponse {
|
|
|
53
197
|
* @memberof AccessRequestResponse
|
|
54
198
|
*/
|
|
55
199
|
'requesterEmail': string;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof AccessRequestResponse
|
|
204
|
+
*/
|
|
205
|
+
'requesterName'?: string;
|
|
56
206
|
/**
|
|
57
207
|
*
|
|
58
208
|
* @type {string}
|
|
@@ -67,10 +217,10 @@ export interface AccessRequestResponse {
|
|
|
67
217
|
'orgName': string;
|
|
68
218
|
/**
|
|
69
219
|
*
|
|
70
|
-
* @type {Array<
|
|
220
|
+
* @type {Array<GetJoinAccessRequest200ResponsePropertyIdsInner>}
|
|
71
221
|
* @memberof AccessRequestResponse
|
|
72
222
|
*/
|
|
73
|
-
'propertyIds': Array<
|
|
223
|
+
'propertyIds': Array<GetJoinAccessRequest200ResponsePropertyIdsInner>;
|
|
74
224
|
/**
|
|
75
225
|
*
|
|
76
226
|
* @type {Array<string>}
|
|
@@ -756,6 +906,25 @@ export interface AuthorizeBatchChecks400ResponseAnyOfInner {
|
|
|
756
906
|
*/
|
|
757
907
|
export interface AuthorizeBatchChecks400ResponseAnyOfInnerPathInner {
|
|
758
908
|
}
|
|
909
|
+
/**
|
|
910
|
+
*
|
|
911
|
+
* @export
|
|
912
|
+
* @interface BlockPrincipalAccessRequest
|
|
913
|
+
*/
|
|
914
|
+
export interface BlockPrincipalAccessRequest {
|
|
915
|
+
/**
|
|
916
|
+
*
|
|
917
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
918
|
+
* @memberof BlockPrincipalAccessRequest
|
|
919
|
+
*/
|
|
920
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @type {string}
|
|
924
|
+
* @memberof BlockPrincipalAccessRequest
|
|
925
|
+
*/
|
|
926
|
+
'reason'?: string;
|
|
927
|
+
}
|
|
759
928
|
/**
|
|
760
929
|
*
|
|
761
930
|
* @export
|
|
@@ -1084,6 +1253,12 @@ export interface GetJoinAccessRequest200Response {
|
|
|
1084
1253
|
* @memberof GetJoinAccessRequest200Response
|
|
1085
1254
|
*/
|
|
1086
1255
|
'requesterEmail': string;
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @type {string}
|
|
1259
|
+
* @memberof GetJoinAccessRequest200Response
|
|
1260
|
+
*/
|
|
1261
|
+
'requesterName'?: string;
|
|
1087
1262
|
/**
|
|
1088
1263
|
*
|
|
1089
1264
|
* @type {string}
|
|
@@ -1098,10 +1273,10 @@ export interface GetJoinAccessRequest200Response {
|
|
|
1098
1273
|
'orgName': string;
|
|
1099
1274
|
/**
|
|
1100
1275
|
*
|
|
1101
|
-
* @type {Array<
|
|
1276
|
+
* @type {Array<GetJoinAccessRequest200ResponsePropertyIdsInner>}
|
|
1102
1277
|
* @memberof GetJoinAccessRequest200Response
|
|
1103
1278
|
*/
|
|
1104
|
-
'propertyIds': Array<
|
|
1279
|
+
'propertyIds': Array<GetJoinAccessRequest200ResponsePropertyIdsInner>;
|
|
1105
1280
|
/**
|
|
1106
1281
|
*
|
|
1107
1282
|
* @type {Array<string>}
|
|
@@ -1162,6 +1337,13 @@ export const GetJoinAccessRequest200ResponseRoleNameEnum = {
|
|
|
1162
1337
|
|
|
1163
1338
|
export type GetJoinAccessRequest200ResponseRoleNameEnum = typeof GetJoinAccessRequest200ResponseRoleNameEnum[keyof typeof GetJoinAccessRequest200ResponseRoleNameEnum];
|
|
1164
1339
|
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @export
|
|
1343
|
+
* @interface GetJoinAccessRequest200ResponsePropertyIdsInner
|
|
1344
|
+
*/
|
|
1345
|
+
export interface GetJoinAccessRequest200ResponsePropertyIdsInner {
|
|
1346
|
+
}
|
|
1165
1347
|
/**
|
|
1166
1348
|
* Successful user permissions retrieval response
|
|
1167
1349
|
* @export
|
|
@@ -1690,10 +1872,10 @@ export interface ListOrgRolesSuccessResponseValue {
|
|
|
1690
1872
|
'optionalPermissionSetKeys'?: Array<string>;
|
|
1691
1873
|
/**
|
|
1692
1874
|
* Property IDs, or * for all properties, the roles are scoped to
|
|
1693
|
-
* @type {Array<
|
|
1875
|
+
* @type {Array<GetJoinAccessRequest200ResponsePropertyIdsInner>}
|
|
1694
1876
|
* @memberof ListOrgRolesSuccessResponseValue
|
|
1695
1877
|
*/
|
|
1696
|
-
'properties'?: Array<
|
|
1878
|
+
'properties'?: Array<GetJoinAccessRequest200ResponsePropertyIdsInner>;
|
|
1697
1879
|
/**
|
|
1698
1880
|
* Brand IDs, or * for all brands, the roles are scoped to
|
|
1699
1881
|
* @type {Array<ListOrgRolesSuccessResponseValueBrandsInner>}
|
|
@@ -1736,13 +1918,6 @@ export interface ListOrgRolesSuccessResponseValueBrandsInner {
|
|
|
1736
1918
|
*/
|
|
1737
1919
|
export interface ListOrgRolesSuccessResponseValueOrgId {
|
|
1738
1920
|
}
|
|
1739
|
-
/**
|
|
1740
|
-
*
|
|
1741
|
-
* @export
|
|
1742
|
-
* @interface ListOrgRolesSuccessResponseValuePropertiesInner
|
|
1743
|
-
*/
|
|
1744
|
-
export interface ListOrgRolesSuccessResponseValuePropertiesInner {
|
|
1745
|
-
}
|
|
1746
1921
|
/**
|
|
1747
1922
|
*
|
|
1748
1923
|
* @export
|
|
@@ -1763,6 +1938,19 @@ export interface ListPermissionsSuccessResponse {
|
|
|
1763
1938
|
*/
|
|
1764
1939
|
'permissions': Permissions & Array<Permissions>;
|
|
1765
1940
|
}
|
|
1941
|
+
/**
|
|
1942
|
+
*
|
|
1943
|
+
* @export
|
|
1944
|
+
* @interface ListPrincipalAccessBlocksResponse
|
|
1945
|
+
*/
|
|
1946
|
+
export interface ListPrincipalAccessBlocksResponse {
|
|
1947
|
+
/**
|
|
1948
|
+
*
|
|
1949
|
+
* @type {Array<AccessBlockStateResponse>}
|
|
1950
|
+
* @memberof ListPrincipalAccessBlocksResponse
|
|
1951
|
+
*/
|
|
1952
|
+
'items': Array<AccessBlockStateResponse>;
|
|
1953
|
+
}
|
|
1766
1954
|
/**
|
|
1767
1955
|
* Successful roles retrieval response
|
|
1768
1956
|
* @export
|
|
@@ -1776,6 +1964,19 @@ export interface ListRolesSuccessResponse {
|
|
|
1776
1964
|
*/
|
|
1777
1965
|
'roles': Array<RoleNames>;
|
|
1778
1966
|
}
|
|
1967
|
+
/**
|
|
1968
|
+
* The caller\'s active timed access grants
|
|
1969
|
+
* @export
|
|
1970
|
+
* @interface ListTimedAccessGrantsResponse
|
|
1971
|
+
*/
|
|
1972
|
+
export interface ListTimedAccessGrantsResponse {
|
|
1973
|
+
/**
|
|
1974
|
+
*
|
|
1975
|
+
* @type {Array<TimedAccessGrant>}
|
|
1976
|
+
* @memberof ListTimedAccessGrantsResponse
|
|
1977
|
+
*/
|
|
1978
|
+
'grants': Array<TimedAccessGrant>;
|
|
1979
|
+
}
|
|
1779
1980
|
/**
|
|
1780
1981
|
* Permissions
|
|
1781
1982
|
* @export
|
|
@@ -1846,6 +2047,7 @@ export const Permissions = {
|
|
|
1846
2047
|
ViewMenu: 'ViewMenu',
|
|
1847
2048
|
CreateGlobalApiKey: 'CreateGlobalAPIKey',
|
|
1848
2049
|
ListGlobalApiKeys: 'ListGlobalAPIKeys',
|
|
2050
|
+
BlockPrincipalAccess: 'BlockPrincipalAccess',
|
|
1849
2051
|
CreateMenu: 'CreateMenu',
|
|
1850
2052
|
UpdateMenu: 'UpdateMenu',
|
|
1851
2053
|
DeleteMenu: 'DeleteMenu',
|
|
@@ -2116,7 +2318,7 @@ export interface RematerializeRoleAssignmentRequestBody {
|
|
|
2116
2318
|
'sk': string;
|
|
2117
2319
|
}
|
|
2118
2320
|
/**
|
|
2119
|
-
* Successful role assignment rematerialization response
|
|
2321
|
+
* Successful role assignment rematerialization response (reconcile: add missing + revoke leftovers)
|
|
2120
2322
|
* @export
|
|
2121
2323
|
* @interface RematerializeRoleAssignmentSuccessResponse
|
|
2122
2324
|
*/
|
|
@@ -2132,44 +2334,19 @@ export interface RematerializeRoleAssignmentSuccessResponse {
|
|
|
2132
2334
|
* @type {number}
|
|
2133
2335
|
* @memberof RematerializeRoleAssignmentSuccessResponse
|
|
2134
2336
|
*/
|
|
2135
|
-
'
|
|
2337
|
+
'added': number;
|
|
2136
2338
|
/**
|
|
2137
2339
|
*
|
|
2138
2340
|
* @type {number}
|
|
2139
2341
|
* @memberof RematerializeRoleAssignmentSuccessResponse
|
|
2140
2342
|
*/
|
|
2141
|
-
'
|
|
2343
|
+
'revoked': number;
|
|
2142
2344
|
/**
|
|
2143
2345
|
*
|
|
2144
|
-
* @type {
|
|
2346
|
+
* @type {number}
|
|
2145
2347
|
* @memberof RematerializeRoleAssignmentSuccessResponse
|
|
2146
2348
|
*/
|
|
2147
|
-
'
|
|
2148
|
-
}
|
|
2149
|
-
/**
|
|
2150
|
-
*
|
|
2151
|
-
* @export
|
|
2152
|
-
* @interface RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
|
|
2153
|
-
*/
|
|
2154
|
-
export interface RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner {
|
|
2155
|
-
/**
|
|
2156
|
-
*
|
|
2157
|
-
* @type {string}
|
|
2158
|
-
* @memberof RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
|
|
2159
|
-
*/
|
|
2160
|
-
'policyId': string;
|
|
2161
|
-
/**
|
|
2162
|
-
*
|
|
2163
|
-
* @type {string}
|
|
2164
|
-
* @memberof RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
|
|
2165
|
-
*/
|
|
2166
|
-
'assignmentPk': string;
|
|
2167
|
-
/**
|
|
2168
|
-
*
|
|
2169
|
-
* @type {string}
|
|
2170
|
-
* @memberof RematerializeRoleAssignmentSuccessResponsePolicyAssignmentsInner
|
|
2171
|
-
*/
|
|
2172
|
-
'assignmentSk': string;
|
|
2349
|
+
'unchanged': number;
|
|
2173
2350
|
}
|
|
2174
2351
|
/**
|
|
2175
2352
|
*
|
|
@@ -2342,10 +2519,10 @@ export interface RoleAssignmentRequestBody {
|
|
|
2342
2519
|
'roleName': RoleAssignmentRequestBodyRoleNameEnum;
|
|
2343
2520
|
/**
|
|
2344
2521
|
* Property resource ids (e.g. p123) when scoped to properties
|
|
2345
|
-
* @type {Array<
|
|
2522
|
+
* @type {Array<GetJoinAccessRequest200ResponsePropertyIdsInner>}
|
|
2346
2523
|
* @memberof RoleAssignmentRequestBody
|
|
2347
2524
|
*/
|
|
2348
|
-
'properties'?: Array<
|
|
2525
|
+
'properties'?: Array<GetJoinAccessRequest200ResponsePropertyIdsInner>;
|
|
2349
2526
|
/**
|
|
2350
2527
|
* Brand resource ids (e.g. b123) when scoped to brands
|
|
2351
2528
|
* @type {Array<ListOrgRolesSuccessResponseValueBrandsInner>}
|
|
@@ -2510,71 +2687,351 @@ export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
|
2510
2687
|
|
|
2511
2688
|
|
|
2512
2689
|
/**
|
|
2513
|
-
*
|
|
2690
|
+
* A temporary timed access grant
|
|
2514
2691
|
* @export
|
|
2515
|
-
* @interface
|
|
2692
|
+
* @interface TimedAccessGrant
|
|
2516
2693
|
*/
|
|
2517
|
-
export interface
|
|
2694
|
+
export interface TimedAccessGrant {
|
|
2518
2695
|
/**
|
|
2519
2696
|
*
|
|
2520
2697
|
* @type {string}
|
|
2521
|
-
* @memberof
|
|
2698
|
+
* @memberof TimedAccessGrant
|
|
2522
2699
|
*/
|
|
2523
|
-
'
|
|
2700
|
+
'grantId': string;
|
|
2701
|
+
/**
|
|
2702
|
+
*
|
|
2703
|
+
* @type {string}
|
|
2704
|
+
* @memberof TimedAccessGrant
|
|
2705
|
+
*/
|
|
2706
|
+
'principalType': TimedAccessGrantPrincipalTypeEnum;
|
|
2707
|
+
/**
|
|
2708
|
+
*
|
|
2709
|
+
* @type {string}
|
|
2710
|
+
* @memberof TimedAccessGrant
|
|
2711
|
+
*/
|
|
2712
|
+
'principalId': string;
|
|
2713
|
+
/**
|
|
2714
|
+
*
|
|
2715
|
+
* @type {string}
|
|
2716
|
+
* @memberof TimedAccessGrant
|
|
2717
|
+
*/
|
|
2718
|
+
'email': string;
|
|
2719
|
+
/**
|
|
2720
|
+
*
|
|
2721
|
+
* @type {string}
|
|
2722
|
+
* @memberof TimedAccessGrant
|
|
2723
|
+
*/
|
|
2724
|
+
'orgId': string;
|
|
2725
|
+
/**
|
|
2726
|
+
*
|
|
2727
|
+
* @type {string}
|
|
2728
|
+
* @memberof TimedAccessGrant
|
|
2729
|
+
*/
|
|
2730
|
+
'roleName': string;
|
|
2524
2731
|
/**
|
|
2525
2732
|
*
|
|
2526
2733
|
* @type {Array<string>}
|
|
2527
|
-
* @memberof
|
|
2734
|
+
* @memberof TimedAccessGrant
|
|
2528
2735
|
*/
|
|
2529
|
-
'
|
|
2736
|
+
'propertyIds': Array<string>;
|
|
2530
2737
|
/**
|
|
2531
2738
|
*
|
|
2532
|
-
* @type {Array<
|
|
2533
|
-
* @memberof
|
|
2739
|
+
* @type {Array<string>}
|
|
2740
|
+
* @memberof TimedAccessGrant
|
|
2534
2741
|
*/
|
|
2535
|
-
'
|
|
2742
|
+
'brandIds': Array<string>;
|
|
2536
2743
|
/**
|
|
2537
2744
|
*
|
|
2538
|
-
* @type {
|
|
2539
|
-
* @memberof
|
|
2745
|
+
* @type {Array<string>}
|
|
2746
|
+
* @memberof TimedAccessGrant
|
|
2540
2747
|
*/
|
|
2541
|
-
'
|
|
2748
|
+
'salesChannelIds': Array<string>;
|
|
2542
2749
|
/**
|
|
2543
2750
|
*
|
|
2544
2751
|
* @type {string}
|
|
2545
|
-
* @memberof
|
|
2752
|
+
* @memberof TimedAccessGrant
|
|
2546
2753
|
*/
|
|
2547
|
-
'
|
|
2754
|
+
'startsAt': string;
|
|
2755
|
+
/**
|
|
2756
|
+
*
|
|
2757
|
+
* @type {string}
|
|
2758
|
+
* @memberof TimedAccessGrant
|
|
2759
|
+
*/
|
|
2760
|
+
'expiresAt': string;
|
|
2761
|
+
/**
|
|
2762
|
+
*
|
|
2763
|
+
* @type {string}
|
|
2764
|
+
* @memberof TimedAccessGrant
|
|
2765
|
+
*/
|
|
2766
|
+
'status': TimedAccessGrantStatusEnum;
|
|
2548
2767
|
}
|
|
2549
2768
|
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
/**
|
|
2557
|
-
* Create an Automation API key (optional org association). Requires CreateGlobalAPIKey. Raw secret is returned once.
|
|
2558
|
-
* @summary Create global API key
|
|
2559
|
-
* @param {CreateGlobalApiKeyRequest} [createGlobalApiKeyRequest]
|
|
2560
|
-
* @param {*} [options] Override http request option.
|
|
2561
|
-
* @throws {RequiredError}
|
|
2562
|
-
*/
|
|
2563
|
-
createGlobalApiKey: async (createGlobalApiKeyRequest?: CreateGlobalApiKeyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2564
|
-
const localVarPath = `/apiKeys`;
|
|
2565
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2566
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2567
|
-
let baseOptions;
|
|
2568
|
-
if (configuration) {
|
|
2569
|
-
baseOptions = configuration.baseOptions;
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2573
|
-
const localVarHeaderParameter = {} as any;
|
|
2574
|
-
const localVarQueryParameter = {} as any;
|
|
2769
|
+
export const TimedAccessGrantPrincipalTypeEnum = {
|
|
2770
|
+
User: 'User',
|
|
2771
|
+
Automation: 'Automation',
|
|
2772
|
+
Kiosk: 'Kiosk',
|
|
2773
|
+
Terminal: 'Terminal'
|
|
2774
|
+
} as const;
|
|
2575
2775
|
|
|
2576
|
-
|
|
2577
|
-
|
|
2776
|
+
export type TimedAccessGrantPrincipalTypeEnum = typeof TimedAccessGrantPrincipalTypeEnum[keyof typeof TimedAccessGrantPrincipalTypeEnum];
|
|
2777
|
+
export const TimedAccessGrantStatusEnum = {
|
|
2778
|
+
Active: 'active',
|
|
2779
|
+
Expired: 'expired'
|
|
2780
|
+
} as const;
|
|
2781
|
+
|
|
2782
|
+
export type TimedAccessGrantStatusEnum = typeof TimedAccessGrantStatusEnum[keyof typeof TimedAccessGrantStatusEnum];
|
|
2783
|
+
|
|
2784
|
+
/**
|
|
2785
|
+
*
|
|
2786
|
+
* @export
|
|
2787
|
+
* @interface TimedAccessGrantRequestBody
|
|
2788
|
+
*/
|
|
2789
|
+
export interface TimedAccessGrantRequestBody {
|
|
2790
|
+
/**
|
|
2791
|
+
* Must match the authenticated caller
|
|
2792
|
+
* @type {string}
|
|
2793
|
+
* @memberof TimedAccessGrantRequestBody
|
|
2794
|
+
*/
|
|
2795
|
+
'userId': string;
|
|
2796
|
+
/**
|
|
2797
|
+
* The org to grant temporary access to
|
|
2798
|
+
* @type {string}
|
|
2799
|
+
* @memberof TimedAccessGrantRequestBody
|
|
2800
|
+
*/
|
|
2801
|
+
'orgId': string;
|
|
2802
|
+
/**
|
|
2803
|
+
* Role the pass grants
|
|
2804
|
+
* @type {string}
|
|
2805
|
+
* @memberof TimedAccessGrantRequestBody
|
|
2806
|
+
*/
|
|
2807
|
+
'roleName': TimedAccessGrantRequestBodyRoleNameEnum;
|
|
2808
|
+
/**
|
|
2809
|
+
* Optional property scope
|
|
2810
|
+
* @type {Array<string>}
|
|
2811
|
+
* @memberof TimedAccessGrantRequestBody
|
|
2812
|
+
*/
|
|
2813
|
+
'propertyIds'?: Array<string>;
|
|
2814
|
+
/**
|
|
2815
|
+
* Optional brand scope
|
|
2816
|
+
* @type {Array<string>}
|
|
2817
|
+
* @memberof TimedAccessGrantRequestBody
|
|
2818
|
+
*/
|
|
2819
|
+
'brandIds'?: Array<string>;
|
|
2820
|
+
/**
|
|
2821
|
+
* Optional sales channel scope
|
|
2822
|
+
* @type {Array<string>}
|
|
2823
|
+
* @memberof TimedAccessGrantRequestBody
|
|
2824
|
+
*/
|
|
2825
|
+
'salesChannelIds'?: Array<string>;
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
export const TimedAccessGrantRequestBodyRoleNameEnum = {
|
|
2829
|
+
Owner: 'Owner'
|
|
2830
|
+
} as const;
|
|
2831
|
+
|
|
2832
|
+
export type TimedAccessGrantRequestBodyRoleNameEnum = typeof TimedAccessGrantRequestBodyRoleNameEnum[keyof typeof TimedAccessGrantRequestBodyRoleNameEnum];
|
|
2833
|
+
|
|
2834
|
+
/**
|
|
2835
|
+
* The timed access grant that was created or refreshed
|
|
2836
|
+
* @export
|
|
2837
|
+
* @interface TimedAccessGrantResponse
|
|
2838
|
+
*/
|
|
2839
|
+
export interface TimedAccessGrantResponse {
|
|
2840
|
+
/**
|
|
2841
|
+
*
|
|
2842
|
+
* @type {string}
|
|
2843
|
+
* @memberof TimedAccessGrantResponse
|
|
2844
|
+
*/
|
|
2845
|
+
'grantId': string;
|
|
2846
|
+
/**
|
|
2847
|
+
*
|
|
2848
|
+
* @type {string}
|
|
2849
|
+
* @memberof TimedAccessGrantResponse
|
|
2850
|
+
*/
|
|
2851
|
+
'principalType': TimedAccessGrantResponsePrincipalTypeEnum;
|
|
2852
|
+
/**
|
|
2853
|
+
*
|
|
2854
|
+
* @type {string}
|
|
2855
|
+
* @memberof TimedAccessGrantResponse
|
|
2856
|
+
*/
|
|
2857
|
+
'principalId': string;
|
|
2858
|
+
/**
|
|
2859
|
+
*
|
|
2860
|
+
* @type {string}
|
|
2861
|
+
* @memberof TimedAccessGrantResponse
|
|
2862
|
+
*/
|
|
2863
|
+
'email': string;
|
|
2864
|
+
/**
|
|
2865
|
+
*
|
|
2866
|
+
* @type {string}
|
|
2867
|
+
* @memberof TimedAccessGrantResponse
|
|
2868
|
+
*/
|
|
2869
|
+
'orgId': string;
|
|
2870
|
+
/**
|
|
2871
|
+
*
|
|
2872
|
+
* @type {string}
|
|
2873
|
+
* @memberof TimedAccessGrantResponse
|
|
2874
|
+
*/
|
|
2875
|
+
'roleName': string;
|
|
2876
|
+
/**
|
|
2877
|
+
*
|
|
2878
|
+
* @type {Array<string>}
|
|
2879
|
+
* @memberof TimedAccessGrantResponse
|
|
2880
|
+
*/
|
|
2881
|
+
'propertyIds': Array<string>;
|
|
2882
|
+
/**
|
|
2883
|
+
*
|
|
2884
|
+
* @type {Array<string>}
|
|
2885
|
+
* @memberof TimedAccessGrantResponse
|
|
2886
|
+
*/
|
|
2887
|
+
'brandIds': Array<string>;
|
|
2888
|
+
/**
|
|
2889
|
+
*
|
|
2890
|
+
* @type {Array<string>}
|
|
2891
|
+
* @memberof TimedAccessGrantResponse
|
|
2892
|
+
*/
|
|
2893
|
+
'salesChannelIds': Array<string>;
|
|
2894
|
+
/**
|
|
2895
|
+
*
|
|
2896
|
+
* @type {string}
|
|
2897
|
+
* @memberof TimedAccessGrantResponse
|
|
2898
|
+
*/
|
|
2899
|
+
'startsAt': string;
|
|
2900
|
+
/**
|
|
2901
|
+
*
|
|
2902
|
+
* @type {string}
|
|
2903
|
+
* @memberof TimedAccessGrantResponse
|
|
2904
|
+
*/
|
|
2905
|
+
'expiresAt': string;
|
|
2906
|
+
/**
|
|
2907
|
+
*
|
|
2908
|
+
* @type {string}
|
|
2909
|
+
* @memberof TimedAccessGrantResponse
|
|
2910
|
+
*/
|
|
2911
|
+
'status': TimedAccessGrantResponseStatusEnum;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
export const TimedAccessGrantResponsePrincipalTypeEnum = {
|
|
2915
|
+
User: 'User',
|
|
2916
|
+
Automation: 'Automation',
|
|
2917
|
+
Kiosk: 'Kiosk',
|
|
2918
|
+
Terminal: 'Terminal'
|
|
2919
|
+
} as const;
|
|
2920
|
+
|
|
2921
|
+
export type TimedAccessGrantResponsePrincipalTypeEnum = typeof TimedAccessGrantResponsePrincipalTypeEnum[keyof typeof TimedAccessGrantResponsePrincipalTypeEnum];
|
|
2922
|
+
export const TimedAccessGrantResponseStatusEnum = {
|
|
2923
|
+
Active: 'active',
|
|
2924
|
+
Expired: 'expired'
|
|
2925
|
+
} as const;
|
|
2926
|
+
|
|
2927
|
+
export type TimedAccessGrantResponseStatusEnum = typeof TimedAccessGrantResponseStatusEnum[keyof typeof TimedAccessGrantResponseStatusEnum];
|
|
2928
|
+
|
|
2929
|
+
/**
|
|
2930
|
+
*
|
|
2931
|
+
* @export
|
|
2932
|
+
* @interface UnblockPrincipalAccessRequest
|
|
2933
|
+
*/
|
|
2934
|
+
export interface UnblockPrincipalAccessRequest {
|
|
2935
|
+
/**
|
|
2936
|
+
*
|
|
2937
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
2938
|
+
* @memberof UnblockPrincipalAccessRequest
|
|
2939
|
+
*/
|
|
2940
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
2941
|
+
}
|
|
2942
|
+
/**
|
|
2943
|
+
*
|
|
2944
|
+
* @export
|
|
2945
|
+
* @interface UnblockPrincipalAccessResponse
|
|
2946
|
+
*/
|
|
2947
|
+
export interface UnblockPrincipalAccessResponse {
|
|
2948
|
+
/**
|
|
2949
|
+
*
|
|
2950
|
+
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
2951
|
+
* @memberof UnblockPrincipalAccessResponse
|
|
2952
|
+
*/
|
|
2953
|
+
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
2954
|
+
/**
|
|
2955
|
+
*
|
|
2956
|
+
* @type {string}
|
|
2957
|
+
* @memberof UnblockPrincipalAccessResponse
|
|
2958
|
+
*/
|
|
2959
|
+
'status': UnblockPrincipalAccessResponseStatusEnum;
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
export const UnblockPrincipalAccessResponseStatusEnum = {
|
|
2963
|
+
RestorationInProgress: 'restoration_in_progress',
|
|
2964
|
+
NotBlocked: 'not_blocked'
|
|
2965
|
+
} as const;
|
|
2966
|
+
|
|
2967
|
+
export type UnblockPrincipalAccessResponseStatusEnum = typeof UnblockPrincipalAccessResponseStatusEnum[keyof typeof UnblockPrincipalAccessResponseStatusEnum];
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
*
|
|
2971
|
+
* @export
|
|
2972
|
+
* @interface UpdateGlobalApiKeyRequest
|
|
2973
|
+
*/
|
|
2974
|
+
export interface UpdateGlobalApiKeyRequest {
|
|
2975
|
+
/**
|
|
2976
|
+
*
|
|
2977
|
+
* @type {string}
|
|
2978
|
+
* @memberof UpdateGlobalApiKeyRequest
|
|
2979
|
+
*/
|
|
2980
|
+
'name'?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
*
|
|
2983
|
+
* @type {Array<string>}
|
|
2984
|
+
* @memberof UpdateGlobalApiKeyRequest
|
|
2985
|
+
*/
|
|
2986
|
+
'permissions'?: Array<string>;
|
|
2987
|
+
/**
|
|
2988
|
+
*
|
|
2989
|
+
* @type {Array<AuthorizationRequestResource>}
|
|
2990
|
+
* @memberof UpdateGlobalApiKeyRequest
|
|
2991
|
+
*/
|
|
2992
|
+
'resources'?: Array<AuthorizationRequestResource>;
|
|
2993
|
+
/**
|
|
2994
|
+
*
|
|
2995
|
+
* @type {boolean}
|
|
2996
|
+
* @memberof UpdateGlobalApiKeyRequest
|
|
2997
|
+
*/
|
|
2998
|
+
'global'?: boolean;
|
|
2999
|
+
/**
|
|
3000
|
+
*
|
|
3001
|
+
* @type {string}
|
|
3002
|
+
* @memberof UpdateGlobalApiKeyRequest
|
|
3003
|
+
*/
|
|
3004
|
+
'expiresAt'?: string;
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
/**
|
|
3008
|
+
* APIKeysApi - axios parameter creator
|
|
3009
|
+
* @export
|
|
3010
|
+
*/
|
|
3011
|
+
export const APIKeysApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3012
|
+
return {
|
|
3013
|
+
/**
|
|
3014
|
+
* Create an Automation API key (optional org association). Requires CreateGlobalAPIKey. Raw secret is returned once.
|
|
3015
|
+
* @summary Create global API key
|
|
3016
|
+
* @param {CreateGlobalApiKeyRequest} [createGlobalApiKeyRequest]
|
|
3017
|
+
* @param {*} [options] Override http request option.
|
|
3018
|
+
* @throws {RequiredError}
|
|
3019
|
+
*/
|
|
3020
|
+
createGlobalApiKey: async (createGlobalApiKeyRequest?: CreateGlobalApiKeyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3021
|
+
const localVarPath = `/apiKeys`;
|
|
3022
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3023
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3024
|
+
let baseOptions;
|
|
3025
|
+
if (configuration) {
|
|
3026
|
+
baseOptions = configuration.baseOptions;
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3030
|
+
const localVarHeaderParameter = {} as any;
|
|
3031
|
+
const localVarQueryParameter = {} as any;
|
|
3032
|
+
|
|
3033
|
+
// authentication ApiKeyAuth required
|
|
3034
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2578
3035
|
|
|
2579
3036
|
|
|
2580
3037
|
|
|
@@ -3986,14 +4443,15 @@ export class ConfigurationDataApi extends BaseAPI {
|
|
|
3986
4443
|
export const JoinAccessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3987
4444
|
return {
|
|
3988
4445
|
/**
|
|
3989
|
-
* Grants
|
|
4446
|
+
* Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
|
|
3990
4447
|
* @summary Accept a pending join access request
|
|
3991
4448
|
* @param {string} orgId
|
|
3992
4449
|
* @param {string} requestId
|
|
4450
|
+
* @param {AcceptJoinRequest} [acceptJoinRequest]
|
|
3993
4451
|
* @param {*} [options] Override http request option.
|
|
3994
4452
|
* @throws {RequiredError}
|
|
3995
4453
|
*/
|
|
3996
|
-
acceptJoinAccessRequest: async (orgId: string, requestId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4454
|
+
acceptJoinAccessRequest: async (orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3997
4455
|
// verify required parameter 'orgId' is not null or undefined
|
|
3998
4456
|
assertParamExists('acceptJoinAccessRequest', 'orgId', orgId)
|
|
3999
4457
|
// verify required parameter 'requestId' is not null or undefined
|
|
@@ -4017,9 +4475,12 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
4017
4475
|
|
|
4018
4476
|
|
|
4019
4477
|
|
|
4478
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4479
|
+
|
|
4020
4480
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4021
4481
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4022
4482
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4483
|
+
localVarRequestOptions.data = serializeDataIfNeeded(acceptJoinRequest, localVarRequestOptions, configuration)
|
|
4023
4484
|
|
|
4024
4485
|
return {
|
|
4025
4486
|
url: toPathString(localVarUrlObj),
|
|
@@ -4248,15 +4709,16 @@ export const JoinAccessApiFp = function(configuration?: Configuration) {
|
|
|
4248
4709
|
const localVarAxiosParamCreator = JoinAccessApiAxiosParamCreator(configuration)
|
|
4249
4710
|
return {
|
|
4250
4711
|
/**
|
|
4251
|
-
* Grants
|
|
4712
|
+
* Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
|
|
4252
4713
|
* @summary Accept a pending join access request
|
|
4253
4714
|
* @param {string} orgId
|
|
4254
4715
|
* @param {string} requestId
|
|
4716
|
+
* @param {AcceptJoinRequest} [acceptJoinRequest]
|
|
4255
4717
|
* @param {*} [options] Override http request option.
|
|
4256
4718
|
* @throws {RequiredError}
|
|
4257
4719
|
*/
|
|
4258
|
-
async acceptJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetJoinAccessRequest200Response>> {
|
|
4259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.acceptJoinAccessRequest(orgId, requestId, options);
|
|
4720
|
+
async acceptJoinAccessRequest(orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetJoinAccessRequest200Response>> {
|
|
4721
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options);
|
|
4260
4722
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4261
4723
|
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.acceptJoinAccessRequest']?.[localVarOperationServerIndex]?.url;
|
|
4262
4724
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4343,15 +4805,16 @@ export const JoinAccessApiFactory = function (configuration?: Configuration, bas
|
|
|
4343
4805
|
const localVarFp = JoinAccessApiFp(configuration)
|
|
4344
4806
|
return {
|
|
4345
4807
|
/**
|
|
4346
|
-
* Grants
|
|
4808
|
+
* Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
|
|
4347
4809
|
* @summary Accept a pending join access request
|
|
4348
4810
|
* @param {string} orgId
|
|
4349
4811
|
* @param {string} requestId
|
|
4812
|
+
* @param {AcceptJoinRequest} [acceptJoinRequest]
|
|
4350
4813
|
* @param {*} [options] Override http request option.
|
|
4351
4814
|
* @throws {RequiredError}
|
|
4352
4815
|
*/
|
|
4353
|
-
acceptJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetJoinAccessRequest200Response> {
|
|
4354
|
-
return localVarFp.acceptJoinAccessRequest(orgId, requestId, options).then((request) => request(axios, basePath));
|
|
4816
|
+
acceptJoinAccessRequest(orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetJoinAccessRequest200Response> {
|
|
4817
|
+
return localVarFp.acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options).then((request) => request(axios, basePath));
|
|
4355
4818
|
},
|
|
4356
4819
|
/**
|
|
4357
4820
|
* Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one.
|
|
@@ -4420,16 +4883,17 @@ export const JoinAccessApiFactory = function (configuration?: Configuration, bas
|
|
|
4420
4883
|
*/
|
|
4421
4884
|
export class JoinAccessApi extends BaseAPI {
|
|
4422
4885
|
/**
|
|
4423
|
-
* Grants
|
|
4886
|
+
* Grants access via AuthZ V2 role assignment (source join). Optional body fields override the role and property scope stored on the pending request; omitted fields use the request defaults from the invite token.
|
|
4424
4887
|
* @summary Accept a pending join access request
|
|
4425
4888
|
* @param {string} orgId
|
|
4426
4889
|
* @param {string} requestId
|
|
4890
|
+
* @param {AcceptJoinRequest} [acceptJoinRequest]
|
|
4427
4891
|
* @param {*} [options] Override http request option.
|
|
4428
4892
|
* @throws {RequiredError}
|
|
4429
4893
|
* @memberof JoinAccessApi
|
|
4430
4894
|
*/
|
|
4431
|
-
public acceptJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig) {
|
|
4432
|
-
return JoinAccessApiFp(this.configuration).acceptJoinAccessRequest(orgId, requestId, options).then((request) => request(this.axios, this.basePath));
|
|
4895
|
+
public acceptJoinAccessRequest(orgId: string, requestId: string, acceptJoinRequest?: AcceptJoinRequest, options?: RawAxiosRequestConfig) {
|
|
4896
|
+
return JoinAccessApiFp(this.configuration).acceptJoinAccessRequest(orgId, requestId, acceptJoinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4433
4897
|
}
|
|
4434
4898
|
|
|
4435
4899
|
/**
|
|
@@ -4502,24 +4966,20 @@ export class JoinAccessApi extends BaseAPI {
|
|
|
4502
4966
|
|
|
4503
4967
|
|
|
4504
4968
|
/**
|
|
4505
|
-
*
|
|
4969
|
+
* PrincipalAccessBlockApi - axios parameter creator
|
|
4506
4970
|
* @export
|
|
4507
4971
|
*/
|
|
4508
|
-
export const
|
|
4972
|
+
export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4509
4973
|
return {
|
|
4510
4974
|
/**
|
|
4511
|
-
*
|
|
4512
|
-
* @summary
|
|
4513
|
-
* @param {
|
|
4514
|
-
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
4975
|
+
* 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.
|
|
4976
|
+
* @summary Block principal access
|
|
4977
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
4515
4978
|
* @param {*} [options] Override http request option.
|
|
4516
4979
|
* @throws {RequiredError}
|
|
4517
4980
|
*/
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
assertParamExists('applyRoleAssignment', 'orgId', orgId)
|
|
4521
|
-
const localVarPath = `/orgs/{orgId}/roleAssignments/apply`
|
|
4522
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4981
|
+
blockPrincipalAccess: async (blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4982
|
+
const localVarPath = `/principals/block`;
|
|
4523
4983
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4524
4984
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4525
4985
|
let baseOptions;
|
|
@@ -4541,7 +5001,7 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
4541
5001
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4542
5002
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4543
5003
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4544
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
5004
|
+
localVarRequestOptions.data = serializeDataIfNeeded(blockPrincipalAccessRequest, localVarRequestOptions, configuration)
|
|
4545
5005
|
|
|
4546
5006
|
return {
|
|
4547
5007
|
url: toPathString(localVarUrlObj),
|
|
@@ -4549,18 +5009,19 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
4549
5009
|
};
|
|
4550
5010
|
},
|
|
4551
5011
|
/**
|
|
4552
|
-
*
|
|
4553
|
-
* @summary
|
|
4554
|
-
* @param {
|
|
4555
|
-
* @param {
|
|
5012
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
5013
|
+
* @summary Get principal access block
|
|
5014
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
5015
|
+
* @param {string} id
|
|
4556
5016
|
* @param {*} [options] Override http request option.
|
|
4557
5017
|
* @throws {RequiredError}
|
|
4558
5018
|
*/
|
|
4559
|
-
|
|
4560
|
-
// verify required parameter '
|
|
4561
|
-
assertParamExists('
|
|
4562
|
-
|
|
4563
|
-
|
|
5019
|
+
getPrincipalAccessBlock: async (type: GetPrincipalAccessBlockTypeEnum, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5020
|
+
// verify required parameter 'type' is not null or undefined
|
|
5021
|
+
assertParamExists('getPrincipalAccessBlock', 'type', type)
|
|
5022
|
+
// verify required parameter 'id' is not null or undefined
|
|
5023
|
+
assertParamExists('getPrincipalAccessBlock', 'id', id)
|
|
5024
|
+
const localVarPath = `/principals/block`;
|
|
4564
5025
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4565
5026
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4566
5027
|
let baseOptions;
|
|
@@ -4568,21 +5029,26 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
4568
5029
|
baseOptions = configuration.baseOptions;
|
|
4569
5030
|
}
|
|
4570
5031
|
|
|
4571
|
-
const localVarRequestOptions = { method: '
|
|
5032
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4572
5033
|
const localVarHeaderParameter = {} as any;
|
|
4573
5034
|
const localVarQueryParameter = {} as any;
|
|
4574
5035
|
|
|
4575
5036
|
// authentication ApiKeyAuth required
|
|
4576
5037
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4577
5038
|
|
|
5039
|
+
if (type !== undefined) {
|
|
5040
|
+
localVarQueryParameter['type'] = type;
|
|
5041
|
+
}
|
|
5042
|
+
|
|
5043
|
+
if (id !== undefined) {
|
|
5044
|
+
localVarQueryParameter['id'] = id;
|
|
5045
|
+
}
|
|
4578
5046
|
|
|
4579
|
-
|
|
4580
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4581
5047
|
|
|
5048
|
+
|
|
4582
5049
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4583
5050
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4584
5051
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4585
|
-
localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
4586
5052
|
|
|
4587
5053
|
return {
|
|
4588
5054
|
url: toPathString(localVarUrlObj),
|
|
@@ -4590,18 +5056,14 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
4590
5056
|
};
|
|
4591
5057
|
},
|
|
4592
5058
|
/**
|
|
4593
|
-
*
|
|
4594
|
-
* @summary
|
|
4595
|
-
* @param {
|
|
4596
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
5059
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5060
|
+
* @summary List principal access blocks
|
|
5061
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
4597
5062
|
* @param {*} [options] Override http request option.
|
|
4598
5063
|
* @throws {RequiredError}
|
|
4599
5064
|
*/
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
assertParamExists('removeTeammate', 'orgId', orgId)
|
|
4603
|
-
const localVarPath = `/orgs/{orgId}/roleAssignments/remove`
|
|
4604
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5065
|
+
listPrincipalAccessBlocks: async (type?: ListPrincipalAccessBlocksTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5066
|
+
const localVarPath = `/principals/blocks`;
|
|
4605
5067
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4606
5068
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4607
5069
|
let baseOptions;
|
|
@@ -4609,53 +5071,416 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
4609
5071
|
baseOptions = configuration.baseOptions;
|
|
4610
5072
|
}
|
|
4611
5073
|
|
|
4612
|
-
const localVarRequestOptions = { method: '
|
|
5074
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4613
5075
|
const localVarHeaderParameter = {} as any;
|
|
4614
5076
|
const localVarQueryParameter = {} as any;
|
|
4615
5077
|
|
|
4616
5078
|
// authentication ApiKeyAuth required
|
|
4617
5079
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4618
5080
|
|
|
5081
|
+
if (type !== undefined) {
|
|
5082
|
+
localVarQueryParameter['type'] = type;
|
|
5083
|
+
}
|
|
5084
|
+
|
|
4619
5085
|
|
|
4620
5086
|
|
|
4621
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4622
|
-
|
|
4623
5087
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4624
5088
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4625
5089
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4626
|
-
localVarRequestOptions.data = serializeDataIfNeeded(removeTeammateRequestBody, localVarRequestOptions, configuration)
|
|
4627
5090
|
|
|
4628
5091
|
return {
|
|
4629
5092
|
url: toPathString(localVarUrlObj),
|
|
4630
5093
|
options: localVarRequestOptions,
|
|
4631
5094
|
};
|
|
4632
5095
|
},
|
|
4633
|
-
}
|
|
4634
|
-
};
|
|
4635
|
-
|
|
4636
|
-
/**
|
|
4637
|
-
* RoleAssignmentApi - functional programming interface
|
|
4638
|
-
* @export
|
|
4639
|
-
*/
|
|
4640
|
-
export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
4641
|
-
const localVarAxiosParamCreator = RoleAssignmentApiAxiosParamCreator(configuration)
|
|
4642
|
-
return {
|
|
4643
5096
|
/**
|
|
4644
|
-
*
|
|
4645
|
-
* @summary
|
|
4646
|
-
* @param {
|
|
4647
|
-
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
5097
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5098
|
+
* @summary Unblock principal access
|
|
5099
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
4648
5100
|
* @param {*} [options] Override http request option.
|
|
4649
5101
|
* @throws {RequiredError}
|
|
4650
5102
|
*/
|
|
4651
|
-
async
|
|
4652
|
-
const
|
|
4653
|
-
|
|
4654
|
-
const
|
|
4655
|
-
|
|
4656
|
-
|
|
5103
|
+
unblockPrincipalAccess: async (unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5104
|
+
const localVarPath = `/principals/unblock`;
|
|
5105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5107
|
+
let baseOptions;
|
|
5108
|
+
if (configuration) {
|
|
5109
|
+
baseOptions = configuration.baseOptions;
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5113
|
+
const localVarHeaderParameter = {} as any;
|
|
5114
|
+
const localVarQueryParameter = {} as any;
|
|
5115
|
+
|
|
5116
|
+
// authentication ApiKeyAuth required
|
|
5117
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5118
|
+
|
|
5119
|
+
|
|
5120
|
+
|
|
5121
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5122
|
+
|
|
5123
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5125
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5126
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unblockPrincipalAccessRequest, localVarRequestOptions, configuration)
|
|
5127
|
+
|
|
5128
|
+
return {
|
|
5129
|
+
url: toPathString(localVarUrlObj),
|
|
5130
|
+
options: localVarRequestOptions,
|
|
5131
|
+
};
|
|
5132
|
+
},
|
|
5133
|
+
}
|
|
5134
|
+
};
|
|
5135
|
+
|
|
5136
|
+
/**
|
|
5137
|
+
* PrincipalAccessBlockApi - functional programming interface
|
|
5138
|
+
* @export
|
|
5139
|
+
*/
|
|
5140
|
+
export const PrincipalAccessBlockApiFp = function(configuration?: Configuration) {
|
|
5141
|
+
const localVarAxiosParamCreator = PrincipalAccessBlockApiAxiosParamCreator(configuration)
|
|
5142
|
+
return {
|
|
5143
|
+
/**
|
|
5144
|
+
* 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.
|
|
5145
|
+
* @summary Block principal access
|
|
5146
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
5147
|
+
* @param {*} [options] Override http request option.
|
|
5148
|
+
* @throws {RequiredError}
|
|
5149
|
+
*/
|
|
5150
|
+
async blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessBlockStateResponseBlocked>> {
|
|
5151
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.blockPrincipalAccess(blockPrincipalAccessRequest, options);
|
|
5152
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5153
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.blockPrincipalAccess']?.[localVarOperationServerIndex]?.url;
|
|
5154
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5155
|
+
},
|
|
5156
|
+
/**
|
|
5157
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
5158
|
+
* @summary Get principal access block
|
|
5159
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
5160
|
+
* @param {string} id
|
|
5161
|
+
* @param {*} [options] Override http request option.
|
|
5162
|
+
* @throws {RequiredError}
|
|
5163
|
+
*/
|
|
5164
|
+
async getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessBlockStateResponse>> {
|
|
5165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPrincipalAccessBlock(type, id, options);
|
|
5166
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5167
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.getPrincipalAccessBlock']?.[localVarOperationServerIndex]?.url;
|
|
5168
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5169
|
+
},
|
|
5170
|
+
/**
|
|
5171
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5172
|
+
* @summary List principal access blocks
|
|
5173
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
5174
|
+
* @param {*} [options] Override http request option.
|
|
5175
|
+
* @throws {RequiredError}
|
|
5176
|
+
*/
|
|
5177
|
+
async listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPrincipalAccessBlocksResponse>> {
|
|
5178
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPrincipalAccessBlocks(type, options);
|
|
5179
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5180
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.listPrincipalAccessBlocks']?.[localVarOperationServerIndex]?.url;
|
|
5181
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5182
|
+
},
|
|
5183
|
+
/**
|
|
5184
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5185
|
+
* @summary Unblock principal access
|
|
5186
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
5187
|
+
* @param {*} [options] Override http request option.
|
|
5188
|
+
* @throws {RequiredError}
|
|
5189
|
+
*/
|
|
5190
|
+
async unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnblockPrincipalAccessResponse>> {
|
|
5191
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unblockPrincipalAccess(unblockPrincipalAccessRequest, options);
|
|
5192
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5193
|
+
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.unblockPrincipalAccess']?.[localVarOperationServerIndex]?.url;
|
|
5194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5195
|
+
},
|
|
5196
|
+
}
|
|
5197
|
+
};
|
|
5198
|
+
|
|
5199
|
+
/**
|
|
5200
|
+
* PrincipalAccessBlockApi - factory interface
|
|
5201
|
+
* @export
|
|
5202
|
+
*/
|
|
5203
|
+
export const PrincipalAccessBlockApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5204
|
+
const localVarFp = PrincipalAccessBlockApiFp(configuration)
|
|
5205
|
+
return {
|
|
5206
|
+
/**
|
|
5207
|
+
* 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.
|
|
5208
|
+
* @summary Block principal access
|
|
5209
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
5210
|
+
* @param {*} [options] Override http request option.
|
|
5211
|
+
* @throws {RequiredError}
|
|
5212
|
+
*/
|
|
5213
|
+
blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccessBlockStateResponseBlocked> {
|
|
5214
|
+
return localVarFp.blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(axios, basePath));
|
|
5215
|
+
},
|
|
5216
|
+
/**
|
|
5217
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
5218
|
+
* @summary Get principal access block
|
|
5219
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
5220
|
+
* @param {string} id
|
|
5221
|
+
* @param {*} [options] Override http request option.
|
|
5222
|
+
* @throws {RequiredError}
|
|
5223
|
+
*/
|
|
5224
|
+
getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccessBlockStateResponse> {
|
|
5225
|
+
return localVarFp.getPrincipalAccessBlock(type, id, options).then((request) => request(axios, basePath));
|
|
5226
|
+
},
|
|
5227
|
+
/**
|
|
5228
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5229
|
+
* @summary List principal access blocks
|
|
5230
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
5231
|
+
* @param {*} [options] Override http request option.
|
|
5232
|
+
* @throws {RequiredError}
|
|
5233
|
+
*/
|
|
5234
|
+
listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListPrincipalAccessBlocksResponse> {
|
|
5235
|
+
return localVarFp.listPrincipalAccessBlocks(type, options).then((request) => request(axios, basePath));
|
|
5236
|
+
},
|
|
5237
|
+
/**
|
|
5238
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5239
|
+
* @summary Unblock principal access
|
|
5240
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
5241
|
+
* @param {*} [options] Override http request option.
|
|
5242
|
+
* @throws {RequiredError}
|
|
5243
|
+
*/
|
|
5244
|
+
unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<UnblockPrincipalAccessResponse> {
|
|
5245
|
+
return localVarFp.unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(axios, basePath));
|
|
5246
|
+
},
|
|
5247
|
+
};
|
|
5248
|
+
};
|
|
5249
|
+
|
|
5250
|
+
/**
|
|
5251
|
+
* PrincipalAccessBlockApi - object-oriented interface
|
|
5252
|
+
* @export
|
|
5253
|
+
* @class PrincipalAccessBlockApi
|
|
5254
|
+
* @extends {BaseAPI}
|
|
5255
|
+
*/
|
|
5256
|
+
export class PrincipalAccessBlockApi extends BaseAPI {
|
|
5257
|
+
/**
|
|
5258
|
+
* 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.
|
|
5259
|
+
* @summary Block principal access
|
|
5260
|
+
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
5261
|
+
* @param {*} [options] Override http request option.
|
|
5262
|
+
* @throws {RequiredError}
|
|
5263
|
+
* @memberof PrincipalAccessBlockApi
|
|
5264
|
+
*/
|
|
5265
|
+
public blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig) {
|
|
5266
|
+
return PrincipalAccessBlockApiFp(this.configuration).blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
/**
|
|
5270
|
+
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
5271
|
+
* @summary Get principal access block
|
|
5272
|
+
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
5273
|
+
* @param {string} id
|
|
5274
|
+
* @param {*} [options] Override http request option.
|
|
5275
|
+
* @throws {RequiredError}
|
|
5276
|
+
* @memberof PrincipalAccessBlockApi
|
|
5277
|
+
*/
|
|
5278
|
+
public getPrincipalAccessBlock(type: GetPrincipalAccessBlockTypeEnum, id: string, options?: RawAxiosRequestConfig) {
|
|
5279
|
+
return PrincipalAccessBlockApiFp(this.configuration).getPrincipalAccessBlock(type, id, options).then((request) => request(this.axios, this.basePath));
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5282
|
+
/**
|
|
5283
|
+
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
5284
|
+
* @summary List principal access blocks
|
|
5285
|
+
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
5286
|
+
* @param {*} [options] Override http request option.
|
|
5287
|
+
* @throws {RequiredError}
|
|
5288
|
+
* @memberof PrincipalAccessBlockApi
|
|
5289
|
+
*/
|
|
5290
|
+
public listPrincipalAccessBlocks(type?: ListPrincipalAccessBlocksTypeEnum, options?: RawAxiosRequestConfig) {
|
|
5291
|
+
return PrincipalAccessBlockApiFp(this.configuration).listPrincipalAccessBlocks(type, options).then((request) => request(this.axios, this.basePath));
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
/**
|
|
5295
|
+
* Start restoring existing role assignments. The access_block flag is removed asynchronously after restoration completes, and authorization remains denied until then. Requires BlockPrincipalAccess.
|
|
5296
|
+
* @summary Unblock principal access
|
|
5297
|
+
* @param {UnblockPrincipalAccessRequest} [unblockPrincipalAccessRequest]
|
|
5298
|
+
* @param {*} [options] Override http request option.
|
|
5299
|
+
* @throws {RequiredError}
|
|
5300
|
+
* @memberof PrincipalAccessBlockApi
|
|
5301
|
+
*/
|
|
5302
|
+
public unblockPrincipalAccess(unblockPrincipalAccessRequest?: UnblockPrincipalAccessRequest, options?: RawAxiosRequestConfig) {
|
|
5303
|
+
return PrincipalAccessBlockApiFp(this.configuration).unblockPrincipalAccess(unblockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5304
|
+
}
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
/**
|
|
5308
|
+
* @export
|
|
5309
|
+
*/
|
|
5310
|
+
export const GetPrincipalAccessBlockTypeEnum = {
|
|
5311
|
+
User: 'User',
|
|
5312
|
+
Automation: 'Automation',
|
|
5313
|
+
Kiosk: 'Kiosk',
|
|
5314
|
+
Terminal: 'Terminal'
|
|
5315
|
+
} as const;
|
|
5316
|
+
export type GetPrincipalAccessBlockTypeEnum = typeof GetPrincipalAccessBlockTypeEnum[keyof typeof GetPrincipalAccessBlockTypeEnum];
|
|
5317
|
+
/**
|
|
5318
|
+
* @export
|
|
5319
|
+
*/
|
|
5320
|
+
export const ListPrincipalAccessBlocksTypeEnum = {
|
|
5321
|
+
User: 'User',
|
|
5322
|
+
Automation: 'Automation',
|
|
5323
|
+
Kiosk: 'Kiosk',
|
|
5324
|
+
Terminal: 'Terminal'
|
|
5325
|
+
} as const;
|
|
5326
|
+
export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum];
|
|
5327
|
+
|
|
5328
|
+
|
|
5329
|
+
/**
|
|
5330
|
+
* RoleAssignmentApi - axios parameter creator
|
|
5331
|
+
* @export
|
|
5332
|
+
*/
|
|
5333
|
+
export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5334
|
+
return {
|
|
4657
5335
|
/**
|
|
4658
|
-
*
|
|
5336
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
5337
|
+
* @summary Apply role assignment
|
|
5338
|
+
* @param {string} orgId
|
|
5339
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
5340
|
+
* @param {*} [options] Override http request option.
|
|
5341
|
+
* @throws {RequiredError}
|
|
5342
|
+
*/
|
|
5343
|
+
applyRoleAssignment: async (orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5344
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
5345
|
+
assertParamExists('applyRoleAssignment', 'orgId', orgId)
|
|
5346
|
+
const localVarPath = `/orgs/{orgId}/roleAssignments/apply`
|
|
5347
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5350
|
+
let baseOptions;
|
|
5351
|
+
if (configuration) {
|
|
5352
|
+
baseOptions = configuration.baseOptions;
|
|
5353
|
+
}
|
|
5354
|
+
|
|
5355
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5356
|
+
const localVarHeaderParameter = {} as any;
|
|
5357
|
+
const localVarQueryParameter = {} as any;
|
|
5358
|
+
|
|
5359
|
+
// authentication ApiKeyAuth required
|
|
5360
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5361
|
+
|
|
5362
|
+
|
|
5363
|
+
|
|
5364
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5365
|
+
|
|
5366
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5367
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5368
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5369
|
+
localVarRequestOptions.data = serializeDataIfNeeded(roleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
5370
|
+
|
|
5371
|
+
return {
|
|
5372
|
+
url: toPathString(localVarUrlObj),
|
|
5373
|
+
options: localVarRequestOptions,
|
|
5374
|
+
};
|
|
5375
|
+
},
|
|
5376
|
+
/**
|
|
5377
|
+
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
5378
|
+
* @summary Rematerialize Role Assignment
|
|
5379
|
+
* @param {string} orgId
|
|
5380
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
5381
|
+
* @param {*} [options] Override http request option.
|
|
5382
|
+
* @throws {RequiredError}
|
|
5383
|
+
*/
|
|
5384
|
+
rematerializeRoleAssignmentV2: async (orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5385
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
5386
|
+
assertParamExists('rematerializeRoleAssignmentV2', 'orgId', orgId)
|
|
5387
|
+
const localVarPath = `/orgs/{orgId}/roleAssignments/rematerialize`
|
|
5388
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5389
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5390
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5391
|
+
let baseOptions;
|
|
5392
|
+
if (configuration) {
|
|
5393
|
+
baseOptions = configuration.baseOptions;
|
|
5394
|
+
}
|
|
5395
|
+
|
|
5396
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5397
|
+
const localVarHeaderParameter = {} as any;
|
|
5398
|
+
const localVarQueryParameter = {} as any;
|
|
5399
|
+
|
|
5400
|
+
// authentication ApiKeyAuth required
|
|
5401
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5402
|
+
|
|
5403
|
+
|
|
5404
|
+
|
|
5405
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5406
|
+
|
|
5407
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5408
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5409
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5410
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
5411
|
+
|
|
5412
|
+
return {
|
|
5413
|
+
url: toPathString(localVarUrlObj),
|
|
5414
|
+
options: localVarRequestOptions,
|
|
5415
|
+
};
|
|
5416
|
+
},
|
|
5417
|
+
/**
|
|
5418
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
5419
|
+
* @summary Remove teammate
|
|
5420
|
+
* @param {string} orgId
|
|
5421
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
5422
|
+
* @param {*} [options] Override http request option.
|
|
5423
|
+
* @throws {RequiredError}
|
|
5424
|
+
*/
|
|
5425
|
+
removeTeammate: async (orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5426
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
5427
|
+
assertParamExists('removeTeammate', 'orgId', orgId)
|
|
5428
|
+
const localVarPath = `/orgs/{orgId}/roleAssignments/remove`
|
|
5429
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5431
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5432
|
+
let baseOptions;
|
|
5433
|
+
if (configuration) {
|
|
5434
|
+
baseOptions = configuration.baseOptions;
|
|
5435
|
+
}
|
|
5436
|
+
|
|
5437
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5438
|
+
const localVarHeaderParameter = {} as any;
|
|
5439
|
+
const localVarQueryParameter = {} as any;
|
|
5440
|
+
|
|
5441
|
+
// authentication ApiKeyAuth required
|
|
5442
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5443
|
+
|
|
5444
|
+
|
|
5445
|
+
|
|
5446
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5447
|
+
|
|
5448
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5450
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5451
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeTeammateRequestBody, localVarRequestOptions, configuration)
|
|
5452
|
+
|
|
5453
|
+
return {
|
|
5454
|
+
url: toPathString(localVarUrlObj),
|
|
5455
|
+
options: localVarRequestOptions,
|
|
5456
|
+
};
|
|
5457
|
+
},
|
|
5458
|
+
}
|
|
5459
|
+
};
|
|
5460
|
+
|
|
5461
|
+
/**
|
|
5462
|
+
* RoleAssignmentApi - functional programming interface
|
|
5463
|
+
* @export
|
|
5464
|
+
*/
|
|
5465
|
+
export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
5466
|
+
const localVarAxiosParamCreator = RoleAssignmentApiAxiosParamCreator(configuration)
|
|
5467
|
+
return {
|
|
5468
|
+
/**
|
|
5469
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
5470
|
+
* @summary Apply role assignment
|
|
5471
|
+
* @param {string} orgId
|
|
5472
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
5473
|
+
* @param {*} [options] Override http request option.
|
|
5474
|
+
* @throws {RequiredError}
|
|
5475
|
+
*/
|
|
5476
|
+
async applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleAssignmentSuccessResponse>> {
|
|
5477
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options);
|
|
5478
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5479
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.applyRoleAssignment']?.[localVarOperationServerIndex]?.url;
|
|
5480
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5481
|
+
},
|
|
5482
|
+
/**
|
|
5483
|
+
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
4659
5484
|
* @summary Rematerialize Role Assignment
|
|
4660
5485
|
* @param {string} orgId
|
|
4661
5486
|
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
@@ -4704,7 +5529,7 @@ export const RoleAssignmentApiFactory = function (configuration?: Configuration,
|
|
|
4704
5529
|
return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then((request) => request(axios, basePath));
|
|
4705
5530
|
},
|
|
4706
5531
|
/**
|
|
4707
|
-
*
|
|
5532
|
+
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
4708
5533
|
* @summary Rematerialize Role Assignment
|
|
4709
5534
|
* @param {string} orgId
|
|
4710
5535
|
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
@@ -4749,7 +5574,7 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
4749
5574
|
}
|
|
4750
5575
|
|
|
4751
5576
|
/**
|
|
4752
|
-
*
|
|
5577
|
+
* Reconciles policy assignments for the role assignment principal: creates missing policies and revokes leftovers that materialize no longer emits
|
|
4753
5578
|
* @summary Rematerialize Role Assignment
|
|
4754
5579
|
* @param {string} orgId
|
|
4755
5580
|
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
@@ -4777,6 +5602,211 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
4777
5602
|
|
|
4778
5603
|
|
|
4779
5604
|
|
|
5605
|
+
/**
|
|
5606
|
+
* TimedAccessApi - axios parameter creator
|
|
5607
|
+
* @export
|
|
5608
|
+
*/
|
|
5609
|
+
export const TimedAccessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5610
|
+
return {
|
|
5611
|
+
/**
|
|
5612
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5613
|
+
* @summary Create a timed access pass
|
|
5614
|
+
* @param {string} orgId
|
|
5615
|
+
* @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
|
|
5616
|
+
* @param {*} [options] Override http request option.
|
|
5617
|
+
* @throws {RequiredError}
|
|
5618
|
+
*/
|
|
5619
|
+
createTimedAccessGrant: async (orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5620
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
5621
|
+
assertParamExists('createTimedAccessGrant', 'orgId', orgId)
|
|
5622
|
+
const localVarPath = `/timedAccess/orgs/{orgId}/grants`
|
|
5623
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5624
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5625
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5626
|
+
let baseOptions;
|
|
5627
|
+
if (configuration) {
|
|
5628
|
+
baseOptions = configuration.baseOptions;
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5631
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5632
|
+
const localVarHeaderParameter = {} as any;
|
|
5633
|
+
const localVarQueryParameter = {} as any;
|
|
5634
|
+
|
|
5635
|
+
// authentication ApiKeyAuth required
|
|
5636
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5637
|
+
|
|
5638
|
+
|
|
5639
|
+
|
|
5640
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5641
|
+
|
|
5642
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5644
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5645
|
+
localVarRequestOptions.data = serializeDataIfNeeded(timedAccessGrantRequestBody, localVarRequestOptions, configuration)
|
|
5646
|
+
|
|
5647
|
+
return {
|
|
5648
|
+
url: toPathString(localVarUrlObj),
|
|
5649
|
+
options: localVarRequestOptions,
|
|
5650
|
+
};
|
|
5651
|
+
},
|
|
5652
|
+
/**
|
|
5653
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5654
|
+
* @summary List the caller\'s active timed access pass for an org
|
|
5655
|
+
* @param {string} orgId
|
|
5656
|
+
* @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5657
|
+
* @param {*} [options] Override http request option.
|
|
5658
|
+
* @throws {RequiredError}
|
|
5659
|
+
*/
|
|
5660
|
+
listMyTimedAccessGrants: async (orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5661
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
5662
|
+
assertParamExists('listMyTimedAccessGrants', 'orgId', orgId)
|
|
5663
|
+
const localVarPath = `/timedAccess/orgs/{orgId}/grants`
|
|
5664
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5665
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5666
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5667
|
+
let baseOptions;
|
|
5668
|
+
if (configuration) {
|
|
5669
|
+
baseOptions = configuration.baseOptions;
|
|
5670
|
+
}
|
|
5671
|
+
|
|
5672
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5673
|
+
const localVarHeaderParameter = {} as any;
|
|
5674
|
+
const localVarQueryParameter = {} as any;
|
|
5675
|
+
|
|
5676
|
+
// authentication ApiKeyAuth required
|
|
5677
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5678
|
+
|
|
5679
|
+
if (status !== undefined) {
|
|
5680
|
+
localVarQueryParameter['status'] = status;
|
|
5681
|
+
}
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
|
|
5685
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5687
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5688
|
+
|
|
5689
|
+
return {
|
|
5690
|
+
url: toPathString(localVarUrlObj),
|
|
5691
|
+
options: localVarRequestOptions,
|
|
5692
|
+
};
|
|
5693
|
+
},
|
|
5694
|
+
}
|
|
5695
|
+
};
|
|
5696
|
+
|
|
5697
|
+
/**
|
|
5698
|
+
* TimedAccessApi - functional programming interface
|
|
5699
|
+
* @export
|
|
5700
|
+
*/
|
|
5701
|
+
export const TimedAccessApiFp = function(configuration?: Configuration) {
|
|
5702
|
+
const localVarAxiosParamCreator = TimedAccessApiAxiosParamCreator(configuration)
|
|
5703
|
+
return {
|
|
5704
|
+
/**
|
|
5705
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5706
|
+
* @summary Create a timed access pass
|
|
5707
|
+
* @param {string} orgId
|
|
5708
|
+
* @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
|
|
5709
|
+
* @param {*} [options] Override http request option.
|
|
5710
|
+
* @throws {RequiredError}
|
|
5711
|
+
*/
|
|
5712
|
+
async createTimedAccessGrant(orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TimedAccessGrantResponse>> {
|
|
5713
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options);
|
|
5714
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5715
|
+
const localVarOperationServerBasePath = operationServerMap['TimedAccessApi.createTimedAccessGrant']?.[localVarOperationServerIndex]?.url;
|
|
5716
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5717
|
+
},
|
|
5718
|
+
/**
|
|
5719
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5720
|
+
* @summary List the caller\'s active timed access pass for an org
|
|
5721
|
+
* @param {string} orgId
|
|
5722
|
+
* @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5723
|
+
* @param {*} [options] Override http request option.
|
|
5724
|
+
* @throws {RequiredError}
|
|
5725
|
+
*/
|
|
5726
|
+
async listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTimedAccessGrantsResponse>> {
|
|
5727
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMyTimedAccessGrants(orgId, status, options);
|
|
5728
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5729
|
+
const localVarOperationServerBasePath = operationServerMap['TimedAccessApi.listMyTimedAccessGrants']?.[localVarOperationServerIndex]?.url;
|
|
5730
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5731
|
+
},
|
|
5732
|
+
}
|
|
5733
|
+
};
|
|
5734
|
+
|
|
5735
|
+
/**
|
|
5736
|
+
* TimedAccessApi - factory interface
|
|
5737
|
+
* @export
|
|
5738
|
+
*/
|
|
5739
|
+
export const TimedAccessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5740
|
+
const localVarFp = TimedAccessApiFp(configuration)
|
|
5741
|
+
return {
|
|
5742
|
+
/**
|
|
5743
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5744
|
+
* @summary Create a timed access pass
|
|
5745
|
+
* @param {string} orgId
|
|
5746
|
+
* @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
|
|
5747
|
+
* @param {*} [options] Override http request option.
|
|
5748
|
+
* @throws {RequiredError}
|
|
5749
|
+
*/
|
|
5750
|
+
createTimedAccessGrant(orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<TimedAccessGrantResponse> {
|
|
5751
|
+
return localVarFp.createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options).then((request) => request(axios, basePath));
|
|
5752
|
+
},
|
|
5753
|
+
/**
|
|
5754
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5755
|
+
* @summary List the caller\'s active timed access pass for an org
|
|
5756
|
+
* @param {string} orgId
|
|
5757
|
+
* @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5758
|
+
* @param {*} [options] Override http request option.
|
|
5759
|
+
* @throws {RequiredError}
|
|
5760
|
+
*/
|
|
5761
|
+
listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListTimedAccessGrantsResponse> {
|
|
5762
|
+
return localVarFp.listMyTimedAccessGrants(orgId, status, options).then((request) => request(axios, basePath));
|
|
5763
|
+
},
|
|
5764
|
+
};
|
|
5765
|
+
};
|
|
5766
|
+
|
|
5767
|
+
/**
|
|
5768
|
+
* TimedAccessApi - object-oriented interface
|
|
5769
|
+
* @export
|
|
5770
|
+
* @class TimedAccessApi
|
|
5771
|
+
* @extends {BaseAPI}
|
|
5772
|
+
*/
|
|
5773
|
+
export class TimedAccessApi extends BaseAPI {
|
|
5774
|
+
/**
|
|
5775
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5776
|
+
* @summary Create a timed access pass
|
|
5777
|
+
* @param {string} orgId
|
|
5778
|
+
* @param {TimedAccessGrantRequestBody} [timedAccessGrantRequestBody]
|
|
5779
|
+
* @param {*} [options] Override http request option.
|
|
5780
|
+
* @throws {RequiredError}
|
|
5781
|
+
* @memberof TimedAccessApi
|
|
5782
|
+
*/
|
|
5783
|
+
public createTimedAccessGrant(orgId: string, timedAccessGrantRequestBody?: TimedAccessGrantRequestBody, options?: RawAxiosRequestConfig) {
|
|
5784
|
+
return TimedAccessApiFp(this.configuration).createTimedAccessGrant(orgId, timedAccessGrantRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5787
|
+
/**
|
|
5788
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5789
|
+
* @summary List the caller\'s active timed access pass for an org
|
|
5790
|
+
* @param {string} orgId
|
|
5791
|
+
* @param {ListMyTimedAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5792
|
+
* @param {*} [options] Override http request option.
|
|
5793
|
+
* @throws {RequiredError}
|
|
5794
|
+
* @memberof TimedAccessApi
|
|
5795
|
+
*/
|
|
5796
|
+
public listMyTimedAccessGrants(orgId: string, status?: ListMyTimedAccessGrantsStatusEnum, options?: RawAxiosRequestConfig) {
|
|
5797
|
+
return TimedAccessApiFp(this.configuration).listMyTimedAccessGrants(orgId, status, options).then((request) => request(this.axios, this.basePath));
|
|
5798
|
+
}
|
|
5799
|
+
}
|
|
5800
|
+
|
|
5801
|
+
/**
|
|
5802
|
+
* @export
|
|
5803
|
+
*/
|
|
5804
|
+
export const ListMyTimedAccessGrantsStatusEnum = {
|
|
5805
|
+
Active: 'active'
|
|
5806
|
+
} as const;
|
|
5807
|
+
export type ListMyTimedAccessGrantsStatusEnum = typeof ListMyTimedAccessGrantsStatusEnum[keyof typeof ListMyTimedAccessGrantsStatusEnum];
|
|
5808
|
+
|
|
5809
|
+
|
|
4780
5810
|
/**
|
|
4781
5811
|
* UserManagementApi - axios parameter creator
|
|
4782
5812
|
* @export
|