@goauthentik/api 2024.2.2-1712833564 → 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.
Files changed (73) 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/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
  40. package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
  41. package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  42. package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
  43. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  44. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  45. package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
  46. package/dist/models/AuthenticatorValidateStage.js +5 -0
  47. package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  48. package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
  49. package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  50. package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +70 -30
  53. package/src/apis/AuthenticatorsApi.ts +434 -186
  54. package/src/apis/CoreApi.ts +434 -186
  55. package/src/apis/CryptoApi.ts +70 -30
  56. package/src/apis/EnterpriseApi.ts +70 -30
  57. package/src/apis/EventsApi.ts +245 -105
  58. package/src/apis/FlowsApi.ts +175 -75
  59. package/src/apis/ManagedApi.ts +63 -27
  60. package/src/apis/Oauth2Api.ts +84 -36
  61. package/src/apis/OutpostsApi.ts +245 -105
  62. package/src/apis/PoliciesApi.ts +427 -183
  63. package/src/apis/PropertymappingsApi.ts +336 -144
  64. package/src/apis/ProvidersApi.ts +420 -180
  65. package/src/apis/RacApi.ts +91 -39
  66. package/src/apis/RbacApi.ts +119 -51
  67. package/src/apis/RootApi.ts +7 -3
  68. package/src/apis/SchemaApi.ts +7 -3
  69. package/src/apis/SourcesApi.ts +483 -207
  70. package/src/apis/StagesApi.ts +1169 -501
  71. package/src/models/AuthenticatorValidateStage.ts +22 -0
  72. package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
  73. package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -33,8 +33,12 @@ export class PoliciesApi 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.apiKey) {
37
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/policies/all/cache_clear/`,
@@ -60,8 +64,12 @@ export class PoliciesApi extends runtime.BaseAPI {
60
64
  return __awaiter(this, void 0, void 0, function* () {
61
65
  const queryParameters = {};
62
66
  const headerParameters = {};
63
- if (this.configuration && this.configuration.apiKey) {
64
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
67
+ if (this.configuration && this.configuration.accessToken) {
68
+ const token = this.configuration.accessToken;
69
+ const tokenString = yield token("authentik", []);
70
+ if (tokenString) {
71
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
72
+ }
65
73
  }
66
74
  const response = yield this.request({
67
75
  path: `/policies/all/cache_info/`,
@@ -91,8 +99,12 @@ export class PoliciesApi extends runtime.BaseAPI {
91
99
  }
92
100
  const queryParameters = {};
93
101
  const headerParameters = {};
94
- if (this.configuration && this.configuration.apiKey) {
95
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
102
+ if (this.configuration && this.configuration.accessToken) {
103
+ const token = this.configuration.accessToken;
104
+ const tokenString = yield token("authentik", []);
105
+ if (tokenString) {
106
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
107
+ }
96
108
  }
97
109
  const response = yield this.request({
98
110
  path: `/policies/all/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -136,8 +148,12 @@ export class PoliciesApi extends runtime.BaseAPI {
136
148
  queryParameters['search'] = requestParameters.search;
137
149
  }
138
150
  const headerParameters = {};
139
- if (this.configuration && this.configuration.apiKey) {
140
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
151
+ if (this.configuration && this.configuration.accessToken) {
152
+ const token = this.configuration.accessToken;
153
+ const tokenString = yield token("authentik", []);
154
+ if (tokenString) {
155
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
156
+ }
141
157
  }
142
158
  const response = yield this.request({
143
159
  path: `/policies/all/`,
@@ -167,8 +183,12 @@ export class PoliciesApi extends runtime.BaseAPI {
167
183
  }
168
184
  const queryParameters = {};
169
185
  const headerParameters = {};
170
- if (this.configuration && this.configuration.apiKey) {
171
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
186
+ if (this.configuration && this.configuration.accessToken) {
187
+ const token = this.configuration.accessToken;
188
+ const tokenString = yield token("authentik", []);
189
+ if (tokenString) {
190
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
191
+ }
172
192
  }
173
193
  const response = yield this.request({
174
194
  path: `/policies/all/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -202,8 +222,12 @@ export class PoliciesApi extends runtime.BaseAPI {
202
222
  const queryParameters = {};
203
223
  const headerParameters = {};
204
224
  headerParameters['Content-Type'] = 'application/json';
205
- if (this.configuration && this.configuration.apiKey) {
206
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
225
+ if (this.configuration && this.configuration.accessToken) {
226
+ const token = this.configuration.accessToken;
227
+ const tokenString = yield token("authentik", []);
228
+ if (tokenString) {
229
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
230
+ }
207
231
  }
208
232
  const response = yield this.request({
209
233
  path: `/policies/all/{policy_uuid}/test/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -231,8 +255,12 @@ export class PoliciesApi extends runtime.BaseAPI {
231
255
  return __awaiter(this, void 0, void 0, function* () {
232
256
  const queryParameters = {};
233
257
  const headerParameters = {};
234
- if (this.configuration && this.configuration.apiKey) {
235
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
258
+ if (this.configuration && this.configuration.accessToken) {
259
+ const token = this.configuration.accessToken;
260
+ const tokenString = yield token("authentik", []);
261
+ if (tokenString) {
262
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
263
+ }
236
264
  }
237
265
  const response = yield this.request({
238
266
  path: `/policies/all/types/`,
@@ -262,8 +290,12 @@ export class PoliciesApi extends runtime.BaseAPI {
262
290
  }
263
291
  const queryParameters = {};
264
292
  const headerParameters = {};
265
- if (this.configuration && this.configuration.apiKey) {
266
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
293
+ if (this.configuration && this.configuration.accessToken) {
294
+ const token = this.configuration.accessToken;
295
+ const tokenString = yield token("authentik", []);
296
+ if (tokenString) {
297
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
298
+ }
267
299
  }
268
300
  const response = yield this.request({
269
301
  path: `/policies/all/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -294,8 +326,12 @@ export class PoliciesApi extends runtime.BaseAPI {
294
326
  const queryParameters = {};
295
327
  const headerParameters = {};
296
328
  headerParameters['Content-Type'] = 'application/json';
297
- if (this.configuration && this.configuration.apiKey) {
298
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
329
+ if (this.configuration && this.configuration.accessToken) {
330
+ const token = this.configuration.accessToken;
331
+ const tokenString = yield token("authentik", []);
332
+ if (tokenString) {
333
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
334
+ }
299
335
  }
300
336
  const response = yield this.request({
301
337
  path: `/policies/bindings/`,
@@ -326,8 +362,12 @@ export class PoliciesApi extends runtime.BaseAPI {
326
362
  }
327
363
  const queryParameters = {};
328
364
  const headerParameters = {};
329
- if (this.configuration && this.configuration.apiKey) {
330
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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
+ }
331
371
  }
332
372
  const response = yield this.request({
333
373
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -386,8 +426,12 @@ export class PoliciesApi extends runtime.BaseAPI {
386
426
  queryParameters['timeout'] = requestParameters.timeout;
387
427
  }
388
428
  const headerParameters = {};
389
- if (this.configuration && this.configuration.apiKey) {
390
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
429
+ if (this.configuration && this.configuration.accessToken) {
430
+ const token = this.configuration.accessToken;
431
+ const tokenString = yield token("authentik", []);
432
+ if (tokenString) {
433
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
434
+ }
391
435
  }
392
436
  const response = yield this.request({
393
437
  path: `/policies/bindings/`,
@@ -418,8 +462,12 @@ export class PoliciesApi extends runtime.BaseAPI {
418
462
  const queryParameters = {};
419
463
  const headerParameters = {};
420
464
  headerParameters['Content-Type'] = 'application/json';
421
- if (this.configuration && this.configuration.apiKey) {
422
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
465
+ if (this.configuration && this.configuration.accessToken) {
466
+ const token = this.configuration.accessToken;
467
+ const tokenString = yield token("authentik", []);
468
+ if (tokenString) {
469
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
470
+ }
423
471
  }
424
472
  const response = yield this.request({
425
473
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -450,8 +498,12 @@ export class PoliciesApi extends runtime.BaseAPI {
450
498
  }
451
499
  const queryParameters = {};
452
500
  const headerParameters = {};
453
- if (this.configuration && this.configuration.apiKey) {
454
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
501
+ if (this.configuration && this.configuration.accessToken) {
502
+ const token = this.configuration.accessToken;
503
+ const tokenString = yield token("authentik", []);
504
+ if (tokenString) {
505
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
506
+ }
455
507
  }
456
508
  const response = yield this.request({
457
509
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -485,8 +537,12 @@ export class PoliciesApi extends runtime.BaseAPI {
485
537
  const queryParameters = {};
486
538
  const headerParameters = {};
487
539
  headerParameters['Content-Type'] = 'application/json';
488
- if (this.configuration && this.configuration.apiKey) {
489
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
540
+ if (this.configuration && this.configuration.accessToken) {
541
+ const token = this.configuration.accessToken;
542
+ const tokenString = yield token("authentik", []);
543
+ if (tokenString) {
544
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
545
+ }
490
546
  }
491
547
  const response = yield this.request({
492
548
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -517,8 +573,12 @@ export class PoliciesApi extends runtime.BaseAPI {
517
573
  }
518
574
  const queryParameters = {};
519
575
  const headerParameters = {};
520
- if (this.configuration && this.configuration.apiKey) {
521
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
576
+ if (this.configuration && this.configuration.accessToken) {
577
+ const token = this.configuration.accessToken;
578
+ const tokenString = yield token("authentik", []);
579
+ if (tokenString) {
580
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
581
+ }
522
582
  }
523
583
  const response = yield this.request({
524
584
  path: `/policies/bindings/{policy_binding_uuid}/used_by/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
@@ -549,8 +609,12 @@ export class PoliciesApi extends runtime.BaseAPI {
549
609
  const queryParameters = {};
550
610
  const headerParameters = {};
551
611
  headerParameters['Content-Type'] = 'application/json';
552
- if (this.configuration && this.configuration.apiKey) {
553
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
612
+ if (this.configuration && this.configuration.accessToken) {
613
+ const token = this.configuration.accessToken;
614
+ const tokenString = yield token("authentik", []);
615
+ if (tokenString) {
616
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
617
+ }
554
618
  }
555
619
  const response = yield this.request({
556
620
  path: `/policies/dummy/`,
@@ -581,8 +645,12 @@ export class PoliciesApi extends runtime.BaseAPI {
581
645
  }
582
646
  const queryParameters = {};
583
647
  const headerParameters = {};
584
- if (this.configuration && this.configuration.apiKey) {
585
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
648
+ if (this.configuration && this.configuration.accessToken) {
649
+ const token = this.configuration.accessToken;
650
+ const tokenString = yield token("authentik", []);
651
+ if (tokenString) {
652
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
653
+ }
586
654
  }
587
655
  const response = yield this.request({
588
656
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -644,8 +712,12 @@ export class PoliciesApi extends runtime.BaseAPI {
644
712
  queryParameters['wait_min'] = requestParameters.waitMin;
645
713
  }
646
714
  const headerParameters = {};
647
- if (this.configuration && this.configuration.apiKey) {
648
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
715
+ if (this.configuration && this.configuration.accessToken) {
716
+ const token = this.configuration.accessToken;
717
+ const tokenString = yield token("authentik", []);
718
+ if (tokenString) {
719
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
720
+ }
649
721
  }
650
722
  const response = yield this.request({
651
723
  path: `/policies/dummy/`,
@@ -676,8 +748,12 @@ export class PoliciesApi extends runtime.BaseAPI {
676
748
  const queryParameters = {};
677
749
  const headerParameters = {};
678
750
  headerParameters['Content-Type'] = 'application/json';
679
- if (this.configuration && this.configuration.apiKey) {
680
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
751
+ if (this.configuration && this.configuration.accessToken) {
752
+ const token = this.configuration.accessToken;
753
+ const tokenString = yield token("authentik", []);
754
+ if (tokenString) {
755
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
756
+ }
681
757
  }
682
758
  const response = yield this.request({
683
759
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -708,8 +784,12 @@ export class PoliciesApi extends runtime.BaseAPI {
708
784
  }
709
785
  const queryParameters = {};
710
786
  const headerParameters = {};
711
- if (this.configuration && this.configuration.apiKey) {
712
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
787
+ if (this.configuration && this.configuration.accessToken) {
788
+ const token = this.configuration.accessToken;
789
+ const tokenString = yield token("authentik", []);
790
+ if (tokenString) {
791
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
792
+ }
713
793
  }
714
794
  const response = yield this.request({
715
795
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -743,8 +823,12 @@ export class PoliciesApi extends runtime.BaseAPI {
743
823
  const queryParameters = {};
744
824
  const headerParameters = {};
745
825
  headerParameters['Content-Type'] = 'application/json';
746
- if (this.configuration && this.configuration.apiKey) {
747
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
826
+ if (this.configuration && this.configuration.accessToken) {
827
+ const token = this.configuration.accessToken;
828
+ const tokenString = yield token("authentik", []);
829
+ if (tokenString) {
830
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
831
+ }
748
832
  }
749
833
  const response = yield this.request({
750
834
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -775,8 +859,12 @@ export class PoliciesApi extends runtime.BaseAPI {
775
859
  }
776
860
  const queryParameters = {};
777
861
  const headerParameters = {};
778
- if (this.configuration && this.configuration.apiKey) {
779
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
862
+ if (this.configuration && this.configuration.accessToken) {
863
+ const token = this.configuration.accessToken;
864
+ const tokenString = yield token("authentik", []);
865
+ if (tokenString) {
866
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
867
+ }
780
868
  }
781
869
  const response = yield this.request({
782
870
  path: `/policies/dummy/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -807,8 +895,12 @@ export class PoliciesApi extends runtime.BaseAPI {
807
895
  const queryParameters = {};
808
896
  const headerParameters = {};
809
897
  headerParameters['Content-Type'] = 'application/json';
810
- if (this.configuration && this.configuration.apiKey) {
811
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
898
+ if (this.configuration && this.configuration.accessToken) {
899
+ const token = this.configuration.accessToken;
900
+ const tokenString = yield token("authentik", []);
901
+ if (tokenString) {
902
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
903
+ }
812
904
  }
813
905
  const response = yield this.request({
814
906
  path: `/policies/event_matcher/`,
@@ -839,8 +931,12 @@ export class PoliciesApi extends runtime.BaseAPI {
839
931
  }
840
932
  const queryParameters = {};
841
933
  const headerParameters = {};
842
- if (this.configuration && this.configuration.apiKey) {
843
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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
+ }
844
940
  }
845
941
  const response = yield this.request({
846
942
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -905,8 +1001,12 @@ export class PoliciesApi extends runtime.BaseAPI {
905
1001
  queryParameters['search'] = requestParameters.search;
906
1002
  }
907
1003
  const headerParameters = {};
908
- if (this.configuration && this.configuration.apiKey) {
909
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1004
+ if (this.configuration && this.configuration.accessToken) {
1005
+ const token = this.configuration.accessToken;
1006
+ const tokenString = yield token("authentik", []);
1007
+ if (tokenString) {
1008
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1009
+ }
910
1010
  }
911
1011
  const response = yield this.request({
912
1012
  path: `/policies/event_matcher/`,
@@ -937,8 +1037,12 @@ export class PoliciesApi extends runtime.BaseAPI {
937
1037
  const queryParameters = {};
938
1038
  const headerParameters = {};
939
1039
  headerParameters['Content-Type'] = 'application/json';
940
- if (this.configuration && this.configuration.apiKey) {
941
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1040
+ if (this.configuration && this.configuration.accessToken) {
1041
+ const token = this.configuration.accessToken;
1042
+ const tokenString = yield token("authentik", []);
1043
+ if (tokenString) {
1044
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1045
+ }
942
1046
  }
943
1047
  const response = yield this.request({
944
1048
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -969,8 +1073,12 @@ export class PoliciesApi extends runtime.BaseAPI {
969
1073
  }
970
1074
  const queryParameters = {};
971
1075
  const headerParameters = {};
972
- if (this.configuration && this.configuration.apiKey) {
973
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1076
+ if (this.configuration && this.configuration.accessToken) {
1077
+ const token = this.configuration.accessToken;
1078
+ const tokenString = yield token("authentik", []);
1079
+ if (tokenString) {
1080
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1081
+ }
974
1082
  }
975
1083
  const response = yield this.request({
976
1084
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1004,8 +1112,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1004
1112
  const queryParameters = {};
1005
1113
  const headerParameters = {};
1006
1114
  headerParameters['Content-Type'] = 'application/json';
1007
- if (this.configuration && this.configuration.apiKey) {
1008
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1115
+ if (this.configuration && this.configuration.accessToken) {
1116
+ const token = this.configuration.accessToken;
1117
+ const tokenString = yield token("authentik", []);
1118
+ if (tokenString) {
1119
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1120
+ }
1009
1121
  }
1010
1122
  const response = yield this.request({
1011
1123
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1036,8 +1148,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1036
1148
  }
1037
1149
  const queryParameters = {};
1038
1150
  const headerParameters = {};
1039
- if (this.configuration && this.configuration.apiKey) {
1040
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1151
+ if (this.configuration && this.configuration.accessToken) {
1152
+ const token = this.configuration.accessToken;
1153
+ const tokenString = yield token("authentik", []);
1154
+ if (tokenString) {
1155
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1156
+ }
1041
1157
  }
1042
1158
  const response = yield this.request({
1043
1159
  path: `/policies/event_matcher/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1068,8 +1184,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1068
1184
  const queryParameters = {};
1069
1185
  const headerParameters = {};
1070
1186
  headerParameters['Content-Type'] = 'application/json';
1071
- if (this.configuration && this.configuration.apiKey) {
1072
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1187
+ if (this.configuration && this.configuration.accessToken) {
1188
+ const token = this.configuration.accessToken;
1189
+ const tokenString = yield token("authentik", []);
1190
+ if (tokenString) {
1191
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1192
+ }
1073
1193
  }
1074
1194
  const response = yield this.request({
1075
1195
  path: `/policies/expression/`,
@@ -1100,8 +1220,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1100
1220
  }
1101
1221
  const queryParameters = {};
1102
1222
  const headerParameters = {};
1103
- if (this.configuration && this.configuration.apiKey) {
1104
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1223
+ if (this.configuration && this.configuration.accessToken) {
1224
+ const token = this.configuration.accessToken;
1225
+ const tokenString = yield token("authentik", []);
1226
+ if (tokenString) {
1227
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1228
+ }
1105
1229
  }
1106
1230
  const response = yield this.request({
1107
1231
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1157,8 +1281,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1157
1281
  queryParameters['search'] = requestParameters.search;
1158
1282
  }
1159
1283
  const headerParameters = {};
1160
- if (this.configuration && this.configuration.apiKey) {
1161
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1284
+ if (this.configuration && this.configuration.accessToken) {
1285
+ const token = this.configuration.accessToken;
1286
+ const tokenString = yield token("authentik", []);
1287
+ if (tokenString) {
1288
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1289
+ }
1162
1290
  }
1163
1291
  const response = yield this.request({
1164
1292
  path: `/policies/expression/`,
@@ -1189,8 +1317,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1189
1317
  const queryParameters = {};
1190
1318
  const headerParameters = {};
1191
1319
  headerParameters['Content-Type'] = 'application/json';
1192
- if (this.configuration && this.configuration.apiKey) {
1193
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1320
+ if (this.configuration && this.configuration.accessToken) {
1321
+ const token = this.configuration.accessToken;
1322
+ const tokenString = yield token("authentik", []);
1323
+ if (tokenString) {
1324
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1325
+ }
1194
1326
  }
1195
1327
  const response = yield this.request({
1196
1328
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1221,8 +1353,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1221
1353
  }
1222
1354
  const queryParameters = {};
1223
1355
  const headerParameters = {};
1224
- if (this.configuration && this.configuration.apiKey) {
1225
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1356
+ if (this.configuration && this.configuration.accessToken) {
1357
+ const token = this.configuration.accessToken;
1358
+ const tokenString = yield token("authentik", []);
1359
+ if (tokenString) {
1360
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1361
+ }
1226
1362
  }
1227
1363
  const response = yield this.request({
1228
1364
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1256,8 +1392,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1256
1392
  const queryParameters = {};
1257
1393
  const headerParameters = {};
1258
1394
  headerParameters['Content-Type'] = 'application/json';
1259
- if (this.configuration && this.configuration.apiKey) {
1260
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1395
+ if (this.configuration && this.configuration.accessToken) {
1396
+ const token = this.configuration.accessToken;
1397
+ const tokenString = yield token("authentik", []);
1398
+ if (tokenString) {
1399
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1400
+ }
1261
1401
  }
1262
1402
  const response = yield this.request({
1263
1403
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1288,8 +1428,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1288
1428
  }
1289
1429
  const queryParameters = {};
1290
1430
  const headerParameters = {};
1291
- if (this.configuration && this.configuration.apiKey) {
1292
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1431
+ if (this.configuration && this.configuration.accessToken) {
1432
+ const token = this.configuration.accessToken;
1433
+ const tokenString = yield token("authentik", []);
1434
+ if (tokenString) {
1435
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1436
+ }
1293
1437
  }
1294
1438
  const response = yield this.request({
1295
1439
  path: `/policies/expression/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1320,8 +1464,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1320
1464
  const queryParameters = {};
1321
1465
  const headerParameters = {};
1322
1466
  headerParameters['Content-Type'] = 'application/json';
1323
- if (this.configuration && this.configuration.apiKey) {
1324
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1467
+ if (this.configuration && this.configuration.accessToken) {
1468
+ const token = this.configuration.accessToken;
1469
+ const tokenString = yield token("authentik", []);
1470
+ if (tokenString) {
1471
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1472
+ }
1325
1473
  }
1326
1474
  const response = yield this.request({
1327
1475
  path: `/policies/password/`,
@@ -1352,8 +1500,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1352
1500
  }
1353
1501
  const queryParameters = {};
1354
1502
  const headerParameters = {};
1355
- if (this.configuration && this.configuration.apiKey) {
1356
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1503
+ if (this.configuration && this.configuration.accessToken) {
1504
+ const token = this.configuration.accessToken;
1505
+ const tokenString = yield token("authentik", []);
1506
+ if (tokenString) {
1507
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1508
+ }
1357
1509
  }
1358
1510
  const response = yield this.request({
1359
1511
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1383,8 +1535,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1383
1535
  const queryParameters = {};
1384
1536
  const headerParameters = {};
1385
1537
  headerParameters['Content-Type'] = 'application/json';
1386
- if (this.configuration && this.configuration.apiKey) {
1387
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1538
+ if (this.configuration && this.configuration.accessToken) {
1539
+ const token = this.configuration.accessToken;
1540
+ const tokenString = yield token("authentik", []);
1541
+ if (tokenString) {
1542
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1543
+ }
1388
1544
  }
1389
1545
  const response = yield this.request({
1390
1546
  path: `/policies/password_expiry/`,
@@ -1415,8 +1571,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1415
1571
  }
1416
1572
  const queryParameters = {};
1417
1573
  const headerParameters = {};
1418
- if (this.configuration && this.configuration.apiKey) {
1419
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1574
+ if (this.configuration && this.configuration.accessToken) {
1575
+ const token = this.configuration.accessToken;
1576
+ const tokenString = yield token("authentik", []);
1577
+ if (tokenString) {
1578
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1579
+ }
1420
1580
  }
1421
1581
  const response = yield this.request({
1422
1582
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1475,8 +1635,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1475
1635
  queryParameters['search'] = requestParameters.search;
1476
1636
  }
1477
1637
  const headerParameters = {};
1478
- if (this.configuration && this.configuration.apiKey) {
1479
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1638
+ if (this.configuration && this.configuration.accessToken) {
1639
+ const token = this.configuration.accessToken;
1640
+ const tokenString = yield token("authentik", []);
1641
+ if (tokenString) {
1642
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1643
+ }
1480
1644
  }
1481
1645
  const response = yield this.request({
1482
1646
  path: `/policies/password_expiry/`,
@@ -1507,8 +1671,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1507
1671
  const queryParameters = {};
1508
1672
  const headerParameters = {};
1509
1673
  headerParameters['Content-Type'] = 'application/json';
1510
- if (this.configuration && this.configuration.apiKey) {
1511
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1674
+ if (this.configuration && this.configuration.accessToken) {
1675
+ const token = this.configuration.accessToken;
1676
+ const tokenString = yield token("authentik", []);
1677
+ if (tokenString) {
1678
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1679
+ }
1512
1680
  }
1513
1681
  const response = yield this.request({
1514
1682
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1539,8 +1707,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1539
1707
  }
1540
1708
  const queryParameters = {};
1541
1709
  const headerParameters = {};
1542
- if (this.configuration && this.configuration.apiKey) {
1543
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1710
+ if (this.configuration && this.configuration.accessToken) {
1711
+ const token = this.configuration.accessToken;
1712
+ const tokenString = yield token("authentik", []);
1713
+ if (tokenString) {
1714
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1715
+ }
1544
1716
  }
1545
1717
  const response = yield this.request({
1546
1718
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1574,8 +1746,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1574
1746
  const queryParameters = {};
1575
1747
  const headerParameters = {};
1576
1748
  headerParameters['Content-Type'] = 'application/json';
1577
- if (this.configuration && this.configuration.apiKey) {
1578
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1749
+ if (this.configuration && this.configuration.accessToken) {
1750
+ const token = this.configuration.accessToken;
1751
+ const tokenString = yield token("authentik", []);
1752
+ if (tokenString) {
1753
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1754
+ }
1579
1755
  }
1580
1756
  const response = yield this.request({
1581
1757
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1606,8 +1782,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1606
1782
  }
1607
1783
  const queryParameters = {};
1608
1784
  const headerParameters = {};
1609
- if (this.configuration && this.configuration.apiKey) {
1610
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1785
+ if (this.configuration && this.configuration.accessToken) {
1786
+ const token = this.configuration.accessToken;
1787
+ const tokenString = yield token("authentik", []);
1788
+ if (tokenString) {
1789
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1790
+ }
1611
1791
  }
1612
1792
  const response = yield this.request({
1613
1793
  path: `/policies/password_expiry/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1700,8 +1880,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1700
1880
  queryParameters['zxcvbn_score_threshold'] = requestParameters.zxcvbnScoreThreshold;
1701
1881
  }
1702
1882
  const headerParameters = {};
1703
- if (this.configuration && this.configuration.apiKey) {
1704
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1883
+ if (this.configuration && this.configuration.accessToken) {
1884
+ const token = this.configuration.accessToken;
1885
+ const tokenString = yield token("authentik", []);
1886
+ if (tokenString) {
1887
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1888
+ }
1705
1889
  }
1706
1890
  const response = yield this.request({
1707
1891
  path: `/policies/password/`,
@@ -1732,8 +1916,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1732
1916
  const queryParameters = {};
1733
1917
  const headerParameters = {};
1734
1918
  headerParameters['Content-Type'] = 'application/json';
1735
- if (this.configuration && this.configuration.apiKey) {
1736
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1919
+ if (this.configuration && this.configuration.accessToken) {
1920
+ const token = this.configuration.accessToken;
1921
+ const tokenString = yield token("authentik", []);
1922
+ if (tokenString) {
1923
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1924
+ }
1737
1925
  }
1738
1926
  const response = yield this.request({
1739
1927
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1764,8 +1952,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1764
1952
  }
1765
1953
  const queryParameters = {};
1766
1954
  const headerParameters = {};
1767
- if (this.configuration && this.configuration.apiKey) {
1768
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1955
+ if (this.configuration && this.configuration.accessToken) {
1956
+ const token = this.configuration.accessToken;
1957
+ const tokenString = yield token("authentik", []);
1958
+ if (tokenString) {
1959
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1960
+ }
1769
1961
  }
1770
1962
  const response = yield this.request({
1771
1963
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1799,8 +1991,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1799
1991
  const queryParameters = {};
1800
1992
  const headerParameters = {};
1801
1993
  headerParameters['Content-Type'] = 'application/json';
1802
- if (this.configuration && this.configuration.apiKey) {
1803
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1994
+ if (this.configuration && this.configuration.accessToken) {
1995
+ const token = this.configuration.accessToken;
1996
+ const tokenString = yield token("authentik", []);
1997
+ if (tokenString) {
1998
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1999
+ }
1804
2000
  }
1805
2001
  const response = yield this.request({
1806
2002
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1831,8 +2027,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1831
2027
  }
1832
2028
  const queryParameters = {};
1833
2029
  const headerParameters = {};
1834
- if (this.configuration && this.configuration.apiKey) {
1835
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2030
+ if (this.configuration && this.configuration.accessToken) {
2031
+ const token = this.configuration.accessToken;
2032
+ const tokenString = yield token("authentik", []);
2033
+ if (tokenString) {
2034
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2035
+ }
1836
2036
  }
1837
2037
  const response = yield this.request({
1838
2038
  path: `/policies/password/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1863,8 +2063,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1863
2063
  const queryParameters = {};
1864
2064
  const headerParameters = {};
1865
2065
  headerParameters['Content-Type'] = 'application/json';
1866
- if (this.configuration && this.configuration.apiKey) {
1867
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2066
+ if (this.configuration && this.configuration.accessToken) {
2067
+ const token = this.configuration.accessToken;
2068
+ const tokenString = yield token("authentik", []);
2069
+ if (tokenString) {
2070
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2071
+ }
1868
2072
  }
1869
2073
  const response = yield this.request({
1870
2074
  path: `/policies/reputation/`,
@@ -1895,8 +2099,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1895
2099
  }
1896
2100
  const queryParameters = {};
1897
2101
  const headerParameters = {};
1898
- if (this.configuration && this.configuration.apiKey) {
1899
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2102
+ if (this.configuration && this.configuration.accessToken) {
2103
+ const token = this.configuration.accessToken;
2104
+ const tokenString = yield token("authentik", []);
2105
+ if (tokenString) {
2106
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2107
+ }
1900
2108
  }
1901
2109
  const response = yield this.request({
1902
2110
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -1958,8 +2166,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1958
2166
  queryParameters['threshold'] = requestParameters.threshold;
1959
2167
  }
1960
2168
  const headerParameters = {};
1961
- if (this.configuration && this.configuration.apiKey) {
1962
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2169
+ if (this.configuration && this.configuration.accessToken) {
2170
+ const token = this.configuration.accessToken;
2171
+ const tokenString = yield token("authentik", []);
2172
+ if (tokenString) {
2173
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2174
+ }
1963
2175
  }
1964
2176
  const response = yield this.request({
1965
2177
  path: `/policies/reputation/`,
@@ -1990,8 +2202,12 @@ export class PoliciesApi extends runtime.BaseAPI {
1990
2202
  const queryParameters = {};
1991
2203
  const headerParameters = {};
1992
2204
  headerParameters['Content-Type'] = 'application/json';
1993
- if (this.configuration && this.configuration.apiKey) {
1994
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2205
+ if (this.configuration && this.configuration.accessToken) {
2206
+ const token = this.configuration.accessToken;
2207
+ const tokenString = yield token("authentik", []);
2208
+ if (tokenString) {
2209
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2210
+ }
1995
2211
  }
1996
2212
  const response = yield this.request({
1997
2213
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -2022,8 +2238,12 @@ export class PoliciesApi extends runtime.BaseAPI {
2022
2238
  }
2023
2239
  const queryParameters = {};
2024
2240
  const headerParameters = {};
2025
- if (this.configuration && this.configuration.apiKey) {
2026
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2241
+ if (this.configuration && this.configuration.accessToken) {
2242
+ const token = this.configuration.accessToken;
2243
+ const tokenString = yield token("authentik", []);
2244
+ if (tokenString) {
2245
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2246
+ }
2027
2247
  }
2028
2248
  const response = yield this.request({
2029
2249
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -2053,8 +2273,12 @@ export class PoliciesApi extends runtime.BaseAPI {
2053
2273
  }
2054
2274
  const queryParameters = {};
2055
2275
  const headerParameters = {};
2056
- if (this.configuration && this.configuration.apiKey) {
2057
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2276
+ if (this.configuration && this.configuration.accessToken) {
2277
+ const token = this.configuration.accessToken;
2278
+ const tokenString = yield token("authentik", []);
2279
+ if (tokenString) {
2280
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2281
+ }
2058
2282
  }
2059
2283
  const response = yield this.request({
2060
2284
  path: `/policies/reputation/scores/{reputation_uuid}/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
@@ -2101,8 +2325,12 @@ export class PoliciesApi extends runtime.BaseAPI {
2101
2325
  queryParameters['search'] = requestParameters.search;
2102
2326
  }
2103
2327
  const headerParameters = {};
2104
- if (this.configuration && this.configuration.apiKey) {
2105
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2328
+ if (this.configuration && this.configuration.accessToken) {
2329
+ const token = this.configuration.accessToken;
2330
+ const tokenString = yield token("authentik", []);
2331
+ if (tokenString) {
2332
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2333
+ }
2106
2334
  }
2107
2335
  const response = yield this.request({
2108
2336
  path: `/policies/reputation/scores/`,
@@ -2132,8 +2360,12 @@ export class PoliciesApi extends runtime.BaseAPI {
2132
2360
  }
2133
2361
  const queryParameters = {};
2134
2362
  const headerParameters = {};
2135
- if (this.configuration && this.configuration.apiKey) {
2136
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2363
+ if (this.configuration && this.configuration.accessToken) {
2364
+ const token = this.configuration.accessToken;
2365
+ const tokenString = yield token("authentik", []);
2366
+ if (tokenString) {
2367
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2368
+ }
2137
2369
  }
2138
2370
  const response = yield this.request({
2139
2371
  path: `/policies/reputation/scores/{reputation_uuid}/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
@@ -2163,8 +2395,12 @@ export class PoliciesApi extends runtime.BaseAPI {
2163
2395
  }
2164
2396
  const queryParameters = {};
2165
2397
  const headerParameters = {};
2166
- if (this.configuration && this.configuration.apiKey) {
2167
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2398
+ if (this.configuration && this.configuration.accessToken) {
2399
+ const token = this.configuration.accessToken;
2400
+ const tokenString = yield token("authentik", []);
2401
+ if (tokenString) {
2402
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2403
+ }
2168
2404
  }
2169
2405
  const response = yield this.request({
2170
2406
  path: `/policies/reputation/scores/{reputation_uuid}/used_by/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
@@ -2198,8 +2434,12 @@ export class PoliciesApi extends runtime.BaseAPI {
2198
2434
  const queryParameters = {};
2199
2435
  const headerParameters = {};
2200
2436
  headerParameters['Content-Type'] = 'application/json';
2201
- if (this.configuration && this.configuration.apiKey) {
2202
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2437
+ if (this.configuration && this.configuration.accessToken) {
2438
+ const token = this.configuration.accessToken;
2439
+ const tokenString = yield token("authentik", []);
2440
+ if (tokenString) {
2441
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2442
+ }
2203
2443
  }
2204
2444
  const response = yield this.request({
2205
2445
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
@@ -2230,8 +2470,12 @@ export class PoliciesApi extends runtime.BaseAPI {
2230
2470
  }
2231
2471
  const queryParameters = {};
2232
2472
  const headerParameters = {};
2233
- if (this.configuration && this.configuration.apiKey) {
2234
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2473
+ if (this.configuration && this.configuration.accessToken) {
2474
+ const token = this.configuration.accessToken;
2475
+ const tokenString = yield token("authentik", []);
2476
+ if (tokenString) {
2477
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2478
+ }
2235
2479
  }
2236
2480
  const response = yield this.request({
2237
2481
  path: `/policies/reputation/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),