diff --git a/generated_types.json b/generated_types.json index 8f63b28b..7a8dbed0 100644 --- a/generated_types.json +++ b/generated_types.json @@ -694,6 +694,14 @@ "upload_status" ] }, + "AutomationStatus": { + "type": "string", + "enum": [ + "active", + "paused" + ], + "description": "Whether the automation is active or paused." + }, "BatchedFacetData": { "type": "object", "properties": { @@ -5290,6 +5298,9 @@ ], "description": "The type of automation." }, + "status": { + "$ref": "#/components/schemas/AutomationStatus" + }, "export_definition": { "oneOf": [ { @@ -7762,6 +7773,9 @@ ], "description": "The type of automation." }, + "status": { + "$ref": "#/components/schemas/AutomationStatus" + }, "sampling_rate": { "type": "number", "minimum": 0, diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index 3ddf5055..17a654bc 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -178,6 +178,12 @@ class AsyncScoringStateAsyncScoringState1(TypedDict): ) +AutomationStatus: TypeAlias = Literal['active', 'paused'] +""" +Whether the automation is active or paused. +""" + + class PreprocessorPreprocessor(TypedDict): type: Literal['function'] id: str @@ -3224,6 +3230,7 @@ class ProjectAutomationConfig1(TypedDict): """ The type of automation. """ + status: NotRequired[AutomationStatus | None] export_definition: ( ProjectAutomationConfig1ExportDefinition | ProjectAutomationConfig1ExportDefinition1 @@ -3345,6 +3352,7 @@ class TopicAutomationConfig(TypedDict): """ The type of automation. """ + status: NotRequired[AutomationStatus | None] sampling_rate: float """ The sampling rate for topic automation diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index d49b2054..037541cc 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash 70ebf7ccf0df48b3) -- do not modify""" +"""Auto-generated file (content hash 811e3cfdd0deebaf) -- do not modify""" from ._generated_types import ( Acl, @@ -10,6 +10,7 @@ AsyncScoringState, AttachmentReference, AttachmentStatus, + AutomationStatus, BatchedFacetData, BraintrustAttachmentReference, BraintrustModelParams, @@ -126,6 +127,7 @@ "AsyncScoringState", "AttachmentReference", "AttachmentStatus", + "AutomationStatus", "BatchedFacetData", "BraintrustAttachmentReference", "BraintrustModelParams",