Import
These types are exported by @getpara/rest-sdk.
ParaRestError
Non-success HTTP responses throw ParaRestError.affectedCaseIds is set when the API refuses a Permissions change with APPROVAL_CASES_AFFECTED. It lists the open approval cases the change would invalidate. Retry the change with force: true to apply it anyway.
ParaRestSerializationError reports a body that cannot be JSON encoded, such as a function, symbol, or circular reference. ParaRestValidationError reports a local invalid argument before a REST call is sent.
ParaRestSponsorshipError
transfer() throws ParaRestSponsorshipError when a successful response’s gas payer differs from the requested gas payer. Only sponsoredGas: true asks for Para-paid gas, so transfer() also throws on a sponsored response to a request with sponsoredGas: false or no flag. response keeps the original transfer result.