@soat/sdk 0.14.8 → 0.14.10

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
@@ -2709,7 +2709,7 @@ var Tools = class {
2709
2709
  * Call a tool
2710
2710
  *
2711
2711
  * Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
2712
- * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
2712
+ * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `soat` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
2713
2713
  * `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
2714
2714
  *
2715
2715
  */
package/dist/index.d.cts CHANGED
@@ -1702,7 +1702,7 @@ type ToolResourceProperties = {
1702
1702
  } | null;
1703
1703
  } | null;
1704
1704
  /**
1705
- * IAM action strings the tool is permitted to call
1705
+ * Allowlist of actions the tool exposes. For `soat` tools: SOAT platform action names. For `mcp` tools: an optional allowlist of MCP tool names to scope the server surface (`null` exposes every tool).
1706
1706
  */
1707
1707
  actions?: Array<string> | null;
1708
1708
  /**
@@ -3238,7 +3238,7 @@ type Tool = {
3238
3238
  [key: string]: unknown;
3239
3239
  } | null;
3240
3240
  /**
3241
- * SOAT platform actions to expose
3241
+ * Allowlist of actions to expose. For `soat` tools: SOAT platform action names (required). For `mcp` tools: an optional allowlist of MCP tool names — when set, only those tools are exposed to the model and callable via `/call`; when `null`, the entire MCP server surface is exposed. Ignored for other tool types.
3242
3242
  */
3243
3243
  actions?: Array<string> | null;
3244
3244
  /**
@@ -3303,7 +3303,7 @@ type CreateToolRequest = {
3303
3303
  [key: string]: unknown;
3304
3304
  };
3305
3305
  /**
3306
- * SOAT platform actions
3306
+ * Allowlist of actions. For `soat` tools: SOAT platform action names (required). For `mcp` tools: an optional allowlist of MCP tool names to scope the server surface — omit or set `null` to expose every tool the MCP server offers. Ignored for other tool types.
3307
3307
  */
3308
3308
  actions?: Array<string>;
3309
3309
  /**
@@ -3346,6 +3346,9 @@ type UpdateToolRequest = {
3346
3346
  mcp?: {
3347
3347
  [key: string]: unknown;
3348
3348
  } | null;
3349
+ /**
3350
+ * Allowlist of actions. For `soat` tools: SOAT platform action names. For `mcp` tools: an optional allowlist of MCP tool names to scope the server surface (`null` exposes every tool). Ignored for other tool types.
3351
+ */
3349
3352
  actions?: Array<string> | null;
3350
3353
  /**
3351
3354
  * Fixed parameters merged into every soat tool call. Keys matching fields in the action's input schema are removed from the schema shown to the model and injected automatically at execution time.
@@ -3372,7 +3375,7 @@ type UpdateToolRequest = {
3372
3375
  };
3373
3376
  type CallToolRequest = {
3374
3377
  /**
3375
- * For `soat` tools: the action name (must be in the tool's `actions` list). For `mcp` tools: the MCP tool name to invoke. Ignored for `http` tools.
3378
+ * For `soat` tools: the action name (must be in the tool's `actions` list). For `mcp` tools: the MCP tool name to invoke (must be in the tool's `actions` allowlist when one is set). Ignored for `http` tools.
3376
3379
  *
3377
3380
  */
3378
3381
  action?: string;
@@ -11834,7 +11837,7 @@ declare class Tools {
11834
11837
  * Call a tool
11835
11838
  *
11836
11839
  * Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
11837
- * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
11840
+ * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `soat` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
11838
11841
  * `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
11839
11842
  *
11840
11843
  */
package/dist/index.d.mts CHANGED
@@ -1702,7 +1702,7 @@ type ToolResourceProperties = {
1702
1702
  } | null;
1703
1703
  } | null;
1704
1704
  /**
1705
- * IAM action strings the tool is permitted to call
1705
+ * Allowlist of actions the tool exposes. For `soat` tools: SOAT platform action names. For `mcp` tools: an optional allowlist of MCP tool names to scope the server surface (`null` exposes every tool).
1706
1706
  */
1707
1707
  actions?: Array<string> | null;
1708
1708
  /**
@@ -3238,7 +3238,7 @@ type Tool = {
3238
3238
  [key: string]: unknown;
3239
3239
  } | null;
3240
3240
  /**
3241
- * SOAT platform actions to expose
3241
+ * Allowlist of actions to expose. For `soat` tools: SOAT platform action names (required). For `mcp` tools: an optional allowlist of MCP tool names — when set, only those tools are exposed to the model and callable via `/call`; when `null`, the entire MCP server surface is exposed. Ignored for other tool types.
3242
3242
  */
3243
3243
  actions?: Array<string> | null;
3244
3244
  /**
@@ -3303,7 +3303,7 @@ type CreateToolRequest = {
3303
3303
  [key: string]: unknown;
3304
3304
  };
3305
3305
  /**
3306
- * SOAT platform actions
3306
+ * Allowlist of actions. For `soat` tools: SOAT platform action names (required). For `mcp` tools: an optional allowlist of MCP tool names to scope the server surface — omit or set `null` to expose every tool the MCP server offers. Ignored for other tool types.
3307
3307
  */
3308
3308
  actions?: Array<string>;
3309
3309
  /**
@@ -3346,6 +3346,9 @@ type UpdateToolRequest = {
3346
3346
  mcp?: {
3347
3347
  [key: string]: unknown;
3348
3348
  } | null;
3349
+ /**
3350
+ * Allowlist of actions. For `soat` tools: SOAT platform action names. For `mcp` tools: an optional allowlist of MCP tool names to scope the server surface (`null` exposes every tool). Ignored for other tool types.
3351
+ */
3349
3352
  actions?: Array<string> | null;
3350
3353
  /**
3351
3354
  * Fixed parameters merged into every soat tool call. Keys matching fields in the action's input schema are removed from the schema shown to the model and injected automatically at execution time.
@@ -3372,7 +3375,7 @@ type UpdateToolRequest = {
3372
3375
  };
3373
3376
  type CallToolRequest = {
3374
3377
  /**
3375
- * For `soat` tools: the action name (must be in the tool's `actions` list). For `mcp` tools: the MCP tool name to invoke. Ignored for `http` tools.
3378
+ * For `soat` tools: the action name (must be in the tool's `actions` list). For `mcp` tools: the MCP tool name to invoke (must be in the tool's `actions` allowlist when one is set). Ignored for `http` tools.
3376
3379
  *
3377
3380
  */
3378
3381
  action?: string;
@@ -11834,7 +11837,7 @@ declare class Tools {
11834
11837
  * Call a tool
11835
11838
  *
11836
11839
  * Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
11837
- * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
11840
+ * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `soat` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
11838
11841
  * `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
11839
11842
  *
11840
11843
  */
package/dist/index.mjs CHANGED
@@ -2708,7 +2708,7 @@ var Tools = class {
2708
2708
  * Call a tool
2709
2709
  *
2710
2710
  * Directly invokes a tool and returns its output. Supported for `http`, `soat`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
2711
- * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored.
2711
+ * For `soat` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `soat` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
2712
2712
  * `preset_parameters` stored on the tool are merged with the caller-supplied `input` before execution; preset keys take lower precedence.
2713
2713
  *
2714
2714
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.14.8",
3
+ "version": "0.14.10",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",