Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added getSessionReplay implementation that calls this._interface.getS…
…essionReplay() and maps the snake_case API response to camelCase ADminSessionReplay.
  • Loading branch information
madster456 committed Mar 27, 2026
commit 67d847f477c42b1425d45e3ab9f25786c0585690
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { PushedConfigSource } from "../../projects";
import { useAsyncCache } from "./common"; // THIS_LINE_PLATFORM react-like

type BranchConfigSourceApi = yup.InferType<typeof branchConfigSourceSchema>;

/**
* Converts a PushedConfigSource (SDK camelCase) to BranchConfigSourceApi (API snake_case).
*/
Expand Down Expand Up @@ -1133,6 +1132,22 @@ export class _StackAdminAppImplIncomplete<HasTokenStore extends boolean, Project
};
}

async getSessionReplay(sessionReplayId: string): Promise<AdminSessionReplay> {
const response = await this._interface.getSessionReplay(sessionReplayId);
return {
id: response.id,
projectUser: {
id: response.project_user.id,
displayName: response.project_user.display_name,
primaryEmail: response.project_user.primary_email,
},
startedAt: new Date(response.started_at_millis),
lastEventAt: new Date(response.last_event_at_millis),
chunkCount: response.chunk_count,
eventCount: response.event_count,
};
}

async listSessionReplayChunks(sessionReplayId: string, options?: ListSessionReplayChunksOptions): Promise<ListSessionReplayChunksResult> {
const response = await this._interface.listSessionReplayChunks(sessionReplayId, {
cursor: options?.cursor,
Expand Down