@raisindb/client 0.1.18 → 0.1.38

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.
@@ -314,6 +314,7 @@ declare enum RequestType {
314
314
  NodeReorder = "node_reorder",
315
315
  NodeMoveChildBefore = "node_move_child_before",
316
316
  NodeMoveChildAfter = "node_move_child_after",
317
+ NodeApplyChildOrder = "node_apply_child_order",
317
318
  PropertyGet = "property_get",
318
319
  PropertyUpdate = "property_update",
319
320
  RelationAdd = "relation_add",
@@ -333,6 +334,7 @@ declare enum RequestType {
333
334
  BranchUpdateHead = "branch_update_head",
334
335
  BranchMerge = "branch_merge",
335
336
  BranchCompare = "branch_compare",
337
+ BranchDiff = "branch_diff",
336
338
  TagCreate = "tag_create",
337
339
  TagGet = "tag_get",
338
340
  TagList = "tag_list",
@@ -353,6 +355,7 @@ declare enum RequestType {
353
355
  ArchetypeDelete = "archetype_delete",
354
356
  ArchetypePublish = "archetype_publish",
355
357
  ArchetypeUnpublish = "archetype_unpublish",
358
+ ArchetypeGetResolved = "archetype_get_resolved",
356
359
  ElementTypeCreate = "element_type_create",
357
360
  ElementTypeGet = "element_type_get",
358
361
  ElementTypeList = "element_type_list",
@@ -360,6 +363,7 @@ declare enum RequestType {
360
363
  ElementTypeDelete = "element_type_delete",
361
364
  ElementTypePublish = "element_type_publish",
362
365
  ElementTypeUnpublish = "element_type_unpublish",
366
+ ElementTypeGetResolved = "element_type_get_resolved",
363
367
  FullTextSearch = "full_text_search",
364
368
  VectorSearch = "vector_search",
365
369
  Subscribe = "subscribe",
@@ -531,6 +535,17 @@ interface NodeCreatePayload {
531
535
  properties: Record<string, PropertyValue>;
532
536
  content?: unknown;
533
537
  }
538
+ /**
539
+ * Deep create/upsert payload. `path` is the full node path; missing ancestor
540
+ * folders are auto-created as `parent_node_type` (defaults to `raisin:Folder`).
541
+ */
542
+ interface NodeCreateDeepPayload {
543
+ node_type: string;
544
+ path: string;
545
+ properties: Record<string, PropertyValue>;
546
+ content?: unknown;
547
+ parent_node_type?: string;
548
+ }
534
549
  /**
535
550
  * Node update payload
536
551
  */
@@ -551,6 +566,59 @@ interface NodeDeletePayload {
551
566
  interface NodeGetPayload {
552
567
  node_id: string;
553
568
  }
569
+ /**
570
+ * Node history payload (git-style "file history").
571
+ * Identify the node by either `node_id` or `path`.
572
+ */
573
+ interface NodeHistoryPayload {
574
+ node_id?: string;
575
+ path?: string;
576
+ /** Maximum number of revisions to return (newest first). Unbounded if omitted. */
577
+ limit?: number;
578
+ }
579
+ /**
580
+ * A single entry in a node's revision history (newest first).
581
+ *
582
+ * Use `revision` with `atRevision(revision)` reads to fetch the full snapshot
583
+ * of that historical version.
584
+ */
585
+ interface RevisionEntry {
586
+ /** HLC revision string ("timestamp-counter"), usable with atRevision(). */
587
+ revision: string;
588
+ /** When this revision was written (ISO 8601 string). */
589
+ updated_at?: string;
590
+ /** User ID who authored this revision. */
591
+ updated_by?: string;
592
+ /** True when the node was deleted at this revision (tombstone). */
593
+ deleted: boolean;
594
+ }
595
+ /**
596
+ * Audit-log query payload. Identify the node by either `node_id` or `path`.
597
+ * Audit logs are only produced for NodeTypes marked `auditable`.
598
+ */
599
+ interface AuditQueryPayload {
600
+ node_id?: string;
601
+ path?: string;
602
+ }
603
+ /**
604
+ * A single audit-log entry for a node.
605
+ *
606
+ * Only produced for NodeTypes marked `auditable`. Distinct from a
607
+ * {@link RevisionEntry} (the always-on structural MVCC history).
608
+ */
609
+ interface AuditLogEntry {
610
+ id: string;
611
+ node_id: string;
612
+ path: string;
613
+ workspace: string;
614
+ /** User ID that performed the action (the node's `updated_by` at write time). */
615
+ user_id?: string;
616
+ /** Action performed, e.g. "Create" | "Update" | "Delete" | "Publish" | … */
617
+ action: string;
618
+ /** ISO 8601 timestamp. */
619
+ timestamp: string;
620
+ details?: string;
621
+ }
554
622
  /**
555
623
  * Node query payload
556
624
  */
@@ -954,6 +1022,13 @@ interface NodeCreateOptions {
954
1022
  /** Node content (optional) */
955
1023
  content?: unknown;
956
1024
  }
1025
+ /**
1026
+ * Options for creating/upserting a node with auto-created ancestor folders
1027
+ */
1028
+ interface NodeCreateDeepOptions extends NodeCreateOptions {
1029
+ /** NodeType used for auto-created ancestor folders (defaults to `raisin:Folder`) */
1030
+ parentNodeType?: string;
1031
+ }
957
1032
  /**
958
1033
  * Options for updating a node
959
1034
  */
@@ -988,6 +1063,20 @@ declare class NodeOperations {
988
1063
  * @returns Created node
989
1064
  */
990
1065
  create(options: NodeCreateOptions): Promise<Node>;
1066
+ /**
1067
+ * Create a node, auto-creating any missing ancestor folders.
1068
+ *
1069
+ * @param options - Node creation options (with optional `parentNodeType`)
1070
+ * @returns Created node
1071
+ */
1072
+ createDeep(options: NodeCreateDeepOptions): Promise<Node>;
1073
+ /**
1074
+ * Upsert a node by path (create-or-update), auto-creating any missing ancestor folders.
1075
+ *
1076
+ * @param options - Node creation options (with optional `parentNodeType`)
1077
+ * @returns Upserted node
1078
+ */
1079
+ upsertDeep(options: NodeCreateDeepOptions): Promise<Node>;
991
1080
  /**
992
1081
  * Update an existing node
993
1082
  *
@@ -1010,6 +1099,57 @@ declare class NodeOperations {
1010
1099
  * @returns Node or null if not found
1011
1100
  */
1012
1101
  get(id: string): Promise<Node | null>;
1102
+ /**
1103
+ * List a node's revision history (git-style "file history"), newest first.
1104
+ *
1105
+ * Each entry carries the `revision` (usable with `atRevision()` reads to
1106
+ * fetch the full snapshot), plus when/who and whether the node was deleted
1107
+ * at that revision. Always available regardless of the NodeType `auditable`
1108
+ * flag — it reflects the structural MVCC version history.
1109
+ *
1110
+ * @param id - Node ID
1111
+ * @param options - Optional `{ limit }` to cap the number of revisions
1112
+ * @returns Array of revision entries (newest first)
1113
+ *
1114
+ * @example
1115
+ * ```typescript
1116
+ * const history = await ws.nodes().history(nodeId, { limit: 50 });
1117
+ * for (const rev of history) {
1118
+ * const snapshot = await ws.atRevision(rev.revision).nodes().get(nodeId);
1119
+ * }
1120
+ * ```
1121
+ */
1122
+ history(id: string, options?: {
1123
+ limit?: number;
1124
+ }): Promise<RevisionEntry[]>;
1125
+ /**
1126
+ * List a node's revision history by path (newest first).
1127
+ *
1128
+ * @param path - Node path
1129
+ * @param options - Optional `{ limit }` to cap the number of revisions
1130
+ * @returns Array of revision entries (newest first)
1131
+ */
1132
+ historyByPath(path: string, options?: {
1133
+ limit?: number;
1134
+ }): Promise<RevisionEntry[]>;
1135
+ /**
1136
+ * Query a node's audit-log entries by ID.
1137
+ *
1138
+ * Audit logs are only produced for NodeTypes marked `auditable`. This is
1139
+ * distinct from {@link history}, which is the always-on structural revision
1140
+ * history available for every node.
1141
+ *
1142
+ * @param id - Node ID
1143
+ * @returns Array of audit-log entries
1144
+ */
1145
+ auditLog(id: string): Promise<AuditLogEntry[]>;
1146
+ /**
1147
+ * Query a node's audit-log entries by path.
1148
+ *
1149
+ * @param path - Node path
1150
+ * @returns Array of audit-log entries
1151
+ */
1152
+ auditLogByPath(path: string): Promise<AuditLogEntry[]>;
1013
1153
  /**
1014
1154
  * Query nodes
1015
1155
  *
@@ -1140,6 +1280,18 @@ declare class NodeOperations {
1140
1280
  * @returns Moved node
1141
1281
  */
1142
1282
  moveChildAfter(parentPath: string, childPath: string, referencePath: string): Promise<Node>;
1283
+ /**
1284
+ * Replay a parent's child order from another branch onto the current branch.
1285
+ *
1286
+ * Carries node sibling-order across branches — useful for selective publish
1287
+ * flows, where copying node content (e.g. via SQL) does not move the ordering
1288
+ * index. Only children that exist under the parent on both branches are
1289
+ * reordered. The target branch is the connection's current branch.
1290
+ *
1291
+ * @param parentPath - Parent node path
1292
+ * @param sourceBranch - Branch to copy the child order FROM
1293
+ */
1294
+ applyChildOrder(parentPath: string, sourceBranch: string): Promise<void>;
1143
1295
  /**
1144
1296
  * Add a relationship between two nodes
1145
1297
  *
@@ -2250,6 +2402,75 @@ declare class HttpFunctionsApi {
2250
2402
  invokeSync(functionName: string, input?: Record<string, unknown>): Promise<FunctionInvokeSyncResponse>;
2251
2403
  }
2252
2404
 
2405
+ /**
2406
+ * HTTP schema-management operations (NodeTypes / Archetypes / ElementTypes)
2407
+ *
2408
+ * These classes give the HTTP (SSR) client the same schema surface as the
2409
+ * WebSocket `Database`, backed by the management REST API
2410
+ * (`/api/management/{repo}/{branch}/...`). They mirror the WebSocket SDK
2411
+ * method names so call sites can swap clients with minimal changes.
2412
+ */
2413
+
2414
+ /** Optional commit metadata for write operations. Server-side it is optional
2415
+ * (falls back to a default message + the `"system"` actor). */
2416
+ interface SchemaCommit {
2417
+ message: string;
2418
+ actor?: string;
2419
+ }
2420
+ type SchemaKind = 'nodetypes' | 'archetypes' | 'elementtypes';
2421
+ type SchemaDefField = 'node_type' | 'archetype' | 'element_type';
2422
+ /**
2423
+ * Shared CRUD/publish/resolve implementation for the three schema kinds.
2424
+ */
2425
+ declare abstract class HttpSchemaBase {
2426
+ protected readonly repository: string;
2427
+ protected readonly branch: string;
2428
+ protected readonly client: RaisinHttpClient;
2429
+ protected abstract readonly kind: SchemaKind;
2430
+ protected abstract readonly defField: SchemaDefField;
2431
+ constructor(repository: string, branch: string, client: RaisinHttpClient);
2432
+ /** Base management URL for this schema kind. */
2433
+ protected base(): string;
2434
+ /** List all schemas (or only published ones). */
2435
+ list(publishedOnly?: boolean): Promise<unknown[]>;
2436
+ /** Get a single schema by name. */
2437
+ get(name: string): Promise<unknown>;
2438
+ /** Get the schema with full inheritance (`extends`) applied. */
2439
+ getResolved(name: string): Promise<unknown>;
2440
+ /** Create a schema. `name` is folded into the definition body if absent. */
2441
+ create(name: string, definition: Record<string, unknown>, commit?: SchemaCommit): Promise<unknown>;
2442
+ /** Update an existing schema. */
2443
+ update(name: string, definition: Record<string, unknown>, commit?: SchemaCommit): Promise<unknown>;
2444
+ /** Delete a schema. */
2445
+ delete(name: string, commit?: SchemaCommit): Promise<unknown>;
2446
+ /** Publish a schema. */
2447
+ publish(name: string, commit?: SchemaCommit): Promise<unknown>;
2448
+ /** Unpublish a schema. */
2449
+ unpublish(name: string, commit?: SchemaCommit): Promise<unknown>;
2450
+ }
2451
+ /** NodeType management over HTTP REST. */
2452
+ declare class HttpNodeTypes extends HttpSchemaBase {
2453
+ protected readonly kind: SchemaKind;
2454
+ protected readonly defField: SchemaDefField;
2455
+ /**
2456
+ * Get the resolved NodeType. Unlike archetypes/element types, NodeType
2457
+ * resolution can be workspace-aware (honors workspace NodeType pins).
2458
+ */
2459
+ getResolved(name: string, opts?: {
2460
+ workspace?: string;
2461
+ }): Promise<unknown>;
2462
+ }
2463
+ /** Archetype management over HTTP REST. */
2464
+ declare class HttpArchetypes extends HttpSchemaBase {
2465
+ protected readonly kind: SchemaKind;
2466
+ protected readonly defField: SchemaDefField;
2467
+ }
2468
+ /** ElementType management over HTTP REST. */
2469
+ declare class HttpElementTypes extends HttpSchemaBase {
2470
+ protected readonly kind: SchemaKind;
2471
+ protected readonly defField: SchemaDefField;
2472
+ }
2473
+
2253
2474
  /**
2254
2475
  * RaisinDB HTTP client for server-side rendering (SSR)
2255
2476
  *
@@ -2694,6 +2915,14 @@ declare class RaisinHttpClient extends EventEmitter {
2694
2915
  * @returns Execution result including output, logs, and duration
2695
2916
  */
2696
2917
  invokeFunctionSync(repository: string, functionName: string, input?: Record<string, unknown>): Promise<FunctionInvokeSyncResponse>;
2918
+ /**
2919
+ * Make a management REST request and return the parsed body.
2920
+ *
2921
+ * @internal Used by the HTTP schema-management helpers
2922
+ * ({@link HttpNodeTypes}/{@link HttpArchetypes}/{@link HttpElementTypes}) to
2923
+ * reuse the client's centralized auth, timeout, and base-URL handling.
2924
+ */
2925
+ managementRequest<T = unknown>(method: string, path: string, body?: unknown): Promise<T>;
2697
2926
  /**
2698
2927
  * Get a simplified database interface for SSR
2699
2928
  * This returns an HTTP-based database client
@@ -2758,6 +2987,14 @@ declare class HttpDatabase {
2758
2987
  * Get FunctionsApi for invoking server-side functions via HTTP
2759
2988
  */
2760
2989
  functions(): HttpFunctionsApi;
2990
+ /** Effective branch for management calls. */
2991
+ private schemaBranch;
2992
+ /** NodeType management (get/list/getResolved/create/update/delete/publish/unpublish). */
2993
+ nodeTypes(): HttpNodeTypes;
2994
+ /** Archetype management (get/list/getResolved/create/update/delete/publish/unpublish). */
2995
+ archetypes(): HttpArchetypes;
2996
+ /** ElementType management (get/list/getResolved/create/update/delete/publish/unpublish). */
2997
+ elementTypes(): HttpElementTypes;
2761
2998
  }
2762
2999
  /**
2763
3000
  * HTTP-based workspace client for SSR
@@ -3243,6 +3480,10 @@ declare class Archetypes {
3243
3480
  * Unpublish an Archetype
3244
3481
  */
3245
3482
  unpublish(name: string): Promise<unknown>;
3483
+ /**
3484
+ * Get resolved Archetype with full inheritance applied
3485
+ */
3486
+ getResolved(name: string): Promise<unknown>;
3246
3487
  }
3247
3488
 
3248
3489
  /**
@@ -3280,6 +3521,10 @@ declare class ElementTypes {
3280
3521
  * Unpublish an ElementType
3281
3522
  */
3282
3523
  unpublish(name: string): Promise<unknown>;
3524
+ /**
3525
+ * Get resolved ElementType with full inheritance applied
3526
+ */
3527
+ getResolved(name: string): Promise<unknown>;
3283
3528
  }
3284
3529
 
3285
3530
  /**
@@ -3327,6 +3572,13 @@ declare class Branches {
3327
3572
  * Compare two branches to calculate divergence
3328
3573
  */
3329
3574
  compare(branch: string, baseBranch: string): Promise<unknown>;
3575
+ /**
3576
+ * Per-node diff of `branch` relative to `baseBranch` (added/modified/deleted).
3577
+ *
3578
+ * Cheaper than reading both branch listings: cost scales with the number of
3579
+ * changed nodes since the branches diverged, not the total content.
3580
+ */
3581
+ diff(branch: string, baseBranch: string): Promise<unknown>;
3330
3582
  }
3331
3583
 
3332
3584
  /**
@@ -6117,4 +6369,4 @@ declare class ConversationListStore {
6117
6369
  private notify;
6118
6370
  }
6119
6371
 
6120
- 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, decodeMessage as a$, type WorkspaceCreateOptions as a0, type WorkspaceUpdateOptions as a1, NodeOperations as a2, type NodeCreateOptions as a3, type NodeUpdateOptions as a4, type NodeQueryOptions as a5, Transaction as a6, type TransactionOptions as a7, NodeTypes as a8, Archetypes as a9, type NodeDeletePayload as aA, type NodeGetPayload as aB, type NodeQueryPayload as aC, type RelationAddPayload as aD, type RelationRemovePayload as aE, type RelationsGetPayload as aF, type SqlQueryPayload as aG, type SqlResult as aH, type Workspace as aI, type WorkspaceCreatePayload as aJ, type WorkspaceGetPayload as aK, type WorkspaceDeletePayload as aL, type WorkspaceUpdatePayload as aM, type SubscribePayload as aN, type UnsubscribePayload as aO, type SubscriptionResponse as aP, type AuthenticatePayload as aQ, type AuthenticateResponse as aR, type RefreshTokenPayload as aS, type TransactionBeginPayload as aT, type TransactionBeginResponse as aU, type TransactionCommitPayload as aV, type TransactionCommitResponse as aW, type TransactionRollbackPayload as aX, RequestType as aY, ResponseStatus as aZ, encodeMessage as a_, ElementTypes as aa, Branches as ab, Tags as ac, SqlQuery as ad, createSqlHandler as ae, EventHandler as af, EventSubscriptions as ag, type EventCallback as ah, type Subscription as ai, Connection as aj, type ConnectionOptions as ak, MemoryTokenStorage as al, LocalStorageTokenStorage as am, type TokenStorage as an, type IdentityAuthResponse as ao, type IdentityAuthError as ap, type RequestEnvelope as aq, type ResponseEnvelope as ar, type NodeEventPayload as as, type RequestContext as at, type ErrorInfo as au, type ResponseMetadata as av, type IncomingRelation as aw, type NodeRelationships as ax, type NodeCreatePayload as ay, type NodeUpdatePayload as az, type ChatMessage as b, isTerminalEvent as b$, isEventMessage as b0, isResponseEnvelope as b1, ReconnectManager as b2, LogLevel as b3, logger as b4, configureLogger as b5, setLogLevel as b6, getLogLevel as b7, getLoggerConfig as b8, type LoggerConfig as b9, Uploader as bA, UploadManager as bB, FlowClient as bC, type FlowRunResult as bD, type FlowCollectResult as bE, FunctionsApi as bF, HttpFunctionsApi as bG, type FunctionInvokeOptions as bH, type FunctionInvokeResponse as bI, type FunctionInvokeSyncResponse as bJ, type FlowRunResponse as bK, type FlowInstanceStatus as bL, type FlowInstanceStatusResponse as bM, type StepStartedEvent as bN, type StepCompletedEvent as bO, type StepFailedEvent as bP, type FlowWaitingEvent as bQ, type FlowResumedEvent as bR, type FlowCompletedEvent as bS, type FlowFailedEvent as bT, type TextChunkEvent as bU, type ToolCallStartedEvent as bV, type ToolCallCompletedEvent as bW, type ThoughtChunkEvent as bX, type ConversationCreatedEvent as bY, type MessageSavedEvent as bZ, type LogEvent as b_, type UploadStatus as ba, type UploadOptions as bb, type UploadProgress as bc, type UploadResult as bd, type Upload as be, type CreateUploadRequest as bf, type CreateUploadResponse as bg, type ChunkUploadResponse as bh, type UploadStatusResponse as bi, type CompleteUploadRequest as bj, type CompleteUploadResponse as bk, type BatchFileProgress as bl, UploadError as bm, DEFAULT_CHUNK_SIZE as bn, DEFAULT_MAX_RETRIES as bo, DEFAULT_RETRY_BASE_DELAY as bp, DEFAULT_RETRY_MAX_DELAY as bq, DEFAULT_NODE_TYPE as br, DEFAULT_BRANCH as bs, DEFAULT_BATCH_CONCURRENCY as bt, BrowserFileSource as bu, NodeFileSource as bv, createFileSource as bw, getContentType as bx, calculateChunkCount as by, getChunkRange as bz, ConversationStore as c, type ConversationManagerOptions as c$, type RaisinReference as c0, type ContainerType as c1, type StepErrorBehavior as c2, type FlowErrorStrategy as c3, type RetryConfig as c4, type RetryStrategy as c5, type HumanTaskType as c6, type TaskOption as c7, type HandoffTarget as c8, type ChatTerminationMode as c9, type ConversationType as cA, type ConversationStatus as cB, type MessageBody as cC, type ChatTextChunkEvent as cD, type ChatAssistantMessageEvent as cE, type ChatWaitingEvent as cF, type ChatCompletedEvent as cG, type ChatFailedEvent as cH, type ChatDoneEvent as cI, type ChatToolCallStartedEvent as cJ, type ChatToolCallCompletedEvent as cK, type ChatThoughtChunkEvent as cL, type ToolCallRecord as cM, type MessageChild as cN, type PlanTask as cO, type ChatConversationCreatedEvent as cP, type ChatMessageSavedEvent as cQ, type ChatMessageDeliveredEvent as cR, type ChatLogEvent as cS, ConversationManager as cT, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as cU, type ListConversationsOptions as cV, type CreateConversationOptions as cW, type SendMessageOptions as cX, type ConversationSubscription as cY, type PlanActionReceipt as cZ, type PlanActionOptions as c_, type ChatTerminationConfig as ca, type ChatStepConfig as cb, type AiToolMode as cc, type AiErrorBehavior as cd, type AiContainerConfig as ce, type FlowDefinitionNodeBase as cf, type FlowStepProperties as cg, type FlowDefinitionStep as ch, type ContainerRule as ci, type FlowDefinitionContainer as cj, type FlowDefinitionNode as ck, type FlowDefinition as cl, type InboxTask as cm, type InboxTaskStatus as cn, type TaskCompletionResult as co, RETRY_STRATEGIES as cp, getRefDisplayName as cq, getRefPath as cr, isFlowDefinitionStep as cs, isFlowDefinitionContainer as ct, InboxApi as cu, type InboxApiOptions as cv, type ListTasksOptions as cw, type ListTasksResponse as cx, type ChatEvent as cy, type Conversation as cz, type ConversationListItem as d, projectPlansFromMessages as d0, 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 };
6372
+ 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 AuthenticateResponse 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 ResponseMetadata as aA, type IncomingRelation as aB, type NodeRelationships as aC, type NodeCreatePayload as aD, type NodeCreateDeepPayload as aE, type NodeUpdatePayload as aF, type NodeDeletePayload as aG, type NodeGetPayload as aH, type NodeHistoryPayload as aI, type RevisionEntry as aJ, type AuditQueryPayload as aK, type AuditLogEntry as aL, type NodeQueryPayload as aM, type RelationAddPayload as aN, type RelationRemovePayload as aO, type RelationsGetPayload as aP, type SqlQueryPayload as aQ, type SqlResult as aR, type Workspace as aS, type WorkspaceCreatePayload as aT, type WorkspaceGetPayload as aU, type WorkspaceDeletePayload as aV, type WorkspaceUpdatePayload as aW, type SubscribePayload as aX, type UnsubscribePayload as aY, type SubscriptionResponse as aZ, type AuthenticatePayload as a_, Archetypes as aa, ElementTypes as ab, Branches as ac, Tags as ad, HttpNodeTypes as ae, HttpArchetypes as af, HttpElementTypes as ag, type SchemaCommit as ah, SqlQuery as ai, createSqlHandler as aj, EventHandler as ak, EventSubscriptions as al, type EventCallback as am, type Subscription as an, Connection as ao, type ConnectionOptions as ap, MemoryTokenStorage as aq, LocalStorageTokenStorage as ar, type TokenStorage as as, type IdentityAuthResponse as at, type IdentityAuthError as au, type RequestEnvelope as av, type ResponseEnvelope as aw, type NodeEventPayload as ax, type RequestContext as ay, type ErrorInfo as az, type ChatMessage as b, type FlowResumedEvent as b$, type RefreshTokenPayload as b0, type TransactionBeginPayload as b1, type TransactionBeginResponse as b2, type TransactionCommitPayload as b3, type TransactionCommitResponse as b4, type TransactionRollbackPayload as b5, RequestType as b6, ResponseStatus as b7, encodeMessage as b8, decodeMessage as b9, DEFAULT_RETRY_MAX_DELAY as bA, DEFAULT_NODE_TYPE as bB, DEFAULT_BRANCH as bC, DEFAULT_BATCH_CONCURRENCY as bD, BrowserFileSource as bE, NodeFileSource as bF, createFileSource as bG, getContentType as bH, calculateChunkCount as bI, getChunkRange as bJ, Uploader as bK, UploadManager as bL, FlowClient as bM, type FlowRunResult as bN, type FlowCollectResult as bO, FunctionsApi as bP, HttpFunctionsApi as bQ, type FunctionInvokeOptions as bR, type FunctionInvokeResponse as bS, type FunctionInvokeSyncResponse as bT, type FlowRunResponse as bU, type FlowInstanceStatus as bV, type FlowInstanceStatusResponse as bW, type StepStartedEvent as bX, type StepCompletedEvent as bY, type StepFailedEvent as bZ, type FlowWaitingEvent as b_, isEventMessage as ba, isResponseEnvelope as bb, ReconnectManager as bc, LogLevel as bd, logger as be, configureLogger as bf, setLogLevel as bg, getLogLevel as bh, getLoggerConfig as bi, type LoggerConfig as bj, type UploadStatus as bk, type UploadOptions as bl, type UploadProgress as bm, type UploadResult as bn, type Upload as bo, type CreateUploadRequest as bp, type CreateUploadResponse as bq, type ChunkUploadResponse as br, type UploadStatusResponse as bs, type CompleteUploadRequest as bt, type CompleteUploadResponse as bu, type BatchFileProgress as bv, UploadError as bw, DEFAULT_CHUNK_SIZE as bx, DEFAULT_MAX_RETRIES as by, DEFAULT_RETRY_BASE_DELAY as bz, ConversationStore as c, type ChatMessageDeliveredEvent as c$, type FlowCompletedEvent as c0, type FlowFailedEvent as c1, type TextChunkEvent as c2, type ToolCallStartedEvent as c3, type ToolCallCompletedEvent as c4, type ThoughtChunkEvent as c5, type ConversationCreatedEvent as c6, type MessageSavedEvent as c7, type LogEvent as c8, isTerminalEvent as c9, getRefDisplayName as cA, getRefPath as cB, isFlowDefinitionStep as cC, isFlowDefinitionContainer as cD, InboxApi as cE, type InboxApiOptions as cF, type ListTasksOptions as cG, type ListTasksResponse as cH, type ChatEvent as cI, type Conversation as cJ, type ConversationType as cK, type ConversationStatus as cL, type MessageBody as cM, type ChatTextChunkEvent as cN, type ChatAssistantMessageEvent as cO, type ChatWaitingEvent as cP, type ChatCompletedEvent as cQ, type ChatFailedEvent as cR, type ChatDoneEvent as cS, type ChatToolCallStartedEvent as cT, type ChatToolCallCompletedEvent as cU, type ChatThoughtChunkEvent as cV, type ToolCallRecord as cW, type MessageChild as cX, type PlanTask as cY, type ChatConversationCreatedEvent as cZ, type ChatMessageSavedEvent as c_, type RaisinReference as ca, type ContainerType as cb, type StepErrorBehavior as cc, type FlowErrorStrategy as cd, type RetryConfig as ce, type RetryStrategy as cf, type HumanTaskType as cg, type TaskOption as ch, type HandoffTarget as ci, type ChatTerminationMode as cj, type ChatTerminationConfig as ck, type ChatStepConfig as cl, type AiToolMode as cm, type AiErrorBehavior as cn, type AiContainerConfig as co, type FlowDefinitionNodeBase as cp, type FlowStepProperties as cq, type FlowDefinitionStep as cr, type ContainerRule as cs, type FlowDefinitionContainer as ct, type FlowDefinitionNode as cu, type FlowDefinition as cv, type InboxTask as cw, type InboxTaskStatus as cx, type TaskCompletionResult as cy, RETRY_STRATEGIES as cz, type ConversationListItem as d, type ChatLogEvent as d0, ConversationManager as d1, DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS as d2, type ListConversationsOptions as d3, type CreateConversationOptions as d4, type SendMessageOptions as d5, type ConversationSubscription as d6, type PlanActionReceipt as d7, type PlanActionOptions as d8, type ConversationManagerOptions as d9, projectPlansFromMessages as da, 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 };