@proteos/sdk 0.58.0 → 0.59.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/dist/index.cjs CHANGED
@@ -684,6 +684,7 @@ var PLATFORM_ENTITY_SERVICE = {
684
684
  tools: "/agents",
685
685
  toolsets: "/agents",
686
686
  "mcp-servers": "/agents",
687
+ "agent-sessions": "/agents",
687
688
  // Knowledge (knowledge-service)
688
689
  "knowledge-spaces": "/knowledge",
689
690
  "knowledge-nodes": "/knowledge",
@@ -691,7 +692,7 @@ var PLATFORM_ENTITY_SERVICE = {
691
692
  conversations: "/conversations",
692
693
  connections: "/conversations"
693
694
  };
694
- var SERVICES_WITH_SHARING = /* @__PURE__ */ new Set(["/data", "/knowledge"]);
695
+ var SERVICES_WITH_SHARING = /* @__PURE__ */ new Set(["/data", "/knowledge", "/agents", "/conversations"]);
695
696
  var DEFAULT_SERVICE = "/data";
696
697
  function shareRouteFor(entitySlug) {
697
698
  const service = PLATFORM_ENTITY_SERVICE[entitySlug] ?? DEFAULT_SERVICE;
@@ -963,6 +964,8 @@ var PLATFORM_ENTITIES = [
963
964
  { slug: "glossary-terms", name: "Glossary Terms" },
964
965
  // Mistranscribed terms proposed by the post-transcription review pass.
965
966
  { slug: "mistranscribed-terms", name: "Mistranscribed Terms" },
967
+ // Live speech-to-text (the dictation stream) — `read` opens a stream.
968
+ { slug: "voice", name: "Voice" },
966
969
  // The person-level identity layer (contacts + addresses + merges + consent +
967
970
  // erasure) — one grant governs the whole aggregate.
968
971
  { slug: "contacts", name: "Contacts" },
@@ -1006,7 +1009,25 @@ var PLATFORM_ENTITIES = [
1006
1009
  var PLATFORM_ENTITY_SLUGS = PLATFORM_ENTITIES.map(
1007
1010
  (entity) => entity.slug
1008
1011
  );
1009
- var SCOPED_PLATFORM_ENTITY_SLUGS = ["knowledge-nodes"];
1012
+ var SCOPED_PLATFORM_ENTITY_SLUGS = [
1013
+ "knowledge-nodes",
1014
+ // agent-service: sessions are owned by their starter; the six config
1015
+ // resources by their creator. Scoped lists + /agents/v1/shares.
1016
+ "agent-sessions",
1017
+ "agents",
1018
+ "prompts",
1019
+ "skills",
1020
+ "tools",
1021
+ "toolsets",
1022
+ "mcp-servers",
1023
+ // conversation-service: a connection is owned by its owner (user-scoped) or
1024
+ // open to the org through its org share (org-scoped); a conversation's rows
1025
+ // are stamped once at creation from its connection / parent and extended by
1026
+ // shares; messages inherit their conversation. /conversations/v1/shares.
1027
+ "connections",
1028
+ "conversations",
1029
+ "messages"
1030
+ ];
1010
1031
  function isPlatformEntity(slug) {
1011
1032
  return PLATFORM_ENTITY_SLUGS.includes(slug);
1012
1033
  }