import * as z from "zod"; //#region src/schema.d.ts /** * Default permission mode when starting an agent session. * * Agent Permission Policy modes: * * - `standard`: Prompt for unsafe operations (default) * - `autonomous`: Auto-approve unless deny/ask rules match * - `restricted`: Prompt for all operations * - `readonly`: Only allow read-only tools * * Claude Code compatible modes (accepted for zero-translation migration): * * - `plan`: Plan-only mode (maps to `restricted`) * - `dontAsk`: Auto-approve (maps to `autonomous`) * - `acceptEdits`: Accept edits without prompt (maps to `standard`) * - `bypassPermissions`: Bypass all permission checks (maps to `autonomous`) * - `default`: Agent default behaviour (maps to `standard`) * * **Security note**: `autonomous`, `bypassPermissions`, and `dontAsk` are only trusted from * personal (`permissions.local.json`) or managed (enterprise) sources — NOT from committed * `permissions.json`. */ declare const PermissionMode: z.ZodEnum<{ default: "default"; readonly: "readonly"; acceptEdits: "acceptEdits"; auto: "auto"; bypassPermissions: "bypassPermissions"; dontAsk: "dontAsk"; plan: "plan"; standard: "standard"; autonomous: "autonomous"; restricted: "restricted"; }>; /** * A permission rule string. * * Syntax (compatible with Claude Code's permission rule format): * * | Pattern | Matches | * | ------------------------------ | ----------------------------------- | * | `Tool` | All invocations of the tool | * | `Tool(exact command)` | Exactly that command | * | `Tool(prefix:*)` | Commands starting with `prefix ` | * | `Tool(*suffix)` | Commands ending with ` suffix` | * | `Tool(pattern * middle *)` | Commands containing both substrings | * | `Read(./path)` | File reads at that relative path | * | `Read(./path/**)` | File reads under that path (glob) | * | `WebFetch(domain:example.com)` | Fetches to that domain | * | `mcp__server` | All tools from an MCP server | * | `mcp__server__tool` | A specific MCP tool | */ declare const PermissionRule: z.ZodString; declare const PermissionTiers: z.ZodObject<{ allow: z.ZodOptional>; deny: z.ZodOptional>; ask: z.ZodOptional>; additionalDirectories: z.ZodOptional>; defaultMode: z.ZodOptional>; }, z.core.$strict>; declare const RuleCondition: z.ZodObject<{ cwd: z.ZodOptional; branch: z.ZodOptional; env: z.ZodOptional>; actor: z.ZodOptional; role: z.ZodOptional; remote: z.ZodOptional; predicate: z.ZodOptional>>; }, z.core.$strict>; declare const Rule: z.ZodObject<{ tool: z.ZodString; pattern: z.ZodOptional; tier: z.ZodEnum<{ allow: "allow"; deny: "deny"; ask: "ask"; }>; approvers: z.ZodOptional>; actors: z.ZodOptional>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>>; hidden: z.ZodOptional>; when: z.ZodOptional; branch: z.ZodOptional; env: z.ZodOptional>; actor: z.ZodOptional; role: z.ZodOptional; remote: z.ZodOptional; predicate: z.ZodOptional>>; }, z.core.$strict>>; }, z.core.$strict>; declare const Delegation: z.ZodObject<{ maxDepth: z.ZodOptional; nonDelegable: z.ZodOptional>; bubbleUp: z.ZodOptional; agents: z.ZodOptional>; deny: z.ZodOptional>; ask: z.ZodOptional>; additionalDirectories: z.ZodOptional>; defaultMode: z.ZodOptional>; }, z.core.$strict>>>; }, z.core.$strip>; /** * Sandbox mode — OS-level isolation for agent tool execution. * * When set, the agent harness should enforce filesystem and network boundaries at the OS level * (sandbox, container, namespace, etc). This is orthogonal to permission rules — rules control what * the agent _asks_ to do; sandbox controls what the OS _allows_ it to do. * * Maps to Codex's `sandbox_mode` field. */ declare const SandboxMode: z.ZodEnum<{ readonly: "readonly"; "workspace-write": "workspace-write"; "full-access": "full-access"; }>; declare const Sandbox: z.ZodObject<{ mode: z.ZodOptional>; writableRoots: z.ZodOptional>; networkAccess: z.ZodOptional; }, z.core.$strict>; /** * Named permission profiles that can be selected at session start. * * Maps to Codex's `permissions.` + `default_permissions` fields. Agents that don't support * named profiles should use the profile specified by `activeProfile` (or `"default"` if unset). */ /** What a role may do: the permission tiers that apply to actors holding it. */ declare const RoleTiers: z.ZodObject<{ allow: z.ZodOptional>; deny: z.ZodOptional>; ask: z.ZodOptional>; }, z.core.$strict>; /** A profile: permission tiers, optionally extending other profiles by name. */ declare const ProfileTiers: z.ZodObject<{ allow: z.ZodOptional>>; deny: z.ZodOptional>>; ask: z.ZodOptional>>; additionalDirectories: z.ZodOptional>>; defaultMode: z.ZodOptional>>; extends: z.ZodOptional>; }, z.core.$strict>; declare const Profiles: z.ZodRecord>>; deny: z.ZodOptional>>; ask: z.ZodOptional>>; additionalDirectories: z.ZodOptional>>; defaultMode: z.ZodOptional>>; extends: z.ZodOptional>; }, z.core.$strict>>; declare const Network: z.ZodObject<{ enabled: z.ZodOptional; domains: z.ZodOptional>>; }, z.core.$strict>; declare const AgentPermissionPolicy: z.ZodObject<{ $schema: z.ZodOptional; defaultMode: z.ZodOptional>; ceiling: z.ZodOptional; activeProfile: z.ZodOptional; permissions: z.ZodOptional>; deny: z.ZodOptional>; ask: z.ZodOptional>; additionalDirectories: z.ZodOptional>; defaultMode: z.ZodOptional>; }, z.core.$strict>>; rules: z.ZodOptional; tier: z.ZodEnum<{ allow: "allow"; deny: "deny"; ask: "ask"; }>; approvers: z.ZodOptional>; actors: z.ZodOptional>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>>; hidden: z.ZodOptional>; when: z.ZodOptional; branch: z.ZodOptional; env: z.ZodOptional>; actor: z.ZodOptional; role: z.ZodOptional; remote: z.ZodOptional; predicate: z.ZodOptional>>; }, z.core.$strict>>; }, z.core.$strict>>>; roles: z.ZodOptional>; deny: z.ZodOptional>; ask: z.ZodOptional>; }, z.core.$strict>>>; profiles: z.ZodOptional>>; deny: z.ZodOptional>>; ask: z.ZodOptional>>; additionalDirectories: z.ZodOptional>>; defaultMode: z.ZodOptional>>; extends: z.ZodOptional>; }, z.core.$strict>>>; delegation: z.ZodOptional; nonDelegable: z.ZodOptional>; bubbleUp: z.ZodOptional; agents: z.ZodOptional>; deny: z.ZodOptional>; ask: z.ZodOptional>; additionalDirectories: z.ZodOptional>; defaultMode: z.ZodOptional>; }, z.core.$strict>>>; }, z.core.$strip>>; sandbox: z.ZodOptional>; writableRoots: z.ZodOptional>; networkAccess: z.ZodOptional; }, z.core.$strict>>; network: z.ZodOptional; domains: z.ZodOptional>>; }, z.core.$strict>>; env: z.ZodOptional>; with: z.ZodOptional>>; without: z.ZodOptional>>; up: z.ZodOptional, z.ZodNumber]>>; sync: z.ZodOptional, z.ZodLiteral]>>; backup: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strict>; type AgentPermissionPolicy = z.infer; type PermissionTiers = z.infer; type Rule = z.infer; type RuleCondition = z.infer; type Delegation = z.infer; type PermissionMode = z.infer; type SandboxMode = z.infer; type Sandbox = z.infer; type Profiles = z.infer; type Network = z.infer; //#endregion export { PermissionRule as a, Profiles as c, RuleCondition as d, Sandbox as f, PermissionMode as i, RoleTiers as l, Delegation as n, PermissionTiers as o, SandboxMode as p, Network as r, ProfileTiers as s, AgentPermissionPolicy as t, Rule as u }; //# sourceMappingURL=schema-BXTTXvJl.d.cts.map