@haex-space/vault-sdk 2.3.15 → 2.4.0

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.
@@ -54,7 +54,12 @@ interface HaexHubRequest {
54
54
  interface HaexHubResponse<T = unknown> {
55
55
  id: string;
56
56
  result?: T;
57
- error?: HaexHubError;
57
+ error?: HaexVaultSdkErrorData;
58
+ }
59
+ interface HaexVaultSdkErrorData {
60
+ code: ErrorCode;
61
+ message: string;
62
+ details?: Record<string, unknown>;
58
63
  }
59
64
  interface ExtensionInfo {
60
65
  publicKey: string;
@@ -252,12 +257,7 @@ declare enum ErrorCode {
252
257
  DATABASE_ERROR = "DATABASE_ERROR",
253
258
  WEB_ERROR = "WEB_ERROR"
254
259
  }
255
- interface HaexHubError {
256
- code: ErrorCode;
257
- message: string;
258
- details?: Record<string, unknown>;
259
- }
260
- declare class HaexHubError extends Error {
260
+ declare class HaexVaultSdkError extends Error {
261
261
  code: ErrorCode;
262
262
  messageKey: string;
263
263
  details?: Record<string, unknown> | undefined;
@@ -275,4 +275,4 @@ declare class HaexHubError extends Error {
275
275
  };
276
276
  }
277
277
 
278
- export { type ApplicationContext as A, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, type HaexHubConfig as H, type Migration as M, type PermissionResponse as P, 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, PermissionStatus as t, ErrorCode as u, DEFAULT_TIMEOUT as v, getTableName as w, HaexHubError as x, HAEXTENSION_EVENTS as y, type HaextensionEvent as z };
278
+ export { type ApplicationContext as A, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, type HaexHubConfig as H, type Migration as M, type PermissionResponse as P, 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, PermissionStatus as t, ErrorCode as u, DEFAULT_TIMEOUT as v, getTableName as w, HaexVaultSdkError as x, HAEXTENSION_EVENTS as y, type HaextensionEvent as z };
@@ -54,7 +54,12 @@ interface HaexHubRequest {
54
54
  interface HaexHubResponse<T = unknown> {
55
55
  id: string;
56
56
  result?: T;
57
- error?: HaexHubError;
57
+ error?: HaexVaultSdkErrorData;
58
+ }
59
+ interface HaexVaultSdkErrorData {
60
+ code: ErrorCode;
61
+ message: string;
62
+ details?: Record<string, unknown>;
58
63
  }
59
64
  interface ExtensionInfo {
60
65
  publicKey: string;
@@ -252,12 +257,7 @@ declare enum ErrorCode {
252
257
  DATABASE_ERROR = "DATABASE_ERROR",
253
258
  WEB_ERROR = "WEB_ERROR"
254
259
  }
255
- interface HaexHubError {
256
- code: ErrorCode;
257
- message: string;
258
- details?: Record<string, unknown>;
259
- }
260
- declare class HaexHubError extends Error {
260
+ declare class HaexVaultSdkError extends Error {
261
261
  code: ErrorCode;
262
262
  messageKey: string;
263
263
  details?: Record<string, unknown> | undefined;
@@ -275,4 +275,4 @@ declare class HaexHubError extends Error {
275
275
  };
276
276
  }
277
277
 
278
- export { type ApplicationContext as A, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, type HaexHubConfig as H, type Migration as M, type PermissionResponse as P, 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, PermissionStatus as t, ErrorCode as u, DEFAULT_TIMEOUT as v, getTableName as w, HaexHubError as x, HAEXTENSION_EVENTS as y, type HaextensionEvent as z };
278
+ export { type ApplicationContext as A, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, type HaexHubConfig as H, type Migration as M, type PermissionResponse as P, 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, PermissionStatus as t, ErrorCode as u, DEFAULT_TIMEOUT as v, getTableName as w, HaexVaultSdkError as x, HAEXTENSION_EVENTS as y, type HaextensionEvent as z };
package/dist/vue.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { H as HaexVaultClient, S as StorageAPI } from './client-8eGxojZ1.mjs';
1
+ import { H as HaexVaultClient, S as StorageAPI } from './client-ClYpUDoI.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-DBF83o_W.mjs';
4
+ import { H as HaexHubConfig } from './types-CmPqOcLB.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-ChH7wiuU.js';
1
+ import { H as HaexVaultClient, S as StorageAPI } from './client-BSdAg7D1.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-DBF83o_W.js';
4
+ import { H as HaexHubConfig } from './types-CmPqOcLB.js';
5
5
 
6
6
  /**
7
7
  * Vue 3 composable for HaexHub SDK