@model-match/api 3.100.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"
@@ -57540,7 +57639,7 @@
57540
57639
  "info": {
57541
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.",
57542
57641
  "title": "ModelMatch API",
57543
- "version": "3.196.0"
57642
+ "version": "3.197.0"
57544
57643
  },
57545
57644
  "openapi": "3.1.0",
57546
57645
  "paths": {
@@ -83980,12 +84079,12 @@
83980
84079
  }
83981
84080
  },
83982
84081
  {
83983
- "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`).",
83984
84083
  "in": "query",
83985
84084
  "name": "class",
83986
84085
  "required": false,
83987
84086
  "schema": {
83988
- "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`).",
83989
84088
  "enum": [
83990
84089
  "standard",
83991
84090
  "protected"
@@ -84211,7 +84310,7 @@
84211
84310
  }
84212
84311
  }
84213
84312
  },
84214
- "description": "Storage unavailable"
84313
+ "description": "Storage or the access log unavailable"
84215
84314
  }
84216
84315
  },
84217
84316
  "summary": "Your files",
@@ -84369,7 +84468,7 @@
84369
84468
  }
84370
84469
  }
84371
84470
  },
84372
- "description": "Storage unavailable"
84471
+ "description": "Storage or the access log unavailable"
84373
84472
  }
84374
84473
  },
84375
84474
  "summary": "Start an upload",
@@ -84378,47 +84477,104 @@
84378
84477
  ]
84379
84478
  }
84380
84479
  },
84381
- "/v1/files/search": {
84480
+ "/v1/files/access-report": {
84382
84481
  "get": {
84383
- "description": "Files you can see whose name contains `q`, names that start with it first. Free.",
84384
- "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",
84385
84484
  "parameters": [
84386
84485
  {
84387
84486
  "in": "query",
84388
- "name": "q",
84389
- "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,
84390
84500
  "schema": {
84391
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,
84392
84523
  "minLength": 1,
84393
84524
  "type": "string"
84394
84525
  }
84395
84526
  },
84396
84527
  {
84397
84528
  "in": "query",
84398
- "name": "limit",
84529
+ "name": "event",
84399
84530
  "required": false,
84400
84531
  "schema": {
84401
- "default": 20,
84402
- "maximum": 50,
84403
- "minimum": 1,
84404
- "type": "integer"
84532
+ "pattern": "^[a-z_]{1,40}$",
84533
+ "type": "string"
84405
84534
  }
84406
84535
  },
84407
84536
  {
84408
84537
  "in": "query",
84409
- "name": "kind",
84538
+ "name": "result",
84410
84539
  "required": false,
84411
84540
  "schema": {
84412
- "maxLength": 512,
84541
+ "enum": [
84542
+ "allowed",
84543
+ "denied"
84544
+ ],
84413
84545
  "type": "string"
84414
84546
  }
84415
84547
  },
84416
84548
  {
84417
84549
  "in": "query",
84418
- "name": "origin",
84550
+ "name": "from",
84419
84551
  "required": false,
84420
84552
  "schema": {
84421
- "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
+ ],
84422
84578
  "type": "string"
84423
84579
  }
84424
84580
  }
@@ -84431,19 +84587,29 @@
84431
84587
  "properties": {
84432
84588
  "data": {
84433
84589
  "items": {
84434
- "$ref": "#/components/schemas/File"
84590
+ "$ref": "#/components/schemas/FileAccessLogEntry"
84435
84591
  },
84436
84592
  "type": "array"
84593
+ },
84594
+ "nextCursor": {
84595
+ "nullable": true,
84596
+ "type": "string"
84437
84597
  }
84438
84598
  },
84439
84599
  "required": [
84440
- "data"
84600
+ "data",
84601
+ "nextCursor"
84441
84602
  ],
84442
84603
  "type": "object"
84443
84604
  }
84605
+ },
84606
+ "text/csv": {
84607
+ "schema": {
84608
+ "type": "string"
84609
+ }
84444
84610
  }
84445
84611
  },
84446
- "description": "Matching files"
84612
+ "description": "Access log entries"
84447
84613
  },
84448
84614
  "400": {
84449
84615
  "content": {
@@ -84523,29 +84689,102 @@
84523
84689
  }
84524
84690
  }
84525
84691
  },
84526
- "description": "Storage unavailable"
84692
+ "description": "Storage or the access log unavailable"
84527
84693
  }
84528
84694
  },
84529
- "summary": "Search your files by name",
84695
+ "summary": "Who opened which protected files",
84530
84696
  "tags": [
84531
84697
  "Files"
84532
84698
  ]
84533
84699
  }
84534
84700
  },
84535
- "/v1/files/{id}": {
84536
- "delete": {
84537
- "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.",
84538
- "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",
84539
84705
  "parameters": [
84540
84706
  {
84541
- "description": "The file's id.",
84707
+ "description": "The one-time link's token.",
84542
84708
  "in": "path",
84543
- "name": "id",
84709
+ "name": "token",
84544
84710
  "required": true,
84545
84711
  "schema": {
84546
- "description": "The file's id.",
84547
- "example": "file_3f2a…",
84548
- "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,
84549
84788
  "type": "string"
84550
84789
  }
84551
84790
  }
@@ -84557,22 +84796,10 @@
84557
84796
  "schema": {
84558
84797
  "properties": {
84559
84798
  "data": {
84560
- "properties": {
84561
- "deleted": {
84562
- "enum": [
84563
- true
84564
- ],
84565
- "type": "boolean"
84566
- },
84567
- "id": {
84568
- "type": "string"
84569
- }
84799
+ "items": {
84800
+ "$ref": "#/components/schemas/File"
84570
84801
  },
84571
- "required": [
84572
- "id",
84573
- "deleted"
84574
- ],
84575
- "type": "object"
84802
+ "type": "array"
84576
84803
  }
84577
84804
  },
84578
84805
  "required": [
@@ -84582,7 +84809,7 @@
84582
84809
  }
84583
84810
  }
84584
84811
  },
84585
- "description": "Deleted"
84812
+ "description": "Matching files"
84586
84813
  },
84587
84814
  "400": {
84588
84815
  "content": {
@@ -84662,17 +84889,156 @@
84662
84889
  }
84663
84890
  }
84664
84891
  },
84665
- "description": "Storage unavailable"
84892
+ "description": "Storage or the access log unavailable"
84666
84893
  }
84667
84894
  },
84668
- "summary": "Delete a file",
84895
+ "summary": "Search your files by name",
84669
84896
  "tags": [
84670
84897
  "Files"
84671
84898
  ]
84672
- },
84673
- "get": {
84674
- "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.",
84675
- "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",
84905
+ "parameters": [
84906
+ {
84907
+ "description": "The file's id.",
84908
+ "in": "path",
84909
+ "name": "id",
84910
+ "required": true,
84911
+ "schema": {
84912
+ "description": "The file's id.",
84913
+ "example": "file_3f2a…",
84914
+ "pattern": "^file_[0-9a-f]{32}$",
84915
+ "type": "string"
84916
+ }
84917
+ }
84918
+ ],
84919
+ "responses": {
84920
+ "200": {
84921
+ "content": {
84922
+ "application/json": {
84923
+ "schema": {
84924
+ "properties": {
84925
+ "data": {
84926
+ "properties": {
84927
+ "deleted": {
84928
+ "enum": [
84929
+ true
84930
+ ],
84931
+ "type": "boolean"
84932
+ },
84933
+ "id": {
84934
+ "type": "string"
84935
+ }
84936
+ },
84937
+ "required": [
84938
+ "id",
84939
+ "deleted"
84940
+ ],
84941
+ "type": "object"
84942
+ }
84943
+ },
84944
+ "required": [
84945
+ "data"
84946
+ ],
84947
+ "type": "object"
84948
+ }
84949
+ }
84950
+ },
84951
+ "description": "Deleted"
84952
+ },
84953
+ "400": {
84954
+ "content": {
84955
+ "application/json": {
84956
+ "schema": {
84957
+ "$ref": "#/components/schemas/FileError"
84958
+ }
84959
+ }
84960
+ },
84961
+ "description": "Invalid request"
84962
+ },
84963
+ "401": {
84964
+ "content": {
84965
+ "application/json": {
84966
+ "schema": {
84967
+ "$ref": "#/components/schemas/FileError"
84968
+ }
84969
+ }
84970
+ },
84971
+ "description": "Not signed in"
84972
+ },
84973
+ "403": {
84974
+ "content": {
84975
+ "application/json": {
84976
+ "schema": {
84977
+ "$ref": "#/components/schemas/FileError"
84978
+ }
84979
+ }
84980
+ },
84981
+ "description": "Not allowed"
84982
+ },
84983
+ "404": {
84984
+ "content": {
84985
+ "application/json": {
84986
+ "schema": {
84987
+ "$ref": "#/components/schemas/FileError"
84988
+ }
84989
+ }
84990
+ },
84991
+ "description": "No such file"
84992
+ },
84993
+ "409": {
84994
+ "content": {
84995
+ "application/json": {
84996
+ "schema": {
84997
+ "$ref": "#/components/schemas/FileError"
84998
+ }
84999
+ }
85000
+ },
85001
+ "description": "Conflicts with the file's state"
85002
+ },
85003
+ "422": {
85004
+ "content": {
85005
+ "application/json": {
85006
+ "schema": {
85007
+ "$ref": "#/components/schemas/FileError"
85008
+ }
85009
+ }
85010
+ },
85011
+ "description": "The upload did not match"
85012
+ },
85013
+ "502": {
85014
+ "content": {
85015
+ "application/json": {
85016
+ "schema": {
85017
+ "$ref": "#/components/schemas/FileError"
85018
+ }
85019
+ }
85020
+ },
85021
+ "description": "Could not check membership"
85022
+ },
85023
+ "503": {
85024
+ "content": {
85025
+ "application/json": {
85026
+ "schema": {
85027
+ "$ref": "#/components/schemas/FileError"
85028
+ }
85029
+ }
85030
+ },
85031
+ "description": "Storage or the access log unavailable"
85032
+ }
85033
+ },
85034
+ "summary": "Delete a file",
85035
+ "tags": [
85036
+ "Files"
85037
+ ]
85038
+ },
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",
84676
85042
  "parameters": [
84677
85043
  {
84678
85044
  "description": "The file's id.",
@@ -84799,7 +85165,7 @@
84799
85165
  }
84800
85166
  }
84801
85167
  },
84802
- "description": "Storage unavailable"
85168
+ "description": "Storage or the access log unavailable"
84803
85169
  }
84804
85170
  },
84805
85171
  "summary": "One file: its details, shares and links",
@@ -84931,7 +85297,7 @@
84931
85297
  }
84932
85298
  }
84933
85299
  },
84934
- "description": "Storage unavailable"
85300
+ "description": "Storage or the access log unavailable"
84935
85301
  }
84936
85302
  },
84937
85303
  "summary": "Rename a file or edit its metadata",
@@ -84940,6 +85306,312 @@
84940
85306
  ]
84941
85307
  }
84942
85308
  },
85309
+ "/v1/files/{id}/access-log": {
85310
+ "get": {
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",
85313
+ "parameters": [
85314
+ {
85315
+ "description": "The file's id.",
85316
+ "in": "path",
85317
+ "name": "id",
85318
+ "required": true,
85319
+ "schema": {
85320
+ "description": "The file's id.",
85321
+ "example": "file_3f2a…",
85322
+ "pattern": "^file_[0-9a-f]{32}$",
85323
+ "type": "string"
85324
+ }
85325
+ },
85326
+ {
85327
+ "in": "query",
85328
+ "name": "limit",
85329
+ "required": false,
85330
+ "schema": {
85331
+ "default": 100,
85332
+ "maximum": 500,
85333
+ "minimum": 1,
85334
+ "type": "integer"
85335
+ }
85336
+ },
85337
+ {
85338
+ "in": "query",
85339
+ "name": "cursor",
85340
+ "required": false,
85341
+ "schema": {
85342
+ "maxLength": 200,
85343
+ "type": "string"
85344
+ }
85345
+ }
85346
+ ],
85347
+ "responses": {
85348
+ "200": {
85349
+ "content": {
85350
+ "application/json": {
85351
+ "schema": {
85352
+ "properties": {
85353
+ "data": {
85354
+ "items": {
85355
+ "$ref": "#/components/schemas/FileAccessLogEntry"
85356
+ },
85357
+ "type": "array"
85358
+ },
85359
+ "nextCursor": {
85360
+ "nullable": true,
85361
+ "type": "string"
85362
+ }
85363
+ },
85364
+ "required": [
85365
+ "data",
85366
+ "nextCursor"
85367
+ ],
85368
+ "type": "object"
85369
+ }
85370
+ }
85371
+ },
85372
+ "description": "Access log entries"
85373
+ },
85374
+ "400": {
85375
+ "content": {
85376
+ "application/json": {
85377
+ "schema": {
85378
+ "$ref": "#/components/schemas/FileError"
85379
+ }
85380
+ }
85381
+ },
85382
+ "description": "Invalid request"
85383
+ },
85384
+ "401": {
85385
+ "content": {
85386
+ "application/json": {
85387
+ "schema": {
85388
+ "$ref": "#/components/schemas/FileError"
85389
+ }
85390
+ }
85391
+ },
85392
+ "description": "Not signed in"
85393
+ },
85394
+ "403": {
85395
+ "content": {
85396
+ "application/json": {
85397
+ "schema": {
85398
+ "$ref": "#/components/schemas/FileError"
85399
+ }
85400
+ }
85401
+ },
85402
+ "description": "Not allowed"
85403
+ },
85404
+ "404": {
85405
+ "content": {
85406
+ "application/json": {
85407
+ "schema": {
85408
+ "$ref": "#/components/schemas/FileError"
85409
+ }
85410
+ }
85411
+ },
85412
+ "description": "No such file"
85413
+ },
85414
+ "409": {
85415
+ "content": {
85416
+ "application/json": {
85417
+ "schema": {
85418
+ "$ref": "#/components/schemas/FileError"
85419
+ }
85420
+ }
85421
+ },
85422
+ "description": "Conflicts with the file's state"
85423
+ },
85424
+ "422": {
85425
+ "content": {
85426
+ "application/json": {
85427
+ "schema": {
85428
+ "$ref": "#/components/schemas/FileError"
85429
+ }
85430
+ }
85431
+ },
85432
+ "description": "The upload did not match"
85433
+ },
85434
+ "502": {
85435
+ "content": {
85436
+ "application/json": {
85437
+ "schema": {
85438
+ "$ref": "#/components/schemas/FileError"
85439
+ }
85440
+ }
85441
+ },
85442
+ "description": "Could not check membership"
85443
+ },
85444
+ "503": {
85445
+ "content": {
85446
+ "application/json": {
85447
+ "schema": {
85448
+ "$ref": "#/components/schemas/FileError"
85449
+ }
85450
+ }
85451
+ },
85452
+ "description": "Storage or the access log unavailable"
85453
+ }
85454
+ },
85455
+ "summary": "A protected file's access log",
85456
+ "tags": [
85457
+ "Files"
85458
+ ]
85459
+ }
85460
+ },
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",
85465
+ "parameters": [
85466
+ {
85467
+ "description": "The file's id.",
85468
+ "in": "path",
85469
+ "name": "id",
85470
+ "required": true,
85471
+ "schema": {
85472
+ "description": "The file's id.",
85473
+ "example": "file_3f2a…",
85474
+ "pattern": "^file_[0-9a-f]{32}$",
85475
+ "type": "string"
85476
+ }
85477
+ }
85478
+ ],
85479
+ "requestBody": {
85480
+ "content": {
85481
+ "application/json": {
85482
+ "schema": {
85483
+ "$ref": "#/components/schemas/FileAgentApprovalCreate"
85484
+ }
85485
+ }
85486
+ },
85487
+ "required": true
85488
+ },
85489
+ "responses": {
85490
+ "201": {
85491
+ "content": {
85492
+ "application/json": {
85493
+ "schema": {
85494
+ "properties": {
85495
+ "data": {
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
+ }
85509
+ },
85510
+ "required": [
85511
+ "fileId",
85512
+ "chatId",
85513
+ "userId",
85514
+ "approvedAt"
85515
+ ],
85516
+ "type": "object"
85517
+ }
85518
+ },
85519
+ "required": [
85520
+ "data"
85521
+ ],
85522
+ "type": "object"
85523
+ }
85524
+ }
85525
+ },
85526
+ "description": "Approved"
85527
+ },
85528
+ "400": {
85529
+ "content": {
85530
+ "application/json": {
85531
+ "schema": {
85532
+ "$ref": "#/components/schemas/FileError"
85533
+ }
85534
+ }
85535
+ },
85536
+ "description": "Invalid request"
85537
+ },
85538
+ "401": {
85539
+ "content": {
85540
+ "application/json": {
85541
+ "schema": {
85542
+ "$ref": "#/components/schemas/FileError"
85543
+ }
85544
+ }
85545
+ },
85546
+ "description": "Not signed in"
85547
+ },
85548
+ "403": {
85549
+ "content": {
85550
+ "application/json": {
85551
+ "schema": {
85552
+ "$ref": "#/components/schemas/FileError"
85553
+ }
85554
+ }
85555
+ },
85556
+ "description": "Not allowed"
85557
+ },
85558
+ "404": {
85559
+ "content": {
85560
+ "application/json": {
85561
+ "schema": {
85562
+ "$ref": "#/components/schemas/FileError"
85563
+ }
85564
+ }
85565
+ },
85566
+ "description": "No such file"
85567
+ },
85568
+ "409": {
85569
+ "content": {
85570
+ "application/json": {
85571
+ "schema": {
85572
+ "$ref": "#/components/schemas/FileError"
85573
+ }
85574
+ }
85575
+ },
85576
+ "description": "Conflicts with the file's state"
85577
+ },
85578
+ "422": {
85579
+ "content": {
85580
+ "application/json": {
85581
+ "schema": {
85582
+ "$ref": "#/components/schemas/FileError"
85583
+ }
85584
+ }
85585
+ },
85586
+ "description": "The upload did not match"
85587
+ },
85588
+ "502": {
85589
+ "content": {
85590
+ "application/json": {
85591
+ "schema": {
85592
+ "$ref": "#/components/schemas/FileError"
85593
+ }
85594
+ }
85595
+ },
85596
+ "description": "Could not check membership"
85597
+ },
85598
+ "503": {
85599
+ "content": {
85600
+ "application/json": {
85601
+ "schema": {
85602
+ "$ref": "#/components/schemas/FileError"
85603
+ }
85604
+ }
85605
+ },
85606
+ "description": "Storage or the access log unavailable"
85607
+ }
85608
+ },
85609
+ "summary": "Let an agent open a protected file in one conversation",
85610
+ "tags": [
85611
+ "Files"
85612
+ ]
85613
+ }
85614
+ },
84943
85615
  "/v1/files/{id}/complete": {
84944
85616
  "post": {
84945
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.",
@@ -85073,7 +85745,7 @@
85073
85745
  }
85074
85746
  }
85075
85747
  },
85076
- "description": "Storage unavailable"
85748
+ "description": "Storage or the access log unavailable"
85077
85749
  }
85078
85750
  },
85079
85751
  "summary": "Finish an upload",
@@ -85139,13 +85811,18 @@
85139
85811
  "expiresAt": {
85140
85812
  "type": "string"
85141
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
+ },
85142
85818
  "url": {
85143
85819
  "type": "string"
85144
85820
  }
85145
85821
  },
85146
85822
  "required": [
85147
85823
  "url",
85148
- "expiresAt"
85824
+ "expiresAt",
85825
+ "oneTime"
85149
85826
  ],
85150
85827
  "type": "object"
85151
85828
  }
@@ -85248,7 +85925,7 @@
85248
85925
  }
85249
85926
  }
85250
85927
  },
85251
- "description": "Storage unavailable"
85928
+ "description": "Storage or the access log unavailable"
85252
85929
  }
85253
85930
  },
85254
85931
  "summary": "Open a file",
@@ -85388,7 +86065,7 @@
85388
86065
  }
85389
86066
  }
85390
86067
  },
85391
- "description": "Storage unavailable"
86068
+ "description": "Storage or the access log unavailable"
85392
86069
  }
85393
86070
  },
85394
86071
  "summary": "Detach a file",
@@ -85523,7 +86200,7 @@
85523
86200
  }
85524
86201
  }
85525
86202
  },
85526
- "description": "Storage unavailable"
86203
+ "description": "Storage or the access log unavailable"
85527
86204
  }
85528
86205
  },
85529
86206
  "summary": "Attach a file to something",
@@ -85697,7 +86374,7 @@
85697
86374
  }
85698
86375
  }
85699
86376
  },
85700
- "description": "Storage unavailable"
86377
+ "description": "Storage or the access log unavailable"
85701
86378
  }
85702
86379
  },
85703
86380
  "summary": "Replace a file's contents",
@@ -85837,7 +86514,7 @@
85837
86514
  }
85838
86515
  }
85839
86516
  },
85840
- "description": "Storage unavailable"
86517
+ "description": "Storage or the access log unavailable"
85841
86518
  }
85842
86519
  },
85843
86520
  "summary": "Stop sharing a file",
@@ -85972,7 +86649,7 @@
85972
86649
  }
85973
86650
  }
85974
86651
  },
85975
- "description": "Storage unavailable"
86652
+ "description": "Storage or the access log unavailable"
85976
86653
  }
85977
86654
  },
85978
86655
  "summary": "Share a file",