@beam-network/sdk 0.2.22 → 0.2.24

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/models.d.ts CHANGED
@@ -146,6 +146,15 @@ export interface R2ProviderConfig {
146
146
  account_id?: string;
147
147
  endpoint_url?: string;
148
148
  }
149
+ export interface S3CompatibleProviderCapabilities {
150
+ /**
151
+ * Whether the provider's ListParts / ListObjects response includes a per-part
152
+ * LastModified timestamp. Defaults to true (S3-spec compliant). Providers that
153
+ * omit it (e.g. Hippius) declare false so Beam finalization substitutes a
154
+ * Beam-side timestamp instead of looping into multipart recovery.
155
+ */
156
+ multipart_part_last_modified?: boolean;
157
+ }
149
158
  export interface S3CompatibleProviderConfig {
150
159
  provider: string;
151
160
  driver?: "s3-compatible";
@@ -159,6 +168,7 @@ export interface S3CompatibleProviderConfig {
159
168
  session_token?: string;
160
169
  force_path_style?: boolean;
161
170
  account_id?: string;
171
+ capabilities?: S3CompatibleProviderCapabilities;
162
172
  }
163
173
  export interface HippiusProviderConfig {
164
174
  provider: "hippius";
@@ -394,7 +394,8 @@ function s3CompatibleMetadata(source, endpoint = s3CompatibleEndpoint(source)) {
394
394
  bucket: source.bucket,
395
395
  key: source.key,
396
396
  region: s3CompatibleRegion(source),
397
- endpoint_url: endpoint
397
+ endpoint_url: endpoint,
398
+ capabilities: "capabilities" in source ? source.capabilities : undefined
398
399
  });
399
400
  }
400
401
  function isHippiusProvider(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beam-network/sdk",
3
- "version": "0.2.22",
3
+ "version": "0.2.24",
4
4
  "description": "TypeScript SDK for BEAM transfer creation and management.",
5
5
  "type": "module",
6
6
  "license": "MIT",