@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
@@ -36,8 +36,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
36
36
  }
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
- if (this.configuration && this.configuration.apiKey) {
40
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("authentik", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
41
45
  }
42
46
  const response = yield this.request({
43
47
  path: `/propertymappings/all/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -78,8 +82,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
78
82
  queryParameters['search'] = requestParameters.search;
79
83
  }
80
84
  const headerParameters = {};
81
- if (this.configuration && this.configuration.apiKey) {
82
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
85
+ if (this.configuration && this.configuration.accessToken) {
86
+ const token = this.configuration.accessToken;
87
+ const tokenString = yield token("authentik", []);
88
+ if (tokenString) {
89
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
90
+ }
83
91
  }
84
92
  const response = yield this.request({
85
93
  path: `/propertymappings/all/`,
@@ -109,8 +117,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
109
117
  }
110
118
  const queryParameters = {};
111
119
  const headerParameters = {};
112
- if (this.configuration && this.configuration.apiKey) {
113
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
120
+ if (this.configuration && this.configuration.accessToken) {
121
+ const token = this.configuration.accessToken;
122
+ const tokenString = yield token("authentik", []);
123
+ if (tokenString) {
124
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
125
+ }
114
126
  }
115
127
  const response = yield this.request({
116
128
  path: `/propertymappings/all/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -147,8 +159,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
147
159
  }
148
160
  const headerParameters = {};
149
161
  headerParameters['Content-Type'] = 'application/json';
150
- if (this.configuration && this.configuration.apiKey) {
151
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
162
+ if (this.configuration && this.configuration.accessToken) {
163
+ const token = this.configuration.accessToken;
164
+ const tokenString = yield token("authentik", []);
165
+ if (tokenString) {
166
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
167
+ }
152
168
  }
153
169
  const response = yield this.request({
154
170
  path: `/propertymappings/all/{pm_uuid}/test/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -176,8 +192,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
176
192
  return __awaiter(this, void 0, void 0, function* () {
177
193
  const queryParameters = {};
178
194
  const headerParameters = {};
179
- if (this.configuration && this.configuration.apiKey) {
180
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
195
+ if (this.configuration && this.configuration.accessToken) {
196
+ const token = this.configuration.accessToken;
197
+ const tokenString = yield token("authentik", []);
198
+ if (tokenString) {
199
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
200
+ }
181
201
  }
182
202
  const response = yield this.request({
183
203
  path: `/propertymappings/all/types/`,
@@ -207,8 +227,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
207
227
  }
208
228
  const queryParameters = {};
209
229
  const headerParameters = {};
210
- if (this.configuration && this.configuration.apiKey) {
211
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
230
+ if (this.configuration && this.configuration.accessToken) {
231
+ const token = this.configuration.accessToken;
232
+ const tokenString = yield token("authentik", []);
233
+ if (tokenString) {
234
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
235
+ }
212
236
  }
213
237
  const response = yield this.request({
214
238
  path: `/propertymappings/all/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -239,8 +263,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
239
263
  const queryParameters = {};
240
264
  const headerParameters = {};
241
265
  headerParameters['Content-Type'] = 'application/json';
242
- if (this.configuration && this.configuration.apiKey) {
243
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
266
+ if (this.configuration && this.configuration.accessToken) {
267
+ const token = this.configuration.accessToken;
268
+ const tokenString = yield token("authentik", []);
269
+ if (tokenString) {
270
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
271
+ }
244
272
  }
245
273
  const response = yield this.request({
246
274
  path: `/propertymappings/ldap/`,
@@ -271,8 +299,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
271
299
  }
272
300
  const queryParameters = {};
273
301
  const headerParameters = {};
274
- if (this.configuration && this.configuration.apiKey) {
275
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
302
+ if (this.configuration && this.configuration.accessToken) {
303
+ const token = this.configuration.accessToken;
304
+ const tokenString = yield token("authentik", []);
305
+ if (tokenString) {
306
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
307
+ }
276
308
  }
277
309
  const response = yield this.request({
278
310
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -325,8 +357,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
325
357
  queryParameters['search'] = requestParameters.search;
326
358
  }
327
359
  const headerParameters = {};
328
- if (this.configuration && this.configuration.apiKey) {
329
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
360
+ if (this.configuration && this.configuration.accessToken) {
361
+ const token = this.configuration.accessToken;
362
+ const tokenString = yield token("authentik", []);
363
+ if (tokenString) {
364
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
365
+ }
330
366
  }
331
367
  const response = yield this.request({
332
368
  path: `/propertymappings/ldap/`,
@@ -357,8 +393,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
357
393
  const queryParameters = {};
358
394
  const headerParameters = {};
359
395
  headerParameters['Content-Type'] = 'application/json';
360
- if (this.configuration && this.configuration.apiKey) {
361
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
396
+ if (this.configuration && this.configuration.accessToken) {
397
+ const token = this.configuration.accessToken;
398
+ const tokenString = yield token("authentik", []);
399
+ if (tokenString) {
400
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
401
+ }
362
402
  }
363
403
  const response = yield this.request({
364
404
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -389,8 +429,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
389
429
  }
390
430
  const queryParameters = {};
391
431
  const headerParameters = {};
392
- if (this.configuration && this.configuration.apiKey) {
393
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
432
+ if (this.configuration && this.configuration.accessToken) {
433
+ const token = this.configuration.accessToken;
434
+ const tokenString = yield token("authentik", []);
435
+ if (tokenString) {
436
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
437
+ }
394
438
  }
395
439
  const response = yield this.request({
396
440
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -424,8 +468,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
424
468
  const queryParameters = {};
425
469
  const headerParameters = {};
426
470
  headerParameters['Content-Type'] = 'application/json';
427
- if (this.configuration && this.configuration.apiKey) {
428
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
471
+ if (this.configuration && this.configuration.accessToken) {
472
+ const token = this.configuration.accessToken;
473
+ const tokenString = yield token("authentik", []);
474
+ if (tokenString) {
475
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
476
+ }
429
477
  }
430
478
  const response = yield this.request({
431
479
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -456,8 +504,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
456
504
  }
457
505
  const queryParameters = {};
458
506
  const headerParameters = {};
459
- if (this.configuration && this.configuration.apiKey) {
460
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
507
+ if (this.configuration && this.configuration.accessToken) {
508
+ const token = this.configuration.accessToken;
509
+ const tokenString = yield token("authentik", []);
510
+ if (tokenString) {
511
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
512
+ }
461
513
  }
462
514
  const response = yield this.request({
463
515
  path: `/propertymappings/ldap/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -488,8 +540,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
488
540
  const queryParameters = {};
489
541
  const headerParameters = {};
490
542
  headerParameters['Content-Type'] = 'application/json';
491
- if (this.configuration && this.configuration.apiKey) {
492
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
543
+ if (this.configuration && this.configuration.accessToken) {
544
+ const token = this.configuration.accessToken;
545
+ const tokenString = yield token("authentik", []);
546
+ if (tokenString) {
547
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
548
+ }
493
549
  }
494
550
  const response = yield this.request({
495
551
  path: `/propertymappings/notification/`,
@@ -520,8 +576,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
520
576
  }
521
577
  const queryParameters = {};
522
578
  const headerParameters = {};
523
- if (this.configuration && this.configuration.apiKey) {
524
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
579
+ if (this.configuration && this.configuration.accessToken) {
580
+ const token = this.configuration.accessToken;
581
+ const tokenString = yield token("authentik", []);
582
+ if (tokenString) {
583
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
584
+ }
525
585
  }
526
586
  const response = yield this.request({
527
587
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -562,8 +622,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
562
622
  queryParameters['search'] = requestParameters.search;
563
623
  }
564
624
  const headerParameters = {};
565
- if (this.configuration && this.configuration.apiKey) {
566
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
625
+ if (this.configuration && this.configuration.accessToken) {
626
+ const token = this.configuration.accessToken;
627
+ const tokenString = yield token("authentik", []);
628
+ if (tokenString) {
629
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
630
+ }
567
631
  }
568
632
  const response = yield this.request({
569
633
  path: `/propertymappings/notification/`,
@@ -594,8 +658,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
594
658
  const queryParameters = {};
595
659
  const headerParameters = {};
596
660
  headerParameters['Content-Type'] = 'application/json';
597
- if (this.configuration && this.configuration.apiKey) {
598
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
661
+ if (this.configuration && this.configuration.accessToken) {
662
+ const token = this.configuration.accessToken;
663
+ const tokenString = yield token("authentik", []);
664
+ if (tokenString) {
665
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
666
+ }
599
667
  }
600
668
  const response = yield this.request({
601
669
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -626,8 +694,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
626
694
  }
627
695
  const queryParameters = {};
628
696
  const headerParameters = {};
629
- if (this.configuration && this.configuration.apiKey) {
630
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
697
+ if (this.configuration && this.configuration.accessToken) {
698
+ const token = this.configuration.accessToken;
699
+ const tokenString = yield token("authentik", []);
700
+ if (tokenString) {
701
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
702
+ }
631
703
  }
632
704
  const response = yield this.request({
633
705
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -661,8 +733,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
661
733
  const queryParameters = {};
662
734
  const headerParameters = {};
663
735
  headerParameters['Content-Type'] = 'application/json';
664
- if (this.configuration && this.configuration.apiKey) {
665
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
736
+ if (this.configuration && this.configuration.accessToken) {
737
+ const token = this.configuration.accessToken;
738
+ const tokenString = yield token("authentik", []);
739
+ if (tokenString) {
740
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
741
+ }
666
742
  }
667
743
  const response = yield this.request({
668
744
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -693,8 +769,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
693
769
  }
694
770
  const queryParameters = {};
695
771
  const headerParameters = {};
696
- if (this.configuration && this.configuration.apiKey) {
697
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
772
+ if (this.configuration && this.configuration.accessToken) {
773
+ const token = this.configuration.accessToken;
774
+ const tokenString = yield token("authentik", []);
775
+ if (tokenString) {
776
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
777
+ }
698
778
  }
699
779
  const response = yield this.request({
700
780
  path: `/propertymappings/notification/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -725,8 +805,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
725
805
  const queryParameters = {};
726
806
  const headerParameters = {};
727
807
  headerParameters['Content-Type'] = 'application/json';
728
- if (this.configuration && this.configuration.apiKey) {
729
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
808
+ if (this.configuration && this.configuration.accessToken) {
809
+ const token = this.configuration.accessToken;
810
+ const tokenString = yield token("authentik", []);
811
+ if (tokenString) {
812
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
813
+ }
730
814
  }
731
815
  const response = yield this.request({
732
816
  path: `/propertymappings/rac/`,
@@ -757,8 +841,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
757
841
  }
758
842
  const queryParameters = {};
759
843
  const headerParameters = {};
760
- if (this.configuration && this.configuration.apiKey) {
761
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
844
+ if (this.configuration && this.configuration.accessToken) {
845
+ const token = this.configuration.accessToken;
846
+ const tokenString = yield token("authentik", []);
847
+ if (tokenString) {
848
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
849
+ }
762
850
  }
763
851
  const response = yield this.request({
764
852
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -802,8 +890,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
802
890
  queryParameters['search'] = requestParameters.search;
803
891
  }
804
892
  const headerParameters = {};
805
- if (this.configuration && this.configuration.apiKey) {
806
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
893
+ if (this.configuration && this.configuration.accessToken) {
894
+ const token = this.configuration.accessToken;
895
+ const tokenString = yield token("authentik", []);
896
+ if (tokenString) {
897
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
898
+ }
807
899
  }
808
900
  const response = yield this.request({
809
901
  path: `/propertymappings/rac/`,
@@ -834,8 +926,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
834
926
  const queryParameters = {};
835
927
  const headerParameters = {};
836
928
  headerParameters['Content-Type'] = 'application/json';
837
- if (this.configuration && this.configuration.apiKey) {
838
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
929
+ if (this.configuration && this.configuration.accessToken) {
930
+ const token = this.configuration.accessToken;
931
+ const tokenString = yield token("authentik", []);
932
+ if (tokenString) {
933
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
934
+ }
839
935
  }
840
936
  const response = yield this.request({
841
937
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -866,8 +962,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
866
962
  }
867
963
  const queryParameters = {};
868
964
  const headerParameters = {};
869
- if (this.configuration && this.configuration.apiKey) {
870
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
965
+ if (this.configuration && this.configuration.accessToken) {
966
+ const token = this.configuration.accessToken;
967
+ const tokenString = yield token("authentik", []);
968
+ if (tokenString) {
969
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
970
+ }
871
971
  }
872
972
  const response = yield this.request({
873
973
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -901,8 +1001,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
901
1001
  const queryParameters = {};
902
1002
  const headerParameters = {};
903
1003
  headerParameters['Content-Type'] = 'application/json';
904
- if (this.configuration && this.configuration.apiKey) {
905
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1004
+ if (this.configuration && this.configuration.accessToken) {
1005
+ const token = this.configuration.accessToken;
1006
+ const tokenString = yield token("authentik", []);
1007
+ if (tokenString) {
1008
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1009
+ }
906
1010
  }
907
1011
  const response = yield this.request({
908
1012
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -933,8 +1037,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
933
1037
  }
934
1038
  const queryParameters = {};
935
1039
  const headerParameters = {};
936
- if (this.configuration && this.configuration.apiKey) {
937
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1040
+ if (this.configuration && this.configuration.accessToken) {
1041
+ const token = this.configuration.accessToken;
1042
+ const tokenString = yield token("authentik", []);
1043
+ if (tokenString) {
1044
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1045
+ }
938
1046
  }
939
1047
  const response = yield this.request({
940
1048
  path: `/propertymappings/rac/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -965,8 +1073,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
965
1073
  const queryParameters = {};
966
1074
  const headerParameters = {};
967
1075
  headerParameters['Content-Type'] = 'application/json';
968
- if (this.configuration && this.configuration.apiKey) {
969
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1076
+ if (this.configuration && this.configuration.accessToken) {
1077
+ const token = this.configuration.accessToken;
1078
+ const tokenString = yield token("authentik", []);
1079
+ if (tokenString) {
1080
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1081
+ }
970
1082
  }
971
1083
  const response = yield this.request({
972
1084
  path: `/propertymappings/saml/`,
@@ -997,8 +1109,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
997
1109
  }
998
1110
  const queryParameters = {};
999
1111
  const headerParameters = {};
1000
- if (this.configuration && this.configuration.apiKey) {
1001
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1112
+ if (this.configuration && this.configuration.accessToken) {
1113
+ const token = this.configuration.accessToken;
1114
+ const tokenString = yield token("authentik", []);
1115
+ if (tokenString) {
1116
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1117
+ }
1002
1118
  }
1003
1119
  const response = yield this.request({
1004
1120
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1054,8 +1170,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1054
1170
  queryParameters['search'] = requestParameters.search;
1055
1171
  }
1056
1172
  const headerParameters = {};
1057
- if (this.configuration && this.configuration.apiKey) {
1058
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1173
+ if (this.configuration && this.configuration.accessToken) {
1174
+ const token = this.configuration.accessToken;
1175
+ const tokenString = yield token("authentik", []);
1176
+ if (tokenString) {
1177
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1178
+ }
1059
1179
  }
1060
1180
  const response = yield this.request({
1061
1181
  path: `/propertymappings/saml/`,
@@ -1086,8 +1206,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1086
1206
  const queryParameters = {};
1087
1207
  const headerParameters = {};
1088
1208
  headerParameters['Content-Type'] = 'application/json';
1089
- if (this.configuration && this.configuration.apiKey) {
1090
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1209
+ if (this.configuration && this.configuration.accessToken) {
1210
+ const token = this.configuration.accessToken;
1211
+ const tokenString = yield token("authentik", []);
1212
+ if (tokenString) {
1213
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1214
+ }
1091
1215
  }
1092
1216
  const response = yield this.request({
1093
1217
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1118,8 +1242,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1118
1242
  }
1119
1243
  const queryParameters = {};
1120
1244
  const headerParameters = {};
1121
- if (this.configuration && this.configuration.apiKey) {
1122
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1245
+ if (this.configuration && this.configuration.accessToken) {
1246
+ const token = this.configuration.accessToken;
1247
+ const tokenString = yield token("authentik", []);
1248
+ if (tokenString) {
1249
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1250
+ }
1123
1251
  }
1124
1252
  const response = yield this.request({
1125
1253
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1153,8 +1281,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1153
1281
  const queryParameters = {};
1154
1282
  const headerParameters = {};
1155
1283
  headerParameters['Content-Type'] = 'application/json';
1156
- if (this.configuration && this.configuration.apiKey) {
1157
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1284
+ if (this.configuration && this.configuration.accessToken) {
1285
+ const token = this.configuration.accessToken;
1286
+ const tokenString = yield token("authentik", []);
1287
+ if (tokenString) {
1288
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1289
+ }
1158
1290
  }
1159
1291
  const response = yield this.request({
1160
1292
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1185,8 +1317,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1185
1317
  }
1186
1318
  const queryParameters = {};
1187
1319
  const headerParameters = {};
1188
- if (this.configuration && this.configuration.apiKey) {
1189
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1320
+ if (this.configuration && this.configuration.accessToken) {
1321
+ const token = this.configuration.accessToken;
1322
+ const tokenString = yield token("authentik", []);
1323
+ if (tokenString) {
1324
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1325
+ }
1190
1326
  }
1191
1327
  const response = yield this.request({
1192
1328
  path: `/propertymappings/saml/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1217,8 +1353,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1217
1353
  const queryParameters = {};
1218
1354
  const headerParameters = {};
1219
1355
  headerParameters['Content-Type'] = 'application/json';
1220
- if (this.configuration && this.configuration.apiKey) {
1221
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1356
+ if (this.configuration && this.configuration.accessToken) {
1357
+ const token = this.configuration.accessToken;
1358
+ const tokenString = yield token("authentik", []);
1359
+ if (tokenString) {
1360
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1361
+ }
1222
1362
  }
1223
1363
  const response = yield this.request({
1224
1364
  path: `/propertymappings/scim/`,
@@ -1249,8 +1389,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1249
1389
  }
1250
1390
  const queryParameters = {};
1251
1391
  const headerParameters = {};
1252
- if (this.configuration && this.configuration.apiKey) {
1253
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1392
+ if (this.configuration && this.configuration.accessToken) {
1393
+ const token = this.configuration.accessToken;
1394
+ const tokenString = yield token("authentik", []);
1395
+ if (tokenString) {
1396
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1397
+ }
1254
1398
  }
1255
1399
  const response = yield this.request({
1256
1400
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1300,8 +1444,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1300
1444
  queryParameters['search'] = requestParameters.search;
1301
1445
  }
1302
1446
  const headerParameters = {};
1303
- if (this.configuration && this.configuration.apiKey) {
1304
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1447
+ if (this.configuration && this.configuration.accessToken) {
1448
+ const token = this.configuration.accessToken;
1449
+ const tokenString = yield token("authentik", []);
1450
+ if (tokenString) {
1451
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1452
+ }
1305
1453
  }
1306
1454
  const response = yield this.request({
1307
1455
  path: `/propertymappings/scim/`,
@@ -1332,8 +1480,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1332
1480
  const queryParameters = {};
1333
1481
  const headerParameters = {};
1334
1482
  headerParameters['Content-Type'] = 'application/json';
1335
- if (this.configuration && this.configuration.apiKey) {
1336
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1483
+ if (this.configuration && this.configuration.accessToken) {
1484
+ const token = this.configuration.accessToken;
1485
+ const tokenString = yield token("authentik", []);
1486
+ if (tokenString) {
1487
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1488
+ }
1337
1489
  }
1338
1490
  const response = yield this.request({
1339
1491
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1364,8 +1516,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1364
1516
  }
1365
1517
  const queryParameters = {};
1366
1518
  const headerParameters = {};
1367
- if (this.configuration && this.configuration.apiKey) {
1368
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1519
+ if (this.configuration && this.configuration.accessToken) {
1520
+ const token = this.configuration.accessToken;
1521
+ const tokenString = yield token("authentik", []);
1522
+ if (tokenString) {
1523
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1524
+ }
1369
1525
  }
1370
1526
  const response = yield this.request({
1371
1527
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1399,8 +1555,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1399
1555
  const queryParameters = {};
1400
1556
  const headerParameters = {};
1401
1557
  headerParameters['Content-Type'] = 'application/json';
1402
- if (this.configuration && this.configuration.apiKey) {
1403
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1558
+ if (this.configuration && this.configuration.accessToken) {
1559
+ const token = this.configuration.accessToken;
1560
+ const tokenString = yield token("authentik", []);
1561
+ if (tokenString) {
1562
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1563
+ }
1404
1564
  }
1405
1565
  const response = yield this.request({
1406
1566
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1431,8 +1591,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1431
1591
  }
1432
1592
  const queryParameters = {};
1433
1593
  const headerParameters = {};
1434
- if (this.configuration && this.configuration.apiKey) {
1435
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1594
+ if (this.configuration && this.configuration.accessToken) {
1595
+ const token = this.configuration.accessToken;
1596
+ const tokenString = yield token("authentik", []);
1597
+ if (tokenString) {
1598
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1599
+ }
1436
1600
  }
1437
1601
  const response = yield this.request({
1438
1602
  path: `/propertymappings/scim/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1463,8 +1627,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1463
1627
  const queryParameters = {};
1464
1628
  const headerParameters = {};
1465
1629
  headerParameters['Content-Type'] = 'application/json';
1466
- if (this.configuration && this.configuration.apiKey) {
1467
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1630
+ if (this.configuration && this.configuration.accessToken) {
1631
+ const token = this.configuration.accessToken;
1632
+ const tokenString = yield token("authentik", []);
1633
+ if (tokenString) {
1634
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1635
+ }
1468
1636
  }
1469
1637
  const response = yield this.request({
1470
1638
  path: `/propertymappings/scope/`,
@@ -1495,8 +1663,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1495
1663
  }
1496
1664
  const queryParameters = {};
1497
1665
  const headerParameters = {};
1498
- if (this.configuration && this.configuration.apiKey) {
1499
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1666
+ if (this.configuration && this.configuration.accessToken) {
1667
+ const token = this.configuration.accessToken;
1668
+ const tokenString = yield token("authentik", []);
1669
+ if (tokenString) {
1670
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1671
+ }
1500
1672
  }
1501
1673
  const response = yield this.request({
1502
1674
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1543,8 +1715,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1543
1715
  queryParameters['search'] = requestParameters.search;
1544
1716
  }
1545
1717
  const headerParameters = {};
1546
- if (this.configuration && this.configuration.apiKey) {
1547
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1718
+ if (this.configuration && this.configuration.accessToken) {
1719
+ const token = this.configuration.accessToken;
1720
+ const tokenString = yield token("authentik", []);
1721
+ if (tokenString) {
1722
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1723
+ }
1548
1724
  }
1549
1725
  const response = yield this.request({
1550
1726
  path: `/propertymappings/scope/`,
@@ -1575,8 +1751,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1575
1751
  const queryParameters = {};
1576
1752
  const headerParameters = {};
1577
1753
  headerParameters['Content-Type'] = 'application/json';
1578
- if (this.configuration && this.configuration.apiKey) {
1579
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1754
+ if (this.configuration && this.configuration.accessToken) {
1755
+ const token = this.configuration.accessToken;
1756
+ const tokenString = yield token("authentik", []);
1757
+ if (tokenString) {
1758
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1759
+ }
1580
1760
  }
1581
1761
  const response = yield this.request({
1582
1762
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1607,8 +1787,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1607
1787
  }
1608
1788
  const queryParameters = {};
1609
1789
  const headerParameters = {};
1610
- if (this.configuration && this.configuration.apiKey) {
1611
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1790
+ if (this.configuration && this.configuration.accessToken) {
1791
+ const token = this.configuration.accessToken;
1792
+ const tokenString = yield token("authentik", []);
1793
+ if (tokenString) {
1794
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1795
+ }
1612
1796
  }
1613
1797
  const response = yield this.request({
1614
1798
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1642,8 +1826,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1642
1826
  const queryParameters = {};
1643
1827
  const headerParameters = {};
1644
1828
  headerParameters['Content-Type'] = 'application/json';
1645
- if (this.configuration && this.configuration.apiKey) {
1646
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1829
+ if (this.configuration && this.configuration.accessToken) {
1830
+ const token = this.configuration.accessToken;
1831
+ const tokenString = yield token("authentik", []);
1832
+ if (tokenString) {
1833
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1834
+ }
1647
1835
  }
1648
1836
  const response = yield this.request({
1649
1837
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
@@ -1674,8 +1862,12 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1674
1862
  }
1675
1863
  const queryParameters = {};
1676
1864
  const headerParameters = {};
1677
- if (this.configuration && this.configuration.apiKey) {
1678
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1865
+ if (this.configuration && this.configuration.accessToken) {
1866
+ const token = this.configuration.accessToken;
1867
+ const tokenString = yield token("authentik", []);
1868
+ if (tokenString) {
1869
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1870
+ }
1679
1871
  }
1680
1872
  const response = yield this.request({
1681
1873
  path: `/propertymappings/scope/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),