@getpaseo/protocol 0.1.97-beta.3 → 0.1.97

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