@opengeni/sdk 7.1.1 → 7.2.0-canary.36239117573001
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 +7 -0
- package/dist/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +5 -5
- package/dist/{chunk-B7S4YVGX.js → chunk-2XGVG66G.js} +2 -2
- package/dist/{chunk-MPN5UJWE.js → chunk-HTXCZV7W.js} +2 -2
- package/dist/{chunk-PCVFOBSV.js → chunk-MBSACUH7.js} +2 -2
- package/dist/{chunk-E5WAYGHT.js → chunk-SN5ICTG6.js} +1 -1
- package/dist/chunk-SN5ICTG6.js.map +1 -0
- package/dist/{chunk-RAG3P2UV.js → chunk-TN5VV5D5.js} +2 -2
- package/dist/{chunk-NP7DDXHK.js → chunk-W2YQLWXT.js} +2 -2
- package/dist/core.js +3 -3
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/model-context.d.ts +1 -1
- package/dist/site.js +3 -3
- package/dist/types.d.ts +54 -2
- package/package.json +3 -3
- package/src/index.ts +2 -0
- package/src/model-context.ts +1 -0
- package/src/types.ts +60 -6
- package/dist/chunk-E5WAYGHT.js.map +0 -1
- /package/dist/{chunk-B7S4YVGX.js.map → chunk-2XGVG66G.js.map} +0 -0
- /package/dist/{chunk-MPN5UJWE.js.map → chunk-HTXCZV7W.js.map} +0 -0
- /package/dist/{chunk-PCVFOBSV.js.map → chunk-MBSACUH7.js.map} +0 -0
- /package/dist/{chunk-RAG3P2UV.js.map → chunk-TN5VV5D5.js.map} +0 -0
- /package/dist/{chunk-NP7DDXHK.js.map → chunk-W2YQLWXT.js.map} +0 -0
package/README.md
CHANGED
|
@@ -81,6 +81,13 @@ const og = new OpenGeni({
|
|
|
81
81
|
// baseUrl defaults to https://app.opengeni.ai; source (default "app") labels your product.
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
+
// Once per user, when your product admits them to the tenant. Chat requests
|
|
85
|
+
// never grant workspace membership; without it the API answers 403.
|
|
86
|
+
await og.client.addExternalWorkspaceMember(await og.workspaceId({ tenant: "acme" }), {
|
|
87
|
+
identity: { externalId: "u_42", source: og.source },
|
|
88
|
+
permissions: ["workspace:read", "sessions:create", "sessions:read", "sessions:control"],
|
|
89
|
+
});
|
|
90
|
+
|
|
84
91
|
const chat = await og.chat({
|
|
85
92
|
tenant: "acme", // one workspace per customer, created on first use
|
|
86
93
|
user: "u_42", // authenticated product user; onboard workspace membership first
|
package/dist/artifacts.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TN5VV5D5.js";
|
|
4
|
+
import "./chunk-MBSACUH7.js";
|
|
5
|
+
import "./chunk-W2YQLWXT.js";
|
|
6
|
+
import "./chunk-SN5ICTG6.js";
|
|
7
7
|
import "./chunk-YUOPVPZW.js";
|
|
8
8
|
import "./chunk-OO5LPTO7.js";
|
|
9
9
|
export {
|
package/dist/browser.js
CHANGED
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-FMLDFJ2Q.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W2YQLWXT.js";
|
|
12
12
|
import {
|
|
13
13
|
OPENGENI_API_CONTRACT_HEADER,
|
|
14
14
|
OPENGENI_API_CONTRACT_REVISION
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SN5ICTG6.js";
|
|
16
16
|
import "./chunk-YUOPVPZW.js";
|
|
17
17
|
import {
|
|
18
18
|
OpenGeniApiContractMismatchError,
|
package/dist/chat/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniEmbeddingClient
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-2XGVG66G.js";
|
|
4
|
+
import "../chunk-TN5VV5D5.js";
|
|
5
|
+
import "../chunk-MBSACUH7.js";
|
|
6
6
|
import {
|
|
7
7
|
parseSseStream
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-W2YQLWXT.js";
|
|
9
|
+
import "../chunk-SN5ICTG6.js";
|
|
10
10
|
import "../chunk-YUOPVPZW.js";
|
|
11
11
|
import {
|
|
12
12
|
OpenGeniApiError
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TN5VV5D5.js";
|
|
4
4
|
|
|
5
5
|
// src/embedding-client.ts
|
|
6
6
|
var OpenGeniEmbeddingClient = class extends OpenGeniClient {
|
|
@@ -171,4 +171,4 @@ var OpenGeniEmbeddingClient = class extends OpenGeniClient {
|
|
|
171
171
|
export {
|
|
172
172
|
OpenGeniEmbeddingClient
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-2XGVG66G.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-FMLDFJ2Q.js";
|
|
4
4
|
import {
|
|
5
5
|
OpenGeniClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W2YQLWXT.js";
|
|
7
7
|
import {
|
|
8
8
|
OpenGeniApiError
|
|
9
9
|
} from "./chunk-OO5LPTO7.js";
|
|
@@ -636,4 +636,4 @@ export {
|
|
|
636
636
|
isOpenGeniSiteBridgeCancelMessage,
|
|
637
637
|
sanitizeOpenGeniSiteToolCallRequest
|
|
638
638
|
};
|
|
639
|
-
//# sourceMappingURL=chunk-
|
|
639
|
+
//# sourceMappingURL=chunk-HTXCZV7W.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W2YQLWXT.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-MBSACUH7.js.map
|