@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
@@ -39,8 +39,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
39
39
  }
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
- if (this.configuration && this.configuration.apiKey) {
43
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("authentik", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
44
48
  }
45
49
  const response = yield this.request({
46
50
  path: `/propertymappings/all/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -81,8 +85,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
81
85
  queryParameters['search'] = requestParameters.search;
82
86
  }
83
87
  const headerParameters = {};
84
- if (this.configuration && this.configuration.apiKey) {
85
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("authentik", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
86
94
  }
87
95
  const response = yield this.request({
88
96
  path: `/propertymappings/all/`,
@@ -112,8 +120,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
112
120
  }
113
121
  const queryParameters = {};
114
122
  const headerParameters = {};
115
- if (this.configuration && this.configuration.apiKey) {
116
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
123
+ if (this.configuration && this.configuration.accessToken) {
124
+ const token = this.configuration.accessToken;
125
+ const tokenString = yield token("authentik", []);
126
+ if (tokenString) {
127
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
128
+ }
117
129
  }
118
130
  const response = yield this.request({
119
131
  path: `/propertymappings/all/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -150,8 +162,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
150
162
  }
151
163
  const headerParameters = {};
152
164
  headerParameters['Content-Type'] = 'application/json';
153
- if (this.configuration && this.configuration.apiKey) {
154
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
165
+ if (this.configuration && this.configuration.accessToken) {
166
+ const token = this.configuration.accessToken;
167
+ const tokenString = yield token("authentik", []);
168
+ if (tokenString) {
169
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
170
+ }
155
171
  }
156
172
  const response = yield this.request({
157
173
  path: `/propertymappings/all/{pm_uuid}/test/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -179,8 +195,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
179
195
  return __awaiter(this, void 0, void 0, function* () {
180
196
  const queryParameters = {};
181
197
  const headerParameters = {};
182
- if (this.configuration && this.configuration.apiKey) {
183
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
198
+ if (this.configuration && this.configuration.accessToken) {
199
+ const token = this.configuration.accessToken;
200
+ const tokenString = yield token("authentik", []);
201
+ if (tokenString) {
202
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
203
+ }
184
204
  }
185
205
  const response = yield this.request({
186
206
  path: `/propertymappings/all/types/`,
@@ -210,8 +230,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
210
230
  }
211
231
  const queryParameters = {};
212
232
  const headerParameters = {};
213
- if (this.configuration && this.configuration.apiKey) {
214
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
233
+ if (this.configuration && this.configuration.accessToken) {
234
+ const token = this.configuration.accessToken;
235
+ const tokenString = yield token("authentik", []);
236
+ if (tokenString) {
237
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
238
+ }
215
239
  }
216
240
  const response = yield this.request({
217
241
  path: `/propertymappings/all/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -242,8 +266,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
242
266
  const queryParameters = {};
243
267
  const headerParameters = {};
244
268
  headerParameters['Content-Type'] = 'application/json';
245
- if (this.configuration && this.configuration.apiKey) {
246
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
269
+ if (this.configuration && this.configuration.accessToken) {
270
+ const token = this.configuration.accessToken;
271
+ const tokenString = yield token("authentik", []);
272
+ if (tokenString) {
273
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
274
+ }
247
275
  }
248
276
  const response = yield this.request({
249
277
  path: `/propertymappings/ldap/`,
@@ -274,8 +302,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
274
302
  }
275
303
  const queryParameters = {};
276
304
  const headerParameters = {};
277
- if (this.configuration && this.configuration.apiKey) {
278
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
305
+ if (this.configuration && this.configuration.accessToken) {
306
+ const token = this.configuration.accessToken;
307
+ const tokenString = yield token("authentik", []);
308
+ if (tokenString) {
309
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
310
+ }
279
311
  }
280
312
  const response = yield this.request({
281
313
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -328,8 +360,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
328
360
  queryParameters['search'] = requestParameters.search;
329
361
  }
330
362
  const headerParameters = {};
331
- if (this.configuration && this.configuration.apiKey) {
332
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
363
+ if (this.configuration && this.configuration.accessToken) {
364
+ const token = this.configuration.accessToken;
365
+ const tokenString = yield token("authentik", []);
366
+ if (tokenString) {
367
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
368
+ }
333
369
  }
334
370
  const response = yield this.request({
335
371
  path: `/propertymappings/ldap/`,
@@ -360,8 +396,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
360
396
  const queryParameters = {};
361
397
  const headerParameters = {};
362
398
  headerParameters['Content-Type'] = 'application/json';
363
- if (this.configuration && this.configuration.apiKey) {
364
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
399
+ if (this.configuration && this.configuration.accessToken) {
400
+ const token = this.configuration.accessToken;
401
+ const tokenString = yield token("authentik", []);
402
+ if (tokenString) {
403
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
404
+ }
365
405
  }
366
406
  const response = yield this.request({
367
407
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -392,8 +432,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
392
432
  }
393
433
  const queryParameters = {};
394
434
  const headerParameters = {};
395
- if (this.configuration && this.configuration.apiKey) {
396
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
435
+ if (this.configuration && this.configuration.accessToken) {
436
+ const token = this.configuration.accessToken;
437
+ const tokenString = yield token("authentik", []);
438
+ if (tokenString) {
439
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
440
+ }
397
441
  }
398
442
  const response = yield this.request({
399
443
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -427,8 +471,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
427
471
  const queryParameters = {};
428
472
  const headerParameters = {};
429
473
  headerParameters['Content-Type'] = 'application/json';
430
- if (this.configuration && this.configuration.apiKey) {
431
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
474
+ if (this.configuration && this.configuration.accessToken) {
475
+ const token = this.configuration.accessToken;
476
+ const tokenString = yield token("authentik", []);
477
+ if (tokenString) {
478
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
479
+ }
432
480
  }
433
481
  const response = yield this.request({
434
482
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -459,8 +507,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
459
507
  }
460
508
  const queryParameters = {};
461
509
  const headerParameters = {};
462
- if (this.configuration && this.configuration.apiKey) {
463
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
510
+ if (this.configuration && this.configuration.accessToken) {
511
+ const token = this.configuration.accessToken;
512
+ const tokenString = yield token("authentik", []);
513
+ if (tokenString) {
514
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
515
+ }
464
516
  }
465
517
  const response = yield this.request({
466
518
  path: `/propertymappings/ldap/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -491,8 +543,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
491
543
  const queryParameters = {};
492
544
  const headerParameters = {};
493
545
  headerParameters['Content-Type'] = 'application/json';
494
- if (this.configuration && this.configuration.apiKey) {
495
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
546
+ if (this.configuration && this.configuration.accessToken) {
547
+ const token = this.configuration.accessToken;
548
+ const tokenString = yield token("authentik", []);
549
+ if (tokenString) {
550
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
551
+ }
496
552
  }
497
553
  const response = yield this.request({
498
554
  path: `/propertymappings/notification/`,
@@ -523,8 +579,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
523
579
  }
524
580
  const queryParameters = {};
525
581
  const headerParameters = {};
526
- if (this.configuration && this.configuration.apiKey) {
527
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
582
+ if (this.configuration && this.configuration.accessToken) {
583
+ const token = this.configuration.accessToken;
584
+ const tokenString = yield token("authentik", []);
585
+ if (tokenString) {
586
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
587
+ }
528
588
  }
529
589
  const response = yield this.request({
530
590
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -565,8 +625,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
565
625
  queryParameters['search'] = requestParameters.search;
566
626
  }
567
627
  const headerParameters = {};
568
- if (this.configuration && this.configuration.apiKey) {
569
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
628
+ if (this.configuration && this.configuration.accessToken) {
629
+ const token = this.configuration.accessToken;
630
+ const tokenString = yield token("authentik", []);
631
+ if (tokenString) {
632
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
633
+ }
570
634
  }
571
635
  const response = yield this.request({
572
636
  path: `/propertymappings/notification/`,
@@ -597,8 +661,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
597
661
  const queryParameters = {};
598
662
  const headerParameters = {};
599
663
  headerParameters['Content-Type'] = 'application/json';
600
- if (this.configuration && this.configuration.apiKey) {
601
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
664
+ if (this.configuration && this.configuration.accessToken) {
665
+ const token = this.configuration.accessToken;
666
+ const tokenString = yield token("authentik", []);
667
+ if (tokenString) {
668
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
669
+ }
602
670
  }
603
671
  const response = yield this.request({
604
672
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -629,8 +697,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
629
697
  }
630
698
  const queryParameters = {};
631
699
  const headerParameters = {};
632
- if (this.configuration && this.configuration.apiKey) {
633
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
700
+ if (this.configuration && this.configuration.accessToken) {
701
+ const token = this.configuration.accessToken;
702
+ const tokenString = yield token("authentik", []);
703
+ if (tokenString) {
704
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
705
+ }
634
706
  }
635
707
  const response = yield this.request({
636
708
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -664,8 +736,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
664
736
  const queryParameters = {};
665
737
  const headerParameters = {};
666
738
  headerParameters['Content-Type'] = 'application/json';
667
- if (this.configuration && this.configuration.apiKey) {
668
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
739
+ if (this.configuration && this.configuration.accessToken) {
740
+ const token = this.configuration.accessToken;
741
+ const tokenString = yield token("authentik", []);
742
+ if (tokenString) {
743
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
744
+ }
669
745
  }
670
746
  const response = yield this.request({
671
747
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -696,8 +772,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
696
772
  }
697
773
  const queryParameters = {};
698
774
  const headerParameters = {};
699
- if (this.configuration && this.configuration.apiKey) {
700
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
775
+ if (this.configuration && this.configuration.accessToken) {
776
+ const token = this.configuration.accessToken;
777
+ const tokenString = yield token("authentik", []);
778
+ if (tokenString) {
779
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
780
+ }
701
781
  }
702
782
  const response = yield this.request({
703
783
  path: `/propertymappings/notification/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -728,8 +808,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
728
808
  const queryParameters = {};
729
809
  const headerParameters = {};
730
810
  headerParameters['Content-Type'] = 'application/json';
731
- if (this.configuration && this.configuration.apiKey) {
732
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
811
+ if (this.configuration && this.configuration.accessToken) {
812
+ const token = this.configuration.accessToken;
813
+ const tokenString = yield token("authentik", []);
814
+ if (tokenString) {
815
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
816
+ }
733
817
  }
734
818
  const response = yield this.request({
735
819
  path: `/propertymappings/rac/`,
@@ -760,8 +844,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
760
844
  }
761
845
  const queryParameters = {};
762
846
  const headerParameters = {};
763
- if (this.configuration && this.configuration.apiKey) {
764
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
847
+ if (this.configuration && this.configuration.accessToken) {
848
+ const token = this.configuration.accessToken;
849
+ const tokenString = yield token("authentik", []);
850
+ if (tokenString) {
851
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
852
+ }
765
853
  }
766
854
  const response = yield this.request({
767
855
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -805,8 +893,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
805
893
  queryParameters['search'] = requestParameters.search;
806
894
  }
807
895
  const headerParameters = {};
808
- if (this.configuration && this.configuration.apiKey) {
809
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
896
+ if (this.configuration && this.configuration.accessToken) {
897
+ const token = this.configuration.accessToken;
898
+ const tokenString = yield token("authentik", []);
899
+ if (tokenString) {
900
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
901
+ }
810
902
  }
811
903
  const response = yield this.request({
812
904
  path: `/propertymappings/rac/`,
@@ -837,8 +929,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
837
929
  const queryParameters = {};
838
930
  const headerParameters = {};
839
931
  headerParameters['Content-Type'] = 'application/json';
840
- if (this.configuration && this.configuration.apiKey) {
841
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
932
+ if (this.configuration && this.configuration.accessToken) {
933
+ const token = this.configuration.accessToken;
934
+ const tokenString = yield token("authentik", []);
935
+ if (tokenString) {
936
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
937
+ }
842
938
  }
843
939
  const response = yield this.request({
844
940
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -869,8 +965,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
869
965
  }
870
966
  const queryParameters = {};
871
967
  const headerParameters = {};
872
- if (this.configuration && this.configuration.apiKey) {
873
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
968
+ if (this.configuration && this.configuration.accessToken) {
969
+ const token = this.configuration.accessToken;
970
+ const tokenString = yield token("authentik", []);
971
+ if (tokenString) {
972
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
973
+ }
874
974
  }
875
975
  const response = yield this.request({
876
976
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -904,8 +1004,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
904
1004
  const queryParameters = {};
905
1005
  const headerParameters = {};
906
1006
  headerParameters['Content-Type'] = 'application/json';
907
- if (this.configuration && this.configuration.apiKey) {
908
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1007
+ if (this.configuration && this.configuration.accessToken) {
1008
+ const token = this.configuration.accessToken;
1009
+ const tokenString = yield token("authentik", []);
1010
+ if (tokenString) {
1011
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1012
+ }
909
1013
  }
910
1014
  const response = yield this.request({
911
1015
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -936,8 +1040,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
936
1040
  }
937
1041
  const queryParameters = {};
938
1042
  const headerParameters = {};
939
- if (this.configuration && this.configuration.apiKey) {
940
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1043
+ if (this.configuration && this.configuration.accessToken) {
1044
+ const token = this.configuration.accessToken;
1045
+ const tokenString = yield token("authentik", []);
1046
+ if (tokenString) {
1047
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1048
+ }
941
1049
  }
942
1050
  const response = yield this.request({
943
1051
  path: `/propertymappings/rac/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -968,8 +1076,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
968
1076
  const queryParameters = {};
969
1077
  const headerParameters = {};
970
1078
  headerParameters['Content-Type'] = 'application/json';
971
- if (this.configuration && this.configuration.apiKey) {
972
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1079
+ if (this.configuration && this.configuration.accessToken) {
1080
+ const token = this.configuration.accessToken;
1081
+ const tokenString = yield token("authentik", []);
1082
+ if (tokenString) {
1083
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1084
+ }
973
1085
  }
974
1086
  const response = yield this.request({
975
1087
  path: `/propertymappings/saml/`,
@@ -1000,8 +1112,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1000
1112
  }
1001
1113
  const queryParameters = {};
1002
1114
  const headerParameters = {};
1003
- if (this.configuration && this.configuration.apiKey) {
1004
- 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
+ }
1005
1121
  }
1006
1122
  const response = yield this.request({
1007
1123
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1057,8 +1173,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1057
1173
  queryParameters['search'] = requestParameters.search;
1058
1174
  }
1059
1175
  const headerParameters = {};
1060
- if (this.configuration && this.configuration.apiKey) {
1061
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1176
+ if (this.configuration && this.configuration.accessToken) {
1177
+ const token = this.configuration.accessToken;
1178
+ const tokenString = yield token("authentik", []);
1179
+ if (tokenString) {
1180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1181
+ }
1062
1182
  }
1063
1183
  const response = yield this.request({
1064
1184
  path: `/propertymappings/saml/`,
@@ -1089,8 +1209,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1089
1209
  const queryParameters = {};
1090
1210
  const headerParameters = {};
1091
1211
  headerParameters['Content-Type'] = 'application/json';
1092
- if (this.configuration && this.configuration.apiKey) {
1093
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1212
+ if (this.configuration && this.configuration.accessToken) {
1213
+ const token = this.configuration.accessToken;
1214
+ const tokenString = yield token("authentik", []);
1215
+ if (tokenString) {
1216
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1217
+ }
1094
1218
  }
1095
1219
  const response = yield this.request({
1096
1220
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1121,8 +1245,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1121
1245
  }
1122
1246
  const queryParameters = {};
1123
1247
  const headerParameters = {};
1124
- if (this.configuration && this.configuration.apiKey) {
1125
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1248
+ if (this.configuration && this.configuration.accessToken) {
1249
+ const token = this.configuration.accessToken;
1250
+ const tokenString = yield token("authentik", []);
1251
+ if (tokenString) {
1252
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1253
+ }
1126
1254
  }
1127
1255
  const response = yield this.request({
1128
1256
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1156,8 +1284,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1156
1284
  const queryParameters = {};
1157
1285
  const headerParameters = {};
1158
1286
  headerParameters['Content-Type'] = 'application/json';
1159
- if (this.configuration && this.configuration.apiKey) {
1160
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1287
+ if (this.configuration && this.configuration.accessToken) {
1288
+ const token = this.configuration.accessToken;
1289
+ const tokenString = yield token("authentik", []);
1290
+ if (tokenString) {
1291
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1292
+ }
1161
1293
  }
1162
1294
  const response = yield this.request({
1163
1295
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1188,8 +1320,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1188
1320
  }
1189
1321
  const queryParameters = {};
1190
1322
  const headerParameters = {};
1191
- if (this.configuration && this.configuration.apiKey) {
1192
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1323
+ if (this.configuration && this.configuration.accessToken) {
1324
+ const token = this.configuration.accessToken;
1325
+ const tokenString = yield token("authentik", []);
1326
+ if (tokenString) {
1327
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1328
+ }
1193
1329
  }
1194
1330
  const response = yield this.request({
1195
1331
  path: `/propertymappings/saml/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1220,8 +1356,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1220
1356
  const queryParameters = {};
1221
1357
  const headerParameters = {};
1222
1358
  headerParameters['Content-Type'] = 'application/json';
1223
- if (this.configuration && this.configuration.apiKey) {
1224
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1359
+ if (this.configuration && this.configuration.accessToken) {
1360
+ const token = this.configuration.accessToken;
1361
+ const tokenString = yield token("authentik", []);
1362
+ if (tokenString) {
1363
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1364
+ }
1225
1365
  }
1226
1366
  const response = yield this.request({
1227
1367
  path: `/propertymappings/scim/`,
@@ -1252,8 +1392,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1252
1392
  }
1253
1393
  const queryParameters = {};
1254
1394
  const headerParameters = {};
1255
- if (this.configuration && this.configuration.apiKey) {
1256
- 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
+ }
1257
1401
  }
1258
1402
  const response = yield this.request({
1259
1403
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1303,8 +1447,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1303
1447
  queryParameters['search'] = requestParameters.search;
1304
1448
  }
1305
1449
  const headerParameters = {};
1306
- if (this.configuration && this.configuration.apiKey) {
1307
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1450
+ if (this.configuration && this.configuration.accessToken) {
1451
+ const token = this.configuration.accessToken;
1452
+ const tokenString = yield token("authentik", []);
1453
+ if (tokenString) {
1454
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1455
+ }
1308
1456
  }
1309
1457
  const response = yield this.request({
1310
1458
  path: `/propertymappings/scim/`,
@@ -1335,8 +1483,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1335
1483
  const queryParameters = {};
1336
1484
  const headerParameters = {};
1337
1485
  headerParameters['Content-Type'] = 'application/json';
1338
- if (this.configuration && this.configuration.apiKey) {
1339
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1486
+ if (this.configuration && this.configuration.accessToken) {
1487
+ const token = this.configuration.accessToken;
1488
+ const tokenString = yield token("authentik", []);
1489
+ if (tokenString) {
1490
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1491
+ }
1340
1492
  }
1341
1493
  const response = yield this.request({
1342
1494
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1367,8 +1519,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1367
1519
  }
1368
1520
  const queryParameters = {};
1369
1521
  const headerParameters = {};
1370
- if (this.configuration && this.configuration.apiKey) {
1371
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1522
+ if (this.configuration && this.configuration.accessToken) {
1523
+ const token = this.configuration.accessToken;
1524
+ const tokenString = yield token("authentik", []);
1525
+ if (tokenString) {
1526
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1527
+ }
1372
1528
  }
1373
1529
  const response = yield this.request({
1374
1530
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1402,8 +1558,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1402
1558
  const queryParameters = {};
1403
1559
  const headerParameters = {};
1404
1560
  headerParameters['Content-Type'] = 'application/json';
1405
- if (this.configuration && this.configuration.apiKey) {
1406
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1561
+ if (this.configuration && this.configuration.accessToken) {
1562
+ const token = this.configuration.accessToken;
1563
+ const tokenString = yield token("authentik", []);
1564
+ if (tokenString) {
1565
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1566
+ }
1407
1567
  }
1408
1568
  const response = yield this.request({
1409
1569
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1434,8 +1594,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1434
1594
  }
1435
1595
  const queryParameters = {};
1436
1596
  const headerParameters = {};
1437
- if (this.configuration && this.configuration.apiKey) {
1438
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1597
+ if (this.configuration && this.configuration.accessToken) {
1598
+ const token = this.configuration.accessToken;
1599
+ const tokenString = yield token("authentik", []);
1600
+ if (tokenString) {
1601
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1602
+ }
1439
1603
  }
1440
1604
  const response = yield this.request({
1441
1605
  path: `/propertymappings/scim/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1466,8 +1630,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1466
1630
  const queryParameters = {};
1467
1631
  const headerParameters = {};
1468
1632
  headerParameters['Content-Type'] = 'application/json';
1469
- if (this.configuration && this.configuration.apiKey) {
1470
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1633
+ if (this.configuration && this.configuration.accessToken) {
1634
+ const token = this.configuration.accessToken;
1635
+ const tokenString = yield token("authentik", []);
1636
+ if (tokenString) {
1637
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1638
+ }
1471
1639
  }
1472
1640
  const response = yield this.request({
1473
1641
  path: `/propertymappings/scope/`,
@@ -1498,8 +1666,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1498
1666
  }
1499
1667
  const queryParameters = {};
1500
1668
  const headerParameters = {};
1501
- if (this.configuration && this.configuration.apiKey) {
1502
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1669
+ if (this.configuration && this.configuration.accessToken) {
1670
+ const token = this.configuration.accessToken;
1671
+ const tokenString = yield token("authentik", []);
1672
+ if (tokenString) {
1673
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1674
+ }
1503
1675
  }
1504
1676
  const response = yield this.request({
1505
1677
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1546,8 +1718,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1546
1718
  queryParameters['search'] = requestParameters.search;
1547
1719
  }
1548
1720
  const headerParameters = {};
1549
- if (this.configuration && this.configuration.apiKey) {
1550
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1721
+ if (this.configuration && this.configuration.accessToken) {
1722
+ const token = this.configuration.accessToken;
1723
+ const tokenString = yield token("authentik", []);
1724
+ if (tokenString) {
1725
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1726
+ }
1551
1727
  }
1552
1728
  const response = yield this.request({
1553
1729
  path: `/propertymappings/scope/`,
@@ -1578,8 +1754,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1578
1754
  const queryParameters = {};
1579
1755
  const headerParameters = {};
1580
1756
  headerParameters['Content-Type'] = 'application/json';
1581
- if (this.configuration && this.configuration.apiKey) {
1582
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1757
+ if (this.configuration && this.configuration.accessToken) {
1758
+ const token = this.configuration.accessToken;
1759
+ const tokenString = yield token("authentik", []);
1760
+ if (tokenString) {
1761
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1762
+ }
1583
1763
  }
1584
1764
  const response = yield this.request({
1585
1765
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1610,8 +1790,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1610
1790
  }
1611
1791
  const queryParameters = {};
1612
1792
  const headerParameters = {};
1613
- if (this.configuration && this.configuration.apiKey) {
1614
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1793
+ if (this.configuration && this.configuration.accessToken) {
1794
+ const token = this.configuration.accessToken;
1795
+ const tokenString = yield token("authentik", []);
1796
+ if (tokenString) {
1797
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1798
+ }
1615
1799
  }
1616
1800
  const response = yield this.request({
1617
1801
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1645,8 +1829,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1645
1829
  const queryParameters = {};
1646
1830
  const headerParameters = {};
1647
1831
  headerParameters['Content-Type'] = 'application/json';
1648
- if (this.configuration && this.configuration.apiKey) {
1649
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1832
+ if (this.configuration && this.configuration.accessToken) {
1833
+ const token = this.configuration.accessToken;
1834
+ const tokenString = yield token("authentik", []);
1835
+ if (tokenString) {
1836
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1837
+ }
1650
1838
  }
1651
1839
  const response = yield this.request({
1652
1840
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1677,8 +1865,12 @@ class PropertymappingsApi extends runtime.BaseAPI {
1677
1865
  }
1678
1866
  const queryParameters = {};
1679
1867
  const headerParameters = {};
1680
- if (this.configuration && this.configuration.apiKey) {
1681
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1868
+ if (this.configuration && this.configuration.accessToken) {
1869
+ const token = this.configuration.accessToken;
1870
+ const tokenString = yield token("authentik", []);
1871
+ if (tokenString) {
1872
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1873
+ }
1682
1874
  }
1683
1875
  const response = yield this.request({
1684
1876
  path: `/propertymappings/scope/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),