@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.
Files changed (58) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +70 -30
  41. package/src/apis/AuthenticatorsApi.ts +434 -186
  42. package/src/apis/CoreApi.ts +434 -186
  43. package/src/apis/CryptoApi.ts +70 -30
  44. package/src/apis/EnterpriseApi.ts +70 -30
  45. package/src/apis/EventsApi.ts +245 -105
  46. package/src/apis/FlowsApi.ts +175 -75
  47. package/src/apis/ManagedApi.ts +63 -27
  48. package/src/apis/Oauth2Api.ts +84 -36
  49. package/src/apis/OutpostsApi.ts +245 -105
  50. package/src/apis/PoliciesApi.ts +427 -183
  51. package/src/apis/PropertymappingsApi.ts +336 -144
  52. package/src/apis/ProvidersApi.ts +420 -180
  53. package/src/apis/RacApi.ts +91 -39
  54. package/src/apis/RbacApi.ts +119 -51
  55. package/src/apis/RootApi.ts +7 -3
  56. package/src/apis/SchemaApi.ts +7 -3
  57. package/src/apis/SourcesApi.ts +483 -207
  58. package/src/apis/StagesApi.ts +1169 -501
@@ -36,8 +36,12 @@ class PoliciesApi 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.apiKey) {
40
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/policies/all/cache_clear/`,
@@ -63,8 +67,12 @@ class PoliciesApi extends runtime.BaseAPI {
63
67
  return __awaiter(this, void 0, void 0, function* () {
64
68
  const queryParameters = {};
65
69
  const headerParameters = {};
66
- if (this.configuration && this.configuration.apiKey) {
67
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
70
+ if (this.configuration && this.configuration.accessToken) {
71
+ const token = this.configuration.accessToken;
72
+ const tokenString = yield token("authentik", []);
73
+ if (tokenString) {
74
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
75
+ }
68
76
  }
69
77
  const response = yield this.request({
70
78
  path: `/policies/all/cache_info/`,
@@ -94,8 +102,12 @@ class PoliciesApi extends runtime.BaseAPI {
94
102
  }
95
103
  const queryParameters = {};
96
104
  const headerParameters = {};
97
- if (this.configuration && this.configuration.apiKey) {
98
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
105
+ if (this.configuration && this.configuration.accessToken) {
106
+ const token = this.configuration.accessToken;
107
+ const tokenString = yield token("authentik", []);
108
+ if (tokenString) {
109
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
110
+ }
99
111
  }
100
112
  const response = yield this.request({
101
113
  path: `/policies/all/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -139,8 +151,12 @@ class PoliciesApi extends runtime.BaseAPI {
139
151
  queryParameters['search'] = requestParameters.search;
140
152
  }
141
153
  const headerParameters = {};
142
- if (this.configuration && this.configuration.apiKey) {
143
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
154
+ if (this.configuration && this.configuration.accessToken) {
155
+ const token = this.configuration.accessToken;
156
+ const tokenString = yield token("authentik", []);
157
+ if (tokenString) {
158
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
159
+ }
144
160
  }
145
161
  const response = yield this.request({
146
162
  path: `/policies/all/`,
@@ -170,8 +186,12 @@ class PoliciesApi extends runtime.BaseAPI {
170
186
  }
171
187
  const queryParameters = {};
172
188
  const headerParameters = {};
173
- if (this.configuration && this.configuration.apiKey) {
174
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
189
+ if (this.configuration && this.configuration.accessToken) {
190
+ const token = this.configuration.accessToken;
191
+ const tokenString = yield token("authentik", []);
192
+ if (tokenString) {
193
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
194
+ }
175
195
  }
176
196
  const response = yield this.request({
177
197
  path: `/policies/all/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -205,8 +225,12 @@ class PoliciesApi extends runtime.BaseAPI {
205
225
  const queryParameters = {};
206
226
  const headerParameters = {};
207
227
  headerParameters['Content-Type'] = 'application/json';
208
- if (this.configuration && this.configuration.apiKey) {
209
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
228
+ if (this.configuration && this.configuration.accessToken) {
229
+ const token = this.configuration.accessToken;
230
+ const tokenString = yield token("authentik", []);
231
+ if (tokenString) {
232
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
233
+ }
210
234
  }
211
235
  const response = yield this.request({
212
236
  path: `/policies/all/{policy_uuid}/test/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -234,8 +258,12 @@ class PoliciesApi extends runtime.BaseAPI {
234
258
  return __awaiter(this, void 0, void 0, function* () {
235
259
  const queryParameters = {};
236
260
  const headerParameters = {};
237
- if (this.configuration && this.configuration.apiKey) {
238
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
261
+ if (this.configuration && this.configuration.accessToken) {
262
+ const token = this.configuration.accessToken;
263
+ const tokenString = yield token("authentik", []);
264
+ if (tokenString) {
265
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
266
+ }
239
267
  }
240
268
  const response = yield this.request({
241
269
  path: `/policies/all/types/`,
@@ -265,8 +293,12 @@ class PoliciesApi extends runtime.BaseAPI {
265
293
  }
266
294
  const queryParameters = {};
267
295
  const headerParameters = {};
268
- if (this.configuration && this.configuration.apiKey) {
269
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
296
+ if (this.configuration && this.configuration.accessToken) {
297
+ const token = this.configuration.accessToken;
298
+ const tokenString = yield token("authentik", []);
299
+ if (tokenString) {
300
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
301
+ }
270
302
  }
271
303
  const response = yield this.request({
272
304
  path: `/policies/all/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -297,8 +329,12 @@ class PoliciesApi extends runtime.BaseAPI {
297
329
  const queryParameters = {};
298
330
  const headerParameters = {};
299
331
  headerParameters['Content-Type'] = 'application/json';
300
- if (this.configuration && this.configuration.apiKey) {
301
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
332
+ if (this.configuration && this.configuration.accessToken) {
333
+ const token = this.configuration.accessToken;
334
+ const tokenString = yield token("authentik", []);
335
+ if (tokenString) {
336
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
337
+ }
302
338
  }
303
339
  const response = yield this.request({
304
340
  path: `/policies/bindings/`,
@@ -329,8 +365,12 @@ class PoliciesApi extends runtime.BaseAPI {
329
365
  }
330
366
  const queryParameters = {};
331
367
  const headerParameters = {};
332
- if (this.configuration && this.configuration.apiKey) {
333
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
368
+ if (this.configuration && this.configuration.accessToken) {
369
+ const token = this.configuration.accessToken;
370
+ const tokenString = yield token("authentik", []);
371
+ if (tokenString) {
372
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
373
+ }
334
374
  }
335
375
  const response = yield this.request({
336
376
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -389,8 +429,12 @@ class PoliciesApi extends runtime.BaseAPI {
389
429
  queryParameters['timeout'] = requestParameters.timeout;
390
430
  }
391
431
  const headerParameters = {};
392
- if (this.configuration && this.configuration.apiKey) {
393
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
432
+ if (this.configuration && this.configuration.accessToken) {
433
+ const token = this.configuration.accessToken;
434
+ const tokenString = yield token("authentik", []);
435
+ if (tokenString) {
436
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
437
+ }
394
438
  }
395
439
  const response = yield this.request({
396
440
  path: `/policies/bindings/`,
@@ -421,8 +465,12 @@ class PoliciesApi extends runtime.BaseAPI {
421
465
  const queryParameters = {};
422
466
  const headerParameters = {};
423
467
  headerParameters['Content-Type'] = 'application/json';
424
- if (this.configuration && this.configuration.apiKey) {
425
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
468
+ if (this.configuration && this.configuration.accessToken) {
469
+ const token = this.configuration.accessToken;
470
+ const tokenString = yield token("authentik", []);
471
+ if (tokenString) {
472
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
473
+ }
426
474
  }
427
475
  const response = yield this.request({
428
476
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -453,8 +501,12 @@ class PoliciesApi extends runtime.BaseAPI {
453
501
  }
454
502
  const queryParameters = {};
455
503
  const headerParameters = {};
456
- if (this.configuration && this.configuration.apiKey) {
457
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
504
+ if (this.configuration && this.configuration.accessToken) {
505
+ const token = this.configuration.accessToken;
506
+ const tokenString = yield token("authentik", []);
507
+ if (tokenString) {
508
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
509
+ }
458
510
  }
459
511
  const response = yield this.request({
460
512
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -488,8 +540,12 @@ class PoliciesApi extends runtime.BaseAPI {
488
540
  const queryParameters = {};
489
541
  const headerParameters = {};
490
542
  headerParameters['Content-Type'] = 'application/json';
491
- if (this.configuration && this.configuration.apiKey) {
492
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
543
+ if (this.configuration && this.configuration.accessToken) {
544
+ const token = this.configuration.accessToken;
545
+ const tokenString = yield token("authentik", []);
546
+ if (tokenString) {
547
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
548
+ }
493
549
  }
494
550
  const response = yield this.request({
495
551
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -520,8 +576,12 @@ class PoliciesApi extends runtime.BaseAPI {
520
576
  }
521
577
  const queryParameters = {};
522
578
  const headerParameters = {};
523
- if (this.configuration && this.configuration.apiKey) {
524
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
579
+ if (this.configuration && this.configuration.accessToken) {
580
+ const token = this.configuration.accessToken;
581
+ const tokenString = yield token("authentik", []);
582
+ if (tokenString) {
583
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
584
+ }
525
585
  }
526
586
  const response = yield this.request({
527
587
  path: `/policies/bindings/{policy_binding_uuid}/used_by/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -552,8 +612,12 @@ class PoliciesApi extends runtime.BaseAPI {
552
612
  const queryParameters = {};
553
613
  const headerParameters = {};
554
614
  headerParameters['Content-Type'] = 'application/json';
555
- if (this.configuration && this.configuration.apiKey) {
556
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
615
+ if (this.configuration && this.configuration.accessToken) {
616
+ const token = this.configuration.accessToken;
617
+ const tokenString = yield token("authentik", []);
618
+ if (tokenString) {
619
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
620
+ }
557
621
  }
558
622
  const response = yield this.request({
559
623
  path: `/policies/dummy/`,
@@ -584,8 +648,12 @@ class PoliciesApi extends runtime.BaseAPI {
584
648
  }
585
649
  const queryParameters = {};
586
650
  const headerParameters = {};
587
- if (this.configuration && this.configuration.apiKey) {
588
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
651
+ if (this.configuration && this.configuration.accessToken) {
652
+ const token = this.configuration.accessToken;
653
+ const tokenString = yield token("authentik", []);
654
+ if (tokenString) {
655
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
656
+ }
589
657
  }
590
658
  const response = yield this.request({
591
659
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -647,8 +715,12 @@ class PoliciesApi extends runtime.BaseAPI {
647
715
  queryParameters['wait_min'] = requestParameters.waitMin;
648
716
  }
649
717
  const headerParameters = {};
650
- if (this.configuration && this.configuration.apiKey) {
651
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
718
+ if (this.configuration && this.configuration.accessToken) {
719
+ const token = this.configuration.accessToken;
720
+ const tokenString = yield token("authentik", []);
721
+ if (tokenString) {
722
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
723
+ }
652
724
  }
653
725
  const response = yield this.request({
654
726
  path: `/policies/dummy/`,
@@ -679,8 +751,12 @@ class PoliciesApi extends runtime.BaseAPI {
679
751
  const queryParameters = {};
680
752
  const headerParameters = {};
681
753
  headerParameters['Content-Type'] = 'application/json';
682
- if (this.configuration && this.configuration.apiKey) {
683
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
754
+ if (this.configuration && this.configuration.accessToken) {
755
+ const token = this.configuration.accessToken;
756
+ const tokenString = yield token("authentik", []);
757
+ if (tokenString) {
758
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
759
+ }
684
760
  }
685
761
  const response = yield this.request({
686
762
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -711,8 +787,12 @@ class PoliciesApi extends runtime.BaseAPI {
711
787
  }
712
788
  const queryParameters = {};
713
789
  const headerParameters = {};
714
- if (this.configuration && this.configuration.apiKey) {
715
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
790
+ if (this.configuration && this.configuration.accessToken) {
791
+ const token = this.configuration.accessToken;
792
+ const tokenString = yield token("authentik", []);
793
+ if (tokenString) {
794
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
795
+ }
716
796
  }
717
797
  const response = yield this.request({
718
798
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -746,8 +826,12 @@ class PoliciesApi extends runtime.BaseAPI {
746
826
  const queryParameters = {};
747
827
  const headerParameters = {};
748
828
  headerParameters['Content-Type'] = 'application/json';
749
- if (this.configuration && this.configuration.apiKey) {
750
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
829
+ if (this.configuration && this.configuration.accessToken) {
830
+ const token = this.configuration.accessToken;
831
+ const tokenString = yield token("authentik", []);
832
+ if (tokenString) {
833
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
834
+ }
751
835
  }
752
836
  const response = yield this.request({
753
837
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -778,8 +862,12 @@ class PoliciesApi extends runtime.BaseAPI {
778
862
  }
779
863
  const queryParameters = {};
780
864
  const headerParameters = {};
781
- if (this.configuration && this.configuration.apiKey) {
782
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
865
+ if (this.configuration && this.configuration.accessToken) {
866
+ const token = this.configuration.accessToken;
867
+ const tokenString = yield token("authentik", []);
868
+ if (tokenString) {
869
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
870
+ }
783
871
  }
784
872
  const response = yield this.request({
785
873
  path: `/policies/dummy/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -810,8 +898,12 @@ class PoliciesApi extends runtime.BaseAPI {
810
898
  const queryParameters = {};
811
899
  const headerParameters = {};
812
900
  headerParameters['Content-Type'] = 'application/json';
813
- if (this.configuration && this.configuration.apiKey) {
814
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
901
+ if (this.configuration && this.configuration.accessToken) {
902
+ const token = this.configuration.accessToken;
903
+ const tokenString = yield token("authentik", []);
904
+ if (tokenString) {
905
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
906
+ }
815
907
  }
816
908
  const response = yield this.request({
817
909
  path: `/policies/event_matcher/`,
@@ -842,8 +934,12 @@ class PoliciesApi extends runtime.BaseAPI {
842
934
  }
843
935
  const queryParameters = {};
844
936
  const headerParameters = {};
845
- if (this.configuration && this.configuration.apiKey) {
846
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
937
+ if (this.configuration && this.configuration.accessToken) {
938
+ const token = this.configuration.accessToken;
939
+ const tokenString = yield token("authentik", []);
940
+ if (tokenString) {
941
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
942
+ }
847
943
  }
848
944
  const response = yield this.request({
849
945
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -908,8 +1004,12 @@ class PoliciesApi extends runtime.BaseAPI {
908
1004
  queryParameters['search'] = requestParameters.search;
909
1005
  }
910
1006
  const headerParameters = {};
911
- if (this.configuration && this.configuration.apiKey) {
912
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1007
+ if (this.configuration && this.configuration.accessToken) {
1008
+ const token = this.configuration.accessToken;
1009
+ const tokenString = yield token("authentik", []);
1010
+ if (tokenString) {
1011
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1012
+ }
913
1013
  }
914
1014
  const response = yield this.request({
915
1015
  path: `/policies/event_matcher/`,
@@ -940,8 +1040,12 @@ class PoliciesApi extends runtime.BaseAPI {
940
1040
  const queryParameters = {};
941
1041
  const headerParameters = {};
942
1042
  headerParameters['Content-Type'] = 'application/json';
943
- if (this.configuration && this.configuration.apiKey) {
944
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1043
+ if (this.configuration && this.configuration.accessToken) {
1044
+ const token = this.configuration.accessToken;
1045
+ const tokenString = yield token("authentik", []);
1046
+ if (tokenString) {
1047
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1048
+ }
945
1049
  }
946
1050
  const response = yield this.request({
947
1051
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -972,8 +1076,12 @@ class PoliciesApi extends runtime.BaseAPI {
972
1076
  }
973
1077
  const queryParameters = {};
974
1078
  const headerParameters = {};
975
- if (this.configuration && this.configuration.apiKey) {
976
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1079
+ if (this.configuration && this.configuration.accessToken) {
1080
+ const token = this.configuration.accessToken;
1081
+ const tokenString = yield token("authentik", []);
1082
+ if (tokenString) {
1083
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1084
+ }
977
1085
  }
978
1086
  const response = yield this.request({
979
1087
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1007,8 +1115,12 @@ class PoliciesApi extends runtime.BaseAPI {
1007
1115
  const queryParameters = {};
1008
1116
  const headerParameters = {};
1009
1117
  headerParameters['Content-Type'] = 'application/json';
1010
- if (this.configuration && this.configuration.apiKey) {
1011
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1118
+ if (this.configuration && this.configuration.accessToken) {
1119
+ const token = this.configuration.accessToken;
1120
+ const tokenString = yield token("authentik", []);
1121
+ if (tokenString) {
1122
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1123
+ }
1012
1124
  }
1013
1125
  const response = yield this.request({
1014
1126
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1039,8 +1151,12 @@ class PoliciesApi extends runtime.BaseAPI {
1039
1151
  }
1040
1152
  const queryParameters = {};
1041
1153
  const headerParameters = {};
1042
- if (this.configuration && this.configuration.apiKey) {
1043
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1154
+ if (this.configuration && this.configuration.accessToken) {
1155
+ const token = this.configuration.accessToken;
1156
+ const tokenString = yield token("authentik", []);
1157
+ if (tokenString) {
1158
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1159
+ }
1044
1160
  }
1045
1161
  const response = yield this.request({
1046
1162
  path: `/policies/event_matcher/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1071,8 +1187,12 @@ class PoliciesApi extends runtime.BaseAPI {
1071
1187
  const queryParameters = {};
1072
1188
  const headerParameters = {};
1073
1189
  headerParameters['Content-Type'] = 'application/json';
1074
- if (this.configuration && this.configuration.apiKey) {
1075
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1190
+ if (this.configuration && this.configuration.accessToken) {
1191
+ const token = this.configuration.accessToken;
1192
+ const tokenString = yield token("authentik", []);
1193
+ if (tokenString) {
1194
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1195
+ }
1076
1196
  }
1077
1197
  const response = yield this.request({
1078
1198
  path: `/policies/expression/`,
@@ -1103,8 +1223,12 @@ class PoliciesApi extends runtime.BaseAPI {
1103
1223
  }
1104
1224
  const queryParameters = {};
1105
1225
  const headerParameters = {};
1106
- if (this.configuration && this.configuration.apiKey) {
1107
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1226
+ if (this.configuration && this.configuration.accessToken) {
1227
+ const token = this.configuration.accessToken;
1228
+ const tokenString = yield token("authentik", []);
1229
+ if (tokenString) {
1230
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1231
+ }
1108
1232
  }
1109
1233
  const response = yield this.request({
1110
1234
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1160,8 +1284,12 @@ class PoliciesApi extends runtime.BaseAPI {
1160
1284
  queryParameters['search'] = requestParameters.search;
1161
1285
  }
1162
1286
  const headerParameters = {};
1163
- if (this.configuration && this.configuration.apiKey) {
1164
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1287
+ if (this.configuration && this.configuration.accessToken) {
1288
+ const token = this.configuration.accessToken;
1289
+ const tokenString = yield token("authentik", []);
1290
+ if (tokenString) {
1291
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1292
+ }
1165
1293
  }
1166
1294
  const response = yield this.request({
1167
1295
  path: `/policies/expression/`,
@@ -1192,8 +1320,12 @@ class PoliciesApi extends runtime.BaseAPI {
1192
1320
  const queryParameters = {};
1193
1321
  const headerParameters = {};
1194
1322
  headerParameters['Content-Type'] = 'application/json';
1195
- if (this.configuration && this.configuration.apiKey) {
1196
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1224,8 +1356,12 @@ class PoliciesApi extends runtime.BaseAPI {
1224
1356
  }
1225
1357
  const queryParameters = {};
1226
1358
  const headerParameters = {};
1227
- if (this.configuration && this.configuration.apiKey) {
1228
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1359
+ if (this.configuration && this.configuration.accessToken) {
1360
+ const token = this.configuration.accessToken;
1361
+ const tokenString = yield token("authentik", []);
1362
+ if (tokenString) {
1363
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1364
+ }
1229
1365
  }
1230
1366
  const response = yield this.request({
1231
1367
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1259,8 +1395,12 @@ class PoliciesApi extends runtime.BaseAPI {
1259
1395
  const queryParameters = {};
1260
1396
  const headerParameters = {};
1261
1397
  headerParameters['Content-Type'] = 'application/json';
1262
- if (this.configuration && this.configuration.apiKey) {
1263
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1291,8 +1431,12 @@ class PoliciesApi extends runtime.BaseAPI {
1291
1431
  }
1292
1432
  const queryParameters = {};
1293
1433
  const headerParameters = {};
1294
- if (this.configuration && this.configuration.apiKey) {
1295
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1434
+ if (this.configuration && this.configuration.accessToken) {
1435
+ const token = this.configuration.accessToken;
1436
+ const tokenString = yield token("authentik", []);
1437
+ if (tokenString) {
1438
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1439
+ }
1296
1440
  }
1297
1441
  const response = yield this.request({
1298
1442
  path: `/policies/expression/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1323,8 +1467,12 @@ class PoliciesApi extends runtime.BaseAPI {
1323
1467
  const queryParameters = {};
1324
1468
  const headerParameters = {};
1325
1469
  headerParameters['Content-Type'] = 'application/json';
1326
- if (this.configuration && this.configuration.apiKey) {
1327
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1470
+ if (this.configuration && this.configuration.accessToken) {
1471
+ const token = this.configuration.accessToken;
1472
+ const tokenString = yield token("authentik", []);
1473
+ if (tokenString) {
1474
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1475
+ }
1328
1476
  }
1329
1477
  const response = yield this.request({
1330
1478
  path: `/policies/password/`,
@@ -1355,8 +1503,12 @@ class PoliciesApi extends runtime.BaseAPI {
1355
1503
  }
1356
1504
  const queryParameters = {};
1357
1505
  const headerParameters = {};
1358
- if (this.configuration && this.configuration.apiKey) {
1359
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1506
+ if (this.configuration && this.configuration.accessToken) {
1507
+ const token = this.configuration.accessToken;
1508
+ const tokenString = yield token("authentik", []);
1509
+ if (tokenString) {
1510
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1511
+ }
1360
1512
  }
1361
1513
  const response = yield this.request({
1362
1514
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1386,8 +1538,12 @@ class PoliciesApi extends runtime.BaseAPI {
1386
1538
  const queryParameters = {};
1387
1539
  const headerParameters = {};
1388
1540
  headerParameters['Content-Type'] = 'application/json';
1389
- if (this.configuration && this.configuration.apiKey) {
1390
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1541
+ if (this.configuration && this.configuration.accessToken) {
1542
+ const token = this.configuration.accessToken;
1543
+ const tokenString = yield token("authentik", []);
1544
+ if (tokenString) {
1545
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1546
+ }
1391
1547
  }
1392
1548
  const response = yield this.request({
1393
1549
  path: `/policies/password_expiry/`,
@@ -1418,8 +1574,12 @@ class PoliciesApi extends runtime.BaseAPI {
1418
1574
  }
1419
1575
  const queryParameters = {};
1420
1576
  const headerParameters = {};
1421
- if (this.configuration && this.configuration.apiKey) {
1422
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1577
+ if (this.configuration && this.configuration.accessToken) {
1578
+ const token = this.configuration.accessToken;
1579
+ const tokenString = yield token("authentik", []);
1580
+ if (tokenString) {
1581
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1582
+ }
1423
1583
  }
1424
1584
  const response = yield this.request({
1425
1585
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1478,8 +1638,12 @@ class PoliciesApi extends runtime.BaseAPI {
1478
1638
  queryParameters['search'] = requestParameters.search;
1479
1639
  }
1480
1640
  const headerParameters = {};
1481
- if (this.configuration && this.configuration.apiKey) {
1482
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1641
+ if (this.configuration && this.configuration.accessToken) {
1642
+ const token = this.configuration.accessToken;
1643
+ const tokenString = yield token("authentik", []);
1644
+ if (tokenString) {
1645
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1646
+ }
1483
1647
  }
1484
1648
  const response = yield this.request({
1485
1649
  path: `/policies/password_expiry/`,
@@ -1510,8 +1674,12 @@ class PoliciesApi extends runtime.BaseAPI {
1510
1674
  const queryParameters = {};
1511
1675
  const headerParameters = {};
1512
1676
  headerParameters['Content-Type'] = 'application/json';
1513
- if (this.configuration && this.configuration.apiKey) {
1514
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1677
+ if (this.configuration && this.configuration.accessToken) {
1678
+ const token = this.configuration.accessToken;
1679
+ const tokenString = yield token("authentik", []);
1680
+ if (tokenString) {
1681
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1682
+ }
1515
1683
  }
1516
1684
  const response = yield this.request({
1517
1685
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1542,8 +1710,12 @@ class PoliciesApi extends runtime.BaseAPI {
1542
1710
  }
1543
1711
  const queryParameters = {};
1544
1712
  const headerParameters = {};
1545
- if (this.configuration && this.configuration.apiKey) {
1546
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1713
+ if (this.configuration && this.configuration.accessToken) {
1714
+ const token = this.configuration.accessToken;
1715
+ const tokenString = yield token("authentik", []);
1716
+ if (tokenString) {
1717
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1718
+ }
1547
1719
  }
1548
1720
  const response = yield this.request({
1549
1721
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1577,8 +1749,12 @@ class PoliciesApi extends runtime.BaseAPI {
1577
1749
  const queryParameters = {};
1578
1750
  const headerParameters = {};
1579
1751
  headerParameters['Content-Type'] = 'application/json';
1580
- if (this.configuration && this.configuration.apiKey) {
1581
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1752
+ if (this.configuration && this.configuration.accessToken) {
1753
+ const token = this.configuration.accessToken;
1754
+ const tokenString = yield token("authentik", []);
1755
+ if (tokenString) {
1756
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1757
+ }
1582
1758
  }
1583
1759
  const response = yield this.request({
1584
1760
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1609,8 +1785,12 @@ class PoliciesApi extends runtime.BaseAPI {
1609
1785
  }
1610
1786
  const queryParameters = {};
1611
1787
  const headerParameters = {};
1612
- if (this.configuration && this.configuration.apiKey) {
1613
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1788
+ if (this.configuration && this.configuration.accessToken) {
1789
+ const token = this.configuration.accessToken;
1790
+ const tokenString = yield token("authentik", []);
1791
+ if (tokenString) {
1792
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1793
+ }
1614
1794
  }
1615
1795
  const response = yield this.request({
1616
1796
  path: `/policies/password_expiry/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1703,8 +1883,12 @@ class PoliciesApi extends runtime.BaseAPI {
1703
1883
  queryParameters['zxcvbn_score_threshold'] = requestParameters.zxcvbnScoreThreshold;
1704
1884
  }
1705
1885
  const headerParameters = {};
1706
- if (this.configuration && this.configuration.apiKey) {
1707
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1886
+ if (this.configuration && this.configuration.accessToken) {
1887
+ const token = this.configuration.accessToken;
1888
+ const tokenString = yield token("authentik", []);
1889
+ if (tokenString) {
1890
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1891
+ }
1708
1892
  }
1709
1893
  const response = yield this.request({
1710
1894
  path: `/policies/password/`,
@@ -1735,8 +1919,12 @@ class PoliciesApi extends runtime.BaseAPI {
1735
1919
  const queryParameters = {};
1736
1920
  const headerParameters = {};
1737
1921
  headerParameters['Content-Type'] = 'application/json';
1738
- if (this.configuration && this.configuration.apiKey) {
1739
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1922
+ if (this.configuration && this.configuration.accessToken) {
1923
+ const token = this.configuration.accessToken;
1924
+ const tokenString = yield token("authentik", []);
1925
+ if (tokenString) {
1926
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1927
+ }
1740
1928
  }
1741
1929
  const response = yield this.request({
1742
1930
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1767,8 +1955,12 @@ class PoliciesApi extends runtime.BaseAPI {
1767
1955
  }
1768
1956
  const queryParameters = {};
1769
1957
  const headerParameters = {};
1770
- if (this.configuration && this.configuration.apiKey) {
1771
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1958
+ if (this.configuration && this.configuration.accessToken) {
1959
+ const token = this.configuration.accessToken;
1960
+ const tokenString = yield token("authentik", []);
1961
+ if (tokenString) {
1962
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1963
+ }
1772
1964
  }
1773
1965
  const response = yield this.request({
1774
1966
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1802,8 +1994,12 @@ class PoliciesApi extends runtime.BaseAPI {
1802
1994
  const queryParameters = {};
1803
1995
  const headerParameters = {};
1804
1996
  headerParameters['Content-Type'] = 'application/json';
1805
- if (this.configuration && this.configuration.apiKey) {
1806
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1997
+ if (this.configuration && this.configuration.accessToken) {
1998
+ const token = this.configuration.accessToken;
1999
+ const tokenString = yield token("authentik", []);
2000
+ if (tokenString) {
2001
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2002
+ }
1807
2003
  }
1808
2004
  const response = yield this.request({
1809
2005
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1834,8 +2030,12 @@ class PoliciesApi extends runtime.BaseAPI {
1834
2030
  }
1835
2031
  const queryParameters = {};
1836
2032
  const headerParameters = {};
1837
- if (this.configuration && this.configuration.apiKey) {
1838
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2033
+ if (this.configuration && this.configuration.accessToken) {
2034
+ const token = this.configuration.accessToken;
2035
+ const tokenString = yield token("authentik", []);
2036
+ if (tokenString) {
2037
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2038
+ }
1839
2039
  }
1840
2040
  const response = yield this.request({
1841
2041
  path: `/policies/password/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1866,8 +2066,12 @@ class PoliciesApi extends runtime.BaseAPI {
1866
2066
  const queryParameters = {};
1867
2067
  const headerParameters = {};
1868
2068
  headerParameters['Content-Type'] = 'application/json';
1869
- if (this.configuration && this.configuration.apiKey) {
1870
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2069
+ if (this.configuration && this.configuration.accessToken) {
2070
+ const token = this.configuration.accessToken;
2071
+ const tokenString = yield token("authentik", []);
2072
+ if (tokenString) {
2073
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2074
+ }
1871
2075
  }
1872
2076
  const response = yield this.request({
1873
2077
  path: `/policies/reputation/`,
@@ -1898,8 +2102,12 @@ class PoliciesApi extends runtime.BaseAPI {
1898
2102
  }
1899
2103
  const queryParameters = {};
1900
2104
  const headerParameters = {};
1901
- if (this.configuration && this.configuration.apiKey) {
1902
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2105
+ if (this.configuration && this.configuration.accessToken) {
2106
+ const token = this.configuration.accessToken;
2107
+ const tokenString = yield token("authentik", []);
2108
+ if (tokenString) {
2109
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2110
+ }
1903
2111
  }
1904
2112
  const response = yield this.request({
1905
2113
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1961,8 +2169,12 @@ class PoliciesApi extends runtime.BaseAPI {
1961
2169
  queryParameters['threshold'] = requestParameters.threshold;
1962
2170
  }
1963
2171
  const headerParameters = {};
1964
- if (this.configuration && this.configuration.apiKey) {
1965
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2172
+ if (this.configuration && this.configuration.accessToken) {
2173
+ const token = this.configuration.accessToken;
2174
+ const tokenString = yield token("authentik", []);
2175
+ if (tokenString) {
2176
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2177
+ }
1966
2178
  }
1967
2179
  const response = yield this.request({
1968
2180
  path: `/policies/reputation/`,
@@ -1993,8 +2205,12 @@ class PoliciesApi extends runtime.BaseAPI {
1993
2205
  const queryParameters = {};
1994
2206
  const headerParameters = {};
1995
2207
  headerParameters['Content-Type'] = 'application/json';
1996
- if (this.configuration && this.configuration.apiKey) {
1997
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2208
+ if (this.configuration && this.configuration.accessToken) {
2209
+ const token = this.configuration.accessToken;
2210
+ const tokenString = yield token("authentik", []);
2211
+ if (tokenString) {
2212
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2213
+ }
1998
2214
  }
1999
2215
  const response = yield this.request({
2000
2216
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -2025,8 +2241,12 @@ class PoliciesApi extends runtime.BaseAPI {
2025
2241
  }
2026
2242
  const queryParameters = {};
2027
2243
  const headerParameters = {};
2028
- if (this.configuration && this.configuration.apiKey) {
2029
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2244
+ if (this.configuration && this.configuration.accessToken) {
2245
+ const token = this.configuration.accessToken;
2246
+ const tokenString = yield token("authentik", []);
2247
+ if (tokenString) {
2248
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2249
+ }
2030
2250
  }
2031
2251
  const response = yield this.request({
2032
2252
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -2056,8 +2276,12 @@ class PoliciesApi extends runtime.BaseAPI {
2056
2276
  }
2057
2277
  const queryParameters = {};
2058
2278
  const headerParameters = {};
2059
- if (this.configuration && this.configuration.apiKey) {
2060
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2279
+ if (this.configuration && this.configuration.accessToken) {
2280
+ const token = this.configuration.accessToken;
2281
+ const tokenString = yield token("authentik", []);
2282
+ if (tokenString) {
2283
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2284
+ }
2061
2285
  }
2062
2286
  const response = yield this.request({
2063
2287
  path: `/policies/reputation/scores/{reputation_uuid}/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
@@ -2104,8 +2328,12 @@ class PoliciesApi extends runtime.BaseAPI {
2104
2328
  queryParameters['search'] = requestParameters.search;
2105
2329
  }
2106
2330
  const headerParameters = {};
2107
- if (this.configuration && this.configuration.apiKey) {
2108
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2331
+ if (this.configuration && this.configuration.accessToken) {
2332
+ const token = this.configuration.accessToken;
2333
+ const tokenString = yield token("authentik", []);
2334
+ if (tokenString) {
2335
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2336
+ }
2109
2337
  }
2110
2338
  const response = yield this.request({
2111
2339
  path: `/policies/reputation/scores/`,
@@ -2135,8 +2363,12 @@ class PoliciesApi extends runtime.BaseAPI {
2135
2363
  }
2136
2364
  const queryParameters = {};
2137
2365
  const headerParameters = {};
2138
- if (this.configuration && this.configuration.apiKey) {
2139
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2366
+ if (this.configuration && this.configuration.accessToken) {
2367
+ const token = this.configuration.accessToken;
2368
+ const tokenString = yield token("authentik", []);
2369
+ if (tokenString) {
2370
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2371
+ }
2140
2372
  }
2141
2373
  const response = yield this.request({
2142
2374
  path: `/policies/reputation/scores/{reputation_uuid}/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
@@ -2166,8 +2398,12 @@ class PoliciesApi extends runtime.BaseAPI {
2166
2398
  }
2167
2399
  const queryParameters = {};
2168
2400
  const headerParameters = {};
2169
- if (this.configuration && this.configuration.apiKey) {
2170
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2401
+ if (this.configuration && this.configuration.accessToken) {
2402
+ const token = this.configuration.accessToken;
2403
+ const tokenString = yield token("authentik", []);
2404
+ if (tokenString) {
2405
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2406
+ }
2171
2407
  }
2172
2408
  const response = yield this.request({
2173
2409
  path: `/policies/reputation/scores/{reputation_uuid}/used_by/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
@@ -2201,8 +2437,12 @@ class PoliciesApi extends runtime.BaseAPI {
2201
2437
  const queryParameters = {};
2202
2438
  const headerParameters = {};
2203
2439
  headerParameters['Content-Type'] = 'application/json';
2204
- if (this.configuration && this.configuration.apiKey) {
2205
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2440
+ if (this.configuration && this.configuration.accessToken) {
2441
+ const token = this.configuration.accessToken;
2442
+ const tokenString = yield token("authentik", []);
2443
+ if (tokenString) {
2444
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2445
+ }
2206
2446
  }
2207
2447
  const response = yield this.request({
2208
2448
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -2233,8 +2473,12 @@ class PoliciesApi extends runtime.BaseAPI {
2233
2473
  }
2234
2474
  const queryParameters = {};
2235
2475
  const headerParameters = {};
2236
- if (this.configuration && this.configuration.apiKey) {
2237
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2476
+ if (this.configuration && this.configuration.accessToken) {
2477
+ const token = this.configuration.accessToken;
2478
+ const tokenString = yield token("authentik", []);
2479
+ if (tokenString) {
2480
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2481
+ }
2238
2482
  }
2239
2483
  const response = yield this.request({
2240
2484
  path: `/policies/reputation/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),