@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.
- package/dist/esm/base.d.ts +53 -2
- package/dist/esm/base.js +59 -16
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/client/base.d.ts +45 -5
- package/dist/esm/client/base.js +127 -28
- package/dist/esm/client/base.js.map +1 -1
- package/dist/esm/client/types.d.ts +34 -0
- package/dist/esm/client/types.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/base.d.ts +53 -2
- package/dist/types/base.d.ts.map +1 -1
- package/dist/types/client/base.d.ts +45 -5
- package/dist/types/client/base.d.ts.map +1 -1
- package/dist/types/client/types.d.ts +34 -0
- package/dist/types/client/types.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/base.ts +86 -10
- package/src/client/base.ts +152 -18
- package/src/client/types.ts +37 -0
- package/src/version.ts +1 -1
package/src/client/types.ts
CHANGED
|
@@ -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