@langchain/langgraph-api 0.0.69 → 0.0.70

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @langchain/langgraph-api
2
2
 
3
+ ## 0.0.70
4
+
5
+ ### Patch Changes
6
+
7
+ - 636e142: Updated types to match python api
8
+ - @langchain/langgraph-ui@0.0.70
9
+
3
10
  ## 0.0.69
4
11
 
5
12
  ### Patch Changes
@@ -31,12 +31,9 @@ api.post("/threads/search", zValidator("json", schemas.ThreadSearchRequest), asy
31
31
  offset: payload.offset ?? 0,
32
32
  sort_by: payload.sort_by ?? "created_at",
33
33
  sort_order: payload.sort_order ?? "desc",
34
+ select: payload.select,
34
35
  }, c.var.auth)) {
35
- result.push({
36
- ...item.thread,
37
- created_at: item.thread.created_at.toISOString(),
38
- updated_at: item.thread.updated_at.toISOString(),
39
- });
36
+ result.push(Object.fromEntries(Object.entries(item.thread).filter(([k]) => !payload.select || payload.select.includes(k))));
40
37
  // Only set total if it's the first item
41
38
  if (total === 0) {
42
39
  total = item.total;
@@ -96,9 +96,8 @@ export declare const Assistant: z.ZodObject<{
96
96
  updated_at: z.ZodString;
97
97
  metadata: z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>;
98
98
  }, "strip", z.ZodTypeAny, {
99
- metadata: {} & {
100
- [k: string]: any;
101
- };
99
+ assistant_id: string;
100
+ graph_id: string;
102
101
  config: {
103
102
  configurable?: z.objectOutputType<{
104
103
  thread_id: z.ZodOptional<z.ZodString>;
@@ -111,12 +110,12 @@ export declare const Assistant: z.ZodObject<{
111
110
  };
112
111
  created_at: string;
113
112
  updated_at: string;
114
- assistant_id: string;
115
- graph_id: string;
116
- }, {
117
113
  metadata: {} & {
118
114
  [k: string]: any;
119
115
  };
116
+ }, {
117
+ assistant_id: string;
118
+ graph_id: string;
120
119
  config: {
121
120
  configurable?: z.objectInputType<{
122
121
  thread_id: z.ZodOptional<z.ZodString>;
@@ -129,8 +128,9 @@ export declare const Assistant: z.ZodObject<{
129
128
  };
130
129
  created_at: string;
131
130
  updated_at: string;
132
- assistant_id: string;
133
- graph_id: string;
131
+ metadata: {} & {
132
+ [k: string]: any;
133
+ };
134
134
  }>;
135
135
  export declare const AssistantCreate: z.ZodObject<{
136
136
  assistant_id: z.ZodOptional<z.ZodString>;
@@ -183,7 +183,9 @@ export declare const AssistantCreate: z.ZodObject<{
183
183
  }, "strip", z.ZodTypeAny, {
184
184
  graph_id: string;
185
185
  context?: unknown;
186
- metadata?: z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
186
+ assistant_id?: string | undefined;
187
+ name?: string | undefined;
188
+ description?: string | undefined;
187
189
  config?: z.objectOutputType<{
188
190
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
191
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -198,14 +200,14 @@ export declare const AssistantCreate: z.ZodObject<{
198
200
  thread_ts: z.ZodOptional<z.ZodString>;
199
201
  }, z.ZodUnknown, "strip">>>;
200
202
  }, z.ZodUnknown, "strip"> | undefined;
201
- assistant_id?: string | undefined;
202
- name?: string | undefined;
203
- description?: string | undefined;
203
+ metadata?: z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
204
204
  if_exists?: "raise" | "do_nothing" | undefined;
205
205
  }, {
206
206
  graph_id: string;
207
207
  context?: unknown;
208
- metadata?: z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
208
+ assistant_id?: string | undefined;
209
+ name?: string | undefined;
210
+ description?: string | undefined;
209
211
  config?: z.objectInputType<{
210
212
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
211
213
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -220,9 +222,7 @@ export declare const AssistantCreate: z.ZodObject<{
220
222
  thread_ts: z.ZodOptional<z.ZodString>;
221
223
  }, z.ZodUnknown, "strip">>>;
222
224
  }, z.ZodUnknown, "strip"> | undefined;
223
- assistant_id?: string | undefined;
224
- name?: string | undefined;
225
- description?: string | undefined;
225
+ metadata?: z.objectInputType<{}, z.ZodUnknown, "strip"> | undefined;
226
226
  if_exists?: "raise" | "do_nothing" | undefined;
227
227
  }>;
228
228
  export declare const AssistantPatch: z.ZodObject<{
@@ -273,7 +273,9 @@ export declare const AssistantPatch: z.ZodObject<{
273
273
  metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
274
274
  }, "strip", z.ZodTypeAny, {
275
275
  context?: unknown;
276
- metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
276
+ graph_id?: string | undefined;
277
+ name?: string | undefined;
278
+ description?: string | undefined;
277
279
  config?: z.objectOutputType<{
278
280
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
279
281
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -288,12 +290,12 @@ export declare const AssistantPatch: z.ZodObject<{
288
290
  thread_ts: z.ZodOptional<z.ZodString>;
289
291
  }, z.ZodUnknown, "strip">>>;
290
292
  }, z.ZodUnknown, "strip"> | undefined;
291
- name?: string | undefined;
292
- graph_id?: string | undefined;
293
- description?: string | undefined;
293
+ metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
294
294
  }, {
295
295
  context?: unknown;
296
- metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
296
+ graph_id?: string | undefined;
297
+ name?: string | undefined;
298
+ description?: string | undefined;
297
299
  config?: z.objectInputType<{
298
300
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
301
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -308,9 +310,7 @@ export declare const AssistantPatch: z.ZodObject<{
308
310
  thread_ts: z.ZodOptional<z.ZodString>;
309
311
  }, z.ZodUnknown, "strip">>>;
310
312
  }, z.ZodUnknown, "strip"> | undefined;
311
- name?: string | undefined;
312
- graph_id?: string | undefined;
313
- description?: string | undefined;
313
+ metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
314
314
  }>;
315
315
  export declare const Config: z.ZodObject<{
316
316
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -334,9 +334,9 @@ export declare const Cron: z.ZodObject<{
334
334
  updated_at: z.ZodString;
335
335
  payload: z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>;
336
336
  }, "strip", z.ZodTypeAny, {
337
- thread_id: string;
338
337
  created_at: string;
339
338
  updated_at: string;
339
+ thread_id: string;
340
340
  cron_id: string;
341
341
  end_time: string;
342
342
  schedule: string;
@@ -344,9 +344,9 @@ export declare const Cron: z.ZodObject<{
344
344
  [k: string]: any;
345
345
  };
346
346
  }, {
347
- thread_id: string;
348
347
  created_at: string;
349
348
  updated_at: string;
349
+ thread_id: string;
350
350
  cron_id: string;
351
351
  end_time: string;
352
352
  schedule: string;
@@ -419,13 +419,9 @@ export declare const CronCreate: z.ZodObject<{
419
419
  interrupt_after: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["*"]>, z.ZodArray<z.ZodString, "many">]>>;
420
420
  multitask_strategy: z.ZodOptional<z.ZodEnum<["reject", "rollback", "interrupt", "enqueue"]>>;
421
421
  }, "strip", z.ZodTypeAny, {
422
- thread_id: string;
423
422
  assistant_id: string;
423
+ thread_id: string;
424
424
  context?: unknown;
425
- metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
426
- input?: z.objectOutputType<{}, z.ZodAny, "strip">[] | z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
427
- interrupt_before?: string[] | "*" | undefined;
428
- interrupt_after?: string[] | "*" | undefined;
429
425
  config?: z.objectOutputType<{
430
426
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
431
427
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -440,17 +436,17 @@ export declare const CronCreate: z.ZodObject<{
440
436
  thread_ts: z.ZodOptional<z.ZodString>;
441
437
  }, z.ZodUnknown, "strip">>>;
442
438
  }, z.ZodUnknown, "strip"> | undefined;
439
+ metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
440
+ input?: z.objectOutputType<{}, z.ZodAny, "strip">[] | z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
441
+ interrupt_before?: string[] | "*" | undefined;
442
+ interrupt_after?: string[] | "*" | undefined;
443
443
  webhook?: string | undefined;
444
444
  checkpoint_id?: string | undefined;
445
445
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
446
446
  }, {
447
- thread_id: string;
448
447
  assistant_id: string;
448
+ thread_id: string;
449
449
  context?: unknown;
450
- metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
451
- input?: z.objectInputType<{}, z.ZodAny, "strip">[] | z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
452
- interrupt_before?: string[] | "*" | undefined;
453
- interrupt_after?: string[] | "*" | undefined;
454
450
  config?: z.objectInputType<{
455
451
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
456
452
  recursion_limit: z.ZodOptional<z.ZodNumber>;
@@ -465,6 +461,10 @@ export declare const CronCreate: z.ZodObject<{
465
461
  thread_ts: z.ZodOptional<z.ZodString>;
466
462
  }, z.ZodUnknown, "strip">>>;
467
463
  }, z.ZodUnknown, "strip"> | undefined;
464
+ metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
465
+ input?: z.objectInputType<{}, z.ZodAny, "strip">[] | z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
466
+ interrupt_before?: string[] | "*" | undefined;
467
+ interrupt_after?: string[] | "*" | undefined;
468
468
  webhook?: string | undefined;
469
469
  checkpoint_id?: string | undefined;
470
470
  multitask_strategy?: "reject" | "rollback" | "interrupt" | "enqueue" | undefined;
@@ -475,13 +475,13 @@ export declare const CronSearch: z.ZodObject<{
475
475
  limit: z.ZodOptional<z.ZodNumber>;
476
476
  offset: z.ZodOptional<z.ZodNumber>;
477
477
  }, "strip", z.ZodTypeAny, {
478
- thread_id?: string | undefined;
479
478
  assistant_id?: string | undefined;
479
+ thread_id?: string | undefined;
480
480
  limit?: number | undefined;
481
481
  offset?: number | undefined;
482
482
  }, {
483
- thread_id?: string | undefined;
484
483
  assistant_id?: string | undefined;
484
+ thread_id?: string | undefined;
485
485
  limit?: number | undefined;
486
486
  offset?: number | undefined;
487
487
  }>;
@@ -524,13 +524,13 @@ export declare const Run: z.ZodObject<{
524
524
  multitask_strategy: z.ZodEnum<["reject", "rollback", "interrupt", "enqueue"]>;
525
525
  }, "strip", z.ZodTypeAny, {
526
526
  status: "error" | "interrupted" | "pending" | "running" | "success" | "timeout";
527
- thread_id: string;
527
+ assistant_id: string;
528
+ created_at: string;
529
+ updated_at: string;
528
530
  metadata: {} & {
529
531
  [k: string]: any;
530
532
  };
531
- created_at: string;
532
- updated_at: string;
533
- assistant_id: string;
533
+ thread_id: string;
534
534
  run_id: string;
535
535
  multitask_strategy: "reject" | "rollback" | "interrupt" | "enqueue";
536
536
  kwargs: {} & {
@@ -538,13 +538,13 @@ export declare const Run: z.ZodObject<{
538
538
  };
539
539
  }, {
540
540
  status: "error" | "interrupted" | "pending" | "running" | "success" | "timeout";
541
- thread_id: string;
541
+ assistant_id: string;
542
+ created_at: string;
543
+ updated_at: string;
542
544
  metadata: {} & {
543
545
  [k: string]: any;
544
546
  };
545
- created_at: string;
546
- updated_at: string;
547
- assistant_id: string;
547
+ thread_id: string;
548
548
  run_id: string;
549
549
  multitask_strategy: "reject" | "rollback" | "interrupt" | "enqueue";
550
550
  kwargs: {} & {
@@ -732,6 +732,20 @@ export declare const RunCreate: z.ZodObject<{
732
732
  assistant_id: string;
733
733
  on_disconnect: "cancel" | "continue";
734
734
  context?: unknown;
735
+ config?: z.objectOutputType<{
736
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
737
+ recursion_limit: z.ZodOptional<z.ZodNumber>;
738
+ configurable: z.ZodOptional<z.ZodObject<{
739
+ thread_id: z.ZodOptional<z.ZodString>;
740
+ thread_ts: z.ZodOptional<z.ZodString>;
741
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
742
+ thread_id: z.ZodOptional<z.ZodString>;
743
+ thread_ts: z.ZodOptional<z.ZodString>;
744
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
745
+ thread_id: z.ZodOptional<z.ZodString>;
746
+ thread_ts: z.ZodOptional<z.ZodString>;
747
+ }, z.ZodUnknown, "strip">>>;
748
+ }, z.ZodUnknown, "strip"> | undefined;
735
749
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
736
750
  input?: unknown;
737
751
  command?: {
@@ -748,20 +762,6 @@ export declare const RunCreate: z.ZodObject<{
748
762
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
749
763
  interrupt_before?: string[] | "*" | undefined;
750
764
  interrupt_after?: string[] | "*" | undefined;
751
- config?: z.objectOutputType<{
752
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
753
- recursion_limit: z.ZodOptional<z.ZodNumber>;
754
- configurable: z.ZodOptional<z.ZodObject<{
755
- thread_id: z.ZodOptional<z.ZodString>;
756
- thread_ts: z.ZodOptional<z.ZodString>;
757
- }, "strip", z.ZodUnknown, z.objectOutputType<{
758
- thread_id: z.ZodOptional<z.ZodString>;
759
- thread_ts: z.ZodOptional<z.ZodString>;
760
- }, z.ZodUnknown, "strip">, z.objectInputType<{
761
- thread_id: z.ZodOptional<z.ZodString>;
762
- thread_ts: z.ZodOptional<z.ZodString>;
763
- }, z.ZodUnknown, "strip">>>;
764
- }, z.ZodUnknown, "strip"> | undefined;
765
765
  webhook?: string | undefined;
766
766
  feedback_keys?: string[] | undefined;
767
767
  checkpoint_id?: string | undefined;
@@ -783,6 +783,20 @@ export declare const RunCreate: z.ZodObject<{
783
783
  }, {
784
784
  assistant_id: string;
785
785
  context?: unknown;
786
+ config?: z.objectInputType<{
787
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
788
+ recursion_limit: z.ZodOptional<z.ZodNumber>;
789
+ configurable: z.ZodOptional<z.ZodObject<{
790
+ thread_id: z.ZodOptional<z.ZodString>;
791
+ thread_ts: z.ZodOptional<z.ZodString>;
792
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
793
+ thread_id: z.ZodOptional<z.ZodString>;
794
+ thread_ts: z.ZodOptional<z.ZodString>;
795
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
796
+ thread_id: z.ZodOptional<z.ZodString>;
797
+ thread_ts: z.ZodOptional<z.ZodString>;
798
+ }, z.ZodUnknown, "strip">>>;
799
+ }, z.ZodUnknown, "strip"> | undefined;
786
800
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
787
801
  input?: unknown;
788
802
  command?: {
@@ -799,20 +813,6 @@ export declare const RunCreate: z.ZodObject<{
799
813
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
800
814
  interrupt_before?: string[] | "*" | undefined;
801
815
  interrupt_after?: string[] | "*" | undefined;
802
- config?: z.objectInputType<{
803
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
804
- recursion_limit: z.ZodOptional<z.ZodNumber>;
805
- configurable: z.ZodOptional<z.ZodObject<{
806
- thread_id: z.ZodOptional<z.ZodString>;
807
- thread_ts: z.ZodOptional<z.ZodString>;
808
- }, "strip", z.ZodUnknown, z.objectOutputType<{
809
- thread_id: z.ZodOptional<z.ZodString>;
810
- thread_ts: z.ZodOptional<z.ZodString>;
811
- }, z.ZodUnknown, "strip">, z.objectInputType<{
812
- thread_id: z.ZodOptional<z.ZodString>;
813
- thread_ts: z.ZodOptional<z.ZodString>;
814
- }, z.ZodUnknown, "strip">>>;
815
- }, z.ZodUnknown, "strip"> | undefined;
816
816
  webhook?: string | undefined;
817
817
  feedback_keys?: string[] | undefined;
818
818
  checkpoint_id?: string | undefined;
@@ -961,6 +961,20 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
961
961
  assistant_id: string;
962
962
  on_disconnect: "cancel" | "continue";
963
963
  context?: unknown;
964
+ config?: z.objectOutputType<{
965
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
966
+ recursion_limit: z.ZodOptional<z.ZodNumber>;
967
+ configurable: z.ZodOptional<z.ZodObject<{
968
+ thread_id: z.ZodOptional<z.ZodString>;
969
+ thread_ts: z.ZodOptional<z.ZodString>;
970
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
971
+ thread_id: z.ZodOptional<z.ZodString>;
972
+ thread_ts: z.ZodOptional<z.ZodString>;
973
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
974
+ thread_id: z.ZodOptional<z.ZodString>;
975
+ thread_ts: z.ZodOptional<z.ZodString>;
976
+ }, z.ZodUnknown, "strip">>>;
977
+ }, z.ZodUnknown, "strip"> | undefined;
964
978
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
965
979
  input?: unknown;
966
980
  command?: {
@@ -977,20 +991,6 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
977
991
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
978
992
  interrupt_before?: string[] | "*" | undefined;
979
993
  interrupt_after?: string[] | "*" | undefined;
980
- config?: z.objectOutputType<{
981
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
982
- recursion_limit: z.ZodOptional<z.ZodNumber>;
983
- configurable: z.ZodOptional<z.ZodObject<{
984
- thread_id: z.ZodOptional<z.ZodString>;
985
- thread_ts: z.ZodOptional<z.ZodString>;
986
- }, "strip", z.ZodUnknown, z.objectOutputType<{
987
- thread_id: z.ZodOptional<z.ZodString>;
988
- thread_ts: z.ZodOptional<z.ZodString>;
989
- }, z.ZodUnknown, "strip">, z.objectInputType<{
990
- thread_id: z.ZodOptional<z.ZodString>;
991
- thread_ts: z.ZodOptional<z.ZodString>;
992
- }, z.ZodUnknown, "strip">>>;
993
- }, z.ZodUnknown, "strip"> | undefined;
994
994
  webhook?: string | undefined;
995
995
  feedback_keys?: string[] | undefined;
996
996
  checkpoint_id?: string | undefined;
@@ -1012,6 +1012,20 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
1012
1012
  }, {
1013
1013
  assistant_id: string;
1014
1014
  context?: unknown;
1015
+ config?: z.objectInputType<{
1016
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1017
+ recursion_limit: z.ZodOptional<z.ZodNumber>;
1018
+ configurable: z.ZodOptional<z.ZodObject<{
1019
+ thread_id: z.ZodOptional<z.ZodString>;
1020
+ thread_ts: z.ZodOptional<z.ZodString>;
1021
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1022
+ thread_id: z.ZodOptional<z.ZodString>;
1023
+ thread_ts: z.ZodOptional<z.ZodString>;
1024
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1025
+ thread_id: z.ZodOptional<z.ZodString>;
1026
+ thread_ts: z.ZodOptional<z.ZodString>;
1027
+ }, z.ZodUnknown, "strip">>>;
1028
+ }, z.ZodUnknown, "strip"> | undefined;
1015
1029
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1016
1030
  input?: unknown;
1017
1031
  command?: {
@@ -1028,20 +1042,6 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
1028
1042
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
1029
1043
  interrupt_before?: string[] | "*" | undefined;
1030
1044
  interrupt_after?: string[] | "*" | undefined;
1031
- config?: z.objectInputType<{
1032
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1033
- recursion_limit: z.ZodOptional<z.ZodNumber>;
1034
- configurable: z.ZodOptional<z.ZodObject<{
1035
- thread_id: z.ZodOptional<z.ZodString>;
1036
- thread_ts: z.ZodOptional<z.ZodString>;
1037
- }, "strip", z.ZodUnknown, z.objectOutputType<{
1038
- thread_id: z.ZodOptional<z.ZodString>;
1039
- thread_ts: z.ZodOptional<z.ZodString>;
1040
- }, z.ZodUnknown, "strip">, z.objectInputType<{
1041
- thread_id: z.ZodOptional<z.ZodString>;
1042
- thread_ts: z.ZodOptional<z.ZodString>;
1043
- }, z.ZodUnknown, "strip">>>;
1044
- }, z.ZodUnknown, "strip"> | undefined;
1045
1045
  webhook?: string | undefined;
1046
1046
  feedback_keys?: string[] | undefined;
1047
1047
  checkpoint_id?: string | undefined;
@@ -1084,19 +1084,19 @@ export declare const AssistantSearchRequest: z.ZodObject<{
1084
1084
  sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1085
1085
  select: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1086
1086
  }, "strip", z.ZodTypeAny, {
1087
- metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
1088
1087
  graph_id?: string | undefined;
1088
+ metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
1089
1089
  limit?: number | undefined;
1090
1090
  offset?: number | undefined;
1091
- sort_by?: "created_at" | "updated_at" | "assistant_id" | "name" | "graph_id" | undefined;
1091
+ sort_by?: "assistant_id" | "graph_id" | "name" | "created_at" | "updated_at" | undefined;
1092
1092
  sort_order?: "asc" | "desc" | undefined;
1093
1093
  select?: string[] | undefined;
1094
1094
  }, {
1095
- metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1096
1095
  graph_id?: string | undefined;
1096
+ metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1097
1097
  limit?: number | undefined;
1098
1098
  offset?: number | undefined;
1099
- sort_by?: "created_at" | "updated_at" | "assistant_id" | "name" | "graph_id" | undefined;
1099
+ sort_by?: "assistant_id" | "graph_id" | "name" | "created_at" | "updated_at" | undefined;
1100
1100
  sort_order?: "asc" | "desc" | undefined;
1101
1101
  select?: string[] | undefined;
1102
1102
  }>;
@@ -1104,11 +1104,11 @@ export declare const AssistantCountRequest: z.ZodObject<{
1104
1104
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1105
1105
  graph_id: z.ZodOptional<z.ZodString>;
1106
1106
  }, "strip", z.ZodTypeAny, {
1107
- metadata?: Record<string, unknown> | undefined;
1108
1107
  graph_id?: string | undefined;
1109
- }, {
1110
1108
  metadata?: Record<string, unknown> | undefined;
1109
+ }, {
1111
1110
  graph_id?: string | undefined;
1111
+ metadata?: Record<string, unknown> | undefined;
1112
1112
  }>;
1113
1113
  export declare const ThreadCountRequest: z.ZodObject<{
1114
1114
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1132,14 +1132,16 @@ export declare const ThreadSearchRequest: z.ZodObject<{
1132
1132
  offset: z.ZodOptional<z.ZodNumber>;
1133
1133
  sort_by: z.ZodOptional<z.ZodEnum<["thread_id", "status", "created_at", "updated_at"]>>;
1134
1134
  sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1135
+ select: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1135
1136
  }, "strip", z.ZodTypeAny, {
1136
1137
  values?: Record<string, unknown> | undefined;
1137
1138
  status?: "error" | "idle" | "busy" | "interrupted" | undefined;
1138
1139
  metadata?: Record<string, unknown> | undefined;
1139
1140
  limit?: number | undefined;
1140
1141
  offset?: number | undefined;
1141
- sort_by?: "status" | "thread_id" | "created_at" | "updated_at" | undefined;
1142
+ sort_by?: "status" | "created_at" | "updated_at" | "thread_id" | undefined;
1142
1143
  sort_order?: "asc" | "desc" | undefined;
1144
+ select?: string[] | undefined;
1143
1145
  ids?: string[] | undefined;
1144
1146
  }, {
1145
1147
  values?: Record<string, unknown> | undefined;
@@ -1147,8 +1149,9 @@ export declare const ThreadSearchRequest: z.ZodObject<{
1147
1149
  metadata?: Record<string, unknown> | undefined;
1148
1150
  limit?: number | undefined;
1149
1151
  offset?: number | undefined;
1150
- sort_by?: "status" | "thread_id" | "created_at" | "updated_at" | undefined;
1152
+ sort_by?: "status" | "created_at" | "updated_at" | "thread_id" | undefined;
1151
1153
  sort_order?: "asc" | "desc" | undefined;
1154
+ select?: string[] | undefined;
1152
1155
  ids?: string[] | undefined;
1153
1156
  }>;
1154
1157
  export declare const Thread: z.ZodObject<{
@@ -1158,15 +1161,15 @@ export declare const Thread: z.ZodObject<{
1158
1161
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1159
1162
  status: z.ZodOptional<z.ZodEnum<["idle", "busy", "interrupted", "error"]>>;
1160
1163
  }, "strip", z.ZodTypeAny, {
1161
- thread_id: string;
1162
1164
  created_at: string;
1163
1165
  updated_at: string;
1166
+ thread_id: string;
1164
1167
  status?: "error" | "idle" | "busy" | "interrupted" | undefined;
1165
1168
  metadata?: Record<string, unknown> | undefined;
1166
1169
  }, {
1167
- thread_id: string;
1168
1170
  created_at: string;
1169
1171
  updated_at: string;
1172
+ thread_id: string;
1170
1173
  status?: "error" | "idle" | "busy" | "interrupted" | undefined;
1171
1174
  metadata?: Record<string, unknown> | undefined;
1172
1175
  }>;
@@ -1284,8 +1287,8 @@ export declare const ThreadCreate: z.ZodObject<{
1284
1287
  metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
1285
1288
  if_exists: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"raise">, z.ZodLiteral<"do_nothing">]>>;
1286
1289
  }, "strip", z.ZodTypeAny, {
1287
- thread_id?: string | undefined;
1288
1290
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
1291
+ thread_id?: string | undefined;
1289
1292
  if_exists?: "raise" | "do_nothing" | undefined;
1290
1293
  supersteps?: {
1291
1294
  updates: {
@@ -1305,8 +1308,8 @@ export declare const ThreadCreate: z.ZodObject<{
1305
1308
  }[];
1306
1309
  }[] | undefined;
1307
1310
  }, {
1308
- thread_id?: string | undefined;
1309
1311
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1312
+ thread_id?: string | undefined;
1310
1313
  if_exists?: "raise" | "do_nothing" | undefined;
1311
1314
  supersteps?: {
1312
1315
  updates: {
@@ -1342,19 +1345,19 @@ export declare const ThreadState: z.ZodObject<{
1342
1345
  parent_checkpoint_id: z.ZodString;
1343
1346
  }, "strip", z.ZodTypeAny, {
1344
1347
  values: z.objectOutputType<{}, z.ZodAny, "strip">[] | z.objectOutputType<{}, z.ZodAny, "strip">;
1348
+ created_at: string;
1345
1349
  metadata: {} & {
1346
1350
  [k: string]: any;
1347
1351
  };
1348
- created_at: string;
1349
1352
  checkpoint_id: string;
1350
1353
  next: string[];
1351
1354
  parent_checkpoint_id: string;
1352
1355
  }, {
1353
1356
  values: z.objectInputType<{}, z.ZodAny, "strip">[] | z.objectInputType<{}, z.ZodAny, "strip">;
1357
+ created_at: string;
1354
1358
  metadata: {} & {
1355
1359
  [k: string]: any;
1356
1360
  };
1357
- created_at: string;
1358
1361
  checkpoint_id: string;
1359
1362
  next: string[];
1360
1363
  parent_checkpoint_id: string;
package/dist/schemas.mjs CHANGED
@@ -342,6 +342,7 @@ export const ThreadSearchRequest = z
342
342
  .describe("Sort by field.")
343
343
  .optional(),
344
344
  sort_order: z.enum(["asc", "desc"]).describe("Sort order.").optional(),
345
+ select: z.array(z.string()).optional(),
345
346
  })
346
347
  .describe("Payload for listing threads.");
347
348
  export const Thread = z.object({
@@ -8,6 +8,8 @@ export type StorageEnv = {
8
8
  };
9
9
  };
10
10
  export type Metadata = Record<string, unknown>;
11
+ export type AssistantSelectField = "assistant_id" | "graph_id" | "name" | "description" | "config" | "context" | "created_at" | "updated_at" | "metadata" | "version";
12
+ export type ThreadSelectField = "thread_id" | "created_at" | "updated_at" | "metadata" | "config" | "context" | "status" | "values" | "interrupts";
11
13
  export type ThreadStatus = "idle" | "busy" | "interrupted" | "error";
12
14
  export type RunStatus = "pending" | "running" | "error" | "success" | "timeout" | "interrupted";
13
15
  export type StreamMode = "values" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "debug" | "tasks" | "checkpoints";
@@ -192,6 +194,7 @@ export interface ThreadsRepo {
192
194
  offset: number;
193
195
  sort_by?: "thread_id" | "status" | "created_at" | "updated_at";
194
196
  sort_order?: "asc" | "desc";
197
+ select?: ThreadSelectField[];
195
198
  }, auth: AuthContext | undefined): AsyncGenerator<{
196
199
  thread: Thread;
197
200
  total: number;
@@ -247,7 +250,7 @@ export interface AssistantsRepo {
247
250
  offset: number;
248
251
  sort_by?: "assistant_id" | "created_at" | "updated_at" | "name" | "graph_id";
249
252
  sort_order?: "asc" | "desc";
250
- select?: string[];
253
+ select?: AssistantSelectField[];
251
254
  }, auth: AuthContext | undefined): AsyncGenerator<{
252
255
  assistant: Assistant;
253
256
  total: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -64,7 +64,7 @@
64
64
  "@babel/code-frame": "^7.26.2",
65
65
  "@hono/node-server": "^1.12.0",
66
66
  "@hono/zod-validator": "^0.2.2",
67
- "@langchain/langgraph-ui": "0.0.69",
67
+ "@langchain/langgraph-ui": "0.0.70",
68
68
  "@types/json-schema": "^7.0.15",
69
69
  "@typescript/vfs": "^1.6.0",
70
70
  "dedent": "^1.5.3",
@@ -98,7 +98,7 @@
98
98
  "@langchain/core": "^0.3.59",
99
99
  "@langchain/langgraph": "0.4.9",
100
100
  "@langchain/langgraph-checkpoint": "0.1.1",
101
- "@langchain/langgraph-sdk": "0.1.7",
101
+ "@langchain/langgraph-sdk": "0.1.10",
102
102
  "@types/babel__code-frame": "^7.0.6",
103
103
  "@types/node": "^18.15.11",
104
104
  "@types/react": "^19.0.8",