@getpaseo/protocol 0.1.97-beta.2 → 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.
@@ -1,39 +1,23 @@
1
1
  import { z } from "zod";
2
- export declare const ScheduleStatusSchema: z.ZodEnum<["active", "paused", "completed"]>;
2
+ export declare const ScheduleStatusSchema: z.ZodEnum<{
3
+ completed: "completed";
4
+ active: "active";
5
+ paused: "paused";
6
+ }>;
3
7
  export type ScheduleStatus = z.infer<typeof ScheduleStatusSchema>;
4
- export declare const ScheduleCadenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
+ export declare const ScheduleCadenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
9
  type: z.ZodLiteral<"every">;
6
10
  everyMs: z.ZodNumber;
7
- }, "strip", z.ZodTypeAny, {
8
- type: "every";
9
- everyMs: number;
10
- }, {
11
- type: "every";
12
- everyMs: number;
13
- }>, z.ZodObject<{
11
+ }, z.core.$strip>, z.ZodObject<{
14
12
  type: z.ZodLiteral<"cron">;
15
13
  expression: z.ZodString;
16
14
  timezone: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- type: "cron";
19
- expression: string;
20
- timezone?: string | undefined;
21
- }, {
22
- type: "cron";
23
- expression: string;
24
- timezone?: string | undefined;
25
- }>]>;
15
+ }, z.core.$strip>], "type">;
26
16
  export type ScheduleCadence = z.infer<typeof ScheduleCadenceSchema>;
27
- export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
17
+ export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
28
18
  type: z.ZodLiteral<"agent">;
29
- agentId: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- agentId: string;
32
- type: "agent";
33
- }, {
34
- agentId: string;
35
- type: "agent";
36
- }>, z.ZodObject<{
19
+ agentId: z.ZodGUID;
20
+ }, z.core.$strip>, z.ZodObject<{
37
21
  type: z.ZodLiteral<"new-agent">;
38
22
  config: z.ZodObject<{
39
23
  provider: z.ZodString;
@@ -50,161 +34,43 @@ export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
50
34
  extra: z.ZodOptional<z.ZodObject<{
51
35
  codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
52
36
  claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
53
- }, "strip", z.ZodTypeAny, {
54
- claude?: Record<string, unknown> | undefined;
55
- codex?: Record<string, unknown> | undefined;
56
- }, {
57
- claude?: Record<string, unknown> | undefined;
58
- codex?: Record<string, unknown> | undefined;
59
- }>>;
37
+ }, z.core.$strip>>;
60
38
  systemPrompt: z.ZodOptional<z.ZodString>;
61
39
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
62
- }, "strip", z.ZodTypeAny, {
63
- cwd: string;
64
- provider: string;
65
- title?: string | null | undefined;
66
- modeId?: string | undefined;
67
- model?: string | undefined;
68
- thinkingOptionId?: string | undefined;
69
- approvalPolicy?: string | undefined;
70
- sandboxMode?: string | undefined;
71
- networkAccess?: boolean | undefined;
72
- webSearch?: boolean | undefined;
73
- featureValues?: Record<string, unknown> | undefined;
74
- extra?: {
75
- claude?: Record<string, unknown> | undefined;
76
- codex?: Record<string, unknown> | undefined;
77
- } | undefined;
78
- systemPrompt?: string | undefined;
79
- mcpServers?: Record<string, unknown> | undefined;
80
- }, {
81
- cwd: string;
82
- provider: string;
83
- title?: string | null | undefined;
84
- modeId?: string | undefined;
85
- model?: string | undefined;
86
- thinkingOptionId?: string | undefined;
87
- approvalPolicy?: string | undefined;
88
- sandboxMode?: string | undefined;
89
- networkAccess?: boolean | undefined;
90
- webSearch?: boolean | undefined;
91
- featureValues?: Record<string, unknown> | undefined;
92
- extra?: {
93
- claude?: Record<string, unknown> | undefined;
94
- codex?: Record<string, unknown> | undefined;
95
- } | undefined;
96
- systemPrompt?: string | undefined;
97
- mcpServers?: Record<string, unknown> | undefined;
98
- }>;
99
- }, "strip", z.ZodTypeAny, {
100
- type: "new-agent";
101
- config: {
102
- cwd: string;
103
- provider: string;
104
- title?: string | null | undefined;
105
- modeId?: string | undefined;
106
- model?: string | undefined;
107
- thinkingOptionId?: string | undefined;
108
- approvalPolicy?: string | undefined;
109
- sandboxMode?: string | undefined;
110
- networkAccess?: boolean | undefined;
111
- webSearch?: boolean | undefined;
112
- featureValues?: Record<string, unknown> | undefined;
113
- extra?: {
114
- claude?: Record<string, unknown> | undefined;
115
- codex?: Record<string, unknown> | undefined;
116
- } | undefined;
117
- systemPrompt?: string | undefined;
118
- mcpServers?: Record<string, unknown> | undefined;
119
- };
120
- }, {
121
- type: "new-agent";
122
- config: {
123
- cwd: string;
124
- provider: string;
125
- title?: string | null | undefined;
126
- modeId?: string | undefined;
127
- model?: string | undefined;
128
- thinkingOptionId?: string | undefined;
129
- approvalPolicy?: string | undefined;
130
- sandboxMode?: string | undefined;
131
- networkAccess?: boolean | undefined;
132
- webSearch?: boolean | undefined;
133
- featureValues?: Record<string, unknown> | undefined;
134
- extra?: {
135
- claude?: Record<string, unknown> | undefined;
136
- codex?: Record<string, unknown> | undefined;
137
- } | undefined;
138
- systemPrompt?: string | undefined;
139
- mcpServers?: Record<string, unknown> | undefined;
140
- };
141
- }>]>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>], "type">;
142
42
  export type ScheduleTarget = z.infer<typeof ScheduleTargetSchema>;
143
43
  export declare const ScheduleRunSchema: z.ZodObject<{
144
44
  id: z.ZodString;
145
45
  scheduledFor: z.ZodString;
146
46
  startedAt: z.ZodString;
147
47
  endedAt: z.ZodNullable<z.ZodString>;
148
- status: z.ZodEnum<["running", "succeeded", "failed"]>;
149
- agentId: z.ZodNullable<z.ZodString>;
48
+ status: z.ZodEnum<{
49
+ running: "running";
50
+ failed: "failed";
51
+ succeeded: "succeeded";
52
+ }>;
53
+ agentId: z.ZodNullable<z.ZodGUID>;
150
54
  output: z.ZodNullable<z.ZodString>;
151
55
  error: z.ZodNullable<z.ZodString>;
152
- }, "strip", z.ZodTypeAny, {
153
- error: string | null;
154
- agentId: string | null;
155
- status: "running" | "failed" | "succeeded";
156
- id: string;
157
- scheduledFor: string;
158
- startedAt: string;
159
- endedAt: string | null;
160
- output: string | null;
161
- }, {
162
- error: string | null;
163
- agentId: string | null;
164
- status: "running" | "failed" | "succeeded";
165
- id: string;
166
- scheduledFor: string;
167
- startedAt: string;
168
- endedAt: string | null;
169
- output: string | null;
170
- }>;
56
+ }, z.core.$strip>;
171
57
  export type ScheduleRun = z.infer<typeof ScheduleRunSchema>;
172
58
  export declare const StoredScheduleSchema: z.ZodObject<{
173
59
  id: z.ZodString;
174
60
  name: z.ZodNullable<z.ZodString>;
175
61
  prompt: z.ZodString;
176
- cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
62
+ cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
63
  type: z.ZodLiteral<"every">;
178
64
  everyMs: z.ZodNumber;
179
- }, "strip", z.ZodTypeAny, {
180
- type: "every";
181
- everyMs: number;
182
- }, {
183
- type: "every";
184
- everyMs: number;
185
- }>, z.ZodObject<{
65
+ }, z.core.$strip>, z.ZodObject<{
186
66
  type: z.ZodLiteral<"cron">;
187
67
  expression: z.ZodString;
188
68
  timezone: z.ZodOptional<z.ZodString>;
189
- }, "strip", z.ZodTypeAny, {
190
- type: "cron";
191
- expression: string;
192
- timezone?: string | undefined;
193
- }, {
194
- type: "cron";
195
- expression: string;
196
- timezone?: string | undefined;
197
- }>]>;
198
- target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
69
+ }, z.core.$strip>], "type">;
70
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
199
71
  type: z.ZodLiteral<"agent">;
200
- agentId: z.ZodString;
201
- }, "strip", z.ZodTypeAny, {
202
- agentId: string;
203
- type: "agent";
204
- }, {
205
- agentId: string;
206
- type: "agent";
207
- }>, z.ZodObject<{
72
+ agentId: z.ZodGUID;
73
+ }, z.core.$strip>, z.ZodObject<{
208
74
  type: z.ZodLiteral<"new-agent">;
209
75
  config: z.ZodObject<{
210
76
  provider: z.ZodString;
@@ -221,96 +87,16 @@ export declare const StoredScheduleSchema: z.ZodObject<{
221
87
  extra: z.ZodOptional<z.ZodObject<{
222
88
  codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
223
89
  claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
224
- }, "strip", z.ZodTypeAny, {
225
- claude?: Record<string, unknown> | undefined;
226
- codex?: Record<string, unknown> | undefined;
227
- }, {
228
- claude?: Record<string, unknown> | undefined;
229
- codex?: Record<string, unknown> | undefined;
230
- }>>;
90
+ }, z.core.$strip>>;
231
91
  systemPrompt: z.ZodOptional<z.ZodString>;
232
92
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
233
- }, "strip", z.ZodTypeAny, {
234
- cwd: string;
235
- provider: string;
236
- title?: string | null | undefined;
237
- modeId?: string | undefined;
238
- model?: string | undefined;
239
- thinkingOptionId?: string | undefined;
240
- approvalPolicy?: string | undefined;
241
- sandboxMode?: string | undefined;
242
- networkAccess?: boolean | undefined;
243
- webSearch?: boolean | undefined;
244
- featureValues?: Record<string, unknown> | undefined;
245
- extra?: {
246
- claude?: Record<string, unknown> | undefined;
247
- codex?: Record<string, unknown> | undefined;
248
- } | undefined;
249
- systemPrompt?: string | undefined;
250
- mcpServers?: Record<string, unknown> | undefined;
251
- }, {
252
- cwd: string;
253
- provider: string;
254
- title?: string | null | undefined;
255
- modeId?: string | undefined;
256
- model?: string | undefined;
257
- thinkingOptionId?: string | undefined;
258
- approvalPolicy?: string | undefined;
259
- sandboxMode?: string | undefined;
260
- networkAccess?: boolean | undefined;
261
- webSearch?: boolean | undefined;
262
- featureValues?: Record<string, unknown> | undefined;
263
- extra?: {
264
- claude?: Record<string, unknown> | undefined;
265
- codex?: Record<string, unknown> | undefined;
266
- } | undefined;
267
- systemPrompt?: string | undefined;
268
- mcpServers?: Record<string, unknown> | undefined;
269
- }>;
270
- }, "strip", z.ZodTypeAny, {
271
- type: "new-agent";
272
- config: {
273
- cwd: string;
274
- provider: string;
275
- title?: string | null | undefined;
276
- modeId?: string | undefined;
277
- model?: string | undefined;
278
- thinkingOptionId?: string | undefined;
279
- approvalPolicy?: string | undefined;
280
- sandboxMode?: string | undefined;
281
- networkAccess?: boolean | undefined;
282
- webSearch?: boolean | undefined;
283
- featureValues?: Record<string, unknown> | undefined;
284
- extra?: {
285
- claude?: Record<string, unknown> | undefined;
286
- codex?: Record<string, unknown> | undefined;
287
- } | undefined;
288
- systemPrompt?: string | undefined;
289
- mcpServers?: Record<string, unknown> | undefined;
290
- };
291
- }, {
292
- type: "new-agent";
293
- config: {
294
- cwd: string;
295
- provider: string;
296
- title?: string | null | undefined;
297
- modeId?: string | undefined;
298
- model?: string | undefined;
299
- thinkingOptionId?: string | undefined;
300
- approvalPolicy?: string | undefined;
301
- sandboxMode?: string | undefined;
302
- networkAccess?: boolean | undefined;
303
- webSearch?: boolean | undefined;
304
- featureValues?: Record<string, unknown> | undefined;
305
- extra?: {
306
- claude?: Record<string, unknown> | undefined;
307
- codex?: Record<string, unknown> | undefined;
308
- } | undefined;
309
- systemPrompt?: string | undefined;
310
- mcpServers?: Record<string, unknown> | undefined;
311
- };
312
- }>]>;
313
- status: z.ZodEnum<["active", "paused", "completed"]>;
93
+ }, z.core.$strip>;
94
+ }, z.core.$strip>], "type">;
95
+ status: z.ZodEnum<{
96
+ completed: "completed";
97
+ active: "active";
98
+ paused: "paused";
99
+ }>;
314
100
  createdAt: z.ZodString;
315
101
  updatedAt: z.ZodString;
316
102
  nextRunAt: z.ZodNullable<z.ZodString>;
@@ -323,177 +109,39 @@ export declare const StoredScheduleSchema: z.ZodObject<{
323
109
  scheduledFor: z.ZodString;
324
110
  startedAt: z.ZodString;
325
111
  endedAt: z.ZodNullable<z.ZodString>;
326
- status: z.ZodEnum<["running", "succeeded", "failed"]>;
327
- agentId: z.ZodNullable<z.ZodString>;
112
+ status: z.ZodEnum<{
113
+ running: "running";
114
+ failed: "failed";
115
+ succeeded: "succeeded";
116
+ }>;
117
+ agentId: z.ZodNullable<z.ZodGUID>;
328
118
  output: z.ZodNullable<z.ZodString>;
329
119
  error: z.ZodNullable<z.ZodString>;
330
- }, "strip", z.ZodTypeAny, {
331
- error: string | null;
332
- agentId: string | null;
333
- status: "running" | "failed" | "succeeded";
334
- id: string;
335
- scheduledFor: string;
336
- startedAt: string;
337
- endedAt: string | null;
338
- output: string | null;
339
- }, {
340
- error: string | null;
341
- agentId: string | null;
342
- status: "running" | "failed" | "succeeded";
343
- id: string;
344
- scheduledFor: string;
345
- startedAt: string;
346
- endedAt: string | null;
347
- output: string | null;
348
- }>, "many">;
349
- }, "strip", z.ZodTypeAny, {
350
- name: string | null;
351
- status: "completed" | "active" | "paused";
352
- id: string;
353
- createdAt: string;
354
- updatedAt: string;
355
- prompt: string;
356
- cadence: {
357
- type: "every";
358
- everyMs: number;
359
- } | {
360
- type: "cron";
361
- expression: string;
362
- timezone?: string | undefined;
363
- };
364
- target: {
365
- agentId: string;
366
- type: "agent";
367
- } | {
368
- type: "new-agent";
369
- config: {
370
- cwd: string;
371
- provider: string;
372
- title?: string | null | undefined;
373
- modeId?: string | undefined;
374
- model?: string | undefined;
375
- thinkingOptionId?: string | undefined;
376
- approvalPolicy?: string | undefined;
377
- sandboxMode?: string | undefined;
378
- networkAccess?: boolean | undefined;
379
- webSearch?: boolean | undefined;
380
- featureValues?: Record<string, unknown> | undefined;
381
- extra?: {
382
- claude?: Record<string, unknown> | undefined;
383
- codex?: Record<string, unknown> | undefined;
384
- } | undefined;
385
- systemPrompt?: string | undefined;
386
- mcpServers?: Record<string, unknown> | undefined;
387
- };
388
- };
389
- nextRunAt: string | null;
390
- lastRunAt: string | null;
391
- pausedAt: string | null;
392
- expiresAt: string | null;
393
- maxRuns: number | null;
394
- runs: {
395
- error: string | null;
396
- agentId: string | null;
397
- status: "running" | "failed" | "succeeded";
398
- id: string;
399
- scheduledFor: string;
400
- startedAt: string;
401
- endedAt: string | null;
402
- output: string | null;
403
- }[];
404
- }, {
405
- name: string | null;
406
- status: "completed" | "active" | "paused";
407
- id: string;
408
- createdAt: string;
409
- updatedAt: string;
410
- prompt: string;
411
- cadence: {
412
- type: "every";
413
- everyMs: number;
414
- } | {
415
- type: "cron";
416
- expression: string;
417
- timezone?: string | undefined;
418
- };
419
- target: {
420
- agentId: string;
421
- type: "agent";
422
- } | {
423
- type: "new-agent";
424
- config: {
425
- cwd: string;
426
- provider: string;
427
- title?: string | null | undefined;
428
- modeId?: string | undefined;
429
- model?: string | undefined;
430
- thinkingOptionId?: string | undefined;
431
- approvalPolicy?: string | undefined;
432
- sandboxMode?: string | undefined;
433
- networkAccess?: boolean | undefined;
434
- webSearch?: boolean | undefined;
435
- featureValues?: Record<string, unknown> | undefined;
436
- extra?: {
437
- claude?: Record<string, unknown> | undefined;
438
- codex?: Record<string, unknown> | undefined;
439
- } | undefined;
440
- systemPrompt?: string | undefined;
441
- mcpServers?: Record<string, unknown> | undefined;
442
- };
443
- };
444
- nextRunAt: string | null;
445
- lastRunAt: string | null;
446
- pausedAt: string | null;
447
- expiresAt: string | null;
448
- maxRuns: number | null;
449
- runs: {
450
- error: string | null;
451
- agentId: string | null;
452
- status: "running" | "failed" | "succeeded";
453
- id: string;
454
- scheduledFor: string;
455
- startedAt: string;
456
- endedAt: string | null;
457
- output: string | null;
458
- }[];
459
- }>;
120
+ }, z.core.$strip>>;
121
+ }, z.core.$strip>;
460
122
  export type StoredSchedule = z.infer<typeof StoredScheduleSchema>;
461
- export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
462
- id: z.ZodString;
123
+ export declare const ScheduleSummarySchema: z.ZodObject<{
463
124
  name: z.ZodNullable<z.ZodString>;
464
- prompt: z.ZodString;
465
- cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
125
+ id: z.ZodString;
126
+ status: z.ZodEnum<{
127
+ completed: "completed";
128
+ active: "active";
129
+ paused: "paused";
130
+ }>;
131
+ createdAt: z.ZodString;
132
+ updatedAt: z.ZodString;
133
+ cadence: z.ZodDiscriminatedUnion<[z.ZodObject<{
466
134
  type: z.ZodLiteral<"every">;
467
135
  everyMs: z.ZodNumber;
468
- }, "strip", z.ZodTypeAny, {
469
- type: "every";
470
- everyMs: number;
471
- }, {
472
- type: "every";
473
- everyMs: number;
474
- }>, z.ZodObject<{
136
+ }, z.core.$strip>, z.ZodObject<{
475
137
  type: z.ZodLiteral<"cron">;
476
138
  expression: z.ZodString;
477
139
  timezone: z.ZodOptional<z.ZodString>;
478
- }, "strip", z.ZodTypeAny, {
479
- type: "cron";
480
- expression: string;
481
- timezone?: string | undefined;
482
- }, {
483
- type: "cron";
484
- expression: string;
485
- timezone?: string | undefined;
486
- }>]>;
487
- target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
140
+ }, z.core.$strip>], "type">;
141
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
488
142
  type: z.ZodLiteral<"agent">;
489
- agentId: z.ZodString;
490
- }, "strip", z.ZodTypeAny, {
491
- agentId: string;
492
- type: "agent";
493
- }, {
494
- agentId: string;
495
- type: "agent";
496
- }>, z.ZodObject<{
143
+ agentId: z.ZodGUID;
144
+ }, z.core.$strip>, z.ZodObject<{
497
145
  type: z.ZodLiteral<"new-agent">;
498
146
  config: z.ZodObject<{
499
147
  provider: z.ZodString;
@@ -510,222 +158,18 @@ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
510
158
  extra: z.ZodOptional<z.ZodObject<{
511
159
  codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
512
160
  claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
513
- }, "strip", z.ZodTypeAny, {
514
- claude?: Record<string, unknown> | undefined;
515
- codex?: Record<string, unknown> | undefined;
516
- }, {
517
- claude?: Record<string, unknown> | undefined;
518
- codex?: Record<string, unknown> | undefined;
519
- }>>;
161
+ }, z.core.$strip>>;
520
162
  systemPrompt: z.ZodOptional<z.ZodString>;
521
163
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
522
- }, "strip", z.ZodTypeAny, {
523
- cwd: string;
524
- provider: string;
525
- title?: string | null | undefined;
526
- modeId?: string | undefined;
527
- model?: string | undefined;
528
- thinkingOptionId?: string | undefined;
529
- approvalPolicy?: string | undefined;
530
- sandboxMode?: string | undefined;
531
- networkAccess?: boolean | undefined;
532
- webSearch?: boolean | undefined;
533
- featureValues?: Record<string, unknown> | undefined;
534
- extra?: {
535
- claude?: Record<string, unknown> | undefined;
536
- codex?: Record<string, unknown> | undefined;
537
- } | undefined;
538
- systemPrompt?: string | undefined;
539
- mcpServers?: Record<string, unknown> | undefined;
540
- }, {
541
- cwd: string;
542
- provider: string;
543
- title?: string | null | undefined;
544
- modeId?: string | undefined;
545
- model?: string | undefined;
546
- thinkingOptionId?: string | undefined;
547
- approvalPolicy?: string | undefined;
548
- sandboxMode?: string | undefined;
549
- networkAccess?: boolean | undefined;
550
- webSearch?: boolean | undefined;
551
- featureValues?: Record<string, unknown> | undefined;
552
- extra?: {
553
- claude?: Record<string, unknown> | undefined;
554
- codex?: Record<string, unknown> | undefined;
555
- } | undefined;
556
- systemPrompt?: string | undefined;
557
- mcpServers?: Record<string, unknown> | undefined;
558
- }>;
559
- }, "strip", z.ZodTypeAny, {
560
- type: "new-agent";
561
- config: {
562
- cwd: string;
563
- provider: string;
564
- title?: string | null | undefined;
565
- modeId?: string | undefined;
566
- model?: string | undefined;
567
- thinkingOptionId?: string | undefined;
568
- approvalPolicy?: string | undefined;
569
- sandboxMode?: string | undefined;
570
- networkAccess?: boolean | undefined;
571
- webSearch?: boolean | undefined;
572
- featureValues?: Record<string, unknown> | undefined;
573
- extra?: {
574
- claude?: Record<string, unknown> | undefined;
575
- codex?: Record<string, unknown> | undefined;
576
- } | undefined;
577
- systemPrompt?: string | undefined;
578
- mcpServers?: Record<string, unknown> | undefined;
579
- };
580
- }, {
581
- type: "new-agent";
582
- config: {
583
- cwd: string;
584
- provider: string;
585
- title?: string | null | undefined;
586
- modeId?: string | undefined;
587
- model?: string | undefined;
588
- thinkingOptionId?: string | undefined;
589
- approvalPolicy?: string | undefined;
590
- sandboxMode?: string | undefined;
591
- networkAccess?: boolean | undefined;
592
- webSearch?: boolean | undefined;
593
- featureValues?: Record<string, unknown> | undefined;
594
- extra?: {
595
- claude?: Record<string, unknown> | undefined;
596
- codex?: Record<string, unknown> | undefined;
597
- } | undefined;
598
- systemPrompt?: string | undefined;
599
- mcpServers?: Record<string, unknown> | undefined;
600
- };
601
- }>]>;
602
- status: z.ZodEnum<["active", "paused", "completed"]>;
603
- createdAt: z.ZodString;
604
- updatedAt: z.ZodString;
164
+ }, z.core.$strip>;
165
+ }, z.core.$strip>], "type">;
166
+ prompt: z.ZodString;
605
167
  nextRunAt: z.ZodNullable<z.ZodString>;
606
168
  lastRunAt: z.ZodNullable<z.ZodString>;
607
169
  pausedAt: z.ZodNullable<z.ZodString>;
608
170
  expiresAt: z.ZodNullable<z.ZodString>;
609
171
  maxRuns: z.ZodNullable<z.ZodNumber>;
610
- runs: z.ZodArray<z.ZodObject<{
611
- id: z.ZodString;
612
- scheduledFor: z.ZodString;
613
- startedAt: z.ZodString;
614
- endedAt: z.ZodNullable<z.ZodString>;
615
- status: z.ZodEnum<["running", "succeeded", "failed"]>;
616
- agentId: z.ZodNullable<z.ZodString>;
617
- output: z.ZodNullable<z.ZodString>;
618
- error: z.ZodNullable<z.ZodString>;
619
- }, "strip", z.ZodTypeAny, {
620
- error: string | null;
621
- agentId: string | null;
622
- status: "running" | "failed" | "succeeded";
623
- id: string;
624
- scheduledFor: string;
625
- startedAt: string;
626
- endedAt: string | null;
627
- output: string | null;
628
- }, {
629
- error: string | null;
630
- agentId: string | null;
631
- status: "running" | "failed" | "succeeded";
632
- id: string;
633
- scheduledFor: string;
634
- startedAt: string;
635
- endedAt: string | null;
636
- output: string | null;
637
- }>, "many">;
638
- }, "runs">, "strip", z.ZodTypeAny, {
639
- name: string | null;
640
- status: "completed" | "active" | "paused";
641
- id: string;
642
- createdAt: string;
643
- updatedAt: string;
644
- prompt: string;
645
- cadence: {
646
- type: "every";
647
- everyMs: number;
648
- } | {
649
- type: "cron";
650
- expression: string;
651
- timezone?: string | undefined;
652
- };
653
- target: {
654
- agentId: string;
655
- type: "agent";
656
- } | {
657
- type: "new-agent";
658
- config: {
659
- cwd: string;
660
- provider: string;
661
- title?: string | null | undefined;
662
- modeId?: string | undefined;
663
- model?: string | undefined;
664
- thinkingOptionId?: string | undefined;
665
- approvalPolicy?: string | undefined;
666
- sandboxMode?: string | undefined;
667
- networkAccess?: boolean | undefined;
668
- webSearch?: boolean | undefined;
669
- featureValues?: Record<string, unknown> | undefined;
670
- extra?: {
671
- claude?: Record<string, unknown> | undefined;
672
- codex?: Record<string, unknown> | undefined;
673
- } | undefined;
674
- systemPrompt?: string | undefined;
675
- mcpServers?: Record<string, unknown> | undefined;
676
- };
677
- };
678
- nextRunAt: string | null;
679
- lastRunAt: string | null;
680
- pausedAt: string | null;
681
- expiresAt: string | null;
682
- maxRuns: number | null;
683
- }, {
684
- name: string | null;
685
- status: "completed" | "active" | "paused";
686
- id: string;
687
- createdAt: string;
688
- updatedAt: string;
689
- prompt: string;
690
- cadence: {
691
- type: "every";
692
- everyMs: number;
693
- } | {
694
- type: "cron";
695
- expression: string;
696
- timezone?: string | undefined;
697
- };
698
- target: {
699
- agentId: string;
700
- type: "agent";
701
- } | {
702
- type: "new-agent";
703
- config: {
704
- cwd: string;
705
- provider: string;
706
- title?: string | null | undefined;
707
- modeId?: string | undefined;
708
- model?: string | undefined;
709
- thinkingOptionId?: string | undefined;
710
- approvalPolicy?: string | undefined;
711
- sandboxMode?: string | undefined;
712
- networkAccess?: boolean | undefined;
713
- webSearch?: boolean | undefined;
714
- featureValues?: Record<string, unknown> | undefined;
715
- extra?: {
716
- claude?: Record<string, unknown> | undefined;
717
- codex?: Record<string, unknown> | undefined;
718
- } | undefined;
719
- systemPrompt?: string | undefined;
720
- mcpServers?: Record<string, unknown> | undefined;
721
- };
722
- };
723
- nextRunAt: string | null;
724
- lastRunAt: string | null;
725
- pausedAt: string | null;
726
- expiresAt: string | null;
727
- maxRuns: number | null;
728
- }>;
172
+ }, z.core.$strip>;
729
173
  export type ScheduleSummary = z.infer<typeof ScheduleSummarySchema>;
730
174
  export interface CreateScheduleInput {
731
175
  name?: string | null;