@privy-io/public-api
Advanced tools
Comparing version 1.3.1 to 1.4.0-beta-20231019031018
@@ -0,5 +1,5 @@ | ||
var $gPw21$zod = require("zod"); | ||
var $gPw21$privyioapibase = require("@privy-io/api-base"); | ||
var $gPw21$ethers = require("ethers"); | ||
var $gPw21$libphonenumberjsmax = require("libphonenumber-js/max"); | ||
var $gPw21$privyioapibasezod = require("@privy-io/api-base/zod"); | ||
@@ -32,2 +32,3 @@ | ||
var $d1478bd5b928650c$exports = {}; | ||
@@ -40,2 +41,3 @@ var $09464b2a3ff172cb$exports = {}; | ||
var $7d172b99b20a397c$exports = {}; | ||
@@ -54,7 +56,7 @@ | ||
const $7d172b99b20a397c$export$22a69335b09c6066 = (0, $gPw21$privyioapibasezod.z).string({ | ||
const $7d172b99b20a397c$export$22a69335b09c6066 = (0, $gPw21$zod.z).string({ | ||
required_error: "Privy DID must be included", | ||
invalid_type_error: "Privy DID is not a valid string" | ||
}).min(1).transform((id)=>id.replace("did:privy:", "")); | ||
const $7d172b99b20a397c$export$5a6b8595f311cbb0 = (0, $gPw21$privyioapibasezod.z).string({ | ||
const $7d172b99b20a397c$export$5a6b8595f311cbb0 = (0, $gPw21$zod.z).string({ | ||
required_error: "Email address must be provided", | ||
@@ -67,7 +69,7 @@ invalid_type_error: "Email address must be a valid string" | ||
}).transform((email)=>email.toLowerCase()); | ||
const $7d172b99b20a397c$export$6051224a4b788b5f = (0, $gPw21$privyioapibasezod.z).string({ | ||
const $7d172b99b20a397c$export$6051224a4b788b5f = (0, $gPw21$zod.z).string({ | ||
required_error: "Verification code must be provided", | ||
invalid_type_error: "Invalid verification code" | ||
}).length(6, "Verification code must have 6 digits."); | ||
const $7d172b99b20a397c$export$e1ae011f7e31ddec = (0, $gPw21$privyioapibasezod.z).string({ | ||
const $7d172b99b20a397c$export$e1ae011f7e31ddec = (0, $gPw21$zod.z).string({ | ||
required_error: "Ethereum address must be provided", | ||
@@ -83,6 +85,6 @@ invalid_type_error: "Invalid Ethereum address" | ||
ctx.addIssue({ | ||
code: (0, $gPw21$privyioapibasezod.z).ZodIssueCode.custom, | ||
code: (0, $gPw21$zod.z).ZodIssueCode.custom, | ||
message: "Invalid Ethereum address" | ||
}); | ||
return (0, $gPw21$privyioapibasezod.z).NEVER; | ||
return (0, $gPw21$zod.z).NEVER; | ||
} | ||
@@ -92,3 +94,3 @@ // Otherwise, we return the normalized (checksummed) address. | ||
}); | ||
const $7d172b99b20a397c$export$3d623a7758cab61e = (0, $gPw21$privyioapibasezod.z).string({ | ||
const $7d172b99b20a397c$export$3d623a7758cab61e = (0, $gPw21$zod.z).string({ | ||
required_error: "Phone number must be included", | ||
@@ -121,4 +123,4 @@ invalid_type_error: "Phone number is not a valid string" | ||
const $09464b2a3ff172cb$export$570fdd1008d53ff0 = (0, $gPw21$privyioapibase.z).object({ | ||
account_id: (0, $gPw21$privyioapibase.z).string({ | ||
const $09464b2a3ff172cb$export$570fdd1008d53ff0 = (0, $gPw21$zod.z).object({ | ||
account_id: (0, $gPw21$zod.z).string({ | ||
required_error: "Account ID must be provided", | ||
@@ -128,4 +130,4 @@ invalid_type_error: "Account ID is not a valid string" | ||
}); | ||
const $09464b2a3ff172cb$export$85be2ce1a760a71d = (0, $gPw21$privyioapibase.z).object({ | ||
app_id: (0, $gPw21$privyioapibase.z).string({ | ||
const $09464b2a3ff172cb$export$85be2ce1a760a71d = (0, $gPw21$zod.z).object({ | ||
app_id: (0, $gPw21$zod.z).string({ | ||
required_error: "App ID must be provided", | ||
@@ -140,5 +142,5 @@ invalid_type_error: "App ID is not a valid string" | ||
}); | ||
const $09464b2a3ff172cb$export$68f5e1453c188a82 = (0, $gPw21$privyioapibase.z).object({ | ||
const $09464b2a3ff172cb$export$68f5e1453c188a82 = (0, $gPw21$zod.z).object({ | ||
cursor: (0, $7d172b99b20a397c$export$22a69335b09c6066).optional(), | ||
limit: (0, $gPw21$privyioapibase.z).coerce.number().max(100, { | ||
limit: (0, $gPw21$zod.z).coerce.number().max(100, { | ||
message: "Query limit can be at maximum 100 records." | ||
@@ -153,39 +155,39 @@ }).optional() | ||
const $6f7f180cfca83514$export$dc5469a0fff5641e = (0, $gPw21$privyioapibase.z).object({ | ||
id: (0, $gPw21$privyioapibase.z).string(), | ||
name: (0, $gPw21$privyioapibase.z).string(), | ||
verification_key: (0, $gPw21$privyioapibase.z).string(), | ||
logo_url: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
terms_and_conditions_url: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
privacy_policy_url: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
theme: (0, $gPw21$privyioapibase.z).string(), | ||
accent_color: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
show_wallet_login_first: (0, $gPw21$privyioapibase.z).boolean(), | ||
allowed_domains: (0, $gPw21$privyioapibase.z).array((0, $gPw21$privyioapibase.z).string()), | ||
accountId: (0, $gPw21$privyioapibase.z).string(), | ||
wallet_auth: (0, $gPw21$privyioapibase.z).boolean(), | ||
email_auth: (0, $gPw21$privyioapibase.z).boolean(), | ||
sms_auth: (0, $gPw21$privyioapibase.z).boolean(), | ||
google_oauth: (0, $gPw21$privyioapibase.z).boolean(), | ||
twitter_oauth: (0, $gPw21$privyioapibase.z).boolean(), | ||
discord_oauth: (0, $gPw21$privyioapibase.z).boolean(), | ||
github_oauth: (0, $gPw21$privyioapibase.z).boolean(), | ||
tiktok_oauth: (0, $gPw21$privyioapibase.z).boolean(), | ||
linkedin_oauth: (0, $gPw21$privyioapibase.z).boolean(), | ||
apple_oauth: (0, $gPw21$privyioapibase.z).boolean(), | ||
allowlist_enabled: (0, $gPw21$privyioapibase.z).boolean(), | ||
allowlist_config: (0, $gPw21$privyioapibase.z).object({ | ||
error_title: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
error_detail: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
cta_text: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
cta_link: (0, $gPw21$privyioapibase.z).string().nullable() | ||
const $6f7f180cfca83514$export$dc5469a0fff5641e = (0, $gPw21$zod.z).object({ | ||
id: (0, $gPw21$zod.z).string(), | ||
name: (0, $gPw21$zod.z).string(), | ||
verification_key: (0, $gPw21$zod.z).string(), | ||
logo_url: (0, $gPw21$zod.z).string().nullable(), | ||
terms_and_conditions_url: (0, $gPw21$zod.z).string().nullable(), | ||
privacy_policy_url: (0, $gPw21$zod.z).string().nullable(), | ||
theme: (0, $gPw21$zod.z).string(), | ||
accent_color: (0, $gPw21$zod.z).string().nullable(), | ||
show_wallet_login_first: (0, $gPw21$zod.z).boolean(), | ||
allowed_domains: (0, $gPw21$zod.z).array((0, $gPw21$zod.z).string()), | ||
accountId: (0, $gPw21$zod.z).string(), | ||
wallet_auth: (0, $gPw21$zod.z).boolean(), | ||
email_auth: (0, $gPw21$zod.z).boolean(), | ||
sms_auth: (0, $gPw21$zod.z).boolean(), | ||
google_oauth: (0, $gPw21$zod.z).boolean(), | ||
twitter_oauth: (0, $gPw21$zod.z).boolean(), | ||
discord_oauth: (0, $gPw21$zod.z).boolean(), | ||
github_oauth: (0, $gPw21$zod.z).boolean(), | ||
tiktok_oauth: (0, $gPw21$zod.z).boolean(), | ||
linkedin_oauth: (0, $gPw21$zod.z).boolean(), | ||
apple_oauth: (0, $gPw21$zod.z).boolean(), | ||
allowlist_enabled: (0, $gPw21$zod.z).boolean(), | ||
allowlist_config: (0, $gPw21$zod.z).object({ | ||
error_title: (0, $gPw21$zod.z).string().nullable(), | ||
error_detail: (0, $gPw21$zod.z).string().nullable(), | ||
cta_text: (0, $gPw21$zod.z).string().nullable(), | ||
cta_link: (0, $gPw21$zod.z).string().nullable() | ||
}), | ||
cookie_auth_enabled: (0, $gPw21$privyioapibase.z).boolean(), | ||
cookie_domain: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
wallet_connect_cloud_project_id: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
custom_api_url: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
created_at: (0, $gPw21$privyioapibase.z).number(), | ||
updated_at: (0, $gPw21$privyioapibase.z).number(), | ||
embedded_wallet_config: (0, $gPw21$privyioapibase.z).object({ | ||
create_on_login: (0, $gPw21$privyioapibase.z).enum([ | ||
cookie_auth_enabled: (0, $gPw21$zod.z).boolean(), | ||
cookie_domain: (0, $gPw21$zod.z).string().nullable(), | ||
wallet_connect_cloud_project_id: (0, $gPw21$zod.z).string().nullable(), | ||
custom_api_url: (0, $gPw21$zod.z).string().nullable(), | ||
created_at: (0, $gPw21$zod.z).number(), | ||
updated_at: (0, $gPw21$zod.z).number(), | ||
embedded_wallet_config: (0, $gPw21$zod.z).object({ | ||
create_on_login: (0, $gPw21$zod.z).enum([ | ||
"users-without-wallets", | ||
@@ -195,7 +197,7 @@ "all-users", | ||
]), | ||
require_user_password_on_create: (0, $gPw21$privyioapibase.z).boolean() | ||
require_user_password_on_create: (0, $gPw21$zod.z).boolean() | ||
}), | ||
fiat_on_ramp_enabled: (0, $gPw21$privyioapibase.z).boolean(), | ||
captcha_enabled: (0, $gPw21$privyioapibase.z).boolean(), | ||
twitter_oauth_on_mobile_enabled: (0, $gPw21$privyioapibase.z).boolean() | ||
fiat_on_ramp_enabled: (0, $gPw21$zod.z).boolean(), | ||
captcha_enabled: (0, $gPw21$zod.z).boolean(), | ||
twitter_oauth_on_mobile_enabled: (0, $gPw21$zod.z).boolean() | ||
}); | ||
@@ -208,6 +210,6 @@ | ||
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).nullable(), | ||
payload: (0, $gPw21$privyioapibase.z).record((0, $gPw21$privyioapibase.z).any()).optional() | ||
const $426dcdc16665ab40$export$5ac03ce02eff89f4 = (0, $gPw21$zod.z).object({ | ||
event_name: (0, $gPw21$zod.z).string().max(255), | ||
client_id: (0, $gPw21$zod.z).string().max(255).nullable(), | ||
payload: (0, $gPw21$zod.z).record((0, $gPw21$zod.z).any()).optional() | ||
}); | ||
@@ -224,11 +226,11 @@ | ||
const $cc6ae740eaa7d607$export$ca08e252312baf4 = (0, $gPw21$privyioapibase.z).object({ | ||
const $cc6ae740eaa7d607$export$ca08e252312baf4 = (0, $gPw21$zod.z).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f), | ||
email: (0, $7d172b99b20a397c$export$5a6b8595f311cbb0) | ||
}); | ||
const $cc6ae740eaa7d607$export$ef1330eae1875774 = (0, $gPw21$privyioapibase.z).object({ | ||
const $cc6ae740eaa7d607$export$ef1330eae1875774 = (0, $gPw21$zod.z).object({ | ||
email: (0, $7d172b99b20a397c$export$5a6b8595f311cbb0), | ||
token: (0, $gPw21$privyioapibase.z).string().optional() | ||
token: (0, $gPw21$zod.z).string().optional() | ||
}); | ||
const $cc6ae740eaa7d607$export$b0a53354e7257ebb = (0, $gPw21$privyioapibase.z).object({ | ||
const $cc6ae740eaa7d607$export$b0a53354e7257ebb = (0, $gPw21$zod.z).object({ | ||
address: (0, $7d172b99b20a397c$export$5a6b8595f311cbb0) | ||
@@ -243,9 +245,9 @@ }); | ||
const $d67e9279ab9cd501$export$d3aaee921473d84f = (0, $gPw21$privyioapibase.z).object({ | ||
kty: (0, $gPw21$privyioapibase.z).string(), | ||
use: (0, $gPw21$privyioapibase.z).enum([ | ||
const $d67e9279ab9cd501$export$d3aaee921473d84f = (0, $gPw21$zod.z).object({ | ||
kty: (0, $gPw21$zod.z).string(), | ||
use: (0, $gPw21$zod.z).enum([ | ||
"sig", | ||
"enc" | ||
]).optional(), | ||
key_ops: (0, $gPw21$privyioapibase.z).array((0, $gPw21$privyioapibase.z).enum([ | ||
key_ops: (0, $gPw21$zod.z).array((0, $gPw21$zod.z).enum([ | ||
"sign", | ||
@@ -260,16 +262,16 @@ "verify", | ||
])).optional(), | ||
alg: (0, $gPw21$privyioapibase.z).enum([ | ||
alg: (0, $gPw21$zod.z).enum([ | ||
"RS256" | ||
]), | ||
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() | ||
kid: (0, $gPw21$zod.z).string().optional(), | ||
x5u: (0, $gPw21$zod.z).string().optional(), | ||
x5c: (0, $gPw21$zod.z).array((0, $gPw21$zod.z).string()).optional(), | ||
x5t: (0, $gPw21$zod.z).string().optional(), | ||
"x5t#S256": (0, $gPw21$zod.z).string().optional(), | ||
n: (0, $gPw21$zod.z).string().optional(), | ||
e: (0, $gPw21$zod.z).string().optional(), | ||
d: (0, $gPw21$zod.z).string().optional() | ||
}); | ||
const $d67e9279ab9cd501$export$c8fd35505bb1704a = (0, $gPw21$privyioapibase.z).object({ | ||
keys: (0, $gPw21$privyioapibase.z).array($d67e9279ab9cd501$export$d3aaee921473d84f) | ||
const $d67e9279ab9cd501$export$c8fd35505bb1704a = (0, $gPw21$zod.z).object({ | ||
keys: (0, $gPw21$zod.z).array($d67e9279ab9cd501$export$d3aaee921473d84f) | ||
}); | ||
@@ -288,2 +290,3 @@ | ||
// Casting as const makes it immutable. | ||
@@ -301,14 +304,14 @@ const $48a7486931b01664$export$b5266d2768e29008 = [ | ||
const $795b90806d3d0612$export$96d4e4cf27d59030 = (0, $gPw21$privyioapibase.z).enum((0, $48a7486931b01664$export$b5266d2768e29008), { | ||
const $795b90806d3d0612$export$96d4e4cf27d59030 = (0, $gPw21$zod.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$privyioapibase.z).object({ | ||
authorization_code: (0, $gPw21$privyioapibase.z).string(), | ||
state_code: (0, $gPw21$privyioapibase.z).string() | ||
const $795b90806d3d0612$export$3a815e8ae7821b6e = (0, $gPw21$zod.z).object({ | ||
authorization_code: (0, $gPw21$zod.z).string(), | ||
state_code: (0, $gPw21$zod.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$privyioapibase.z).object({ | ||
redirect_to: (0, $gPw21$privyioapibase.z).string({ | ||
const $795b90806d3d0612$export$25d68298fd675d8b = (0, $gPw21$zod.z).object({ | ||
redirect_to: (0, $gPw21$zod.z).string({ | ||
required_error: "Please provide a redirect_to value." | ||
@@ -318,12 +321,12 @@ }), | ||
}); | ||
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$5169dcfff85dfbff = (0, $gPw21$zod.z).object({ | ||
authorization_code: (0, $gPw21$zod.z).string(), | ||
state_code: (0, $gPw21$zod.z).string() | ||
}); | ||
const $795b90806d3d0612$export$100da24bb64f0e09 = (0, $gPw21$privyioapibase.z).object({ | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
const $795b90806d3d0612$export$100da24bb64f0e09 = (0, $gPw21$zod.z).object({ | ||
subject: (0, $gPw21$zod.z).string(), | ||
provider: $795b90806d3d0612$export$96d4e4cf27d59030 | ||
}); | ||
const $795b90806d3d0612$export$98ade43b6adcef0b = (0, $gPw21$privyioapibase.z).object({ | ||
url: (0, $gPw21$privyioapibase.z).string() | ||
const $795b90806d3d0612$export$98ade43b6adcef0b = (0, $gPw21$zod.z).object({ | ||
url: (0, $gPw21$zod.z).string() | ||
}); | ||
@@ -337,5 +340,5 @@ | ||
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() | ||
const $15ab060afcc8df1c$export$2441567ff18621e0 = (0, $gPw21$zod.z).record((0, $gPw21$zod.z).string(), (0, $gPw21$zod.z).never()); | ||
const $15ab060afcc8df1c$export$8aed050e83c45a78 = (0, $gPw21$zod.z).object({ | ||
success: (0, $gPw21$zod.z).boolean() | ||
}); | ||
@@ -351,20 +354,20 @@ | ||
const $71ecc6c9c496faaf$export$1c8c55e22e1d8d9 = (0, $gPw21$privyioapibase.z).object({ | ||
message: (0, $gPw21$privyioapibase.z).string({ | ||
const $71ecc6c9c496faaf$export$1c8c55e22e1d8d9 = (0, $gPw21$zod.z).object({ | ||
message: (0, $gPw21$zod.z).string({ | ||
invalid_type_error: "Invalid SIWE message" | ||
}), | ||
signature: (0, $gPw21$privyioapibase.z).string({ | ||
signature: (0, $gPw21$zod.z).string({ | ||
invalid_type_error: "Invalid SIWE signature" | ||
}), | ||
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) | ||
chainId: (0, $gPw21$zod.z).string().max(41).nullable().default(null), | ||
walletClientType: (0, $gPw21$zod.z).string().max(64).nullable().default(null), | ||
connectorType: (0, $gPw21$zod.z).string().max(64).nullable().default(null) | ||
}); | ||
const $71ecc6c9c496faaf$export$b5b65f417dc17888 = (0, $gPw21$privyioapibase.z).object({ | ||
const $71ecc6c9c496faaf$export$b5b65f417dc17888 = (0, $gPw21$zod.z).object({ | ||
address: (0, $7d172b99b20a397c$export$e1ae011f7e31ddec) | ||
}); | ||
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() | ||
const $71ecc6c9c496faaf$export$8535d2f477730820 = (0, $gPw21$zod.z).object({ | ||
nonce: (0, $gPw21$zod.z).string(), | ||
address: (0, $gPw21$zod.z).string(), | ||
expires_at: (0, $gPw21$zod.z).string() | ||
}); | ||
@@ -382,3 +385,4 @@ | ||
const $04c18d909516a729$export$1bbb8302b8922d52 = (0, $gPw21$privyioapibase.z).object({ | ||
const $04c18d909516a729$export$1bbb8302b8922d52 = (0, $gPw21$zod.z).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f).catch(()=>{ | ||
@@ -392,18 +396,18 @@ throw new (0, $gPw21$privyioapibase.LegacyInvalidInputError)("Invalid SMS verification code", (0, $gPw21$privyioapibase.PrivyErrorCode).INVALID_CREDENTIALS); | ||
}); | ||
const $04c18d909516a729$export$af3277919119bba6 = (0, $gPw21$privyioapibase.z).object({ | ||
const $04c18d909516a729$export$af3277919119bba6 = (0, $gPw21$zod.z).object({ | ||
code: (0, $7d172b99b20a397c$export$6051224a4b788b5f), | ||
// Not a mistake, it's actually camelCase | ||
phoneNumber: (0, $gPw21$privyioapibase.z).string() | ||
phoneNumber: (0, $gPw21$zod.z).string() | ||
}); | ||
const $04c18d909516a729$export$794b219acd817434 = (0, $gPw21$privyioapibase.z).object({ | ||
const $04c18d909516a729$export$794b219acd817434 = (0, $gPw21$zod.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$privyioapibase.z).string().optional() | ||
token: (0, $gPw21$zod.z).string().optional() | ||
}); | ||
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$83ef7f09235a21fd = (0, $gPw21$zod.z).object({ | ||
phoneNumber: (0, $gPw21$zod.z).string(), | ||
token: (0, $gPw21$zod.z).string().optional() | ||
}); | ||
const $04c18d909516a729$export$63fc94c9f0d4eea8 = (0, $gPw21$privyioapibase.z).object({ | ||
const $04c18d909516a729$export$63fc94c9f0d4eea8 = (0, $gPw21$zod.z).object({ | ||
// Not a mistake, it's actually camelCase | ||
@@ -420,10 +424,10 @@ phoneNumber: (0, $7d172b99b20a397c$export$3d623a7758cab61e) | ||
const $16f710c1039ca8e9$export$6aa3af8166ea5386 = (0, $gPw21$privyioapibase.z).object({ | ||
refresh_token: (0, $gPw21$privyioapibase.z).string() | ||
const $16f710c1039ca8e9$export$6aa3af8166ea5386 = (0, $gPw21$zod.z).object({ | ||
refresh_token: (0, $gPw21$zod.z).string() | ||
}); | ||
const $16f710c1039ca8e9$export$3ea9bae16087a241 = $16f710c1039ca8e9$export$6aa3af8166ea5386.partial(); | ||
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() | ||
const $16f710c1039ca8e9$export$874b0538e4f42518 = (0, $gPw21$zod.z).object({ | ||
token: (0, $gPw21$zod.z).string(), | ||
refresh_token: (0, $gPw21$zod.z).string(), | ||
new_session_refresh_token: (0, $gPw21$zod.z).string() | ||
}); | ||
@@ -452,98 +456,98 @@ | ||
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$b291b2a8281f162e = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("email"), | ||
address: (0, $gPw21$zod.z).string(), | ||
verified_at: (0, $gPw21$zod.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$e461068a75eb0fb3 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("phone"), | ||
phoneNumber: (0, $gPw21$zod.z).string(), | ||
verified_at: (0, $gPw21$zod.z).number() | ||
}); | ||
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(), | ||
const $c51512243cb13f0a$export$e72ed3751242ab66 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("wallet"), | ||
address: (0, $gPw21$zod.z).string(), | ||
chain_id: (0, $gPw21$zod.z).string().optional(), | ||
/** | ||
* @deprecated This will be removed in favor of the CAIP-2 formatted chain_id field. | ||
*/ chain_type: (0, $gPw21$privyioapibase.z).literal("ethereum"), | ||
*/ chain_type: (0, $gPw21$zod.z).literal("ethereum"), | ||
/** | ||
* @deprecated Use `wallet_client_type` instead. | ||
*/ 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() | ||
*/ wallet_client: (0, $gPw21$zod.z).literal("unknown"), | ||
wallet_client_type: (0, $gPw21$zod.z).string().optional(), | ||
connector_type: (0, $gPw21$zod.z).string().optional(), | ||
verified_at: (0, $gPw21$zod.z).number() | ||
}); | ||
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"), | ||
const $c51512243cb13f0a$export$42e79fc33a58a2f5 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("wallet"), | ||
address: (0, $gPw21$zod.z).string(), | ||
chain_id: (0, $gPw21$zod.z).literal("eip155:1"), | ||
/** | ||
* @deprecated This will be removed in favor of the CAIP-2 formatted chain_id field. | ||
*/ chain_type: (0, $gPw21$privyioapibase.z).literal("ethereum"), | ||
*/ chain_type: (0, $gPw21$zod.z).literal("ethereum"), | ||
/** | ||
* @deprecated Use `wallet_client_type` instead. | ||
*/ 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") | ||
*/ wallet_client: (0, $gPw21$zod.z).literal("privy"), | ||
wallet_client_type: (0, $gPw21$zod.z).literal("privy"), | ||
connector_type: (0, $gPw21$zod.z).literal("embedded"), | ||
recovery_method: (0, $gPw21$zod.z).union([ | ||
(0, $gPw21$zod.z).literal("privy"), | ||
(0, $gPw21$zod.z).literal("user-passcode") | ||
]), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
verified_at: (0, $gPw21$zod.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$ab3c40bebc4d6f36 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("google_oauth"), | ||
subject: (0, $gPw21$zod.z).string(), | ||
email: (0, $gPw21$zod.z).string(), | ||
name: (0, $gPw21$zod.z).string().nullable(), | ||
verified_at: (0, $gPw21$zod.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$31cc32c7bc65c2e0 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("twitter_oauth"), | ||
subject: (0, $gPw21$zod.z).string(), | ||
username: (0, $gPw21$zod.z).string().nullable(), | ||
name: (0, $gPw21$zod.z).string().nullable(), | ||
verified_at: (0, $gPw21$zod.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$cb35596f96141125 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("discord_oauth"), | ||
subject: (0, $gPw21$zod.z).string(), | ||
username: (0, $gPw21$zod.z).string().nullable(), | ||
email: (0, $gPw21$zod.z).string().nullable(), | ||
verified_at: (0, $gPw21$zod.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$55430b29b82d98a8 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("github_oauth"), | ||
subject: (0, $gPw21$zod.z).string(), | ||
username: (0, $gPw21$zod.z).string().nullable(), | ||
name: (0, $gPw21$zod.z).string().nullable(), | ||
email: (0, $gPw21$zod.z).string().nullable(), | ||
verified_at: (0, $gPw21$zod.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$25b982740d2e431c = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("linkedin_oauth"), | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
name: (0, $gPw21$privyioapibase.z).string().optional(), | ||
email: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
const $c51512243cb13f0a$export$25b982740d2e431c = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("linkedin_oauth"), | ||
subject: (0, $gPw21$zod.z).string(), | ||
name: (0, $gPw21$zod.z).string().optional(), | ||
email: (0, $gPw21$zod.z).string().nullable(), | ||
verified_at: (0, $gPw21$zod.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$5e8143c3f32ac816 = (0, $gPw21$privyioapibase.z).object({ | ||
type: (0, $gPw21$privyioapibase.z).literal("tiktok_oauth"), | ||
subject: (0, $gPw21$privyioapibase.z).string(), | ||
username: (0, $gPw21$privyioapibase.z).string().nullable(), | ||
verified_at: (0, $gPw21$privyioapibase.z).number() | ||
const $c51512243cb13f0a$export$5e8143c3f32ac816 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("tiktok_oauth"), | ||
subject: (0, $gPw21$zod.z).string(), | ||
username: (0, $gPw21$zod.z).string().nullable(), | ||
verified_at: (0, $gPw21$zod.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$67af8a2e34850611 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("apple_oauth"), | ||
subject: (0, $gPw21$zod.z).string(), | ||
email: (0, $gPw21$zod.z).string().nullable(), | ||
verified_at: (0, $gPw21$zod.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$5da87a1cf22b57d0 = (0, $gPw21$zod.z).object({ | ||
type: (0, $gPw21$zod.z).literal("custom_auth"), | ||
custom_user_id: (0, $gPw21$zod.z).string(), | ||
verified_at: (0, $gPw21$zod.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$70ab2a322f92399 = (0, $gPw21$privyioapibase.z).union([ | ||
const $c51512243cb13f0a$export$70ab2a322f92399 = (0, $gPw21$zod.z).union([ | ||
$c51512243cb13f0a$export$b291b2a8281f162e, | ||
@@ -562,19 +566,19 @@ $c51512243cb13f0a$export$e461068a75eb0fb3, | ||
]); | ||
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$1f44aaf2ec115b54 = (0, $gPw21$zod.z).object({ | ||
id: (0, $gPw21$zod.z).string(), | ||
linked_accounts: (0, $gPw21$zod.z).array($c51512243cb13f0a$export$70ab2a322f92399), | ||
created_at: (0, $gPw21$zod.z).number() | ||
}); | ||
const $c51512243cb13f0a$export$7de20aee312d6767 = (0, $gPw21$privyioapibase.z).object({ | ||
const $c51512243cb13f0a$export$7de20aee312d6767 = (0, $gPw21$zod.z).object({ | ||
user: $c51512243cb13f0a$export$1f44aaf2ec115b54, | ||
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() | ||
token: (0, $gPw21$zod.z).string().nonempty().nullable(), | ||
refresh_token: (0, $gPw21$zod.z).string().nonempty().nullable(), | ||
is_new_user: (0, $gPw21$zod.z).boolean().optional() | ||
}); | ||
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$8339543958fe900f = (0, $gPw21$zod.z).object({ | ||
user: (0, $gPw21$zod.z).null(), | ||
token: (0, $gPw21$zod.z).null(), | ||
refresh_token: (0, $gPw21$zod.z).null() | ||
}); | ||
const $c51512243cb13f0a$export$2b6251d563a4e626 = (0, $gPw21$privyioapibase.z).union([ | ||
const $c51512243cb13f0a$export$2b6251d563a4e626 = (0, $gPw21$zod.z).union([ | ||
$c51512243cb13f0a$export$7de20aee312d6767, | ||
@@ -599,4 +603,4 @@ $c51512243cb13f0a$export$8339543958fe900f | ||
const $21cbae5d84a72acb$var$AuthenticateJwtInput = (0, $gPw21$privyioapibase.z).object({ | ||
token: (0, $gPw21$privyioapibase.z).string().optional() | ||
const $21cbae5d84a72acb$var$AuthenticateJwtInput = (0, $gPw21$zod.z).object({ | ||
token: (0, $gPw21$zod.z).string().optional() | ||
}); | ||
@@ -607,4 +611,4 @@ const $21cbae5d84a72acb$export$309e9bf66db49ded = new (0, $gPw21$privyioapibase.Route)({ | ||
path: "/api/v1/custom_jwt_account/authenticate", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: $21cbae5d84a72acb$var$AuthenticateJwtInput, | ||
@@ -627,2 +631,3 @@ responseSchema: { | ||
const $c73973fc3d74361c$export$c9ea1b597ead9145 = new (0, $gPw21$privyioapibase.Route)({ | ||
@@ -632,4 +637,4 @@ name: "authenticateOauthAccount", | ||
path: "/api/v1/oauth/authenticate", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $795b90806d3d0612$export$3a815e8ae7821b6e), | ||
@@ -645,4 +650,4 @@ responseSchema: { | ||
path: "/api/v1/oauth/init", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $795b90806d3d0612$export$25d68298fd675d8b), | ||
@@ -657,4 +662,4 @@ responseSchema: { | ||
path: "/api/v1/oauth/link", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $795b90806d3d0612$export$5169dcfff85dfbff), | ||
@@ -669,4 +674,4 @@ responseSchema: { | ||
path: "/api/v1/oauth/unlink", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $795b90806d3d0612$export$100da24bb64f0e09), | ||
@@ -689,2 +694,3 @@ responseSchema: { | ||
const $d09089baeea8fb52$export$7c7ad4dab667cf23 = new (0, $gPw21$privyioapibase.Route)({ | ||
@@ -694,4 +700,4 @@ name: "passwordlessAuthenticate", | ||
path: "/api/v1/passwordless/authenticate", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $cc6ae740eaa7d607$export$ca08e252312baf4), | ||
@@ -708,4 +714,4 @@ responseSchema: { | ||
path: "/api/v1/passwordless/init", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $cc6ae740eaa7d607$export$ef1330eae1875774), | ||
@@ -722,4 +728,4 @@ responseSchema: { | ||
path: "/api/v1/passwordless/link", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $cc6ae740eaa7d607$export$ca08e252312baf4), | ||
@@ -736,4 +742,4 @@ responseSchema: { | ||
path: "/api/v1/passwordless/unlink", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $cc6ae740eaa7d607$export$b0a53354e7257ebb), | ||
@@ -758,2 +764,3 @@ responseSchema: { | ||
const $b187b7cb32fd4dc0$export$467a8c7cc94216ff = new (0, $gPw21$privyioapibase.Route)({ | ||
@@ -763,4 +770,4 @@ name: "passwordlessSmsAuthenticate", | ||
path: "/api/v1/passwordless_sms/authenticate", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $04c18d909516a729$export$af3277919119bba6), | ||
@@ -777,4 +784,4 @@ responseSchema: { | ||
path: "/api/v1/passwordless_sms/init", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $04c18d909516a729$export$83ef7f09235a21fd), | ||
@@ -792,4 +799,4 @@ responseSchema: { | ||
path: "/api/v1/passwordless_sms/link", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $04c18d909516a729$export$af3277919119bba6), | ||
@@ -806,4 +813,4 @@ responseSchema: { | ||
path: "/api/v1/passwordless_sms/unlink", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $04c18d909516a729$export$63fc94c9f0d4eea8), | ||
@@ -822,2 +829,3 @@ responseSchema: { | ||
const $5c966f9aeee72fae$export$6794ace65368b7c3 = new (0, $gPw21$privyioapibase.Route)({ | ||
@@ -827,7 +835,7 @@ name: "recordAnalyticsEvent", | ||
path: "/api/v1/analytics_events", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $426dcdc16665ab40$export$5ac03ce02eff89f4), | ||
responseSchema: { | ||
[(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$privyioapibase.z).null(), "Analytics event successfully recorded") | ||
[(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $gPw21$zod.z).null(), "Analytics event successfully recorded") | ||
} | ||
@@ -847,2 +855,3 @@ }); | ||
const $fb503c397541569c$export$296522b9b583854e = new (0, $gPw21$privyioapibase.Route)({ | ||
@@ -852,4 +861,4 @@ name: "refreshSession", | ||
path: "/api/v1/sessions", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $16f710c1039ca8e9$export$3ea9bae16087a241), | ||
@@ -865,4 +874,4 @@ responseSchema: { | ||
path: "/api/v1/sessions/logout", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $16f710c1039ca8e9$export$3ea9bae16087a241), | ||
@@ -878,4 +887,4 @@ responseSchema: { | ||
path: "/api/v1/sessions/fork", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $16f710c1039ca8e9$export$6aa3af8166ea5386), | ||
@@ -892,4 +901,4 @@ responseSchema: { | ||
path: "/api/v1/sessions/fork/recover", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $16f710c1039ca8e9$export$6aa3af8166ea5386), | ||
@@ -912,2 +921,3 @@ responseSchema: { | ||
const $df8b0f7b9ece7304$export$5e0f80c6887f4f08 = new (0, $gPw21$privyioapibase.Route)({ | ||
@@ -917,4 +927,4 @@ name: "authenticateSiwe", | ||
path: "/api/v1/siwe/authenticate", | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $71ecc6c9c496faaf$export$1c8c55e22e1d8d9), | ||
@@ -930,4 +940,4 @@ responseSchema: { | ||
path: "/api/v1/siwe/init", | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $71ecc6c9c496faaf$export$b5b65f417dc17888), | ||
@@ -944,4 +954,4 @@ responseSchema: { | ||
path: "/api/v1/siwe/link", | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $71ecc6c9c496faaf$export$1c8c55e22e1d8d9), | ||
@@ -957,4 +967,4 @@ responseSchema: { | ||
path: "/api/v1/siwe/unlink", | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({}), | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
bodySchema: (0, $71ecc6c9c496faaf$export$b5b65f417dc17888), | ||
@@ -973,2 +983,3 @@ responseSchema: { | ||
const $5bfcd6ffd8ce001a$export$544aaded68bb6ae2 = new (0, $gPw21$privyioapibase.Route)({ | ||
@@ -978,7 +989,7 @@ name: "getAppConfig", | ||
path: "/api/v1/apps/:app_id", | ||
pathQuerySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
pathParamsSchema: (0, $gPw21$privyioapibase.z).object({ | ||
app_id: (0, $gPw21$privyioapibase.z).string().max(255) | ||
pathQuerySchema: (0, $gPw21$zod.z).object({}), | ||
pathParamsSchema: (0, $gPw21$zod.z).object({ | ||
app_id: (0, $gPw21$zod.z).string().max(255) | ||
}), | ||
bodySchema: (0, $gPw21$privyioapibase.z).object({}), | ||
bodySchema: (0, $gPw21$zod.z).object({}), | ||
responseSchema: { | ||
@@ -985,0 +996,0 @@ [(0, $gPw21$privyioapibase.StatusCode).OK]: (0, $gPw21$privyioapibase.Route).toJSONResponseSchema((0, $6f7f180cfca83514$export$dc5469a0fff5641e), "Analytics event successfully recorded"), |
{ | ||
"name": "@privy-io/public-api", | ||
"version": "1.3.1", | ||
"version": "1.4.0-beta-20231019031018", | ||
"engines": { | ||
@@ -50,9 +50,10 @@ "npm": ">=8.0.0 <10.0.0", | ||
"dependencies": { | ||
"@privy-io/api-base": "*", | ||
"@privy-io/api-base": "0.4.0-beta-20231019031018", | ||
"ethers": "^5.7.2", | ||
"libphonenumber-js": "^1.10.31" | ||
"libphonenumber-js": "^1.10.31", | ||
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@privy-io/eslint-config-custom": "*", | ||
"@privy-io/tsconfig": "*", | ||
"@privy-io/eslint-config-custom": "*", | ||
"parcel": "2.10.0" | ||
@@ -59,0 +60,0 @@ }, |
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
1
222586
4
2
+ Addedzod@^3.22.4
+ Added@privy-io/api-base@0.4.0-beta-20231019031018(transitive)
- Removed@privy-io/api-base@1.4.2(transitive)