@opengeni/sdk 5.0.5-canary.2 → 5.1.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/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-FGSD4D5L.js";
4
+ import "./chunk-ZD3SSEK2.js";
5
+ import "./chunk-2G6GJEDP.js";
6
6
  import "./chunk-QTBAMHEF.js";
7
- import "./chunk-ZGUPH7BG.js";
7
+ import "./chunk-EEPM2CMT.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-2G6GJEDP.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-EEPM2CMT.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-XN377DCV.js";
4
+ import "../chunk-FGSD4D5L.js";
5
+ import "../chunk-ZD3SSEK2.js";
6
6
  import {
7
7
  parseSseStream
8
- } from "../chunk-YTKQQMYF.js";
8
+ } from "../chunk-2G6GJEDP.js";
9
9
  import "../chunk-QTBAMHEF.js";
10
- import "../chunk-ZGUPH7BG.js";
10
+ import "../chunk-EEPM2CMT.js";
11
11
  import {
12
12
  OpenGeniApiError
13
13
  } from "../chunk-OO5LPTO7.js";
@@ -9,7 +9,7 @@ import {
9
9
  OPENGENI_API_CONTRACT_REVISION,
10
10
  OPENGENI_CORRELATION_HEADER,
11
11
  RETAINED_OUTPUT_MAX_PAGE_BYTES
12
- } from "./chunk-ZGUPH7BG.js";
12
+ } from "./chunk-EEPM2CMT.js";
13
13
  import {
14
14
  OpenGeniApiContractMismatchError,
15
15
  OpenGeniApiError,
@@ -6249,4 +6249,4 @@ export {
6249
6249
  parseMediaGenerationResult,
6250
6250
  OpenGeniClient
6251
6251
  };
6252
- //# sourceMappingURL=chunk-YTKQQMYF.js.map
6252
+ //# sourceMappingURL=chunk-2G6GJEDP.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FMLDFJ2Q.js";
4
4
  import {
5
5
  OpenGeniClient
6
- } from "./chunk-YTKQQMYF.js";
6
+ } from "./chunk-2G6GJEDP.js";
7
7
  import {
8
8
  OpenGeniApiError
9
9
  } from "./chunk-OO5LPTO7.js";
@@ -626,4 +626,4 @@ export {
626
626
  isOpenGeniSiteBridgeCancelMessage,
627
627
  sanitizeOpenGeniSiteToolCallRequest
628
628
  };
629
- //# sourceMappingURL=chunk-YIVLK5PZ.js.map
629
+ //# sourceMappingURL=chunk-7ZXYSX6B.js.map
@@ -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-EEPM2CMT.js.map