@model-match/api 3.98.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 +10 -0
- package/dist/{index-Cc88T4yz.d.mts → index-Dpb6EF6m.d.mts} +374 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +36 -6
- package/dist/slim/index.mjs +94 -6
- package/dist/{src-C7phaMzR.mjs → src-D6M4H3IA.mjs} +102 -4
- package/openapi.json +914 -153
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -27771,6 +27771,10 @@
|
|
|
27771
27771
|
"nullable": true,
|
|
27772
27772
|
"type": "string"
|
|
27773
27773
|
},
|
|
27774
|
+
"revision": {
|
|
27775
|
+
"description": "Goes up by one each time the contents are replaced.",
|
|
27776
|
+
"type": "integer"
|
|
27777
|
+
},
|
|
27774
27778
|
"role": {
|
|
27775
27779
|
"description": "Your role on the file; `null` when you see it as an organization admin.",
|
|
27776
27780
|
"enum": [
|
|
@@ -27802,6 +27806,7 @@
|
|
|
27802
27806
|
"mediaType",
|
|
27803
27807
|
"sizeBytes",
|
|
27804
27808
|
"sha256",
|
|
27809
|
+
"revision",
|
|
27805
27810
|
"origin",
|
|
27806
27811
|
"kind",
|
|
27807
27812
|
"class",
|
|
@@ -27956,6 +27961,33 @@
|
|
|
27956
27961
|
},
|
|
27957
27962
|
"type": "object"
|
|
27958
27963
|
},
|
|
27964
|
+
"FileRevisionCreate": {
|
|
27965
|
+
"additionalProperties": false,
|
|
27966
|
+
"properties": {
|
|
27967
|
+
"mediaType": {
|
|
27968
|
+
"description": "The new type, if it changed.",
|
|
27969
|
+
"maxLength": 255,
|
|
27970
|
+
"minLength": 1,
|
|
27971
|
+
"type": "string"
|
|
27972
|
+
},
|
|
27973
|
+
"sha256": {
|
|
27974
|
+
"description": "Hex SHA-256 of the new bytes.",
|
|
27975
|
+
"pattern": "^[0-9a-fA-F]{64}$",
|
|
27976
|
+
"type": "string"
|
|
27977
|
+
},
|
|
27978
|
+
"sizeBytes": {
|
|
27979
|
+
"description": "Exact size of the new bytes.",
|
|
27980
|
+
"maximum": 5368709120,
|
|
27981
|
+
"minimum": 1,
|
|
27982
|
+
"type": "integer"
|
|
27983
|
+
}
|
|
27984
|
+
},
|
|
27985
|
+
"required": [
|
|
27986
|
+
"sizeBytes",
|
|
27987
|
+
"sha256"
|
|
27988
|
+
],
|
|
27989
|
+
"type": "object"
|
|
27990
|
+
},
|
|
27959
27991
|
"FileShare": {
|
|
27960
27992
|
"properties": {
|
|
27961
27993
|
"createdAt": {
|
|
@@ -55486,6 +55518,58 @@
|
|
|
55486
55518
|
],
|
|
55487
55519
|
"type": "object"
|
|
55488
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
|
+
},
|
|
55489
55573
|
"StudioUpload": {
|
|
55490
55574
|
"properties": {
|
|
55491
55575
|
"bytes": {
|
|
@@ -55598,6 +55682,15 @@
|
|
|
55598
55682
|
"nullable": true,
|
|
55599
55683
|
"type": "number"
|
|
55600
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
|
+
},
|
|
55601
55694
|
"status": {
|
|
55602
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.",
|
|
55603
55696
|
"enum": [
|
|
@@ -55643,7 +55736,9 @@
|
|
|
55643
55736
|
"columns",
|
|
55644
55737
|
"warnings",
|
|
55645
55738
|
"joinHints",
|
|
55646
|
-
"bytes"
|
|
55739
|
+
"bytes",
|
|
55740
|
+
"sourceFileId",
|
|
55741
|
+
"sourceFileDeleted"
|
|
55647
55742
|
],
|
|
55648
55743
|
"type": "object"
|
|
55649
55744
|
},
|
|
@@ -57445,7 +57540,7 @@
|
|
|
57445
57540
|
"info": {
|
|
57446
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.",
|
|
57447
57542
|
"title": "ModelMatch API",
|
|
57448
|
-
"version": "3.
|
|
57543
|
+
"version": "3.196.0"
|
|
57449
57544
|
},
|
|
57450
57545
|
"openapi": "3.1.0",
|
|
57451
57546
|
"paths": {
|
|
@@ -85437,148 +85532,10 @@
|
|
|
85437
85532
|
]
|
|
85438
85533
|
}
|
|
85439
85534
|
},
|
|
85440
|
-
"/v1/files/{id}/
|
|
85441
|
-
"delete": {
|
|
85442
|
-
"description": "The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.",
|
|
85443
|
-
"operationId": "unshareFile",
|
|
85444
|
-
"parameters": [
|
|
85445
|
-
{
|
|
85446
|
-
"description": "The file's id.",
|
|
85447
|
-
"in": "path",
|
|
85448
|
-
"name": "id",
|
|
85449
|
-
"required": true,
|
|
85450
|
-
"schema": {
|
|
85451
|
-
"description": "The file's id.",
|
|
85452
|
-
"example": "file_3f2a…",
|
|
85453
|
-
"pattern": "^file_[0-9a-f]{32}$",
|
|
85454
|
-
"type": "string"
|
|
85455
|
-
}
|
|
85456
|
-
},
|
|
85457
|
-
{
|
|
85458
|
-
"description": "Who the file is shared with: `user:<userId>`, `team:<teamId>`, or `org` for everyone in your organization.",
|
|
85459
|
-
"in": "query",
|
|
85460
|
-
"name": "principal",
|
|
85461
|
-
"required": true,
|
|
85462
|
-
"schema": {
|
|
85463
|
-
"description": "Who the file is shared with: `user:<userId>`, `team:<teamId>`, or `org` for everyone in your organization.",
|
|
85464
|
-
"example": "user:usr_123",
|
|
85465
|
-
"maxLength": 140,
|
|
85466
|
-
"minLength": 3,
|
|
85467
|
-
"type": "string"
|
|
85468
|
-
}
|
|
85469
|
-
}
|
|
85470
|
-
],
|
|
85471
|
-
"responses": {
|
|
85472
|
-
"200": {
|
|
85473
|
-
"content": {
|
|
85474
|
-
"application/json": {
|
|
85475
|
-
"schema": {
|
|
85476
|
-
"properties": {
|
|
85477
|
-
"data": {
|
|
85478
|
-
"items": {
|
|
85479
|
-
"$ref": "#/components/schemas/FileShare"
|
|
85480
|
-
},
|
|
85481
|
-
"type": "array"
|
|
85482
|
-
}
|
|
85483
|
-
},
|
|
85484
|
-
"required": [
|
|
85485
|
-
"data"
|
|
85486
|
-
],
|
|
85487
|
-
"type": "object"
|
|
85488
|
-
}
|
|
85489
|
-
}
|
|
85490
|
-
},
|
|
85491
|
-
"description": "The file's shares"
|
|
85492
|
-
},
|
|
85493
|
-
"400": {
|
|
85494
|
-
"content": {
|
|
85495
|
-
"application/json": {
|
|
85496
|
-
"schema": {
|
|
85497
|
-
"$ref": "#/components/schemas/FileError"
|
|
85498
|
-
}
|
|
85499
|
-
}
|
|
85500
|
-
},
|
|
85501
|
-
"description": "Invalid request"
|
|
85502
|
-
},
|
|
85503
|
-
"401": {
|
|
85504
|
-
"content": {
|
|
85505
|
-
"application/json": {
|
|
85506
|
-
"schema": {
|
|
85507
|
-
"$ref": "#/components/schemas/FileError"
|
|
85508
|
-
}
|
|
85509
|
-
}
|
|
85510
|
-
},
|
|
85511
|
-
"description": "Not signed in"
|
|
85512
|
-
},
|
|
85513
|
-
"403": {
|
|
85514
|
-
"content": {
|
|
85515
|
-
"application/json": {
|
|
85516
|
-
"schema": {
|
|
85517
|
-
"$ref": "#/components/schemas/FileError"
|
|
85518
|
-
}
|
|
85519
|
-
}
|
|
85520
|
-
},
|
|
85521
|
-
"description": "Not allowed"
|
|
85522
|
-
},
|
|
85523
|
-
"404": {
|
|
85524
|
-
"content": {
|
|
85525
|
-
"application/json": {
|
|
85526
|
-
"schema": {
|
|
85527
|
-
"$ref": "#/components/schemas/FileError"
|
|
85528
|
-
}
|
|
85529
|
-
}
|
|
85530
|
-
},
|
|
85531
|
-
"description": "No such file"
|
|
85532
|
-
},
|
|
85533
|
-
"409": {
|
|
85534
|
-
"content": {
|
|
85535
|
-
"application/json": {
|
|
85536
|
-
"schema": {
|
|
85537
|
-
"$ref": "#/components/schemas/FileError"
|
|
85538
|
-
}
|
|
85539
|
-
}
|
|
85540
|
-
},
|
|
85541
|
-
"description": "Conflicts with the file's state"
|
|
85542
|
-
},
|
|
85543
|
-
"422": {
|
|
85544
|
-
"content": {
|
|
85545
|
-
"application/json": {
|
|
85546
|
-
"schema": {
|
|
85547
|
-
"$ref": "#/components/schemas/FileError"
|
|
85548
|
-
}
|
|
85549
|
-
}
|
|
85550
|
-
},
|
|
85551
|
-
"description": "The upload did not match"
|
|
85552
|
-
},
|
|
85553
|
-
"502": {
|
|
85554
|
-
"content": {
|
|
85555
|
-
"application/json": {
|
|
85556
|
-
"schema": {
|
|
85557
|
-
"$ref": "#/components/schemas/FileError"
|
|
85558
|
-
}
|
|
85559
|
-
}
|
|
85560
|
-
},
|
|
85561
|
-
"description": "Could not check membership"
|
|
85562
|
-
},
|
|
85563
|
-
"503": {
|
|
85564
|
-
"content": {
|
|
85565
|
-
"application/json": {
|
|
85566
|
-
"schema": {
|
|
85567
|
-
"$ref": "#/components/schemas/FileError"
|
|
85568
|
-
}
|
|
85569
|
-
}
|
|
85570
|
-
},
|
|
85571
|
-
"description": "Storage unavailable"
|
|
85572
|
-
}
|
|
85573
|
-
},
|
|
85574
|
-
"summary": "Stop sharing a file",
|
|
85575
|
-
"tags": [
|
|
85576
|
-
"Files"
|
|
85577
|
-
]
|
|
85578
|
-
},
|
|
85535
|
+
"/v1/files/{id}/revisions": {
|
|
85579
85536
|
"post": {
|
|
85580
|
-
"description": "The owner
|
|
85581
|
-
"operationId": "
|
|
85537
|
+
"description": "The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size and SHA-256, PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.",
|
|
85538
|
+
"operationId": "createFileRevision",
|
|
85582
85539
|
"parameters": [
|
|
85583
85540
|
{
|
|
85584
85541
|
"description": "The file's id.",
|
|
@@ -85597,23 +85554,60 @@
|
|
|
85597
85554
|
"content": {
|
|
85598
85555
|
"application/json": {
|
|
85599
85556
|
"schema": {
|
|
85600
|
-
"$ref": "#/components/schemas/
|
|
85557
|
+
"$ref": "#/components/schemas/FileRevisionCreate"
|
|
85601
85558
|
}
|
|
85602
85559
|
}
|
|
85603
85560
|
},
|
|
85604
85561
|
"required": true
|
|
85605
85562
|
},
|
|
85606
85563
|
"responses": {
|
|
85607
|
-
"
|
|
85564
|
+
"201": {
|
|
85608
85565
|
"content": {
|
|
85609
85566
|
"application/json": {
|
|
85610
85567
|
"schema": {
|
|
85611
85568
|
"properties": {
|
|
85612
85569
|
"data": {
|
|
85613
|
-
"
|
|
85614
|
-
"
|
|
85570
|
+
"properties": {
|
|
85571
|
+
"file": {
|
|
85572
|
+
"$ref": "#/components/schemas/File"
|
|
85573
|
+
},
|
|
85574
|
+
"upload": {
|
|
85575
|
+
"properties": {
|
|
85576
|
+
"expiresAt": {
|
|
85577
|
+
"type": "string"
|
|
85578
|
+
},
|
|
85579
|
+
"headers": {
|
|
85580
|
+
"additionalProperties": {
|
|
85581
|
+
"type": "string"
|
|
85582
|
+
},
|
|
85583
|
+
"description": "Send these headers with the PUT, exactly as given.",
|
|
85584
|
+
"type": "object"
|
|
85585
|
+
},
|
|
85586
|
+
"method": {
|
|
85587
|
+
"enum": [
|
|
85588
|
+
"PUT"
|
|
85589
|
+
],
|
|
85590
|
+
"type": "string"
|
|
85591
|
+
},
|
|
85592
|
+
"url": {
|
|
85593
|
+
"description": "Send the bytes here with HTTP PUT.",
|
|
85594
|
+
"type": "string"
|
|
85595
|
+
}
|
|
85596
|
+
},
|
|
85597
|
+
"required": [
|
|
85598
|
+
"url",
|
|
85599
|
+
"method",
|
|
85600
|
+
"headers",
|
|
85601
|
+
"expiresAt"
|
|
85602
|
+
],
|
|
85603
|
+
"type": "object"
|
|
85604
|
+
}
|
|
85615
85605
|
},
|
|
85616
|
-
"
|
|
85606
|
+
"required": [
|
|
85607
|
+
"file",
|
|
85608
|
+
"upload"
|
|
85609
|
+
],
|
|
85610
|
+
"type": "object"
|
|
85617
85611
|
}
|
|
85618
85612
|
},
|
|
85619
85613
|
"required": [
|
|
@@ -85623,7 +85617,282 @@
|
|
|
85623
85617
|
}
|
|
85624
85618
|
}
|
|
85625
85619
|
},
|
|
85626
|
-
"description": "The file
|
|
85620
|
+
"description": "The file and the URL for its new bytes"
|
|
85621
|
+
},
|
|
85622
|
+
"400": {
|
|
85623
|
+
"content": {
|
|
85624
|
+
"application/json": {
|
|
85625
|
+
"schema": {
|
|
85626
|
+
"$ref": "#/components/schemas/FileError"
|
|
85627
|
+
}
|
|
85628
|
+
}
|
|
85629
|
+
},
|
|
85630
|
+
"description": "Invalid request"
|
|
85631
|
+
},
|
|
85632
|
+
"401": {
|
|
85633
|
+
"content": {
|
|
85634
|
+
"application/json": {
|
|
85635
|
+
"schema": {
|
|
85636
|
+
"$ref": "#/components/schemas/FileError"
|
|
85637
|
+
}
|
|
85638
|
+
}
|
|
85639
|
+
},
|
|
85640
|
+
"description": "Not signed in"
|
|
85641
|
+
},
|
|
85642
|
+
"403": {
|
|
85643
|
+
"content": {
|
|
85644
|
+
"application/json": {
|
|
85645
|
+
"schema": {
|
|
85646
|
+
"$ref": "#/components/schemas/FileError"
|
|
85647
|
+
}
|
|
85648
|
+
}
|
|
85649
|
+
},
|
|
85650
|
+
"description": "Not allowed"
|
|
85651
|
+
},
|
|
85652
|
+
"404": {
|
|
85653
|
+
"content": {
|
|
85654
|
+
"application/json": {
|
|
85655
|
+
"schema": {
|
|
85656
|
+
"$ref": "#/components/schemas/FileError"
|
|
85657
|
+
}
|
|
85658
|
+
}
|
|
85659
|
+
},
|
|
85660
|
+
"description": "No such file"
|
|
85661
|
+
},
|
|
85662
|
+
"409": {
|
|
85663
|
+
"content": {
|
|
85664
|
+
"application/json": {
|
|
85665
|
+
"schema": {
|
|
85666
|
+
"$ref": "#/components/schemas/FileError"
|
|
85667
|
+
}
|
|
85668
|
+
}
|
|
85669
|
+
},
|
|
85670
|
+
"description": "Conflicts with the file's state"
|
|
85671
|
+
},
|
|
85672
|
+
"422": {
|
|
85673
|
+
"content": {
|
|
85674
|
+
"application/json": {
|
|
85675
|
+
"schema": {
|
|
85676
|
+
"$ref": "#/components/schemas/FileError"
|
|
85677
|
+
}
|
|
85678
|
+
}
|
|
85679
|
+
},
|
|
85680
|
+
"description": "The upload did not match"
|
|
85681
|
+
},
|
|
85682
|
+
"502": {
|
|
85683
|
+
"content": {
|
|
85684
|
+
"application/json": {
|
|
85685
|
+
"schema": {
|
|
85686
|
+
"$ref": "#/components/schemas/FileError"
|
|
85687
|
+
}
|
|
85688
|
+
}
|
|
85689
|
+
},
|
|
85690
|
+
"description": "Could not check membership"
|
|
85691
|
+
},
|
|
85692
|
+
"503": {
|
|
85693
|
+
"content": {
|
|
85694
|
+
"application/json": {
|
|
85695
|
+
"schema": {
|
|
85696
|
+
"$ref": "#/components/schemas/FileError"
|
|
85697
|
+
}
|
|
85698
|
+
}
|
|
85699
|
+
},
|
|
85700
|
+
"description": "Storage unavailable"
|
|
85701
|
+
}
|
|
85702
|
+
},
|
|
85703
|
+
"summary": "Replace a file's contents",
|
|
85704
|
+
"tags": [
|
|
85705
|
+
"Files"
|
|
85706
|
+
]
|
|
85707
|
+
}
|
|
85708
|
+
},
|
|
85709
|
+
"/v1/files/{id}/shares": {
|
|
85710
|
+
"delete": {
|
|
85711
|
+
"description": "The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.",
|
|
85712
|
+
"operationId": "unshareFile",
|
|
85713
|
+
"parameters": [
|
|
85714
|
+
{
|
|
85715
|
+
"description": "The file's id.",
|
|
85716
|
+
"in": "path",
|
|
85717
|
+
"name": "id",
|
|
85718
|
+
"required": true,
|
|
85719
|
+
"schema": {
|
|
85720
|
+
"description": "The file's id.",
|
|
85721
|
+
"example": "file_3f2a…",
|
|
85722
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
85723
|
+
"type": "string"
|
|
85724
|
+
}
|
|
85725
|
+
},
|
|
85726
|
+
{
|
|
85727
|
+
"description": "Who the file is shared with: `user:<userId>`, `team:<teamId>`, or `org` for everyone in your organization.",
|
|
85728
|
+
"in": "query",
|
|
85729
|
+
"name": "principal",
|
|
85730
|
+
"required": true,
|
|
85731
|
+
"schema": {
|
|
85732
|
+
"description": "Who the file is shared with: `user:<userId>`, `team:<teamId>`, or `org` for everyone in your organization.",
|
|
85733
|
+
"example": "user:usr_123",
|
|
85734
|
+
"maxLength": 140,
|
|
85735
|
+
"minLength": 3,
|
|
85736
|
+
"type": "string"
|
|
85737
|
+
}
|
|
85738
|
+
}
|
|
85739
|
+
],
|
|
85740
|
+
"responses": {
|
|
85741
|
+
"200": {
|
|
85742
|
+
"content": {
|
|
85743
|
+
"application/json": {
|
|
85744
|
+
"schema": {
|
|
85745
|
+
"properties": {
|
|
85746
|
+
"data": {
|
|
85747
|
+
"items": {
|
|
85748
|
+
"$ref": "#/components/schemas/FileShare"
|
|
85749
|
+
},
|
|
85750
|
+
"type": "array"
|
|
85751
|
+
}
|
|
85752
|
+
},
|
|
85753
|
+
"required": [
|
|
85754
|
+
"data"
|
|
85755
|
+
],
|
|
85756
|
+
"type": "object"
|
|
85757
|
+
}
|
|
85758
|
+
}
|
|
85759
|
+
},
|
|
85760
|
+
"description": "The file's shares"
|
|
85761
|
+
},
|
|
85762
|
+
"400": {
|
|
85763
|
+
"content": {
|
|
85764
|
+
"application/json": {
|
|
85765
|
+
"schema": {
|
|
85766
|
+
"$ref": "#/components/schemas/FileError"
|
|
85767
|
+
}
|
|
85768
|
+
}
|
|
85769
|
+
},
|
|
85770
|
+
"description": "Invalid request"
|
|
85771
|
+
},
|
|
85772
|
+
"401": {
|
|
85773
|
+
"content": {
|
|
85774
|
+
"application/json": {
|
|
85775
|
+
"schema": {
|
|
85776
|
+
"$ref": "#/components/schemas/FileError"
|
|
85777
|
+
}
|
|
85778
|
+
}
|
|
85779
|
+
},
|
|
85780
|
+
"description": "Not signed in"
|
|
85781
|
+
},
|
|
85782
|
+
"403": {
|
|
85783
|
+
"content": {
|
|
85784
|
+
"application/json": {
|
|
85785
|
+
"schema": {
|
|
85786
|
+
"$ref": "#/components/schemas/FileError"
|
|
85787
|
+
}
|
|
85788
|
+
}
|
|
85789
|
+
},
|
|
85790
|
+
"description": "Not allowed"
|
|
85791
|
+
},
|
|
85792
|
+
"404": {
|
|
85793
|
+
"content": {
|
|
85794
|
+
"application/json": {
|
|
85795
|
+
"schema": {
|
|
85796
|
+
"$ref": "#/components/schemas/FileError"
|
|
85797
|
+
}
|
|
85798
|
+
}
|
|
85799
|
+
},
|
|
85800
|
+
"description": "No such file"
|
|
85801
|
+
},
|
|
85802
|
+
"409": {
|
|
85803
|
+
"content": {
|
|
85804
|
+
"application/json": {
|
|
85805
|
+
"schema": {
|
|
85806
|
+
"$ref": "#/components/schemas/FileError"
|
|
85807
|
+
}
|
|
85808
|
+
}
|
|
85809
|
+
},
|
|
85810
|
+
"description": "Conflicts with the file's state"
|
|
85811
|
+
},
|
|
85812
|
+
"422": {
|
|
85813
|
+
"content": {
|
|
85814
|
+
"application/json": {
|
|
85815
|
+
"schema": {
|
|
85816
|
+
"$ref": "#/components/schemas/FileError"
|
|
85817
|
+
}
|
|
85818
|
+
}
|
|
85819
|
+
},
|
|
85820
|
+
"description": "The upload did not match"
|
|
85821
|
+
},
|
|
85822
|
+
"502": {
|
|
85823
|
+
"content": {
|
|
85824
|
+
"application/json": {
|
|
85825
|
+
"schema": {
|
|
85826
|
+
"$ref": "#/components/schemas/FileError"
|
|
85827
|
+
}
|
|
85828
|
+
}
|
|
85829
|
+
},
|
|
85830
|
+
"description": "Could not check membership"
|
|
85831
|
+
},
|
|
85832
|
+
"503": {
|
|
85833
|
+
"content": {
|
|
85834
|
+
"application/json": {
|
|
85835
|
+
"schema": {
|
|
85836
|
+
"$ref": "#/components/schemas/FileError"
|
|
85837
|
+
}
|
|
85838
|
+
}
|
|
85839
|
+
},
|
|
85840
|
+
"description": "Storage unavailable"
|
|
85841
|
+
}
|
|
85842
|
+
},
|
|
85843
|
+
"summary": "Stop sharing a file",
|
|
85844
|
+
"tags": [
|
|
85845
|
+
"Files"
|
|
85846
|
+
]
|
|
85847
|
+
},
|
|
85848
|
+
"post": {
|
|
85849
|
+
"description": "The owner shares a file with a person (`user:<id>`), a team (`team:<id>`) or the whole organization (`org`), as `viewer` (default) or `editor`. Sharing again changes the role. Free.",
|
|
85850
|
+
"operationId": "shareFile",
|
|
85851
|
+
"parameters": [
|
|
85852
|
+
{
|
|
85853
|
+
"description": "The file's id.",
|
|
85854
|
+
"in": "path",
|
|
85855
|
+
"name": "id",
|
|
85856
|
+
"required": true,
|
|
85857
|
+
"schema": {
|
|
85858
|
+
"description": "The file's id.",
|
|
85859
|
+
"example": "file_3f2a…",
|
|
85860
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
85861
|
+
"type": "string"
|
|
85862
|
+
}
|
|
85863
|
+
}
|
|
85864
|
+
],
|
|
85865
|
+
"requestBody": {
|
|
85866
|
+
"content": {
|
|
85867
|
+
"application/json": {
|
|
85868
|
+
"schema": {
|
|
85869
|
+
"$ref": "#/components/schemas/FileShareCreate"
|
|
85870
|
+
}
|
|
85871
|
+
}
|
|
85872
|
+
},
|
|
85873
|
+
"required": true
|
|
85874
|
+
},
|
|
85875
|
+
"responses": {
|
|
85876
|
+
"200": {
|
|
85877
|
+
"content": {
|
|
85878
|
+
"application/json": {
|
|
85879
|
+
"schema": {
|
|
85880
|
+
"properties": {
|
|
85881
|
+
"data": {
|
|
85882
|
+
"items": {
|
|
85883
|
+
"$ref": "#/components/schemas/FileShare"
|
|
85884
|
+
},
|
|
85885
|
+
"type": "array"
|
|
85886
|
+
}
|
|
85887
|
+
},
|
|
85888
|
+
"required": [
|
|
85889
|
+
"data"
|
|
85890
|
+
],
|
|
85891
|
+
"type": "object"
|
|
85892
|
+
}
|
|
85893
|
+
}
|
|
85894
|
+
},
|
|
85895
|
+
"description": "The file's shares"
|
|
85627
85896
|
},
|
|
85628
85897
|
"400": {
|
|
85629
85898
|
"content": {
|
|
@@ -102090,9 +102359,501 @@
|
|
|
102090
102359
|
]
|
|
102091
102360
|
}
|
|
102092
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
|
+
},
|
|
102093
102854
|
"/v1/studio/uploads": {
|
|
102094
102855
|
"get": {
|
|
102095
|
-
"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.",
|
|
102096
102857
|
"operationId": "listStudioUploads",
|
|
102097
102858
|
"responses": {
|
|
102098
102859
|
"200": {
|
|
@@ -102192,7 +102953,7 @@
|
|
|
102192
102953
|
]
|
|
102193
102954
|
},
|
|
102194
102955
|
"post": {
|
|
102195
|
-
"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.",
|
|
102196
102957
|
"operationId": "createStudioUpload",
|
|
102197
102958
|
"requestBody": {
|
|
102198
102959
|
"content": {
|
|
@@ -102304,7 +103065,7 @@
|
|
|
102304
103065
|
},
|
|
102305
103066
|
"/v1/studio/uploads/{name}": {
|
|
102306
103067
|
"delete": {
|
|
102307
|
-
"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.",
|
|
102308
103069
|
"operationId": "deleteStudioUpload",
|
|
102309
103070
|
"parameters": [
|
|
102310
103071
|
{
|
|
@@ -102420,7 +103181,7 @@
|
|
|
102420
103181
|
},
|
|
102421
103182
|
"/v1/studio/uploads/{name}/complete": {
|
|
102422
103183
|
"post": {
|
|
102423
|
-
"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.",
|
|
102424
103185
|
"operationId": "completeStudioUpload",
|
|
102425
103186
|
"parameters": [
|
|
102426
103187
|
{
|