@naturali/sdk 0.198.0 → 0.199.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.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1797,7 +1797,7 @@ type CreateToolRequest = {
|
|
|
1797
1797
|
/**
|
|
1798
1798
|
* Tool type (default http)
|
|
1799
1799
|
*/
|
|
1800
|
-
type?: 'http' | 'client' | 'mcp' | 'pipeline';
|
|
1800
|
+
type?: 'http' | 'client' | 'mcp' | 'pipeline' | 'naturali';
|
|
1801
1801
|
/**
|
|
1802
1802
|
* What the tool does
|
|
1803
1803
|
*/
|
|
@@ -5108,7 +5108,7 @@ type PlaybookResourceProperties = {
|
|
|
5108
5108
|
};
|
|
5109
5109
|
type ResourceDeclaration = {
|
|
5110
5110
|
/**
|
|
5111
|
-
* Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `orchestration`, `playbook`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus two naturali registers itself and handles through its own lifecycle: `channel`, taking the same property names the channels API takes (its credential properties are write-only, so a tenant credential never lands in the resource ledger), and `naturali_ai_provider`, which takes a `default_model` from the model catalog and provisions a provider running on naturali's own model access (it carries no credential of yours, so it accepts none). 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`, `policy`, `project_price` and `webhook` types, which this API does not expose.
|
|
5111
|
+
* Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `orchestration`, `playbook`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus two naturali registers itself and handles through its own lifecycle: `channel`, taking the same property names the channels API takes (its credential properties are write-only, so a tenant credential never lands in the resource ledger), and `naturali_ai_provider`, which takes a `default_model` from the model catalog and provisions a provider running on naturali's own model access (it carries no credential of yours, so it accepts none). 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`, `policy`, `project_price` and `webhook` types, which this API does not expose.
|
|
5112
5112
|
*
|
|
5113
5113
|
* 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.
|
|
5114
5114
|
*
|
|
@@ -8750,7 +8750,7 @@ type Tool = {
|
|
|
8750
8750
|
/**
|
|
8751
8751
|
* Tool type
|
|
8752
8752
|
*/
|
|
8753
|
-
type?: 'http' | 'client' | 'mcp' | 'pipeline';
|
|
8753
|
+
type?: 'http' | 'client' | 'mcp' | 'pipeline' | 'naturali';
|
|
8754
8754
|
/**
|
|
8755
8755
|
* What the tool does (sent to the model)
|
|
8756
8756
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1797,7 +1797,7 @@ type CreateToolRequest = {
|
|
|
1797
1797
|
/**
|
|
1798
1798
|
* Tool type (default http)
|
|
1799
1799
|
*/
|
|
1800
|
-
type?: 'http' | 'client' | 'mcp' | 'pipeline';
|
|
1800
|
+
type?: 'http' | 'client' | 'mcp' | 'pipeline' | 'naturali';
|
|
1801
1801
|
/**
|
|
1802
1802
|
* What the tool does
|
|
1803
1803
|
*/
|
|
@@ -5108,7 +5108,7 @@ type PlaybookResourceProperties = {
|
|
|
5108
5108
|
};
|
|
5109
5109
|
type ResourceDeclaration = {
|
|
5110
5110
|
/**
|
|
5111
|
-
* Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `orchestration`, `playbook`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus two naturali registers itself and handles through its own lifecycle: `channel`, taking the same property names the channels API takes (its credential properties are write-only, so a tenant credential never lands in the resource ledger), and `naturali_ai_provider`, which takes a `default_model` from the model catalog and provisions a provider running on naturali's own model access (it carries no credential of yours, so it accepts none). 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`, `policy`, `project_price` and `webhook` types, which this API does not expose.
|
|
5111
|
+
* Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `orchestration`, `playbook`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus two naturali registers itself and handles through its own lifecycle: `channel`, taking the same property names the channels API takes (its credential properties are write-only, so a tenant credential never lands in the resource ledger), and `naturali_ai_provider`, which takes a `default_model` from the model catalog and provisions a provider running on naturali's own model access (it carries no credential of yours, so it accepts none). 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`, `policy`, `project_price` and `webhook` types, which this API does not expose.
|
|
5112
5112
|
*
|
|
5113
5113
|
* 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.
|
|
5114
5114
|
*
|
|
@@ -8750,7 +8750,7 @@ type Tool = {
|
|
|
8750
8750
|
/**
|
|
8751
8751
|
* Tool type
|
|
8752
8752
|
*/
|
|
8753
|
-
type?: 'http' | 'client' | 'mcp' | 'pipeline';
|
|
8753
|
+
type?: 'http' | 'client' | 'mcp' | 'pipeline' | 'naturali';
|
|
8754
8754
|
/**
|
|
8755
8755
|
* What the tool does (sent to the model)
|
|
8756
8756
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.199.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.
|
|
41
|
+
"@naturali/api": "0.199.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|