@goauthentik/api 2024.10.5-1734524927 → 2024.10.5-1734636687
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/.openapi-generator/FILES +4 -0
- package/dist/apis/CoreApi.d.ts +86 -1
- package/dist/apis/CoreApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/esm/apis/CoreApi.d.ts +86 -1
- package/dist/esm/apis/CoreApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/esm/models/ApplicationEntitlement.js +51 -0
- package/dist/esm/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/ApplicationEntitlementRequest.js +49 -0
- package/dist/esm/models/IdentificationChallenge.d.ts +1 -1
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.js +48 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.js +47 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/models/ApplicationEntitlement.js +58 -0
- package/dist/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/ApplicationEntitlementRequest.js +56 -0
- package/dist/models/IdentificationChallenge.d.ts +1 -1
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/models/PaginatedApplicationEntitlementList.js +55 -0
- package/dist/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/PatchedApplicationEntitlementRequest.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +350 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/models/ApplicationEntitlement.ts +91 -0
- package/src/models/ApplicationEntitlementRequest.ts +83 -0
- package/src/models/IdentificationChallenge.ts +1 -1
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedApplicationEntitlementList.ts +88 -0
- package/src/models/PatchedApplicationEntitlementRequest.ts +81 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -32,6 +32,8 @@ src/models/AppEnum.ts
|
|
|
32
32
|
src/models/AppleChallengeResponseRequest.ts
|
|
33
33
|
src/models/AppleLoginChallenge.ts
|
|
34
34
|
src/models/Application.ts
|
|
35
|
+
src/models/ApplicationEntitlement.ts
|
|
36
|
+
src/models/ApplicationEntitlementRequest.ts
|
|
35
37
|
src/models/ApplicationRequest.ts
|
|
36
38
|
src/models/AuthModeEnum.ts
|
|
37
39
|
src/models/AuthTypeEnum.ts
|
|
@@ -286,6 +288,7 @@ src/models/OutpostDefaultConfig.ts
|
|
|
286
288
|
src/models/OutpostHealth.ts
|
|
287
289
|
src/models/OutpostRequest.ts
|
|
288
290
|
src/models/OutpostTypeEnum.ts
|
|
291
|
+
src/models/PaginatedApplicationEntitlementList.ts
|
|
289
292
|
src/models/PaginatedApplicationList.ts
|
|
290
293
|
src/models/PaginatedAuthenticatedSessionList.ts
|
|
291
294
|
src/models/PaginatedAuthenticatorDuoStageList.ts
|
|
@@ -422,6 +425,7 @@ src/models/PasswordPolicy.ts
|
|
|
422
425
|
src/models/PasswordPolicyRequest.ts
|
|
423
426
|
src/models/PasswordStage.ts
|
|
424
427
|
src/models/PasswordStageRequest.ts
|
|
428
|
+
src/models/PatchedApplicationEntitlementRequest.ts
|
|
425
429
|
src/models/PatchedApplicationRequest.ts
|
|
426
430
|
src/models/PatchedAuthenticatorDuoStageRequest.ts
|
|
427
431
|
src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts
|
package/dist/apis/CoreApi.d.ts
CHANGED
|
@@ -10,7 +10,36 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Application, ApplicationRequest, AuthenticatedSession, Brand, BrandRequest, Coordinate, CurrentBrand, FilePathRequest, Group, GroupRequest, ImpersonationRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedBrandList, PaginatedGroupList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedBrandRequest, PatchedGroupRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
|
|
13
|
+
import type { Application, ApplicationEntitlement, ApplicationEntitlementRequest, ApplicationRequest, AuthenticatedSession, Brand, BrandRequest, Coordinate, CurrentBrand, FilePathRequest, Group, GroupRequest, ImpersonationRequest, Link, PaginatedApplicationEntitlementList, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedBrandList, PaginatedGroupList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationEntitlementRequest, PatchedApplicationRequest, PatchedBrandRequest, PatchedGroupRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
|
|
14
|
+
export interface CoreApplicationEntitlementsCreateRequest {
|
|
15
|
+
applicationEntitlementRequest: ApplicationEntitlementRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface CoreApplicationEntitlementsDestroyRequest {
|
|
18
|
+
pbmUuid: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CoreApplicationEntitlementsListRequest {
|
|
21
|
+
app?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
ordering?: string;
|
|
24
|
+
page?: number;
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
pbmUuid?: string;
|
|
27
|
+
search?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface CoreApplicationEntitlementsPartialUpdateRequest {
|
|
30
|
+
pbmUuid: string;
|
|
31
|
+
patchedApplicationEntitlementRequest?: PatchedApplicationEntitlementRequest;
|
|
32
|
+
}
|
|
33
|
+
export interface CoreApplicationEntitlementsRetrieveRequest {
|
|
34
|
+
pbmUuid: string;
|
|
35
|
+
}
|
|
36
|
+
export interface CoreApplicationEntitlementsUpdateRequest {
|
|
37
|
+
pbmUuid: string;
|
|
38
|
+
applicationEntitlementRequest: ApplicationEntitlementRequest;
|
|
39
|
+
}
|
|
40
|
+
export interface CoreApplicationEntitlementsUsedByListRequest {
|
|
41
|
+
pbmUuid: string;
|
|
42
|
+
}
|
|
14
43
|
export interface CoreApplicationsCheckAccessRetrieveRequest {
|
|
15
44
|
slug: string;
|
|
16
45
|
forUser?: number;
|
|
@@ -287,6 +316,62 @@ export interface CoreUsersUsedByListRequest {
|
|
|
287
316
|
*
|
|
288
317
|
*/
|
|
289
318
|
export declare class CoreApi extends runtime.BaseAPI {
|
|
319
|
+
/**
|
|
320
|
+
* ApplicationEntitlement Viewset
|
|
321
|
+
*/
|
|
322
|
+
coreApplicationEntitlementsCreateRaw(requestParameters: CoreApplicationEntitlementsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
323
|
+
/**
|
|
324
|
+
* ApplicationEntitlement Viewset
|
|
325
|
+
*/
|
|
326
|
+
coreApplicationEntitlementsCreate(requestParameters: CoreApplicationEntitlementsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
327
|
+
/**
|
|
328
|
+
* ApplicationEntitlement Viewset
|
|
329
|
+
*/
|
|
330
|
+
coreApplicationEntitlementsDestroyRaw(requestParameters: CoreApplicationEntitlementsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
331
|
+
/**
|
|
332
|
+
* ApplicationEntitlement Viewset
|
|
333
|
+
*/
|
|
334
|
+
coreApplicationEntitlementsDestroy(requestParameters: CoreApplicationEntitlementsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
335
|
+
/**
|
|
336
|
+
* ApplicationEntitlement Viewset
|
|
337
|
+
*/
|
|
338
|
+
coreApplicationEntitlementsListRaw(requestParameters: CoreApplicationEntitlementsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedApplicationEntitlementList>>;
|
|
339
|
+
/**
|
|
340
|
+
* ApplicationEntitlement Viewset
|
|
341
|
+
*/
|
|
342
|
+
coreApplicationEntitlementsList(requestParameters?: CoreApplicationEntitlementsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedApplicationEntitlementList>;
|
|
343
|
+
/**
|
|
344
|
+
* ApplicationEntitlement Viewset
|
|
345
|
+
*/
|
|
346
|
+
coreApplicationEntitlementsPartialUpdateRaw(requestParameters: CoreApplicationEntitlementsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
347
|
+
/**
|
|
348
|
+
* ApplicationEntitlement Viewset
|
|
349
|
+
*/
|
|
350
|
+
coreApplicationEntitlementsPartialUpdate(requestParameters: CoreApplicationEntitlementsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
351
|
+
/**
|
|
352
|
+
* ApplicationEntitlement Viewset
|
|
353
|
+
*/
|
|
354
|
+
coreApplicationEntitlementsRetrieveRaw(requestParameters: CoreApplicationEntitlementsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
355
|
+
/**
|
|
356
|
+
* ApplicationEntitlement Viewset
|
|
357
|
+
*/
|
|
358
|
+
coreApplicationEntitlementsRetrieve(requestParameters: CoreApplicationEntitlementsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
359
|
+
/**
|
|
360
|
+
* ApplicationEntitlement Viewset
|
|
361
|
+
*/
|
|
362
|
+
coreApplicationEntitlementsUpdateRaw(requestParameters: CoreApplicationEntitlementsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
363
|
+
/**
|
|
364
|
+
* ApplicationEntitlement Viewset
|
|
365
|
+
*/
|
|
366
|
+
coreApplicationEntitlementsUpdate(requestParameters: CoreApplicationEntitlementsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
367
|
+
/**
|
|
368
|
+
* Get a list of all objects that use this object
|
|
369
|
+
*/
|
|
370
|
+
coreApplicationEntitlementsUsedByListRaw(requestParameters: CoreApplicationEntitlementsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
|
|
371
|
+
/**
|
|
372
|
+
* Get a list of all objects that use this object
|
|
373
|
+
*/
|
|
374
|
+
coreApplicationEntitlementsUsedByList(requestParameters: CoreApplicationEntitlementsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>>;
|
|
290
375
|
/**
|
|
291
376
|
* Check access to a single application by slug
|
|
292
377
|
*/
|
package/dist/apis/CoreApi.js
CHANGED
|
@@ -29,6 +29,277 @@ const models_1 = require("../models");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class CoreApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* ApplicationEntitlement Viewset
|
|
34
|
+
*/
|
|
35
|
+
coreApplicationEntitlementsCreateRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters.applicationEntitlementRequest === null || requestParameters.applicationEntitlementRequest === undefined) {
|
|
38
|
+
throw new runtime.RequiredError('applicationEntitlementRequest', 'Required parameter requestParameters.applicationEntitlementRequest was null or undefined when calling coreApplicationEntitlementsCreate.');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("authentik", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const response = yield this.request({
|
|
51
|
+
path: `/core/application_entitlements/`,
|
|
52
|
+
method: 'POST',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
body: (0, models_1.ApplicationEntitlementRequestToJSON)(requestParameters.applicationEntitlementRequest),
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApplicationEntitlementFromJSON)(jsonValue));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* ApplicationEntitlement Viewset
|
|
62
|
+
*/
|
|
63
|
+
coreApplicationEntitlementsCreate(requestParameters, initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const response = yield this.coreApplicationEntitlementsCreateRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* ApplicationEntitlement Viewset
|
|
71
|
+
*/
|
|
72
|
+
coreApplicationEntitlementsDestroyRaw(requestParameters, initOverrides) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
75
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsDestroy.');
|
|
76
|
+
}
|
|
77
|
+
const queryParameters = {};
|
|
78
|
+
const headerParameters = {};
|
|
79
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
80
|
+
const token = this.configuration.accessToken;
|
|
81
|
+
const tokenString = yield token("authentik", []);
|
|
82
|
+
if (tokenString) {
|
|
83
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const response = yield this.request({
|
|
87
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
88
|
+
method: 'DELETE',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
}, initOverrides);
|
|
92
|
+
return new runtime.VoidApiResponse(response);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* ApplicationEntitlement Viewset
|
|
97
|
+
*/
|
|
98
|
+
coreApplicationEntitlementsDestroy(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
yield this.coreApplicationEntitlementsDestroyRaw(requestParameters, initOverrides);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* ApplicationEntitlement Viewset
|
|
105
|
+
*/
|
|
106
|
+
coreApplicationEntitlementsListRaw(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const queryParameters = {};
|
|
109
|
+
if (requestParameters.app !== undefined) {
|
|
110
|
+
queryParameters['app'] = requestParameters.app;
|
|
111
|
+
}
|
|
112
|
+
if (requestParameters.name !== undefined) {
|
|
113
|
+
queryParameters['name'] = requestParameters.name;
|
|
114
|
+
}
|
|
115
|
+
if (requestParameters.ordering !== undefined) {
|
|
116
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
117
|
+
}
|
|
118
|
+
if (requestParameters.page !== undefined) {
|
|
119
|
+
queryParameters['page'] = requestParameters.page;
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters.pageSize !== undefined) {
|
|
122
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters.pbmUuid !== undefined) {
|
|
125
|
+
queryParameters['pbm_uuid'] = requestParameters.pbmUuid;
|
|
126
|
+
}
|
|
127
|
+
if (requestParameters.search !== undefined) {
|
|
128
|
+
queryParameters['search'] = requestParameters.search;
|
|
129
|
+
}
|
|
130
|
+
const headerParameters = {};
|
|
131
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
132
|
+
const token = this.configuration.accessToken;
|
|
133
|
+
const tokenString = yield token("authentik", []);
|
|
134
|
+
if (tokenString) {
|
|
135
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const response = yield this.request({
|
|
139
|
+
path: `/core/application_entitlements/`,
|
|
140
|
+
method: 'GET',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
}, initOverrides);
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedApplicationEntitlementListFromJSON)(jsonValue));
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* ApplicationEntitlement Viewset
|
|
149
|
+
*/
|
|
150
|
+
coreApplicationEntitlementsList(requestParameters = {}, initOverrides) {
|
|
151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
const response = yield this.coreApplicationEntitlementsListRaw(requestParameters, initOverrides);
|
|
153
|
+
return yield response.value();
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* ApplicationEntitlement Viewset
|
|
158
|
+
*/
|
|
159
|
+
coreApplicationEntitlementsPartialUpdateRaw(requestParameters, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
162
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsPartialUpdate.');
|
|
163
|
+
}
|
|
164
|
+
const queryParameters = {};
|
|
165
|
+
const headerParameters = {};
|
|
166
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
168
|
+
const token = this.configuration.accessToken;
|
|
169
|
+
const tokenString = yield token("authentik", []);
|
|
170
|
+
if (tokenString) {
|
|
171
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
const response = yield this.request({
|
|
175
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
176
|
+
method: 'PATCH',
|
|
177
|
+
headers: headerParameters,
|
|
178
|
+
query: queryParameters,
|
|
179
|
+
body: (0, models_1.PatchedApplicationEntitlementRequestToJSON)(requestParameters.patchedApplicationEntitlementRequest),
|
|
180
|
+
}, initOverrides);
|
|
181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApplicationEntitlementFromJSON)(jsonValue));
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* ApplicationEntitlement Viewset
|
|
186
|
+
*/
|
|
187
|
+
coreApplicationEntitlementsPartialUpdate(requestParameters, initOverrides) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const response = yield this.coreApplicationEntitlementsPartialUpdateRaw(requestParameters, initOverrides);
|
|
190
|
+
return yield response.value();
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* ApplicationEntitlement Viewset
|
|
195
|
+
*/
|
|
196
|
+
coreApplicationEntitlementsRetrieveRaw(requestParameters, initOverrides) {
|
|
197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
199
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsRetrieve.');
|
|
200
|
+
}
|
|
201
|
+
const queryParameters = {};
|
|
202
|
+
const headerParameters = {};
|
|
203
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
204
|
+
const token = this.configuration.accessToken;
|
|
205
|
+
const tokenString = yield token("authentik", []);
|
|
206
|
+
if (tokenString) {
|
|
207
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
const response = yield this.request({
|
|
211
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
212
|
+
method: 'GET',
|
|
213
|
+
headers: headerParameters,
|
|
214
|
+
query: queryParameters,
|
|
215
|
+
}, initOverrides);
|
|
216
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApplicationEntitlementFromJSON)(jsonValue));
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* ApplicationEntitlement Viewset
|
|
221
|
+
*/
|
|
222
|
+
coreApplicationEntitlementsRetrieve(requestParameters, initOverrides) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
const response = yield this.coreApplicationEntitlementsRetrieveRaw(requestParameters, initOverrides);
|
|
225
|
+
return yield response.value();
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* ApplicationEntitlement Viewset
|
|
230
|
+
*/
|
|
231
|
+
coreApplicationEntitlementsUpdateRaw(requestParameters, initOverrides) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
234
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsUpdate.');
|
|
235
|
+
}
|
|
236
|
+
if (requestParameters.applicationEntitlementRequest === null || requestParameters.applicationEntitlementRequest === undefined) {
|
|
237
|
+
throw new runtime.RequiredError('applicationEntitlementRequest', 'Required parameter requestParameters.applicationEntitlementRequest was null or undefined when calling coreApplicationEntitlementsUpdate.');
|
|
238
|
+
}
|
|
239
|
+
const queryParameters = {};
|
|
240
|
+
const headerParameters = {};
|
|
241
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
242
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
243
|
+
const token = this.configuration.accessToken;
|
|
244
|
+
const tokenString = yield token("authentik", []);
|
|
245
|
+
if (tokenString) {
|
|
246
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
const response = yield this.request({
|
|
250
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
251
|
+
method: 'PUT',
|
|
252
|
+
headers: headerParameters,
|
|
253
|
+
query: queryParameters,
|
|
254
|
+
body: (0, models_1.ApplicationEntitlementRequestToJSON)(requestParameters.applicationEntitlementRequest),
|
|
255
|
+
}, initOverrides);
|
|
256
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApplicationEntitlementFromJSON)(jsonValue));
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* ApplicationEntitlement Viewset
|
|
261
|
+
*/
|
|
262
|
+
coreApplicationEntitlementsUpdate(requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
const response = yield this.coreApplicationEntitlementsUpdateRaw(requestParameters, initOverrides);
|
|
265
|
+
return yield response.value();
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Get a list of all objects that use this object
|
|
270
|
+
*/
|
|
271
|
+
coreApplicationEntitlementsUsedByListRaw(requestParameters, initOverrides) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
274
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsUsedByList.');
|
|
275
|
+
}
|
|
276
|
+
const queryParameters = {};
|
|
277
|
+
const headerParameters = {};
|
|
278
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
279
|
+
const token = this.configuration.accessToken;
|
|
280
|
+
const tokenString = yield token("authentik", []);
|
|
281
|
+
if (tokenString) {
|
|
282
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const response = yield this.request({
|
|
286
|
+
path: `/core/application_entitlements/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
287
|
+
method: 'GET',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Get a list of all objects that use this object
|
|
296
|
+
*/
|
|
297
|
+
coreApplicationEntitlementsUsedByList(requestParameters, initOverrides) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
const response = yield this.coreApplicationEntitlementsUsedByListRaw(requestParameters, initOverrides);
|
|
300
|
+
return yield response.value();
|
|
301
|
+
});
|
|
302
|
+
}
|
|
32
303
|
/**
|
|
33
304
|
* Check access to a single application by slug
|
|
34
305
|
*/
|
package/dist/apis/RbacApi.d.ts
CHANGED
|
@@ -338,6 +338,7 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
|
|
|
338
338
|
readonly BlueprintsBlueprintinstance: "authentik_blueprints.blueprintinstance";
|
|
339
339
|
readonly BrandsBrand: "authentik_brands.brand";
|
|
340
340
|
readonly CoreApplication: "authentik_core.application";
|
|
341
|
+
readonly CoreApplicationentitlement: "authentik_core.applicationentitlement";
|
|
341
342
|
readonly CoreGroup: "authentik_core.group";
|
|
342
343
|
readonly CoreToken: "authentik_core.token";
|
|
343
344
|
readonly CoreUser: "authentik_core.user";
|
|
@@ -440,6 +441,7 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
|
|
|
440
441
|
readonly BlueprintsBlueprintinstance: "authentik_blueprints.blueprintinstance";
|
|
441
442
|
readonly BrandsBrand: "authentik_brands.brand";
|
|
442
443
|
readonly CoreApplication: "authentik_core.application";
|
|
444
|
+
readonly CoreApplicationentitlement: "authentik_core.applicationentitlement";
|
|
443
445
|
readonly CoreGroup: "authentik_core.group";
|
|
444
446
|
readonly CoreToken: "authentik_core.token";
|
|
445
447
|
readonly CoreUser: "authentik_core.user";
|
package/dist/apis/RbacApi.js
CHANGED
|
@@ -1041,6 +1041,7 @@ exports.RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
1041
1041
|
BlueprintsBlueprintinstance: 'authentik_blueprints.blueprintinstance',
|
|
1042
1042
|
BrandsBrand: 'authentik_brands.brand',
|
|
1043
1043
|
CoreApplication: 'authentik_core.application',
|
|
1044
|
+
CoreApplicationentitlement: 'authentik_core.applicationentitlement',
|
|
1044
1045
|
CoreGroup: 'authentik_core.group',
|
|
1045
1046
|
CoreToken: 'authentik_core.token',
|
|
1046
1047
|
CoreUser: 'authentik_core.user',
|
|
@@ -1142,6 +1143,7 @@ exports.RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1142
1143
|
BlueprintsBlueprintinstance: 'authentik_blueprints.blueprintinstance',
|
|
1143
1144
|
BrandsBrand: 'authentik_brands.brand',
|
|
1144
1145
|
CoreApplication: 'authentik_core.application',
|
|
1146
|
+
CoreApplicationentitlement: 'authentik_core.applicationentitlement',
|
|
1145
1147
|
CoreGroup: 'authentik_core.group',
|
|
1146
1148
|
CoreToken: 'authentik_core.token',
|
|
1147
1149
|
CoreUser: 'authentik_core.user',
|
|
@@ -10,7 +10,36 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Application, ApplicationRequest, AuthenticatedSession, Brand, BrandRequest, Coordinate, CurrentBrand, FilePathRequest, Group, GroupRequest, ImpersonationRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedBrandList, PaginatedGroupList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedBrandRequest, PatchedGroupRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
|
|
13
|
+
import type { Application, ApplicationEntitlement, ApplicationEntitlementRequest, ApplicationRequest, AuthenticatedSession, Brand, BrandRequest, Coordinate, CurrentBrand, FilePathRequest, Group, GroupRequest, ImpersonationRequest, Link, PaginatedApplicationEntitlementList, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedBrandList, PaginatedGroupList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationEntitlementRequest, PatchedApplicationRequest, PatchedBrandRequest, PatchedGroupRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
|
|
14
|
+
export interface CoreApplicationEntitlementsCreateRequest {
|
|
15
|
+
applicationEntitlementRequest: ApplicationEntitlementRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface CoreApplicationEntitlementsDestroyRequest {
|
|
18
|
+
pbmUuid: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CoreApplicationEntitlementsListRequest {
|
|
21
|
+
app?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
ordering?: string;
|
|
24
|
+
page?: number;
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
pbmUuid?: string;
|
|
27
|
+
search?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface CoreApplicationEntitlementsPartialUpdateRequest {
|
|
30
|
+
pbmUuid: string;
|
|
31
|
+
patchedApplicationEntitlementRequest?: PatchedApplicationEntitlementRequest;
|
|
32
|
+
}
|
|
33
|
+
export interface CoreApplicationEntitlementsRetrieveRequest {
|
|
34
|
+
pbmUuid: string;
|
|
35
|
+
}
|
|
36
|
+
export interface CoreApplicationEntitlementsUpdateRequest {
|
|
37
|
+
pbmUuid: string;
|
|
38
|
+
applicationEntitlementRequest: ApplicationEntitlementRequest;
|
|
39
|
+
}
|
|
40
|
+
export interface CoreApplicationEntitlementsUsedByListRequest {
|
|
41
|
+
pbmUuid: string;
|
|
42
|
+
}
|
|
14
43
|
export interface CoreApplicationsCheckAccessRetrieveRequest {
|
|
15
44
|
slug: string;
|
|
16
45
|
forUser?: number;
|
|
@@ -287,6 +316,62 @@ export interface CoreUsersUsedByListRequest {
|
|
|
287
316
|
*
|
|
288
317
|
*/
|
|
289
318
|
export declare class CoreApi extends runtime.BaseAPI {
|
|
319
|
+
/**
|
|
320
|
+
* ApplicationEntitlement Viewset
|
|
321
|
+
*/
|
|
322
|
+
coreApplicationEntitlementsCreateRaw(requestParameters: CoreApplicationEntitlementsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
323
|
+
/**
|
|
324
|
+
* ApplicationEntitlement Viewset
|
|
325
|
+
*/
|
|
326
|
+
coreApplicationEntitlementsCreate(requestParameters: CoreApplicationEntitlementsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
327
|
+
/**
|
|
328
|
+
* ApplicationEntitlement Viewset
|
|
329
|
+
*/
|
|
330
|
+
coreApplicationEntitlementsDestroyRaw(requestParameters: CoreApplicationEntitlementsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
331
|
+
/**
|
|
332
|
+
* ApplicationEntitlement Viewset
|
|
333
|
+
*/
|
|
334
|
+
coreApplicationEntitlementsDestroy(requestParameters: CoreApplicationEntitlementsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
335
|
+
/**
|
|
336
|
+
* ApplicationEntitlement Viewset
|
|
337
|
+
*/
|
|
338
|
+
coreApplicationEntitlementsListRaw(requestParameters: CoreApplicationEntitlementsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedApplicationEntitlementList>>;
|
|
339
|
+
/**
|
|
340
|
+
* ApplicationEntitlement Viewset
|
|
341
|
+
*/
|
|
342
|
+
coreApplicationEntitlementsList(requestParameters?: CoreApplicationEntitlementsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedApplicationEntitlementList>;
|
|
343
|
+
/**
|
|
344
|
+
* ApplicationEntitlement Viewset
|
|
345
|
+
*/
|
|
346
|
+
coreApplicationEntitlementsPartialUpdateRaw(requestParameters: CoreApplicationEntitlementsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
347
|
+
/**
|
|
348
|
+
* ApplicationEntitlement Viewset
|
|
349
|
+
*/
|
|
350
|
+
coreApplicationEntitlementsPartialUpdate(requestParameters: CoreApplicationEntitlementsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
351
|
+
/**
|
|
352
|
+
* ApplicationEntitlement Viewset
|
|
353
|
+
*/
|
|
354
|
+
coreApplicationEntitlementsRetrieveRaw(requestParameters: CoreApplicationEntitlementsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
355
|
+
/**
|
|
356
|
+
* ApplicationEntitlement Viewset
|
|
357
|
+
*/
|
|
358
|
+
coreApplicationEntitlementsRetrieve(requestParameters: CoreApplicationEntitlementsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
359
|
+
/**
|
|
360
|
+
* ApplicationEntitlement Viewset
|
|
361
|
+
*/
|
|
362
|
+
coreApplicationEntitlementsUpdateRaw(requestParameters: CoreApplicationEntitlementsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
363
|
+
/**
|
|
364
|
+
* ApplicationEntitlement Viewset
|
|
365
|
+
*/
|
|
366
|
+
coreApplicationEntitlementsUpdate(requestParameters: CoreApplicationEntitlementsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
367
|
+
/**
|
|
368
|
+
* Get a list of all objects that use this object
|
|
369
|
+
*/
|
|
370
|
+
coreApplicationEntitlementsUsedByListRaw(requestParameters: CoreApplicationEntitlementsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
|
|
371
|
+
/**
|
|
372
|
+
* Get a list of all objects that use this object
|
|
373
|
+
*/
|
|
374
|
+
coreApplicationEntitlementsUsedByList(requestParameters: CoreApplicationEntitlementsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>>;
|
|
290
375
|
/**
|
|
291
376
|
* Check access to a single application by slug
|
|
292
377
|
*/
|