@recallai/desktop-sdk 2024.11.7-a80a8418ef19e84005dcc2e575579341d0c618ba → 2024.11.12-60ccbaec36ec091a04b58e25f100b3abba507ccc
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.
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,71 @@
|
|
|
1
1
|
declare module '@recallai/desktop-sdk' {
|
|
2
2
|
export function init(config: RecallAiSdkConfig): void;
|
|
3
|
-
export function addEventListener(
|
|
4
|
-
|
|
3
|
+
export function addEventListener(
|
|
4
|
+
type: RecallAiSdkEvent['type'],
|
|
5
|
+
listener: (event: RecallAiSdkEvent) => void
|
|
6
|
+
): void;
|
|
7
|
+
export function startRecording(config: StartRecordingConfig): void;
|
|
8
|
+
export function stopRecording(config: StopRecordingConfig): void;
|
|
9
|
+
export function uploadRecording(config: UploadRecordingConfig): void;
|
|
5
10
|
|
|
6
11
|
interface RecallAiSdkConfig {
|
|
7
|
-
|
|
8
|
-
recording_config: RecordingConfig
|
|
12
|
+
api_url: string;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
interface
|
|
12
|
-
|
|
15
|
+
interface StartRecordingConfig {
|
|
16
|
+
windowId: string;
|
|
17
|
+
uploadToken: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface StopRecordingConfig {
|
|
21
|
+
windowId: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface UploadRecordingConfig {
|
|
25
|
+
windowId: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type RecallAiSdkEvent =
|
|
29
|
+
| RecordingStartEvent
|
|
30
|
+
| RecordingStopEvent
|
|
31
|
+
| UploadProgressEvent
|
|
32
|
+
| RecordingEndedEvent
|
|
33
|
+
| MeetingDetectedEvent
|
|
34
|
+
| MeetingClosedEvent
|
|
35
|
+
| SdkStateChangeEvent;
|
|
36
|
+
|
|
37
|
+
interface UploadProgressEvent {
|
|
38
|
+
type: 'upload-progress';
|
|
39
|
+
window: { id: string };
|
|
40
|
+
progress: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface RecordingEndedEvent {
|
|
44
|
+
type: 'recording-started';
|
|
45
|
+
window: { id: string };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface RecordingEndedEvent {
|
|
49
|
+
type: 'recording-ended';
|
|
50
|
+
window: { id: string };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface MeetingDetectedEvent {
|
|
54
|
+
type: 'meeting-detected';
|
|
55
|
+
window: { id: string; url: string; title: string };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface MeetingClosedEvent {
|
|
59
|
+
type: 'meeting-closed';
|
|
60
|
+
window: { id: string };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface SdkStateChangeEvent {
|
|
64
|
+
type: 'sdk-state-change';
|
|
65
|
+
sdk: {
|
|
66
|
+
state: {
|
|
67
|
+
code: 'recording' | 'idle' | 'paused';
|
|
68
|
+
};
|
|
69
|
+
};
|
|
13
70
|
}
|
|
14
71
|
}
|
package/index.js
CHANGED
|
@@ -44,6 +44,10 @@ function stopRecording({ windowId }) {
|
|
|
44
44
|
addon.stop_recording(windowId);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
function uploadRecording({ windowId }) {
|
|
48
|
+
addon.upload_recording(windowId);
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
function addEventListener(type, callback) {
|
|
48
52
|
addon.callback((eventJson) => {
|
|
49
53
|
let obj = JSON.parse(eventJson);
|
|
@@ -57,5 +61,6 @@ module.exports = {
|
|
|
57
61
|
toggle,
|
|
58
62
|
addEventListener,
|
|
59
63
|
startRecording,
|
|
60
|
-
stopRecording
|
|
64
|
+
stopRecording,
|
|
65
|
+
uploadRecording
|
|
61
66
|
};
|
package/package.json
CHANGED
|
Binary file
|