@account-kit/signer 4.57.0 → 4.57.2-alpha.0

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.
@@ -7,6 +7,15 @@ import type {
7
7
  import type { Hex } from "viem";
8
8
  import type { AuthParams } from "../signer";
9
9
 
10
+ // [!region VerificationOtp]
11
+ export type VerificationOtp = {
12
+ /** The OTP ID returned from initOtp */
13
+ id: string;
14
+ /** The OTP code received by the user */
15
+ code: string;
16
+ };
17
+ // [!endregion VerificationOtp]
18
+
10
19
  export type CredentialCreationOptionOverrides = {
11
20
  publicKey?: Partial<CredentialCreationOptions["publicKey"]>;
12
21
  } & Pick<CredentialCreationOptions, "signal">;
@@ -14,6 +23,7 @@ export type CredentialCreationOptionOverrides = {
14
23
  // [!region User]
15
24
  export type User = {
16
25
  email?: string;
26
+ phone?: string;
17
27
  orgId: string;
18
28
  userId: string;
19
29
  address: Address;
@@ -193,6 +203,26 @@ export type SignerEndpoints = [
193
203
  orgId: string | null;
194
204
  };
195
205
  },
206
+ {
207
+ Route: "/v1/init-otp";
208
+ Body: {
209
+ contact: string;
210
+ otpType: "OTP_TYPE_SMS" | "OTP_TYPE_EMAIL";
211
+ };
212
+ Response: {
213
+ otpId: string;
214
+ };
215
+ },
216
+ {
217
+ Route: "/v1/verify-otp";
218
+ Body: {
219
+ otpId: string;
220
+ otpCode: string;
221
+ };
222
+ Response: {
223
+ verificationToken: string;
224
+ };
225
+ },
196
226
  {
197
227
  Route: "/v1/sign-payload";
198
228
  Body: {
@@ -209,6 +239,13 @@ export type SignerEndpoints = [
209
239
  };
210
240
  Response: void;
211
241
  },
242
+ {
243
+ Route: "/v1/update-phone-auth";
244
+ Body: {
245
+ stampedRequest: TSignedRequest;
246
+ };
247
+ Response: void;
248
+ },
212
249
  {
213
250
  Route: "/v1/add-oauth-provider";
214
251
  Body: {
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.57.0";
3
+ export const VERSION = "4.57.2-alpha.0";