@naturali/cli 0.287.0 → 0.289.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 +239 -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.287.0";
20
+ var version = "0.289.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1232,6 +1232,86 @@ var Admin = class {
1232
1232
  });
1233
1233
  }
1234
1234
  /**
1235
+ * List the model catalog
1236
+ *
1237
+ * Every catalog entry, retired ones included, with its cost of goods: what the offering in `GET /v1/models` is read from.
1238
+ *
1239
+ */
1240
+ static listAdminModels(options) {
1241
+ return (options?.client ?? client).get({
1242
+ url: "/v1/admin/models",
1243
+ ...options
1244
+ });
1245
+ }
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
+ /**
1279
+ * List what the sources list
1280
+ *
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.
1282
+ *
1283
+ */
1284
+ static listModelListings(options) {
1285
+ return (options?.client ?? client).get({
1286
+ url: "/v1/admin/model-listings",
1287
+ ...options
1288
+ });
1289
+ }
1290
+ /**
1291
+ * Read the sources' listings now
1292
+ *
1293
+ * Reads every served source and replaces its listing. A source that fails keeps its previous listing and reports why. The catalog is not changed.
1294
+ *
1295
+ */
1296
+ static refreshModelListings(options) {
1297
+ return (options?.client ?? client).post({
1298
+ url: "/v1/admin/model-listings/refresh",
1299
+ ...options
1300
+ });
1301
+ }
1302
+ /**
1303
+ * List where the catalog and the listings disagree
1304
+ *
1305
+ * `new`: a source lists an offerable model the catalog lacks. `retired`: an offered model its source no longer lists, or lists as deprecated. `price`: the source publishes a cost the catalog does not hold. `modalities`: the source reports other input modalities. Nothing here changes the catalog.
1306
+ *
1307
+ */
1308
+ static listModelDrift(options) {
1309
+ return (options?.client ?? client).get({
1310
+ url: "/v1/admin/model-drift",
1311
+ ...options
1312
+ });
1313
+ }
1314
+ /**
1235
1315
  * List a user's monthly statements
1236
1316
  *
1237
1317
  * The same statements the account reads at `GET /v1/users/me/statements`, for an operator to bill from. Needs the `admin` role.
@@ -8757,6 +8837,164 @@ const routes = {
8757
8837
  cookieParams: [],
8758
8838
  flags: []
8759
8839
  },
8840
+ "list-admin-models": {
8841
+ serviceClass: "Admin",
8842
+ operationId: "listAdminModels",
8843
+ description: "Every catalog entry, retired ones included, with its cost of goods: what the offering in `GET /v1/models` is read from.",
8844
+ moduleDocsUrl: "https://naturali.ai/docs",
8845
+ httpMethod: "get",
8846
+ pathParams: [],
8847
+ queryParams: [],
8848
+ headerParams: [],
8849
+ cookieParams: [],
8850
+ flags: []
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
+ },
8962
+ "list-model-listings": {
8963
+ serviceClass: "Admin",
8964
+ operationId: "listModelListings",
8965
+ description: "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.",
8966
+ moduleDocsUrl: "https://naturali.ai/docs",
8967
+ httpMethod: "get",
8968
+ pathParams: [],
8969
+ queryParams: [],
8970
+ headerParams: [],
8971
+ cookieParams: [],
8972
+ flags: []
8973
+ },
8974
+ "refresh-model-listings": {
8975
+ serviceClass: "Admin",
8976
+ operationId: "refreshModelListings",
8977
+ description: "Reads every served source and replaces its listing. A source that fails keeps its previous listing and reports why. The catalog is not changed.",
8978
+ moduleDocsUrl: "https://naturali.ai/docs",
8979
+ httpMethod: "post",
8980
+ pathParams: [],
8981
+ queryParams: [],
8982
+ headerParams: [],
8983
+ cookieParams: [],
8984
+ flags: []
8985
+ },
8986
+ "list-model-drift": {
8987
+ serviceClass: "Admin",
8988
+ operationId: "listModelDrift",
8989
+ description: "`new`: a source lists an offerable model the catalog lacks. `retired`: an offered model its source no longer lists, or lists as deprecated. `price`: the source publishes a cost the catalog does not hold. `modalities`: the source reports other input modalities. Nothing here changes the catalog.",
8990
+ moduleDocsUrl: "https://naturali.ai/docs",
8991
+ httpMethod: "get",
8992
+ pathParams: [],
8993
+ queryParams: [],
8994
+ headerParams: [],
8995
+ cookieParams: [],
8996
+ flags: []
8997
+ },
8760
8998
  "list-user-statements": {
8761
8999
  serviceClass: "Admin",
8762
9000
  operationId: "listUserStatements",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.287.0",
3
+ "version": "0.289.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.287.0",
34
+ "@naturali/sdk": "0.289.0",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",