@ai4b-team/fsaos-gateway-sdk 4.1.0 → 4.2.1
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/README.md +15 -0
- package/dist/iife/gateway.js +5 -5
- package/dist/iife/gateway.js.map +4 -4
- package/dist/iife/ui.js +1 -1
- package/dist/index.cjs +118 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +196 -7
- package/dist/index.d.ts +196 -7
- package/dist/index.js +109 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -170,8 +170,16 @@ interface CreateParams {
|
|
|
170
170
|
type_data?: Record<string, any>;
|
|
171
171
|
[key: string]: unknown;
|
|
172
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* `type_data` MERGES at the top level: each key sent replaces that whole key,
|
|
175
|
+
* keys not sent are kept. `{ type_data: { ai_mode: 'strict' } }` changes the
|
|
176
|
+
* mode and nothing else; `{ type_data: { _remove_keys: ['x'] } }` deletes a
|
|
177
|
+
* key. A channel's `name` (its path) is governed and refused — change
|
|
178
|
+
* `type_data.display_name` instead.
|
|
179
|
+
*/
|
|
173
180
|
interface UpdateParams {
|
|
174
|
-
path
|
|
181
|
+
path?: string;
|
|
182
|
+
id?: string;
|
|
175
183
|
name?: string;
|
|
176
184
|
type_data?: Record<string, any>;
|
|
177
185
|
[key: string]: unknown;
|
|
@@ -191,6 +199,11 @@ interface LinkParams {
|
|
|
191
199
|
target_id: string;
|
|
192
200
|
edge_type?: string;
|
|
193
201
|
weight?: number;
|
|
202
|
+
/**
|
|
203
|
+
* Edge context. For `has_member` (a seat on a chat or breakout) `context.role`
|
|
204
|
+
* is the member's ladder role on that chat — viewer, commenter, editor, admin
|
|
205
|
+
* or owner; absent reads as editor. There is no `metadata` field on an edge.
|
|
206
|
+
*/
|
|
194
207
|
context?: Record<string, any>;
|
|
195
208
|
[key: string]: unknown;
|
|
196
209
|
}
|
|
@@ -1311,6 +1324,8 @@ interface ChannelMessagesPage {
|
|
|
1311
1324
|
*/
|
|
1312
1325
|
declare function fetchChannelMessagesPage(channelPath: string, options?: {
|
|
1313
1326
|
parentMessageId?: string;
|
|
1327
|
+
/** List conversation roots before pagination, using the chat audience rules. */
|
|
1328
|
+
conversationsOnly?: boolean;
|
|
1314
1329
|
limit?: number;
|
|
1315
1330
|
before_seq?: number;
|
|
1316
1331
|
after_seq?: number;
|
|
@@ -2299,10 +2314,12 @@ interface InfiniteChannelMessagesOptions {
|
|
|
2299
2314
|
/** VFS path of the channel. Required. */
|
|
2300
2315
|
channelPath: string | undefined | null;
|
|
2301
2316
|
/**
|
|
2302
|
-
* If set, fetches thread replies
|
|
2303
|
-
*
|
|
2317
|
+
* If set, fetches thread replies. Both modes start with the latest page
|
|
2318
|
+
* and support older pages; threads also support explicit forward paging.
|
|
2304
2319
|
*/
|
|
2305
2320
|
parentMessageId?: string;
|
|
2321
|
+
/** Return conversation roots, excluding activity before the page limit. */
|
|
2322
|
+
conversationsOnly?: boolean;
|
|
2306
2323
|
/** Messages per page. Default 50, max 200. */
|
|
2307
2324
|
limit?: number;
|
|
2308
2325
|
/** Enable SSE-driven auto-refresh. Default: true. */
|
|
@@ -2318,7 +2335,8 @@ interface InfiniteChannelMessagesOptions {
|
|
|
2318
2335
|
* loads older messages using `before_seq` = lowest seq in current data.
|
|
2319
2336
|
*
|
|
2320
2337
|
* - **Thread mode** (parentMessageId set): forward pagination.
|
|
2321
|
-
* Initial fetch returns the
|
|
2338
|
+
* Initial fetch returns the latest N replies. `fetchPreviousPage` loads older
|
|
2339
|
+
* replies using before_seq. `fetchNextPage` loads newer
|
|
2322
2340
|
* replies using `after_seq` = highest seq in current data.
|
|
2323
2341
|
*
|
|
2324
2342
|
* Returns a flat `messages` array (deduped, sorted by seq ASC) plus
|
|
@@ -2339,10 +2357,10 @@ declare function useInfiniteChannelMessages(options: InfiniteChannelMessagesOpti
|
|
|
2339
2357
|
error: Error | null;
|
|
2340
2358
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2341
2359
|
hasPreviousPage: boolean;
|
|
2342
|
-
fetchPreviousPage: (options?: _tanstack_react_query.
|
|
2360
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2343
2361
|
isFetchingPreviousPage: boolean;
|
|
2344
2362
|
hasNextPage: boolean;
|
|
2345
|
-
fetchNextPage: (options?: _tanstack_react_query.
|
|
2363
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2346
2364
|
isFetchingNextPage: boolean;
|
|
2347
2365
|
};
|
|
2348
2366
|
/**
|
|
@@ -2846,6 +2864,177 @@ declare function useMintedAsset(params: {
|
|
|
2846
2864
|
scopePath?: string | null;
|
|
2847
2865
|
}): MintedAsset;
|
|
2848
2866
|
|
|
2867
|
+
/** The ladder: what a member may do in a scope or on a chat. */
|
|
2868
|
+
type MemberRole = 'viewer' | 'commenter' | 'editor' | 'admin' | 'owner';
|
|
2869
|
+
interface InviteMemberParams {
|
|
2870
|
+
/** The person to invite. */
|
|
2871
|
+
email: string;
|
|
2872
|
+
/** The account (or space) they are invited into. */
|
|
2873
|
+
target_scope_id: string;
|
|
2874
|
+
/**
|
|
2875
|
+
* Their standing in that scope — a ladder role, default `editor`. The kernel
|
|
2876
|
+
* refuses `ROLE_ABOVE_INVITER` when it is above the inviter's own role.
|
|
2877
|
+
*/
|
|
2878
|
+
role?: MemberRole;
|
|
2879
|
+
[key: string]: unknown;
|
|
2880
|
+
}
|
|
2881
|
+
interface InviteMemberResult {
|
|
2882
|
+
success: true;
|
|
2883
|
+
/** The member item the invite minted — `pending` until the person accepts. */
|
|
2884
|
+
member_id: string;
|
|
2885
|
+
member_path?: string;
|
|
2886
|
+
status: 'pending' | 'active';
|
|
2887
|
+
role: MemberRole;
|
|
2888
|
+
email: string;
|
|
2889
|
+
/** `invited_to_scope` for an account, `invited_to_space` for a space. */
|
|
2890
|
+
action: string;
|
|
2891
|
+
/** True when the email already belongs to a principal (they are seated on accept all the same). */
|
|
2892
|
+
principal_exists?: boolean;
|
|
2893
|
+
[key: string]: unknown;
|
|
2894
|
+
}
|
|
2895
|
+
/**
|
|
2896
|
+
* Invite a person into an account or space. Errors: `ROLE_ABOVE_INVITER`,
|
|
2897
|
+
* `TARGET_SCOPE_NOT_FOUND`, `INVITE_TARGET_INVALID`.
|
|
2898
|
+
*/
|
|
2899
|
+
declare function inviteMember(params: InviteMemberParams): Promise<InviteMemberResult>;
|
|
2900
|
+
interface AcceptInviteParams {
|
|
2901
|
+
/** The `member_id` the invite returned. */
|
|
2902
|
+
member_id: string;
|
|
2903
|
+
[key: string]: unknown;
|
|
2904
|
+
}
|
|
2905
|
+
interface AcceptInviteResult {
|
|
2906
|
+
success: true;
|
|
2907
|
+
action: 'accepted' | 'already_active';
|
|
2908
|
+
member_id: string;
|
|
2909
|
+
[key: string]: unknown;
|
|
2910
|
+
}
|
|
2911
|
+
/**
|
|
2912
|
+
* Accept an invite as the signed-in person: the member item turns `active`
|
|
2913
|
+
* and every seat already linked to it (see `seatMember`) opens at once —
|
|
2914
|
+
* `can_do` on those chats is false before this call and true after it.
|
|
2915
|
+
*/
|
|
2916
|
+
declare function acceptInvite(params: AcceptInviteParams): Promise<AcceptInviteResult>;
|
|
2917
|
+
interface SeatMemberParams {
|
|
2918
|
+
/** The chat (a channel) or the breakout (a thread root message) to seat them on. */
|
|
2919
|
+
chat_id: string;
|
|
2920
|
+
/** The member item: the invite's `member_id`, or any member of the account. */
|
|
2921
|
+
member_id: string;
|
|
2922
|
+
/**
|
|
2923
|
+
* Their role on this one chat. Absent or off the ladder reads as `editor`.
|
|
2924
|
+
* Separate from the invite's `role`, which is their standing in the account.
|
|
2925
|
+
*/
|
|
2926
|
+
role?: MemberRole;
|
|
2927
|
+
}
|
|
2928
|
+
/**
|
|
2929
|
+
* Seat a member on a chat: one `has_member` edge from the chat to the member
|
|
2930
|
+
* item, the role in the edge context. Seat an invited member right after
|
|
2931
|
+
* `inviteMember`; the seat shows on the roster as pending and opens on accept.
|
|
2932
|
+
*/
|
|
2933
|
+
declare function seatMember(params: SeatMemberParams): Promise<{
|
|
2934
|
+
success: true;
|
|
2935
|
+
edge_id: string;
|
|
2936
|
+
[key: string]: unknown;
|
|
2937
|
+
}>;
|
|
2938
|
+
interface CreateAgentParams {
|
|
2939
|
+
/** The agent's name, ≤80 characters. Its @handle is this, slugged, unique among your agents. */
|
|
2940
|
+
display_name: string;
|
|
2941
|
+
/** One line, ≤400 characters; rendered into its identity line. */
|
|
2942
|
+
description?: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* The path of a live `role` item the agent wears account-wide. It must
|
|
2945
|
+
* already exist (`ROLE_NOT_FOUND` otherwise); nothing is created. Omit it
|
|
2946
|
+
* for the declared user-default role.
|
|
2947
|
+
*/
|
|
2948
|
+
role_path?: string;
|
|
2949
|
+
/** Its face from the character registry. */
|
|
2950
|
+
character?: {
|
|
2951
|
+
character_id: string;
|
|
2952
|
+
asset_version?: string;
|
|
2953
|
+
configuration?: Record<string, unknown>;
|
|
2954
|
+
};
|
|
2955
|
+
/** Its face from an upload. */
|
|
2956
|
+
upload?: {
|
|
2957
|
+
upload_object_key: string;
|
|
2958
|
+
};
|
|
2959
|
+
/** One prompt block each, in the agent's own `instructions/`. */
|
|
2960
|
+
instructions?: {
|
|
2961
|
+
persona?: string;
|
|
2962
|
+
purpose?: string;
|
|
2963
|
+
responsibilities?: string;
|
|
2964
|
+
examples?: string;
|
|
2965
|
+
};
|
|
2966
|
+
[key: string]: unknown;
|
|
2967
|
+
}
|
|
2968
|
+
interface CreateAgentResult {
|
|
2969
|
+
success: true;
|
|
2970
|
+
/** The agent's principal id — what `create-channel`'s `member_ids` takes. */
|
|
2971
|
+
principal_id: string;
|
|
2972
|
+
display_name: string;
|
|
2973
|
+
/** The @handle people and agents mention it by. */
|
|
2974
|
+
handle: string;
|
|
2975
|
+
/** Its home member item in your account. */
|
|
2976
|
+
member_id: string;
|
|
2977
|
+
member_path: string;
|
|
2978
|
+
account_id: string;
|
|
2979
|
+
role_path: string;
|
|
2980
|
+
instructions: Array<{
|
|
2981
|
+
name: string;
|
|
2982
|
+
id: string;
|
|
2983
|
+
[key: string]: unknown;
|
|
2984
|
+
}>;
|
|
2985
|
+
/** The space seats it was given: every space its owner is seated in. */
|
|
2986
|
+
seats: Array<{
|
|
2987
|
+
[key: string]: unknown;
|
|
2988
|
+
}>;
|
|
2989
|
+
ms: number;
|
|
2990
|
+
}
|
|
2991
|
+
/**
|
|
2992
|
+
* Make an agent of your own (one transaction: identity, home member item,
|
|
2993
|
+
* instructions, account-wide role, seats). Only a person may call it. Errors:
|
|
2994
|
+
* `DISPLAY_NAME_REQUIRED`, `DISPLAY_NAME_TOO_LONG`, `DESCRIPTION_TOO_LONG`,
|
|
2995
|
+
* `INSTRUCTIONS_INVALID`, `OWNER_MUST_BE_A_PERSON`, `SCOPE_REQUIRED`,
|
|
2996
|
+
* `ROLE_NOT_FOUND`.
|
|
2997
|
+
*
|
|
2998
|
+
* Creating an agent creates no chat. To talk to it, create one: `create-channel`
|
|
2999
|
+
* with `member_ids: [principal_id]` births a DM (`auto_thread: false`) with you
|
|
3000
|
+
* and the agent on the roster.
|
|
3001
|
+
*/
|
|
3002
|
+
declare function createAgent(params: CreateAgentParams): Promise<CreateAgentResult>;
|
|
3003
|
+
interface AnswerInputParams {
|
|
3004
|
+
/** The step that is `awaiting_input`. */
|
|
3005
|
+
step_id: string;
|
|
3006
|
+
/** What the person answered, in their own words or the shape the request asked for. */
|
|
3007
|
+
answer: unknown;
|
|
3008
|
+
/** The id `await_input` returned (`step.type_data.input_request.request_id`) … */
|
|
3009
|
+
input_request_id?: string;
|
|
3010
|
+
/** … or the exact `input_request` object read from the step. One of the two is required. */
|
|
3011
|
+
input_request?: Record<string, unknown>;
|
|
3012
|
+
[key: string]: unknown;
|
|
3013
|
+
}
|
|
3014
|
+
/**
|
|
3015
|
+
* Answer a step's input request. The kernel records the answer as
|
|
3016
|
+
* `input_response`, returns the step to `pending` and wakes the assignee; the
|
|
3017
|
+
* agent decides what to do next. Nothing mechanical reads the answer as yes
|
|
3018
|
+
* or no. Errors: `TODO_INPUT_ID_REQUIRED`, `TODO_INPUT_CHANGED` (read the step again), `TODO_INPUT_ANSWER_REQUIRED`.
|
|
3019
|
+
*/
|
|
3020
|
+
declare function answerInput(params: AnswerInputParams): Promise<{
|
|
3021
|
+
success: true;
|
|
3022
|
+
[key: string]: unknown;
|
|
3023
|
+
}>;
|
|
3024
|
+
declare function useInviteMember(): _tanstack_react_query.UseMutationResult<InviteMemberResult, Error, InviteMemberParams, unknown>;
|
|
3025
|
+
declare function useAcceptInvite(): _tanstack_react_query.UseMutationResult<AcceptInviteResult, Error, AcceptInviteParams, unknown>;
|
|
3026
|
+
/** Seat a member on a chat; invalidates the edges of both ends (the roster reads them). */
|
|
3027
|
+
declare function useSeatMember(): _tanstack_react_query.UseMutationResult<{
|
|
3028
|
+
[key: string]: unknown;
|
|
3029
|
+
success: true;
|
|
3030
|
+
edge_id: string;
|
|
3031
|
+
}, Error, SeatMemberParams, unknown>;
|
|
3032
|
+
declare function useCreateAgent(): _tanstack_react_query.UseMutationResult<CreateAgentResult, Error, CreateAgentParams, unknown>;
|
|
3033
|
+
declare function useAnswerInput(): _tanstack_react_query.UseMutationResult<{
|
|
3034
|
+
[key: string]: unknown;
|
|
3035
|
+
success: true;
|
|
3036
|
+
}, Error, AnswerInputParams, unknown>;
|
|
3037
|
+
|
|
2849
3038
|
/**
|
|
2850
3039
|
* @fsaos/gateway — Schema Interpretation Utilities
|
|
2851
3040
|
*
|
|
@@ -3467,4 +3656,4 @@ declare function usePersonalSections(contextId: string | null, collection: Secti
|
|
|
3467
3656
|
contextKey: string;
|
|
3468
3657
|
};
|
|
3469
3658
|
|
|
3470
|
-
export { type AccountInfo, 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 CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, 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 ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, 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, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, 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, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, 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, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
|
3659
|
+
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 CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, 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 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 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, acceptInvite, answerInput, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createAgent, 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, 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, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, seatMember, selectMount, 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, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useSeatMember, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
package/dist/index.d.ts
CHANGED
|
@@ -170,8 +170,16 @@ interface CreateParams {
|
|
|
170
170
|
type_data?: Record<string, any>;
|
|
171
171
|
[key: string]: unknown;
|
|
172
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* `type_data` MERGES at the top level: each key sent replaces that whole key,
|
|
175
|
+
* keys not sent are kept. `{ type_data: { ai_mode: 'strict' } }` changes the
|
|
176
|
+
* mode and nothing else; `{ type_data: { _remove_keys: ['x'] } }` deletes a
|
|
177
|
+
* key. A channel's `name` (its path) is governed and refused — change
|
|
178
|
+
* `type_data.display_name` instead.
|
|
179
|
+
*/
|
|
173
180
|
interface UpdateParams {
|
|
174
|
-
path
|
|
181
|
+
path?: string;
|
|
182
|
+
id?: string;
|
|
175
183
|
name?: string;
|
|
176
184
|
type_data?: Record<string, any>;
|
|
177
185
|
[key: string]: unknown;
|
|
@@ -191,6 +199,11 @@ interface LinkParams {
|
|
|
191
199
|
target_id: string;
|
|
192
200
|
edge_type?: string;
|
|
193
201
|
weight?: number;
|
|
202
|
+
/**
|
|
203
|
+
* Edge context. For `has_member` (a seat on a chat or breakout) `context.role`
|
|
204
|
+
* is the member's ladder role on that chat — viewer, commenter, editor, admin
|
|
205
|
+
* or owner; absent reads as editor. There is no `metadata` field on an edge.
|
|
206
|
+
*/
|
|
194
207
|
context?: Record<string, any>;
|
|
195
208
|
[key: string]: unknown;
|
|
196
209
|
}
|
|
@@ -1311,6 +1324,8 @@ interface ChannelMessagesPage {
|
|
|
1311
1324
|
*/
|
|
1312
1325
|
declare function fetchChannelMessagesPage(channelPath: string, options?: {
|
|
1313
1326
|
parentMessageId?: string;
|
|
1327
|
+
/** List conversation roots before pagination, using the chat audience rules. */
|
|
1328
|
+
conversationsOnly?: boolean;
|
|
1314
1329
|
limit?: number;
|
|
1315
1330
|
before_seq?: number;
|
|
1316
1331
|
after_seq?: number;
|
|
@@ -2299,10 +2314,12 @@ interface InfiniteChannelMessagesOptions {
|
|
|
2299
2314
|
/** VFS path of the channel. Required. */
|
|
2300
2315
|
channelPath: string | undefined | null;
|
|
2301
2316
|
/**
|
|
2302
|
-
* If set, fetches thread replies
|
|
2303
|
-
*
|
|
2317
|
+
* If set, fetches thread replies. Both modes start with the latest page
|
|
2318
|
+
* and support older pages; threads also support explicit forward paging.
|
|
2304
2319
|
*/
|
|
2305
2320
|
parentMessageId?: string;
|
|
2321
|
+
/** Return conversation roots, excluding activity before the page limit. */
|
|
2322
|
+
conversationsOnly?: boolean;
|
|
2306
2323
|
/** Messages per page. Default 50, max 200. */
|
|
2307
2324
|
limit?: number;
|
|
2308
2325
|
/** Enable SSE-driven auto-refresh. Default: true. */
|
|
@@ -2318,7 +2335,8 @@ interface InfiniteChannelMessagesOptions {
|
|
|
2318
2335
|
* loads older messages using `before_seq` = lowest seq in current data.
|
|
2319
2336
|
*
|
|
2320
2337
|
* - **Thread mode** (parentMessageId set): forward pagination.
|
|
2321
|
-
* Initial fetch returns the
|
|
2338
|
+
* Initial fetch returns the latest N replies. `fetchPreviousPage` loads older
|
|
2339
|
+
* replies using before_seq. `fetchNextPage` loads newer
|
|
2322
2340
|
* replies using `after_seq` = highest seq in current data.
|
|
2323
2341
|
*
|
|
2324
2342
|
* Returns a flat `messages` array (deduped, sorted by seq ASC) plus
|
|
@@ -2339,10 +2357,10 @@ declare function useInfiniteChannelMessages(options: InfiniteChannelMessagesOpti
|
|
|
2339
2357
|
error: Error | null;
|
|
2340
2358
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2341
2359
|
hasPreviousPage: boolean;
|
|
2342
|
-
fetchPreviousPage: (options?: _tanstack_react_query.
|
|
2360
|
+
fetchPreviousPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2343
2361
|
isFetchingPreviousPage: boolean;
|
|
2344
2362
|
hasNextPage: boolean;
|
|
2345
|
-
fetchNextPage: (options?: _tanstack_react_query.
|
|
2363
|
+
fetchNextPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2346
2364
|
isFetchingNextPage: boolean;
|
|
2347
2365
|
};
|
|
2348
2366
|
/**
|
|
@@ -2846,6 +2864,177 @@ declare function useMintedAsset(params: {
|
|
|
2846
2864
|
scopePath?: string | null;
|
|
2847
2865
|
}): MintedAsset;
|
|
2848
2866
|
|
|
2867
|
+
/** The ladder: what a member may do in a scope or on a chat. */
|
|
2868
|
+
type MemberRole = 'viewer' | 'commenter' | 'editor' | 'admin' | 'owner';
|
|
2869
|
+
interface InviteMemberParams {
|
|
2870
|
+
/** The person to invite. */
|
|
2871
|
+
email: string;
|
|
2872
|
+
/** The account (or space) they are invited into. */
|
|
2873
|
+
target_scope_id: string;
|
|
2874
|
+
/**
|
|
2875
|
+
* Their standing in that scope — a ladder role, default `editor`. The kernel
|
|
2876
|
+
* refuses `ROLE_ABOVE_INVITER` when it is above the inviter's own role.
|
|
2877
|
+
*/
|
|
2878
|
+
role?: MemberRole;
|
|
2879
|
+
[key: string]: unknown;
|
|
2880
|
+
}
|
|
2881
|
+
interface InviteMemberResult {
|
|
2882
|
+
success: true;
|
|
2883
|
+
/** The member item the invite minted — `pending` until the person accepts. */
|
|
2884
|
+
member_id: string;
|
|
2885
|
+
member_path?: string;
|
|
2886
|
+
status: 'pending' | 'active';
|
|
2887
|
+
role: MemberRole;
|
|
2888
|
+
email: string;
|
|
2889
|
+
/** `invited_to_scope` for an account, `invited_to_space` for a space. */
|
|
2890
|
+
action: string;
|
|
2891
|
+
/** True when the email already belongs to a principal (they are seated on accept all the same). */
|
|
2892
|
+
principal_exists?: boolean;
|
|
2893
|
+
[key: string]: unknown;
|
|
2894
|
+
}
|
|
2895
|
+
/**
|
|
2896
|
+
* Invite a person into an account or space. Errors: `ROLE_ABOVE_INVITER`,
|
|
2897
|
+
* `TARGET_SCOPE_NOT_FOUND`, `INVITE_TARGET_INVALID`.
|
|
2898
|
+
*/
|
|
2899
|
+
declare function inviteMember(params: InviteMemberParams): Promise<InviteMemberResult>;
|
|
2900
|
+
interface AcceptInviteParams {
|
|
2901
|
+
/** The `member_id` the invite returned. */
|
|
2902
|
+
member_id: string;
|
|
2903
|
+
[key: string]: unknown;
|
|
2904
|
+
}
|
|
2905
|
+
interface AcceptInviteResult {
|
|
2906
|
+
success: true;
|
|
2907
|
+
action: 'accepted' | 'already_active';
|
|
2908
|
+
member_id: string;
|
|
2909
|
+
[key: string]: unknown;
|
|
2910
|
+
}
|
|
2911
|
+
/**
|
|
2912
|
+
* Accept an invite as the signed-in person: the member item turns `active`
|
|
2913
|
+
* and every seat already linked to it (see `seatMember`) opens at once —
|
|
2914
|
+
* `can_do` on those chats is false before this call and true after it.
|
|
2915
|
+
*/
|
|
2916
|
+
declare function acceptInvite(params: AcceptInviteParams): Promise<AcceptInviteResult>;
|
|
2917
|
+
interface SeatMemberParams {
|
|
2918
|
+
/** The chat (a channel) or the breakout (a thread root message) to seat them on. */
|
|
2919
|
+
chat_id: string;
|
|
2920
|
+
/** The member item: the invite's `member_id`, or any member of the account. */
|
|
2921
|
+
member_id: string;
|
|
2922
|
+
/**
|
|
2923
|
+
* Their role on this one chat. Absent or off the ladder reads as `editor`.
|
|
2924
|
+
* Separate from the invite's `role`, which is their standing in the account.
|
|
2925
|
+
*/
|
|
2926
|
+
role?: MemberRole;
|
|
2927
|
+
}
|
|
2928
|
+
/**
|
|
2929
|
+
* Seat a member on a chat: one `has_member` edge from the chat to the member
|
|
2930
|
+
* item, the role in the edge context. Seat an invited member right after
|
|
2931
|
+
* `inviteMember`; the seat shows on the roster as pending and opens on accept.
|
|
2932
|
+
*/
|
|
2933
|
+
declare function seatMember(params: SeatMemberParams): Promise<{
|
|
2934
|
+
success: true;
|
|
2935
|
+
edge_id: string;
|
|
2936
|
+
[key: string]: unknown;
|
|
2937
|
+
}>;
|
|
2938
|
+
interface CreateAgentParams {
|
|
2939
|
+
/** The agent's name, ≤80 characters. Its @handle is this, slugged, unique among your agents. */
|
|
2940
|
+
display_name: string;
|
|
2941
|
+
/** One line, ≤400 characters; rendered into its identity line. */
|
|
2942
|
+
description?: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* The path of a live `role` item the agent wears account-wide. It must
|
|
2945
|
+
* already exist (`ROLE_NOT_FOUND` otherwise); nothing is created. Omit it
|
|
2946
|
+
* for the declared user-default role.
|
|
2947
|
+
*/
|
|
2948
|
+
role_path?: string;
|
|
2949
|
+
/** Its face from the character registry. */
|
|
2950
|
+
character?: {
|
|
2951
|
+
character_id: string;
|
|
2952
|
+
asset_version?: string;
|
|
2953
|
+
configuration?: Record<string, unknown>;
|
|
2954
|
+
};
|
|
2955
|
+
/** Its face from an upload. */
|
|
2956
|
+
upload?: {
|
|
2957
|
+
upload_object_key: string;
|
|
2958
|
+
};
|
|
2959
|
+
/** One prompt block each, in the agent's own `instructions/`. */
|
|
2960
|
+
instructions?: {
|
|
2961
|
+
persona?: string;
|
|
2962
|
+
purpose?: string;
|
|
2963
|
+
responsibilities?: string;
|
|
2964
|
+
examples?: string;
|
|
2965
|
+
};
|
|
2966
|
+
[key: string]: unknown;
|
|
2967
|
+
}
|
|
2968
|
+
interface CreateAgentResult {
|
|
2969
|
+
success: true;
|
|
2970
|
+
/** The agent's principal id — what `create-channel`'s `member_ids` takes. */
|
|
2971
|
+
principal_id: string;
|
|
2972
|
+
display_name: string;
|
|
2973
|
+
/** The @handle people and agents mention it by. */
|
|
2974
|
+
handle: string;
|
|
2975
|
+
/** Its home member item in your account. */
|
|
2976
|
+
member_id: string;
|
|
2977
|
+
member_path: string;
|
|
2978
|
+
account_id: string;
|
|
2979
|
+
role_path: string;
|
|
2980
|
+
instructions: Array<{
|
|
2981
|
+
name: string;
|
|
2982
|
+
id: string;
|
|
2983
|
+
[key: string]: unknown;
|
|
2984
|
+
}>;
|
|
2985
|
+
/** The space seats it was given: every space its owner is seated in. */
|
|
2986
|
+
seats: Array<{
|
|
2987
|
+
[key: string]: unknown;
|
|
2988
|
+
}>;
|
|
2989
|
+
ms: number;
|
|
2990
|
+
}
|
|
2991
|
+
/**
|
|
2992
|
+
* Make an agent of your own (one transaction: identity, home member item,
|
|
2993
|
+
* instructions, account-wide role, seats). Only a person may call it. Errors:
|
|
2994
|
+
* `DISPLAY_NAME_REQUIRED`, `DISPLAY_NAME_TOO_LONG`, `DESCRIPTION_TOO_LONG`,
|
|
2995
|
+
* `INSTRUCTIONS_INVALID`, `OWNER_MUST_BE_A_PERSON`, `SCOPE_REQUIRED`,
|
|
2996
|
+
* `ROLE_NOT_FOUND`.
|
|
2997
|
+
*
|
|
2998
|
+
* Creating an agent creates no chat. To talk to it, create one: `create-channel`
|
|
2999
|
+
* with `member_ids: [principal_id]` births a DM (`auto_thread: false`) with you
|
|
3000
|
+
* and the agent on the roster.
|
|
3001
|
+
*/
|
|
3002
|
+
declare function createAgent(params: CreateAgentParams): Promise<CreateAgentResult>;
|
|
3003
|
+
interface AnswerInputParams {
|
|
3004
|
+
/** The step that is `awaiting_input`. */
|
|
3005
|
+
step_id: string;
|
|
3006
|
+
/** What the person answered, in their own words or the shape the request asked for. */
|
|
3007
|
+
answer: unknown;
|
|
3008
|
+
/** The id `await_input` returned (`step.type_data.input_request.request_id`) … */
|
|
3009
|
+
input_request_id?: string;
|
|
3010
|
+
/** … or the exact `input_request` object read from the step. One of the two is required. */
|
|
3011
|
+
input_request?: Record<string, unknown>;
|
|
3012
|
+
[key: string]: unknown;
|
|
3013
|
+
}
|
|
3014
|
+
/**
|
|
3015
|
+
* Answer a step's input request. The kernel records the answer as
|
|
3016
|
+
* `input_response`, returns the step to `pending` and wakes the assignee; the
|
|
3017
|
+
* agent decides what to do next. Nothing mechanical reads the answer as yes
|
|
3018
|
+
* or no. Errors: `TODO_INPUT_ID_REQUIRED`, `TODO_INPUT_CHANGED` (read the step again), `TODO_INPUT_ANSWER_REQUIRED`.
|
|
3019
|
+
*/
|
|
3020
|
+
declare function answerInput(params: AnswerInputParams): Promise<{
|
|
3021
|
+
success: true;
|
|
3022
|
+
[key: string]: unknown;
|
|
3023
|
+
}>;
|
|
3024
|
+
declare function useInviteMember(): _tanstack_react_query.UseMutationResult<InviteMemberResult, Error, InviteMemberParams, unknown>;
|
|
3025
|
+
declare function useAcceptInvite(): _tanstack_react_query.UseMutationResult<AcceptInviteResult, Error, AcceptInviteParams, unknown>;
|
|
3026
|
+
/** Seat a member on a chat; invalidates the edges of both ends (the roster reads them). */
|
|
3027
|
+
declare function useSeatMember(): _tanstack_react_query.UseMutationResult<{
|
|
3028
|
+
[key: string]: unknown;
|
|
3029
|
+
success: true;
|
|
3030
|
+
edge_id: string;
|
|
3031
|
+
}, Error, SeatMemberParams, unknown>;
|
|
3032
|
+
declare function useCreateAgent(): _tanstack_react_query.UseMutationResult<CreateAgentResult, Error, CreateAgentParams, unknown>;
|
|
3033
|
+
declare function useAnswerInput(): _tanstack_react_query.UseMutationResult<{
|
|
3034
|
+
[key: string]: unknown;
|
|
3035
|
+
success: true;
|
|
3036
|
+
}, Error, AnswerInputParams, unknown>;
|
|
3037
|
+
|
|
2849
3038
|
/**
|
|
2850
3039
|
* @fsaos/gateway — Schema Interpretation Utilities
|
|
2851
3040
|
*
|
|
@@ -3467,4 +3656,4 @@ declare function usePersonalSections(contextId: string | null, collection: Secti
|
|
|
3467
3656
|
contextKey: string;
|
|
3468
3657
|
};
|
|
3469
3658
|
|
|
3470
|
-
export { type AccountInfo, 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 CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, 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 ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, 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, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, 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, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, 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, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
|
3659
|
+
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 CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, 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 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 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, acceptInvite, answerInput, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createAgent, 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, 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, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, seatMember, selectMount, 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, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useSeatMember, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|