@soat/sdk 0.101.0 → 0.102.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
@@ -1535,7 +1535,7 @@ var Deciders = class {
1535
1535
  /**
1536
1536
  * Create a decider
1537
1537
  *
1538
- * Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must be `http` or `pipeline` and must not pin `input` or `questions` in its `preset_parameters`, or the create is refused with `400 DECIDER_TOOL_NOT_CALLABLE`. A duplicate `name` in the project is `409 NAME_CONFLICT`.
1538
+ * Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must run server-side with no `action` (not `client` or `mcp`; a `builtin` tool names its `action` in `preset_parameters`) and must not pin `input` or `questions` there, or the create is refused with `400 DECIDER_TOOL_NOT_CALLABLE`. A duplicate `name` in the project is `409 NAME_CONFLICT`.
1539
1539
  */
1540
1540
  static createDecider(options) {
1541
1541
  return (options.client ?? client).post({
@@ -4962,6 +4962,19 @@ var Tools = class {
4962
4962
  }
4963
4963
  });
4964
4964
  }
4965
+ /**
4966
+ * List a tool's actions
4967
+ *
4968
+ * Lists the actions an `mcp` tool exposes, read from its server's `tools/list` with the tool's `mcp.headers` resolved server-side: each action's `name`, `description` and `input_schema`, as a model bound to the tool sees them. `actions` and `denied_actions` apply, and a `preset_parameters` key an action's schema declares is removed from that schema. Other tool types are `400`. The server answers its whole listing in one call; `limit` and `cursor` page what it returned, in its order.
4969
+ * Authorized as a call (`tools:CallTool`), since listing reaches the tool's server with its credential.
4970
+ *
4971
+ */
4972
+ static listToolActions(options) {
4973
+ return (options.client ?? client).get({
4974
+ url: "/api/v1/tools/{tool_id}/actions",
4975
+ ...options
4976
+ });
4977
+ }
4965
4978
  };
4966
4979
  var Traces = class {
4967
4980
  /**