Skip to content

Commit 7830605

Browse files
chore: generated SDK types
1 parent fb80c54 commit 7830605

3 files changed

Lines changed: 68 additions & 16 deletions

File tree

generated_types.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3532,6 +3532,16 @@
35323532
"type": "string",
35333533
"description": "The inline code to execute"
35343534
},
3535+
"function_type": {
3536+
"allOf": [
3537+
{
3538+
"$ref": "#/components/schemas/FunctionTypeEnum"
3539+
},
3540+
{
3541+
"description": "The function type for inline code. Required when invoking inline preprocessors."
3542+
}
3543+
]
3544+
},
35353545
"name": {
35363546
"type": [
35373547
"string",
@@ -7680,6 +7690,32 @@
76807690
"null"
76817691
],
76827692
"description": "Optional BTQL filter applied before topic automation."
7693+
},
7694+
"backfill_time_range": {
7695+
"anyOf": [
7696+
{
7697+
"type": "string"
7698+
},
7699+
{
7700+
"type": "object",
7701+
"properties": {
7702+
"from": {
7703+
"type": "string"
7704+
},
7705+
"to": {
7706+
"type": "string"
7707+
}
7708+
},
7709+
"required": [
7710+
"from",
7711+
"to"
7712+
]
7713+
},
7714+
{
7715+
"type": "null"
7716+
}
7717+
],
7718+
"description": "Optional default time range for backfill operations."
76837719
}
76847720
},
76857721
"required": [
@@ -8455,7 +8491,7 @@
84558491
"license": {
84568492
"name": "Apache 2.0"
84578493
},
8458-
"x-internal-git-sha": "7cc4507a2a809d3d0bcaea7cb53cb89c1bde1a91"
8494+
"x-internal-git-sha": "fe5561830dccd01c0850ad5d091e8f4079893744"
84598495
},
84608496
"paths": {},
84618497
"webhooks": {}

py/src/braintrust/_generated_types.py

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -849,18 +849,6 @@ class FunctionIdFunctionId4InlineContext(TypedDict):
849849
version: str
850850

851851

852-
class FunctionIdFunctionId4(TypedDict):
853-
inline_context: FunctionIdFunctionId4InlineContext
854-
code: str
855-
"""
856-
The inline code to execute
857-
"""
858-
name: NotRequired[str | None]
859-
"""
860-
The name of the inline code function
861-
"""
862-
863-
864852
FunctionIdRef: TypeAlias = Mapping[str, Any]
865853

866854

@@ -1274,6 +1262,7 @@ class InvokeFunctionInvokeFunction4(TypedDict):
12741262
"""
12751263
The inline code to execute
12761264
"""
1265+
function_type: NotRequired[FunctionTypeEnum | None]
12771266
name: NotRequired[str | None]
12781267
"""
12791268
The name of the inline code function
@@ -2108,6 +2097,7 @@ class TaskTask4(TypedDict):
21082097
"""
21092098
The inline code to execute
21102099
"""
2100+
function_type: NotRequired[FunctionTypeEnum | None]
21112101
name: NotRequired[str | None]
21122102
"""
21132103
The name of the inline code function
@@ -2325,6 +2315,15 @@ class ToolFunctionDefinition(TypedDict):
23252315
function: ToolFunctionDefinitionFunction
23262316

23272317

2318+
TopicAutomationConfigBackfillTimeRange = TypedDict(
2319+
'TopicAutomationConfigBackfillTimeRange',
2320+
{
2321+
'from': str,
2322+
'to': str,
2323+
},
2324+
)
2325+
2326+
23282327
class TopicAutomationDataScopeTopicAutomationDataScope(TypedDict):
23292328
type: Literal['project_logs']
23302329

@@ -2988,6 +2987,19 @@ class FunctionIdFunctionId2(TypedDict):
29882987
function_type: NotRequired[FunctionTypeEnum | None]
29892988

29902989

2990+
class FunctionIdFunctionId4(TypedDict):
2991+
inline_context: FunctionIdFunctionId4InlineContext
2992+
code: str
2993+
"""
2994+
The inline code to execute
2995+
"""
2996+
function_type: NotRequired[FunctionTypeEnum | None]
2997+
name: NotRequired[str | None]
2998+
"""
2999+
The name of the inline code function
3000+
"""
3001+
3002+
29913003
class InvokeFunctionInvokeFunction7(TypedDict):
29923004
input: NotRequired[Any | None]
29933005
"""
@@ -3242,6 +3254,10 @@ class TopicAutomationConfig(TypedDict):
32423254
"""
32433255
Optional BTQL filter applied before topic automation.
32443256
"""
3257+
backfill_time_range: NotRequired[str | TopicAutomationConfigBackfillTimeRange | None]
3258+
"""
3259+
Optional default time range for backfill operations.
3260+
"""
32453261

32463262

32473263
class ViewData(TypedDict):
@@ -3922,4 +3938,4 @@ class Function(TypedDict):
39223938
JSON schema for the function's parameters and return type
39233939
"""
39243940

3925-
__all__ = []
3941+
__all__ = []

py/src/braintrust/generated_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Auto-generated file (internal git SHA 7cc4507a2a809d3d0bcaea7cb53cb89c1bde1a91) -- do not modify"""
1+
"""Auto-generated file (internal git SHA fe5561830dccd01c0850ad5d091e8f4079893744) -- do not modify"""
22

33
from ._generated_types import (
44
Acl,
@@ -228,4 +228,4 @@
228228
"ViewData",
229229
"ViewDataSearch",
230230
"ViewOptions",
231-
]
231+
]

0 commit comments

Comments
 (0)