@lumerahq/ui 0.11.2 → 0.12.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RecordSheet-CTmyahrD.js → RecordSheet-DJoKhb3u.js} +9509 -6680
- package/dist/{automations-CmEr75-t.js → automations-EgDXJ43_.js} +4 -1
- package/dist/components/audit-log/AuditLog.d.ts +12 -0
- package/dist/components/audit-log/AuditLog.d.ts.map +1 -0
- package/dist/components/audit-log/AuditLogEntry.d.ts +5 -0
- package/dist/components/audit-log/AuditLogEntry.d.ts.map +1 -0
- package/dist/components/audit-log/index.d.ts +2 -0
- package/dist/components/audit-log/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -5
- package/dist/{highlighted-body-OFNGDK62-CZTacEfs.js → highlighted-body-OFNGDK62-DD5EYZQR.js} +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -4
- package/dist/hooks/use-audit-log.d.ts +17 -0
- package/dist/hooks/use-audit-log.d.ts.map +1 -0
- package/dist/index.js +16 -14
- package/dist/lib/api.d.ts +10 -1
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/audit-log-core.d.ts +77 -0
- package/dist/lib/audit-log-core.d.ts.map +1 -0
- package/dist/lib/audit-log.d.ts +7 -0
- package/dist/lib/audit-log.d.ts.map +1 -0
- package/dist/lib/index.js +1 -1
- package/dist/mermaid-GHXKKRXX-BdrbO7XD.js +4 -0
- package/dist/ui.css +131 -0
- package/dist/{use-automation-run-Bxv8oQhP.js → use-automation-run-BrghacFY.js} +148 -3
- package/dist/{use-sql-table-D30SaDrm.js → use-sql-table-DWHMqSIq.js} +1 -1
- package/package.json +1 -1
- package/dist/mermaid-GHXKKRXX-C5AtWA-7.js +0 -4
|
@@ -800,6 +800,7 @@ const request$1 = async (path, options) => {
|
|
|
800
800
|
}
|
|
801
801
|
return parseResponseBody$1(response);
|
|
802
802
|
};
|
|
803
|
+
const requestApi = request$1;
|
|
803
804
|
const extractErrorMessage$1 = (response) => {
|
|
804
805
|
if (typeof response.error === "string" && response.error.trim()) {
|
|
805
806
|
return response.error;
|
|
@@ -872,7 +873,7 @@ async function pbList(collection, options = {}) {
|
|
|
872
873
|
}
|
|
873
874
|
async function pbSearch(collection, query, options = {}) {
|
|
874
875
|
if (!collection) throw new Error("Collection is required");
|
|
875
|
-
const { page = 1, perPage = 20, filter, sort, expand, highlight } = options;
|
|
876
|
+
const { page = 1, perPage = 20, filter, sort, expand, highlight, mode } = options;
|
|
876
877
|
const params = new URLSearchParams({
|
|
877
878
|
q: query,
|
|
878
879
|
page: String(page),
|
|
@@ -882,6 +883,7 @@ async function pbSearch(collection, query, options = {}) {
|
|
|
882
883
|
if (sort) params.set("sort", sort);
|
|
883
884
|
if (expand) params.set("expand", expand);
|
|
884
885
|
if (highlight) params.set("highlight", "true");
|
|
886
|
+
if (mode) params.set("mode", mode);
|
|
885
887
|
return request$1(
|
|
886
888
|
`/pb/collections/${encodeURIComponent(collection)}/search?${params}`,
|
|
887
889
|
{
|
|
@@ -1285,6 +1287,7 @@ export {
|
|
|
1285
1287
|
listRunsByExternalId as U,
|
|
1286
1288
|
pollAutomationRun as V,
|
|
1287
1289
|
pollRun as W,
|
|
1290
|
+
requestApi as X,
|
|
1288
1291
|
getShareableAppUrl as a,
|
|
1289
1292
|
buildShareableAppUrl as b,
|
|
1290
1293
|
configureBridge as c,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type AuditLogProps = {
|
|
2
|
+
/** Collections whose combined record history should be shown (maximum 20). */
|
|
3
|
+
collections: readonly string[];
|
|
4
|
+
/** Rows fetched per page. Defaults to 50; the API maximum is 200. */
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
/** Header text. Defaults to "Activity". */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Optional classes for the outer container. */
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function AuditLog({ collections, pageSize, title, className }: AuditLogProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=AuditLog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLog.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/AuditLog.tsx"],"names":[],"mappings":"AA8BA,MAAM,MAAM,aAAa,GAAG;IAC1B,8EAA8E;IAC9E,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA+BF,wBAAgB,QAAQ,CAAC,EAAE,WAAW,EAAE,QAAa,EAAE,KAAkB,EAAE,SAAS,EAAE,EAAE,aAAa,2CAmUpG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogEntry.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/AuditLogEntry.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,aAAa,IAAI,iBAAiB,EAKxC,MAAM,iBAAiB,CAAC;AAyEzB,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,iBAAiB,CAAA;CAAE,2CAiFpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -2,6 +2,7 @@ export type { ColumnType, FormatOptions } from '../lib/formatters';
|
|
|
2
2
|
export type { AgentChatAbortRequest, AgentChatAction, AgentChatActionBlock, AgentChatActiveStatus, AgentChatAgentProfile, AgentChatAgentRequest, AgentChatBlockRendererProps, AgentChatCollectionMap, AgentChatComposerActions, AgentChatComposerRendererProps, AgentChatComposerState, AgentChatContentBlock, AgentChatCustomBlock, AgentChatFeatureFlags, AgentChatFile, AgentChatFileBlock, AgentChatHistoryPage, AgentChatHistoryRequest, AgentChatHistoryResult, AgentChatID, AgentChatInfoBlock, AgentChatLabels, AgentChatLoadEarlierRequest, AgentChatMessage, AgentChatMessageRendererProps, AgentChatMessageRole, AgentChatMetadata, AgentChatOperationStatus, AgentChatPendingFile, AgentChatPhase, AgentChatProps, AgentChatRenameSessionRequest, AgentChatRenderers, AgentChatResizableWidthOptions, AgentChatSession, AgentChatSessionListRequest, AgentChatSessionListResult, AgentChatStreamEvent, AgentChatStreamHandlers, AgentChatSubmitInput, AgentChatSubmitResult, AgentChatSubscription, AgentChatTerminalStatus, AgentChatTextBlock, AgentChatThinkingBlock, AgentChatTokenUsage, AgentChatToolCall, AgentChatToolCallBlock, AgentChatToolCallLike, AgentChatToolRenderer, AgentChatTransport, AgentChatTurn, AgentChatTurnStatus, LumeraAgentChatTransportOptions, } from './agent-chat';
|
|
3
3
|
export { AgentChat, ArtifactCard, createLumeraAgentChatTransport, defaultToolRenderers, findRenderer, getCollectionMap, humanizeCollectionName, isExploratoryToolCallError, ToolCallCard, type ToolCallCardProps, ToolRenderersProvider, warmCollectionCache, } from './agent-chat';
|
|
4
4
|
export { AssistantChat, type AssistantChatProps, AssistantPage, type AssistantPageProps, AssistantWidget, type AssistantWidgetProps, type ComposerChip as AssistantComposerChip, isMutatingToolCall, useDataSyncTransport, withDataSync, } from './assistant';
|
|
5
|
+
export { AuditLog, type AuditLogProps } from './audit-log';
|
|
5
6
|
export { AutomationRunList } from './automation/AutomationRunList';
|
|
6
7
|
export { AutomationRunner } from './automation/AutomationRunner';
|
|
7
8
|
export { type ColumnDef, DataTable, DataTableFilters, type DataTableFiltersProps, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type FilterColumn, RecordSheet, type RecordSheetProps, } from './data-table';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,8BAA8B,EAC9B,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,+BAA+B,GAChC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,SAAS,EACT,YAAY,EACZ,8BAA8B,EAC9B,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,YAAY,EACZ,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,aAAa,EACb,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,YAAY,IAAI,qBAAqB,EAC1C,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EACL,KAAK,SAAS,EACd,SAAS,EACT,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,8BAA8B,EAC9B,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,+BAA+B,GAChC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,SAAS,EACT,YAAY,EACZ,8BAA8B,EAC9B,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,YAAY,EACZ,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,aAAa,EACb,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,YAAY,IAAI,qBAAqB,EAC1C,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EACL,KAAK,SAAS,EACd,SAAS,EACT,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,WAAW,EACX,KAAK,gBAAgB,GACtB,MAAM,cAAc,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { A, a, e, j, k, n, o,
|
|
1
|
+
import { A, a, e, j, k, n, o, p, D, q, r, R, T, b, c, d, f, g, h, i, l, u, w, m } from "../RecordSheet-DJoKhb3u.js";
|
|
2
2
|
export {
|
|
3
3
|
A as AgentChat,
|
|
4
4
|
a as ArtifactCard,
|
|
5
5
|
e as AssistantChat,
|
|
6
6
|
j as AssistantPage,
|
|
7
7
|
k as AssistantWidget,
|
|
8
|
-
n as
|
|
9
|
-
o as
|
|
8
|
+
n as AuditLog,
|
|
9
|
+
o as AutomationRunList,
|
|
10
|
+
p as AutomationRunner,
|
|
10
11
|
D as DataTable,
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
q as DataTableFilters,
|
|
13
|
+
r as DataTablePagination,
|
|
13
14
|
R as RecordSheet,
|
|
14
15
|
T as ToolCallCard,
|
|
15
16
|
b as ToolRenderersProvider,
|
package/dist/{highlighted-body-OFNGDK62-CZTacEfs.js → highlighted-body-OFNGDK62-DD5EYZQR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as R$1, L as Li, v as At } from "./RecordSheet-DJoKhb3u.js";
|
|
2
2
|
import { useContext, useState, useEffect } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var R = ({ code: s, language: e, raw: t, className: h, startLine: d, lineNumbers: m, ...p }) => {
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { type UseAgentChatOptions, type UseAgentChatResult, useAgentChat, } from './use-agent-chat';
|
|
2
2
|
export { type UseAgentChatSessionsOptions, type UseAgentChatSessionsResult, useAgentChatSessions, } from './use-agent-chat-sessions';
|
|
3
|
+
export { type UseAuditLogOptions, type UseAuditLogResult, useAuditLog, } from './use-audit-log';
|
|
3
4
|
export { useAutomationAgent } from './use-automation-agent';
|
|
4
5
|
export { useAutomationRun } from './use-automation-run';
|
|
5
6
|
export { type UploadStatus, type UseFileUploadOptions, type UseFileUploadReturn, useFileUpload, } from './use-file-upload';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,YAA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EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,WAAW,GACZ,MAAM,iBAAiB,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { u, a, b } from "../use-automation-run-
|
|
2
|
-
import { u as u2, a as a2, b as b2, c, d, e } from "../use-sql-table-
|
|
1
|
+
import { u, a, b, c } from "../use-automation-run-BrghacFY.js";
|
|
2
|
+
import { u as u2, a as a2, b as b2, c as c2, d, e } from "../use-sql-table-DWHMqSIq.js";
|
|
3
3
|
export {
|
|
4
4
|
u as useAgentChat,
|
|
5
5
|
a as useAgentChatSessions,
|
|
6
|
+
b as useAuditLog,
|
|
6
7
|
u2 as useAutomationAgent,
|
|
7
|
-
|
|
8
|
+
c as useAutomationRun,
|
|
8
9
|
a2 as useFileUpload,
|
|
9
10
|
b2 as useLumeraUser,
|
|
10
|
-
|
|
11
|
+
c2 as usePbSql,
|
|
11
12
|
d as usePbUpdate,
|
|
12
13
|
e as useSqlTable
|
|
13
14
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuditLogEntry, AuditLogFilters } from '../lib/audit-log';
|
|
2
|
+
export type UseAuditLogOptions = {
|
|
3
|
+
pageSize?: number;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type UseAuditLogResult = {
|
|
7
|
+
entries: AuditLogEntry[];
|
|
8
|
+
error: Error | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
isFetching: boolean;
|
|
11
|
+
isLoadingMore: boolean;
|
|
12
|
+
hasMore: boolean;
|
|
13
|
+
loadMore: () => Promise<void>;
|
|
14
|
+
refresh: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export declare function useAuditLog(collections: readonly string[], filters?: AuditLogFilters, options?: UseAuditLogOptions): UseAuditLogResult;
|
|
17
|
+
//# sourceMappingURL=use-audit-log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-audit-log.d.ts","sourceRoot":"","sources":["../../src/hooks/use-audit-log.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EAKrB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAEF,wBAAgB,WAAW,CACzB,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,GAAE,eAAoB,EAC7B,OAAO,GAAE,kBAAuB,GAC/B,iBAAiB,CA8CnB"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A, a, e, j, k, n, o,
|
|
2
|
-
import { u as u2, a as a2, b as b2 } from "./use-automation-run-
|
|
3
|
-
import { u as u3, a as a3, b as b3, c as
|
|
4
|
-
import { B, E, z, b as b4, A as A2, C, D as D2, c as
|
|
5
|
-
import { o as o3, f as f3, a as a5, b as b5, c as
|
|
1
|
+
import { A, a, e, j, k, n, o, p, D, q, r, R, T, b, c, d, f, g, h, i, l, u, w, m } from "./RecordSheet-DJoKhb3u.js";
|
|
2
|
+
import { u as u2, a as a2, b as b2, c as c2 } from "./use-automation-run-BrghacFY.js";
|
|
3
|
+
import { u as u3, a as a3, b as b3, c as c3, d as d2, e as e2 } from "./use-sql-table-DWHMqSIq.js";
|
|
4
|
+
import { B, E, z, b as b4, A as A2, C, D as D2, c as c4, F, G, H, I, g as g2, J, K, L, f as f2, M, O, N, a as a4, h as h2, P, i as i2, Q, R as R2, S, T as T2, U, o as o2, p as p2, d as d3, j as j2, k as k2, l as l2, m as m2, n as n2, q as q2, r as r2, t, u as u4, v, w as w2, V, W, e as e3, x, s, y } from "./automations-EgDXJ43_.js";
|
|
5
|
+
import { o as o3, f as f3, a as a5, b as b5, c as c5, d as d4, e as e4, g as g3, h as h3, i as i3, j as j3, k as k3, l as l3, m as m3, n as n3, s as s2 } from "./formatters-D4T821Dv.js";
|
|
6
6
|
import { q as q3 } from "./query-client-DdOWay4_.js";
|
|
7
7
|
export {
|
|
8
8
|
A as AgentChat,
|
|
@@ -10,12 +10,13 @@ export {
|
|
|
10
10
|
e as AssistantChat,
|
|
11
11
|
j as AssistantPage,
|
|
12
12
|
k as AssistantWidget,
|
|
13
|
-
n as
|
|
14
|
-
o as
|
|
13
|
+
n as AuditLog,
|
|
14
|
+
o as AutomationRunList,
|
|
15
|
+
p as AutomationRunner,
|
|
15
16
|
B as BridgeError,
|
|
16
17
|
D as DataTable,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
q as DataTableFilters,
|
|
19
|
+
r as DataTablePagination,
|
|
19
20
|
E as EXPECTED_PARENT_ORIGIN,
|
|
20
21
|
R as RecordSheet,
|
|
21
22
|
T as ToolCallCard,
|
|
@@ -26,7 +27,7 @@ export {
|
|
|
26
27
|
C as cancelRun,
|
|
27
28
|
D2 as clearAutomationCache,
|
|
28
29
|
o3 as cn,
|
|
29
|
-
|
|
30
|
+
c4 as configureBridge,
|
|
30
31
|
F as createAutomationRun,
|
|
31
32
|
c as createLumeraAgentChatTransport,
|
|
32
33
|
G as createRun,
|
|
@@ -37,7 +38,7 @@ export {
|
|
|
37
38
|
f3 as formatBoolean,
|
|
38
39
|
a5 as formatCellValue,
|
|
39
40
|
b5 as formatCurrency,
|
|
40
|
-
|
|
41
|
+
c5 as formatDate,
|
|
41
42
|
d4 as formatDateTime,
|
|
42
43
|
e4 as formatEditor,
|
|
43
44
|
g3 as formatFile,
|
|
@@ -78,7 +79,7 @@ export {
|
|
|
78
79
|
m2 as pbDelete,
|
|
79
80
|
n2 as pbGet,
|
|
80
81
|
q2 as pbList,
|
|
81
|
-
|
|
82
|
+
r2 as pbSearch,
|
|
82
83
|
t as pbSql,
|
|
83
84
|
u4 as pbUpdate,
|
|
84
85
|
v as pbUpdateRecord,
|
|
@@ -93,12 +94,13 @@ export {
|
|
|
93
94
|
y as uploadFile,
|
|
94
95
|
u2 as useAgentChat,
|
|
95
96
|
a2 as useAgentChatSessions,
|
|
97
|
+
b2 as useAuditLog,
|
|
96
98
|
u3 as useAutomationAgent,
|
|
97
|
-
|
|
99
|
+
c2 as useAutomationRun,
|
|
98
100
|
u as useDataSyncTransport,
|
|
99
101
|
a3 as useFileUpload,
|
|
100
102
|
b3 as useLumeraUser,
|
|
101
|
-
|
|
103
|
+
c3 as usePbSql,
|
|
102
104
|
d2 as usePbUpdate,
|
|
103
105
|
e2 as useSqlTable,
|
|
104
106
|
w as warmCollectionCache,
|
package/dist/lib/api.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export type PbListResponse<T> = {
|
|
|
64
64
|
/** Ranked-search metadata added by FTS-enabled collections. */
|
|
65
65
|
export type PbSearchMetadata = {
|
|
66
66
|
rank: number;
|
|
67
|
-
match: 'fulltext' | 'fuzzy';
|
|
67
|
+
match: 'fulltext' | 'fuzzy' | 'semantic';
|
|
68
68
|
/** Escaped text with only matching terms wrapped in <b> tags. */
|
|
69
69
|
headline?: string;
|
|
70
70
|
};
|
|
@@ -74,6 +74,8 @@ export type PbSearchResult<T extends PbRecord = PbRecord> = T & {
|
|
|
74
74
|
export type PbSearchOptions = PbListOptions & {
|
|
75
75
|
/** Include an escaped, highlighted result snippet. */
|
|
76
76
|
highlight?: boolean;
|
|
77
|
+
/** Select lexical, semantic, or the default hybrid behavior. */
|
|
78
|
+
mode?: 'hybrid' | 'fulltext' | 'semantic';
|
|
77
79
|
};
|
|
78
80
|
/** Bulk operation result */
|
|
79
81
|
export type PbBulkResult = {
|
|
@@ -137,6 +139,13 @@ export type EmailSendResult = {
|
|
|
137
139
|
/** Log record ID in lm_email_logs */
|
|
138
140
|
log_id: string;
|
|
139
141
|
};
|
|
142
|
+
/** Internal typed bridge helper for feature-specific API modules. */
|
|
143
|
+
export declare const requestApi: <T>(path: string, options: {
|
|
144
|
+
method: string;
|
|
145
|
+
headers?: Record<string, string>;
|
|
146
|
+
body?: unknown;
|
|
147
|
+
isBase64?: boolean;
|
|
148
|
+
}) => Promise<T>;
|
|
140
149
|
/**
|
|
141
150
|
* Execute a SQL query against the tenant database.
|
|
142
151
|
*
|
package/dist/lib/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/lib/api.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAwB;AACxB,MAAM,MAAM,YAAY,GAAG;IACzB,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,0CAA0C;IAC1C,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;CAClB,CAAC;AAEF,yBAAyB;AACzB,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,E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|
+
export declare const AUDIT_LOG_MAX_COLLECTIONS = 20;
|
|
3
|
+
export type AuditLogEvent = 'created' | 'updated' | 'deleted';
|
|
4
|
+
export type AuditLogStore = 'shared' | 'tenant';
|
|
5
|
+
export type AuditLogActor = {
|
|
6
|
+
id?: string;
|
|
7
|
+
type: string;
|
|
8
|
+
type_label: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
};
|
|
12
|
+
export type AuditLogSummarySegment = {
|
|
13
|
+
text: string;
|
|
14
|
+
emphasis: 'none' | 'strong';
|
|
15
|
+
};
|
|
16
|
+
export type AuditLogField = {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
secondary?: string;
|
|
20
|
+
mono?: boolean;
|
|
21
|
+
code?: boolean;
|
|
22
|
+
key?: string;
|
|
23
|
+
changed?: boolean;
|
|
24
|
+
json?: unknown;
|
|
25
|
+
};
|
|
26
|
+
export type AuditLogSnapshot = {
|
|
27
|
+
before: AuditLogField[] | null;
|
|
28
|
+
after: AuditLogField[] | null;
|
|
29
|
+
};
|
|
30
|
+
export type AuditLogEntry = {
|
|
31
|
+
id: string;
|
|
32
|
+
occurred_at: string;
|
|
33
|
+
domain: string;
|
|
34
|
+
event: AuditLogEvent;
|
|
35
|
+
actor: AuditLogActor;
|
|
36
|
+
summary: AuditLogSummarySegment[];
|
|
37
|
+
details: AuditLogField[];
|
|
38
|
+
has_snapshot: boolean;
|
|
39
|
+
store: AuditLogStore;
|
|
40
|
+
};
|
|
41
|
+
export type AuditLogPagination = {
|
|
42
|
+
limit: number;
|
|
43
|
+
has_more: boolean;
|
|
44
|
+
next_cursor?: string;
|
|
45
|
+
};
|
|
46
|
+
export type AuditLogListResponse = {
|
|
47
|
+
audit_logs: AuditLogEntry[];
|
|
48
|
+
pagination: AuditLogPagination;
|
|
49
|
+
};
|
|
50
|
+
export type AuditLogSnapshotResponse = {
|
|
51
|
+
id: string;
|
|
52
|
+
snapshot: AuditLogSnapshot | null;
|
|
53
|
+
};
|
|
54
|
+
export type AuditLogFilters = {
|
|
55
|
+
event?: AuditLogEvent;
|
|
56
|
+
actor?: string;
|
|
57
|
+
since?: string;
|
|
58
|
+
until?: string;
|
|
59
|
+
};
|
|
60
|
+
export type ListRecordAuditLogParams = AuditLogFilters & {
|
|
61
|
+
collections: readonly string[];
|
|
62
|
+
cursor?: string;
|
|
63
|
+
limit?: number;
|
|
64
|
+
};
|
|
65
|
+
export type RecordAuditLogCsvResult = {
|
|
66
|
+
csv: string;
|
|
67
|
+
count: number;
|
|
68
|
+
truncated: boolean;
|
|
69
|
+
};
|
|
70
|
+
export declare const normalizeAuditLogPageSize: (value?: number) => number;
|
|
71
|
+
export declare const auditLogActorLabel: (actor: AuditLogActor) => string;
|
|
72
|
+
export declare function normalizeRecordAuditCollections(collections: readonly string[]): string[];
|
|
73
|
+
/** Build a request scoped to one or more user-defined collections. */
|
|
74
|
+
export declare function buildRecordAuditLogPath(params: ListRecordAuditLogParams): string;
|
|
75
|
+
export declare const auditLogDetailValue: (entry: AuditLogEntry, label: string) => string;
|
|
76
|
+
export declare function buildAuditLogCsv(entries: AuditLogEntry[]): string;
|
|
77
|
+
//# sourceMappingURL=audit-log-core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-log-core.d.ts","sourceRoot":"","sources":["../../src/lib/audit-log-core.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAC7C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAA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,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,eAAe,GAAG;IACvD,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,cAAU,KAAG,MAA6D,CAAC;AAErH,eAAO,MAAM,kBAAkB,GAAI,OAAO,aAAa,KAAG,MACK,CAAC;AAEhE,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAUxF;AAED,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM,CAqBhF;AAID,eAAO,MAAM,mBAAmB,GAAI,OAAO,aAAa,EAAE,OAAO,MAAM,KAAG,MACP,CAAC;AAMpE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,MAAM,CAkBjE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AuditLogListResponse, AuditLogSnapshotResponse, AuditLogStore, ListRecordAuditLogParams, RecordAuditLogCsvResult } from './audit-log-core';
|
|
2
|
+
export { AUDIT_LOG_EXPORT_LIMIT, AUDIT_LOG_MAX_COLLECTIONS, type AuditLogActor, type AuditLogEntry, type AuditLogEvent, type AuditLogField, type AuditLogFilters, type AuditLogListResponse, auditLogActorLabel, auditLogDetailValue, normalizeAuditLogPageSize, normalizeRecordAuditCollections, } from './audit-log-core';
|
|
3
|
+
export declare function listRecordAuditLog(params: ListRecordAuditLogParams): Promise<AuditLogListResponse>;
|
|
4
|
+
export declare function getRecordAuditLogSnapshot(id: string, store: AuditLogStore): Promise<AuditLogSnapshotResponse>;
|
|
5
|
+
/** Fetch the current filtered feed page-by-page, capped defensively at 10,000 rows. */
|
|
6
|
+
export declare function fetchRecordAuditLogCsv(params: Omit<ListRecordAuditLogParams, 'cursor' | 'limit'>, maxRows?: number): Promise<RecordAuditLogCsvResult>;
|
|
7
|
+
//# sourceMappingURL=audit-log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../src/lib/audit-log.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAGlB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,kBAAkB,CAAC;AAE1B,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAExG;AAED,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,wBAAwB,CAAC,CASnH;AAED,uFAAuF;AACvF,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,GAAG,OAAO,CAAC,EAC1D,OAAO,SAAyB,GAC/B,OAAO,CAAC,uBAAuB,CAAC,CA2BlC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, E, z, b, A, C, D, c, F, G, H, I, g, J, K, L, f, M, O, N, a, h, P, i, Q, R, S, T, U, o, p, d, j, k, l, m, n, q, r, t, u, v, w, V, W, e, x, s, y } from "../automations-
|
|
1
|
+
import { B, E, z, b, A, C, D, c, F, G, H, I, g, J, K, L, f, M, O, N, a, h, P, i, Q, R, S, T, U, o, p, d, j, k, l, m, n, q, r, t, u, v, w, V, W, e, x, s, y } from "../automations-EgDXJ43_.js";
|
|
2
2
|
import { o as o2, f as f2, a as a2, b as b2, c as c2, d as d2, e as e2, g as g2, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2, n as n2, s as s2 } from "../formatters-D4T821Dv.js";
|
|
3
3
|
import { q as q2 } from "../query-client-DdOWay4_.js";
|
|
4
4
|
export {
|