@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1713180481
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/.openapi-generator/FILES +0 -1
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.d.ts +2 -0
- package/dist/apis/CoreApi.js +378 -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.d.ts +2 -0
- package/dist/esm/apis/CoreApi.js +378 -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/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +444 -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/index.ts +0 -1
- package/dist/esm/models/UserGroupRequest.d.ts +0 -51
- package/dist/esm/models/UserGroupRequest.js +0 -50
- package/dist/models/UserGroupRequest.d.ts +0 -51
- package/dist/models/UserGroupRequest.js +0 -57
- package/src/models/UserGroupRequest.ts +0 -90
package/dist/apis/EventsApi.js
CHANGED
|
@@ -36,8 +36,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
|
-
if (this.configuration && this.configuration.
|
|
40
|
-
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = yield token("authentik", []);
|
|
42
|
+
if (tokenString) {
|
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
46
|
const response = yield this.request({
|
|
43
47
|
path: `/events/events/actions/`,
|
|
@@ -68,8 +72,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
68
72
|
const queryParameters = {};
|
|
69
73
|
const headerParameters = {};
|
|
70
74
|
headerParameters['Content-Type'] = 'application/json';
|
|
71
|
-
if (this.configuration && this.configuration.
|
|
72
|
-
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
const token = this.configuration.accessToken;
|
|
77
|
+
const tokenString = yield token("authentik", []);
|
|
78
|
+
if (tokenString) {
|
|
79
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
+
}
|
|
73
81
|
}
|
|
74
82
|
const response = yield this.request({
|
|
75
83
|
path: `/events/events/`,
|
|
@@ -100,8 +108,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
100
108
|
}
|
|
101
109
|
const queryParameters = {};
|
|
102
110
|
const headerParameters = {};
|
|
103
|
-
if (this.configuration && this.configuration.
|
|
104
|
-
|
|
111
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
+
const token = this.configuration.accessToken;
|
|
113
|
+
const tokenString = yield token("authentik", []);
|
|
114
|
+
if (tokenString) {
|
|
115
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
116
|
+
}
|
|
105
117
|
}
|
|
106
118
|
const response = yield this.request({
|
|
107
119
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -163,8 +175,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
163
175
|
queryParameters['username'] = requestParameters.username;
|
|
164
176
|
}
|
|
165
177
|
const headerParameters = {};
|
|
166
|
-
if (this.configuration && this.configuration.
|
|
167
|
-
|
|
178
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
179
|
+
const token = this.configuration.accessToken;
|
|
180
|
+
const tokenString = yield token("authentik", []);
|
|
181
|
+
if (tokenString) {
|
|
182
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
183
|
+
}
|
|
168
184
|
}
|
|
169
185
|
const response = yield this.request({
|
|
170
186
|
path: `/events/events/`,
|
|
@@ -195,8 +211,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
195
211
|
const queryParameters = {};
|
|
196
212
|
const headerParameters = {};
|
|
197
213
|
headerParameters['Content-Type'] = 'application/json';
|
|
198
|
-
if (this.configuration && this.configuration.
|
|
199
|
-
|
|
214
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
215
|
+
const token = this.configuration.accessToken;
|
|
216
|
+
const tokenString = yield token("authentik", []);
|
|
217
|
+
if (tokenString) {
|
|
218
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
219
|
+
}
|
|
200
220
|
}
|
|
201
221
|
const response = yield this.request({
|
|
202
222
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -230,8 +250,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
230
250
|
queryParameters['query'] = requestParameters.query;
|
|
231
251
|
}
|
|
232
252
|
const headerParameters = {};
|
|
233
|
-
if (this.configuration && this.configuration.
|
|
234
|
-
|
|
253
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
254
|
+
const token = this.configuration.accessToken;
|
|
255
|
+
const tokenString = yield token("authentik", []);
|
|
256
|
+
if (tokenString) {
|
|
257
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
258
|
+
}
|
|
235
259
|
}
|
|
236
260
|
const response = yield this.request({
|
|
237
261
|
path: `/events/events/per_month/`,
|
|
@@ -261,8 +285,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
261
285
|
}
|
|
262
286
|
const queryParameters = {};
|
|
263
287
|
const headerParameters = {};
|
|
264
|
-
if (this.configuration && this.configuration.
|
|
265
|
-
|
|
288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
289
|
+
const token = this.configuration.accessToken;
|
|
290
|
+
const tokenString = yield token("authentik", []);
|
|
291
|
+
if (tokenString) {
|
|
292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
293
|
+
}
|
|
266
294
|
}
|
|
267
295
|
const response = yield this.request({
|
|
268
296
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -295,8 +323,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
295
323
|
queryParameters['top_n'] = requestParameters.topN;
|
|
296
324
|
}
|
|
297
325
|
const headerParameters = {};
|
|
298
|
-
if (this.configuration && this.configuration.
|
|
299
|
-
|
|
326
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
327
|
+
const token = this.configuration.accessToken;
|
|
328
|
+
const tokenString = yield token("authentik", []);
|
|
329
|
+
if (tokenString) {
|
|
330
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
331
|
+
}
|
|
300
332
|
}
|
|
301
333
|
const response = yield this.request({
|
|
302
334
|
path: `/events/events/top_per_user/`,
|
|
@@ -330,8 +362,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
330
362
|
const queryParameters = {};
|
|
331
363
|
const headerParameters = {};
|
|
332
364
|
headerParameters['Content-Type'] = 'application/json';
|
|
333
|
-
if (this.configuration && this.configuration.
|
|
334
|
-
|
|
365
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
366
|
+
const token = this.configuration.accessToken;
|
|
367
|
+
const tokenString = yield token("authentik", []);
|
|
368
|
+
if (tokenString) {
|
|
369
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
370
|
+
}
|
|
335
371
|
}
|
|
336
372
|
const response = yield this.request({
|
|
337
373
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -389,8 +425,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
389
425
|
queryParameters['username'] = requestParameters.username;
|
|
390
426
|
}
|
|
391
427
|
const headerParameters = {};
|
|
392
|
-
if (this.configuration && this.configuration.
|
|
393
|
-
|
|
428
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
429
|
+
const token = this.configuration.accessToken;
|
|
430
|
+
const tokenString = yield token("authentik", []);
|
|
431
|
+
if (tokenString) {
|
|
432
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
433
|
+
}
|
|
394
434
|
}
|
|
395
435
|
const response = yield this.request({
|
|
396
436
|
path: `/events/events/volume/`,
|
|
@@ -420,8 +460,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
420
460
|
}
|
|
421
461
|
const queryParameters = {};
|
|
422
462
|
const headerParameters = {};
|
|
423
|
-
if (this.configuration && this.configuration.
|
|
424
|
-
|
|
463
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
464
|
+
const token = this.configuration.accessToken;
|
|
465
|
+
const tokenString = yield token("authentik", []);
|
|
466
|
+
if (tokenString) {
|
|
467
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
468
|
+
}
|
|
425
469
|
}
|
|
426
470
|
const response = yield this.request({
|
|
427
471
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -477,8 +521,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
477
521
|
queryParameters['user'] = requestParameters.user;
|
|
478
522
|
}
|
|
479
523
|
const headerParameters = {};
|
|
480
|
-
if (this.configuration && this.configuration.
|
|
481
|
-
|
|
524
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
525
|
+
const token = this.configuration.accessToken;
|
|
526
|
+
const tokenString = yield token("authentik", []);
|
|
527
|
+
if (tokenString) {
|
|
528
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
529
|
+
}
|
|
482
530
|
}
|
|
483
531
|
const response = yield this.request({
|
|
484
532
|
path: `/events/notifications/`,
|
|
@@ -505,8 +553,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
505
553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
506
554
|
const queryParameters = {};
|
|
507
555
|
const headerParameters = {};
|
|
508
|
-
if (this.configuration && this.configuration.
|
|
509
|
-
|
|
556
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
557
|
+
const token = this.configuration.accessToken;
|
|
558
|
+
const tokenString = yield token("authentik", []);
|
|
559
|
+
if (tokenString) {
|
|
560
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
561
|
+
}
|
|
510
562
|
}
|
|
511
563
|
const response = yield this.request({
|
|
512
564
|
path: `/events/notifications/mark_all_seen/`,
|
|
@@ -536,8 +588,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
536
588
|
const queryParameters = {};
|
|
537
589
|
const headerParameters = {};
|
|
538
590
|
headerParameters['Content-Type'] = 'application/json';
|
|
539
|
-
if (this.configuration && this.configuration.
|
|
540
|
-
|
|
591
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
592
|
+
const token = this.configuration.accessToken;
|
|
593
|
+
const tokenString = yield token("authentik", []);
|
|
594
|
+
if (tokenString) {
|
|
595
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
596
|
+
}
|
|
541
597
|
}
|
|
542
598
|
const response = yield this.request({
|
|
543
599
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -568,8 +624,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
568
624
|
}
|
|
569
625
|
const queryParameters = {};
|
|
570
626
|
const headerParameters = {};
|
|
571
|
-
if (this.configuration && this.configuration.
|
|
572
|
-
|
|
627
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
628
|
+
const token = this.configuration.accessToken;
|
|
629
|
+
const tokenString = yield token("authentik", []);
|
|
630
|
+
if (tokenString) {
|
|
631
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
632
|
+
}
|
|
573
633
|
}
|
|
574
634
|
const response = yield this.request({
|
|
575
635
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -600,8 +660,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
600
660
|
const queryParameters = {};
|
|
601
661
|
const headerParameters = {};
|
|
602
662
|
headerParameters['Content-Type'] = 'application/json';
|
|
603
|
-
if (this.configuration && this.configuration.
|
|
604
|
-
|
|
663
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
664
|
+
const token = this.configuration.accessToken;
|
|
665
|
+
const tokenString = yield token("authentik", []);
|
|
666
|
+
if (tokenString) {
|
|
667
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
668
|
+
}
|
|
605
669
|
}
|
|
606
670
|
const response = yield this.request({
|
|
607
671
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -632,8 +696,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
632
696
|
}
|
|
633
697
|
const queryParameters = {};
|
|
634
698
|
const headerParameters = {};
|
|
635
|
-
if (this.configuration && this.configuration.
|
|
636
|
-
|
|
699
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
700
|
+
const token = this.configuration.accessToken;
|
|
701
|
+
const tokenString = yield token("authentik", []);
|
|
702
|
+
if (tokenString) {
|
|
703
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
704
|
+
}
|
|
637
705
|
}
|
|
638
706
|
const response = yield this.request({
|
|
639
707
|
path: `/events/notifications/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -664,8 +732,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
664
732
|
const queryParameters = {};
|
|
665
733
|
const headerParameters = {};
|
|
666
734
|
headerParameters['Content-Type'] = 'application/json';
|
|
667
|
-
if (this.configuration && this.configuration.
|
|
668
|
-
|
|
735
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
736
|
+
const token = this.configuration.accessToken;
|
|
737
|
+
const tokenString = yield token("authentik", []);
|
|
738
|
+
if (tokenString) {
|
|
739
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
740
|
+
}
|
|
669
741
|
}
|
|
670
742
|
const response = yield this.request({
|
|
671
743
|
path: `/events/rules/`,
|
|
@@ -696,8 +768,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
696
768
|
}
|
|
697
769
|
const queryParameters = {};
|
|
698
770
|
const headerParameters = {};
|
|
699
|
-
if (this.configuration && this.configuration.
|
|
700
|
-
|
|
771
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
772
|
+
const token = this.configuration.accessToken;
|
|
773
|
+
const tokenString = yield token("authentik", []);
|
|
774
|
+
if (tokenString) {
|
|
775
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
776
|
+
}
|
|
701
777
|
}
|
|
702
778
|
const response = yield this.request({
|
|
703
779
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -744,8 +820,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
744
820
|
queryParameters['severity'] = requestParameters.severity;
|
|
745
821
|
}
|
|
746
822
|
const headerParameters = {};
|
|
747
|
-
if (this.configuration && this.configuration.
|
|
748
|
-
|
|
823
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
824
|
+
const token = this.configuration.accessToken;
|
|
825
|
+
const tokenString = yield token("authentik", []);
|
|
826
|
+
if (tokenString) {
|
|
827
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
828
|
+
}
|
|
749
829
|
}
|
|
750
830
|
const response = yield this.request({
|
|
751
831
|
path: `/events/rules/`,
|
|
@@ -776,8 +856,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
776
856
|
const queryParameters = {};
|
|
777
857
|
const headerParameters = {};
|
|
778
858
|
headerParameters['Content-Type'] = 'application/json';
|
|
779
|
-
if (this.configuration && this.configuration.
|
|
780
|
-
|
|
859
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
860
|
+
const token = this.configuration.accessToken;
|
|
861
|
+
const tokenString = yield token("authentik", []);
|
|
862
|
+
if (tokenString) {
|
|
863
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
864
|
+
}
|
|
781
865
|
}
|
|
782
866
|
const response = yield this.request({
|
|
783
867
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -808,8 +892,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
808
892
|
}
|
|
809
893
|
const queryParameters = {};
|
|
810
894
|
const headerParameters = {};
|
|
811
|
-
if (this.configuration && this.configuration.
|
|
812
|
-
|
|
895
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
896
|
+
const token = this.configuration.accessToken;
|
|
897
|
+
const tokenString = yield token("authentik", []);
|
|
898
|
+
if (tokenString) {
|
|
899
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
900
|
+
}
|
|
813
901
|
}
|
|
814
902
|
const response = yield this.request({
|
|
815
903
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -843,8 +931,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
843
931
|
const queryParameters = {};
|
|
844
932
|
const headerParameters = {};
|
|
845
933
|
headerParameters['Content-Type'] = 'application/json';
|
|
846
|
-
if (this.configuration && this.configuration.
|
|
847
|
-
|
|
934
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
935
|
+
const token = this.configuration.accessToken;
|
|
936
|
+
const tokenString = yield token("authentik", []);
|
|
937
|
+
if (tokenString) {
|
|
938
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
939
|
+
}
|
|
848
940
|
}
|
|
849
941
|
const response = yield this.request({
|
|
850
942
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -875,8 +967,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
875
967
|
}
|
|
876
968
|
const queryParameters = {};
|
|
877
969
|
const headerParameters = {};
|
|
878
|
-
if (this.configuration && this.configuration.
|
|
879
|
-
|
|
970
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
971
|
+
const token = this.configuration.accessToken;
|
|
972
|
+
const tokenString = yield token("authentik", []);
|
|
973
|
+
if (tokenString) {
|
|
974
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
975
|
+
}
|
|
880
976
|
}
|
|
881
977
|
const response = yield this.request({
|
|
882
978
|
path: `/events/rules/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -924,8 +1020,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
924
1020
|
queryParameters['uid'] = requestParameters.uid;
|
|
925
1021
|
}
|
|
926
1022
|
const headerParameters = {};
|
|
927
|
-
if (this.configuration && this.configuration.
|
|
928
|
-
|
|
1023
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1024
|
+
const token = this.configuration.accessToken;
|
|
1025
|
+
const tokenString = yield token("authentik", []);
|
|
1026
|
+
if (tokenString) {
|
|
1027
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1028
|
+
}
|
|
929
1029
|
}
|
|
930
1030
|
const response = yield this.request({
|
|
931
1031
|
path: `/events/system_tasks/`,
|
|
@@ -955,8 +1055,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
955
1055
|
}
|
|
956
1056
|
const queryParameters = {};
|
|
957
1057
|
const headerParameters = {};
|
|
958
|
-
if (this.configuration && this.configuration.
|
|
959
|
-
|
|
1058
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1059
|
+
const token = this.configuration.accessToken;
|
|
1060
|
+
const tokenString = yield token("authentik", []);
|
|
1061
|
+
if (tokenString) {
|
|
1062
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1063
|
+
}
|
|
960
1064
|
}
|
|
961
1065
|
const response = yield this.request({
|
|
962
1066
|
path: `/events/system_tasks/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -986,8 +1090,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
986
1090
|
}
|
|
987
1091
|
const queryParameters = {};
|
|
988
1092
|
const headerParameters = {};
|
|
989
|
-
if (this.configuration && this.configuration.
|
|
990
|
-
|
|
1093
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1094
|
+
const token = this.configuration.accessToken;
|
|
1095
|
+
const tokenString = yield token("authentik", []);
|
|
1096
|
+
if (tokenString) {
|
|
1097
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1098
|
+
}
|
|
991
1099
|
}
|
|
992
1100
|
const response = yield this.request({
|
|
993
1101
|
path: `/events/system_tasks/{uuid}/run/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1017,8 +1125,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1017
1125
|
const queryParameters = {};
|
|
1018
1126
|
const headerParameters = {};
|
|
1019
1127
|
headerParameters['Content-Type'] = 'application/json';
|
|
1020
|
-
if (this.configuration && this.configuration.
|
|
1021
|
-
|
|
1128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1129
|
+
const token = this.configuration.accessToken;
|
|
1130
|
+
const tokenString = yield token("authentik", []);
|
|
1131
|
+
if (tokenString) {
|
|
1132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1133
|
+
}
|
|
1022
1134
|
}
|
|
1023
1135
|
const response = yield this.request({
|
|
1024
1136
|
path: `/events/transports/`,
|
|
@@ -1049,8 +1161,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1049
1161
|
}
|
|
1050
1162
|
const queryParameters = {};
|
|
1051
1163
|
const headerParameters = {};
|
|
1052
|
-
if (this.configuration && this.configuration.
|
|
1053
|
-
|
|
1164
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1165
|
+
const token = this.configuration.accessToken;
|
|
1166
|
+
const tokenString = yield token("authentik", []);
|
|
1167
|
+
if (tokenString) {
|
|
1168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1169
|
+
}
|
|
1054
1170
|
}
|
|
1055
1171
|
const response = yield this.request({
|
|
1056
1172
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1100,8 +1216,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1100
1216
|
queryParameters['webhook_url'] = requestParameters.webhookUrl;
|
|
1101
1217
|
}
|
|
1102
1218
|
const headerParameters = {};
|
|
1103
|
-
if (this.configuration && this.configuration.
|
|
1104
|
-
|
|
1219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1220
|
+
const token = this.configuration.accessToken;
|
|
1221
|
+
const tokenString = yield token("authentik", []);
|
|
1222
|
+
if (tokenString) {
|
|
1223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1224
|
+
}
|
|
1105
1225
|
}
|
|
1106
1226
|
const response = yield this.request({
|
|
1107
1227
|
path: `/events/transports/`,
|
|
@@ -1132,8 +1252,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1132
1252
|
const queryParameters = {};
|
|
1133
1253
|
const headerParameters = {};
|
|
1134
1254
|
headerParameters['Content-Type'] = 'application/json';
|
|
1135
|
-
if (this.configuration && this.configuration.
|
|
1136
|
-
|
|
1255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1256
|
+
const token = this.configuration.accessToken;
|
|
1257
|
+
const tokenString = yield token("authentik", []);
|
|
1258
|
+
if (tokenString) {
|
|
1259
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1260
|
+
}
|
|
1137
1261
|
}
|
|
1138
1262
|
const response = yield this.request({
|
|
1139
1263
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1164,8 +1288,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1164
1288
|
}
|
|
1165
1289
|
const queryParameters = {};
|
|
1166
1290
|
const headerParameters = {};
|
|
1167
|
-
if (this.configuration && this.configuration.
|
|
1168
|
-
|
|
1291
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1292
|
+
const token = this.configuration.accessToken;
|
|
1293
|
+
const tokenString = yield token("authentik", []);
|
|
1294
|
+
if (tokenString) {
|
|
1295
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1296
|
+
}
|
|
1169
1297
|
}
|
|
1170
1298
|
const response = yield this.request({
|
|
1171
1299
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1195,8 +1323,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1195
1323
|
}
|
|
1196
1324
|
const queryParameters = {};
|
|
1197
1325
|
const headerParameters = {};
|
|
1198
|
-
if (this.configuration && this.configuration.
|
|
1199
|
-
|
|
1326
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1327
|
+
const token = this.configuration.accessToken;
|
|
1328
|
+
const tokenString = yield token("authentik", []);
|
|
1329
|
+
if (tokenString) {
|
|
1330
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1331
|
+
}
|
|
1200
1332
|
}
|
|
1201
1333
|
const response = yield this.request({
|
|
1202
1334
|
path: `/events/transports/{uuid}/test/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1230,8 +1362,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1230
1362
|
const queryParameters = {};
|
|
1231
1363
|
const headerParameters = {};
|
|
1232
1364
|
headerParameters['Content-Type'] = 'application/json';
|
|
1233
|
-
if (this.configuration && this.configuration.
|
|
1234
|
-
|
|
1365
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1366
|
+
const token = this.configuration.accessToken;
|
|
1367
|
+
const tokenString = yield token("authentik", []);
|
|
1368
|
+
if (tokenString) {
|
|
1369
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1370
|
+
}
|
|
1235
1371
|
}
|
|
1236
1372
|
const response = yield this.request({
|
|
1237
1373
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1262,8 +1398,12 @@ class EventsApi extends runtime.BaseAPI {
|
|
|
1262
1398
|
}
|
|
1263
1399
|
const queryParameters = {};
|
|
1264
1400
|
const headerParameters = {};
|
|
1265
|
-
if (this.configuration && this.configuration.
|
|
1266
|
-
|
|
1401
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1402
|
+
const token = this.configuration.accessToken;
|
|
1403
|
+
const tokenString = yield token("authentik", []);
|
|
1404
|
+
if (tokenString) {
|
|
1405
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1406
|
+
}
|
|
1267
1407
|
}
|
|
1268
1408
|
const response = yield this.request({
|
|
1269
1409
|
path: `/events/transports/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|