@naturali/sdk 0.134.0 → 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 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 the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
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
  */
@@ -3726,7 +3726,7 @@ var Projects = class {
3726
3726
  * Update a project
3727
3727
  *
3728
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).
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
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.
3731
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.
3732
3732
  *
@@ -3746,7 +3746,7 @@ var Projects = class {
3746
3746
  /**
3747
3747
  * List project members
3748
3748
  *
3749
- * Lists who may act in the project, and with what role. Readable by every member, including a read-only `member`: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
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.
3750
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.
3751
3751
  *
3752
3752
  */
@@ -3783,7 +3783,7 @@ var Projects = class {
3783
3783
  *
3784
3784
  * Removes a member, or leaves the project yourself.
3785
3785
  *
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 read-only `member` and not another `admin`.
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`.
3787
3787
  *
3788
3788
  * The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
3789
3789
  *
package/dist/index.d.cts CHANGED
@@ -5871,7 +5871,7 @@ type Project = {
5871
5871
  updated_at: Date;
5872
5872
  };
5873
5873
  /**
5874
- * What the member may do in this project. `owner` — everything, including deleting it and paying for it; exactly one per project. `admin` — every read and write inside it, including minting project API keys, but not deleting the project. `member` — reads only.
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.
5875
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.
5876
5876
  *
5877
5877
  */
@@ -17828,7 +17828,7 @@ type AddProjectMemberErrors = {
17828
17828
  */
17829
17829
  401: ErrorResponse;
17830
17830
  /**
17831
- * The caller is a read-only `member`, an `admin` granting `admin`, or a project-scoped credential.
17831
+ * The caller is a `member`, an `admin` granting `admin`, or a project-scoped credential.
17832
17832
  *
17833
17833
  */
17834
17834
  403: ErrorResponse;
@@ -18256,7 +18256,7 @@ type CreateProjectUsageThresholdErrors = {
18256
18256
  */
18257
18257
  401: ErrorResponse;
18258
18258
  /**
18259
- * The caller is a read-only member.
18259
+ * The caller is a `member`; an alerting rule needs `admin`.
18260
18260
  */
18261
18261
  403: ErrorResponse;
18262
18262
  /**
@@ -18290,7 +18290,7 @@ type DeleteProjectUsageThresholdErrors = {
18290
18290
  */
18291
18291
  401: ErrorResponse;
18292
18292
  /**
18293
- * The caller is a read-only member.
18293
+ * The caller is a `member`; an alerting rule needs `admin`.
18294
18294
  */
18295
18295
  403: ErrorResponse;
18296
18296
  /**
@@ -21662,7 +21662,7 @@ export declare class ApiKeys {
21662
21662
  * Create an API key
21663
21663
  *
21664
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.
21665
- * A project-scoped key requires the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
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.
21666
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.
21667
21667
  *
21668
21668
  */
@@ -22825,7 +22825,7 @@ export declare class Projects {
22825
22825
  * Update a project
22826
22826
  *
22827
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).
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
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.
22830
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.
22831
22831
  *
@@ -22836,7 +22836,7 @@ export declare class Projects {
22836
22836
  /**
22837
22837
  * List project members
22838
22838
  *
22839
- * Lists who may act in the project, and with what role. Readable by every member, including a read-only `member`: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
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.
22840
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.
22841
22841
  *
22842
22842
  */
@@ -22859,7 +22859,7 @@ export declare class Projects {
22859
22859
  *
22860
22860
  * Removes a member, or leaves the project yourself.
22861
22861
  *
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 read-only `member` and not another `admin`.
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`.
22863
22863
  *
22864
22864
  * The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
22865
22865
  *
package/dist/index.d.mts CHANGED
@@ -5871,7 +5871,7 @@ type Project = {
5871
5871
  updated_at: Date;
5872
5872
  };
5873
5873
  /**
5874
- * What the member may do in this project. `owner` — everything, including deleting it and paying for it; exactly one per project. `admin` — every read and write inside it, including minting project API keys, but not deleting the project. `member` — reads only.
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.
5875
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.
5876
5876
  *
5877
5877
  */
@@ -17828,7 +17828,7 @@ type AddProjectMemberErrors = {
17828
17828
  */
17829
17829
  401: ErrorResponse;
17830
17830
  /**
17831
- * The caller is a read-only `member`, an `admin` granting `admin`, or a project-scoped credential.
17831
+ * The caller is a `member`, an `admin` granting `admin`, or a project-scoped credential.
17832
17832
  *
17833
17833
  */
17834
17834
  403: ErrorResponse;
@@ -18256,7 +18256,7 @@ type CreateProjectUsageThresholdErrors = {
18256
18256
  */
18257
18257
  401: ErrorResponse;
18258
18258
  /**
18259
- * The caller is a read-only member.
18259
+ * The caller is a `member`; an alerting rule needs `admin`.
18260
18260
  */
18261
18261
  403: ErrorResponse;
18262
18262
  /**
@@ -18290,7 +18290,7 @@ type DeleteProjectUsageThresholdErrors = {
18290
18290
  */
18291
18291
  401: ErrorResponse;
18292
18292
  /**
18293
- * The caller is a read-only member.
18293
+ * The caller is a `member`; an alerting rule needs `admin`.
18294
18294
  */
18295
18295
  403: ErrorResponse;
18296
18296
  /**
@@ -21662,7 +21662,7 @@ export declare class ApiKeys {
21662
21662
  * Create an API key
21663
21663
  *
21664
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.
21665
- * A project-scoped key requires the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
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.
21666
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.
21667
21667
  *
21668
21668
  */
@@ -22825,7 +22825,7 @@ export declare class Projects {
22825
22825
  * Update a project
22826
22826
  *
22827
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).
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
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.
22830
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.
22831
22831
  *
@@ -22836,7 +22836,7 @@ export declare class Projects {
22836
22836
  /**
22837
22837
  * List project members
22838
22838
  *
22839
- * Lists who may act in the project, and with what role. Readable by every member, including a read-only `member`: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
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.
22840
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.
22841
22841
  *
22842
22842
  */
@@ -22859,7 +22859,7 @@ export declare class Projects {
22859
22859
  *
22860
22860
  * Removes a member, or leaves the project yourself.
22861
22861
  *
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 read-only `member` and not another `admin`.
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`.
22863
22863
  *
22864
22864
  * The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
22865
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 the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
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
  */
@@ -3725,7 +3725,7 @@ var Projects = class {
3725
3725
  * Update a project
3726
3726
  *
3727
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).
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
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.
3730
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.
3731
3731
  *
@@ -3745,7 +3745,7 @@ var Projects = class {
3745
3745
  /**
3746
3746
  * List project members
3747
3747
  *
3748
- * Lists who may act in the project, and with what role. Readable by every member, including a read-only `member`: who else is in the project is not a privileged fact, and hiding it makes "why can that person see my agents?" unanswerable.
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.
3749
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.
3750
3750
  *
3751
3751
  */
@@ -3782,7 +3782,7 @@ var Projects = class {
3782
3782
  *
3783
3783
  * Removes a member, or leaves the project yourself.
3784
3784
  *
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 read-only `member` and not another `admin`.
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`.
3786
3786
  *
3787
3787
  * The owner's own row is refused: a project with no owner is unreachable, and the row names who pays.
3788
3788
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.134.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.134.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",