@naturali/sdk 0.266.4 → 0.267.1

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.d.cts CHANGED
@@ -1747,7 +1747,7 @@ type CreateToolRequest = {
1747
1747
  /**
1748
1748
  * Tool type (default http)
1749
1749
  */
1750
- type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline' | 'naturali';
1750
+ type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline';
1751
1751
  /**
1752
1752
  * What the tool does
1753
1753
  */
@@ -2415,7 +2415,7 @@ type AuditEntry = {
2415
2415
  created_at?: Date;
2416
2416
  };
2417
2417
  /**
2418
- * The tool call the write was made on behalf of, for a write a `naturali` tool made; null for any other write. The `created_by_principal_*` pair stays the project credential's; the request is checked against the project credential capped by the authority the tool call was sent with.
2418
+ * The tool call the write was made on behalf of, as the runtime records it; null for a write made as the credential alone. The `created_by_principal_*` pair stays the credential's.
2419
2419
  */
2420
2420
  type OnBehalfOf = {
2421
2421
  tool_id?: string | null;
@@ -5389,7 +5389,7 @@ type PlaybookResourceProperties = {
5389
5389
  };
5390
5390
  type ResourceDeclaration = {
5391
5391
  /**
5392
- * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus four naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server`, `naturali_ai_provider` and `webhook` (naturali's own webhook rather than the runtime's). Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A `tool` may also be `type: naturali`, with `name`, the `actions` it may run and an optional `description`, as the tools API takes it. A template naming any other type is refused with `400 unsupported_resource_type` before it reaches the runtime — including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose.
5392
+ * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus four naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server`, `naturali_ai_provider` and `webhook` (naturali's own webhook rather than the runtime's). Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A template naming any other type is refused with `400 unsupported_resource_type` before it reaches the runtime — including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose.
5393
5393
  *
5394
5394
  * This is deliberately not an enum: a deployment operator can register additional resource types backed by their own handler, and those are declared here exactly like a built-in one. The set a given deployment accepts is authoritative in the server, which rejects an unregistered type with `VALIDATION_FAILED` and lists what it does support.
5395
5395
  *
@@ -9543,7 +9543,7 @@ type Tool = {
9543
9543
  /**
9544
9544
  * Tool type
9545
9545
  */
9546
- type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline' | 'naturali';
9546
+ type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline';
9547
9547
  /**
9548
9548
  * What the tool does (sent to the model)
9549
9549
  */
@@ -10717,7 +10717,7 @@ type ToolWritable = {
10717
10717
  /**
10718
10718
  * Tool type
10719
10719
  */
10720
- type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline' | 'naturali';
10720
+ type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline';
10721
10721
  /**
10722
10722
  * What the tool does (sent to the model)
10723
10723
  */
package/dist/index.d.mts CHANGED
@@ -1747,7 +1747,7 @@ type CreateToolRequest = {
1747
1747
  /**
1748
1748
  * Tool type (default http)
1749
1749
  */
1750
- type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline' | 'naturali';
1750
+ type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline';
1751
1751
  /**
1752
1752
  * What the tool does
1753
1753
  */
@@ -2415,7 +2415,7 @@ type AuditEntry = {
2415
2415
  created_at?: Date;
2416
2416
  };
2417
2417
  /**
2418
- * The tool call the write was made on behalf of, for a write a `naturali` tool made; null for any other write. The `created_by_principal_*` pair stays the project credential's; the request is checked against the project credential capped by the authority the tool call was sent with.
2418
+ * The tool call the write was made on behalf of, as the runtime records it; null for a write made as the credential alone. The `created_by_principal_*` pair stays the credential's.
2419
2419
  */
2420
2420
  type OnBehalfOf = {
2421
2421
  tool_id?: string | null;
@@ -5389,7 +5389,7 @@ type PlaybookResourceProperties = {
5389
5389
  };
5390
5390
  type ResourceDeclaration = {
5391
5391
  /**
5392
- * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus four naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server`, `naturali_ai_provider` and `webhook` (naturali's own webhook rather than the runtime's). Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A `tool` may also be `type: naturali`, with `name`, the `actions` it may run and an optional `description`, as the tools API takes it. A template naming any other type is refused with `400 unsupported_resource_type` before it reaches the runtime — including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose.
5392
+ * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus four naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server`, `naturali_ai_provider` and `webhook` (naturali's own webhook rather than the runtime's). Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A template naming any other type is refused with `400 unsupported_resource_type` before it reaches the runtime — including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose.
5393
5393
  *
5394
5394
  * This is deliberately not an enum: a deployment operator can register additional resource types backed by their own handler, and those are declared here exactly like a built-in one. The set a given deployment accepts is authoritative in the server, which rejects an unregistered type with `VALIDATION_FAILED` and lists what it does support.
5395
5395
  *
@@ -9543,7 +9543,7 @@ type Tool = {
9543
9543
  /**
9544
9544
  * Tool type
9545
9545
  */
9546
- type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline' | 'naturali';
9546
+ type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline';
9547
9547
  /**
9548
9548
  * What the tool does (sent to the model)
9549
9549
  */
@@ -10717,7 +10717,7 @@ type ToolWritable = {
10717
10717
  /**
10718
10718
  * Tool type
10719
10719
  */
10720
- type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline' | 'naturali';
10720
+ type?: 'http' | 'client' | 'mcp' | 'builtin' | 'pipeline';
10721
10721
  /**
10722
10722
  * What the tool does (sent to the model)
10723
10723
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.266.4",
3
+ "version": "0.267.1",
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.266.4",
41
+ "@naturali/api": "0.267.1",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",