@langchain/langgraph-sdk 0.0.98 → 0.0.100

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,17 @@
1
1
  # @langchain/langgraph-sdk
2
2
 
3
+ ## 0.0.100
4
+
5
+ ### Patch Changes
6
+
7
+ - a0efb98: Rename `interrupt_id` to `id`
8
+
9
+ ## 0.0.99
10
+
11
+ ### Patch Changes
12
+
13
+ - 768e2e2: feat(sdk): expose interrupt_id in types
14
+
3
15
  ## 0.0.98
4
16
 
5
17
  ### Patch Changes
package/dist/schema.d.ts CHANGED
@@ -106,9 +106,28 @@ export interface AssistantGraph {
106
106
  * An interrupt thrown inside a thread.
107
107
  */
108
108
  export interface Interrupt<TValue = unknown> {
109
+ /**
110
+ * The ID of the interrupt.
111
+ */
112
+ id?: string;
113
+ /**
114
+ * The value of the interrupt.
115
+ */
109
116
  value?: TValue;
110
- when: "during" | (string & {});
117
+ /**
118
+ * Will be deprecated in the future.
119
+ * @deprecated Will be removed in the future.
120
+ */
121
+ when?: "during" | (string & {});
122
+ /**
123
+ * Whether the interrupt can be resumed.
124
+ * @deprecated Will be removed in the future.
125
+ */
111
126
  resumable?: boolean;
127
+ /**
128
+ * The namespace of the interrupt.
129
+ * @deprecated Replaced by `interrupt_id`
130
+ */
112
131
  ns?: string[];
113
132
  }
114
133
  export interface Thread<ValuesType = DefaultValues> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.98",
3
+ "version": "0.0.100",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "scripts": {