@opengeni/sdk 5.1.0-canary.1 → 6.0.0-canary.0
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/dist/artifact-catalog.d.ts +31 -0
- package/dist/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +5 -5
- package/dist/chat/index.js.map +1 -1
- package/dist/chat/types.d.ts +4 -3
- package/dist/{chunk-EEMS7J5L.js → chunk-4ZQQQBOH.js} +2 -2
- package/dist/{chunk-6ZXNC3HS.js → chunk-64S3VKJU.js} +123 -103
- package/dist/chunk-64S3VKJU.js.map +1 -0
- package/dist/{chunk-VIPDPUA4.js → chunk-CFSYTYMA.js} +2 -2
- package/dist/{chunk-2NJBP2PS.js → chunk-CMEU67C4.js} +5 -1
- package/dist/chunk-CMEU67C4.js.map +1 -0
- package/dist/{chunk-5PBXPPUW.js → chunk-IZH5F7QC.js} +50 -2
- package/dist/chunk-IZH5F7QC.js.map +1 -0
- package/dist/{chunk-CDQUIE4A.js → chunk-VDACQXJZ.js} +50 -2
- package/dist/chunk-VDACQXJZ.js.map +1 -0
- package/dist/client.d.ts +39 -29
- package/dist/company-brain.d.ts +1 -11
- package/dist/core.js +3 -3
- package/dist/document-authority-client.d.ts +17 -1
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +1 -1
- package/dist/embedding-client.d.ts +13 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.js +6 -21
- package/dist/index.js.map +1 -1
- package/dist/knowledge.d.ts +5 -0
- package/dist/knowledge.js +11 -0
- package/dist/knowledge.js.map +1 -0
- 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 +3 -3
- package/dist/types.d.ts +29 -2
- package/dist/workspace-instruction-policies.d.ts +2 -2
- package/dist/workspace-state.d.ts +8 -71
- package/package.json +7 -3
- package/src/artifact-catalog.ts +41 -0
- package/src/chat/types.ts +4 -3
- package/src/client.ts +216 -155
- package/src/company-brain.ts +0 -40
- package/src/document-authority-client.ts +65 -0
- package/src/embedding-client.ts +78 -0
- package/src/index.ts +9 -15
- package/src/knowledge.ts +50 -0
- package/src/site-browser-runtime.gen.ts +1 -1
- package/src/types.ts +36 -1
- package/src/workspace-instruction-policies.ts +2 -1
- package/src/workspace-state.ts +8 -82
- package/dist/chunk-2NJBP2PS.js.map +0 -1
- package/dist/chunk-5PBXPPUW.js.map +0 -1
- package/dist/chunk-6ZXNC3HS.js.map +0 -1
- package/dist/chunk-CDQUIE4A.js.map +0 -1
- /package/dist/{chunk-EEMS7J5L.js.map → chunk-4ZQQQBOH.js.map} +0 -0
- /package/dist/{chunk-VIPDPUA4.js.map → chunk-CFSYTYMA.js.map} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RetainedArtifactReference } from "./types.js";
|
|
2
|
+
export type ArtifactCatalogKind = "site" | "document" | "spreadsheet" | "presentation" | "image" | "file";
|
|
3
|
+
/** Native IDs are unique within a kind; use `${kind}:${id}` as a UI key. */
|
|
4
|
+
export type ArtifactCatalogItem = {
|
|
5
|
+
id: string;
|
|
6
|
+
kind: ArtifactCatalogKind;
|
|
7
|
+
title: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
status: "active" | "archived";
|
|
11
|
+
/** Present only when the viewer can read this session. */
|
|
12
|
+
sourceSessionId?: string;
|
|
13
|
+
versionId?: string;
|
|
14
|
+
file?: RetainedArtifactReference;
|
|
15
|
+
filename?: string;
|
|
16
|
+
contentType?: string;
|
|
17
|
+
sizeBytes?: number;
|
|
18
|
+
};
|
|
19
|
+
export type ArtifactCatalogListOptions = {
|
|
20
|
+
sourceSessionId?: string;
|
|
21
|
+
q?: string;
|
|
22
|
+
kind?: ArtifactCatalogKind;
|
|
23
|
+
sort?: "updated" | "newest" | "title";
|
|
24
|
+
status?: "active" | "archived";
|
|
25
|
+
limit?: number;
|
|
26
|
+
cursor?: string;
|
|
27
|
+
};
|
|
28
|
+
export type ArtifactCatalogListResponse = {
|
|
29
|
+
items: ArtifactCatalogItem[];
|
|
30
|
+
nextCursor: string | null;
|
|
31
|
+
};
|
package/dist/artifacts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4ZQQQBOH.js";
|
|
4
|
+
import "./chunk-IZH5F7QC.js";
|
|
5
|
+
import "./chunk-64S3VKJU.js";
|
|
6
6
|
import "./chunk-QTBAMHEF.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-CMEU67C4.js";
|
|
8
8
|
import "./chunk-OO5LPTO7.js";
|
|
9
9
|
export {
|
|
10
10
|
OpenGeniClient
|
package/dist/browser.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-FMLDFJ2Q.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-64S3VKJU.js";
|
|
12
12
|
import "./chunk-QTBAMHEF.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENGENI_API_CONTRACT_HEADER,
|
|
15
15
|
OPENGENI_API_CONTRACT_REVISION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CMEU67C4.js";
|
|
17
17
|
import {
|
|
18
18
|
OpenGeniApiContractMismatchError,
|
|
19
19
|
OpenGeniApiError,
|
package/dist/chat/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniEmbeddingClient
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-VDACQXJZ.js";
|
|
4
|
+
import "../chunk-4ZQQQBOH.js";
|
|
5
|
+
import "../chunk-IZH5F7QC.js";
|
|
6
6
|
import {
|
|
7
7
|
parseSseStream
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-64S3VKJU.js";
|
|
9
9
|
import "../chunk-QTBAMHEF.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-CMEU67C4.js";
|
|
11
11
|
import {
|
|
12
12
|
OpenGeniApiError
|
|
13
13
|
} from "../chunk-OO5LPTO7.js";
|