@mdbase-dev/connect-protocol 0.1.0-beta.108 → 0.1.0-beta.111
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 +2 -0
- package/package.json +1 -1
- package/schemas/files.v1.schema.json +21 -2
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
|
@@ -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",
|