From d6b437741151eb540485ab08fb2fdfae05a6b531 Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 22:29:34 +0000 Subject: [PATCH] chore: Update platform types --- generated_types.json | 258 ++++++++++++++++++++++++++ py/src/braintrust/_generated_types.py | 147 +++++++++++++++ py/src/braintrust/generated_types.py | 2 +- 3 files changed, 406 insertions(+), 1 deletion(-) diff --git a/generated_types.json b/generated_types.json index 4d34be72..6e00eb10 100644 --- a/generated_types.json +++ b/generated_types.json @@ -2345,6 +2345,20 @@ "null" ], "description": "The model used for this example" + }, + "requested_service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier requested for this LLM call" + }, + "served_service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier that served this LLM call" } }, "additionalProperties": {}, @@ -2880,6 +2894,20 @@ "null" ], "description": "The model used for this example" + }, + "requested_service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier requested for this LLM call" + }, + "served_service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier that served this LLM call" } }, "additionalProperties": {}, @@ -6025,6 +6053,60 @@ "type": "string", "description": "The webhook URL to send the request to" }, + "headers": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "value": { + "type": "string", + "maxLength": 8192, + "pattern": "^[\\t\\x20-\\x7e\\x80-\\xff]*$", + "description": "The HTTP header value" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "secret_name": { + "type": "string", + "format": "uuid", + "description": "The data-plane secret containing the header value, bound to the webhook URL it was saved for" + } + }, + "required": [ + "name", + "secret_name" + ], + "additionalProperties": false + } + ] + }, + "maxItems": 20, + "description": "Custom HTTP headers to send with the webhook request" + }, "formatting_prompt": { "type": "string", "minLength": 1, @@ -6412,6 +6494,60 @@ "type": "string", "description": "The webhook URL to send the request to" }, + "headers": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "value": { + "type": "string", + "maxLength": 8192, + "pattern": "^[\\t\\x20-\\x7e\\x80-\\xff]*$", + "description": "The HTTP header value" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "secret_name": { + "type": "string", + "format": "uuid", + "description": "The data-plane secret containing the header value, bound to the webhook URL it was saved for" + } + }, + "required": [ + "name", + "secret_name" + ], + "additionalProperties": false + } + ] + }, + "maxItems": 20, + "description": "Custom HTTP headers to send with the webhook request" + }, "formatting_prompt": { "type": "string", "minLength": 1, @@ -6684,6 +6820,20 @@ "null" ], "description": "The model used for this example" + }, + "requested_service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier requested for this LLM call" + }, + "served_service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier that served this LLM call" } }, "additionalProperties": {}, @@ -7404,6 +7554,60 @@ "type": "string", "description": "The webhook URL to send the request to" }, + "headers": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "value": { + "type": "string", + "maxLength": 8192, + "pattern": "^[\\t\\x20-\\x7e\\x80-\\xff]*$", + "description": "The HTTP header value" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "secret_name": { + "type": "string", + "format": "uuid", + "description": "The data-plane secret containing the header value, bound to the webhook URL it was saved for" + } + }, + "required": [ + "name", + "secret_name" + ], + "additionalProperties": false + } + ] + }, + "maxItems": 20, + "description": "Custom HTTP headers to send with the webhook request" + }, "formatting_prompt": { "type": "string", "minLength": 1, @@ -11038,6 +11242,60 @@ "type": "string", "description": "The webhook URL to send the request to" }, + "headers": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "value": { + "type": "string", + "maxLength": 8192, + "pattern": "^[\\t\\x20-\\x7e\\x80-\\xff]*$", + "description": "The HTTP header value" + } + }, + "required": [ + "name", + "value" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$", + "description": "The HTTP header name" + }, + "secret_name": { + "type": "string", + "format": "uuid", + "description": "The data-plane secret containing the header value, bound to the webhook URL it was saved for" + } + }, + "required": [ + "name", + "secret_name" + ], + "additionalProperties": false + } + ] + }, + "maxItems": 20, + "description": "Custom HTTP headers to send with the webhook request" + }, "formatting_prompt": { "type": "string", "minLength": 1, diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index f95b6bbe..02f50f78 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -656,6 +656,14 @@ class DatasetEventMetadata(TypedDict): """ The model used for this example """ + requested_service_tier: NotRequired[str | None] + """ + The service tier requested for this LLM call + """ + served_service_tier: NotRequired[str | None] + """ + The service tier that served this LLM call + """ class DatasetSnapshot(TypedDict): @@ -747,6 +755,14 @@ class ExperimentEventMetadata(TypedDict): """ The model used for this example """ + requested_service_tier: NotRequired[str | None] + """ + The service tier requested for this LLM call + """ + served_service_tier: NotRequired[str | None] + """ + The service tier that served this LLM call + """ class ExperimentEventMetrics(TypedDict): @@ -1820,6 +1836,28 @@ class PreprocessorIdPreprocessorId2(TypedDict): """ +class ProjectAutomationConfigActionHeaders(TypedDict): + name: str + """ + The HTTP header name + """ + value: str + """ + The HTTP header value + """ + + +class ProjectAutomationConfigActionHeaders1(TypedDict): + name: str + """ + The HTTP header name + """ + secret_name: str + """ + The data-plane secret containing the header value, bound to the webhook URL it was saved for + """ + + class ProjectAutomationConfigAction(TypedDict): type: Literal['webhook'] """ @@ -1829,6 +1867,14 @@ class ProjectAutomationConfigAction(TypedDict): """ The webhook URL to send the request to """ + headers: NotRequired[ + Sequence[ + ProjectAutomationConfigActionHeaders | ProjectAutomationConfigActionHeaders1 + ] + ] + """ + Custom HTTP headers to send with the webhook request + """ formatting_prompt: NotRequired[str | None] """ Instructions for Loop to format content sent to this destination @@ -1970,6 +2016,28 @@ class ProjectAutomationConfig2(TypedDict): """ +class ProjectAutomationConfig4ActionHeaders(TypedDict): + name: str + """ + The HTTP header name + """ + value: str + """ + The HTTP header value + """ + + +class ProjectAutomationConfig4ActionHeaders1(TypedDict): + name: str + """ + The HTTP header name + """ + secret_name: str + """ + The data-plane secret containing the header value, bound to the webhook URL it was saved for + """ + + class ProjectAutomationConfig4Action(TypedDict): type: Literal['webhook'] """ @@ -1979,6 +2047,15 @@ class ProjectAutomationConfig4Action(TypedDict): """ The webhook URL to send the request to """ + headers: NotRequired[ + Sequence[ + ProjectAutomationConfig4ActionHeaders + | ProjectAutomationConfig4ActionHeaders1 + ] + ] + """ + Custom HTTP headers to send with the webhook request + """ formatting_prompt: NotRequired[str | None] """ Instructions for Loop to format content sent to this destination @@ -2091,6 +2168,14 @@ class ProjectLogsEventMetadata(TypedDict): """ The model used for this example """ + requested_service_tier: NotRequired[str | None] + """ + The service tier requested for this LLM call + """ + served_service_tier: NotRequired[str | None] + """ + The service tier that served this LLM call + """ class ProjectLogsEventMetrics(TypedDict): @@ -2210,6 +2295,28 @@ class ProjectSettingsPatternAlertMention(TypedDict): """ +class ProjectSettingsPatternAlertDestinationsHeaders(TypedDict): + name: str + """ + The HTTP header name + """ + value: str + """ + The HTTP header value + """ + + +class ProjectSettingsPatternAlertDestinationsHeaders1(TypedDict): + name: str + """ + The HTTP header name + """ + secret_name: str + """ + The data-plane secret containing the header value, bound to the webhook URL it was saved for + """ + + class ProjectSettingsPatternAlertDestinations(TypedDict): type: Literal['webhook'] """ @@ -2219,6 +2326,15 @@ class ProjectSettingsPatternAlertDestinations(TypedDict): """ The webhook URL to send the request to """ + headers: NotRequired[ + Sequence[ + ProjectSettingsPatternAlertDestinationsHeaders + | ProjectSettingsPatternAlertDestinationsHeaders1 + ] + ] + """ + Custom HTTP headers to send with the webhook request + """ formatting_prompt: NotRequired[str | None] """ Instructions for Loop to format content sent to this destination @@ -3551,6 +3667,28 @@ class WindowedAutomationConfigLoop(TypedDict): """ +class WindowedAutomationConfigActionsHeaders(TypedDict): + name: str + """ + The HTTP header name + """ + value: str + """ + The HTTP header value + """ + + +class WindowedAutomationConfigActionsHeaders1(TypedDict): + name: str + """ + The HTTP header name + """ + secret_name: str + """ + The data-plane secret containing the header value, bound to the webhook URL it was saved for + """ + + class WindowedAutomationConfigActions(TypedDict): type: Literal['webhook'] """ @@ -3560,6 +3698,15 @@ class WindowedAutomationConfigActions(TypedDict): """ The webhook URL to send the request to """ + headers: NotRequired[ + Sequence[ + WindowedAutomationConfigActionsHeaders + | WindowedAutomationConfigActionsHeaders1 + ] + ] + """ + Custom HTTP headers to send with the webhook request + """ formatting_prompt: NotRequired[str | None] """ Instructions for Loop to format content sent to this destination diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index 625d4293..1d369f7e 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash 9a7a98b6fe064664) -- do not modify""" +"""Auto-generated file (content hash bb32e608f908b891) -- do not modify""" from ._generated_types import ( Acl,