Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 96 additions & 3 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down
87 changes: 82 additions & 5 deletions js/src/generated_plain_types.ts
Original file line number Diff line number Diff line change
@@ -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 =
/**
Expand Down Expand Up @@ -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 =
/**
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 =
Expand Down Expand Up @@ -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;
};
}
| {
Expand Down Expand Up @@ -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
Expand Down
29 changes: 26 additions & 3 deletions js/src/generated_types.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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"),
});
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand Down
Loading
Loading