@recallai/desktop-sdk 2.0.46 → 2.0.48

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/CHANGELOG.md CHANGED
@@ -1,3 +1,50 @@
1
+ ### 2.0.48 [patch] (MacOS+Windows) - 2026-12-03
2
+ - On macOS 27.3 and later, requesting `accessibility` opens System & App Protection Override page.
3
+ - On macOS 27.3 and later, the SDK reports `accessibiity` as granted only if all installed meeting platforms and the default browser have accessibility granted
4
+ - Non-requestable permissions `accessibility-teams`, `accessibility-zoom`, and `accessibility-browser` were added to reflect whether or not accessibility has been granted to each meeting platform. Relevant for macOS 27.3 and later
5
+ - On macOS 27.3 and later, when starting a non-Raw-Media recording, the SDK verifies `accessibility` has been granted for the respective meeting platform
6
+ - Windows now remembers `browser-automation` and `teams-automation` grants for each host app across SDK restarts.
7
+ - Fixes for Zoom Raw Media on Windows failing to start when the SDK was not restarted after granting the `zoom-raw-media` permission
8
+ - Improved diagnostics for Zoom Raw Media setup, fallback to local recording, and recording failures on Windows.
9
+ - Fix for Google Meet Raw Media failing to start on macOS when the browser has more than 16 windows or 128 tabs.
10
+ - Fix for slow Google Meet Raw Media startup on Windows when the meeting URL includes a query string such as `?authuser=0`.
11
+ - Google Meet invisible recording on macOS can capture the local participant’s screenshare and shared tab audio when the recording backend supports it.
12
+ - Fix for the SDK detecting a new Teams Web meeting when a participant starts sharing their screen on macOS.
13
+
14
+ ### 2.0.47 [patch] (MacOS+Windows) - 2026-11-30
15
+ - Support for Zoom Raw Media on Windows with the `zoom-raw-media` permission
16
+ - Support for Teams Raw Media for Teams Desktop on Windows with the `teams-automation` permission
17
+ - Support for PAC scripts and automatically detected system proxies on macOS and Windows
18
+ - Support for adapting to Google Meet, Teams, and Zoom UI changes without an SDK update on macOS
19
+ - Proxy environment variables now also apply to recording uploads
20
+ - Google Meet Raw Media on macOS no longer requires screen capture, system audio, or microphone permissions
21
+ - Improved Google Meet Raw Media reliability on macOS during brief network or CPU stalls
22
+ - Fix for leaving a Google Meet call being reported as a Raw Media error on macOS
23
+ - Fix for Google Meet Raw Media when the Meet tab is in the background with picture-in-picture open on macOS
24
+ - Fix for Google Meet Raw Media falling back to local recording in Microsoft Edge 158 and later on Windows
25
+ - Retry transient failures when starting Raw Media on macOS and Windows
26
+ - Reduced CPU usage of Raw Media encryption on Apple Silicon Macs
27
+ - Fix for the remote participant being identified as the local user while presenting in Google Meet on macOS and Windows
28
+ - Fix for Google Meet meetings splitting into new meetings when switching back to a background Meet tab on Windows
29
+ - Fix for black video in Google Meet recordings in Chrome 158 and later on Windows
30
+ - Fix for Teams Desktop meeting detection in Serbian, Bosnian, Azerbaijani, Filipino, and Valencian on Windows
31
+ - Fix for remote participant mute detection for Teams on macOS, and for Teams Desktop in Japanese and Romanian on Windows
32
+ - Fix for active speaker detection in Teams compact view and picture-in-picture in non-English languages on macOS
33
+ - Fix for phantom Zoom Desktop meetings when the account shows a custom disclaimer before joining on macOS
34
+ - Fix for Zoom Desktop minimal view detection in non-English languages on macOS
35
+ - Fix for a possible crash when excluding Zoom windows from screenshare capture on macOS
36
+ - Fix for the Zoom Desktop waiting room being detected as a meeting on Windows
37
+ - Fix for Zoom Desktop meetings ending and being detected again when admitted from the waiting room on Windows
38
+ - Fix for Zoom Desktop window shares not being captured after the first share on Windows
39
+ - Fix for missing Zoom Desktop 7.2 meeting titles on Windows
40
+ - Fix for Google Meet compliance messages failing to send in non-English meetings with continuous chat on macOS and Windows
41
+ - Fix for Google Meet compliance messages sent from picture-in-picture staying as drafts on macOS
42
+ - Fix for Teams compliance message text landing outside the chat when the meeting window loses focus on macOS
43
+ - Fix for compliance messages failing to send with Cyrillic, Greek, or Hebrew keyboard layouts on Windows
44
+ - Fix for Teams Desktop compliance messages failing to send in narrow meeting windows on Windows
45
+ - Fix for Zoom Desktop compliance messages losing blank lines or being left unsent on Windows
46
+ - Improved logging for meeting detection on macOS and Teams Desktop compliance messages on Windows
47
+
1
48
  ### 2.0.46 [patch] (MacOS+Windows) - 2026-11-22
2
49
  - Full support for Google Meet Raw Media on Windows
3
50
  - Zoom Raw Media on macOS no longer requires macOS keychain prompts
package/index.d.ts CHANGED
@@ -58,10 +58,10 @@ export type EventTypeToPayloadMap = {
58
58
  /**
59
59
  * A permission understood by {@link requestPermission}.
60
60
  *
61
- * macOS requires the corresponding system consent flows. Windows reports permission requests as granted,
62
- * but `browser-automation` must still be requested to enable Google Meet Raw Media. On Windows it resets
63
- * whenever the SDK process exits, including automatic restarts after an unexpected exit, so request it
64
- * again after each start.
61
+ * macOS requires the corresponding system consent flows. Windows reports ordinary permission requests as granted,
62
+ * but `browser-automation` and `teams-automation` must still be requested to enable Google Meet
63
+ * and Teams Raw Media respectively. On Windows, an explicit request is cached for the host
64
+ * application and restored when the SDK process restarts.
65
65
  *
66
66
  * `teams-automation`, `browser-automation`, and `zoom-raw-media` enable Raw Media and must be requested from an
67
67
  * explicit user action before a meeting. They cannot be included in
@@ -72,7 +72,7 @@ export type EventTypeToPayloadMap = {
72
72
  */
73
73
  export type Permission =
74
74
  /** Detect and interact with supported meeting application windows on macOS. */
75
- 'accessibility'
75
+ 'accessibility' | 'accessibility-teams' | 'accessibility-zoom' | 'accessibility-browser'
76
76
  /** Capture a meeting window's video and system audio on macOS. */
77
77
  | 'screen-capture'
78
78
  /** Capture the local microphone on macOS. */
@@ -81,14 +81,11 @@ export type Permission =
81
81
  | 'system-audio'
82
82
  /** Read local meeting metadata used by supported legacy detection paths. */
83
83
  | 'full-disk-access'
84
- /** Prepare Microsoft Teams Desktop for Raw Media capture. macOS only. */
84
+ /** Enable Teams Raw Media. On macOS, also prepare the Teams application. */
85
85
  | 'teams-automation'
86
- /**
87
- * Enable Google Meet Raw Media. On macOS, also prepare the supported default Chromium browser.
88
- * On Windows, resets whenever the SDK process exits; request it again after each start.
89
- */
86
+ /** Enable Google Meet Raw Media. On macOS, also prepare the supported default Chromium browser. */
90
87
  | 'browser-automation'
91
- /** Configure Zoom for Raw Media. macOS only. Zoom may restart. */
88
+ /** Configure Zoom for Raw Media. On Windows, requires ARM64 or x64 Zoom with a supported proxy function. Zoom may restart. */
92
89
  | 'zoom-raw-media';
93
90
  /** Identifies a meeting or prepared desktop-audio source known to the SDK. */
94
91
  export interface RecallAiSdkWindow {
@@ -123,8 +120,11 @@ export interface RecallAiSdkConfig {
123
120
  * macOS permissions to request while initializing. Do not use this option for Raw Media
124
121
  * automation permissions; request those separately from an explicit user interaction.
125
122
  * Ignored on Windows, where these permission flows are unnecessary.
123
+ * The macOS default includes accessibility, microphone, and screen capture. Pass an empty
124
+ * array to handle requests manually. On macOS 27.3+, including accessibility opens
125
+ * System & App Protection Override if an installed platform still needs access.
126
126
  */
127
- acquirePermissionsOnStartup?: Exclude<Permission, 'teams-automation' | 'browser-automation' | 'zoom-raw-media'>[];
127
+ acquirePermissionsOnStartup?: Exclude<Permission, 'accessibility-teams' | 'accessibility-zoom' | 'accessibility-browser' | 'teams-automation' | 'browser-automation' | 'zoom-raw-media'>[];
128
128
  [key: string]: any;
129
129
  }
130
130
  /** Options used to start recording a detected meeting or prepared desktop-audio source. */
@@ -277,7 +277,13 @@ export interface PermissionsGrantedEvent {
277
277
  }
278
278
  /** Payload reporting the state of a Desktop Recording SDK permission. */
279
279
  export interface PermissionStatusEvent {
280
- /** Permission whose state was checked or changed. */
280
+ /**
281
+ * The three platform accessibility names are observable through this event. Request
282
+ * `accessibility` to guide the user through setup. On macOS 27.3+, each installed
283
+ * platform needs “Allow Anytime” and `accessibility-browser` tracks the default browser.
284
+ * The aggregate `accessibility` status is granted when all installed platforms qualify.
285
+ * On earlier macOS releases and Windows, the three platform statuses report granted.
286
+ */
281
287
  permission: Permission;
282
288
  /** Convenience boolean equivalent to `status === "granted"`. */
283
289
  granted: boolean;
@@ -408,8 +414,8 @@ export declare function dumpAllApplications(): Promise<any>;
408
414
  * {@link prepareDesktopAudioRecording}.
409
415
  *
410
416
  * Supported on macOS and Windows. `windowId` must come from the SDK and `uploadToken` must come
411
- * from a newly created Desktop SDK Upload. On supported meeting platforms, including Google Meet
412
- * in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
417
+ * from a newly created Desktop SDK Upload. On supported meeting platforms, including Zoom on Windows
418
+ * and Google Meet in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
413
419
  * it records locally. Resolve capture mode from `recording-started.rawMedia` rather than predicting
414
420
  * it from configuration. Integrators manage user approval for browser access in their application.
415
421
  *
@@ -428,7 +434,7 @@ export declare function startRecording(config: StartRecordingConfig): Promise<nu
428
434
  * Stops the active recording for a meeting or prepared desktop-audio source.
429
435
  *
430
436
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
431
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. The returned promise confirms command handling, not completion of
437
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. The returned promise confirms command handling, not completion of
432
438
  * cloud artifact processing. Listen for `recording-ended` for capture completion and use Desktop
433
439
  * SDK Upload webhooks for final upload status.
434
440
  *
@@ -441,7 +447,7 @@ export declare function stopRecording({ windowId }: StopRecordingConfig): Promis
441
447
  * Pauses media capture for an active recording without ending the recording.
442
448
  *
443
449
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
444
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
450
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
445
451
  * the same `windowId` that was passed to {@link startRecording}. Call {@link resumeRecording} to
446
452
  * continue the recording.
447
453
  *
@@ -454,7 +460,7 @@ export declare function pauseRecording({ windowId }: PauseRecordingConfig): Prom
454
460
  * Resumes media capture for a paused recording.
455
461
  *
456
462
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
457
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
463
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
458
464
  * the same `windowId` that was passed to {@link startRecording}.
459
465
  *
460
466
  * @param config Paused recording ID.
@@ -466,7 +472,7 @@ export declare function resumeRecording({ windowId }: ResumeRecordingConfig): Pr
466
472
  * Sends a chat message through an active Desktop SDK Raw Media recording.
467
473
  *
468
474
  * Supported for Microsoft Teams Desktop and supported Chromium-based Google Meet browsers on
469
- * macOS, and for Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
475
+ * macOS, and for Zoom on Windows and Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
470
476
  * This method is not available for local recordings. The returned promise confirms that the
471
477
  * message was accepted and queued for the Raw Media connection; it does not confirm that the
472
478
  * meeting platform displayed it.
@@ -534,7 +540,13 @@ export declare function setDesktopAudioDevice(id: string | null, dir: AudioDevic
534
540
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
535
541
  * `permission-status` for the resulting state; promise resolution does not by itself mean the user
536
542
  * granted access. Windows does not require these macOS permissions and reports requests as granted, except that
537
- * `browser-automation` enables Google Meet Raw Media only until the SDK process exits.
543
+ * `browser-automation` and `teams-automation` enable their respective Raw Media paths and are
544
+ * cached for the host application across SDK restarts.
545
+ * On Windows, `zoom-raw-media` reports the actual setup result through `permission-status`.
546
+ * Setup exits and relaunches Zoom, so request it before joining a meeting.
547
+ * On macOS 27.3+, requesting accessibility opens System & App Protection Override.
548
+ * The link includes the host app's bundle identifier when available so Settings can
549
+ * select its entry. For first-time setup, use the add (+) button to select the host app.
538
550
  *
539
551
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
540
552
  * before a meeting starts. Automation setup may restart Teams or the supported default browser and
@@ -546,7 +558,7 @@ export declare function setDesktopAudioDevice(id: string | null, dir: AudioDevic
546
558
  * @see https://docs.recall.ai/docs/macos-permissions
547
559
  * @see https://docs.recall.ai/docs/desktop-recording-sdk-raw-media
548
560
  */
549
- export declare function requestPermission(permission: Permission): Promise<null>;
561
+ export declare function requestPermission(permission: Exclude<Permission, 'accessibility-teams' | 'accessibility-zoom' | 'accessibility-browser'>): Promise<null>;
550
562
  /**
551
563
  * Forces the native SDK process to exit unexpectedly for restart and error-handling tests.
552
564
  *
package/index.js CHANGED
@@ -463,6 +463,22 @@ function startProcess() {
463
463
  if (!envExtra["EXE_NAME"]) {
464
464
  envExtra["EXE_NAME"] = path.parse(process.execPath).name;
465
465
  }
466
+ if (process.platform === "win32") {
467
+ // Electron's user data path survives app updates; generic Node hosts use their entry script.
468
+ let userDataPath;
469
+ try {
470
+ userDataPath = require('electron')?.app?.getPath?.('userData');
471
+ }
472
+ catch { }
473
+ const executableName = path.parse(process.execPath).name.toLowerCase();
474
+ const isSharedRuntime = /^(node|electron)$/.test(executableName);
475
+ const scriptPath = isSharedRuntime && process.argv[1]
476
+ ? path.resolve(process.argv[1]) : undefined;
477
+ const hostAppId = userDataPath || (isSharedRuntime ? scriptPath : process.execPath);
478
+ if (hostAppId) {
479
+ envExtra["DSDK_HOST_APP_ID"] = hostAppId;
480
+ }
481
+ }
466
482
  let sdk_version = getPackageVersion();
467
483
  if (sdk_version) {
468
484
  envExtra["SDK_VERSION"] = sdk_version;
@@ -496,6 +512,7 @@ function startProcess() {
496
512
  const annotatorDebug = process.env.RECALLAI_DESKTOP_SDK_DEV ? ",transcriptspeakerannotator:4" : "";
497
513
  proc = (0, child_process_1.spawn)(exe_path, {
498
514
  stdio: (process.platform === "darwin" ? ["pipe", "pipe", "pipe", "pipe"] : "pipe"),
515
+ windowsHide: process.platform === "win32",
499
516
  env: {
500
517
  GST_RECALL_DEBUG: "2,transcriber:4,rtewebsocketsink:4,rtewebhooksink:4,audiomixer:4,galleryview:4,dsdks3sink:5" + annotatorDebug,
501
518
  GST_DEBUG: "3,GST_CAPS:3,GST_SCHEDULING:2,GST_PADS:2,video-scaler:1,transcriber:4,filebuffereds3sink:4,seekables3sink:4,rtpsession:1,audioresample:1,videodecoder:2,basesink:2,webrtcbin:2,websocketsink:4,audiomixer:4,galleryview:4,removeonsinkeosbin:4,fallbackswitch:6,sendmessageonsinkeosbin:4,dsdks3sink:5" + annotatorDebug,
@@ -800,8 +817,8 @@ function dumpAllApplications() {
800
817
  * {@link prepareDesktopAudioRecording}.
801
818
  *
802
819
  * Supported on macOS and Windows. `windowId` must come from the SDK and `uploadToken` must come
803
- * from a newly created Desktop SDK Upload. On supported meeting platforms, including Google Meet
804
- * in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
820
+ * from a newly created Desktop SDK Upload. On supported meeting platforms, including Zoom on Windows
821
+ * and Google Meet in Chrome or Edge on Windows ARM64 and x64, the SDK uses Raw Media when it is enabled and available; otherwise
805
822
  * it records locally. Resolve capture mode from `recording-started.rawMedia` rather than predicting
806
823
  * it from configuration. Integrators manage user approval for browser access in their application.
807
824
  *
@@ -822,7 +839,7 @@ function startRecording(config) {
822
839
  * Stops the active recording for a meeting or prepared desktop-audio source.
823
840
  *
824
841
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
825
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. The returned promise confirms command handling, not completion of
842
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. The returned promise confirms command handling, not completion of
826
843
  * cloud artifact processing. Listen for `recording-ended` for capture completion and use Desktop
827
844
  * SDK Upload webhooks for final upload status.
828
845
  *
@@ -837,7 +854,7 @@ function stopRecording({ windowId }) {
837
854
  * Pauses media capture for an active recording without ending the recording.
838
855
  *
839
856
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
840
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
857
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
841
858
  * the same `windowId` that was passed to {@link startRecording}. Call {@link resumeRecording} to
842
859
  * continue the recording.
843
860
  *
@@ -852,7 +869,7 @@ function pauseRecording({ windowId }) {
852
869
  * Resumes media capture for a paused recording.
853
870
  *
854
871
  * Supported for local recordings on macOS and Windows and for Raw Media recordings on macOS and
855
- * Windows Google Meet in Chrome or Edge on ARM64 and x64. Use
872
+ * Windows Zoom, and Windows Google Meet in Chrome or Edge, on ARM64 and x64. Use
856
873
  * the same `windowId` that was passed to {@link startRecording}.
857
874
  *
858
875
  * @param config Paused recording ID.
@@ -866,7 +883,7 @@ function resumeRecording({ windowId }) {
866
883
  * Sends a chat message through an active Desktop SDK Raw Media recording.
867
884
  *
868
885
  * Supported for Microsoft Teams Desktop and supported Chromium-based Google Meet browsers on
869
- * macOS, and for Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
886
+ * macOS, and for Zoom on Windows and Google Meet in Chrome or Edge on Windows ARM64 and x64, when `recording-started.rawMedia` is `true`.
870
887
  * This method is not available for local recordings. The returned promise confirms that the
871
888
  * message was accepted and queued for the Raw Media connection; it does not confirm that the
872
889
  * meeting platform displayed it.
@@ -944,7 +961,13 @@ function setDesktopAudioDevice(id, dir) {
944
961
  * macOS may display a system prompt or open the relevant System Settings pane. Observe
945
962
  * `permission-status` for the resulting state; promise resolution does not by itself mean the user
946
963
  * granted access. Windows does not require these macOS permissions and reports requests as granted, except that
947
- * `browser-automation` enables Google Meet Raw Media only until the SDK process exits.
964
+ * `browser-automation` and `teams-automation` enable their respective Raw Media paths and are
965
+ * cached for the host application across SDK restarts.
966
+ * On Windows, `zoom-raw-media` reports the actual setup result through `permission-status`.
967
+ * Setup exits and relaunches Zoom, so request it before joining a meeting.
968
+ * On macOS 27.3+, requesting accessibility opens System & App Protection Override.
969
+ * The link includes the host app's bundle identifier when available so Settings can
970
+ * select its entry. For first-time setup, use the add (+) button to select the host app.
948
971
  *
949
972
  * Request `teams-automation`, `browser-automation`, and `zoom-raw-media` only from an explicit user interaction and
950
973
  * before a meeting starts. Automation setup may restart Teams or the supported default browser and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recallai/desktop-sdk",
3
- "version": "2.0.46",
3
+ "version": "2.0.48",
4
4
  "description": "Recall Desktop SDK",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "@types/node": "^24.2.0",
21
21
  "typescript": "^5.3.3"
22
22
  },
23
- "commit_sha": "42b7771ccfdae4642de45c97f0e60ec6f8cd443f",
23
+ "commit_sha": "1924ca03af7952aa9c2956c752cd05f6279848ef",
24
24
  "native_sha256": {
25
- "desktop_sdk_macos.tar": "a276df4e1f3ee0fa91fdc43ab05e11d0ccff78b9e79b1178f26c52d029eedf9c",
26
- "desktop_sdk_win32.tar": "009e63fca4a231a452462e585009d34abe8c73c3d2608d6ade12b7e10909ac90"
25
+ "desktop_sdk_macos.tar": "709f36d1b527c9a338f7f6ac3a5bae24d6958fe17c64191b96e71ab1c5a60d21",
26
+ "desktop_sdk_win32.tar": "8fb097326fb9e21ab4330e833e20f5bd3dd3e5cdbb47f456bd3c4243afe5b084"
27
27
  }
28
28
  }