refactor: export owner-aware NWC APIs

This commit is contained in:
2026-08-22 16:55:47 +02:00
parent 3ed214c157
commit 7890a492f3
+11 -10
View File
@@ -37,17 +37,18 @@
// per-connection request queues // per-connection request queues
// Budget/connection persistence lives in storage/nwcConnections.ts. // Budget/connection persistence lives in storage/nwcConnections.ts.
export type { export type {NwcBudget, NwcBudgetSpend, NwcConnectionRecord} from './storage/nwcConnections'
NwcBudget,
NwcBudgetSpend,
NwcConnectionRecord
} from './storage/nwcConnections'
export { export {
clearNwcStorageForOwner,
clearUnownedNwcStorage,
migrateLegacyNwcStorage,
persistNwcConnection, persistNwcConnection,
readNwcConnections, readNwcConnections,
removeNwcConnection, removeNwcConnection,
writeNwcConnections writeNwcConnections,
} from './storage/nwcConnections' } from './storage/nwcConnections'
export {readNwcEnabled, writeNwcEnabled} from './storage/nwcEnabled'
export type {NwcLegacyMigrationResult} from './storage/nwcConnections'
export { export {
buildConnectionString, buildConnectionString,
@@ -55,13 +56,13 @@ export {
createConnection, createConnection,
deriveNwcWalletKey, deriveNwcWalletKey,
nwcWalletPubkey, nwcWalletPubkey,
parseConnectionString parseConnectionString,
} from './nwc/connection' } from './nwc/connection'
export type { export type {
CreateConnectionOptions, CreateConnectionOptions,
CreatedConnection, CreatedConnection,
NwcConnectionInfo, NwcConnectionInfo,
ParsedConnectionString ParsedConnectionString,
} from './nwc/connection' } from './nwc/connection'
export { export {
@@ -73,7 +74,7 @@ export {
buildResponseEvent, buildResponseEvent,
decryptRequest, decryptRequest,
errResult, errResult,
okResult okResult,
} from './nwc/protocol' } from './nwc/protocol'
export type { export type {
DecryptedNwcRequest, DecryptedNwcRequest,
@@ -82,7 +83,7 @@ export type {
NwcErrorCode, NwcErrorCode,
NwcMethod, NwcMethod,
NwcRequest, NwcRequest,
NwcResponse NwcResponse,
} from './nwc/protocol' } from './nwc/protocol'
export {defaultNwcTransport} from './nwc/transport' export {defaultNwcTransport} from './nwc/transport'