Skip to content

Commit

Permalink
feat: Updated sdks/ts/src/managers/session.ts (#245)
Browse files Browse the repository at this point in the history
Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
  • Loading branch information
sweep-ai[bot] authored Apr 18, 2024
1 parent 54a9028 commit 4a1ac5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdks/ts/src/managers/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Session> {
try {
return this.apiClient.default.getSession({ sessionId });
Expand Down

0 comments on commit 4a1ac5a

Please sign in to comment.