@naturali/sdk 0.162.2 → 0.163.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 +18 -2
- package/dist/index.d.mts +18 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4155,7 +4155,7 @@ var Projects = class {
|
|
|
4155
4155
|
/**
|
|
4156
4156
|
* Update a project
|
|
4157
4157
|
*
|
|
4158
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`)
|
|
4158
|
+
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`), its project-scope guardrails (`guardrail_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
4159
4159
|
* Requires the `admin` role in the project (an `owner` has it too). These are the terms every member works under, which is why setting them sits above the role that works under them.
|
|
4160
4160
|
* The ceilings and the priced-model gate are uncapped by plan: each one only ever narrows what the project may spend, so setting one takes on a restriction rather than claiming an entitlement. On the three ceilings `null` clears the project's own bound and omission leaves it alone — they are different instructions.
|
|
4161
4161
|
* `guardrail_ids` is the floor under every tool call by every agent in the project, including tools added later. The list is replaced wholesale, so send the ids you want to keep; `[]` detaches every one. An id naming no guardrail in the project responds `400` with `guardrail_not_found`, whose `details.missing` lists the ids. It is uncapped by plan, like the ceilings: a guardrail can only tighten what runs.
|
package/dist/index.d.cts
CHANGED
|
@@ -6608,6 +6608,11 @@ type Project = {
|
|
|
6608
6608
|
*
|
|
6609
6609
|
*/
|
|
6610
6610
|
pause_reason: string | null;
|
|
6611
|
+
/**
|
|
6612
|
+
* Whether scanned PDFs, images and audio are converted to text on ingest with no setup. `true` by default. See [Managed conversion](/docs/modules/documents#managed-conversion).
|
|
6613
|
+
*
|
|
6614
|
+
*/
|
|
6615
|
+
managed_conversion: boolean;
|
|
6611
6616
|
created_at: Date;
|
|
6612
6617
|
updated_at: Date;
|
|
6613
6618
|
};
|
|
@@ -6727,6 +6732,11 @@ type ProjectUpdate = {
|
|
|
6727
6732
|
*
|
|
6728
6733
|
*/
|
|
6729
6734
|
guardrail_ids?: Array<string>;
|
|
6735
|
+
/**
|
|
6736
|
+
* Turn managed conversion off or back on. Off removes the managed ingestion rules; rules of your own stay.
|
|
6737
|
+
*
|
|
6738
|
+
*/
|
|
6739
|
+
managed_conversion?: boolean;
|
|
6730
6740
|
};
|
|
6731
6741
|
/**
|
|
6732
6742
|
* Token counts (input_tokens already includes cached input).
|
|
@@ -10989,6 +10999,12 @@ type ApproveApprovalData = {
|
|
|
10989
10999
|
arguments?: {
|
|
10990
11000
|
[key: string]: unknown;
|
|
10991
11001
|
};
|
|
11002
|
+
/**
|
|
11003
|
+
* Key-value pairs forwarded as context headers on the approved action and on every tool call of the continuation turn, as on a generation's `tool_context`. Never stored on the item: supply it on the approve call itself, for a tool that authorizes with a credential minted at decision time. The server-pinned identity keys (`session_id`, `actor_id`, `actor_external_id`) are dropped. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY` and nothing is resolved.
|
|
11004
|
+
*/
|
|
11005
|
+
tool_context?: {
|
|
11006
|
+
[key: string]: string;
|
|
11007
|
+
};
|
|
10992
11008
|
};
|
|
10993
11009
|
path: {
|
|
10994
11010
|
/**
|
|
@@ -11005,7 +11021,7 @@ type ApproveApprovalData = {
|
|
|
11005
11021
|
};
|
|
11006
11022
|
type ApproveApprovalErrors = {
|
|
11007
11023
|
/**
|
|
11008
|
-
* Edited arguments are not a JSON object, or do not satisfy the tool's parameters schema
|
|
11024
|
+
* Edited arguments are not a JSON object, or do not satisfy the tool's parameters schema; or a `tool_context` key is not a valid header name
|
|
11009
11025
|
*/
|
|
11010
11026
|
400: unknown;
|
|
11011
11027
|
/**
|
|
@@ -25474,7 +25490,7 @@ export declare class Projects {
|
|
|
25474
25490
|
/**
|
|
25475
25491
|
* Update a project
|
|
25476
25492
|
*
|
|
25477
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`)
|
|
25493
|
+
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`), its project-scope guardrails (`guardrail_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
25478
25494
|
* Requires the `admin` role in the project (an `owner` has it too). These are the terms every member works under, which is why setting them sits above the role that works under them.
|
|
25479
25495
|
* The ceilings and the priced-model gate are uncapped by plan: each one only ever narrows what the project may spend, so setting one takes on a restriction rather than claiming an entitlement. On the three ceilings `null` clears the project's own bound and omission leaves it alone — they are different instructions.
|
|
25480
25496
|
* `guardrail_ids` is the floor under every tool call by every agent in the project, including tools added later. The list is replaced wholesale, so send the ids you want to keep; `[]` detaches every one. An id naming no guardrail in the project responds `400` with `guardrail_not_found`, whose `details.missing` lists the ids. It is uncapped by plan, like the ceilings: a guardrail can only tighten what runs.
|
package/dist/index.d.mts
CHANGED
|
@@ -6608,6 +6608,11 @@ type Project = {
|
|
|
6608
6608
|
*
|
|
6609
6609
|
*/
|
|
6610
6610
|
pause_reason: string | null;
|
|
6611
|
+
/**
|
|
6612
|
+
* Whether scanned PDFs, images and audio are converted to text on ingest with no setup. `true` by default. See [Managed conversion](/docs/modules/documents#managed-conversion).
|
|
6613
|
+
*
|
|
6614
|
+
*/
|
|
6615
|
+
managed_conversion: boolean;
|
|
6611
6616
|
created_at: Date;
|
|
6612
6617
|
updated_at: Date;
|
|
6613
6618
|
};
|
|
@@ -6727,6 +6732,11 @@ type ProjectUpdate = {
|
|
|
6727
6732
|
*
|
|
6728
6733
|
*/
|
|
6729
6734
|
guardrail_ids?: Array<string>;
|
|
6735
|
+
/**
|
|
6736
|
+
* Turn managed conversion off or back on. Off removes the managed ingestion rules; rules of your own stay.
|
|
6737
|
+
*
|
|
6738
|
+
*/
|
|
6739
|
+
managed_conversion?: boolean;
|
|
6730
6740
|
};
|
|
6731
6741
|
/**
|
|
6732
6742
|
* Token counts (input_tokens already includes cached input).
|
|
@@ -10989,6 +10999,12 @@ type ApproveApprovalData = {
|
|
|
10989
10999
|
arguments?: {
|
|
10990
11000
|
[key: string]: unknown;
|
|
10991
11001
|
};
|
|
11002
|
+
/**
|
|
11003
|
+
* Key-value pairs forwarded as context headers on the approved action and on every tool call of the continuation turn, as on a generation's `tool_context`. Never stored on the item: supply it on the approve call itself, for a tool that authorizes with a credential minted at decision time. The server-pinned identity keys (`session_id`, `actor_id`, `actor_external_id`) are dropped. An invalid or colliding key is rejected with `400 INVALID_TOOL_CONTEXT_KEY` and nothing is resolved.
|
|
11004
|
+
*/
|
|
11005
|
+
tool_context?: {
|
|
11006
|
+
[key: string]: string;
|
|
11007
|
+
};
|
|
10992
11008
|
};
|
|
10993
11009
|
path: {
|
|
10994
11010
|
/**
|
|
@@ -11005,7 +11021,7 @@ type ApproveApprovalData = {
|
|
|
11005
11021
|
};
|
|
11006
11022
|
type ApproveApprovalErrors = {
|
|
11007
11023
|
/**
|
|
11008
|
-
* Edited arguments are not a JSON object, or do not satisfy the tool's parameters schema
|
|
11024
|
+
* Edited arguments are not a JSON object, or do not satisfy the tool's parameters schema; or a `tool_context` key is not a valid header name
|
|
11009
11025
|
*/
|
|
11010
11026
|
400: unknown;
|
|
11011
11027
|
/**
|
|
@@ -25474,7 +25490,7 @@ export declare class Projects {
|
|
|
25474
25490
|
/**
|
|
25475
25491
|
* Update a project
|
|
25476
25492
|
*
|
|
25477
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`)
|
|
25493
|
+
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`), its project-scope guardrails (`guardrail_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
25478
25494
|
* Requires the `admin` role in the project (an `owner` has it too). These are the terms every member works under, which is why setting them sits above the role that works under them.
|
|
25479
25495
|
* The ceilings and the priced-model gate are uncapped by plan: each one only ever narrows what the project may spend, so setting one takes on a restriction rather than claiming an entitlement. On the three ceilings `null` clears the project's own bound and omission leaves it alone — they are different instructions.
|
|
25480
25496
|
* `guardrail_ids` is the floor under every tool call by every agent in the project, including tools added later. The list is replaced wholesale, so send the ids you want to keep; `[]` detaches every one. An id naming no guardrail in the project responds `400` with `guardrail_not_found`, whose `details.missing` lists the ids. It is uncapped by plan, like the ceilings: a guardrail can only tighten what runs.
|
package/dist/index.mjs
CHANGED
|
@@ -4154,7 +4154,7 @@ var Projects = class {
|
|
|
4154
4154
|
/**
|
|
4155
4155
|
* Update a project
|
|
4156
4156
|
*
|
|
4157
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`)
|
|
4157
|
+
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`), its project-scope guardrails (`guardrail_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
4158
4158
|
* Requires the `admin` role in the project (an `owner` has it too). These are the terms every member works under, which is why setting them sits above the role that works under them.
|
|
4159
4159
|
* The ceilings and the priced-model gate are uncapped by plan: each one only ever narrows what the project may spend, so setting one takes on a restriction rather than claiming an entitlement. On the three ceilings `null` clears the project's own bound and omission leaves it alone — they are different instructions.
|
|
4160
4160
|
* `guardrail_ids` is the floor under every tool call by every agent in the project, including tools added later. The list is replaced wholesale, so send the ids you want to keep; `[]` detaches every one. An id naming no guardrail in the project responds `400` with `guardrail_not_found`, whose `details.missing` lists the ids. It is uncapped by plan, like the ceilings: a guardrail can only tighten what runs.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.163.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
34
|
-
"@naturali/api": "0.
|
|
34
|
+
"@naturali/api": "0.163.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|