@opengeni/sdk 7.6.1 → 7.7.0-canary.37090756480001

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 (77) hide show
  1. package/README.md +13 -0
  2. package/dist/adapters/next.js +4 -4
  3. package/dist/artifacts.js +7 -7
  4. package/dist/automations.js +8 -2
  5. package/dist/automations.js.map +1 -1
  6. package/dist/browser.d.ts +1 -1
  7. package/dist/browser.js +8 -6
  8. package/dist/chat/index.js +9 -9
  9. package/dist/{chunk-PH56JDUM.js → chunk-3A5TO2I4.js} +2 -2
  10. package/dist/{chunk-7GR6TOEV.js → chunk-4UPT3FIF.js} +2 -2
  11. package/dist/{chunk-4X3UGNLW.js → chunk-5TS632DC.js} +4 -4
  12. package/dist/{chunk-7WJL2ZWY.js → chunk-B2BGVH5Y.js} +1 -1
  13. package/dist/chunk-B2BGVH5Y.js.map +1 -0
  14. package/dist/{chunk-CKOUDEOS.js → chunk-CYCINFDI.js} +2 -2
  15. package/dist/chunk-CYCINFDI.js.map +1 -0
  16. package/dist/{chunk-YTJK64EV.js → chunk-D37KNKO6.js} +2 -2
  17. package/dist/{chunk-ASMIDUEA.js → chunk-EN5VEIM7.js} +2 -2
  18. package/dist/chunk-GZYZT22T.js +260 -0
  19. package/dist/chunk-GZYZT22T.js.map +1 -0
  20. package/dist/{chunk-ULUWGJBH.js → chunk-IZA6XTJ2.js} +2 -2
  21. package/dist/{chunk-472T6U2J.js → chunk-OON64SZB.js} +4 -4
  22. package/dist/{chunk-N2LADGI4.js → chunk-SRWDF5FG.js} +2 -2
  23. package/dist/{chunk-LQCTDGG6.js → chunk-U54UBB7D.js} +47 -1
  24. package/dist/{chunk-LQCTDGG6.js.map → chunk-U54UBB7D.js.map} +1 -1
  25. package/dist/{chunk-CLWOTPX5.js → chunk-U6YX67CO.js} +2 -2
  26. package/dist/{chunk-ZKKWTOIZ.js → chunk-ZZ4P5QTM.js} +207 -173
  27. package/dist/chunk-ZZ4P5QTM.js.map +1 -0
  28. package/dist/client.d.ts +13 -1
  29. package/dist/codex-realtime-controller.js +2 -2
  30. package/dist/core.d.ts +1 -1
  31. package/dist/core.js +9 -7
  32. package/dist/document-authority.js +6 -6
  33. package/dist/editable-artifacts.js +1 -1
  34. package/dist/errors.d.ts +6 -0
  35. package/dist/index.d.ts +3 -2
  36. package/dist/index.js +22 -222
  37. package/dist/index.js.map +1 -1
  38. package/dist/interaction.d.ts +2 -0
  39. package/dist/interaction.js +2 -2
  40. package/dist/model-context.d.ts +1 -1
  41. package/dist/realtime.js +2 -2
  42. package/dist/session-list-entries.d.ts +1 -0
  43. package/dist/session-list-entries.js +7 -0
  44. package/dist/session-proxy.js +4 -4
  45. package/dist/site-browser-runtime.gen.d.ts +1 -1
  46. package/dist/site-document.js +1 -1
  47. package/dist/site-document.js.map +1 -1
  48. package/dist/site.js +7 -7
  49. package/dist/tenant-workspaces.js +2 -2
  50. package/dist/{tools-IWJHYNZE.js → tools-LZISRKDU.js} +3 -3
  51. package/dist/tools-LZISRKDU.js.map +1 -0
  52. package/dist/types.d.ts +92 -2
  53. package/package.json +7 -3
  54. package/src/automations-client.ts +8 -2
  55. package/src/browser.ts +1 -0
  56. package/src/client.ts +237 -185
  57. package/src/core.ts +1 -0
  58. package/src/errors.ts +69 -0
  59. package/src/index.ts +9 -0
  60. package/src/interaction.ts +2 -0
  61. package/src/model-context.ts +1 -0
  62. package/src/session-list-entries.ts +1 -0
  63. package/src/site-browser-runtime.gen.ts +1 -1
  64. package/src/types.ts +122 -0
  65. package/dist/chunk-7WJL2ZWY.js.map +0 -1
  66. package/dist/chunk-CKOUDEOS.js.map +0 -1
  67. package/dist/chunk-ZKKWTOIZ.js.map +0 -1
  68. /package/dist/{chunk-PH56JDUM.js.map → chunk-3A5TO2I4.js.map} +0 -0
  69. /package/dist/{chunk-7GR6TOEV.js.map → chunk-4UPT3FIF.js.map} +0 -0
  70. /package/dist/{chunk-4X3UGNLW.js.map → chunk-5TS632DC.js.map} +0 -0
  71. /package/dist/{chunk-YTJK64EV.js.map → chunk-D37KNKO6.js.map} +0 -0
  72. /package/dist/{chunk-ASMIDUEA.js.map → chunk-EN5VEIM7.js.map} +0 -0
  73. /package/dist/{chunk-ULUWGJBH.js.map → chunk-IZA6XTJ2.js.map} +0 -0
  74. /package/dist/{chunk-472T6U2J.js.map → chunk-OON64SZB.js.map} +0 -0
  75. /package/dist/{chunk-N2LADGI4.js.map → chunk-SRWDF5FG.js.map} +0 -0
  76. /package/dist/{chunk-CLWOTPX5.js.map → chunk-U6YX67CO.js.map} +0 -0
  77. /package/dist/{tools-IWJHYNZE.js.map → session-list-entries.js.map} +0 -0
package/README.md CHANGED
@@ -169,6 +169,19 @@ workspace, and `false` disables listing. Archive and restore go through
169
169
  sends only `{ initialMessage, idempotencyKey }`, so it needs the
170
170
  `createSession` hook.
171
171
 
172
+ `listSessionPage` includes personal pinned details by default. A caller with a
173
+ separate `pinsOnly: true` read can pass `includePinned: false` on ordinary pages
174
+ to avoid repeatedly loading those details. Ordinary pages still exclude pinned
175
+ rows; `pinsOnly: true` and `includePinned: false` cannot be combined. Older API
176
+ versions may ignore `includePinned` and return the default pin projection.
177
+
178
+ For navigation lists, `listSessionSummaryPage` uses the same filters, ordering,
179
+ pin rules and cursors, returning `SessionListEntry` records. Entries include
180
+ display/rename titles, creator, lifecycle, personal state and hierarchy counts;
181
+ prompts and execution configuration remain on `getSession`. Older APIs return
182
+ full pages that the SDK projects locally. Unknown filters/cursors still fail
183
+ explicitly rather than returning an unfiltered result.
184
+
172
185
  Every request calls `resolve`, then runs through `asUser(user, { source })`
173
186
  (there is no service-authority fallback) against exactly the resolved
174
187
  workspace. Only the native routes `OpenGeniProvider` and the conversation use
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createSessionProxyHandler
3
- } from "../chunk-4X3UGNLW.js";
3
+ } from "../chunk-5TS632DC.js";
4
4
  import "../chunk-UM4ZXXJR.js";
5
- import "../chunk-7GR6TOEV.js";
6
- import "../chunk-7WJL2ZWY.js";
7
- import "../chunk-LQCTDGG6.js";
5
+ import "../chunk-4UPT3FIF.js";
6
+ import "../chunk-B2BGVH5Y.js";
7
+ import "../chunk-U54UBB7D.js";
8
8
 
9
9
  // src/adapters/next.ts
10
10
  function toNextRouteHandlers(handler) {
package/dist/artifacts.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-ASMIDUEA.js";
4
- import "./chunk-PH56JDUM.js";
5
- import "./chunk-ZKKWTOIZ.js";
6
- import "./chunk-7GR6TOEV.js";
7
- import "./chunk-7WJL2ZWY.js";
8
- import "./chunk-CKOUDEOS.js";
9
- import "./chunk-LQCTDGG6.js";
3
+ } from "./chunk-EN5VEIM7.js";
4
+ import "./chunk-3A5TO2I4.js";
5
+ import "./chunk-ZZ4P5QTM.js";
6
+ import "./chunk-4UPT3FIF.js";
7
+ import "./chunk-B2BGVH5Y.js";
8
+ import "./chunk-CYCINFDI.js";
9
+ import "./chunk-U54UBB7D.js";
10
10
  export {
11
11
  OpenGeniClient
12
12
  };
@@ -27,7 +27,10 @@ var OpenGeniAutomationsClient = class {
27
27
  async disableSource(workspaceId, sourceId) {
28
28
  await this.client.requestJson(
29
29
  "DELETE",
30
- `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}`
30
+ `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}`,
31
+ void 0,
32
+ {},
33
+ { responseType: "void" }
31
34
  );
32
35
  }
33
36
  async listTriggers(workspaceId) {
@@ -54,7 +57,10 @@ var OpenGeniAutomationsClient = class {
54
57
  async disableTrigger(workspaceId, triggerId, expectedRevision) {
55
58
  await this.client.requestJson(
56
59
  "DELETE",
57
- `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers/${encodeURIComponent(triggerId)}?expectedRevision=${expectedRevision}`
60
+ `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers/${encodeURIComponent(triggerId)}?expectedRevision=${expectedRevision}`,
61
+ void 0,
62
+ {},
63
+ { responseType: "void" }
58
64
  );
59
65
  }
60
66
  async listRuns(workspaceId) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/automations-client.ts"],"sourcesContent":["import type {\n AutomationRun,\n AutomationSource,\n AutomationTrigger,\n AutomationWebhookResult,\n CreateAutomationSourceRequest,\n CreateAutomationTriggerRequest,\n TriggerAutomationManuallyRequest,\n UpdateAutomationSourceRequest,\n UpdateAutomationTriggerRequest,\n} from \"@opengeni/contracts\";\nimport type { OpenGeniClient as OpenGeniCoreClient } from \"./client\";\n\nexport type OpenGeniAutomationsTransport = Pick<OpenGeniCoreClient, \"requestJson\">;\n\nexport class OpenGeniAutomationsClient {\n constructor(private readonly client: OpenGeniAutomationsTransport) {}\n\n async listSources(workspaceId: string): Promise<AutomationSource[]> {\n const result = await this.client.requestJson<{ sources: AutomationSource[] }>(\n \"GET\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources`,\n );\n return result.sources;\n }\n\n async createSource(\n workspaceId: string,\n request: CreateAutomationSourceRequest,\n ): Promise<AutomationSource> {\n return await this.client.requestJson(\n \"POST\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources`,\n request,\n );\n }\n\n async updateSource(\n workspaceId: string,\n sourceId: string,\n request: UpdateAutomationSourceRequest,\n ): Promise<AutomationSource> {\n return await this.client.requestJson(\n \"PATCH\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}`,\n request,\n );\n }\n\n async disableSource(workspaceId: string, sourceId: string): Promise<void> {\n await this.client.requestJson(\n \"DELETE\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}`,\n );\n }\n\n async listTriggers(workspaceId: string): Promise<AutomationTrigger[]> {\n const result = await this.client.requestJson<{ triggers: AutomationTrigger[] }>(\n \"GET\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers`,\n );\n return result.triggers;\n }\n\n async createTrigger(\n workspaceId: string,\n request: CreateAutomationTriggerRequest,\n ): Promise<AutomationTrigger> {\n return await this.client.requestJson(\n \"POST\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers`,\n request,\n );\n }\n\n async updateTrigger(\n workspaceId: string,\n triggerId: string,\n request: UpdateAutomationTriggerRequest,\n ): Promise<AutomationTrigger> {\n return await this.client.requestJson(\n \"PATCH\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers/${encodeURIComponent(triggerId)}`,\n request,\n );\n }\n\n async disableTrigger(\n workspaceId: string,\n triggerId: string,\n expectedRevision: number,\n ): Promise<void> {\n await this.client.requestJson(\n \"DELETE\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers/${encodeURIComponent(triggerId)}?expectedRevision=${expectedRevision}`,\n );\n }\n\n async listRuns(workspaceId: string): Promise<AutomationRun[]> {\n const result = await this.client.requestJson<{ runs: AutomationRun[] }>(\n \"GET\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/runs`,\n );\n return result.runs;\n }\n\n async triggerManually(\n workspaceId: string,\n sourceId: string,\n request: TriggerAutomationManuallyRequest,\n ): Promise<AutomationWebhookResult> {\n return await this.client.requestJson(\n \"POST\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}/events`,\n request,\n );\n }\n}\n"],"mappings":";AAeO,IAAM,4BAAN,MAAgC;AAAA,EACrC,YAA6B,QAAsC;AAAtC;AAAA,EAAuC;AAAA,EAEpE,MAAM,YAAY,aAAkD;AAClE,UAAM,SAAS,MAAM,KAAK,OAAO;AAAA,MAC/B;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC;AAAA,IACnD;AACA,WAAO,OAAO;AAAA,EAChB;AAAA,EAEA,MAAM,aACJ,aACA,SAC2B;AAC3B,WAAO,MAAM,KAAK,OAAO;AAA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AAW,CAAC;AAAA,IACnD;AACA,WAAO,OAAO;AAAA,EAChB;AAAA,EAEA,MAAM,gBACJ,aACA,UACA,SACkC;AAClC,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,wBAAwB,mBAAmB,QAAQ,CAAC;AAAA,MACrG;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/automations-client.ts"],"sourcesContent":["import type {\n AutomationRun,\n AutomationSource,\n AutomationTrigger,\n AutomationWebhookResult,\n CreateAutomationSourceRequest,\n CreateAutomationTriggerRequest,\n TriggerAutomationManuallyRequest,\n UpdateAutomationSourceRequest,\n UpdateAutomationTriggerRequest,\n} from \"@opengeni/contracts\";\nimport type { OpenGeniClient as OpenGeniCoreClient } from \"./client\";\n\nexport type OpenGeniAutomationsTransport = Pick<OpenGeniCoreClient, \"requestJson\">;\n\nexport class OpenGeniAutomationsClient {\n constructor(private readonly client: OpenGeniAutomationsTransport) {}\n\n async listSources(workspaceId: string): Promise<AutomationSource[]> {\n const result = await this.client.requestJson<{ sources: AutomationSource[] }>(\n \"GET\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources`,\n );\n return result.sources;\n }\n\n async createSource(\n workspaceId: string,\n request: CreateAutomationSourceRequest,\n ): Promise<AutomationSource> {\n return await this.client.requestJson(\n \"POST\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources`,\n request,\n );\n }\n\n async updateSource(\n workspaceId: string,\n sourceId: string,\n request: UpdateAutomationSourceRequest,\n ): Promise<AutomationSource> {\n return await this.client.requestJson(\n \"PATCH\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}`,\n request,\n );\n }\n\n async disableSource(workspaceId: string, sourceId: string): Promise<void> {\n await this.client.requestJson<void>(\n \"DELETE\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}`,\n undefined,\n {},\n { responseType: \"void\" },\n );\n }\n\n async listTriggers(workspaceId: string): Promise<AutomationTrigger[]> {\n const result = await this.client.requestJson<{ triggers: AutomationTrigger[] }>(\n \"GET\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers`,\n );\n return result.triggers;\n }\n\n async createTrigger(\n workspaceId: string,\n request: CreateAutomationTriggerRequest,\n ): Promise<AutomationTrigger> {\n return await this.client.requestJson(\n \"POST\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers`,\n request,\n );\n }\n\n async updateTrigger(\n workspaceId: string,\n triggerId: string,\n request: UpdateAutomationTriggerRequest,\n ): Promise<AutomationTrigger> {\n return await this.client.requestJson(\n \"PATCH\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers/${encodeURIComponent(triggerId)}`,\n request,\n );\n }\n\n async disableTrigger(\n workspaceId: string,\n triggerId: string,\n expectedRevision: number,\n ): Promise<void> {\n await this.client.requestJson<void>(\n \"DELETE\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/triggers/${encodeURIComponent(triggerId)}?expectedRevision=${expectedRevision}`,\n undefined,\n {},\n { responseType: \"void\" },\n );\n }\n\n async listRuns(workspaceId: string): Promise<AutomationRun[]> {\n const result = await this.client.requestJson<{ runs: AutomationRun[] }>(\n \"GET\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/runs`,\n );\n return result.runs;\n }\n\n async triggerManually(\n workspaceId: string,\n sourceId: string,\n request: TriggerAutomationManuallyRequest,\n ): Promise<AutomationWebhookResult> {\n return await this.client.requestJson(\n \"POST\",\n `/v1/workspaces/${encodeURIComponent(workspaceId)}/automations/sources/${encodeURIComponent(sourceId)}/events`,\n request,\n );\n }\n}\n"],"mappings":";AAeO,IAAM,4BAAN,MAAgC;AAAA,EACrC,YAA6B,QAAsC;AAAtC;AAAA,EAAuC;AAAA,EAEpE,MAAM,YAAY,aAAkD;AAClE,UAAM,SAAS,MAAM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AO;AAAA,MAChB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,yBAAyB,mBAAmB,SAAS,CAAC,qBAAqB,gBAAgB;AAAA,MAC5I;AAAA,MACA,CAAC;AAAA,MACD,EAAE,cAAc,OAAO;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAM,SAAS,aAA+C;AAC5D,UAAM,SAAS,MAAM,KAAK,OAAO;AAAA,MAC/B;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC;AAAA,IACnD;AACA,WAAO,OAAO;AAAA,EAChB;AAAA,EAEA,MAAM,gBACJ,aACA,UACA,SACkC;AAClC,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,wBAAwB,mBAAmB,QAAQ,CAAC;AAAA,MACrG;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
package/dist/browser.d.ts CHANGED
@@ -4,7 +4,7 @@ export type { SessionMessageSearchRequest, SessionMessageSearchMatch, SessionMes
4
4
  export { OpenGeniToolCallError, OpenGeniToolReapprovalRequiredError, OpenGeniToolsClient, } from "./tools.js";
5
5
  export type { OpenGeniGeneratedTools, OpenGeniDynamicToolNode, OpenGeniToolCallOptions, OpenGeniToolFunction, OpenGeniToolsFacade, OpenGeniWorkspaceTools, } from "./tools.js";
6
6
  export type { FetchLike, FetchResponse, GetSessionOptions, OpenGeniClientOptions, OpenGeniRequestOptions, SendMessageInput, SteerMessageResult, TranscribeAudioInput, WorkspaceControlEventPage, } from "./client.js";
7
- export { OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniSetupError, OpenGeniAllowanceExhaustedError, OpenGeniSecureContextRequiredError, OpenGeniSessionListCursorError, OpenGeniStreamError, isRetryableStreamError, } from "./errors.js";
7
+ export { OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniSetupError, OpenGeniAllowanceExhaustedError, OpenGeniSecureContextRequiredError, OpenGeniSessionListCursorError, OpenGeniStreamError, formatErrorMessage, isRetryableStreamError, } from "./errors.js";
8
8
  export type { OpenGeniSecureContextRequiredReason } from "./errors.js";
9
9
  export { resolveWorkspaceVoiceInputEnabled } from "./transcription.js";
10
10
  export { OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION } from "./types.js";
package/dist/browser.js CHANGED
@@ -5,16 +5,16 @@ import {
5
5
  OpenGeniToolCallError,
6
6
  OpenGeniToolReapprovalRequiredError,
7
7
  OpenGeniToolsClient
8
- } from "./chunk-YTJK64EV.js";
8
+ } from "./chunk-D37KNKO6.js";
9
9
  import {
10
10
  OpenGeniClient
11
- } from "./chunk-ZKKWTOIZ.js";
12
- import "./chunk-7GR6TOEV.js";
11
+ } from "./chunk-ZZ4P5QTM.js";
12
+ import "./chunk-4UPT3FIF.js";
13
13
  import {
14
14
  OPENGENI_API_CONTRACT_HEADER,
15
15
  OPENGENI_API_CONTRACT_REVISION
16
- } from "./chunk-7WJL2ZWY.js";
17
- import "./chunk-CKOUDEOS.js";
16
+ } from "./chunk-B2BGVH5Y.js";
17
+ import "./chunk-CYCINFDI.js";
18
18
  import {
19
19
  OpenGeniAllowanceExhaustedError,
20
20
  OpenGeniApiContractMismatchError,
@@ -23,8 +23,9 @@ import {
23
23
  OpenGeniSessionListCursorError,
24
24
  OpenGeniSetupError,
25
25
  OpenGeniStreamError,
26
+ formatErrorMessage,
26
27
  isRetryableStreamError
27
- } from "./chunk-LQCTDGG6.js";
28
+ } from "./chunk-U54UBB7D.js";
28
29
  export {
29
30
  OPENGENI_API_CONTRACT_HEADER,
30
31
  OPENGENI_API_CONTRACT_REVISION,
@@ -39,6 +40,7 @@ export {
39
40
  OpenGeniToolCallError,
40
41
  OpenGeniToolReapprovalRequiredError,
41
42
  OpenGeniToolsClient,
43
+ formatErrorMessage,
42
44
  isRetryableStreamError,
43
45
  resolveWorkspaceVoiceInputEnabled
44
46
  };
@@ -6,27 +6,27 @@ import {
6
6
  createWorkspaceIdResolver,
7
7
  isUuid,
8
8
  uuidV5
9
- } from "../chunk-N2LADGI4.js";
9
+ } from "../chunk-SRWDF5FG.js";
10
10
  import {
11
11
  EMPTY_FINAL_REPLY_NOTICE,
12
12
  OpenGeniEmbeddingClient,
13
13
  turnCompletedWithEmptyFinalReply
14
- } from "../chunk-CLWOTPX5.js";
15
- import "../chunk-ASMIDUEA.js";
16
- import "../chunk-PH56JDUM.js";
14
+ } from "../chunk-U6YX67CO.js";
15
+ import "../chunk-EN5VEIM7.js";
16
+ import "../chunk-3A5TO2I4.js";
17
17
  import {
18
18
  chatDefaults
19
19
  } from "../chunk-UM4ZXXJR.js";
20
- import "../chunk-ZKKWTOIZ.js";
20
+ import "../chunk-ZZ4P5QTM.js";
21
21
  import {
22
22
  parseSseStream
23
- } from "../chunk-7GR6TOEV.js";
24
- import "../chunk-7WJL2ZWY.js";
25
- import "../chunk-CKOUDEOS.js";
23
+ } from "../chunk-4UPT3FIF.js";
24
+ import "../chunk-B2BGVH5Y.js";
25
+ import "../chunk-CYCINFDI.js";
26
26
  import {
27
27
  OpenGeniApiError,
28
28
  OpenGeniSetupError
29
- } from "../chunk-LQCTDGG6.js";
29
+ } from "../chunk-U54UBB7D.js";
30
30
 
31
31
  // src/chat/types.ts
32
32
  var OpenGeniChatError = class extends Error {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-ZKKWTOIZ.js";
3
+ } from "./chunk-ZZ4P5QTM.js";
4
4
 
5
5
  // src/document-authority-client.ts
6
6
  var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
@@ -132,4 +132,4 @@ var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
132
132
  export {
133
133
  OpenGeniDocumentAuthorityClient
134
134
  };
135
- //# sourceMappingURL=chunk-PH56JDUM.js.map
135
+ //# sourceMappingURL=chunk-3A5TO2I4.js.map
@@ -2,7 +2,7 @@ import {
2
2
  OpenGeniStreamError,
3
3
  isAbortError,
4
4
  isRetryableStreamError
5
- } from "./chunk-LQCTDGG6.js";
5
+ } from "./chunk-U54UBB7D.js";
6
6
 
7
7
  // src/sse.ts
8
8
  async function* parseSseStream(stream) {
@@ -298,4 +298,4 @@ export {
298
298
  withStreamInactivityTimeout,
299
299
  sessionEventStreamCoveredThrough
300
300
  };
301
- //# sourceMappingURL=chunk-7GR6TOEV.js.map
301
+ //# sourceMappingURL=chunk-4UPT3FIF.js.map
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-UM4ZXXJR.js";
4
4
  import {
5
5
  sessionEventStreamCoveredThrough
6
- } from "./chunk-7GR6TOEV.js";
6
+ } from "./chunk-4UPT3FIF.js";
7
7
  import {
8
8
  OPENGENI_API_CONTRACT_HEADER,
9
9
  OPENGENI_API_CONTRACT_REVISION
10
- } from "./chunk-7WJL2ZWY.js";
10
+ } from "./chunk-B2BGVH5Y.js";
11
11
  import {
12
12
  OpenGeniApiError,
13
13
  OpenGeniSetupError
14
- } from "./chunk-LQCTDGG6.js";
14
+ } from "./chunk-U54UBB7D.js";
15
15
 
16
16
  // src/message-links.ts
17
17
  var UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iu;
@@ -1116,4 +1116,4 @@ export {
1116
1116
  createSessionProxyHandler,
1117
1117
  artifactViewerCapability
1118
1118
  };
1119
- //# sourceMappingURL=chunk-4X3UGNLW.js.map
1119
+ //# sourceMappingURL=chunk-5TS632DC.js.map
@@ -249,4 +249,4 @@ export {
249
249
  GENERATED_VIDEO_MAX_BYTES,
250
250
  KNOWN_USAGE_EVENT_TYPES
251
251
  };
252
- //# sourceMappingURL=chunk-7WJL2ZWY.js.map
252
+ //# sourceMappingURL=chunk-B2BGVH5Y.js.map