@zyphr-dev/node-sdk 0.1.55 → 0.1.56

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 CHANGED
@@ -9154,7 +9154,8 @@ function InviteEndUser200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
9154
9154
  return {
9155
9155
  "userId": json["user_id"] == null ? void 0 : json["user_id"],
9156
9156
  "created": json["created"] == null ? void 0 : json["created"],
9157
- "linkSent": json["link_sent"] == null ? void 0 : json["link_sent"]
9157
+ "linkSent": json["link_sent"] == null ? void 0 : json["link_sent"],
9158
+ "linkSuppressedReason": json["link_suppressed_reason"] == null ? void 0 : json["link_suppressed_reason"]
9158
9159
  };
9159
9160
  }
9160
9161
  function InviteEndUser200ResponseDataToJSON(json) {
@@ -9167,7 +9168,8 @@ function InviteEndUser200ResponseDataToJSONTyped(value, ignoreDiscriminator = fa
9167
9168
  return {
9168
9169
  "user_id": value["userId"],
9169
9170
  "created": value["created"],
9170
- "link_sent": value["linkSent"]
9171
+ "link_sent": value["linkSent"],
9172
+ "link_suppressed_reason": value["linkSuppressedReason"]
9171
9173
  };
9172
9174
  }
9173
9175
 
@@ -21692,7 +21694,7 @@ var AuthOrganizationsApi = class extends BaseAPI {
21692
21694
  // src/src/apis/AuthPasswordResetApi.ts
21693
21695
  var AuthPasswordResetApi = class extends BaseAPI {
21694
21696
  /**
21695
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
21697
+ * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`.
21696
21698
  * Request a password reset
21697
21699
  */
21698
21700
  async forgotPasswordRaw(requestParameters, initOverrides) {
@@ -21721,7 +21723,7 @@ var AuthPasswordResetApi = class extends BaseAPI {
21721
21723
  return new JSONApiResponse(response, (jsonValue) => SuccessResultFromJSON(jsonValue));
21722
21724
  }
21723
21725
  /**
21724
- * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration.
21726
+ * Request a password reset email. Creates a reset token and sends an email to the user. Always returns success to prevent email enumeration — the response is identical whether or not the address is registered. An identity with **no password set** still receives a link, which sets a first password. This covers users migrated from a provider that cannot export password hashes. The one case where no email is sent (beyond an unknown address) is an identity that has no password but *does* have another way in — a linked OAuth provider and/or a passkey. Those users are not locked out, so no set-password link is sent; the attempt is recorded as a suppressed message visible via `GET /emails`.
21725
21727
  * Request a password reset
21726
21728
  */
21727
21729
  async forgotPassword(forgotPasswordRequest, initOverrides) {