diff --git a/generated_types.json b/generated_types.json index 6e00eb10..52adad67 100644 --- a/generated_types.json +++ b/generated_types.json @@ -7698,6 +7698,38 @@ "maxItems": 20, "description": "Project-wide Slack, webhook, and PagerDuty destinations for new and reactivated Pattern alerts. An empty array disables alerts." }, + "pattern_alert_min_severity": { + "type": [ + "string", + "null" + ], + "enum": [ + "high", + "medium", + "low" + ], + "description": "Lowest severity that sends Pattern alerts: `low`, `medium`, or `high`. New and reactivated Patterns below it don't send alerts, and raising an active Pattern's severity to it or above sends one. Patterns without a severity count as low. Informational Patterns follow `pattern_alert_informational` instead. Unset or null uses medium." + }, + "pattern_alert_informational": { + "type": [ + "boolean", + "null" + ], + "description": "Whether new and reactivated informational Patterns send alerts, independent of `pattern_alert_min_severity`. Unset or null sends them." + }, + "pattern_excluded_categories": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string", + "minLength": 1, + "maxLength": 64 + }, + "maxItems": 64, + "description": "Patterns rubric categories this project turned off. Patterns doesn't look for or assign them." + }, "session_id_fields": { "type": [ "array", diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index 02f50f78..2e970809 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -2380,6 +2380,9 @@ class ProjectSettingsPatternAlertDestinations2(TypedDict): """ +ProjectSettingsPatternExcludedCategory: TypeAlias = str + + ProjectSettingsSessionIdField: TypeAlias = str @@ -2435,6 +2438,20 @@ class ProjectSettings(TypedDict): """ Project-wide Slack, webhook, and PagerDuty destinations for new and reactivated Pattern alerts. An empty array disables alerts. """ + pattern_alert_min_severity: NotRequired[Literal['high', 'medium', 'low'] | None] + """ + Lowest severity that sends Pattern alerts: `low`, `medium`, or `high`. New and reactivated Patterns below it don't send alerts, and raising an active Pattern's severity to it or above sends one. Patterns without a severity count as low. Informational Patterns follow `pattern_alert_informational` instead. Unset or null uses medium. + """ + pattern_alert_informational: NotRequired[bool | None] + """ + Whether new and reactivated informational Patterns send alerts, independent of `pattern_alert_min_severity`. Unset or null sends them. + """ + pattern_excluded_categories: NotRequired[ + Sequence[ProjectSettingsPatternExcludedCategory] + ] + """ + Patterns rubric categories this project turned off. Patterns doesn't look for or assign them. + """ session_id_fields: NotRequired[Sequence[Sequence[ProjectSettingsSessionIdField]] | None] default_preprocessor: NotRequired[NullableSavedFunctionId | None] diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index 1d369f7e..3224b8a3 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash bb32e608f908b891) -- do not modify""" +"""Auto-generated file (content hash 5cd6088ac6015c5f) -- do not modify""" from ._generated_types import ( Acl,