@goauthentik/api 2022.1.5-1644442977 → 2022.1.5-1644681372
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 +1 -0
- package/dist/apis/StagesApi.d.ts +1 -1
- package/dist/apis/StagesApi.js +2 -2
- package/dist/esm/apis/StagesApi.d.ts +1 -1
- package/dist/esm/apis/StagesApi.js +2 -2
- package/dist/esm/models/AuthenticatorValidateStage.d.ts +3 -3
- package/dist/esm/models/AuthenticatorValidateStage.js +2 -2
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +3 -3
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -2
- package/dist/esm/models/AuthenticatorValidationChallenge.d.ts +7 -0
- package/dist/esm/models/AuthenticatorValidationChallenge.js +3 -0
- package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.js +2 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +3 -3
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -2
- package/dist/esm/models/SelectableStage.d.ts +45 -0
- package/dist/esm/models/SelectableStage.js +41 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/AuthenticatorValidateStage.d.ts +3 -3
- package/dist/models/AuthenticatorValidateStage.js +2 -2
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +3 -3
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -2
- package/dist/models/AuthenticatorValidationChallenge.d.ts +7 -0
- package/dist/models/AuthenticatorValidationChallenge.js +3 -0
- package/dist/models/AuthenticatorValidationChallengeResponseRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidationChallengeResponseRequest.js +2 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +3 -3
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -2
- package/dist/models/SelectableStage.d.ts +45 -0
- package/dist/models/SelectableStage.js +47 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/StagesApi.ts +3 -3
- package/src/models/AuthenticatorValidateStage.ts +5 -5
- package/src/models/AuthenticatorValidateStageRequest.ts +5 -5
- package/src/models/AuthenticatorValidationChallenge.ts +14 -0
- package/src/models/AuthenticatorValidationChallengeResponseRequest.ts +8 -0
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +5 -5
- package/src/models/SelectableStage.ts +80 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -382,6 +382,7 @@ src/models/SMSDeviceRequest.ts
|
|
|
382
382
|
src/models/ScopeMapping.ts
|
|
383
383
|
src/models/ScopeMappingRequest.ts
|
|
384
384
|
src/models/SearchModeEnum.ts
|
|
385
|
+
src/models/SelectableStage.ts
|
|
385
386
|
src/models/ServiceConnection.ts
|
|
386
387
|
src/models/ServiceConnectionRequest.ts
|
|
387
388
|
src/models/ServiceConnectionState.ts
|
package/dist/apis/StagesApi.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ export interface StagesAuthenticatorValidateDestroyRequest {
|
|
|
168
168
|
stageUuid: string;
|
|
169
169
|
}
|
|
170
170
|
export interface StagesAuthenticatorValidateListRequest {
|
|
171
|
-
|
|
171
|
+
configurationStages?: Array<string>;
|
|
172
172
|
name?: string;
|
|
173
173
|
notConfiguredAction?: StagesAuthenticatorValidateListNotConfiguredActionEnum;
|
|
174
174
|
ordering?: string;
|
package/dist/apis/StagesApi.js
CHANGED
|
@@ -1359,8 +1359,8 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
1359
1359
|
stagesAuthenticatorValidateListRaw(requestParameters, initOverrides) {
|
|
1360
1360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1361
1361
|
const queryParameters = {};
|
|
1362
|
-
if (requestParameters.
|
|
1363
|
-
queryParameters['
|
|
1362
|
+
if (requestParameters.configurationStages) {
|
|
1363
|
+
queryParameters['configuration_stages'] = requestParameters.configurationStages;
|
|
1364
1364
|
}
|
|
1365
1365
|
if (requestParameters.name !== undefined) {
|
|
1366
1366
|
queryParameters['name'] = requestParameters.name;
|
|
@@ -168,7 +168,7 @@ export interface StagesAuthenticatorValidateDestroyRequest {
|
|
|
168
168
|
stageUuid: string;
|
|
169
169
|
}
|
|
170
170
|
export interface StagesAuthenticatorValidateListRequest {
|
|
171
|
-
|
|
171
|
+
configurationStages?: Array<string>;
|
|
172
172
|
name?: string;
|
|
173
173
|
notConfiguredAction?: StagesAuthenticatorValidateListNotConfiguredActionEnum;
|
|
174
174
|
ordering?: string;
|
|
@@ -1356,8 +1356,8 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
1356
1356
|
stagesAuthenticatorValidateListRaw(requestParameters, initOverrides) {
|
|
1357
1357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1358
1358
|
const queryParameters = {};
|
|
1359
|
-
if (requestParameters.
|
|
1360
|
-
queryParameters['
|
|
1359
|
+
if (requestParameters.configurationStages) {
|
|
1360
|
+
queryParameters['configuration_stages'] = requestParameters.configurationStages;
|
|
1361
1361
|
}
|
|
1362
1362
|
if (requestParameters.name !== undefined) {
|
|
1363
1363
|
queryParameters['name'] = requestParameters.name;
|
|
@@ -73,11 +73,11 @@ export interface AuthenticatorValidateStage {
|
|
|
73
73
|
*/
|
|
74
74
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
76
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
77
|
+
* @type {Array<string>}
|
|
78
78
|
* @memberof AuthenticatorValidateStage
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
configurationStages?: Array<string>;
|
|
81
81
|
}
|
|
82
82
|
export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
|
|
83
83
|
export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
|
|
@@ -32,7 +32,7 @@ export function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminato
|
|
|
32
32
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowFromJSON)),
|
|
33
33
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
34
34
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
35
|
-
'
|
|
35
|
+
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
export function AuthenticatorValidateStageToJSON(value) {
|
|
@@ -47,6 +47,6 @@ export function AuthenticatorValidateStageToJSON(value) {
|
|
|
47
47
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowToJSON)),
|
|
48
48
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
49
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
50
|
-
'
|
|
50
|
+
'configuration_stages': value.configurationStages,
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -43,11 +43,11 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
43
43
|
*/
|
|
44
44
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
46
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
47
|
+
* @type {Array<string>}
|
|
48
48
|
* @memberof AuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
configurationStages?: Array<string>;
|
|
51
51
|
}
|
|
52
52
|
export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
|
|
53
53
|
export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
|
|
@@ -27,7 +27,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
|
27
27
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequestFromJSON)),
|
|
28
28
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
29
29
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
30
|
-
'
|
|
30
|
+
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
@@ -42,6 +42,6 @@ export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
|
42
42
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequestToJSON)),
|
|
43
43
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
44
44
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
45
|
-
'
|
|
45
|
+
'configuration_stages': value.configurationStages,
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -13,6 +13,7 @@ import { ChallengeChoices } from './ChallengeChoices';
|
|
|
13
13
|
import { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
14
|
import { DeviceChallenge } from './DeviceChallenge';
|
|
15
15
|
import { ErrorDetail } from './ErrorDetail';
|
|
16
|
+
import { SelectableStage } from './SelectableStage';
|
|
16
17
|
/**
|
|
17
18
|
* Authenticator challenge
|
|
18
19
|
* @export
|
|
@@ -63,6 +64,12 @@ export interface AuthenticatorValidationChallenge {
|
|
|
63
64
|
* @memberof AuthenticatorValidationChallenge
|
|
64
65
|
*/
|
|
65
66
|
deviceChallenges: Array<DeviceChallenge>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<SelectableStage>}
|
|
70
|
+
* @memberof AuthenticatorValidationChallenge
|
|
71
|
+
*/
|
|
72
|
+
configurationStages: Array<SelectableStage>;
|
|
66
73
|
}
|
|
67
74
|
export declare function AuthenticatorValidationChallengeFromJSON(json: any): AuthenticatorValidationChallenge;
|
|
68
75
|
export declare function AuthenticatorValidationChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidationChallenge;
|
|
@@ -15,6 +15,7 @@ import { exists } from '../runtime';
|
|
|
15
15
|
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
16
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
17
|
import { DeviceChallengeFromJSON, DeviceChallengeToJSON, } from './DeviceChallenge';
|
|
18
|
+
import { SelectableStageFromJSON, SelectableStageToJSON, } from './SelectableStage';
|
|
18
19
|
export function AuthenticatorValidationChallengeFromJSON(json) {
|
|
19
20
|
return AuthenticatorValidationChallengeFromJSONTyped(json, false);
|
|
20
21
|
}
|
|
@@ -30,6 +31,7 @@ export function AuthenticatorValidationChallengeFromJSONTyped(json, ignoreDiscri
|
|
|
30
31
|
'pendingUser': json['pending_user'],
|
|
31
32
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
32
33
|
'deviceChallenges': (json['device_challenges'].map(DeviceChallengeFromJSON)),
|
|
34
|
+
'configurationStages': (json['configuration_stages'].map(SelectableStageFromJSON)),
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
export function AuthenticatorValidationChallengeToJSON(value) {
|
|
@@ -47,5 +49,6 @@ export function AuthenticatorValidationChallengeToJSON(value) {
|
|
|
47
49
|
'pending_user': value.pendingUser,
|
|
48
50
|
'pending_user_avatar': value.pendingUserAvatar,
|
|
49
51
|
'device_challenges': (value.deviceChallenges.map(DeviceChallengeToJSON)),
|
|
52
|
+
'configuration_stages': (value.configurationStages.map(SelectableStageToJSON)),
|
|
50
53
|
};
|
|
51
54
|
}
|
|
@@ -28,6 +28,12 @@ export interface AuthenticatorValidationChallengeResponseRequest {
|
|
|
28
28
|
* @memberof AuthenticatorValidationChallengeResponseRequest
|
|
29
29
|
*/
|
|
30
30
|
selectedChallenge?: DeviceChallengeRequest;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AuthenticatorValidationChallengeResponseRequest
|
|
35
|
+
*/
|
|
36
|
+
selectedStage?: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {string}
|
|
@@ -23,6 +23,7 @@ export function AuthenticatorValidationChallengeResponseRequestFromJSONTyped(jso
|
|
|
23
23
|
return {
|
|
24
24
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
25
25
|
'selectedChallenge': !exists(json, 'selected_challenge') ? undefined : DeviceChallengeRequestFromJSON(json['selected_challenge']),
|
|
26
|
+
'selectedStage': !exists(json, 'selected_stage') ? undefined : json['selected_stage'],
|
|
26
27
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
27
28
|
'webauthn': !exists(json, 'webauthn') ? undefined : json['webauthn'],
|
|
28
29
|
'duo': !exists(json, 'duo') ? undefined : json['duo'],
|
|
@@ -38,6 +39,7 @@ export function AuthenticatorValidationChallengeResponseRequestToJSON(value) {
|
|
|
38
39
|
return {
|
|
39
40
|
'component': value.component,
|
|
40
41
|
'selected_challenge': DeviceChallengeRequestToJSON(value.selectedChallenge),
|
|
42
|
+
'selected_stage': value.selectedStage,
|
|
41
43
|
'code': value.code,
|
|
42
44
|
'webauthn': value.webauthn,
|
|
43
45
|
'duo': value.duo,
|
|
@@ -43,11 +43,11 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
|
43
43
|
*/
|
|
44
44
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
46
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
47
|
+
* @type {Array<string>}
|
|
48
48
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
configurationStages?: Array<string>;
|
|
51
51
|
}
|
|
52
52
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest;
|
|
53
53
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorValidateStageRequest;
|
|
@@ -27,7 +27,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, igno
|
|
|
27
27
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequestFromJSON)),
|
|
28
28
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
29
29
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
30
|
-
'
|
|
30
|
+
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
@@ -42,6 +42,6 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
|
42
42
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequestToJSON)),
|
|
43
43
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
44
44
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
45
|
-
'
|
|
45
|
+
'configuration_stages': value.configurationStages,
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.1.5
|
|
6
|
+
* Contact: hello@beryju.org
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Serializer for stages which can be selected by users
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelectableStage
|
|
16
|
+
*/
|
|
17
|
+
export interface SelectableStage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelectableStage
|
|
22
|
+
*/
|
|
23
|
+
pk: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SelectableStage
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SelectableStage
|
|
34
|
+
*/
|
|
35
|
+
verboseName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SelectableStage
|
|
40
|
+
*/
|
|
41
|
+
metaModelName: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function SelectableStageFromJSON(json: any): SelectableStage;
|
|
44
|
+
export declare function SelectableStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectableStage;
|
|
45
|
+
export declare function SelectableStageToJSON(value?: SelectableStage | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.1.5
|
|
8
|
+
* Contact: hello@beryju.org
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export function SelectableStageFromJSON(json) {
|
|
15
|
+
return SelectableStageFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function SelectableStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'pk': json['pk'],
|
|
23
|
+
'name': json['name'],
|
|
24
|
+
'verboseName': json['verbose_name'],
|
|
25
|
+
'metaModelName': json['meta_model_name'],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function SelectableStageToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'pk': value.pk,
|
|
37
|
+
'name': value.name,
|
|
38
|
+
'verbose_name': value.verboseName,
|
|
39
|
+
'meta_model_name': value.metaModelName,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -360,6 +360,7 @@ export * from './SMSDeviceRequest';
|
|
|
360
360
|
export * from './ScopeMapping';
|
|
361
361
|
export * from './ScopeMappingRequest';
|
|
362
362
|
export * from './SearchModeEnum';
|
|
363
|
+
export * from './SelectableStage';
|
|
363
364
|
export * from './ServiceConnection';
|
|
364
365
|
export * from './ServiceConnectionRequest';
|
|
365
366
|
export * from './ServiceConnectionState';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -362,6 +362,7 @@ export * from './SMSDeviceRequest';
|
|
|
362
362
|
export * from './ScopeMapping';
|
|
363
363
|
export * from './ScopeMappingRequest';
|
|
364
364
|
export * from './SearchModeEnum';
|
|
365
|
+
export * from './SelectableStage';
|
|
365
366
|
export * from './ServiceConnection';
|
|
366
367
|
export * from './ServiceConnectionRequest';
|
|
367
368
|
export * from './ServiceConnectionState';
|
|
@@ -73,11 +73,11 @@ export interface AuthenticatorValidateStage {
|
|
|
73
73
|
*/
|
|
74
74
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
76
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
77
|
+
* @type {Array<string>}
|
|
78
78
|
* @memberof AuthenticatorValidateStage
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
configurationStages?: Array<string>;
|
|
81
81
|
}
|
|
82
82
|
export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
|
|
83
83
|
export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
|
|
@@ -36,7 +36,7 @@ function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'flowSet': !runtime_1.exists(json, 'flow_set') ? undefined : (json['flow_set'].map(Flow_1.FlowFromJSON)),
|
|
37
37
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
38
38
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
39
|
-
'
|
|
39
|
+
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
|
|
@@ -52,7 +52,7 @@ function AuthenticatorValidateStageToJSON(value) {
|
|
|
52
52
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(Flow_1.FlowToJSON)),
|
|
53
53
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
54
54
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
55
|
-
'
|
|
55
|
+
'configuration_stages': value.configurationStages,
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
|
|
@@ -43,11 +43,11 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
43
43
|
*/
|
|
44
44
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
46
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
47
|
+
* @type {Array<string>}
|
|
48
48
|
* @memberof AuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
configurationStages?: Array<string>;
|
|
51
51
|
}
|
|
52
52
|
export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
|
|
53
53
|
export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
|
|
@@ -31,7 +31,7 @@ function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
31
31
|
'flowSet': !runtime_1.exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequest_1.FlowRequestFromJSON)),
|
|
32
32
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
33
33
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
34
|
-
'
|
|
34
|
+
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
exports.AuthenticatorValidateStageRequestFromJSONTyped = AuthenticatorValidateStageRequestFromJSONTyped;
|
|
@@ -47,7 +47,7 @@ function AuthenticatorValidateStageRequestToJSON(value) {
|
|
|
47
47
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequest_1.FlowRequestToJSON)),
|
|
48
48
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
49
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
50
|
-
'
|
|
50
|
+
'configuration_stages': value.configurationStages,
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
exports.AuthenticatorValidateStageRequestToJSON = AuthenticatorValidateStageRequestToJSON;
|
|
@@ -13,6 +13,7 @@ import { ChallengeChoices } from './ChallengeChoices';
|
|
|
13
13
|
import { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
14
|
import { DeviceChallenge } from './DeviceChallenge';
|
|
15
15
|
import { ErrorDetail } from './ErrorDetail';
|
|
16
|
+
import { SelectableStage } from './SelectableStage';
|
|
16
17
|
/**
|
|
17
18
|
* Authenticator challenge
|
|
18
19
|
* @export
|
|
@@ -63,6 +64,12 @@ export interface AuthenticatorValidationChallenge {
|
|
|
63
64
|
* @memberof AuthenticatorValidationChallenge
|
|
64
65
|
*/
|
|
65
66
|
deviceChallenges: Array<DeviceChallenge>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<SelectableStage>}
|
|
70
|
+
* @memberof AuthenticatorValidationChallenge
|
|
71
|
+
*/
|
|
72
|
+
configurationStages: Array<SelectableStage>;
|
|
66
73
|
}
|
|
67
74
|
export declare function AuthenticatorValidationChallengeFromJSON(json: any): AuthenticatorValidationChallenge;
|
|
68
75
|
export declare function AuthenticatorValidationChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidationChallenge;
|
|
@@ -18,6 +18,7 @@ const runtime_1 = require("../runtime");
|
|
|
18
18
|
const ChallengeChoices_1 = require("./ChallengeChoices");
|
|
19
19
|
const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
|
|
20
20
|
const DeviceChallenge_1 = require("./DeviceChallenge");
|
|
21
|
+
const SelectableStage_1 = require("./SelectableStage");
|
|
21
22
|
function AuthenticatorValidationChallengeFromJSON(json) {
|
|
22
23
|
return AuthenticatorValidationChallengeFromJSONTyped(json, false);
|
|
23
24
|
}
|
|
@@ -34,6 +35,7 @@ function AuthenticatorValidationChallengeFromJSONTyped(json, ignoreDiscriminator
|
|
|
34
35
|
'pendingUser': json['pending_user'],
|
|
35
36
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
36
37
|
'deviceChallenges': (json['device_challenges'].map(DeviceChallenge_1.DeviceChallengeFromJSON)),
|
|
38
|
+
'configurationStages': (json['configuration_stages'].map(SelectableStage_1.SelectableStageFromJSON)),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
exports.AuthenticatorValidationChallengeFromJSONTyped = AuthenticatorValidationChallengeFromJSONTyped;
|
|
@@ -52,6 +54,7 @@ function AuthenticatorValidationChallengeToJSON(value) {
|
|
|
52
54
|
'pending_user': value.pendingUser,
|
|
53
55
|
'pending_user_avatar': value.pendingUserAvatar,
|
|
54
56
|
'device_challenges': (value.deviceChallenges.map(DeviceChallenge_1.DeviceChallengeToJSON)),
|
|
57
|
+
'configuration_stages': (value.configurationStages.map(SelectableStage_1.SelectableStageToJSON)),
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
60
|
exports.AuthenticatorValidationChallengeToJSON = AuthenticatorValidationChallengeToJSON;
|
|
@@ -28,6 +28,12 @@ export interface AuthenticatorValidationChallengeResponseRequest {
|
|
|
28
28
|
* @memberof AuthenticatorValidationChallengeResponseRequest
|
|
29
29
|
*/
|
|
30
30
|
selectedChallenge?: DeviceChallengeRequest;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AuthenticatorValidationChallengeResponseRequest
|
|
35
|
+
*/
|
|
36
|
+
selectedStage?: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {string}
|
|
@@ -27,6 +27,7 @@ function AuthenticatorValidationChallengeResponseRequestFromJSONTyped(json, igno
|
|
|
27
27
|
return {
|
|
28
28
|
'component': !runtime_1.exists(json, 'component') ? undefined : json['component'],
|
|
29
29
|
'selectedChallenge': !runtime_1.exists(json, 'selected_challenge') ? undefined : DeviceChallengeRequest_1.DeviceChallengeRequestFromJSON(json['selected_challenge']),
|
|
30
|
+
'selectedStage': !runtime_1.exists(json, 'selected_stage') ? undefined : json['selected_stage'],
|
|
30
31
|
'code': !runtime_1.exists(json, 'code') ? undefined : json['code'],
|
|
31
32
|
'webauthn': !runtime_1.exists(json, 'webauthn') ? undefined : json['webauthn'],
|
|
32
33
|
'duo': !runtime_1.exists(json, 'duo') ? undefined : json['duo'],
|
|
@@ -43,6 +44,7 @@ function AuthenticatorValidationChallengeResponseRequestToJSON(value) {
|
|
|
43
44
|
return {
|
|
44
45
|
'component': value.component,
|
|
45
46
|
'selected_challenge': DeviceChallengeRequest_1.DeviceChallengeRequestToJSON(value.selectedChallenge),
|
|
47
|
+
'selected_stage': value.selectedStage,
|
|
46
48
|
'code': value.code,
|
|
47
49
|
'webauthn': value.webauthn,
|
|
48
50
|
'duo': value.duo,
|
|
@@ -43,11 +43,11 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
|
43
43
|
*/
|
|
44
44
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
46
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
47
|
+
* @type {Array<string>}
|
|
48
48
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
configurationStages?: Array<string>;
|
|
51
51
|
}
|
|
52
52
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest;
|
|
53
53
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorValidateStageRequest;
|
|
@@ -31,7 +31,7 @@ function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
|
31
31
|
'flowSet': !runtime_1.exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequest_1.FlowRequestFromJSON)),
|
|
32
32
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
33
33
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
34
|
-
'
|
|
34
|
+
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
exports.PatchedAuthenticatorValidateStageRequestFromJSONTyped = PatchedAuthenticatorValidateStageRequestFromJSONTyped;
|
|
@@ -47,7 +47,7 @@ function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
|
47
47
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequest_1.FlowRequestToJSON)),
|
|
48
48
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
49
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
50
|
-
'
|
|
50
|
+
'configuration_stages': value.configurationStages,
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
exports.PatchedAuthenticatorValidateStageRequestToJSON = PatchedAuthenticatorValidateStageRequestToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.1.5
|
|
6
|
+
* Contact: hello@beryju.org
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Serializer for stages which can be selected by users
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelectableStage
|
|
16
|
+
*/
|
|
17
|
+
export interface SelectableStage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelectableStage
|
|
22
|
+
*/
|
|
23
|
+
pk: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SelectableStage
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SelectableStage
|
|
34
|
+
*/
|
|
35
|
+
verboseName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SelectableStage
|
|
40
|
+
*/
|
|
41
|
+
metaModelName: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function SelectableStageFromJSON(json: any): SelectableStage;
|
|
44
|
+
export declare function SelectableStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectableStage;
|
|
45
|
+
export declare function SelectableStageToJSON(value?: SelectableStage | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2022.1.5
|
|
9
|
+
* Contact: hello@beryju.org
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SelectableStageToJSON = exports.SelectableStageFromJSONTyped = exports.SelectableStageFromJSON = void 0;
|
|
17
|
+
function SelectableStageFromJSON(json) {
|
|
18
|
+
return SelectableStageFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.SelectableStageFromJSON = SelectableStageFromJSON;
|
|
21
|
+
function SelectableStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'pk': json['pk'],
|
|
27
|
+
'name': json['name'],
|
|
28
|
+
'verboseName': json['verbose_name'],
|
|
29
|
+
'metaModelName': json['meta_model_name'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.SelectableStageFromJSONTyped = SelectableStageFromJSONTyped;
|
|
33
|
+
function SelectableStageToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'pk': value.pk,
|
|
42
|
+
'name': value.name,
|
|
43
|
+
'verbose_name': value.verboseName,
|
|
44
|
+
'meta_model_name': value.metaModelName,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.SelectableStageToJSON = SelectableStageToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -360,6 +360,7 @@ export * from './SMSDeviceRequest';
|
|
|
360
360
|
export * from './ScopeMapping';
|
|
361
361
|
export * from './ScopeMappingRequest';
|
|
362
362
|
export * from './SearchModeEnum';
|
|
363
|
+
export * from './SelectableStage';
|
|
363
364
|
export * from './ServiceConnection';
|
|
364
365
|
export * from './ServiceConnectionRequest';
|
|
365
366
|
export * from './ServiceConnectionState';
|
package/dist/models/index.js
CHANGED
|
@@ -374,6 +374,7 @@ __exportStar(require("./SMSDeviceRequest"), exports);
|
|
|
374
374
|
__exportStar(require("./ScopeMapping"), exports);
|
|
375
375
|
__exportStar(require("./ScopeMappingRequest"), exports);
|
|
376
376
|
__exportStar(require("./SearchModeEnum"), exports);
|
|
377
|
+
__exportStar(require("./SelectableStage"), exports);
|
|
377
378
|
__exportStar(require("./ServiceConnection"), exports);
|
|
378
379
|
__exportStar(require("./ServiceConnectionRequest"), exports);
|
|
379
380
|
__exportStar(require("./ServiceConnectionState"), exports);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@goauthentik/api", "version": "2022.1.5-
|
|
1
|
+
{"name": "@goauthentik/api", "version": "2022.1.5-1644681372", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -477,7 +477,7 @@ export interface StagesAuthenticatorValidateDestroyRequest {
|
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
export interface StagesAuthenticatorValidateListRequest {
|
|
480
|
-
|
|
480
|
+
configurationStages?: Array<string>;
|
|
481
481
|
name?: string;
|
|
482
482
|
notConfiguredAction?: StagesAuthenticatorValidateListNotConfiguredActionEnum;
|
|
483
483
|
ordering?: string;
|
|
@@ -2602,8 +2602,8 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
2602
2602
|
async stagesAuthenticatorValidateListRaw(requestParameters: StagesAuthenticatorValidateListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PaginatedAuthenticatorValidateStageList>> {
|
|
2603
2603
|
const queryParameters: any = {};
|
|
2604
2604
|
|
|
2605
|
-
if (requestParameters.
|
|
2606
|
-
queryParameters['
|
|
2605
|
+
if (requestParameters.configurationStages) {
|
|
2606
|
+
queryParameters['configuration_stages'] = requestParameters.configurationStages;
|
|
2607
2607
|
}
|
|
2608
2608
|
|
|
2609
2609
|
if (requestParameters.name !== undefined) {
|
|
@@ -93,11 +93,11 @@ export interface AuthenticatorValidateStage {
|
|
|
93
93
|
*/
|
|
94
94
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {string}
|
|
96
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
97
|
+
* @type {Array<string>}
|
|
98
98
|
* @memberof AuthenticatorValidateStage
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
configurationStages?: Array<string>;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
export function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage {
|
|
@@ -119,7 +119,7 @@ export function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscrim
|
|
|
119
119
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowFromJSON)),
|
|
120
120
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
121
121
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
|
|
122
|
-
'
|
|
122
|
+
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -136,7 +136,7 @@ export function AuthenticatorValidateStageToJSON(value?: AuthenticatorValidateSt
|
|
|
136
136
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowToJSON)),
|
|
137
137
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
138
138
|
'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
|
|
139
|
-
'
|
|
139
|
+
'configuration_stages': value.configurationStages,
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
|
|
@@ -63,11 +63,11 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
63
63
|
*/
|
|
64
64
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {string}
|
|
66
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
67
|
+
* @type {Array<string>}
|
|
68
68
|
* @memberof AuthenticatorValidateStageRequest
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
configurationStages?: Array<string>;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest {
|
|
@@ -84,7 +84,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignore
|
|
|
84
84
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowRequestFromJSON)),
|
|
85
85
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
86
86
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
|
|
87
|
-
'
|
|
87
|
+
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -101,7 +101,7 @@ export function AuthenticatorValidateStageRequestToJSON(value?: AuthenticatorVal
|
|
|
101
101
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowRequestToJSON)),
|
|
102
102
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
103
103
|
'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
|
|
104
|
-
'
|
|
104
|
+
'configuration_stages': value.configurationStages,
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
ErrorDetailFromJSONTyped,
|
|
38
38
|
ErrorDetailToJSON,
|
|
39
39
|
} from './ErrorDetail';
|
|
40
|
+
import {
|
|
41
|
+
SelectableStage,
|
|
42
|
+
SelectableStageFromJSON,
|
|
43
|
+
SelectableStageFromJSONTyped,
|
|
44
|
+
SelectableStageToJSON,
|
|
45
|
+
} from './SelectableStage';
|
|
40
46
|
|
|
41
47
|
/**
|
|
42
48
|
* Authenticator challenge
|
|
@@ -86,6 +92,12 @@ export interface AuthenticatorValidationChallenge {
|
|
|
86
92
|
* @memberof AuthenticatorValidationChallenge
|
|
87
93
|
*/
|
|
88
94
|
deviceChallenges: Array<DeviceChallenge>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Array<SelectableStage>}
|
|
98
|
+
* @memberof AuthenticatorValidationChallenge
|
|
99
|
+
*/
|
|
100
|
+
configurationStages: Array<SelectableStage>;
|
|
89
101
|
}
|
|
90
102
|
|
|
91
103
|
export function AuthenticatorValidationChallengeFromJSON(json: any): AuthenticatorValidationChallenge {
|
|
@@ -105,6 +117,7 @@ export function AuthenticatorValidationChallengeFromJSONTyped(json: any, ignoreD
|
|
|
105
117
|
'pendingUser': json['pending_user'],
|
|
106
118
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
107
119
|
'deviceChallenges': ((json['device_challenges'] as Array<any>).map(DeviceChallengeFromJSON)),
|
|
120
|
+
'configurationStages': ((json['configuration_stages'] as Array<any>).map(SelectableStageFromJSON)),
|
|
108
121
|
};
|
|
109
122
|
}
|
|
110
123
|
|
|
@@ -124,6 +137,7 @@ export function AuthenticatorValidationChallengeToJSON(value?: AuthenticatorVali
|
|
|
124
137
|
'pending_user': value.pendingUser,
|
|
125
138
|
'pending_user_avatar': value.pendingUserAvatar,
|
|
126
139
|
'device_challenges': ((value.deviceChallenges as Array<any>).map(DeviceChallengeToJSON)),
|
|
140
|
+
'configuration_stages': ((value.configurationStages as Array<any>).map(SelectableStageToJSON)),
|
|
127
141
|
};
|
|
128
142
|
}
|
|
129
143
|
|
|
@@ -38,6 +38,12 @@ export interface AuthenticatorValidationChallengeResponseRequest {
|
|
|
38
38
|
* @memberof AuthenticatorValidationChallengeResponseRequest
|
|
39
39
|
*/
|
|
40
40
|
selectedChallenge?: DeviceChallengeRequest;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AuthenticatorValidationChallengeResponseRequest
|
|
45
|
+
*/
|
|
46
|
+
selectedStage?: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {string}
|
|
@@ -70,6 +76,7 @@ export function AuthenticatorValidationChallengeResponseRequestFromJSONTyped(jso
|
|
|
70
76
|
|
|
71
77
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
72
78
|
'selectedChallenge': !exists(json, 'selected_challenge') ? undefined : DeviceChallengeRequestFromJSON(json['selected_challenge']),
|
|
79
|
+
'selectedStage': !exists(json, 'selected_stage') ? undefined : json['selected_stage'],
|
|
73
80
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
74
81
|
'webauthn': !exists(json, 'webauthn') ? undefined : json['webauthn'],
|
|
75
82
|
'duo': !exists(json, 'duo') ? undefined : json['duo'],
|
|
@@ -87,6 +94,7 @@ export function AuthenticatorValidationChallengeResponseRequestToJSON(value?: Au
|
|
|
87
94
|
|
|
88
95
|
'component': value.component,
|
|
89
96
|
'selected_challenge': DeviceChallengeRequestToJSON(value.selectedChallenge),
|
|
97
|
+
'selected_stage': value.selectedStage,
|
|
90
98
|
'code': value.code,
|
|
91
99
|
'webauthn': value.webauthn,
|
|
92
100
|
'duo': value.duo,
|
|
@@ -63,11 +63,11 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
|
63
63
|
*/
|
|
64
64
|
deviceClasses?: Array<DeviceClassesEnum>;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {string}
|
|
66
|
+
* Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.
|
|
67
|
+
* @type {Array<string>}
|
|
68
68
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
configurationStages?: Array<string>;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest {
|
|
@@ -84,7 +84,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any,
|
|
|
84
84
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowRequestFromJSON)),
|
|
85
85
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
86
86
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
|
|
87
|
-
'
|
|
87
|
+
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -101,7 +101,7 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value?: PatchedAu
|
|
|
101
101
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowRequestToJSON)),
|
|
102
102
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
103
103
|
'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
|
|
104
|
-
'
|
|
104
|
+
'configuration_stages': value.configurationStages,
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.1.5
|
|
8
|
+
* Contact: hello@beryju.org
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Serializer for stages which can be selected by users
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SelectableStage
|
|
20
|
+
*/
|
|
21
|
+
export interface SelectableStage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SelectableStage
|
|
26
|
+
*/
|
|
27
|
+
pk: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SelectableStage
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SelectableStage
|
|
38
|
+
*/
|
|
39
|
+
verboseName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SelectableStage
|
|
44
|
+
*/
|
|
45
|
+
metaModelName: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function SelectableStageFromJSON(json: any): SelectableStage {
|
|
49
|
+
return SelectableStageFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SelectableStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectableStage {
|
|
53
|
+
if ((json === undefined) || (json === null)) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'pk': json['pk'],
|
|
59
|
+
'name': json['name'],
|
|
60
|
+
'verboseName': json['verbose_name'],
|
|
61
|
+
'metaModelName': json['meta_model_name'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SelectableStageToJSON(value?: SelectableStage | null): any {
|
|
66
|
+
if (value === undefined) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
if (value === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'pk': value.pk,
|
|
75
|
+
'name': value.name,
|
|
76
|
+
'verbose_name': value.verboseName,
|
|
77
|
+
'meta_model_name': value.metaModelName,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -362,6 +362,7 @@ export * from './SMSDeviceRequest';
|
|
|
362
362
|
export * from './ScopeMapping';
|
|
363
363
|
export * from './ScopeMappingRequest';
|
|
364
364
|
export * from './SearchModeEnum';
|
|
365
|
+
export * from './SelectableStage';
|
|
365
366
|
export * from './ServiceConnection';
|
|
366
367
|
export * from './ServiceConnectionRequest';
|
|
367
368
|
export * from './ServiceConnectionState';
|