@model-match/api 3.83.3 → 3.84.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.
@@ -1,4 +1,4 @@
1
- import { T as client, n as createClient } from "../src-B2K7EFVL.mjs";
1
+ import { T as client, n as createClient } from "../src-ANf3s8EA.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -6553,7 +6553,7 @@ const listStudioModels = (options) => (options?.client ?? client).get({
6553
6553
  /**
6554
6554
  * Create a prediction model and start training it
6555
6555
  *
6556
- * 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.
6556
+ * 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. 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.
6557
6557
  */
6558
6558
  const createStudioModel = (options) => (options.client ?? client).post({
6559
6559
  security: [{
@@ -7962,7 +7962,7 @@ var Studio = class {
7962
7962
  /**
7963
7963
  * Create a prediction model and start training it
7964
7964
  *
7965
- * 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.
7965
+ * 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. 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.
7966
7966
  */
7967
7967
  static createStudioModel(options) {
7968
7968
  return (options.client ?? client).post({
package/openapi.json CHANGED
@@ -48464,6 +48464,13 @@
48464
48464
  "nullable": true,
48465
48465
  "type": "string"
48466
48466
  },
48467
+ "boosts": {
48468
+ "description": "The priority boosts (empty when none). When there are any, the scores table also has `priorityScore`, `priorityRank` and `priorityMultiplier`: sort by `priorityRank` for the boosted list; `score` and `rank` stay the model's own.",
48469
+ "items": {
48470
+ "$ref": "#/components/schemas/StudioModelBoost"
48471
+ },
48472
+ "type": "array"
48473
+ },
48467
48474
  "card": {
48468
48475
  "additionalProperties": {
48469
48476
  "nullable": true
@@ -48557,7 +48564,7 @@
48557
48564
  "nullable": true,
48558
48565
  "properties": {
48559
48566
  "dateColumn": {
48560
- "description": "The date of each row: the day you would have wanted the prediction (for example the day the lead came in). It must be a date column. Only what was on record before it is used to learn.",
48567
+ "description": "Each row's date (a date column): the day you would have wanted the prediction. Only earlier records are used.",
48561
48568
  "example": "lead_date",
48562
48569
  "maxLength": 100,
48563
48570
  "minLength": 1,
@@ -48567,14 +48574,14 @@
48567
48574
  "$ref": "#/components/schemas/StudioModelKey"
48568
48575
  },
48569
48576
  "labelColumn": {
48570
- "description": "The column that says what happened. Two values: won / lost, yes / no, true / false, 1 / 0.",
48577
+ "description": "What happened: two values (won/lost, yes/no, 1/0).",
48571
48578
  "example": "result",
48572
48579
  "maxLength": 100,
48573
48580
  "minLength": 1,
48574
48581
  "type": "string"
48575
48582
  },
48576
48583
  "positiveValues": {
48577
- "description": "Which values of `labelColumn` mean \"it happened\", when they are not plainly won / yes / true / 1.",
48584
+ "description": "Values of `labelColumn` that mean it happened, when not plainly won/yes/true/1.",
48578
48585
  "example": [
48579
48586
  "Closed - Funded"
48580
48587
  ],
@@ -48588,7 +48595,7 @@
48588
48595
  "type": "array"
48589
48596
  },
48590
48597
  "table": {
48591
- "description": "Your uploaded table with one row per case you know the outcome of.",
48598
+ "description": "Your uploaded table: one row per known case.",
48592
48599
  "example": "upload_my_deals",
48593
48600
  "maxLength": 100,
48594
48601
  "minLength": 1,
@@ -48984,6 +48991,15 @@
48984
48991
  ],
48985
48992
  "type": "object"
48986
48993
  },
48994
+ "recencyWeighting": {
48995
+ "description": "Favor recent past cases while learning: `moderate` (weight halves per 24 months back) or `strong` (per 12). Default `off`.",
48996
+ "enum": [
48997
+ "off",
48998
+ "moderate",
48999
+ "strong"
49000
+ ],
49001
+ "type": "string"
49002
+ },
48987
49003
  "refresh": {
48988
49004
  "description": "A refresh in progress (a re-score, or a retrain of a model that has a version: `progress` has its steps), or why the last one produced nothing (the earlier scores stay).",
48989
49005
  "nullable": true,
@@ -49024,7 +49040,7 @@
49024
49040
  "type": "object"
49025
49041
  },
49026
49042
  "schedule": {
49027
- "description": "How often the scores are refreshed with the latest data: `manual` (only when you ask), `weekly` or `monthly`.",
49043
+ "description": "How often the scores are refreshed: `manual` (when you ask), `weekly` or `monthly`.",
49028
49044
  "enum": [
49029
49045
  "manual",
49030
49046
  "weekly",
@@ -49118,19 +49134,78 @@
49118
49134
  ],
49119
49135
  "type": "object"
49120
49136
  },
49137
+ "StudioModelBoost": {
49138
+ "additionalProperties": false,
49139
+ "properties": {
49140
+ "multiply": {
49141
+ "maximum": 3,
49142
+ "minimum": 0.5,
49143
+ "type": "number"
49144
+ },
49145
+ "when": {
49146
+ "additionalProperties": false,
49147
+ "properties": {
49148
+ "column": {
49149
+ "type": "string"
49150
+ },
49151
+ "gte": {
49152
+ "type": "number"
49153
+ },
49154
+ "in": {
49155
+ "items": {
49156
+ "type": "string"
49157
+ },
49158
+ "type": "array"
49159
+ },
49160
+ "lte": {
49161
+ "type": "number"
49162
+ },
49163
+ "notIn": {
49164
+ "items": {
49165
+ "type": "string"
49166
+ },
49167
+ "type": "array"
49168
+ },
49169
+ "onOrAfter": {
49170
+ "type": "string"
49171
+ },
49172
+ "onOrBefore": {
49173
+ "type": "string"
49174
+ }
49175
+ },
49176
+ "required": [
49177
+ "column"
49178
+ ],
49179
+ "type": "object"
49180
+ }
49181
+ },
49182
+ "required": [
49183
+ "when",
49184
+ "multiply"
49185
+ ],
49186
+ "type": "object"
49187
+ },
49121
49188
  "StudioModelCreate": {
49122
49189
  "additionalProperties": false,
49123
49190
  "properties": {
49124
49191
  "asOf": {
49125
- "description": "Score as of this date (YYYY-MM-DD), using only records before it. Leave it out to score as of today, each time the scores are refreshed.",
49192
+ "description": "Score as of this date (YYYY-MM-DD), from records before it. Omit for today, at every refresh.",
49126
49193
  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
49127
49194
  "type": "string"
49128
49195
  },
49129
49196
  "basedOn": {
49130
- "description": "Start from another of your models: anything this request leaves out is taken from it, and the report card compares the two. The other model is left as it is.",
49197
+ "description": "Another of your models to start from: what this request omits is taken from it; the card compares the two.",
49131
49198
  "pattern": "^[a-z][a-z0-9_]{2,39}$",
49132
49199
  "type": "string"
49133
49200
  },
49201
+ "boosts": {
49202
+ "description": "After the model: matching homes' score × `multiply` is `priorityScore`; `score` and the card are unchanged. Text: `in`/`notIn`; numbers: `gte`/`lte`; dates: `onOrAfter`/`onOrBefore`.",
49203
+ "items": {
49204
+ "$ref": "#/components/schemas/StudioModelBoost"
49205
+ },
49206
+ "maxItems": 5,
49207
+ "type": "array"
49208
+ },
49134
49209
  "description": {
49135
49210
  "description": "What the model is for, in a sentence.",
49136
49211
  "maxLength": 500,
@@ -49157,7 +49232,7 @@
49157
49232
  "type": "string"
49158
49233
  },
49159
49234
  "outcome": {
49160
- "description": "What to predict: an outcome id from getStudioModelOptions. Leave it out when training on your own outcomes (`outcomeSource`).",
49235
+ "description": "What to predict: an outcome id from getStudioModelOptions. Omit with `outcomeSource`.",
49161
49236
  "example": "new_mortgage",
49162
49237
  "maxLength": 100,
49163
49238
  "minLength": 1,
@@ -49169,12 +49244,21 @@
49169
49244
  "population": {
49170
49245
  "$ref": "#/components/schemas/StudioModelPopulation"
49171
49246
  },
49247
+ "recencyWeighting": {
49248
+ "description": "Favor recent past cases while learning: `moderate` (weight halves per 24 months back) or `strong` (per 12). Default `off`.",
49249
+ "enum": [
49250
+ "off",
49251
+ "moderate",
49252
+ "strong"
49253
+ ],
49254
+ "type": "string"
49255
+ },
49172
49256
  "replace": {
49173
- "description": "Train a new version of the existing model of this name, for example with different data points. The new report card says what changed; the old scores are taken down while it trains.",
49257
+ "description": "A new version of the model of this name (say, other picks): the card says what changed; the old scores come down while it trains.",
49174
49258
  "type": "boolean"
49175
49259
  },
49176
49260
  "schedule": {
49177
- "description": "How often the scores are refreshed with the latest data: `manual` (only when you ask), `weekly` or `monthly`.",
49261
+ "description": "How often the scores are refreshed: `manual` (when you ask), `weekly` or `monthly`.",
49178
49262
  "enum": [
49179
49263
  "manual",
49180
49264
  "weekly",
@@ -49244,12 +49328,20 @@
49244
49328
  "additionalProperties": false,
49245
49329
  "properties": {
49246
49330
  "column": {
49247
- "description": "For `upload`: the column. It must have been known on each row's date. The outcome column, anything computed from it, and anything recorded after the outcome are refused.",
49331
+ "description": "For `upload`: a column known on each row's date, not recorded after the outcome.",
49248
49332
  "example": "lead_source",
49249
49333
  "maxLength": 100,
49250
49334
  "minLength": 1,
49251
49335
  "type": "string"
49252
49336
  },
49337
+ "direction": {
49338
+ "description": "`increasing`: a higher value never lowers the score; `decreasing`: never raises it. Numbers, dates only.",
49339
+ "enum": [
49340
+ "increasing",
49341
+ "decreasing"
49342
+ ],
49343
+ "type": "string"
49344
+ },
49253
49345
  "id": {
49254
49346
  "description": "For `market`: the data point's id.",
49255
49347
  "example": "rate_incentive",
@@ -49258,13 +49350,13 @@
49258
49350
  "type": "string"
49259
49351
  },
49260
49352
  "knownAt": {
49261
- "description": "For `upload`, optional: a date column of the same row saying when this value became known. A value known after the row's date is ignored for that row.",
49353
+ "description": "For `upload`, optional: a date column saying when the value became known.",
49262
49354
  "maxLength": 100,
49263
49355
  "minLength": 1,
49264
49356
  "type": "string"
49265
49357
  },
49266
49358
  "source": {
49267
- "description": "`market` — one of the data points getStudioModelOptions lists (give `id`). `upload` — a column of your own uploaded outcomes table (give `table` and `column`).",
49359
+ "description": "`market` (give `id`) or `upload` (a column of your outcomes table: `table`, `column`).",
49268
49360
  "enum": [
49269
49361
  "market",
49270
49362
  "upload"
@@ -49272,7 +49364,7 @@
49272
49364
  "type": "string"
49273
49365
  },
49274
49366
  "table": {
49275
- "description": "For `upload`: the uploaded table, which must be the one the outcomes come from.",
49367
+ "description": "For `upload`: the outcomes table.",
49276
49368
  "example": "upload_my_deals",
49277
49369
  "maxLength": 100,
49278
49370
  "minLength": 1,
@@ -49313,12 +49405,12 @@
49313
49405
  "StudioModelError": {
49314
49406
  "properties": {
49315
49407
  "code": {
49316
- "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`.",
49408
+ "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`, `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`.",
49317
49409
  "example": "match_rate_too_low",
49318
49410
  "type": "string"
49319
49411
  },
49320
49412
  "details": {
49321
- "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.",
49413
+ "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.",
49322
49414
  "properties": {
49323
49415
  "availableTables": {
49324
49416
  "items": {
@@ -49326,6 +49418,12 @@
49326
49418
  },
49327
49419
  "type": "array"
49328
49420
  },
49421
+ "boostColumns": {
49422
+ "items": {
49423
+ "type": "string"
49424
+ },
49425
+ "type": "array"
49426
+ },
49329
49427
  "column": {
49330
49428
  "type": "string"
49331
49429
  },
@@ -49338,6 +49436,12 @@
49338
49436
  },
49339
49437
  "type": "array"
49340
49438
  },
49439
+ "directionRules": {
49440
+ "items": {
49441
+ "type": "string"
49442
+ },
49443
+ "type": "array"
49444
+ },
49341
49445
  "entitlementKey": {
49342
49446
  "type": "string"
49343
49447
  },
@@ -49412,7 +49516,7 @@
49412
49516
  "type": "array"
49413
49517
  },
49414
49518
  "kind": {
49415
- "description": "How rows are matched to homes: `property_address` (two columns: `address_key`, the cleaned address the upload added, then the ZIP code column), `property_id` or `loan_id` (one column holding that market id).",
49519
+ "description": "`property_address` (`address_key`, ZIP), `property_id` or `loan_id`.",
49416
49520
  "example": "property_address",
49417
49521
  "maxLength": 40,
49418
49522
  "minLength": 1,
@@ -49565,6 +49669,10 @@
49565
49669
  "dataPoints": {
49566
49670
  "items": {
49567
49671
  "properties": {
49672
+ "acceptsDirection": {
49673
+ "description": "True when a direction rule may be set on it (numbers).",
49674
+ "type": "boolean"
49675
+ },
49568
49676
  "description": {
49569
49677
  "type": "string"
49570
49678
  },
@@ -49772,6 +49880,158 @@
49772
49880
  "keyKinds"
49773
49881
  ],
49774
49882
  "type": "object"
49883
+ },
49884
+ "weighting": {
49885
+ "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.",
49886
+ "properties": {
49887
+ "boosts": {
49888
+ "properties": {
49889
+ "columns": {
49890
+ "items": {
49891
+ "properties": {
49892
+ "column": {
49893
+ "type": "string"
49894
+ },
49895
+ "label": {
49896
+ "type": "string"
49897
+ },
49898
+ "needsFairLendingReview": {
49899
+ "type": "boolean"
49900
+ },
49901
+ "operators": {
49902
+ "items": {
49903
+ "type": "string"
49904
+ },
49905
+ "type": "array"
49906
+ },
49907
+ "type": {
49908
+ "type": "string"
49909
+ }
49910
+ },
49911
+ "required": [
49912
+ "column",
49913
+ "label",
49914
+ "type",
49915
+ "needsFairLendingReview",
49916
+ "operators"
49917
+ ],
49918
+ "type": "object"
49919
+ },
49920
+ "type": "array"
49921
+ },
49922
+ "description": {
49923
+ "type": "string"
49924
+ },
49925
+ "maxBoostValues": {
49926
+ "type": "number"
49927
+ },
49928
+ "maxBoosts": {
49929
+ "type": "number"
49930
+ },
49931
+ "maxMultiply": {
49932
+ "type": "number"
49933
+ },
49934
+ "minMultiply": {
49935
+ "type": "number"
49936
+ }
49937
+ },
49938
+ "required": [
49939
+ "description",
49940
+ "columns",
49941
+ "maxBoosts",
49942
+ "minMultiply",
49943
+ "maxMultiply",
49944
+ "maxBoostValues"
49945
+ ],
49946
+ "type": "object"
49947
+ },
49948
+ "directions": {
49949
+ "properties": {
49950
+ "description": {
49951
+ "type": "string"
49952
+ },
49953
+ "values": {
49954
+ "items": {
49955
+ "properties": {
49956
+ "description": {
49957
+ "type": "string"
49958
+ },
49959
+ "id": {
49960
+ "type": "string"
49961
+ },
49962
+ "label": {
49963
+ "type": "string"
49964
+ }
49965
+ },
49966
+ "required": [
49967
+ "id",
49968
+ "label",
49969
+ "description"
49970
+ ],
49971
+ "type": "object"
49972
+ },
49973
+ "type": "array"
49974
+ }
49975
+ },
49976
+ "required": [
49977
+ "description",
49978
+ "values"
49979
+ ],
49980
+ "type": "object"
49981
+ },
49982
+ "geographicColumnWords": {
49983
+ "items": {
49984
+ "type": "string"
49985
+ },
49986
+ "type": "array"
49987
+ },
49988
+ "recentHistory": {
49989
+ "properties": {
49990
+ "default": {
49991
+ "type": "string"
49992
+ },
49993
+ "description": {
49994
+ "type": "string"
49995
+ },
49996
+ "settings": {
49997
+ "items": {
49998
+ "properties": {
49999
+ "halfLifeMonths": {
50000
+ "nullable": true,
50001
+ "type": "number"
50002
+ },
50003
+ "id": {
50004
+ "type": "string"
50005
+ },
50006
+ "label": {
50007
+ "type": "string"
50008
+ }
50009
+ },
50010
+ "required": [
50011
+ "id",
50012
+ "label",
50013
+ "halfLifeMonths"
50014
+ ],
50015
+ "type": "object"
50016
+ },
50017
+ "type": "array"
50018
+ }
50019
+ },
50020
+ "required": [
50021
+ "description",
50022
+ "settings",
50023
+ "default"
50024
+ ],
50025
+ "type": "object"
50026
+ }
50027
+ },
50028
+ "required": [
50029
+ "recentHistory",
50030
+ "directions",
50031
+ "boosts",
50032
+ "geographicColumnWords"
50033
+ ],
50034
+ "type": "object"
49775
50035
  }
49776
50036
  },
49777
50037
  "required": [
@@ -49824,7 +50084,7 @@
49824
50084
  "additionalProperties": false,
49825
50085
  "properties": {
49826
50086
  "dateColumn": {
49827
- "description": "The date of each row: the day you would have wanted the prediction (for example the day the lead came in). It must be a date column. Only what was on record before it is used to learn.",
50087
+ "description": "Each row's date (a date column): the day you would have wanted the prediction. Only earlier records are used.",
49828
50088
  "example": "lead_date",
49829
50089
  "maxLength": 100,
49830
50090
  "minLength": 1,
@@ -49834,14 +50094,14 @@
49834
50094
  "$ref": "#/components/schemas/StudioModelKey"
49835
50095
  },
49836
50096
  "labelColumn": {
49837
- "description": "The column that says what happened. Two values: won / lost, yes / no, true / false, 1 / 0.",
50097
+ "description": "What happened: two values (won/lost, yes/no, 1/0).",
49838
50098
  "example": "result",
49839
50099
  "maxLength": 100,
49840
50100
  "minLength": 1,
49841
50101
  "type": "string"
49842
50102
  },
49843
50103
  "positiveValues": {
49844
- "description": "Which values of `labelColumn` mean \"it happened\", when they are not plainly won / yes / true / 1.",
50104
+ "description": "Values of `labelColumn` that mean it happened, when not plainly won/yes/true/1.",
49845
50105
  "example": [
49846
50106
  "Closed - Funded"
49847
50107
  ],
@@ -49855,7 +50115,7 @@
49855
50115
  "type": "array"
49856
50116
  },
49857
50117
  "table": {
49858
- "description": "Your uploaded table with one row per case you know the outcome of.",
50118
+ "description": "Your uploaded table: one row per known case.",
49859
50119
  "example": "upload_my_deals",
49860
50120
  "maxLength": 100,
49861
50121
  "minLength": 1,
@@ -49909,7 +50169,7 @@
49909
50169
  "$ref": "#/components/schemas/StudioModelKey"
49910
50170
  },
49911
50171
  "kind": {
49912
- "description": "Who gets scored. `homes` — every home in the state with a recent mortgage. `company_book` — the homes one mortgage company has financed (give `companyNmlsId`). `uploaded_list` — the homes in one of your uploaded tables (give `table` and `key`).",
50172
+ "description": "Who is scored: `homes` (recent mortgage, in the state), `company_book` (`companyNmlsId`) or `uploaded_list` (`table`, `key`).",
49913
50173
  "enum": [
49914
50174
  "homes",
49915
50175
  "company_book",
@@ -51682,7 +51942,7 @@
51682
51942
  "info": {
51683
51943
  "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.",
51684
51944
  "title": "ModelMatch API",
51685
- "version": "3.167.3"
51945
+ "version": "3.168.0"
51686
51946
  },
51687
51947
  "openapi": "3.1.0",
51688
51948
  "paths": {
@@ -91530,7 +91790,7 @@
91530
91790
  }
91531
91791
  }
91532
91792
  },
91533
- "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."
91793
+ "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."
91534
91794
  },
91535
91795
  "404": {
91536
91796
  "content": {
@@ -91589,7 +91849,7 @@
91589
91849
  ]
91590
91850
  },
91591
91851
  "post": {
91592
- "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.",
91852
+ "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. 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.",
91593
91853
  "operationId": "createStudioModel",
91594
91854
  "requestBody": {
91595
91855
  "content": {
@@ -91640,7 +91900,7 @@
91640
91900
  }
91641
91901
  }
91642
91902
  },
91643
- "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."
91903
+ "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."
91644
91904
  },
91645
91905
  "404": {
91646
91906
  "content": {
@@ -91752,7 +92012,7 @@
91752
92012
  }
91753
92013
  }
91754
92014
  },
91755
- "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."
92015
+ "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."
91756
92016
  },
91757
92017
  "404": {
91758
92018
  "content": {
@@ -91964,7 +92224,7 @@
91964
92224
  }
91965
92225
  }
91966
92226
  },
91967
- "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."
92227
+ "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."
91968
92228
  },
91969
92229
  "404": {
91970
92230
  "content": {
@@ -92088,7 +92348,7 @@
92088
92348
  }
92089
92349
  }
92090
92350
  },
92091
- "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."
92351
+ "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."
92092
92352
  },
92093
92353
  "404": {
92094
92354
  "content": {
@@ -92224,7 +92484,7 @@
92224
92484
  }
92225
92485
  }
92226
92486
  },
92227
- "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."
92487
+ "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."
92228
92488
  },
92229
92489
  "404": {
92230
92490
  "content": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.83.3",
3
+ "version": "3.84.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [