@nivaro/sdk 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -493,6 +493,7 @@ interface SessionRecording {
|
|
|
493
493
|
declare function sessionRecordingEnabled(): Command<{
|
|
494
494
|
data: {
|
|
495
495
|
enabled: boolean;
|
|
496
|
+
error_replay?: boolean;
|
|
496
497
|
};
|
|
497
498
|
}>;
|
|
498
499
|
/**
|
|
@@ -501,7 +502,7 @@ declare function sessionRecordingEnabled(): Command<{
|
|
|
501
502
|
* developer's laptop. The server falls back to the request's referer when a
|
|
502
503
|
* caller omits it.
|
|
503
504
|
*/
|
|
504
|
-
declare function startSessionRecording(app?: string, origin?: string): Command<{
|
|
505
|
+
declare function startSessionRecording(app?: string, origin?: string, clip?: boolean): Command<{
|
|
505
506
|
data: {
|
|
506
507
|
id: UUID;
|
|
507
508
|
};
|
package/dist/index.js
CHANGED
|
@@ -168,11 +168,12 @@ function readPipelineReplay(templateId, days) {
|
|
|
168
168
|
function sessionRecordingEnabled() {
|
|
169
169
|
return cmd("GET", "/session-recordings/enabled");
|
|
170
170
|
}
|
|
171
|
-
function startSessionRecording(app, origin) {
|
|
171
|
+
function startSessionRecording(app, origin, clip) {
|
|
172
172
|
const body = {};
|
|
173
173
|
if (app) body.app = app;
|
|
174
174
|
const resolved = origin ?? (typeof window !== "undefined" ? window.location.origin : void 0);
|
|
175
175
|
if (resolved) body.origin = resolved;
|
|
176
|
+
if (clip) body.clip = true;
|
|
176
177
|
return cmd("POST", "/session-recordings/start", void 0, body);
|
|
177
178
|
}
|
|
178
179
|
function appendSessionRecordingEvents(id, seq, events) {
|