@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.
@@ -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
- * Strength score, 0-100.
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'],
@@ -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';