@model-match/api 3.76.0 → 3.78.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 +34 -0
- package/dist/{index-DxVeMCxi.d.mts → index-BTnMwTHB.d.mts} +8661 -6702
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/slim/index.d.mts +104 -2
- package/dist/slim/index.mjs +294 -2
- package/dist/{src-BYgQ-O4-.mjs → src-Ccn-ewCn.mjs} +329 -1
- package/openapi.json +16427 -12066
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
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.78.0
|
|
6
|
+
|
|
7
|
+
- **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.
|
|
8
|
+
- `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.
|
|
9
|
+
- `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.
|
|
10
|
+
- `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.
|
|
11
|
+
- `refreshStudioModel` (score again as of today; `retrain: true` to train again) and `deleteStudioModel`.
|
|
12
|
+
- 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.
|
|
13
|
+
- 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).
|
|
14
|
+
- `getStudioCatalog`: a table's `kind` can now be `model`.
|
|
15
|
+
|
|
16
|
+
## 3.77.0
|
|
17
|
+
|
|
18
|
+
- **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.
|
|
19
|
+
- `getStudioCatalog`: the tables you can query (recorded mortgage loans, home listings and sales, and the results of your organization's saved jobs), every column with a plain-language description, and the limits. Free.
|
|
20
|
+
- `runStudioQuery`: run one read-only `SELECT` and get `columns`, `rows`, `rowCount`, `truncated` and `elapsedMs`. Filter by `state` and a date range where you can. 5 credits per answered question; a refused or failed one is free.
|
|
21
|
+
- `createStudioJob`, `listStudioJobs`, `getStudioJob`, `runStudioJob`, `deleteStudioJob`: save a question to run on a schedule (`manual`, `daily`, `weekly`), read its runs and what changed since the previous run, run it now, or delete it. 10 credits per run that succeeds; everything else is free.
|
|
22
|
+
- Errors carry a stable `code` and, where it helps, `details` (the unknown table or column, and the valid ones).
|
|
23
|
+
|
|
24
|
+
- **Studio: your CRM as tables.** `getStudioCatalog` now lists `crm_*` tables (`kind: "crm"`): the lists shared with your whole organization and the contacts, tasks, activity, calls, meetings and custom values on them. They are refreshed about every 15 minutes (`refreshedAt` on each table) and join to the market tables on NMLS ids. Lists that are private or shared with named people are never included.
|
|
25
|
+
- `getStudioCatalog` also returns `notes`: anything worth telling the user about the catalog itself, such as "share a list with your whole organization to see it here" when a CRM has nothing shared yet.
|
|
26
|
+
- **Studio: the charge is in the response body.** `runStudioQuery` and `runStudioJob` now return `credits: { charged, remaining? }` — the same numbers as the `x-mm-credits-charged` / `x-mm-credits-remaining` headers, which are still sent. `charged` is `0` when nothing was charged.
|
|
27
|
+
- `runStudioJob` answering `202` (the run is still going) returns `credits: { charged: 0, pending: 10 }`: the run is charged when it finishes successfully, and not at all if it fails.
|
|
28
|
+
- **Studio: scheduled runs are charged.** A `daily` or `weekly` job costs 10 credits for each run that succeeds, the same as a run you start yourself. Failed runs stay free. Saving, reading and deleting jobs stay free.
|
|
29
|
+
- **Studio: date arithmetic on `$as_of`.** A job whose SQL does arithmetic on `$as_of` (`$as_of - INTERVAL '10 years'`, the start of its month, `BETWEEN … AND $as_of`) can now be saved; before, only a bare comparison could.
|
|
30
|
+
- **Studio: clearer timeouts.** A question that runs out of time is told how to narrow it and that a job may run ten times longer; the catalog's `guidance` shows the faster way to find a home's previous loan.
|
|
31
|
+
|
|
32
|
+
- **New: Studio uploads.** A file of your own data becomes a table only your organization can query and join to the market tables.
|
|
33
|
+
- `createStudioUpload`: reserve a name and get a short-lived `uploadUrl`. Send the file there with an HTTP `PUT` of exactly `sizeBytes` bytes. The table will be `upload_<name>`.
|
|
34
|
+
- `completeStudioUpload`: read the file into its table. Returns `columns`, `rowCount`, `warnings` (anything that was changed, skipped or kept as text) and `joinHints` (the columns that line up with the market tables, each with a join condition). `200` when the table is ready; `202` with `status: "ingesting"` for a large file — call it again to collect the result.
|
|
35
|
+
- `listStudioUploads` and `deleteStudioUpload`.
|
|
36
|
+
- CSV, TSV and Excel (`.xlsx`) files; up to 100 MB, 2,000,000 rows and 200 columns each; 25 uploads and 1 GB per organization. Uploading is free; a question that reads an upload costs the same as any question.
|
|
37
|
+
- `getStudioCatalog`: a table's `kind` can now be `upload`.
|
|
38
|
+
|
|
5
39
|
## 3.76.0
|
|
6
40
|
|
|
7
41
|
- **Companies: retained borrowers likely to list their home.** `companyRetentionLikelyToSell` (`GET /v1/companies/{nmlsId}/retention/likely-to-sell`) pages a company's retained borrowers (their latest loan is still the company's) whose home looks likely to be listed for sale soon, each with the company loan officer who wrote that loan: address, the likely-to-list score (0–100, a priority ranking, not a probability) and its band, and the loan's date, amount and current lender. Homes already listed or under contract are in `companyRetentionActiveListings` instead, never both. Highest score first; `originator` filters to one LO; `view: "team"` covers the company's current loan officers including loans written at a previous employer (`writtenAt`); `size` / `cursor` page. Checked weekly with the retention snapshot (`computedAt`); 404 until computed. `companyRetention` adds `likelyToSell` (the count and top 10 LOs).
|