@muhkoo/connect 0.10.13-alpha.0 → 0.10.14-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
@@ -2833,12 +2833,22 @@ declare class HostedAuth {
2833
2833
  /**
2834
2834
  * The account's paired devices. Session-authed.
2835
2835
  *
2836
- * UI copy note (spec §10.6): removing a device signs it out and forces a full
2837
- * re-approval, but it **does not take back the encryption key the device
2838
- * already holds**. Say so — users will assume otherwise.
2836
+ * UI copy note (spec §10.6): removing a device forces a full re-approval next
2837
+ * time, but be careful what you promise. It does NOT sign the device out —
2838
+ * the server returns `session_revoked: false`, and that session runs until it
2839
+ * expires — and it cannot take back the master seed the device already holds.
2840
+ * Users assume "remove" means "locked out immediately"; it does not.
2839
2841
  */
2840
2842
  listPairedDevices(): Promise<PairedDevice[]>;
2841
- /** Remove a paired device and revoke its session. Session-authed. */
2843
+ /**
2844
+ * Un-pair a device. Session-authed.
2845
+ *
2846
+ * It stops being a "known" device, so pairing it again needs full approval
2847
+ * with a fresh factor. It does NOT end that device's current session — the
2848
+ * server reports `session_revoked: false` — and it cannot take back the
2849
+ * master seed the device already holds. Do not write UI copy promising an
2850
+ * immediate sign-out; users will assume it and be wrong.
2851
+ */
2842
2852
  revokePairedDevice(id: string): Promise<void>;
2843
2853
  /**
2844
2854
  * The whole tail of an approved pairing: unseal → derive → **verify** →
@@ -5705,6 +5715,23 @@ declare function defaultRpId(): string;
5705
5715
  * sign-in (and offer to enroll a passkey for this origin) instead.
5706
5716
  */
5707
5717
  declare function rpIdUsableForOrigin(rpId: string | undefined | null, host?: string): boolean;
5718
+ /**
5719
+ * Would {@link AuthNamespace.loginWithPasskey} accept a factor recorded with
5720
+ * this `rpId`, from `host`?
5721
+ *
5722
+ * This is deliberately NOT the same as {@link rpIdUsableForOrigin}. That answers
5723
+ * a raw WebAuthn question and is `false` for a missing rpId. But a factor with
5724
+ * NO recorded rpId predates per-origin enrolment, and `loginWithPasskey`
5725
+ * resolves it as `params.rpId ?? host` — so it IS usable, from anywhere.
5726
+ *
5727
+ * Callers deciding "should I even try a passkey here?" must use this one.
5728
+ * Reaching for `rpIdUsableForOrigin` instead silently excludes every legacy
5729
+ * passkey holder, which has locked real users out of production twice.
5730
+ *
5731
+ * The `?? host` fallback applies to nullish only, matching `loginWithPasskey`:
5732
+ * an empty-string rpId stays unusable rather than resolving to the host.
5733
+ */
5734
+ declare function passkeyUsableFromOrigin(rpId: string | undefined | null, host?: string): boolean;
5708
5735
  /** Thrown when the account's passkey belongs to a different origin. Callers
5709
5736
  * should treat this as "no passkey here" and fall back to another factor. */
5710
5737
  declare class PasskeyOriginError extends Error {
@@ -6632,5 +6659,5 @@ declare class KeyringClient implements KeyringTransport {
6632
6659
  fetchMetadata(): Promise<SpaceMetadata | null>;
6633
6660
  }
6634
6661
 
6635
- 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, DEVICE_IDENTITY_STORAGE_KEY, DEVICE_KEY_DB_NAME, DbCache, DevicePairingError, DeviceStoreUnavailableError, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, HLC, HashKnowledge, HostedAuth, 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, PAIRING_CODE_ALPHABET, PAIRING_CODE_LENGTH, PBKDF2_DEFAULT_ITERATIONS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PasskeyOriginError, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, ReauthRequiredError, 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, canonicalUserCode, clearDeviceIdentity, compareHlc, compilePrograms, configureDeviceStore, createPasskeyWithPrf, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultRpId, defaultSessionStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, deviceFingerprint, deviceIdentityIsEphemeral, deviceIdentityKey, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, evaluatePasskeyPrf, exportPublicKeyBase64, exportPublicKeyHex, formatUserCode, generateAuthProof, generateDevicePairingKeypair, generatePkce, getMuhkooAppDescriptor, getSubtle, hasDeviceIdentity, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isOfflineCapable, isP2pCapable, isProvisional, loadDeviceIdentity, manifestToStat, materializeRow, mergeMap, mergeMessage, mergeRegister, messageKey, pack, padHandle, pairingVerificationCode, passkeyPrfCapable, passkeySupported, persistDeviceIdentity, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, rpIdUsableForOrigin, sealSeed, sealSeedToDevice, shardHash, signMessage, stableStringify, toField, tombstoneRow, unpack, unsealSeed, unsealSeedFromDevice, unwrapWithPassphrase, verify, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
6662
+ 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, DEVICE_IDENTITY_STORAGE_KEY, DEVICE_KEY_DB_NAME, DbCache, DevicePairingError, DeviceStoreUnavailableError, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, HLC, HashKnowledge, HostedAuth, 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, PAIRING_CODE_ALPHABET, PAIRING_CODE_LENGTH, PBKDF2_DEFAULT_ITERATIONS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PasskeyOriginError, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, ReauthRequiredError, 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, canonicalUserCode, clearDeviceIdentity, compareHlc, compilePrograms, configureDeviceStore, createPasskeyWithPrf, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultRpId, defaultSessionStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, deviceFingerprint, deviceIdentityIsEphemeral, deviceIdentityKey, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, evaluatePasskeyPrf, exportPublicKeyBase64, exportPublicKeyHex, formatUserCode, generateAuthProof, generateDevicePairingKeypair, generatePkce, getMuhkooAppDescriptor, getSubtle, hasDeviceIdentity, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isOfflineCapable, isP2pCapable, isProvisional, loadDeviceIdentity, manifestToStat, materializeRow, mergeMap, mergeMessage, mergeRegister, messageKey, pack, padHandle, pairingVerificationCode, passkeyPrfCapable, passkeySupported, passkeyUsableFromOrigin, persistDeviceIdentity, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, rpIdUsableForOrigin, sealSeed, sealSeedToDevice, shardHash, signMessage, stableStringify, toField, tombstoneRow, unpack, unsealSeed, unsealSeedFromDevice, unwrapWithPassphrase, verify, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
6636
6663
  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, DeviceBlobStore, DeviceKeyVault, DevicePairingErrorReason, DevicePairingKeypair, DevicePairingPoll, DevicePairingRequest, DevicePairingSession, 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, HostedAuthDeps, 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, MuhkooKeystoreBridge, MuhkooMessageEvent, MuhkooSpaceMeta, OAuthProvider, OfflineEntry, OfflineManagerDeps, OfflineStore, OutSink, PacketCipher, PacketHeaders, PacketOptions, PairedDevice, Participant, PasskeyEnrollment, PeerBlockSource, PeerExchangeOptions, PeerId, PeerNetworkOptions, PeerTransport, Permission, PermissionCheckRequest, PermissionCheckResult, PersistedDeviceIdentity, 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, StartDevicePairingOptions, StorageChangeEvent, StoreName, StoredSession, Subscription, UserIdentity, VaultFactor, VerificationKey, WSMessage, WSMessageType, WSTransportOptions, WaitForDevicePairingOptions, WebRtcTransportOptions, WrappedPayload, WriteFileInput, WriteFileOptions, WriteToShardsInput, ZkAuthDeps, ZkAuthenticateRequest, ZkChallengeResponse, ZkCompiled, ZkIdentity, ZkRegisterRequest, ZkRegisterResponse };
@@ -3233,7 +3233,7 @@ function base64UrlDecode(s) {
3233
3233
  * expect (and isn't serving a stale cached bundle). Keep this in sync with
3234
3234
  * `package.json` `version`.
3235
3235
  */
3236
- const VERSION = "0.10.13-alpha.0";
3236
+ const VERSION = "0.10.14-alpha.0";
3237
3237
 
3238
3238
  /**
3239
3239
  * `HttpClient` — the one place the unified {@link Client} talks to the
@@ -3769,6 +3769,30 @@ function rpIdUsableForOrigin(rpId, host) {
3769
3769
  return false;
3770
3770
  return h === rpId || h.endsWith(`.${rpId}`);
3771
3771
  }
3772
+ /**
3773
+ * Would {@link AuthNamespace.loginWithPasskey} accept a factor recorded with
3774
+ * this `rpId`, from `host`?
3775
+ *
3776
+ * This is deliberately NOT the same as {@link rpIdUsableForOrigin}. That answers
3777
+ * a raw WebAuthn question and is `false` for a missing rpId. But a factor with
3778
+ * NO recorded rpId predates per-origin enrolment, and `loginWithPasskey`
3779
+ * resolves it as `params.rpId ?? host` — so it IS usable, from anywhere.
3780
+ *
3781
+ * Callers deciding "should I even try a passkey here?" must use this one.
3782
+ * Reaching for `rpIdUsableForOrigin` instead silently excludes every legacy
3783
+ * passkey holder, which has locked real users out of production twice.
3784
+ *
3785
+ * The `?? host` fallback applies to nullish only, matching `loginWithPasskey`:
3786
+ * an empty-string rpId stays unusable rather than resolving to the host.
3787
+ */
3788
+ function passkeyUsableFromOrigin(rpId, host) {
3789
+ const h = host ?? defaultRpId();
3790
+ if (!h)
3791
+ return false;
3792
+ if (rpId == null)
3793
+ return true;
3794
+ return rpIdUsableForOrigin(rpId, h);
3795
+ }
3772
3796
  /** Thrown when the account's passkey belongs to a different origin. Callers
3773
3797
  * should treat this as "no passkey here" and fall back to another factor. */
3774
3798
  class PasskeyOriginError extends Error {
@@ -4720,9 +4744,11 @@ class HostedAuth {
4720
4744
  /**
4721
4745
  * The account's paired devices. Session-authed.
4722
4746
  *
4723
- * UI copy note (spec §10.6): removing a device signs it out and forces a full
4724
- * re-approval, but it **does not take back the encryption key the device
4725
- * already holds**. Say so — users will assume otherwise.
4747
+ * UI copy note (spec §10.6): removing a device forces a full re-approval next
4748
+ * time, but be careful what you promise. It does NOT sign the device out —
4749
+ * the server returns `session_revoked: false`, and that session runs until it
4750
+ * expires — and it cannot take back the master seed the device already holds.
4751
+ * Users assume "remove" means "locked out immediately"; it does not.
4726
4752
  */
4727
4753
  async listPairedDevices() {
4728
4754
  const res = await this.deviceApi("GET", "/api/auth/devices", undefined, true);
@@ -4740,7 +4766,15 @@ class HostedAuth {
4740
4766
  };
4741
4767
  });
4742
4768
  }
4743
- /** Remove a paired device and revoke its session. Session-authed. */
4769
+ /**
4770
+ * Un-pair a device. Session-authed.
4771
+ *
4772
+ * It stops being a "known" device, so pairing it again needs full approval
4773
+ * with a fresh factor. It does NOT end that device's current session — the
4774
+ * server reports `session_revoked: false` — and it cannot take back the
4775
+ * master seed the device already holds. Do not write UI copy promising an
4776
+ * immediate sign-out; users will assume it and be wrong.
4777
+ */
4744
4778
  async revokePairedDevice(id) {
4745
4779
  if (!id)
4746
4780
  throw new DevicePairingError("error", { message: "revokePairedDevice: `id` is required." });
@@ -5313,7 +5347,34 @@ class ZkAuth {
5313
5347
  return { user, unlocked: true };
5314
5348
  try {
5315
5349
  const factors = await this.listFactors();
5316
- if (factors.some((f) => f.type === "passkey")) {
5350
+ // Only auto-attempt when a passkey is usable from THIS origin.
5351
+ //
5352
+ // Passkeys are per-origin, and an account's passkey may belong to a
5353
+ // different host entirely (hosted-auth enrolment records
5354
+ // `auth.muhkoo.dev`, so a user who added a passkey there is
5355
+ // mismatched on every app host). Attempting anyway means
5356
+ // `loginWithPasskey` does an unauthenticated vault read for a
5357
+ // passkey this origin doesn't have. Today that returns a decoy with
5358
+ // no `prfSalt`, so it fails the guard before touching WebAuthn — the
5359
+ // silence is incidental. Once the decoy is reshaped to be
5360
+ // indistinguishable (it must carry `prfSalt` to stop being an
5361
+ // account-enumeration oracle) that same call would sail through and
5362
+ // fire a modal `navigator.credentials.get()` at page load, on every
5363
+ // boot, for a credential that does not exist. `resume()` is awaited
5364
+ // inside every app's readiness gate, so that dialog lands on the
5365
+ // splash screen before the user has asked for anything.
5366
+ //
5367
+ // `listFactors` is session-authenticated and returns real records,
5368
+ // so decoys never appear here — this reads true rpIds.
5369
+ //
5370
+ // `passkeyUsableFromOrigin`, NOT `rpIdUsableForOrigin`: a factor
5371
+ // with no recorded rpId predates per-origin enrolment and is still
5372
+ // usable (`loginWithPasskey` resolves it as `params.rpId ?? host`).
5373
+ // The raw predicate is false for undefined, so using it here would
5374
+ // skip exactly those users — the regression that locked legacy
5375
+ // passkey holders out of production twice.
5376
+ const host = defaultRpId();
5377
+ if (factors.some((f) => f.type === "passkey" && passkeyUsableFromOrigin(f.rpId, host))) {
5317
5378
  await this.loginWithPasskey(user.username);
5318
5379
  }
5319
5380
  }
@@ -13601,5 +13662,5 @@ var bundledLoader = /*#__PURE__*/Object.freeze({
13601
13662
  default: loadRsWasm
13602
13663
  });
13603
13664
 
13604
- 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_BASE_URL, DEFAULT_FN_HOST_SUFFIX, DEVICE_IDENTITY_STORAGE_KEY, DEVICE_KEY_DB_NAME, DbCache, DbNamespace, DbTable, DevicePairingError, DeviceStoreUnavailableError, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, HLC, HashKnowledge, HostedAuth, HttpClient, HttpError, IndexedDbStore, KEEPER_MEMBER_ID, KeyStore, KeyringClient, KvCache, KvNamespace, LocalEngineHost, LocalStorageSessionStore, Logger, MemorySessionStore, Message, Message as MessageDefault, MessageNamespace, MuhkooAgent, MuhkooDB, MuhkooFunction, MuhkooSpace, NoopStore, OfflineLockedError, OfflineManager, OutboundQueue, P2P_SUBJECT, PAIRING_CODE_ALPHABET, PAIRING_CODE_LENGTH, PBKDF2_DEFAULT_ITERATIONS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PasskeyOriginError, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, Ready, ReauthRequiredError, ReedSolomonCodec, Retry, Space as Room, SerializeMessage, SessionState, ShardCache, ShardClient, SharedSpaceClient, SnapshotNamespace, Space, SpaceCache, SpaceKeyring, SpaceNamespace, SpacePacketCipher, SpaceSignaler, StorageNamespace, SyncEngine, VERSION, VaultUnavailableError, WSTransport, WebRtcTransport, WorkerEngineHost, ZERO_HLC, ZkAuth, _accountId, _formatBytes, _messageId, _objectId, _packetId, _socketId, _userId, appLogger$1 as appLogger, assertType, base58Decode, base58Encode, buildCommitment, canonicalUserCode, clearDeviceIdentity, compareHlc, compilePrograms, concatBytes, configureDeviceStore, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultSessionStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, deserialize, deviceFingerprint, deviceIdentityIsEphemeral, deviceIdentityKey, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, exportPublicKeyBase64, exportPublicKeyHex, formatUserCode, fromBase64$1 as fromBase64, fromBase64Url, fromHex, generateAuthProof, generateChecksum, generateDevicePairingKeypair, generateId, generatePkce, getIPAddress, getId, getMuhkooAppDescriptor, getSubtle, hasDeviceIdentity, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isNumber, isOfflineCapable, isP2pCapable, isProvisional, loadDeviceIdentity, log, manifestToStat, materializeRow, mergeMap, mergeMessage, mergeRegister, messageKey, pack, padHandle, pairingVerificationCode, persistDeviceIdentity, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, rpIdUsableForOrigin, sealSeed, sealSeedToDevice, serialize, shardHash, signMessage, stableStringify, toBase64$1 as toBase64, toBase64Url, toField, toHex, tombstoneRow, unpack, unsealSeed, unsealSeedFromDevice, unwrapWithPassphrase, utf8Decode, utf8Encode, verify, verifyChecksum, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
13665
+ 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_BASE_URL, DEFAULT_FN_HOST_SUFFIX, DEVICE_IDENTITY_STORAGE_KEY, DEVICE_KEY_DB_NAME, DbCache, DbNamespace, DbTable, DevicePairingError, DeviceStoreUnavailableError, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, HLC, HashKnowledge, HostedAuth, HttpClient, HttpError, IndexedDbStore, KEEPER_MEMBER_ID, KeyStore, KeyringClient, KvCache, KvNamespace, LocalEngineHost, LocalStorageSessionStore, Logger, MemorySessionStore, Message, Message as MessageDefault, MessageNamespace, MuhkooAgent, MuhkooDB, MuhkooFunction, MuhkooSpace, NoopStore, OfflineLockedError, OfflineManager, OutboundQueue, P2P_SUBJECT, PAIRING_CODE_ALPHABET, PAIRING_CODE_LENGTH, PBKDF2_DEFAULT_ITERATIONS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PasskeyOriginError, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, Ready, ReauthRequiredError, ReedSolomonCodec, Retry, Space as Room, SerializeMessage, SessionState, ShardCache, ShardClient, SharedSpaceClient, SnapshotNamespace, Space, SpaceCache, SpaceKeyring, SpaceNamespace, SpacePacketCipher, SpaceSignaler, StorageNamespace, SyncEngine, VERSION, VaultUnavailableError, WSTransport, WebRtcTransport, WorkerEngineHost, ZERO_HLC, ZkAuth, _accountId, _formatBytes, _messageId, _objectId, _packetId, _socketId, _userId, appLogger$1 as appLogger, assertType, base58Decode, base58Encode, buildCommitment, canonicalUserCode, clearDeviceIdentity, compareHlc, compilePrograms, concatBytes, configureDeviceStore, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultSessionStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, deserialize, deviceFingerprint, deviceIdentityIsEphemeral, deviceIdentityKey, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, exportPublicKeyBase64, exportPublicKeyHex, formatUserCode, fromBase64$1 as fromBase64, fromBase64Url, fromHex, generateAuthProof, generateChecksum, generateDevicePairingKeypair, generateId, generatePkce, getIPAddress, getId, getMuhkooAppDescriptor, getSubtle, hasDeviceIdentity, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isNumber, isOfflineCapable, isP2pCapable, isProvisional, loadDeviceIdentity, log, manifestToStat, materializeRow, mergeMap, mergeMessage, mergeRegister, messageKey, pack, padHandle, pairingVerificationCode, passkeyUsableFromOrigin, persistDeviceIdentity, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, rpIdUsableForOrigin, sealSeed, sealSeedToDevice, serialize, shardHash, signMessage, stableStringify, toBase64$1 as toBase64, toBase64Url, toField, toHex, tombstoneRow, unpack, unsealSeed, unsealSeedFromDevice, unwrapWithPassphrase, utf8Decode, utf8Encode, verify, verifyChecksum, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
13605
13666
  //# sourceMappingURL=index.js.map