Account owning the product.
Settings relating to the API.
URL of a product.
Entire root of the URL for API calls.
Product's version, as a string.
Requests the results of a queued document from the API. Throws an error if the server's response contains one.
a Promise
containing the parsed result.
The document's ID in the queue.
Enqueues a prediction to the API. Throws an error if the server's response contains one.
a Promise
containing queue data.
parameters relating to prediction options.
Private
#cutCuts a document's pages according to the given options.
input document.
page cutting options.
Private
#documentMake a request to PUT a document feedback.
Private
#documentMake a request to GET a document.
Private
#documentMake a request to GET the status of a document in the queue.
Private
#predictMake a request to POST a document for async prediction.
Private
#predictMake a request to POST a document for prediction.
Send a feedback
Protected
readReads a response from the API and processes it.
the processed request.
options related to the request itself.
the resolved response
promise rejection reason.
Optional
reason: anySend a feedback
ID of the document to send feedback to.
Feedback object to send.
Protected
sendSend a file to a prediction API.
Sends a prediction to the API and parses out the result. Throws an error if the server's response contains one.
a Promise
containing parsing results.
parameters relating to prediction options.
Generated using TypeDoc
Endpoint for a product (OTS or Custom).