@model-match/api 3.103.0 → 3.104.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 CHANGED
@@ -2,6 +2,14 @@
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.104.0
6
+
7
+ - **`sha256Pending` on every file.** When you leave `sha256` out of `createFile` or `createFileRevision`, `completeFile` now returns at once and the SHA-256 is computed in the background. Until it is known, `sha256Pending` is `true` and `sha256` is empty. The file opens and downloads as usual in the meantime. A `sha256` you declare is still checked when you upload, as before.
8
+
9
+ ## 3.103.1
10
+
11
+ - Regenerated from the latest API spec. No changes to the client itself.
12
+
5
13
  ## 3.103.0
6
14
 
7
15
  - **`sha256` is optional on `createFile` and `createFileRevision`.** Leave it out and it is computed when the upload completes. Until then, the file's `sha256` is empty.
@@ -8018,7 +8018,7 @@ type FieldCondition = {
8018
8018
  };
8019
8019
  type File = {
8020
8020
  /**
8021
- * `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`).
8021
+ * `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.
8022
8022
  */
8023
8023
  class: 'standard' | 'protected';
8024
8024
  /**
@@ -8067,9 +8067,13 @@ type File = {
8067
8067
  */
8068
8068
  role: 'owner' | 'editor' | 'viewer';
8069
8069
  /**
8070
- * Hex SHA-256 of the bytes. Empty while an upload that declared none is in progress; set when it completes.
8070
+ * Hex SHA-256 of the bytes. Empty while `sha256Pending` is true.
8071
8071
  */
8072
8072
  sha256: string;
8073
+ /**
8074
+ * True while the SHA-256 is not known yet: the upload (or the latest replacement) declared none, so it is computed in the background after `complete`, usually within a minute or two for large files. The file opens and downloads as usual meanwhile; `sha256` is empty until it is set.
8075
+ */
8076
+ sha256Pending: boolean;
8073
8077
  sizeBytes: number;
8074
8078
  /**
8075
8079
  * `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).
@@ -8113,7 +8117,7 @@ type FileAgentApprovalCreate = {
8113
8117
  };
8114
8118
  type FileCreate = {
8115
8119
  /**
8116
- * `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`).
8120
+ * `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.
8117
8121
  */
8118
8122
  class?: 'standard' | 'protected';
8119
8123
  /**
@@ -8141,7 +8145,7 @@ type FileCreate = {
8141
8145
  [key: string]: string;
8142
8146
  };
8143
8147
  /**
8144
- * 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.
8148
+ * 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 in the background after the upload completes (`sha256Pending` is true until then).
8145
8149
  */
8146
8150
  sha256?: string;
8147
8151
  /**
@@ -8151,7 +8155,7 @@ type FileCreate = {
8151
8155
  };
8152
8156
  type FileError = {
8153
8157
  /**
8154
- * 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`.
8158
+ * 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_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`.
8155
8159
  */
8156
8160
  code: string;
8157
8161
  /**
@@ -8189,7 +8193,7 @@ type FileRevisionCreate = {
8189
8193
  */
8190
8194
  mediaType?: string;
8191
8195
  /**
8192
- * Hex SHA-256 of the new bytes, if you have it. Leave it out and it is computed on complete.
8196
+ * Hex SHA-256 of the new bytes, if you have it. Leave it out and it is computed in the background after complete (`sha256Pending` is true until then).
8193
8197
  */
8194
8198
  sha256?: string;
8195
8199
  /**
@@ -28996,7 +29000,7 @@ type ListFilesData = {
28996
29000
  */
28997
29001
  kind?: string;
28998
29002
  /**
28999
- * `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`).
29003
+ * `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.
29000
29004
  */
29001
29005
  class?: 'standard' | 'protected';
29002
29006
  /**