@haex-space/vault-sdk 2.5.81 → 2.5.86

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.
@@ -19,6 +19,8 @@ declare const HAEXTENSION_EVENTS: {
19
19
  readonly SEARCH_REQUEST: "haextension:search:request";
20
20
  /** File system change detected (from native file watcher) */
21
21
  readonly FILE_CHANGED: "filesync:file-changed";
22
+ /** Tables have been updated via sync (CRDT pull from server) */
23
+ readonly SYNC_TABLES_UPDATED: "haextension:sync:tables-updated";
22
24
  };
23
25
  type HaextensionEvent = typeof HAEXTENSION_EVENTS[keyof typeof HAEXTENSION_EVENTS];
24
26
  /**
@@ -185,6 +187,17 @@ interface FileChangeEvent extends HaexHubEvent {
185
187
  /** Relative path of the changed file (if available) */
186
188
  path?: string;
187
189
  }
190
+ /**
191
+ * Sync tables updated event (sent after CRDT pull from server)
192
+ * Extensions can listen for this to reload their data when remote changes arrive.
193
+ */
194
+ interface SyncTablesUpdatedEvent extends HaexHubEvent {
195
+ type: typeof HAEXTENSION_EVENTS.SYNC_TABLES_UPDATED;
196
+ data: {
197
+ /** List of table names that were updated */
198
+ tables: string[];
199
+ };
200
+ }
188
201
  /**
189
202
  * External request from an authorized client (browser extension, CLI, server, etc.)
190
203
  * These requests come through the WebSocket bridge and are routed to the appropriate extension.
@@ -435,4 +448,4 @@ declare class HaexVaultSdkError extends Error {
435
448
  };
436
449
  }
437
450
 
438
- export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, DEFAULT_TIMEOUT as F, getTableName as G, type HaexHubConfig as H, ExternalConnectionState as I, ExternalConnectionErrorCode as J, isExternalClientConnected as K, canExternalClientSendRequests as L, type Migration as M, HaexVaultSdkError as N, type FileChangeEvent as O, type PermissionResponse as P, type FileChangeType as Q, type RequestedExtension as R, type SearchResult as S, TABLE_SEPARATOR as T, HAEXTENSION_EVENTS as U, type HaextensionEvent as V, type WebRequestOptions as W, EXTERNAL_EVENTS as X, type ExternalEvent as Y, 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 SessionAuthorization as w, type ExternalConnection as x, PermissionStatus as y, ErrorCode as z };
451
+ export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, DEFAULT_TIMEOUT as F, getTableName as G, type HaexHubConfig as H, ExternalConnectionState as I, ExternalConnectionErrorCode as J, isExternalClientConnected as K, canExternalClientSendRequests as L, type Migration as M, HaexVaultSdkError as N, type FileChangeEvent as O, type PermissionResponse as P, type FileChangeType as Q, type RequestedExtension as R, type SearchResult as S, TABLE_SEPARATOR as T, type SyncTablesUpdatedEvent as U, HAEXTENSION_EVENTS as V, type WebRequestOptions as W, type HaextensionEvent as X, EXTERNAL_EVENTS as Y, type ExternalEvent as Z, 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 SessionAuthorization as w, type ExternalConnection as x, PermissionStatus as y, ErrorCode as z };
@@ -19,6 +19,8 @@ declare const HAEXTENSION_EVENTS: {
19
19
  readonly SEARCH_REQUEST: "haextension:search:request";
20
20
  /** File system change detected (from native file watcher) */
21
21
  readonly FILE_CHANGED: "filesync:file-changed";
22
+ /** Tables have been updated via sync (CRDT pull from server) */
23
+ readonly SYNC_TABLES_UPDATED: "haextension:sync:tables-updated";
22
24
  };
23
25
  type HaextensionEvent = typeof HAEXTENSION_EVENTS[keyof typeof HAEXTENSION_EVENTS];
24
26
  /**
@@ -185,6 +187,17 @@ interface FileChangeEvent extends HaexHubEvent {
185
187
  /** Relative path of the changed file (if available) */
186
188
  path?: string;
187
189
  }
190
+ /**
191
+ * Sync tables updated event (sent after CRDT pull from server)
192
+ * Extensions can listen for this to reload their data when remote changes arrive.
193
+ */
194
+ interface SyncTablesUpdatedEvent extends HaexHubEvent {
195
+ type: typeof HAEXTENSION_EVENTS.SYNC_TABLES_UPDATED;
196
+ data: {
197
+ /** List of table names that were updated */
198
+ tables: string[];
199
+ };
200
+ }
188
201
  /**
189
202
  * External request from an authorized client (browser extension, CLI, server, etc.)
190
203
  * These requests come through the WebSocket bridge and are routed to the appropriate extension.
@@ -435,4 +448,4 @@ declare class HaexVaultSdkError extends Error {
435
448
  };
436
449
  }
437
450
 
438
- export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, DEFAULT_TIMEOUT as F, getTableName as G, type HaexHubConfig as H, ExternalConnectionState as I, ExternalConnectionErrorCode as J, isExternalClientConnected as K, canExternalClientSendRequests as L, type Migration as M, HaexVaultSdkError as N, type FileChangeEvent as O, type PermissionResponse as P, type FileChangeType as Q, type RequestedExtension as R, type SearchResult as S, TABLE_SEPARATOR as T, HAEXTENSION_EVENTS as U, type HaextensionEvent as V, type WebRequestOptions as W, EXTERNAL_EVENTS as X, type ExternalEvent as Y, 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 SessionAuthorization as w, type ExternalConnection as x, PermissionStatus as y, ErrorCode as z };
451
+ export { type ApplicationContext as A, type BlockedClient as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, DEFAULT_TIMEOUT as F, getTableName as G, type HaexHubConfig as H, ExternalConnectionState as I, ExternalConnectionErrorCode as J, isExternalClientConnected as K, canExternalClientSendRequests as L, type Migration as M, HaexVaultSdkError as N, type FileChangeEvent as O, type PermissionResponse as P, type FileChangeType as Q, type RequestedExtension as R, type SearchResult as S, TABLE_SEPARATOR as T, type SyncTablesUpdatedEvent as U, HAEXTENSION_EVENTS as V, type WebRequestOptions as W, type HaextensionEvent as X, EXTERNAL_EVENTS as Y, type ExternalEvent as Z, 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 SessionAuthorization as w, type ExternalConnection as x, PermissionStatus as y, ErrorCode as z };
package/dist/vue.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { H as HaexVaultSdk, S as StorageAPI } from './client-C0fkm4FE.mjs';
1
+ import { H as HaexVaultSdk, S as StorageAPI } from './client-Y1a7Vkgk.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-CS-ggsXY.mjs';
4
+ import { H as HaexHubConfig } from './types-D4ft4_oG.mjs';
5
5
 
6
6
  /**
7
7
  * Vue 3 composable for HaexVault SDK
package/dist/vue.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { H as HaexVaultSdk, S as StorageAPI } from './client-C8JtjQzm.js';
1
+ import { H as HaexVaultSdk, S as StorageAPI } from './client-DGSamcol.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-CS-ggsXY.js';
4
+ import { H as HaexHubConfig } from './types-D4ft4_oG.js';
5
5
 
6
6
  /**
7
7
  * Vue 3 composable for HaexVault SDK
package/dist/vue.js CHANGED
@@ -339,7 +339,9 @@ var HAEXTENSION_EVENTS = {
339
339
  /** Search request from HaexHub */
340
340
  SEARCH_REQUEST: "haextension:search:request",
341
341
  /** File system change detected (from native file watcher) */
342
- FILE_CHANGED: "filesync:file-changed"
342
+ FILE_CHANGED: "filesync:file-changed",
343
+ /** Tables have been updated via sync (CRDT pull from server) */
344
+ SYNC_TABLES_UPDATED: "haextension:sync:tables-updated"
343
345
  };
344
346
  var EXTERNAL_EVENTS = {
345
347
  /** External request from authorized client */