@naturali/sdk 0.133.3 → 0.135.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 +6 -5
- package/dist/index.d.cts +50 -9
- package/dist/index.d.mts +50 -9
- package/dist/index.mjs +6 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1472,7 +1472,7 @@ var ApiKeys = class {
|
|
|
1472
1472
|
* Create an API key
|
|
1473
1473
|
*
|
|
1474
1474
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
1475
|
-
* A project-scoped key requires
|
|
1475
|
+
* A project-scoped key requires membership of that project. The key carries no role of its own — every request it makes resolves its holder's membership again — so it can never reach past what its minter already had. An account-scoped key requires a credential that is not itself confined to one project.
|
|
1476
1476
|
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
1477
1477
|
*
|
|
1478
1478
|
*/
|
|
@@ -3725,8 +3725,9 @@ var Projects = class {
|
|
|
3725
3725
|
/**
|
|
3726
3726
|
* Update a project
|
|
3727
3727
|
*
|
|
3728
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`). Archiving is reversible; resources are retained.
|
|
3729
|
-
* Requires the `admin` role in the project (an `owner` has it too).
|
|
3728
|
+
* 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`) and its priced-model gate (`require_priced_model`). Archiving is reversible; resources are retained.
|
|
3729
|
+
* 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.
|
|
3730
|
+
* 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.
|
|
3730
3731
|
* 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.
|
|
3731
3732
|
*
|
|
3732
3733
|
* 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.
|
|
@@ -3745,7 +3746,7 @@ var Projects = class {
|
|
|
3745
3746
|
/**
|
|
3746
3747
|
* List project members
|
|
3747
3748
|
*
|
|
3748
|
-
* Lists who may act in the project, and with what role. Readable by every member,
|
|
3749
|
+
* Lists who may act in the project, and with what role. Readable by every member, whatever their role: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
|
|
3749
3750
|
* Somebody invited who has never signed in is listed too, with status `pending` — the invitation is already a grant, so hiding it until they arrive would hide access that exists.
|
|
3750
3751
|
*
|
|
3751
3752
|
*/
|
|
@@ -3782,7 +3783,7 @@ var Projects = class {
|
|
|
3782
3783
|
*
|
|
3783
3784
|
* Removes a member, or leaves the project yourself.
|
|
3784
3785
|
*
|
|
3785
|
-
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a
|
|
3786
|
+
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a `member` and not another `admin`.
|
|
3786
3787
|
*
|
|
3787
3788
|
* The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
|
|
3788
3789
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -5847,11 +5847,31 @@ type Project = {
|
|
|
5847
5847
|
*
|
|
5848
5848
|
*/
|
|
5849
5849
|
trace_content_mode: 'full' | 'none';
|
|
5850
|
+
/**
|
|
5851
|
+
* Orchestration runs of this project driven at once. `null` (the default) is unlimited. Enforced when a run is claimed — runs past the limit wait for a slot rather than failing.
|
|
5852
|
+
*
|
|
5853
|
+
*/
|
|
5854
|
+
max_concurrent_runs: number | null;
|
|
5855
|
+
/**
|
|
5856
|
+
* Generations one continuation chain in this project may hold before it stops being resumed. `null` (the default) leaves the platform-wide ceiling in force. The budget actually applied is the smallest of that ceiling, this number, and the agent's own — an agent author can be stricter than this, never looser.
|
|
5857
|
+
*
|
|
5858
|
+
*/
|
|
5859
|
+
max_chain_generations: number | null;
|
|
5860
|
+
/**
|
|
5861
|
+
* Nesting levels a run tree in this project may reach before the next child is refused. `null` (the default) leaves the platform-wide bound in force; the bound applied is the smaller of the two.
|
|
5862
|
+
*
|
|
5863
|
+
*/
|
|
5864
|
+
max_orchestration_run_depth: number | null;
|
|
5865
|
+
/**
|
|
5866
|
+
* Whether a generation whose model carries no price is refused before the provider is called. `false` by default, which runs the model and meters it at no cost. Mainly of use with your own providers — see [Requiring a priced model](/docs/modules/projects#requiring-a-priced-model).
|
|
5867
|
+
*
|
|
5868
|
+
*/
|
|
5869
|
+
require_priced_model: boolean;
|
|
5850
5870
|
created_at: Date;
|
|
5851
5871
|
updated_at: Date;
|
|
5852
5872
|
};
|
|
5853
5873
|
/**
|
|
5854
|
-
* What the member may do in this project. `owner` — everything, including deleting it and paying for it; exactly one per project. `admin` —
|
|
5874
|
+
* What the member may do in this project. `owner` — everything, including deleting it and paying for it; exactly one per project. `admin` — everything a `member` may do, plus managing who else is in the project and how the project itself is configured. `member` — every read and write on the project's own resources, including minting project API keys.
|
|
5855
5875
|
* When returned on a `Project`, this is *your* role, not a property of the project: it is what lets a client hide an action the request would refuse.
|
|
5856
5876
|
*
|
|
5857
5877
|
*/
|
|
@@ -5934,6 +5954,26 @@ type ProjectUpdate = {
|
|
|
5934
5954
|
*
|
|
5935
5955
|
*/
|
|
5936
5956
|
trace_content_mode?: 'full' | 'none';
|
|
5957
|
+
/**
|
|
5958
|
+
* Orchestration runs driven at once. Send `null` to lift the limit. Omitting the field leaves it unchanged.
|
|
5959
|
+
*
|
|
5960
|
+
*/
|
|
5961
|
+
max_concurrent_runs?: number | null;
|
|
5962
|
+
/**
|
|
5963
|
+
* Generations one continuation chain may hold. Send `null` to drop back to the platform-wide ceiling. Omitting the field leaves it unchanged.
|
|
5964
|
+
*
|
|
5965
|
+
*/
|
|
5966
|
+
max_chain_generations?: number | null;
|
|
5967
|
+
/**
|
|
5968
|
+
* Nesting levels a run tree may reach. Send `null` to drop back to the platform-wide bound. Omitting the field leaves it unchanged.
|
|
5969
|
+
*
|
|
5970
|
+
*/
|
|
5971
|
+
max_orchestration_run_depth?: number | null;
|
|
5972
|
+
/**
|
|
5973
|
+
* Refuse a generation whose model carries no price, before the provider is called. Uncapped by plan — it only ever narrows what the project may spend.
|
|
5974
|
+
*
|
|
5975
|
+
*/
|
|
5976
|
+
require_priced_model?: boolean;
|
|
5937
5977
|
};
|
|
5938
5978
|
/**
|
|
5939
5979
|
* Token counts (input_tokens already includes cached input).
|
|
@@ -17788,7 +17828,7 @@ type AddProjectMemberErrors = {
|
|
|
17788
17828
|
*/
|
|
17789
17829
|
401: ErrorResponse;
|
|
17790
17830
|
/**
|
|
17791
|
-
* The caller is a
|
|
17831
|
+
* The caller is a `member`, an `admin` granting `admin`, or a project-scoped credential.
|
|
17792
17832
|
*
|
|
17793
17833
|
*/
|
|
17794
17834
|
403: ErrorResponse;
|
|
@@ -18216,7 +18256,7 @@ type CreateProjectUsageThresholdErrors = {
|
|
|
18216
18256
|
*/
|
|
18217
18257
|
401: ErrorResponse;
|
|
18218
18258
|
/**
|
|
18219
|
-
* The caller is a
|
|
18259
|
+
* The caller is a `member`; an alerting rule needs `admin`.
|
|
18220
18260
|
*/
|
|
18221
18261
|
403: ErrorResponse;
|
|
18222
18262
|
/**
|
|
@@ -18250,7 +18290,7 @@ type DeleteProjectUsageThresholdErrors = {
|
|
|
18250
18290
|
*/
|
|
18251
18291
|
401: ErrorResponse;
|
|
18252
18292
|
/**
|
|
18253
|
-
* The caller is a
|
|
18293
|
+
* The caller is a `member`; an alerting rule needs `admin`.
|
|
18254
18294
|
*/
|
|
18255
18295
|
403: ErrorResponse;
|
|
18256
18296
|
/**
|
|
@@ -21622,7 +21662,7 @@ export declare class ApiKeys {
|
|
|
21622
21662
|
* Create an API key
|
|
21623
21663
|
*
|
|
21624
21664
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
21625
|
-
* A project-scoped key requires
|
|
21665
|
+
* A project-scoped key requires membership of that project. The key carries no role of its own — every request it makes resolves its holder's membership again — so it can never reach past what its minter already had. An account-scoped key requires a credential that is not itself confined to one project.
|
|
21626
21666
|
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
21627
21667
|
*
|
|
21628
21668
|
*/
|
|
@@ -22784,8 +22824,9 @@ export declare class Projects {
|
|
|
22784
22824
|
/**
|
|
22785
22825
|
* Update a project
|
|
22786
22826
|
*
|
|
22787
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`). Archiving is reversible; resources are retained.
|
|
22788
|
-
* Requires the `admin` role in the project (an `owner` has it too).
|
|
22827
|
+
* 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`) and its priced-model gate (`require_priced_model`). Archiving is reversible; resources are retained.
|
|
22828
|
+
* 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.
|
|
22829
|
+
* 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.
|
|
22789
22830
|
* 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.
|
|
22790
22831
|
*
|
|
22791
22832
|
* 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.
|
|
@@ -22795,7 +22836,7 @@ export declare class Projects {
|
|
|
22795
22836
|
/**
|
|
22796
22837
|
* List project members
|
|
22797
22838
|
*
|
|
22798
|
-
* Lists who may act in the project, and with what role. Readable by every member,
|
|
22839
|
+
* Lists who may act in the project, and with what role. Readable by every member, whatever their role: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
|
|
22799
22840
|
* Somebody invited who has never signed in is listed too, with status `pending` — the invitation is already a grant, so hiding it until they arrive would hide access that exists.
|
|
22800
22841
|
*
|
|
22801
22842
|
*/
|
|
@@ -22818,7 +22859,7 @@ export declare class Projects {
|
|
|
22818
22859
|
*
|
|
22819
22860
|
* Removes a member, or leaves the project yourself.
|
|
22820
22861
|
*
|
|
22821
|
-
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a
|
|
22862
|
+
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a `member` and not another `admin`.
|
|
22822
22863
|
*
|
|
22823
22864
|
* The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
|
|
22824
22865
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -5847,11 +5847,31 @@ type Project = {
|
|
|
5847
5847
|
*
|
|
5848
5848
|
*/
|
|
5849
5849
|
trace_content_mode: 'full' | 'none';
|
|
5850
|
+
/**
|
|
5851
|
+
* Orchestration runs of this project driven at once. `null` (the default) is unlimited. Enforced when a run is claimed — runs past the limit wait for a slot rather than failing.
|
|
5852
|
+
*
|
|
5853
|
+
*/
|
|
5854
|
+
max_concurrent_runs: number | null;
|
|
5855
|
+
/**
|
|
5856
|
+
* Generations one continuation chain in this project may hold before it stops being resumed. `null` (the default) leaves the platform-wide ceiling in force. The budget actually applied is the smallest of that ceiling, this number, and the agent's own — an agent author can be stricter than this, never looser.
|
|
5857
|
+
*
|
|
5858
|
+
*/
|
|
5859
|
+
max_chain_generations: number | null;
|
|
5860
|
+
/**
|
|
5861
|
+
* Nesting levels a run tree in this project may reach before the next child is refused. `null` (the default) leaves the platform-wide bound in force; the bound applied is the smaller of the two.
|
|
5862
|
+
*
|
|
5863
|
+
*/
|
|
5864
|
+
max_orchestration_run_depth: number | null;
|
|
5865
|
+
/**
|
|
5866
|
+
* Whether a generation whose model carries no price is refused before the provider is called. `false` by default, which runs the model and meters it at no cost. Mainly of use with your own providers — see [Requiring a priced model](/docs/modules/projects#requiring-a-priced-model).
|
|
5867
|
+
*
|
|
5868
|
+
*/
|
|
5869
|
+
require_priced_model: boolean;
|
|
5850
5870
|
created_at: Date;
|
|
5851
5871
|
updated_at: Date;
|
|
5852
5872
|
};
|
|
5853
5873
|
/**
|
|
5854
|
-
* What the member may do in this project. `owner` — everything, including deleting it and paying for it; exactly one per project. `admin` —
|
|
5874
|
+
* What the member may do in this project. `owner` — everything, including deleting it and paying for it; exactly one per project. `admin` — everything a `member` may do, plus managing who else is in the project and how the project itself is configured. `member` — every read and write on the project's own resources, including minting project API keys.
|
|
5855
5875
|
* When returned on a `Project`, this is *your* role, not a property of the project: it is what lets a client hide an action the request would refuse.
|
|
5856
5876
|
*
|
|
5857
5877
|
*/
|
|
@@ -5934,6 +5954,26 @@ type ProjectUpdate = {
|
|
|
5934
5954
|
*
|
|
5935
5955
|
*/
|
|
5936
5956
|
trace_content_mode?: 'full' | 'none';
|
|
5957
|
+
/**
|
|
5958
|
+
* Orchestration runs driven at once. Send `null` to lift the limit. Omitting the field leaves it unchanged.
|
|
5959
|
+
*
|
|
5960
|
+
*/
|
|
5961
|
+
max_concurrent_runs?: number | null;
|
|
5962
|
+
/**
|
|
5963
|
+
* Generations one continuation chain may hold. Send `null` to drop back to the platform-wide ceiling. Omitting the field leaves it unchanged.
|
|
5964
|
+
*
|
|
5965
|
+
*/
|
|
5966
|
+
max_chain_generations?: number | null;
|
|
5967
|
+
/**
|
|
5968
|
+
* Nesting levels a run tree may reach. Send `null` to drop back to the platform-wide bound. Omitting the field leaves it unchanged.
|
|
5969
|
+
*
|
|
5970
|
+
*/
|
|
5971
|
+
max_orchestration_run_depth?: number | null;
|
|
5972
|
+
/**
|
|
5973
|
+
* Refuse a generation whose model carries no price, before the provider is called. Uncapped by plan — it only ever narrows what the project may spend.
|
|
5974
|
+
*
|
|
5975
|
+
*/
|
|
5976
|
+
require_priced_model?: boolean;
|
|
5937
5977
|
};
|
|
5938
5978
|
/**
|
|
5939
5979
|
* Token counts (input_tokens already includes cached input).
|
|
@@ -17788,7 +17828,7 @@ type AddProjectMemberErrors = {
|
|
|
17788
17828
|
*/
|
|
17789
17829
|
401: ErrorResponse;
|
|
17790
17830
|
/**
|
|
17791
|
-
* The caller is a
|
|
17831
|
+
* The caller is a `member`, an `admin` granting `admin`, or a project-scoped credential.
|
|
17792
17832
|
*
|
|
17793
17833
|
*/
|
|
17794
17834
|
403: ErrorResponse;
|
|
@@ -18216,7 +18256,7 @@ type CreateProjectUsageThresholdErrors = {
|
|
|
18216
18256
|
*/
|
|
18217
18257
|
401: ErrorResponse;
|
|
18218
18258
|
/**
|
|
18219
|
-
* The caller is a
|
|
18259
|
+
* The caller is a `member`; an alerting rule needs `admin`.
|
|
18220
18260
|
*/
|
|
18221
18261
|
403: ErrorResponse;
|
|
18222
18262
|
/**
|
|
@@ -18250,7 +18290,7 @@ type DeleteProjectUsageThresholdErrors = {
|
|
|
18250
18290
|
*/
|
|
18251
18291
|
401: ErrorResponse;
|
|
18252
18292
|
/**
|
|
18253
|
-
* The caller is a
|
|
18293
|
+
* The caller is a `member`; an alerting rule needs `admin`.
|
|
18254
18294
|
*/
|
|
18255
18295
|
403: ErrorResponse;
|
|
18256
18296
|
/**
|
|
@@ -21622,7 +21662,7 @@ export declare class ApiKeys {
|
|
|
21622
21662
|
* Create an API key
|
|
21623
21663
|
*
|
|
21624
21664
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
21625
|
-
* A project-scoped key requires
|
|
21665
|
+
* A project-scoped key requires membership of that project. The key carries no role of its own — every request it makes resolves its holder's membership again — so it can never reach past what its minter already had. An account-scoped key requires a credential that is not itself confined to one project.
|
|
21626
21666
|
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
21627
21667
|
*
|
|
21628
21668
|
*/
|
|
@@ -22784,8 +22824,9 @@ export declare class Projects {
|
|
|
22784
22824
|
/**
|
|
22785
22825
|
* Update a project
|
|
22786
22826
|
*
|
|
22787
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`). Archiving is reversible; resources are retained.
|
|
22788
|
-
* Requires the `admin` role in the project (an `owner` has it too).
|
|
22827
|
+
* 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`) and its priced-model gate (`require_priced_model`). Archiving is reversible; resources are retained.
|
|
22828
|
+
* 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.
|
|
22829
|
+
* 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.
|
|
22789
22830
|
* 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.
|
|
22790
22831
|
*
|
|
22791
22832
|
* 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.
|
|
@@ -22795,7 +22836,7 @@ export declare class Projects {
|
|
|
22795
22836
|
/**
|
|
22796
22837
|
* List project members
|
|
22797
22838
|
*
|
|
22798
|
-
* Lists who may act in the project, and with what role. Readable by every member,
|
|
22839
|
+
* Lists who may act in the project, and with what role. Readable by every member, whatever their role: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
|
|
22799
22840
|
* Somebody invited who has never signed in is listed too, with status `pending` — the invitation is already a grant, so hiding it until they arrive would hide access that exists.
|
|
22800
22841
|
*
|
|
22801
22842
|
*/
|
|
@@ -22818,7 +22859,7 @@ export declare class Projects {
|
|
|
22818
22859
|
*
|
|
22819
22860
|
* Removes a member, or leaves the project yourself.
|
|
22820
22861
|
*
|
|
22821
|
-
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a
|
|
22862
|
+
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a `member` and not another `admin`.
|
|
22822
22863
|
*
|
|
22823
22864
|
* The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
|
|
22824
22865
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1471,7 +1471,7 @@ var ApiKeys = class {
|
|
|
1471
1471
|
* Create an API key
|
|
1472
1472
|
*
|
|
1473
1473
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
1474
|
-
* A project-scoped key requires
|
|
1474
|
+
* A project-scoped key requires membership of that project. The key carries no role of its own — every request it makes resolves its holder's membership again — so it can never reach past what its minter already had. An account-scoped key requires a credential that is not itself confined to one project.
|
|
1475
1475
|
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
1476
1476
|
*
|
|
1477
1477
|
*/
|
|
@@ -3724,8 +3724,9 @@ var Projects = class {
|
|
|
3724
3724
|
/**
|
|
3725
3725
|
* Update a project
|
|
3726
3726
|
*
|
|
3727
|
-
* Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`). Archiving is reversible; resources are retained.
|
|
3728
|
-
* Requires the `admin` role in the project (an `owner` has it too).
|
|
3727
|
+
* 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`) and its priced-model gate (`require_priced_model`). Archiving is reversible; resources are retained.
|
|
3728
|
+
* 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.
|
|
3729
|
+
* 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.
|
|
3729
3730
|
* 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.
|
|
3730
3731
|
*
|
|
3731
3732
|
* 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.
|
|
@@ -3744,7 +3745,7 @@ var Projects = class {
|
|
|
3744
3745
|
/**
|
|
3745
3746
|
* List project members
|
|
3746
3747
|
*
|
|
3747
|
-
* Lists who may act in the project, and with what role. Readable by every member,
|
|
3748
|
+
* Lists who may act in the project, and with what role. Readable by every member, whatever their role: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
|
|
3748
3749
|
* Somebody invited who has never signed in is listed too, with status `pending` — the invitation is already a grant, so hiding it until they arrive would hide access that exists.
|
|
3749
3750
|
*
|
|
3750
3751
|
*/
|
|
@@ -3781,7 +3782,7 @@ var Projects = class {
|
|
|
3781
3782
|
*
|
|
3782
3783
|
* Removes a member, or leaves the project yourself.
|
|
3783
3784
|
*
|
|
3784
|
-
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a
|
|
3785
|
+
* **Anyone may remove themselves**, whatever their role: a colleague who no longer wants access should not have to ask for it, and leaving takes nothing from anybody else. Removing *somebody else* needs authority — an `owner` may remove anyone, an `admin` may remove a `member` and not another `admin`.
|
|
3785
3786
|
*
|
|
3786
3787
|
* The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
|
|
3787
3788
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.135.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.135.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|