@model-match/api 3.101.0 → 3.102.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 +5 -0
- package/dist/{index-Beyx3IUL.d.mts → index-DsoUV3tA.d.mts} +10 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +4 -4
- package/dist/slim/index.mjs +4 -4
- package/dist/{src-BHtp1hnU.mjs → src-D8eq-tCM.mjs} +3 -3
- package/openapi.json +14 -10
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Changes to `@model-match/api` that affect how you use it. Each version is generated from the ModelMatch API's OpenAPI spec, so new endpoints and fields appear in the [API reference](https://docs.modelmatch.com/developers) as they ship.
|
|
4
4
|
|
|
5
|
+
## 3.102.0
|
|
6
|
+
|
|
7
|
+
- **CRM documents.** `createFile` (`links`) and `linkFile` accept `crm_record:<id>` for a CRM record you can see. Anyone who can see the record can view the standard files linked to it. Protected files stay shared person by person.
|
|
8
|
+
- **A record's documents.** `listFiles` with `linkedTo=crm_record:<id>` returns the record's documents and a new `hiddenProtectedCount`, the number of protected files linked to the record that you cannot open. You get `404` for a record you cannot see.
|
|
9
|
+
|
|
5
10
|
## 3.101.0
|
|
6
11
|
|
|
7
12
|
- **Protected files.** Create a file with `class: "protected"`, or have its owner raise an existing file with `updateFile`. A protected file can be shared with named people only. Every access is recorded, and the file opens through a link that works once and lasts 5 minutes (`getFileContent` returns `oneTime: true`). An agent needs the person's approval in that conversation (`approveFileForAgent`). Owners and organization admins can read `getFileAccessLog`, and admins can read `getFilesAccessReport`, as JSON or CSV. This is available to selected organizations first.
|
|
@@ -8154,7 +8154,7 @@ type FileError = {
|
|
|
8154
8154
|
};
|
|
8155
8155
|
type FileLinkCreate = {
|
|
8156
8156
|
/**
|
|
8157
|
-
* What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.
|
|
8157
|
+
* 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.
|
|
8158
8158
|
*/
|
|
8159
8159
|
target: string;
|
|
8160
8160
|
};
|
|
@@ -28997,7 +28997,7 @@ type ListFilesData = {
|
|
|
28997
28997
|
*/
|
|
28998
28998
|
status?: string;
|
|
28999
28999
|
/**
|
|
29000
|
-
* What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.
|
|
29000
|
+
* 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.
|
|
29001
29001
|
*/
|
|
29002
29002
|
linkedTo?: string;
|
|
29003
29003
|
/**
|
|
@@ -29066,6 +29066,10 @@ type ListFilesResponses = {
|
|
|
29066
29066
|
value: string;
|
|
29067
29067
|
}>;
|
|
29068
29068
|
};
|
|
29069
|
+
/**
|
|
29070
|
+
* 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.
|
|
29071
|
+
*/
|
|
29072
|
+
hiddenProtectedCount?: number;
|
|
29069
29073
|
nextCursor: string;
|
|
29070
29074
|
};
|
|
29071
29075
|
};
|
|
@@ -29712,7 +29716,7 @@ type UnlinkFileData = {
|
|
|
29712
29716
|
};
|
|
29713
29717
|
query: {
|
|
29714
29718
|
/**
|
|
29715
|
-
* What the file belongs to, as `<type>:<id>`: `studio_table`, `ask_chat`, `ask_project` or `export_job`.
|
|
29719
|
+
* 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.
|
|
29716
29720
|
*/
|
|
29717
29721
|
target: string;
|
|
29718
29722
|
};
|
|
@@ -38880,7 +38884,7 @@ declare class Files {
|
|
|
38880
38884
|
/**
|
|
38881
38885
|
* Your files
|
|
38882
38886
|
*
|
|
38883
|
-
* 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.
|
|
38887
|
+
* 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.
|
|
38884
38888
|
*/
|
|
38885
38889
|
static list<ThrowOnError extends boolean = false>(options?: Options<ListFilesData, ThrowOnError>): RequestResult<ListFilesResponses, ListFilesErrors, ThrowOnError>;
|
|
38886
38890
|
/**
|
|
@@ -38952,13 +38956,13 @@ declare class Files {
|
|
|
38952
38956
|
/**
|
|
38953
38957
|
* Detach a file
|
|
38954
38958
|
*
|
|
38955
|
-
* The owner or an editor removes a link. Free.
|
|
38959
|
+
* The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.
|
|
38956
38960
|
*/
|
|
38957
38961
|
static unlink<ThrowOnError extends boolean = false>(options: Options<UnlinkFileData, ThrowOnError>): RequestResult<UnlinkFileResponses, UnlinkFileErrors, ThrowOnError>;
|
|
38958
38962
|
/**
|
|
38959
38963
|
* Attach a file to something
|
|
38960
38964
|
*
|
|
38961
|
-
* The owner or an editor attaches a file to a Studio table, a chat, a project or an export.
|
|
38965
|
+
* 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.
|
|
38962
38966
|
*/
|
|
38963
38967
|
static link<ThrowOnError extends boolean = false>(options: Options<LinkFileData, ThrowOnError>): RequestResult<LinkFileResponses, LinkFileErrors, ThrowOnError>;
|
|
38964
38968
|
/**
|