@model-match/api 3.74.0 → 3.77.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 +32 -0
- package/dist/{index-CgVGaV8A.d.mts → index-DHHPxexm.d.mts} +3458 -1958
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/slim/index.d.mts +74 -2
- package/dist/slim/index.mjs +206 -2
- package/dist/{src-DZvh-WnI.mjs → src-D7eIbeGl.mjs} +231 -1
- package/openapi.json +6891 -3749
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
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.77.0
|
|
6
|
+
|
|
7
|
+
- **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.
|
|
8
|
+
- `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.
|
|
9
|
+
- `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.
|
|
10
|
+
- `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.
|
|
11
|
+
- Errors carry a stable `code` and, where it helps, `details` (the unknown table or column, and the valid ones).
|
|
12
|
+
|
|
13
|
+
- **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.
|
|
14
|
+
- `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.
|
|
15
|
+
- **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.
|
|
16
|
+
- `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.
|
|
17
|
+
- **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.
|
|
18
|
+
- **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.
|
|
19
|
+
- **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.
|
|
20
|
+
|
|
21
|
+
- **New: Studio uploads.** A file of your own data becomes a table only your organization can query and join to the market tables.
|
|
22
|
+
- `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>`.
|
|
23
|
+
- `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.
|
|
24
|
+
- `listStudioUploads` and `deleteStudioUpload`.
|
|
25
|
+
- 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.
|
|
26
|
+
- `getStudioCatalog`: a table's `kind` can now be `upload`.
|
|
27
|
+
|
|
28
|
+
## 3.76.0
|
|
29
|
+
|
|
30
|
+
- **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).
|
|
31
|
+
|
|
32
|
+
## 3.75.0
|
|
33
|
+
|
|
34
|
+
- **Listing photos.** `Sales.get` returns a nullable `media` block (`photos` with `url`, `width`, `height`; `source` with `host` and `pageUrl`; `foundAt`) when photo links have been found for that listing, and `null` otherwise. The links point at third-party sites and can stop working, so attribute them to `source.host` and expect gaps.
|
|
35
|
+
- **Cover photo on lists.** `Sales.list` rows and `Sales.map` point rows carry an optional `media` summary (`cover` with `url`, `width`, `height`; `count`; `source` with `host` and `pageUrl`) when photo links have been found for that listing; the key is absent otherwise. The full `photos` array is only on `Sales.get`.
|
|
36
|
+
|
|
5
37
|
## 3.74.0
|
|
6
38
|
|
|
7
39
|
- **`Sales.marketStats` returns neighborhood figures for a ZIP, city or county.** Median sold price, price per square foot, days to sell and sale-to-list ratio over a sold window, plus active inventory, median list price and the share of listings with a price cut. Each median reports the number of sales it is computed from. Property-type filtering and living-area figures are dependable for recent months only. Billed as one analytics call.
|