@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
- package/dist/models/AuthenticatorValidateStage.js +5 -0
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
- package/src/models/AuthenticatorValidateStage.ts +22 -0
- package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -13,6 +13,7 @@ import type { DeviceClassesEnum } from './DeviceClassesEnum';
|
|
13
13
|
import type { FlowSet } from './FlowSet';
|
14
14
|
import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
|
15
15
|
import type { UserVerificationEnum } from './UserVerificationEnum';
|
16
|
+
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
|
16
17
|
/**
|
17
18
|
* AuthenticatorValidateStage Serializer
|
18
19
|
* @export
|
@@ -91,6 +92,18 @@ export interface AuthenticatorValidateStage {
|
|
91
92
|
* @memberof AuthenticatorValidateStage
|
92
93
|
*/
|
93
94
|
webauthnUserVerification?: UserVerificationEnum;
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* @type {Array<string>}
|
98
|
+
* @memberof AuthenticatorValidateStage
|
99
|
+
*/
|
100
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @type {Array<WebAuthnDeviceType>}
|
104
|
+
* @memberof AuthenticatorValidateStage
|
105
|
+
*/
|
106
|
+
readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
|
94
107
|
}
|
95
108
|
/**
|
96
109
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
@@ -16,6 +16,7 @@ import { DeviceClassesEnumFromJSON, DeviceClassesEnumToJSON, } from './DeviceCla
|
|
16
16
|
import { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
|
17
17
|
import { NotConfiguredActionEnumFromJSON, NotConfiguredActionEnumToJSON, } from './NotConfiguredActionEnum';
|
18
18
|
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
|
19
|
+
import { WebAuthnDeviceTypeFromJSON, } from './WebAuthnDeviceType';
|
19
20
|
/**
|
20
21
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
21
22
|
*/
|
@@ -27,6 +28,7 @@ export function instanceOfAuthenticatorValidateStage(value) {
|
|
27
28
|
isInstance = isInstance && "verboseName" in value;
|
28
29
|
isInstance = isInstance && "verboseNamePlural" in value;
|
29
30
|
isInstance = isInstance && "metaModelName" in value;
|
31
|
+
isInstance = isInstance && "webauthnAllowedDeviceTypesObj" in value;
|
30
32
|
return isInstance;
|
31
33
|
}
|
32
34
|
export function AuthenticatorValidateStageFromJSON(json) {
|
@@ -49,6 +51,8 @@ export function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminato
|
|
49
51
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
50
52
|
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
51
53
|
'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
|
54
|
+
'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
55
|
+
'webauthnAllowedDeviceTypesObj': (json['webauthn_allowed_device_types_obj'].map(WebAuthnDeviceTypeFromJSON)),
|
52
56
|
};
|
53
57
|
}
|
54
58
|
export function AuthenticatorValidateStageToJSON(value) {
|
@@ -66,5 +70,6 @@ export function AuthenticatorValidateStageToJSON(value) {
|
|
66
70
|
'configuration_stages': value.configurationStages,
|
67
71
|
'last_auth_threshold': value.lastAuthThreshold,
|
68
72
|
'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
|
73
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
69
74
|
};
|
70
75
|
}
|
@@ -61,6 +61,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
61
61
|
* @memberof AuthenticatorValidateStageRequest
|
62
62
|
*/
|
63
63
|
webauthnUserVerification?: UserVerificationEnum;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {Array<string>}
|
67
|
+
* @memberof AuthenticatorValidateStageRequest
|
68
|
+
*/
|
69
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
64
70
|
}
|
65
71
|
/**
|
66
72
|
* Check if a given object implements the AuthenticatorValidateStageRequest interface.
|
@@ -39,6 +39,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
39
39
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
40
40
|
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
41
41
|
'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
|
42
|
+
'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
42
43
|
};
|
43
44
|
}
|
44
45
|
export function AuthenticatorValidateStageRequestToJSON(value) {
|
@@ -56,5 +57,6 @@ export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
56
57
|
'configuration_stages': value.configurationStages,
|
57
58
|
'last_auth_threshold': value.lastAuthThreshold,
|
58
59
|
'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
|
60
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
59
61
|
};
|
60
62
|
}
|
@@ -61,6 +61,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
61
61
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
62
62
|
*/
|
63
63
|
webauthnUserVerification?: UserVerificationEnum;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {Array<string>}
|
67
|
+
* @memberof PatchedAuthenticatorValidateStageRequest
|
68
|
+
*/
|
69
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
64
70
|
}
|
65
71
|
/**
|
66
72
|
* Check if a given object implements the PatchedAuthenticatorValidateStageRequest interface.
|
@@ -38,6 +38,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, igno
|
|
38
38
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
39
39
|
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
40
40
|
'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
|
41
|
+
'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
41
42
|
};
|
42
43
|
}
|
43
44
|
export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
@@ -55,5 +56,6 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
55
56
|
'configuration_stages': value.configurationStages,
|
56
57
|
'last_auth_threshold': value.lastAuthThreshold,
|
57
58
|
'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
|
59
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
58
60
|
};
|
59
61
|
}
|
@@ -13,6 +13,7 @@ import type { DeviceClassesEnum } from './DeviceClassesEnum';
|
|
13
13
|
import type { FlowSet } from './FlowSet';
|
14
14
|
import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
|
15
15
|
import type { UserVerificationEnum } from './UserVerificationEnum';
|
16
|
+
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
|
16
17
|
/**
|
17
18
|
* AuthenticatorValidateStage Serializer
|
18
19
|
* @export
|
@@ -91,6 +92,18 @@ export interface AuthenticatorValidateStage {
|
|
91
92
|
* @memberof AuthenticatorValidateStage
|
92
93
|
*/
|
93
94
|
webauthnUserVerification?: UserVerificationEnum;
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* @type {Array<string>}
|
98
|
+
* @memberof AuthenticatorValidateStage
|
99
|
+
*/
|
100
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @type {Array<WebAuthnDeviceType>}
|
104
|
+
* @memberof AuthenticatorValidateStage
|
105
|
+
*/
|
106
|
+
readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
|
94
107
|
}
|
95
108
|
/**
|
96
109
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
@@ -19,6 +19,7 @@ const DeviceClassesEnum_1 = require("./DeviceClassesEnum");
|
|
19
19
|
const FlowSet_1 = require("./FlowSet");
|
20
20
|
const NotConfiguredActionEnum_1 = require("./NotConfiguredActionEnum");
|
21
21
|
const UserVerificationEnum_1 = require("./UserVerificationEnum");
|
22
|
+
const WebAuthnDeviceType_1 = require("./WebAuthnDeviceType");
|
22
23
|
/**
|
23
24
|
* Check if a given object implements the AuthenticatorValidateStage interface.
|
24
25
|
*/
|
@@ -30,6 +31,7 @@ function instanceOfAuthenticatorValidateStage(value) {
|
|
30
31
|
isInstance = isInstance && "verboseName" in value;
|
31
32
|
isInstance = isInstance && "verboseNamePlural" in value;
|
32
33
|
isInstance = isInstance && "metaModelName" in value;
|
34
|
+
isInstance = isInstance && "webauthnAllowedDeviceTypesObj" in value;
|
33
35
|
return isInstance;
|
34
36
|
}
|
35
37
|
exports.instanceOfAuthenticatorValidateStage = instanceOfAuthenticatorValidateStage;
|
@@ -54,6 +56,8 @@ function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
56
|
'configurationStages': !(0, runtime_1.exists)(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
55
57
|
'lastAuthThreshold': !(0, runtime_1.exists)(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
56
58
|
'webauthnUserVerification': !(0, runtime_1.exists)(json, 'webauthn_user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
|
59
|
+
'webauthnAllowedDeviceTypes': !(0, runtime_1.exists)(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
60
|
+
'webauthnAllowedDeviceTypesObj': (json['webauthn_allowed_device_types_obj'].map(WebAuthnDeviceType_1.WebAuthnDeviceTypeFromJSON)),
|
57
61
|
};
|
58
62
|
}
|
59
63
|
exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
|
@@ -72,6 +76,7 @@ function AuthenticatorValidateStageToJSON(value) {
|
|
72
76
|
'configuration_stages': value.configurationStages,
|
73
77
|
'last_auth_threshold': value.lastAuthThreshold,
|
74
78
|
'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.webauthnUserVerification),
|
79
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
75
80
|
};
|
76
81
|
}
|
77
82
|
exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
|
@@ -61,6 +61,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
61
61
|
* @memberof AuthenticatorValidateStageRequest
|
62
62
|
*/
|
63
63
|
webauthnUserVerification?: UserVerificationEnum;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {Array<string>}
|
67
|
+
* @memberof AuthenticatorValidateStageRequest
|
68
|
+
*/
|
69
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
64
70
|
}
|
65
71
|
/**
|
66
72
|
* Check if a given object implements the AuthenticatorValidateStageRequest interface.
|
@@ -44,6 +44,7 @@ function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
44
44
|
'configurationStages': !(0, runtime_1.exists)(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
45
45
|
'lastAuthThreshold': !(0, runtime_1.exists)(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
46
46
|
'webauthnUserVerification': !(0, runtime_1.exists)(json, 'webauthn_user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
|
47
|
+
'webauthnAllowedDeviceTypes': !(0, runtime_1.exists)(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
47
48
|
};
|
48
49
|
}
|
49
50
|
exports.AuthenticatorValidateStageRequestFromJSONTyped = AuthenticatorValidateStageRequestFromJSONTyped;
|
@@ -62,6 +63,7 @@ function AuthenticatorValidateStageRequestToJSON(value) {
|
|
62
63
|
'configuration_stages': value.configurationStages,
|
63
64
|
'last_auth_threshold': value.lastAuthThreshold,
|
64
65
|
'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.webauthnUserVerification),
|
66
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
65
67
|
};
|
66
68
|
}
|
67
69
|
exports.AuthenticatorValidateStageRequestToJSON = AuthenticatorValidateStageRequestToJSON;
|
@@ -61,6 +61,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
61
61
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
62
62
|
*/
|
63
63
|
webauthnUserVerification?: UserVerificationEnum;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {Array<string>}
|
67
|
+
* @memberof PatchedAuthenticatorValidateStageRequest
|
68
|
+
*/
|
69
|
+
webauthnAllowedDeviceTypes?: Array<string>;
|
64
70
|
}
|
65
71
|
/**
|
66
72
|
* Check if a given object implements the PatchedAuthenticatorValidateStageRequest interface.
|
@@ -43,6 +43,7 @@ function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
43
43
|
'configurationStages': !(0, runtime_1.exists)(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
44
44
|
'lastAuthThreshold': !(0, runtime_1.exists)(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
45
45
|
'webauthnUserVerification': !(0, runtime_1.exists)(json, 'webauthn_user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
|
46
|
+
'webauthnAllowedDeviceTypes': !(0, runtime_1.exists)(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
|
46
47
|
};
|
47
48
|
}
|
48
49
|
exports.PatchedAuthenticatorValidateStageRequestFromJSONTyped = PatchedAuthenticatorValidateStageRequestFromJSONTyped;
|
@@ -61,6 +62,7 @@ function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
61
62
|
'configuration_stages': value.configurationStages,
|
62
63
|
'last_auth_threshold': value.lastAuthThreshold,
|
63
64
|
'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.webauthnUserVerification),
|
65
|
+
'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
|
64
66
|
};
|
65
67
|
}
|
66
68
|
exports.PatchedAuthenticatorValidateStageRequestToJSON = PatchedAuthenticatorValidateStageRequestToJSON;
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
@@ -70,10 +70,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
70
70
|
|
71
71
|
const headerParameters: runtime.HTTPHeaders = {};
|
72
72
|
|
73
|
-
if (this.configuration && this.configuration.
|
74
|
-
|
75
|
-
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
74
|
+
const token = this.configuration.accessToken;
|
75
|
+
const tokenString = await token("authentik", []);
|
76
76
|
|
77
|
+
if (tokenString) {
|
78
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
79
|
+
}
|
80
|
+
}
|
77
81
|
const response = await this.request({
|
78
82
|
path: `/admin/apps/`,
|
79
83
|
method: 'GET',
|
@@ -100,10 +104,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
100
104
|
|
101
105
|
const headerParameters: runtime.HTTPHeaders = {};
|
102
106
|
|
103
|
-
if (this.configuration && this.configuration.
|
104
|
-
|
105
|
-
|
107
|
+
if (this.configuration && this.configuration.accessToken) {
|
108
|
+
const token = this.configuration.accessToken;
|
109
|
+
const tokenString = await token("authentik", []);
|
106
110
|
|
111
|
+
if (tokenString) {
|
112
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
113
|
+
}
|
114
|
+
}
|
107
115
|
const response = await this.request({
|
108
116
|
path: `/admin/metrics/`,
|
109
117
|
method: 'GET',
|
@@ -130,10 +138,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
130
138
|
|
131
139
|
const headerParameters: runtime.HTTPHeaders = {};
|
132
140
|
|
133
|
-
if (this.configuration && this.configuration.
|
134
|
-
|
135
|
-
|
141
|
+
if (this.configuration && this.configuration.accessToken) {
|
142
|
+
const token = this.configuration.accessToken;
|
143
|
+
const tokenString = await token("authentik", []);
|
136
144
|
|
145
|
+
if (tokenString) {
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
147
|
+
}
|
148
|
+
}
|
137
149
|
const response = await this.request({
|
138
150
|
path: `/admin/models/`,
|
139
151
|
method: 'GET',
|
@@ -162,10 +174,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
162
174
|
|
163
175
|
headerParameters['Content-Type'] = 'application/json';
|
164
176
|
|
165
|
-
if (this.configuration && this.configuration.
|
166
|
-
|
167
|
-
|
177
|
+
if (this.configuration && this.configuration.accessToken) {
|
178
|
+
const token = this.configuration.accessToken;
|
179
|
+
const tokenString = await token("authentik", []);
|
168
180
|
|
181
|
+
if (tokenString) {
|
182
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
183
|
+
}
|
184
|
+
}
|
169
185
|
const response = await this.request({
|
170
186
|
path: `/admin/settings/`,
|
171
187
|
method: 'PATCH',
|
@@ -193,10 +209,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
193
209
|
|
194
210
|
const headerParameters: runtime.HTTPHeaders = {};
|
195
211
|
|
196
|
-
if (this.configuration && this.configuration.
|
197
|
-
|
198
|
-
|
212
|
+
if (this.configuration && this.configuration.accessToken) {
|
213
|
+
const token = this.configuration.accessToken;
|
214
|
+
const tokenString = await token("authentik", []);
|
199
215
|
|
216
|
+
if (tokenString) {
|
217
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
218
|
+
}
|
219
|
+
}
|
200
220
|
const response = await this.request({
|
201
221
|
path: `/admin/settings/`,
|
202
222
|
method: 'GET',
|
@@ -225,10 +245,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
225
245
|
|
226
246
|
headerParameters['Content-Type'] = 'application/json';
|
227
247
|
|
228
|
-
if (this.configuration && this.configuration.
|
229
|
-
|
230
|
-
|
248
|
+
if (this.configuration && this.configuration.accessToken) {
|
249
|
+
const token = this.configuration.accessToken;
|
250
|
+
const tokenString = await token("authentik", []);
|
231
251
|
|
252
|
+
if (tokenString) {
|
253
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
254
|
+
}
|
255
|
+
}
|
232
256
|
const response = await this.request({
|
233
257
|
path: `/admin/settings/`,
|
234
258
|
method: 'PUT',
|
@@ -256,10 +280,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
256
280
|
|
257
281
|
const headerParameters: runtime.HTTPHeaders = {};
|
258
282
|
|
259
|
-
if (this.configuration && this.configuration.
|
260
|
-
|
261
|
-
|
283
|
+
if (this.configuration && this.configuration.accessToken) {
|
284
|
+
const token = this.configuration.accessToken;
|
285
|
+
const tokenString = await token("authentik", []);
|
262
286
|
|
287
|
+
if (tokenString) {
|
288
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
289
|
+
}
|
290
|
+
}
|
263
291
|
const response = await this.request({
|
264
292
|
path: `/admin/system/`,
|
265
293
|
method: 'POST',
|
@@ -286,10 +314,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
286
314
|
|
287
315
|
const headerParameters: runtime.HTTPHeaders = {};
|
288
316
|
|
289
|
-
if (this.configuration && this.configuration.
|
290
|
-
|
291
|
-
|
317
|
+
if (this.configuration && this.configuration.accessToken) {
|
318
|
+
const token = this.configuration.accessToken;
|
319
|
+
const tokenString = await token("authentik", []);
|
292
320
|
|
321
|
+
if (tokenString) {
|
322
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
323
|
+
}
|
324
|
+
}
|
293
325
|
const response = await this.request({
|
294
326
|
path: `/admin/system/`,
|
295
327
|
method: 'GET',
|
@@ -316,10 +348,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
316
348
|
|
317
349
|
const headerParameters: runtime.HTTPHeaders = {};
|
318
350
|
|
319
|
-
if (this.configuration && this.configuration.
|
320
|
-
|
321
|
-
|
351
|
+
if (this.configuration && this.configuration.accessToken) {
|
352
|
+
const token = this.configuration.accessToken;
|
353
|
+
const tokenString = await token("authentik", []);
|
322
354
|
|
355
|
+
if (tokenString) {
|
356
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
357
|
+
}
|
358
|
+
}
|
323
359
|
const response = await this.request({
|
324
360
|
path: `/admin/version/`,
|
325
361
|
method: 'GET',
|
@@ -346,10 +382,14 @@ export class AdminApi extends runtime.BaseAPI {
|
|
346
382
|
|
347
383
|
const headerParameters: runtime.HTTPHeaders = {};
|
348
384
|
|
349
|
-
if (this.configuration && this.configuration.
|
350
|
-
|
351
|
-
|
385
|
+
if (this.configuration && this.configuration.accessToken) {
|
386
|
+
const token = this.configuration.accessToken;
|
387
|
+
const tokenString = await token("authentik", []);
|
352
388
|
|
389
|
+
if (tokenString) {
|
390
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
391
|
+
}
|
392
|
+
}
|
353
393
|
const response = await this.request({
|
354
394
|
path: `/admin/workers/`,
|
355
395
|
method: 'GET',
|