Summary
Members | Descriptions |
---|---|
namespace ai::lucidtech::las::sdk |
namespace ai::lucidtech::las::sdk
Summary
class ai::lucidtech::las::sdk::APIException
class ai::lucidtech::las::sdk::APIException
: public Exception
Summary
Members | Descriptions |
---|---|
public APIException () | |
public APIException (String message) | |
public APIException (int code,String message) |
Members
public
APIException
()
public
APIException
(String message)
public
APIException
(int code,String message)
class ai::lucidtech::las::sdk::Client
Summary
Members | Descriptions |
---|---|
public Client ( Credentials credentials) | A client to invoke api methods from Lucidtech AI Services. |
public JSONObject createAppClient ( CreateAppClientOptions options) | Create an app client, calls the POST /appClients endpoint. |
public JSONObject createAppClient () | Create an app client, calls the POST /appClients endpoint. |
public JSONObject updateAppClient (String appClientId, UpdateAppClientOptions options) | Update an appClient, calls the PATCH /appClients/{appClientId} endpoint. |
public JSONObject listAppClients ( ListAppClientsOptions options) | List appClients available, calls the GET /appClients endpoint. |
public JSONObject listAppClients () | List appClients available, calls the GET /appClients endpoint. |
public JSONObject deleteAppClient (String appClientId) | Delete an appClient, calls the DELETE /appClients/{appClientId} endpoint. |
public JSONObject createAsset (byte[] content, CreateAssetOptions options) | Create an asset, calls the POST /assets endpoint. |
public JSONObject createAsset (InputStream content, CreateAssetOptions options) | Create an asset, calls the POST /assets endpoint. |
public JSONObject createAsset (byte[] content) | Create an asset, calls the POST /assets endpoint. |
public JSONObject createAsset (InputStream content) | Create an asset, calls the POST /assets endpoint. |
public JSONObject listAssets ( ListAssetsOptions options) | List assets available, calls the GET /assets endpoint. |
public JSONObject listAssets () | List assets available, calls the GET /assets endpoint. |
public JSONObject getAsset (String assetId) | Get asset, calls the GET /assets/{assetId} endpoint. |
public JSONObject updateAsset (String assetId, UpdateAssetOptions options) | Update an asset, calls the PATCH /assets/{assetId} endpoint. |
public JSONObject deleteAsset (String assetId) | Delete an asset, calls the DELETE /assets/{assetId} endpoint. |
public JSONObject createDocument (byte[] content, ContentType contentType, CreateDocumentOptions options) | Create a document, calls the POST /documents endpoint. |
public JSONObject createDocument (InputStream content, ContentType contentType, CreateDocumentOptions options) | Create a document, calls the POST /documents endpoint. |
public JSONObject createDocument (InputStream content, ContentType contentType) | Create a document, calls the POST /documents endpoint. |
public JSONObject createDocument (byte[] content, ContentType contentType) | Create a document, calls the POST /documents endpoint. |
public JSONObject listDocuments ( ListDocumentsOptions options) | List documents, calls the GET /documents endpoint. |
public JSONObject listDocuments () | List documents, calls the GET /documents endpoint. |
public JSONObject deleteDocuments ( DeleteDocumentsOptions options) | Delete documents, calls the DELETE /documents endpoint. |
public JSONObject deleteDocuments () | Delete documents, calls the DELETE /documents endpoint. |
public JSONObject getDocument (String documentId) | Get document, calls the GET /documents/{documentId} endpoint. |
public JSONObject updateDocument (String documentId, UpdateDocumentOptions options) | Update document, calls the PATCH /documents/{documentId} endpoint. |
public JSONObject getLog (String logId) | Get log, calls the GET /logs/{logId} endpoint. |
public JSONObject listLogs ( ListLogsOptions options) | List logs, calls the GET /logs endpoint. |
public JSONObject listLogs () | List logs, calls the GET /logs endpoint. |
public JSONObject createModel (int width,int height, FieldConfig fieldConfig, CreateModelOptions options) | Create a model, calls the POST /models endpoint. |
public JSONObject createModel (int width,int height, FieldConfig fieldConfig) | Create a model, calls the POST /models endpoint. |
public JSONObject updateModel (String modelId, UpdateModelOptions options) | Updates a model, calls the PATCH /models/{modelId} endpoint. |
public JSONObject getModel (String modelId) | Get model, calls the GET /models/{modelId} endpoint. |
public JSONObject listModels ( ListModelsOptions options) | List models, calls the GET /models endpoint. |
public JSONObject listModels () | List models available, calls the GET /models endpoint. |
public JSONObject createPrediction (String documentId,String modelId, CreatePredictionOptions options) | Create a prediction on a document using specified model, calls the POST /predictions endpoint. |
public JSONObject createPrediction (String documentId,String modelId) | Create a prediction on a document using specified model, calls the POST /predictions endpoint. |
public JSONObject listPredictions ( ListPredictionsOptions options) | List predictions available, calls the GET /predictions endpoint. |
public JSONObject listPredictions () | List predictions available, calls the GET /predictions endpoint. |
public JSONObject createSecret (JSONObject data, CreateSecretOptions options) | Create secret, calls the POST /secrets endpoint. |
public JSONObject createSecret (Map< String, String > data, CreateSecretOptions options) | Create a secret, calls the POST /secrets endpoint. |
public JSONObject createSecret (Map< String, String > data) | Create a secret, calls the POST /secrets endpoint. |
public JSONObject createSecret (JSONObject data) | Create a secret, calls the POST /secrets endpoint. |
public JSONObject listSecrets ( ListSecretsOptions options) | List secrets, calls the GET /secrets endpoint. |
public JSONObject listSecrets () | List secrets, calls the GET /secrets endpoint. |
public JSONObject updateSecret (String secretId, UpdateSecretOptions options) | Update a secret, calls the PATCH /secrets/{secretId} endpoint. |
public JSONObject deleteSecret (String secretId) | Delete a secret, calls the DELETE /secrets/{secretId} endpoint. |
public JSONObject createTransition ( TransitionType transitionType, CreateTransitionOptions options) | Create a transition, calls the POST /transitions endpoint. |
public JSONObject createTransition ( TransitionType transitionType) | Create a transition, calls the POST /transitions endpoint. |
public JSONObject listTransitions ( ListTransitionsOptions options) | List transitions, calls the GET /transitions endpoint. |
public JSONObject listTransitions () | List transitions, calls the GET /transitions endpoint. |
public JSONObject getTransition (String transitionId) | Get transition, calls the GET /transitions/{transitionId} endpoint. |
public JSONObject updateTransition (String transitionId, UpdateTransitionOptions options) | Updates a transition, calls the PATCH /transitions/{transitionId} endpoint. |
public JSONObject executeTransition (String transitionId) | Start executing a manual transition, calls the POST /transitions/{transitionId}/executions endpoint. |
public JSONObject deleteTransition (String transitionId) | Delete a transition, calls the DELETE /transitions/{transitionId} endpoint. Will fail if transition is in use by one or more workflows. |
public JSONObject listTransitionExecutions (String transitionId, ListTransitionExecutionsOptions options) | List executions in a transition, calls the GET /transitions/{transitionId}/executions endpoint. |
public JSONObject listTransitionExecutions (String transitionId) | List executions in a transition, calls the GET /transitions/{transitionId}/executions endpoint. |
public JSONObject getTransitionExecution (String transitionId,String executionId) | Get an execution of a transition, calls the GET /transitions/{transitionId}/executions/{executionId} endpoint |
public JSONObject updateTransitionExecution (String transitionId,String executionId, TransitionExecutionStatus status, UpdateTransitionExecutionOptions options) | Ends the processing of the transition execution, calls the PATCH /transitions/{transitionId}/executions/{executionId} endpoint. |
public JSONObject sendHeartbeat (String transitionId,String executionId) | Send heartbeat for a manual execution to signal that we are still working on it. Must be done at minimum once every 60 seconds or the transition execution will time out, calls the POST /transitions/{transitionId}/executions/{executionId}/heartbeats endpoint. |
public JSONObject createUser (String email, CreateUserOptions options) | Create a user, calls the POST /users endpoint. |
public JSONObject createUser (String email) | Create a user, calls the POST /users endpoint. |
public JSONObject listUsers ( ListUsersOptions options) | List users, calls the GET /users endpoint. |
public JSONObject listUsers () | List users, calls the GET /users endpoint. |
public JSONObject getUser (String userId) | Get user, calls the GET /users/{userId} endpoint. |
public JSONObject updateUser (String userId, UpdateUserOptions options) | Updates a user, calls the PATCH /users/{userId} endpoint. |
public JSONObject deleteUser (String userId) | Delete a user, calls the PATCH /users/{userId} endpoint. |
public JSONObject createWorkflow (JSONObject specification, CreateWorkflowOptions options) | Creates a new workflow, calls the POST /workflows endpoint. Check out Lucidtech's tutorials for more info on how to create a workflow. see https://docs.lucidtech.ai/getting-started/tutorials/setup_predict_and_approve |
public JSONObject createWorkflow (JSONObject specification) | Creates a new workflow, calls the POST /workflows endpoint. Check out Lucidtech's tutorials for more info on how to create a workflow. see https://docs.lucidtech.ai/getting-started/tutorials/setup_predict_and_approve |
public JSONObject listWorkflows ( ListWorkflowsOptions options) | List workflows, calls the GET /workflows endpoint. |
public JSONObject listWorkflows () | List workflows, calls the GET /workflows endpoint. |
public JSONObject getWorkflow (String workflowId) | Get workflow, calls the GET /workflows/{workflowId} endpoint. |
public JSONObject updateWorkflow (String workflowId, UpdateWorkflowOptions options) | Update a workflow, calls the PATCH /workflows/{workflowId} endpoint. |
public JSONObject deleteWorkflow (String workflowId) | Delete a workflow, calls the DELETE /workflows/{workflowId} endpoint. |
public JSONObject executeWorkflow (String workflowId,JSONObject content) | Start a workflow execution, calls the POST /workflows/{workflowId}/executions endpoint. |
public JSONObject listWorkflowExecutions (String workflowId, ListWorkflowExecutionsOptions options) | List executions in a workflow, calls the GET /workflows/{workflowId}/executions endpoint. |
public JSONObject listWorkflowExecutions (String workflowId) | List executions in a workflow, calls the GET /workflows/{workflowId}/executions endpoint. |
public JSONObject deleteWorkflowExecution (String workflowId,String executionId) | Delete execution from workflow, calls the DELETE /workflows/{workflowId}/executions/{executionId} endpoint. |
Members
public
Client
(
Credentials
credentials)
A client to invoke api methods from Lucidtech AI Services.
Parameters
credentials
Credentials to use
See also: Credentials
public JSONObject
createAppClient
(
CreateAppClientOptions
options)
Create an app client, calls the POST /appClients endpoint.
See also: CreateAppClientOptions
Parameters
options
Additional options to include in request body
Returns
Asset response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createAppClient
()
Create an app client, calls the POST /appClients endpoint.
Returns
Asset response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
updateAppClient
(String appClientId,
UpdateAppClientOptions
options)
Update an appClient, calls the PATCH /appClients/{appClientId} endpoint.
See also: UpdateAppClientOptions
Parameters
-
appClientId
Id of the appClient -
options
Additional options to include in request body
Returns
AppClient response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listAppClients
(
ListAppClientsOptions
options)
List appClients available, calls the GET /appClients endpoint.
See also: ListAppClientsOptions
Parameters
options
Additional options to pass along as query parameters
Returns
AppClients response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listAppClients
()
List appClients available, calls the GET /appClients endpoint.
Returns
AppClients response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
deleteAppClient
(String appClientId)
Delete an appClient, calls the DELETE /appClients/{appClientId} endpoint.
Parameters
appClientId
Id of the appClient
Returns
AppClient response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createAsset
(byte[] content,
CreateAssetOptions
options)
Create an asset, calls the POST /assets endpoint.
See also: CreateAssetOptions
Parameters
-
content
Binary data -
options
Additional options to include in request body
Returns
Asset response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createAsset
(InputStream content,
CreateAssetOptions
options)
Create an asset, calls the POST /assets endpoint.
See also: CreateAssetOptions
Parameters
-
content
Data from input stream -
options
Additional options to include in request body
Returns
Asset response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createAsset
(byte[] content)
Create an asset, calls the POST /assets endpoint.
Parameters
content
Binary data
Returns
Asset response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createAsset
(InputStream content)
Create an asset, calls the POST /assets endpoint.
Parameters
content
Data from input stream
Returns
Asset response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listAssets
(
ListAssetsOptions
options)
List assets available, calls the GET /assets endpoint.
See also: ListAssetsOptions
Parameters
options
Additional options to pass along as query parameters
Returns
Assets response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listAssets
()
List assets available, calls the GET /assets endpoint.
Returns
Assets response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
getAsset
(String assetId)
Get asset, calls the GET /assets/{assetId} endpoint.
Parameters
assetId
Id of the asset
Returns
Asset response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
updateAsset
(String assetId,
UpdateAssetOptions
options)
Update an asset, calls the PATCH /assets/{assetId} endpoint.
See also: UpdateAssetOptions
Parameters
-
assetId
Id of the asset -
options
Additional options to include in request body
Returns
Asset response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
deleteAsset
(String assetId)
Delete an asset, calls the DELETE /assets/{assetId} endpoint.
Parameters
assetId
Id of the asset
Returns
Asset response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createDocument
(byte[] content,
ContentType
contentType,
CreateDocumentOptions
options)
Create a document, calls the POST /documents endpoint.
See also: CreateDocumentOptions
Parameters
-
content
Binary data -
contentType
A mime type for the document -
options
Additional options to include in request body
Returns
Document response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createDocument
(InputStream content,
ContentType
contentType,
CreateDocumentOptions
options)
Create a document, calls the POST /documents endpoint.
See also: CreateDocumentOptions
Parameters
-
content
Data from input stream -
contentType
A mime type for the document -
options
Additional options to include in request body
Returns
Document response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createDocument
(InputStream content,
ContentType
contentType)
Create a document, calls the POST /documents endpoint.
See also: CreateDocumentOptions
Parameters
-
content
Data from input stream -
contentType
A mime type for the document
Returns
Document response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createDocument
(byte[] content,
ContentType
contentType)
Create a document, calls the POST /documents endpoint.
See also: CreateDocumentOptions
Parameters
-
content
Binary data -
contentType
A mime type for the document
Returns
Document response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listDocuments
(
ListDocumentsOptions
options)
List documents, calls the GET /documents endpoint.
See also: ListDocumentsOptions
Parameters
options
Additional options to pass along as query parameters
Returns
Documents response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listDocuments
()
List documents, calls the GET /documents endpoint.
Returns
Documents response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
deleteDocuments
(
DeleteDocumentsOptions
options)
Delete documents, calls the DELETE /documents endpoint.
See also: DeleteDocumentsOptions
Parameters
options
Additional options to pass along as query parameters
Returns
Documents response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
deleteDocuments
()
Delete documents, calls the DELETE /documents endpoint.
See also: Client::createDocument
Returns
Documents response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
getDocument
(String documentId)
Get document, calls the GET /documents/{documentId} endpoint.
Parameters
documentId
Id of the document
Returns
Document response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
updateDocument
(String documentId,
UpdateDocumentOptions
options)
Update document, calls the PATCH /documents/{documentId} endpoint.
See also: Client::createDocument
Parameters
-
documentId
The document id to post groundTruth to. -
options
Additional options to include in request body
Returns
Document response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
getLog
(String logId)
Get log, calls the GET /logs/{logId} endpoint.
Parameters
logId
Id of the log
Returns
Log response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listLogs
(
ListLogsOptions
options)
List logs, calls the GET /logs endpoint.
See also: ListLogsOptions
Parameters
options
Additional options to pass along as query parameters
Returns
Logs response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
listLogs
()
List logs, calls the GET /logs endpoint.
Returns
Logs response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createModel
(int width,int height,
FieldConfig
fieldConfig,
CreateModelOptions
options)
Create a model, calls the POST /models endpoint.
See also: CreateModelOptions
See also: FieldConfig
Parameters
-
width
The number of pixels to be used for the input image width of your model -
height
The number of pixels to be used for the input image height of your model -
fieldConfig
Specification of the fields that the model is going to predict -
options
Additional options to include in request body
Returns
Model response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
createModel
(int width,int height,
FieldConfig
fieldConfig)
Create a model, calls the POST /models endpoint.
See also: FieldConfig
Parameters
-
width
The number of pixels to be used for the input image width of your model -
height
The number of pixels to be used for the input image height of your model -
fieldConfig
Specification of the fields that the model is going to predict
Returns
Model response from API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
updateModel
(String modelId,
UpdateModelOptions
options)
Updates a model, calls the PATCH /models/{modelId} endpoint.
See also: UpdateModelOptions
Parameters
-
modelId
Id of the model -
options
Additional options to include in request body
Returns
Model response from REST API
Exceptions
-
IOException
General IOException -
APIException
Raised when API returns an erroneous status code -
MissingAccessTokenException
Raised if access token cannot be obtained
public JSONObject
getModel
(String modelId)
Get model, calls the GET /models/{modelId} endpoint.
Parameters
modelId
Id of the model
Returns
Model response from REST API