From 9ff57159614df9f19cebf471b84288a493d9100e Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Mon, 7 Oct 2024 17:24:29 +0200 Subject: [PATCH 1/2] feat(sdk-js): add `checkpoint` arg in `getHistory` --- libs/sdk-js/src/client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 3f2d99edd..228f36282 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -611,6 +611,7 @@ export class ThreadsClient extends BaseClient { options?: { limit?: number; before?: Config; + checkpoint?: Checkpoint; metadata?: Metadata; }, ): Promise[]> { @@ -622,6 +623,7 @@ export class ThreadsClient extends BaseClient { limit: options?.limit ?? 10, before: options?.before, metadata: options?.metadata, + checkpoint: options?.checkpoint, }, }, ); From 05f645b87c58cc6d74091490c7923d32ebc791f1 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Mon, 7 Oct 2024 17:47:36 +0200 Subject: [PATCH 2/2] Make types more explicit --- libs/sdk-js/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 228f36282..05a369191 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -611,7 +611,7 @@ export class ThreadsClient extends BaseClient { options?: { limit?: number; before?: Config; - checkpoint?: Checkpoint; + checkpoint?: Partial>; metadata?: Metadata; }, ): Promise[]> {