@raisindb/client 0.1.37 → 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.
- package/dist/{conversation-list-store-BLvjPi59.d.mts → conversation-list-store-CrmmmVKE.d.mts} +158 -1
- package/dist/{conversation-list-store-BLvjPi59.d.ts → conversation-list-store-CrmmmVKE.d.ts} +158 -1
- package/dist/{index-LMWxbrtR.d.ts → index-DcJiy1S6.d.ts} +1 -1
- package/dist/{index-CmRwTXFZ.d.mts → index-DkVt51MH.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +143 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +143 -7
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{svelte-sql-eafuMbyi.d.ts → svelte-sql-C0CmmhAL.d.ts} +1 -1
- package/dist/{svelte-sql-CTugqnaE.d.mts → svelte-sql-RNJfHu0B.d.mts} +1 -1
- package/dist/svelte.d.mts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/vue.d.mts +2 -2
- package/dist/vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/{conversation-list-store-BLvjPi59.d.mts → conversation-list-store-CrmmmVKE.d.mts}
RENAMED
|
@@ -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",
|
|
@@ -533,6 +535,17 @@ interface NodeCreatePayload {
|
|
|
533
535
|
properties: Record<string, PropertyValue>;
|
|
534
536
|
content?: unknown;
|
|
535
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
|
+
}
|
|
536
549
|
/**
|
|
537
550
|
* Node update payload
|
|
538
551
|
*/
|
|
@@ -553,6 +566,59 @@ interface NodeDeletePayload {
|
|
|
553
566
|
interface NodeGetPayload {
|
|
554
567
|
node_id: string;
|
|
555
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
|
+
}
|
|
556
622
|
/**
|
|
557
623
|
* Node query payload
|
|
558
624
|
*/
|
|
@@ -956,6 +1022,13 @@ interface NodeCreateOptions {
|
|
|
956
1022
|
/** Node content (optional) */
|
|
957
1023
|
content?: unknown;
|
|
958
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
|
+
}
|
|
959
1032
|
/**
|
|
960
1033
|
* Options for updating a node
|
|
961
1034
|
*/
|
|
@@ -990,6 +1063,20 @@ declare class NodeOperations {
|
|
|
990
1063
|
* @returns Created node
|
|
991
1064
|
*/
|
|
992
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>;
|
|
993
1080
|
/**
|
|
994
1081
|
* Update an existing node
|
|
995
1082
|
*
|
|
@@ -1012,6 +1099,57 @@ declare class NodeOperations {
|
|
|
1012
1099
|
* @returns Node or null if not found
|
|
1013
1100
|
*/
|
|
1014
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[]>;
|
|
1015
1153
|
/**
|
|
1016
1154
|
* Query nodes
|
|
1017
1155
|
*
|
|
@@ -1142,6 +1280,18 @@ declare class NodeOperations {
|
|
|
1142
1280
|
* @returns Moved node
|
|
1143
1281
|
*/
|
|
1144
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>;
|
|
1145
1295
|
/**
|
|
1146
1296
|
* Add a relationship between two nodes
|
|
1147
1297
|
*
|
|
@@ -3422,6 +3572,13 @@ declare class Branches {
|
|
|
3422
3572
|
* Compare two branches to calculate divergence
|
|
3423
3573
|
*/
|
|
3424
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>;
|
|
3425
3582
|
}
|
|
3426
3583
|
|
|
3427
3584
|
/**
|
|
@@ -6212,4 +6369,4 @@ declare class ConversationListStore {
|
|
|
6212
6369
|
private notify;
|
|
6213
6370
|
}
|
|
6214
6371
|
|
|
6215
|
-
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
|
|
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 };
|
package/dist/{conversation-list-store-BLvjPi59.d.ts → conversation-list-store-CrmmmVKE.d.ts}
RENAMED
|
@@ -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",
|
|
@@ -533,6 +535,17 @@ interface NodeCreatePayload {
|
|
|
533
535
|
properties: Record<string, PropertyValue>;
|
|
534
536
|
content?: unknown;
|
|
535
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
|
+
}
|
|
536
549
|
/**
|
|
537
550
|
* Node update payload
|
|
538
551
|
*/
|
|
@@ -553,6 +566,59 @@ interface NodeDeletePayload {
|
|
|
553
566
|
interface NodeGetPayload {
|
|
554
567
|
node_id: string;
|
|
555
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
|
+
}
|
|
556
622
|
/**
|
|
557
623
|
* Node query payload
|
|
558
624
|
*/
|
|
@@ -956,6 +1022,13 @@ interface NodeCreateOptions {
|
|
|
956
1022
|
/** Node content (optional) */
|
|
957
1023
|
content?: unknown;
|
|
958
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
|
+
}
|
|
959
1032
|
/**
|
|
960
1033
|
* Options for updating a node
|
|
961
1034
|
*/
|
|
@@ -990,6 +1063,20 @@ declare class NodeOperations {
|
|
|
990
1063
|
* @returns Created node
|
|
991
1064
|
*/
|
|
992
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>;
|
|
993
1080
|
/**
|
|
994
1081
|
* Update an existing node
|
|
995
1082
|
*
|
|
@@ -1012,6 +1099,57 @@ declare class NodeOperations {
|
|
|
1012
1099
|
* @returns Node or null if not found
|
|
1013
1100
|
*/
|
|
1014
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[]>;
|
|
1015
1153
|
/**
|
|
1016
1154
|
* Query nodes
|
|
1017
1155
|
*
|
|
@@ -1142,6 +1280,18 @@ declare class NodeOperations {
|
|
|
1142
1280
|
* @returns Moved node
|
|
1143
1281
|
*/
|
|
1144
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>;
|
|
1145
1295
|
/**
|
|
1146
1296
|
* Add a relationship between two nodes
|
|
1147
1297
|
*
|
|
@@ -3422,6 +3572,13 @@ declare class Branches {
|
|
|
3422
3572
|
* Compare two branches to calculate divergence
|
|
3423
3573
|
*/
|
|
3424
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>;
|
|
3425
3582
|
}
|
|
3426
3583
|
|
|
3427
3584
|
/**
|
|
@@ -6212,4 +6369,4 @@ declare class ConversationListStore {
|
|
|
6212
6369
|
private notify;
|
|
6213
6370
|
}
|
|
6214
6371
|
|
|
6215
|
-
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
|
|
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 };
|
|
@@ -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-
|
|
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-CrmmmVKE.js';
|
|
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-
|
|
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-CrmmmVKE.mjs';
|
|
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-
|
|
2
|
-
export {
|
|
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-
|
|
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-CrmmmVKE.mjs';
|
|
2
|
+
export { co as AiContainerConfig, cn as AiErrorBehavior, cm as AiToolMode, aa as Archetypes, aL as AuditLogEntry, aK as AuditQueryPayload, G as AuthEvent, A as AuthManager, J as AuthStateChange, K as AuthStateChangeCallback, a_ as AuthenticatePayload, a$ as AuthenticateResponse, bv as BatchFileProgress, ac as Branches, bE as BrowserFileSource, cO as ChatAssistantMessageEvent, cQ as ChatCompletedEvent, cZ as ChatConversationCreatedEvent, cS as ChatDoneEvent, cI as ChatEvent, cR as ChatFailedEvent, d0 as ChatLogEvent, b as ChatMessage, c$ as ChatMessageDeliveredEvent, c_ as ChatMessageSavedEvent, cl as ChatStepConfig, ck as ChatTerminationConfig, cj as ChatTerminationMode, cN as ChatTextChunkEvent, cV as ChatThoughtChunkEvent, cU as ChatToolCallCompletedEvent, cT as ChatToolCallStartedEvent, cP as ChatWaitingEvent, br as ChunkUploadResponse, x as ClientMode, bt as CompleteUploadRequest, bu as CompleteUploadResponse, ao as Connection, ap as ConnectionOptions, C as ConnectionState, cs as ContainerRule, cb as ContainerType, cJ as Conversation, c6 as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, d1 as ConversationManager, d9 as ConversationManagerOptions, cL as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, d6 as ConversationSubscription, cK as ConversationType, d4 as CreateConvoOptions, bp as CreateUploadRequest, bq as CreateUploadResponse, y as CurrentUser, bD as DEFAULT_BATCH_CONCURRENCY, bC as DEFAULT_BRANCH, bx as DEFAULT_CHUNK_SIZE, by as DEFAULT_MAX_RETRIES, bB as DEFAULT_NODE_TYPE, bz as DEFAULT_RETRY_BASE_DELAY, bA as DEFAULT_RETRY_MAX_DELAY, d2 as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, az as ErrorInfo, am as EventCallback, ak as EventHandler, E as EventMessage, al as EventSubscriptions, bM as FlowClient, F as FlowClientOptions, bO as FlowCollectResult, c0 as FlowCompletedEvent, cv as FlowDefinition, ct as FlowDefinitionContainer, cu as FlowDefinitionNode, cp as FlowDefinitionNodeBase, cr as FlowDefinitionStep, cd as FlowErrorStrategy, j as FlowExecutionEvent, c1 as FlowFailedEvent, bV as FlowInstanceStatus, bW as FlowInstanceStatusResponse, b$ as FlowResumedEvent, bU as FlowRunResponse, bN as FlowRunResult, cq as FlowStepProperties, b_ as FlowWaitingEvent, i as FlowsApi, bR as FunctionInvokeOptions, bS as FunctionInvokeResponse, bT as FunctionInvokeSyncResponse, bP as FunctionsApi, ci as HandoffTarget, af as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ag as HttpElementTypes, bQ as HttpFunctionsApi, ae as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cg as HumanTaskType, au as IdentityAuthError, at as IdentityAuthResponse, I as IdentityUser, cE as InboxApi, cF as InboxApiOptions, cw as InboxTask, cx as InboxTaskStatus, aB as IncomingRelation, d3 as ListConversationsOptions, cG as ListTasksOptions, cH as ListTasksResponse, ar as LocalStorageTokenStorage, c8 as LogEvent, bd as LogLevel, bj as LoggerConfig, aq as MemoryTokenStorage, cM as MessageBody, cX as MessageChild, c7 as MessageSavedEvent, a4 as NodeCreateDeepOptions, aE as NodeCreateDeepPayload, a3 as NodeCreateOptions, aD as NodeCreatePayload, aG as NodeDeletePayload, ax as NodeEventPayload, bF as NodeFileSource, aH as NodeGetPayload, aI as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aM as NodeQueryPayload, aC as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aF as NodeUpdatePayload, d8 as PlanActionOptions, d7 as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, cY as PlanTask, cz as RETRY_STRATEGIES, ca as RaisinReference, bc as ReconnectManager, b0 as RefreshTokenPayload, aN as RelationAddPayload, aO as RelationRemovePayload, aP as RelationsGetPayload, ay as RequestContext, av as RequestEnvelope, b6 as RequestType, aw as ResponseEnvelope, aA as ResponseMetadata, b7 as ResponseStatus, ce as RetryConfig, cf as RetryStrategy, aJ as RevisionEntry, ah as SchemaCommit, d5 as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, ai as SqlQuery, aQ as SqlQueryPayload, aR as SqlResult, bY as StepCompletedEvent, cc as StepErrorBehavior, bZ as StepFailedEvent, bX as StepStartedEvent, aX as SubscribePayload, an as Subscription, S as SubscriptionFilters, aZ as SubscriptionResponse, ad as Tags, cy as TaskCompletionResult, ch as TaskOption, c2 as TextChunkEvent, c5 as ThoughtChunkEvent, as as TokenStorage, c4 as ToolCallCompletedEvent, T as ToolCallInfo, cW as ToolCallRecord, c3 as ToolCallStartedEvent, a7 as Transaction, b1 as TransactionBeginPayload, b2 as TransactionBeginResponse, b3 as TransactionCommitPayload, b4 as TransactionCommitResponse, a8 as TransactionOptions, b5 as TransactionRollbackPayload, aY as UnsubscribePayload, bo as Upload, bw as UploadError, bL as UploadManager, bl as UploadOptions, bm as UploadProgress, bn as UploadResult, bk as UploadStatus, bs as UploadStatusResponse, bK as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, aS as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, aT as WorkspaceCreatePayload, aV as WorkspaceDeletePayload, aU as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, aW as WorkspaceUpdatePayload, bI as calculateChunkCount, bf as configureLogger, bG as createFileSource, aj as createSqlHandler, b9 as decodeMessage, b8 as encodeMessage, bJ as getChunkRange, bH as getContentType, bh as getLogLevel, bi as getLoggerConfig, cA as getRefDisplayName, cB as getRefPath, ba as isEventMessage, cD as isFlowDefinitionContainer, cC as isFlowDefinitionStep, bb as isResponseEnvelope, c9 as isTerminalEvent, be as logger, da as projectPlansFromMessages, bg as setLogLevel } from './conversation-list-store-CrmmmVKE.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-DkVt51MH.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-
|
|
5
|
+
export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-RNJfHu0B.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-
|
|
2
|
-
export {
|
|
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-
|
|
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-CrmmmVKE.js';
|
|
2
|
+
export { co as AiContainerConfig, cn as AiErrorBehavior, cm as AiToolMode, aa as Archetypes, aL as AuditLogEntry, aK as AuditQueryPayload, G as AuthEvent, A as AuthManager, J as AuthStateChange, K as AuthStateChangeCallback, a_ as AuthenticatePayload, a$ as AuthenticateResponse, bv as BatchFileProgress, ac as Branches, bE as BrowserFileSource, cO as ChatAssistantMessageEvent, cQ as ChatCompletedEvent, cZ as ChatConversationCreatedEvent, cS as ChatDoneEvent, cI as ChatEvent, cR as ChatFailedEvent, d0 as ChatLogEvent, b as ChatMessage, c$ as ChatMessageDeliveredEvent, c_ as ChatMessageSavedEvent, cl as ChatStepConfig, ck as ChatTerminationConfig, cj as ChatTerminationMode, cN as ChatTextChunkEvent, cV as ChatThoughtChunkEvent, cU as ChatToolCallCompletedEvent, cT as ChatToolCallStartedEvent, cP as ChatWaitingEvent, br as ChunkUploadResponse, x as ClientMode, bt as CompleteUploadRequest, bu as CompleteUploadResponse, ao as Connection, ap as ConnectionOptions, C as ConnectionState, cs as ContainerRule, cb as ContainerType, cJ as Conversation, c6 as ConversationCreatedEvent, d as ConversationListItem, h as ConversationListSnapshot, e as ConversationListStore, g as ConversationListStoreOptions, d1 as ConversationManager, d9 as ConversationManagerOptions, cL as ConversationStatus, c as ConversationStore, f as ConversationStoreOptions, a as ConversationStoreSnapshot, d6 as ConversationSubscription, cK as ConversationType, d4 as CreateConvoOptions, bp as CreateUploadRequest, bq as CreateUploadResponse, y as CurrentUser, bD as DEFAULT_BATCH_CONCURRENCY, bC as DEFAULT_BRANCH, bx as DEFAULT_CHUNK_SIZE, by as DEFAULT_MAX_RETRIES, bB as DEFAULT_NODE_TYPE, bz as DEFAULT_RETRY_BASE_DELAY, bA as DEFAULT_RETRY_MAX_DELAY, d2 as DEFAULT_SEND_MESSAGE_INACTIVITY_TIMEOUT_MS, D as Database, Z as DatabaseHttpOptions, ab as ElementTypes, az as ErrorInfo, am as EventCallback, ak as EventHandler, E as EventMessage, al as EventSubscriptions, bM as FlowClient, F as FlowClientOptions, bO as FlowCollectResult, c0 as FlowCompletedEvent, cv as FlowDefinition, ct as FlowDefinitionContainer, cu as FlowDefinitionNode, cp as FlowDefinitionNodeBase, cr as FlowDefinitionStep, cd as FlowErrorStrategy, j as FlowExecutionEvent, c1 as FlowFailedEvent, bV as FlowInstanceStatus, bW as FlowInstanceStatusResponse, b$ as FlowResumedEvent, bU as FlowRunResponse, bN as FlowRunResult, cq as FlowStepProperties, b_ as FlowWaitingEvent, i as FlowsApi, bR as FunctionInvokeOptions, bS as FunctionInvokeResponse, bT as FunctionInvokeSyncResponse, bP as FunctionsApi, ci as HandoffTarget, af as HttpArchetypes, V as HttpCurrentUser, O as HttpDatabase, ag as HttpElementTypes, bQ as HttpFunctionsApi, ae as HttpNodeTypes, W as HttpUserNode, Q as HttpWorkspaceClient, cg as HumanTaskType, au as IdentityAuthError, at as IdentityAuthResponse, I as IdentityUser, cE as InboxApi, cF as InboxApiOptions, cw as InboxTask, cx as InboxTaskStatus, aB as IncomingRelation, d3 as ListConversationsOptions, cG as ListTasksOptions, cH as ListTasksResponse, ar as LocalStorageTokenStorage, c8 as LogEvent, bd as LogLevel, bj as LoggerConfig, aq as MemoryTokenStorage, cM as MessageBody, cX as MessageChild, c7 as MessageSavedEvent, a4 as NodeCreateDeepOptions, aE as NodeCreateDeepPayload, a3 as NodeCreateOptions, aD as NodeCreatePayload, aG as NodeDeletePayload, ax as NodeEventPayload, bF as NodeFileSource, aH as NodeGetPayload, aI as NodeHistoryPayload, a2 as NodeOperations, a6 as NodeQueryOptions, aM as NodeQueryPayload, aC as NodeRelationships, a9 as NodeTypes, a5 as NodeUpdateOptions, aF as NodeUpdatePayload, d8 as PlanActionOptions, d7 as PlanActionReceipt, P as PlanProjection, k as PlanProjectionTask, cY as PlanTask, cz as RETRY_STRATEGIES, ca as RaisinReference, bc as ReconnectManager, b0 as RefreshTokenPayload, aN as RelationAddPayload, aO as RelationRemovePayload, aP as RelationsGetPayload, ay as RequestContext, av as RequestEnvelope, b6 as RequestType, aw as ResponseEnvelope, aA as ResponseMetadata, b7 as ResponseStatus, ce as RetryConfig, cf as RetryStrategy, aJ as RevisionEntry, ah as SchemaCommit, d5 as SendMessageOptions, X as SignAssetOptions, Y as SignedAssetUrl, ai as SqlQuery, aQ as SqlQueryPayload, aR as SqlResult, bY as StepCompletedEvent, cc as StepErrorBehavior, bZ as StepFailedEvent, bX as StepStartedEvent, aX as SubscribePayload, an as Subscription, S as SubscriptionFilters, aZ as SubscriptionResponse, ad as Tags, cy as TaskCompletionResult, ch as TaskOption, c2 as TextChunkEvent, c5 as ThoughtChunkEvent, as as TokenStorage, c4 as ToolCallCompletedEvent, T as ToolCallInfo, cW as ToolCallRecord, c3 as ToolCallStartedEvent, a7 as Transaction, b1 as TransactionBeginPayload, b2 as TransactionBeginResponse, b3 as TransactionCommitPayload, b4 as TransactionCommitResponse, a8 as TransactionOptions, b5 as TransactionRollbackPayload, aY as UnsubscribePayload, bo as Upload, bw as UploadError, bL as UploadManager, bl as UploadOptions, bm as UploadProgress, bn as UploadResult, bk as UploadStatus, bs as UploadStatusResponse, bK as Uploader, M as UserChangeCallback, L as UserChangeEvent, z as UserNode, aS as Workspace, _ as WorkspaceClient, a0 as WorkspaceCreateOptions, aT as WorkspaceCreatePayload, aV as WorkspaceDeletePayload, aU as WorkspaceGetPayload, $ as WorkspaceManager, a1 as WorkspaceUpdateOptions, aW as WorkspaceUpdatePayload, bI as calculateChunkCount, bf as configureLogger, bG as createFileSource, aj as createSqlHandler, b9 as decodeMessage, b8 as encodeMessage, bJ as getChunkRange, bH as getContentType, bh as getLogLevel, bi as getLoggerConfig, cA as getRefDisplayName, cB as getRefPath, ba as isEventMessage, cD as isFlowDefinitionContainer, cC as isFlowDefinitionStep, bb as isResponseEnvelope, c9 as isTerminalEvent, be as logger, da as projectPlansFromMessages, bg as setLogLevel } from './conversation-list-store-CrmmmVKE.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-DcJiy1S6.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-
|
|
5
|
+
export { b as SqlAdapter, S as SqlAdapterOptions, a as SqlSnapshot, c as createSqlAdapter } from './svelte-sql-C0CmmhAL.js';
|
|
6
6
|
export { RaisinVue, VueComputedRef, VueLike, VueRef, createRaisinVue } from './vue.js';
|
|
7
7
|
import 'events';
|
|
8
8
|
import 'fs/promises';
|