Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@privy-io/api-base

Package Overview
Dependencies
Maintainers
7
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@privy-io/api-base - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0-beta-20240611220834

4

dist/index.d.ts

@@ -75,3 +75,5 @@ import { z } from 'zod';

/** Invalid app url scheme configuration */
INVALID_APP_URL_SCHEME_CONFIGURATION = "invalid_app_url_scheme_configuration"
INVALID_APP_URL_SCHEME_CONFIGURATION = "invalid_app_url_scheme_configuration",
/** This app is not permitted to provider to target app */
CROSS_APP_CONNECTION_NOT_ALLOWED = "cross_app_connection_not_allowed"
}

@@ -78,0 +80,0 @@

@@ -1,1 +0,1 @@

"use strict";var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var x=(t,s)=>{for(var e in s)o(t,e,{get:s[e],enumerable:!0})},d=(t,s,e,I)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of E(s))!R.call(t,a)&&a!==e&&o(t,a,{get:()=>s[a],enumerable:!(I=m(s,a))||I.enumerable});return t};var g=t=>d(o({},"__esModule",{value:!0}),t);var V={};x(V,{APIError:()=>U,AllowlistRejectedError:()=>p,ForbiddenError:()=>l,HttpError:()=>n,InternalServerError:()=>L,InvalidInputError:()=>N,LegacyInvalidInputError:()=>S,NotFoundError:()=>O,PrivyErrorCode:()=>i,RequestTimeoutError:()=>u,TooManyRequestsError:()=>T,UnauthorizedError:()=>A,UnsupportedMediaType:()=>D});module.exports=g(V);var i=(_=>(_.OAUTH_ACCOUNT_SUSPENDED="oauth_account_suspended",_.MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",_.MISSING_OR_INVALID_PRIVY_CLIENT_ID="missing_or_invalid_privy_client_id",_.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",_.MISSING_OR_INVALID_TOKEN="missing_or_invalid_token",_.MISSING_OR_INVALID_MFA="missing_or_invalid_mfa",_.EXPIRED_OR_INVALID_MFA_TOKEN="expired_or_invalid_mfa_token",_.INVALID_DATA="invalid_data",_.INVALID_CREDENTIALS="invalid_credentials",_.INVALID_CAPTCHA="invalid_captcha",_.LINKED_TO_ANOTHER_USER="linked_to_another_user",_.ALLOWLIST_REJECTED="allowlist_rejected",_.CANNOT_UNLINK_EMBEDDED_WALLET="cannot_unlink_embedded_wallet",_.CANNOT_UNLINK_SOLE_ACCOUNT="cannot_unlink_sole_account",_.CANNOT_LINK_MORE_OF_TYPE="cannot_link_more_of_type",_.LINKED_ACCOUNT_NOT_FOUND="linked_account_not_found",_.TOO_MANY_REQUESTS="too_many_requests",_.INVALID_ORIGIN="invalid_origin",_.MISSING_ORIGIN="missing_origin",_.INVALID_NATIVE_APP_ID="invalid_native_app_id",_.TOKEN_ALREADY_USED="token_already_used",_.ALREADY_LOGGED_OUT="already_logged_out",_.NOT_SUPPORTED="not_supported",_.USER_UNSUBSCRIBED="user_unsubscribed",_.MAX_APPS_REACHED="max_apps_reached",_.USER_LIMIT_REACHED="max_accounts_reached",_.DEVICE_REVOKED="device_revoked",_.WALLET_PASSWORD_EXISTS="wallet_password_exists",_.OAUTH_STATE_MISMATCH="oauth_state_mismatch",_.MAX_DENYLIST_ENTRIES_REACHED="max_denylist_entries_reached",_.DISALLOWED_LOGIN_METHOD="disallowed_login_method",_.DISALLOWED_RECOVERY_METHOD="disallowed_recovery_method",_.LEGACY_DASHBOARD_LOGIN_CONFIGURATION="legacy_dashboard_login_configuration",_.CANNOT_SET_PASSWORD="cannot_set_password",_.INVALID_PKCE_PARAMETERS="invalid_pkce_parameters",_.INVALID_APP_URL_SCHEME_CONFIGURATION="invalid_app_url_scheme_configuration",_))(i||{});var n=class extends Error{status;code;constructor(s,e,I){super(e),this.code=I,this.status=s}toString(){return`${this.constructor.name}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}},N=class extends n{constructor(s,e){super(400,s,e)}},A=class extends n{constructor(s,e){super(401,s,e)}},p=class extends A{constructor(s){super(s||"User is not allowed to login to this app.","allowlist_rejected")}},l=class extends n{constructor(s,e){super(403,s,e)}},O=class extends n{constructor(s){super(404,s)}},u=class extends n{constructor(s,e){super(408,s,e)}},D=class extends n{constructor(s){super(415,s)}},S=class extends n{constructor(s,e){super(422,s,e)}},T=class extends n{constructor(s){super(429,s||"Too many requests. Please wait to try again.","too_many_requests")}},L=class extends n{constructor(s){super(500,s||"Service unavailable.")}};var c=require("zod");var U=c.z.object({error:c.z.string(),cause:c.z.string().optional(),code:c.z.nativeEnum(i).optional()});0&&(module.exports={APIError,AllowlistRejectedError,ForbiddenError,HttpError,InternalServerError,InvalidInputError,LegacyInvalidInputError,NotFoundError,PrivyErrorCode,RequestTimeoutError,TooManyRequestsError,UnauthorizedError,UnsupportedMediaType});
"use strict";var A=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var x=(t,s)=>{for(var e in s)A(t,e,{get:s[e],enumerable:!0})},d=(t,s,e,I)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of R(s))!m.call(t,a)&&a!==e&&A(t,a,{get:()=>s[a],enumerable:!(I=E(s,a))||I.enumerable});return t};var g=t=>d(A({},"__esModule",{value:!0}),t);var V={};x(V,{APIError:()=>U,AllowlistRejectedError:()=>p,ForbiddenError:()=>O,HttpError:()=>n,InternalServerError:()=>L,InvalidInputError:()=>N,LegacyInvalidInputError:()=>S,NotFoundError:()=>l,PrivyErrorCode:()=>c,RequestTimeoutError:()=>D,TooManyRequestsError:()=>T,UnauthorizedError:()=>o,UnsupportedMediaType:()=>u});module.exports=g(V);var c=(_=>(_.OAUTH_ACCOUNT_SUSPENDED="oauth_account_suspended",_.MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",_.MISSING_OR_INVALID_PRIVY_CLIENT_ID="missing_or_invalid_privy_client_id",_.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",_.MISSING_OR_INVALID_TOKEN="missing_or_invalid_token",_.MISSING_OR_INVALID_MFA="missing_or_invalid_mfa",_.EXPIRED_OR_INVALID_MFA_TOKEN="expired_or_invalid_mfa_token",_.INVALID_DATA="invalid_data",_.INVALID_CREDENTIALS="invalid_credentials",_.INVALID_CAPTCHA="invalid_captcha",_.LINKED_TO_ANOTHER_USER="linked_to_another_user",_.ALLOWLIST_REJECTED="allowlist_rejected",_.CANNOT_UNLINK_EMBEDDED_WALLET="cannot_unlink_embedded_wallet",_.CANNOT_UNLINK_SOLE_ACCOUNT="cannot_unlink_sole_account",_.CANNOT_LINK_MORE_OF_TYPE="cannot_link_more_of_type",_.LINKED_ACCOUNT_NOT_FOUND="linked_account_not_found",_.TOO_MANY_REQUESTS="too_many_requests",_.INVALID_ORIGIN="invalid_origin",_.MISSING_ORIGIN="missing_origin",_.INVALID_NATIVE_APP_ID="invalid_native_app_id",_.TOKEN_ALREADY_USED="token_already_used",_.ALREADY_LOGGED_OUT="already_logged_out",_.NOT_SUPPORTED="not_supported",_.USER_UNSUBSCRIBED="user_unsubscribed",_.MAX_APPS_REACHED="max_apps_reached",_.USER_LIMIT_REACHED="max_accounts_reached",_.DEVICE_REVOKED="device_revoked",_.WALLET_PASSWORD_EXISTS="wallet_password_exists",_.OAUTH_STATE_MISMATCH="oauth_state_mismatch",_.MAX_DENYLIST_ENTRIES_REACHED="max_denylist_entries_reached",_.DISALLOWED_LOGIN_METHOD="disallowed_login_method",_.DISALLOWED_RECOVERY_METHOD="disallowed_recovery_method",_.LEGACY_DASHBOARD_LOGIN_CONFIGURATION="legacy_dashboard_login_configuration",_.CANNOT_SET_PASSWORD="cannot_set_password",_.INVALID_PKCE_PARAMETERS="invalid_pkce_parameters",_.INVALID_APP_URL_SCHEME_CONFIGURATION="invalid_app_url_scheme_configuration",_.CROSS_APP_CONNECTION_NOT_ALLOWED="cross_app_connection_not_allowed",_))(c||{});var n=class extends Error{status;code;constructor(s,e,I){super(e),this.code=I,this.status=s}toString(){return`${this.constructor.name}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}},N=class extends n{constructor(s,e){super(400,s,e)}},o=class extends n{constructor(s,e){super(401,s,e)}},p=class extends o{constructor(s){super(s||"User is not allowed to login to this app.","allowlist_rejected")}},O=class extends n{constructor(s,e){super(403,s,e)}},l=class extends n{constructor(s){super(404,s)}},D=class extends n{constructor(s,e){super(408,s,e)}},u=class extends n{constructor(s){super(415,s)}},S=class extends n{constructor(s,e){super(422,s,e)}},T=class extends n{constructor(s){super(429,s||"Too many requests. Please wait to try again.","too_many_requests")}},L=class extends n{constructor(s){super(500,s||"Service unavailable.")}};var i=require("zod");var U=i.z.object({error:i.z.string(),cause:i.z.string().optional(),code:i.z.nativeEnum(c).optional()});0&&(module.exports={APIError,AllowlistRejectedError,ForbiddenError,HttpError,InternalServerError,InvalidInputError,LegacyInvalidInputError,NotFoundError,PrivyErrorCode,RequestTimeoutError,TooManyRequestsError,UnauthorizedError,UnsupportedMediaType});
{
"name": "@privy-io/api-base",
"version": "1.1.1",
"version": "1.2.0-beta-20240611220834",
"engines": {

@@ -5,0 +5,0 @@ "npm": ">=8.0.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc