@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1713180481
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -1
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.d.ts +2 -0
- package/dist/apis/CoreApi.js +378 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.d.ts +2 -0
- package/dist/esm/apis/CoreApi.js +378 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +444 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
- package/src/models/index.ts +0 -1
- package/dist/esm/models/UserGroupRequest.d.ts +0 -51
- package/dist/esm/models/UserGroupRequest.js +0 -50
- package/dist/models/UserGroupRequest.d.ts +0 -51
- package/dist/models/UserGroupRequest.js +0 -57
- package/src/models/UserGroupRequest.ts +0 -90
package/dist/apis/SourcesApi.js
CHANGED
|
@@ -39,8 +39,12 @@ class SourcesApi 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: `/sources/all/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -87,8 +91,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
87
91
|
queryParameters['slug'] = requestParameters.slug;
|
|
88
92
|
}
|
|
89
93
|
const headerParameters = {};
|
|
90
|
-
if (this.configuration && this.configuration.
|
|
91
|
-
|
|
94
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
95
|
+
const token = this.configuration.accessToken;
|
|
96
|
+
const tokenString = yield token("authentik", []);
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
99
|
+
}
|
|
92
100
|
}
|
|
93
101
|
const response = yield this.request({
|
|
94
102
|
path: `/sources/all/`,
|
|
@@ -118,8 +126,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
118
126
|
}
|
|
119
127
|
const queryParameters = {};
|
|
120
128
|
const headerParameters = {};
|
|
121
|
-
if (this.configuration && this.configuration.
|
|
122
|
-
|
|
129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
130
|
+
const token = this.configuration.accessToken;
|
|
131
|
+
const tokenString = yield token("authentik", []);
|
|
132
|
+
if (tokenString) {
|
|
133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
134
|
+
}
|
|
123
135
|
}
|
|
124
136
|
const response = yield this.request({
|
|
125
137
|
path: `/sources/all/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -149,8 +161,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
149
161
|
}
|
|
150
162
|
const queryParameters = {};
|
|
151
163
|
const headerParameters = {};
|
|
152
|
-
if (this.configuration && this.configuration.
|
|
153
|
-
|
|
164
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
165
|
+
const token = this.configuration.accessToken;
|
|
166
|
+
const tokenString = yield token("authentik", []);
|
|
167
|
+
if (tokenString) {
|
|
168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
|
+
}
|
|
154
170
|
}
|
|
155
171
|
const consumes = [
|
|
156
172
|
{ contentType: 'multipart/form-data' },
|
|
@@ -205,8 +221,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
205
221
|
const queryParameters = {};
|
|
206
222
|
const headerParameters = {};
|
|
207
223
|
headerParameters['Content-Type'] = 'application/json';
|
|
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: `/sources/all/{slug}/set_icon_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -233,8 +253,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
233
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
254
|
const queryParameters = {};
|
|
235
255
|
const headerParameters = {};
|
|
236
|
-
if (this.configuration && this.configuration.
|
|
237
|
-
|
|
256
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
257
|
+
const token = this.configuration.accessToken;
|
|
258
|
+
const tokenString = yield token("authentik", []);
|
|
259
|
+
if (tokenString) {
|
|
260
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
261
|
+
}
|
|
238
262
|
}
|
|
239
263
|
const response = yield this.request({
|
|
240
264
|
path: `/sources/all/types/`,
|
|
@@ -264,8 +288,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
264
288
|
}
|
|
265
289
|
const queryParameters = {};
|
|
266
290
|
const headerParameters = {};
|
|
267
|
-
if (this.configuration && this.configuration.
|
|
268
|
-
|
|
291
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
292
|
+
const token = this.configuration.accessToken;
|
|
293
|
+
const tokenString = yield token("authentik", []);
|
|
294
|
+
if (tokenString) {
|
|
295
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
296
|
+
}
|
|
269
297
|
}
|
|
270
298
|
const response = yield this.request({
|
|
271
299
|
path: `/sources/all/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -292,8 +320,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
292
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
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 response = yield this.request({
|
|
299
331
|
path: `/sources/all/user_settings/`,
|
|
@@ -324,8 +356,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
324
356
|
const queryParameters = {};
|
|
325
357
|
const headerParameters = {};
|
|
326
358
|
headerParameters['Content-Type'] = 'application/json';
|
|
327
|
-
if (this.configuration && this.configuration.
|
|
328
|
-
|
|
359
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
360
|
+
const token = this.configuration.accessToken;
|
|
361
|
+
const tokenString = yield token("authentik", []);
|
|
362
|
+
if (tokenString) {
|
|
363
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
364
|
+
}
|
|
329
365
|
}
|
|
330
366
|
const response = yield this.request({
|
|
331
367
|
path: `/sources/ldap/`,
|
|
@@ -356,8 +392,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
356
392
|
}
|
|
357
393
|
const queryParameters = {};
|
|
358
394
|
const headerParameters = {};
|
|
359
|
-
if (this.configuration && this.configuration.
|
|
360
|
-
|
|
395
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
396
|
+
const token = this.configuration.accessToken;
|
|
397
|
+
const tokenString = yield token("authentik", []);
|
|
398
|
+
if (tokenString) {
|
|
399
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
400
|
+
}
|
|
361
401
|
}
|
|
362
402
|
const response = yield this.request({
|
|
363
403
|
path: `/sources/ldap/{slug}/debug/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -387,8 +427,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
387
427
|
}
|
|
388
428
|
const queryParameters = {};
|
|
389
429
|
const headerParameters = {};
|
|
390
|
-
if (this.configuration && this.configuration.
|
|
391
|
-
|
|
430
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
431
|
+
const token = this.configuration.accessToken;
|
|
432
|
+
const tokenString = yield token("authentik", []);
|
|
433
|
+
if (tokenString) {
|
|
434
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
435
|
+
}
|
|
392
436
|
}
|
|
393
437
|
const response = yield this.request({
|
|
394
438
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -495,8 +539,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
495
539
|
queryParameters['user_object_filter'] = requestParameters.userObjectFilter;
|
|
496
540
|
}
|
|
497
541
|
const headerParameters = {};
|
|
498
|
-
if (this.configuration && this.configuration.
|
|
499
|
-
|
|
542
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
543
|
+
const token = this.configuration.accessToken;
|
|
544
|
+
const tokenString = yield token("authentik", []);
|
|
545
|
+
if (tokenString) {
|
|
546
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
547
|
+
}
|
|
500
548
|
}
|
|
501
549
|
const response = yield this.request({
|
|
502
550
|
path: `/sources/ldap/`,
|
|
@@ -527,8 +575,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
527
575
|
const queryParameters = {};
|
|
528
576
|
const headerParameters = {};
|
|
529
577
|
headerParameters['Content-Type'] = 'application/json';
|
|
530
|
-
if (this.configuration && this.configuration.
|
|
531
|
-
|
|
578
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
579
|
+
const token = this.configuration.accessToken;
|
|
580
|
+
const tokenString = yield token("authentik", []);
|
|
581
|
+
if (tokenString) {
|
|
582
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
583
|
+
}
|
|
532
584
|
}
|
|
533
585
|
const response = yield this.request({
|
|
534
586
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -559,8 +611,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
559
611
|
}
|
|
560
612
|
const queryParameters = {};
|
|
561
613
|
const headerParameters = {};
|
|
562
|
-
if (this.configuration && this.configuration.
|
|
563
|
-
|
|
614
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
615
|
+
const token = this.configuration.accessToken;
|
|
616
|
+
const tokenString = yield token("authentik", []);
|
|
617
|
+
if (tokenString) {
|
|
618
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
619
|
+
}
|
|
564
620
|
}
|
|
565
621
|
const response = yield this.request({
|
|
566
622
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -590,8 +646,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
590
646
|
}
|
|
591
647
|
const queryParameters = {};
|
|
592
648
|
const headerParameters = {};
|
|
593
|
-
if (this.configuration && this.configuration.
|
|
594
|
-
|
|
649
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
650
|
+
const token = this.configuration.accessToken;
|
|
651
|
+
const tokenString = yield token("authentik", []);
|
|
652
|
+
if (tokenString) {
|
|
653
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
654
|
+
}
|
|
595
655
|
}
|
|
596
656
|
const response = yield this.request({
|
|
597
657
|
path: `/sources/ldap/{slug}/sync_status/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -625,8 +685,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
625
685
|
const queryParameters = {};
|
|
626
686
|
const headerParameters = {};
|
|
627
687
|
headerParameters['Content-Type'] = 'application/json';
|
|
628
|
-
if (this.configuration && this.configuration.
|
|
629
|
-
|
|
688
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
689
|
+
const token = this.configuration.accessToken;
|
|
690
|
+
const tokenString = yield token("authentik", []);
|
|
691
|
+
if (tokenString) {
|
|
692
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
693
|
+
}
|
|
630
694
|
}
|
|
631
695
|
const response = yield this.request({
|
|
632
696
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -657,8 +721,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
657
721
|
}
|
|
658
722
|
const queryParameters = {};
|
|
659
723
|
const headerParameters = {};
|
|
660
|
-
if (this.configuration && this.configuration.
|
|
661
|
-
|
|
724
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
725
|
+
const token = this.configuration.accessToken;
|
|
726
|
+
const tokenString = yield token("authentik", []);
|
|
727
|
+
if (tokenString) {
|
|
728
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
729
|
+
}
|
|
662
730
|
}
|
|
663
731
|
const response = yield this.request({
|
|
664
732
|
path: `/sources/ldap/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -689,8 +757,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
689
757
|
const queryParameters = {};
|
|
690
758
|
const headerParameters = {};
|
|
691
759
|
headerParameters['Content-Type'] = 'application/json';
|
|
692
|
-
if (this.configuration && this.configuration.
|
|
693
|
-
|
|
760
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
761
|
+
const token = this.configuration.accessToken;
|
|
762
|
+
const tokenString = yield token("authentik", []);
|
|
763
|
+
if (tokenString) {
|
|
764
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
765
|
+
}
|
|
694
766
|
}
|
|
695
767
|
const response = yield this.request({
|
|
696
768
|
path: `/sources/oauth/`,
|
|
@@ -721,8 +793,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
721
793
|
}
|
|
722
794
|
const queryParameters = {};
|
|
723
795
|
const headerParameters = {};
|
|
724
|
-
if (this.configuration && this.configuration.
|
|
725
|
-
|
|
796
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
797
|
+
const token = this.configuration.accessToken;
|
|
798
|
+
const tokenString = yield token("authentik", []);
|
|
799
|
+
if (tokenString) {
|
|
800
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
801
|
+
}
|
|
726
802
|
}
|
|
727
803
|
const response = yield this.request({
|
|
728
804
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -805,8 +881,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
805
881
|
queryParameters['user_matching_mode'] = requestParameters.userMatchingMode;
|
|
806
882
|
}
|
|
807
883
|
const headerParameters = {};
|
|
808
|
-
if (this.configuration && this.configuration.
|
|
809
|
-
|
|
884
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
885
|
+
const token = this.configuration.accessToken;
|
|
886
|
+
const tokenString = yield token("authentik", []);
|
|
887
|
+
if (tokenString) {
|
|
888
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
889
|
+
}
|
|
810
890
|
}
|
|
811
891
|
const response = yield this.request({
|
|
812
892
|
path: `/sources/oauth/`,
|
|
@@ -837,8 +917,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
837
917
|
const queryParameters = {};
|
|
838
918
|
const headerParameters = {};
|
|
839
919
|
headerParameters['Content-Type'] = 'application/json';
|
|
840
|
-
if (this.configuration && this.configuration.
|
|
841
|
-
|
|
920
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
921
|
+
const token = this.configuration.accessToken;
|
|
922
|
+
const tokenString = yield token("authentik", []);
|
|
923
|
+
if (tokenString) {
|
|
924
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
925
|
+
}
|
|
842
926
|
}
|
|
843
927
|
const response = yield this.request({
|
|
844
928
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -869,8 +953,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
869
953
|
}
|
|
870
954
|
const queryParameters = {};
|
|
871
955
|
const headerParameters = {};
|
|
872
|
-
if (this.configuration && this.configuration.
|
|
873
|
-
|
|
956
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
957
|
+
const token = this.configuration.accessToken;
|
|
958
|
+
const tokenString = yield token("authentik", []);
|
|
959
|
+
if (tokenString) {
|
|
960
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
961
|
+
}
|
|
874
962
|
}
|
|
875
963
|
const response = yield this.request({
|
|
876
964
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -900,8 +988,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
900
988
|
queryParameters['name'] = requestParameters.name;
|
|
901
989
|
}
|
|
902
990
|
const headerParameters = {};
|
|
903
|
-
if (this.configuration && this.configuration.
|
|
904
|
-
|
|
991
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
992
|
+
const token = this.configuration.accessToken;
|
|
993
|
+
const tokenString = yield token("authentik", []);
|
|
994
|
+
if (tokenString) {
|
|
995
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
996
|
+
}
|
|
905
997
|
}
|
|
906
998
|
const response = yield this.request({
|
|
907
999
|
path: `/sources/oauth/source_types/`,
|
|
@@ -935,8 +1027,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
935
1027
|
const queryParameters = {};
|
|
936
1028
|
const headerParameters = {};
|
|
937
1029
|
headerParameters['Content-Type'] = 'application/json';
|
|
938
|
-
if (this.configuration && this.configuration.
|
|
939
|
-
|
|
1030
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1031
|
+
const token = this.configuration.accessToken;
|
|
1032
|
+
const tokenString = yield token("authentik", []);
|
|
1033
|
+
if (tokenString) {
|
|
1034
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1035
|
+
}
|
|
940
1036
|
}
|
|
941
1037
|
const response = yield this.request({
|
|
942
1038
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -967,8 +1063,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
967
1063
|
}
|
|
968
1064
|
const queryParameters = {};
|
|
969
1065
|
const headerParameters = {};
|
|
970
|
-
if (this.configuration && this.configuration.
|
|
971
|
-
|
|
1066
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1067
|
+
const token = this.configuration.accessToken;
|
|
1068
|
+
const tokenString = yield token("authentik", []);
|
|
1069
|
+
if (tokenString) {
|
|
1070
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1071
|
+
}
|
|
972
1072
|
}
|
|
973
1073
|
const response = yield this.request({
|
|
974
1074
|
path: `/sources/oauth/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -999,8 +1099,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
999
1099
|
const queryParameters = {};
|
|
1000
1100
|
const headerParameters = {};
|
|
1001
1101
|
headerParameters['Content-Type'] = 'application/json';
|
|
1002
|
-
if (this.configuration && this.configuration.
|
|
1003
|
-
|
|
1102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1103
|
+
const token = this.configuration.accessToken;
|
|
1104
|
+
const tokenString = yield token("authentik", []);
|
|
1105
|
+
if (tokenString) {
|
|
1106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1107
|
+
}
|
|
1004
1108
|
}
|
|
1005
1109
|
const response = yield this.request({
|
|
1006
1110
|
path: `/sources/plex/`,
|
|
@@ -1031,8 +1135,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1031
1135
|
}
|
|
1032
1136
|
const queryParameters = {};
|
|
1033
1137
|
const headerParameters = {};
|
|
1034
|
-
if (this.configuration && this.configuration.
|
|
1035
|
-
|
|
1138
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1139
|
+
const token = this.configuration.accessToken;
|
|
1140
|
+
const tokenString = yield token("authentik", []);
|
|
1141
|
+
if (tokenString) {
|
|
1142
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1143
|
+
}
|
|
1036
1144
|
}
|
|
1037
1145
|
const response = yield this.request({
|
|
1038
1146
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1097,8 +1205,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1097
1205
|
queryParameters['user_matching_mode'] = requestParameters.userMatchingMode;
|
|
1098
1206
|
}
|
|
1099
1207
|
const headerParameters = {};
|
|
1100
|
-
if (this.configuration && this.configuration.
|
|
1101
|
-
|
|
1208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1209
|
+
const token = this.configuration.accessToken;
|
|
1210
|
+
const tokenString = yield token("authentik", []);
|
|
1211
|
+
if (tokenString) {
|
|
1212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1213
|
+
}
|
|
1102
1214
|
}
|
|
1103
1215
|
const response = yield this.request({
|
|
1104
1216
|
path: `/sources/plex/`,
|
|
@@ -1129,8 +1241,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1129
1241
|
const queryParameters = {};
|
|
1130
1242
|
const headerParameters = {};
|
|
1131
1243
|
headerParameters['Content-Type'] = 'application/json';
|
|
1132
|
-
if (this.configuration && this.configuration.
|
|
1133
|
-
|
|
1244
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1245
|
+
const token = this.configuration.accessToken;
|
|
1246
|
+
const tokenString = yield token("authentik", []);
|
|
1247
|
+
if (tokenString) {
|
|
1248
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1249
|
+
}
|
|
1134
1250
|
}
|
|
1135
1251
|
const response = yield this.request({
|
|
1136
1252
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1165,8 +1281,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1165
1281
|
}
|
|
1166
1282
|
const headerParameters = {};
|
|
1167
1283
|
headerParameters['Content-Type'] = 'application/json';
|
|
1168
|
-
if (this.configuration && this.configuration.
|
|
1169
|
-
|
|
1284
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1285
|
+
const token = this.configuration.accessToken;
|
|
1286
|
+
const tokenString = yield token("authentik", []);
|
|
1287
|
+
if (tokenString) {
|
|
1288
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1289
|
+
}
|
|
1170
1290
|
}
|
|
1171
1291
|
const response = yield this.request({
|
|
1172
1292
|
path: `/sources/plex/redeem_token_authenticated/`,
|
|
@@ -1200,8 +1320,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1200
1320
|
}
|
|
1201
1321
|
const headerParameters = {};
|
|
1202
1322
|
headerParameters['Content-Type'] = 'application/json';
|
|
1203
|
-
if (this.configuration && this.configuration.
|
|
1204
|
-
|
|
1323
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1324
|
+
const token = this.configuration.accessToken;
|
|
1325
|
+
const tokenString = yield token("authentik", []);
|
|
1326
|
+
if (tokenString) {
|
|
1327
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1328
|
+
}
|
|
1205
1329
|
}
|
|
1206
1330
|
const response = yield this.request({
|
|
1207
1331
|
path: `/sources/plex/redeem_token/`,
|
|
@@ -1232,8 +1356,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1232
1356
|
}
|
|
1233
1357
|
const queryParameters = {};
|
|
1234
1358
|
const headerParameters = {};
|
|
1235
|
-
if (this.configuration && this.configuration.
|
|
1236
|
-
|
|
1359
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1360
|
+
const token = this.configuration.accessToken;
|
|
1361
|
+
const tokenString = yield token("authentik", []);
|
|
1362
|
+
if (tokenString) {
|
|
1363
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1364
|
+
}
|
|
1237
1365
|
}
|
|
1238
1366
|
const response = yield this.request({
|
|
1239
1367
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1267,8 +1395,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1267
1395
|
const queryParameters = {};
|
|
1268
1396
|
const headerParameters = {};
|
|
1269
1397
|
headerParameters['Content-Type'] = 'application/json';
|
|
1270
|
-
if (this.configuration && this.configuration.
|
|
1271
|
-
|
|
1398
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1399
|
+
const token = this.configuration.accessToken;
|
|
1400
|
+
const tokenString = yield token("authentik", []);
|
|
1401
|
+
if (tokenString) {
|
|
1402
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1403
|
+
}
|
|
1272
1404
|
}
|
|
1273
1405
|
const response = yield this.request({
|
|
1274
1406
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1299,8 +1431,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1299
1431
|
}
|
|
1300
1432
|
const queryParameters = {};
|
|
1301
1433
|
const headerParameters = {};
|
|
1302
|
-
if (this.configuration && this.configuration.
|
|
1303
|
-
|
|
1434
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1435
|
+
const token = this.configuration.accessToken;
|
|
1436
|
+
const tokenString = yield token("authentik", []);
|
|
1437
|
+
if (tokenString) {
|
|
1438
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1439
|
+
}
|
|
1304
1440
|
}
|
|
1305
1441
|
const response = yield this.request({
|
|
1306
1442
|
path: `/sources/plex/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1331,8 +1467,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1331
1467
|
const queryParameters = {};
|
|
1332
1468
|
const headerParameters = {};
|
|
1333
1469
|
headerParameters['Content-Type'] = 'application/json';
|
|
1334
|
-
if (this.configuration && this.configuration.
|
|
1335
|
-
|
|
1470
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1471
|
+
const token = this.configuration.accessToken;
|
|
1472
|
+
const tokenString = yield token("authentik", []);
|
|
1473
|
+
if (tokenString) {
|
|
1474
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1475
|
+
}
|
|
1336
1476
|
}
|
|
1337
1477
|
const response = yield this.request({
|
|
1338
1478
|
path: `/sources/saml/`,
|
|
@@ -1363,8 +1503,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1363
1503
|
}
|
|
1364
1504
|
const queryParameters = {};
|
|
1365
1505
|
const headerParameters = {};
|
|
1366
|
-
if (this.configuration && this.configuration.
|
|
1367
|
-
|
|
1506
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1507
|
+
const token = this.configuration.accessToken;
|
|
1508
|
+
const tokenString = yield token("authentik", []);
|
|
1509
|
+
if (tokenString) {
|
|
1510
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1511
|
+
}
|
|
1368
1512
|
}
|
|
1369
1513
|
const response = yield this.request({
|
|
1370
1514
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1462,8 +1606,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1462
1606
|
queryParameters['verification_kp'] = requestParameters.verificationKp;
|
|
1463
1607
|
}
|
|
1464
1608
|
const headerParameters = {};
|
|
1465
|
-
if (this.configuration && this.configuration.
|
|
1466
|
-
|
|
1609
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1610
|
+
const token = this.configuration.accessToken;
|
|
1611
|
+
const tokenString = yield token("authentik", []);
|
|
1612
|
+
if (tokenString) {
|
|
1613
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1614
|
+
}
|
|
1467
1615
|
}
|
|
1468
1616
|
const response = yield this.request({
|
|
1469
1617
|
path: `/sources/saml/`,
|
|
@@ -1493,8 +1641,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1493
1641
|
}
|
|
1494
1642
|
const queryParameters = {};
|
|
1495
1643
|
const headerParameters = {};
|
|
1496
|
-
if (this.configuration && this.configuration.
|
|
1497
|
-
|
|
1644
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1645
|
+
const token = this.configuration.accessToken;
|
|
1646
|
+
const tokenString = yield token("authentik", []);
|
|
1647
|
+
if (tokenString) {
|
|
1648
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1649
|
+
}
|
|
1498
1650
|
}
|
|
1499
1651
|
const response = yield this.request({
|
|
1500
1652
|
path: `/sources/saml/{slug}/metadata/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1525,8 +1677,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1525
1677
|
const queryParameters = {};
|
|
1526
1678
|
const headerParameters = {};
|
|
1527
1679
|
headerParameters['Content-Type'] = 'application/json';
|
|
1528
|
-
if (this.configuration && this.configuration.
|
|
1529
|
-
|
|
1680
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1681
|
+
const token = this.configuration.accessToken;
|
|
1682
|
+
const tokenString = yield token("authentik", []);
|
|
1683
|
+
if (tokenString) {
|
|
1684
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1685
|
+
}
|
|
1530
1686
|
}
|
|
1531
1687
|
const response = yield this.request({
|
|
1532
1688
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1557,8 +1713,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1557
1713
|
}
|
|
1558
1714
|
const queryParameters = {};
|
|
1559
1715
|
const headerParameters = {};
|
|
1560
|
-
if (this.configuration && this.configuration.
|
|
1561
|
-
|
|
1716
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1717
|
+
const token = this.configuration.accessToken;
|
|
1718
|
+
const tokenString = yield token("authentik", []);
|
|
1719
|
+
if (tokenString) {
|
|
1720
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1721
|
+
}
|
|
1562
1722
|
}
|
|
1563
1723
|
const response = yield this.request({
|
|
1564
1724
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1592,8 +1752,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1592
1752
|
const queryParameters = {};
|
|
1593
1753
|
const headerParameters = {};
|
|
1594
1754
|
headerParameters['Content-Type'] = 'application/json';
|
|
1595
|
-
if (this.configuration && this.configuration.
|
|
1596
|
-
|
|
1755
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1756
|
+
const token = this.configuration.accessToken;
|
|
1757
|
+
const tokenString = yield token("authentik", []);
|
|
1758
|
+
if (tokenString) {
|
|
1759
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1760
|
+
}
|
|
1597
1761
|
}
|
|
1598
1762
|
const response = yield this.request({
|
|
1599
1763
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1624,8 +1788,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1624
1788
|
}
|
|
1625
1789
|
const queryParameters = {};
|
|
1626
1790
|
const headerParameters = {};
|
|
1627
|
-
if (this.configuration && this.configuration.
|
|
1628
|
-
|
|
1791
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1792
|
+
const token = this.configuration.accessToken;
|
|
1793
|
+
const tokenString = yield token("authentik", []);
|
|
1794
|
+
if (tokenString) {
|
|
1795
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1796
|
+
}
|
|
1629
1797
|
}
|
|
1630
1798
|
const response = yield this.request({
|
|
1631
1799
|
path: `/sources/saml/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
@@ -1655,8 +1823,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1655
1823
|
}
|
|
1656
1824
|
const queryParameters = {};
|
|
1657
1825
|
const headerParameters = {};
|
|
1658
|
-
if (this.configuration && this.configuration.
|
|
1659
|
-
|
|
1826
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1827
|
+
const token = this.configuration.accessToken;
|
|
1828
|
+
const tokenString = yield token("authentik", []);
|
|
1829
|
+
if (tokenString) {
|
|
1830
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1831
|
+
}
|
|
1660
1832
|
}
|
|
1661
1833
|
const response = yield this.request({
|
|
1662
1834
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1697,8 +1869,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1697
1869
|
queryParameters['user'] = requestParameters.user;
|
|
1698
1870
|
}
|
|
1699
1871
|
const headerParameters = {};
|
|
1700
|
-
if (this.configuration && this.configuration.
|
|
1701
|
-
|
|
1872
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1873
|
+
const token = this.configuration.accessToken;
|
|
1874
|
+
const tokenString = yield token("authentik", []);
|
|
1875
|
+
if (tokenString) {
|
|
1876
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1877
|
+
}
|
|
1702
1878
|
}
|
|
1703
1879
|
const response = yield this.request({
|
|
1704
1880
|
path: `/sources/user_connections/all/`,
|
|
@@ -1728,8 +1904,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1728
1904
|
}
|
|
1729
1905
|
const queryParameters = {};
|
|
1730
1906
|
const headerParameters = {};
|
|
1731
|
-
if (this.configuration && this.configuration.
|
|
1732
|
-
|
|
1907
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1908
|
+
const token = this.configuration.accessToken;
|
|
1909
|
+
const tokenString = yield token("authentik", []);
|
|
1910
|
+
if (tokenString) {
|
|
1911
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1912
|
+
}
|
|
1733
1913
|
}
|
|
1734
1914
|
const response = yield this.request({
|
|
1735
1915
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1759,8 +1939,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1759
1939
|
}
|
|
1760
1940
|
const queryParameters = {};
|
|
1761
1941
|
const headerParameters = {};
|
|
1762
|
-
if (this.configuration && this.configuration.
|
|
1763
|
-
|
|
1942
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1943
|
+
const token = this.configuration.accessToken;
|
|
1944
|
+
const tokenString = yield token("authentik", []);
|
|
1945
|
+
if (tokenString) {
|
|
1946
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1947
|
+
}
|
|
1764
1948
|
}
|
|
1765
1949
|
const response = yield this.request({
|
|
1766
1950
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1790,8 +1974,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1790
1974
|
}
|
|
1791
1975
|
const queryParameters = {};
|
|
1792
1976
|
const headerParameters = {};
|
|
1793
|
-
if (this.configuration && this.configuration.
|
|
1794
|
-
|
|
1977
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1978
|
+
const token = this.configuration.accessToken;
|
|
1979
|
+
const tokenString = yield token("authentik", []);
|
|
1980
|
+
if (tokenString) {
|
|
1981
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1982
|
+
}
|
|
1795
1983
|
}
|
|
1796
1984
|
const response = yield this.request({
|
|
1797
1985
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1821,8 +2009,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1821
2009
|
}
|
|
1822
2010
|
const queryParameters = {};
|
|
1823
2011
|
const headerParameters = {};
|
|
1824
|
-
if (this.configuration && this.configuration.
|
|
1825
|
-
|
|
2012
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2013
|
+
const token = this.configuration.accessToken;
|
|
2014
|
+
const tokenString = yield token("authentik", []);
|
|
2015
|
+
if (tokenString) {
|
|
2016
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2017
|
+
}
|
|
1826
2018
|
}
|
|
1827
2019
|
const response = yield this.request({
|
|
1828
2020
|
path: `/sources/user_connections/all/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1853,8 +2045,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1853
2045
|
const queryParameters = {};
|
|
1854
2046
|
const headerParameters = {};
|
|
1855
2047
|
headerParameters['Content-Type'] = 'application/json';
|
|
1856
|
-
if (this.configuration && this.configuration.
|
|
1857
|
-
|
|
2048
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2049
|
+
const token = this.configuration.accessToken;
|
|
2050
|
+
const tokenString = yield token("authentik", []);
|
|
2051
|
+
if (tokenString) {
|
|
2052
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2053
|
+
}
|
|
1858
2054
|
}
|
|
1859
2055
|
const response = yield this.request({
|
|
1860
2056
|
path: `/sources/user_connections/oauth/`,
|
|
@@ -1885,8 +2081,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1885
2081
|
}
|
|
1886
2082
|
const queryParameters = {};
|
|
1887
2083
|
const headerParameters = {};
|
|
1888
|
-
if (this.configuration && this.configuration.
|
|
1889
|
-
|
|
2084
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2085
|
+
const token = this.configuration.accessToken;
|
|
2086
|
+
const tokenString = yield token("authentik", []);
|
|
2087
|
+
if (tokenString) {
|
|
2088
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2089
|
+
}
|
|
1890
2090
|
}
|
|
1891
2091
|
const response = yield this.request({
|
|
1892
2092
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1927,8 +2127,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1927
2127
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
|
1928
2128
|
}
|
|
1929
2129
|
const headerParameters = {};
|
|
1930
|
-
if (this.configuration && this.configuration.
|
|
1931
|
-
|
|
2130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2131
|
+
const token = this.configuration.accessToken;
|
|
2132
|
+
const tokenString = yield token("authentik", []);
|
|
2133
|
+
if (tokenString) {
|
|
2134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2135
|
+
}
|
|
1932
2136
|
}
|
|
1933
2137
|
const response = yield this.request({
|
|
1934
2138
|
path: `/sources/user_connections/oauth/`,
|
|
@@ -1959,8 +2163,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1959
2163
|
const queryParameters = {};
|
|
1960
2164
|
const headerParameters = {};
|
|
1961
2165
|
headerParameters['Content-Type'] = 'application/json';
|
|
1962
|
-
if (this.configuration && this.configuration.
|
|
1963
|
-
|
|
2166
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2167
|
+
const token = this.configuration.accessToken;
|
|
2168
|
+
const tokenString = yield token("authentik", []);
|
|
2169
|
+
if (tokenString) {
|
|
2170
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2171
|
+
}
|
|
1964
2172
|
}
|
|
1965
2173
|
const response = yield this.request({
|
|
1966
2174
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -1991,8 +2199,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1991
2199
|
}
|
|
1992
2200
|
const queryParameters = {};
|
|
1993
2201
|
const headerParameters = {};
|
|
1994
|
-
if (this.configuration && this.configuration.
|
|
1995
|
-
|
|
2202
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2203
|
+
const token = this.configuration.accessToken;
|
|
2204
|
+
const tokenString = yield token("authentik", []);
|
|
2205
|
+
if (tokenString) {
|
|
2206
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2207
|
+
}
|
|
1996
2208
|
}
|
|
1997
2209
|
const response = yield this.request({
|
|
1998
2210
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2026,8 +2238,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2026
2238
|
const queryParameters = {};
|
|
2027
2239
|
const headerParameters = {};
|
|
2028
2240
|
headerParameters['Content-Type'] = 'application/json';
|
|
2029
|
-
if (this.configuration && this.configuration.
|
|
2030
|
-
|
|
2241
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2242
|
+
const token = this.configuration.accessToken;
|
|
2243
|
+
const tokenString = yield token("authentik", []);
|
|
2244
|
+
if (tokenString) {
|
|
2245
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2246
|
+
}
|
|
2031
2247
|
}
|
|
2032
2248
|
const response = yield this.request({
|
|
2033
2249
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2058,8 +2274,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2058
2274
|
}
|
|
2059
2275
|
const queryParameters = {};
|
|
2060
2276
|
const headerParameters = {};
|
|
2061
|
-
if (this.configuration && this.configuration.
|
|
2062
|
-
|
|
2277
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2278
|
+
const token = this.configuration.accessToken;
|
|
2279
|
+
const tokenString = yield token("authentik", []);
|
|
2280
|
+
if (tokenString) {
|
|
2281
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2282
|
+
}
|
|
2063
2283
|
}
|
|
2064
2284
|
const response = yield this.request({
|
|
2065
2285
|
path: `/sources/user_connections/oauth/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2090,8 +2310,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2090
2310
|
const queryParameters = {};
|
|
2091
2311
|
const headerParameters = {};
|
|
2092
2312
|
headerParameters['Content-Type'] = 'application/json';
|
|
2093
|
-
if (this.configuration && this.configuration.
|
|
2094
|
-
|
|
2313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2314
|
+
const token = this.configuration.accessToken;
|
|
2315
|
+
const tokenString = yield token("authentik", []);
|
|
2316
|
+
if (tokenString) {
|
|
2317
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2318
|
+
}
|
|
2095
2319
|
}
|
|
2096
2320
|
const response = yield this.request({
|
|
2097
2321
|
path: `/sources/user_connections/plex/`,
|
|
@@ -2122,8 +2346,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2122
2346
|
}
|
|
2123
2347
|
const queryParameters = {};
|
|
2124
2348
|
const headerParameters = {};
|
|
2125
|
-
if (this.configuration && this.configuration.
|
|
2126
|
-
|
|
2349
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2350
|
+
const token = this.configuration.accessToken;
|
|
2351
|
+
const tokenString = yield token("authentik", []);
|
|
2352
|
+
if (tokenString) {
|
|
2353
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2354
|
+
}
|
|
2127
2355
|
}
|
|
2128
2356
|
const response = yield this.request({
|
|
2129
2357
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2164,8 +2392,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2164
2392
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
|
2165
2393
|
}
|
|
2166
2394
|
const headerParameters = {};
|
|
2167
|
-
if (this.configuration && this.configuration.
|
|
2168
|
-
|
|
2395
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2396
|
+
const token = this.configuration.accessToken;
|
|
2397
|
+
const tokenString = yield token("authentik", []);
|
|
2398
|
+
if (tokenString) {
|
|
2399
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2400
|
+
}
|
|
2169
2401
|
}
|
|
2170
2402
|
const response = yield this.request({
|
|
2171
2403
|
path: `/sources/user_connections/plex/`,
|
|
@@ -2196,8 +2428,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2196
2428
|
const queryParameters = {};
|
|
2197
2429
|
const headerParameters = {};
|
|
2198
2430
|
headerParameters['Content-Type'] = 'application/json';
|
|
2199
|
-
if (this.configuration && this.configuration.
|
|
2200
|
-
|
|
2431
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2432
|
+
const token = this.configuration.accessToken;
|
|
2433
|
+
const tokenString = yield token("authentik", []);
|
|
2434
|
+
if (tokenString) {
|
|
2435
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2436
|
+
}
|
|
2201
2437
|
}
|
|
2202
2438
|
const response = yield this.request({
|
|
2203
2439
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2228,8 +2464,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2228
2464
|
}
|
|
2229
2465
|
const queryParameters = {};
|
|
2230
2466
|
const headerParameters = {};
|
|
2231
|
-
if (this.configuration && this.configuration.
|
|
2232
|
-
|
|
2467
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2468
|
+
const token = this.configuration.accessToken;
|
|
2469
|
+
const tokenString = yield token("authentik", []);
|
|
2470
|
+
if (tokenString) {
|
|
2471
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2472
|
+
}
|
|
2233
2473
|
}
|
|
2234
2474
|
const response = yield this.request({
|
|
2235
2475
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2263,8 +2503,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2263
2503
|
const queryParameters = {};
|
|
2264
2504
|
const headerParameters = {};
|
|
2265
2505
|
headerParameters['Content-Type'] = 'application/json';
|
|
2266
|
-
if (this.configuration && this.configuration.
|
|
2267
|
-
|
|
2506
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2507
|
+
const token = this.configuration.accessToken;
|
|
2508
|
+
const tokenString = yield token("authentik", []);
|
|
2509
|
+
if (tokenString) {
|
|
2510
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2511
|
+
}
|
|
2268
2512
|
}
|
|
2269
2513
|
const response = yield this.request({
|
|
2270
2514
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2295,8 +2539,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2295
2539
|
}
|
|
2296
2540
|
const queryParameters = {};
|
|
2297
2541
|
const headerParameters = {};
|
|
2298
|
-
if (this.configuration && this.configuration.
|
|
2299
|
-
|
|
2542
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2543
|
+
const token = this.configuration.accessToken;
|
|
2544
|
+
const tokenString = yield token("authentik", []);
|
|
2545
|
+
if (tokenString) {
|
|
2546
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2547
|
+
}
|
|
2300
2548
|
}
|
|
2301
2549
|
const response = yield this.request({
|
|
2302
2550
|
path: `/sources/user_connections/plex/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2327,8 +2575,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2327
2575
|
const queryParameters = {};
|
|
2328
2576
|
const headerParameters = {};
|
|
2329
2577
|
headerParameters['Content-Type'] = 'application/json';
|
|
2330
|
-
if (this.configuration && this.configuration.
|
|
2331
|
-
|
|
2578
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2579
|
+
const token = this.configuration.accessToken;
|
|
2580
|
+
const tokenString = yield token("authentik", []);
|
|
2581
|
+
if (tokenString) {
|
|
2582
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2583
|
+
}
|
|
2332
2584
|
}
|
|
2333
2585
|
const response = yield this.request({
|
|
2334
2586
|
path: `/sources/user_connections/saml/`,
|
|
@@ -2359,8 +2611,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2359
2611
|
}
|
|
2360
2612
|
const queryParameters = {};
|
|
2361
2613
|
const headerParameters = {};
|
|
2362
|
-
if (this.configuration && this.configuration.
|
|
2363
|
-
|
|
2614
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2615
|
+
const token = this.configuration.accessToken;
|
|
2616
|
+
const tokenString = yield token("authentik", []);
|
|
2617
|
+
if (tokenString) {
|
|
2618
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2619
|
+
}
|
|
2364
2620
|
}
|
|
2365
2621
|
const response = yield this.request({
|
|
2366
2622
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2401,8 +2657,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2401
2657
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
|
2402
2658
|
}
|
|
2403
2659
|
const headerParameters = {};
|
|
2404
|
-
if (this.configuration && this.configuration.
|
|
2405
|
-
|
|
2660
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2661
|
+
const token = this.configuration.accessToken;
|
|
2662
|
+
const tokenString = yield token("authentik", []);
|
|
2663
|
+
if (tokenString) {
|
|
2664
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2665
|
+
}
|
|
2406
2666
|
}
|
|
2407
2667
|
const response = yield this.request({
|
|
2408
2668
|
path: `/sources/user_connections/saml/`,
|
|
@@ -2433,8 +2693,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2433
2693
|
const queryParameters = {};
|
|
2434
2694
|
const headerParameters = {};
|
|
2435
2695
|
headerParameters['Content-Type'] = 'application/json';
|
|
2436
|
-
if (this.configuration && this.configuration.
|
|
2437
|
-
|
|
2696
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2697
|
+
const token = this.configuration.accessToken;
|
|
2698
|
+
const tokenString = yield token("authentik", []);
|
|
2699
|
+
if (tokenString) {
|
|
2700
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2701
|
+
}
|
|
2438
2702
|
}
|
|
2439
2703
|
const response = yield this.request({
|
|
2440
2704
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2465,8 +2729,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2465
2729
|
}
|
|
2466
2730
|
const queryParameters = {};
|
|
2467
2731
|
const headerParameters = {};
|
|
2468
|
-
if (this.configuration && this.configuration.
|
|
2469
|
-
|
|
2732
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2733
|
+
const token = this.configuration.accessToken;
|
|
2734
|
+
const tokenString = yield token("authentik", []);
|
|
2735
|
+
if (tokenString) {
|
|
2736
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2737
|
+
}
|
|
2470
2738
|
}
|
|
2471
2739
|
const response = yield this.request({
|
|
2472
2740
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2500,8 +2768,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2500
2768
|
const queryParameters = {};
|
|
2501
2769
|
const headerParameters = {};
|
|
2502
2770
|
headerParameters['Content-Type'] = 'application/json';
|
|
2503
|
-
if (this.configuration && this.configuration.
|
|
2504
|
-
|
|
2771
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2772
|
+
const token = this.configuration.accessToken;
|
|
2773
|
+
const tokenString = yield token("authentik", []);
|
|
2774
|
+
if (tokenString) {
|
|
2775
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2776
|
+
}
|
|
2505
2777
|
}
|
|
2506
2778
|
const response = yield this.request({
|
|
2507
2779
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -2532,8 +2804,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
2532
2804
|
}
|
|
2533
2805
|
const queryParameters = {};
|
|
2534
2806
|
const headerParameters = {};
|
|
2535
|
-
if (this.configuration && this.configuration.
|
|
2536
|
-
|
|
2807
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2808
|
+
const token = this.configuration.accessToken;
|
|
2809
|
+
const tokenString = yield token("authentik", []);
|
|
2810
|
+
if (tokenString) {
|
|
2811
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2812
|
+
}
|
|
2537
2813
|
}
|
|
2538
2814
|
const response = yield this.request({
|
|
2539
2815
|
path: `/sources/user_connections/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|