@zyphr-dev/node-sdk 0.1.52 → 0.1.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyphr-dev/node-sdk",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "Official Zyphr SDK for Node.js, React, and React Native",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -59,6 +59,12 @@ export interface ApplicationSelf {
59
59
  * @memberof ApplicationSelf
60
60
  */
61
61
  authEmailMode: ApplicationSelfAuthEmailModeEnum;
62
+ /**
63
+ * When true (sc-7680), passwords found in the HaveIBeenPwned breach corpus are rejected at register/reset (and returned `valid:false` by `/auth/password-strength`). When false (default), breach info is advisory only. Fail-open: a breach-source outage never blocks auth.
64
+ * @type {boolean}
65
+ * @memberof ApplicationSelf
66
+ */
67
+ passwordDisallowBreached: boolean;
62
68
  }
63
69
 
64
70
 
@@ -101,6 +107,7 @@ export function instanceOfApplicationSelf(value: object): value is ApplicationSe
101
107
  if (!('signingAlgorithm' in value) || value['signingAlgorithm'] === undefined) return false;
102
108
  if (!('testRecipients' in value) || value['testRecipients'] === undefined) return false;
103
109
  if (!('authEmailMode' in value) || value['authEmailMode'] === undefined) return false;
110
+ if (!('passwordDisallowBreached' in value) || value['passwordDisallowBreached'] === undefined) return false;
104
111
  return true;
105
112
  }
106
113
 
@@ -120,6 +127,7 @@ export function ApplicationSelfFromJSONTyped(json: any, ignoreDiscriminator: boo
120
127
  'signingAlgorithm': json['signing_algorithm'],
121
128
  'testRecipients': json['test_recipients'],
122
129
  'authEmailMode': json['auth_email_mode'],
130
+ 'passwordDisallowBreached': json['password_disallow_breached'],
123
131
  };
124
132
  }
125
133
 
@@ -140,6 +148,7 @@ export function ApplicationSelfToJSONTyped(value?: ApplicationSelf | null, ignor
140
148
  'signing_algorithm': value['signingAlgorithm'],
141
149
  'test_recipients': value['testRecipients'],
142
150
  'auth_email_mode': value['authEmailMode'],
151
+ 'password_disallow_breached': value['passwordDisallowBreached'],
143
152
  };
144
153
  }
145
154
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { mapValues } from '../runtime';
16
16
  /**
17
- * Provide test_recipients and/or auth_email_mode. Omitting one leaves that value unchanged; sending neither is a 400.
17
+ * Provide any of test_recipients, auth_email_mode, or password_disallow_breached. Omitting one leaves that value unchanged; sending none is a 400. Unknown fields are rejected (400).
18
18
  * @export
19
19
  * @interface SetSelfApplicationTestRecipientsRequest
20
20
  */
@@ -31,6 +31,12 @@ export interface SetSelfApplicationTestRecipientsRequest {
31
31
  * @memberof SetSelfApplicationTestRecipientsRequest
32
32
  */
33
33
  authEmailMode?: SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum;
34
+ /**
35
+ * Optional (sc-7680/sc-7697). When true, reject HIBP-breached passwords at register/reset. Omit to leave unchanged.
36
+ * @type {boolean}
37
+ * @memberof SetSelfApplicationTestRecipientsRequest
38
+ */
39
+ passwordDisallowBreached?: boolean;
34
40
  }
35
41
 
36
42
 
@@ -63,6 +69,7 @@ export function SetSelfApplicationTestRecipientsRequestFromJSONTyped(json: any,
63
69
 
64
70
  'testRecipients': json['test_recipients'] == null ? undefined : json['test_recipients'],
65
71
  'authEmailMode': json['auth_email_mode'] == null ? undefined : json['auth_email_mode'],
72
+ 'passwordDisallowBreached': json['password_disallow_breached'] == null ? undefined : json['password_disallow_breached'],
66
73
  };
67
74
  }
68
75
 
@@ -79,6 +86,7 @@ export function SetSelfApplicationTestRecipientsRequestToJSONTyped(value?: SetSe
79
86
 
80
87
  'test_recipients': value['testRecipients'],
81
88
  'auth_email_mode': value['authEmailMode'],
89
+ 'password_disallow_breached': value['passwordDisallowBreached'],
82
90
  };
83
91
  }
84
92