@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
package/dist/apis/FlowsApi.js
CHANGED
|
@@ -40,8 +40,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("authentik", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/flows/bindings/`,
|
|
@@ -72,8 +76,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
72
76
|
}
|
|
73
77
|
const queryParameters = {};
|
|
74
78
|
const headerParameters = {};
|
|
75
|
-
if (this.configuration && this.configuration.
|
|
76
|
-
|
|
79
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
80
|
+
const token = this.configuration.accessToken;
|
|
81
|
+
const tokenString = yield token("authentik", []);
|
|
82
|
+
if (tokenString) {
|
|
83
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
84
|
+
}
|
|
77
85
|
}
|
|
78
86
|
const response = yield this.request({
|
|
79
87
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
@@ -141,8 +149,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
141
149
|
queryParameters['target'] = requestParameters.target;
|
|
142
150
|
}
|
|
143
151
|
const headerParameters = {};
|
|
144
|
-
if (this.configuration && this.configuration.
|
|
145
|
-
|
|
152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
153
|
+
const token = this.configuration.accessToken;
|
|
154
|
+
const tokenString = yield token("authentik", []);
|
|
155
|
+
if (tokenString) {
|
|
156
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
157
|
+
}
|
|
146
158
|
}
|
|
147
159
|
const response = yield this.request({
|
|
148
160
|
path: `/flows/bindings/`,
|
|
@@ -173,8 +185,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
173
185
|
const queryParameters = {};
|
|
174
186
|
const headerParameters = {};
|
|
175
187
|
headerParameters['Content-Type'] = 'application/json';
|
|
176
|
-
if (this.configuration && this.configuration.
|
|
177
|
-
|
|
188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
+
const token = this.configuration.accessToken;
|
|
190
|
+
const tokenString = yield token("authentik", []);
|
|
191
|
+
if (tokenString) {
|
|
192
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
193
|
+
}
|
|
178
194
|
}
|
|
179
195
|
const response = yield this.request({
|
|
180
196
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
@@ -205,8 +221,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
205
221
|
}
|
|
206
222
|
const queryParameters = {};
|
|
207
223
|
const headerParameters = {};
|
|
208
|
-
if (this.configuration && this.configuration.
|
|
209
|
-
|
|
224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
+
const token = this.configuration.accessToken;
|
|
226
|
+
const tokenString = yield token("authentik", []);
|
|
227
|
+
if (tokenString) {
|
|
228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
229
|
+
}
|
|
210
230
|
}
|
|
211
231
|
const response = yield this.request({
|
|
212
232
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
@@ -240,8 +260,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
240
260
|
const queryParameters = {};
|
|
241
261
|
const headerParameters = {};
|
|
242
262
|
headerParameters['Content-Type'] = 'application/json';
|
|
243
|
-
if (this.configuration && this.configuration.
|
|
244
|
-
|
|
263
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
264
|
+
const token = this.configuration.accessToken;
|
|
265
|
+
const tokenString = yield token("authentik", []);
|
|
266
|
+
if (tokenString) {
|
|
267
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
268
|
+
}
|
|
245
269
|
}
|
|
246
270
|
const response = yield this.request({
|
|
247
271
|
path: `/flows/bindings/{fsb_uuid}/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
@@ -272,8 +296,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
272
296
|
}
|
|
273
297
|
const queryParameters = {};
|
|
274
298
|
const headerParameters = {};
|
|
275
|
-
if (this.configuration && this.configuration.
|
|
276
|
-
|
|
299
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
300
|
+
const token = this.configuration.accessToken;
|
|
301
|
+
const tokenString = yield token("authentik", []);
|
|
302
|
+
if (tokenString) {
|
|
303
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
304
|
+
}
|
|
277
305
|
}
|
|
278
306
|
const response = yield this.request({
|
|
279
307
|
path: `/flows/bindings/{fsb_uuid}/used_by/`.replace(`{${"fsb_uuid"}}`, encodeURIComponent(String(requestParameters.fsbUuid))),
|
|
@@ -309,8 +337,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
309
337
|
queryParameters['query'] = requestParameters.query;
|
|
310
338
|
}
|
|
311
339
|
const headerParameters = {};
|
|
312
|
-
if (this.configuration && this.configuration.
|
|
313
|
-
|
|
340
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
341
|
+
const token = this.configuration.accessToken;
|
|
342
|
+
const tokenString = yield token("authentik", []);
|
|
343
|
+
if (tokenString) {
|
|
344
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
345
|
+
}
|
|
314
346
|
}
|
|
315
347
|
const response = yield this.request({
|
|
316
348
|
path: `/flows/executor/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
|
@@ -347,8 +379,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
347
379
|
}
|
|
348
380
|
const headerParameters = {};
|
|
349
381
|
headerParameters['Content-Type'] = 'application/json';
|
|
350
|
-
if (this.configuration && this.configuration.
|
|
351
|
-
|
|
382
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
383
|
+
const token = this.configuration.accessToken;
|
|
384
|
+
const tokenString = yield token("authentik", []);
|
|
385
|
+
if (tokenString) {
|
|
386
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
387
|
+
}
|
|
352
388
|
}
|
|
353
389
|
const response = yield this.request({
|
|
354
390
|
path: `/flows/executor/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
|
@@ -379,8 +415,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
379
415
|
}
|
|
380
416
|
const queryParameters = {};
|
|
381
417
|
const headerParameters = {};
|
|
382
|
-
if (this.configuration && this.configuration.
|
|
383
|
-
|
|
418
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
419
|
+
const token = this.configuration.accessToken;
|
|
420
|
+
const tokenString = yield token("authentik", []);
|
|
421
|
+
if (tokenString) {
|
|
422
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
423
|
+
}
|
|
384
424
|
}
|
|
385
425
|
const response = yield this.request({
|
|
386
426
|
path: `/flows/inspector/{flow_slug}/`.replace(`{${"flow_slug"}}`, encodeURIComponent(String(requestParameters.flowSlug))),
|
|
@@ -407,8 +447,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
407
447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
448
|
const queryParameters = {};
|
|
409
449
|
const headerParameters = {};
|
|
410
|
-
if (this.configuration && this.configuration.
|
|
411
|
-
|
|
450
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
451
|
+
const token = this.configuration.accessToken;
|
|
452
|
+
const tokenString = yield token("authentik", []);
|
|
453
|
+
if (tokenString) {
|
|
454
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
455
|
+
}
|
|
412
456
|
}
|
|
413
457
|
const response = yield this.request({
|
|
414
458
|
path: `/flows/instances/cache_clear/`,
|
|
@@ -434,8 +478,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
434
478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
435
479
|
const queryParameters = {};
|
|
436
480
|
const headerParameters = {};
|
|
437
|
-
if (this.configuration && this.configuration.
|
|
438
|
-
|
|
481
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
482
|
+
const token = this.configuration.accessToken;
|
|
483
|
+
const tokenString = yield token("authentik", []);
|
|
484
|
+
if (tokenString) {
|
|
485
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
486
|
+
}
|
|
439
487
|
}
|
|
440
488
|
const response = yield this.request({
|
|
441
489
|
path: `/flows/instances/cache_info/`,
|
|
@@ -466,8 +514,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
466
514
|
const queryParameters = {};
|
|
467
515
|
const headerParameters = {};
|
|
468
516
|
headerParameters['Content-Type'] = 'application/json';
|
|
469
|
-
if (this.configuration && this.configuration.
|
|
470
|
-
|
|
517
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
518
|
+
const token = this.configuration.accessToken;
|
|
519
|
+
const tokenString = yield token("authentik", []);
|
|
520
|
+
if (tokenString) {
|
|
521
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
522
|
+
}
|
|
471
523
|
}
|
|
472
524
|
const response = yield this.request({
|
|
473
525
|
path: `/flows/instances/`,
|
|
@@ -498,8 +550,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
498
550
|
}
|
|
499
551
|
const queryParameters = {};
|
|
500
552
|
const headerParameters = {};
|
|
501
|
-
if (this.configuration && this.configuration.
|
|
502
|
-
|
|
553
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
554
|
+
const token = this.configuration.accessToken;
|
|
555
|
+
const tokenString = yield token("authentik", []);
|
|
556
|
+
if (tokenString) {
|
|
557
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
558
|
+
}
|
|
503
559
|
}
|
|
504
560
|
const response = yield this.request({
|
|
505
561
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -528,8 +584,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
528
584
|
}
|
|
529
585
|
const queryParameters = {};
|
|
530
586
|
const headerParameters = {};
|
|
531
|
-
if (this.configuration && this.configuration.
|
|
532
|
-
|
|
587
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
588
|
+
const token = this.configuration.accessToken;
|
|
589
|
+
const tokenString = yield token("authentik", []);
|
|
590
|
+
if (tokenString) {
|
|
591
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
592
|
+
}
|
|
533
593
|
}
|
|
534
594
|
const response = yield this.request({
|
|
535
595
|
path: `/flows/instances/{slug}/diagram/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -559,8 +619,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
559
619
|
}
|
|
560
620
|
const queryParameters = {};
|
|
561
621
|
const headerParameters = {};
|
|
562
|
-
if (this.configuration && this.configuration.
|
|
563
|
-
|
|
622
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
623
|
+
const token = this.configuration.accessToken;
|
|
624
|
+
const tokenString = yield token("authentik", []);
|
|
625
|
+
if (tokenString) {
|
|
626
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
627
|
+
}
|
|
564
628
|
}
|
|
565
629
|
const response = yield this.request({
|
|
566
630
|
path: `/flows/instances/{slug}/execute/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -590,8 +654,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
590
654
|
}
|
|
591
655
|
const queryParameters = {};
|
|
592
656
|
const headerParameters = {};
|
|
593
|
-
if (this.configuration && this.configuration.
|
|
594
|
-
|
|
657
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
658
|
+
const token = this.configuration.accessToken;
|
|
659
|
+
const tokenString = yield token("authentik", []);
|
|
660
|
+
if (tokenString) {
|
|
661
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
662
|
+
}
|
|
595
663
|
}
|
|
596
664
|
const response = yield this.request({
|
|
597
665
|
path: `/flows/instances/{slug}/export/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -618,8 +686,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
618
686
|
return __awaiter(this, void 0, void 0, function* () {
|
|
619
687
|
const queryParameters = {};
|
|
620
688
|
const headerParameters = {};
|
|
621
|
-
if (this.configuration && this.configuration.
|
|
622
|
-
|
|
689
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
690
|
+
const token = this.configuration.accessToken;
|
|
691
|
+
const tokenString = yield token("authentik", []);
|
|
692
|
+
if (tokenString) {
|
|
693
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
694
|
+
}
|
|
623
695
|
}
|
|
624
696
|
const consumes = [
|
|
625
697
|
{ contentType: 'multipart/form-data' },
|
|
@@ -695,8 +767,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
695
767
|
queryParameters['slug'] = requestParameters.slug;
|
|
696
768
|
}
|
|
697
769
|
const headerParameters = {};
|
|
698
|
-
if (this.configuration && this.configuration.
|
|
699
|
-
|
|
770
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
771
|
+
const token = this.configuration.accessToken;
|
|
772
|
+
const tokenString = yield token("authentik", []);
|
|
773
|
+
if (tokenString) {
|
|
774
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
775
|
+
}
|
|
700
776
|
}
|
|
701
777
|
const response = yield this.request({
|
|
702
778
|
path: `/flows/instances/`,
|
|
@@ -727,8 +803,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
727
803
|
const queryParameters = {};
|
|
728
804
|
const headerParameters = {};
|
|
729
805
|
headerParameters['Content-Type'] = 'application/json';
|
|
730
|
-
if (this.configuration && this.configuration.
|
|
731
|
-
|
|
806
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
807
|
+
const token = this.configuration.accessToken;
|
|
808
|
+
const tokenString = yield token("authentik", []);
|
|
809
|
+
if (tokenString) {
|
|
810
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
811
|
+
}
|
|
732
812
|
}
|
|
733
813
|
const response = yield this.request({
|
|
734
814
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -759,8 +839,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
759
839
|
}
|
|
760
840
|
const queryParameters = {};
|
|
761
841
|
const headerParameters = {};
|
|
762
|
-
if (this.configuration && this.configuration.
|
|
763
|
-
|
|
842
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
843
|
+
const token = this.configuration.accessToken;
|
|
844
|
+
const tokenString = yield token("authentik", []);
|
|
845
|
+
if (tokenString) {
|
|
846
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
847
|
+
}
|
|
764
848
|
}
|
|
765
849
|
const response = yield this.request({
|
|
766
850
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -790,8 +874,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
790
874
|
}
|
|
791
875
|
const queryParameters = {};
|
|
792
876
|
const headerParameters = {};
|
|
793
|
-
if (this.configuration && this.configuration.
|
|
794
|
-
|
|
877
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
878
|
+
const token = this.configuration.accessToken;
|
|
879
|
+
const tokenString = yield token("authentik", []);
|
|
880
|
+
if (tokenString) {
|
|
881
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
882
|
+
}
|
|
795
883
|
}
|
|
796
884
|
const consumes = [
|
|
797
885
|
{ contentType: 'multipart/form-data' },
|
|
@@ -846,8 +934,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
846
934
|
const queryParameters = {};
|
|
847
935
|
const headerParameters = {};
|
|
848
936
|
headerParameters['Content-Type'] = 'application/json';
|
|
849
|
-
if (this.configuration && this.configuration.
|
|
850
|
-
|
|
937
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
938
|
+
const token = this.configuration.accessToken;
|
|
939
|
+
const tokenString = yield token("authentik", []);
|
|
940
|
+
if (tokenString) {
|
|
941
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
942
|
+
}
|
|
851
943
|
}
|
|
852
944
|
const response = yield this.request({
|
|
853
945
|
path: `/flows/instances/{slug}/set_background_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -881,8 +973,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
881
973
|
const queryParameters = {};
|
|
882
974
|
const headerParameters = {};
|
|
883
975
|
headerParameters['Content-Type'] = 'application/json';
|
|
884
|
-
if (this.configuration && this.configuration.
|
|
885
|
-
|
|
976
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
977
|
+
const token = this.configuration.accessToken;
|
|
978
|
+
const tokenString = yield token("authentik", []);
|
|
979
|
+
if (tokenString) {
|
|
980
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
981
|
+
}
|
|
886
982
|
}
|
|
887
983
|
const response = yield this.request({
|
|
888
984
|
path: `/flows/instances/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -913,8 +1009,12 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
913
1009
|
}
|
|
914
1010
|
const queryParameters = {};
|
|
915
1011
|
const headerParameters = {};
|
|
916
|
-
if (this.configuration && this.configuration.
|
|
917
|
-
|
|
1012
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1013
|
+
const token = this.configuration.accessToken;
|
|
1014
|
+
const tokenString = yield token("authentik", []);
|
|
1015
|
+
if (tokenString) {
|
|
1016
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1017
|
+
}
|
|
918
1018
|
}
|
|
919
1019
|
const response = yield this.request({
|
|
920
1020
|
path: `/flows/instances/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
package/dist/apis/ManagedApi.js
CHANGED
|
@@ -39,8 +39,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
39
39
|
}
|
|
40
40
|
const queryParameters = {};
|
|
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: `/managed/blueprints/{instance_uuid}/apply/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
@@ -67,8 +71,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
67
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
72
|
const queryParameters = {};
|
|
69
73
|
const headerParameters = {};
|
|
70
|
-
if (this.configuration && this.configuration.
|
|
71
|
-
|
|
74
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
75
|
+
const token = this.configuration.accessToken;
|
|
76
|
+
const tokenString = yield token("authentik", []);
|
|
77
|
+
if (tokenString) {
|
|
78
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
79
|
+
}
|
|
72
80
|
}
|
|
73
81
|
const response = yield this.request({
|
|
74
82
|
path: `/managed/blueprints/available/`,
|
|
@@ -99,8 +107,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
99
107
|
const queryParameters = {};
|
|
100
108
|
const headerParameters = {};
|
|
101
109
|
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
-
if (this.configuration && this.configuration.
|
|
103
|
-
|
|
110
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
111
|
+
const token = this.configuration.accessToken;
|
|
112
|
+
const tokenString = yield token("authentik", []);
|
|
113
|
+
if (tokenString) {
|
|
114
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
115
|
+
}
|
|
104
116
|
}
|
|
105
117
|
const response = yield this.request({
|
|
106
118
|
path: `/managed/blueprints/`,
|
|
@@ -131,8 +143,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
131
143
|
}
|
|
132
144
|
const queryParameters = {};
|
|
133
145
|
const headerParameters = {};
|
|
134
|
-
if (this.configuration && this.configuration.
|
|
135
|
-
|
|
146
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
147
|
+
const token = this.configuration.accessToken;
|
|
148
|
+
const tokenString = yield token("authentik", []);
|
|
149
|
+
if (tokenString) {
|
|
150
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
151
|
+
}
|
|
136
152
|
}
|
|
137
153
|
const response = yield this.request({
|
|
138
154
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
@@ -176,8 +192,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
176
192
|
queryParameters['search'] = requestParameters.search;
|
|
177
193
|
}
|
|
178
194
|
const headerParameters = {};
|
|
179
|
-
if (this.configuration && this.configuration.
|
|
180
|
-
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
const token = this.configuration.accessToken;
|
|
197
|
+
const tokenString = yield token("authentik", []);
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
200
|
+
}
|
|
181
201
|
}
|
|
182
202
|
const response = yield this.request({
|
|
183
203
|
path: `/managed/blueprints/`,
|
|
@@ -208,8 +228,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
208
228
|
const queryParameters = {};
|
|
209
229
|
const headerParameters = {};
|
|
210
230
|
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
-
if (this.configuration && this.configuration.
|
|
212
|
-
|
|
231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
232
|
+
const token = this.configuration.accessToken;
|
|
233
|
+
const tokenString = yield token("authentik", []);
|
|
234
|
+
if (tokenString) {
|
|
235
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
236
|
+
}
|
|
213
237
|
}
|
|
214
238
|
const response = yield this.request({
|
|
215
239
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
@@ -240,8 +264,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
240
264
|
}
|
|
241
265
|
const queryParameters = {};
|
|
242
266
|
const headerParameters = {};
|
|
243
|
-
if (this.configuration && this.configuration.
|
|
244
|
-
|
|
267
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
268
|
+
const token = this.configuration.accessToken;
|
|
269
|
+
const tokenString = yield token("authentik", []);
|
|
270
|
+
if (tokenString) {
|
|
271
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
272
|
+
}
|
|
245
273
|
}
|
|
246
274
|
const response = yield this.request({
|
|
247
275
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
@@ -275,8 +303,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
275
303
|
const queryParameters = {};
|
|
276
304
|
const headerParameters = {};
|
|
277
305
|
headerParameters['Content-Type'] = 'application/json';
|
|
278
|
-
if (this.configuration && this.configuration.
|
|
279
|
-
|
|
306
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
307
|
+
const token = this.configuration.accessToken;
|
|
308
|
+
const tokenString = yield token("authentik", []);
|
|
309
|
+
if (tokenString) {
|
|
310
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
311
|
+
}
|
|
280
312
|
}
|
|
281
313
|
const response = yield this.request({
|
|
282
314
|
path: `/managed/blueprints/{instance_uuid}/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|
|
@@ -307,8 +339,12 @@ class ManagedApi extends runtime.BaseAPI {
|
|
|
307
339
|
}
|
|
308
340
|
const queryParameters = {};
|
|
309
341
|
const headerParameters = {};
|
|
310
|
-
if (this.configuration && this.configuration.
|
|
311
|
-
|
|
342
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
343
|
+
const token = this.configuration.accessToken;
|
|
344
|
+
const tokenString = yield token("authentik", []);
|
|
345
|
+
if (tokenString) {
|
|
346
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
347
|
+
}
|
|
312
348
|
}
|
|
313
349
|
const response = yield this.request({
|
|
314
350
|
path: `/managed/blueprints/{instance_uuid}/used_by/`.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters.instanceUuid))),
|