@opengeni/sdk 6.8.0 → 6.8.1-canary.41842879332001

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.
Files changed (40) hide show
  1. package/README.md +9 -5
  2. package/dist/adapters/next.js +2 -2
  3. package/dist/artifacts.js +4 -4
  4. package/dist/browser.js +2 -2
  5. package/dist/chat/index.js +5 -5
  6. package/dist/{chunk-QAPUVFWN.js → chunk-CFQTWJVH.js} +2 -2
  7. package/dist/{chunk-JJFUWLVG.js → chunk-FURF2L6A.js} +2 -2
  8. package/dist/{chunk-AUYSHHA3.js → chunk-KBRGFPKB.js} +2 -2
  9. package/dist/{chunk-KNP2HHM7.js → chunk-KUDXYYSA.js} +1 -1
  10. package/dist/chunk-KUDXYYSA.js.map +1 -0
  11. package/dist/{chunk-KTHOZ4QW.js → chunk-L6PBDLOY.js} +2 -2
  12. package/dist/{chunk-PEOUZKQA.js → chunk-LUTD2C2Z.js} +2 -2
  13. package/dist/{chunk-TP7SEFOY.js → chunk-MRH5RX74.js} +1 -1
  14. package/dist/chunk-MRH5RX74.js.map +1 -0
  15. package/dist/{chunk-UGPX5WG7.js → chunk-TTIQ5YTD.js} +2 -2
  16. package/dist/core.js +3 -3
  17. package/dist/desktop-bridge.d.ts +21 -1
  18. package/dist/desktop-bridge.js +1 -1
  19. package/dist/document-authority.js +3 -3
  20. package/dist/editable-artifacts.js +1 -1
  21. package/dist/index.js +7 -7
  22. package/dist/recordings.d.ts +16 -1
  23. package/dist/recordings.js +20 -3
  24. package/dist/recordings.js.map +1 -1
  25. package/dist/session-proxy.js +2 -2
  26. package/dist/site-bridge-host.js +3 -3
  27. package/dist/site.js +3 -3
  28. package/dist/types.d.ts +2 -0
  29. package/package.json +5 -4
  30. package/src/desktop-bridge.ts +23 -2
  31. package/src/recordings.ts +31 -4
  32. package/src/types.ts +2 -0
  33. package/dist/chunk-KNP2HHM7.js.map +0 -1
  34. package/dist/chunk-TP7SEFOY.js.map +0 -1
  35. /package/dist/{chunk-QAPUVFWN.js.map → chunk-CFQTWJVH.js.map} +0 -0
  36. /package/dist/{chunk-JJFUWLVG.js.map → chunk-FURF2L6A.js.map} +0 -0
  37. /package/dist/{chunk-AUYSHHA3.js.map → chunk-KBRGFPKB.js.map} +0 -0
  38. /package/dist/{chunk-KTHOZ4QW.js.map → chunk-L6PBDLOY.js.map} +0 -0
  39. /package/dist/{chunk-PEOUZKQA.js.map → chunk-LUTD2C2Z.js.map} +0 -0
  40. /package/dist/{chunk-UGPX5WG7.js.map → chunk-TTIQ5YTD.js.map} +0 -0
package/README.md CHANGED
@@ -1798,11 +1798,15 @@ reconsider — they can change with their counterpart, not with the SDK.
1798
1798
 
1799
1799
  ## Compatibility
1800
1800
 
1801
- Clients and servers are compatible within the same **major** version of this
1802
- SDK; evolution is additive within a major and both sides are tolerant readers.
1803
- Official server builds expose `serverVersion` on `/healthz` and
1804
- `/v1/config/client`. A breaking change ships only in a new major, announced in
1805
- the changelog. Full policy: `docs/design/api-compatibility-policy.md`.
1801
+ Server updates do not break existing integrations. The API only grows: routes,
1802
+ fields, event types and documented behaviour that a published SDK uses keep
1803
+ working, so a pinned SDK version keeps working against the managed service.
1804
+ Upgrade when you want new features. Replacements for older designs ship beside
1805
+ them, and `@deprecated` members keep working. Clients should ignore unknown
1806
+ response fields, enum values and event types. Official server builds expose
1807
+ `serverVersion` on `/healthz` and `/v1/config/client`. Full policy:
1808
+ `docs/design/api-compatibility-policy.md`.
1809
+ Rare exceptions (an emergency security fix or an explicit product-owner decision) are announced with migration notes.
1806
1810
 
1807
1811
  ## Proxy through your own API
1808
1812
 
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createSessionProxyHandler
3
- } from "../chunk-UGPX5WG7.js";
3
+ } from "../chunk-TTIQ5YTD.js";
4
4
  import "../chunk-UM4ZXXJR.js";
5
5
  import "../chunk-QGEIL4TR.js";
6
6
  import "../chunk-4B6PFXUO.js";
7
7
  import "../chunk-X5U35XMP.js";
8
- import "../chunk-TP7SEFOY.js";
8
+ import "../chunk-MRH5RX74.js";
9
9
 
10
10
  // src/adapters/next.ts
11
11
  function toNextRouteHandlers(handler) {
package/dist/artifacts.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-AUYSHHA3.js";
4
- import "./chunk-QAPUVFWN.js";
5
- import "./chunk-JJFUWLVG.js";
3
+ } from "./chunk-KBRGFPKB.js";
4
+ import "./chunk-CFQTWJVH.js";
5
+ import "./chunk-FURF2L6A.js";
6
6
  import "./chunk-4B6PFXUO.js";
7
7
  import "./chunk-KFTMQIVN.js";
8
8
  import "./chunk-UEAULDNI.js";
9
9
  import "./chunk-ED3E7UIK.js";
10
10
  import "./chunk-X5U35XMP.js";
11
- import "./chunk-TP7SEFOY.js";
11
+ import "./chunk-MRH5RX74.js";
12
12
  export {
13
13
  OpenGeniClient
14
14
  };
package/dist/browser.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  OpenGeniClient,
11
11
  isTransientRequestError
12
- } from "./chunk-JJFUWLVG.js";
12
+ } from "./chunk-FURF2L6A.js";
13
13
  import "./chunk-4B6PFXUO.js";
14
14
  import "./chunk-KFTMQIVN.js";
15
15
  import "./chunk-UEAULDNI.js";
@@ -35,7 +35,7 @@ import {
35
35
  OPENGENI_API_CONTRACT_HEADER,
36
36
  OPENGENI_API_CONTRACT_REVISION,
37
37
  OPENGENI_CORRELATION_HEADER
38
- } from "./chunk-TP7SEFOY.js";
38
+ } from "./chunk-MRH5RX74.js";
39
39
  export {
40
40
  APPROVAL_REQUIRES_ACCOUNT_OWNER_CODE,
41
41
  OPENGENI_API_CONTRACT_HEADER,
@@ -9,12 +9,12 @@ import {
9
9
  } from "../chunk-GFNADE2L.js";
10
10
  import {
11
11
  OpenGeniEmbeddingClient
12
- } from "../chunk-KTHOZ4QW.js";
12
+ } from "../chunk-L6PBDLOY.js";
13
13
  import {
14
14
  chatDefaults
15
15
  } from "../chunk-UM4ZXXJR.js";
16
- import "../chunk-AUYSHHA3.js";
17
- import "../chunk-QAPUVFWN.js";
16
+ import "../chunk-KBRGFPKB.js";
17
+ import "../chunk-CFQTWJVH.js";
18
18
  import {
19
19
  ChatPendingFold,
20
20
  ChatTurnFold,
@@ -26,7 +26,7 @@ import {
26
26
  } from "../chunk-CB6D3GDF.js";
27
27
  import {
28
28
  parseSseStream
29
- } from "../chunk-JJFUWLVG.js";
29
+ } from "../chunk-FURF2L6A.js";
30
30
  import "../chunk-4B6PFXUO.js";
31
31
  import "../chunk-KFTMQIVN.js";
32
32
  import "../chunk-UEAULDNI.js";
@@ -35,7 +35,7 @@ import {
35
35
  OpenGeniApiError,
36
36
  OpenGeniSetupError
37
37
  } from "../chunk-X5U35XMP.js";
38
- import "../chunk-TP7SEFOY.js";
38
+ import "../chunk-MRH5RX74.js";
39
39
 
40
40
  // src/chat/opengeni.ts
41
41
  var DEFAULT_OPENGENI_BASE_URL = "https://app.opengeni.ai";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-JJFUWLVG.js";
3
+ } from "./chunk-FURF2L6A.js";
4
4
 
5
5
  // src/document-authority-client.ts
6
6
  var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
@@ -139,4 +139,4 @@ var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
139
139
  export {
140
140
  OpenGeniDocumentAuthorityClient
141
141
  };
142
- //# sourceMappingURL=chunk-QAPUVFWN.js.map
142
+ //# sourceMappingURL=chunk-CFQTWJVH.js.map
@@ -41,7 +41,7 @@ import {
41
41
  OPENGENI_API_CONTRACT_REVISION,
42
42
  OPENGENI_CORRELATION_HEADER,
43
43
  RETAINED_OUTPUT_MAX_PAGE_BYTES
44
- } from "./chunk-TP7SEFOY.js";
44
+ } from "./chunk-MRH5RX74.js";
45
45
 
46
46
  // src/session-sequence.ts
47
47
  var SESSION_SEQUENCE_HEADER = "X-OpenGeni-Session-Sequence";
@@ -9359,4 +9359,4 @@ export {
9359
9359
  parseMediaGenerationResult,
9360
9360
  OpenGeniClient
9361
9361
  };
9362
- //# sourceMappingURL=chunk-JJFUWLVG.js.map
9362
+ //# sourceMappingURL=chunk-FURF2L6A.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenGeniDocumentAuthorityClient
3
- } from "./chunk-QAPUVFWN.js";
3
+ } from "./chunk-CFQTWJVH.js";
4
4
 
5
5
  // src/artifact-client.ts
6
6
  var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
@@ -121,4 +121,4 @@ var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
121
121
  export {
122
122
  OpenGeniClient
123
123
  };
124
- //# sourceMappingURL=chunk-AUYSHHA3.js.map
124
+ //# sourceMappingURL=chunk-KBRGFPKB.js.map
@@ -117,4 +117,4 @@ export {
117
117
  DESKTOP_IPC,
118
118
  DESKTOP_WELCOME_GLOBAL
119
119
  };
120
- //# sourceMappingURL=chunk-KNP2HHM7.js.map
120
+ //# sourceMappingURL=chunk-KUDXYYSA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/desktop-bridge.ts"],"sourcesContent":["// The contract between an Opengeni desktop shell and the web app it shows. Pure types and\n// constants: the web app imports this without Electron, and the preload script\n// implements it. The shell and the server update independently, so the web app\n// reads `version` and `capabilities` and degrades when something is missing.\nimport type {\n ThisComputerConnectOptions,\n ThisComputerPermissionId,\n ThisComputerStatus,\n} from \"./this-computer\";\n\n/** Bumped only for incompatible changes; additions are new capabilities. */\nexport const DESKTOP_BRIDGE_VERSION = 1;\n\n/** The macOS traffic lights: three 14px buttons. */\nexport const DESKTOP_MAC_TRAFFIC_LIGHT_SIZE = 14;\n\n/**\n * The window bar of macOS shells that don't report `windowBarHeight` (the\n * desktop app 0.1.33 and older): they put the traffic lights 21px from the\n * top, centred on a 56px row.\n */\nexport const DESKTOP_LEGACY_MAC_WINDOW_BAR_HEIGHT = 56;\n\n/** The global the preload script defines in the web app's main frame. */\nexport const DESKTOP_BRIDGE_GLOBAL = \"opengeniDesktop\";\n\nexport type DesktopPlatform = \"macos\" | \"windows\" | \"linux\";\n\nexport type DesktopCapability =\n /** Several accounts; list, switch, add and sign out. */\n | \"accounts\"\n /** Connect this computer to a workspace, pause and resume it. */\n | \"thisComputer\"\n /** Report and ask for the system permissions screen control needs. */\n | \"thisComputerPermissions\"\n /** Disconnect this computer from a workspace. */\n | \"thisComputerDisconnect\"\n /** Open a URL in the default browser. */\n | \"openExternal\"\n /** Menu bar and keyboard commands for the web app to carry out. */\n | \"commands\"\n /** A shortcut sends the window the person is looking at into the composer. */\n | \"appShots\"\n /** The web app lists its actions and keys; the shell builds the menu bar from them. */\n | \"menuActions\"\n /** The app reports a new version it found, and installs it on request. */\n | \"updates\"\n /** Record the audio other apps play (a meeting's other participants) as its own track. */\n | \"systemAudio\"\n /** Notice when a call app starts using the microphone, and offer to record the meeting. */\n | \"meetingDetection\"\n /** What Opengeni may do on this computer: switches the app enforces, and the microphone. */\n | \"computerCapabilities\"\n /** A still of the window's page, taken without a prompt (for feedback reports). */\n | \"captureWindow\"\n /** A shortcut dictates anywhere: the text lands where the person is typing. */\n | \"dictation\";\n\nexport type DesktopSystemAudioErrorCode =\n /** This computer, its OS version or this app build can't record other apps' audio. */\n | \"unavailable\"\n /** The person hasn't allowed recording other apps' audio. */\n | \"permission_denied\"\n /** Linux: no PulseAudio or PipeWire sound server to record from. */\n | \"sound_server_unavailable\"\n /** The capture failed to start or stopped unexpectedly. */\n | \"capture_failed\";\n\nexport interface DesktopSystemAudioError {\n code: DesktopSystemAudioErrorCode;\n /** A plain English sentence for people. */\n message: string;\n /** Technical detail for logs. */\n detail?: string;\n}\n\n/** Call detection as the web app shows it in settings. */\nexport interface DesktopMeetingDetectionStatus {\n /** The person's switch: offer to record when a call starts. */\n enabled: boolean;\n /**\n * The person's second switch: when a call app's call starts, record it\n * without asking, and stop when it ends. A meeting in a browser still asks.\n * Absent from apps built before it existed.\n */\n autoRecord?: boolean;\n /** This computer, its OS version and this app build can tell when a call starts. */\n available: boolean;\n /**\n * The person's switch for reminders before calendar meetings: about a\n * minute before a meeting with a join link starts, a card offers to join it\n * and start its recording. Absent from apps built before it existed.\n */\n calendarReminders?: boolean;\n /**\n * Whether the signed-in person has a calendar Opengeni can read, as last\n * checked; absent until then (and from older apps).\n */\n calendar?: \"connected\" | \"none\";\n /** Why detection isn't working right now, in a sentence for its row. */\n problem?: string;\n}\n\n/**\n * What the person chose on the app's meeting card or menu: record the call an\n * app just started, stop recording (the call ended, or Stop Recording in the\n * menu), or open the meeting this page records (its live transcript). `app` is\n * the call app's name (\"Zoom\", \"Google Chrome\"); `title` suggests a name for\n * the meeting. From a reminder before a calendar meeting (Join and start\n * recording), `calendarEvent` is that event, which names the meeting; with\n * `replace`, a meeting being recorded stops and is kept, and the new one\n * starts. `open` reaches only a page that described its recording with\n * {@link DesktopMeetingDetection.setRecording}.\n */\nexport type DesktopMeetingRequest =\n | {\n kind: \"record\";\n app: string;\n title: string;\n calendarEvent?: { provider: \"google\" | \"microsoft\"; id: string };\n replace?: boolean;\n }\n | { kind: \"stop\"; app: string }\n | { kind: \"open\" };\n\n/** The meeting a page records, for the app's menu bar or tray. */\nexport interface DesktopRecordingMeeting {\n /** Its name so far, or null when it has none yet. */\n title: string | null;\n /** Recorded time so far, excluding pauses. */\n elapsedMilliseconds: number;\n paused: boolean;\n}\n\n/**\n * Call detection. While on, the app shows a card in the top corner of the\n * screen when a call app (Zoom, Teams, Slack, Meet in a browser) starts using\n * the microphone, and another when the call it is recording ends. Part of the\n * desktop bridge, or on its own as `window.opengeniMeetingDetection` in any\n * app that hosts Opengeni pages (see {@link getDesktopMeetingDetection}).\n */\nexport interface DesktopMeetingDetection {\n status(): Promise<DesktopMeetingDetectionStatus>;\n update(change: {\n enabled?: boolean;\n autoRecord?: boolean;\n calendarReminders?: boolean;\n }): Promise<DesktopMeetingDetectionStatus>;\n /**\n * Tell the app whether this page is recording a meeting, so it doesn't\n * offer to record another and can offer to stop when the call ends.\n * Describe the meeting with `meeting` (again whenever its title or pause\n * changes) to show it in the app's menu, which can then ask this page to\n * open it (an `open` request).\n */\n setRecording(recording: boolean, meeting?: DesktopRecordingMeeting): void;\n /**\n * The person chose Record or Stop on the card. The window comes to the\n * front first. Only the page's newest listener receives them; the app\n * holds a choice briefly for a page that isn't listening yet.\n */\n onRequest(listener: (request: DesktopMeetingRequest) => void): Unsubscribe;\n /** The switch or its state changed. */\n onChange(listener: () => void): Unsubscribe;\n}\n\n/**\n * The app's own updates as the web app shows them. `downloading` means a new\n * version was found and is on its way; `ready` means it is downloaded and\n * installs on restart. `restartWhenReady` is set once the person asked to\n * update, so the app restarts by itself when the download ends.\n */\nexport type DesktopUpdateState =\n | { kind: \"none\" }\n | {\n kind: \"downloading\";\n version: string;\n /** 0 to 100, or null before the download reports progress. */\n percent: number | null;\n restartWhenReady: boolean;\n }\n | { kind: \"ready\"; version: string; restartWhenReady: boolean };\n\n/** Which menu bar section shows an action. */\nexport type DesktopMenuSection = \"file\" | \"view\" | \"go\" | \"chat\" | \"help\";\n\n/** One web app action as the desktop menu bar shows it. */\nexport interface DesktopMenuAction {\n /** Sent back through `menuActions.onAction` when the item or its key is used. */\n id: string;\n label: string;\n section: DesktopMenuSection;\n /**\n * The key the item shows and owns, in Electron accelerator syntax\n * (\"CmdOrCtrl+Shift+O\"). Other keys for the same action stay with the page.\n */\n accelerator: string | null;\n enabled: boolean;\n}\n\n/**\n * What the app's menus and shortcuts ask the web app to do. A page that does\n * not listen still gets the navigation ones (the bridge falls back to loading\n * the workspace's page), so older servers keep working.\n */\nexport type DesktopCommand = \"newSession\" | \"searchSessions\" | \"toggleSidebar\" | \"openInbox\";\n\n/** One signed-in account as the web app sees it. Never carries a credential. */\nexport interface DesktopAccount {\n id: string;\n /** The server's web origin, e.g. https://app.opengeni.ai. */\n baseUrl: string;\n /** The host a person recognizes, e.g. app.opengeni.ai. */\n serverLabel: string;\n email: string;\n /** The workspace last used with this account. */\n workspaceId: string | null;\n /** The server rejected the credential; the person has to sign in again. */\n signedOut: boolean;\n}\n\nexport interface DesktopAccountsSnapshot {\n accounts: DesktopAccount[];\n /** The account the window shows. */\n activeId: string | null;\n}\n\nexport type {\n ThisComputerConnectOptions,\n ThisComputerErrorCode,\n ThisComputerPermission,\n ThisComputerPermissionId,\n ThisComputerState,\n ThisComputerStatus,\n} from \"./this-computer\";\n\nexport type Unsubscribe = () => void;\n\n/** A modifier key pressed on both sides of the keyboard at once. */\nexport type DesktopAppShotModifier = \"command\" | \"option\" | \"control\" | \"shift\";\n\n/**\n * What triggers an app-shot: both keys of a modifier pair (both Command keys\n * by default on macOS), or an ordinary key combination in Electron's\n * accelerator syntax, e.g. \"CommandOrControl+Shift+2\".\n */\nexport type DesktopAppShotShortcut =\n | { kind: \"modifierPair\"; modifier: DesktopAppShotModifier }\n | { kind: \"accelerator\"; accelerator: string };\n\nexport interface DesktopAppShotSettings {\n /** Off until the person turns it on. */\n enabled: boolean;\n shortcut: DesktopAppShotShortcut;\n}\n\n/** The system permissions an app-shot needs, where the system asks for them. */\nexport type DesktopAppShotPermissionId = \"screenRecording\" | \"accessibility\";\n\nexport interface DesktopAppShotStatus {\n settings: DesktopAppShotSettings;\n /** App-shots work on this computer. */\n supported: boolean;\n /** The modifier pairs this computer can watch for. */\n modifierPairs: DesktopAppShotModifier[];\n /** Where the system asks (macOS): whether each permission is allowed. */\n permissions: { id: DesktopAppShotPermissionId; granted: boolean }[];\n /** On, but the shortcut could not be set up (e.g. another app owns it). */\n shortcutError: string | null;\n}\n\n/** The page in a captured web browser window. */\nexport interface DesktopAppShotBrowser {\n /** The page's address (http or https). */\n url: string;\n /** A Chromium-based browser, which can carry the Opengeni browser extension. */\n chromium: boolean;\n}\n\n/** A window captured by the shortcut, for the web app to attach. */\nexport interface DesktopAppShot {\n /** PNG bytes of the window. */\n image: Uint8Array;\n mimeType: \"image/png\";\n app: string;\n bundleId?: string;\n title: string;\n /** ISO timestamp. */\n capturedAt: string;\n platform: DesktopPlatform;\n /** The window's accessibility text, when it could be read. */\n text?: string;\n /** Not all of the text was kept. */\n textTruncated?: boolean;\n /** The window as the system identifies it. */\n window?: { processId: number; windowId: number };\n /** When the window is a web browser's, the page it shows. */\n browser?: DesktopAppShotBrowser;\n}\n\n/** Why a capture produced nothing to attach. */\nexport type DesktopAppShotErrorCode =\n /** A system permission is missing; `permission` names it. */\n | \"permission\"\n /** No other app's window was on screen. */\n | \"no_window\"\n | \"failed\";\n\nexport type DesktopAppShotResult =\n | { ok: true; shot: DesktopAppShot }\n | {\n ok: false;\n code: DesktopAppShotErrorCode;\n permission?: DesktopAppShotPermissionId;\n /** A plain English sentence. */\n message: string;\n };\n\n/** A modifier key a dictation shortcut can hold; `fn` is the Fn (Globe) key on a Mac. */\nexport type DesktopDictationModifier = DesktopAppShotModifier | \"fn\";\n\n/**\n * What starts and stops a dictation: both keys of a modifier pair (both\n * Option keys), modifier keys alone held together (Control and Fn on a Mac),\n * or an ordinary key combination in Electron's accelerator syntax.\n */\nexport type DesktopDictationShortcut =\n | { kind: \"modifierPair\"; modifier: DesktopAppShotModifier }\n | { kind: \"modifierChord\"; modifiers: DesktopDictationModifier[] }\n | { kind: \"accelerator\"; accelerator: string };\n\n/** One dictation shortcut, the language it listens for and the model that hears it. */\nexport interface DesktopDictationProfile {\n id: string;\n /** What the person calls it (\"Norwegian\"). */\n name: string;\n shortcut: DesktopDictationShortcut;\n /** An ISO 639-1 or 639-3 code (\"nb\", \"en\"); null detects the language. */\n language: string | null;\n /**\n * The speech-to-text model this shortcut's dictations use, such as one for\n * English and another for Norwegian. Absent or null: the workspace's voice\n * input model.\n */\n model?: DesktopDictationModel | null;\n}\n\n/** A speech-to-text model by its provider, as the workspace's voice input lists it. */\nexport interface DesktopDictationModel {\n providerId: string;\n model: string;\n}\n\n/**\n * Where the text goes: typed where the cursor is (the clipboard is put back\n * afterwards), only copied, or typed and left on the clipboard too.\n */\nexport type DesktopDictationOutput = \"paste\" | \"copy\" | \"pasteAndCopy\";\n\n/** Press once to start and again to stop, or hold the shortcut while speaking. */\nexport type DesktopDictationMode = \"toggle\" | \"hold\";\n\n/** An ordinary key combination, in Electron's accelerator syntax (\"Control+Shift+2\"). */\nexport type DesktopDictationKeys = { kind: \"accelerator\"; accelerator: string };\n\nexport interface DesktopDictationSettings {\n /** Off until the person turns it on. */\n enabled: boolean;\n /** At least one; most people keep the one shortcut. */\n profiles: DesktopDictationProfile[];\n output: DesktopDictationOutput;\n mode: DesktopDictationMode;\n /**\n * Names and words to listen for, such as people's and products' names: at\n * most 100, each up to 50 characters. Absent from apps that don't offer it.\n */\n vocabulary?: string[];\n /**\n * Transcribes the last dictation again and types it: one that failed, or\n * else the newest one kept on this computer. Null: none.\n */\n retryShortcut?: DesktopDictationKeys | null;\n /** Throws away the dictation under way. Null: none. */\n cancelShortcut?: DesktopDictationKeys | null;\n}\n\n/** A shortcut that acts on dictations rather than starting one. */\nexport type DesktopDictationAction = \"retry\" | \"cancel\";\n\n/** The system permissions dictation needs, where the system asks for them. */\nexport type DesktopDictationPermissionId = \"accessibility\";\n\n/** Why text can't be typed into other apps on this computer, so it is only copied. */\nexport type DesktopDictationPasteBlocker =\n /** macOS: Accessibility isn't allowed for the app. */\n | \"accessibility\"\n /** Linux on X11: xdotool isn't installed. */\n | \"xdotool\"\n /** Linux on Wayland: neither wtype nor ydotool is installed. */\n | \"wtype\"\n /** This system has no way to. */\n | \"unsupported\";\n\n/** Why a shortcut that is on doesn't work. */\nexport type DesktopDictationShortcutProblem =\n /** Another app owns the key combination, or the system refuses it. */\n | \"taken\"\n /** This computer can't watch those keys on their own. */\n | \"unsupported\"\n /** It stopped working; turning dictation off and on again sets it up again. */\n | \"stopped\"\n /** It couldn't be set up. */\n | \"failed\";\n\nexport interface DesktopDictationStatus {\n settings: DesktopDictationSettings;\n /** Dictation works in this app on this computer. */\n supported: boolean;\n platform: DesktopPlatform;\n /** The modifier pairs this computer can watch for. */\n modifierPairs: DesktopAppShotModifier[];\n /** Modifier keys alone (Control and Fn) can be a shortcut here. */\n modifierChords: boolean;\n /** Where the system asks (macOS): whether each permission is allowed. */\n permissions: { id: DesktopDictationPermissionId; granted: boolean }[];\n /** Each shortcut that is on but could not be set up (another app owns it). */\n shortcutErrors: { profileId: string; problem: DesktopDictationShortcutProblem }[];\n /** The retry or cancel shortcut, when it is on but could not be set up. */\n actionShortcutErrors?: {\n action: DesktopDictationAction;\n problem: DesktopDictationShortcutProblem;\n }[];\n /** Whether text can be typed into other apps here; otherwise it is only copied. */\n paste: { available: boolean; blocker: DesktopDictationPasteBlocker | null };\n /** A signed-in page is ready to record; dictation waits for one. */\n ready: boolean;\n}\n\n/** A dictation's speech, kept on this computer beside its text. */\nexport interface DesktopDictationAudio {\n /** As recorded, such as \"audio/webm;codecs=opus\". */\n mimeType: string;\n bytes: Uint8Array;\n durationMilliseconds: number;\n}\n\n/** What the app asks the page that records to do. */\nexport type DesktopDictationRequest =\n | {\n kind: \"start\";\n dictationId: string;\n profileId: string;\n language: string | null;\n /** The model to transcribe with; absent or null: the workspace's voice input model. */\n model?: DesktopDictationModel | null;\n /** Names and words to listen for; absent from apps that don't offer it. */\n vocabulary?: string[];\n }\n /** Transcribe speech kept on this computer as a new dictation, and report it as one. */\n | {\n kind: \"transcribe\";\n dictationId: string;\n profileId: string;\n language: string | null;\n model?: DesktopDictationModel | null;\n vocabulary: string[];\n audio: DesktopDictationAudio;\n }\n | { kind: \"stop\"; dictationId: string }\n /**\n * Stop without typing anything and delete the dictation. Speech longer than\n * a few seconds comes back with the `cancelled` report, for the app to keep\n * in its recent dictations; nothing offers it anywhere else.\n */\n | { kind: \"cancel\"; dictationId: string }\n /** Let a failed dictation go without deleting it: the composer offers it later. */\n | { kind: \"dismiss\"; dictationId: string }\n /** Transcribe a failed dictation again. */\n | { kind: \"retry\"; dictationId: string };\n\n/** How a dictation is going, reported by the page that records it. */\nexport type DesktopDictationReport =\n | {\n dictationId: string;\n phase: \"recording\";\n /** Epoch milliseconds. */\n startedAt: number;\n /** The microphone's level from 0 to 1, when it is metered. */\n level: number | null;\n }\n | { dictationId: string; phase: \"transcribing\" }\n | {\n dictationId: string;\n phase: \"done\";\n text: string;\n /** The speech that was recorded, for the app to keep with the text. */\n audio?: DesktopDictationAudio;\n }\n | {\n dictationId: string;\n phase: \"failed\";\n /** A plain sentence for people. */\n message: string;\n /** The speech is kept and can be transcribed again. */\n retryable: boolean;\n }\n /** Nothing was recorded, or it was thrown away. */\n | {\n dictationId: string;\n phase: \"cancelled\";\n /**\n * The speech of a dictation cancelled after a few seconds, for the app\n * to keep with its recent dictations; it is deleted everywhere else.\n */\n audio?: DesktopDictationAudio;\n };\n\n/** A finished dictation, kept on this computer so its text can be copied again. */\nexport interface DesktopDictationHistoryEntry {\n id: string;\n /** Empty for a cancelled dictation until it is transcribed again. */\n text: string;\n /** ISO timestamp. */\n at: string;\n profileName: string;\n language: string | null;\n /** Its speech is kept too, to play or transcribe again; absent or null when it isn't. */\n audio?: { mimeType: string; durationMilliseconds: number } | null;\n /** Cancelled before it was transcribed: kept only to play or transcribe again. */\n cancelled?: boolean;\n}\n\n/**\n * Dictation from anywhere. The app owns the shortcuts, the small window that\n * shows a dictation's progress and where the text goes; the page records and\n * transcribes with the signed-in account (`DesktopDictationHost`).\n */\nexport interface DesktopDictation {\n status(): Promise<DesktopDictationStatus>;\n /** Change the settings; the shortcuts follow at once. */\n update(settings: Partial<DesktopDictationSettings>): Promise<DesktopDictationStatus>;\n requestPermission(id: DesktopDictationPermissionId): Promise<void>;\n history(): Promise<DesktopDictationHistoryEntry[]>;\n clearHistory(): Promise<void>;\n /** A kept dictation's speech, to play; null once it is gone. Absent from apps that don't keep it. */\n historyAudio?(id: string): Promise<DesktopDictationAudio | null>;\n /**\n * Transcribe a kept dictation's speech again, with the shortcut's current\n * language and vocabulary; the new text replaces the old in the history.\n * The dictation window shows how it goes.\n */\n transcribeAgain?(id: string): Promise<void>;\n /**\n * Record for the shortcuts. Only the newest listener receives requests;\n * until one listens, a shortcut shows that dictation isn't ready.\n */\n onRequest(listener: (request: DesktopDictationRequest) => void): Unsubscribe;\n report(report: DesktopDictationReport): void;\n /** Settings, permissions or a shortcut's state changed. */\n onChange(listener: () => void): Unsubscribe;\n}\n\n/**\n * What the person lets Opengeni do on this computer, kept by the desktop app\n * and enforced there: a switch that is off stops the use, not only its\n * display. Each is on until the person turns it off, so nothing that worked\n * before stops; the system permission each needs is asked for only when the\n * person turns it on or first uses it.\n */\nexport interface DesktopComputerSettings {\n /**\n * Agents may see and control the screen of this computer (computer use).\n * Off: the app's agent shows no screen and sends no input.\n */\n screenControl: boolean;\n /**\n * The Opengeni Browser extension in Chrome may reach this computer's agent,\n * so agents can work in the person's own Chrome. Off: the agent removes its\n * bridge, and the extension can't reach it.\n */\n browserExtension: boolean;\n /** Dictation and voice chats may use the microphone. Off: the app refuses it. */\n microphone: boolean;\n}\n\n/** The system's answer about a permission; `unknown` where the system has no such question. */\nexport type DesktopSystemPermission = \"granted\" | \"denied\" | \"notDetermined\" | \"unknown\";\n\nexport interface DesktopComputerCapabilities {\n settings: DesktopComputerSettings;\n /** The system's answer about the microphone for this app. */\n microphone: DesktopSystemPermission;\n /**\n * This computer was connected with screen control, so turning\n * `screenControl` on needs nothing more than the system's permissions.\n * False: turning it on connects again with screen control.\n */\n screenControlConnected: boolean;\n /**\n * Switches the app can't enforce here, e.g. when a separately installed agent\n * service serves this computer rather than the app's own agent, or an older\n * agent that doesn't honour the switch.\n */\n unavailable: (keyof DesktopComputerSettings)[];\n /**\n * What went wrong with a switch, in a sentence for its row: a change that\n * couldn't be saved or applied, settings that couldn't be read, or an agent\n * too old to honour it. Absent from older apps.\n */\n problems?: Partial<Record<keyof DesktopComputerSettings, string>>;\n}\n\n/** A still of the desktop window's page: PNG bytes, base64-encoded. */\nexport interface DesktopWindowCapture {\n contentType: \"image/png\";\n base64: string;\n width: number;\n height: number;\n}\n\n/**\n * Other apps' audio, as mono float samples; the app leaves its own sounds out.\n * Part of the desktop bridge, or on its own as `window.opengeniSystemAudio` in\n * any app that hosts Opengeni pages (see {@link getDesktopSystemAudio}).\n */\nexport interface DesktopSystemAudio {\n /**\n * Start recording. Resolves once audio flows; rejects with a\n * {@link DesktopSystemAudioError}. Starting again ends the page's previous\n * capture.\n */\n start(): Promise<{ captureId: string; sampleRate: number }>;\n stop(captureId: string): Promise<void>;\n /** Samples arrive about ten times a second, silence included. */\n onSamples(listener: (captureId: string, samples: Float32Array) => void): Unsubscribe;\n /** The capture ended: stopped (error null) or failed. */\n onEnded(\n listener: (captureId: string, error: DesktopSystemAudioError | null) => void,\n ): Unsubscribe;\n}\n\n/** `window.opengeniDesktop` inside a desktop app. */\nexport interface DesktopBridge {\n readonly version: number;\n readonly platform: DesktopPlatform;\n readonly capabilities: readonly DesktopCapability[];\n /** The shell's product name, e.g. \"Opengeni\". */\n readonly productName: string;\n /** The app's own version, e.g. \"0.1.29\". Absent from older apps. */\n readonly appVersion?: string;\n /**\n * macOS: the height of the window bar the shell centres the traffic lights\n * on, in window points (CSS pixels at 100% zoom). The page centres its own\n * bar controls on the same line. Absent from older apps; see\n * `DESKTOP_LEGACY_MAC_WINDOW_BAR_HEIGHT`.\n */\n readonly windowBarHeight?: number;\n /**\n * The page's zoom factor (1 at 100%), so it can size what lines up with the\n * window's own controls. Absent from older apps.\n */\n zoomFactor?(): number;\n /**\n * A PNG of the page in the window as it is now, at the screen's pixel\n * density, or null when nothing is shown. With the `captureWindow` capability.\n */\n captureWindow?(): Promise<DesktopWindowCapture | null>;\n readonly accounts: {\n list(): Promise<DesktopAccountsSnapshot>;\n /** Show another account in the window. */\n switchTo(accountId: string): Promise<void>;\n /** Start signing in another account in the browser. */\n add(): Promise<void>;\n signOut(accountId: string): Promise<void>;\n /** Tell the shell which workspace the window shows, so links and notifications follow it. */\n setWorkspace(workspaceId: string): void;\n /**\n * The web app found itself signed out. The shell renews the window's web\n * sign-in from the app's own credential; true when the page should reload.\n */\n restoreWebSession(): Promise<boolean>;\n onChange(listener: (snapshot: DesktopAccountsSnapshot) => void): Unsubscribe;\n };\n readonly thisComputer: {\n status(workspaceId: string): Promise<ThisComputerStatus>;\n connect(workspaceId: string, options: ThisComputerConnectOptions): Promise<ThisComputerStatus>;\n pause(): Promise<void>;\n resume(): Promise<void>;\n /**\n * Ask for one permission: the system prompt the first time, then its list\n * in System Settings. With the `thisComputerPermissions` capability.\n */\n requestPermission?(id: ThisComputerPermissionId): Promise<void>;\n /** Stop agents using this computer in the workspace. With the `thisComputerDisconnect` capability. */\n disconnect?(workspaceId: string): Promise<void>;\n onChange(listener: () => void): Unsubscribe;\n };\n /** Open a page in the default browser. Only http(s) URLs are accepted. */\n openExternal(url: string): Promise<void>;\n readonly commands: {\n /** Carry out menu and shortcut commands; only the newest listener receives them. */\n onCommand(listener: (command: DesktopCommand) => void): Unsubscribe;\n };\n /** The menu bar's web app actions. With the `menuActions` capability. */\n readonly menuActions?: {\n /** Replace the actions the menu bar shows. The shell keeps its own items (accounts, zoom, quit). */\n set(actions: DesktopMenuAction[]): void;\n /** Carry out an action chosen from the menu or by its key; only the newest listener receives them. */\n onAction(listener: (id: string) => void): Unsubscribe;\n };\n /** Follow the web app's appearance, so window materials and controls match it. */\n setAppearance(appearance: \"light\" | \"dark\" | \"system\"): void;\n /** App-shots. With the `appShots` capability. */\n readonly appShots?: {\n status(): Promise<DesktopAppShotStatus>;\n /** Change the settings; the shortcut follows at once. */\n update(settings: Partial<DesktopAppShotSettings>): Promise<DesktopAppShotStatus>;\n /**\n * Ask for one permission: the system prompt the first time, then its list\n * in System Settings with the app's guide beside it.\n */\n requestPermission(id: DesktopAppShotPermissionId): Promise<void>;\n /**\n * Captures from the shortcut (the window then comes to the front), and\n * their failures. Only the newest listener receives them.\n */\n onCapture(listener: (result: DesktopAppShotResult) => void): Unsubscribe;\n /** Settings, permissions or the shortcut's state changed. */\n onChange(listener: () => void): Unsubscribe;\n };\n /** The app's own updates. With the `updates` capability. */\n readonly updates?: {\n state(): Promise<DesktopUpdateState>;\n /**\n * Install the update the app found: restart into it now when it is\n * downloaded, otherwise finish the download and then restart.\n */\n install(): Promise<void>;\n onChange(listener: (state: DesktopUpdateState) => void): Unsubscribe;\n };\n /**\n * Other apps' audio, as mono float samples. With the `systemAudio`\n * capability. The app leaves its own sounds out.\n */\n readonly systemAudio?: DesktopSystemAudio;\n /** Call detection. With the `meetingDetection` capability. */\n readonly meetingDetection?: DesktopMeetingDetection;\n /** What Opengeni may do on this computer. With the `computerCapabilities` capability. */\n readonly computerCapabilities?: {\n status(): Promise<DesktopComputerCapabilities>;\n /** Turn switches on or off; the app applies them at once (restarting its agent if needed). */\n update(change: Partial<DesktopComputerSettings>): Promise<DesktopComputerCapabilities>;\n /**\n * Ask for the microphone: the system's question while it hasn't been\n * answered, otherwise the system's settings page for it.\n */\n requestMicrophone(): Promise<DesktopComputerCapabilities>;\n /** Switches or the system's answers changed. */\n onChange(listener: () => void): Unsubscribe;\n };\n /** Dictation from anywhere. With the `dictation` capability. */\n readonly dictation?: DesktopDictation;\n}\n\n/**\n * The global an app's preload defines when it records other apps' audio for\n * the Opengeni pages it shows, without being an Opengeni desktop shell: an\n * Electron app that embeds Opengeni's meetings. `@opengeni/desktop` has the\n * main-process side and the preload helper that defines it.\n */\nexport const DESKTOP_SYSTEM_AUDIO_GLOBAL = \"opengeniSystemAudio\";\n\n/**\n * The global an app's preload defines for dictation from anywhere when it\n * isn't an Opengeni desktop shell: `exposeDictation()` from\n * `@opengeni/desktop/preload/dictation`, answered in the main process by\n * `handleDictationIpc()` from `@opengeni/desktop/dictation`.\n */\nexport const DESKTOP_DICTATION_GLOBAL = \"opengeniDictation\";\n\n/** Dictation from the app this page runs in, or null outside one that offers it. */\nexport function getDesktopDictation(\n bridge: DesktopBridge | null = getDesktopBridge(),\n): DesktopDictation | null {\n if (bridge?.capabilities.includes(\"dictation\") && bridge.dictation) return bridge.dictation;\n const candidate = (globalThis as Record<string, unknown>)[DESKTOP_DICTATION_GLOBAL];\n if (!candidate || typeof candidate !== \"object\") return null;\n const dictation = candidate as Partial<DesktopDictation>;\n return typeof dictation.status === \"function\" &&\n typeof dictation.onRequest === \"function\" &&\n typeof dictation.report === \"function\"\n ? (dictation as DesktopDictation)\n : null;\n}\n\n/** Other apps' audio from the app this page runs in, or null outside one that can record it. */\nexport function getDesktopSystemAudio(\n bridge: DesktopBridge | null = getDesktopBridge(),\n): DesktopSystemAudio | null {\n if (bridge?.capabilities.includes(\"systemAudio\") && bridge.systemAudio) return bridge.systemAudio;\n const candidate = (globalThis as Record<string, unknown>)[DESKTOP_SYSTEM_AUDIO_GLOBAL];\n if (!candidate || typeof candidate !== \"object\") return null;\n const audio = candidate as Partial<DesktopSystemAudio>;\n return typeof audio.start === \"function\" &&\n typeof audio.stop === \"function\" &&\n typeof audio.onSamples === \"function\" &&\n typeof audio.onEnded === \"function\"\n ? (audio as DesktopSystemAudio)\n : null;\n}\n\n/**\n * The global an app's preload defines when it offers to record calls for the\n * Opengeni pages it shows, without being an Opengeni desktop shell.\n * `@opengeni/desktop` has the main-process side and the preload helper that\n * defines it.\n */\nexport const DESKTOP_MEETING_DETECTION_GLOBAL = \"opengeniMeetingDetection\";\n\n/** Call detection from the app this page runs in, or null outside one that offers it. */\nexport function getDesktopMeetingDetection(\n bridge: DesktopBridge | null = getDesktopBridge(),\n): DesktopMeetingDetection | null {\n if (bridge?.capabilities.includes(\"meetingDetection\") && bridge.meetingDetection) {\n return bridge.meetingDetection;\n }\n const candidate = (globalThis as Record<string, unknown>)[DESKTOP_MEETING_DETECTION_GLOBAL];\n if (!candidate || typeof candidate !== \"object\") return null;\n const detection = candidate as Partial<DesktopMeetingDetection>;\n return typeof detection.status === \"function\" &&\n typeof detection.update === \"function\" &&\n typeof detection.setRecording === \"function\" &&\n typeof detection.onRequest === \"function\" &&\n typeof detection.onChange === \"function\"\n ? (detection as DesktopMeetingDetection)\n : null;\n}\n\n/** The bridge when the page runs inside a desktop app, else null. */\nexport function getDesktopBridge(): DesktopBridge | null {\n const candidate = (globalThis as Record<string, unknown>)[DESKTOP_BRIDGE_GLOBAL];\n if (!candidate || typeof candidate !== \"object\") return null;\n const bridge = candidate as Partial<DesktopBridge>;\n return bridge.version === DESKTOP_BRIDGE_VERSION ? (bridge as DesktopBridge) : null;\n}\n\nexport function hasDesktopCapability(\n bridge: DesktopBridge | null,\n capability: DesktopCapability,\n): boolean {\n return Boolean(bridge?.capabilities.includes(capability));\n}\n\n/** IPC channels between the preload scripts and the main process. */\nexport const DESKTOP_IPC = {\n accountsList: \"og:accounts:list\",\n accountsSwitch: \"og:accounts:switch\",\n accountsAdd: \"og:accounts:add\",\n accountsSignOut: \"og:accounts:sign-out\",\n accountsSetWorkspace: \"og:accounts:set-workspace\",\n accountsRestoreWebSession: \"og:accounts:restore-web-session\",\n accountsChanged: \"og:accounts:changed\",\n computerStatus: \"og:computer:status\",\n computerConnect: \"og:computer:connect\",\n computerPause: \"og:computer:pause\",\n computerResume: \"og:computer:resume\",\n computerRequestPermission: \"og:computer:request-permission\",\n computerDisconnect: \"og:computer:disconnect\",\n computerChanged: \"og:computer:changed\",\n openExternal: \"og:open-external\",\n captureWindow: \"og:capture-window\",\n command: \"og:command\",\n menuActionsSet: \"og:menu-actions:set\",\n menuAction: \"og:menu-action\",\n appearanceSet: \"og:appearance:set\",\n appShotsStatus: \"og:app-shots:status\",\n appShotsUpdate: \"og:app-shots:update\",\n appShotsRequestPermission: \"og:app-shots:request-permission\",\n appShotsCaptured: \"og:app-shots:captured\",\n appShotsChanged: \"og:app-shots:changed\",\n updatesState: \"og:updates:state\",\n updatesInstall: \"og:updates:install\",\n updatesChanged: \"og:updates:changed\",\n systemAudioStart: \"og:system-audio:start\",\n systemAudioStop: \"og:system-audio:stop\",\n systemAudioSamples: \"og:system-audio:samples\",\n systemAudioEnded: \"og:system-audio:ended\",\n meetingDetectionStatus: \"og:meeting-detection:status\",\n meetingDetectionUpdate: \"og:meeting-detection:update\",\n meetingDetectionRecording: \"og:meeting-detection:recording\",\n meetingDetectionListen: \"og:meeting-detection:listen\",\n meetingDetectionRequest: \"og:meeting-detection:request\",\n meetingDetectionChanged: \"og:meeting-detection:changed\",\n capabilitiesStatus: \"og:capabilities:status\",\n capabilitiesUpdate: \"og:capabilities:update\",\n capabilitiesRequestMicrophone: \"og:capabilities:request-microphone\",\n capabilitiesChanged: \"og:capabilities:changed\",\n dictationStatus: \"og:dictation:status\",\n dictationUpdate: \"og:dictation:update\",\n dictationRequestPermission: \"og:dictation:request-permission\",\n dictationHistory: \"og:dictation:history\",\n dictationClearHistory: \"og:dictation:clear-history\",\n dictationHistoryAudio: \"og:dictation:history-audio\",\n dictationTranscribeAgain: \"og:dictation:transcribe-again\",\n /** The page starts (true) or stops (false) recording for the shortcuts. */\n dictationListen: \"og:dictation:listen\",\n dictationRequest: \"og:dictation:request\",\n dictationReport: \"og:dictation:report\",\n dictationChanged: \"og:dictation:changed\",\n welcomeState: \"og:welcome:state\",\n welcomeSignIn: \"og:welcome:sign-in\",\n welcomeCancel: \"og:welcome:cancel\",\n welcomeRetry: \"og:welcome:retry\",\n welcomeChanged: \"og:welcome:changed\",\n} as const;\n\n/** The account the window should show, while its server can't be reached. */\nexport interface WelcomeUnreachable {\n /** The host a person recognizes, e.g. app.opengeni.ai. */\n server: string;\n /** A try is in progress. */\n retrying: boolean;\n}\n\n/** What the first-run page shows while there is no account to show. */\nexport interface WelcomeState {\n productName: string;\n defaultServerUrl: string;\n /** The page offers \"Use another server\"; an app made for one server doesn't. */\n otherServers?: boolean;\n /** The server a browser sign-in is waiting on. */\n pendingServer: string | null;\n error: string | null;\n /** An account is signed in, so the page can go back to it. */\n canCancel: boolean;\n /** The page stands in for an account whose server is out of reach; it keeps trying. */\n unreachable: WelcomeUnreachable | null;\n}\n\n/** The first-run page's bridge (`window.opengeniDesktopWelcome`). */\nexport interface DesktopWelcomeBridge {\n state(): Promise<WelcomeState>;\n signIn(serverUrl: string): Promise<void>;\n cancel(): Promise<void>;\n /** Try the unreachable account's server again now. */\n retry(): Promise<void>;\n onChange(listener: (state: WelcomeState) => void): Unsubscribe;\n}\n\nexport const DESKTOP_WELCOME_GLOBAL = \"opengeniDesktopWelcome\";\n"],"mappings":"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","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-AUYSHHA3.js";
3
+ } from "./chunk-KBRGFPKB.js";
4
4
 
5
5
  // src/embedding-client.ts
6
6
  function statedMembership(membership) {
@@ -351,4 +351,4 @@ function usageQuery(query) {
351
351
  export {
352
352
  OpenGeniEmbeddingClient
353
353
  };
354
- //# sourceMappingURL=chunk-KTHOZ4QW.js.map
354
+ //# sourceMappingURL=chunk-L6PBDLOY.js.map
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  OpenGeniClient,
11
11
  sessionEventStreamCoveredThrough
12
- } from "./chunk-JJFUWLVG.js";
12
+ } from "./chunk-FURF2L6A.js";
13
13
  import {
14
14
  OpenGeniApiError
15
15
  } from "./chunk-X5U35XMP.js";
@@ -1987,4 +1987,4 @@ export {
1987
1987
  sanitizeOpenGeniSiteToolCallRequest,
1988
1988
  sanitizeOpenGeniSiteToolInvokeRequest
1989
1989
  };
1990
- //# sourceMappingURL=chunk-PEOUZKQA.js.map
1990
+ //# sourceMappingURL=chunk-LUTD2C2Z.js.map
@@ -267,4 +267,4 @@ export {
267
267
  GENERATED_VIDEO_MAX_BYTES,
268
268
  KNOWN_USAGE_EVENT_TYPES
269
269
  };
270
- //# sourceMappingURL=chunk-TP7SEFOY.js.map
270
+ //# sourceMappingURL=chunk-MRH5RX74.js.map