Represents a data source configuration within the system, including connection details, status, chunking configurations, and record counts.

name
string
required

The name of the datasource.

originalName
string
required

The original name of the datasource.

sourceType
string
required

The type of source for the datasource.

sourceId
string
required

The identifier of the data source.

destinationId
string
required

The identifier of the data destination.

workspaceId
string
required

The identifier of the workspace associated with the datasource.

connectionId
string
required

The identifier of the connection associated with the datasource.

createdDate
string
required

The date and time when the datasource was created.

_id
string

Unique identifier for the datasource.

orgId
string

Identifier of the organization to which the datasource belongs.

teamId
string

Identifier of the team to which the datasource belongs.

description
string

Optional description of the datasource.

filename
string | null

The name of the file associated with the datasource, if applicable.

recordCount
object

The record count details for the datasource, including total, successful, and failed records.

connectionSettings
object

Configuration settings for the datasource connection.

lastSyncedDate
string | null

The date and time when the datasource was last synced. Null indicates it has never been synced.

status
enum<string>

The current status of the datasource.

Available options:
draft,
processing,
embedding,
ready
discoveredSchema
object | null

Schema discovered during the data source connection. The structure depends on the source type.

chunkingConfig
object

Configuration settings for chunking unstructured data, including partitioning and chunking strategies, character limits, and similarity thresholds.

embeddingField
string

The field used for embedding within the datasource.

timeWeightField
string

The field used to apply time weighting within the datasource.

modelId
string

Identifier of the embedding model used, if applicable.

hidden
boolean

Indicates whether the datasource is hidden from standard views.

streamConfig
object

Configuration settings for processing streams of data, breaking them into smaller chunks for more manageable processing.

timeUnit
string

A temporary field to limit CRON frequency based on the plan. This will be replaced with a more robust solution in the future.