@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
package/dist/apis/CoreApi.js
CHANGED
|
@@ -42,8 +42,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
42
42
|
queryParameters['for_user'] = requestParameters.forUser;
|
|
43
43
|
}
|
|
44
44
|
const headerParameters = {};
|
|
45
|
-
if (this.configuration && this.configuration.
|
|
46
|
-
|
|
45
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46
|
+
const token = this.configuration.accessToken;
|
|
47
|
+
const tokenString = yield token("authentik", []);
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
47
51
|
}
|
|
48
52
|
const response = yield this.request({
|
|
49
53
|
path: `/core/applications/{slug}/check_access/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -74,8 +78,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
74
78
|
const queryParameters = {};
|
|
75
79
|
const headerParameters = {};
|
|
76
80
|
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
-
if (this.configuration && this.configuration.
|
|
78
|
-
|
|
81
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
+
const token = this.configuration.accessToken;
|
|
83
|
+
const tokenString = yield token("authentik", []);
|
|
84
|
+
if (tokenString) {
|
|
85
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
86
|
+
}
|
|
79
87
|
}
|
|
80
88
|
const response = yield this.request({
|
|
81
89
|
path: `/core/applications/`,
|
|
@@ -106,8 +114,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
106
114
|
}
|
|
107
115
|
const queryParameters = {};
|
|
108
116
|
const headerParameters = {};
|
|
109
|
-
if (this.configuration && this.configuration.
|
|
110
|
-
|
|
117
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
118
|
+
const token = this.configuration.accessToken;
|
|
119
|
+
const tokenString = yield token("authentik", []);
|
|
120
|
+
if (tokenString) {
|
|
121
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
122
|
+
}
|
|
111
123
|
}
|
|
112
124
|
const response = yield this.request({
|
|
113
125
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -169,8 +181,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
169
181
|
queryParameters['superuser_full_list'] = requestParameters.superuserFullList;
|
|
170
182
|
}
|
|
171
183
|
const headerParameters = {};
|
|
172
|
-
if (this.configuration && this.configuration.
|
|
173
|
-
|
|
184
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
185
|
+
const token = this.configuration.accessToken;
|
|
186
|
+
const tokenString = yield token("authentik", []);
|
|
187
|
+
if (tokenString) {
|
|
188
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
189
|
+
}
|
|
174
190
|
}
|
|
175
191
|
const response = yield this.request({
|
|
176
192
|
path: `/core/applications/`,
|
|
@@ -200,8 +216,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
200
216
|
}
|
|
201
217
|
const queryParameters = {};
|
|
202
218
|
const headerParameters = {};
|
|
203
|
-
if (this.configuration && this.configuration.
|
|
204
|
-
|
|
219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
220
|
+
const token = this.configuration.accessToken;
|
|
221
|
+
const tokenString = yield token("authentik", []);
|
|
222
|
+
if (tokenString) {
|
|
223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
224
|
+
}
|
|
205
225
|
}
|
|
206
226
|
const response = yield this.request({
|
|
207
227
|
path: `/core/applications/{slug}/metrics/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -232,8 +252,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
232
252
|
const queryParameters = {};
|
|
233
253
|
const headerParameters = {};
|
|
234
254
|
headerParameters['Content-Type'] = 'application/json';
|
|
235
|
-
if (this.configuration && this.configuration.
|
|
236
|
-
|
|
255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
256
|
+
const token = this.configuration.accessToken;
|
|
257
|
+
const tokenString = yield token("authentik", []);
|
|
258
|
+
if (tokenString) {
|
|
259
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
260
|
+
}
|
|
237
261
|
}
|
|
238
262
|
const response = yield this.request({
|
|
239
263
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -264,8 +288,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
264
288
|
}
|
|
265
289
|
const queryParameters = {};
|
|
266
290
|
const headerParameters = {};
|
|
267
|
-
if (this.configuration && this.configuration.
|
|
268
|
-
|
|
291
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
292
|
+
const token = this.configuration.accessToken;
|
|
293
|
+
const tokenString = yield token("authentik", []);
|
|
294
|
+
if (tokenString) {
|
|
295
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
296
|
+
}
|
|
269
297
|
}
|
|
270
298
|
const response = yield this.request({
|
|
271
299
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -295,8 +323,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
295
323
|
}
|
|
296
324
|
const queryParameters = {};
|
|
297
325
|
const headerParameters = {};
|
|
298
|
-
if (this.configuration && this.configuration.
|
|
299
|
-
|
|
326
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
327
|
+
const token = this.configuration.accessToken;
|
|
328
|
+
const tokenString = yield token("authentik", []);
|
|
329
|
+
if (tokenString) {
|
|
330
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
331
|
+
}
|
|
300
332
|
}
|
|
301
333
|
const consumes = [
|
|
302
334
|
{ contentType: 'multipart/form-data' },
|
|
@@ -351,8 +383,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
351
383
|
const queryParameters = {};
|
|
352
384
|
const headerParameters = {};
|
|
353
385
|
headerParameters['Content-Type'] = 'application/json';
|
|
354
|
-
if (this.configuration && this.configuration.
|
|
355
|
-
|
|
386
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
387
|
+
const token = this.configuration.accessToken;
|
|
388
|
+
const tokenString = yield token("authentik", []);
|
|
389
|
+
if (tokenString) {
|
|
390
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
391
|
+
}
|
|
356
392
|
}
|
|
357
393
|
const response = yield this.request({
|
|
358
394
|
path: `/core/applications/{slug}/set_icon_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -386,8 +422,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
386
422
|
const queryParameters = {};
|
|
387
423
|
const headerParameters = {};
|
|
388
424
|
headerParameters['Content-Type'] = 'application/json';
|
|
389
|
-
if (this.configuration && this.configuration.
|
|
390
|
-
|
|
425
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
426
|
+
const token = this.configuration.accessToken;
|
|
427
|
+
const tokenString = yield token("authentik", []);
|
|
428
|
+
if (tokenString) {
|
|
429
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
430
|
+
}
|
|
391
431
|
}
|
|
392
432
|
const response = yield this.request({
|
|
393
433
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -418,8 +458,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
418
458
|
}
|
|
419
459
|
const queryParameters = {};
|
|
420
460
|
const headerParameters = {};
|
|
421
|
-
if (this.configuration && this.configuration.
|
|
422
|
-
|
|
461
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
462
|
+
const token = this.configuration.accessToken;
|
|
463
|
+
const tokenString = yield token("authentik", []);
|
|
464
|
+
if (tokenString) {
|
|
465
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
466
|
+
}
|
|
423
467
|
}
|
|
424
468
|
const response = yield this.request({
|
|
425
469
|
path: `/core/applications/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -449,8 +493,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
449
493
|
}
|
|
450
494
|
const queryParameters = {};
|
|
451
495
|
const headerParameters = {};
|
|
452
|
-
if (this.configuration && this.configuration.
|
|
453
|
-
|
|
496
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
497
|
+
const token = this.configuration.accessToken;
|
|
498
|
+
const tokenString = yield token("authentik", []);
|
|
499
|
+
if (tokenString) {
|
|
500
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
501
|
+
}
|
|
454
502
|
}
|
|
455
503
|
const response = yield this.request({
|
|
456
504
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -497,8 +545,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
497
545
|
queryParameters['user__username'] = requestParameters.userUsername;
|
|
498
546
|
}
|
|
499
547
|
const headerParameters = {};
|
|
500
|
-
if (this.configuration && this.configuration.
|
|
501
|
-
|
|
548
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
549
|
+
const token = this.configuration.accessToken;
|
|
550
|
+
const tokenString = yield token("authentik", []);
|
|
551
|
+
if (tokenString) {
|
|
552
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
553
|
+
}
|
|
502
554
|
}
|
|
503
555
|
const response = yield this.request({
|
|
504
556
|
path: `/core/authenticated_sessions/`,
|
|
@@ -528,8 +580,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
528
580
|
}
|
|
529
581
|
const queryParameters = {};
|
|
530
582
|
const headerParameters = {};
|
|
531
|
-
if (this.configuration && this.configuration.
|
|
532
|
-
|
|
583
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
584
|
+
const token = this.configuration.accessToken;
|
|
585
|
+
const tokenString = yield token("authentik", []);
|
|
586
|
+
if (tokenString) {
|
|
587
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
588
|
+
}
|
|
533
589
|
}
|
|
534
590
|
const response = yield this.request({
|
|
535
591
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -559,8 +615,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
559
615
|
}
|
|
560
616
|
const queryParameters = {};
|
|
561
617
|
const headerParameters = {};
|
|
562
|
-
if (this.configuration && this.configuration.
|
|
563
|
-
|
|
618
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
619
|
+
const token = this.configuration.accessToken;
|
|
620
|
+
const tokenString = yield token("authentik", []);
|
|
621
|
+
if (tokenString) {
|
|
622
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
623
|
+
}
|
|
564
624
|
}
|
|
565
625
|
const response = yield this.request({
|
|
566
626
|
path: `/core/authenticated_sessions/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -591,8 +651,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
591
651
|
const queryParameters = {};
|
|
592
652
|
const headerParameters = {};
|
|
593
653
|
headerParameters['Content-Type'] = 'application/json';
|
|
594
|
-
if (this.configuration && this.configuration.
|
|
595
|
-
|
|
654
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
655
|
+
const token = this.configuration.accessToken;
|
|
656
|
+
const tokenString = yield token("authentik", []);
|
|
657
|
+
if (tokenString) {
|
|
658
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
659
|
+
}
|
|
596
660
|
}
|
|
597
661
|
const response = yield this.request({
|
|
598
662
|
path: `/core/brands/`,
|
|
@@ -620,8 +684,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
620
684
|
return __awaiter(this, void 0, void 0, function* () {
|
|
621
685
|
const queryParameters = {};
|
|
622
686
|
const headerParameters = {};
|
|
623
|
-
if (this.configuration && this.configuration.
|
|
624
|
-
|
|
687
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
688
|
+
const token = this.configuration.accessToken;
|
|
689
|
+
const tokenString = yield token("authentik", []);
|
|
690
|
+
if (tokenString) {
|
|
691
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
692
|
+
}
|
|
625
693
|
}
|
|
626
694
|
const response = yield this.request({
|
|
627
695
|
path: `/core/brands/current/`,
|
|
@@ -651,8 +719,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
651
719
|
}
|
|
652
720
|
const queryParameters = {};
|
|
653
721
|
const headerParameters = {};
|
|
654
|
-
if (this.configuration && this.configuration.
|
|
655
|
-
|
|
722
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
723
|
+
const token = this.configuration.accessToken;
|
|
724
|
+
const tokenString = yield token("authentik", []);
|
|
725
|
+
if (tokenString) {
|
|
726
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
727
|
+
}
|
|
656
728
|
}
|
|
657
729
|
const response = yield this.request({
|
|
658
730
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -729,8 +801,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
729
801
|
queryParameters['web_certificate'] = requestParameters.webCertificate;
|
|
730
802
|
}
|
|
731
803
|
const headerParameters = {};
|
|
732
|
-
if (this.configuration && this.configuration.
|
|
733
|
-
|
|
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
|
+
}
|
|
734
810
|
}
|
|
735
811
|
const response = yield this.request({
|
|
736
812
|
path: `/core/brands/`,
|
|
@@ -761,8 +837,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
761
837
|
const queryParameters = {};
|
|
762
838
|
const headerParameters = {};
|
|
763
839
|
headerParameters['Content-Type'] = 'application/json';
|
|
764
|
-
if (this.configuration && this.configuration.
|
|
765
|
-
|
|
840
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
841
|
+
const token = this.configuration.accessToken;
|
|
842
|
+
const tokenString = yield token("authentik", []);
|
|
843
|
+
if (tokenString) {
|
|
844
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
845
|
+
}
|
|
766
846
|
}
|
|
767
847
|
const response = yield this.request({
|
|
768
848
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -793,8 +873,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
793
873
|
}
|
|
794
874
|
const queryParameters = {};
|
|
795
875
|
const headerParameters = {};
|
|
796
|
-
if (this.configuration && this.configuration.
|
|
797
|
-
|
|
876
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
877
|
+
const token = this.configuration.accessToken;
|
|
878
|
+
const tokenString = yield token("authentik", []);
|
|
879
|
+
if (tokenString) {
|
|
880
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
881
|
+
}
|
|
798
882
|
}
|
|
799
883
|
const response = yield this.request({
|
|
800
884
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -828,8 +912,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
828
912
|
const queryParameters = {};
|
|
829
913
|
const headerParameters = {};
|
|
830
914
|
headerParameters['Content-Type'] = 'application/json';
|
|
831
|
-
if (this.configuration && this.configuration.
|
|
832
|
-
|
|
915
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
916
|
+
const token = this.configuration.accessToken;
|
|
917
|
+
const tokenString = yield token("authentik", []);
|
|
918
|
+
if (tokenString) {
|
|
919
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
920
|
+
}
|
|
833
921
|
}
|
|
834
922
|
const response = yield this.request({
|
|
835
923
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -860,8 +948,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
860
948
|
}
|
|
861
949
|
const queryParameters = {};
|
|
862
950
|
const headerParameters = {};
|
|
863
|
-
if (this.configuration && this.configuration.
|
|
864
|
-
|
|
951
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
952
|
+
const token = this.configuration.accessToken;
|
|
953
|
+
const tokenString = yield token("authentik", []);
|
|
954
|
+
if (tokenString) {
|
|
955
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
956
|
+
}
|
|
865
957
|
}
|
|
866
958
|
const response = yield this.request({
|
|
867
959
|
path: `/core/brands/{brand_uuid}/used_by/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -895,8 +987,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
895
987
|
const queryParameters = {};
|
|
896
988
|
const headerParameters = {};
|
|
897
989
|
headerParameters['Content-Type'] = 'application/json';
|
|
898
|
-
if (this.configuration && this.configuration.
|
|
899
|
-
|
|
990
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
991
|
+
const token = this.configuration.accessToken;
|
|
992
|
+
const tokenString = yield token("authentik", []);
|
|
993
|
+
if (tokenString) {
|
|
994
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
995
|
+
}
|
|
900
996
|
}
|
|
901
997
|
const response = yield this.request({
|
|
902
998
|
path: `/core/groups/{group_uuid}/add_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -927,8 +1023,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
927
1023
|
const queryParameters = {};
|
|
928
1024
|
const headerParameters = {};
|
|
929
1025
|
headerParameters['Content-Type'] = 'application/json';
|
|
930
|
-
if (this.configuration && this.configuration.
|
|
931
|
-
|
|
1026
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1027
|
+
const token = this.configuration.accessToken;
|
|
1028
|
+
const tokenString = yield token("authentik", []);
|
|
1029
|
+
if (tokenString) {
|
|
1030
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1031
|
+
}
|
|
932
1032
|
}
|
|
933
1033
|
const response = yield this.request({
|
|
934
1034
|
path: `/core/groups/`,
|
|
@@ -959,8 +1059,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
959
1059
|
}
|
|
960
1060
|
const queryParameters = {};
|
|
961
1061
|
const headerParameters = {};
|
|
962
|
-
if (this.configuration && this.configuration.
|
|
963
|
-
|
|
1062
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1063
|
+
const token = this.configuration.accessToken;
|
|
1064
|
+
const tokenString = yield token("authentik", []);
|
|
1065
|
+
if (tokenString) {
|
|
1066
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1067
|
+
}
|
|
964
1068
|
}
|
|
965
1069
|
const response = yield this.request({
|
|
966
1070
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1013,8 +1117,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1013
1117
|
queryParameters['search'] = requestParameters.search;
|
|
1014
1118
|
}
|
|
1015
1119
|
const headerParameters = {};
|
|
1016
|
-
if (this.configuration && this.configuration.
|
|
1017
|
-
|
|
1120
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1121
|
+
const token = this.configuration.accessToken;
|
|
1122
|
+
const tokenString = yield token("authentik", []);
|
|
1123
|
+
if (tokenString) {
|
|
1124
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1125
|
+
}
|
|
1018
1126
|
}
|
|
1019
1127
|
const response = yield this.request({
|
|
1020
1128
|
path: `/core/groups/`,
|
|
@@ -1045,8 +1153,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1045
1153
|
const queryParameters = {};
|
|
1046
1154
|
const headerParameters = {};
|
|
1047
1155
|
headerParameters['Content-Type'] = 'application/json';
|
|
1048
|
-
if (this.configuration && this.configuration.
|
|
1049
|
-
|
|
1156
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1157
|
+
const token = this.configuration.accessToken;
|
|
1158
|
+
const tokenString = yield token("authentik", []);
|
|
1159
|
+
if (tokenString) {
|
|
1160
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1161
|
+
}
|
|
1050
1162
|
}
|
|
1051
1163
|
const response = yield this.request({
|
|
1052
1164
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1081,8 +1193,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1081
1193
|
const queryParameters = {};
|
|
1082
1194
|
const headerParameters = {};
|
|
1083
1195
|
headerParameters['Content-Type'] = 'application/json';
|
|
1084
|
-
if (this.configuration && this.configuration.
|
|
1085
|
-
|
|
1196
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1197
|
+
const token = this.configuration.accessToken;
|
|
1198
|
+
const tokenString = yield token("authentik", []);
|
|
1199
|
+
if (tokenString) {
|
|
1200
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1201
|
+
}
|
|
1086
1202
|
}
|
|
1087
1203
|
const response = yield this.request({
|
|
1088
1204
|
path: `/core/groups/{group_uuid}/remove_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1112,8 +1228,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1112
1228
|
}
|
|
1113
1229
|
const queryParameters = {};
|
|
1114
1230
|
const headerParameters = {};
|
|
1115
|
-
if (this.configuration && this.configuration.
|
|
1116
|
-
|
|
1231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1232
|
+
const token = this.configuration.accessToken;
|
|
1233
|
+
const tokenString = yield token("authentik", []);
|
|
1234
|
+
if (tokenString) {
|
|
1235
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1236
|
+
}
|
|
1117
1237
|
}
|
|
1118
1238
|
const response = yield this.request({
|
|
1119
1239
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1147,8 +1267,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1147
1267
|
const queryParameters = {};
|
|
1148
1268
|
const headerParameters = {};
|
|
1149
1269
|
headerParameters['Content-Type'] = 'application/json';
|
|
1150
|
-
if (this.configuration && this.configuration.
|
|
1151
|
-
|
|
1270
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1271
|
+
const token = this.configuration.accessToken;
|
|
1272
|
+
const tokenString = yield token("authentik", []);
|
|
1273
|
+
if (tokenString) {
|
|
1274
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1275
|
+
}
|
|
1152
1276
|
}
|
|
1153
1277
|
const response = yield this.request({
|
|
1154
1278
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1179,8 +1303,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1179
1303
|
}
|
|
1180
1304
|
const queryParameters = {};
|
|
1181
1305
|
const headerParameters = {};
|
|
1182
|
-
if (this.configuration && this.configuration.
|
|
1183
|
-
|
|
1306
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1307
|
+
const token = this.configuration.accessToken;
|
|
1308
|
+
const tokenString = yield token("authentik", []);
|
|
1309
|
+
if (tokenString) {
|
|
1310
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1311
|
+
}
|
|
1184
1312
|
}
|
|
1185
1313
|
const response = yield this.request({
|
|
1186
1314
|
path: `/core/groups/{group_uuid}/used_by/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1211,8 +1339,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1211
1339
|
const queryParameters = {};
|
|
1212
1340
|
const headerParameters = {};
|
|
1213
1341
|
headerParameters['Content-Type'] = 'application/json';
|
|
1214
|
-
if (this.configuration && this.configuration.
|
|
1215
|
-
|
|
1342
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1343
|
+
const token = this.configuration.accessToken;
|
|
1344
|
+
const tokenString = yield token("authentik", []);
|
|
1345
|
+
if (tokenString) {
|
|
1346
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1347
|
+
}
|
|
1216
1348
|
}
|
|
1217
1349
|
const response = yield this.request({
|
|
1218
1350
|
path: `/core/tokens/`,
|
|
@@ -1243,8 +1375,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1243
1375
|
}
|
|
1244
1376
|
const queryParameters = {};
|
|
1245
1377
|
const headerParameters = {};
|
|
1246
|
-
if (this.configuration && this.configuration.
|
|
1247
|
-
|
|
1378
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1379
|
+
const token = this.configuration.accessToken;
|
|
1380
|
+
const tokenString = yield token("authentik", []);
|
|
1381
|
+
if (tokenString) {
|
|
1382
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1383
|
+
}
|
|
1248
1384
|
}
|
|
1249
1385
|
const response = yield this.request({
|
|
1250
1386
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1303,8 +1439,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1303
1439
|
queryParameters['user__username'] = requestParameters.userUsername;
|
|
1304
1440
|
}
|
|
1305
1441
|
const headerParameters = {};
|
|
1306
|
-
if (this.configuration && this.configuration.
|
|
1307
|
-
|
|
1442
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1443
|
+
const token = this.configuration.accessToken;
|
|
1444
|
+
const tokenString = yield token("authentik", []);
|
|
1445
|
+
if (tokenString) {
|
|
1446
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1447
|
+
}
|
|
1308
1448
|
}
|
|
1309
1449
|
const response = yield this.request({
|
|
1310
1450
|
path: `/core/tokens/`,
|
|
@@ -1335,8 +1475,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1335
1475
|
const queryParameters = {};
|
|
1336
1476
|
const headerParameters = {};
|
|
1337
1477
|
headerParameters['Content-Type'] = 'application/json';
|
|
1338
|
-
if (this.configuration && this.configuration.
|
|
1339
|
-
|
|
1478
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1479
|
+
const token = this.configuration.accessToken;
|
|
1480
|
+
const tokenString = yield token("authentik", []);
|
|
1481
|
+
if (tokenString) {
|
|
1482
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1483
|
+
}
|
|
1340
1484
|
}
|
|
1341
1485
|
const response = yield this.request({
|
|
1342
1486
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1367,8 +1511,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1367
1511
|
}
|
|
1368
1512
|
const queryParameters = {};
|
|
1369
1513
|
const headerParameters = {};
|
|
1370
|
-
if (this.configuration && this.configuration.
|
|
1371
|
-
|
|
1514
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1515
|
+
const token = this.configuration.accessToken;
|
|
1516
|
+
const tokenString = yield token("authentik", []);
|
|
1517
|
+
if (tokenString) {
|
|
1518
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1519
|
+
}
|
|
1372
1520
|
}
|
|
1373
1521
|
const response = yield this.request({
|
|
1374
1522
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1402,8 +1550,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1402
1550
|
const queryParameters = {};
|
|
1403
1551
|
const headerParameters = {};
|
|
1404
1552
|
headerParameters['Content-Type'] = 'application/json';
|
|
1405
|
-
if (this.configuration && this.configuration.
|
|
1406
|
-
|
|
1553
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1554
|
+
const token = this.configuration.accessToken;
|
|
1555
|
+
const tokenString = yield token("authentik", []);
|
|
1556
|
+
if (tokenString) {
|
|
1557
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1558
|
+
}
|
|
1407
1559
|
}
|
|
1408
1560
|
const response = yield this.request({
|
|
1409
1561
|
path: `/core/tokens/{identifier}/set_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1437,8 +1589,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1437
1589
|
const queryParameters = {};
|
|
1438
1590
|
const headerParameters = {};
|
|
1439
1591
|
headerParameters['Content-Type'] = 'application/json';
|
|
1440
|
-
if (this.configuration && this.configuration.
|
|
1441
|
-
|
|
1592
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1593
|
+
const token = this.configuration.accessToken;
|
|
1594
|
+
const tokenString = yield token("authentik", []);
|
|
1595
|
+
if (tokenString) {
|
|
1596
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1597
|
+
}
|
|
1442
1598
|
}
|
|
1443
1599
|
const response = yield this.request({
|
|
1444
1600
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1469,8 +1625,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1469
1625
|
}
|
|
1470
1626
|
const queryParameters = {};
|
|
1471
1627
|
const headerParameters = {};
|
|
1472
|
-
if (this.configuration && this.configuration.
|
|
1473
|
-
|
|
1628
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1629
|
+
const token = this.configuration.accessToken;
|
|
1630
|
+
const tokenString = yield token("authentik", []);
|
|
1631
|
+
if (tokenString) {
|
|
1632
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1633
|
+
}
|
|
1474
1634
|
}
|
|
1475
1635
|
const response = yield this.request({
|
|
1476
1636
|
path: `/core/tokens/{identifier}/used_by/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1500,8 +1660,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1500
1660
|
}
|
|
1501
1661
|
const queryParameters = {};
|
|
1502
1662
|
const headerParameters = {};
|
|
1503
|
-
if (this.configuration && this.configuration.
|
|
1504
|
-
|
|
1663
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1664
|
+
const token = this.configuration.accessToken;
|
|
1665
|
+
const tokenString = yield token("authentik", []);
|
|
1666
|
+
if (tokenString) {
|
|
1667
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1668
|
+
}
|
|
1505
1669
|
}
|
|
1506
1670
|
const response = yield this.request({
|
|
1507
1671
|
path: `/core/tokens/{identifier}/view_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1532,8 +1696,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1532
1696
|
const queryParameters = {};
|
|
1533
1697
|
const headerParameters = {};
|
|
1534
1698
|
headerParameters['Content-Type'] = 'application/json';
|
|
1535
|
-
if (this.configuration && this.configuration.
|
|
1536
|
-
|
|
1699
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1700
|
+
const token = this.configuration.accessToken;
|
|
1701
|
+
const tokenString = yield token("authentik", []);
|
|
1702
|
+
if (tokenString) {
|
|
1703
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1704
|
+
}
|
|
1537
1705
|
}
|
|
1538
1706
|
const response = yield this.request({
|
|
1539
1707
|
path: `/core/transactional/applications/`,
|
|
@@ -1564,8 +1732,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1564
1732
|
}
|
|
1565
1733
|
const queryParameters = {};
|
|
1566
1734
|
const headerParameters = {};
|
|
1567
|
-
if (this.configuration && this.configuration.
|
|
1568
|
-
|
|
1735
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1736
|
+
const token = this.configuration.accessToken;
|
|
1737
|
+
const tokenString = yield token("authentik", []);
|
|
1738
|
+
if (tokenString) {
|
|
1739
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1740
|
+
}
|
|
1569
1741
|
}
|
|
1570
1742
|
const response = yield this.request({
|
|
1571
1743
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1609,8 +1781,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1609
1781
|
queryParameters['user'] = requestParameters.user;
|
|
1610
1782
|
}
|
|
1611
1783
|
const headerParameters = {};
|
|
1612
|
-
if (this.configuration && this.configuration.
|
|
1613
|
-
|
|
1784
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1785
|
+
const token = this.configuration.accessToken;
|
|
1786
|
+
const tokenString = yield token("authentik", []);
|
|
1787
|
+
if (tokenString) {
|
|
1788
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1789
|
+
}
|
|
1614
1790
|
}
|
|
1615
1791
|
const response = yield this.request({
|
|
1616
1792
|
path: `/core/user_consent/`,
|
|
@@ -1640,8 +1816,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1640
1816
|
}
|
|
1641
1817
|
const queryParameters = {};
|
|
1642
1818
|
const headerParameters = {};
|
|
1643
|
-
if (this.configuration && this.configuration.
|
|
1644
|
-
|
|
1819
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1820
|
+
const token = this.configuration.accessToken;
|
|
1821
|
+
const tokenString = yield token("authentik", []);
|
|
1822
|
+
if (tokenString) {
|
|
1823
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1824
|
+
}
|
|
1645
1825
|
}
|
|
1646
1826
|
const response = yield this.request({
|
|
1647
1827
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1671,8 +1851,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1671
1851
|
}
|
|
1672
1852
|
const queryParameters = {};
|
|
1673
1853
|
const headerParameters = {};
|
|
1674
|
-
if (this.configuration && this.configuration.
|
|
1675
|
-
|
|
1854
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1855
|
+
const token = this.configuration.accessToken;
|
|
1856
|
+
const tokenString = yield token("authentik", []);
|
|
1857
|
+
if (tokenString) {
|
|
1858
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1859
|
+
}
|
|
1676
1860
|
}
|
|
1677
1861
|
const response = yield this.request({
|
|
1678
1862
|
path: `/core/user_consent/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1703,8 +1887,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1703
1887
|
const queryParameters = {};
|
|
1704
1888
|
const headerParameters = {};
|
|
1705
1889
|
headerParameters['Content-Type'] = 'application/json';
|
|
1706
|
-
if (this.configuration && this.configuration.
|
|
1707
|
-
|
|
1890
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1891
|
+
const token = this.configuration.accessToken;
|
|
1892
|
+
const tokenString = yield token("authentik", []);
|
|
1893
|
+
if (tokenString) {
|
|
1894
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1895
|
+
}
|
|
1708
1896
|
}
|
|
1709
1897
|
const response = yield this.request({
|
|
1710
1898
|
path: `/core/users/`,
|
|
@@ -1735,8 +1923,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1735
1923
|
}
|
|
1736
1924
|
const queryParameters = {};
|
|
1737
1925
|
const headerParameters = {};
|
|
1738
|
-
if (this.configuration && this.configuration.
|
|
1739
|
-
|
|
1926
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1927
|
+
const token = this.configuration.accessToken;
|
|
1928
|
+
const tokenString = yield token("authentik", []);
|
|
1929
|
+
if (tokenString) {
|
|
1930
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1931
|
+
}
|
|
1740
1932
|
}
|
|
1741
1933
|
const response = yield this.request({
|
|
1742
1934
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1765,8 +1957,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1765
1957
|
}
|
|
1766
1958
|
const queryParameters = {};
|
|
1767
1959
|
const headerParameters = {};
|
|
1768
|
-
if (this.configuration && this.configuration.
|
|
1769
|
-
|
|
1960
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1961
|
+
const token = this.configuration.accessToken;
|
|
1962
|
+
const tokenString = yield token("authentik", []);
|
|
1963
|
+
if (tokenString) {
|
|
1964
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1965
|
+
}
|
|
1770
1966
|
}
|
|
1771
1967
|
const response = yield this.request({
|
|
1772
1968
|
path: `/core/users/{id}/impersonate/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1792,8 +1988,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1792
1988
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1793
1989
|
const queryParameters = {};
|
|
1794
1990
|
const headerParameters = {};
|
|
1795
|
-
if (this.configuration && this.configuration.
|
|
1796
|
-
|
|
1991
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1992
|
+
const token = this.configuration.accessToken;
|
|
1993
|
+
const tokenString = yield token("authentik", []);
|
|
1994
|
+
if (tokenString) {
|
|
1995
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1996
|
+
}
|
|
1797
1997
|
}
|
|
1798
1998
|
const response = yield this.request({
|
|
1799
1999
|
path: `/core/users/impersonate_end/`,
|
|
@@ -1867,8 +2067,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1867
2067
|
queryParameters['uuid'] = requestParameters.uuid;
|
|
1868
2068
|
}
|
|
1869
2069
|
const headerParameters = {};
|
|
1870
|
-
if (this.configuration && this.configuration.
|
|
1871
|
-
|
|
2070
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2071
|
+
const token = this.configuration.accessToken;
|
|
2072
|
+
const tokenString = yield token("authentik", []);
|
|
2073
|
+
if (tokenString) {
|
|
2074
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2075
|
+
}
|
|
1872
2076
|
}
|
|
1873
2077
|
const response = yield this.request({
|
|
1874
2078
|
path: `/core/users/`,
|
|
@@ -1895,8 +2099,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1895
2099
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1896
2100
|
const queryParameters = {};
|
|
1897
2101
|
const headerParameters = {};
|
|
1898
|
-
if (this.configuration && this.configuration.
|
|
1899
|
-
|
|
2102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2103
|
+
const token = this.configuration.accessToken;
|
|
2104
|
+
const tokenString = yield token("authentik", []);
|
|
2105
|
+
if (tokenString) {
|
|
2106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2107
|
+
}
|
|
1900
2108
|
}
|
|
1901
2109
|
const response = yield this.request({
|
|
1902
2110
|
path: `/core/users/me/`,
|
|
@@ -1926,8 +2134,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1926
2134
|
}
|
|
1927
2135
|
const queryParameters = {};
|
|
1928
2136
|
const headerParameters = {};
|
|
1929
|
-
if (this.configuration && this.configuration.
|
|
1930
|
-
|
|
2137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2138
|
+
const token = this.configuration.accessToken;
|
|
2139
|
+
const tokenString = yield token("authentik", []);
|
|
2140
|
+
if (tokenString) {
|
|
2141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2142
|
+
}
|
|
1931
2143
|
}
|
|
1932
2144
|
const response = yield this.request({
|
|
1933
2145
|
path: `/core/users/{id}/metrics/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1958,8 +2170,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1958
2170
|
const queryParameters = {};
|
|
1959
2171
|
const headerParameters = {};
|
|
1960
2172
|
headerParameters['Content-Type'] = 'application/json';
|
|
1961
|
-
if (this.configuration && this.configuration.
|
|
1962
|
-
|
|
2173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2174
|
+
const token = this.configuration.accessToken;
|
|
2175
|
+
const tokenString = yield token("authentik", []);
|
|
2176
|
+
if (tokenString) {
|
|
2177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2178
|
+
}
|
|
1963
2179
|
}
|
|
1964
2180
|
const response = yield this.request({
|
|
1965
2181
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1990,8 +2206,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1990
2206
|
queryParameters['search'] = requestParameters.search;
|
|
1991
2207
|
}
|
|
1992
2208
|
const headerParameters = {};
|
|
1993
|
-
if (this.configuration && this.configuration.
|
|
1994
|
-
|
|
2209
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2210
|
+
const token = this.configuration.accessToken;
|
|
2211
|
+
const tokenString = yield token("authentik", []);
|
|
2212
|
+
if (tokenString) {
|
|
2213
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2214
|
+
}
|
|
1995
2215
|
}
|
|
1996
2216
|
const response = yield this.request({
|
|
1997
2217
|
path: `/core/users/paths/`,
|
|
@@ -2021,8 +2241,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2021
2241
|
}
|
|
2022
2242
|
const queryParameters = {};
|
|
2023
2243
|
const headerParameters = {};
|
|
2024
|
-
if (this.configuration && this.configuration.
|
|
2025
|
-
|
|
2244
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2245
|
+
const token = this.configuration.accessToken;
|
|
2246
|
+
const tokenString = yield token("authentik", []);
|
|
2247
|
+
if (tokenString) {
|
|
2248
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2249
|
+
}
|
|
2026
2250
|
}
|
|
2027
2251
|
const response = yield this.request({
|
|
2028
2252
|
path: `/core/users/{id}/recovery/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2058,8 +2282,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2058
2282
|
queryParameters['email_stage'] = requestParameters.emailStage;
|
|
2059
2283
|
}
|
|
2060
2284
|
const headerParameters = {};
|
|
2061
|
-
if (this.configuration && this.configuration.
|
|
2062
|
-
|
|
2285
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2286
|
+
const token = this.configuration.accessToken;
|
|
2287
|
+
const tokenString = yield token("authentik", []);
|
|
2288
|
+
if (tokenString) {
|
|
2289
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2290
|
+
}
|
|
2063
2291
|
}
|
|
2064
2292
|
const response = yield this.request({
|
|
2065
2293
|
path: `/core/users/{id}/recovery_email/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2088,8 +2316,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2088
2316
|
}
|
|
2089
2317
|
const queryParameters = {};
|
|
2090
2318
|
const headerParameters = {};
|
|
2091
|
-
if (this.configuration && this.configuration.
|
|
2092
|
-
|
|
2319
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2320
|
+
const token = this.configuration.accessToken;
|
|
2321
|
+
const tokenString = yield token("authentik", []);
|
|
2322
|
+
if (tokenString) {
|
|
2323
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2324
|
+
}
|
|
2093
2325
|
}
|
|
2094
2326
|
const response = yield this.request({
|
|
2095
2327
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2120,8 +2352,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2120
2352
|
const queryParameters = {};
|
|
2121
2353
|
const headerParameters = {};
|
|
2122
2354
|
headerParameters['Content-Type'] = 'application/json';
|
|
2123
|
-
if (this.configuration && this.configuration.
|
|
2124
|
-
|
|
2355
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2356
|
+
const token = this.configuration.accessToken;
|
|
2357
|
+
const tokenString = yield token("authentik", []);
|
|
2358
|
+
if (tokenString) {
|
|
2359
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2360
|
+
}
|
|
2125
2361
|
}
|
|
2126
2362
|
const response = yield this.request({
|
|
2127
2363
|
path: `/core/users/service_account/`,
|
|
@@ -2156,8 +2392,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2156
2392
|
const queryParameters = {};
|
|
2157
2393
|
const headerParameters = {};
|
|
2158
2394
|
headerParameters['Content-Type'] = 'application/json';
|
|
2159
|
-
if (this.configuration && this.configuration.
|
|
2160
|
-
|
|
2395
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2396
|
+
const token = this.configuration.accessToken;
|
|
2397
|
+
const tokenString = yield token("authentik", []);
|
|
2398
|
+
if (tokenString) {
|
|
2399
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2400
|
+
}
|
|
2161
2401
|
}
|
|
2162
2402
|
const response = yield this.request({
|
|
2163
2403
|
path: `/core/users/{id}/set_password/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2191,8 +2431,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2191
2431
|
const queryParameters = {};
|
|
2192
2432
|
const headerParameters = {};
|
|
2193
2433
|
headerParameters['Content-Type'] = 'application/json';
|
|
2194
|
-
if (this.configuration && this.configuration.
|
|
2195
|
-
|
|
2434
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2435
|
+
const token = this.configuration.accessToken;
|
|
2436
|
+
const tokenString = yield token("authentik", []);
|
|
2437
|
+
if (tokenString) {
|
|
2438
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2439
|
+
}
|
|
2196
2440
|
}
|
|
2197
2441
|
const response = yield this.request({
|
|
2198
2442
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2223,8 +2467,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2223
2467
|
}
|
|
2224
2468
|
const queryParameters = {};
|
|
2225
2469
|
const headerParameters = {};
|
|
2226
|
-
if (this.configuration && this.configuration.
|
|
2227
|
-
|
|
2470
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2471
|
+
const token = this.configuration.accessToken;
|
|
2472
|
+
const tokenString = yield token("authentik", []);
|
|
2473
|
+
if (tokenString) {
|
|
2474
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2475
|
+
}
|
|
2228
2476
|
}
|
|
2229
2477
|
const response = yield this.request({
|
|
2230
2478
|
path: `/core/users/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|