@model-match/api 3.99.0 → 3.101.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/openapi.json CHANGED
@@ -27702,7 +27702,7 @@
27702
27702
  "File": {
27703
27703
  "properties": {
27704
27704
  "class": {
27705
- "description": "`standard` (the default) or `protected`. Protected files are not available yet.",
27705
+ "description": "`standard` (the default) or `protected`. A protected file is shared with named people only, opens through a one-time link, records every access in its access log, and an agent can open it only after the person approves it in that conversation. Not every organization can create protected files yet (`protected_not_enabled`).",
27706
27706
  "enum": [
27707
27707
  "standard",
27708
27708
  "protected"
@@ -27826,17 +27826,106 @@
27826
27826
  ],
27827
27827
  "type": "object"
27828
27828
  },
27829
+ "FileAccessLogEntry": {
27830
+ "properties": {
27831
+ "actor": {
27832
+ "additionalProperties": {
27833
+ "nullable": true
27834
+ },
27835
+ "description": "Who: `userId`, `mode` (`user`, `agent`, `agent_with_user`, `system`), and the agent, chat, run and case when there was one.",
27836
+ "type": "object"
27837
+ },
27838
+ "app": {
27839
+ "nullable": true,
27840
+ "type": "string"
27841
+ },
27842
+ "event": {
27843
+ "description": "`viewed`, `download_minted`, `downloaded`, `shared`, `unshared`, `linked`, `unlinked`, `updated`, `class_raised`, `retention_changed`, `deleted`, `created`, `derived`, `revised`, `agent_approved`.",
27844
+ "type": "string"
27845
+ },
27846
+ "fileId": {
27847
+ "type": "string"
27848
+ },
27849
+ "fileName": {
27850
+ "nullable": true,
27851
+ "type": "string"
27852
+ },
27853
+ "id": {
27854
+ "type": "string"
27855
+ },
27856
+ "ip": {
27857
+ "nullable": true,
27858
+ "type": "string"
27859
+ },
27860
+ "occurredAt": {
27861
+ "type": "string"
27862
+ },
27863
+ "reason": {
27864
+ "description": "Why it was denied (`no_access`, `insufficient_role`, `agent_not_approved`, `human_required`, `share_scope`, `token_used`, `token_expired`, `token_revoked`), or a note on an allowed entry (`org_admin`).",
27865
+ "nullable": true,
27866
+ "type": "string"
27867
+ },
27868
+ "result": {
27869
+ "enum": [
27870
+ "allowed",
27871
+ "denied"
27872
+ ],
27873
+ "type": "string"
27874
+ },
27875
+ "userAgent": {
27876
+ "nullable": true,
27877
+ "type": "string"
27878
+ }
27879
+ },
27880
+ "required": [
27881
+ "id",
27882
+ "fileId",
27883
+ "fileName",
27884
+ "event",
27885
+ "result",
27886
+ "reason",
27887
+ "actor",
27888
+ "app",
27889
+ "ip",
27890
+ "userAgent",
27891
+ "occurredAt"
27892
+ ],
27893
+ "type": "object"
27894
+ },
27895
+ "FileAgentApprovalCreate": {
27896
+ "additionalProperties": false,
27897
+ "properties": {
27898
+ "chatId": {
27899
+ "description": "The conversation the agent may open it in.",
27900
+ "pattern": "^[A-Za-z0-9_.:-]{1,200}$",
27901
+ "type": "string"
27902
+ }
27903
+ },
27904
+ "required": [
27905
+ "chatId"
27906
+ ],
27907
+ "type": "object"
27908
+ },
27829
27909
  "FileCreate": {
27830
27910
  "additionalProperties": false,
27831
27911
  "properties": {
27832
27912
  "class": {
27833
- "description": "`standard` (the default) or `protected`. Protected files are not available yet.",
27913
+ "description": "`standard` (the default) or `protected`. A protected file is shared with named people only, opens through a one-time link, records every access in its access log, and an agent can open it only after the person approves it in that conversation. Not every organization can create protected files yet (`protected_not_enabled`).",
27834
27914
  "enum": [
27835
27915
  "standard",
27836
27916
  "protected"
27837
27917
  ],
27838
27918
  "type": "string"
27839
27919
  },
27920
+ "derivedFrom": {
27921
+ "description": "Ids of the files this one was made from. If any is protected, the new file is protected too. You must be able to open each one.",
27922
+ "items": {
27923
+ "pattern": "^file_[0-9a-f]{32}$",
27924
+ "type": "string"
27925
+ },
27926
+ "maxItems": 20,
27927
+ "type": "array"
27928
+ },
27840
27929
  "kind": {
27841
27930
  "description": "Defaults from the type and extension.",
27842
27931
  "pattern": "^[a-z][a-z0-9_]{0,31}$",
@@ -27907,7 +27996,7 @@
27907
27996
  "FileError": {
27908
27997
  "properties": {
27909
27998
  "code": {
27910
- "description": "Stable code: `not_found`, `forbidden`, `no_organization`, `unauthenticated`, `invalid_request`, `invalid_cursor`, `invalid_principal`, `principal_not_in_organization`, `invalid_link_target`, `link_target_not_supported`, `link_not_found`, `share_not_found`, `upload_missing`, `upload_rejected`, `size_mismatch`, `checksum_mismatch`, `not_ready`, `legal_hold`, `retention`, `protected_not_enabled`, `storage_unavailable`, `membership_unavailable`.",
27999
+ "description": "Stable code: `not_found`, `forbidden`, `no_organization`, `unauthenticated`, `invalid_request`, `invalid_cursor`, `invalid_principal`, `principal_not_in_organization`, `invalid_link_target`, `link_target_not_supported`, `link_not_found`, `share_not_found`, `upload_missing`, `upload_rejected`, `size_mismatch`, `checksum_mismatch`, `not_ready`, `legal_hold`, `retention`, `protected_not_enabled`, `protected_share_scope`, `agent_not_approved`, `human_required`, `not_protected`, `invalid_derived_from`, `malware`, `scan_failed`, `access_log_unavailable`, `scan_pending`, `revision_pending`, `storage_unavailable`, `membership_unavailable`.",
27911
28000
  "type": "string"
27912
28001
  },
27913
28002
  "error": {
@@ -27941,12 +28030,16 @@
27941
28030
  "additionalProperties": false,
27942
28031
  "properties": {
27943
28032
  "class": {
27944
- "description": "Raise the class to protected. It can never be lowered.",
28033
+ "description": "Raise the class to protected (the owner only). It can never be lowered. Team and organization shares are removed.",
27945
28034
  "enum": [
27946
28035
  "protected"
27947
28036
  ],
27948
28037
  "type": "string"
27949
28038
  },
28039
+ "legalHold": {
28040
+ "description": "Put the file under a legal hold, or lift it (the owner or an organization admin). A file under a hold cannot be deleted.",
28041
+ "type": "boolean"
28042
+ },
27950
28043
  "metadata": {
27951
28044
  "additionalProperties": {
27952
28045
  "nullable": true
@@ -27957,6 +28050,12 @@
27957
28050
  "maxLength": 255,
27958
28051
  "minLength": 1,
27959
28052
  "type": "string"
28053
+ },
28054
+ "retainUntil": {
28055
+ "description": "Keep the file until this time (the owner or an organization admin); `null` clears it. The file cannot be deleted before then.",
28056
+ "format": "date-time",
28057
+ "nullable": true,
28058
+ "type": "string"
27960
28059
  }
27961
28060
  },
27962
28061
  "type": "object"
@@ -55518,6 +55617,58 @@
55518
55617
  ],
55519
55618
  "type": "object"
55520
55619
  },
55620
+ "StudioTable": {
55621
+ "properties": {
55622
+ "data": {
55623
+ "$ref": "#/components/schemas/StudioUpload"
55624
+ }
55625
+ },
55626
+ "required": [
55627
+ "data"
55628
+ ],
55629
+ "type": "object"
55630
+ },
55631
+ "StudioTableCreate": {
55632
+ "additionalProperties": false,
55633
+ "properties": {
55634
+ "description": {
55635
+ "description": "What the table holds, in a sentence. Shown in the catalog; generated from the file name when omitted.",
55636
+ "maxLength": 500,
55637
+ "type": "string"
55638
+ },
55639
+ "fromFileId": {
55640
+ "description": "The file in your files library to load: a CSV, TSV, Excel (.xlsx) or Parquet file you can open, whose status is `ready`.",
55641
+ "example": "file_3f2a9c0d4b5e6f708192a3b4c5d6e7f8",
55642
+ "pattern": "^file_[0-9a-f]{32}$",
55643
+ "type": "string"
55644
+ },
55645
+ "name": {
55646
+ "description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
55647
+ "example": "closed_loans",
55648
+ "pattern": "^[a-z][a-z0-9_]{0,55}$",
55649
+ "type": "string"
55650
+ }
55651
+ },
55652
+ "required": [
55653
+ "fromFileId",
55654
+ "name"
55655
+ ],
55656
+ "type": "object"
55657
+ },
55658
+ "StudioTableList": {
55659
+ "properties": {
55660
+ "data": {
55661
+ "items": {
55662
+ "$ref": "#/components/schemas/StudioUpload"
55663
+ },
55664
+ "type": "array"
55665
+ }
55666
+ },
55667
+ "required": [
55668
+ "data"
55669
+ ],
55670
+ "type": "object"
55671
+ },
55521
55672
  "StudioUpload": {
55522
55673
  "properties": {
55523
55674
  "bytes": {
@@ -55630,6 +55781,15 @@
55630
55781
  "nullable": true,
55631
55782
  "type": "number"
55632
55783
  },
55784
+ "sourceFileDeleted": {
55785
+ "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.",
55786
+ "type": "boolean"
55787
+ },
55788
+ "sourceFileId": {
55789
+ "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.",
55790
+ "nullable": true,
55791
+ "type": "string"
55792
+ },
55633
55793
  "status": {
55634
55794
  "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
55795
  "enum": [
@@ -55675,7 +55835,9 @@
55675
55835
  "columns",
55676
55836
  "warnings",
55677
55837
  "joinHints",
55678
- "bytes"
55838
+ "bytes",
55839
+ "sourceFileId",
55840
+ "sourceFileDeleted"
55679
55841
  ],
55680
55842
  "type": "object"
55681
55843
  },
@@ -57477,7 +57639,7 @@
57477
57639
  "info": {
57478
57640
  "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
57641
  "title": "ModelMatch API",
57480
- "version": "3.195.0"
57642
+ "version": "3.197.0"
57481
57643
  },
57482
57644
  "openapi": "3.1.0",
57483
57645
  "paths": {
@@ -83917,12 +84079,12 @@
83917
84079
  }
83918
84080
  },
83919
84081
  {
83920
- "description": "`standard` (the default) or `protected`. Protected files are not available yet.",
84082
+ "description": "`standard` (the default) or `protected`. A protected file is shared with named people only, opens through a one-time link, records every access in its access log, and an agent can open it only after the person approves it in that conversation. Not every organization can create protected files yet (`protected_not_enabled`).",
83921
84083
  "in": "query",
83922
84084
  "name": "class",
83923
84085
  "required": false,
83924
84086
  "schema": {
83925
- "description": "`standard` (the default) or `protected`. Protected files are not available yet.",
84087
+ "description": "`standard` (the default) or `protected`. A protected file is shared with named people only, opens through a one-time link, records every access in its access log, and an agent can open it only after the person approves it in that conversation. Not every organization can create protected files yet (`protected_not_enabled`).",
83926
84088
  "enum": [
83927
84089
  "standard",
83928
84090
  "protected"
@@ -84148,7 +84310,7 @@
84148
84310
  }
84149
84311
  }
84150
84312
  },
84151
- "description": "Storage unavailable"
84313
+ "description": "Storage or the access log unavailable"
84152
84314
  }
84153
84315
  },
84154
84316
  "summary": "Your files",
@@ -84306,7 +84468,7 @@
84306
84468
  }
84307
84469
  }
84308
84470
  },
84309
- "description": "Storage unavailable"
84471
+ "description": "Storage or the access log unavailable"
84310
84472
  }
84311
84473
  },
84312
84474
  "summary": "Start an upload",
@@ -84315,47 +84477,104 @@
84315
84477
  ]
84316
84478
  }
84317
84479
  },
84318
- "/v1/files/search": {
84480
+ "/v1/files/access-report": {
84319
84481
  "get": {
84320
- "description": "Files you can see whose name contains `q`, names that start with it first. Free.",
84321
- "operationId": "searchFiles",
84482
+ "description": "Organization admins: the access log across every protected file in the organization, newest first. Filter by file, person, event, result and time; pass `format=csv` for a spreadsheet. Free.",
84483
+ "operationId": "getFilesAccessReport",
84322
84484
  "parameters": [
84323
84485
  {
84324
84486
  "in": "query",
84325
- "name": "q",
84326
- "required": true,
84487
+ "name": "limit",
84488
+ "required": false,
84489
+ "schema": {
84490
+ "default": 100,
84491
+ "maximum": 500,
84492
+ "minimum": 1,
84493
+ "type": "integer"
84494
+ }
84495
+ },
84496
+ {
84497
+ "in": "query",
84498
+ "name": "cursor",
84499
+ "required": false,
84327
84500
  "schema": {
84328
84501
  "maxLength": 200,
84502
+ "type": "string"
84503
+ }
84504
+ },
84505
+ {
84506
+ "description": "The file's id.",
84507
+ "in": "query",
84508
+ "name": "fileId",
84509
+ "required": false,
84510
+ "schema": {
84511
+ "description": "The file's id.",
84512
+ "example": "file_3f2a…",
84513
+ "pattern": "^file_[0-9a-f]{32}$",
84514
+ "type": "string"
84515
+ }
84516
+ },
84517
+ {
84518
+ "in": "query",
84519
+ "name": "userId",
84520
+ "required": false,
84521
+ "schema": {
84522
+ "maxLength": 128,
84329
84523
  "minLength": 1,
84330
84524
  "type": "string"
84331
84525
  }
84332
84526
  },
84333
84527
  {
84334
84528
  "in": "query",
84335
- "name": "limit",
84529
+ "name": "event",
84336
84530
  "required": false,
84337
84531
  "schema": {
84338
- "default": 20,
84339
- "maximum": 50,
84340
- "minimum": 1,
84341
- "type": "integer"
84532
+ "pattern": "^[a-z_]{1,40}$",
84533
+ "type": "string"
84342
84534
  }
84343
84535
  },
84344
84536
  {
84345
84537
  "in": "query",
84346
- "name": "kind",
84538
+ "name": "result",
84347
84539
  "required": false,
84348
84540
  "schema": {
84349
- "maxLength": 512,
84541
+ "enum": [
84542
+ "allowed",
84543
+ "denied"
84544
+ ],
84350
84545
  "type": "string"
84351
84546
  }
84352
84547
  },
84353
84548
  {
84354
84549
  "in": "query",
84355
- "name": "origin",
84550
+ "name": "from",
84356
84551
  "required": false,
84357
84552
  "schema": {
84358
- "maxLength": 512,
84553
+ "format": "date-time",
84554
+ "type": "string"
84555
+ }
84556
+ },
84557
+ {
84558
+ "in": "query",
84559
+ "name": "to",
84560
+ "required": false,
84561
+ "schema": {
84562
+ "format": "date-time",
84563
+ "type": "string"
84564
+ }
84565
+ },
84566
+ {
84567
+ "description": "`csv` answers a spreadsheet of up to 10,000 entries.",
84568
+ "in": "query",
84569
+ "name": "format",
84570
+ "required": false,
84571
+ "schema": {
84572
+ "default": "json",
84573
+ "description": "`csv` answers a spreadsheet of up to 10,000 entries.",
84574
+ "enum": [
84575
+ "json",
84576
+ "csv"
84577
+ ],
84359
84578
  "type": "string"
84360
84579
  }
84361
84580
  }
@@ -84368,19 +84587,29 @@
84368
84587
  "properties": {
84369
84588
  "data": {
84370
84589
  "items": {
84371
- "$ref": "#/components/schemas/File"
84590
+ "$ref": "#/components/schemas/FileAccessLogEntry"
84372
84591
  },
84373
84592
  "type": "array"
84593
+ },
84594
+ "nextCursor": {
84595
+ "nullable": true,
84596
+ "type": "string"
84374
84597
  }
84375
84598
  },
84376
84599
  "required": [
84377
- "data"
84600
+ "data",
84601
+ "nextCursor"
84378
84602
  ],
84379
84603
  "type": "object"
84380
84604
  }
84605
+ },
84606
+ "text/csv": {
84607
+ "schema": {
84608
+ "type": "string"
84609
+ }
84381
84610
  }
84382
84611
  },
84383
- "description": "Matching files"
84612
+ "description": "Access log entries"
84384
84613
  },
84385
84614
  "400": {
84386
84615
  "content": {
@@ -84460,29 +84689,102 @@
84460
84689
  }
84461
84690
  }
84462
84691
  },
84463
- "description": "Storage unavailable"
84692
+ "description": "Storage or the access log unavailable"
84464
84693
  }
84465
84694
  },
84466
- "summary": "Search your files by name",
84695
+ "summary": "Who opened which protected files",
84467
84696
  "tags": [
84468
84697
  "Files"
84469
84698
  ]
84470
84699
  }
84471
84700
  },
84472
- "/v1/files/{id}": {
84473
- "delete": {
84474
- "description": "The owner or an organization admin can delete a file. Its contents are removed; a record that it existed is kept. Refused while a retention date or a legal hold applies. Data already loaded from the file elsewhere (a Studio table) is not deleted. Free.",
84475
- "operationId": "deleteFile",
84701
+ "/v1/files/d/{token}": {
84702
+ "get": {
84703
+ "description": "The link a protected file's content request hands out. It works once, within 5 minutes, needs no sign-in (the link itself is the permission) and redirects to a download that lasts at most a minute. A second use answers 410. Free.",
84704
+ "operationId": "redeemFileDownload",
84476
84705
  "parameters": [
84477
84706
  {
84478
- "description": "The file's id.",
84707
+ "description": "The one-time link's token.",
84479
84708
  "in": "path",
84480
- "name": "id",
84709
+ "name": "token",
84481
84710
  "required": true,
84482
84711
  "schema": {
84483
- "description": "The file's id.",
84484
- "example": "file_3f2a…",
84485
- "pattern": "^file_[0-9a-f]{32}$",
84712
+ "description": "The one-time link's token.",
84713
+ "maxLength": 100,
84714
+ "minLength": 1,
84715
+ "type": "string"
84716
+ }
84717
+ }
84718
+ ],
84719
+ "responses": {
84720
+ "302": {
84721
+ "description": "Redirect to the download",
84722
+ "headers": {
84723
+ "location": {
84724
+ "required": true,
84725
+ "schema": {
84726
+ "type": "string"
84727
+ }
84728
+ }
84729
+ }
84730
+ },
84731
+ "404": {
84732
+ "description": "No such link"
84733
+ },
84734
+ "410": {
84735
+ "description": "The link was already used or has expired"
84736
+ },
84737
+ "503": {
84738
+ "description": "Not available right now"
84739
+ }
84740
+ },
84741
+ "summary": "Open a protected file's one-time link",
84742
+ "tags": [
84743
+ "Files"
84744
+ ]
84745
+ }
84746
+ },
84747
+ "/v1/files/search": {
84748
+ "get": {
84749
+ "description": "Files you can see whose name contains `q`, names that start with it first. Free.",
84750
+ "operationId": "searchFiles",
84751
+ "parameters": [
84752
+ {
84753
+ "in": "query",
84754
+ "name": "q",
84755
+ "required": true,
84756
+ "schema": {
84757
+ "maxLength": 200,
84758
+ "minLength": 1,
84759
+ "type": "string"
84760
+ }
84761
+ },
84762
+ {
84763
+ "in": "query",
84764
+ "name": "limit",
84765
+ "required": false,
84766
+ "schema": {
84767
+ "default": 20,
84768
+ "maximum": 50,
84769
+ "minimum": 1,
84770
+ "type": "integer"
84771
+ }
84772
+ },
84773
+ {
84774
+ "in": "query",
84775
+ "name": "kind",
84776
+ "required": false,
84777
+ "schema": {
84778
+ "maxLength": 512,
84779
+ "type": "string"
84780
+ }
84781
+ },
84782
+ {
84783
+ "in": "query",
84784
+ "name": "origin",
84785
+ "required": false,
84786
+ "schema": {
84787
+ "maxLength": 512,
84486
84788
  "type": "string"
84487
84789
  }
84488
84790
  }
@@ -84494,22 +84796,10 @@
84494
84796
  "schema": {
84495
84797
  "properties": {
84496
84798
  "data": {
84497
- "properties": {
84498
- "deleted": {
84499
- "enum": [
84500
- true
84501
- ],
84502
- "type": "boolean"
84503
- },
84504
- "id": {
84505
- "type": "string"
84506
- }
84799
+ "items": {
84800
+ "$ref": "#/components/schemas/File"
84507
84801
  },
84508
- "required": [
84509
- "id",
84510
- "deleted"
84511
- ],
84512
- "type": "object"
84802
+ "type": "array"
84513
84803
  }
84514
84804
  },
84515
84805
  "required": [
@@ -84519,7 +84809,7 @@
84519
84809
  }
84520
84810
  }
84521
84811
  },
84522
- "description": "Deleted"
84812
+ "description": "Matching files"
84523
84813
  },
84524
84814
  "400": {
84525
84815
  "content": {
@@ -84599,17 +84889,19 @@
84599
84889
  }
84600
84890
  }
84601
84891
  },
84602
- "description": "Storage unavailable"
84892
+ "description": "Storage or the access log unavailable"
84603
84893
  }
84604
84894
  },
84605
- "summary": "Delete a file",
84895
+ "summary": "Search your files by name",
84606
84896
  "tags": [
84607
84897
  "Files"
84608
84898
  ]
84609
- },
84610
- "get": {
84611
- "description": "A file you can see, with who it is shared with and what it is attached to. A file you cannot see answers 404, the same as one that does not exist. Free.",
84612
- "operationId": "getFile",
84899
+ }
84900
+ },
84901
+ "/v1/files/{id}": {
84902
+ "delete": {
84903
+ "description": "The owner or an organization admin can delete a file. Its contents are removed; a record that it existed is kept. Refused while a retention date or a legal hold applies. Data already loaded from the file elsewhere (a Studio table) is not deleted. Free.",
84904
+ "operationId": "deleteFile",
84613
84905
  "parameters": [
84614
84906
  {
84615
84907
  "description": "The file's id.",
@@ -84632,19 +84924,19 @@
84632
84924
  "properties": {
84633
84925
  "data": {
84634
84926
  "properties": {
84635
- "file": {
84636
- "$ref": "#/components/schemas/File"
84927
+ "deleted": {
84928
+ "enum": [
84929
+ true
84930
+ ],
84931
+ "type": "boolean"
84637
84932
  },
84638
- "shares": {
84639
- "items": {
84640
- "$ref": "#/components/schemas/FileShare"
84641
- },
84642
- "type": "array"
84933
+ "id": {
84934
+ "type": "string"
84643
84935
  }
84644
84936
  },
84645
84937
  "required": [
84646
- "file",
84647
- "shares"
84938
+ "id",
84939
+ "deleted"
84648
84940
  ],
84649
84941
  "type": "object"
84650
84942
  }
@@ -84656,7 +84948,7 @@
84656
84948
  }
84657
84949
  }
84658
84950
  },
84659
- "description": "The file"
84951
+ "description": "Deleted"
84660
84952
  },
84661
84953
  "400": {
84662
84954
  "content": {
@@ -84736,17 +85028,17 @@
84736
85028
  }
84737
85029
  }
84738
85030
  },
84739
- "description": "Storage unavailable"
85031
+ "description": "Storage or the access log unavailable"
84740
85032
  }
84741
85033
  },
84742
- "summary": "One file: its details, shares and links",
85034
+ "summary": "Delete a file",
84743
85035
  "tags": [
84744
85036
  "Files"
84745
85037
  ]
84746
85038
  },
84747
- "patch": {
84748
- "description": "The owner and editors can rename a file or replace its `metadata`. Free.",
84749
- "operationId": "updateFile",
85039
+ "get": {
85040
+ "description": "A file you can see, with who it is shared with and what it is attached to. A file you cannot see answers 404, the same as one that does not exist. Free.",
85041
+ "operationId": "getFile",
84750
85042
  "parameters": [
84751
85043
  {
84752
85044
  "description": "The file's id.",
@@ -84761,16 +85053,6 @@
84761
85053
  }
84762
85054
  }
84763
85055
  ],
84764
- "requestBody": {
84765
- "content": {
84766
- "application/json": {
84767
- "schema": {
84768
- "$ref": "#/components/schemas/FilePatch"
84769
- }
84770
- }
84771
- },
84772
- "required": true
84773
- },
84774
85056
  "responses": {
84775
85057
  "200": {
84776
85058
  "content": {
@@ -84778,7 +85060,22 @@
84778
85060
  "schema": {
84779
85061
  "properties": {
84780
85062
  "data": {
84781
- "$ref": "#/components/schemas/File"
85063
+ "properties": {
85064
+ "file": {
85065
+ "$ref": "#/components/schemas/File"
85066
+ },
85067
+ "shares": {
85068
+ "items": {
85069
+ "$ref": "#/components/schemas/FileShare"
85070
+ },
85071
+ "type": "array"
85072
+ }
85073
+ },
85074
+ "required": [
85075
+ "file",
85076
+ "shares"
85077
+ ],
85078
+ "type": "object"
84782
85079
  }
84783
85080
  },
84784
85081
  "required": [
@@ -84788,7 +85085,7 @@
84788
85085
  }
84789
85086
  }
84790
85087
  },
84791
- "description": "The updated file"
85088
+ "description": "The file"
84792
85089
  },
84793
85090
  "400": {
84794
85091
  "content": {
@@ -84868,19 +85165,17 @@
84868
85165
  }
84869
85166
  }
84870
85167
  },
84871
- "description": "Storage unavailable"
85168
+ "description": "Storage or the access log unavailable"
84872
85169
  }
84873
85170
  },
84874
- "summary": "Rename a file or edit its metadata",
85171
+ "summary": "One file: its details, shares and links",
84875
85172
  "tags": [
84876
85173
  "Files"
84877
85174
  ]
84878
- }
84879
- },
84880
- "/v1/files/{id}/complete": {
84881
- "post": {
84882
- "description": "Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked; a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.",
84883
- "operationId": "completeFile",
85175
+ },
85176
+ "patch": {
85177
+ "description": "The owner and editors can rename a file or replace its `metadata`. Free.",
85178
+ "operationId": "updateFile",
84884
85179
  "parameters": [
84885
85180
  {
84886
85181
  "description": "The file's id.",
@@ -84895,26 +85190,18 @@
84895
85190
  }
84896
85191
  }
84897
85192
  ],
84898
- "responses": {
84899
- "200": {
84900
- "content": {
84901
- "application/json": {
84902
- "schema": {
84903
- "properties": {
84904
- "data": {
84905
- "$ref": "#/components/schemas/File"
84906
- }
84907
- },
84908
- "required": [
84909
- "data"
84910
- ],
84911
- "type": "object"
84912
- }
85193
+ "requestBody": {
85194
+ "content": {
85195
+ "application/json": {
85196
+ "schema": {
85197
+ "$ref": "#/components/schemas/FilePatch"
84913
85198
  }
84914
- },
84915
- "description": "The file is ready"
85199
+ }
84916
85200
  },
84917
- "202": {
85201
+ "required": true
85202
+ },
85203
+ "responses": {
85204
+ "200": {
84918
85205
  "content": {
84919
85206
  "application/json": {
84920
85207
  "schema": {
@@ -84930,7 +85217,7 @@
84930
85217
  }
84931
85218
  }
84932
85219
  },
84933
- "description": "The file is being scanned"
85220
+ "description": "The updated file"
84934
85221
  },
84935
85222
  "400": {
84936
85223
  "content": {
@@ -85010,19 +85297,19 @@
85010
85297
  }
85011
85298
  }
85012
85299
  },
85013
- "description": "Storage unavailable"
85300
+ "description": "Storage or the access log unavailable"
85014
85301
  }
85015
85302
  },
85016
- "summary": "Finish an upload",
85303
+ "summary": "Rename a file or edit its metadata",
85017
85304
  "tags": [
85018
85305
  "Files"
85019
85306
  ]
85020
85307
  }
85021
85308
  },
85022
- "/v1/files/{id}/content": {
85309
+ "/v1/files/{id}/access-log": {
85023
85310
  "get": {
85024
- "description": "Redirects to a short-lived download link for a ready file. This path is the file's permanent link: it never expires, because each open is checked again. Pass `redirect=false` to get the link as JSON instead. Free.",
85025
- "operationId": "getFileContent",
85311
+ "description": "Every access to a protected file, newest first: who opened, downloaded, shared or changed it, from which app, and every refused attempt. The owner and organization admins only. Free.",
85312
+ "operationId": "getFileAccessLog",
85026
85313
  "parameters": [
85027
85314
  {
85028
85315
  "description": "The file's id.",
@@ -85038,29 +85325,21 @@
85038
85325
  },
85039
85326
  {
85040
85327
  "in": "query",
85041
- "name": "disposition",
85328
+ "name": "limit",
85042
85329
  "required": false,
85043
85330
  "schema": {
85044
- "default": "attachment",
85045
- "enum": [
85046
- "inline",
85047
- "attachment"
85048
- ],
85049
- "type": "string"
85331
+ "default": 100,
85332
+ "maximum": 500,
85333
+ "minimum": 1,
85334
+ "type": "integer"
85050
85335
  }
85051
85336
  },
85052
85337
  {
85053
- "description": "`false` answers with the link as JSON instead of redirecting.",
85054
85338
  "in": "query",
85055
- "name": "redirect",
85339
+ "name": "cursor",
85056
85340
  "required": false,
85057
85341
  "schema": {
85058
- "default": "true",
85059
- "description": "`false` answers with the link as JSON instead of redirecting.",
85060
- "enum": [
85061
- "true",
85062
- "false"
85063
- ],
85342
+ "maxLength": 200,
85064
85343
  "type": "string"
85065
85344
  }
85066
85345
  }
@@ -85072,40 +85351,25 @@
85072
85351
  "schema": {
85073
85352
  "properties": {
85074
85353
  "data": {
85075
- "properties": {
85076
- "expiresAt": {
85077
- "type": "string"
85078
- },
85079
- "url": {
85080
- "type": "string"
85081
- }
85354
+ "items": {
85355
+ "$ref": "#/components/schemas/FileAccessLogEntry"
85082
85356
  },
85083
- "required": [
85084
- "url",
85085
- "expiresAt"
85086
- ],
85087
- "type": "object"
85357
+ "type": "array"
85358
+ },
85359
+ "nextCursor": {
85360
+ "nullable": true,
85361
+ "type": "string"
85088
85362
  }
85089
85363
  },
85090
85364
  "required": [
85091
- "data"
85365
+ "data",
85366
+ "nextCursor"
85092
85367
  ],
85093
85368
  "type": "object"
85094
85369
  }
85095
85370
  }
85096
85371
  },
85097
- "description": "The download link (with `redirect=false`)"
85098
- },
85099
- "302": {
85100
- "description": "Redirect to the download link",
85101
- "headers": {
85102
- "location": {
85103
- "required": true,
85104
- "schema": {
85105
- "type": "string"
85106
- }
85107
- }
85108
- }
85372
+ "description": "Access log entries"
85109
85373
  },
85110
85374
  "400": {
85111
85375
  "content": {
@@ -85185,19 +85449,19 @@
85185
85449
  }
85186
85450
  }
85187
85451
  },
85188
- "description": "Storage unavailable"
85452
+ "description": "Storage or the access log unavailable"
85189
85453
  }
85190
85454
  },
85191
- "summary": "Open a file",
85455
+ "summary": "A protected file's access log",
85192
85456
  "tags": [
85193
85457
  "Files"
85194
85458
  ]
85195
85459
  }
85196
85460
  },
85197
- "/v1/files/{id}/links": {
85198
- "delete": {
85199
- "description": "The owner or an editor removes a link. Free.",
85200
- "operationId": "unlinkFile",
85461
+ "/v1/files/{id}/agent-approvals": {
85462
+ "post": {
85463
+ "description": "You approve an agent to open this protected file in the conversation `chatId`, and nowhere else. Only you can approve, from your own session: an agent cannot approve itself. Each approval is recorded in the file's access log. Free.",
85464
+ "operationId": "approveFileForAgent",
85201
85465
  "parameters": [
85202
85466
  {
85203
85467
  "description": "The file's id.",
@@ -85210,32 +85474,46 @@
85210
85474
  "pattern": "^file_[0-9a-f]{32}$",
85211
85475
  "type": "string"
85212
85476
  }
85213
- },
85214
- {
85215
- "description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
85216
- "in": "query",
85217
- "name": "target",
85218
- "required": true,
85219
- "schema": {
85220
- "description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
85221
- "example": "ask_chat:chat_123",
85222
- "maxLength": 220,
85223
- "minLength": 3,
85224
- "type": "string"
85225
- }
85226
85477
  }
85227
85478
  ],
85479
+ "requestBody": {
85480
+ "content": {
85481
+ "application/json": {
85482
+ "schema": {
85483
+ "$ref": "#/components/schemas/FileAgentApprovalCreate"
85484
+ }
85485
+ }
85486
+ },
85487
+ "required": true
85488
+ },
85228
85489
  "responses": {
85229
- "200": {
85490
+ "201": {
85230
85491
  "content": {
85231
85492
  "application/json": {
85232
85493
  "schema": {
85233
85494
  "properties": {
85234
85495
  "data": {
85235
- "items": {
85236
- "type": "string"
85496
+ "properties": {
85497
+ "approvedAt": {
85498
+ "type": "string"
85499
+ },
85500
+ "chatId": {
85501
+ "type": "string"
85502
+ },
85503
+ "fileId": {
85504
+ "type": "string"
85505
+ },
85506
+ "userId": {
85507
+ "type": "string"
85508
+ }
85237
85509
  },
85238
- "type": "array"
85510
+ "required": [
85511
+ "fileId",
85512
+ "chatId",
85513
+ "userId",
85514
+ "approvedAt"
85515
+ ],
85516
+ "type": "object"
85239
85517
  }
85240
85518
  },
85241
85519
  "required": [
@@ -85245,7 +85523,7 @@
85245
85523
  }
85246
85524
  }
85247
85525
  },
85248
- "description": "The file's links"
85526
+ "description": "Approved"
85249
85527
  },
85250
85528
  "400": {
85251
85529
  "content": {
@@ -85325,17 +85603,19 @@
85325
85603
  }
85326
85604
  }
85327
85605
  },
85328
- "description": "Storage unavailable"
85606
+ "description": "Storage or the access log unavailable"
85329
85607
  }
85330
85608
  },
85331
- "summary": "Detach a file",
85609
+ "summary": "Let an agent open a protected file in one conversation",
85332
85610
  "tags": [
85333
85611
  "Files"
85334
85612
  ]
85335
- },
85613
+ }
85614
+ },
85615
+ "/v1/files/{id}/complete": {
85336
85616
  "post": {
85337
- "description": "The owner or an editor attaches a file to a Studio table, a chat, a project or an export. A link does not share the file with anyone. Free.",
85338
- "operationId": "linkFile",
85617
+ "description": "Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked; a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.",
85618
+ "operationId": "completeFile",
85339
85619
  "parameters": [
85340
85620
  {
85341
85621
  "description": "The file's id.",
@@ -85350,16 +85630,6 @@
85350
85630
  }
85351
85631
  }
85352
85632
  ],
85353
- "requestBody": {
85354
- "content": {
85355
- "application/json": {
85356
- "schema": {
85357
- "$ref": "#/components/schemas/FileLinkCreate"
85358
- }
85359
- }
85360
- },
85361
- "required": true
85362
- },
85363
85633
  "responses": {
85364
85634
  "200": {
85365
85635
  "content": {
@@ -85367,10 +85637,7 @@
85367
85637
  "schema": {
85368
85638
  "properties": {
85369
85639
  "data": {
85370
- "items": {
85371
- "type": "string"
85372
- },
85373
- "type": "array"
85640
+ "$ref": "#/components/schemas/File"
85374
85641
  }
85375
85642
  },
85376
85643
  "required": [
@@ -85380,7 +85647,25 @@
85380
85647
  }
85381
85648
  }
85382
85649
  },
85383
- "description": "The file's links"
85650
+ "description": "The file is ready"
85651
+ },
85652
+ "202": {
85653
+ "content": {
85654
+ "application/json": {
85655
+ "schema": {
85656
+ "properties": {
85657
+ "data": {
85658
+ "$ref": "#/components/schemas/File"
85659
+ }
85660
+ },
85661
+ "required": [
85662
+ "data"
85663
+ ],
85664
+ "type": "object"
85665
+ }
85666
+ }
85667
+ },
85668
+ "description": "The file is being scanned"
85384
85669
  },
85385
85670
  "400": {
85386
85671
  "content": {
@@ -85460,7 +85745,462 @@
85460
85745
  }
85461
85746
  }
85462
85747
  },
85463
- "description": "Storage unavailable"
85748
+ "description": "Storage or the access log unavailable"
85749
+ }
85750
+ },
85751
+ "summary": "Finish an upload",
85752
+ "tags": [
85753
+ "Files"
85754
+ ]
85755
+ }
85756
+ },
85757
+ "/v1/files/{id}/content": {
85758
+ "get": {
85759
+ "description": "Redirects to a short-lived download link for a ready file. This path is the file's permanent link: it never expires, because each open is checked again. Pass `redirect=false` to get the link as JSON instead. Free.",
85760
+ "operationId": "getFileContent",
85761
+ "parameters": [
85762
+ {
85763
+ "description": "The file's id.",
85764
+ "in": "path",
85765
+ "name": "id",
85766
+ "required": true,
85767
+ "schema": {
85768
+ "description": "The file's id.",
85769
+ "example": "file_3f2a…",
85770
+ "pattern": "^file_[0-9a-f]{32}$",
85771
+ "type": "string"
85772
+ }
85773
+ },
85774
+ {
85775
+ "in": "query",
85776
+ "name": "disposition",
85777
+ "required": false,
85778
+ "schema": {
85779
+ "default": "attachment",
85780
+ "enum": [
85781
+ "inline",
85782
+ "attachment"
85783
+ ],
85784
+ "type": "string"
85785
+ }
85786
+ },
85787
+ {
85788
+ "description": "`false` answers with the link as JSON instead of redirecting.",
85789
+ "in": "query",
85790
+ "name": "redirect",
85791
+ "required": false,
85792
+ "schema": {
85793
+ "default": "true",
85794
+ "description": "`false` answers with the link as JSON instead of redirecting.",
85795
+ "enum": [
85796
+ "true",
85797
+ "false"
85798
+ ],
85799
+ "type": "string"
85800
+ }
85801
+ }
85802
+ ],
85803
+ "responses": {
85804
+ "200": {
85805
+ "content": {
85806
+ "application/json": {
85807
+ "schema": {
85808
+ "properties": {
85809
+ "data": {
85810
+ "properties": {
85811
+ "expiresAt": {
85812
+ "type": "string"
85813
+ },
85814
+ "oneTime": {
85815
+ "description": "`true` for a protected file: the link opens once, within 5 minutes, and only for you.",
85816
+ "type": "boolean"
85817
+ },
85818
+ "url": {
85819
+ "type": "string"
85820
+ }
85821
+ },
85822
+ "required": [
85823
+ "url",
85824
+ "expiresAt",
85825
+ "oneTime"
85826
+ ],
85827
+ "type": "object"
85828
+ }
85829
+ },
85830
+ "required": [
85831
+ "data"
85832
+ ],
85833
+ "type": "object"
85834
+ }
85835
+ }
85836
+ },
85837
+ "description": "The download link (with `redirect=false`)"
85838
+ },
85839
+ "302": {
85840
+ "description": "Redirect to the download link",
85841
+ "headers": {
85842
+ "location": {
85843
+ "required": true,
85844
+ "schema": {
85845
+ "type": "string"
85846
+ }
85847
+ }
85848
+ }
85849
+ },
85850
+ "400": {
85851
+ "content": {
85852
+ "application/json": {
85853
+ "schema": {
85854
+ "$ref": "#/components/schemas/FileError"
85855
+ }
85856
+ }
85857
+ },
85858
+ "description": "Invalid request"
85859
+ },
85860
+ "401": {
85861
+ "content": {
85862
+ "application/json": {
85863
+ "schema": {
85864
+ "$ref": "#/components/schemas/FileError"
85865
+ }
85866
+ }
85867
+ },
85868
+ "description": "Not signed in"
85869
+ },
85870
+ "403": {
85871
+ "content": {
85872
+ "application/json": {
85873
+ "schema": {
85874
+ "$ref": "#/components/schemas/FileError"
85875
+ }
85876
+ }
85877
+ },
85878
+ "description": "Not allowed"
85879
+ },
85880
+ "404": {
85881
+ "content": {
85882
+ "application/json": {
85883
+ "schema": {
85884
+ "$ref": "#/components/schemas/FileError"
85885
+ }
85886
+ }
85887
+ },
85888
+ "description": "No such file"
85889
+ },
85890
+ "409": {
85891
+ "content": {
85892
+ "application/json": {
85893
+ "schema": {
85894
+ "$ref": "#/components/schemas/FileError"
85895
+ }
85896
+ }
85897
+ },
85898
+ "description": "Conflicts with the file's state"
85899
+ },
85900
+ "422": {
85901
+ "content": {
85902
+ "application/json": {
85903
+ "schema": {
85904
+ "$ref": "#/components/schemas/FileError"
85905
+ }
85906
+ }
85907
+ },
85908
+ "description": "The upload did not match"
85909
+ },
85910
+ "502": {
85911
+ "content": {
85912
+ "application/json": {
85913
+ "schema": {
85914
+ "$ref": "#/components/schemas/FileError"
85915
+ }
85916
+ }
85917
+ },
85918
+ "description": "Could not check membership"
85919
+ },
85920
+ "503": {
85921
+ "content": {
85922
+ "application/json": {
85923
+ "schema": {
85924
+ "$ref": "#/components/schemas/FileError"
85925
+ }
85926
+ }
85927
+ },
85928
+ "description": "Storage or the access log unavailable"
85929
+ }
85930
+ },
85931
+ "summary": "Open a file",
85932
+ "tags": [
85933
+ "Files"
85934
+ ]
85935
+ }
85936
+ },
85937
+ "/v1/files/{id}/links": {
85938
+ "delete": {
85939
+ "description": "The owner or an editor removes a link. Free.",
85940
+ "operationId": "unlinkFile",
85941
+ "parameters": [
85942
+ {
85943
+ "description": "The file's id.",
85944
+ "in": "path",
85945
+ "name": "id",
85946
+ "required": true,
85947
+ "schema": {
85948
+ "description": "The file's id.",
85949
+ "example": "file_3f2a…",
85950
+ "pattern": "^file_[0-9a-f]{32}$",
85951
+ "type": "string"
85952
+ }
85953
+ },
85954
+ {
85955
+ "description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
85956
+ "in": "query",
85957
+ "name": "target",
85958
+ "required": true,
85959
+ "schema": {
85960
+ "description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
85961
+ "example": "ask_chat:chat_123",
85962
+ "maxLength": 220,
85963
+ "minLength": 3,
85964
+ "type": "string"
85965
+ }
85966
+ }
85967
+ ],
85968
+ "responses": {
85969
+ "200": {
85970
+ "content": {
85971
+ "application/json": {
85972
+ "schema": {
85973
+ "properties": {
85974
+ "data": {
85975
+ "items": {
85976
+ "type": "string"
85977
+ },
85978
+ "type": "array"
85979
+ }
85980
+ },
85981
+ "required": [
85982
+ "data"
85983
+ ],
85984
+ "type": "object"
85985
+ }
85986
+ }
85987
+ },
85988
+ "description": "The file's links"
85989
+ },
85990
+ "400": {
85991
+ "content": {
85992
+ "application/json": {
85993
+ "schema": {
85994
+ "$ref": "#/components/schemas/FileError"
85995
+ }
85996
+ }
85997
+ },
85998
+ "description": "Invalid request"
85999
+ },
86000
+ "401": {
86001
+ "content": {
86002
+ "application/json": {
86003
+ "schema": {
86004
+ "$ref": "#/components/schemas/FileError"
86005
+ }
86006
+ }
86007
+ },
86008
+ "description": "Not signed in"
86009
+ },
86010
+ "403": {
86011
+ "content": {
86012
+ "application/json": {
86013
+ "schema": {
86014
+ "$ref": "#/components/schemas/FileError"
86015
+ }
86016
+ }
86017
+ },
86018
+ "description": "Not allowed"
86019
+ },
86020
+ "404": {
86021
+ "content": {
86022
+ "application/json": {
86023
+ "schema": {
86024
+ "$ref": "#/components/schemas/FileError"
86025
+ }
86026
+ }
86027
+ },
86028
+ "description": "No such file"
86029
+ },
86030
+ "409": {
86031
+ "content": {
86032
+ "application/json": {
86033
+ "schema": {
86034
+ "$ref": "#/components/schemas/FileError"
86035
+ }
86036
+ }
86037
+ },
86038
+ "description": "Conflicts with the file's state"
86039
+ },
86040
+ "422": {
86041
+ "content": {
86042
+ "application/json": {
86043
+ "schema": {
86044
+ "$ref": "#/components/schemas/FileError"
86045
+ }
86046
+ }
86047
+ },
86048
+ "description": "The upload did not match"
86049
+ },
86050
+ "502": {
86051
+ "content": {
86052
+ "application/json": {
86053
+ "schema": {
86054
+ "$ref": "#/components/schemas/FileError"
86055
+ }
86056
+ }
86057
+ },
86058
+ "description": "Could not check membership"
86059
+ },
86060
+ "503": {
86061
+ "content": {
86062
+ "application/json": {
86063
+ "schema": {
86064
+ "$ref": "#/components/schemas/FileError"
86065
+ }
86066
+ }
86067
+ },
86068
+ "description": "Storage or the access log unavailable"
86069
+ }
86070
+ },
86071
+ "summary": "Detach a file",
86072
+ "tags": [
86073
+ "Files"
86074
+ ]
86075
+ },
86076
+ "post": {
86077
+ "description": "The owner or an editor attaches a file to a Studio table, a chat, a project or an export. A link does not share the file with anyone. Free.",
86078
+ "operationId": "linkFile",
86079
+ "parameters": [
86080
+ {
86081
+ "description": "The file's id.",
86082
+ "in": "path",
86083
+ "name": "id",
86084
+ "required": true,
86085
+ "schema": {
86086
+ "description": "The file's id.",
86087
+ "example": "file_3f2a…",
86088
+ "pattern": "^file_[0-9a-f]{32}$",
86089
+ "type": "string"
86090
+ }
86091
+ }
86092
+ ],
86093
+ "requestBody": {
86094
+ "content": {
86095
+ "application/json": {
86096
+ "schema": {
86097
+ "$ref": "#/components/schemas/FileLinkCreate"
86098
+ }
86099
+ }
86100
+ },
86101
+ "required": true
86102
+ },
86103
+ "responses": {
86104
+ "200": {
86105
+ "content": {
86106
+ "application/json": {
86107
+ "schema": {
86108
+ "properties": {
86109
+ "data": {
86110
+ "items": {
86111
+ "type": "string"
86112
+ },
86113
+ "type": "array"
86114
+ }
86115
+ },
86116
+ "required": [
86117
+ "data"
86118
+ ],
86119
+ "type": "object"
86120
+ }
86121
+ }
86122
+ },
86123
+ "description": "The file's links"
86124
+ },
86125
+ "400": {
86126
+ "content": {
86127
+ "application/json": {
86128
+ "schema": {
86129
+ "$ref": "#/components/schemas/FileError"
86130
+ }
86131
+ }
86132
+ },
86133
+ "description": "Invalid request"
86134
+ },
86135
+ "401": {
86136
+ "content": {
86137
+ "application/json": {
86138
+ "schema": {
86139
+ "$ref": "#/components/schemas/FileError"
86140
+ }
86141
+ }
86142
+ },
86143
+ "description": "Not signed in"
86144
+ },
86145
+ "403": {
86146
+ "content": {
86147
+ "application/json": {
86148
+ "schema": {
86149
+ "$ref": "#/components/schemas/FileError"
86150
+ }
86151
+ }
86152
+ },
86153
+ "description": "Not allowed"
86154
+ },
86155
+ "404": {
86156
+ "content": {
86157
+ "application/json": {
86158
+ "schema": {
86159
+ "$ref": "#/components/schemas/FileError"
86160
+ }
86161
+ }
86162
+ },
86163
+ "description": "No such file"
86164
+ },
86165
+ "409": {
86166
+ "content": {
86167
+ "application/json": {
86168
+ "schema": {
86169
+ "$ref": "#/components/schemas/FileError"
86170
+ }
86171
+ }
86172
+ },
86173
+ "description": "Conflicts with the file's state"
86174
+ },
86175
+ "422": {
86176
+ "content": {
86177
+ "application/json": {
86178
+ "schema": {
86179
+ "$ref": "#/components/schemas/FileError"
86180
+ }
86181
+ }
86182
+ },
86183
+ "description": "The upload did not match"
86184
+ },
86185
+ "502": {
86186
+ "content": {
86187
+ "application/json": {
86188
+ "schema": {
86189
+ "$ref": "#/components/schemas/FileError"
86190
+ }
86191
+ }
86192
+ },
86193
+ "description": "Could not check membership"
86194
+ },
86195
+ "503": {
86196
+ "content": {
86197
+ "application/json": {
86198
+ "schema": {
86199
+ "$ref": "#/components/schemas/FileError"
86200
+ }
86201
+ }
86202
+ },
86203
+ "description": "Storage or the access log unavailable"
85464
86204
  }
85465
86205
  },
85466
86206
  "summary": "Attach a file to something",
@@ -85634,7 +86374,7 @@
85634
86374
  }
85635
86375
  }
85636
86376
  },
85637
- "description": "Storage unavailable"
86377
+ "description": "Storage or the access log unavailable"
85638
86378
  }
85639
86379
  },
85640
86380
  "summary": "Replace a file's contents",
@@ -85774,7 +86514,7 @@
85774
86514
  }
85775
86515
  }
85776
86516
  },
85777
- "description": "Storage unavailable"
86517
+ "description": "Storage or the access log unavailable"
85778
86518
  }
85779
86519
  },
85780
86520
  "summary": "Stop sharing a file",
@@ -85909,7 +86649,7 @@
85909
86649
  }
85910
86650
  }
85911
86651
  },
85912
- "description": "Storage unavailable"
86652
+ "description": "Storage or the access log unavailable"
85913
86653
  }
85914
86654
  },
85915
86655
  "summary": "Share a file",
@@ -102296,9 +103036,501 @@
102296
103036
  ]
102297
103037
  }
102298
103038
  },
103039
+ "/v1/studio/tables": {
103040
+ "get": {
103041
+ "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.",
103042
+ "operationId": "listStudioTables",
103043
+ "responses": {
103044
+ "200": {
103045
+ "content": {
103046
+ "application/json": {
103047
+ "schema": {
103048
+ "$ref": "#/components/schemas/StudioTableList"
103049
+ }
103050
+ }
103051
+ },
103052
+ "description": "The tables"
103053
+ },
103054
+ "400": {
103055
+ "content": {
103056
+ "application/json": {
103057
+ "schema": {
103058
+ "$ref": "#/components/schemas/StudioError"
103059
+ }
103060
+ }
103061
+ },
103062
+ "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."
103063
+ },
103064
+ "401": {
103065
+ "content": {
103066
+ "application/json": {
103067
+ "schema": {
103068
+ "$ref": "#/components/schemas/StudioError"
103069
+ }
103070
+ }
103071
+ },
103072
+ "description": "Authentication required."
103073
+ },
103074
+ "403": {
103075
+ "content": {
103076
+ "application/json": {
103077
+ "schema": {
103078
+ "$ref": "#/components/schemas/StudioError"
103079
+ }
103080
+ }
103081
+ },
103082
+ "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."
103083
+ },
103084
+ "404": {
103085
+ "content": {
103086
+ "application/json": {
103087
+ "schema": {
103088
+ "$ref": "#/components/schemas/StudioError"
103089
+ }
103090
+ }
103091
+ },
103092
+ "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."
103093
+ },
103094
+ "409": {
103095
+ "content": {
103096
+ "application/json": {
103097
+ "schema": {
103098
+ "$ref": "#/components/schemas/StudioError"
103099
+ }
103100
+ }
103101
+ },
103102
+ "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."
103103
+ },
103104
+ "422": {
103105
+ "content": {
103106
+ "application/json": {
103107
+ "schema": {
103108
+ "$ref": "#/components/schemas/StudioError"
103109
+ }
103110
+ }
103111
+ },
103112
+ "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."
103113
+ },
103114
+ "429": {
103115
+ "content": {
103116
+ "application/json": {
103117
+ "schema": {
103118
+ "$ref": "#/components/schemas/StudioError"
103119
+ }
103120
+ }
103121
+ },
103122
+ "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`)."
103123
+ },
103124
+ "502": {
103125
+ "content": {
103126
+ "application/json": {
103127
+ "schema": {
103128
+ "$ref": "#/components/schemas/StudioError"
103129
+ }
103130
+ }
103131
+ },
103132
+ "description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
103133
+ },
103134
+ "503": {
103135
+ "content": {
103136
+ "application/json": {
103137
+ "schema": {
103138
+ "$ref": "#/components/schemas/StudioError"
103139
+ }
103140
+ }
103141
+ },
103142
+ "description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
103143
+ }
103144
+ },
103145
+ "summary": "Your organization's tables made from files",
103146
+ "tags": [
103147
+ "Studio"
103148
+ ]
103149
+ },
103150
+ "post": {
103151
+ "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.",
103152
+ "operationId": "createStudioTable",
103153
+ "requestBody": {
103154
+ "content": {
103155
+ "application/json": {
103156
+ "schema": {
103157
+ "$ref": "#/components/schemas/StudioTableCreate"
103158
+ }
103159
+ }
103160
+ },
103161
+ "required": true
103162
+ },
103163
+ "responses": {
103164
+ "200": {
103165
+ "content": {
103166
+ "application/json": {
103167
+ "schema": {
103168
+ "$ref": "#/components/schemas/StudioTable"
103169
+ }
103170
+ }
103171
+ },
103172
+ "description": "The table"
103173
+ },
103174
+ "202": {
103175
+ "content": {
103176
+ "application/json": {
103177
+ "schema": {
103178
+ "$ref": "#/components/schemas/StudioTable"
103179
+ }
103180
+ }
103181
+ },
103182
+ "description": "The file is still being read; read the table again"
103183
+ },
103184
+ "400": {
103185
+ "content": {
103186
+ "application/json": {
103187
+ "schema": {
103188
+ "$ref": "#/components/schemas/StudioError"
103189
+ }
103190
+ }
103191
+ },
103192
+ "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."
103193
+ },
103194
+ "401": {
103195
+ "content": {
103196
+ "application/json": {
103197
+ "schema": {
103198
+ "$ref": "#/components/schemas/StudioError"
103199
+ }
103200
+ }
103201
+ },
103202
+ "description": "Authentication required."
103203
+ },
103204
+ "403": {
103205
+ "content": {
103206
+ "application/json": {
103207
+ "schema": {
103208
+ "$ref": "#/components/schemas/StudioError"
103209
+ }
103210
+ }
103211
+ },
103212
+ "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."
103213
+ },
103214
+ "404": {
103215
+ "content": {
103216
+ "application/json": {
103217
+ "schema": {
103218
+ "$ref": "#/components/schemas/StudioError"
103219
+ }
103220
+ }
103221
+ },
103222
+ "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."
103223
+ },
103224
+ "409": {
103225
+ "content": {
103226
+ "application/json": {
103227
+ "schema": {
103228
+ "$ref": "#/components/schemas/StudioError"
103229
+ }
103230
+ }
103231
+ },
103232
+ "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."
103233
+ },
103234
+ "422": {
103235
+ "content": {
103236
+ "application/json": {
103237
+ "schema": {
103238
+ "$ref": "#/components/schemas/StudioError"
103239
+ }
103240
+ }
103241
+ },
103242
+ "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."
103243
+ },
103244
+ "429": {
103245
+ "content": {
103246
+ "application/json": {
103247
+ "schema": {
103248
+ "$ref": "#/components/schemas/StudioError"
103249
+ }
103250
+ }
103251
+ },
103252
+ "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`)."
103253
+ },
103254
+ "502": {
103255
+ "content": {
103256
+ "application/json": {
103257
+ "schema": {
103258
+ "$ref": "#/components/schemas/StudioError"
103259
+ }
103260
+ }
103261
+ },
103262
+ "description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
103263
+ },
103264
+ "503": {
103265
+ "content": {
103266
+ "application/json": {
103267
+ "schema": {
103268
+ "$ref": "#/components/schemas/StudioError"
103269
+ }
103270
+ }
103271
+ },
103272
+ "description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
103273
+ }
103274
+ },
103275
+ "summary": "Load a file from your files library into a table",
103276
+ "tags": [
103277
+ "Studio"
103278
+ ]
103279
+ }
103280
+ },
103281
+ "/v1/studio/tables/{name}": {
103282
+ "delete": {
103283
+ "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.",
103284
+ "operationId": "deleteStudioTable",
103285
+ "parameters": [
103286
+ {
103287
+ "description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
103288
+ "in": "path",
103289
+ "name": "name",
103290
+ "required": true,
103291
+ "schema": {
103292
+ "description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
103293
+ "example": "closed_loans",
103294
+ "pattern": "^[a-z][a-z0-9_]{0,55}$",
103295
+ "type": "string"
103296
+ }
103297
+ }
103298
+ ],
103299
+ "responses": {
103300
+ "200": {
103301
+ "content": {
103302
+ "application/json": {
103303
+ "schema": {
103304
+ "$ref": "#/components/schemas/StudioUploadDeleted"
103305
+ }
103306
+ }
103307
+ },
103308
+ "description": "Deleted"
103309
+ },
103310
+ "400": {
103311
+ "content": {
103312
+ "application/json": {
103313
+ "schema": {
103314
+ "$ref": "#/components/schemas/StudioError"
103315
+ }
103316
+ }
103317
+ },
103318
+ "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."
103319
+ },
103320
+ "401": {
103321
+ "content": {
103322
+ "application/json": {
103323
+ "schema": {
103324
+ "$ref": "#/components/schemas/StudioError"
103325
+ }
103326
+ }
103327
+ },
103328
+ "description": "Authentication required."
103329
+ },
103330
+ "403": {
103331
+ "content": {
103332
+ "application/json": {
103333
+ "schema": {
103334
+ "$ref": "#/components/schemas/StudioError"
103335
+ }
103336
+ }
103337
+ },
103338
+ "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."
103339
+ },
103340
+ "404": {
103341
+ "content": {
103342
+ "application/json": {
103343
+ "schema": {
103344
+ "$ref": "#/components/schemas/StudioError"
103345
+ }
103346
+ }
103347
+ },
103348
+ "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."
103349
+ },
103350
+ "409": {
103351
+ "content": {
103352
+ "application/json": {
103353
+ "schema": {
103354
+ "$ref": "#/components/schemas/StudioError"
103355
+ }
103356
+ }
103357
+ },
103358
+ "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."
103359
+ },
103360
+ "422": {
103361
+ "content": {
103362
+ "application/json": {
103363
+ "schema": {
103364
+ "$ref": "#/components/schemas/StudioError"
103365
+ }
103366
+ }
103367
+ },
103368
+ "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."
103369
+ },
103370
+ "429": {
103371
+ "content": {
103372
+ "application/json": {
103373
+ "schema": {
103374
+ "$ref": "#/components/schemas/StudioError"
103375
+ }
103376
+ }
103377
+ },
103378
+ "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`)."
103379
+ },
103380
+ "502": {
103381
+ "content": {
103382
+ "application/json": {
103383
+ "schema": {
103384
+ "$ref": "#/components/schemas/StudioError"
103385
+ }
103386
+ }
103387
+ },
103388
+ "description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
103389
+ },
103390
+ "503": {
103391
+ "content": {
103392
+ "application/json": {
103393
+ "schema": {
103394
+ "$ref": "#/components/schemas/StudioError"
103395
+ }
103396
+ }
103397
+ },
103398
+ "description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
103399
+ }
103400
+ },
103401
+ "summary": "Delete a table, permanently",
103402
+ "tags": [
103403
+ "Studio"
103404
+ ]
103405
+ },
103406
+ "get": {
103407
+ "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.",
103408
+ "operationId": "getStudioTable",
103409
+ "parameters": [
103410
+ {
103411
+ "description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
103412
+ "in": "path",
103413
+ "name": "name",
103414
+ "required": true,
103415
+ "schema": {
103416
+ "description": "The upload's name: lower-case letters, digits and underscores, starting with a letter, at most 56 characters. The table is `upload_<name>`.",
103417
+ "example": "closed_loans",
103418
+ "pattern": "^[a-z][a-z0-9_]{0,55}$",
103419
+ "type": "string"
103420
+ }
103421
+ }
103422
+ ],
103423
+ "responses": {
103424
+ "200": {
103425
+ "content": {
103426
+ "application/json": {
103427
+ "schema": {
103428
+ "$ref": "#/components/schemas/StudioTable"
103429
+ }
103430
+ }
103431
+ },
103432
+ "description": "The table"
103433
+ },
103434
+ "400": {
103435
+ "content": {
103436
+ "application/json": {
103437
+ "schema": {
103438
+ "$ref": "#/components/schemas/StudioError"
103439
+ }
103440
+ }
103441
+ },
103442
+ "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."
103443
+ },
103444
+ "401": {
103445
+ "content": {
103446
+ "application/json": {
103447
+ "schema": {
103448
+ "$ref": "#/components/schemas/StudioError"
103449
+ }
103450
+ }
103451
+ },
103452
+ "description": "Authentication required."
103453
+ },
103454
+ "403": {
103455
+ "content": {
103456
+ "application/json": {
103457
+ "schema": {
103458
+ "$ref": "#/components/schemas/StudioError"
103459
+ }
103460
+ }
103461
+ },
103462
+ "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."
103463
+ },
103464
+ "404": {
103465
+ "content": {
103466
+ "application/json": {
103467
+ "schema": {
103468
+ "$ref": "#/components/schemas/StudioError"
103469
+ }
103470
+ }
103471
+ },
103472
+ "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."
103473
+ },
103474
+ "409": {
103475
+ "content": {
103476
+ "application/json": {
103477
+ "schema": {
103478
+ "$ref": "#/components/schemas/StudioError"
103479
+ }
103480
+ }
103481
+ },
103482
+ "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."
103483
+ },
103484
+ "422": {
103485
+ "content": {
103486
+ "application/json": {
103487
+ "schema": {
103488
+ "$ref": "#/components/schemas/StudioError"
103489
+ }
103490
+ }
103491
+ },
103492
+ "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."
103493
+ },
103494
+ "429": {
103495
+ "content": {
103496
+ "application/json": {
103497
+ "schema": {
103498
+ "$ref": "#/components/schemas/StudioError"
103499
+ }
103500
+ }
103501
+ },
103502
+ "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`)."
103503
+ },
103504
+ "502": {
103505
+ "content": {
103506
+ "application/json": {
103507
+ "schema": {
103508
+ "$ref": "#/components/schemas/StudioError"
103509
+ }
103510
+ }
103511
+ },
103512
+ "description": "`membership_unavailable` — who may open the file could not be checked. Try again in a minute."
103513
+ },
103514
+ "503": {
103515
+ "content": {
103516
+ "application/json": {
103517
+ "schema": {
103518
+ "$ref": "#/components/schemas/StudioError"
103519
+ }
103520
+ }
103521
+ },
103522
+ "description": "`studio_unavailable` — Studio is not available right now; `storage_unavailable` — the files library is not available right now. Try again in a minute."
103523
+ }
103524
+ },
103525
+ "summary": "One table made from a file",
103526
+ "tags": [
103527
+ "Studio"
103528
+ ]
103529
+ }
103530
+ },
102299
103531
  "/v1/studio/uploads": {
102300
103532
  "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.",
103533
+ "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
103534
  "operationId": "listStudioUploads",
102303
103535
  "responses": {
102304
103536
  "200": {
@@ -102398,7 +103630,7 @@
102398
103630
  ]
102399
103631
  },
102400
103632
  "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.",
103633
+ "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
103634
  "operationId": "createStudioUpload",
102403
103635
  "requestBody": {
102404
103636
  "content": {
@@ -102510,7 +103742,7 @@
102510
103742
  },
102511
103743
  "/v1/studio/uploads/{name}": {
102512
103744
  "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.",
103745
+ "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
103746
  "operationId": "deleteStudioUpload",
102515
103747
  "parameters": [
102516
103748
  {
@@ -102626,7 +103858,7 @@
102626
103858
  },
102627
103859
  "/v1/studio/uploads/{name}/complete": {
102628
103860
  "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.",
103861
+ "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
103862
  "operationId": "completeStudioUpload",
102631
103863
  "parameters": [
102632
103864
  {