@privy-io/react-auth 1.46.1 → 1.46.2-beta-20231107185542

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 CHANGED
@@ -227,6 +227,14 @@ type WalletRpcRequestDataType = {
227
227
  address: string;
228
228
  request: RpcRequestType;
229
229
  };
230
+ type MfaInitEnrollmentRequestDataType = {
231
+ accessToken: string;
232
+ method: string;
233
+ };
234
+ type MfaSubmitEnrollmentRequestDataType = {
235
+ accessToken: string;
236
+ code: string;
237
+ };
230
238
  type WalletCreateResponseDataType = {
231
239
  address: string;
232
240
  };
@@ -243,6 +251,12 @@ type WalletRpcResponseDataType = {
243
251
  address: string;
244
252
  response: RpcResponseType;
245
253
  };
254
+ type MfaInitEnrollmentResponseDataType = {
255
+ method: string;
256
+ };
257
+ type MfaSubmitEnrollmentResponseDataType = {
258
+ code: string;
259
+ };
246
260
  declare const PrivyIframeErrorTypes: readonly ["error", "invalid_request_arguments", "wallet_not_on_device", "invalid_recovery_pin", "insufficient_funds", "mfa_verification_failed", "mfa_verification_max_attempts_reached", "mfa_timeout"];
247
261
  type PrivyIframeErrorTypesType = (typeof PrivyIframeErrorTypes)[number];
248
262
  interface EmbeddedWalletProxy {
@@ -251,6 +265,8 @@ interface EmbeddedWalletProxy {
251
265
  recover: (data: WalletRecoverRequestDataType) => Promise<WalletRecoverResponseDataType>;
252
266
  setRecoveryPassword: (data: WalletSetRecoveryPasswordRequestDataType) => Promise<WalletSetRecoveryPasswordResponseDataType>;
253
267
  rpc: (data: WalletRpcRequestDataType) => Promise<WalletRpcResponseDataType>;
268
+ initEnrollMfa: (data: MfaInitEnrollmentRequestDataType) => Promise<MfaInitEnrollmentResponseDataType>;
269
+ submitEnrollMfa: (data: MfaSubmitEnrollmentRequestDataType) => Promise<MfaSubmitEnrollmentResponseDataType>;
254
270
  }
255
271
 
256
272
  declare abstract class PrivyError extends Error {