@muhkoo/connect 0.10.9-alpha.0 → 0.10.11-alpha.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/connect.d.ts CHANGED
@@ -1706,6 +1706,14 @@ declare class FileStorage {
1706
1706
  data: Uint8Array;
1707
1707
  stat: FileStat;
1708
1708
  }>;
1709
+ /**
1710
+ * Streaming inverse of {@link writeFileToShards}: yields each chunk's
1711
+ * decrypted plaintext in order WITHOUT concatenating. Peak memory stays at
1712
+ * ~one chunk, so multi-GB files (which overflow a single `Uint8Array`) can be
1713
+ * piped straight to a file/socket. Same shard sourcing (cache → peers →
1714
+ * origin) and per-chunk auth as {@link readFileFromShards}.
1715
+ */
1716
+ readChunksFromShards(manifest: FileManifest): AsyncGenerator<Uint8Array>;
1709
1717
  /** As {@link writeFileToShards}, plus POSTs the manifest to `input.spaceId`. */
1710
1718
  writeFile(input: WriteFileInput): Promise<FileStat>;
1711
1719
  /** As {@link readFileFromShards}, but fetches the manifest from a space first. */
@@ -1897,6 +1905,10 @@ interface VaultFactor {
1897
1905
  createdAt?: number;
1898
1906
  /** Display hint for gated factors ("m•••@gmail.com") — list responses only. */
1899
1907
  masked?: string;
1908
+ /** Passkey's origin (RP id) — list responses only. A passkey only unlocks
1909
+ * from this host or a subdomain of it, so apps on several hosts enroll one
1910
+ * per origin. */
1911
+ rpId?: string;
1900
1912
  }
1901
1913
  interface AuthClientOptions {
1902
1914
  /** Absolute URL of the accelerator worker (no trailing slash required). */
@@ -1993,7 +2005,11 @@ declare class AuthClient {
1993
2005
  * Read a factor record for `username` (returns an indistinguishable decoy if
1994
2006
  * absent). Gated types (email) require the recover `verifyToken`.
1995
2007
  */
1996
- vaultRead(username: string, factorType: VaultFactor["type"], verifyToken?: string): Promise<{
2008
+ vaultRead(username: string, factorType: VaultFactor["type"], verifyToken?: string,
2009
+ /** Passkeys are per-origin: naming the caller's host returns THAT origin's
2010
+ * passkey instead of whichever was enrolled first (which WebAuthn would
2011
+ * refuse). Ignored for other factor types. */
2012
+ rpId?: string): Promise<{
1997
2013
  factor: VaultFactor | null;
1998
2014
  }>;
1999
2015
  /**
@@ -2661,7 +2677,18 @@ declare class ZkAuth {
2661
2677
  label?: string;
2662
2678
  createdAt?: number;
2663
2679
  masked?: string;
2680
+ rpId?: string;
2664
2681
  }>>;
2682
+ /**
2683
+ * Is a passkey enrolled that can unlock from THIS origin?
2684
+ *
2685
+ * Passkeys are origin-bound, so an app served on both a custom domain and the
2686
+ * platform host needs one per host. Use this to decide whether to offer
2687
+ * "Unlock with passkey" or go straight to sign-in — prompting with another
2688
+ * origin's passkey fails with a raw WebAuthn error. Requires a session
2689
+ * (metadata read); returns false when signed out or unsupported.
2690
+ */
2691
+ hasPasskeyForThisOrigin(): Promise<boolean>;
2665
2692
  /** Remove a login method by id (can't remove your only one). Session-authed. */
2666
2693
  removeFactor(id: string): Promise<void>;
2667
2694
  /** Sign out: clears the session, identity, and persisted token. */
@@ -2759,6 +2786,14 @@ interface HttpClientOptions {
2759
2786
  * shared-space (messaging) websockets.
2760
2787
  */
2761
2788
  apiKey?: string;
2789
+ /**
2790
+ * A scoped, expiring **access token** (`mk_<env>_at_…`) — the non-ZK
2791
+ * machine-to-machine credential. It resolves through the SAME accelerator
2792
+ * path as an app key and rides the same `X-Muhkoo-Key` header; when present
2793
+ * it takes precedence over {@link apiKey}. Use it for server-side / CI
2794
+ * callers that shouldn't carry the app's publishable key.
2795
+ */
2796
+ accessToken?: string;
2762
2797
  /** Returns the current user session token, or `null` when logged out. */
2763
2798
  getSessionToken?: () => string | null;
2764
2799
  /** Custom fetch — defaults to `globalThis.fetch`. */
@@ -2787,6 +2822,8 @@ declare class HttpClient {
2787
2822
  /** Origin of {@link baseUrl} — credentials are only attached same-origin. */
2788
2823
  private readonly baseOrigin;
2789
2824
  private readonly apiKey;
2825
+ /** Scoped machine access token — takes precedence over {@link apiKey} on `X-Muhkoo-Key`. */
2826
+ private readonly accessToken;
2790
2827
  private readonly getSessionToken;
2791
2828
  private readonly onUnauthorized;
2792
2829
  private readonly fetchFn;
@@ -4146,6 +4183,11 @@ declare class Space {
4146
4183
  data: Uint8Array;
4147
4184
  stat: FileStat;
4148
4185
  }>;
4186
+ /** Streaming read: async-iterate a stored file's decrypted chunks in order,
4187
+ * never holding the whole file in memory. Use for multi-GB files (a single
4188
+ * `Uint8Array` can't hold them) — e.g. a transcoder piping the raw to a temp
4189
+ * file. Same peer/origin shard sourcing as {@link getFile}. */
4190
+ getFileStream(manifest: FileManifest): AsyncGenerator<Uint8Array>;
4149
4191
  /** Declare a file's shards (ref++ + meter) for a manifest already stored —
4150
4192
  * used to back-fill accounting for files written before commit existed, or to
4151
4193
  * register a manifest received via sharing. `putFile` already commits new
@@ -4791,6 +4833,78 @@ declare class FunctionsNamespace {
4791
4833
  private path;
4792
4834
  }
4793
4835
 
4836
+ /**
4837
+ * `client.accessTokens` — manage an app's **access tokens**: scoped, expiring,
4838
+ * non-ZK machine-to-machine credentials (`mk_<env>_at_…`).
4839
+ *
4840
+ * const { plaintext } = await client.accessTokens.create(appId, {
4841
+ * scopes: ["db:read", "db:write"], env: "live", expiresInDays: 30,
4842
+ * label: "ci-runner",
4843
+ * });
4844
+ * // hand `plaintext` to the machine caller as its ClientOptions.accessToken
4845
+ *
4846
+ * These are MANAGEMENT calls — creating/listing/revoking tokens is authorized by
4847
+ * the developer session (same as the `agents`/`functions` namespaces). The token
4848
+ * itself resolves through the SAME accelerator path as an app key (the
4849
+ * `X-Muhkoo-Key` header), but is scoped to a fixed vocabulary of permissions and
4850
+ * expires. The plaintext is returned ONCE, on create — store it then; it can't
4851
+ * be read back.
4852
+ */
4853
+
4854
+ /** The fixed vocabulary of permissions an access token can be granted. */
4855
+ type Scope = "db:read" | "db:write" | "kv:read" | "kv:write" | "storage:read" | "storage:write" | "messages:read" | "messages:write" | "functions:invoke" | "ai:infer";
4856
+ /** All valid {@link Scope}s, in canonical order. */
4857
+ declare const ACCESS_TOKEN_SCOPES: Scope[];
4858
+ /** A token as returned by {@link AccessTokensNamespace.list} (never the plaintext). */
4859
+ interface AccessTokenInfo {
4860
+ keyId: string;
4861
+ env: "live" | "test";
4862
+ scopes: string[];
4863
+ /** Epoch ms, or absent if the token never expires. */
4864
+ expiresAt?: number;
4865
+ label?: string;
4866
+ createdAt: number;
4867
+ revoked: boolean;
4868
+ /** True once past {@link expiresAt}. */
4869
+ expired: boolean;
4870
+ }
4871
+ /** The editor-settable fields when minting an access token. */
4872
+ interface CreateAccessTokenInput {
4873
+ scopes: string[];
4874
+ /** Defaults to `live` on the accelerator. */
4875
+ env?: "live" | "test";
4876
+ /** Omit for a non-expiring token. */
4877
+ expiresInDays?: number;
4878
+ label?: string;
4879
+ }
4880
+ /** Create response — includes the one-time {@link plaintext} secret. */
4881
+ interface CreatedAccessToken {
4882
+ keyId: string;
4883
+ env: "live" | "test";
4884
+ /** The `mk_<env>_at_…` secret. Returned ONCE — store it now. */
4885
+ plaintext: string;
4886
+ scopes: string[];
4887
+ expiresAt: number;
4888
+ label?: string;
4889
+ createdAt: number;
4890
+ }
4891
+ interface AccessTokensNamespaceDeps {
4892
+ http: HttpClient;
4893
+ }
4894
+ declare class AccessTokensNamespace {
4895
+ private readonly deps;
4896
+ constructor(deps: AccessTokensNamespaceDeps);
4897
+ /** List the app's access tokens (metadata only — never the plaintext). */
4898
+ list(appId: string): Promise<AccessTokenInfo[]>;
4899
+ /** Mint an access token (owner/editor only). The plaintext is returned once. */
4900
+ create(appId: string, input: CreateAccessTokenInput): Promise<CreatedAccessToken>;
4901
+ /** Revoke an access token by its `keyId`. */
4902
+ revoke(appId: string, keyId: string): Promise<{
4903
+ revoked: boolean;
4904
+ }>;
4905
+ private path;
4906
+ }
4907
+
4794
4908
  /** The hosted Muhkoo Accelerator — the default {@link ClientOptions.baseUrl}. */
4795
4909
  declare const DEFAULT_BASE_URL = "https://api.muhkoo.dev";
4796
4910
  /** The hosted auth SPA — the default {@link ClientOptions.authBaseUrl}. */
@@ -4806,6 +4920,15 @@ interface ClientOptions {
4806
4920
  * New integrations should always pass one.
4807
4921
  */
4808
4922
  apiKey?: string;
4923
+ /**
4924
+ * A scoped, expiring **access token** (`mk_<env>_at_…`) — the non-ZK
4925
+ * machine-to-machine credential. It resolves through the SAME accelerator
4926
+ * path as {@link apiKey} (both ride the `X-Muhkoo-Key` header) and, when
4927
+ * set, takes precedence over it. Use it for server-side / CI callers that
4928
+ * shouldn't carry the app's publishable key. Mint one with
4929
+ * `client.accessTokens.create(...)`.
4930
+ */
4931
+ accessToken?: string;
4809
4932
  /**
4810
4933
  * Absolute URL of the accelerator (trailing slash optional). Defaults to
4811
4934
  * the hosted Muhkoo Accelerator ({@link DEFAULT_BASE_URL}); override to
@@ -4887,6 +5010,8 @@ declare class Client {
4887
5010
  readonly agents: AgentsNamespace;
4888
5011
  /** Serverless functions — `client.functions.deploy(appId, …)`, etc. */
4889
5012
  readonly functions: FunctionsNamespace;
5013
+ /** Access tokens — `client.accessTokens.create(appId, …)`, etc. */
5014
+ readonly accessTokens: AccessTokensNamespace;
4890
5015
  /** Offline cache + sync — `client.offline.status`, `client.offline.snapshot`, etc. */
4891
5016
  readonly offline: OfflineManager;
4892
5017
  private readonly session;
@@ -4921,6 +5046,75 @@ declare class Client {
4921
5046
  recoverSession(): Promise<boolean>;
4922
5047
  }
4923
5048
 
5049
+ /**
5050
+ * Passkey factor (M1.1) — WebAuthn with the **PRF extension**.
5051
+ *
5052
+ * A passkey becomes a device-bound, platform-synced source of a stable secret:
5053
+ * for a fixed salt, the authenticator's PRF returns the same 32 bytes, which we
5054
+ * HKDF into an AES key that wraps the master seed. The server never sees the
5055
+ * passkey — it's purely a local key source; the ZK proof remains the server auth.
5056
+ *
5057
+ * BROWSER ONLY (`navigator.credentials`). The PRF extension fields aren't in the
5058
+ * standard DOM types yet, so they're reached through narrow casts.
5059
+ */
5060
+ /** Whether this environment can do WebAuthn at all. (PRF support is checked at enroll.) */
5061
+ declare function passkeySupported(): boolean;
5062
+ /**
5063
+ * Whether this browser's authenticator can do the **PRF extension** our passkey
5064
+ * factor needs. A browser can save passkeys (e.g. for password autofill) yet not
5065
+ * expose PRF — PRF is what derives the stable secret we wrap the seed under, so a
5066
+ * passkey without it is useless to us.
5067
+ *
5068
+ * Uses `PublicKeyCredential.getClientCapabilities()` (the `extension:prf` cap)
5069
+ * where available. Returns:
5070
+ * - `true` — PRF is supported,
5071
+ * - `false` — definitively NOT supported (hide the option),
5072
+ * - `null` — couldn't determine (older browser without the capabilities API);
5073
+ * the caller may optimistically allow and let enroll surface a real
5074
+ * error if it turns out PRF isn't there.
5075
+ */
5076
+ declare function passkeyPrfCapable(): Promise<boolean | null>;
5077
+ /** Best-effort registrable RP id — the host. Apps spanning subdomains should pass
5078
+ * the parent domain (e.g. "muhkoo.dev") explicitly. */
5079
+ declare function defaultRpId(): string;
5080
+ /**
5081
+ * Can a passkey enrolled under `rpId` be used from the CURRENT origin?
5082
+ *
5083
+ * WebAuthn only accepts an RP id that is the origin's own host or a registrable
5084
+ * *parent* of it — so a passkey enrolled on `app.example.com` is unusable on
5085
+ * `app.example.net`, and one enrolled on a full host is unusable from a sibling
5086
+ * host. An app served on BOTH a custom domain and the platform host therefore
5087
+ * needs one passkey per origin.
5088
+ *
5089
+ * Call this BEFORE `navigator.credentials.get()`: passing a foreign rpId throws
5090
+ * a raw "The requested RPID did not match the origin or related origins", which
5091
+ * is a dead end for the user. Checking first lets the caller fall back to normal
5092
+ * sign-in (and offer to enroll a passkey for this origin) instead.
5093
+ */
5094
+ declare function rpIdUsableForOrigin(rpId: string | undefined | null, host?: string): boolean;
5095
+ /** Thrown when the account's passkey belongs to a different origin. Callers
5096
+ * should treat this as "no passkey here" and fall back to another factor. */
5097
+ declare class PasskeyOriginError extends Error {
5098
+ readonly code = "passkey_wrong_origin";
5099
+ constructor(message?: string);
5100
+ }
5101
+ interface PasskeyEnrollment {
5102
+ credentialId: Uint8Array;
5103
+ prfSalt: Uint8Array;
5104
+ prfOutput: Uint8Array;
5105
+ }
5106
+ /**
5107
+ * Create a passkey with PRF and return its credential id, a fresh PRF salt, and
5108
+ * the PRF output for that salt. Throws if the authenticator can't do PRF.
5109
+ */
5110
+ declare function createPasskeyWithPrf(opts: {
5111
+ rpId: string;
5112
+ rpName: string;
5113
+ username: string;
5114
+ }): Promise<PasskeyEnrollment>;
5115
+ /** Evaluate a passkey's PRF for `salt` → 32 bytes. Used at recover/login. */
5116
+ declare function evaluatePasskeyPrf(rpId: string, credentialId: Uint8Array, salt: Uint8Array): Promise<Uint8Array>;
5117
+
4924
5118
  /**
4925
5119
  * Muhkoo app decorators — declare your app's agent-facing surface in code, then
4926
5120
  * "eject" a system prompt you hand to a Programmable Agent.
@@ -4983,6 +5177,11 @@ interface MuhkooDBMeta {
4983
5177
  table?: string;
4984
5178
  /** Read-only by default. */
4985
5179
  access?: MuhkooDBAccess;
5180
+ /**
5181
+ * Backend-only table — omitted from {@link ejectAgentPrompt}. Use for tables
5182
+ * an agent should never be told about (server-managed / internal state).
5183
+ */
5184
+ backend?: boolean;
4986
5185
  description: string;
4987
5186
  }
4988
5187
  /** A serverless function the agent can invoke via `call_function`. */
@@ -4999,6 +5198,7 @@ interface TableEntry {
4999
5198
  table: string;
5000
5199
  access: MuhkooDBAccess;
5001
5200
  description: string;
5201
+ backend: boolean;
5002
5202
  }
5003
5203
  interface FunctionEntry {
5004
5204
  name: string;
@@ -5819,5 +6019,5 @@ declare class KeyringClient implements KeyringTransport {
5819
6019
  fetchMetadata(): Promise<SpaceMetadata | null>;
5820
6020
  }
5821
6021
 
5822
- export { AES_GCM_IV_BYTES, AES_GCM_KEY_BYTES, AES_GCM_TAG_BYTES, AgentsNamespace, AuthClient, AuthNamespace, AuthPublicInput, Authenticator, BlockEngine, BroadcastChannel, BroadcastChannelEvents, ChannelExistsError, ChannelNotFoundError, ChunkCipher, Client, ConnectivityManager, DEFAULT_AUTH_BASE_URL, DEFAULT_BASE_URL, DEFAULT_FN_HOST_SUFFIX, DbCache, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, HLC, HashKnowledge, HttpClient, HttpError, IndexedDbStore, KEEPER_MEMBER_ID, KeyStore, KeyringClient, KvCache, KvNamespace, LocalEngineHost, LocalStorageSessionStore, MemorySessionStore, Message, Message as MessageDefault, MessageNamespace, MuhkooAgent, MuhkooDB, MuhkooFunction, MuhkooSpace, NoopStore, OfflineLockedError, OfflineManager, OutboundQueue, P2P_SUBJECT, PBKDF2_DEFAULT_ITERATIONS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, ReedSolomonCodec, Space as Room, SerializeMessage, SessionState, ShardCache, ShardClient, SharedSpaceClient, SnapshotNamespace, Space, SpaceCache, SpaceKeyring, SpaceNamespace, SpacePacketCipher, SpaceSignaler, StorageNamespace, SyncEngine, VaultUnavailableError, WSTransport, WebRtcTransport, WorkerEngineHost, ZERO_HLC, ZkAuth, buildCommitment, compareHlc, compilePrograms, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultSessionStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, exportPublicKeyBase64, exportPublicKeyHex, generateAuthProof, generatePkce, getMuhkooAppDescriptor, getSubtle, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isOfflineCapable, isP2pCapable, isProvisional, manifestToStat, materializeRow, mergeMap, mergeMessage, mergeRegister, messageKey, pack, padHandle, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, sealSeed, shardHash, signMessage, stableStringify, toField, tombstoneRow, unpack, unsealSeed, unwrapWithPassphrase, verify, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
5823
- export type { ACL, ACLEntry, AgentConfig, AgentCreateInput, AgentDbToolMode, AgentProvisioned, AgentScopeOpts, AgentSkill, AgentToolsConfig, AgentTrigger, AgentTriggerType, AgentUpdateInput, AgentsNamespaceDeps, AttachedPeerNetwork, AuthClientOptions, AuthKeyPair, AuthSuccess, AuthToken, AuthType, AuthUser, BlockStore, Bn128WasmInstance, BroadcastChannelEvent, BroadcastChannelOptions, CachedSpaceMessage, ChannelLike, ChunkKeyMaterial, ChunkManifest, CipherFrame, CipherMessage, CipherMessageHeader, CircuitBufferConfig, CircuitUrls, ClientOptions, ConnectivityOptions, ConnectivityState, DbQueryPage, DehydratedKeypair, DehydratedKeys, DoubleRatchetCipherDeps, ECDHCurve, EncodeResult, EngineHandle, EngineHost, EphemeralEvent, EpochKeyProvider, FileManifest, FileNamespaceDeps, FileStat, FileStorageOptions, FunctionCaps, FunctionConfig, FunctionDeployInput, FunctionInvokeOptions, FunctionScopeOpts, FunctionTrigger, FunctionTriggerType, FunctionTriggers, FunctionUpdateInput, FunctionsNamespaceDeps, Groth16Proof, Hasher, HlcParts, HlcState, HttpClientOptions, IncomingFrame, KeyExchangeFrame, KeyPair, Keypair, KeyringClientDeps, KeyringTransport, KvEntry, KvNamespaceDeps, LoginOptions, LwwMap, LwwRegister, MessageBody, MessageDeletedEvent, MessageEntry, MessageEvent, MessageHeaders, MessageNamespaceDeps, MessageOp, MessageOptions, MessageSubscription, MuhkooAgentMeta, MuhkooAgentToolsConfig, MuhkooAppDescriptor, MuhkooDBAccess, MuhkooDBMeta, MuhkooFunctionMeta, MuhkooMessageEvent, MuhkooSpaceMeta, OAuthProvider, OfflineEntry, OfflineManagerDeps, OfflineStore, OutSink, PacketCipher, PacketHeaders, PacketOptions, Participant, PeerBlockSource, PeerExchangeOptions, PeerId, PeerNetworkOptions, PeerTransport, Permission, PermissionCheckRequest, PermissionCheckResult, PersonalSpaceClientOptions, Pkce, PublicKeyJWK, QueueEntry, RatchetState, ReceiveResult, RegisterParams, Replayer, Role, SpaceDeps as RoomDeps, SpaceFileMetadata as RoomFileMetadata, SealedHandoff, SealedHeaders, Session, SessionOptions, SessionStore, SetOptions, ShardByteCache, ShardClientOptions, SharedSpaceClientOptions, SignalEnvelope, SignalKind, SignalingSpace, SnapshotNamespaceDeps, SnarkProof, SpaceChannelLike, SpaceCursor, SpaceDeps, SpaceFileMetadata, SpaceKeyCache, SpaceKeyringDeps, SpaceMessageEvent, SpaceNamespaceDeps, SpaceOfflineAdapter, StorageChangeEvent, StoreName, StoredSession, Subscription, UserIdentity, VaultFactor, VerificationKey, WSMessage, WSMessageType, WSTransportOptions, WebRtcTransportOptions, WrappedPayload, WriteFileInput, WriteFileOptions, WriteToShardsInput, ZkAuthDeps, ZkAuthenticateRequest, ZkChallengeResponse, ZkCompiled, ZkIdentity, ZkRegisterRequest, ZkRegisterResponse };
6022
+ export { ACCESS_TOKEN_SCOPES, AES_GCM_IV_BYTES, AES_GCM_KEY_BYTES, AES_GCM_TAG_BYTES, AccessTokensNamespace, AgentsNamespace, AuthClient, AuthNamespace, AuthPublicInput, Authenticator, BlockEngine, BroadcastChannel, BroadcastChannelEvents, ChannelExistsError, ChannelNotFoundError, ChunkCipher, Client, ConnectivityManager, DEFAULT_AUTH_BASE_URL, DEFAULT_BASE_URL, DEFAULT_FN_HOST_SUFFIX, DbCache, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, HLC, HashKnowledge, HttpClient, HttpError, IndexedDbStore, KEEPER_MEMBER_ID, KeyStore, KeyringClient, KvCache, KvNamespace, LocalEngineHost, LocalStorageSessionStore, MemorySessionStore, Message, Message as MessageDefault, MessageNamespace, MuhkooAgent, MuhkooDB, MuhkooFunction, MuhkooSpace, NoopStore, OfflineLockedError, OfflineManager, OutboundQueue, P2P_SUBJECT, PBKDF2_DEFAULT_ITERATIONS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PasskeyOriginError, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, ReedSolomonCodec, Space as Room, SerializeMessage, SessionState, ShardCache, ShardClient, SharedSpaceClient, SnapshotNamespace, Space, SpaceCache, SpaceKeyring, SpaceNamespace, SpacePacketCipher, SpaceSignaler, StorageNamespace, SyncEngine, VaultUnavailableError, WSTransport, WebRtcTransport, WorkerEngineHost, ZERO_HLC, ZkAuth, buildCommitment, compareHlc, compilePrograms, createPasskeyWithPrf, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultRpId, defaultSessionStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, evaluatePasskeyPrf, exportPublicKeyBase64, exportPublicKeyHex, generateAuthProof, generatePkce, getMuhkooAppDescriptor, getSubtle, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isOfflineCapable, isP2pCapable, isProvisional, manifestToStat, materializeRow, mergeMap, mergeMessage, mergeRegister, messageKey, pack, padHandle, passkeyPrfCapable, passkeySupported, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, rpIdUsableForOrigin, sealSeed, shardHash, signMessage, stableStringify, toField, tombstoneRow, unpack, unsealSeed, unwrapWithPassphrase, verify, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
6023
+ export type { ACL, ACLEntry, AccessTokenInfo, AccessTokensNamespaceDeps, AgentConfig, AgentCreateInput, AgentDbToolMode, AgentProvisioned, AgentScopeOpts, AgentSkill, AgentToolsConfig, AgentTrigger, AgentTriggerType, AgentUpdateInput, AgentsNamespaceDeps, AttachedPeerNetwork, AuthClientOptions, AuthKeyPair, AuthSuccess, AuthToken, AuthType, AuthUser, BlockStore, Bn128WasmInstance, BroadcastChannelEvent, BroadcastChannelOptions, CachedSpaceMessage, ChannelLike, ChunkKeyMaterial, ChunkManifest, CipherFrame, CipherMessage, CipherMessageHeader, CircuitBufferConfig, CircuitUrls, ClientOptions, ConnectivityOptions, ConnectivityState, CreateAccessTokenInput, CreatedAccessToken, DbQueryPage, DehydratedKeypair, DehydratedKeys, DoubleRatchetCipherDeps, ECDHCurve, EncodeResult, EngineHandle, EngineHost, EphemeralEvent, EpochKeyProvider, FileManifest, FileNamespaceDeps, FileStat, FileStorageOptions, FunctionCaps, FunctionConfig, FunctionDeployInput, FunctionInvokeOptions, FunctionScopeOpts, FunctionTrigger, FunctionTriggerType, FunctionTriggers, FunctionUpdateInput, FunctionsNamespaceDeps, Groth16Proof, Hasher, HlcParts, HlcState, HttpClientOptions, IncomingFrame, KeyExchangeFrame, KeyPair, Keypair, KeyringClientDeps, KeyringTransport, KvEntry, KvNamespaceDeps, LoginOptions, LwwMap, LwwRegister, MessageBody, MessageDeletedEvent, MessageEntry, MessageEvent, MessageHeaders, MessageNamespaceDeps, MessageOp, MessageOptions, MessageSubscription, MuhkooAgentMeta, MuhkooAgentToolsConfig, MuhkooAppDescriptor, MuhkooDBAccess, MuhkooDBMeta, MuhkooFunctionMeta, MuhkooMessageEvent, MuhkooSpaceMeta, OAuthProvider, OfflineEntry, OfflineManagerDeps, OfflineStore, OutSink, PacketCipher, PacketHeaders, PacketOptions, Participant, PasskeyEnrollment, PeerBlockSource, PeerExchangeOptions, PeerId, PeerNetworkOptions, PeerTransport, Permission, PermissionCheckRequest, PermissionCheckResult, PersonalSpaceClientOptions, Pkce, PublicKeyJWK, QueueEntry, RatchetState, ReceiveResult, RegisterParams, Replayer, Role, SpaceDeps as RoomDeps, SpaceFileMetadata as RoomFileMetadata, Scope, SealedHandoff, SealedHeaders, Session, SessionOptions, SessionStore, SetOptions, ShardByteCache, ShardClientOptions, SharedSpaceClientOptions, SignalEnvelope, SignalKind, SignalingSpace, SnapshotNamespaceDeps, SnarkProof, SpaceChannelLike, SpaceCursor, SpaceDeps, SpaceFileMetadata, SpaceKeyCache, SpaceKeyringDeps, SpaceMessageEvent, SpaceNamespaceDeps, SpaceOfflineAdapter, StorageChangeEvent, StoreName, StoredSession, Subscription, UserIdentity, VaultFactor, VerificationKey, WSMessage, WSMessageType, WSTransportOptions, WebRtcTransportOptions, WrappedPayload, WriteFileInput, WriteFileOptions, WriteToShardsInput, ZkAuthDeps, ZkAuthenticateRequest, ZkChallengeResponse, ZkCompiled, ZkIdentity, ZkRegisterRequest, ZkRegisterResponse };