/** * Generated error codes - DO NOT MODIFY MANUALLY */ export interface ErrorDetails { code: string; httpStatusCode: number; } export declare const ErrorCode: { /** Error fetching counterparty public key for validating signatures or encrypting messages */ readonly COUNTERPARTY_PUBKEY_FETCH_ERROR: { readonly code: "COUNTERPARTY_PUBKEY_FETCH_ERROR"; readonly httpStatusCode: 424; }; /** Error parsing the counterparty public key response */ readonly INVALID_PUBKEY_FORMAT: { readonly code: "INVALID_PUBKEY_FORMAT"; readonly httpStatusCode: 400; }; /** The provided certificate chain is invalid */ readonly CERT_CHAIN_INVALID: { readonly code: "CERT_CHAIN_INVALID"; readonly httpStatusCode: 400; }; /** The provided certificate chain has expired */ readonly CERT_CHAIN_EXPIRED: { readonly code: "CERT_CHAIN_EXPIRED"; readonly httpStatusCode: 400; }; /** The provided signature is not valid */ readonly INVALID_SIGNATURE: { readonly code: "INVALID_SIGNATURE"; readonly httpStatusCode: 401; }; /** The provided timestamp is not valid */ readonly INVALID_TIMESTAMP: { readonly code: "INVALID_TIMESTAMP"; readonly httpStatusCode: 400; }; /** The provided nonce is not valid */ readonly INVALID_NONCE: { readonly code: "INVALID_NONCE"; readonly httpStatusCode: 400; }; /** An unexpected error occurred on the server */ readonly INTERNAL_ERROR: { readonly code: "INTERNAL_ERROR"; readonly httpStatusCode: 500; }; /** This party does not support non-UMA LNURLs */ readonly NON_UMA_LNURL_NOT_SUPPORTED: { readonly code: "NON_UMA_LNURL_NOT_SUPPORTED"; readonly httpStatusCode: 403; }; /** Missing required UMA parameters */ readonly MISSING_REQUIRED_UMA_PARAMETERS: { readonly code: "MISSING_REQUIRED_UMA_PARAMETERS"; readonly httpStatusCode: 400; }; /** The counterparty UMA version is not supported */ readonly UNSUPPORTED_UMA_VERSION: { readonly code: "UNSUPPORTED_UMA_VERSION"; readonly httpStatusCode: 412; }; /** Error parsing the LNURLP request */ readonly PARSE_LNURLP_REQUEST_ERROR: { readonly code: "PARSE_LNURLP_REQUEST_ERROR"; readonly httpStatusCode: 400; }; /** This user has exceeded the velocity limit and is unable to receive payments at this time */ readonly VELOCITY_LIMIT_EXCEEDED: { readonly code: "VELOCITY_LIMIT_EXCEEDED"; readonly httpStatusCode: 403; }; /** The user for this UMA was not found */ readonly USER_NOT_FOUND: { readonly code: "USER_NOT_FOUND"; readonly httpStatusCode: 404; }; /** The user for this UMA is not ready to receive payments at this time */ readonly USER_NOT_READY: { readonly code: "USER_NOT_READY"; readonly httpStatusCode: 403; }; /** The request corresponding to this callback URL was not found */ readonly REQUEST_NOT_FOUND: { readonly code: "REQUEST_NOT_FOUND"; readonly httpStatusCode: 404; }; /** Error parsing the payreq request */ readonly PARSE_PAYREQ_REQUEST_ERROR: { readonly code: "PARSE_PAYREQ_REQUEST_ERROR"; readonly httpStatusCode: 400; }; /** The amount provided is not within the min/max range */ readonly AMOUNT_OUT_OF_RANGE: { readonly code: "AMOUNT_OUT_OF_RANGE"; readonly httpStatusCode: 400; }; /** The currency provided is not valid or supported */ readonly INVALID_CURRENCY: { readonly code: "INVALID_CURRENCY"; readonly httpStatusCode: 400; }; /** Payments from this sender are not accepted */ readonly SENDER_NOT_ACCEPTED: { readonly code: "SENDER_NOT_ACCEPTED"; readonly httpStatusCode: 400; }; /** Payer data is missing fields that are required by the receiver */ readonly MISSING_MANDATORY_PAYER_DATA: { readonly code: "MISSING_MANDATORY_PAYER_DATA"; readonly httpStatusCode: 400; }; /** Receiver does not recognize the mandatory payee data key */ readonly UNRECOGNIZED_MANDATORY_PAYEE_DATA_KEY: { readonly code: "UNRECOGNIZED_MANDATORY_PAYEE_DATA_KEY"; readonly httpStatusCode: 501; }; /** Error parsing the utxo callback */ readonly PARSE_UTXO_CALLBACK_ERROR: { readonly code: "PARSE_UTXO_CALLBACK_ERROR"; readonly httpStatusCode: 400; }; /** This party does not accept payments with the counterparty */ readonly COUNTERPARTY_NOT_ALLOWED: { readonly code: "COUNTERPARTY_NOT_ALLOWED"; readonly httpStatusCode: 403; }; /** Error parsing the LNURLP response */ readonly PARSE_LNURLP_RESPONSE_ERROR: { readonly code: "PARSE_LNURLP_RESPONSE_ERROR"; readonly httpStatusCode: 400; }; /** Error parsing the payreq response */ readonly PARSE_PAYREQ_RESPONSE_ERROR: { readonly code: "PARSE_PAYREQ_RESPONSE_ERROR"; readonly httpStatusCode: 400; }; /** The LNURLP request failed */ readonly LNURLP_REQUEST_FAILED: { readonly code: "LNURLP_REQUEST_FAILED"; readonly httpStatusCode: 424; }; /** The payreq request failed */ readonly PAYREQ_REQUEST_FAILED: { readonly code: "PAYREQ_REQUEST_FAILED"; readonly httpStatusCode: 424; }; /** No compatible UMA protocol version found between sender and receiver */ readonly NO_COMPATIBLE_UMA_VERSION: { readonly code: "NO_COMPATIBLE_UMA_VERSION"; readonly httpStatusCode: 424; }; /** The provided invoice is invalid */ readonly INVALID_INVOICE: { readonly code: "INVALID_INVOICE"; readonly httpStatusCode: 400; }; /** The invoice has expired */ readonly INVOICE_EXPIRED: { readonly code: "INVOICE_EXPIRED"; readonly httpStatusCode: 400; }; /** The quote has expired */ readonly QUOTE_EXPIRED: { readonly code: "QUOTE_EXPIRED"; readonly httpStatusCode: 400; }; /** The provided input is invalid */ readonly INVALID_INPUT: { readonly code: "INVALID_INPUT"; readonly httpStatusCode: 400; }; /** The request format is invalid */ readonly INVALID_REQUEST_FORMAT: { readonly code: "INVALID_REQUEST_FORMAT"; readonly httpStatusCode: 400; }; /** This action is not permitted for this user */ readonly FORBIDDEN: { readonly code: "FORBIDDEN"; readonly httpStatusCode: 403; }; /** This functionality is not implemented */ readonly NOT_IMPLEMENTED: { readonly code: "NOT_IMPLEMENTED"; readonly httpStatusCode: 501; }; /** The requested quote was not found */ readonly QUOTE_NOT_FOUND: { readonly code: "QUOTE_NOT_FOUND"; readonly httpStatusCode: 404; }; };