@gethydra/sdk 0.1.40 → 0.1.42
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 +39 -2
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4545,6 +4545,11 @@ interface operations {
|
|
|
4545
4545
|
po_prefix?: string;
|
|
4546
4546
|
/** @example INV */
|
|
4547
4547
|
invoice_prefix?: string;
|
|
4548
|
+
/**
|
|
4549
|
+
* @description Next order number to be assigned
|
|
4550
|
+
* @example 1001
|
|
4551
|
+
*/
|
|
4552
|
+
next_order_number?: number;
|
|
4548
4553
|
/** @example false */
|
|
4549
4554
|
require_email_verification?: boolean;
|
|
4550
4555
|
/**
|
|
@@ -19284,13 +19289,13 @@ interface operations {
|
|
|
19284
19289
|
};
|
|
19285
19290
|
};
|
|
19286
19291
|
responses: {
|
|
19287
|
-
/** @description Account created
|
|
19292
|
+
/** @description Account created — tokens returned or verification required */
|
|
19288
19293
|
201: {
|
|
19289
19294
|
headers: {
|
|
19290
19295
|
[name: string]: unknown;
|
|
19291
19296
|
};
|
|
19292
19297
|
content: {
|
|
19293
|
-
"application/json": components["schemas"]["TokenResponse"];
|
|
19298
|
+
"application/json": components["schemas"]["TokenResponse"] | components["schemas"]["MessageResponse"];
|
|
19294
19299
|
};
|
|
19295
19300
|
};
|
|
19296
19301
|
};
|
|
@@ -19465,6 +19470,36 @@ interface operations {
|
|
|
19465
19470
|
};
|
|
19466
19471
|
};
|
|
19467
19472
|
};
|
|
19473
|
+
resendVerificationEmail: {
|
|
19474
|
+
parameters: {
|
|
19475
|
+
query?: never;
|
|
19476
|
+
header?: never;
|
|
19477
|
+
path?: never;
|
|
19478
|
+
cookie?: never;
|
|
19479
|
+
};
|
|
19480
|
+
requestBody?: {
|
|
19481
|
+
content: {
|
|
19482
|
+
"application/json": {
|
|
19483
|
+
/**
|
|
19484
|
+
* Format: email
|
|
19485
|
+
* @example jane@example.com
|
|
19486
|
+
*/
|
|
19487
|
+
email: string;
|
|
19488
|
+
};
|
|
19489
|
+
};
|
|
19490
|
+
};
|
|
19491
|
+
responses: {
|
|
19492
|
+
/** @description Verification email sent (if account exists) */
|
|
19493
|
+
200: {
|
|
19494
|
+
headers: {
|
|
19495
|
+
[name: string]: unknown;
|
|
19496
|
+
};
|
|
19497
|
+
content: {
|
|
19498
|
+
"application/json": components["schemas"]["MessageResponse"];
|
|
19499
|
+
};
|
|
19500
|
+
};
|
|
19501
|
+
};
|
|
19502
|
+
};
|
|
19468
19503
|
getCustomerProfile: {
|
|
19469
19504
|
parameters: {
|
|
19470
19505
|
query?: never;
|
|
@@ -21628,6 +21663,8 @@ declare class AuthResource {
|
|
|
21628
21663
|
resetPassword(token: string, password: string): Promise<MessageResponse>;
|
|
21629
21664
|
/** Verify a customer's email using the token from the verification email. */
|
|
21630
21665
|
verifyEmail(token: string): Promise<MessageResponse>;
|
|
21666
|
+
/** Resend the email verification link. Always returns a generic message (prevents enumeration). */
|
|
21667
|
+
resendVerification(email: string): Promise<MessageResponse>;
|
|
21631
21668
|
}
|
|
21632
21669
|
|
|
21633
21670
|
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
|