@flashbacktech/flashbackclient 0.0.75 → 0.0.77

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.
@@ -2,4 +2,5 @@ import { ApiClient, HttpError } from './client';
2
2
  import * as ApiTypes from './types/storage';
3
3
  import * as AuthTypes from './types/auth';
4
4
  import * as ApiInterfaces from './interfaces';
5
- export { ApiClient, ApiTypes, AuthTypes, ApiInterfaces, HttpError };
5
+ import * as BridgeTypes from './types/bridge';
6
+ export { ApiClient, ApiTypes, AuthTypes, ApiInterfaces, HttpError, BridgeTypes };
package/dist/api/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.HttpError = exports.ApiInterfaces = exports.AuthTypes = exports.ApiTypes = exports.ApiClient = void 0;
36
+ exports.BridgeTypes = exports.HttpError = exports.ApiInterfaces = exports.AuthTypes = exports.ApiTypes = exports.ApiClient = void 0;
37
37
  const client_1 = require("./client");
38
38
  Object.defineProperty(exports, "ApiClient", { enumerable: true, get: function () { return client_1.ApiClient; } });
39
39
  Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return client_1.HttpError; } });
@@ -43,3 +43,5 @@ const AuthTypes = __importStar(require("./types/auth"));
43
43
  exports.AuthTypes = AuthTypes;
44
44
  const ApiInterfaces = __importStar(require("./interfaces"));
45
45
  exports.ApiInterfaces = ApiInterfaces;
46
+ const BridgeTypes = __importStar(require("./types/bridge"));
47
+ exports.BridgeTypes = BridgeTypes;
@@ -0,0 +1,15 @@
1
+ export declare enum BucketStatusType {
2
+ ONLINE = "ONLINE",
3
+ OFFLINE = "OFFLINE",
4
+ ERROR = "ERROR"
5
+ }
6
+ export interface BucketStatus {
7
+ unitId: string;
8
+ status: BucketStatusType;
9
+ latency_ms?: number;
10
+ createdAt: string;
11
+ }
12
+ export interface BucketStatusResponse {
13
+ nodeIP: string;
14
+ buckets: BucketStatus[];
15
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BucketStatusType = void 0;
4
+ var BucketStatusType;
5
+ (function (BucketStatusType) {
6
+ BucketStatusType["ONLINE"] = "ONLINE";
7
+ BucketStatusType["OFFLINE"] = "OFFLINE";
8
+ BucketStatusType["ERROR"] = "ERROR";
9
+ })(BucketStatusType || (exports.BucketStatusType = BucketStatusType = {}));
@@ -70,6 +70,7 @@ export interface CreateRepoKeyResponse {
70
70
  }
71
71
  export interface UpdateRepoKeyRequest {
72
72
  name: string;
73
+ accessType: AccessType;
73
74
  }
74
75
  export interface UpdateRepoKeyResponse extends ActionResponse {
75
76
  }
@@ -87,16 +88,22 @@ export interface ApiKey {
87
88
  name: string;
88
89
  accessType: AccessType;
89
90
  key: string;
90
- secret?: string;
91
+ secret?: EncryptedKey;
91
92
  createdAt: string;
92
93
  }
94
+ export interface EncryptedKey {
95
+ key: string;
96
+ iv: string;
97
+ authTag: string;
98
+ message: string;
99
+ }
93
100
  export interface StorageUnit {
94
101
  id: string;
95
102
  name: string;
96
103
  bucket: string;
97
104
  storageType: StorageType;
98
105
  key: string;
99
- secret?: string;
106
+ secret?: EncryptedKey;
100
107
  endpoint?: string;
101
108
  region?: string;
102
109
  status?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },