@cogitator-ai/tetsu 0.7.0 → 0.8.0

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.
@@ -170,6 +170,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
170
170
  error: z.ZodEnum<{
171
171
  [x: string]: string;
172
172
  }>;
173
+ checkpointId: z.ZodOptional<z.ZodString>;
173
174
  }, z.core.$strip>;
174
175
  readonly 404: z.ZodObject<{
175
176
  status: z.ZodNumber;
@@ -177,6 +178,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
177
178
  error: z.ZodEnum<{
178
179
  [x: string]: string;
179
180
  }>;
181
+ checkpointId: z.ZodOptional<z.ZodString>;
180
182
  }, z.core.$strip>;
181
183
  readonly 400: z.ZodObject<{
182
184
  status: z.ZodNumber;
@@ -184,6 +186,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
184
186
  error: z.ZodEnum<{
185
187
  [x: string]: string;
186
188
  }>;
189
+ checkpointId: z.ZodOptional<z.ZodString>;
187
190
  }, z.core.$strip>;
188
191
  readonly 402: z.ZodObject<{
189
192
  status: z.ZodNumber;
@@ -191,6 +194,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
191
194
  error: z.ZodEnum<{
192
195
  [x: string]: string;
193
196
  }>;
197
+ checkpointId: z.ZodOptional<z.ZodString>;
194
198
  }, z.core.$strip>;
195
199
  readonly 409: z.ZodObject<{
196
200
  status: z.ZodNumber;
@@ -198,6 +202,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
198
202
  error: z.ZodEnum<{
199
203
  [x: string]: string;
200
204
  }>;
205
+ checkpointId: z.ZodOptional<z.ZodString>;
201
206
  }, z.core.$strip>;
202
207
  readonly 429: z.ZodObject<{
203
208
  status: z.ZodNumber;
@@ -205,6 +210,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
205
210
  error: z.ZodEnum<{
206
211
  [x: string]: string;
207
212
  }>;
213
+ checkpointId: z.ZodOptional<z.ZodString>;
208
214
  }, z.core.$strip>;
209
215
  readonly 500: z.ZodObject<{
210
216
  status: z.ZodNumber;
@@ -212,6 +218,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
212
218
  error: z.ZodEnum<{
213
219
  [x: string]: string;
214
220
  }>;
221
+ checkpointId: z.ZodOptional<z.ZodString>;
215
222
  }, z.core.$strip>;
216
223
  readonly 502: z.ZodObject<{
217
224
  status: z.ZodNumber;
@@ -219,6 +226,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
219
226
  error: z.ZodEnum<{
220
227
  [x: string]: string;
221
228
  }>;
229
+ checkpointId: z.ZodOptional<z.ZodString>;
222
230
  }, z.core.$strip>;
223
231
  readonly 503: z.ZodObject<{
224
232
  status: z.ZodNumber;
@@ -226,6 +234,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
226
234
  error: z.ZodEnum<{
227
235
  [x: string]: string;
228
236
  }>;
237
+ checkpointId: z.ZodOptional<z.ZodString>;
229
238
  }, z.core.$strip>;
230
239
  readonly 504: z.ZodObject<{
231
240
  status: z.ZodNumber;
@@ -233,6 +242,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
233
242
  error: z.ZodEnum<{
234
243
  [x: string]: string;
235
244
  }>;
245
+ checkpointId: z.ZodOptional<z.ZodString>;
236
246
  }, z.core.$strip>;
237
247
  readonly 507: z.ZodObject<{
238
248
  status: z.ZodNumber;
@@ -240,11 +250,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
240
250
  error: z.ZodEnum<{
241
251
  [x: string]: string;
242
252
  }>;
253
+ checkpointId: z.ZodOptional<z.ZodString>;
243
254
  }, z.core.$strip>;
244
255
  readonly 415: z.ZodObject<{
245
256
  status: z.ZodNumber;
246
257
  message: z.ZodString;
247
258
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
259
+ checkpointId: z.ZodOptional<z.ZodString>;
248
260
  }, z.core.$strip>;
249
261
  };
250
262
  }, {
@@ -279,16 +291,19 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
279
291
  error: z.ZodEnum<{
280
292
  [x: string]: string;
281
293
  }>;
294
+ checkpointId: z.ZodOptional<z.ZodString>;
282
295
  }, z.core.$strip>;
283
296
  readonly 404: z.ZodObject<{
284
297
  status: z.ZodNumber;
285
298
  message: z.ZodString;
286
299
  error: z.ZodLiteral<"AGENT_NOT_FOUND">;
300
+ checkpointId: z.ZodOptional<z.ZodString>;
287
301
  }, z.core.$strip>;
288
302
  readonly 415: z.ZodObject<{
289
303
  status: z.ZodNumber;
290
304
  message: z.ZodString;
291
305
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
306
+ checkpointId: z.ZodOptional<z.ZodString>;
292
307
  }, z.core.$strip>;
293
308
  };
294
309
  }, {
@@ -365,6 +380,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
365
380
  error: z.ZodEnum<{
366
381
  [x: string]: string;
367
382
  }>;
383
+ checkpointId: z.ZodOptional<z.ZodString>;
368
384
  }, z.core.$strip>;
369
385
  readonly 404: z.ZodObject<{
370
386
  status: z.ZodNumber;
@@ -372,6 +388,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
372
388
  error: z.ZodEnum<{
373
389
  [x: string]: string;
374
390
  }>;
391
+ checkpointId: z.ZodOptional<z.ZodString>;
375
392
  }, z.core.$strip>;
376
393
  readonly 409: z.ZodObject<{
377
394
  status: z.ZodNumber;
@@ -379,6 +396,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
379
396
  error: z.ZodEnum<{
380
397
  [x: string]: string;
381
398
  }>;
399
+ checkpointId: z.ZodOptional<z.ZodString>;
382
400
  }, z.core.$strip>;
383
401
  readonly 400: z.ZodObject<{
384
402
  status: z.ZodNumber;
@@ -386,6 +404,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
386
404
  error: z.ZodEnum<{
387
405
  [x: string]: string;
388
406
  }>;
407
+ checkpointId: z.ZodOptional<z.ZodString>;
389
408
  }, z.core.$strip>;
390
409
  readonly 402: z.ZodObject<{
391
410
  status: z.ZodNumber;
@@ -393,6 +412,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
393
412
  error: z.ZodEnum<{
394
413
  [x: string]: string;
395
414
  }>;
415
+ checkpointId: z.ZodOptional<z.ZodString>;
396
416
  }, z.core.$strip>;
397
417
  readonly 429: z.ZodObject<{
398
418
  status: z.ZodNumber;
@@ -400,6 +420,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
400
420
  error: z.ZodEnum<{
401
421
  [x: string]: string;
402
422
  }>;
423
+ checkpointId: z.ZodOptional<z.ZodString>;
403
424
  }, z.core.$strip>;
404
425
  readonly 500: z.ZodObject<{
405
426
  status: z.ZodNumber;
@@ -407,6 +428,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
407
428
  error: z.ZodEnum<{
408
429
  [x: string]: string;
409
430
  }>;
431
+ checkpointId: z.ZodOptional<z.ZodString>;
410
432
  }, z.core.$strip>;
411
433
  readonly 502: z.ZodObject<{
412
434
  status: z.ZodNumber;
@@ -414,6 +436,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
414
436
  error: z.ZodEnum<{
415
437
  [x: string]: string;
416
438
  }>;
439
+ checkpointId: z.ZodOptional<z.ZodString>;
417
440
  }, z.core.$strip>;
418
441
  readonly 503: z.ZodObject<{
419
442
  status: z.ZodNumber;
@@ -421,6 +444,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
421
444
  error: z.ZodEnum<{
422
445
  [x: string]: string;
423
446
  }>;
447
+ checkpointId: z.ZodOptional<z.ZodString>;
424
448
  }, z.core.$strip>;
425
449
  readonly 504: z.ZodObject<{
426
450
  status: z.ZodNumber;
@@ -428,6 +452,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
428
452
  error: z.ZodEnum<{
429
453
  [x: string]: string;
430
454
  }>;
455
+ checkpointId: z.ZodOptional<z.ZodString>;
431
456
  }, z.core.$strip>;
432
457
  readonly 507: z.ZodObject<{
433
458
  status: z.ZodNumber;
@@ -435,11 +460,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
435
460
  error: z.ZodEnum<{
436
461
  [x: string]: string;
437
462
  }>;
463
+ checkpointId: z.ZodOptional<z.ZodString>;
438
464
  }, z.core.$strip>;
439
465
  readonly 415: z.ZodObject<{
440
466
  status: z.ZodNumber;
441
467
  message: z.ZodString;
442
468
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
469
+ checkpointId: z.ZodOptional<z.ZodString>;
443
470
  }, z.core.$strip>;
444
471
  };
445
472
  }, {
@@ -480,16 +507,19 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
480
507
  error: z.ZodEnum<{
481
508
  [x: string]: string;
482
509
  }>;
510
+ checkpointId: z.ZodOptional<z.ZodString>;
483
511
  }, z.core.$strip>;
484
512
  readonly 404: z.ZodObject<{
485
513
  status: z.ZodNumber;
486
514
  message: z.ZodString;
487
515
  error: z.ZodLiteral<"AGENT_NOT_FOUND">;
516
+ checkpointId: z.ZodOptional<z.ZodString>;
488
517
  }, z.core.$strip>;
489
518
  readonly 415: z.ZodObject<{
490
519
  status: z.ZodNumber;
491
520
  message: z.ZodString;
492
521
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
522
+ checkpointId: z.ZodOptional<z.ZodString>;
493
523
  }, z.core.$strip>;
494
524
  };
495
525
  }, {
@@ -562,6 +592,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
562
592
  error: z.ZodEnum<{
563
593
  [x: string]: string;
564
594
  }>;
595
+ checkpointId: z.ZodOptional<z.ZodString>;
565
596
  }, z.core.$strip>;
566
597
  readonly 500: z.ZodObject<{
567
598
  status: z.ZodNumber;
@@ -569,11 +600,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
569
600
  error: z.ZodEnum<{
570
601
  [x: string]: string;
571
602
  }>;
603
+ checkpointId: z.ZodOptional<z.ZodString>;
572
604
  }, z.core.$strip>;
573
605
  readonly 503: z.ZodObject<{
574
606
  status: z.ZodNumber;
575
607
  message: z.ZodString;
576
608
  error: z.ZodLiteral<"MEMORY_NOT_CONFIGURED">;
609
+ checkpointId: z.ZodOptional<z.ZodString>;
577
610
  }, z.core.$strip>;
578
611
  };
579
612
  }, {
@@ -604,6 +637,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
604
637
  status: z.ZodNumber;
605
638
  message: z.ZodString;
606
639
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
640
+ checkpointId: z.ZodOptional<z.ZodString>;
607
641
  }, z.core.$strip>;
608
642
  readonly 201: z.ZodObject<{
609
643
  success: z.ZodLiteral<true>;
@@ -614,6 +648,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
614
648
  error: z.ZodEnum<{
615
649
  [x: string]: string;
616
650
  }>;
651
+ checkpointId: z.ZodOptional<z.ZodString>;
617
652
  }, z.core.$strip>;
618
653
  readonly 500: z.ZodObject<{
619
654
  status: z.ZodNumber;
@@ -621,11 +656,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
621
656
  error: z.ZodEnum<{
622
657
  [x: string]: string;
623
658
  }>;
659
+ checkpointId: z.ZodOptional<z.ZodString>;
624
660
  }, z.core.$strip>;
625
661
  readonly 503: z.ZodObject<{
626
662
  status: z.ZodNumber;
627
663
  message: z.ZodString;
628
664
  error: z.ZodLiteral<"MEMORY_NOT_CONFIGURED">;
665
+ checkpointId: z.ZodOptional<z.ZodString>;
629
666
  }, z.core.$strip>;
630
667
  };
631
668
  }, {
@@ -656,6 +693,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
656
693
  error: z.ZodEnum<{
657
694
  [x: string]: string;
658
695
  }>;
696
+ checkpointId: z.ZodOptional<z.ZodString>;
659
697
  }, z.core.$strip>;
660
698
  readonly 500: z.ZodObject<{
661
699
  status: z.ZodNumber;
@@ -663,11 +701,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
663
701
  error: z.ZodEnum<{
664
702
  [x: string]: string;
665
703
  }>;
704
+ checkpointId: z.ZodOptional<z.ZodString>;
666
705
  }, z.core.$strip>;
667
706
  readonly 503: z.ZodObject<{
668
707
  status: z.ZodNumber;
669
708
  message: z.ZodString;
670
709
  error: z.ZodLiteral<"MEMORY_NOT_CONFIGURED">;
710
+ checkpointId: z.ZodOptional<z.ZodString>;
671
711
  }, z.core.$strip>;
672
712
  };
673
713
  }, {
@@ -735,9 +775,9 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
735
775
  readonly body: z.ZodObject<{
736
776
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
737
777
  options: z.ZodOptional<z.ZodObject<{
738
- checkpoint: z.ZodOptional<z.ZodLiteral<false>>;
739
778
  maxConcurrency: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
740
779
  maxIterations: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
780
+ checkpoint: z.ZodOptional<z.ZodBoolean> | z.ZodOptional<z.ZodLiteral<false>>;
741
781
  }, z.core.$strip>>;
742
782
  }, z.core.$strip>;
743
783
  readonly response: {
@@ -750,6 +790,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
750
790
  output: z.ZodUnknown;
751
791
  duration: z.ZodNumber;
752
792
  }, z.core.$strip>>;
793
+ checkpointId: z.ZodOptional<z.ZodString>;
753
794
  }, z.core.$strip>;
754
795
  readonly 404: z.ZodObject<{
755
796
  status: z.ZodNumber;
@@ -757,6 +798,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
757
798
  error: z.ZodEnum<{
758
799
  [x: string]: string;
759
800
  }>;
801
+ checkpointId: z.ZodOptional<z.ZodString>;
760
802
  }, z.core.$strip>;
761
803
  readonly 501: z.ZodObject<{
762
804
  status: z.ZodNumber;
@@ -764,6 +806,15 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
764
806
  error: z.ZodEnum<{
765
807
  [x: string]: string;
766
808
  }>;
809
+ checkpointId: z.ZodOptional<z.ZodString>;
810
+ }, z.core.$strip>;
811
+ readonly 500: z.ZodObject<{
812
+ status: z.ZodNumber;
813
+ message: z.ZodString;
814
+ error: z.ZodEnum<{
815
+ [x: string]: string;
816
+ }>;
817
+ checkpointId: z.ZodOptional<z.ZodString>;
767
818
  }, z.core.$strip>;
768
819
  readonly 400: z.ZodObject<{
769
820
  status: z.ZodNumber;
@@ -771,6 +822,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
771
822
  error: z.ZodEnum<{
772
823
  [x: string]: string;
773
824
  }>;
825
+ checkpointId: z.ZodOptional<z.ZodString>;
774
826
  }, z.core.$strip>;
775
827
  readonly 402: z.ZodObject<{
776
828
  status: z.ZodNumber;
@@ -778,6 +830,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
778
830
  error: z.ZodEnum<{
779
831
  [x: string]: string;
780
832
  }>;
833
+ checkpointId: z.ZodOptional<z.ZodString>;
781
834
  }, z.core.$strip>;
782
835
  readonly 409: z.ZodObject<{
783
836
  status: z.ZodNumber;
@@ -785,6 +838,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
785
838
  error: z.ZodEnum<{
786
839
  [x: string]: string;
787
840
  }>;
841
+ checkpointId: z.ZodOptional<z.ZodString>;
788
842
  }, z.core.$strip>;
789
843
  readonly 429: z.ZodObject<{
790
844
  status: z.ZodNumber;
@@ -792,6 +846,151 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
792
846
  error: z.ZodEnum<{
793
847
  [x: string]: string;
794
848
  }>;
849
+ checkpointId: z.ZodOptional<z.ZodString>;
850
+ }, z.core.$strip>;
851
+ readonly 502: z.ZodObject<{
852
+ status: z.ZodNumber;
853
+ message: z.ZodString;
854
+ error: z.ZodEnum<{
855
+ [x: string]: string;
856
+ }>;
857
+ checkpointId: z.ZodOptional<z.ZodString>;
858
+ }, z.core.$strip>;
859
+ readonly 503: z.ZodObject<{
860
+ status: z.ZodNumber;
861
+ message: z.ZodString;
862
+ error: z.ZodEnum<{
863
+ [x: string]: string;
864
+ }>;
865
+ checkpointId: z.ZodOptional<z.ZodString>;
866
+ }, z.core.$strip>;
867
+ readonly 504: z.ZodObject<{
868
+ status: z.ZodNumber;
869
+ message: z.ZodString;
870
+ error: z.ZodEnum<{
871
+ [x: string]: string;
872
+ }>;
873
+ checkpointId: z.ZodOptional<z.ZodString>;
874
+ }, z.core.$strip>;
875
+ readonly 507: z.ZodObject<{
876
+ status: z.ZodNumber;
877
+ message: z.ZodString;
878
+ error: z.ZodEnum<{
879
+ [x: string]: string;
880
+ }>;
881
+ checkpointId: z.ZodOptional<z.ZodString>;
882
+ }, z.core.$strip>;
883
+ readonly 415: z.ZodObject<{
884
+ status: z.ZodNumber;
885
+ message: z.ZodString;
886
+ error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
887
+ checkpointId: z.ZodOptional<z.ZodString>;
888
+ }, z.core.$strip>;
889
+ };
890
+ }, {
891
+ readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
892
+ readonly params: {
893
+ [x: string]: string;
894
+ };
895
+ }, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").Requires<import("./auth.js").CallerFields>, unknown>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
896
+ readonly params: {
897
+ [x: string]: string;
898
+ };
899
+ }, unknown>];
900
+ readonly beforeHandle: readonly [import("@tetsujs/core").Hook<"beforeHandle", import("@tetsujs/core").BaseCtx, unknown>];
901
+ readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
902
+ readonly error: unknown;
903
+ }, unknown>];
904
+ }, undefined, "POST", Promise<{
905
+ workflowId: string;
906
+ workflowName: string;
907
+ state: Record<string, unknown>;
908
+ duration: number;
909
+ nodeResults: Record<string, {
910
+ output: unknown;
911
+ duration: number;
912
+ }>;
913
+ checkpointId?: string | undefined;
914
+ }>, false>;
915
+ streamWorkflow: import("@tetsujs/core").RouteDef<"/workflows/:name/stream", {
916
+ readonly params: z.ZodObject<{
917
+ name: z.ZodString;
918
+ }, z.core.$strip>;
919
+ readonly body: z.ZodObject<{
920
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
921
+ options: z.ZodOptional<z.ZodObject<{
922
+ maxConcurrency: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
923
+ maxIterations: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
924
+ checkpoint: z.ZodOptional<z.ZodBoolean> | z.ZodOptional<z.ZodLiteral<false>>;
925
+ }, z.core.$strip>>;
926
+ }, z.core.$strip>;
927
+ readonly response: {
928
+ readonly 200: null;
929
+ readonly 404: z.ZodObject<{
930
+ status: z.ZodNumber;
931
+ message: z.ZodString;
932
+ error: z.ZodLiteral<"WORKFLOW_NOT_FOUND">;
933
+ checkpointId: z.ZodOptional<z.ZodString>;
934
+ }, z.core.$strip>;
935
+ readonly 415: z.ZodObject<{
936
+ status: z.ZodNumber;
937
+ message: z.ZodString;
938
+ error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
939
+ checkpointId: z.ZodOptional<z.ZodString>;
940
+ }, z.core.$strip>;
941
+ };
942
+ }, {
943
+ readonly beforeParse: readonly [import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
944
+ readonly params: {
945
+ [x: string]: string;
946
+ };
947
+ }, Pick<import("./auth.js").CallerFields, "cogitatorAuth">>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").Requires<import("./auth.js").CallerFields>, unknown>, import("@tetsujs/core").Hook<"beforeParse", import("@tetsujs/core").BaseCtx & {
948
+ readonly params: {
949
+ [x: string]: string;
950
+ };
951
+ }, unknown>];
952
+ readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
953
+ readonly error: unknown;
954
+ }, unknown>];
955
+ }, undefined, "POST", Response, false>;
956
+ resumeWorkflow: import("@tetsujs/core").RouteDef<"/workflows/:name/resume", {
957
+ readonly params: z.ZodObject<{
958
+ name: z.ZodString;
959
+ }, z.core.$strip>;
960
+ readonly body: z.ZodObject<{
961
+ checkpointId: z.ZodString;
962
+ options: z.ZodOptional<z.ZodObject<{
963
+ maxConcurrency: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
964
+ maxIterations: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
965
+ }, z.core.$strip>>;
966
+ }, z.core.$strip>;
967
+ readonly response: {
968
+ readonly 200: z.ZodObject<{
969
+ workflowId: z.ZodString;
970
+ workflowName: z.ZodString;
971
+ state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
972
+ duration: z.ZodNumber;
973
+ nodeResults: z.ZodRecord<z.ZodString, z.ZodObject<{
974
+ output: z.ZodUnknown;
975
+ duration: z.ZodNumber;
976
+ }, z.core.$strip>>;
977
+ checkpointId: z.ZodOptional<z.ZodString>;
978
+ }, z.core.$strip>;
979
+ readonly 404: z.ZodObject<{
980
+ status: z.ZodNumber;
981
+ message: z.ZodString;
982
+ error: z.ZodEnum<{
983
+ [x: string]: string;
984
+ }>;
985
+ checkpointId: z.ZodOptional<z.ZodString>;
986
+ }, z.core.$strip>;
987
+ readonly 501: z.ZodObject<{
988
+ status: z.ZodNumber;
989
+ message: z.ZodString;
990
+ error: z.ZodEnum<{
991
+ [x: string]: string;
992
+ }>;
993
+ checkpointId: z.ZodOptional<z.ZodString>;
795
994
  }, z.core.$strip>;
796
995
  readonly 500: z.ZodObject<{
797
996
  status: z.ZodNumber;
@@ -799,6 +998,39 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
799
998
  error: z.ZodEnum<{
800
999
  [x: string]: string;
801
1000
  }>;
1001
+ checkpointId: z.ZodOptional<z.ZodString>;
1002
+ }, z.core.$strip>;
1003
+ readonly 400: z.ZodObject<{
1004
+ status: z.ZodNumber;
1005
+ message: z.ZodString;
1006
+ error: z.ZodEnum<{
1007
+ [x: string]: string;
1008
+ }>;
1009
+ checkpointId: z.ZodOptional<z.ZodString>;
1010
+ }, z.core.$strip>;
1011
+ readonly 402: z.ZodObject<{
1012
+ status: z.ZodNumber;
1013
+ message: z.ZodString;
1014
+ error: z.ZodEnum<{
1015
+ [x: string]: string;
1016
+ }>;
1017
+ checkpointId: z.ZodOptional<z.ZodString>;
1018
+ }, z.core.$strip>;
1019
+ readonly 409: z.ZodObject<{
1020
+ status: z.ZodNumber;
1021
+ message: z.ZodString;
1022
+ error: z.ZodEnum<{
1023
+ [x: string]: string;
1024
+ }>;
1025
+ checkpointId: z.ZodOptional<z.ZodString>;
1026
+ }, z.core.$strip>;
1027
+ readonly 429: z.ZodObject<{
1028
+ status: z.ZodNumber;
1029
+ message: z.ZodString;
1030
+ error: z.ZodEnum<{
1031
+ [x: string]: string;
1032
+ }>;
1033
+ checkpointId: z.ZodOptional<z.ZodString>;
802
1034
  }, z.core.$strip>;
803
1035
  readonly 502: z.ZodObject<{
804
1036
  status: z.ZodNumber;
@@ -806,6 +1038,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
806
1038
  error: z.ZodEnum<{
807
1039
  [x: string]: string;
808
1040
  }>;
1041
+ checkpointId: z.ZodOptional<z.ZodString>;
809
1042
  }, z.core.$strip>;
810
1043
  readonly 503: z.ZodObject<{
811
1044
  status: z.ZodNumber;
@@ -813,6 +1046,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
813
1046
  error: z.ZodEnum<{
814
1047
  [x: string]: string;
815
1048
  }>;
1049
+ checkpointId: z.ZodOptional<z.ZodString>;
816
1050
  }, z.core.$strip>;
817
1051
  readonly 504: z.ZodObject<{
818
1052
  status: z.ZodNumber;
@@ -820,6 +1054,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
820
1054
  error: z.ZodEnum<{
821
1055
  [x: string]: string;
822
1056
  }>;
1057
+ checkpointId: z.ZodOptional<z.ZodString>;
823
1058
  }, z.core.$strip>;
824
1059
  readonly 507: z.ZodObject<{
825
1060
  status: z.ZodNumber;
@@ -827,11 +1062,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
827
1062
  error: z.ZodEnum<{
828
1063
  [x: string]: string;
829
1064
  }>;
1065
+ checkpointId: z.ZodOptional<z.ZodString>;
830
1066
  }, z.core.$strip>;
831
1067
  readonly 415: z.ZodObject<{
832
1068
  status: z.ZodNumber;
833
1069
  message: z.ZodString;
834
1070
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
1071
+ checkpointId: z.ZodOptional<z.ZodString>;
835
1072
  }, z.core.$strip>;
836
1073
  };
837
1074
  }, {
@@ -857,15 +1094,15 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
857
1094
  output: unknown;
858
1095
  duration: number;
859
1096
  }>;
1097
+ checkpointId?: string | undefined;
860
1098
  }>, false>;
861
- streamWorkflow: import("@tetsujs/core").RouteDef<"/workflows/:name/stream", {
1099
+ streamResumeWorkflow: import("@tetsujs/core").RouteDef<"/workflows/:name/resume/stream", {
862
1100
  readonly params: z.ZodObject<{
863
1101
  name: z.ZodString;
864
1102
  }, z.core.$strip>;
865
1103
  readonly body: z.ZodObject<{
866
- input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1104
+ checkpointId: z.ZodString;
867
1105
  options: z.ZodOptional<z.ZodObject<{
868
- checkpoint: z.ZodOptional<z.ZodLiteral<false>>;
869
1106
  maxConcurrency: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
870
1107
  maxIterations: z.ZodOptional<z.ZodNumber> | z.ZodDefault<z.ZodNumber>;
871
1108
  }, z.core.$strip>>;
@@ -875,12 +1112,16 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
875
1112
  readonly 404: z.ZodObject<{
876
1113
  status: z.ZodNumber;
877
1114
  message: z.ZodString;
878
- error: z.ZodLiteral<"WORKFLOW_NOT_FOUND">;
1115
+ error: z.ZodEnum<{
1116
+ [x: string]: string;
1117
+ }>;
1118
+ checkpointId: z.ZodOptional<z.ZodString>;
879
1119
  }, z.core.$strip>;
880
1120
  readonly 415: z.ZodObject<{
881
1121
  status: z.ZodNumber;
882
1122
  message: z.ZodString;
883
1123
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
1124
+ checkpointId: z.ZodOptional<z.ZodString>;
884
1125
  }, z.core.$strip>;
885
1126
  };
886
1127
  }, {
@@ -896,7 +1137,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
896
1137
  readonly onError: readonly [import("@tetsujs/core").Hook<"onError", import("@tetsujs/core").BaseCtx & {
897
1138
  readonly error: unknown;
898
1139
  }, unknown>];
899
- }, undefined, "POST", Response, false>;
1140
+ }, undefined, "POST", Promise<Response>, false>;
900
1141
  listSwarms: import("@tetsujs/core").RouteDef<"/swarms", {
901
1142
  readonly response: z.ZodObject<{
902
1143
  swarms: z.ZodArray<z.ZodObject<{
@@ -959,6 +1200,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
959
1200
  error: z.ZodEnum<{
960
1201
  [x: string]: string;
961
1202
  }>;
1203
+ checkpointId: z.ZodOptional<z.ZodString>;
962
1204
  }, z.core.$strip>;
963
1205
  readonly 404: z.ZodObject<{
964
1206
  status: z.ZodNumber;
@@ -966,6 +1208,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
966
1208
  error: z.ZodEnum<{
967
1209
  [x: string]: string;
968
1210
  }>;
1211
+ checkpointId: z.ZodOptional<z.ZodString>;
969
1212
  }, z.core.$strip>;
970
1213
  readonly 501: z.ZodObject<{
971
1214
  status: z.ZodNumber;
@@ -973,6 +1216,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
973
1216
  error: z.ZodEnum<{
974
1217
  [x: string]: string;
975
1218
  }>;
1219
+ checkpointId: z.ZodOptional<z.ZodString>;
976
1220
  }, z.core.$strip>;
977
1221
  readonly 400: z.ZodObject<{
978
1222
  status: z.ZodNumber;
@@ -980,6 +1224,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
980
1224
  error: z.ZodEnum<{
981
1225
  [x: string]: string;
982
1226
  }>;
1227
+ checkpointId: z.ZodOptional<z.ZodString>;
983
1228
  }, z.core.$strip>;
984
1229
  readonly 402: z.ZodObject<{
985
1230
  status: z.ZodNumber;
@@ -987,6 +1232,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
987
1232
  error: z.ZodEnum<{
988
1233
  [x: string]: string;
989
1234
  }>;
1235
+ checkpointId: z.ZodOptional<z.ZodString>;
990
1236
  }, z.core.$strip>;
991
1237
  readonly 409: z.ZodObject<{
992
1238
  status: z.ZodNumber;
@@ -994,6 +1240,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
994
1240
  error: z.ZodEnum<{
995
1241
  [x: string]: string;
996
1242
  }>;
1243
+ checkpointId: z.ZodOptional<z.ZodString>;
997
1244
  }, z.core.$strip>;
998
1245
  readonly 429: z.ZodObject<{
999
1246
  status: z.ZodNumber;
@@ -1001,6 +1248,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1001
1248
  error: z.ZodEnum<{
1002
1249
  [x: string]: string;
1003
1250
  }>;
1251
+ checkpointId: z.ZodOptional<z.ZodString>;
1004
1252
  }, z.core.$strip>;
1005
1253
  readonly 500: z.ZodObject<{
1006
1254
  status: z.ZodNumber;
@@ -1008,6 +1256,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1008
1256
  error: z.ZodEnum<{
1009
1257
  [x: string]: string;
1010
1258
  }>;
1259
+ checkpointId: z.ZodOptional<z.ZodString>;
1011
1260
  }, z.core.$strip>;
1012
1261
  readonly 502: z.ZodObject<{
1013
1262
  status: z.ZodNumber;
@@ -1015,6 +1264,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1015
1264
  error: z.ZodEnum<{
1016
1265
  [x: string]: string;
1017
1266
  }>;
1267
+ checkpointId: z.ZodOptional<z.ZodString>;
1018
1268
  }, z.core.$strip>;
1019
1269
  readonly 503: z.ZodObject<{
1020
1270
  status: z.ZodNumber;
@@ -1022,6 +1272,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1022
1272
  error: z.ZodEnum<{
1023
1273
  [x: string]: string;
1024
1274
  }>;
1275
+ checkpointId: z.ZodOptional<z.ZodString>;
1025
1276
  }, z.core.$strip>;
1026
1277
  readonly 504: z.ZodObject<{
1027
1278
  status: z.ZodNumber;
@@ -1029,6 +1280,7 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1029
1280
  error: z.ZodEnum<{
1030
1281
  [x: string]: string;
1031
1282
  }>;
1283
+ checkpointId: z.ZodOptional<z.ZodString>;
1032
1284
  }, z.core.$strip>;
1033
1285
  readonly 507: z.ZodObject<{
1034
1286
  status: z.ZodNumber;
@@ -1036,11 +1288,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1036
1288
  error: z.ZodEnum<{
1037
1289
  [x: string]: string;
1038
1290
  }>;
1291
+ checkpointId: z.ZodOptional<z.ZodString>;
1039
1292
  }, z.core.$strip>;
1040
1293
  readonly 415: z.ZodObject<{
1041
1294
  status: z.ZodNumber;
1042
1295
  message: z.ZodString;
1043
1296
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
1297
+ checkpointId: z.ZodOptional<z.ZodString>;
1044
1298
  }, z.core.$strip>;
1045
1299
  };
1046
1300
  }, {
@@ -1096,16 +1350,19 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1096
1350
  error: z.ZodEnum<{
1097
1351
  [x: string]: string;
1098
1352
  }>;
1353
+ checkpointId: z.ZodOptional<z.ZodString>;
1099
1354
  }, z.core.$strip>;
1100
1355
  readonly 404: z.ZodObject<{
1101
1356
  status: z.ZodNumber;
1102
1357
  message: z.ZodString;
1103
1358
  error: z.ZodLiteral<"SWARM_NOT_FOUND">;
1359
+ checkpointId: z.ZodOptional<z.ZodString>;
1104
1360
  }, z.core.$strip>;
1105
1361
  readonly 415: z.ZodObject<{
1106
1362
  status: z.ZodNumber;
1107
1363
  message: z.ZodString;
1108
1364
  error: z.ZodLiteral<"UNSUPPORTED_MEDIA_TYPE">;
1365
+ checkpointId: z.ZodOptional<z.ZodString>;
1109
1366
  }, z.core.$strip>;
1110
1367
  };
1111
1368
  }, {
@@ -1134,11 +1391,13 @@ export declare const cogitatorController: (deps: CogitatorDeps) => {
1134
1391
  status: z.ZodNumber;
1135
1392
  message: z.ZodString;
1136
1393
  error: z.ZodLiteral<"SWARM_NOT_FOUND">;
1394
+ checkpointId: z.ZodOptional<z.ZodString>;
1137
1395
  }, z.core.$strip>;
1138
1396
  readonly 409: z.ZodObject<{
1139
1397
  status: z.ZodNumber;
1140
1398
  message: z.ZodString;
1141
1399
  error: z.ZodLiteral<"BLACKBOARD_DISABLED">;
1400
+ checkpointId: z.ZodOptional<z.ZodString>;
1142
1401
  }, z.core.$strip>;
1143
1402
  };
1144
1403
  }, {