@model-match/api 3.78.0 → 3.79.1

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,19 @@
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.1
6
+
7
+ - Regenerated from the latest API spec. No changes to the client itself.
8
+
9
+ ## 3.79.0
10
+
11
+ - **Studio: a slow question is no longer stopped — it carries on in the background.**
12
+ - `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.
13
+ - 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.
14
+ - `runStudioQuery` takes an optional `background: true` to start a question known to be heavy in the background at once.
15
+ - One question per organization runs in the background at a time. A second slow question is stopped with `timeout` and told so.
16
+ - 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.
17
+
5
18
  ## 3.78.0
6
19
 
7
20
  - **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.