index.ts raw
1 /**
2 * Identity Bounded Context
3 *
4 * Handles accounts, authentication, and signing.
5 */
6
7 // Entities
8 export { Account } from './Account'
9 export type { AccountCredentials } from './Account'
10
11 // Value Objects
12 export { SignerType } from './SignerType'
13 export type { SignerTypeValue } from './SignerType'
14
15 // Errors
16 export {
17 InvalidCredentialsError,
18 AccountOperationError,
19 NotLoggedInError,
20 SignerError,
21 AccountNotFoundError
22 } from './errors'
23
24 // Domain Events
25 export {
26 ProfilePublished,
27 ProfileUpdated,
28 RelayListChanged,
29 AccountCreated,
30 AccountSwitched,
31 AccountRemoved,
32 SignerTypeChanged,
33 type ProfileFields,
34 type ProfileChanges
35 } from './events'
36
37 // Adapters for migration
38 export {
39 // Account adapters
40 toAccount,
41 fromAccount,
42 toAccounts,
43 fromAccounts,
44 isSameAccount,
45 isSamePubkey,
46 // SignerType adapters
47 toSignerType,
48 fromSignerType,
49 canSign,
50 isViewOnly,
51 getSignerTypeDisplayName,
52 // Account list helpers
53 findAccount,
54 findAccountsByPubkey,
55 removeAccount,
56 upsertAccount
57 } from './adapters'
58