@elevasis/ui 2.4.1 → 2.6.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 (43) hide show
  1. package/dist/{chunk-JT7WDIZI.js → chunk-4GZ6VZWO.js} +1 -1
  2. package/dist/{chunk-WSL5MNAI.js → chunk-6RGNVHG3.js} +6 -4
  3. package/dist/{chunk-WN764MR7.js → chunk-CC4WGHGG.js} +3 -2
  4. package/dist/{chunk-PEZ4WOPF.js → chunk-DQJM7T2N.js} +2 -2
  5. package/dist/{chunk-KRTZTBVP.js → chunk-FH5QGCXL.js} +8 -6
  6. package/dist/{chunk-2DZACNOX.js → chunk-MU5EZV3L.js} +5 -3
  7. package/dist/{chunk-ISHNN42L.js → chunk-O4PMRC6J.js} +223 -59
  8. package/dist/{chunk-ZG7MLOBE.js → chunk-PEDPD3PU.js} +1 -1
  9. package/dist/{chunk-5XGBMKUY.js → chunk-PHRDZFJT.js} +3 -3
  10. package/dist/{chunk-IPRMGSCV.js → chunk-POFDRPDI.js} +1 -1
  11. package/dist/{chunk-3ONP2CEB.js → chunk-X4BLH3JL.js} +6 -4
  12. package/dist/{chunk-J5KWNRSD.js → chunk-YIWLA2B6.js} +1 -0
  13. package/dist/{chunk-G3G2QEB6.js → chunk-ZB5PKIX5.js} +4 -13
  14. package/dist/components/index.d.ts +127 -105
  15. package/dist/components/index.js +16 -16
  16. package/dist/features/crm/index.d.ts +24 -0
  17. package/dist/features/crm/index.js +5 -5
  18. package/dist/features/dashboard/index.d.ts +2 -37
  19. package/dist/features/dashboard/index.js +5 -5
  20. package/dist/features/delivery/index.d.ts +25 -0
  21. package/dist/features/delivery/index.js +5 -5
  22. package/dist/features/lead-gen/index.d.ts +25 -1
  23. package/dist/features/lead-gen/index.js +8 -8
  24. package/dist/features/monitoring/index.d.ts +25 -0
  25. package/dist/features/monitoring/index.js +6 -6
  26. package/dist/features/operations/index.d.ts +83 -59
  27. package/dist/features/operations/index.js +7 -7
  28. package/dist/features/seo/index.d.ts +25 -0
  29. package/dist/features/seo/index.js +1 -1
  30. package/dist/features/settings/index.d.ts +24 -0
  31. package/dist/features/settings/index.js +5 -5
  32. package/dist/hooks/index.d.ts +239 -239
  33. package/dist/hooks/index.js +4 -4
  34. package/dist/hooks/published.d.ts +169 -169
  35. package/dist/hooks/published.js +3 -3
  36. package/dist/index.d.ts +302 -254
  37. package/dist/index.js +4 -4
  38. package/dist/provider/index.d.ts +63 -15
  39. package/dist/provider/index.js +2 -2
  40. package/dist/provider/published.d.ts +63 -15
  41. package/dist/provider/published.js +1 -1
  42. package/dist/types/index.d.ts +134 -134
  43. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4204,6 +4204,88 @@ interface AgentIterationData {
4204
4204
  status: 'running' | 'completed' | 'failed' | 'warning';
4205
4205
  }
4206
4206
 
4207
+ /** Raw database row type for acq_deals table */
4208
+ type AcqDealRow = Database$1['public']['Tables']['acq_deals']['Row'];
4209
+ type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
4210
+ interface DealContact {
4211
+ id: string;
4212
+ first_name: string | null;
4213
+ last_name: string | null;
4214
+ email: string;
4215
+ title: string | null;
4216
+ headline: string | null;
4217
+ linkedin_url: string | null;
4218
+ pipeline_status: Record<string, unknown> | null;
4219
+ enrichment_data: Record<string, unknown> | null;
4220
+ company: {
4221
+ id: string;
4222
+ name: string;
4223
+ domain: string | null;
4224
+ website: string | null;
4225
+ linkedin_url: string | null;
4226
+ segment: string | null;
4227
+ category: string | null;
4228
+ num_employees: number | null;
4229
+ } | null;
4230
+ }
4231
+ interface DealFilters {
4232
+ stage?: DealStage;
4233
+ search?: string;
4234
+ }
4235
+ /** Deal list item with joined contact and company data */
4236
+ interface DealListItem extends AcqDealRow {
4237
+ contact: DealContact | null;
4238
+ }
4239
+ type DealDetail = DealListItem;
4240
+ /** Task kind options for a deal task (human follow-up action type) */
4241
+ type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
4242
+ /**
4243
+ * A CRM to-do item attached to a deal representing a human follow-up action.
4244
+ * Transformed from AcqDealTaskRow with camelCase properties.
4245
+ */
4246
+ interface AcqDealTask {
4247
+ id: string;
4248
+ organizationId: string;
4249
+ dealId: string;
4250
+ title: string;
4251
+ description: string | null;
4252
+ kind: AcqDealTaskKind;
4253
+ dueAt: string | null;
4254
+ assigneeUserId: string | null;
4255
+ completedAt: string | null;
4256
+ completedByUserId: string | null;
4257
+ createdAt: string;
4258
+ updatedAt: string;
4259
+ createdByUserId: string | null;
4260
+ }
4261
+ /**
4262
+ * Live-scan aggregate telemetry for a single list, computed on demand from
4263
+ * the list junction tables and current contact deliverability state.
4264
+ */
4265
+ interface ListTelemetry {
4266
+ listId: string;
4267
+ totalCompanies: number;
4268
+ totalContacts: number;
4269
+ stageCounts: {
4270
+ populated: number;
4271
+ extracted: number;
4272
+ qualified: number;
4273
+ discovered: number;
4274
+ verified: number;
4275
+ personalized: number;
4276
+ uploaded: number;
4277
+ };
4278
+ deliverability: {
4279
+ valid: number;
4280
+ risky: number;
4281
+ invalid: number;
4282
+ unknown: number;
4283
+ bounced: number;
4284
+ };
4285
+ /** Reserved -- active workflow IDs associated with this list. */
4286
+ activeWorkflows?: string[];
4287
+ }
4288
+
4207
4289
  /**
4208
4290
  * Action configuration for HITL tasks
4209
4291
  * Defines available user actions and their behavior
@@ -4449,87 +4531,93 @@ interface NotificationDTO {
4449
4531
  createdAt: string;
4450
4532
  }
4451
4533
 
4452
- /** Raw database row type for acq_deals table */
4453
- type AcqDealRow = Database$1['public']['Tables']['acq_deals']['Row'];
4454
- type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
4455
- interface DealContact {
4456
- id: string;
4457
- first_name: string | null;
4458
- last_name: string | null;
4459
- email: string;
4460
- title: string | null;
4461
- headline: string | null;
4462
- linkedin_url: string | null;
4463
- pipeline_status: Record<string, unknown> | null;
4464
- enrichment_data: Record<string, unknown> | null;
4465
- company: {
4466
- id: string;
4467
- name: string;
4468
- domain: string | null;
4469
- website: string | null;
4470
- linkedin_url: string | null;
4471
- segment: string | null;
4472
- category: string | null;
4473
- num_employees: number | null;
4474
- } | null;
4475
- }
4476
- interface DealFilters {
4477
- stage?: DealStage;
4478
- search?: string;
4479
- }
4480
- /** Deal list item with joined contact and company data */
4481
- interface DealListItem extends AcqDealRow {
4482
- contact: DealContact | null;
4483
- }
4484
- type DealDetail = DealListItem;
4485
- /** Task kind options for a deal task (human follow-up action type) */
4486
- type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
4487
- /**
4488
- * A CRM to-do item attached to a deal representing a human follow-up action.
4489
- * Transformed from AcqDealTaskRow with camelCase properties.
4490
- */
4491
- interface AcqDealTask {
4492
- id: string;
4493
- organizationId: string;
4494
- dealId: string;
4495
- title: string;
4496
- description: string | null;
4497
- kind: AcqDealTaskKind;
4498
- dueAt: string | null;
4499
- assigneeUserId: string | null;
4500
- completedAt: string | null;
4501
- completedByUserId: string | null;
4502
- createdAt: string;
4503
- updatedAt: string;
4504
- createdByUserId: string | null;
4505
- }
4506
- /**
4507
- * Live-scan aggregate telemetry for a single list, computed on demand from
4508
- * the list junction tables and current contact deliverability state.
4509
- */
4510
- interface ListTelemetry {
4511
- listId: string;
4512
- totalCompanies: number;
4513
- totalContacts: number;
4514
- stageCounts: {
4515
- populated: number;
4516
- extracted: number;
4517
- qualified: number;
4518
- discovered: number;
4519
- verified: number;
4520
- personalized: number;
4521
- uploaded: number;
4522
- };
4523
- deliverability: {
4524
- valid: number;
4525
- risky: number;
4526
- invalid: number;
4527
- unknown: number;
4528
- bounced: number;
4529
- };
4530
- /** Reserved -- active workflow IDs associated with this list. */
4531
- activeWorkflows?: string[];
4532
- }
4534
+ declare const ListCompaniesQuerySchema: z.ZodObject<{
4535
+ search: z.ZodOptional<z.ZodString>;
4536
+ listId: z.ZodOptional<z.ZodString>;
4537
+ domain: z.ZodOptional<z.ZodString>;
4538
+ website: z.ZodOptional<z.ZodString>;
4539
+ segment: z.ZodOptional<z.ZodString>;
4540
+ category: z.ZodOptional<z.ZodString>;
4541
+ batchId: z.ZodOptional<z.ZodString>;
4542
+ status: z.ZodOptional<z.ZodEnum<{
4543
+ active: "active";
4544
+ invalid: "invalid";
4545
+ }>>;
4546
+ includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4547
+ }, z.core.$strict>;
4548
+ declare const ListContactsQuerySchema: z.ZodObject<{
4549
+ search: z.ZodOptional<z.ZodString>;
4550
+ listId: z.ZodOptional<z.ZodString>;
4551
+ openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4552
+ batchId: z.ZodOptional<z.ZodString>;
4553
+ contactStatus: z.ZodOptional<z.ZodEnum<{
4554
+ active: "active";
4555
+ invalid: "invalid";
4556
+ }>>;
4557
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4558
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4559
+ }, z.core.$strict>;
4560
+ declare const AcqCompanyResponseSchema: z.ZodObject<{
4561
+ id: z.ZodString;
4562
+ organizationId: z.ZodString;
4563
+ name: z.ZodString;
4564
+ domain: z.ZodNullable<z.ZodString>;
4565
+ linkedinUrl: z.ZodNullable<z.ZodString>;
4566
+ website: z.ZodNullable<z.ZodString>;
4567
+ numEmployees: z.ZodNullable<z.ZodNumber>;
4568
+ foundedYear: z.ZodNullable<z.ZodNumber>;
4569
+ locationCity: z.ZodNullable<z.ZodString>;
4570
+ locationState: z.ZodNullable<z.ZodString>;
4571
+ category: z.ZodNullable<z.ZodString>;
4572
+ categoryPain: z.ZodNullable<z.ZodString>;
4573
+ segment: z.ZodNullable<z.ZodString>;
4574
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4575
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4576
+ source: z.ZodNullable<z.ZodString>;
4577
+ batchId: z.ZodNullable<z.ZodString>;
4578
+ status: z.ZodEnum<{
4579
+ active: "active";
4580
+ invalid: "invalid";
4581
+ }>;
4582
+ verticalResearch: z.ZodNullable<z.ZodString>;
4583
+ createdAt: z.ZodString;
4584
+ updatedAt: z.ZodString;
4585
+ }, z.core.$strip>;
4586
+ declare const AcqContactResponseSchema: z.ZodObject<{
4587
+ id: z.ZodString;
4588
+ organizationId: z.ZodString;
4589
+ companyId: z.ZodNullable<z.ZodString>;
4590
+ email: z.ZodString;
4591
+ emailValid: z.ZodNullable<z.ZodEnum<{
4592
+ VALID: "VALID";
4593
+ INVALID: "INVALID";
4594
+ RISKY: "RISKY";
4595
+ UNKNOWN: "UNKNOWN";
4596
+ }>>;
4597
+ firstName: z.ZodNullable<z.ZodString>;
4598
+ lastName: z.ZodNullable<z.ZodString>;
4599
+ linkedinUrl: z.ZodNullable<z.ZodString>;
4600
+ title: z.ZodNullable<z.ZodString>;
4601
+ headline: z.ZodNullable<z.ZodString>;
4602
+ filterReason: z.ZodNullable<z.ZodString>;
4603
+ openingLine: z.ZodNullable<z.ZodString>;
4604
+ source: z.ZodNullable<z.ZodString>;
4605
+ sourceId: z.ZodNullable<z.ZodString>;
4606
+ pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4607
+ enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4608
+ attioPersonId: z.ZodNullable<z.ZodString>;
4609
+ batchId: z.ZodNullable<z.ZodString>;
4610
+ status: z.ZodEnum<{
4611
+ active: "active";
4612
+ invalid: "invalid";
4613
+ }>;
4614
+ createdAt: z.ZodString;
4615
+ updatedAt: z.ZodString;
4616
+ }, z.core.$strip>;
4617
+ type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
4618
+ type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
4619
+ type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
4620
+ type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
4533
4621
 
4534
4622
  type MessageType = MessageEvent['type'];
4535
4623
  /**
@@ -5976,94 +6064,6 @@ interface Deployment {
5976
6064
  updatedAt: string;
5977
6065
  }
5978
6066
 
5979
- declare const ListCompaniesQuerySchema: z.ZodObject<{
5980
- search: z.ZodOptional<z.ZodString>;
5981
- listId: z.ZodOptional<z.ZodString>;
5982
- domain: z.ZodOptional<z.ZodString>;
5983
- website: z.ZodOptional<z.ZodString>;
5984
- segment: z.ZodOptional<z.ZodString>;
5985
- category: z.ZodOptional<z.ZodString>;
5986
- batchId: z.ZodOptional<z.ZodString>;
5987
- status: z.ZodOptional<z.ZodEnum<{
5988
- active: "active";
5989
- invalid: "invalid";
5990
- }>>;
5991
- includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
5992
- }, z.core.$strict>;
5993
- declare const ListContactsQuerySchema: z.ZodObject<{
5994
- search: z.ZodOptional<z.ZodString>;
5995
- listId: z.ZodOptional<z.ZodString>;
5996
- openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
5997
- batchId: z.ZodOptional<z.ZodString>;
5998
- contactStatus: z.ZodOptional<z.ZodEnum<{
5999
- active: "active";
6000
- invalid: "invalid";
6001
- }>>;
6002
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6003
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6004
- }, z.core.$strict>;
6005
- declare const AcqCompanyResponseSchema: z.ZodObject<{
6006
- id: z.ZodString;
6007
- organizationId: z.ZodString;
6008
- name: z.ZodString;
6009
- domain: z.ZodNullable<z.ZodString>;
6010
- linkedinUrl: z.ZodNullable<z.ZodString>;
6011
- website: z.ZodNullable<z.ZodString>;
6012
- numEmployees: z.ZodNullable<z.ZodNumber>;
6013
- foundedYear: z.ZodNullable<z.ZodNumber>;
6014
- locationCity: z.ZodNullable<z.ZodString>;
6015
- locationState: z.ZodNullable<z.ZodString>;
6016
- category: z.ZodNullable<z.ZodString>;
6017
- categoryPain: z.ZodNullable<z.ZodString>;
6018
- segment: z.ZodNullable<z.ZodString>;
6019
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6020
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6021
- source: z.ZodNullable<z.ZodString>;
6022
- batchId: z.ZodNullable<z.ZodString>;
6023
- status: z.ZodEnum<{
6024
- active: "active";
6025
- invalid: "invalid";
6026
- }>;
6027
- verticalResearch: z.ZodNullable<z.ZodString>;
6028
- createdAt: z.ZodString;
6029
- updatedAt: z.ZodString;
6030
- }, z.core.$strip>;
6031
- declare const AcqContactResponseSchema: z.ZodObject<{
6032
- id: z.ZodString;
6033
- organizationId: z.ZodString;
6034
- companyId: z.ZodNullable<z.ZodString>;
6035
- email: z.ZodString;
6036
- emailValid: z.ZodNullable<z.ZodEnum<{
6037
- VALID: "VALID";
6038
- INVALID: "INVALID";
6039
- RISKY: "RISKY";
6040
- UNKNOWN: "UNKNOWN";
6041
- }>>;
6042
- firstName: z.ZodNullable<z.ZodString>;
6043
- lastName: z.ZodNullable<z.ZodString>;
6044
- linkedinUrl: z.ZodNullable<z.ZodString>;
6045
- title: z.ZodNullable<z.ZodString>;
6046
- headline: z.ZodNullable<z.ZodString>;
6047
- filterReason: z.ZodNullable<z.ZodString>;
6048
- openingLine: z.ZodNullable<z.ZodString>;
6049
- source: z.ZodNullable<z.ZodString>;
6050
- sourceId: z.ZodNullable<z.ZodString>;
6051
- pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6052
- enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6053
- attioPersonId: z.ZodNullable<z.ZodString>;
6054
- batchId: z.ZodNullable<z.ZodString>;
6055
- status: z.ZodEnum<{
6056
- active: "active";
6057
- invalid: "invalid";
6058
- }>;
6059
- createdAt: z.ZodString;
6060
- updatedAt: z.ZodString;
6061
- }, z.core.$strip>;
6062
- type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
6063
- type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
6064
- type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
6065
- type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
6066
-
6067
6067
  /**
6068
6068
  * Merges SSE-streamed logs with fetched execution data for instant log display.
6069
6069
  * Deduplicates by composite key (timestamp + message) to avoid showing the same
@@ -6911,6 +6911,14 @@ declare function ScrollToTop(): react_jsx_runtime.JSX.Element;
6911
6911
  */
6912
6912
  declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
6913
6913
 
6914
+ declare const SemanticDomainSchema = DisplayMetadataSchema.extend({
6915
+ id: ModelIdSchema,
6916
+ entityIds: ReferenceIdsSchema,
6917
+ surfaceIds: ReferenceIdsSchema,
6918
+ resourceIds: ReferenceIdsSchema,
6919
+ capabilityIds: ReferenceIdsSchema
6920
+ })
6921
+
6914
6922
  declare const FeatureKeySchema = z.enum([
6915
6923
  'acquisition',
6916
6924
  'delivery',
@@ -6951,6 +6959,7 @@ declare const OrganizationModelSchema = z.object({
6951
6959
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>
6952
6960
  type OrganizationModelFeatureKey = z.infer<typeof FeatureKeySchema>
6953
6961
  type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>
6962
+ type OrganizationModelSemanticDomain = z.infer<typeof SemanticDomainSchema>
6954
6963
 
6955
6964
  /**
6956
6965
  * Workflow-specific logging types and utilities
@@ -9786,6 +9795,76 @@ interface AcqDealNote {
9786
9795
  updatedAt: string
9787
9796
  }
9788
9797
 
9798
+ // Row types from Supabase
9799
+ type ProjectRow = Database['public']['Tables']['prj_projects']['Row']
9800
+ type ProjectUpdate = Database['public']['Tables']['prj_projects']['Update']
9801
+
9802
+ type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row']
9803
+ type MilestoneUpdate = Database['public']['Tables']['prj_milestones']['Update']
9804
+
9805
+ type TaskRow = Database['public']['Tables']['prj_tasks']['Row']
9806
+
9807
+ // Status enums
9808
+ type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused'
9809
+
9810
+ type ProjectKind = 'client_engagement' | 'internal'
9811
+
9812
+ type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked'
9813
+
9814
+ type TaskStatus =
9815
+ | 'planned'
9816
+ | 'in_progress'
9817
+ | 'blocked'
9818
+ | 'completed'
9819
+ | 'cancelled'
9820
+ | 'submitted'
9821
+ | 'approved'
9822
+ | 'rejected'
9823
+ | 'revision_requested'
9824
+
9825
+ type TaskType = 'documentation' | 'code' | 'report' | 'design' | 'other'
9826
+
9827
+ type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker'
9828
+
9829
+ // Filter types
9830
+ interface ProjectFilters {
9831
+ status?: ProjectStatus
9832
+ kind?: ProjectKind
9833
+ companyId?: string
9834
+ search?: string
9835
+ }
9836
+
9837
+ interface MilestoneFilters {
9838
+ status?: MilestoneStatus
9839
+ projectId?: string
9840
+ }
9841
+
9842
+ interface TaskFilters {
9843
+ status?: TaskStatus
9844
+ type?: TaskType
9845
+ milestoneId?: string
9846
+ projectId?: string
9847
+ }
9848
+
9849
+ interface NoteFilters {
9850
+ type?: NoteType
9851
+ projectId?: string
9852
+ }
9853
+
9854
+ // Display types (for JOINed data)
9855
+ interface ProjectWithCounts extends ProjectRow {
9856
+ milestoneCount: number
9857
+ taskCount: number
9858
+ completedMilestones?: number
9859
+ completedTasks?: number
9860
+ }
9861
+
9862
+ interface ProjectDetail extends ProjectRow {
9863
+ milestones: MilestoneRow[]
9864
+ tasks: TaskRow[]
9865
+ company: { id: string; name: string; domain: string | null } | null
9866
+ }
9867
+
9789
9868
  /**
9790
9869
  * Resource Registry type definitions
9791
9870
  */
@@ -9856,11 +9935,57 @@ type FeatureSidebarComponent = ComponentType;
9856
9935
  interface FeatureModule {
9857
9936
  key: string;
9858
9937
  label?: string;
9938
+ accessFeatureKey: OrganizationModelFeatureKey;
9939
+ domainIds?: OrganizationModelSemanticDomain['id'][];
9940
+ capabilityIds?: string[];
9859
9941
  navEntry?: FeatureNavEntry;
9860
9942
  sidebar?: FeatureSidebarComponent;
9861
9943
  subshellRoutes?: string[];
9862
9944
  organizationGraph?: OrganizationGraphFeatureBridge;
9863
9945
  }
9946
+ type ShellModuleDefinition = FeatureModule;
9947
+ interface ResolvedFeatureAccess {
9948
+ featureKey: string;
9949
+ label?: string;
9950
+ enabled: boolean;
9951
+ }
9952
+ interface ResolvedFeatureSemantics {
9953
+ domainIds: OrganizationModelSemanticDomain['id'][];
9954
+ capabilityIds: string[];
9955
+ surfaceIds: string[];
9956
+ surfaces: OrganizationModelSurface[];
9957
+ }
9958
+ interface ResolvedFeatureModule extends FeatureModule {
9959
+ access: ResolvedFeatureAccess;
9960
+ semantics: ResolvedFeatureSemantics;
9961
+ }
9962
+ type ShellNavPlacement = 'primary' | 'bottom';
9963
+ type ShellNavSource = 'app' | 'feature';
9964
+ interface ResolvedShellNavItem extends FeatureNavEntry {
9965
+ placement: ShellNavPlacement;
9966
+ source: ShellNavSource;
9967
+ shellModuleKey?: string;
9968
+ accessFeatureKey?: string;
9969
+ }
9970
+ interface ResolvedShellModel {
9971
+ navItems: ResolvedShellNavItem[];
9972
+ }
9973
+ interface AppShellOverrides {
9974
+ primaryNavItems?: FeatureNavEntry[];
9975
+ bottomNavItems?: FeatureNavEntry[];
9976
+ }
9977
+ type ShellRouteMatchStatus = 'matched' | 'hidden' | 'unmatched';
9978
+ interface ResolvedShellRouteMatch {
9979
+ status: ShellRouteMatchStatus;
9980
+ path: string;
9981
+ feature?: ResolvedFeatureModule;
9982
+ navItem?: ResolvedShellNavItem;
9983
+ navLink?: FeatureNavLink;
9984
+ }
9985
+ interface ShellRuntime {
9986
+ shellModel: ResolvedShellModel;
9987
+ resolveRoute: (path: string) => ResolvedShellRouteMatch;
9988
+ }
9864
9989
  interface OrganizationGraphFeatureBridge {
9865
9990
  surfaceId: string;
9866
9991
  }
@@ -9871,20 +9996,13 @@ interface OrganizationGraphContextValue {
9871
9996
  surfaceType?: OrganizationModelSurface['surfaceType'];
9872
9997
  featureKey?: OrganizationModelFeatureKey;
9873
9998
  }
9874
- type FeatureRouteState = 'enabled' | 'disabled' | 'missing';
9875
- interface FeatureRouteResolution {
9876
- state: FeatureRouteState;
9877
- path: string;
9878
- feature?: FeatureModule;
9879
- navEntry?: FeatureNavEntry;
9880
- navLink?: FeatureNavLink;
9881
- }
9882
9999
  interface FeatureRegistry {
9883
10000
  features: FeatureModule[];
9884
10001
  }
9885
10002
  interface ElevasisFeaturesProviderProps {
9886
10003
  features: FeatureModule[];
9887
10004
  organizationModel?: OrganizationModel;
10005
+ appShellOverrides?: AppShellOverrides;
9888
10006
  timeRange?: TimeRange;
9889
10007
  operationsApiUrl?: string;
9890
10008
  operationsSSEManager?: SSEConnectionManagerLike;
@@ -9892,9 +10010,10 @@ interface ElevasisFeaturesProviderProps {
9892
10010
  children: ReactNode;
9893
10011
  }
9894
10012
  interface ElevasisFeaturesContextValue {
9895
- navItems: FeatureNavEntry[];
9896
- enabledFeatures: FeatureModule[];
9897
- allFeatures: FeatureModule[];
10013
+ shellModel: ResolvedShellModel;
10014
+ shellRuntime: ShellRuntime;
10015
+ enabledResolvedFeatures: ResolvedFeatureModule[];
10016
+ resolvedFeatures: ResolvedFeatureModule[];
9898
10017
  organizationGraph: OrganizationGraphContextValue;
9899
10018
  organizationModel?: OrganizationModel;
9900
10019
  timeRange?: TimeRange;
@@ -9902,13 +10021,12 @@ interface ElevasisFeaturesContextValue {
9902
10021
  operationsSSEManager?: SSEConnectionManagerLike;
9903
10022
  disabledSubsectionPaths: string[];
9904
10023
  isFeatureEnabled: (key: string) => boolean;
9905
- getFeature: (key: string) => FeatureModule | undefined;
9906
- resolveNavRoute: (path: string) => FeatureRouteResolution;
10024
+ getResolvedFeature: (key: string) => ResolvedFeatureModule | undefined;
9907
10025
  }
9908
10026
 
9909
10027
  declare function useElevasisFeatures(): ElevasisFeaturesContextValue;
9910
10028
  declare function useOptionalElevasisFeatures(): ElevasisFeaturesContextValue | null;
9911
- declare function ElevasisFeaturesProvider({ features, organizationModel, timeRange, operationsApiUrl, operationsSSEManager, disabledSubsectionPaths, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
10029
+ declare function ElevasisFeaturesProvider({ features, organizationModel, appShellOverrides, timeRange, operationsApiUrl, operationsSSEManager, disabledSubsectionPaths, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
9912
10030
 
9913
10031
  declare function FeatureShell({ children }: {
9914
10032
  children: ReactNode;
@@ -12943,76 +13061,6 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
12943
13061
  }, unknown>;
12944
13062
  declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
12945
13063
 
12946
- // Row types from Supabase
12947
- type ProjectRow = Database['public']['Tables']['prj_projects']['Row']
12948
- type ProjectUpdate = Database['public']['Tables']['prj_projects']['Update']
12949
-
12950
- type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row']
12951
- type MilestoneUpdate = Database['public']['Tables']['prj_milestones']['Update']
12952
-
12953
- type TaskRow = Database['public']['Tables']['prj_tasks']['Row']
12954
-
12955
- // Status enums
12956
- type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused'
12957
-
12958
- type ProjectKind = 'client_engagement' | 'internal'
12959
-
12960
- type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked'
12961
-
12962
- type TaskStatus =
12963
- | 'planned'
12964
- | 'in_progress'
12965
- | 'blocked'
12966
- | 'completed'
12967
- | 'cancelled'
12968
- | 'submitted'
12969
- | 'approved'
12970
- | 'rejected'
12971
- | 'revision_requested'
12972
-
12973
- type TaskType = 'documentation' | 'code' | 'report' | 'design' | 'other'
12974
-
12975
- type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker'
12976
-
12977
- // Filter types
12978
- interface ProjectFilters {
12979
- status?: ProjectStatus
12980
- kind?: ProjectKind
12981
- companyId?: string
12982
- search?: string
12983
- }
12984
-
12985
- interface MilestoneFilters {
12986
- status?: MilestoneStatus
12987
- projectId?: string
12988
- }
12989
-
12990
- interface TaskFilters {
12991
- status?: TaskStatus
12992
- type?: TaskType
12993
- milestoneId?: string
12994
- projectId?: string
12995
- }
12996
-
12997
- interface NoteFilters {
12998
- type?: NoteType
12999
- projectId?: string
13000
- }
13001
-
13002
- // Display types (for JOINed data)
13003
- interface ProjectWithCounts extends ProjectRow {
13004
- milestoneCount: number
13005
- taskCount: number
13006
- completedMilestones?: number
13007
- completedTasks?: number
13008
- }
13009
-
13010
- interface ProjectDetail extends ProjectRow {
13011
- milestones: MilestoneRow[]
13012
- tasks: TaskRow[]
13013
- company: { id: string; name: string; domain: string | null } | null
13014
- }
13015
-
13016
13064
  declare const projectKeys: {
13017
13065
  all: readonly ["projects"];
13018
13066
  lists: () => readonly ["projects", "list"];
@@ -13741,4 +13789,4 @@ declare function InitializationProvider({ children }: {
13741
13789
  }): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
13742
13790
 
13743
13791
  export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, calibrationKeys, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createOrganizationsSlice, createUseAppInitialization, createUseFeatureAccess, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, isAPIClientError, isSessionCapable, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectKeys, restoreConsole, scheduleKeys, sessionsKeys, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAgentIterationData, useAllCalibrationProjects, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateProject$1 as useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteProject$1 as useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useDirectedChainHighlighting, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphHighlighting, useGraphStats, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrganization, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePresetsContext, useProfile, useProject, useProjectNotes, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateMilestone, useUpdateProject$1 as useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
13744
- export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureRegistry, FeatureRouteResolution, FeatureRouteState, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusColorScheme, StatusFilter$1 as StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
13792
+ export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppShellOverrides, AppearanceConfig, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, DocFile, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus$1 as ExecutionStatus, FailingResource, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureRegistry, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellModel, ResolvedShellNavItem, ResolvedShellRouteMatch, ResourcesResponse, RetryExecutionParams, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellModuleDefinition, ShellNavPlacement, ShellNavSource, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StatusColorScheme, StatusFilter$1 as StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };