@model-match/api 3.107.0 → 3.108.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/RELEASE_NOTES.md +5 -0
- package/dist/{index-ugFfJBXe.d.mts → index-Br4kMLFF.d.mts} +21 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +2 -2
- package/dist/slim/index.mjs +2 -2
- package/dist/{src-DlIVTyg4.mjs → src-CYGd9bVt.mjs} +1 -1
- package/openapi.json +43 -4
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Changes to `@model-match/api` that affect how you use it. Each version is generated from the ModelMatch API's OpenAPI spec, so new endpoints and fields appear in the [API reference](https://docs.modelmatch.com/developers) as they ship.
|
|
4
4
|
|
|
5
|
+
## 3.108.0
|
|
6
|
+
|
|
7
|
+
- **Check a model's run without being charged.** `getStudioModel` takes `charge: "false"` for a status read that never charges or publishes. A finished run waiting to be paid for shows `runState: "finished"` and `credits.pending`. Read it without `charge` to publish the scores and pay, as before.
|
|
8
|
+
- Models now carry `run` (`"train"` or `"score"`), `runId` (the same from `createStudioModel` or `refreshStudioModel` to the run's webhook event) and `runState` (`"running"` or `"finished"`), all `null` when nothing is running.
|
|
9
|
+
|
|
5
10
|
## 3.107.0
|
|
6
11
|
|
|
7
12
|
- **SQLite databases in the files library.** A file whose contents are a SQLite database is now `kind: "sqlite"`, told from its bytes rather than its name. Databases can be up to 100 MB; `completeFile` refuses a larger one with `422 database_too_large`.
|
|
@@ -15832,7 +15832,7 @@ type StudioModel = {
|
|
|
15832
15832
|
message: string;
|
|
15833
15833
|
};
|
|
15834
15834
|
/**
|
|
15835
|
-
* While a run is going (training, or a refresh): how long a run like it takes from start to finish, in minutes. It depends on the size of the
|
|
15835
|
+
* While a run is going (training, or a refresh): how long a run like it takes from start to finish, in minutes. It depends on the size of the area: a couple of minutes for a county, a few ZIP codes or a small state, 15 to 25 for the largest states. An estimate. Null when nothing is running.
|
|
15836
15836
|
*/
|
|
15837
15837
|
expectedMinutes?: {
|
|
15838
15838
|
high: number;
|
|
@@ -16106,6 +16106,18 @@ type StudioModel = {
|
|
|
16106
16106
|
startedAt?: string;
|
|
16107
16107
|
status: 'running' | 'failed';
|
|
16108
16108
|
};
|
|
16109
|
+
/**
|
|
16110
|
+
* The run in progress, or the finished one waiting to be published: `train` (a new model, a new version, or `refresh` with `retrain: true`) or `score` (a re-score). Null when nothing is running.
|
|
16111
|
+
*/
|
|
16112
|
+
run?: 'train' | 'score';
|
|
16113
|
+
/**
|
|
16114
|
+
* That run's id. The same from the create or refresh response that started it until it ends, and in the `run.id` of its `studio.model.*` webhook event. Null when nothing is running.
|
|
16115
|
+
*/
|
|
16116
|
+
runId?: string;
|
|
16117
|
+
/**
|
|
16118
|
+
* `running`, or `finished`: the run has ended and is published (and charged) by the next read without `charge=false`, or by the scheduler. Null when nothing is running: the model is `ready`, `refused` or `failed` (and `refresh.status` says how the last refresh went).
|
|
16119
|
+
*/
|
|
16120
|
+
runState?: 'running' | 'finished';
|
|
16109
16121
|
/**
|
|
16110
16122
|
* How often the scores are refreshed: `manual` (when you ask), `weekly` or `monthly`.
|
|
16111
16123
|
*/
|
|
@@ -16282,7 +16294,7 @@ type StudioModelCredits = {
|
|
|
16282
16294
|
*/
|
|
16283
16295
|
charged: number;
|
|
16284
16296
|
/**
|
|
16285
|
-
* Where a run was just started: the credits that will be charged when it finishes with a model that passes its checks (or with refreshed scores). Nothing is charged for a model that is refused or fails.
|
|
16297
|
+
* Where a run was just started: the credits that will be charged when it finishes with a model that passes its checks (or with refreshed scores). Nothing is charged for a model that is refused or fails. On a read with `charge=false`: what the finished run waiting to be published will be charged.
|
|
16286
16298
|
*/
|
|
16287
16299
|
pending?: number;
|
|
16288
16300
|
/**
|
|
@@ -37537,7 +37549,12 @@ type GetStudioModelData = {
|
|
|
37537
37549
|
*/
|
|
37538
37550
|
name: string;
|
|
37539
37551
|
};
|
|
37540
|
-
query?:
|
|
37552
|
+
query?: {
|
|
37553
|
+
/**
|
|
37554
|
+
* `false`: a status read that never charges and never publishes. A finished run that is waiting to be paid for shows `runState: finished` and `credits.pending` (what the next read without `charge=false` will charge); its scores are published by that read, or by the scheduler within about two hours. Default `true`.
|
|
37555
|
+
*/
|
|
37556
|
+
charge?: 'true' | 'false';
|
|
37557
|
+
};
|
|
37541
37558
|
url: '/v1/studio/models/{name}';
|
|
37542
37559
|
};
|
|
37543
37560
|
type GetStudioModelErrors = {
|
|
@@ -40623,7 +40640,7 @@ declare class Studio {
|
|
|
40623
40640
|
/**
|
|
40624
40641
|
* A model: its status and its report card
|
|
40625
40642
|
*
|
|
40626
|
-
* The model and, once training has finished, its report card (`card`). While it trains, `progress` says which numbered step it is on, how long it has been and how long is left (an estimate, as a range). Read the card as it is written, using its sentences and labels: fields named `id`, `code`, `verdict`, `better`, and everything under `technical`, are for programs and are never shown to a person. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then each home's estimated chance is an estimate from past cases). `status: refused` means the model is not dependable enough to publish: `card.refusal.reason` says why and `card.refusal.whatWouldHelp` what to try; a refused model has no scores. When `scores` is not null, query `scores.table` with runStudioQuery: one row per home with `rank`, `percentile`, `score`, `topReason`, the home's `city` and `zipCode` (select those and leave `streetAddress` out to show the list without street addresses), and `propertyId` to join to `loans` and `sales`. Reading is free. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). The charge is reported in `credits`.
|
|
40643
|
+
* The model and, once training has finished, its report card (`card`). While it trains, `progress` says which numbered step it is on, how long it has been and how long is left (an estimate, as a range). Read the card as it is written, using its sentences and labels: fields named `id`, `code`, `verdict`, `better`, and everything under `technical`, are for programs and are never shown to a person. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then each home's estimated chance is an estimate from past cases). `status: refused` means the model is not dependable enough to publish: `card.refusal.reason` says why and `card.refusal.whatWouldHelp` what to try; a refused model has no scores. When `scores` is not null, query `scores.table` with runStudioQuery: one row per home with `rank`, `percentile`, `score`, `topReason`, the home's `city` and `zipCode` (select those and leave `streetAddress` out to show the list without street addresses), and `propertyId` to join to `loans` and `sales`. Reading is free. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). The charge is reported in `credits`. To watch a run without being charged by the watching, pass `charge=false`: `runState` becomes `finished` when it has ended; then read without it to publish and pay.
|
|
40627
40644
|
*/
|
|
40628
40645
|
static getStudioModel<ThrowOnError extends boolean = false>(options: Options<GetStudioModelData, ThrowOnError>): RequestResult<GetStudioModelResponses, GetStudioModelErrors, ThrowOnError>;
|
|
40629
40646
|
/**
|