@naturali/cli 0.286.0 → 0.288.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 +97 -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.286.0";
20
+ var version = "0.288.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -1232,6 +1232,54 @@ 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
+ * List what the sources list
1248
+ *
1249
+ * 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.
1250
+ *
1251
+ */
1252
+ static listModelListings(options) {
1253
+ return (options?.client ?? client).get({
1254
+ url: "/v1/admin/model-listings",
1255
+ ...options
1256
+ });
1257
+ }
1258
+ /**
1259
+ * Read the sources' listings now
1260
+ *
1261
+ * Reads every served source and replaces its listing. A source that fails keeps its previous listing and reports why. The catalog is not changed.
1262
+ *
1263
+ */
1264
+ static refreshModelListings(options) {
1265
+ return (options?.client ?? client).post({
1266
+ url: "/v1/admin/model-listings/refresh",
1267
+ ...options
1268
+ });
1269
+ }
1270
+ /**
1271
+ * List where the catalog and the listings disagree
1272
+ *
1273
+ * `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.
1274
+ *
1275
+ */
1276
+ static listModelDrift(options) {
1277
+ return (options?.client ?? client).get({
1278
+ url: "/v1/admin/model-drift",
1279
+ ...options
1280
+ });
1281
+ }
1282
+ /**
1235
1283
  * List a user's monthly statements
1236
1284
  *
1237
1285
  * The same statements the account reads at `GET /v1/users/me/statements`, for an operator to bill from. Needs the `admin` role.
@@ -8757,6 +8805,54 @@ const routes = {
8757
8805
  cookieParams: [],
8758
8806
  flags: []
8759
8807
  },
8808
+ "list-admin-models": {
8809
+ serviceClass: "Admin",
8810
+ operationId: "listAdminModels",
8811
+ description: "Every catalog entry, retired ones included, with its cost of goods: what the offering in `GET /v1/models` is read from.",
8812
+ moduleDocsUrl: "https://naturali.ai/docs",
8813
+ httpMethod: "get",
8814
+ pathParams: [],
8815
+ queryParams: [],
8816
+ headerParams: [],
8817
+ cookieParams: [],
8818
+ flags: []
8819
+ },
8820
+ "list-model-listings": {
8821
+ serviceClass: "Admin",
8822
+ operationId: "listModelListings",
8823
+ 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.",
8824
+ moduleDocsUrl: "https://naturali.ai/docs",
8825
+ httpMethod: "get",
8826
+ pathParams: [],
8827
+ queryParams: [],
8828
+ headerParams: [],
8829
+ cookieParams: [],
8830
+ flags: []
8831
+ },
8832
+ "refresh-model-listings": {
8833
+ serviceClass: "Admin",
8834
+ operationId: "refreshModelListings",
8835
+ 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.",
8836
+ moduleDocsUrl: "https://naturali.ai/docs",
8837
+ httpMethod: "post",
8838
+ pathParams: [],
8839
+ queryParams: [],
8840
+ headerParams: [],
8841
+ cookieParams: [],
8842
+ flags: []
8843
+ },
8844
+ "list-model-drift": {
8845
+ serviceClass: "Admin",
8846
+ operationId: "listModelDrift",
8847
+ 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.",
8848
+ moduleDocsUrl: "https://naturali.ai/docs",
8849
+ httpMethod: "get",
8850
+ pathParams: [],
8851
+ queryParams: [],
8852
+ headerParams: [],
8853
+ cookieParams: [],
8854
+ flags: []
8855
+ },
8760
8856
  "list-user-statements": {
8761
8857
  serviceClass: "Admin",
8762
8858
  operationId: "listUserStatements",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.286.0",
3
+ "version": "0.288.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.286.0",
34
+ "@naturali/sdk": "0.288.0",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",