From 2b07690346b8d0a2cfb2245b13fe0ebb7a647213 Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Tue, 22 Sep 2026 19:51:59 +0000 Subject: [PATCH] chore: Update platform types --- generated_types.json | 137 +++++++++++++++++++++++++++++-- js/src/generated_plain_types.ts | 135 +++++++++++++++++++++++++----- js/src/generated_types.ts | 33 +++++++- js/util/generated_plain_types.ts | 135 +++++++++++++++++++++++++----- js/util/generated_types.ts | 33 +++++++- 5 files changed, 427 insertions(+), 46 deletions(-) diff --git a/generated_types.json b/generated_types.json index a72776d0e..93ba31db4 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": [ { @@ -4133,6 +4161,14 @@ "format": "date-time", "description": "Date of organization creation" }, + "archived_at": { + "type": ["string", "null"], + "format": "date-time" + }, + "deleted_at": { + "type": ["string", "null"], + "format": "date-time" + }, "image_rendering_mode": { "$ref": "#/components/schemas/ImageRenderingMode" } @@ -4412,7 +4448,7 @@ "type": "string", "minLength": 1, "maxLength": 10000, - "description": "Publish a Slack mrkdwn digest.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say \"No pattern outcomes.\"\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report." + "description": "Publish a Slack mrkdwn digest.\n\nPattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say \"No current pattern outcomes.\" This requirement overrides conflicting formatting guidance.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every included Pattern.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern.\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report." } }, "required": ["type", "workspace_id", "channel"] @@ -4699,7 +4735,7 @@ "type": "string", "minLength": 1, "maxLength": 10000, - "description": "Publish a Slack mrkdwn digest.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say \"No pattern outcomes.\"\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report." + "description": "Publish a Slack mrkdwn digest.\n\nPattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say \"No current pattern outcomes.\" This requirement overrides conflicting formatting guidance.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every included Pattern.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern.\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report." } }, "required": ["type", "workspace_id", "channel"] @@ -4721,6 +4757,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,10 +5344,18 @@ "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." }, + "require_all_human_review_scores": { + "type": ["boolean", "null"], + "description": "If true, automatically complete a review after every assigned reviewer fills all human review scores visible to them." + }, "default_preprocessor": { "$ref": "#/components/schemas/NullableSavedFunctionId" } @@ -6307,6 +6363,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": { @@ -6367,6 +6485,11 @@ "type": ["string", "null"], "enum": ["scorer"], "description": "A special value that indicates the span was generated by a scoring automation" + }, + "log_level": { + "type": ["string", "null"], + "enum": ["trace", "debug", "info", "warn", "error", "fatal"], + "description": "Severity level of a log" } }, "additionalProperties": {}, @@ -6443,7 +6566,9 @@ "facet", "preprocessor", "classifier", - "review" + "review", + "question", + "log" ], "description": "Type of the span, for display purposes only" }, @@ -6616,7 +6741,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": [ @@ -6743,7 +6868,7 @@ "type": "string", "minLength": 1, "maxLength": 10000, - "description": "Publish a Slack mrkdwn digest.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say \"No pattern outcomes.\"\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report." + "description": "Publish a Slack mrkdwn digest.\n\nPattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say \"No current pattern outcomes.\" This requirement overrides conflicting formatting guidance.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every included Pattern.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern.\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report." } }, "required": ["type", "workspace_id", "channel"], @@ -7615,7 +7740,7 @@ "type": "string", "minLength": 1, "maxLength": 10000, - "description": "Publish a Slack mrkdwn digest.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say \"No pattern outcomes.\"\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report." + "description": "Publish a Slack mrkdwn digest.\n\nPattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say \"No current pattern outcomes.\" This requirement overrides conflicting formatting guidance.\n\nInclude a complete \"*Pattern outcomes*\" section with one row for every included Pattern.\n\nUse this row format exactly:\n• — `outcome`\n\nIf a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern.\n\nAfter the outcome list, include a \"*Highlights*\" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report." } }, "required": ["type", "workspace_id", "channel"] diff --git a/js/src/generated_plain_types.ts b/js/src/generated_plain_types.ts index 30c304e7c..9dee2c831 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 6f98c901e6705c9d) -- 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, question, 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, question, log */ (| "llm" | "score" @@ -2246,11 +2246,13 @@ export type SpanTypeType = | "preprocessor" | "classifier" | "review" + | "question" + | "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, question, log */ | null; export type SpanAttributesType = @@ -2292,6 +2294,24 @@ export type SpanAttributesType = * @enum scorer */ | null; + /** + * Severity level of a log + * + * @enum trace, debug, info, warn, error, fatal + */ + log_level: + | /** + * Severity level of a log + * + * @enum trace, debug, info, warn, error, fatal + */ + ("trace" | "debug" | "info" | "warn" | "error" | "fatal") + /** + * Severity level of a log + * + * @enum trace, debug, info, warn, error, fatal + */ + | null; } & { [key: string]: any; } @@ -4177,6 +4197,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. @@ -4371,6 +4402,8 @@ export type OrganizationType = { | null ) | undefined; + archived_at?: (string | null) | undefined; + deleted_at?: (string | null) | undefined; image_rendering_mode?: ImageRenderingModeType | undefined; }; export type RetentionObjectTypeType = @@ -4542,6 +4575,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. */ @@ -4553,6 +4597,17 @@ export type ProjectSettingsType = Partial<{ * If true, hide peer review scores, comments, and aggregate results from reviewers without project update permissions until they submit their own review. */ | null; + /** + * If true, automatically complete a review after every assigned reviewer fills all human review scores visible to them. + */ + require_all_human_review_scores: /** + * If true, automatically complete a review after every assigned reviewer fills all human review scores visible to them. + */ + | boolean + /** + * If true, automatically complete a review after every assigned reviewer fills all human review scores visible to them. + */ + | null; default_preprocessor: NullableSavedFunctionIdType; }> | null; export type ProjectType = { @@ -4914,14 +4969,16 @@ export type WindowedAutomationConfigType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5059,18 +5116,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 */ @@ -5138,14 +5195,16 @@ export type TopicDigestAutomationConfigType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5280,14 +5339,16 @@ export type ProjectAutomationType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5521,14 +5582,16 @@ export type ProjectAutomationType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5539,6 +5602,12 @@ export type ProjectAutomationType = { | WindowedAutomationConfigType | TopicAutomationConfigType | TopicDigestAutomationConfigType; + runtime_block?: + | { + reason: string; + model: string; + } + | undefined; }; export type ProjectGroupType = { /** @@ -6692,6 +6761,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..dcc9b4098 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 6f98c901e6705c9d) -- do not modify import { z } from "zod/v3"; @@ -816,6 +816,8 @@ export const SpanType = z.union([ "preprocessor", "classifier", "review", + "question", + "log", ]), z.null(), ]); @@ -826,6 +828,10 @@ export const SpanAttributes = z.union([ name: z.union([z.string(), z.null()]), type: SpanType, purpose: z.union([z.literal("scorer"), z.null()]), + log_level: z.union([ + z.enum(["trace", "debug", "info", "warn", "error", "fatal"]), + z.null(), + ]), }) .partial() .passthrough(), @@ -1535,6 +1541,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"), @@ -1596,6 +1608,8 @@ export const Organization = z.object({ proxy_url: z.union([z.string(), z.null()]).optional(), realtime_url: z.union([z.string(), z.null()]).optional(), created: z.union([z.string(), z.null()]).optional(), + archived_at: z.union([z.string(), z.null()]).optional(), + deleted_at: z.union([z.string(), z.null()]).optional(), image_rendering_mode: ImageRenderingMode.optional(), }); export type OrganizationType = z.infer; @@ -1649,7 +1663,9 @@ 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()]), + require_all_human_review_scores: z.union([z.boolean(), z.null()]), default_preprocessor: NullableSavedFunctionId, }) .partial(), @@ -1910,6 +1926,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 +2235,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..9dee2c831 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 6f98c901e6705c9d) -- 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, question, 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, question, log */ (| "llm" | "score" @@ -2246,11 +2246,13 @@ export type SpanTypeType = | "preprocessor" | "classifier" | "review" + | "question" + | "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, question, log */ | null; export type SpanAttributesType = @@ -2292,6 +2294,24 @@ export type SpanAttributesType = * @enum scorer */ | null; + /** + * Severity level of a log + * + * @enum trace, debug, info, warn, error, fatal + */ + log_level: + | /** + * Severity level of a log + * + * @enum trace, debug, info, warn, error, fatal + */ + ("trace" | "debug" | "info" | "warn" | "error" | "fatal") + /** + * Severity level of a log + * + * @enum trace, debug, info, warn, error, fatal + */ + | null; } & { [key: string]: any; } @@ -4177,6 +4197,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. @@ -4371,6 +4402,8 @@ export type OrganizationType = { | null ) | undefined; + archived_at?: (string | null) | undefined; + deleted_at?: (string | null) | undefined; image_rendering_mode?: ImageRenderingModeType | undefined; }; export type RetentionObjectTypeType = @@ -4542,6 +4575,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. */ @@ -4553,6 +4597,17 @@ export type ProjectSettingsType = Partial<{ * If true, hide peer review scores, comments, and aggregate results from reviewers without project update permissions until they submit their own review. */ | null; + /** + * If true, automatically complete a review after every assigned reviewer fills all human review scores visible to them. + */ + require_all_human_review_scores: /** + * If true, automatically complete a review after every assigned reviewer fills all human review scores visible to them. + */ + | boolean + /** + * If true, automatically complete a review after every assigned reviewer fills all human review scores visible to them. + */ + | null; default_preprocessor: NullableSavedFunctionIdType; }> | null; export type ProjectType = { @@ -4914,14 +4969,16 @@ export type WindowedAutomationConfigType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5059,18 +5116,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 */ @@ -5138,14 +5195,16 @@ export type TopicDigestAutomationConfigType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5280,14 +5339,16 @@ export type ProjectAutomationType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5521,14 +5582,16 @@ export type ProjectAutomationType = { formatting_prompt?: /** * Publish a Slack mrkdwn digest. - Include a complete "*Pattern outcomes*" section with one row for every selected Pattern from the run report, including created, updated, unchanged, failed, skipped, and newly inactive outcomes. + Pattern selection requirement: include every selected Pattern whose final status is active at the end of this automation run, plus every selected Pattern that changed from active to inactive during this run (a newly inactive outcome). Exclude Patterns that were already inactive before this run and remained inactive. Do not mention excluded Patterns anywhere in the digest, including Highlights. If no selected Patterns meet these criteria, say "No current pattern outcomes." This requirement overrides conflicting formatting guidance. + + Include a complete "*Pattern outcomes*" section with one row for every included Pattern. Use this row format exactly: • — `outcome` - If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any selected Pattern. If there are no selected Patterns, say "No pattern outcomes." + If a Pattern has no URL, use the plain title instead. Do not use GitHub Markdown tables or code-block tables, because links must remain clickable. Do not omit any active selected Pattern. - After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out from this run. Do not introduce new claims beyond the run report. + After the outcome list, include a "*Highlights*" section with one very short paragraph, 2-3 sentences maximum. Summarize what changed or what broadly stands out among the included active Patterns. Do not introduce new claims beyond the run report. * * @minLength 1 * @maxLength 10000 @@ -5539,6 +5602,12 @@ export type ProjectAutomationType = { | WindowedAutomationConfigType | TopicAutomationConfigType | TopicDigestAutomationConfigType; + runtime_block?: + | { + reason: string; + model: string; + } + | undefined; }; export type ProjectGroupType = { /** @@ -6692,6 +6761,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..dcc9b4098 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 6f98c901e6705c9d) -- do not modify import { z } from "zod/v3"; @@ -816,6 +816,8 @@ export const SpanType = z.union([ "preprocessor", "classifier", "review", + "question", + "log", ]), z.null(), ]); @@ -826,6 +828,10 @@ export const SpanAttributes = z.union([ name: z.union([z.string(), z.null()]), type: SpanType, purpose: z.union([z.literal("scorer"), z.null()]), + log_level: z.union([ + z.enum(["trace", "debug", "info", "warn", "error", "fatal"]), + z.null(), + ]), }) .partial() .passthrough(), @@ -1535,6 +1541,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"), @@ -1596,6 +1608,8 @@ export const Organization = z.object({ proxy_url: z.union([z.string(), z.null()]).optional(), realtime_url: z.union([z.string(), z.null()]).optional(), created: z.union([z.string(), z.null()]).optional(), + archived_at: z.union([z.string(), z.null()]).optional(), + deleted_at: z.union([z.string(), z.null()]).optional(), image_rendering_mode: ImageRenderingMode.optional(), }); export type OrganizationType = z.infer; @@ -1649,7 +1663,9 @@ 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()]), + require_all_human_review_scores: z.union([z.boolean(), z.null()]), default_preprocessor: NullableSavedFunctionId, }) .partial(), @@ -1910,6 +1926,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 +2235,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(),