@naturali/sdk 0.211.9 → 0.212.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.cjs +1 -1
- package/dist/index.d.cts +16 -6
- package/dist/index.d.mts +16 -6
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1973,7 +1973,7 @@ var Auth = class {
|
|
|
1973
1973
|
/**
|
|
1974
1974
|
* Log out
|
|
1975
1975
|
*
|
|
1976
|
-
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user.
|
|
1976
|
+
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user; only a signed-in user's session may, not an API key or a connected app.
|
|
1977
1977
|
*
|
|
1978
1978
|
*/
|
|
1979
1979
|
static logout(options) {
|
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
|
};
|
|
@@ -13959,6 +13965,10 @@ type LogoutErrors = {
|
|
|
13959
13965
|
* Missing or invalid credentials.
|
|
13960
13966
|
*/
|
|
13961
13967
|
401: ErrorResponse;
|
|
13968
|
+
/**
|
|
13969
|
+
* `all: true` sent with an API key or a connected app's token.
|
|
13970
|
+
*/
|
|
13971
|
+
403: ErrorResponse;
|
|
13962
13972
|
};
|
|
13963
13973
|
type LogoutError = LogoutErrors[keyof LogoutErrors];
|
|
13964
13974
|
type LogoutResponses = {
|
|
@@ -33222,7 +33232,7 @@ export declare class Auth {
|
|
|
33222
33232
|
/**
|
|
33223
33233
|
* Log out
|
|
33224
33234
|
*
|
|
33225
|
-
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user.
|
|
33235
|
+
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user; only a signed-in user's session may, not an API key or a connected app.
|
|
33226
33236
|
*
|
|
33227
33237
|
*/
|
|
33228
33238
|
static logout<ThrowOnError extends boolean = false>(options?: Options<LogoutData, ThrowOnError>): RequestResult<LogoutResponses, LogoutErrors, ThrowOnError>;
|
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
|
};
|
|
@@ -13959,6 +13965,10 @@ type LogoutErrors = {
|
|
|
13959
13965
|
* Missing or invalid credentials.
|
|
13960
13966
|
*/
|
|
13961
13967
|
401: ErrorResponse;
|
|
13968
|
+
/**
|
|
13969
|
+
* `all: true` sent with an API key or a connected app's token.
|
|
13970
|
+
*/
|
|
13971
|
+
403: ErrorResponse;
|
|
13962
13972
|
};
|
|
13963
13973
|
type LogoutError = LogoutErrors[keyof LogoutErrors];
|
|
13964
13974
|
type LogoutResponses = {
|
|
@@ -33222,7 +33232,7 @@ export declare class Auth {
|
|
|
33222
33232
|
/**
|
|
33223
33233
|
* Log out
|
|
33224
33234
|
*
|
|
33225
|
-
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user.
|
|
33235
|
+
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user; only a signed-in user's session may, not an API key or a connected app.
|
|
33226
33236
|
*
|
|
33227
33237
|
*/
|
|
33228
33238
|
static logout<ThrowOnError extends boolean = false>(options?: Options<LogoutData, ThrowOnError>): RequestResult<LogoutResponses, LogoutErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -1972,7 +1972,7 @@ var Auth = class {
|
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Log out
|
|
1974
1974
|
*
|
|
1975
|
-
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user.
|
|
1975
|
+
* Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user; only a signed-in user's session may, not an API key or a connected app.
|
|
1976
1976
|
*
|
|
1977
1977
|
*/
|
|
1978
1978
|
static logout(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.212.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.212.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|