@naturali/cli 0.288.0 → 0.289.1

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 +143 -1
  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.288.0";
20
+ var version = "0.289.1";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1244,6 +1244,38 @@ var Admin = class {
1244
1244
  });
1245
1245
  }
1246
1246
  /**
1247
+ * Add a model to the catalog
1248
+ *
1249
+ * Offers a model through the shared provider at once. `model` is its public name and never changes. A model reads documents (`file`) whatever `input_modalities` says. The source's last listing fills the vendor and output modalities when it lists `id`.
1250
+ *
1251
+ */
1252
+ static createAdminModel(options) {
1253
+ return (options.client ?? client).post({
1254
+ url: "/v1/admin/models",
1255
+ ...options,
1256
+ headers: {
1257
+ "Content-Type": "application/json",
1258
+ ...options.headers
1259
+ }
1260
+ });
1261
+ }
1262
+ /**
1263
+ * Edit or retire a catalog model
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.
1266
+ *
1267
+ */
1268
+ static updateAdminModel(options) {
1269
+ return (options.client ?? client).patch({
1270
+ url: "/v1/admin/models/{model}",
1271
+ ...options,
1272
+ headers: {
1273
+ "Content-Type": "application/json",
1274
+ ...options.headers
1275
+ }
1276
+ });
1277
+ }
1278
+ /**
1247
1279
  * List what the sources list
1248
1280
  *
1249
1281
  * The models each managed source listed at its last read, each with the catalog `model` it is offered under, if any. Bedrock carries the cost the AWS offer publishes; Vertex and Anthropic publish none.
@@ -8817,6 +8849,116 @@ const routes = {
8817
8849
  cookieParams: [],
8818
8850
  flags: []
8819
8851
  },
8852
+ "create-admin-model": {
8853
+ serviceClass: "Admin",
8854
+ operationId: "createAdminModel",
8855
+ description: "Offers a model through the shared provider at once. `model` is its public name and never changes. A model reads documents (`file`) whatever `input_modalities` says. The source's last listing fills the vendor and output modalities when it lists `id`.",
8856
+ moduleDocsUrl: "https://naturali.ai/docs",
8857
+ httpMethod: "post",
8858
+ pathParams: [],
8859
+ queryParams: [],
8860
+ headerParams: [],
8861
+ cookieParams: [],
8862
+ flags: [
8863
+ {
8864
+ "name": "provider",
8865
+ "description": "",
8866
+ "required": true,
8867
+ "type": "string",
8868
+ "in": "body"
8869
+ },
8870
+ {
8871
+ "name": "id",
8872
+ "description": "The string the runtime sends to the vendor.",
8873
+ "required": true,
8874
+ "type": "string",
8875
+ "in": "body"
8876
+ },
8877
+ {
8878
+ "name": "model",
8879
+ "description": "The public name, lowercase letters, digits, dots and dashes.",
8880
+ "required": true,
8881
+ "type": "string",
8882
+ "in": "body"
8883
+ },
8884
+ {
8885
+ "name": "display_name",
8886
+ "description": "",
8887
+ "required": true,
8888
+ "type": "string",
8889
+ "in": "body"
8890
+ },
8891
+ {
8892
+ "name": "vendor",
8893
+ "description": "",
8894
+ "required": false,
8895
+ "type": "string",
8896
+ "in": "body"
8897
+ },
8898
+ {
8899
+ "name": "input_modalities",
8900
+ "description": "What the model reads besides documents; must include `text`.",
8901
+ "required": false,
8902
+ "type": "array",
8903
+ "in": "body"
8904
+ },
8905
+ {
8906
+ "name": "cost_usd_per_mtok",
8907
+ "description": "Cost of goods, USD per million tokens.",
8908
+ "required": true,
8909
+ "type": "object",
8910
+ "in": "body"
8911
+ }
8912
+ ]
8913
+ },
8914
+ "update-admin-model": {
8915
+ serviceClass: "Admin",
8916
+ 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.",
8918
+ moduleDocsUrl: "https://naturali.ai/docs",
8919
+ httpMethod: "patch",
8920
+ pathParams: ["model"],
8921
+ queryParams: [],
8922
+ headerParams: [],
8923
+ cookieParams: [],
8924
+ flags: [
8925
+ {
8926
+ "name": "model",
8927
+ "description": "",
8928
+ "required": true,
8929
+ "type": "string",
8930
+ "in": "path"
8931
+ },
8932
+ {
8933
+ "name": "display_name",
8934
+ "description": "",
8935
+ "required": false,
8936
+ "type": "string",
8937
+ "in": "body"
8938
+ },
8939
+ {
8940
+ "name": "input_modalities",
8941
+ "description": "What the model reads besides documents; must include `text`.",
8942
+ "required": false,
8943
+ "type": "array",
8944
+ "in": "body"
8945
+ },
8946
+ {
8947
+ "name": "cost_usd_per_mtok",
8948
+ "description": "Cost of goods, USD per million tokens.",
8949
+ "required": false,
8950
+ "type": "object",
8951
+ "in": "body"
8952
+ },
8953
+ {
8954
+ "name": "status",
8955
+ "description": "",
8956
+ "required": false,
8957
+ "type": "string",
8958
+ "in": "body"
8959
+ }
8960
+ ]
8961
+ },
8820
8962
  "list-model-listings": {
8821
8963
  serviceClass: "Admin",
8822
8964
  operationId: "listModelListings",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.288.0",
3
+ "version": "0.289.1",
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.288.0",
34
+ "@naturali/sdk": "0.289.1",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",