@goauthentik/api 2024.2.2-1712833826 → 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/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/apis/RacApi.ts
CHANGED
@@ -137,10 +137,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
137
137
|
|
138
138
|
const headerParameters: runtime.HTTPHeaders = {};
|
139
139
|
|
140
|
-
if (this.configuration && this.configuration.
|
141
|
-
|
142
|
-
|
140
|
+
if (this.configuration && this.configuration.accessToken) {
|
141
|
+
const token = this.configuration.accessToken;
|
142
|
+
const tokenString = await token("authentik", []);
|
143
143
|
|
144
|
+
if (tokenString) {
|
145
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
146
|
+
}
|
147
|
+
}
|
144
148
|
const response = await this.request({
|
145
149
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
146
150
|
method: 'DELETE',
|
@@ -194,10 +198,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
194
198
|
|
195
199
|
const headerParameters: runtime.HTTPHeaders = {};
|
196
200
|
|
197
|
-
if (this.configuration && this.configuration.
|
198
|
-
|
199
|
-
|
201
|
+
if (this.configuration && this.configuration.accessToken) {
|
202
|
+
const token = this.configuration.accessToken;
|
203
|
+
const tokenString = await token("authentik", []);
|
200
204
|
|
205
|
+
if (tokenString) {
|
206
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
207
|
+
}
|
208
|
+
}
|
201
209
|
const response = await this.request({
|
202
210
|
path: `/rac/connection_tokens/`,
|
203
211
|
method: 'GET',
|
@@ -230,10 +238,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
230
238
|
|
231
239
|
headerParameters['Content-Type'] = 'application/json';
|
232
240
|
|
233
|
-
if (this.configuration && this.configuration.
|
234
|
-
|
235
|
-
|
241
|
+
if (this.configuration && this.configuration.accessToken) {
|
242
|
+
const token = this.configuration.accessToken;
|
243
|
+
const tokenString = await token("authentik", []);
|
236
244
|
|
245
|
+
if (tokenString) {
|
246
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
247
|
+
}
|
248
|
+
}
|
237
249
|
const response = await this.request({
|
238
250
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
239
251
|
method: 'PATCH',
|
@@ -265,10 +277,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
265
277
|
|
266
278
|
const headerParameters: runtime.HTTPHeaders = {};
|
267
279
|
|
268
|
-
if (this.configuration && this.configuration.
|
269
|
-
|
270
|
-
|
280
|
+
if (this.configuration && this.configuration.accessToken) {
|
281
|
+
const token = this.configuration.accessToken;
|
282
|
+
const tokenString = await token("authentik", []);
|
271
283
|
|
284
|
+
if (tokenString) {
|
285
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
286
|
+
}
|
287
|
+
}
|
272
288
|
const response = await this.request({
|
273
289
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
274
290
|
method: 'GET',
|
@@ -305,10 +321,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
305
321
|
|
306
322
|
headerParameters['Content-Type'] = 'application/json';
|
307
323
|
|
308
|
-
if (this.configuration && this.configuration.
|
309
|
-
|
310
|
-
|
324
|
+
if (this.configuration && this.configuration.accessToken) {
|
325
|
+
const token = this.configuration.accessToken;
|
326
|
+
const tokenString = await token("authentik", []);
|
311
327
|
|
328
|
+
if (tokenString) {
|
329
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
330
|
+
}
|
331
|
+
}
|
312
332
|
const response = await this.request({
|
313
333
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
314
334
|
method: 'PUT',
|
@@ -340,10 +360,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
340
360
|
|
341
361
|
const headerParameters: runtime.HTTPHeaders = {};
|
342
362
|
|
343
|
-
if (this.configuration && this.configuration.
|
344
|
-
|
345
|
-
|
363
|
+
if (this.configuration && this.configuration.accessToken) {
|
364
|
+
const token = this.configuration.accessToken;
|
365
|
+
const tokenString = await token("authentik", []);
|
346
366
|
|
367
|
+
if (tokenString) {
|
368
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
369
|
+
}
|
370
|
+
}
|
347
371
|
const response = await this.request({
|
348
372
|
path: `/rac/connection_tokens/{connection_token_uuid}/used_by/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
349
373
|
method: 'GET',
|
@@ -376,10 +400,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
376
400
|
|
377
401
|
headerParameters['Content-Type'] = 'application/json';
|
378
402
|
|
379
|
-
if (this.configuration && this.configuration.
|
380
|
-
|
381
|
-
|
403
|
+
if (this.configuration && this.configuration.accessToken) {
|
404
|
+
const token = this.configuration.accessToken;
|
405
|
+
const tokenString = await token("authentik", []);
|
382
406
|
|
407
|
+
if (tokenString) {
|
408
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
409
|
+
}
|
410
|
+
}
|
383
411
|
const response = await this.request({
|
384
412
|
path: `/rac/endpoints/`,
|
385
413
|
method: 'POST',
|
@@ -411,10 +439,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
411
439
|
|
412
440
|
const headerParameters: runtime.HTTPHeaders = {};
|
413
441
|
|
414
|
-
if (this.configuration && this.configuration.
|
415
|
-
|
416
|
-
|
442
|
+
if (this.configuration && this.configuration.accessToken) {
|
443
|
+
const token = this.configuration.accessToken;
|
444
|
+
const tokenString = await token("authentik", []);
|
417
445
|
|
446
|
+
if (tokenString) {
|
447
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
448
|
+
}
|
449
|
+
}
|
418
450
|
const response = await this.request({
|
419
451
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
420
452
|
method: 'DELETE',
|
@@ -468,10 +500,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
468
500
|
|
469
501
|
const headerParameters: runtime.HTTPHeaders = {};
|
470
502
|
|
471
|
-
if (this.configuration && this.configuration.
|
472
|
-
|
473
|
-
|
503
|
+
if (this.configuration && this.configuration.accessToken) {
|
504
|
+
const token = this.configuration.accessToken;
|
505
|
+
const tokenString = await token("authentik", []);
|
474
506
|
|
507
|
+
if (tokenString) {
|
508
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
509
|
+
}
|
510
|
+
}
|
475
511
|
const response = await this.request({
|
476
512
|
path: `/rac/endpoints/`,
|
477
513
|
method: 'GET',
|
@@ -504,10 +540,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
504
540
|
|
505
541
|
headerParameters['Content-Type'] = 'application/json';
|
506
542
|
|
507
|
-
if (this.configuration && this.configuration.
|
508
|
-
|
509
|
-
|
543
|
+
if (this.configuration && this.configuration.accessToken) {
|
544
|
+
const token = this.configuration.accessToken;
|
545
|
+
const tokenString = await token("authentik", []);
|
510
546
|
|
547
|
+
if (tokenString) {
|
548
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
549
|
+
}
|
550
|
+
}
|
511
551
|
const response = await this.request({
|
512
552
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
513
553
|
method: 'PATCH',
|
@@ -539,10 +579,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
539
579
|
|
540
580
|
const headerParameters: runtime.HTTPHeaders = {};
|
541
581
|
|
542
|
-
if (this.configuration && this.configuration.
|
543
|
-
|
544
|
-
|
582
|
+
if (this.configuration && this.configuration.accessToken) {
|
583
|
+
const token = this.configuration.accessToken;
|
584
|
+
const tokenString = await token("authentik", []);
|
545
585
|
|
586
|
+
if (tokenString) {
|
587
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
588
|
+
}
|
589
|
+
}
|
546
590
|
const response = await this.request({
|
547
591
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
548
592
|
method: 'GET',
|
@@ -579,10 +623,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
579
623
|
|
580
624
|
headerParameters['Content-Type'] = 'application/json';
|
581
625
|
|
582
|
-
if (this.configuration && this.configuration.
|
583
|
-
|
584
|
-
|
626
|
+
if (this.configuration && this.configuration.accessToken) {
|
627
|
+
const token = this.configuration.accessToken;
|
628
|
+
const tokenString = await token("authentik", []);
|
585
629
|
|
630
|
+
if (tokenString) {
|
631
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
632
|
+
}
|
633
|
+
}
|
586
634
|
const response = await this.request({
|
587
635
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
588
636
|
method: 'PUT',
|
@@ -614,10 +662,14 @@ export class RacApi extends runtime.BaseAPI {
|
|
614
662
|
|
615
663
|
const headerParameters: runtime.HTTPHeaders = {};
|
616
664
|
|
617
|
-
if (this.configuration && this.configuration.
|
618
|
-
|
619
|
-
|
665
|
+
if (this.configuration && this.configuration.accessToken) {
|
666
|
+
const token = this.configuration.accessToken;
|
667
|
+
const tokenString = await token("authentik", []);
|
620
668
|
|
669
|
+
if (tokenString) {
|
670
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
671
|
+
}
|
672
|
+
}
|
621
673
|
const response = await this.request({
|
622
674
|
path: `/rac/endpoints/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
623
675
|
method: 'GET',
|
package/src/apis/RbacApi.ts
CHANGED
@@ -191,10 +191,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
191
191
|
|
192
192
|
headerParameters['Content-Type'] = 'application/json';
|
193
193
|
|
194
|
-
if (this.configuration && this.configuration.
|
195
|
-
|
196
|
-
|
194
|
+
if (this.configuration && this.configuration.accessToken) {
|
195
|
+
const token = this.configuration.accessToken;
|
196
|
+
const tokenString = await token("authentik", []);
|
197
197
|
|
198
|
+
if (tokenString) {
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
200
|
+
}
|
201
|
+
}
|
198
202
|
const response = await this.request({
|
199
203
|
path: `/rbac/permissions/assigned_by_roles/{uuid}/assign/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
200
204
|
method: 'POST',
|
@@ -249,10 +253,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
249
253
|
|
250
254
|
const headerParameters: runtime.HTTPHeaders = {};
|
251
255
|
|
252
|
-
if (this.configuration && this.configuration.
|
253
|
-
|
254
|
-
|
256
|
+
if (this.configuration && this.configuration.accessToken) {
|
257
|
+
const token = this.configuration.accessToken;
|
258
|
+
const tokenString = await token("authentik", []);
|
255
259
|
|
260
|
+
if (tokenString) {
|
261
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
262
|
+
}
|
263
|
+
}
|
256
264
|
const response = await this.request({
|
257
265
|
path: `/rbac/permissions/assigned_by_roles/`,
|
258
266
|
method: 'GET',
|
@@ -285,10 +293,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
285
293
|
|
286
294
|
headerParameters['Content-Type'] = 'application/json';
|
287
295
|
|
288
|
-
if (this.configuration && this.configuration.
|
289
|
-
|
290
|
-
|
296
|
+
if (this.configuration && this.configuration.accessToken) {
|
297
|
+
const token = this.configuration.accessToken;
|
298
|
+
const tokenString = await token("authentik", []);
|
291
299
|
|
300
|
+
if (tokenString) {
|
301
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
302
|
+
}
|
303
|
+
}
|
292
304
|
const response = await this.request({
|
293
305
|
path: `/rbac/permissions/assigned_by_roles/{uuid}/unassign/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
294
306
|
method: 'PATCH',
|
@@ -325,10 +337,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
325
337
|
|
326
338
|
headerParameters['Content-Type'] = 'application/json';
|
327
339
|
|
328
|
-
if (this.configuration && this.configuration.
|
329
|
-
|
330
|
-
|
340
|
+
if (this.configuration && this.configuration.accessToken) {
|
341
|
+
const token = this.configuration.accessToken;
|
342
|
+
const tokenString = await token("authentik", []);
|
331
343
|
|
344
|
+
if (tokenString) {
|
345
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
346
|
+
}
|
347
|
+
}
|
332
348
|
const response = await this.request({
|
333
349
|
path: `/rbac/permissions/assigned_by_users/{id}/assign/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
334
350
|
method: 'POST',
|
@@ -383,10 +399,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
383
399
|
|
384
400
|
const headerParameters: runtime.HTTPHeaders = {};
|
385
401
|
|
386
|
-
if (this.configuration && this.configuration.
|
387
|
-
|
388
|
-
|
402
|
+
if (this.configuration && this.configuration.accessToken) {
|
403
|
+
const token = this.configuration.accessToken;
|
404
|
+
const tokenString = await token("authentik", []);
|
389
405
|
|
406
|
+
if (tokenString) {
|
407
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
408
|
+
}
|
409
|
+
}
|
390
410
|
const response = await this.request({
|
391
411
|
path: `/rbac/permissions/assigned_by_users/`,
|
392
412
|
method: 'GET',
|
@@ -419,10 +439,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
419
439
|
|
420
440
|
headerParameters['Content-Type'] = 'application/json';
|
421
441
|
|
422
|
-
if (this.configuration && this.configuration.
|
423
|
-
|
424
|
-
|
442
|
+
if (this.configuration && this.configuration.accessToken) {
|
443
|
+
const token = this.configuration.accessToken;
|
444
|
+
const tokenString = await token("authentik", []);
|
425
445
|
|
446
|
+
if (tokenString) {
|
447
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
448
|
+
}
|
449
|
+
}
|
426
450
|
const response = await this.request({
|
427
451
|
path: `/rbac/permissions/assigned_by_users/{id}/unassign/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
428
452
|
method: 'PATCH',
|
@@ -485,10 +509,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
485
509
|
|
486
510
|
const headerParameters: runtime.HTTPHeaders = {};
|
487
511
|
|
488
|
-
if (this.configuration && this.configuration.
|
489
|
-
|
490
|
-
|
512
|
+
if (this.configuration && this.configuration.accessToken) {
|
513
|
+
const token = this.configuration.accessToken;
|
514
|
+
const tokenString = await token("authentik", []);
|
491
515
|
|
516
|
+
if (tokenString) {
|
517
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
518
|
+
}
|
519
|
+
}
|
492
520
|
const response = await this.request({
|
493
521
|
path: `/rbac/permissions/`,
|
494
522
|
method: 'GET',
|
@@ -519,10 +547,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
519
547
|
|
520
548
|
const headerParameters: runtime.HTTPHeaders = {};
|
521
549
|
|
522
|
-
if (this.configuration && this.configuration.
|
523
|
-
|
524
|
-
|
550
|
+
if (this.configuration && this.configuration.accessToken) {
|
551
|
+
const token = this.configuration.accessToken;
|
552
|
+
const tokenString = await token("authentik", []);
|
525
553
|
|
554
|
+
if (tokenString) {
|
555
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
556
|
+
}
|
557
|
+
}
|
526
558
|
const response = await this.request({
|
527
559
|
path: `/rbac/permissions/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
528
560
|
method: 'GET',
|
@@ -573,10 +605,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
573
605
|
|
574
606
|
const headerParameters: runtime.HTTPHeaders = {};
|
575
607
|
|
576
|
-
if (this.configuration && this.configuration.
|
577
|
-
|
578
|
-
|
608
|
+
if (this.configuration && this.configuration.accessToken) {
|
609
|
+
const token = this.configuration.accessToken;
|
610
|
+
const tokenString = await token("authentik", []);
|
579
611
|
|
612
|
+
if (tokenString) {
|
613
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
614
|
+
}
|
615
|
+
}
|
580
616
|
const response = await this.request({
|
581
617
|
path: `/rbac/permissions/roles/`,
|
582
618
|
method: 'GET',
|
@@ -627,10 +663,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
627
663
|
|
628
664
|
const headerParameters: runtime.HTTPHeaders = {};
|
629
665
|
|
630
|
-
if (this.configuration && this.configuration.
|
631
|
-
|
632
|
-
|
666
|
+
if (this.configuration && this.configuration.accessToken) {
|
667
|
+
const token = this.configuration.accessToken;
|
668
|
+
const tokenString = await token("authentik", []);
|
633
669
|
|
670
|
+
if (tokenString) {
|
671
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
672
|
+
}
|
673
|
+
}
|
634
674
|
const response = await this.request({
|
635
675
|
path: `/rbac/permissions/users/`,
|
636
676
|
method: 'GET',
|
@@ -663,10 +703,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
663
703
|
|
664
704
|
headerParameters['Content-Type'] = 'application/json';
|
665
705
|
|
666
|
-
if (this.configuration && this.configuration.
|
667
|
-
|
668
|
-
|
706
|
+
if (this.configuration && this.configuration.accessToken) {
|
707
|
+
const token = this.configuration.accessToken;
|
708
|
+
const tokenString = await token("authentik", []);
|
669
709
|
|
710
|
+
if (tokenString) {
|
711
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
712
|
+
}
|
713
|
+
}
|
670
714
|
const response = await this.request({
|
671
715
|
path: `/rbac/roles/`,
|
672
716
|
method: 'POST',
|
@@ -698,10 +742,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
698
742
|
|
699
743
|
const headerParameters: runtime.HTTPHeaders = {};
|
700
744
|
|
701
|
-
if (this.configuration && this.configuration.
|
702
|
-
|
703
|
-
|
745
|
+
if (this.configuration && this.configuration.accessToken) {
|
746
|
+
const token = this.configuration.accessToken;
|
747
|
+
const tokenString = await token("authentik", []);
|
704
748
|
|
749
|
+
if (tokenString) {
|
750
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
751
|
+
}
|
752
|
+
}
|
705
753
|
const response = await this.request({
|
706
754
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
707
755
|
method: 'DELETE',
|
@@ -747,10 +795,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
747
795
|
|
748
796
|
const headerParameters: runtime.HTTPHeaders = {};
|
749
797
|
|
750
|
-
if (this.configuration && this.configuration.
|
751
|
-
|
752
|
-
|
798
|
+
if (this.configuration && this.configuration.accessToken) {
|
799
|
+
const token = this.configuration.accessToken;
|
800
|
+
const tokenString = await token("authentik", []);
|
753
801
|
|
802
|
+
if (tokenString) {
|
803
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
804
|
+
}
|
805
|
+
}
|
754
806
|
const response = await this.request({
|
755
807
|
path: `/rbac/roles/`,
|
756
808
|
method: 'GET',
|
@@ -783,10 +835,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
783
835
|
|
784
836
|
headerParameters['Content-Type'] = 'application/json';
|
785
837
|
|
786
|
-
if (this.configuration && this.configuration.
|
787
|
-
|
788
|
-
|
838
|
+
if (this.configuration && this.configuration.accessToken) {
|
839
|
+
const token = this.configuration.accessToken;
|
840
|
+
const tokenString = await token("authentik", []);
|
789
841
|
|
842
|
+
if (tokenString) {
|
843
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
844
|
+
}
|
845
|
+
}
|
790
846
|
const response = await this.request({
|
791
847
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
792
848
|
method: 'PATCH',
|
@@ -818,10 +874,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
818
874
|
|
819
875
|
const headerParameters: runtime.HTTPHeaders = {};
|
820
876
|
|
821
|
-
if (this.configuration && this.configuration.
|
822
|
-
|
823
|
-
|
877
|
+
if (this.configuration && this.configuration.accessToken) {
|
878
|
+
const token = this.configuration.accessToken;
|
879
|
+
const tokenString = await token("authentik", []);
|
824
880
|
|
881
|
+
if (tokenString) {
|
882
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
883
|
+
}
|
884
|
+
}
|
825
885
|
const response = await this.request({
|
826
886
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
827
887
|
method: 'GET',
|
@@ -858,10 +918,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
858
918
|
|
859
919
|
headerParameters['Content-Type'] = 'application/json';
|
860
920
|
|
861
|
-
if (this.configuration && this.configuration.
|
862
|
-
|
863
|
-
|
921
|
+
if (this.configuration && this.configuration.accessToken) {
|
922
|
+
const token = this.configuration.accessToken;
|
923
|
+
const tokenString = await token("authentik", []);
|
864
924
|
|
925
|
+
if (tokenString) {
|
926
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
927
|
+
}
|
928
|
+
}
|
865
929
|
const response = await this.request({
|
866
930
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
867
931
|
method: 'PUT',
|
@@ -893,10 +957,14 @@ export class RbacApi extends runtime.BaseAPI {
|
|
893
957
|
|
894
958
|
const headerParameters: runtime.HTTPHeaders = {};
|
895
959
|
|
896
|
-
if (this.configuration && this.configuration.
|
897
|
-
|
898
|
-
|
960
|
+
if (this.configuration && this.configuration.accessToken) {
|
961
|
+
const token = this.configuration.accessToken;
|
962
|
+
const tokenString = await token("authentik", []);
|
899
963
|
|
964
|
+
if (tokenString) {
|
965
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
966
|
+
}
|
967
|
+
}
|
900
968
|
const response = await this.request({
|
901
969
|
path: `/rbac/roles/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
902
970
|
method: 'GET',
|
package/src/apis/RootApi.ts
CHANGED
@@ -41,10 +41,14 @@ export class RootApi extends runtime.BaseAPI {
|
|
41
41
|
|
42
42
|
const headerParameters: runtime.HTTPHeaders = {};
|
43
43
|
|
44
|
-
if (this.configuration && this.configuration.
|
45
|
-
|
46
|
-
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
45
|
+
const token = this.configuration.accessToken;
|
46
|
+
const tokenString = await token("authentik", []);
|
47
47
|
|
48
|
+
if (tokenString) {
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
50
|
+
}
|
51
|
+
}
|
48
52
|
const response = await this.request({
|
49
53
|
path: `/root/config/`,
|
50
54
|
method: 'GET',
|
package/src/apis/SchemaApi.ts
CHANGED
@@ -51,10 +51,14 @@ export class SchemaApi extends runtime.BaseAPI {
|
|
51
51
|
|
52
52
|
const headerParameters: runtime.HTTPHeaders = {};
|
53
53
|
|
54
|
-
if (this.configuration && this.configuration.
|
55
|
-
|
56
|
-
|
54
|
+
if (this.configuration && this.configuration.accessToken) {
|
55
|
+
const token = this.configuration.accessToken;
|
56
|
+
const tokenString = await token("authentik", []);
|
57
57
|
|
58
|
+
if (tokenString) {
|
59
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
60
|
+
}
|
61
|
+
}
|
58
62
|
const response = await this.request({
|
59
63
|
path: `/schema/`,
|
60
64
|
method: 'GET',
|