@model-match/api 3.87.0 → 3.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/RELEASE_NOTES.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  Changes to `@model-match/api` that affect how you use it. Each version is generated from the ModelMatch API's OpenAPI spec, so new endpoints and fields appear in the [API reference](https://docs.modelmatch.com/developers) as they ship.
4
4
 
5
+ ## 3.88.0
6
+
7
+ - **Studio models: neighborhood data is available to every organization.** Neighborhood data points, priority boosts on ZIP code or city, and direction rules on a place no longer need to be enabled. `createStudioModel`, `refreshStudioModel` and `startStudioProgramRun` no longer answer `403 entitlement_missing` for them. The report card still notes that geography needs a fair-lending review before you decide who gets an offer.
8
+ - **Studio models never use protected characteristics.** A data point, one of your own columns, a direction rule or a priority boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance is refused with `400 protected_characteristic`. `details.fields` names each one and `details.characteristics` says what they are. Refreshing a model that has one fails with the same error.
9
+ - `getStudioModelOptions` returns `data.protectedCharacteristics`, the list of what a model can never use. `neighborhoodDataAllowed` is now always `true` and is deprecated.
10
+ - Studio error `details` no longer include `dataPoints`, `boostColumns` or `directionRules`. They now include `fields` and `characteristics`.
11
+
12
+ ## 3.87.1
13
+
14
+ - Regenerated from the latest API spec. No changes to the client itself.
15
+
5
16
  ## 3.87.0
6
17
 
7
18
  - **Heavy Studio jobs**: `createStudioJob` and `updateStudioJob` take `size: "heavy"`, for organizations with heavy runs enabled. Each run then gets up to 15 minutes and 5,000,000 rows, and costs 100 credits instead of 10. The SQL rules stay the same. Without heavy runs enabled you get `403 entitlement_missing`.
@@ -14937,21 +14937,20 @@ type StudioModelDeleted = {
14937
14937
  };
14938
14938
  type StudioModelError = {
14939
14939
  /**
14940
- * Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Access: `entitlement_missing` (the model uses neighborhood data points, or a boost or direction on where a home is, that your organization has not enabled; `details.dataPoints`, `details.boostColumns`, `details.directionRules`), `entitlement_unavailable`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.
14940
+ * Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.
14941
14941
  */
14942
14942
  code: string;
14943
14943
  /**
14944
- * 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.
14944
+ * What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`); for `protected_characteristic`, every offending field (`fields`) and what they are about (`characteristics`).
14945
14945
  */
14946
14946
  details?: {
14947
14947
  availableTables?: Array<string>;
14948
- boostColumns?: Array<string>;
14948
+ characteristics?: Array<string>;
14949
14949
  column?: string;
14950
14950
  dataPoint?: string;
14951
- dataPoints?: Array<string>;
14952
- directionRules?: Array<string>;
14953
14951
  entitlementKey?: string;
14954
14952
  examples?: number;
14953
+ fields?: Array<string>;
14955
14954
  function?: string;
14956
14955
  limit?: number;
14957
14956
  matchRate?: number;
@@ -15008,6 +15007,16 @@ type StudioModelOptions = {
15008
15007
  label: string;
15009
15008
  requires: Array<string>;
15010
15009
  }>;
15010
+ /**
15011
+ * What a model can never use, whoever asks: a data point, one of your own columns, a direction rule or a priority boost about one of these is refused with `400 protected_characteristic`. Nothing unlocks it.
15012
+ */
15013
+ protectedCharacteristics?: {
15014
+ characteristics: Array<{
15015
+ id: string;
15016
+ label: string;
15017
+ }>;
15018
+ note: string;
15019
+ };
15011
15020
  /**
15012
15021
  * The data points a model can use, grouped by theme. Offer the themes and ask which data points the person believes matter.
15013
15022
  */
@@ -15022,7 +15031,7 @@ type StudioModelOptions = {
15022
15031
  kind: 'number' | 'category';
15023
15032
  label: string;
15024
15033
  /**
15025
- * 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.
15034
+ * True for data points about the neighbourhood: available to every organization, but geography can act as a proxy for protected classes, so a model that uses them should have a fair-lending review before it decides who gets an offer (the report card says so).
15026
15035
  */
15027
15036
  needsFairLendingReview: boolean;
15028
15037
  /**
@@ -15076,7 +15085,7 @@ type StudioModelOptions = {
15076
15085
  yourOwnDataPoints: string;
15077
15086
  };
15078
15087
  /**
15079
- * 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.
15088
+ * How a model can be weighted: `recentHistory` settings, `directions` (on data points with `acceptsDirection`), and the scores-table `columns` a priority boost may test. A boost on a column with `needsFairLendingReview` (ZIP code, city) is allowed; the report card adds a fair-lending caveat for it. `geographicColumnWords`: words that mark one of your own columns as describing where a home is.
15080
15089
  */
15081
15090
  weighting?: {
15082
15091
  boosts: {
@@ -15116,7 +15125,7 @@ type StudioModelOptions = {
15116
15125
  type StudioModelOptionsResult = {
15117
15126
  data: StudioModelOptions;
15118
15127
  /**
15119
- * 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.
15128
+ * Deprecated: always true. Neighborhood data points (`needsFairLendingReview`), ZIP code and city boosts and directions on a place are available to every organization. What a model can never use is listed in `data.protectedCharacteristics`.
15120
15129
  */
15121
15130
  neighborhoodDataAllowed: boolean;
15122
15131
  pricing: {
@@ -15240,13 +15249,12 @@ type StudioProgramError = {
15240
15249
  */
15241
15250
  details?: {
15242
15251
  availableTables?: Array<string>;
15243
- boostColumns?: Array<string>;
15252
+ characteristics?: Array<string>;
15244
15253
  column?: string;
15245
15254
  dataPoint?: string;
15246
- dataPoints?: Array<string>;
15247
- directionRules?: Array<string>;
15248
15255
  entitlementKey?: string;
15249
15256
  examples?: number;
15257
+ fields?: Array<string>;
15250
15258
  function?: string;
15251
15259
  limit?: number;
15252
15260
  matchRate?: number;
@@ -33374,7 +33382,7 @@ type ListStudioModelsData = {
33374
33382
  };
33375
33383
  type ListStudioModelsErrors = {
33376
33384
  /**
33377
- * The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead.
33385
+ * The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead.
33378
33386
  */
33379
33387
  400: StudioModelError;
33380
33388
  /**
@@ -33382,7 +33390,7 @@ type ListStudioModelsErrors = {
33382
33390
  */
33383
33391
  401: StudioModelError;
33384
33392
  /**
33385
- * `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.
33393
+ * `no_organization` — models belong to an organization; select one and try again.
33386
33394
  */
33387
33395
  403: StudioModelError;
33388
33396
  /**
@@ -33422,7 +33430,7 @@ type CreateStudioModelData = {
33422
33430
  };
33423
33431
  type CreateStudioModelErrors = {
33424
33432
  /**
33425
- * The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead.
33433
+ * The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead.
33426
33434
  */
33427
33435
  400: StudioModelError;
33428
33436
  /**
@@ -33430,7 +33438,7 @@ type CreateStudioModelErrors = {
33430
33438
  */
33431
33439
  401: StudioModelError;
33432
33440
  /**
33433
- * `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.
33441
+ * `no_organization` — models belong to an organization; select one and try again.
33434
33442
  */
33435
33443
  403: StudioModelError;
33436
33444
  /**
@@ -33449,10 +33457,6 @@ type CreateStudioModelErrors = {
33449
33457
  * `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`).
33450
33458
  */
33451
33459
  429: StudioModelError;
33452
- /**
33453
- * `entitlement_unavailable` — whether your organization can train on neighborhood data could not be confirmed right now; nothing was started. Try again in a minute.
33454
- */
33455
- 502: StudioModelError;
33456
33460
  /**
33457
33461
  * `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice).
33458
33462
  */
@@ -33474,7 +33478,7 @@ type GetStudioModelOptionsData = {
33474
33478
  };
33475
33479
  type GetStudioModelOptionsErrors = {
33476
33480
  /**
33477
- * The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead.
33481
+ * The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead.
33478
33482
  */
33479
33483
  400: StudioModelError;
33480
33484
  /**
@@ -33482,7 +33486,7 @@ type GetStudioModelOptionsErrors = {
33482
33486
  */
33483
33487
  401: StudioModelError;
33484
33488
  /**
33485
- * `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.
33489
+ * `no_organization` — models belong to an organization; select one and try again.
33486
33490
  */
33487
33491
  403: StudioModelError;
33488
33492
  /**
@@ -33572,7 +33576,7 @@ type DeleteStudioModelData = {
33572
33576
  };
33573
33577
  type DeleteStudioModelErrors = {
33574
33578
  /**
33575
- * The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead.
33579
+ * The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead.
33576
33580
  */
33577
33581
  400: StudioModelError;
33578
33582
  /**
@@ -33580,7 +33584,7 @@ type DeleteStudioModelErrors = {
33580
33584
  */
33581
33585
  401: StudioModelError;
33582
33586
  /**
33583
- * `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.
33587
+ * `no_organization` — models belong to an organization; select one and try again.
33584
33588
  */
33585
33589
  403: StudioModelError;
33586
33590
  /**
@@ -33625,7 +33629,7 @@ type GetStudioModelData = {
33625
33629
  };
33626
33630
  type GetStudioModelErrors = {
33627
33631
  /**
33628
- * The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead.
33632
+ * The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead.
33629
33633
  */
33630
33634
  400: StudioModelError;
33631
33635
  /**
@@ -33637,7 +33641,7 @@ type GetStudioModelErrors = {
33637
33641
  */
33638
33642
  402: StudioModelPaymentRequired;
33639
33643
  /**
33640
- * `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.
33644
+ * `no_organization` — models belong to an organization; select one and try again.
33641
33645
  */
33642
33646
  403: StudioModelError;
33643
33647
  /**
@@ -33682,7 +33686,7 @@ type RefreshStudioModelData = {
33682
33686
  };
33683
33687
  type RefreshStudioModelErrors = {
33684
33688
  /**
33685
- * The request cannot be used: it is malformed, names an outcome or data point we do not have, or asks for a data point that could show the model the answer. `error` says which and what to use instead.
33689
+ * The request cannot be used: it is malformed, names an outcome or data point we do not have, asks for a data point that could show the model the answer, or uses a protected characteristic (`protected_characteristic`, `details.fields`; also on refreshing a model that has one). `error` says which and what to use instead.
33686
33690
  */
33687
33691
  400: StudioModelError;
33688
33692
  /**
@@ -33694,7 +33698,7 @@ type RefreshStudioModelErrors = {
33694
33698
  */
33695
33699
  402: StudioModelPaymentRequired;
33696
33700
  /**
33697
- * `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.
33701
+ * `no_organization` — models belong to an organization; select one and try again.
33698
33702
  */
33699
33703
  403: StudioModelError;
33700
33704
  /**
@@ -33713,10 +33717,6 @@ type RefreshStudioModelErrors = {
33713
33717
  * `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`).
33714
33718
  */
33715
33719
  429: StudioModelError;
33716
- /**
33717
- * `entitlement_unavailable` — whether your organization can train on neighborhood data could not be confirmed right now; nothing was started. Try again in a minute.
33718
- */
33719
- 502: StudioModelError;
33720
33720
  /**
33721
33721
  * `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice).
33722
33722
  */
@@ -36234,7 +36234,7 @@ declare class Studio {
36234
36234
  /**
36235
36235
  * Create a prediction model and start training it
36236
36236
  *
36237
- * Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. Data points marked `needsFairLendingReview` describe the neighborhood and need neighborhood data enabled for the organization (`neighborhoodDataAllowed` on getStudioModelOptions): without it a model that uses them — including one that leaves `features` out, which means every data point — is refused with `403 entitlement_missing`, naming them in `details.dataPoints`; so is a priority boost on ZIP code or city, or a direction rule on a place (`details.boostColumns`, `details.directionRules`); tell the person to ask their ModelMatch admin, or pick other data points. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Neighborhood data points, boosts or directions it carries need neighborhood data enabled like your own (or override `features` / `boosts` to leave them out). Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.
36237
+ * Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. A model may never use a protected characteristic — race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance — as a data point, an own column, a direction rule or a boost: a column named for one is refused with `400 protected_characteristic`, naming them in `details.fields`; nothing unlocks it. Neighborhood data points (`needsFairLendingReview`), ZIP code and city boosts and directions on a place are allowed for everyone; the report card adds a fair-lending caveat. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.
36238
36238
  */
36239
36239
  static createStudioModel<ThrowOnError extends boolean = false>(options: Options<CreateStudioModelData, ThrowOnError>): RequestResult<CreateStudioModelResponses, CreateStudioModelErrors, ThrowOnError>;
36240
36240
  /**
@@ -36264,7 +36264,7 @@ declare class Studio {
36264
36264
  /**
36265
36265
  * Refresh a model's scores with the latest data
36266
36266
  *
36267
- * 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.
36267
+ * Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves); `expectedMinutes` says how long it is expected to take, and `progress` which step it is on. Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A model that uses a protected characteristic is never refreshed or retrained (`400 protected_characteristic`): create a new version without it. While it retrains the model stays `ready` with its current `card` and scores, and `progress` shows the training exactly as for a new model — the numbered step, the time left and the live `progress.trace`; the new card (with its final `trace`) replaces the current one when the run is published. A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.
36268
36268
  */
36269
36269
  static refreshStudioModel<ThrowOnError extends boolean = false>(options: Options<RefreshStudioModelData, ThrowOnError>): RequestResult<RefreshStudioModelResponses, RefreshStudioModelErrors, ThrowOnError>;
36270
36270
  /**