@elevasis/ui 2.25.5 → 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 (101) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.css +18 -29
  3. package/dist/app/index.d.ts +118 -64
  4. package/dist/app/index.js +6 -5
  5. package/dist/charts/index.js +6 -5
  6. package/dist/chunk-3MEXPLWT.js +265 -0
  7. package/dist/{chunk-IS53MXE4.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-NHHCUECV.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-VMAWXEVG.js → chunk-JKBGDFX2.js} +1136 -828
  14. package/dist/{chunk-MU4VPAMR.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-QNCVK3ZF.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-KINQW4JT.js → chunk-UPMX5GJI.js} +5 -5
  25. package/dist/{chunk-N2AP4I5N.js → chunk-UY5I2KOZ.js} +223 -3857
  26. package/dist/{chunk-JMI7L7Y7.js → chunk-W2ZTLH7Y.js} +142 -4
  27. package/dist/{chunk-3KY2GNPE.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-F7JDHS2I.js → chunk-XZSEPJZQ.js} +5 -5
  32. package/dist/{chunk-5BJXMZN4.js → chunk-YHBPR67D.js} +438 -620
  33. package/dist/{chunk-FVKLHLF4.js → chunk-YO2YORW4.js} +4 -4
  34. package/dist/{chunk-TAIX4NO3.js → chunk-ZFLM2YVW.js} +2 -2
  35. package/dist/components/index.css +18 -29
  36. package/dist/components/index.d.ts +211 -383
  37. package/dist/components/index.js +43 -427
  38. package/dist/components/navigation/index.css +28 -39
  39. package/dist/execution/index.d.ts +0 -73
  40. package/dist/features/auth/index.css +28 -39
  41. package/dist/features/crm/index.css +28 -39
  42. package/dist/features/crm/index.d.ts +49 -49
  43. package/dist/features/crm/index.js +14 -14
  44. package/dist/features/dashboard/index.css +28 -39
  45. package/dist/features/dashboard/index.js +18 -15
  46. package/dist/features/delivery/index.css +18 -29
  47. package/dist/features/delivery/index.js +14 -14
  48. package/dist/features/knowledge/index.css +611 -0
  49. package/dist/features/knowledge/index.js +700 -1
  50. package/dist/features/lead-gen/index.css +28 -39
  51. package/dist/features/lead-gen/index.d.ts +212 -166
  52. package/dist/features/lead-gen/index.js +16 -15
  53. package/dist/features/monitoring/index.css +18 -29
  54. package/dist/features/monitoring/index.js +17 -16
  55. package/dist/features/monitoring/requests/index.css +28 -39
  56. package/dist/features/monitoring/requests/index.js +13 -13
  57. package/dist/features/operations/index.css +28 -39
  58. package/dist/features/operations/index.d.ts +16 -98
  59. package/dist/features/operations/index.js +26 -20
  60. package/dist/features/settings/index.css +28 -39
  61. package/dist/features/settings/index.d.ts +1 -0
  62. package/dist/features/settings/index.js +15 -15
  63. package/dist/hooks/delivery/index.css +28 -39
  64. package/dist/hooks/delivery/index.js +2 -2
  65. package/dist/hooks/index.css +18 -29
  66. package/dist/hooks/index.d.ts +180 -377
  67. package/dist/hooks/index.js +13 -13
  68. package/dist/hooks/published.css +18 -29
  69. package/dist/hooks/published.d.ts +180 -377
  70. package/dist/hooks/published.js +13 -13
  71. package/dist/index.css +18 -29
  72. package/dist/index.d.ts +1549 -946
  73. package/dist/index.js +15 -14
  74. package/dist/initialization/index.d.ts +1 -0
  75. package/dist/knowledge/index.d.ts +991 -41
  76. package/dist/knowledge/index.js +5469 -413
  77. package/dist/layout/index.d.ts +2 -0
  78. package/dist/layout/index.js +3 -2
  79. package/dist/organization/index.css +28 -39
  80. package/dist/organization/index.d.ts +1 -0
  81. package/dist/provider/index.css +28 -39
  82. package/dist/provider/index.d.ts +1147 -348
  83. package/dist/provider/index.js +11 -10
  84. package/dist/provider/published.css +28 -39
  85. package/dist/provider/published.d.ts +1146 -347
  86. package/dist/provider/published.js +8 -8
  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 +46 -33
  99. package/src/knowledge/README.md +8 -8
  100. package/src/theme/presets/README.md +19 -0
  101. /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;
@@ -7356,8 +7154,12 @@ declare const acquisitionListKeys: {
7356
7154
  detail: (organizationId: string | null, listId: string) => readonly ["acquisition-lists", string | null, string];
7357
7155
  telemetry: (organizationId: string | null) => readonly ["acquisition-lists", "telemetry", string | null];
7358
7156
  progress: (organizationId: string | null, listId: string) => readonly ["acquisition-lists", "progress", string | null, string];
7359
- executions: (organizationId: string | null, listId: string) => readonly ["acquisition-lists", "executions", string | null, string];
7157
+ executions: (organizationId: string | null, listId: string, filters?: ListExecutionsFilters) => readonly ["acquisition-lists", "executions", string | null, string, string | null, number | null];
7360
7158
  };
7159
+ interface ListExecutionsFilters {
7160
+ resourceId?: string | null;
7161
+ limit?: number;
7162
+ }
7361
7163
  declare function useLists(): _tanstack_react_query.UseQueryResult<{
7362
7164
  id: string;
7363
7165
  organizationId: string;
@@ -7491,13 +7293,14 @@ declare function useListProgress(listId: string): _tanstack_react_query.UseQuery
7491
7293
  notAttempted: number;
7492
7294
  }>;
7493
7295
  }, Error>;
7494
- declare function useListExecutions(listId: string): _tanstack_react_query.UseQueryResult<{
7296
+ declare function useListExecutions(listId: string, filters?: ListExecutionsFilters): _tanstack_react_query.UseQueryResult<{
7495
7297
  executionId: string;
7496
7298
  resourceId: string;
7497
7299
  status: string;
7498
7300
  createdAt: string;
7499
7301
  completedAt: string | null;
7500
7302
  durationMs: number | null;
7303
+ input?: unknown;
7501
7304
  }[], Error>;
7502
7305
  declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
7503
7306
  id: string;
@@ -9147,5 +8950,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
9147
8950
  type?: string;
9148
8951
  }, "organization_id">, unknown>;
9149
8952
 
9150
- 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 };
9151
- 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, 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 };
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 };
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 };