@naturali/sdk 0.221.1 → 0.222.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 CHANGED
@@ -5155,7 +5155,7 @@ type PlaybookResourceProperties = {
5155
5155
  };
5156
5156
  type ResourceDeclaration = {
5157
5157
  /**
5158
- * 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 three 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), `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), and `webhook`, naturali's own webhook rather than the runtime's, taking the webhooks API's `url`, `events`, `description` and `active` plus a required, write-only `secret` it signs deliveries with. 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` and `project_price` types, which this API does not expose.
5158
+ * 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 four 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), `mcp_server`, taking the MCP servers API's properties (`context` and `auth` are write-only), `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), and `webhook`, naturali's own webhook rather than the runtime's, taking the webhooks API's `url`, `events`, `description` and `active` plus a required, write-only `secret` it signs deliveries with. 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` and `project_price` types, which this API does not expose.
5159
5159
  *
5160
5160
  * 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.
5161
5161
  *
package/dist/index.d.mts CHANGED
@@ -5155,7 +5155,7 @@ type PlaybookResourceProperties = {
5155
5155
  };
5156
5156
  type ResourceDeclaration = {
5157
5157
  /**
5158
- * 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 three 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), `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), and `webhook`, naturali's own webhook rather than the runtime's, taking the webhooks API's `url`, `events`, `description` and `active` plus a required, write-only `secret` it signs deliveries with. 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` and `project_price` types, which this API does not expose.
5158
+ * 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 four 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), `mcp_server`, taking the MCP servers API's properties (`context` and `auth` are write-only), `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), and `webhook`, naturali's own webhook rather than the runtime's, taking the webhooks API's `url`, `events`, `description` and `active` plus a required, write-only `secret` it signs deliveries with. 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` and `project_price` types, which this API does not expose.
5159
5159
  *
5160
5160
  * 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.
5161
5161
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.221.1",
3
+ "version": "0.222.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.221.1",
41
+ "@naturali/api": "0.222.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.0",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",