@opengeni/sdk 5.0.5-canary.3 → 5.1.0-canary.1

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 (43) hide show
  1. package/README.md +26 -0
  2. package/dist/artifacts.js +4 -4
  3. package/dist/browser.js +2 -2
  4. package/dist/chat/index.js +5 -5
  5. package/dist/{chunk-ZGUPH7BG.js → chunk-2NJBP2PS.js} +1 -1
  6. package/dist/chunk-2NJBP2PS.js.map +1 -0
  7. package/dist/{chunk-KTHFOTHG.js → chunk-5PBXPPUW.js} +2 -2
  8. package/dist/{chunk-YTKQQMYF.js → chunk-6ZXNC3HS.js} +2 -2
  9. package/dist/{chunk-XWVDS6OX.js → chunk-CDQUIE4A.js} +12 -2
  10. package/dist/chunk-CDQUIE4A.js.map +1 -0
  11. package/dist/{chunk-A7KFT3LE.js → chunk-EEMS7J5L.js} +2 -2
  12. package/dist/{chunk-YIVLK5PZ.js → chunk-VIPDPUA4.js} +23 -13
  13. package/dist/chunk-VIPDPUA4.js.map +1 -0
  14. package/dist/core.js +3 -3
  15. package/dist/document-authority.js +3 -3
  16. package/dist/editable-artifacts.js +1 -1
  17. package/dist/embedding-client.d.ts +4 -0
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +6 -6
  20. package/dist/site-browser-entry.d.ts +1 -0
  21. package/dist/site-browser-runtime.gen.d.ts +1 -0
  22. package/dist/site-document.d.ts +5 -0
  23. package/dist/site-document.js +20 -0
  24. package/dist/site-document.js.map +1 -0
  25. package/dist/site-document.test.d.ts +1 -0
  26. package/dist/site-tool-bridge.d.ts +10 -5
  27. package/dist/site.js +3 -3
  28. package/dist/types.d.ts +19 -1
  29. package/package.json +8 -4
  30. package/src/embedding-client.ts +15 -0
  31. package/src/index.ts +2 -0
  32. package/src/site-browser-entry.ts +6 -0
  33. package/src/site-browser-runtime.gen.ts +2 -0
  34. package/src/site-document.test.ts +64 -0
  35. package/src/site-document.ts +18 -0
  36. package/src/site-tool-bridge.ts +21 -16
  37. package/src/types.ts +19 -0
  38. package/dist/chunk-XWVDS6OX.js.map +0 -1
  39. package/dist/chunk-YIVLK5PZ.js.map +0 -1
  40. package/dist/chunk-ZGUPH7BG.js.map +0 -1
  41. /package/dist/{chunk-KTHFOTHG.js.map → chunk-5PBXPPUW.js.map} +0 -0
  42. /package/dist/{chunk-YTKQQMYF.js.map → chunk-6ZXNC3HS.js.map} +0 -0
  43. /package/dist/{chunk-A7KFT3LE.js.map → chunk-EEMS7J5L.js.map} +0 -0
package/README.md CHANGED
@@ -819,6 +819,32 @@ await client.sendApprovalDecision(workspaceId, sessionId, { approvalId, decision
819
819
 
820
820
  ## Session tool policy and native web search
821
821
 
822
+ For standalone credential maintenance, use the dedicated operation rather than
823
+ sending a message:
824
+
825
+ ```ts
826
+ const request = {
827
+ operationKey: crypto.randomUUID(),
828
+ updates: [{
829
+ id: "crm",
830
+ expectedCredentialVersion: 1,
831
+ expectedServerUrl: "https://tools.example.test/mcp",
832
+ headers: { Authorization: `Bearer ${replacementToken}` },
833
+ }],
834
+ };
835
+ const receipt = await client.rotateSessionMcpCredentials(workspaceId, sessionId, request);
836
+ ```
837
+
838
+ Only exact existing inline servers without `connectionRef` are eligible. Both
839
+ session control and MCP attach permissions, live session authorization, expected
840
+ versions, and a quiescent credential-consumer boundary are required. This never
841
+ sends a message, starts work, retries a failed turn, or refreshes an active
842
+ client. Reconcile an ambiguous response with the same request/key; the SDK does
843
+ not retry mutations automatically. Exact authorized replay returns the original
844
+ receipt without a second write. Old receipt verification fails explicitly with
845
+ 503 if the deployment encryption key has been replaced. See the full
846
+ [rotation contract](../../docs/session-mcp-servers.md#standalone-inline-credential-rotation).
847
+
822
848
  Omitting `tools` when creating a top-level session selects the current
823
849
  workspace-default capability policy, including the built-in `files` server.
824
850
  Passing `tools`, including `[]`, is an intentional fixed narrowing and can
package/dist/artifacts.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-A7KFT3LE.js";
4
- import "./chunk-KTHFOTHG.js";
5
- import "./chunk-YTKQQMYF.js";
3
+ } from "./chunk-EEMS7J5L.js";
4
+ import "./chunk-5PBXPPUW.js";
5
+ import "./chunk-6ZXNC3HS.js";
6
6
  import "./chunk-QTBAMHEF.js";
7
- import "./chunk-ZGUPH7BG.js";
7
+ import "./chunk-2NJBP2PS.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-YTKQQMYF.js";
11
+ } from "./chunk-6ZXNC3HS.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-ZGUPH7BG.js";
16
+ } from "./chunk-2NJBP2PS.js";
17
17
  import {
18
18
  OpenGeniApiContractMismatchError,
19
19
  OpenGeniApiError,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  OpenGeniEmbeddingClient
3
- } from "../chunk-XWVDS6OX.js";
4
- import "../chunk-A7KFT3LE.js";
5
- import "../chunk-KTHFOTHG.js";
3
+ } from "../chunk-CDQUIE4A.js";
4
+ import "../chunk-EEMS7J5L.js";
5
+ import "../chunk-5PBXPPUW.js";
6
6
  import {
7
7
  parseSseStream
8
- } from "../chunk-YTKQQMYF.js";
8
+ } from "../chunk-6ZXNC3HS.js";
9
9
  import "../chunk-QTBAMHEF.js";
10
- import "../chunk-ZGUPH7BG.js";
10
+ import "../chunk-2NJBP2PS.js";
11
11
  import {
12
12
  OpenGeniApiError
13
13
  } from "../chunk-OO5LPTO7.js";
@@ -239,4 +239,4 @@ export {
239
239
  GENERATED_VIDEO_MAX_BYTES,
240
240
  KNOWN_USAGE_EVENT_TYPES
241
241
  };
242
- //# sourceMappingURL=chunk-ZGUPH7BG.js.map
242
+ //# sourceMappingURL=chunk-2NJBP2PS.js.map