diff --git a/libs/sdk-js/src/types.ts b/libs/sdk-js/src/types.ts index 24f44d1f7..0073c5962 100644 --- a/libs/sdk-js/src/types.ts +++ b/libs/sdk-js/src/types.ts @@ -29,10 +29,19 @@ export interface Send { } export interface Command { + /** + * An object to update the thread state with. + */ update?: Record; + /** + * The value to return from an `interrupt` function call. + */ resume?: unknown; + /** + * A single, or array of `Send` commands to trigger nodes. + */ send?: Send | Send[]; }