From 4a1ac5ae37660dba7c8fdcd5ae44dcb0ed7cde55 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 08:21:34 +0530 Subject: [PATCH] feat: Updated sdks/ts/src/managers/session.ts (#245) Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com> --- sdks/ts/src/managers/session.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdks/ts/src/managers/session.ts b/sdks/ts/src/managers/session.ts index 8e3cdc8fc..1e14c4fe3 100644 --- a/sdks/ts/src/managers/session.ts +++ b/sdks/ts/src/managers/session.ts @@ -19,6 +19,11 @@ export interface CreateSessionPayload { } export class SessionsManager extends BaseManager { + /** + * Retrieves a session by its ID. + * @param sessionId The unique identifier of the session. + * @returns A promise that resolves with the session object. + */ async get(sessionId: string): Promise { try { return this.apiClient.default.getSession({ sessionId });