@haex-space/vault-sdk 2.5.95 → 2.5.98
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-DwGxAKzx.d.mts → client-BLXpRcmk.d.mts} +1 -1
- package/dist/{client-s83JV-k0.d.ts → client-BZo44ayx.d.ts} +1 -1
- package/dist/index.d.mts +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- 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-D4ft4_oG.d.mts → types-CtGyqrRe.d.mts} +37 -1
- package/dist/{types-D4ft4_oG.d.ts → types-CtGyqrRe.d.ts} +37 -1
- 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
|
@@ -80,6 +80,12 @@ interface ExtensionInfo {
|
|
|
80
80
|
displayName?: string;
|
|
81
81
|
namespace?: string;
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Runtime mode for extension instances.
|
|
85
|
+
* - iframe: Extension runs in an iframe within the main window (all platforms)
|
|
86
|
+
* - webview: Extension runs in a native WebView window (desktop only)
|
|
87
|
+
*/
|
|
88
|
+
type ExtensionRuntimeMode = 'iframe' | 'webview';
|
|
83
89
|
interface ApplicationContext {
|
|
84
90
|
theme: "light" | "dark" | "system";
|
|
85
91
|
locale: string;
|
|
@@ -175,6 +181,18 @@ interface SearchRequestEvent extends HaexHubEvent {
|
|
|
175
181
|
* File change type from native file watcher
|
|
176
182
|
*/
|
|
177
183
|
type FileChangeType = 'created' | 'modified' | 'removed' | 'any';
|
|
184
|
+
/**
|
|
185
|
+
* File change payload from native file watcher (Tauri event payload).
|
|
186
|
+
* This is the raw payload sent from Rust, without the event wrapper.
|
|
187
|
+
*/
|
|
188
|
+
interface FileChangePayload {
|
|
189
|
+
/** The sync rule ID that was affected */
|
|
190
|
+
ruleId: string;
|
|
191
|
+
/** Type of change */
|
|
192
|
+
changeType: FileChangeType;
|
|
193
|
+
/** Relative path of the changed file (if available) */
|
|
194
|
+
path?: string;
|
|
195
|
+
}
|
|
178
196
|
/**
|
|
179
197
|
* File change event from native file watcher
|
|
180
198
|
*/
|
|
@@ -198,6 +216,14 @@ interface SyncTablesUpdatedEvent extends HaexHubEvent {
|
|
|
198
216
|
tables: string[];
|
|
199
217
|
};
|
|
200
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* Result from filtering sync tables by extension permissions.
|
|
221
|
+
* Maps extension ID to the list of table names they are allowed to see.
|
|
222
|
+
*/
|
|
223
|
+
interface FilteredSyncTablesResult {
|
|
224
|
+
/** Map of extension_id -> list of tables they are allowed to see */
|
|
225
|
+
extensions: Record<string, string[]>;
|
|
226
|
+
}
|
|
201
227
|
/**
|
|
202
228
|
* External request from an authorized client (browser extension, CLI, server, etc.)
|
|
203
229
|
* These requests come through the WebSocket bridge and are routed to the appropriate extension.
|
|
@@ -219,6 +245,16 @@ interface ExternalRequest {
|
|
|
219
245
|
/** Request payload (extension-specific) */
|
|
220
246
|
payload: Record<string, unknown>;
|
|
221
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* External request payload from Tauri event (includes extension target info).
|
|
250
|
+
* This is sent from Rust when an external client makes a request.
|
|
251
|
+
*/
|
|
252
|
+
interface ExternalRequestPayload extends ExternalRequest {
|
|
253
|
+
/** Target extension's public key */
|
|
254
|
+
extensionPublicKey: string;
|
|
255
|
+
/** Target extension's name */
|
|
256
|
+
extensionName: string;
|
|
257
|
+
}
|
|
222
258
|
/**
|
|
223
259
|
* External request response (sent back to the client)
|
|
224
260
|
*/
|
|
@@ -448,4 +484,4 @@ declare class HaexVaultSdkError extends Error {
|
|
|
448
484
|
};
|
|
449
485
|
}
|
|
450
486
|
|
|
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
|
|
487
|
+
export { type HaextensionEvent as $, 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 FileChangePayload as U, type SyncTablesUpdatedEvent as V, type WebRequestOptions as W, type FilteredSyncTablesResult as X, type ExtensionRuntimeMode as Y, type ExternalRequestPayload as Z, HAEXTENSION_EVENTS as _, type ExtensionInfo as a, EXTERNAL_EVENTS as a0, type ExternalEvent as a1, 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 };
|
|
@@ -80,6 +80,12 @@ interface ExtensionInfo {
|
|
|
80
80
|
displayName?: string;
|
|
81
81
|
namespace?: string;
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Runtime mode for extension instances.
|
|
85
|
+
* - iframe: Extension runs in an iframe within the main window (all platforms)
|
|
86
|
+
* - webview: Extension runs in a native WebView window (desktop only)
|
|
87
|
+
*/
|
|
88
|
+
type ExtensionRuntimeMode = 'iframe' | 'webview';
|
|
83
89
|
interface ApplicationContext {
|
|
84
90
|
theme: "light" | "dark" | "system";
|
|
85
91
|
locale: string;
|
|
@@ -175,6 +181,18 @@ interface SearchRequestEvent extends HaexHubEvent {
|
|
|
175
181
|
* File change type from native file watcher
|
|
176
182
|
*/
|
|
177
183
|
type FileChangeType = 'created' | 'modified' | 'removed' | 'any';
|
|
184
|
+
/**
|
|
185
|
+
* File change payload from native file watcher (Tauri event payload).
|
|
186
|
+
* This is the raw payload sent from Rust, without the event wrapper.
|
|
187
|
+
*/
|
|
188
|
+
interface FileChangePayload {
|
|
189
|
+
/** The sync rule ID that was affected */
|
|
190
|
+
ruleId: string;
|
|
191
|
+
/** Type of change */
|
|
192
|
+
changeType: FileChangeType;
|
|
193
|
+
/** Relative path of the changed file (if available) */
|
|
194
|
+
path?: string;
|
|
195
|
+
}
|
|
178
196
|
/**
|
|
179
197
|
* File change event from native file watcher
|
|
180
198
|
*/
|
|
@@ -198,6 +216,14 @@ interface SyncTablesUpdatedEvent extends HaexHubEvent {
|
|
|
198
216
|
tables: string[];
|
|
199
217
|
};
|
|
200
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* Result from filtering sync tables by extension permissions.
|
|
221
|
+
* Maps extension ID to the list of table names they are allowed to see.
|
|
222
|
+
*/
|
|
223
|
+
interface FilteredSyncTablesResult {
|
|
224
|
+
/** Map of extension_id -> list of tables they are allowed to see */
|
|
225
|
+
extensions: Record<string, string[]>;
|
|
226
|
+
}
|
|
201
227
|
/**
|
|
202
228
|
* External request from an authorized client (browser extension, CLI, server, etc.)
|
|
203
229
|
* These requests come through the WebSocket bridge and are routed to the appropriate extension.
|
|
@@ -219,6 +245,16 @@ interface ExternalRequest {
|
|
|
219
245
|
/** Request payload (extension-specific) */
|
|
220
246
|
payload: Record<string, unknown>;
|
|
221
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* External request payload from Tauri event (includes extension target info).
|
|
250
|
+
* This is sent from Rust when an external client makes a request.
|
|
251
|
+
*/
|
|
252
|
+
interface ExternalRequestPayload extends ExternalRequest {
|
|
253
|
+
/** Target extension's public key */
|
|
254
|
+
extensionPublicKey: string;
|
|
255
|
+
/** Target extension's name */
|
|
256
|
+
extensionName: string;
|
|
257
|
+
}
|
|
222
258
|
/**
|
|
223
259
|
* External request response (sent back to the client)
|
|
224
260
|
*/
|
|
@@ -448,4 +484,4 @@ declare class HaexVaultSdkError extends Error {
|
|
|
448
484
|
};
|
|
449
485
|
}
|
|
450
486
|
|
|
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
|
|
487
|
+
export { type HaextensionEvent as $, 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 FileChangePayload as U, type SyncTablesUpdatedEvent as V, type WebRequestOptions as W, type FilteredSyncTablesResult as X, type ExtensionRuntimeMode as Y, type ExternalRequestPayload as Z, HAEXTENSION_EVENTS as _, type ExtensionInfo as a, EXTERNAL_EVENTS as a0, type ExternalEvent as a1, 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-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-BLXpRcmk.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-CtGyqrRe.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-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-BZo44ayx.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-CtGyqrRe.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Vue 3 composable for HaexVault SDK
|