@naturali/cli 0.70.0 → 0.71.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 +18 -18
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.71.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
@@ -2097,7 +2097,7 @@ var Models = class {
|
|
|
2097
2097
|
/**
|
|
2098
2098
|
* List models
|
|
2099
2099
|
*
|
|
2100
|
-
* Lists catalog models, sorted by id. Filter by vendor, provider, input/output modality, status, or `managed` — the last being the axis that decides whether a model is usable without bringing your own provider credentials, so `?managed=true&status=available` is the set a project
|
|
2100
|
+
* Lists catalog models, sorted by id. Filter by vendor, provider, input/output modality, status, or `managed` — the last being the axis that decides whether a model is usable without bringing your own provider credentials, so `?managed=true&status=available` is the set a project's managed provider serves today.
|
|
2101
2101
|
*
|
|
2102
2102
|
*/
|
|
2103
2103
|
static listModels(options) {
|
|
@@ -2116,14 +2116,14 @@ var Models = class {
|
|
|
2116
2116
|
});
|
|
2117
2117
|
}
|
|
2118
2118
|
/**
|
|
2119
|
-
* Enable
|
|
2119
|
+
* Enable naturali models
|
|
2120
2120
|
*
|
|
2121
|
-
* Provisions
|
|
2121
|
+
* Provisions the project's managed provider — the one provider through which every model the catalog marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project, not per model, and calling it again returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
|
|
2122
2122
|
*
|
|
2123
2123
|
*/
|
|
2124
|
-
static
|
|
2124
|
+
static enableManagedModels(options) {
|
|
2125
2125
|
return (options.client ?? client).post({
|
|
2126
|
-
url: "/v1/projects/{project_id}/models/
|
|
2126
|
+
url: "/v1/projects/{project_id}/models/providers",
|
|
2127
2127
|
...options,
|
|
2128
2128
|
headers: {
|
|
2129
2129
|
"Content-Type": "application/json",
|
|
@@ -8111,7 +8111,7 @@ const routes = {
|
|
|
8111
8111
|
"list-models": {
|
|
8112
8112
|
serviceClass: "Models",
|
|
8113
8113
|
operationId: "listModels",
|
|
8114
|
-
description: "Lists catalog models, sorted by id. Filter by vendor, provider, input/output modality, status, or `managed` — the last being the axis that decides whether a model is usable without bringing your own provider credentials, so `?managed=true&status=available` is the set a project
|
|
8114
|
+
description: "Lists catalog models, sorted by id. Filter by vendor, provider, input/output modality, status, or `managed` — the last being the axis that decides whether a model is usable without bringing your own provider credentials, so `?managed=true&status=available` is the set a project's managed provider serves today.",
|
|
8115
8115
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
|
|
8116
8116
|
httpMethod: "get",
|
|
8117
8117
|
pathParams: [],
|
|
@@ -8169,7 +8169,7 @@ const routes = {
|
|
|
8169
8169
|
},
|
|
8170
8170
|
{
|
|
8171
8171
|
"name": "managed",
|
|
8172
|
-
"description": "Filter by whether the model
|
|
8172
|
+
"description": "Filter by whether naturali offers the model managed — `managed=true` is the set a project's managed provider serves once `POST /v1/projects/{project_id}/models/providers` has enabled it. Omit to leave the catalog unfiltered on this axis; `false` returns only the BYOK-only models. Any other value is a 400.\n",
|
|
8173
8173
|
"required": false,
|
|
8174
8174
|
"type": "boolean",
|
|
8175
8175
|
"in": "query"
|
|
@@ -8192,13 +8192,13 @@ const routes = {
|
|
|
8192
8192
|
"in": "path"
|
|
8193
8193
|
}]
|
|
8194
8194
|
},
|
|
8195
|
-
"enable-managed-
|
|
8195
|
+
"enable-managed-models": {
|
|
8196
8196
|
serviceClass: "Models",
|
|
8197
|
-
operationId: "
|
|
8198
|
-
description: "Provisions
|
|
8197
|
+
operationId: "enableManagedModels",
|
|
8198
|
+
description: "Provisions the project's managed provider — the one provider through which every model the catalog marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project, not per model, and calling it again returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.",
|
|
8199
8199
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
|
|
8200
8200
|
httpMethod: "post",
|
|
8201
|
-
pathParams: ["project_id"
|
|
8201
|
+
pathParams: ["project_id"],
|
|
8202
8202
|
queryParams: [],
|
|
8203
8203
|
flags: [
|
|
8204
8204
|
{
|
|
@@ -8209,15 +8209,15 @@ const routes = {
|
|
|
8209
8209
|
"in": "path"
|
|
8210
8210
|
},
|
|
8211
8211
|
{
|
|
8212
|
-
"name": "
|
|
8213
|
-
"description": "
|
|
8214
|
-
"required":
|
|
8212
|
+
"name": "name",
|
|
8213
|
+
"description": "Provider configuration name. Defaults to `naturali`.",
|
|
8214
|
+
"required": false,
|
|
8215
8215
|
"type": "string",
|
|
8216
|
-
"in": "
|
|
8216
|
+
"in": "body"
|
|
8217
8217
|
},
|
|
8218
8218
|
{
|
|
8219
|
-
"name": "
|
|
8220
|
-
"description": "
|
|
8219
|
+
"name": "default_model",
|
|
8220
|
+
"description": "Catalog id of the model agents fall back to when they do not set `model` themselves. Must be a model the catalog marks `managed: true`. Defaults to the cheapest managed model at enable time.\n",
|
|
8221
8221
|
"required": false,
|
|
8222
8222
|
"type": "string",
|
|
8223
8223
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.71.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|