@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/src/apis/CryptoApi.ts
CHANGED
@@ -116,10 +116,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
116
116
|
|
117
117
|
headerParameters['Content-Type'] = 'application/json';
|
118
118
|
|
119
|
-
if (this.configuration && this.configuration.
|
120
|
-
|
121
|
-
|
119
|
+
if (this.configuration && this.configuration.accessToken) {
|
120
|
+
const token = this.configuration.accessToken;
|
121
|
+
const tokenString = await token("authentik", []);
|
122
122
|
|
123
|
+
if (tokenString) {
|
124
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
125
|
+
}
|
126
|
+
}
|
123
127
|
const response = await this.request({
|
124
128
|
path: `/crypto/certificatekeypairs/`,
|
125
129
|
method: 'POST',
|
@@ -151,10 +155,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
151
155
|
|
152
156
|
const headerParameters: runtime.HTTPHeaders = {};
|
153
157
|
|
154
|
-
if (this.configuration && this.configuration.
|
155
|
-
|
156
|
-
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
159
|
+
const token = this.configuration.accessToken;
|
160
|
+
const tokenString = await token("authentik", []);
|
157
161
|
|
162
|
+
if (tokenString) {
|
163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
164
|
+
}
|
165
|
+
}
|
158
166
|
const response = await this.request({
|
159
167
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
160
168
|
method: 'DELETE',
|
@@ -186,10 +194,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
186
194
|
|
187
195
|
headerParameters['Content-Type'] = 'application/json';
|
188
196
|
|
189
|
-
if (this.configuration && this.configuration.
|
190
|
-
|
191
|
-
|
197
|
+
if (this.configuration && this.configuration.accessToken) {
|
198
|
+
const token = this.configuration.accessToken;
|
199
|
+
const tokenString = await token("authentik", []);
|
192
200
|
|
201
|
+
if (tokenString) {
|
202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
203
|
+
}
|
204
|
+
}
|
193
205
|
const response = await this.request({
|
194
206
|
path: `/crypto/certificatekeypairs/generate/`,
|
195
207
|
method: 'POST',
|
@@ -249,10 +261,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
249
261
|
|
250
262
|
const headerParameters: runtime.HTTPHeaders = {};
|
251
263
|
|
252
|
-
if (this.configuration && this.configuration.
|
253
|
-
|
254
|
-
|
264
|
+
if (this.configuration && this.configuration.accessToken) {
|
265
|
+
const token = this.configuration.accessToken;
|
266
|
+
const tokenString = await token("authentik", []);
|
255
267
|
|
268
|
+
if (tokenString) {
|
269
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
270
|
+
}
|
271
|
+
}
|
256
272
|
const response = await this.request({
|
257
273
|
path: `/crypto/certificatekeypairs/`,
|
258
274
|
method: 'GET',
|
@@ -285,10 +301,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
285
301
|
|
286
302
|
headerParameters['Content-Type'] = 'application/json';
|
287
303
|
|
288
|
-
if (this.configuration && this.configuration.
|
289
|
-
|
290
|
-
|
304
|
+
if (this.configuration && this.configuration.accessToken) {
|
305
|
+
const token = this.configuration.accessToken;
|
306
|
+
const tokenString = await token("authentik", []);
|
291
307
|
|
308
|
+
if (tokenString) {
|
309
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
310
|
+
}
|
311
|
+
}
|
292
312
|
const response = await this.request({
|
293
313
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
294
314
|
method: 'PATCH',
|
@@ -320,10 +340,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
320
340
|
|
321
341
|
const headerParameters: runtime.HTTPHeaders = {};
|
322
342
|
|
323
|
-
if (this.configuration && this.configuration.
|
324
|
-
|
325
|
-
|
343
|
+
if (this.configuration && this.configuration.accessToken) {
|
344
|
+
const token = this.configuration.accessToken;
|
345
|
+
const tokenString = await token("authentik", []);
|
326
346
|
|
347
|
+
if (tokenString) {
|
348
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
349
|
+
}
|
350
|
+
}
|
327
351
|
const response = await this.request({
|
328
352
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
329
353
|
method: 'GET',
|
@@ -360,10 +384,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
360
384
|
|
361
385
|
headerParameters['Content-Type'] = 'application/json';
|
362
386
|
|
363
|
-
if (this.configuration && this.configuration.
|
364
|
-
|
365
|
-
|
387
|
+
if (this.configuration && this.configuration.accessToken) {
|
388
|
+
const token = this.configuration.accessToken;
|
389
|
+
const tokenString = await token("authentik", []);
|
366
390
|
|
391
|
+
if (tokenString) {
|
392
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
393
|
+
}
|
394
|
+
}
|
367
395
|
const response = await this.request({
|
368
396
|
path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
369
397
|
method: 'PUT',
|
@@ -395,10 +423,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
395
423
|
|
396
424
|
const headerParameters: runtime.HTTPHeaders = {};
|
397
425
|
|
398
|
-
if (this.configuration && this.configuration.
|
399
|
-
|
400
|
-
|
426
|
+
if (this.configuration && this.configuration.accessToken) {
|
427
|
+
const token = this.configuration.accessToken;
|
428
|
+
const tokenString = await token("authentik", []);
|
401
429
|
|
430
|
+
if (tokenString) {
|
431
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
432
|
+
}
|
433
|
+
}
|
402
434
|
const response = await this.request({
|
403
435
|
path: `/crypto/certificatekeypairs/{kp_uuid}/used_by/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
404
436
|
method: 'GET',
|
@@ -433,10 +465,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
433
465
|
|
434
466
|
const headerParameters: runtime.HTTPHeaders = {};
|
435
467
|
|
436
|
-
if (this.configuration && this.configuration.
|
437
|
-
|
438
|
-
|
468
|
+
if (this.configuration && this.configuration.accessToken) {
|
469
|
+
const token = this.configuration.accessToken;
|
470
|
+
const tokenString = await token("authentik", []);
|
439
471
|
|
472
|
+
if (tokenString) {
|
473
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
474
|
+
}
|
475
|
+
}
|
440
476
|
const response = await this.request({
|
441
477
|
path: `/crypto/certificatekeypairs/{kp_uuid}/view_certificate/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
442
478
|
method: 'GET',
|
@@ -471,10 +507,14 @@ export class CryptoApi extends runtime.BaseAPI {
|
|
471
507
|
|
472
508
|
const headerParameters: runtime.HTTPHeaders = {};
|
473
509
|
|
474
|
-
if (this.configuration && this.configuration.
|
475
|
-
|
476
|
-
|
510
|
+
if (this.configuration && this.configuration.accessToken) {
|
511
|
+
const token = this.configuration.accessToken;
|
512
|
+
const tokenString = await token("authentik", []);
|
477
513
|
|
514
|
+
if (tokenString) {
|
515
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
516
|
+
}
|
517
|
+
}
|
478
518
|
const response = await this.request({
|
479
519
|
path: `/crypto/certificatekeypairs/{kp_uuid}/view_private_key/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
|
480
520
|
method: 'GET',
|
@@ -102,10 +102,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
102
102
|
|
103
103
|
headerParameters['Content-Type'] = 'application/json';
|
104
104
|
|
105
|
-
if (this.configuration && this.configuration.
|
106
|
-
|
107
|
-
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
106
|
+
const token = this.configuration.accessToken;
|
107
|
+
const tokenString = await token("authentik", []);
|
108
108
|
|
109
|
+
if (tokenString) {
|
110
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
111
|
+
}
|
112
|
+
}
|
109
113
|
const response = await this.request({
|
110
114
|
path: `/enterprise/license/`,
|
111
115
|
method: 'POST',
|
@@ -137,10 +141,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
137
141
|
|
138
142
|
const headerParameters: runtime.HTTPHeaders = {};
|
139
143
|
|
140
|
-
if (this.configuration && this.configuration.
|
141
|
-
|
142
|
-
|
144
|
+
if (this.configuration && this.configuration.accessToken) {
|
145
|
+
const token = this.configuration.accessToken;
|
146
|
+
const tokenString = await token("authentik", []);
|
143
147
|
|
148
|
+
if (tokenString) {
|
149
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
150
|
+
}
|
151
|
+
}
|
144
152
|
const response = await this.request({
|
145
153
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
146
154
|
method: 'DELETE',
|
@@ -166,10 +174,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
166
174
|
|
167
175
|
const headerParameters: runtime.HTTPHeaders = {};
|
168
176
|
|
169
|
-
if (this.configuration && this.configuration.
|
170
|
-
|
171
|
-
|
177
|
+
if (this.configuration && this.configuration.accessToken) {
|
178
|
+
const token = this.configuration.accessToken;
|
179
|
+
const tokenString = await token("authentik", []);
|
172
180
|
|
181
|
+
if (tokenString) {
|
182
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
183
|
+
}
|
184
|
+
}
|
173
185
|
const response = await this.request({
|
174
186
|
path: `/enterprise/license/forecast/`,
|
175
187
|
method: 'GET',
|
@@ -196,10 +208,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
196
208
|
|
197
209
|
const headerParameters: runtime.HTTPHeaders = {};
|
198
210
|
|
199
|
-
if (this.configuration && this.configuration.
|
200
|
-
|
201
|
-
|
211
|
+
if (this.configuration && this.configuration.accessToken) {
|
212
|
+
const token = this.configuration.accessToken;
|
213
|
+
const tokenString = await token("authentik", []);
|
202
214
|
|
215
|
+
if (tokenString) {
|
216
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
217
|
+
}
|
218
|
+
}
|
203
219
|
const response = await this.request({
|
204
220
|
path: `/enterprise/license/get_install_id/`,
|
205
221
|
method: 'GET',
|
@@ -246,10 +262,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
246
262
|
|
247
263
|
const headerParameters: runtime.HTTPHeaders = {};
|
248
264
|
|
249
|
-
if (this.configuration && this.configuration.
|
250
|
-
|
251
|
-
|
265
|
+
if (this.configuration && this.configuration.accessToken) {
|
266
|
+
const token = this.configuration.accessToken;
|
267
|
+
const tokenString = await token("authentik", []);
|
252
268
|
|
269
|
+
if (tokenString) {
|
270
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
271
|
+
}
|
272
|
+
}
|
253
273
|
const response = await this.request({
|
254
274
|
path: `/enterprise/license/`,
|
255
275
|
method: 'GET',
|
@@ -282,10 +302,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
282
302
|
|
283
303
|
headerParameters['Content-Type'] = 'application/json';
|
284
304
|
|
285
|
-
if (this.configuration && this.configuration.
|
286
|
-
|
287
|
-
|
305
|
+
if (this.configuration && this.configuration.accessToken) {
|
306
|
+
const token = this.configuration.accessToken;
|
307
|
+
const tokenString = await token("authentik", []);
|
288
308
|
|
309
|
+
if (tokenString) {
|
310
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
311
|
+
}
|
312
|
+
}
|
289
313
|
const response = await this.request({
|
290
314
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
291
315
|
method: 'PATCH',
|
@@ -317,10 +341,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
317
341
|
|
318
342
|
const headerParameters: runtime.HTTPHeaders = {};
|
319
343
|
|
320
|
-
if (this.configuration && this.configuration.
|
321
|
-
|
322
|
-
|
344
|
+
if (this.configuration && this.configuration.accessToken) {
|
345
|
+
const token = this.configuration.accessToken;
|
346
|
+
const tokenString = await token("authentik", []);
|
323
347
|
|
348
|
+
if (tokenString) {
|
349
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
350
|
+
}
|
351
|
+
}
|
324
352
|
const response = await this.request({
|
325
353
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
326
354
|
method: 'GET',
|
@@ -347,10 +375,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
347
375
|
|
348
376
|
const headerParameters: runtime.HTTPHeaders = {};
|
349
377
|
|
350
|
-
if (this.configuration && this.configuration.
|
351
|
-
|
352
|
-
|
378
|
+
if (this.configuration && this.configuration.accessToken) {
|
379
|
+
const token = this.configuration.accessToken;
|
380
|
+
const tokenString = await token("authentik", []);
|
353
381
|
|
382
|
+
if (tokenString) {
|
383
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
384
|
+
}
|
385
|
+
}
|
354
386
|
const response = await this.request({
|
355
387
|
path: `/enterprise/license/summary/`,
|
356
388
|
method: 'GET',
|
@@ -387,10 +419,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
387
419
|
|
388
420
|
headerParameters['Content-Type'] = 'application/json';
|
389
421
|
|
390
|
-
if (this.configuration && this.configuration.
|
391
|
-
|
392
|
-
|
422
|
+
if (this.configuration && this.configuration.accessToken) {
|
423
|
+
const token = this.configuration.accessToken;
|
424
|
+
const tokenString = await token("authentik", []);
|
393
425
|
|
426
|
+
if (tokenString) {
|
427
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
428
|
+
}
|
429
|
+
}
|
394
430
|
const response = await this.request({
|
395
431
|
path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
396
432
|
method: 'PUT',
|
@@ -422,10 +458,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
|
|
422
458
|
|
423
459
|
const headerParameters: runtime.HTTPHeaders = {};
|
424
460
|
|
425
|
-
if (this.configuration && this.configuration.
|
426
|
-
|
427
|
-
|
461
|
+
if (this.configuration && this.configuration.accessToken) {
|
462
|
+
const token = this.configuration.accessToken;
|
463
|
+
const tokenString = await token("authentik", []);
|
428
464
|
|
465
|
+
if (tokenString) {
|
466
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
467
|
+
}
|
468
|
+
}
|
429
469
|
const response = await this.request({
|
430
470
|
path: `/enterprise/license/{license_uuid}/used_by/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
|
431
471
|
method: 'GET',
|