@raisindb/client 0.4.0 → 0.4.2

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.
@@ -2700,6 +2700,153 @@ declare class McpClient {
2700
2700
  subscribeResource(uri: string): McpResourceSubscription;
2701
2701
  }
2702
2702
 
2703
+ /**
2704
+ * IdentityAuthApi — passwordless and password sign-in for end users.
2705
+ *
2706
+ * This is the *identity* half of authentication (the people using an
2707
+ * application), distinct from {@link AuthManager}, which is the admin/JWT
2708
+ * credential holder the transports authenticate with. The two meet at the
2709
+ * token: everything here returns an {@link IdentityAuthResponse}, and
2710
+ * `client.setIdentityTokens(...)` hands it to the AuthManager so subsequent
2711
+ * SQL, node and function calls run as that person.
2712
+ *
2713
+ * Every endpoint is repository-scoped (`/auth/{repo}/…`). A repository is not
2714
+ * optional: identities, their home nodes and their roles are per repository,
2715
+ * so a call that omitted it would have to guess which one, and guessing wrong
2716
+ * signs somebody into the wrong data.
2717
+ */
2718
+ /** Transport hook: performs one JSON HTTP call and returns the parsed body. */
2719
+ type IdentityAuthTransport = <T>(options: {
2720
+ method: string;
2721
+ path: string;
2722
+ body?: unknown;
2723
+ /** Send no Authorization header — the point of a sign-in call. */
2724
+ skipAuth?: boolean;
2725
+ }) => Promise<T>;
2726
+ /** Identity returned alongside a token pair. */
2727
+ interface IdentityInfo {
2728
+ id: string;
2729
+ email: string;
2730
+ display_name: string | null;
2731
+ avatar_url: string | null;
2732
+ email_verified: boolean;
2733
+ linked_providers: string[];
2734
+ /** The person's home node path in this repository. */
2735
+ home: string | null;
2736
+ }
2737
+ /** A successful sign-in: tokens plus who they belong to. */
2738
+ interface IdentityAuthResult {
2739
+ access_token: string;
2740
+ refresh_token: string;
2741
+ token_type: string;
2742
+ /** Unix seconds. */
2743
+ expires_at: number;
2744
+ identity: IdentityInfo;
2745
+ }
2746
+ /**
2747
+ * Acknowledgement that a magic link was *sent*.
2748
+ *
2749
+ * Deliberately carries no token and no unmasked address: this response is
2750
+ * shown to whoever typed the email, who is not yet proven to own it.
2751
+ */
2752
+ interface MagicLinkSent {
2753
+ message: string;
2754
+ /** e.g. `u***@example.com` — enough to spot a typo, not to harvest. */
2755
+ masked_email: string;
2756
+ expires_in_minutes: number;
2757
+ }
2758
+ interface MagicLinkOptions {
2759
+ /**
2760
+ * Where RaisinDB sends the browser after it verifies the token.
2761
+ *
2762
+ * The server checks this against the tenant's redirect allowlist and
2763
+ * refuses anything outside it, so an attacker cannot aim a victim's
2764
+ * one-time token at their own host. Omit it to use the configured default.
2765
+ */
2766
+ redirectUrl?: string;
2767
+ }
2768
+ /** Which sign-in methods this repository actually offers. */
2769
+ interface AuthProviders {
2770
+ providers: Array<{
2771
+ id: string;
2772
+ display_name: string;
2773
+ icon: string;
2774
+ auth_url: string;
2775
+ }>;
2776
+ local_enabled: boolean;
2777
+ magic_link_enabled: boolean;
2778
+ }
2779
+ /** Who the caller currently is, as this repository sees them. */
2780
+ interface IdentityMe {
2781
+ id: string;
2782
+ email: string | null;
2783
+ roles: string[];
2784
+ anonymous: boolean;
2785
+ home: string | null;
2786
+ }
2787
+ /**
2788
+ * Identity authentication scoped to one repository.
2789
+ *
2790
+ * Obtain it from `client.auth(repository)` rather than constructing it.
2791
+ */
2792
+ declare class IdentityAuthApi {
2793
+ private readonly repository;
2794
+ private readonly transport;
2795
+ constructor(repository: string, transport: IdentityAuthTransport);
2796
+ private get base();
2797
+ /**
2798
+ * Ask RaisinDB to email a sign-in link.
2799
+ *
2800
+ * The reply is an acknowledgement, never a token — the token only exists in
2801
+ * the email. It also resolves for an address that has no account, because a
2802
+ * response that differed would turn this endpoint into an account-existence
2803
+ * oracle.
2804
+ */
2805
+ sendMagicLink(email: string, options?: MagicLinkOptions): Promise<MagicLinkSent>;
2806
+ /**
2807
+ * Exchange a magic-link token for a session.
2808
+ *
2809
+ * Most applications never call this: following the emailed link hits
2810
+ * RaisinDB directly, which verifies and 302s to the redirect URL with the
2811
+ * tokens in the URL **fragment** (so they stay out of server logs and out
2812
+ * of the Referer header) — see {@link readTokensFromFragment}. Call this
2813
+ * only when handling the token yourself, and note it is single-use.
2814
+ */
2815
+ verifyMagicLink(token: string): Promise<IdentityAuthResult>;
2816
+ /** Sign in with email and password, where the repository enables it. */
2817
+ login(email: string, password: string, options?: {
2818
+ rememberMe?: boolean;
2819
+ }): Promise<IdentityAuthResult>;
2820
+ /** Create an account with email and password. */
2821
+ register(email: string, password: string, options?: {
2822
+ displayName?: string;
2823
+ }): Promise<IdentityAuthResult>;
2824
+ /** Trade a refresh token for a fresh pair. */
2825
+ refresh(refreshToken: string): Promise<IdentityAuthResult>;
2826
+ /**
2827
+ * Which sign-in methods to render.
2828
+ *
2829
+ * Ask rather than hard-code: magic link and password are per-repository
2830
+ * configuration, and a button for a disabled method is a dead end.
2831
+ */
2832
+ providers(): Promise<AuthProviders>;
2833
+ /** Who the current token belongs to in this repository. */
2834
+ me(): Promise<IdentityMe>;
2835
+ }
2836
+ /**
2837
+ * Read the tokens a magic-link verify redirect left in the URL fragment.
2838
+ *
2839
+ * Pass `window.location.hash` (or the whole URL) on the callback route. The
2840
+ * fragment never reaches a server, which is why the tokens travel there.
2841
+ *
2842
+ * Returns `null` when the fragment carries no tokens, so a plain visit to the
2843
+ * callback route is distinguishable from an arrival from a link.
2844
+ */
2845
+ declare function readTokensFromFragment(hashOrUrl: string): {
2846
+ accessToken: string;
2847
+ refreshToken: string | null;
2848
+ } | null;
2849
+
2703
2850
  /**
2704
2851
  * RaisinDB HTTP client for server-side rendering (SSR)
2705
2852
  *
@@ -2987,6 +3134,35 @@ declare class RaisinHttpClient extends EventEmitter {
2987
3134
  * Get auth manager (for token access)
2988
3135
  */
2989
3136
  getAuthManager(): AuthManager;
3137
+ /**
3138
+ * Identity authentication (magic link, password, providers) for one
3139
+ * repository.
3140
+ *
3141
+ * Identities are per repository — their home nodes and roles live there — so
3142
+ * the repository is required rather than inferred from client state, which
3143
+ * would silently sign somebody into whichever one happened to be current.
3144
+ *
3145
+ * ```ts
3146
+ * const auth = client.auth('studio');
3147
+ * await auth.sendMagicLink('a@example.com', {
3148
+ * redirectUrl: 'https://app.example.com/account/callback',
3149
+ * });
3150
+ * // …on the callback route:
3151
+ * const tokens = readTokensFromFragment(window.location.hash);
3152
+ * if (tokens) client.setIdentityTokens(tokens.accessToken, tokens.refreshToken);
3153
+ * ```
3154
+ */
3155
+ auth(repository: string): IdentityAuthApi;
3156
+ /**
3157
+ * Adopt an identity's tokens for every subsequent call on this client.
3158
+ *
3159
+ * Takes the loose form so it serves both callers: the whole result of a
3160
+ * sign-in, and the pair recovered from a redirect fragment (which carries no
3161
+ * identity object and may carry no refresh token).
3162
+ */
3163
+ setIdentityTokens(accessTokenOrResult: string | IdentityAuthResult, refreshToken?: string | null): void;
3164
+ /** Forget the current identity's tokens. */
3165
+ clearIdentityTokens(): void;
2990
3166
  /**
2991
3167
  * Get or create the upload manager
2992
3168
  */
@@ -3922,12 +4098,20 @@ declare class Branches {
3922
4098
  * Each root's parent path must already exist on the target branch. With
3923
4099
  * `deleteMissing`, target nodes under the roots that are absent from the
3924
4100
  * copied source set are pruned (one-way sync).
4101
+ *
4102
+ * `sourceRevision` pins the read to a point in time. A promotion of a large
4103
+ * set is not instantaneous, so without it the copy reads each node when its
4104
+ * turn comes and a writer working in parallel lands partly inside the result
4105
+ * — a torn snapshot. Pass the revision captured when the operation was
4106
+ * decided (see `getHead`) to copy exactly that state. The target branch is
4107
+ * always resolved at its head: the pin says WHAT to copy, never where.
3925
4108
  */
3926
4109
  copyNodes(sourceBranch: string, targetBranch: string, opts: {
3927
4110
  workspace: string;
3928
4111
  roots: string[];
3929
4112
  recursive?: boolean;
3930
4113
  deleteMissing?: boolean;
4114
+ sourceRevision?: string;
3931
4115
  }): Promise<CrossBranchCopySummary>;
3932
4116
  }
3933
4117
 
@@ -6898,4 +7082,4 @@ declare class ConversationListStore {
6898
7082
  private notify;
6899
7083
  }
6900
7084
 
6901
- export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, isFlowDefinitionStep as c$, type FunctionInvokeOptions as c0, type FunctionInvokeResponse as c1, type FunctionInvokeSyncResponse as c2, McpClient as c3, type McpTransport as c4, type McpFrameStream as c5, type McpJsonRpcFrame as c6, type McpToolDescriptor as c7, type McpContentBlock as c8, type McpCallToolResult as c9, type RetryConfig as cA, type RetryStrategy as cB, type HumanTaskType as cC, type CanonicalTaskType as cD, type TaskOption as cE, type HandoffTarget as cF, type ChatTerminationMode as cG, type ChatTerminationConfig as cH, type ChatStepConfig as cI, type AiToolMode as cJ, type AiErrorBehavior as cK, type AiContainerConfig as cL, type FlowDefinitionNodeBase as cM, type FlowStepProperties as cN, type FlowDefinitionStep as cO, type ContainerRule as cP, type FanOutConfig as cQ, type MergeStrategy as cR, type FlowDefinitionContainer as cS, type FlowDefinitionNode as cT, type FlowDefinition as cU, type InboxTask as cV, type InboxTaskStatus as cW, type TaskCompletionResult as cX, RETRY_STRATEGIES as cY, getRefDisplayName as cZ, getRefPath as c_, type McpResourceContents as ca, type McpReadResourceResult as cb, type McpResourceUpdate as cc, type McpResourceSubscription as cd, type FlowRunResponse as ce, type FlowInstanceStatus as cf, type FlowInstanceStatusResponse as cg, type StepStartedEvent as ch, type StepCompletedEvent as ci, type StepFailedEvent as cj, type FlowWaitingEvent as ck, type FlowResumedEvent as cl, type FlowCompletedEvent as cm, type FlowFailedEvent as cn, type TextChunkEvent as co, type ToolCallStartedEvent as cp, type ToolCallCompletedEvent as cq, type ThoughtChunkEvent as cr, type ConversationCreatedEvent as cs, type MessageSavedEvent as ct, type LogEvent as cu, isTerminalEvent as cv, type RaisinReference as cw, type ContainerType as cx, type StepErrorBehavior as cy, type FlowErrorStrategy as cz, type ConversationListItem as d, isFlowDefinitionContainer as d0, InboxApi as d1, type InboxApiOptions as d2, type ListTasksOptions as d3, type ListTasksResponse as d4, type ChatEvent as d5, type Conversation as d6, type ConversationType as d7, type ConversationStatus as d8, type MessageBody as d9, projectPlansFromMessages as dA, type ChatTextChunkEvent as da, type ChatAssistantMessageEvent as db, type ChatWaitingEvent as dc, type ChatCompletedEvent as dd, type ChatFailedEvent as de, type ChatDoneEvent as df, type ChatToolCallStartedEvent as dg, type ChatToolCallCompletedEvent as dh, type ChatThoughtChunkEvent as di, type ToolCallRecord as dj, type MessageChild as dk, type PlanTask as dl, type ChatConversationCreatedEvent as dm, type ChatMessageSavedEvent as dn, type ChatMessageDeliveredEvent as dp, type ChatLogEvent as dq, ConversationManager as dr, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as ds, type ListConversationsOptions as dt, type CreateConversationOptions as du, type SendMessageOptions as dv, type ConversationSubscription as dw, type PlanActionReceipt as dx, type PlanActionOptions as dy, type ConversationManagerOptions as dz, ConversationListStore as e, type ConversationStoreOptions as f, type ConversationListStoreOptions as g, type ConversationListSnapshot as h, FlowsApi as i, type FlowExecutionEvent as j, type PlanProjectionTask as k, type PropertyValue as l, type RelationRef as m, type ClientOptions as n, type Credentials as o, RaisinHttpClient as p, type RetryOptions as q, type UploaderConfig as r, type FileSource as s, type BatchUploadOptions as t, type BatchUploadResult as u, type BatchProgress as v, type ReconnectOptions as w, type ClientMode as x, type CurrentUser as y, type UserNode as z };
7085
+ export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, type FlowDefinitionContainer as c$, IdentityAuthApi as c0, readTokensFromFragment as c1, type IdentityAuthResult as c2, type IdentityAuthTransport as c3, type IdentityInfo as c4, type IdentityMe as c5, type MagicLinkSent as c6, type MagicLinkOptions as c7, type AuthProviders as c8, type FunctionInvokeOptions as c9, type ThoughtChunkEvent as cA, type ConversationCreatedEvent as cB, type MessageSavedEvent as cC, type LogEvent as cD, isTerminalEvent as cE, type RaisinReference as cF, type ContainerType as cG, type StepErrorBehavior as cH, type FlowErrorStrategy as cI, type RetryConfig as cJ, type RetryStrategy as cK, type HumanTaskType as cL, type CanonicalTaskType as cM, type TaskOption as cN, type HandoffTarget as cO, type ChatTerminationMode as cP, type ChatTerminationConfig as cQ, type ChatStepConfig as cR, type AiToolMode as cS, type AiErrorBehavior as cT, type AiContainerConfig as cU, type FlowDefinitionNodeBase as cV, type FlowStepProperties as cW, type FlowDefinitionStep as cX, type ContainerRule as cY, type FanOutConfig as cZ, type MergeStrategy as c_, type FunctionInvokeResponse as ca, type FunctionInvokeSyncResponse as cb, McpClient as cc, type McpTransport as cd, type McpFrameStream as ce, type McpJsonRpcFrame as cf, type McpToolDescriptor as cg, type McpContentBlock as ch, type McpCallToolResult as ci, type McpResourceContents as cj, type McpReadResourceResult as ck, type McpResourceUpdate as cl, type McpResourceSubscription as cm, type FlowRunResponse as cn, type FlowInstanceStatus as co, type FlowInstanceStatusResponse as cp, type StepStartedEvent as cq, type StepCompletedEvent as cr, type StepFailedEvent as cs, type FlowWaitingEvent as ct, type FlowResumedEvent as cu, type FlowCompletedEvent as cv, type FlowFailedEvent as cw, type TextChunkEvent as cx, type ToolCallStartedEvent as cy, type ToolCallCompletedEvent as cz, type ConversationListItem as d, type FlowDefinitionNode as d0, type FlowDefinition as d1, type InboxTask as d2, type InboxTaskStatus as d3, type TaskCompletionResult as d4, RETRY_STRATEGIES as d5, getRefDisplayName as d6, getRefPath as d7, isFlowDefinitionStep as d8, isFlowDefinitionContainer as d9, ConversationManager as dA, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as dB, type ListConversationsOptions as dC, type CreateConversationOptions as dD, type SendMessageOptions as dE, type ConversationSubscription as dF, type PlanActionReceipt as dG, type PlanActionOptions as dH, type ConversationManagerOptions as dI, projectPlansFromMessages as dJ, InboxApi as da, type InboxApiOptions as db, type ListTasksOptions as dc, type ListTasksResponse as dd, type ChatEvent as de, type Conversation as df, type ConversationType as dg, type ConversationStatus as dh, type MessageBody as di, type ChatTextChunkEvent as dj, type ChatAssistantMessageEvent as dk, type ChatWaitingEvent as dl, type ChatCompletedEvent as dm, type ChatFailedEvent as dn, type ChatDoneEvent as dp, type ChatToolCallStartedEvent as dq, type ChatToolCallCompletedEvent as dr, type ChatThoughtChunkEvent as ds, type ToolCallRecord as dt, type MessageChild as du, type PlanTask as dv, type ChatConversationCreatedEvent as dw, type ChatMessageSavedEvent as dx, type ChatMessageDeliveredEvent as dy, type ChatLogEvent as dz, ConversationListStore as e, type ConversationStoreOptions as f, type ConversationListStoreOptions as g, type ConversationListSnapshot as h, FlowsApi as i, type FlowExecutionEvent as j, type PlanProjectionTask as k, type PropertyValue as l, type RelationRef as m, type ClientOptions as n, type Credentials as o, RaisinHttpClient as p, type RetryOptions as q, type UploaderConfig as r, type FileSource as s, type BatchUploadOptions as t, type BatchUploadResult as u, type BatchProgress as v, type ReconnectOptions as w, type ClientMode as x, type CurrentUser as y, type UserNode as z };
@@ -2700,6 +2700,153 @@ declare class McpClient {
2700
2700
  subscribeResource(uri: string): McpResourceSubscription;
2701
2701
  }
2702
2702
 
2703
+ /**
2704
+ * IdentityAuthApi — passwordless and password sign-in for end users.
2705
+ *
2706
+ * This is the *identity* half of authentication (the people using an
2707
+ * application), distinct from {@link AuthManager}, which is the admin/JWT
2708
+ * credential holder the transports authenticate with. The two meet at the
2709
+ * token: everything here returns an {@link IdentityAuthResponse}, and
2710
+ * `client.setIdentityTokens(...)` hands it to the AuthManager so subsequent
2711
+ * SQL, node and function calls run as that person.
2712
+ *
2713
+ * Every endpoint is repository-scoped (`/auth/{repo}/…`). A repository is not
2714
+ * optional: identities, their home nodes and their roles are per repository,
2715
+ * so a call that omitted it would have to guess which one, and guessing wrong
2716
+ * signs somebody into the wrong data.
2717
+ */
2718
+ /** Transport hook: performs one JSON HTTP call and returns the parsed body. */
2719
+ type IdentityAuthTransport = <T>(options: {
2720
+ method: string;
2721
+ path: string;
2722
+ body?: unknown;
2723
+ /** Send no Authorization header — the point of a sign-in call. */
2724
+ skipAuth?: boolean;
2725
+ }) => Promise<T>;
2726
+ /** Identity returned alongside a token pair. */
2727
+ interface IdentityInfo {
2728
+ id: string;
2729
+ email: string;
2730
+ display_name: string | null;
2731
+ avatar_url: string | null;
2732
+ email_verified: boolean;
2733
+ linked_providers: string[];
2734
+ /** The person's home node path in this repository. */
2735
+ home: string | null;
2736
+ }
2737
+ /** A successful sign-in: tokens plus who they belong to. */
2738
+ interface IdentityAuthResult {
2739
+ access_token: string;
2740
+ refresh_token: string;
2741
+ token_type: string;
2742
+ /** Unix seconds. */
2743
+ expires_at: number;
2744
+ identity: IdentityInfo;
2745
+ }
2746
+ /**
2747
+ * Acknowledgement that a magic link was *sent*.
2748
+ *
2749
+ * Deliberately carries no token and no unmasked address: this response is
2750
+ * shown to whoever typed the email, who is not yet proven to own it.
2751
+ */
2752
+ interface MagicLinkSent {
2753
+ message: string;
2754
+ /** e.g. `u***@example.com` — enough to spot a typo, not to harvest. */
2755
+ masked_email: string;
2756
+ expires_in_minutes: number;
2757
+ }
2758
+ interface MagicLinkOptions {
2759
+ /**
2760
+ * Where RaisinDB sends the browser after it verifies the token.
2761
+ *
2762
+ * The server checks this against the tenant's redirect allowlist and
2763
+ * refuses anything outside it, so an attacker cannot aim a victim's
2764
+ * one-time token at their own host. Omit it to use the configured default.
2765
+ */
2766
+ redirectUrl?: string;
2767
+ }
2768
+ /** Which sign-in methods this repository actually offers. */
2769
+ interface AuthProviders {
2770
+ providers: Array<{
2771
+ id: string;
2772
+ display_name: string;
2773
+ icon: string;
2774
+ auth_url: string;
2775
+ }>;
2776
+ local_enabled: boolean;
2777
+ magic_link_enabled: boolean;
2778
+ }
2779
+ /** Who the caller currently is, as this repository sees them. */
2780
+ interface IdentityMe {
2781
+ id: string;
2782
+ email: string | null;
2783
+ roles: string[];
2784
+ anonymous: boolean;
2785
+ home: string | null;
2786
+ }
2787
+ /**
2788
+ * Identity authentication scoped to one repository.
2789
+ *
2790
+ * Obtain it from `client.auth(repository)` rather than constructing it.
2791
+ */
2792
+ declare class IdentityAuthApi {
2793
+ private readonly repository;
2794
+ private readonly transport;
2795
+ constructor(repository: string, transport: IdentityAuthTransport);
2796
+ private get base();
2797
+ /**
2798
+ * Ask RaisinDB to email a sign-in link.
2799
+ *
2800
+ * The reply is an acknowledgement, never a token — the token only exists in
2801
+ * the email. It also resolves for an address that has no account, because a
2802
+ * response that differed would turn this endpoint into an account-existence
2803
+ * oracle.
2804
+ */
2805
+ sendMagicLink(email: string, options?: MagicLinkOptions): Promise<MagicLinkSent>;
2806
+ /**
2807
+ * Exchange a magic-link token for a session.
2808
+ *
2809
+ * Most applications never call this: following the emailed link hits
2810
+ * RaisinDB directly, which verifies and 302s to the redirect URL with the
2811
+ * tokens in the URL **fragment** (so they stay out of server logs and out
2812
+ * of the Referer header) — see {@link readTokensFromFragment}. Call this
2813
+ * only when handling the token yourself, and note it is single-use.
2814
+ */
2815
+ verifyMagicLink(token: string): Promise<IdentityAuthResult>;
2816
+ /** Sign in with email and password, where the repository enables it. */
2817
+ login(email: string, password: string, options?: {
2818
+ rememberMe?: boolean;
2819
+ }): Promise<IdentityAuthResult>;
2820
+ /** Create an account with email and password. */
2821
+ register(email: string, password: string, options?: {
2822
+ displayName?: string;
2823
+ }): Promise<IdentityAuthResult>;
2824
+ /** Trade a refresh token for a fresh pair. */
2825
+ refresh(refreshToken: string): Promise<IdentityAuthResult>;
2826
+ /**
2827
+ * Which sign-in methods to render.
2828
+ *
2829
+ * Ask rather than hard-code: magic link and password are per-repository
2830
+ * configuration, and a button for a disabled method is a dead end.
2831
+ */
2832
+ providers(): Promise<AuthProviders>;
2833
+ /** Who the current token belongs to in this repository. */
2834
+ me(): Promise<IdentityMe>;
2835
+ }
2836
+ /**
2837
+ * Read the tokens a magic-link verify redirect left in the URL fragment.
2838
+ *
2839
+ * Pass `window.location.hash` (or the whole URL) on the callback route. The
2840
+ * fragment never reaches a server, which is why the tokens travel there.
2841
+ *
2842
+ * Returns `null` when the fragment carries no tokens, so a plain visit to the
2843
+ * callback route is distinguishable from an arrival from a link.
2844
+ */
2845
+ declare function readTokensFromFragment(hashOrUrl: string): {
2846
+ accessToken: string;
2847
+ refreshToken: string | null;
2848
+ } | null;
2849
+
2703
2850
  /**
2704
2851
  * RaisinDB HTTP client for server-side rendering (SSR)
2705
2852
  *
@@ -2987,6 +3134,35 @@ declare class RaisinHttpClient extends EventEmitter {
2987
3134
  * Get auth manager (for token access)
2988
3135
  */
2989
3136
  getAuthManager(): AuthManager;
3137
+ /**
3138
+ * Identity authentication (magic link, password, providers) for one
3139
+ * repository.
3140
+ *
3141
+ * Identities are per repository — their home nodes and roles live there — so
3142
+ * the repository is required rather than inferred from client state, which
3143
+ * would silently sign somebody into whichever one happened to be current.
3144
+ *
3145
+ * ```ts
3146
+ * const auth = client.auth('studio');
3147
+ * await auth.sendMagicLink('a@example.com', {
3148
+ * redirectUrl: 'https://app.example.com/account/callback',
3149
+ * });
3150
+ * // …on the callback route:
3151
+ * const tokens = readTokensFromFragment(window.location.hash);
3152
+ * if (tokens) client.setIdentityTokens(tokens.accessToken, tokens.refreshToken);
3153
+ * ```
3154
+ */
3155
+ auth(repository: string): IdentityAuthApi;
3156
+ /**
3157
+ * Adopt an identity's tokens for every subsequent call on this client.
3158
+ *
3159
+ * Takes the loose form so it serves both callers: the whole result of a
3160
+ * sign-in, and the pair recovered from a redirect fragment (which carries no
3161
+ * identity object and may carry no refresh token).
3162
+ */
3163
+ setIdentityTokens(accessTokenOrResult: string | IdentityAuthResult, refreshToken?: string | null): void;
3164
+ /** Forget the current identity's tokens. */
3165
+ clearIdentityTokens(): void;
2990
3166
  /**
2991
3167
  * Get or create the upload manager
2992
3168
  */
@@ -3922,12 +4098,20 @@ declare class Branches {
3922
4098
  * Each root's parent path must already exist on the target branch. With
3923
4099
  * `deleteMissing`, target nodes under the roots that are absent from the
3924
4100
  * copied source set are pruned (one-way sync).
4101
+ *
4102
+ * `sourceRevision` pins the read to a point in time. A promotion of a large
4103
+ * set is not instantaneous, so without it the copy reads each node when its
4104
+ * turn comes and a writer working in parallel lands partly inside the result
4105
+ * — a torn snapshot. Pass the revision captured when the operation was
4106
+ * decided (see `getHead`) to copy exactly that state. The target branch is
4107
+ * always resolved at its head: the pin says WHAT to copy, never where.
3925
4108
  */
3926
4109
  copyNodes(sourceBranch: string, targetBranch: string, opts: {
3927
4110
  workspace: string;
3928
4111
  roots: string[];
3929
4112
  recursive?: boolean;
3930
4113
  deleteMissing?: boolean;
4114
+ sourceRevision?: string;
3931
4115
  }): Promise<CrossBranchCopySummary>;
3932
4116
  }
3933
4117
 
@@ -6898,4 +7082,4 @@ declare class ConversationListStore {
6898
7082
  private notify;
6899
7083
  }
6900
7084
 
6901
- export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, isFlowDefinitionStep as c$, type FunctionInvokeOptions as c0, type FunctionInvokeResponse as c1, type FunctionInvokeSyncResponse as c2, McpClient as c3, type McpTransport as c4, type McpFrameStream as c5, type McpJsonRpcFrame as c6, type McpToolDescriptor as c7, type McpContentBlock as c8, type McpCallToolResult as c9, type RetryConfig as cA, type RetryStrategy as cB, type HumanTaskType as cC, type CanonicalTaskType as cD, type TaskOption as cE, type HandoffTarget as cF, type ChatTerminationMode as cG, type ChatTerminationConfig as cH, type ChatStepConfig as cI, type AiToolMode as cJ, type AiErrorBehavior as cK, type AiContainerConfig as cL, type FlowDefinitionNodeBase as cM, type FlowStepProperties as cN, type FlowDefinitionStep as cO, type ContainerRule as cP, type FanOutConfig as cQ, type MergeStrategy as cR, type FlowDefinitionContainer as cS, type FlowDefinitionNode as cT, type FlowDefinition as cU, type InboxTask as cV, type InboxTaskStatus as cW, type TaskCompletionResult as cX, RETRY_STRATEGIES as cY, getRefDisplayName as cZ, getRefPath as c_, type McpResourceContents as ca, type McpReadResourceResult as cb, type McpResourceUpdate as cc, type McpResourceSubscription as cd, type FlowRunResponse as ce, type FlowInstanceStatus as cf, type FlowInstanceStatusResponse as cg, type StepStartedEvent as ch, type StepCompletedEvent as ci, type StepFailedEvent as cj, type FlowWaitingEvent as ck, type FlowResumedEvent as cl, type FlowCompletedEvent as cm, type FlowFailedEvent as cn, type TextChunkEvent as co, type ToolCallStartedEvent as cp, type ToolCallCompletedEvent as cq, type ThoughtChunkEvent as cr, type ConversationCreatedEvent as cs, type MessageSavedEvent as ct, type LogEvent as cu, isTerminalEvent as cv, type RaisinReference as cw, type ContainerType as cx, type StepErrorBehavior as cy, type FlowErrorStrategy as cz, type ConversationListItem as d, isFlowDefinitionContainer as d0, InboxApi as d1, type InboxApiOptions as d2, type ListTasksOptions as d3, type ListTasksResponse as d4, type ChatEvent as d5, type Conversation as d6, type ConversationType as d7, type ConversationStatus as d8, type MessageBody as d9, projectPlansFromMessages as dA, type ChatTextChunkEvent as da, type ChatAssistantMessageEvent as db, type ChatWaitingEvent as dc, type ChatCompletedEvent as dd, type ChatFailedEvent as de, type ChatDoneEvent as df, type ChatToolCallStartedEvent as dg, type ChatToolCallCompletedEvent as dh, type ChatThoughtChunkEvent as di, type ToolCallRecord as dj, type MessageChild as dk, type PlanTask as dl, type ChatConversationCreatedEvent as dm, type ChatMessageSavedEvent as dn, type ChatMessageDeliveredEvent as dp, type ChatLogEvent as dq, ConversationManager as dr, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as ds, type ListConversationsOptions as dt, type CreateConversationOptions as du, type SendMessageOptions as dv, type ConversationSubscription as dw, type PlanActionReceipt as dx, type PlanActionOptions as dy, type ConversationManagerOptions as dz, ConversationListStore as e, type ConversationStoreOptions as f, type ConversationListStoreOptions as g, type ConversationListSnapshot as h, FlowsApi as i, type FlowExecutionEvent as j, type PlanProjectionTask as k, type PropertyValue as l, type RelationRef as m, type ClientOptions as n, type Credentials as o, RaisinHttpClient as p, type RetryOptions as q, type UploaderConfig as r, type FileSource as s, type BatchUploadOptions as t, type BatchUploadResult as u, type BatchProgress as v, type ReconnectOptions as w, type ClientMode as x, type CurrentUser as y, type UserNode as z };
7085
+ export { WorkspaceManager as $, AuthManager as A, type BatchUpload as B, ConnectionState as C, Database as D, type EventMessage as E, type FlowClientOptions as F, type AuthEvent as G, type HttpClientOptions as H, type IdentityUser as I, type AuthStateChange as J, type AuthStateChangeCallback as K, type UserChangeEvent as L, type UserChangeCallback as M, type Node as N, HttpDatabase as O, type PlanProjection as P, HttpWorkspaceClient as Q, RaisinClient as R, type SubscriptionFilters as S, type ToolCallInfo as T, UploadErrorCode as U, type CurrentUser$1 as V, type UserNode$1 as W, type SignAssetOptions as X, type SignedAssetUrl as Y, type DatabaseHttpOptions as Z, WorkspaceClient as _, type ConversationStoreSnapshot as a, type SqlQueryPayload as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeCreateDeepOptions as a4, type NodeUpdateOptions as a5, type NodeQueryOptions as a6, Transaction as a7, type TransactionOptions as a8, NodeTypes as a9, type ConnectionOptions as aA, MemoryTokenStorage as aB, LocalStorageTokenStorage as aC, type TokenStorage as aD, type IdentityAuthResponse as aE, type IdentityAuthError as aF, type RequestEnvelope as aG, type ResponseEnvelope as aH, type NodeEventPayload as aI, type RequestContext as aJ, type ErrorInfo as aK, type ResponseMetadata as aL, type IncomingRelation as aM, type NodeRelationships as aN, type NodeCreatePayload as aO, type NodeCreateDeepPayload as aP, type NodeUpdatePayload as aQ, type NodeDeletePayload as aR, type NodeGetPayload as aS, type NodeHistoryPayload as aT, type RevisionEntry as aU, type AuditQueryPayload as aV, type AuditLogEntry as aW, type NodeQueryPayload as aX, type RelationAddPayload as aY, type RelationRemovePayload as aZ, type RelationsGetPayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, type BranchDiff as ad, type BranchDivergence as ae, type CrossBranchCopySummary as af, type CrossBranchNodeChange as ag, type NodeDiffInfo as ah, Tags as ai, SchedulerApi as aj, type ListInvocationsFilter as ak, type ScheduleInvocationOptions as al, type ScheduledInvocation as am, type ScheduledInvocationRef as an, type ScheduledInvocationTargetKind as ao, HttpNodeTypes as ap, HttpArchetypes as aq, HttpElementTypes as ar, type SchemaCommit as as, SqlQuery as at, createSqlHandler as au, EventHandler as av, EventSubscriptions as aw, type EventCallback as ax, type Subscription as ay, Connection as az, type ChatMessage as b, HttpFunctionsApi as b$, type SqlResult as b0, type Workspace as b1, type WorkspaceCreatePayload as b2, type WorkspaceGetPayload as b3, type WorkspaceDeletePayload as b4, type WorkspaceUpdatePayload as b5, type SubscribePayload as b6, type UnsubscribePayload as b7, type SubscriptionResponse as b8, type AuthenticatePayload as b9, type CreateUploadRequest as bA, type CreateUploadResponse as bB, type ChunkUploadResponse as bC, type UploadStatusResponse as bD, type CompleteUploadRequest as bE, type CompleteUploadResponse as bF, type BatchFileProgress as bG, UploadError as bH, DEFAULT_CHUNK_SIZE as bI, DEFAULT_MAX_RETRIES as bJ, DEFAULT_RETRY_BASE_DELAY as bK, DEFAULT_RETRY_MAX_DELAY as bL, DEFAULT_NODE_TYPE as bM, DEFAULT_BRANCH as bN, DEFAULT_BATCH_CONCURRENCY as bO, BrowserFileSource as bP, NodeFileSource as bQ, createFileSource as bR, getContentType as bS, calculateChunkCount as bT, getChunkRange as bU, Uploader as bV, UploadManager as bW, FlowClient as bX, type FlowRunResult as bY, type FlowCollectResult as bZ, FunctionsApi as b_, type AuthenticateResponse as ba, type RefreshTokenPayload as bb, type TransactionBeginPayload as bc, type TransactionBeginResponse as bd, type TransactionCommitPayload as be, type TransactionCommitResponse as bf, type TransactionRollbackPayload as bg, RequestType as bh, ResponseStatus as bi, encodeMessage as bj, decodeMessage as bk, isEventMessage as bl, isResponseEnvelope as bm, ReconnectManager as bn, LogLevel as bo, logger as bp, configureLogger as bq, setLogLevel as br, getLogLevel as bs, getLoggerConfig as bt, type LoggerConfig as bu, type UploadStatus as bv, type UploadOptions as bw, type UploadProgress as bx, type UploadResult as by, type Upload as bz, ConversationStore as c, type FlowDefinitionContainer as c$, IdentityAuthApi as c0, readTokensFromFragment as c1, type IdentityAuthResult as c2, type IdentityAuthTransport as c3, type IdentityInfo as c4, type IdentityMe as c5, type MagicLinkSent as c6, type MagicLinkOptions as c7, type AuthProviders as c8, type FunctionInvokeOptions as c9, type ThoughtChunkEvent as cA, type ConversationCreatedEvent as cB, type MessageSavedEvent as cC, type LogEvent as cD, isTerminalEvent as cE, type RaisinReference as cF, type ContainerType as cG, type StepErrorBehavior as cH, type FlowErrorStrategy as cI, type RetryConfig as cJ, type RetryStrategy as cK, type HumanTaskType as cL, type CanonicalTaskType as cM, type TaskOption as cN, type HandoffTarget as cO, type ChatTerminationMode as cP, type ChatTerminationConfig as cQ, type ChatStepConfig as cR, type AiToolMode as cS, type AiErrorBehavior as cT, type AiContainerConfig as cU, type FlowDefinitionNodeBase as cV, type FlowStepProperties as cW, type FlowDefinitionStep as cX, type ContainerRule as cY, type FanOutConfig as cZ, type MergeStrategy as c_, type FunctionInvokeResponse as ca, type FunctionInvokeSyncResponse as cb, McpClient as cc, type McpTransport as cd, type McpFrameStream as ce, type McpJsonRpcFrame as cf, type McpToolDescriptor as cg, type McpContentBlock as ch, type McpCallToolResult as ci, type McpResourceContents as cj, type McpReadResourceResult as ck, type McpResourceUpdate as cl, type McpResourceSubscription as cm, type FlowRunResponse as cn, type FlowInstanceStatus as co, type FlowInstanceStatusResponse as cp, type StepStartedEvent as cq, type StepCompletedEvent as cr, type StepFailedEvent as cs, type FlowWaitingEvent as ct, type FlowResumedEvent as cu, type FlowCompletedEvent as cv, type FlowFailedEvent as cw, type TextChunkEvent as cx, type ToolCallStartedEvent as cy, type ToolCallCompletedEvent as cz, type ConversationListItem as d, type FlowDefinitionNode as d0, type FlowDefinition as d1, type InboxTask as d2, type InboxTaskStatus as d3, type TaskCompletionResult as d4, RETRY_STRATEGIES as d5, getRefDisplayName as d6, getRefPath as d7, isFlowDefinitionStep as d8, isFlowDefinitionContainer as d9, ConversationManager as dA, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as dB, type ListConversationsOptions as dC, type CreateConversationOptions as dD, type SendMessageOptions as dE, type ConversationSubscription as dF, type PlanActionReceipt as dG, type PlanActionOptions as dH, type ConversationManagerOptions as dI, projectPlansFromMessages as dJ, InboxApi as da, type InboxApiOptions as db, type ListTasksOptions as dc, type ListTasksResponse as dd, type ChatEvent as de, type Conversation as df, type ConversationType as dg, type ConversationStatus as dh, type MessageBody as di, type ChatTextChunkEvent as dj, type ChatAssistantMessageEvent as dk, type ChatWaitingEvent as dl, type ChatCompletedEvent as dm, type ChatFailedEvent as dn, type ChatDoneEvent as dp, type ChatToolCallStartedEvent as dq, type ChatToolCallCompletedEvent as dr, type ChatThoughtChunkEvent as ds, type ToolCallRecord as dt, type MessageChild as du, type PlanTask as dv, type ChatConversationCreatedEvent as dw, type ChatMessageSavedEvent as dx, type ChatMessageDeliveredEvent as dy, type ChatLogEvent as dz, ConversationListStore as e, type ConversationStoreOptions as f, type ConversationListStoreOptions as g, type ConversationListSnapshot as h, FlowsApi as i, type FlowExecutionEvent as j, type PlanProjectionTask as k, type PropertyValue as l, type RelationRef as m, type ClientOptions as n, type Credentials as o, RaisinHttpClient as p, type RetryOptions as q, type UploaderConfig as r, type FileSource as s, type BatchUploadOptions as t, type BatchUploadResult as u, type BatchProgress as v, type ReconnectOptions as w, type ClientMode as x, type CurrentUser as y, type UserNode as z };
@@ -1,4 +1,4 @@
1
- import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-CiIolSwh.mjs';
1
+ import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-C135ghpi.mjs';
2
2
 
3
3
  /**
4
4
  * React adapters for the RaisinDB conversation stores.
@@ -1,4 +1,4 @@
1
- import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-CiIolSwh.js';
1
+ import { f as ConversationStoreOptions, a as ConversationStoreSnapshot, b as ChatMessage, g as ConversationListStoreOptions, h as ConversationListSnapshot, d as ConversationListItem, R as RaisinClient, I as IdentityUser, C as ConnectionState, S as SubscriptionFilters, D as Database, A as AuthManager, F as FlowClientOptions, i as FlowsApi, j as FlowExecutionEvent, E as EventMessage } from './conversation-list-store-C135ghpi.js';
2
2
 
3
3
  /**
4
4
  * React adapters for the RaisinDB conversation stores.
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-CiIolSwh.mjs';
2
- export { cL as AiContainerConfig, cK as AiErrorBehavior, cJ as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cD as CanonicalTaskType, db as ChatAssistantMessageEvent, dd as ChatCompletedEvent, dm as ChatConversationCreatedEvent, df as ChatDoneEvent, d5 as ChatEvent, de as ChatFailedEvent, dq as ChatLogEvent, b as ChatMessage, dp as ChatMessageDeliveredEvent, dn as ChatMessageSavedEvent, cI as ChatStepConfig, cH as ChatTerminationConfig, cG as ChatTerminationMode, da as ChatTextChunkEvent, di as ChatThoughtChunkEvent, dh as ChatToolCallCompletedEvent, dg as ChatToolCallStartedEvent, dc as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, cP as ContainerRule, cx as ContainerType, d6 as Conversation, cs as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dr as ConversationManager, dz as ConversationManagerOptions, d8 as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dw as ConversationSubscription, d7 as ConversationType, du as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, ds as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, cQ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cm as FlowCompletedEvent, cU as FlowDefinition, cS as FlowDefinitionContainer, cT as FlowDefinitionNode, cM as FlowDefinitionNodeBase, cO as FlowDefinitionStep, cz as FlowErrorStrategy, j as FlowExecutionEvent, cn as FlowFailedEvent, cf as FlowInstanceStatus, cg as FlowInstanceStatusResponse, cl as FlowResumedEvent, ce as FlowRunResponse, bY as FlowRunResult, cN as FlowStepProperties, ck as FlowWaitingEvent, i as FlowsApi, c0 as FunctionInvokeOptions, c1 as FunctionInvokeResponse, c2 as FunctionInvokeSyncResponse, b_ as FunctionsApi, cF as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cC as HumanTaskType, aF as IdentityAuthError, aE as IdentityAuthResponse, I as IdentityUser, d1 as InboxApi, d2 as InboxApiOptions, cV as InboxTask, cW as InboxTaskStatus, aM as IncomingRelation, dt as ListConversationsOptions, ak as ListInvocationsFilter, d3 as ListTasksOptions, d4 as ListTasksResponse, aC as LocalStorageTokenStorage, cu as LogEvent, bo as LogLevel, bu as LoggerConfig, c9 as McpCallToolResult, c3 as McpClient, c8 as McpContentBlock, c5 as McpFrameStream, c6 as McpJsonRpcFrame, cb as McpReadResourceResult, ca as McpResourceContents, cd as McpResourceSubscription, cc as McpResourceUpdate, c7 as McpToolDescriptor, c4 as McpTransport, aB as MemoryTokenStorage, cR as MergeStrategy, d9 as MessageBody, dk as MessageChild, ct as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dy as PlanActionOptions, dx as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dl as PlanTask, cY as RETRY_STRATEGIES, cw as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cA as RetryConfig, cB as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dv as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, ci as StepCompletedEvent, cy as StepErrorBehavior, cj as StepFailedEvent, ch as StepStartedEvent, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, cX as TaskCompletionResult, cE as TaskOption, co as TextChunkEvent, cr as ThoughtChunkEvent, aD as TokenStorage, cq as ToolCallCompletedEvent, T as ToolCallInfo, dj as ToolCallRecord, cp as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, cZ as getRefDisplayName, c_ as getRefPath, bl as isEventMessage, d0 as isFlowDefinitionContainer, c$ as isFlowDefinitionStep, bm as isResponseEnvelope, cv as isTerminalEvent, bp as logger, dA as projectPlansFromMessages, br as setLogLevel } from './conversation-list-store-CiIolSwh.mjs';
3
- export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-C6jJZBKh.mjs';
1
+ import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-C135ghpi.mjs';
2
+ export { cU as AiContainerConfig, cT as AiErrorBehavior, cS as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cM as CanonicalTaskType, dk as ChatAssistantMessageEvent, dm as ChatCompletedEvent, dw as ChatConversationCreatedEvent, dp as ChatDoneEvent, de as ChatEvent, dn as ChatFailedEvent, dz as ChatLogEvent, b as ChatMessage, dy as ChatMessageDeliveredEvent, dx as ChatMessageSavedEvent, cR as ChatStepConfig, cQ as ChatTerminationConfig, cP as ChatTerminationMode, dj as ChatTextChunkEvent, ds as ChatThoughtChunkEvent, dr as ChatToolCallCompletedEvent, dq as ChatToolCallStartedEvent, dl as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, cY as ContainerRule, cG as ContainerType, df as Conversation, cB as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dA as ConversationManager, dI as ConversationManagerOptions, dh as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dF as ConversationSubscription, dg as ConversationType, dD as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dB as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, cZ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cv as FlowCompletedEvent, d1 as FlowDefinition, c$ as FlowDefinitionContainer, d0 as FlowDefinitionNode, cV as FlowDefinitionNodeBase, cX as FlowDefinitionStep, cI as FlowErrorStrategy, j as FlowExecutionEvent, cw as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cu as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cW as FlowStepProperties, ct as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cO as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cL as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, da as InboxApi, db as InboxApiOptions, d2 as InboxTask, d3 as InboxTaskStatus, aM as IncomingRelation, dC as ListConversationsOptions, ak as ListInvocationsFilter, dc as ListTasksOptions, dd as ListTasksResponse, aC as LocalStorageTokenStorage, cD as LogEvent, bo as LogLevel, bu as LoggerConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, c_ as MergeStrategy, di as MessageBody, du as MessageChild, cC as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dH as PlanActionOptions, dG as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dv as PlanTask, d5 as RETRY_STRATEGIES, cF as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cJ as RetryConfig, cK as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dE as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cr as StepCompletedEvent, cH as StepErrorBehavior, cs as StepFailedEvent, cq as StepStartedEvent, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d4 as TaskCompletionResult, cN as TaskOption, cx as TextChunkEvent, cA as ThoughtChunkEvent, aD as TokenStorage, cz as ToolCallCompletedEvent, T as ToolCallInfo, dt as ToolCallRecord, cy as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d6 as getRefDisplayName, d7 as getRefPath, bl as isEventMessage, d9 as isFlowDefinitionContainer, d8 as isFlowDefinitionStep, bm as isResponseEnvelope, cE as isTerminalEvent, bp as logger, dJ as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-C135ghpi.mjs';
3
+ export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-CsiWJ0cN.mjs';
4
4
  export { AuthAdapter, AuthSnapshot, ConnectionAdapter, ConnectionSnapshot, FlowAdapter, FlowAdapterOptions, FlowSnapshot, RAISIN_CONTEXT_KEY, RaisinContext, SubscriptionAdapter, FlowStatus as SvelteFlowStatus, createAuthAdapter, createConnectionAdapter, createConversationAdapter, createConversationListAdapter, createFlowAdapter, createSubscriptionAdapter } from './svelte.mjs';
5
- export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-CFGsU_zX.mjs';
5
+ export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-BAURd7Ha.mjs';
6
6
  export { RaisinVue, VueComputedRef, VueLike, VueRef, createRaisinVue } from './vue.mjs';
7
7
  import 'events';
8
8
  import 'fs/promises';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-CiIolSwh.js';
2
- export { cL as AiContainerConfig, cK as AiErrorBehavior, cJ as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cD as CanonicalTaskType, db as ChatAssistantMessageEvent, dd as ChatCompletedEvent, dm as ChatConversationCreatedEvent, df as ChatDoneEvent, d5 as ChatEvent, de as ChatFailedEvent, dq as ChatLogEvent, b as ChatMessage, dp as ChatMessageDeliveredEvent, dn as ChatMessageSavedEvent, cI as ChatStepConfig, cH as ChatTerminationConfig, cG as ChatTerminationMode, da as ChatTextChunkEvent, di as ChatThoughtChunkEvent, dh as ChatToolCallCompletedEvent, dg as ChatToolCallStartedEvent, dc as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, cP as ContainerRule, cx as ContainerType, d6 as Conversation, cs as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dr as ConversationManager, dz as ConversationManagerOptions, d8 as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dw as ConversationSubscription, d7 as ConversationType, du as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, ds as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, cQ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cm as FlowCompletedEvent, cU as FlowDefinition, cS as FlowDefinitionContainer, cT as FlowDefinitionNode, cM as FlowDefinitionNodeBase, cO as FlowDefinitionStep, cz as FlowErrorStrategy, j as FlowExecutionEvent, cn as FlowFailedEvent, cf as FlowInstanceStatus, cg as FlowInstanceStatusResponse, cl as FlowResumedEvent, ce as FlowRunResponse, bY as FlowRunResult, cN as FlowStepProperties, ck as FlowWaitingEvent, i as FlowsApi, c0 as FunctionInvokeOptions, c1 as FunctionInvokeResponse, c2 as FunctionInvokeSyncResponse, b_ as FunctionsApi, cF as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cC as HumanTaskType, aF as IdentityAuthError, aE as IdentityAuthResponse, I as IdentityUser, d1 as InboxApi, d2 as InboxApiOptions, cV as InboxTask, cW as InboxTaskStatus, aM as IncomingRelation, dt as ListConversationsOptions, ak as ListInvocationsFilter, d3 as ListTasksOptions, d4 as ListTasksResponse, aC as LocalStorageTokenStorage, cu as LogEvent, bo as LogLevel, bu as LoggerConfig, c9 as McpCallToolResult, c3 as McpClient, c8 as McpContentBlock, c5 as McpFrameStream, c6 as McpJsonRpcFrame, cb as McpReadResourceResult, ca as McpResourceContents, cd as McpResourceSubscription, cc as McpResourceUpdate, c7 as McpToolDescriptor, c4 as McpTransport, aB as MemoryTokenStorage, cR as MergeStrategy, d9 as MessageBody, dk as MessageChild, ct as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dy as PlanActionOptions, dx as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dl as PlanTask, cY as RETRY_STRATEGIES, cw as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cA as RetryConfig, cB as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dv as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, ci as StepCompletedEvent, cy as StepErrorBehavior, cj as StepFailedEvent, ch as StepStartedEvent, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, cX as TaskCompletionResult, cE as TaskOption, co as TextChunkEvent, cr as ThoughtChunkEvent, aD as TokenStorage, cq as ToolCallCompletedEvent, T as ToolCallInfo, dj as ToolCallRecord, cp as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, cZ as getRefDisplayName, c_ as getRefPath, bl as isEventMessage, d0 as isFlowDefinitionContainer, c$ as isFlowDefinitionStep, bm as isResponseEnvelope, cv as isTerminalEvent, bp as logger, dA as projectPlansFromMessages, br as setLogLevel } from './conversation-list-store-CiIolSwh.js';
3
- export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-CCPaX_2I.js';
1
+ import { l as PropertyValue, m as RelationRef, N as Node, H as HttpClientOptions, n as ClientOptions, o as Credentials, p as RaisinHttpClient, R as RaisinClient, q as RetryOptions, U as UploadErrorCode, B as BatchUpload, r as UploaderConfig, s as FileSource, t as BatchUploadOptions, u as BatchUploadResult, v as BatchProgress, w as ReconnectOptions } from './conversation-list-store-C135ghpi.js';
2
+ export { cU as AiContainerConfig, cT as AiErrorBehavior, cS as AiToolMode, aa as Archetypes, aW as AuditLogEntry, aV as AuditQueryPayload, G as AuthEvent, A as AuthManager, c8 as AuthProviders, J as AuthStateChange, K as AuthStateChangeCallback, b9 as AuthenticatePayload, ba as AuthenticateResponse, bG as BatchFileProgress, ad as BranchDiff, ae as BranchDivergence, ac as Branches, bP as BrowserFileSource, cM as CanonicalTaskType, dk as ChatAssistantMessageEvent, dm as ChatCompletedEvent, dw as ChatConversationCreatedEvent, dp as ChatDoneEvent, de as ChatEvent, dn as ChatFailedEvent, dz as ChatLogEvent, b as ChatMessage, dy as ChatMessageDeliveredEvent, dx as ChatMessageSavedEvent, cR as ChatStepConfig, cQ as ChatTerminationConfig, cP as ChatTerminationMode, dj as ChatTextChunkEvent, ds as ChatThoughtChunkEvent, dr as ChatToolCallCompletedEvent, dq as ChatToolCallStartedEvent, dl as ChatWaitingEvent, bC as ChunkUploadResponse, x as ClientMode, bE as CompleteUploadRequest, bF as CompleteUploadResponse, az as Connection, aA as ConnectionOptions, C as ConnectionState, cY as ContainerRule, cG as ContainerType, df as Conversation, cB as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, dA as ConversationManager, dI as ConversationManagerOptions, dh as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, dF as ConversationSubscription, dg as ConversationType, dD as CreateConvoOptions, bA as CreateUploadRequest, bB as CreateUploadResponse, af as CrossBranchCopySummary, ag as CrossBranchNodeChange, y as CurrentUser, bO as DEFAULT_BATCH_CONCURRENCY, bN as DEFAULT_BRANCH, bI as DEFAULT_CHUNK_SIZE, bJ as DEFAULT_MAX_RETRIES, bM as DEFAULT_NODE_TYPE, bK as DEFAULT_RETRY_BASE_DELAY, bL as DEFAULT_RETRY_MAX_DELAY, dB as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, aK as ErrorInfo, ax as EventCallback, av as EventHandler, E as EventMessage, aw as EventSubscriptions, cZ as FanOutConfig, bX as FlowClient, F as FlowClientOptions, bZ as FlowCollectResult, cv as FlowCompletedEvent, d1 as FlowDefinition, c$ as FlowDefinitionContainer, d0 as FlowDefinitionNode, cV as FlowDefinitionNodeBase, cX as FlowDefinitionStep, cI as FlowErrorStrategy, j as FlowExecutionEvent, cw as FlowFailedEvent, co as FlowInstanceStatus, cp as FlowInstanceStatusResponse, cu as FlowResumedEvent, cn as FlowRunResponse, bY as FlowRunResult, cW as FlowStepProperties, ct as FlowWaitingEvent, i as FlowsApi, c9 as FunctionInvokeOptions, ca as FunctionInvokeResponse, cb as FunctionInvokeSyncResponse, b_ as FunctionsApi, cO as HandoffTarget, aq as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ar as HttpElementTypes, b$ as HttpFunctionsApi, ap as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cL as HumanTaskType, c0 as IdentityAuthApi, aF as IdentityAuthError, aE as IdentityAuthResponse, c2 as IdentityAuthResult, c3 as IdentityAuthTransport, c4 as IdentityInfo, c5 as IdentityMe, I as IdentityUser, da as InboxApi, db as InboxApiOptions, d2 as InboxTask, d3 as InboxTaskStatus, aM as IncomingRelation, dC as ListConversationsOptions, ak as ListInvocationsFilter, dc as ListTasksOptions, dd as ListTasksResponse, aC as LocalStorageTokenStorage, cD as LogEvent, bo as LogLevel, bu as LoggerConfig, c7 as MagicLinkOptions, c6 as MagicLinkSent, ci as McpCallToolResult, cc as McpClient, ch as McpContentBlock, ce as McpFrameStream, cf as McpJsonRpcFrame, ck as McpReadResourceResult, cj as McpResourceContents, cm as McpResourceSubscription, cl as McpResourceUpdate, cg as McpToolDescriptor, cd as McpTransport, aB as MemoryTokenStorage, c_ as MergeStrategy, di as MessageBody, du as MessageChild, cC as MessageSavedEvent, a4 as NodeCreateDeepOptions, aP as NodeCreateDeepPayload, a3 as NodeCreateOptions, aO as NodeCreatePayload, aR as NodeDeletePayload, ah as NodeDiffInfo, aI as NodeEventPayload, bQ as NodeFileSource, aS as NodeGetPayload, aT as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aX as NodeQueryPayload, aN as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aQ as NodeUpdatePayload, dH as PlanActionOptions, dG as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, dv as PlanTask, d5 as RETRY_STRATEGIES, cF as RaisinReference, bn as ReconnectManager, bb as RefreshTokenPayload, aY as RelationAddPayload, aZ as RelationRemovePayload, a_ as RelationsGetPayload, aJ as RequestContext, aG as RequestEnvelope, bh as RequestType, aH as ResponseEnvelope, aL as ResponseMetadata, bi as ResponseStatus, cJ as RetryConfig, cK as RetryStrategy, aU as RevisionEntry, al as ScheduleInvocationOptions, am as ScheduledInvocation, an as ScheduledInvocationRef, ao as ScheduledInvocationTargetKind, aj as SchedulerApi, as as SchemaCommit, dE as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, at as SqlQuery, a$ as SqlQueryPayload, b0 as SqlResult, cr as StepCompletedEvent, cH as StepErrorBehavior, cs as StepFailedEvent, cq as StepStartedEvent, b6 as SubscribePayload, ay as Subscription, S as SubscriptionFilters, b8 as SubscriptionResponse, ai as Tags, d4 as TaskCompletionResult, cN as TaskOption, cx as TextChunkEvent, cA as ThoughtChunkEvent, aD as TokenStorage, cz as ToolCallCompletedEvent, T as ToolCallInfo, dt as ToolCallRecord, cy as ToolCallStartedEvent, a7 as Transaction, bc as TransactionBeginPayload, bd as TransactionBeginResponse, be as TransactionCommitPayload, bf as TransactionCommitResponse, a8 as TransactionOptions, bg as TransactionRollbackPayload, b7 as UnsubscribePayload, bz as Upload, bH as UploadError, bW as UploadManager, bw as UploadOptions, bx as UploadProgress, by as UploadResult, bv as UploadStatus, bD as UploadStatusResponse, bV as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, b1 as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, b2 as WorkspaceCreatePayload, b4 as WorkspaceDeletePayload, b3 as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, b5 as WorkspaceUpdatePayload, bT as calculateChunkCount, bq as configureLogger, bR as createFileSource, au as createSqlHandler, bk as decodeMessage, bj as encodeMessage, bU as getChunkRange, bS as getContentType, bs as getLogLevel, bt as getLoggerConfig, d6 as getRefDisplayName, d7 as getRefPath, bl as isEventMessage, d9 as isFlowDefinitionContainer, d8 as isFlowDefinitionStep, bm as isResponseEnvelope, cE as isTerminalEvent, bp as logger, dJ as projectPlansFromMessages, c1 as readTokensFromFragment, br as setLogLevel } from './conversation-list-store-C135ghpi.js';
3
+ export { F as FlowStatus, j as RaisinContextValue, i as RaisinProviderProps, g as RaisinReact, R as ReactLike, h as ReactLikeWithContext, k as UseAuthReturn, l as UseConnectionReturn, b as UseConversationListReturn, U as UseConversationReturn, d as UseFlowOptions, e as UseFlowReturn, m as UseSqlOptions, n as UseSqlReturn, o as UseSubscriptionOptions, f as createRaisinReact, u as useConversation, a as useConversationList, c as useFlow } from './index-tIhGW3eq.js';
4
4
  export { AuthAdapter, AuthSnapshot, ConnectionAdapter, ConnectionSnapshot, FlowAdapter, FlowAdapterOptions, FlowSnapshot, RAISIN_CONTEXT_KEY, RaisinContext, SubscriptionAdapter, FlowStatus as SvelteFlowStatus, createAuthAdapter, createConnectionAdapter, createConversationAdapter, createConversationListAdapter, createFlowAdapter, createSubscriptionAdapter } from './svelte.js';
5
- export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-DP7qPVv8.js';
5
+ export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-DpAhe9g7.js';
6
6
  export { RaisinVue, VueComputedRef, VueLike, VueRef, createRaisinVue } from './vue.js';
7
7
  import 'events';
8
8
  import 'fs/promises';