@datatechsolutions/ui 3.7.2 → 3.7.4
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/astrlabe/index.js +108 -108
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-34XRH2FX.mjs → chunk-4HP7XS5I.mjs} +4 -4
- package/dist/{chunk-34XRH2FX.mjs.map → chunk-4HP7XS5I.mjs.map} +1 -1
- package/dist/{chunk-JGK2VFCX.js → chunk-7WIWDSF6.js} +36 -36
- package/dist/{chunk-JGK2VFCX.js.map → chunk-7WIWDSF6.js.map} +1 -1
- package/dist/{chunk-UDYEUTJC.js → chunk-BEUPW5WS.js} +28 -28
- package/dist/{chunk-UDYEUTJC.js.map → chunk-BEUPW5WS.js.map} +1 -1
- package/dist/{chunk-CYAAL3BY.mjs → chunk-CTCO2YI5.mjs} +3 -3
- package/dist/{chunk-CYAAL3BY.mjs.map → chunk-CTCO2YI5.mjs.map} +1 -1
- package/dist/{chunk-NVQVZ4U4.mjs → chunk-DCBRGVD3.mjs} +3 -3
- package/dist/{chunk-NVQVZ4U4.mjs.map → chunk-DCBRGVD3.mjs.map} +1 -1
- package/dist/{chunk-CVZXZK2X.js → chunk-DWIBK7GV.js} +25 -25
- package/dist/{chunk-CVZXZK2X.js.map → chunk-DWIBK7GV.js.map} +1 -1
- package/dist/{chunk-C4AJWDFB.mjs → chunk-EIZM2EQA.mjs} +4 -4
- package/dist/{chunk-C4AJWDFB.mjs.map → chunk-EIZM2EQA.mjs.map} +1 -1
- package/dist/{chunk-BBLBSDPN.js → chunk-FIB2CFJK.js} +11 -9
- package/dist/chunk-FIB2CFJK.js.map +1 -0
- package/dist/{chunk-2OPBUVTQ.mjs → chunk-GAN7AKZ2.mjs} +3 -3
- package/dist/{chunk-2OPBUVTQ.mjs.map → chunk-GAN7AKZ2.mjs.map} +1 -1
- package/dist/{chunk-R4EKPXX3.js → chunk-GD6FHRHV.js} +6 -3
- package/dist/chunk-GD6FHRHV.js.map +1 -0
- package/dist/{chunk-DXLATMGD.mjs → chunk-IKH5IRDK.mjs} +3 -3
- package/dist/{chunk-DXLATMGD.mjs.map → chunk-IKH5IRDK.mjs.map} +1 -1
- package/dist/{chunk-TJEZL72T.mjs → chunk-IKHWYYZC.mjs} +3 -3
- package/dist/{chunk-TJEZL72T.mjs.map → chunk-IKHWYYZC.mjs.map} +1 -1
- package/dist/{chunk-FUHNEP3Y.js → chunk-IYDGO7RW.js} +135 -135
- package/dist/{chunk-FUHNEP3Y.js.map → chunk-IYDGO7RW.js.map} +1 -1
- package/dist/{chunk-CBFK4W4C.mjs → chunk-JUDQX6MP.mjs} +5 -3
- package/dist/chunk-JUDQX6MP.mjs.map +1 -0
- package/dist/{chunk-3JZGRXSG.js → chunk-KI4UPW4Z.js} +4 -4
- package/dist/{chunk-3JZGRXSG.js.map → chunk-KI4UPW4Z.js.map} +1 -1
- package/dist/{chunk-JLECJI7S.js → chunk-MFAVWJWE.js} +10 -10
- package/dist/{chunk-JLECJI7S.js.map → chunk-MFAVWJWE.js.map} +1 -1
- package/dist/{chunk-4JRMXHPU.mjs → chunk-MGZTZELL.mjs} +3 -3
- package/dist/{chunk-4JRMXHPU.mjs.map → chunk-MGZTZELL.mjs.map} +1 -1
- package/dist/{chunk-37JQVQJS.mjs → chunk-MRLEINJN.mjs} +7 -7
- package/dist/{chunk-37JQVQJS.mjs.map → chunk-MRLEINJN.mjs.map} +1 -1
- package/dist/{chunk-VZIUQE7B.mjs → chunk-N5365CGD.mjs} +3 -3
- package/dist/{chunk-VZIUQE7B.mjs.map → chunk-N5365CGD.mjs.map} +1 -1
- package/dist/{chunk-NJ6HH4QP.mjs → chunk-P7GVXI7Y.mjs} +3 -3
- package/dist/{chunk-NJ6HH4QP.mjs.map → chunk-P7GVXI7Y.mjs.map} +1 -1
- package/dist/{chunk-RWYG7QHP.js → chunk-QL2JYRBN.js} +68 -68
- package/dist/{chunk-RWYG7QHP.js.map → chunk-QL2JYRBN.js.map} +1 -1
- package/dist/{chunk-7YK4WXHO.js → chunk-R2RPRRB4.js} +55 -55
- package/dist/{chunk-7YK4WXHO.js.map → chunk-R2RPRRB4.js.map} +1 -1
- package/dist/{chunk-QF6WL7XU.js → chunk-RBB5YGWH.js} +4 -4
- package/dist/{chunk-QF6WL7XU.js.map → chunk-RBB5YGWH.js.map} +1 -1
- package/dist/{chunk-VCAVH2VM.js → chunk-SUU7XPRX.js} +34 -34
- package/dist/{chunk-VCAVH2VM.js.map → chunk-SUU7XPRX.js.map} +1 -1
- package/dist/{chunk-RZ3NDH5S.js → chunk-VDO6MDQW.js} +13 -13
- package/dist/{chunk-RZ3NDH5S.js.map → chunk-VDO6MDQW.js.map} +1 -1
- package/dist/{chunk-VDLMWOQM.js → chunk-XT76DMP5.js} +35 -35
- package/dist/{chunk-VDLMWOQM.js.map → chunk-XT76DMP5.js.map} +1 -1
- package/dist/{chunk-ZYRL3WER.mjs → chunk-YNHQ36UU.mjs} +3 -3
- package/dist/{chunk-ZYRL3WER.mjs.map → chunk-YNHQ36UU.mjs.map} +1 -1
- package/dist/{chunk-5LCWQKGQ.mjs → chunk-Z3BMHKKH.mjs} +6 -3
- package/dist/chunk-Z3BMHKKH.mjs.map +1 -0
- package/dist/{chunk-JHN2OUWG.js → chunk-ZF7RJNPD.js} +45 -45
- package/dist/{chunk-JHN2OUWG.js.map → chunk-ZF7RJNPD.js.map} +1 -1
- package/dist/{chunk-YRXDETBK.mjs → chunk-ZWLMKOHZ.mjs} +6 -6
- package/dist/{chunk-YRXDETBK.mjs.map → chunk-ZWLMKOHZ.mjs.map} +1 -1
- package/dist/index.js +665 -665
- package/dist/index.mjs +2 -2
- package/dist/platform/admin/index.js +10 -10
- package/dist/platform/admin/index.mjs +4 -4
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.js +22 -22
- package/dist/platform/auth/index.mjs +4 -4
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.js +86 -86
- package/dist/platform/index.mjs +18 -18
- package/dist/platform/pages/index.js +416 -254
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +193 -31
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/settings/index.js +7 -7
- package/dist/platform/settings/index.mjs +6 -6
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/package.json +1 -1
- package/dist/astrlabe/contracts.d.mts +0 -517
- package/dist/astrlabe/contracts.d.ts +0 -517
- package/dist/astrlabe/graph-node.d.mts +0 -28
- package/dist/astrlabe/graph-node.d.ts +0 -28
- package/dist/astrlabe/index.d.mts +0 -743
- package/dist/astrlabe/index.d.ts +0 -743
- package/dist/astrlabe/utils.d.mts +0 -60
- package/dist/astrlabe/utils.d.ts +0 -60
- package/dist/astrlabe/workflow-canvas.d.mts +0 -6
- package/dist/astrlabe/workflow-canvas.d.ts +0 -6
- package/dist/astrlabe/workflow-preview-canvas.d.mts +0 -10
- package/dist/astrlabe/workflow-preview-canvas.d.ts +0 -10
- package/dist/billing-panel-DsHhhJqG.d.mts +0 -18
- package/dist/billing-panel-DsHhhJqG.d.ts +0 -18
- package/dist/brand/index.d.mts +0 -71
- package/dist/brand/index.d.ts +0 -71
- package/dist/chunk-5LCWQKGQ.mjs.map +0 -1
- package/dist/chunk-BBLBSDPN.js.map +0 -1
- package/dist/chunk-CBFK4W4C.mjs.map +0 -1
- package/dist/chunk-R4EKPXX3.js.map +0 -1
- package/dist/dynamic-island-confirm-BKsZkAEP.d.mts +0 -17
- package/dist/dynamic-island-confirm-BKsZkAEP.d.ts +0 -17
- package/dist/index-BNRGVAS5.d.mts +0 -222
- package/dist/index-BoebbJ44.d.mts +0 -49
- package/dist/index-BoebbJ44.d.ts +0 -49
- package/dist/index-CnCY-b5V.d.ts +0 -222
- package/dist/index.d.mts +0 -5310
- package/dist/index.d.ts +0 -5310
- package/dist/layout-engine-YZcVr20M.d.mts +0 -19
- package/dist/layout-engine-YZcVr20M.d.ts +0 -19
- package/dist/lib/i18n-context.d.mts +0 -36
- package/dist/lib/i18n-context.d.ts +0 -36
- package/dist/lib/router-context.d.mts +0 -35
- package/dist/lib/router-context.d.ts +0 -35
- package/dist/navigation-BiWVffAN.d.mts +0 -49
- package/dist/navigation-BiWVffAN.d.ts +0 -49
- package/dist/platform/admin/index.d.mts +0 -17
- package/dist/platform/admin/index.d.ts +0 -17
- package/dist/platform/agents-workspace.d.mts +0 -19
- package/dist/platform/agents-workspace.d.ts +0 -19
- package/dist/platform/app-shell.d.mts +0 -58
- package/dist/platform/app-shell.d.ts +0 -58
- package/dist/platform/auth/index.d.mts +0 -73
- package/dist/platform/auth/index.d.ts +0 -73
- package/dist/platform/billing/index.d.mts +0 -29
- package/dist/platform/billing/index.d.ts +0 -29
- package/dist/platform/impersonation/index.d.mts +0 -19
- package/dist/platform/impersonation/index.d.ts +0 -19
- package/dist/platform/index.d.mts +0 -188
- package/dist/platform/index.d.ts +0 -188
- package/dist/platform/pages/index.d.mts +0 -526
- package/dist/platform/pages/index.d.ts +0 -526
- package/dist/platform/rbac.d.mts +0 -42
- package/dist/platform/rbac.d.ts +0 -42
- package/dist/platform/settings/index.d.mts +0 -31
- package/dist/platform/settings/index.d.ts +0 -31
- package/dist/platform/telemetry/index.d.mts +0 -51
- package/dist/platform/telemetry/index.d.ts +0 -51
- package/dist/platform/utils/index.d.mts +0 -32
- package/dist/platform/utils/index.d.ts +0 -32
- package/dist/platform/windsock-admin-client.d.mts +0 -57
- package/dist/platform/windsock-admin-client.d.ts +0 -57
- package/dist/platform/workflow-api-client.d.mts +0 -6
- package/dist/platform/workflow-api-client.d.ts +0 -6
- package/dist/platform/workflow-canvas-shell.d.mts +0 -18
- package/dist/platform/workflow-canvas-shell.d.ts +0 -18
- package/dist/rule-form-BYJzyork.d.mts +0 -128
- package/dist/rule-form-BYJzyork.d.ts +0 -128
- package/dist/workflow-api-client-CpFl3WcG.d.mts +0 -468
- package/dist/workflow-api-client-uLICOanv.d.ts +0 -468
- package/dist/workflow-canvas--qaYKuMm.d.ts +0 -113
- package/dist/workflow-canvas-B80fmD_n.d.mts +0 -113
- package/dist/workflow-store-o17I6L6A.d.ts +0 -79
- package/dist/workflow-store-ppVHdMZi.d.mts +0 -79
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as posthog_js from 'posthog-js';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
type TelemetryUser = {
|
|
6
|
-
/** Stable user id — typically the windsock JWT `sub`. */
|
|
7
|
-
id: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
role?: string;
|
|
11
|
-
/** Tenant id — from `https://datatechsolutions.com.br/organization_id` claim. */
|
|
12
|
-
organizationId?: string;
|
|
13
|
-
};
|
|
14
|
-
type TelemetryProviderProps = {
|
|
15
|
-
/** App slug — e.g. `astrlabe`, `sextant`, `data-br`. Tags every event. */
|
|
16
|
-
app: string;
|
|
17
|
-
/**
|
|
18
|
-
* PostHog project token (write-only key, safe in browser bundles).
|
|
19
|
-
* If unset, the provider falls back to `window.__APP_CONFIG__.posthog.key`
|
|
20
|
-
* (set by the CDK-managed `runtime-config.js`) and then to
|
|
21
|
-
* `import.meta.env.VITE_POSTHOG_KEY`. Pass explicitly only for tests
|
|
22
|
-
* or sub-app embeds.
|
|
23
|
-
*/
|
|
24
|
-
projectKey?: string;
|
|
25
|
-
/**
|
|
26
|
-
* PostHog ingestion host. Falls back through the same chain as
|
|
27
|
-
* `projectKey`; defaults to US Cloud if nothing else resolves.
|
|
28
|
-
*/
|
|
29
|
-
apiHost?: string;
|
|
30
|
-
/** Whether to record session replays. Defaults to true. */
|
|
31
|
-
recordSessions?: boolean;
|
|
32
|
-
/** Current authenticated user, if any. The provider re-identifies on change. */
|
|
33
|
-
user?: TelemetryUser | null;
|
|
34
|
-
children: ReactNode;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Wrap every SPA in this provider. Pass the windsock-resolved user so
|
|
38
|
-
* PostHog associates events with the right tenant; pass `null` after
|
|
39
|
-
* sign-out so the next session is anonymous.
|
|
40
|
-
*/
|
|
41
|
-
declare function TelemetryProvider({ app, projectKey: propProjectKey, apiHost: propApiHost, recordSessions, user, children, }: TelemetryProviderProps): react_jsx_runtime.JSX.Element;
|
|
42
|
-
/**
|
|
43
|
-
* Re-export the posthog-js/react hook so consumer SPAs can capture
|
|
44
|
-
* custom events without importing posthog-js directly:
|
|
45
|
-
*
|
|
46
|
-
* const ph = useTelemetry()
|
|
47
|
-
* ph?.capture('workflow_run_started', { workflowId })
|
|
48
|
-
*/
|
|
49
|
-
declare const useTelemetry: () => posthog_js.PostHog;
|
|
50
|
-
|
|
51
|
-
export { TelemetryProvider, type TelemetryProviderProps, type TelemetryUser, useTelemetry };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as posthog_js from 'posthog-js';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
type TelemetryUser = {
|
|
6
|
-
/** Stable user id — typically the windsock JWT `sub`. */
|
|
7
|
-
id: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
role?: string;
|
|
11
|
-
/** Tenant id — from `https://datatechsolutions.com.br/organization_id` claim. */
|
|
12
|
-
organizationId?: string;
|
|
13
|
-
};
|
|
14
|
-
type TelemetryProviderProps = {
|
|
15
|
-
/** App slug — e.g. `astrlabe`, `sextant`, `data-br`. Tags every event. */
|
|
16
|
-
app: string;
|
|
17
|
-
/**
|
|
18
|
-
* PostHog project token (write-only key, safe in browser bundles).
|
|
19
|
-
* If unset, the provider falls back to `window.__APP_CONFIG__.posthog.key`
|
|
20
|
-
* (set by the CDK-managed `runtime-config.js`) and then to
|
|
21
|
-
* `import.meta.env.VITE_POSTHOG_KEY`. Pass explicitly only for tests
|
|
22
|
-
* or sub-app embeds.
|
|
23
|
-
*/
|
|
24
|
-
projectKey?: string;
|
|
25
|
-
/**
|
|
26
|
-
* PostHog ingestion host. Falls back through the same chain as
|
|
27
|
-
* `projectKey`; defaults to US Cloud if nothing else resolves.
|
|
28
|
-
*/
|
|
29
|
-
apiHost?: string;
|
|
30
|
-
/** Whether to record session replays. Defaults to true. */
|
|
31
|
-
recordSessions?: boolean;
|
|
32
|
-
/** Current authenticated user, if any. The provider re-identifies on change. */
|
|
33
|
-
user?: TelemetryUser | null;
|
|
34
|
-
children: ReactNode;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Wrap every SPA in this provider. Pass the windsock-resolved user so
|
|
38
|
-
* PostHog associates events with the right tenant; pass `null` after
|
|
39
|
-
* sign-out so the next session is anonymous.
|
|
40
|
-
*/
|
|
41
|
-
declare function TelemetryProvider({ app, projectKey: propProjectKey, apiHost: propApiHost, recordSessions, user, children, }: TelemetryProviderProps): react_jsx_runtime.JSX.Element;
|
|
42
|
-
/**
|
|
43
|
-
* Re-export the posthog-js/react hook so consumer SPAs can capture
|
|
44
|
-
* custom events without importing posthog-js directly:
|
|
45
|
-
*
|
|
46
|
-
* const ph = useTelemetry()
|
|
47
|
-
* ph?.capture('workflow_run_started', { workflowId })
|
|
48
|
-
*/
|
|
49
|
-
declare const useTelemetry: () => posthog_js.PostHog;
|
|
50
|
-
|
|
51
|
-
export { TelemetryProvider, type TelemetryProviderProps, type TelemetryUser, useTelemetry };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { WorkflowGraph } from '@datatechsolutions/shared-domain/ports/workflow';
|
|
2
|
-
import { WorkflowGraph as WorkflowGraph$1 } from '../../astrlabe/contracts.mjs';
|
|
3
|
-
|
|
4
|
-
/** Formats a millisecond count as a short, human-readable duration string. */
|
|
5
|
-
declare function formatDurationMs(ms: number | null | undefined): string;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Parses a JSON string into a typed value, returning undefined (not throwing)
|
|
9
|
-
* on empty input or malformed JSON. Used by form builders where the user types
|
|
10
|
-
* JSON into a textarea and we want to surface a friendly "couldn't parse" state
|
|
11
|
-
* rather than crashing the submit handler.
|
|
12
|
-
*/
|
|
13
|
-
declare function tryParseJson<T = unknown>(value: FormDataEntryValue | string | null | undefined): T | undefined;
|
|
14
|
-
/** Parses JSON into an object record. Returns undefined if the result is not a plain object. */
|
|
15
|
-
declare function tryParseJsonObject(value: FormDataEntryValue | string | null | undefined): Record<string, unknown> | undefined;
|
|
16
|
-
/** Parses JSON into an array of records. Returns undefined if not a plain array. */
|
|
17
|
-
declare function tryParseJsonArray(value: FormDataEntryValue | string | null | undefined): Array<Record<string, unknown>> | undefined;
|
|
18
|
-
|
|
19
|
-
type ToolCategory = 'search' | 'code' | 'file' | 'web' | 'math' | 'custom';
|
|
20
|
-
declare const TOOL_CATEGORY_VALUES: readonly ToolCategory[];
|
|
21
|
-
/** Narrows a form value to a ToolCategory, returning undefined if not one of the known values. */
|
|
22
|
-
declare function parseToolCategory(value: FormDataEntryValue | null | undefined): ToolCategory | undefined;
|
|
23
|
-
|
|
24
|
-
declare function adaptWorkflowGraphToUi(graph: WorkflowGraph): WorkflowGraph$1;
|
|
25
|
-
|
|
26
|
-
declare function getLambdaApiBase(): string;
|
|
27
|
-
declare function buildLambdaApiUrl(path: string): string;
|
|
28
|
-
|
|
29
|
-
declare function getAuthAppUrl(): string;
|
|
30
|
-
declare function buildHostedAuthUrl(path: string, search?: string): string;
|
|
31
|
-
|
|
32
|
-
export { TOOL_CATEGORY_VALUES, type ToolCategory, adaptWorkflowGraphToUi, buildHostedAuthUrl, buildLambdaApiUrl, formatDurationMs, getAuthAppUrl, getLambdaApiBase, parseToolCategory, tryParseJson, tryParseJsonArray, tryParseJsonObject };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { WorkflowGraph } from '@datatechsolutions/shared-domain/ports/workflow';
|
|
2
|
-
import { WorkflowGraph as WorkflowGraph$1 } from '../../astrlabe/contracts.js';
|
|
3
|
-
|
|
4
|
-
/** Formats a millisecond count as a short, human-readable duration string. */
|
|
5
|
-
declare function formatDurationMs(ms: number | null | undefined): string;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Parses a JSON string into a typed value, returning undefined (not throwing)
|
|
9
|
-
* on empty input or malformed JSON. Used by form builders where the user types
|
|
10
|
-
* JSON into a textarea and we want to surface a friendly "couldn't parse" state
|
|
11
|
-
* rather than crashing the submit handler.
|
|
12
|
-
*/
|
|
13
|
-
declare function tryParseJson<T = unknown>(value: FormDataEntryValue | string | null | undefined): T | undefined;
|
|
14
|
-
/** Parses JSON into an object record. Returns undefined if the result is not a plain object. */
|
|
15
|
-
declare function tryParseJsonObject(value: FormDataEntryValue | string | null | undefined): Record<string, unknown> | undefined;
|
|
16
|
-
/** Parses JSON into an array of records. Returns undefined if not a plain array. */
|
|
17
|
-
declare function tryParseJsonArray(value: FormDataEntryValue | string | null | undefined): Array<Record<string, unknown>> | undefined;
|
|
18
|
-
|
|
19
|
-
type ToolCategory = 'search' | 'code' | 'file' | 'web' | 'math' | 'custom';
|
|
20
|
-
declare const TOOL_CATEGORY_VALUES: readonly ToolCategory[];
|
|
21
|
-
/** Narrows a form value to a ToolCategory, returning undefined if not one of the known values. */
|
|
22
|
-
declare function parseToolCategory(value: FormDataEntryValue | null | undefined): ToolCategory | undefined;
|
|
23
|
-
|
|
24
|
-
declare function adaptWorkflowGraphToUi(graph: WorkflowGraph): WorkflowGraph$1;
|
|
25
|
-
|
|
26
|
-
declare function getLambdaApiBase(): string;
|
|
27
|
-
declare function buildLambdaApiUrl(path: string): string;
|
|
28
|
-
|
|
29
|
-
declare function getAuthAppUrl(): string;
|
|
30
|
-
declare function buildHostedAuthUrl(path: string, search?: string): string;
|
|
31
|
-
|
|
32
|
-
export { TOOL_CATEGORY_VALUES, type ToolCategory, adaptWorkflowGraphToUi, buildHostedAuthUrl, buildLambdaApiUrl, formatDurationMs, getAuthAppUrl, getLambdaApiBase, parseToolCategory, tryParseJson, tryParseJsonArray, tryParseJsonObject };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { AuthOrganizationDomain, AuthOrganizationRole, AdminCreateOrganizationInput, AuthOrganization, AdminCreateInvitationInput, AdminCreatePermissionInput, AdminPermission, AdminCreateUserInput, AdminUserSummary, AuthOrganizationInvitation, AdminOrganizationMember, AdminListParams, AdminListResult, AdminClient, AdminUpdateOrganizationInput, AdminUpdatePermissionInput, AdminUpdateUserInput } from '@datatechsolutions/shared-domain';
|
|
2
|
-
|
|
3
|
-
declare function setWindsockAdminClient(client: AdminClient, issuer: string, authFetch: typeof fetch): void;
|
|
4
|
-
declare function listUsers(params?: AdminListParams): Promise<AdminListResult<AdminUserSummary>>;
|
|
5
|
-
declare function createUser(data: AdminCreateUserInput): Promise<AdminUserSummary>;
|
|
6
|
-
declare function updateUser(userId: string, data: AdminUpdateUserInput): Promise<void>;
|
|
7
|
-
declare function deleteUser(userId: string): Promise<void>;
|
|
8
|
-
declare function resetUserPassword(userId: string, password: string): Promise<void>;
|
|
9
|
-
declare function listOrganizations(): Promise<AuthOrganization[]>;
|
|
10
|
-
declare function createOrganization(data: AdminCreateOrganizationInput): Promise<AuthOrganization>;
|
|
11
|
-
declare function updateOrganization(organizationId: string, data: AdminUpdateOrganizationInput): Promise<AuthOrganization>;
|
|
12
|
-
declare function deleteOrganization(organizationId: string): Promise<void>;
|
|
13
|
-
declare function listOrganizationMembers(organizationId: string): Promise<AdminOrganizationMember[]>;
|
|
14
|
-
declare function addOrganizationMember(organizationId: string, userId: string, role?: AuthOrganizationRole): Promise<void>;
|
|
15
|
-
declare function removeOrganizationMember(organizationId: string, userId: string): Promise<void>;
|
|
16
|
-
declare function listOrganizationInvitations(organizationId: string): Promise<AuthOrganizationInvitation[]>;
|
|
17
|
-
declare function createOrganizationInvitation(organizationId: string, data: AdminCreateInvitationInput): Promise<void>;
|
|
18
|
-
declare function listOrganizationDomains(organizationId: string): Promise<AuthOrganizationDomain[]>;
|
|
19
|
-
declare function addOrganizationDomain(organizationId: string, domain: string): Promise<AuthOrganizationDomain>;
|
|
20
|
-
declare function verifyOrganizationDomain(organizationId: string, domain: string): Promise<void>;
|
|
21
|
-
declare function listPermissions(): Promise<AdminPermission[]>;
|
|
22
|
-
declare function createPermission(data: AdminCreatePermissionInput): Promise<AdminPermission>;
|
|
23
|
-
declare function updatePermission(permissionId: string, data: AdminUpdatePermissionInput): Promise<void>;
|
|
24
|
-
declare function deletePermission(permissionId: string): Promise<void>;
|
|
25
|
-
declare function getUserPermissions(userId: string): Promise<AdminPermission[]>;
|
|
26
|
-
declare function setUserPermissions(userId: string, permissionIds: string[]): Promise<void>;
|
|
27
|
-
type SecretSummary = {
|
|
28
|
-
secretId: string;
|
|
29
|
-
name: string;
|
|
30
|
-
secretType: string;
|
|
31
|
-
description: string | null;
|
|
32
|
-
expiresAt: string | null;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt: string;
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
};
|
|
37
|
-
type SecretDetail = SecretSummary & {
|
|
38
|
-
value?: string;
|
|
39
|
-
};
|
|
40
|
-
type CreateSecretInput = {
|
|
41
|
-
name: string;
|
|
42
|
-
value: string;
|
|
43
|
-
secretType?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
leaseTtlSeconds?: number;
|
|
46
|
-
};
|
|
47
|
-
type UpdateSecretInput = {
|
|
48
|
-
value: string;
|
|
49
|
-
leaseTtlSeconds?: number;
|
|
50
|
-
};
|
|
51
|
-
declare function listSecrets(organizationId: string): Promise<SecretSummary[]>;
|
|
52
|
-
declare function getSecret(organizationId: string, secretId: string): Promise<SecretDetail>;
|
|
53
|
-
declare function createSecret(organizationId: string, input: CreateSecretInput): Promise<SecretSummary>;
|
|
54
|
-
declare function rotateSecret(organizationId: string, secretId: string, input: UpdateSecretInput): Promise<SecretSummary>;
|
|
55
|
-
declare function disableSecret(organizationId: string, secretId: string): Promise<void>;
|
|
56
|
-
|
|
57
|
-
export { type CreateSecretInput, type SecretDetail, type SecretSummary, type UpdateSecretInput, addOrganizationDomain, addOrganizationMember, createOrganization, createOrganizationInvitation, createPermission, createSecret, createUser, deleteOrganization, deletePermission, deleteUser, disableSecret, getSecret, getUserPermissions, listOrganizationDomains, listOrganizationInvitations, listOrganizationMembers, listOrganizations, listPermissions, listSecrets, listUsers, removeOrganizationMember, resetUserPassword, rotateSecret, setUserPermissions, setWindsockAdminClient, updateOrganization, updatePermission, updateUser, verifyOrganizationDomain };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { AuthOrganizationDomain, AuthOrganizationRole, AdminCreateOrganizationInput, AuthOrganization, AdminCreateInvitationInput, AdminCreatePermissionInput, AdminPermission, AdminCreateUserInput, AdminUserSummary, AuthOrganizationInvitation, AdminOrganizationMember, AdminListParams, AdminListResult, AdminClient, AdminUpdateOrganizationInput, AdminUpdatePermissionInput, AdminUpdateUserInput } from '@datatechsolutions/shared-domain';
|
|
2
|
-
|
|
3
|
-
declare function setWindsockAdminClient(client: AdminClient, issuer: string, authFetch: typeof fetch): void;
|
|
4
|
-
declare function listUsers(params?: AdminListParams): Promise<AdminListResult<AdminUserSummary>>;
|
|
5
|
-
declare function createUser(data: AdminCreateUserInput): Promise<AdminUserSummary>;
|
|
6
|
-
declare function updateUser(userId: string, data: AdminUpdateUserInput): Promise<void>;
|
|
7
|
-
declare function deleteUser(userId: string): Promise<void>;
|
|
8
|
-
declare function resetUserPassword(userId: string, password: string): Promise<void>;
|
|
9
|
-
declare function listOrganizations(): Promise<AuthOrganization[]>;
|
|
10
|
-
declare function createOrganization(data: AdminCreateOrganizationInput): Promise<AuthOrganization>;
|
|
11
|
-
declare function updateOrganization(organizationId: string, data: AdminUpdateOrganizationInput): Promise<AuthOrganization>;
|
|
12
|
-
declare function deleteOrganization(organizationId: string): Promise<void>;
|
|
13
|
-
declare function listOrganizationMembers(organizationId: string): Promise<AdminOrganizationMember[]>;
|
|
14
|
-
declare function addOrganizationMember(organizationId: string, userId: string, role?: AuthOrganizationRole): Promise<void>;
|
|
15
|
-
declare function removeOrganizationMember(organizationId: string, userId: string): Promise<void>;
|
|
16
|
-
declare function listOrganizationInvitations(organizationId: string): Promise<AuthOrganizationInvitation[]>;
|
|
17
|
-
declare function createOrganizationInvitation(organizationId: string, data: AdminCreateInvitationInput): Promise<void>;
|
|
18
|
-
declare function listOrganizationDomains(organizationId: string): Promise<AuthOrganizationDomain[]>;
|
|
19
|
-
declare function addOrganizationDomain(organizationId: string, domain: string): Promise<AuthOrganizationDomain>;
|
|
20
|
-
declare function verifyOrganizationDomain(organizationId: string, domain: string): Promise<void>;
|
|
21
|
-
declare function listPermissions(): Promise<AdminPermission[]>;
|
|
22
|
-
declare function createPermission(data: AdminCreatePermissionInput): Promise<AdminPermission>;
|
|
23
|
-
declare function updatePermission(permissionId: string, data: AdminUpdatePermissionInput): Promise<void>;
|
|
24
|
-
declare function deletePermission(permissionId: string): Promise<void>;
|
|
25
|
-
declare function getUserPermissions(userId: string): Promise<AdminPermission[]>;
|
|
26
|
-
declare function setUserPermissions(userId: string, permissionIds: string[]): Promise<void>;
|
|
27
|
-
type SecretSummary = {
|
|
28
|
-
secretId: string;
|
|
29
|
-
name: string;
|
|
30
|
-
secretType: string;
|
|
31
|
-
description: string | null;
|
|
32
|
-
expiresAt: string | null;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt: string;
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
};
|
|
37
|
-
type SecretDetail = SecretSummary & {
|
|
38
|
-
value?: string;
|
|
39
|
-
};
|
|
40
|
-
type CreateSecretInput = {
|
|
41
|
-
name: string;
|
|
42
|
-
value: string;
|
|
43
|
-
secretType?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
leaseTtlSeconds?: number;
|
|
46
|
-
};
|
|
47
|
-
type UpdateSecretInput = {
|
|
48
|
-
value: string;
|
|
49
|
-
leaseTtlSeconds?: number;
|
|
50
|
-
};
|
|
51
|
-
declare function listSecrets(organizationId: string): Promise<SecretSummary[]>;
|
|
52
|
-
declare function getSecret(organizationId: string, secretId: string): Promise<SecretDetail>;
|
|
53
|
-
declare function createSecret(organizationId: string, input: CreateSecretInput): Promise<SecretSummary>;
|
|
54
|
-
declare function rotateSecret(organizationId: string, secretId: string, input: UpdateSecretInput): Promise<SecretSummary>;
|
|
55
|
-
declare function disableSecret(organizationId: string, secretId: string): Promise<void>;
|
|
56
|
-
|
|
57
|
-
export { type CreateSecretInput, type SecretDetail, type SecretSummary, type UpdateSecretInput, addOrganizationDomain, addOrganizationMember, createOrganization, createOrganizationInvitation, createPermission, createSecret, createUser, deleteOrganization, deletePermission, deleteUser, disableSecret, getSecret, getUserPermissions, listOrganizationDomains, listOrganizationInvitations, listOrganizationMembers, listOrganizations, listPermissions, listSecrets, listUsers, removeOrganizationMember, resetUserPassword, rotateSecret, setUserPermissions, setWindsockAdminClient, updateOrganization, updatePermission, updateUser, verifyOrganizationDomain };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import '../astrlabe/contracts.mjs';
|
|
2
|
-
import '../index-BNRGVAS5.mjs';
|
|
3
|
-
import '@datatechsolutions/shared-domain/ports/workflow';
|
|
4
|
-
import '@datatechsolutions/shared-domain/common';
|
|
5
|
-
export { h as AiGenerateResponse, i as AiValidateResponse, A as AnalyticsSummary, j as ApprovalDecision, k as ApprovalResponse, l as ModelFamilyCatalogEntry, m as ModelProviderCatalogEntry, M as ModelProviderConnection, N as NodeMetrics, n as NodeValidationIssue, P as PresignUploadInput, o as PresignedUpload, p as PublicSampleWorkflow, q as RunEvent, r as RunSubscriptionState, R as RunTimelineEntry, W as WorkflowRunListParams, s as WorkflowTemplateSummary, t as aiGenerateWorkflow, u as aiValidateWorkflow, v as buildAuthenticatedApiUrl, w as cancelWorkflowRun, x as createAgentConfig, y as createAgentPrompt, z as createAgentRule, B as createAgentTool, C as createAgentToolDefinition, E as createDatasource, F as createModelProviderConnection, G as createWorkflow, H as createWorkflowFromTemplate, I as deleteAgentConfig, J as deleteAgentPrompt, K as deleteAgentRule, L as deleteAgentTool, O as deleteAgentToolDefinition, Q as deleteModelProviderConnection, S as deleteUpload, T as deleteWorkflow, U as executeAgentRule, V as executeWorkflow, X as getAgentConfigsWithPrompts, Y as getAgentModels, Z as getAgentPrompts, _ as getAgentRules, $ as getAgentToolDefinitions, a0 as getAgentTools, a1 as getAnalyticsSummary, a2 as getCurrentAccessToken, a3 as getDatasourceSchema, a4 as getDatasourceTables, a5 as getDatasources, a6 as getPublicSampleWorkflow, a7 as getRunTimeline, a8 as getUploadDownloadUrl, a9 as getWorkflowById, aa as getWorkflowRunById, ab as getWorkflowRuns, ac as getWorkflows, ad as listModelProviderCatalog, ae as listModelProviderConnections, af as listWorkflowRuns, ag as listWorkflowTemplates, ah as presignUpload, ai as publishWorkflow, aj as replayWorkflowRun, ak as saveWorkflowDraft, al as setAccessTokenProvider, am as setAuthenticatedFetch, an as submitApproval, ao as subscribeToRunEvents, ap as updateAgentConfig, aq as updateAgentPrompt, ar as updateAgentRule, as as updateAgentTool, at as updateAgentToolDefinition, au as updateModelProviderConnection, av as updateWorkflowSettings } from '../workflow-api-client-CpFl3WcG.mjs';
|
|
6
|
-
import 'react/jsx-runtime';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import '../astrlabe/contracts.js';
|
|
2
|
-
import '../index-CnCY-b5V.js';
|
|
3
|
-
import '@datatechsolutions/shared-domain/ports/workflow';
|
|
4
|
-
import '@datatechsolutions/shared-domain/common';
|
|
5
|
-
export { h as AiGenerateResponse, i as AiValidateResponse, A as AnalyticsSummary, j as ApprovalDecision, k as ApprovalResponse, l as ModelFamilyCatalogEntry, m as ModelProviderCatalogEntry, M as ModelProviderConnection, N as NodeMetrics, n as NodeValidationIssue, P as PresignUploadInput, o as PresignedUpload, p as PublicSampleWorkflow, q as RunEvent, r as RunSubscriptionState, R as RunTimelineEntry, W as WorkflowRunListParams, s as WorkflowTemplateSummary, t as aiGenerateWorkflow, u as aiValidateWorkflow, v as buildAuthenticatedApiUrl, w as cancelWorkflowRun, x as createAgentConfig, y as createAgentPrompt, z as createAgentRule, B as createAgentTool, C as createAgentToolDefinition, E as createDatasource, F as createModelProviderConnection, G as createWorkflow, H as createWorkflowFromTemplate, I as deleteAgentConfig, J as deleteAgentPrompt, K as deleteAgentRule, L as deleteAgentTool, O as deleteAgentToolDefinition, Q as deleteModelProviderConnection, S as deleteUpload, T as deleteWorkflow, U as executeAgentRule, V as executeWorkflow, X as getAgentConfigsWithPrompts, Y as getAgentModels, Z as getAgentPrompts, _ as getAgentRules, $ as getAgentToolDefinitions, a0 as getAgentTools, a1 as getAnalyticsSummary, a2 as getCurrentAccessToken, a3 as getDatasourceSchema, a4 as getDatasourceTables, a5 as getDatasources, a6 as getPublicSampleWorkflow, a7 as getRunTimeline, a8 as getUploadDownloadUrl, a9 as getWorkflowById, aa as getWorkflowRunById, ab as getWorkflowRuns, ac as getWorkflows, ad as listModelProviderCatalog, ae as listModelProviderConnections, af as listWorkflowRuns, ag as listWorkflowTemplates, ah as presignUpload, ai as publishWorkflow, aj as replayWorkflowRun, ak as saveWorkflowDraft, al as setAccessTokenProvider, am as setAuthenticatedFetch, an as submitApproval, ao as subscribeToRunEvents, ap as updateAgentConfig, aq as updateAgentPrompt, ar as updateAgentRule, as as updateAgentTool, at as updateAgentToolDefinition, au as updateModelProviderConnection, av as updateWorkflowSettings } from '../workflow-api-client-uLICOanv.js';
|
|
6
|
-
import 'react/jsx-runtime';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { WorkflowCanvasShellProps } from '@datatechsolutions/shared-domain/common';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Workflow canvas shell with optional message bundle override.
|
|
6
|
-
*
|
|
7
|
-
* Most apps wrap their tree in `<I18nProvider>` and let the canvas read
|
|
8
|
-
* messages from context — in that case `messages` can be omitted. Apps
|
|
9
|
-
* that need to inject a precomputed bundle (e.g. for tests or app-specific
|
|
10
|
-
* overrides not shipped with shared-domain) can pass it explicitly.
|
|
11
|
-
*/
|
|
12
|
-
type Props = WorkflowCanvasShellProps & {
|
|
13
|
-
/** Optional override for the messages catalog passed into the canvas. */
|
|
14
|
-
messages?: Record<string, unknown>;
|
|
15
|
-
};
|
|
16
|
-
declare function WorkflowCanvasShell({ graph, messages }: Props): react_jsx_runtime.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { WorkflowCanvasShell };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { WorkflowCanvasShellProps } from '@datatechsolutions/shared-domain/common';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Workflow canvas shell with optional message bundle override.
|
|
6
|
-
*
|
|
7
|
-
* Most apps wrap their tree in `<I18nProvider>` and let the canvas read
|
|
8
|
-
* messages from context — in that case `messages` can be omitted. Apps
|
|
9
|
-
* that need to inject a precomputed bundle (e.g. for tests or app-specific
|
|
10
|
-
* overrides not shipped with shared-domain) can pass it explicitly.
|
|
11
|
-
*/
|
|
12
|
-
type Props = WorkflowCanvasShellProps & {
|
|
13
|
-
/** Optional override for the messages catalog passed into the canvas. */
|
|
14
|
-
messages?: Record<string, unknown>;
|
|
15
|
-
};
|
|
16
|
-
declare function WorkflowCanvasShell({ graph, messages }: Props): react_jsx_runtime.JSX.Element;
|
|
17
|
-
|
|
18
|
-
export { WorkflowCanvasShell };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
type ExecutionTimelineStatus = 'completed' | 'running' | 'failed' | 'pending' | 'skipped';
|
|
4
|
-
type ExecutionTimelineMetrics = {
|
|
5
|
-
tokensIn?: number;
|
|
6
|
-
tokensOut?: number;
|
|
7
|
-
costUsd?: number;
|
|
8
|
-
provider?: string;
|
|
9
|
-
model?: string;
|
|
10
|
-
};
|
|
11
|
-
type ExecutionTimelineEntry = {
|
|
12
|
-
nodeId: string;
|
|
13
|
-
nodeType: string;
|
|
14
|
-
status: ExecutionTimelineStatus;
|
|
15
|
-
startedAt: string | null;
|
|
16
|
-
completedAt: string | null;
|
|
17
|
-
durationMs: number | null;
|
|
18
|
-
inputs?: Record<string, unknown>;
|
|
19
|
-
outputs?: Record<string, unknown>;
|
|
20
|
-
error?: string | null;
|
|
21
|
-
metrics?: ExecutionTimelineMetrics;
|
|
22
|
-
};
|
|
23
|
-
type ExecutionTimelineLabels = {
|
|
24
|
-
status: string;
|
|
25
|
-
duration: string;
|
|
26
|
-
inputs: string;
|
|
27
|
-
outputs: string;
|
|
28
|
-
error: string;
|
|
29
|
-
started: string;
|
|
30
|
-
completed: string;
|
|
31
|
-
pending: string;
|
|
32
|
-
running: string;
|
|
33
|
-
failed: string;
|
|
34
|
-
skipped: string;
|
|
35
|
-
selectNode: string;
|
|
36
|
-
model: string;
|
|
37
|
-
tokens: string;
|
|
38
|
-
cost: string;
|
|
39
|
-
/** Used as the empty-state heading when `entries` is empty. */
|
|
40
|
-
empty?: string;
|
|
41
|
-
};
|
|
42
|
-
type ExecutionTimelinePanelProps = {
|
|
43
|
-
entries: ExecutionTimelineEntry[];
|
|
44
|
-
labels: ExecutionTimelineLabels;
|
|
45
|
-
/** When set, drives selection from the parent. Useful when the page
|
|
46
|
-
* syncs the selection with a URL query param. */
|
|
47
|
-
selectedNodeId?: string;
|
|
48
|
-
onSelect?: (nodeId: string) => void;
|
|
49
|
-
};
|
|
50
|
-
declare function ExecutionTimelinePanel({ entries, labels, selectedNodeId, onSelect, }: ExecutionTimelinePanelProps): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Rule editing types.
|
|
54
|
-
*
|
|
55
|
-
* Mirrors the shape the Rust `RuleExecutor`
|
|
56
|
-
* (`lambda-rs/crates/astrlabe-handlers/src/engine/executors/rule.rs`) reads
|
|
57
|
-
* from `astrlabe.agent_rules.condition` + `action`. The UI builder below
|
|
58
|
-
* writes exactly this shape, so round-tripping through the backend is a
|
|
59
|
-
* no-op.
|
|
60
|
-
*/
|
|
61
|
-
type SimpleComparisonOperator = 'truthy' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains';
|
|
62
|
-
type RuleConditionOperator = SimpleComparisonOperator | 'regex_match' | 'threshold' | 'time_window' | 'boolean_expression';
|
|
63
|
-
type TimeWindow = {
|
|
64
|
-
startHour: number;
|
|
65
|
-
endHour: number;
|
|
66
|
-
startMinute?: number;
|
|
67
|
-
endMinute?: number;
|
|
68
|
-
/** 0 = Sunday, 6 = Saturday. Omit to match every day. */
|
|
69
|
-
daysOfWeek?: number[];
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Canonical rule-condition shape. The executor branches on `operator`,
|
|
73
|
-
* so every form tree ultimately serializes to this.
|
|
74
|
-
*/
|
|
75
|
-
type RuleCondition = {
|
|
76
|
-
operator: RuleConditionOperator;
|
|
77
|
-
/** Simple operators + regex_match + threshold + time_window */
|
|
78
|
-
field?: string;
|
|
79
|
-
/** Simple operators + threshold */
|
|
80
|
-
value?: string | number | boolean | null;
|
|
81
|
-
/** regex_match */
|
|
82
|
-
pattern?: string;
|
|
83
|
-
/** threshold — which direction `value` is compared in. */
|
|
84
|
-
comparison?: 'gt' | 'gte' | 'lt' | 'lte';
|
|
85
|
-
/** time_window */
|
|
86
|
-
timezone?: string;
|
|
87
|
-
windows?: TimeWindow[];
|
|
88
|
-
/** boolean_expression */
|
|
89
|
-
combinator?: 'and' | 'or';
|
|
90
|
-
operands?: RuleCondition[];
|
|
91
|
-
};
|
|
92
|
-
type RuleAction = {
|
|
93
|
-
type: string;
|
|
94
|
-
params?: Record<string, unknown>;
|
|
95
|
-
};
|
|
96
|
-
/** `agent_rules.status` free-form string — keep the UI picker aligned
|
|
97
|
-
* with the values the engine / audit trail recognizes today. */
|
|
98
|
-
declare const RULE_STATUS_OPTIONS: readonly ["draft", "active", "archived"];
|
|
99
|
-
type RuleStatus = (typeof RULE_STATUS_OPTIONS)[number];
|
|
100
|
-
declare const TIMEZONE_OPTIONS: readonly ["UTC", "America/Sao_Paulo", "America/New_York", "America/Los_Angeles", "Europe/London", "Europe/Lisbon"];
|
|
101
|
-
|
|
102
|
-
type RuleFormValue = {
|
|
103
|
-
ruleId?: string;
|
|
104
|
-
name: string;
|
|
105
|
-
description?: string;
|
|
106
|
-
enabled: boolean;
|
|
107
|
-
priority: number;
|
|
108
|
-
status?: RuleStatus;
|
|
109
|
-
validFrom?: string | null;
|
|
110
|
-
validUntil?: string | null;
|
|
111
|
-
tags?: string[];
|
|
112
|
-
condition: RuleCondition;
|
|
113
|
-
action: RuleAction;
|
|
114
|
-
};
|
|
115
|
-
type Props = {
|
|
116
|
-
value: RuleFormValue;
|
|
117
|
-
onChange: (next: RuleFormValue) => void;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Full-field rule editor used inside the create/edit modal. Composes the
|
|
121
|
-
* visual condition + action builders and exposes the schedule / tagging /
|
|
122
|
-
* lifecycle fields that the `agent_rules` entity has but the old JSON-
|
|
123
|
-
* textarea form never surfaced.
|
|
124
|
-
*/
|
|
125
|
-
declare function RuleForm({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
|
|
126
|
-
declare function defaultRuleForm(): RuleFormValue;
|
|
127
|
-
|
|
128
|
-
export { type ExecutionTimelineLabels as E, type RuleFormValue as R, TIMEZONE_OPTIONS as T, type RuleCondition as a, type RuleAction as b, type ExecutionTimelineEntry as c, type ExecutionTimelineMetrics as d, ExecutionTimelinePanel as e, type ExecutionTimelinePanelProps as f, type ExecutionTimelineStatus as g, RULE_STATUS_OPTIONS as h, type RuleConditionOperator as i, RuleForm as j, type RuleStatus as k, type TimeWindow as l, defaultRuleForm as m };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
type ExecutionTimelineStatus = 'completed' | 'running' | 'failed' | 'pending' | 'skipped';
|
|
4
|
-
type ExecutionTimelineMetrics = {
|
|
5
|
-
tokensIn?: number;
|
|
6
|
-
tokensOut?: number;
|
|
7
|
-
costUsd?: number;
|
|
8
|
-
provider?: string;
|
|
9
|
-
model?: string;
|
|
10
|
-
};
|
|
11
|
-
type ExecutionTimelineEntry = {
|
|
12
|
-
nodeId: string;
|
|
13
|
-
nodeType: string;
|
|
14
|
-
status: ExecutionTimelineStatus;
|
|
15
|
-
startedAt: string | null;
|
|
16
|
-
completedAt: string | null;
|
|
17
|
-
durationMs: number | null;
|
|
18
|
-
inputs?: Record<string, unknown>;
|
|
19
|
-
outputs?: Record<string, unknown>;
|
|
20
|
-
error?: string | null;
|
|
21
|
-
metrics?: ExecutionTimelineMetrics;
|
|
22
|
-
};
|
|
23
|
-
type ExecutionTimelineLabels = {
|
|
24
|
-
status: string;
|
|
25
|
-
duration: string;
|
|
26
|
-
inputs: string;
|
|
27
|
-
outputs: string;
|
|
28
|
-
error: string;
|
|
29
|
-
started: string;
|
|
30
|
-
completed: string;
|
|
31
|
-
pending: string;
|
|
32
|
-
running: string;
|
|
33
|
-
failed: string;
|
|
34
|
-
skipped: string;
|
|
35
|
-
selectNode: string;
|
|
36
|
-
model: string;
|
|
37
|
-
tokens: string;
|
|
38
|
-
cost: string;
|
|
39
|
-
/** Used as the empty-state heading when `entries` is empty. */
|
|
40
|
-
empty?: string;
|
|
41
|
-
};
|
|
42
|
-
type ExecutionTimelinePanelProps = {
|
|
43
|
-
entries: ExecutionTimelineEntry[];
|
|
44
|
-
labels: ExecutionTimelineLabels;
|
|
45
|
-
/** When set, drives selection from the parent. Useful when the page
|
|
46
|
-
* syncs the selection with a URL query param. */
|
|
47
|
-
selectedNodeId?: string;
|
|
48
|
-
onSelect?: (nodeId: string) => void;
|
|
49
|
-
};
|
|
50
|
-
declare function ExecutionTimelinePanel({ entries, labels, selectedNodeId, onSelect, }: ExecutionTimelinePanelProps): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Rule editing types.
|
|
54
|
-
*
|
|
55
|
-
* Mirrors the shape the Rust `RuleExecutor`
|
|
56
|
-
* (`lambda-rs/crates/astrlabe-handlers/src/engine/executors/rule.rs`) reads
|
|
57
|
-
* from `astrlabe.agent_rules.condition` + `action`. The UI builder below
|
|
58
|
-
* writes exactly this shape, so round-tripping through the backend is a
|
|
59
|
-
* no-op.
|
|
60
|
-
*/
|
|
61
|
-
type SimpleComparisonOperator = 'truthy' | 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains';
|
|
62
|
-
type RuleConditionOperator = SimpleComparisonOperator | 'regex_match' | 'threshold' | 'time_window' | 'boolean_expression';
|
|
63
|
-
type TimeWindow = {
|
|
64
|
-
startHour: number;
|
|
65
|
-
endHour: number;
|
|
66
|
-
startMinute?: number;
|
|
67
|
-
endMinute?: number;
|
|
68
|
-
/** 0 = Sunday, 6 = Saturday. Omit to match every day. */
|
|
69
|
-
daysOfWeek?: number[];
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Canonical rule-condition shape. The executor branches on `operator`,
|
|
73
|
-
* so every form tree ultimately serializes to this.
|
|
74
|
-
*/
|
|
75
|
-
type RuleCondition = {
|
|
76
|
-
operator: RuleConditionOperator;
|
|
77
|
-
/** Simple operators + regex_match + threshold + time_window */
|
|
78
|
-
field?: string;
|
|
79
|
-
/** Simple operators + threshold */
|
|
80
|
-
value?: string | number | boolean | null;
|
|
81
|
-
/** regex_match */
|
|
82
|
-
pattern?: string;
|
|
83
|
-
/** threshold — which direction `value` is compared in. */
|
|
84
|
-
comparison?: 'gt' | 'gte' | 'lt' | 'lte';
|
|
85
|
-
/** time_window */
|
|
86
|
-
timezone?: string;
|
|
87
|
-
windows?: TimeWindow[];
|
|
88
|
-
/** boolean_expression */
|
|
89
|
-
combinator?: 'and' | 'or';
|
|
90
|
-
operands?: RuleCondition[];
|
|
91
|
-
};
|
|
92
|
-
type RuleAction = {
|
|
93
|
-
type: string;
|
|
94
|
-
params?: Record<string, unknown>;
|
|
95
|
-
};
|
|
96
|
-
/** `agent_rules.status` free-form string — keep the UI picker aligned
|
|
97
|
-
* with the values the engine / audit trail recognizes today. */
|
|
98
|
-
declare const RULE_STATUS_OPTIONS: readonly ["draft", "active", "archived"];
|
|
99
|
-
type RuleStatus = (typeof RULE_STATUS_OPTIONS)[number];
|
|
100
|
-
declare const TIMEZONE_OPTIONS: readonly ["UTC", "America/Sao_Paulo", "America/New_York", "America/Los_Angeles", "Europe/London", "Europe/Lisbon"];
|
|
101
|
-
|
|
102
|
-
type RuleFormValue = {
|
|
103
|
-
ruleId?: string;
|
|
104
|
-
name: string;
|
|
105
|
-
description?: string;
|
|
106
|
-
enabled: boolean;
|
|
107
|
-
priority: number;
|
|
108
|
-
status?: RuleStatus;
|
|
109
|
-
validFrom?: string | null;
|
|
110
|
-
validUntil?: string | null;
|
|
111
|
-
tags?: string[];
|
|
112
|
-
condition: RuleCondition;
|
|
113
|
-
action: RuleAction;
|
|
114
|
-
};
|
|
115
|
-
type Props = {
|
|
116
|
-
value: RuleFormValue;
|
|
117
|
-
onChange: (next: RuleFormValue) => void;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Full-field rule editor used inside the create/edit modal. Composes the
|
|
121
|
-
* visual condition + action builders and exposes the schedule / tagging /
|
|
122
|
-
* lifecycle fields that the `agent_rules` entity has but the old JSON-
|
|
123
|
-
* textarea form never surfaced.
|
|
124
|
-
*/
|
|
125
|
-
declare function RuleForm({ value, onChange }: Props): react_jsx_runtime.JSX.Element;
|
|
126
|
-
declare function defaultRuleForm(): RuleFormValue;
|
|
127
|
-
|
|
128
|
-
export { type ExecutionTimelineLabels as E, type RuleFormValue as R, TIMEZONE_OPTIONS as T, type RuleCondition as a, type RuleAction as b, type ExecutionTimelineEntry as c, type ExecutionTimelineMetrics as d, ExecutionTimelinePanel as e, type ExecutionTimelinePanelProps as f, type ExecutionTimelineStatus as g, RULE_STATUS_OPTIONS as h, type RuleConditionOperator as i, RuleForm as j, type RuleStatus as k, type TimeWindow as l, defaultRuleForm as m };
|