@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/Oauth2Api.ts
CHANGED
@@ -120,10 +120,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
120
120
|
|
121
121
|
const headerParameters: runtime.HTTPHeaders = {};
|
122
122
|
|
123
|
-
if (this.configuration && this.configuration.
|
124
|
-
|
125
|
-
|
123
|
+
if (this.configuration && this.configuration.accessToken) {
|
124
|
+
const token = this.configuration.accessToken;
|
125
|
+
const tokenString = await token("authentik", []);
|
126
126
|
|
127
|
+
if (tokenString) {
|
128
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
129
|
+
}
|
130
|
+
}
|
127
131
|
const response = await this.request({
|
128
132
|
path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
129
133
|
method: 'DELETE',
|
@@ -173,10 +177,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
173
177
|
|
174
178
|
const headerParameters: runtime.HTTPHeaders = {};
|
175
179
|
|
176
|
-
if (this.configuration && this.configuration.
|
177
|
-
|
178
|
-
|
180
|
+
if (this.configuration && this.configuration.accessToken) {
|
181
|
+
const token = this.configuration.accessToken;
|
182
|
+
const tokenString = await token("authentik", []);
|
179
183
|
|
184
|
+
if (tokenString) {
|
185
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
186
|
+
}
|
187
|
+
}
|
180
188
|
const response = await this.request({
|
181
189
|
path: `/oauth2/access_tokens/`,
|
182
190
|
method: 'GET',
|
@@ -207,10 +215,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
207
215
|
|
208
216
|
const headerParameters: runtime.HTTPHeaders = {};
|
209
217
|
|
210
|
-
if (this.configuration && this.configuration.
|
211
|
-
|
212
|
-
|
218
|
+
if (this.configuration && this.configuration.accessToken) {
|
219
|
+
const token = this.configuration.accessToken;
|
220
|
+
const tokenString = await token("authentik", []);
|
213
221
|
|
222
|
+
if (tokenString) {
|
223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
224
|
+
}
|
225
|
+
}
|
214
226
|
const response = await this.request({
|
215
227
|
path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
216
228
|
method: 'GET',
|
@@ -241,10 +253,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
241
253
|
|
242
254
|
const headerParameters: runtime.HTTPHeaders = {};
|
243
255
|
|
244
|
-
if (this.configuration && this.configuration.
|
245
|
-
|
246
|
-
|
256
|
+
if (this.configuration && this.configuration.accessToken) {
|
257
|
+
const token = this.configuration.accessToken;
|
258
|
+
const tokenString = await token("authentik", []);
|
247
259
|
|
260
|
+
if (tokenString) {
|
261
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
262
|
+
}
|
263
|
+
}
|
248
264
|
const response = await this.request({
|
249
265
|
path: `/oauth2/access_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
250
266
|
method: 'GET',
|
@@ -275,10 +291,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
275
291
|
|
276
292
|
const headerParameters: runtime.HTTPHeaders = {};
|
277
293
|
|
278
|
-
if (this.configuration && this.configuration.
|
279
|
-
|
280
|
-
|
294
|
+
if (this.configuration && this.configuration.accessToken) {
|
295
|
+
const token = this.configuration.accessToken;
|
296
|
+
const tokenString = await token("authentik", []);
|
281
297
|
|
298
|
+
if (tokenString) {
|
299
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
300
|
+
}
|
301
|
+
}
|
282
302
|
const response = await this.request({
|
283
303
|
path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
284
304
|
method: 'DELETE',
|
@@ -328,10 +348,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
328
348
|
|
329
349
|
const headerParameters: runtime.HTTPHeaders = {};
|
330
350
|
|
331
|
-
if (this.configuration && this.configuration.
|
332
|
-
|
333
|
-
|
351
|
+
if (this.configuration && this.configuration.accessToken) {
|
352
|
+
const token = this.configuration.accessToken;
|
353
|
+
const tokenString = await token("authentik", []);
|
334
354
|
|
355
|
+
if (tokenString) {
|
356
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
357
|
+
}
|
358
|
+
}
|
335
359
|
const response = await this.request({
|
336
360
|
path: `/oauth2/authorization_codes/`,
|
337
361
|
method: 'GET',
|
@@ -362,10 +386,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
362
386
|
|
363
387
|
const headerParameters: runtime.HTTPHeaders = {};
|
364
388
|
|
365
|
-
if (this.configuration && this.configuration.
|
366
|
-
|
367
|
-
|
389
|
+
if (this.configuration && this.configuration.accessToken) {
|
390
|
+
const token = this.configuration.accessToken;
|
391
|
+
const tokenString = await token("authentik", []);
|
368
392
|
|
393
|
+
if (tokenString) {
|
394
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
395
|
+
}
|
396
|
+
}
|
369
397
|
const response = await this.request({
|
370
398
|
path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
371
399
|
method: 'GET',
|
@@ -396,10 +424,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
396
424
|
|
397
425
|
const headerParameters: runtime.HTTPHeaders = {};
|
398
426
|
|
399
|
-
if (this.configuration && this.configuration.
|
400
|
-
|
401
|
-
|
427
|
+
if (this.configuration && this.configuration.accessToken) {
|
428
|
+
const token = this.configuration.accessToken;
|
429
|
+
const tokenString = await token("authentik", []);
|
402
430
|
|
431
|
+
if (tokenString) {
|
432
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
433
|
+
}
|
434
|
+
}
|
403
435
|
const response = await this.request({
|
404
436
|
path: `/oauth2/authorization_codes/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
405
437
|
method: 'GET',
|
@@ -430,10 +462,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
430
462
|
|
431
463
|
const headerParameters: runtime.HTTPHeaders = {};
|
432
464
|
|
433
|
-
if (this.configuration && this.configuration.
|
434
|
-
|
435
|
-
|
465
|
+
if (this.configuration && this.configuration.accessToken) {
|
466
|
+
const token = this.configuration.accessToken;
|
467
|
+
const tokenString = await token("authentik", []);
|
436
468
|
|
469
|
+
if (tokenString) {
|
470
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
471
|
+
}
|
472
|
+
}
|
437
473
|
const response = await this.request({
|
438
474
|
path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
439
475
|
method: 'DELETE',
|
@@ -483,10 +519,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
483
519
|
|
484
520
|
const headerParameters: runtime.HTTPHeaders = {};
|
485
521
|
|
486
|
-
if (this.configuration && this.configuration.
|
487
|
-
|
488
|
-
|
522
|
+
if (this.configuration && this.configuration.accessToken) {
|
523
|
+
const token = this.configuration.accessToken;
|
524
|
+
const tokenString = await token("authentik", []);
|
489
525
|
|
526
|
+
if (tokenString) {
|
527
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
528
|
+
}
|
529
|
+
}
|
490
530
|
const response = await this.request({
|
491
531
|
path: `/oauth2/refresh_tokens/`,
|
492
532
|
method: 'GET',
|
@@ -517,10 +557,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
517
557
|
|
518
558
|
const headerParameters: runtime.HTTPHeaders = {};
|
519
559
|
|
520
|
-
if (this.configuration && this.configuration.
|
521
|
-
|
522
|
-
|
560
|
+
if (this.configuration && this.configuration.accessToken) {
|
561
|
+
const token = this.configuration.accessToken;
|
562
|
+
const tokenString = await token("authentik", []);
|
523
563
|
|
564
|
+
if (tokenString) {
|
565
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
566
|
+
}
|
567
|
+
}
|
524
568
|
const response = await this.request({
|
525
569
|
path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
526
570
|
method: 'GET',
|
@@ -551,10 +595,14 @@ export class Oauth2Api extends runtime.BaseAPI {
|
|
551
595
|
|
552
596
|
const headerParameters: runtime.HTTPHeaders = {};
|
553
597
|
|
554
|
-
if (this.configuration && this.configuration.
|
555
|
-
|
556
|
-
|
598
|
+
if (this.configuration && this.configuration.accessToken) {
|
599
|
+
const token = this.configuration.accessToken;
|
600
|
+
const tokenString = await token("authentik", []);
|
557
601
|
|
602
|
+
if (tokenString) {
|
603
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
604
|
+
}
|
605
|
+
}
|
558
606
|
const response = await this.request({
|
559
607
|
path: `/oauth2/refresh_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
560
608
|
method: 'GET',
|