@model-match/api 3.99.0 → 3.100.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 +6 -0
- package/dist/{index-Bb5VRpvP.d.mts → index-Dpb6EF6m.d.mts} +279 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +30 -6
- package/dist/slim/index.mjs +74 -6
- package/dist/{src-lZgFLTz5.mjs → src-D6M4H3IA.mjs} +80 -4
- package/openapi.json +561 -6
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -55518,6 +55518,58 @@
|
|
|
55518
55518
|
],
|
|
55519
55519
|
"type": "object"
|
|
55520
55520
|
},
|
|
55521
|
+
"StudioTable": {
|
|
55522
|
+
"properties": {
|
|
55523
|
+
"data": {
|
|
55524
|
+
"$ref": "#/components/schemas/StudioUpload"
|
|
55525
|
+
}
|
|
55526
|
+
},
|
|
55527
|
+
"required": [
|
|
55528
|
+
"data"
|
|
55529
|
+
],
|
|
55530
|
+
"type": "object"
|
|
55531
|
+
},
|
|
55532
|
+
"StudioTableCreate": {
|
|
55533
|
+
"additionalProperties": false,
|
|
55534
|
+
"properties": {
|
|
55535
|
+
"description": {
|
|
55536
|
+
"description": "What the table holds, in a sentence. Shown in the catalog; generated from the file name when omitted.",
|
|
55537
|
+
"maxLength": 500,
|
|
55538
|
+
"type": "string"
|
|
55539
|
+
},
|
|
55540
|
+
"fromFileId": {
|
|
55541
|
+
"description": "The file in your files library to load: a CSV, TSV, Excel (.xlsx) or Parquet file you can open, whose status is `ready`.",
|
|
55542
|
+
"example": "file_3f2a9c0d4b5e6f708192a3b4c5d6e7f8",
|
|
55543
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
55544
|
+
"type": "string"
|
|
55545
|
+
},
|
|
55546
|
+
"name": {
|
|
55547
|
+
"description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
|
|
55548
|
+
"example": "closed_loans",
|
|
55549
|
+
"pattern": "^[a-z][a-z0-9_]{0,55}$",
|
|
55550
|
+
"type": "string"
|
|
55551
|
+
}
|
|
55552
|
+
},
|
|
55553
|
+
"required": [
|
|
55554
|
+
"fromFileId",
|
|
55555
|
+
"name"
|
|
55556
|
+
],
|
|
55557
|
+
"type": "object"
|
|
55558
|
+
},
|
|
55559
|
+
"StudioTableList": {
|
|
55560
|
+
"properties": {
|
|
55561
|
+
"data": {
|
|
55562
|
+
"items": {
|
|
55563
|
+
"$ref": "#/components/schemas/StudioUpload"
|
|
55564
|
+
},
|
|
55565
|
+
"type": "array"
|
|
55566
|
+
}
|
|
55567
|
+
},
|
|
55568
|
+
"required": [
|
|
55569
|
+
"data"
|
|
55570
|
+
],
|
|
55571
|
+
"type": "object"
|
|
55572
|
+
},
|
|
55521
55573
|
"StudioUpload": {
|
|
55522
55574
|
"properties": {
|
|
55523
55575
|
"bytes": {
|
|
@@ -55630,6 +55682,15 @@
|
|
|
55630
55682
|
"nullable": true,
|
|
55631
55683
|
"type": "number"
|
|
55632
55684
|
},
|
|
55685
|
+
"sourceFileDeleted": {
|
|
55686
|
+
"description": "`true` when the table's source file has since been deleted. The table keeps working: deleting a file never deletes the tables made from it.",
|
|
55687
|
+
"type": "boolean"
|
|
55688
|
+
},
|
|
55689
|
+
"sourceFileId": {
|
|
55690
|
+
"description": "The file in your files library the table was loaded from (`POST /v1/studio/tables`); `null` for a table made by sending a file to an upload URL.",
|
|
55691
|
+
"nullable": true,
|
|
55692
|
+
"type": "string"
|
|
55693
|
+
},
|
|
55633
55694
|
"status": {
|
|
55634
55695
|
"description": "`pending` — waiting for the file. `ingesting` — the file is being read; call complete again. `ready` — it is a table. `failed` — the file was refused (`error` says why); create the upload again with a corrected file.",
|
|
55635
55696
|
"enum": [
|
|
@@ -55675,7 +55736,9 @@
|
|
|
55675
55736
|
"columns",
|
|
55676
55737
|
"warnings",
|
|
55677
55738
|
"joinHints",
|
|
55678
|
-
"bytes"
|
|
55739
|
+
"bytes",
|
|
55740
|
+
"sourceFileId",
|
|
55741
|
+
"sourceFileDeleted"
|
|
55679
55742
|
],
|
|
55680
55743
|
"type": "object"
|
|
55681
55744
|
},
|
|
@@ -57477,7 +57540,7 @@
|
|
|
57477
57540
|
"info": {
|
|
57478
57541
|
"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.",
|
|
57479
57542
|
"title": "ModelMatch API",
|
|
57480
|
-
"version": "3.
|
|
57543
|
+
"version": "3.196.0"
|
|
57481
57544
|
},
|
|
57482
57545
|
"openapi": "3.1.0",
|
|
57483
57546
|
"paths": {
|
|
@@ -102296,9 +102359,501 @@
|
|
|
102296
102359
|
]
|
|
102297
102360
|
}
|
|
102298
102361
|
},
|
|
102362
|
+
"/v1/studio/tables": {
|
|
102363
|
+
"get": {
|
|
102364
|
+
"description": "Every table your organization made from a file: its name, the table it is queried as, its columns and row count, when it was made and by whom, its status, and the file it was loaded from (`sourceFileId`; `sourceFileDeleted` is `true` once that file has been deleted — the table keeps working). Only your organization's tables are listed. Free.",
|
|
102365
|
+
"operationId": "listStudioTables",
|
|
102366
|
+
"responses": {
|
|
102367
|
+
"200": {
|
|
102368
|
+
"content": {
|
|
102369
|
+
"application/json": {
|
|
102370
|
+
"schema": {
|
|
102371
|
+
"$ref": "#/components/schemas/StudioTableList"
|
|
102372
|
+
}
|
|
102373
|
+
}
|
|
102374
|
+
},
|
|
102375
|
+
"description": "The tables"
|
|
102376
|
+
},
|
|
102377
|
+
"400": {
|
|
102378
|
+
"content": {
|
|
102379
|
+
"application/json": {
|
|
102380
|
+
"schema": {
|
|
102381
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102382
|
+
}
|
|
102383
|
+
}
|
|
102384
|
+
},
|
|
102385
|
+
"description": "`invalid_request` — the request is malformed; `invalid_upload_name` — the name cannot be used; `unsupported_format` — the file is not a CSV, TSV, Excel (.xlsx) or Parquet file."
|
|
102386
|
+
},
|
|
102387
|
+
"401": {
|
|
102388
|
+
"content": {
|
|
102389
|
+
"application/json": {
|
|
102390
|
+
"schema": {
|
|
102391
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102392
|
+
}
|
|
102393
|
+
}
|
|
102394
|
+
},
|
|
102395
|
+
"description": "Authentication required."
|
|
102396
|
+
},
|
|
102397
|
+
"403": {
|
|
102398
|
+
"content": {
|
|
102399
|
+
"application/json": {
|
|
102400
|
+
"schema": {
|
|
102401
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102402
|
+
}
|
|
102403
|
+
}
|
|
102404
|
+
},
|
|
102405
|
+
"description": "`no_organization` — select an organization and retry. `studio_not_enabled` — Studio is not enabled for this account. `protected_not_enabled` — a protected file cannot be loaded into a table."
|
|
102406
|
+
},
|
|
102407
|
+
"404": {
|
|
102408
|
+
"content": {
|
|
102409
|
+
"application/json": {
|
|
102410
|
+
"schema": {
|
|
102411
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102412
|
+
}
|
|
102413
|
+
}
|
|
102414
|
+
},
|
|
102415
|
+
"description": "`not_found` — no file of that id that you can open (or the files library is not enabled for your organization); `upload_not_found` — your organization has no table of that name."
|
|
102416
|
+
},
|
|
102417
|
+
"409": {
|
|
102418
|
+
"content": {
|
|
102419
|
+
"application/json": {
|
|
102420
|
+
"schema": {
|
|
102421
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102422
|
+
}
|
|
102423
|
+
}
|
|
102424
|
+
},
|
|
102425
|
+
"description": "`not_ready` — the file has not finished uploading; `upload_exists` — the name is taken (delete that table first, or pick another name); `upload_limit_reached` — your organization is at its limit of tables (`details.limit`); `upload_storage_full` — the file would take your organization past its total size."
|
|
102426
|
+
},
|
|
102427
|
+
"422": {
|
|
102428
|
+
"content": {
|
|
102429
|
+
"application/json": {
|
|
102430
|
+
"schema": {
|
|
102431
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102432
|
+
}
|
|
102433
|
+
}
|
|
102434
|
+
},
|
|
102435
|
+
"description": "The file holds more than an upload may, or cannot be read: `file_too_large`, `too_many_rows`, `too_many_columns` (`details.limit`), `empty_file`, `unreadable_file`, `ingest_timeout`. `error` says what to change."
|
|
102436
|
+
},
|
|
102437
|
+
"429": {
|
|
102438
|
+
"content": {
|
|
102439
|
+
"application/json": {
|
|
102440
|
+
"schema": {
|
|
102441
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102442
|
+
}
|
|
102443
|
+
}
|
|
102444
|
+
},
|
|
102445
|
+
"description": "`rate_limited` — too many uploads from your organization in the last minute; or `busy` — a file is already being read. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
102446
|
+
},
|
|
102447
|
+
"502": {
|
|
102448
|
+
"content": {
|
|
102449
|
+
"application/json": {
|
|
102450
|
+
"schema": {
|
|
102451
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102452
|
+
}
|
|
102453
|
+
}
|
|
102454
|
+
},
|
|
102455
|
+
"description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
|
|
102456
|
+
},
|
|
102457
|
+
"503": {
|
|
102458
|
+
"content": {
|
|
102459
|
+
"application/json": {
|
|
102460
|
+
"schema": {
|
|
102461
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102462
|
+
}
|
|
102463
|
+
}
|
|
102464
|
+
},
|
|
102465
|
+
"description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
|
|
102466
|
+
}
|
|
102467
|
+
},
|
|
102468
|
+
"summary": "Your organization's tables made from files",
|
|
102469
|
+
"tags": [
|
|
102470
|
+
"Studio"
|
|
102471
|
+
]
|
|
102472
|
+
},
|
|
102473
|
+
"post": {
|
|
102474
|
+
"description": "Turn a file of your own data that is already in your files library — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. Name the file (`fromFileId`: one you can open, whose status is `ready`) and the table (`name`; the table is `upload_<name>`). The file is read as it is: the table shows its source file (`sourceFileId`), and the file shows the table it feeds (it is linked to `studio_table:upload_<name>`). Deleting the file later does not delete the table; deleting the table does not delete the file. A small file answers `200` with `status: ready`, and the answer says what the table holds: `columns`, `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints`. A large one answers `202` with `status: ingesting`: read it with `GET /v1/studio/tables/{name}` in a few seconds. A file that cannot be used is refused with the reason. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 tables and 1 GB in total. Free.",
|
|
102475
|
+
"operationId": "createStudioTable",
|
|
102476
|
+
"requestBody": {
|
|
102477
|
+
"content": {
|
|
102478
|
+
"application/json": {
|
|
102479
|
+
"schema": {
|
|
102480
|
+
"$ref": "#/components/schemas/StudioTableCreate"
|
|
102481
|
+
}
|
|
102482
|
+
}
|
|
102483
|
+
},
|
|
102484
|
+
"required": true
|
|
102485
|
+
},
|
|
102486
|
+
"responses": {
|
|
102487
|
+
"200": {
|
|
102488
|
+
"content": {
|
|
102489
|
+
"application/json": {
|
|
102490
|
+
"schema": {
|
|
102491
|
+
"$ref": "#/components/schemas/StudioTable"
|
|
102492
|
+
}
|
|
102493
|
+
}
|
|
102494
|
+
},
|
|
102495
|
+
"description": "The table"
|
|
102496
|
+
},
|
|
102497
|
+
"202": {
|
|
102498
|
+
"content": {
|
|
102499
|
+
"application/json": {
|
|
102500
|
+
"schema": {
|
|
102501
|
+
"$ref": "#/components/schemas/StudioTable"
|
|
102502
|
+
}
|
|
102503
|
+
}
|
|
102504
|
+
},
|
|
102505
|
+
"description": "The file is still being read; read the table again"
|
|
102506
|
+
},
|
|
102507
|
+
"400": {
|
|
102508
|
+
"content": {
|
|
102509
|
+
"application/json": {
|
|
102510
|
+
"schema": {
|
|
102511
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102512
|
+
}
|
|
102513
|
+
}
|
|
102514
|
+
},
|
|
102515
|
+
"description": "`invalid_request` — the request is malformed; `invalid_upload_name` — the name cannot be used; `unsupported_format` — the file is not a CSV, TSV, Excel (.xlsx) or Parquet file."
|
|
102516
|
+
},
|
|
102517
|
+
"401": {
|
|
102518
|
+
"content": {
|
|
102519
|
+
"application/json": {
|
|
102520
|
+
"schema": {
|
|
102521
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102522
|
+
}
|
|
102523
|
+
}
|
|
102524
|
+
},
|
|
102525
|
+
"description": "Authentication required."
|
|
102526
|
+
},
|
|
102527
|
+
"403": {
|
|
102528
|
+
"content": {
|
|
102529
|
+
"application/json": {
|
|
102530
|
+
"schema": {
|
|
102531
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102532
|
+
}
|
|
102533
|
+
}
|
|
102534
|
+
},
|
|
102535
|
+
"description": "`no_organization` — select an organization and retry. `studio_not_enabled` — Studio is not enabled for this account. `protected_not_enabled` — a protected file cannot be loaded into a table."
|
|
102536
|
+
},
|
|
102537
|
+
"404": {
|
|
102538
|
+
"content": {
|
|
102539
|
+
"application/json": {
|
|
102540
|
+
"schema": {
|
|
102541
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102542
|
+
}
|
|
102543
|
+
}
|
|
102544
|
+
},
|
|
102545
|
+
"description": "`not_found` — no file of that id that you can open (or the files library is not enabled for your organization); `upload_not_found` — your organization has no table of that name."
|
|
102546
|
+
},
|
|
102547
|
+
"409": {
|
|
102548
|
+
"content": {
|
|
102549
|
+
"application/json": {
|
|
102550
|
+
"schema": {
|
|
102551
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102552
|
+
}
|
|
102553
|
+
}
|
|
102554
|
+
},
|
|
102555
|
+
"description": "`not_ready` — the file has not finished uploading; `upload_exists` — the name is taken (delete that table first, or pick another name); `upload_limit_reached` — your organization is at its limit of tables (`details.limit`); `upload_storage_full` — the file would take your organization past its total size."
|
|
102556
|
+
},
|
|
102557
|
+
"422": {
|
|
102558
|
+
"content": {
|
|
102559
|
+
"application/json": {
|
|
102560
|
+
"schema": {
|
|
102561
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102562
|
+
}
|
|
102563
|
+
}
|
|
102564
|
+
},
|
|
102565
|
+
"description": "The file holds more than an upload may, or cannot be read: `file_too_large`, `too_many_rows`, `too_many_columns` (`details.limit`), `empty_file`, `unreadable_file`, `ingest_timeout`. `error` says what to change."
|
|
102566
|
+
},
|
|
102567
|
+
"429": {
|
|
102568
|
+
"content": {
|
|
102569
|
+
"application/json": {
|
|
102570
|
+
"schema": {
|
|
102571
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102572
|
+
}
|
|
102573
|
+
}
|
|
102574
|
+
},
|
|
102575
|
+
"description": "`rate_limited` — too many uploads from your organization in the last minute; or `busy` — a file is already being read. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
102576
|
+
},
|
|
102577
|
+
"502": {
|
|
102578
|
+
"content": {
|
|
102579
|
+
"application/json": {
|
|
102580
|
+
"schema": {
|
|
102581
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102582
|
+
}
|
|
102583
|
+
}
|
|
102584
|
+
},
|
|
102585
|
+
"description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
|
|
102586
|
+
},
|
|
102587
|
+
"503": {
|
|
102588
|
+
"content": {
|
|
102589
|
+
"application/json": {
|
|
102590
|
+
"schema": {
|
|
102591
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102592
|
+
}
|
|
102593
|
+
}
|
|
102594
|
+
},
|
|
102595
|
+
"description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
|
|
102596
|
+
}
|
|
102597
|
+
},
|
|
102598
|
+
"summary": "Load a file from your files library into a table",
|
|
102599
|
+
"tags": [
|
|
102600
|
+
"Studio"
|
|
102601
|
+
]
|
|
102602
|
+
}
|
|
102603
|
+
},
|
|
102604
|
+
"/v1/studio/tables/{name}": {
|
|
102605
|
+
"delete": {
|
|
102606
|
+
"description": "Delete a table (`name`, without the `upload_` prefix) and its rows. It leaves the catalog at once, and questions, jobs and models that read it stop working. Its source file stays in your files library, no longer linked to the table. This cannot be undone — to get the table back, load the file again. Free.",
|
|
102607
|
+
"operationId": "deleteStudioTable",
|
|
102608
|
+
"parameters": [
|
|
102609
|
+
{
|
|
102610
|
+
"description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
|
|
102611
|
+
"in": "path",
|
|
102612
|
+
"name": "name",
|
|
102613
|
+
"required": true,
|
|
102614
|
+
"schema": {
|
|
102615
|
+
"description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
|
|
102616
|
+
"example": "closed_loans",
|
|
102617
|
+
"pattern": "^[a-z][a-z0-9_]{0,55}$",
|
|
102618
|
+
"type": "string"
|
|
102619
|
+
}
|
|
102620
|
+
}
|
|
102621
|
+
],
|
|
102622
|
+
"responses": {
|
|
102623
|
+
"200": {
|
|
102624
|
+
"content": {
|
|
102625
|
+
"application/json": {
|
|
102626
|
+
"schema": {
|
|
102627
|
+
"$ref": "#/components/schemas/StudioUploadDeleted"
|
|
102628
|
+
}
|
|
102629
|
+
}
|
|
102630
|
+
},
|
|
102631
|
+
"description": "Deleted"
|
|
102632
|
+
},
|
|
102633
|
+
"400": {
|
|
102634
|
+
"content": {
|
|
102635
|
+
"application/json": {
|
|
102636
|
+
"schema": {
|
|
102637
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102638
|
+
}
|
|
102639
|
+
}
|
|
102640
|
+
},
|
|
102641
|
+
"description": "`invalid_request` — the request is malformed; `invalid_upload_name` — the name cannot be used; `unsupported_format` — the file is not a CSV, TSV, Excel (.xlsx) or Parquet file."
|
|
102642
|
+
},
|
|
102643
|
+
"401": {
|
|
102644
|
+
"content": {
|
|
102645
|
+
"application/json": {
|
|
102646
|
+
"schema": {
|
|
102647
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102648
|
+
}
|
|
102649
|
+
}
|
|
102650
|
+
},
|
|
102651
|
+
"description": "Authentication required."
|
|
102652
|
+
},
|
|
102653
|
+
"403": {
|
|
102654
|
+
"content": {
|
|
102655
|
+
"application/json": {
|
|
102656
|
+
"schema": {
|
|
102657
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102658
|
+
}
|
|
102659
|
+
}
|
|
102660
|
+
},
|
|
102661
|
+
"description": "`no_organization` — select an organization and retry. `studio_not_enabled` — Studio is not enabled for this account. `protected_not_enabled` — a protected file cannot be loaded into a table."
|
|
102662
|
+
},
|
|
102663
|
+
"404": {
|
|
102664
|
+
"content": {
|
|
102665
|
+
"application/json": {
|
|
102666
|
+
"schema": {
|
|
102667
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102668
|
+
}
|
|
102669
|
+
}
|
|
102670
|
+
},
|
|
102671
|
+
"description": "`not_found` — no file of that id that you can open (or the files library is not enabled for your organization); `upload_not_found` — your organization has no table of that name."
|
|
102672
|
+
},
|
|
102673
|
+
"409": {
|
|
102674
|
+
"content": {
|
|
102675
|
+
"application/json": {
|
|
102676
|
+
"schema": {
|
|
102677
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102678
|
+
}
|
|
102679
|
+
}
|
|
102680
|
+
},
|
|
102681
|
+
"description": "`not_ready` — the file has not finished uploading; `upload_exists` — the name is taken (delete that table first, or pick another name); `upload_limit_reached` — your organization is at its limit of tables (`details.limit`); `upload_storage_full` — the file would take your organization past its total size."
|
|
102682
|
+
},
|
|
102683
|
+
"422": {
|
|
102684
|
+
"content": {
|
|
102685
|
+
"application/json": {
|
|
102686
|
+
"schema": {
|
|
102687
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102688
|
+
}
|
|
102689
|
+
}
|
|
102690
|
+
},
|
|
102691
|
+
"description": "The file holds more than an upload may, or cannot be read: `file_too_large`, `too_many_rows`, `too_many_columns` (`details.limit`), `empty_file`, `unreadable_file`, `ingest_timeout`. `error` says what to change."
|
|
102692
|
+
},
|
|
102693
|
+
"429": {
|
|
102694
|
+
"content": {
|
|
102695
|
+
"application/json": {
|
|
102696
|
+
"schema": {
|
|
102697
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102698
|
+
}
|
|
102699
|
+
}
|
|
102700
|
+
},
|
|
102701
|
+
"description": "`rate_limited` — too many uploads from your organization in the last minute; or `busy` — a file is already being read. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
102702
|
+
},
|
|
102703
|
+
"502": {
|
|
102704
|
+
"content": {
|
|
102705
|
+
"application/json": {
|
|
102706
|
+
"schema": {
|
|
102707
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102708
|
+
}
|
|
102709
|
+
}
|
|
102710
|
+
},
|
|
102711
|
+
"description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
|
|
102712
|
+
},
|
|
102713
|
+
"503": {
|
|
102714
|
+
"content": {
|
|
102715
|
+
"application/json": {
|
|
102716
|
+
"schema": {
|
|
102717
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102718
|
+
}
|
|
102719
|
+
}
|
|
102720
|
+
},
|
|
102721
|
+
"description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
|
|
102722
|
+
}
|
|
102723
|
+
},
|
|
102724
|
+
"summary": "Delete a table, permanently",
|
|
102725
|
+
"tags": [
|
|
102726
|
+
"Studio"
|
|
102727
|
+
]
|
|
102728
|
+
},
|
|
102729
|
+
"get": {
|
|
102730
|
+
"description": "One table (`name`, without the `upload_` prefix): its status — read it again while it is `ingesting` — columns, row count, warnings, join hints, and its source file (`sourceFileId`, `sourceFileDeleted`). Free.",
|
|
102731
|
+
"operationId": "getStudioTable",
|
|
102732
|
+
"parameters": [
|
|
102733
|
+
{
|
|
102734
|
+
"description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
|
|
102735
|
+
"in": "path",
|
|
102736
|
+
"name": "name",
|
|
102737
|
+
"required": true,
|
|
102738
|
+
"schema": {
|
|
102739
|
+
"description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
|
|
102740
|
+
"example": "closed_loans",
|
|
102741
|
+
"pattern": "^[a-z][a-z0-9_]{0,55}$",
|
|
102742
|
+
"type": "string"
|
|
102743
|
+
}
|
|
102744
|
+
}
|
|
102745
|
+
],
|
|
102746
|
+
"responses": {
|
|
102747
|
+
"200": {
|
|
102748
|
+
"content": {
|
|
102749
|
+
"application/json": {
|
|
102750
|
+
"schema": {
|
|
102751
|
+
"$ref": "#/components/schemas/StudioTable"
|
|
102752
|
+
}
|
|
102753
|
+
}
|
|
102754
|
+
},
|
|
102755
|
+
"description": "The table"
|
|
102756
|
+
},
|
|
102757
|
+
"400": {
|
|
102758
|
+
"content": {
|
|
102759
|
+
"application/json": {
|
|
102760
|
+
"schema": {
|
|
102761
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102762
|
+
}
|
|
102763
|
+
}
|
|
102764
|
+
},
|
|
102765
|
+
"description": "`invalid_request` — the request is malformed; `invalid_upload_name` — the name cannot be used; `unsupported_format` — the file is not a CSV, TSV, Excel (.xlsx) or Parquet file."
|
|
102766
|
+
},
|
|
102767
|
+
"401": {
|
|
102768
|
+
"content": {
|
|
102769
|
+
"application/json": {
|
|
102770
|
+
"schema": {
|
|
102771
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102772
|
+
}
|
|
102773
|
+
}
|
|
102774
|
+
},
|
|
102775
|
+
"description": "Authentication required."
|
|
102776
|
+
},
|
|
102777
|
+
"403": {
|
|
102778
|
+
"content": {
|
|
102779
|
+
"application/json": {
|
|
102780
|
+
"schema": {
|
|
102781
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102782
|
+
}
|
|
102783
|
+
}
|
|
102784
|
+
},
|
|
102785
|
+
"description": "`no_organization` — select an organization and retry. `studio_not_enabled` — Studio is not enabled for this account. `protected_not_enabled` — a protected file cannot be loaded into a table."
|
|
102786
|
+
},
|
|
102787
|
+
"404": {
|
|
102788
|
+
"content": {
|
|
102789
|
+
"application/json": {
|
|
102790
|
+
"schema": {
|
|
102791
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102792
|
+
}
|
|
102793
|
+
}
|
|
102794
|
+
},
|
|
102795
|
+
"description": "`not_found` — no file of that id that you can open (or the files library is not enabled for your organization); `upload_not_found` — your organization has no table of that name."
|
|
102796
|
+
},
|
|
102797
|
+
"409": {
|
|
102798
|
+
"content": {
|
|
102799
|
+
"application/json": {
|
|
102800
|
+
"schema": {
|
|
102801
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102802
|
+
}
|
|
102803
|
+
}
|
|
102804
|
+
},
|
|
102805
|
+
"description": "`not_ready` — the file has not finished uploading; `upload_exists` — the name is taken (delete that table first, or pick another name); `upload_limit_reached` — your organization is at its limit of tables (`details.limit`); `upload_storage_full` — the file would take your organization past its total size."
|
|
102806
|
+
},
|
|
102807
|
+
"422": {
|
|
102808
|
+
"content": {
|
|
102809
|
+
"application/json": {
|
|
102810
|
+
"schema": {
|
|
102811
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102812
|
+
}
|
|
102813
|
+
}
|
|
102814
|
+
},
|
|
102815
|
+
"description": "The file holds more than an upload may, or cannot be read: `file_too_large`, `too_many_rows`, `too_many_columns` (`details.limit`), `empty_file`, `unreadable_file`, `ingest_timeout`. `error` says what to change."
|
|
102816
|
+
},
|
|
102817
|
+
"429": {
|
|
102818
|
+
"content": {
|
|
102819
|
+
"application/json": {
|
|
102820
|
+
"schema": {
|
|
102821
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102822
|
+
}
|
|
102823
|
+
}
|
|
102824
|
+
},
|
|
102825
|
+
"description": "`rate_limited` — too many uploads from your organization in the last minute; or `busy` — a file is already being read. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
|
|
102826
|
+
},
|
|
102827
|
+
"502": {
|
|
102828
|
+
"content": {
|
|
102829
|
+
"application/json": {
|
|
102830
|
+
"schema": {
|
|
102831
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102832
|
+
}
|
|
102833
|
+
}
|
|
102834
|
+
},
|
|
102835
|
+
"description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
|
|
102836
|
+
},
|
|
102837
|
+
"503": {
|
|
102838
|
+
"content": {
|
|
102839
|
+
"application/json": {
|
|
102840
|
+
"schema": {
|
|
102841
|
+
"$ref": "#/components/schemas/StudioError"
|
|
102842
|
+
}
|
|
102843
|
+
}
|
|
102844
|
+
},
|
|
102845
|
+
"description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
|
|
102846
|
+
}
|
|
102847
|
+
},
|
|
102848
|
+
"summary": "One table made from a file",
|
|
102849
|
+
"tags": [
|
|
102850
|
+
"Studio"
|
|
102851
|
+
]
|
|
102852
|
+
}
|
|
102853
|
+
},
|
|
102299
102854
|
"/v1/studio/uploads": {
|
|
102300
102855
|
"get": {
|
|
102301
|
-
"description": "Every file your organization has uploaded: its name, the table it is queried as, its columns and row count, when it was uploaded and by whom, and its status. Only your organization's uploads are listed; no other organization can see or query them. Free.",
|
|
102856
|
+
"description": "Every file your organization has uploaded: its name, the table it is queried as, its columns and row count, when it was uploaded and by whom, and its status. Only your organization's uploads are listed; no other organization can see or query them. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel=\"successor-version\"` headers.",
|
|
102302
102857
|
"operationId": "listStudioUploads",
|
|
102303
102858
|
"responses": {
|
|
102304
102859
|
"200": {
|
|
@@ -102398,7 +102953,7 @@
|
|
|
102398
102953
|
]
|
|
102399
102954
|
},
|
|
102400
102955
|
"post": {
|
|
102401
|
-
"description": "Turn a file of your own data — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. This is step one of three: it reserves the name and answers with `uploadUrl`. Step two: send the file to `uploadUrl` with HTTP PUT (the file's bytes as the body; it must be exactly `sizeBytes` long). Step three: call complete. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 uploads and 1 GB in total. The table will be `upload_<name>`. Asking again for a name whose file never arrived replaces the earlier request. Free.",
|
|
102956
|
+
"description": "Turn a file of your own data — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. This is step one of three: it reserves the name and answers with `uploadUrl`. Step two: send the file to `uploadUrl` with HTTP PUT (the file's bytes as the body; it must be exactly `sizeBytes` long). Step three: call complete. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 uploads and 1 GB in total. The table will be `upload_<name>`. Asking again for a name whose file never arrived replaces the earlier request. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel=\"successor-version\"` headers.",
|
|
102402
102957
|
"operationId": "createStudioUpload",
|
|
102403
102958
|
"requestBody": {
|
|
102404
102959
|
"content": {
|
|
@@ -102510,7 +103065,7 @@
|
|
|
102510
103065
|
},
|
|
102511
103066
|
"/v1/studio/uploads/{name}": {
|
|
102512
103067
|
"delete": {
|
|
102513
|
-
"description": "Delete an upload: its table, the rows that were read from the file, and its record. It leaves the catalog at once, and questions and jobs that read the table stop working. This cannot be undone — to get the table back, upload the file again. Free.",
|
|
103068
|
+
"description": "Delete an upload: its table, the rows that were read from the file, and its record. It leaves the catalog at once, and questions and jobs that read the table stop working. This cannot be undone — to get the table back, upload the file again. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel=\"successor-version\"` headers.",
|
|
102514
103069
|
"operationId": "deleteStudioUpload",
|
|
102515
103070
|
"parameters": [
|
|
102516
103071
|
{
|
|
@@ -102626,7 +103181,7 @@
|
|
|
102626
103181
|
},
|
|
102627
103182
|
"/v1/studio/uploads/{name}/complete": {
|
|
102628
103183
|
"post": {
|
|
102629
|
-
"description": "Call this after the file has been sent to the upload URL. The file is read into the table `upload_<name>`, and the answer says what it holds: `columns` (names made safe for SQL, with a type each), `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints` (which columns line up with the market tables, with a join condition to copy). A small file answers `200` with `status: ready`. A large one answers `202` with `status: ingesting`: call complete again in a few seconds to collect the result. Calling it again on a ready upload is safe and answers with the same table. A file that cannot be used answers `422` and says why; create the upload again to send a corrected file. The original file is deleted once it has been read. Free.",
|
|
103184
|
+
"description": "Call this after the file has been sent to the upload URL. The file is read into the table `upload_<name>`, and the answer says what it holds: `columns` (names made safe for SQL, with a type each), `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints` (which columns line up with the market tables, with a join condition to copy). A small file answers `200` with `status: ready`. A large one answers `202` with `status: ingesting`: call complete again in a few seconds to collect the result. Calling it again on a ready upload is safe and answers with the same table. A file that cannot be used answers `422` and says why; create the upload again to send a corrected file. The original file is deleted once it has been read. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel=\"successor-version\"` headers.",
|
|
102630
103185
|
"operationId": "completeStudioUpload",
|
|
102631
103186
|
"parameters": [
|
|
102632
103187
|
{
|