@beam-network/sdk 0.4.2 → 0.4.3
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 +10 -0
- package/dist/provider-signing.js +2 -1
- package/package.json +1 -1
package/dist/models.d.ts
CHANGED
|
@@ -176,6 +176,15 @@ export interface R2ProviderConfig {
|
|
|
176
176
|
account_id?: string;
|
|
177
177
|
endpoint_url?: string;
|
|
178
178
|
}
|
|
179
|
+
export interface S3CompatibleProviderCapabilities {
|
|
180
|
+
/**
|
|
181
|
+
* Whether the provider's ListParts / ListObjects response includes a per-part
|
|
182
|
+
* LastModified timestamp. Defaults to true (S3-spec compliant). Providers that
|
|
183
|
+
* omit it (e.g. Hippius) declare false so Beam finalization substitutes a
|
|
184
|
+
* Beam-side timestamp instead of looping into multipart recovery.
|
|
185
|
+
*/
|
|
186
|
+
multipart_part_last_modified?: boolean;
|
|
187
|
+
}
|
|
179
188
|
export interface S3CompatibleProviderConfig {
|
|
180
189
|
provider: string;
|
|
181
190
|
driver?: "s3-compatible";
|
|
@@ -189,6 +198,7 @@ export interface S3CompatibleProviderConfig {
|
|
|
189
198
|
session_token?: string;
|
|
190
199
|
force_path_style?: boolean;
|
|
191
200
|
account_id?: string;
|
|
201
|
+
capabilities?: S3CompatibleProviderCapabilities;
|
|
192
202
|
}
|
|
193
203
|
export interface HippiusProviderConfig {
|
|
194
204
|
provider: "hippius";
|
package/dist/provider-signing.js
CHANGED
|
@@ -405,7 +405,8 @@ function s3CompatibleMetadata(source, endpoint = s3CompatibleEndpoint(source)) {
|
|
|
405
405
|
key: source.key,
|
|
406
406
|
region: s3CompatibleRegion(source),
|
|
407
407
|
endpoint_url: endpoint,
|
|
408
|
-
account_id: "account_id" in source ? source.account_id : undefined
|
|
408
|
+
account_id: "account_id" in source ? source.account_id : undefined,
|
|
409
|
+
capabilities: "capabilities" in source ? source.capabilities : undefined
|
|
409
410
|
});
|
|
410
411
|
}
|
|
411
412
|
function isHippiusProvider(config) {
|