Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 123 additions & 2 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
65 changes: 63 additions & 2 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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]


Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
"""
Expand Down Expand Up @@ -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
"""
Expand Down Expand Up @@ -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]
"""
Expand Down
4 changes: 3 additions & 1 deletion py/src/braintrust/generated_types.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -64,6 +64,7 @@
ObjectReferenceNullish,
OnlineScoreConfig,
Organization,
OrgAutomation,
Permission,
Project,
ProjectAutomation,
Expand Down Expand Up @@ -183,6 +184,7 @@
"ObjectReference",
"ObjectReferenceNullish",
"OnlineScoreConfig",
"OrgAutomation",
"Organization",
"Permission",
"Project",
Expand Down