@beam-network/sdk 0.4.2 → 0.4.4
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 +18 -0
- package/dist/provider-signing.js +2 -1
- package/package.json +1 -1
package/dist/models.d.ts
CHANGED
|
@@ -176,6 +176,23 @@ 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
|
+
/**
|
|
188
|
+
* Per-destination override for Beam Core's assignment-recovery deadline
|
|
189
|
+
* (TRANSFER_ASSIGNMENT_TIMEOUT_MS), in milliseconds. Omit to use the global
|
|
190
|
+
* default (15s). Slower providers (e.g. Hippius) declare a larger value so
|
|
191
|
+
* their assignment waves aren't reassigned prematurely. Only integers >= 1000
|
|
192
|
+
* are honoured by Beam Core.
|
|
193
|
+
*/
|
|
194
|
+
assignment_timeout_ms?: number;
|
|
195
|
+
}
|
|
179
196
|
export interface S3CompatibleProviderConfig {
|
|
180
197
|
provider: string;
|
|
181
198
|
driver?: "s3-compatible";
|
|
@@ -189,6 +206,7 @@ export interface S3CompatibleProviderConfig {
|
|
|
189
206
|
session_token?: string;
|
|
190
207
|
force_path_style?: boolean;
|
|
191
208
|
account_id?: string;
|
|
209
|
+
capabilities?: S3CompatibleProviderCapabilities;
|
|
192
210
|
}
|
|
193
211
|
export interface HippiusProviderConfig {
|
|
194
212
|
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) {
|