@model-match/api 3.80.1 → 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
@@ -47430,6 +47430,18 @@
47430
47430
  "nullable": true,
47431
47431
  "type": "string"
47432
47432
  },
47433
+ "notify": {
47434
+ "additionalProperties": false,
47435
+ "properties": {
47436
+ "email": {
47437
+ "type": "boolean"
47438
+ }
47439
+ },
47440
+ "required": [
47441
+ "email"
47442
+ ],
47443
+ "type": "object"
47444
+ },
47433
47445
  "schedule": {
47434
47446
  "enum": [
47435
47447
  "manual",
@@ -47785,7 +47797,7 @@
47785
47797
  "additionalProperties": false,
47786
47798
  "properties": {
47787
47799
  "alerts": {
47788
- "description": "Changes between one run and the next worth flagging. A rule that matches is recorded on the run and returned with the job; nothing is sent yet.",
47800
+ "description": "Changes between one run and the next worth flagging. A match is recorded on the run and, on a scheduled run, emailed to the job's creator.",
47789
47801
  "items": {
47790
47802
  "properties": {
47791
47803
  "column": {
@@ -47844,6 +47856,18 @@
47844
47856
  "pattern": "^[a-z][a-z0-9_]{0,62}$",
47845
47857
  "type": "string"
47846
47858
  },
47859
+ "notify": {
47860
+ "additionalProperties": false,
47861
+ "properties": {
47862
+ "email": {
47863
+ "type": "boolean"
47864
+ }
47865
+ },
47866
+ "required": [
47867
+ "email"
47868
+ ],
47869
+ "type": "object"
47870
+ },
47847
47871
  "schedule": {
47848
47872
  "description": "`manual` — runs only when asked. `daily` — about every 24 hours. `weekly` — every 7 days. Counted from when the job is saved.",
47849
47873
  "enum": [
@@ -48050,6 +48074,36 @@
48050
48074
  ],
48051
48075
  "type": "object"
48052
48076
  },
48077
+ "delivery": {
48078
+ "description": "The email about `alerts`. Only a scheduled run where an alert matched has one.",
48079
+ "properties": {
48080
+ "at": {
48081
+ "description": "When it last changed.",
48082
+ "type": "string"
48083
+ },
48084
+ "email": {
48085
+ "description": "`pending` — waiting for the next scheduler tick. `sent` — emailed. `inbox` — in the creator's notifications, but their email for these is off. `off` — the job's `notify.email` is false. `skipped` — nobody to send to (`reason`). `expired` — not sent within a day. `failed` — could not be confirmed sent; never retried.",
48086
+ "enum": [
48087
+ "pending",
48088
+ "sent",
48089
+ "inbox",
48090
+ "off",
48091
+ "skipped",
48092
+ "expired",
48093
+ "failed"
48094
+ ],
48095
+ "type": "string"
48096
+ },
48097
+ "reason": {
48098
+ "type": "string"
48099
+ }
48100
+ },
48101
+ "required": [
48102
+ "email",
48103
+ "at"
48104
+ ],
48105
+ "type": "object"
48106
+ },
48053
48107
  "elapsedMs": {
48054
48108
  "type": "number"
48055
48109
  },
@@ -48169,6 +48223,27 @@
48169
48223
  ],
48170
48224
  "type": "object"
48171
48225
  },
48226
+ "StudioJobUpdate": {
48227
+ "additionalProperties": false,
48228
+ "properties": {
48229
+ "notify": {
48230
+ "additionalProperties": false,
48231
+ "properties": {
48232
+ "email": {
48233
+ "type": "boolean"
48234
+ }
48235
+ },
48236
+ "required": [
48237
+ "email"
48238
+ ],
48239
+ "type": "object"
48240
+ }
48241
+ },
48242
+ "required": [
48243
+ "notify"
48244
+ ],
48245
+ "type": "object"
48246
+ },
48172
48247
  "StudioModel": {
48173
48248
  "properties": {
48174
48249
  "asOf": {
@@ -48179,7 +48254,7 @@
48179
48254
  "additionalProperties": {
48180
48255
  "nullable": true
48181
48256
  },
48182
- "description": "The report card (`ready` and `refused`). Read it to the person as it is written; do not round it up. Show the sentences and the fields named `label`, `…Label`, `sentence`, `detail`, `reason`, `summary` and `note`: they are written in plain words. The fields named `id`, `code`, `verdict`, `better`, `kind`, `table` and `column`, and everything under `technical` and `details`, are for programs: never show them to a person (say `verdictLabel` \"helped a little\", not `verdict` `helped_a_little`). `headline` — one sentence. `outcome.label` — what it predicts. `learnedFrom` — how many past cases and over what dates, and the later cases it was tested on; for a model on the person's own outcomes, `learnedFrom.funnel` — the rows in their file, then how many had a date and an outcome, matched a home, had history before their date and were used, each with the reason rows were dropped (`funnel.sentence` says it in one line). `lift.top10` (and `lift.top1` on large tests) — `modelPer100`, `randomPer100`, `bestSimpleRulePer100` and a ready-made `sentence`. `checks` — three, each `passed` true or false, with a `label` and a `detail`: beats the best simple rule, finds nothing when the outcomes are shuffled, holds up across time periods. `dataPoints.ranking` — each data point's `label`, its share, a `verdictLabel` and a `sentence`, and `dataPoints.summary`. `comparison` — the person's picks against every available data point (`sentence`, `betterLabel`) and `worthAdding`. `changeFromPrevious.sentence` — what changed since the version it replaced or was based on. `calibration.calibrated` — only when true may a home's estimated chance be called a chance; otherwise scores are a ranking; `calibration.note` says it. `caution` — when present, say it first. `caveats` — say them. `refusal` — `reason` and `whatWouldHelp` when refused.",
48257
+ "description": "The report card (`ready` and `refused`). Read it to the person as it is written; do not round it up. Show the sentences and the fields named `label`, `…Label`, `sentence`, `detail`, `reason`, `summary` and `note`: they are written in plain words. The fields named `id`, `code`, `verdict`, `better`, `kind`, `table` and `column`, and everything under `technical` and `details`, are for programs: never show them to a person (say `verdictLabel` \"helped a little\", not `verdict` `helped_a_little`). `headline` — one sentence. `outcome.label` — what it predicts. `learnedFrom` — how many past cases and over what dates, and the later cases it was tested on; for a model on the person's own outcomes, `learnedFrom.funnel` — the rows in their file, then how many had a date and an outcome, matched a home, had history before their date and were used, each with the reason rows were dropped (`funnel.sentence` says it in one line). `lift.top10` (and `lift.top1` on large tests) — `modelPer100`, `randomPer100`, `bestSimpleRulePer100` and a ready-made `sentence`. `checks` — three, each `passed` true or false, with a `label` and a `detail`: beats the best simple rule, finds nothing when the outcomes are shuffled, holds up across time periods. `dataPoints.ranking` — each data point's `label`, its share, a `verdictLabel` and a `sentence`, and `dataPoints.summary`. `comparison` — the person's picks against every available data point (`sentence`, `betterLabel`) and `worthAdding`. `changeFromPrevious.sentence` — what changed since the version it replaced or was based on. `calibration.calibrated` — only when true may a home's estimated chance be called a chance; otherwise scores are a ranking; `calibration.note` says it. `caution` — when present, say it first. `caveats` — say them. `refusal` — `reason` and `whatWouldHelp` when refused. `trace` — the final training trace, the same shape as `progress.trace`, kept so a progress screen can replay how the model learned (getStudioModel only: listStudioModels leaves it out to stay small).",
48183
48258
  "nullable": true,
48184
48259
  "type": "object"
48185
48260
  },
@@ -48322,7 +48397,7 @@
48322
48397
  "type": "string"
48323
48398
  },
48324
48399
  "progress": {
48325
- "description": "While the model trains: the step it is on, how long it has been, and how long is left (an estimate). Tell the person the step and the remaining range, as a range.",
48400
+ "description": "While a run is going — a new model training, a retrain of a ready model (which stays `ready`, with its current card and scores, until the new version is published) or a re-score: the step it is on, how long it has been, and how long is left (an estimate). Tell the person the step and the remaining range, as a range. Null when nothing is running.",
48326
48401
  "nullable": true,
48327
48402
  "properties": {
48328
48403
  "elapsedSeconds": {
@@ -48346,6 +48421,14 @@
48346
48421
  ],
48347
48422
  "type": "object"
48348
48423
  },
48424
+ "kind": {
48425
+ "description": "`train` — a new model, a new version or a retrain (`refresh` with `retrain: true`): the report card is rebuilt, and `trace` appears once learning starts. `score` — a re-score with the trained model as it is: three steps and no trace.",
48426
+ "enum": [
48427
+ "train",
48428
+ "score"
48429
+ ],
48430
+ "type": "string"
48431
+ },
48349
48432
  "note": {
48350
48433
  "description": "Says that the times are estimates, or that the run is past its estimate and still going. Pass it on.",
48351
48434
  "type": "string"
@@ -48379,6 +48462,306 @@
48379
48462
  },
48380
48463
  "steps": {
48381
48464
  "type": "number"
48465
+ },
48466
+ "trace": {
48467
+ "description": "The live training trace, once training has started (absent before). Poll the model every few seconds to animate it; when the model is done the final one is `card.trace`. What a progress screen can draw while a model trains, and replay after: the backtest grid, the score by round, and how much each chosen data point matters as the model learns. Rewritten about once a second while learning; at most about 16 KB. Aggregates only: no home, row or id, and data points by their labels.",
48468
+ "properties": {
48469
+ "backtest": {
48470
+ "description": "The backtest replay: in each period the model had not seen, its cases ranked by the model's score and cut into columns, best-scored first.",
48471
+ "properties": {
48472
+ "frames": {
48473
+ "description": "The grid as the model learned, oldest first, for replay (thinned to fit; the first and the latest are kept). Column sizes are the period's `columnCases`.",
48474
+ "items": {
48475
+ "properties": {
48476
+ "final": {
48477
+ "description": "True on the last frame: the model that was kept (at `bestRound`).",
48478
+ "type": "boolean"
48479
+ },
48480
+ "hits": {
48481
+ "description": "`hits` for each period, in the order of `periods`.",
48482
+ "items": {
48483
+ "items": {
48484
+ "type": "number"
48485
+ },
48486
+ "type": "array"
48487
+ },
48488
+ "type": "array"
48489
+ },
48490
+ "round": {
48491
+ "type": "number"
48492
+ },
48493
+ "seq": {
48494
+ "description": "Counts up with every frame drawn.",
48495
+ "type": "number"
48496
+ }
48497
+ },
48498
+ "required": [
48499
+ "seq",
48500
+ "round",
48501
+ "hits"
48502
+ ],
48503
+ "type": "object"
48504
+ },
48505
+ "type": "array"
48506
+ },
48507
+ "minCasesPerColumn": {
48508
+ "description": "Every column holds at least this many cases: with fewer cases the columns are merged, and a period too small for four columns has none.",
48509
+ "type": "number"
48510
+ },
48511
+ "periods": {
48512
+ "description": "One row of columns per held-out test period, oldest first: the hero grid. Aggregate counts only.",
48513
+ "items": {
48514
+ "properties": {
48515
+ "cases": {
48516
+ "description": "Cases in this period the grid is drawn from (an even sample of at most 60,000 across all periods on a very large test).",
48517
+ "type": "number"
48518
+ },
48519
+ "columnCases": {
48520
+ "description": "Cases per column. Column 1 holds the cases the model scored highest, the last the lowest. Sizes differ by at most one.",
48521
+ "items": {
48522
+ "type": "number"
48523
+ },
48524
+ "type": "array"
48525
+ },
48526
+ "columns": {
48527
+ "description": "How many columns this period is cut into (up to 56; 0 when it has too few cases to show).",
48528
+ "type": "number"
48529
+ },
48530
+ "hits": {
48531
+ "description": "How many cases in each column had the outcome, as the model ranks them now. `hits[i] / columnCases[i]` is the column's hit rate.",
48532
+ "items": {
48533
+ "type": "number"
48534
+ },
48535
+ "type": "array"
48536
+ },
48537
+ "label": {
48538
+ "description": "The period in plain words (\"January 2024\").",
48539
+ "type": "string"
48540
+ },
48541
+ "period": {
48542
+ "description": "The first day of the held-out test period (YYYY-MM-DD).",
48543
+ "type": "string"
48544
+ },
48545
+ "simpleRuleHits": {
48546
+ "description": "The same, with the cases ranked by the best simple rule instead (the comparison the card's checks use). It does not change while training.",
48547
+ "items": {
48548
+ "type": "number"
48549
+ },
48550
+ "type": "array"
48551
+ },
48552
+ "verdict": {
48553
+ "description": "Once the checks are read: `ahead`, `level`, `behind` or `unknown` (for programs).",
48554
+ "type": "string"
48555
+ },
48556
+ "verdictLabel": {
48557
+ "description": "The verdict in plain words: \"beat the simple rule\", \"kept up with the simple rule\", \"fell behind the simple rule\".",
48558
+ "type": "string"
48559
+ },
48560
+ "withTheOutcome": {
48561
+ "type": "number"
48562
+ }
48563
+ },
48564
+ "required": [
48565
+ "period",
48566
+ "label",
48567
+ "cases",
48568
+ "withTheOutcome",
48569
+ "columns",
48570
+ "columnCases",
48571
+ "hits",
48572
+ "simpleRuleHits"
48573
+ ],
48574
+ "type": "object"
48575
+ },
48576
+ "type": "array"
48577
+ }
48578
+ },
48579
+ "required": [
48580
+ "minCasesPerColumn",
48581
+ "periods",
48582
+ "frames"
48583
+ ],
48584
+ "type": "object"
48585
+ },
48586
+ "bestRound": {
48587
+ "description": "Once fitting is done: the round that was kept. Rounds after it were tried and discarded because they stopped helping. Null while learning.",
48588
+ "nullable": true,
48589
+ "type": "number"
48590
+ },
48591
+ "fieldFrames": {
48592
+ "description": "How the shares evolved: each frame's `shares` lines up with `fields` by position. At most 24 frames, oldest first.",
48593
+ "items": {
48594
+ "properties": {
48595
+ "round": {
48596
+ "type": "number"
48597
+ },
48598
+ "shares": {
48599
+ "items": {
48600
+ "type": "number"
48601
+ },
48602
+ "type": "array"
48603
+ }
48604
+ },
48605
+ "required": [
48606
+ "round",
48607
+ "shares"
48608
+ ],
48609
+ "type": "object"
48610
+ },
48611
+ "type": "array"
48612
+ },
48613
+ "fields": {
48614
+ "description": "The data points that were chosen, in the order they were chosen.",
48615
+ "items": {
48616
+ "properties": {
48617
+ "label": {
48618
+ "description": "The data point, as the person picked it.",
48619
+ "type": "string"
48620
+ },
48621
+ "sharePercent": {
48622
+ "description": "How much the model leans on this data point right now, as a share of 100 across the chosen data points. Not how much it causes the outcome. When the run is done this is the card's own share.",
48623
+ "type": "number"
48624
+ },
48625
+ "source": {
48626
+ "description": "`market` or `upload` (for programs).",
48627
+ "type": "string"
48628
+ },
48629
+ "sourceLabel": {
48630
+ "description": "\"market data\" or \"your own data\".",
48631
+ "type": "string"
48632
+ }
48633
+ },
48634
+ "required": [
48635
+ "label",
48636
+ "source",
48637
+ "sourceLabel",
48638
+ "sharePercent"
48639
+ ],
48640
+ "type": "object"
48641
+ },
48642
+ "type": "array"
48643
+ },
48644
+ "phase": {
48645
+ "description": "`learning` — the model is being fitted round by round; `checking` — fitting is done and the checks are running (shuffled outcomes, the comparison with every data point, scoring); `done` — finished, see `result`; `refused` — the model was not trained, see `rejected` and `result`. Only moves forward.",
48646
+ "example": "learning",
48647
+ "type": "string"
48648
+ },
48649
+ "phaseLabel": {
48650
+ "description": "`phase` in plain words, for a person.",
48651
+ "example": "Learning from past cases",
48652
+ "type": "string"
48653
+ },
48654
+ "rejected": {
48655
+ "description": "Data points turned away before training, each with the reason in plain words. Empty when none were.",
48656
+ "items": {
48657
+ "properties": {
48658
+ "label": {
48659
+ "type": "string"
48660
+ },
48661
+ "reason": {
48662
+ "type": "string"
48663
+ }
48664
+ },
48665
+ "required": [
48666
+ "label",
48667
+ "reason"
48668
+ ],
48669
+ "type": "object"
48670
+ },
48671
+ "type": "array"
48672
+ },
48673
+ "result": {
48674
+ "description": "When the run is done (or refused).",
48675
+ "properties": {
48676
+ "caution": {
48677
+ "description": "True when the model passed but fell behind the simple rule in part of the test period. Say so first.",
48678
+ "type": "boolean"
48679
+ },
48680
+ "label": {
48681
+ "description": "The result in plain words.",
48682
+ "type": "string"
48683
+ },
48684
+ "status": {
48685
+ "description": "`ready` or `refused` (for programs).",
48686
+ "type": "string"
48687
+ }
48688
+ },
48689
+ "required": [
48690
+ "status",
48691
+ "caution",
48692
+ "label"
48693
+ ],
48694
+ "type": "object"
48695
+ },
48696
+ "round": {
48697
+ "description": "The boosting round the model has reached so far.",
48698
+ "type": "number"
48699
+ },
48700
+ "rounds": {
48701
+ "description": "The model's score by boosting round, for a line chart.",
48702
+ "properties": {
48703
+ "label": {
48704
+ "description": "What the curve shows, in plain words.",
48705
+ "type": "string"
48706
+ },
48707
+ "lowerIsBetter": {
48708
+ "type": "boolean"
48709
+ },
48710
+ "points": {
48711
+ "description": "`[round, value]` pairs in round order, at most about 100 (thinned evenly as rounds go on; the latest round is always last). One value per round, measured on the cases held back to tune the model.",
48712
+ "example": [
48713
+ [
48714
+ 1,
48715
+ 0.39
48716
+ ],
48717
+ [
48718
+ 40,
48719
+ 0.322
48720
+ ],
48721
+ [
48722
+ 107,
48723
+ 0.3186
48724
+ ]
48725
+ ],
48726
+ "items": {
48727
+ "items": {
48728
+ "type": "number"
48729
+ },
48730
+ "type": "array"
48731
+ },
48732
+ "type": "array"
48733
+ }
48734
+ },
48735
+ "required": [
48736
+ "label",
48737
+ "lowerIsBetter",
48738
+ "points"
48739
+ ],
48740
+ "type": "object"
48741
+ },
48742
+ "update": {
48743
+ "description": "Counts up by one every time the trace is rewritten (about once a second while learning). Use it to tell a new trace from one you already drew.",
48744
+ "type": "number"
48745
+ },
48746
+ "version": {
48747
+ "description": "Shape version of this block. `1` today.",
48748
+ "type": "number"
48749
+ }
48750
+ },
48751
+ "required": [
48752
+ "version",
48753
+ "phase",
48754
+ "phaseLabel",
48755
+ "update",
48756
+ "round",
48757
+ "bestRound",
48758
+ "rounds",
48759
+ "fields",
48760
+ "fieldFrames",
48761
+ "rejected",
48762
+ "backtest"
48763
+ ],
48764
+ "type": "object"
48382
48765
  }
48383
48766
  },
48384
48767
  "required": [
@@ -48388,7 +48771,7 @@
48388
48771
  "type": "object"
48389
48772
  },
48390
48773
  "refresh": {
48391
- "description": "A refresh in progress, or why the last one produced nothing (the earlier scores stay).",
48774
+ "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).",
48392
48775
  "nullable": true,
48393
48776
  "properties": {
48394
48777
  "elapsedSeconds": {
@@ -48716,12 +49099,12 @@
48716
49099
  "StudioModelError": {
48717
49100
  "properties": {
48718
49101
  "code": {
48719
- "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`.",
48720
49103
  "example": "match_rate_too_low",
48721
49104
  "type": "string"
48722
49105
  },
48723
49106
  "details": {
48724
- "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.",
48725
49108
  "properties": {
48726
49109
  "availableTables": {
48727
49110
  "items": {
@@ -48735,6 +49118,15 @@
48735
49118
  "dataPoint": {
48736
49119
  "type": "string"
48737
49120
  },
49121
+ "dataPoints": {
49122
+ "items": {
49123
+ "type": "string"
49124
+ },
49125
+ "type": "array"
49126
+ },
49127
+ "entitlementKey": {
49128
+ "type": "string"
49129
+ },
48738
49130
  "examples": {
48739
49131
  "type": "number"
48740
49132
  },
@@ -48762,6 +49154,9 @@
48762
49154
  "rows": {
48763
49155
  "type": "number"
48764
49156
  },
49157
+ "running": {
49158
+ "type": "number"
49159
+ },
48765
49160
  "suggestions": {
48766
49161
  "items": {
48767
49162
  "type": "string"
@@ -48973,7 +49368,7 @@
48973
49368
  "type": "string"
48974
49369
  },
48975
49370
  "needsFairLendingReview": {
48976
- "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.",
48977
49372
  "type": "boolean"
48978
49373
  },
48979
49374
  "whyItMightMatter": {
@@ -49180,6 +49575,10 @@
49180
49575
  "data": {
49181
49576
  "$ref": "#/components/schemas/StudioModelOptions"
49182
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
+ },
49183
49582
  "pricing": {
49184
49583
  "properties": {
49185
49584
  "note": {
@@ -49202,7 +49601,8 @@
49202
49601
  },
49203
49602
  "required": [
49204
49603
  "data",
49205
- "pricing"
49604
+ "pricing",
49605
+ "neighborhoodDataAllowed"
49206
49606
  ],
49207
49607
  "type": "object"
49208
49608
  },
@@ -49339,6 +49739,339 @@
49339
49739
  ],
49340
49740
  "type": "object"
49341
49741
  },
49742
+ "StudioPublishedModel": {
49743
+ "properties": {
49744
+ "asOf": {
49745
+ "description": "The day the scores are as of.",
49746
+ "nullable": true,
49747
+ "type": "string"
49748
+ },
49749
+ "caution": {
49750
+ "description": "The caution, when there is one. Say it first, before anything else on the card.",
49751
+ "nullable": true,
49752
+ "type": "string"
49753
+ },
49754
+ "caveats": {
49755
+ "description": "Limits of the model. Say them.",
49756
+ "items": {
49757
+ "type": "string"
49758
+ },
49759
+ "type": "array"
49760
+ },
49761
+ "dataPoints": {
49762
+ "properties": {
49763
+ "note": {
49764
+ "nullable": true,
49765
+ "type": "string"
49766
+ },
49767
+ "rejected": {
49768
+ "description": "Data points the model was given and barely used: they added little.",
49769
+ "items": {
49770
+ "properties": {
49771
+ "label": {
49772
+ "type": "string"
49773
+ },
49774
+ "sentence": {
49775
+ "nullable": true,
49776
+ "type": "string"
49777
+ },
49778
+ "sharePercent": {
49779
+ "nullable": true,
49780
+ "type": "number"
49781
+ }
49782
+ },
49783
+ "required": [
49784
+ "label",
49785
+ "sharePercent",
49786
+ "sentence"
49787
+ ],
49788
+ "type": "object"
49789
+ },
49790
+ "type": "array"
49791
+ },
49792
+ "summary": {
49793
+ "nullable": true,
49794
+ "type": "string"
49795
+ },
49796
+ "used": {
49797
+ "description": "The data points that mattered, strongest first.",
49798
+ "items": {
49799
+ "properties": {
49800
+ "label": {
49801
+ "type": "string"
49802
+ },
49803
+ "sentence": {
49804
+ "nullable": true,
49805
+ "type": "string"
49806
+ },
49807
+ "sharePercent": {
49808
+ "description": "How much the model leaned on it, as a share of everything it relied on — not how much it causes the outcome.",
49809
+ "nullable": true,
49810
+ "type": "number"
49811
+ },
49812
+ "verdictLabel": {
49813
+ "example": "helped a little",
49814
+ "nullable": true,
49815
+ "type": "string"
49816
+ }
49817
+ },
49818
+ "required": [
49819
+ "label",
49820
+ "sharePercent",
49821
+ "verdictLabel",
49822
+ "sentence"
49823
+ ],
49824
+ "type": "object"
49825
+ },
49826
+ "type": "array"
49827
+ }
49828
+ },
49829
+ "required": [
49830
+ "used",
49831
+ "rejected",
49832
+ "summary",
49833
+ "note"
49834
+ ],
49835
+ "type": "object"
49836
+ },
49837
+ "description": {
49838
+ "type": "string"
49839
+ },
49840
+ "hasCaution": {
49841
+ "description": "True when it is published with a caution.",
49842
+ "type": "boolean"
49843
+ },
49844
+ "headline": {
49845
+ "description": "The report card in one sentence. Read it as written.",
49846
+ "nullable": true,
49847
+ "type": "string"
49848
+ },
49849
+ "homes": {
49850
+ "description": "Homes on the scored list.",
49851
+ "type": "number"
49852
+ },
49853
+ "learnedFrom": {
49854
+ "description": "What it learned from, and was tested on.",
49855
+ "nullable": true,
49856
+ "properties": {
49857
+ "cases": {
49858
+ "nullable": true,
49859
+ "type": "number"
49860
+ },
49861
+ "from": {
49862
+ "nullable": true,
49863
+ "type": "string"
49864
+ },
49865
+ "sentence": {
49866
+ "nullable": true,
49867
+ "type": "string"
49868
+ },
49869
+ "testedOn": {
49870
+ "properties": {
49871
+ "cases": {
49872
+ "nullable": true,
49873
+ "type": "number"
49874
+ },
49875
+ "from": {
49876
+ "nullable": true,
49877
+ "type": "string"
49878
+ },
49879
+ "to": {
49880
+ "nullable": true,
49881
+ "type": "string"
49882
+ },
49883
+ "withTheOutcome": {
49884
+ "nullable": true,
49885
+ "type": "number"
49886
+ }
49887
+ },
49888
+ "required": [
49889
+ "cases",
49890
+ "withTheOutcome",
49891
+ "from",
49892
+ "to"
49893
+ ],
49894
+ "type": "object"
49895
+ },
49896
+ "to": {
49897
+ "nullable": true,
49898
+ "type": "string"
49899
+ },
49900
+ "withTheOutcome": {
49901
+ "nullable": true,
49902
+ "type": "number"
49903
+ }
49904
+ },
49905
+ "required": [
49906
+ "sentence",
49907
+ "cases",
49908
+ "withTheOutcome",
49909
+ "from",
49910
+ "to",
49911
+ "testedOn"
49912
+ ],
49913
+ "type": "object"
49914
+ },
49915
+ "metrics": {
49916
+ "properties": {
49917
+ "calibrated": {
49918
+ "description": "Only when true may a home's score be called a chance. Otherwise scores are a ranking only.",
49919
+ "type": "boolean"
49920
+ },
49921
+ "calibrationNote": {
49922
+ "nullable": true,
49923
+ "type": "string"
49924
+ },
49925
+ "checks": {
49926
+ "description": "Beats the best simple rule; finds nothing in shuffled outcomes; holds up over time.",
49927
+ "items": {
49928
+ "properties": {
49929
+ "detail": {
49930
+ "nullable": true,
49931
+ "type": "string"
49932
+ },
49933
+ "label": {
49934
+ "type": "string"
49935
+ },
49936
+ "passed": {
49937
+ "type": "boolean"
49938
+ }
49939
+ },
49940
+ "required": [
49941
+ "label",
49942
+ "passed",
49943
+ "detail"
49944
+ ],
49945
+ "type": "object"
49946
+ },
49947
+ "type": "array"
49948
+ },
49949
+ "top1": {
49950
+ "description": "The top 1% of the list, on large tests only.",
49951
+ "nullable": true,
49952
+ "properties": {
49953
+ "bestSimpleRulePer100": {
49954
+ "description": "The same when sorting by the best single data point.",
49955
+ "nullable": true,
49956
+ "type": "number"
49957
+ },
49958
+ "modelPer100": {
49959
+ "description": "Of every 100 homes at the top of the list, how many had the outcome.",
49960
+ "nullable": true,
49961
+ "type": "number"
49962
+ },
49963
+ "randomPer100": {
49964
+ "description": "The same for 100 homes picked at random.",
49965
+ "nullable": true,
49966
+ "type": "number"
49967
+ },
49968
+ "sentence": {
49969
+ "nullable": true,
49970
+ "type": "string"
49971
+ },
49972
+ "topPercent": {
49973
+ "nullable": true,
49974
+ "type": "number"
49975
+ }
49976
+ },
49977
+ "required": [
49978
+ "topPercent",
49979
+ "modelPer100",
49980
+ "randomPer100",
49981
+ "bestSimpleRulePer100",
49982
+ "sentence"
49983
+ ],
49984
+ "type": "object"
49985
+ },
49986
+ "top10": {
49987
+ "nullable": true,
49988
+ "properties": {
49989
+ "bestSimpleRulePer100": {
49990
+ "description": "The same when sorting by the best single data point.",
49991
+ "nullable": true,
49992
+ "type": "number"
49993
+ },
49994
+ "modelPer100": {
49995
+ "description": "Of every 100 homes at the top of the list, how many had the outcome.",
49996
+ "nullable": true,
49997
+ "type": "number"
49998
+ },
49999
+ "randomPer100": {
50000
+ "description": "The same for 100 homes picked at random.",
50001
+ "nullable": true,
50002
+ "type": "number"
50003
+ },
50004
+ "sentence": {
50005
+ "nullable": true,
50006
+ "type": "string"
50007
+ },
50008
+ "topPercent": {
50009
+ "nullable": true,
50010
+ "type": "number"
50011
+ }
50012
+ },
50013
+ "required": [
50014
+ "topPercent",
50015
+ "modelPer100",
50016
+ "randomPer100",
50017
+ "bestSimpleRulePer100",
50018
+ "sentence"
50019
+ ],
50020
+ "type": "object"
50021
+ }
50022
+ },
50023
+ "required": [
50024
+ "top10",
50025
+ "top1",
50026
+ "checks",
50027
+ "calibrated",
50028
+ "calibrationNote"
50029
+ ],
50030
+ "type": "object"
50031
+ },
50032
+ "predicts": {
50033
+ "description": "What the model predicts, in plain words.",
50034
+ "nullable": true,
50035
+ "type": "string"
50036
+ },
50037
+ "refreshedAt": {
50038
+ "description": "When the scores were last computed (ISO 8601).",
50039
+ "type": "string"
50040
+ },
50041
+ "table": {
50042
+ "description": "The table its scores are in, the same for every organization. Query it with Studio.",
50043
+ "example": "mm_model_refi_watch",
50044
+ "type": "string"
50045
+ }
50046
+ },
50047
+ "required": [
50048
+ "table",
50049
+ "description",
50050
+ "homes",
50051
+ "refreshedAt",
50052
+ "asOf",
50053
+ "predicts",
50054
+ "headline",
50055
+ "hasCaution",
50056
+ "caution",
50057
+ "learnedFrom",
50058
+ "metrics",
50059
+ "dataPoints",
50060
+ "caveats"
50061
+ ],
50062
+ "type": "object"
50063
+ },
50064
+ "StudioPublishedModelResult": {
50065
+ "properties": {
50066
+ "data": {
50067
+ "$ref": "#/components/schemas/StudioPublishedModel"
50068
+ }
50069
+ },
50070
+ "required": [
50071
+ "data"
50072
+ ],
50073
+ "type": "object"
50074
+ },
49342
50075
  "StudioQueryRequest": {
49343
50076
  "additionalProperties": false,
49344
50077
  "properties": {
@@ -50695,7 +51428,7 @@
50695
51428
  "info": {
50696
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.",
50697
51430
  "title": "ModelMatch API",
50698
- "version": "3.164.1"
51431
+ "version": "3.166.0"
50699
51432
  },
50700
51433
  "openapi": "3.1.0",
50701
51434
  "paths": {
@@ -89661,26 +90394,252 @@
89661
90394
  "description": "`studio_unavailable` — Studio is not available right now."
89662
90395
  }
89663
90396
  },
89664
- "summary": "Tables you can query in Studio, with their columns",
90397
+ "summary": "Tables you can query in Studio, with their columns",
90398
+ "tags": [
90399
+ "Studio"
90400
+ ]
90401
+ }
90402
+ },
90403
+ "/v1/studio/jobs": {
90404
+ "get": {
90405
+ "description": "Every job your organization has saved, each with its schedule, when it next runs, the table its result is in, and how its last run went. Free.",
90406
+ "operationId": "listStudioJobs",
90407
+ "responses": {
90408
+ "200": {
90409
+ "content": {
90410
+ "application/json": {
90411
+ "schema": {
90412
+ "$ref": "#/components/schemas/StudioJobList"
90413
+ }
90414
+ }
90415
+ },
90416
+ "description": "The saved jobs"
90417
+ },
90418
+ "400": {
90419
+ "content": {
90420
+ "application/json": {
90421
+ "schema": {
90422
+ "$ref": "#/components/schemas/StudioError"
90423
+ }
90424
+ }
90425
+ },
90426
+ "description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
90427
+ },
90428
+ "401": {
90429
+ "content": {
90430
+ "application/json": {
90431
+ "schema": {
90432
+ "$ref": "#/components/schemas/StudioError"
90433
+ }
90434
+ }
90435
+ },
90436
+ "description": "Authentication required."
90437
+ },
90438
+ "403": {
90439
+ "content": {
90440
+ "application/json": {
90441
+ "schema": {
90442
+ "$ref": "#/components/schemas/StudioError"
90443
+ }
90444
+ }
90445
+ },
90446
+ "description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
90447
+ },
90448
+ "404": {
90449
+ "content": {
90450
+ "application/json": {
90451
+ "schema": {
90452
+ "$ref": "#/components/schemas/StudioError"
90453
+ }
90454
+ }
90455
+ },
90456
+ "description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
90457
+ },
90458
+ "409": {
90459
+ "content": {
90460
+ "application/json": {
90461
+ "schema": {
90462
+ "$ref": "#/components/schemas/StudioError"
90463
+ }
90464
+ }
90465
+ },
90466
+ "description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
90467
+ },
90468
+ "422": {
90469
+ "content": {
90470
+ "application/json": {
90471
+ "schema": {
90472
+ "$ref": "#/components/schemas/StudioError"
90473
+ }
90474
+ }
90475
+ },
90476
+ "description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
90477
+ },
90478
+ "429": {
90479
+ "content": {
90480
+ "application/json": {
90481
+ "schema": {
90482
+ "$ref": "#/components/schemas/StudioError"
90483
+ }
90484
+ }
90485
+ },
90486
+ "description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
90487
+ },
90488
+ "503": {
90489
+ "content": {
90490
+ "application/json": {
90491
+ "schema": {
90492
+ "$ref": "#/components/schemas/StudioError"
90493
+ }
90494
+ }
90495
+ },
90496
+ "description": "`studio_unavailable` — Studio is not available right now."
90497
+ }
90498
+ },
90499
+ "summary": "Your organization's saved jobs",
90500
+ "tags": [
90501
+ "Studio"
90502
+ ]
90503
+ },
90504
+ "post": {
90505
+ "description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.",
90506
+ "operationId": "createStudioJob",
90507
+ "requestBody": {
90508
+ "content": {
90509
+ "application/json": {
90510
+ "schema": {
90511
+ "$ref": "#/components/schemas/StudioJobRequest"
90512
+ }
90513
+ }
90514
+ },
90515
+ "required": true
90516
+ },
90517
+ "responses": {
90518
+ "201": {
90519
+ "content": {
90520
+ "application/json": {
90521
+ "schema": {
90522
+ "$ref": "#/components/schemas/StudioJobSaved"
90523
+ }
90524
+ }
90525
+ },
90526
+ "description": "The saved job"
90527
+ },
90528
+ "400": {
90529
+ "content": {
90530
+ "application/json": {
90531
+ "schema": {
90532
+ "$ref": "#/components/schemas/StudioError"
90533
+ }
90534
+ }
90535
+ },
90536
+ "description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
90537
+ },
90538
+ "401": {
90539
+ "content": {
90540
+ "application/json": {
90541
+ "schema": {
90542
+ "$ref": "#/components/schemas/StudioError"
90543
+ }
90544
+ }
90545
+ },
90546
+ "description": "Authentication required."
90547
+ },
90548
+ "403": {
90549
+ "content": {
90550
+ "application/json": {
90551
+ "schema": {
90552
+ "$ref": "#/components/schemas/StudioError"
90553
+ }
90554
+ }
90555
+ },
90556
+ "description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
90557
+ },
90558
+ "404": {
90559
+ "content": {
90560
+ "application/json": {
90561
+ "schema": {
90562
+ "$ref": "#/components/schemas/StudioError"
90563
+ }
90564
+ }
90565
+ },
90566
+ "description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
90567
+ },
90568
+ "409": {
90569
+ "content": {
90570
+ "application/json": {
90571
+ "schema": {
90572
+ "$ref": "#/components/schemas/StudioError"
90573
+ }
90574
+ }
90575
+ },
90576
+ "description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
90577
+ },
90578
+ "422": {
90579
+ "content": {
90580
+ "application/json": {
90581
+ "schema": {
90582
+ "$ref": "#/components/schemas/StudioError"
90583
+ }
90584
+ }
90585
+ },
90586
+ "description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
90587
+ },
90588
+ "429": {
90589
+ "content": {
90590
+ "application/json": {
90591
+ "schema": {
90592
+ "$ref": "#/components/schemas/StudioError"
90593
+ }
90594
+ }
90595
+ },
90596
+ "description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
90597
+ },
90598
+ "503": {
90599
+ "content": {
90600
+ "application/json": {
90601
+ "schema": {
90602
+ "$ref": "#/components/schemas/StudioError"
90603
+ }
90604
+ }
90605
+ },
90606
+ "description": "`studio_unavailable` — Studio is not available right now."
90607
+ }
90608
+ },
90609
+ "summary": "Save a question as a job",
89665
90610
  "tags": [
89666
90611
  "Studio"
89667
90612
  ]
89668
90613
  }
89669
90614
  },
89670
- "/v1/studio/jobs": {
89671
- "get": {
89672
- "description": "Every job your organization has saved, each with its schedule, when it next runs, the table its result is in, and how its last run went. Free.",
89673
- "operationId": "listStudioJobs",
90615
+ "/v1/studio/jobs/{name}": {
90616
+ "delete": {
90617
+ "description": "Delete a saved job, its run history and its result tables. Questions and jobs that read its table stop working. Free.",
90618
+ "operationId": "deleteStudioJob",
90619
+ "parameters": [
90620
+ {
90621
+ "description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
90622
+ "in": "path",
90623
+ "name": "name",
90624
+ "required": true,
90625
+ "schema": {
90626
+ "description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
90627
+ "example": "top_lenders_tx",
90628
+ "pattern": "^[a-z][a-z0-9_]{0,62}$",
90629
+ "type": "string"
90630
+ }
90631
+ }
90632
+ ],
89674
90633
  "responses": {
89675
90634
  "200": {
89676
90635
  "content": {
89677
90636
  "application/json": {
89678
90637
  "schema": {
89679
- "$ref": "#/components/schemas/StudioJobList"
90638
+ "$ref": "#/components/schemas/StudioJobDeleted"
89680
90639
  }
89681
90640
  }
89682
90641
  },
89683
- "description": "The saved jobs"
90642
+ "description": "Deleted"
89684
90643
  },
89685
90644
  "400": {
89686
90645
  "content": {
@@ -89763,126 +90722,14 @@
89763
90722
  "description": "`studio_unavailable` — Studio is not available right now."
89764
90723
  }
89765
90724
  },
89766
- "summary": "Your organization's saved jobs",
90725
+ "summary": "Delete a job and its results",
89767
90726
  "tags": [
89768
90727
  "Studio"
89769
90728
  ]
89770
90729
  },
89771
- "post": {
89772
- "description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.",
89773
- "operationId": "createStudioJob",
89774
- "requestBody": {
89775
- "content": {
89776
- "application/json": {
89777
- "schema": {
89778
- "$ref": "#/components/schemas/StudioJobRequest"
89779
- }
89780
- }
89781
- },
89782
- "required": true
89783
- },
89784
- "responses": {
89785
- "201": {
89786
- "content": {
89787
- "application/json": {
89788
- "schema": {
89789
- "$ref": "#/components/schemas/StudioJobSaved"
89790
- }
89791
- }
89792
- },
89793
- "description": "The saved job"
89794
- },
89795
- "400": {
89796
- "content": {
89797
- "application/json": {
89798
- "schema": {
89799
- "$ref": "#/components/schemas/StudioError"
89800
- }
89801
- }
89802
- },
89803
- "description": "The request was refused, and `error` says why: SQL that is not a single read-only SELECT, an unknown table (`details.table`, `details.availableTables`), an unknown column (`details.column`, `details.suggestions`), a function that is not available (`details.function`), or a job that could not run as written (`invalid_job`)."
89804
- },
89805
- "401": {
89806
- "content": {
89807
- "application/json": {
89808
- "schema": {
89809
- "$ref": "#/components/schemas/StudioError"
89810
- }
89811
- }
89812
- },
89813
- "description": "Authentication required."
89814
- },
89815
- "403": {
89816
- "content": {
89817
- "application/json": {
89818
- "schema": {
89819
- "$ref": "#/components/schemas/StudioError"
89820
- }
89821
- }
89822
- },
89823
- "description": "`no_organization` — Studio works inside an organization: select one and retry. `studio_not_enabled` — Studio is in a limited preview and is not enabled for this account."
89824
- },
89825
- "404": {
89826
- "content": {
89827
- "application/json": {
89828
- "schema": {
89829
- "$ref": "#/components/schemas/StudioError"
89830
- }
89831
- }
89832
- },
89833
- "description": "`job_not_found` — your organization has no job of that name. `query_not_found` — your organization has no background question of that id."
89834
- },
89835
- "409": {
89836
- "content": {
89837
- "application/json": {
89838
- "schema": {
89839
- "$ref": "#/components/schemas/StudioError"
89840
- }
89841
- }
89842
- },
89843
- "description": "`job_exists` — the name is taken; `job_limit_reached` — your organization is at its limit of saved jobs (`details.limit`); `job_running` — another job is running for your organization, retry when it has finished."
89844
- },
89845
- "422": {
89846
- "content": {
89847
- "application/json": {
89848
- "schema": {
89849
- "$ref": "#/components/schemas/StudioError"
89850
- }
89851
- }
89852
- },
89853
- "description": "The SQL is valid but asks for more than one answer may cost: `timeout` (it ran for its whole time, in the background included, and was stopped — narrow it by state or date; or it could not carry on in the background because another question of your organization already is), `result_too_large`, `resource_limit`. For a job run, `job_failed`."
89854
- },
89855
- "429": {
89856
- "content": {
89857
- "application/json": {
89858
- "schema": {
89859
- "$ref": "#/components/schemas/StudioError"
89860
- }
89861
- }
89862
- },
89863
- "description": "`rate_limited` — too many requests from your organization in the last minute; or `busy` — every slot is taken right now. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
89864
- },
89865
- "503": {
89866
- "content": {
89867
- "application/json": {
89868
- "schema": {
89869
- "$ref": "#/components/schemas/StudioError"
89870
- }
89871
- }
89872
- },
89873
- "description": "`studio_unavailable` — Studio is not available right now."
89874
- }
89875
- },
89876
- "summary": "Save a question as a job",
89877
- "tags": [
89878
- "Studio"
89879
- ]
89880
- }
89881
- },
89882
- "/v1/studio/jobs/{name}": {
89883
- "delete": {
89884
- "description": "Delete a saved job, its run history and its result tables. Questions and jobs that read its table stop working. Free.",
89885
- "operationId": "deleteStudioJob",
90730
+ "get": {
90731
+ "description": "A saved job with its recent runs (newest first), what changed in the latest successful run since the one before it, the alert rules that matched, and `result.table` — the table to query for its rows. Poll this after starting a run that answered `running`. Free.",
90732
+ "operationId": "getStudioJob",
89886
90733
  "parameters": [
89887
90734
  {
89888
90735
  "description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
@@ -89902,11 +90749,11 @@
89902
90749
  "content": {
89903
90750
  "application/json": {
89904
90751
  "schema": {
89905
- "$ref": "#/components/schemas/StudioJobDeleted"
90752
+ "$ref": "#/components/schemas/StudioJobDetail"
89906
90753
  }
89907
90754
  }
89908
90755
  },
89909
- "description": "Deleted"
90756
+ "description": "The job, its runs and its result table"
89910
90757
  },
89911
90758
  "400": {
89912
90759
  "content": {
@@ -89989,14 +90836,14 @@
89989
90836
  "description": "`studio_unavailable` — Studio is not available right now."
89990
90837
  }
89991
90838
  },
89992
- "summary": "Delete a job and its results",
90839
+ "summary": "One job: its runs, what changed, and where its result is",
89993
90840
  "tags": [
89994
90841
  "Studio"
89995
90842
  ]
89996
90843
  },
89997
- "get": {
89998
- "description": "A saved job with its recent runs (newest first), what changed in the latest successful run since the one before it, the alert rules that matched, and `result.table` — the table to query for its rows. Poll this after starting a run that answered `running`. Free.",
89999
- "operationId": "getStudioJob",
90844
+ "patch": {
90845
+ "description": "Change how a saved job tells you about its alerts: `notify.email` false stops the email to the job's creator when an alert matches on a scheduled run; true turns it back on. Matched alerts are still recorded on each run. Free.",
90846
+ "operationId": "updateStudioJob",
90000
90847
  "parameters": [
90001
90848
  {
90002
90849
  "description": "The job's name: lower-case letters, digits and underscores, starting with a letter. It is also the name of the table that holds the job's result.",
@@ -90011,16 +90858,26 @@
90011
90858
  }
90012
90859
  }
90013
90860
  ],
90861
+ "requestBody": {
90862
+ "content": {
90863
+ "application/json": {
90864
+ "schema": {
90865
+ "$ref": "#/components/schemas/StudioJobUpdate"
90866
+ }
90867
+ }
90868
+ },
90869
+ "required": true
90870
+ },
90014
90871
  "responses": {
90015
90872
  "200": {
90016
90873
  "content": {
90017
90874
  "application/json": {
90018
90875
  "schema": {
90019
- "$ref": "#/components/schemas/StudioJobDetail"
90876
+ "$ref": "#/components/schemas/StudioJobSaved"
90020
90877
  }
90021
90878
  }
90022
90879
  },
90023
- "description": "The job, its runs and its result table"
90880
+ "description": "The job as saved"
90024
90881
  },
90025
90882
  "400": {
90026
90883
  "content": {
@@ -90103,7 +90960,7 @@
90103
90960
  "description": "`studio_unavailable` — Studio is not available right now."
90104
90961
  }
90105
90962
  },
90106
- "summary": "One job: its runs, what changed, and where its result is",
90963
+ "summary": "Change a job's settings",
90107
90964
  "tags": [
90108
90965
  "Studio"
90109
90966
  ]
@@ -90278,7 +91135,7 @@
90278
91135
  }
90279
91136
  }
90280
91137
  },
90281
- "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."
90282
91139
  },
90283
91140
  "404": {
90284
91141
  "content": {
@@ -90298,7 +91155,7 @@
90298
91155
  }
90299
91156
  }
90300
91157
  },
90301
- "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
91158
+ "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
90302
91159
  },
90303
91160
  "422": {
90304
91161
  "content": {
@@ -90318,7 +91175,7 @@
90318
91175
  }
90319
91176
  }
90320
91177
  },
90321
- "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
91178
+ "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`)."
90322
91179
  },
90323
91180
  "503": {
90324
91181
  "content": {
@@ -90337,7 +91194,7 @@
90337
91194
  ]
90338
91195
  },
90339
91196
  "post": {
90340
- "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`). One model trains at a time per organization, 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.",
90341
91198
  "operationId": "createStudioModel",
90342
91199
  "requestBody": {
90343
91200
  "content": {
@@ -90388,7 +91245,7 @@
90388
91245
  }
90389
91246
  }
90390
91247
  },
90391
- "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."
90392
91249
  },
90393
91250
  "404": {
90394
91251
  "content": {
@@ -90408,7 +91265,7 @@
90408
91265
  }
90409
91266
  }
90410
91267
  },
90411
- "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
91268
+ "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
90412
91269
  },
90413
91270
  "422": {
90414
91271
  "content": {
@@ -90428,7 +91285,17 @@
90428
91285
  }
90429
91286
  }
90430
91287
  },
90431
- "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
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`)."
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."
90432
91299
  },
90433
91300
  "503": {
90434
91301
  "content": {
@@ -90490,7 +91357,7 @@
90490
91357
  }
90491
91358
  }
90492
91359
  },
90493
- "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."
90494
91361
  },
90495
91362
  "404": {
90496
91363
  "content": {
@@ -90510,7 +91377,7 @@
90510
91377
  }
90511
91378
  }
90512
91379
  },
90513
- "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
91380
+ "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
90514
91381
  },
90515
91382
  "422": {
90516
91383
  "content": {
@@ -90530,7 +91397,7 @@
90530
91397
  }
90531
91398
  }
90532
91399
  },
90533
- "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
91400
+ "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`)."
90534
91401
  },
90535
91402
  "503": {
90536
91403
  "content": {
@@ -90549,6 +91416,102 @@
90549
91416
  ]
90550
91417
  }
90551
91418
  },
91419
+ "/v1/studio/models/published/{table}": {
91420
+ "get": {
91421
+ "description": "The report card of a prediction model ModelMatch trains and publishes for every organization; its scores are the published table `table`. If `hasCaution` is true, say `caution` FIRST: the model fell behind the best simple rule in part of the test period while staying better than random. Then: what it predicts (`predicts`), the `headline` as written, what it learned from and was tested on (`learnedFrom.sentence`), the lift sentences (`metrics.top10`, `metrics.top1`), the three `metrics.checks`, the data points that mattered (`dataPoints.used`, strongest first, with how much the model leaned on each — not how much it causes the outcome) and the ones it barely used (`dataPoints.rejected`), and the `caveats`. Never promise accuracy, and never call a score a probability unless `metrics.calibrated` is true. Free.",
91422
+ "operationId": "getStudioPublishedModel",
91423
+ "parameters": [
91424
+ {
91425
+ "description": "Its `mm_model_*` table.",
91426
+ "in": "path",
91427
+ "name": "table",
91428
+ "required": true,
91429
+ "schema": {
91430
+ "description": "Its `mm_model_*` table.",
91431
+ "example": "mm_model_refi_watch",
91432
+ "pattern": "^mm_[a-z][a-z0-9_]{1,58}$",
91433
+ "type": "string"
91434
+ }
91435
+ }
91436
+ ],
91437
+ "responses": {
91438
+ "200": {
91439
+ "content": {
91440
+ "application/json": {
91441
+ "schema": {
91442
+ "$ref": "#/components/schemas/StudioPublishedModelResult"
91443
+ }
91444
+ }
91445
+ },
91446
+ "description": "The report card"
91447
+ },
91448
+ "400": {
91449
+ "content": {
91450
+ "application/json": {
91451
+ "schema": {
91452
+ "$ref": "#/components/schemas/StudioError"
91453
+ }
91454
+ }
91455
+ },
91456
+ "description": "`invalid_request` — not a published table's name."
91457
+ },
91458
+ "401": {
91459
+ "content": {
91460
+ "application/json": {
91461
+ "schema": {
91462
+ "$ref": "#/components/schemas/StudioError"
91463
+ }
91464
+ }
91465
+ },
91466
+ "description": "`unauthenticated` — sign in, or send a valid credential."
91467
+ },
91468
+ "403": {
91469
+ "content": {
91470
+ "application/json": {
91471
+ "schema": {
91472
+ "$ref": "#/components/schemas/StudioError"
91473
+ }
91474
+ }
91475
+ },
91476
+ "description": "`no_organization` — select an organization; `studio_not_enabled` — Studio is not enabled for this account."
91477
+ },
91478
+ "404": {
91479
+ "content": {
91480
+ "application/json": {
91481
+ "schema": {
91482
+ "$ref": "#/components/schemas/StudioError"
91483
+ }
91484
+ }
91485
+ },
91486
+ "description": "`published_model_not_found` — no model of that name is published. The catalog lists what is."
91487
+ },
91488
+ "409": {
91489
+ "content": {
91490
+ "application/json": {
91491
+ "schema": {
91492
+ "$ref": "#/components/schemas/StudioError"
91493
+ }
91494
+ }
91495
+ },
91496
+ "description": "`published_unavailable` — published tables are switched off right now."
91497
+ },
91498
+ "503": {
91499
+ "content": {
91500
+ "application/json": {
91501
+ "schema": {
91502
+ "$ref": "#/components/schemas/StudioError"
91503
+ }
91504
+ }
91505
+ },
91506
+ "description": "`studio_unavailable` — try again in a minute."
91507
+ }
91508
+ },
91509
+ "summary": "A model ModelMatch publishes: its report card",
91510
+ "tags": [
91511
+ "Studio"
91512
+ ]
91513
+ }
91514
+ },
90552
91515
  "/v1/studio/models/{name}": {
90553
91516
  "delete": {
90554
91517
  "description": "Delete a model: the trained model, its report card and its scores table. The table leaves the catalog at once, and questions and jobs that read it stop working. A run in progress is stopped. This cannot be undone. Free.",
@@ -90606,7 +91569,7 @@
90606
91569
  }
90607
91570
  }
90608
91571
  },
90609
- "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."
90610
91573
  },
90611
91574
  "404": {
90612
91575
  "content": {
@@ -90626,7 +91589,7 @@
90626
91589
  }
90627
91590
  }
90628
91591
  },
90629
- "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
91592
+ "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
90630
91593
  },
90631
91594
  "422": {
90632
91595
  "content": {
@@ -90646,7 +91609,7 @@
90646
91609
  }
90647
91610
  }
90648
91611
  },
90649
- "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
91612
+ "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`)."
90650
91613
  },
90651
91614
  "503": {
90652
91615
  "content": {
@@ -90730,7 +91693,7 @@
90730
91693
  }
90731
91694
  }
90732
91695
  },
90733
- "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."
90734
91697
  },
90735
91698
  "404": {
90736
91699
  "content": {
@@ -90750,7 +91713,7 @@
90750
91713
  }
90751
91714
  }
90752
91715
  },
90753
- "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
91716
+ "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
90754
91717
  },
90755
91718
  "422": {
90756
91719
  "content": {
@@ -90770,7 +91733,7 @@
90770
91733
  }
90771
91734
  }
90772
91735
  },
90773
- "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
91736
+ "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`)."
90774
91737
  },
90775
91738
  "503": {
90776
91739
  "content": {
@@ -90791,7 +91754,7 @@
90791
91754
  },
90792
91755
  "/v1/studio/models/{name}/refresh": {
90793
91756
  "post": {
90794
- "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. 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 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.",
90795
91758
  "operationId": "refreshStudioModel",
90796
91759
  "parameters": [
90797
91760
  {
@@ -90866,7 +91829,7 @@
90866
91829
  }
90867
91830
  }
90868
91831
  },
90869
- "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."
90870
91833
  },
90871
91834
  "404": {
90872
91835
  "content": {
@@ -90886,7 +91849,7 @@
90886
91849
  }
90887
91850
  }
90888
91851
  },
90889
- "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — one model runs at a time per organization; `model_not_ready` — the model has no trained version to refresh."
91852
+ "description": "`model_exists` — the name is taken (pass `replace: true` for a new version); `model_limit_reached` — your organization is at its limit of models; `model_training_in_progress` — this model is already running (a model runs once at a time), or your organization already has as many models running as it may (`details.running` of `details.limit`, 3 by default): try again when one has finished; `model_not_ready` — the model has no trained version to refresh."
90890
91853
  },
90891
91854
  "422": {
90892
91855
  "content": {
@@ -90906,7 +91869,17 @@
90906
91869
  }
90907
91870
  }
90908
91871
  },
90909
- "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot is taken. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
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`)."
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."
90910
91883
  },
90911
91884
  "503": {
90912
91885
  "content": {