@getpaseo/protocol 0.1.84

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 (68) hide show
  1. package/README.md +12 -0
  2. package/dist/agent-attention-notification.d.ts +41 -0
  3. package/dist/agent-attention-notification.js +140 -0
  4. package/dist/agent-labels.d.ts +2 -0
  5. package/dist/agent-labels.js +2 -0
  6. package/dist/agent-lifecycle.d.ts +3 -0
  7. package/dist/agent-lifecycle.js +8 -0
  8. package/dist/agent-state-bucket.d.ts +13 -0
  9. package/dist/agent-state-bucket.js +41 -0
  10. package/dist/agent-title-limits.d.ts +3 -0
  11. package/dist/agent-title-limits.js +3 -0
  12. package/dist/agent-types.d.ts +421 -0
  13. package/dist/agent-types.js +22 -0
  14. package/dist/binary-frames/file-transfer.d.ts +56 -0
  15. package/dist/binary-frames/file-transfer.js +108 -0
  16. package/dist/binary-frames/index.d.ts +3 -0
  17. package/dist/binary-frames/index.js +3 -0
  18. package/dist/binary-frames/terminal.d.ts +37 -0
  19. package/dist/binary-frames/terminal.js +101 -0
  20. package/dist/chat/rpc-schemas.d.ts +728 -0
  21. package/dist/chat/rpc-schemas.js +103 -0
  22. package/dist/chat/types.d.ts +75 -0
  23. package/dist/chat/types.js +22 -0
  24. package/dist/client-capabilities.d.ts +6 -0
  25. package/dist/client-capabilities.js +9 -0
  26. package/dist/connection-offer.d.ts +80 -0
  27. package/dist/connection-offer.js +53 -0
  28. package/dist/daemon-endpoints.d.ts +47 -0
  29. package/dist/daemon-endpoints.js +201 -0
  30. package/dist/error-utils.d.ts +11 -0
  31. package/dist/error-utils.js +27 -0
  32. package/dist/git-remote.d.ts +16 -0
  33. package/dist/git-remote.js +72 -0
  34. package/dist/host-connection-schema.d.ts +23 -0
  35. package/dist/host-connection-schema.js +9 -0
  36. package/dist/importable-providers.d.ts +7 -0
  37. package/dist/importable-providers.js +7 -0
  38. package/dist/literal-union.d.ts +2 -0
  39. package/dist/literal-union.js +2 -0
  40. package/dist/loop/rpc-schemas.d.ts +3005 -0
  41. package/dist/loop/rpc-schemas.js +163 -0
  42. package/dist/messages.d.ts +144995 -0
  43. package/dist/messages.js +3338 -0
  44. package/dist/paseo-config-schema.d.ts +915 -0
  45. package/dist/paseo-config-schema.js +77 -0
  46. package/dist/path-utils.d.ts +2 -0
  47. package/dist/path-utils.js +16 -0
  48. package/dist/provider-config.d.ts +602 -0
  49. package/dist/provider-config.js +123 -0
  50. package/dist/provider-manifest.d.ts +33 -0
  51. package/dist/provider-manifest.js +219 -0
  52. package/dist/schedule/rpc-schemas.d.ts +3993 -0
  53. package/dist/schedule/rpc-schemas.js +151 -0
  54. package/dist/schedule/types.d.ts +745 -0
  55. package/dist/schedule/types.js +74 -0
  56. package/dist/terminal-input-mode.d.ts +26 -0
  57. package/dist/terminal-input-mode.js +151 -0
  58. package/dist/terminal-key-input.d.ts +13 -0
  59. package/dist/terminal-key-input.js +201 -0
  60. package/dist/terminal-snapshot.d.ts +3 -0
  61. package/dist/terminal-snapshot.js +165 -0
  62. package/dist/terminal-stream-protocol.d.ts +2 -0
  63. package/dist/terminal-stream-protocol.js +2 -0
  64. package/dist/tool-call-display.d.ts +11 -0
  65. package/dist/tool-call-display.js +135 -0
  66. package/dist/tool-name-normalization.d.ts +9 -0
  67. package/dist/tool-name-normalization.js +82 -0
  68. package/package.json +34 -0
@@ -0,0 +1,3993 @@
1
+ import { z } from "zod";
2
+ export declare const ScheduleCreateRequestSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"schedule/create">;
4
+ requestId: z.ZodString;
5
+ prompt: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
+ type: z.ZodLiteral<"every">;
9
+ everyMs: z.ZodNumber;
10
+ }, "strip", z.ZodTypeAny, {
11
+ type: "every";
12
+ everyMs: number;
13
+ }, {
14
+ type: "every";
15
+ everyMs: number;
16
+ }>, z.ZodObject<{
17
+ type: z.ZodLiteral<"cron">;
18
+ expression: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: "cron";
21
+ expression: string;
22
+ }, {
23
+ type: "cron";
24
+ expression: string;
25
+ }>]>;
26
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
27
+ type: z.ZodLiteral<"self">;
28
+ agentId: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ agentId: string;
31
+ type: "self";
32
+ }, {
33
+ agentId: string;
34
+ type: "self";
35
+ }>, z.ZodObject<{
36
+ type: z.ZodLiteral<"agent">;
37
+ agentId: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ agentId: string;
40
+ type: "agent";
41
+ }, {
42
+ agentId: string;
43
+ type: "agent";
44
+ }>, z.ZodObject<{
45
+ type: z.ZodLiteral<"new-agent">;
46
+ config: z.ZodObject<{
47
+ provider: z.ZodString;
48
+ cwd: z.ZodString;
49
+ modeId: z.ZodOptional<z.ZodString>;
50
+ model: z.ZodOptional<z.ZodString>;
51
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
52
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ approvalPolicy: z.ZodOptional<z.ZodString>;
54
+ sandboxMode: z.ZodOptional<z.ZodString>;
55
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
56
+ webSearch: z.ZodOptional<z.ZodBoolean>;
57
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
58
+ extra: z.ZodOptional<z.ZodObject<{
59
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
60
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ claude?: Record<string, unknown> | undefined;
63
+ codex?: Record<string, unknown> | undefined;
64
+ }, {
65
+ claude?: Record<string, unknown> | undefined;
66
+ codex?: Record<string, unknown> | undefined;
67
+ }>>;
68
+ systemPrompt: z.ZodOptional<z.ZodString>;
69
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ cwd: string;
72
+ provider: string;
73
+ title?: string | null | undefined;
74
+ modeId?: string | undefined;
75
+ model?: string | undefined;
76
+ thinkingOptionId?: string | undefined;
77
+ approvalPolicy?: string | undefined;
78
+ sandboxMode?: string | undefined;
79
+ networkAccess?: boolean | undefined;
80
+ webSearch?: boolean | undefined;
81
+ featureValues?: Record<string, unknown> | undefined;
82
+ extra?: {
83
+ claude?: Record<string, unknown> | undefined;
84
+ codex?: Record<string, unknown> | undefined;
85
+ } | undefined;
86
+ systemPrompt?: string | undefined;
87
+ mcpServers?: Record<string, unknown> | undefined;
88
+ }, {
89
+ cwd: string;
90
+ provider: string;
91
+ title?: string | null | undefined;
92
+ modeId?: string | undefined;
93
+ model?: string | undefined;
94
+ thinkingOptionId?: string | undefined;
95
+ approvalPolicy?: string | undefined;
96
+ sandboxMode?: string | undefined;
97
+ networkAccess?: boolean | undefined;
98
+ webSearch?: boolean | undefined;
99
+ featureValues?: Record<string, unknown> | undefined;
100
+ extra?: {
101
+ claude?: Record<string, unknown> | undefined;
102
+ codex?: Record<string, unknown> | undefined;
103
+ } | undefined;
104
+ systemPrompt?: string | undefined;
105
+ mcpServers?: Record<string, unknown> | undefined;
106
+ }>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ type: "new-agent";
109
+ config: {
110
+ cwd: string;
111
+ provider: string;
112
+ title?: string | null | undefined;
113
+ modeId?: string | undefined;
114
+ model?: string | undefined;
115
+ thinkingOptionId?: string | undefined;
116
+ approvalPolicy?: string | undefined;
117
+ sandboxMode?: string | undefined;
118
+ networkAccess?: boolean | undefined;
119
+ webSearch?: boolean | undefined;
120
+ featureValues?: Record<string, unknown> | undefined;
121
+ extra?: {
122
+ claude?: Record<string, unknown> | undefined;
123
+ codex?: Record<string, unknown> | undefined;
124
+ } | undefined;
125
+ systemPrompt?: string | undefined;
126
+ mcpServers?: Record<string, unknown> | undefined;
127
+ };
128
+ }, {
129
+ type: "new-agent";
130
+ config: {
131
+ cwd: string;
132
+ provider: string;
133
+ title?: string | null | undefined;
134
+ modeId?: string | undefined;
135
+ model?: string | undefined;
136
+ thinkingOptionId?: string | undefined;
137
+ approvalPolicy?: string | undefined;
138
+ sandboxMode?: string | undefined;
139
+ networkAccess?: boolean | undefined;
140
+ webSearch?: boolean | undefined;
141
+ featureValues?: Record<string, unknown> | undefined;
142
+ extra?: {
143
+ claude?: Record<string, unknown> | undefined;
144
+ codex?: Record<string, unknown> | undefined;
145
+ } | undefined;
146
+ systemPrompt?: string | undefined;
147
+ mcpServers?: Record<string, unknown> | undefined;
148
+ };
149
+ }>]>;
150
+ maxRuns: z.ZodOptional<z.ZodNumber>;
151
+ expiresAt: z.ZodOptional<z.ZodString>;
152
+ runOnCreate: z.ZodOptional<z.ZodBoolean>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "schedule/create";
155
+ requestId: string;
156
+ prompt: string;
157
+ cadence: {
158
+ type: "every";
159
+ everyMs: number;
160
+ } | {
161
+ type: "cron";
162
+ expression: string;
163
+ };
164
+ target: {
165
+ agentId: string;
166
+ type: "self";
167
+ } | {
168
+ agentId: string;
169
+ type: "agent";
170
+ } | {
171
+ type: "new-agent";
172
+ config: {
173
+ cwd: string;
174
+ provider: string;
175
+ title?: string | null | undefined;
176
+ modeId?: string | undefined;
177
+ model?: string | undefined;
178
+ thinkingOptionId?: string | undefined;
179
+ approvalPolicy?: string | undefined;
180
+ sandboxMode?: string | undefined;
181
+ networkAccess?: boolean | undefined;
182
+ webSearch?: boolean | undefined;
183
+ featureValues?: Record<string, unknown> | undefined;
184
+ extra?: {
185
+ claude?: Record<string, unknown> | undefined;
186
+ codex?: Record<string, unknown> | undefined;
187
+ } | undefined;
188
+ systemPrompt?: string | undefined;
189
+ mcpServers?: Record<string, unknown> | undefined;
190
+ };
191
+ };
192
+ name?: string | undefined;
193
+ expiresAt?: string | undefined;
194
+ maxRuns?: number | undefined;
195
+ runOnCreate?: boolean | undefined;
196
+ }, {
197
+ type: "schedule/create";
198
+ requestId: string;
199
+ prompt: string;
200
+ cadence: {
201
+ type: "every";
202
+ everyMs: number;
203
+ } | {
204
+ type: "cron";
205
+ expression: string;
206
+ };
207
+ target: {
208
+ agentId: string;
209
+ type: "self";
210
+ } | {
211
+ agentId: string;
212
+ type: "agent";
213
+ } | {
214
+ type: "new-agent";
215
+ config: {
216
+ cwd: string;
217
+ provider: string;
218
+ title?: string | null | undefined;
219
+ modeId?: string | undefined;
220
+ model?: string | undefined;
221
+ thinkingOptionId?: string | undefined;
222
+ approvalPolicy?: string | undefined;
223
+ sandboxMode?: string | undefined;
224
+ networkAccess?: boolean | undefined;
225
+ webSearch?: boolean | undefined;
226
+ featureValues?: Record<string, unknown> | undefined;
227
+ extra?: {
228
+ claude?: Record<string, unknown> | undefined;
229
+ codex?: Record<string, unknown> | undefined;
230
+ } | undefined;
231
+ systemPrompt?: string | undefined;
232
+ mcpServers?: Record<string, unknown> | undefined;
233
+ };
234
+ };
235
+ name?: string | undefined;
236
+ expiresAt?: string | undefined;
237
+ maxRuns?: number | undefined;
238
+ runOnCreate?: boolean | undefined;
239
+ }>;
240
+ export declare const ScheduleListRequestSchema: z.ZodObject<{
241
+ type: z.ZodLiteral<"schedule/list">;
242
+ requestId: z.ZodString;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: "schedule/list";
245
+ requestId: string;
246
+ }, {
247
+ type: "schedule/list";
248
+ requestId: string;
249
+ }>;
250
+ export declare const ScheduleInspectRequestSchema: z.ZodObject<{
251
+ type: z.ZodLiteral<"schedule/inspect">;
252
+ requestId: z.ZodString;
253
+ scheduleId: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ type: "schedule/inspect";
256
+ requestId: string;
257
+ scheduleId: string;
258
+ }, {
259
+ type: "schedule/inspect";
260
+ requestId: string;
261
+ scheduleId: string;
262
+ }>;
263
+ export declare const ScheduleLogsRequestSchema: z.ZodObject<{
264
+ type: z.ZodLiteral<"schedule/logs">;
265
+ requestId: z.ZodString;
266
+ scheduleId: z.ZodString;
267
+ }, "strip", z.ZodTypeAny, {
268
+ type: "schedule/logs";
269
+ requestId: string;
270
+ scheduleId: string;
271
+ }, {
272
+ type: "schedule/logs";
273
+ requestId: string;
274
+ scheduleId: string;
275
+ }>;
276
+ export declare const SchedulePauseRequestSchema: z.ZodObject<{
277
+ type: z.ZodLiteral<"schedule/pause">;
278
+ requestId: z.ZodString;
279
+ scheduleId: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ type: "schedule/pause";
282
+ requestId: string;
283
+ scheduleId: string;
284
+ }, {
285
+ type: "schedule/pause";
286
+ requestId: string;
287
+ scheduleId: string;
288
+ }>;
289
+ export declare const ScheduleResumeRequestSchema: z.ZodObject<{
290
+ type: z.ZodLiteral<"schedule/resume">;
291
+ requestId: z.ZodString;
292
+ scheduleId: z.ZodString;
293
+ }, "strip", z.ZodTypeAny, {
294
+ type: "schedule/resume";
295
+ requestId: string;
296
+ scheduleId: string;
297
+ }, {
298
+ type: "schedule/resume";
299
+ requestId: string;
300
+ scheduleId: string;
301
+ }>;
302
+ export declare const ScheduleDeleteRequestSchema: z.ZodObject<{
303
+ type: z.ZodLiteral<"schedule/delete">;
304
+ requestId: z.ZodString;
305
+ scheduleId: z.ZodString;
306
+ }, "strip", z.ZodTypeAny, {
307
+ type: "schedule/delete";
308
+ requestId: string;
309
+ scheduleId: string;
310
+ }, {
311
+ type: "schedule/delete";
312
+ requestId: string;
313
+ scheduleId: string;
314
+ }>;
315
+ export declare const ScheduleRunOnceRequestSchema: z.ZodObject<{
316
+ type: z.ZodLiteral<"schedule/run-once">;
317
+ requestId: z.ZodString;
318
+ scheduleId: z.ZodString;
319
+ }, "strip", z.ZodTypeAny, {
320
+ type: "schedule/run-once";
321
+ requestId: string;
322
+ scheduleId: string;
323
+ }, {
324
+ type: "schedule/run-once";
325
+ requestId: string;
326
+ scheduleId: string;
327
+ }>;
328
+ export declare const ScheduleUpdateRequestSchema: z.ZodObject<{
329
+ type: z.ZodLiteral<"schedule/update">;
330
+ requestId: z.ZodString;
331
+ scheduleId: z.ZodString;
332
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ prompt: z.ZodOptional<z.ZodString>;
334
+ cadence: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
335
+ type: z.ZodLiteral<"every">;
336
+ everyMs: z.ZodNumber;
337
+ }, "strip", z.ZodTypeAny, {
338
+ type: "every";
339
+ everyMs: number;
340
+ }, {
341
+ type: "every";
342
+ everyMs: number;
343
+ }>, z.ZodObject<{
344
+ type: z.ZodLiteral<"cron">;
345
+ expression: z.ZodString;
346
+ }, "strip", z.ZodTypeAny, {
347
+ type: "cron";
348
+ expression: string;
349
+ }, {
350
+ type: "cron";
351
+ expression: string;
352
+ }>]>>;
353
+ newAgentConfig: z.ZodOptional<z.ZodObject<{
354
+ provider: z.ZodOptional<z.ZodString>;
355
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ modeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ cwd: z.ZodOptional<z.ZodString>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ cwd?: string | undefined;
360
+ provider?: string | undefined;
361
+ modeId?: string | null | undefined;
362
+ model?: string | null | undefined;
363
+ }, {
364
+ cwd?: string | undefined;
365
+ provider?: string | undefined;
366
+ modeId?: string | null | undefined;
367
+ model?: string | null | undefined;
368
+ }>>;
369
+ maxRuns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
370
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ type: "schedule/update";
373
+ requestId: string;
374
+ scheduleId: string;
375
+ name?: string | null | undefined;
376
+ prompt?: string | undefined;
377
+ cadence?: {
378
+ type: "every";
379
+ everyMs: number;
380
+ } | {
381
+ type: "cron";
382
+ expression: string;
383
+ } | undefined;
384
+ expiresAt?: string | null | undefined;
385
+ maxRuns?: number | null | undefined;
386
+ newAgentConfig?: {
387
+ cwd?: string | undefined;
388
+ provider?: string | undefined;
389
+ modeId?: string | null | undefined;
390
+ model?: string | null | undefined;
391
+ } | undefined;
392
+ }, {
393
+ type: "schedule/update";
394
+ requestId: string;
395
+ scheduleId: string;
396
+ name?: string | null | undefined;
397
+ prompt?: string | undefined;
398
+ cadence?: {
399
+ type: "every";
400
+ everyMs: number;
401
+ } | {
402
+ type: "cron";
403
+ expression: string;
404
+ } | undefined;
405
+ expiresAt?: string | null | undefined;
406
+ maxRuns?: number | null | undefined;
407
+ newAgentConfig?: {
408
+ cwd?: string | undefined;
409
+ provider?: string | undefined;
410
+ modeId?: string | null | undefined;
411
+ model?: string | null | undefined;
412
+ } | undefined;
413
+ }>;
414
+ export declare const ScheduleCreateResponseSchema: z.ZodObject<{
415
+ type: z.ZodLiteral<"schedule/create/response">;
416
+ payload: z.ZodObject<{
417
+ requestId: z.ZodString;
418
+ schedule: z.ZodNullable<z.ZodObject<Omit<{
419
+ id: z.ZodString;
420
+ name: z.ZodNullable<z.ZodString>;
421
+ prompt: z.ZodString;
422
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
423
+ type: z.ZodLiteral<"every">;
424
+ everyMs: z.ZodNumber;
425
+ }, "strip", z.ZodTypeAny, {
426
+ type: "every";
427
+ everyMs: number;
428
+ }, {
429
+ type: "every";
430
+ everyMs: number;
431
+ }>, z.ZodObject<{
432
+ type: z.ZodLiteral<"cron">;
433
+ expression: z.ZodString;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "cron";
436
+ expression: string;
437
+ }, {
438
+ type: "cron";
439
+ expression: string;
440
+ }>]>;
441
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
442
+ type: z.ZodLiteral<"agent">;
443
+ agentId: z.ZodString;
444
+ }, "strip", z.ZodTypeAny, {
445
+ agentId: string;
446
+ type: "agent";
447
+ }, {
448
+ agentId: string;
449
+ type: "agent";
450
+ }>, z.ZodObject<{
451
+ type: z.ZodLiteral<"new-agent">;
452
+ config: z.ZodObject<{
453
+ provider: z.ZodString;
454
+ cwd: z.ZodString;
455
+ modeId: z.ZodOptional<z.ZodString>;
456
+ model: z.ZodOptional<z.ZodString>;
457
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
458
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ approvalPolicy: z.ZodOptional<z.ZodString>;
460
+ sandboxMode: z.ZodOptional<z.ZodString>;
461
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
462
+ webSearch: z.ZodOptional<z.ZodBoolean>;
463
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
464
+ extra: z.ZodOptional<z.ZodObject<{
465
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
466
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ claude?: Record<string, unknown> | undefined;
469
+ codex?: Record<string, unknown> | undefined;
470
+ }, {
471
+ claude?: Record<string, unknown> | undefined;
472
+ codex?: Record<string, unknown> | undefined;
473
+ }>>;
474
+ systemPrompt: z.ZodOptional<z.ZodString>;
475
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ cwd: string;
478
+ provider: string;
479
+ title?: string | null | undefined;
480
+ modeId?: string | undefined;
481
+ model?: string | undefined;
482
+ thinkingOptionId?: string | undefined;
483
+ approvalPolicy?: string | undefined;
484
+ sandboxMode?: string | undefined;
485
+ networkAccess?: boolean | undefined;
486
+ webSearch?: boolean | undefined;
487
+ featureValues?: Record<string, unknown> | undefined;
488
+ extra?: {
489
+ claude?: Record<string, unknown> | undefined;
490
+ codex?: Record<string, unknown> | undefined;
491
+ } | undefined;
492
+ systemPrompt?: string | undefined;
493
+ mcpServers?: Record<string, unknown> | undefined;
494
+ }, {
495
+ cwd: string;
496
+ provider: string;
497
+ title?: string | null | undefined;
498
+ modeId?: string | undefined;
499
+ model?: string | undefined;
500
+ thinkingOptionId?: string | undefined;
501
+ approvalPolicy?: string | undefined;
502
+ sandboxMode?: string | undefined;
503
+ networkAccess?: boolean | undefined;
504
+ webSearch?: boolean | undefined;
505
+ featureValues?: Record<string, unknown> | undefined;
506
+ extra?: {
507
+ claude?: Record<string, unknown> | undefined;
508
+ codex?: Record<string, unknown> | undefined;
509
+ } | undefined;
510
+ systemPrompt?: string | undefined;
511
+ mcpServers?: Record<string, unknown> | undefined;
512
+ }>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ type: "new-agent";
515
+ config: {
516
+ cwd: string;
517
+ provider: string;
518
+ title?: string | null | undefined;
519
+ modeId?: string | undefined;
520
+ model?: string | undefined;
521
+ thinkingOptionId?: string | undefined;
522
+ approvalPolicy?: string | undefined;
523
+ sandboxMode?: string | undefined;
524
+ networkAccess?: boolean | undefined;
525
+ webSearch?: boolean | undefined;
526
+ featureValues?: Record<string, unknown> | undefined;
527
+ extra?: {
528
+ claude?: Record<string, unknown> | undefined;
529
+ codex?: Record<string, unknown> | undefined;
530
+ } | undefined;
531
+ systemPrompt?: string | undefined;
532
+ mcpServers?: Record<string, unknown> | undefined;
533
+ };
534
+ }, {
535
+ type: "new-agent";
536
+ config: {
537
+ cwd: string;
538
+ provider: string;
539
+ title?: string | null | undefined;
540
+ modeId?: string | undefined;
541
+ model?: string | undefined;
542
+ thinkingOptionId?: string | undefined;
543
+ approvalPolicy?: string | undefined;
544
+ sandboxMode?: string | undefined;
545
+ networkAccess?: boolean | undefined;
546
+ webSearch?: boolean | undefined;
547
+ featureValues?: Record<string, unknown> | undefined;
548
+ extra?: {
549
+ claude?: Record<string, unknown> | undefined;
550
+ codex?: Record<string, unknown> | undefined;
551
+ } | undefined;
552
+ systemPrompt?: string | undefined;
553
+ mcpServers?: Record<string, unknown> | undefined;
554
+ };
555
+ }>]>;
556
+ status: z.ZodEnum<["active", "paused", "completed"]>;
557
+ createdAt: z.ZodString;
558
+ updatedAt: z.ZodString;
559
+ nextRunAt: z.ZodNullable<z.ZodString>;
560
+ lastRunAt: z.ZodNullable<z.ZodString>;
561
+ pausedAt: z.ZodNullable<z.ZodString>;
562
+ expiresAt: z.ZodNullable<z.ZodString>;
563
+ maxRuns: z.ZodNullable<z.ZodNumber>;
564
+ runs: z.ZodArray<z.ZodObject<{
565
+ id: z.ZodString;
566
+ scheduledFor: z.ZodString;
567
+ startedAt: z.ZodString;
568
+ endedAt: z.ZodNullable<z.ZodString>;
569
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
570
+ agentId: z.ZodNullable<z.ZodString>;
571
+ output: z.ZodNullable<z.ZodString>;
572
+ error: z.ZodNullable<z.ZodString>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ error: string | null;
575
+ agentId: string | null;
576
+ status: "running" | "failed" | "succeeded";
577
+ id: string;
578
+ scheduledFor: string;
579
+ startedAt: string;
580
+ endedAt: string | null;
581
+ output: string | null;
582
+ }, {
583
+ error: string | null;
584
+ agentId: string | null;
585
+ status: "running" | "failed" | "succeeded";
586
+ id: string;
587
+ scheduledFor: string;
588
+ startedAt: string;
589
+ endedAt: string | null;
590
+ output: string | null;
591
+ }>, "many">;
592
+ }, "runs">, "strip", z.ZodTypeAny, {
593
+ name: string | null;
594
+ status: "completed" | "active" | "paused";
595
+ id: string;
596
+ createdAt: string;
597
+ updatedAt: string;
598
+ prompt: string;
599
+ cadence: {
600
+ type: "every";
601
+ everyMs: number;
602
+ } | {
603
+ type: "cron";
604
+ expression: string;
605
+ };
606
+ target: {
607
+ agentId: string;
608
+ type: "agent";
609
+ } | {
610
+ type: "new-agent";
611
+ config: {
612
+ cwd: string;
613
+ provider: string;
614
+ title?: string | null | undefined;
615
+ modeId?: string | undefined;
616
+ model?: string | undefined;
617
+ thinkingOptionId?: string | undefined;
618
+ approvalPolicy?: string | undefined;
619
+ sandboxMode?: string | undefined;
620
+ networkAccess?: boolean | undefined;
621
+ webSearch?: boolean | undefined;
622
+ featureValues?: Record<string, unknown> | undefined;
623
+ extra?: {
624
+ claude?: Record<string, unknown> | undefined;
625
+ codex?: Record<string, unknown> | undefined;
626
+ } | undefined;
627
+ systemPrompt?: string | undefined;
628
+ mcpServers?: Record<string, unknown> | undefined;
629
+ };
630
+ };
631
+ nextRunAt: string | null;
632
+ lastRunAt: string | null;
633
+ pausedAt: string | null;
634
+ expiresAt: string | null;
635
+ maxRuns: number | null;
636
+ }, {
637
+ name: string | null;
638
+ status: "completed" | "active" | "paused";
639
+ id: string;
640
+ createdAt: string;
641
+ updatedAt: string;
642
+ prompt: string;
643
+ cadence: {
644
+ type: "every";
645
+ everyMs: number;
646
+ } | {
647
+ type: "cron";
648
+ expression: string;
649
+ };
650
+ target: {
651
+ agentId: string;
652
+ type: "agent";
653
+ } | {
654
+ type: "new-agent";
655
+ config: {
656
+ cwd: string;
657
+ provider: string;
658
+ title?: string | null | undefined;
659
+ modeId?: string | undefined;
660
+ model?: string | undefined;
661
+ thinkingOptionId?: string | undefined;
662
+ approvalPolicy?: string | undefined;
663
+ sandboxMode?: string | undefined;
664
+ networkAccess?: boolean | undefined;
665
+ webSearch?: boolean | undefined;
666
+ featureValues?: Record<string, unknown> | undefined;
667
+ extra?: {
668
+ claude?: Record<string, unknown> | undefined;
669
+ codex?: Record<string, unknown> | undefined;
670
+ } | undefined;
671
+ systemPrompt?: string | undefined;
672
+ mcpServers?: Record<string, unknown> | undefined;
673
+ };
674
+ };
675
+ nextRunAt: string | null;
676
+ lastRunAt: string | null;
677
+ pausedAt: string | null;
678
+ expiresAt: string | null;
679
+ maxRuns: number | null;
680
+ }>>;
681
+ error: z.ZodNullable<z.ZodString>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ error: string | null;
684
+ requestId: string;
685
+ schedule: {
686
+ name: string | null;
687
+ status: "completed" | "active" | "paused";
688
+ id: string;
689
+ createdAt: string;
690
+ updatedAt: string;
691
+ prompt: string;
692
+ cadence: {
693
+ type: "every";
694
+ everyMs: number;
695
+ } | {
696
+ type: "cron";
697
+ expression: string;
698
+ };
699
+ target: {
700
+ agentId: string;
701
+ type: "agent";
702
+ } | {
703
+ type: "new-agent";
704
+ config: {
705
+ cwd: string;
706
+ provider: string;
707
+ title?: string | null | undefined;
708
+ modeId?: string | undefined;
709
+ model?: string | undefined;
710
+ thinkingOptionId?: string | undefined;
711
+ approvalPolicy?: string | undefined;
712
+ sandboxMode?: string | undefined;
713
+ networkAccess?: boolean | undefined;
714
+ webSearch?: boolean | undefined;
715
+ featureValues?: Record<string, unknown> | undefined;
716
+ extra?: {
717
+ claude?: Record<string, unknown> | undefined;
718
+ codex?: Record<string, unknown> | undefined;
719
+ } | undefined;
720
+ systemPrompt?: string | undefined;
721
+ mcpServers?: Record<string, unknown> | undefined;
722
+ };
723
+ };
724
+ nextRunAt: string | null;
725
+ lastRunAt: string | null;
726
+ pausedAt: string | null;
727
+ expiresAt: string | null;
728
+ maxRuns: number | null;
729
+ } | null;
730
+ }, {
731
+ error: string | null;
732
+ requestId: string;
733
+ schedule: {
734
+ name: string | null;
735
+ status: "completed" | "active" | "paused";
736
+ id: string;
737
+ createdAt: string;
738
+ updatedAt: string;
739
+ prompt: string;
740
+ cadence: {
741
+ type: "every";
742
+ everyMs: number;
743
+ } | {
744
+ type: "cron";
745
+ expression: string;
746
+ };
747
+ target: {
748
+ agentId: string;
749
+ type: "agent";
750
+ } | {
751
+ type: "new-agent";
752
+ config: {
753
+ cwd: string;
754
+ provider: string;
755
+ title?: string | null | undefined;
756
+ modeId?: string | undefined;
757
+ model?: string | undefined;
758
+ thinkingOptionId?: string | undefined;
759
+ approvalPolicy?: string | undefined;
760
+ sandboxMode?: string | undefined;
761
+ networkAccess?: boolean | undefined;
762
+ webSearch?: boolean | undefined;
763
+ featureValues?: Record<string, unknown> | undefined;
764
+ extra?: {
765
+ claude?: Record<string, unknown> | undefined;
766
+ codex?: Record<string, unknown> | undefined;
767
+ } | undefined;
768
+ systemPrompt?: string | undefined;
769
+ mcpServers?: Record<string, unknown> | undefined;
770
+ };
771
+ };
772
+ nextRunAt: string | null;
773
+ lastRunAt: string | null;
774
+ pausedAt: string | null;
775
+ expiresAt: string | null;
776
+ maxRuns: number | null;
777
+ } | null;
778
+ }>;
779
+ }, "strip", z.ZodTypeAny, {
780
+ type: "schedule/create/response";
781
+ payload: {
782
+ error: string | null;
783
+ requestId: string;
784
+ schedule: {
785
+ name: string | null;
786
+ status: "completed" | "active" | "paused";
787
+ id: string;
788
+ createdAt: string;
789
+ updatedAt: string;
790
+ prompt: string;
791
+ cadence: {
792
+ type: "every";
793
+ everyMs: number;
794
+ } | {
795
+ type: "cron";
796
+ expression: string;
797
+ };
798
+ target: {
799
+ agentId: string;
800
+ type: "agent";
801
+ } | {
802
+ type: "new-agent";
803
+ config: {
804
+ cwd: string;
805
+ provider: string;
806
+ title?: string | null | undefined;
807
+ modeId?: string | undefined;
808
+ model?: string | undefined;
809
+ thinkingOptionId?: string | undefined;
810
+ approvalPolicy?: string | undefined;
811
+ sandboxMode?: string | undefined;
812
+ networkAccess?: boolean | undefined;
813
+ webSearch?: boolean | undefined;
814
+ featureValues?: Record<string, unknown> | undefined;
815
+ extra?: {
816
+ claude?: Record<string, unknown> | undefined;
817
+ codex?: Record<string, unknown> | undefined;
818
+ } | undefined;
819
+ systemPrompt?: string | undefined;
820
+ mcpServers?: Record<string, unknown> | undefined;
821
+ };
822
+ };
823
+ nextRunAt: string | null;
824
+ lastRunAt: string | null;
825
+ pausedAt: string | null;
826
+ expiresAt: string | null;
827
+ maxRuns: number | null;
828
+ } | null;
829
+ };
830
+ }, {
831
+ type: "schedule/create/response";
832
+ payload: {
833
+ error: string | null;
834
+ requestId: string;
835
+ schedule: {
836
+ name: string | null;
837
+ status: "completed" | "active" | "paused";
838
+ id: string;
839
+ createdAt: string;
840
+ updatedAt: string;
841
+ prompt: string;
842
+ cadence: {
843
+ type: "every";
844
+ everyMs: number;
845
+ } | {
846
+ type: "cron";
847
+ expression: string;
848
+ };
849
+ target: {
850
+ agentId: string;
851
+ type: "agent";
852
+ } | {
853
+ type: "new-agent";
854
+ config: {
855
+ cwd: string;
856
+ provider: string;
857
+ title?: string | null | undefined;
858
+ modeId?: string | undefined;
859
+ model?: string | undefined;
860
+ thinkingOptionId?: string | undefined;
861
+ approvalPolicy?: string | undefined;
862
+ sandboxMode?: string | undefined;
863
+ networkAccess?: boolean | undefined;
864
+ webSearch?: boolean | undefined;
865
+ featureValues?: Record<string, unknown> | undefined;
866
+ extra?: {
867
+ claude?: Record<string, unknown> | undefined;
868
+ codex?: Record<string, unknown> | undefined;
869
+ } | undefined;
870
+ systemPrompt?: string | undefined;
871
+ mcpServers?: Record<string, unknown> | undefined;
872
+ };
873
+ };
874
+ nextRunAt: string | null;
875
+ lastRunAt: string | null;
876
+ pausedAt: string | null;
877
+ expiresAt: string | null;
878
+ maxRuns: number | null;
879
+ } | null;
880
+ };
881
+ }>;
882
+ export declare const ScheduleListResponseSchema: z.ZodObject<{
883
+ type: z.ZodLiteral<"schedule/list/response">;
884
+ payload: z.ZodObject<{
885
+ requestId: z.ZodString;
886
+ schedules: z.ZodArray<z.ZodObject<Omit<{
887
+ id: z.ZodString;
888
+ name: z.ZodNullable<z.ZodString>;
889
+ prompt: z.ZodString;
890
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
891
+ type: z.ZodLiteral<"every">;
892
+ everyMs: z.ZodNumber;
893
+ }, "strip", z.ZodTypeAny, {
894
+ type: "every";
895
+ everyMs: number;
896
+ }, {
897
+ type: "every";
898
+ everyMs: number;
899
+ }>, z.ZodObject<{
900
+ type: z.ZodLiteral<"cron">;
901
+ expression: z.ZodString;
902
+ }, "strip", z.ZodTypeAny, {
903
+ type: "cron";
904
+ expression: string;
905
+ }, {
906
+ type: "cron";
907
+ expression: string;
908
+ }>]>;
909
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
910
+ type: z.ZodLiteral<"agent">;
911
+ agentId: z.ZodString;
912
+ }, "strip", z.ZodTypeAny, {
913
+ agentId: string;
914
+ type: "agent";
915
+ }, {
916
+ agentId: string;
917
+ type: "agent";
918
+ }>, z.ZodObject<{
919
+ type: z.ZodLiteral<"new-agent">;
920
+ config: z.ZodObject<{
921
+ provider: z.ZodString;
922
+ cwd: z.ZodString;
923
+ modeId: z.ZodOptional<z.ZodString>;
924
+ model: z.ZodOptional<z.ZodString>;
925
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
926
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ approvalPolicy: z.ZodOptional<z.ZodString>;
928
+ sandboxMode: z.ZodOptional<z.ZodString>;
929
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
930
+ webSearch: z.ZodOptional<z.ZodBoolean>;
931
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
932
+ extra: z.ZodOptional<z.ZodObject<{
933
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
934
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ claude?: Record<string, unknown> | undefined;
937
+ codex?: Record<string, unknown> | undefined;
938
+ }, {
939
+ claude?: Record<string, unknown> | undefined;
940
+ codex?: Record<string, unknown> | undefined;
941
+ }>>;
942
+ systemPrompt: z.ZodOptional<z.ZodString>;
943
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
944
+ }, "strip", z.ZodTypeAny, {
945
+ cwd: string;
946
+ provider: string;
947
+ title?: string | null | undefined;
948
+ modeId?: string | undefined;
949
+ model?: string | undefined;
950
+ thinkingOptionId?: string | undefined;
951
+ approvalPolicy?: string | undefined;
952
+ sandboxMode?: string | undefined;
953
+ networkAccess?: boolean | undefined;
954
+ webSearch?: boolean | undefined;
955
+ featureValues?: Record<string, unknown> | undefined;
956
+ extra?: {
957
+ claude?: Record<string, unknown> | undefined;
958
+ codex?: Record<string, unknown> | undefined;
959
+ } | undefined;
960
+ systemPrompt?: string | undefined;
961
+ mcpServers?: Record<string, unknown> | undefined;
962
+ }, {
963
+ cwd: string;
964
+ provider: string;
965
+ title?: string | null | undefined;
966
+ modeId?: string | undefined;
967
+ model?: string | undefined;
968
+ thinkingOptionId?: string | undefined;
969
+ approvalPolicy?: string | undefined;
970
+ sandboxMode?: string | undefined;
971
+ networkAccess?: boolean | undefined;
972
+ webSearch?: boolean | undefined;
973
+ featureValues?: Record<string, unknown> | undefined;
974
+ extra?: {
975
+ claude?: Record<string, unknown> | undefined;
976
+ codex?: Record<string, unknown> | undefined;
977
+ } | undefined;
978
+ systemPrompt?: string | undefined;
979
+ mcpServers?: Record<string, unknown> | undefined;
980
+ }>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ type: "new-agent";
983
+ config: {
984
+ cwd: string;
985
+ provider: string;
986
+ title?: string | null | undefined;
987
+ modeId?: string | undefined;
988
+ model?: string | undefined;
989
+ thinkingOptionId?: string | undefined;
990
+ approvalPolicy?: string | undefined;
991
+ sandboxMode?: string | undefined;
992
+ networkAccess?: boolean | undefined;
993
+ webSearch?: boolean | undefined;
994
+ featureValues?: Record<string, unknown> | undefined;
995
+ extra?: {
996
+ claude?: Record<string, unknown> | undefined;
997
+ codex?: Record<string, unknown> | undefined;
998
+ } | undefined;
999
+ systemPrompt?: string | undefined;
1000
+ mcpServers?: Record<string, unknown> | undefined;
1001
+ };
1002
+ }, {
1003
+ type: "new-agent";
1004
+ config: {
1005
+ cwd: string;
1006
+ provider: string;
1007
+ title?: string | null | undefined;
1008
+ modeId?: string | undefined;
1009
+ model?: string | undefined;
1010
+ thinkingOptionId?: string | undefined;
1011
+ approvalPolicy?: string | undefined;
1012
+ sandboxMode?: string | undefined;
1013
+ networkAccess?: boolean | undefined;
1014
+ webSearch?: boolean | undefined;
1015
+ featureValues?: Record<string, unknown> | undefined;
1016
+ extra?: {
1017
+ claude?: Record<string, unknown> | undefined;
1018
+ codex?: Record<string, unknown> | undefined;
1019
+ } | undefined;
1020
+ systemPrompt?: string | undefined;
1021
+ mcpServers?: Record<string, unknown> | undefined;
1022
+ };
1023
+ }>]>;
1024
+ status: z.ZodEnum<["active", "paused", "completed"]>;
1025
+ createdAt: z.ZodString;
1026
+ updatedAt: z.ZodString;
1027
+ nextRunAt: z.ZodNullable<z.ZodString>;
1028
+ lastRunAt: z.ZodNullable<z.ZodString>;
1029
+ pausedAt: z.ZodNullable<z.ZodString>;
1030
+ expiresAt: z.ZodNullable<z.ZodString>;
1031
+ maxRuns: z.ZodNullable<z.ZodNumber>;
1032
+ runs: z.ZodArray<z.ZodObject<{
1033
+ id: z.ZodString;
1034
+ scheduledFor: z.ZodString;
1035
+ startedAt: z.ZodString;
1036
+ endedAt: z.ZodNullable<z.ZodString>;
1037
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
1038
+ agentId: z.ZodNullable<z.ZodString>;
1039
+ output: z.ZodNullable<z.ZodString>;
1040
+ error: z.ZodNullable<z.ZodString>;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ error: string | null;
1043
+ agentId: string | null;
1044
+ status: "running" | "failed" | "succeeded";
1045
+ id: string;
1046
+ scheduledFor: string;
1047
+ startedAt: string;
1048
+ endedAt: string | null;
1049
+ output: string | null;
1050
+ }, {
1051
+ error: string | null;
1052
+ agentId: string | null;
1053
+ status: "running" | "failed" | "succeeded";
1054
+ id: string;
1055
+ scheduledFor: string;
1056
+ startedAt: string;
1057
+ endedAt: string | null;
1058
+ output: string | null;
1059
+ }>, "many">;
1060
+ }, "runs">, "strip", z.ZodTypeAny, {
1061
+ name: string | null;
1062
+ status: "completed" | "active" | "paused";
1063
+ id: string;
1064
+ createdAt: string;
1065
+ updatedAt: string;
1066
+ prompt: string;
1067
+ cadence: {
1068
+ type: "every";
1069
+ everyMs: number;
1070
+ } | {
1071
+ type: "cron";
1072
+ expression: string;
1073
+ };
1074
+ target: {
1075
+ agentId: string;
1076
+ type: "agent";
1077
+ } | {
1078
+ type: "new-agent";
1079
+ config: {
1080
+ cwd: string;
1081
+ provider: string;
1082
+ title?: string | null | undefined;
1083
+ modeId?: string | undefined;
1084
+ model?: string | undefined;
1085
+ thinkingOptionId?: string | undefined;
1086
+ approvalPolicy?: string | undefined;
1087
+ sandboxMode?: string | undefined;
1088
+ networkAccess?: boolean | undefined;
1089
+ webSearch?: boolean | undefined;
1090
+ featureValues?: Record<string, unknown> | undefined;
1091
+ extra?: {
1092
+ claude?: Record<string, unknown> | undefined;
1093
+ codex?: Record<string, unknown> | undefined;
1094
+ } | undefined;
1095
+ systemPrompt?: string | undefined;
1096
+ mcpServers?: Record<string, unknown> | undefined;
1097
+ };
1098
+ };
1099
+ nextRunAt: string | null;
1100
+ lastRunAt: string | null;
1101
+ pausedAt: string | null;
1102
+ expiresAt: string | null;
1103
+ maxRuns: number | null;
1104
+ }, {
1105
+ name: string | null;
1106
+ status: "completed" | "active" | "paused";
1107
+ id: string;
1108
+ createdAt: string;
1109
+ updatedAt: string;
1110
+ prompt: string;
1111
+ cadence: {
1112
+ type: "every";
1113
+ everyMs: number;
1114
+ } | {
1115
+ type: "cron";
1116
+ expression: string;
1117
+ };
1118
+ target: {
1119
+ agentId: string;
1120
+ type: "agent";
1121
+ } | {
1122
+ type: "new-agent";
1123
+ config: {
1124
+ cwd: string;
1125
+ provider: string;
1126
+ title?: string | null | undefined;
1127
+ modeId?: string | undefined;
1128
+ model?: string | undefined;
1129
+ thinkingOptionId?: string | undefined;
1130
+ approvalPolicy?: string | undefined;
1131
+ sandboxMode?: string | undefined;
1132
+ networkAccess?: boolean | undefined;
1133
+ webSearch?: boolean | undefined;
1134
+ featureValues?: Record<string, unknown> | undefined;
1135
+ extra?: {
1136
+ claude?: Record<string, unknown> | undefined;
1137
+ codex?: Record<string, unknown> | undefined;
1138
+ } | undefined;
1139
+ systemPrompt?: string | undefined;
1140
+ mcpServers?: Record<string, unknown> | undefined;
1141
+ };
1142
+ };
1143
+ nextRunAt: string | null;
1144
+ lastRunAt: string | null;
1145
+ pausedAt: string | null;
1146
+ expiresAt: string | null;
1147
+ maxRuns: number | null;
1148
+ }>, "many">;
1149
+ error: z.ZodNullable<z.ZodString>;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ error: string | null;
1152
+ requestId: string;
1153
+ schedules: {
1154
+ name: string | null;
1155
+ status: "completed" | "active" | "paused";
1156
+ id: string;
1157
+ createdAt: string;
1158
+ updatedAt: string;
1159
+ prompt: string;
1160
+ cadence: {
1161
+ type: "every";
1162
+ everyMs: number;
1163
+ } | {
1164
+ type: "cron";
1165
+ expression: string;
1166
+ };
1167
+ target: {
1168
+ agentId: string;
1169
+ type: "agent";
1170
+ } | {
1171
+ type: "new-agent";
1172
+ config: {
1173
+ cwd: string;
1174
+ provider: string;
1175
+ title?: string | null | undefined;
1176
+ modeId?: string | undefined;
1177
+ model?: string | undefined;
1178
+ thinkingOptionId?: string | undefined;
1179
+ approvalPolicy?: string | undefined;
1180
+ sandboxMode?: string | undefined;
1181
+ networkAccess?: boolean | undefined;
1182
+ webSearch?: boolean | undefined;
1183
+ featureValues?: Record<string, unknown> | undefined;
1184
+ extra?: {
1185
+ claude?: Record<string, unknown> | undefined;
1186
+ codex?: Record<string, unknown> | undefined;
1187
+ } | undefined;
1188
+ systemPrompt?: string | undefined;
1189
+ mcpServers?: Record<string, unknown> | undefined;
1190
+ };
1191
+ };
1192
+ nextRunAt: string | null;
1193
+ lastRunAt: string | null;
1194
+ pausedAt: string | null;
1195
+ expiresAt: string | null;
1196
+ maxRuns: number | null;
1197
+ }[];
1198
+ }, {
1199
+ error: string | null;
1200
+ requestId: string;
1201
+ schedules: {
1202
+ name: string | null;
1203
+ status: "completed" | "active" | "paused";
1204
+ id: string;
1205
+ createdAt: string;
1206
+ updatedAt: string;
1207
+ prompt: string;
1208
+ cadence: {
1209
+ type: "every";
1210
+ everyMs: number;
1211
+ } | {
1212
+ type: "cron";
1213
+ expression: string;
1214
+ };
1215
+ target: {
1216
+ agentId: string;
1217
+ type: "agent";
1218
+ } | {
1219
+ type: "new-agent";
1220
+ config: {
1221
+ cwd: string;
1222
+ provider: string;
1223
+ title?: string | null | undefined;
1224
+ modeId?: string | undefined;
1225
+ model?: string | undefined;
1226
+ thinkingOptionId?: string | undefined;
1227
+ approvalPolicy?: string | undefined;
1228
+ sandboxMode?: string | undefined;
1229
+ networkAccess?: boolean | undefined;
1230
+ webSearch?: boolean | undefined;
1231
+ featureValues?: Record<string, unknown> | undefined;
1232
+ extra?: {
1233
+ claude?: Record<string, unknown> | undefined;
1234
+ codex?: Record<string, unknown> | undefined;
1235
+ } | undefined;
1236
+ systemPrompt?: string | undefined;
1237
+ mcpServers?: Record<string, unknown> | undefined;
1238
+ };
1239
+ };
1240
+ nextRunAt: string | null;
1241
+ lastRunAt: string | null;
1242
+ pausedAt: string | null;
1243
+ expiresAt: string | null;
1244
+ maxRuns: number | null;
1245
+ }[];
1246
+ }>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ type: "schedule/list/response";
1249
+ payload: {
1250
+ error: string | null;
1251
+ requestId: string;
1252
+ schedules: {
1253
+ name: string | null;
1254
+ status: "completed" | "active" | "paused";
1255
+ id: string;
1256
+ createdAt: string;
1257
+ updatedAt: string;
1258
+ prompt: string;
1259
+ cadence: {
1260
+ type: "every";
1261
+ everyMs: number;
1262
+ } | {
1263
+ type: "cron";
1264
+ expression: string;
1265
+ };
1266
+ target: {
1267
+ agentId: string;
1268
+ type: "agent";
1269
+ } | {
1270
+ type: "new-agent";
1271
+ config: {
1272
+ cwd: string;
1273
+ provider: string;
1274
+ title?: string | null | undefined;
1275
+ modeId?: string | undefined;
1276
+ model?: string | undefined;
1277
+ thinkingOptionId?: string | undefined;
1278
+ approvalPolicy?: string | undefined;
1279
+ sandboxMode?: string | undefined;
1280
+ networkAccess?: boolean | undefined;
1281
+ webSearch?: boolean | undefined;
1282
+ featureValues?: Record<string, unknown> | undefined;
1283
+ extra?: {
1284
+ claude?: Record<string, unknown> | undefined;
1285
+ codex?: Record<string, unknown> | undefined;
1286
+ } | undefined;
1287
+ systemPrompt?: string | undefined;
1288
+ mcpServers?: Record<string, unknown> | undefined;
1289
+ };
1290
+ };
1291
+ nextRunAt: string | null;
1292
+ lastRunAt: string | null;
1293
+ pausedAt: string | null;
1294
+ expiresAt: string | null;
1295
+ maxRuns: number | null;
1296
+ }[];
1297
+ };
1298
+ }, {
1299
+ type: "schedule/list/response";
1300
+ payload: {
1301
+ error: string | null;
1302
+ requestId: string;
1303
+ schedules: {
1304
+ name: string | null;
1305
+ status: "completed" | "active" | "paused";
1306
+ id: string;
1307
+ createdAt: string;
1308
+ updatedAt: string;
1309
+ prompt: string;
1310
+ cadence: {
1311
+ type: "every";
1312
+ everyMs: number;
1313
+ } | {
1314
+ type: "cron";
1315
+ expression: string;
1316
+ };
1317
+ target: {
1318
+ agentId: string;
1319
+ type: "agent";
1320
+ } | {
1321
+ type: "new-agent";
1322
+ config: {
1323
+ cwd: string;
1324
+ provider: string;
1325
+ title?: string | null | undefined;
1326
+ modeId?: string | undefined;
1327
+ model?: string | undefined;
1328
+ thinkingOptionId?: string | undefined;
1329
+ approvalPolicy?: string | undefined;
1330
+ sandboxMode?: string | undefined;
1331
+ networkAccess?: boolean | undefined;
1332
+ webSearch?: boolean | undefined;
1333
+ featureValues?: Record<string, unknown> | undefined;
1334
+ extra?: {
1335
+ claude?: Record<string, unknown> | undefined;
1336
+ codex?: Record<string, unknown> | undefined;
1337
+ } | undefined;
1338
+ systemPrompt?: string | undefined;
1339
+ mcpServers?: Record<string, unknown> | undefined;
1340
+ };
1341
+ };
1342
+ nextRunAt: string | null;
1343
+ lastRunAt: string | null;
1344
+ pausedAt: string | null;
1345
+ expiresAt: string | null;
1346
+ maxRuns: number | null;
1347
+ }[];
1348
+ };
1349
+ }>;
1350
+ export declare const ScheduleInspectResponseSchema: z.ZodObject<{
1351
+ type: z.ZodLiteral<"schedule/inspect/response">;
1352
+ payload: z.ZodObject<{
1353
+ requestId: z.ZodString;
1354
+ schedule: z.ZodNullable<z.ZodObject<{
1355
+ id: z.ZodString;
1356
+ name: z.ZodNullable<z.ZodString>;
1357
+ prompt: z.ZodString;
1358
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1359
+ type: z.ZodLiteral<"every">;
1360
+ everyMs: z.ZodNumber;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ type: "every";
1363
+ everyMs: number;
1364
+ }, {
1365
+ type: "every";
1366
+ everyMs: number;
1367
+ }>, z.ZodObject<{
1368
+ type: z.ZodLiteral<"cron">;
1369
+ expression: z.ZodString;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ type: "cron";
1372
+ expression: string;
1373
+ }, {
1374
+ type: "cron";
1375
+ expression: string;
1376
+ }>]>;
1377
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1378
+ type: z.ZodLiteral<"agent">;
1379
+ agentId: z.ZodString;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ agentId: string;
1382
+ type: "agent";
1383
+ }, {
1384
+ agentId: string;
1385
+ type: "agent";
1386
+ }>, z.ZodObject<{
1387
+ type: z.ZodLiteral<"new-agent">;
1388
+ config: z.ZodObject<{
1389
+ provider: z.ZodString;
1390
+ cwd: z.ZodString;
1391
+ modeId: z.ZodOptional<z.ZodString>;
1392
+ model: z.ZodOptional<z.ZodString>;
1393
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
1394
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1395
+ approvalPolicy: z.ZodOptional<z.ZodString>;
1396
+ sandboxMode: z.ZodOptional<z.ZodString>;
1397
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
1398
+ webSearch: z.ZodOptional<z.ZodBoolean>;
1399
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1400
+ extra: z.ZodOptional<z.ZodObject<{
1401
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1402
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ claude?: Record<string, unknown> | undefined;
1405
+ codex?: Record<string, unknown> | undefined;
1406
+ }, {
1407
+ claude?: Record<string, unknown> | undefined;
1408
+ codex?: Record<string, unknown> | undefined;
1409
+ }>>;
1410
+ systemPrompt: z.ZodOptional<z.ZodString>;
1411
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ cwd: string;
1414
+ provider: string;
1415
+ title?: string | null | undefined;
1416
+ modeId?: string | undefined;
1417
+ model?: string | undefined;
1418
+ thinkingOptionId?: string | undefined;
1419
+ approvalPolicy?: string | undefined;
1420
+ sandboxMode?: string | undefined;
1421
+ networkAccess?: boolean | undefined;
1422
+ webSearch?: boolean | undefined;
1423
+ featureValues?: Record<string, unknown> | undefined;
1424
+ extra?: {
1425
+ claude?: Record<string, unknown> | undefined;
1426
+ codex?: Record<string, unknown> | undefined;
1427
+ } | undefined;
1428
+ systemPrompt?: string | undefined;
1429
+ mcpServers?: Record<string, unknown> | undefined;
1430
+ }, {
1431
+ cwd: string;
1432
+ provider: string;
1433
+ title?: string | null | undefined;
1434
+ modeId?: string | undefined;
1435
+ model?: string | undefined;
1436
+ thinkingOptionId?: string | undefined;
1437
+ approvalPolicy?: string | undefined;
1438
+ sandboxMode?: string | undefined;
1439
+ networkAccess?: boolean | undefined;
1440
+ webSearch?: boolean | undefined;
1441
+ featureValues?: Record<string, unknown> | undefined;
1442
+ extra?: {
1443
+ claude?: Record<string, unknown> | undefined;
1444
+ codex?: Record<string, unknown> | undefined;
1445
+ } | undefined;
1446
+ systemPrompt?: string | undefined;
1447
+ mcpServers?: Record<string, unknown> | undefined;
1448
+ }>;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ type: "new-agent";
1451
+ config: {
1452
+ cwd: string;
1453
+ provider: string;
1454
+ title?: string | null | undefined;
1455
+ modeId?: string | undefined;
1456
+ model?: string | undefined;
1457
+ thinkingOptionId?: string | undefined;
1458
+ approvalPolicy?: string | undefined;
1459
+ sandboxMode?: string | undefined;
1460
+ networkAccess?: boolean | undefined;
1461
+ webSearch?: boolean | undefined;
1462
+ featureValues?: Record<string, unknown> | undefined;
1463
+ extra?: {
1464
+ claude?: Record<string, unknown> | undefined;
1465
+ codex?: Record<string, unknown> | undefined;
1466
+ } | undefined;
1467
+ systemPrompt?: string | undefined;
1468
+ mcpServers?: Record<string, unknown> | undefined;
1469
+ };
1470
+ }, {
1471
+ type: "new-agent";
1472
+ config: {
1473
+ cwd: string;
1474
+ provider: string;
1475
+ title?: string | null | undefined;
1476
+ modeId?: string | undefined;
1477
+ model?: string | undefined;
1478
+ thinkingOptionId?: string | undefined;
1479
+ approvalPolicy?: string | undefined;
1480
+ sandboxMode?: string | undefined;
1481
+ networkAccess?: boolean | undefined;
1482
+ webSearch?: boolean | undefined;
1483
+ featureValues?: Record<string, unknown> | undefined;
1484
+ extra?: {
1485
+ claude?: Record<string, unknown> | undefined;
1486
+ codex?: Record<string, unknown> | undefined;
1487
+ } | undefined;
1488
+ systemPrompt?: string | undefined;
1489
+ mcpServers?: Record<string, unknown> | undefined;
1490
+ };
1491
+ }>]>;
1492
+ status: z.ZodEnum<["active", "paused", "completed"]>;
1493
+ createdAt: z.ZodString;
1494
+ updatedAt: z.ZodString;
1495
+ nextRunAt: z.ZodNullable<z.ZodString>;
1496
+ lastRunAt: z.ZodNullable<z.ZodString>;
1497
+ pausedAt: z.ZodNullable<z.ZodString>;
1498
+ expiresAt: z.ZodNullable<z.ZodString>;
1499
+ maxRuns: z.ZodNullable<z.ZodNumber>;
1500
+ runs: z.ZodArray<z.ZodObject<{
1501
+ id: z.ZodString;
1502
+ scheduledFor: z.ZodString;
1503
+ startedAt: z.ZodString;
1504
+ endedAt: z.ZodNullable<z.ZodString>;
1505
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
1506
+ agentId: z.ZodNullable<z.ZodString>;
1507
+ output: z.ZodNullable<z.ZodString>;
1508
+ error: z.ZodNullable<z.ZodString>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ error: string | null;
1511
+ agentId: string | null;
1512
+ status: "running" | "failed" | "succeeded";
1513
+ id: string;
1514
+ scheduledFor: string;
1515
+ startedAt: string;
1516
+ endedAt: string | null;
1517
+ output: string | null;
1518
+ }, {
1519
+ error: string | null;
1520
+ agentId: string | null;
1521
+ status: "running" | "failed" | "succeeded";
1522
+ id: string;
1523
+ scheduledFor: string;
1524
+ startedAt: string;
1525
+ endedAt: string | null;
1526
+ output: string | null;
1527
+ }>, "many">;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ name: string | null;
1530
+ status: "completed" | "active" | "paused";
1531
+ id: string;
1532
+ createdAt: string;
1533
+ updatedAt: string;
1534
+ prompt: string;
1535
+ cadence: {
1536
+ type: "every";
1537
+ everyMs: number;
1538
+ } | {
1539
+ type: "cron";
1540
+ expression: string;
1541
+ };
1542
+ target: {
1543
+ agentId: string;
1544
+ type: "agent";
1545
+ } | {
1546
+ type: "new-agent";
1547
+ config: {
1548
+ cwd: string;
1549
+ provider: string;
1550
+ title?: string | null | undefined;
1551
+ modeId?: string | undefined;
1552
+ model?: string | undefined;
1553
+ thinkingOptionId?: string | undefined;
1554
+ approvalPolicy?: string | undefined;
1555
+ sandboxMode?: string | undefined;
1556
+ networkAccess?: boolean | undefined;
1557
+ webSearch?: boolean | undefined;
1558
+ featureValues?: Record<string, unknown> | undefined;
1559
+ extra?: {
1560
+ claude?: Record<string, unknown> | undefined;
1561
+ codex?: Record<string, unknown> | undefined;
1562
+ } | undefined;
1563
+ systemPrompt?: string | undefined;
1564
+ mcpServers?: Record<string, unknown> | undefined;
1565
+ };
1566
+ };
1567
+ nextRunAt: string | null;
1568
+ lastRunAt: string | null;
1569
+ pausedAt: string | null;
1570
+ expiresAt: string | null;
1571
+ maxRuns: number | null;
1572
+ runs: {
1573
+ error: string | null;
1574
+ agentId: string | null;
1575
+ status: "running" | "failed" | "succeeded";
1576
+ id: string;
1577
+ scheduledFor: string;
1578
+ startedAt: string;
1579
+ endedAt: string | null;
1580
+ output: string | null;
1581
+ }[];
1582
+ }, {
1583
+ name: string | null;
1584
+ status: "completed" | "active" | "paused";
1585
+ id: string;
1586
+ createdAt: string;
1587
+ updatedAt: string;
1588
+ prompt: string;
1589
+ cadence: {
1590
+ type: "every";
1591
+ everyMs: number;
1592
+ } | {
1593
+ type: "cron";
1594
+ expression: string;
1595
+ };
1596
+ target: {
1597
+ agentId: string;
1598
+ type: "agent";
1599
+ } | {
1600
+ type: "new-agent";
1601
+ config: {
1602
+ cwd: string;
1603
+ provider: string;
1604
+ title?: string | null | undefined;
1605
+ modeId?: string | undefined;
1606
+ model?: string | undefined;
1607
+ thinkingOptionId?: string | undefined;
1608
+ approvalPolicy?: string | undefined;
1609
+ sandboxMode?: string | undefined;
1610
+ networkAccess?: boolean | undefined;
1611
+ webSearch?: boolean | undefined;
1612
+ featureValues?: Record<string, unknown> | undefined;
1613
+ extra?: {
1614
+ claude?: Record<string, unknown> | undefined;
1615
+ codex?: Record<string, unknown> | undefined;
1616
+ } | undefined;
1617
+ systemPrompt?: string | undefined;
1618
+ mcpServers?: Record<string, unknown> | undefined;
1619
+ };
1620
+ };
1621
+ nextRunAt: string | null;
1622
+ lastRunAt: string | null;
1623
+ pausedAt: string | null;
1624
+ expiresAt: string | null;
1625
+ maxRuns: number | null;
1626
+ runs: {
1627
+ error: string | null;
1628
+ agentId: string | null;
1629
+ status: "running" | "failed" | "succeeded";
1630
+ id: string;
1631
+ scheduledFor: string;
1632
+ startedAt: string;
1633
+ endedAt: string | null;
1634
+ output: string | null;
1635
+ }[];
1636
+ }>>;
1637
+ error: z.ZodNullable<z.ZodString>;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ error: string | null;
1640
+ requestId: string;
1641
+ schedule: {
1642
+ name: string | null;
1643
+ status: "completed" | "active" | "paused";
1644
+ id: string;
1645
+ createdAt: string;
1646
+ updatedAt: string;
1647
+ prompt: string;
1648
+ cadence: {
1649
+ type: "every";
1650
+ everyMs: number;
1651
+ } | {
1652
+ type: "cron";
1653
+ expression: string;
1654
+ };
1655
+ target: {
1656
+ agentId: string;
1657
+ type: "agent";
1658
+ } | {
1659
+ type: "new-agent";
1660
+ config: {
1661
+ cwd: string;
1662
+ provider: string;
1663
+ title?: string | null | undefined;
1664
+ modeId?: string | undefined;
1665
+ model?: string | undefined;
1666
+ thinkingOptionId?: string | undefined;
1667
+ approvalPolicy?: string | undefined;
1668
+ sandboxMode?: string | undefined;
1669
+ networkAccess?: boolean | undefined;
1670
+ webSearch?: boolean | undefined;
1671
+ featureValues?: Record<string, unknown> | undefined;
1672
+ extra?: {
1673
+ claude?: Record<string, unknown> | undefined;
1674
+ codex?: Record<string, unknown> | undefined;
1675
+ } | undefined;
1676
+ systemPrompt?: string | undefined;
1677
+ mcpServers?: Record<string, unknown> | undefined;
1678
+ };
1679
+ };
1680
+ nextRunAt: string | null;
1681
+ lastRunAt: string | null;
1682
+ pausedAt: string | null;
1683
+ expiresAt: string | null;
1684
+ maxRuns: number | null;
1685
+ runs: {
1686
+ error: string | null;
1687
+ agentId: string | null;
1688
+ status: "running" | "failed" | "succeeded";
1689
+ id: string;
1690
+ scheduledFor: string;
1691
+ startedAt: string;
1692
+ endedAt: string | null;
1693
+ output: string | null;
1694
+ }[];
1695
+ } | null;
1696
+ }, {
1697
+ error: string | null;
1698
+ requestId: string;
1699
+ schedule: {
1700
+ name: string | null;
1701
+ status: "completed" | "active" | "paused";
1702
+ id: string;
1703
+ createdAt: string;
1704
+ updatedAt: string;
1705
+ prompt: string;
1706
+ cadence: {
1707
+ type: "every";
1708
+ everyMs: number;
1709
+ } | {
1710
+ type: "cron";
1711
+ expression: string;
1712
+ };
1713
+ target: {
1714
+ agentId: string;
1715
+ type: "agent";
1716
+ } | {
1717
+ type: "new-agent";
1718
+ config: {
1719
+ cwd: string;
1720
+ provider: string;
1721
+ title?: string | null | undefined;
1722
+ modeId?: string | undefined;
1723
+ model?: string | undefined;
1724
+ thinkingOptionId?: string | undefined;
1725
+ approvalPolicy?: string | undefined;
1726
+ sandboxMode?: string | undefined;
1727
+ networkAccess?: boolean | undefined;
1728
+ webSearch?: boolean | undefined;
1729
+ featureValues?: Record<string, unknown> | undefined;
1730
+ extra?: {
1731
+ claude?: Record<string, unknown> | undefined;
1732
+ codex?: Record<string, unknown> | undefined;
1733
+ } | undefined;
1734
+ systemPrompt?: string | undefined;
1735
+ mcpServers?: Record<string, unknown> | undefined;
1736
+ };
1737
+ };
1738
+ nextRunAt: string | null;
1739
+ lastRunAt: string | null;
1740
+ pausedAt: string | null;
1741
+ expiresAt: string | null;
1742
+ maxRuns: number | null;
1743
+ runs: {
1744
+ error: string | null;
1745
+ agentId: string | null;
1746
+ status: "running" | "failed" | "succeeded";
1747
+ id: string;
1748
+ scheduledFor: string;
1749
+ startedAt: string;
1750
+ endedAt: string | null;
1751
+ output: string | null;
1752
+ }[];
1753
+ } | null;
1754
+ }>;
1755
+ }, "strip", z.ZodTypeAny, {
1756
+ type: "schedule/inspect/response";
1757
+ payload: {
1758
+ error: string | null;
1759
+ requestId: string;
1760
+ schedule: {
1761
+ name: string | null;
1762
+ status: "completed" | "active" | "paused";
1763
+ id: string;
1764
+ createdAt: string;
1765
+ updatedAt: string;
1766
+ prompt: string;
1767
+ cadence: {
1768
+ type: "every";
1769
+ everyMs: number;
1770
+ } | {
1771
+ type: "cron";
1772
+ expression: string;
1773
+ };
1774
+ target: {
1775
+ agentId: string;
1776
+ type: "agent";
1777
+ } | {
1778
+ type: "new-agent";
1779
+ config: {
1780
+ cwd: string;
1781
+ provider: string;
1782
+ title?: string | null | undefined;
1783
+ modeId?: string | undefined;
1784
+ model?: string | undefined;
1785
+ thinkingOptionId?: string | undefined;
1786
+ approvalPolicy?: string | undefined;
1787
+ sandboxMode?: string | undefined;
1788
+ networkAccess?: boolean | undefined;
1789
+ webSearch?: boolean | undefined;
1790
+ featureValues?: Record<string, unknown> | undefined;
1791
+ extra?: {
1792
+ claude?: Record<string, unknown> | undefined;
1793
+ codex?: Record<string, unknown> | undefined;
1794
+ } | undefined;
1795
+ systemPrompt?: string | undefined;
1796
+ mcpServers?: Record<string, unknown> | undefined;
1797
+ };
1798
+ };
1799
+ nextRunAt: string | null;
1800
+ lastRunAt: string | null;
1801
+ pausedAt: string | null;
1802
+ expiresAt: string | null;
1803
+ maxRuns: number | null;
1804
+ runs: {
1805
+ error: string | null;
1806
+ agentId: string | null;
1807
+ status: "running" | "failed" | "succeeded";
1808
+ id: string;
1809
+ scheduledFor: string;
1810
+ startedAt: string;
1811
+ endedAt: string | null;
1812
+ output: string | null;
1813
+ }[];
1814
+ } | null;
1815
+ };
1816
+ }, {
1817
+ type: "schedule/inspect/response";
1818
+ payload: {
1819
+ error: string | null;
1820
+ requestId: string;
1821
+ schedule: {
1822
+ name: string | null;
1823
+ status: "completed" | "active" | "paused";
1824
+ id: string;
1825
+ createdAt: string;
1826
+ updatedAt: string;
1827
+ prompt: string;
1828
+ cadence: {
1829
+ type: "every";
1830
+ everyMs: number;
1831
+ } | {
1832
+ type: "cron";
1833
+ expression: string;
1834
+ };
1835
+ target: {
1836
+ agentId: string;
1837
+ type: "agent";
1838
+ } | {
1839
+ type: "new-agent";
1840
+ config: {
1841
+ cwd: string;
1842
+ provider: string;
1843
+ title?: string | null | undefined;
1844
+ modeId?: string | undefined;
1845
+ model?: string | undefined;
1846
+ thinkingOptionId?: string | undefined;
1847
+ approvalPolicy?: string | undefined;
1848
+ sandboxMode?: string | undefined;
1849
+ networkAccess?: boolean | undefined;
1850
+ webSearch?: boolean | undefined;
1851
+ featureValues?: Record<string, unknown> | undefined;
1852
+ extra?: {
1853
+ claude?: Record<string, unknown> | undefined;
1854
+ codex?: Record<string, unknown> | undefined;
1855
+ } | undefined;
1856
+ systemPrompt?: string | undefined;
1857
+ mcpServers?: Record<string, unknown> | undefined;
1858
+ };
1859
+ };
1860
+ nextRunAt: string | null;
1861
+ lastRunAt: string | null;
1862
+ pausedAt: string | null;
1863
+ expiresAt: string | null;
1864
+ maxRuns: number | null;
1865
+ runs: {
1866
+ error: string | null;
1867
+ agentId: string | null;
1868
+ status: "running" | "failed" | "succeeded";
1869
+ id: string;
1870
+ scheduledFor: string;
1871
+ startedAt: string;
1872
+ endedAt: string | null;
1873
+ output: string | null;
1874
+ }[];
1875
+ } | null;
1876
+ };
1877
+ }>;
1878
+ export declare const ScheduleLogsResponseSchema: z.ZodObject<{
1879
+ type: z.ZodLiteral<"schedule/logs/response">;
1880
+ payload: z.ZodObject<{
1881
+ requestId: z.ZodString;
1882
+ runs: z.ZodArray<z.ZodObject<{
1883
+ id: z.ZodString;
1884
+ scheduledFor: z.ZodString;
1885
+ startedAt: z.ZodString;
1886
+ endedAt: z.ZodNullable<z.ZodString>;
1887
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
1888
+ agentId: z.ZodNullable<z.ZodString>;
1889
+ output: z.ZodNullable<z.ZodString>;
1890
+ error: z.ZodNullable<z.ZodString>;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ error: string | null;
1893
+ agentId: string | null;
1894
+ status: "running" | "failed" | "succeeded";
1895
+ id: string;
1896
+ scheduledFor: string;
1897
+ startedAt: string;
1898
+ endedAt: string | null;
1899
+ output: string | null;
1900
+ }, {
1901
+ error: string | null;
1902
+ agentId: string | null;
1903
+ status: "running" | "failed" | "succeeded";
1904
+ id: string;
1905
+ scheduledFor: string;
1906
+ startedAt: string;
1907
+ endedAt: string | null;
1908
+ output: string | null;
1909
+ }>, "many">;
1910
+ error: z.ZodNullable<z.ZodString>;
1911
+ }, "strip", z.ZodTypeAny, {
1912
+ error: string | null;
1913
+ requestId: string;
1914
+ runs: {
1915
+ error: string | null;
1916
+ agentId: string | null;
1917
+ status: "running" | "failed" | "succeeded";
1918
+ id: string;
1919
+ scheduledFor: string;
1920
+ startedAt: string;
1921
+ endedAt: string | null;
1922
+ output: string | null;
1923
+ }[];
1924
+ }, {
1925
+ error: string | null;
1926
+ requestId: string;
1927
+ runs: {
1928
+ error: string | null;
1929
+ agentId: string | null;
1930
+ status: "running" | "failed" | "succeeded";
1931
+ id: string;
1932
+ scheduledFor: string;
1933
+ startedAt: string;
1934
+ endedAt: string | null;
1935
+ output: string | null;
1936
+ }[];
1937
+ }>;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ type: "schedule/logs/response";
1940
+ payload: {
1941
+ error: string | null;
1942
+ requestId: string;
1943
+ runs: {
1944
+ error: string | null;
1945
+ agentId: string | null;
1946
+ status: "running" | "failed" | "succeeded";
1947
+ id: string;
1948
+ scheduledFor: string;
1949
+ startedAt: string;
1950
+ endedAt: string | null;
1951
+ output: string | null;
1952
+ }[];
1953
+ };
1954
+ }, {
1955
+ type: "schedule/logs/response";
1956
+ payload: {
1957
+ error: string | null;
1958
+ requestId: string;
1959
+ runs: {
1960
+ error: string | null;
1961
+ agentId: string | null;
1962
+ status: "running" | "failed" | "succeeded";
1963
+ id: string;
1964
+ scheduledFor: string;
1965
+ startedAt: string;
1966
+ endedAt: string | null;
1967
+ output: string | null;
1968
+ }[];
1969
+ };
1970
+ }>;
1971
+ export declare const SchedulePauseResponseSchema: z.ZodObject<{
1972
+ type: z.ZodLiteral<"schedule/pause/response">;
1973
+ payload: z.ZodObject<{
1974
+ requestId: z.ZodString;
1975
+ schedule: z.ZodNullable<z.ZodObject<Omit<{
1976
+ id: z.ZodString;
1977
+ name: z.ZodNullable<z.ZodString>;
1978
+ prompt: z.ZodString;
1979
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1980
+ type: z.ZodLiteral<"every">;
1981
+ everyMs: z.ZodNumber;
1982
+ }, "strip", z.ZodTypeAny, {
1983
+ type: "every";
1984
+ everyMs: number;
1985
+ }, {
1986
+ type: "every";
1987
+ everyMs: number;
1988
+ }>, z.ZodObject<{
1989
+ type: z.ZodLiteral<"cron">;
1990
+ expression: z.ZodString;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ type: "cron";
1993
+ expression: string;
1994
+ }, {
1995
+ type: "cron";
1996
+ expression: string;
1997
+ }>]>;
1998
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1999
+ type: z.ZodLiteral<"agent">;
2000
+ agentId: z.ZodString;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ agentId: string;
2003
+ type: "agent";
2004
+ }, {
2005
+ agentId: string;
2006
+ type: "agent";
2007
+ }>, z.ZodObject<{
2008
+ type: z.ZodLiteral<"new-agent">;
2009
+ config: z.ZodObject<{
2010
+ provider: z.ZodString;
2011
+ cwd: z.ZodString;
2012
+ modeId: z.ZodOptional<z.ZodString>;
2013
+ model: z.ZodOptional<z.ZodString>;
2014
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
2015
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2016
+ approvalPolicy: z.ZodOptional<z.ZodString>;
2017
+ sandboxMode: z.ZodOptional<z.ZodString>;
2018
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
2019
+ webSearch: z.ZodOptional<z.ZodBoolean>;
2020
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2021
+ extra: z.ZodOptional<z.ZodObject<{
2022
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2023
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2024
+ }, "strip", z.ZodTypeAny, {
2025
+ claude?: Record<string, unknown> | undefined;
2026
+ codex?: Record<string, unknown> | undefined;
2027
+ }, {
2028
+ claude?: Record<string, unknown> | undefined;
2029
+ codex?: Record<string, unknown> | undefined;
2030
+ }>>;
2031
+ systemPrompt: z.ZodOptional<z.ZodString>;
2032
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ cwd: string;
2035
+ provider: string;
2036
+ title?: string | null | undefined;
2037
+ modeId?: string | undefined;
2038
+ model?: string | undefined;
2039
+ thinkingOptionId?: string | undefined;
2040
+ approvalPolicy?: string | undefined;
2041
+ sandboxMode?: string | undefined;
2042
+ networkAccess?: boolean | undefined;
2043
+ webSearch?: boolean | undefined;
2044
+ featureValues?: Record<string, unknown> | undefined;
2045
+ extra?: {
2046
+ claude?: Record<string, unknown> | undefined;
2047
+ codex?: Record<string, unknown> | undefined;
2048
+ } | undefined;
2049
+ systemPrompt?: string | undefined;
2050
+ mcpServers?: Record<string, unknown> | undefined;
2051
+ }, {
2052
+ cwd: string;
2053
+ provider: string;
2054
+ title?: string | null | undefined;
2055
+ modeId?: string | undefined;
2056
+ model?: string | undefined;
2057
+ thinkingOptionId?: string | undefined;
2058
+ approvalPolicy?: string | undefined;
2059
+ sandboxMode?: string | undefined;
2060
+ networkAccess?: boolean | undefined;
2061
+ webSearch?: boolean | undefined;
2062
+ featureValues?: Record<string, unknown> | undefined;
2063
+ extra?: {
2064
+ claude?: Record<string, unknown> | undefined;
2065
+ codex?: Record<string, unknown> | undefined;
2066
+ } | undefined;
2067
+ systemPrompt?: string | undefined;
2068
+ mcpServers?: Record<string, unknown> | undefined;
2069
+ }>;
2070
+ }, "strip", z.ZodTypeAny, {
2071
+ type: "new-agent";
2072
+ config: {
2073
+ cwd: string;
2074
+ provider: string;
2075
+ title?: string | null | undefined;
2076
+ modeId?: string | undefined;
2077
+ model?: string | undefined;
2078
+ thinkingOptionId?: string | undefined;
2079
+ approvalPolicy?: string | undefined;
2080
+ sandboxMode?: string | undefined;
2081
+ networkAccess?: boolean | undefined;
2082
+ webSearch?: boolean | undefined;
2083
+ featureValues?: Record<string, unknown> | undefined;
2084
+ extra?: {
2085
+ claude?: Record<string, unknown> | undefined;
2086
+ codex?: Record<string, unknown> | undefined;
2087
+ } | undefined;
2088
+ systemPrompt?: string | undefined;
2089
+ mcpServers?: Record<string, unknown> | undefined;
2090
+ };
2091
+ }, {
2092
+ type: "new-agent";
2093
+ config: {
2094
+ cwd: string;
2095
+ provider: string;
2096
+ title?: string | null | undefined;
2097
+ modeId?: string | undefined;
2098
+ model?: string | undefined;
2099
+ thinkingOptionId?: string | undefined;
2100
+ approvalPolicy?: string | undefined;
2101
+ sandboxMode?: string | undefined;
2102
+ networkAccess?: boolean | undefined;
2103
+ webSearch?: boolean | undefined;
2104
+ featureValues?: Record<string, unknown> | undefined;
2105
+ extra?: {
2106
+ claude?: Record<string, unknown> | undefined;
2107
+ codex?: Record<string, unknown> | undefined;
2108
+ } | undefined;
2109
+ systemPrompt?: string | undefined;
2110
+ mcpServers?: Record<string, unknown> | undefined;
2111
+ };
2112
+ }>]>;
2113
+ status: z.ZodEnum<["active", "paused", "completed"]>;
2114
+ createdAt: z.ZodString;
2115
+ updatedAt: z.ZodString;
2116
+ nextRunAt: z.ZodNullable<z.ZodString>;
2117
+ lastRunAt: z.ZodNullable<z.ZodString>;
2118
+ pausedAt: z.ZodNullable<z.ZodString>;
2119
+ expiresAt: z.ZodNullable<z.ZodString>;
2120
+ maxRuns: z.ZodNullable<z.ZodNumber>;
2121
+ runs: z.ZodArray<z.ZodObject<{
2122
+ id: z.ZodString;
2123
+ scheduledFor: z.ZodString;
2124
+ startedAt: z.ZodString;
2125
+ endedAt: z.ZodNullable<z.ZodString>;
2126
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
2127
+ agentId: z.ZodNullable<z.ZodString>;
2128
+ output: z.ZodNullable<z.ZodString>;
2129
+ error: z.ZodNullable<z.ZodString>;
2130
+ }, "strip", z.ZodTypeAny, {
2131
+ error: string | null;
2132
+ agentId: string | null;
2133
+ status: "running" | "failed" | "succeeded";
2134
+ id: string;
2135
+ scheduledFor: string;
2136
+ startedAt: string;
2137
+ endedAt: string | null;
2138
+ output: string | null;
2139
+ }, {
2140
+ error: string | null;
2141
+ agentId: string | null;
2142
+ status: "running" | "failed" | "succeeded";
2143
+ id: string;
2144
+ scheduledFor: string;
2145
+ startedAt: string;
2146
+ endedAt: string | null;
2147
+ output: string | null;
2148
+ }>, "many">;
2149
+ }, "runs">, "strip", z.ZodTypeAny, {
2150
+ name: string | null;
2151
+ status: "completed" | "active" | "paused";
2152
+ id: string;
2153
+ createdAt: string;
2154
+ updatedAt: string;
2155
+ prompt: string;
2156
+ cadence: {
2157
+ type: "every";
2158
+ everyMs: number;
2159
+ } | {
2160
+ type: "cron";
2161
+ expression: string;
2162
+ };
2163
+ target: {
2164
+ agentId: string;
2165
+ type: "agent";
2166
+ } | {
2167
+ type: "new-agent";
2168
+ config: {
2169
+ cwd: string;
2170
+ provider: string;
2171
+ title?: string | null | undefined;
2172
+ modeId?: string | undefined;
2173
+ model?: string | undefined;
2174
+ thinkingOptionId?: string | undefined;
2175
+ approvalPolicy?: string | undefined;
2176
+ sandboxMode?: string | undefined;
2177
+ networkAccess?: boolean | undefined;
2178
+ webSearch?: boolean | undefined;
2179
+ featureValues?: Record<string, unknown> | undefined;
2180
+ extra?: {
2181
+ claude?: Record<string, unknown> | undefined;
2182
+ codex?: Record<string, unknown> | undefined;
2183
+ } | undefined;
2184
+ systemPrompt?: string | undefined;
2185
+ mcpServers?: Record<string, unknown> | undefined;
2186
+ };
2187
+ };
2188
+ nextRunAt: string | null;
2189
+ lastRunAt: string | null;
2190
+ pausedAt: string | null;
2191
+ expiresAt: string | null;
2192
+ maxRuns: number | null;
2193
+ }, {
2194
+ name: string | null;
2195
+ status: "completed" | "active" | "paused";
2196
+ id: string;
2197
+ createdAt: string;
2198
+ updatedAt: string;
2199
+ prompt: string;
2200
+ cadence: {
2201
+ type: "every";
2202
+ everyMs: number;
2203
+ } | {
2204
+ type: "cron";
2205
+ expression: string;
2206
+ };
2207
+ target: {
2208
+ agentId: string;
2209
+ type: "agent";
2210
+ } | {
2211
+ type: "new-agent";
2212
+ config: {
2213
+ cwd: string;
2214
+ provider: string;
2215
+ title?: string | null | undefined;
2216
+ modeId?: string | undefined;
2217
+ model?: string | undefined;
2218
+ thinkingOptionId?: string | undefined;
2219
+ approvalPolicy?: string | undefined;
2220
+ sandboxMode?: string | undefined;
2221
+ networkAccess?: boolean | undefined;
2222
+ webSearch?: boolean | undefined;
2223
+ featureValues?: Record<string, unknown> | undefined;
2224
+ extra?: {
2225
+ claude?: Record<string, unknown> | undefined;
2226
+ codex?: Record<string, unknown> | undefined;
2227
+ } | undefined;
2228
+ systemPrompt?: string | undefined;
2229
+ mcpServers?: Record<string, unknown> | undefined;
2230
+ };
2231
+ };
2232
+ nextRunAt: string | null;
2233
+ lastRunAt: string | null;
2234
+ pausedAt: string | null;
2235
+ expiresAt: string | null;
2236
+ maxRuns: number | null;
2237
+ }>>;
2238
+ error: z.ZodNullable<z.ZodString>;
2239
+ }, "strip", z.ZodTypeAny, {
2240
+ error: string | null;
2241
+ requestId: string;
2242
+ schedule: {
2243
+ name: string | null;
2244
+ status: "completed" | "active" | "paused";
2245
+ id: string;
2246
+ createdAt: string;
2247
+ updatedAt: string;
2248
+ prompt: string;
2249
+ cadence: {
2250
+ type: "every";
2251
+ everyMs: number;
2252
+ } | {
2253
+ type: "cron";
2254
+ expression: string;
2255
+ };
2256
+ target: {
2257
+ agentId: string;
2258
+ type: "agent";
2259
+ } | {
2260
+ type: "new-agent";
2261
+ config: {
2262
+ cwd: string;
2263
+ provider: string;
2264
+ title?: string | null | undefined;
2265
+ modeId?: string | undefined;
2266
+ model?: string | undefined;
2267
+ thinkingOptionId?: string | undefined;
2268
+ approvalPolicy?: string | undefined;
2269
+ sandboxMode?: string | undefined;
2270
+ networkAccess?: boolean | undefined;
2271
+ webSearch?: boolean | undefined;
2272
+ featureValues?: Record<string, unknown> | undefined;
2273
+ extra?: {
2274
+ claude?: Record<string, unknown> | undefined;
2275
+ codex?: Record<string, unknown> | undefined;
2276
+ } | undefined;
2277
+ systemPrompt?: string | undefined;
2278
+ mcpServers?: Record<string, unknown> | undefined;
2279
+ };
2280
+ };
2281
+ nextRunAt: string | null;
2282
+ lastRunAt: string | null;
2283
+ pausedAt: string | null;
2284
+ expiresAt: string | null;
2285
+ maxRuns: number | null;
2286
+ } | null;
2287
+ }, {
2288
+ error: string | null;
2289
+ requestId: string;
2290
+ schedule: {
2291
+ name: string | null;
2292
+ status: "completed" | "active" | "paused";
2293
+ id: string;
2294
+ createdAt: string;
2295
+ updatedAt: string;
2296
+ prompt: string;
2297
+ cadence: {
2298
+ type: "every";
2299
+ everyMs: number;
2300
+ } | {
2301
+ type: "cron";
2302
+ expression: string;
2303
+ };
2304
+ target: {
2305
+ agentId: string;
2306
+ type: "agent";
2307
+ } | {
2308
+ type: "new-agent";
2309
+ config: {
2310
+ cwd: string;
2311
+ provider: string;
2312
+ title?: string | null | undefined;
2313
+ modeId?: string | undefined;
2314
+ model?: string | undefined;
2315
+ thinkingOptionId?: string | undefined;
2316
+ approvalPolicy?: string | undefined;
2317
+ sandboxMode?: string | undefined;
2318
+ networkAccess?: boolean | undefined;
2319
+ webSearch?: boolean | undefined;
2320
+ featureValues?: Record<string, unknown> | undefined;
2321
+ extra?: {
2322
+ claude?: Record<string, unknown> | undefined;
2323
+ codex?: Record<string, unknown> | undefined;
2324
+ } | undefined;
2325
+ systemPrompt?: string | undefined;
2326
+ mcpServers?: Record<string, unknown> | undefined;
2327
+ };
2328
+ };
2329
+ nextRunAt: string | null;
2330
+ lastRunAt: string | null;
2331
+ pausedAt: string | null;
2332
+ expiresAt: string | null;
2333
+ maxRuns: number | null;
2334
+ } | null;
2335
+ }>;
2336
+ }, "strip", z.ZodTypeAny, {
2337
+ type: "schedule/pause/response";
2338
+ payload: {
2339
+ error: string | null;
2340
+ requestId: string;
2341
+ schedule: {
2342
+ name: string | null;
2343
+ status: "completed" | "active" | "paused";
2344
+ id: string;
2345
+ createdAt: string;
2346
+ updatedAt: string;
2347
+ prompt: string;
2348
+ cadence: {
2349
+ type: "every";
2350
+ everyMs: number;
2351
+ } | {
2352
+ type: "cron";
2353
+ expression: string;
2354
+ };
2355
+ target: {
2356
+ agentId: string;
2357
+ type: "agent";
2358
+ } | {
2359
+ type: "new-agent";
2360
+ config: {
2361
+ cwd: string;
2362
+ provider: string;
2363
+ title?: string | null | undefined;
2364
+ modeId?: string | undefined;
2365
+ model?: string | undefined;
2366
+ thinkingOptionId?: string | undefined;
2367
+ approvalPolicy?: string | undefined;
2368
+ sandboxMode?: string | undefined;
2369
+ networkAccess?: boolean | undefined;
2370
+ webSearch?: boolean | undefined;
2371
+ featureValues?: Record<string, unknown> | undefined;
2372
+ extra?: {
2373
+ claude?: Record<string, unknown> | undefined;
2374
+ codex?: Record<string, unknown> | undefined;
2375
+ } | undefined;
2376
+ systemPrompt?: string | undefined;
2377
+ mcpServers?: Record<string, unknown> | undefined;
2378
+ };
2379
+ };
2380
+ nextRunAt: string | null;
2381
+ lastRunAt: string | null;
2382
+ pausedAt: string | null;
2383
+ expiresAt: string | null;
2384
+ maxRuns: number | null;
2385
+ } | null;
2386
+ };
2387
+ }, {
2388
+ type: "schedule/pause/response";
2389
+ payload: {
2390
+ error: string | null;
2391
+ requestId: string;
2392
+ schedule: {
2393
+ name: string | null;
2394
+ status: "completed" | "active" | "paused";
2395
+ id: string;
2396
+ createdAt: string;
2397
+ updatedAt: string;
2398
+ prompt: string;
2399
+ cadence: {
2400
+ type: "every";
2401
+ everyMs: number;
2402
+ } | {
2403
+ type: "cron";
2404
+ expression: string;
2405
+ };
2406
+ target: {
2407
+ agentId: string;
2408
+ type: "agent";
2409
+ } | {
2410
+ type: "new-agent";
2411
+ config: {
2412
+ cwd: string;
2413
+ provider: string;
2414
+ title?: string | null | undefined;
2415
+ modeId?: string | undefined;
2416
+ model?: string | undefined;
2417
+ thinkingOptionId?: string | undefined;
2418
+ approvalPolicy?: string | undefined;
2419
+ sandboxMode?: string | undefined;
2420
+ networkAccess?: boolean | undefined;
2421
+ webSearch?: boolean | undefined;
2422
+ featureValues?: Record<string, unknown> | undefined;
2423
+ extra?: {
2424
+ claude?: Record<string, unknown> | undefined;
2425
+ codex?: Record<string, unknown> | undefined;
2426
+ } | undefined;
2427
+ systemPrompt?: string | undefined;
2428
+ mcpServers?: Record<string, unknown> | undefined;
2429
+ };
2430
+ };
2431
+ nextRunAt: string | null;
2432
+ lastRunAt: string | null;
2433
+ pausedAt: string | null;
2434
+ expiresAt: string | null;
2435
+ maxRuns: number | null;
2436
+ } | null;
2437
+ };
2438
+ }>;
2439
+ export declare const ScheduleResumeResponseSchema: z.ZodObject<{
2440
+ type: z.ZodLiteral<"schedule/resume/response">;
2441
+ payload: z.ZodObject<{
2442
+ requestId: z.ZodString;
2443
+ schedule: z.ZodNullable<z.ZodObject<Omit<{
2444
+ id: z.ZodString;
2445
+ name: z.ZodNullable<z.ZodString>;
2446
+ prompt: z.ZodString;
2447
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2448
+ type: z.ZodLiteral<"every">;
2449
+ everyMs: z.ZodNumber;
2450
+ }, "strip", z.ZodTypeAny, {
2451
+ type: "every";
2452
+ everyMs: number;
2453
+ }, {
2454
+ type: "every";
2455
+ everyMs: number;
2456
+ }>, z.ZodObject<{
2457
+ type: z.ZodLiteral<"cron">;
2458
+ expression: z.ZodString;
2459
+ }, "strip", z.ZodTypeAny, {
2460
+ type: "cron";
2461
+ expression: string;
2462
+ }, {
2463
+ type: "cron";
2464
+ expression: string;
2465
+ }>]>;
2466
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2467
+ type: z.ZodLiteral<"agent">;
2468
+ agentId: z.ZodString;
2469
+ }, "strip", z.ZodTypeAny, {
2470
+ agentId: string;
2471
+ type: "agent";
2472
+ }, {
2473
+ agentId: string;
2474
+ type: "agent";
2475
+ }>, z.ZodObject<{
2476
+ type: z.ZodLiteral<"new-agent">;
2477
+ config: z.ZodObject<{
2478
+ provider: z.ZodString;
2479
+ cwd: z.ZodString;
2480
+ modeId: z.ZodOptional<z.ZodString>;
2481
+ model: z.ZodOptional<z.ZodString>;
2482
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
2483
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2484
+ approvalPolicy: z.ZodOptional<z.ZodString>;
2485
+ sandboxMode: z.ZodOptional<z.ZodString>;
2486
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
2487
+ webSearch: z.ZodOptional<z.ZodBoolean>;
2488
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2489
+ extra: z.ZodOptional<z.ZodObject<{
2490
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2491
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2492
+ }, "strip", z.ZodTypeAny, {
2493
+ claude?: Record<string, unknown> | undefined;
2494
+ codex?: Record<string, unknown> | undefined;
2495
+ }, {
2496
+ claude?: Record<string, unknown> | undefined;
2497
+ codex?: Record<string, unknown> | undefined;
2498
+ }>>;
2499
+ systemPrompt: z.ZodOptional<z.ZodString>;
2500
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2501
+ }, "strip", z.ZodTypeAny, {
2502
+ cwd: string;
2503
+ provider: string;
2504
+ title?: string | null | undefined;
2505
+ modeId?: string | undefined;
2506
+ model?: string | undefined;
2507
+ thinkingOptionId?: string | undefined;
2508
+ approvalPolicy?: string | undefined;
2509
+ sandboxMode?: string | undefined;
2510
+ networkAccess?: boolean | undefined;
2511
+ webSearch?: boolean | undefined;
2512
+ featureValues?: Record<string, unknown> | undefined;
2513
+ extra?: {
2514
+ claude?: Record<string, unknown> | undefined;
2515
+ codex?: Record<string, unknown> | undefined;
2516
+ } | undefined;
2517
+ systemPrompt?: string | undefined;
2518
+ mcpServers?: Record<string, unknown> | undefined;
2519
+ }, {
2520
+ cwd: string;
2521
+ provider: string;
2522
+ title?: string | null | undefined;
2523
+ modeId?: string | undefined;
2524
+ model?: string | undefined;
2525
+ thinkingOptionId?: string | undefined;
2526
+ approvalPolicy?: string | undefined;
2527
+ sandboxMode?: string | undefined;
2528
+ networkAccess?: boolean | undefined;
2529
+ webSearch?: boolean | undefined;
2530
+ featureValues?: Record<string, unknown> | undefined;
2531
+ extra?: {
2532
+ claude?: Record<string, unknown> | undefined;
2533
+ codex?: Record<string, unknown> | undefined;
2534
+ } | undefined;
2535
+ systemPrompt?: string | undefined;
2536
+ mcpServers?: Record<string, unknown> | undefined;
2537
+ }>;
2538
+ }, "strip", z.ZodTypeAny, {
2539
+ type: "new-agent";
2540
+ config: {
2541
+ cwd: string;
2542
+ provider: string;
2543
+ title?: string | null | undefined;
2544
+ modeId?: string | undefined;
2545
+ model?: string | undefined;
2546
+ thinkingOptionId?: string | undefined;
2547
+ approvalPolicy?: string | undefined;
2548
+ sandboxMode?: string | undefined;
2549
+ networkAccess?: boolean | undefined;
2550
+ webSearch?: boolean | undefined;
2551
+ featureValues?: Record<string, unknown> | undefined;
2552
+ extra?: {
2553
+ claude?: Record<string, unknown> | undefined;
2554
+ codex?: Record<string, unknown> | undefined;
2555
+ } | undefined;
2556
+ systemPrompt?: string | undefined;
2557
+ mcpServers?: Record<string, unknown> | undefined;
2558
+ };
2559
+ }, {
2560
+ type: "new-agent";
2561
+ config: {
2562
+ cwd: string;
2563
+ provider: string;
2564
+ title?: string | null | undefined;
2565
+ modeId?: string | undefined;
2566
+ model?: string | undefined;
2567
+ thinkingOptionId?: string | undefined;
2568
+ approvalPolicy?: string | undefined;
2569
+ sandboxMode?: string | undefined;
2570
+ networkAccess?: boolean | undefined;
2571
+ webSearch?: boolean | undefined;
2572
+ featureValues?: Record<string, unknown> | undefined;
2573
+ extra?: {
2574
+ claude?: Record<string, unknown> | undefined;
2575
+ codex?: Record<string, unknown> | undefined;
2576
+ } | undefined;
2577
+ systemPrompt?: string | undefined;
2578
+ mcpServers?: Record<string, unknown> | undefined;
2579
+ };
2580
+ }>]>;
2581
+ status: z.ZodEnum<["active", "paused", "completed"]>;
2582
+ createdAt: z.ZodString;
2583
+ updatedAt: z.ZodString;
2584
+ nextRunAt: z.ZodNullable<z.ZodString>;
2585
+ lastRunAt: z.ZodNullable<z.ZodString>;
2586
+ pausedAt: z.ZodNullable<z.ZodString>;
2587
+ expiresAt: z.ZodNullable<z.ZodString>;
2588
+ maxRuns: z.ZodNullable<z.ZodNumber>;
2589
+ runs: z.ZodArray<z.ZodObject<{
2590
+ id: z.ZodString;
2591
+ scheduledFor: z.ZodString;
2592
+ startedAt: z.ZodString;
2593
+ endedAt: z.ZodNullable<z.ZodString>;
2594
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
2595
+ agentId: z.ZodNullable<z.ZodString>;
2596
+ output: z.ZodNullable<z.ZodString>;
2597
+ error: z.ZodNullable<z.ZodString>;
2598
+ }, "strip", z.ZodTypeAny, {
2599
+ error: string | null;
2600
+ agentId: string | null;
2601
+ status: "running" | "failed" | "succeeded";
2602
+ id: string;
2603
+ scheduledFor: string;
2604
+ startedAt: string;
2605
+ endedAt: string | null;
2606
+ output: string | null;
2607
+ }, {
2608
+ error: string | null;
2609
+ agentId: string | null;
2610
+ status: "running" | "failed" | "succeeded";
2611
+ id: string;
2612
+ scheduledFor: string;
2613
+ startedAt: string;
2614
+ endedAt: string | null;
2615
+ output: string | null;
2616
+ }>, "many">;
2617
+ }, "runs">, "strip", z.ZodTypeAny, {
2618
+ name: string | null;
2619
+ status: "completed" | "active" | "paused";
2620
+ id: string;
2621
+ createdAt: string;
2622
+ updatedAt: string;
2623
+ prompt: string;
2624
+ cadence: {
2625
+ type: "every";
2626
+ everyMs: number;
2627
+ } | {
2628
+ type: "cron";
2629
+ expression: string;
2630
+ };
2631
+ target: {
2632
+ agentId: string;
2633
+ type: "agent";
2634
+ } | {
2635
+ type: "new-agent";
2636
+ config: {
2637
+ cwd: string;
2638
+ provider: string;
2639
+ title?: string | null | undefined;
2640
+ modeId?: string | undefined;
2641
+ model?: string | undefined;
2642
+ thinkingOptionId?: string | undefined;
2643
+ approvalPolicy?: string | undefined;
2644
+ sandboxMode?: string | undefined;
2645
+ networkAccess?: boolean | undefined;
2646
+ webSearch?: boolean | undefined;
2647
+ featureValues?: Record<string, unknown> | undefined;
2648
+ extra?: {
2649
+ claude?: Record<string, unknown> | undefined;
2650
+ codex?: Record<string, unknown> | undefined;
2651
+ } | undefined;
2652
+ systemPrompt?: string | undefined;
2653
+ mcpServers?: Record<string, unknown> | undefined;
2654
+ };
2655
+ };
2656
+ nextRunAt: string | null;
2657
+ lastRunAt: string | null;
2658
+ pausedAt: string | null;
2659
+ expiresAt: string | null;
2660
+ maxRuns: number | null;
2661
+ }, {
2662
+ name: string | null;
2663
+ status: "completed" | "active" | "paused";
2664
+ id: string;
2665
+ createdAt: string;
2666
+ updatedAt: string;
2667
+ prompt: string;
2668
+ cadence: {
2669
+ type: "every";
2670
+ everyMs: number;
2671
+ } | {
2672
+ type: "cron";
2673
+ expression: string;
2674
+ };
2675
+ target: {
2676
+ agentId: string;
2677
+ type: "agent";
2678
+ } | {
2679
+ type: "new-agent";
2680
+ config: {
2681
+ cwd: string;
2682
+ provider: string;
2683
+ title?: string | null | undefined;
2684
+ modeId?: string | undefined;
2685
+ model?: string | undefined;
2686
+ thinkingOptionId?: string | undefined;
2687
+ approvalPolicy?: string | undefined;
2688
+ sandboxMode?: string | undefined;
2689
+ networkAccess?: boolean | undefined;
2690
+ webSearch?: boolean | undefined;
2691
+ featureValues?: Record<string, unknown> | undefined;
2692
+ extra?: {
2693
+ claude?: Record<string, unknown> | undefined;
2694
+ codex?: Record<string, unknown> | undefined;
2695
+ } | undefined;
2696
+ systemPrompt?: string | undefined;
2697
+ mcpServers?: Record<string, unknown> | undefined;
2698
+ };
2699
+ };
2700
+ nextRunAt: string | null;
2701
+ lastRunAt: string | null;
2702
+ pausedAt: string | null;
2703
+ expiresAt: string | null;
2704
+ maxRuns: number | null;
2705
+ }>>;
2706
+ error: z.ZodNullable<z.ZodString>;
2707
+ }, "strip", z.ZodTypeAny, {
2708
+ error: string | null;
2709
+ requestId: string;
2710
+ schedule: {
2711
+ name: string | null;
2712
+ status: "completed" | "active" | "paused";
2713
+ id: string;
2714
+ createdAt: string;
2715
+ updatedAt: string;
2716
+ prompt: string;
2717
+ cadence: {
2718
+ type: "every";
2719
+ everyMs: number;
2720
+ } | {
2721
+ type: "cron";
2722
+ expression: string;
2723
+ };
2724
+ target: {
2725
+ agentId: string;
2726
+ type: "agent";
2727
+ } | {
2728
+ type: "new-agent";
2729
+ config: {
2730
+ cwd: string;
2731
+ provider: string;
2732
+ title?: string | null | undefined;
2733
+ modeId?: string | undefined;
2734
+ model?: string | undefined;
2735
+ thinkingOptionId?: string | undefined;
2736
+ approvalPolicy?: string | undefined;
2737
+ sandboxMode?: string | undefined;
2738
+ networkAccess?: boolean | undefined;
2739
+ webSearch?: boolean | undefined;
2740
+ featureValues?: Record<string, unknown> | undefined;
2741
+ extra?: {
2742
+ claude?: Record<string, unknown> | undefined;
2743
+ codex?: Record<string, unknown> | undefined;
2744
+ } | undefined;
2745
+ systemPrompt?: string | undefined;
2746
+ mcpServers?: Record<string, unknown> | undefined;
2747
+ };
2748
+ };
2749
+ nextRunAt: string | null;
2750
+ lastRunAt: string | null;
2751
+ pausedAt: string | null;
2752
+ expiresAt: string | null;
2753
+ maxRuns: number | null;
2754
+ } | null;
2755
+ }, {
2756
+ error: string | null;
2757
+ requestId: string;
2758
+ schedule: {
2759
+ name: string | null;
2760
+ status: "completed" | "active" | "paused";
2761
+ id: string;
2762
+ createdAt: string;
2763
+ updatedAt: string;
2764
+ prompt: string;
2765
+ cadence: {
2766
+ type: "every";
2767
+ everyMs: number;
2768
+ } | {
2769
+ type: "cron";
2770
+ expression: string;
2771
+ };
2772
+ target: {
2773
+ agentId: string;
2774
+ type: "agent";
2775
+ } | {
2776
+ type: "new-agent";
2777
+ config: {
2778
+ cwd: string;
2779
+ provider: string;
2780
+ title?: string | null | undefined;
2781
+ modeId?: string | undefined;
2782
+ model?: string | undefined;
2783
+ thinkingOptionId?: string | undefined;
2784
+ approvalPolicy?: string | undefined;
2785
+ sandboxMode?: string | undefined;
2786
+ networkAccess?: boolean | undefined;
2787
+ webSearch?: boolean | undefined;
2788
+ featureValues?: Record<string, unknown> | undefined;
2789
+ extra?: {
2790
+ claude?: Record<string, unknown> | undefined;
2791
+ codex?: Record<string, unknown> | undefined;
2792
+ } | undefined;
2793
+ systemPrompt?: string | undefined;
2794
+ mcpServers?: Record<string, unknown> | undefined;
2795
+ };
2796
+ };
2797
+ nextRunAt: string | null;
2798
+ lastRunAt: string | null;
2799
+ pausedAt: string | null;
2800
+ expiresAt: string | null;
2801
+ maxRuns: number | null;
2802
+ } | null;
2803
+ }>;
2804
+ }, "strip", z.ZodTypeAny, {
2805
+ type: "schedule/resume/response";
2806
+ payload: {
2807
+ error: string | null;
2808
+ requestId: string;
2809
+ schedule: {
2810
+ name: string | null;
2811
+ status: "completed" | "active" | "paused";
2812
+ id: string;
2813
+ createdAt: string;
2814
+ updatedAt: string;
2815
+ prompt: string;
2816
+ cadence: {
2817
+ type: "every";
2818
+ everyMs: number;
2819
+ } | {
2820
+ type: "cron";
2821
+ expression: string;
2822
+ };
2823
+ target: {
2824
+ agentId: string;
2825
+ type: "agent";
2826
+ } | {
2827
+ type: "new-agent";
2828
+ config: {
2829
+ cwd: string;
2830
+ provider: string;
2831
+ title?: string | null | undefined;
2832
+ modeId?: string | undefined;
2833
+ model?: string | undefined;
2834
+ thinkingOptionId?: string | undefined;
2835
+ approvalPolicy?: string | undefined;
2836
+ sandboxMode?: string | undefined;
2837
+ networkAccess?: boolean | undefined;
2838
+ webSearch?: boolean | undefined;
2839
+ featureValues?: Record<string, unknown> | undefined;
2840
+ extra?: {
2841
+ claude?: Record<string, unknown> | undefined;
2842
+ codex?: Record<string, unknown> | undefined;
2843
+ } | undefined;
2844
+ systemPrompt?: string | undefined;
2845
+ mcpServers?: Record<string, unknown> | undefined;
2846
+ };
2847
+ };
2848
+ nextRunAt: string | null;
2849
+ lastRunAt: string | null;
2850
+ pausedAt: string | null;
2851
+ expiresAt: string | null;
2852
+ maxRuns: number | null;
2853
+ } | null;
2854
+ };
2855
+ }, {
2856
+ type: "schedule/resume/response";
2857
+ payload: {
2858
+ error: string | null;
2859
+ requestId: string;
2860
+ schedule: {
2861
+ name: string | null;
2862
+ status: "completed" | "active" | "paused";
2863
+ id: string;
2864
+ createdAt: string;
2865
+ updatedAt: string;
2866
+ prompt: string;
2867
+ cadence: {
2868
+ type: "every";
2869
+ everyMs: number;
2870
+ } | {
2871
+ type: "cron";
2872
+ expression: string;
2873
+ };
2874
+ target: {
2875
+ agentId: string;
2876
+ type: "agent";
2877
+ } | {
2878
+ type: "new-agent";
2879
+ config: {
2880
+ cwd: string;
2881
+ provider: string;
2882
+ title?: string | null | undefined;
2883
+ modeId?: string | undefined;
2884
+ model?: string | undefined;
2885
+ thinkingOptionId?: string | undefined;
2886
+ approvalPolicy?: string | undefined;
2887
+ sandboxMode?: string | undefined;
2888
+ networkAccess?: boolean | undefined;
2889
+ webSearch?: boolean | undefined;
2890
+ featureValues?: Record<string, unknown> | undefined;
2891
+ extra?: {
2892
+ claude?: Record<string, unknown> | undefined;
2893
+ codex?: Record<string, unknown> | undefined;
2894
+ } | undefined;
2895
+ systemPrompt?: string | undefined;
2896
+ mcpServers?: Record<string, unknown> | undefined;
2897
+ };
2898
+ };
2899
+ nextRunAt: string | null;
2900
+ lastRunAt: string | null;
2901
+ pausedAt: string | null;
2902
+ expiresAt: string | null;
2903
+ maxRuns: number | null;
2904
+ } | null;
2905
+ };
2906
+ }>;
2907
+ export declare const ScheduleDeleteResponseSchema: z.ZodObject<{
2908
+ type: z.ZodLiteral<"schedule/delete/response">;
2909
+ payload: z.ZodObject<{
2910
+ requestId: z.ZodString;
2911
+ scheduleId: z.ZodString;
2912
+ error: z.ZodNullable<z.ZodString>;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ error: string | null;
2915
+ requestId: string;
2916
+ scheduleId: string;
2917
+ }, {
2918
+ error: string | null;
2919
+ requestId: string;
2920
+ scheduleId: string;
2921
+ }>;
2922
+ }, "strip", z.ZodTypeAny, {
2923
+ type: "schedule/delete/response";
2924
+ payload: {
2925
+ error: string | null;
2926
+ requestId: string;
2927
+ scheduleId: string;
2928
+ };
2929
+ }, {
2930
+ type: "schedule/delete/response";
2931
+ payload: {
2932
+ error: string | null;
2933
+ requestId: string;
2934
+ scheduleId: string;
2935
+ };
2936
+ }>;
2937
+ export declare const ScheduleRunOnceResponseSchema: z.ZodObject<{
2938
+ type: z.ZodLiteral<"schedule/run-once/response">;
2939
+ payload: z.ZodObject<{
2940
+ requestId: z.ZodString;
2941
+ schedule: z.ZodNullable<z.ZodObject<{
2942
+ id: z.ZodString;
2943
+ name: z.ZodNullable<z.ZodString>;
2944
+ prompt: z.ZodString;
2945
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2946
+ type: z.ZodLiteral<"every">;
2947
+ everyMs: z.ZodNumber;
2948
+ }, "strip", z.ZodTypeAny, {
2949
+ type: "every";
2950
+ everyMs: number;
2951
+ }, {
2952
+ type: "every";
2953
+ everyMs: number;
2954
+ }>, z.ZodObject<{
2955
+ type: z.ZodLiteral<"cron">;
2956
+ expression: z.ZodString;
2957
+ }, "strip", z.ZodTypeAny, {
2958
+ type: "cron";
2959
+ expression: string;
2960
+ }, {
2961
+ type: "cron";
2962
+ expression: string;
2963
+ }>]>;
2964
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2965
+ type: z.ZodLiteral<"agent">;
2966
+ agentId: z.ZodString;
2967
+ }, "strip", z.ZodTypeAny, {
2968
+ agentId: string;
2969
+ type: "agent";
2970
+ }, {
2971
+ agentId: string;
2972
+ type: "agent";
2973
+ }>, z.ZodObject<{
2974
+ type: z.ZodLiteral<"new-agent">;
2975
+ config: z.ZodObject<{
2976
+ provider: z.ZodString;
2977
+ cwd: z.ZodString;
2978
+ modeId: z.ZodOptional<z.ZodString>;
2979
+ model: z.ZodOptional<z.ZodString>;
2980
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
2981
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2982
+ approvalPolicy: z.ZodOptional<z.ZodString>;
2983
+ sandboxMode: z.ZodOptional<z.ZodString>;
2984
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
2985
+ webSearch: z.ZodOptional<z.ZodBoolean>;
2986
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2987
+ extra: z.ZodOptional<z.ZodObject<{
2988
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2989
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2990
+ }, "strip", z.ZodTypeAny, {
2991
+ claude?: Record<string, unknown> | undefined;
2992
+ codex?: Record<string, unknown> | undefined;
2993
+ }, {
2994
+ claude?: Record<string, unknown> | undefined;
2995
+ codex?: Record<string, unknown> | undefined;
2996
+ }>>;
2997
+ systemPrompt: z.ZodOptional<z.ZodString>;
2998
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2999
+ }, "strip", z.ZodTypeAny, {
3000
+ cwd: string;
3001
+ provider: string;
3002
+ title?: string | null | undefined;
3003
+ modeId?: string | undefined;
3004
+ model?: string | undefined;
3005
+ thinkingOptionId?: string | undefined;
3006
+ approvalPolicy?: string | undefined;
3007
+ sandboxMode?: string | undefined;
3008
+ networkAccess?: boolean | undefined;
3009
+ webSearch?: boolean | undefined;
3010
+ featureValues?: Record<string, unknown> | undefined;
3011
+ extra?: {
3012
+ claude?: Record<string, unknown> | undefined;
3013
+ codex?: Record<string, unknown> | undefined;
3014
+ } | undefined;
3015
+ systemPrompt?: string | undefined;
3016
+ mcpServers?: Record<string, unknown> | undefined;
3017
+ }, {
3018
+ cwd: string;
3019
+ provider: string;
3020
+ title?: string | null | undefined;
3021
+ modeId?: string | undefined;
3022
+ model?: string | undefined;
3023
+ thinkingOptionId?: string | undefined;
3024
+ approvalPolicy?: string | undefined;
3025
+ sandboxMode?: string | undefined;
3026
+ networkAccess?: boolean | undefined;
3027
+ webSearch?: boolean | undefined;
3028
+ featureValues?: Record<string, unknown> | undefined;
3029
+ extra?: {
3030
+ claude?: Record<string, unknown> | undefined;
3031
+ codex?: Record<string, unknown> | undefined;
3032
+ } | undefined;
3033
+ systemPrompt?: string | undefined;
3034
+ mcpServers?: Record<string, unknown> | undefined;
3035
+ }>;
3036
+ }, "strip", z.ZodTypeAny, {
3037
+ type: "new-agent";
3038
+ config: {
3039
+ cwd: string;
3040
+ provider: string;
3041
+ title?: string | null | undefined;
3042
+ modeId?: string | undefined;
3043
+ model?: string | undefined;
3044
+ thinkingOptionId?: string | undefined;
3045
+ approvalPolicy?: string | undefined;
3046
+ sandboxMode?: string | undefined;
3047
+ networkAccess?: boolean | undefined;
3048
+ webSearch?: boolean | undefined;
3049
+ featureValues?: Record<string, unknown> | undefined;
3050
+ extra?: {
3051
+ claude?: Record<string, unknown> | undefined;
3052
+ codex?: Record<string, unknown> | undefined;
3053
+ } | undefined;
3054
+ systemPrompt?: string | undefined;
3055
+ mcpServers?: Record<string, unknown> | undefined;
3056
+ };
3057
+ }, {
3058
+ type: "new-agent";
3059
+ config: {
3060
+ cwd: string;
3061
+ provider: string;
3062
+ title?: string | null | undefined;
3063
+ modeId?: string | undefined;
3064
+ model?: string | undefined;
3065
+ thinkingOptionId?: string | undefined;
3066
+ approvalPolicy?: string | undefined;
3067
+ sandboxMode?: string | undefined;
3068
+ networkAccess?: boolean | undefined;
3069
+ webSearch?: boolean | undefined;
3070
+ featureValues?: Record<string, unknown> | undefined;
3071
+ extra?: {
3072
+ claude?: Record<string, unknown> | undefined;
3073
+ codex?: Record<string, unknown> | undefined;
3074
+ } | undefined;
3075
+ systemPrompt?: string | undefined;
3076
+ mcpServers?: Record<string, unknown> | undefined;
3077
+ };
3078
+ }>]>;
3079
+ status: z.ZodEnum<["active", "paused", "completed"]>;
3080
+ createdAt: z.ZodString;
3081
+ updatedAt: z.ZodString;
3082
+ nextRunAt: z.ZodNullable<z.ZodString>;
3083
+ lastRunAt: z.ZodNullable<z.ZodString>;
3084
+ pausedAt: z.ZodNullable<z.ZodString>;
3085
+ expiresAt: z.ZodNullable<z.ZodString>;
3086
+ maxRuns: z.ZodNullable<z.ZodNumber>;
3087
+ runs: z.ZodArray<z.ZodObject<{
3088
+ id: z.ZodString;
3089
+ scheduledFor: z.ZodString;
3090
+ startedAt: z.ZodString;
3091
+ endedAt: z.ZodNullable<z.ZodString>;
3092
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
3093
+ agentId: z.ZodNullable<z.ZodString>;
3094
+ output: z.ZodNullable<z.ZodString>;
3095
+ error: z.ZodNullable<z.ZodString>;
3096
+ }, "strip", z.ZodTypeAny, {
3097
+ error: string | null;
3098
+ agentId: string | null;
3099
+ status: "running" | "failed" | "succeeded";
3100
+ id: string;
3101
+ scheduledFor: string;
3102
+ startedAt: string;
3103
+ endedAt: string | null;
3104
+ output: string | null;
3105
+ }, {
3106
+ error: string | null;
3107
+ agentId: string | null;
3108
+ status: "running" | "failed" | "succeeded";
3109
+ id: string;
3110
+ scheduledFor: string;
3111
+ startedAt: string;
3112
+ endedAt: string | null;
3113
+ output: string | null;
3114
+ }>, "many">;
3115
+ }, "strip", z.ZodTypeAny, {
3116
+ name: string | null;
3117
+ status: "completed" | "active" | "paused";
3118
+ id: string;
3119
+ createdAt: string;
3120
+ updatedAt: string;
3121
+ prompt: string;
3122
+ cadence: {
3123
+ type: "every";
3124
+ everyMs: number;
3125
+ } | {
3126
+ type: "cron";
3127
+ expression: string;
3128
+ };
3129
+ target: {
3130
+ agentId: string;
3131
+ type: "agent";
3132
+ } | {
3133
+ type: "new-agent";
3134
+ config: {
3135
+ cwd: string;
3136
+ provider: string;
3137
+ title?: string | null | undefined;
3138
+ modeId?: string | undefined;
3139
+ model?: string | undefined;
3140
+ thinkingOptionId?: string | undefined;
3141
+ approvalPolicy?: string | undefined;
3142
+ sandboxMode?: string | undefined;
3143
+ networkAccess?: boolean | undefined;
3144
+ webSearch?: boolean | undefined;
3145
+ featureValues?: Record<string, unknown> | undefined;
3146
+ extra?: {
3147
+ claude?: Record<string, unknown> | undefined;
3148
+ codex?: Record<string, unknown> | undefined;
3149
+ } | undefined;
3150
+ systemPrompt?: string | undefined;
3151
+ mcpServers?: Record<string, unknown> | undefined;
3152
+ };
3153
+ };
3154
+ nextRunAt: string | null;
3155
+ lastRunAt: string | null;
3156
+ pausedAt: string | null;
3157
+ expiresAt: string | null;
3158
+ maxRuns: number | null;
3159
+ runs: {
3160
+ error: string | null;
3161
+ agentId: string | null;
3162
+ status: "running" | "failed" | "succeeded";
3163
+ id: string;
3164
+ scheduledFor: string;
3165
+ startedAt: string;
3166
+ endedAt: string | null;
3167
+ output: string | null;
3168
+ }[];
3169
+ }, {
3170
+ name: string | null;
3171
+ status: "completed" | "active" | "paused";
3172
+ id: string;
3173
+ createdAt: string;
3174
+ updatedAt: string;
3175
+ prompt: string;
3176
+ cadence: {
3177
+ type: "every";
3178
+ everyMs: number;
3179
+ } | {
3180
+ type: "cron";
3181
+ expression: string;
3182
+ };
3183
+ target: {
3184
+ agentId: string;
3185
+ type: "agent";
3186
+ } | {
3187
+ type: "new-agent";
3188
+ config: {
3189
+ cwd: string;
3190
+ provider: string;
3191
+ title?: string | null | undefined;
3192
+ modeId?: string | undefined;
3193
+ model?: string | undefined;
3194
+ thinkingOptionId?: string | undefined;
3195
+ approvalPolicy?: string | undefined;
3196
+ sandboxMode?: string | undefined;
3197
+ networkAccess?: boolean | undefined;
3198
+ webSearch?: boolean | undefined;
3199
+ featureValues?: Record<string, unknown> | undefined;
3200
+ extra?: {
3201
+ claude?: Record<string, unknown> | undefined;
3202
+ codex?: Record<string, unknown> | undefined;
3203
+ } | undefined;
3204
+ systemPrompt?: string | undefined;
3205
+ mcpServers?: Record<string, unknown> | undefined;
3206
+ };
3207
+ };
3208
+ nextRunAt: string | null;
3209
+ lastRunAt: string | null;
3210
+ pausedAt: string | null;
3211
+ expiresAt: string | null;
3212
+ maxRuns: number | null;
3213
+ runs: {
3214
+ error: string | null;
3215
+ agentId: string | null;
3216
+ status: "running" | "failed" | "succeeded";
3217
+ id: string;
3218
+ scheduledFor: string;
3219
+ startedAt: string;
3220
+ endedAt: string | null;
3221
+ output: string | null;
3222
+ }[];
3223
+ }>>;
3224
+ error: z.ZodNullable<z.ZodString>;
3225
+ }, "strip", z.ZodTypeAny, {
3226
+ error: string | null;
3227
+ requestId: string;
3228
+ schedule: {
3229
+ name: string | null;
3230
+ status: "completed" | "active" | "paused";
3231
+ id: string;
3232
+ createdAt: string;
3233
+ updatedAt: string;
3234
+ prompt: string;
3235
+ cadence: {
3236
+ type: "every";
3237
+ everyMs: number;
3238
+ } | {
3239
+ type: "cron";
3240
+ expression: string;
3241
+ };
3242
+ target: {
3243
+ agentId: string;
3244
+ type: "agent";
3245
+ } | {
3246
+ type: "new-agent";
3247
+ config: {
3248
+ cwd: string;
3249
+ provider: string;
3250
+ title?: string | null | undefined;
3251
+ modeId?: string | undefined;
3252
+ model?: string | undefined;
3253
+ thinkingOptionId?: string | undefined;
3254
+ approvalPolicy?: string | undefined;
3255
+ sandboxMode?: string | undefined;
3256
+ networkAccess?: boolean | undefined;
3257
+ webSearch?: boolean | undefined;
3258
+ featureValues?: Record<string, unknown> | undefined;
3259
+ extra?: {
3260
+ claude?: Record<string, unknown> | undefined;
3261
+ codex?: Record<string, unknown> | undefined;
3262
+ } | undefined;
3263
+ systemPrompt?: string | undefined;
3264
+ mcpServers?: Record<string, unknown> | undefined;
3265
+ };
3266
+ };
3267
+ nextRunAt: string | null;
3268
+ lastRunAt: string | null;
3269
+ pausedAt: string | null;
3270
+ expiresAt: string | null;
3271
+ maxRuns: number | null;
3272
+ runs: {
3273
+ error: string | null;
3274
+ agentId: string | null;
3275
+ status: "running" | "failed" | "succeeded";
3276
+ id: string;
3277
+ scheduledFor: string;
3278
+ startedAt: string;
3279
+ endedAt: string | null;
3280
+ output: string | null;
3281
+ }[];
3282
+ } | null;
3283
+ }, {
3284
+ error: string | null;
3285
+ requestId: string;
3286
+ schedule: {
3287
+ name: string | null;
3288
+ status: "completed" | "active" | "paused";
3289
+ id: string;
3290
+ createdAt: string;
3291
+ updatedAt: string;
3292
+ prompt: string;
3293
+ cadence: {
3294
+ type: "every";
3295
+ everyMs: number;
3296
+ } | {
3297
+ type: "cron";
3298
+ expression: string;
3299
+ };
3300
+ target: {
3301
+ agentId: string;
3302
+ type: "agent";
3303
+ } | {
3304
+ type: "new-agent";
3305
+ config: {
3306
+ cwd: string;
3307
+ provider: string;
3308
+ title?: string | null | undefined;
3309
+ modeId?: string | undefined;
3310
+ model?: string | undefined;
3311
+ thinkingOptionId?: string | undefined;
3312
+ approvalPolicy?: string | undefined;
3313
+ sandboxMode?: string | undefined;
3314
+ networkAccess?: boolean | undefined;
3315
+ webSearch?: boolean | undefined;
3316
+ featureValues?: Record<string, unknown> | undefined;
3317
+ extra?: {
3318
+ claude?: Record<string, unknown> | undefined;
3319
+ codex?: Record<string, unknown> | undefined;
3320
+ } | undefined;
3321
+ systemPrompt?: string | undefined;
3322
+ mcpServers?: Record<string, unknown> | undefined;
3323
+ };
3324
+ };
3325
+ nextRunAt: string | null;
3326
+ lastRunAt: string | null;
3327
+ pausedAt: string | null;
3328
+ expiresAt: string | null;
3329
+ maxRuns: number | null;
3330
+ runs: {
3331
+ error: string | null;
3332
+ agentId: string | null;
3333
+ status: "running" | "failed" | "succeeded";
3334
+ id: string;
3335
+ scheduledFor: string;
3336
+ startedAt: string;
3337
+ endedAt: string | null;
3338
+ output: string | null;
3339
+ }[];
3340
+ } | null;
3341
+ }>;
3342
+ }, "strip", z.ZodTypeAny, {
3343
+ type: "schedule/run-once/response";
3344
+ payload: {
3345
+ error: string | null;
3346
+ requestId: string;
3347
+ schedule: {
3348
+ name: string | null;
3349
+ status: "completed" | "active" | "paused";
3350
+ id: string;
3351
+ createdAt: string;
3352
+ updatedAt: string;
3353
+ prompt: string;
3354
+ cadence: {
3355
+ type: "every";
3356
+ everyMs: number;
3357
+ } | {
3358
+ type: "cron";
3359
+ expression: string;
3360
+ };
3361
+ target: {
3362
+ agentId: string;
3363
+ type: "agent";
3364
+ } | {
3365
+ type: "new-agent";
3366
+ config: {
3367
+ cwd: string;
3368
+ provider: string;
3369
+ title?: string | null | undefined;
3370
+ modeId?: string | undefined;
3371
+ model?: string | undefined;
3372
+ thinkingOptionId?: string | undefined;
3373
+ approvalPolicy?: string | undefined;
3374
+ sandboxMode?: string | undefined;
3375
+ networkAccess?: boolean | undefined;
3376
+ webSearch?: boolean | undefined;
3377
+ featureValues?: Record<string, unknown> | undefined;
3378
+ extra?: {
3379
+ claude?: Record<string, unknown> | undefined;
3380
+ codex?: Record<string, unknown> | undefined;
3381
+ } | undefined;
3382
+ systemPrompt?: string | undefined;
3383
+ mcpServers?: Record<string, unknown> | undefined;
3384
+ };
3385
+ };
3386
+ nextRunAt: string | null;
3387
+ lastRunAt: string | null;
3388
+ pausedAt: string | null;
3389
+ expiresAt: string | null;
3390
+ maxRuns: number | null;
3391
+ runs: {
3392
+ error: string | null;
3393
+ agentId: string | null;
3394
+ status: "running" | "failed" | "succeeded";
3395
+ id: string;
3396
+ scheduledFor: string;
3397
+ startedAt: string;
3398
+ endedAt: string | null;
3399
+ output: string | null;
3400
+ }[];
3401
+ } | null;
3402
+ };
3403
+ }, {
3404
+ type: "schedule/run-once/response";
3405
+ payload: {
3406
+ error: string | null;
3407
+ requestId: string;
3408
+ schedule: {
3409
+ name: string | null;
3410
+ status: "completed" | "active" | "paused";
3411
+ id: string;
3412
+ createdAt: string;
3413
+ updatedAt: string;
3414
+ prompt: string;
3415
+ cadence: {
3416
+ type: "every";
3417
+ everyMs: number;
3418
+ } | {
3419
+ type: "cron";
3420
+ expression: string;
3421
+ };
3422
+ target: {
3423
+ agentId: string;
3424
+ type: "agent";
3425
+ } | {
3426
+ type: "new-agent";
3427
+ config: {
3428
+ cwd: string;
3429
+ provider: string;
3430
+ title?: string | null | undefined;
3431
+ modeId?: string | undefined;
3432
+ model?: string | undefined;
3433
+ thinkingOptionId?: string | undefined;
3434
+ approvalPolicy?: string | undefined;
3435
+ sandboxMode?: string | undefined;
3436
+ networkAccess?: boolean | undefined;
3437
+ webSearch?: boolean | undefined;
3438
+ featureValues?: Record<string, unknown> | undefined;
3439
+ extra?: {
3440
+ claude?: Record<string, unknown> | undefined;
3441
+ codex?: Record<string, unknown> | undefined;
3442
+ } | undefined;
3443
+ systemPrompt?: string | undefined;
3444
+ mcpServers?: Record<string, unknown> | undefined;
3445
+ };
3446
+ };
3447
+ nextRunAt: string | null;
3448
+ lastRunAt: string | null;
3449
+ pausedAt: string | null;
3450
+ expiresAt: string | null;
3451
+ maxRuns: number | null;
3452
+ runs: {
3453
+ error: string | null;
3454
+ agentId: string | null;
3455
+ status: "running" | "failed" | "succeeded";
3456
+ id: string;
3457
+ scheduledFor: string;
3458
+ startedAt: string;
3459
+ endedAt: string | null;
3460
+ output: string | null;
3461
+ }[];
3462
+ } | null;
3463
+ };
3464
+ }>;
3465
+ export declare const ScheduleUpdateResponseSchema: z.ZodObject<{
3466
+ type: z.ZodLiteral<"schedule/update/response">;
3467
+ payload: z.ZodObject<{
3468
+ requestId: z.ZodString;
3469
+ schedule: z.ZodNullable<z.ZodObject<{
3470
+ id: z.ZodString;
3471
+ name: z.ZodNullable<z.ZodString>;
3472
+ prompt: z.ZodString;
3473
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3474
+ type: z.ZodLiteral<"every">;
3475
+ everyMs: z.ZodNumber;
3476
+ }, "strip", z.ZodTypeAny, {
3477
+ type: "every";
3478
+ everyMs: number;
3479
+ }, {
3480
+ type: "every";
3481
+ everyMs: number;
3482
+ }>, z.ZodObject<{
3483
+ type: z.ZodLiteral<"cron">;
3484
+ expression: z.ZodString;
3485
+ }, "strip", z.ZodTypeAny, {
3486
+ type: "cron";
3487
+ expression: string;
3488
+ }, {
3489
+ type: "cron";
3490
+ expression: string;
3491
+ }>]>;
3492
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3493
+ type: z.ZodLiteral<"agent">;
3494
+ agentId: z.ZodString;
3495
+ }, "strip", z.ZodTypeAny, {
3496
+ agentId: string;
3497
+ type: "agent";
3498
+ }, {
3499
+ agentId: string;
3500
+ type: "agent";
3501
+ }>, z.ZodObject<{
3502
+ type: z.ZodLiteral<"new-agent">;
3503
+ config: z.ZodObject<{
3504
+ provider: z.ZodString;
3505
+ cwd: z.ZodString;
3506
+ modeId: z.ZodOptional<z.ZodString>;
3507
+ model: z.ZodOptional<z.ZodString>;
3508
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
3509
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3510
+ approvalPolicy: z.ZodOptional<z.ZodString>;
3511
+ sandboxMode: z.ZodOptional<z.ZodString>;
3512
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
3513
+ webSearch: z.ZodOptional<z.ZodBoolean>;
3514
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3515
+ extra: z.ZodOptional<z.ZodObject<{
3516
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3517
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3518
+ }, "strip", z.ZodTypeAny, {
3519
+ claude?: Record<string, unknown> | undefined;
3520
+ codex?: Record<string, unknown> | undefined;
3521
+ }, {
3522
+ claude?: Record<string, unknown> | undefined;
3523
+ codex?: Record<string, unknown> | undefined;
3524
+ }>>;
3525
+ systemPrompt: z.ZodOptional<z.ZodString>;
3526
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3527
+ }, "strip", z.ZodTypeAny, {
3528
+ cwd: string;
3529
+ provider: string;
3530
+ title?: string | null | undefined;
3531
+ modeId?: string | undefined;
3532
+ model?: string | undefined;
3533
+ thinkingOptionId?: string | undefined;
3534
+ approvalPolicy?: string | undefined;
3535
+ sandboxMode?: string | undefined;
3536
+ networkAccess?: boolean | undefined;
3537
+ webSearch?: boolean | undefined;
3538
+ featureValues?: Record<string, unknown> | undefined;
3539
+ extra?: {
3540
+ claude?: Record<string, unknown> | undefined;
3541
+ codex?: Record<string, unknown> | undefined;
3542
+ } | undefined;
3543
+ systemPrompt?: string | undefined;
3544
+ mcpServers?: Record<string, unknown> | undefined;
3545
+ }, {
3546
+ cwd: string;
3547
+ provider: string;
3548
+ title?: string | null | undefined;
3549
+ modeId?: string | undefined;
3550
+ model?: string | undefined;
3551
+ thinkingOptionId?: string | undefined;
3552
+ approvalPolicy?: string | undefined;
3553
+ sandboxMode?: string | undefined;
3554
+ networkAccess?: boolean | undefined;
3555
+ webSearch?: boolean | undefined;
3556
+ featureValues?: Record<string, unknown> | undefined;
3557
+ extra?: {
3558
+ claude?: Record<string, unknown> | undefined;
3559
+ codex?: Record<string, unknown> | undefined;
3560
+ } | undefined;
3561
+ systemPrompt?: string | undefined;
3562
+ mcpServers?: Record<string, unknown> | undefined;
3563
+ }>;
3564
+ }, "strip", z.ZodTypeAny, {
3565
+ type: "new-agent";
3566
+ config: {
3567
+ cwd: string;
3568
+ provider: string;
3569
+ title?: string | null | undefined;
3570
+ modeId?: string | undefined;
3571
+ model?: string | undefined;
3572
+ thinkingOptionId?: string | undefined;
3573
+ approvalPolicy?: string | undefined;
3574
+ sandboxMode?: string | undefined;
3575
+ networkAccess?: boolean | undefined;
3576
+ webSearch?: boolean | undefined;
3577
+ featureValues?: Record<string, unknown> | undefined;
3578
+ extra?: {
3579
+ claude?: Record<string, unknown> | undefined;
3580
+ codex?: Record<string, unknown> | undefined;
3581
+ } | undefined;
3582
+ systemPrompt?: string | undefined;
3583
+ mcpServers?: Record<string, unknown> | undefined;
3584
+ };
3585
+ }, {
3586
+ type: "new-agent";
3587
+ config: {
3588
+ cwd: string;
3589
+ provider: string;
3590
+ title?: string | null | undefined;
3591
+ modeId?: string | undefined;
3592
+ model?: string | undefined;
3593
+ thinkingOptionId?: string | undefined;
3594
+ approvalPolicy?: string | undefined;
3595
+ sandboxMode?: string | undefined;
3596
+ networkAccess?: boolean | undefined;
3597
+ webSearch?: boolean | undefined;
3598
+ featureValues?: Record<string, unknown> | undefined;
3599
+ extra?: {
3600
+ claude?: Record<string, unknown> | undefined;
3601
+ codex?: Record<string, unknown> | undefined;
3602
+ } | undefined;
3603
+ systemPrompt?: string | undefined;
3604
+ mcpServers?: Record<string, unknown> | undefined;
3605
+ };
3606
+ }>]>;
3607
+ status: z.ZodEnum<["active", "paused", "completed"]>;
3608
+ createdAt: z.ZodString;
3609
+ updatedAt: z.ZodString;
3610
+ nextRunAt: z.ZodNullable<z.ZodString>;
3611
+ lastRunAt: z.ZodNullable<z.ZodString>;
3612
+ pausedAt: z.ZodNullable<z.ZodString>;
3613
+ expiresAt: z.ZodNullable<z.ZodString>;
3614
+ maxRuns: z.ZodNullable<z.ZodNumber>;
3615
+ runs: z.ZodArray<z.ZodObject<{
3616
+ id: z.ZodString;
3617
+ scheduledFor: z.ZodString;
3618
+ startedAt: z.ZodString;
3619
+ endedAt: z.ZodNullable<z.ZodString>;
3620
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
3621
+ agentId: z.ZodNullable<z.ZodString>;
3622
+ output: z.ZodNullable<z.ZodString>;
3623
+ error: z.ZodNullable<z.ZodString>;
3624
+ }, "strip", z.ZodTypeAny, {
3625
+ error: string | null;
3626
+ agentId: string | null;
3627
+ status: "running" | "failed" | "succeeded";
3628
+ id: string;
3629
+ scheduledFor: string;
3630
+ startedAt: string;
3631
+ endedAt: string | null;
3632
+ output: string | null;
3633
+ }, {
3634
+ error: string | null;
3635
+ agentId: string | null;
3636
+ status: "running" | "failed" | "succeeded";
3637
+ id: string;
3638
+ scheduledFor: string;
3639
+ startedAt: string;
3640
+ endedAt: string | null;
3641
+ output: string | null;
3642
+ }>, "many">;
3643
+ }, "strip", z.ZodTypeAny, {
3644
+ name: string | null;
3645
+ status: "completed" | "active" | "paused";
3646
+ id: string;
3647
+ createdAt: string;
3648
+ updatedAt: string;
3649
+ prompt: string;
3650
+ cadence: {
3651
+ type: "every";
3652
+ everyMs: number;
3653
+ } | {
3654
+ type: "cron";
3655
+ expression: string;
3656
+ };
3657
+ target: {
3658
+ agentId: string;
3659
+ type: "agent";
3660
+ } | {
3661
+ type: "new-agent";
3662
+ config: {
3663
+ cwd: string;
3664
+ provider: string;
3665
+ title?: string | null | undefined;
3666
+ modeId?: string | undefined;
3667
+ model?: string | undefined;
3668
+ thinkingOptionId?: string | undefined;
3669
+ approvalPolicy?: string | undefined;
3670
+ sandboxMode?: string | undefined;
3671
+ networkAccess?: boolean | undefined;
3672
+ webSearch?: boolean | undefined;
3673
+ featureValues?: Record<string, unknown> | undefined;
3674
+ extra?: {
3675
+ claude?: Record<string, unknown> | undefined;
3676
+ codex?: Record<string, unknown> | undefined;
3677
+ } | undefined;
3678
+ systemPrompt?: string | undefined;
3679
+ mcpServers?: Record<string, unknown> | undefined;
3680
+ };
3681
+ };
3682
+ nextRunAt: string | null;
3683
+ lastRunAt: string | null;
3684
+ pausedAt: string | null;
3685
+ expiresAt: string | null;
3686
+ maxRuns: number | null;
3687
+ runs: {
3688
+ error: string | null;
3689
+ agentId: string | null;
3690
+ status: "running" | "failed" | "succeeded";
3691
+ id: string;
3692
+ scheduledFor: string;
3693
+ startedAt: string;
3694
+ endedAt: string | null;
3695
+ output: string | null;
3696
+ }[];
3697
+ }, {
3698
+ name: string | null;
3699
+ status: "completed" | "active" | "paused";
3700
+ id: string;
3701
+ createdAt: string;
3702
+ updatedAt: string;
3703
+ prompt: string;
3704
+ cadence: {
3705
+ type: "every";
3706
+ everyMs: number;
3707
+ } | {
3708
+ type: "cron";
3709
+ expression: string;
3710
+ };
3711
+ target: {
3712
+ agentId: string;
3713
+ type: "agent";
3714
+ } | {
3715
+ type: "new-agent";
3716
+ config: {
3717
+ cwd: string;
3718
+ provider: string;
3719
+ title?: string | null | undefined;
3720
+ modeId?: string | undefined;
3721
+ model?: string | undefined;
3722
+ thinkingOptionId?: string | undefined;
3723
+ approvalPolicy?: string | undefined;
3724
+ sandboxMode?: string | undefined;
3725
+ networkAccess?: boolean | undefined;
3726
+ webSearch?: boolean | undefined;
3727
+ featureValues?: Record<string, unknown> | undefined;
3728
+ extra?: {
3729
+ claude?: Record<string, unknown> | undefined;
3730
+ codex?: Record<string, unknown> | undefined;
3731
+ } | undefined;
3732
+ systemPrompt?: string | undefined;
3733
+ mcpServers?: Record<string, unknown> | undefined;
3734
+ };
3735
+ };
3736
+ nextRunAt: string | null;
3737
+ lastRunAt: string | null;
3738
+ pausedAt: string | null;
3739
+ expiresAt: string | null;
3740
+ maxRuns: number | null;
3741
+ runs: {
3742
+ error: string | null;
3743
+ agentId: string | null;
3744
+ status: "running" | "failed" | "succeeded";
3745
+ id: string;
3746
+ scheduledFor: string;
3747
+ startedAt: string;
3748
+ endedAt: string | null;
3749
+ output: string | null;
3750
+ }[];
3751
+ }>>;
3752
+ error: z.ZodNullable<z.ZodString>;
3753
+ }, "strip", z.ZodTypeAny, {
3754
+ error: string | null;
3755
+ requestId: string;
3756
+ schedule: {
3757
+ name: string | null;
3758
+ status: "completed" | "active" | "paused";
3759
+ id: string;
3760
+ createdAt: string;
3761
+ updatedAt: string;
3762
+ prompt: string;
3763
+ cadence: {
3764
+ type: "every";
3765
+ everyMs: number;
3766
+ } | {
3767
+ type: "cron";
3768
+ expression: string;
3769
+ };
3770
+ target: {
3771
+ agentId: string;
3772
+ type: "agent";
3773
+ } | {
3774
+ type: "new-agent";
3775
+ config: {
3776
+ cwd: string;
3777
+ provider: string;
3778
+ title?: string | null | undefined;
3779
+ modeId?: string | undefined;
3780
+ model?: string | undefined;
3781
+ thinkingOptionId?: string | undefined;
3782
+ approvalPolicy?: string | undefined;
3783
+ sandboxMode?: string | undefined;
3784
+ networkAccess?: boolean | undefined;
3785
+ webSearch?: boolean | undefined;
3786
+ featureValues?: Record<string, unknown> | undefined;
3787
+ extra?: {
3788
+ claude?: Record<string, unknown> | undefined;
3789
+ codex?: Record<string, unknown> | undefined;
3790
+ } | undefined;
3791
+ systemPrompt?: string | undefined;
3792
+ mcpServers?: Record<string, unknown> | undefined;
3793
+ };
3794
+ };
3795
+ nextRunAt: string | null;
3796
+ lastRunAt: string | null;
3797
+ pausedAt: string | null;
3798
+ expiresAt: string | null;
3799
+ maxRuns: number | null;
3800
+ runs: {
3801
+ error: string | null;
3802
+ agentId: string | null;
3803
+ status: "running" | "failed" | "succeeded";
3804
+ id: string;
3805
+ scheduledFor: string;
3806
+ startedAt: string;
3807
+ endedAt: string | null;
3808
+ output: string | null;
3809
+ }[];
3810
+ } | null;
3811
+ }, {
3812
+ error: string | null;
3813
+ requestId: string;
3814
+ schedule: {
3815
+ name: string | null;
3816
+ status: "completed" | "active" | "paused";
3817
+ id: string;
3818
+ createdAt: string;
3819
+ updatedAt: string;
3820
+ prompt: string;
3821
+ cadence: {
3822
+ type: "every";
3823
+ everyMs: number;
3824
+ } | {
3825
+ type: "cron";
3826
+ expression: string;
3827
+ };
3828
+ target: {
3829
+ agentId: string;
3830
+ type: "agent";
3831
+ } | {
3832
+ type: "new-agent";
3833
+ config: {
3834
+ cwd: string;
3835
+ provider: string;
3836
+ title?: string | null | undefined;
3837
+ modeId?: string | undefined;
3838
+ model?: string | undefined;
3839
+ thinkingOptionId?: string | undefined;
3840
+ approvalPolicy?: string | undefined;
3841
+ sandboxMode?: string | undefined;
3842
+ networkAccess?: boolean | undefined;
3843
+ webSearch?: boolean | undefined;
3844
+ featureValues?: Record<string, unknown> | undefined;
3845
+ extra?: {
3846
+ claude?: Record<string, unknown> | undefined;
3847
+ codex?: Record<string, unknown> | undefined;
3848
+ } | undefined;
3849
+ systemPrompt?: string | undefined;
3850
+ mcpServers?: Record<string, unknown> | undefined;
3851
+ };
3852
+ };
3853
+ nextRunAt: string | null;
3854
+ lastRunAt: string | null;
3855
+ pausedAt: string | null;
3856
+ expiresAt: string | null;
3857
+ maxRuns: number | null;
3858
+ runs: {
3859
+ error: string | null;
3860
+ agentId: string | null;
3861
+ status: "running" | "failed" | "succeeded";
3862
+ id: string;
3863
+ scheduledFor: string;
3864
+ startedAt: string;
3865
+ endedAt: string | null;
3866
+ output: string | null;
3867
+ }[];
3868
+ } | null;
3869
+ }>;
3870
+ }, "strip", z.ZodTypeAny, {
3871
+ type: "schedule/update/response";
3872
+ payload: {
3873
+ error: string | null;
3874
+ requestId: string;
3875
+ schedule: {
3876
+ name: string | null;
3877
+ status: "completed" | "active" | "paused";
3878
+ id: string;
3879
+ createdAt: string;
3880
+ updatedAt: string;
3881
+ prompt: string;
3882
+ cadence: {
3883
+ type: "every";
3884
+ everyMs: number;
3885
+ } | {
3886
+ type: "cron";
3887
+ expression: string;
3888
+ };
3889
+ target: {
3890
+ agentId: string;
3891
+ type: "agent";
3892
+ } | {
3893
+ type: "new-agent";
3894
+ config: {
3895
+ cwd: string;
3896
+ provider: string;
3897
+ title?: string | null | undefined;
3898
+ modeId?: string | undefined;
3899
+ model?: string | undefined;
3900
+ thinkingOptionId?: string | undefined;
3901
+ approvalPolicy?: string | undefined;
3902
+ sandboxMode?: string | undefined;
3903
+ networkAccess?: boolean | undefined;
3904
+ webSearch?: boolean | undefined;
3905
+ featureValues?: Record<string, unknown> | undefined;
3906
+ extra?: {
3907
+ claude?: Record<string, unknown> | undefined;
3908
+ codex?: Record<string, unknown> | undefined;
3909
+ } | undefined;
3910
+ systemPrompt?: string | undefined;
3911
+ mcpServers?: Record<string, unknown> | undefined;
3912
+ };
3913
+ };
3914
+ nextRunAt: string | null;
3915
+ lastRunAt: string | null;
3916
+ pausedAt: string | null;
3917
+ expiresAt: string | null;
3918
+ maxRuns: number | null;
3919
+ runs: {
3920
+ error: string | null;
3921
+ agentId: string | null;
3922
+ status: "running" | "failed" | "succeeded";
3923
+ id: string;
3924
+ scheduledFor: string;
3925
+ startedAt: string;
3926
+ endedAt: string | null;
3927
+ output: string | null;
3928
+ }[];
3929
+ } | null;
3930
+ };
3931
+ }, {
3932
+ type: "schedule/update/response";
3933
+ payload: {
3934
+ error: string | null;
3935
+ requestId: string;
3936
+ schedule: {
3937
+ name: string | null;
3938
+ status: "completed" | "active" | "paused";
3939
+ id: string;
3940
+ createdAt: string;
3941
+ updatedAt: string;
3942
+ prompt: string;
3943
+ cadence: {
3944
+ type: "every";
3945
+ everyMs: number;
3946
+ } | {
3947
+ type: "cron";
3948
+ expression: string;
3949
+ };
3950
+ target: {
3951
+ agentId: string;
3952
+ type: "agent";
3953
+ } | {
3954
+ type: "new-agent";
3955
+ config: {
3956
+ cwd: string;
3957
+ provider: string;
3958
+ title?: string | null | undefined;
3959
+ modeId?: string | undefined;
3960
+ model?: string | undefined;
3961
+ thinkingOptionId?: string | undefined;
3962
+ approvalPolicy?: string | undefined;
3963
+ sandboxMode?: string | undefined;
3964
+ networkAccess?: boolean | undefined;
3965
+ webSearch?: boolean | undefined;
3966
+ featureValues?: Record<string, unknown> | undefined;
3967
+ extra?: {
3968
+ claude?: Record<string, unknown> | undefined;
3969
+ codex?: Record<string, unknown> | undefined;
3970
+ } | undefined;
3971
+ systemPrompt?: string | undefined;
3972
+ mcpServers?: Record<string, unknown> | undefined;
3973
+ };
3974
+ };
3975
+ nextRunAt: string | null;
3976
+ lastRunAt: string | null;
3977
+ pausedAt: string | null;
3978
+ expiresAt: string | null;
3979
+ maxRuns: number | null;
3980
+ runs: {
3981
+ error: string | null;
3982
+ agentId: string | null;
3983
+ status: "running" | "failed" | "succeeded";
3984
+ id: string;
3985
+ scheduledFor: string;
3986
+ startedAt: string;
3987
+ endedAt: string | null;
3988
+ output: string | null;
3989
+ }[];
3990
+ } | null;
3991
+ };
3992
+ }>;
3993
+ //# sourceMappingURL=rpc-schemas.d.ts.map