@mdbase-dev/connect-protocol 0.1.0-beta.107 → 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/dist/index.d.ts CHANGED
@@ -29,9 +29,9 @@ export declare const POLICY_FRESHNESS_LEASE_CAPABILITY: "policy-freshness-lease-
29
29
  export declare const RELAY_REQUIRED_CAPABILITIES: readonly ["application-authorization-v4", "authorization-activation", "encrypted-relay", "policy-ack"];
30
30
  export declare const MINIMUM_CONNECTOR_VERSION: "0.1.0-beta.33";
31
31
  export declare const POLICY_FRESHNESS_LEASE_MINIMUM_CONNECTOR_VERSION: "0.1.0-beta.91";
32
- export declare const HOSTED_PROVIDER_REQUIRED_CAPABILITIES: readonly ["durable-mutation-journal-v1", "durable-file-lifecycle-v1"];
32
+ export declare const HOSTED_PROVIDER_REQUIRED_CAPABILITIES: readonly ["durable-mutation-journal-v1", "durable-file-lifecycle-v1", "contract-metadata-read-v1"];
33
33
  export declare const HOSTED_CANDIDATE_B_ACTIVATION_CAPABILITY: "candidate-b-activation-v1";
34
- export declare const HOSTED_PROVIDER_CAPABILITIES: readonly [...string[], "durable-mutation-journal-v1", "durable-file-lifecycle-v1", "mutation-replay-after-credential-retirement-v1", "candidate-b-activation-v1"];
34
+ export declare const HOSTED_PROVIDER_CAPABILITIES: readonly [...string[], "durable-mutation-journal-v1", "durable-file-lifecycle-v1", "contract-metadata-read-v1", "mutation-replay-after-credential-retirement-v1", "candidate-b-activation-v1"];
35
35
  export declare const APPLICATION_DECLARATION_EVIDENCE_CAPABILITY: "application-declaration-evidence-v1";
36
36
  export declare const RELAY_CAPABILITIES: readonly [...string[], "application-declaration-evidence-v1", "application-authorization-v4", "authorization-activation", "encrypted-relay", "policy-ack", "policy-freshness-lease-v1", "application-authorization-v5", "contract-setup-v1", "file-relay-v1", "protocol-usage-report-v1"];
37
37
  export declare const AUTHORITY_PROOF_VERSION: 1;
package/dist/index.js CHANGED
@@ -30,7 +30,8 @@ export const MINIMUM_CONNECTOR_VERSION = "0.1.0-beta.33";
30
30
  export const POLICY_FRESHNESS_LEASE_MINIMUM_CONNECTOR_VERSION = "0.1.0-beta.91";
31
31
  export const HOSTED_PROVIDER_REQUIRED_CAPABILITIES = [
32
32
  "durable-mutation-journal-v1",
33
- "durable-file-lifecycle-v1"
33
+ "durable-file-lifecycle-v1",
34
+ "contract-metadata-read-v1"
34
35
  ];
35
36
  export const HOSTED_CANDIDATE_B_ACTIVATION_CAPABILITY = "candidate-b-activation-v1";
36
37
  export const HOSTED_PROVIDER_CAPABILITIES = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdbase-dev/connect-protocol",
3
- "version": "0.1.0-beta.107",
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",