@model-match/api 3.81.0 → 3.82.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/openapi.json CHANGED
@@ -49099,12 +49099,12 @@
49099
49099
  "StudioModelError": {
49100
49100
  "properties": {
49101
49101
  "code": {
49102
- "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`. The model: `model_not_found`, `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
49102
+ "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`. The model: `model_not_found`, `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Access: `entitlement_missing` (the model uses neighborhood data points your organization has not enabled; `details.dataPoints`), `entitlement_unavailable`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
49103
49103
  "example": "match_rate_too_low",
49104
49104
  "type": "string"
49105
49105
  },
49106
49106
  "details": {
49107
- "description": "What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`).",
49107
+ "description": "What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`); for `entitlement_missing`, the neighborhood `dataPoints` the model uses and the `entitlementKey` to enable.",
49108
49108
  "properties": {
49109
49109
  "availableTables": {
49110
49110
  "items": {
@@ -49118,6 +49118,15 @@
49118
49118
  "dataPoint": {
49119
49119
  "type": "string"
49120
49120
  },
49121
+ "dataPoints": {
49122
+ "items": {
49123
+ "type": "string"
49124
+ },
49125
+ "type": "array"
49126
+ },
49127
+ "entitlementKey": {
49128
+ "type": "string"
49129
+ },
49121
49130
  "examples": {
49122
49131
  "type": "number"
49123
49132
  },
@@ -49359,7 +49368,7 @@
49359
49368
  "type": "string"
49360
49369
  },
49361
49370
  "needsFairLendingReview": {
49362
- "description": "True for data points about the neighbourhood: a model that uses them needs a fair-lending review before it decides who gets an offer.",
49371
+ "description": "True for data points about the neighbourhood: a model that uses them needs a fair-lending review before it decides who gets an offer. Training a model on them needs neighborhood data enabled for the organization (`neighborhoodDataAllowed` on the options answer); without it they are locked.",
49363
49372
  "type": "boolean"
49364
49373
  },
49365
49374
  "whyItMightMatter": {
@@ -49566,6 +49575,10 @@
49566
49575
  "data": {
49567
49576
  "$ref": "#/components/schemas/StudioModelOptions"
49568
49577
  },
49578
+ "neighborhoodDataAllowed": {
49579
+ "description": "Whether your organization may train models on the data points marked `needsFairLendingReview`. False: show those data points as locked — they need a fair-lending review; ask your ModelMatch admin to enable neighborhood data. A model that uses them is refused with `403 entitlement_missing` until then. Every other data point is available.",
49580
+ "type": "boolean"
49581
+ },
49569
49582
  "pricing": {
49570
49583
  "properties": {
49571
49584
  "note": {
@@ -49588,7 +49601,8 @@
49588
49601
  },
49589
49602
  "required": [
49590
49603
  "data",
49591
- "pricing"
49604
+ "pricing",
49605
+ "neighborhoodDataAllowed"
49592
49606
  ],
49593
49607
  "type": "object"
49594
49608
  },
@@ -51414,7 +51428,7 @@
51414
51428
  "info": {
51415
51429
  "description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
51416
51430
  "title": "ModelMatch API",
51417
- "version": "3.165.0"
51431
+ "version": "3.166.0"
51418
51432
  },
51419
51433
  "openapi": "3.1.0",
51420
51434
  "paths": {
@@ -91121,7 +91135,7 @@
91121
91135
  }
91122
91136
  }
91123
91137
  },
91124
- "description": "`no_organization` — models belong to an organization; select one and try again."
91138
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91125
91139
  },
91126
91140
  "404": {
91127
91141
  "content": {
@@ -91180,7 +91194,7 @@
91180
91194
  ]
91181
91195
  },
91182
91196
  "post": {
91183
- "description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
91197
+ "description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. Data points marked `needsFairLendingReview` describe the neighborhood and need neighborhood data enabled for the organization (`neighborhoodDataAllowed` on getStudioModelOptions): without it a model that uses them — including one that leaves `features` out, which means every data point — is refused with `403 entitlement_missing`, naming them in `details.dataPoints`; tell the person to ask their ModelMatch admin, or pick other data points. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
91184
91198
  "operationId": "createStudioModel",
91185
91199
  "requestBody": {
91186
91200
  "content": {
@@ -91231,7 +91245,7 @@
91231
91245
  }
91232
91246
  }
91233
91247
  },
91234
- "description": "`no_organization` — models belong to an organization; select one and try again."
91248
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91235
91249
  },
91236
91250
  "404": {
91237
91251
  "content": {
@@ -91273,6 +91287,16 @@
91273
91287
  },
91274
91288
  "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
91275
91289
  },
91290
+ "502": {
91291
+ "content": {
91292
+ "application/json": {
91293
+ "schema": {
91294
+ "$ref": "#/components/schemas/StudioModelError"
91295
+ }
91296
+ }
91297
+ },
91298
+ "description": "`entitlement_unavailable` — whether your organization can train on neighborhood data could not be confirmed right now; nothing was started. Try again in a minute."
91299
+ },
91276
91300
  "503": {
91277
91301
  "content": {
91278
91302
  "application/json": {
@@ -91333,7 +91357,7 @@
91333
91357
  }
91334
91358
  }
91335
91359
  },
91336
- "description": "`no_organization` — models belong to an organization; select one and try again."
91360
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91337
91361
  },
91338
91362
  "404": {
91339
91363
  "content": {
@@ -91545,7 +91569,7 @@
91545
91569
  }
91546
91570
  }
91547
91571
  },
91548
- "description": "`no_organization` — models belong to an organization; select one and try again."
91572
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91549
91573
  },
91550
91574
  "404": {
91551
91575
  "content": {
@@ -91669,7 +91693,7 @@
91669
91693
  }
91670
91694
  }
91671
91695
  },
91672
- "description": "`no_organization` — models belong to an organization; select one and try again."
91696
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91673
91697
  },
91674
91698
  "404": {
91675
91699
  "content": {
@@ -91730,7 +91754,7 @@
91730
91754
  },
91731
91755
  "/v1/studio/models/{name}/refresh": {
91732
91756
  "post": {
91733
- "description": "Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves); `expectedMinutes` says how long it is expected to take, and `progress` which step it is on. Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). While it retrains the model stays `ready` with its current `card` and scores, and `progress` shows the training exactly as for a new model — the numbered step, the time left and the live `progress.trace`; the new card (with its final `trace`) replaces the current one when the run is published. A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
91757
+ "description": "Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves); `expectedMinutes` says how long it is expected to take, and `progress` which step it is on. Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A retrain of a model that uses neighborhood data points needs neighborhood data enabled for the organization, like creating one (`403 entitlement_missing` otherwise); a plain refresh of the scores does not. While it retrains the model stays `ready` with its current `card` and scores, and `progress` shows the training exactly as for a new model — the numbered step, the time left and the live `progress.trace`; the new card (with its final `trace`) replaces the current one when the run is published. A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
91734
91758
  "operationId": "refreshStudioModel",
91735
91759
  "parameters": [
91736
91760
  {
@@ -91805,7 +91829,7 @@
91805
91829
  }
91806
91830
  }
91807
91831
  },
91808
- "description": "`no_organization` — models belong to an organization; select one and try again."
91832
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91809
91833
  },
91810
91834
  "404": {
91811
91835
  "content": {
@@ -91847,6 +91871,16 @@
91847
91871
  },
91848
91872
  "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
91849
91873
  },
91874
+ "502": {
91875
+ "content": {
91876
+ "application/json": {
91877
+ "schema": {
91878
+ "$ref": "#/components/schemas/StudioModelError"
91879
+ }
91880
+ }
91881
+ },
91882
+ "description": "`entitlement_unavailable` — whether your organization can train on neighborhood data could not be confirmed right now; nothing was started. Try again in a minute."
91883
+ },
91850
91884
  "503": {
91851
91885
  "content": {
91852
91886
  "application/json": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.81.0",
3
+ "version": "3.82.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [