From 78238a1a617f22df914a7a9fc5ec324ef8ce5e58 Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 22:51:52 +0000 Subject: [PATCH] chore: Update platform types --- generated_types.json | 125 +++++++++++++++++++++++++- py/src/braintrust/_generated_types.py | 65 +++++++++++++- py/src/braintrust/generated_types.py | 4 +- 3 files changed, 189 insertions(+), 5 deletions(-) diff --git a/generated_types.json b/generated_types.json index efd71e5c..f1679229 100644 --- a/generated_types.json +++ b/generated_types.json @@ -482,6 +482,14 @@ ], "format": "uuid", "description": "Unique identifier for the organization" + }, + "expires_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Date at which the API key expires. If null, the key never expires." } }, "required": [ @@ -5212,6 +5220,80 @@ "name" ] }, + "OrgAutomation": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the project automation" + }, + "org_id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the organization that the org automation belongs under" + }, + "user_id": { + "type": [ + "string", + "null" + ], + "format": "uuid", + "description": "Identifies the user who created the project automation" + }, + "created": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Date of project automation creation" + }, + "name": { + "type": "string", + "description": "Name of the project automation" + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Textual description of the project automation" + }, + "config": { + "type": "object", + "properties": { + "event_type": { + "type": "string", + "enum": [ + "retention" + ], + "description": "The type of automation." + }, + "object_type": { + "$ref": "#/components/schemas/RetentionObjectType" + }, + "retention_days": { + "type": "integer", + "minimum": 0, + "description": "The number of days to retain the object" + } + }, + "required": [ + "event_type", + "object_type", + "retention_days" + ], + "description": "The configuration for the org automation rule" + } + }, + "required": [ + "id", + "org_id", + "name", + "config" + ] + }, "Permission": { "type": "string", "enum": [ @@ -5648,7 +5730,7 @@ "$ref": "#/components/schemas/RetentionObjectType" }, "retention_days": { - "type": "number", + "type": "integer", "minimum": 0, "description": "The number of days to retain the object" } @@ -6453,6 +6535,13 @@ ], "description": "If true, disable real-time queries for this project. This can improve query performance for high-volume logs." }, + "monitor_charts_use_metrics_start": { + "type": [ + "boolean", + "null" + ], + "description": "If true, use metrics.start rather than created for monitor chart time bucket dimensions." + }, "default_preprocessor": { "$ref": "#/components/schemas/NullableSavedFunctionId" } @@ -7778,6 +7867,14 @@ ], "format": "uuid", "description": "Unique identifier for the organization" + }, + "expires_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Date and time at which the service token expires. If null, the token never expires." } }, "required": [ @@ -8340,7 +8437,7 @@ "evolve", "names_only" ], - "description": "How reconciliation carries the previous map forward: \"evolve\" re-routes new samples into the previous topics before naming; \"names_only\" keeps the fresh clustering and carries only topic ids/names. Defaults to \"evolve\" when omitted." + "description": "How reconciliation carries the previous map forward: \"evolve\" re-routes new samples into the previous topics before naming; \"names_only\" keeps the fresh clustering and carries only topic ids/names. Defaults to \"names_only\" when omitted." }, "distance_threshold": { "type": "number", @@ -8995,6 +9092,30 @@ "value" ] }, + "pointSizeMetric": { + "type": [ + "object", + "null" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "none", + "score", + "metric", + "metadata" + ] + }, + "value": { + "type": "string" + } + }, + "required": [ + "type", + "value" + ] + }, "xAxisAggregation": { "type": [ "string", diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index 16cb2152..6dcc7a77 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -148,6 +148,10 @@ class ApiKey(TypedDict): """ Unique identifier for the organization """ + expires_at: NotRequired[str | None] + """ + Date at which the API key expires. If null, the key never expires. + """ class AsyncScoringControlAsyncScoringControl(TypedDict): @@ -1916,6 +1920,10 @@ class ProjectSettings(TypedDict): """ If true, disable real-time queries for this project. This can improve query performance for high-volume logs. """ + monitor_charts_use_metrics_start: NotRequired[bool | None] + """ + If true, use metrics.start rather than created for monitor chart time bucket dimensions. + """ default_preprocessor: NotRequired[NullableSavedFunctionId | None] @@ -2398,6 +2406,10 @@ class ServiceToken(TypedDict): """ Unique identifier for the organization """ + expires_at: NotRequired[str | None] + """ + Date and time at which the service token expires. If null, the token never expires. + """ class SpanIFrame(TypedDict): @@ -2764,6 +2776,11 @@ class ViewOptionsViewOptions1SymbolGrouping(TypedDict): value: str +class ViewOptionsViewOptions1PointSizeMetric(TypedDict): + type: Literal['none', 'score', 'metric', 'metadata'] + value: str + + class ViewOptionsViewOptions1ChartAnnotation(TypedDict): id: str text: str @@ -2792,6 +2809,7 @@ class ViewOptionsViewOptions1(TypedDict): yMetric: NotRequired[ViewOptionsViewOptions1YMetric | None] xAxis: NotRequired[ViewOptionsViewOptions1XAxis | None] symbolGrouping: NotRequired[ViewOptionsViewOptions1SymbolGrouping | None] + pointSizeMetric: NotRequired[ViewOptionsViewOptions1PointSizeMetric | None] xAxisAggregation: NotRequired[str | None] """ One of 'avg', 'sum', 'min', 'max', 'median', 'all' @@ -3339,6 +3357,49 @@ class OnlineScoreConfig(TypedDict): """ +class OrgAutomationConfig(TypedDict): + event_type: Literal['retention'] + """ + The type of automation. + """ + object_type: RetentionObjectType + retention_days: int + """ + The number of days to retain the object + """ + + +class OrgAutomation(TypedDict): + id: str + """ + Unique identifier for the project automation + """ + org_id: str + """ + Unique identifier for the organization that the org automation belongs under + """ + user_id: NotRequired[str | None] + """ + Identifies the user who created the project automation + """ + created: NotRequired[str | None] + """ + Date of project automation creation + """ + name: str + """ + Name of the project automation + """ + description: NotRequired[str | None] + """ + Textual description of the project automation + """ + config: OrgAutomationConfig + """ + The configuration for the org automation rule + """ + + class Project(TypedDict): id: str """ @@ -3416,7 +3477,7 @@ class ProjectAutomationConfig3(TypedDict): The type of automation. """ object_type: RetentionObjectType - retention_days: float + retention_days: int """ The number of days to retain the object """ @@ -3571,7 +3632,7 @@ class TopicMapData(TypedDict): """ reconcile_mode: NotRequired[Literal['evolve', 'names_only'] | None] """ - How reconciliation carries the previous map forward: "evolve" re-routes new samples into the previous topics before naming; "names_only" keeps the fresh clustering and carries only topic ids/names. Defaults to "evolve" when omitted. + How reconciliation carries the previous map forward: "evolve" re-routes new samples into the previous topics before naming; "names_only" keeps the fresh clustering and carries only topic ids/names. Defaults to "names_only" when omitted. """ distance_threshold: NotRequired[float | None] """ diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index ece0e4c1..4ec52af4 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash 8edae789624e11d2) -- do not modify""" +"""Auto-generated file (content hash 57c09ca5a2b45493) -- do not modify""" from ._generated_types import ( Acl, @@ -64,6 +64,7 @@ ObjectReferenceNullish, OnlineScoreConfig, Organization, + OrgAutomation, Permission, Project, ProjectAutomation, @@ -183,6 +184,7 @@ "ObjectReference", "ObjectReferenceNullish", "OnlineScoreConfig", + "OrgAutomation", "Organization", "Permission", "Project",