@naturali/cli 0.77.2 → 0.78.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 +11 -4
  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.77.2";
17
+ var version = "0.78.0";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const serializeFormDataPair = (data, key, value) => {
@@ -2982,7 +2982,7 @@ var Models = class {
2982
2982
  /**
2983
2983
  * Enable naturali models
2984
2984
  *
2985
- * 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.
2985
+ * Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which every model that source 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 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.
2986
2986
  *
2987
2987
  */
2988
2988
  static enableManagedModels(options) {
@@ -11619,7 +11619,7 @@ const routes = {
11619
11619
  "enable-managed-models": {
11620
11620
  serviceClass: "Models",
11621
11621
  operationId: "enableManagedModels",
11622
- 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.",
11622
+ description: "Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which every model that source 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 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.",
11623
11623
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/models",
11624
11624
  httpMethod: "post",
11625
11625
  pathParams: ["project_id"],
@@ -11632,9 +11632,16 @@ const routes = {
11632
11632
  "type": "string",
11633
11633
  "in": "path"
11634
11634
  },
11635
+ {
11636
+ "name": "provider",
11637
+ "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",
11638
+ "required": false,
11639
+ "type": "string",
11640
+ "in": "body"
11641
+ },
11635
11642
  {
11636
11643
  "name": "name",
11637
- "description": "Provider configuration name. Defaults to `naturali`.",
11644
+ "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",
11638
11645
  "required": false,
11639
11646
  "type": "string",
11640
11647
  "in": "body"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.77.2",
3
+ "version": "0.78.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.77.2"
33
+ "@naturali/sdk": "0.78.0"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",