@haex-space/vault-sdk 2.5.65 → 2.5.68

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/index.mjs CHANGED
@@ -1274,7 +1274,7 @@ var PermissionsAPI = class {
1274
1274
  */
1275
1275
  async checkDatabaseAsync(resource, operation) {
1276
1276
  const response = await this.client.request(
1277
- "permissions.database.check",
1277
+ PERMISSIONS_COMMANDS.checkDatabase,
1278
1278
  {
1279
1279
  resource,
1280
1280
  operation
@@ -1290,7 +1290,7 @@ var PermissionsAPI = class {
1290
1290
  */
1291
1291
  async checkWebAsync(url) {
1292
1292
  const response = await this.client.request(
1293
- "permissions.web.check",
1293
+ PERMISSIONS_COMMANDS.checkWeb,
1294
1294
  {
1295
1295
  url
1296
1296
  }
@@ -1305,7 +1305,7 @@ var PermissionsAPI = class {
1305
1305
  */
1306
1306
  async checkFilesystemAsync(path, operation) {
1307
1307
  const response = await this.client.request(
1308
- "permissions.filesystem.check",
1308
+ PERMISSIONS_COMMANDS.checkFilesystem,
1309
1309
  {
1310
1310
  path,
1311
1311
  operation
@@ -1880,7 +1880,7 @@ async function handleExternalRequest(request, handlers, respond, log) {
1880
1880
  }
1881
1881
  async function respondToExternalRequest(response, request) {
1882
1882
  console.log("[SDK Debug] respondToExternalRequest called with:", JSON.stringify(response, null, 2));
1883
- await request("external.respond", response);
1883
+ await request(EXTERNAL_BRIDGE_COMMANDS.respond, response);
1884
1884
  }
1885
1885
 
1886
1886
  // src/client.ts