@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -40,8 +40,12 @@ class OutpostsApi extends runtime.BaseAPI {
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
42
  headerParameters['Content-Type'] = 'application/json';
43
- if (this.configuration && this.configuration.apiKey) {
44
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("authentik", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
45
49
  }
46
50
  const response = yield this.request({
47
51
  path: `/outposts/instances/`,
@@ -69,8 +73,12 @@ class OutpostsApi extends runtime.BaseAPI {
69
73
  return __awaiter(this, void 0, void 0, function* () {
70
74
  const queryParameters = {};
71
75
  const headerParameters = {};
72
- if (this.configuration && this.configuration.apiKey) {
73
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
76
+ if (this.configuration && this.configuration.accessToken) {
77
+ const token = this.configuration.accessToken;
78
+ const tokenString = yield token("authentik", []);
79
+ if (tokenString) {
80
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
81
+ }
74
82
  }
75
83
  const response = yield this.request({
76
84
  path: `/outposts/instances/default_settings/`,
@@ -100,8 +108,12 @@ class OutpostsApi extends runtime.BaseAPI {
100
108
  }
101
109
  const queryParameters = {};
102
110
  const headerParameters = {};
103
- if (this.configuration && this.configuration.apiKey) {
104
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
111
+ if (this.configuration && this.configuration.accessToken) {
112
+ const token = this.configuration.accessToken;
113
+ const tokenString = yield token("authentik", []);
114
+ if (tokenString) {
115
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
116
+ }
105
117
  }
106
118
  const response = yield this.request({
107
119
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -160,8 +172,12 @@ class OutpostsApi extends runtime.BaseAPI {
160
172
  queryParameters['service_connection__name__iexact'] = requestParameters.serviceConnectionNameIexact;
161
173
  }
162
174
  const headerParameters = {};
163
- if (this.configuration && this.configuration.apiKey) {
164
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
175
+ if (this.configuration && this.configuration.accessToken) {
176
+ const token = this.configuration.accessToken;
177
+ const tokenString = yield token("authentik", []);
178
+ if (tokenString) {
179
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
180
+ }
165
181
  }
166
182
  const response = yield this.request({
167
183
  path: `/outposts/instances/{uuid}/health/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -224,8 +240,12 @@ class OutpostsApi extends runtime.BaseAPI {
224
240
  queryParameters['service_connection__name__iexact'] = requestParameters.serviceConnectionNameIexact;
225
241
  }
226
242
  const headerParameters = {};
227
- if (this.configuration && this.configuration.apiKey) {
228
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
243
+ if (this.configuration && this.configuration.accessToken) {
244
+ const token = this.configuration.accessToken;
245
+ const tokenString = yield token("authentik", []);
246
+ if (tokenString) {
247
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
248
+ }
229
249
  }
230
250
  const response = yield this.request({
231
251
  path: `/outposts/instances/`,
@@ -256,8 +276,12 @@ class OutpostsApi extends runtime.BaseAPI {
256
276
  const queryParameters = {};
257
277
  const headerParameters = {};
258
278
  headerParameters['Content-Type'] = 'application/json';
259
- if (this.configuration && this.configuration.apiKey) {
260
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
279
+ if (this.configuration && this.configuration.accessToken) {
280
+ const token = this.configuration.accessToken;
281
+ const tokenString = yield token("authentik", []);
282
+ if (tokenString) {
283
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
284
+ }
261
285
  }
262
286
  const response = yield this.request({
263
287
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -288,8 +312,12 @@ class OutpostsApi extends runtime.BaseAPI {
288
312
  }
289
313
  const queryParameters = {};
290
314
  const headerParameters = {};
291
- if (this.configuration && this.configuration.apiKey) {
292
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
315
+ if (this.configuration && this.configuration.accessToken) {
316
+ const token = this.configuration.accessToken;
317
+ const tokenString = yield token("authentik", []);
318
+ if (tokenString) {
319
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
320
+ }
293
321
  }
294
322
  const response = yield this.request({
295
323
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -323,8 +351,12 @@ class OutpostsApi extends runtime.BaseAPI {
323
351
  const queryParameters = {};
324
352
  const headerParameters = {};
325
353
  headerParameters['Content-Type'] = 'application/json';
326
- if (this.configuration && this.configuration.apiKey) {
327
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
354
+ if (this.configuration && this.configuration.accessToken) {
355
+ const token = this.configuration.accessToken;
356
+ const tokenString = yield token("authentik", []);
357
+ if (tokenString) {
358
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
359
+ }
328
360
  }
329
361
  const response = yield this.request({
330
362
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -355,8 +387,12 @@ class OutpostsApi extends runtime.BaseAPI {
355
387
  }
356
388
  const queryParameters = {};
357
389
  const headerParameters = {};
358
- if (this.configuration && this.configuration.apiKey) {
359
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
390
+ if (this.configuration && this.configuration.accessToken) {
391
+ const token = this.configuration.accessToken;
392
+ const tokenString = yield token("authentik", []);
393
+ if (tokenString) {
394
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
395
+ }
360
396
  }
361
397
  const response = yield this.request({
362
398
  path: `/outposts/instances/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -398,8 +434,12 @@ class OutpostsApi extends runtime.BaseAPI {
398
434
  queryParameters['search'] = requestParameters.search;
399
435
  }
400
436
  const headerParameters = {};
401
- if (this.configuration && this.configuration.apiKey) {
402
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
437
+ if (this.configuration && this.configuration.accessToken) {
438
+ const token = this.configuration.accessToken;
439
+ const tokenString = yield token("authentik", []);
440
+ if (tokenString) {
441
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
442
+ }
403
443
  }
404
444
  const response = yield this.request({
405
445
  path: `/outposts/ldap/`,
@@ -429,8 +469,12 @@ class OutpostsApi extends runtime.BaseAPI {
429
469
  }
430
470
  const queryParameters = {};
431
471
  const headerParameters = {};
432
- if (this.configuration && this.configuration.apiKey) {
433
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
472
+ if (this.configuration && this.configuration.accessToken) {
473
+ const token = this.configuration.accessToken;
474
+ const tokenString = yield token("authentik", []);
475
+ if (tokenString) {
476
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
477
+ }
434
478
  }
435
479
  const response = yield this.request({
436
480
  path: `/outposts/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -472,8 +516,12 @@ class OutpostsApi extends runtime.BaseAPI {
472
516
  queryParameters['search'] = requestParameters.search;
473
517
  }
474
518
  const headerParameters = {};
475
- if (this.configuration && this.configuration.apiKey) {
476
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
519
+ if (this.configuration && this.configuration.accessToken) {
520
+ const token = this.configuration.accessToken;
521
+ const tokenString = yield token("authentik", []);
522
+ if (tokenString) {
523
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
524
+ }
477
525
  }
478
526
  const response = yield this.request({
479
527
  path: `/outposts/proxy/`,
@@ -503,8 +551,12 @@ class OutpostsApi extends runtime.BaseAPI {
503
551
  }
504
552
  const queryParameters = {};
505
553
  const headerParameters = {};
506
- if (this.configuration && this.configuration.apiKey) {
507
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
554
+ if (this.configuration && this.configuration.accessToken) {
555
+ const token = this.configuration.accessToken;
556
+ const tokenString = yield token("authentik", []);
557
+ if (tokenString) {
558
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
559
+ }
508
560
  }
509
561
  const response = yield this.request({
510
562
  path: `/outposts/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -546,8 +598,12 @@ class OutpostsApi extends runtime.BaseAPI {
546
598
  queryParameters['search'] = requestParameters.search;
547
599
  }
548
600
  const headerParameters = {};
549
- if (this.configuration && this.configuration.apiKey) {
550
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
601
+ if (this.configuration && this.configuration.accessToken) {
602
+ const token = this.configuration.accessToken;
603
+ const tokenString = yield token("authentik", []);
604
+ if (tokenString) {
605
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
606
+ }
551
607
  }
552
608
  const response = yield this.request({
553
609
  path: `/outposts/radius/`,
@@ -577,8 +633,12 @@ class OutpostsApi extends runtime.BaseAPI {
577
633
  }
578
634
  const queryParameters = {};
579
635
  const headerParameters = {};
580
- if (this.configuration && this.configuration.apiKey) {
581
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
636
+ if (this.configuration && this.configuration.accessToken) {
637
+ const token = this.configuration.accessToken;
638
+ const tokenString = yield token("authentik", []);
639
+ if (tokenString) {
640
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
641
+ }
582
642
  }
583
643
  const response = yield this.request({
584
644
  path: `/outposts/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -608,8 +668,12 @@ class OutpostsApi extends runtime.BaseAPI {
608
668
  }
609
669
  const queryParameters = {};
610
670
  const headerParameters = {};
611
- if (this.configuration && this.configuration.apiKey) {
612
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
671
+ if (this.configuration && this.configuration.accessToken) {
672
+ const token = this.configuration.accessToken;
673
+ const tokenString = yield token("authentik", []);
674
+ if (tokenString) {
675
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
676
+ }
613
677
  }
614
678
  const response = yield this.request({
615
679
  path: `/outposts/service_connections/all/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -650,8 +714,12 @@ class OutpostsApi extends runtime.BaseAPI {
650
714
  queryParameters['search'] = requestParameters.search;
651
715
  }
652
716
  const headerParameters = {};
653
- if (this.configuration && this.configuration.apiKey) {
654
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
717
+ if (this.configuration && this.configuration.accessToken) {
718
+ const token = this.configuration.accessToken;
719
+ const tokenString = yield token("authentik", []);
720
+ if (tokenString) {
721
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
722
+ }
655
723
  }
656
724
  const response = yield this.request({
657
725
  path: `/outposts/service_connections/all/`,
@@ -681,8 +749,12 @@ class OutpostsApi extends runtime.BaseAPI {
681
749
  }
682
750
  const queryParameters = {};
683
751
  const headerParameters = {};
684
- if (this.configuration && this.configuration.apiKey) {
685
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
752
+ if (this.configuration && this.configuration.accessToken) {
753
+ const token = this.configuration.accessToken;
754
+ const tokenString = yield token("authentik", []);
755
+ if (tokenString) {
756
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
757
+ }
686
758
  }
687
759
  const response = yield this.request({
688
760
  path: `/outposts/service_connections/all/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -712,8 +784,12 @@ class OutpostsApi extends runtime.BaseAPI {
712
784
  }
713
785
  const queryParameters = {};
714
786
  const headerParameters = {};
715
- if (this.configuration && this.configuration.apiKey) {
716
- 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
+ }
717
793
  }
718
794
  const response = yield this.request({
719
795
  path: `/outposts/service_connections/all/{uuid}/state/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -740,8 +816,12 @@ class OutpostsApi extends runtime.BaseAPI {
740
816
  return __awaiter(this, void 0, void 0, function* () {
741
817
  const queryParameters = {};
742
818
  const headerParameters = {};
743
- if (this.configuration && this.configuration.apiKey) {
744
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
819
+ if (this.configuration && this.configuration.accessToken) {
820
+ const token = this.configuration.accessToken;
821
+ const tokenString = yield token("authentik", []);
822
+ if (tokenString) {
823
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
824
+ }
745
825
  }
746
826
  const response = yield this.request({
747
827
  path: `/outposts/service_connections/all/types/`,
@@ -771,8 +851,12 @@ class OutpostsApi extends runtime.BaseAPI {
771
851
  }
772
852
  const queryParameters = {};
773
853
  const headerParameters = {};
774
- if (this.configuration && this.configuration.apiKey) {
775
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
854
+ if (this.configuration && this.configuration.accessToken) {
855
+ const token = this.configuration.accessToken;
856
+ const tokenString = yield token("authentik", []);
857
+ if (tokenString) {
858
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
859
+ }
776
860
  }
777
861
  const response = yield this.request({
778
862
  path: `/outposts/service_connections/all/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -803,8 +887,12 @@ class OutpostsApi extends runtime.BaseAPI {
803
887
  const queryParameters = {};
804
888
  const headerParameters = {};
805
889
  headerParameters['Content-Type'] = 'application/json';
806
- if (this.configuration && this.configuration.apiKey) {
807
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
890
+ if (this.configuration && this.configuration.accessToken) {
891
+ const token = this.configuration.accessToken;
892
+ const tokenString = yield token("authentik", []);
893
+ if (tokenString) {
894
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
895
+ }
808
896
  }
809
897
  const response = yield this.request({
810
898
  path: `/outposts/service_connections/docker/`,
@@ -835,8 +923,12 @@ class OutpostsApi extends runtime.BaseAPI {
835
923
  }
836
924
  const queryParameters = {};
837
925
  const headerParameters = {};
838
- if (this.configuration && this.configuration.apiKey) {
839
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
926
+ if (this.configuration && this.configuration.accessToken) {
927
+ const token = this.configuration.accessToken;
928
+ const tokenString = yield token("authentik", []);
929
+ if (tokenString) {
930
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
931
+ }
840
932
  }
841
933
  const response = yield this.request({
842
934
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -889,8 +981,12 @@ class OutpostsApi extends runtime.BaseAPI {
889
981
  queryParameters['url'] = requestParameters.url;
890
982
  }
891
983
  const headerParameters = {};
892
- if (this.configuration && this.configuration.apiKey) {
893
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
984
+ if (this.configuration && this.configuration.accessToken) {
985
+ const token = this.configuration.accessToken;
986
+ const tokenString = yield token("authentik", []);
987
+ if (tokenString) {
988
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
989
+ }
894
990
  }
895
991
  const response = yield this.request({
896
992
  path: `/outposts/service_connections/docker/`,
@@ -921,8 +1017,12 @@ class OutpostsApi extends runtime.BaseAPI {
921
1017
  const queryParameters = {};
922
1018
  const headerParameters = {};
923
1019
  headerParameters['Content-Type'] = 'application/json';
924
- if (this.configuration && this.configuration.apiKey) {
925
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1020
+ if (this.configuration && this.configuration.accessToken) {
1021
+ const token = this.configuration.accessToken;
1022
+ const tokenString = yield token("authentik", []);
1023
+ if (tokenString) {
1024
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1025
+ }
926
1026
  }
927
1027
  const response = yield this.request({
928
1028
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -953,8 +1053,12 @@ class OutpostsApi extends runtime.BaseAPI {
953
1053
  }
954
1054
  const queryParameters = {};
955
1055
  const headerParameters = {};
956
- if (this.configuration && this.configuration.apiKey) {
957
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1056
+ if (this.configuration && this.configuration.accessToken) {
1057
+ const token = this.configuration.accessToken;
1058
+ const tokenString = yield token("authentik", []);
1059
+ if (tokenString) {
1060
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1061
+ }
958
1062
  }
959
1063
  const response = yield this.request({
960
1064
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -988,8 +1092,12 @@ class OutpostsApi extends runtime.BaseAPI {
988
1092
  const queryParameters = {};
989
1093
  const headerParameters = {};
990
1094
  headerParameters['Content-Type'] = 'application/json';
991
- if (this.configuration && this.configuration.apiKey) {
992
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1095
+ if (this.configuration && this.configuration.accessToken) {
1096
+ const token = this.configuration.accessToken;
1097
+ const tokenString = yield token("authentik", []);
1098
+ if (tokenString) {
1099
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1100
+ }
993
1101
  }
994
1102
  const response = yield this.request({
995
1103
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -1020,8 +1128,12 @@ class OutpostsApi extends runtime.BaseAPI {
1020
1128
  }
1021
1129
  const queryParameters = {};
1022
1130
  const headerParameters = {};
1023
- if (this.configuration && this.configuration.apiKey) {
1024
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1131
+ if (this.configuration && this.configuration.accessToken) {
1132
+ const token = this.configuration.accessToken;
1133
+ const tokenString = yield token("authentik", []);
1134
+ if (tokenString) {
1135
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1136
+ }
1025
1137
  }
1026
1138
  const response = yield this.request({
1027
1139
  path: `/outposts/service_connections/docker/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -1052,8 +1164,12 @@ class OutpostsApi extends runtime.BaseAPI {
1052
1164
  const queryParameters = {};
1053
1165
  const headerParameters = {};
1054
1166
  headerParameters['Content-Type'] = 'application/json';
1055
- if (this.configuration && this.configuration.apiKey) {
1056
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1167
+ if (this.configuration && this.configuration.accessToken) {
1168
+ const token = this.configuration.accessToken;
1169
+ const tokenString = yield token("authentik", []);
1170
+ if (tokenString) {
1171
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1172
+ }
1057
1173
  }
1058
1174
  const response = yield this.request({
1059
1175
  path: `/outposts/service_connections/kubernetes/`,
@@ -1084,8 +1200,12 @@ class OutpostsApi extends runtime.BaseAPI {
1084
1200
  }
1085
1201
  const queryParameters = {};
1086
1202
  const headerParameters = {};
1087
- if (this.configuration && this.configuration.apiKey) {
1088
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1203
+ if (this.configuration && this.configuration.accessToken) {
1204
+ const token = this.configuration.accessToken;
1205
+ const tokenString = yield token("authentik", []);
1206
+ if (tokenString) {
1207
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1208
+ }
1089
1209
  }
1090
1210
  const response = yield this.request({
1091
1211
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -1129,8 +1249,12 @@ class OutpostsApi extends runtime.BaseAPI {
1129
1249
  queryParameters['search'] = requestParameters.search;
1130
1250
  }
1131
1251
  const headerParameters = {};
1132
- if (this.configuration && this.configuration.apiKey) {
1133
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1252
+ if (this.configuration && this.configuration.accessToken) {
1253
+ const token = this.configuration.accessToken;
1254
+ const tokenString = yield token("authentik", []);
1255
+ if (tokenString) {
1256
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1257
+ }
1134
1258
  }
1135
1259
  const response = yield this.request({
1136
1260
  path: `/outposts/service_connections/kubernetes/`,
@@ -1161,8 +1285,12 @@ class OutpostsApi extends runtime.BaseAPI {
1161
1285
  const queryParameters = {};
1162
1286
  const headerParameters = {};
1163
1287
  headerParameters['Content-Type'] = 'application/json';
1164
- if (this.configuration && this.configuration.apiKey) {
1165
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1288
+ if (this.configuration && this.configuration.accessToken) {
1289
+ const token = this.configuration.accessToken;
1290
+ const tokenString = yield token("authentik", []);
1291
+ if (tokenString) {
1292
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1293
+ }
1166
1294
  }
1167
1295
  const response = yield this.request({
1168
1296
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -1193,8 +1321,12 @@ class OutpostsApi extends runtime.BaseAPI {
1193
1321
  }
1194
1322
  const queryParameters = {};
1195
1323
  const headerParameters = {};
1196
- if (this.configuration && this.configuration.apiKey) {
1197
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1324
+ if (this.configuration && this.configuration.accessToken) {
1325
+ const token = this.configuration.accessToken;
1326
+ const tokenString = yield token("authentik", []);
1327
+ if (tokenString) {
1328
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1329
+ }
1198
1330
  }
1199
1331
  const response = yield this.request({
1200
1332
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -1228,8 +1360,12 @@ class OutpostsApi extends runtime.BaseAPI {
1228
1360
  const queryParameters = {};
1229
1361
  const headerParameters = {};
1230
1362
  headerParameters['Content-Type'] = 'application/json';
1231
- if (this.configuration && this.configuration.apiKey) {
1232
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1363
+ if (this.configuration && this.configuration.accessToken) {
1364
+ const token = this.configuration.accessToken;
1365
+ const tokenString = yield token("authentik", []);
1366
+ if (tokenString) {
1367
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1368
+ }
1233
1369
  }
1234
1370
  const response = yield this.request({
1235
1371
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -1260,8 +1396,12 @@ class OutpostsApi extends runtime.BaseAPI {
1260
1396
  }
1261
1397
  const queryParameters = {};
1262
1398
  const headerParameters = {};
1263
- if (this.configuration && this.configuration.apiKey) {
1264
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1399
+ if (this.configuration && this.configuration.accessToken) {
1400
+ const token = this.configuration.accessToken;
1401
+ const tokenString = yield token("authentik", []);
1402
+ if (tokenString) {
1403
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1404
+ }
1265
1405
  }
1266
1406
  const response = yield this.request({
1267
1407
  path: `/outposts/service_connections/kubernetes/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),