@flashbacktech/flashbackclient 0.1.56 → 0.1.57

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.
@@ -1,5 +1,5 @@
1
1
  import { ClientContext } from '.';
2
- import { Bucket, BucketCreateParams, BucketUpdateBasicParams, BucketUpdateConditionsParams } from '../models';
2
+ import { Bucket, BucketCreateParams, BucketMarketplace, BucketUpdateBasicParams, BucketUpdateConditionsParams } from '../models';
3
3
  /**
4
4
  * Bucket operations client for FlashOnStellar V2
5
5
  * Implements all bucket-related contract methods
@@ -74,7 +74,7 @@ export declare class BucketOps {
74
74
  * @param take - Number of items to take per page
75
75
  * @returns Promise resolving to an array of Bucket objects
76
76
  */
77
- getBuckets(skip?: number, take?: number): Promise<Bucket[]>;
77
+ getBuckets(skip?: number, take?: number): Promise<BucketMarketplace[]>;
78
78
  /**
79
79
  * Retrieves all buckets owned by a specific provider
80
80
  * @param provider_id - Address of the provider
@@ -46,6 +46,27 @@ export interface Bucket {
46
46
  status: BucketStatus;
47
47
  locked: boolean;
48
48
  }
49
+ export interface BucketMarketplace {
50
+ bucket_id: number;
51
+ name: string;
52
+ region: string;
53
+ provider_id: string;
54
+ provider_name: string;
55
+ provider_reputation: string;
56
+ fb_bucket_id: string;
57
+ price_per_gb_storage: bigint;
58
+ price_per_gb_egress: bigint;
59
+ versioning_enabled: boolean;
60
+ encryption_at_rest: boolean;
61
+ encryption_in_transit: boolean;
62
+ object_locking: boolean;
63
+ api_compatibility: string;
64
+ sla_avg_latency_ms: number;
65
+ sla_avg_uptime_pct: number;
66
+ created_ts: bigint;
67
+ status: BucketStatus;
68
+ locked: boolean;
69
+ }
49
70
  export declare enum BucketStatus {
50
71
  Active = "Active",
51
72
  Inactive = "Inactive",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"