@model-match/api 3.83.2 → 3.83.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { T as client, n as createClient } from "../src-qihdBsot.mjs";
1
+ import { T as client, n as createClient } from "../src-B2K7EFVL.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -6657,7 +6657,7 @@ const refreshStudioModel = (options) => (options.client ?? client).post({
6657
6657
  /**
6658
6658
  * The result of a question that ran in the background
6659
6659
  *
6660
- * What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. Fetching is free, however often. A question that succeeded in the background is charged once, whether or not its result is fetched, 1 credit per row returned in `rows`, at least 5 per answered question: `credits.pending` on the result says what your organization is charged for it. Only the organization that asked can fetch a result.
6660
+ * What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. A question that succeeded in the background is charged once, 1 credit per row returned in `rows`, at least 5 per answered question, whether or not its result is fetched — and its rows are handed out only once it is paid for. The first fetch that returns its rows pays for it, unless it has already been paid for (`credits.charged`, `credits.remaining`); fetching it again after that is free. When your organization does not have the credits, the fetch answers `402` with no rows and nothing charged: add credits and fetch it again (within the hour the answer is kept) — it is charged once, never twice. Fetching while it is `running`, and a `failed` question, are free. Only the organization that asked can fetch a result.
6661
6661
  */
6662
6662
  const getStudioQueryResult = (options) => (options.client ?? client).get({
6663
6663
  security: [{
@@ -8078,7 +8078,7 @@ var Studio = class {
8078
8078
  /**
8079
8079
  * The result of a question that ran in the background
8080
8080
  *
8081
- * What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. Fetching is free, however often. A question that succeeded in the background is charged once, whether or not its result is fetched, 1 credit per row returned in `rows`, at least 5 per answered question: `credits.pending` on the result says what your organization is charged for it. Only the organization that asked can fetch a result.
8081
+ * What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. A question that succeeded in the background is charged once, 1 credit per row returned in `rows`, at least 5 per answered question, whether or not its result is fetched — and its rows are handed out only once it is paid for. The first fetch that returns its rows pays for it, unless it has already been paid for (`credits.charged`, `credits.remaining`); fetching it again after that is free. When your organization does not have the credits, the fetch answers `402` with no rows and nothing charged: add credits and fetch it again (within the hour the answer is kept) — it is charged once, never twice. Fetching while it is `running`, and a `failed` question, are free. Only the organization that asked can fetch a result.
8082
8082
  */
8083
8083
  static getStudioQueryResult(options) {
8084
8084
  return (options.client ?? client).get({
package/openapi.json CHANGED
@@ -49953,6 +49953,36 @@
49953
49953
  ],
49954
49954
  "type": "object"
49955
49955
  },
49956
+ "StudioPaymentRequired": {
49957
+ "properties": {
49958
+ "balance": {
49959
+ "description": "Credits available.",
49960
+ "type": "number"
49961
+ },
49962
+ "cost": {
49963
+ "description": "What the answer costs.",
49964
+ "type": "number"
49965
+ },
49966
+ "error": {
49967
+ "enum": [
49968
+ "payment_required"
49969
+ ],
49970
+ "type": "string"
49971
+ },
49972
+ "message": {
49973
+ "type": "string"
49974
+ },
49975
+ "reason": {
49976
+ "type": "string"
49977
+ }
49978
+ },
49979
+ "required": [
49980
+ "error",
49981
+ "balance",
49982
+ "cost"
49983
+ ],
49984
+ "type": "object"
49985
+ },
49956
49986
  "StudioPublishedModel": {
49957
49987
  "properties": {
49958
49988
  "asOf": {
@@ -50411,14 +50441,19 @@
50411
50441
  "description": "What this question costs.",
50412
50442
  "properties": {
50413
50443
  "charged": {
50414
- "description": "Always `0` here: a question in the background is not charged by this request.",
50444
+ "description": "Credits this request cost. `0` while the question is running, when it was already paid for (fetching a paid result again is free), and for a request from the web app or an account that is not metered. On `succeeded`, when the question had not been paid for yet, this fetch pays for it: exactly once, however often it is fetched.",
50415
50445
  "example": 0,
50416
50446
  "type": "number"
50417
50447
  },
50418
50448
  "pending": {
50419
- "description": "Credits your organization is charged, once, for this question — whether or not its result is fetched. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: exactly what it is charged, for the rows it returned. Absent when nothing will be charged: a question asked from the web app, or an account that is not metered.",
50449
+ "description": "Credits your organization is charged, once, for this question — whether or not its result is fetched — that have not been charged yet. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: only for a caller this request does not charge (the web app), exactly what the question is charged, for the rows it returned. Absent when nothing more will be charged.",
50420
50450
  "example": 5,
50421
50451
  "type": "number"
50452
+ },
50453
+ "remaining": {
50454
+ "description": "Credits left after this request's charge. Present only when this request charged something and the balance is known.",
50455
+ "example": 1995,
50456
+ "type": "number"
50422
50457
  }
50423
50458
  },
50424
50459
  "required": [
@@ -50494,14 +50529,19 @@
50494
50529
  "description": "What this question costs.",
50495
50530
  "properties": {
50496
50531
  "charged": {
50497
- "description": "Always `0` here: a question in the background is not charged by this request.",
50532
+ "description": "Credits this request cost. `0` while the question is running, when it was already paid for (fetching a paid result again is free), and for a request from the web app or an account that is not metered. On `succeeded`, when the question had not been paid for yet, this fetch pays for it: exactly once, however often it is fetched.",
50498
50533
  "example": 0,
50499
50534
  "type": "number"
50500
50535
  },
50501
50536
  "pending": {
50502
- "description": "Credits your organization is charged, once, for this question — whether or not its result is fetched. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: exactly what it is charged, for the rows it returned. Absent when nothing will be charged: a question asked from the web app, or an account that is not metered.",
50537
+ "description": "Credits your organization is charged, once, for this question — whether or not its result is fetched — that have not been charged yet. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: only for a caller this request does not charge (the web app), exactly what the question is charged, for the rows it returned. Absent when nothing more will be charged.",
50503
50538
  "example": 5,
50504
50539
  "type": "number"
50540
+ },
50541
+ "remaining": {
50542
+ "description": "Credits left after this request's charge. Present only when this request charged something and the balance is known.",
50543
+ "example": 1995,
50544
+ "type": "number"
50505
50545
  }
50506
50546
  },
50507
50547
  "required": [
@@ -51642,7 +51682,7 @@
51642
51682
  "info": {
51643
51683
  "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.",
51644
51684
  "title": "ModelMatch API",
51645
- "version": "3.167.2"
51685
+ "version": "3.167.3"
51646
51686
  },
51647
51687
  "openapi": "3.1.0",
51648
51688
  "paths": {
@@ -92255,7 +92295,7 @@
92255
92295
  },
92256
92296
  "/v1/studio/queries/{queryId}": {
92257
92297
  "get": {
92258
- "description": "What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. Fetching is free, however often. A question that succeeded in the background is charged once, whether or not its result is fetched, 1 credit per row returned in `rows`, at least 5 per answered question: `credits.pending` on the result says what your organization is charged for it. Only the organization that asked can fetch a result.",
92298
+ "description": "What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. A question that succeeded in the background is charged once, 1 credit per row returned in `rows`, at least 5 per answered question, whether or not its result is fetched — and its rows are handed out only once it is paid for. The first fetch that returns its rows pays for it, unless it has already been paid for (`credits.charged`, `credits.remaining`); fetching it again after that is free. When your organization does not have the credits, the fetch answers `402` with no rows and nothing charged: add credits and fetch it again (within the hour the answer is kept) — it is charged once, never twice. Fetching while it is `running`, and a `failed` question, are free. Only the organization that asked can fetch a result.",
92259
92299
  "operationId": "getStudioQueryResult",
92260
92300
  "parameters": [
92261
92301
  {
@@ -92302,6 +92342,16 @@
92302
92342
  },
92303
92343
  "description": "Authentication required."
92304
92344
  },
92345
+ "402": {
92346
+ "content": {
92347
+ "application/json": {
92348
+ "schema": {
92349
+ "$ref": "#/components/schemas/StudioPaymentRequired"
92350
+ }
92351
+ }
92352
+ },
92353
+ "description": "The question succeeded, but its answer has not been paid for and your organization does not have the credits for it (`cost`). No rows are returned and nothing was charged. Add credits and fetch it again: it does not need to be asked again."
92354
+ },
92305
92355
  "403": {
92306
92356
  "content": {
92307
92357
  "application/json": {
@@ -92360,7 +92410,7 @@
92360
92410
  }
92361
92411
  }
92362
92412
  },
92363
- "description": "`studio_unavailable` — Studio is not available right now."
92413
+ "description": "`studio_unavailable` — Studio is not available right now. `billing_unavailable` — the question succeeded, but the charge for its answer could not be made right now, so no rows were returned; fetch it again in a minute (it is never charged twice)."
92364
92414
  }
92365
92415
  },
92366
92416
  "summary": "The result of a question that ran in the background",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.83.2",
3
+ "version": "3.83.3",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [