From 9767dda62ff2b935c1254f2e1b58e9a9f9cb94db Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Sat, 3 Oct 2026 22:30:17 +0000 Subject: [PATCH] chore: Update platform types --- generated_types.json | 99 +++++++++++++++++++++++++++++++- js/src/generated_plain_types.ts | 87 ++++++++++++++++++++++++++-- js/src/generated_types.ts | 29 +++++++++- js/util/generated_plain_types.ts | 87 ++++++++++++++++++++++++++-- js/util/generated_types.ts | 29 +++++++++- 5 files changed, 312 insertions(+), 19 deletions(-) diff --git a/generated_types.json b/generated_types.json index 648163608..0991a5454 100644 --- a/generated_types.json +++ b/generated_types.json @@ -2037,7 +2037,12 @@ }, "secret_category": { "type": "string", - "enum": ["env_var", "ai_provider", "sandbox_provider"], + "enum": [ + "env_var", + "ai_provider", + "sandbox_provider", + "automation_integration" + ], "default": "env_var", "description": "The category of the secret: env_var for regular environment variables, ai_provider for AI provider API keys" } @@ -4472,6 +4477,36 @@ } }, "required": ["type", "workspace_id", "channel"] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["pagerduty"], + "description": "The type of action to take" + }, + "routing_key_secret_name": { + "type": "string", + "format": "uuid", + "description": "The data-plane secret containing the PagerDuty routing key" + }, + "severity": { + "type": "string", + "enum": ["critical", "error", "warning", "info"] + }, + "formatting_prompt": { + "type": "string", + "minLength": 1, + "maxLength": 10000, + "description": "Instructions for Loop to format content sent to this destination" + } + }, + "required": [ + "type", + "routing_key_secret_name", + "severity" + ] } ], "description": "The action to take when the automation rule is triggered" @@ -4759,6 +4794,36 @@ } }, "required": ["type", "workspace_id", "channel"] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["pagerduty"], + "description": "The type of action to take" + }, + "routing_key_secret_name": { + "type": "string", + "format": "uuid", + "description": "The data-plane secret containing the PagerDuty routing key" + }, + "severity": { + "type": "string", + "enum": ["critical", "error", "warning", "info"] + }, + "formatting_prompt": { + "type": "string", + "minLength": 1, + "maxLength": 10000, + "description": "Instructions for Loop to format content sent to this destination" + } + }, + "required": [ + "type", + "routing_key_secret_name", + "severity" + ] } ], "description": "The action to take when the automation rule is triggered" @@ -7685,11 +7750,13 @@ }, "harness": { "type": "string", - "enum": ["native", "codex", "claude-code"] + "enum": ["codex", "native", "claude-code"], + "description": "Required when saving a Loop automation. Currently only Codex is supported." }, "model": { "type": "string", - "minLength": 1 + "minLength": 1, + "description": "Required when saving a Loop automation." }, "endpoint_name": { "type": "string", @@ -7764,6 +7831,32 @@ } }, "required": ["type", "workspace_id", "channel"] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["pagerduty"], + "description": "The type of action to take" + }, + "routing_key_secret_name": { + "type": "string", + "format": "uuid", + "description": "The data-plane secret containing the PagerDuty routing key" + }, + "severity": { + "type": "string", + "enum": ["critical", "error", "warning", "info"] + }, + "formatting_prompt": { + "type": "string", + "minLength": 1, + "maxLength": 10000, + "description": "Instructions for Loop to format content sent to this destination" + } + }, + "required": ["type", "routing_key_secret_name", "severity"] } ], "description": "A delivery action available to an automation" diff --git a/js/src/generated_plain_types.ts b/js/src/generated_plain_types.ts index 485d26234..e08382e33 100644 --- a/js/src/generated_plain_types.ts +++ b/js/src/generated_plain_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 7351b6dec8a2d13b) -- do not modify +// Auto-generated file (content hash 15ee517da0d5a72c) -- do not modify export type AclObjectTypeType = /** @@ -1902,9 +1902,13 @@ export type EnvVarType = { * The category of the secret: env_var for regular environment variables, ai_provider for AI provider API keys * * @default "env_var" - * @enum env_var, ai_provider, sandbox_provider + * @enum env_var, ai_provider, sandbox_provider, automation_integration */ - secret_category: "env_var" | "ai_provider" | "sandbox_provider"; + secret_category: + | "env_var" + | "ai_provider" + | "sandbox_provider" + | "automation_integration"; }; export type RepoInfoType = /** @@ -4917,11 +4921,15 @@ export type WindowedAutomationConfigType = { string>; harness?: | /** - * @enum native, codex, claude-code + * Required when saving a Loop automation. Currently only Codex is supported. + * + * @enum codex, native, claude-code */ - ("native" | "codex" | "claude-code") + ("codex" | "native" | "claude-code") | undefined; model?: /** + * Required when saving a Loop automation. + * * @minLength 1 */ string | undefined; @@ -5003,6 +5011,29 @@ export type WindowedAutomationConfigType = { */ string | undefined; } + | { + /** + * The type of action to take + * + * @enum pagerduty + */ + type: "pagerduty"; + /** + * The data-plane secret containing the PagerDuty routing key + */ + routing_key_secret_name: string; + /** + * @enum critical, error, warning, info + */ + severity: "critical" | "error" | "warning" | "info"; + formatting_prompt?: /** + * Instructions for Loop to format content sent to this destination + * + * @minLength 1 + * @maxLength 10000 + */ + string | undefined; + } >; }; export type TopicAutomationFacetModelType = @@ -5372,6 +5403,29 @@ export type ProjectAutomationType = { * @maxLength 10000 */ string | undefined; + } + | { + /** + * The type of action to take + * + * @enum pagerduty + */ + type: "pagerduty"; + /** + * The data-plane secret containing the PagerDuty routing key + */ + routing_key_secret_name: string; + /** + * @enum critical, error, warning, info + */ + severity: "critical" | "error" | "warning" | "info"; + formatting_prompt?: /** + * Instructions for Loop to format content sent to this destination + * + * @minLength 1 + * @maxLength 10000 + */ + string | undefined; }; } | { @@ -5615,6 +5669,29 @@ export type ProjectAutomationType = { * @maxLength 10000 */ string | undefined; + } + | { + /** + * The type of action to take + * + * @enum pagerduty + */ + type: "pagerduty"; + /** + * The data-plane secret containing the PagerDuty routing key + */ + routing_key_secret_name: string; + /** + * @enum critical, error, warning, info + */ + severity: "critical" | "error" | "warning" | "info"; + formatting_prompt?: /** + * Instructions for Loop to format content sent to this destination + * + * @minLength 1 + * @maxLength 10000 + */ + string | undefined; }; } | WindowedAutomationConfigType diff --git a/js/src/generated_types.ts b/js/src/generated_types.ts index 2a64a6f10..9fc957814 100644 --- a/js/src/generated_types.ts +++ b/js/src/generated_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 7351b6dec8a2d13b) -- do not modify +// Auto-generated file (content hash 15ee517da0d5a72c) -- do not modify import { z } from "zod/v3"; @@ -752,7 +752,12 @@ export const EnvVar = z.object({ preview_secret: z.union([z.string(), z.null()]).optional(), secret_type: z.union([z.string(), z.null()]).optional(), secret_category: z - .enum(["env_var", "ai_provider", "sandbox_provider"]) + .enum([ + "env_var", + "ai_provider", + "sandbox_provider", + "automation_integration", + ]) .optional() .default("env_var"), }); @@ -1742,7 +1747,7 @@ export const WindowedAutomationConfig = z.object({ include_trigger_input: z.boolean().optional().default(false), agent_slug: z.string().min(1), auto_approve_tools: z.array(z.string().min(1)).optional().default([]), - harness: z.enum(["native", "codex", "claude-code"]).optional(), + harness: z.enum(["codex", "native", "claude-code"]).optional(), model: z.string().min(1).optional(), endpoint_name: z.string().min(1).optional(), reasoning_effort: z @@ -1765,6 +1770,12 @@ export const WindowedAutomationConfig = z.object({ message_template: z.string().optional(), formatting_prompt: z.string().min(1).max(10000).optional(), }), + z.object({ + type: z.literal("pagerduty"), + routing_key_secret_name: z.string().uuid(), + severity: z.enum(["critical", "error", "warning", "info"]), + formatting_prompt: z.string().min(1).max(10000).optional(), + }), ]), ) .max(20) @@ -1867,6 +1878,12 @@ export const ProjectAutomation = z.object({ message_template: z.string().optional(), formatting_prompt: z.string().min(1).max(10000).optional(), }), + z.object({ + type: z.literal("pagerduty"), + routing_key_secret_name: z.string().uuid(), + severity: z.enum(["critical", "error", "warning", "info"]), + formatting_prompt: z.string().min(1).max(10000).optional(), + }), ]), }), z.object({ @@ -1931,6 +1948,12 @@ export const ProjectAutomation = z.object({ message_template: z.string().optional(), formatting_prompt: z.string().min(1).max(10000).optional(), }), + z.object({ + type: z.literal("pagerduty"), + routing_key_secret_name: z.string().uuid(), + severity: z.enum(["critical", "error", "warning", "info"]), + formatting_prompt: z.string().min(1).max(10000).optional(), + }), ]), }), WindowedAutomationConfig, diff --git a/js/util/generated_plain_types.ts b/js/util/generated_plain_types.ts index 485d26234..e08382e33 100644 --- a/js/util/generated_plain_types.ts +++ b/js/util/generated_plain_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 7351b6dec8a2d13b) -- do not modify +// Auto-generated file (content hash 15ee517da0d5a72c) -- do not modify export type AclObjectTypeType = /** @@ -1902,9 +1902,13 @@ export type EnvVarType = { * The category of the secret: env_var for regular environment variables, ai_provider for AI provider API keys * * @default "env_var" - * @enum env_var, ai_provider, sandbox_provider + * @enum env_var, ai_provider, sandbox_provider, automation_integration */ - secret_category: "env_var" | "ai_provider" | "sandbox_provider"; + secret_category: + | "env_var" + | "ai_provider" + | "sandbox_provider" + | "automation_integration"; }; export type RepoInfoType = /** @@ -4917,11 +4921,15 @@ export type WindowedAutomationConfigType = { string>; harness?: | /** - * @enum native, codex, claude-code + * Required when saving a Loop automation. Currently only Codex is supported. + * + * @enum codex, native, claude-code */ - ("native" | "codex" | "claude-code") + ("codex" | "native" | "claude-code") | undefined; model?: /** + * Required when saving a Loop automation. + * * @minLength 1 */ string | undefined; @@ -5003,6 +5011,29 @@ export type WindowedAutomationConfigType = { */ string | undefined; } + | { + /** + * The type of action to take + * + * @enum pagerduty + */ + type: "pagerduty"; + /** + * The data-plane secret containing the PagerDuty routing key + */ + routing_key_secret_name: string; + /** + * @enum critical, error, warning, info + */ + severity: "critical" | "error" | "warning" | "info"; + formatting_prompt?: /** + * Instructions for Loop to format content sent to this destination + * + * @minLength 1 + * @maxLength 10000 + */ + string | undefined; + } >; }; export type TopicAutomationFacetModelType = @@ -5372,6 +5403,29 @@ export type ProjectAutomationType = { * @maxLength 10000 */ string | undefined; + } + | { + /** + * The type of action to take + * + * @enum pagerduty + */ + type: "pagerduty"; + /** + * The data-plane secret containing the PagerDuty routing key + */ + routing_key_secret_name: string; + /** + * @enum critical, error, warning, info + */ + severity: "critical" | "error" | "warning" | "info"; + formatting_prompt?: /** + * Instructions for Loop to format content sent to this destination + * + * @minLength 1 + * @maxLength 10000 + */ + string | undefined; }; } | { @@ -5615,6 +5669,29 @@ export type ProjectAutomationType = { * @maxLength 10000 */ string | undefined; + } + | { + /** + * The type of action to take + * + * @enum pagerduty + */ + type: "pagerduty"; + /** + * The data-plane secret containing the PagerDuty routing key + */ + routing_key_secret_name: string; + /** + * @enum critical, error, warning, info + */ + severity: "critical" | "error" | "warning" | "info"; + formatting_prompt?: /** + * Instructions for Loop to format content sent to this destination + * + * @minLength 1 + * @maxLength 10000 + */ + string | undefined; }; } | WindowedAutomationConfigType diff --git a/js/util/generated_types.ts b/js/util/generated_types.ts index 2a64a6f10..9fc957814 100644 --- a/js/util/generated_types.ts +++ b/js/util/generated_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash 7351b6dec8a2d13b) -- do not modify +// Auto-generated file (content hash 15ee517da0d5a72c) -- do not modify import { z } from "zod/v3"; @@ -752,7 +752,12 @@ export const EnvVar = z.object({ preview_secret: z.union([z.string(), z.null()]).optional(), secret_type: z.union([z.string(), z.null()]).optional(), secret_category: z - .enum(["env_var", "ai_provider", "sandbox_provider"]) + .enum([ + "env_var", + "ai_provider", + "sandbox_provider", + "automation_integration", + ]) .optional() .default("env_var"), }); @@ -1742,7 +1747,7 @@ export const WindowedAutomationConfig = z.object({ include_trigger_input: z.boolean().optional().default(false), agent_slug: z.string().min(1), auto_approve_tools: z.array(z.string().min(1)).optional().default([]), - harness: z.enum(["native", "codex", "claude-code"]).optional(), + harness: z.enum(["codex", "native", "claude-code"]).optional(), model: z.string().min(1).optional(), endpoint_name: z.string().min(1).optional(), reasoning_effort: z @@ -1765,6 +1770,12 @@ export const WindowedAutomationConfig = z.object({ message_template: z.string().optional(), formatting_prompt: z.string().min(1).max(10000).optional(), }), + z.object({ + type: z.literal("pagerduty"), + routing_key_secret_name: z.string().uuid(), + severity: z.enum(["critical", "error", "warning", "info"]), + formatting_prompt: z.string().min(1).max(10000).optional(), + }), ]), ) .max(20) @@ -1867,6 +1878,12 @@ export const ProjectAutomation = z.object({ message_template: z.string().optional(), formatting_prompt: z.string().min(1).max(10000).optional(), }), + z.object({ + type: z.literal("pagerduty"), + routing_key_secret_name: z.string().uuid(), + severity: z.enum(["critical", "error", "warning", "info"]), + formatting_prompt: z.string().min(1).max(10000).optional(), + }), ]), }), z.object({ @@ -1931,6 +1948,12 @@ export const ProjectAutomation = z.object({ message_template: z.string().optional(), formatting_prompt: z.string().min(1).max(10000).optional(), }), + z.object({ + type: z.literal("pagerduty"), + routing_key_secret_name: z.string().uuid(), + severity: z.enum(["critical", "error", "warning", "info"]), + formatting_prompt: z.string().min(1).max(10000).optional(), + }), ]), }), WindowedAutomationConfig,