@goauthentik/api 2022.5.3-1653936924 → 2022.5.3-1654118208
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/dist/apis/StagesApi.d.ts +1 -0
- package/dist/apis/StagesApi.js +3 -0
- package/dist/esm/apis/StagesApi.d.ts +1 -0
- package/dist/esm/apis/StagesApi.js +3 -0
- package/dist/esm/models/AuthenticatorSMSStage.d.ts +6 -0
- package/dist/esm/models/AuthenticatorSMSStage.js +2 -0
- package/dist/esm/models/AuthenticatorSMSStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorSMSStageRequest.js +2 -0
- package/dist/esm/models/NotificationTransport.d.ts +1 -1
- package/dist/esm/models/NotificationTransport.js +1 -1
- package/dist/esm/models/NotificationTransportRequest.d.ts +1 -1
- package/dist/esm/models/NotificationTransportRequest.js +1 -1
- package/dist/esm/models/PatchedAuthenticatorSMSStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorSMSStageRequest.js +2 -0
- package/dist/models/AuthenticatorSMSStage.d.ts +6 -0
- package/dist/models/AuthenticatorSMSStage.js +2 -0
- package/dist/models/AuthenticatorSMSStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorSMSStageRequest.js +2 -0
- package/dist/models/NotificationTransport.d.ts +1 -1
- package/dist/models/NotificationTransport.js +1 -1
- package/dist/models/NotificationTransportRequest.d.ts +1 -1
- package/dist/models/NotificationTransportRequest.js +1 -1
- package/dist/models/PatchedAuthenticatorSMSStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorSMSStageRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/StagesApi.ts +5 -0
- package/src/models/AuthenticatorSMSStage.ts +8 -0
- package/src/models/AuthenticatorSMSStageRequest.ts +8 -0
- package/src/models/NotificationTransport.ts +2 -2
- package/src/models/NotificationTransportRequest.ts +2 -2
- package/src/models/PatchedAuthenticatorSMSStageRequest.ts +8 -0
package/dist/apis/StagesApi.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export interface StagesAuthenticatorSmsListRequest {
|
|
|
86
86
|
provider?: StagesAuthenticatorSmsListProviderEnum;
|
|
87
87
|
search?: string;
|
|
88
88
|
stageUuid?: string;
|
|
89
|
+
verifyOnly?: boolean;
|
|
89
90
|
}
|
|
90
91
|
export interface StagesAuthenticatorSmsPartialUpdateRequest {
|
|
91
92
|
stageUuid: string;
|
package/dist/apis/StagesApi.js
CHANGED
|
@@ -645,6 +645,9 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
645
645
|
if (requestParameters.stageUuid !== undefined) {
|
|
646
646
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
647
647
|
}
|
|
648
|
+
if (requestParameters.verifyOnly !== undefined) {
|
|
649
|
+
queryParameters['verify_only'] = requestParameters.verifyOnly;
|
|
650
|
+
}
|
|
648
651
|
const headerParameters = {};
|
|
649
652
|
if (this.configuration && this.configuration.apiKey) {
|
|
650
653
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
@@ -86,6 +86,7 @@ export interface StagesAuthenticatorSmsListRequest {
|
|
|
86
86
|
provider?: StagesAuthenticatorSmsListProviderEnum;
|
|
87
87
|
search?: string;
|
|
88
88
|
stageUuid?: string;
|
|
89
|
+
verifyOnly?: boolean;
|
|
89
90
|
}
|
|
90
91
|
export interface StagesAuthenticatorSmsPartialUpdateRequest {
|
|
91
92
|
stageUuid: string;
|
|
@@ -642,6 +642,9 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
642
642
|
if (requestParameters.stageUuid !== undefined) {
|
|
643
643
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
644
644
|
}
|
|
645
|
+
if (requestParameters.verifyOnly !== undefined) {
|
|
646
|
+
queryParameters['verify_only'] = requestParameters.verifyOnly;
|
|
647
|
+
}
|
|
645
648
|
const headerParameters = {};
|
|
646
649
|
if (this.configuration && this.configuration.apiKey) {
|
|
647
650
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
@@ -102,6 +102,12 @@ export interface AuthenticatorSMSStage {
|
|
|
102
102
|
* @memberof AuthenticatorSMSStage
|
|
103
103
|
*/
|
|
104
104
|
authType?: AuthTypeEnum;
|
|
105
|
+
/**
|
|
106
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
107
|
+
* @type {boolean}
|
|
108
|
+
* @memberof AuthenticatorSMSStage
|
|
109
|
+
*/
|
|
110
|
+
verifyOnly?: boolean;
|
|
105
111
|
}
|
|
106
112
|
export declare function AuthenticatorSMSStageFromJSON(json: any): AuthenticatorSMSStage;
|
|
107
113
|
export declare function AuthenticatorSMSStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStage;
|
|
@@ -37,6 +37,7 @@ export function AuthenticatorSMSStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'auth': json['auth'],
|
|
38
38
|
'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
|
|
39
39
|
'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
|
|
40
|
+
'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
export function AuthenticatorSMSStageToJSON(value) {
|
|
@@ -56,5 +57,6 @@ export function AuthenticatorSMSStageToJSON(value) {
|
|
|
56
57
|
'auth': value.auth,
|
|
57
58
|
'auth_password': value.authPassword,
|
|
58
59
|
'auth_type': AuthTypeEnumToJSON(value.authType),
|
|
60
|
+
'verify_only': value.verifyOnly,
|
|
59
61
|
};
|
|
60
62
|
}
|
|
@@ -72,6 +72,12 @@ export interface AuthenticatorSMSStageRequest {
|
|
|
72
72
|
* @memberof AuthenticatorSMSStageRequest
|
|
73
73
|
*/
|
|
74
74
|
authType?: AuthTypeEnum;
|
|
75
|
+
/**
|
|
76
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof AuthenticatorSMSStageRequest
|
|
79
|
+
*/
|
|
80
|
+
verifyOnly?: boolean;
|
|
75
81
|
}
|
|
76
82
|
export declare function AuthenticatorSMSStageRequestFromJSON(json: any): AuthenticatorSMSStageRequest;
|
|
77
83
|
export declare function AuthenticatorSMSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStageRequest;
|
|
@@ -32,6 +32,7 @@ export function AuthenticatorSMSStageRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
32
32
|
'auth': json['auth'],
|
|
33
33
|
'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
|
|
34
34
|
'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
|
|
35
|
+
'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export function AuthenticatorSMSStageRequestToJSON(value) {
|
|
@@ -51,5 +52,6 @@ export function AuthenticatorSMSStageRequestToJSON(value) {
|
|
|
51
52
|
'auth': value.auth,
|
|
52
53
|
'auth_password': value.authPassword,
|
|
53
54
|
'auth_type': AuthTypeEnumToJSON(value.authType),
|
|
55
|
+
'verify_only': value.verifyOnly,
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -23,7 +23,7 @@ export function NotificationTransportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
23
|
return {
|
|
24
24
|
'pk': json['pk'],
|
|
25
25
|
'name': json['name'],
|
|
26
|
-
'mode': NotificationTransportModeEnumFromJSON(json['mode']),
|
|
26
|
+
'mode': !exists(json, 'mode') ? undefined : NotificationTransportModeEnumFromJSON(json['mode']),
|
|
27
27
|
'modeVerbose': json['mode_verbose'],
|
|
28
28
|
'webhookUrl': !exists(json, 'webhook_url') ? undefined : json['webhook_url'],
|
|
29
29
|
'webhookMapping': !exists(json, 'webhook_mapping') ? undefined : json['webhook_mapping'],
|
|
@@ -22,7 +22,7 @@ export function NotificationTransportRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
24
|
'name': json['name'],
|
|
25
|
-
'mode': NotificationTransportModeEnumFromJSON(json['mode']),
|
|
25
|
+
'mode': !exists(json, 'mode') ? undefined : NotificationTransportModeEnumFromJSON(json['mode']),
|
|
26
26
|
'webhookUrl': !exists(json, 'webhook_url') ? undefined : json['webhook_url'],
|
|
27
27
|
'webhookMapping': !exists(json, 'webhook_mapping') ? undefined : json['webhook_mapping'],
|
|
28
28
|
'sendOnce': !exists(json, 'send_once') ? undefined : json['send_once'],
|
|
@@ -72,6 +72,12 @@ export interface PatchedAuthenticatorSMSStageRequest {
|
|
|
72
72
|
* @memberof PatchedAuthenticatorSMSStageRequest
|
|
73
73
|
*/
|
|
74
74
|
authType?: AuthTypeEnum;
|
|
75
|
+
/**
|
|
76
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof PatchedAuthenticatorSMSStageRequest
|
|
79
|
+
*/
|
|
80
|
+
verifyOnly?: boolean;
|
|
75
81
|
}
|
|
76
82
|
export declare function PatchedAuthenticatorSMSStageRequestFromJSON(json: any): PatchedAuthenticatorSMSStageRequest;
|
|
77
83
|
export declare function PatchedAuthenticatorSMSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorSMSStageRequest;
|
|
@@ -32,6 +32,7 @@ export function PatchedAuthenticatorSMSStageRequestFromJSONTyped(json, ignoreDis
|
|
|
32
32
|
'auth': !exists(json, 'auth') ? undefined : json['auth'],
|
|
33
33
|
'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
|
|
34
34
|
'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
|
|
35
|
+
'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export function PatchedAuthenticatorSMSStageRequestToJSON(value) {
|
|
@@ -51,5 +52,6 @@ export function PatchedAuthenticatorSMSStageRequestToJSON(value) {
|
|
|
51
52
|
'auth': value.auth,
|
|
52
53
|
'auth_password': value.authPassword,
|
|
53
54
|
'auth_type': AuthTypeEnumToJSON(value.authType),
|
|
55
|
+
'verify_only': value.verifyOnly,
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -102,6 +102,12 @@ export interface AuthenticatorSMSStage {
|
|
|
102
102
|
* @memberof AuthenticatorSMSStage
|
|
103
103
|
*/
|
|
104
104
|
authType?: AuthTypeEnum;
|
|
105
|
+
/**
|
|
106
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
107
|
+
* @type {boolean}
|
|
108
|
+
* @memberof AuthenticatorSMSStage
|
|
109
|
+
*/
|
|
110
|
+
verifyOnly?: boolean;
|
|
105
111
|
}
|
|
106
112
|
export declare function AuthenticatorSMSStageFromJSON(json: any): AuthenticatorSMSStage;
|
|
107
113
|
export declare function AuthenticatorSMSStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStage;
|
|
@@ -41,6 +41,7 @@ function AuthenticatorSMSStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'auth': json['auth'],
|
|
42
42
|
'authPassword': !(0, runtime_1.exists)(json, 'auth_password') ? undefined : json['auth_password'],
|
|
43
43
|
'authType': !(0, runtime_1.exists)(json, 'auth_type') ? undefined : (0, AuthTypeEnum_1.AuthTypeEnumFromJSON)(json['auth_type']),
|
|
44
|
+
'verifyOnly': !(0, runtime_1.exists)(json, 'verify_only') ? undefined : json['verify_only'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
exports.AuthenticatorSMSStageFromJSONTyped = AuthenticatorSMSStageFromJSONTyped;
|
|
@@ -61,6 +62,7 @@ function AuthenticatorSMSStageToJSON(value) {
|
|
|
61
62
|
'auth': value.auth,
|
|
62
63
|
'auth_password': value.authPassword,
|
|
63
64
|
'auth_type': (0, AuthTypeEnum_1.AuthTypeEnumToJSON)(value.authType),
|
|
65
|
+
'verify_only': value.verifyOnly,
|
|
64
66
|
};
|
|
65
67
|
}
|
|
66
68
|
exports.AuthenticatorSMSStageToJSON = AuthenticatorSMSStageToJSON;
|
|
@@ -72,6 +72,12 @@ export interface AuthenticatorSMSStageRequest {
|
|
|
72
72
|
* @memberof AuthenticatorSMSStageRequest
|
|
73
73
|
*/
|
|
74
74
|
authType?: AuthTypeEnum;
|
|
75
|
+
/**
|
|
76
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof AuthenticatorSMSStageRequest
|
|
79
|
+
*/
|
|
80
|
+
verifyOnly?: boolean;
|
|
75
81
|
}
|
|
76
82
|
export declare function AuthenticatorSMSStageRequestFromJSON(json: any): AuthenticatorSMSStageRequest;
|
|
77
83
|
export declare function AuthenticatorSMSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStageRequest;
|
|
@@ -36,6 +36,7 @@ function AuthenticatorSMSStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'auth': json['auth'],
|
|
37
37
|
'authPassword': !(0, runtime_1.exists)(json, 'auth_password') ? undefined : json['auth_password'],
|
|
38
38
|
'authType': !(0, runtime_1.exists)(json, 'auth_type') ? undefined : (0, AuthTypeEnum_1.AuthTypeEnumFromJSON)(json['auth_type']),
|
|
39
|
+
'verifyOnly': !(0, runtime_1.exists)(json, 'verify_only') ? undefined : json['verify_only'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
exports.AuthenticatorSMSStageRequestFromJSONTyped = AuthenticatorSMSStageRequestFromJSONTyped;
|
|
@@ -56,6 +57,7 @@ function AuthenticatorSMSStageRequestToJSON(value) {
|
|
|
56
57
|
'auth': value.auth,
|
|
57
58
|
'auth_password': value.authPassword,
|
|
58
59
|
'auth_type': (0, AuthTypeEnum_1.AuthTypeEnumToJSON)(value.authType),
|
|
60
|
+
'verify_only': value.verifyOnly,
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
63
|
exports.AuthenticatorSMSStageRequestToJSON = AuthenticatorSMSStageRequestToJSON;
|
|
@@ -27,7 +27,7 @@ function NotificationTransportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'pk': json['pk'],
|
|
29
29
|
'name': json['name'],
|
|
30
|
-
'mode': (0, NotificationTransportModeEnum_1.NotificationTransportModeEnumFromJSON)(json['mode']),
|
|
30
|
+
'mode': !(0, runtime_1.exists)(json, 'mode') ? undefined : (0, NotificationTransportModeEnum_1.NotificationTransportModeEnumFromJSON)(json['mode']),
|
|
31
31
|
'modeVerbose': json['mode_verbose'],
|
|
32
32
|
'webhookUrl': !(0, runtime_1.exists)(json, 'webhook_url') ? undefined : json['webhook_url'],
|
|
33
33
|
'webhookMapping': !(0, runtime_1.exists)(json, 'webhook_mapping') ? undefined : json['webhook_mapping'],
|
|
@@ -26,7 +26,7 @@ function NotificationTransportRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'],
|
|
29
|
-
'mode': (0, NotificationTransportModeEnum_1.NotificationTransportModeEnumFromJSON)(json['mode']),
|
|
29
|
+
'mode': !(0, runtime_1.exists)(json, 'mode') ? undefined : (0, NotificationTransportModeEnum_1.NotificationTransportModeEnumFromJSON)(json['mode']),
|
|
30
30
|
'webhookUrl': !(0, runtime_1.exists)(json, 'webhook_url') ? undefined : json['webhook_url'],
|
|
31
31
|
'webhookMapping': !(0, runtime_1.exists)(json, 'webhook_mapping') ? undefined : json['webhook_mapping'],
|
|
32
32
|
'sendOnce': !(0, runtime_1.exists)(json, 'send_once') ? undefined : json['send_once'],
|
|
@@ -72,6 +72,12 @@ export interface PatchedAuthenticatorSMSStageRequest {
|
|
|
72
72
|
* @memberof PatchedAuthenticatorSMSStageRequest
|
|
73
73
|
*/
|
|
74
74
|
authType?: AuthTypeEnum;
|
|
75
|
+
/**
|
|
76
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof PatchedAuthenticatorSMSStageRequest
|
|
79
|
+
*/
|
|
80
|
+
verifyOnly?: boolean;
|
|
75
81
|
}
|
|
76
82
|
export declare function PatchedAuthenticatorSMSStageRequestFromJSON(json: any): PatchedAuthenticatorSMSStageRequest;
|
|
77
83
|
export declare function PatchedAuthenticatorSMSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorSMSStageRequest;
|
|
@@ -36,6 +36,7 @@ function PatchedAuthenticatorSMSStageRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
36
36
|
'auth': !(0, runtime_1.exists)(json, 'auth') ? undefined : json['auth'],
|
|
37
37
|
'authPassword': !(0, runtime_1.exists)(json, 'auth_password') ? undefined : json['auth_password'],
|
|
38
38
|
'authType': !(0, runtime_1.exists)(json, 'auth_type') ? undefined : (0, AuthTypeEnum_1.AuthTypeEnumFromJSON)(json['auth_type']),
|
|
39
|
+
'verifyOnly': !(0, runtime_1.exists)(json, 'verify_only') ? undefined : json['verify_only'],
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
exports.PatchedAuthenticatorSMSStageRequestFromJSONTyped = PatchedAuthenticatorSMSStageRequestFromJSONTyped;
|
|
@@ -56,6 +57,7 @@ function PatchedAuthenticatorSMSStageRequestToJSON(value) {
|
|
|
56
57
|
'auth': value.auth,
|
|
57
58
|
'auth_password': value.authPassword,
|
|
58
59
|
'auth_type': (0, AuthTypeEnum_1.AuthTypeEnumToJSON)(value.authType),
|
|
60
|
+
'verify_only': value.verifyOnly,
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
63
|
exports.PatchedAuthenticatorSMSStageRequestToJSON = PatchedAuthenticatorSMSStageRequestToJSON;
|
package/package.json
CHANGED
package/src/apis/StagesApi.ts
CHANGED
|
@@ -374,6 +374,7 @@ export interface StagesAuthenticatorSmsListRequest {
|
|
|
374
374
|
provider?: StagesAuthenticatorSmsListProviderEnum;
|
|
375
375
|
search?: string;
|
|
376
376
|
stageUuid?: string;
|
|
377
|
+
verifyOnly?: boolean;
|
|
377
378
|
}
|
|
378
379
|
|
|
379
380
|
export interface StagesAuthenticatorSmsPartialUpdateRequest {
|
|
@@ -1801,6 +1802,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
1801
1802
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
1802
1803
|
}
|
|
1803
1804
|
|
|
1805
|
+
if (requestParameters.verifyOnly !== undefined) {
|
|
1806
|
+
queryParameters['verify_only'] = requestParameters.verifyOnly;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1804
1809
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1805
1810
|
|
|
1806
1811
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -122,6 +122,12 @@ export interface AuthenticatorSMSStage {
|
|
|
122
122
|
* @memberof AuthenticatorSMSStage
|
|
123
123
|
*/
|
|
124
124
|
authType?: AuthTypeEnum;
|
|
125
|
+
/**
|
|
126
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @memberof AuthenticatorSMSStage
|
|
129
|
+
*/
|
|
130
|
+
verifyOnly?: boolean;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
export function AuthenticatorSMSStageFromJSON(json: any): AuthenticatorSMSStage {
|
|
@@ -148,6 +154,7 @@ export function AuthenticatorSMSStageFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
148
154
|
'auth': json['auth'],
|
|
149
155
|
'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
|
|
150
156
|
'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
|
|
157
|
+
'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
|
|
151
158
|
};
|
|
152
159
|
}
|
|
153
160
|
|
|
@@ -169,6 +176,7 @@ export function AuthenticatorSMSStageToJSON(value?: AuthenticatorSMSStage | null
|
|
|
169
176
|
'auth': value.auth,
|
|
170
177
|
'auth_password': value.authPassword,
|
|
171
178
|
'auth_type': AuthTypeEnumToJSON(value.authType),
|
|
179
|
+
'verify_only': value.verifyOnly,
|
|
172
180
|
};
|
|
173
181
|
}
|
|
174
182
|
|
|
@@ -92,6 +92,12 @@ export interface AuthenticatorSMSStageRequest {
|
|
|
92
92
|
* @memberof AuthenticatorSMSStageRequest
|
|
93
93
|
*/
|
|
94
94
|
authType?: AuthTypeEnum;
|
|
95
|
+
/**
|
|
96
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof AuthenticatorSMSStageRequest
|
|
99
|
+
*/
|
|
100
|
+
verifyOnly?: boolean;
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
export function AuthenticatorSMSStageRequestFromJSON(json: any): AuthenticatorSMSStageRequest {
|
|
@@ -113,6 +119,7 @@ export function AuthenticatorSMSStageRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
113
119
|
'auth': json['auth'],
|
|
114
120
|
'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
|
|
115
121
|
'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
|
|
122
|
+
'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
|
|
116
123
|
};
|
|
117
124
|
}
|
|
118
125
|
|
|
@@ -134,6 +141,7 @@ export function AuthenticatorSMSStageRequestToJSON(value?: AuthenticatorSMSStage
|
|
|
134
141
|
'auth': value.auth,
|
|
135
142
|
'auth_password': value.authPassword,
|
|
136
143
|
'auth_type': AuthTypeEnumToJSON(value.authType),
|
|
144
|
+
'verify_only': value.verifyOnly,
|
|
137
145
|
};
|
|
138
146
|
}
|
|
139
147
|
|
|
@@ -43,7 +43,7 @@ export interface NotificationTransport {
|
|
|
43
43
|
* @type {NotificationTransportModeEnum}
|
|
44
44
|
* @memberof NotificationTransport
|
|
45
45
|
*/
|
|
46
|
-
mode
|
|
46
|
+
mode?: NotificationTransportModeEnum;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {string}
|
|
@@ -82,7 +82,7 @@ export function NotificationTransportFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
82
82
|
|
|
83
83
|
'pk': json['pk'],
|
|
84
84
|
'name': json['name'],
|
|
85
|
-
'mode': NotificationTransportModeEnumFromJSON(json['mode']),
|
|
85
|
+
'mode': !exists(json, 'mode') ? undefined : NotificationTransportModeEnumFromJSON(json['mode']),
|
|
86
86
|
'modeVerbose': json['mode_verbose'],
|
|
87
87
|
'webhookUrl': !exists(json, 'webhook_url') ? undefined : json['webhook_url'],
|
|
88
88
|
'webhookMapping': !exists(json, 'webhook_mapping') ? undefined : json['webhook_mapping'],
|
|
@@ -37,7 +37,7 @@ export interface NotificationTransportRequest {
|
|
|
37
37
|
* @type {NotificationTransportModeEnum}
|
|
38
38
|
* @memberof NotificationTransportRequest
|
|
39
39
|
*/
|
|
40
|
-
mode
|
|
40
|
+
mode?: NotificationTransportModeEnum;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export function NotificationTransportRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
69
69
|
return {
|
|
70
70
|
|
|
71
71
|
'name': json['name'],
|
|
72
|
-
'mode': NotificationTransportModeEnumFromJSON(json['mode']),
|
|
72
|
+
'mode': !exists(json, 'mode') ? undefined : NotificationTransportModeEnumFromJSON(json['mode']),
|
|
73
73
|
'webhookUrl': !exists(json, 'webhook_url') ? undefined : json['webhook_url'],
|
|
74
74
|
'webhookMapping': !exists(json, 'webhook_mapping') ? undefined : json['webhook_mapping'],
|
|
75
75
|
'sendOnce': !exists(json, 'send_once') ? undefined : json['send_once'],
|
|
@@ -92,6 +92,12 @@ export interface PatchedAuthenticatorSMSStageRequest {
|
|
|
92
92
|
* @memberof PatchedAuthenticatorSMSStageRequest
|
|
93
93
|
*/
|
|
94
94
|
authType?: AuthTypeEnum;
|
|
95
|
+
/**
|
|
96
|
+
* When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof PatchedAuthenticatorSMSStageRequest
|
|
99
|
+
*/
|
|
100
|
+
verifyOnly?: boolean;
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
export function PatchedAuthenticatorSMSStageRequestFromJSON(json: any): PatchedAuthenticatorSMSStageRequest {
|
|
@@ -113,6 +119,7 @@ export function PatchedAuthenticatorSMSStageRequestFromJSONTyped(json: any, igno
|
|
|
113
119
|
'auth': !exists(json, 'auth') ? undefined : json['auth'],
|
|
114
120
|
'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
|
|
115
121
|
'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
|
|
122
|
+
'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
|
|
116
123
|
};
|
|
117
124
|
}
|
|
118
125
|
|
|
@@ -134,6 +141,7 @@ export function PatchedAuthenticatorSMSStageRequestToJSON(value?: PatchedAuthent
|
|
|
134
141
|
'auth': value.auth,
|
|
135
142
|
'auth_password': value.authPassword,
|
|
136
143
|
'auth_type': AuthTypeEnumToJSON(value.authType),
|
|
144
|
+
'verify_only': value.verifyOnly,
|
|
137
145
|
};
|
|
138
146
|
}
|
|
139
147
|
|