Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions mostlyai/sdk/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# generated by datamodel-codegen:
# timestamp: 2025-07-10T14:44:02+00:00
# timestamp: 2025-07-15T14:36:53+00:00

from __future__ import annotations

Expand Down Expand Up @@ -186,6 +186,7 @@ class DatasetUsage(CustomBaseModel):
class DatasetSortField(str, Enum):
recency = "RECENCY"
no_of_likes = "NO_OF_LIKES"
no_of_threads = "NO_OF_THREADS"


class ConnectorAccessType(str, Enum):
Expand Down Expand Up @@ -257,6 +258,11 @@ class ConnectorUsage(CustomBaseModel):
description="Number of generators using this connector.",
)
no_of_likes: int | None = Field(None, alias="noOfLikes", description="Number of likes of this connector.")
no_of_threads: int | None = Field(
None,
alias="noOfThreads",
description="Number of assistant threads using this connector.",
)


class ConnectorConfig(CustomBaseModel):
Expand Down Expand Up @@ -479,6 +485,7 @@ class ConnectorSortField(str, Enum):
recency = "RECENCY"
no_of_generators = "NO_OF_GENERATORS"
no_of_likes = "NO_OF_LIKES"
no_of_threads = "NO_OF_THREADS"


class GeneratorUsage(CustomBaseModel):
Expand Down Expand Up @@ -517,6 +524,11 @@ class GeneratorUsage(CustomBaseModel):
description="Number of synthetic datasets generated by this generator.",
)
no_of_likes: int | None = Field(None, alias="noOfLikes", description="Number of likes of this generator.")
no_of_threads: int | None = Field(
None,
alias="noOfThreads",
description="Number of assistant threads using this generator.",
)


class SourceColumnValueRange(CustomBaseModel):
Expand Down Expand Up @@ -641,6 +653,7 @@ class SourceForeignKeyPatchConfig(CustomBaseModel):
class GeneratorSortField(str, Enum):
recency = "RECENCY"
no_of_likes = "NO_OF_LIKES"
no_of_threads = "NO_OF_THREADS"
no_of_synthetic_datasets = "NO_OF_SYNTHETIC_DATASETS"


Expand Down Expand Up @@ -774,6 +787,11 @@ class SyntheticDatasetUsage(CustomBaseModel):
alias="noOfDownloads",
description="Number of downloads of this synthetic dataset.",
)
no_of_threads: int | None = Field(
None,
alias="noOfThreads",
description="Number of assistant threads using this synthetic dataset.",
)


class SyntheticDatasetFormat(str, Enum):
Expand Down Expand Up @@ -809,6 +827,7 @@ class SyntheticDatasetSortField(str, Enum):
recency = "RECENCY"
no_of_likes = "NO_OF_LIKES"
no_of_downloads = "NO_OF_DOWNLOADS"
no_of_threads = "NO_OF_THREADS"


class AssistantLiteLlmExtraItem(CustomBaseModel):
Expand Down Expand Up @@ -920,6 +939,7 @@ class AssistantMessageDeltaContentType(str, Enum):
artifact_generator = "artifact/generator"
artifact_synthetic_dataset = "artifact/synthetic-dataset"
artifact_connector = "artifact/connector"
artifact_dataset = "artifact/dataset"


class AssistantMessageFile(CustomBaseModel):
Expand Down Expand Up @@ -1825,8 +1845,8 @@ class Dataset(CustomBaseModel):
id: str = Field(..., description="The unique identifier of a dataset.")
name: str | None = Field(None, description="The name of a dataset.")
description: str | None = Field(None, description="The description of / instructions for a dataset.")
connectors: list[DatasetConnector] | None = None
files: list[str] | None = None
connectors: list[DatasetConnector]
files: list[str]
usage: DatasetUsage | None = None
metadata: Metadata | None = None
OPEN_URL_PARTS: ClassVar[list] = ["d", "datasets"]
Expand Down
Loading