From 7ae47396305f00d11350fecee3a1c42bb6b8025a Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Mon, 17 Mar 2025 18:07:14 +0100 Subject: [PATCH] Make options optional --- libs/sdk-js/src/client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 4fef0bc71..00f340204 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -643,7 +643,7 @@ export class ThreadsClient< */ async bulkUpdateState( supersteps: Array<{ updates: Array<{ values: unknown; asNode: string }> }>, - options: { + options?: { threadId?: string; metadata?: Metadata; ifExists?: OnConflictBehavior; @@ -658,9 +658,9 @@ export class ThreadsClient< as_node: u.asNode, })), })), - thread_id: options.threadId, - metadata: options.metadata, - if_exists: options.ifExists, + thread_id: options?.threadId, + metadata: options?.metadata, + if_exists: options?.ifExists, }, }); }