@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/models/AuthenticatorValidateStage.js +5 -0
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
- package/src/models/AuthenticatorValidateStage.ts +22 -0
- package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
package/dist/apis/CryptoApi.js
CHANGED
@@ -40,8 +40,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
40
40
|
const queryParameters = {};
|
41
41
|
const headerParameters = {};
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
43
|
-
if (this.configuration && this.configuration.
|
44
|
-
|
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
|
+
}
|
45
49
|
}
|
46
50
|
const response = yield this.request({
|
47
51
|
path: `/crypto/certificatekeypairs/`,
|
@@ -72,8 +76,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
72
76
|
}
|
73
77
|
const queryParameters = {};
|
74
78
|
const headerParameters = {};
|
75
|
-
if (this.configuration && this.configuration.
|
76
|
-
|
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
|
+
}
|
77
85
|
}
|
78
86
|
const response = yield this.request({
|
79
87
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
@@ -103,8 +111,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
103
111
|
const queryParameters = {};
|
104
112
|
const headerParameters = {};
|
105
113
|
headerParameters['Content-Type'] = 'application/json';
|
106
|
-
if (this.configuration && this.configuration.
|
107
|
-
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
115
|
+
const token = this.configuration.accessToken;
|
116
|
+
const tokenString = yield token("authentik", []);
|
117
|
+
if (tokenString) {
|
118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
119
|
+
}
|
108
120
|
}
|
109
121
|
const response = yield this.request({
|
110
122
|
path: `/crypto/certificatekeypairs/generate/`,
|
@@ -156,8 +168,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
156
168
|
queryParameters['search'] = requestParameters.search;
|
157
169
|
}
|
158
170
|
const headerParameters = {};
|
159
|
-
if (this.configuration && this.configuration.
|
160
|
-
|
171
|
+
if (this.configuration && this.configuration.accessToken) {
|
172
|
+
const token = this.configuration.accessToken;
|
173
|
+
const tokenString = yield token("authentik", []);
|
174
|
+
if (tokenString) {
|
175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
176
|
+
}
|
161
177
|
}
|
162
178
|
const response = yield this.request({
|
163
179
|
path: `/crypto/certificatekeypairs/`,
|
@@ -188,8 +204,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
188
204
|
const queryParameters = {};
|
189
205
|
const headerParameters = {};
|
190
206
|
headerParameters['Content-Type'] = 'application/json';
|
191
|
-
if (this.configuration && this.configuration.
|
192
|
-
|
207
|
+
if (this.configuration && this.configuration.accessToken) {
|
208
|
+
const token = this.configuration.accessToken;
|
209
|
+
const tokenString = yield token("authentik", []);
|
210
|
+
if (tokenString) {
|
211
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
212
|
+
}
|
193
213
|
}
|
194
214
|
const response = yield this.request({
|
195
215
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
@@ -220,8 +240,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
220
240
|
}
|
221
241
|
const queryParameters = {};
|
222
242
|
const headerParameters = {};
|
223
|
-
if (this.configuration && this.configuration.
|
224
|
-
|
243
|
+
if (this.configuration && this.configuration.accessToken) {
|
244
|
+
const token = this.configuration.accessToken;
|
245
|
+
const tokenString = yield token("authentik", []);
|
246
|
+
if (tokenString) {
|
247
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
248
|
+
}
|
225
249
|
}
|
226
250
|
const response = yield this.request({
|
227
251
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
@@ -255,8 +279,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
255
279
|
const queryParameters = {};
|
256
280
|
const headerParameters = {};
|
257
281
|
headerParameters['Content-Type'] = 'application/json';
|
258
|
-
if (this.configuration && this.configuration.
|
259
|
-
|
282
|
+
if (this.configuration && this.configuration.accessToken) {
|
283
|
+
const token = this.configuration.accessToken;
|
284
|
+
const tokenString = yield token("authentik", []);
|
285
|
+
if (tokenString) {
|
286
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
287
|
+
}
|
260
288
|
}
|
261
289
|
const response = yield this.request({
|
262
290
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
@@ -287,8 +315,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
287
315
|
}
|
288
316
|
const queryParameters = {};
|
289
317
|
const headerParameters = {};
|
290
|
-
if (this.configuration && this.configuration.
|
291
|
-
|
318
|
+
if (this.configuration && this.configuration.accessToken) {
|
319
|
+
const token = this.configuration.accessToken;
|
320
|
+
const tokenString = yield token("authentik", []);
|
321
|
+
if (tokenString) {
|
322
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
323
|
+
}
|
292
324
|
}
|
293
325
|
const response = yield this.request({
|
294
326
|
path: `/crypto/certificatekeypairs/{kp_uuid}/used_by/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
@@ -321,8 +353,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
321
353
|
queryParameters['download'] = requestParameters.download;
|
322
354
|
}
|
323
355
|
const headerParameters = {};
|
324
|
-
if (this.configuration && this.configuration.
|
325
|
-
|
356
|
+
if (this.configuration && this.configuration.accessToken) {
|
357
|
+
const token = this.configuration.accessToken;
|
358
|
+
const tokenString = yield token("authentik", []);
|
359
|
+
if (tokenString) {
|
360
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
361
|
+
}
|
326
362
|
}
|
327
363
|
const response = yield this.request({
|
328
364
|
path: `/crypto/certificatekeypairs/{kp_uuid}/view_certificate/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
@@ -355,8 +391,12 @@ class CryptoApi extends runtime.BaseAPI {
|
|
355
391
|
queryParameters['download'] = requestParameters.download;
|
356
392
|
}
|
357
393
|
const headerParameters = {};
|
358
|
-
if (this.configuration && this.configuration.
|
359
|
-
|
394
|
+
if (this.configuration && this.configuration.accessToken) {
|
395
|
+
const token = this.configuration.accessToken;
|
396
|
+
const tokenString = yield token("authentik", []);
|
397
|
+
if (tokenString) {
|
398
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
399
|
+
}
|
360
400
|
}
|
361
401
|
const response = yield this.request({
|
362
402
|
path: `/crypto/certificatekeypairs/{kp_uuid}/view_private_key/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
@@ -40,8 +40,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
40
40
|
const queryParameters = {};
|
41
41
|
const headerParameters = {};
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
43
|
-
if (this.configuration && this.configuration.
|
44
|
-
|
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
|
+
}
|
45
49
|
}
|
46
50
|
const response = yield this.request({
|
47
51
|
path: `/enterprise/license/`,
|
@@ -72,8 +76,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
72
76
|
}
|
73
77
|
const queryParameters = {};
|
74
78
|
const headerParameters = {};
|
75
|
-
if (this.configuration && this.configuration.
|
76
|
-
|
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
|
+
}
|
77
85
|
}
|
78
86
|
const response = yield this.request({
|
79
87
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
@@ -99,8 +107,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
99
107
|
return __awaiter(this, void 0, void 0, function* () {
|
100
108
|
const queryParameters = {};
|
101
109
|
const headerParameters = {};
|
102
|
-
if (this.configuration && this.configuration.
|
103
|
-
|
110
|
+
if (this.configuration && this.configuration.accessToken) {
|
111
|
+
const token = this.configuration.accessToken;
|
112
|
+
const tokenString = yield token("authentik", []);
|
113
|
+
if (tokenString) {
|
114
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
115
|
+
}
|
104
116
|
}
|
105
117
|
const response = yield this.request({
|
106
118
|
path: `/enterprise/license/forecast/`,
|
@@ -127,8 +139,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
127
139
|
return __awaiter(this, void 0, void 0, function* () {
|
128
140
|
const queryParameters = {};
|
129
141
|
const headerParameters = {};
|
130
|
-
if (this.configuration && this.configuration.
|
131
|
-
|
142
|
+
if (this.configuration && this.configuration.accessToken) {
|
143
|
+
const token = this.configuration.accessToken;
|
144
|
+
const tokenString = yield token("authentik", []);
|
145
|
+
if (tokenString) {
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
147
|
+
}
|
132
148
|
}
|
133
149
|
const response = yield this.request({
|
134
150
|
path: `/enterprise/license/get_install_id/`,
|
@@ -170,8 +186,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
170
186
|
queryParameters['search'] = requestParameters.search;
|
171
187
|
}
|
172
188
|
const headerParameters = {};
|
173
|
-
if (this.configuration && this.configuration.
|
174
|
-
|
189
|
+
if (this.configuration && this.configuration.accessToken) {
|
190
|
+
const token = this.configuration.accessToken;
|
191
|
+
const tokenString = yield token("authentik", []);
|
192
|
+
if (tokenString) {
|
193
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
194
|
+
}
|
175
195
|
}
|
176
196
|
const response = yield this.request({
|
177
197
|
path: `/enterprise/license/`,
|
@@ -202,8 +222,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
202
222
|
const queryParameters = {};
|
203
223
|
const headerParameters = {};
|
204
224
|
headerParameters['Content-Type'] = 'application/json';
|
205
|
-
if (this.configuration && this.configuration.
|
206
|
-
|
225
|
+
if (this.configuration && this.configuration.accessToken) {
|
226
|
+
const token = this.configuration.accessToken;
|
227
|
+
const tokenString = yield token("authentik", []);
|
228
|
+
if (tokenString) {
|
229
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
230
|
+
}
|
207
231
|
}
|
208
232
|
const response = yield this.request({
|
209
233
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
@@ -234,8 +258,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
234
258
|
}
|
235
259
|
const queryParameters = {};
|
236
260
|
const headerParameters = {};
|
237
|
-
if (this.configuration && this.configuration.
|
238
|
-
|
261
|
+
if (this.configuration && this.configuration.accessToken) {
|
262
|
+
const token = this.configuration.accessToken;
|
263
|
+
const tokenString = yield token("authentik", []);
|
264
|
+
if (tokenString) {
|
265
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
266
|
+
}
|
239
267
|
}
|
240
268
|
const response = yield this.request({
|
241
269
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
@@ -262,8 +290,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
262
290
|
return __awaiter(this, void 0, void 0, function* () {
|
263
291
|
const queryParameters = {};
|
264
292
|
const headerParameters = {};
|
265
|
-
if (this.configuration && this.configuration.
|
266
|
-
|
293
|
+
if (this.configuration && this.configuration.accessToken) {
|
294
|
+
const token = this.configuration.accessToken;
|
295
|
+
const tokenString = yield token("authentik", []);
|
296
|
+
if (tokenString) {
|
297
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
298
|
+
}
|
267
299
|
}
|
268
300
|
const response = yield this.request({
|
269
301
|
path: `/enterprise/license/summary/`,
|
@@ -297,8 +329,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
297
329
|
const queryParameters = {};
|
298
330
|
const headerParameters = {};
|
299
331
|
headerParameters['Content-Type'] = 'application/json';
|
300
|
-
if (this.configuration && this.configuration.
|
301
|
-
|
332
|
+
if (this.configuration && this.configuration.accessToken) {
|
333
|
+
const token = this.configuration.accessToken;
|
334
|
+
const tokenString = yield token("authentik", []);
|
335
|
+
if (tokenString) {
|
336
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
337
|
+
}
|
302
338
|
}
|
303
339
|
const response = yield this.request({
|
304
340
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
@@ -329,8 +365,12 @@ class EnterpriseApi extends runtime.BaseAPI {
|
|
329
365
|
}
|
330
366
|
const queryParameters = {};
|
331
367
|
const headerParameters = {};
|
332
|
-
if (this.configuration && this.configuration.
|
333
|
-
|
368
|
+
if (this.configuration && this.configuration.accessToken) {
|
369
|
+
const token = this.configuration.accessToken;
|
370
|
+
const tokenString = yield token("authentik", []);
|
371
|
+
if (tokenString) {
|
372
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
373
|
+
}
|
334
374
|
}
|
335
375
|
const response = yield this.request({
|
336
376
|
path: `/enterprise/license/{license_uuid}/used_by/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|