@goauthentik/api 2021.10.4-1639428562 → 2021.10.4-1639495478
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 +3 -0
- package/dist/apis/PoliciesApi.d.ts +1 -0
- package/dist/apis/PoliciesApi.js +1 -0
- package/dist/apis/StagesApi.d.ts +10 -0
- package/dist/apis/StagesApi.js +14 -1
- package/dist/esm/apis/PoliciesApi.d.ts +1 -0
- package/dist/esm/apis/PoliciesApi.js +1 -0
- package/dist/esm/apis/StagesApi.d.ts +10 -0
- package/dist/esm/apis/StagesApi.js +13 -0
- package/dist/esm/models/AppleChallengeResponseRequest.d.ts +27 -0
- package/dist/esm/models/AppleChallengeResponseRequest.js +36 -0
- package/dist/esm/models/AppleLoginChallenge.d.ts +74 -0
- package/dist/esm/models/AppleLoginChallenge.js +52 -0
- package/dist/esm/models/AuthenticateWebAuthnStage.d.ts +7 -0
- package/dist/esm/models/AuthenticateWebAuthnStage.js +3 -0
- package/dist/esm/models/AuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/esm/models/AuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/EventActions.d.ts +1 -0
- package/dist/esm/models/EventActions.js +1 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/Invitation.d.ts +3 -3
- package/dist/esm/models/Invitation.js +2 -2
- package/dist/esm/models/LoginChallengeTypes.d.ts +3 -0
- package/dist/esm/models/LoginChallengeTypes.js +5 -0
- package/dist/esm/models/PatchedAuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/esm/models/PatchedAuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/esm/models/UserVerificationEnum.d.ts +24 -0
- package/dist/esm/models/UserVerificationEnum.js +33 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/AppleChallengeResponseRequest.d.ts +27 -0
- package/dist/models/AppleChallengeResponseRequest.js +42 -0
- package/dist/models/AppleLoginChallenge.d.ts +74 -0
- package/dist/models/AppleLoginChallenge.js +58 -0
- package/dist/models/AuthenticateWebAuthnStage.d.ts +7 -0
- package/dist/models/AuthenticateWebAuthnStage.js +3 -0
- package/dist/models/AuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/models/AuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/EventActions.d.ts +1 -0
- package/dist/models/EventActions.js +1 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/Invitation.d.ts +3 -3
- package/dist/models/Invitation.js +2 -2
- package/dist/models/LoginChallengeTypes.d.ts +3 -0
- package/dist/models/LoginChallengeTypes.js +5 -0
- package/dist/models/PatchedAuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/models/PatchedAuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/models/UserVerificationEnum.d.ts +24 -0
- package/dist/models/UserVerificationEnum.js +39 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/PoliciesApi.ts +1 -0
- package/src/apis/StagesApi.ts +14 -0
- package/src/models/AppleChallengeResponseRequest.ts +56 -0
- package/src/models/AppleLoginChallenge.ts +131 -0
- package/src/models/AuthenticateWebAuthnStage.ts +14 -0
- package/src/models/AuthenticateWebAuthnStageRequest.ts +14 -0
- package/src/models/ChallengeTypes.ts +11 -1
- package/src/models/EventActions.ts +1 -0
- package/src/models/FlowChallengeResponseRequest.ts +11 -1
- package/src/models/Invitation.ts +8 -8
- package/src/models/LoginChallengeTypes.ts +11 -1
- package/src/models/PatchedAuthenticateWebAuthnStageRequest.ts +14 -0
- package/src/models/UserVerificationEnum.ts +37 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -23,6 +23,8 @@ src/index.ts
|
|
|
23
23
|
src/models/AccessDeniedChallenge.ts
|
|
24
24
|
src/models/App.ts
|
|
25
25
|
src/models/AppEnum.ts
|
|
26
|
+
src/models/AppleChallengeResponseRequest.ts
|
|
27
|
+
src/models/AppleLoginChallenge.ts
|
|
26
28
|
src/models/Application.ts
|
|
27
29
|
src/models/ApplicationRequest.ts
|
|
28
30
|
src/models/AuthTypeEnum.ts
|
|
@@ -435,6 +437,7 @@ src/models/UserServiceAccountRequest.ts
|
|
|
435
437
|
src/models/UserServiceAccountResponse.ts
|
|
436
438
|
src/models/UserSetting.ts
|
|
437
439
|
src/models/UserSourceConnection.ts
|
|
440
|
+
src/models/UserVerificationEnum.ts
|
|
438
441
|
src/models/UserWriteStage.ts
|
|
439
442
|
src/models/UserWriteStageRequest.ts
|
|
440
443
|
src/models/ValidationError.ts
|
|
@@ -927,6 +927,7 @@ export declare enum PoliciesEventMatcherListActionEnum {
|
|
|
927
927
|
ConfigurationError = "configuration_error",
|
|
928
928
|
Custom = "custom_",
|
|
929
929
|
EmailSent = "email_sent",
|
|
930
|
+
FlowExecution = "flow_execution",
|
|
930
931
|
ImpersonationEnded = "impersonation_ended",
|
|
931
932
|
ImpersonationStarted = "impersonation_started",
|
|
932
933
|
InvitationUsed = "invitation_used",
|
package/dist/apis/PoliciesApi.js
CHANGED
|
@@ -2611,6 +2611,7 @@ var PoliciesEventMatcherListActionEnum;
|
|
|
2611
2611
|
PoliciesEventMatcherListActionEnum["ConfigurationError"] = "configuration_error";
|
|
2612
2612
|
PoliciesEventMatcherListActionEnum["Custom"] = "custom_";
|
|
2613
2613
|
PoliciesEventMatcherListActionEnum["EmailSent"] = "email_sent";
|
|
2614
|
+
PoliciesEventMatcherListActionEnum["FlowExecution"] = "flow_execution";
|
|
2614
2615
|
PoliciesEventMatcherListActionEnum["ImpersonationEnded"] = "impersonation_ended";
|
|
2615
2616
|
PoliciesEventMatcherListActionEnum["ImpersonationStarted"] = "impersonation_started";
|
|
2616
2617
|
PoliciesEventMatcherListActionEnum["InvitationUsed"] = "invitation_used";
|
package/dist/apis/StagesApi.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export interface StagesAuthenticatorWebauthnListRequest {
|
|
|
204
204
|
pageSize?: number;
|
|
205
205
|
search?: string;
|
|
206
206
|
stageUuid?: string;
|
|
207
|
+
userVerification?: StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
207
208
|
}
|
|
208
209
|
export interface StagesAuthenticatorWebauthnPartialUpdateRequest {
|
|
209
210
|
stageUuid: string;
|
|
@@ -1953,6 +1954,15 @@ export declare enum StagesAuthenticatorValidateListNotConfiguredActionEnum {
|
|
|
1953
1954
|
Deny = "deny",
|
|
1954
1955
|
Skip = "skip"
|
|
1955
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* @export
|
|
1959
|
+
* @enum {string}
|
|
1960
|
+
*/
|
|
1961
|
+
export declare enum StagesAuthenticatorWebauthnListUserVerificationEnum {
|
|
1962
|
+
Discouraged = "discouraged",
|
|
1963
|
+
Preferred = "preferred",
|
|
1964
|
+
Required = "required"
|
|
1965
|
+
}
|
|
1956
1966
|
/**
|
|
1957
1967
|
* @export
|
|
1958
1968
|
* @enum {string}
|
package/dist/apis/StagesApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.StagesPromptPromptsListTypeEnum = exports.StagesConsentListModeEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorTotpListDigitsEnum = exports.StagesAuthenticatorSmsListProviderEnum = exports.StagesAuthenticatorSmsListAuthTypeEnum = exports.StagesApi = void 0;
|
|
25
|
+
exports.StagesPromptPromptsListTypeEnum = exports.StagesConsentListModeEnum = exports.StagesAuthenticatorWebauthnListUserVerificationEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorTotpListDigitsEnum = exports.StagesAuthenticatorSmsListProviderEnum = exports.StagesAuthenticatorSmsListAuthTypeEnum = exports.StagesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const models_1 = require("../models");
|
|
28
28
|
/**
|
|
@@ -1623,6 +1623,9 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
1623
1623
|
if (requestParameters.stageUuid !== undefined) {
|
|
1624
1624
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
1625
1625
|
}
|
|
1626
|
+
if (requestParameters.userVerification !== undefined) {
|
|
1627
|
+
queryParameters['user_verification'] = requestParameters.userVerification;
|
|
1628
|
+
}
|
|
1626
1629
|
const headerParameters = {};
|
|
1627
1630
|
if (this.configuration && this.configuration.apiKey) {
|
|
1628
1631
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
@@ -5521,6 +5524,16 @@ var StagesAuthenticatorValidateListNotConfiguredActionEnum;
|
|
|
5521
5524
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Deny"] = "deny";
|
|
5522
5525
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Skip"] = "skip";
|
|
5523
5526
|
})(StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum || (exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = {}));
|
|
5527
|
+
/**
|
|
5528
|
+
* @export
|
|
5529
|
+
* @enum {string}
|
|
5530
|
+
*/
|
|
5531
|
+
var StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
5532
|
+
(function (StagesAuthenticatorWebauthnListUserVerificationEnum) {
|
|
5533
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Discouraged"] = "discouraged";
|
|
5534
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Preferred"] = "preferred";
|
|
5535
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Required"] = "required";
|
|
5536
|
+
})(StagesAuthenticatorWebauthnListUserVerificationEnum = exports.StagesAuthenticatorWebauthnListUserVerificationEnum || (exports.StagesAuthenticatorWebauthnListUserVerificationEnum = {}));
|
|
5524
5537
|
/**
|
|
5525
5538
|
* @export
|
|
5526
5539
|
* @enum {string}
|
|
@@ -927,6 +927,7 @@ export declare enum PoliciesEventMatcherListActionEnum {
|
|
|
927
927
|
ConfigurationError = "configuration_error",
|
|
928
928
|
Custom = "custom_",
|
|
929
929
|
EmailSent = "email_sent",
|
|
930
|
+
FlowExecution = "flow_execution",
|
|
930
931
|
ImpersonationEnded = "impersonation_ended",
|
|
931
932
|
ImpersonationStarted = "impersonation_started",
|
|
932
933
|
InvitationUsed = "invitation_used",
|
|
@@ -2607,6 +2607,7 @@ export var PoliciesEventMatcherListActionEnum;
|
|
|
2607
2607
|
PoliciesEventMatcherListActionEnum["ConfigurationError"] = "configuration_error";
|
|
2608
2608
|
PoliciesEventMatcherListActionEnum["Custom"] = "custom_";
|
|
2609
2609
|
PoliciesEventMatcherListActionEnum["EmailSent"] = "email_sent";
|
|
2610
|
+
PoliciesEventMatcherListActionEnum["FlowExecution"] = "flow_execution";
|
|
2610
2611
|
PoliciesEventMatcherListActionEnum["ImpersonationEnded"] = "impersonation_ended";
|
|
2611
2612
|
PoliciesEventMatcherListActionEnum["ImpersonationStarted"] = "impersonation_started";
|
|
2612
2613
|
PoliciesEventMatcherListActionEnum["InvitationUsed"] = "invitation_used";
|
|
@@ -204,6 +204,7 @@ export interface StagesAuthenticatorWebauthnListRequest {
|
|
|
204
204
|
pageSize?: number;
|
|
205
205
|
search?: string;
|
|
206
206
|
stageUuid?: string;
|
|
207
|
+
userVerification?: StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
207
208
|
}
|
|
208
209
|
export interface StagesAuthenticatorWebauthnPartialUpdateRequest {
|
|
209
210
|
stageUuid: string;
|
|
@@ -1953,6 +1954,15 @@ export declare enum StagesAuthenticatorValidateListNotConfiguredActionEnum {
|
|
|
1953
1954
|
Deny = "deny",
|
|
1954
1955
|
Skip = "skip"
|
|
1955
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* @export
|
|
1959
|
+
* @enum {string}
|
|
1960
|
+
*/
|
|
1961
|
+
export declare enum StagesAuthenticatorWebauthnListUserVerificationEnum {
|
|
1962
|
+
Discouraged = "discouraged",
|
|
1963
|
+
Preferred = "preferred",
|
|
1964
|
+
Required = "required"
|
|
1965
|
+
}
|
|
1956
1966
|
/**
|
|
1957
1967
|
* @export
|
|
1958
1968
|
* @enum {string}
|
|
@@ -1620,6 +1620,9 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
1620
1620
|
if (requestParameters.stageUuid !== undefined) {
|
|
1621
1621
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
1622
1622
|
}
|
|
1623
|
+
if (requestParameters.userVerification !== undefined) {
|
|
1624
|
+
queryParameters['user_verification'] = requestParameters.userVerification;
|
|
1625
|
+
}
|
|
1623
1626
|
const headerParameters = {};
|
|
1624
1627
|
if (this.configuration && this.configuration.apiKey) {
|
|
1625
1628
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
@@ -5517,6 +5520,16 @@ export var StagesAuthenticatorValidateListNotConfiguredActionEnum;
|
|
|
5517
5520
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Deny"] = "deny";
|
|
5518
5521
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Skip"] = "skip";
|
|
5519
5522
|
})(StagesAuthenticatorValidateListNotConfiguredActionEnum || (StagesAuthenticatorValidateListNotConfiguredActionEnum = {}));
|
|
5523
|
+
/**
|
|
5524
|
+
* @export
|
|
5525
|
+
* @enum {string}
|
|
5526
|
+
*/
|
|
5527
|
+
export var StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
5528
|
+
(function (StagesAuthenticatorWebauthnListUserVerificationEnum) {
|
|
5529
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Discouraged"] = "discouraged";
|
|
5530
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Preferred"] = "preferred";
|
|
5531
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Required"] = "required";
|
|
5532
|
+
})(StagesAuthenticatorWebauthnListUserVerificationEnum || (StagesAuthenticatorWebauthnListUserVerificationEnum = {}));
|
|
5520
5533
|
/**
|
|
5521
5534
|
* @export
|
|
5522
5535
|
* @enum {string}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
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
|
+
* Pseudo class for plex response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AppleChallengeResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AppleChallengeResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppleChallengeResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
component?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function AppleChallengeResponseRequestFromJSON(json: any): AppleChallengeResponseRequest;
|
|
26
|
+
export declare function AppleChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleChallengeResponseRequest;
|
|
27
|
+
export declare function AppleChallengeResponseRequestToJSON(value?: AppleChallengeResponseRequest | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
export function AppleChallengeResponseRequestFromJSON(json) {
|
|
16
|
+
return AppleChallengeResponseRequestFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function AppleChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function AppleChallengeResponseRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'component': value.component,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
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
|
+
import { ChallengeChoices } from './ChallengeChoices';
|
|
13
|
+
import { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
|
+
import { ErrorDetail } from './ErrorDetail';
|
|
15
|
+
/**
|
|
16
|
+
* Special challenge for apple-native authentication flow, which happens on the client.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AppleLoginChallenge
|
|
19
|
+
*/
|
|
20
|
+
export interface AppleLoginChallenge {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ChallengeChoices}
|
|
24
|
+
* @memberof AppleLoginChallenge
|
|
25
|
+
*/
|
|
26
|
+
type: ChallengeChoices;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ContextualFlowInfo}
|
|
30
|
+
* @memberof AppleLoginChallenge
|
|
31
|
+
*/
|
|
32
|
+
flowInfo?: ContextualFlowInfo;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof AppleLoginChallenge
|
|
37
|
+
*/
|
|
38
|
+
component?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
42
|
+
* @memberof AppleLoginChallenge
|
|
43
|
+
*/
|
|
44
|
+
responseErrors?: {
|
|
45
|
+
[key: string]: Array<ErrorDetail>;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof AppleLoginChallenge
|
|
51
|
+
*/
|
|
52
|
+
clientId: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AppleLoginChallenge
|
|
57
|
+
*/
|
|
58
|
+
scope: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof AppleLoginChallenge
|
|
63
|
+
*/
|
|
64
|
+
redirectUri: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof AppleLoginChallenge
|
|
69
|
+
*/
|
|
70
|
+
state: string;
|
|
71
|
+
}
|
|
72
|
+
export declare function AppleLoginChallengeFromJSON(json: any): AppleLoginChallenge;
|
|
73
|
+
export declare function AppleLoginChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleLoginChallenge;
|
|
74
|
+
export declare function AppleLoginChallengeToJSON(value?: AppleLoginChallenge | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
|
+
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
|
+
export function AppleLoginChallengeFromJSON(json) {
|
|
18
|
+
return AppleLoginChallengeFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function AppleLoginChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
|
+
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
|
+
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
|
+
'clientId': json['client_id'],
|
|
30
|
+
'scope': json['scope'],
|
|
31
|
+
'redirectUri': json['redirect_uri'],
|
|
32
|
+
'state': json['state'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function AppleLoginChallengeToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'type': ChallengeChoicesToJSON(value.type),
|
|
44
|
+
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
45
|
+
'component': value.component,
|
|
46
|
+
'response_errors': value.responseErrors,
|
|
47
|
+
'client_id': value.clientId,
|
|
48
|
+
'scope': value.scope,
|
|
49
|
+
'redirect_uri': value.redirectUri,
|
|
50
|
+
'state': value.state,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Flow } from './Flow';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -64,6 +65,12 @@ export interface AuthenticateWebAuthnStage {
|
|
|
64
65
|
* @memberof AuthenticateWebAuthnStage
|
|
65
66
|
*/
|
|
66
67
|
configureFlow?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {UserVerificationEnum}
|
|
71
|
+
* @memberof AuthenticateWebAuthnStage
|
|
72
|
+
*/
|
|
73
|
+
userVerification?: UserVerificationEnum;
|
|
67
74
|
}
|
|
68
75
|
export declare function AuthenticateWebAuthnStageFromJSON(json: any): AuthenticateWebAuthnStage;
|
|
69
76
|
export declare function AuthenticateWebAuthnStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStage;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { FlowFromJSON, FlowToJSON, } from './Flow';
|
|
16
|
+
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
|
|
16
17
|
export function AuthenticateWebAuthnStageFromJSON(json) {
|
|
17
18
|
return AuthenticateWebAuthnStageFromJSONTyped(json, false);
|
|
18
19
|
}
|
|
@@ -29,6 +30,7 @@ export function AuthenticateWebAuthnStageFromJSONTyped(json, ignoreDiscriminator
|
|
|
29
30
|
'metaModelName': json['meta_model_name'],
|
|
30
31
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowFromJSON)),
|
|
31
32
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
33
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
export function AuthenticateWebAuthnStageToJSON(value) {
|
|
@@ -42,5 +44,6 @@ export function AuthenticateWebAuthnStageToJSON(value) {
|
|
|
42
44
|
'name': value.name,
|
|
43
45
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowToJSON)),
|
|
44
46
|
'configure_flow': value.configureFlow,
|
|
47
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { FlowRequest } from './FlowRequest';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface AuthenticateWebAuthnStageRequest {
|
|
|
34
35
|
* @memberof AuthenticateWebAuthnStageRequest
|
|
35
36
|
*/
|
|
36
37
|
configureFlow?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {UserVerificationEnum}
|
|
41
|
+
* @memberof AuthenticateWebAuthnStageRequest
|
|
42
|
+
*/
|
|
43
|
+
userVerification?: UserVerificationEnum;
|
|
37
44
|
}
|
|
38
45
|
export declare function AuthenticateWebAuthnStageRequestFromJSON(json: any): AuthenticateWebAuthnStageRequest;
|
|
39
46
|
export declare function AuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStageRequest;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { FlowRequestFromJSON, FlowRequestToJSON, } from './FlowRequest';
|
|
16
|
+
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
|
|
16
17
|
export function AuthenticateWebAuthnStageRequestFromJSON(json) {
|
|
17
18
|
return AuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
|
|
18
19
|
}
|
|
@@ -24,6 +25,7 @@ export function AuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscri
|
|
|
24
25
|
'name': json['name'],
|
|
25
26
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequestFromJSON)),
|
|
26
27
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
28
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
export function AuthenticateWebAuthnStageRequestToJSON(value) {
|
|
@@ -37,5 +39,6 @@ export function AuthenticateWebAuthnStageRequestToJSON(value) {
|
|
|
37
39
|
'name': value.name,
|
|
38
40
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequestToJSON)),
|
|
39
41
|
'configure_flow': value.configureFlow,
|
|
42
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AccessDeniedChallenge } from './AccessDeniedChallenge';
|
|
13
|
+
import { AppleLoginChallenge } from './AppleLoginChallenge';
|
|
13
14
|
import { AuthenticatorDuoChallenge } from './AuthenticatorDuoChallenge';
|
|
14
15
|
import { AuthenticatorSMSChallenge } from './AuthenticatorSMSChallenge';
|
|
15
16
|
import { AuthenticatorStaticChallenge } from './AuthenticatorStaticChallenge';
|
|
@@ -33,6 +34,8 @@ import { ShellChallenge } from './ShellChallenge';
|
|
|
33
34
|
* @export
|
|
34
35
|
*/
|
|
35
36
|
export declare type ChallengeTypes = {
|
|
37
|
+
component: 'ak-flow-sources-oauth-apple';
|
|
38
|
+
} & AppleLoginChallenge | {
|
|
36
39
|
component: 'ak-flow-sources-plex';
|
|
37
40
|
} & PlexAuthenticationChallenge | {
|
|
38
41
|
component: 'ak-stage-access-denied';
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { AccessDeniedChallengeFromJSONTyped, AccessDeniedChallengeToJSON, } from './AccessDeniedChallenge';
|
|
15
|
+
import { AppleLoginChallengeFromJSONTyped, AppleLoginChallengeToJSON, } from './AppleLoginChallenge';
|
|
15
16
|
import { AuthenticatorDuoChallengeFromJSONTyped, AuthenticatorDuoChallengeToJSON, } from './AuthenticatorDuoChallenge';
|
|
16
17
|
import { AuthenticatorSMSChallengeFromJSONTyped, AuthenticatorSMSChallengeToJSON, } from './AuthenticatorSMSChallenge';
|
|
17
18
|
import { AuthenticatorStaticChallengeFromJSONTyped, AuthenticatorStaticChallengeToJSON, } from './AuthenticatorStaticChallenge';
|
|
@@ -37,6 +38,8 @@ export function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
return json;
|
|
38
39
|
}
|
|
39
40
|
switch (json['component']) {
|
|
41
|
+
case 'ak-flow-sources-oauth-apple':
|
|
42
|
+
return Object.assign(Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-oauth-apple' });
|
|
40
43
|
case 'ak-flow-sources-plex':
|
|
41
44
|
return Object.assign(Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-plex' });
|
|
42
45
|
case 'ak-stage-access-denied':
|
|
@@ -85,6 +88,8 @@ export function ChallengeTypesToJSON(value) {
|
|
|
85
88
|
return null;
|
|
86
89
|
}
|
|
87
90
|
switch (value['component']) {
|
|
91
|
+
case 'ak-flow-sources-oauth-apple':
|
|
92
|
+
return AppleLoginChallengeToJSON(value);
|
|
88
93
|
case 'ak-flow-sources-plex':
|
|
89
94
|
return PlexAuthenticationChallengeToJSON(value);
|
|
90
95
|
case 'ak-stage-access-denied':
|
|
@@ -28,6 +28,7 @@ export declare enum EventActions {
|
|
|
28
28
|
SourceLinked = "source_linked",
|
|
29
29
|
ImpersonationStarted = "impersonation_started",
|
|
30
30
|
ImpersonationEnded = "impersonation_ended",
|
|
31
|
+
FlowExecution = "flow_execution",
|
|
31
32
|
PolicyExecution = "policy_execution",
|
|
32
33
|
PolicyException = "policy_exception",
|
|
33
34
|
PropertyMappingException = "property_mapping_exception",
|
|
@@ -31,6 +31,7 @@ export var EventActions;
|
|
|
31
31
|
EventActions["SourceLinked"] = "source_linked";
|
|
32
32
|
EventActions["ImpersonationStarted"] = "impersonation_started";
|
|
33
33
|
EventActions["ImpersonationEnded"] = "impersonation_ended";
|
|
34
|
+
EventActions["FlowExecution"] = "flow_execution";
|
|
34
35
|
EventActions["PolicyExecution"] = "policy_execution";
|
|
35
36
|
EventActions["PolicyException"] = "policy_exception";
|
|
36
37
|
EventActions["PropertyMappingException"] = "property_mapping_exception";
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AppleChallengeResponseRequest } from './AppleChallengeResponseRequest';
|
|
12
13
|
import { AuthenticatorDuoChallengeResponseRequest } from './AuthenticatorDuoChallengeResponseRequest';
|
|
13
14
|
import { AuthenticatorSMSChallengeResponseRequest } from './AuthenticatorSMSChallengeResponseRequest';
|
|
14
15
|
import { AuthenticatorStaticChallengeResponseRequest } from './AuthenticatorStaticChallengeResponseRequest';
|
|
@@ -30,6 +31,8 @@ import { PromptChallengeResponseRequest } from './PromptChallengeResponseRequest
|
|
|
30
31
|
* @export
|
|
31
32
|
*/
|
|
32
33
|
export declare type FlowChallengeResponseRequest = {
|
|
34
|
+
component: 'ak-flow-sources-oauth-apple';
|
|
35
|
+
} & AppleChallengeResponseRequest | {
|
|
33
36
|
component: 'ak-flow-sources-plex';
|
|
34
37
|
} & PlexAuthenticationChallengeResponseRequest | {
|
|
35
38
|
component: 'ak-stage-authenticator-duo';
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { AppleChallengeResponseRequestFromJSONTyped, AppleChallengeResponseRequestToJSON, } from './AppleChallengeResponseRequest';
|
|
14
15
|
import { AuthenticatorDuoChallengeResponseRequestFromJSONTyped, AuthenticatorDuoChallengeResponseRequestToJSON, } from './AuthenticatorDuoChallengeResponseRequest';
|
|
15
16
|
import { AuthenticatorSMSChallengeResponseRequestFromJSONTyped, AuthenticatorSMSChallengeResponseRequestToJSON, } from './AuthenticatorSMSChallengeResponseRequest';
|
|
16
17
|
import { AuthenticatorStaticChallengeResponseRequestFromJSONTyped, AuthenticatorStaticChallengeResponseRequestToJSON, } from './AuthenticatorStaticChallengeResponseRequest';
|
|
@@ -34,6 +35,8 @@ export function FlowChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
34
35
|
return json;
|
|
35
36
|
}
|
|
36
37
|
switch (json['component']) {
|
|
38
|
+
case 'ak-flow-sources-oauth-apple':
|
|
39
|
+
return Object.assign(Object.assign({}, AppleChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-flow-sources-oauth-apple' });
|
|
37
40
|
case 'ak-flow-sources-plex':
|
|
38
41
|
return Object.assign(Object.assign({}, PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-flow-sources-plex' });
|
|
39
42
|
case 'ak-stage-authenticator-duo':
|
|
@@ -76,6 +79,8 @@ export function FlowChallengeResponseRequestToJSON(value) {
|
|
|
76
79
|
return null;
|
|
77
80
|
}
|
|
78
81
|
switch (value['component']) {
|
|
82
|
+
case 'ak-flow-sources-oauth-apple':
|
|
83
|
+
return AppleChallengeResponseRequestToJSON(value);
|
|
79
84
|
case 'ak-flow-sources-plex':
|
|
80
85
|
return PlexAuthenticationChallengeResponseRequestToJSON(value);
|
|
81
86
|
case 'ak-stage-authenticator-duo':
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { GroupMember } from './GroupMember';
|
|
13
13
|
/**
|
|
14
14
|
* Invitation Serializer
|
|
15
15
|
* @export
|
|
@@ -38,10 +38,10 @@ export interface Invitation {
|
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
|
-
* @type {
|
|
41
|
+
* @type {GroupMember}
|
|
42
42
|
* @memberof Invitation
|
|
43
43
|
*/
|
|
44
|
-
readonly createdBy:
|
|
44
|
+
readonly createdBy: GroupMember | null;
|
|
45
45
|
/**
|
|
46
46
|
* When enabled, the invitation will be deleted after usage.
|
|
47
47
|
* @type {boolean}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import {
|
|
15
|
+
import { GroupMemberFromJSON, } from './GroupMember';
|
|
16
16
|
export function InvitationFromJSON(json) {
|
|
17
17
|
return InvitationFromJSONTyped(json, false);
|
|
18
18
|
}
|
|
@@ -24,7 +24,7 @@ export function InvitationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
'pk': json['pk'],
|
|
25
25
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
26
26
|
'fixedData': !exists(json, 'fixed_data') ? undefined : json['fixed_data'],
|
|
27
|
-
'createdBy':
|
|
27
|
+
'createdBy': GroupMemberFromJSON(json['created_by']),
|
|
28
28
|
'singleUse': !exists(json, 'single_use') ? undefined : json['single_use'],
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AppleLoginChallenge } from './AppleLoginChallenge';
|
|
12
13
|
import { PlexAuthenticationChallenge } from './PlexAuthenticationChallenge';
|
|
13
14
|
import { RedirectChallenge } from './RedirectChallenge';
|
|
14
15
|
/**
|
|
@@ -17,6 +18,8 @@ import { RedirectChallenge } from './RedirectChallenge';
|
|
|
17
18
|
* @export
|
|
18
19
|
*/
|
|
19
20
|
export declare type LoginChallengeTypes = {
|
|
21
|
+
component: 'ak-flow-sources-oauth-apple';
|
|
22
|
+
} & AppleLoginChallenge | {
|
|
20
23
|
component: 'ak-flow-sources-plex';
|
|
21
24
|
} & PlexAuthenticationChallenge | {
|
|
22
25
|
component: 'xak-flow-redirect';
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { AppleLoginChallengeFromJSONTyped, AppleLoginChallengeToJSON, } from './AppleLoginChallenge';
|
|
14
15
|
import { PlexAuthenticationChallengeFromJSONTyped, PlexAuthenticationChallengeToJSON, } from './PlexAuthenticationChallenge';
|
|
15
16
|
import { RedirectChallengeFromJSONTyped, RedirectChallengeToJSON, } from './RedirectChallenge';
|
|
16
17
|
export function LoginChallengeTypesFromJSON(json) {
|
|
@@ -21,6 +22,8 @@ export function LoginChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
22
|
return json;
|
|
22
23
|
}
|
|
23
24
|
switch (json['component']) {
|
|
25
|
+
case 'ak-flow-sources-oauth-apple':
|
|
26
|
+
return Object.assign(Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-oauth-apple' });
|
|
24
27
|
case 'ak-flow-sources-plex':
|
|
25
28
|
return Object.assign(Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-plex' });
|
|
26
29
|
case 'xak-flow-redirect':
|
|
@@ -37,6 +40,8 @@ export function LoginChallengeTypesToJSON(value) {
|
|
|
37
40
|
return null;
|
|
38
41
|
}
|
|
39
42
|
switch (value['component']) {
|
|
43
|
+
case 'ak-flow-sources-oauth-apple':
|
|
44
|
+
return AppleLoginChallengeToJSON(value);
|
|
40
45
|
case 'ak-flow-sources-plex':
|
|
41
46
|
return PlexAuthenticationChallengeToJSON(value);
|
|
42
47
|
case 'xak-flow-redirect':
|