@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.
- package/README.md +13 -0
- package/dist/adapters/next.js +4 -4
- package/dist/artifacts.js +7 -7
- package/dist/automations.js +8 -2
- package/dist/automations.js.map +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +8 -6
- package/dist/chat/index.js +9 -9
- package/dist/{chunk-PH56JDUM.js → chunk-3A5TO2I4.js} +2 -2
- package/dist/{chunk-7GR6TOEV.js → chunk-4UPT3FIF.js} +2 -2
- package/dist/{chunk-4X3UGNLW.js → chunk-5TS632DC.js} +4 -4
- package/dist/{chunk-7WJL2ZWY.js → chunk-B2BGVH5Y.js} +1 -1
- package/dist/chunk-B2BGVH5Y.js.map +1 -0
- package/dist/{chunk-CKOUDEOS.js → chunk-CYCINFDI.js} +2 -2
- package/dist/chunk-CYCINFDI.js.map +1 -0
- package/dist/{chunk-YTJK64EV.js → chunk-D37KNKO6.js} +2 -2
- package/dist/{chunk-ASMIDUEA.js → chunk-EN5VEIM7.js} +2 -2
- package/dist/chunk-GZYZT22T.js +260 -0
- package/dist/chunk-GZYZT22T.js.map +1 -0
- package/dist/{chunk-ULUWGJBH.js → chunk-IZA6XTJ2.js} +2 -2
- package/dist/{chunk-472T6U2J.js → chunk-OON64SZB.js} +4 -4
- package/dist/{chunk-N2LADGI4.js → chunk-SRWDF5FG.js} +2 -2
- package/dist/{chunk-LQCTDGG6.js → chunk-U54UBB7D.js} +47 -1
- package/dist/{chunk-LQCTDGG6.js.map → chunk-U54UBB7D.js.map} +1 -1
- package/dist/{chunk-CLWOTPX5.js → chunk-U6YX67CO.js} +2 -2
- package/dist/{chunk-ZKKWTOIZ.js → chunk-ZZ4P5QTM.js} +207 -173
- package/dist/chunk-ZZ4P5QTM.js.map +1 -0
- package/dist/client.d.ts +13 -1
- package/dist/codex-realtime-controller.js +2 -2
- package/dist/core.d.ts +1 -1
- package/dist/core.js +9 -7
- package/dist/document-authority.js +6 -6
- package/dist/editable-artifacts.js +1 -1
- package/dist/errors.d.ts +6 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +22 -222
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +2 -0
- package/dist/interaction.js +2 -2
- package/dist/model-context.d.ts +1 -1
- package/dist/realtime.js +2 -2
- package/dist/session-list-entries.d.ts +1 -0
- package/dist/session-list-entries.js +7 -0
- package/dist/session-proxy.js +4 -4
- package/dist/site-browser-runtime.gen.d.ts +1 -1
- package/dist/site-document.js +1 -1
- package/dist/site-document.js.map +1 -1
- package/dist/site.js +7 -7
- package/dist/tenant-workspaces.js +2 -2
- package/dist/{tools-IWJHYNZE.js → tools-LZISRKDU.js} +3 -3
- package/dist/tools-LZISRKDU.js.map +1 -0
- package/dist/types.d.ts +92 -2
- package/package.json +7 -3
- package/src/automations-client.ts +8 -2
- package/src/browser.ts +1 -0
- package/src/client.ts +237 -185
- package/src/core.ts +1 -0
- package/src/errors.ts +69 -0
- package/src/index.ts +9 -0
- package/src/interaction.ts +2 -0
- package/src/model-context.ts +1 -0
- package/src/session-list-entries.ts +1 -0
- package/src/site-browser-runtime.gen.ts +1 -1
- package/src/types.ts +122 -0
- package/dist/chunk-7WJL2ZWY.js.map +0 -1
- package/dist/chunk-CKOUDEOS.js.map +0 -1
- package/dist/chunk-ZKKWTOIZ.js.map +0 -1
- /package/dist/{chunk-PH56JDUM.js.map → chunk-3A5TO2I4.js.map} +0 -0
- /package/dist/{chunk-7GR6TOEV.js.map → chunk-4UPT3FIF.js.map} +0 -0
- /package/dist/{chunk-4X3UGNLW.js.map → chunk-5TS632DC.js.map} +0 -0
- /package/dist/{chunk-YTJK64EV.js.map → chunk-D37KNKO6.js.map} +0 -0
- /package/dist/{chunk-ASMIDUEA.js.map → chunk-EN5VEIM7.js.map} +0 -0
- /package/dist/{chunk-ULUWGJBH.js.map → chunk-IZA6XTJ2.js.map} +0 -0
- /package/dist/{chunk-472T6U2J.js.map → chunk-OON64SZB.js.map} +0 -0
- /package/dist/{chunk-N2LADGI4.js.map → chunk-SRWDF5FG.js.map} +0 -0
- /package/dist/{chunk-CLWOTPX5.js.map → chunk-U6YX67CO.js.map} +0 -0
- /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
|
package/dist/adapters/next.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSessionProxyHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5TS632DC.js";
|
|
4
4
|
import "../chunk-UM4ZXXJR.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
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
|
};
|
package/dist/automations.js
CHANGED
|
@@ -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) {
|
package/dist/automations.js.map
CHANGED
|
@@ -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;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,aACJ,aACA,UACA,SAC2B;AAC3B,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,wBAAwB,mBAAmB,QAAQ,CAAC;AAAA,MACrG;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,cAAc,aAAqB,UAAiC;AACxE,UAAM,KAAK,OAAO;AAAA,MAChB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,wBAAwB,mBAAmB,QAAQ,CAAC;AAAA,
|
|
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,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;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,aACJ,aACA,UACA,SAC2B;AAC3B,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,wBAAwB,mBAAmB,QAAQ,CAAC;AAAA,MACrG;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,cAAc,aAAqB,UAAiC;AACxE,UAAM,KAAK,OAAO;AAAA,MAChB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,wBAAwB,mBAAmB,QAAQ,CAAC;AAAA,MACrG;AAAA,MACA,CAAC;AAAA,MACD,EAAE,cAAc,OAAO;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAM,aAAa,aAAmD;AACpE,UAAM,SAAS,MAAM,KAAK,OAAO;AAAA,MAC/B;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC;AAAA,IACnD;AACA,WAAO,OAAO;AAAA,EAChB;AAAA,EAEA,MAAM,cACJ,aACA,SAC4B;AAC5B,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,cACJ,aACA,WACA,SAC4B;AAC5B,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,mBAAmB,WAAW,CAAC,yBAAyB,mBAAmB,SAAS,CAAC;AAAA,MACvG;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,eACJ,aACA,WACA,kBACe;AACf,UAAM,KAAK,OAAO;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-
|
|
8
|
+
} from "./chunk-D37KNKO6.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
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-
|
|
17
|
-
import "./chunk-
|
|
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-
|
|
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
|
};
|
package/dist/chat/index.js
CHANGED
|
@@ -6,27 +6,27 @@ import {
|
|
|
6
6
|
createWorkspaceIdResolver,
|
|
7
7
|
isUuid,
|
|
8
8
|
uuidV5
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-SRWDF5FG.js";
|
|
10
10
|
import {
|
|
11
11
|
EMPTY_FINAL_REPLY_NOTICE,
|
|
12
12
|
OpenGeniEmbeddingClient,
|
|
13
13
|
turnCompletedWithEmptyFinalReply
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
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-
|
|
20
|
+
import "../chunk-ZZ4P5QTM.js";
|
|
21
21
|
import {
|
|
22
22
|
parseSseStream
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
135
|
+
//# sourceMappingURL=chunk-3A5TO2I4.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
OpenGeniStreamError,
|
|
3
3
|
isAbortError,
|
|
4
4
|
isRetryableStreamError
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
6
|
+
} from "./chunk-4UPT3FIF.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENGENI_API_CONTRACT_HEADER,
|
|
9
9
|
OPENGENI_API_CONTRACT_REVISION
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B2BGVH5Y.js";
|
|
11
11
|
import {
|
|
12
12
|
OpenGeniApiError,
|
|
13
13
|
OpenGeniSetupError
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
1119
|
+
//# sourceMappingURL=chunk-5TS632DC.js.map
|