@naturali/sdk 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.
package/dist/index.mjs CHANGED
@@ -1211,6 +1211,86 @@ var Admin = class {
1211
1211
  });
1212
1212
  }
1213
1213
  /**
1214
+ * List the model catalog
1215
+ *
1216
+ * Every catalog entry, retired ones included, with its cost of goods: what the offering in `GET /v1/models` is read from.
1217
+ *
1218
+ */
1219
+ static listAdminModels(options) {
1220
+ return (options?.client ?? client).get({
1221
+ url: "/v1/admin/models",
1222
+ ...options
1223
+ });
1224
+ }
1225
+ /**
1226
+ * Add a model to the catalog
1227
+ *
1228
+ * 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`.
1229
+ *
1230
+ */
1231
+ static createAdminModel(options) {
1232
+ return (options.client ?? client).post({
1233
+ url: "/v1/admin/models",
1234
+ ...options,
1235
+ headers: {
1236
+ "Content-Type": "application/json",
1237
+ ...options.headers
1238
+ }
1239
+ });
1240
+ }
1241
+ /**
1242
+ * Edit or retire a catalog model
1243
+ *
1244
+ * 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.
1245
+ *
1246
+ */
1247
+ static updateAdminModel(options) {
1248
+ return (options.client ?? client).patch({
1249
+ url: "/v1/admin/models/{model}",
1250
+ ...options,
1251
+ headers: {
1252
+ "Content-Type": "application/json",
1253
+ ...options.headers
1254
+ }
1255
+ });
1256
+ }
1257
+ /**
1258
+ * List what the sources list
1259
+ *
1260
+ * 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.
1261
+ *
1262
+ */
1263
+ static listModelListings(options) {
1264
+ return (options?.client ?? client).get({
1265
+ url: "/v1/admin/model-listings",
1266
+ ...options
1267
+ });
1268
+ }
1269
+ /**
1270
+ * Read the sources' listings now
1271
+ *
1272
+ * Reads every served source and replaces its listing. A source that fails keeps its previous listing and reports why. The catalog is not changed.
1273
+ *
1274
+ */
1275
+ static refreshModelListings(options) {
1276
+ return (options?.client ?? client).post({
1277
+ url: "/v1/admin/model-listings/refresh",
1278
+ ...options
1279
+ });
1280
+ }
1281
+ /**
1282
+ * List where the catalog and the listings disagree
1283
+ *
1284
+ * `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.
1285
+ *
1286
+ */
1287
+ static listModelDrift(options) {
1288
+ return (options?.client ?? client).get({
1289
+ url: "/v1/admin/model-drift",
1290
+ ...options
1291
+ });
1292
+ }
1293
+ /**
1214
1294
  * List a user's monthly statements
1215
1295
  *
1216
1296
  * The same statements the account reads at `GET /v1/users/me/statements`, for an operator to bill from. Needs the `admin` role.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.287.0",
3
+ "version": "0.289.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.287.0",
41
+ "@naturali/api": "0.289.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",