@flashbacktech/flashbackclient 0.0.79 → 0.0.81
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,7 +1,13 @@
|
|
|
1
1
|
export declare enum BucketStatusType {
|
|
2
2
|
ONLINE = "ONLINE",
|
|
3
3
|
OFFLINE = "OFFLINE",
|
|
4
|
-
|
|
4
|
+
DISCONNECTED = "DISCONNECTED"
|
|
5
|
+
}
|
|
6
|
+
interface NodeSignedMessage {
|
|
7
|
+
ip: string;
|
|
8
|
+
region: string;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
signature: string;
|
|
5
11
|
}
|
|
6
12
|
export interface BucketStatus {
|
|
7
13
|
unitId: string;
|
|
@@ -9,7 +15,23 @@ export interface BucketStatus {
|
|
|
9
15
|
latency_ms?: number;
|
|
10
16
|
createdAt: string;
|
|
11
17
|
}
|
|
12
|
-
export interface
|
|
18
|
+
export interface NodeStatusRequest extends NodeSignedMessage {
|
|
19
|
+
buckets: BucketStatus[];
|
|
20
|
+
}
|
|
21
|
+
export interface NodeStatusResponse {
|
|
13
22
|
nodeIP: string;
|
|
14
23
|
buckets: BucketStatus[];
|
|
15
24
|
}
|
|
25
|
+
export interface RegisterRequest extends NodeSignedMessage {
|
|
26
|
+
provider: string;
|
|
27
|
+
status: string;
|
|
28
|
+
region: string;
|
|
29
|
+
version: string;
|
|
30
|
+
}
|
|
31
|
+
export interface RegisterResponse {
|
|
32
|
+
success: boolean;
|
|
33
|
+
message: string;
|
|
34
|
+
error_code?: string;
|
|
35
|
+
error_message?: string;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
package/dist/api/types/bridge.js
CHANGED
|
@@ -5,5 +5,5 @@ var BucketStatusType;
|
|
|
5
5
|
(function (BucketStatusType) {
|
|
6
6
|
BucketStatusType["ONLINE"] = "ONLINE";
|
|
7
7
|
BucketStatusType["OFFLINE"] = "OFFLINE";
|
|
8
|
-
BucketStatusType["
|
|
8
|
+
BucketStatusType["DISCONNECTED"] = "DISCONNECTED";
|
|
9
9
|
})(BucketStatusType || (exports.BucketStatusType = BucketStatusType = {}));
|
package/dist/gcs/storage.js
CHANGED
|
@@ -10,7 +10,7 @@ const crypto_1 = __importDefault(require("crypto"));
|
|
|
10
10
|
const originalRequest = require('gaxios').instance.request;
|
|
11
11
|
class FlashbackGCSStorage extends storage_1.Storage {
|
|
12
12
|
constructor(opts) {
|
|
13
|
-
const { credentials, apiEndpoint = 'https://gcs
|
|
13
|
+
const { credentials, apiEndpoint = 'https://gcs-us-east-1-gcp.flashback.tech', tokenScopes = ['READ', 'WRITE'], ...rest } = opts;
|
|
14
14
|
const authClient = new oauth2_1.FlashbackAuthClient(apiEndpoint + '/token', tokenScopes, credentials);
|
|
15
15
|
super({
|
|
16
16
|
...rest,
|