@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1713180481
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/.openapi-generator/FILES +0 -1
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.d.ts +2 -0
- package/dist/apis/CoreApi.js +378 -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.d.ts +2 -0
- package/dist/esm/apis/CoreApi.js +378 -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/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +444 -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/index.ts +0 -1
- package/dist/esm/models/UserGroupRequest.d.ts +0 -51
- package/dist/esm/models/UserGroupRequest.js +0 -50
- package/dist/models/UserGroupRequest.d.ts +0 -51
- package/dist/models/UserGroupRequest.js +0 -57
- package/src/models/UserGroupRequest.ts +0 -90
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))),
|
|
@@ -988,6 +1092,9 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
988
1092
|
if (requestParameters.attributes !== undefined) {
|
|
989
1093
|
queryParameters['attributes'] = requestParameters.attributes;
|
|
990
1094
|
}
|
|
1095
|
+
if (requestParameters.includeUsers !== undefined) {
|
|
1096
|
+
queryParameters['include_users'] = requestParameters.includeUsers;
|
|
1097
|
+
}
|
|
991
1098
|
if (requestParameters.isSuperuser !== undefined) {
|
|
992
1099
|
queryParameters['is_superuser'] = requestParameters.isSuperuser;
|
|
993
1100
|
}
|
|
@@ -1013,8 +1120,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1013
1120
|
queryParameters['search'] = requestParameters.search;
|
|
1014
1121
|
}
|
|
1015
1122
|
const headerParameters = {};
|
|
1016
|
-
if (this.configuration && this.configuration.
|
|
1017
|
-
|
|
1123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1124
|
+
const token = this.configuration.accessToken;
|
|
1125
|
+
const tokenString = yield token("authentik", []);
|
|
1126
|
+
if (tokenString) {
|
|
1127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1128
|
+
}
|
|
1018
1129
|
}
|
|
1019
1130
|
const response = yield this.request({
|
|
1020
1131
|
path: `/core/groups/`,
|
|
@@ -1045,8 +1156,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1045
1156
|
const queryParameters = {};
|
|
1046
1157
|
const headerParameters = {};
|
|
1047
1158
|
headerParameters['Content-Type'] = 'application/json';
|
|
1048
|
-
if (this.configuration && this.configuration.
|
|
1049
|
-
|
|
1159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1160
|
+
const token = this.configuration.accessToken;
|
|
1161
|
+
const tokenString = yield token("authentik", []);
|
|
1162
|
+
if (tokenString) {
|
|
1163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1164
|
+
}
|
|
1050
1165
|
}
|
|
1051
1166
|
const response = yield this.request({
|
|
1052
1167
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1081,8 +1196,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1081
1196
|
const queryParameters = {};
|
|
1082
1197
|
const headerParameters = {};
|
|
1083
1198
|
headerParameters['Content-Type'] = 'application/json';
|
|
1084
|
-
if (this.configuration && this.configuration.
|
|
1085
|
-
|
|
1199
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1200
|
+
const token = this.configuration.accessToken;
|
|
1201
|
+
const tokenString = yield token("authentik", []);
|
|
1202
|
+
if (tokenString) {
|
|
1203
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1204
|
+
}
|
|
1086
1205
|
}
|
|
1087
1206
|
const response = yield this.request({
|
|
1088
1207
|
path: `/core/groups/{group_uuid}/remove_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1112,8 +1231,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1112
1231
|
}
|
|
1113
1232
|
const queryParameters = {};
|
|
1114
1233
|
const headerParameters = {};
|
|
1115
|
-
if (this.configuration && this.configuration.
|
|
1116
|
-
|
|
1234
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1235
|
+
const token = this.configuration.accessToken;
|
|
1236
|
+
const tokenString = yield token("authentik", []);
|
|
1237
|
+
if (tokenString) {
|
|
1238
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1239
|
+
}
|
|
1117
1240
|
}
|
|
1118
1241
|
const response = yield this.request({
|
|
1119
1242
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1147,8 +1270,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1147
1270
|
const queryParameters = {};
|
|
1148
1271
|
const headerParameters = {};
|
|
1149
1272
|
headerParameters['Content-Type'] = 'application/json';
|
|
1150
|
-
if (this.configuration && this.configuration.
|
|
1151
|
-
|
|
1273
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1274
|
+
const token = this.configuration.accessToken;
|
|
1275
|
+
const tokenString = yield token("authentik", []);
|
|
1276
|
+
if (tokenString) {
|
|
1277
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1278
|
+
}
|
|
1152
1279
|
}
|
|
1153
1280
|
const response = yield this.request({
|
|
1154
1281
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1179,8 +1306,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1179
1306
|
}
|
|
1180
1307
|
const queryParameters = {};
|
|
1181
1308
|
const headerParameters = {};
|
|
1182
|
-
if (this.configuration && this.configuration.
|
|
1183
|
-
|
|
1309
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1310
|
+
const token = this.configuration.accessToken;
|
|
1311
|
+
const tokenString = yield token("authentik", []);
|
|
1312
|
+
if (tokenString) {
|
|
1313
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1314
|
+
}
|
|
1184
1315
|
}
|
|
1185
1316
|
const response = yield this.request({
|
|
1186
1317
|
path: `/core/groups/{group_uuid}/used_by/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1211,8 +1342,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1211
1342
|
const queryParameters = {};
|
|
1212
1343
|
const headerParameters = {};
|
|
1213
1344
|
headerParameters['Content-Type'] = 'application/json';
|
|
1214
|
-
if (this.configuration && this.configuration.
|
|
1215
|
-
|
|
1345
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1346
|
+
const token = this.configuration.accessToken;
|
|
1347
|
+
const tokenString = yield token("authentik", []);
|
|
1348
|
+
if (tokenString) {
|
|
1349
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1350
|
+
}
|
|
1216
1351
|
}
|
|
1217
1352
|
const response = yield this.request({
|
|
1218
1353
|
path: `/core/tokens/`,
|
|
@@ -1243,8 +1378,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1243
1378
|
}
|
|
1244
1379
|
const queryParameters = {};
|
|
1245
1380
|
const headerParameters = {};
|
|
1246
|
-
if (this.configuration && this.configuration.
|
|
1247
|
-
|
|
1381
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1382
|
+
const token = this.configuration.accessToken;
|
|
1383
|
+
const tokenString = yield token("authentik", []);
|
|
1384
|
+
if (tokenString) {
|
|
1385
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1386
|
+
}
|
|
1248
1387
|
}
|
|
1249
1388
|
const response = yield this.request({
|
|
1250
1389
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1303,8 +1442,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1303
1442
|
queryParameters['user__username'] = requestParameters.userUsername;
|
|
1304
1443
|
}
|
|
1305
1444
|
const headerParameters = {};
|
|
1306
|
-
if (this.configuration && this.configuration.
|
|
1307
|
-
|
|
1445
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1446
|
+
const token = this.configuration.accessToken;
|
|
1447
|
+
const tokenString = yield token("authentik", []);
|
|
1448
|
+
if (tokenString) {
|
|
1449
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1450
|
+
}
|
|
1308
1451
|
}
|
|
1309
1452
|
const response = yield this.request({
|
|
1310
1453
|
path: `/core/tokens/`,
|
|
@@ -1335,8 +1478,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1335
1478
|
const queryParameters = {};
|
|
1336
1479
|
const headerParameters = {};
|
|
1337
1480
|
headerParameters['Content-Type'] = 'application/json';
|
|
1338
|
-
if (this.configuration && this.configuration.
|
|
1339
|
-
|
|
1481
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1482
|
+
const token = this.configuration.accessToken;
|
|
1483
|
+
const tokenString = yield token("authentik", []);
|
|
1484
|
+
if (tokenString) {
|
|
1485
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1486
|
+
}
|
|
1340
1487
|
}
|
|
1341
1488
|
const response = yield this.request({
|
|
1342
1489
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1367,8 +1514,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1367
1514
|
}
|
|
1368
1515
|
const queryParameters = {};
|
|
1369
1516
|
const headerParameters = {};
|
|
1370
|
-
if (this.configuration && this.configuration.
|
|
1371
|
-
|
|
1517
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1518
|
+
const token = this.configuration.accessToken;
|
|
1519
|
+
const tokenString = yield token("authentik", []);
|
|
1520
|
+
if (tokenString) {
|
|
1521
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1522
|
+
}
|
|
1372
1523
|
}
|
|
1373
1524
|
const response = yield this.request({
|
|
1374
1525
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1402,8 +1553,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1402
1553
|
const queryParameters = {};
|
|
1403
1554
|
const headerParameters = {};
|
|
1404
1555
|
headerParameters['Content-Type'] = 'application/json';
|
|
1405
|
-
if (this.configuration && this.configuration.
|
|
1406
|
-
|
|
1556
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1557
|
+
const token = this.configuration.accessToken;
|
|
1558
|
+
const tokenString = yield token("authentik", []);
|
|
1559
|
+
if (tokenString) {
|
|
1560
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1561
|
+
}
|
|
1407
1562
|
}
|
|
1408
1563
|
const response = yield this.request({
|
|
1409
1564
|
path: `/core/tokens/{identifier}/set_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1437,8 +1592,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1437
1592
|
const queryParameters = {};
|
|
1438
1593
|
const headerParameters = {};
|
|
1439
1594
|
headerParameters['Content-Type'] = 'application/json';
|
|
1440
|
-
if (this.configuration && this.configuration.
|
|
1441
|
-
|
|
1595
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1596
|
+
const token = this.configuration.accessToken;
|
|
1597
|
+
const tokenString = yield token("authentik", []);
|
|
1598
|
+
if (tokenString) {
|
|
1599
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1600
|
+
}
|
|
1442
1601
|
}
|
|
1443
1602
|
const response = yield this.request({
|
|
1444
1603
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1469,8 +1628,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1469
1628
|
}
|
|
1470
1629
|
const queryParameters = {};
|
|
1471
1630
|
const headerParameters = {};
|
|
1472
|
-
if (this.configuration && this.configuration.
|
|
1473
|
-
|
|
1631
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1632
|
+
const token = this.configuration.accessToken;
|
|
1633
|
+
const tokenString = yield token("authentik", []);
|
|
1634
|
+
if (tokenString) {
|
|
1635
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1636
|
+
}
|
|
1474
1637
|
}
|
|
1475
1638
|
const response = yield this.request({
|
|
1476
1639
|
path: `/core/tokens/{identifier}/used_by/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1500,8 +1663,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1500
1663
|
}
|
|
1501
1664
|
const queryParameters = {};
|
|
1502
1665
|
const headerParameters = {};
|
|
1503
|
-
if (this.configuration && this.configuration.
|
|
1504
|
-
|
|
1666
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1667
|
+
const token = this.configuration.accessToken;
|
|
1668
|
+
const tokenString = yield token("authentik", []);
|
|
1669
|
+
if (tokenString) {
|
|
1670
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1671
|
+
}
|
|
1505
1672
|
}
|
|
1506
1673
|
const response = yield this.request({
|
|
1507
1674
|
path: `/core/tokens/{identifier}/view_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1532,8 +1699,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1532
1699
|
const queryParameters = {};
|
|
1533
1700
|
const headerParameters = {};
|
|
1534
1701
|
headerParameters['Content-Type'] = 'application/json';
|
|
1535
|
-
if (this.configuration && this.configuration.
|
|
1536
|
-
|
|
1702
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1703
|
+
const token = this.configuration.accessToken;
|
|
1704
|
+
const tokenString = yield token("authentik", []);
|
|
1705
|
+
if (tokenString) {
|
|
1706
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1707
|
+
}
|
|
1537
1708
|
}
|
|
1538
1709
|
const response = yield this.request({
|
|
1539
1710
|
path: `/core/transactional/applications/`,
|
|
@@ -1564,8 +1735,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1564
1735
|
}
|
|
1565
1736
|
const queryParameters = {};
|
|
1566
1737
|
const headerParameters = {};
|
|
1567
|
-
if (this.configuration && this.configuration.
|
|
1568
|
-
|
|
1738
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1739
|
+
const token = this.configuration.accessToken;
|
|
1740
|
+
const tokenString = yield token("authentik", []);
|
|
1741
|
+
if (tokenString) {
|
|
1742
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1743
|
+
}
|
|
1569
1744
|
}
|
|
1570
1745
|
const response = yield this.request({
|
|
1571
1746
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1609,8 +1784,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1609
1784
|
queryParameters['user'] = requestParameters.user;
|
|
1610
1785
|
}
|
|
1611
1786
|
const headerParameters = {};
|
|
1612
|
-
if (this.configuration && this.configuration.
|
|
1613
|
-
|
|
1787
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1788
|
+
const token = this.configuration.accessToken;
|
|
1789
|
+
const tokenString = yield token("authentik", []);
|
|
1790
|
+
if (tokenString) {
|
|
1791
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1792
|
+
}
|
|
1614
1793
|
}
|
|
1615
1794
|
const response = yield this.request({
|
|
1616
1795
|
path: `/core/user_consent/`,
|
|
@@ -1640,8 +1819,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1640
1819
|
}
|
|
1641
1820
|
const queryParameters = {};
|
|
1642
1821
|
const headerParameters = {};
|
|
1643
|
-
if (this.configuration && this.configuration.
|
|
1644
|
-
|
|
1822
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1823
|
+
const token = this.configuration.accessToken;
|
|
1824
|
+
const tokenString = yield token("authentik", []);
|
|
1825
|
+
if (tokenString) {
|
|
1826
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1827
|
+
}
|
|
1645
1828
|
}
|
|
1646
1829
|
const response = yield this.request({
|
|
1647
1830
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1671,8 +1854,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1671
1854
|
}
|
|
1672
1855
|
const queryParameters = {};
|
|
1673
1856
|
const headerParameters = {};
|
|
1674
|
-
if (this.configuration && this.configuration.
|
|
1675
|
-
|
|
1857
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1858
|
+
const token = this.configuration.accessToken;
|
|
1859
|
+
const tokenString = yield token("authentik", []);
|
|
1860
|
+
if (tokenString) {
|
|
1861
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1862
|
+
}
|
|
1676
1863
|
}
|
|
1677
1864
|
const response = yield this.request({
|
|
1678
1865
|
path: `/core/user_consent/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1703,8 +1890,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1703
1890
|
const queryParameters = {};
|
|
1704
1891
|
const headerParameters = {};
|
|
1705
1892
|
headerParameters['Content-Type'] = 'application/json';
|
|
1706
|
-
if (this.configuration && this.configuration.
|
|
1707
|
-
|
|
1893
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1894
|
+
const token = this.configuration.accessToken;
|
|
1895
|
+
const tokenString = yield token("authentik", []);
|
|
1896
|
+
if (tokenString) {
|
|
1897
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1898
|
+
}
|
|
1708
1899
|
}
|
|
1709
1900
|
const response = yield this.request({
|
|
1710
1901
|
path: `/core/users/`,
|
|
@@ -1735,8 +1926,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1735
1926
|
}
|
|
1736
1927
|
const queryParameters = {};
|
|
1737
1928
|
const headerParameters = {};
|
|
1738
|
-
if (this.configuration && this.configuration.
|
|
1739
|
-
|
|
1929
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1930
|
+
const token = this.configuration.accessToken;
|
|
1931
|
+
const tokenString = yield token("authentik", []);
|
|
1932
|
+
if (tokenString) {
|
|
1933
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1934
|
+
}
|
|
1740
1935
|
}
|
|
1741
1936
|
const response = yield this.request({
|
|
1742
1937
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1765,8 +1960,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1765
1960
|
}
|
|
1766
1961
|
const queryParameters = {};
|
|
1767
1962
|
const headerParameters = {};
|
|
1768
|
-
if (this.configuration && this.configuration.
|
|
1769
|
-
|
|
1963
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1964
|
+
const token = this.configuration.accessToken;
|
|
1965
|
+
const tokenString = yield token("authentik", []);
|
|
1966
|
+
if (tokenString) {
|
|
1967
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1968
|
+
}
|
|
1770
1969
|
}
|
|
1771
1970
|
const response = yield this.request({
|
|
1772
1971
|
path: `/core/users/{id}/impersonate/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1792,8 +1991,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1792
1991
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1793
1992
|
const queryParameters = {};
|
|
1794
1993
|
const headerParameters = {};
|
|
1795
|
-
if (this.configuration && this.configuration.
|
|
1796
|
-
|
|
1994
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1995
|
+
const token = this.configuration.accessToken;
|
|
1996
|
+
const tokenString = yield token("authentik", []);
|
|
1997
|
+
if (tokenString) {
|
|
1998
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1999
|
+
}
|
|
1797
2000
|
}
|
|
1798
2001
|
const response = yield this.request({
|
|
1799
2002
|
path: `/core/users/impersonate_end/`,
|
|
@@ -1830,6 +2033,9 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1830
2033
|
if (requestParameters.groupsByPk) {
|
|
1831
2034
|
queryParameters['groups_by_pk'] = requestParameters.groupsByPk;
|
|
1832
2035
|
}
|
|
2036
|
+
if (requestParameters.includeGroups !== undefined) {
|
|
2037
|
+
queryParameters['include_groups'] = requestParameters.includeGroups;
|
|
2038
|
+
}
|
|
1833
2039
|
if (requestParameters.isActive !== undefined) {
|
|
1834
2040
|
queryParameters['is_active'] = requestParameters.isActive;
|
|
1835
2041
|
}
|
|
@@ -1867,8 +2073,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1867
2073
|
queryParameters['uuid'] = requestParameters.uuid;
|
|
1868
2074
|
}
|
|
1869
2075
|
const headerParameters = {};
|
|
1870
|
-
if (this.configuration && this.configuration.
|
|
1871
|
-
|
|
2076
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2077
|
+
const token = this.configuration.accessToken;
|
|
2078
|
+
const tokenString = yield token("authentik", []);
|
|
2079
|
+
if (tokenString) {
|
|
2080
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2081
|
+
}
|
|
1872
2082
|
}
|
|
1873
2083
|
const response = yield this.request({
|
|
1874
2084
|
path: `/core/users/`,
|
|
@@ -1895,8 +2105,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1895
2105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1896
2106
|
const queryParameters = {};
|
|
1897
2107
|
const headerParameters = {};
|
|
1898
|
-
if (this.configuration && this.configuration.
|
|
1899
|
-
|
|
2108
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2109
|
+
const token = this.configuration.accessToken;
|
|
2110
|
+
const tokenString = yield token("authentik", []);
|
|
2111
|
+
if (tokenString) {
|
|
2112
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2113
|
+
}
|
|
1900
2114
|
}
|
|
1901
2115
|
const response = yield this.request({
|
|
1902
2116
|
path: `/core/users/me/`,
|
|
@@ -1926,8 +2140,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1926
2140
|
}
|
|
1927
2141
|
const queryParameters = {};
|
|
1928
2142
|
const headerParameters = {};
|
|
1929
|
-
if (this.configuration && this.configuration.
|
|
1930
|
-
|
|
2143
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2144
|
+
const token = this.configuration.accessToken;
|
|
2145
|
+
const tokenString = yield token("authentik", []);
|
|
2146
|
+
if (tokenString) {
|
|
2147
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2148
|
+
}
|
|
1931
2149
|
}
|
|
1932
2150
|
const response = yield this.request({
|
|
1933
2151
|
path: `/core/users/{id}/metrics/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1958,8 +2176,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1958
2176
|
const queryParameters = {};
|
|
1959
2177
|
const headerParameters = {};
|
|
1960
2178
|
headerParameters['Content-Type'] = 'application/json';
|
|
1961
|
-
if (this.configuration && this.configuration.
|
|
1962
|
-
|
|
2179
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2180
|
+
const token = this.configuration.accessToken;
|
|
2181
|
+
const tokenString = yield token("authentik", []);
|
|
2182
|
+
if (tokenString) {
|
|
2183
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2184
|
+
}
|
|
1963
2185
|
}
|
|
1964
2186
|
const response = yield this.request({
|
|
1965
2187
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1990,8 +2212,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
1990
2212
|
queryParameters['search'] = requestParameters.search;
|
|
1991
2213
|
}
|
|
1992
2214
|
const headerParameters = {};
|
|
1993
|
-
if (this.configuration && this.configuration.
|
|
1994
|
-
|
|
2215
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2216
|
+
const token = this.configuration.accessToken;
|
|
2217
|
+
const tokenString = yield token("authentik", []);
|
|
2218
|
+
if (tokenString) {
|
|
2219
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2220
|
+
}
|
|
1995
2221
|
}
|
|
1996
2222
|
const response = yield this.request({
|
|
1997
2223
|
path: `/core/users/paths/`,
|
|
@@ -2021,8 +2247,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2021
2247
|
}
|
|
2022
2248
|
const queryParameters = {};
|
|
2023
2249
|
const headerParameters = {};
|
|
2024
|
-
if (this.configuration && this.configuration.
|
|
2025
|
-
|
|
2250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2251
|
+
const token = this.configuration.accessToken;
|
|
2252
|
+
const tokenString = yield token("authentik", []);
|
|
2253
|
+
if (tokenString) {
|
|
2254
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2255
|
+
}
|
|
2026
2256
|
}
|
|
2027
2257
|
const response = yield this.request({
|
|
2028
2258
|
path: `/core/users/{id}/recovery/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2058,8 +2288,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2058
2288
|
queryParameters['email_stage'] = requestParameters.emailStage;
|
|
2059
2289
|
}
|
|
2060
2290
|
const headerParameters = {};
|
|
2061
|
-
if (this.configuration && this.configuration.
|
|
2062
|
-
|
|
2291
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2292
|
+
const token = this.configuration.accessToken;
|
|
2293
|
+
const tokenString = yield token("authentik", []);
|
|
2294
|
+
if (tokenString) {
|
|
2295
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2296
|
+
}
|
|
2063
2297
|
}
|
|
2064
2298
|
const response = yield this.request({
|
|
2065
2299
|
path: `/core/users/{id}/recovery_email/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2088,8 +2322,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2088
2322
|
}
|
|
2089
2323
|
const queryParameters = {};
|
|
2090
2324
|
const headerParameters = {};
|
|
2091
|
-
if (this.configuration && this.configuration.
|
|
2092
|
-
|
|
2325
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2326
|
+
const token = this.configuration.accessToken;
|
|
2327
|
+
const tokenString = yield token("authentik", []);
|
|
2328
|
+
if (tokenString) {
|
|
2329
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2330
|
+
}
|
|
2093
2331
|
}
|
|
2094
2332
|
const response = yield this.request({
|
|
2095
2333
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2120,8 +2358,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2120
2358
|
const queryParameters = {};
|
|
2121
2359
|
const headerParameters = {};
|
|
2122
2360
|
headerParameters['Content-Type'] = 'application/json';
|
|
2123
|
-
if (this.configuration && this.configuration.
|
|
2124
|
-
|
|
2361
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2362
|
+
const token = this.configuration.accessToken;
|
|
2363
|
+
const tokenString = yield token("authentik", []);
|
|
2364
|
+
if (tokenString) {
|
|
2365
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2366
|
+
}
|
|
2125
2367
|
}
|
|
2126
2368
|
const response = yield this.request({
|
|
2127
2369
|
path: `/core/users/service_account/`,
|
|
@@ -2156,8 +2398,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2156
2398
|
const queryParameters = {};
|
|
2157
2399
|
const headerParameters = {};
|
|
2158
2400
|
headerParameters['Content-Type'] = 'application/json';
|
|
2159
|
-
if (this.configuration && this.configuration.
|
|
2160
|
-
|
|
2401
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2402
|
+
const token = this.configuration.accessToken;
|
|
2403
|
+
const tokenString = yield token("authentik", []);
|
|
2404
|
+
if (tokenString) {
|
|
2405
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2406
|
+
}
|
|
2161
2407
|
}
|
|
2162
2408
|
const response = yield this.request({
|
|
2163
2409
|
path: `/core/users/{id}/set_password/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2191,8 +2437,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2191
2437
|
const queryParameters = {};
|
|
2192
2438
|
const headerParameters = {};
|
|
2193
2439
|
headerParameters['Content-Type'] = 'application/json';
|
|
2194
|
-
if (this.configuration && this.configuration.
|
|
2195
|
-
|
|
2440
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2441
|
+
const token = this.configuration.accessToken;
|
|
2442
|
+
const tokenString = yield token("authentik", []);
|
|
2443
|
+
if (tokenString) {
|
|
2444
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2445
|
+
}
|
|
2196
2446
|
}
|
|
2197
2447
|
const response = yield this.request({
|
|
2198
2448
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2223,8 +2473,12 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
2223
2473
|
}
|
|
2224
2474
|
const queryParameters = {};
|
|
2225
2475
|
const headerParameters = {};
|
|
2226
|
-
if (this.configuration && this.configuration.
|
|
2227
|
-
|
|
2476
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2477
|
+
const token = this.configuration.accessToken;
|
|
2478
|
+
const tokenString = yield token("authentik", []);
|
|
2479
|
+
if (tokenString) {
|
|
2480
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2481
|
+
}
|
|
2228
2482
|
}
|
|
2229
2483
|
const response = yield this.request({
|
|
2230
2484
|
path: `/core/users/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|