@privy-io/public-api
Advanced tools
Comparing version 1.4.0 to 1.5.0-beta-20231101213309
@@ -27,2 +27,6 @@ var $gPw21$zod = require("zod"); | ||
} | ||
function $parcel$interopDefault(a) { | ||
return a && a.__esModule ? a.default : a; | ||
} | ||
var $8e1a703ea15241d4$exports = {}; | ||
@@ -158,2 +162,4 @@ var $21cbae5d84a72acb$exports = {}; | ||
allowed_domains: (0, $gPw21$zod.z).array((0, $gPw21$zod.z).string()), | ||
allowed_native_app_ids: (0, $gPw21$zod.z).array((0, $gPw21$zod.z).string()), | ||
allowed_native_app_url_schemes: (0, $gPw21$zod.z).array((0, $gPw21$zod.z).string()), | ||
accountId: (0, $gPw21$zod.z).string(), | ||
@@ -430,2 +436,4 @@ wallet_auth: (0, $gPw21$zod.z).boolean(), | ||
$parcel$export($c51512243cb13f0a$exports, "LinkedAccount", () => $c51512243cb13f0a$export$70ab2a322f92399); | ||
$parcel$export($c51512243cb13f0a$exports, "SmsMfaMethod", () => $c51512243cb13f0a$export$3250154351927c42); | ||
$parcel$export($c51512243cb13f0a$exports, "LinkedMfaMethod", () => $c51512243cb13f0a$export$7d2a870b119c9ff4); | ||
$parcel$export($c51512243cb13f0a$exports, "User", () => $c51512243cb13f0a$export$1f44aaf2ec115b54); | ||
@@ -545,5 +553,11 @@ $parcel$export($c51512243cb13f0a$exports, "AuthenticatedUser", () => $c51512243cb13f0a$export$7de20aee312d6767); | ||
]); | ||
const $c51512243cb13f0a$export$3250154351927c42 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("sms"), | ||
verified_at: (0, $gPw21$zod.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$7d2a870b119c9ff4 = $c51512243cb13f0a$export$3250154351927c42; | ||
const $c51512243cb13f0a$export$1f44aaf2ec115b54 = (0, $gPw21$zod.z).object({ | ||
id: (0, $gPw21$zod.z).string(), | ||
linked_accounts: (0, $gPw21$zod.z).array($c51512243cb13f0a$export$70ab2a322f92399), | ||
mfa_methods: (0, $gPw21$zod.z).array($c51512243cb13f0a$export$7d2a870b119c9ff4), | ||
created_at: (0, $gPw21$zod.z).number() | ||
@@ -568,2 +582,49 @@ }); | ||
var $e51580f656e097ca$exports = {}; | ||
$parcel$export($e51580f656e097ca$exports, "MfaSmsInitInput", () => $e51580f656e097ca$export$5f85d1e59e4b8093); | ||
$parcel$export($e51580f656e097ca$exports, "MfaSmsAuthenticateEnrollInput", () => $e51580f656e097ca$export$d79e41bdbeb33bc8); | ||
$parcel$export($e51580f656e097ca$exports, "MfaSmsEnrollInput", () => $e51580f656e097ca$export$44ba6bee6f8c49bc); | ||
$parcel$export($e51580f656e097ca$exports, "MfaSmsVerifyInput", () => $e51580f656e097ca$export$826840b7b6a37c22); | ||
const $e51580f656e097ca$var$MfaSmsInitVerifyInput = (0, ($parcel$interopDefault($gPw21$zod))).object({ | ||
action: (0, ($parcel$interopDefault($gPw21$zod))).literal("verify") | ||
}).strict(); | ||
const $e51580f656e097ca$var$MfaSmsInitEnrollInput = (0, ($parcel$interopDefault($gPw21$zod))).object({ | ||
action: (0, ($parcel$interopDefault($gPw21$zod))).literal("enroll"), | ||
phoneNumber: (0, $7d172b99b20a397c$export$3d623a7758cab61e) | ||
}).strict(); | ||
const $e51580f656e097ca$export$5f85d1e59e4b8093 = (0, ($parcel$interopDefault($gPw21$zod))).union([ | ||
$e51580f656e097ca$var$MfaSmsInitVerifyInput, | ||
$e51580f656e097ca$var$MfaSmsInitEnrollInput | ||
]); | ||
const $e51580f656e097ca$export$d79e41bdbeb33bc8 = (0, ($parcel$interopDefault($gPw21$zod))).object({ | ||
action: (0, ($parcel$interopDefault($gPw21$zod))).literal("enroll").optional(), | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f), | ||
phoneNumber: (0, $7d172b99b20a397c$export$3d623a7758cab61e) | ||
}).strict(); | ||
const $e51580f656e097ca$export$44ba6bee6f8c49bc = (0, ($parcel$interopDefault($gPw21$zod))).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f), | ||
phoneNumber: (0, $7d172b99b20a397c$export$3d623a7758cab61e) | ||
}).strict(); | ||
const $e51580f656e097ca$export$826840b7b6a37c22 = (0, ($parcel$interopDefault($gPw21$zod))).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f) | ||
}).strict(); | ||
var $84f1ae627896b140$exports = {}; | ||
$parcel$export($84f1ae627896b140$exports, "EmbeddedWalletsAuthShareInput", () => $84f1ae627896b140$export$331effc924d2a30); | ||
$parcel$export($84f1ae627896b140$exports, "EmbeddedWalletsRecoveryAuthShareInput", () => $84f1ae627896b140$export$c472cc85d0230b02); | ||
const $84f1ae627896b140$export$331effc924d2a30 = (0, ($parcel$interopDefault($gPw21$zod))).object({ | ||
device_id: (0, ($parcel$interopDefault($gPw21$zod))).string(), | ||
mfaToken: (0, ($parcel$interopDefault($gPw21$zod))).string().optional() | ||
}).strict(); | ||
const $84f1ae627896b140$export$c472cc85d0230b02 = (0, ($parcel$interopDefault($gPw21$zod))).object({ | ||
mfa_token: (0, ($parcel$interopDefault($gPw21$zod))).string().optional() | ||
}).strict(); | ||
$parcel$exportWildcard($d1478bd5b928650c$exports, $09464b2a3ff172cb$exports); | ||
@@ -581,2 +642,4 @@ $parcel$exportWildcard($d1478bd5b928650c$exports, $6f7f180cfca83514$exports); | ||
$parcel$exportWildcard($d1478bd5b928650c$exports, $c51512243cb13f0a$exports); | ||
$parcel$exportWildcard($d1478bd5b928650c$exports, $e51580f656e097ca$exports); | ||
$parcel$exportWildcard($d1478bd5b928650c$exports, $84f1ae627896b140$exports); | ||
@@ -952,2 +1015,68 @@ | ||
var $2565ca75e52f5f50$exports = {}; | ||
$parcel$export($2565ca75e52f5f50$exports, "passwordlessMfaSmsAuthenticate", () => $2565ca75e52f5f50$export$79b36ac8da5ba1c); | ||
$parcel$export($2565ca75e52f5f50$exports, "passwordlessMfaSmsEnroll", () => $2565ca75e52f5f50$export$b96f0b3a93538b78); | ||
$parcel$export($2565ca75e52f5f50$exports, "passwordlessMfaSmsVerify", () => $2565ca75e52f5f50$export$9491c682da3abe40); | ||
$parcel$export($2565ca75e52f5f50$exports, "passwordlessMfaSmsInit", () => $2565ca75e52f5f50$export$8070fc0d9ba1ea8b); | ||
const $2565ca75e52f5f50$export$79b36ac8da5ba1c = new (0, $gPw21$privyioapibase.Route)({ | ||
name: "passwordlessMfaSmsAuthenticate", | ||
method: (0, $gPw21$privyioapibase.HttpMethod).POST, | ||
path: "/api/v1/mfa/passwordless_sms/authenticate", | ||
pathQuerySchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
pathParamsSchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
bodySchema: (0, $e51580f656e097ca$export$d79e41bdbeb33bc8), | ||
responseSchema: { | ||
[(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $c51512243cb13f0a$export$1f44aaf2ec115b54), "Authentication successful"), | ||
[(0, $gPw21$privyioapibase.StatusCode).UNPROCESSABLE_CONTENT]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Invalid code"), | ||
[(0, $gPw21$privyioapibase.StatusCode).TOO_MANY_REQUESTS]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Too many requests") | ||
} | ||
}); | ||
const $2565ca75e52f5f50$export$b96f0b3a93538b78 = new (0, $gPw21$privyioapibase.Route)({ | ||
name: "passwordlessMfaSmsEnroll", | ||
method: (0, $gPw21$privyioapibase.HttpMethod).POST, | ||
path: "/api/v1/mfa/passwordless_sms/enroll", | ||
pathQuerySchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
pathParamsSchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
bodySchema: (0, $e51580f656e097ca$export$44ba6bee6f8c49bc), | ||
responseSchema: { | ||
[(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $c51512243cb13f0a$export$1f44aaf2ec115b54), "Authentication successful"), | ||
[(0, $gPw21$privyioapibase.StatusCode).UNPROCESSABLE_CONTENT]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Invalid code"), | ||
[(0, $gPw21$privyioapibase.StatusCode).TOO_MANY_REQUESTS]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Too many requests") | ||
} | ||
}); | ||
const $2565ca75e52f5f50$export$9491c682da3abe40 = new (0, $gPw21$privyioapibase.Route)({ | ||
name: "passwordlessMfaSmsVerify", | ||
method: (0, $gPw21$privyioapibase.HttpMethod).POST, | ||
path: "/api/v1/mfa/passwordless_sms/verify", | ||
pathQuerySchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
pathParamsSchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
bodySchema: (0, $e51580f656e097ca$export$826840b7b6a37c22), | ||
responseSchema: { | ||
[(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $c51512243cb13f0a$export$1f44aaf2ec115b54), "Authentication successful"), | ||
[(0, $gPw21$privyioapibase.StatusCode).UNPROCESSABLE_CONTENT]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Invalid code"), | ||
[(0, $gPw21$privyioapibase.StatusCode).TOO_MANY_REQUESTS]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Too many requests") | ||
} | ||
}); | ||
const $2565ca75e52f5f50$export$8070fc0d9ba1ea8b = new (0, $gPw21$privyioapibase.Route)({ | ||
name: "passwordlessMfaSmsInit", | ||
method: (0, $gPw21$privyioapibase.HttpMethod).POST, | ||
path: "/api/v1/mfa/passwordless_sms/init", | ||
pathQuerySchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
pathParamsSchema: (0, ($parcel$interopDefault($gPw21$zod))).object({}), | ||
bodySchema: (0, $e51580f656e097ca$export$5f85d1e59e4b8093), | ||
responseSchema: { | ||
[(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $15ab060afcc8df1c$export$8aed050e83c45a78), "Init successful"), | ||
[(0, $gPw21$privyioapibase.StatusCode).UNPROCESSABLE_CONTENT]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Phone number already connected to another user"), | ||
[(0, $gPw21$privyioapibase.StatusCode).NOT_AUTHENTICATED]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "User is not on the allowlist"), | ||
[(0, $gPw21$privyioapibase.StatusCode).TOO_MANY_REQUESTS]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.APIError), "Too many requests") | ||
} | ||
}); | ||
$parcel$exportWildcard($8e1a703ea15241d4$exports, $21cbae5d84a72acb$exports); | ||
@@ -961,2 +1090,3 @@ $parcel$exportWildcard($8e1a703ea15241d4$exports, $c73973fc3d74361c$exports); | ||
$parcel$exportWildcard($8e1a703ea15241d4$exports, $5bfcd6ffd8ce001a$exports); | ||
$parcel$exportWildcard($8e1a703ea15241d4$exports, $2565ca75e52f5f50$exports); | ||
@@ -963,0 +1093,0 @@ |
{ | ||
"name": "@privy-io/public-api", | ||
"version": "1.4.0", | ||
"version": "1.5.0-beta-20231101213309", | ||
"engines": { | ||
@@ -50,3 +50,3 @@ "npm": ">=8.0.0 <10.0.0", | ||
"dependencies": { | ||
"@privy-io/api-base": "*", | ||
"@privy-io/api-base": "0.5.0-beta-20231101213309", | ||
"ethers": "^5.7.2", | ||
@@ -58,4 +58,5 @@ "libphonenumber-js": "^1.10.31", | ||
"@privy-io/eslint-config-custom": "*", | ||
"@privy-io/parcel-config": "*", | ||
"@privy-io/tsconfig": "*", | ||
"parcel": "2.10.0" | ||
"parcel": "2.10.1" | ||
}, | ||
@@ -62,0 +63,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
248109
5064
1
4
2
+ Added@privy-io/api-base@0.5.0-beta-20231101213309(transitive)
- Removed@privy-io/api-base@1.4.2(transitive)