@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569
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/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/FlowsApi.ts
CHANGED
|
@@ -219,10 +219,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
219
219
|
|
|
220
220
|
headerParameters['Content-Type'] = 'application/json';
|
|
221
221
|
|
|
222
|
-
if (this.configuration && this.configuration.
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
223
|
+
const token = this.configuration.accessToken;
|
|
224
|
+
const tokenString = await token("authentik", []);
|
|
225
225
|
|
|
226
|
+
if (tokenString) {
|
|
227
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
226
230
|
const response = await this.request({
|
|
227
231
|
path: `/flows/bindings/`,
|
|
228
232
|
method: 'POST',
|
|
@@ -254,10 +258,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
254
258
|
|
|
255
259
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
256
260
|
|
|
257
|
-
if (this.configuration && this.configuration.
|
|
258
|
-
|
|
259
|
-
|
|
261
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
262
|
+
const token = this.configuration.accessToken;
|
|
263
|
+
const tokenString = await token("authentik", []);
|
|
260
264
|
|
|
265
|
+
if (tokenString) {
|
|
266
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
261
269
|
const response = await this.request({
|
|
262
270
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
263
271
|
method: 'DELETE',
|
|
@@ -339,10 +347,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
339
347
|
|
|
340
348
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
341
349
|
|
|
342
|
-
if (this.configuration && this.configuration.
|
|
343
|
-
|
|
344
|
-
|
|
350
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
351
|
+
const token = this.configuration.accessToken;
|
|
352
|
+
const tokenString = await token("authentik", []);
|
|
345
353
|
|
|
354
|
+
if (tokenString) {
|
|
355
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
346
358
|
const response = await this.request({
|
|
347
359
|
path: `/flows/bindings/`,
|
|
348
360
|
method: 'GET',
|
|
@@ -375,10 +387,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
375
387
|
|
|
376
388
|
headerParameters['Content-Type'] = 'application/json';
|
|
377
389
|
|
|
378
|
-
if (this.configuration && this.configuration.
|
|
379
|
-
|
|
380
|
-
|
|
390
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
391
|
+
const token = this.configuration.accessToken;
|
|
392
|
+
const tokenString = await token("authentik", []);
|
|
381
393
|
|
|
394
|
+
if (tokenString) {
|
|
395
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
382
398
|
const response = await this.request({
|
|
383
399
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
384
400
|
method: 'PATCH',
|
|
@@ -410,10 +426,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
410
426
|
|
|
411
427
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
412
428
|
|
|
413
|
-
if (this.configuration && this.configuration.
|
|
414
|
-
|
|
415
|
-
|
|
429
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
430
|
+
const token = this.configuration.accessToken;
|
|
431
|
+
const tokenString = await token("authentik", []);
|
|
416
432
|
|
|
433
|
+
if (tokenString) {
|
|
434
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
417
437
|
const response = await this.request({
|
|
418
438
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
419
439
|
method: 'GET',
|
|
@@ -450,10 +470,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
450
470
|
|
|
451
471
|
headerParameters['Content-Type'] = 'application/json';
|
|
452
472
|
|
|
453
|
-
if (this.configuration && this.configuration.
|
|
454
|
-
|
|
455
|
-
|
|
473
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
474
|
+
const token = this.configuration.accessToken;
|
|
475
|
+
const tokenString = await token("authentik", []);
|
|
456
476
|
|
|
477
|
+
if (tokenString) {
|
|
478
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
457
481
|
const response = await this.request({
|
|
458
482
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
459
483
|
method: 'PUT',
|
|
@@ -485,10 +509,14 @@ export class FlowsApi 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: `/flows/bindings/{fsb_uuid}/used_by/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
494
522
|
method: 'GET',
|
|
@@ -527,10 +555,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
527
555
|
|
|
528
556
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
529
557
|
|
|
530
|
-
if (this.configuration && this.configuration.
|
|
531
|
-
|
|
532
|
-
|
|
558
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
559
|
+
const token = this.configuration.accessToken;
|
|
560
|
+
const tokenString = await token("authentik", []);
|
|
533
561
|
|
|
562
|
+
if (tokenString) {
|
|
563
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
534
566
|
const response = await this.request({
|
|
535
567
|
path: `/flows/executor/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
|
536
568
|
method: 'GET',
|
|
@@ -571,10 +603,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
571
603
|
|
|
572
604
|
headerParameters['Content-Type'] = 'application/json';
|
|
573
605
|
|
|
574
|
-
if (this.configuration && this.configuration.
|
|
575
|
-
|
|
576
|
-
|
|
606
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
607
|
+
const token = this.configuration.accessToken;
|
|
608
|
+
const tokenString = await token("authentik", []);
|
|
577
609
|
|
|
610
|
+
if (tokenString) {
|
|
611
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
578
614
|
const response = await this.request({
|
|
579
615
|
path: `/flows/executor/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
|
580
616
|
method: 'POST',
|
|
@@ -606,10 +642,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
606
642
|
|
|
607
643
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
608
644
|
|
|
609
|
-
if (this.configuration && this.configuration.
|
|
610
|
-
|
|
611
|
-
|
|
645
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
646
|
+
const token = this.configuration.accessToken;
|
|
647
|
+
const tokenString = await token("authentik", []);
|
|
612
648
|
|
|
649
|
+
if (tokenString) {
|
|
650
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
613
653
|
const response = await this.request({
|
|
614
654
|
path: `/flows/inspector/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
|
615
655
|
method: 'GET',
|
|
@@ -636,10 +676,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
636
676
|
|
|
637
677
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
638
678
|
|
|
639
|
-
if (this.configuration && this.configuration.
|
|
640
|
-
|
|
641
|
-
|
|
679
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
680
|
+
const token = this.configuration.accessToken;
|
|
681
|
+
const tokenString = await token("authentik", []);
|
|
642
682
|
|
|
683
|
+
if (tokenString) {
|
|
684
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
643
687
|
const response = await this.request({
|
|
644
688
|
path: `/flows/instances/cache_clear/`,
|
|
645
689
|
method: 'POST',
|
|
@@ -665,10 +709,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
665
709
|
|
|
666
710
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
667
711
|
|
|
668
|
-
if (this.configuration && this.configuration.
|
|
669
|
-
|
|
670
|
-
|
|
712
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
713
|
+
const token = this.configuration.accessToken;
|
|
714
|
+
const tokenString = await token("authentik", []);
|
|
671
715
|
|
|
716
|
+
if (tokenString) {
|
|
717
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
672
720
|
const response = await this.request({
|
|
673
721
|
path: `/flows/instances/cache_info/`,
|
|
674
722
|
method: 'GET',
|
|
@@ -701,10 +749,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
701
749
|
|
|
702
750
|
headerParameters['Content-Type'] = 'application/json';
|
|
703
751
|
|
|
704
|
-
if (this.configuration && this.configuration.
|
|
705
|
-
|
|
706
|
-
|
|
752
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
753
|
+
const token = this.configuration.accessToken;
|
|
754
|
+
const tokenString = await token("authentik", []);
|
|
707
755
|
|
|
756
|
+
if (tokenString) {
|
|
757
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
708
760
|
const response = await this.request({
|
|
709
761
|
path: `/flows/instances/`,
|
|
710
762
|
method: 'POST',
|
|
@@ -736,10 +788,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
736
788
|
|
|
737
789
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
738
790
|
|
|
739
|
-
if (this.configuration && this.configuration.
|
|
740
|
-
|
|
741
|
-
|
|
791
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
792
|
+
const token = this.configuration.accessToken;
|
|
793
|
+
const tokenString = await token("authentik", []);
|
|
742
794
|
|
|
795
|
+
if (tokenString) {
|
|
796
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
743
799
|
const response = await this.request({
|
|
744
800
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
745
801
|
method: 'DELETE',
|
|
@@ -769,10 +825,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
769
825
|
|
|
770
826
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
771
827
|
|
|
772
|
-
if (this.configuration && this.configuration.
|
|
773
|
-
|
|
774
|
-
|
|
828
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
829
|
+
const token = this.configuration.accessToken;
|
|
830
|
+
const tokenString = await token("authentik", []);
|
|
775
831
|
|
|
832
|
+
if (tokenString) {
|
|
833
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
776
836
|
const response = await this.request({
|
|
777
837
|
path: `/flows/instances/{slug}/diagram/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
778
838
|
method: 'GET',
|
|
@@ -803,10 +863,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
803
863
|
|
|
804
864
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
805
865
|
|
|
806
|
-
if (this.configuration && this.configuration.
|
|
807
|
-
|
|
808
|
-
|
|
866
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
867
|
+
const token = this.configuration.accessToken;
|
|
868
|
+
const tokenString = await token("authentik", []);
|
|
809
869
|
|
|
870
|
+
if (tokenString) {
|
|
871
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
810
874
|
const response = await this.request({
|
|
811
875
|
path: `/flows/instances/{slug}/execute/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
812
876
|
method: 'GET',
|
|
@@ -837,10 +901,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
837
901
|
|
|
838
902
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
839
903
|
|
|
840
|
-
if (this.configuration && this.configuration.
|
|
841
|
-
|
|
842
|
-
|
|
904
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
905
|
+
const token = this.configuration.accessToken;
|
|
906
|
+
const tokenString = await token("authentik", []);
|
|
843
907
|
|
|
908
|
+
if (tokenString) {
|
|
909
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
844
912
|
const response = await this.request({
|
|
845
913
|
path: `/flows/instances/{slug}/export/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
846
914
|
method: 'GET',
|
|
@@ -867,10 +935,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
867
935
|
|
|
868
936
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
869
937
|
|
|
870
|
-
if (this.configuration && this.configuration.
|
|
871
|
-
|
|
872
|
-
|
|
938
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
939
|
+
const token = this.configuration.accessToken;
|
|
940
|
+
const tokenString = await token("authentik", []);
|
|
873
941
|
|
|
942
|
+
if (tokenString) {
|
|
943
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
874
946
|
const consumes: runtime.Consume[] = [
|
|
875
947
|
{ contentType: 'multipart/form-data' },
|
|
876
948
|
];
|
|
@@ -958,10 +1030,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
958
1030
|
|
|
959
1031
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
960
1032
|
|
|
961
|
-
if (this.configuration && this.configuration.
|
|
962
|
-
|
|
963
|
-
|
|
1033
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1034
|
+
const token = this.configuration.accessToken;
|
|
1035
|
+
const tokenString = await token("authentik", []);
|
|
964
1036
|
|
|
1037
|
+
if (tokenString) {
|
|
1038
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
965
1041
|
const response = await this.request({
|
|
966
1042
|
path: `/flows/instances/`,
|
|
967
1043
|
method: 'GET',
|
|
@@ -994,10 +1070,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
994
1070
|
|
|
995
1071
|
headerParameters['Content-Type'] = 'application/json';
|
|
996
1072
|
|
|
997
|
-
if (this.configuration && this.configuration.
|
|
998
|
-
|
|
999
|
-
|
|
1073
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1074
|
+
const token = this.configuration.accessToken;
|
|
1075
|
+
const tokenString = await token("authentik", []);
|
|
1000
1076
|
|
|
1077
|
+
if (tokenString) {
|
|
1078
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1001
1081
|
const response = await this.request({
|
|
1002
1082
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
1003
1083
|
method: 'PATCH',
|
|
@@ -1029,10 +1109,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
1029
1109
|
|
|
1030
1110
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1031
1111
|
|
|
1032
|
-
if (this.configuration && this.configuration.
|
|
1033
|
-
|
|
1034
|
-
|
|
1112
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1113
|
+
const token = this.configuration.accessToken;
|
|
1114
|
+
const tokenString = await token("authentik", []);
|
|
1035
1115
|
|
|
1116
|
+
if (tokenString) {
|
|
1117
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1036
1120
|
const response = await this.request({
|
|
1037
1121
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
1038
1122
|
method: 'GET',
|
|
@@ -1063,10 +1147,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
1063
1147
|
|
|
1064
1148
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1065
1149
|
|
|
1066
|
-
if (this.configuration && this.configuration.
|
|
1067
|
-
|
|
1068
|
-
|
|
1150
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1151
|
+
const token = this.configuration.accessToken;
|
|
1152
|
+
const tokenString = await token("authentik", []);
|
|
1069
1153
|
|
|
1154
|
+
if (tokenString) {
|
|
1155
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1070
1158
|
const consumes: runtime.Consume[] = [
|
|
1071
1159
|
{ contentType: 'multipart/form-data' },
|
|
1072
1160
|
];
|
|
@@ -1127,10 +1215,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
1127
1215
|
|
|
1128
1216
|
headerParameters['Content-Type'] = 'application/json';
|
|
1129
1217
|
|
|
1130
|
-
if (this.configuration && this.configuration.
|
|
1131
|
-
|
|
1132
|
-
|
|
1218
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1219
|
+
const token = this.configuration.accessToken;
|
|
1220
|
+
const tokenString = await token("authentik", []);
|
|
1133
1221
|
|
|
1222
|
+
if (tokenString) {
|
|
1223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1134
1226
|
const response = await this.request({
|
|
1135
1227
|
path: `/flows/instances/{slug}/set_background_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
1136
1228
|
method: 'POST',
|
|
@@ -1167,10 +1259,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
1167
1259
|
|
|
1168
1260
|
headerParameters['Content-Type'] = 'application/json';
|
|
1169
1261
|
|
|
1170
|
-
if (this.configuration && this.configuration.
|
|
1171
|
-
|
|
1172
|
-
|
|
1262
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1263
|
+
const token = this.configuration.accessToken;
|
|
1264
|
+
const tokenString = await token("authentik", []);
|
|
1173
1265
|
|
|
1266
|
+
if (tokenString) {
|
|
1267
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1174
1270
|
const response = await this.request({
|
|
1175
1271
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
1176
1272
|
method: 'PUT',
|
|
@@ -1202,10 +1298,14 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
1202
1298
|
|
|
1203
1299
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1204
1300
|
|
|
1205
|
-
if (this.configuration && this.configuration.
|
|
1206
|
-
|
|
1207
|
-
|
|
1301
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1302
|
+
const token = this.configuration.accessToken;
|
|
1303
|
+
const tokenString = await token("authentik", []);
|
|
1208
1304
|
|
|
1305
|
+
if (tokenString) {
|
|
1306
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1209
1309
|
const response = await this.request({
|
|
1210
1310
|
path: `/flows/instances/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
1211
1311
|
method: 'GET',
|
package/src/apis/ManagedApi.ts
CHANGED
|
@@ -99,10 +99,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
99
99
|
|
|
100
100
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
101
101
|
|
|
102
|
-
if (this.configuration && this.configuration.
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
+
const token = this.configuration.accessToken;
|
|
104
|
+
const tokenString = await token("authentik", []);
|
|
105
105
|
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
106
110
|
const response = await this.request({
|
|
107
111
|
path: `/managed/blueprints/{instance_uuid}/apply/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
108
112
|
method: 'POST',
|
|
@@ -129,10 +133,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
129
133
|
|
|
130
134
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
131
135
|
|
|
132
|
-
if (this.configuration && this.configuration.
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
137
|
+
const token = this.configuration.accessToken;
|
|
138
|
+
const tokenString = await token("authentik", []);
|
|
135
139
|
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
136
144
|
const response = await this.request({
|
|
137
145
|
path: `/managed/blueprints/available/`,
|
|
138
146
|
method: 'GET',
|
|
@@ -165,10 +173,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
165
173
|
|
|
166
174
|
headerParameters['Content-Type'] = 'application/json';
|
|
167
175
|
|
|
168
|
-
if (this.configuration && this.configuration.
|
|
169
|
-
|
|
170
|
-
|
|
176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
177
|
+
const token = this.configuration.accessToken;
|
|
178
|
+
const tokenString = await token("authentik", []);
|
|
171
179
|
|
|
180
|
+
if (tokenString) {
|
|
181
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
172
184
|
const response = await this.request({
|
|
173
185
|
path: `/managed/blueprints/`,
|
|
174
186
|
method: 'POST',
|
|
@@ -200,10 +212,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
200
212
|
|
|
201
213
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
202
214
|
|
|
203
|
-
if (this.configuration && this.configuration.
|
|
204
|
-
|
|
205
|
-
|
|
215
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
216
|
+
const token = this.configuration.accessToken;
|
|
217
|
+
const tokenString = await token("authentik", []);
|
|
206
218
|
|
|
219
|
+
if (tokenString) {
|
|
220
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
207
223
|
const response = await this.request({
|
|
208
224
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
209
225
|
method: 'DELETE',
|
|
@@ -253,10 +269,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
253
269
|
|
|
254
270
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
255
271
|
|
|
256
|
-
if (this.configuration && this.configuration.
|
|
257
|
-
|
|
258
|
-
|
|
272
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
273
|
+
const token = this.configuration.accessToken;
|
|
274
|
+
const tokenString = await token("authentik", []);
|
|
259
275
|
|
|
276
|
+
if (tokenString) {
|
|
277
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
260
280
|
const response = await this.request({
|
|
261
281
|
path: `/managed/blueprints/`,
|
|
262
282
|
method: 'GET',
|
|
@@ -289,10 +309,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
289
309
|
|
|
290
310
|
headerParameters['Content-Type'] = 'application/json';
|
|
291
311
|
|
|
292
|
-
if (this.configuration && this.configuration.
|
|
293
|
-
|
|
294
|
-
|
|
312
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
313
|
+
const token = this.configuration.accessToken;
|
|
314
|
+
const tokenString = await token("authentik", []);
|
|
295
315
|
|
|
316
|
+
if (tokenString) {
|
|
317
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
296
320
|
const response = await this.request({
|
|
297
321
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
298
322
|
method: 'PATCH',
|
|
@@ -324,10 +348,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
324
348
|
|
|
325
349
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
326
350
|
|
|
327
|
-
if (this.configuration && this.configuration.
|
|
328
|
-
|
|
329
|
-
|
|
351
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
352
|
+
const token = this.configuration.accessToken;
|
|
353
|
+
const tokenString = await token("authentik", []);
|
|
330
354
|
|
|
355
|
+
if (tokenString) {
|
|
356
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
331
359
|
const response = await this.request({
|
|
332
360
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
333
361
|
method: 'GET',
|
|
@@ -364,10 +392,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
364
392
|
|
|
365
393
|
headerParameters['Content-Type'] = 'application/json';
|
|
366
394
|
|
|
367
|
-
if (this.configuration && this.configuration.
|
|
368
|
-
|
|
369
|
-
|
|
395
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
396
|
+
const token = this.configuration.accessToken;
|
|
397
|
+
const tokenString = await token("authentik", []);
|
|
370
398
|
|
|
399
|
+
if (tokenString) {
|
|
400
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
371
403
|
const response = await this.request({
|
|
372
404
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
373
405
|
method: 'PUT',
|
|
@@ -399,10 +431,14 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
|
399
431
|
|
|
400
432
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
401
433
|
|
|
402
|
-
if (this.configuration && this.configuration.
|
|
403
|
-
|
|
404
|
-
|
|
434
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
435
|
+
const token = this.configuration.accessToken;
|
|
436
|
+
const tokenString = await token("authentik", []);
|
|
405
437
|
|
|
438
|
+
if (tokenString) {
|
|
439
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
406
442
|
const response = await this.request({
|
|
407
443
|
path: `/managed/blueprints/{instance_uuid}/used_by/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
408
444
|
method: 'GET',
|