@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 +26 -0
- package/dist/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +5 -5
- package/dist/{chunk-YTKQQMYF.js → chunk-2G6GJEDP.js} +2 -2
- package/dist/{chunk-YIVLK5PZ.js → chunk-7ZXYSX6B.js} +2 -2
- package/dist/{chunk-ZGUPH7BG.js → chunk-EEPM2CMT.js} +1 -1
- package/dist/chunk-EEPM2CMT.js.map +1 -0
- package/dist/{chunk-A7KFT3LE.js → chunk-FGSD4D5L.js} +2 -2
- package/dist/{chunk-XWVDS6OX.js → chunk-XN377DCV.js} +12 -2
- package/dist/chunk-XN377DCV.js.map +1 -0
- package/dist/{chunk-KTHFOTHG.js → chunk-ZD3SSEK2.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/embedding-client.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/site.js +3 -3
- package/dist/types.d.ts +18 -0
- package/package.json +3 -3
- package/src/embedding-client.ts +15 -0
- package/src/index.ts +2 -0
- package/src/types.ts +17 -0
- package/dist/chunk-XWVDS6OX.js.map +0 -1
- package/dist/chunk-ZGUPH7BG.js.map +0 -1
- /package/dist/{chunk-YTKQQMYF.js.map → chunk-2G6GJEDP.js.map} +0 -0
- /package/dist/{chunk-YIVLK5PZ.js.map → chunk-7ZXYSX6B.js.map} +0 -0
- /package/dist/{chunk-A7KFT3LE.js.map → chunk-FGSD4D5L.js.map} +0 -0
- /package/dist/{chunk-KTHFOTHG.js.map → chunk-ZD3SSEK2.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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-FGSD4D5L.js";
|
|
4
|
+
import "./chunk-ZD3SSEK2.js";
|
|
5
|
+
import "./chunk-2G6GJEDP.js";
|
|
6
6
|
import "./chunk-QTBAMHEF.js";
|
|
7
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
16
|
+
} from "./chunk-EEPM2CMT.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-XN377DCV.js";
|
|
4
|
+
import "../chunk-FGSD4D5L.js";
|
|
5
|
+
import "../chunk-ZD3SSEK2.js";
|
|
6
6
|
import {
|
|
7
7
|
parseSseStream
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-2G6GJEDP.js";
|
|
9
9
|
import "../chunk-QTBAMHEF.js";
|
|
10
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
629
|
+
//# sourceMappingURL=chunk-7ZXYSX6B.js.map
|