From 2043165576f76eedaff7cb3d3b4af808729a5109 Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Fri, 13 Mar 2026 00:28:21 +0000 Subject: [PATCH] chore: generated SDK types --- generated_types.json | 38 ++++++++++++++++++++++++- py/src/braintrust/_generated_types.py | 40 +++++++++++++++++++-------- py/src/braintrust/generated_types.py | 2 +- 3 files changed, 66 insertions(+), 14 deletions(-) diff --git a/generated_types.json b/generated_types.json index 505c3dfa..98054cd3 100644 --- a/generated_types.json +++ b/generated_types.json @@ -3532,6 +3532,16 @@ "type": "string", "description": "The inline code to execute" }, + "function_type": { + "allOf": [ + { + "$ref": "#/components/schemas/FunctionTypeEnum" + }, + { + "description": "The function type for inline code. Required when invoking inline preprocessors." + } + ] + }, "name": { "type": [ "string", @@ -7680,6 +7690,32 @@ "null" ], "description": "Optional BTQL filter applied before topic automation." + }, + "backfill_time_range": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "from": { + "type": "string" + }, + "to": { + "type": "string" + } + }, + "required": [ + "from", + "to" + ] + }, + { + "type": "null" + } + ], + "description": "Optional default time range for backfill operations." } }, "required": [ @@ -8455,7 +8491,7 @@ "license": { "name": "Apache 2.0" }, - "x-internal-git-sha": "7cc4507a2a809d3d0bcaea7cb53cb89c1bde1a91" + "x-internal-git-sha": "f461ffe3b4488dc9e8b7ff5a441d75cab0c822ff" }, "paths": {}, "webhooks": {} diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index 5a977983..6c837b8a 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -849,18 +849,6 @@ class FunctionIdFunctionId4InlineContext(TypedDict): version: str -class FunctionIdFunctionId4(TypedDict): - inline_context: FunctionIdFunctionId4InlineContext - code: str - """ - The inline code to execute - """ - name: NotRequired[str | None] - """ - The name of the inline code function - """ - - FunctionIdRef: TypeAlias = Mapping[str, Any] @@ -1274,6 +1262,7 @@ class InvokeFunctionInvokeFunction4(TypedDict): """ The inline code to execute """ + function_type: NotRequired[FunctionTypeEnum | None] name: NotRequired[str | None] """ The name of the inline code function @@ -2108,6 +2097,7 @@ class TaskTask4(TypedDict): """ The inline code to execute """ + function_type: NotRequired[FunctionTypeEnum | None] name: NotRequired[str | None] """ The name of the inline code function @@ -2325,6 +2315,15 @@ class ToolFunctionDefinition(TypedDict): function: ToolFunctionDefinitionFunction +TopicAutomationConfigBackfillTimeRange = TypedDict( + 'TopicAutomationConfigBackfillTimeRange', + { + 'from': str, + 'to': str, + }, +) + + class TopicAutomationDataScopeTopicAutomationDataScope(TypedDict): type: Literal['project_logs'] @@ -2988,6 +2987,19 @@ class FunctionIdFunctionId2(TypedDict): function_type: NotRequired[FunctionTypeEnum | None] +class FunctionIdFunctionId4(TypedDict): + inline_context: FunctionIdFunctionId4InlineContext + code: str + """ + The inline code to execute + """ + function_type: NotRequired[FunctionTypeEnum | None] + name: NotRequired[str | None] + """ + The name of the inline code function + """ + + class InvokeFunctionInvokeFunction7(TypedDict): input: NotRequired[Any | None] """ @@ -3242,6 +3254,10 @@ class TopicAutomationConfig(TypedDict): """ Optional BTQL filter applied before topic automation. """ + backfill_time_range: NotRequired[str | TopicAutomationConfigBackfillTimeRange | None] + """ + Optional default time range for backfill operations. + """ class ViewData(TypedDict): diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index d7a9920e..7f7517cf 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (internal git SHA 7cc4507a2a809d3d0bcaea7cb53cb89c1bde1a91) -- do not modify""" +"""Auto-generated file (internal git SHA f461ffe3b4488dc9e8b7ff5a441d75cab0c822ff) -- do not modify""" from ._generated_types import ( Acl,