diff --git a/generated_types.json b/generated_types.json index a72776d0e..d6e4c87e1 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,6 +5344,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 +6359,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 +6557,9 @@ "facet", "preprocessor", "classifier", - "review" + "review", + "question", + "log" ], "description": "Type of the span, for display purposes only" }, @@ -6616,7 +6732,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 +6859,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 +7731,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..ef8965b0f 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 35872c3205e63d49) -- 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 = @@ -4177,6 +4179,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 +4384,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 +4557,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. */ @@ -4914,14 +4940,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 +5087,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 +5166,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 +5310,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 +5553,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 +5573,12 @@ export type ProjectAutomationType = { | WindowedAutomationConfigType | TopicAutomationConfigType | TopicDigestAutomationConfigType; + runtime_block?: + | { + reason: string; + model: string; + } + | undefined; }; export type ProjectGroupType = { /** @@ -6692,6 +6732,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..a093e59e6 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 35872c3205e63d49) -- do not modify import { z } from "zod/v3"; @@ -816,6 +816,8 @@ export const SpanType = z.union([ "preprocessor", "classifier", "review", + "question", + "log", ]), z.null(), ]); @@ -1535,6 +1537,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 +1604,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,6 +1659,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 +1921,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 +2230,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..ef8965b0f 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 35872c3205e63d49) -- 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 = @@ -4177,6 +4179,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 +4384,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 +4557,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. */ @@ -4914,14 +4940,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 +5087,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 +5166,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 +5310,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 +5553,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 +5573,12 @@ export type ProjectAutomationType = { | WindowedAutomationConfigType | TopicAutomationConfigType | TopicDigestAutomationConfigType; + runtime_block?: + | { + reason: string; + model: string; + } + | undefined; }; export type ProjectGroupType = { /** @@ -6692,6 +6732,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..a093e59e6 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 35872c3205e63d49) -- do not modify import { z } from "zod/v3"; @@ -816,6 +816,8 @@ export const SpanType = z.union([ "preprocessor", "classifier", "review", + "question", + "log", ]), z.null(), ]); @@ -1535,6 +1537,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 +1604,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,6 +1659,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 +1921,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 +2230,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(),