@naturali/sdk 0.308.0 → 0.309.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
@@ -3961,7 +3961,7 @@ var McpServers = class {
3961
3961
  /**
3962
3962
  * Create an MCP server
3963
3963
  *
3964
- * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`.
3964
+ * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`. A tool with `execute.auth.type: caller_token` is refused unless `auth` has an `issuer` and its `forward_hosts` lists the host of the tool's `url`.
3965
3965
  * `daily_call_limit` is required when `auth` is `none`.
3966
3966
  *
3967
3967
  */
package/dist/index.d.cts CHANGED
@@ -7801,6 +7801,10 @@ type McpServerAuthWrite = {
7801
7801
  [key: string]: string;
7802
7802
  };
7803
7803
  actor?: McpCallerActor;
7804
+ /**
7805
+ * With `issuer`. The `https` hosts (`host` or `host:port`) a tool with `execute.auth.type: caller_token` sends the caller's token to; default none. A call of such a tool hands it the caller's own token, for that call only, toward these hosts only. A server serving such a tool whose `url` host is not listed is `400`.
7806
+ */
7807
+ forward_hosts?: Array<string>;
7804
7808
  /**
7805
7809
  * `mode: allowlist` only, required and non-empty.
7806
7810
  */
@@ -7840,6 +7844,7 @@ type McpServerAuth = {
7840
7844
  [key: string]: string;
7841
7845
  };
7842
7846
  actor?: McpCallerActor;
7847
+ forward_hosts?: Array<string>;
7843
7848
  allowlist?: Array<{
7844
7849
  email: string;
7845
7850
  context_keys: McpContextKeys;
@@ -41440,7 +41445,7 @@ export declare class McpServers {
41440
41445
  /**
41441
41446
  * Create an MCP server
41442
41447
  *
41443
- * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`.
41448
+ * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`. A tool with `execute.auth.type: caller_token` is refused unless `auth` has an `issuer` and its `forward_hosts` lists the host of the tool's `url`.
41444
41449
  * `daily_call_limit` is required when `auth` is `none`.
41445
41450
  *
41446
41451
  */
package/dist/index.d.mts CHANGED
@@ -7801,6 +7801,10 @@ type McpServerAuthWrite = {
7801
7801
  [key: string]: string;
7802
7802
  };
7803
7803
  actor?: McpCallerActor;
7804
+ /**
7805
+ * With `issuer`. The `https` hosts (`host` or `host:port`) a tool with `execute.auth.type: caller_token` sends the caller's token to; default none. A call of such a tool hands it the caller's own token, for that call only, toward these hosts only. A server serving such a tool whose `url` host is not listed is `400`.
7806
+ */
7807
+ forward_hosts?: Array<string>;
7804
7808
  /**
7805
7809
  * `mode: allowlist` only, required and non-empty.
7806
7810
  */
@@ -7840,6 +7844,7 @@ type McpServerAuth = {
7840
7844
  [key: string]: string;
7841
7845
  };
7842
7846
  actor?: McpCallerActor;
7847
+ forward_hosts?: Array<string>;
7843
7848
  allowlist?: Array<{
7844
7849
  email: string;
7845
7850
  context_keys: McpContextKeys;
@@ -41440,7 +41445,7 @@ export declare class McpServers {
41440
41445
  /**
41441
41446
  * Create an MCP server
41442
41447
  *
41443
- * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`.
41448
+ * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`. A tool with `execute.auth.type: caller_token` is refused unless `auth` has an `issuer` and its `forward_hosts` lists the host of the tool's `url`.
41444
41449
  * `daily_call_limit` is required when `auth` is `none`.
41445
41450
  *
41446
41451
  */
package/dist/index.mjs CHANGED
@@ -3960,7 +3960,7 @@ var McpServers = class {
3960
3960
  /**
3961
3961
  * Create an MCP server
3962
3962
  *
3963
- * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`.
3963
+ * Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`. A tool with `execute.auth.type: caller_token` is refused unless `auth` has an `issuer` and its `forward_hosts` lists the host of the tool's `url`.
3964
3964
  * `daily_call_limit` is required when `auth` is `none`.
3965
3965
  *
3966
3966
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.308.0",
3
+ "version": "0.309.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.308.0",
41
+ "@naturali/api": "0.309.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",