@naturali/cli 0.80.0 → 0.81.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 +12 -27
- 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.81.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -3083,7 +3083,8 @@ var Models = class {
|
|
|
3083
3083
|
/**
|
|
3084
3084
|
* List models
|
|
3085
3085
|
*
|
|
3086
|
-
* Lists
|
|
3086
|
+
* Lists the models naturali offers, sorted by name. Filter by vendor, input/output modality or lifecycle status.
|
|
3087
|
+
* Every model listed here is available to any project that has enabled naturali models — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
|
|
3087
3088
|
*
|
|
3088
3089
|
*/
|
|
3089
3090
|
static listModels(options) {
|
|
@@ -3097,14 +3098,14 @@ var Models = class {
|
|
|
3097
3098
|
*/
|
|
3098
3099
|
static getModel(options) {
|
|
3099
3100
|
return (options.client ?? client).get({
|
|
3100
|
-
url: "/v1/models/{
|
|
3101
|
+
url: "/v1/models/{model}",
|
|
3101
3102
|
...options
|
|
3102
3103
|
});
|
|
3103
3104
|
}
|
|
3104
3105
|
/**
|
|
3105
3106
|
* Enable naturali models
|
|
3106
3107
|
*
|
|
3107
|
-
* Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which
|
|
3108
|
+
* Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which the models that source offers are available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog the moment it is created, so any listed model is usable from an agent's `model` field — set it to the catalog `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 per source, not per model, and calling it again for the same source 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.
|
|
3108
3109
|
*
|
|
3109
3110
|
*/
|
|
3110
3111
|
static enableManagedModels(options) {
|
|
@@ -11963,7 +11964,7 @@ const routes = {
|
|
|
11963
11964
|
"list-models": {
|
|
11964
11965
|
serviceClass: "Models",
|
|
11965
11966
|
operationId: "listModels",
|
|
11966
|
-
description: "Lists
|
|
11967
|
+
description: "Lists the models naturali offers, sorted by name. Filter by vendor, input/output modality or lifecycle status. Every model listed here is available to any project that has enabled naturali models — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).",
|
|
11967
11968
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
|
|
11968
11969
|
httpMethod: "get",
|
|
11969
11970
|
pathParams: [],
|
|
@@ -11971,10 +11972,8 @@ const routes = {
|
|
|
11971
11972
|
"limit",
|
|
11972
11973
|
"cursor",
|
|
11973
11974
|
"vendor",
|
|
11974
|
-
"provider",
|
|
11975
11975
|
"modality",
|
|
11976
|
-
"status"
|
|
11977
|
-
"managed"
|
|
11976
|
+
"status"
|
|
11978
11977
|
],
|
|
11979
11978
|
flags: [
|
|
11980
11979
|
{
|
|
@@ -11998,13 +11997,6 @@ const routes = {
|
|
|
11998
11997
|
"type": "string",
|
|
11999
11998
|
"in": "query"
|
|
12000
11999
|
},
|
|
12001
|
-
{
|
|
12002
|
-
"name": "provider",
|
|
12003
|
-
"description": "Filter by the provider slug that serves the model.",
|
|
12004
|
-
"required": false,
|
|
12005
|
-
"type": "string",
|
|
12006
|
-
"in": "query"
|
|
12007
|
-
},
|
|
12008
12000
|
{
|
|
12009
12001
|
"name": "modality",
|
|
12010
12002
|
"description": "Filter to models whose input or output modalities include this value (e.g. text, image, embedding, speech).\n",
|
|
@@ -12018,13 +12010,6 @@ const routes = {
|
|
|
12018
12010
|
"required": false,
|
|
12019
12011
|
"type": "string",
|
|
12020
12012
|
"in": "query"
|
|
12021
|
-
},
|
|
12022
|
-
{
|
|
12023
|
-
"name": "managed",
|
|
12024
|
-
"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",
|
|
12025
|
-
"required": false,
|
|
12026
|
-
"type": "boolean",
|
|
12027
|
-
"in": "query"
|
|
12028
12013
|
}
|
|
12029
12014
|
]
|
|
12030
12015
|
},
|
|
@@ -12034,11 +12019,11 @@ const routes = {
|
|
|
12034
12019
|
description: "Get a model",
|
|
12035
12020
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
|
|
12036
12021
|
httpMethod: "get",
|
|
12037
|
-
pathParams: ["
|
|
12022
|
+
pathParams: ["model"],
|
|
12038
12023
|
queryParams: [],
|
|
12039
12024
|
flags: [{
|
|
12040
|
-
"name": "
|
|
12041
|
-
"description": "
|
|
12025
|
+
"name": "model",
|
|
12026
|
+
"description": "The model's name, as `GET /v1/models` returns it.",
|
|
12042
12027
|
"required": true,
|
|
12043
12028
|
"type": "string",
|
|
12044
12029
|
"in": "path"
|
|
@@ -12047,7 +12032,7 @@ const routes = {
|
|
|
12047
12032
|
"enable-managed-models": {
|
|
12048
12033
|
serviceClass: "Models",
|
|
12049
12034
|
operationId: "enableManagedModels",
|
|
12050
|
-
description: "Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which
|
|
12035
|
+
description: "Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which the models that source offers are available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog the moment it is created, so any listed model is usable from an agent's `model` field — set it to the catalog `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 per source, not per model, and calling it again for the same source 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.",
|
|
12051
12036
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
|
|
12052
12037
|
httpMethod: "post",
|
|
12053
12038
|
pathParams: ["project_id"],
|
|
@@ -12076,7 +12061,7 @@ const routes = {
|
|
|
12076
12061
|
},
|
|
12077
12062
|
{
|
|
12078
12063
|
"name": "default_model",
|
|
12079
|
-
"description": "
|
|
12064
|
+
"description": "The `model` of the catalog entry agents fall back to when they do not set `model` themselves. Must be one this catalog lists as `available`. Defaults to the cheapest one at enable time.\n",
|
|
12080
12065
|
"required": false,
|
|
12081
12066
|
"type": "string",
|
|
12082
12067
|
"in": "body"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.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.81.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|