@langchain/langgraph-api 0.0.60 → 0.0.62

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.
@@ -109,10 +109,10 @@ export declare const Assistant: z.ZodObject<{
109
109
  } & {
110
110
  [k: string]: unknown;
111
111
  };
112
- graph_id: string;
113
- assistant_id: string;
114
112
  created_at: string;
115
113
  updated_at: string;
114
+ graph_id: string;
115
+ assistant_id: string;
116
116
  }, {
117
117
  metadata: {} & {
118
118
  [k: string]: any;
@@ -127,10 +127,10 @@ export declare const Assistant: z.ZodObject<{
127
127
  } & {
128
128
  [k: string]: unknown;
129
129
  };
130
- graph_id: string;
131
- assistant_id: string;
132
130
  created_at: string;
133
131
  updated_at: string;
132
+ graph_id: string;
133
+ assistant_id: string;
134
134
  }>;
135
135
  export declare const AssistantCreate: z.ZodObject<{
136
136
  assistant_id: z.ZodOptional<z.ZodString>;
@@ -198,8 +198,8 @@ export declare const AssistantCreate: z.ZodObject<{
198
198
  }, z.ZodUnknown, "strip">>>;
199
199
  }, z.ZodUnknown, "strip"> | undefined;
200
200
  name?: string | undefined;
201
- if_exists?: "do_nothing" | "raise" | undefined;
202
201
  assistant_id?: string | undefined;
202
+ if_exists?: "raise" | "do_nothing" | undefined;
203
203
  }, {
204
204
  graph_id: string;
205
205
  context?: unknown;
@@ -219,8 +219,8 @@ export declare const AssistantCreate: z.ZodObject<{
219
219
  }, z.ZodUnknown, "strip">>>;
220
220
  }, z.ZodUnknown, "strip"> | undefined;
221
221
  name?: string | undefined;
222
- if_exists?: "do_nothing" | "raise" | undefined;
223
222
  assistant_id?: string | undefined;
223
+ if_exists?: "raise" | "do_nothing" | undefined;
224
224
  }>;
225
225
  export declare const AssistantPatch: z.ZodObject<{
226
226
  graph_id: z.ZodOptional<z.ZodString>;
@@ -353,12 +353,12 @@ export declare const CheckpointSchema: z.ZodObject<{
353
353
  checkpoint_ns: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
354
  checkpoint_map: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
355
355
  }, "strip", z.ZodTypeAny, {
356
- checkpoint_ns?: string | null | undefined;
357
356
  checkpoint_id?: string | undefined;
357
+ checkpoint_ns?: string | null | undefined;
358
358
  checkpoint_map?: Record<string, unknown> | null | undefined;
359
359
  }, {
360
- checkpoint_ns?: string | null | undefined;
361
360
  checkpoint_id?: string | undefined;
361
+ checkpoint_ns?: string | null | undefined;
362
362
  checkpoint_map?: Record<string, unknown> | null | undefined;
363
363
  }>;
364
364
  export declare const CronCreate: z.ZodObject<{
@@ -418,6 +418,8 @@ export declare const CronCreate: z.ZodObject<{
418
418
  context?: unknown;
419
419
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
420
420
  input?: z.objectOutputType<{}, z.ZodAny, "strip">[] | z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
421
+ interrupt_before?: string[] | "*" | undefined;
422
+ interrupt_after?: string[] | "*" | undefined;
421
423
  config?: z.objectOutputType<{
422
424
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
423
425
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -432,10 +434,8 @@ export declare const CronCreate: z.ZodObject<{
432
434
  thread_ts: z.ZodOptional<z.ZodString>;
433
435
  }, z.ZodUnknown, "strip">>>;
434
436
  }, z.ZodUnknown, "strip"> | undefined;
435
- checkpoint_id?: string | undefined;
436
- interrupt_before?: string[] | "*" | undefined;
437
- interrupt_after?: string[] | "*" | undefined;
438
437
  webhook?: string | undefined;
438
+ checkpoint_id?: string | undefined;
439
439
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
440
440
  }, {
441
441
  thread_id: string;
@@ -443,6 +443,8 @@ export declare const CronCreate: z.ZodObject<{
443
443
  context?: unknown;
444
444
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
445
445
  input?: z.objectInputType<{}, z.ZodAny, "strip">[] | z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
446
+ interrupt_before?: string[] | "*" | undefined;
447
+ interrupt_after?: string[] | "*" | undefined;
446
448
  config?: z.objectInputType<{
447
449
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
448
450
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -457,10 +459,8 @@ export declare const CronCreate: z.ZodObject<{
457
459
  thread_ts: z.ZodOptional<z.ZodString>;
458
460
  }, z.ZodUnknown, "strip">>>;
459
461
  }, z.ZodUnknown, "strip"> | undefined;
460
- checkpoint_id?: string | undefined;
461
- interrupt_before?: string[] | "*" | undefined;
462
- interrupt_after?: string[] | "*" | undefined;
463
462
  webhook?: string | undefined;
463
+ checkpoint_id?: string | undefined;
464
464
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
465
465
  }>;
466
466
  export declare const CronSearch: z.ZodObject<{
@@ -470,14 +470,14 @@ export declare const CronSearch: z.ZodObject<{
470
470
  offset: z.ZodOptional<z.ZodNumber>;
471
471
  }, "strip", z.ZodTypeAny, {
472
472
  thread_id?: string | undefined;
473
+ assistant_id?: string | undefined;
473
474
  limit?: number | undefined;
474
475
  offset?: number | undefined;
475
- assistant_id?: string | undefined;
476
476
  }, {
477
477
  thread_id?: string | undefined;
478
+ assistant_id?: string | undefined;
478
479
  limit?: number | undefined;
479
480
  offset?: number | undefined;
480
- assistant_id?: string | undefined;
481
481
  }>;
482
482
  export declare const GraphSchema: z.ZodObject<{
483
483
  graph_id: z.ZodString;
@@ -517,29 +517,29 @@ export declare const Run: z.ZodObject<{
517
517
  kwargs: z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>;
518
518
  multitask_strategy: z.ZodEnum<["reject", "rollback", "interrupt", "enqueue"]>;
519
519
  }, "strip", z.ZodTypeAny, {
520
- status: "error" | "timeout" | "interrupted" | "pending" | "running" | "success";
520
+ status: "error" | "interrupted" | "pending" | "running" | "success" | "timeout";
521
+ thread_id: string;
521
522
  metadata: {} & {
522
523
  [k: string]: any;
523
524
  };
524
- run_id: string;
525
- thread_id: string;
526
- assistant_id: string;
527
525
  created_at: string;
528
526
  updated_at: string;
527
+ run_id: string;
528
+ assistant_id: string;
529
529
  multitask_strategy: "reject" | "rollback" | "interrupt" | "enqueue";
530
530
  kwargs: {} & {
531
531
  [k: string]: any;
532
532
  };
533
533
  }, {
534
- status: "error" | "timeout" | "interrupted" | "pending" | "running" | "success";
534
+ status: "error" | "interrupted" | "pending" | "running" | "success" | "timeout";
535
+ thread_id: string;
535
536
  metadata: {} & {
536
537
  [k: string]: any;
537
538
  };
538
- run_id: string;
539
- thread_id: string;
540
- assistant_id: string;
541
539
  created_at: string;
542
540
  updated_at: string;
541
+ run_id: string;
542
+ assistant_id: string;
543
543
  multitask_strategy: "reject" | "rollback" | "interrupt" | "enqueue";
544
544
  kwargs: {} & {
545
545
  [k: string]: any;
@@ -606,12 +606,12 @@ export declare const RunCreate: z.ZodObject<{
606
606
  checkpoint_ns: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
607
  checkpoint_map: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
608
608
  }, "strip", z.ZodTypeAny, {
609
- checkpoint_ns?: string | null | undefined;
610
609
  checkpoint_id?: string | undefined;
610
+ checkpoint_ns?: string | null | undefined;
611
611
  checkpoint_map?: Record<string, unknown> | null | undefined;
612
612
  }, {
613
- checkpoint_ns?: string | null | undefined;
614
613
  checkpoint_id?: string | undefined;
614
+ checkpoint_ns?: string | null | undefined;
615
615
  checkpoint_map?: Record<string, unknown> | null | undefined;
616
616
  }>>;
617
617
  input: z.ZodOptional<z.ZodUnion<[z.ZodUnknown, z.ZodNull]>>;
@@ -728,6 +728,20 @@ export declare const RunCreate: z.ZodObject<{
728
728
  context?: unknown;
729
729
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
730
730
  input?: unknown;
731
+ command?: {
732
+ update?: Record<string, unknown> | [string, unknown][] | undefined;
733
+ goto?: string | {
734
+ node: string;
735
+ input?: unknown;
736
+ } | (string | {
737
+ node: string;
738
+ input?: unknown;
739
+ })[] | undefined;
740
+ resume?: unknown;
741
+ } | undefined;
742
+ stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
743
+ interrupt_before?: string[] | "*" | undefined;
744
+ interrupt_after?: string[] | "*" | undefined;
731
745
  config?: z.objectOutputType<{
732
746
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
733
747
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -742,33 +756,19 @@ export declare const RunCreate: z.ZodObject<{
742
756
  thread_ts: z.ZodOptional<z.ZodString>;
743
757
  }, z.ZodUnknown, "strip">>>;
744
758
  }, z.ZodUnknown, "strip"> | undefined;
759
+ webhook?: string | undefined;
760
+ feedback_keys?: string[] | undefined;
745
761
  checkpoint_id?: string | undefined;
746
762
  checkpoint?: {
747
- checkpoint_ns?: string | null | undefined;
748
763
  checkpoint_id?: string | undefined;
764
+ checkpoint_ns?: string | null | undefined;
749
765
  checkpoint_map?: Record<string, unknown> | null | undefined;
750
766
  } | undefined;
751
- command?: {
752
- update?: Record<string, unknown> | [string, unknown][] | undefined;
753
- goto?: string | {
754
- node: string;
755
- input?: unknown;
756
- } | (string | {
757
- node: string;
758
- input?: unknown;
759
- })[] | undefined;
760
- resume?: unknown;
761
- } | undefined;
762
- stream_mode?: "values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events" | ("values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events")[] | undefined;
763
- interrupt_before?: string[] | "*" | undefined;
764
- interrupt_after?: string[] | "*" | undefined;
765
- webhook?: string | undefined;
766
- feedback_keys?: string[] | undefined;
767
767
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
768
- if_not_exists?: "reject" | "create" | undefined;
769
- after_seconds?: number | undefined;
770
768
  stream_subgraphs?: boolean | undefined;
771
769
  stream_resumable?: boolean | undefined;
770
+ after_seconds?: number | undefined;
771
+ if_not_exists?: "reject" | "create" | undefined;
772
772
  on_completion?: "delete" | "keep" | undefined;
773
773
  langsmith_tracer?: {
774
774
  project_name?: string | undefined;
@@ -779,6 +779,20 @@ export declare const RunCreate: z.ZodObject<{
779
779
  context?: unknown;
780
780
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
781
781
  input?: unknown;
782
+ command?: {
783
+ update?: Record<string, unknown> | [string, unknown][] | undefined;
784
+ goto?: string | {
785
+ node: string;
786
+ input?: unknown;
787
+ } | (string | {
788
+ node: string;
789
+ input?: unknown;
790
+ })[] | undefined;
791
+ resume?: unknown;
792
+ } | undefined;
793
+ stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
794
+ interrupt_before?: string[] | "*" | undefined;
795
+ interrupt_after?: string[] | "*" | undefined;
782
796
  config?: z.objectInputType<{
783
797
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
784
798
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -793,34 +807,20 @@ export declare const RunCreate: z.ZodObject<{
793
807
  thread_ts: z.ZodOptional<z.ZodString>;
794
808
  }, z.ZodUnknown, "strip">>>;
795
809
  }, z.ZodUnknown, "strip"> | undefined;
810
+ webhook?: string | undefined;
811
+ feedback_keys?: string[] | undefined;
796
812
  checkpoint_id?: string | undefined;
797
813
  checkpoint?: {
798
- checkpoint_ns?: string | null | undefined;
799
814
  checkpoint_id?: string | undefined;
815
+ checkpoint_ns?: string | null | undefined;
800
816
  checkpoint_map?: Record<string, unknown> | null | undefined;
801
817
  } | undefined;
802
- command?: {
803
- update?: Record<string, unknown> | [string, unknown][] | undefined;
804
- goto?: string | {
805
- node: string;
806
- input?: unknown;
807
- } | (string | {
808
- node: string;
809
- input?: unknown;
810
- })[] | undefined;
811
- resume?: unknown;
812
- } | undefined;
813
- stream_mode?: "values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events" | ("values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events")[] | undefined;
814
- interrupt_before?: string[] | "*" | undefined;
815
- interrupt_after?: string[] | "*" | undefined;
816
- webhook?: string | undefined;
817
- feedback_keys?: string[] | undefined;
818
818
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
819
- if_not_exists?: "reject" | "create" | undefined;
820
- after_seconds?: number | undefined;
821
819
  on_disconnect?: "cancel" | "continue" | undefined;
822
820
  stream_subgraphs?: boolean | undefined;
823
821
  stream_resumable?: boolean | undefined;
822
+ after_seconds?: number | undefined;
823
+ if_not_exists?: "reject" | "create" | undefined;
824
824
  on_completion?: "delete" | "keep" | undefined;
825
825
  langsmith_tracer?: {
826
826
  project_name?: string | undefined;
@@ -835,12 +835,12 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
835
835
  checkpoint_ns: z.ZodOptional<z.ZodNullable<z.ZodString>>;
836
836
  checkpoint_map: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
837
837
  }, "strip", z.ZodTypeAny, {
838
- checkpoint_ns?: string | null | undefined;
839
838
  checkpoint_id?: string | undefined;
839
+ checkpoint_ns?: string | null | undefined;
840
840
  checkpoint_map?: Record<string, unknown> | null | undefined;
841
841
  }, {
842
- checkpoint_ns?: string | null | undefined;
843
842
  checkpoint_id?: string | undefined;
843
+ checkpoint_ns?: string | null | undefined;
844
844
  checkpoint_map?: Record<string, unknown> | null | undefined;
845
845
  }>>;
846
846
  input: z.ZodOptional<z.ZodUnion<[z.ZodUnknown, z.ZodNull]>>;
@@ -957,6 +957,20 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
957
957
  context?: unknown;
958
958
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
959
959
  input?: unknown;
960
+ command?: {
961
+ update?: Record<string, unknown> | [string, unknown][] | undefined;
962
+ goto?: string | {
963
+ node: string;
964
+ input?: unknown;
965
+ } | (string | {
966
+ node: string;
967
+ input?: unknown;
968
+ })[] | undefined;
969
+ resume?: unknown;
970
+ } | undefined;
971
+ stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
972
+ interrupt_before?: string[] | "*" | undefined;
973
+ interrupt_after?: string[] | "*" | undefined;
960
974
  config?: z.objectOutputType<{
961
975
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
962
976
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -971,33 +985,19 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
971
985
  thread_ts: z.ZodOptional<z.ZodString>;
972
986
  }, z.ZodUnknown, "strip">>>;
973
987
  }, z.ZodUnknown, "strip"> | undefined;
988
+ webhook?: string | undefined;
989
+ feedback_keys?: string[] | undefined;
974
990
  checkpoint_id?: string | undefined;
975
991
  checkpoint?: {
976
- checkpoint_ns?: string | null | undefined;
977
992
  checkpoint_id?: string | undefined;
993
+ checkpoint_ns?: string | null | undefined;
978
994
  checkpoint_map?: Record<string, unknown> | null | undefined;
979
995
  } | undefined;
980
- command?: {
981
- update?: Record<string, unknown> | [string, unknown][] | undefined;
982
- goto?: string | {
983
- node: string;
984
- input?: unknown;
985
- } | (string | {
986
- node: string;
987
- input?: unknown;
988
- })[] | undefined;
989
- resume?: unknown;
990
- } | undefined;
991
- stream_mode?: "values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events" | ("values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events")[] | undefined;
992
- interrupt_before?: string[] | "*" | undefined;
993
- interrupt_after?: string[] | "*" | undefined;
994
- webhook?: string | undefined;
995
- feedback_keys?: string[] | undefined;
996
996
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
997
- if_not_exists?: "reject" | "create" | undefined;
998
- after_seconds?: number | undefined;
999
997
  stream_subgraphs?: boolean | undefined;
1000
998
  stream_resumable?: boolean | undefined;
999
+ after_seconds?: number | undefined;
1000
+ if_not_exists?: "reject" | "create" | undefined;
1001
1001
  on_completion?: "delete" | "keep" | undefined;
1002
1002
  langsmith_tracer?: {
1003
1003
  project_name?: string | undefined;
@@ -1008,6 +1008,20 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
1008
1008
  context?: unknown;
1009
1009
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1010
1010
  input?: unknown;
1011
+ command?: {
1012
+ update?: Record<string, unknown> | [string, unknown][] | undefined;
1013
+ goto?: string | {
1014
+ node: string;
1015
+ input?: unknown;
1016
+ } | (string | {
1017
+ node: string;
1018
+ input?: unknown;
1019
+ })[] | undefined;
1020
+ resume?: unknown;
1021
+ } | undefined;
1022
+ stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
1023
+ interrupt_before?: string[] | "*" | undefined;
1024
+ interrupt_after?: string[] | "*" | undefined;
1011
1025
  config?: z.objectInputType<{
1012
1026
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1013
1027
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -1022,34 +1036,20 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
1022
1036
  thread_ts: z.ZodOptional<z.ZodString>;
1023
1037
  }, z.ZodUnknown, "strip">>>;
1024
1038
  }, z.ZodUnknown, "strip"> | undefined;
1039
+ webhook?: string | undefined;
1040
+ feedback_keys?: string[] | undefined;
1025
1041
  checkpoint_id?: string | undefined;
1026
1042
  checkpoint?: {
1027
- checkpoint_ns?: string | null | undefined;
1028
1043
  checkpoint_id?: string | undefined;
1044
+ checkpoint_ns?: string | null | undefined;
1029
1045
  checkpoint_map?: Record<string, unknown> | null | undefined;
1030
1046
  } | undefined;
1031
- command?: {
1032
- update?: Record<string, unknown> | [string, unknown][] | undefined;
1033
- goto?: string | {
1034
- node: string;
1035
- input?: unknown;
1036
- } | (string | {
1037
- node: string;
1038
- input?: unknown;
1039
- })[] | undefined;
1040
- resume?: unknown;
1041
- } | undefined;
1042
- stream_mode?: "values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events" | ("values" | "debug" | "updates" | "messages" | "checkpoints" | "tasks" | "custom" | "messages-tuple" | "events")[] | undefined;
1043
- interrupt_before?: string[] | "*" | undefined;
1044
- interrupt_after?: string[] | "*" | undefined;
1045
- webhook?: string | undefined;
1046
- feedback_keys?: string[] | undefined;
1047
1047
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
1048
- if_not_exists?: "reject" | "create" | undefined;
1049
- after_seconds?: number | undefined;
1050
1048
  on_disconnect?: "cancel" | "continue" | undefined;
1051
1049
  stream_subgraphs?: boolean | undefined;
1052
1050
  stream_resumable?: boolean | undefined;
1051
+ after_seconds?: number | undefined;
1052
+ if_not_exists?: "reject" | "create" | undefined;
1053
1053
  on_completion?: "delete" | "keep" | undefined;
1054
1054
  langsmith_tracer?: {
1055
1055
  project_name?: string | undefined;
@@ -1085,6 +1085,29 @@ export declare const AssistantSearchRequest: z.ZodObject<{
1085
1085
  limit?: number | undefined;
1086
1086
  offset?: number | undefined;
1087
1087
  }>;
1088
+ export declare const AssistantCountRequest: z.ZodObject<{
1089
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1090
+ graph_id: z.ZodOptional<z.ZodString>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ metadata?: Record<string, unknown> | undefined;
1093
+ graph_id?: string | undefined;
1094
+ }, {
1095
+ metadata?: Record<string, unknown> | undefined;
1096
+ graph_id?: string | undefined;
1097
+ }>;
1098
+ export declare const ThreadCountRequest: z.ZodObject<{
1099
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1100
+ status: z.ZodOptional<z.ZodEnum<["idle", "busy", "interrupted", "error"]>>;
1101
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1102
+ }, "strip", z.ZodTypeAny, {
1103
+ values?: Record<string, unknown> | undefined;
1104
+ status?: "error" | "idle" | "busy" | "interrupted" | undefined;
1105
+ metadata?: Record<string, unknown> | undefined;
1106
+ }, {
1107
+ values?: Record<string, unknown> | undefined;
1108
+ status?: "error" | "idle" | "busy" | "interrupted" | undefined;
1109
+ metadata?: Record<string, unknown> | undefined;
1110
+ }>;
1088
1111
  export declare const ThreadSearchRequest: z.ZodObject<{
1089
1112
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1090
1113
  status: z.ZodOptional<z.ZodEnum<["idle", "busy", "interrupted", "error"]>>;
@@ -1243,9 +1266,9 @@ export declare const ThreadCreate: z.ZodObject<{
1243
1266
  metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
1244
1267
  if_exists: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"raise">, z.ZodLiteral<"do_nothing">]>>;
1245
1268
  }, "strip", z.ZodTypeAny, {
1246
- metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
1247
1269
  thread_id?: string | undefined;
1248
- if_exists?: "do_nothing" | "raise" | undefined;
1270
+ metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
1271
+ if_exists?: "raise" | "do_nothing" | undefined;
1249
1272
  supersteps?: {
1250
1273
  updates: {
1251
1274
  as_node: string;
@@ -1264,9 +1287,9 @@ export declare const ThreadCreate: z.ZodObject<{
1264
1287
  }[];
1265
1288
  }[] | undefined;
1266
1289
  }, {
1267
- metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1268
1290
  thread_id?: string | undefined;
1269
- if_exists?: "do_nothing" | "raise" | undefined;
1291
+ metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1292
+ if_exists?: "raise" | "do_nothing" | undefined;
1270
1293
  supersteps?: {
1271
1294
  updates: {
1272
1295
  as_node: string;
@@ -1304,8 +1327,8 @@ export declare const ThreadState: z.ZodObject<{
1304
1327
  metadata: {} & {
1305
1328
  [k: string]: any;
1306
1329
  };
1307
- checkpoint_id: string;
1308
1330
  created_at: string;
1331
+ checkpoint_id: string;
1309
1332
  next: string[];
1310
1333
  parent_checkpoint_id: string;
1311
1334
  }, {
@@ -1313,8 +1336,8 @@ export declare const ThreadState: z.ZodObject<{
1313
1336
  metadata: {} & {
1314
1337
  [k: string]: any;
1315
1338
  };
1316
- checkpoint_id: string;
1317
1339
  created_at: string;
1340
+ checkpoint_id: string;
1318
1341
  next: string[];
1319
1342
  parent_checkpoint_id: string;
1320
1343
  }>;
@@ -1351,20 +1374,20 @@ export declare const ThreadStateUpdate: z.ZodObject<{
1351
1374
  checkpoint_ns: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1352
1375
  checkpoint_map: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1353
1376
  }, "strip", z.ZodTypeAny, {
1354
- checkpoint_ns?: string | null | undefined;
1355
1377
  checkpoint_id?: string | undefined;
1378
+ checkpoint_ns?: string | null | undefined;
1356
1379
  checkpoint_map?: Record<string, unknown> | null | undefined;
1357
1380
  }, {
1358
- checkpoint_ns?: string | null | undefined;
1359
1381
  checkpoint_id?: string | undefined;
1382
+ checkpoint_ns?: string | null | undefined;
1360
1383
  checkpoint_map?: Record<string, unknown> | null | undefined;
1361
1384
  }>>>;
1362
1385
  }, "strip", z.ZodTypeAny, {
1363
1386
  values?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1364
1387
  checkpoint_id?: string | undefined;
1365
1388
  checkpoint?: {
1366
- checkpoint_ns?: string | null | undefined;
1367
1389
  checkpoint_id?: string | undefined;
1390
+ checkpoint_ns?: string | null | undefined;
1368
1391
  checkpoint_map?: Record<string, unknown> | null | undefined;
1369
1392
  } | null | undefined;
1370
1393
  as_node?: string | undefined;
@@ -1372,8 +1395,8 @@ export declare const ThreadStateUpdate: z.ZodObject<{
1372
1395
  values?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1373
1396
  checkpoint_id?: string | undefined;
1374
1397
  checkpoint?: {
1375
- checkpoint_ns?: string | null | undefined;
1376
1398
  checkpoint_id?: string | undefined;
1399
+ checkpoint_ns?: string | null | undefined;
1377
1400
  checkpoint_map?: Record<string, unknown> | null | undefined;
1378
1401
  } | null | undefined;
1379
1402
  as_node?: string | undefined;
@@ -1387,28 +1410,28 @@ export declare const ThreadHistoryRequest: z.ZodObject<{
1387
1410
  checkpoint_ns: z.ZodOptional<z.ZodString>;
1388
1411
  checkpoint_map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1389
1412
  }, "strip", z.ZodTypeAny, {
1390
- checkpoint_ns?: string | undefined;
1391
1413
  checkpoint_id?: string | undefined;
1414
+ checkpoint_ns?: string | undefined;
1392
1415
  checkpoint_map?: Record<string, unknown> | undefined;
1393
1416
  }, {
1394
- checkpoint_ns?: string | undefined;
1395
1417
  checkpoint_id?: string | undefined;
1418
+ checkpoint_ns?: string | undefined;
1396
1419
  checkpoint_map?: Record<string, unknown> | undefined;
1397
1420
  }>>;
1398
1421
  }, "strip", z.ZodTypeAny, {
1399
1422
  limit: number;
1400
1423
  metadata?: Record<string, unknown> | undefined;
1401
1424
  checkpoint?: {
1402
- checkpoint_ns?: string | undefined;
1403
1425
  checkpoint_id?: string | undefined;
1426
+ checkpoint_ns?: string | undefined;
1404
1427
  checkpoint_map?: Record<string, unknown> | undefined;
1405
1428
  } | undefined;
1406
1429
  before?: string | undefined;
1407
1430
  }, {
1408
1431
  metadata?: Record<string, unknown> | undefined;
1409
1432
  checkpoint?: {
1410
- checkpoint_ns?: string | undefined;
1411
1433
  checkpoint_id?: string | undefined;
1434
+ checkpoint_ns?: string | undefined;
1412
1435
  checkpoint_map?: Record<string, unknown> | undefined;
1413
1436
  } | undefined;
1414
1437
  limit?: number | undefined;
package/dist/schemas.mjs CHANGED
@@ -274,6 +274,31 @@ export const AssistantSearchRequest = z
274
274
  .optional(),
275
275
  })
276
276
  .describe("Payload for listing assistants.");
277
+ export const AssistantCountRequest = z
278
+ .object({
279
+ metadata: z
280
+ .record(z.unknown())
281
+ .describe("Metadata to search for.")
282
+ .optional(),
283
+ graph_id: z.string().describe("Filter by graph ID.").optional(),
284
+ })
285
+ .describe("Payload for counting assistants.");
286
+ export const ThreadCountRequest = z
287
+ .object({
288
+ metadata: z
289
+ .record(z.unknown())
290
+ .describe("Metadata to search for.")
291
+ .optional(),
292
+ status: z
293
+ .enum(["idle", "busy", "interrupted", "error"])
294
+ .describe("Filter by thread status.")
295
+ .optional(),
296
+ values: z
297
+ .record(z.unknown())
298
+ .describe("Filter by thread values.")
299
+ .optional(),
300
+ })
301
+ .describe("Payload for counting threads.");
277
302
  export const ThreadSearchRequest = z
278
303
  .object({
279
304
  metadata: z