@privy-io/api-base 1.9.5 → 1.10.0-beta-20260827192706
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/index.d.mts +10 -2
- package/dist/dts/index.d.ts +10 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("zod"),t=function(e){return e.OAUTH_ACCOUNT_SUSPENDED=`oauth_account_suspended`,e.MISSING_OR_INVALID_PRIVY_APP_ID=`missing_or_invalid_privy_app_id`,e.MISSING_OR_INVALID_PRIVY_CLIENT_ID=`missing_or_invalid_privy_client_id`,e.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID=`missing_or_invalid_privy_account_id`,e.MISSING_OR_INVALID_TOKEN=`missing_or_invalid_token`,e.MISSING_MFA_ENROLLMENT=`missing_mfa_enrollment`,e.MISSING_OR_INVALID_MFA=`missing_or_invalid_mfa`,e.EXPIRED_OR_INVALID_MFA_TOKEN=`expired_or_invalid_mfa_token`,e.INVALID_DATA=`invalid_data`,e.INVALID_CREDENTIALS=`invalid_credentials`,e.INVALID_CAPTCHA=`invalid_captcha`,e.LINKED_TO_ANOTHER_USER=`linked_to_another_user`,e.ALLOWLIST_REJECTED=`allowlist_rejected`,e.CANNOT_UNLINK_EMBEDDED_WALLET=`cannot_unlink_embedded_wallet`,e.CANNOT_UNLINK_SOLE_ACCOUNT=`cannot_unlink_sole_account`,e.CANNOT_LINK_MORE_OF_TYPE=`cannot_link_more_of_type`,e.LINKED_ACCOUNT_NOT_FOUND=`linked_account_not_found`,e.TOO_MANY_REQUESTS=`too_many_requests`,e.RESOURCE_CONFLICT=`resource_conflict`,e.INVALID_ORIGIN=`invalid_origin`,e.MISSING_ORIGIN=`missing_origin`,e.INVALID_NATIVE_APP_ID=`invalid_native_app_id`,e.TOKEN_ALREADY_USED=`token_already_used`,e.ALREADY_LOGGED_OUT=`already_logged_out`,e.NOT_SUPPORTED=`not_supported`,e.USER_UNSUBSCRIBED=`user_unsubscribed`,e.MAX_APPS_REACHED=`max_apps_reached`,e.USER_LIMIT_REACHED=`max_accounts_reached`,e.DEVICE_REVOKED=`device_revoked`,e.WALLET_PASSWORD_EXISTS=`wallet_password_exists`,e.OAUTH_STATE_MISMATCH=`oauth_state_mismatch`,e.MAX_DENYLIST_ENTRIES_REACHED=`max_denylist_entries_reached`,e.MAX_TEST_ACCOUNTS_REACHED=`max_test_accounts_reached`,e.DISALLOWED_LOGIN_METHOD=`disallowed_login_method`,e.DISALLOWED_PLUS_EMAIL=`disallowed_plus_email`,e.DISALLOWED_RECOVERY_METHOD=`disallowed_recovery_method`,e.LEGACY_DASHBOARD_LOGIN_CONFIGURATION=`legacy_dashboard_login_configuration`,e.CANNOT_SET_PASSWORD=`cannot_set_password`,e.INVALID_PKCE_PARAMETERS=`invalid_pkce_parameters`,e.INVALID_APP_URL_SCHEME_CONFIGURATION=`invalid_app_url_scheme_configuration`,e.CROSS_APP_CONNECTION_NOT_ALLOWED=`cross_app_connection_not_allowed`,e.USER_DOES_NOT_EXIST=`user_does_not_exist`,e.ALREADY_EXISTS=`resource_already_exists`,e.ACCOUNT_TRANSFER_REQUIRED=`account_transfer_required`,e.USER_HAS_NOT_DELEGATED_WALLET=`user_has_not_delegated_wallet`,e.FEATURE_NOT_ENABLED=`feature_not_enabled`,e.ONRAMP_MINIMUM_IDENTITY_VERIFICATION_REQUIRED=`onramp_minimum_identity_verification_required`,e.ONRAMP_IDENTITY_VERIFICATION_REQUIRED=`onramp_identity_verification_required`,e.ONRAMP_DOCUMENT_VERIFICATION_REQUIRED=`onramp_document_verification_required`,e.ONRAMP_UNSUPPORTED_INFORMATION=`onramp_unsupported_information`,e.ONRAMP_TRANSACTION_LIMIT_REACHED=`transaction_limit_reached`,e.ONRAMP_QUOTE_EXPIRED=`onramp_quote_expired`,e.INSUFFICIENT_FUNDS=`insufficient_funds`,e.TRANSACTION_BROADCAST_FAILURE=`transaction_broadcast_failure`,e.TRANSACTION_EXECUTION_FAILURE=`transaction_execution_failure`,e.INVALID_SOLANA_TRANSACTION=`invalid_solana_transaction`,e.INVALID_POLICY_FORMAT=`invalid_policy_format`,e.INVALID_AGGREGATION_FORMAT=`invalid_aggregation_format`,e.POLICY_VIOLATION=`policy_violation`,e.AUTHORIZATION_KEY_HAS_ASSOCIATED_WALLETS=`authorization_key_has_associated_wallets`,e.COMPLIANCE_BLOCKED=`compliance_blocked`,e.INVALID_REQUEST=`invalid_request`,e.SIGNUP_DISABLED=`signup_disabled`,e.INVALID_STATE=`invalid_state`,e}({});var n=class extends Error{status;code;responseData;constructor(e,t,n,r){super(t),this.status=e,this.code=n,this.name=`HttpError`,this.responseData=r}toString(){return`${this.name}: ${this.message}${this.cause?` [cause: ${this.cause}]`:``}`}},r=class extends n{constructor(e,t){super(400,e,t||`invalid_data`),this.name=`InvalidInputError`}},i=class extends n{constructor(e,t){super(401,e,t),this.name=`UnauthorizedError`}},a=class extends i{constructor(e){super(e||`User is not allowed to login to this app.`,`allowlist_rejected`),this.name=`AllowlistRejectedError`}},o=class extends n{constructor(e,t){super(403,e,t),this.name=`ForbiddenError`}},s=class extends n{constructor(e){super(404,e),this.name=`NotFoundError`}},c=class extends n{constructor(e,t){super(408,e,t),this.name=`RequestTimeoutError`}},l=class extends n{constructor(e){super(415,e),this.name=`UnsupportedMediaType`}},u=class extends n{constructor(e,t){super(422,e,t),this.name=`LegacyInvalidInputError`}},d=class extends n{constructor(e){super(429,e||`Too many requests. Please wait to try again.`,`too_many_requests`),this.name=`TooManyRequestsError`}},f=class extends n{constructor(e,t){super(409,e||`Conflict encountered while trying to modify resource.`,t||`resource_conflict`),this.name=`ResourceConflictError`}},p=class extends n{constructor(e){super(400,e||`Insufficient balance.`,`insufficient_funds`),this.name=`InsufficientBalanceError`}},m=class extends n{constructor(e){super(402,e||`Payment failed.`)}},h=class extends n{constructor(e){super(500,e||`Service unavailable
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("zod"),t=function(e){return e.OAUTH_ACCOUNT_SUSPENDED=`oauth_account_suspended`,e.MISSING_OR_INVALID_PRIVY_APP_ID=`missing_or_invalid_privy_app_id`,e.MISSING_OR_INVALID_PRIVY_CLIENT_ID=`missing_or_invalid_privy_client_id`,e.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID=`missing_or_invalid_privy_account_id`,e.MISSING_OR_INVALID_TOKEN=`missing_or_invalid_token`,e.MISSING_MFA_ENROLLMENT=`missing_mfa_enrollment`,e.MISSING_OR_INVALID_MFA=`missing_or_invalid_mfa`,e.EXPIRED_OR_INVALID_MFA_TOKEN=`expired_or_invalid_mfa_token`,e.INVALID_DATA=`invalid_data`,e.INVALID_CREDENTIALS=`invalid_credentials`,e.PASSKEY_NOT_REGISTERED=`passkey_not_registered`,e.INVALID_CAPTCHA=`invalid_captcha`,e.LINKED_TO_ANOTHER_USER=`linked_to_another_user`,e.ALLOWLIST_REJECTED=`allowlist_rejected`,e.CANNOT_UNLINK_EMBEDDED_WALLET=`cannot_unlink_embedded_wallet`,e.CANNOT_UNLINK_SOLE_ACCOUNT=`cannot_unlink_sole_account`,e.CANNOT_LINK_MORE_OF_TYPE=`cannot_link_more_of_type`,e.LINKED_ACCOUNT_NOT_FOUND=`linked_account_not_found`,e.TOO_MANY_REQUESTS=`too_many_requests`,e.RESOURCE_CONFLICT=`resource_conflict`,e.INVALID_ORIGIN=`invalid_origin`,e.MISSING_ORIGIN=`missing_origin`,e.INVALID_NATIVE_APP_ID=`invalid_native_app_id`,e.TOKEN_ALREADY_USED=`token_already_used`,e.ALREADY_LOGGED_OUT=`already_logged_out`,e.NOT_SUPPORTED=`not_supported`,e.USER_UNSUBSCRIBED=`user_unsubscribed`,e.MAX_APPS_REACHED=`max_apps_reached`,e.USER_LIMIT_REACHED=`max_accounts_reached`,e.DEVICE_REVOKED=`device_revoked`,e.WALLET_PASSWORD_EXISTS=`wallet_password_exists`,e.OAUTH_STATE_MISMATCH=`oauth_state_mismatch`,e.MAX_DENYLIST_ENTRIES_REACHED=`max_denylist_entries_reached`,e.MAX_TEST_ACCOUNTS_REACHED=`max_test_accounts_reached`,e.DISALLOWED_LOGIN_METHOD=`disallowed_login_method`,e.DISALLOWED_PLUS_EMAIL=`disallowed_plus_email`,e.DISALLOWED_RECOVERY_METHOD=`disallowed_recovery_method`,e.LEGACY_DASHBOARD_LOGIN_CONFIGURATION=`legacy_dashboard_login_configuration`,e.CANNOT_SET_PASSWORD=`cannot_set_password`,e.INVALID_PKCE_PARAMETERS=`invalid_pkce_parameters`,e.INVALID_APP_URL_SCHEME_CONFIGURATION=`invalid_app_url_scheme_configuration`,e.CROSS_APP_CONNECTION_NOT_ALLOWED=`cross_app_connection_not_allowed`,e.USER_DOES_NOT_EXIST=`user_does_not_exist`,e.ALREADY_EXISTS=`resource_already_exists`,e.ACCOUNT_TRANSFER_REQUIRED=`account_transfer_required`,e.USER_HAS_NOT_DELEGATED_WALLET=`user_has_not_delegated_wallet`,e.FEATURE_NOT_ENABLED=`feature_not_enabled`,e.ONRAMP_MINIMUM_IDENTITY_VERIFICATION_REQUIRED=`onramp_minimum_identity_verification_required`,e.ONRAMP_IDENTITY_VERIFICATION_REQUIRED=`onramp_identity_verification_required`,e.ONRAMP_DOCUMENT_VERIFICATION_REQUIRED=`onramp_document_verification_required`,e.ONRAMP_UNSUPPORTED_INFORMATION=`onramp_unsupported_information`,e.ONRAMP_TRANSACTION_LIMIT_REACHED=`transaction_limit_reached`,e.ONRAMP_QUOTE_EXPIRED=`onramp_quote_expired`,e.INSUFFICIENT_FUNDS=`insufficient_funds`,e.TRANSACTION_BROADCAST_FAILURE=`transaction_broadcast_failure`,e.TRANSACTION_EXECUTION_FAILURE=`transaction_execution_failure`,e.INVALID_SOLANA_TRANSACTION=`invalid_solana_transaction`,e.INVALID_POLICY_FORMAT=`invalid_policy_format`,e.INVALID_AGGREGATION_FORMAT=`invalid_aggregation_format`,e.POLICY_VIOLATION=`policy_violation`,e.AUTHORIZATION_KEY_HAS_ASSOCIATED_WALLETS=`authorization_key_has_associated_wallets`,e.COMPLIANCE_BLOCKED=`compliance_blocked`,e.INVALID_REQUEST=`invalid_request`,e.SIGNUP_DISABLED=`signup_disabled`,e.INVALID_STATE=`invalid_state`,e.WALLET_ENTITY_ASSIGNMENT_FAILED=`wallet_entity_assignment_failed`,e.WALLET_ENTITY_LIMIT_EXCEEDED=`wallet_entity_limit_exceeded`,e.WALLET_ENTITY_ALREADY_SET=`wallet_entity_already_set`,e}({});var n=class extends Error{status;code;responseData;constructor(e,t,n,r){super(t),this.status=e,this.code=n,this.name=`HttpError`,this.responseData=r}toString(){return`${this.name}: ${this.message}${this.cause?` [cause: ${this.cause}]`:``}`}},r=class extends n{constructor(e,t){super(400,e,t||`invalid_data`),this.name=`InvalidInputError`}},i=class extends n{constructor(e,t){super(401,e,t),this.name=`UnauthorizedError`}},a=class extends i{constructor(e){super(e||`User is not allowed to login to this app.`,`allowlist_rejected`),this.name=`AllowlistRejectedError`}},o=class extends n{constructor(e,t){super(403,e,t),this.name=`ForbiddenError`}},s=class extends n{constructor(e){super(404,e),this.name=`NotFoundError`}},c=class extends n{constructor(e,t){super(408,e,t),this.name=`RequestTimeoutError`}},l=class extends n{constructor(e){super(415,e),this.name=`UnsupportedMediaType`}},u=class extends n{constructor(e,t){super(422,e,t),this.name=`LegacyInvalidInputError`}},d=class extends n{constructor(e){super(429,e||`Too many requests. Please wait to try again.`,`too_many_requests`),this.name=`TooManyRequestsError`}},f=class extends n{constructor(e,t){super(409,e||`Conflict encountered while trying to modify resource.`,t||`resource_conflict`),this.name=`ResourceConflictError`}},p=class extends n{constructor(e){super(400,e||`Insufficient balance.`,`insufficient_funds`),this.name=`InsufficientBalanceError`}},m=class extends n{constructor(e){super(402,e||`Payment failed.`)}},h=class extends n{constructor(e,t,n){super(500,e||`Service unavailable.`,t,n),this.name=`InternalServerError`}},g=class extends n{data;constructor(e){super(400,`Account transfer required`,`account_transfer_required`,e),this.data=e,this.name=`AccountTransferRequiredError`}};const _=e.z.object({error:e.z.string(),cause:e.z.string().optional(),code:e.z.nativeEnum(t).optional()});exports.APIError=_,exports.AccountTransferRequiredError=g,exports.AllowlistRejectedError=a,exports.ForbiddenError=o,exports.HttpError=n,exports.InsufficientBalanceError=p,exports.InternalServerError=h,exports.InvalidInputError=r,exports.LegacyInvalidInputError=u,exports.NotFoundError=s,exports.PaymentFailedError=m,exports.PrivyErrorCode=t,exports.RequestTimeoutError=c,exports.ResourceConflictError=f,exports.TooManyRequestsError=d,exports.UnauthorizedError=i,exports.UnsupportedMediaType=l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["z"],"sources":["../../src/constants/error-codes.ts","../../src/classes/api-error.ts","../../src/schemas/error.ts"],"mappings":"wFAAY,EAAL,SAAA,EAAA,OAEL,GAAA,wBAAA,0BAEA,EAAA,gCAAA,kCAEA,EAAA,mCAAA,qCAEA,EAAA,oCAAA,sCAEA,EAAA,yBAAA,2BAEA,EAAA,uBAAA,yBAEA,EAAA,uBAAA,yBAEA,EAAA,6BAAA,+BAEA,EAAA,aAAA,eAEA,EAAA,oBAAA,sBAEA,EAAA,gBAAA,kBAEA,EAAA,uBAAA,yBAEA,EAAA,mBAAA,qBAEA,EAAA,8BAAA,gCAEA,EAAA,2BAAA,6BAEA,EAAA,yBAAA,2BAEA,EAAA,yBAAA,2BAEA,EAAA,kBAAA,oBAEA,EAAA,kBAAA,oBAEA,EAAA,eAAA,iBAEA,EAAA,eAAA,iBAEA,EAAA,sBAAA,wBAEA,EAAA,mBAAA,qBAEA,EAAA,mBAAA,qBAEA,EAAA,cAAA,gBA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ACd,CACF,EAEa,EAAb,cAA8C,CAAU,CACtD,YAAY,EAAkB,CAC5B,MAAM,IAAK,GAAW,wBAAA,oBAA0D,EAChF,KAAK,KAAO,0BACd,CACF,EAEa,EAAb,cAAwC,CAAU,CAChD,YAAY,EAAkB,CAC5B,MAAM,IAAK,GAAW,iBAAiB,CACzC,CACF,EAEa,EAAb,cAAyC,CAAU,CACjD,YAAY,EAAkB,EAA4B,EAAoC,CAC5F,MAAM,IAAK,GAAW,uBAAwB,EAAW,CAAY,EACrE,KAAK,KAAO,qBACd,CACF,EAEa,EAAb,cAAkD,CAAU,CAEjD,KADT,YACE,EAYA,CACA,MAAM,IAAK,4BAAA,4BAAuE,CAAI,EAb/E,KAAA,KAAA,EAcP,KAAK,KAAO,8BACd,CACF,ECpKA,MAAa,EAAWA,EAAAA,EAAE,OAAO,CAC/B,MAAOA,EAAAA,EAAE,OAAO,EAChB,MAAOA,EAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,EAE3B,KAAMA,EAAAA,EAAE,WAAW,CAAc,CAAC,CAAC,SAAS,CAC9C,CAAC"}
|
package/dist/dts/index.d.mts
CHANGED
|
@@ -21,6 +21,8 @@ declare enum PrivyErrorCode {
|
|
|
21
21
|
INVALID_DATA = "invalid_data",
|
|
22
22
|
/** A form of INVALID_DATA specifically when the user is trying to authenticate and did not match the provided challenge. */
|
|
23
23
|
INVALID_CREDENTIALS = "invalid_credentials",
|
|
24
|
+
/** The passkey the user authenticated with is not registered for this app. The credential may have been created under a different credential manager or app. Prompt the user for another login method. */
|
|
25
|
+
PASSKEY_NOT_REGISTERED = "passkey_not_registered",
|
|
24
26
|
/** When the user is trying to authenticate and did provide a valid CAPTCHA token. */
|
|
25
27
|
INVALID_CAPTCHA = "invalid_captcha",
|
|
26
28
|
/** You attempted to link an account that belongs to another user. */
|
|
@@ -127,7 +129,13 @@ declare enum PrivyErrorCode {
|
|
|
127
129
|
/** User sign ups are suspended for this account. */
|
|
128
130
|
SIGNUP_DISABLED = "signup_disabled",
|
|
129
131
|
/** The resource exists but is not in a valid state for this operation. */
|
|
130
|
-
INVALID_STATE = "invalid_state"
|
|
132
|
+
INVALID_STATE = "invalid_state",
|
|
133
|
+
/** The wallet was created but could not be attributed to the requested entity. */
|
|
134
|
+
WALLET_ENTITY_ASSIGNMENT_FAILED = "wallet_entity_assignment_failed",
|
|
135
|
+
/** The entity already has the maximum number of wallets attributed to it. */
|
|
136
|
+
WALLET_ENTITY_LIMIT_EXCEEDED = "wallet_entity_limit_exceeded",
|
|
137
|
+
/** The wallet is already attributed to an entity. Attribution is set-once. */
|
|
138
|
+
WALLET_ENTITY_ALREADY_SET = "wallet_entity_already_set"
|
|
131
139
|
}
|
|
132
140
|
//#endregion
|
|
133
141
|
//#region src/classes/api-error.d.ts
|
|
@@ -194,7 +202,7 @@ declare class PaymentFailedError extends HttpError {
|
|
|
194
202
|
constructor(message?: string);
|
|
195
203
|
}
|
|
196
204
|
declare class InternalServerError extends HttpError {
|
|
197
|
-
constructor(message?: string);
|
|
205
|
+
constructor(message?: string, errorCode?: PrivyErrorCode, responseData?: Record<string, any>);
|
|
198
206
|
}
|
|
199
207
|
declare class AccountTransferRequiredError extends HttpError {
|
|
200
208
|
data: {
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ declare enum PrivyErrorCode {
|
|
|
21
21
|
INVALID_DATA = "invalid_data",
|
|
22
22
|
/** A form of INVALID_DATA specifically when the user is trying to authenticate and did not match the provided challenge. */
|
|
23
23
|
INVALID_CREDENTIALS = "invalid_credentials",
|
|
24
|
+
/** The passkey the user authenticated with is not registered for this app. The credential may have been created under a different credential manager or app. Prompt the user for another login method. */
|
|
25
|
+
PASSKEY_NOT_REGISTERED = "passkey_not_registered",
|
|
24
26
|
/** When the user is trying to authenticate and did provide a valid CAPTCHA token. */
|
|
25
27
|
INVALID_CAPTCHA = "invalid_captcha",
|
|
26
28
|
/** You attempted to link an account that belongs to another user. */
|
|
@@ -127,7 +129,13 @@ declare enum PrivyErrorCode {
|
|
|
127
129
|
/** User sign ups are suspended for this account. */
|
|
128
130
|
SIGNUP_DISABLED = "signup_disabled",
|
|
129
131
|
/** The resource exists but is not in a valid state for this operation. */
|
|
130
|
-
INVALID_STATE = "invalid_state"
|
|
132
|
+
INVALID_STATE = "invalid_state",
|
|
133
|
+
/** The wallet was created but could not be attributed to the requested entity. */
|
|
134
|
+
WALLET_ENTITY_ASSIGNMENT_FAILED = "wallet_entity_assignment_failed",
|
|
135
|
+
/** The entity already has the maximum number of wallets attributed to it. */
|
|
136
|
+
WALLET_ENTITY_LIMIT_EXCEEDED = "wallet_entity_limit_exceeded",
|
|
137
|
+
/** The wallet is already attributed to an entity. Attribution is set-once. */
|
|
138
|
+
WALLET_ENTITY_ALREADY_SET = "wallet_entity_already_set"
|
|
131
139
|
}
|
|
132
140
|
//#endregion
|
|
133
141
|
//#region src/classes/api-error.d.ts
|
|
@@ -194,7 +202,7 @@ declare class PaymentFailedError extends HttpError {
|
|
|
194
202
|
constructor(message?: string);
|
|
195
203
|
}
|
|
196
204
|
declare class InternalServerError extends HttpError {
|
|
197
|
-
constructor(message?: string);
|
|
205
|
+
constructor(message?: string, errorCode?: PrivyErrorCode, responseData?: Record<string, any>);
|
|
198
206
|
}
|
|
199
207
|
declare class AccountTransferRequiredError extends HttpError {
|
|
200
208
|
data: {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z as e}from"zod";let t=function(e){return e.OAUTH_ACCOUNT_SUSPENDED=`oauth_account_suspended`,e.MISSING_OR_INVALID_PRIVY_APP_ID=`missing_or_invalid_privy_app_id`,e.MISSING_OR_INVALID_PRIVY_CLIENT_ID=`missing_or_invalid_privy_client_id`,e.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID=`missing_or_invalid_privy_account_id`,e.MISSING_OR_INVALID_TOKEN=`missing_or_invalid_token`,e.MISSING_MFA_ENROLLMENT=`missing_mfa_enrollment`,e.MISSING_OR_INVALID_MFA=`missing_or_invalid_mfa`,e.EXPIRED_OR_INVALID_MFA_TOKEN=`expired_or_invalid_mfa_token`,e.INVALID_DATA=`invalid_data`,e.INVALID_CREDENTIALS=`invalid_credentials`,e.INVALID_CAPTCHA=`invalid_captcha`,e.LINKED_TO_ANOTHER_USER=`linked_to_another_user`,e.ALLOWLIST_REJECTED=`allowlist_rejected`,e.CANNOT_UNLINK_EMBEDDED_WALLET=`cannot_unlink_embedded_wallet`,e.CANNOT_UNLINK_SOLE_ACCOUNT=`cannot_unlink_sole_account`,e.CANNOT_LINK_MORE_OF_TYPE=`cannot_link_more_of_type`,e.LINKED_ACCOUNT_NOT_FOUND=`linked_account_not_found`,e.TOO_MANY_REQUESTS=`too_many_requests`,e.RESOURCE_CONFLICT=`resource_conflict`,e.INVALID_ORIGIN=`invalid_origin`,e.MISSING_ORIGIN=`missing_origin`,e.INVALID_NATIVE_APP_ID=`invalid_native_app_id`,e.TOKEN_ALREADY_USED=`token_already_used`,e.ALREADY_LOGGED_OUT=`already_logged_out`,e.NOT_SUPPORTED=`not_supported`,e.USER_UNSUBSCRIBED=`user_unsubscribed`,e.MAX_APPS_REACHED=`max_apps_reached`,e.USER_LIMIT_REACHED=`max_accounts_reached`,e.DEVICE_REVOKED=`device_revoked`,e.WALLET_PASSWORD_EXISTS=`wallet_password_exists`,e.OAUTH_STATE_MISMATCH=`oauth_state_mismatch`,e.MAX_DENYLIST_ENTRIES_REACHED=`max_denylist_entries_reached`,e.MAX_TEST_ACCOUNTS_REACHED=`max_test_accounts_reached`,e.DISALLOWED_LOGIN_METHOD=`disallowed_login_method`,e.DISALLOWED_PLUS_EMAIL=`disallowed_plus_email`,e.DISALLOWED_RECOVERY_METHOD=`disallowed_recovery_method`,e.LEGACY_DASHBOARD_LOGIN_CONFIGURATION=`legacy_dashboard_login_configuration`,e.CANNOT_SET_PASSWORD=`cannot_set_password`,e.INVALID_PKCE_PARAMETERS=`invalid_pkce_parameters`,e.INVALID_APP_URL_SCHEME_CONFIGURATION=`invalid_app_url_scheme_configuration`,e.CROSS_APP_CONNECTION_NOT_ALLOWED=`cross_app_connection_not_allowed`,e.USER_DOES_NOT_EXIST=`user_does_not_exist`,e.ALREADY_EXISTS=`resource_already_exists`,e.ACCOUNT_TRANSFER_REQUIRED=`account_transfer_required`,e.USER_HAS_NOT_DELEGATED_WALLET=`user_has_not_delegated_wallet`,e.FEATURE_NOT_ENABLED=`feature_not_enabled`,e.ONRAMP_MINIMUM_IDENTITY_VERIFICATION_REQUIRED=`onramp_minimum_identity_verification_required`,e.ONRAMP_IDENTITY_VERIFICATION_REQUIRED=`onramp_identity_verification_required`,e.ONRAMP_DOCUMENT_VERIFICATION_REQUIRED=`onramp_document_verification_required`,e.ONRAMP_UNSUPPORTED_INFORMATION=`onramp_unsupported_information`,e.ONRAMP_TRANSACTION_LIMIT_REACHED=`transaction_limit_reached`,e.ONRAMP_QUOTE_EXPIRED=`onramp_quote_expired`,e.INSUFFICIENT_FUNDS=`insufficient_funds`,e.TRANSACTION_BROADCAST_FAILURE=`transaction_broadcast_failure`,e.TRANSACTION_EXECUTION_FAILURE=`transaction_execution_failure`,e.INVALID_SOLANA_TRANSACTION=`invalid_solana_transaction`,e.INVALID_POLICY_FORMAT=`invalid_policy_format`,e.INVALID_AGGREGATION_FORMAT=`invalid_aggregation_format`,e.POLICY_VIOLATION=`policy_violation`,e.AUTHORIZATION_KEY_HAS_ASSOCIATED_WALLETS=`authorization_key_has_associated_wallets`,e.COMPLIANCE_BLOCKED=`compliance_blocked`,e.INVALID_REQUEST=`invalid_request`,e.SIGNUP_DISABLED=`signup_disabled`,e.INVALID_STATE=`invalid_state`,e}({});var n=class extends Error{status;code;responseData;constructor(e,t,n,r){super(t),this.status=e,this.code=n,this.name=`HttpError`,this.responseData=r}toString(){return`${this.name}: ${this.message}${this.cause?` [cause: ${this.cause}]`:``}`}},r=class extends n{constructor(e,t){super(400,e,t||`invalid_data`),this.name=`InvalidInputError`}},i=class extends n{constructor(e,t){super(401,e,t),this.name=`UnauthorizedError`}},a=class extends i{constructor(e){super(e||`User is not allowed to login to this app.`,`allowlist_rejected`),this.name=`AllowlistRejectedError`}},o=class extends n{constructor(e,t){super(403,e,t),this.name=`ForbiddenError`}},s=class extends n{constructor(e){super(404,e),this.name=`NotFoundError`}},c=class extends n{constructor(e,t){super(408,e,t),this.name=`RequestTimeoutError`}},l=class extends n{constructor(e){super(415,e),this.name=`UnsupportedMediaType`}},u=class extends n{constructor(e,t){super(422,e,t),this.name=`LegacyInvalidInputError`}},d=class extends n{constructor(e){super(429,e||`Too many requests. Please wait to try again.`,`too_many_requests`),this.name=`TooManyRequestsError`}},f=class extends n{constructor(e,t){super(409,e||`Conflict encountered while trying to modify resource.`,t||`resource_conflict`),this.name=`ResourceConflictError`}},p=class extends n{constructor(e){super(400,e||`Insufficient balance.`,`insufficient_funds`),this.name=`InsufficientBalanceError`}},m=class extends n{constructor(e){super(402,e||`Payment failed.`)}},h=class extends n{constructor(e){super(500,e||`Service unavailable
|
|
1
|
+
import{z as e}from"zod";let t=function(e){return e.OAUTH_ACCOUNT_SUSPENDED=`oauth_account_suspended`,e.MISSING_OR_INVALID_PRIVY_APP_ID=`missing_or_invalid_privy_app_id`,e.MISSING_OR_INVALID_PRIVY_CLIENT_ID=`missing_or_invalid_privy_client_id`,e.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID=`missing_or_invalid_privy_account_id`,e.MISSING_OR_INVALID_TOKEN=`missing_or_invalid_token`,e.MISSING_MFA_ENROLLMENT=`missing_mfa_enrollment`,e.MISSING_OR_INVALID_MFA=`missing_or_invalid_mfa`,e.EXPIRED_OR_INVALID_MFA_TOKEN=`expired_or_invalid_mfa_token`,e.INVALID_DATA=`invalid_data`,e.INVALID_CREDENTIALS=`invalid_credentials`,e.PASSKEY_NOT_REGISTERED=`passkey_not_registered`,e.INVALID_CAPTCHA=`invalid_captcha`,e.LINKED_TO_ANOTHER_USER=`linked_to_another_user`,e.ALLOWLIST_REJECTED=`allowlist_rejected`,e.CANNOT_UNLINK_EMBEDDED_WALLET=`cannot_unlink_embedded_wallet`,e.CANNOT_UNLINK_SOLE_ACCOUNT=`cannot_unlink_sole_account`,e.CANNOT_LINK_MORE_OF_TYPE=`cannot_link_more_of_type`,e.LINKED_ACCOUNT_NOT_FOUND=`linked_account_not_found`,e.TOO_MANY_REQUESTS=`too_many_requests`,e.RESOURCE_CONFLICT=`resource_conflict`,e.INVALID_ORIGIN=`invalid_origin`,e.MISSING_ORIGIN=`missing_origin`,e.INVALID_NATIVE_APP_ID=`invalid_native_app_id`,e.TOKEN_ALREADY_USED=`token_already_used`,e.ALREADY_LOGGED_OUT=`already_logged_out`,e.NOT_SUPPORTED=`not_supported`,e.USER_UNSUBSCRIBED=`user_unsubscribed`,e.MAX_APPS_REACHED=`max_apps_reached`,e.USER_LIMIT_REACHED=`max_accounts_reached`,e.DEVICE_REVOKED=`device_revoked`,e.WALLET_PASSWORD_EXISTS=`wallet_password_exists`,e.OAUTH_STATE_MISMATCH=`oauth_state_mismatch`,e.MAX_DENYLIST_ENTRIES_REACHED=`max_denylist_entries_reached`,e.MAX_TEST_ACCOUNTS_REACHED=`max_test_accounts_reached`,e.DISALLOWED_LOGIN_METHOD=`disallowed_login_method`,e.DISALLOWED_PLUS_EMAIL=`disallowed_plus_email`,e.DISALLOWED_RECOVERY_METHOD=`disallowed_recovery_method`,e.LEGACY_DASHBOARD_LOGIN_CONFIGURATION=`legacy_dashboard_login_configuration`,e.CANNOT_SET_PASSWORD=`cannot_set_password`,e.INVALID_PKCE_PARAMETERS=`invalid_pkce_parameters`,e.INVALID_APP_URL_SCHEME_CONFIGURATION=`invalid_app_url_scheme_configuration`,e.CROSS_APP_CONNECTION_NOT_ALLOWED=`cross_app_connection_not_allowed`,e.USER_DOES_NOT_EXIST=`user_does_not_exist`,e.ALREADY_EXISTS=`resource_already_exists`,e.ACCOUNT_TRANSFER_REQUIRED=`account_transfer_required`,e.USER_HAS_NOT_DELEGATED_WALLET=`user_has_not_delegated_wallet`,e.FEATURE_NOT_ENABLED=`feature_not_enabled`,e.ONRAMP_MINIMUM_IDENTITY_VERIFICATION_REQUIRED=`onramp_minimum_identity_verification_required`,e.ONRAMP_IDENTITY_VERIFICATION_REQUIRED=`onramp_identity_verification_required`,e.ONRAMP_DOCUMENT_VERIFICATION_REQUIRED=`onramp_document_verification_required`,e.ONRAMP_UNSUPPORTED_INFORMATION=`onramp_unsupported_information`,e.ONRAMP_TRANSACTION_LIMIT_REACHED=`transaction_limit_reached`,e.ONRAMP_QUOTE_EXPIRED=`onramp_quote_expired`,e.INSUFFICIENT_FUNDS=`insufficient_funds`,e.TRANSACTION_BROADCAST_FAILURE=`transaction_broadcast_failure`,e.TRANSACTION_EXECUTION_FAILURE=`transaction_execution_failure`,e.INVALID_SOLANA_TRANSACTION=`invalid_solana_transaction`,e.INVALID_POLICY_FORMAT=`invalid_policy_format`,e.INVALID_AGGREGATION_FORMAT=`invalid_aggregation_format`,e.POLICY_VIOLATION=`policy_violation`,e.AUTHORIZATION_KEY_HAS_ASSOCIATED_WALLETS=`authorization_key_has_associated_wallets`,e.COMPLIANCE_BLOCKED=`compliance_blocked`,e.INVALID_REQUEST=`invalid_request`,e.SIGNUP_DISABLED=`signup_disabled`,e.INVALID_STATE=`invalid_state`,e.WALLET_ENTITY_ASSIGNMENT_FAILED=`wallet_entity_assignment_failed`,e.WALLET_ENTITY_LIMIT_EXCEEDED=`wallet_entity_limit_exceeded`,e.WALLET_ENTITY_ALREADY_SET=`wallet_entity_already_set`,e}({});var n=class extends Error{status;code;responseData;constructor(e,t,n,r){super(t),this.status=e,this.code=n,this.name=`HttpError`,this.responseData=r}toString(){return`${this.name}: ${this.message}${this.cause?` [cause: ${this.cause}]`:``}`}},r=class extends n{constructor(e,t){super(400,e,t||`invalid_data`),this.name=`InvalidInputError`}},i=class extends n{constructor(e,t){super(401,e,t),this.name=`UnauthorizedError`}},a=class extends i{constructor(e){super(e||`User is not allowed to login to this app.`,`allowlist_rejected`),this.name=`AllowlistRejectedError`}},o=class extends n{constructor(e,t){super(403,e,t),this.name=`ForbiddenError`}},s=class extends n{constructor(e){super(404,e),this.name=`NotFoundError`}},c=class extends n{constructor(e,t){super(408,e,t),this.name=`RequestTimeoutError`}},l=class extends n{constructor(e){super(415,e),this.name=`UnsupportedMediaType`}},u=class extends n{constructor(e,t){super(422,e,t),this.name=`LegacyInvalidInputError`}},d=class extends n{constructor(e){super(429,e||`Too many requests. Please wait to try again.`,`too_many_requests`),this.name=`TooManyRequestsError`}},f=class extends n{constructor(e,t){super(409,e||`Conflict encountered while trying to modify resource.`,t||`resource_conflict`),this.name=`ResourceConflictError`}},p=class extends n{constructor(e){super(400,e||`Insufficient balance.`,`insufficient_funds`),this.name=`InsufficientBalanceError`}},m=class extends n{constructor(e){super(402,e||`Payment failed.`)}},h=class extends n{constructor(e,t,n){super(500,e||`Service unavailable.`,t,n),this.name=`InternalServerError`}},g=class extends n{data;constructor(e){super(400,`Account transfer required`,`account_transfer_required`,e),this.data=e,this.name=`AccountTransferRequiredError`}};const _=e.object({error:e.string(),cause:e.string().optional(),code:e.nativeEnum(t).optional()});export{_ as APIError,g as AccountTransferRequiredError,a as AllowlistRejectedError,o as ForbiddenError,n as HttpError,p as InsufficientBalanceError,h as InternalServerError,r as InvalidInputError,u as LegacyInvalidInputError,s as NotFoundError,m as PaymentFailedError,t as PrivyErrorCode,c as RequestTimeoutError,f as ResourceConflictError,d as TooManyRequestsError,i as UnauthorizedError,l as UnsupportedMediaType};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/constants/error-codes.ts","../../src/classes/api-error.ts","../../src/schemas/error.ts"],"mappings":"wBAAA,IAAY,EAAL,SAAA,EAAA,OAEL,GAAA,wBAAA,0BAEA,EAAA,gCAAA,kCAEA,EAAA,mCAAA,qCAEA,EAAA,oCAAA,s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ideEffects": false,
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"rolldown-plugin-dts": "0.27.1",
|
|
36
36
|
"rollup-plugin-copy": "3.5.0",
|
|
37
37
|
"typescript": "7.0.2",
|
|
38
|
-
"@privy-io/
|
|
39
|
-
"@privy-io/
|
|
38
|
+
"@privy-io/tsconfig": "0.0.0",
|
|
39
|
+
"@privy-io/build-config": "1.0.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|