-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrecording.ts
39 lines (31 loc) · 991 Bytes
/
recording.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
export class Recording extends APIResource {
/**
* Session Recording
*/
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<RecordingRetrieveResponse> {
return this._client.get(`/v1/sessions/${id}/recording`, options);
}
}
export interface SessionRecording {
/**
* See
* [rrweb documentation](https://github.com/rrweb-io/rrweb/blob/master/docs/recipes/dive-into-event.md).
*/
data: Record<string, unknown>;
sessionId: string;
/**
* milliseconds that have elapsed since the UNIX epoch
*/
timestamp: number;
type: number;
}
export type RecordingRetrieveResponse = Array<SessionRecording>;
export declare namespace Recording {
export {
type SessionRecording as SessionRecording,
type RecordingRetrieveResponse as RecordingRetrieveResponse,
};
}