@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/esm/apis/CoreApi.js
CHANGED
|
@@ -39,8 +39,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
39
39
|
queryParameters['for_user'] = requestParameters.forUser;
|
|
40
40
|
}
|
|
41
41
|
const headerParameters = {};
|
|
42
|
-
if (this.configuration && this.configuration.
|
|
43
|
-
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
const token = this.configuration.accessToken;
|
|
44
|
+
const tokenString = yield token("authentik", []);
|
|
45
|
+
if (tokenString) {
|
|
46
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
47
|
+
}
|
|
44
48
|
}
|
|
45
49
|
const response = yield this.request({
|
|
46
50
|
path: `/core/applications/{slug}/check_access/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -71,8 +75,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
71
75
|
const queryParameters = {};
|
|
72
76
|
const headerParameters = {};
|
|
73
77
|
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
-
if (this.configuration && this.configuration.
|
|
75
|
-
|
|
78
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
79
|
+
const token = this.configuration.accessToken;
|
|
80
|
+
const tokenString = yield token("authentik", []);
|
|
81
|
+
if (tokenString) {
|
|
82
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
const response = yield this.request({
|
|
78
86
|
path: `/core/applications/`,
|
|
@@ -103,8 +111,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
103
111
|
}
|
|
104
112
|
const queryParameters = {};
|
|
105
113
|
const headerParameters = {};
|
|
106
|
-
if (this.configuration && this.configuration.
|
|
107
|
-
|
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
115
|
+
const token = this.configuration.accessToken;
|
|
116
|
+
const tokenString = yield token("authentik", []);
|
|
117
|
+
if (tokenString) {
|
|
118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
119
|
+
}
|
|
108
120
|
}
|
|
109
121
|
const response = yield this.request({
|
|
110
122
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -166,8 +178,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
166
178
|
queryParameters['superuser_full_list'] = requestParameters.superuserFullList;
|
|
167
179
|
}
|
|
168
180
|
const headerParameters = {};
|
|
169
|
-
if (this.configuration && this.configuration.
|
|
170
|
-
|
|
181
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
182
|
+
const token = this.configuration.accessToken;
|
|
183
|
+
const tokenString = yield token("authentik", []);
|
|
184
|
+
if (tokenString) {
|
|
185
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
186
|
+
}
|
|
171
187
|
}
|
|
172
188
|
const response = yield this.request({
|
|
173
189
|
path: `/core/applications/`,
|
|
@@ -197,8 +213,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
197
213
|
}
|
|
198
214
|
const queryParameters = {};
|
|
199
215
|
const headerParameters = {};
|
|
200
|
-
if (this.configuration && this.configuration.
|
|
201
|
-
|
|
216
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
217
|
+
const token = this.configuration.accessToken;
|
|
218
|
+
const tokenString = yield token("authentik", []);
|
|
219
|
+
if (tokenString) {
|
|
220
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
221
|
+
}
|
|
202
222
|
}
|
|
203
223
|
const response = yield this.request({
|
|
204
224
|
path: `/core/applications/{slug}/metrics/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -229,8 +249,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
229
249
|
const queryParameters = {};
|
|
230
250
|
const headerParameters = {};
|
|
231
251
|
headerParameters['Content-Type'] = 'application/json';
|
|
232
|
-
if (this.configuration && this.configuration.
|
|
233
|
-
|
|
252
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
253
|
+
const token = this.configuration.accessToken;
|
|
254
|
+
const tokenString = yield token("authentik", []);
|
|
255
|
+
if (tokenString) {
|
|
256
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
257
|
+
}
|
|
234
258
|
}
|
|
235
259
|
const response = yield this.request({
|
|
236
260
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -261,8 +285,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
261
285
|
}
|
|
262
286
|
const queryParameters = {};
|
|
263
287
|
const headerParameters = {};
|
|
264
|
-
if (this.configuration && this.configuration.
|
|
265
|
-
|
|
288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
289
|
+
const token = this.configuration.accessToken;
|
|
290
|
+
const tokenString = yield token("authentik", []);
|
|
291
|
+
if (tokenString) {
|
|
292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
293
|
+
}
|
|
266
294
|
}
|
|
267
295
|
const response = yield this.request({
|
|
268
296
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -292,8 +320,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
292
320
|
}
|
|
293
321
|
const queryParameters = {};
|
|
294
322
|
const headerParameters = {};
|
|
295
|
-
if (this.configuration && this.configuration.
|
|
296
|
-
|
|
323
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
324
|
+
const token = this.configuration.accessToken;
|
|
325
|
+
const tokenString = yield token("authentik", []);
|
|
326
|
+
if (tokenString) {
|
|
327
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
328
|
+
}
|
|
297
329
|
}
|
|
298
330
|
const consumes = [
|
|
299
331
|
{ contentType: 'multipart/form-data' },
|
|
@@ -348,8 +380,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
348
380
|
const queryParameters = {};
|
|
349
381
|
const headerParameters = {};
|
|
350
382
|
headerParameters['Content-Type'] = 'application/json';
|
|
351
|
-
if (this.configuration && this.configuration.
|
|
352
|
-
|
|
383
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
384
|
+
const token = this.configuration.accessToken;
|
|
385
|
+
const tokenString = yield token("authentik", []);
|
|
386
|
+
if (tokenString) {
|
|
387
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
388
|
+
}
|
|
353
389
|
}
|
|
354
390
|
const response = yield this.request({
|
|
355
391
|
path: `/core/applications/{slug}/set_icon_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -383,8 +419,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
383
419
|
const queryParameters = {};
|
|
384
420
|
const headerParameters = {};
|
|
385
421
|
headerParameters['Content-Type'] = 'application/json';
|
|
386
|
-
if (this.configuration && this.configuration.
|
|
387
|
-
|
|
422
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
423
|
+
const token = this.configuration.accessToken;
|
|
424
|
+
const tokenString = yield token("authentik", []);
|
|
425
|
+
if (tokenString) {
|
|
426
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
427
|
+
}
|
|
388
428
|
}
|
|
389
429
|
const response = yield this.request({
|
|
390
430
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -415,8 +455,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
415
455
|
}
|
|
416
456
|
const queryParameters = {};
|
|
417
457
|
const headerParameters = {};
|
|
418
|
-
if (this.configuration && this.configuration.
|
|
419
|
-
|
|
458
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
459
|
+
const token = this.configuration.accessToken;
|
|
460
|
+
const tokenString = yield token("authentik", []);
|
|
461
|
+
if (tokenString) {
|
|
462
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
463
|
+
}
|
|
420
464
|
}
|
|
421
465
|
const response = yield this.request({
|
|
422
466
|
path: `/core/applications/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -446,8 +490,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
446
490
|
}
|
|
447
491
|
const queryParameters = {};
|
|
448
492
|
const headerParameters = {};
|
|
449
|
-
if (this.configuration && this.configuration.
|
|
450
|
-
|
|
493
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
494
|
+
const token = this.configuration.accessToken;
|
|
495
|
+
const tokenString = yield token("authentik", []);
|
|
496
|
+
if (tokenString) {
|
|
497
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
498
|
+
}
|
|
451
499
|
}
|
|
452
500
|
const response = yield this.request({
|
|
453
501
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -494,8 +542,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
494
542
|
queryParameters['user__username'] = requestParameters.userUsername;
|
|
495
543
|
}
|
|
496
544
|
const headerParameters = {};
|
|
497
|
-
if (this.configuration && this.configuration.
|
|
498
|
-
|
|
545
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
546
|
+
const token = this.configuration.accessToken;
|
|
547
|
+
const tokenString = yield token("authentik", []);
|
|
548
|
+
if (tokenString) {
|
|
549
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
550
|
+
}
|
|
499
551
|
}
|
|
500
552
|
const response = yield this.request({
|
|
501
553
|
path: `/core/authenticated_sessions/`,
|
|
@@ -525,8 +577,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
525
577
|
}
|
|
526
578
|
const queryParameters = {};
|
|
527
579
|
const headerParameters = {};
|
|
528
|
-
if (this.configuration && this.configuration.
|
|
529
|
-
|
|
580
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
581
|
+
const token = this.configuration.accessToken;
|
|
582
|
+
const tokenString = yield token("authentik", []);
|
|
583
|
+
if (tokenString) {
|
|
584
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
585
|
+
}
|
|
530
586
|
}
|
|
531
587
|
const response = yield this.request({
|
|
532
588
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -556,8 +612,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
556
612
|
}
|
|
557
613
|
const queryParameters = {};
|
|
558
614
|
const headerParameters = {};
|
|
559
|
-
if (this.configuration && this.configuration.
|
|
560
|
-
|
|
615
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
616
|
+
const token = this.configuration.accessToken;
|
|
617
|
+
const tokenString = yield token("authentik", []);
|
|
618
|
+
if (tokenString) {
|
|
619
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
620
|
+
}
|
|
561
621
|
}
|
|
562
622
|
const response = yield this.request({
|
|
563
623
|
path: `/core/authenticated_sessions/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -588,8 +648,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
588
648
|
const queryParameters = {};
|
|
589
649
|
const headerParameters = {};
|
|
590
650
|
headerParameters['Content-Type'] = 'application/json';
|
|
591
|
-
if (this.configuration && this.configuration.
|
|
592
|
-
|
|
651
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
652
|
+
const token = this.configuration.accessToken;
|
|
653
|
+
const tokenString = yield token("authentik", []);
|
|
654
|
+
if (tokenString) {
|
|
655
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
656
|
+
}
|
|
593
657
|
}
|
|
594
658
|
const response = yield this.request({
|
|
595
659
|
path: `/core/brands/`,
|
|
@@ -617,8 +681,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
617
681
|
return __awaiter(this, void 0, void 0, function* () {
|
|
618
682
|
const queryParameters = {};
|
|
619
683
|
const headerParameters = {};
|
|
620
|
-
if (this.configuration && this.configuration.
|
|
621
|
-
|
|
684
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
685
|
+
const token = this.configuration.accessToken;
|
|
686
|
+
const tokenString = yield token("authentik", []);
|
|
687
|
+
if (tokenString) {
|
|
688
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
689
|
+
}
|
|
622
690
|
}
|
|
623
691
|
const response = yield this.request({
|
|
624
692
|
path: `/core/brands/current/`,
|
|
@@ -648,8 +716,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
648
716
|
}
|
|
649
717
|
const queryParameters = {};
|
|
650
718
|
const headerParameters = {};
|
|
651
|
-
if (this.configuration && this.configuration.
|
|
652
|
-
|
|
719
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
720
|
+
const token = this.configuration.accessToken;
|
|
721
|
+
const tokenString = yield token("authentik", []);
|
|
722
|
+
if (tokenString) {
|
|
723
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
724
|
+
}
|
|
653
725
|
}
|
|
654
726
|
const response = yield this.request({
|
|
655
727
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -726,8 +798,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
726
798
|
queryParameters['web_certificate'] = requestParameters.webCertificate;
|
|
727
799
|
}
|
|
728
800
|
const headerParameters = {};
|
|
729
|
-
if (this.configuration && this.configuration.
|
|
730
|
-
|
|
801
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
802
|
+
const token = this.configuration.accessToken;
|
|
803
|
+
const tokenString = yield token("authentik", []);
|
|
804
|
+
if (tokenString) {
|
|
805
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
806
|
+
}
|
|
731
807
|
}
|
|
732
808
|
const response = yield this.request({
|
|
733
809
|
path: `/core/brands/`,
|
|
@@ -758,8 +834,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
758
834
|
const queryParameters = {};
|
|
759
835
|
const headerParameters = {};
|
|
760
836
|
headerParameters['Content-Type'] = 'application/json';
|
|
761
|
-
if (this.configuration && this.configuration.
|
|
762
|
-
|
|
837
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
838
|
+
const token = this.configuration.accessToken;
|
|
839
|
+
const tokenString = yield token("authentik", []);
|
|
840
|
+
if (tokenString) {
|
|
841
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
842
|
+
}
|
|
763
843
|
}
|
|
764
844
|
const response = yield this.request({
|
|
765
845
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -790,8 +870,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
790
870
|
}
|
|
791
871
|
const queryParameters = {};
|
|
792
872
|
const headerParameters = {};
|
|
793
|
-
if (this.configuration && this.configuration.
|
|
794
|
-
|
|
873
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
874
|
+
const token = this.configuration.accessToken;
|
|
875
|
+
const tokenString = yield token("authentik", []);
|
|
876
|
+
if (tokenString) {
|
|
877
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
878
|
+
}
|
|
795
879
|
}
|
|
796
880
|
const response = yield this.request({
|
|
797
881
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -825,8 +909,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
825
909
|
const queryParameters = {};
|
|
826
910
|
const headerParameters = {};
|
|
827
911
|
headerParameters['Content-Type'] = 'application/json';
|
|
828
|
-
if (this.configuration && this.configuration.
|
|
829
|
-
|
|
912
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
913
|
+
const token = this.configuration.accessToken;
|
|
914
|
+
const tokenString = yield token("authentik", []);
|
|
915
|
+
if (tokenString) {
|
|
916
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
917
|
+
}
|
|
830
918
|
}
|
|
831
919
|
const response = yield this.request({
|
|
832
920
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -857,8 +945,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
857
945
|
}
|
|
858
946
|
const queryParameters = {};
|
|
859
947
|
const headerParameters = {};
|
|
860
|
-
if (this.configuration && this.configuration.
|
|
861
|
-
|
|
948
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
949
|
+
const token = this.configuration.accessToken;
|
|
950
|
+
const tokenString = yield token("authentik", []);
|
|
951
|
+
if (tokenString) {
|
|
952
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
953
|
+
}
|
|
862
954
|
}
|
|
863
955
|
const response = yield this.request({
|
|
864
956
|
path: `/core/brands/{brand_uuid}/used_by/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
@@ -892,8 +984,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
892
984
|
const queryParameters = {};
|
|
893
985
|
const headerParameters = {};
|
|
894
986
|
headerParameters['Content-Type'] = 'application/json';
|
|
895
|
-
if (this.configuration && this.configuration.
|
|
896
|
-
|
|
987
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
988
|
+
const token = this.configuration.accessToken;
|
|
989
|
+
const tokenString = yield token("authentik", []);
|
|
990
|
+
if (tokenString) {
|
|
991
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
992
|
+
}
|
|
897
993
|
}
|
|
898
994
|
const response = yield this.request({
|
|
899
995
|
path: `/core/groups/{group_uuid}/add_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -924,8 +1020,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
924
1020
|
const queryParameters = {};
|
|
925
1021
|
const headerParameters = {};
|
|
926
1022
|
headerParameters['Content-Type'] = 'application/json';
|
|
927
|
-
if (this.configuration && this.configuration.
|
|
928
|
-
|
|
1023
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1024
|
+
const token = this.configuration.accessToken;
|
|
1025
|
+
const tokenString = yield token("authentik", []);
|
|
1026
|
+
if (tokenString) {
|
|
1027
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1028
|
+
}
|
|
929
1029
|
}
|
|
930
1030
|
const response = yield this.request({
|
|
931
1031
|
path: `/core/groups/`,
|
|
@@ -956,8 +1056,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
956
1056
|
}
|
|
957
1057
|
const queryParameters = {};
|
|
958
1058
|
const headerParameters = {};
|
|
959
|
-
if (this.configuration && this.configuration.
|
|
960
|
-
|
|
1059
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1060
|
+
const token = this.configuration.accessToken;
|
|
1061
|
+
const tokenString = yield token("authentik", []);
|
|
1062
|
+
if (tokenString) {
|
|
1063
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1064
|
+
}
|
|
961
1065
|
}
|
|
962
1066
|
const response = yield this.request({
|
|
963
1067
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -985,6 +1089,9 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
985
1089
|
if (requestParameters.attributes !== undefined) {
|
|
986
1090
|
queryParameters['attributes'] = requestParameters.attributes;
|
|
987
1091
|
}
|
|
1092
|
+
if (requestParameters.includeUsers !== undefined) {
|
|
1093
|
+
queryParameters['include_users'] = requestParameters.includeUsers;
|
|
1094
|
+
}
|
|
988
1095
|
if (requestParameters.isSuperuser !== undefined) {
|
|
989
1096
|
queryParameters['is_superuser'] = requestParameters.isSuperuser;
|
|
990
1097
|
}
|
|
@@ -1010,8 +1117,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1010
1117
|
queryParameters['search'] = requestParameters.search;
|
|
1011
1118
|
}
|
|
1012
1119
|
const headerParameters = {};
|
|
1013
|
-
if (this.configuration && this.configuration.
|
|
1014
|
-
|
|
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
|
+
}
|
|
1015
1126
|
}
|
|
1016
1127
|
const response = yield this.request({
|
|
1017
1128
|
path: `/core/groups/`,
|
|
@@ -1042,8 +1153,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1042
1153
|
const queryParameters = {};
|
|
1043
1154
|
const headerParameters = {};
|
|
1044
1155
|
headerParameters['Content-Type'] = 'application/json';
|
|
1045
|
-
if (this.configuration && this.configuration.
|
|
1046
|
-
|
|
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
|
+
}
|
|
1047
1162
|
}
|
|
1048
1163
|
const response = yield this.request({
|
|
1049
1164
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1078,8 +1193,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1078
1193
|
const queryParameters = {};
|
|
1079
1194
|
const headerParameters = {};
|
|
1080
1195
|
headerParameters['Content-Type'] = 'application/json';
|
|
1081
|
-
if (this.configuration && this.configuration.
|
|
1082
|
-
|
|
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
|
+
}
|
|
1083
1202
|
}
|
|
1084
1203
|
const response = yield this.request({
|
|
1085
1204
|
path: `/core/groups/{group_uuid}/remove_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1109,8 +1228,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1109
1228
|
}
|
|
1110
1229
|
const queryParameters = {};
|
|
1111
1230
|
const headerParameters = {};
|
|
1112
|
-
if (this.configuration && this.configuration.
|
|
1113
|
-
|
|
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
|
+
}
|
|
1114
1237
|
}
|
|
1115
1238
|
const response = yield this.request({
|
|
1116
1239
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1144,8 +1267,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1144
1267
|
const queryParameters = {};
|
|
1145
1268
|
const headerParameters = {};
|
|
1146
1269
|
headerParameters['Content-Type'] = 'application/json';
|
|
1147
|
-
if (this.configuration && this.configuration.
|
|
1148
|
-
|
|
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
|
+
}
|
|
1149
1276
|
}
|
|
1150
1277
|
const response = yield this.request({
|
|
1151
1278
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1176,8 +1303,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1176
1303
|
}
|
|
1177
1304
|
const queryParameters = {};
|
|
1178
1305
|
const headerParameters = {};
|
|
1179
|
-
if (this.configuration && this.configuration.
|
|
1180
|
-
|
|
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
|
+
}
|
|
1181
1312
|
}
|
|
1182
1313
|
const response = yield this.request({
|
|
1183
1314
|
path: `/core/groups/{group_uuid}/used_by/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
@@ -1208,8 +1339,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1208
1339
|
const queryParameters = {};
|
|
1209
1340
|
const headerParameters = {};
|
|
1210
1341
|
headerParameters['Content-Type'] = 'application/json';
|
|
1211
|
-
if (this.configuration && this.configuration.
|
|
1212
|
-
|
|
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
|
+
}
|
|
1213
1348
|
}
|
|
1214
1349
|
const response = yield this.request({
|
|
1215
1350
|
path: `/core/tokens/`,
|
|
@@ -1240,8 +1375,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1240
1375
|
}
|
|
1241
1376
|
const queryParameters = {};
|
|
1242
1377
|
const headerParameters = {};
|
|
1243
|
-
if (this.configuration && this.configuration.
|
|
1244
|
-
|
|
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
|
+
}
|
|
1245
1384
|
}
|
|
1246
1385
|
const response = yield this.request({
|
|
1247
1386
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1300,8 +1439,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1300
1439
|
queryParameters['user__username'] = requestParameters.userUsername;
|
|
1301
1440
|
}
|
|
1302
1441
|
const headerParameters = {};
|
|
1303
|
-
if (this.configuration && this.configuration.
|
|
1304
|
-
|
|
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
|
+
}
|
|
1305
1448
|
}
|
|
1306
1449
|
const response = yield this.request({
|
|
1307
1450
|
path: `/core/tokens/`,
|
|
@@ -1332,8 +1475,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1332
1475
|
const queryParameters = {};
|
|
1333
1476
|
const headerParameters = {};
|
|
1334
1477
|
headerParameters['Content-Type'] = 'application/json';
|
|
1335
|
-
if (this.configuration && this.configuration.
|
|
1336
|
-
|
|
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
|
+
}
|
|
1337
1484
|
}
|
|
1338
1485
|
const response = yield this.request({
|
|
1339
1486
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1364,8 +1511,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1364
1511
|
}
|
|
1365
1512
|
const queryParameters = {};
|
|
1366
1513
|
const headerParameters = {};
|
|
1367
|
-
if (this.configuration && this.configuration.
|
|
1368
|
-
|
|
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
|
+
}
|
|
1369
1520
|
}
|
|
1370
1521
|
const response = yield this.request({
|
|
1371
1522
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1399,8 +1550,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1399
1550
|
const queryParameters = {};
|
|
1400
1551
|
const headerParameters = {};
|
|
1401
1552
|
headerParameters['Content-Type'] = 'application/json';
|
|
1402
|
-
if (this.configuration && this.configuration.
|
|
1403
|
-
|
|
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
|
+
}
|
|
1404
1559
|
}
|
|
1405
1560
|
const response = yield this.request({
|
|
1406
1561
|
path: `/core/tokens/{identifier}/set_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1434,8 +1589,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1434
1589
|
const queryParameters = {};
|
|
1435
1590
|
const headerParameters = {};
|
|
1436
1591
|
headerParameters['Content-Type'] = 'application/json';
|
|
1437
|
-
if (this.configuration && this.configuration.
|
|
1438
|
-
|
|
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
|
+
}
|
|
1439
1598
|
}
|
|
1440
1599
|
const response = yield this.request({
|
|
1441
1600
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1466,8 +1625,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1466
1625
|
}
|
|
1467
1626
|
const queryParameters = {};
|
|
1468
1627
|
const headerParameters = {};
|
|
1469
|
-
if (this.configuration && this.configuration.
|
|
1470
|
-
|
|
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
|
+
}
|
|
1471
1634
|
}
|
|
1472
1635
|
const response = yield this.request({
|
|
1473
1636
|
path: `/core/tokens/{identifier}/used_by/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1497,8 +1660,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1497
1660
|
}
|
|
1498
1661
|
const queryParameters = {};
|
|
1499
1662
|
const headerParameters = {};
|
|
1500
|
-
if (this.configuration && this.configuration.
|
|
1501
|
-
|
|
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
|
+
}
|
|
1502
1669
|
}
|
|
1503
1670
|
const response = yield this.request({
|
|
1504
1671
|
path: `/core/tokens/{identifier}/view_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
@@ -1529,8 +1696,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1529
1696
|
const queryParameters = {};
|
|
1530
1697
|
const headerParameters = {};
|
|
1531
1698
|
headerParameters['Content-Type'] = 'application/json';
|
|
1532
|
-
if (this.configuration && this.configuration.
|
|
1533
|
-
|
|
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
|
+
}
|
|
1534
1705
|
}
|
|
1535
1706
|
const response = yield this.request({
|
|
1536
1707
|
path: `/core/transactional/applications/`,
|
|
@@ -1561,8 +1732,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1561
1732
|
}
|
|
1562
1733
|
const queryParameters = {};
|
|
1563
1734
|
const headerParameters = {};
|
|
1564
|
-
if (this.configuration && this.configuration.
|
|
1565
|
-
|
|
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
|
+
}
|
|
1566
1741
|
}
|
|
1567
1742
|
const response = yield this.request({
|
|
1568
1743
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1606,8 +1781,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1606
1781
|
queryParameters['user'] = requestParameters.user;
|
|
1607
1782
|
}
|
|
1608
1783
|
const headerParameters = {};
|
|
1609
|
-
if (this.configuration && this.configuration.
|
|
1610
|
-
|
|
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
|
+
}
|
|
1611
1790
|
}
|
|
1612
1791
|
const response = yield this.request({
|
|
1613
1792
|
path: `/core/user_consent/`,
|
|
@@ -1637,8 +1816,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1637
1816
|
}
|
|
1638
1817
|
const queryParameters = {};
|
|
1639
1818
|
const headerParameters = {};
|
|
1640
|
-
if (this.configuration && this.configuration.
|
|
1641
|
-
|
|
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
|
+
}
|
|
1642
1825
|
}
|
|
1643
1826
|
const response = yield this.request({
|
|
1644
1827
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1668,8 +1851,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1668
1851
|
}
|
|
1669
1852
|
const queryParameters = {};
|
|
1670
1853
|
const headerParameters = {};
|
|
1671
|
-
if (this.configuration && this.configuration.
|
|
1672
|
-
|
|
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
|
+
}
|
|
1673
1860
|
}
|
|
1674
1861
|
const response = yield this.request({
|
|
1675
1862
|
path: `/core/user_consent/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1700,8 +1887,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1700
1887
|
const queryParameters = {};
|
|
1701
1888
|
const headerParameters = {};
|
|
1702
1889
|
headerParameters['Content-Type'] = 'application/json';
|
|
1703
|
-
if (this.configuration && this.configuration.
|
|
1704
|
-
|
|
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
|
+
}
|
|
1705
1896
|
}
|
|
1706
1897
|
const response = yield this.request({
|
|
1707
1898
|
path: `/core/users/`,
|
|
@@ -1732,8 +1923,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1732
1923
|
}
|
|
1733
1924
|
const queryParameters = {};
|
|
1734
1925
|
const headerParameters = {};
|
|
1735
|
-
if (this.configuration && this.configuration.
|
|
1736
|
-
|
|
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
|
+
}
|
|
1737
1932
|
}
|
|
1738
1933
|
const response = yield this.request({
|
|
1739
1934
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1762,8 +1957,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1762
1957
|
}
|
|
1763
1958
|
const queryParameters = {};
|
|
1764
1959
|
const headerParameters = {};
|
|
1765
|
-
if (this.configuration && this.configuration.
|
|
1766
|
-
|
|
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
|
+
}
|
|
1767
1966
|
}
|
|
1768
1967
|
const response = yield this.request({
|
|
1769
1968
|
path: `/core/users/{id}/impersonate/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1789,8 +1988,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1789
1988
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1790
1989
|
const queryParameters = {};
|
|
1791
1990
|
const headerParameters = {};
|
|
1792
|
-
if (this.configuration && this.configuration.
|
|
1793
|
-
|
|
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
|
+
}
|
|
1794
1997
|
}
|
|
1795
1998
|
const response = yield this.request({
|
|
1796
1999
|
path: `/core/users/impersonate_end/`,
|
|
@@ -1827,6 +2030,9 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1827
2030
|
if (requestParameters.groupsByPk) {
|
|
1828
2031
|
queryParameters['groups_by_pk'] = requestParameters.groupsByPk;
|
|
1829
2032
|
}
|
|
2033
|
+
if (requestParameters.includeGroups !== undefined) {
|
|
2034
|
+
queryParameters['include_groups'] = requestParameters.includeGroups;
|
|
2035
|
+
}
|
|
1830
2036
|
if (requestParameters.isActive !== undefined) {
|
|
1831
2037
|
queryParameters['is_active'] = requestParameters.isActive;
|
|
1832
2038
|
}
|
|
@@ -1864,8 +2070,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1864
2070
|
queryParameters['uuid'] = requestParameters.uuid;
|
|
1865
2071
|
}
|
|
1866
2072
|
const headerParameters = {};
|
|
1867
|
-
if (this.configuration && this.configuration.
|
|
1868
|
-
|
|
2073
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2074
|
+
const token = this.configuration.accessToken;
|
|
2075
|
+
const tokenString = yield token("authentik", []);
|
|
2076
|
+
if (tokenString) {
|
|
2077
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2078
|
+
}
|
|
1869
2079
|
}
|
|
1870
2080
|
const response = yield this.request({
|
|
1871
2081
|
path: `/core/users/`,
|
|
@@ -1892,8 +2102,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1892
2102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1893
2103
|
const queryParameters = {};
|
|
1894
2104
|
const headerParameters = {};
|
|
1895
|
-
if (this.configuration && this.configuration.
|
|
1896
|
-
|
|
2105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2106
|
+
const token = this.configuration.accessToken;
|
|
2107
|
+
const tokenString = yield token("authentik", []);
|
|
2108
|
+
if (tokenString) {
|
|
2109
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2110
|
+
}
|
|
1897
2111
|
}
|
|
1898
2112
|
const response = yield this.request({
|
|
1899
2113
|
path: `/core/users/me/`,
|
|
@@ -1923,8 +2137,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1923
2137
|
}
|
|
1924
2138
|
const queryParameters = {};
|
|
1925
2139
|
const headerParameters = {};
|
|
1926
|
-
if (this.configuration && this.configuration.
|
|
1927
|
-
|
|
2140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2141
|
+
const token = this.configuration.accessToken;
|
|
2142
|
+
const tokenString = yield token("authentik", []);
|
|
2143
|
+
if (tokenString) {
|
|
2144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2145
|
+
}
|
|
1928
2146
|
}
|
|
1929
2147
|
const response = yield this.request({
|
|
1930
2148
|
path: `/core/users/{id}/metrics/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1955,8 +2173,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1955
2173
|
const queryParameters = {};
|
|
1956
2174
|
const headerParameters = {};
|
|
1957
2175
|
headerParameters['Content-Type'] = 'application/json';
|
|
1958
|
-
if (this.configuration && this.configuration.
|
|
1959
|
-
|
|
2176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2177
|
+
const token = this.configuration.accessToken;
|
|
2178
|
+
const tokenString = yield token("authentik", []);
|
|
2179
|
+
if (tokenString) {
|
|
2180
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2181
|
+
}
|
|
1960
2182
|
}
|
|
1961
2183
|
const response = yield this.request({
|
|
1962
2184
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1987,8 +2209,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1987
2209
|
queryParameters['search'] = requestParameters.search;
|
|
1988
2210
|
}
|
|
1989
2211
|
const headerParameters = {};
|
|
1990
|
-
if (this.configuration && this.configuration.
|
|
1991
|
-
|
|
2212
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2213
|
+
const token = this.configuration.accessToken;
|
|
2214
|
+
const tokenString = yield token("authentik", []);
|
|
2215
|
+
if (tokenString) {
|
|
2216
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2217
|
+
}
|
|
1992
2218
|
}
|
|
1993
2219
|
const response = yield this.request({
|
|
1994
2220
|
path: `/core/users/paths/`,
|
|
@@ -2018,8 +2244,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2018
2244
|
}
|
|
2019
2245
|
const queryParameters = {};
|
|
2020
2246
|
const headerParameters = {};
|
|
2021
|
-
if (this.configuration && this.configuration.
|
|
2022
|
-
|
|
2247
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2248
|
+
const token = this.configuration.accessToken;
|
|
2249
|
+
const tokenString = yield token("authentik", []);
|
|
2250
|
+
if (tokenString) {
|
|
2251
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2252
|
+
}
|
|
2023
2253
|
}
|
|
2024
2254
|
const response = yield this.request({
|
|
2025
2255
|
path: `/core/users/{id}/recovery/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2055,8 +2285,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2055
2285
|
queryParameters['email_stage'] = requestParameters.emailStage;
|
|
2056
2286
|
}
|
|
2057
2287
|
const headerParameters = {};
|
|
2058
|
-
if (this.configuration && this.configuration.
|
|
2059
|
-
|
|
2288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2289
|
+
const token = this.configuration.accessToken;
|
|
2290
|
+
const tokenString = yield token("authentik", []);
|
|
2291
|
+
if (tokenString) {
|
|
2292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2293
|
+
}
|
|
2060
2294
|
}
|
|
2061
2295
|
const response = yield this.request({
|
|
2062
2296
|
path: `/core/users/{id}/recovery_email/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2085,8 +2319,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2085
2319
|
}
|
|
2086
2320
|
const queryParameters = {};
|
|
2087
2321
|
const headerParameters = {};
|
|
2088
|
-
if (this.configuration && this.configuration.
|
|
2089
|
-
|
|
2322
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2323
|
+
const token = this.configuration.accessToken;
|
|
2324
|
+
const tokenString = yield token("authentik", []);
|
|
2325
|
+
if (tokenString) {
|
|
2326
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2327
|
+
}
|
|
2090
2328
|
}
|
|
2091
2329
|
const response = yield this.request({
|
|
2092
2330
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2117,8 +2355,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2117
2355
|
const queryParameters = {};
|
|
2118
2356
|
const headerParameters = {};
|
|
2119
2357
|
headerParameters['Content-Type'] = 'application/json';
|
|
2120
|
-
if (this.configuration && this.configuration.
|
|
2121
|
-
|
|
2358
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2359
|
+
const token = this.configuration.accessToken;
|
|
2360
|
+
const tokenString = yield token("authentik", []);
|
|
2361
|
+
if (tokenString) {
|
|
2362
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2363
|
+
}
|
|
2122
2364
|
}
|
|
2123
2365
|
const response = yield this.request({
|
|
2124
2366
|
path: `/core/users/service_account/`,
|
|
@@ -2153,8 +2395,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2153
2395
|
const queryParameters = {};
|
|
2154
2396
|
const headerParameters = {};
|
|
2155
2397
|
headerParameters['Content-Type'] = 'application/json';
|
|
2156
|
-
if (this.configuration && this.configuration.
|
|
2157
|
-
|
|
2398
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2399
|
+
const token = this.configuration.accessToken;
|
|
2400
|
+
const tokenString = yield token("authentik", []);
|
|
2401
|
+
if (tokenString) {
|
|
2402
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2403
|
+
}
|
|
2158
2404
|
}
|
|
2159
2405
|
const response = yield this.request({
|
|
2160
2406
|
path: `/core/users/{id}/set_password/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2188,8 +2434,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2188
2434
|
const queryParameters = {};
|
|
2189
2435
|
const headerParameters = {};
|
|
2190
2436
|
headerParameters['Content-Type'] = 'application/json';
|
|
2191
|
-
if (this.configuration && this.configuration.
|
|
2192
|
-
|
|
2437
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2438
|
+
const token = this.configuration.accessToken;
|
|
2439
|
+
const tokenString = yield token("authentik", []);
|
|
2440
|
+
if (tokenString) {
|
|
2441
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2442
|
+
}
|
|
2193
2443
|
}
|
|
2194
2444
|
const response = yield this.request({
|
|
2195
2445
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2220,8 +2470,12 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2220
2470
|
}
|
|
2221
2471
|
const queryParameters = {};
|
|
2222
2472
|
const headerParameters = {};
|
|
2223
|
-
if (this.configuration && this.configuration.
|
|
2224
|
-
|
|
2473
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2474
|
+
const token = this.configuration.accessToken;
|
|
2475
|
+
const tokenString = yield token("authentik", []);
|
|
2476
|
+
if (tokenString) {
|
|
2477
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2478
|
+
}
|
|
2225
2479
|
}
|
|
2226
2480
|
const response = yield this.request({
|
|
2227
2481
|
path: `/core/users/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|