@opengeni/sdk 3.8.0-canary.0 → 4.0.1-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
@@ -87,12 +87,11 @@ shares the customer's documents, instructions, and integrations:
87
87
  | Everything in the tenant shared | `"workspace"` | `"workspace"` |
88
88
  | Shared agent access, no memory | any | `false` |
89
89
 
90
- `<OpenGeniChat handlerUrl="/api/chat" conversation="c_9" />` from
91
- `@opengeni/react/chat` is the browser component to swap in for your chat box:
92
- it talks only to your handler, sends the conversation id as the
93
- `x-opengeni-conversation` header, and restores the history on reload. Graduate
94
- to `OpenGeniClient` below when you need the full session surface: files, tools,
95
- approvals with policies, forks, realtime voice.
90
+ The chat handler is backend-only: connect a custom or compatible frontend to
91
+ its protocol. For the full React agent experience, use `SessionConversation`
92
+ with `OpenGeniClient` and authenticated session routes, not this simplified
93
+ chat protocol. The normal SDK preserves files, tools, approvals with policies,
94
+ forks, and realtime voice.
96
95
 
97
96
  ## Quick start
98
97
 
package/dist/artifacts.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-5PCW44P6.js";
4
- import "./chunk-XOTTWRJJ.js";
5
- import "./chunk-UAXA2UKI.js";
3
+ } from "./chunk-3IZMCD2K.js";
4
+ import "./chunk-O23OOWJK.js";
5
+ import "./chunk-2H7P45YQ.js";
6
6
  import "./chunk-QTBAMHEF.js";
7
- import "./chunk-VQTDKVIG.js";
7
+ import "./chunk-WNEGCYCE.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-UAXA2UKI.js";
11
+ } from "./chunk-2H7P45YQ.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-VQTDKVIG.js";
16
+ } from "./chunk-WNEGCYCE.js";
17
17
  import {
18
18
  OpenGeniApiContractMismatchError,
19
19
  OpenGeniApiError,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  OpenGeniClient,
3
3
  parseSseStream
4
- } from "../chunk-UAXA2UKI.js";
4
+ } from "../chunk-2H7P45YQ.js";
5
5
  import "../chunk-QTBAMHEF.js";
6
- import "../chunk-VQTDKVIG.js";
6
+ import "../chunk-WNEGCYCE.js";
7
7
  import {
8
8
  OpenGeniApiError
9
9
  } 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-VQTDKVIG.js";
12
+ } from "./chunk-WNEGCYCE.js";
13
13
  import {
14
14
  OpenGeniApiContractMismatchError,
15
15
  OpenGeniApiError,
@@ -4948,6 +4948,38 @@ var OpenGeniClient = class {
4948
4948
  `/v1/workspaces/${workspaceId}/skills`
4949
4949
  );
4950
4950
  }
4951
+ /** Shared authored/installed catalog metadata. File bodies are read on demand. */
4952
+ async listWorkspaceSkills(workspaceId, options = {}) {
4953
+ const query = new URLSearchParams();
4954
+ if (options.cursor !== void 0) query.set("cursor", options.cursor);
4955
+ if (options.limit !== void 0) query.set("limit", String(options.limit));
4956
+ const suffix = query.size ? `?${query.toString()}` : "";
4957
+ return this.requestJson("GET", `/v1/workspaces/${workspaceId}/skills/content${suffix}`);
4958
+ }
4959
+ async readWorkspaceSkill(workspaceId, skillId, revisionId) {
4960
+ const query = revisionId ? `?revisionId=${encodeURIComponent(revisionId)}` : "";
4961
+ return this.requestJson(
4962
+ "GET",
4963
+ `/v1/workspaces/${workspaceId}/skills/content/${encodeURIComponent(skillId)}${query}`
4964
+ );
4965
+ }
4966
+ async saveWorkspaceSkill(workspaceId, request) {
4967
+ return this.requestJson("POST", `/v1/workspaces/${workspaceId}/skills/content/save`, request);
4968
+ }
4969
+ async approveWorkspaceSkill(workspaceId, skillId, request) {
4970
+ return this.requestJson(
4971
+ "POST",
4972
+ `/v1/workspaces/${workspaceId}/skills/content/${encodeURIComponent(skillId)}/approve`,
4973
+ request
4974
+ );
4975
+ }
4976
+ async restoreWorkspaceSkill(workspaceId, skillId, request) {
4977
+ return this.requestJson(
4978
+ "POST",
4979
+ `/v1/workspaces/${workspaceId}/skills/content/${encodeURIComponent(skillId)}/restore`,
4980
+ request
4981
+ );
4982
+ }
4951
4983
  /** Install one exact reviewed curated-library Skill through the Skill domain. */
4952
4984
  async installLibrarySkill(workspaceId, libraryId, request) {
4953
4985
  return await this.requestJson(
@@ -5491,7 +5523,7 @@ var OpenGeniClient = class {
5491
5523
  { label }
5492
5524
  );
5493
5525
  }
5494
- /** Pin (or unpin via "auto") a session's Codex account. Applies on the next turn. */
5526
+ /** Pin/unpin a Codex account. Overrides a capacity-blocked turn; otherwise applies next turn. */
5495
5527
  async pinSessionCodexAccount(workspaceId, sessionId, target) {
5496
5528
  return await this.requestJson(
5497
5529
  "POST",
@@ -6020,4 +6052,4 @@ export {
6020
6052
  parseMediaGenerationResult,
6021
6053
  OpenGeniClient
6022
6054
  };
6023
- //# sourceMappingURL=chunk-UAXA2UKI.js.map
6055
+ //# sourceMappingURL=chunk-2H7P45YQ.js.map