The Lume Typescript Client Library is currently in beta. Please reach out to support if you have any questions, encounter any bugs, or have any feature requests.

Primary Data Models

Job

Type representing details of a job. Returned in job fetching methods.

PropertyDescription
idUnique identifier of the job.
created_atDate and time the job was created.
pipeline_idID of the pipeline the job is associated with.

Workshop

Type representing details of a workshop. Returned in workshop fetching methods.

PropertyDescription
idUnique identifier of the workshop.
created_atDate and time the workshop was created.
job_idID of the job the workshop is associated with.
pipeline_idID of the pipeline the workshop is associated with.
statusStatus of the workshop.
updated_atDate and time the workshop was last updated.

Workshop.status

Enum representing the status of a workshop.

ValueDescription
CREATEDThe workshop has been created.
RUNNINGThe workshop is currently running.
FINISHEDThe workshop has finished running.
DEPLOYEDThe workshop edits have been deployed.
FAILEDThe workshop has failed.
NEEDS_REVIEWThe workshop needs review.
QUEUEDThe workshop is queued.

Mapping

Type representing the mapped record of the data from the job.

PropertyDescription
indexThe index of the record in the data.
source_recordThe source record of the data.
mapped_recordThe target record of the data.
messageThe message of the mapping.

Pipeline

Type representing details of a pipeline. Returned in pipeline fetching methods.

PropertyDescription
idUnique identifier of the pipeline.
created_atDate and time the pipeline was created.
nameName of the pipeline. Must be unique within the organization.
descriptionDescription of the pipeline.
target_schema_idThe target schema of the pipeline in JSON-schema format.
source_schemaThe source schema of the pipeline, inferred from the pipeline’s jobs in JSON-schema format.
updated_atDate and time the pipeline was last updated.

Result

Type representing details of a result. Returned in result fetching methods.

PropertyDescription
idUnique identifier of the result.
created_atDate and time the result was created.
statusStatus of the mapping task.

Result.status

Enum representing the status of a mapping task.

ValueDescription
CREATEDThe mapping task has been created.
RUNNINGThe mapping task is currently running.
FINISHEDThe mapping task has finished.
FAILEDThe mapping task has failed.
NEEDS_REVIEWThe mapping task needs review.
QUEUEDThe mapping task is queued.

Spec

Type representing the specification details.

PropertyDescription
@sourcesThe sources of the spec.
@default_valuesThe default values of the spec.
@lookupThe lookup of the spec.
confidence_scoreThe confidence score of the lookups.

TargetSchema

Type representing details of a target schema.

PropertyDescription
idThe ID of the target schema.
nameThe name of the target schema.
filenameThe file name of the target schema.

Schema

Schema alias for Record<string, any>.

Parameter Data Models

PipelineCreatePayload

Payload for creating a new pipeline.

PropertyDescription
nameName of the pipeline. Must be unique within the organization.
descriptionDescription of the pipeline.
target_schemaThe target schema of the pipeline in JSON-schema format.

PipelineUpdatePayload

Payload for updating an existing pipeline.

PropertyDescription
nameName of the pipeline. Must be unique within the organization.
descriptionDescription of the pipeline.

Response Data Models

PaginatedResponse<T>

Interface representing a paginated response containing items of type T.

PropertyDescription
itemsArray of items in the current page of results.
totalTotal number of items across all pages.
pageCurrent page number.
sizeNumber of items per page.
pagesTotal number of pages (optional).

CreateAndRunJobResponse

The response of the createAndRunJob request.

PropertyDescription
resultThe result of the job.
jobIdThe ID of the job that was created and run.

JobExecutionResponse

An object that displays the result of a job execution. This type is used in the workflow service to return multiple relevant objects in a single response.

PropertyDescription
resultThe result of the job.
mappingsPageThe mappings for the result of the job.
jobIdThe ID of the job that was executed.

Workshop Edit Models

Mapper Edit

ManualTransformation

A ManualTransformation is a transformation that is manually defined by the user. It is used to transform data from a source schema to a specific field in a target schema. NOTE: either extract or default must be present.

PropertyDescription
extractThe source property to extract one-to-one mapping to, in dotted path notation to represent hierarchy (e.g. ‘user.name’).
defaultOPTIONAL: The default value to be used if the source property from ‘extract’ is missing. If ‘extract’ property is not present, then this value will be used as the default value for the target field.

MapperEditSchema

A mapper is an object defining how to transform data from a source schema to a specific field in a target schema. It is associated with a pipeline and can be used to transform data in a job.

PropertyDescription
transformationThe transformation to be applied to the data.
targetFieldThe field in the target schema that the transformation will be applied to.

WorkshopWithMapperPayload

Represents a run workshop payload with mapper changes.

PropertyDescription
mapperAn array of mapper configurations for the workshop.
auto_deployIndicates whether auto-deployment is enabled for the workshop (optional).
immediate_returnIndicates whether to return immediately after starting the job (optional). This allows for asynchronous job execution and polling the job status later.

Prompt Edit

TargetFieldsToPrompt

An object that displays the prompt for the target fields.

PropertyDescription
[field: string]The prompt mapping request for the target fields.

WorkshopWithPromptPayload

Represents a run workshop payload with a prompt mapping request.

PropertyDescription
target_fields_to_promptThe prompt mapping request for the workshop.
auto_deployIndicates whether auto-deployment is enabled for the workshop (optional).
immediate_returnIndicates whether to return immediately after starting the job (optional). This allows for asynchronous job execution and polling the job status later.

Sample Edit

SampleEdit

An object that displays the mapped record of the data from the job.

PropertyDescription
indexThe index of the record in the data.
mapped_recordThe target record of the data.

WorkshopWithSamplePayload

Represents a run workshop payload with a sample mapping request.

PropertyDescription
sampleThe sample mapping request for the workshop.
auto_deployIndicates whether auto-deployment is enabled for the workshop (optional).
immediate_returnIndicates whether to return immediately after starting the job (optional). This allows for asynchronous job execution and polling the job status later.

Target Schema Edit

WorkshopWithSchemaPayload

Represents a run workshop payload with a target schema.

PropertyDescription
target_schemaThe target schema definition for the workshop.
auto_deployIndicates whether auto-deployment is enabled for the workshop (optional).
immediate_returnIndicates whether to return immediately after starting the job (optional). This allows for asynchronous job execution and polling the job status later.