@model-match/api 3.92.0 → 3.94.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
@@ -48957,6 +48957,13 @@
48957
48957
  "description": "What the model predicts, in plain words. Show a person this, `populationLabel` and `featureLabels`; `outcome`, `population` and `features` are the request's own values, for programs.",
48958
48958
  "type": "string"
48959
48959
  },
48960
+ "outcomeOptions": {
48961
+ "additionalProperties": {
48962
+ "type": "number"
48963
+ },
48964
+ "description": "The outcome's settings the request picked; absent when each is at its default.",
48965
+ "type": "object"
48966
+ },
48960
48967
  "outcomeSource": {
48961
48968
  "additionalProperties": false,
48962
48969
  "nullable": true,
@@ -49531,7 +49538,7 @@
49531
49538
  "type": "string"
49532
49539
  },
49533
49540
  "subject": {
49534
- "description": "Who or what the model scores: `home`, or `loan_officer` (a `subjects[].id` from getStudioModelOptions).",
49541
+ "description": "Who or what the model scores: `home`, `loan_officer`, `agent` or `agent_lo_pair` (a `subjects[].id` from getStudioModelOptions).",
49535
49542
  "type": "string"
49536
49543
  },
49537
49544
  "table": {
@@ -49662,7 +49669,7 @@
49662
49669
  "type": "array"
49663
49670
  },
49664
49671
  "horizonMonths": {
49665
- "description": "How far ahead to predict a market outcome, in months. Default 12.",
49672
+ "description": "How far ahead to predict a market outcome, in months. Default: the outcome's `defaultHorizonMonths` (12 for most). An outcome with `horizons` in getStudioModelOptions takes only those.",
49666
49673
  "maximum": 24,
49667
49674
  "minimum": 1,
49668
49675
  "type": "integer"
@@ -49680,6 +49687,16 @@
49680
49687
  "minLength": 1,
49681
49688
  "type": "string"
49682
49689
  },
49690
+ "outcomeOptions": {
49691
+ "additionalProperties": {
49692
+ "type": "number"
49693
+ },
49694
+ "description": "Settings of the outcome, each one of the values its `outcomes[].options` lists, for example `{\"factor\": 0.75}` for an agent who loses a quarter of their share instead of half. Leave it out for the defaults. Market outcomes only.",
49695
+ "example": {
49696
+ "factor": 0.75
49697
+ },
49698
+ "type": "object"
49699
+ },
49683
49700
  "outcomeSource": {
49684
49701
  "$ref": "#/components/schemas/StudioModelOutcomeSource"
49685
49702
  },
@@ -49768,7 +49785,7 @@
49768
49785
  "type": "object"
49769
49786
  },
49770
49787
  "subject": {
49771
- "description": "Who or what the model scores: `home` (default) or `loan_officer`, a `subjects[].id` from getStudioModelOptions. Each subject has its own outcomes, populations, data points and upload keys.",
49788
+ "description": "Who or what the model scores: `home` (default), `loan_officer`, `agent` or `agent_lo_pair` (an agent and a loan officer together), a `subjects[].id` from getStudioModelOptions (which lists only the subjects available). Each subject has its own outcomes, populations, data points and upload keys.",
49772
49789
  "example": "loan_officer",
49773
49790
  "maxLength": 40,
49774
49791
  "minLength": 1,
@@ -50001,7 +50018,7 @@
50001
50018
  "type": "array"
50002
50019
  },
50003
50020
  "kind": {
50004
- "description": "Homes: `property_address` (`address_key`, ZIP), `property_id` or `loan_id`. Loan officers: `nmls_id` (the NMLS id column).",
50021
+ "description": "Homes: `property_address` (`address_key`, ZIP), `property_id` or `loan_id`. Loan officers: `nmls_id` (the NMLS id column). Agents: `agent_id` (the agent id column). Agent and loan officer pairs: `agent_lo_pair` (two columns: the agent id, then the NMLS id). `subjects[].keyKinds` in getStudioModelOptions lists each subject's.",
50005
50022
  "example": "property_address",
50006
50023
  "maxLength": 40,
50007
50024
  "minLength": 1,
@@ -50097,12 +50114,48 @@
50097
50114
  "description": {
50098
50115
  "type": "string"
50099
50116
  },
50117
+ "horizons": {
50118
+ "description": "The `horizonMonths` this outcome takes, the default first. Absent: any from `limits.minHorizonMonths` to `limits.maxHorizonMonths`.",
50119
+ "items": {
50120
+ "type": "number"
50121
+ },
50122
+ "type": "array"
50123
+ },
50100
50124
  "id": {
50101
50125
  "type": "string"
50102
50126
  },
50103
50127
  "label": {
50104
50128
  "type": "string"
50105
50129
  },
50130
+ "options": {
50131
+ "additionalProperties": {
50132
+ "properties": {
50133
+ "default": {
50134
+ "type": "number"
50135
+ },
50136
+ "values": {
50137
+ "items": {
50138
+ "type": "number"
50139
+ },
50140
+ "type": "array"
50141
+ }
50142
+ },
50143
+ "required": [
50144
+ "default",
50145
+ "values"
50146
+ ],
50147
+ "type": "object"
50148
+ },
50149
+ "description": "Settings the person may pick (`outcomeOptions`), each a closed list with its default: a threshold or a factor. Absent: none.",
50150
+ "type": "object"
50151
+ },
50152
+ "populations": {
50153
+ "description": "The population kinds this outcome can be predicted for (a new pair only among pairs that have not dealt). Absent: every population of its subject.",
50154
+ "items": {
50155
+ "type": "string"
50156
+ },
50157
+ "type": "array"
50158
+ },
50106
50159
  "question": {
50107
50160
  "type": "string"
50108
50161
  }
@@ -50222,7 +50275,7 @@
50222
50275
  "type": "object"
50223
50276
  },
50224
50277
  "subjects": {
50225
- "description": "What can be scored: `home` (the default; its lists are also the top-level `outcomes`, `populations` and `themes`) and `loan_officer`. Each subject has its own outcomes, populations, data points, upload keys and scope forms; a model uses one subject's.",
50278
+ "description": "What can be scored: `home` (the default; its lists are also the top-level `outcomes`, `populations` and `themes`), `loan_officer`, `agent` and `agent_lo_pair`. Only subjects available to build are listed. Each subject has its own outcomes, populations, data points, upload keys and scope forms; a model uses one subject's.",
50226
50279
  "items": {
50227
50280
  "properties": {
50228
50281
  "boostColumns": {
@@ -50268,7 +50321,7 @@
50268
50321
  "type": "object"
50269
50322
  },
50270
50323
  "id": {
50271
- "description": "The `subject` to send: `home` or `loan_officer`.",
50324
+ "description": "The `subject` to send: `home`, `loan_officer`, `agent` or `agent_lo_pair`.",
50272
50325
  "type": "string"
50273
50326
  },
50274
50327
  "keyKinds": {
@@ -50331,12 +50384,48 @@
50331
50384
  "description": {
50332
50385
  "type": "string"
50333
50386
  },
50387
+ "horizons": {
50388
+ "description": "The `horizonMonths` this outcome takes, the default first. Absent: any from `limits.minHorizonMonths` to `limits.maxHorizonMonths`.",
50389
+ "items": {
50390
+ "type": "number"
50391
+ },
50392
+ "type": "array"
50393
+ },
50334
50394
  "id": {
50335
50395
  "type": "string"
50336
50396
  },
50337
50397
  "label": {
50338
50398
  "type": "string"
50339
50399
  },
50400
+ "options": {
50401
+ "additionalProperties": {
50402
+ "properties": {
50403
+ "default": {
50404
+ "type": "number"
50405
+ },
50406
+ "values": {
50407
+ "items": {
50408
+ "type": "number"
50409
+ },
50410
+ "type": "array"
50411
+ }
50412
+ },
50413
+ "required": [
50414
+ "default",
50415
+ "values"
50416
+ ],
50417
+ "type": "object"
50418
+ },
50419
+ "description": "Settings the person may pick (`outcomeOptions`), each a closed list with its default: a threshold or a factor. Absent: none.",
50420
+ "type": "object"
50421
+ },
50422
+ "populations": {
50423
+ "description": "The population kinds this outcome can be predicted for (a new pair only among pairs that have not dealt). Absent: every population of its subject.",
50424
+ "items": {
50425
+ "type": "string"
50426
+ },
50427
+ "type": "array"
50428
+ },
50340
50429
  "question": {
50341
50430
  "type": "string"
50342
50431
  }
@@ -50551,6 +50640,55 @@
50551
50640
  "basis": {
50552
50641
  "type": "string"
50553
50642
  },
50643
+ "bySubject": {
50644
+ "description": "Models of people (loan officers, agents, pairs) take about the same time wherever they look: a range for training and for a refresh, by subject.",
50645
+ "items": {
50646
+ "properties": {
50647
+ "expectedMinutes": {
50648
+ "description": "A range of minutes, `low` to `high`. An estimate from earlier runs of the same size, not a promise: say it as a range (\"about 13 to 23 minutes\").",
50649
+ "properties": {
50650
+ "high": {
50651
+ "type": "number"
50652
+ },
50653
+ "low": {
50654
+ "type": "number"
50655
+ }
50656
+ },
50657
+ "required": [
50658
+ "low",
50659
+ "high"
50660
+ ],
50661
+ "type": "object"
50662
+ },
50663
+ "refreshMinutes": {
50664
+ "description": "A range of minutes, `low` to `high`. An estimate from earlier runs of the same size, not a promise: say it as a range (\"about 13 to 23 minutes\").",
50665
+ "properties": {
50666
+ "high": {
50667
+ "type": "number"
50668
+ },
50669
+ "low": {
50670
+ "type": "number"
50671
+ }
50672
+ },
50673
+ "required": [
50674
+ "low",
50675
+ "high"
50676
+ ],
50677
+ "type": "object"
50678
+ },
50679
+ "subject": {
50680
+ "type": "string"
50681
+ }
50682
+ },
50683
+ "required": [
50684
+ "subject",
50685
+ "expectedMinutes",
50686
+ "refreshMinutes"
50687
+ ],
50688
+ "type": "object"
50689
+ },
50690
+ "type": "array"
50691
+ },
50554
50692
  "note": {
50555
50693
  "type": "string"
50556
50694
  },
@@ -51050,13 +51188,19 @@
51050
51188
  "$ref": "#/components/schemas/StudioModelKey"
51051
51189
  },
51052
51190
  "kind": {
51053
- "description": "Who is scored. Homes: `homes` (recent mortgage, in the scope), `company_book` (`companyNmlsId`) or `uploaded_list` (`table`, `key`). Loan officers: `loan_officers` (active in the scope), `company_loan_officers` (`companyNmlsId`) or `uploaded_list` (key `nmls_id`).",
51191
+ "description": "Who is scored. Homes: `homes` (recent mortgage, in the scope), `company_book` (`companyNmlsId`) or `uploaded_list` (`table`, `key`). Loan officers: `loan_officers` (active in the scope), `company_loan_officers` (`companyNmlsId`) or `uploaded_list` (key `nmls_id`). Agents: `agents` (active in the scope), `agents_of_company` (agents whose clients took a mortgage from one company's loan officers: `companyNmlsId`) or `uploaded_list` (key `agent_id`). Agent and loan officer pairs: `agent_lo_pairs` (pairs with past deals), `company_agent_lo_pairs` (one company's pairs: `companyNmlsId`), `agent_lo_candidates` / `lo_agent_candidates` (`companyNmlsId`: pairs that have not dealt yet) or `uploaded_list` (key `agent_lo_pair`). Some outcomes take only some populations (`outcomes[].populations` in getStudioModelOptions).",
51054
51192
  "enum": [
51055
51193
  "homes",
51056
51194
  "company_book",
51057
51195
  "uploaded_list",
51058
51196
  "loan_officers",
51059
- "company_loan_officers"
51197
+ "company_loan_officers",
51198
+ "agents",
51199
+ "agents_of_company",
51200
+ "agent_lo_pairs",
51201
+ "company_agent_lo_pairs",
51202
+ "agent_lo_candidates",
51203
+ "lo_agent_candidates"
51060
51204
  ],
51061
51205
  "type": "string"
51062
51206
  },
@@ -53245,7 +53389,7 @@
53245
53389
  "info": {
53246
53390
  "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.",
53247
53391
  "title": "ModelMatch API",
53248
- "version": "3.179.0"
53392
+ "version": "3.180.0"
53249
53393
  },
53250
53394
  "openapi": "3.1.0",
53251
53395
  "paths": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.92.0",
3
+ "version": "3.94.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [