@recallai/desktop-sdk 2025.3.5-6f8367f41cda24cbb8d27696267f70f2170ce8c6 → 2025.3.6-99ee4c63083d29e18674e5cefba29ecf5f82e371
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,41 @@
|
|
|
1
1
|
declare module '@recallai/desktop-sdk' {
|
|
2
2
|
export function init(config: RecallAiSdkConfig): void;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
|
|
4
|
+
export type RecallAiSdkEvent =
|
|
5
|
+
| RecordingStartEvent
|
|
6
|
+
| RecordingStopEvent
|
|
7
|
+
| UploadProgressEvent
|
|
8
|
+
| MeetingDetectedEvent
|
|
9
|
+
| MeetingUpdatedEvent
|
|
10
|
+
| MeetingClosedEvent
|
|
11
|
+
| SdkStateChangeEvent
|
|
12
|
+
| ErrorEvent
|
|
13
|
+
| MediaCaptureStatusEvent
|
|
14
|
+
| PermissionsGrantedEvent;
|
|
15
|
+
|
|
16
|
+
export type EventTypeToPayloadMap = {
|
|
17
|
+
'recording-started': RecordingStartEvent;
|
|
18
|
+
'recording-ended': RecordingStopEvent;
|
|
19
|
+
'upload-progress': UploadProgressEvent;
|
|
20
|
+
'meeting-detected': MeetingDetectedEvent;
|
|
21
|
+
'meeting-updated': MeetingUpdatedEvent;
|
|
22
|
+
'meeting-closed': MeetingClosedEvent;
|
|
23
|
+
'sdk-state-change': SdkStateChangeEvent;
|
|
24
|
+
'error': ErrorEvent;
|
|
25
|
+
'media-capture-status': MediaCaptureStatusEvent;
|
|
26
|
+
'permissions-granted': PermissionsGrantedEvent;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export function addEventListener<T extends keyof EventTypeToPayloadMap>(
|
|
30
|
+
type: T,
|
|
31
|
+
listener: (event: EventTypeToPayloadMap[T]) => void
|
|
8
32
|
): void;
|
|
33
|
+
|
|
9
34
|
export function startRecording(config: StartRecordingConfig): void;
|
|
10
35
|
export function stopRecording(config: StopRecordingConfig): void;
|
|
11
36
|
export function uploadRecording(config: UploadRecordingConfig): void;
|
|
37
|
+
export function prepareDesktopAudioRecording(): string;
|
|
38
|
+
|
|
12
39
|
export interface RecallAiSdkConfig {
|
|
13
40
|
api_url: string;
|
|
14
41
|
}
|
|
@@ -22,17 +49,6 @@ declare module '@recallai/desktop-sdk' {
|
|
|
22
49
|
export interface UploadRecordingConfig {
|
|
23
50
|
windowId: string;
|
|
24
51
|
}
|
|
25
|
-
export type RecallAiSdkEvent =
|
|
26
|
-
| RecordingStartEvent
|
|
27
|
-
| RecordingStopEvent
|
|
28
|
-
| UploadProgressEvent
|
|
29
|
-
| MeetingDetectedEvent
|
|
30
|
-
| MeetingUpdatedEvent
|
|
31
|
-
| MeetingClosedEvent
|
|
32
|
-
| SdkStateChangeEvent
|
|
33
|
-
| ErrorEvent
|
|
34
|
-
| MediaCaptureStatusEvent
|
|
35
|
-
| PermissionsGrantedEvent;
|
|
36
52
|
|
|
37
53
|
export interface RecordingStartEvent {
|
|
38
54
|
window: { id: string };
|
package/index.js
CHANGED
|
@@ -49,6 +49,10 @@ function uploadRecording({ windowId }) {
|
|
|
49
49
|
addon.upload_recording(windowId);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
function prepareDesktopAudioRecording() {
|
|
53
|
+
return addon.prepare_desktop_audio_recording();
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
function addEventListener(type, callback) {
|
|
53
57
|
addon.callback((eventJson) => {
|
|
54
58
|
let obj = JSON.parse(eventJson);
|
|
@@ -62,5 +66,6 @@ module.exports = {
|
|
|
62
66
|
addEventListener,
|
|
63
67
|
startRecording,
|
|
64
68
|
stopRecording,
|
|
65
|
-
uploadRecording
|
|
69
|
+
uploadRecording,
|
|
70
|
+
prepareDesktopAudioRecording
|
|
66
71
|
};
|
package/package.json
CHANGED
|
Binary file
|