@naturali/sdk 0.250.0 → 0.250.2

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 CHANGED
@@ -5215,10 +5215,11 @@ var Projects = class {
5215
5215
  /**
5216
5216
  * Update a project
5217
5217
  *
5218
- * 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.
5218
+ * 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`), the policies capping every agent turn in it (`agent_policy_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
5219
5219
  * 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.
5220
5220
  * 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.
5221
5221
  * `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.
5222
+ * `agent_policy_ids` caps every turn of every agent the project owns: an action they deny is refused even where the agent's own `policy_ids` allow it, and the refusal's `meta.denied_by` is `{ type: project, id: <project_id> }`. `null` or `[]` removes the cap. The credential must hold every grant the policies carry, else `403` with `POLICY_GRANT_NOT_HELD`; an id naming no policy responds `400` with `POLICY_NOT_FOUND`, and a policy of another project `400` with `POLICY_OUTSIDE_PROJECT`.
5222
5223
  * 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.
5223
5224
  *
5224
5225
  * 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
@@ -8415,6 +8415,11 @@ type Project = {
8415
8415
  *
8416
8416
  */
8417
8417
  guardrail_ids: Array<string>;
8418
+ /**
8419
+ * Policies capping every turn of every agent the project owns, on every path the agent's own `policy_ids` cap and on its stored `knowledge_config` retrieval. `null` (the default) adds no cap. See [Capping every agent](/docs/modules/projects#capping-every-agent).
8420
+ *
8421
+ */
8422
+ agent_policy_ids: Array<string> | null;
8418
8423
  /**
8419
8424
  * When the project was paused; `null` while it runs. See [Pausing a project](/docs/modules/projects#pausing-a-project).
8420
8425
  *
@@ -8575,6 +8580,11 @@ type ProjectUpdate = {
8575
8580
  *
8576
8581
  */
8577
8582
  guardrail_ids?: Array<string>;
8583
+ /**
8584
+ * Policies capping every agent turn in the project, replaced wholesale. Send `null` or `[]` to remove the cap; omitting the field leaves it unchanged. The credential must hold every grant they carry, else `403 POLICY_GRANT_NOT_HELD`.
8585
+ *
8586
+ */
8587
+ agent_policy_ids?: Array<string> | null;
8578
8588
  /**
8579
8589
  * Turn managed conversion off or back on. Off removes the managed ingestion rules; rules of your own stay.
8580
8590
  *
@@ -30016,7 +30026,7 @@ type UpdateProjectData = {
30016
30026
  };
30017
30027
  type UpdateProjectErrors = {
30018
30028
  /**
30019
- * A malformed field, or `guardrail_not_found` for a `guardrail_ids` entry naming no guardrail in the project.
30029
+ * A malformed field, `guardrail_not_found` for a `guardrail_ids` entry naming no guardrail in the project, or `POLICY_NOT_FOUND` / `POLICY_OUTSIDE_PROJECT` for an `agent_policy_ids` entry naming no policy, or one of another project.
30020
30030
  */
30021
30031
  400: ErrorResponse;
30022
30032
  /**
@@ -38019,10 +38029,11 @@ export declare class Projects {
38019
38029
  /**
38020
38030
  * Update a project
38021
38031
  *
38022
- * 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.
38032
+ * 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`), the policies capping every agent turn in it (`agent_policy_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
38023
38033
  * 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.
38024
38034
  * 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.
38025
38035
  * `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.
38036
+ * `agent_policy_ids` caps every turn of every agent the project owns: an action they deny is refused even where the agent's own `policy_ids` allow it, and the refusal's `meta.denied_by` is `{ type: project, id: <project_id> }`. `null` or `[]` removes the cap. The credential must hold every grant the policies carry, else `403` with `POLICY_GRANT_NOT_HELD`; an id naming no policy responds `400` with `POLICY_NOT_FOUND`, and a policy of another project `400` with `POLICY_OUTSIDE_PROJECT`.
38026
38037
  * 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.
38027
38038
  *
38028
38039
  * 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
@@ -8415,6 +8415,11 @@ type Project = {
8415
8415
  *
8416
8416
  */
8417
8417
  guardrail_ids: Array<string>;
8418
+ /**
8419
+ * Policies capping every turn of every agent the project owns, on every path the agent's own `policy_ids` cap and on its stored `knowledge_config` retrieval. `null` (the default) adds no cap. See [Capping every agent](/docs/modules/projects#capping-every-agent).
8420
+ *
8421
+ */
8422
+ agent_policy_ids: Array<string> | null;
8418
8423
  /**
8419
8424
  * When the project was paused; `null` while it runs. See [Pausing a project](/docs/modules/projects#pausing-a-project).
8420
8425
  *
@@ -8575,6 +8580,11 @@ type ProjectUpdate = {
8575
8580
  *
8576
8581
  */
8577
8582
  guardrail_ids?: Array<string>;
8583
+ /**
8584
+ * Policies capping every agent turn in the project, replaced wholesale. Send `null` or `[]` to remove the cap; omitting the field leaves it unchanged. The credential must hold every grant they carry, else `403 POLICY_GRANT_NOT_HELD`.
8585
+ *
8586
+ */
8587
+ agent_policy_ids?: Array<string> | null;
8578
8588
  /**
8579
8589
  * Turn managed conversion off or back on. Off removes the managed ingestion rules; rules of your own stay.
8580
8590
  *
@@ -30016,7 +30026,7 @@ type UpdateProjectData = {
30016
30026
  };
30017
30027
  type UpdateProjectErrors = {
30018
30028
  /**
30019
- * A malformed field, or `guardrail_not_found` for a `guardrail_ids` entry naming no guardrail in the project.
30029
+ * A malformed field, `guardrail_not_found` for a `guardrail_ids` entry naming no guardrail in the project, or `POLICY_NOT_FOUND` / `POLICY_OUTSIDE_PROJECT` for an `agent_policy_ids` entry naming no policy, or one of another project.
30020
30030
  */
30021
30031
  400: ErrorResponse;
30022
30032
  /**
@@ -38019,10 +38029,11 @@ export declare class Projects {
38019
38029
  /**
38020
38030
  * Update a project
38021
38031
  *
38022
- * 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.
38032
+ * 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`), the policies capping every agent turn in it (`agent_policy_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
38023
38033
  * 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.
38024
38034
  * 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.
38025
38035
  * `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.
38036
+ * `agent_policy_ids` caps every turn of every agent the project owns: an action they deny is refused even where the agent's own `policy_ids` allow it, and the refusal's `meta.denied_by` is `{ type: project, id: <project_id> }`. `null` or `[]` removes the cap. The credential must hold every grant the policies carry, else `403` with `POLICY_GRANT_NOT_HELD`; an id naming no policy responds `400` with `POLICY_NOT_FOUND`, and a policy of another project `400` with `POLICY_OUTSIDE_PROJECT`.
38026
38037
  * 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.
38027
38038
  *
38028
38039
  * 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
@@ -5214,10 +5214,11 @@ var Projects = class {
5214
5214
  /**
5215
5215
  * Update a project
5216
5216
  *
5217
- * 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.
5217
+ * 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`), the policies capping every agent turn in it (`agent_policy_ids`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
5218
5218
  * 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.
5219
5219
  * 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.
5220
5220
  * `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.
5221
+ * `agent_policy_ids` caps every turn of every agent the project owns: an action they deny is refused even where the agent's own `policy_ids` allow it, and the refusal's `meta.denied_by` is `{ type: project, id: <project_id> }`. `null` or `[]` removes the cap. The credential must hold every grant the policies carry, else `403` with `POLICY_GRANT_NOT_HELD`; an id naming no policy responds `400` with `POLICY_NOT_FOUND`, and a policy of another project `400` with `POLICY_OUTSIDE_PROJECT`.
5221
5222
  * 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.
5222
5223
  *
5223
5224
  * 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.250.0",
3
+ "version": "0.250.2",
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.250.0",
41
+ "@naturali/api": "0.250.2",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",