@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
|
@@ -33,8 +33,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const queryParameters = {};
|
|
35
35
|
const headerParameters = {};
|
|
36
|
-
if (this.configuration && this.configuration.
|
|
37
|
-
|
|
36
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37
|
+
const token = this.configuration.accessToken;
|
|
38
|
+
const tokenString = yield token("authentik", []);
|
|
39
|
+
if (tokenString) {
|
|
40
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
const response = yield this.request({
|
|
40
44
|
path: `/events/events/actions/`,
|
|
@@ -65,8 +69,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
65
69
|
const queryParameters = {};
|
|
66
70
|
const headerParameters = {};
|
|
67
71
|
headerParameters['Content-Type'] = 'application/json';
|
|
68
|
-
if (this.configuration && this.configuration.
|
|
69
|
-
|
|
72
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
73
|
+
const token = this.configuration.accessToken;
|
|
74
|
+
const tokenString = yield token("authentik", []);
|
|
75
|
+
if (tokenString) {
|
|
76
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
77
|
+
}
|
|
70
78
|
}
|
|
71
79
|
const response = yield this.request({
|
|
72
80
|
path: `/events/events/`,
|
|
@@ -97,8 +105,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
97
105
|
}
|
|
98
106
|
const queryParameters = {};
|
|
99
107
|
const headerParameters = {};
|
|
100
|
-
if (this.configuration && this.configuration.
|
|
101
|
-
|
|
108
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
109
|
+
const token = this.configuration.accessToken;
|
|
110
|
+
const tokenString = yield token("authentik", []);
|
|
111
|
+
if (tokenString) {
|
|
112
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
113
|
+
}
|
|
102
114
|
}
|
|
103
115
|
const response = yield this.request({
|
|
104
116
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -160,8 +172,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
160
172
|
queryParameters['username'] = requestParameters.username;
|
|
161
173
|
}
|
|
162
174
|
const headerParameters = {};
|
|
163
|
-
if (this.configuration && this.configuration.
|
|
164
|
-
|
|
175
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
176
|
+
const token = this.configuration.accessToken;
|
|
177
|
+
const tokenString = yield token("authentik", []);
|
|
178
|
+
if (tokenString) {
|
|
179
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
180
|
+
}
|
|
165
181
|
}
|
|
166
182
|
const response = yield this.request({
|
|
167
183
|
path: `/events/events/`,
|
|
@@ -192,8 +208,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
192
208
|
const queryParameters = {};
|
|
193
209
|
const headerParameters = {};
|
|
194
210
|
headerParameters['Content-Type'] = 'application/json';
|
|
195
|
-
if (this.configuration && this.configuration.
|
|
196
|
-
|
|
211
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
212
|
+
const token = this.configuration.accessToken;
|
|
213
|
+
const tokenString = yield token("authentik", []);
|
|
214
|
+
if (tokenString) {
|
|
215
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
216
|
+
}
|
|
197
217
|
}
|
|
198
218
|
const response = yield this.request({
|
|
199
219
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -227,8 +247,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
227
247
|
queryParameters['query'] = requestParameters.query;
|
|
228
248
|
}
|
|
229
249
|
const headerParameters = {};
|
|
230
|
-
if (this.configuration && this.configuration.
|
|
231
|
-
|
|
250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
251
|
+
const token = this.configuration.accessToken;
|
|
252
|
+
const tokenString = yield token("authentik", []);
|
|
253
|
+
if (tokenString) {
|
|
254
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
255
|
+
}
|
|
232
256
|
}
|
|
233
257
|
const response = yield this.request({
|
|
234
258
|
path: `/events/events/per_month/`,
|
|
@@ -258,8 +282,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
258
282
|
}
|
|
259
283
|
const queryParameters = {};
|
|
260
284
|
const headerParameters = {};
|
|
261
|
-
if (this.configuration && this.configuration.
|
|
262
|
-
|
|
285
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
286
|
+
const token = this.configuration.accessToken;
|
|
287
|
+
const tokenString = yield token("authentik", []);
|
|
288
|
+
if (tokenString) {
|
|
289
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
290
|
+
}
|
|
263
291
|
}
|
|
264
292
|
const response = yield this.request({
|
|
265
293
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -292,8 +320,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
292
320
|
queryParameters['top_n'] = requestParameters.topN;
|
|
293
321
|
}
|
|
294
322
|
const headerParameters = {};
|
|
295
|
-
if (this.configuration && this.configuration.
|
|
296
|
-
|
|
323
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
324
|
+
const token = this.configuration.accessToken;
|
|
325
|
+
const tokenString = yield token("authentik", []);
|
|
326
|
+
if (tokenString) {
|
|
327
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
328
|
+
}
|
|
297
329
|
}
|
|
298
330
|
const response = yield this.request({
|
|
299
331
|
path: `/events/events/top_per_user/`,
|
|
@@ -327,8 +359,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
327
359
|
const queryParameters = {};
|
|
328
360
|
const headerParameters = {};
|
|
329
361
|
headerParameters['Content-Type'] = 'application/json';
|
|
330
|
-
if (this.configuration && this.configuration.
|
|
331
|
-
|
|
362
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
363
|
+
const token = this.configuration.accessToken;
|
|
364
|
+
const tokenString = yield token("authentik", []);
|
|
365
|
+
if (tokenString) {
|
|
366
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
367
|
+
}
|
|
332
368
|
}
|
|
333
369
|
const response = yield this.request({
|
|
334
370
|
path: `/events/events/{event_uuid}/`.replace(`{${"event_uuid"}}`, encodeURIComponent(String(requestParameters.eventUuid))),
|
|
@@ -386,8 +422,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
386
422
|
queryParameters['username'] = requestParameters.username;
|
|
387
423
|
}
|
|
388
424
|
const headerParameters = {};
|
|
389
|
-
if (this.configuration && this.configuration.
|
|
390
|
-
|
|
425
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
426
|
+
const token = this.configuration.accessToken;
|
|
427
|
+
const tokenString = yield token("authentik", []);
|
|
428
|
+
if (tokenString) {
|
|
429
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
430
|
+
}
|
|
391
431
|
}
|
|
392
432
|
const response = yield this.request({
|
|
393
433
|
path: `/events/events/volume/`,
|
|
@@ -417,8 +457,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
417
457
|
}
|
|
418
458
|
const queryParameters = {};
|
|
419
459
|
const headerParameters = {};
|
|
420
|
-
if (this.configuration && this.configuration.
|
|
421
|
-
|
|
460
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
461
|
+
const token = this.configuration.accessToken;
|
|
462
|
+
const tokenString = yield token("authentik", []);
|
|
463
|
+
if (tokenString) {
|
|
464
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
465
|
+
}
|
|
422
466
|
}
|
|
423
467
|
const response = yield this.request({
|
|
424
468
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -474,8 +518,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
474
518
|
queryParameters['user'] = requestParameters.user;
|
|
475
519
|
}
|
|
476
520
|
const headerParameters = {};
|
|
477
|
-
if (this.configuration && this.configuration.
|
|
478
|
-
|
|
521
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
522
|
+
const token = this.configuration.accessToken;
|
|
523
|
+
const tokenString = yield token("authentik", []);
|
|
524
|
+
if (tokenString) {
|
|
525
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
526
|
+
}
|
|
479
527
|
}
|
|
480
528
|
const response = yield this.request({
|
|
481
529
|
path: `/events/notifications/`,
|
|
@@ -502,8 +550,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
502
550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
503
551
|
const queryParameters = {};
|
|
504
552
|
const headerParameters = {};
|
|
505
|
-
if (this.configuration && this.configuration.
|
|
506
|
-
|
|
553
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
554
|
+
const token = this.configuration.accessToken;
|
|
555
|
+
const tokenString = yield token("authentik", []);
|
|
556
|
+
if (tokenString) {
|
|
557
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
558
|
+
}
|
|
507
559
|
}
|
|
508
560
|
const response = yield this.request({
|
|
509
561
|
path: `/events/notifications/mark_all_seen/`,
|
|
@@ -533,8 +585,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
533
585
|
const queryParameters = {};
|
|
534
586
|
const headerParameters = {};
|
|
535
587
|
headerParameters['Content-Type'] = 'application/json';
|
|
536
|
-
if (this.configuration && this.configuration.
|
|
537
|
-
|
|
588
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
589
|
+
const token = this.configuration.accessToken;
|
|
590
|
+
const tokenString = yield token("authentik", []);
|
|
591
|
+
if (tokenString) {
|
|
592
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
593
|
+
}
|
|
538
594
|
}
|
|
539
595
|
const response = yield this.request({
|
|
540
596
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -565,8 +621,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
565
621
|
}
|
|
566
622
|
const queryParameters = {};
|
|
567
623
|
const headerParameters = {};
|
|
568
|
-
if (this.configuration && this.configuration.
|
|
569
|
-
|
|
624
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
625
|
+
const token = this.configuration.accessToken;
|
|
626
|
+
const tokenString = yield token("authentik", []);
|
|
627
|
+
if (tokenString) {
|
|
628
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
629
|
+
}
|
|
570
630
|
}
|
|
571
631
|
const response = yield this.request({
|
|
572
632
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -597,8 +657,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
597
657
|
const queryParameters = {};
|
|
598
658
|
const headerParameters = {};
|
|
599
659
|
headerParameters['Content-Type'] = 'application/json';
|
|
600
|
-
if (this.configuration && this.configuration.
|
|
601
|
-
|
|
660
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
661
|
+
const token = this.configuration.accessToken;
|
|
662
|
+
const tokenString = yield token("authentik", []);
|
|
663
|
+
if (tokenString) {
|
|
664
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
665
|
+
}
|
|
602
666
|
}
|
|
603
667
|
const response = yield this.request({
|
|
604
668
|
path: `/events/notifications/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -629,8 +693,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
629
693
|
}
|
|
630
694
|
const queryParameters = {};
|
|
631
695
|
const headerParameters = {};
|
|
632
|
-
if (this.configuration && this.configuration.
|
|
633
|
-
|
|
696
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
697
|
+
const token = this.configuration.accessToken;
|
|
698
|
+
const tokenString = yield token("authentik", []);
|
|
699
|
+
if (tokenString) {
|
|
700
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
701
|
+
}
|
|
634
702
|
}
|
|
635
703
|
const response = yield this.request({
|
|
636
704
|
path: `/events/notifications/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -661,8 +729,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
661
729
|
const queryParameters = {};
|
|
662
730
|
const headerParameters = {};
|
|
663
731
|
headerParameters['Content-Type'] = 'application/json';
|
|
664
|
-
if (this.configuration && this.configuration.
|
|
665
|
-
|
|
732
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
733
|
+
const token = this.configuration.accessToken;
|
|
734
|
+
const tokenString = yield token("authentik", []);
|
|
735
|
+
if (tokenString) {
|
|
736
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
737
|
+
}
|
|
666
738
|
}
|
|
667
739
|
const response = yield this.request({
|
|
668
740
|
path: `/events/rules/`,
|
|
@@ -693,8 +765,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
693
765
|
}
|
|
694
766
|
const queryParameters = {};
|
|
695
767
|
const headerParameters = {};
|
|
696
|
-
if (this.configuration && this.configuration.
|
|
697
|
-
|
|
768
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
769
|
+
const token = this.configuration.accessToken;
|
|
770
|
+
const tokenString = yield token("authentik", []);
|
|
771
|
+
if (tokenString) {
|
|
772
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
773
|
+
}
|
|
698
774
|
}
|
|
699
775
|
const response = yield this.request({
|
|
700
776
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -741,8 +817,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
741
817
|
queryParameters['severity'] = requestParameters.severity;
|
|
742
818
|
}
|
|
743
819
|
const headerParameters = {};
|
|
744
|
-
if (this.configuration && this.configuration.
|
|
745
|
-
|
|
820
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
821
|
+
const token = this.configuration.accessToken;
|
|
822
|
+
const tokenString = yield token("authentik", []);
|
|
823
|
+
if (tokenString) {
|
|
824
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
825
|
+
}
|
|
746
826
|
}
|
|
747
827
|
const response = yield this.request({
|
|
748
828
|
path: `/events/rules/`,
|
|
@@ -773,8 +853,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
773
853
|
const queryParameters = {};
|
|
774
854
|
const headerParameters = {};
|
|
775
855
|
headerParameters['Content-Type'] = 'application/json';
|
|
776
|
-
if (this.configuration && this.configuration.
|
|
777
|
-
|
|
856
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
857
|
+
const token = this.configuration.accessToken;
|
|
858
|
+
const tokenString = yield token("authentik", []);
|
|
859
|
+
if (tokenString) {
|
|
860
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
861
|
+
}
|
|
778
862
|
}
|
|
779
863
|
const response = yield this.request({
|
|
780
864
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -805,8 +889,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
805
889
|
}
|
|
806
890
|
const queryParameters = {};
|
|
807
891
|
const headerParameters = {};
|
|
808
|
-
if (this.configuration && this.configuration.
|
|
809
|
-
|
|
892
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
893
|
+
const token = this.configuration.accessToken;
|
|
894
|
+
const tokenString = yield token("authentik", []);
|
|
895
|
+
if (tokenString) {
|
|
896
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
897
|
+
}
|
|
810
898
|
}
|
|
811
899
|
const response = yield this.request({
|
|
812
900
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -840,8 +928,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
840
928
|
const queryParameters = {};
|
|
841
929
|
const headerParameters = {};
|
|
842
930
|
headerParameters['Content-Type'] = 'application/json';
|
|
843
|
-
if (this.configuration && this.configuration.
|
|
844
|
-
|
|
931
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
932
|
+
const token = this.configuration.accessToken;
|
|
933
|
+
const tokenString = yield token("authentik", []);
|
|
934
|
+
if (tokenString) {
|
|
935
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
936
|
+
}
|
|
845
937
|
}
|
|
846
938
|
const response = yield this.request({
|
|
847
939
|
path: `/events/rules/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -872,8 +964,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
872
964
|
}
|
|
873
965
|
const queryParameters = {};
|
|
874
966
|
const headerParameters = {};
|
|
875
|
-
if (this.configuration && this.configuration.
|
|
876
|
-
|
|
967
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
968
|
+
const token = this.configuration.accessToken;
|
|
969
|
+
const tokenString = yield token("authentik", []);
|
|
970
|
+
if (tokenString) {
|
|
971
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
972
|
+
}
|
|
877
973
|
}
|
|
878
974
|
const response = yield this.request({
|
|
879
975
|
path: `/events/rules/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -921,8 +1017,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
921
1017
|
queryParameters['uid'] = requestParameters.uid;
|
|
922
1018
|
}
|
|
923
1019
|
const headerParameters = {};
|
|
924
|
-
if (this.configuration && this.configuration.
|
|
925
|
-
|
|
1020
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1021
|
+
const token = this.configuration.accessToken;
|
|
1022
|
+
const tokenString = yield token("authentik", []);
|
|
1023
|
+
if (tokenString) {
|
|
1024
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1025
|
+
}
|
|
926
1026
|
}
|
|
927
1027
|
const response = yield this.request({
|
|
928
1028
|
path: `/events/system_tasks/`,
|
|
@@ -952,8 +1052,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
952
1052
|
}
|
|
953
1053
|
const queryParameters = {};
|
|
954
1054
|
const headerParameters = {};
|
|
955
|
-
if (this.configuration && this.configuration.
|
|
956
|
-
|
|
1055
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1056
|
+
const token = this.configuration.accessToken;
|
|
1057
|
+
const tokenString = yield token("authentik", []);
|
|
1058
|
+
if (tokenString) {
|
|
1059
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1060
|
+
}
|
|
957
1061
|
}
|
|
958
1062
|
const response = yield this.request({
|
|
959
1063
|
path: `/events/system_tasks/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -983,8 +1087,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
983
1087
|
}
|
|
984
1088
|
const queryParameters = {};
|
|
985
1089
|
const headerParameters = {};
|
|
986
|
-
if (this.configuration && this.configuration.
|
|
987
|
-
|
|
1090
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1091
|
+
const token = this.configuration.accessToken;
|
|
1092
|
+
const tokenString = yield token("authentik", []);
|
|
1093
|
+
if (tokenString) {
|
|
1094
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1095
|
+
}
|
|
988
1096
|
}
|
|
989
1097
|
const response = yield this.request({
|
|
990
1098
|
path: `/events/system_tasks/{uuid}/run/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1014,8 +1122,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1014
1122
|
const queryParameters = {};
|
|
1015
1123
|
const headerParameters = {};
|
|
1016
1124
|
headerParameters['Content-Type'] = 'application/json';
|
|
1017
|
-
if (this.configuration && this.configuration.
|
|
1018
|
-
|
|
1125
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1126
|
+
const token = this.configuration.accessToken;
|
|
1127
|
+
const tokenString = yield token("authentik", []);
|
|
1128
|
+
if (tokenString) {
|
|
1129
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1130
|
+
}
|
|
1019
1131
|
}
|
|
1020
1132
|
const response = yield this.request({
|
|
1021
1133
|
path: `/events/transports/`,
|
|
@@ -1046,8 +1158,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1046
1158
|
}
|
|
1047
1159
|
const queryParameters = {};
|
|
1048
1160
|
const headerParameters = {};
|
|
1049
|
-
if (this.configuration && this.configuration.
|
|
1050
|
-
|
|
1161
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1162
|
+
const token = this.configuration.accessToken;
|
|
1163
|
+
const tokenString = yield token("authentik", []);
|
|
1164
|
+
if (tokenString) {
|
|
1165
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1166
|
+
}
|
|
1051
1167
|
}
|
|
1052
1168
|
const response = yield this.request({
|
|
1053
1169
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1097,8 +1213,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1097
1213
|
queryParameters['webhook_url'] = requestParameters.webhookUrl;
|
|
1098
1214
|
}
|
|
1099
1215
|
const headerParameters = {};
|
|
1100
|
-
if (this.configuration && this.configuration.
|
|
1101
|
-
|
|
1216
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1217
|
+
const token = this.configuration.accessToken;
|
|
1218
|
+
const tokenString = yield token("authentik", []);
|
|
1219
|
+
if (tokenString) {
|
|
1220
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1221
|
+
}
|
|
1102
1222
|
}
|
|
1103
1223
|
const response = yield this.request({
|
|
1104
1224
|
path: `/events/transports/`,
|
|
@@ -1129,8 +1249,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1129
1249
|
const queryParameters = {};
|
|
1130
1250
|
const headerParameters = {};
|
|
1131
1251
|
headerParameters['Content-Type'] = 'application/json';
|
|
1132
|
-
if (this.configuration && this.configuration.
|
|
1133
|
-
|
|
1252
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1253
|
+
const token = this.configuration.accessToken;
|
|
1254
|
+
const tokenString = yield token("authentik", []);
|
|
1255
|
+
if (tokenString) {
|
|
1256
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1257
|
+
}
|
|
1134
1258
|
}
|
|
1135
1259
|
const response = yield this.request({
|
|
1136
1260
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1161,8 +1285,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1161
1285
|
}
|
|
1162
1286
|
const queryParameters = {};
|
|
1163
1287
|
const headerParameters = {};
|
|
1164
|
-
if (this.configuration && this.configuration.
|
|
1165
|
-
|
|
1288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1289
|
+
const token = this.configuration.accessToken;
|
|
1290
|
+
const tokenString = yield token("authentik", []);
|
|
1291
|
+
if (tokenString) {
|
|
1292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1293
|
+
}
|
|
1166
1294
|
}
|
|
1167
1295
|
const response = yield this.request({
|
|
1168
1296
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1192,8 +1320,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1192
1320
|
}
|
|
1193
1321
|
const queryParameters = {};
|
|
1194
1322
|
const headerParameters = {};
|
|
1195
|
-
if (this.configuration && this.configuration.
|
|
1196
|
-
|
|
1323
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1324
|
+
const token = this.configuration.accessToken;
|
|
1325
|
+
const tokenString = yield token("authentik", []);
|
|
1326
|
+
if (tokenString) {
|
|
1327
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1328
|
+
}
|
|
1197
1329
|
}
|
|
1198
1330
|
const response = yield this.request({
|
|
1199
1331
|
path: `/events/transports/{uuid}/test/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1227,8 +1359,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1227
1359
|
const queryParameters = {};
|
|
1228
1360
|
const headerParameters = {};
|
|
1229
1361
|
headerParameters['Content-Type'] = 'application/json';
|
|
1230
|
-
if (this.configuration && this.configuration.
|
|
1231
|
-
|
|
1362
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1363
|
+
const token = this.configuration.accessToken;
|
|
1364
|
+
const tokenString = yield token("authentik", []);
|
|
1365
|
+
if (tokenString) {
|
|
1366
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1367
|
+
}
|
|
1232
1368
|
}
|
|
1233
1369
|
const response = yield this.request({
|
|
1234
1370
|
path: `/events/transports/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -1259,8 +1395,12 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1259
1395
|
}
|
|
1260
1396
|
const queryParameters = {};
|
|
1261
1397
|
const headerParameters = {};
|
|
1262
|
-
if (this.configuration && this.configuration.
|
|
1263
|
-
|
|
1398
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1399
|
+
const token = this.configuration.accessToken;
|
|
1400
|
+
const tokenString = yield token("authentik", []);
|
|
1401
|
+
if (tokenString) {
|
|
1402
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1403
|
+
}
|
|
1264
1404
|
}
|
|
1265
1405
|
const response = yield this.request({
|
|
1266
1406
|
path: `/events/transports/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|