@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/dist/esm/apis/CoreApi.js
CHANGED
|
@@ -21,11 +21,282 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApplicationFromJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, BrandFromJSON, BrandRequestToJSON, CoordinateFromJSON, CurrentBrandFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, ImpersonationRequestToJSON, LinkFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedBrandListFromJSON, PaginatedGroupListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationRequestToJSON, PatchedBrandRequestToJSON, PatchedGroupRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, TransactionApplicationRequestToJSON, TransactionApplicationResponseFromJSON, UsedByFromJSON, UserFromJSON, UserAccountRequestToJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
|
|
24
|
+
import { ApplicationFromJSON, ApplicationEntitlementFromJSON, ApplicationEntitlementRequestToJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, BrandFromJSON, BrandRequestToJSON, CoordinateFromJSON, CurrentBrandFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, ImpersonationRequestToJSON, LinkFromJSON, PaginatedApplicationEntitlementListFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedBrandListFromJSON, PaginatedGroupListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationEntitlementRequestToJSON, PatchedApplicationRequestToJSON, PatchedBrandRequestToJSON, PatchedGroupRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, TransactionApplicationRequestToJSON, TransactionApplicationResponseFromJSON, UsedByFromJSON, UserFromJSON, UserAccountRequestToJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class CoreApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* ApplicationEntitlement Viewset
|
|
31
|
+
*/
|
|
32
|
+
coreApplicationEntitlementsCreateRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.applicationEntitlementRequest === null || requestParameters.applicationEntitlementRequest === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('applicationEntitlementRequest', 'Required parameter requestParameters.applicationEntitlementRequest was null or undefined when calling coreApplicationEntitlementsCreate.');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("authentik", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: `/core/application_entitlements/`,
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
body: ApplicationEntitlementRequestToJSON(requestParameters.applicationEntitlementRequest),
|
|
53
|
+
}, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ApplicationEntitlement Viewset
|
|
59
|
+
*/
|
|
60
|
+
coreApplicationEntitlementsCreate(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const response = yield this.coreApplicationEntitlementsCreateRaw(requestParameters, initOverrides);
|
|
63
|
+
return yield response.value();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* ApplicationEntitlement Viewset
|
|
68
|
+
*/
|
|
69
|
+
coreApplicationEntitlementsDestroyRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
72
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsDestroy.');
|
|
73
|
+
}
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("authentik", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = yield this.request({
|
|
84
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
85
|
+
method: 'DELETE',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
return new runtime.VoidApiResponse(response);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* ApplicationEntitlement Viewset
|
|
94
|
+
*/
|
|
95
|
+
coreApplicationEntitlementsDestroy(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
yield this.coreApplicationEntitlementsDestroyRaw(requestParameters, initOverrides);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* ApplicationEntitlement Viewset
|
|
102
|
+
*/
|
|
103
|
+
coreApplicationEntitlementsListRaw(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const queryParameters = {};
|
|
106
|
+
if (requestParameters.app !== undefined) {
|
|
107
|
+
queryParameters['app'] = requestParameters.app;
|
|
108
|
+
}
|
|
109
|
+
if (requestParameters.name !== undefined) {
|
|
110
|
+
queryParameters['name'] = requestParameters.name;
|
|
111
|
+
}
|
|
112
|
+
if (requestParameters.ordering !== undefined) {
|
|
113
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
114
|
+
}
|
|
115
|
+
if (requestParameters.page !== undefined) {
|
|
116
|
+
queryParameters['page'] = requestParameters.page;
|
|
117
|
+
}
|
|
118
|
+
if (requestParameters.pageSize !== undefined) {
|
|
119
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters.pbmUuid !== undefined) {
|
|
122
|
+
queryParameters['pbm_uuid'] = requestParameters.pbmUuid;
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters.search !== undefined) {
|
|
125
|
+
queryParameters['search'] = requestParameters.search;
|
|
126
|
+
}
|
|
127
|
+
const headerParameters = {};
|
|
128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
129
|
+
const token = this.configuration.accessToken;
|
|
130
|
+
const tokenString = yield token("authentik", []);
|
|
131
|
+
if (tokenString) {
|
|
132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const response = yield this.request({
|
|
136
|
+
path: `/core/application_entitlements/`,
|
|
137
|
+
method: 'GET',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
}, initOverrides);
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedApplicationEntitlementListFromJSON(jsonValue));
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* ApplicationEntitlement Viewset
|
|
146
|
+
*/
|
|
147
|
+
coreApplicationEntitlementsList(requestParameters = {}, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const response = yield this.coreApplicationEntitlementsListRaw(requestParameters, initOverrides);
|
|
150
|
+
return yield response.value();
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* ApplicationEntitlement Viewset
|
|
155
|
+
*/
|
|
156
|
+
coreApplicationEntitlementsPartialUpdateRaw(requestParameters, initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
159
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsPartialUpdate.');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
const headerParameters = {};
|
|
163
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
164
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
165
|
+
const token = this.configuration.accessToken;
|
|
166
|
+
const tokenString = yield token("authentik", []);
|
|
167
|
+
if (tokenString) {
|
|
168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const response = yield this.request({
|
|
172
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
173
|
+
method: 'PATCH',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
body: PatchedApplicationEntitlementRequestToJSON(requestParameters.patchedApplicationEntitlementRequest),
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* ApplicationEntitlement Viewset
|
|
183
|
+
*/
|
|
184
|
+
coreApplicationEntitlementsPartialUpdate(requestParameters, initOverrides) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const response = yield this.coreApplicationEntitlementsPartialUpdateRaw(requestParameters, initOverrides);
|
|
187
|
+
return yield response.value();
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* ApplicationEntitlement Viewset
|
|
192
|
+
*/
|
|
193
|
+
coreApplicationEntitlementsRetrieveRaw(requestParameters, initOverrides) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
196
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsRetrieve.');
|
|
197
|
+
}
|
|
198
|
+
const queryParameters = {};
|
|
199
|
+
const headerParameters = {};
|
|
200
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
201
|
+
const token = this.configuration.accessToken;
|
|
202
|
+
const tokenString = yield token("authentik", []);
|
|
203
|
+
if (tokenString) {
|
|
204
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
const response = yield this.request({
|
|
208
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
209
|
+
method: 'GET',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
}, initOverrides);
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* ApplicationEntitlement Viewset
|
|
218
|
+
*/
|
|
219
|
+
coreApplicationEntitlementsRetrieve(requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
const response = yield this.coreApplicationEntitlementsRetrieveRaw(requestParameters, initOverrides);
|
|
222
|
+
return yield response.value();
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* ApplicationEntitlement Viewset
|
|
227
|
+
*/
|
|
228
|
+
coreApplicationEntitlementsUpdateRaw(requestParameters, initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
231
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsUpdate.');
|
|
232
|
+
}
|
|
233
|
+
if (requestParameters.applicationEntitlementRequest === null || requestParameters.applicationEntitlementRequest === undefined) {
|
|
234
|
+
throw new runtime.RequiredError('applicationEntitlementRequest', 'Required parameter requestParameters.applicationEntitlementRequest was null or undefined when calling coreApplicationEntitlementsUpdate.');
|
|
235
|
+
}
|
|
236
|
+
const queryParameters = {};
|
|
237
|
+
const headerParameters = {};
|
|
238
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
const token = this.configuration.accessToken;
|
|
241
|
+
const tokenString = yield token("authentik", []);
|
|
242
|
+
if (tokenString) {
|
|
243
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const response = yield this.request({
|
|
247
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
248
|
+
method: 'PUT',
|
|
249
|
+
headers: headerParameters,
|
|
250
|
+
query: queryParameters,
|
|
251
|
+
body: ApplicationEntitlementRequestToJSON(requestParameters.applicationEntitlementRequest),
|
|
252
|
+
}, initOverrides);
|
|
253
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* ApplicationEntitlement Viewset
|
|
258
|
+
*/
|
|
259
|
+
coreApplicationEntitlementsUpdate(requestParameters, initOverrides) {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const response = yield this.coreApplicationEntitlementsUpdateRaw(requestParameters, initOverrides);
|
|
262
|
+
return yield response.value();
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Get a list of all objects that use this object
|
|
267
|
+
*/
|
|
268
|
+
coreApplicationEntitlementsUsedByListRaw(requestParameters, initOverrides) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
271
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsUsedByList.');
|
|
272
|
+
}
|
|
273
|
+
const queryParameters = {};
|
|
274
|
+
const headerParameters = {};
|
|
275
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
276
|
+
const token = this.configuration.accessToken;
|
|
277
|
+
const tokenString = yield token("authentik", []);
|
|
278
|
+
if (tokenString) {
|
|
279
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const response = yield this.request({
|
|
283
|
+
path: `/core/application_entitlements/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
284
|
+
method: 'GET',
|
|
285
|
+
headers: headerParameters,
|
|
286
|
+
query: queryParameters,
|
|
287
|
+
}, initOverrides);
|
|
288
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Get a list of all objects that use this object
|
|
293
|
+
*/
|
|
294
|
+
coreApplicationEntitlementsUsedByList(requestParameters, initOverrides) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const response = yield this.coreApplicationEntitlementsUsedByListRaw(requestParameters, initOverrides);
|
|
297
|
+
return yield response.value();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
29
300
|
/**
|
|
30
301
|
* Check access to a single application by slug
|
|
31
302
|
*/
|
|
@@ -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/esm/apis/RbacApi.js
CHANGED
|
@@ -1037,6 +1037,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
1037
1037
|
BlueprintsBlueprintinstance: 'authentik_blueprints.blueprintinstance',
|
|
1038
1038
|
BrandsBrand: 'authentik_brands.brand',
|
|
1039
1039
|
CoreApplication: 'authentik_core.application',
|
|
1040
|
+
CoreApplicationentitlement: 'authentik_core.applicationentitlement',
|
|
1040
1041
|
CoreGroup: 'authentik_core.group',
|
|
1041
1042
|
CoreToken: 'authentik_core.token',
|
|
1042
1043
|
CoreUser: 'authentik_core.user',
|
|
@@ -1138,6 +1139,7 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1138
1139
|
BlueprintsBlueprintinstance: 'authentik_blueprints.blueprintinstance',
|
|
1139
1140
|
BrandsBrand: 'authentik_brands.brand',
|
|
1140
1141
|
CoreApplication: 'authentik_core.application',
|
|
1142
|
+
CoreApplicationentitlement: 'authentik_core.applicationentitlement',
|
|
1141
1143
|
CoreGroup: 'authentik_core.group',
|
|
1142
1144
|
CoreToken: 'authentik_core.token',
|
|
1143
1145
|
CoreUser: 'authentik_core.user',
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* ApplicationEntitlement Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApplicationEntitlement
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplicationEntitlement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApplicationEntitlement
|
|
22
|
+
*/
|
|
23
|
+
readonly pbmUuid: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApplicationEntitlement
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApplicationEntitlement
|
|
34
|
+
*/
|
|
35
|
+
app: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {any}
|
|
39
|
+
* @memberof ApplicationEntitlement
|
|
40
|
+
*/
|
|
41
|
+
attributes?: any | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ApplicationEntitlement interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfApplicationEntitlement(value: object): boolean;
|
|
47
|
+
export declare function ApplicationEntitlementFromJSON(json: any): ApplicationEntitlement;
|
|
48
|
+
export declare function ApplicationEntitlementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationEntitlement;
|
|
49
|
+
export declare function ApplicationEntitlementToJSON(value?: ApplicationEntitlement | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplicationEntitlement interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplicationEntitlement(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "pbmUuid" in value;
|
|
21
|
+
isInstance = isInstance && "name" in value;
|
|
22
|
+
isInstance = isInstance && "app" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function ApplicationEntitlementFromJSON(json) {
|
|
26
|
+
return ApplicationEntitlementFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ApplicationEntitlementFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'pbmUuid': json['pbm_uuid'],
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'app': json['app'],
|
|
36
|
+
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ApplicationEntitlementToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value.name,
|
|
48
|
+
'app': value.app,
|
|
49
|
+
'attributes': value.attributes,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* ApplicationEntitlement Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApplicationEntitlementRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplicationEntitlementRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApplicationEntitlementRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApplicationEntitlementRequest
|
|
28
|
+
*/
|
|
29
|
+
app: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {any}
|
|
33
|
+
* @memberof ApplicationEntitlementRequest
|
|
34
|
+
*/
|
|
35
|
+
attributes?: any | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApplicationEntitlementRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApplicationEntitlementRequest(value: object): boolean;
|
|
41
|
+
export declare function ApplicationEntitlementRequestFromJSON(json: any): ApplicationEntitlementRequest;
|
|
42
|
+
export declare function ApplicationEntitlementRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationEntitlementRequest;
|
|
43
|
+
export declare function ApplicationEntitlementRequestToJSON(value?: ApplicationEntitlementRequest | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplicationEntitlementRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplicationEntitlementRequest(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "name" in value;
|
|
21
|
+
isInstance = isInstance && "app" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function ApplicationEntitlementRequestFromJSON(json) {
|
|
25
|
+
return ApplicationEntitlementRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApplicationEntitlementRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'app': json['app'],
|
|
34
|
+
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ApplicationEntitlementRequestToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': value.name,
|
|
46
|
+
'app': value.app,
|
|
47
|
+
'attributes': value.attributes,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -93,6 +93,7 @@ export declare const ModelEnum: {
|
|
|
93
93
|
readonly CoreGroup: "authentik_core.group";
|
|
94
94
|
readonly CoreUser: "authentik_core.user";
|
|
95
95
|
readonly CoreApplication: "authentik_core.application";
|
|
96
|
+
readonly CoreApplicationentitlement: "authentik_core.applicationentitlement";
|
|
96
97
|
readonly CoreToken: "authentik_core.token";
|
|
97
98
|
readonly EnterpriseLicense: "authentik_enterprise.license";
|
|
98
99
|
readonly ProvidersGoogleWorkspaceGoogleworkspaceprovider: "authentik_providers_google_workspace.googleworkspaceprovider";
|
|
@@ -95,6 +95,7 @@ export const ModelEnum = {
|
|
|
95
95
|
CoreGroup: 'authentik_core.group',
|
|
96
96
|
CoreUser: 'authentik_core.user',
|
|
97
97
|
CoreApplication: 'authentik_core.application',
|
|
98
|
+
CoreApplicationentitlement: 'authentik_core.applicationentitlement',
|
|
98
99
|
CoreToken: 'authentik_core.token',
|
|
99
100
|
EnterpriseLicense: 'authentik_enterprise.license',
|
|
100
101
|
ProvidersGoogleWorkspaceGoogleworkspaceprovider: 'authentik_providers_google_workspace.googleworkspaceprovider',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApplicationEntitlement } from './ApplicationEntitlement';
|
|
13
|
+
import type { Pagination } from './Pagination';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedApplicationEntitlementList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedApplicationEntitlementList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedApplicationEntitlementList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<ApplicationEntitlement>}
|
|
29
|
+
* @memberof PaginatedApplicationEntitlementList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<ApplicationEntitlement>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedApplicationEntitlementList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedApplicationEntitlementList(value: object): boolean;
|
|
37
|
+
export declare function PaginatedApplicationEntitlementListFromJSON(json: any): PaginatedApplicationEntitlementList;
|
|
38
|
+
export declare function PaginatedApplicationEntitlementListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedApplicationEntitlementList;
|
|
39
|
+
export declare function PaginatedApplicationEntitlementListToJSON(value?: PaginatedApplicationEntitlementList | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ApplicationEntitlementFromJSON, ApplicationEntitlementToJSON, } from './ApplicationEntitlement';
|
|
15
|
+
import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PaginatedApplicationEntitlementList interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPaginatedApplicationEntitlementList(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "pagination" in value;
|
|
22
|
+
isInstance = isInstance && "results" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function PaginatedApplicationEntitlementListFromJSON(json) {
|
|
26
|
+
return PaginatedApplicationEntitlementListFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PaginatedApplicationEntitlementListFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
34
|
+
'results': (json['results'].map(ApplicationEntitlementFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PaginatedApplicationEntitlementListToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'pagination': PaginationToJSON(value.pagination),
|
|
46
|
+
'results': (value.results.map(ApplicationEntitlementToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* ApplicationEntitlement Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PatchedApplicationEntitlementRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PatchedApplicationEntitlementRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PatchedApplicationEntitlementRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedApplicationEntitlementRequest
|
|
28
|
+
*/
|
|
29
|
+
app?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {any}
|
|
33
|
+
* @memberof PatchedApplicationEntitlementRequest
|
|
34
|
+
*/
|
|
35
|
+
attributes?: any | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PatchedApplicationEntitlementRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPatchedApplicationEntitlementRequest(value: object): boolean;
|
|
41
|
+
export declare function PatchedApplicationEntitlementRequestFromJSON(json: any): PatchedApplicationEntitlementRequest;
|
|
42
|
+
export declare function PatchedApplicationEntitlementRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedApplicationEntitlementRequest;
|
|
43
|
+
export declare function PatchedApplicationEntitlementRequestToJSON(value?: PatchedApplicationEntitlementRequest | null): any;
|