@elevasis/ui 2.75.0 → 2.77.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.
Files changed (110) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.d.ts +277 -249
  3. package/dist/app/index.js +12 -11
  4. package/dist/auth/context.d.ts +1 -2
  5. package/dist/auth/index.d.ts +1 -2
  6. package/dist/auth/index.js +6 -7
  7. package/dist/charts/index.js +6 -7
  8. package/dist/{chunk-CRPH5AAB.js → chunk-2GIHWU5O.js} +4 -3
  9. package/dist/chunk-2Y6AKWGU.js +42 -0
  10. package/dist/chunk-3QYRZSHP.js +854 -0
  11. package/dist/{chunk-L3NBMLRN.js → chunk-3RK2NNJX.js} +1 -1
  12. package/dist/{chunk-R6NMRXNO.js → chunk-4WLAVUPS.js} +1 -1
  13. package/dist/{chunk-DTEGVSJ6.js → chunk-5R4I2PAN.js} +9 -43
  14. package/dist/chunk-6B4ZPBQJ.js +7 -0
  15. package/dist/{chunk-QFS2GZMV.js → chunk-73G3I5HJ.js} +160 -160
  16. package/dist/{chunk-7OOFMEX6.js → chunk-BFLYDVEN.js} +28 -41
  17. package/dist/{chunk-VWGCURZF.js → chunk-BG6PWDJ3.js} +381 -381
  18. package/dist/{chunk-5VF5LPYS.js → chunk-BV2RNLPP.js} +1 -1
  19. package/dist/{chunk-NMHQAYZU.js → chunk-CTT4RDXE.js} +150 -151
  20. package/dist/chunk-E2LJ3FRA.js +237 -0
  21. package/dist/{chunk-5RH6NYZH.js → chunk-EFQLXRYT.js} +1 -2
  22. package/dist/{chunk-M6VAZAQW.js → chunk-EVNLJHDD.js} +3 -3
  23. package/dist/{chunk-NYIIRZSA.js → chunk-GDQQX5SL.js} +4 -42
  24. package/dist/{chunk-IYATYH5I.js → chunk-GFSOQH3N.js} +1 -1
  25. package/dist/{chunk-G7O4CBMC.js → chunk-H5AEYSVX.js} +164 -3
  26. package/dist/{chunk-ZFISGKYW.js → chunk-IIEZXXDD.js} +1 -1
  27. package/dist/{chunk-5SLRGUC4.js → chunk-INCEZAM3.js} +1 -1
  28. package/dist/{chunk-ZG6YJUT4.js → chunk-JZQNUQE4.js} +1 -1
  29. package/dist/{chunk-SB3IHM5Y.js → chunk-K55TU6CC.js} +2023 -1700
  30. package/dist/chunk-KB5CAN5D.js +33 -0
  31. package/dist/{chunk-OGHTJKBV.js → chunk-KMA4FOSV.js} +5682 -5675
  32. package/dist/{chunk-ICHDIVQO.js → chunk-KXNRTJAE.js} +1 -1
  33. package/dist/{chunk-MLHZUN2X.js → chunk-MGAELVTZ.js} +12 -12
  34. package/dist/chunk-MKH2KOAO.js +39 -0
  35. package/dist/{chunk-6BJ5HMMC.js → chunk-NAPXMYFW.js} +35 -362
  36. package/dist/{chunk-GDTK33QT.js → chunk-OGG3QJYW.js} +14 -5
  37. package/dist/{chunk-SN7X5N2A.js → chunk-P6HHXMLJ.js} +1 -1
  38. package/dist/{chunk-SEYOVNS5.js → chunk-QAILYRC2.js} +1 -1
  39. package/dist/{chunk-RBGVNPA6.js → chunk-RXZ3XDBM.js} +1 -1
  40. package/dist/{chunk-2ZRY3ARL.js → chunk-SPW6UA6B.js} +1 -1
  41. package/dist/{chunk-3H5DIJN7.js → chunk-SVZR4GYA.js} +1 -1
  42. package/dist/{chunk-47YJVIZE.js → chunk-UEY4AB3R.js} +789 -66
  43. package/dist/{chunk-LFLM723H.js → chunk-UL6MPMKY.js} +1 -1
  44. package/dist/{chunk-TX3UHDL5.js → chunk-WELN7DDV.js} +2 -2
  45. package/dist/{chunk-D3XXPCCK.js → chunk-WJN2VVVJ.js} +1 -1
  46. package/dist/{chunk-DMSTDZCJ.js → chunk-XODQUPFW.js} +11 -11
  47. package/dist/components/index.d.ts +135 -25
  48. package/dist/components/index.js +2165 -1996
  49. package/dist/components/navigation/index.js +7 -8
  50. package/dist/features/auth/index.d.ts +35 -3716
  51. package/dist/features/auth/index.js +9 -10
  52. package/dist/features/clients/index.js +18 -12
  53. package/dist/features/content/index.js +27 -27
  54. package/dist/features/crm/index.css +59 -59
  55. package/dist/features/crm/index.d.ts +17 -1
  56. package/dist/features/crm/index.js +13 -11
  57. package/dist/features/dashboard/index.css +59 -59
  58. package/dist/features/dashboard/index.js +8 -9
  59. package/dist/features/delivery/index.d.ts +3 -0
  60. package/dist/features/delivery/index.js +21 -20
  61. package/dist/features/knowledge/index.js +6 -7
  62. package/dist/features/lead-gen/index.css +59 -59
  63. package/dist/features/lead-gen/index.d.ts +3921 -4
  64. package/dist/features/lead-gen/index.js +15 -13
  65. package/dist/features/monitoring/index.js +10 -11
  66. package/dist/features/monitoring/requests/index.css +59 -59
  67. package/dist/features/monitoring/requests/index.js +8 -9
  68. package/dist/features/notes/index.js +4 -4
  69. package/dist/features/operations/index.css +59 -59
  70. package/dist/features/operations/index.js +13 -15
  71. package/dist/features/seo/index.css +659 -0
  72. package/dist/features/seo/index.d.ts +3979 -1
  73. package/dist/features/seo/index.js +31 -2
  74. package/dist/features/settings/index.css +59 -59
  75. package/dist/features/settings/index.d.ts +96 -3742
  76. package/dist/features/settings/index.js +10 -12
  77. package/dist/hooks/access/index.js +6 -7
  78. package/dist/hooks/delivery/index.css +59 -59
  79. package/dist/hooks/delivery/index.d.ts +12 -4
  80. package/dist/hooks/delivery/index.js +3 -3
  81. package/dist/hooks/published.d.ts +83 -29
  82. package/dist/hooks/published.js +19 -19
  83. package/dist/initialization/index.d.ts +35 -3716
  84. package/dist/knowledge/index.js +11 -11
  85. package/dist/layout/index.d.ts +55 -2
  86. package/dist/layout/index.js +10 -10
  87. package/dist/organization/index.css +59 -59
  88. package/dist/organization/index.d.ts +20 -4
  89. package/dist/profile/index.d.ts +81 -3716
  90. package/dist/provider/ElevasisServiceContext.d.ts +1 -2
  91. package/dist/provider/index.d.ts +4 -2
  92. package/dist/provider/index.js +6 -7
  93. package/dist/provider/published.d.ts +4 -2
  94. package/dist/provider/published.js +6 -7
  95. package/dist/test-utils/index.d.ts +1 -2
  96. package/dist/test-utils/index.js +3 -3
  97. package/dist/theme/index.js +3 -3
  98. package/dist/theme/presets/index.js +1 -1
  99. package/dist/types/index.d.ts +298 -251
  100. package/dist/utils/index.d.ts +1 -1
  101. package/dist/utils/index.js +1 -1
  102. package/package.json +4 -8
  103. package/src/hooks/README.md +22 -23
  104. package/dist/chunk-6ZAP3FOA.js +0 -93
  105. package/dist/chunk-AH52XQB7.js +0 -1
  106. package/dist/chunk-DVAOCHIF.js +0 -165
  107. package/dist/chunk-MISHPEJX.js +0 -244
  108. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -879
  109. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +0 -2
  110. /package/dist/{chunk-A2SB32YV.js → chunk-5ZK7K7YP.js} +0 -0
@@ -1,879 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
4
- active: "active";
5
- deprecated: "deprecated";
6
- archived: "archived";
7
- }>;
8
- declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
- id: z.ZodString;
10
- order: z.ZodDefault<z.ZodNumber>;
11
- systemPath: z.ZodString;
12
- title: z.ZodOptional<z.ZodString>;
13
- description: z.ZodOptional<z.ZodString>;
14
- ownerRoleId: z.ZodOptional<z.ZodString>;
15
- status: z.ZodEnum<{
16
- active: "active";
17
- deprecated: "deprecated";
18
- archived: "archived";
19
- }>;
20
- ontology: z.ZodOptional<z.ZodObject<{
21
- actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
- primaryAction: z.ZodOptional<z.ZodString>;
23
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
- contract: z.ZodOptional<z.ZodObject<{
28
- input: z.ZodOptional<z.ZodString>;
29
- output: z.ZodOptional<z.ZodString>;
30
- }, z.core.$strip>>;
31
- }, z.core.$strip>>;
32
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
33
- path: z.ZodString;
34
- role: z.ZodEnum<{
35
- entrypoint: "entrypoint";
36
- handler: "handler";
37
- schema: "schema";
38
- test: "test";
39
- docs: "docs";
40
- config: "config";
41
- }>;
42
- symbol: z.ZodOptional<z.ZodString>;
43
- description: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>>>;
45
- kind: z.ZodLiteral<"workflow">;
46
- emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
- eventKey: z.ZodString;
48
- label: z.ZodString;
49
- payloadSchema: z.ZodOptional<z.ZodString>;
50
- lifecycle: z.ZodOptional<z.ZodEnum<{
51
- active: "active";
52
- deprecated: "deprecated";
53
- draft: "draft";
54
- beta: "beta";
55
- archived: "archived";
56
- }>>;
57
- }, z.core.$strip>>>;
58
- }, z.core.$strip>, z.ZodObject<{
59
- id: z.ZodString;
60
- order: z.ZodDefault<z.ZodNumber>;
61
- systemPath: z.ZodString;
62
- title: z.ZodOptional<z.ZodString>;
63
- description: z.ZodOptional<z.ZodString>;
64
- ownerRoleId: z.ZodOptional<z.ZodString>;
65
- status: z.ZodEnum<{
66
- active: "active";
67
- deprecated: "deprecated";
68
- archived: "archived";
69
- }>;
70
- ontology: z.ZodOptional<z.ZodObject<{
71
- actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
- primaryAction: z.ZodOptional<z.ZodString>;
73
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
- contract: z.ZodOptional<z.ZodObject<{
78
- input: z.ZodOptional<z.ZodString>;
79
- output: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strip>>;
81
- }, z.core.$strip>>;
82
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
83
- path: z.ZodString;
84
- role: z.ZodEnum<{
85
- entrypoint: "entrypoint";
86
- handler: "handler";
87
- schema: "schema";
88
- test: "test";
89
- docs: "docs";
90
- config: "config";
91
- }>;
92
- symbol: z.ZodOptional<z.ZodString>;
93
- description: z.ZodOptional<z.ZodString>;
94
- }, z.core.$strip>>>;
95
- kind: z.ZodLiteral<"agent">;
96
- agentKind: z.ZodEnum<{
97
- platform: "platform";
98
- orchestrator: "orchestrator";
99
- specialist: "specialist";
100
- utility: "utility";
101
- }>;
102
- actsAsRoleId: z.ZodOptional<z.ZodString>;
103
- sessionCapable: z.ZodBoolean;
104
- invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
105
- kind: z.ZodLiteral<"slash-command">;
106
- command: z.ZodString;
107
- toolFactory: z.ZodOptional<z.ZodString>;
108
- }, z.core.$strip>, z.ZodObject<{
109
- kind: z.ZodLiteral<"mcp-tool">;
110
- server: z.ZodString;
111
- name: z.ZodString;
112
- }, z.core.$strip>, z.ZodObject<{
113
- kind: z.ZodLiteral<"api-endpoint">;
114
- method: z.ZodEnum<{
115
- GET: "GET";
116
- POST: "POST";
117
- PATCH: "PATCH";
118
- DELETE: "DELETE";
119
- }>;
120
- path: z.ZodString;
121
- requestSchema: z.ZodOptional<z.ZodString>;
122
- responseSchema: z.ZodOptional<z.ZodString>;
123
- }, z.core.$strip>, z.ZodObject<{
124
- kind: z.ZodLiteral<"script-execution">;
125
- resourceId: z.ZodString;
126
- }, z.core.$strip>], "kind">>>;
127
- emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
- eventKey: z.ZodString;
129
- label: z.ZodString;
130
- payloadSchema: z.ZodOptional<z.ZodString>;
131
- lifecycle: z.ZodOptional<z.ZodEnum<{
132
- active: "active";
133
- deprecated: "deprecated";
134
- draft: "draft";
135
- beta: "beta";
136
- archived: "archived";
137
- }>>;
138
- }, z.core.$strip>>>;
139
- }, z.core.$strip>, z.ZodObject<{
140
- id: z.ZodString;
141
- order: z.ZodDefault<z.ZodNumber>;
142
- systemPath: z.ZodString;
143
- title: z.ZodOptional<z.ZodString>;
144
- description: z.ZodOptional<z.ZodString>;
145
- ownerRoleId: z.ZodOptional<z.ZodString>;
146
- status: z.ZodEnum<{
147
- active: "active";
148
- deprecated: "deprecated";
149
- archived: "archived";
150
- }>;
151
- ontology: z.ZodOptional<z.ZodObject<{
152
- actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
- primaryAction: z.ZodOptional<z.ZodString>;
154
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
156
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
- contract: z.ZodOptional<z.ZodObject<{
159
- input: z.ZodOptional<z.ZodString>;
160
- output: z.ZodOptional<z.ZodString>;
161
- }, z.core.$strip>>;
162
- }, z.core.$strip>>;
163
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
164
- path: z.ZodString;
165
- role: z.ZodEnum<{
166
- entrypoint: "entrypoint";
167
- handler: "handler";
168
- schema: "schema";
169
- test: "test";
170
- docs: "docs";
171
- config: "config";
172
- }>;
173
- symbol: z.ZodOptional<z.ZodString>;
174
- description: z.ZodOptional<z.ZodString>;
175
- }, z.core.$strip>>>;
176
- kind: z.ZodLiteral<"integration">;
177
- provider: z.ZodString;
178
- }, z.core.$strip>, z.ZodObject<{
179
- id: z.ZodString;
180
- order: z.ZodDefault<z.ZodNumber>;
181
- systemPath: z.ZodString;
182
- title: z.ZodOptional<z.ZodString>;
183
- description: z.ZodOptional<z.ZodString>;
184
- ownerRoleId: z.ZodOptional<z.ZodString>;
185
- status: z.ZodEnum<{
186
- active: "active";
187
- deprecated: "deprecated";
188
- archived: "archived";
189
- }>;
190
- ontology: z.ZodOptional<z.ZodObject<{
191
- actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
- primaryAction: z.ZodOptional<z.ZodString>;
193
- reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
- writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
- usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
- emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
- contract: z.ZodOptional<z.ZodObject<{
198
- input: z.ZodOptional<z.ZodString>;
199
- output: z.ZodOptional<z.ZodString>;
200
- }, z.core.$strip>>;
201
- }, z.core.$strip>>;
202
- codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
203
- path: z.ZodString;
204
- role: z.ZodEnum<{
205
- entrypoint: "entrypoint";
206
- handler: "handler";
207
- schema: "schema";
208
- test: "test";
209
- docs: "docs";
210
- config: "config";
211
- }>;
212
- symbol: z.ZodOptional<z.ZodString>;
213
- description: z.ZodOptional<z.ZodString>;
214
- }, z.core.$strip>>>;
215
- kind: z.ZodLiteral<"script">;
216
- language: z.ZodEnum<{
217
- shell: "shell";
218
- sql: "sql";
219
- typescript: "typescript";
220
- python: "python";
221
- }>;
222
- source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
223
- file: z.ZodString;
224
- }, z.core.$strip>]>;
225
- }, z.core.$strip>], "kind">;
226
- type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
227
- type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
228
-
229
- declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
230
- objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
231
- id: z.ZodString;
232
- label: z.ZodOptional<z.ZodString>;
233
- description: z.ZodOptional<z.ZodString>;
234
- ownerSystemId: z.ZodOptional<z.ZodString>;
235
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
236
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
237
- storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
238
- rowSchema: z.ZodOptional<z.ZodString>;
239
- stateCatalogId: z.ZodOptional<z.ZodString>;
240
- }, z.core.$strict>>>>;
241
- linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
242
- id: z.ZodString;
243
- label: z.ZodOptional<z.ZodString>;
244
- description: z.ZodOptional<z.ZodString>;
245
- ownerSystemId: z.ZodOptional<z.ZodString>;
246
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
247
- from: z.ZodString;
248
- to: z.ZodString;
249
- cardinality: z.ZodOptional<z.ZodString>;
250
- via: z.ZodOptional<z.ZodString>;
251
- }, z.core.$strict>>>>;
252
- actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
253
- id: z.ZodString;
254
- label: z.ZodOptional<z.ZodString>;
255
- description: z.ZodOptional<z.ZodString>;
256
- ownerSystemId: z.ZodOptional<z.ZodString>;
257
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
- actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
259
- input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
260
- effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
261
- resourceId: z.ZodOptional<z.ZodString>;
262
- invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
263
- lifecycle: z.ZodOptional<z.ZodString>;
264
- legacyActionId: z.ZodOptional<z.ZodString>;
265
- }, z.core.$strict>>>>;
266
- catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
267
- id: z.ZodString;
268
- label: z.ZodOptional<z.ZodString>;
269
- description: z.ZodOptional<z.ZodString>;
270
- ownerSystemId: z.ZodOptional<z.ZodString>;
271
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
- kind: z.ZodOptional<z.ZodString>;
273
- appliesTo: z.ZodOptional<z.ZodString>;
274
- entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
275
- legacyCatalogKey: z.ZodOptional<z.ZodString>;
276
- legacyPipelineKey: z.ZodOptional<z.ZodString>;
277
- legacyEntityKey: z.ZodOptional<z.ZodString>;
278
- }, z.core.$strict>>>>;
279
- eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
280
- id: z.ZodString;
281
- label: z.ZodOptional<z.ZodString>;
282
- description: z.ZodOptional<z.ZodString>;
283
- ownerSystemId: z.ZodOptional<z.ZodString>;
284
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
285
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
286
- }, z.core.$strict>>>>;
287
- interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
288
- id: z.ZodString;
289
- label: z.ZodOptional<z.ZodString>;
290
- description: z.ZodOptional<z.ZodString>;
291
- ownerSystemId: z.ZodOptional<z.ZodString>;
292
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
293
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
294
- }, z.core.$strict>>>>;
295
- valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
296
- id: z.ZodString;
297
- label: z.ZodOptional<z.ZodString>;
298
- description: z.ZodOptional<z.ZodString>;
299
- ownerSystemId: z.ZodOptional<z.ZodString>;
300
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
301
- primitive: z.ZodOptional<z.ZodString>;
302
- }, z.core.$strict>>>>;
303
- sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
304
- id: z.ZodString;
305
- label: z.ZodOptional<z.ZodString>;
306
- description: z.ZodOptional<z.ZodString>;
307
- ownerSystemId: z.ZodOptional<z.ZodString>;
308
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
309
- valueType: z.ZodOptional<z.ZodString>;
310
- searchable: z.ZodOptional<z.ZodBoolean>;
311
- pii: z.ZodOptional<z.ZodBoolean>;
312
- }, z.core.$strict>>>>;
313
- groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
314
- id: z.ZodString;
315
- label: z.ZodOptional<z.ZodString>;
316
- description: z.ZodOptional<z.ZodString>;
317
- ownerSystemId: z.ZodOptional<z.ZodString>;
318
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
319
- members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
320
- }, z.core.$strict>>>>;
321
- endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
322
- id: z.ZodString;
323
- label: z.ZodOptional<z.ZodString>;
324
- description: z.ZodOptional<z.ZodString>;
325
- ownerSystemId: z.ZodOptional<z.ZodString>;
326
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
327
- route: z.ZodOptional<z.ZodString>;
328
- }, z.core.$strict>>>>;
329
- }, z.core.$strict>>;
330
- type OntologyScope = z.infer<typeof OntologyScopeSchema>;
331
-
332
- declare const SystemApiInterfaceSchema: z.ZodObject<{
333
- lifecycle: z.ZodDefault<z.ZodEnum<{
334
- active: "active";
335
- deprecated: "deprecated";
336
- draft: "draft";
337
- archived: "archived";
338
- disabled: "disabled";
339
- }>>;
340
- readinessProfile: z.ZodOptional<z.ZodString>;
341
- resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
342
- readinessContract: z.ZodOptional<z.ZodObject<{
343
- requiredObjects: z.ZodDefault<z.ZodArray<z.ZodString>>;
344
- requiredCatalogs: z.ZodArray<z.ZodString>;
345
- }, z.core.$strict>>;
346
- }, z.core.$strict>;
347
- type JsonPrimitive = string | number | boolean | null;
348
- type JsonValue = JsonPrimitive | JsonValue[] | {
349
- [key: string]: JsonValue;
350
- };
351
- /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
352
- interface SystemEntry {
353
- id: string;
354
- label?: string;
355
- title?: string;
356
- description?: string;
357
- kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
358
- parentSystemId?: string;
359
- ui?: {
360
- path: string;
361
- surfaces: string[];
362
- icon?: string;
363
- };
364
- lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
365
- responsibleRoleId?: string;
366
- governedByKnowledge?: string[];
367
- actions?: {
368
- actionId: string;
369
- intent: 'exposes' | 'consumes';
370
- invocation?: unknown;
371
- }[];
372
- drivesGoals?: string[];
373
- apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
374
- path?: string;
375
- icon?: string;
376
- uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
377
- enabled?: boolean;
378
- order: number;
379
- config?: Record<string, JsonValue>;
380
- ontology?: OntologyScope;
381
- systems?: Record<string, SystemEntry>;
382
- subsystems?: Record<string, SystemEntry>;
383
- }
384
-
385
- declare const LinkSchema: z.ZodObject<{
386
- nodeId: z.ZodString;
387
- kind: z.ZodEnum<{
388
- affects: "affects";
389
- actions: "actions";
390
- effects: "effects";
391
- links: "links";
392
- reads: "reads";
393
- writes: "writes";
394
- emits: "emits";
395
- triggers: "triggers";
396
- uses: "uses";
397
- approval: "approval";
398
- contains: "contains";
399
- references: "references";
400
- maps_to: "maps_to";
401
- governs: "governs";
402
- originates_from: "originates_from";
403
- applies_to: "applies_to";
404
- uses_catalog: "uses_catalog";
405
- }>;
406
- }, z.core.$strip>;
407
- type Link = z.infer<typeof LinkSchema>;
408
-
409
- /**
410
- * Supported integration types
411
- *
412
- * These represent the available integration adapters that can be used with tools.
413
- * Each integration type corresponds to an adapter implementation.
414
- *
415
- * Note: Concrete adapter implementations are deferred until needed.
416
- * This type provides compile-time safety and auto-completion for tool definitions.
417
- */
418
- type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier' | 'instagram';
419
-
420
- /**
421
- * Resource Registry type definitions
422
- */
423
-
424
- /**
425
- * Environment/deployment status for resources
426
- */
427
- type ResourceStatus = 'dev' | 'prod';
428
- /**
429
- * All resource types in the platform
430
- * Used as the discriminator field in ResourceDefinition
431
- */
432
- type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
433
- type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
434
- /**
435
- * Base interface for ALL platform resources
436
- * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
437
- */
438
- interface ResourceDefinition {
439
- /** Unique resource identifier */
440
- resourceId: string;
441
- /** Display name */
442
- name: string;
443
- /** Purpose and functionality description */
444
- description: string;
445
- /** Version for change tracking and evolution */
446
- version: string;
447
- /** Resource type discriminator */
448
- type: ResourceType;
449
- /** Environment/deployment status */
450
- status: ResourceStatus;
451
- /** Graph links to Organization Model nodes */
452
- links?: ResourceLink[];
453
- /** Infrastructure category for filtering */
454
- category?: ResourceCategory;
455
- /** Whether the agent supports multi-turn sessions (agents only) */
456
- sessionCapable?: boolean;
457
- /** Whether the resource is local (monorepo) or remote (externally deployed) */
458
- origin?: 'local' | 'remote';
459
- /** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
460
- systemPath?: string;
461
- /** Display metadata for the owning OM System */
462
- system?: ResourceSystemSummary;
463
- /** Governance lifecycle status from the OM Resource descriptor */
464
- governanceStatus?: ResourceGovernanceStatus;
465
- /** Whether this resource is archived and should be excluded from registration and deployment */
466
- archived?: boolean;
467
- }
468
- /** Webhook provider identifiers */
469
- type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify' | 'test';
470
- /** Webhook trigger configuration */
471
- interface WebhookTriggerConfig {
472
- /** Provider identifier */
473
- provider: WebhookProviderType;
474
- /** Event type for documentation (not used for matching - workflow handles routing) */
475
- event?: string;
476
- /** Optional filtering (e.g., specific form ID for Fillout) */
477
- filter?: Record<string, string>;
478
- /** References credential in credentials table for per-org webhook secrets */
479
- credentialName?: string;
480
- }
481
- /** Schedule trigger configuration */
482
- interface ScheduleTriggerConfig {
483
- /** Cron expression (e.g., '0 6 * * *') */
484
- cron: string;
485
- /** Optional timezone (default: UTC) */
486
- timezone?: string;
487
- }
488
- /** Event trigger configuration */
489
- interface EventTriggerConfig {
490
- /** Internal event type */
491
- eventType: string;
492
- /** Event source */
493
- source?: string;
494
- }
495
- /** Union of all trigger configs */
496
- type TriggerConfig = WebhookTriggerConfig | ScheduleTriggerConfig | EventTriggerConfig;
497
- /**
498
- * Trigger metadata - entry points that initiate resource execution
499
- *
500
- * Triggers represent how executions start: webhooks from external services,
501
- * scheduled cron jobs, platform events, or manual user actions.
502
- *
503
- * BREAKING CHANGES (2025-11-30):
504
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
505
- * - Field renames: `id` -> `resourceId` (inherited), `type` -> `triggerType`
506
- * - Relationship rename: `invokes` -> `triggers` (unified vocabulary)
507
- * - New required fields: `version` (inherited), `type: 'trigger'` (inherited)
508
- * - triggers object now includes `externalResources` option
509
- *
510
- * @example
511
- * // TriggerDefinition - metadata only
512
- * {
513
- * resourceId: 'trigger-new-order',
514
- * type: 'trigger',
515
- * triggerType: 'webhook',
516
- * name: 'New Order',
517
- * description: 'Webhook from Shopify on new orders',
518
- * version: '1.0.0',
519
- * status: 'prod',
520
- * webhookPath: '/webhooks/shopify/orders'
521
- * }
522
- *
523
- * // Relationships declared in ResourceRelationships (not on TriggerDefinition):
524
- * // relationships: {
525
- * // 'trigger-new-order': { triggers: { workflows: ['order-fulfillment-workflow'] } }
526
- * // }
527
- */
528
- interface TriggerDefinition extends ResourceDefinition {
529
- /** Resource type discriminator (narrowed from base union) */
530
- type: 'trigger';
531
- /** Trigger mechanism type (renamed from 'type' to avoid collision with base type discriminator) */
532
- triggerType: 'webhook' | 'schedule' | 'manual' | 'event';
533
- /** Type-specific configuration */
534
- config?: TriggerConfig;
535
- /** For webhook triggers: path like '/webhooks/shopify/orders' */
536
- webhookPath?: string;
537
- /** For schedule triggers: cron expression like '0 6 * * *' */
538
- schedule?: string;
539
- /** For event triggers: event type like 'low-stock-alert' */
540
- eventType?: string;
541
- }
542
- /**
543
- * Integration metadata - external service connections
544
- *
545
- * References credentials table for actual connection. No connection status
546
- * stored here (queried at runtime from credentials table).
547
- *
548
- * BREAKING CHANGES (2025-11-30):
549
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
550
- * - Field renames: `id` -> `resourceId` (inherited)
551
- * - New required field: `status` (inherited) - organizations must add status to all integrations
552
- * - New required field: `version` (inherited) - organizations must add version to all integrations
553
- * - New required field: `type: 'integration'` (inherited) - resource type discriminator
554
- *
555
- * @example
556
- * {
557
- * resourceId: 'integration-shopify-prod',
558
- * type: 'integration',
559
- * provider: 'shopify',
560
- * credentialName: 'shopify-prod',
561
- * name: 'Shopify Production',
562
- * description: 'E-commerce platform',
563
- * version: '1.0.0',
564
- * status: 'prod'
565
- * }
566
- */
567
- interface IntegrationDefinition extends ResourceDefinition {
568
- /** Resource type discriminator (narrowed from base union) */
569
- type: 'integration';
570
- /** OM descriptor that owns canonical identity and governance metadata. */
571
- resource?: Extract<ResourceEntry, {
572
- kind: 'integration';
573
- }>;
574
- /** Integration provider type */
575
- provider: IntegrationType;
576
- /** References credentials table (e.g., 'shopify-prod', 'zendesk-api') */
577
- credentialName: string;
578
- }
579
- /**
580
- * External platform type
581
- * Supported third-party automation platforms
582
- */
583
- type ExternalPlatform = 'n8n' | 'make' | 'zapier' | 'other';
584
- /**
585
- * External automation resource metadata
586
- *
587
- * Represents workflows/automations running on third-party platforms
588
- * (n8n, Make, Zapier, etc.) for visualization in Command View.
589
- *
590
- * NOTE: This is metadata ONLY for visualization. No execution logic,
591
- * no API integration with external platforms, no status syncing.
592
- *
593
- * BREAKING CHANGES (2025-11-30):
594
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
595
- * - Field renames: `id` -> `resourceId` (inherited)
596
- * - New required field: `version` (inherited) - organizations must add version to all external resources
597
- * - New required field: `type: 'external'` (inherited) - resource type discriminator
598
- * - REMOVED FIELD: `triggeredBy` - per relationship-consolidation design, all relationships are forward-only declarations
599
- *
600
- * @example
601
- * {
602
- * resourceId: 'external-n8n-order-sync',
603
- * type: 'external',
604
- * version: '1.0.0',
605
- * platform: 'n8n',
606
- * name: 'Shopify Order Sync',
607
- * description: 'Legacy n8n workflow for syncing Shopify orders',
608
- * status: 'prod',
609
- * platformUrl: 'https://n8n.client.com/workflow/123',
610
- * triggers: { workflows: ['order-fulfillment-workflow'] },
611
- * uses: { integrations: ['integration-shopify-prod'] }
612
- * }
613
- */
614
- interface ExternalResourceDefinition extends ResourceDefinition {
615
- /** Resource type discriminator (narrowed from base union) */
616
- type: 'external';
617
- /** Platform type */
618
- platform: ExternalPlatform;
619
- /** Link to external platform (e.g., n8n workflow editor URL) */
620
- platformUrl?: string;
621
- /** Platform's internal ID/reference */
622
- externalId?: string;
623
- /** What this external resource triggers (external -> internal) */
624
- triggers?: {
625
- /** Elevasis workflow resourceIds this external automation triggers */
626
- workflows?: string[];
627
- /** Elevasis agent resourceIds this external automation triggers */
628
- agents?: string[];
629
- };
630
- /** Integrations this external resource uses (shared credentials) */
631
- uses?: {
632
- /** Integration IDs this external automation uses */
633
- integrations?: string[];
634
- };
635
- }
636
- /**
637
- * Human Checkpoint definition - human decision points in automation
638
- *
639
- * Represents where human judgment is deployed in the automation landscape.
640
- * Tasks with matching command_queue_group are routed to this checkpoint.
641
- *
642
- * BREAKING CHANGES (2025-11-30):
643
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
644
- * - Field renames: `id` -> `resourceId` (inherited)
645
- * - description is now REQUIRED (was optional) - organizations must add description to all human checkpoints
646
- * - New required field: `version` (inherited) - organizations must add version to all human checkpoints
647
- * - New required field: `type: 'human'` (inherited) - resource type discriminator
648
- *
649
- * @example
650
- * {
651
- * resourceId: 'sales-approval',
652
- * type: 'human',
653
- * name: 'Sales Approval Queue',
654
- * description: 'High-value order approvals for sales team',
655
- * version: '1.0.0',
656
- * status: 'prod',
657
- * requestedBy: { agents: ['order-processor-agent'] },
658
- * routesTo: { agents: ['order-fulfillment-agent'] }
659
- * }
660
- */
661
- interface HumanCheckpointDefinition extends ResourceDefinition {
662
- /** Resource type discriminator (narrowed from base union) */
663
- type: 'human';
664
- /** Resources that create tasks for this checkpoint */
665
- requestedBy?: {
666
- /** Agent resourceIds that request approval here */
667
- agents?: string[];
668
- /** Workflow resourceIds that request approval here */
669
- workflows?: string[];
670
- };
671
- /** Resources that receive approved decisions */
672
- routesTo?: {
673
- /** Agent resourceIds that handle approved tasks */
674
- agents?: string[];
675
- /** Workflow resourceIds that handle approved tasks */
676
- workflows?: string[];
677
- };
678
- }
679
-
680
- /**
681
- * Command View Types
682
- *
683
- * Unified type definitions for the Command View graph visualization.
684
- * These types are used by both backend serialization and frontend rendering.
685
- *
686
- * Command View shows the resource graph: agents, workflows, triggers, integrations,
687
- * external resources, and human checkpoints with their relationships.
688
- */
689
-
690
- /**
691
- * Extended agent metadata for Command View
692
- * Includes model and capability information for graph display
693
- */
694
- interface CommandViewAgent extends ResourceDefinition {
695
- type: 'agent';
696
- modelProvider: string;
697
- modelId: string;
698
- toolCount: number;
699
- hasMemory: boolean;
700
- sessionCapable: boolean;
701
- }
702
- /**
703
- * Extended workflow metadata for Command View
704
- * Includes step information for graph display
705
- */
706
- interface CommandViewWorkflow extends ResourceDefinition {
707
- type: 'workflow';
708
- stepCount: number;
709
- entryPoint: string;
710
- }
711
- /**
712
- * Relationship types between resources
713
- *
714
- * - triggers: Resource initiates/starts another resource (orange)
715
- * - uses: Resource uses an integration (teal)
716
- * - approval: Resource requires human approval (yellow)
717
- */
718
- type RelationshipType$1 = 'triggers' | 'uses' | 'approval';
719
- /**
720
- * Command View edge (relationship between resources)
721
- */
722
- interface CommandViewEdge$1 {
723
- id: string;
724
- source: string;
725
- target: string;
726
- relationship: RelationshipType$1;
727
- label?: string;
728
- }
729
- /**
730
- * Command View data structure
731
- * Complete graph data for visualization
732
- *
733
- * Backend serializes this once at startup and serves it via /command-view endpoint.
734
- * Frontend consumes this directly for graph rendering.
735
- */
736
- interface CommandViewData {
737
- workflows: CommandViewWorkflow[];
738
- agents: CommandViewAgent[];
739
- triggers: TriggerDefinition[];
740
- integrations: IntegrationDefinition[];
741
- externalResources: ExternalResourceDefinition[];
742
- humanCheckpoints: HumanCheckpointDefinition[];
743
- edges: CommandViewEdge$1[];
744
- }
745
-
746
- declare const ResourceCategorySchema: z.ZodEnum<{
747
- diagnostic: "diagnostic";
748
- production: "production";
749
- internal: "internal";
750
- testing: "testing";
751
- }>;
752
- type ResourceCategory = z.infer<typeof ResourceCategorySchema>;
753
- type ResourceLink = Link;
754
-
755
- /**
756
- * Command View Types
757
- *
758
- * Frontend graph types for React Flow rendering.
759
- *
760
- * Backend API returns CommandViewData with separate arrays (workflows[], agents[], etc.)
761
- * Frontend transforms this to CommandViewGraph with unified nodes[] array.
762
- *
763
- * @see transformCommandViewData for the mapping logic
764
- * @see CommandViewData from @repo/core for backend type
765
- */
766
-
767
- /**
768
- * Base resource node - common fields for all resources
769
- */
770
- interface BaseResourceNode {
771
- id: string;
772
- name: string;
773
- description: string;
774
- status: ResourceStatus;
775
- stats?: {
776
- totalRuns: number;
777
- successCount: number;
778
- failureCount: number;
779
- warningCount: number;
780
- lastRunAt: string | null;
781
- } | null;
782
- }
783
- /**
784
- * Agent node - autonomous AI agents
785
- */
786
- interface AgentNode extends BaseResourceNode {
787
- type: 'agent';
788
- modelProvider: string;
789
- modelId: string;
790
- toolCount: number;
791
- hasMemory: boolean;
792
- }
793
- /**
794
- * Workflow node - multi-step orchestrations
795
- */
796
- interface WorkflowNode extends BaseResourceNode {
797
- type: 'workflow';
798
- stepCount: number;
799
- entryPoint: string;
800
- }
801
- /**
802
- * Integration node - external service connections
803
- */
804
- interface IntegrationNode extends BaseResourceNode {
805
- type: 'integration';
806
- provider: string;
807
- connectionStatus: 'connected' | 'disconnected' | 'error';
808
- credentialName?: string;
809
- }
810
- /**
811
- * Trigger node - what initiates executions
812
- */
813
- interface TriggerNode extends BaseResourceNode {
814
- type: 'trigger';
815
- triggerType: 'webhook' | 'schedule' | 'manual' | 'event';
816
- schedule?: string;
817
- webhookPath?: string;
818
- }
819
- /**
820
- * External resource node - third-party automation platforms
821
- */
822
- interface ExternalResourceNode extends BaseResourceNode {
823
- type: 'external';
824
- platform: 'n8n' | 'make' | 'zapier' | 'other';
825
- platformUrl?: string;
826
- externalId?: string;
827
- }
828
- /**
829
- * Human node - approval points requiring human decisions
830
- */
831
- interface HumanNode extends Omit<BaseResourceNode, 'stats'> {
832
- type: 'human';
833
- stats?: {
834
- pendingCount: number;
835
- completedCount: number;
836
- expiredCount: number;
837
- lastDecisionAt: string | null;
838
- } | null;
839
- }
840
- /**
841
- * Union type for all node types
842
- */
843
- type CommandViewNode = AgentNode | WorkflowNode | IntegrationNode | TriggerNode | ExternalResourceNode | HumanNode;
844
- /**
845
- * Relationship types between resources
846
- */
847
- type RelationshipType = 'triggers' | 'uses' | 'approval';
848
- /**
849
- * Edge representing a relationship
850
- */
851
- interface CommandViewEdge {
852
- id: string;
853
- source: string;
854
- target: string;
855
- relationship: RelationshipType;
856
- label?: string;
857
- }
858
- /**
859
- * Complete graph data for visualization
860
- */
861
- interface CommandViewGraph {
862
- nodes: CommandViewNode[];
863
- edges: CommandViewEdge[];
864
- }
865
-
866
- /**
867
- * Transform backend CommandViewData to frontend CommandViewGraph
868
- *
869
- * Backend returns separate arrays (workflows[], agents[], triggers[], integrations[])
870
- * Frontend needs unified nodes[] array with consistent id field.
871
- *
872
- * Key mappings:
873
- * - Agent/Workflow: resourceId -> id
874
- * - Trigger/Integration/External/Human: resourceId -> id (updated to use resourceId after base interface refactor)
875
- * - connectionStatus: defaulted to 'connected' (runtime status not yet available)
876
- */
877
- declare function transformCommandViewData(data: CommandViewData): CommandViewGraph;
878
-
879
- export { transformCommandViewData };