@muhkoo/connect 0.15.0-alpha.11 → 0.15.0-alpha.13

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
@@ -1400,6 +1400,7 @@ declare class HttpClient {
1400
1400
  private isSameOrigin;
1401
1401
  get<T = unknown>(path: string): Promise<T>;
1402
1402
  post<T = unknown>(path: string, body?: unknown): Promise<T>;
1403
+ put<T = unknown>(path: string, body?: unknown): Promise<T>;
1403
1404
  patch<T = unknown>(path: string, body?: unknown): Promise<T>;
1404
1405
  del<T = unknown>(path: string, body?: unknown): Promise<T>;
1405
1406
  private request;
@@ -7156,6 +7157,8 @@ interface AgentToolsConfig {
7156
7157
  functions: string[];
7157
7158
  /** Whether the agent may resolve the app's PUBLIC channels. */
7158
7159
  channels: boolean;
7160
+ /** Allowlisted collection names the agent may search with its `search_collection` tool (text-mode collections only, at most 20). */
7161
+ collections?: string[];
7159
7162
  /** Max tool-call rounds per reply (1..6). */
7160
7163
  maxIterations: number;
7161
7164
  }
@@ -7559,6 +7562,233 @@ declare class AppNamespace {
7559
7562
  access(): Promise<AppAccess>;
7560
7563
  }
7561
7564
 
7565
+ /**
7566
+ * `client.vectors` — vector search over the app's collections. A developer
7567
+ * defines a collection (text or vectors mode, filterable fields, access) in the
7568
+ * Muhkoo portal or CLI; this namespace reads and writes its entries:
7569
+ *
7570
+ * const docs = client.vectors.collection('docs');
7571
+ * const { mutationId } = await docs.upsert([
7572
+ * { id: 'doc-1', text: 'How to reset your password…', data: { category: 'faq' } },
7573
+ * ]);
7574
+ * const state = await docs.status(mutationId); // 'pending' | 'done' | 'unknown'
7575
+ * const matches = await docs.query({ text: 'forgot password', topK: 5, filter: { category: 'faq' } });
7576
+ * const [entry] = await docs.get(['doc-1']);
7577
+ * await docs.delete(['doc-1']);
7578
+ *
7579
+ * Writes are asynchronous: upsert and delete return a `mutationId` at once, and
7580
+ * entries usually become searchable within one to two minutes. `get` returns
7581
+ * only entries whose writes have finished, never ones still pending.
7582
+ *
7583
+ * Entries are server-readable: Muhkoo stores the text, vectors and data you send
7584
+ * so it can embed and search them. Don't put anything in a collection that the
7585
+ * platform must not see.
7586
+ *
7587
+ * Authorization is the app key ({@link HttpClient} stamps it on every request);
7588
+ * the app and environment come from the key. Server errors (`{ error, code }`)
7589
+ * reach callers as {@link HttpError}; the SDK does no validation of its own.
7590
+ */
7591
+
7592
+ /** A ready notice: the entries of one upsert call are now searchable. */
7593
+ interface VectorReadyEvent {
7594
+ collection: string;
7595
+ ids: string[];
7596
+ mutationId: string;
7597
+ }
7598
+ /**
7599
+ * A wait for a write ran out of time. The write itself was accepted; check
7600
+ * {@link VectorCollection.status} later with `mutationId`.
7601
+ */
7602
+ declare class VectorWaitTimeoutError extends Error {
7603
+ readonly mutationId: string;
7604
+ constructor(mutationId: string, timeoutMs: number);
7605
+ }
7606
+ type WaitOptions = {
7607
+ space?: Space;
7608
+ timeoutMs?: number;
7609
+ };
7610
+ type VectorAudience = "everyone" | "writer";
7611
+ type VectorNotify = false | {
7612
+ space?: string;
7613
+ audience?: VectorAudience;
7614
+ };
7615
+ interface VectorEntryInput {
7616
+ id: string;
7617
+ text?: string;
7618
+ vector?: number[];
7619
+ data?: Record<string, unknown>;
7620
+ storeText?: boolean;
7621
+ }
7622
+ interface VectorUpsertOptions {
7623
+ notify?: VectorNotify;
7624
+ }
7625
+ interface VectorWriteResult {
7626
+ mutationId: string;
7627
+ count: number;
7628
+ }
7629
+ interface VectorQueryInput {
7630
+ text?: string;
7631
+ vector?: number[];
7632
+ topK?: number;
7633
+ filter?: Record<string, unknown>;
7634
+ includeData?: boolean;
7635
+ includeText?: boolean;
7636
+ }
7637
+ interface VectorMatch {
7638
+ id: string;
7639
+ score: number;
7640
+ data?: Record<string, unknown>;
7641
+ text?: string;
7642
+ }
7643
+ interface VectorEntry {
7644
+ id: string;
7645
+ data: Record<string, unknown>;
7646
+ text?: string;
7647
+ vector?: number[];
7648
+ }
7649
+ type VectorWriteState = "pending" | "done" | "unknown";
7650
+ interface VectorsNamespaceDeps {
7651
+ http: HttpClient;
7652
+ }
7653
+ /** A handle on one collection. Cheap to make; holds no state beyond its name. */
7654
+ declare class VectorCollection {
7655
+ private readonly http;
7656
+ readonly name: string;
7657
+ private readonly base;
7658
+ constructor(http: HttpClient, name: string);
7659
+ /** Add or replace entries. Returns once accepted; see {@link status}. */
7660
+ upsert(entries: VectorEntryInput[], opts?: VectorUpsertOptions): Promise<VectorWriteResult>;
7661
+ /** Nearest entries to a text or a vector. */
7662
+ query(input: VectorQueryInput): Promise<VectorMatch[]>;
7663
+ /** Entries by id. Writes still pending are not returned. */
7664
+ get(ids: string[], opts?: {
7665
+ includeVector?: boolean;
7666
+ }): Promise<VectorEntry[]>;
7667
+ /** Remove entries by id. Asynchronous, like {@link upsert}. */
7668
+ delete(ids: string[]): Promise<VectorWriteResult>;
7669
+ /** The state of a write: `pending`, `done`, or `unknown` (never seen or expired). */
7670
+ status(mutationId: string): Promise<VectorWriteState>;
7671
+ /**
7672
+ * Listen on an open Space for this collection's ready notices. Only notices
7673
+ * the platform sent (sender `__muhkoo__`) reach `handler`; a member who
7674
+ * publishes the same subject is ignored. Needs an unlocked session, since a
7675
+ * Space without its keys emits no ephemeral events. Returns the unsubscribe.
7676
+ */
7677
+ onReady(space: Space, handler: (e: VectorReadyEvent) => void): () => void;
7678
+ /**
7679
+ * Resolve once a write is searchable: on its ready notice (with `space`) or
7680
+ * when {@link status} answers `done`. Status is polled underneath either way,
7681
+ * because notices are best effort.
7682
+ *
7683
+ * The notice only arrives if `space` is a registered notice Space for the
7684
+ * environment (see {@link VectorsNamespace.setNotices}) and the write named
7685
+ * it in `notify.space` or it is the environment's `defaultSpace`. Any other
7686
+ * Space never receives the notice, and the wait falls back to polling,
7687
+ * usually finishing within a minute or two.
7688
+ *
7689
+ * Rejects with an `Error` ("Unknown mutation <id>") if status answers
7690
+ * `unknown`, and with {@link VectorWaitTimeoutError} after `timeoutMs`
7691
+ * (default 300,000 ms).
7692
+ */
7693
+ waitFor(mutationId: string, opts?: WaitOptions): Promise<void>;
7694
+ /**
7695
+ * {@link upsert}, then {@link waitFor} its mutation. With `space`, listens
7696
+ * before sending, so a notice that beats the HTTP response still counts.
7697
+ * The notice reaches `space` only if it is a registered notice Space named
7698
+ * in `notify.space` or set as the environment's `defaultSpace`; naming an
7699
+ * unregistered Space fails the upsert with a 400
7700
+ * `notice_space_not_registered`. Otherwise the wait completes by polling.
7701
+ * An upsert error is rethrown at once.
7702
+ */
7703
+ upsertAndWait(entries: VectorEntryInput[], opts?: VectorUpsertOptions & WaitOptions): Promise<VectorWriteResult>;
7704
+ private wait;
7705
+ }
7706
+ interface VectorFieldDefinition {
7707
+ name: string;
7708
+ type: "string" | "number" | "boolean";
7709
+ }
7710
+ type VectorCollectionDefinition = {
7711
+ mode: "text";
7712
+ model?: string;
7713
+ metric?: "cosine" | "euclidean" | "dot-product";
7714
+ fields?: VectorFieldDefinition[];
7715
+ access?: "app" | "backend";
7716
+ } | {
7717
+ mode: "vectors";
7718
+ dimensions: number;
7719
+ metric?: "cosine" | "euclidean" | "dot-product";
7720
+ fields?: VectorFieldDefinition[];
7721
+ access?: "app" | "backend";
7722
+ };
7723
+ interface VectorNotices {
7724
+ spaces: string[];
7725
+ defaultSpace: string | null;
7726
+ }
7727
+ interface VectorEnvInfo {
7728
+ status: "creating" | "ready" | "failed" | "dropping";
7729
+ entries: number | null;
7730
+ notices: VectorNotices;
7731
+ error: string | null;
7732
+ }
7733
+ interface VectorCollectionInfo {
7734
+ name: string;
7735
+ mode: "text" | "vectors";
7736
+ model: string | null;
7737
+ dimensions: number;
7738
+ metric: string;
7739
+ fields: VectorFieldDefinition[];
7740
+ access: "app" | "backend";
7741
+ createdAt: number;
7742
+ status: "creating" | "ready" | "failed" | "dropping";
7743
+ envs: {
7744
+ live: VectorEnvInfo;
7745
+ test: VectorEnvInfo;
7746
+ };
7747
+ }
7748
+ /** A collection's creation failed; `info.envs.*.error` says why. */
7749
+ declare class VectorCollectionFailedError extends Error {
7750
+ readonly info: VectorCollectionInfo;
7751
+ constructor(info: VectorCollectionInfo);
7752
+ }
7753
+ declare class VectorsNamespace {
7754
+ private readonly deps;
7755
+ constructor(deps: VectorsNamespaceDeps);
7756
+ /** A handle on the named collection, made fresh on each call. */
7757
+ collection(name: string): VectorCollection;
7758
+ /** The app's collections, sorted by name. */
7759
+ listCollections(appId: string): Promise<VectorCollectionInfo[]>;
7760
+ /** One collection. A missing or badly named one is 404 `collection_not_found`. */
7761
+ getCollection(appId: string, name: string): Promise<VectorCollectionInfo>;
7762
+ /**
7763
+ * Create a collection. Asynchronous: it answers with status `creating`; use
7764
+ * {@link waitForCollection} to wait for `ready`. Repeating it with the same
7765
+ * definition returns the existing collection; a different definition is
7766
+ * 409 `collection_exists`. Definitions never change: drop and recreate.
7767
+ */
7768
+ createCollection(appId: string, name: string, definition: VectorCollectionDefinition): Promise<VectorCollectionInfo>;
7769
+ /**
7770
+ * Drop a collection and its entries in both environments. Asynchronous; the
7771
+ * collection shows status `dropping` until it is gone. Safe to repeat: a 503
7772
+ * `vectors_unavailable` means the drop couldn't start, and calling again is
7773
+ * the remedy.
7774
+ */
7775
+ dropCollection(appId: string, name: string): Promise<void>;
7776
+ /** Set which Spaces receive ready notices for one environment. */
7777
+ setNotices(appId: string, name: string, env: "live" | "test", notices: VectorNotices): Promise<VectorNotices & {
7778
+ env: "live" | "test";
7779
+ }>;
7780
+ /**
7781
+ * Poll {@link getCollection} every 2 s until status is `ready`. Rejects with
7782
+ * {@link VectorCollectionFailedError} on `failed`, and with
7783
+ * `Error("Timed out waiting for collection <name>")` after `timeoutMs`
7784
+ * (default 600,000 ms: creation waits for filter fields to settle).
7785
+ */
7786
+ waitForCollection(appId: string, name: string, opts?: {
7787
+ timeoutMs?: number;
7788
+ }): Promise<VectorCollectionInfo>;
7789
+ private ownerPath;
7790
+ }
7791
+
7562
7792
  /**
7563
7793
  * Wire types for the VFS metadata layer.
7564
7794
  *
@@ -9405,6 +9635,8 @@ declare class Client {
9405
9635
  readonly accessTokens: AccessTokensNamespace;
9406
9636
  /** This app — `client.app.access()`: may the signed-in user add data here? */
9407
9637
  readonly app: AppNamespace;
9638
+ /** Vector search — `client.vectors.collection("docs").query({ text })`, plus owner management of collections. */
9639
+ readonly vectors: VectorsNamespace;
9408
9640
  /** Offline cache + sync — `client.offline.status`, `client.offline.snapshot`, etc. */
9409
9641
  readonly offline: OfflineManager;
9410
9642
  private readonly session;
@@ -10691,7 +10923,7 @@ declare function getId(row: {
10691
10923
  * expect (and isn't serving a stale cached bundle). Keep this in sync with
10692
10924
  * `package.json` `version`.
10693
10925
  */
10694
- declare const VERSION = "0.15.0-alpha.11";
10926
+ declare const VERSION = "0.15.0-alpha.13";
10695
10927
 
10696
10928
  /**
10697
10929
  * The SDK's process-global logger.
@@ -10723,5 +10955,5 @@ declare global {
10723
10955
  }
10724
10956
  declare const appLogger: InstanceType<typeof Logger>;
10725
10957
 
10726
- export { ACCESS_TOKEN_SCOPES, AES_GCM_IV_BYTES, AES_GCM_KEY_BYTES, AES_GCM_TAG_BYTES, AccessTokensNamespace, AdmissionDeniedError, AgentsNamespace, AppNamespace, AuthClient, AuthHttpError, AuthNamespace, AuthPublicInput, Authenticator, BlockEngine, BroadcastChannel, BroadcastChannelEvents, ChannelExistsError, ChannelNotFoundError, ChunkCipher, CircuitIntegrityError, Client, ConnectivityManager, DEFAULT_AUTH_BASE_URL, DEFAULT_BASE_URL, DEFAULT_BRANCH, DEFAULT_FN_HOST_SUFFIX, DEVICE_IDENTITY_STORAGE_KEY, DEVICE_KEY_DB_NAME, DbCache, DbNamespace, DbTable, DevicePairingError, DeviceRevokedError, DeviceStoreUnavailableError, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, GoogleNotLinkedError, GuestLoginConflictError, HLC, HashKnowledge, HostedAuth, HttpClient, HttpError, IdentityLockedError, IdentityUnavailableError, IndexedDbStore, InvalidRecoveryCodeError, KEEPER_MEMBER_ID, KeyStore, KeyringClient, KeyringHttpError, KvCache, KvNamespace, LocalEngineHost, LocalStorageSessionStore, Logger, MAX_SHARE_SUCCESSOR_HOPS, MemorySessionStore, Message, Message as MessageDefault, MessageNamespace, MuhkooAgent, MuhkooDB, MuhkooFunction, MuhkooSpace, NOT_MEMBER_CLOSE_CODE, NOT_MEMBER_RECHECK_MS, NoopStore, OfflineLockedError, OfflineManager, OutboundQueue, P2P_SUBJECT, PAIRING_CODE_ALPHABET, PAIRING_CODE_LENGTH, PBKDF2_DEFAULT_ITERATIONS, PINNED_CIRCUIT_DIGESTS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PasskeyOriginError, PaymentRequiredError, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, ROOT_ID, Ready, ReauthRequiredError, ReedSolomonCodec, Repo, Retry, Space as Room, RotationInProgressError, RotationIncompleteError, RotationMismatchError, SHARE_DIR_TYPE, SHARE_GUEST_DEVICE_LABEL, SHARE_PASSWORD_ITERATIONS, SerializeMessage, SessionState, ShardCache, ShardClient, Share, ShareClosedError, ShareFullError, ShareMemberLimitError, SharePasswordError, SharePasswordRateError, ShareSpaceNotEmptyError, ShareSpaceNotReadyError, SharedSpaceClient, SharesClient, SharesNamespace, SnapshotNamespace, Space, SpaceCache, SpaceKeyring, SpaceNamespace, SpacePacketCipher, SpaceSignaler, SpaceTrustError, StorageNamespace, SyncEngine, VERSION, VFS_ROOT_INFO, VaultProtocolMismatchError, VaultUnavailableError, VcsError, VcsNamespace, VfsConflictError, VfsCorruptRecordError, VfsLimitError, VfsLockedError, VfsNamespace, VfsNotFoundError, WSTransport, WebRtcTransport, WorkerEngineHost, ZERO_HLC, ZkAuth, _accountId, _formatBytes, _messageId, _objectId, _packetId, _socketId, _userId, appLogger, assertType, base58Decode, base58Encode, buildCommitment, canonicalUserCode, clearDeviceIdentity, compareHlc, compilePrograms, concatBytes, configureDeviceStore, createPasskeyWithPrf, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultRpId, defaultSessionStore, defaultSharesStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, deserialize, deviceFingerprint, deviceIdentityIsEphemeral, deviceIdentityKey, dirKey, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, evaluatePasskeyPrf, exportPublicKeyBase64, exportPublicKeyHex, formatUserCode, fromBase64, fromBase64Url, fromHex, generateAuthProof, generateChecksum, generateDevicePairingKeypair, generateId, generatePkce, getIPAddress, getId, getMuhkooAppDescriptor, getSubtle, guestRecoveryCode, guestRecoveryOf, hasDeviceIdentity, headKey, historyKey, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isNumber, isOfflineCapable, isP2pCapable, isProvisional, isSameOriginPath, loadDeviceIdentity, log, manifestToStat, materializeRow, memorySharesStore, merge3, merge3Text, mergeKey, mergeMap, mergeMessage, mergeRegister, messageKey, newPasswordVerifier, objectKey, pack, padHandle, pairingVerificationCode, parseGuestRecoveryCode, passkeyPrfCapable, passkeySupported, passkeyUsableFromOrigin, passwordProof, persistDeviceIdentity, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, refKey, refsIndexKey, rpIdUsableForOrigin, sealSeed, sealSeedToDevice, serialize, shardHash, shareErrorFrom, signMessage, stableStringify, toBase64, toBase64Url, toField, toHex, tombstoneRow, unpack, unsealSeed, unsealSeedFromDevice, unwrapWithPassphrase, utf8Decode, utf8Encode, verify, verifyChecksum, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
10727
- export type { ACL, ACLEntry, AccessTokenInfo, AccessTokensNamespaceDeps, AdmissionState, AgentConfig, AgentCreateInput, AgentDbToolMode, AgentProvisioned, AgentScopeOpts, AgentSkill, AgentToolsConfig, AgentTrigger, AgentTriggerType, AgentUpdateInput, AgentsNamespaceDeps, AppAccess, AppNamespaceDeps, AttachedPeerNetwork, AuthClientOptions, AuthKeyPair, AuthSuccess, AuthToken, AuthType, AuthUser, BlockStore, Bn128WasmInstance, BroadcastChannelEvent, BroadcastChannelOptions, CachedSpaceMessage, Change, ChannelLike, ChatKeyCert, ChunkKeyMaterial, ChunkManifest, CipherFrame, CipherMessage, CipherMessageHeader, CircuitBufferConfig, CircuitIntegrity, CircuitUrls, ClientOptions, Commit, Conflict, ConnectivityOptions, ConnectivityState, CreateAccessTokenInput, CreateShareBody, CreateShareOptions, CreatedAccessToken, DbFilterOp, DbNamespaceDeps, DbQuery, DbQueryPage, DbQueryResult, DbWhereCondition, DehydratedKeypair, DehydratedKeys, DeviceBlobStore, DeviceKeyVault, DevicePairingErrorReason, DevicePairingKeypair, DevicePairingPoll, DevicePairingRequest, DevicePairingSession, DirEntry, DirNode, DoubleRatchetCipherDeps, ECDHCurve, EditPolicy, EncodeResult, EngineHandle, EngineHost, Entry, EphemeralEvent, EpochKeyProvider, FileEntry, FileManifest, FileNamespaceDeps, FileStat, FileStorageOptions, FunctionCaps, FunctionConfig, FunctionDeployInput, FunctionInvokeOptions, FunctionScopeOpts, FunctionTrigger, FunctionTriggerType, FunctionTriggers, FunctionUpdateInput, FunctionsNamespaceDeps, Groth16Proof, GuestDeviceLogin, GuestRecovery, Hasher, Head, HistoryRecord, HlcParts, HlcState, HostedAuthDeps, HttpClientOptions, IncomingFrame, KeyExchangeFrame, KeyPair, Keypair, KeyringClientDeps, KeyringTransport, KvEntry, KvNamespaceDeps, LinkEntry, LogEntry, LoginOptions, LwwMap, LwwRegister, MemberView, MembershipEntry, Merge3Result, MergeRegionConflict, MergeResult, 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, PasswordVerifier, PaymentRequiredCode, PeerBlockSource, PeerExchangeOptions, PeerId, PeerNetworkOptions, PeerTransport, Permission, PermissionCheckRequest, PermissionCheckResult, PersistedDeviceIdentity, PersonalSpaceClientOptions, Pkce, PublicKeyJWK, QueueEntry, RatchetState, ReceiveResult, RegisterParams, Replayer, Role$1 as Role, SpaceDeps as RoomDeps, SpaceFileMetadata as RoomFileMetadata, Scope, SealedHandoff, SealedHeaders, SealedRecord, Session, SessionOptions, SessionStore, SetOptions, ShardByteCache, ShardClientOptions, ShareAdmitBody, ShareAdoptFile, ShareAdoptItem, ShareEntry, ShareFolderOptions, ShareGuestAuth, ShareInfo, ShareKind, ShareOptions, SharePublicInfo, ShareSpaceHandle, ShareSpaceKeyring, ShareSpaces, ShareSummary, SharedSpaceClientOptions, SharesLocalStore, SharesNamespaceDeps, SignalEnvelope, SignalKind, SignalingSpace, SnapshotNamespaceDeps, SnarkProof, SpaceChannelLike, SpaceCursor, SpaceDeps, SpaceFileMetadata, SpaceKeyCache, SpaceKeyringDeps, SpaceMessageEvent, SpaceNamespaceDeps, SpaceOfflineAdapter, SpaceTrustCode, StartDevicePairingOptions, StorageChangeEvent, StoreName, StoredSession, Subscription, Tree, TreeDir, TreeEntry, TreeFile, UserIdentity, VaultFactor, VcsNamespaceDeps, VcsNamespaceOptions, VerificationKey, VfsContentStore, VfsNamespaceDeps, VfsStat, VfsStore, WSMessage, WSMessageType, WSTransportOptions, WaitForDevicePairingOptions, WebRtcTransportOptions, WrappedPayload, WriteFileInput, WriteFileOptions, WriteToShardsInput, ZkAuthDeps, ZkAuthenticateRequest, ZkChallengeResponse, ZkCompiled, ZkIdentity, ZkRegisterRequest, ZkRegisterResponse };
10958
+ export { ACCESS_TOKEN_SCOPES, AES_GCM_IV_BYTES, AES_GCM_KEY_BYTES, AES_GCM_TAG_BYTES, AccessTokensNamespace, AdmissionDeniedError, AgentsNamespace, AppNamespace, AuthClient, AuthHttpError, AuthNamespace, AuthPublicInput, Authenticator, BlockEngine, BroadcastChannel, BroadcastChannelEvents, ChannelExistsError, ChannelNotFoundError, ChunkCipher, CircuitIntegrityError, Client, ConnectivityManager, DEFAULT_AUTH_BASE_URL, DEFAULT_BASE_URL, DEFAULT_BRANCH, DEFAULT_FN_HOST_SUFFIX, DEVICE_IDENTITY_STORAGE_KEY, DEVICE_KEY_DB_NAME, DbCache, DbNamespace, DbTable, DevicePairingError, DeviceRevokedError, DeviceStoreUnavailableError, DoubleRatchet, DoubleRatchetCipher, DoubleRatchetManager, EncryptedSession, EventCore, EventCoreEvents, Field, Field as FieldElement, FileStorage, FunctionsNamespace, GoogleNotLinkedError, GuestLoginConflictError, HLC, HashKnowledge, HostedAuth, HttpClient, HttpError, IdentityLockedError, IdentityUnavailableError, IndexedDbStore, InvalidRecoveryCodeError, KEEPER_MEMBER_ID, KeyStore, KeyringClient, KeyringHttpError, KvCache, KvNamespace, LocalEngineHost, LocalStorageSessionStore, Logger, MAX_SHARE_SUCCESSOR_HOPS, MemorySessionStore, Message, Message as MessageDefault, MessageNamespace, MuhkooAgent, MuhkooDB, MuhkooFunction, MuhkooSpace, NOT_MEMBER_CLOSE_CODE, NOT_MEMBER_RECHECK_MS, NoopStore, OfflineLockedError, OfflineManager, OutboundQueue, P2P_SUBJECT, PAIRING_CODE_ALPHABET, PAIRING_CODE_LENGTH, PBKDF2_DEFAULT_ITERATIONS, PINNED_CIRCUIT_DIGESTS, PREIMAGE_POK_VERIFICATION_KEY, Packet, PasskeyOriginError, PaymentRequiredError, PeerExchange, PeerNetwork, PersonalSpaceClient, Poseidon, PreimagePoK, ROOT_ID, Ready, ReauthRequiredError, ReedSolomonCodec, Repo, Retry, Space as Room, RotationInProgressError, RotationIncompleteError, RotationMismatchError, SHARE_DIR_TYPE, SHARE_GUEST_DEVICE_LABEL, SHARE_PASSWORD_ITERATIONS, SerializeMessage, SessionState, ShardCache, ShardClient, Share, ShareClosedError, ShareFullError, ShareMemberLimitError, SharePasswordError, SharePasswordRateError, ShareSpaceNotEmptyError, ShareSpaceNotReadyError, SharedSpaceClient, SharesClient, SharesNamespace, SnapshotNamespace, Space, SpaceCache, SpaceKeyring, SpaceNamespace, SpacePacketCipher, SpaceSignaler, SpaceTrustError, StorageNamespace, SyncEngine, VERSION, VFS_ROOT_INFO, VaultProtocolMismatchError, VaultUnavailableError, VcsError, VcsNamespace, VectorCollection, VectorCollectionFailedError, VectorWaitTimeoutError, VectorsNamespace, VfsConflictError, VfsCorruptRecordError, VfsLimitError, VfsLockedError, VfsNamespace, VfsNotFoundError, WSTransport, WebRtcTransport, WorkerEngineHost, ZERO_HLC, ZkAuth, _accountId, _formatBytes, _messageId, _objectId, _packetId, _socketId, _userId, appLogger, assertType, base58Decode, base58Encode, buildCommitment, canonicalUserCode, clearDeviceIdentity, compareHlc, compilePrograms, concatBytes, configureDeviceStore, createPasskeyWithPrf, decodeFromHex, decorators, decryptAesGcm, defaultCircuitUrls, defaultRpId, defaultSessionStore, defaultSharesStore, deleteBeatsWrite, deleteRegister, deriveAesKeyFromPassphrase, deriveBitsHkdf, deriveIdentity, deriveIdentityFromSeed, deriveMasterSeedFromPassword, deserialize, deviceFingerprint, deviceIdentityIsEphemeral, deviceIdentityKey, dirKey, ejectAgentPrompt, ejectAgentTools, emptyMap, emptyRegister, encodeToHex, encryptAesGcm, evaluatePasskeyPrf, exportPublicKeyBase64, exportPublicKeyHex, formatUserCode, fromBase64, fromBase64Url, fromHex, generateAuthProof, generateChecksum, generateDevicePairingKeypair, generateId, generatePkce, getIPAddress, getId, getMuhkooAppDescriptor, getSubtle, guestRecoveryCode, guestRecoveryOf, hasDeviceIdentity, headKey, historyKey, initBn128Wasm, initRsWasm, initializeCircuits, isNewer, isNumber, isOfflineCapable, isP2pCapable, isProvisional, isSameOriginPath, loadDeviceIdentity, log, manifestToStat, materializeRow, memorySharesStore, merge3, merge3Text, mergeKey, mergeMap, mergeMessage, mergeRegister, messageKey, newPasswordVerifier, objectKey, pack, padHandle, pairingVerificationCode, parseGuestRecoveryCode, passkeyPrfCapable, passkeySupported, passkeyUsableFromOrigin, passwordProof, persistDeviceIdentity, poseidonHash, protocol, provisionalHandle, quickVerify, randomBytes, randomState, refKey, refsIndexKey, rpIdUsableForOrigin, sealSeed, sealSeedToDevice, serialize, shardHash, shareErrorFrom, signMessage, stableStringify, toBase64, toBase64Url, toField, toHex, tombstoneRow, unpack, unsealSeed, unsealSeedFromDevice, unwrapWithPassphrase, utf8Decode, utf8Encode, verify, verifyChecksum, verifyGroth16, verifyHashKnowledge, verifyPreimagePoK, wrapWithPassphrase, writeBeatsTombstone, writeColumns, writeRegister };
10959
+ export type { ACL, ACLEntry, AccessTokenInfo, AccessTokensNamespaceDeps, AdmissionState, AgentConfig, AgentCreateInput, AgentDbToolMode, AgentProvisioned, AgentScopeOpts, AgentSkill, AgentToolsConfig, AgentTrigger, AgentTriggerType, AgentUpdateInput, AgentsNamespaceDeps, AppAccess, AppNamespaceDeps, AttachedPeerNetwork, AuthClientOptions, AuthKeyPair, AuthSuccess, AuthToken, AuthType, AuthUser, BlockStore, Bn128WasmInstance, BroadcastChannelEvent, BroadcastChannelOptions, CachedSpaceMessage, Change, ChannelLike, ChatKeyCert, ChunkKeyMaterial, ChunkManifest, CipherFrame, CipherMessage, CipherMessageHeader, CircuitBufferConfig, CircuitIntegrity, CircuitUrls, ClientOptions, Commit, Conflict, ConnectivityOptions, ConnectivityState, CreateAccessTokenInput, CreateShareBody, CreateShareOptions, CreatedAccessToken, DbFilterOp, DbNamespaceDeps, DbQuery, DbQueryPage, DbQueryResult, DbWhereCondition, DehydratedKeypair, DehydratedKeys, DeviceBlobStore, DeviceKeyVault, DevicePairingErrorReason, DevicePairingKeypair, DevicePairingPoll, DevicePairingRequest, DevicePairingSession, DirEntry, DirNode, DoubleRatchetCipherDeps, ECDHCurve, EditPolicy, EncodeResult, EngineHandle, EngineHost, Entry, EphemeralEvent, EpochKeyProvider, FileEntry, FileManifest, FileNamespaceDeps, FileStat, FileStorageOptions, FunctionCaps, FunctionConfig, FunctionDeployInput, FunctionInvokeOptions, FunctionScopeOpts, FunctionTrigger, FunctionTriggerType, FunctionTriggers, FunctionUpdateInput, FunctionsNamespaceDeps, Groth16Proof, GuestDeviceLogin, GuestRecovery, Hasher, Head, HistoryRecord, HlcParts, HlcState, HostedAuthDeps, HttpClientOptions, IncomingFrame, KeyExchangeFrame, KeyPair, Keypair, KeyringClientDeps, KeyringTransport, KvEntry, KvNamespaceDeps, LinkEntry, LogEntry, LoginOptions, LwwMap, LwwRegister, MemberView, MembershipEntry, Merge3Result, MergeRegionConflict, MergeResult, 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, PasswordVerifier, PaymentRequiredCode, PeerBlockSource, PeerExchangeOptions, PeerId, PeerNetworkOptions, PeerTransport, Permission, PermissionCheckRequest, PermissionCheckResult, PersistedDeviceIdentity, PersonalSpaceClientOptions, Pkce, PublicKeyJWK, QueueEntry, RatchetState, ReceiveResult, RegisterParams, Replayer, Role$1 as Role, SpaceDeps as RoomDeps, SpaceFileMetadata as RoomFileMetadata, Scope, SealedHandoff, SealedHeaders, SealedRecord, Session, SessionOptions, SessionStore, SetOptions, ShardByteCache, ShardClientOptions, ShareAdmitBody, ShareAdoptFile, ShareAdoptItem, ShareEntry, ShareFolderOptions, ShareGuestAuth, ShareInfo, ShareKind, ShareOptions, SharePublicInfo, ShareSpaceHandle, ShareSpaceKeyring, ShareSpaces, ShareSummary, SharedSpaceClientOptions, SharesLocalStore, SharesNamespaceDeps, SignalEnvelope, SignalKind, SignalingSpace, SnapshotNamespaceDeps, SnarkProof, SpaceChannelLike, SpaceCursor, SpaceDeps, SpaceFileMetadata, SpaceKeyCache, SpaceKeyringDeps, SpaceMessageEvent, SpaceNamespaceDeps, SpaceOfflineAdapter, SpaceTrustCode, StartDevicePairingOptions, StorageChangeEvent, StoreName, StoredSession, Subscription, Tree, TreeDir, TreeEntry, TreeFile, UserIdentity, VaultFactor, VcsNamespaceDeps, VcsNamespaceOptions, VectorAudience, VectorCollectionDefinition, VectorCollectionInfo, VectorEntry, VectorEntryInput, VectorEnvInfo, VectorFieldDefinition, VectorMatch, VectorNotices, VectorNotify, VectorQueryInput, VectorReadyEvent, VectorUpsertOptions, VectorWriteResult, VectorWriteState, VectorsNamespaceDeps, VerificationKey, VfsContentStore, VfsNamespaceDeps, VfsStat, VfsStore, WSMessage, WSMessageType, WSTransportOptions, WaitForDevicePairingOptions, WebRtcTransportOptions, WrappedPayload, WriteFileInput, WriteFileOptions, WriteToShardsInput, ZkAuthDeps, ZkAuthenticateRequest, ZkChallengeResponse, ZkCompiled, ZkIdentity, ZkRegisterRequest, ZkRegisterResponse };
@@ -1480,6 +1480,7 @@ declare class HttpClient {
1480
1480
  private isSameOrigin;
1481
1481
  get<T = unknown>(path: string): Promise<T>;
1482
1482
  post<T = unknown>(path: string, body?: unknown): Promise<T>;
1483
+ put<T = unknown>(path: string, body?: unknown): Promise<T>;
1483
1484
  patch<T = unknown>(path: string, body?: unknown): Promise<T>;
1484
1485
  del<T = unknown>(path: string, body?: unknown): Promise<T>;
1485
1486
  private request;