@recallai/desktop-sdk 2025.2.27-c7121a5c9a53c5cae66c4e6acc8fe486ea26ecf9 → 2025.3.5-6f8367f41cda24cbb8d27696267f70f2170ce8c6
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/desktop_sdk_macos.framework.tar +0 -0
- package/index.d.ts +37 -31
- package/package.json +1 -1
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1,71 +1,77 @@
|
|
|
1
1
|
declare module '@recallai/desktop-sdk' {
|
|
2
2
|
export function init(config: RecallAiSdkConfig): void;
|
|
3
3
|
export function addEventListener(
|
|
4
|
-
type:
|
|
4
|
+
type: 'recording-started' | 'recording-ended' | 'upload-progress' | 'meeting-detected' |
|
|
5
|
+
'meeting-updated' | 'meeting-closed' | 'sdk-state-change' | 'error' |
|
|
6
|
+
'media-capture-status' | 'permissions-granted',
|
|
5
7
|
listener: (event: RecallAiSdkEvent) => void
|
|
6
8
|
): void;
|
|
7
9
|
export function startRecording(config: StartRecordingConfig): void;
|
|
8
10
|
export function stopRecording(config: StopRecordingConfig): void;
|
|
9
11
|
export function uploadRecording(config: UploadRecordingConfig): void;
|
|
10
|
-
|
|
11
|
-
interface RecallAiSdkConfig {
|
|
12
|
+
export interface RecallAiSdkConfig {
|
|
12
13
|
api_url: string;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
interface StartRecordingConfig {
|
|
15
|
+
export interface StartRecordingConfig {
|
|
16
16
|
windowId: string;
|
|
17
17
|
uploadToken: string;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
interface StopRecordingConfig {
|
|
19
|
+
export interface StopRecordingConfig {
|
|
21
20
|
windowId: string;
|
|
22
21
|
}
|
|
23
|
-
|
|
24
|
-
interface UploadRecordingConfig {
|
|
22
|
+
export interface UploadRecordingConfig {
|
|
25
23
|
windowId: string;
|
|
26
24
|
}
|
|
27
|
-
|
|
28
|
-
type RecallAiSdkEvent =
|
|
25
|
+
export type RecallAiSdkEvent =
|
|
29
26
|
| RecordingStartEvent
|
|
30
27
|
| RecordingStopEvent
|
|
31
28
|
| UploadProgressEvent
|
|
32
|
-
| RecordingEndedEvent
|
|
33
29
|
| MeetingDetectedEvent
|
|
30
|
+
| MeetingUpdatedEvent
|
|
34
31
|
| MeetingClosedEvent
|
|
35
|
-
| SdkStateChangeEvent
|
|
32
|
+
| SdkStateChangeEvent
|
|
33
|
+
| ErrorEvent
|
|
34
|
+
| MediaCaptureStatusEvent
|
|
35
|
+
| PermissionsGrantedEvent;
|
|
36
36
|
|
|
37
|
-
interface
|
|
38
|
-
type: 'upload-progress';
|
|
37
|
+
export interface RecordingStartEvent {
|
|
39
38
|
window: { id: string };
|
|
40
|
-
progress: number;
|
|
41
39
|
}
|
|
42
|
-
|
|
43
|
-
interface RecordingEndedEvent {
|
|
44
|
-
type: 'recording-started';
|
|
40
|
+
export interface RecordingStopEvent {
|
|
45
41
|
window: { id: string };
|
|
46
42
|
}
|
|
47
|
-
|
|
48
|
-
interface RecordingEndedEvent {
|
|
49
|
-
type: 'recording-ended';
|
|
43
|
+
export interface UploadProgressEvent {
|
|
50
44
|
window: { id: string };
|
|
45
|
+
progress: number;
|
|
51
46
|
}
|
|
52
|
-
|
|
53
|
-
interface MeetingDetectedEvent {
|
|
54
|
-
type: 'meeting-detected';
|
|
47
|
+
export interface MeetingDetectedEvent {
|
|
55
48
|
window: { id: string; url: string; title: string };
|
|
56
49
|
}
|
|
57
|
-
|
|
58
|
-
interface MeetingClosedEvent {
|
|
59
|
-
type: 'meeting-closed';
|
|
50
|
+
export interface MeetingUpdatedEvent {
|
|
60
51
|
window: { id: string };
|
|
52
|
+
title: string;
|
|
61
53
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
export interface MeetingClosedEvent {
|
|
55
|
+
window: { id: string };
|
|
56
|
+
}
|
|
57
|
+
export interface SdkStateChangeEvent {
|
|
65
58
|
sdk: {
|
|
66
59
|
state: {
|
|
67
60
|
code: 'recording' | 'idle' | 'paused';
|
|
68
61
|
};
|
|
69
62
|
};
|
|
70
63
|
}
|
|
64
|
+
export interface MediaCaptureStatusEvent {
|
|
65
|
+
window: { id: string };
|
|
66
|
+
type: 'video' | 'audio';
|
|
67
|
+
capturing: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface PermissionsGrantedEvent {
|
|
70
|
+
}
|
|
71
|
+
export interface ErrorEvent {
|
|
72
|
+
error: {
|
|
73
|
+
type: string;
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
71
77
|
}
|
package/package.json
CHANGED