@naturali/cli 0.289.1 → 0.290.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 +4 -5
  2. 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.289.1";
20
+ var version = "0.290.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1262,7 +1262,7 @@ var Admin = class {
1262
1262
  /**
1263
1263
  * Edit or retire a catalog model
1264
1264
  *
1265
- * Changes what the shared provider serves at once. `status: deprecated` retires the model (it stays listed, and agents pinned to it keep generating while its price stands); `available` offers it again.
1265
+ * Changes what the shared provider serves at once. `status: deprecated` retires the model (it stays listed, and agents pinned to it keep generating while its price stands); `available` offers it, and needs input and output prices on the model or in the same write (`400` otherwise).
1266
1266
  *
1267
1267
  */
1268
1268
  static updateAdminModel(options) {
@@ -7645,11 +7645,10 @@ const PROJECT_ID_PARAM = "project_id";
7645
7645
  * Falls back to `NATURALI_PROJECT_ID` for the `project_id` path or query
7646
7646
  * parameter when a command doesn't pass `--project-id` explicitly, so a user
7647
7647
  * working within one project doesn't have to repeat it on every command.
7648
- * `NATURALI_PROJECT` is read after it so shells that still export it work.
7649
7648
  */
7650
7649
  const applyProjectIdEnvDefault = (args) => {
7651
7650
  const { route, call } = args;
7652
- const envProjectId = process.env["NATURALI_PROJECT_ID"] || process.env["NATURALI_PROJECT"];
7651
+ const envProjectId = process.env["NATURALI_PROJECT_ID"];
7653
7652
  if (!envProjectId) return;
7654
7653
  if (route.pathParams.includes(PROJECT_ID_PARAM) && !(PROJECT_ID_PARAM in call.path)) call.path[PROJECT_ID_PARAM] = envProjectId;
7655
7654
  else if (route.queryParams.includes(PROJECT_ID_PARAM) && !(PROJECT_ID_PARAM in call.query)) call.query[PROJECT_ID_PARAM] = envProjectId;
@@ -8914,7 +8913,7 @@ const routes = {
8914
8913
  "update-admin-model": {
8915
8914
  serviceClass: "Admin",
8916
8915
  operationId: "updateAdminModel",
8917
- description: "Changes what the shared provider serves at once. `status: deprecated` retires the model (it stays listed, and agents pinned to it keep generating while its price stands); `available` offers it again.",
8916
+ description: "Changes what the shared provider serves at once. `status: deprecated` retires the model (it stays listed, and agents pinned to it keep generating while its price stands); `available` offers it, and needs input and output prices on the model or in the same write (`400` otherwise).",
8918
8917
  moduleDocsUrl: "https://naturali.ai/docs",
8919
8918
  httpMethod: "patch",
8920
8919
  pathParams: ["model"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.289.1",
3
+ "version": "0.290.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.289.1",
34
+ "@naturali/sdk": "0.290.0",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",