@kernlize/core 0.11.0 → 0.12.0

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Observable, Subscription } from 'rxjs';
2
2
  import { EventStore } from 'applesauce-core';
3
3
  import { RelayPool, RelayPoolOptions } from 'applesauce-relay';
4
- import { AccountManager, IAccount } from 'applesauce-accounts';
4
+ import { AccountManager, IAccount, BaseAccount, SerializedAccount } from 'applesauce-accounts';
5
5
  import { RelayPoolHooks, RelayPoolLike, ShellBridge, ShellEnvironment, AuthHooks, ShellAdapter, OriginRegistry, NappletMessageDecision, CapabilityHooks, NappletRevocation, UnroutedMessageInfo } from '@kehto/shell';
6
6
  import { Capability, RelayPlanningServiceHandler, ConsentRequest, Signer, FirewallEvent, AclStateContainer, ServiceHandler, PermissionRequirement, ServiceRegistry } from '@kehto/runtime';
7
7
  import { CvmRegistryFamily, ConfigSettingsContext, ConfigServiceOptions, IntentCatalogEntry, RelayPoolServiceOptions, DmRelayPool, IdentityServiceOptions, DmAdapter, Uploader, CommonServiceOptions, WebrtcServiceOptions, ThemeService, DmService, ResourceFetchInit, IntentResolver, IntentDispatchParams } from '@kehto/services';
@@ -346,6 +346,79 @@ declare function toProfileCard(pubkey: string, event: NostrEvent | undefined): P
346
346
  */
347
347
  declare function createProfiles(options: ProfilesOptions): Profiles;
348
348
 
349
+ /** A person, and where whoever shared them said their data is kept. */
350
+ interface PersonPointer {
351
+ /** The identity, as 64 lowercase hex characters. */
352
+ readonly pubkey: string;
353
+ /** Servers named alongside the identity; empty when none were. */
354
+ readonly relays: readonly string[];
355
+ }
356
+ /**
357
+ * The longest the hinted servers are waited for before a lookup goes on
358
+ * without them. An outer bound only: it ends as soon as they have all answered.
359
+ *
360
+ * @example
361
+ * ```ts
362
+ * createPeople({ store, pool, timeoutMs: PERSON_HINT_TIMEOUT_MS });
363
+ * ```
364
+ */
365
+ declare const PERSON_HINT_TIMEOUT_MS = 8000;
366
+ /**
367
+ * Read an identity out of what someone typed, pasted or was sent.
368
+ *
369
+ * Every NIP-19 form of a person is one: 64 hex characters, an `npub`, or an
370
+ * `nprofile`, with or without a `nostr:` prefix and in any case. An
371
+ * `nprofile` carries the servers its data is on, which come back as `relays`.
372
+ *
373
+ * @param input - The text.
374
+ * @returns The person, or `undefined` when the text is none of those.
375
+ * @example
376
+ * ```ts
377
+ * parsePerson('npub1…'); // { pubkey: '3bf0…', relays: [] }
378
+ * parsePerson('nostr:nprofile1…'); // { pubkey: '3bf0…', relays: ['wss://relay.example'] }
379
+ * parsePerson('hello'); // undefined
380
+ * ```
381
+ */
382
+ declare function parsePerson(input: string): PersonPointer | undefined;
383
+ /** Options for {@link createPeople}. */
384
+ interface PeopleOptions {
385
+ /** The shell's event store; what the hinted servers hold is put here, where every lookup reads first. */
386
+ readonly store: EventStore;
387
+ readonly pool: ApplesaucePool;
388
+ /** Outer bound on waiting for the hinted servers; {@link PERSON_HINT_TIMEOUT_MS} by default. */
389
+ readonly timeoutMs?: number;
390
+ }
391
+ /** Finds people from any form of their identity. */
392
+ interface People {
393
+ /** Read an identity; `undefined` when the text is not one. Asks nobody. */
394
+ parse(input: string): PersonPointer | undefined;
395
+ /**
396
+ * Read an identity and, when it names servers, fetch the person's profile,
397
+ * server list and message inboxes from them first, so whatever looks the
398
+ * person up next finds them.
399
+ *
400
+ * @throws `invalid:person` when the text is not an identity.
401
+ */
402
+ locate(input: string): Promise<string>;
403
+ }
404
+ /**
405
+ * Create the shell's way of finding a person from what was typed or sent.
406
+ *
407
+ * The servers an `nprofile` names are asked once per person and set of
408
+ * servers, and what they hold is added to the shell's event store. A server
409
+ * that fails or says nothing costs nothing: the lookup goes on with the
410
+ * shell's own servers, as it would have without the hint.
411
+ *
412
+ * @param options - The event store, the pool and the outer bound.
413
+ * @returns The finder.
414
+ * @example
415
+ * ```ts
416
+ * const people = createPeople({ store: eventStore, pool });
417
+ * const pubkey = await people.locate('nprofile1…');
418
+ * ```
419
+ */
420
+ declare function createPeople(options: PeopleOptions): People;
421
+
349
422
  /**
350
423
  * Servers that carry NIP-66 monitors' reports: the ones nostr.watch's own
351
424
  * client reads. Its history server is left out: its certificate does not
@@ -1187,6 +1260,8 @@ interface GrantRecord {
1187
1260
  readonly identity: AppletIdentity;
1188
1261
  readonly domains: readonly string[];
1189
1262
  readonly capabilities: readonly Capability[];
1263
+ /** Domains allowed or baseline that are not in force, because the applet can read messages (D-046). */
1264
+ readonly withheld: readonly string[];
1190
1265
  readonly blocked: boolean;
1191
1266
  readonly stateQuotaBytes: number;
1192
1267
  }
@@ -1435,6 +1510,8 @@ interface Kernl {
1435
1510
  readonly catalog: AppletCatalog;
1436
1511
  /** People's names and pictures, loaded from their profiles on demand. */
1437
1512
  readonly profiles: Profiles;
1513
+ /** Finds a person from hex, `npub` or `nprofile`, asking the servers an `nprofile` names. */
1514
+ readonly people: People;
1438
1515
  /** The signed-in account's published inbox and outbox (NIP-65); the `outbox` tier follows its outboxes. */
1439
1516
  readonly mailboxes: AccountMailboxes;
1440
1517
  /** Where the account's uploads go (BUD-03, kind 10063); the defaults while it has no list. */
@@ -1847,6 +1924,83 @@ declare function createReplaceableLoader(store: EventStore, pool: ApplesaucePool
1847
1924
  */
1848
1925
  declare function createIdentityProviders(store: EventStore, pool: ApplesaucePool, tiers: RelayTiers, options?: IdentityProviderOptions): IdentityProviders;
1849
1926
 
1927
+ /**
1928
+ * The domain that lets an applet read and write the person's private messages.
1929
+ *
1930
+ * @example
1931
+ * ```ts
1932
+ * grants.get(identity)?.domains.includes(MESSAGES_DOMAIN); // the applet is sealed
1933
+ * ```
1934
+ */
1935
+ declare const MESSAGES_DOMAIN = "dm";
1936
+ /**
1937
+ * Every domain an applet may hold together with messages. None of them can
1938
+ * carry what the applet read to anywhere but the person's own screen and
1939
+ * this device: the handshake, messages themselves, which identity is signed
1940
+ * in, the theme, the applet's own storage and settings, notifications,
1941
+ * keyboard shortcuts, and being handed a request by another applet.
1942
+ *
1943
+ * It is an allowlist, so a domain kehto adds later is withheld until it is
1944
+ * put here on purpose (D-046).
1945
+ *
1946
+ * @example
1947
+ * ```ts
1948
+ * MESSAGE_COMPANION_DOMAINS.includes('upload'); // false
1949
+ * ```
1950
+ */
1951
+ declare const MESSAGE_COMPANION_DOMAINS: readonly string[];
1952
+ /**
1953
+ * Whether an applet's grants seal it: it holds messages, so it holds nothing
1954
+ * that could send them on.
1955
+ *
1956
+ * @param granted - The domains the person allowed.
1957
+ * @returns True when messages are among them.
1958
+ * @example
1959
+ * ```ts
1960
+ * sealsApplet(['dm', 'relay']); // true
1961
+ * ```
1962
+ */
1963
+ declare function sealsApplet(granted: readonly string[]): boolean;
1964
+ /**
1965
+ * The domains actually in force for an applet: the baseline plus what the
1966
+ * person allowed, cut down to {@link MESSAGE_COMPANION_DOMAINS} when the
1967
+ * applet holds messages.
1968
+ *
1969
+ * @param granted - The domains the person allowed.
1970
+ * @param baseline - Domains every applet holds; {@link BASELINE_DOMAINS} by default.
1971
+ * @returns The domains in force, baseline first.
1972
+ * @example
1973
+ * ```ts
1974
+ * domainsInForce(['relay']); // ['shell', 'inc', 'theme', 'storage', 'relay']
1975
+ * domainsInForce(['dm', 'relay', 'upload']); // ['shell', 'theme', 'storage', 'dm']
1976
+ * ```
1977
+ */
1978
+ declare function domainsInForce(granted: readonly string[], baseline?: readonly string[]): readonly string[];
1979
+ /**
1980
+ * The domains an applet would hold but for messages: allowed by the person
1981
+ * or part of the baseline, and not in force while it can read messages.
1982
+ *
1983
+ * @param granted - The domains the person allowed.
1984
+ * @param baseline - Domains every applet holds; {@link BASELINE_DOMAINS} by default.
1985
+ * @returns The withheld domains; empty for an applet without messages.
1986
+ * @example
1987
+ * ```ts
1988
+ * withheldDomains(['dm', 'relay']); // ['inc', 'relay']
1989
+ * ```
1990
+ */
1991
+ declare function withheldDomains(granted: readonly string[], baseline?: readonly string[]): readonly string[];
1992
+ /**
1993
+ * The kehto capabilities an applet's grants come to, after the seal.
1994
+ *
1995
+ * @param granted - The domains the person allowed.
1996
+ * @returns The capabilities to write into the runtime ACL.
1997
+ * @example
1998
+ * ```ts
1999
+ * capabilitiesInForce(['dm', 'intent', 'relay']); // dm, baseline and 'intent:read'; no relay, no 'intent:write'
2000
+ * ```
2001
+ */
2002
+ declare function capabilitiesInForce(granted: readonly string[]): readonly Capability[];
2003
+
1850
2004
  /**
1851
2005
  * Account types whose serialised form carries a raw secret. `PrivateKeyAccount`
1852
2006
  * serialises the key itself and `SeedWordsAccount` the mnemonic. Neither may be
@@ -1900,6 +2054,53 @@ declare class KernlAccountManager extends AccountManager {
1900
2054
  */
1901
2055
  declare function createKernlAccounts(storage: StorageLike): AccountManager;
1902
2056
 
2057
+ /**
2058
+ * The type of an identity that is never written down.
2059
+ *
2060
+ * @example
2061
+ * ```ts
2062
+ * account.type === THROWAWAY_IDENTITY_TYPE; // true for createThrowawayIdentity()
2063
+ * ```
2064
+ */
2065
+ declare const THROWAWAY_IDENTITY_TYPE = "throwaway";
2066
+ /**
2067
+ * An identity for trying the shell: a fresh key held by its signer in memory
2068
+ * and nowhere else. It signs like any other, so the live store, applets and
2069
+ * consent all behave as they will for a kept identity. It refuses to be
2070
+ * serialised, so the account manager's persistence skips it and a reload
2071
+ * starts without it (D-044).
2072
+ *
2073
+ * @example
2074
+ * ```ts
2075
+ * const identity = createThrowawayIdentity();
2076
+ * await kernl.login(identity);
2077
+ * ```
2078
+ */
2079
+ declare class ThrowawayIdentity extends BaseAccount<PrivateKeySigner, never, {
2080
+ name: string;
2081
+ }> {
2082
+ static readonly type = "throwaway";
2083
+ /**
2084
+ * Refuse to be written down.
2085
+ *
2086
+ * @throws `denied:plaintext-key-persistence`, always.
2087
+ */
2088
+ toJSON(): SerializedAccount<never, {
2089
+ name: string;
2090
+ }>;
2091
+ }
2092
+ /**
2093
+ * Make an identity that lasts until the page goes away.
2094
+ *
2095
+ * @param name - What the shell calls it until a profile says otherwise.
2096
+ * @returns The identity, ready for `kernl.login`.
2097
+ * @example
2098
+ * ```ts
2099
+ * await kernl.login(createThrowawayIdentity('Just looking'));
2100
+ * ```
2101
+ */
2102
+ declare function createThrowawayIdentity(name?: string): ThrowawayIdentity;
2103
+
1903
2104
  /**
1904
2105
  * Decode what a user typed or clicked into the event to fetch.
1905
2106
  *
@@ -2474,7 +2675,9 @@ interface KernlGrants extends Grants {
2474
2675
  * no entry holds nothing. kernl grants the baseline domains plus what the user
2475
2676
  * allowed, and revokes whatever the applet's entry holds beyond that, which
2476
2677
  * covers a domain the user took back and an entry kept from an earlier
2477
- * posture. The per-identity record is persisted at `kernl:grants:v1`; the ACL
2678
+ * posture. An applet that holds messages is sealed: only the domains that
2679
+ * cannot send what it read anywhere stay in force, and the rest are reported
2680
+ * as `withheld` (D-046). The per-identity record is persisted at `kernl:grants:v1`; the ACL
2478
2681
  * itself is persisted by kehto. Blocking an applet blocks it in the ACL and empties its
2479
2682
  * environment through {@link createEnvironmentResolver}.
2480
2683
  *
@@ -2494,7 +2697,8 @@ declare function createGrants(options: GrantsOptions): KernlGrants;
2494
2697
  * Each applet sees the baseline domains plus the domains the user allowed,
2495
2698
  * intersected with what the shell offers live. kehto intersects again with
2496
2699
  * its own availability set, so this hook can only narrow. A blocked applet
2497
- * sees only `shell`, enough to finish the handshake and nothing more.
2700
+ * sees only `shell`, enough to finish the handshake and nothing more. An
2701
+ * applet that holds messages sees only the domains that may go with them.
2498
2702
  *
2499
2703
  * @param grants - The grants surface the hook reads.
2500
2704
  * @returns The hook, ready for `adapter.capabilities.resolveEnvironment`.
@@ -3083,6 +3287,8 @@ declare function createBlossomUploader(options: BlossomUploaderOptions): Uploade
3083
3287
  interface CommonActionsOptions {
3084
3288
  readonly store: EventStore;
3085
3289
  readonly profiles: Pick<Profiles, 'settled'>;
3290
+ /** Reads a person from any form of their identity, asking the servers it names first; `invalid:person` otherwise. */
3291
+ readonly locate: (input: string) => Promise<string>;
3086
3292
  /** The signed-in account's key, or none. */
3087
3293
  readonly pubkey: () => string | undefined;
3088
3294
  /** The account's signer, or none for a read-only session. */
@@ -3117,6 +3323,7 @@ interface KernlNetwork {
3117
3323
  readonly eventCache: ConnectedEventCache;
3118
3324
  readonly replaceableLoader: AddressPointerLoader;
3119
3325
  readonly profiles: Profiles;
3326
+ readonly people: People;
3120
3327
  readonly directory: RelayDirectory;
3121
3328
  readonly mailboxes: AccountMailboxes;
3122
3329
  readonly files: AccountFileServers;
@@ -3164,7 +3371,7 @@ declare function createKernlNetwork(options: Pick<KernlOptions, 'eventCache'>, p
3164
3371
  * createKernlServices({ ..., common: commonActionsFor(parts, network, consent) });
3165
3372
  * ```
3166
3373
  */
3167
- declare function commonActionsFor(parts: Omit<KernlNetworkParts, 'destroyed$'>, network: Pick<KernlNetwork, 'profiles' | 'replaceableLoader' | 'signer'>, consent: SigningConsent): CommonServiceOptions;
3374
+ declare function commonActionsFor(parts: Omit<KernlNetworkParts, 'destroyed$'>, network: Pick<KernlNetwork, 'profiles' | 'people' | 'replaceableLoader' | 'signer'>, consent: SigningConsent): CommonServiceOptions;
3168
3375
 
3169
3376
  /** A key per applet window that belongs to no account. */
3170
3377
  interface WindowIdentities {
@@ -3427,6 +3634,8 @@ interface KernlServiceDeps {
3427
3634
  readonly uploader?: Uploader;
3428
3635
  /** Names conversation participants for applets; without it they are listed by key alone. */
3429
3636
  readonly profiles?: Pick<Profiles, 'settled'>;
3637
+ /** Reads the people an applet names in any form of their identity; without it only hex is taken. */
3638
+ readonly people?: Pick<People, 'locate'>;
3430
3639
  readonly theme?: Theme;
3431
3640
  /** Maps a live window to its verified identity, or null. */
3432
3641
  readonly resolveIdentity: (windowId: string) => {
@@ -3556,7 +3765,9 @@ interface LifecycleContext {
3556
3765
  * A window keeps the environment it was started with, and `shell.init` is not
3557
3766
  * sent again, so a window whose grant no longer covers a domain it was started
3558
3767
  * with would go on advertising it. Granting more never stops a window; the
3559
- * applet sees the new domain the next time it opens.
3768
+ * applet sees the new domain the next time it opens. The one grant that
3769
+ * narrows is messages: it withholds every domain that could send them on, so
3770
+ * a window started with one of those stops (D-046).
3560
3771
  *
3561
3772
  * @param plan - The running window's plan; its environment is what it was started with.
3562
3773
  * @param record - The grant record that just changed.
@@ -3636,6 +3847,24 @@ declare function toSession(account: IAccount, card?: ProfileCard): Session;
3636
3847
  */
3637
3848
  declare function createKernl(options: KernlOptions): Kernl;
3638
3849
 
3850
+ /**
3851
+ * Let an applet name the people it writes to in any form of their identity.
3852
+ *
3853
+ * Every recipient of a send is read with `people.locate`, so hex, `npub` and
3854
+ * `nprofile` all work and the servers an `nprofile` names are asked for the
3855
+ * person's inboxes before the message is sealed. The backends still see hex.
3856
+ *
3857
+ * @param adapter - The messaging adapter to wrap.
3858
+ * @param people - The shell's finder.
3859
+ * @returns The adapter, with recipients read on the way in.
3860
+ * @throws `invalid:recipient` from `send` when a recipient is not an identity.
3861
+ * @example
3862
+ * ```ts
3863
+ * createDmService({ adapter: locateRecipients(messaging.composite(), kernl.people) });
3864
+ * ```
3865
+ */
3866
+ declare function locateRecipients(adapter: DmAdapter, people: Pick<People, 'locate'>): DmAdapter;
3867
+
3639
3868
  /** What the store filters by. Every part is optional; an empty query lists everything. */
3640
3869
  interface CatalogQuery {
3641
3870
  /** Free text, matched loosely against title, topics, roles, description and publisher. */
@@ -3843,4 +4072,4 @@ declare const PACKAGE_NAME = "@kernlize/core";
3843
4072
  */
3844
4073
  declare const KERNL_FRAME_POLICY_META: string;
3845
4074
 
3846
- export { type AccountFileServers, type AccountFileServersOptions, type AccountMailboxes, type AccountMailboxesOptions, type ApplesaucePool, type AppletCatalog, type AppletConfigOptions, type AppletHandle, type AppletIdentity, type AppletLifecycle, type AppletPointer, type AppletStatus, type AppletSummary, BASELINE_DOMAINS, BLOB_TIMEOUT_MS, BUILTIN_PUBLISHER, type BlossomUploaderOptions, type BuiltinApplet, CATALOG_EMIT_MS, CATALOG_LIMIT, CATALOG_SETTLE_MS, CATALOG_TIMEOUT_MS, CONTROLLER_DENY_POLICY, CURRENT_VERSION_TIMEOUT_MS, type CatalogEntry, type CatalogQuery, type CommonActionsOptions, ConnectedEventCache, type ConsentLine, type ConsentPrompt, type ConsentSummary, DEFAULT_FILE_SERVERS, DEFAULT_MONITOR_RELAYS, DEFAULT_RELAY_TIERS, DEFAULT_SUGGESTIONS, DELIVERY_RETRY, DIRECT_MAX_PAYLOAD_BYTES, DIRECT_SIGNALING_PROFILE, DIRECT_SIGNAL_KIND, DOMAIN_CAPABILITIES, type DefaultBridgesOptions, type DefaultMessagingOptions, type DirectConnectionsDeps, type DirectConnectionsOptions, type DirectConnectionsSettings, type DirectIceServer, type DirectSignalingOptions, type DirectoryPool, type EoseSubscription, EventCacheOpener, type FileServerState, type FrameLike, type GrantRecord, type Grants, type GrantsOptions, type GroupMessagingOptions, type GuardFacade, type GuardPipeline, type GuardPipelineOptions, HANDLER_PREFERENCES_KIND, type HandlerChoice, type HandlerDefaults, type HandlerDefaultsOptions, type HandlerOption, type HandlerPreferences, type HandlerPrompt, type IdentityProfile, type IdentityProviderOptions, type IdentityProviders, type InboxRelays, type InstallableApplet, type InstalledApplet, type InstalledApplets, type InstalledContract, type IntentDeliveryOptions, type IntentRouter, type IntentRouterOptions, type Intents, KERNL_FRAME_POLICY_META, type Kernl, KernlAccountManager, type KernlGrants, type KernlHost, type KernlIntentDeps, type KernlIntents, type KernlMultiplayer, type KernlNetwork, type KernlNetworkParts, type KernlOptions, type KernlServiceDeps, type KernlServices, LINK_PROTOCOLS, type LifecycleContext, type LoadCatalogOptions, type LookupBefore, type LookupReplaceableOptions, MANIFEST_TIMING, MESSAGING_UNAVAILABLE_REASONS, type MailboxPool, type MailboxSigner, type MailboxState, type Mailboxes, type ManifestTiming, type MessagingBackendFactories, type MessagingEncryption, type MountDeps, type MountGuardHooks, type MountPlan, type MountedApplet, type MultiServerUpload, type MultiplayerSettings, type MultiplayerState, type NamespacedStore, type OutboxRelayPoolLike, PACKAGE_NAME, PLAINTEXT_KEY_ACCOUNT_TYPES, type PipelineDisposition, type PlanMountOptions, type PreferenceSigner, type ProfileCard, type ProfileLoader, type ProfilePointer, type Profiles, type ProfilesOptions, type PublishAnswer, type PublishOutcome, type PublishedPointer, RUNTIME_FIREWALL_STORAGE_KEY, RUNTIME_OP_CLASSES, type RatchetMessagingOptions, type RelayDirectory, type RelayDirectoryOptions, type RelayListing, type RelayPermissions, type RelayTier, type RelayTiers, type RemoteToolsOptions, type RemoteToolsSettings, type ResolveAppletIdentity, type ResolveAppletOptions, type ResolvedApplet, type RuntimeFirewallHooks, type RuntimeFirewallHooksOptions, type RuntimeFirewallRules, type RuntimeFirewallState, type RuntimeRateRule, SHELL_RELAY_OPTIONS, type SealedGroupStoreOptions, type SealedRatchetStorageOptions, type Session, type SettingsPrompt, type ShellAdapterDeps, type SignalRelay, type SignalSigner, type SignerMessagingOptions, type SigningConsent, type SigningConsentOptions, type SigningTemplate, type StorageLike, type SuggestOptions, type SuggestPurpose, TOOL_DISCOVERY_TIMEOUT_MS, type TierMap, type ToolDiscoveryOptions, type ToolFamilyCandidate, type TopicCount, UNKNOWN_CURRENT_VERSION, type UploadDetails, type WindowIdentities, type WindowResolution, abbreviate, addressOf, applyRuntimeFirewallProfile, applyRuntimeFirewallRules, askUploadConsent, builtinAddress, capabilitiesForDomain, capabilitiesForDomains, catalogIdForRef, catalogRelays, commonActionsFor, createAccountFileServers, createAccountMailboxes, createAppletConfig, createAppletLifecycle, createAppletRelayBackend, createAppletRelayService, createAuthHooks, createBlossomUploader, createCommonActions, createConsentHandler, createCvmRelayPool, createDefaultBridges, createDefaultMessaging, createDirectConnectionsService, createDirectSignaling, createDmRelayPool, createEnvironmentResolver, createGrants, createGroupMessagesBackend, createGroupNetwork, createGuardPipeline, createHandlerDefaults, createIdentityProviders, createInstalledApplets, createIntentDelivery, createIntentRouter, createKernl, createKernlAccounts, createKernlIntents, createKernlNetwork, createKernlServices, createLegacyMessagesBackend, createMultiplayerSettings, createNamespacedStore, createOutboxRelayPool, createPrivateMessagesBackend, createProfiles, createRatchetMessagesBackend, createRelayDirectory, createRelayPoolHooks, createRelayPoolLike, createRelayTiers, createRemoteToolsService, createReplaceableLoader, createRuntimeFirewallHooks, createSealedGroupStore, createSealedRatchetStorage, createShellAdapter, createSigningConsent, createWindowIdentities, decodePointer, defaultFetchBlob, describeChange, describeDirectConnection, describeOutcome, describeUpload, directNamespace, discoverToolFamilies, fetchManifestEvent, fileServerTags, fileServersFromEvent, fuzzyScore, grantNarrowingReason, isDestructiveKind, isReadOnlyAccount, isTheme, labelConversations, loadCatalog, lookupRelaysOf, lookupReplaceable, mailboxTags, mailboxesFromEvent, mergeFamilies, messagingSigner, mountApplet, newestEntries, openDefaultArtifactCache, parseHandlerPreferences, planMount, popularTopics, preferenceRelays, preferenceTemplate, preferredHandlers, publishAccepted, refForCatalogId, relayUrls, resolveApplet, resolveBuiltin, resolveWindow, resourceInitFor, runtimeFirewallRules, searchCatalog, selectRelayTier, signerAvailability, sizeWords, streamCatalog, subscribeWithEose, summarize, summarizePublish, toCatalogEntry, toGuardEvent, toProfileCard, toRelayUrl, toSession, validFamily, wrapAccountSigner };
4075
+ export { type AccountFileServers, type AccountFileServersOptions, type AccountMailboxes, type AccountMailboxesOptions, type ApplesaucePool, type AppletCatalog, type AppletConfigOptions, type AppletHandle, type AppletIdentity, type AppletLifecycle, type AppletPointer, type AppletStatus, type AppletSummary, BASELINE_DOMAINS, BLOB_TIMEOUT_MS, BUILTIN_PUBLISHER, type BlossomUploaderOptions, type BuiltinApplet, CATALOG_EMIT_MS, CATALOG_LIMIT, CATALOG_SETTLE_MS, CATALOG_TIMEOUT_MS, CONTROLLER_DENY_POLICY, CURRENT_VERSION_TIMEOUT_MS, type CatalogEntry, type CatalogQuery, type CommonActionsOptions, ConnectedEventCache, type ConsentLine, type ConsentPrompt, type ConsentSummary, DEFAULT_FILE_SERVERS, DEFAULT_MONITOR_RELAYS, DEFAULT_RELAY_TIERS, DEFAULT_SUGGESTIONS, DELIVERY_RETRY, DIRECT_MAX_PAYLOAD_BYTES, DIRECT_SIGNALING_PROFILE, DIRECT_SIGNAL_KIND, DOMAIN_CAPABILITIES, type DefaultBridgesOptions, type DefaultMessagingOptions, type DirectConnectionsDeps, type DirectConnectionsOptions, type DirectConnectionsSettings, type DirectIceServer, type DirectSignalingOptions, type DirectoryPool, type EoseSubscription, EventCacheOpener, type FileServerState, type FrameLike, type GrantRecord, type Grants, type GrantsOptions, type GroupMessagingOptions, type GuardFacade, type GuardPipeline, type GuardPipelineOptions, HANDLER_PREFERENCES_KIND, type HandlerChoice, type HandlerDefaults, type HandlerDefaultsOptions, type HandlerOption, type HandlerPreferences, type HandlerPrompt, type IdentityProfile, type IdentityProviderOptions, type IdentityProviders, type InboxRelays, type InstallableApplet, type InstalledApplet, type InstalledApplets, type InstalledContract, type IntentDeliveryOptions, type IntentRouter, type IntentRouterOptions, type Intents, KERNL_FRAME_POLICY_META, type Kernl, KernlAccountManager, type KernlGrants, type KernlHost, type KernlIntentDeps, type KernlIntents, type KernlMultiplayer, type KernlNetwork, type KernlNetworkParts, type KernlOptions, type KernlServiceDeps, type KernlServices, LINK_PROTOCOLS, type LifecycleContext, type LoadCatalogOptions, type LookupBefore, type LookupReplaceableOptions, MANIFEST_TIMING, MESSAGES_DOMAIN, MESSAGE_COMPANION_DOMAINS, MESSAGING_UNAVAILABLE_REASONS, type MailboxPool, type MailboxSigner, type MailboxState, type Mailboxes, type ManifestTiming, type MessagingBackendFactories, type MessagingEncryption, type MountDeps, type MountGuardHooks, type MountPlan, type MountedApplet, type MultiServerUpload, type MultiplayerSettings, type MultiplayerState, type NamespacedStore, type OutboxRelayPoolLike, PACKAGE_NAME, PERSON_HINT_TIMEOUT_MS, PLAINTEXT_KEY_ACCOUNT_TYPES, type People, type PeopleOptions, type PersonPointer, type PipelineDisposition, type PlanMountOptions, type PreferenceSigner, type ProfileCard, type ProfileLoader, type ProfilePointer, type Profiles, type ProfilesOptions, type PublishAnswer, type PublishOutcome, type PublishedPointer, RUNTIME_FIREWALL_STORAGE_KEY, RUNTIME_OP_CLASSES, type RatchetMessagingOptions, type RelayDirectory, type RelayDirectoryOptions, type RelayListing, type RelayPermissions, type RelayTier, type RelayTiers, type RemoteToolsOptions, type RemoteToolsSettings, type ResolveAppletIdentity, type ResolveAppletOptions, type ResolvedApplet, type RuntimeFirewallHooks, type RuntimeFirewallHooksOptions, type RuntimeFirewallRules, type RuntimeFirewallState, type RuntimeRateRule, SHELL_RELAY_OPTIONS, type SealedGroupStoreOptions, type SealedRatchetStorageOptions, type Session, type SettingsPrompt, type ShellAdapterDeps, type SignalRelay, type SignalSigner, type SignerMessagingOptions, type SigningConsent, type SigningConsentOptions, type SigningTemplate, type StorageLike, type SuggestOptions, type SuggestPurpose, THROWAWAY_IDENTITY_TYPE, TOOL_DISCOVERY_TIMEOUT_MS, ThrowawayIdentity, type TierMap, type ToolDiscoveryOptions, type ToolFamilyCandidate, type TopicCount, UNKNOWN_CURRENT_VERSION, type UploadDetails, type WindowIdentities, type WindowResolution, abbreviate, addressOf, applyRuntimeFirewallProfile, applyRuntimeFirewallRules, askUploadConsent, builtinAddress, capabilitiesForDomain, capabilitiesForDomains, capabilitiesInForce, catalogIdForRef, catalogRelays, commonActionsFor, createAccountFileServers, createAccountMailboxes, createAppletConfig, createAppletLifecycle, createAppletRelayBackend, createAppletRelayService, createAuthHooks, createBlossomUploader, createCommonActions, createConsentHandler, createCvmRelayPool, createDefaultBridges, createDefaultMessaging, createDirectConnectionsService, createDirectSignaling, createDmRelayPool, createEnvironmentResolver, createGrants, createGroupMessagesBackend, createGroupNetwork, createGuardPipeline, createHandlerDefaults, createIdentityProviders, createInstalledApplets, createIntentDelivery, createIntentRouter, createKernl, createKernlAccounts, createKernlIntents, createKernlNetwork, createKernlServices, createLegacyMessagesBackend, createMultiplayerSettings, createNamespacedStore, createOutboxRelayPool, createPeople, createPrivateMessagesBackend, createProfiles, createRatchetMessagesBackend, createRelayDirectory, createRelayPoolHooks, createRelayPoolLike, createRelayTiers, createRemoteToolsService, createReplaceableLoader, createRuntimeFirewallHooks, createSealedGroupStore, createSealedRatchetStorage, createShellAdapter, createSigningConsent, createThrowawayIdentity, createWindowIdentities, decodePointer, defaultFetchBlob, describeChange, describeDirectConnection, describeOutcome, describeUpload, directNamespace, discoverToolFamilies, domainsInForce, fetchManifestEvent, fileServerTags, fileServersFromEvent, fuzzyScore, grantNarrowingReason, isDestructiveKind, isReadOnlyAccount, isTheme, labelConversations, loadCatalog, locateRecipients, lookupRelaysOf, lookupReplaceable, mailboxTags, mailboxesFromEvent, mergeFamilies, messagingSigner, mountApplet, newestEntries, openDefaultArtifactCache, parseHandlerPreferences, parsePerson, planMount, popularTopics, preferenceRelays, preferenceTemplate, preferredHandlers, publishAccepted, refForCatalogId, relayUrls, resolveApplet, resolveBuiltin, resolveWindow, resourceInitFor, runtimeFirewallRules, sealsApplet, searchCatalog, selectRelayTier, signerAvailability, sizeWords, streamCatalog, subscribeWithEose, summarize, summarizePublish, toCatalogEntry, toGuardEvent, toProfileCard, toRelayUrl, toSession, validFamily, withheldDomains, wrapAccountSigner };