@blocklet/sdk 1.16.39 → 1.16.40-beta-20250227-095906-fc9de90b

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.
@@ -61,5 +61,6 @@ interface AuthService {
61
61
  clearCache(args?: OmitTeamDid<Client.RequestClearCacheInput>): Promise<Client.ResponseClearCache>;
62
62
  getComponent(did: string): Promise<Client.ComponentState>;
63
63
  getTrustedDomains(): Promise<string[]>;
64
+ getVault(): Promise<string>;
64
65
  }
65
66
  export = AuthService;
@@ -12,6 +12,7 @@ const constant_1 = __importDefault(require("@abtnode/constant"));
12
12
  const util_1 = require("@ocap/util");
13
13
  const constant_2 = require("@blocklet/constant");
14
14
  const util_2 = require("@blocklet/meta/lib/util");
15
+ const security_1 = require("@blocklet/meta/lib/security");
15
16
  const check_blocklet_env_1 = __importDefault(require("../util/check-blocklet-env"));
16
17
  const version_1 = require("../version");
17
18
  const wallet_1 = __importDefault(require("../wallet"));
@@ -109,6 +110,7 @@ class AuthService {
109
110
  'getComponent',
110
111
  'getTrustedDomains',
111
112
  'clearCache',
113
+ 'getVault',
112
114
  ];
113
115
  const teamDid = process.env.BLOCKLET_DID;
114
116
  const apiFallback = (fn) => (params = {}, ...args) => fn({ input: { ...params, teamDid }, ...args });
@@ -192,6 +194,10 @@ class AuthService {
192
194
  const { blocklet } = await this.getBlocklet();
193
195
  return (0, util_2.findComponentByIdV2)(blocklet, did);
194
196
  };
197
+ this.getVault = async () => {
198
+ const { blocklet } = await this.getBlocklet();
199
+ return (0, security_1.verifyVault)(blocklet.vaults, blocklet.appDid);
200
+ };
195
201
  // eslint-disable-next-line no-constructor-return
196
202
  return new Proxy(this, {
197
203
  get(target, propKey) {
package/lib/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const version = "1.16.39";
1
+ declare const version = "1.16.40";
2
2
  export { version };
3
3
  declare const _default: {
4
4
  version: string;
package/lib/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- const version = '1.16.39';
4
+ const version = '1.16.40';
5
5
  exports.version = version;
6
6
  exports.default = { version };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.39",
6
+ "version": "1.16.40-beta-20250227-095906-fc9de90b",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -27,22 +27,22 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/client": "1.16.39",
31
- "@abtnode/constant": "1.16.39",
32
- "@abtnode/util": "1.16.39",
33
- "@arcblock/did": "1.19.10",
34
- "@arcblock/did-auth": "1.19.10",
35
- "@arcblock/jwt": "1.19.10",
36
- "@arcblock/ws": "1.19.10",
37
- "@blocklet/constant": "1.16.39",
38
- "@blocklet/env": "1.16.39",
39
- "@blocklet/meta": "1.16.39",
30
+ "@abtnode/client": "1.16.40-beta-20250227-095906-fc9de90b",
31
+ "@abtnode/constant": "1.16.40-beta-20250227-095906-fc9de90b",
32
+ "@abtnode/util": "1.16.40-beta-20250227-095906-fc9de90b",
33
+ "@arcblock/did": "1.19.12",
34
+ "@arcblock/did-auth": "1.19.12",
35
+ "@arcblock/jwt": "1.19.12",
36
+ "@arcblock/ws": "1.19.12",
37
+ "@blocklet/constant": "1.16.40-beta-20250227-095906-fc9de90b",
38
+ "@blocklet/env": "1.16.40-beta-20250227-095906-fc9de90b",
39
+ "@blocklet/meta": "1.16.40-beta-20250227-095906-fc9de90b",
40
40
  "@did-connect/authenticator": "^2.2.7",
41
41
  "@did-connect/handler": "^2.2.7",
42
42
  "@nedb/core": "^2.1.5",
43
- "@ocap/mcrypto": "1.19.10",
44
- "@ocap/util": "1.19.10",
45
- "@ocap/wallet": "1.19.10",
43
+ "@ocap/mcrypto": "1.19.12",
44
+ "@ocap/util": "1.19.12",
45
+ "@ocap/wallet": "1.19.12",
46
46
  "axios": "^1.7.9",
47
47
  "cheerio": "1.0.0-rc.12",
48
48
  "debug": "^4.3.7",
@@ -82,5 +82,5 @@
82
82
  "ts-node": "^10.9.1",
83
83
  "typescript": "^5.6.3"
84
84
  },
85
- "gitHead": "e3a614757b32dba71dcc187f20060932df31eab6"
85
+ "gitHead": "c5f6a14ce5435a615c75c4a0033415fcf51fae89"
86
86
  }