@zyphr-dev/node-sdk 0.1.50 → 0.1.52
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/index.cjs +262 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +238 -3
- package/dist/index.d.ts +238 -3
- package/dist/index.js +242 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +4 -0
- package/src/src/apis/AuthOAuthApi.ts +165 -0
- package/src/src/models/OAuthAuthorizeResponse.ts +88 -0
- package/src/src/models/OAuthAuthorizeResponseData.ts +73 -0
- package/src/src/models/OAuthLinkResponse.ts +88 -0
- package/src/src/models/OAuthLinkResponseData.ts +81 -0
- package/src/src/models/PasswordPolicy.ts +9 -0
- package/src/src/models/PasswordStrength.ts +20 -2
- package/src/src/models/index.ts +4 -0
|
@@ -20,13 +20,25 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface PasswordStrength {
|
|
22
22
|
/**
|
|
23
|
-
* Whether the password would be accepted by the server's enforcement path. A password that is valid here is accepted by registration.
|
|
23
|
+
* Whether the password would be accepted by the server's enforcement path. A password that is valid here is accepted by registration. When the application enables `disallow_breached`, a breached password is `valid: false` here AND rejected by register/reset (no drift).
|
|
24
24
|
* @type {boolean}
|
|
25
25
|
* @memberof PasswordStrength
|
|
26
26
|
*/
|
|
27
27
|
valid: boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Whether the password appears in the HaveIBeenPwned breach corpus. This is a distinct signal from `valid` and is always returned regardless of the app's `disallow_breached` setting. Fail-open: if the breach source is unavailable this is `false`.
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof PasswordStrength
|
|
32
|
+
*/
|
|
33
|
+
breached: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* HIBP occurrence count for the password (0 if not breached or if the breach lookup failed/was unavailable).
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PasswordStrength
|
|
38
|
+
*/
|
|
39
|
+
breachCount: number;
|
|
40
|
+
/**
|
|
41
|
+
* Strength score, 0-100. A pure composition measure — independent of the breach signal.
|
|
30
42
|
* @type {number}
|
|
31
43
|
* @memberof PasswordStrength
|
|
32
44
|
*/
|
|
@@ -63,6 +75,8 @@ export type PasswordStrengthLabelEnum = typeof PasswordStrengthLabelEnum[keyof t
|
|
|
63
75
|
*/
|
|
64
76
|
export function instanceOfPasswordStrength(value: object): value is PasswordStrength {
|
|
65
77
|
if (!('valid' in value) || value['valid'] === undefined) return false;
|
|
78
|
+
if (!('breached' in value) || value['breached'] === undefined) return false;
|
|
79
|
+
if (!('breachCount' in value) || value['breachCount'] === undefined) return false;
|
|
66
80
|
if (!('score' in value) || value['score'] === undefined) return false;
|
|
67
81
|
if (!('label' in value) || value['label'] === undefined) return false;
|
|
68
82
|
if (!('feedback' in value) || value['feedback'] === undefined) return false;
|
|
@@ -80,6 +94,8 @@ export function PasswordStrengthFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
80
94
|
return {
|
|
81
95
|
|
|
82
96
|
'valid': json['valid'],
|
|
97
|
+
'breached': json['breached'],
|
|
98
|
+
'breachCount': json['breach_count'],
|
|
83
99
|
'score': json['score'],
|
|
84
100
|
'label': json['label'],
|
|
85
101
|
'feedback': json['feedback'],
|
|
@@ -98,6 +114,8 @@ export function PasswordStrengthToJSONTyped(value?: PasswordStrength | null, ign
|
|
|
98
114
|
return {
|
|
99
115
|
|
|
100
116
|
'valid': value['valid'],
|
|
117
|
+
'breached': value['breached'],
|
|
118
|
+
'breach_count': value['breachCount'],
|
|
101
119
|
'score': value['score'],
|
|
102
120
|
'label': value['label'],
|
|
103
121
|
'feedback': value['feedback'],
|
package/src/src/models/index.ts
CHANGED
|
@@ -203,6 +203,8 @@ export * from './MfaVerifyEnrollmentResponseData';
|
|
|
203
203
|
export * from './MfaVerifyRequest';
|
|
204
204
|
export * from './OAuthAuthorizationUrlResponse';
|
|
205
205
|
export * from './OAuthAuthorizationUrlResponseData';
|
|
206
|
+
export * from './OAuthAuthorizeResponse';
|
|
207
|
+
export * from './OAuthAuthorizeResponseData';
|
|
206
208
|
export * from './OAuthCallbackRequest';
|
|
207
209
|
export * from './OAuthCallbackResponse';
|
|
208
210
|
export * from './OAuthCallbackResponseData';
|
|
@@ -211,6 +213,8 @@ export * from './OAuthConnectionInfoResponse';
|
|
|
211
213
|
export * from './OAuthConnectionInfoResponseData';
|
|
212
214
|
export * from './OAuthConnectionsResponse';
|
|
213
215
|
export * from './OAuthConnectionsResponseData';
|
|
216
|
+
export * from './OAuthLinkResponse';
|
|
217
|
+
export * from './OAuthLinkResponseData';
|
|
214
218
|
export * from './OAuthProvider';
|
|
215
219
|
export * from './OAuthProviderInfo';
|
|
216
220
|
export * from './OAuthProviderName';
|