@otto-code/protocol 0.8.10 → 0.8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/agent-labels.d.ts +3 -0
  2. package/dist/agent-labels.js +10 -0
  3. package/dist/agent-personalities.d.ts +4 -3
  4. package/dist/agent-personalities.js +13 -20
  5. package/dist/agent-queue.d.ts +87 -0
  6. package/dist/agent-queue.js +106 -0
  7. package/dist/agent-types.d.ts +24 -4
  8. package/dist/binary-frames/terminal.d.ts +4 -0
  9. package/dist/binary-frames/terminal.js +1 -0
  10. package/dist/brain.d.ts +2412 -0
  11. package/dist/brain.js +1100 -0
  12. package/dist/chat/rpc-schemas.js +1 -0
  13. package/dist/chat/types.js +1 -0
  14. package/dist/client-capabilities.d.ts +3 -0
  15. package/dist/client-capabilities.js +14 -0
  16. package/dist/code-intelligence.d.ts +917 -0
  17. package/dist/code-intelligence.js +699 -0
  18. package/dist/communications.d.ts +1106 -0
  19. package/dist/communications.js +384 -0
  20. package/dist/context.d.ts +787 -0
  21. package/dist/context.js +295 -0
  22. package/dist/daemon-config.d.ts +383 -0
  23. package/dist/daemon-config.js +401 -0
  24. package/dist/file-operations.d.ts +380 -0
  25. package/dist/file-operations.js +282 -0
  26. package/dist/generated/validation/ws-outbound.aot.js +67260 -57392
  27. package/dist/git-hosting.d.ts +117 -0
  28. package/dist/git-hosting.js +109 -0
  29. package/dist/git-operations.d.ts +255 -0
  30. package/dist/git-operations.js +221 -0
  31. package/dist/integration-authorization.d.ts +195 -0
  32. package/dist/integration-authorization.js +125 -0
  33. package/dist/kanban.d.ts +341 -0
  34. package/dist/kanban.js +273 -0
  35. package/dist/loop/rpc-schemas.d.ts +6 -6
  36. package/dist/loop/rpc-schemas.js +1 -0
  37. package/dist/meetings.d.ts +95 -0
  38. package/dist/meetings.js +57 -0
  39. package/dist/messages.d.ts +11175 -11039
  40. package/dist/messages.js +4756 -8700
  41. package/dist/orchestration.d.ts +726 -0
  42. package/dist/orchestration.js +232 -0
  43. package/dist/personality-schemas.d.ts +221 -0
  44. package/dist/personality-schemas.js +340 -0
  45. package/dist/preview.d.ts +140 -0
  46. package/dist/preview.js +98 -0
  47. package/dist/project-knowledge.d.ts +740 -0
  48. package/dist/project-knowledge.js +229 -0
  49. package/dist/project-links.d.ts +102 -0
  50. package/dist/project-links.js +62 -0
  51. package/dist/provider-config.d.ts +87 -2
  52. package/dist/provider-config.js +110 -0
  53. package/dist/provider-manifest.js +7 -0
  54. package/dist/provider-snapshot-codec.d.ts +18 -0
  55. package/dist/provider-snapshot-codec.js +71 -0
  56. package/dist/refine.d.ts +93 -0
  57. package/dist/refine.js +78 -0
  58. package/dist/schedule/rpc-schemas.d.ts +55 -111
  59. package/dist/schedule/types.d.ts +16 -37
  60. package/dist/schedule/types.js +1 -11
  61. package/dist/search/text-match.d.ts +55 -0
  62. package/dist/search/text-match.js +262 -0
  63. package/dist/speech.d.ts +180 -0
  64. package/dist/speech.js +177 -0
  65. package/dist/storage.d.ts +79 -0
  66. package/dist/storage.js +107 -0
  67. package/dist/suggested-tasks.d.ts +106 -0
  68. package/dist/suggested-tasks.js +81 -0
  69. package/dist/terminal-compatibility.d.ts +55 -0
  70. package/dist/terminal-compatibility.js +35 -0
  71. package/dist/terminal-input-mode.d.ts +4 -0
  72. package/dist/terminal-input-mode.js +35 -6
  73. package/dist/terminal-key-input.js +15 -6
  74. package/dist/terminal-profiles.d.ts +35 -0
  75. package/dist/terminal-profiles.js +246 -4
  76. package/dist/tool-call-display.d.ts +2 -2
  77. package/dist/tool-call-display.js +6 -6
  78. package/dist/usage-stats.d.ts +255 -0
  79. package/dist/usage-stats.js +162 -0
  80. package/dist/validation/ws-outbound-schema-metadata.d.ts +1906 -266
  81. package/dist/worktree-ops.d.ts +81 -0
  82. package/dist/worktree-ops.js +88 -0
  83. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import type { AgentModelDefinition, AgentSelectOption, ProviderSnapshotEntry } from "./agent-types.js";
2
+ export interface CompactProviderSnapshotModel extends Omit<AgentModelDefinition, "provider" | "thinkingOptions"> {
3
+ thinkingSet?: number;
4
+ }
5
+ export interface CompactProviderSnapshotEntry extends Omit<ProviderSnapshotEntry, "models"> {
6
+ models?: CompactProviderSnapshotModel[];
7
+ }
8
+ export interface ProviderSnapshotThinkingSet {
9
+ options: AgentSelectOption[];
10
+ defaultOptionId?: string;
11
+ }
12
+ export interface CompactProviderSnapshot {
13
+ entries: CompactProviderSnapshotEntry[];
14
+ thinkingSets: ProviderSnapshotThinkingSet[];
15
+ }
16
+ export declare function compactProviderSnapshot(entries: ProviderSnapshotEntry[]): CompactProviderSnapshot;
17
+ export declare function expandProviderSnapshot(snapshot: CompactProviderSnapshot): ProviderSnapshotEntry[];
18
+ //# sourceMappingURL=provider-snapshot-codec.d.ts.map
@@ -0,0 +1,71 @@
1
+ function thinkingSetKey(set) {
2
+ return JSON.stringify(set);
3
+ }
4
+ function compactModel({ provider: _provider, thinkingOptions, defaultThinkingOptionId, ...modelFields }, thinkingSets, thinkingSetIndexes) {
5
+ const compact = modelFields;
6
+ if (thinkingOptions === undefined) {
7
+ if (defaultThinkingOptionId !== undefined) {
8
+ compact.defaultThinkingOptionId = defaultThinkingOptionId;
9
+ }
10
+ return compact;
11
+ }
12
+ const thinkingSet = {
13
+ options: thinkingOptions,
14
+ ...(defaultThinkingOptionId !== undefined ? { defaultOptionId: defaultThinkingOptionId } : {}),
15
+ };
16
+ const key = thinkingSetKey(thinkingSet);
17
+ const existingIndex = thinkingSetIndexes.get(key);
18
+ if (existingIndex !== undefined) {
19
+ compact.thinkingSet = existingIndex;
20
+ return compact;
21
+ }
22
+ const index = thinkingSets.length;
23
+ thinkingSets.push(thinkingSet);
24
+ thinkingSetIndexes.set(key, index);
25
+ compact.thinkingSet = index;
26
+ return compact;
27
+ }
28
+ export function compactProviderSnapshot(entries) {
29
+ const thinkingSets = [];
30
+ const thinkingSetIndexes = new Map();
31
+ const compactEntries = entries.map((entry) => {
32
+ if (entry.models === undefined) {
33
+ return entry;
34
+ }
35
+ return {
36
+ ...entry,
37
+ models: entry.models.map((model) => compactModel(model, thinkingSets, thinkingSetIndexes)),
38
+ };
39
+ });
40
+ return { entries: compactEntries, thinkingSets };
41
+ }
42
+ function expandModel(provider, model, thinkingSets) {
43
+ const { thinkingSet: thinkingSetIndex, ...modelFields } = model;
44
+ if (thinkingSetIndex === undefined) {
45
+ return { provider, ...modelFields };
46
+ }
47
+ const thinkingSet = thinkingSets[thinkingSetIndex];
48
+ if (!thinkingSet) {
49
+ throw new RangeError(`Provider snapshot references missing thinking set ${thinkingSetIndex}`);
50
+ }
51
+ return {
52
+ provider,
53
+ ...modelFields,
54
+ thinkingOptions: thinkingSet.options,
55
+ ...(thinkingSet.defaultOptionId !== undefined
56
+ ? { defaultThinkingOptionId: thinkingSet.defaultOptionId }
57
+ : {}),
58
+ };
59
+ }
60
+ export function expandProviderSnapshot(snapshot) {
61
+ return snapshot.entries.map((entry) => {
62
+ const { models, ...entryFields } = entry;
63
+ if (models === undefined)
64
+ return entryFields;
65
+ return {
66
+ ...entryFields,
67
+ models: models.map((model) => expandModel(entryFields.provider, model, snapshot.thinkingSets)),
68
+ };
69
+ });
70
+ }
71
+ //# sourceMappingURL=provider-snapshot-codec.js.map
@@ -0,0 +1,93 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Otto Refine wire schemas: the file.refine.* RPCs (see docs/refine.md). Fork-only capability, so it owns its schemas; messages.ts re-exports them.
4
+ */
5
+ /**
6
+ * Refine - an AI rewrite the user reviews as a diff before anything is written.
7
+ * This RPC only *proposes*: it reads nothing from disk and writes nothing. The
8
+ * accepted result goes back through `file.write.request` like any other save,
9
+ * so the conditional-write precondition still guards it.
10
+ *
11
+ * `base` travels from the client rather than being re-read on the daemon, so
12
+ * the model rewrites exactly the document the user is looking at and the diff
13
+ * they review is the diff of what they saw.
14
+ */
15
+ /**
16
+ * One document in a refine request. `id` is opaque and client-minted; the model
17
+ * never sees it and the daemon only echoes it back. That is deliberate: the
18
+ * client maps id -> absolute path itself, so a model that mangles or invents a
19
+ * filename cannot misroute a write. `label` is the only path-ish thing the
20
+ * model sees, and it exists purely so the prompt can say which file is which.
21
+ */
22
+ export declare const FileRefineDocumentSchema: z.ZodObject<{
23
+ id: z.ZodString;
24
+ label: z.ZodString;
25
+ content: z.ZodString;
26
+ }, z.core.$strip>;
27
+ /** A file the model may read for context but must never rewrite. */
28
+ export declare const FileRefineReferenceSchema: z.ZodObject<{
29
+ label: z.ZodString;
30
+ content: z.ZodString;
31
+ }, z.core.$strip>;
32
+ export declare const FileRefineRequestSchema: z.ZodObject<{
33
+ type: z.ZodLiteral<"file.refine.request">;
34
+ cwd: z.ZodString;
35
+ documents: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodString;
37
+ label: z.ZodString;
38
+ content: z.ZodString;
39
+ }, z.core.$strip>>;
40
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
41
+ label: z.ZodString;
42
+ content: z.ZodString;
43
+ }, z.core.$strip>>>;
44
+ instruction: z.ZodString;
45
+ requestId: z.ZodString;
46
+ }, z.core.$strip>;
47
+ /**
48
+ * A refine proposal: the whole rewritten text of each document the model chose
49
+ * to change, keyed by the id the request minted. Documents it left alone are
50
+ * simply absent, and ids the request never sent are dropped by the daemon.
51
+ *
52
+ * The client diffs each one against the base it pinned, so a truncated or
53
+ * chatty answer shows up as a diff the user can refuse rather than as a
54
+ * corrupted file.
55
+ */
56
+ export declare const FileRefineFileSchema: z.ZodObject<{
57
+ id: z.ZodString;
58
+ content: z.ZodString;
59
+ }, z.core.$strip>;
60
+ export declare const FileRefineResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
+ status: z.ZodLiteral<"ok">;
62
+ files: z.ZodArray<z.ZodObject<{
63
+ id: z.ZodString;
64
+ content: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ status: z.ZodLiteral<"error">;
68
+ message: z.ZodString;
69
+ }, z.core.$strip>], "status">;
70
+ export declare const FileRefineResponseSchema: z.ZodObject<{
71
+ type: z.ZodLiteral<"file.refine.response">;
72
+ payload: z.ZodObject<{
73
+ cwd: z.ZodString;
74
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
+ status: z.ZodLiteral<"ok">;
76
+ files: z.ZodArray<z.ZodObject<{
77
+ id: z.ZodString;
78
+ content: z.ZodString;
79
+ }, z.core.$strip>>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ status: z.ZodLiteral<"error">;
82
+ message: z.ZodString;
83
+ }, z.core.$strip>], "status">;
84
+ requestId: z.ZodString;
85
+ }, z.core.$strip>;
86
+ }, z.core.$strip>;
87
+ export type FileRefineRequest = z.infer<typeof FileRefineRequestSchema>;
88
+ export type FileRefineDocument = z.infer<typeof FileRefineDocumentSchema>;
89
+ export type FileRefineReference = z.infer<typeof FileRefineReferenceSchema>;
90
+ export type FileRefineFile = z.infer<typeof FileRefineFileSchema>;
91
+ export type FileRefineResponse = z.infer<typeof FileRefineResponseSchema>;
92
+ export type FileRefineResult = z.infer<typeof FileRefineResultSchema>;
93
+ //# sourceMappingURL=refine.d.ts.map
package/dist/refine.js ADDED
@@ -0,0 +1,78 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Otto Refine wire schemas: the file.refine.* RPCs (see docs/refine.md). Fork-only capability, so it owns its schemas; messages.ts re-exports them.
4
+ */
5
+ /**
6
+ * Refine - an AI rewrite the user reviews as a diff before anything is written.
7
+ * This RPC only *proposes*: it reads nothing from disk and writes nothing. The
8
+ * accepted result goes back through `file.write.request` like any other save,
9
+ * so the conditional-write precondition still guards it.
10
+ *
11
+ * `base` travels from the client rather than being re-read on the daemon, so
12
+ * the model rewrites exactly the document the user is looking at and the diff
13
+ * they review is the diff of what they saw.
14
+ */
15
+ /**
16
+ * One document in a refine request. `id` is opaque and client-minted; the model
17
+ * never sees it and the daemon only echoes it back. That is deliberate: the
18
+ * client maps id -> absolute path itself, so a model that mangles or invents a
19
+ * filename cannot misroute a write. `label` is the only path-ish thing the
20
+ * model sees, and it exists purely so the prompt can say which file is which.
21
+ */
22
+ export const FileRefineDocumentSchema = z.object({
23
+ id: z.string().min(1),
24
+ label: z.string(),
25
+ content: z.string(),
26
+ });
27
+ /** A file the model may read for context but must never rewrite. */
28
+ export const FileRefineReferenceSchema = z.object({
29
+ label: z.string(),
30
+ content: z.string(),
31
+ });
32
+ export const FileRefineRequestSchema = z.object({
33
+ type: z.literal("file.refine.request"),
34
+ // Provider resolution only - which workspace's mini-task chain runs this.
35
+ // Documents are NOT read from disk here; they travel on the wire.
36
+ cwd: z.string(),
37
+ // What the model may rewrite. The blast radius of the whole request: a file
38
+ // absent from this list cannot be changed, whatever the model returns.
39
+ documents: z.array(FileRefineDocumentSchema).min(1),
40
+ // What it may read to understand the first list. Optional so an old client
41
+ // that only sends documents still parses.
42
+ references: z.array(FileRefineReferenceSchema).optional(),
43
+ // The user's plain-language instruction, possibly seeded from a preset.
44
+ instruction: z.string(),
45
+ requestId: z.string(),
46
+ });
47
+ /**
48
+ * A refine proposal: the whole rewritten text of each document the model chose
49
+ * to change, keyed by the id the request minted. Documents it left alone are
50
+ * simply absent, and ids the request never sent are dropped by the daemon.
51
+ *
52
+ * The client diffs each one against the base it pinned, so a truncated or
53
+ * chatty answer shows up as a diff the user can refuse rather than as a
54
+ * corrupted file.
55
+ */
56
+ export const FileRefineFileSchema = z.object({
57
+ id: z.string().min(1),
58
+ content: z.string(),
59
+ });
60
+ export const FileRefineResultSchema = z.discriminatedUnion("status", [
61
+ z.object({
62
+ status: z.literal("ok"),
63
+ files: z.array(FileRefineFileSchema),
64
+ }),
65
+ z.object({
66
+ status: z.literal("error"),
67
+ message: z.string(),
68
+ }),
69
+ ]);
70
+ export const FileRefineResponseSchema = z.object({
71
+ type: z.literal("file.refine.response"),
72
+ payload: z.object({
73
+ cwd: z.string(),
74
+ result: FileRefineResultSchema,
75
+ requestId: z.string(),
76
+ }),
77
+ });
78
+ //# sourceMappingURL=refine.js.map
@@ -33,15 +33,8 @@ export declare const ScheduleCreateRequestSchema: z.ZodObject<{
33
33
  local: "local";
34
34
  }>>;
35
35
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- approvalPolicy: z.ZodOptional<z.ZodString>;
37
- sandboxMode: z.ZodOptional<z.ZodString>;
38
- networkAccess: z.ZodOptional<z.ZodBoolean>;
39
- webSearch: z.ZodOptional<z.ZodBoolean>;
36
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
40
37
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
41
- extra: z.ZodOptional<z.ZodObject<{
42
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
43
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
44
- }, z.core.$strip>>;
45
38
  systemPrompt: z.ZodOptional<z.ZodString>;
46
39
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
47
40
  }, z.core.$strip>;
@@ -122,22 +115,14 @@ export declare const ScheduleCreateResponseSchema: z.ZodObject<{
122
115
  prompt: z.ZodString;
123
116
  name: z.ZodNullable<z.ZodString>;
124
117
  id: z.ZodString;
118
+ createdAt: z.ZodString;
119
+ updatedAt: z.ZodString;
125
120
  status: z.ZodEnum<{
126
- paused: "paused";
127
121
  completed: "completed";
128
122
  active: "active";
123
+ paused: "paused";
129
124
  }>;
130
- createdAt: z.ZodString;
131
- updatedAt: z.ZodString;
132
125
  expiresAt: z.ZodNullable<z.ZodString>;
133
- cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
134
- type: z.ZodLiteral<"every">;
135
- everyMs: z.ZodNumber;
136
- }, z.core.$strip>, z.ZodObject<{
137
- type: z.ZodLiteral<"cron">;
138
- expression: z.ZodString;
139
- timezone: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strip>], "type">;
141
126
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
142
127
  type: z.ZodLiteral<"agent">;
143
128
  agentId: z.ZodGUID;
@@ -156,19 +141,20 @@ export declare const ScheduleCreateResponseSchema: z.ZodObject<{
156
141
  local: "local";
157
142
  }>>;
158
143
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- approvalPolicy: z.ZodOptional<z.ZodString>;
160
- sandboxMode: z.ZodOptional<z.ZodString>;
161
- networkAccess: z.ZodOptional<z.ZodBoolean>;
162
- webSearch: z.ZodOptional<z.ZodBoolean>;
144
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
163
145
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
164
- extra: z.ZodOptional<z.ZodObject<{
165
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
166
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
167
- }, z.core.$strip>>;
168
146
  systemPrompt: z.ZodOptional<z.ZodString>;
169
147
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
170
148
  }, z.core.$strip>;
171
149
  }, z.core.$strip>], "type">;
150
+ cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
151
+ type: z.ZodLiteral<"every">;
152
+ everyMs: z.ZodNumber;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"cron">;
155
+ expression: z.ZodString;
156
+ timezone: z.ZodOptional<z.ZodString>;
157
+ }, z.core.$strip>], "type">;
172
158
  nextRunAt: z.ZodNullable<z.ZodString>;
173
159
  lastRunAt: z.ZodNullable<z.ZodString>;
174
160
  lastRunStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -193,22 +179,14 @@ export declare const ScheduleListResponseSchema: z.ZodObject<{
193
179
  prompt: z.ZodString;
194
180
  name: z.ZodNullable<z.ZodString>;
195
181
  id: z.ZodString;
182
+ createdAt: z.ZodString;
183
+ updatedAt: z.ZodString;
196
184
  status: z.ZodEnum<{
197
- paused: "paused";
198
185
  completed: "completed";
199
186
  active: "active";
187
+ paused: "paused";
200
188
  }>;
201
- createdAt: z.ZodString;
202
- updatedAt: z.ZodString;
203
189
  expiresAt: z.ZodNullable<z.ZodString>;
204
- cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
205
- type: z.ZodLiteral<"every">;
206
- everyMs: z.ZodNumber;
207
- }, z.core.$strip>, z.ZodObject<{
208
- type: z.ZodLiteral<"cron">;
209
- expression: z.ZodString;
210
- timezone: z.ZodOptional<z.ZodString>;
211
- }, z.core.$strip>], "type">;
212
190
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
213
191
  type: z.ZodLiteral<"agent">;
214
192
  agentId: z.ZodGUID;
@@ -227,19 +205,20 @@ export declare const ScheduleListResponseSchema: z.ZodObject<{
227
205
  local: "local";
228
206
  }>>;
229
207
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
- approvalPolicy: z.ZodOptional<z.ZodString>;
231
- sandboxMode: z.ZodOptional<z.ZodString>;
232
- networkAccess: z.ZodOptional<z.ZodBoolean>;
233
- webSearch: z.ZodOptional<z.ZodBoolean>;
208
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
234
209
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
235
- extra: z.ZodOptional<z.ZodObject<{
236
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
237
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
238
- }, z.core.$strip>>;
239
210
  systemPrompt: z.ZodOptional<z.ZodString>;
240
211
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
212
  }, z.core.$strip>;
242
213
  }, z.core.$strip>], "type">;
214
+ cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
215
+ type: z.ZodLiteral<"every">;
216
+ everyMs: z.ZodNumber;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ type: z.ZodLiteral<"cron">;
219
+ expression: z.ZodString;
220
+ timezone: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strip>], "type">;
243
222
  nextRunAt: z.ZodNullable<z.ZodString>;
244
223
  lastRunAt: z.ZodNullable<z.ZodString>;
245
224
  lastRunStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -290,23 +269,16 @@ export declare const ScheduleInspectResponseSchema: z.ZodObject<{
290
269
  local: "local";
291
270
  }>>;
292
271
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
- approvalPolicy: z.ZodOptional<z.ZodString>;
294
- sandboxMode: z.ZodOptional<z.ZodString>;
295
- networkAccess: z.ZodOptional<z.ZodBoolean>;
296
- webSearch: z.ZodOptional<z.ZodBoolean>;
272
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
297
273
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
298
- extra: z.ZodOptional<z.ZodObject<{
299
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
300
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
301
- }, z.core.$strip>>;
302
274
  systemPrompt: z.ZodOptional<z.ZodString>;
303
275
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
304
276
  }, z.core.$strip>;
305
277
  }, z.core.$strip>], "type">;
306
278
  status: z.ZodEnum<{
307
- paused: "paused";
308
279
  completed: "completed";
309
280
  active: "active";
281
+ paused: "paused";
310
282
  }>;
311
283
  createdAt: z.ZodString;
312
284
  updatedAt: z.ZodString;
@@ -378,22 +350,14 @@ export declare const SchedulePauseResponseSchema: z.ZodObject<{
378
350
  prompt: z.ZodString;
379
351
  name: z.ZodNullable<z.ZodString>;
380
352
  id: z.ZodString;
353
+ createdAt: z.ZodString;
354
+ updatedAt: z.ZodString;
381
355
  status: z.ZodEnum<{
382
- paused: "paused";
383
356
  completed: "completed";
384
357
  active: "active";
358
+ paused: "paused";
385
359
  }>;
386
- createdAt: z.ZodString;
387
- updatedAt: z.ZodString;
388
360
  expiresAt: z.ZodNullable<z.ZodString>;
389
- cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
- type: z.ZodLiteral<"every">;
391
- everyMs: z.ZodNumber;
392
- }, z.core.$strip>, z.ZodObject<{
393
- type: z.ZodLiteral<"cron">;
394
- expression: z.ZodString;
395
- timezone: z.ZodOptional<z.ZodString>;
396
- }, z.core.$strip>], "type">;
397
361
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
398
362
  type: z.ZodLiteral<"agent">;
399
363
  agentId: z.ZodGUID;
@@ -412,19 +376,20 @@ export declare const SchedulePauseResponseSchema: z.ZodObject<{
412
376
  local: "local";
413
377
  }>>;
414
378
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
- approvalPolicy: z.ZodOptional<z.ZodString>;
416
- sandboxMode: z.ZodOptional<z.ZodString>;
417
- networkAccess: z.ZodOptional<z.ZodBoolean>;
418
- webSearch: z.ZodOptional<z.ZodBoolean>;
379
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
419
380
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
- extra: z.ZodOptional<z.ZodObject<{
421
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
422
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
423
- }, z.core.$strip>>;
424
381
  systemPrompt: z.ZodOptional<z.ZodString>;
425
382
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
426
383
  }, z.core.$strip>;
427
384
  }, z.core.$strip>], "type">;
385
+ cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
386
+ type: z.ZodLiteral<"every">;
387
+ everyMs: z.ZodNumber;
388
+ }, z.core.$strip>, z.ZodObject<{
389
+ type: z.ZodLiteral<"cron">;
390
+ expression: z.ZodString;
391
+ timezone: z.ZodOptional<z.ZodString>;
392
+ }, z.core.$strip>], "type">;
428
393
  nextRunAt: z.ZodNullable<z.ZodString>;
429
394
  lastRunAt: z.ZodNullable<z.ZodString>;
430
395
  lastRunStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -449,22 +414,14 @@ export declare const ScheduleResumeResponseSchema: z.ZodObject<{
449
414
  prompt: z.ZodString;
450
415
  name: z.ZodNullable<z.ZodString>;
451
416
  id: z.ZodString;
417
+ createdAt: z.ZodString;
418
+ updatedAt: z.ZodString;
452
419
  status: z.ZodEnum<{
453
- paused: "paused";
454
420
  completed: "completed";
455
421
  active: "active";
422
+ paused: "paused";
456
423
  }>;
457
- createdAt: z.ZodString;
458
- updatedAt: z.ZodString;
459
424
  expiresAt: z.ZodNullable<z.ZodString>;
460
- cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
461
- type: z.ZodLiteral<"every">;
462
- everyMs: z.ZodNumber;
463
- }, z.core.$strip>, z.ZodObject<{
464
- type: z.ZodLiteral<"cron">;
465
- expression: z.ZodString;
466
- timezone: z.ZodOptional<z.ZodString>;
467
- }, z.core.$strip>], "type">;
468
425
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
469
426
  type: z.ZodLiteral<"agent">;
470
427
  agentId: z.ZodGUID;
@@ -483,19 +440,20 @@ export declare const ScheduleResumeResponseSchema: z.ZodObject<{
483
440
  local: "local";
484
441
  }>>;
485
442
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
- approvalPolicy: z.ZodOptional<z.ZodString>;
487
- sandboxMode: z.ZodOptional<z.ZodString>;
488
- networkAccess: z.ZodOptional<z.ZodBoolean>;
489
- webSearch: z.ZodOptional<z.ZodBoolean>;
443
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
490
444
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
491
- extra: z.ZodOptional<z.ZodObject<{
492
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
493
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
494
- }, z.core.$strip>>;
495
445
  systemPrompt: z.ZodOptional<z.ZodString>;
496
446
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
497
447
  }, z.core.$strip>;
498
448
  }, z.core.$strip>], "type">;
449
+ cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ type: z.ZodLiteral<"every">;
451
+ everyMs: z.ZodNumber;
452
+ }, z.core.$strip>, z.ZodObject<{
453
+ type: z.ZodLiteral<"cron">;
454
+ expression: z.ZodString;
455
+ timezone: z.ZodOptional<z.ZodString>;
456
+ }, z.core.$strip>], "type">;
499
457
  nextRunAt: z.ZodNullable<z.ZodString>;
500
458
  lastRunAt: z.ZodNullable<z.ZodString>;
501
459
  lastRunStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -554,23 +512,16 @@ export declare const ScheduleRunOnceResponseSchema: z.ZodObject<{
554
512
  local: "local";
555
513
  }>>;
556
514
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
- approvalPolicy: z.ZodOptional<z.ZodString>;
558
- sandboxMode: z.ZodOptional<z.ZodString>;
559
- networkAccess: z.ZodOptional<z.ZodBoolean>;
560
- webSearch: z.ZodOptional<z.ZodBoolean>;
515
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
561
516
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
562
- extra: z.ZodOptional<z.ZodObject<{
563
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
564
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
565
- }, z.core.$strip>>;
566
517
  systemPrompt: z.ZodOptional<z.ZodString>;
567
518
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
568
519
  }, z.core.$strip>;
569
520
  }, z.core.$strip>], "type">;
570
521
  status: z.ZodEnum<{
571
- paused: "paused";
572
522
  completed: "completed";
573
523
  active: "active";
524
+ paused: "paused";
574
525
  }>;
575
526
  createdAt: z.ZodString;
576
527
  updatedAt: z.ZodString;
@@ -643,23 +594,16 @@ export declare const ScheduleUpdateResponseSchema: z.ZodObject<{
643
594
  local: "local";
644
595
  }>>;
645
596
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
- approvalPolicy: z.ZodOptional<z.ZodString>;
647
- sandboxMode: z.ZodOptional<z.ZodString>;
648
- networkAccess: z.ZodOptional<z.ZodBoolean>;
649
- webSearch: z.ZodOptional<z.ZodBoolean>;
597
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
650
598
  featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
651
- extra: z.ZodOptional<z.ZodObject<{
652
- codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
653
- claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
654
- }, z.core.$strip>>;
655
599
  systemPrompt: z.ZodOptional<z.ZodString>;
656
600
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
657
601
  }, z.core.$strip>;
658
602
  }, z.core.$strip>], "type">;
659
603
  status: z.ZodEnum<{
660
- paused: "paused";
661
604
  completed: "completed";
662
605
  active: "active";
606
+ paused: "paused";
663
607
  }>;
664
608
  createdAt: z.ZodString;
665
609
  updatedAt: z.ZodString;