@haex-space/vault-sdk 2.5.109 → 2.5.111
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-C3UTSqYM.d.mts → client-8dlKVNDZ.d.ts} +183 -2
- package/dist/{client-CRWI0t-2.d.ts → client-DFGx115H.d.mts} +183 -2
- package/dist/index.d.mts +52 -5
- package/dist/index.d.ts +52 -5
- package/dist/index.js +28 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -26
- 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-DwLhX7mx.d.mts → types-gfc9eCL4.d.mts} +1 -227
- package/dist/{types-DwLhX7mx.d.ts → types-gfc9eCL4.d.ts} +1 -227
- 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
|
@@ -274,186 +274,6 @@ interface FilteredSyncTablesResult {
|
|
|
274
274
|
/** Map of extension_id -> list of tables they are allowed to see */
|
|
275
275
|
extensions: Record<string, string[]>;
|
|
276
276
|
}
|
|
277
|
-
/**
|
|
278
|
-
* External request from an authorized client (browser extension, CLI, server, etc.)
|
|
279
|
-
* These requests come through the WebSocket bridge and are routed to the appropriate extension.
|
|
280
|
-
*/
|
|
281
|
-
interface ExternalRequestEvent extends HaexHubEvent {
|
|
282
|
-
type: typeof EXTERNAL_EVENTS.REQUEST;
|
|
283
|
-
data: ExternalRequest;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* External request payload
|
|
287
|
-
*/
|
|
288
|
-
interface ExternalRequest {
|
|
289
|
-
/** Unique request ID for response correlation */
|
|
290
|
-
requestId: string;
|
|
291
|
-
/** Client's public key (Base64 SPKI format, used as identifier) */
|
|
292
|
-
publicKey: string;
|
|
293
|
-
/** Action/method to perform (extension-specific) */
|
|
294
|
-
action: string;
|
|
295
|
-
/** Request payload (extension-specific) */
|
|
296
|
-
payload: Record<string, unknown>;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* External request payload from Tauri event (includes extension target info).
|
|
300
|
-
* This is sent from Rust when an external client makes a request.
|
|
301
|
-
*/
|
|
302
|
-
interface ExternalRequestPayload extends ExternalRequest {
|
|
303
|
-
/** Target extension's public key */
|
|
304
|
-
extensionPublicKey: string;
|
|
305
|
-
/** Target extension's name */
|
|
306
|
-
extensionName: string;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* External request response (sent back to the client)
|
|
310
|
-
*/
|
|
311
|
-
interface ExternalResponse {
|
|
312
|
-
/** Request ID for correlation */
|
|
313
|
-
requestId: string;
|
|
314
|
-
/** Whether the request was successful */
|
|
315
|
-
success: boolean;
|
|
316
|
-
/** Response data (if successful) */
|
|
317
|
-
data?: unknown;
|
|
318
|
-
/** Error message (if failed) */
|
|
319
|
-
error?: string;
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Handler function type for external requests
|
|
323
|
-
*/
|
|
324
|
-
type ExternalRequestHandler = (request: ExternalRequest) => Promise<ExternalResponse> | ExternalResponse;
|
|
325
|
-
/**
|
|
326
|
-
* An authorized external client stored in the database
|
|
327
|
-
*/
|
|
328
|
-
interface AuthorizedClient {
|
|
329
|
-
/** Row ID */
|
|
330
|
-
id: string;
|
|
331
|
-
/** Unique client identifier (public key fingerprint) */
|
|
332
|
-
clientId: string;
|
|
333
|
-
/** Human-readable client name */
|
|
334
|
-
clientName: string;
|
|
335
|
-
/** Client's public key (base64) */
|
|
336
|
-
publicKey: string;
|
|
337
|
-
/** Extension ID this client can access */
|
|
338
|
-
extensionId: string;
|
|
339
|
-
/** When the client was authorized (ISO 8601) */
|
|
340
|
-
authorizedAt: string | null;
|
|
341
|
-
/** Last time the client connected (ISO 8601) */
|
|
342
|
-
lastSeen: string | null;
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* A blocked external client stored in the database
|
|
346
|
-
*/
|
|
347
|
-
interface BlockedClient {
|
|
348
|
-
/** Row ID */
|
|
349
|
-
id: string;
|
|
350
|
-
/** Unique client identifier (public key fingerprint) */
|
|
351
|
-
clientId: string;
|
|
352
|
-
/** Human-readable client name */
|
|
353
|
-
clientName: string;
|
|
354
|
-
/** Client's public key (base64) */
|
|
355
|
-
publicKey: string;
|
|
356
|
-
/** When the client was blocked (ISO 8601) */
|
|
357
|
-
blockedAt: string | null;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Extension requested by an external client
|
|
361
|
-
*/
|
|
362
|
-
interface RequestedExtension {
|
|
363
|
-
/** Extension name (e.g., "haex-pass") */
|
|
364
|
-
name: string;
|
|
365
|
-
/** Extension's public key (hex string from manifest) */
|
|
366
|
-
extensionPublicKey: string;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Pending authorization request waiting for user approval
|
|
370
|
-
*/
|
|
371
|
-
interface PendingAuthorization {
|
|
372
|
-
/** Unique client identifier */
|
|
373
|
-
clientId: string;
|
|
374
|
-
/** Human-readable client name */
|
|
375
|
-
clientName: string;
|
|
376
|
-
/** Client's public key (base64) */
|
|
377
|
-
publicKey: string;
|
|
378
|
-
/** Extensions the client wants to access (pre-selected in authorization dialog) */
|
|
379
|
-
requestedExtensions: RequestedExtension[];
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Decision type for external authorization prompts
|
|
383
|
-
*/
|
|
384
|
-
type ExternalAuthDecision = 'allow' | 'deny';
|
|
385
|
-
/**
|
|
386
|
-
* Session-based authorization entry (for "allow once" authorizations)
|
|
387
|
-
* These are stored in-memory and cleared when haex-vault restarts.
|
|
388
|
-
*/
|
|
389
|
-
interface SessionAuthorization {
|
|
390
|
-
/** Unique client identifier (public key fingerprint) */
|
|
391
|
-
clientId: string;
|
|
392
|
-
/** Extension ID this client can access */
|
|
393
|
-
extensionId: string;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Connection state for external clients connecting to haex-vault via WebSocket.
|
|
397
|
-
* Used by browser extensions, CLI tools, servers, and other external clients.
|
|
398
|
-
*/
|
|
399
|
-
declare enum ExternalConnectionState {
|
|
400
|
-
/** Not connected to haex-vault */
|
|
401
|
-
DISCONNECTED = "disconnected",
|
|
402
|
-
/** Attempting to establish connection */
|
|
403
|
-
CONNECTING = "connecting",
|
|
404
|
-
/** WebSocket connected but not yet authorized */
|
|
405
|
-
CONNECTED = "connected",
|
|
406
|
-
/** Connected and waiting for user approval in haex-vault */
|
|
407
|
-
PENDING_APPROVAL = "pending_approval",
|
|
408
|
-
/** Connected and authorized to communicate */
|
|
409
|
-
PAIRED = "paired"
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* Error codes for external client connections.
|
|
413
|
-
* Used to identify specific error conditions for i18n in the frontend.
|
|
414
|
-
*/
|
|
415
|
-
declare enum ExternalConnectionErrorCode {
|
|
416
|
-
/** No error */
|
|
417
|
-
NONE = "none",
|
|
418
|
-
/** Client is not authorized (rejected or not yet approved) */
|
|
419
|
-
CLIENT_NOT_AUTHORIZED = "client_not_authorized",
|
|
420
|
-
/** Client was blocked by the user */
|
|
421
|
-
CLIENT_BLOCKED = "client_blocked",
|
|
422
|
-
/** Connection to haex-vault failed (not running or network error) */
|
|
423
|
-
CONNECTION_FAILED = "connection_failed",
|
|
424
|
-
/** Connection timed out */
|
|
425
|
-
CONNECTION_TIMEOUT = "connection_timeout",
|
|
426
|
-
/** WebSocket connection was closed unexpectedly */
|
|
427
|
-
CONNECTION_CLOSED = "connection_closed",
|
|
428
|
-
/** Failed to decrypt message (invalid key or corrupted data) */
|
|
429
|
-
DECRYPTION_FAILED = "decryption_failed",
|
|
430
|
-
/** Invalid message format received */
|
|
431
|
-
INVALID_MESSAGE = "invalid_message",
|
|
432
|
-
/** Unknown or unspecified error */
|
|
433
|
-
UNKNOWN = "unknown"
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Full connection status including state, client ID, and any error
|
|
437
|
-
*/
|
|
438
|
-
interface ExternalConnection {
|
|
439
|
-
/** Current connection state */
|
|
440
|
-
state: ExternalConnectionState;
|
|
441
|
-
/** Client identifier (derived from public key) */
|
|
442
|
-
clientId: string | null;
|
|
443
|
-
/** Error code for i18n (use this for translations) */
|
|
444
|
-
errorCode: ExternalConnectionErrorCode;
|
|
445
|
-
/** Error message (original message, for logging/debugging) */
|
|
446
|
-
errorMessage: string | null;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Check if external client connection state indicates an active connection
|
|
450
|
-
* (connected, pending approval, or paired)
|
|
451
|
-
*/
|
|
452
|
-
declare function isExternalClientConnected(state: ExternalConnectionState): boolean;
|
|
453
|
-
/**
|
|
454
|
-
* Check if external client can send requests (only when paired/authorized)
|
|
455
|
-
*/
|
|
456
|
-
declare function canExternalClientSendRequests(state: ExternalConnectionState): boolean;
|
|
457
277
|
type EventCallback = (event: HaexHubEvent) => void;
|
|
458
278
|
interface ExtensionManifest {
|
|
459
279
|
name: string;
|
|
@@ -533,51 +353,5 @@ declare class HaexVaultSdkError extends Error {
|
|
|
533
353
|
details: Record<string, unknown> | undefined;
|
|
534
354
|
};
|
|
535
355
|
}
|
|
536
|
-
type SpaceRole = 'admin' | 'member' | 'viewer';
|
|
537
|
-
interface SharedSpace {
|
|
538
|
-
id: string;
|
|
539
|
-
ownerId: string;
|
|
540
|
-
encryptedName: string;
|
|
541
|
-
nameNonce: string;
|
|
542
|
-
currentKeyGeneration: number;
|
|
543
|
-
role: SpaceRole;
|
|
544
|
-
canInvite: boolean;
|
|
545
|
-
createdAt: string;
|
|
546
|
-
}
|
|
547
|
-
interface SpaceMemberInfo {
|
|
548
|
-
publicKey: string;
|
|
549
|
-
label: string;
|
|
550
|
-
role: SpaceRole;
|
|
551
|
-
canInvite: boolean;
|
|
552
|
-
invitedBy: string | null;
|
|
553
|
-
joinedAt: string;
|
|
554
|
-
}
|
|
555
|
-
interface SpaceKeyGrantInfo {
|
|
556
|
-
spaceId: string;
|
|
557
|
-
generation: number;
|
|
558
|
-
encryptedSpaceKey: string;
|
|
559
|
-
keyNonce: string;
|
|
560
|
-
ephemeralPublicKey: string;
|
|
561
|
-
}
|
|
562
|
-
interface SpaceInvite {
|
|
563
|
-
spaceId: string;
|
|
564
|
-
serverUrl: string;
|
|
565
|
-
spaceName: string;
|
|
566
|
-
accessToken: string;
|
|
567
|
-
encryptedSpaceKey: string;
|
|
568
|
-
keyNonce: string;
|
|
569
|
-
ephemeralPublicKey: string;
|
|
570
|
-
generation: number;
|
|
571
|
-
role: SpaceRole;
|
|
572
|
-
}
|
|
573
|
-
interface SpaceAccessTokenInfo {
|
|
574
|
-
id: string;
|
|
575
|
-
publicKey: string;
|
|
576
|
-
role: SpaceRole;
|
|
577
|
-
label: string | null;
|
|
578
|
-
revoked: boolean;
|
|
579
|
-
createdAt: string;
|
|
580
|
-
lastUsedAt: string | null;
|
|
581
|
-
}
|
|
582
356
|
|
|
583
|
-
export { type
|
|
357
|
+
export { type ApplicationContext as A, PermissionErrorCode as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, type FileChangeEvent as F, type PermissionPromptError as G, type HaexHubConfig as H, PermissionStatus as I, type SearchQuery as J, type SearchRequestEvent as K, type SyncTablesUpdatedEvent as L, type Migration as M, getTableName as N, isPermissionDeniedError as O, type PermissionResponse as P, isPermissionError as Q, isPermissionPromptError as R, type SearchResult as S, TABLE_SEPARATOR as T, type WebRequestOptions as W, type ExtensionInfo as a, type HaexHubEvent as b, EXTERNAL_EVENTS as c, type MigrationResult as d, type WebResponse as e, type DatabasePermissionRequest as f, type EventCallback as g, DEFAULT_TIMEOUT as h, type DatabaseColumnInfo as i, type DatabaseExecuteParams as j, type DatabasePermission as k, type DatabaseQueryParams as l, type DatabaseTableInfo as m, ErrorCode as n, type ExtensionRuntimeMode as o, type ExternalEvent as p, type FileChangePayload as q, type FileChangeType as r, type FilteredSyncTablesResult as s, HAEXTENSION_EVENTS as t, type HaexHubRequest as u, type HaexHubResponse as v, HaexVaultSdkError as w, type HaextensionEvent as x, type PermissionDeniedError as y, type PermissionErrorBase as z };
|
|
@@ -274,186 +274,6 @@ interface FilteredSyncTablesResult {
|
|
|
274
274
|
/** Map of extension_id -> list of tables they are allowed to see */
|
|
275
275
|
extensions: Record<string, string[]>;
|
|
276
276
|
}
|
|
277
|
-
/**
|
|
278
|
-
* External request from an authorized client (browser extension, CLI, server, etc.)
|
|
279
|
-
* These requests come through the WebSocket bridge and are routed to the appropriate extension.
|
|
280
|
-
*/
|
|
281
|
-
interface ExternalRequestEvent extends HaexHubEvent {
|
|
282
|
-
type: typeof EXTERNAL_EVENTS.REQUEST;
|
|
283
|
-
data: ExternalRequest;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* External request payload
|
|
287
|
-
*/
|
|
288
|
-
interface ExternalRequest {
|
|
289
|
-
/** Unique request ID for response correlation */
|
|
290
|
-
requestId: string;
|
|
291
|
-
/** Client's public key (Base64 SPKI format, used as identifier) */
|
|
292
|
-
publicKey: string;
|
|
293
|
-
/** Action/method to perform (extension-specific) */
|
|
294
|
-
action: string;
|
|
295
|
-
/** Request payload (extension-specific) */
|
|
296
|
-
payload: Record<string, unknown>;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* External request payload from Tauri event (includes extension target info).
|
|
300
|
-
* This is sent from Rust when an external client makes a request.
|
|
301
|
-
*/
|
|
302
|
-
interface ExternalRequestPayload extends ExternalRequest {
|
|
303
|
-
/** Target extension's public key */
|
|
304
|
-
extensionPublicKey: string;
|
|
305
|
-
/** Target extension's name */
|
|
306
|
-
extensionName: string;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* External request response (sent back to the client)
|
|
310
|
-
*/
|
|
311
|
-
interface ExternalResponse {
|
|
312
|
-
/** Request ID for correlation */
|
|
313
|
-
requestId: string;
|
|
314
|
-
/** Whether the request was successful */
|
|
315
|
-
success: boolean;
|
|
316
|
-
/** Response data (if successful) */
|
|
317
|
-
data?: unknown;
|
|
318
|
-
/** Error message (if failed) */
|
|
319
|
-
error?: string;
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Handler function type for external requests
|
|
323
|
-
*/
|
|
324
|
-
type ExternalRequestHandler = (request: ExternalRequest) => Promise<ExternalResponse> | ExternalResponse;
|
|
325
|
-
/**
|
|
326
|
-
* An authorized external client stored in the database
|
|
327
|
-
*/
|
|
328
|
-
interface AuthorizedClient {
|
|
329
|
-
/** Row ID */
|
|
330
|
-
id: string;
|
|
331
|
-
/** Unique client identifier (public key fingerprint) */
|
|
332
|
-
clientId: string;
|
|
333
|
-
/** Human-readable client name */
|
|
334
|
-
clientName: string;
|
|
335
|
-
/** Client's public key (base64) */
|
|
336
|
-
publicKey: string;
|
|
337
|
-
/** Extension ID this client can access */
|
|
338
|
-
extensionId: string;
|
|
339
|
-
/** When the client was authorized (ISO 8601) */
|
|
340
|
-
authorizedAt: string | null;
|
|
341
|
-
/** Last time the client connected (ISO 8601) */
|
|
342
|
-
lastSeen: string | null;
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* A blocked external client stored in the database
|
|
346
|
-
*/
|
|
347
|
-
interface BlockedClient {
|
|
348
|
-
/** Row ID */
|
|
349
|
-
id: string;
|
|
350
|
-
/** Unique client identifier (public key fingerprint) */
|
|
351
|
-
clientId: string;
|
|
352
|
-
/** Human-readable client name */
|
|
353
|
-
clientName: string;
|
|
354
|
-
/** Client's public key (base64) */
|
|
355
|
-
publicKey: string;
|
|
356
|
-
/** When the client was blocked (ISO 8601) */
|
|
357
|
-
blockedAt: string | null;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Extension requested by an external client
|
|
361
|
-
*/
|
|
362
|
-
interface RequestedExtension {
|
|
363
|
-
/** Extension name (e.g., "haex-pass") */
|
|
364
|
-
name: string;
|
|
365
|
-
/** Extension's public key (hex string from manifest) */
|
|
366
|
-
extensionPublicKey: string;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Pending authorization request waiting for user approval
|
|
370
|
-
*/
|
|
371
|
-
interface PendingAuthorization {
|
|
372
|
-
/** Unique client identifier */
|
|
373
|
-
clientId: string;
|
|
374
|
-
/** Human-readable client name */
|
|
375
|
-
clientName: string;
|
|
376
|
-
/** Client's public key (base64) */
|
|
377
|
-
publicKey: string;
|
|
378
|
-
/** Extensions the client wants to access (pre-selected in authorization dialog) */
|
|
379
|
-
requestedExtensions: RequestedExtension[];
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Decision type for external authorization prompts
|
|
383
|
-
*/
|
|
384
|
-
type ExternalAuthDecision = 'allow' | 'deny';
|
|
385
|
-
/**
|
|
386
|
-
* Session-based authorization entry (for "allow once" authorizations)
|
|
387
|
-
* These are stored in-memory and cleared when haex-vault restarts.
|
|
388
|
-
*/
|
|
389
|
-
interface SessionAuthorization {
|
|
390
|
-
/** Unique client identifier (public key fingerprint) */
|
|
391
|
-
clientId: string;
|
|
392
|
-
/** Extension ID this client can access */
|
|
393
|
-
extensionId: string;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Connection state for external clients connecting to haex-vault via WebSocket.
|
|
397
|
-
* Used by browser extensions, CLI tools, servers, and other external clients.
|
|
398
|
-
*/
|
|
399
|
-
declare enum ExternalConnectionState {
|
|
400
|
-
/** Not connected to haex-vault */
|
|
401
|
-
DISCONNECTED = "disconnected",
|
|
402
|
-
/** Attempting to establish connection */
|
|
403
|
-
CONNECTING = "connecting",
|
|
404
|
-
/** WebSocket connected but not yet authorized */
|
|
405
|
-
CONNECTED = "connected",
|
|
406
|
-
/** Connected and waiting for user approval in haex-vault */
|
|
407
|
-
PENDING_APPROVAL = "pending_approval",
|
|
408
|
-
/** Connected and authorized to communicate */
|
|
409
|
-
PAIRED = "paired"
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* Error codes for external client connections.
|
|
413
|
-
* Used to identify specific error conditions for i18n in the frontend.
|
|
414
|
-
*/
|
|
415
|
-
declare enum ExternalConnectionErrorCode {
|
|
416
|
-
/** No error */
|
|
417
|
-
NONE = "none",
|
|
418
|
-
/** Client is not authorized (rejected or not yet approved) */
|
|
419
|
-
CLIENT_NOT_AUTHORIZED = "client_not_authorized",
|
|
420
|
-
/** Client was blocked by the user */
|
|
421
|
-
CLIENT_BLOCKED = "client_blocked",
|
|
422
|
-
/** Connection to haex-vault failed (not running or network error) */
|
|
423
|
-
CONNECTION_FAILED = "connection_failed",
|
|
424
|
-
/** Connection timed out */
|
|
425
|
-
CONNECTION_TIMEOUT = "connection_timeout",
|
|
426
|
-
/** WebSocket connection was closed unexpectedly */
|
|
427
|
-
CONNECTION_CLOSED = "connection_closed",
|
|
428
|
-
/** Failed to decrypt message (invalid key or corrupted data) */
|
|
429
|
-
DECRYPTION_FAILED = "decryption_failed",
|
|
430
|
-
/** Invalid message format received */
|
|
431
|
-
INVALID_MESSAGE = "invalid_message",
|
|
432
|
-
/** Unknown or unspecified error */
|
|
433
|
-
UNKNOWN = "unknown"
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Full connection status including state, client ID, and any error
|
|
437
|
-
*/
|
|
438
|
-
interface ExternalConnection {
|
|
439
|
-
/** Current connection state */
|
|
440
|
-
state: ExternalConnectionState;
|
|
441
|
-
/** Client identifier (derived from public key) */
|
|
442
|
-
clientId: string | null;
|
|
443
|
-
/** Error code for i18n (use this for translations) */
|
|
444
|
-
errorCode: ExternalConnectionErrorCode;
|
|
445
|
-
/** Error message (original message, for logging/debugging) */
|
|
446
|
-
errorMessage: string | null;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Check if external client connection state indicates an active connection
|
|
450
|
-
* (connected, pending approval, or paired)
|
|
451
|
-
*/
|
|
452
|
-
declare function isExternalClientConnected(state: ExternalConnectionState): boolean;
|
|
453
|
-
/**
|
|
454
|
-
* Check if external client can send requests (only when paired/authorized)
|
|
455
|
-
*/
|
|
456
|
-
declare function canExternalClientSendRequests(state: ExternalConnectionState): boolean;
|
|
457
277
|
type EventCallback = (event: HaexHubEvent) => void;
|
|
458
278
|
interface ExtensionManifest {
|
|
459
279
|
name: string;
|
|
@@ -533,51 +353,5 @@ declare class HaexVaultSdkError extends Error {
|
|
|
533
353
|
details: Record<string, unknown> | undefined;
|
|
534
354
|
};
|
|
535
355
|
}
|
|
536
|
-
type SpaceRole = 'admin' | 'member' | 'viewer';
|
|
537
|
-
interface SharedSpace {
|
|
538
|
-
id: string;
|
|
539
|
-
ownerId: string;
|
|
540
|
-
encryptedName: string;
|
|
541
|
-
nameNonce: string;
|
|
542
|
-
currentKeyGeneration: number;
|
|
543
|
-
role: SpaceRole;
|
|
544
|
-
canInvite: boolean;
|
|
545
|
-
createdAt: string;
|
|
546
|
-
}
|
|
547
|
-
interface SpaceMemberInfo {
|
|
548
|
-
publicKey: string;
|
|
549
|
-
label: string;
|
|
550
|
-
role: SpaceRole;
|
|
551
|
-
canInvite: boolean;
|
|
552
|
-
invitedBy: string | null;
|
|
553
|
-
joinedAt: string;
|
|
554
|
-
}
|
|
555
|
-
interface SpaceKeyGrantInfo {
|
|
556
|
-
spaceId: string;
|
|
557
|
-
generation: number;
|
|
558
|
-
encryptedSpaceKey: string;
|
|
559
|
-
keyNonce: string;
|
|
560
|
-
ephemeralPublicKey: string;
|
|
561
|
-
}
|
|
562
|
-
interface SpaceInvite {
|
|
563
|
-
spaceId: string;
|
|
564
|
-
serverUrl: string;
|
|
565
|
-
spaceName: string;
|
|
566
|
-
accessToken: string;
|
|
567
|
-
encryptedSpaceKey: string;
|
|
568
|
-
keyNonce: string;
|
|
569
|
-
ephemeralPublicKey: string;
|
|
570
|
-
generation: number;
|
|
571
|
-
role: SpaceRole;
|
|
572
|
-
}
|
|
573
|
-
interface SpaceAccessTokenInfo {
|
|
574
|
-
id: string;
|
|
575
|
-
publicKey: string;
|
|
576
|
-
role: SpaceRole;
|
|
577
|
-
label: string | null;
|
|
578
|
-
revoked: boolean;
|
|
579
|
-
createdAt: string;
|
|
580
|
-
lastUsedAt: string | null;
|
|
581
|
-
}
|
|
582
356
|
|
|
583
|
-
export { type
|
|
357
|
+
export { type ApplicationContext as A, PermissionErrorCode as B, type ContextChangedEvent as C, type DatabaseQueryResult as D, type ExtensionManifest as E, type FileChangeEvent as F, type PermissionPromptError as G, type HaexHubConfig as H, PermissionStatus as I, type SearchQuery as J, type SearchRequestEvent as K, type SyncTablesUpdatedEvent as L, type Migration as M, getTableName as N, isPermissionDeniedError as O, type PermissionResponse as P, isPermissionError as Q, isPermissionPromptError as R, type SearchResult as S, TABLE_SEPARATOR as T, type WebRequestOptions as W, type ExtensionInfo as a, type HaexHubEvent as b, EXTERNAL_EVENTS as c, type MigrationResult as d, type WebResponse as e, type DatabasePermissionRequest as f, type EventCallback as g, DEFAULT_TIMEOUT as h, type DatabaseColumnInfo as i, type DatabaseExecuteParams as j, type DatabasePermission as k, type DatabaseQueryParams as l, type DatabaseTableInfo as m, ErrorCode as n, type ExtensionRuntimeMode as o, type ExternalEvent as p, type FileChangePayload as q, type FileChangeType as r, type FilteredSyncTablesResult as s, HAEXTENSION_EVENTS as t, type HaexHubRequest as u, type HaexHubResponse as v, HaexVaultSdkError as w, type HaextensionEvent as x, type PermissionDeniedError as y, type PermissionErrorBase 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-DFGx115H.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-gfc9eCL4.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-8dlKVNDZ.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-gfc9eCL4.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Vue 3 composable for HaexVault SDK
|