@haex-space/vault-sdk 2.5.67 → 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/svelte.js CHANGED
@@ -398,6 +398,16 @@ var DATABASE_COMMANDS = {
398
398
  registerMigrations: "extension_database_register_migrations"
399
399
  };
400
400
 
401
+ // src/commands/permissions.ts
402
+ var PERMISSIONS_COMMANDS = {
403
+ /** Check web/fetch permission */
404
+ checkWeb: "extension_permissions_check_web",
405
+ /** Check database permission */
406
+ checkDatabase: "extension_permissions_check_database",
407
+ /** Check filesystem permission */
408
+ checkFilesystem: "extension_permissions_check_filesystem"
409
+ };
410
+
401
411
  // src/commands/web.ts
402
412
  var WEB_COMMANDS = {
403
413
  /** Open URL in external browser */
@@ -941,7 +951,7 @@ var PermissionsAPI = class {
941
951
  */
942
952
  async checkDatabaseAsync(resource, operation) {
943
953
  const response = await this.client.request(
944
- "permissions.database.check",
954
+ PERMISSIONS_COMMANDS.checkDatabase,
945
955
  {
946
956
  resource,
947
957
  operation
@@ -957,7 +967,7 @@ var PermissionsAPI = class {
957
967
  */
958
968
  async checkWebAsync(url) {
959
969
  const response = await this.client.request(
960
- "permissions.web.check",
970
+ PERMISSIONS_COMMANDS.checkWeb,
961
971
  {
962
972
  url
963
973
  }
@@ -972,7 +982,7 @@ var PermissionsAPI = class {
972
982
  */
973
983
  async checkFilesystemAsync(path, operation) {
974
984
  const response = await this.client.request(
975
- "permissions.filesystem.check",
985
+ PERMISSIONS_COMMANDS.checkFilesystem,
976
986
  {
977
987
  path,
978
988
  operation