@model-match/api 3.110.0 → 3.112.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,15 @@
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.112.0
6
+
7
+ - **`createStudioModel` checks a small area first.** A model of a few ZIP codes or counties with too few past cases of the outcome is refused before training, free, with `422` and `code: "scope_too_small"`. `details.suggestedScope` is the smallest wider area with enough past cases (the county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's count. Send the suggested area as `scope`, or pass the new `widen: "off"` to train on the area as asked.
8
+
9
+ ## 3.111.0
10
+
11
+ - **Write to a database file.** `writeFileDatabase` runs a batch of statements on a SQLite database you own or can edit, in one transaction, and saves the result as the file's next revision. Pass `expectRevision` to write only if nobody saved a newer revision since you read it; otherwise the answer is `409 revision_conflict` with `latestRevision`. ATTACH, PRAGMA, VACUUM and extension loading are refused. The database's own triggers run.
12
+ - **Create a database file.** `createFileDatabase` makes a new SQLite database in your files library, empty or from a schema. It is ready at once.
13
+
5
14
  ## 3.110.0
6
15
 
7
16
  - **Query a database file.** `getFileDatabase` lists a SQLite database's tables, columns and row counts. `queryFileDatabase` runs one read-only `SELECT` on it, with optional `params`, and returns up to `maxRows` rows (500 by default, at most 5,000). Anyone the file is shared with can read it. Writes, ATTACH, PRAGMA and extension loading are refused with `400 sql_not_allowed`.