@opengeni/sdk 1.4.0 → 1.4.2

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 (38) hide show
  1. package/README.md +12 -0
  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-GYM54GKM.js → chunk-DTIMLEPB.js} +1 -1
  7. package/dist/chunk-DTIMLEPB.js.map +1 -0
  8. package/dist/{chunk-ZNC44QEX.js → chunk-JOI7XCG6.js} +45 -14
  9. package/dist/chunk-JOI7XCG6.js.map +1 -0
  10. package/dist/{chunk-LEBDXYMA.js → chunk-TRUFUTDI.js} +2 -2
  11. package/dist/{chunk-FYQAMXDW.js → chunk-TX6ED3AP.js} +108 -3
  12. package/dist/chunk-TX6ED3AP.js.map +1 -0
  13. package/dist/{chunk-D534PIXF.js → chunk-XIQIV4VL.js} +2 -2
  14. package/dist/{chunk-CA2T7QT4.js → chunk-XPWH3HKG.js} +2 -2
  15. package/dist/{chunk-MXV5O25O.js → chunk-YWLJGEUB.js} +2 -2
  16. package/dist/{chunk-BVIIRSJY.js → chunk-ZOSRUR2Q.js} +2 -2
  17. package/dist/codex-realtime-controller.js +1 -1
  18. package/dist/core.js +3 -3
  19. package/dist/document-authority.js +3 -3
  20. package/dist/editable-artifacts.js +1 -1
  21. package/dist/index.js +8 -8
  22. package/dist/realtime.js +1 -1
  23. package/dist/session-proxy.d.ts +29 -6
  24. package/dist/session-proxy.js +2 -2
  25. package/dist/site.js +3 -3
  26. package/dist/types.d.ts +17 -0
  27. package/package.json +3 -3
  28. package/src/codex-realtime-controller.ts +65 -14
  29. package/src/session-proxy.ts +184 -7
  30. package/src/types.ts +15 -0
  31. package/dist/chunk-FYQAMXDW.js.map +0 -1
  32. package/dist/chunk-GYM54GKM.js.map +0 -1
  33. package/dist/chunk-ZNC44QEX.js.map +0 -1
  34. /package/dist/{chunk-LEBDXYMA.js.map → chunk-TRUFUTDI.js.map} +0 -0
  35. /package/dist/{chunk-D534PIXF.js.map → chunk-XIQIV4VL.js.map} +0 -0
  36. /package/dist/{chunk-CA2T7QT4.js.map → chunk-XPWH3HKG.js.map} +0 -0
  37. /package/dist/{chunk-MXV5O25O.js.map → chunk-YWLJGEUB.js.map} +0 -0
  38. /package/dist/{chunk-BVIIRSJY.js.map → chunk-ZOSRUR2Q.js.map} +0 -0
package/README.md CHANGED
@@ -194,6 +194,18 @@ files and applies those choices to the request the hook returns. Voice input
194
194
  "Archive" when they are off, shows Site previews as unavailable without a
195
195
  request, and shows the composer microphone only when `voiceInput.available`.
196
196
 
197
+ Live voice (speech-to-speech) is forwarded the same way unless
198
+ `realtimeVoice: false`: the workspace's voice model catalog and the call routes
199
+ under `.../sessions/{id}/realtime` (start, provider connect, heartbeat,
200
+ activate, transcript sync, end). Opengeni still checks the user's
201
+ `sessions:control` permission, binds the call to that user and browser, runs
202
+ spoken requests as steers of the same chat, and meters deployment-funded voice
203
+ against your credits. `authorizeSession` runs on every call route, and
204
+ `beforeForwardMessage` sees `delivery: "realtime"` when a call starts (refuse
205
+ it, or return `mcpCredentialUpdates`; the proxy also refreshes the `toolServer`
206
+ token) and before transcripts and spoken requests are saved (refuse them, or add
207
+ `modelContext`, which must be the same when a request is retried).
208
+
197
209
  `listSessionPage` includes personal pinned details by default. A caller with a
198
210
  separate `pinsOnly: true` read can pass `includePinned: false` on ordinary pages
199
211
  to avoid repeatedly loading those details. Ordinary pages still exclude pinned
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createSessionProxyHandler
3
- } from "../chunk-FYQAMXDW.js";
3
+ } from "../chunk-TX6ED3AP.js";
4
4
  import "../chunk-UM4ZXXJR.js";
5
5
  import "../chunk-U6CV2SXO.js";
6
6
  import "../chunk-APXVSSSY.js";
7
- import "../chunk-GYM54GKM.js";
7
+ import "../chunk-DTIMLEPB.js";
8
8
  import "../chunk-V6GIY62B.js";
9
9
 
10
10
  // src/adapters/next.ts
package/dist/artifacts.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-MXV5O25O.js";
4
- import "./chunk-CA2T7QT4.js";
5
- import "./chunk-BVIIRSJY.js";
3
+ } from "./chunk-YWLJGEUB.js";
4
+ import "./chunk-XPWH3HKG.js";
5
+ import "./chunk-ZOSRUR2Q.js";
6
6
  import "./chunk-VPVMLM7Q.js";
7
7
  import "./chunk-APXVSSSY.js";
8
- import "./chunk-GYM54GKM.js";
8
+ import "./chunk-DTIMLEPB.js";
9
9
  import "./chunk-NC57YMUO.js";
10
10
  import "./chunk-V6GIY62B.js";
11
11
  export {
package/dist/browser.js CHANGED
@@ -8,13 +8,13 @@ import {
8
8
  } from "./chunk-4SMEOV3P.js";
9
9
  import {
10
10
  OpenGeniClient
11
- } from "./chunk-BVIIRSJY.js";
11
+ } from "./chunk-ZOSRUR2Q.js";
12
12
  import "./chunk-VPVMLM7Q.js";
13
13
  import "./chunk-APXVSSSY.js";
14
14
  import {
15
15
  OPENGENI_API_CONTRACT_HEADER,
16
16
  OPENGENI_API_CONTRACT_REVISION
17
- } from "./chunk-GYM54GKM.js";
17
+ } from "./chunk-DTIMLEPB.js";
18
18
  import "./chunk-NC57YMUO.js";
19
19
  import {
20
20
  OpenGeniAllowanceExhaustedError,
@@ -11,18 +11,18 @@ import {
11
11
  EMPTY_FINAL_REPLY_NOTICE,
12
12
  OpenGeniEmbeddingClient,
13
13
  turnCompletedWithEmptyFinalReply
14
- } from "../chunk-D534PIXF.js";
15
- import "../chunk-MXV5O25O.js";
16
- import "../chunk-CA2T7QT4.js";
14
+ } from "../chunk-XIQIV4VL.js";
15
+ import "../chunk-YWLJGEUB.js";
16
+ import "../chunk-XPWH3HKG.js";
17
17
  import {
18
18
  chatDefaults
19
19
  } from "../chunk-UM4ZXXJR.js";
20
- import "../chunk-BVIIRSJY.js";
20
+ import "../chunk-ZOSRUR2Q.js";
21
21
  import "../chunk-VPVMLM7Q.js";
22
22
  import {
23
23
  parseSseStream
24
24
  } from "../chunk-APXVSSSY.js";
25
- import "../chunk-GYM54GKM.js";
25
+ import "../chunk-DTIMLEPB.js";
26
26
  import "../chunk-NC57YMUO.js";
27
27
  import {
28
28
  OpenGeniApiError,
@@ -250,4 +250,4 @@ export {
250
250
  GENERATED_VIDEO_MAX_BYTES,
251
251
  KNOWN_USAGE_EVENT_TYPES
252
252
  };
253
- //# sourceMappingURL=chunk-GYM54GKM.js.map
253
+ //# sourceMappingURL=chunk-DTIMLEPB.js.map