@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
@@ -37,8 +37,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
37
37
|
const queryParameters = {};
|
38
38
|
const headerParameters = {};
|
39
39
|
headerParameters['Content-Type'] = 'application/json';
|
40
|
-
if (this.configuration && this.configuration.
|
41
|
-
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
41
|
+
const token = this.configuration.accessToken;
|
42
|
+
const tokenString = yield token("authentik", []);
|
43
|
+
if (tokenString) {
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
45
|
+
}
|
42
46
|
}
|
43
47
|
const response = yield this.request({
|
44
48
|
path: `/flows/bindings/`,
|
@@ -69,8 +73,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
69
73
|
}
|
70
74
|
const queryParameters = {};
|
71
75
|
const headerParameters = {};
|
72
|
-
if (this.configuration && this.configuration.
|
73
|
-
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
77
|
+
const token = this.configuration.accessToken;
|
78
|
+
const tokenString = yield token("authentik", []);
|
79
|
+
if (tokenString) {
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
81
|
+
}
|
74
82
|
}
|
75
83
|
const response = yield this.request({
|
76
84
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
@@ -138,8 +146,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
138
146
|
queryParameters['target'] = requestParameters.target;
|
139
147
|
}
|
140
148
|
const headerParameters = {};
|
141
|
-
if (this.configuration && this.configuration.
|
142
|
-
|
149
|
+
if (this.configuration && this.configuration.accessToken) {
|
150
|
+
const token = this.configuration.accessToken;
|
151
|
+
const tokenString = yield token("authentik", []);
|
152
|
+
if (tokenString) {
|
153
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
154
|
+
}
|
143
155
|
}
|
144
156
|
const response = yield this.request({
|
145
157
|
path: `/flows/bindings/`,
|
@@ -170,8 +182,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
170
182
|
const queryParameters = {};
|
171
183
|
const headerParameters = {};
|
172
184
|
headerParameters['Content-Type'] = 'application/json';
|
173
|
-
if (this.configuration && this.configuration.
|
174
|
-
|
185
|
+
if (this.configuration && this.configuration.accessToken) {
|
186
|
+
const token = this.configuration.accessToken;
|
187
|
+
const tokenString = yield token("authentik", []);
|
188
|
+
if (tokenString) {
|
189
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
190
|
+
}
|
175
191
|
}
|
176
192
|
const response = yield this.request({
|
177
193
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
@@ -202,8 +218,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
202
218
|
}
|
203
219
|
const queryParameters = {};
|
204
220
|
const headerParameters = {};
|
205
|
-
if (this.configuration && this.configuration.
|
206
|
-
|
221
|
+
if (this.configuration && this.configuration.accessToken) {
|
222
|
+
const token = this.configuration.accessToken;
|
223
|
+
const tokenString = yield token("authentik", []);
|
224
|
+
if (tokenString) {
|
225
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
226
|
+
}
|
207
227
|
}
|
208
228
|
const response = yield this.request({
|
209
229
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
@@ -237,8 +257,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
237
257
|
const queryParameters = {};
|
238
258
|
const headerParameters = {};
|
239
259
|
headerParameters['Content-Type'] = 'application/json';
|
240
|
-
if (this.configuration && this.configuration.
|
241
|
-
|
260
|
+
if (this.configuration && this.configuration.accessToken) {
|
261
|
+
const token = this.configuration.accessToken;
|
262
|
+
const tokenString = yield token("authentik", []);
|
263
|
+
if (tokenString) {
|
264
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
265
|
+
}
|
242
266
|
}
|
243
267
|
const response = yield this.request({
|
244
268
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
@@ -269,8 +293,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
269
293
|
}
|
270
294
|
const queryParameters = {};
|
271
295
|
const headerParameters = {};
|
272
|
-
if (this.configuration && this.configuration.
|
273
|
-
|
296
|
+
if (this.configuration && this.configuration.accessToken) {
|
297
|
+
const token = this.configuration.accessToken;
|
298
|
+
const tokenString = yield token("authentik", []);
|
299
|
+
if (tokenString) {
|
300
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
301
|
+
}
|
274
302
|
}
|
275
303
|
const response = yield this.request({
|
276
304
|
path: `/flows/bindings/{fsb_uuid}/used_by/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
@@ -306,8 +334,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
306
334
|
queryParameters['query'] = requestParameters.query;
|
307
335
|
}
|
308
336
|
const headerParameters = {};
|
309
|
-
if (this.configuration && this.configuration.
|
310
|
-
|
337
|
+
if (this.configuration && this.configuration.accessToken) {
|
338
|
+
const token = this.configuration.accessToken;
|
339
|
+
const tokenString = yield token("authentik", []);
|
340
|
+
if (tokenString) {
|
341
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
342
|
+
}
|
311
343
|
}
|
312
344
|
const response = yield this.request({
|
313
345
|
path: `/flows/executor/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
@@ -344,8 +376,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
344
376
|
}
|
345
377
|
const headerParameters = {};
|
346
378
|
headerParameters['Content-Type'] = 'application/json';
|
347
|
-
if (this.configuration && this.configuration.
|
348
|
-
|
379
|
+
if (this.configuration && this.configuration.accessToken) {
|
380
|
+
const token = this.configuration.accessToken;
|
381
|
+
const tokenString = yield token("authentik", []);
|
382
|
+
if (tokenString) {
|
383
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
384
|
+
}
|
349
385
|
}
|
350
386
|
const response = yield this.request({
|
351
387
|
path: `/flows/executor/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
@@ -376,8 +412,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
376
412
|
}
|
377
413
|
const queryParameters = {};
|
378
414
|
const headerParameters = {};
|
379
|
-
if (this.configuration && this.configuration.
|
380
|
-
|
415
|
+
if (this.configuration && this.configuration.accessToken) {
|
416
|
+
const token = this.configuration.accessToken;
|
417
|
+
const tokenString = yield token("authentik", []);
|
418
|
+
if (tokenString) {
|
419
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
420
|
+
}
|
381
421
|
}
|
382
422
|
const response = yield this.request({
|
383
423
|
path: `/flows/inspector/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
@@ -404,8 +444,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
404
444
|
return __awaiter(this, void 0, void 0, function* () {
|
405
445
|
const queryParameters = {};
|
406
446
|
const headerParameters = {};
|
407
|
-
if (this.configuration && this.configuration.
|
408
|
-
|
447
|
+
if (this.configuration && this.configuration.accessToken) {
|
448
|
+
const token = this.configuration.accessToken;
|
449
|
+
const tokenString = yield token("authentik", []);
|
450
|
+
if (tokenString) {
|
451
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
452
|
+
}
|
409
453
|
}
|
410
454
|
const response = yield this.request({
|
411
455
|
path: `/flows/instances/cache_clear/`,
|
@@ -431,8 +475,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
431
475
|
return __awaiter(this, void 0, void 0, function* () {
|
432
476
|
const queryParameters = {};
|
433
477
|
const headerParameters = {};
|
434
|
-
if (this.configuration && this.configuration.
|
435
|
-
|
478
|
+
if (this.configuration && this.configuration.accessToken) {
|
479
|
+
const token = this.configuration.accessToken;
|
480
|
+
const tokenString = yield token("authentik", []);
|
481
|
+
if (tokenString) {
|
482
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
483
|
+
}
|
436
484
|
}
|
437
485
|
const response = yield this.request({
|
438
486
|
path: `/flows/instances/cache_info/`,
|
@@ -463,8 +511,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
463
511
|
const queryParameters = {};
|
464
512
|
const headerParameters = {};
|
465
513
|
headerParameters['Content-Type'] = 'application/json';
|
466
|
-
if (this.configuration && this.configuration.
|
467
|
-
|
514
|
+
if (this.configuration && this.configuration.accessToken) {
|
515
|
+
const token = this.configuration.accessToken;
|
516
|
+
const tokenString = yield token("authentik", []);
|
517
|
+
if (tokenString) {
|
518
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
519
|
+
}
|
468
520
|
}
|
469
521
|
const response = yield this.request({
|
470
522
|
path: `/flows/instances/`,
|
@@ -495,8 +547,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
495
547
|
}
|
496
548
|
const queryParameters = {};
|
497
549
|
const headerParameters = {};
|
498
|
-
if (this.configuration && this.configuration.
|
499
|
-
|
550
|
+
if (this.configuration && this.configuration.accessToken) {
|
551
|
+
const token = this.configuration.accessToken;
|
552
|
+
const tokenString = yield token("authentik", []);
|
553
|
+
if (tokenString) {
|
554
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
555
|
+
}
|
500
556
|
}
|
501
557
|
const response = yield this.request({
|
502
558
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -525,8 +581,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
525
581
|
}
|
526
582
|
const queryParameters = {};
|
527
583
|
const headerParameters = {};
|
528
|
-
if (this.configuration && this.configuration.
|
529
|
-
|
584
|
+
if (this.configuration && this.configuration.accessToken) {
|
585
|
+
const token = this.configuration.accessToken;
|
586
|
+
const tokenString = yield token("authentik", []);
|
587
|
+
if (tokenString) {
|
588
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
589
|
+
}
|
530
590
|
}
|
531
591
|
const response = yield this.request({
|
532
592
|
path: `/flows/instances/{slug}/diagram/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -556,8 +616,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
556
616
|
}
|
557
617
|
const queryParameters = {};
|
558
618
|
const headerParameters = {};
|
559
|
-
if (this.configuration && this.configuration.
|
560
|
-
|
619
|
+
if (this.configuration && this.configuration.accessToken) {
|
620
|
+
const token = this.configuration.accessToken;
|
621
|
+
const tokenString = yield token("authentik", []);
|
622
|
+
if (tokenString) {
|
623
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
624
|
+
}
|
561
625
|
}
|
562
626
|
const response = yield this.request({
|
563
627
|
path: `/flows/instances/{slug}/execute/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -587,8 +651,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
587
651
|
}
|
588
652
|
const queryParameters = {};
|
589
653
|
const headerParameters = {};
|
590
|
-
if (this.configuration && this.configuration.
|
591
|
-
|
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
|
+
}
|
592
660
|
}
|
593
661
|
const response = yield this.request({
|
594
662
|
path: `/flows/instances/{slug}/export/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -615,8 +683,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
615
683
|
return __awaiter(this, void 0, void 0, function* () {
|
616
684
|
const queryParameters = {};
|
617
685
|
const headerParameters = {};
|
618
|
-
if (this.configuration && this.configuration.
|
619
|
-
|
686
|
+
if (this.configuration && this.configuration.accessToken) {
|
687
|
+
const token = this.configuration.accessToken;
|
688
|
+
const tokenString = yield token("authentik", []);
|
689
|
+
if (tokenString) {
|
690
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
691
|
+
}
|
620
692
|
}
|
621
693
|
const consumes = [
|
622
694
|
{ contentType: 'multipart/form-data' },
|
@@ -692,8 +764,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
692
764
|
queryParameters['slug'] = requestParameters.slug;
|
693
765
|
}
|
694
766
|
const headerParameters = {};
|
695
|
-
if (this.configuration && this.configuration.
|
696
|
-
|
767
|
+
if (this.configuration && this.configuration.accessToken) {
|
768
|
+
const token = this.configuration.accessToken;
|
769
|
+
const tokenString = yield token("authentik", []);
|
770
|
+
if (tokenString) {
|
771
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
772
|
+
}
|
697
773
|
}
|
698
774
|
const response = yield this.request({
|
699
775
|
path: `/flows/instances/`,
|
@@ -724,8 +800,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
724
800
|
const queryParameters = {};
|
725
801
|
const headerParameters = {};
|
726
802
|
headerParameters['Content-Type'] = 'application/json';
|
727
|
-
if (this.configuration && this.configuration.
|
728
|
-
|
803
|
+
if (this.configuration && this.configuration.accessToken) {
|
804
|
+
const token = this.configuration.accessToken;
|
805
|
+
const tokenString = yield token("authentik", []);
|
806
|
+
if (tokenString) {
|
807
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
808
|
+
}
|
729
809
|
}
|
730
810
|
const response = yield this.request({
|
731
811
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -756,8 +836,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
756
836
|
}
|
757
837
|
const queryParameters = {};
|
758
838
|
const headerParameters = {};
|
759
|
-
if (this.configuration && this.configuration.
|
760
|
-
|
839
|
+
if (this.configuration && this.configuration.accessToken) {
|
840
|
+
const token = this.configuration.accessToken;
|
841
|
+
const tokenString = yield token("authentik", []);
|
842
|
+
if (tokenString) {
|
843
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
844
|
+
}
|
761
845
|
}
|
762
846
|
const response = yield this.request({
|
763
847
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -787,8 +871,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
787
871
|
}
|
788
872
|
const queryParameters = {};
|
789
873
|
const headerParameters = {};
|
790
|
-
if (this.configuration && this.configuration.
|
791
|
-
|
874
|
+
if (this.configuration && this.configuration.accessToken) {
|
875
|
+
const token = this.configuration.accessToken;
|
876
|
+
const tokenString = yield token("authentik", []);
|
877
|
+
if (tokenString) {
|
878
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
879
|
+
}
|
792
880
|
}
|
793
881
|
const consumes = [
|
794
882
|
{ contentType: 'multipart/form-data' },
|
@@ -843,8 +931,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
843
931
|
const queryParameters = {};
|
844
932
|
const headerParameters = {};
|
845
933
|
headerParameters['Content-Type'] = 'application/json';
|
846
|
-
if (this.configuration && this.configuration.
|
847
|
-
|
934
|
+
if (this.configuration && this.configuration.accessToken) {
|
935
|
+
const token = this.configuration.accessToken;
|
936
|
+
const tokenString = yield token("authentik", []);
|
937
|
+
if (tokenString) {
|
938
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
939
|
+
}
|
848
940
|
}
|
849
941
|
const response = yield this.request({
|
850
942
|
path: `/flows/instances/{slug}/set_background_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -878,8 +970,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
878
970
|
const queryParameters = {};
|
879
971
|
const headerParameters = {};
|
880
972
|
headerParameters['Content-Type'] = 'application/json';
|
881
|
-
if (this.configuration && this.configuration.
|
882
|
-
|
973
|
+
if (this.configuration && this.configuration.accessToken) {
|
974
|
+
const token = this.configuration.accessToken;
|
975
|
+
const tokenString = yield token("authentik", []);
|
976
|
+
if (tokenString) {
|
977
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
978
|
+
}
|
883
979
|
}
|
884
980
|
const response = yield this.request({
|
885
981
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -910,8 +1006,12 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
910
1006
|
}
|
911
1007
|
const queryParameters = {};
|
912
1008
|
const headerParameters = {};
|
913
|
-
if (this.configuration && this.configuration.
|
914
|
-
|
1009
|
+
if (this.configuration && this.configuration.accessToken) {
|
1010
|
+
const token = this.configuration.accessToken;
|
1011
|
+
const tokenString = yield token("authentik", []);
|
1012
|
+
if (tokenString) {
|
1013
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1014
|
+
}
|
915
1015
|
}
|
916
1016
|
const response = yield this.request({
|
917
1017
|
path: `/flows/instances/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
@@ -36,8 +36,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
36
36
|
}
|
37
37
|
const queryParameters = {};
|
38
38
|
const headerParameters = {};
|
39
|
-
if (this.configuration && this.configuration.
|
40
|
-
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
40
|
+
const token = this.configuration.accessToken;
|
41
|
+
const tokenString = yield token("authentik", []);
|
42
|
+
if (tokenString) {
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
44
|
+
}
|
41
45
|
}
|
42
46
|
const response = yield this.request({
|
43
47
|
path: `/managed/blueprints/{instance_uuid}/apply/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
@@ -64,8 +68,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
64
68
|
return __awaiter(this, void 0, void 0, function* () {
|
65
69
|
const queryParameters = {};
|
66
70
|
const headerParameters = {};
|
67
|
-
if (this.configuration && this.configuration.
|
68
|
-
|
71
|
+
if (this.configuration && this.configuration.accessToken) {
|
72
|
+
const token = this.configuration.accessToken;
|
73
|
+
const tokenString = yield token("authentik", []);
|
74
|
+
if (tokenString) {
|
75
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
76
|
+
}
|
69
77
|
}
|
70
78
|
const response = yield this.request({
|
71
79
|
path: `/managed/blueprints/available/`,
|
@@ -96,8 +104,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
96
104
|
const queryParameters = {};
|
97
105
|
const headerParameters = {};
|
98
106
|
headerParameters['Content-Type'] = 'application/json';
|
99
|
-
if (this.configuration && this.configuration.
|
100
|
-
|
107
|
+
if (this.configuration && this.configuration.accessToken) {
|
108
|
+
const token = this.configuration.accessToken;
|
109
|
+
const tokenString = yield token("authentik", []);
|
110
|
+
if (tokenString) {
|
111
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
112
|
+
}
|
101
113
|
}
|
102
114
|
const response = yield this.request({
|
103
115
|
path: `/managed/blueprints/`,
|
@@ -128,8 +140,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
128
140
|
}
|
129
141
|
const queryParameters = {};
|
130
142
|
const headerParameters = {};
|
131
|
-
if (this.configuration && this.configuration.
|
132
|
-
|
143
|
+
if (this.configuration && this.configuration.accessToken) {
|
144
|
+
const token = this.configuration.accessToken;
|
145
|
+
const tokenString = yield token("authentik", []);
|
146
|
+
if (tokenString) {
|
147
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
148
|
+
}
|
133
149
|
}
|
134
150
|
const response = yield this.request({
|
135
151
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
@@ -173,8 +189,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
173
189
|
queryParameters['search'] = requestParameters.search;
|
174
190
|
}
|
175
191
|
const headerParameters = {};
|
176
|
-
if (this.configuration && this.configuration.
|
177
|
-
|
192
|
+
if (this.configuration && this.configuration.accessToken) {
|
193
|
+
const token = this.configuration.accessToken;
|
194
|
+
const tokenString = yield token("authentik", []);
|
195
|
+
if (tokenString) {
|
196
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
197
|
+
}
|
178
198
|
}
|
179
199
|
const response = yield this.request({
|
180
200
|
path: `/managed/blueprints/`,
|
@@ -205,8 +225,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
205
225
|
const queryParameters = {};
|
206
226
|
const headerParameters = {};
|
207
227
|
headerParameters['Content-Type'] = 'application/json';
|
208
|
-
if (this.configuration && this.configuration.
|
209
|
-
|
228
|
+
if (this.configuration && this.configuration.accessToken) {
|
229
|
+
const token = this.configuration.accessToken;
|
230
|
+
const tokenString = yield token("authentik", []);
|
231
|
+
if (tokenString) {
|
232
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
233
|
+
}
|
210
234
|
}
|
211
235
|
const response = yield this.request({
|
212
236
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
@@ -237,8 +261,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
237
261
|
}
|
238
262
|
const queryParameters = {};
|
239
263
|
const headerParameters = {};
|
240
|
-
if (this.configuration && this.configuration.
|
241
|
-
|
264
|
+
if (this.configuration && this.configuration.accessToken) {
|
265
|
+
const token = this.configuration.accessToken;
|
266
|
+
const tokenString = yield token("authentik", []);
|
267
|
+
if (tokenString) {
|
268
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
269
|
+
}
|
242
270
|
}
|
243
271
|
const response = yield this.request({
|
244
272
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
@@ -272,8 +300,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
272
300
|
const queryParameters = {};
|
273
301
|
const headerParameters = {};
|
274
302
|
headerParameters['Content-Type'] = 'application/json';
|
275
|
-
if (this.configuration && this.configuration.
|
276
|
-
|
303
|
+
if (this.configuration && this.configuration.accessToken) {
|
304
|
+
const token = this.configuration.accessToken;
|
305
|
+
const tokenString = yield token("authentik", []);
|
306
|
+
if (tokenString) {
|
307
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
308
|
+
}
|
277
309
|
}
|
278
310
|
const response = yield this.request({
|
279
311
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
@@ -304,8 +336,12 @@ export class ManagedApi extends runtime.BaseAPI {
|
|
304
336
|
}
|
305
337
|
const queryParameters = {};
|
306
338
|
const headerParameters = {};
|
307
|
-
if (this.configuration && this.configuration.
|
308
|
-
|
339
|
+
if (this.configuration && this.configuration.accessToken) {
|
340
|
+
const token = this.configuration.accessToken;
|
341
|
+
const tokenString = yield token("authentik", []);
|
342
|
+
if (tokenString) {
|
343
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
344
|
+
}
|
309
345
|
}
|
310
346
|
const response = yield this.request({
|
311
347
|
path: `/managed/blueprints/{instance_uuid}/used_by/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|