@recallai/desktop-sdk 2025.3.21-bac17c323e1c541c8e37a11aa29e369f59b0dc28 → 2025.3.24-281fab31aa87043b2fbe0ed81ae984c326e4d33e
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_exe +0 -0
- package/desktop_sdk_macos_frameworks.tar +0 -0
- package/index.d.ts +13 -0
- package/index.js +5 -0
- package/package.json +1 -1
package/desktop_sdk_macos_exe
CHANGED
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -24,10 +24,16 @@ declare module '@recallai/desktop-sdk' {
|
|
|
24
24
|
'error': ErrorEvent;
|
|
25
25
|
'media-capture-status': MediaCaptureStatusEvent;
|
|
26
26
|
'permissions-granted': PermissionsGrantedEvent;
|
|
27
|
+
'permission-status': PermissionStatusEvent;
|
|
27
28
|
'realtime-event': RealtimeEvent;
|
|
28
29
|
'shutdown': ShutdownEvent;
|
|
29
30
|
};
|
|
30
31
|
|
|
32
|
+
export type Permission =
|
|
33
|
+
| 'accessibility'
|
|
34
|
+
| 'screen-capture'
|
|
35
|
+
| 'microphone';
|
|
36
|
+
|
|
31
37
|
export function addEventListener<T extends keyof EventTypeToPayloadMap>(
|
|
32
38
|
type: T,
|
|
33
39
|
listener: (event: EventTypeToPayloadMap[T]) => void
|
|
@@ -40,6 +46,7 @@ declare module '@recallai/desktop-sdk' {
|
|
|
40
46
|
export function stopRecording(config: StopRecordingConfig): Promise<null>;
|
|
41
47
|
export function uploadRecording(config: UploadRecordingConfig): Promise<null>;
|
|
42
48
|
export function prepareDesktopAudioRecording(): Promise<string>;
|
|
49
|
+
export function requestPermission(permission: Permission): Promise<null>;
|
|
43
50
|
export function shutdown(): Promise<null>;
|
|
44
51
|
|
|
45
52
|
///
|
|
@@ -53,6 +60,7 @@ declare module '@recallai/desktop-sdk' {
|
|
|
53
60
|
|
|
54
61
|
export interface RecallAiSdkConfig {
|
|
55
62
|
api_url: string;
|
|
63
|
+
acquirePermissionsOnStartup?: Permission[]
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
export interface StartRecordingConfig {
|
|
@@ -119,6 +127,11 @@ declare module '@recallai/desktop-sdk' {
|
|
|
119
127
|
|
|
120
128
|
export interface PermissionsGrantedEvent {}
|
|
121
129
|
|
|
130
|
+
export interface PermissionStatusEvent {
|
|
131
|
+
permission: Permission;
|
|
132
|
+
granted: bool;
|
|
133
|
+
}
|
|
134
|
+
|
|
122
135
|
export interface ErrorEvent {
|
|
123
136
|
window?: RecallAiSdkWindow;
|
|
124
137
|
type: string;
|
package/index.js
CHANGED
|
@@ -215,6 +215,10 @@ function prepareDesktopAudioRecording() {
|
|
|
215
215
|
return sendCommand("prepareDesktopAudioRecording");
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
function requestPermission(permission) {
|
|
219
|
+
return sendCommand("requestPermission", { permission });
|
|
220
|
+
}
|
|
221
|
+
|
|
218
222
|
function addEventListener(type, callback) {
|
|
219
223
|
listeners.push({ type, callback });
|
|
220
224
|
}
|
|
@@ -229,4 +233,5 @@ module.exports = {
|
|
|
229
233
|
stopRecording,
|
|
230
234
|
uploadRecording,
|
|
231
235
|
prepareDesktopAudioRecording,
|
|
236
|
+
requestPermission
|
|
232
237
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recallai/desktop-sdk",
|
|
3
|
-
"version": "2025.03.
|
|
3
|
+
"version": "2025.03.24-281fab31aa87043b2fbe0ed81ae984c326e4d33e",
|
|
4
4
|
"description": "Recall Desktop SDK (Alpha)",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|