@anchrd/colab-sdk 0.1.22 → 0.1.23

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.
@@ -118,6 +118,9 @@ export declare const CredentialUpdateInput: z.ZodObject<{
118
118
  accountId: z.ZodString;
119
119
  gatewayId: z.ZodString;
120
120
  }, z.core.$strict>>;
121
+ after: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>>;
122
+ personal: z.ZodOptional<z.ZodBoolean>;
123
+ fallback: z.ZodOptional<z.ZodBoolean>;
121
124
  }, z.core.$strict>;
122
125
  export type CredentialUpdateInput = z.infer<typeof CredentialUpdateInput>;
123
126
  export declare const CredentialTestInput: z.ZodObject<{
@@ -147,6 +150,10 @@ export declare const Credential: z.ZodObject<{
147
150
  }>;
148
151
  checkedAt: z.ZodNullable<z.ZodISODateTime>;
149
152
  setAt: z.ZodISODateTime;
153
+ position: z.ZodInt;
154
+ personal: z.ZodBoolean;
155
+ fallback: z.ZodBoolean;
156
+ limitedAt: z.ZodNullable<z.ZodISODateTime>;
150
157
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
151
158
  createdAt: z.ZodISODateTime;
152
159
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -173,6 +180,10 @@ export declare const CredentialList: z.ZodObject<{
173
180
  }>;
174
181
  checkedAt: z.ZodNullable<z.ZodISODateTime>;
175
182
  setAt: z.ZodISODateTime;
183
+ position: z.ZodInt;
184
+ personal: z.ZodBoolean;
185
+ fallback: z.ZodBoolean;
186
+ limitedAt: z.ZodNullable<z.ZodISODateTime>;
176
187
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
177
188
  createdAt: z.ZodISODateTime;
178
189
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -208,6 +219,10 @@ export declare const CredentialTested: z.ZodObject<{
208
219
  }>;
209
220
  checkedAt: z.ZodNullable<z.ZodISODateTime>;
210
221
  setAt: z.ZodISODateTime;
222
+ position: z.ZodInt;
223
+ personal: z.ZodBoolean;
224
+ fallback: z.ZodBoolean;
225
+ limitedAt: z.ZodNullable<z.ZodISODateTime>;
211
226
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
212
227
  createdAt: z.ZodISODateTime;
213
228
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -226,10 +241,15 @@ export declare const Subagents: z.ZodObject<{
226
241
  max: z.ZodInt;
227
242
  }, z.core.$strict>;
228
243
  export type Subagents = z.infer<typeof Subagents>;
244
+ export declare const ChangeTrigger: z.ZodObject<{
245
+ on: z.ZodLiteral<"change">;
246
+ quietMinutes: z.ZodInt;
247
+ }, z.core.$strict>;
248
+ export type ChangeTrigger = z.infer<typeof ChangeTrigger>;
229
249
  export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
250
  on: z.ZodLiteral<"change">;
231
251
  quietMinutes: z.ZodInt;
232
- }, z.core.$strict>, z.ZodObject<{
252
+ }, z.core.$strip>, z.ZodObject<{
233
253
  on: z.ZodLiteral<"schedule">;
234
254
  schedule: z.ZodObject<{
235
255
  rhythm: z.ZodEnum<{
@@ -249,6 +269,24 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
249
269
  sunday: "sunday";
250
270
  }>>>;
251
271
  dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
272
+ weekdayOfMonth: z.ZodOptional<z.ZodObject<{
273
+ week: z.ZodEnum<{
274
+ first: "first";
275
+ last: "last";
276
+ second: "second";
277
+ third: "third";
278
+ fourth: "fourth";
279
+ }>;
280
+ day: z.ZodEnum<{
281
+ monday: "monday";
282
+ tuesday: "tuesday";
283
+ wednesday: "wednesday";
284
+ thursday: "thursday";
285
+ friday: "friday";
286
+ saturday: "saturday";
287
+ sunday: "sunday";
288
+ }>;
289
+ }, z.core.$strict>>;
252
290
  times: z.ZodOptional<z.ZodArray<z.ZodString>>;
253
291
  dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
254
292
  zone: z.ZodOptional<z.ZodString>;
@@ -257,7 +295,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
257
295
  continue: "continue";
258
296
  }>>;
259
297
  }, z.core.$strict>;
260
- }, z.core.$strict>], "on">;
298
+ }, z.core.$strip>], "on">;
261
299
  export type Trigger = z.infer<typeof Trigger>;
262
300
  export declare const OperatorLimits: z.ZodObject<{
263
301
  maxRunMinutes: z.ZodInt;
@@ -290,9 +328,12 @@ export declare const PauseReason: z.ZodEnum<{
290
328
  limit: "limit";
291
329
  manual: "manual";
292
330
  failures: "failures";
331
+ owner: "owner";
332
+ budget: "budget";
293
333
  }>;
294
334
  export type PauseReason = z.infer<typeof PauseReason>;
295
335
  export declare const MachineListInput: z.ZodObject<{
336
+ personal: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
296
337
  cursor: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
297
338
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
298
339
  }, z.core.$strict>;
@@ -303,13 +344,14 @@ export declare const MachineGetInput: z.ZodObject<{
303
344
  export type MachineGetInput = z.infer<typeof MachineGetInput>;
304
345
  export declare const OperatorMachineCreateInput: z.ZodObject<{
305
346
  name: z.ZodString;
347
+ personal: z.ZodOptional<z.ZodBoolean>;
306
348
  roleIds: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`role_${string}`>>>;
307
- provider: z.ZodEnum<{
349
+ provider: z.ZodOptional<z.ZodEnum<{
308
350
  claude: "claude";
309
351
  codex: "codex";
310
352
  gemini: "gemini";
311
- }>;
312
- credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
353
+ }>>;
354
+ credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
313
355
  model: z.ZodOptional<z.ZodEnum<{
314
356
  opus: "opus";
315
357
  sonnet: "sonnet";
@@ -328,38 +370,10 @@ export declare const OperatorMachineCreateInput: z.ZodObject<{
328
370
  allowed: z.ZodBoolean;
329
371
  max: z.ZodInt;
330
372
  }, z.core.$strict>>;
331
- trigger: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ trigger: z.ZodOptional<z.ZodObject<{
332
374
  on: z.ZodLiteral<"change">;
333
375
  quietMinutes: z.ZodInt;
334
- }, z.core.$strict>, z.ZodObject<{
335
- on: z.ZodLiteral<"schedule">;
336
- schedule: z.ZodObject<{
337
- rhythm: z.ZodEnum<{
338
- manual: "manual";
339
- daily: "daily";
340
- weekly: "weekly";
341
- monthly: "monthly";
342
- dates: "dates";
343
- }>;
344
- days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
345
- monday: "monday";
346
- tuesday: "tuesday";
347
- wednesday: "wednesday";
348
- thursday: "thursday";
349
- friday: "friday";
350
- saturday: "saturday";
351
- sunday: "sunday";
352
- }>>>;
353
- dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
354
- times: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
- dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
- zone: z.ZodOptional<z.ZodString>;
357
- whileOpen: z.ZodOptional<z.ZodEnum<{
358
- wait: "wait";
359
- continue: "continue";
360
- }>>;
361
- }, z.core.$strict>;
362
- }, z.core.$strict>], "on">>;
376
+ }, z.core.$strict>>;
363
377
  limits: z.ZodOptional<z.ZodObject<{
364
378
  maxRunMinutes: z.ZodOptional<z.ZodInt>;
365
379
  maxRunsPerDay: z.ZodOptional<z.ZodInt>;
@@ -388,43 +402,17 @@ export declare const OperatorMachineUpdateInput: z.ZodObject<{
388
402
  allowed: z.ZodBoolean;
389
403
  max: z.ZodInt;
390
404
  }, z.core.$strict>>;
391
- trigger: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ trigger: z.ZodOptional<z.ZodObject<{
392
406
  on: z.ZodLiteral<"change">;
393
407
  quietMinutes: z.ZodInt;
394
- }, z.core.$strict>, z.ZodObject<{
395
- on: z.ZodLiteral<"schedule">;
396
- schedule: z.ZodObject<{
397
- rhythm: z.ZodEnum<{
398
- manual: "manual";
399
- daily: "daily";
400
- weekly: "weekly";
401
- monthly: "monthly";
402
- dates: "dates";
403
- }>;
404
- days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
405
- monday: "monday";
406
- tuesday: "tuesday";
407
- wednesday: "wednesday";
408
- thursday: "thursday";
409
- friday: "friday";
410
- saturday: "saturday";
411
- sunday: "sunday";
412
- }>>>;
413
- dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
414
- times: z.ZodOptional<z.ZodArray<z.ZodString>>;
415
- dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
416
- zone: z.ZodOptional<z.ZodString>;
417
- whileOpen: z.ZodOptional<z.ZodEnum<{
418
- wait: "wait";
419
- continue: "continue";
420
- }>>;
421
- }, z.core.$strict>;
422
- }, z.core.$strict>], "on">>;
408
+ }, z.core.$strict>>;
423
409
  limits: z.ZodOptional<z.ZodObject<{
424
410
  maxRunMinutes: z.ZodOptional<z.ZodInt>;
425
411
  maxRunsPerDay: z.ZodOptional<z.ZodInt>;
426
412
  }, z.core.$strict>>;
427
413
  responsibleId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
414
+ name: z.ZodOptional<z.ZodString>;
415
+ mcpIds: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`mcp_${string}`>>>;
428
416
  }, z.core.$strict>;
429
417
  export type OperatorMachineUpdateInput = z.infer<typeof OperatorMachineUpdateInput>;
430
418
  export declare const MachineDisableInput: z.ZodObject<{
@@ -439,6 +427,10 @@ export declare const OperatorMachineArchiveInput: z.ZodObject<{
439
427
  machineId: z.ZodTemplateLiteral<`user_${string}`>;
440
428
  }, z.core.$strict>;
441
429
  export type OperatorMachineArchiveInput = z.infer<typeof OperatorMachineArchiveInput>;
430
+ export declare const OperatorMachineRestoreInput: z.ZodObject<{
431
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
432
+ }, z.core.$strict>;
433
+ export type OperatorMachineRestoreInput = z.infer<typeof OperatorMachineRestoreInput>;
442
434
  export declare const Operator: z.ZodObject<{
443
435
  machineId: z.ZodTemplateLiteral<`user_${string}`>;
444
436
  name: z.ZodString;
@@ -448,6 +440,8 @@ export declare const Operator: z.ZodObject<{
448
440
  gemini: "gemini";
449
441
  }>;
450
442
  credentialId: z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>;
443
+ ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
444
+ open: z.ZodNullable<z.ZodInt>;
451
445
  model: z.ZodEnum<{
452
446
  opus: "opus";
453
447
  sonnet: "sonnet";
@@ -469,7 +463,7 @@ export declare const Operator: z.ZodObject<{
469
463
  trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
464
  on: z.ZodLiteral<"change">;
471
465
  quietMinutes: z.ZodInt;
472
- }, z.core.$strict>, z.ZodObject<{
466
+ }, z.core.$strip>, z.ZodObject<{
473
467
  on: z.ZodLiteral<"schedule">;
474
468
  schedule: z.ZodObject<{
475
469
  rhythm: z.ZodEnum<{
@@ -489,6 +483,24 @@ export declare const Operator: z.ZodObject<{
489
483
  sunday: "sunday";
490
484
  }>>>;
491
485
  dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
486
+ weekdayOfMonth: z.ZodOptional<z.ZodObject<{
487
+ week: z.ZodEnum<{
488
+ first: "first";
489
+ last: "last";
490
+ second: "second";
491
+ third: "third";
492
+ fourth: "fourth";
493
+ }>;
494
+ day: z.ZodEnum<{
495
+ monday: "monday";
496
+ tuesday: "tuesday";
497
+ wednesday: "wednesday";
498
+ thursday: "thursday";
499
+ friday: "friday";
500
+ saturday: "saturday";
501
+ sunday: "sunday";
502
+ }>;
503
+ }, z.core.$strict>>;
492
504
  times: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
505
  dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
494
506
  zone: z.ZodOptional<z.ZodString>;
@@ -497,11 +509,60 @@ export declare const Operator: z.ZodObject<{
497
509
  continue: "continue";
498
510
  }>>;
499
511
  }, z.core.$strict>;
500
- }, z.core.$strict>], "on">;
512
+ }, z.core.$strip>], "on">;
501
513
  limits: z.ZodObject<{
502
514
  maxRunMinutes: z.ZodInt;
503
515
  maxRunsPerDay: z.ZodInt;
504
516
  }, z.core.$strict>;
517
+ wokenBy: z.ZodArray<z.ZodObject<{
518
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
519
+ name: z.ZodString;
520
+ rhythm: z.ZodObject<{
521
+ rhythm: z.ZodEnum<{
522
+ manual: "manual";
523
+ daily: "daily";
524
+ weekly: "weekly";
525
+ monthly: "monthly";
526
+ dates: "dates";
527
+ }>;
528
+ days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
529
+ monday: "monday";
530
+ tuesday: "tuesday";
531
+ wednesday: "wednesday";
532
+ thursday: "thursday";
533
+ friday: "friday";
534
+ saturday: "saturday";
535
+ sunday: "sunday";
536
+ }>>>;
537
+ dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
538
+ weekdayOfMonth: z.ZodOptional<z.ZodObject<{
539
+ week: z.ZodEnum<{
540
+ first: "first";
541
+ last: "last";
542
+ second: "second";
543
+ third: "third";
544
+ fourth: "fourth";
545
+ }>;
546
+ day: z.ZodEnum<{
547
+ monday: "monday";
548
+ tuesday: "tuesday";
549
+ wednesday: "wednesday";
550
+ thursday: "thursday";
551
+ friday: "friday";
552
+ saturday: "saturday";
553
+ sunday: "sunday";
554
+ }>;
555
+ }, z.core.$strict>>;
556
+ times: z.ZodOptional<z.ZodArray<z.ZodString>>;
557
+ dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
558
+ zone: z.ZodOptional<z.ZodString>;
559
+ whileOpen: z.ZodOptional<z.ZodEnum<{
560
+ wait: "wait";
561
+ continue: "continue";
562
+ }>>;
563
+ }, z.core.$strict>;
564
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
565
+ }, z.core.$strip>>;
505
566
  state: z.ZodEnum<{
506
567
  no_role: "no_role";
507
568
  ready: "ready";
@@ -512,6 +573,8 @@ export declare const Operator: z.ZodObject<{
512
573
  limit: "limit";
513
574
  manual: "manual";
514
575
  failures: "failures";
576
+ owner: "owner";
577
+ budget: "budget";
515
578
  }>>;
516
579
  pausedAt: z.ZodNullable<z.ZodISODateTime>;
517
580
  running: z.ZodNullable<z.ZodObject<{
@@ -520,11 +583,27 @@ export declare const Operator: z.ZodObject<{
520
583
  }, z.core.$strip>>;
521
584
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
522
585
  rev: z.ZodNumber;
586
+ modelAllowed: z.ZodNullable<z.ZodBoolean>;
587
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
588
+ path: z.ZodString;
589
+ markdown: z.ZodString;
590
+ version: z.ZodNullable<z.ZodInt>;
591
+ }, z.core.$strip>>>;
592
+ mcps: z.ZodArray<z.ZodObject<{
593
+ mcpId: z.ZodTemplateLiteral<`mcp_${string}`>;
594
+ name: z.ZodString;
595
+ }, z.core.$strip>>;
523
596
  createdAt: z.ZodISODateTime;
524
597
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
525
598
  updatedAt: z.ZodISODateTime;
526
599
  }, z.core.$strip>;
527
600
  export type Operator = z.infer<typeof Operator>;
601
+ export declare const OperatorBudget: z.ZodObject<{
602
+ limitUsd: z.ZodNullable<z.ZodNumber>;
603
+ spentUsd: z.ZodNumber;
604
+ reached: z.ZodBoolean;
605
+ }, z.core.$strip>;
606
+ export type OperatorBudget = z.infer<typeof OperatorBudget>;
528
607
  export declare const OperatorList: z.ZodObject<{
529
608
  items: z.ZodArray<z.ZodObject<{
530
609
  machineId: z.ZodTemplateLiteral<`user_${string}`>;
@@ -535,6 +614,8 @@ export declare const OperatorList: z.ZodObject<{
535
614
  gemini: "gemini";
536
615
  }>;
537
616
  credentialId: z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>;
617
+ ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
618
+ open: z.ZodNullable<z.ZodInt>;
538
619
  model: z.ZodEnum<{
539
620
  opus: "opus";
540
621
  sonnet: "sonnet";
@@ -556,7 +637,7 @@ export declare const OperatorList: z.ZodObject<{
556
637
  trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
557
638
  on: z.ZodLiteral<"change">;
558
639
  quietMinutes: z.ZodInt;
559
- }, z.core.$strict>, z.ZodObject<{
640
+ }, z.core.$strip>, z.ZodObject<{
560
641
  on: z.ZodLiteral<"schedule">;
561
642
  schedule: z.ZodObject<{
562
643
  rhythm: z.ZodEnum<{
@@ -576,6 +657,24 @@ export declare const OperatorList: z.ZodObject<{
576
657
  sunday: "sunday";
577
658
  }>>>;
578
659
  dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
660
+ weekdayOfMonth: z.ZodOptional<z.ZodObject<{
661
+ week: z.ZodEnum<{
662
+ first: "first";
663
+ last: "last";
664
+ second: "second";
665
+ third: "third";
666
+ fourth: "fourth";
667
+ }>;
668
+ day: z.ZodEnum<{
669
+ monday: "monday";
670
+ tuesday: "tuesday";
671
+ wednesday: "wednesday";
672
+ thursday: "thursday";
673
+ friday: "friday";
674
+ saturday: "saturday";
675
+ sunday: "sunday";
676
+ }>;
677
+ }, z.core.$strict>>;
579
678
  times: z.ZodOptional<z.ZodArray<z.ZodString>>;
580
679
  dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
581
680
  zone: z.ZodOptional<z.ZodString>;
@@ -584,11 +683,60 @@ export declare const OperatorList: z.ZodObject<{
584
683
  continue: "continue";
585
684
  }>>;
586
685
  }, z.core.$strict>;
587
- }, z.core.$strict>], "on">;
686
+ }, z.core.$strip>], "on">;
588
687
  limits: z.ZodObject<{
589
688
  maxRunMinutes: z.ZodInt;
590
689
  maxRunsPerDay: z.ZodInt;
591
690
  }, z.core.$strict>;
691
+ wokenBy: z.ZodArray<z.ZodObject<{
692
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
693
+ name: z.ZodString;
694
+ rhythm: z.ZodObject<{
695
+ rhythm: z.ZodEnum<{
696
+ manual: "manual";
697
+ daily: "daily";
698
+ weekly: "weekly";
699
+ monthly: "monthly";
700
+ dates: "dates";
701
+ }>;
702
+ days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
703
+ monday: "monday";
704
+ tuesday: "tuesday";
705
+ wednesday: "wednesday";
706
+ thursday: "thursday";
707
+ friday: "friday";
708
+ saturday: "saturday";
709
+ sunday: "sunday";
710
+ }>>>;
711
+ dayOfMonth: z.ZodOptional<z.ZodArray<z.ZodInt>>;
712
+ weekdayOfMonth: z.ZodOptional<z.ZodObject<{
713
+ week: z.ZodEnum<{
714
+ first: "first";
715
+ last: "last";
716
+ second: "second";
717
+ third: "third";
718
+ fourth: "fourth";
719
+ }>;
720
+ day: z.ZodEnum<{
721
+ monday: "monday";
722
+ tuesday: "tuesday";
723
+ wednesday: "wednesday";
724
+ thursday: "thursday";
725
+ friday: "friday";
726
+ saturday: "saturday";
727
+ sunday: "sunday";
728
+ }>;
729
+ }, z.core.$strict>>;
730
+ times: z.ZodOptional<z.ZodArray<z.ZodString>>;
731
+ dates: z.ZodOptional<z.ZodArray<z.ZodString>>;
732
+ zone: z.ZodOptional<z.ZodString>;
733
+ whileOpen: z.ZodOptional<z.ZodEnum<{
734
+ wait: "wait";
735
+ continue: "continue";
736
+ }>>;
737
+ }, z.core.$strict>;
738
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
739
+ }, z.core.$strip>>;
592
740
  state: z.ZodEnum<{
593
741
  no_role: "no_role";
594
742
  ready: "ready";
@@ -599,6 +747,8 @@ export declare const OperatorList: z.ZodObject<{
599
747
  limit: "limit";
600
748
  manual: "manual";
601
749
  failures: "failures";
750
+ owner: "owner";
751
+ budget: "budget";
602
752
  }>>;
603
753
  pausedAt: z.ZodNullable<z.ZodISODateTime>;
604
754
  running: z.ZodNullable<z.ZodObject<{
@@ -607,13 +757,179 @@ export declare const OperatorList: z.ZodObject<{
607
757
  }, z.core.$strip>>;
608
758
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
609
759
  rev: z.ZodNumber;
760
+ modelAllowed: z.ZodNullable<z.ZodBoolean>;
761
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
762
+ path: z.ZodString;
763
+ markdown: z.ZodString;
764
+ version: z.ZodNullable<z.ZodInt>;
765
+ }, z.core.$strip>>>;
766
+ mcps: z.ZodArray<z.ZodObject<{
767
+ mcpId: z.ZodTemplateLiteral<`mcp_${string}`>;
768
+ name: z.ZodString;
769
+ }, z.core.$strip>>;
610
770
  createdAt: z.ZodISODateTime;
611
771
  createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
612
772
  updatedAt: z.ZodISODateTime;
613
773
  }, z.core.$strip>>;
614
774
  nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
775
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
776
+ provider: z.ZodEnum<{
777
+ claude: "claude";
778
+ codex: "codex";
779
+ gemini: "gemini";
780
+ }>;
781
+ model: z.ZodEnum<{
782
+ opus: "opus";
783
+ sonnet: "sonnet";
784
+ haiku: "haiku";
785
+ "gpt-6-astra": "gpt-6-astra";
786
+ "gpt-6.1-sol": "gpt-6.1-sol";
787
+ "gpt-6-luna": "gpt-6-luna";
788
+ pro: "pro";
789
+ flash: "flash";
790
+ "flash-lite": "flash-lite";
791
+ "gemini-2.5-pro": "gemini-2.5-pro";
792
+ "gemini-2.5-flash": "gemini-2.5-flash";
793
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
794
+ }>;
795
+ }, z.core.$strip>>>;
796
+ budget: z.ZodOptional<z.ZodObject<{
797
+ limitUsd: z.ZodNullable<z.ZodNumber>;
798
+ spentUsd: z.ZodNumber;
799
+ reached: z.ZodBoolean;
800
+ }, z.core.$strip>>;
615
801
  }, z.core.$strip>;
616
802
  export type OperatorList = z.infer<typeof OperatorList>;
803
+ export declare const OperatorUserListInput: z.ZodObject<{
804
+ cursor: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
805
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
806
+ }, z.core.$strict>;
807
+ export type OperatorUserListInput = z.infer<typeof OperatorUserListInput>;
808
+ export declare const OperatorUserUpdateInput: z.ZodObject<{
809
+ userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
810
+ limitUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
811
+ models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
812
+ opus: "opus";
813
+ sonnet: "sonnet";
814
+ haiku: "haiku";
815
+ "gpt-6-astra": "gpt-6-astra";
816
+ "gpt-6.1-sol": "gpt-6.1-sol";
817
+ "gpt-6-luna": "gpt-6-luna";
818
+ pro: "pro";
819
+ flash: "flash";
820
+ "flash-lite": "flash-lite";
821
+ "gemini-2.5-pro": "gemini-2.5-pro";
822
+ "gemini-2.5-flash": "gemini-2.5-flash";
823
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
824
+ }>>>>;
825
+ }, z.core.$strict>;
826
+ export type OperatorUserUpdateInput = z.infer<typeof OperatorUserUpdateInput>;
827
+ export declare const OperatorUser: z.ZodObject<{
828
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
829
+ name: z.ZodString;
830
+ present: z.ZodBoolean;
831
+ own: z.ZodObject<{
832
+ limitUsd: z.ZodNullable<z.ZodNumber>;
833
+ models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
834
+ opus: "opus";
835
+ sonnet: "sonnet";
836
+ haiku: "haiku";
837
+ "gpt-6-astra": "gpt-6-astra";
838
+ "gpt-6.1-sol": "gpt-6.1-sol";
839
+ "gpt-6-luna": "gpt-6-luna";
840
+ pro: "pro";
841
+ flash: "flash";
842
+ "flash-lite": "flash-lite";
843
+ "gemini-2.5-pro": "gemini-2.5-pro";
844
+ "gemini-2.5-flash": "gemini-2.5-flash";
845
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
846
+ }>>>;
847
+ }, z.core.$strip>;
848
+ models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
849
+ opus: "opus";
850
+ sonnet: "sonnet";
851
+ haiku: "haiku";
852
+ "gpt-6-astra": "gpt-6-astra";
853
+ "gpt-6.1-sol": "gpt-6.1-sol";
854
+ "gpt-6-luna": "gpt-6-luna";
855
+ pro: "pro";
856
+ flash: "flash";
857
+ "flash-lite": "flash-lite";
858
+ "gemini-2.5-pro": "gemini-2.5-pro";
859
+ "gemini-2.5-flash": "gemini-2.5-flash";
860
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
861
+ }>>>;
862
+ budget: z.ZodObject<{
863
+ limitUsd: z.ZodNullable<z.ZodNumber>;
864
+ spentUsd: z.ZodNumber;
865
+ reached: z.ZodBoolean;
866
+ }, z.core.$strip>;
867
+ machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
868
+ }, z.core.$strip>;
869
+ export type OperatorUser = z.infer<typeof OperatorUser>;
870
+ export declare const OperatorUserList: z.ZodObject<{
871
+ defaults: z.ZodObject<{
872
+ limitUsd: z.ZodNullable<z.ZodNumber>;
873
+ models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
874
+ opus: "opus";
875
+ sonnet: "sonnet";
876
+ haiku: "haiku";
877
+ "gpt-6-astra": "gpt-6-astra";
878
+ "gpt-6.1-sol": "gpt-6.1-sol";
879
+ "gpt-6-luna": "gpt-6-luna";
880
+ pro: "pro";
881
+ flash: "flash";
882
+ "flash-lite": "flash-lite";
883
+ "gemini-2.5-pro": "gemini-2.5-pro";
884
+ "gemini-2.5-flash": "gemini-2.5-flash";
885
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
886
+ }>>>;
887
+ }, z.core.$strip>;
888
+ items: z.ZodArray<z.ZodObject<{
889
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
890
+ name: z.ZodString;
891
+ present: z.ZodBoolean;
892
+ own: z.ZodObject<{
893
+ limitUsd: z.ZodNullable<z.ZodNumber>;
894
+ models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
895
+ opus: "opus";
896
+ sonnet: "sonnet";
897
+ haiku: "haiku";
898
+ "gpt-6-astra": "gpt-6-astra";
899
+ "gpt-6.1-sol": "gpt-6.1-sol";
900
+ "gpt-6-luna": "gpt-6-luna";
901
+ pro: "pro";
902
+ flash: "flash";
903
+ "flash-lite": "flash-lite";
904
+ "gemini-2.5-pro": "gemini-2.5-pro";
905
+ "gemini-2.5-flash": "gemini-2.5-flash";
906
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
907
+ }>>>;
908
+ }, z.core.$strip>;
909
+ models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
910
+ opus: "opus";
911
+ sonnet: "sonnet";
912
+ haiku: "haiku";
913
+ "gpt-6-astra": "gpt-6-astra";
914
+ "gpt-6.1-sol": "gpt-6.1-sol";
915
+ "gpt-6-luna": "gpt-6-luna";
916
+ pro: "pro";
917
+ flash: "flash";
918
+ "flash-lite": "flash-lite";
919
+ "gemini-2.5-pro": "gemini-2.5-pro";
920
+ "gemini-2.5-flash": "gemini-2.5-flash";
921
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
922
+ }>>>;
923
+ budget: z.ZodObject<{
924
+ limitUsd: z.ZodNullable<z.ZodNumber>;
925
+ spentUsd: z.ZodNumber;
926
+ reached: z.ZodBoolean;
927
+ }, z.core.$strip>;
928
+ machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
929
+ }, z.core.$strip>>;
930
+ nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
931
+ }, z.core.$strip>;
932
+ export type OperatorUserList = z.infer<typeof OperatorUserList>;
617
933
  export declare const OperatorRunId: z.ZodTemplateLiteral<`run_${string}`>;
618
934
  export type OperatorRunId = z.infer<typeof OperatorRunId>;
619
935
  export declare const OperatorRunStatus: z.ZodEnum<{
@@ -658,6 +974,20 @@ export declare const OperatorRunInstructions: z.ZodObject<{
658
974
  cut: z.ZodBoolean;
659
975
  }, z.core.$strip>;
660
976
  export type OperatorRunInstructions = z.infer<typeof OperatorRunInstructions>;
977
+ export declare const OperatorRunWoken: z.ZodObject<{
978
+ kind: z.ZodEnum<{
979
+ open: "open";
980
+ mention: "mention";
981
+ }>;
982
+ title: z.ZodString;
983
+ by: z.ZodNullable<z.ZodString>;
984
+ }, z.core.$strip>;
985
+ export type OperatorRunWoken = z.infer<typeof OperatorRunWoken>;
986
+ export declare const OperatorRunFallbackReason: z.ZodEnum<{
987
+ credential: "credential";
988
+ limit: "limit";
989
+ }>;
990
+ export type OperatorRunFallbackReason = z.infer<typeof OperatorRunFallbackReason>;
661
991
  export declare const OperatorRunAgents: z.ZodObject<{
662
992
  started: z.ZodInt;
663
993
  running: z.ZodInt;
@@ -719,6 +1049,22 @@ export declare const OperatorRun: z.ZodObject<{
719
1049
  userId: z.ZodTemplateLiteral<`user_${string}`>;
720
1050
  name: z.ZodString;
721
1051
  }, z.core.$strip>>;
1052
+ woken: z.ZodNullable<z.ZodObject<{
1053
+ kind: z.ZodEnum<{
1054
+ open: "open";
1055
+ mention: "mention";
1056
+ }>;
1057
+ title: z.ZodString;
1058
+ by: z.ZodNullable<z.ZodString>;
1059
+ }, z.core.$strip>>;
1060
+ credentialName: z.ZodNullable<z.ZodString>;
1061
+ fallback: z.ZodNullable<z.ZodObject<{
1062
+ fromName: z.ZodString;
1063
+ reason: z.ZodEnum<{
1064
+ credential: "credential";
1065
+ limit: "limit";
1066
+ }>;
1067
+ }, z.core.$strip>>;
722
1068
  startedAt: z.ZodISODateTime;
723
1069
  endedAt: z.ZodNullable<z.ZodISODateTime>;
724
1070
  durationMs: z.ZodNullable<z.ZodInt>;
@@ -730,6 +1076,8 @@ export declare const OperatorRun: z.ZodObject<{
730
1076
  export type OperatorRun = z.infer<typeof OperatorRun>;
731
1077
  export declare const OperatorRunListInput: z.ZodObject<{
732
1078
  machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
1079
+ ownerId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
1080
+ personal: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
733
1081
  provider: z.ZodOptional<z.ZodEnum<{
734
1082
  claude: "claude";
735
1083
  codex: "codex";
@@ -756,11 +1104,16 @@ export declare const RunCancelInput: z.ZodObject<{
756
1104
  runId: z.ZodTemplateLiteral<`run_${string}`>;
757
1105
  }, z.core.$strict>;
758
1106
  export type RunCancelInput = z.infer<typeof RunCancelInput>;
1107
+ export declare const RunUpdateInput: z.ZodObject<{
1108
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1109
+ read: z.ZodLiteral<true>;
1110
+ }, z.core.$strict>;
1111
+ export type RunUpdateInput = z.infer<typeof RunUpdateInput>;
759
1112
  export declare const OperatorRunStepKind: z.ZodEnum<{
760
1113
  error: "error";
761
1114
  text: "text";
762
- thinking: "thinking";
763
1115
  tool: "tool";
1116
+ thinking: "thinking";
764
1117
  result: "result";
765
1118
  agentstart: "agentstart";
766
1119
  agentend: "agentend";
@@ -774,8 +1127,8 @@ export declare const OperatorRunStep: z.ZodObject<{
774
1127
  kind: z.ZodEnum<{
775
1128
  error: "error";
776
1129
  text: "text";
777
- thinking: "thinking";
778
1130
  tool: "tool";
1131
+ thinking: "thinking";
779
1132
  result: "result";
780
1133
  agentstart: "agentstart";
781
1134
  agentend: "agentend";
@@ -802,8 +1155,8 @@ export declare const OperatorRunStepList: z.ZodObject<{
802
1155
  kind: z.ZodEnum<{
803
1156
  error: "error";
804
1157
  text: "text";
805
- thinking: "thinking";
806
1158
  tool: "tool";
1159
+ thinking: "thinking";
807
1160
  result: "result";
808
1161
  agentstart: "agentstart";
809
1162
  agentend: "agentend";
@@ -827,10 +1180,38 @@ export declare const OperatorRunUsage: z.ZodObject<{
827
1180
  cacheRead: z.ZodInt;
828
1181
  cacheWrite: z.ZodInt;
829
1182
  }, z.core.$strip>;
1183
+ ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1184
+ ownerName: z.ZodNullable<z.ZodString>;
1185
+ model: z.ZodNullable<z.ZodEnum<{
1186
+ opus: "opus";
1187
+ sonnet: "sonnet";
1188
+ haiku: "haiku";
1189
+ "gpt-6-astra": "gpt-6-astra";
1190
+ "gpt-6.1-sol": "gpt-6.1-sol";
1191
+ "gpt-6-luna": "gpt-6-luna";
1192
+ pro: "pro";
1193
+ flash: "flash";
1194
+ "flash-lite": "flash-lite";
1195
+ "gemini-2.5-pro": "gemini-2.5-pro";
1196
+ "gemini-2.5-flash": "gemini-2.5-flash";
1197
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
1198
+ }>>;
830
1199
  machineId: z.ZodTemplateLiteral<`user_${string}`>;
831
1200
  machineName: z.ZodString;
832
1201
  machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
833
1202
  }, z.core.$strip>>;
1203
+ byMachineDay: z.ZodOptional<z.ZodArray<z.ZodObject<{
1204
+ runs: z.ZodInt;
1205
+ costUsd: z.ZodNumber;
1206
+ tokens: z.ZodObject<{
1207
+ input: z.ZodInt;
1208
+ output: z.ZodInt;
1209
+ cacheRead: z.ZodInt;
1210
+ cacheWrite: z.ZodInt;
1211
+ }, z.core.$strip>;
1212
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
1213
+ day: z.ZodISODate;
1214
+ }, z.core.$strip>>>;
834
1215
  byDay: z.ZodArray<z.ZodObject<{
835
1216
  runs: z.ZodInt;
836
1217
  costUsd: z.ZodNumber;
@@ -937,6 +1318,22 @@ export declare const OperatorRunList: z.ZodObject<{
937
1318
  userId: z.ZodTemplateLiteral<`user_${string}`>;
938
1319
  name: z.ZodString;
939
1320
  }, z.core.$strip>>;
1321
+ woken: z.ZodNullable<z.ZodObject<{
1322
+ kind: z.ZodEnum<{
1323
+ open: "open";
1324
+ mention: "mention";
1325
+ }>;
1326
+ title: z.ZodString;
1327
+ by: z.ZodNullable<z.ZodString>;
1328
+ }, z.core.$strip>>;
1329
+ credentialName: z.ZodNullable<z.ZodString>;
1330
+ fallback: z.ZodNullable<z.ZodObject<{
1331
+ fromName: z.ZodString;
1332
+ reason: z.ZodEnum<{
1333
+ credential: "credential";
1334
+ limit: "limit";
1335
+ }>;
1336
+ }, z.core.$strip>>;
940
1337
  startedAt: z.ZodISODateTime;
941
1338
  endedAt: z.ZodNullable<z.ZodISODateTime>;
942
1339
  durationMs: z.ZodNullable<z.ZodInt>;
@@ -956,10 +1353,38 @@ export declare const OperatorRunList: z.ZodObject<{
956
1353
  cacheRead: z.ZodInt;
957
1354
  cacheWrite: z.ZodInt;
958
1355
  }, z.core.$strip>;
1356
+ ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1357
+ ownerName: z.ZodNullable<z.ZodString>;
1358
+ model: z.ZodNullable<z.ZodEnum<{
1359
+ opus: "opus";
1360
+ sonnet: "sonnet";
1361
+ haiku: "haiku";
1362
+ "gpt-6-astra": "gpt-6-astra";
1363
+ "gpt-6.1-sol": "gpt-6.1-sol";
1364
+ "gpt-6-luna": "gpt-6-luna";
1365
+ pro: "pro";
1366
+ flash: "flash";
1367
+ "flash-lite": "flash-lite";
1368
+ "gemini-2.5-pro": "gemini-2.5-pro";
1369
+ "gemini-2.5-flash": "gemini-2.5-flash";
1370
+ "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
1371
+ }>>;
959
1372
  machineId: z.ZodTemplateLiteral<`user_${string}`>;
960
1373
  machineName: z.ZodString;
961
1374
  machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
962
1375
  }, z.core.$strip>>;
1376
+ byMachineDay: z.ZodOptional<z.ZodArray<z.ZodObject<{
1377
+ runs: z.ZodInt;
1378
+ costUsd: z.ZodNumber;
1379
+ tokens: z.ZodObject<{
1380
+ input: z.ZodInt;
1381
+ output: z.ZodInt;
1382
+ cacheRead: z.ZodInt;
1383
+ cacheWrite: z.ZodInt;
1384
+ }, z.core.$strip>;
1385
+ machineId: z.ZodTemplateLiteral<`user_${string}`>;
1386
+ day: z.ZodISODate;
1387
+ }, z.core.$strip>>>;
963
1388
  byDay: z.ZodArray<z.ZodObject<{
964
1389
  runs: z.ZodInt;
965
1390
  costUsd: z.ZodNumber;