@lumerahq/ui 0.13.0 → 0.14.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/README.md +27 -29
- package/dist/{RecordSheet-BGs3rudM.js → RecordSheet-aoDqWNaZ.js} +7397 -10728
- package/dist/audit-log-B2-PFKpH.js +128 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -6
- package/dist/{highlighted-body-OFNGDK62-V6FEuBTg.js → highlighted-body-OFNGDK62-B9aPs2O1.js} +1 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +7 -6
- package/dist/hooks/use-record-audit-log-snapshot.d.ts +15 -0
- package/dist/hooks/use-record-audit-log-snapshot.d.ts.map +1 -0
- package/dist/hooks/use-record-audit-log.d.ts +23 -0
- package/dist/hooks/use-record-audit-log.d.ts.map +1 -0
- package/dist/index.js +33 -21
- package/dist/lib/audit-log-core.d.ts +40 -46
- package/dist/lib/audit-log-core.d.ts.map +1 -1
- package/dist/lib/audit-log.d.ts +5 -5
- package/dist/lib/audit-log.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +12 -0
- package/dist/mermaid-GHXKKRXX-RyLkx3ak.js +4 -0
- package/dist/ui.css +1 -185
- package/dist/{use-automation-run-D6DIaHy3.js → use-automation-run-BeBkcUQz.js} +3 -189
- package/dist/{use-sql-table-BfA0A-w3.js → use-sql-table-BpMNl9bf.js} +71 -2
- package/package.json +1 -1
- package/dist/components/audit-log/AuditLog.d.ts +0 -51
- package/dist/components/audit-log/AuditLog.d.ts.map +0 -1
- package/dist/components/audit-log/AuditLogEntry.d.ts +0 -19
- package/dist/components/audit-log/AuditLogEntry.d.ts.map +0 -1
- package/dist/components/audit-log/index.d.ts +0 -2
- package/dist/components/audit-log/index.d.ts.map +0 -1
- package/dist/hooks/use-audit-log.d.ts +0 -18
- package/dist/hooks/use-audit-log.d.ts.map +0 -1
- package/dist/mermaid-GHXKKRXX-AvjGDhsO.js +0 -4
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { Z as requestApi } from "./automations-DGUEnAYR.js";
|
|
2
|
+
const RECORD_AUDIT_EXPORT_LIMIT = 1e4;
|
|
3
|
+
const RECORD_AUDIT_MAX_COLLECTIONS = 20;
|
|
4
|
+
const normalizeRecordAuditPageSize = (value = 50) => Math.min(200, Math.max(1, Math.trunc(value) || 50));
|
|
5
|
+
const normalizeRecordAuditExportLimit = (value = RECORD_AUDIT_EXPORT_LIMIT) => Math.min(RECORD_AUDIT_EXPORT_LIMIT, Math.max(1, Math.trunc(value) || RECORD_AUDIT_EXPORT_LIMIT));
|
|
6
|
+
const shortActorId = (id) => {
|
|
7
|
+
const normalized = id?.trim() || "";
|
|
8
|
+
return normalized.length > 4 ? `${normalized.slice(0, 4)}…` : normalized;
|
|
9
|
+
};
|
|
10
|
+
const recordAuditActorLabel = (actor) => actor.name?.trim() || actor.email?.trim() || [actor.type_label.trim(), shortActorId(actor.id)].filter(Boolean).join(" ") || "Unknown actor";
|
|
11
|
+
function normalizeRecordAuditCollections(collections) {
|
|
12
|
+
const normalized = [];
|
|
13
|
+
const seen = /* @__PURE__ */ new Set();
|
|
14
|
+
for (const value of collections) {
|
|
15
|
+
const collection = value.trim();
|
|
16
|
+
if (!collection || seen.has(collection)) continue;
|
|
17
|
+
seen.add(collection);
|
|
18
|
+
normalized.push(collection);
|
|
19
|
+
}
|
|
20
|
+
return normalized;
|
|
21
|
+
}
|
|
22
|
+
function buildRecordAuditLogPath(params) {
|
|
23
|
+
const collections = normalizeRecordAuditCollections(params.collections);
|
|
24
|
+
if (collections.length === 0) {
|
|
25
|
+
throw new Error("At least one collection is required");
|
|
26
|
+
}
|
|
27
|
+
if (collections.length > RECORD_AUDIT_MAX_COLLECTIONS) {
|
|
28
|
+
throw new Error(`At most ${RECORD_AUDIT_MAX_COLLECTIONS} collections can be requested`);
|
|
29
|
+
}
|
|
30
|
+
const query = new URLSearchParams({
|
|
31
|
+
domain: "record",
|
|
32
|
+
limit: String(normalizeRecordAuditPageSize(params.limit))
|
|
33
|
+
});
|
|
34
|
+
for (const collection of collections) query.append("collection", collection);
|
|
35
|
+
if (params.cursor?.trim()) query.set("cursor", params.cursor.trim());
|
|
36
|
+
if (params.event) query.set("event", params.event);
|
|
37
|
+
if (params.actor?.trim()) query.set("actor", params.actor.trim());
|
|
38
|
+
if (params.since?.trim()) query.set("since", params.since.trim());
|
|
39
|
+
if (params.until?.trim()) query.set("until", params.until.trim());
|
|
40
|
+
return `/audit-log?${query.toString()}`;
|
|
41
|
+
}
|
|
42
|
+
const protectSpreadsheetCell = (value) => /^[\t\r ]*[=+\-@]/.test(value) ? `'${value}` : value;
|
|
43
|
+
const csvCell = (value) => `"${protectSpreadsheetCell(value).replaceAll('"', '""')}"`;
|
|
44
|
+
const summaryText = (entry) => entry.summary.map((segment) => segment.text).join(" ");
|
|
45
|
+
function buildRecordAuditCsv(entries) {
|
|
46
|
+
const rows = entries.map(
|
|
47
|
+
(entry) => [
|
|
48
|
+
entry.occurred_at,
|
|
49
|
+
entry.collection,
|
|
50
|
+
entry.collection_id,
|
|
51
|
+
recordAuditActorLabel(entry.actor),
|
|
52
|
+
entry.actor.id || "",
|
|
53
|
+
entry.actor.type,
|
|
54
|
+
entry.event,
|
|
55
|
+
entry.record_id,
|
|
56
|
+
entry.record_label,
|
|
57
|
+
entry.changed_fields.join(", "),
|
|
58
|
+
summaryText(entry)
|
|
59
|
+
].map(csvCell).join(",")
|
|
60
|
+
);
|
|
61
|
+
return [
|
|
62
|
+
[
|
|
63
|
+
"time",
|
|
64
|
+
"collection",
|
|
65
|
+
"collection_id",
|
|
66
|
+
"actor",
|
|
67
|
+
"actor_id",
|
|
68
|
+
"actor_type",
|
|
69
|
+
"event",
|
|
70
|
+
"record_id",
|
|
71
|
+
"record_label",
|
|
72
|
+
"changed_fields",
|
|
73
|
+
"summary"
|
|
74
|
+
].map(csvCell).join(","),
|
|
75
|
+
...rows
|
|
76
|
+
].join("\n");
|
|
77
|
+
}
|
|
78
|
+
async function listRecordAuditLog(params) {
|
|
79
|
+
return requestApi(buildRecordAuditLogPath(params), { method: "GET" });
|
|
80
|
+
}
|
|
81
|
+
async function getRecordAuditLogSnapshot(id, store = "tenant") {
|
|
82
|
+
const normalizedID = id.trim();
|
|
83
|
+
if (!normalizedID) {
|
|
84
|
+
throw new Error("Audit log ID is required");
|
|
85
|
+
}
|
|
86
|
+
return requestApi(
|
|
87
|
+
`/audit-log/${encodeURIComponent(normalizedID)}/snapshot?store=${encodeURIComponent(store)}`,
|
|
88
|
+
{ method: "GET" }
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
async function fetchRecordAuditLogCsv(params, maxRows = RECORD_AUDIT_EXPORT_LIMIT) {
|
|
92
|
+
const limit = normalizeRecordAuditExportLimit(maxRows);
|
|
93
|
+
const entries = [];
|
|
94
|
+
let cursor = "";
|
|
95
|
+
let truncated = false;
|
|
96
|
+
while (entries.length < limit) {
|
|
97
|
+
const page = await listRecordAuditLog({
|
|
98
|
+
...params,
|
|
99
|
+
cursor: cursor || void 0,
|
|
100
|
+
limit: Math.min(200, limit - entries.length)
|
|
101
|
+
});
|
|
102
|
+
entries.push(...page.audit_logs.slice(0, limit - entries.length));
|
|
103
|
+
if (!page.pagination.has_more) break;
|
|
104
|
+
const nextCursor = page.pagination.next_cursor?.trim();
|
|
105
|
+
if (!nextCursor || nextCursor === cursor) {
|
|
106
|
+
throw new Error("Audit log export could not continue");
|
|
107
|
+
}
|
|
108
|
+
if (entries.length >= limit) {
|
|
109
|
+
truncated = true;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
cursor = nextCursor;
|
|
113
|
+
}
|
|
114
|
+
return { csv: buildRecordAuditCsv(entries), count: entries.length, truncated };
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
RECORD_AUDIT_EXPORT_LIMIT as R,
|
|
118
|
+
buildRecordAuditLogPath as a,
|
|
119
|
+
buildRecordAuditCsv as b,
|
|
120
|
+
normalizeRecordAuditExportLimit as c,
|
|
121
|
+
normalizeRecordAuditPageSize as d,
|
|
122
|
+
RECORD_AUDIT_MAX_COLLECTIONS as e,
|
|
123
|
+
fetchRecordAuditLogCsv as f,
|
|
124
|
+
getRecordAuditLogSnapshot as g,
|
|
125
|
+
listRecordAuditLog as l,
|
|
126
|
+
normalizeRecordAuditCollections as n,
|
|
127
|
+
recordAuditActorLabel as r
|
|
128
|
+
};
|
|
@@ -2,7 +2,6 @@ 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 AuditLogDensity, type AuditLogFilterState, type AuditLogProps, type AuditLogRecord, } from './audit-log';
|
|
6
5
|
export { AutomationRunList } from './automation/AutomationRunList';
|
|
7
6
|
export { AutomationRunner } from './automation/AutomationRunner';
|
|
8
7
|
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,
|
|
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,EA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, o,
|
|
1
|
+
import { A, a, e, j, k, n, o, D, p, q, R, T, b, c, d, f, g, h, i, l, u, w, m } from "../RecordSheet-aoDqWNaZ.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
|
|
10
|
-
p as AutomationRunner,
|
|
8
|
+
n as AutomationRunList,
|
|
9
|
+
o as AutomationRunner,
|
|
11
10
|
D as DataTable,
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
p as DataTableFilters,
|
|
12
|
+
q as DataTablePagination,
|
|
14
13
|
R as RecordSheet,
|
|
15
14
|
T as ToolCallCard,
|
|
16
15
|
b as ToolRenderersProvider,
|
package/dist/{highlighted-body-OFNGDK62-V6FEuBTg.js → highlighted-body-OFNGDK62-B9aPs2O1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as R$1, L as Li, t as At } from "./RecordSheet-aoDqWNaZ.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,9 +1,10 @@
|
|
|
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';
|
|
4
3
|
export { useAutomationAgent } from './use-automation-agent';
|
|
5
4
|
export { useAutomationRun } from './use-automation-run';
|
|
6
5
|
export { type UploadStatus, type UseFileUploadOptions, type UseFileUploadReturn, useFileUpload, } from './use-file-upload';
|
|
7
6
|
export { useLumeraUser, usePbSql, usePbUpdate } from './use-lumera-api';
|
|
7
|
+
export { type UseRecordAuditLogParams, type UseRecordAuditLogResult, useRecordAuditLog, } from './use-record-audit-log';
|
|
8
|
+
export { type UseRecordAuditLogSnapshotParams, type UseRecordAuditLogSnapshotResult, useRecordAuditLogSnapshot, } from './use-record-audit-log-snapshot';
|
|
8
9
|
export { type SortDirection, type TableFilter, type TableSort, type UseSqlTableOptions, type UseSqlTableResult, useSqlTable, } from './use-sql-table';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,aAAa,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,14 +1,15 @@
|
|
|
1
|
-
import { u, a, b
|
|
2
|
-
import { u as u2, a as a2, b as b2, c
|
|
1
|
+
import { u, a, b } from "../use-automation-run-BeBkcUQz.js";
|
|
2
|
+
import { u as u2, a as a2, b as b2, c, d, e, f, g } from "../use-sql-table-BpMNl9bf.js";
|
|
3
3
|
export {
|
|
4
4
|
u as useAgentChat,
|
|
5
5
|
a as useAgentChatSessions,
|
|
6
|
-
b as useAuditLog,
|
|
7
6
|
u2 as useAutomationAgent,
|
|
8
|
-
|
|
7
|
+
b as useAutomationRun,
|
|
9
8
|
a2 as useFileUpload,
|
|
10
9
|
b2 as useLumeraUser,
|
|
11
|
-
|
|
10
|
+
c as usePbSql,
|
|
12
11
|
d as usePbUpdate,
|
|
13
|
-
e as
|
|
12
|
+
e as useRecordAuditLog,
|
|
13
|
+
f as useRecordAuditLogSnapshot,
|
|
14
|
+
g as useSqlTable
|
|
14
15
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RecordAuditSnapshot, RecordAuditStore } from '../lib/audit-log';
|
|
2
|
+
export type UseRecordAuditLogSnapshotParams = {
|
|
3
|
+
id?: string;
|
|
4
|
+
store?: RecordAuditStore;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type UseRecordAuditLogSnapshotResult = {
|
|
8
|
+
snapshot: RecordAuditSnapshot | null;
|
|
9
|
+
error: Error | null;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isFetching: boolean;
|
|
12
|
+
refresh: () => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
export declare function useRecordAuditLogSnapshot(params: UseRecordAuditLogSnapshotParams): UseRecordAuditLogSnapshotResult;
|
|
15
|
+
//# sourceMappingURL=use-record-audit-log-snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-record-audit-log-snapshot.d.ts","sourceRoot":"","sources":["../../src/hooks/use-record-audit-log-snapshot.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE7G,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,+BAA+B,GAAG,+BAA+B,CAsBlH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RecordAuditCollectionStatus, RecordAuditEntry, RecordAuditEvent } from '../lib/audit-log';
|
|
2
|
+
export type UseRecordAuditLogParams = {
|
|
3
|
+
collections: readonly string[];
|
|
4
|
+
event?: RecordAuditEvent;
|
|
5
|
+
actor?: string;
|
|
6
|
+
since?: string;
|
|
7
|
+
until?: string;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type UseRecordAuditLogResult = {
|
|
12
|
+
entries: RecordAuditEntry[];
|
|
13
|
+
collectionStatus: RecordAuditCollectionStatus[];
|
|
14
|
+
error: Error | null;
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
isFetching: boolean;
|
|
17
|
+
isLoadingMore: boolean;
|
|
18
|
+
hasMore: boolean;
|
|
19
|
+
loadMore: () => Promise<void>;
|
|
20
|
+
refresh: () => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export declare function useRecordAuditLog(params: UseRecordAuditLogParams): UseRecordAuditLogResult;
|
|
23
|
+
//# sourceMappingURL=use-record-audit-log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-record-audit-log.d.ts","sourceRoot":"","sources":["../../src/hooks/use-record-audit-log.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAEtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,gBAAgB,EAAE,2BAA2B,EAAE,CAAC;IAChD,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,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,uBAAuB,CA+C1F"}
|
package/dist/index.js
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
import { A, a, e, j, k, n, o,
|
|
2
|
-
import { u as u2, a as a2, b as b2
|
|
3
|
-
import { u as u3, a as a3, b as b3, c as
|
|
4
|
-
import { B, E, C, b as b4, D as D2, F, G, c as
|
|
5
|
-
import { o as o3, f as
|
|
1
|
+
import { A, a, e, j, k, n, o, D, p, q, R, T, b, c, d, f, g, h, i, l, u, w, m } from "./RecordSheet-aoDqWNaZ.js";
|
|
2
|
+
import { u as u2, a as a2, b as b2 } from "./use-automation-run-BeBkcUQz.js";
|
|
3
|
+
import { u as u3, a as a3, b as b3, c as c2, d as d2, e as e2, f as f2, g as g2 } from "./use-sql-table-BpMNl9bf.js";
|
|
4
|
+
import { B, E, C, b as b4, D as D2, F, G, c as c3, H, I, J, K, g as g3, L, M, N, f as f3, O, Q, P, a as a4, h as h2, R as R2, i as i2, S, T as T2, U, V, W, l as l2, o as o2, p as p2, d as d3, j as j2, k as k2, m as m2, n as n2, q as q2, t, u as u4, v, w as w2, x, y, X, Y, e as e3, r, z, s, A as A2 } from "./automations-DGUEnAYR.js";
|
|
5
|
+
import { o as o3, f as f4, a as a5, b as b5, c as c4, d as d4, e as e4, g as g4, 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
|
+
import { R as R3, e as e5, b as b6, a as a6, f as f5, g as g5, l as l4, n as n4, c as c5, d as d5, r as r2 } from "./audit-log-B2-PFKpH.js";
|
|
7
8
|
export {
|
|
8
9
|
A as AgentChat,
|
|
9
10
|
a as ArtifactCard,
|
|
10
11
|
e as AssistantChat,
|
|
11
12
|
j as AssistantPage,
|
|
12
13
|
k as AssistantWidget,
|
|
13
|
-
n as
|
|
14
|
-
o as
|
|
15
|
-
p as AutomationRunner,
|
|
14
|
+
n as AutomationRunList,
|
|
15
|
+
o as AutomationRunner,
|
|
16
16
|
B as BridgeError,
|
|
17
17
|
D as DataTable,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
p as DataTableFilters,
|
|
19
|
+
q as DataTablePagination,
|
|
20
20
|
E as EXPECTED_PARENT_ORIGIN,
|
|
21
|
+
R3 as RECORD_AUDIT_EXPORT_LIMIT,
|
|
22
|
+
e5 as RECORD_AUDIT_MAX_COLLECTIONS,
|
|
21
23
|
R as RecordSheet,
|
|
22
24
|
T as ToolCallCard,
|
|
23
25
|
b as ToolRenderersProvider,
|
|
24
26
|
C as automationStatuses,
|
|
27
|
+
b6 as buildRecordAuditCsv,
|
|
28
|
+
a6 as buildRecordAuditLogPath,
|
|
25
29
|
b4 as buildShareableAppUrl,
|
|
26
30
|
D2 as cancelAutomationRun,
|
|
27
31
|
F as cancelRun,
|
|
28
32
|
G as clearAutomationCache,
|
|
29
33
|
o3 as cn,
|
|
30
|
-
|
|
34
|
+
c3 as configureBridge,
|
|
31
35
|
H as createAutomationRun,
|
|
32
36
|
c as createLumeraAgentChatTransport,
|
|
33
37
|
I as createRun,
|
|
34
38
|
d as defaultToolRenderers,
|
|
35
39
|
J as ensureAutomationRun,
|
|
36
40
|
K as ensureRun,
|
|
41
|
+
f5 as fetchRecordAuditLogCsv,
|
|
37
42
|
f as findRenderer,
|
|
38
|
-
|
|
43
|
+
f4 as formatBoolean,
|
|
39
44
|
a5 as formatCellValue,
|
|
40
45
|
b5 as formatCurrency,
|
|
41
|
-
|
|
46
|
+
c4 as formatDate,
|
|
42
47
|
d4 as formatDateTime,
|
|
43
48
|
e4 as formatEditor,
|
|
44
|
-
|
|
49
|
+
g4 as formatFile,
|
|
45
50
|
h3 as formatFileSize,
|
|
46
51
|
i3 as formatJson,
|
|
47
52
|
j3 as formatNumber,
|
|
@@ -49,12 +54,13 @@ export {
|
|
|
49
54
|
l3 as formatRelation,
|
|
50
55
|
m3 as formatSelect,
|
|
51
56
|
n3 as formatText,
|
|
52
|
-
|
|
57
|
+
g3 as getAppProjectExternalId,
|
|
53
58
|
L as getAutomationByExternalId,
|
|
54
59
|
M as getAutomationRun,
|
|
55
60
|
N as getAutomationRunFileDownloadUrl,
|
|
56
61
|
g as getCollectionMap,
|
|
57
|
-
|
|
62
|
+
f3 as getDownloadUrl,
|
|
63
|
+
g5 as getRecordAuditLogSnapshot,
|
|
58
64
|
O as getRun,
|
|
59
65
|
Q as getRunFileUrl,
|
|
60
66
|
P as getRunFiles,
|
|
@@ -67,10 +73,14 @@ export {
|
|
|
67
73
|
l as isMutatingToolCall,
|
|
68
74
|
S as isTerminalStatus,
|
|
69
75
|
T2 as listAutomationRunFiles,
|
|
76
|
+
l4 as listRecordAuditLog,
|
|
70
77
|
U as listRuns,
|
|
71
78
|
V as listRunsByAgent,
|
|
72
79
|
W as listRunsByExternalId,
|
|
73
80
|
l2 as logout,
|
|
81
|
+
n4 as normalizeRecordAuditCollections,
|
|
82
|
+
c5 as normalizeRecordAuditExportLimit,
|
|
83
|
+
d5 as normalizeRecordAuditPageSize,
|
|
74
84
|
o2 as onInitMessage,
|
|
75
85
|
p2 as parentApiRequest,
|
|
76
86
|
d3 as parentApiStream,
|
|
@@ -89,22 +99,24 @@ export {
|
|
|
89
99
|
Y as pollRun,
|
|
90
100
|
e3 as postReadyMessage,
|
|
91
101
|
q3 as queryClient,
|
|
92
|
-
r2 as
|
|
102
|
+
r2 as recordAuditActorLabel,
|
|
103
|
+
r as redirectToLogin,
|
|
93
104
|
z as sendEmail,
|
|
94
105
|
s as serializeBridgeRuntimeConfig,
|
|
95
106
|
s2 as stripHtml,
|
|
96
107
|
A2 as uploadFile,
|
|
97
108
|
u2 as useAgentChat,
|
|
98
109
|
a2 as useAgentChatSessions,
|
|
99
|
-
b2 as useAuditLog,
|
|
100
110
|
u3 as useAutomationAgent,
|
|
101
|
-
|
|
111
|
+
b2 as useAutomationRun,
|
|
102
112
|
u as useDataSyncTransport,
|
|
103
113
|
a3 as useFileUpload,
|
|
104
114
|
b3 as useLumeraUser,
|
|
105
|
-
|
|
115
|
+
c2 as usePbSql,
|
|
106
116
|
d2 as usePbUpdate,
|
|
107
|
-
e2 as
|
|
117
|
+
e2 as useRecordAuditLog,
|
|
118
|
+
f2 as useRecordAuditLogSnapshot,
|
|
119
|
+
g2 as useSqlTable,
|
|
108
120
|
w as warmCollectionCache,
|
|
109
121
|
m as withDataSync
|
|
110
122
|
};
|
|
@@ -1,94 +1,88 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
1
|
+
export declare const RECORD_AUDIT_EXPORT_LIMIT = 10000;
|
|
2
|
+
export declare const RECORD_AUDIT_MAX_COLLECTIONS = 20;
|
|
3
|
+
export type RecordAuditEvent = 'created' | 'updated' | 'deleted';
|
|
4
|
+
export type RecordAuditStore = 'tenant';
|
|
5
|
+
export type RecordAuditActor = {
|
|
6
6
|
id?: string;
|
|
7
7
|
type: string;
|
|
8
8
|
type_label: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
email?: string;
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
12
|
+
export type RecordAuditSummarySegment = {
|
|
13
13
|
text: string;
|
|
14
14
|
emphasis: 'none' | 'strong';
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
16
|
+
export type RecordAuditField = {
|
|
17
17
|
label: string;
|
|
18
18
|
value: string;
|
|
19
19
|
secondary?: string;
|
|
20
|
-
secondaryLabel?: string;
|
|
21
20
|
mono?: boolean;
|
|
22
21
|
code?: boolean;
|
|
23
22
|
key?: string;
|
|
24
23
|
changed?: boolean;
|
|
25
24
|
json?: unknown;
|
|
26
25
|
};
|
|
27
|
-
export type
|
|
28
|
-
before:
|
|
29
|
-
after:
|
|
26
|
+
export type RecordAuditSnapshot = {
|
|
27
|
+
before: RecordAuditField[] | null;
|
|
28
|
+
after: RecordAuditField[] | null;
|
|
30
29
|
};
|
|
31
|
-
export type
|
|
30
|
+
export type RecordAuditEntry = {
|
|
32
31
|
id: string;
|
|
33
32
|
occurred_at: string;
|
|
34
|
-
domain:
|
|
35
|
-
event:
|
|
36
|
-
actor:
|
|
37
|
-
summary:
|
|
38
|
-
details:
|
|
33
|
+
domain: 'record';
|
|
34
|
+
event: RecordAuditEvent;
|
|
35
|
+
actor: RecordAuditActor;
|
|
36
|
+
summary: RecordAuditSummarySegment[];
|
|
37
|
+
details: RecordAuditField[];
|
|
39
38
|
has_snapshot: boolean;
|
|
40
|
-
store:
|
|
39
|
+
store: RecordAuditStore;
|
|
40
|
+
collection: string;
|
|
41
|
+
collection_id: string;
|
|
42
|
+
record_id: string;
|
|
43
|
+
record_label: string;
|
|
44
|
+
changed_fields: string[];
|
|
41
45
|
};
|
|
42
|
-
export type
|
|
46
|
+
export type RecordAuditPagination = {
|
|
43
47
|
limit: number;
|
|
44
48
|
has_more: boolean;
|
|
45
49
|
next_cursor?: string;
|
|
46
50
|
};
|
|
47
|
-
export type
|
|
51
|
+
export type RecordAuditCollectionStatus = {
|
|
52
|
+
requested_name: string;
|
|
48
53
|
name: string;
|
|
49
54
|
audit_enabled: boolean;
|
|
50
55
|
};
|
|
51
|
-
export type
|
|
52
|
-
audit_logs:
|
|
53
|
-
record_collections?:
|
|
54
|
-
pagination:
|
|
56
|
+
export type RecordAuditListResponse = {
|
|
57
|
+
audit_logs: RecordAuditEntry[];
|
|
58
|
+
record_collections?: RecordAuditCollectionStatus[];
|
|
59
|
+
pagination: RecordAuditPagination;
|
|
55
60
|
};
|
|
56
|
-
export type
|
|
61
|
+
export type RecordAuditSnapshotResponse = {
|
|
57
62
|
id: string;
|
|
58
|
-
snapshot:
|
|
63
|
+
snapshot: RecordAuditSnapshot | null;
|
|
59
64
|
};
|
|
60
|
-
export type
|
|
61
|
-
event?:
|
|
65
|
+
export type RecordAuditFilters = {
|
|
66
|
+
event?: RecordAuditEvent;
|
|
62
67
|
actor?: string;
|
|
63
68
|
since?: string;
|
|
64
69
|
until?: string;
|
|
65
70
|
};
|
|
66
|
-
export type
|
|
67
|
-
collections: string[];
|
|
68
|
-
};
|
|
69
|
-
export type ListRecordAuditLogParams = AuditLogFilters & {
|
|
71
|
+
export type ListRecordAuditLogParams = RecordAuditFilters & {
|
|
70
72
|
collections: readonly string[];
|
|
71
73
|
cursor?: string;
|
|
72
74
|
limit?: number;
|
|
73
75
|
};
|
|
74
|
-
export type
|
|
76
|
+
export type RecordAuditCsvResult = {
|
|
75
77
|
csv: string;
|
|
76
78
|
count: number;
|
|
77
79
|
truncated: boolean;
|
|
78
80
|
};
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
export declare const normalizeAuditLogPageSize: (value?: number) => number;
|
|
84
|
-
export declare const normalizeAuditLogExportLimit: (value?: number) => number;
|
|
85
|
-
export declare const auditLogActorLabel: (actor: AuditLogActor) => string;
|
|
81
|
+
export declare const normalizeRecordAuditPageSize: (value?: number) => number;
|
|
82
|
+
export declare const normalizeRecordAuditExportLimit: (value?: number) => number;
|
|
83
|
+
export declare const recordAuditActorLabel: (actor: RecordAuditActor) => string;
|
|
86
84
|
export declare function normalizeRecordAuditCollections(collections: readonly string[]): string[];
|
|
87
|
-
/**
|
|
88
|
-
export declare function normalizeAuditLogFilterState(collections: readonly string[], filters?: Partial<AuditLogFilterState>): AuditLogFilterState;
|
|
89
|
-
/** Build a request scoped to one or more user-defined collections. */
|
|
85
|
+
/** Build a request scoped to one or more project-local collection names. */
|
|
90
86
|
export declare function buildRecordAuditLogPath(params: ListRecordAuditLogParams): string;
|
|
91
|
-
export declare
|
|
92
|
-
export declare function auditLogSummaryWithCollectionLabel(entry: AuditLogEntry, collectionLabel: string): AuditLogSummarySegment[];
|
|
93
|
-
export declare function buildAuditLogCsv(entries: AuditLogEntry[], options?: AuditLogCsvOptions): string;
|
|
87
|
+
export declare function buildRecordAuditCsv(entries: RecordAuditEntry[]): string;
|
|
94
88
|
//# sourceMappingURL=audit-log-core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-log-core.d.ts","sourceRoot":"","sources":["../../src/lib/audit-log-core.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"audit-log-core.d.ts","sourceRoot":"","sources":["../../src/lib/audit-log-core.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAChD,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IACh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CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,kBAAkB,GAAG;IAC1D,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,cAAU,KAAG,MAA6D,CAAC;AAExH,eAAO,MAAM,+BAA+B,GAAI,cAAiC,KAAG,MACc,CAAC;AAOnG,eAAO,MAAM,qBAAqB,GAAI,OAAO,gBAAgB,KAAG,MAI/C,CAAC;AAElB,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAUxF;AAED,4EAA4E;AAC5E,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM,CAqBhF;AAMD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAoCvE"}
|
package/dist/lib/audit-log.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export declare function listRecordAuditLog(params: ListRecordAuditLogParams): Promise<
|
|
4
|
-
export declare function getRecordAuditLogSnapshot(id: string, store
|
|
1
|
+
import { ListRecordAuditLogParams, RecordAuditCsvResult, RecordAuditListResponse, RecordAuditSnapshotResponse, RecordAuditStore } from './audit-log-core';
|
|
2
|
+
export { buildRecordAuditCsv, buildRecordAuditLogPath, type ListRecordAuditLogParams, normalizeRecordAuditCollections, normalizeRecordAuditExportLimit, normalizeRecordAuditPageSize, RECORD_AUDIT_EXPORT_LIMIT, RECORD_AUDIT_MAX_COLLECTIONS, type RecordAuditActor, type RecordAuditCollectionStatus, type RecordAuditCsvResult, type RecordAuditEntry, type RecordAuditEvent, type RecordAuditField, type RecordAuditFilters, type RecordAuditListResponse, type RecordAuditPagination, type RecordAuditSnapshot, type RecordAuditSnapshotResponse, type RecordAuditStore, type RecordAuditSummarySegment, recordAuditActorLabel, } from './audit-log-core';
|
|
3
|
+
export declare function listRecordAuditLog(params: ListRecordAuditLogParams): Promise<RecordAuditListResponse>;
|
|
4
|
+
export declare function getRecordAuditLogSnapshot(id: string, store?: RecordAuditStore): Promise<RecordAuditSnapshotResponse>;
|
|
5
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
|
|
6
|
+
export declare function fetchRecordAuditLogCsv(params: Omit<ListRecordAuditLogParams, 'cursor' | 'limit'>, maxRows?: number): Promise<RecordAuditCsvResult>;
|
|
7
7
|
//# sourceMappingURL=audit-log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../src/lib/audit-log.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../src/lib/audit-log.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,wBAAwB,EAG7B,KAAK,oBAAoB,EAEzB,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,wBAAwB,EAC7B,+BAA+B,EAC/B,+BAA+B,EAC/B,4BAA4B,EAC5B,yBAAyB,EACzB,4BAA4B,EAC5B,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAE1B,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAE3G;AAED,wBAAsB,yBAAyB,CAC7C,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,gBAA2B,GACjC,OAAO,CAAC,2BAA2B,CAAC,CAStC;AAED,uFAAuF;AACvF,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,GAAG,OAAO,CAAC,EAC1D,OAAO,SAA4B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CA2B/B"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export { type Automation, type AutomationRun, type AutomationRunFile, type Autom
|
|
|
9
9
|
export { type ColumnType, type FileDescriptor as FormatterFileDescriptor, type FormatOptions, formatBoolean, formatCellValue, formatCurrency, formatDate, formatDateTime, formatEditor, formatFile, formatFileSize, formatJson, formatNumber, formatPercent, formatRelation, formatSelect, formatText, stripHtml, } from './formatters';
|
|
10
10
|
export { queryClient } from './query-client';
|
|
11
11
|
export { cn } from './utils';
|
|
12
|
+
export { buildRecordAuditCsv, buildRecordAuditLogPath, fetchRecordAuditLogCsv, getRecordAuditLogSnapshot, type ListRecordAuditLogParams, listRecordAuditLog, normalizeRecordAuditCollections, normalizeRecordAuditExportLimit, normalizeRecordAuditPageSize, RECORD_AUDIT_EXPORT_LIMIT, RECORD_AUDIT_MAX_COLLECTIONS, type RecordAuditActor, type RecordAuditCollectionStatus, type RecordAuditCsvResult, type RecordAuditEntry, type RecordAuditEvent, type RecordAuditField, type RecordAuditFilters, type RecordAuditListResponse, type RecordAuditPagination, type RecordAuditSnapshot, type RecordAuditSnapshotResponse, type RecordAuditStore, type RecordAuditSummarySegment, recordAuditActorLabel, } from './audit-log';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,oBAAoB,EAEpB,eAAe,EAEf,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAElB,KAAK,WAAW,EAChB,UAAU,EACV,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAMlB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,cAAc,EAEd,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EAEnB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,YAAY,EAEZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EAER,KAAK,EACL,MAAM,EACN,QAAQ,EAER,KAAK,EACL,QAAQ,EAER,cAAc,EACd,QAAQ,EAER,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,UAAU,GACX,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,mBAAmB,EACnB,SAAS,EAET,oBAAoB,EAEpB,mBAAmB,EAEnB,SAAS,EACT,mBAAmB,EACnB,SAAS,EAET,yBAAyB,EACzB,gBAAgB,EAChB,+BAA+B,EAC/B,MAAM,EAEN,WAAW,EACX,aAAa,EACb,cAAc,EAEd,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,sBAAsB,EACtB,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,KAAK,WAAW,EAChB,iBAAiB,EACjB,OAAO,GACR,MAAM,eAAe,CAAC;AAMvB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,IAAI,uBAAuB,EAC9C,KAAK,aAAa,EAClB,aAAa,EACb,eAAe,EACf,cAAc,EACd,UAAU,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,GACV,MAAM,cAAc,CAAC;AAMtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAM7C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,oBAAoB,EAEpB,eAAe,EAEf,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAElB,KAAK,WAAW,EAChB,UAAU,EACV,MAAM,EACN,a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