@naturali/sdk 0.158.0 → 0.159.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 +2 -1
- package/dist/index.d.cts +13 -2
- package/dist/index.d.mts +13 -2
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4152,9 +4152,10 @@ var Projects = class {
|
|
|
4152
4152
|
/**
|
|
4153
4153
|
* Update a project
|
|
4154
4154
|
*
|
|
4155
|
-
* 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`)
|
|
4155
|
+
* 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`) and its project-scope guardrails (`guardrail_ids`). Archiving is reversible; resources are retained.
|
|
4156
4156
|
* 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.
|
|
4157
4157
|
* 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.
|
|
4158
|
+
* `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.
|
|
4158
4159
|
* The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
|
|
4159
4160
|
*
|
|
4160
4161
|
* Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
|
package/dist/index.d.cts
CHANGED
|
@@ -6396,6 +6396,11 @@ type Project = {
|
|
|
6396
6396
|
*
|
|
6397
6397
|
*/
|
|
6398
6398
|
require_priced_model: boolean;
|
|
6399
|
+
/**
|
|
6400
|
+
* Guardrails attached at the project scope — the floor under every tool call by every agent in the project, including tools added later. Empty by default. See [Attaching one](/docs/modules/guardrails#attaching-one).
|
|
6401
|
+
*
|
|
6402
|
+
*/
|
|
6403
|
+
guardrail_ids: Array<string>;
|
|
6399
6404
|
/**
|
|
6400
6405
|
* When the project was paused; `null` while it runs. See [Pausing a project](/docs/modules/projects#pausing-a-project).
|
|
6401
6406
|
*
|
|
@@ -6520,6 +6525,11 @@ type ProjectUpdate = {
|
|
|
6520
6525
|
*
|
|
6521
6526
|
*/
|
|
6522
6527
|
require_priced_model?: boolean;
|
|
6528
|
+
/**
|
|
6529
|
+
* Guardrails attached at the project scope, replaced wholesale. Send `[]` to detach every one; omitting the field leaves them unchanged. Uncapped by plan — a guardrail can only tighten what runs.
|
|
6530
|
+
*
|
|
6531
|
+
*/
|
|
6532
|
+
guardrail_ids?: Array<string>;
|
|
6523
6533
|
};
|
|
6524
6534
|
/**
|
|
6525
6535
|
* Token counts (input_tokens already includes cached input).
|
|
@@ -19704,7 +19714,7 @@ type UpdateProjectData = {
|
|
|
19704
19714
|
};
|
|
19705
19715
|
type UpdateProjectErrors = {
|
|
19706
19716
|
/**
|
|
19707
|
-
*
|
|
19717
|
+
* A malformed field, or `guardrail_not_found` for a `guardrail_ids` entry naming no guardrail in the project.
|
|
19708
19718
|
*/
|
|
19709
19719
|
400: ErrorResponse;
|
|
19710
19720
|
/**
|
|
@@ -25241,9 +25251,10 @@ export declare class Projects {
|
|
|
25241
25251
|
/**
|
|
25242
25252
|
* Update a project
|
|
25243
25253
|
*
|
|
25244
|
-
* 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`)
|
|
25254
|
+
* 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`) and its project-scope guardrails (`guardrail_ids`). Archiving is reversible; resources are retained.
|
|
25245
25255
|
* 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.
|
|
25246
25256
|
* 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.
|
|
25257
|
+
* `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.
|
|
25247
25258
|
* The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
|
|
25248
25259
|
*
|
|
25249
25260
|
* Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
|
package/dist/index.d.mts
CHANGED
|
@@ -6396,6 +6396,11 @@ type Project = {
|
|
|
6396
6396
|
*
|
|
6397
6397
|
*/
|
|
6398
6398
|
require_priced_model: boolean;
|
|
6399
|
+
/**
|
|
6400
|
+
* Guardrails attached at the project scope — the floor under every tool call by every agent in the project, including tools added later. Empty by default. See [Attaching one](/docs/modules/guardrails#attaching-one).
|
|
6401
|
+
*
|
|
6402
|
+
*/
|
|
6403
|
+
guardrail_ids: Array<string>;
|
|
6399
6404
|
/**
|
|
6400
6405
|
* When the project was paused; `null` while it runs. See [Pausing a project](/docs/modules/projects#pausing-a-project).
|
|
6401
6406
|
*
|
|
@@ -6520,6 +6525,11 @@ type ProjectUpdate = {
|
|
|
6520
6525
|
*
|
|
6521
6526
|
*/
|
|
6522
6527
|
require_priced_model?: boolean;
|
|
6528
|
+
/**
|
|
6529
|
+
* Guardrails attached at the project scope, replaced wholesale. Send `[]` to detach every one; omitting the field leaves them unchanged. Uncapped by plan — a guardrail can only tighten what runs.
|
|
6530
|
+
*
|
|
6531
|
+
*/
|
|
6532
|
+
guardrail_ids?: Array<string>;
|
|
6523
6533
|
};
|
|
6524
6534
|
/**
|
|
6525
6535
|
* Token counts (input_tokens already includes cached input).
|
|
@@ -19704,7 +19714,7 @@ type UpdateProjectData = {
|
|
|
19704
19714
|
};
|
|
19705
19715
|
type UpdateProjectErrors = {
|
|
19706
19716
|
/**
|
|
19707
|
-
*
|
|
19717
|
+
* A malformed field, or `guardrail_not_found` for a `guardrail_ids` entry naming no guardrail in the project.
|
|
19708
19718
|
*/
|
|
19709
19719
|
400: ErrorResponse;
|
|
19710
19720
|
/**
|
|
@@ -25241,9 +25251,10 @@ export declare class Projects {
|
|
|
25241
25251
|
/**
|
|
25242
25252
|
* Update a project
|
|
25243
25253
|
*
|
|
25244
|
-
* 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`)
|
|
25254
|
+
* 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`) and its project-scope guardrails (`guardrail_ids`). Archiving is reversible; resources are retained.
|
|
25245
25255
|
* 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.
|
|
25246
25256
|
* 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.
|
|
25257
|
+
* `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.
|
|
25247
25258
|
* The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
|
|
25248
25259
|
*
|
|
25249
25260
|
* Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
|
package/dist/index.mjs
CHANGED
|
@@ -4151,9 +4151,10 @@ var Projects = class {
|
|
|
4151
4151
|
/**
|
|
4152
4152
|
* Update a project
|
|
4153
4153
|
*
|
|
4154
|
-
* 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`)
|
|
4154
|
+
* 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`) and its project-scope guardrails (`guardrail_ids`). Archiving is reversible; resources are retained.
|
|
4155
4155
|
* 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.
|
|
4156
4156
|
* 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.
|
|
4157
|
+
* `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.
|
|
4157
4158
|
* The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
|
|
4158
4159
|
*
|
|
4159
4160
|
* Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.159.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.159.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|