@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
@@ -307,10 +307,14 @@ export class OutpostsApi extends runtime.BaseAPI {
307
307
 
308
308
  headerParameters['Content-Type'] = 'application/json';
309
309
 
310
- if (this.configuration && this.configuration.apiKey) {
311
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
312
- }
310
+ if (this.configuration && this.configuration.accessToken) {
311
+ const token = this.configuration.accessToken;
312
+ const tokenString = await token("authentik", []);
313
313
 
314
+ if (tokenString) {
315
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
316
+ }
317
+ }
314
318
  const response = await this.request({
315
319
  path: `/outposts/instances/`,
316
320
  method: 'POST',
@@ -338,10 +342,14 @@ export class OutpostsApi extends runtime.BaseAPI {
338
342
 
339
343
  const headerParameters: runtime.HTTPHeaders = {};
340
344
 
341
- if (this.configuration && this.configuration.apiKey) {
342
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
343
- }
345
+ if (this.configuration && this.configuration.accessToken) {
346
+ const token = this.configuration.accessToken;
347
+ const tokenString = await token("authentik", []);
344
348
 
349
+ if (tokenString) {
350
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
351
+ }
352
+ }
345
353
  const response = await this.request({
346
354
  path: `/outposts/instances/default_settings/`,
347
355
  method: 'GET',
@@ -372,10 +380,14 @@ export class OutpostsApi extends runtime.BaseAPI {
372
380
 
373
381
  const headerParameters: runtime.HTTPHeaders = {};
374
382
 
375
- if (this.configuration && this.configuration.apiKey) {
376
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
377
- }
383
+ if (this.configuration && this.configuration.accessToken) {
384
+ const token = this.configuration.accessToken;
385
+ const tokenString = await token("authentik", []);
378
386
 
387
+ if (tokenString) {
388
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
389
+ }
390
+ }
379
391
  const response = await this.request({
380
392
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
381
393
  method: 'DELETE',
@@ -445,10 +457,14 @@ export class OutpostsApi extends runtime.BaseAPI {
445
457
 
446
458
  const headerParameters: runtime.HTTPHeaders = {};
447
459
 
448
- if (this.configuration && this.configuration.apiKey) {
449
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
450
- }
460
+ if (this.configuration && this.configuration.accessToken) {
461
+ const token = this.configuration.accessToken;
462
+ const tokenString = await token("authentik", []);
451
463
 
464
+ if (tokenString) {
465
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
466
+ }
467
+ }
452
468
  const response = await this.request({
453
469
  path: `/outposts/instances/{uuid}/health/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
454
470
  method: 'GET',
@@ -523,10 +539,14 @@ export class OutpostsApi extends runtime.BaseAPI {
523
539
 
524
540
  const headerParameters: runtime.HTTPHeaders = {};
525
541
 
526
- if (this.configuration && this.configuration.apiKey) {
527
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
528
- }
542
+ if (this.configuration && this.configuration.accessToken) {
543
+ const token = this.configuration.accessToken;
544
+ const tokenString = await token("authentik", []);
529
545
 
546
+ if (tokenString) {
547
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
548
+ }
549
+ }
530
550
  const response = await this.request({
531
551
  path: `/outposts/instances/`,
532
552
  method: 'GET',
@@ -559,10 +579,14 @@ export class OutpostsApi extends runtime.BaseAPI {
559
579
 
560
580
  headerParameters['Content-Type'] = 'application/json';
561
581
 
562
- if (this.configuration && this.configuration.apiKey) {
563
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
564
- }
582
+ if (this.configuration && this.configuration.accessToken) {
583
+ const token = this.configuration.accessToken;
584
+ const tokenString = await token("authentik", []);
565
585
 
586
+ if (tokenString) {
587
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
588
+ }
589
+ }
566
590
  const response = await this.request({
567
591
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
568
592
  method: 'PATCH',
@@ -594,10 +618,14 @@ export class OutpostsApi extends runtime.BaseAPI {
594
618
 
595
619
  const headerParameters: runtime.HTTPHeaders = {};
596
620
 
597
- if (this.configuration && this.configuration.apiKey) {
598
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
599
- }
621
+ if (this.configuration && this.configuration.accessToken) {
622
+ const token = this.configuration.accessToken;
623
+ const tokenString = await token("authentik", []);
600
624
 
625
+ if (tokenString) {
626
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
627
+ }
628
+ }
601
629
  const response = await this.request({
602
630
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
603
631
  method: 'GET',
@@ -634,10 +662,14 @@ export class OutpostsApi extends runtime.BaseAPI {
634
662
 
635
663
  headerParameters['Content-Type'] = 'application/json';
636
664
 
637
- if (this.configuration && this.configuration.apiKey) {
638
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
639
- }
665
+ if (this.configuration && this.configuration.accessToken) {
666
+ const token = this.configuration.accessToken;
667
+ const tokenString = await token("authentik", []);
640
668
 
669
+ if (tokenString) {
670
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
671
+ }
672
+ }
641
673
  const response = await this.request({
642
674
  path: `/outposts/instances/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
643
675
  method: 'PUT',
@@ -669,10 +701,14 @@ export class OutpostsApi extends runtime.BaseAPI {
669
701
 
670
702
  const headerParameters: runtime.HTTPHeaders = {};
671
703
 
672
- if (this.configuration && this.configuration.apiKey) {
673
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
674
- }
704
+ if (this.configuration && this.configuration.accessToken) {
705
+ const token = this.configuration.accessToken;
706
+ const tokenString = await token("authentik", []);
675
707
 
708
+ if (tokenString) {
709
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
710
+ }
711
+ }
676
712
  const response = await this.request({
677
713
  path: `/outposts/instances/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
678
714
  method: 'GET',
@@ -719,10 +755,14 @@ export class OutpostsApi extends runtime.BaseAPI {
719
755
 
720
756
  const headerParameters: runtime.HTTPHeaders = {};
721
757
 
722
- if (this.configuration && this.configuration.apiKey) {
723
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
724
- }
758
+ if (this.configuration && this.configuration.accessToken) {
759
+ const token = this.configuration.accessToken;
760
+ const tokenString = await token("authentik", []);
725
761
 
762
+ if (tokenString) {
763
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
764
+ }
765
+ }
726
766
  const response = await this.request({
727
767
  path: `/outposts/ldap/`,
728
768
  method: 'GET',
@@ -753,10 +793,14 @@ export class OutpostsApi extends runtime.BaseAPI {
753
793
 
754
794
  const headerParameters: runtime.HTTPHeaders = {};
755
795
 
756
- if (this.configuration && this.configuration.apiKey) {
757
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
758
- }
796
+ if (this.configuration && this.configuration.accessToken) {
797
+ const token = this.configuration.accessToken;
798
+ const tokenString = await token("authentik", []);
759
799
 
800
+ if (tokenString) {
801
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
802
+ }
803
+ }
760
804
  const response = await this.request({
761
805
  path: `/outposts/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
762
806
  method: 'GET',
@@ -803,10 +847,14 @@ export class OutpostsApi extends runtime.BaseAPI {
803
847
 
804
848
  const headerParameters: runtime.HTTPHeaders = {};
805
849
 
806
- if (this.configuration && this.configuration.apiKey) {
807
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
808
- }
850
+ if (this.configuration && this.configuration.accessToken) {
851
+ const token = this.configuration.accessToken;
852
+ const tokenString = await token("authentik", []);
809
853
 
854
+ if (tokenString) {
855
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
856
+ }
857
+ }
810
858
  const response = await this.request({
811
859
  path: `/outposts/proxy/`,
812
860
  method: 'GET',
@@ -837,10 +885,14 @@ export class OutpostsApi extends runtime.BaseAPI {
837
885
 
838
886
  const headerParameters: runtime.HTTPHeaders = {};
839
887
 
840
- if (this.configuration && this.configuration.apiKey) {
841
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
842
- }
888
+ if (this.configuration && this.configuration.accessToken) {
889
+ const token = this.configuration.accessToken;
890
+ const tokenString = await token("authentik", []);
843
891
 
892
+ if (tokenString) {
893
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
894
+ }
895
+ }
844
896
  const response = await this.request({
845
897
  path: `/outposts/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
846
898
  method: 'GET',
@@ -887,10 +939,14 @@ export class OutpostsApi extends runtime.BaseAPI {
887
939
 
888
940
  const headerParameters: runtime.HTTPHeaders = {};
889
941
 
890
- if (this.configuration && this.configuration.apiKey) {
891
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
892
- }
942
+ if (this.configuration && this.configuration.accessToken) {
943
+ const token = this.configuration.accessToken;
944
+ const tokenString = await token("authentik", []);
893
945
 
946
+ if (tokenString) {
947
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
948
+ }
949
+ }
894
950
  const response = await this.request({
895
951
  path: `/outposts/radius/`,
896
952
  method: 'GET',
@@ -921,10 +977,14 @@ export class OutpostsApi extends runtime.BaseAPI {
921
977
 
922
978
  const headerParameters: runtime.HTTPHeaders = {};
923
979
 
924
- if (this.configuration && this.configuration.apiKey) {
925
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
926
- }
980
+ if (this.configuration && this.configuration.accessToken) {
981
+ const token = this.configuration.accessToken;
982
+ const tokenString = await token("authentik", []);
927
983
 
984
+ if (tokenString) {
985
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
986
+ }
987
+ }
928
988
  const response = await this.request({
929
989
  path: `/outposts/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
930
990
  method: 'GET',
@@ -955,10 +1015,14 @@ export class OutpostsApi extends runtime.BaseAPI {
955
1015
 
956
1016
  const headerParameters: runtime.HTTPHeaders = {};
957
1017
 
958
- if (this.configuration && this.configuration.apiKey) {
959
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
960
- }
1018
+ if (this.configuration && this.configuration.accessToken) {
1019
+ const token = this.configuration.accessToken;
1020
+ const tokenString = await token("authentik", []);
961
1021
 
1022
+ if (tokenString) {
1023
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1024
+ }
1025
+ }
962
1026
  const response = await this.request({
963
1027
  path: `/outposts/service_connections/all/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
964
1028
  method: 'DELETE',
@@ -1004,10 +1068,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1004
1068
 
1005
1069
  const headerParameters: runtime.HTTPHeaders = {};
1006
1070
 
1007
- if (this.configuration && this.configuration.apiKey) {
1008
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1009
- }
1071
+ if (this.configuration && this.configuration.accessToken) {
1072
+ const token = this.configuration.accessToken;
1073
+ const tokenString = await token("authentik", []);
1010
1074
 
1075
+ if (tokenString) {
1076
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1077
+ }
1078
+ }
1011
1079
  const response = await this.request({
1012
1080
  path: `/outposts/service_connections/all/`,
1013
1081
  method: 'GET',
@@ -1038,10 +1106,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1038
1106
 
1039
1107
  const headerParameters: runtime.HTTPHeaders = {};
1040
1108
 
1041
- if (this.configuration && this.configuration.apiKey) {
1042
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1043
- }
1109
+ if (this.configuration && this.configuration.accessToken) {
1110
+ const token = this.configuration.accessToken;
1111
+ const tokenString = await token("authentik", []);
1044
1112
 
1113
+ if (tokenString) {
1114
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1115
+ }
1116
+ }
1045
1117
  const response = await this.request({
1046
1118
  path: `/outposts/service_connections/all/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1047
1119
  method: 'GET',
@@ -1072,10 +1144,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1072
1144
 
1073
1145
  const headerParameters: runtime.HTTPHeaders = {};
1074
1146
 
1075
- if (this.configuration && this.configuration.apiKey) {
1076
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1077
- }
1147
+ if (this.configuration && this.configuration.accessToken) {
1148
+ const token = this.configuration.accessToken;
1149
+ const tokenString = await token("authentik", []);
1078
1150
 
1151
+ if (tokenString) {
1152
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1153
+ }
1154
+ }
1079
1155
  const response = await this.request({
1080
1156
  path: `/outposts/service_connections/all/{uuid}/state/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1081
1157
  method: 'GET',
@@ -1102,10 +1178,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1102
1178
 
1103
1179
  const headerParameters: runtime.HTTPHeaders = {};
1104
1180
 
1105
- if (this.configuration && this.configuration.apiKey) {
1106
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1107
- }
1181
+ if (this.configuration && this.configuration.accessToken) {
1182
+ const token = this.configuration.accessToken;
1183
+ const tokenString = await token("authentik", []);
1108
1184
 
1185
+ if (tokenString) {
1186
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1187
+ }
1188
+ }
1109
1189
  const response = await this.request({
1110
1190
  path: `/outposts/service_connections/all/types/`,
1111
1191
  method: 'GET',
@@ -1136,10 +1216,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1136
1216
 
1137
1217
  const headerParameters: runtime.HTTPHeaders = {};
1138
1218
 
1139
- if (this.configuration && this.configuration.apiKey) {
1140
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1141
- }
1219
+ if (this.configuration && this.configuration.accessToken) {
1220
+ const token = this.configuration.accessToken;
1221
+ const tokenString = await token("authentik", []);
1142
1222
 
1223
+ if (tokenString) {
1224
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1225
+ }
1226
+ }
1143
1227
  const response = await this.request({
1144
1228
  path: `/outposts/service_connections/all/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1145
1229
  method: 'GET',
@@ -1172,10 +1256,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1172
1256
 
1173
1257
  headerParameters['Content-Type'] = 'application/json';
1174
1258
 
1175
- if (this.configuration && this.configuration.apiKey) {
1176
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1177
- }
1259
+ if (this.configuration && this.configuration.accessToken) {
1260
+ const token = this.configuration.accessToken;
1261
+ const tokenString = await token("authentik", []);
1178
1262
 
1263
+ if (tokenString) {
1264
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1265
+ }
1266
+ }
1179
1267
  const response = await this.request({
1180
1268
  path: `/outposts/service_connections/docker/`,
1181
1269
  method: 'POST',
@@ -1207,10 +1295,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1207
1295
 
1208
1296
  const headerParameters: runtime.HTTPHeaders = {};
1209
1297
 
1210
- if (this.configuration && this.configuration.apiKey) {
1211
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1212
- }
1298
+ if (this.configuration && this.configuration.accessToken) {
1299
+ const token = this.configuration.accessToken;
1300
+ const tokenString = await token("authentik", []);
1213
1301
 
1302
+ if (tokenString) {
1303
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1304
+ }
1305
+ }
1214
1306
  const response = await this.request({
1215
1307
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1216
1308
  method: 'DELETE',
@@ -1272,10 +1364,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1272
1364
 
1273
1365
  const headerParameters: runtime.HTTPHeaders = {};
1274
1366
 
1275
- if (this.configuration && this.configuration.apiKey) {
1276
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1277
- }
1367
+ if (this.configuration && this.configuration.accessToken) {
1368
+ const token = this.configuration.accessToken;
1369
+ const tokenString = await token("authentik", []);
1278
1370
 
1371
+ if (tokenString) {
1372
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1373
+ }
1374
+ }
1279
1375
  const response = await this.request({
1280
1376
  path: `/outposts/service_connections/docker/`,
1281
1377
  method: 'GET',
@@ -1308,10 +1404,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1308
1404
 
1309
1405
  headerParameters['Content-Type'] = 'application/json';
1310
1406
 
1311
- if (this.configuration && this.configuration.apiKey) {
1312
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1313
- }
1407
+ if (this.configuration && this.configuration.accessToken) {
1408
+ const token = this.configuration.accessToken;
1409
+ const tokenString = await token("authentik", []);
1314
1410
 
1411
+ if (tokenString) {
1412
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1413
+ }
1414
+ }
1315
1415
  const response = await this.request({
1316
1416
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1317
1417
  method: 'PATCH',
@@ -1343,10 +1443,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1343
1443
 
1344
1444
  const headerParameters: runtime.HTTPHeaders = {};
1345
1445
 
1346
- if (this.configuration && this.configuration.apiKey) {
1347
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1348
- }
1446
+ if (this.configuration && this.configuration.accessToken) {
1447
+ const token = this.configuration.accessToken;
1448
+ const tokenString = await token("authentik", []);
1349
1449
 
1450
+ if (tokenString) {
1451
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1452
+ }
1453
+ }
1350
1454
  const response = await this.request({
1351
1455
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1352
1456
  method: 'GET',
@@ -1383,10 +1487,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1383
1487
 
1384
1488
  headerParameters['Content-Type'] = 'application/json';
1385
1489
 
1386
- if (this.configuration && this.configuration.apiKey) {
1387
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1388
- }
1490
+ if (this.configuration && this.configuration.accessToken) {
1491
+ const token = this.configuration.accessToken;
1492
+ const tokenString = await token("authentik", []);
1389
1493
 
1494
+ if (tokenString) {
1495
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1496
+ }
1497
+ }
1390
1498
  const response = await this.request({
1391
1499
  path: `/outposts/service_connections/docker/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1392
1500
  method: 'PUT',
@@ -1418,10 +1526,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1418
1526
 
1419
1527
  const headerParameters: runtime.HTTPHeaders = {};
1420
1528
 
1421
- if (this.configuration && this.configuration.apiKey) {
1422
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1423
- }
1529
+ if (this.configuration && this.configuration.accessToken) {
1530
+ const token = this.configuration.accessToken;
1531
+ const tokenString = await token("authentik", []);
1424
1532
 
1533
+ if (tokenString) {
1534
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1535
+ }
1536
+ }
1425
1537
  const response = await this.request({
1426
1538
  path: `/outposts/service_connections/docker/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1427
1539
  method: 'GET',
@@ -1454,10 +1566,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1454
1566
 
1455
1567
  headerParameters['Content-Type'] = 'application/json';
1456
1568
 
1457
- if (this.configuration && this.configuration.apiKey) {
1458
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1459
- }
1569
+ if (this.configuration && this.configuration.accessToken) {
1570
+ const token = this.configuration.accessToken;
1571
+ const tokenString = await token("authentik", []);
1460
1572
 
1573
+ if (tokenString) {
1574
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1575
+ }
1576
+ }
1461
1577
  const response = await this.request({
1462
1578
  path: `/outposts/service_connections/kubernetes/`,
1463
1579
  method: 'POST',
@@ -1489,10 +1605,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1489
1605
 
1490
1606
  const headerParameters: runtime.HTTPHeaders = {};
1491
1607
 
1492
- if (this.configuration && this.configuration.apiKey) {
1493
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1494
- }
1608
+ if (this.configuration && this.configuration.accessToken) {
1609
+ const token = this.configuration.accessToken;
1610
+ const tokenString = await token("authentik", []);
1495
1611
 
1612
+ if (tokenString) {
1613
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1614
+ }
1615
+ }
1496
1616
  const response = await this.request({
1497
1617
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1498
1618
  method: 'DELETE',
@@ -1542,10 +1662,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1542
1662
 
1543
1663
  const headerParameters: runtime.HTTPHeaders = {};
1544
1664
 
1545
- if (this.configuration && this.configuration.apiKey) {
1546
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1547
- }
1665
+ if (this.configuration && this.configuration.accessToken) {
1666
+ const token = this.configuration.accessToken;
1667
+ const tokenString = await token("authentik", []);
1548
1668
 
1669
+ if (tokenString) {
1670
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1671
+ }
1672
+ }
1549
1673
  const response = await this.request({
1550
1674
  path: `/outposts/service_connections/kubernetes/`,
1551
1675
  method: 'GET',
@@ -1578,10 +1702,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1578
1702
 
1579
1703
  headerParameters['Content-Type'] = 'application/json';
1580
1704
 
1581
- if (this.configuration && this.configuration.apiKey) {
1582
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1583
- }
1705
+ if (this.configuration && this.configuration.accessToken) {
1706
+ const token = this.configuration.accessToken;
1707
+ const tokenString = await token("authentik", []);
1584
1708
 
1709
+ if (tokenString) {
1710
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1711
+ }
1712
+ }
1585
1713
  const response = await this.request({
1586
1714
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1587
1715
  method: 'PATCH',
@@ -1613,10 +1741,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1613
1741
 
1614
1742
  const headerParameters: runtime.HTTPHeaders = {};
1615
1743
 
1616
- if (this.configuration && this.configuration.apiKey) {
1617
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1618
- }
1744
+ if (this.configuration && this.configuration.accessToken) {
1745
+ const token = this.configuration.accessToken;
1746
+ const tokenString = await token("authentik", []);
1619
1747
 
1748
+ if (tokenString) {
1749
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1750
+ }
1751
+ }
1620
1752
  const response = await this.request({
1621
1753
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1622
1754
  method: 'GET',
@@ -1653,10 +1785,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1653
1785
 
1654
1786
  headerParameters['Content-Type'] = 'application/json';
1655
1787
 
1656
- if (this.configuration && this.configuration.apiKey) {
1657
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1658
- }
1788
+ if (this.configuration && this.configuration.accessToken) {
1789
+ const token = this.configuration.accessToken;
1790
+ const tokenString = await token("authentik", []);
1659
1791
 
1792
+ if (tokenString) {
1793
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1794
+ }
1795
+ }
1660
1796
  const response = await this.request({
1661
1797
  path: `/outposts/service_connections/kubernetes/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1662
1798
  method: 'PUT',
@@ -1688,10 +1824,14 @@ export class OutpostsApi extends runtime.BaseAPI {
1688
1824
 
1689
1825
  const headerParameters: runtime.HTTPHeaders = {};
1690
1826
 
1691
- if (this.configuration && this.configuration.apiKey) {
1692
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1693
- }
1827
+ if (this.configuration && this.configuration.accessToken) {
1828
+ const token = this.configuration.accessToken;
1829
+ const tokenString = await token("authentik", []);
1694
1830
 
1831
+ if (tokenString) {
1832
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1833
+ }
1834
+ }
1695
1835
  const response = await this.request({
1696
1836
  path: `/outposts/service_connections/kubernetes/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
1697
1837
  method: 'GET',