@model-match/api 3.101.0 → 3.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +12 -0
- package/dist/{index-Beyx3IUL.d.mts → index-C2ZSUelc.d.mts} +28 -17
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +7 -7
- package/dist/slim/index.mjs +7 -7
- package/dist/{src-BHtp1hnU.mjs → src-Bv7R5w1N.mjs} +6 -6
- package/openapi.json +33 -24
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -27787,13 +27787,19 @@
|
|
|
27787
27787
|
"type": "string"
|
|
27788
27788
|
},
|
|
27789
27789
|
"sha256": {
|
|
27790
|
+
"description": "Hex SHA-256 of the bytes. Empty while an upload that declared none is in progress; set when it completes.",
|
|
27790
27791
|
"type": "string"
|
|
27791
27792
|
},
|
|
27792
27793
|
"sizeBytes": {
|
|
27793
27794
|
"type": "integer"
|
|
27794
27795
|
},
|
|
27795
27796
|
"status": {
|
|
27796
|
-
"description": "`uploading
|
|
27797
|
+
"description": "`uploading` (waiting for the bytes), `scanning` (being checked for malware), `ready`, `rejected` (see `statusReason`; the bytes were removed), or `reencrypting` (just made protected and being encrypted again; it lists, but cannot be opened, replaced, shared, linked or deleted until it is `ready`, usually within a minute).",
|
|
27798
|
+
"type": "string"
|
|
27799
|
+
},
|
|
27800
|
+
"statusReason": {
|
|
27801
|
+
"description": "Why the file is in its status, or `null`. For `rejected`: `malware` (it did not pass the malware check); `unscannable` (it could not be checked for malware, for example because it is password-protected or encrypted; upload a version that can be checked); `size_mismatch` or `checksum_mismatch` (the bytes were not what was declared; start a new upload). For `reencrypting`: `reencrypt_failed` (encrypting it did not finish; it stays closed, and making it protected again retries).",
|
|
27802
|
+
"nullable": true,
|
|
27797
27803
|
"type": "string"
|
|
27798
27804
|
},
|
|
27799
27805
|
"updatedAt": {
|
|
@@ -27811,6 +27817,7 @@
|
|
|
27811
27817
|
"kind",
|
|
27812
27818
|
"class",
|
|
27813
27819
|
"status",
|
|
27820
|
+
"statusReason",
|
|
27814
27821
|
"ownerId",
|
|
27815
27822
|
"organizationId",
|
|
27816
27823
|
"provenance",
|
|
@@ -27933,7 +27940,7 @@
|
|
|
27933
27940
|
},
|
|
27934
27941
|
"links": {
|
|
27935
27942
|
"items": {
|
|
27936
|
-
"description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
|
|
27943
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
27937
27944
|
"example": "ask_chat:chat_123",
|
|
27938
27945
|
"maxLength": 220,
|
|
27939
27946
|
"minLength": 3,
|
|
@@ -27974,7 +27981,7 @@
|
|
|
27974
27981
|
"type": "object"
|
|
27975
27982
|
},
|
|
27976
27983
|
"sha256": {
|
|
27977
|
-
"description": "Hex SHA-256 of the bytes
|
|
27984
|
+
"description": "Hex SHA-256 of the bytes, if you have it: the upload is then refused when the bytes differ. Leave it out and it is computed when the upload completes.",
|
|
27978
27985
|
"pattern": "^[0-9a-fA-F]{64}$",
|
|
27979
27986
|
"type": "string"
|
|
27980
27987
|
},
|
|
@@ -27988,15 +27995,14 @@
|
|
|
27988
27995
|
"required": [
|
|
27989
27996
|
"name",
|
|
27990
27997
|
"mediaType",
|
|
27991
|
-
"sizeBytes"
|
|
27992
|
-
"sha256"
|
|
27998
|
+
"sizeBytes"
|
|
27993
27999
|
],
|
|
27994
28000
|
"type": "object"
|
|
27995
28001
|
},
|
|
27996
28002
|
"FileError": {
|
|
27997
28003
|
"properties": {
|
|
27998
28004
|
"code": {
|
|
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`, `
|
|
28005
|
+
"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`, `unscannable`, `file_busy`, `access_log_unavailable`, `scan_pending`, `revision_pending`, `storage_unavailable`, `membership_unavailable`.",
|
|
28000
28006
|
"type": "string"
|
|
28001
28007
|
},
|
|
28002
28008
|
"error": {
|
|
@@ -28014,7 +28020,7 @@
|
|
|
28014
28020
|
"additionalProperties": false,
|
|
28015
28021
|
"properties": {
|
|
28016
28022
|
"target": {
|
|
28017
|
-
"description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
|
|
28023
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
28018
28024
|
"example": "ask_chat:chat_123",
|
|
28019
28025
|
"maxLength": 220,
|
|
28020
28026
|
"minLength": 3,
|
|
@@ -28030,7 +28036,7 @@
|
|
|
28030
28036
|
"additionalProperties": false,
|
|
28031
28037
|
"properties": {
|
|
28032
28038
|
"class": {
|
|
28033
|
-
"description": "Raise the class to protected (the owner only). It can never be lowered. Team and organization shares are removed.",
|
|
28039
|
+
"description": "Raise the class to protected (the owner only, a ready file). It can never be lowered. Team and organization shares are removed, and the file is `reencrypting` until it is encrypted again (usually within a minute). Sending it again for a file still `reencrypting` retries.",
|
|
28034
28040
|
"enum": [
|
|
28035
28041
|
"protected"
|
|
28036
28042
|
],
|
|
@@ -28070,7 +28076,7 @@
|
|
|
28070
28076
|
"type": "string"
|
|
28071
28077
|
},
|
|
28072
28078
|
"sha256": {
|
|
28073
|
-
"description": "Hex SHA-256 of the new bytes.",
|
|
28079
|
+
"description": "Hex SHA-256 of the new bytes, if you have it. Leave it out and it is computed on complete.",
|
|
28074
28080
|
"pattern": "^[0-9a-fA-F]{64}$",
|
|
28075
28081
|
"type": "string"
|
|
28076
28082
|
},
|
|
@@ -28082,8 +28088,7 @@
|
|
|
28082
28088
|
}
|
|
28083
28089
|
},
|
|
28084
28090
|
"required": [
|
|
28085
|
-
"sizeBytes"
|
|
28086
|
-
"sha256"
|
|
28091
|
+
"sizeBytes"
|
|
28087
28092
|
],
|
|
28088
28093
|
"type": "object"
|
|
28089
28094
|
},
|
|
@@ -57639,7 +57644,7 @@
|
|
|
57639
57644
|
"info": {
|
|
57640
57645
|
"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.",
|
|
57641
57646
|
"title": "ModelMatch API",
|
|
57642
|
-
"version": "3.
|
|
57647
|
+
"version": "3.199.0"
|
|
57643
57648
|
},
|
|
57644
57649
|
"openapi": "3.1.0",
|
|
57645
57650
|
"paths": {
|
|
@@ -84033,7 +84038,7 @@
|
|
|
84033
84038
|
},
|
|
84034
84039
|
"/v1/files": {
|
|
84035
84040
|
"get": {
|
|
84036
|
-
"description": "Files you own and files shared with you, newest first. Filter by origin, kind, class, status, what a file is linked to (`linkedTo`), or only files others shared with you (`sharedWithMe=true`). Pass `facets=true` for counts per origin and kind. Page with `cursor` (from `nextCursor`). Organization admins can pass `scope=org` to list every file in the organization. Free.",
|
|
84041
|
+
"description": "Files you own and files shared with you, newest first. Filter by origin, kind, class, status, what a file is linked to (`linkedTo`), or only files others shared with you (`sharedWithMe=true`). Pass `facets=true` for counts per origin and kind. Page with `cursor` (from `nextCursor`). Organization admins can pass `scope=org` to list every file in the organization. With `linkedTo=crm_record:<id>` you must be able to see that CRM record (otherwise 404); you then get every standard file linked to it, the protected files linked to it that you can open, and `hiddenProtectedCount` for the protected ones you cannot. Free.",
|
|
84037
84042
|
"operationId": "listFiles",
|
|
84038
84043
|
"parameters": [
|
|
84039
84044
|
{
|
|
@@ -84093,23 +84098,23 @@
|
|
|
84093
84098
|
}
|
|
84094
84099
|
},
|
|
84095
84100
|
{
|
|
84096
|
-
"description": "Comma-separated statuses (default `ready`).",
|
|
84101
|
+
"description": "Comma-separated statuses (default `ready` and `reencrypting`).",
|
|
84097
84102
|
"in": "query",
|
|
84098
84103
|
"name": "status",
|
|
84099
84104
|
"required": false,
|
|
84100
84105
|
"schema": {
|
|
84101
|
-
"description": "Comma-separated statuses (default `ready`).",
|
|
84106
|
+
"description": "Comma-separated statuses (default `ready` and `reencrypting`).",
|
|
84102
84107
|
"maxLength": 512,
|
|
84103
84108
|
"type": "string"
|
|
84104
84109
|
}
|
|
84105
84110
|
},
|
|
84106
84111
|
{
|
|
84107
|
-
"description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
|
|
84112
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
84108
84113
|
"in": "query",
|
|
84109
84114
|
"name": "linkedTo",
|
|
84110
84115
|
"required": false,
|
|
84111
84116
|
"schema": {
|
|
84112
|
-
"description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
|
|
84117
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
84113
84118
|
"example": "ask_chat:chat_123",
|
|
84114
84119
|
"maxLength": 220,
|
|
84115
84120
|
"minLength": 3,
|
|
@@ -84217,6 +84222,10 @@
|
|
|
84217
84222
|
],
|
|
84218
84223
|
"type": "object"
|
|
84219
84224
|
},
|
|
84225
|
+
"hiddenProtectedCount": {
|
|
84226
|
+
"description": "Only when `linkedTo` is a CRM record: how many protected files are linked to it that you cannot open. Protected files are shared person by person; seeing the record does not open them.",
|
|
84227
|
+
"type": "integer"
|
|
84228
|
+
},
|
|
84220
84229
|
"nextCursor": {
|
|
84221
84230
|
"nullable": true,
|
|
84222
84231
|
"type": "string"
|
|
@@ -84319,7 +84328,7 @@
|
|
|
84319
84328
|
]
|
|
84320
84329
|
},
|
|
84321
84330
|
"post": {
|
|
84322
|
-
"description": "Step one of two: declare the file (name, type, exact size and SHA-256) and get `upload`, a URL to PUT the bytes to with the headers given. Step two: call complete. A new file is visible only to you until you share it. Free.",
|
|
84331
|
+
"description": "Step one of two: declare the file (name, type, exact size and, optionally, its SHA-256) and get `upload`, a URL to PUT the bytes to with the headers given. Step two: call complete. A new file is visible only to you until you share it. Free.",
|
|
84323
84332
|
"operationId": "createFile",
|
|
84324
84333
|
"requestBody": {
|
|
84325
84334
|
"content": {
|
|
@@ -85614,7 +85623,7 @@
|
|
|
85614
85623
|
},
|
|
85615
85624
|
"/v1/files/{id}/complete": {
|
|
85616
85625
|
"post": {
|
|
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.",
|
|
85626
|
+
"description": "Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked (when no SHA-256 was declared it is computed now); 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
85627
|
"operationId": "completeFile",
|
|
85619
85628
|
"parameters": [
|
|
85620
85629
|
{
|
|
@@ -85936,7 +85945,7 @@
|
|
|
85936
85945
|
},
|
|
85937
85946
|
"/v1/files/{id}/links": {
|
|
85938
85947
|
"delete": {
|
|
85939
|
-
"description": "The owner or an editor removes a link. Free.",
|
|
85948
|
+
"description": "The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.",
|
|
85940
85949
|
"operationId": "unlinkFile",
|
|
85941
85950
|
"parameters": [
|
|
85942
85951
|
{
|
|
@@ -85952,12 +85961,12 @@
|
|
|
85952
85961
|
}
|
|
85953
85962
|
},
|
|
85954
85963
|
{
|
|
85955
|
-
"description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
|
|
85964
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
85956
85965
|
"in": "query",
|
|
85957
85966
|
"name": "target",
|
|
85958
85967
|
"required": true,
|
|
85959
85968
|
"schema": {
|
|
85960
|
-
"description": "What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.",
|
|
85969
|
+
"description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
|
|
85961
85970
|
"example": "ask_chat:chat_123",
|
|
85962
85971
|
"maxLength": 220,
|
|
85963
85972
|
"minLength": 3,
|
|
@@ -86074,7 +86083,7 @@
|
|
|
86074
86083
|
]
|
|
86075
86084
|
},
|
|
86076
86085
|
"post": {
|
|
86077
|
-
"description": "The owner or an editor attaches a file to a Studio table, a chat, a project or an export.
|
|
86086
|
+
"description": "The owner or an editor attaches a file to a CRM record, a Studio table, a chat, a project or an export. Linking to a CRM record needs you to be able to see the record, and lets anyone who can see the record view the file if it is standard (a protected file stays shared person by person). Other links share the file with no one. Free.",
|
|
86078
86087
|
"operationId": "linkFile",
|
|
86079
86088
|
"parameters": [
|
|
86080
86089
|
{
|
|
@@ -86211,7 +86220,7 @@
|
|
|
86211
86220
|
},
|
|
86212
86221
|
"/v1/files/{id}/revisions": {
|
|
86213
86222
|
"post": {
|
|
86214
|
-
"description": "The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size and SHA-256, PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.",
|
|
86223
|
+
"description": "The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size (and, optionally, SHA-256), PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.",
|
|
86215
86224
|
"operationId": "createFileRevision",
|
|
86216
86225
|
"parameters": [
|
|
86217
86226
|
{
|