@model-match/api 3.87.0 → 3.88.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
@@ -49503,12 +49503,12 @@
49503
49503
  "StudioModelError": {
49504
49504
  "properties": {
49505
49505
  "code": {
49506
- "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`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `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, or a boost or direction on where a home is, that your organization has not enabled; `details.dataPoints`, `details.boostColumns`, `details.directionRules`), `entitlement_unavailable`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
49506
+ "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`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `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`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
49507
49507
  "example": "match_rate_too_low",
49508
49508
  "type": "string"
49509
49509
  },
49510
49510
  "details": {
49511
- "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`, `boostColumns` and `directionRules` the model uses and the `entitlementKey` to enable.",
49511
+ "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 `protected_characteristic`, every offending field (`fields`) and what they are about (`characteristics`).",
49512
49512
  "properties": {
49513
49513
  "availableTables": {
49514
49514
  "items": {
@@ -49516,7 +49516,7 @@
49516
49516
  },
49517
49517
  "type": "array"
49518
49518
  },
49519
- "boostColumns": {
49519
+ "characteristics": {
49520
49520
  "items": {
49521
49521
  "type": "string"
49522
49522
  },
@@ -49528,24 +49528,18 @@
49528
49528
  "dataPoint": {
49529
49529
  "type": "string"
49530
49530
  },
49531
- "dataPoints": {
49532
- "items": {
49533
- "type": "string"
49534
- },
49535
- "type": "array"
49536
- },
49537
- "directionRules": {
49538
- "items": {
49539
- "type": "string"
49540
- },
49541
- "type": "array"
49542
- },
49543
49531
  "entitlementKey": {
49544
49532
  "type": "string"
49545
49533
  },
49546
49534
  "examples": {
49547
49535
  "type": "number"
49548
49536
  },
49537
+ "fields": {
49538
+ "items": {
49539
+ "type": "string"
49540
+ },
49541
+ "type": "array"
49542
+ },
49549
49543
  "function": {
49550
49544
  "type": "string"
49551
49545
  },
@@ -49760,6 +49754,37 @@
49760
49754
  },
49761
49755
  "type": "array"
49762
49756
  },
49757
+ "protectedCharacteristics": {
49758
+ "description": "What a model can never use, whoever asks: a data point, one of your own columns, a direction rule or a priority boost about one of these is refused with `400 protected_characteristic`. Nothing unlocks it.",
49759
+ "properties": {
49760
+ "characteristics": {
49761
+ "items": {
49762
+ "properties": {
49763
+ "id": {
49764
+ "type": "string"
49765
+ },
49766
+ "label": {
49767
+ "type": "string"
49768
+ }
49769
+ },
49770
+ "required": [
49771
+ "id",
49772
+ "label"
49773
+ ],
49774
+ "type": "object"
49775
+ },
49776
+ "type": "array"
49777
+ },
49778
+ "note": {
49779
+ "type": "string"
49780
+ }
49781
+ },
49782
+ "required": [
49783
+ "note",
49784
+ "characteristics"
49785
+ ],
49786
+ "type": "object"
49787
+ },
49763
49788
  "themes": {
49764
49789
  "description": "The data points a model can use, grouped by theme. Offer the themes and ask which data points the person believes matter.",
49765
49790
  "items": {
@@ -49788,7 +49813,7 @@
49788
49813
  "type": "string"
49789
49814
  },
49790
49815
  "needsFairLendingReview": {
49791
- "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.",
49816
+ "description": "True for data points about the neighbourhood: available to every organization, but geography can act as a proxy for protected classes, so a model that uses them should have a fair-lending review before it decides who gets an offer (the report card says so).",
49792
49817
  "type": "boolean"
49793
49818
  },
49794
49819
  "whyItMightMatter": {
@@ -49980,7 +50005,7 @@
49980
50005
  "type": "object"
49981
50006
  },
49982
50007
  "weighting": {
49983
- "description": "How a model can be weighted: `recentHistory` settings, `directions` (on data points with `acceptsDirection`), and the scores-table `columns` a priority boost may test. A boost on a column with `needsFairLendingReview`, or a direction on one of your own columns whose name is one of `geographicColumnWords`, needs neighborhood data enabled, like those data points.",
50008
+ "description": "How a model can be weighted: `recentHistory` settings, `directions` (on data points with `acceptsDirection`), and the scores-table `columns` a priority boost may test. A boost on a column with `needsFairLendingReview` (ZIP code, city) is allowed; the report card adds a fair-lending caveat for it. `geographicColumnWords`: words that mark one of your own columns as describing where a home is.",
49984
50009
  "properties": {
49985
50010
  "boosts": {
49986
50011
  "properties": {
@@ -50148,7 +50173,7 @@
50148
50173
  "$ref": "#/components/schemas/StudioModelOptions"
50149
50174
  },
50150
50175
  "neighborhoodDataAllowed": {
50151
- "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.",
50176
+ "description": "Deprecated: always true. Neighborhood data points (`needsFairLendingReview`), ZIP code and city boosts and directions on a place are available to every organization. What a model can never use is listed in `data.protectedCharacteristics`.",
50152
50177
  "type": "boolean"
50153
50178
  },
50154
50179
  "pricing": {
@@ -50458,7 +50483,7 @@
50458
50483
  },
50459
50484
  "type": "array"
50460
50485
  },
50461
- "boostColumns": {
50486
+ "characteristics": {
50462
50487
  "items": {
50463
50488
  "type": "string"
50464
50489
  },
@@ -50470,24 +50495,18 @@
50470
50495
  "dataPoint": {
50471
50496
  "type": "string"
50472
50497
  },
50473
- "dataPoints": {
50474
- "items": {
50475
- "type": "string"
50476
- },
50477
- "type": "array"
50478
- },
50479
- "directionRules": {
50480
- "items": {
50481
- "type": "string"
50482
- },
50483
- "type": "array"
50484
- },
50485
50498
  "entitlementKey": {
50486
50499
  "type": "string"
50487
50500
  },
50488
50501
  "examples": {
50489
50502
  "type": "number"
50490
50503
  },
50504
+ "fields": {
50505
+ "items": {
50506
+ "type": "string"
50507
+ },
50508
+ "type": "array"
50509
+ },
50491
50510
  "function": {
50492
50511
  "type": "string"
50493
50512
  },
@@ -52466,7 +52485,7 @@
52466
52485
  "info": {
52467
52486
  "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.",
52468
52487
  "title": "ModelMatch API",
52469
- "version": "3.173.0"
52488
+ "version": "3.174.0"
52470
52489
  },
52471
52490
  "openapi": "3.1.0",
52472
52491
  "paths": {
@@ -92294,7 +92313,7 @@
92294
92313
  }
92295
92314
  }
92296
92315
  },
92297
- "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
92316
+ "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead."
92298
92317
  },
92299
92318
  "401": {
92300
92319
  "content": {
@@ -92314,7 +92333,7 @@
92314
92333
  }
92315
92334
  }
92316
92335
  },
92317
- "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, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92336
+ "description": "`no_organization` — models belong to an organization; select one and try again."
92318
92337
  },
92319
92338
  "404": {
92320
92339
  "content": {
@@ -92373,7 +92392,7 @@
92373
92392
  ]
92374
92393
  },
92375
92394
  "post": {
92376
- "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`; so is a priority boost on ZIP code or city, or a direction rule on a place (`details.boostColumns`, `details.directionRules`); tell the person to ask their ModelMatch admin, or pick other data points. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Neighborhood data points, boosts or directions it carries need neighborhood data enabled like your own (or override `features` / `boosts` to leave them out). Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. 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.",
92395
+ "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 model may never use a protected characteristic — race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance — as a data point, an own column, a direction rule or a boost: a column named for one is refused with `400 protected_characteristic`, naming them in `details.fields`; nothing unlocks it. Neighborhood data points (`needsFairLendingReview`), ZIP code and city boosts and directions on a place are allowed for everyone; the report card adds a fair-lending caveat. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. 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.",
92377
92396
  "operationId": "createStudioModel",
92378
92397
  "requestBody": {
92379
92398
  "content": {
@@ -92404,7 +92423,7 @@
92404
92423
  }
92405
92424
  }
92406
92425
  },
92407
- "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
92426
+ "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead."
92408
92427
  },
92409
92428
  "401": {
92410
92429
  "content": {
@@ -92424,7 +92443,7 @@
92424
92443
  }
92425
92444
  }
92426
92445
  },
92427
- "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, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92446
+ "description": "`no_organization` — models belong to an organization; select one and try again."
92428
92447
  },
92429
92448
  "404": {
92430
92449
  "content": {
@@ -92466,16 +92485,6 @@
92466
92485
  },
92467
92486
  "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`)."
92468
92487
  },
92469
- "502": {
92470
- "content": {
92471
- "application/json": {
92472
- "schema": {
92473
- "$ref": "#/components/schemas/StudioModelError"
92474
- }
92475
- }
92476
- },
92477
- "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."
92478
- },
92479
92488
  "503": {
92480
92489
  "content": {
92481
92490
  "application/json": {
@@ -92516,7 +92525,7 @@
92516
92525
  }
92517
92526
  }
92518
92527
  },
92519
- "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
92528
+ "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead."
92520
92529
  },
92521
92530
  "401": {
92522
92531
  "content": {
@@ -92536,7 +92545,7 @@
92536
92545
  }
92537
92546
  }
92538
92547
  },
92539
- "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, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92548
+ "description": "`no_organization` — models belong to an organization; select one and try again."
92540
92549
  },
92541
92550
  "404": {
92542
92551
  "content": {
@@ -92728,7 +92737,7 @@
92728
92737
  }
92729
92738
  }
92730
92739
  },
92731
- "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
92740
+ "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead."
92732
92741
  },
92733
92742
  "401": {
92734
92743
  "content": {
@@ -92748,7 +92757,7 @@
92748
92757
  }
92749
92758
  }
92750
92759
  },
92751
- "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, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92760
+ "description": "`no_organization` — models belong to an organization; select one and try again."
92752
92761
  },
92753
92762
  "404": {
92754
92763
  "content": {
@@ -92842,7 +92851,7 @@
92842
92851
  }
92843
92852
  }
92844
92853
  },
92845
- "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
92854
+ "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead."
92846
92855
  },
92847
92856
  "401": {
92848
92857
  "content": {
@@ -92872,7 +92881,7 @@
92872
92881
  }
92873
92882
  }
92874
92883
  },
92875
- "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, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92884
+ "description": "`no_organization` — models belong to an organization; select one and try again."
92876
92885
  },
92877
92886
  "404": {
92878
92887
  "content": {
@@ -92933,7 +92942,7 @@
92933
92942
  },
92934
92943
  "/v1/studio/models/{name}/refresh": {
92935
92944
  "post": {
92936
- "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.",
92945
+ "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 model that uses a protected characteristic is never refreshed or retrained (`400 protected_characteristic`): create a new version without it. 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.",
92937
92946
  "operationId": "refreshStudioModel",
92938
92947
  "parameters": [
92939
92948
  {
@@ -92978,7 +92987,7 @@
92978
92987
  }
92979
92988
  }
92980
92989
  },
92981
- "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead."
92990
+ "description": "The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead."
92982
92991
  },
92983
92992
  "401": {
92984
92993
  "content": {
@@ -93008,7 +93017,7 @@
93008
93017
  }
93009
93018
  }
93010
93019
  },
93011
- "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, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
93020
+ "description": "`no_organization` — models belong to an organization; select one and try again."
93012
93021
  },
93013
93022
  "404": {
93014
93023
  "content": {
@@ -93050,16 +93059,6 @@
93050
93059
  },
93051
93060
  "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`)."
93052
93061
  },
93053
- "502": {
93054
- "content": {
93055
- "application/json": {
93056
- "schema": {
93057
- "$ref": "#/components/schemas/StudioModelError"
93058
- }
93059
- }
93060
- },
93061
- "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."
93062
- },
93063
93062
  "503": {
93064
93063
  "content": {
93065
93064
  "application/json": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.87.0",
3
+ "version": "3.88.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [