@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/models/AuthenticatorValidateStage.js +5 -0
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
- package/src/models/AuthenticatorValidateStage.ts +22 -0
- package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -39,8 +39,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
39
39
|
queryParameters['user'] = requestParameters.user;
|
40
40
|
}
|
41
41
|
const headerParameters = {};
|
42
|
-
if (this.configuration && this.configuration.
|
43
|
-
|
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: `/authenticators/admin/all/`,
|
@@ -71,8 +75,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
71
75
|
const queryParameters = {};
|
72
76
|
const headerParameters = {};
|
73
77
|
headerParameters['Content-Type'] = 'application/json';
|
74
|
-
if (this.configuration && this.configuration.
|
75
|
-
|
78
|
+
if (this.configuration && this.configuration.accessToken) {
|
79
|
+
const token = this.configuration.accessToken;
|
80
|
+
const tokenString = yield token("authentik", []);
|
81
|
+
if (tokenString) {
|
82
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
83
|
+
}
|
76
84
|
}
|
77
85
|
const response = yield this.request({
|
78
86
|
path: `/authenticators/admin/duo/`,
|
@@ -103,8 +111,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
103
111
|
}
|
104
112
|
const queryParameters = {};
|
105
113
|
const headerParameters = {};
|
106
|
-
if (this.configuration && this.configuration.
|
107
|
-
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
115
|
+
const token = this.configuration.accessToken;
|
116
|
+
const tokenString = yield token("authentik", []);
|
117
|
+
if (tokenString) {
|
118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
119
|
+
}
|
108
120
|
}
|
109
121
|
const response = yield this.request({
|
110
122
|
path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -145,8 +157,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
145
157
|
queryParameters['search'] = requestParameters.search;
|
146
158
|
}
|
147
159
|
const headerParameters = {};
|
148
|
-
if (this.configuration && this.configuration.
|
149
|
-
|
160
|
+
if (this.configuration && this.configuration.accessToken) {
|
161
|
+
const token = this.configuration.accessToken;
|
162
|
+
const tokenString = yield token("authentik", []);
|
163
|
+
if (tokenString) {
|
164
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
165
|
+
}
|
150
166
|
}
|
151
167
|
const response = yield this.request({
|
152
168
|
path: `/authenticators/admin/duo/`,
|
@@ -177,8 +193,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
177
193
|
const queryParameters = {};
|
178
194
|
const headerParameters = {};
|
179
195
|
headerParameters['Content-Type'] = 'application/json';
|
180
|
-
if (this.configuration && this.configuration.
|
181
|
-
|
196
|
+
if (this.configuration && this.configuration.accessToken) {
|
197
|
+
const token = this.configuration.accessToken;
|
198
|
+
const tokenString = yield token("authentik", []);
|
199
|
+
if (tokenString) {
|
200
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
201
|
+
}
|
182
202
|
}
|
183
203
|
const response = yield this.request({
|
184
204
|
path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -209,8 +229,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
209
229
|
}
|
210
230
|
const queryParameters = {};
|
211
231
|
const headerParameters = {};
|
212
|
-
if (this.configuration && this.configuration.
|
213
|
-
|
232
|
+
if (this.configuration && this.configuration.accessToken) {
|
233
|
+
const token = this.configuration.accessToken;
|
234
|
+
const tokenString = yield token("authentik", []);
|
235
|
+
if (tokenString) {
|
236
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
237
|
+
}
|
214
238
|
}
|
215
239
|
const response = yield this.request({
|
216
240
|
path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -244,8 +268,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
244
268
|
const queryParameters = {};
|
245
269
|
const headerParameters = {};
|
246
270
|
headerParameters['Content-Type'] = 'application/json';
|
247
|
-
if (this.configuration && this.configuration.
|
248
|
-
|
271
|
+
if (this.configuration && this.configuration.accessToken) {
|
272
|
+
const token = this.configuration.accessToken;
|
273
|
+
const tokenString = yield token("authentik", []);
|
274
|
+
if (tokenString) {
|
275
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
276
|
+
}
|
249
277
|
}
|
250
278
|
const response = yield this.request({
|
251
279
|
path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -277,8 +305,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
277
305
|
const queryParameters = {};
|
278
306
|
const headerParameters = {};
|
279
307
|
headerParameters['Content-Type'] = 'application/json';
|
280
|
-
if (this.configuration && this.configuration.
|
281
|
-
|
308
|
+
if (this.configuration && this.configuration.accessToken) {
|
309
|
+
const token = this.configuration.accessToken;
|
310
|
+
const tokenString = yield token("authentik", []);
|
311
|
+
if (tokenString) {
|
312
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
313
|
+
}
|
282
314
|
}
|
283
315
|
const response = yield this.request({
|
284
316
|
path: `/authenticators/admin/sms/`,
|
@@ -309,8 +341,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
309
341
|
}
|
310
342
|
const queryParameters = {};
|
311
343
|
const headerParameters = {};
|
312
|
-
if (this.configuration && this.configuration.
|
313
|
-
|
344
|
+
if (this.configuration && this.configuration.accessToken) {
|
345
|
+
const token = this.configuration.accessToken;
|
346
|
+
const tokenString = yield token("authentik", []);
|
347
|
+
if (tokenString) {
|
348
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
349
|
+
}
|
314
350
|
}
|
315
351
|
const response = yield this.request({
|
316
352
|
path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -351,8 +387,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
351
387
|
queryParameters['search'] = requestParameters.search;
|
352
388
|
}
|
353
389
|
const headerParameters = {};
|
354
|
-
if (this.configuration && this.configuration.
|
355
|
-
|
390
|
+
if (this.configuration && this.configuration.accessToken) {
|
391
|
+
const token = this.configuration.accessToken;
|
392
|
+
const tokenString = yield token("authentik", []);
|
393
|
+
if (tokenString) {
|
394
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
395
|
+
}
|
356
396
|
}
|
357
397
|
const response = yield this.request({
|
358
398
|
path: `/authenticators/admin/sms/`,
|
@@ -383,8 +423,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
383
423
|
const queryParameters = {};
|
384
424
|
const headerParameters = {};
|
385
425
|
headerParameters['Content-Type'] = 'application/json';
|
386
|
-
if (this.configuration && this.configuration.
|
387
|
-
|
426
|
+
if (this.configuration && this.configuration.accessToken) {
|
427
|
+
const token = this.configuration.accessToken;
|
428
|
+
const tokenString = yield token("authentik", []);
|
429
|
+
if (tokenString) {
|
430
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
431
|
+
}
|
388
432
|
}
|
389
433
|
const response = yield this.request({
|
390
434
|
path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -415,8 +459,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
415
459
|
}
|
416
460
|
const queryParameters = {};
|
417
461
|
const headerParameters = {};
|
418
|
-
if (this.configuration && this.configuration.
|
419
|
-
|
462
|
+
if (this.configuration && this.configuration.accessToken) {
|
463
|
+
const token = this.configuration.accessToken;
|
464
|
+
const tokenString = yield token("authentik", []);
|
465
|
+
if (tokenString) {
|
466
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
467
|
+
}
|
420
468
|
}
|
421
469
|
const response = yield this.request({
|
422
470
|
path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -450,8 +498,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
450
498
|
const queryParameters = {};
|
451
499
|
const headerParameters = {};
|
452
500
|
headerParameters['Content-Type'] = 'application/json';
|
453
|
-
if (this.configuration && this.configuration.
|
454
|
-
|
501
|
+
if (this.configuration && this.configuration.accessToken) {
|
502
|
+
const token = this.configuration.accessToken;
|
503
|
+
const tokenString = yield token("authentik", []);
|
504
|
+
if (tokenString) {
|
505
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
506
|
+
}
|
455
507
|
}
|
456
508
|
const response = yield this.request({
|
457
509
|
path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -483,8 +535,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
483
535
|
const queryParameters = {};
|
484
536
|
const headerParameters = {};
|
485
537
|
headerParameters['Content-Type'] = 'application/json';
|
486
|
-
if (this.configuration && this.configuration.
|
487
|
-
|
538
|
+
if (this.configuration && this.configuration.accessToken) {
|
539
|
+
const token = this.configuration.accessToken;
|
540
|
+
const tokenString = yield token("authentik", []);
|
541
|
+
if (tokenString) {
|
542
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
543
|
+
}
|
488
544
|
}
|
489
545
|
const response = yield this.request({
|
490
546
|
path: `/authenticators/admin/static/`,
|
@@ -515,8 +571,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
515
571
|
}
|
516
572
|
const queryParameters = {};
|
517
573
|
const headerParameters = {};
|
518
|
-
if (this.configuration && this.configuration.
|
519
|
-
|
574
|
+
if (this.configuration && this.configuration.accessToken) {
|
575
|
+
const token = this.configuration.accessToken;
|
576
|
+
const tokenString = yield token("authentik", []);
|
577
|
+
if (tokenString) {
|
578
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
579
|
+
}
|
520
580
|
}
|
521
581
|
const response = yield this.request({
|
522
582
|
path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -557,8 +617,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
557
617
|
queryParameters['search'] = requestParameters.search;
|
558
618
|
}
|
559
619
|
const headerParameters = {};
|
560
|
-
if (this.configuration && this.configuration.
|
561
|
-
|
620
|
+
if (this.configuration && this.configuration.accessToken) {
|
621
|
+
const token = this.configuration.accessToken;
|
622
|
+
const tokenString = yield token("authentik", []);
|
623
|
+
if (tokenString) {
|
624
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
625
|
+
}
|
562
626
|
}
|
563
627
|
const response = yield this.request({
|
564
628
|
path: `/authenticators/admin/static/`,
|
@@ -589,8 +653,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
589
653
|
const queryParameters = {};
|
590
654
|
const headerParameters = {};
|
591
655
|
headerParameters['Content-Type'] = 'application/json';
|
592
|
-
if (this.configuration && this.configuration.
|
593
|
-
|
656
|
+
if (this.configuration && this.configuration.accessToken) {
|
657
|
+
const token = this.configuration.accessToken;
|
658
|
+
const tokenString = yield token("authentik", []);
|
659
|
+
if (tokenString) {
|
660
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
661
|
+
}
|
594
662
|
}
|
595
663
|
const response = yield this.request({
|
596
664
|
path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -621,8 +689,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
621
689
|
}
|
622
690
|
const queryParameters = {};
|
623
691
|
const headerParameters = {};
|
624
|
-
if (this.configuration && this.configuration.
|
625
|
-
|
692
|
+
if (this.configuration && this.configuration.accessToken) {
|
693
|
+
const token = this.configuration.accessToken;
|
694
|
+
const tokenString = yield token("authentik", []);
|
695
|
+
if (tokenString) {
|
696
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
697
|
+
}
|
626
698
|
}
|
627
699
|
const response = yield this.request({
|
628
700
|
path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -656,8 +728,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
656
728
|
const queryParameters = {};
|
657
729
|
const headerParameters = {};
|
658
730
|
headerParameters['Content-Type'] = 'application/json';
|
659
|
-
if (this.configuration && this.configuration.
|
660
|
-
|
731
|
+
if (this.configuration && this.configuration.accessToken) {
|
732
|
+
const token = this.configuration.accessToken;
|
733
|
+
const tokenString = yield token("authentik", []);
|
734
|
+
if (tokenString) {
|
735
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
736
|
+
}
|
661
737
|
}
|
662
738
|
const response = yield this.request({
|
663
739
|
path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -689,8 +765,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
689
765
|
const queryParameters = {};
|
690
766
|
const headerParameters = {};
|
691
767
|
headerParameters['Content-Type'] = 'application/json';
|
692
|
-
if (this.configuration && this.configuration.
|
693
|
-
|
768
|
+
if (this.configuration && this.configuration.accessToken) {
|
769
|
+
const token = this.configuration.accessToken;
|
770
|
+
const tokenString = yield token("authentik", []);
|
771
|
+
if (tokenString) {
|
772
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
773
|
+
}
|
694
774
|
}
|
695
775
|
const response = yield this.request({
|
696
776
|
path: `/authenticators/admin/totp/`,
|
@@ -721,8 +801,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
721
801
|
}
|
722
802
|
const queryParameters = {};
|
723
803
|
const headerParameters = {};
|
724
|
-
if (this.configuration && this.configuration.
|
725
|
-
|
804
|
+
if (this.configuration && this.configuration.accessToken) {
|
805
|
+
const token = this.configuration.accessToken;
|
806
|
+
const tokenString = yield token("authentik", []);
|
807
|
+
if (tokenString) {
|
808
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
809
|
+
}
|
726
810
|
}
|
727
811
|
const response = yield this.request({
|
728
812
|
path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -763,8 +847,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
763
847
|
queryParameters['search'] = requestParameters.search;
|
764
848
|
}
|
765
849
|
const headerParameters = {};
|
766
|
-
if (this.configuration && this.configuration.
|
767
|
-
|
850
|
+
if (this.configuration && this.configuration.accessToken) {
|
851
|
+
const token = this.configuration.accessToken;
|
852
|
+
const tokenString = yield token("authentik", []);
|
853
|
+
if (tokenString) {
|
854
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
855
|
+
}
|
768
856
|
}
|
769
857
|
const response = yield this.request({
|
770
858
|
path: `/authenticators/admin/totp/`,
|
@@ -795,8 +883,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
795
883
|
const queryParameters = {};
|
796
884
|
const headerParameters = {};
|
797
885
|
headerParameters['Content-Type'] = 'application/json';
|
798
|
-
if (this.configuration && this.configuration.
|
799
|
-
|
886
|
+
if (this.configuration && this.configuration.accessToken) {
|
887
|
+
const token = this.configuration.accessToken;
|
888
|
+
const tokenString = yield token("authentik", []);
|
889
|
+
if (tokenString) {
|
890
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
891
|
+
}
|
800
892
|
}
|
801
893
|
const response = yield this.request({
|
802
894
|
path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -827,8 +919,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
827
919
|
}
|
828
920
|
const queryParameters = {};
|
829
921
|
const headerParameters = {};
|
830
|
-
if (this.configuration && this.configuration.
|
831
|
-
|
922
|
+
if (this.configuration && this.configuration.accessToken) {
|
923
|
+
const token = this.configuration.accessToken;
|
924
|
+
const tokenString = yield token("authentik", []);
|
925
|
+
if (tokenString) {
|
926
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
927
|
+
}
|
832
928
|
}
|
833
929
|
const response = yield this.request({
|
834
930
|
path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -862,8 +958,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
862
958
|
const queryParameters = {};
|
863
959
|
const headerParameters = {};
|
864
960
|
headerParameters['Content-Type'] = 'application/json';
|
865
|
-
if (this.configuration && this.configuration.
|
866
|
-
|
961
|
+
if (this.configuration && this.configuration.accessToken) {
|
962
|
+
const token = this.configuration.accessToken;
|
963
|
+
const tokenString = yield token("authentik", []);
|
964
|
+
if (tokenString) {
|
965
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
966
|
+
}
|
867
967
|
}
|
868
968
|
const response = yield this.request({
|
869
969
|
path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -895,8 +995,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
895
995
|
const queryParameters = {};
|
896
996
|
const headerParameters = {};
|
897
997
|
headerParameters['Content-Type'] = 'application/json';
|
898
|
-
if (this.configuration && this.configuration.
|
899
|
-
|
998
|
+
if (this.configuration && this.configuration.accessToken) {
|
999
|
+
const token = this.configuration.accessToken;
|
1000
|
+
const tokenString = yield token("authentik", []);
|
1001
|
+
if (tokenString) {
|
1002
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1003
|
+
}
|
900
1004
|
}
|
901
1005
|
const response = yield this.request({
|
902
1006
|
path: `/authenticators/admin/webauthn/`,
|
@@ -927,8 +1031,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
927
1031
|
}
|
928
1032
|
const queryParameters = {};
|
929
1033
|
const headerParameters = {};
|
930
|
-
if (this.configuration && this.configuration.
|
931
|
-
|
1034
|
+
if (this.configuration && this.configuration.accessToken) {
|
1035
|
+
const token = this.configuration.accessToken;
|
1036
|
+
const tokenString = yield token("authentik", []);
|
1037
|
+
if (tokenString) {
|
1038
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1039
|
+
}
|
932
1040
|
}
|
933
1041
|
const response = yield this.request({
|
934
1042
|
path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -969,8 +1077,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
969
1077
|
queryParameters['search'] = requestParameters.search;
|
970
1078
|
}
|
971
1079
|
const headerParameters = {};
|
972
|
-
if (this.configuration && this.configuration.
|
973
|
-
|
1080
|
+
if (this.configuration && this.configuration.accessToken) {
|
1081
|
+
const token = this.configuration.accessToken;
|
1082
|
+
const tokenString = yield token("authentik", []);
|
1083
|
+
if (tokenString) {
|
1084
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1085
|
+
}
|
974
1086
|
}
|
975
1087
|
const response = yield this.request({
|
976
1088
|
path: `/authenticators/admin/webauthn/`,
|
@@ -1001,8 +1113,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1001
1113
|
const queryParameters = {};
|
1002
1114
|
const headerParameters = {};
|
1003
1115
|
headerParameters['Content-Type'] = 'application/json';
|
1004
|
-
if (this.configuration && this.configuration.
|
1005
|
-
|
1116
|
+
if (this.configuration && this.configuration.accessToken) {
|
1117
|
+
const token = this.configuration.accessToken;
|
1118
|
+
const tokenString = yield token("authentik", []);
|
1119
|
+
if (tokenString) {
|
1120
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1121
|
+
}
|
1006
1122
|
}
|
1007
1123
|
const response = yield this.request({
|
1008
1124
|
path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1033,8 +1149,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1033
1149
|
}
|
1034
1150
|
const queryParameters = {};
|
1035
1151
|
const headerParameters = {};
|
1036
|
-
if (this.configuration && this.configuration.
|
1037
|
-
|
1152
|
+
if (this.configuration && this.configuration.accessToken) {
|
1153
|
+
const token = this.configuration.accessToken;
|
1154
|
+
const tokenString = yield token("authentik", []);
|
1155
|
+
if (tokenString) {
|
1156
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1157
|
+
}
|
1038
1158
|
}
|
1039
1159
|
const response = yield this.request({
|
1040
1160
|
path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1068,8 +1188,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1068
1188
|
const queryParameters = {};
|
1069
1189
|
const headerParameters = {};
|
1070
1190
|
headerParameters['Content-Type'] = 'application/json';
|
1071
|
-
if (this.configuration && this.configuration.
|
1072
|
-
|
1191
|
+
if (this.configuration && this.configuration.accessToken) {
|
1192
|
+
const token = this.configuration.accessToken;
|
1193
|
+
const tokenString = yield token("authentik", []);
|
1194
|
+
if (tokenString) {
|
1195
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1196
|
+
}
|
1073
1197
|
}
|
1074
1198
|
const response = yield this.request({
|
1075
1199
|
path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1097,8 +1221,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1097
1221
|
return __awaiter(this, void 0, void 0, function* () {
|
1098
1222
|
const queryParameters = {};
|
1099
1223
|
const headerParameters = {};
|
1100
|
-
if (this.configuration && this.configuration.
|
1101
|
-
|
1224
|
+
if (this.configuration && this.configuration.accessToken) {
|
1225
|
+
const token = this.configuration.accessToken;
|
1226
|
+
const tokenString = yield token("authentik", []);
|
1227
|
+
if (tokenString) {
|
1228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1229
|
+
}
|
1102
1230
|
}
|
1103
1231
|
const response = yield this.request({
|
1104
1232
|
path: `/authenticators/all/`,
|
@@ -1128,8 +1256,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1128
1256
|
}
|
1129
1257
|
const queryParameters = {};
|
1130
1258
|
const headerParameters = {};
|
1131
|
-
if (this.configuration && this.configuration.
|
1132
|
-
|
1259
|
+
if (this.configuration && this.configuration.accessToken) {
|
1260
|
+
const token = this.configuration.accessToken;
|
1261
|
+
const tokenString = yield token("authentik", []);
|
1262
|
+
if (tokenString) {
|
1263
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1264
|
+
}
|
1133
1265
|
}
|
1134
1266
|
const response = yield this.request({
|
1135
1267
|
path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1170,8 +1302,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1170
1302
|
queryParameters['search'] = requestParameters.search;
|
1171
1303
|
}
|
1172
1304
|
const headerParameters = {};
|
1173
|
-
if (this.configuration && this.configuration.
|
1174
|
-
|
1305
|
+
if (this.configuration && this.configuration.accessToken) {
|
1306
|
+
const token = this.configuration.accessToken;
|
1307
|
+
const tokenString = yield token("authentik", []);
|
1308
|
+
if (tokenString) {
|
1309
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1310
|
+
}
|
1175
1311
|
}
|
1176
1312
|
const response = yield this.request({
|
1177
1313
|
path: `/authenticators/duo/`,
|
@@ -1202,8 +1338,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1202
1338
|
const queryParameters = {};
|
1203
1339
|
const headerParameters = {};
|
1204
1340
|
headerParameters['Content-Type'] = 'application/json';
|
1205
|
-
if (this.configuration && this.configuration.
|
1206
|
-
|
1341
|
+
if (this.configuration && this.configuration.accessToken) {
|
1342
|
+
const token = this.configuration.accessToken;
|
1343
|
+
const tokenString = yield token("authentik", []);
|
1344
|
+
if (tokenString) {
|
1345
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1346
|
+
}
|
1207
1347
|
}
|
1208
1348
|
const response = yield this.request({
|
1209
1349
|
path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1234,8 +1374,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1234
1374
|
}
|
1235
1375
|
const queryParameters = {};
|
1236
1376
|
const headerParameters = {};
|
1237
|
-
if (this.configuration && this.configuration.
|
1238
|
-
|
1377
|
+
if (this.configuration && this.configuration.accessToken) {
|
1378
|
+
const token = this.configuration.accessToken;
|
1379
|
+
const tokenString = yield token("authentik", []);
|
1380
|
+
if (tokenString) {
|
1381
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1382
|
+
}
|
1239
1383
|
}
|
1240
1384
|
const response = yield this.request({
|
1241
1385
|
path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1269,8 +1413,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1269
1413
|
const queryParameters = {};
|
1270
1414
|
const headerParameters = {};
|
1271
1415
|
headerParameters['Content-Type'] = 'application/json';
|
1272
|
-
if (this.configuration && this.configuration.
|
1273
|
-
|
1416
|
+
if (this.configuration && this.configuration.accessToken) {
|
1417
|
+
const token = this.configuration.accessToken;
|
1418
|
+
const tokenString = yield token("authentik", []);
|
1419
|
+
if (tokenString) {
|
1420
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1421
|
+
}
|
1274
1422
|
}
|
1275
1423
|
const response = yield this.request({
|
1276
1424
|
path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1301,8 +1449,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1301
1449
|
}
|
1302
1450
|
const queryParameters = {};
|
1303
1451
|
const headerParameters = {};
|
1304
|
-
if (this.configuration && this.configuration.
|
1305
|
-
|
1452
|
+
if (this.configuration && this.configuration.accessToken) {
|
1453
|
+
const token = this.configuration.accessToken;
|
1454
|
+
const tokenString = yield token("authentik", []);
|
1455
|
+
if (tokenString) {
|
1456
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1457
|
+
}
|
1306
1458
|
}
|
1307
1459
|
const response = yield this.request({
|
1308
1460
|
path: `/authenticators/duo/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1332,8 +1484,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1332
1484
|
}
|
1333
1485
|
const queryParameters = {};
|
1334
1486
|
const headerParameters = {};
|
1335
|
-
if (this.configuration && this.configuration.
|
1336
|
-
|
1487
|
+
if (this.configuration && this.configuration.accessToken) {
|
1488
|
+
const token = this.configuration.accessToken;
|
1489
|
+
const tokenString = yield token("authentik", []);
|
1490
|
+
if (tokenString) {
|
1491
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1492
|
+
}
|
1337
1493
|
}
|
1338
1494
|
const response = yield this.request({
|
1339
1495
|
path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1374,8 +1530,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1374
1530
|
queryParameters['search'] = requestParameters.search;
|
1375
1531
|
}
|
1376
1532
|
const headerParameters = {};
|
1377
|
-
if (this.configuration && this.configuration.
|
1378
|
-
|
1533
|
+
if (this.configuration && this.configuration.accessToken) {
|
1534
|
+
const token = this.configuration.accessToken;
|
1535
|
+
const tokenString = yield token("authentik", []);
|
1536
|
+
if (tokenString) {
|
1537
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1538
|
+
}
|
1379
1539
|
}
|
1380
1540
|
const response = yield this.request({
|
1381
1541
|
path: `/authenticators/sms/`,
|
@@ -1406,8 +1566,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1406
1566
|
const queryParameters = {};
|
1407
1567
|
const headerParameters = {};
|
1408
1568
|
headerParameters['Content-Type'] = 'application/json';
|
1409
|
-
if (this.configuration && this.configuration.
|
1410
|
-
|
1569
|
+
if (this.configuration && this.configuration.accessToken) {
|
1570
|
+
const token = this.configuration.accessToken;
|
1571
|
+
const tokenString = yield token("authentik", []);
|
1572
|
+
if (tokenString) {
|
1573
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1574
|
+
}
|
1411
1575
|
}
|
1412
1576
|
const response = yield this.request({
|
1413
1577
|
path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1438,8 +1602,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1438
1602
|
}
|
1439
1603
|
const queryParameters = {};
|
1440
1604
|
const headerParameters = {};
|
1441
|
-
if (this.configuration && this.configuration.
|
1442
|
-
|
1605
|
+
if (this.configuration && this.configuration.accessToken) {
|
1606
|
+
const token = this.configuration.accessToken;
|
1607
|
+
const tokenString = yield token("authentik", []);
|
1608
|
+
if (tokenString) {
|
1609
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1610
|
+
}
|
1443
1611
|
}
|
1444
1612
|
const response = yield this.request({
|
1445
1613
|
path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1473,8 +1641,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1473
1641
|
const queryParameters = {};
|
1474
1642
|
const headerParameters = {};
|
1475
1643
|
headerParameters['Content-Type'] = 'application/json';
|
1476
|
-
if (this.configuration && this.configuration.
|
1477
|
-
|
1644
|
+
if (this.configuration && this.configuration.accessToken) {
|
1645
|
+
const token = this.configuration.accessToken;
|
1646
|
+
const tokenString = yield token("authentik", []);
|
1647
|
+
if (tokenString) {
|
1648
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1649
|
+
}
|
1478
1650
|
}
|
1479
1651
|
const response = yield this.request({
|
1480
1652
|
path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1505,8 +1677,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1505
1677
|
}
|
1506
1678
|
const queryParameters = {};
|
1507
1679
|
const headerParameters = {};
|
1508
|
-
if (this.configuration && this.configuration.
|
1509
|
-
|
1680
|
+
if (this.configuration && this.configuration.accessToken) {
|
1681
|
+
const token = this.configuration.accessToken;
|
1682
|
+
const tokenString = yield token("authentik", []);
|
1683
|
+
if (tokenString) {
|
1684
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1685
|
+
}
|
1510
1686
|
}
|
1511
1687
|
const response = yield this.request({
|
1512
1688
|
path: `/authenticators/sms/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1536,8 +1712,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1536
1712
|
}
|
1537
1713
|
const queryParameters = {};
|
1538
1714
|
const headerParameters = {};
|
1539
|
-
if (this.configuration && this.configuration.
|
1540
|
-
|
1715
|
+
if (this.configuration && this.configuration.accessToken) {
|
1716
|
+
const token = this.configuration.accessToken;
|
1717
|
+
const tokenString = yield token("authentik", []);
|
1718
|
+
if (tokenString) {
|
1719
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1720
|
+
}
|
1541
1721
|
}
|
1542
1722
|
const response = yield this.request({
|
1543
1723
|
path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1578,8 +1758,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1578
1758
|
queryParameters['search'] = requestParameters.search;
|
1579
1759
|
}
|
1580
1760
|
const headerParameters = {};
|
1581
|
-
if (this.configuration && this.configuration.
|
1582
|
-
|
1761
|
+
if (this.configuration && this.configuration.accessToken) {
|
1762
|
+
const token = this.configuration.accessToken;
|
1763
|
+
const tokenString = yield token("authentik", []);
|
1764
|
+
if (tokenString) {
|
1765
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1766
|
+
}
|
1583
1767
|
}
|
1584
1768
|
const response = yield this.request({
|
1585
1769
|
path: `/authenticators/static/`,
|
@@ -1610,8 +1794,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1610
1794
|
const queryParameters = {};
|
1611
1795
|
const headerParameters = {};
|
1612
1796
|
headerParameters['Content-Type'] = 'application/json';
|
1613
|
-
if (this.configuration && this.configuration.
|
1614
|
-
|
1797
|
+
if (this.configuration && this.configuration.accessToken) {
|
1798
|
+
const token = this.configuration.accessToken;
|
1799
|
+
const tokenString = yield token("authentik", []);
|
1800
|
+
if (tokenString) {
|
1801
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1802
|
+
}
|
1615
1803
|
}
|
1616
1804
|
const response = yield this.request({
|
1617
1805
|
path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1642,8 +1830,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1642
1830
|
}
|
1643
1831
|
const queryParameters = {};
|
1644
1832
|
const headerParameters = {};
|
1645
|
-
if (this.configuration && this.configuration.
|
1646
|
-
|
1833
|
+
if (this.configuration && this.configuration.accessToken) {
|
1834
|
+
const token = this.configuration.accessToken;
|
1835
|
+
const tokenString = yield token("authentik", []);
|
1836
|
+
if (tokenString) {
|
1837
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1838
|
+
}
|
1647
1839
|
}
|
1648
1840
|
const response = yield this.request({
|
1649
1841
|
path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1677,8 +1869,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1677
1869
|
const queryParameters = {};
|
1678
1870
|
const headerParameters = {};
|
1679
1871
|
headerParameters['Content-Type'] = 'application/json';
|
1680
|
-
if (this.configuration && this.configuration.
|
1681
|
-
|
1872
|
+
if (this.configuration && this.configuration.accessToken) {
|
1873
|
+
const token = this.configuration.accessToken;
|
1874
|
+
const tokenString = yield token("authentik", []);
|
1875
|
+
if (tokenString) {
|
1876
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1877
|
+
}
|
1682
1878
|
}
|
1683
1879
|
const response = yield this.request({
|
1684
1880
|
path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1709,8 +1905,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1709
1905
|
}
|
1710
1906
|
const queryParameters = {};
|
1711
1907
|
const headerParameters = {};
|
1712
|
-
if (this.configuration && this.configuration.
|
1713
|
-
|
1908
|
+
if (this.configuration && this.configuration.accessToken) {
|
1909
|
+
const token = this.configuration.accessToken;
|
1910
|
+
const tokenString = yield token("authentik", []);
|
1911
|
+
if (tokenString) {
|
1912
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1913
|
+
}
|
1714
1914
|
}
|
1715
1915
|
const response = yield this.request({
|
1716
1916
|
path: `/authenticators/static/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1740,8 +1940,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1740
1940
|
}
|
1741
1941
|
const queryParameters = {};
|
1742
1942
|
const headerParameters = {};
|
1743
|
-
if (this.configuration && this.configuration.
|
1744
|
-
|
1943
|
+
if (this.configuration && this.configuration.accessToken) {
|
1944
|
+
const token = this.configuration.accessToken;
|
1945
|
+
const tokenString = yield token("authentik", []);
|
1946
|
+
if (tokenString) {
|
1947
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1948
|
+
}
|
1745
1949
|
}
|
1746
1950
|
const response = yield this.request({
|
1747
1951
|
path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1782,8 +1986,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1782
1986
|
queryParameters['search'] = requestParameters.search;
|
1783
1987
|
}
|
1784
1988
|
const headerParameters = {};
|
1785
|
-
if (this.configuration && this.configuration.
|
1786
|
-
|
1989
|
+
if (this.configuration && this.configuration.accessToken) {
|
1990
|
+
const token = this.configuration.accessToken;
|
1991
|
+
const tokenString = yield token("authentik", []);
|
1992
|
+
if (tokenString) {
|
1993
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1994
|
+
}
|
1787
1995
|
}
|
1788
1996
|
const response = yield this.request({
|
1789
1997
|
path: `/authenticators/totp/`,
|
@@ -1814,8 +2022,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1814
2022
|
const queryParameters = {};
|
1815
2023
|
const headerParameters = {};
|
1816
2024
|
headerParameters['Content-Type'] = 'application/json';
|
1817
|
-
if (this.configuration && this.configuration.
|
1818
|
-
|
2025
|
+
if (this.configuration && this.configuration.accessToken) {
|
2026
|
+
const token = this.configuration.accessToken;
|
2027
|
+
const tokenString = yield token("authentik", []);
|
2028
|
+
if (tokenString) {
|
2029
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2030
|
+
}
|
1819
2031
|
}
|
1820
2032
|
const response = yield this.request({
|
1821
2033
|
path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1846,8 +2058,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1846
2058
|
}
|
1847
2059
|
const queryParameters = {};
|
1848
2060
|
const headerParameters = {};
|
1849
|
-
if (this.configuration && this.configuration.
|
1850
|
-
|
2061
|
+
if (this.configuration && this.configuration.accessToken) {
|
2062
|
+
const token = this.configuration.accessToken;
|
2063
|
+
const tokenString = yield token("authentik", []);
|
2064
|
+
if (tokenString) {
|
2065
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2066
|
+
}
|
1851
2067
|
}
|
1852
2068
|
const response = yield this.request({
|
1853
2069
|
path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1881,8 +2097,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1881
2097
|
const queryParameters = {};
|
1882
2098
|
const headerParameters = {};
|
1883
2099
|
headerParameters['Content-Type'] = 'application/json';
|
1884
|
-
if (this.configuration && this.configuration.
|
1885
|
-
|
2100
|
+
if (this.configuration && this.configuration.accessToken) {
|
2101
|
+
const token = this.configuration.accessToken;
|
2102
|
+
const tokenString = yield token("authentik", []);
|
2103
|
+
if (tokenString) {
|
2104
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2105
|
+
}
|
1886
2106
|
}
|
1887
2107
|
const response = yield this.request({
|
1888
2108
|
path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1913,8 +2133,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1913
2133
|
}
|
1914
2134
|
const queryParameters = {};
|
1915
2135
|
const headerParameters = {};
|
1916
|
-
if (this.configuration && this.configuration.
|
1917
|
-
|
2136
|
+
if (this.configuration && this.configuration.accessToken) {
|
2137
|
+
const token = this.configuration.accessToken;
|
2138
|
+
const tokenString = yield token("authentik", []);
|
2139
|
+
if (tokenString) {
|
2140
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2141
|
+
}
|
1918
2142
|
}
|
1919
2143
|
const response = yield this.request({
|
1920
2144
|
path: `/authenticators/totp/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1944,8 +2168,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1944
2168
|
}
|
1945
2169
|
const queryParameters = {};
|
1946
2170
|
const headerParameters = {};
|
1947
|
-
if (this.configuration && this.configuration.
|
1948
|
-
|
2171
|
+
if (this.configuration && this.configuration.accessToken) {
|
2172
|
+
const token = this.configuration.accessToken;
|
2173
|
+
const tokenString = yield token("authentik", []);
|
2174
|
+
if (tokenString) {
|
2175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2176
|
+
}
|
1949
2177
|
}
|
1950
2178
|
const response = yield this.request({
|
1951
2179
|
path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -1986,8 +2214,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
1986
2214
|
queryParameters['search'] = requestParameters.search;
|
1987
2215
|
}
|
1988
2216
|
const headerParameters = {};
|
1989
|
-
if (this.configuration && this.configuration.
|
1990
|
-
|
2217
|
+
if (this.configuration && this.configuration.accessToken) {
|
2218
|
+
const token = this.configuration.accessToken;
|
2219
|
+
const tokenString = yield token("authentik", []);
|
2220
|
+
if (tokenString) {
|
2221
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2222
|
+
}
|
1991
2223
|
}
|
1992
2224
|
const response = yield this.request({
|
1993
2225
|
path: `/authenticators/webauthn/`,
|
@@ -2018,8 +2250,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
2018
2250
|
const queryParameters = {};
|
2019
2251
|
const headerParameters = {};
|
2020
2252
|
headerParameters['Content-Type'] = 'application/json';
|
2021
|
-
if (this.configuration && this.configuration.
|
2022
|
-
|
2253
|
+
if (this.configuration && this.configuration.accessToken) {
|
2254
|
+
const token = this.configuration.accessToken;
|
2255
|
+
const tokenString = yield token("authentik", []);
|
2256
|
+
if (tokenString) {
|
2257
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2258
|
+
}
|
2023
2259
|
}
|
2024
2260
|
const response = yield this.request({
|
2025
2261
|
path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2050,8 +2286,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
2050
2286
|
}
|
2051
2287
|
const queryParameters = {};
|
2052
2288
|
const headerParameters = {};
|
2053
|
-
if (this.configuration && this.configuration.
|
2054
|
-
|
2289
|
+
if (this.configuration && this.configuration.accessToken) {
|
2290
|
+
const token = this.configuration.accessToken;
|
2291
|
+
const tokenString = yield token("authentik", []);
|
2292
|
+
if (tokenString) {
|
2293
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2294
|
+
}
|
2055
2295
|
}
|
2056
2296
|
const response = yield this.request({
|
2057
2297
|
path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2085,8 +2325,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
2085
2325
|
const queryParameters = {};
|
2086
2326
|
const headerParameters = {};
|
2087
2327
|
headerParameters['Content-Type'] = 'application/json';
|
2088
|
-
if (this.configuration && this.configuration.
|
2089
|
-
|
2328
|
+
if (this.configuration && this.configuration.accessToken) {
|
2329
|
+
const token = this.configuration.accessToken;
|
2330
|
+
const tokenString = yield token("authentik", []);
|
2331
|
+
if (tokenString) {
|
2332
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2333
|
+
}
|
2090
2334
|
}
|
2091
2335
|
const response = yield this.request({
|
2092
2336
|
path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
@@ -2117,8 +2361,12 @@ class AuthenticatorsApi extends runtime.BaseAPI {
|
|
2117
2361
|
}
|
2118
2362
|
const queryParameters = {};
|
2119
2363
|
const headerParameters = {};
|
2120
|
-
if (this.configuration && this.configuration.
|
2121
|
-
|
2364
|
+
if (this.configuration && this.configuration.accessToken) {
|
2365
|
+
const token = this.configuration.accessToken;
|
2366
|
+
const tokenString = yield token("authentik", []);
|
2367
|
+
if (tokenString) {
|
2368
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2369
|
+
}
|
2122
2370
|
}
|
2123
2371
|
const response = yield this.request({
|
2124
2372
|
path: `/authenticators/webauthn/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|