@gethydra/sdk 0.1.40 → 0.1.41
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.d.ts +2 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21628,6 +21628,8 @@ declare class AuthResource {
|
|
|
21628
21628
|
resetPassword(token: string, password: string): Promise<MessageResponse>;
|
|
21629
21629
|
/** Verify a customer's email using the token from the verification email. */
|
|
21630
21630
|
verifyEmail(token: string): Promise<MessageResponse>;
|
|
21631
|
+
/** Resend the email verification link. Always returns a generic message (prevents enumeration). */
|
|
21632
|
+
resendVerification(email: string): Promise<MessageResponse>;
|
|
21631
21633
|
}
|
|
21632
21634
|
|
|
21633
21635
|
interface UpdateProfileBody {
|
package/dist/index.js
CHANGED
|
@@ -1855,6 +1855,12 @@ var AuthResource = class {
|
|
|
1855
1855
|
body: { token }
|
|
1856
1856
|
});
|
|
1857
1857
|
}
|
|
1858
|
+
/** Resend the email verification link. Always returns a generic message (prevents enumeration). */
|
|
1859
|
+
async resendVerification(email) {
|
|
1860
|
+
return this.client.request("POST", "/v1/auth/resend-verification", {
|
|
1861
|
+
body: { email }
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1858
1864
|
};
|
|
1859
1865
|
|
|
1860
1866
|
// src/resources/me.ts
|