@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 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-RAG3P2UV.js";
4
- import "./chunk-PCVFOBSV.js";
5
- import "./chunk-NP7DDXHK.js";
6
- import "./chunk-E5WAYGHT.js";
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-NP7DDXHK.js";
11
+ } from "./chunk-W2YQLWXT.js";
12
12
  import {
13
13
  OPENGENI_API_CONTRACT_HEADER,
14
14
  OPENGENI_API_CONTRACT_REVISION
15
- } from "./chunk-E5WAYGHT.js";
15
+ } from "./chunk-SN5ICTG6.js";
16
16
  import "./chunk-YUOPVPZW.js";
17
17
  import {
18
18
  OpenGeniApiContractMismatchError,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  OpenGeniEmbeddingClient
3
- } from "../chunk-B7S4YVGX.js";
4
- import "../chunk-RAG3P2UV.js";
5
- import "../chunk-PCVFOBSV.js";
3
+ } from "../chunk-2XGVG66G.js";
4
+ import "../chunk-TN5VV5D5.js";
5
+ import "../chunk-MBSACUH7.js";
6
6
  import {
7
7
  parseSseStream
8
- } from "../chunk-NP7DDXHK.js";
9
- import "../chunk-E5WAYGHT.js";
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-RAG3P2UV.js";
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-B7S4YVGX.js.map
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-NP7DDXHK.js";
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-MPN5UJWE.js.map
639
+ //# sourceMappingURL=chunk-HTXCZV7W.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-NP7DDXHK.js";
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-PCVFOBSV.js.map
135
+ //# sourceMappingURL=chunk-MBSACUH7.js.map
@@ -243,4 +243,4 @@ export {
243
243
  GENERATED_VIDEO_MAX_BYTES,
244
244
  KNOWN_USAGE_EVENT_TYPES
245
245
  };
246
- //# sourceMappingURL=chunk-E5WAYGHT.js.map
246
+ //# sourceMappingURL=chunk-SN5ICTG6.js.map