@elevasis/ui 2.34.0 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +37 -30
- package/dist/app/index.js +25 -23
- package/dist/charts/index.js +3 -5
- package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
- package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
- package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
- package/dist/chunk-AUDNF2Q7.js +2050 -0
- package/dist/chunk-F6EFC2MJ.js +41101 -0
- package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
- package/dist/{chunk-RIAXZ6AH.js → chunk-K4UZU3TU.js} +2 -2
- package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
- package/dist/{chunk-DTFKWZ7A.js → chunk-O2Q4VMRN.js} +589 -932
- package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
- package/dist/chunk-SIQ3P4OR.js +1764 -0
- package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
- package/dist/{chunk-3QXJK5IY.js → chunk-YYX7OPZQ.js} +1 -1
- package/dist/components/index.d.ts +74 -71
- package/dist/components/index.js +20 -2795
- package/dist/components/navigation/index.js +25 -5
- package/dist/execution/index.d.ts +11 -11
- package/dist/execution/index.js +1 -2
- package/dist/features/auth/index.d.ts +3 -0
- package/dist/features/auth/index.js +23 -2
- package/dist/features/clients/index.js +20 -26
- package/dist/features/crm/index.d.ts +3 -0
- package/dist/features/crm/index.js +20 -30
- package/dist/features/dashboard/index.d.ts +69 -69
- package/dist/features/dashboard/index.js +20 -28
- package/dist/features/delivery/index.d.ts +3 -0
- package/dist/features/delivery/index.js +20 -30
- package/dist/features/knowledge/index.js +25 -9
- package/dist/features/lead-gen/index.d.ts +295 -57
- package/dist/features/lead-gen/index.js +20 -31
- package/dist/features/monitoring/index.js +20 -30
- package/dist/features/monitoring/requests/index.js +20 -25
- package/dist/features/operations/index.d.ts +183 -183
- package/dist/features/operations/index.js +18 -37
- package/dist/features/seo/index.js +3 -4
- package/dist/features/settings/index.d.ts +3 -0
- package/dist/features/settings/index.js +20 -27
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.d.ts +3 -0
- package/dist/hooks/delivery/index.js +30 -2
- package/dist/hooks/index.d.ts +112 -99
- package/dist/hooks/index.js +20 -21
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +46 -46
- package/dist/hooks/published.d.ts +112 -99
- package/dist/hooks/published.js +20 -20
- package/dist/index.css +532 -532
- package/dist/index.d.ts +9385 -5915
- package/dist/index.js +22 -26
- package/dist/initialization/index.d.ts +3 -0
- package/dist/knowledge/index.d.ts +42 -42
- package/dist/knowledge/index.js +10 -17
- package/dist/{knowledge-search-index-ORIJCEZX.js → knowledge-search-index-NBCTFIOH.js} +2 -2
- package/dist/layout/index.js +4 -10
- package/dist/organization/index.js +27 -1
- package/dist/profile/index.d.ts +3 -0
- package/dist/provider/index.d.ts +72 -39
- package/dist/provider/index.js +20 -15
- package/dist/provider/published.d.ts +40 -34
- package/dist/provider/published.js +20 -11
- package/dist/sse/index.js +26 -5
- package/dist/supabase/index.d.ts +6 -0
- package/dist/test-utils/index.js +3 -3
- package/dist/theme/index.js +2 -3
- package/dist/theme/presets/index.d.ts +28 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -2049
- package/dist/types/index.d.ts +82 -79
- package/dist/utils/index.d.ts +47 -47
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +6 -6
- package/dist/zustand/index.js +0 -3
- package/package.json +5 -5
- package/dist/chunk-3AJVNMY5.js +0 -4769
- package/dist/chunk-3MEXPLWT.js +0 -265
- package/dist/chunk-3ZMAGTWF.js +0 -18
- package/dist/chunk-4O4MII5S.js +0 -4716
- package/dist/chunk-5EYJ2GIN.js +0 -122
- package/dist/chunk-7M2VOCYN.js +0 -1
- package/dist/chunk-BPQVTIUP.js +0 -105
- package/dist/chunk-BZZCNLT6.js +0 -12
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-E565XMTQ.js +0 -17
- package/dist/chunk-HRWLKKWM.js +0 -758
- package/dist/chunk-IGDYWFNE.js +0 -5198
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IVGI4GDL.js +0 -1593
- package/dist/chunk-JFL3GRD4.js +0 -39
- package/dist/chunk-LAWLB6CT.js +0 -951
- package/dist/chunk-LGKLC5MG.js +0 -44
- package/dist/chunk-LRWTWOGP.js +0 -1778
- package/dist/chunk-MP3GPBPX.js +0 -1874
- package/dist/chunk-N55DVMAG.js +0 -14
- package/dist/chunk-NLBQTDOW.js +0 -12051
- package/dist/chunk-O6JXQ6UQ.js +0 -468
- package/dist/chunk-OBBQ2JCM.js +0 -68
- package/dist/chunk-PDHTXPSF.js +0 -12
- package/dist/chunk-PLP3NYPL.js +0 -356
- package/dist/chunk-R2XR4FCV.js +0 -48
- package/dist/chunk-R66W5UDG.js +0 -26
- package/dist/chunk-RYTEQBAO.js +0 -37
- package/dist/chunk-SDXSB3HN.js +0 -425
- package/dist/chunk-TKAYX2SP.js +0 -204
- package/dist/chunk-TUMSNGTX.js +0 -35
- package/dist/chunk-VNAZTCHA.js +0 -65
- package/dist/chunk-VNFR57DF.js +0 -87
- package/dist/chunk-VTXTZXAU.js +0 -539
- package/dist/chunk-W73ZABT6.js +0 -85
- package/dist/chunk-WU4FNWCW.js +0 -2281
- package/dist/chunk-XZGSCABI.js +0 -383
- package/dist/chunk-YNWZIWJL.js +0 -1863
- /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
- /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
|
@@ -114,8 +114,8 @@ declare const ResourceKindSchema: z.ZodEnum<{
|
|
|
114
114
|
script: "script";
|
|
115
115
|
}>;
|
|
116
116
|
declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
|
|
117
|
-
deprecated: "deprecated";
|
|
118
117
|
active: "active";
|
|
118
|
+
deprecated: "deprecated";
|
|
119
119
|
archived: "archived";
|
|
120
120
|
}>;
|
|
121
121
|
declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -126,8 +126,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
126
126
|
description: z.ZodOptional<z.ZodString>;
|
|
127
127
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
128
128
|
status: z.ZodEnum<{
|
|
129
|
-
deprecated: "deprecated";
|
|
130
129
|
active: "active";
|
|
130
|
+
deprecated: "deprecated";
|
|
131
131
|
archived: "archived";
|
|
132
132
|
}>;
|
|
133
133
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -145,12 +145,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
145
145
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
146
146
|
path: z.ZodString;
|
|
147
147
|
role: z.ZodEnum<{
|
|
148
|
-
config: "config";
|
|
149
148
|
entrypoint: "entrypoint";
|
|
150
149
|
handler: "handler";
|
|
151
150
|
schema: "schema";
|
|
152
151
|
test: "test";
|
|
153
152
|
docs: "docs";
|
|
153
|
+
config: "config";
|
|
154
154
|
}>;
|
|
155
155
|
symbol: z.ZodOptional<z.ZodString>;
|
|
156
156
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -161,10 +161,10 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
161
161
|
label: z.ZodString;
|
|
162
162
|
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
163
163
|
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
164
|
+
active: "active";
|
|
164
165
|
deprecated: "deprecated";
|
|
165
166
|
draft: "draft";
|
|
166
167
|
beta: "beta";
|
|
167
|
-
active: "active";
|
|
168
168
|
archived: "archived";
|
|
169
169
|
}>>;
|
|
170
170
|
}, z.core.$strip>>>;
|
|
@@ -176,8 +176,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
176
176
|
description: z.ZodOptional<z.ZodString>;
|
|
177
177
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
178
178
|
status: z.ZodEnum<{
|
|
179
|
-
deprecated: "deprecated";
|
|
180
179
|
active: "active";
|
|
180
|
+
deprecated: "deprecated";
|
|
181
181
|
archived: "archived";
|
|
182
182
|
}>;
|
|
183
183
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -195,12 +195,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
195
195
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
196
196
|
path: z.ZodString;
|
|
197
197
|
role: z.ZodEnum<{
|
|
198
|
-
config: "config";
|
|
199
198
|
entrypoint: "entrypoint";
|
|
200
199
|
handler: "handler";
|
|
201
200
|
schema: "schema";
|
|
202
201
|
test: "test";
|
|
203
202
|
docs: "docs";
|
|
203
|
+
config: "config";
|
|
204
204
|
}>;
|
|
205
205
|
symbol: z.ZodOptional<z.ZodString>;
|
|
206
206
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -242,10 +242,10 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
242
242
|
label: z.ZodString;
|
|
243
243
|
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
244
244
|
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
active: "active";
|
|
245
246
|
deprecated: "deprecated";
|
|
246
247
|
draft: "draft";
|
|
247
248
|
beta: "beta";
|
|
248
|
-
active: "active";
|
|
249
249
|
archived: "archived";
|
|
250
250
|
}>>;
|
|
251
251
|
}, z.core.$strip>>>;
|
|
@@ -257,8 +257,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
257
257
|
description: z.ZodOptional<z.ZodString>;
|
|
258
258
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
259
259
|
status: z.ZodEnum<{
|
|
260
|
-
deprecated: "deprecated";
|
|
261
260
|
active: "active";
|
|
261
|
+
deprecated: "deprecated";
|
|
262
262
|
archived: "archived";
|
|
263
263
|
}>;
|
|
264
264
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -276,12 +276,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
276
276
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
277
277
|
path: z.ZodString;
|
|
278
278
|
role: z.ZodEnum<{
|
|
279
|
-
config: "config";
|
|
280
279
|
entrypoint: "entrypoint";
|
|
281
280
|
handler: "handler";
|
|
282
281
|
schema: "schema";
|
|
283
282
|
test: "test";
|
|
284
283
|
docs: "docs";
|
|
284
|
+
config: "config";
|
|
285
285
|
}>;
|
|
286
286
|
symbol: z.ZodOptional<z.ZodString>;
|
|
287
287
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -296,8 +296,8 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
296
296
|
description: z.ZodOptional<z.ZodString>;
|
|
297
297
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
298
298
|
status: z.ZodEnum<{
|
|
299
|
-
deprecated: "deprecated";
|
|
300
299
|
active: "active";
|
|
300
|
+
deprecated: "deprecated";
|
|
301
301
|
archived: "archived";
|
|
302
302
|
}>;
|
|
303
303
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -315,12 +315,12 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
315
315
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
316
316
|
path: z.ZodString;
|
|
317
317
|
role: z.ZodEnum<{
|
|
318
|
-
config: "config";
|
|
319
318
|
entrypoint: "entrypoint";
|
|
320
319
|
handler: "handler";
|
|
321
320
|
schema: "schema";
|
|
322
321
|
test: "test";
|
|
323
322
|
docs: "docs";
|
|
323
|
+
config: "config";
|
|
324
324
|
}>;
|
|
325
325
|
symbol: z.ZodOptional<z.ZodString>;
|
|
326
326
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -475,108 +475,6 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
475
475
|
}, z.core.$strip>>;
|
|
476
476
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
477
477
|
|
|
478
|
-
/**
|
|
479
|
-
* Session Data Transfer Object (DTO)
|
|
480
|
-
* Transform type for API responses (snake_case DB → camelCase frontend)
|
|
481
|
-
* Used by frontend apps to display session data
|
|
482
|
-
*/
|
|
483
|
-
interface SessionDTO {
|
|
484
|
-
sessionId: string;
|
|
485
|
-
resourceId: string;
|
|
486
|
-
organizationId: string;
|
|
487
|
-
userId?: string | null;
|
|
488
|
-
turnCount: number;
|
|
489
|
-
isEnded: boolean;
|
|
490
|
-
title?: string | null;
|
|
491
|
-
memorySnapshot?: AgentMemory;
|
|
492
|
-
metadata?: Record<string, unknown> | null;
|
|
493
|
-
createdAt: Date;
|
|
494
|
-
updatedAt: Date;
|
|
495
|
-
endedAt?: Date | null;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* Time range selector for dashboard metrics
|
|
500
|
-
*/
|
|
501
|
-
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
502
|
-
/**
|
|
503
|
-
* Execution health metrics response
|
|
504
|
-
* Success rate, P95 duration, execution counts, and trend data
|
|
505
|
-
* trendData includes executionCount for throughput visualization (eliminates separate API call)
|
|
506
|
-
*/
|
|
507
|
-
interface ExecutionHealthMetrics {
|
|
508
|
-
successRate: number;
|
|
509
|
-
p95Duration: number;
|
|
510
|
-
totalExecutions: number;
|
|
511
|
-
trendData: Array<{
|
|
512
|
-
time: string;
|
|
513
|
-
rate: number;
|
|
514
|
-
successCount: number;
|
|
515
|
-
errorCount: number;
|
|
516
|
-
warningCount: number;
|
|
517
|
-
executionCount: number;
|
|
518
|
-
}>;
|
|
519
|
-
statusCounts: {
|
|
520
|
-
success: number;
|
|
521
|
-
failed: number;
|
|
522
|
-
pending: number;
|
|
523
|
-
warning: number;
|
|
524
|
-
};
|
|
525
|
-
peakPeriod: string;
|
|
526
|
-
granularity: 'hour' | 'day';
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* Business impact metrics response
|
|
530
|
-
* ROI, labor savings, and cost analysis
|
|
531
|
-
*/
|
|
532
|
-
interface BusinessImpactMetrics {
|
|
533
|
-
totalSavingsUsd: number;
|
|
534
|
-
totalCostUsd: number;
|
|
535
|
-
netSavingsUsd: number;
|
|
536
|
-
roi: number;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Cost breakdown metrics response
|
|
540
|
-
* Per-resource cost analysis
|
|
541
|
-
*/
|
|
542
|
-
interface CostBreakdownMetrics {
|
|
543
|
-
resources: Array<{
|
|
544
|
-
resourceId: string;
|
|
545
|
-
totalCostUsd: number;
|
|
546
|
-
executionCount: number;
|
|
547
|
-
avgCostUsd: number;
|
|
548
|
-
}>;
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* Dashboard metrics response
|
|
552
|
-
* Aggregates core observability metrics in a single response
|
|
553
|
-
* Note: Throughput data is now included in executionHealth.trendData.executionCount
|
|
554
|
-
*/
|
|
555
|
-
interface DashboardMetrics {
|
|
556
|
-
executionHealth: ExecutionHealthMetrics;
|
|
557
|
-
costBreakdown: CostBreakdownMetrics;
|
|
558
|
-
businessImpact: BusinessImpactMetrics;
|
|
559
|
-
/** ISO timestamp of the currently active deployment, or null if none */
|
|
560
|
-
activeDeploymentDate: string | null;
|
|
561
|
-
/** Deployment version of the active deployment, or null if none */
|
|
562
|
-
activeDeploymentVersion: string | null;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* Base Execution Engine type definitions
|
|
567
|
-
* Core types shared across all Execution Engine resources
|
|
568
|
-
*/
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* NOTE: AIResource interface has been removed and replaced with ResourceDefinition
|
|
572
|
-
* from registry/types.ts. All resources (executable and non-executable) now extend
|
|
573
|
-
* the unified ResourceDefinition base interface.
|
|
574
|
-
*
|
|
575
|
-
* AgentConfig and WorkflowConfig now extend ResourceDefinition directly.
|
|
576
|
-
* See packages/core/src/registry/types.ts for the base interface definition.
|
|
577
|
-
*/
|
|
578
|
-
type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
|
|
579
|
-
|
|
580
478
|
type JsonPrimitive = string | number | boolean | null;
|
|
581
479
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
582
480
|
[key: string]: JsonValue;
|
|
@@ -621,62 +519,13 @@ interface SystemEntry {
|
|
|
621
519
|
subsystems?: Record<string, SystemEntry>;
|
|
622
520
|
}
|
|
623
521
|
|
|
624
|
-
/**
|
|
625
|
-
* Resource Registry type definitions
|
|
626
|
-
*/
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Environment/deployment status for resources
|
|
630
|
-
*/
|
|
631
|
-
type ResourceStatus = 'dev' | 'prod';
|
|
632
|
-
/**
|
|
633
|
-
* All resource types in the platform
|
|
634
|
-
* Used as the discriminator field in ResourceDefinition
|
|
635
|
-
*/
|
|
636
|
-
type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
|
|
637
|
-
type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
|
|
638
|
-
/**
|
|
639
|
-
* Base interface for ALL platform resources
|
|
640
|
-
* Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
|
|
641
|
-
*/
|
|
642
|
-
interface ResourceDefinition {
|
|
643
|
-
/** Unique resource identifier */
|
|
644
|
-
resourceId: string;
|
|
645
|
-
/** Display name */
|
|
646
|
-
name: string;
|
|
647
|
-
/** Purpose and functionality description */
|
|
648
|
-
description: string;
|
|
649
|
-
/** Version for change tracking and evolution */
|
|
650
|
-
version: string;
|
|
651
|
-
/** Resource type discriminator */
|
|
652
|
-
type: ResourceType;
|
|
653
|
-
/** Environment/deployment status */
|
|
654
|
-
status: ResourceStatus;
|
|
655
|
-
/** Graph links to Organization Model nodes */
|
|
656
|
-
links?: ResourceLink[];
|
|
657
|
-
/** Infrastructure category for filtering */
|
|
658
|
-
category?: ResourceCategory;
|
|
659
|
-
/** Whether the agent supports multi-turn sessions (agents only) */
|
|
660
|
-
sessionCapable?: boolean;
|
|
661
|
-
/** Whether the resource is local (monorepo) or remote (externally deployed) */
|
|
662
|
-
origin?: 'local' | 'remote';
|
|
663
|
-
/** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
|
|
664
|
-
systemPath?: string;
|
|
665
|
-
/** Display metadata for the owning OM System */
|
|
666
|
-
system?: ResourceSystemSummary;
|
|
667
|
-
/** Governance lifecycle status from the OM Resource descriptor */
|
|
668
|
-
governanceStatus?: ResourceGovernanceStatus;
|
|
669
|
-
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
670
|
-
archived?: boolean;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
522
|
declare const SurfaceTypeSchema: z.ZodEnum<{
|
|
674
523
|
dashboard: "dashboard";
|
|
675
524
|
settings: "settings";
|
|
676
525
|
graph: "graph";
|
|
677
|
-
list: "list";
|
|
678
526
|
page: "page";
|
|
679
527
|
detail: "detail";
|
|
528
|
+
list: "list";
|
|
680
529
|
}>;
|
|
681
530
|
interface SidebarSurfaceNode {
|
|
682
531
|
type: 'surface';
|
|
@@ -708,10 +557,10 @@ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
|
|
|
708
557
|
declare const LinkSchema: z.ZodObject<{
|
|
709
558
|
nodeId: z.ZodString;
|
|
710
559
|
kind: z.ZodEnum<{
|
|
711
|
-
links: "links";
|
|
712
560
|
affects: "affects";
|
|
713
|
-
effects: "effects";
|
|
714
561
|
actions: "actions";
|
|
562
|
+
effects: "effects";
|
|
563
|
+
links: "links";
|
|
715
564
|
reads: "reads";
|
|
716
565
|
writes: "writes";
|
|
717
566
|
emits: "emits";
|
|
@@ -903,7 +752,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
903
752
|
lastModified: string;
|
|
904
753
|
} | undefined;
|
|
905
754
|
}>>;
|
|
906
|
-
branding: z.ZodObject<{
|
|
755
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
907
756
|
organizationName: z.ZodString;
|
|
908
757
|
productName: z.ZodString;
|
|
909
758
|
shortName: z.ZodString;
|
|
@@ -912,7 +761,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
912
761
|
light: z.ZodOptional<z.ZodString>;
|
|
913
762
|
dark: z.ZodOptional<z.ZodString>;
|
|
914
763
|
}, z.core.$strip>>;
|
|
915
|
-
}, z.core.$strip
|
|
764
|
+
}, z.core.$strip>>;
|
|
916
765
|
navigation: z.ZodDefault<z.ZodObject<{
|
|
917
766
|
sidebar: z.ZodDefault<z.ZodObject<{
|
|
918
767
|
primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
|
|
@@ -1133,8 +982,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1133
982
|
description: z.ZodOptional<z.ZodString>;
|
|
1134
983
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
1135
984
|
status: z.ZodEnum<{
|
|
1136
|
-
deprecated: "deprecated";
|
|
1137
985
|
active: "active";
|
|
986
|
+
deprecated: "deprecated";
|
|
1138
987
|
archived: "archived";
|
|
1139
988
|
}>;
|
|
1140
989
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -1152,12 +1001,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1152
1001
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1153
1002
|
path: z.ZodString;
|
|
1154
1003
|
role: z.ZodEnum<{
|
|
1155
|
-
config: "config";
|
|
1156
1004
|
entrypoint: "entrypoint";
|
|
1157
1005
|
handler: "handler";
|
|
1158
1006
|
schema: "schema";
|
|
1159
1007
|
test: "test";
|
|
1160
1008
|
docs: "docs";
|
|
1009
|
+
config: "config";
|
|
1161
1010
|
}>;
|
|
1162
1011
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1163
1012
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1168,10 +1017,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1168
1017
|
label: z.ZodString;
|
|
1169
1018
|
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
1170
1019
|
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
1020
|
+
active: "active";
|
|
1171
1021
|
deprecated: "deprecated";
|
|
1172
1022
|
draft: "draft";
|
|
1173
1023
|
beta: "beta";
|
|
1174
|
-
active: "active";
|
|
1175
1024
|
archived: "archived";
|
|
1176
1025
|
}>>;
|
|
1177
1026
|
}, z.core.$strip>>>;
|
|
@@ -1183,8 +1032,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1183
1032
|
description: z.ZodOptional<z.ZodString>;
|
|
1184
1033
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
1185
1034
|
status: z.ZodEnum<{
|
|
1186
|
-
deprecated: "deprecated";
|
|
1187
1035
|
active: "active";
|
|
1036
|
+
deprecated: "deprecated";
|
|
1188
1037
|
archived: "archived";
|
|
1189
1038
|
}>;
|
|
1190
1039
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -1202,12 +1051,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1202
1051
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1203
1052
|
path: z.ZodString;
|
|
1204
1053
|
role: z.ZodEnum<{
|
|
1205
|
-
config: "config";
|
|
1206
1054
|
entrypoint: "entrypoint";
|
|
1207
1055
|
handler: "handler";
|
|
1208
1056
|
schema: "schema";
|
|
1209
1057
|
test: "test";
|
|
1210
1058
|
docs: "docs";
|
|
1059
|
+
config: "config";
|
|
1211
1060
|
}>;
|
|
1212
1061
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1213
1062
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1249,10 +1098,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1249
1098
|
label: z.ZodString;
|
|
1250
1099
|
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
1251
1100
|
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
1101
|
+
active: "active";
|
|
1252
1102
|
deprecated: "deprecated";
|
|
1253
1103
|
draft: "draft";
|
|
1254
1104
|
beta: "beta";
|
|
1255
|
-
active: "active";
|
|
1256
1105
|
archived: "archived";
|
|
1257
1106
|
}>>;
|
|
1258
1107
|
}, z.core.$strip>>>;
|
|
@@ -1264,8 +1113,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1264
1113
|
description: z.ZodOptional<z.ZodString>;
|
|
1265
1114
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
1266
1115
|
status: z.ZodEnum<{
|
|
1267
|
-
deprecated: "deprecated";
|
|
1268
1116
|
active: "active";
|
|
1117
|
+
deprecated: "deprecated";
|
|
1269
1118
|
archived: "archived";
|
|
1270
1119
|
}>;
|
|
1271
1120
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -1283,12 +1132,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1283
1132
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1284
1133
|
path: z.ZodString;
|
|
1285
1134
|
role: z.ZodEnum<{
|
|
1286
|
-
config: "config";
|
|
1287
1135
|
entrypoint: "entrypoint";
|
|
1288
1136
|
handler: "handler";
|
|
1289
1137
|
schema: "schema";
|
|
1290
1138
|
test: "test";
|
|
1291
1139
|
docs: "docs";
|
|
1140
|
+
config: "config";
|
|
1292
1141
|
}>;
|
|
1293
1142
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1294
1143
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1303,8 +1152,8 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1303
1152
|
description: z.ZodOptional<z.ZodString>;
|
|
1304
1153
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
1305
1154
|
status: z.ZodEnum<{
|
|
1306
|
-
deprecated: "deprecated";
|
|
1307
1155
|
active: "active";
|
|
1156
|
+
deprecated: "deprecated";
|
|
1308
1157
|
archived: "archived";
|
|
1309
1158
|
}>;
|
|
1310
1159
|
ontology: z.ZodOptional<z.ZodObject<{
|
|
@@ -1322,12 +1171,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1322
1171
|
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1323
1172
|
path: z.ZodString;
|
|
1324
1173
|
role: z.ZodEnum<{
|
|
1325
|
-
config: "config";
|
|
1326
1174
|
entrypoint: "entrypoint";
|
|
1327
1175
|
handler: "handler";
|
|
1328
1176
|
schema: "schema";
|
|
1329
1177
|
test: "test";
|
|
1330
1178
|
docs: "docs";
|
|
1179
|
+
config: "config";
|
|
1331
1180
|
}>;
|
|
1332
1181
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1333
1182
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1441,10 +1290,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1441
1290
|
}, z.core.$strip>], "kind">>>;
|
|
1442
1291
|
knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1443
1292
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
1293
|
+
active: "active";
|
|
1444
1294
|
deprecated: "deprecated";
|
|
1445
1295
|
draft: "draft";
|
|
1446
1296
|
beta: "beta";
|
|
1447
|
-
active: "active";
|
|
1448
1297
|
archived: "archived";
|
|
1449
1298
|
}>>;
|
|
1450
1299
|
}, z.core.$strip>>>>;
|
|
@@ -1522,10 +1371,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1522
1371
|
roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1523
1372
|
}, z.core.$strip>>;
|
|
1524
1373
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
1374
|
+
active: "active";
|
|
1525
1375
|
deprecated: "deprecated";
|
|
1526
1376
|
draft: "draft";
|
|
1527
1377
|
beta: "beta";
|
|
1528
|
-
active: "active";
|
|
1529
1378
|
archived: "archived";
|
|
1530
1379
|
}>>;
|
|
1531
1380
|
}, z.core.$strip>>>>;
|
|
@@ -1608,12 +1457,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1608
1457
|
kind: z.ZodEnum<{
|
|
1609
1458
|
knowledge: "knowledge";
|
|
1610
1459
|
system: "system";
|
|
1460
|
+
resource: "resource";
|
|
1611
1461
|
action: "action";
|
|
1612
1462
|
ontology: "ontology";
|
|
1613
1463
|
role: "role";
|
|
1614
|
-
goal: "goal";
|
|
1615
|
-
resource: "resource";
|
|
1616
1464
|
stage: "stage";
|
|
1465
|
+
goal: "goal";
|
|
1617
1466
|
"customer-segment": "customer-segment";
|
|
1618
1467
|
offering: "offering";
|
|
1619
1468
|
}>;
|
|
@@ -1623,7 +1472,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1623
1472
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
1624
1473
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1625
1474
|
target: {
|
|
1626
|
-
kind: "knowledge" | "system" | "
|
|
1475
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1627
1476
|
id: string;
|
|
1628
1477
|
};
|
|
1629
1478
|
nodeId: string;
|
|
@@ -1631,7 +1480,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1631
1480
|
nodeId: string;
|
|
1632
1481
|
} | {
|
|
1633
1482
|
target: {
|
|
1634
|
-
kind: "knowledge" | "system" | "
|
|
1483
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1635
1484
|
id: string;
|
|
1636
1485
|
};
|
|
1637
1486
|
}>>>>;
|
|
@@ -1642,6 +1491,157 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
1642
1491
|
|
|
1643
1492
|
type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
|
|
1644
1493
|
|
|
1494
|
+
/**
|
|
1495
|
+
* Session Data Transfer Object (DTO)
|
|
1496
|
+
* Transform type for API responses (snake_case DB → camelCase frontend)
|
|
1497
|
+
* Used by frontend apps to display session data
|
|
1498
|
+
*/
|
|
1499
|
+
interface SessionDTO {
|
|
1500
|
+
sessionId: string;
|
|
1501
|
+
resourceId: string;
|
|
1502
|
+
organizationId: string;
|
|
1503
|
+
userId?: string | null;
|
|
1504
|
+
turnCount: number;
|
|
1505
|
+
isEnded: boolean;
|
|
1506
|
+
title?: string | null;
|
|
1507
|
+
memorySnapshot?: AgentMemory;
|
|
1508
|
+
metadata?: Record<string, unknown> | null;
|
|
1509
|
+
createdAt: Date;
|
|
1510
|
+
updatedAt: Date;
|
|
1511
|
+
endedAt?: Date | null;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Time range selector for dashboard metrics
|
|
1516
|
+
*/
|
|
1517
|
+
type TimeRange = '1h' | '24h' | '7d' | '30d';
|
|
1518
|
+
/**
|
|
1519
|
+
* Execution health metrics response
|
|
1520
|
+
* Success rate, P95 duration, execution counts, and trend data
|
|
1521
|
+
* trendData includes executionCount for throughput visualization (eliminates separate API call)
|
|
1522
|
+
*/
|
|
1523
|
+
interface ExecutionHealthMetrics {
|
|
1524
|
+
successRate: number;
|
|
1525
|
+
p95Duration: number;
|
|
1526
|
+
totalExecutions: number;
|
|
1527
|
+
trendData: Array<{
|
|
1528
|
+
time: string;
|
|
1529
|
+
rate: number;
|
|
1530
|
+
successCount: number;
|
|
1531
|
+
errorCount: number;
|
|
1532
|
+
warningCount: number;
|
|
1533
|
+
executionCount: number;
|
|
1534
|
+
}>;
|
|
1535
|
+
statusCounts: {
|
|
1536
|
+
success: number;
|
|
1537
|
+
failed: number;
|
|
1538
|
+
pending: number;
|
|
1539
|
+
warning: number;
|
|
1540
|
+
};
|
|
1541
|
+
peakPeriod: string;
|
|
1542
|
+
granularity: 'hour' | 'day';
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
* Business impact metrics response
|
|
1546
|
+
* ROI, labor savings, and cost analysis
|
|
1547
|
+
*/
|
|
1548
|
+
interface BusinessImpactMetrics {
|
|
1549
|
+
totalSavingsUsd: number;
|
|
1550
|
+
totalCostUsd: number;
|
|
1551
|
+
netSavingsUsd: number;
|
|
1552
|
+
roi: number;
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Cost breakdown metrics response
|
|
1556
|
+
* Per-resource cost analysis
|
|
1557
|
+
*/
|
|
1558
|
+
interface CostBreakdownMetrics {
|
|
1559
|
+
resources: Array<{
|
|
1560
|
+
resourceId: string;
|
|
1561
|
+
totalCostUsd: number;
|
|
1562
|
+
executionCount: number;
|
|
1563
|
+
avgCostUsd: number;
|
|
1564
|
+
}>;
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Dashboard metrics response
|
|
1568
|
+
* Aggregates core observability metrics in a single response
|
|
1569
|
+
* Note: Throughput data is now included in executionHealth.trendData.executionCount
|
|
1570
|
+
*/
|
|
1571
|
+
interface DashboardMetrics {
|
|
1572
|
+
executionHealth: ExecutionHealthMetrics;
|
|
1573
|
+
costBreakdown: CostBreakdownMetrics;
|
|
1574
|
+
businessImpact: BusinessImpactMetrics;
|
|
1575
|
+
/** ISO timestamp of the currently active deployment, or null if none */
|
|
1576
|
+
activeDeploymentDate: string | null;
|
|
1577
|
+
/** Deployment version of the active deployment, or null if none */
|
|
1578
|
+
activeDeploymentVersion: string | null;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* Base Execution Engine type definitions
|
|
1583
|
+
* Core types shared across all Execution Engine resources
|
|
1584
|
+
*/
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* NOTE: AIResource interface has been removed and replaced with ResourceDefinition
|
|
1588
|
+
* from registry/types.ts. All resources (executable and non-executable) now extend
|
|
1589
|
+
* the unified ResourceDefinition base interface.
|
|
1590
|
+
*
|
|
1591
|
+
* AgentConfig and WorkflowConfig now extend ResourceDefinition directly.
|
|
1592
|
+
* See packages/core/src/registry/types.ts for the base interface definition.
|
|
1593
|
+
*/
|
|
1594
|
+
type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Resource Registry type definitions
|
|
1598
|
+
*/
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Environment/deployment status for resources
|
|
1602
|
+
*/
|
|
1603
|
+
type ResourceStatus = 'dev' | 'prod';
|
|
1604
|
+
/**
|
|
1605
|
+
* All resource types in the platform
|
|
1606
|
+
* Used as the discriminator field in ResourceDefinition
|
|
1607
|
+
*/
|
|
1608
|
+
type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
|
|
1609
|
+
type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
|
|
1610
|
+
/**
|
|
1611
|
+
* Base interface for ALL platform resources
|
|
1612
|
+
* Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
|
|
1613
|
+
*/
|
|
1614
|
+
interface ResourceDefinition {
|
|
1615
|
+
/** Unique resource identifier */
|
|
1616
|
+
resourceId: string;
|
|
1617
|
+
/** Display name */
|
|
1618
|
+
name: string;
|
|
1619
|
+
/** Purpose and functionality description */
|
|
1620
|
+
description: string;
|
|
1621
|
+
/** Version for change tracking and evolution */
|
|
1622
|
+
version: string;
|
|
1623
|
+
/** Resource type discriminator */
|
|
1624
|
+
type: ResourceType;
|
|
1625
|
+
/** Environment/deployment status */
|
|
1626
|
+
status: ResourceStatus;
|
|
1627
|
+
/** Graph links to Organization Model nodes */
|
|
1628
|
+
links?: ResourceLink[];
|
|
1629
|
+
/** Infrastructure category for filtering */
|
|
1630
|
+
category?: ResourceCategory;
|
|
1631
|
+
/** Whether the agent supports multi-turn sessions (agents only) */
|
|
1632
|
+
sessionCapable?: boolean;
|
|
1633
|
+
/** Whether the resource is local (monorepo) or remote (externally deployed) */
|
|
1634
|
+
origin?: 'local' | 'remote';
|
|
1635
|
+
/** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
|
|
1636
|
+
systemPath?: string;
|
|
1637
|
+
/** Display metadata for the owning OM System */
|
|
1638
|
+
system?: ResourceSystemSummary;
|
|
1639
|
+
/** Governance lifecycle status from the OM Resource descriptor */
|
|
1640
|
+
governanceStatus?: ResourceGovernanceStatus;
|
|
1641
|
+
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
1642
|
+
archived?: boolean;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
1645
|
declare const ResourceCategorySchema: z.ZodEnum<{
|
|
1646
1646
|
diagnostic: "diagnostic";
|
|
1647
1647
|
production: "production";
|