@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/EventsApi.ts
CHANGED
@@ -297,10 +297,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
297
297
|
|
298
298
|
const headerParameters: runtime.HTTPHeaders = {};
|
299
299
|
|
300
|
-
if (this.configuration && this.configuration.
|
301
|
-
|
302
|
-
|
300
|
+
if (this.configuration && this.configuration.accessToken) {
|
301
|
+
const token = this.configuration.accessToken;
|
302
|
+
const tokenString = await token("authentik", []);
|
303
303
|
|
304
|
+
if (tokenString) {
|
305
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
306
|
+
}
|
307
|
+
}
|
304
308
|
const response = await this.request({
|
305
309
|
path: `/events/events/actions/`,
|
306
310
|
method: 'GET',
|
@@ -333,10 +337,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
333
337
|
|
334
338
|
headerParameters['Content-Type'] = 'application/json';
|
335
339
|
|
336
|
-
if (this.configuration && this.configuration.
|
337
|
-
|
338
|
-
|
340
|
+
if (this.configuration && this.configuration.accessToken) {
|
341
|
+
const token = this.configuration.accessToken;
|
342
|
+
const tokenString = await token("authentik", []);
|
339
343
|
|
344
|
+
if (tokenString) {
|
345
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
346
|
+
}
|
347
|
+
}
|
340
348
|
const response = await this.request({
|
341
349
|
path: `/events/events/`,
|
342
350
|
method: 'POST',
|
@@ -368,10 +376,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
368
376
|
|
369
377
|
const headerParameters: runtime.HTTPHeaders = {};
|
370
378
|
|
371
|
-
if (this.configuration && this.configuration.
|
372
|
-
|
373
|
-
|
379
|
+
if (this.configuration && this.configuration.accessToken) {
|
380
|
+
const token = this.configuration.accessToken;
|
381
|
+
const tokenString = await token("authentik", []);
|
374
382
|
|
383
|
+
if (tokenString) {
|
384
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
385
|
+
}
|
386
|
+
}
|
375
387
|
const response = await this.request({
|
376
388
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
377
389
|
method: 'DELETE',
|
@@ -445,10 +457,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
445
457
|
|
446
458
|
const headerParameters: runtime.HTTPHeaders = {};
|
447
459
|
|
448
|
-
if (this.configuration && this.configuration.
|
449
|
-
|
450
|
-
|
460
|
+
if (this.configuration && this.configuration.accessToken) {
|
461
|
+
const token = this.configuration.accessToken;
|
462
|
+
const tokenString = await token("authentik", []);
|
451
463
|
|
464
|
+
if (tokenString) {
|
465
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
466
|
+
}
|
467
|
+
}
|
452
468
|
const response = await this.request({
|
453
469
|
path: `/events/events/`,
|
454
470
|
method: 'GET',
|
@@ -481,10 +497,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
481
497
|
|
482
498
|
headerParameters['Content-Type'] = 'application/json';
|
483
499
|
|
484
|
-
if (this.configuration && this.configuration.
|
485
|
-
|
486
|
-
|
500
|
+
if (this.configuration && this.configuration.accessToken) {
|
501
|
+
const token = this.configuration.accessToken;
|
502
|
+
const tokenString = await token("authentik", []);
|
487
503
|
|
504
|
+
if (tokenString) {
|
505
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
506
|
+
}
|
507
|
+
}
|
488
508
|
const response = await this.request({
|
489
509
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
490
510
|
method: 'PATCH',
|
@@ -520,10 +540,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
520
540
|
|
521
541
|
const headerParameters: runtime.HTTPHeaders = {};
|
522
542
|
|
523
|
-
if (this.configuration && this.configuration.
|
524
|
-
|
525
|
-
|
543
|
+
if (this.configuration && this.configuration.accessToken) {
|
544
|
+
const token = this.configuration.accessToken;
|
545
|
+
const tokenString = await token("authentik", []);
|
526
546
|
|
547
|
+
if (tokenString) {
|
548
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
549
|
+
}
|
550
|
+
}
|
527
551
|
const response = await this.request({
|
528
552
|
path: `/events/events/per_month/`,
|
529
553
|
method: 'GET',
|
@@ -554,10 +578,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
554
578
|
|
555
579
|
const headerParameters: runtime.HTTPHeaders = {};
|
556
580
|
|
557
|
-
if (this.configuration && this.configuration.
|
558
|
-
|
559
|
-
|
581
|
+
if (this.configuration && this.configuration.accessToken) {
|
582
|
+
const token = this.configuration.accessToken;
|
583
|
+
const tokenString = await token("authentik", []);
|
560
584
|
|
585
|
+
if (tokenString) {
|
586
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
587
|
+
}
|
588
|
+
}
|
561
589
|
const response = await this.request({
|
562
590
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
563
591
|
method: 'GET',
|
@@ -592,10 +620,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
592
620
|
|
593
621
|
const headerParameters: runtime.HTTPHeaders = {};
|
594
622
|
|
595
|
-
if (this.configuration && this.configuration.
|
596
|
-
|
597
|
-
|
623
|
+
if (this.configuration && this.configuration.accessToken) {
|
624
|
+
const token = this.configuration.accessToken;
|
625
|
+
const tokenString = await token("authentik", []);
|
598
626
|
|
627
|
+
if (tokenString) {
|
628
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
629
|
+
}
|
630
|
+
}
|
599
631
|
const response = await this.request({
|
600
632
|
path: `/events/events/top_per_user/`,
|
601
633
|
method: 'GET',
|
@@ -632,10 +664,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
632
664
|
|
633
665
|
headerParameters['Content-Type'] = 'application/json';
|
634
666
|
|
635
|
-
if (this.configuration && this.configuration.
|
636
|
-
|
637
|
-
|
667
|
+
if (this.configuration && this.configuration.accessToken) {
|
668
|
+
const token = this.configuration.accessToken;
|
669
|
+
const tokenString = await token("authentik", []);
|
638
670
|
|
671
|
+
if (tokenString) {
|
672
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
673
|
+
}
|
674
|
+
}
|
639
675
|
const response = await this.request({
|
640
676
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
641
677
|
method: 'PUT',
|
@@ -703,10 +739,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
703
739
|
|
704
740
|
const headerParameters: runtime.HTTPHeaders = {};
|
705
741
|
|
706
|
-
if (this.configuration && this.configuration.
|
707
|
-
|
708
|
-
|
742
|
+
if (this.configuration && this.configuration.accessToken) {
|
743
|
+
const token = this.configuration.accessToken;
|
744
|
+
const tokenString = await token("authentik", []);
|
709
745
|
|
746
|
+
if (tokenString) {
|
747
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
748
|
+
}
|
749
|
+
}
|
710
750
|
const response = await this.request({
|
711
751
|
path: `/events/events/volume/`,
|
712
752
|
method: 'GET',
|
@@ -737,10 +777,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
737
777
|
|
738
778
|
const headerParameters: runtime.HTTPHeaders = {};
|
739
779
|
|
740
|
-
if (this.configuration && this.configuration.
|
741
|
-
|
742
|
-
|
780
|
+
if (this.configuration && this.configuration.accessToken) {
|
781
|
+
const token = this.configuration.accessToken;
|
782
|
+
const tokenString = await token("authentik", []);
|
743
783
|
|
784
|
+
if (tokenString) {
|
785
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
786
|
+
}
|
787
|
+
}
|
744
788
|
const response = await this.request({
|
745
789
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
746
790
|
method: 'DELETE',
|
@@ -806,10 +850,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
806
850
|
|
807
851
|
const headerParameters: runtime.HTTPHeaders = {};
|
808
852
|
|
809
|
-
if (this.configuration && this.configuration.
|
810
|
-
|
811
|
-
|
853
|
+
if (this.configuration && this.configuration.accessToken) {
|
854
|
+
const token = this.configuration.accessToken;
|
855
|
+
const tokenString = await token("authentik", []);
|
812
856
|
|
857
|
+
if (tokenString) {
|
858
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
859
|
+
}
|
860
|
+
}
|
813
861
|
const response = await this.request({
|
814
862
|
path: `/events/notifications/`,
|
815
863
|
method: 'GET',
|
@@ -836,10 +884,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
836
884
|
|
837
885
|
const headerParameters: runtime.HTTPHeaders = {};
|
838
886
|
|
839
|
-
if (this.configuration && this.configuration.
|
840
|
-
|
841
|
-
|
887
|
+
if (this.configuration && this.configuration.accessToken) {
|
888
|
+
const token = this.configuration.accessToken;
|
889
|
+
const tokenString = await token("authentik", []);
|
842
890
|
|
891
|
+
if (tokenString) {
|
892
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
893
|
+
}
|
894
|
+
}
|
843
895
|
const response = await this.request({
|
844
896
|
path: `/events/notifications/mark_all_seen/`,
|
845
897
|
method: 'POST',
|
@@ -871,10 +923,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
871
923
|
|
872
924
|
headerParameters['Content-Type'] = 'application/json';
|
873
925
|
|
874
|
-
if (this.configuration && this.configuration.
|
875
|
-
|
876
|
-
|
926
|
+
if (this.configuration && this.configuration.accessToken) {
|
927
|
+
const token = this.configuration.accessToken;
|
928
|
+
const tokenString = await token("authentik", []);
|
877
929
|
|
930
|
+
if (tokenString) {
|
931
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
932
|
+
}
|
933
|
+
}
|
878
934
|
const response = await this.request({
|
879
935
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
880
936
|
method: 'PATCH',
|
@@ -906,10 +962,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
906
962
|
|
907
963
|
const headerParameters: runtime.HTTPHeaders = {};
|
908
964
|
|
909
|
-
if (this.configuration && this.configuration.
|
910
|
-
|
911
|
-
|
965
|
+
if (this.configuration && this.configuration.accessToken) {
|
966
|
+
const token = this.configuration.accessToken;
|
967
|
+
const tokenString = await token("authentik", []);
|
912
968
|
|
969
|
+
if (tokenString) {
|
970
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
971
|
+
}
|
972
|
+
}
|
913
973
|
const response = await this.request({
|
914
974
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
915
975
|
method: 'GET',
|
@@ -942,10 +1002,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
942
1002
|
|
943
1003
|
headerParameters['Content-Type'] = 'application/json';
|
944
1004
|
|
945
|
-
if (this.configuration && this.configuration.
|
946
|
-
|
947
|
-
|
1005
|
+
if (this.configuration && this.configuration.accessToken) {
|
1006
|
+
const token = this.configuration.accessToken;
|
1007
|
+
const tokenString = await token("authentik", []);
|
948
1008
|
|
1009
|
+
if (tokenString) {
|
1010
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1011
|
+
}
|
1012
|
+
}
|
949
1013
|
const response = await this.request({
|
950
1014
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
951
1015
|
method: 'PUT',
|
@@ -977,10 +1041,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
977
1041
|
|
978
1042
|
const headerParameters: runtime.HTTPHeaders = {};
|
979
1043
|
|
980
|
-
if (this.configuration && this.configuration.
|
981
|
-
|
982
|
-
|
1044
|
+
if (this.configuration && this.configuration.accessToken) {
|
1045
|
+
const token = this.configuration.accessToken;
|
1046
|
+
const tokenString = await token("authentik", []);
|
983
1047
|
|
1048
|
+
if (tokenString) {
|
1049
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1050
|
+
}
|
1051
|
+
}
|
984
1052
|
const response = await this.request({
|
985
1053
|
path: `/events/notifications/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
986
1054
|
method: 'GET',
|
@@ -1013,10 +1081,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1013
1081
|
|
1014
1082
|
headerParameters['Content-Type'] = 'application/json';
|
1015
1083
|
|
1016
|
-
if (this.configuration && this.configuration.
|
1017
|
-
|
1018
|
-
|
1084
|
+
if (this.configuration && this.configuration.accessToken) {
|
1085
|
+
const token = this.configuration.accessToken;
|
1086
|
+
const tokenString = await token("authentik", []);
|
1019
1087
|
|
1088
|
+
if (tokenString) {
|
1089
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1090
|
+
}
|
1091
|
+
}
|
1020
1092
|
const response = await this.request({
|
1021
1093
|
path: `/events/rules/`,
|
1022
1094
|
method: 'POST',
|
@@ -1048,10 +1120,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1048
1120
|
|
1049
1121
|
const headerParameters: runtime.HTTPHeaders = {};
|
1050
1122
|
|
1051
|
-
if (this.configuration && this.configuration.
|
1052
|
-
|
1053
|
-
|
1123
|
+
if (this.configuration && this.configuration.accessToken) {
|
1124
|
+
const token = this.configuration.accessToken;
|
1125
|
+
const tokenString = await token("authentik", []);
|
1054
1126
|
|
1127
|
+
if (tokenString) {
|
1128
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1129
|
+
}
|
1130
|
+
}
|
1055
1131
|
const response = await this.request({
|
1056
1132
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
1057
1133
|
method: 'DELETE',
|
@@ -1105,10 +1181,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1105
1181
|
|
1106
1182
|
const headerParameters: runtime.HTTPHeaders = {};
|
1107
1183
|
|
1108
|
-
if (this.configuration && this.configuration.
|
1109
|
-
|
1110
|
-
|
1184
|
+
if (this.configuration && this.configuration.accessToken) {
|
1185
|
+
const token = this.configuration.accessToken;
|
1186
|
+
const tokenString = await token("authentik", []);
|
1111
1187
|
|
1188
|
+
if (tokenString) {
|
1189
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1190
|
+
}
|
1191
|
+
}
|
1112
1192
|
const response = await this.request({
|
1113
1193
|
path: `/events/rules/`,
|
1114
1194
|
method: 'GET',
|
@@ -1141,10 +1221,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1141
1221
|
|
1142
1222
|
headerParameters['Content-Type'] = 'application/json';
|
1143
1223
|
|
1144
|
-
if (this.configuration && this.configuration.
|
1145
|
-
|
1146
|
-
|
1224
|
+
if (this.configuration && this.configuration.accessToken) {
|
1225
|
+
const token = this.configuration.accessToken;
|
1226
|
+
const tokenString = await token("authentik", []);
|
1147
1227
|
|
1228
|
+
if (tokenString) {
|
1229
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1230
|
+
}
|
1231
|
+
}
|
1148
1232
|
const response = await this.request({
|
1149
1233
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
1150
1234
|
method: 'PATCH',
|
@@ -1176,10 +1260,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1176
1260
|
|
1177
1261
|
const headerParameters: runtime.HTTPHeaders = {};
|
1178
1262
|
|
1179
|
-
if (this.configuration && this.configuration.
|
1180
|
-
|
1181
|
-
|
1263
|
+
if (this.configuration && this.configuration.accessToken) {
|
1264
|
+
const token = this.configuration.accessToken;
|
1265
|
+
const tokenString = await token("authentik", []);
|
1182
1266
|
|
1267
|
+
if (tokenString) {
|
1268
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1269
|
+
}
|
1270
|
+
}
|
1183
1271
|
const response = await this.request({
|
1184
1272
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
1185
1273
|
method: 'GET',
|
@@ -1216,10 +1304,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1216
1304
|
|
1217
1305
|
headerParameters['Content-Type'] = 'application/json';
|
1218
1306
|
|
1219
|
-
if (this.configuration && this.configuration.
|
1220
|
-
|
1221
|
-
|
1307
|
+
if (this.configuration && this.configuration.accessToken) {
|
1308
|
+
const token = this.configuration.accessToken;
|
1309
|
+
const tokenString = await token("authentik", []);
|
1222
1310
|
|
1311
|
+
if (tokenString) {
|
1312
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1313
|
+
}
|
1314
|
+
}
|
1223
1315
|
const response = await this.request({
|
1224
1316
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
1225
1317
|
method: 'PUT',
|
@@ -1251,10 +1343,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1251
1343
|
|
1252
1344
|
const headerParameters: runtime.HTTPHeaders = {};
|
1253
1345
|
|
1254
|
-
if (this.configuration && this.configuration.
|
1255
|
-
|
1256
|
-
|
1346
|
+
if (this.configuration && this.configuration.accessToken) {
|
1347
|
+
const token = this.configuration.accessToken;
|
1348
|
+
const tokenString = await token("authentik", []);
|
1257
1349
|
|
1350
|
+
if (tokenString) {
|
1351
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1352
|
+
}
|
1353
|
+
}
|
1258
1354
|
const response = await this.request({
|
1259
1355
|
path: `/events/rules/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
1260
1356
|
method: 'GET',
|
@@ -1309,10 +1405,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1309
1405
|
|
1310
1406
|
const headerParameters: runtime.HTTPHeaders = {};
|
1311
1407
|
|
1312
|
-
if (this.configuration && this.configuration.
|
1313
|
-
|
1314
|
-
|
1408
|
+
if (this.configuration && this.configuration.accessToken) {
|
1409
|
+
const token = this.configuration.accessToken;
|
1410
|
+
const tokenString = await token("authentik", []);
|
1315
1411
|
|
1412
|
+
if (tokenString) {
|
1413
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1414
|
+
}
|
1415
|
+
}
|
1316
1416
|
const response = await this.request({
|
1317
1417
|
path: `/events/system_tasks/`,
|
1318
1418
|
method: 'GET',
|
@@ -1343,10 +1443,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1343
1443
|
|
1344
1444
|
const headerParameters: runtime.HTTPHeaders = {};
|
1345
1445
|
|
1346
|
-
if (this.configuration && this.configuration.
|
1347
|
-
|
1348
|
-
|
1446
|
+
if (this.configuration && this.configuration.accessToken) {
|
1447
|
+
const token = this.configuration.accessToken;
|
1448
|
+
const tokenString = await token("authentik", []);
|
1349
1449
|
|
1450
|
+
if (tokenString) {
|
1451
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1452
|
+
}
|
1453
|
+
}
|
1350
1454
|
const response = await this.request({
|
1351
1455
|
path: `/events/system_tasks/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1352
1456
|
method: 'GET',
|
@@ -1377,10 +1481,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1377
1481
|
|
1378
1482
|
const headerParameters: runtime.HTTPHeaders = {};
|
1379
1483
|
|
1380
|
-
if (this.configuration && this.configuration.
|
1381
|
-
|
1382
|
-
|
1484
|
+
if (this.configuration && this.configuration.accessToken) {
|
1485
|
+
const token = this.configuration.accessToken;
|
1486
|
+
const tokenString = await token("authentik", []);
|
1383
1487
|
|
1488
|
+
if (tokenString) {
|
1489
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1490
|
+
}
|
1491
|
+
}
|
1384
1492
|
const response = await this.request({
|
1385
1493
|
path: `/events/system_tasks/{uuid}/run/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1386
1494
|
method: 'POST',
|
@@ -1412,10 +1520,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1412
1520
|
|
1413
1521
|
headerParameters['Content-Type'] = 'application/json';
|
1414
1522
|
|
1415
|
-
if (this.configuration && this.configuration.
|
1416
|
-
|
1417
|
-
|
1523
|
+
if (this.configuration && this.configuration.accessToken) {
|
1524
|
+
const token = this.configuration.accessToken;
|
1525
|
+
const tokenString = await token("authentik", []);
|
1418
1526
|
|
1527
|
+
if (tokenString) {
|
1528
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1529
|
+
}
|
1530
|
+
}
|
1419
1531
|
const response = await this.request({
|
1420
1532
|
path: `/events/transports/`,
|
1421
1533
|
method: 'POST',
|
@@ -1447,10 +1559,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1447
1559
|
|
1448
1560
|
const headerParameters: runtime.HTTPHeaders = {};
|
1449
1561
|
|
1450
|
-
if (this.configuration && this.configuration.
|
1451
|
-
|
1452
|
-
|
1562
|
+
if (this.configuration && this.configuration.accessToken) {
|
1563
|
+
const token = this.configuration.accessToken;
|
1564
|
+
const tokenString = await token("authentik", []);
|
1453
1565
|
|
1566
|
+
if (tokenString) {
|
1567
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1568
|
+
}
|
1569
|
+
}
|
1454
1570
|
const response = await this.request({
|
1455
1571
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1456
1572
|
method: 'DELETE',
|
@@ -1508,10 +1624,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1508
1624
|
|
1509
1625
|
const headerParameters: runtime.HTTPHeaders = {};
|
1510
1626
|
|
1511
|
-
if (this.configuration && this.configuration.
|
1512
|
-
|
1513
|
-
|
1627
|
+
if (this.configuration && this.configuration.accessToken) {
|
1628
|
+
const token = this.configuration.accessToken;
|
1629
|
+
const tokenString = await token("authentik", []);
|
1514
1630
|
|
1631
|
+
if (tokenString) {
|
1632
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1633
|
+
}
|
1634
|
+
}
|
1515
1635
|
const response = await this.request({
|
1516
1636
|
path: `/events/transports/`,
|
1517
1637
|
method: 'GET',
|
@@ -1544,10 +1664,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1544
1664
|
|
1545
1665
|
headerParameters['Content-Type'] = 'application/json';
|
1546
1666
|
|
1547
|
-
if (this.configuration && this.configuration.
|
1548
|
-
|
1549
|
-
|
1667
|
+
if (this.configuration && this.configuration.accessToken) {
|
1668
|
+
const token = this.configuration.accessToken;
|
1669
|
+
const tokenString = await token("authentik", []);
|
1550
1670
|
|
1671
|
+
if (tokenString) {
|
1672
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1673
|
+
}
|
1674
|
+
}
|
1551
1675
|
const response = await this.request({
|
1552
1676
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1553
1677
|
method: 'PATCH',
|
@@ -1579,10 +1703,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1579
1703
|
|
1580
1704
|
const headerParameters: runtime.HTTPHeaders = {};
|
1581
1705
|
|
1582
|
-
if (this.configuration && this.configuration.
|
1583
|
-
|
1584
|
-
|
1706
|
+
if (this.configuration && this.configuration.accessToken) {
|
1707
|
+
const token = this.configuration.accessToken;
|
1708
|
+
const tokenString = await token("authentik", []);
|
1585
1709
|
|
1710
|
+
if (tokenString) {
|
1711
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1712
|
+
}
|
1713
|
+
}
|
1586
1714
|
const response = await this.request({
|
1587
1715
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1588
1716
|
method: 'GET',
|
@@ -1613,10 +1741,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1613
1741
|
|
1614
1742
|
const headerParameters: runtime.HTTPHeaders = {};
|
1615
1743
|
|
1616
|
-
if (this.configuration && this.configuration.
|
1617
|
-
|
1618
|
-
|
1744
|
+
if (this.configuration && this.configuration.accessToken) {
|
1745
|
+
const token = this.configuration.accessToken;
|
1746
|
+
const tokenString = await token("authentik", []);
|
1619
1747
|
|
1748
|
+
if (tokenString) {
|
1749
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1750
|
+
}
|
1751
|
+
}
|
1620
1752
|
const response = await this.request({
|
1621
1753
|
path: `/events/transports/{uuid}/test/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1622
1754
|
method: 'POST',
|
@@ -1653,10 +1785,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1653
1785
|
|
1654
1786
|
headerParameters['Content-Type'] = 'application/json';
|
1655
1787
|
|
1656
|
-
if (this.configuration && this.configuration.
|
1657
|
-
|
1658
|
-
|
1788
|
+
if (this.configuration && this.configuration.accessToken) {
|
1789
|
+
const token = this.configuration.accessToken;
|
1790
|
+
const tokenString = await token("authentik", []);
|
1659
1791
|
|
1792
|
+
if (tokenString) {
|
1793
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1794
|
+
}
|
1795
|
+
}
|
1660
1796
|
const response = await this.request({
|
1661
1797
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1662
1798
|
method: 'PUT',
|
@@ -1688,10 +1824,14 @@ export class EventsApi extends runtime.BaseAPI {
|
|
1688
1824
|
|
1689
1825
|
const headerParameters: runtime.HTTPHeaders = {};
|
1690
1826
|
|
1691
|
-
if (this.configuration && this.configuration.
|
1692
|
-
|
1693
|
-
|
1827
|
+
if (this.configuration && this.configuration.accessToken) {
|
1828
|
+
const token = this.configuration.accessToken;
|
1829
|
+
const tokenString = await token("authentik", []);
|
1694
1830
|
|
1831
|
+
if (tokenString) {
|
1832
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1833
|
+
}
|
1834
|
+
}
|
1695
1835
|
const response = await this.request({
|
1696
1836
|
path: `/events/transports/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1697
1837
|
method: 'GET',
|