@elevasis/ui 2.25.6 → 2.26.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 (105) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.css +15 -5
  3. package/dist/app/index.d.ts +61 -14
  4. package/dist/app/index.js +6 -6
  5. package/dist/charts/index.js +6 -5
  6. package/dist/chunk-3MEXPLWT.js +265 -0
  7. package/dist/{chunk-BDKM56TP.js → chunk-4KTLOK7K.js} +1 -1
  8. package/dist/{chunk-KMAXFJPH.js → chunk-CW3UNAF2.js} +5 -409
  9. package/dist/{chunk-HKBEURCV.js → chunk-G26INIF3.js} +1 -1
  10. package/dist/{chunk-7F3IQMLI.js → chunk-G66QFZXD.js} +11 -214
  11. package/dist/{chunk-QIW6OCEI.js → chunk-HLFFKKT3.js} +27 -373
  12. package/dist/chunk-JDNEWB5F.js +10 -0
  13. package/dist/{chunk-L7D6KNHV.js → chunk-JKBGDFX2.js} +890 -749
  14. package/dist/{chunk-YRKQNPK2.js → chunk-JPGX3533.js} +4 -3
  15. package/dist/chunk-KCGGA36K.js +73 -0
  16. package/dist/chunk-KEFWANZY.js +155 -0
  17. package/dist/chunk-LH4GPYDX.js +448 -0
  18. package/dist/{chunk-JXSBOG2R.js → chunk-LWKZ3BCC.js} +5 -4
  19. package/dist/chunk-OGXKOMUT.js +412 -0
  20. package/dist/chunk-OHXU5WWK.js +3731 -0
  21. package/dist/chunk-ONFKASZI.js +2004 -0
  22. package/dist/{chunk-U36X6NZM.js → chunk-RIFTUOPE.js} +2 -14
  23. package/dist/{chunk-T6INEVX6.js → chunk-SGS4CQ2B.js} +1 -1
  24. package/dist/{chunk-C7IBFI5B.js → chunk-UPMX5GJI.js} +5 -5
  25. package/dist/{chunk-ARJPZ66V.js → chunk-UY5I2KOZ.js} +208 -3124
  26. package/dist/chunk-W2ZTLH7Y.js +662 -0
  27. package/dist/{chunk-KNISO652.js → chunk-WUVR4QY6.js} +9 -9
  28. package/dist/{chunk-Q5BEODAT.js → chunk-X2SUMO3P.js} +2 -1
  29. package/dist/{chunk-SNHGSCKH.js → chunk-XBMCDGHA.js} +1 -1
  30. package/dist/{chunk-N55DVMAG.js → chunk-XQQEKWTL.js} +2 -6
  31. package/dist/{chunk-SBQ4MYQV.js → chunk-XZSEPJZQ.js} +5 -6
  32. package/dist/{chunk-CPAJXBTL.js → chunk-YHBPR67D.js} +490 -676
  33. package/dist/{chunk-QARSVM7Q.js → chunk-YO2YORW4.js} +4 -4
  34. package/dist/{chunk-TAIX4NO3.js → chunk-ZFLM2YVW.js} +2 -2
  35. package/dist/components/index.css +15 -5
  36. package/dist/components/index.d.ts +202 -383
  37. package/dist/components/index.js +43 -429
  38. package/dist/components/navigation/index.css +25 -15
  39. package/dist/execution/index.d.ts +0 -73
  40. package/dist/features/auth/index.css +25 -15
  41. package/dist/features/crm/index.css +25 -15
  42. package/dist/features/crm/index.d.ts +49 -49
  43. package/dist/features/crm/index.js +14 -15
  44. package/dist/features/dashboard/index.css +25 -15
  45. package/dist/features/dashboard/index.js +18 -16
  46. package/dist/features/delivery/index.css +15 -5
  47. package/dist/features/delivery/index.js +14 -15
  48. package/dist/features/knowledge/index.css +611 -0
  49. package/dist/features/knowledge/index.js +375 -72
  50. package/dist/features/lead-gen/index.css +25 -15
  51. package/dist/features/lead-gen/index.d.ts +60 -21
  52. package/dist/features/lead-gen/index.js +16 -16
  53. package/dist/features/monitoring/index.css +15 -5
  54. package/dist/features/monitoring/index.js +17 -17
  55. package/dist/features/monitoring/requests/index.css +25 -15
  56. package/dist/features/monitoring/requests/index.js +13 -14
  57. package/dist/features/operations/index.css +25 -15
  58. package/dist/features/operations/index.d.ts +16 -98
  59. package/dist/features/operations/index.js +26 -22
  60. package/dist/features/settings/index.css +25 -15
  61. package/dist/features/settings/index.d.ts +1 -0
  62. package/dist/features/settings/index.js +15 -16
  63. package/dist/hooks/delivery/index.css +25 -15
  64. package/dist/hooks/delivery/index.js +2 -2
  65. package/dist/hooks/index.css +15 -5
  66. package/dist/hooks/index.d.ts +172 -380
  67. package/dist/hooks/index.js +13 -14
  68. package/dist/hooks/published.css +15 -5
  69. package/dist/hooks/published.d.ts +172 -380
  70. package/dist/hooks/published.js +13 -14
  71. package/dist/index.css +15 -5
  72. package/dist/index.d.ts +988 -403
  73. package/dist/index.js +15 -15
  74. package/dist/initialization/index.d.ts +1 -0
  75. package/dist/knowledge/index.d.ts +981 -41
  76. package/dist/knowledge/index.js +5449 -294
  77. package/dist/layout/index.d.ts +2 -0
  78. package/dist/layout/index.js +3 -2
  79. package/dist/organization/index.css +25 -15
  80. package/dist/organization/index.d.ts +1 -0
  81. package/dist/provider/index.css +25 -15
  82. package/dist/provider/index.d.ts +818 -26
  83. package/dist/provider/index.js +11 -11
  84. package/dist/provider/published.css +25 -15
  85. package/dist/provider/published.d.ts +817 -25
  86. package/dist/provider/published.js +8 -9
  87. package/dist/test-utils/index.js +2 -2
  88. package/dist/test-utils/setup.js +1 -1
  89. package/dist/theme/index.js +3 -2
  90. package/dist/theme/presets/index.d.ts +97 -0
  91. package/dist/theme/presets/index.js +3 -0
  92. package/dist/types/index.d.ts +71 -126
  93. package/dist/utils/index.js +1 -1
  94. package/dist/vite/index.d.ts +7 -0
  95. package/dist/vite/index.js +10 -0
  96. package/dist/vite-plugin-knowledge/index.d.ts +1 -33
  97. package/dist/vite-plugin-knowledge/index.js +1 -66
  98. package/package.json +16 -3
  99. package/src/knowledge/README.md +8 -8
  100. package/src/theme/presets/README.md +19 -0
  101. package/dist/chunk-5RLYII6P.js +0 -314
  102. package/dist/chunk-6U7AIIHF.js +0 -880
  103. package/dist/chunk-HAEJ4M54.js +0 -94
  104. package/dist/chunk-LPM7O6XM.js +0 -293
  105. /package/dist/{chunk-SGXXJE52.js → chunk-QD4X4H5A.js} +0 -0
@@ -4,7 +4,6 @@ import { EventSourceMessage } from '@microsoft/fetch-event-source';
4
4
  import * as react from 'react';
5
5
  import * as zustand_middleware from 'zustand/middleware';
6
6
  import * as zustand from 'zustand';
7
- import { Edge } from '@xyflow/react';
8
7
 
9
8
  /**
10
9
  * Error categories for observability grouping and classification.
@@ -209,56 +208,6 @@ interface ExecutionLogMessage {
209
208
  context?: LogContext;
210
209
  }
211
210
 
212
- /**
213
- * Shared form field types for dynamic form generation
214
- * Used by: Command Queue, Execution Runner UI, future form-based features
215
- */
216
- /**
217
- * Supported form field types for action payloads
218
- * Maps to Mantine form components
219
- */
220
- type FormFieldType = 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | 'richtext';
221
- /**
222
- * Form field definition
223
- */
224
- interface FormField {
225
- /** Field key in payload object */
226
- name: string;
227
- /** Field label for UI */
228
- label: string;
229
- /** Field type (determines UI component) */
230
- type: FormFieldType;
231
- /** Default value */
232
- defaultValue?: unknown;
233
- /** Required field */
234
- required?: boolean;
235
- /** Placeholder text */
236
- placeholder?: string;
237
- /** Help text */
238
- description?: string;
239
- /** Options for select/radio */
240
- options?: Array<{
241
- label: string;
242
- value: string | number;
243
- }>;
244
- /** Min/max for number */
245
- min?: number;
246
- max?: number;
247
- /** Path to context value for pre-filling (dot notation, e.g., 'proposal.summary') */
248
- defaultValueFromContext?: string;
249
- }
250
- /**
251
- * Form schema for action payload collection
252
- */
253
- interface FormSchema {
254
- /** Form title */
255
- title?: string;
256
- /** Form description */
257
- description?: string;
258
- /** Form fields */
259
- fields: FormField[];
260
- }
261
-
262
211
  /**
263
212
  * Serialized Registry Types
264
213
  *
@@ -266,67 +215,6 @@ interface FormSchema {
266
215
  * Serialization happens once at API startup, enabling instant response times.
267
216
  */
268
217
 
269
- /**
270
- * Serialized form field for API responses
271
- */
272
- interface SerializedFormField {
273
- name: string;
274
- label: string;
275
- type: FormFieldType;
276
- defaultValue?: unknown;
277
- required?: boolean;
278
- placeholder?: string;
279
- description?: string;
280
- options?: Array<{
281
- label: string;
282
- value: string | number;
283
- }>;
284
- min?: number;
285
- max?: number;
286
- }
287
- /**
288
- * Serialized form schema for API responses
289
- */
290
- interface SerializedFormSchema {
291
- title?: string;
292
- description?: string;
293
- fields: SerializedFormField[];
294
- layout?: 'vertical' | 'horizontal' | 'grid';
295
- }
296
- /**
297
- * Serialized execution form schema for API responses
298
- */
299
- interface SerializedExecutionFormSchema extends SerializedFormSchema {
300
- fieldMappings?: Record<string, string>;
301
- submitButton?: {
302
- label?: string;
303
- loadingLabel?: string;
304
- confirmMessage?: string;
305
- };
306
- }
307
- /**
308
- * Serialized schedule config for API responses
309
- */
310
- interface SerializedScheduleConfig {
311
- enabled: boolean;
312
- defaultSchedule?: string;
313
- allowedPatterns?: string[];
314
- }
315
- /**
316
- * Serialized webhook config for API responses
317
- */
318
- interface SerializedWebhookConfig {
319
- enabled: boolean;
320
- payloadSchema?: unknown;
321
- }
322
- /**
323
- * Serialized execution interface for API responses
324
- */
325
- interface SerializedExecutionInterface {
326
- form: SerializedExecutionFormSchema;
327
- schedule?: SerializedScheduleConfig;
328
- webhook?: SerializedWebhookConfig;
329
- }
330
218
  /**
331
219
  * Serialized agent definition (JSON-safe)
332
220
  * Result of serializeDefinition(AgentDefinition)
@@ -382,7 +270,6 @@ interface SerializedAgentDefinition {
382
270
  }>;
383
271
  };
384
272
  metricsConfig?: object;
385
- interface?: SerializedExecutionInterface;
386
273
  }
387
274
  /**
388
275
  * Serialized workflow definition (JSON-safe)
@@ -422,7 +309,56 @@ interface SerializedWorkflowDefinition {
422
309
  outputSchema?: object;
423
310
  };
424
311
  metricsConfig?: object;
425
- interface?: SerializedExecutionInterface;
312
+ }
313
+
314
+ /**
315
+ * Shared form field types for dynamic form generation
316
+ * Used by: Command Queue, Execution Runner UI, future form-based features
317
+ */
318
+ /**
319
+ * Supported form field types for action payloads
320
+ * Maps to Mantine form components
321
+ */
322
+ type FormFieldType = 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | 'richtext';
323
+ /**
324
+ * Form field definition
325
+ */
326
+ interface FormField {
327
+ /** Field key in payload object */
328
+ name: string;
329
+ /** Field label for UI */
330
+ label: string;
331
+ /** Field type (determines UI component) */
332
+ type: FormFieldType;
333
+ /** Default value */
334
+ defaultValue?: unknown;
335
+ /** Required field */
336
+ required?: boolean;
337
+ /** Placeholder text */
338
+ placeholder?: string;
339
+ /** Help text */
340
+ description?: string;
341
+ /** Options for select/radio */
342
+ options?: Array<{
343
+ label: string;
344
+ value: string | number;
345
+ }>;
346
+ /** Min/max for number */
347
+ min?: number;
348
+ max?: number;
349
+ /** Path to context value for pre-filling (dot notation, e.g., 'proposal.summary') */
350
+ defaultValueFromContext?: string;
351
+ }
352
+ /**
353
+ * Form schema for action payload collection
354
+ */
355
+ interface FormSchema {
356
+ /** Form title */
357
+ title?: string;
358
+ /** Form description */
359
+ description?: string;
360
+ /** Form fields */
361
+ fields: FormField[];
426
362
  }
427
363
 
428
364
  /**
@@ -3391,104 +3327,6 @@ type SupabaseApiKey = Tables<'api_keys'>;
3391
3327
  /** API response type for API key list items (omits sensitive key_hash) */
3392
3328
  type ApiKeyListItem = Omit<SupabaseApiKey, 'key_hash'>;
3393
3329
 
3394
- /** Raw database row type for acq_deals table */
3395
- type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
3396
- type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
3397
- type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
3398
- interface DealPriority {
3399
- bucketKey: DealPriorityBucketKey;
3400
- rank: number;
3401
- label: string;
3402
- color: string;
3403
- reason: string;
3404
- latestActivityAt: string | null;
3405
- nextActionAt: string | null;
3406
- }
3407
- interface DealContact {
3408
- id: string;
3409
- first_name: string | null;
3410
- last_name: string | null;
3411
- email: string;
3412
- title: string | null;
3413
- headline: string | null;
3414
- linkedin_url: string | null;
3415
- pipeline_status: Record<string, unknown> | null;
3416
- enrichment_data: Record<string, unknown> | null;
3417
- company: {
3418
- id: string;
3419
- name: string;
3420
- domain: string | null;
3421
- website: string | null;
3422
- linkedin_url: string | null;
3423
- segment: string | null;
3424
- category: string | null;
3425
- num_employees: number | null;
3426
- } | null;
3427
- }
3428
- interface DealFilters {
3429
- stage?: DealStage;
3430
- search?: string;
3431
- limit?: number;
3432
- offset?: number;
3433
- }
3434
- /** Deal list item with joined contact and company data */
3435
- interface DealListItem extends AcqDealRow {
3436
- priority: DealPriority;
3437
- ownership: 'us' | 'them' | null;
3438
- nextAction: string | null;
3439
- contact: DealContact | null;
3440
- }
3441
- type DealDetail$1 = DealListItem;
3442
- /** Task kind options for a deal task (human follow-up action type) */
3443
- type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
3444
- /**
3445
- * A CRM to-do item attached to a deal representing a human follow-up action.
3446
- * Transformed from AcqDealTaskRow with camelCase properties.
3447
- */
3448
- interface AcqDealTask {
3449
- id: string;
3450
- organizationId: string;
3451
- dealId: string;
3452
- title: string;
3453
- description: string | null;
3454
- kind: AcqDealTaskKind;
3455
- dueAt: string | null;
3456
- assigneeUserId: string | null;
3457
- completedAt: string | null;
3458
- completedByUserId: string | null;
3459
- createdAt: string;
3460
- updatedAt: string;
3461
- createdByUserId: string | null;
3462
- }
3463
- /**
3464
- * Live-scan aggregate telemetry for a single list, computed on demand from
3465
- * the list junction tables and current contact deliverability state.
3466
- * `stageCounts` are attempted counts from list-row processing_state.
3467
- */
3468
- interface ListTelemetry {
3469
- listId: string;
3470
- totalCompanies: number;
3471
- totalContacts: number;
3472
- stageCounts: {
3473
- populated: number;
3474
- extracted: number;
3475
- qualified: number;
3476
- discovered: number;
3477
- verified: number;
3478
- personalized: number;
3479
- uploaded: number;
3480
- };
3481
- deliverability: {
3482
- valid: number;
3483
- risky: number;
3484
- invalid: number;
3485
- unknown: number;
3486
- bounced: number;
3487
- };
3488
- /** Reserved -- active workflow IDs associated with this list. */
3489
- activeWorkflows?: string[];
3490
- }
3491
-
3492
3330
  declare const TransitionItemRequestSchema: z.ZodObject<{
3493
3331
  pipelineKey: z.ZodString;
3494
3332
  stageKey: z.ZodString;
@@ -3706,6 +3544,104 @@ type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
3706
3544
  type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
3707
3545
  type ListStatus = z.infer<typeof ListStatusSchema>;
3708
3546
 
3547
+ /** Raw database row type for acq_deals table */
3548
+ type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
3549
+ type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
3550
+ type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
3551
+ interface DealPriority {
3552
+ bucketKey: DealPriorityBucketKey;
3553
+ rank: number;
3554
+ label: string;
3555
+ color: string;
3556
+ reason: string;
3557
+ latestActivityAt: string | null;
3558
+ nextActionAt: string | null;
3559
+ }
3560
+ interface DealContact {
3561
+ id: string;
3562
+ first_name: string | null;
3563
+ last_name: string | null;
3564
+ email: string;
3565
+ title: string | null;
3566
+ headline: string | null;
3567
+ linkedin_url: string | null;
3568
+ pipeline_status: Record<string, unknown> | null;
3569
+ enrichment_data: Record<string, unknown> | null;
3570
+ company: {
3571
+ id: string;
3572
+ name: string;
3573
+ domain: string | null;
3574
+ website: string | null;
3575
+ linkedin_url: string | null;
3576
+ segment: string | null;
3577
+ category: string | null;
3578
+ num_employees: number | null;
3579
+ } | null;
3580
+ }
3581
+ interface DealFilters {
3582
+ stage?: DealStage;
3583
+ search?: string;
3584
+ limit?: number;
3585
+ offset?: number;
3586
+ }
3587
+ /** Deal list item with joined contact and company data */
3588
+ interface DealListItem extends AcqDealRow {
3589
+ priority: DealPriority;
3590
+ ownership: 'us' | 'them' | null;
3591
+ nextAction: string | null;
3592
+ contact: DealContact | null;
3593
+ }
3594
+ type DealDetail$1 = DealListItem;
3595
+ /** Task kind options for a deal task (human follow-up action type) */
3596
+ type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
3597
+ /**
3598
+ * A CRM to-do item attached to a deal representing a human follow-up action.
3599
+ * Transformed from AcqDealTaskRow with camelCase properties.
3600
+ */
3601
+ interface AcqDealTask {
3602
+ id: string;
3603
+ organizationId: string;
3604
+ dealId: string;
3605
+ title: string;
3606
+ description: string | null;
3607
+ kind: AcqDealTaskKind;
3608
+ dueAt: string | null;
3609
+ assigneeUserId: string | null;
3610
+ completedAt: string | null;
3611
+ completedByUserId: string | null;
3612
+ createdAt: string;
3613
+ updatedAt: string;
3614
+ createdByUserId: string | null;
3615
+ }
3616
+ /**
3617
+ * Live-scan aggregate telemetry for a single list, computed on demand from
3618
+ * the list junction tables and current contact deliverability state.
3619
+ * `stageCounts` are attempted counts from list-row processing_state.
3620
+ */
3621
+ interface ListTelemetry {
3622
+ listId: string;
3623
+ totalCompanies: number;
3624
+ totalContacts: number;
3625
+ stageCounts: {
3626
+ populated: number;
3627
+ extracted: number;
3628
+ qualified: number;
3629
+ discovered: number;
3630
+ verified: number;
3631
+ personalized: number;
3632
+ uploaded: number;
3633
+ };
3634
+ deliverability: {
3635
+ valid: number;
3636
+ risky: number;
3637
+ invalid: number;
3638
+ unknown: number;
3639
+ bounced: number;
3640
+ };
3641
+ /** Reserved -- active workflow IDs associated with this list. */
3642
+ activeWorkflows?: string[];
3643
+ }
3644
+
3709
3645
  /**
3710
3646
  * Lead Service Types
3711
3647
  * CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
@@ -4072,6 +4008,22 @@ interface SessionTokenUsage {
4072
4008
  contextWindowSize: number;
4073
4009
  }
4074
4010
 
4011
+ /**
4012
+ * Single source of truth for all active theme preset names.
4013
+ *
4014
+ * This is the canonical list. To add a preset:
4015
+ * 1. Add the name here.
4016
+ * 2. Create `packages/ui/src/theme/presets/{name}.ts` exporting `{name}Preset: ThemePreset`.
4017
+ * 3. Add to `PRESETS` record in `packages/ui/src/theme/presets/index.ts`.
4018
+ * 4. Add to `PresetName` union in `packages/ui/src/theme/presets/types.ts`.
4019
+ * 5. Add a card in `apps/command-center/src/features/settings/appearance/components/AppearanceSettings.tsx`.
4020
+ *
4021
+ * The union type (`ThemePresetName`) and Zod enum (`ThemePresetEnum`) are derived
4022
+ * automatically — no other files need updating.
4023
+ */
4024
+ declare const THEME_PRESETS: readonly ["default", "tactical", "regal", "cyber-volt", "aurora", "rose-gold", "midnight", "titanium", "canopy", "slate", "cyber-strike", "cyber-chrome", "cyber-void", "nirvana", "wave", "synapse", "cortex", "helios", "graphite", "quarry"];
4025
+ type ThemePresetName = (typeof THEME_PRESETS)[number];
4026
+
4075
4027
  /**
4076
4028
  * Multi-tenancy configuration types
4077
4029
  *
@@ -4080,6 +4032,7 @@ interface SessionTokenUsage {
4080
4032
  * - org_memberships.config: Per-user-per-org feature overrides
4081
4033
  * - users.config: User-global config
4082
4034
  */
4035
+
4083
4036
  /**
4084
4037
  * Per-user-per-org config (stored in org_memberships.config)
4085
4038
  * Controls which features a specific member can access within their org.
@@ -4094,7 +4047,7 @@ interface MembershipFeatureConfig {
4094
4047
  */
4095
4048
  interface UserConfig {
4096
4049
  theme?: {
4097
- preset?: 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'obsidian' | 'honey' | 'abyss' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry' | 'canyon' | 'nord' | 'catppuccin' | 'tokyo-night' | 'gruvbox';
4050
+ preset?: ThemePresetName;
4098
4051
  colorScheme?: 'light' | 'dark' | 'auto';
4099
4052
  };
4100
4053
  onboarding?: {
@@ -4809,15 +4762,15 @@ interface CommandViewWorkflow extends ResourceDefinition {
4809
4762
  * - uses: Resource uses an integration (teal)
4810
4763
  * - approval: Resource requires human approval (yellow)
4811
4764
  */
4812
- type RelationshipType$1 = 'triggers' | 'uses' | 'approval';
4765
+ type RelationshipType = 'triggers' | 'uses' | 'approval';
4813
4766
  /**
4814
4767
  * Command View edge (relationship between resources)
4815
4768
  */
4816
- interface CommandViewEdge$1 {
4769
+ interface CommandViewEdge {
4817
4770
  id: string;
4818
4771
  source: string;
4819
4772
  target: string;
4820
- relationship: RelationshipType$1;
4773
+ relationship: RelationshipType;
4821
4774
  label?: string;
4822
4775
  }
4823
4776
  /**
@@ -4834,7 +4787,7 @@ interface CommandViewData {
4834
4787
  integrations: IntegrationDefinition[];
4835
4788
  externalResources: ExternalResourceDefinition[];
4836
4789
  humanCheckpoints: HumanCheckpointDefinition[];
4837
- edges: CommandViewEdge$1[];
4790
+ edges: CommandViewEdge[];
4838
4791
  }
4839
4792
 
4840
4793
  declare const LinkSchema: z.ZodObject<{
@@ -4940,7 +4893,7 @@ interface APIExecutionListResponse {
4940
4893
  }
4941
4894
 
4942
4895
  /**
4943
- * @deprecated Use TimeRange from '@repo/core' directly. Kept as alias for backward compatibility.
4896
+ * @deprecated Use TimeRange from '@elevasis/core' directly. Kept as alias for backward compatibility.
4944
4897
  */
4945
4898
  type StatsTimeRange = TimeRange;
4946
4899
  /** Stats returned by /command-view/stats (counts only, no error details) */
@@ -6728,118 +6681,6 @@ declare function useCommandViewStats(timeRange?: StatsTimeRange, options?: UseCo
6728
6681
 
6729
6682
  type CommandViewVisualizationMode = 'cluster' | 'swimlane' | 'focus' | 'network' | 'spatial';
6730
6683
 
6731
- /**
6732
- * Command View Types
6733
- *
6734
- * Frontend graph types for React Flow rendering.
6735
- *
6736
- * Backend API returns CommandViewData with separate arrays (workflows[], agents[], etc.)
6737
- * Frontend transforms this to CommandViewGraph with unified nodes[] array.
6738
- *
6739
- * @see transformCommandViewData for the mapping logic
6740
- * @see CommandViewData from @repo/core for backend type
6741
- */
6742
-
6743
- /**
6744
- * Base resource node - common fields for all resources
6745
- */
6746
- interface BaseResourceNode {
6747
- id: string;
6748
- name: string;
6749
- description: string;
6750
- status: ResourceStatus;
6751
- stats?: {
6752
- totalRuns: number;
6753
- successCount: number;
6754
- failureCount: number;
6755
- warningCount: number;
6756
- lastRunAt: string | null;
6757
- } | null;
6758
- }
6759
- /**
6760
- * Agent node - autonomous AI agents
6761
- */
6762
- interface AgentNode extends BaseResourceNode {
6763
- type: 'agent';
6764
- modelProvider: string;
6765
- modelId: string;
6766
- toolCount: number;
6767
- hasKnowledgeMap: boolean;
6768
- hasMemory: boolean;
6769
- }
6770
- /**
6771
- * Workflow node - multi-step orchestrations
6772
- */
6773
- interface WorkflowNode extends BaseResourceNode {
6774
- type: 'workflow';
6775
- stepCount: number;
6776
- entryPoint: string;
6777
- }
6778
- /**
6779
- * Integration node - external service connections
6780
- */
6781
- interface IntegrationNode extends BaseResourceNode {
6782
- type: 'integration';
6783
- provider: string;
6784
- connectionStatus: 'connected' | 'disconnected' | 'error';
6785
- credentialName?: string;
6786
- }
6787
- /**
6788
- * Trigger node - what initiates executions
6789
- */
6790
- interface TriggerNode extends BaseResourceNode {
6791
- type: 'trigger';
6792
- triggerType: 'webhook' | 'schedule' | 'manual' | 'event';
6793
- schedule?: string;
6794
- webhookPath?: string;
6795
- }
6796
- /**
6797
- * External resource node - third-party automation platforms
6798
- */
6799
- interface ExternalResourceNode extends BaseResourceNode {
6800
- type: 'external';
6801
- platform: 'n8n' | 'make' | 'zapier' | 'other';
6802
- platformUrl?: string;
6803
- externalId?: string;
6804
- }
6805
- /**
6806
- * Human node - approval points requiring human decisions
6807
- */
6808
- interface HumanNode extends Omit<BaseResourceNode, 'stats'> {
6809
- type: 'human';
6810
- stats?: {
6811
- pendingCount: number;
6812
- completedCount: number;
6813
- expiredCount: number;
6814
- lastDecisionAt: string | null;
6815
- } | null;
6816
- }
6817
- /**
6818
- * Union type for all node types
6819
- */
6820
- type CommandViewNode = AgentNode | WorkflowNode | IntegrationNode | TriggerNode | ExternalResourceNode | HumanNode;
6821
- /**
6822
- * Relationship types between resources
6823
- */
6824
- type RelationshipType = 'triggers' | 'uses' | 'approval';
6825
- /**
6826
- * Edge representing a relationship
6827
- */
6828
- interface CommandViewEdge {
6829
- id: string;
6830
- source: string;
6831
- target: string;
6832
- relationship: RelationshipType;
6833
- label?: string;
6834
- }
6835
- /**
6836
- * Complete graph data for visualization
6837
- */
6838
- interface CommandViewGraph {
6839
- nodes: CommandViewNode[];
6840
- edges: CommandViewEdge[];
6841
- }
6842
-
6843
6684
  type StatusFilter$1 = ResourceStatus | 'all';
6844
6685
 
6845
6686
  interface CommandViewStore {
@@ -6898,49 +6739,6 @@ declare const useCommandViewStore: zustand.UseBoundStore<Omit<zustand.StoreApi<C
6898
6739
  };
6899
6740
  }>;
6900
6741
 
6901
- /**
6902
- * useCommandViewLayout - Hook to convert CommandViewGraph to ReactFlow nodes/edges
6903
- *
6904
- * Uses Dagre for automatic graph layout:
6905
- * - Left-to-right flow (LR)
6906
- * - Minimizes edge crossings
6907
- * - Keeps connected nodes closer together
6908
- *
6909
- * Post-processes Dagre output to sort workflow chains by their minimum name prefix
6910
- * (e.g., INB-01 chain above INB-02 chain, above INB-04 chain). Uses Union-Find
6911
- * to identify connected components based on 'triggers' and 'approval' edges
6912
- * (not 'uses' edges, which would connect everything through shared integrations).
6913
- */
6914
-
6915
- /**
6916
- * Convert CommandViewGraph to ReactFlow nodes and edges with Dagre layout
6917
- */
6918
- declare function useCommandViewLayout(graph: CommandViewGraph): {
6919
- nodes: {
6920
- id: string;
6921
- type: string;
6922
- position: {
6923
- x: number;
6924
- y: number;
6925
- };
6926
- data: Record<string, unknown>;
6927
- }[];
6928
- edges: Edge[];
6929
- };
6930
- /**
6931
- * Get graph statistics
6932
- */
6933
- declare function useGraphStats(graph: CommandViewGraph): {
6934
- agents: number;
6935
- workflows: number;
6936
- integrations: number;
6937
- triggers: number;
6938
- prodResources: number;
6939
- devResources: number;
6940
- connectedIntegrations: number;
6941
- errorIntegrations: number;
6942
- };
6943
-
6944
6742
  interface UseCheckpointTasksOptions {
6945
6743
  checkpointId: string | null;
6946
6744
  enabled?: boolean;
@@ -7389,7 +7187,6 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
7389
7187
  dependsOn?: string[] | undefined;
7390
7188
  }[];
7391
7189
  } | undefined;
7392
- stepConfig?: Record<string, unknown> | undefined;
7393
7190
  };
7394
7191
  launchedAt: string | null;
7395
7192
  completedAt: string | null;
@@ -7444,7 +7241,6 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
7444
7241
  dependsOn?: string[] | undefined;
7445
7242
  }[];
7446
7243
  } | undefined;
7447
- stepConfig?: Record<string, unknown> | undefined;
7448
7244
  };
7449
7245
  launchedAt: string | null;
7450
7246
  completedAt: string | null;
@@ -7533,7 +7329,6 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
7533
7329
  dependsOn?: string[] | undefined;
7534
7330
  }[];
7535
7331
  } | undefined;
7536
- stepConfig?: Record<string, unknown> | undefined;
7537
7332
  };
7538
7333
  launchedAt: string | null;
7539
7334
  completedAt: string | null;
@@ -7615,7 +7410,6 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
7615
7410
  dependsOn?: string[] | undefined;
7616
7411
  }[];
7617
7412
  } | undefined;
7618
- stepConfig?: Record<string, unknown> | undefined;
7619
7413
  };
7620
7414
  launchedAt: string | null;
7621
7415
  completedAt: string | null;
@@ -7676,7 +7470,6 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
7676
7470
  dependsOn?: string[] | undefined;
7677
7471
  }[];
7678
7472
  } | undefined;
7679
- stepConfig?: Record<string, unknown> | undefined;
7680
7473
  };
7681
7474
  launchedAt: string | null;
7682
7475
  completedAt: string | null;
@@ -7726,7 +7519,6 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
7726
7519
  order?: number | undefined;
7727
7520
  }[] | undefined;
7728
7521
  } | undefined;
7729
- stepConfig?: Record<string, unknown> | undefined;
7730
7522
  }, unknown>;
7731
7523
  declare function useDeleteList(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
7732
7524
 
@@ -9158,5 +8950,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
9158
8950
  type?: string;
9159
8951
  }, "organization_id">, unknown>;
9160
8952
 
9161
- export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, collectResourceFilterFacets, companyKeys, contactKeys, createFeatureAccessHook, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useHasPermission, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification, useWorkflowExecution };
8953
+ export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, collectResourceFilterFacets, companyKeys, contactKeys, createFeatureAccessHook, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useHasPermission, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification, useWorkflowExecution };
9162
8954
  export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListExecutionsFilters, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RemoveCompaniesFromListResult, RequestRow, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, WebSocketState, WorkflowExecutionTriggerParams };