Skip to content

Commit 4cc60e9

Browse files
chore: generated SDK types
1 parent c7e3b52 commit 4cc60e9

3 files changed

Lines changed: 103 additions & 8 deletions

File tree

generated_types.json

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5089,7 +5089,7 @@
50895089
"type": "null"
50905090
}
50915091
],
5092-
"description": "The scope at which to run the functions. Defaults to span-level execution. Trace/group scope requires all functions to be facets."
5092+
"description": "The scope at which to run the functions. Defaults to span-level execution."
50935093
}
50945094
},
50955095
"required": [
@@ -5516,6 +5516,68 @@
55165516
"credentials"
55175517
]
55185518
},
5519+
{
5520+
"type": "object",
5521+
"properties": {
5522+
"event_type": {
5523+
"type": "string",
5524+
"enum": [
5525+
"async_query"
5526+
],
5527+
"description": "The type of automation."
5528+
},
5529+
"status": {
5530+
"$ref": "#/components/schemas/AutomationStatus"
5531+
},
5532+
"created_by_user_id": {
5533+
"type": "string",
5534+
"format": "uuid",
5535+
"description": "The user who submitted the async query"
5536+
},
5537+
"object_type": {
5538+
"type": "string",
5539+
"enum": [
5540+
"project_logs",
5541+
"experiment",
5542+
"dataset",
5543+
"playground_logs"
5544+
],
5545+
"description": "The source object type for the async query"
5546+
},
5547+
"object_id": {
5548+
"type": "string",
5549+
"description": "The source object ID for the async query"
5550+
},
5551+
"query": {
5552+
"type": "string",
5553+
"description": "The SQL query to execute asynchronously"
5554+
},
5555+
"format": {
5556+
"type": "string",
5557+
"enum": [
5558+
"jsonl"
5559+
],
5560+
"description": "The materialized result format"
5561+
},
5562+
"batch_size": {
5563+
"type": [
5564+
"integer",
5565+
"null"
5566+
],
5567+
"exclusiveMinimum": 0,
5568+
"maximum": 100000,
5569+
"description": "The maximum number of result rows to write per async query batch"
5570+
}
5571+
},
5572+
"required": [
5573+
"event_type",
5574+
"created_by_user_id",
5575+
"object_type",
5576+
"object_id",
5577+
"query",
5578+
"format"
5579+
]
5580+
},
55195581
{
55205582
"type": "object",
55215583
"properties": {

py/src/braintrust/_generated_types.py

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,39 @@ class ProjectAutomationConfig1Credentials1(TypedDict):
16991699
"""
17001700

17011701

1702-
class ProjectAutomationConfig3Action(TypedDict):
1702+
class ProjectAutomationConfig2(TypedDict):
1703+
event_type: Literal['async_query']
1704+
"""
1705+
The type of automation.
1706+
"""
1707+
status: NotRequired[AutomationStatus | None]
1708+
created_by_user_id: str
1709+
"""
1710+
The user who submitted the async query
1711+
"""
1712+
object_type: Literal['project_logs', 'experiment', 'dataset', 'playground_logs']
1713+
"""
1714+
The source object type for the async query
1715+
"""
1716+
object_id: str
1717+
"""
1718+
The source object ID for the async query
1719+
"""
1720+
query: str
1721+
"""
1722+
The SQL query to execute asynchronously
1723+
"""
1724+
format: Literal['jsonl']
1725+
"""
1726+
The materialized result format
1727+
"""
1728+
batch_size: NotRequired[int | None]
1729+
"""
1730+
The maximum number of result rows to write per async query batch
1731+
"""
1732+
1733+
1734+
class ProjectAutomationConfig4Action(TypedDict):
17031735
type: Literal['webhook']
17041736
"""
17051737
The type of action to take
@@ -1710,7 +1742,7 @@ class ProjectAutomationConfig3Action(TypedDict):
17101742
"""
17111743

17121744

1713-
class ProjectAutomationConfig3Action1(TypedDict):
1745+
class ProjectAutomationConfig4Action1(TypedDict):
17141746
type: Literal['slack']
17151747
"""
17161748
The type of action to take
@@ -1729,7 +1761,7 @@ class ProjectAutomationConfig3Action1(TypedDict):
17291761
"""
17301762

17311763

1732-
class ProjectAutomationConfig3(TypedDict):
1764+
class ProjectAutomationConfig4(TypedDict):
17331765
event_type: Literal['environment_update']
17341766
"""
17351767
The type of automation.
@@ -1738,7 +1770,7 @@ class ProjectAutomationConfig3(TypedDict):
17381770
"""
17391771
Optional list of environment slugs to filter by
17401772
"""
1741-
action: ProjectAutomationConfig3Action | ProjectAutomationConfig3Action1
1773+
action: ProjectAutomationConfig4Action | ProjectAutomationConfig4Action1
17421774
"""
17431775
The action to take when the automation rule is triggered
17441776
"""
@@ -3231,7 +3263,7 @@ class OnlineScoreConfig(TypedDict):
32313263
"""
32323264
scope: NotRequired[SpanScope | TraceScope | GroupScope | None]
32333265
"""
3234-
The scope at which to run the functions. Defaults to span-level execution. Trace/group scope requires all functions to be facets.
3266+
The scope at which to run the functions. Defaults to span-level execution.
32353267
"""
32363268

32373269

@@ -3306,7 +3338,7 @@ class ProjectAutomationConfig1(TypedDict):
33063338
"""
33073339

33083340

3309-
class ProjectAutomationConfig2(TypedDict):
3341+
class ProjectAutomationConfig3(TypedDict):
33103342
event_type: Literal['retention']
33113343
"""
33123344
The type of automation.
@@ -3654,6 +3686,7 @@ class ProjectAutomation(TypedDict):
36543686
| ProjectAutomationConfig1
36553687
| ProjectAutomationConfig2
36563688
| ProjectAutomationConfig3
3689+
| ProjectAutomationConfig4
36573690
| TopicAutomationConfig
36583691
)
36593692
"""

py/src/braintrust/generated_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Auto-generated file (content hash 544695dbf71e867b) -- do not modify"""
1+
"""Auto-generated file (content hash e03e600b282a3442) -- do not modify"""
22

33
from ._generated_types import (
44
Acl,

0 commit comments

Comments
 (0)