@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/src/apis/CoreApi.ts
CHANGED
|
@@ -292,6 +292,7 @@ export interface CoreGroupsDestroyRequest {
|
|
|
292
292
|
|
|
293
293
|
export interface CoreGroupsListRequest {
|
|
294
294
|
attributes?: string;
|
|
295
|
+
includeUsers?: boolean;
|
|
295
296
|
isSuperuser?: boolean;
|
|
296
297
|
membersByPk?: Array<number>;
|
|
297
298
|
membersByUsername?: Array<string>;
|
|
@@ -416,6 +417,7 @@ export interface CoreUsersListRequest {
|
|
|
416
417
|
email?: string;
|
|
417
418
|
groupsByName?: Array<string>;
|
|
418
419
|
groupsByPk?: Array<string>;
|
|
420
|
+
includeGroups?: boolean;
|
|
419
421
|
isActive?: boolean;
|
|
420
422
|
isSuperuser?: boolean;
|
|
421
423
|
name?: string;
|
|
@@ -495,10 +497,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
495
497
|
|
|
496
498
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
497
499
|
|
|
498
|
-
if (this.configuration && this.configuration.
|
|
499
|
-
|
|
500
|
-
|
|
500
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
501
|
+
const token = this.configuration.accessToken;
|
|
502
|
+
const tokenString = await token("authentik", []);
|
|
501
503
|
|
|
504
|
+
if (tokenString) {
|
|
505
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
502
508
|
const response = await this.request({
|
|
503
509
|
path: `/core/applications/{slug}/check_access/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
504
510
|
method: 'GET',
|
|
@@ -531,10 +537,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
531
537
|
|
|
532
538
|
headerParameters['Content-Type'] = 'application/json';
|
|
533
539
|
|
|
534
|
-
if (this.configuration && this.configuration.
|
|
535
|
-
|
|
536
|
-
|
|
540
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
541
|
+
const token = this.configuration.accessToken;
|
|
542
|
+
const tokenString = await token("authentik", []);
|
|
537
543
|
|
|
544
|
+
if (tokenString) {
|
|
545
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
538
548
|
const response = await this.request({
|
|
539
549
|
path: `/core/applications/`,
|
|
540
550
|
method: 'POST',
|
|
@@ -566,10 +576,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
566
576
|
|
|
567
577
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
568
578
|
|
|
569
|
-
if (this.configuration && this.configuration.
|
|
570
|
-
|
|
571
|
-
|
|
579
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
580
|
+
const token = this.configuration.accessToken;
|
|
581
|
+
const tokenString = await token("authentik", []);
|
|
572
582
|
|
|
583
|
+
if (tokenString) {
|
|
584
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
573
587
|
const response = await this.request({
|
|
574
588
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
575
589
|
method: 'DELETE',
|
|
@@ -643,10 +657,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
643
657
|
|
|
644
658
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
645
659
|
|
|
646
|
-
if (this.configuration && this.configuration.
|
|
647
|
-
|
|
648
|
-
|
|
660
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
661
|
+
const token = this.configuration.accessToken;
|
|
662
|
+
const tokenString = await token("authentik", []);
|
|
649
663
|
|
|
664
|
+
if (tokenString) {
|
|
665
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
650
668
|
const response = await this.request({
|
|
651
669
|
path: `/core/applications/`,
|
|
652
670
|
method: 'GET',
|
|
@@ -677,10 +695,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
677
695
|
|
|
678
696
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
679
697
|
|
|
680
|
-
if (this.configuration && this.configuration.
|
|
681
|
-
|
|
682
|
-
|
|
698
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
699
|
+
const token = this.configuration.accessToken;
|
|
700
|
+
const tokenString = await token("authentik", []);
|
|
683
701
|
|
|
702
|
+
if (tokenString) {
|
|
703
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
684
706
|
const response = await this.request({
|
|
685
707
|
path: `/core/applications/{slug}/metrics/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
686
708
|
method: 'GET',
|
|
@@ -713,10 +735,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
713
735
|
|
|
714
736
|
headerParameters['Content-Type'] = 'application/json';
|
|
715
737
|
|
|
716
|
-
if (this.configuration && this.configuration.
|
|
717
|
-
|
|
718
|
-
|
|
738
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
739
|
+
const token = this.configuration.accessToken;
|
|
740
|
+
const tokenString = await token("authentik", []);
|
|
719
741
|
|
|
742
|
+
if (tokenString) {
|
|
743
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
720
746
|
const response = await this.request({
|
|
721
747
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
722
748
|
method: 'PATCH',
|
|
@@ -748,10 +774,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
748
774
|
|
|
749
775
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
750
776
|
|
|
751
|
-
if (this.configuration && this.configuration.
|
|
752
|
-
|
|
753
|
-
|
|
777
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
778
|
+
const token = this.configuration.accessToken;
|
|
779
|
+
const tokenString = await token("authentik", []);
|
|
754
780
|
|
|
781
|
+
if (tokenString) {
|
|
782
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
755
785
|
const response = await this.request({
|
|
756
786
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
757
787
|
method: 'GET',
|
|
@@ -782,10 +812,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
782
812
|
|
|
783
813
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
784
814
|
|
|
785
|
-
if (this.configuration && this.configuration.
|
|
786
|
-
|
|
787
|
-
|
|
815
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
816
|
+
const token = this.configuration.accessToken;
|
|
817
|
+
const tokenString = await token("authentik", []);
|
|
788
818
|
|
|
819
|
+
if (tokenString) {
|
|
820
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
789
823
|
const consumes: runtime.Consume[] = [
|
|
790
824
|
{ contentType: 'multipart/form-data' },
|
|
791
825
|
];
|
|
@@ -846,10 +880,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
846
880
|
|
|
847
881
|
headerParameters['Content-Type'] = 'application/json';
|
|
848
882
|
|
|
849
|
-
if (this.configuration && this.configuration.
|
|
850
|
-
|
|
851
|
-
|
|
883
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
884
|
+
const token = this.configuration.accessToken;
|
|
885
|
+
const tokenString = await token("authentik", []);
|
|
852
886
|
|
|
887
|
+
if (tokenString) {
|
|
888
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
853
891
|
const response = await this.request({
|
|
854
892
|
path: `/core/applications/{slug}/set_icon_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
855
893
|
method: 'POST',
|
|
@@ -886,10 +924,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
886
924
|
|
|
887
925
|
headerParameters['Content-Type'] = 'application/json';
|
|
888
926
|
|
|
889
|
-
if (this.configuration && this.configuration.
|
|
890
|
-
|
|
891
|
-
|
|
927
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
928
|
+
const token = this.configuration.accessToken;
|
|
929
|
+
const tokenString = await token("authentik", []);
|
|
892
930
|
|
|
931
|
+
if (tokenString) {
|
|
932
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
893
935
|
const response = await this.request({
|
|
894
936
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
895
937
|
method: 'PUT',
|
|
@@ -921,10 +963,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
921
963
|
|
|
922
964
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
923
965
|
|
|
924
|
-
if (this.configuration && this.configuration.
|
|
925
|
-
|
|
926
|
-
|
|
966
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
967
|
+
const token = this.configuration.accessToken;
|
|
968
|
+
const tokenString = await token("authentik", []);
|
|
927
969
|
|
|
970
|
+
if (tokenString) {
|
|
971
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
928
974
|
const response = await this.request({
|
|
929
975
|
path: `/core/applications/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
|
930
976
|
method: 'GET',
|
|
@@ -955,10 +1001,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
955
1001
|
|
|
956
1002
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
957
1003
|
|
|
958
|
-
if (this.configuration && this.configuration.
|
|
959
|
-
|
|
960
|
-
|
|
1004
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1005
|
+
const token = this.configuration.accessToken;
|
|
1006
|
+
const tokenString = await token("authentik", []);
|
|
961
1007
|
|
|
1008
|
+
if (tokenString) {
|
|
1009
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
962
1012
|
const response = await this.request({
|
|
963
1013
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
964
1014
|
method: 'DELETE',
|
|
@@ -1012,10 +1062,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1012
1062
|
|
|
1013
1063
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1014
1064
|
|
|
1015
|
-
if (this.configuration && this.configuration.
|
|
1016
|
-
|
|
1017
|
-
|
|
1065
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1066
|
+
const token = this.configuration.accessToken;
|
|
1067
|
+
const tokenString = await token("authentik", []);
|
|
1018
1068
|
|
|
1069
|
+
if (tokenString) {
|
|
1070
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1019
1073
|
const response = await this.request({
|
|
1020
1074
|
path: `/core/authenticated_sessions/`,
|
|
1021
1075
|
method: 'GET',
|
|
@@ -1046,10 +1100,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1046
1100
|
|
|
1047
1101
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1048
1102
|
|
|
1049
|
-
if (this.configuration && this.configuration.
|
|
1050
|
-
|
|
1051
|
-
|
|
1103
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1104
|
+
const token = this.configuration.accessToken;
|
|
1105
|
+
const tokenString = await token("authentik", []);
|
|
1052
1106
|
|
|
1107
|
+
if (tokenString) {
|
|
1108
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1053
1111
|
const response = await this.request({
|
|
1054
1112
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1055
1113
|
method: 'GET',
|
|
@@ -1080,10 +1138,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1080
1138
|
|
|
1081
1139
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1082
1140
|
|
|
1083
|
-
if (this.configuration && this.configuration.
|
|
1084
|
-
|
|
1085
|
-
|
|
1141
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1142
|
+
const token = this.configuration.accessToken;
|
|
1143
|
+
const tokenString = await token("authentik", []);
|
|
1086
1144
|
|
|
1145
|
+
if (tokenString) {
|
|
1146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1087
1149
|
const response = await this.request({
|
|
1088
1150
|
path: `/core/authenticated_sessions/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
1089
1151
|
method: 'GET',
|
|
@@ -1116,10 +1178,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1116
1178
|
|
|
1117
1179
|
headerParameters['Content-Type'] = 'application/json';
|
|
1118
1180
|
|
|
1119
|
-
if (this.configuration && this.configuration.
|
|
1120
|
-
|
|
1121
|
-
|
|
1181
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1182
|
+
const token = this.configuration.accessToken;
|
|
1183
|
+
const tokenString = await token("authentik", []);
|
|
1122
1184
|
|
|
1185
|
+
if (tokenString) {
|
|
1186
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1123
1189
|
const response = await this.request({
|
|
1124
1190
|
path: `/core/brands/`,
|
|
1125
1191
|
method: 'POST',
|
|
@@ -1147,10 +1213,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1147
1213
|
|
|
1148
1214
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1149
1215
|
|
|
1150
|
-
if (this.configuration && this.configuration.
|
|
1151
|
-
|
|
1152
|
-
|
|
1216
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1217
|
+
const token = this.configuration.accessToken;
|
|
1218
|
+
const tokenString = await token("authentik", []);
|
|
1153
1219
|
|
|
1220
|
+
if (tokenString) {
|
|
1221
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1154
1224
|
const response = await this.request({
|
|
1155
1225
|
path: `/core/brands/current/`,
|
|
1156
1226
|
method: 'GET',
|
|
@@ -1181,10 +1251,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1181
1251
|
|
|
1182
1252
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1183
1253
|
|
|
1184
|
-
if (this.configuration && this.configuration.
|
|
1185
|
-
|
|
1186
|
-
|
|
1254
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1255
|
+
const token = this.configuration.accessToken;
|
|
1256
|
+
const tokenString = await token("authentik", []);
|
|
1187
1257
|
|
|
1258
|
+
if (tokenString) {
|
|
1259
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1188
1262
|
const response = await this.request({
|
|
1189
1263
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
1190
1264
|
method: 'DELETE',
|
|
@@ -1278,10 +1352,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1278
1352
|
|
|
1279
1353
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1280
1354
|
|
|
1281
|
-
if (this.configuration && this.configuration.
|
|
1282
|
-
|
|
1283
|
-
|
|
1355
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1356
|
+
const token = this.configuration.accessToken;
|
|
1357
|
+
const tokenString = await token("authentik", []);
|
|
1284
1358
|
|
|
1359
|
+
if (tokenString) {
|
|
1360
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1285
1363
|
const response = await this.request({
|
|
1286
1364
|
path: `/core/brands/`,
|
|
1287
1365
|
method: 'GET',
|
|
@@ -1314,10 +1392,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1314
1392
|
|
|
1315
1393
|
headerParameters['Content-Type'] = 'application/json';
|
|
1316
1394
|
|
|
1317
|
-
if (this.configuration && this.configuration.
|
|
1318
|
-
|
|
1319
|
-
|
|
1395
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1396
|
+
const token = this.configuration.accessToken;
|
|
1397
|
+
const tokenString = await token("authentik", []);
|
|
1320
1398
|
|
|
1399
|
+
if (tokenString) {
|
|
1400
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1321
1403
|
const response = await this.request({
|
|
1322
1404
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
1323
1405
|
method: 'PATCH',
|
|
@@ -1349,10 +1431,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1349
1431
|
|
|
1350
1432
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1351
1433
|
|
|
1352
|
-
if (this.configuration && this.configuration.
|
|
1353
|
-
|
|
1354
|
-
|
|
1434
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1435
|
+
const token = this.configuration.accessToken;
|
|
1436
|
+
const tokenString = await token("authentik", []);
|
|
1355
1437
|
|
|
1438
|
+
if (tokenString) {
|
|
1439
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1356
1442
|
const response = await this.request({
|
|
1357
1443
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
1358
1444
|
method: 'GET',
|
|
@@ -1389,10 +1475,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1389
1475
|
|
|
1390
1476
|
headerParameters['Content-Type'] = 'application/json';
|
|
1391
1477
|
|
|
1392
|
-
if (this.configuration && this.configuration.
|
|
1393
|
-
|
|
1394
|
-
|
|
1478
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1479
|
+
const token = this.configuration.accessToken;
|
|
1480
|
+
const tokenString = await token("authentik", []);
|
|
1395
1481
|
|
|
1482
|
+
if (tokenString) {
|
|
1483
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1396
1486
|
const response = await this.request({
|
|
1397
1487
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
1398
1488
|
method: 'PUT',
|
|
@@ -1424,10 +1514,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1424
1514
|
|
|
1425
1515
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1426
1516
|
|
|
1427
|
-
if (this.configuration && this.configuration.
|
|
1428
|
-
|
|
1429
|
-
|
|
1517
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1518
|
+
const token = this.configuration.accessToken;
|
|
1519
|
+
const tokenString = await token("authentik", []);
|
|
1430
1520
|
|
|
1521
|
+
if (tokenString) {
|
|
1522
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1431
1525
|
const response = await this.request({
|
|
1432
1526
|
path: `/core/brands/{brand_uuid}/used_by/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
|
1433
1527
|
method: 'GET',
|
|
@@ -1464,10 +1558,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1464
1558
|
|
|
1465
1559
|
headerParameters['Content-Type'] = 'application/json';
|
|
1466
1560
|
|
|
1467
|
-
if (this.configuration && this.configuration.
|
|
1468
|
-
|
|
1469
|
-
|
|
1561
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1562
|
+
const token = this.configuration.accessToken;
|
|
1563
|
+
const tokenString = await token("authentik", []);
|
|
1470
1564
|
|
|
1565
|
+
if (tokenString) {
|
|
1566
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1471
1569
|
const response = await this.request({
|
|
1472
1570
|
path: `/core/groups/{group_uuid}/add_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
1473
1571
|
method: 'POST',
|
|
@@ -1500,10 +1598,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1500
1598
|
|
|
1501
1599
|
headerParameters['Content-Type'] = 'application/json';
|
|
1502
1600
|
|
|
1503
|
-
if (this.configuration && this.configuration.
|
|
1504
|
-
|
|
1505
|
-
|
|
1601
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1602
|
+
const token = this.configuration.accessToken;
|
|
1603
|
+
const tokenString = await token("authentik", []);
|
|
1506
1604
|
|
|
1605
|
+
if (tokenString) {
|
|
1606
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1507
1609
|
const response = await this.request({
|
|
1508
1610
|
path: `/core/groups/`,
|
|
1509
1611
|
method: 'POST',
|
|
@@ -1535,10 +1637,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1535
1637
|
|
|
1536
1638
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1537
1639
|
|
|
1538
|
-
if (this.configuration && this.configuration.
|
|
1539
|
-
|
|
1540
|
-
|
|
1640
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1641
|
+
const token = this.configuration.accessToken;
|
|
1642
|
+
const tokenString = await token("authentik", []);
|
|
1541
1643
|
|
|
1644
|
+
if (tokenString) {
|
|
1645
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1542
1648
|
const response = await this.request({
|
|
1543
1649
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
1544
1650
|
method: 'DELETE',
|
|
@@ -1566,6 +1672,10 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1566
1672
|
queryParameters['attributes'] = requestParameters.attributes;
|
|
1567
1673
|
}
|
|
1568
1674
|
|
|
1675
|
+
if (requestParameters.includeUsers !== undefined) {
|
|
1676
|
+
queryParameters['include_users'] = requestParameters.includeUsers;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1569
1679
|
if (requestParameters.isSuperuser !== undefined) {
|
|
1570
1680
|
queryParameters['is_superuser'] = requestParameters.isSuperuser;
|
|
1571
1681
|
}
|
|
@@ -1600,10 +1710,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1600
1710
|
|
|
1601
1711
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1602
1712
|
|
|
1603
|
-
if (this.configuration && this.configuration.
|
|
1604
|
-
|
|
1605
|
-
|
|
1713
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1714
|
+
const token = this.configuration.accessToken;
|
|
1715
|
+
const tokenString = await token("authentik", []);
|
|
1606
1716
|
|
|
1717
|
+
if (tokenString) {
|
|
1718
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1607
1721
|
const response = await this.request({
|
|
1608
1722
|
path: `/core/groups/`,
|
|
1609
1723
|
method: 'GET',
|
|
@@ -1636,10 +1750,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1636
1750
|
|
|
1637
1751
|
headerParameters['Content-Type'] = 'application/json';
|
|
1638
1752
|
|
|
1639
|
-
if (this.configuration && this.configuration.
|
|
1640
|
-
|
|
1641
|
-
|
|
1753
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1754
|
+
const token = this.configuration.accessToken;
|
|
1755
|
+
const tokenString = await token("authentik", []);
|
|
1642
1756
|
|
|
1757
|
+
if (tokenString) {
|
|
1758
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1643
1761
|
const response = await this.request({
|
|
1644
1762
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
1645
1763
|
method: 'PATCH',
|
|
@@ -1677,10 +1795,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1677
1795
|
|
|
1678
1796
|
headerParameters['Content-Type'] = 'application/json';
|
|
1679
1797
|
|
|
1680
|
-
if (this.configuration && this.configuration.
|
|
1681
|
-
|
|
1682
|
-
|
|
1798
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1799
|
+
const token = this.configuration.accessToken;
|
|
1800
|
+
const tokenString = await token("authentik", []);
|
|
1683
1801
|
|
|
1802
|
+
if (tokenString) {
|
|
1803
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1684
1806
|
const response = await this.request({
|
|
1685
1807
|
path: `/core/groups/{group_uuid}/remove_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
1686
1808
|
method: 'POST',
|
|
@@ -1711,10 +1833,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1711
1833
|
|
|
1712
1834
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1713
1835
|
|
|
1714
|
-
if (this.configuration && this.configuration.
|
|
1715
|
-
|
|
1716
|
-
|
|
1836
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1837
|
+
const token = this.configuration.accessToken;
|
|
1838
|
+
const tokenString = await token("authentik", []);
|
|
1717
1839
|
|
|
1840
|
+
if (tokenString) {
|
|
1841
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1718
1844
|
const response = await this.request({
|
|
1719
1845
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
1720
1846
|
method: 'GET',
|
|
@@ -1751,10 +1877,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1751
1877
|
|
|
1752
1878
|
headerParameters['Content-Type'] = 'application/json';
|
|
1753
1879
|
|
|
1754
|
-
if (this.configuration && this.configuration.
|
|
1755
|
-
|
|
1756
|
-
|
|
1880
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1881
|
+
const token = this.configuration.accessToken;
|
|
1882
|
+
const tokenString = await token("authentik", []);
|
|
1757
1883
|
|
|
1884
|
+
if (tokenString) {
|
|
1885
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1758
1888
|
const response = await this.request({
|
|
1759
1889
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
1760
1890
|
method: 'PUT',
|
|
@@ -1786,10 +1916,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1786
1916
|
|
|
1787
1917
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1788
1918
|
|
|
1789
|
-
if (this.configuration && this.configuration.
|
|
1790
|
-
|
|
1791
|
-
|
|
1919
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1920
|
+
const token = this.configuration.accessToken;
|
|
1921
|
+
const tokenString = await token("authentik", []);
|
|
1792
1922
|
|
|
1923
|
+
if (tokenString) {
|
|
1924
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1793
1927
|
const response = await this.request({
|
|
1794
1928
|
path: `/core/groups/{group_uuid}/used_by/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
|
1795
1929
|
method: 'GET',
|
|
@@ -1822,10 +1956,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1822
1956
|
|
|
1823
1957
|
headerParameters['Content-Type'] = 'application/json';
|
|
1824
1958
|
|
|
1825
|
-
if (this.configuration && this.configuration.
|
|
1826
|
-
|
|
1827
|
-
|
|
1959
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1960
|
+
const token = this.configuration.accessToken;
|
|
1961
|
+
const tokenString = await token("authentik", []);
|
|
1828
1962
|
|
|
1963
|
+
if (tokenString) {
|
|
1964
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1829
1967
|
const response = await this.request({
|
|
1830
1968
|
path: `/core/tokens/`,
|
|
1831
1969
|
method: 'POST',
|
|
@@ -1857,10 +1995,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1857
1995
|
|
|
1858
1996
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1859
1997
|
|
|
1860
|
-
if (this.configuration && this.configuration.
|
|
1861
|
-
|
|
1862
|
-
|
|
1998
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1999
|
+
const token = this.configuration.accessToken;
|
|
2000
|
+
const tokenString = await token("authentik", []);
|
|
1863
2001
|
|
|
2002
|
+
if (tokenString) {
|
|
2003
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
1864
2006
|
const response = await this.request({
|
|
1865
2007
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
1866
2008
|
method: 'DELETE',
|
|
@@ -1930,10 +2072,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1930
2072
|
|
|
1931
2073
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1932
2074
|
|
|
1933
|
-
if (this.configuration && this.configuration.
|
|
1934
|
-
|
|
1935
|
-
|
|
2075
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2076
|
+
const token = this.configuration.accessToken;
|
|
2077
|
+
const tokenString = await token("authentik", []);
|
|
1936
2078
|
|
|
2079
|
+
if (tokenString) {
|
|
2080
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
1937
2083
|
const response = await this.request({
|
|
1938
2084
|
path: `/core/tokens/`,
|
|
1939
2085
|
method: 'GET',
|
|
@@ -1966,10 +2112,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1966
2112
|
|
|
1967
2113
|
headerParameters['Content-Type'] = 'application/json';
|
|
1968
2114
|
|
|
1969
|
-
if (this.configuration && this.configuration.
|
|
1970
|
-
|
|
1971
|
-
|
|
2115
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2116
|
+
const token = this.configuration.accessToken;
|
|
2117
|
+
const tokenString = await token("authentik", []);
|
|
1972
2118
|
|
|
2119
|
+
if (tokenString) {
|
|
2120
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
1973
2123
|
const response = await this.request({
|
|
1974
2124
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
1975
2125
|
method: 'PATCH',
|
|
@@ -2001,10 +2151,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2001
2151
|
|
|
2002
2152
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2003
2153
|
|
|
2004
|
-
if (this.configuration && this.configuration.
|
|
2005
|
-
|
|
2006
|
-
|
|
2154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2155
|
+
const token = this.configuration.accessToken;
|
|
2156
|
+
const tokenString = await token("authentik", []);
|
|
2007
2157
|
|
|
2158
|
+
if (tokenString) {
|
|
2159
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2008
2162
|
const response = await this.request({
|
|
2009
2163
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
2010
2164
|
method: 'GET',
|
|
@@ -2041,10 +2195,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2041
2195
|
|
|
2042
2196
|
headerParameters['Content-Type'] = 'application/json';
|
|
2043
2197
|
|
|
2044
|
-
if (this.configuration && this.configuration.
|
|
2045
|
-
|
|
2046
|
-
|
|
2198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2199
|
+
const token = this.configuration.accessToken;
|
|
2200
|
+
const tokenString = await token("authentik", []);
|
|
2047
2201
|
|
|
2202
|
+
if (tokenString) {
|
|
2203
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2048
2206
|
const response = await this.request({
|
|
2049
2207
|
path: `/core/tokens/{identifier}/set_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
2050
2208
|
method: 'POST',
|
|
@@ -2081,10 +2239,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2081
2239
|
|
|
2082
2240
|
headerParameters['Content-Type'] = 'application/json';
|
|
2083
2241
|
|
|
2084
|
-
if (this.configuration && this.configuration.
|
|
2085
|
-
|
|
2086
|
-
|
|
2242
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2243
|
+
const token = this.configuration.accessToken;
|
|
2244
|
+
const tokenString = await token("authentik", []);
|
|
2087
2245
|
|
|
2246
|
+
if (tokenString) {
|
|
2247
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2088
2250
|
const response = await this.request({
|
|
2089
2251
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
2090
2252
|
method: 'PUT',
|
|
@@ -2116,10 +2278,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2116
2278
|
|
|
2117
2279
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2118
2280
|
|
|
2119
|
-
if (this.configuration && this.configuration.
|
|
2120
|
-
|
|
2121
|
-
|
|
2281
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2282
|
+
const token = this.configuration.accessToken;
|
|
2283
|
+
const tokenString = await token("authentik", []);
|
|
2122
2284
|
|
|
2285
|
+
if (tokenString) {
|
|
2286
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2123
2289
|
const response = await this.request({
|
|
2124
2290
|
path: `/core/tokens/{identifier}/used_by/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
2125
2291
|
method: 'GET',
|
|
@@ -2150,10 +2316,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2150
2316
|
|
|
2151
2317
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2152
2318
|
|
|
2153
|
-
if (this.configuration && this.configuration.
|
|
2154
|
-
|
|
2155
|
-
|
|
2319
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2320
|
+
const token = this.configuration.accessToken;
|
|
2321
|
+
const tokenString = await token("authentik", []);
|
|
2156
2322
|
|
|
2323
|
+
if (tokenString) {
|
|
2324
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2157
2327
|
const response = await this.request({
|
|
2158
2328
|
path: `/core/tokens/{identifier}/view_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
|
2159
2329
|
method: 'GET',
|
|
@@ -2186,10 +2356,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2186
2356
|
|
|
2187
2357
|
headerParameters['Content-Type'] = 'application/json';
|
|
2188
2358
|
|
|
2189
|
-
if (this.configuration && this.configuration.
|
|
2190
|
-
|
|
2191
|
-
|
|
2359
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2360
|
+
const token = this.configuration.accessToken;
|
|
2361
|
+
const tokenString = await token("authentik", []);
|
|
2192
2362
|
|
|
2363
|
+
if (tokenString) {
|
|
2364
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2193
2367
|
const response = await this.request({
|
|
2194
2368
|
path: `/core/transactional/applications/`,
|
|
2195
2369
|
method: 'PUT',
|
|
@@ -2221,10 +2395,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2221
2395
|
|
|
2222
2396
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2223
2397
|
|
|
2224
|
-
if (this.configuration && this.configuration.
|
|
2225
|
-
|
|
2226
|
-
|
|
2398
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2399
|
+
const token = this.configuration.accessToken;
|
|
2400
|
+
const tokenString = await token("authentik", []);
|
|
2227
2401
|
|
|
2402
|
+
if (tokenString) {
|
|
2403
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2228
2406
|
const response = await this.request({
|
|
2229
2407
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2230
2408
|
method: 'DELETE',
|
|
@@ -2274,10 +2452,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2274
2452
|
|
|
2275
2453
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2276
2454
|
|
|
2277
|
-
if (this.configuration && this.configuration.
|
|
2278
|
-
|
|
2279
|
-
|
|
2455
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2456
|
+
const token = this.configuration.accessToken;
|
|
2457
|
+
const tokenString = await token("authentik", []);
|
|
2280
2458
|
|
|
2459
|
+
if (tokenString) {
|
|
2460
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2281
2463
|
const response = await this.request({
|
|
2282
2464
|
path: `/core/user_consent/`,
|
|
2283
2465
|
method: 'GET',
|
|
@@ -2308,10 +2490,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2308
2490
|
|
|
2309
2491
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2310
2492
|
|
|
2311
|
-
if (this.configuration && this.configuration.
|
|
2312
|
-
|
|
2313
|
-
|
|
2493
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2494
|
+
const token = this.configuration.accessToken;
|
|
2495
|
+
const tokenString = await token("authentik", []);
|
|
2314
2496
|
|
|
2497
|
+
if (tokenString) {
|
|
2498
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2315
2501
|
const response = await this.request({
|
|
2316
2502
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2317
2503
|
method: 'GET',
|
|
@@ -2342,10 +2528,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2342
2528
|
|
|
2343
2529
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2344
2530
|
|
|
2345
|
-
if (this.configuration && this.configuration.
|
|
2346
|
-
|
|
2347
|
-
|
|
2531
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2532
|
+
const token = this.configuration.accessToken;
|
|
2533
|
+
const tokenString = await token("authentik", []);
|
|
2348
2534
|
|
|
2535
|
+
if (tokenString) {
|
|
2536
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2349
2539
|
const response = await this.request({
|
|
2350
2540
|
path: `/core/user_consent/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2351
2541
|
method: 'GET',
|
|
@@ -2378,10 +2568,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2378
2568
|
|
|
2379
2569
|
headerParameters['Content-Type'] = 'application/json';
|
|
2380
2570
|
|
|
2381
|
-
if (this.configuration && this.configuration.
|
|
2382
|
-
|
|
2383
|
-
|
|
2571
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2572
|
+
const token = this.configuration.accessToken;
|
|
2573
|
+
const tokenString = await token("authentik", []);
|
|
2384
2574
|
|
|
2575
|
+
if (tokenString) {
|
|
2576
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2385
2579
|
const response = await this.request({
|
|
2386
2580
|
path: `/core/users/`,
|
|
2387
2581
|
method: 'POST',
|
|
@@ -2413,10 +2607,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2413
2607
|
|
|
2414
2608
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2415
2609
|
|
|
2416
|
-
if (this.configuration && this.configuration.
|
|
2417
|
-
|
|
2418
|
-
|
|
2610
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2611
|
+
const token = this.configuration.accessToken;
|
|
2612
|
+
const tokenString = await token("authentik", []);
|
|
2419
2613
|
|
|
2614
|
+
if (tokenString) {
|
|
2615
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2420
2618
|
const response = await this.request({
|
|
2421
2619
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2422
2620
|
method: 'DELETE',
|
|
@@ -2446,10 +2644,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2446
2644
|
|
|
2447
2645
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2448
2646
|
|
|
2449
|
-
if (this.configuration && this.configuration.
|
|
2450
|
-
|
|
2451
|
-
|
|
2647
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2648
|
+
const token = this.configuration.accessToken;
|
|
2649
|
+
const tokenString = await token("authentik", []);
|
|
2452
2650
|
|
|
2651
|
+
if (tokenString) {
|
|
2652
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2453
2655
|
const response = await this.request({
|
|
2454
2656
|
path: `/core/users/{id}/impersonate/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2455
2657
|
method: 'POST',
|
|
@@ -2475,10 +2677,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2475
2677
|
|
|
2476
2678
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2477
2679
|
|
|
2478
|
-
if (this.configuration && this.configuration.
|
|
2479
|
-
|
|
2480
|
-
|
|
2680
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2681
|
+
const token = this.configuration.accessToken;
|
|
2682
|
+
const tokenString = await token("authentik", []);
|
|
2481
2683
|
|
|
2684
|
+
if (tokenString) {
|
|
2685
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2482
2688
|
const response = await this.request({
|
|
2483
2689
|
path: `/core/users/impersonate_end/`,
|
|
2484
2690
|
method: 'GET',
|
|
@@ -2518,6 +2724,10 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2518
2724
|
queryParameters['groups_by_pk'] = requestParameters.groupsByPk;
|
|
2519
2725
|
}
|
|
2520
2726
|
|
|
2727
|
+
if (requestParameters.includeGroups !== undefined) {
|
|
2728
|
+
queryParameters['include_groups'] = requestParameters.includeGroups;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2521
2731
|
if (requestParameters.isActive !== undefined) {
|
|
2522
2732
|
queryParameters['is_active'] = requestParameters.isActive;
|
|
2523
2733
|
}
|
|
@@ -2568,10 +2778,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2568
2778
|
|
|
2569
2779
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2570
2780
|
|
|
2571
|
-
if (this.configuration && this.configuration.
|
|
2572
|
-
|
|
2573
|
-
|
|
2781
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2782
|
+
const token = this.configuration.accessToken;
|
|
2783
|
+
const tokenString = await token("authentik", []);
|
|
2574
2784
|
|
|
2785
|
+
if (tokenString) {
|
|
2786
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2575
2789
|
const response = await this.request({
|
|
2576
2790
|
path: `/core/users/`,
|
|
2577
2791
|
method: 'GET',
|
|
@@ -2598,10 +2812,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2598
2812
|
|
|
2599
2813
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2600
2814
|
|
|
2601
|
-
if (this.configuration && this.configuration.
|
|
2602
|
-
|
|
2603
|
-
|
|
2815
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2816
|
+
const token = this.configuration.accessToken;
|
|
2817
|
+
const tokenString = await token("authentik", []);
|
|
2604
2818
|
|
|
2819
|
+
if (tokenString) {
|
|
2820
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2605
2823
|
const response = await this.request({
|
|
2606
2824
|
path: `/core/users/me/`,
|
|
2607
2825
|
method: 'GET',
|
|
@@ -2632,10 +2850,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2632
2850
|
|
|
2633
2851
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2634
2852
|
|
|
2635
|
-
if (this.configuration && this.configuration.
|
|
2636
|
-
|
|
2637
|
-
|
|
2853
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2854
|
+
const token = this.configuration.accessToken;
|
|
2855
|
+
const tokenString = await token("authentik", []);
|
|
2638
2856
|
|
|
2857
|
+
if (tokenString) {
|
|
2858
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2639
2861
|
const response = await this.request({
|
|
2640
2862
|
path: `/core/users/{id}/metrics/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2641
2863
|
method: 'GET',
|
|
@@ -2668,10 +2890,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2668
2890
|
|
|
2669
2891
|
headerParameters['Content-Type'] = 'application/json';
|
|
2670
2892
|
|
|
2671
|
-
if (this.configuration && this.configuration.
|
|
2672
|
-
|
|
2673
|
-
|
|
2893
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2894
|
+
const token = this.configuration.accessToken;
|
|
2895
|
+
const tokenString = await token("authentik", []);
|
|
2674
2896
|
|
|
2897
|
+
if (tokenString) {
|
|
2898
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2675
2901
|
const response = await this.request({
|
|
2676
2902
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2677
2903
|
method: 'PATCH',
|
|
@@ -2703,10 +2929,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2703
2929
|
|
|
2704
2930
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2705
2931
|
|
|
2706
|
-
if (this.configuration && this.configuration.
|
|
2707
|
-
|
|
2708
|
-
|
|
2932
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2933
|
+
const token = this.configuration.accessToken;
|
|
2934
|
+
const tokenString = await token("authentik", []);
|
|
2709
2935
|
|
|
2936
|
+
if (tokenString) {
|
|
2937
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2710
2940
|
const response = await this.request({
|
|
2711
2941
|
path: `/core/users/paths/`,
|
|
2712
2942
|
method: 'GET',
|
|
@@ -2737,10 +2967,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2737
2967
|
|
|
2738
2968
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2739
2969
|
|
|
2740
|
-
if (this.configuration && this.configuration.
|
|
2741
|
-
|
|
2742
|
-
|
|
2970
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2971
|
+
const token = this.configuration.accessToken;
|
|
2972
|
+
const tokenString = await token("authentik", []);
|
|
2743
2973
|
|
|
2974
|
+
if (tokenString) {
|
|
2975
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2744
2978
|
const response = await this.request({
|
|
2745
2979
|
path: `/core/users/{id}/recovery/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2746
2980
|
method: 'POST',
|
|
@@ -2779,10 +3013,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2779
3013
|
|
|
2780
3014
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2781
3015
|
|
|
2782
|
-
if (this.configuration && this.configuration.
|
|
2783
|
-
|
|
2784
|
-
|
|
3016
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3017
|
+
const token = this.configuration.accessToken;
|
|
3018
|
+
const tokenString = await token("authentik", []);
|
|
2785
3019
|
|
|
3020
|
+
if (tokenString) {
|
|
3021
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
2786
3024
|
const response = await this.request({
|
|
2787
3025
|
path: `/core/users/{id}/recovery_email/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2788
3026
|
method: 'POST',
|
|
@@ -2812,10 +3050,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2812
3050
|
|
|
2813
3051
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2814
3052
|
|
|
2815
|
-
if (this.configuration && this.configuration.
|
|
2816
|
-
|
|
2817
|
-
|
|
3053
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3054
|
+
const token = this.configuration.accessToken;
|
|
3055
|
+
const tokenString = await token("authentik", []);
|
|
2818
3056
|
|
|
3057
|
+
if (tokenString) {
|
|
3058
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
2819
3061
|
const response = await this.request({
|
|
2820
3062
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2821
3063
|
method: 'GET',
|
|
@@ -2848,10 +3090,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2848
3090
|
|
|
2849
3091
|
headerParameters['Content-Type'] = 'application/json';
|
|
2850
3092
|
|
|
2851
|
-
if (this.configuration && this.configuration.
|
|
2852
|
-
|
|
2853
|
-
|
|
3093
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3094
|
+
const token = this.configuration.accessToken;
|
|
3095
|
+
const tokenString = await token("authentik", []);
|
|
2854
3096
|
|
|
3097
|
+
if (tokenString) {
|
|
3098
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3099
|
+
}
|
|
3100
|
+
}
|
|
2855
3101
|
const response = await this.request({
|
|
2856
3102
|
path: `/core/users/service_account/`,
|
|
2857
3103
|
method: 'POST',
|
|
@@ -2889,10 +3135,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2889
3135
|
|
|
2890
3136
|
headerParameters['Content-Type'] = 'application/json';
|
|
2891
3137
|
|
|
2892
|
-
if (this.configuration && this.configuration.
|
|
2893
|
-
|
|
2894
|
-
|
|
3138
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3139
|
+
const token = this.configuration.accessToken;
|
|
3140
|
+
const tokenString = await token("authentik", []);
|
|
2895
3141
|
|
|
3142
|
+
if (tokenString) {
|
|
3143
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
2896
3146
|
const response = await this.request({
|
|
2897
3147
|
path: `/core/users/{id}/set_password/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2898
3148
|
method: 'POST',
|
|
@@ -2929,10 +3179,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2929
3179
|
|
|
2930
3180
|
headerParameters['Content-Type'] = 'application/json';
|
|
2931
3181
|
|
|
2932
|
-
if (this.configuration && this.configuration.
|
|
2933
|
-
|
|
2934
|
-
|
|
3182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3183
|
+
const token = this.configuration.accessToken;
|
|
3184
|
+
const tokenString = await token("authentik", []);
|
|
2935
3185
|
|
|
3186
|
+
if (tokenString) {
|
|
3187
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
2936
3190
|
const response = await this.request({
|
|
2937
3191
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2938
3192
|
method: 'PUT',
|
|
@@ -2964,10 +3218,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2964
3218
|
|
|
2965
3219
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2966
3220
|
|
|
2967
|
-
if (this.configuration && this.configuration.
|
|
2968
|
-
|
|
2969
|
-
|
|
3221
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3222
|
+
const token = this.configuration.accessToken;
|
|
3223
|
+
const tokenString = await token("authentik", []);
|
|
2970
3224
|
|
|
3225
|
+
if (tokenString) {
|
|
3226
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
2971
3229
|
const response = await this.request({
|
|
2972
3230
|
path: `/core/users/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
2973
3231
|
method: 'GET',
|