From 47a2149acafb6a2a836c7b16fc25c45243547505 Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 21:53:57 +0000 Subject: [PATCH] chore: Update platform types --- generated_types.json | 111 ++++++++++++++++++++++++++++++- js/src/generated_plain_types.ts | 71 ++++++++++++++++++-- js/src/generated_types.ts | 25 ++++++- js/util/generated_plain_types.ts | 71 ++++++++++++++++++-- js/util/generated_types.ts | 25 ++++++- 5 files changed, 285 insertions(+), 18 deletions(-) diff --git a/generated_types.json b/generated_types.json index a72776d0e..c2f131cc4 100644 --- a/generated_types.json +++ b/generated_types.json @@ -3928,6 +3928,34 @@ } ] }, + "NamedScore": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "score": { + "anyOf": [ + { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "type": "object", + "additionalProperties": {} + } + }, + "required": ["name"] + }, "NullableSavedFunctionId": { "anyOf": [ { @@ -4721,6 +4749,18 @@ } ], "description": "The configuration for the automation rule" + }, + "runtime_block": { + "type": "object", + "properties": { + "reason": { + "type": "string" + }, + "model": { + "type": "string" + } + }, + "required": ["reason", "model"] } }, "required": ["id", "project_id", "name", "config"] @@ -5296,6 +5336,10 @@ "type": ["boolean", "null"], "description": "If true, use metrics.start rather than created for monitor chart time bucket dimensions." }, + "coding_agent_insights_dashboard": { + "type": ["boolean", "null"], + "description": "If true, enable the agent insights dashboard for this project." + }, "blind_reviews": { "type": ["boolean", "null"], "description": "If true, hide peer review scores, comments, and aggregate results from reviewers without project update permissions until they submit their own review." @@ -6307,6 +6351,68 @@ } ] }, + "ScoreObject": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The score name. Defaults to the function name for a single score." + }, + "score": { + "anyOf": [ + { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "type": "object", + "additionalProperties": {} + } + }, + "required": ["score"] + }, + "ScoreResult": { + "anyOf": [ + { + "$ref": "#/components/schemas/ScoreObject" + }, + { + "$ref": "#/components/schemas/NamedScore" + }, + { + "anyOf": [ + { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + { + "type": "boolean" + } + ] + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/NamedScore" + }, + "description": "Multiple scores. Each score must have a unique name." + }, + { + "type": "null" + } + ], + "description": "The return value of a scorer function." + }, "ServiceToken": { "type": "object", "properties": { @@ -6443,7 +6549,8 @@ "facet", "preprocessor", "classifier", - "review" + "review", + "log" ], "description": "Type of the span, for display purposes only" }, @@ -6616,7 +6723,7 @@ "relabel_overlap_seconds": { "type": ["number", "null"], "minimum": 60, - "description": "How much recent history to relabel after a new topic map version becomes active" + "description": "Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active." }, "backfill_time_range": { "anyOf": [ diff --git a/js/src/generated_plain_types.ts b/js/src/generated_plain_types.ts index 30c304e7c..ccf431867 100644 --- a/js/src/generated_plain_types.ts +++ b/js/src/generated_plain_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 48f2c828cb95730e) -- do not modify +// Auto-generated file (content hash 3c4918b25bc4930d) -- do not modify export type AclObjectTypeType = /** @@ -2228,12 +2228,12 @@ export type SpanTypeType = /** * Type of the span, for display purposes only * - * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review + * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log */ | /** * Type of the span, for display purposes only * - * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review + * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log */ (| "llm" | "score" @@ -2246,11 +2246,12 @@ export type SpanTypeType = | "preprocessor" | "classifier" | "review" + | "log" ) /** * Type of the span, for display purposes only * - * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review + * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log */ | null; export type SpanAttributesType = @@ -4177,6 +4178,17 @@ export type MessageRoleType = * @enum system, user, assistant, function, tool, model, developer */ "system" | "user" | "assistant" | "function" | "tool" | "model" | "developer"; +export type NamedScoreType = { + name: string; + score?: + | /** + * @minimum 0 + * @maximum 1 + */ + (number | boolean | null) + | undefined; + metadata?: {} | undefined; +}; export type NullableSavedFunctionIdType = /** * Default preprocessor for this project. When set, functions that use preprocessors will use this instead of their built-in default. @@ -4542,6 +4554,17 @@ export type ProjectSettingsType = Partial<{ * If true, use metrics.start rather than created for monitor chart time bucket dimensions. */ | null; + /** + * If true, enable the agent insights dashboard for this project. + */ + coding_agent_insights_dashboard: /** + * If true, enable the agent insights dashboard for this project. + */ + | boolean + /** + * If true, enable the agent insights dashboard for this project. + */ + | null; /** * If true, hide peer review scores, comments, and aggregate results from reviewers without project update permissions until they submit their own review. */ @@ -5059,18 +5082,18 @@ export type TopicAutomationConfigType = { | undefined; relabel_overlap_seconds?: | /** - * How much recent history to relabel after a new topic map version becomes active + * Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active. * * @minimum 60 */ /** - * How much recent history to relabel after a new topic map version becomes active + * Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active. * * @minimum 60 */ (| number /** - * How much recent history to relabel after a new topic map version becomes active + * Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active. * * @minimum 60 */ @@ -5539,6 +5562,12 @@ export type ProjectAutomationType = { | WindowedAutomationConfigType | TopicAutomationConfigType | TopicDigestAutomationConfigType; + runtime_block?: + | { + reason: string; + model: string; + } + | undefined; }; export type ProjectGroupType = { /** @@ -6692,6 +6721,34 @@ export type RunEvalType = { ) | undefined; }; +export type ScoreObjectType = { + name?: /** + * The score name. Defaults to the function name for a single score. + */ + string | undefined; + score: /** + * @minimum 0 + * @maximum 1 + */ + number | boolean | null; + metadata?: {} | undefined; +}; +export type ScoreResultType = + /** + * The return value of a scorer function. + */ + | ScoreObjectType + | NamedScoreType + /** + * @minimum 0 + * @maximum 1 + */ + | (number | boolean) + /** + * Multiple scores. Each score must have a unique name. + */ + | Array + | null; export type ServiceTokenType = { /** * Unique identifier for the service token diff --git a/js/src/generated_types.ts b/js/src/generated_types.ts index 5b0209143..cca502bcd 100644 --- a/js/src/generated_types.ts +++ b/js/src/generated_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 48f2c828cb95730e) -- do not modify +// Auto-generated file (content hash 3c4918b25bc4930d) -- do not modify import { z } from "zod/v3"; @@ -816,6 +816,7 @@ export const SpanType = z.union([ "preprocessor", "classifier", "review", + "log", ]), z.null(), ]); @@ -1535,6 +1536,12 @@ export const MessageRole = z.enum([ "developer", ]); export type MessageRoleType = z.infer; +export const NamedScore = z.object({ + name: z.string(), + score: z.union([z.number(), z.boolean(), z.null()]).optional(), + metadata: z.object({}).partial().passthrough().optional(), +}); +export type NamedScoreType = z.infer; export const NullableSavedFunctionId = z.union([ z.object({ type: z.literal("function"), @@ -1649,6 +1656,7 @@ export const ProjectSettings = z.union([ ]), disable_realtime_queries: z.union([z.boolean(), z.null()]), monitor_charts_use_metrics_start: z.union([z.boolean(), z.null()]), + coding_agent_insights_dashboard: z.union([z.boolean(), z.null()]), blind_reviews: z.union([z.boolean(), z.null()]), default_preprocessor: NullableSavedFunctionId, }) @@ -1910,6 +1918,7 @@ export const ProjectAutomation = z.object({ TopicAutomationConfig, TopicDigestAutomationConfig, ]), + runtime_block: z.object({ reason: z.string(), model: z.string() }).optional(), }); export type ProjectAutomationType = z.infer; export const ProjectGroup = z.object({ @@ -2218,6 +2227,20 @@ export const RunEval = z.object({ endpoint_name: z.union([z.string(), z.null()]).optional(), }); export type RunEvalType = z.infer; +export const ScoreObject = z.object({ + name: z.string().optional(), + score: z.union([z.number(), z.boolean(), z.null()]), + metadata: z.object({}).partial().passthrough().optional(), +}); +export type ScoreObjectType = z.infer; +export const ScoreResult = z.union([ + ScoreObject, + NamedScore, + z.union([z.number(), z.boolean()]), + z.array(NamedScore), + z.null(), +]); +export type ScoreResultType = z.infer; export const ServiceToken = z.object({ id: z.string().uuid(), created: z.union([z.string(), z.null()]).optional(), diff --git a/js/util/generated_plain_types.ts b/js/util/generated_plain_types.ts index 30c304e7c..ccf431867 100644 --- a/js/util/generated_plain_types.ts +++ b/js/util/generated_plain_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 48f2c828cb95730e) -- do not modify +// Auto-generated file (content hash 3c4918b25bc4930d) -- do not modify export type AclObjectTypeType = /** @@ -2228,12 +2228,12 @@ export type SpanTypeType = /** * Type of the span, for display purposes only * - * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review + * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log */ | /** * Type of the span, for display purposes only * - * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review + * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log */ (| "llm" | "score" @@ -2246,11 +2246,12 @@ export type SpanTypeType = | "preprocessor" | "classifier" | "review" + | "log" ) /** * Type of the span, for display purposes only * - * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review + * @enum llm, score, function, eval, task, tool, automation, facet, preprocessor, classifier, review, log */ | null; export type SpanAttributesType = @@ -4177,6 +4178,17 @@ export type MessageRoleType = * @enum system, user, assistant, function, tool, model, developer */ "system" | "user" | "assistant" | "function" | "tool" | "model" | "developer"; +export type NamedScoreType = { + name: string; + score?: + | /** + * @minimum 0 + * @maximum 1 + */ + (number | boolean | null) + | undefined; + metadata?: {} | undefined; +}; export type NullableSavedFunctionIdType = /** * Default preprocessor for this project. When set, functions that use preprocessors will use this instead of their built-in default. @@ -4542,6 +4554,17 @@ export type ProjectSettingsType = Partial<{ * If true, use metrics.start rather than created for monitor chart time bucket dimensions. */ | null; + /** + * If true, enable the agent insights dashboard for this project. + */ + coding_agent_insights_dashboard: /** + * If true, enable the agent insights dashboard for this project. + */ + | boolean + /** + * If true, enable the agent insights dashboard for this project. + */ + | null; /** * If true, hide peer review scores, comments, and aggregate results from reviewers without project update permissions until they submit their own review. */ @@ -5059,18 +5082,18 @@ export type TopicAutomationConfigType = { | undefined; relabel_overlap_seconds?: | /** - * How much recent history to relabel after a new topic map version becomes active + * Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active. * * @minimum 60 */ /** - * How much recent history to relabel after a new topic map version becomes active + * Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active. * * @minimum 60 */ (| number /** - * How much recent history to relabel after a new topic map version becomes active + * Deprecated. How much recent history to relabel after a new topic map version becomes active. Data planes v2.15.0 and later ignore this and apply a topic map version after the first only to traces classified once it is active. * * @minimum 60 */ @@ -5539,6 +5562,12 @@ export type ProjectAutomationType = { | WindowedAutomationConfigType | TopicAutomationConfigType | TopicDigestAutomationConfigType; + runtime_block?: + | { + reason: string; + model: string; + } + | undefined; }; export type ProjectGroupType = { /** @@ -6692,6 +6721,34 @@ export type RunEvalType = { ) | undefined; }; +export type ScoreObjectType = { + name?: /** + * The score name. Defaults to the function name for a single score. + */ + string | undefined; + score: /** + * @minimum 0 + * @maximum 1 + */ + number | boolean | null; + metadata?: {} | undefined; +}; +export type ScoreResultType = + /** + * The return value of a scorer function. + */ + | ScoreObjectType + | NamedScoreType + /** + * @minimum 0 + * @maximum 1 + */ + | (number | boolean) + /** + * Multiple scores. Each score must have a unique name. + */ + | Array + | null; export type ServiceTokenType = { /** * Unique identifier for the service token diff --git a/js/util/generated_types.ts b/js/util/generated_types.ts index 5b0209143..cca502bcd 100644 --- a/js/util/generated_types.ts +++ b/js/util/generated_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 48f2c828cb95730e) -- do not modify +// Auto-generated file (content hash 3c4918b25bc4930d) -- do not modify import { z } from "zod/v3"; @@ -816,6 +816,7 @@ export const SpanType = z.union([ "preprocessor", "classifier", "review", + "log", ]), z.null(), ]); @@ -1535,6 +1536,12 @@ export const MessageRole = z.enum([ "developer", ]); export type MessageRoleType = z.infer; +export const NamedScore = z.object({ + name: z.string(), + score: z.union([z.number(), z.boolean(), z.null()]).optional(), + metadata: z.object({}).partial().passthrough().optional(), +}); +export type NamedScoreType = z.infer; export const NullableSavedFunctionId = z.union([ z.object({ type: z.literal("function"), @@ -1649,6 +1656,7 @@ export const ProjectSettings = z.union([ ]), disable_realtime_queries: z.union([z.boolean(), z.null()]), monitor_charts_use_metrics_start: z.union([z.boolean(), z.null()]), + coding_agent_insights_dashboard: z.union([z.boolean(), z.null()]), blind_reviews: z.union([z.boolean(), z.null()]), default_preprocessor: NullableSavedFunctionId, }) @@ -1910,6 +1918,7 @@ export const ProjectAutomation = z.object({ TopicAutomationConfig, TopicDigestAutomationConfig, ]), + runtime_block: z.object({ reason: z.string(), model: z.string() }).optional(), }); export type ProjectAutomationType = z.infer; export const ProjectGroup = z.object({ @@ -2218,6 +2227,20 @@ export const RunEval = z.object({ endpoint_name: z.union([z.string(), z.null()]).optional(), }); export type RunEvalType = z.infer; +export const ScoreObject = z.object({ + name: z.string().optional(), + score: z.union([z.number(), z.boolean(), z.null()]), + metadata: z.object({}).partial().passthrough().optional(), +}); +export type ScoreObjectType = z.infer; +export const ScoreResult = z.union([ + ScoreObject, + NamedScore, + z.union([z.number(), z.boolean()]), + z.array(NamedScore), + z.null(), +]); +export type ScoreResultType = z.infer; export const ServiceToken = z.object({ id: z.string().uuid(), created: z.union([z.string(), z.null()]).optional(),