@naturali/cli 0.82.0 → 0.83.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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -58
  2. 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.82.0";
17
+ var version = "0.83.0";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const serializeFormDataPair = (data, key, value) => {
@@ -3084,7 +3084,7 @@ var Models = class {
3084
3084
  * List models
3085
3085
  *
3086
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
+ * Every model listed here is available to any project with a `provider: "naturali"` [AI provider](/docs/api/ai-providers/create-ai-provider) — 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).
3088
3088
  *
3089
3089
  */
3090
3090
  static listModels(options) {
@@ -3102,22 +3102,6 @@ var Models = class {
3102
3102
  ...options
3103
3103
  });
3104
3104
  }
3105
- /**
3106
- * Enable naturali models
3107
- *
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.
3109
- *
3110
- */
3111
- static enableManagedModels(options) {
3112
- return (options.client ?? client).post({
3113
- url: "/v1/projects/{project_id}/models/providers",
3114
- ...options,
3115
- headers: {
3116
- "Content-Type": "application/json",
3117
- ...options.headers
3118
- }
3119
- });
3120
- }
3121
3105
  };
3122
3106
  var Orchestrations = class {
3123
3107
  /**
@@ -11964,7 +11948,7 @@ const routes = {
11964
11948
  "list-models": {
11965
11949
  serviceClass: "Models",
11966
11950
  operationId: "listModels",
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).",
11951
+ 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 with a `provider: \"naturali\"` [AI provider](/docs/api/ai-providers/create-ai-provider) — 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).",
11968
11952
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
11969
11953
  httpMethod: "get",
11970
11954
  pathParams: [],
@@ -12029,45 +12013,6 @@ const routes = {
12029
12013
  "in": "path"
12030
12014
  }]
12031
12015
  },
12032
- "enable-managed-models": {
12033
- serviceClass: "Models",
12034
- operationId: "enableManagedModels",
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.",
12036
- moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
12037
- httpMethod: "post",
12038
- pathParams: ["project_id"],
12039
- queryParams: [],
12040
- flags: [
12041
- {
12042
- "name": "project_id",
12043
- "description": "Project public ID (proj_ prefix).",
12044
- "required": true,
12045
- "type": "string",
12046
- "in": "path"
12047
- },
12048
- {
12049
- "name": "provider",
12050
- "description": "Which catalog source to enable. A managed provider serves the models of one source, so a project that wants both enables both — each call returns its own provider, and each is priced only for the models it can actually serve.\n",
12051
- "required": false,
12052
- "type": "string",
12053
- "in": "body"
12054
- },
12055
- {
12056
- "name": "name",
12057
- "description": "Provider configuration name. Defaults to `naturali` for `bedrock` and `naturali-<provider>` for every other source, so a project that enables more than one keeps them apart.\n",
12058
- "required": false,
12059
- "type": "string",
12060
- "in": "body"
12061
- },
12062
- {
12063
- "name": "default_model",
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",
12065
- "required": false,
12066
- "type": "string",
12067
- "in": "body"
12068
- }
12069
- ]
12070
- },
12071
12016
  "list-orchestrations": {
12072
12017
  serviceClass: "Orchestrations",
12073
12018
  operationId: "listOrchestrations",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.82.0",
3
+ "version": "0.83.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.82.0"
33
+ "@naturali/sdk": "0.83.0"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",