@mdbase-dev/connect-protocol 0.1.0-beta.108 → 0.1.0-beta.110

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/dist/files.d.ts CHANGED
@@ -158,6 +158,8 @@ export interface FileTransferSession {
158
158
  received: number[];
159
159
  /** R2/S3 part receipts for bandwidth-efficient multipart resume. */
160
160
  uploaded_parts?: UploadedFilePart[];
161
+ /** Create-only single PUT; replay preserves its original URL and expiry, not fresh progress. */
162
+ prepared_upload_part?: PreparedFilePart;
161
163
  }
162
164
  export interface FileTransferStatus {
163
165
  protocol_version: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdbase-dev/connect-protocol",
3
- "version": "0.1.0-beta.108",
3
+ "version": "0.1.0-beta.110",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -317,8 +317,27 @@
317
317
  "type": "array",
318
318
  "maxItems": 10000,
319
319
  "items": { "$ref": "#/$defs/uploadedPart" }
320
- }
321
- }
320
+ },
321
+ "prepared_upload_part": { "$ref": "#/$defs/preparedPart" }
322
+ },
323
+ "allOf": [{
324
+ "if": { "required": ["prepared_upload_part"] },
325
+ "then": { "properties": {
326
+ "direction": { "const": "upload" },
327
+ "protection": { "const": "transport_tls" },
328
+ "strategy": { "type": "object", "properties": { "kind": { "const": "object_put" } } },
329
+ "prepared_upload_part": { "type": "object", "properties": {
330
+ "part_index": { "const": 0 },
331
+ "offset": { "const": 0 },
332
+ "method": { "const": "PUT" },
333
+ "headers": {
334
+ "type": "object",
335
+ "required": ["if-none-match"],
336
+ "properties": { "if-none-match": { "const": "*" } }
337
+ }
338
+ } }
339
+ } }
340
+ }]
322
341
  },
323
342
  "transferStatus": {
324
343
  "type": "object",