@haex-space/vault-sdk 2.5.2 → 2.5.4
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-DTqEEmX-.d.mts → client-Bw04hBmE.d.mts} +1 -1
- package/dist/{client-DfmTO8Mz.d.ts → client-CJC-_fwd.d.ts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js.map +1 -1
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +2 -2
- package/dist/runtime/nuxt.plugin.client.d.ts +2 -2
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs.map +1 -1
- package/dist/{types-Dzp3QG4t.d.mts → types-mMVOhsmm.d.mts} +29 -3
- package/dist/{types-Dzp3QG4t.d.ts → types-mMVOhsmm.d.ts} +29 -3
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -270,6 +270,30 @@ declare enum ExternalConnectionState {
|
|
|
270
270
|
/** Connected and authorized to communicate */
|
|
271
271
|
PAIRED = "paired"
|
|
272
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Error codes for external client connections.
|
|
275
|
+
* Used to identify specific error conditions for i18n in the frontend.
|
|
276
|
+
*/
|
|
277
|
+
declare enum ExternalConnectionErrorCode {
|
|
278
|
+
/** No error */
|
|
279
|
+
NONE = "none",
|
|
280
|
+
/** Client is not authorized (rejected or not yet approved) */
|
|
281
|
+
CLIENT_NOT_AUTHORIZED = "client_not_authorized",
|
|
282
|
+
/** Client was blocked by the user */
|
|
283
|
+
CLIENT_BLOCKED = "client_blocked",
|
|
284
|
+
/** Connection to haex-vault failed (not running or network error) */
|
|
285
|
+
CONNECTION_FAILED = "connection_failed",
|
|
286
|
+
/** Connection timed out */
|
|
287
|
+
CONNECTION_TIMEOUT = "connection_timeout",
|
|
288
|
+
/** WebSocket connection was closed unexpectedly */
|
|
289
|
+
CONNECTION_CLOSED = "connection_closed",
|
|
290
|
+
/** Failed to decrypt message (invalid key or corrupted data) */
|
|
291
|
+
DECRYPTION_FAILED = "decryption_failed",
|
|
292
|
+
/** Invalid message format received */
|
|
293
|
+
INVALID_MESSAGE = "invalid_message",
|
|
294
|
+
/** Unknown or unspecified error */
|
|
295
|
+
UNKNOWN = "unknown"
|
|
296
|
+
}
|
|
273
297
|
/**
|
|
274
298
|
* Full connection status including state, client ID, and any error
|
|
275
299
|
*/
|
|
@@ -278,8 +302,10 @@ interface ExternalConnection {
|
|
|
278
302
|
state: ExternalConnectionState;
|
|
279
303
|
/** Client identifier (derived from public key) */
|
|
280
304
|
clientId: string | null;
|
|
281
|
-
/** Error
|
|
282
|
-
|
|
305
|
+
/** Error code for i18n (use this for translations) */
|
|
306
|
+
errorCode: ExternalConnectionErrorCode;
|
|
307
|
+
/** Error message (original message, for logging/debugging) */
|
|
308
|
+
errorMessage: string | null;
|
|
283
309
|
}
|
|
284
310
|
/**
|
|
285
311
|
* Check if external client connection state indicates an active connection
|
|
@@ -370,4 +396,4 @@ declare class HaexVaultSdkError extends Error {
|
|
|
370
396
|
};
|
|
371
397
|
}
|
|
372
398
|
|
|
373
|
-
export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, getTableName as F, ExternalConnectionState as G, type HaexHubConfig as H,
|
|
399
|
+
export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, getTableName as F, ExternalConnectionState as G, type HaexHubConfig as H, ExternalConnectionErrorCode as I, isExternalClientConnected as J, canExternalClientSendRequests as K, HaexVaultSdkError as L, type Migration as M, HAEXTENSION_EVENTS as N, type HaextensionEvent as O, type PermissionResponse as P, EXTERNAL_EVENTS as Q, type ExternalEvent as R, type SearchResult as S, TABLE_SEPARATOR as T, type WebRequestOptions as W, type ExtensionInfo as a, type MigrationResult as b, type WebResponse as c, type DatabasePermissionRequest as d, type ExternalRequestHandler as e, type ExternalResponse as f, type EventCallback as g, type HaexHubRequest as h, type HaexHubResponse as i, type HaexHubEvent as j, type DatabasePermission as k, type DatabaseQueryParams as l, type DatabaseExecuteParams as m, type DatabaseTableInfo as n, type DatabaseColumnInfo as o, type SearchQuery as p, type SearchRequestEvent as q, type ExternalRequestEvent as r, type ExternalRequest as s, type AuthorizedClient as t, type PendingAuthorization as u, type ExternalAuthDecision as v, type ExternalConnection as w, PermissionStatus as x, ErrorCode as y, DEFAULT_TIMEOUT as z };
|
|
@@ -270,6 +270,30 @@ declare enum ExternalConnectionState {
|
|
|
270
270
|
/** Connected and authorized to communicate */
|
|
271
271
|
PAIRED = "paired"
|
|
272
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Error codes for external client connections.
|
|
275
|
+
* Used to identify specific error conditions for i18n in the frontend.
|
|
276
|
+
*/
|
|
277
|
+
declare enum ExternalConnectionErrorCode {
|
|
278
|
+
/** No error */
|
|
279
|
+
NONE = "none",
|
|
280
|
+
/** Client is not authorized (rejected or not yet approved) */
|
|
281
|
+
CLIENT_NOT_AUTHORIZED = "client_not_authorized",
|
|
282
|
+
/** Client was blocked by the user */
|
|
283
|
+
CLIENT_BLOCKED = "client_blocked",
|
|
284
|
+
/** Connection to haex-vault failed (not running or network error) */
|
|
285
|
+
CONNECTION_FAILED = "connection_failed",
|
|
286
|
+
/** Connection timed out */
|
|
287
|
+
CONNECTION_TIMEOUT = "connection_timeout",
|
|
288
|
+
/** WebSocket connection was closed unexpectedly */
|
|
289
|
+
CONNECTION_CLOSED = "connection_closed",
|
|
290
|
+
/** Failed to decrypt message (invalid key or corrupted data) */
|
|
291
|
+
DECRYPTION_FAILED = "decryption_failed",
|
|
292
|
+
/** Invalid message format received */
|
|
293
|
+
INVALID_MESSAGE = "invalid_message",
|
|
294
|
+
/** Unknown or unspecified error */
|
|
295
|
+
UNKNOWN = "unknown"
|
|
296
|
+
}
|
|
273
297
|
/**
|
|
274
298
|
* Full connection status including state, client ID, and any error
|
|
275
299
|
*/
|
|
@@ -278,8 +302,10 @@ interface ExternalConnection {
|
|
|
278
302
|
state: ExternalConnectionState;
|
|
279
303
|
/** Client identifier (derived from public key) */
|
|
280
304
|
clientId: string | null;
|
|
281
|
-
/** Error
|
|
282
|
-
|
|
305
|
+
/** Error code for i18n (use this for translations) */
|
|
306
|
+
errorCode: ExternalConnectionErrorCode;
|
|
307
|
+
/** Error message (original message, for logging/debugging) */
|
|
308
|
+
errorMessage: string | null;
|
|
283
309
|
}
|
|
284
310
|
/**
|
|
285
311
|
* Check if external client connection state indicates an active connection
|
|
@@ -370,4 +396,4 @@ declare class HaexVaultSdkError extends Error {
|
|
|
370
396
|
};
|
|
371
397
|
}
|
|
372
398
|
|
|
373
|
-
export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, getTableName as F, ExternalConnectionState as G, type HaexHubConfig as H,
|
|
399
|
+
export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, getTableName as F, ExternalConnectionState as G, type HaexHubConfig as H, ExternalConnectionErrorCode as I, isExternalClientConnected as J, canExternalClientSendRequests as K, HaexVaultSdkError as L, type Migration as M, HAEXTENSION_EVENTS as N, type HaextensionEvent as O, type PermissionResponse as P, EXTERNAL_EVENTS as Q, type ExternalEvent as R, type SearchResult as S, TABLE_SEPARATOR as T, type WebRequestOptions as W, type ExtensionInfo as a, type MigrationResult as b, type WebResponse as c, type DatabasePermissionRequest as d, type ExternalRequestHandler as e, type ExternalResponse as f, type EventCallback as g, type HaexHubRequest as h, type HaexHubResponse as i, type HaexHubEvent as j, type DatabasePermission as k, type DatabaseQueryParams as l, type DatabaseExecuteParams as m, type DatabaseTableInfo as n, type DatabaseColumnInfo as o, type SearchQuery as p, type SearchRequestEvent as q, type ExternalRequestEvent as r, type ExternalRequest as s, type AuthorizedClient as t, type PendingAuthorization as u, type ExternalAuthDecision as v, type ExternalConnection as w, PermissionStatus as x, ErrorCode as y, DEFAULT_TIMEOUT as z };
|
package/dist/vue.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as HaexVaultClient, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultClient, S as StorageAPI } from './client-Bw04hBmE.mjs';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
|
-
import { H as HaexHubConfig } from './types-
|
|
4
|
+
import { H as HaexHubConfig } from './types-mMVOhsmm.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Vue 3 composable for HaexHub SDK
|
package/dist/vue.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as HaexVaultClient, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultClient, S as StorageAPI } from './client-CJC-_fwd.js';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
|
-
import { H as HaexHubConfig } from './types-
|
|
4
|
+
import { H as HaexHubConfig } from './types-mMVOhsmm.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Vue 3 composable for HaexHub SDK
|