@naturali/cli 0.210.2 → 0.211.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.mjs +9 -7
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "0.
|
|
20
|
+
var version = "0.211.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1608,7 +1608,8 @@ var ApiKeys = class {
|
|
|
1608
1608
|
/**
|
|
1609
1609
|
* Create an API key
|
|
1610
1610
|
*
|
|
1611
|
-
* 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
|
|
1611
|
+
* 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 the key to the operations whose capability it names; empty, the key reaches whatever its holder's membership reaches. Omitted, it is empty, or the caller's own set when the caller is a narrowed key. An unknown capability is `400`. The raw `key` (nat_sk_…) is returned only in this response.
|
|
1612
|
+
* A narrowed key may grant only a non-empty subset of its own set: a wider or empty set is `403`, on update too, and so is rotating a key wider than it.
|
|
1612
1613
|
* 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.
|
|
1613
1614
|
* 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.
|
|
1614
1615
|
*
|
|
@@ -1653,7 +1654,8 @@ var ApiKeys = class {
|
|
|
1653
1654
|
/**
|
|
1654
1655
|
* Update an API key
|
|
1655
1656
|
*
|
|
1656
|
-
* Rename an API key or replace its capability set. The scope (project vs account) is immutable.
|
|
1657
|
+
* Rename an API key or replace its capability set; the change holds from the key's next call. The scope (project vs account) is immutable. A narrowed caller may set only a non-empty subset of its own set (`403`).
|
|
1658
|
+
*
|
|
1657
1659
|
*/
|
|
1658
1660
|
static updateApiKey(options) {
|
|
1659
1661
|
return (options.client ?? client).patch({
|
|
@@ -9834,7 +9836,7 @@ const routes = {
|
|
|
9834
9836
|
"create-api-key": {
|
|
9835
9837
|
serviceClass: "APIKeys",
|
|
9836
9838
|
operationId: "createApiKey",
|
|
9837
|
-
description: "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
|
|
9839
|
+
description: "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 the key to the operations whose capability it names; empty, the key reaches whatever its holder's membership reaches. Omitted, it is empty, or the caller's own set when the caller is a narrowed key. An unknown capability is `400`. The raw `key` (nat_sk_…) is returned only in this response. A narrowed key may grant only a non-empty subset of its own set: a wider or empty set is `403`, on update too, and so is rotating a key wider than it. 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. 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.",
|
|
9838
9840
|
moduleDocsUrl: "https://naturali.ai/docs/modules/api-keys",
|
|
9839
9841
|
httpMethod: "post",
|
|
9840
9842
|
pathParams: [],
|
|
@@ -9858,7 +9860,7 @@ const routes = {
|
|
|
9858
9860
|
},
|
|
9859
9861
|
{
|
|
9860
9862
|
"name": "capabilities",
|
|
9861
|
-
"description": "Capabilities to
|
|
9863
|
+
"description": "Capabilities to narrow the key to. Omit for none, or for the caller's own set when the caller is a narrowed key.\n",
|
|
9862
9864
|
"required": false,
|
|
9863
9865
|
"type": "array",
|
|
9864
9866
|
"in": "body"
|
|
@@ -9886,7 +9888,7 @@ const routes = {
|
|
|
9886
9888
|
"update-api-key": {
|
|
9887
9889
|
serviceClass: "APIKeys",
|
|
9888
9890
|
operationId: "updateApiKey",
|
|
9889
|
-
description: "Rename an API key or replace its capability set. The scope (project vs account) is immutable.",
|
|
9891
|
+
description: "Rename an API key or replace its capability set; the change holds from the key's next call. The scope (project vs account) is immutable. A narrowed caller may set only a non-empty subset of its own set (`403`).",
|
|
9890
9892
|
moduleDocsUrl: "https://naturali.ai/docs/modules/api-keys",
|
|
9891
9893
|
httpMethod: "patch",
|
|
9892
9894
|
pathParams: ["api_key_id"],
|
|
@@ -9910,7 +9912,7 @@ const routes = {
|
|
|
9910
9912
|
},
|
|
9911
9913
|
{
|
|
9912
9914
|
"name": "capabilities",
|
|
9913
|
-
"description": "Replace the capability set
|
|
9915
|
+
"description": "Replace the capability set; an empty array removes the narrowing.",
|
|
9914
9916
|
"required": false,
|
|
9915
9917
|
"type": "array",
|
|
9916
9918
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.211.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.
|
|
34
|
+
"@naturali/sdk": "0.211.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|