@ai4b-team/fsaos-gateway-sdk 5.5.2 → 5.6.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
@@ -1060,6 +1060,8 @@ declare const vfsKeys: {
1060
1060
  allChannelMessages: () => readonly ["vfs", string, "channel-messages"];
1061
1061
  /** Channels listing (scope-aware). */
1062
1062
  channels: (filter?: string) => readonly ["vfs", string, "channels", string];
1063
+ /** Shares conversation reconnect invalidation, without sharing transcript data. */
1064
+ messageReplies: (channelPath: string, messageId: string, rootId?: string, limit?: number) => readonly ["vfs", string, "channel-messages", string, string, "contextual-replies", string, number];
1063
1065
  /** All channels queries for current scope (for broad invalidation). */
1064
1066
  allChannels: () => readonly ["vfs", string, "channels"];
1065
1067
  /** Notifications listing (scope-aware). */
@@ -1286,11 +1288,66 @@ interface ChannelMessage {
1286
1288
  */
1287
1289
  member_count: number;
1288
1290
  parent_message_id?: string;
1291
+ /** Explicit contextual reply. Thread membership remains parent_message_id. */
1292
+ reply_to?: MessageReplyContext;
1289
1293
  intent_card?: Record<string, unknown>;
1290
1294
  /** Full message metadata from type_data.metadata (launch cards, custom card payloads, etc.). */
1291
1295
  metadata?: Record<string, unknown>;
1292
1296
  thread_summary?: Array<Record<string, unknown>>;
1293
1297
  }
1298
+ /** Authorized projection of a contextual reply target. No UI or navigation state. */
1299
+ type MessageReplyContext = {
1300
+ state: 'unavailable';
1301
+ } | {
1302
+ state: 'available';
1303
+ message_id: string;
1304
+ path: string;
1305
+ role?: string;
1306
+ sender_principal_id?: string;
1307
+ sender_display_name?: string;
1308
+ excerpt: string;
1309
+ truncated: boolean;
1310
+ };
1311
+ interface MessageRepliesCursor {
1312
+ updated_at: string;
1313
+ edge_id: string;
1314
+ }
1315
+ interface MessageRepliesPage {
1316
+ messages: ChannelMessage[];
1317
+ /** Continue even if permissions filtered every message from this page. */
1318
+ next_cursor: MessageRepliesCursor | null;
1319
+ }
1320
+ /** Native send parameters; scope/auth are supplied by the existing SDK session. */
1321
+ interface SendMessageParams extends Record<string, unknown> {
1322
+ message: string;
1323
+ channel_id?: string;
1324
+ channel_path?: string;
1325
+ /** Containing thread, never the contextual reply target. */
1326
+ parent_message_id?: string;
1327
+ /** Omit for an ordinary send. Does not start or select another conversation. */
1328
+ reply_to_message_id?: string;
1329
+ conversation_mode?: 'channel' | 'new_thread';
1330
+ client_request_id?: string;
1331
+ }
1332
+ interface SendMessageResult extends Record<string, unknown> {
1333
+ success: true;
1334
+ message_id?: string;
1335
+ message_path?: string;
1336
+ queue_entry_id?: string;
1337
+ queued?: boolean;
1338
+ replayed?: boolean;
1339
+ reply_to_message_id?: string;
1340
+ }
1341
+ /** One send; no retry, polling, cache write, subscription or conversation selection. */
1342
+ declare function sendMessage(params: SendMessageParams): Promise<SendMessageResult>;
1343
+ /** Batch target previews. Ordinary or unreadable source messages are absent. */
1344
+ declare function fetchMessageReplyContexts(messageIds: string[], options?: GatewayRequestOptions): Promise<Record<string, MessageReplyContext>>;
1345
+ /** One bounded incoming-reply page, independent of a thread's child-message list. */
1346
+ declare function fetchMessageReplies(messageId: string, page?: {
1347
+ limit?: number;
1348
+ cursor?: MessageRepliesCursor;
1349
+ conversationRootId?: string;
1350
+ }, options?: GatewayRequestOptions): Promise<MessageRepliesPage>;
1294
1351
  /** Runtime/kernel ownership shared by durable cards and execution activity. */
1295
1352
  interface WorkCorrelation {
1296
1353
  version: 1;
@@ -2446,6 +2503,233 @@ declare function useChannelMessages(options: ChannelMessagesOptions): {
2446
2503
  error: Error | null;
2447
2504
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<ChannelMessagesResponse, Error>>;
2448
2505
  };
2506
+ interface MessageRepliesOptions {
2507
+ channelPath: string | null | undefined;
2508
+ messageId: string;
2509
+ /** The containing thread, not the message being replied to. Omit in a channel. */
2510
+ conversationRootId?: string;
2511
+ enabled?: boolean;
2512
+ realtime?: boolean;
2513
+ limit?: number;
2514
+ }
2515
+ /** Explicit contextual replies. Mount when opened; more pages require a caller action. */
2516
+ declare function useMessageReplies(options: MessageRepliesOptions): {
2517
+ messages: ChannelMessage[];
2518
+ data: _tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>;
2519
+ error: Error;
2520
+ isError: true;
2521
+ isPending: false;
2522
+ isLoading: false;
2523
+ isLoadingError: false;
2524
+ isRefetchError: true;
2525
+ isSuccess: false;
2526
+ isPlaceholderData: false;
2527
+ status: "error";
2528
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2529
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2530
+ hasNextPage: boolean;
2531
+ hasPreviousPage: boolean;
2532
+ isFetchNextPageError: boolean;
2533
+ isFetchingNextPage: boolean;
2534
+ isFetchPreviousPageError: boolean;
2535
+ isFetchingPreviousPage: boolean;
2536
+ dataUpdatedAt: number;
2537
+ errorUpdatedAt: number;
2538
+ failureCount: number;
2539
+ failureReason: Error | null;
2540
+ errorUpdateCount: number;
2541
+ isFetched: boolean;
2542
+ isFetchedAfterMount: boolean;
2543
+ isFetching: boolean;
2544
+ isInitialLoading: boolean;
2545
+ isPaused: boolean;
2546
+ isRefetching: boolean;
2547
+ isStale: boolean;
2548
+ isEnabled: boolean;
2549
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2550
+ fetchStatus: _tanstack_react_query.FetchStatus;
2551
+ promise: Promise<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>>;
2552
+ } | {
2553
+ messages: ChannelMessage[];
2554
+ data: _tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>;
2555
+ error: null;
2556
+ isError: false;
2557
+ isPending: false;
2558
+ isLoading: false;
2559
+ isLoadingError: false;
2560
+ isRefetchError: false;
2561
+ isFetchNextPageError: false;
2562
+ isFetchPreviousPageError: false;
2563
+ isSuccess: true;
2564
+ isPlaceholderData: false;
2565
+ status: "success";
2566
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2567
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2568
+ hasNextPage: boolean;
2569
+ hasPreviousPage: boolean;
2570
+ isFetchingNextPage: boolean;
2571
+ isFetchingPreviousPage: boolean;
2572
+ dataUpdatedAt: number;
2573
+ errorUpdatedAt: number;
2574
+ failureCount: number;
2575
+ failureReason: Error | null;
2576
+ errorUpdateCount: number;
2577
+ isFetched: boolean;
2578
+ isFetchedAfterMount: boolean;
2579
+ isFetching: boolean;
2580
+ isInitialLoading: boolean;
2581
+ isPaused: boolean;
2582
+ isRefetching: boolean;
2583
+ isStale: boolean;
2584
+ isEnabled: boolean;
2585
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2586
+ fetchStatus: _tanstack_react_query.FetchStatus;
2587
+ promise: Promise<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>>;
2588
+ } | {
2589
+ messages: ChannelMessage[];
2590
+ data: undefined;
2591
+ error: Error;
2592
+ isError: true;
2593
+ isPending: false;
2594
+ isLoading: false;
2595
+ isLoadingError: true;
2596
+ isRefetchError: false;
2597
+ isFetchNextPageError: false;
2598
+ isFetchPreviousPageError: false;
2599
+ isSuccess: false;
2600
+ isPlaceholderData: false;
2601
+ status: "error";
2602
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2603
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2604
+ hasNextPage: boolean;
2605
+ hasPreviousPage: boolean;
2606
+ isFetchingNextPage: boolean;
2607
+ isFetchingPreviousPage: boolean;
2608
+ dataUpdatedAt: number;
2609
+ errorUpdatedAt: number;
2610
+ failureCount: number;
2611
+ failureReason: Error | null;
2612
+ errorUpdateCount: number;
2613
+ isFetched: boolean;
2614
+ isFetchedAfterMount: boolean;
2615
+ isFetching: boolean;
2616
+ isInitialLoading: boolean;
2617
+ isPaused: boolean;
2618
+ isRefetching: boolean;
2619
+ isStale: boolean;
2620
+ isEnabled: boolean;
2621
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2622
+ fetchStatus: _tanstack_react_query.FetchStatus;
2623
+ promise: Promise<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>>;
2624
+ } | {
2625
+ messages: ChannelMessage[];
2626
+ data: undefined;
2627
+ error: null;
2628
+ isError: false;
2629
+ isPending: true;
2630
+ isLoading: true;
2631
+ isLoadingError: false;
2632
+ isRefetchError: false;
2633
+ isFetchNextPageError: false;
2634
+ isFetchPreviousPageError: false;
2635
+ isSuccess: false;
2636
+ isPlaceholderData: false;
2637
+ status: "pending";
2638
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2639
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2640
+ hasNextPage: boolean;
2641
+ hasPreviousPage: boolean;
2642
+ isFetchingNextPage: boolean;
2643
+ isFetchingPreviousPage: boolean;
2644
+ dataUpdatedAt: number;
2645
+ errorUpdatedAt: number;
2646
+ failureCount: number;
2647
+ failureReason: Error | null;
2648
+ errorUpdateCount: number;
2649
+ isFetched: boolean;
2650
+ isFetchedAfterMount: boolean;
2651
+ isFetching: boolean;
2652
+ isInitialLoading: boolean;
2653
+ isPaused: boolean;
2654
+ isRefetching: boolean;
2655
+ isStale: boolean;
2656
+ isEnabled: boolean;
2657
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2658
+ fetchStatus: _tanstack_react_query.FetchStatus;
2659
+ promise: Promise<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>>;
2660
+ } | {
2661
+ messages: ChannelMessage[];
2662
+ data: undefined;
2663
+ error: null;
2664
+ isError: false;
2665
+ isPending: true;
2666
+ isLoadingError: false;
2667
+ isRefetchError: false;
2668
+ isFetchNextPageError: false;
2669
+ isFetchPreviousPageError: false;
2670
+ isSuccess: false;
2671
+ isPlaceholderData: false;
2672
+ status: "pending";
2673
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2674
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2675
+ hasNextPage: boolean;
2676
+ hasPreviousPage: boolean;
2677
+ isFetchingNextPage: boolean;
2678
+ isFetchingPreviousPage: boolean;
2679
+ dataUpdatedAt: number;
2680
+ errorUpdatedAt: number;
2681
+ failureCount: number;
2682
+ failureReason: Error | null;
2683
+ errorUpdateCount: number;
2684
+ isFetched: boolean;
2685
+ isFetchedAfterMount: boolean;
2686
+ isFetching: boolean;
2687
+ isLoading: boolean;
2688
+ isInitialLoading: boolean;
2689
+ isPaused: boolean;
2690
+ isRefetching: boolean;
2691
+ isStale: boolean;
2692
+ isEnabled: boolean;
2693
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2694
+ fetchStatus: _tanstack_react_query.FetchStatus;
2695
+ promise: Promise<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>>;
2696
+ } | {
2697
+ messages: ChannelMessage[];
2698
+ data: _tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>;
2699
+ isError: false;
2700
+ error: null;
2701
+ isPending: false;
2702
+ isLoading: false;
2703
+ isLoadingError: false;
2704
+ isRefetchError: false;
2705
+ isSuccess: true;
2706
+ isPlaceholderData: true;
2707
+ isFetchNextPageError: false;
2708
+ isFetchPreviousPageError: false;
2709
+ status: "success";
2710
+ fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2711
+ fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2712
+ hasNextPage: boolean;
2713
+ hasPreviousPage: boolean;
2714
+ isFetchingNextPage: boolean;
2715
+ isFetchingPreviousPage: boolean;
2716
+ dataUpdatedAt: number;
2717
+ errorUpdatedAt: number;
2718
+ failureCount: number;
2719
+ failureReason: Error | null;
2720
+ errorUpdateCount: number;
2721
+ isFetched: boolean;
2722
+ isFetchedAfterMount: boolean;
2723
+ isFetching: boolean;
2724
+ isInitialLoading: boolean;
2725
+ isPaused: boolean;
2726
+ isRefetching: boolean;
2727
+ isStale: boolean;
2728
+ isEnabled: boolean;
2729
+ refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>, Error>>;
2730
+ fetchStatus: _tanstack_react_query.FetchStatus;
2731
+ promise: Promise<_tanstack_react_query.InfiniteData<MessageRepliesPage, unknown>>;
2732
+ };
2449
2733
  /** Options for useInfiniteChannelMessages. */
2450
2734
  interface InfiniteChannelMessagesOptions {
2451
2735
  /** VFS path of the channel. Required. */
@@ -3864,4 +4148,4 @@ declare function usePersonalSections(contextId: string | null, collection: Secti
3864
4148
  contextKey: string;
3865
4149
  };
3866
4150
 
3867
- export { type AcceptInviteParams, type AcceptInviteResult, type AccountInfo, type AnswerInputParams, type ArtifactDeltaEvent, type ArtifactDoneEvent, type ArtifactEvent, type ArtifactOpenedEvent, type ArtifactState, type ArtifactStatus, type ArtifactStreamState, type ArtifactSurfaceType, CHANNEL_AI_MODES, type CancelQueuedTurnOptions, type CancelQueuedTurnResponse, type CancelQueuedTurnState, type CancelTurnOptions, type CancelTurnResponse, type CancelTurnState, type Channel, type ChannelAiMode, type ChannelCard, type ChannelMessage, type ChannelMessagesOptions, type ChannelMessagesPage, type ChannelMessagesResponse, type ChannelsOptions, type ComponentOpener, ComponentRenderer, type ConnectionState, type CreateAgentParams, type CreateAgentResult, type CreateInvitationParams, type CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, HostSessionUnavailableError, type HostSessionWelcome, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type InvitationChangeReceipt, type InvitationPage, type InvitationReceipt, type InvitationSummary, type InviteMemberParams, type InviteMemberResult, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, type MemberRole, type MintedAsset, type MintedAssetState, type MountRef, type MoveParams, type Notification, type NotificationsOptions, type OpenEnvelope, type OpenOptions, type PathSubscriptionState, type PersonalItemOrderKey, type PersonalSection, type PinTarget, type PinnedItem, type PrincipalData, type PublicSourceConfig, type PublishedBundle, type PublishedComponentSource, type PublishedComponentStatus, type ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SeatMemberParams, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, type ServeHostSessionOptions, type SessionEntry, type SourceCaptureAdapter, type SourceIdentityStorage, type StartTrackingOptions, type SteerTurnOptions, type SteerTurnResponse, type SteerTurnState, type SubmitFormOptions, type SwitcherAccount, type TimelineEvent, type TimelineHistoryEvent, type TimelineHistoryOptions, type TrackEventOptions, type TurnQueueEntry, type TurnQueueEntryState, type TypeDefinition, type TypeHelpers, type TypeSchema, type UnreadCountsOptions, type UpdateParams, type UpdatePrincipalParams, type UploadItem, type UploadOptions, type UploadResult, type UseArtifactStreamReturn, type UseFileUploadReturn, type UseTimelineHistoryReturn, type VFSEdge, type VFSItem, type VfsItemChange, type WorkCorrelation, type WorkspaceOptions, type WorkspaceSession, acceptInvitation, acceptInvite, answerInput, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelInvitation, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, connectHostSession, createAgent, createInvitation, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getInvitation, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, inviteMember, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, listInvitations, loadMounts, loadPublishedBundle, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, rejectInvitation, replaceMounts, resendInvitation, resetAllSdkState, resolvePrincipalId, resubscribePath, seatMember, selectMount, serveHostSession, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAcceptInvite, useAccounts, useAgentTimeline, useAllChannels, useAnswerInput, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useCreateAgent, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useInviteMember, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, usePublishedComponent, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useSeatMember, useTheme, useTimelineHistory, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
4151
+ export { type AcceptInviteParams, type AcceptInviteResult, type AccountInfo, type AnswerInputParams, type ArtifactDeltaEvent, type ArtifactDoneEvent, type ArtifactEvent, type ArtifactOpenedEvent, type ArtifactState, type ArtifactStatus, type ArtifactStreamState, type ArtifactSurfaceType, CHANNEL_AI_MODES, type CancelQueuedTurnOptions, type CancelQueuedTurnResponse, type CancelQueuedTurnState, type CancelTurnOptions, type CancelTurnResponse, type CancelTurnState, type Channel, type ChannelAiMode, type ChannelCard, type ChannelMessage, type ChannelMessagesOptions, type ChannelMessagesPage, type ChannelMessagesResponse, type ChannelsOptions, type ComponentOpener, ComponentRenderer, type ConnectionState, type CreateAgentParams, type CreateAgentResult, type CreateInvitationParams, type CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, HostSessionUnavailableError, type HostSessionWelcome, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type InvitationChangeReceipt, type InvitationPage, type InvitationReceipt, type InvitationSummary, type InviteMemberParams, type InviteMemberResult, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, type MemberRole, type MessageRepliesCursor, type MessageRepliesOptions, type MessageRepliesPage, type MessageReplyContext, type MintedAsset, type MintedAssetState, type MountRef, type MoveParams, type Notification, type NotificationsOptions, type OpenEnvelope, type OpenOptions, type PathSubscriptionState, type PersonalItemOrderKey, type PersonalSection, type PinTarget, type PinnedItem, type PrincipalData, type PublicSourceConfig, type PublishedBundle, type PublishedComponentSource, type PublishedComponentStatus, type ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SeatMemberParams, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, type SendMessageParams, type SendMessageResult, type ServeHostSessionOptions, type SessionEntry, type SourceCaptureAdapter, type SourceIdentityStorage, type StartTrackingOptions, type SteerTurnOptions, type SteerTurnResponse, type SteerTurnState, type SubmitFormOptions, type SwitcherAccount, type TimelineEvent, type TimelineHistoryEvent, type TimelineHistoryOptions, type TrackEventOptions, type TurnQueueEntry, type TurnQueueEntryState, type TypeDefinition, type TypeHelpers, type TypeSchema, type UnreadCountsOptions, type UpdateParams, type UpdatePrincipalParams, type UploadItem, type UploadOptions, type UploadResult, type UseArtifactStreamReturn, type UseFileUploadReturn, type UseTimelineHistoryReturn, type VFSEdge, type VFSItem, type VfsItemChange, type WorkCorrelation, type WorkspaceOptions, type WorkspaceSession, acceptInvitation, acceptInvite, answerInput, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelInvitation, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, connectHostSession, createAgent, createInvitation, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchMessageReplies, fetchMessageReplyContexts, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getInvitation, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, inviteMember, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, listInvitations, loadMounts, loadPublishedBundle, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, rejectInvitation, replaceMounts, resendInvitation, resetAllSdkState, resolvePrincipalId, resubscribePath, seatMember, selectMount, sendMessage, serveHostSession, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAcceptInvite, useAccounts, useAgentTimeline, useAllChannels, useAnswerInput, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useCreateAgent, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useInviteMember, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMessageReplies, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, usePublishedComponent, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useSeatMember, useTheme, useTimelineHistory, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
package/dist/index.js CHANGED
@@ -54,6 +54,8 @@ __export(src_exports, {
54
54
  fetchItemVersions: () => fetchItemVersions,
55
55
  fetchItems: () => fetchItems,
56
56
  fetchMemberFocus: () => fetchMemberFocus,
57
+ fetchMessageReplies: () => fetchMessageReplies,
58
+ fetchMessageReplyContexts: () => fetchMessageReplyContexts,
57
59
  fetchOpenEnvelope: () => fetchOpenEnvelope,
58
60
  fetchRecentActivity: () => fetchRecentActivity,
59
61
  fetchResolvedItems: () => fetchResolvedItems,
@@ -128,6 +130,7 @@ __export(src_exports, {
128
130
  resubscribePath: () => resubscribePath,
129
131
  seatMember: () => seatMember,
130
132
  selectMount: () => selectMount,
133
+ sendMessage: () => sendMessage2,
131
134
  serveHostSession: () => serveHostSession,
132
135
  serverDeadlinePassed: () => serverDeadlinePassed,
133
136
  serverMsUntil: () => serverMsUntil,
@@ -187,6 +190,7 @@ __export(src_exports, {
187
190
  useLink: () => useLink,
188
191
  useList: () => useList,
189
192
  useMemberFocus: () => useMemberFocus,
193
+ useMessageReplies: () => useMessageReplies,
190
194
  useMintedAsset: () => useMintedAsset,
191
195
  useMounts: () => useMounts,
192
196
  useMove: () => useMove,
@@ -703,7 +707,7 @@ function resetGatewayReads() {
703
707
  }
704
708
  function isScheduledRead(method, params) {
705
709
  if (method === "query") return !("materialize" in params);
706
- return ["read", "list", "search", "resolve", "resolve-items", "get-channel-messages", "list-memberships"].includes(method);
710
+ return ["read", "list", "search", "resolve", "resolve-items", "get-channel-messages", "list-memberships", "message-replies"].includes(method);
707
711
  }
708
712
  function readRequestKey(value) {
709
713
  if (Array.isArray(value)) return `[${value.map(readRequestKey).join(",")}]`;
@@ -1199,6 +1203,8 @@ var vfsKeys = {
1199
1203
  allChannelMessages: () => ["vfs", sk(), "channel-messages"],
1200
1204
  /** Channels listing (scope-aware). */
1201
1205
  channels: (filter) => ["vfs", sk(), "channels", filter ?? "all"],
1206
+ /** Shares conversation reconnect invalidation, without sharing transcript data. */
1207
+ messageReplies: (channelPath, messageId, rootId, limit = 25) => ["vfs", sk(), "channel-messages", channelPath, rootId ?? "__top__", "contextual-replies", messageId, limit],
1202
1208
  /** All channels queries for current scope (for broad invalidation). */
1203
1209
  allChannels: () => ["vfs", sk(), "channels"],
1204
1210
  /** Notifications listing (scope-aware). */
@@ -2127,6 +2133,67 @@ async function fetchItems(filter, options = {}) {
2127
2133
  return { items: [], total_hint: 0 };
2128
2134
  }
2129
2135
  }
2136
+ function parseReplyContext(raw) {
2137
+ if (!raw || typeof raw !== "object") return void 0;
2138
+ const value = raw;
2139
+ if (value.state === "unavailable") return { state: "unavailable" };
2140
+ if (value.state !== "available" || typeof value.message_id !== "string" || typeof value.path !== "string" || typeof value.excerpt !== "string") return void 0;
2141
+ return {
2142
+ state: "available",
2143
+ message_id: value.message_id,
2144
+ path: value.path,
2145
+ role: typeof value.role === "string" ? value.role : void 0,
2146
+ sender_principal_id: typeof value.sender_principal_id === "string" ? value.sender_principal_id : void 0,
2147
+ sender_display_name: typeof value.sender_display_name === "string" ? value.sender_display_name : void 0,
2148
+ excerpt: value.excerpt,
2149
+ truncated: value.truncated === true
2150
+ };
2151
+ }
2152
+ async function sendMessage2(params) {
2153
+ if (!params.channel_id && !params.channel_path) throw new Error("A message requires a channel.");
2154
+ const isReply = params.reply_to_message_id !== void 0;
2155
+ if (isReply && (typeof params.reply_to_message_id !== "string" || !params.reply_to_message_id.trim())) {
2156
+ throw new Error("A contextual reply requires a target message ID.");
2157
+ }
2158
+ if (isReply && (params.conversation_mode === "new_thread" || params.hand_off_to)) {
2159
+ throw new Error("A contextual reply stays in the current conversation.");
2160
+ }
2161
+ return await gatewayCall(isReply ? "reply-message" : "send-message", params);
2162
+ }
2163
+ async function fetchMessageReplyContexts(messageIds, options) {
2164
+ const requested = new Set(messageIds);
2165
+ const ids = [...requested];
2166
+ if (!ids.length) return {};
2167
+ if (ids.length > 200) throw new Error("Reply context supports at most 200 messages per batch.");
2168
+ const raw = await gatewayCall("message-replies", { operation: "context", message_ids: ids }, options);
2169
+ const replies = raw.replies;
2170
+ if (!replies || typeof replies !== "object" || Array.isArray(replies)) throw new Error("Invalid reply-context response.");
2171
+ return Object.fromEntries(Object.entries(replies).flatMap(([id, value]) => {
2172
+ const parsed = parseReplyContext(value);
2173
+ return parsed && requested.has(id) ? [[id, parsed]] : [];
2174
+ }));
2175
+ }
2176
+ async function fetchMessageReplies(messageId, page = {}, options) {
2177
+ const limit = page.limit ?? 25;
2178
+ if (!Number.isInteger(limit) || limit < 1 || limit > 100) throw new Error("Reply page size must be between 1 and 100.");
2179
+ const raw = await gatewayCall("message-replies", {
2180
+ operation: "list",
2181
+ message_id: messageId,
2182
+ limit,
2183
+ ...page.cursor ? { cursor: page.cursor } : {},
2184
+ ...page.conversationRootId ? { conversation_root_id: page.conversationRootId } : {}
2185
+ }, options);
2186
+ if (!Array.isArray(raw.messages)) throw new Error("Invalid reply-list response.");
2187
+ const cursor = raw.next_cursor;
2188
+ if (cursor && (typeof cursor.updated_at !== "string" || typeof cursor.edge_id !== "string")) {
2189
+ throw new Error("Invalid reply-list cursor.");
2190
+ }
2191
+ const parsed = new Map(parseChannelMessages(raw.messages).map((message) => [message.id, message]));
2192
+ return { messages: raw.messages.flatMap((rawMessage) => {
2193
+ const message = parsed.get(rawMessage.id);
2194
+ return message ? [message] : [];
2195
+ }), next_cursor: cursor ?? null };
2196
+ }
2130
2197
  function parseWorkCorrelation(raw) {
2131
2198
  if (!raw || typeof raw !== "object") return void 0;
2132
2199
  const value = raw;
@@ -2207,6 +2274,7 @@ function parseChannelMessages(rawItems) {
2207
2274
  reply_count: td.reply_count || 0,
2208
2275
  member_count: td.member_count || 0,
2209
2276
  parent_message_id: td.parent_message_id,
2277
+ reply_to: parseReplyContext(i.reply_to),
2210
2278
  intent_card: metadata.intent_card,
2211
2279
  metadata: Object.keys(metadata).length > 0 ? metadata : void 0,
2212
2280
  thread_summary: Array.isArray(td.thread_summary) && td.thread_summary.length > 0 ? td.thread_summary : void 0
@@ -3010,6 +3078,53 @@ function watchChannels(client2, key, normalize) {
3010
3078
  };
3011
3079
  }
3012
3080
 
3081
+ // src/message-replies-realtime.ts
3082
+ var watches2 = /* @__PURE__ */ new WeakMap();
3083
+ function watchMessageReplies(client2, key, target) {
3084
+ let entries = watches2.get(client2);
3085
+ if (!entries) {
3086
+ entries = /* @__PURE__ */ new Map();
3087
+ watches2.set(client2, entries);
3088
+ }
3089
+ const hash = JSON.stringify(key);
3090
+ let watch = entries.get(hash);
3091
+ if (!watch) {
3092
+ let timer;
3093
+ const changed = () => {
3094
+ if (timer) return;
3095
+ timer = setTimeout(() => {
3096
+ timer = void 0;
3097
+ void refreshQuery(client2, key, { exact: true });
3098
+ }, 250);
3099
+ };
3100
+ const stops = [
3101
+ subscribeToEvents("ccm_change", changed, (data) => data.edge_type === "replies_to" && (data.target_item_id ?? data.target_id) === target),
3102
+ subscribeToEvents("vfs_change", changed, (data) => {
3103
+ const id = data.item_id ?? data.id;
3104
+ if (!id) return false;
3105
+ if (id === target) return true;
3106
+ const cached = client2.getQueryData(key);
3107
+ return cached?.pages.some((page) => page.messages.some((message) => message.id === id)) ?? false;
3108
+ })
3109
+ ];
3110
+ watch = { users: 0, stop: () => {
3111
+ if (timer) clearTimeout(timer);
3112
+ stops.forEach((stop) => stop());
3113
+ } };
3114
+ entries.set(hash, watch);
3115
+ }
3116
+ watch.users++;
3117
+ let released = false;
3118
+ return () => {
3119
+ if (released) return;
3120
+ released = true;
3121
+ if (--watch.users === 0) {
3122
+ watch.stop();
3123
+ entries.delete(hash);
3124
+ }
3125
+ };
3126
+ }
3127
+
3013
3128
  // src/hooks.ts
3014
3129
  function useScopeKey() {
3015
3130
  return useSyncExternalStore(subscribeScope, getScopeVersion, getScopeVersion);
@@ -4416,6 +4531,40 @@ function useChannelMessages(options) {
4416
4531
  refetch: query.refetch
4417
4532
  };
4418
4533
  }
4534
+ function useMessageReplies(options) {
4535
+ const scope = useScopeKey();
4536
+ const { channelPath, messageId, conversationRootId, enabled: enabled2 = true, realtime = true, limit = 25 } = options;
4537
+ const active = enabled2 && !!channelPath && !!messageId;
4538
+ const key = useMemo(
4539
+ () => vfsKeys.messageReplies(channelPath ?? "", messageId, conversationRootId, limit),
4540
+ [channelPath, messageId, conversationRootId, limit, scope]
4541
+ );
4542
+ const client2 = useQueryClient();
4543
+ const query = useInfiniteQuery({
4544
+ queryKey: key,
4545
+ queryFn: ({ pageParam }) => fetchMessageReplies(messageId, { limit, conversationRootId, cursor: pageParam }),
4546
+ initialPageParam: void 0,
4547
+ getNextPageParam: (page) => page.next_cursor ?? void 0,
4548
+ enabled: active,
4549
+ staleTime: Infinity,
4550
+ refetchOnMount: "always",
4551
+ refetchOnWindowFocus: false,
4552
+ retry: false
4553
+ });
4554
+ useEffect(
4555
+ () => active && realtime ? watchMessageReplies(client2, key, messageId) : void 0,
4556
+ [active, realtime, client2, key, messageId]
4557
+ );
4558
+ const messages = useMemo(() => {
4559
+ const seen = /* @__PURE__ */ new Set();
4560
+ return (query.data?.pages ?? []).flatMap((page) => page.messages).filter((message) => {
4561
+ if (seen.has(message.id)) return false;
4562
+ seen.add(message.id);
4563
+ return true;
4564
+ });
4565
+ }, [query.data]);
4566
+ return { ...query, messages };
4567
+ }
4419
4568
  function useInfiniteChannelMessages(options) {
4420
4569
  useScopeKey();
4421
4570
  const { channelPath, parentMessageId, limit = 50, realtime = true, enabled: enabled2 = true, conversationsOnly = false, transcriptOnly = false } = options;
@@ -7047,6 +7196,6 @@ function usePersonalSections(contextId, collection) {
7047
7196
  // src/index.ts
7048
7197
  __registerSdkExports(src_exports);
7049
7198
 
7050
- export { CHANNEL_AI_MODES, ComponentRenderer, EnforcementDeniedError, FormSubmissionError, GatewayRequestError, HostSessionUnavailableError, InteractionTrackingError, KernelProvider, acceptInvitation, acceptInvite, answerInput, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelInvitation, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, connectHostSession, createAgent, createInvitation, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getInvitation, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, inviteMember, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, listInvitations, loadMounts, loadPublishedBundle, mount2 as mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, rejectInvitation, replaceMounts, resendInvitation, resetAllSdkState, resolvePrincipalId, resubscribePath, seatMember, selectMount, serveHostSession, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAcceptInvite, useAccounts, useAgentTimeline, useAllChannels, useAnswerInput, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useCreateAgent, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useInviteMember, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, usePublishedComponent, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useSeatMember, useTheme, useTimelineHistory, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
7199
+ export { CHANNEL_AI_MODES, ComponentRenderer, EnforcementDeniedError, FormSubmissionError, GatewayRequestError, HostSessionUnavailableError, InteractionTrackingError, KernelProvider, acceptInvitation, acceptInvite, answerInput, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelInvitation, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, connectHostSession, createAgent, createInvitation, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchMessageReplies, fetchMessageReplyContexts, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getInvitation, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, inviteMember, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, listInvitations, loadMounts, loadPublishedBundle, mount2 as mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, rejectInvitation, replaceMounts, resendInvitation, resetAllSdkState, resolvePrincipalId, resubscribePath, seatMember, selectMount, sendMessage2 as sendMessage, serveHostSession, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAcceptInvite, useAccounts, useAgentTimeline, useAllChannels, useAnswerInput, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useCreateAgent, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useInviteMember, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMessageReplies, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, usePublishedComponent, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useSeatMember, useTheme, useTimelineHistory, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
7051
7200
  //# sourceMappingURL=index.js.map
7052
7201
  //# sourceMappingURL=index.js.map