@naturali/sdk 0.211.10 → 0.212.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 +11 -5
- package/dist/index.d.mts +11 -5
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1860,7 +1860,7 @@ type CreateToolRequest = {
|
|
|
1860
1860
|
guardrail_ids?: Array<string> | null;
|
|
1861
1861
|
};
|
|
1862
1862
|
/**
|
|
1863
|
-
* Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none
|
|
1863
|
+
* Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.
|
|
1864
1864
|
*
|
|
1865
1865
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
1866
1866
|
*
|
|
@@ -8827,7 +8827,7 @@ type Tool = {
|
|
|
8827
8827
|
[key: string]: unknown;
|
|
8828
8828
|
} | null;
|
|
8829
8829
|
/**
|
|
8830
|
-
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none
|
|
8830
|
+
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.
|
|
8831
8831
|
*
|
|
8832
8832
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
8833
8833
|
*
|
|
@@ -9191,7 +9191,7 @@ type TriggerFiring = {
|
|
|
9191
9191
|
*/
|
|
9192
9192
|
error?: StoredError | null;
|
|
9193
9193
|
/**
|
|
9194
|
-
* `<event_id>:<trigger_id>` for an `event` firing, where `event_id` is the `id` in `input`;
|
|
9194
|
+
* `<event_id>:<trigger_id>` for an `event` firing, where `event_id` is the `id` in `input`; `<v1>:<trigger_id>` for a `webhook` firing whose delivery carried the timestamped `t=,v1=` signature; null otherwise. The same event reaching the same trigger twice produces one firing under this key, so a consumer reading firings can recognise a redelivery; a replayed signed delivery is refused.
|
|
9195
9195
|
*/
|
|
9196
9196
|
idempotency_key?: string | null;
|
|
9197
9197
|
/**
|
|
@@ -12247,7 +12247,7 @@ type ListAiProvidersResponses = {
|
|
|
12247
12247
|
*/
|
|
12248
12248
|
base_url?: string;
|
|
12249
12249
|
/**
|
|
12250
|
-
* Additional provider-specific configuration. Absent when the record sets none.
|
|
12250
|
+
* Additional provider-specific configuration. Absent when the record sets none. A `config.apiKey` reads as `{"no_echo": true}`.
|
|
12251
12251
|
*/
|
|
12252
12252
|
config?: {
|
|
12253
12253
|
[key: string]: unknown;
|
|
@@ -12282,7 +12282,7 @@ type CreateAiProviderData = {
|
|
|
12282
12282
|
*/
|
|
12283
12283
|
base_url?: string;
|
|
12284
12284
|
/**
|
|
12285
|
-
* Additional provider-specific configuration
|
|
12285
|
+
* Additional provider-specific configuration. `config.apiKey`, when set, must be a string; every read returns it as `{"no_echo": true}`.
|
|
12286
12286
|
*/
|
|
12287
12287
|
config?: {
|
|
12288
12288
|
[key: string]: unknown;
|
|
@@ -12457,6 +12457,9 @@ type GetAiProviderResponses = {
|
|
|
12457
12457
|
project_id?: string;
|
|
12458
12458
|
secret_id?: string | null;
|
|
12459
12459
|
base_url?: string;
|
|
12460
|
+
/**
|
|
12461
|
+
* Additional provider-specific configuration. A `config.apiKey` reads as `{"no_echo": true}`.
|
|
12462
|
+
*/
|
|
12460
12463
|
config?: {
|
|
12461
12464
|
[key: string]: unknown;
|
|
12462
12465
|
};
|
|
@@ -12475,6 +12478,9 @@ type UpdateAiProviderData = {
|
|
|
12475
12478
|
default_model?: string;
|
|
12476
12479
|
secret_id?: string | null;
|
|
12477
12480
|
base_url?: string;
|
|
12481
|
+
/**
|
|
12482
|
+
* Replaces the whole configuration, so a `config.apiKey` the record keeps is sent again as a string; the masked `{"no_echo": true}` a read returns is refused.
|
|
12483
|
+
*/
|
|
12478
12484
|
config?: {
|
|
12479
12485
|
[key: string]: unknown;
|
|
12480
12486
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1860,7 +1860,7 @@ type CreateToolRequest = {
|
|
|
1860
1860
|
guardrail_ids?: Array<string> | null;
|
|
1861
1861
|
};
|
|
1862
1862
|
/**
|
|
1863
|
-
* Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none
|
|
1863
|
+
* Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.
|
|
1864
1864
|
*
|
|
1865
1865
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
1866
1866
|
*
|
|
@@ -8827,7 +8827,7 @@ type Tool = {
|
|
|
8827
8827
|
[key: string]: unknown;
|
|
8828
8828
|
} | null;
|
|
8829
8829
|
/**
|
|
8830
|
-
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none
|
|
8830
|
+
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.
|
|
8831
8831
|
*
|
|
8832
8832
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
8833
8833
|
*
|
|
@@ -9191,7 +9191,7 @@ type TriggerFiring = {
|
|
|
9191
9191
|
*/
|
|
9192
9192
|
error?: StoredError | null;
|
|
9193
9193
|
/**
|
|
9194
|
-
* `<event_id>:<trigger_id>` for an `event` firing, where `event_id` is the `id` in `input`;
|
|
9194
|
+
* `<event_id>:<trigger_id>` for an `event` firing, where `event_id` is the `id` in `input`; `<v1>:<trigger_id>` for a `webhook` firing whose delivery carried the timestamped `t=,v1=` signature; null otherwise. The same event reaching the same trigger twice produces one firing under this key, so a consumer reading firings can recognise a redelivery; a replayed signed delivery is refused.
|
|
9195
9195
|
*/
|
|
9196
9196
|
idempotency_key?: string | null;
|
|
9197
9197
|
/**
|
|
@@ -12247,7 +12247,7 @@ type ListAiProvidersResponses = {
|
|
|
12247
12247
|
*/
|
|
12248
12248
|
base_url?: string;
|
|
12249
12249
|
/**
|
|
12250
|
-
* Additional provider-specific configuration. Absent when the record sets none.
|
|
12250
|
+
* Additional provider-specific configuration. Absent when the record sets none. A `config.apiKey` reads as `{"no_echo": true}`.
|
|
12251
12251
|
*/
|
|
12252
12252
|
config?: {
|
|
12253
12253
|
[key: string]: unknown;
|
|
@@ -12282,7 +12282,7 @@ type CreateAiProviderData = {
|
|
|
12282
12282
|
*/
|
|
12283
12283
|
base_url?: string;
|
|
12284
12284
|
/**
|
|
12285
|
-
* Additional provider-specific configuration
|
|
12285
|
+
* Additional provider-specific configuration. `config.apiKey`, when set, must be a string; every read returns it as `{"no_echo": true}`.
|
|
12286
12286
|
*/
|
|
12287
12287
|
config?: {
|
|
12288
12288
|
[key: string]: unknown;
|
|
@@ -12457,6 +12457,9 @@ type GetAiProviderResponses = {
|
|
|
12457
12457
|
project_id?: string;
|
|
12458
12458
|
secret_id?: string | null;
|
|
12459
12459
|
base_url?: string;
|
|
12460
|
+
/**
|
|
12461
|
+
* Additional provider-specific configuration. A `config.apiKey` reads as `{"no_echo": true}`.
|
|
12462
|
+
*/
|
|
12460
12463
|
config?: {
|
|
12461
12464
|
[key: string]: unknown;
|
|
12462
12465
|
};
|
|
@@ -12475,6 +12478,9 @@ type UpdateAiProviderData = {
|
|
|
12475
12478
|
default_model?: string;
|
|
12476
12479
|
secret_id?: string | null;
|
|
12477
12480
|
base_url?: string;
|
|
12481
|
+
/**
|
|
12482
|
+
* Replaces the whole configuration, so a `config.apiKey` the record keeps is sent again as a string; the masked `{"no_echo": true}` a read returns is refused.
|
|
12483
|
+
*/
|
|
12478
12484
|
config?: {
|
|
12479
12485
|
[key: string]: unknown;
|
|
12480
12486
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.212.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.
|
|
41
|
+
"@naturali/api": "0.212.1",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|