@model-match/api 3.77.0 → 3.79.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 CHANGED
@@ -2,6 +2,26 @@
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.79.0
6
+
7
+ - **Studio: a slow question is no longer stopped — it carries on in the background.**
8
+ - `runStudioQuery` answers `200` with the rows when the question is quick, exactly as before. When it is still running after about twelve seconds it now answers **`202`** `{ status: "running", queryId, pollAfterSeconds, credits: { charged: 0, pending } }` instead of a `timeout` error, and the question keeps running for up to five minutes. Handle `202`: it is not a failure, and asking again starts a second run.
9
+ - New `getStudioQueryResult` (`GET /v1/studio/queries/{queryId}`): `{ status: "running" | "succeeded" | "failed" | "expired", … }`. On `succeeded` the same fields as a quick answer (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`) plus `expiresAt` — an answer is kept for an hour. On `failed`, `error` and `code` as the question itself would have had. Only the organization that asked can fetch it; fetching is free.
10
+ - `runStudioQuery` takes an optional `background: true` to start a question known to be heavy in the background at once.
11
+ - One question per organization runs in the background at a time. A second slow question is stopped with `timeout` and told so.
12
+ - Billing: 5 credits once when a background question succeeds, whether or not its result is fetched (`credits.pending` on the `202` and on the result); a question that fails, is stopped or was asked from the web app is free.
13
+
14
+ ## 3.78.0
15
+
16
+ - **New: Studio models.** Train a prediction model on the data points you believe matter, read an honest report card, and query the ranked list as a private table.
17
+ - `getStudioModelOptions`: what can be predicted, who can be scored, and the data points to pick from, by theme, each with why someone might believe it matters.
18
+ - `createStudioModel`: `name`, `scope.state`, an `outcome` (or `outcomeSource`, your own outcomes in an `upload_*` table) and `features` — your picks, which can include columns of your own outcomes table. Answers `201` with `status: "training"`; training takes minutes.
19
+ - `getStudioModel` and `listStudioModels`: `status` (`training`, `ready`, `refused`, `failed`) and the report card — the lift in the top 10% against random and against the best simple rule, three checks, how much each pick mattered, your picks against every data point, the caveats, and for a refused model why and what would help.
20
+ - `refreshStudioModel` (score again as of today; `retrain: true` to train again) and `deleteStudioModel`.
21
+ - A model that passes publishes `model_<name>`: one row per home with `propertyId`, `rank`, `percentile`, `score` and, only when the card says the model is calibrated, `estimatedChance`. A refused model has no table.
22
+ - 50 credits for a model that passes and 10 for refreshed scores, charged once when the run has finished; refused and failed models are free. Every answer reports it in `credits` (`charged`, `remaining`, and `pending` for a run just started).
23
+ - `getStudioCatalog`: a table's `kind` can now be `model`.
24
+
5
25
  ## 3.77.0
6
26
 
7
27
  - **New: Studio.** Answer a question with SQL over the market tables, and save a question as a job whose result becomes a table you can query.