@haex-space/vault-sdk 2.7.0 → 2.7.1
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/{client-DQbCPz57.d.ts → client-3B1iWut9.d.ts} +24 -1
- package/dist/{client-COvneDz1.d.mts → client-BUsw25aA.d.mts} +24 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +15 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +15 -0
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +1 -1
- package/dist/runtime/nuxt.plugin.client.d.ts +1 -1
- package/dist/runtime/nuxt.plugin.client.js +15 -0
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +15 -0
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +15 -0
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +15 -0
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +15 -0
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +15 -0
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -847,6 +847,8 @@ var FILESYSTEM_COMMANDS = {
|
|
|
847
847
|
rename: "extension_filesystem_rename",
|
|
848
848
|
/** Copy file or directory */
|
|
849
849
|
copy: "extension_filesystem_copy",
|
|
850
|
+
/** Get well-known system directory paths */
|
|
851
|
+
knownPaths: "extension_filesystem_known_paths",
|
|
850
852
|
// File watcher operations
|
|
851
853
|
/** Start watching a directory for changes */
|
|
852
854
|
watch: "extension_filesystem_watch",
|
|
@@ -1146,6 +1148,15 @@ var DatabaseAPI = class {
|
|
|
1146
1148
|
|
|
1147
1149
|
// src/api/filesystem.ts
|
|
1148
1150
|
init_vaultKey();
|
|
1151
|
+
var KnownPath = /* @__PURE__ */ ((KnownPath2) => {
|
|
1152
|
+
KnownPath2["Home"] = "home";
|
|
1153
|
+
KnownPath2["Pictures"] = "pictures";
|
|
1154
|
+
KnownPath2["Downloads"] = "downloads";
|
|
1155
|
+
KnownPath2["Documents"] = "documents";
|
|
1156
|
+
KnownPath2["Desktop"] = "desktop";
|
|
1157
|
+
KnownPath2["Videos"] = "videos";
|
|
1158
|
+
return KnownPath2;
|
|
1159
|
+
})(KnownPath || {});
|
|
1149
1160
|
var FilesystemAPI = class {
|
|
1150
1161
|
constructor(client) {
|
|
1151
1162
|
this.client = client;
|
|
@@ -1329,6 +1340,19 @@ var FilesystemAPI = class {
|
|
|
1329
1340
|
);
|
|
1330
1341
|
}
|
|
1331
1342
|
// ==========================================================================
|
|
1343
|
+
// Known Paths (System Directories)
|
|
1344
|
+
// ==========================================================================
|
|
1345
|
+
/**
|
|
1346
|
+
* Get well-known system directory paths (home, pictures, downloads, etc.)
|
|
1347
|
+
* These paths are resolved via Tauri's PathResolver and are platform-aware.
|
|
1348
|
+
* @returns Map of known path names to their absolute paths
|
|
1349
|
+
*/
|
|
1350
|
+
async knownPaths() {
|
|
1351
|
+
return this.client.request(
|
|
1352
|
+
FILESYSTEM_COMMANDS.knownPaths
|
|
1353
|
+
);
|
|
1354
|
+
}
|
|
1355
|
+
// ==========================================================================
|
|
1332
1356
|
// File Watcher Operations
|
|
1333
1357
|
// ==========================================================================
|
|
1334
1358
|
/**
|
|
@@ -3632,6 +3656,6 @@ function createHaexVaultSdk(config = {}) {
|
|
|
3632
3656
|
return new HaexVaultSdk(config);
|
|
3633
3657
|
}
|
|
3634
3658
|
|
|
3635
|
-
export { COSE_ALGORITHM, DEFAULT_TIMEOUT, DatabaseAPI, EXTERNAL_EVENTS, ErrorCode, ExternalConnectionErrorCode, ExternalConnectionState, FilesystemAPI, HAEXSPACE_MESSAGE_TYPES, HAEXTENSION_EVENTS, HaexVaultSdk, HaexVaultSdkError, KEY_AGREEMENT_ALGO, LOCALSEND_EVENTS, LocalSendAPI, PermissionErrorCode, PermissionStatus, PermissionsAPI, RemoteStorageAPI, SHELL_EVENTS, SIGNING_ALGO, SPACE_COMMANDS, ShellAPI, SpaceRoles, SpacesAPI, TABLE_SEPARATOR, TAURI_COMMANDS, WebAPI, arrayBufferToBase64, base58btcDecode, base58btcEncode, base64ToArrayBuffer, canExternalClientSendRequests, createHaexVaultSdk, decryptCrdtData, decryptPrivateKeyAsync, decryptSpaceNameAsync, decryptString, decryptVaultKey, decryptVaultName, decryptWithPrivateKeyAsync, deriveKeyFromPassword, didKeyToPublicKeyAsync, encryptCrdtData, encryptPrivateKeyAsync, encryptSpaceNameAsync, encryptString, encryptVaultKey, encryptWithPublicKeyAsync, exportKeyPairAsync, exportPrivateKeyAsync, exportPublicKeyAsync, exportPublicKeyCoseAsync, exportUserKeypairAsync, generateCredentialId, generateIdentityAsync, generatePasskeyPairAsync, generateSpaceKey, generateUserKeypairAsync, generateVaultKey, getTableName, hexToBytes, importPrivateKeyAsync, importPrivateKeyForKeyAgreementAsync, importPublicKeyAsync, importPublicKeyForKeyAgreementAsync, importUserPrivateKeyAsync, importUserPublicKeyAsync, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, isExternalClientConnected, isPermissionDeniedError, isPermissionError, isPermissionPromptError, publicKeyToDidKeyAsync, signClaimPresentationAsync, signRecordAsync, signSpaceChallengeAsync, signWithPasskeyAsync, sortObjectKeysRecursively, unwrapKey, verifyClaimPresentationAsync, verifyExtensionSignature, verifyRecordSignatureAsync, verifySpaceChallengeAsync, verifyWithPasskeyAsync, wrapKey };
|
|
3659
|
+
export { COSE_ALGORITHM, DEFAULT_TIMEOUT, DatabaseAPI, EXTERNAL_EVENTS, ErrorCode, ExternalConnectionErrorCode, ExternalConnectionState, FilesystemAPI, HAEXSPACE_MESSAGE_TYPES, HAEXTENSION_EVENTS, HaexVaultSdk, HaexVaultSdkError, KEY_AGREEMENT_ALGO, KnownPath, LOCALSEND_EVENTS, LocalSendAPI, PermissionErrorCode, PermissionStatus, PermissionsAPI, RemoteStorageAPI, SHELL_EVENTS, SIGNING_ALGO, SPACE_COMMANDS, ShellAPI, SpaceRoles, SpacesAPI, TABLE_SEPARATOR, TAURI_COMMANDS, WebAPI, arrayBufferToBase64, base58btcDecode, base58btcEncode, base64ToArrayBuffer, canExternalClientSendRequests, createHaexVaultSdk, decryptCrdtData, decryptPrivateKeyAsync, decryptSpaceNameAsync, decryptString, decryptVaultKey, decryptVaultName, decryptWithPrivateKeyAsync, deriveKeyFromPassword, didKeyToPublicKeyAsync, encryptCrdtData, encryptPrivateKeyAsync, encryptSpaceNameAsync, encryptString, encryptVaultKey, encryptWithPublicKeyAsync, exportKeyPairAsync, exportPrivateKeyAsync, exportPublicKeyAsync, exportPublicKeyCoseAsync, exportUserKeypairAsync, generateCredentialId, generateIdentityAsync, generatePasskeyPairAsync, generateSpaceKey, generateUserKeypairAsync, generateVaultKey, getTableName, hexToBytes, importPrivateKeyAsync, importPrivateKeyForKeyAgreementAsync, importPublicKeyAsync, importPublicKeyForKeyAgreementAsync, importUserPrivateKeyAsync, importUserPublicKeyAsync, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, isExternalClientConnected, isPermissionDeniedError, isPermissionError, isPermissionPromptError, publicKeyToDidKeyAsync, signClaimPresentationAsync, signRecordAsync, signSpaceChallengeAsync, signWithPasskeyAsync, sortObjectKeysRecursively, unwrapKey, verifyClaimPresentationAsync, verifyExtensionSignature, verifyRecordSignatureAsync, verifySpaceChallengeAsync, verifyWithPasskeyAsync, wrapKey };
|
|
3636
3660
|
//# sourceMappingURL=index.mjs.map
|
|
3637
3661
|
//# sourceMappingURL=index.mjs.map
|