@lumerahq/ui 0.18.0 → 0.19.1
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 +13 -4
- package/dist/{RecordSheet-BF55bW_k.js → RecordSheet-C8SZKCr8.js} +4 -4
- package/dist/{audit-log-DvTR_z7A.js → audit-log-DB8dfLNH.js} +23 -3
- package/dist/{automations-BuMtkzex.js → automations-CPIGfiMV.js} +13 -1
- package/dist/components/index.js +1 -1
- package/dist/{highlighted-body-OFNGDK62-yETAQJre.js → highlighted-body-OFNGDK62-sBuxehTp.js} +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/use-automation-run.d.ts +1 -1
- package/dist/hooks/use-record-audit-log.d.ts +4 -0
- package/dist/hooks/use-record-audit-log.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/lib/audit-log-core.d.ts +15 -0
- package/dist/lib/audit-log-core.d.ts.map +1 -1
- package/dist/lib/audit-log.d.ts +1 -1
- package/dist/lib/audit-log.d.ts.map +1 -1
- package/dist/lib/automations.d.ts +7 -3
- package/dist/lib/automations.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -2
- package/dist/mermaid-GHXKKRXX-D0WLTgcA.js +4 -0
- package/dist/{use-automation-run-COk2p505.js → use-automation-run-D0N4cCUe.js} +1 -1
- package/dist/{use-sql-table-C5bU2-ES.js → use-sql-table-BntxVZ3o.js} +16 -3
- package/package.json +1 -1
- package/dist/mermaid-GHXKKRXX-eGeRIfx3.js +0 -4
package/README.md
CHANGED
|
@@ -61,6 +61,7 @@ import { useRecordAuditLog, useRecordAuditLogSnapshot } from '@lumerahq/ui/hooks
|
|
|
61
61
|
|
|
62
62
|
const audit = useRecordAuditLog({
|
|
63
63
|
collections: ['invoices', 'payments'],
|
|
64
|
+
recordId: selectedInvoiceId,
|
|
64
65
|
event: 'updated',
|
|
65
66
|
});
|
|
66
67
|
|
|
@@ -73,16 +74,24 @@ const snapshot = useRecordAuditLogSnapshot({
|
|
|
73
74
|
|
|
74
75
|
The hook returns entries, current per-collection audit status, loading/error
|
|
75
76
|
state, refresh, and cursor-based load-more state. Entries include stable
|
|
76
|
-
collection and record identity fields
|
|
77
|
+
collection and record identity fields plus event-scoped execution provenance
|
|
78
|
+
(`agent_id`, `session_id`, `request_id`, run and causation ids) for links and
|
|
79
|
+
custom rendering. The same `recordId`, `agentId`, `sessionId`, and `causationId`
|
|
80
|
+
filters apply to every page and CSV export. Public
|
|
77
81
|
helpers under `@lumerahq/ui/lib` support direct list/snapshot requests and a
|
|
78
82
|
capped CSV export. A disabled collection can still have visible history; its
|
|
79
83
|
status means only that future changes are not being captured.
|
|
80
84
|
|
|
81
85
|
`changed_fields` describes update events only. For created and deleted records,
|
|
82
86
|
show the action itself and use the after or before snapshot for expanded detail.
|
|
83
|
-
The actor identifies the
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
The actor identifies the human or service that initiated the work. The separate
|
|
88
|
+
execution object identifies what performed this exact mutation, so a delegated
|
|
89
|
+
agent write can retain both the human actor and the agent session that executed it.
|
|
90
|
+
When a hook performs the mutation, `execution.type` and `execution.id` identify
|
|
91
|
+
the hook while `agent_id` and `session_id` retain the upstream agent session, when
|
|
92
|
+
present, and `run_id` retains an upstream automation or function run. Agent and
|
|
93
|
+
session filters include these hook events. Webhook and anonymous app writes keep
|
|
94
|
+
their distinct execution types instead of being reported as system work.
|
|
86
95
|
|
|
87
96
|
### Assistant Chat
|
|
88
97
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useContext, createContext, forwardRef, createElement, memo, useId as useId$1, useTransition, useMemo, useRef, useEffect, useState, cloneElement, isValidElement, useCallback, Suspense, lazy, Fragment as Fragment$1, useLayoutEffect } from "react";
|
|
4
|
-
import { u as useAgentChat, a as useAgentChatSessions, b as useAutomationRun } from "./use-automation-run-
|
|
4
|
+
import { u as useAgentChat, a as useAgentChatSessions, b as useAutomationRun } from "./use-automation-run-D0N4cCUe.js";
|
|
5
5
|
import { t as twMerge, p as clsx, o as cn$2, a as formatCellValue$2 } from "./formatters-D4T821Dv.js";
|
|
6
|
-
import { v as pbSql, f as getDownloadUrl, p as parentApiRequest, d as parentApiStream, B as BridgeError, C as automationStatuses, N as getAutomationRunFileDownloadUrl, T as listAutomationRunFiles } from "./automations-
|
|
6
|
+
import { v as pbSql, f as getDownloadUrl, p as parentApiRequest, d as parentApiStream, B as BridgeError, C as automationStatuses, N as getAutomationRunFileDownloadUrl, T as listAutomationRunFiles } from "./automations-CPIGfiMV.js";
|
|
7
7
|
import * as ReactDOM from "react-dom";
|
|
8
8
|
import { createPortal } from "react-dom";
|
|
9
9
|
const mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
@@ -24010,7 +24010,7 @@ var lr = (e) => {
|
|
|
24010
24010
|
for (; t > 0 && e[t - 1] === `
|
|
24011
24011
|
`; ) t--;
|
|
24012
24012
|
return e.slice(0, t);
|
|
24013
|
-
}, cr = lazy(() => import("./highlighted-body-OFNGDK62-
|
|
24013
|
+
}, cr = lazy(() => import("./highlighted-body-OFNGDK62-sBuxehTp.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), st = ({ code: e, language: t, className: o, children: n, isIncomplete: r = false, startLine: s2, lineNumbers: a, ...l }) => {
|
|
24014
24014
|
let i = y2(), d2 = useMemo(() => lr(e), [e]), c2 = useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d2.split(`
|
|
24015
24015
|
`).map((p2) => [{ content: p2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d2]);
|
|
24016
24016
|
return jsx(nt.Provider, { value: { code: e }, children: jsxs(ot, { isIncomplete: r, language: t, children: [jsx(rt, { language: t }), n ? jsx("div", { className: i("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"), children: jsx("div", { className: i("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: n }) }) : null, jsx(Suspense, { fallback: jsx(At, { className: o, language: t, lineNumbers: a, result: c2, startLine: s2, ...l }), children: jsx(cr, { className: o, code: d2, language: t, lineNumbers: a, raw: c2, startLine: s2, ...l }) })] }) });
|
|
@@ -24372,7 +24372,7 @@ var vo = ({ children: e, className: t, showControls: o, showCopy: n = true, show
|
|
|
24372
24372
|
let l = y2(), i = o && n, d2 = o && r, c2 = o && s2, p2 = i || d2 || c2;
|
|
24373
24373
|
return jsxs("div", { className: l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [p2 ? jsxs("div", { className: l("flex items-center justify-end gap-1"), children: [i ? jsx(Te, {}) : null, d2 ? jsx(Pe, {}) : null, c2 ? jsx(Co, { showCopy: i, showDownload: d2, children: e }) : null] }) : null, jsx("div", { className: l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), children: jsx("table", { className: l("w-full divide-y divide-border", t), "data-streamdown": "table", ...a, children: e }) })] });
|
|
24374
24374
|
};
|
|
24375
|
-
var es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX-
|
|
24375
|
+
var es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX-D0WLTgcA.js").then((e) => ({ default: e.Mermaid }))), ns = /language-([^\s]+)/;
|
|
24376
24376
|
function qe(e, t) {
|
|
24377
24377
|
if (!(e != null && e.position || t != null && t.position)) return true;
|
|
24378
24378
|
if (!(e != null && e.position && (t != null && t.position))) return false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as requestApi } from "./automations-
|
|
1
|
+
import { Z as requestApi } from "./automations-CPIGfiMV.js";
|
|
2
2
|
const RECORD_AUDIT_EXPORT_LIMIT = 1e4;
|
|
3
3
|
const RECORD_AUDIT_MAX_COLLECTIONS = 20;
|
|
4
4
|
const normalizeRecordAuditPageSize = (value = 50) => Math.min(200, Math.max(1, Math.trunc(value) || 50));
|
|
@@ -35,6 +35,10 @@ function buildRecordAuditLogPath(params) {
|
|
|
35
35
|
if (params.cursor?.trim()) query.set("cursor", params.cursor.trim());
|
|
36
36
|
if (params.event) query.set("event", params.event);
|
|
37
37
|
if (params.actor?.trim()) query.set("actor", params.actor.trim());
|
|
38
|
+
if (params.recordId?.trim()) query.set("record_id", params.recordId.trim());
|
|
39
|
+
if (params.agentId?.trim()) query.set("agent_id", params.agentId.trim());
|
|
40
|
+
if (params.sessionId?.trim()) query.set("session_id", params.sessionId.trim());
|
|
41
|
+
if (params.causationId?.trim()) query.set("causation_id", params.causationId.trim());
|
|
38
42
|
if (params.since?.trim()) query.set("since", params.since.trim());
|
|
39
43
|
if (params.until?.trim()) query.set("until", params.until.trim());
|
|
40
44
|
return `/audit-log?${query.toString()}`;
|
|
@@ -55,7 +59,15 @@ function buildRecordAuditCsv(entries) {
|
|
|
55
59
|
entry.record_id,
|
|
56
60
|
entry.record_label,
|
|
57
61
|
entry.changed_fields.join(", "),
|
|
58
|
-
summaryText(entry)
|
|
62
|
+
summaryText(entry),
|
|
63
|
+
entry.execution?.type || "",
|
|
64
|
+
entry.execution?.id || "",
|
|
65
|
+
entry.execution?.agent_id || "",
|
|
66
|
+
entry.execution?.session_id || "",
|
|
67
|
+
entry.execution?.request_id || "",
|
|
68
|
+
entry.execution?.run_id || "",
|
|
69
|
+
entry.execution?.causation_id || "",
|
|
70
|
+
entry.execution?.parent_causation_id || ""
|
|
59
71
|
].map(csvCell).join(",")
|
|
60
72
|
);
|
|
61
73
|
return [
|
|
@@ -70,7 +82,15 @@ function buildRecordAuditCsv(entries) {
|
|
|
70
82
|
"record_id",
|
|
71
83
|
"record_label",
|
|
72
84
|
"changed_fields",
|
|
73
|
-
"summary"
|
|
85
|
+
"summary",
|
|
86
|
+
"execution_type",
|
|
87
|
+
"execution_id",
|
|
88
|
+
"agent_id",
|
|
89
|
+
"session_id",
|
|
90
|
+
"request_id",
|
|
91
|
+
"run_id",
|
|
92
|
+
"causation_id",
|
|
93
|
+
"parent_causation_id"
|
|
74
94
|
].map(csvCell).join(","),
|
|
75
95
|
...rows
|
|
76
96
|
].join("\n");
|
|
@@ -1195,8 +1195,19 @@ async function pbUpdateRecord(collectionId, recordId, data) {
|
|
|
1195
1195
|
return pbUpdate(collectionId, recordId, data);
|
|
1196
1196
|
}
|
|
1197
1197
|
const API_PREFIX = "/api";
|
|
1198
|
+
const ALL_STATUSES = [
|
|
1199
|
+
"preparing",
|
|
1200
|
+
"queued",
|
|
1201
|
+
"claimed",
|
|
1202
|
+
"running",
|
|
1203
|
+
"cancelling",
|
|
1204
|
+
"succeeded",
|
|
1205
|
+
"failed",
|
|
1206
|
+
"cancelled",
|
|
1207
|
+
"timeout"
|
|
1208
|
+
];
|
|
1198
1209
|
const TERMINAL_STATUSES = ["succeeded", "failed", "cancelled", "timeout"];
|
|
1199
|
-
const ACTIVE_STATUSES = ["preparing", "queued", "running", "cancelling"];
|
|
1210
|
+
const ACTIVE_STATUSES = ["preparing", "queued", "claimed", "running", "cancelling"];
|
|
1200
1211
|
const isTerminalStatus = (status) => TERMINAL_STATUSES.includes(status);
|
|
1201
1212
|
const isActiveStatus = (status) => ACTIVE_STATUSES.includes(status);
|
|
1202
1213
|
const automationIdCache = /* @__PURE__ */ new Map();
|
|
@@ -1380,6 +1391,7 @@ async function getRunFileUrl(runId, filename) {
|
|
|
1380
1391
|
return response.download_url;
|
|
1381
1392
|
}
|
|
1382
1393
|
const automationStatuses = {
|
|
1394
|
+
ALL_STATUSES,
|
|
1383
1395
|
TERMINAL_STATUSES,
|
|
1384
1396
|
ACTIVE_STATUSES,
|
|
1385
1397
|
isTerminal: isTerminalStatus,
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, b, c, r, t, v, B, C, D, E, F, R, T, q, d, e, f, g, h, i, j, k, l, m, n, x, o, p, s, y, u, w, z } from "../RecordSheet-
|
|
1
|
+
import { A, a, b, c, r, t, v, B, C, D, E, F, R, T, q, d, e, f, g, h, i, j, k, l, m, n, x, o, p, s, y, u, w, z } from "../RecordSheet-C8SZKCr8.js";
|
|
2
2
|
export {
|
|
3
3
|
A as ActivityStrip,
|
|
4
4
|
a as AgentChat,
|
package/dist/{highlighted-body-OFNGDK62-yETAQJre.js → highlighted-body-OFNGDK62-sBuxehTp.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as R$1, L as Li, I as At } from "./RecordSheet-
|
|
1
|
+
import { H as R$1, L as Li, I as At } from "./RecordSheet-C8SZKCr8.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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u, a, b } from "../use-automation-run-
|
|
2
|
-
import { u as u2, a as a2, b as b2, c, d, e, f, g } from "../use-sql-table-
|
|
1
|
+
import { u, a, b } from "../use-automation-run-D0N4cCUe.js";
|
|
2
|
+
import { u as u2, a as a2, b as b2, c, d, e, f, g } from "../use-sql-table-BntxVZ3o.js";
|
|
3
3
|
export {
|
|
4
4
|
u as useAgentChat,
|
|
5
5
|
a as useAgentChatSessions,
|
|
@@ -27,7 +27,7 @@ type UseAutomationRunState = {
|
|
|
27
27
|
/**
|
|
28
28
|
* The current status of the run.
|
|
29
29
|
* - 'idle': Not started.
|
|
30
|
-
* - '
|
|
30
|
+
* - 'preparing'/'queued'/'claimed'/'running'/'cancelling': Active.
|
|
31
31
|
* - 'succeeded'/'failed'/'cancelled'/'timeout': Terminal.
|
|
32
32
|
*/
|
|
33
33
|
status: AutomationRun['status'] | 'idle';
|
|
@@ -3,6 +3,10 @@ export type UseRecordAuditLogParams = {
|
|
|
3
3
|
collections: readonly string[];
|
|
4
4
|
event?: RecordAuditEvent;
|
|
5
5
|
actor?: string;
|
|
6
|
+
recordId?: string;
|
|
7
|
+
agentId?: string;
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
causationId?: string;
|
|
6
10
|
since?: string;
|
|
7
11
|
until?: string;
|
|
8
12
|
pageSize?: number;
|
|
@@ -1 +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,
|
|
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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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,CA4D1F"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A, a, b, c, r, t, v, B, C, D, E, F, R, T, q, d, e, f, g, h, i, j, k, l, m, n, x, o, p, s, y, u, w, z } from "./RecordSheet-
|
|
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 c2, d as d2, e as e2, f as f2, g as g2 } from "./use-sql-table-
|
|
4
|
-
import { B as B2, E as E2, C as C2, b as b4, D as D2, F as F2, 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 as t2, u as u4, v as v2, w as w2, x as x2, y as y2, X, Y, e as e3, r as r2, z as z2, s as s2, A as A2 } from "./automations-
|
|
1
|
+
import { A, a, b, c, r, t, v, B, C, D, E, F, R, T, q, d, e, f, g, h, i, j, k, l, m, n, x, o, p, s, y, u, w, z } from "./RecordSheet-C8SZKCr8.js";
|
|
2
|
+
import { u as u2, a as a2, b as b2 } from "./use-automation-run-D0N4cCUe.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-BntxVZ3o.js";
|
|
4
|
+
import { B as B2, E as E2, C as C2, b as b4, D as D2, F as F2, 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 as t2, u as u4, v as v2, w as w2, x as x2, y as y2, X, Y, e as e3, r as r2, z as z2, s as s2, A as A2 } from "./automations-CPIGfiMV.js";
|
|
5
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 s3 } 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 r3 } from "./audit-log-
|
|
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 r3 } from "./audit-log-DB8dfLNH.js";
|
|
8
8
|
export {
|
|
9
9
|
A as ActivityStrip,
|
|
10
10
|
a as AgentChat,
|
|
@@ -9,6 +9,16 @@ export type RecordAuditActor = {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
email?: string;
|
|
11
11
|
};
|
|
12
|
+
export type RecordAuditExecution = {
|
|
13
|
+
type: 'user' | 'agent' | 'automation' | 'function' | 'hook' | 'webhook' | 'anonymous' | 'system';
|
|
14
|
+
id?: string;
|
|
15
|
+
agent_id?: string;
|
|
16
|
+
session_id?: string;
|
|
17
|
+
request_id?: string;
|
|
18
|
+
run_id?: string;
|
|
19
|
+
causation_id?: string;
|
|
20
|
+
parent_causation_id?: string;
|
|
21
|
+
};
|
|
12
22
|
export type RecordAuditSummarySegment = {
|
|
13
23
|
text: string;
|
|
14
24
|
emphasis: 'none' | 'strong';
|
|
@@ -33,6 +43,7 @@ export type RecordAuditEntry = {
|
|
|
33
43
|
domain: 'record';
|
|
34
44
|
event: RecordAuditEvent;
|
|
35
45
|
actor: RecordAuditActor;
|
|
46
|
+
execution?: RecordAuditExecution;
|
|
36
47
|
summary: RecordAuditSummarySegment[];
|
|
37
48
|
details: RecordAuditField[];
|
|
38
49
|
has_snapshot: boolean;
|
|
@@ -65,6 +76,10 @@ export type RecordAuditSnapshotResponse = {
|
|
|
65
76
|
export type RecordAuditFilters = {
|
|
66
77
|
event?: RecordAuditEvent;
|
|
67
78
|
actor?: string;
|
|
79
|
+
recordId?: string;
|
|
80
|
+
agentId?: string;
|
|
81
|
+
sessionId?: string;
|
|
82
|
+
causationId?: string;
|
|
68
83
|
since?: string;
|
|
69
84
|
until?: string;
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AM,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,CAyBhF;AAMD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAoDvE"}
|
package/dist/lib/audit-log.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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';
|
|
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 RecordAuditExecution, type RecordAuditField, type RecordAuditFilters, type RecordAuditListResponse, type RecordAuditPagination, type RecordAuditSnapshot, type RecordAuditSnapshotResponse, type RecordAuditStore, type RecordAuditSummarySegment, recordAuditActorLabel, } from './audit-log-core';
|
|
3
3
|
export declare function listRecordAuditLog(params: ListRecordAuditLogParams): Promise<RecordAuditListResponse>;
|
|
4
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. */
|
|
@@ -1 +1 @@
|
|
|
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,CAC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AAE,QAAQ,GAAG,OAAO,CAAC,EAC1D,OAAO,SAA4B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CA2B/B"}
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module automations
|
|
8
8
|
*/
|
|
9
|
+
/** Complete automation run status contract, including observable transitions. */
|
|
10
|
+
declare const ALL_STATUSES: readonly ["preparing", "queued", "claimed", "running", "cancelling", "succeeded", "failed", "cancelled", "timeout"];
|
|
9
11
|
/** Automation run status */
|
|
10
|
-
export type AutomationStatus =
|
|
12
|
+
export type AutomationStatus = (typeof ALL_STATUSES)[number];
|
|
11
13
|
/**
|
|
12
14
|
* Check if a status is terminal (run is complete).
|
|
13
15
|
*/
|
|
@@ -230,8 +232,9 @@ export declare function getRunFiles(runId: string): Promise<AutomationRunFile[]>
|
|
|
230
232
|
export declare function getRunFileUrl(runId: string, filename: string): Promise<string>;
|
|
231
233
|
/** Status helper functions and constants */
|
|
232
234
|
export declare const automationStatuses: {
|
|
233
|
-
readonly
|
|
234
|
-
readonly
|
|
235
|
+
readonly ALL_STATUSES: readonly ["preparing", "queued", "claimed", "running", "cancelling", "succeeded", "failed", "cancelled", "timeout"];
|
|
236
|
+
readonly TERMINAL_STATUSES: ("queued" | "claimed" | "preparing" | "running" | "failed" | "succeeded" | "cancelling" | "cancelled" | "timeout")[];
|
|
237
|
+
readonly ACTIVE_STATUSES: ("queued" | "claimed" | "preparing" | "running" | "failed" | "succeeded" | "cancelling" | "cancelled" | "timeout")[];
|
|
235
238
|
readonly isTerminal: (status: AutomationStatus) => boolean;
|
|
236
239
|
readonly isActive: (status: AutomationStatus) => boolean;
|
|
237
240
|
};
|
|
@@ -271,4 +274,5 @@ export declare function listRunsByExternalId(params: {
|
|
|
271
274
|
agentId?: string;
|
|
272
275
|
limit?: number;
|
|
273
276
|
}): Promise<AutomationRun[]>;
|
|
277
|
+
export {};
|
|
274
278
|
//# sourceMappingURL=automations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/lib/automations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,
|
|
1
|
+
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/lib/automations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,iFAAiF;AACjF,QAAA,MAAM,YAAY,qHAUR,CAAC;AAEX,4BAA4B;AAC5B,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAQ7D;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,gBAAgB,KAAG,OAA6C,CAAC;AAE1G;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,gBAAgB,KAAG,OAA2C,CAAC;AAEtG,4BAA4B;AAC5B,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,qBAAqB;AACrB,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,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,wBAAsB,oBAAoB,CAAC,MAAM,EAAE;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAM3B"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -9,5 +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
|
+
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 RecordAuditExecution, type RecordAuditField, type RecordAuditFilters, type RecordAuditListResponse, type RecordAuditPagination, type RecordAuditSnapshot, type RecordAuditSnapshotResponse, type RecordAuditStore, type RecordAuditSummarySegment, recordAuditActorLabel, } from './audit-log';
|
|
13
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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AK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,qBAAqB,GACtB,MAAM,aAAa,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,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,oBAAo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@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B, E, C, b, D, F, G, c, H, I, J, K, g, L, M, N, f, O, Q, P, a, h, R, i, S, T, U, V, W, l, o, p, d, j, k, m, n, q, t, u, v, w, x, y, X, Y, e, r, z, s, A } from "../automations-
|
|
1
|
+
import { B, E, C, b, D, F, G, c, H, I, J, K, g, L, M, N, f, O, Q, P, a, h, R, i, S, T, U, V, W, l, o, p, d, j, k, m, n, q, t, u, v, w, x, y, X, Y, e, r, z, s, A } from "../automations-CPIGfiMV.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
|
-
import { R as R2, e as e3, b as b3, a as a3, f as f3, g as g3, l as l3, n as n3, c as c3, d as d3, r as r2 } from "../audit-log-
|
|
4
|
+
import { R as R2, e as e3, b as b3, a as a3, f as f3, g as g3, l as l3, n as n3, c as c3, d as d3, r as r2 } from "../audit-log-DB8dfLNH.js";
|
|
5
5
|
export {
|
|
6
6
|
B as BridgeError,
|
|
7
7
|
E as EXPECTED_PARENT_ORIGIN,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState, useRef, useCallback, useMemo } from "react";
|
|
2
2
|
import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
|
|
3
|
-
import { J as ensureAutomationRun, H as createAutomationRun, D as cancelAutomationRun, C as automationStatuses, M as getAutomationRun } from "./automations-
|
|
3
|
+
import { J as ensureAutomationRun, H as createAutomationRun, D as cancelAutomationRun, C as automationStatuses, M as getAutomationRun } from "./automations-CPIGfiMV.js";
|
|
4
4
|
const QUEUED_DISCOVERY_POLL_MS = 2e3;
|
|
5
5
|
const IDLE_DISCOVERY_POLL_MS = 1e4;
|
|
6
6
|
const HIDDEN_DISCOVERY_POLL_MS = 3e4;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useQueryClient, useQuery, useMutation, useInfiniteQuery } from "@tanstack/react-query";
|
|
2
2
|
import { useState, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { V as listRunsByAgent, C as automationStatuses, H as createAutomationRun, A as uploadFile, o as onInitMessage, v as pbSql, x as pbUpdateRecord } from "./automations-
|
|
4
|
-
import { n as normalizeRecordAuditCollections, d as normalizeRecordAuditPageSize, l as listRecordAuditLog, g as getRecordAuditLogSnapshot } from "./audit-log-
|
|
3
|
+
import { V as listRunsByAgent, C as automationStatuses, H as createAutomationRun, A as uploadFile, o as onInitMessage, v as pbSql, x as pbUpdateRecord } from "./automations-CPIGfiMV.js";
|
|
4
|
+
import { n as normalizeRecordAuditCollections, d as normalizeRecordAuditPageSize, l as listRecordAuditLog, g as getRecordAuditLogSnapshot } from "./audit-log-DB8dfLNH.js";
|
|
5
5
|
function useAutomationAgent({
|
|
6
6
|
agentId,
|
|
7
7
|
limit = 5,
|
|
@@ -159,10 +159,23 @@ function useRecordAuditLog(params) {
|
|
|
159
159
|
() => ({
|
|
160
160
|
event: params.event,
|
|
161
161
|
actor: params.actor?.trim() || void 0,
|
|
162
|
+
recordId: params.recordId?.trim() || void 0,
|
|
163
|
+
agentId: params.agentId?.trim() || void 0,
|
|
164
|
+
sessionId: params.sessionId?.trim() || void 0,
|
|
165
|
+
causationId: params.causationId?.trim() || void 0,
|
|
162
166
|
since: params.since?.trim() || void 0,
|
|
163
167
|
until: params.until?.trim() || void 0
|
|
164
168
|
}),
|
|
165
|
-
[
|
|
169
|
+
[
|
|
170
|
+
params.actor,
|
|
171
|
+
params.event,
|
|
172
|
+
params.recordId,
|
|
173
|
+
params.agentId,
|
|
174
|
+
params.sessionId,
|
|
175
|
+
params.causationId,
|
|
176
|
+
params.since,
|
|
177
|
+
params.until
|
|
178
|
+
]
|
|
166
179
|
);
|
|
167
180
|
const query = useInfiniteQuery({
|
|
168
181
|
queryKey: ["record-audit-log", normalizedCollections, filters, pageSize],
|
package/package.json
CHANGED