@model-match/api 3.86.0 → 3.87.1
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 +10 -0
- package/dist/{index-BPIdPjKd.d.mts → index-DdnXUoGY.d.mts} +79 -30
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +4 -4
- package/dist/slim/index.mjs +4 -4
- package/dist/{src-Bcbt2n1a.mjs → src-DNF4Wm5N.mjs} +3 -3
- package/openapi.json +105 -34
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.87.1
|
|
6
|
+
|
|
7
|
+
- Regenerated from the latest API spec. No changes to the client itself.
|
|
8
|
+
|
|
9
|
+
## 3.87.0
|
|
10
|
+
|
|
11
|
+
- **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`.
|
|
12
|
+
- `getStudioCatalog` `limits.heavyJobs` reports the heavy limits and price, and `allowed` says whether your organization can use them. `limits.jobRunCredits` is the price of an ordinary run.
|
|
13
|
+
- Jobs show `size`, and a heavy run shows `size: "heavy"`. `updateStudioJob` accepts `notify`, `size` or both.
|
|
14
|
+
|
|
5
15
|
## 3.86.0
|
|
6
16
|
|
|
7
17
|
- **Run a ModelMatch program for your organization**: `listStudioPrograms` lists the programs you can run (company retention first) with their switches, tables and flat price. `startStudioProgramRun` takes a `name` and `options` (for company retention `states` and `countLeaseClosingsAsSold`) and answers `202`; read it with `getStudioProgramRun` (or `listStudioProgramRuns`) until it is `succeeded` — its first read then charges the price once and delivers the tables into your organization as `<name>`, `<name>_captured_by`, … — or `failed` (free). Needs the `feature.studio-programs` entitlement; `402` when your balance does not cover the price, `409 program_running` while your organization has a run in progress.
|
|
@@ -13925,6 +13925,31 @@ type StudioCatalog = {
|
|
|
13925
13925
|
* Rows a question returns when `limit` is not set.
|
|
13926
13926
|
*/
|
|
13927
13927
|
defaultRows: number;
|
|
13928
|
+
/**
|
|
13929
|
+
* A job saved with `size: heavy` gets these limits instead of `jobTimeoutSeconds` and `maxJobRows`. The SQL is the same: one read-only SELECT over the same tables. Absent while it cannot be reported.
|
|
13930
|
+
*/
|
|
13931
|
+
heavyJobs?: {
|
|
13932
|
+
/**
|
|
13933
|
+
* Whether your organization can save and run `heavy` jobs. False: a heavy job is refused with `403 entitlement_missing`; ask your ModelMatch admin to enable heavy runs.
|
|
13934
|
+
*/
|
|
13935
|
+
allowed: boolean;
|
|
13936
|
+
/**
|
|
13937
|
+
* Most rows a heavy job's result can hold.
|
|
13938
|
+
*/
|
|
13939
|
+
maxRows: number;
|
|
13940
|
+
/**
|
|
13941
|
+
* Credits one heavy job run that succeeds costs.
|
|
13942
|
+
*/
|
|
13943
|
+
runCredits: number;
|
|
13944
|
+
/**
|
|
13945
|
+
* How long one heavy job run may run.
|
|
13946
|
+
*/
|
|
13947
|
+
timeoutSeconds: number;
|
|
13948
|
+
};
|
|
13949
|
+
/**
|
|
13950
|
+
* Credits one job run that succeeds costs.
|
|
13951
|
+
*/
|
|
13952
|
+
jobRunCredits: number;
|
|
13928
13953
|
/**
|
|
13929
13954
|
* How long one job run may run.
|
|
13930
13955
|
*/
|
|
@@ -14034,7 +14059,7 @@ type StudioCatalog = {
|
|
|
14034
14059
|
};
|
|
14035
14060
|
type StudioError = {
|
|
14036
14061
|
/**
|
|
14037
|
-
* Stable code for the kind of failure: `not_a_select`, `multiple_statements`, `syntax_error`, `unknown_table`, `table_function_not_allowed`, `function_not_allowed`, `query_failed` (for example an unknown column), `timeout`, `result_too_large`, `resource_limit`, `invalid_job`, `job_not_found`, `job_exists`, `job_limit_reached`, `job_running`, `job_failed`, `busy`, `rate_limited`, `invalid_request` (the request itself is malformed), `no_organization`, `studio_unavailable`.
|
|
14062
|
+
* Stable code for the kind of failure: `not_a_select`, `multiple_statements`, `syntax_error`, `unknown_table`, `table_function_not_allowed`, `function_not_allowed`, `query_failed` (for example an unknown column), `timeout`, `result_too_large`, `resource_limit`, `invalid_job`, `job_not_found`, `job_exists`, `job_limit_reached`, `job_running`, `job_failed`, `busy`, `rate_limited`, `invalid_request` (the request itself is malformed), `no_organization`, `entitlement_missing` (a heavy job, which your organization has not enabled; `details.entitlementKey`), `entitlement_unavailable`, `studio_unavailable`.
|
|
14038
14063
|
*/
|
|
14039
14064
|
code: string;
|
|
14040
14065
|
/**
|
|
@@ -14049,6 +14074,10 @@ type StudioError = {
|
|
|
14049
14074
|
* The column name that does not exist.
|
|
14050
14075
|
*/
|
|
14051
14076
|
column?: string;
|
|
14077
|
+
/**
|
|
14078
|
+
* For `entitlement_missing`: what your ModelMatch admin would enable.
|
|
14079
|
+
*/
|
|
14080
|
+
entitlementKey?: string;
|
|
14052
14081
|
/**
|
|
14053
14082
|
* The function that is not available.
|
|
14054
14083
|
*/
|
|
@@ -14115,6 +14144,10 @@ type StudioJob = {
|
|
|
14115
14144
|
email: boolean;
|
|
14116
14145
|
};
|
|
14117
14146
|
schedule: 'manual' | 'daily' | 'weekly';
|
|
14147
|
+
/**
|
|
14148
|
+
* `heavy`: catalog `limits.heavyJobs` apply.
|
|
14149
|
+
*/
|
|
14150
|
+
size?: 'light' | 'heavy';
|
|
14118
14151
|
sql: string;
|
|
14119
14152
|
/**
|
|
14120
14153
|
* The table that holds the job's latest result, once it has run.
|
|
@@ -14223,6 +14256,10 @@ type StudioJobFailed = {
|
|
|
14223
14256
|
* The column name that does not exist.
|
|
14224
14257
|
*/
|
|
14225
14258
|
column?: string;
|
|
14259
|
+
/**
|
|
14260
|
+
* For `entitlement_missing`: what your ModelMatch admin would enable.
|
|
14261
|
+
*/
|
|
14262
|
+
entitlementKey?: string;
|
|
14226
14263
|
/**
|
|
14227
14264
|
* The function that is not available.
|
|
14228
14265
|
*/
|
|
@@ -14299,6 +14336,10 @@ type StudioJobRequest = {
|
|
|
14299
14336
|
* `manual` — runs only when asked. `daily` — about every 24 hours. `weekly` — every 7 days. Counted from when the job is saved.
|
|
14300
14337
|
*/
|
|
14301
14338
|
schedule?: 'manual' | 'daily' | 'weekly';
|
|
14339
|
+
/**
|
|
14340
|
+
* `heavy`: more time and rows per run (catalog `limits.heavyJobs`), if enabled for the organization.
|
|
14341
|
+
*/
|
|
14342
|
+
size?: 'light' | 'heavy';
|
|
14302
14343
|
/**
|
|
14303
14344
|
* One read-only SELECT, checked when the job is saved. It may use `$as_of`, the date of the run (a DATE), so the same job can be re-run for any day. Required unless copying.
|
|
14304
14345
|
*/
|
|
@@ -14403,6 +14444,10 @@ type StudioJobRun = {
|
|
|
14403
14444
|
finishedAt?: string;
|
|
14404
14445
|
rowCount?: number;
|
|
14405
14446
|
runId: string;
|
|
14447
|
+
/**
|
|
14448
|
+
* `heavy`: ran with a heavy job's limits and price.
|
|
14449
|
+
*/
|
|
14450
|
+
size?: 'heavy';
|
|
14406
14451
|
startedAt: string;
|
|
14407
14452
|
status: 'running' | 'succeeded' | 'failed';
|
|
14408
14453
|
trigger: 'manual' | 'schedule';
|
|
@@ -14434,9 +14479,13 @@ type StudioJobSaved = {
|
|
|
14434
14479
|
data: StudioJob;
|
|
14435
14480
|
};
|
|
14436
14481
|
type StudioJobUpdate = {
|
|
14437
|
-
notify
|
|
14482
|
+
notify?: {
|
|
14438
14483
|
email: boolean;
|
|
14439
14484
|
};
|
|
14485
|
+
/**
|
|
14486
|
+
* `heavy`: more time and rows per run (catalog `limits.heavyJobs`), if enabled for the organization.
|
|
14487
|
+
*/
|
|
14488
|
+
size?: 'light' | 'heavy';
|
|
14440
14489
|
};
|
|
14441
14490
|
type StudioModel = {
|
|
14442
14491
|
asOf: string;
|
|
@@ -32973,7 +33022,7 @@ type GetStudioCatalogErrors = {
|
|
|
32973
33022
|
*/
|
|
32974
33023
|
401: StudioError;
|
|
32975
33024
|
/**
|
|
32976
|
-
* `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.
|
|
33025
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
32977
33026
|
*/
|
|
32978
33027
|
403: StudioError;
|
|
32979
33028
|
/**
|
|
@@ -32993,7 +33042,7 @@ type GetStudioCatalogErrors = {
|
|
|
32993
33042
|
*/
|
|
32994
33043
|
429: StudioError;
|
|
32995
33044
|
/**
|
|
32996
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
33045
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
32997
33046
|
*/
|
|
32998
33047
|
503: StudioError;
|
|
32999
33048
|
};
|
|
@@ -33021,7 +33070,7 @@ type ListStudioJobsErrors = {
|
|
|
33021
33070
|
*/
|
|
33022
33071
|
401: StudioError;
|
|
33023
33072
|
/**
|
|
33024
|
-
* `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.
|
|
33073
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33025
33074
|
*/
|
|
33026
33075
|
403: StudioError;
|
|
33027
33076
|
/**
|
|
@@ -33041,7 +33090,7 @@ type ListStudioJobsErrors = {
|
|
|
33041
33090
|
*/
|
|
33042
33091
|
429: StudioError;
|
|
33043
33092
|
/**
|
|
33044
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
33093
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
33045
33094
|
*/
|
|
33046
33095
|
503: StudioError;
|
|
33047
33096
|
};
|
|
@@ -33069,7 +33118,7 @@ type CreateStudioJobErrors = {
|
|
|
33069
33118
|
*/
|
|
33070
33119
|
401: StudioError;
|
|
33071
33120
|
/**
|
|
33072
|
-
* `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.
|
|
33121
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33073
33122
|
*/
|
|
33074
33123
|
403: StudioError;
|
|
33075
33124
|
/**
|
|
@@ -33089,7 +33138,7 @@ type CreateStudioJobErrors = {
|
|
|
33089
33138
|
*/
|
|
33090
33139
|
429: StudioError;
|
|
33091
33140
|
/**
|
|
33092
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
33141
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
33093
33142
|
*/
|
|
33094
33143
|
503: StudioError;
|
|
33095
33144
|
};
|
|
@@ -33122,7 +33171,7 @@ type DeleteStudioJobErrors = {
|
|
|
33122
33171
|
*/
|
|
33123
33172
|
401: StudioError;
|
|
33124
33173
|
/**
|
|
33125
|
-
* `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.
|
|
33174
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33126
33175
|
*/
|
|
33127
33176
|
403: StudioError;
|
|
33128
33177
|
/**
|
|
@@ -33142,7 +33191,7 @@ type DeleteStudioJobErrors = {
|
|
|
33142
33191
|
*/
|
|
33143
33192
|
429: StudioError;
|
|
33144
33193
|
/**
|
|
33145
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
33194
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
33146
33195
|
*/
|
|
33147
33196
|
503: StudioError;
|
|
33148
33197
|
};
|
|
@@ -33175,7 +33224,7 @@ type GetStudioJobErrors = {
|
|
|
33175
33224
|
*/
|
|
33176
33225
|
401: StudioError;
|
|
33177
33226
|
/**
|
|
33178
|
-
* `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.
|
|
33227
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33179
33228
|
*/
|
|
33180
33229
|
403: StudioError;
|
|
33181
33230
|
/**
|
|
@@ -33195,7 +33244,7 @@ type GetStudioJobErrors = {
|
|
|
33195
33244
|
*/
|
|
33196
33245
|
429: StudioError;
|
|
33197
33246
|
/**
|
|
33198
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
33247
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
33199
33248
|
*/
|
|
33200
33249
|
503: StudioError;
|
|
33201
33250
|
};
|
|
@@ -33228,7 +33277,7 @@ type UpdateStudioJobErrors = {
|
|
|
33228
33277
|
*/
|
|
33229
33278
|
401: StudioError;
|
|
33230
33279
|
/**
|
|
33231
|
-
* `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.
|
|
33280
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33232
33281
|
*/
|
|
33233
33282
|
403: StudioError;
|
|
33234
33283
|
/**
|
|
@@ -33248,7 +33297,7 @@ type UpdateStudioJobErrors = {
|
|
|
33248
33297
|
*/
|
|
33249
33298
|
429: StudioError;
|
|
33250
33299
|
/**
|
|
33251
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
33300
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
33252
33301
|
*/
|
|
33253
33302
|
503: StudioError;
|
|
33254
33303
|
};
|
|
@@ -33281,7 +33330,7 @@ type RunStudioJobErrors = {
|
|
|
33281
33330
|
*/
|
|
33282
33331
|
401: StudioError;
|
|
33283
33332
|
/**
|
|
33284
|
-
* `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.
|
|
33333
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33285
33334
|
*/
|
|
33286
33335
|
403: StudioError;
|
|
33287
33336
|
/**
|
|
@@ -33301,7 +33350,7 @@ type RunStudioJobErrors = {
|
|
|
33301
33350
|
*/
|
|
33302
33351
|
429: StudioError;
|
|
33303
33352
|
/**
|
|
33304
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
33353
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
33305
33354
|
*/
|
|
33306
33355
|
503: StudioError;
|
|
33307
33356
|
};
|
|
@@ -33920,7 +33969,7 @@ type GetStudioQueryResultErrors = {
|
|
|
33920
33969
|
*/
|
|
33921
33970
|
402: StudioPaymentRequired;
|
|
33922
33971
|
/**
|
|
33923
|
-
* `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.
|
|
33972
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33924
33973
|
*/
|
|
33925
33974
|
403: StudioError;
|
|
33926
33975
|
/**
|
|
@@ -33968,7 +34017,7 @@ type RunStudioQueryErrors = {
|
|
|
33968
34017
|
*/
|
|
33969
34018
|
401: StudioError;
|
|
33970
34019
|
/**
|
|
33971
|
-
* `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.
|
|
34020
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
33972
34021
|
*/
|
|
33973
34022
|
403: StudioError;
|
|
33974
34023
|
/**
|
|
@@ -33988,7 +34037,7 @@ type RunStudioQueryErrors = {
|
|
|
33988
34037
|
*/
|
|
33989
34038
|
429: StudioError;
|
|
33990
34039
|
/**
|
|
33991
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
34040
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
33992
34041
|
*/
|
|
33993
34042
|
503: StudioError;
|
|
33994
34043
|
};
|
|
@@ -34020,7 +34069,7 @@ type ListStudioUploadsErrors = {
|
|
|
34020
34069
|
*/
|
|
34021
34070
|
401: StudioError;
|
|
34022
34071
|
/**
|
|
34023
|
-
* `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.
|
|
34072
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
34024
34073
|
*/
|
|
34025
34074
|
403: StudioError;
|
|
34026
34075
|
/**
|
|
@@ -34040,7 +34089,7 @@ type ListStudioUploadsErrors = {
|
|
|
34040
34089
|
*/
|
|
34041
34090
|
429: StudioError;
|
|
34042
34091
|
/**
|
|
34043
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
34092
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
34044
34093
|
*/
|
|
34045
34094
|
503: StudioError;
|
|
34046
34095
|
};
|
|
@@ -34068,7 +34117,7 @@ type CreateStudioUploadErrors = {
|
|
|
34068
34117
|
*/
|
|
34069
34118
|
401: StudioError;
|
|
34070
34119
|
/**
|
|
34071
|
-
* `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.
|
|
34120
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
34072
34121
|
*/
|
|
34073
34122
|
403: StudioError;
|
|
34074
34123
|
/**
|
|
@@ -34088,7 +34137,7 @@ type CreateStudioUploadErrors = {
|
|
|
34088
34137
|
*/
|
|
34089
34138
|
429: StudioError;
|
|
34090
34139
|
/**
|
|
34091
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
34140
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
34092
34141
|
*/
|
|
34093
34142
|
503: StudioError;
|
|
34094
34143
|
};
|
|
@@ -34121,7 +34170,7 @@ type DeleteStudioUploadErrors = {
|
|
|
34121
34170
|
*/
|
|
34122
34171
|
401: StudioError;
|
|
34123
34172
|
/**
|
|
34124
|
-
* `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.
|
|
34173
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
34125
34174
|
*/
|
|
34126
34175
|
403: StudioError;
|
|
34127
34176
|
/**
|
|
@@ -34141,7 +34190,7 @@ type DeleteStudioUploadErrors = {
|
|
|
34141
34190
|
*/
|
|
34142
34191
|
429: StudioError;
|
|
34143
34192
|
/**
|
|
34144
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
34193
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
34145
34194
|
*/
|
|
34146
34195
|
503: StudioError;
|
|
34147
34196
|
};
|
|
@@ -34174,7 +34223,7 @@ type CompleteStudioUploadErrors = {
|
|
|
34174
34223
|
*/
|
|
34175
34224
|
401: StudioError;
|
|
34176
34225
|
/**
|
|
34177
|
-
* `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.
|
|
34226
|
+
* `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. `entitlement_missing` — saving, switching to or running a `heavy` job needs heavy runs enabled for your organization (`details.entitlementKey`): ask your ModelMatch admin, or use `size: light`.
|
|
34178
34227
|
*/
|
|
34179
34228
|
403: StudioError;
|
|
34180
34229
|
/**
|
|
@@ -34194,7 +34243,7 @@ type CompleteStudioUploadErrors = {
|
|
|
34194
34243
|
*/
|
|
34195
34244
|
429: StudioError;
|
|
34196
34245
|
/**
|
|
34197
|
-
* `studio_unavailable` — Studio is not available right now.
|
|
34246
|
+
* `studio_unavailable` — Studio is not available right now. `entitlement_unavailable` — whether your organization can run heavy jobs could not be confirmed; nothing was saved or started. Try again in a minute.
|
|
34198
34247
|
*/
|
|
34199
34248
|
503: StudioError;
|
|
34200
34249
|
};
|
|
@@ -36149,7 +36198,7 @@ declare class Studio {
|
|
|
36149
36198
|
/**
|
|
36150
36199
|
* Save a question as a job
|
|
36151
36200
|
*
|
|
36152
|
-
* 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. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.
|
|
36201
|
+
* 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. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same.
|
|
36153
36202
|
*/
|
|
36154
36203
|
static createStudioJob<ThrowOnError extends boolean = false>(options: Options<CreateStudioJobData, ThrowOnError>): RequestResult<CreateStudioJobResponses, CreateStudioJobErrors, ThrowOnError>;
|
|
36155
36204
|
/**
|
|
@@ -36167,13 +36216,13 @@ declare class Studio {
|
|
|
36167
36216
|
/**
|
|
36168
36217
|
* Change a job's settings
|
|
36169
36218
|
*
|
|
36170
|
-
* 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.
|
|
36219
|
+
* 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. `size` switches it between `light` and `heavy` (`heavy` needs heavy runs enabled). Free.
|
|
36171
36220
|
*/
|
|
36172
36221
|
static updateStudioJob<ThrowOnError extends boolean = false>(options: Options<UpdateStudioJobData, ThrowOnError>): RequestResult<UpdateStudioJobResponses, UpdateStudioJobErrors, ThrowOnError>;
|
|
36173
36222
|
/**
|
|
36174
36223
|
* Run a job now
|
|
36175
36224
|
*
|
|
36176
|
-
* Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds; a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.
|
|
36225
|
+
* Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.
|
|
36177
36226
|
*/
|
|
36178
36227
|
static runStudioJob<ThrowOnError extends boolean = false>(options: Options<RunStudioJobData, ThrowOnError>): RequestResult<RunStudioJobResponses, RunStudioJobErrors, ThrowOnError>;
|
|
36179
36228
|
/**
|