@naturali/sdk 0.304.1 → 0.306.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
@@ -1683,7 +1683,7 @@ var ApiKeys = class {
1683
1683
  *
1684
1684
  * 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. The raw `key` (nat_sk_…) is returned only in this response.
1685
1685
  * A key is bounded by `policy_ids`, whose grants it holds together; empty, it reaches whatever its holder's membership reaches. A key past `expires_at` is `401`. Omitted, each is the caller's own when the caller is a narrowed or expiring key, else empty and never.
1686
- * A project key's `policy_ids` are policies of its project; any other id is `400`. An account key's are global policies or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
1686
+ * A project key's `policy_ids` are managed policies (`Full`, `Read only`) or policies of its project; any other id is `400`. An account key's are global policies, managed ones among them, or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
1687
1687
  * A narrowed key may grant only a non-empty subset of its own `policy_ids`, and an expiring key only a key that expires no later: anything wider or longer-lived is `403`, on update too, and so is rotating a key wider than it.
1688
1688
  * 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.
1689
1689
  * 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.
package/dist/index.d.cts CHANGED
@@ -2387,7 +2387,7 @@ type ApiKeyRecord = {
2387
2387
  */
2388
2388
  project_id?: string | null;
2389
2389
  /**
2390
- * The key's policies, whose grants it holds together: a project key's are its project's, an account key's are global or its account's. A call they do not allow is `403`. Empty means the key reaches whatever its holder's membership reaches.
2390
+ * The key's policies, whose grants it holds together: a project key's are managed or its project's, an account key's are global or its account's. A call they do not allow is `403`. Empty means the key reaches whatever its holder's membership reaches.
2391
2391
  *
2392
2392
  */
2393
2393
  policy_ids: Array<string>;
@@ -2417,7 +2417,7 @@ type ApiKeyCreate = {
2417
2417
  */
2418
2418
  project_id?: string;
2419
2419
  /**
2420
- * The key's policies: for a project key, policies of its project; for an account key, global policies or the account's policies. Omit for none, or for the caller's own when the caller is a narrowed key.
2420
+ * The key's policies: for a project key, managed policies or policies of its project; for an account key, global policies or the account's policies. Omit for none, or for the caller's own when the caller is a narrowed key.
2421
2421
  *
2422
2422
  */
2423
2423
  policy_ids?: Array<string>;
@@ -40220,7 +40220,7 @@ export declare class ApiKeys {
40220
40220
  *
40221
40221
  * 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. The raw `key` (nat_sk_…) is returned only in this response.
40222
40222
  * A key is bounded by `policy_ids`, whose grants it holds together; empty, it reaches whatever its holder's membership reaches. A key past `expires_at` is `401`. Omitted, each is the caller's own when the caller is a narrowed or expiring key, else empty and never.
40223
- * A project key's `policy_ids` are policies of its project; any other id is `400`. An account key's are global policies or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
40223
+ * A project key's `policy_ids` are managed policies (`Full`, `Read only`) or policies of its project; any other id is `400`. An account key's are global policies, managed ones among them, or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
40224
40224
  * A narrowed key may grant only a non-empty subset of its own `policy_ids`, and an expiring key only a key that expires no later: anything wider or longer-lived is `403`, on update too, and so is rotating a key wider than it.
40225
40225
  * 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.
40226
40226
  * 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.
package/dist/index.d.mts CHANGED
@@ -2387,7 +2387,7 @@ type ApiKeyRecord = {
2387
2387
  */
2388
2388
  project_id?: string | null;
2389
2389
  /**
2390
- * The key's policies, whose grants it holds together: a project key's are its project's, an account key's are global or its account's. A call they do not allow is `403`. Empty means the key reaches whatever its holder's membership reaches.
2390
+ * The key's policies, whose grants it holds together: a project key's are managed or its project's, an account key's are global or its account's. A call they do not allow is `403`. Empty means the key reaches whatever its holder's membership reaches.
2391
2391
  *
2392
2392
  */
2393
2393
  policy_ids: Array<string>;
@@ -2417,7 +2417,7 @@ type ApiKeyCreate = {
2417
2417
  */
2418
2418
  project_id?: string;
2419
2419
  /**
2420
- * The key's policies: for a project key, policies of its project; for an account key, global policies or the account's policies. Omit for none, or for the caller's own when the caller is a narrowed key.
2420
+ * The key's policies: for a project key, managed policies or policies of its project; for an account key, global policies or the account's policies. Omit for none, or for the caller's own when the caller is a narrowed key.
2421
2421
  *
2422
2422
  */
2423
2423
  policy_ids?: Array<string>;
@@ -40220,7 +40220,7 @@ export declare class ApiKeys {
40220
40220
  *
40221
40221
  * 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. The raw `key` (nat_sk_…) is returned only in this response.
40222
40222
  * A key is bounded by `policy_ids`, whose grants it holds together; empty, it reaches whatever its holder's membership reaches. A key past `expires_at` is `401`. Omitted, each is the caller's own when the caller is a narrowed or expiring key, else empty and never.
40223
- * A project key's `policy_ids` are policies of its project; any other id is `400`. An account key's are global policies or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
40223
+ * A project key's `policy_ids` are managed policies (`Full`, `Read only`) or policies of its project; any other id is `400`. An account key's are global policies, managed ones among them, or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
40224
40224
  * A narrowed key may grant only a non-empty subset of its own `policy_ids`, and an expiring key only a key that expires no later: anything wider or longer-lived is `403`, on update too, and so is rotating a key wider than it.
40225
40225
  * 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.
40226
40226
  * 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.
package/dist/index.mjs CHANGED
@@ -1682,7 +1682,7 @@ var ApiKeys = class {
1682
1682
  *
1683
1683
  * 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. The raw `key` (nat_sk_…) is returned only in this response.
1684
1684
  * A key is bounded by `policy_ids`, whose grants it holds together; empty, it reaches whatever its holder's membership reaches. A key past `expires_at` is `401`. Omitted, each is the caller's own when the caller is a narrowed or expiring key, else empty and never.
1685
- * A project key's `policy_ids` are policies of its project; any other id is `400`. An account key's are global policies or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
1685
+ * A project key's `policy_ids` are managed policies (`Full`, `Read only`) or policies of its project; any other id is `400`. An account key's are global policies, managed ones among them, or policies of the account (`/v1/account/policies`), each granting only account actions the account holds; any other is `400`. An account key with `policy_ids` acts on its account only: each account operation is checked against them, an operation without an account action is `403`, and so is every route in a project.
1686
1686
  * A narrowed key may grant only a non-empty subset of its own `policy_ids`, and an expiring key only a key that expires no later: anything wider or longer-lived is `403`, on update too, and so is rotating a key wider than it.
1687
1687
  * 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.
1688
1688
  * 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.304.1",
3
+ "version": "0.306.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.304.1",
41
+ "@naturali/api": "0.306.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",