@privy-io/public-api
Advanced tools
Comparing version 1.1.0 to 1.2.0-beta-20230928004335
@@ -193,6 +193,6 @@ var $gPw21$privyioapibase = require("@privy-io/api-base"); | ||
const $426dcdc16665ab40$export$5ac03ce02eff89f4 = (0, $gPw21$privyioapibasezod.z).object({ | ||
event_name: (0, $gPw21$privyioapibasezod.z).string().max(255), | ||
client_id: (0, $gPw21$privyioapibasezod.z).string().max(255), | ||
payload: (0, $gPw21$privyioapibasezod.z).record((0, $gPw21$privyioapibasezod.z).any()).optional() | ||
const $426dcdc16665ab40$export$5ac03ce02eff89f4 = (0, $gPw21$privyioapibase.z).object({ | ||
event_name: (0, $gPw21$privyioapibase.z).string().max(255), | ||
client_id: (0, $gPw21$privyioapibase.z).string().max(255), | ||
payload: (0, $gPw21$privyioapibase.z).record((0, $gPw21$privyioapibase.z).any()).optional() | ||
}); | ||
@@ -209,11 +209,11 @@ | ||
const $cc6ae740eaa7d607$export$ca08e252312baf4 = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $cc6ae740eaa7d607$export$ca08e252312baf4 = (0, $gPw21$privyioapibase.z).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f), | ||
email: (0, $7d172b99b20a397c$export$5a6b8595f311cbb0) | ||
}); | ||
const $cc6ae740eaa7d607$export$ef1330eae1875774 = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $cc6ae740eaa7d607$export$ef1330eae1875774 = (0, $gPw21$privyioapibase.z).object({ | ||
email: (0, $7d172b99b20a397c$export$5a6b8595f311cbb0), | ||
token: (0, $gPw21$privyioapibasezod.z).string().optional() | ||
token: (0, $gPw21$privyioapibase.z).string().optional() | ||
}); | ||
const $cc6ae740eaa7d607$export$b0a53354e7257ebb = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $cc6ae740eaa7d607$export$b0a53354e7257ebb = (0, $gPw21$privyioapibase.z).object({ | ||
address: (0, $7d172b99b20a397c$export$5a6b8595f311cbb0) | ||
@@ -228,9 +228,9 @@ }); | ||
const $d67e9279ab9cd501$export$d3aaee921473d84f = (0, $gPw21$privyioapibasezod.z).object({ | ||
kty: (0, $gPw21$privyioapibasezod.z).string(), | ||
use: (0, $gPw21$privyioapibasezod.z).enum([ | ||
const $d67e9279ab9cd501$export$d3aaee921473d84f = (0, $gPw21$privyioapibase.z).object({ | ||
kty: (0, $gPw21$privyioapibase.z).string(), | ||
use: (0, $gPw21$privyioapibase.z).enum([ | ||
"sig", | ||
"enc" | ||
]).optional(), | ||
key_ops: (0, $gPw21$privyioapibasezod.z).array((0, $gPw21$privyioapibasezod.z).enum([ | ||
key_ops: (0, $gPw21$privyioapibase.z).array((0, $gPw21$privyioapibase.z).enum([ | ||
"sign", | ||
@@ -245,16 +245,16 @@ "verify", | ||
])).optional(), | ||
alg: (0, $gPw21$privyioapibasezod.z).enum([ | ||
alg: (0, $gPw21$privyioapibase.z).enum([ | ||
"RS256" | ||
]), | ||
kid: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
x5u: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
x5c: (0, $gPw21$privyioapibasezod.z).array((0, $gPw21$privyioapibasezod.z).string()).optional(), | ||
x5t: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
"x5t#S256": (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
n: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
e: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
d: (0, $gPw21$privyioapibasezod.z).string().optional() | ||
kid: (0, $gPw21$privyioapibase.z).string().optional(), | ||
x5u: (0, $gPw21$privyioapibase.z).string().optional(), | ||
x5c: (0, $gPw21$privyioapibase.z).array((0, $gPw21$privyioapibase.z).string()).optional(), | ||
x5t: (0, $gPw21$privyioapibase.z).string().optional(), | ||
"x5t#S256": (0, $gPw21$privyioapibase.z).string().optional(), | ||
n: (0, $gPw21$privyioapibase.z).string().optional(), | ||
e: (0, $gPw21$privyioapibase.z).string().optional(), | ||
d: (0, $gPw21$privyioapibase.z).string().optional() | ||
}); | ||
const $d67e9279ab9cd501$export$c8fd35505bb1704a = (0, $gPw21$privyioapibasezod.z).object({ | ||
keys: (0, $gPw21$privyioapibasezod.z).array($d67e9279ab9cd501$export$d3aaee921473d84f) | ||
const $d67e9279ab9cd501$export$c8fd35505bb1704a = (0, $gPw21$privyioapibase.z).object({ | ||
keys: (0, $gPw21$privyioapibase.z).array($d67e9279ab9cd501$export$d3aaee921473d84f) | ||
}); | ||
@@ -271,4 +271,4 @@ | ||
$parcel$export($795b90806d3d0612$exports, "OAuthInitResponse", () => $795b90806d3d0612$export$98ade43b6adcef0b); | ||
$parcel$export($795b90806d3d0612$exports, "SUPPORTED_OAUTH_PROVIDERS", () => $48a7486931b01664$export$b5266d2768e29008); | ||
// Casting as const makes it immutable. | ||
@@ -284,14 +284,14 @@ const $48a7486931b01664$export$b5266d2768e29008 = [ | ||
const $795b90806d3d0612$export$96d4e4cf27d59030 = (0, $gPw21$privyioapibasezod.z).enum((0, $48a7486931b01664$export$b5266d2768e29008), { | ||
const $795b90806d3d0612$export$96d4e4cf27d59030 = (0, $gPw21$privyioapibase.z).enum((0, $48a7486931b01664$export$b5266d2768e29008), { | ||
invalid_type_error: "Please specify a supported provider.", | ||
required_error: "Please specify a supported provider." | ||
}); | ||
const $795b90806d3d0612$export$3a815e8ae7821b6e = (0, $gPw21$privyioapibasezod.z).object({ | ||
authorization_code: (0, $gPw21$privyioapibasezod.z).string(), | ||
state_code: (0, $gPw21$privyioapibasezod.z).string() | ||
const $795b90806d3d0612$export$3a815e8ae7821b6e = (0, $gPw21$privyioapibase.z).object({ | ||
authorization_code: (0, $gPw21$privyioapibase.z).string(), | ||
state_code: (0, $gPw21$privyioapibase.z).string() | ||
}).catch(()=>{ | ||
throw new (0, $gPw21$privyioapibase.UnauthorizedError)("Please specify authorization_code and challenge_code", (0, $gPw21$privyioapibase.PrivyErrorCode).INVALID_CREDENTIALS); | ||
}); | ||
const $795b90806d3d0612$export$25d68298fd675d8b = (0, $gPw21$privyioapibasezod.z).object({ | ||
redirect_to: (0, $gPw21$privyioapibasezod.z).string({ | ||
const $795b90806d3d0612$export$25d68298fd675d8b = (0, $gPw21$privyioapibase.z).object({ | ||
redirect_to: (0, $gPw21$privyioapibase.z).string({ | ||
required_error: "Please provide a redirect_to value." | ||
@@ -301,12 +301,12 @@ }), | ||
}); | ||
const $795b90806d3d0612$export$5169dcfff85dfbff = (0, $gPw21$privyioapibasezod.z).object({ | ||
authorization_code: (0, $gPw21$privyioapibasezod.z).string(), | ||
state_code: (0, $gPw21$privyioapibasezod.z).string() | ||
const $795b90806d3d0612$export$5169dcfff85dfbff = (0, $gPw21$privyioapibase.z).object({ | ||
authorization_code: (0, $gPw21$privyioapibase.z).string(), | ||
state_code: (0, $gPw21$privyioapibase.z).string() | ||
}); | ||
const $795b90806d3d0612$export$100da24bb64f0e09 = (0, $gPw21$privyioapibasezod.z).object({ | ||
subject: (0, $gPw21$privyioapibasezod.z).string(), | ||
const $795b90806d3d0612$export$100da24bb64f0e09 = (0, $gPw21$privyioapibase.z).object({ | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
provider: $795b90806d3d0612$export$96d4e4cf27d59030 | ||
}); | ||
const $795b90806d3d0612$export$98ade43b6adcef0b = (0, $gPw21$privyioapibasezod.z).object({ | ||
url: (0, $gPw21$privyioapibasezod.z).string() | ||
const $795b90806d3d0612$export$98ade43b6adcef0b = (0, $gPw21$privyioapibase.z).object({ | ||
url: (0, $gPw21$privyioapibase.z).string() | ||
}); | ||
@@ -320,5 +320,5 @@ | ||
const $15ab060afcc8df1c$export$2441567ff18621e0 = (0, $gPw21$privyioapibasezod.z).record((0, $gPw21$privyioapibasezod.z).string(), (0, $gPw21$privyioapibasezod.z).never()); | ||
const $15ab060afcc8df1c$export$8aed050e83c45a78 = (0, $gPw21$privyioapibasezod.z).object({ | ||
success: (0, $gPw21$privyioapibasezod.z).boolean() | ||
const $15ab060afcc8df1c$export$2441567ff18621e0 = (0, $gPw21$privyioapibase.z).record((0, $gPw21$privyioapibase.z).string(), (0, $gPw21$privyioapibase.z).never()); | ||
const $15ab060afcc8df1c$export$8aed050e83c45a78 = (0, $gPw21$privyioapibase.z).object({ | ||
success: (0, $gPw21$privyioapibase.z).boolean() | ||
}); | ||
@@ -334,20 +334,20 @@ | ||
const $71ecc6c9c496faaf$export$1c8c55e22e1d8d9 = (0, $gPw21$privyioapibasezod.z).object({ | ||
message: (0, $gPw21$privyioapibasezod.z).string({ | ||
const $71ecc6c9c496faaf$export$1c8c55e22e1d8d9 = (0, $gPw21$privyioapibase.z).object({ | ||
message: (0, $gPw21$privyioapibase.z).string({ | ||
invalid_type_error: "Invalid SIWE message" | ||
}), | ||
signature: (0, $gPw21$privyioapibasezod.z).string({ | ||
signature: (0, $gPw21$privyioapibase.z).string({ | ||
invalid_type_error: "Invalid SIWE signature" | ||
}), | ||
chainId: (0, $gPw21$privyioapibasezod.z).string().max(41).nullable().default(null), | ||
walletClientType: (0, $gPw21$privyioapibasezod.z).string().max(64).nullable().default(null), | ||
connectorType: (0, $gPw21$privyioapibasezod.z).string().max(64).nullable().default(null) | ||
chainId: (0, $gPw21$privyioapibase.z).string().max(41).nullable().default(null), | ||
walletClientType: (0, $gPw21$privyioapibase.z).string().max(64).nullable().default(null), | ||
connectorType: (0, $gPw21$privyioapibase.z).string().max(64).nullable().default(null) | ||
}); | ||
const $71ecc6c9c496faaf$export$b5b65f417dc17888 = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $71ecc6c9c496faaf$export$b5b65f417dc17888 = (0, $gPw21$privyioapibase.z).object({ | ||
address: (0, $7d172b99b20a397c$export$e1ae011f7e31ddec) | ||
}); | ||
const $71ecc6c9c496faaf$export$8535d2f477730820 = (0, $gPw21$privyioapibasezod.z).object({ | ||
nonce: (0, $gPw21$privyioapibasezod.z).string(), | ||
address: (0, $gPw21$privyioapibasezod.z).string(), | ||
expires_at: (0, $gPw21$privyioapibasezod.z).string() | ||
const $71ecc6c9c496faaf$export$8535d2f477730820 = (0, $gPw21$privyioapibase.z).object({ | ||
nonce: (0, $gPw21$privyioapibase.z).string(), | ||
address: (0, $gPw21$privyioapibase.z).string(), | ||
expires_at: (0, $gPw21$privyioapibase.z).string() | ||
}); | ||
@@ -359,8 +359,9 @@ | ||
$parcel$export($04c18d909516a729$exports, "VerifyPhoneInput", () => $04c18d909516a729$export$1bbb8302b8922d52); | ||
$parcel$export($04c18d909516a729$exports, "VerifyPhoneInputLight", () => $04c18d909516a729$export$af3277919119bba6); | ||
$parcel$export($04c18d909516a729$exports, "PasswordlessSmsPhoneInput", () => $04c18d909516a729$export$794b219acd817434); | ||
$parcel$export($04c18d909516a729$exports, "PasswordlessSmsPhoneInputLight", () => $04c18d909516a729$export$83ef7f09235a21fd); | ||
$parcel$export($04c18d909516a729$exports, "UnlinkPhoneInput", () => $04c18d909516a729$export$63fc94c9f0d4eea8); | ||
const $04c18d909516a729$export$1bbb8302b8922d52 = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $04c18d909516a729$export$1bbb8302b8922d52 = (0, $gPw21$privyioapibase.z).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f).catch(()=>{ | ||
@@ -374,9 +375,18 @@ throw new (0, $gPw21$privyioapibase.LegacyInvalidInputError)("Invalid SMS verification code", (0, $gPw21$privyioapibase.PrivyErrorCode).INVALID_CREDENTIALS); | ||
}); | ||
const $04c18d909516a729$export$794b219acd817434 = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $04c18d909516a729$export$af3277919119bba6 = (0, $gPw21$privyioapibase.z).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f), | ||
// Not a mistake, it's actually camelCase | ||
phoneNumber: (0, $gPw21$privyioapibase.z).string() | ||
}); | ||
const $04c18d909516a729$export$794b219acd817434 = (0, $gPw21$privyioapibase.z).object({ | ||
phoneNumber: (0, $7d172b99b20a397c$export$3d623a7758cab61e).catch(()=>{ | ||
throw new (0, $gPw21$privyioapibase.LegacyInvalidInputError)("Invalid phone number", (0, $gPw21$privyioapibase.PrivyErrorCode).INVALID_DATA); | ||
}), | ||
token: (0, $gPw21$privyioapibasezod.z).string().optional() | ||
token: (0, $gPw21$privyioapibase.z).string().optional() | ||
}); | ||
const $04c18d909516a729$export$63fc94c9f0d4eea8 = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $04c18d909516a729$export$83ef7f09235a21fd = (0, $gPw21$privyioapibase.z).object({ | ||
phoneNumber: (0, $gPw21$privyioapibase.z).string(), | ||
token: (0, $gPw21$privyioapibase.z).string().optional() | ||
}); | ||
const $04c18d909516a729$export$63fc94c9f0d4eea8 = (0, $gPw21$privyioapibase.z).object({ | ||
// Not a mistake, it's actually camelCase | ||
@@ -393,10 +403,10 @@ phoneNumber: (0, $7d172b99b20a397c$export$3d623a7758cab61e) | ||
const $16f710c1039ca8e9$export$6aa3af8166ea5386 = (0, $gPw21$privyioapibasezod.z).object({ | ||
refresh_token: (0, $gPw21$privyioapibasezod.z).string() | ||
const $16f710c1039ca8e9$export$6aa3af8166ea5386 = (0, $gPw21$privyioapibase.z).object({ | ||
refresh_token: (0, $gPw21$privyioapibase.z).string() | ||
}); | ||
const $16f710c1039ca8e9$export$3ea9bae16087a241 = $16f710c1039ca8e9$export$6aa3af8166ea5386.partial(); | ||
const $16f710c1039ca8e9$export$874b0538e4f42518 = (0, $gPw21$privyioapibasezod.z).object({ | ||
token: (0, $gPw21$privyioapibasezod.z).string(), | ||
refresh_token: (0, $gPw21$privyioapibasezod.z).string(), | ||
new_session_refresh_token: (0, $gPw21$privyioapibasezod.z).string() | ||
const $16f710c1039ca8e9$export$874b0538e4f42518 = (0, $gPw21$privyioapibase.z).object({ | ||
token: (0, $gPw21$privyioapibase.z).string(), | ||
refresh_token: (0, $gPw21$privyioapibase.z).string(), | ||
new_session_refresh_token: (0, $gPw21$privyioapibase.z).string() | ||
}); | ||
@@ -423,85 +433,85 @@ | ||
const $c51512243cb13f0a$export$b291b2a8281f162e = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("email"), | ||
address: (0, $gPw21$privyioapibasezod.z).string(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$b291b2a8281f162e = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("email"), | ||
address: (0, $gPw21$privyioapibase.z).string(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$e461068a75eb0fb3 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("phone"), | ||
phoneNumber: (0, $gPw21$privyioapibasezod.z).string(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$e461068a75eb0fb3 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("phone"), | ||
phoneNumber: (0, $gPw21$privyioapibase.z).string(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$e72ed3751242ab66 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("wallet"), | ||
address: (0, $gPw21$privyioapibasezod.z).string(), | ||
chain_id: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
const $c51512243cb13f0a$export$e72ed3751242ab66 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("wallet"), | ||
address: (0, $gPw21$privyioapibase.z).string(), | ||
chain_id: (0, $gPw21$privyioapibase.z).string().optional(), | ||
/** | ||
* @deprecated This will be removed in favor of the CAIP-2 formatted chain_id field. | ||
*/ chain_type: (0, $gPw21$privyioapibasezod.z).literal("ethereum"), | ||
*/ chain_type: (0, $gPw21$privyioapibase.z).literal("ethereum"), | ||
/** | ||
* @deprecated Use `wallet_client_type` instead. | ||
*/ wallet_client: (0, $gPw21$privyioapibasezod.z).literal("unknown"), | ||
wallet_client_type: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
connector_type: (0, $gPw21$privyioapibasezod.z).string().optional(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
*/ wallet_client: (0, $gPw21$privyioapibase.z).literal("unknown"), | ||
wallet_client_type: (0, $gPw21$privyioapibase.z).string().optional(), | ||
connector_type: (0, $gPw21$privyioapibase.z).string().optional(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$42e79fc33a58a2f5 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("wallet"), | ||
address: (0, $gPw21$privyioapibasezod.z).string(), | ||
chain_id: (0, $gPw21$privyioapibasezod.z).literal("eip155:1"), | ||
const $c51512243cb13f0a$export$42e79fc33a58a2f5 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("wallet"), | ||
address: (0, $gPw21$privyioapibase.z).string(), | ||
chain_id: (0, $gPw21$privyioapibase.z).literal("eip155:1"), | ||
/** | ||
* @deprecated This will be removed in favor of the CAIP-2 formatted chain_id field. | ||
*/ chain_type: (0, $gPw21$privyioapibasezod.z).literal("ethereum"), | ||
*/ chain_type: (0, $gPw21$privyioapibase.z).literal("ethereum"), | ||
/** | ||
* @deprecated Use `wallet_client_type` instead. | ||
*/ wallet_client: (0, $gPw21$privyioapibasezod.z).literal("privy"), | ||
wallet_client_type: (0, $gPw21$privyioapibasezod.z).literal("privy"), | ||
connector_type: (0, $gPw21$privyioapibasezod.z).literal("embedded"), | ||
recovery_method: (0, $gPw21$privyioapibasezod.z).union([ | ||
(0, $gPw21$privyioapibasezod.z).literal("privy"), | ||
(0, $gPw21$privyioapibasezod.z).literal("user-passcode") | ||
*/ wallet_client: (0, $gPw21$privyioapibase.z).literal("privy"), | ||
wallet_client_type: (0, $gPw21$privyioapibase.z).literal("privy"), | ||
connector_type: (0, $gPw21$privyioapibase.z).literal("embedded"), | ||
recovery_method: (0, $gPw21$privyioapibase.z).union([ | ||
(0, $gPw21$privyioapibase.z).literal("privy"), | ||
(0, $gPw21$privyioapibase.z).literal("user-passcode") | ||
]), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$ab3c40bebc4d6f36 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("google_oauth"), | ||
subject: (0, $gPw21$privyioapibasezod.z).string(), | ||
email: (0, $gPw21$privyioapibasezod.z).string(), | ||
name: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$ab3c40bebc4d6f36 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("google_oauth"), | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
email: (0, $gPw21$privyioapibase.z).string(), | ||
name: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$31cc32c7bc65c2e0 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("twitter_oauth"), | ||
subject: (0, $gPw21$privyioapibasezod.z).string(), | ||
username: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
name: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$31cc32c7bc65c2e0 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("twitter_oauth"), | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
username: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
name: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$cb35596f96141125 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("discord_oauth"), | ||
subject: (0, $gPw21$privyioapibasezod.z).string(), | ||
username: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
email: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$cb35596f96141125 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("discord_oauth"), | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
username: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
email: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$55430b29b82d98a8 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("github_oauth"), | ||
subject: (0, $gPw21$privyioapibasezod.z).string(), | ||
username: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
name: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
email: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$55430b29b82d98a8 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("github_oauth"), | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
username: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
name: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
email: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$67af8a2e34850611 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("apple_oauth"), | ||
subject: (0, $gPw21$privyioapibasezod.z).string(), | ||
email: (0, $gPw21$privyioapibasezod.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$67af8a2e34850611 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("apple_oauth"), | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
email: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$5da87a1cf22b57d0 = (0, $gPw21$privyioapibasezod.z).object({ | ||
type: (0, $gPw21$privyioapibasezod.z).literal("custom_auth"), | ||
custom_user_id: (0, $gPw21$privyioapibasezod.z).string(), | ||
verified_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$5da87a1cf22b57d0 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("custom_auth"), | ||
custom_user_id: (0, $gPw21$privyioapibase.z).string(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$70ab2a322f92399 = (0, $gPw21$privyioapibasezod.z).union([ | ||
const $c51512243cb13f0a$export$70ab2a322f92399 = (0, $gPw21$privyioapibase.z).union([ | ||
$c51512243cb13f0a$export$b291b2a8281f162e, | ||
@@ -518,19 +528,19 @@ $c51512243cb13f0a$export$e461068a75eb0fb3, | ||
]); | ||
const $c51512243cb13f0a$export$1f44aaf2ec115b54 = (0, $gPw21$privyioapibasezod.z).object({ | ||
id: (0, $gPw21$privyioapibasezod.z).string(), | ||
linked_accounts: (0, $gPw21$privyioapibasezod.z).array($c51512243cb13f0a$export$70ab2a322f92399), | ||
created_at: (0, $gPw21$privyioapibasezod.z).number() | ||
const $c51512243cb13f0a$export$1f44aaf2ec115b54 = (0, $gPw21$privyioapibase.z).object({ | ||
id: (0, $gPw21$privyioapibase.z).string(), | ||
linked_accounts: (0, $gPw21$privyioapibase.z).array($c51512243cb13f0a$export$70ab2a322f92399), | ||
created_at: (0, $gPw21$privyioapibase.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$7de20aee312d6767 = (0, $gPw21$privyioapibasezod.z).object({ | ||
const $c51512243cb13f0a$export$7de20aee312d6767 = (0, $gPw21$privyioapibase.z).object({ | ||
user: $c51512243cb13f0a$export$1f44aaf2ec115b54, | ||
token: (0, $gPw21$privyioapibasezod.z).string().nonempty().nullable(), | ||
refresh_token: (0, $gPw21$privyioapibasezod.z).string().nonempty().nullable(), | ||
is_new_user: (0, $gPw21$privyioapibasezod.z).boolean().optional() | ||
token: (0, $gPw21$privyioapibase.z).string().nonempty().nullable(), | ||
refresh_token: (0, $gPw21$privyioapibase.z).string().nonempty().nullable(), | ||
is_new_user: (0, $gPw21$privyioapibase.z).boolean().optional() | ||
}); | ||
const $c51512243cb13f0a$export$8339543958fe900f = (0, $gPw21$privyioapibasezod.z).object({ | ||
user: (0, $gPw21$privyioapibasezod.z).null(), | ||
token: (0, $gPw21$privyioapibasezod.z).null(), | ||
refresh_token: (0, $gPw21$privyioapibasezod.z).null() | ||
const $c51512243cb13f0a$export$8339543958fe900f = (0, $gPw21$privyioapibase.z).object({ | ||
user: (0, $gPw21$privyioapibase.z).null(), | ||
token: (0, $gPw21$privyioapibase.z).null(), | ||
refresh_token: (0, $gPw21$privyioapibase.z).null() | ||
}); | ||
const $c51512243cb13f0a$export$2b6251d563a4e626 = (0, $gPw21$privyioapibasezod.z).union([ | ||
const $c51512243cb13f0a$export$2b6251d563a4e626 = (0, $gPw21$privyioapibase.z).union([ | ||
$c51512243cb13f0a$export$7de20aee312d6767, | ||
@@ -708,3 +718,3 @@ $c51512243cb13f0a$export$8339543958fe900f | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
bodySchema: (0, $04c18d909516a729$export$1bbb8302b8922d52), | ||
bodySchema: (0, $04c18d909516a729$export$af3277919119bba6), | ||
responseSchema: { | ||
@@ -722,3 +732,3 @@ [(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $c51512243cb13f0a$export$7de20aee312d6767), "Authentication successful"), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
bodySchema: (0, $04c18d909516a729$export$794b219acd817434), | ||
bodySchema: (0, $04c18d909516a729$export$83ef7f09235a21fd), | ||
responseSchema: { | ||
@@ -737,3 +747,3 @@ [(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $15ab060afcc8df1c$export$8aed050e83c45a78), "Init successful"), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
bodySchema: (0, $04c18d909516a729$export$1bbb8302b8922d52), | ||
bodySchema: (0, $04c18d909516a729$export$af3277919119bba6), | ||
responseSchema: { | ||
@@ -740,0 +750,0 @@ [(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $c51512243cb13f0a$export$1f44aaf2ec115b54), "Linking phone number successful."), |
{ | ||
"name": "@privy-io/public-api", | ||
"version": "1.1.0", | ||
"version": "1.2.0-beta-20230928004335", | ||
"engines": { | ||
@@ -11,3 +11,3 @@ "npm": ">=8.0.0 <10.0.0", | ||
"main": "./dist/index.js", | ||
"module": "./dist/esm/index.js", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
@@ -18,3 +18,3 @@ "typings": "./dist/index", | ||
"require": "./dist/index.js", | ||
"import": "./dist/esm/index.js", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
@@ -24,3 +24,3 @@ }, | ||
"require": "./dist/index.js", | ||
"import": "./dist/esm/index.js", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
@@ -30,3 +30,3 @@ }, | ||
"require": "./dist/index.js", | ||
"import": "./dist/esm/index.js", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts" | ||
@@ -54,3 +54,3 @@ } | ||
"dependencies": { | ||
"@privy-io/api-base": "*", | ||
"@privy-io/api-base": "0.3.0-beta-20230928004335", | ||
"ethers": "^5.7.2", | ||
@@ -57,0 +57,0 @@ "libphonenumber-js": "^1.10.31" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
1
214873
4290
2
+ Added@privy-io/api-base@0.3.0-beta-20230928004335(transitive)
- Removed@privy-io/api-base@1.4.1(transitive)