@naturali/sdk 0.186.0 → 0.188.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 +20 -2
- package/dist/index.d.mts +20 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1791,7 +1791,7 @@ type CreateToolRequest = {
|
|
|
1791
1791
|
guardrail_ids?: Array<string> | null;
|
|
1792
1792
|
};
|
|
1793
1793
|
/**
|
|
1794
|
-
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `
|
|
1794
|
+
* 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; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
|
|
1795
1795
|
*
|
|
1796
1796
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
1797
1797
|
*
|
|
@@ -1824,6 +1824,10 @@ type ToolExecuteConfig = {
|
|
|
1824
1824
|
* Request body encoding. Incompatible with `auth.type: aws_sigv4`.
|
|
1825
1825
|
*/
|
|
1826
1826
|
body_mode?: 'json' | 'multipart' | null;
|
|
1827
|
+
/**
|
|
1828
|
+
* How a 2xx response body is returned. `base64` returns `{ content_type, filename, data_base64 }` for binary targets.
|
|
1829
|
+
*/
|
|
1830
|
+
response_mode?: 'json' | 'base64' | null;
|
|
1827
1831
|
auth?: ToolExecuteAuthConfig;
|
|
1828
1832
|
} | null;
|
|
1829
1833
|
/**
|
|
@@ -2568,6 +2572,16 @@ type Channel = {
|
|
|
2568
2572
|
* WhatsApp Business Account id, when known.
|
|
2569
2573
|
*/
|
|
2570
2574
|
waba_id: string | null;
|
|
2575
|
+
/**
|
|
2576
|
+
* The number as Meta displays it, read when the number was linked by embedded signup. Null for other channels and other credential sources.
|
|
2577
|
+
*
|
|
2578
|
+
*/
|
|
2579
|
+
display_phone_number?: string | null;
|
|
2580
|
+
/**
|
|
2581
|
+
* The business name Meta shows for the number, when known; null on the same terms as `display_phone_number`.
|
|
2582
|
+
*
|
|
2583
|
+
*/
|
|
2584
|
+
verified_name?: string | null;
|
|
2571
2585
|
/**
|
|
2572
2586
|
* Discord application id — the tenant's app, one channel per app. The gateway worker holds one connection per channel. Null for non-Discord channels.
|
|
2573
2587
|
*
|
|
@@ -4245,6 +4259,10 @@ type ToolResourceProperties = {
|
|
|
4245
4259
|
* Request body encoding for `POST`/`PUT`/`PATCH`: `json` (default) or `multipart`. Incompatible with `auth.type: aws_sigv4`.
|
|
4246
4260
|
*/
|
|
4247
4261
|
body_mode?: string | null;
|
|
4262
|
+
/**
|
|
4263
|
+
* How a 2xx response body is returned: `json` (default) or `base64`, which returns `{ content_type, filename, data_base64 }` for binary targets.
|
|
4264
|
+
*/
|
|
4265
|
+
response_mode?: string | null;
|
|
4248
4266
|
/**
|
|
4249
4267
|
* Computed request credential. `type` is `aws_sigv4` (with `region`, `service`, `access_key_id`, `secret_access_key` and optional `session_token`) or `gcp_service_account` (with `credentials` and `scopes`). Credential fields accept `{{secret:...}}` references.
|
|
4250
4268
|
*/
|
|
@@ -8077,7 +8095,7 @@ type Tool = {
|
|
|
8077
8095
|
[key: string]: unknown;
|
|
8078
8096
|
} | null;
|
|
8079
8097
|
/**
|
|
8080
|
-
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `
|
|
8098
|
+
* 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; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
|
|
8081
8099
|
*
|
|
8082
8100
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
8083
8101
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -1791,7 +1791,7 @@ type CreateToolRequest = {
|
|
|
1791
1791
|
guardrail_ids?: Array<string> | null;
|
|
1792
1792
|
};
|
|
1793
1793
|
/**
|
|
1794
|
-
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `
|
|
1794
|
+
* 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; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
|
|
1795
1795
|
*
|
|
1796
1796
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
1797
1797
|
*
|
|
@@ -1824,6 +1824,10 @@ type ToolExecuteConfig = {
|
|
|
1824
1824
|
* Request body encoding. Incompatible with `auth.type: aws_sigv4`.
|
|
1825
1825
|
*/
|
|
1826
1826
|
body_mode?: 'json' | 'multipart' | null;
|
|
1827
|
+
/**
|
|
1828
|
+
* How a 2xx response body is returned. `base64` returns `{ content_type, filename, data_base64 }` for binary targets.
|
|
1829
|
+
*/
|
|
1830
|
+
response_mode?: 'json' | 'base64' | null;
|
|
1827
1831
|
auth?: ToolExecuteAuthConfig;
|
|
1828
1832
|
} | null;
|
|
1829
1833
|
/**
|
|
@@ -2568,6 +2572,16 @@ type Channel = {
|
|
|
2568
2572
|
* WhatsApp Business Account id, when known.
|
|
2569
2573
|
*/
|
|
2570
2574
|
waba_id: string | null;
|
|
2575
|
+
/**
|
|
2576
|
+
* The number as Meta displays it, read when the number was linked by embedded signup. Null for other channels and other credential sources.
|
|
2577
|
+
*
|
|
2578
|
+
*/
|
|
2579
|
+
display_phone_number?: string | null;
|
|
2580
|
+
/**
|
|
2581
|
+
* The business name Meta shows for the number, when known; null on the same terms as `display_phone_number`.
|
|
2582
|
+
*
|
|
2583
|
+
*/
|
|
2584
|
+
verified_name?: string | null;
|
|
2571
2585
|
/**
|
|
2572
2586
|
* Discord application id — the tenant's app, one channel per app. The gateway worker holds one connection per channel. Null for non-Discord channels.
|
|
2573
2587
|
*
|
|
@@ -4245,6 +4259,10 @@ type ToolResourceProperties = {
|
|
|
4245
4259
|
* Request body encoding for `POST`/`PUT`/`PATCH`: `json` (default) or `multipart`. Incompatible with `auth.type: aws_sigv4`.
|
|
4246
4260
|
*/
|
|
4247
4261
|
body_mode?: string | null;
|
|
4262
|
+
/**
|
|
4263
|
+
* How a 2xx response body is returned: `json` (default) or `base64`, which returns `{ content_type, filename, data_base64 }` for binary targets.
|
|
4264
|
+
*/
|
|
4265
|
+
response_mode?: string | null;
|
|
4248
4266
|
/**
|
|
4249
4267
|
* Computed request credential. `type` is `aws_sigv4` (with `region`, `service`, `access_key_id`, `secret_access_key` and optional `session_token`) or `gcp_service_account` (with `credentials` and `scopes`). Credential fields accept `{{secret:...}}` references.
|
|
4250
4268
|
*/
|
|
@@ -8077,7 +8095,7 @@ type Tool = {
|
|
|
8077
8095
|
[key: string]: unknown;
|
|
8078
8096
|
} | null;
|
|
8079
8097
|
/**
|
|
8080
|
-
* Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `
|
|
8098
|
+
* 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; a body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`.
|
|
8081
8099
|
*
|
|
8082
8100
|
* `auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:
|
|
8083
8101
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.188.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.188.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|