@naturali/sdk 0.296.0 → 0.297.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 +51 -2
- package/dist/index.d.mts +51 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5446,7 +5446,7 @@ var Projects = class {
|
|
|
5446
5446
|
/**
|
|
5447
5447
|
* Update a project
|
|
5448
5448
|
*
|
|
5449
|
-
* 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`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
5449
|
+
* 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`), the model route its consumers inherit (`default_model_route_id`), read auditing (`audit_reads_enabled`), what a conversation naming no `retrieval` does (`default_conversation_retrieval`), its project-scope guardrails (`guardrail_ids`), the policies capping every agent turn in it (`agent_policy_ids`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
5450
5450
|
* 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.
|
|
5451
5451
|
* 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.
|
|
5452
5452
|
* `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 `meta.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
|
@@ -9281,6 +9281,21 @@ type Project = {
|
|
|
9281
9281
|
*
|
|
9282
9282
|
*/
|
|
9283
9283
|
require_priced_model: boolean;
|
|
9284
|
+
/**
|
|
9285
|
+
* Model route inherited by every consumer in the project that binds neither `model_route_id` nor `ai_provider_id`, such as an `llm_judge` naming no provider. `null` (the default) means each consumer binds its own. See [The default model route](/docs/modules/projects#the-default-model-route).
|
|
9286
|
+
*
|
|
9287
|
+
*/
|
|
9288
|
+
default_model_route_id: string | null;
|
|
9289
|
+
/**
|
|
9290
|
+
* Whether `GET` requests naming this project are recorded in the [audit log](/docs/modules/audit-log) alongside mutations. `false` by default. See [Auditing reads](/docs/modules/projects#auditing-reads).
|
|
9291
|
+
*
|
|
9292
|
+
*/
|
|
9293
|
+
audit_reads_enabled: boolean;
|
|
9294
|
+
/**
|
|
9295
|
+
* What a conversation that names no `retrieval` of its own does: `embed` embeds its turns for vector retrieval, `none` (the default) stores and chunks them without embedding. See [Conversation retrieval](/docs/modules/projects#conversation-retrieval).
|
|
9296
|
+
*
|
|
9297
|
+
*/
|
|
9298
|
+
default_conversation_retrieval: 'embed' | 'none';
|
|
9284
9299
|
/**
|
|
9285
9300
|
* 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).
|
|
9286
9301
|
*
|
|
@@ -9451,6 +9466,21 @@ type ProjectUpdate = {
|
|
|
9451
9466
|
*
|
|
9452
9467
|
*/
|
|
9453
9468
|
require_priced_model?: boolean;
|
|
9469
|
+
/**
|
|
9470
|
+
* Model route consumers inherit when they bind neither a route nor a provider; it must belong to this project, else `400 MODEL_ROUTE_NOT_FOUND`. Repointing it is always allowed. `null` clears it, refused with `409 PROJECT_DEFAULT_ROUTE_INHERITED` while a consumer inherits it. Omitting the field leaves it unchanged.
|
|
9471
|
+
*
|
|
9472
|
+
*/
|
|
9473
|
+
default_model_route_id?: string | null;
|
|
9474
|
+
/**
|
|
9475
|
+
* `true` records `GET` requests naming this project in the audit log alongside mutations; `false` records mutations only. Omitting the field leaves it unchanged.
|
|
9476
|
+
*
|
|
9477
|
+
*/
|
|
9478
|
+
audit_reads_enabled?: boolean;
|
|
9479
|
+
/**
|
|
9480
|
+
* What a conversation that names no `retrieval` of its own does. `embed` embeds its turns, each embedding billed to the billing owner's credit; `none` stores and chunks them only. Omitting the field leaves it unchanged.
|
|
9481
|
+
*
|
|
9482
|
+
*/
|
|
9483
|
+
default_conversation_retrieval?: 'embed' | 'none';
|
|
9454
9484
|
/**
|
|
9455
9485
|
* 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.
|
|
9456
9486
|
*
|
|
@@ -11638,6 +11668,21 @@ type ProjectWritable = {
|
|
|
11638
11668
|
*
|
|
11639
11669
|
*/
|
|
11640
11670
|
require_priced_model: boolean;
|
|
11671
|
+
/**
|
|
11672
|
+
* Model route inherited by every consumer in the project that binds neither `model_route_id` nor `ai_provider_id`, such as an `llm_judge` naming no provider. `null` (the default) means each consumer binds its own. See [The default model route](/docs/modules/projects#the-default-model-route).
|
|
11673
|
+
*
|
|
11674
|
+
*/
|
|
11675
|
+
default_model_route_id: string | null;
|
|
11676
|
+
/**
|
|
11677
|
+
* Whether `GET` requests naming this project are recorded in the [audit log](/docs/modules/audit-log) alongside mutations. `false` by default. See [Auditing reads](/docs/modules/projects#auditing-reads).
|
|
11678
|
+
*
|
|
11679
|
+
*/
|
|
11680
|
+
audit_reads_enabled: boolean;
|
|
11681
|
+
/**
|
|
11682
|
+
* What a conversation that names no `retrieval` of its own does: `embed` embeds its turns for vector retrieval, `none` (the default) stores and chunks them without embedding. See [Conversation retrieval](/docs/modules/projects#conversation-retrieval).
|
|
11683
|
+
*
|
|
11684
|
+
*/
|
|
11685
|
+
default_conversation_retrieval: 'embed' | 'none';
|
|
11641
11686
|
/**
|
|
11642
11687
|
* 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).
|
|
11643
11688
|
*
|
|
@@ -32739,7 +32784,7 @@ type UpdateProjectData = {
|
|
|
32739
32784
|
};
|
|
32740
32785
|
type UpdateProjectErrors = {
|
|
32741
32786
|
/**
|
|
32742
|
-
* A malformed field (`VALIDATION_FAILED` when the runtime refuses it), `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.
|
|
32787
|
+
* A malformed field (`VALIDATION_FAILED` when the runtime refuses it), `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, or `MODEL_ROUTE_NOT_FOUND` for a `default_model_route_id` naming no route in the project.
|
|
32743
32788
|
*/
|
|
32744
32789
|
400: ErrorResponse;
|
|
32745
32790
|
/**
|
|
@@ -32754,6 +32799,10 @@ type UpdateProjectErrors = {
|
|
|
32754
32799
|
* The resource does not exist (existence is not leaked).
|
|
32755
32800
|
*/
|
|
32756
32801
|
404: ErrorResponse;
|
|
32802
|
+
/**
|
|
32803
|
+
* `default_model_route_id: null` while a consumer inherits the default (`PROJECT_DEFAULT_ROUTE_INHERITED`).
|
|
32804
|
+
*/
|
|
32805
|
+
409: ErrorResponse;
|
|
32757
32806
|
};
|
|
32758
32807
|
type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
|
|
32759
32808
|
type UpdateProjectResponses = {
|
|
@@ -41592,7 +41641,7 @@ export declare class Projects {
|
|
|
41592
41641
|
/**
|
|
41593
41642
|
* Update a project
|
|
41594
41643
|
*
|
|
41595
|
-
* 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`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
41644
|
+
* 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`), the model route its consumers inherit (`default_model_route_id`), read auditing (`audit_reads_enabled`), what a conversation naming no `retrieval` does (`default_conversation_retrieval`), its project-scope guardrails (`guardrail_ids`), the policies capping every agent turn in it (`agent_policy_ids`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
41596
41645
|
* 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.
|
|
41597
41646
|
* 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.
|
|
41598
41647
|
* `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 `meta.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
|
@@ -9281,6 +9281,21 @@ type Project = {
|
|
|
9281
9281
|
*
|
|
9282
9282
|
*/
|
|
9283
9283
|
require_priced_model: boolean;
|
|
9284
|
+
/**
|
|
9285
|
+
* Model route inherited by every consumer in the project that binds neither `model_route_id` nor `ai_provider_id`, such as an `llm_judge` naming no provider. `null` (the default) means each consumer binds its own. See [The default model route](/docs/modules/projects#the-default-model-route).
|
|
9286
|
+
*
|
|
9287
|
+
*/
|
|
9288
|
+
default_model_route_id: string | null;
|
|
9289
|
+
/**
|
|
9290
|
+
* Whether `GET` requests naming this project are recorded in the [audit log](/docs/modules/audit-log) alongside mutations. `false` by default. See [Auditing reads](/docs/modules/projects#auditing-reads).
|
|
9291
|
+
*
|
|
9292
|
+
*/
|
|
9293
|
+
audit_reads_enabled: boolean;
|
|
9294
|
+
/**
|
|
9295
|
+
* What a conversation that names no `retrieval` of its own does: `embed` embeds its turns for vector retrieval, `none` (the default) stores and chunks them without embedding. See [Conversation retrieval](/docs/modules/projects#conversation-retrieval).
|
|
9296
|
+
*
|
|
9297
|
+
*/
|
|
9298
|
+
default_conversation_retrieval: 'embed' | 'none';
|
|
9284
9299
|
/**
|
|
9285
9300
|
* 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).
|
|
9286
9301
|
*
|
|
@@ -9451,6 +9466,21 @@ type ProjectUpdate = {
|
|
|
9451
9466
|
*
|
|
9452
9467
|
*/
|
|
9453
9468
|
require_priced_model?: boolean;
|
|
9469
|
+
/**
|
|
9470
|
+
* Model route consumers inherit when they bind neither a route nor a provider; it must belong to this project, else `400 MODEL_ROUTE_NOT_FOUND`. Repointing it is always allowed. `null` clears it, refused with `409 PROJECT_DEFAULT_ROUTE_INHERITED` while a consumer inherits it. Omitting the field leaves it unchanged.
|
|
9471
|
+
*
|
|
9472
|
+
*/
|
|
9473
|
+
default_model_route_id?: string | null;
|
|
9474
|
+
/**
|
|
9475
|
+
* `true` records `GET` requests naming this project in the audit log alongside mutations; `false` records mutations only. Omitting the field leaves it unchanged.
|
|
9476
|
+
*
|
|
9477
|
+
*/
|
|
9478
|
+
audit_reads_enabled?: boolean;
|
|
9479
|
+
/**
|
|
9480
|
+
* What a conversation that names no `retrieval` of its own does. `embed` embeds its turns, each embedding billed to the billing owner's credit; `none` stores and chunks them only. Omitting the field leaves it unchanged.
|
|
9481
|
+
*
|
|
9482
|
+
*/
|
|
9483
|
+
default_conversation_retrieval?: 'embed' | 'none';
|
|
9454
9484
|
/**
|
|
9455
9485
|
* 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.
|
|
9456
9486
|
*
|
|
@@ -11638,6 +11668,21 @@ type ProjectWritable = {
|
|
|
11638
11668
|
*
|
|
11639
11669
|
*/
|
|
11640
11670
|
require_priced_model: boolean;
|
|
11671
|
+
/**
|
|
11672
|
+
* Model route inherited by every consumer in the project that binds neither `model_route_id` nor `ai_provider_id`, such as an `llm_judge` naming no provider. `null` (the default) means each consumer binds its own. See [The default model route](/docs/modules/projects#the-default-model-route).
|
|
11673
|
+
*
|
|
11674
|
+
*/
|
|
11675
|
+
default_model_route_id: string | null;
|
|
11676
|
+
/**
|
|
11677
|
+
* Whether `GET` requests naming this project are recorded in the [audit log](/docs/modules/audit-log) alongside mutations. `false` by default. See [Auditing reads](/docs/modules/projects#auditing-reads).
|
|
11678
|
+
*
|
|
11679
|
+
*/
|
|
11680
|
+
audit_reads_enabled: boolean;
|
|
11681
|
+
/**
|
|
11682
|
+
* What a conversation that names no `retrieval` of its own does: `embed` embeds its turns for vector retrieval, `none` (the default) stores and chunks them without embedding. See [Conversation retrieval](/docs/modules/projects#conversation-retrieval).
|
|
11683
|
+
*
|
|
11684
|
+
*/
|
|
11685
|
+
default_conversation_retrieval: 'embed' | 'none';
|
|
11641
11686
|
/**
|
|
11642
11687
|
* 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).
|
|
11643
11688
|
*
|
|
@@ -32739,7 +32784,7 @@ type UpdateProjectData = {
|
|
|
32739
32784
|
};
|
|
32740
32785
|
type UpdateProjectErrors = {
|
|
32741
32786
|
/**
|
|
32742
|
-
* A malformed field (`VALIDATION_FAILED` when the runtime refuses it), `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.
|
|
32787
|
+
* A malformed field (`VALIDATION_FAILED` when the runtime refuses it), `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, or `MODEL_ROUTE_NOT_FOUND` for a `default_model_route_id` naming no route in the project.
|
|
32743
32788
|
*/
|
|
32744
32789
|
400: ErrorResponse;
|
|
32745
32790
|
/**
|
|
@@ -32754,6 +32799,10 @@ type UpdateProjectErrors = {
|
|
|
32754
32799
|
* The resource does not exist (existence is not leaked).
|
|
32755
32800
|
*/
|
|
32756
32801
|
404: ErrorResponse;
|
|
32802
|
+
/**
|
|
32803
|
+
* `default_model_route_id: null` while a consumer inherits the default (`PROJECT_DEFAULT_ROUTE_INHERITED`).
|
|
32804
|
+
*/
|
|
32805
|
+
409: ErrorResponse;
|
|
32757
32806
|
};
|
|
32758
32807
|
type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
|
|
32759
32808
|
type UpdateProjectResponses = {
|
|
@@ -41592,7 +41641,7 @@ export declare class Projects {
|
|
|
41592
41641
|
/**
|
|
41593
41642
|
* Update a project
|
|
41594
41643
|
*
|
|
41595
|
-
* 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`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
41644
|
+
* 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`), the model route its consumers inherit (`default_model_route_id`), read auditing (`audit_reads_enabled`), what a conversation naming no `retrieval` does (`default_conversation_retrieval`), its project-scope guardrails (`guardrail_ids`), the policies capping every agent turn in it (`agent_policy_ids`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
41596
41645
|
* 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.
|
|
41597
41646
|
* 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.
|
|
41598
41647
|
* `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 `meta.missing` lists the ids. It is uncapped by plan, like the ceilings: a guardrail can only tighten what runs.
|
package/dist/index.mjs
CHANGED
|
@@ -5445,7 +5445,7 @@ var Projects = class {
|
|
|
5445
5445
|
/**
|
|
5446
5446
|
* Update a project
|
|
5447
5447
|
*
|
|
5448
|
-
* 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`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
5448
|
+
* 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`), the model route its consumers inherit (`default_model_route_id`), read auditing (`audit_reads_enabled`), what a conversation naming no `retrieval` does (`default_conversation_retrieval`), its project-scope guardrails (`guardrail_ids`), the policies capping every agent turn in it (`agent_policy_ids`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
|
|
5449
5449
|
* 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.
|
|
5450
5450
|
* 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.
|
|
5451
5451
|
* `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 `meta.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.297.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.297.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|