@elevasis/ui 2.66.0 → 2.68.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 (98) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.d.ts +16 -15
  4. package/dist/app/index.js +31 -21
  5. package/dist/auth/index.js +10 -12
  6. package/dist/charts/index.js +10 -12
  7. package/dist/chunk-2MTP3H3A.js +425 -0
  8. package/dist/chunk-3KMDHCAR.js +52 -0
  9. package/dist/chunk-3MEXPLWT.js +265 -0
  10. package/dist/{chunk-XNW3O6QW.js → chunk-5NRJ2BLQ.js} +1 -1
  11. package/dist/chunk-75NOC536.js +2162 -0
  12. package/dist/chunk-76IVMVI3.js +1764 -0
  13. package/dist/chunk-AH52XQB7.js +1 -0
  14. package/dist/chunk-BZZCNLT6.js +12 -0
  15. package/dist/chunk-DLR4SDZW.js +51 -0
  16. package/dist/chunk-FK3K2VK2.js +2103 -0
  17. package/dist/chunk-GBXTRSAU.js +37 -0
  18. package/dist/chunk-HJVPVS57.js +1934 -0
  19. package/dist/{chunk-M535KHLW.js → chunk-JC5W55J3.js} +1 -1
  20. package/dist/{chunk-I7BZVVVU.js → chunk-L3HFJFYF.js} +89 -382
  21. package/dist/chunk-LGKLC5MG.js +44 -0
  22. package/dist/{chunk-4DV4ECMG.js → chunk-N7U24M2J.js} +4 -0
  23. package/dist/chunk-NDHMZT2G.js +383 -0
  24. package/dist/chunk-OOACTYRA.js +10 -0
  25. package/dist/chunk-PDHTXPSF.js +12 -0
  26. package/dist/chunk-QYI5BZKM.js +85 -0
  27. package/dist/{chunk-4OEVLV66.js → chunk-R6NMRXNO.js} +112 -147
  28. package/dist/chunk-SIVUCZXQ.js +1194 -0
  29. package/dist/{chunk-JFBZ6XDW.js → chunk-SNZDFCOQ.js} +3 -49
  30. package/dist/chunk-TGPJNKDU.js +1595 -0
  31. package/dist/chunk-TUMSNGTX.js +35 -0
  32. package/dist/chunk-TYKAKJGW.js +67 -0
  33. package/dist/chunk-UD657ICS.js +589 -0
  34. package/dist/chunk-WPIASV3H.js +194 -0
  35. package/dist/chunk-ZFISGKYW.js +39 -0
  36. package/dist/chunk-ZGCWTWBD.js +16127 -0
  37. package/dist/chunk-ZNKZMK2E.js +4528 -0
  38. package/dist/chunk-ZWS3TCQR.js +11032 -0
  39. package/dist/components/chat/index.js +2 -1
  40. package/dist/components/index.d.ts +23 -11
  41. package/dist/components/index.js +2773 -14
  42. package/dist/components/navigation/index.js +11 -12
  43. package/dist/features/auth/index.d.ts +0 -4
  44. package/dist/features/auth/index.js +12 -13
  45. package/dist/features/clients/index.js +14 -12
  46. package/dist/features/crm/index.d.ts +1371 -15
  47. package/dist/features/crm/index.js +15 -12
  48. package/dist/features/dashboard/index.d.ts +1 -2
  49. package/dist/features/dashboard/index.js +15 -12
  50. package/dist/features/delivery/index.d.ts +0 -4
  51. package/dist/features/delivery/index.js +15 -12
  52. package/dist/features/knowledge/index.js +10 -12
  53. package/dist/features/lead-gen/index.d.ts +35 -15
  54. package/dist/features/lead-gen/index.js +16 -12
  55. package/dist/features/monitoring/index.js +15 -12
  56. package/dist/features/monitoring/requests/index.js +13 -13
  57. package/dist/features/operations/index.d.ts +1 -2
  58. package/dist/features/operations/index.js +21 -12
  59. package/dist/features/public-agent-chat/index.js +2 -1
  60. package/dist/features/seo/index.js +2 -1
  61. package/dist/features/settings/index.d.ts +0 -4
  62. package/dist/features/settings/index.js +14 -12
  63. package/dist/hooks/access/index.js +10 -12
  64. package/dist/hooks/delivery/index.d.ts +0 -4
  65. package/dist/hooks/delivery/index.js +2 -23
  66. package/dist/hooks/index.d.ts +13 -7
  67. package/dist/hooks/index.js +10 -12
  68. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +1 -2
  69. package/dist/hooks/published.d.ts +13 -7
  70. package/dist/hooks/published.js +10 -12
  71. package/dist/initialization/index.d.ts +1 -5
  72. package/dist/knowledge/index.d.ts +1 -2
  73. package/dist/knowledge/index.js +15 -13
  74. package/dist/layout/index.js +14 -12
  75. package/dist/organization/index.d.ts +3 -3
  76. package/dist/organization/index.js +1 -21
  77. package/dist/profile/index.d.ts +0 -4
  78. package/dist/provider/index.d.ts +2 -7
  79. package/dist/provider/index.js +10 -12
  80. package/dist/provider/published.d.ts +2 -7
  81. package/dist/provider/published.js +10 -12
  82. package/dist/supabase/index.d.ts +0 -8
  83. package/dist/test-utils/index.d.ts +5 -0
  84. package/dist/test-utils/index.js +5 -5
  85. package/dist/test-utils/setup-integration.js +1 -1
  86. package/dist/test-utils/setup.js +1 -1
  87. package/dist/theme/index.js +2 -1
  88. package/dist/typeform/index.js +2049 -1
  89. package/dist/types/index.d.ts +13 -7
  90. package/dist/utils/index.d.ts +1 -2
  91. package/dist/utils/index.js +1 -1
  92. package/package.json +5 -5
  93. package/dist/chunk-ANNM5R7S.js +0 -51404
  94. package/dist/chunk-AUDNF2Q7.js +0 -2050
  95. package/dist/index.css +0 -659
  96. package/dist/index.d.ts +0 -17888
  97. package/dist/index.js +0 -30
  98. package/dist/{chunk-GMXGDO3I.js → chunk-MISHPEJX.js} +1 -1
@@ -3157,10 +3157,6 @@ type Database = {
3157
3157
  Args: Record<PropertyKey, never>;
3158
3158
  Returns: string;
3159
3159
  };
3160
- detect_stalled_executions: {
3161
- Args: Record<PropertyKey, never>;
3162
- Returns: undefined;
3163
- };
3164
3160
  execute_session_turn: {
3165
3161
  Args: {
3166
3162
  p_session_id: string;
@@ -3306,6 +3302,33 @@ type Database = {
3306
3302
  };
3307
3303
  };
3308
3304
 
3305
+ /** One state within a stage: minimal shape of key + display label. */
3306
+ interface StatefulStateDefinition {
3307
+ /** Matches state_key values written by workflow steps. */
3308
+ stateKey: string;
3309
+ label: string;
3310
+ }
3311
+ /** One stage within a pipeline: has a stage_key and ordered valid states. */
3312
+ interface StatefulStageDefinition {
3313
+ /** Matches stage_key values written by workflow steps. */
3314
+ stageKey: string;
3315
+ label: string;
3316
+ /** UI color token. Consumers may map this to their design system. */
3317
+ color?: string;
3318
+ states: StatefulStateDefinition[];
3319
+ }
3320
+ /**
3321
+ * Pipeline definition for a single entity participating in the Stateful trait.
3322
+ * Parallel to acq_deals' pipeline_key concept but structured for any entity.
3323
+ */
3324
+ interface StatefulPipelineDefinition {
3325
+ /** Matches pipeline_key values in the database. */
3326
+ pipelineKey: string;
3327
+ label: string;
3328
+ /** Entity this pipeline applies to. */
3329
+ entityKey: string;
3330
+ stages: StatefulStageDefinition[];
3331
+ }
3309
3332
  type CrmPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
3310
3333
  interface CrmPriorityBucketDefinition {
3311
3334
  bucketKey: CrmPriorityBucketKey;
@@ -3473,7 +3496,18 @@ type DealDetailResponse = z.infer<typeof DealDetailResponseSchema>;
3473
3496
 
3474
3497
  /** Raw database row type for acq_deals table */
3475
3498
  type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
3476
- type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
3499
+ /**
3500
+ * Deal stage key. Intentionally an open string, not a closed union — stage
3501
+ * vocabulary is tenant-owned content (see the `CrmStageKeySchema` comment in
3502
+ * api-schemas.ts: "CRM stage/state catalogs are model-owned... The published
3503
+ * core schema validates only the transport shape; closed-catalog membership
3504
+ * is enforced by the caller/API layer via model-injected validators"). A
3505
+ * closed union here would bake Elevasis's specific pipeline
3506
+ * (`interested`/`proposal`/`closing`/`closed_won`/`closed_lost`/`nurturing`)
3507
+ * into every tenant's type surface. `DealStageSchema` in api-schemas.ts is
3508
+ * already `z.string()` for the same reason; this type now matches it.
3509
+ */
3510
+ type DealStage = string;
3477
3511
  type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
3478
3512
  interface DealPriority {
3479
3513
  bucketKey: DealPriorityBucketKey;
@@ -3520,6 +3554,1298 @@ interface DealListItem extends AcqDealRow {
3520
3554
  }
3521
3555
  type DealDetail$1 = DealListItem;
3522
3556
 
3557
+ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
3558
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3559
+ id: z.ZodString;
3560
+ label: z.ZodOptional<z.ZodString>;
3561
+ description: z.ZodOptional<z.ZodString>;
3562
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3563
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3564
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3565
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3566
+ }, z.core.$loose>>>>;
3567
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3568
+ id: z.ZodString;
3569
+ label: z.ZodOptional<z.ZodString>;
3570
+ description: z.ZodOptional<z.ZodString>;
3571
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3572
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3573
+ from: z.ZodString;
3574
+ to: z.ZodString;
3575
+ cardinality: z.ZodOptional<z.ZodString>;
3576
+ via: z.ZodOptional<z.ZodString>;
3577
+ }, z.core.$loose>>>>;
3578
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3579
+ id: z.ZodString;
3580
+ label: z.ZodOptional<z.ZodString>;
3581
+ description: z.ZodOptional<z.ZodString>;
3582
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3583
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3584
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
3585
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3586
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3587
+ }, z.core.$loose>>>>;
3588
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3589
+ id: z.ZodString;
3590
+ label: z.ZodOptional<z.ZodString>;
3591
+ description: z.ZodOptional<z.ZodString>;
3592
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3593
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3594
+ kind: z.ZodOptional<z.ZodString>;
3595
+ appliesTo: z.ZodOptional<z.ZodString>;
3596
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3597
+ }, z.core.$loose>>>>;
3598
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3599
+ id: z.ZodString;
3600
+ label: z.ZodOptional<z.ZodString>;
3601
+ description: z.ZodOptional<z.ZodString>;
3602
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3603
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3604
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3605
+ }, z.core.$loose>>>>;
3606
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3607
+ id: z.ZodString;
3608
+ label: z.ZodOptional<z.ZodString>;
3609
+ description: z.ZodOptional<z.ZodString>;
3610
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3611
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3612
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3613
+ }, z.core.$loose>>>>;
3614
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3615
+ id: z.ZodString;
3616
+ label: z.ZodOptional<z.ZodString>;
3617
+ description: z.ZodOptional<z.ZodString>;
3618
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3619
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3620
+ primitive: z.ZodOptional<z.ZodString>;
3621
+ }, z.core.$loose>>>>;
3622
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3623
+ id: z.ZodString;
3624
+ label: z.ZodOptional<z.ZodString>;
3625
+ description: z.ZodOptional<z.ZodString>;
3626
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3627
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3628
+ valueType: z.ZodOptional<z.ZodString>;
3629
+ searchable: z.ZodOptional<z.ZodBoolean>;
3630
+ pii: z.ZodOptional<z.ZodBoolean>;
3631
+ }, z.core.$loose>>>>;
3632
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3633
+ id: z.ZodString;
3634
+ label: z.ZodOptional<z.ZodString>;
3635
+ description: z.ZodOptional<z.ZodString>;
3636
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3637
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3638
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
3639
+ }, z.core.$loose>>>>;
3640
+ endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3641
+ id: z.ZodString;
3642
+ label: z.ZodOptional<z.ZodString>;
3643
+ description: z.ZodOptional<z.ZodString>;
3644
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3645
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3646
+ route: z.ZodOptional<z.ZodString>;
3647
+ }, z.core.$loose>>>>;
3648
+ }, z.core.$strip>>;
3649
+ type OntologyScope = z.infer<typeof OntologyScopeSchema>;
3650
+
3651
+ declare const SystemApiInterfaceSchema: z.ZodObject<{
3652
+ lifecycle: z.ZodDefault<z.ZodEnum<{
3653
+ active: "active";
3654
+ deprecated: "deprecated";
3655
+ draft: "draft";
3656
+ archived: "archived";
3657
+ disabled: "disabled";
3658
+ }>>;
3659
+ readinessProfile: z.ZodOptional<z.ZodString>;
3660
+ resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
3661
+ readinessContract: z.ZodOptional<z.ZodObject<{
3662
+ requiredObjects: z.ZodDefault<z.ZodArray<z.ZodString>>;
3663
+ requiredCatalogs: z.ZodArray<z.ZodString>;
3664
+ }, z.core.$strict>>;
3665
+ }, z.core.$strict>;
3666
+ type JsonPrimitive = string | number | boolean | null;
3667
+ type JsonValue = JsonPrimitive | JsonValue[] | {
3668
+ [key: string]: JsonValue;
3669
+ };
3670
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
3671
+ interface SystemEntry {
3672
+ id: string;
3673
+ label?: string;
3674
+ title?: string;
3675
+ description?: string;
3676
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
3677
+ parentSystemId?: string;
3678
+ ui?: {
3679
+ path: string;
3680
+ surfaces: string[];
3681
+ icon?: string;
3682
+ order?: number;
3683
+ };
3684
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
3685
+ responsibleRoleId?: string;
3686
+ governedByKnowledge?: string[];
3687
+ actions?: {
3688
+ actionId: string;
3689
+ intent: 'exposes' | 'consumes';
3690
+ invocation?: unknown;
3691
+ }[];
3692
+ policies?: string[];
3693
+ drivesGoals?: string[];
3694
+ apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
3695
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
3696
+ status?: 'active' | 'deprecated' | 'archived';
3697
+ path?: string;
3698
+ icon?: string;
3699
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
3700
+ enabled?: boolean;
3701
+ devOnly?: boolean;
3702
+ requiresAdmin?: boolean;
3703
+ order: number;
3704
+ config?: Record<string, JsonValue>;
3705
+ ontology?: OntologyScope;
3706
+ systems?: Record<string, SystemEntry>;
3707
+ subsystems?: Record<string, SystemEntry>;
3708
+ }
3709
+
3710
+ declare const SurfaceTypeSchema: z.ZodEnum<{
3711
+ dashboard: "dashboard";
3712
+ settings: "settings";
3713
+ graph: "graph";
3714
+ page: "page";
3715
+ detail: "detail";
3716
+ list: "list";
3717
+ }>;
3718
+ interface SidebarSurfaceNode {
3719
+ type: 'surface';
3720
+ label: string;
3721
+ path: string;
3722
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
3723
+ description?: string;
3724
+ icon?: string;
3725
+ order?: number;
3726
+ targets?: {
3727
+ systems?: string[];
3728
+ entities?: string[];
3729
+ resources?: string[];
3730
+ actions?: string[];
3731
+ };
3732
+ devOnly?: boolean;
3733
+ requiresAdmin?: boolean;
3734
+ }
3735
+ interface SidebarGroupNode {
3736
+ type: 'group';
3737
+ label: string;
3738
+ description?: string;
3739
+ icon?: string;
3740
+ order?: number;
3741
+ children: Record<string, SidebarNode>;
3742
+ }
3743
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
3744
+
3745
+ /**
3746
+ * Registration surface for the generic readiness engine (`./engine`).
3747
+ *
3748
+ * This module owns two independent extension points so `./engine` never has
3749
+ * to import anything from `business/**`:
3750
+ *
3751
+ * - `registerBuiltInReadinessProfile` — a profile id (e.g. `sales.lead-gen.api`)
3752
+ * maps to structural validation logic plus an optional model-preparation
3753
+ * hook run before ontology compilation (e.g. injecting a derived catalog).
3754
+ * - `registerReadinessInterfaceMarker` — a `(systemPath, interfaceKey)` pair
3755
+ * maps to a synthesized interface marker for interfaces that are not
3756
+ * authored on `system.apiInterface` (e.g. the lead-gen/CRM handoff bridge,
3757
+ * which is derived from scoped resources rather than declared directly).
3758
+ *
3759
+ * `business/acquisition/ontology-validation.ts` calls both at module load to
3760
+ * register its three built-in profiles. Both registries are module-level
3761
+ * mutable maps with no reset function, matching the existing
3762
+ * `domains/systems.ts` profile registry's shape.
3763
+ */
3764
+
3765
+ type SystemInterfaceReadinessIssueFamily = 'SYSTEM_INTERFACE_MISSING' | 'SYSTEM_INTERFACE_DISABLED' | 'SYSTEM_INTERFACE_INVALID' | 'SYSTEM_INTERFACE_NOT_READY' | 'SYSTEM_BRIDGE_NOT_READY'
3766
+ /**
3767
+ * The deployed OM snapshot hash does not match the canonical source hash.
3768
+ * Redeploy with `pnpm operations:deploy` to refresh the snapshot.
3769
+ */
3770
+ | 'STALE_OM_SNAPSHOT';
3771
+ interface SystemInterfaceReadinessIssue {
3772
+ family: SystemInterfaceReadinessIssueFamily;
3773
+ code: string;
3774
+ path?: string;
3775
+ ref?: string;
3776
+ message: string;
3777
+ }
3778
+
3779
+ declare const OrganizationModelSchema: z.ZodObject<{
3780
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3781
+ snapshotHash: z.ZodOptional<z.ZodString>;
3782
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
3783
+ branding: z.ZodOptional<z.ZodObject<{
3784
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3785
+ lastModified: z.ZodString;
3786
+ }, z.core.$strip>>;
3787
+ identity: z.ZodOptional<z.ZodObject<{
3788
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3789
+ lastModified: z.ZodString;
3790
+ }, z.core.$strip>>;
3791
+ clients: z.ZodOptional<z.ZodObject<{
3792
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3793
+ lastModified: z.ZodString;
3794
+ }, z.core.$strip>>;
3795
+ customers: z.ZodOptional<z.ZodObject<{
3796
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3797
+ lastModified: z.ZodString;
3798
+ }, z.core.$strip>>;
3799
+ offerings: z.ZodOptional<z.ZodObject<{
3800
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3801
+ lastModified: z.ZodString;
3802
+ }, z.core.$strip>>;
3803
+ roles: z.ZodOptional<z.ZodObject<{
3804
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3805
+ lastModified: z.ZodString;
3806
+ }, z.core.$strip>>;
3807
+ goals: z.ZodOptional<z.ZodObject<{
3808
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3809
+ lastModified: z.ZodString;
3810
+ }, z.core.$strip>>;
3811
+ systems: z.ZodOptional<z.ZodObject<{
3812
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3813
+ lastModified: z.ZodString;
3814
+ }, z.core.$strip>>;
3815
+ ontology: z.ZodOptional<z.ZodObject<{
3816
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3817
+ lastModified: z.ZodString;
3818
+ }, z.core.$strip>>;
3819
+ resources: z.ZodOptional<z.ZodObject<{
3820
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3821
+ lastModified: z.ZodString;
3822
+ }, z.core.$strip>>;
3823
+ topology: z.ZodOptional<z.ZodObject<{
3824
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3825
+ lastModified: z.ZodString;
3826
+ }, z.core.$strip>>;
3827
+ actions: z.ZodOptional<z.ZodObject<{
3828
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3829
+ lastModified: z.ZodString;
3830
+ }, z.core.$strip>>;
3831
+ entities: z.ZodOptional<z.ZodObject<{
3832
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3833
+ lastModified: z.ZodString;
3834
+ }, z.core.$strip>>;
3835
+ policies: z.ZodOptional<z.ZodObject<{
3836
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3837
+ lastModified: z.ZodString;
3838
+ }, z.core.$strip>>;
3839
+ knowledge: z.ZodOptional<z.ZodObject<{
3840
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3841
+ lastModified: z.ZodString;
3842
+ }, z.core.$strip>>;
3843
+ }, z.core.$strip>>, z.ZodTransform<{
3844
+ branding: {
3845
+ version: 1;
3846
+ lastModified: string;
3847
+ };
3848
+ identity: {
3849
+ version: 1;
3850
+ lastModified: string;
3851
+ };
3852
+ clients: {
3853
+ version: 1;
3854
+ lastModified: string;
3855
+ };
3856
+ customers: {
3857
+ version: 1;
3858
+ lastModified: string;
3859
+ };
3860
+ offerings: {
3861
+ version: 1;
3862
+ lastModified: string;
3863
+ };
3864
+ roles: {
3865
+ version: 1;
3866
+ lastModified: string;
3867
+ };
3868
+ goals: {
3869
+ version: 1;
3870
+ lastModified: string;
3871
+ };
3872
+ systems: {
3873
+ version: 1;
3874
+ lastModified: string;
3875
+ };
3876
+ ontology: {
3877
+ version: 1;
3878
+ lastModified: string;
3879
+ };
3880
+ resources: {
3881
+ version: 1;
3882
+ lastModified: string;
3883
+ };
3884
+ topology: {
3885
+ version: 1;
3886
+ lastModified: string;
3887
+ };
3888
+ actions: {
3889
+ version: 1;
3890
+ lastModified: string;
3891
+ };
3892
+ entities: {
3893
+ version: 1;
3894
+ lastModified: string;
3895
+ };
3896
+ policies: {
3897
+ version: 1;
3898
+ lastModified: string;
3899
+ };
3900
+ knowledge: {
3901
+ version: 1;
3902
+ lastModified: string;
3903
+ };
3904
+ }, {
3905
+ branding?: {
3906
+ version: 1;
3907
+ lastModified: string;
3908
+ } | undefined;
3909
+ identity?: {
3910
+ version: 1;
3911
+ lastModified: string;
3912
+ } | undefined;
3913
+ clients?: {
3914
+ version: 1;
3915
+ lastModified: string;
3916
+ } | undefined;
3917
+ customers?: {
3918
+ version: 1;
3919
+ lastModified: string;
3920
+ } | undefined;
3921
+ offerings?: {
3922
+ version: 1;
3923
+ lastModified: string;
3924
+ } | undefined;
3925
+ roles?: {
3926
+ version: 1;
3927
+ lastModified: string;
3928
+ } | undefined;
3929
+ goals?: {
3930
+ version: 1;
3931
+ lastModified: string;
3932
+ } | undefined;
3933
+ systems?: {
3934
+ version: 1;
3935
+ lastModified: string;
3936
+ } | undefined;
3937
+ ontology?: {
3938
+ version: 1;
3939
+ lastModified: string;
3940
+ } | undefined;
3941
+ resources?: {
3942
+ version: 1;
3943
+ lastModified: string;
3944
+ } | undefined;
3945
+ topology?: {
3946
+ version: 1;
3947
+ lastModified: string;
3948
+ } | undefined;
3949
+ actions?: {
3950
+ version: 1;
3951
+ lastModified: string;
3952
+ } | undefined;
3953
+ entities?: {
3954
+ version: 1;
3955
+ lastModified: string;
3956
+ } | undefined;
3957
+ policies?: {
3958
+ version: 1;
3959
+ lastModified: string;
3960
+ } | undefined;
3961
+ knowledge?: {
3962
+ version: 1;
3963
+ lastModified: string;
3964
+ } | undefined;
3965
+ }>>;
3966
+ branding: z.ZodDefault<z.ZodObject<{
3967
+ organizationName: z.ZodString;
3968
+ productName: z.ZodString;
3969
+ shortName: z.ZodString;
3970
+ description: z.ZodOptional<z.ZodString>;
3971
+ logos: z.ZodDefault<z.ZodObject<{
3972
+ light: z.ZodOptional<z.ZodString>;
3973
+ dark: z.ZodOptional<z.ZodString>;
3974
+ }, z.core.$strip>>;
3975
+ voice: z.ZodOptional<z.ZodString>;
3976
+ tagline: z.ZodOptional<z.ZodString>;
3977
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
3978
+ themePresetId: z.ZodOptional<z.ZodString>;
3979
+ }, z.core.$loose>>;
3980
+ navigation: z.ZodDefault<z.ZodObject<{
3981
+ sidebar: z.ZodDefault<z.ZodObject<{
3982
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3983
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3984
+ }, z.core.$strip>>;
3985
+ topbar: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3986
+ id: z.ZodString;
3987
+ label: z.ZodString;
3988
+ tooltip: z.ZodOptional<z.ZodString>;
3989
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3990
+ message: "message";
3991
+ error: "error";
3992
+ agent: "agent";
3993
+ workflow: "workflow";
3994
+ "google-sheets": "google-sheets";
3995
+ dashboard: "dashboard";
3996
+ calendar: "calendar";
3997
+ sales: "sales";
3998
+ crm: "crm";
3999
+ "lead-gen": "lead-gen";
4000
+ projects: "projects";
4001
+ clients: "clients";
4002
+ operations: "operations";
4003
+ monitoring: "monitoring";
4004
+ knowledge: "knowledge";
4005
+ settings: "settings";
4006
+ admin: "admin";
4007
+ archive: "archive";
4008
+ business: "business";
4009
+ finance: "finance";
4010
+ platform: "platform";
4011
+ seo: "seo";
4012
+ playbook: "playbook";
4013
+ strategy: "strategy";
4014
+ reference: "reference";
4015
+ integration: "integration";
4016
+ database: "database";
4017
+ user: "user";
4018
+ team: "team";
4019
+ gmail: "gmail";
4020
+ attio: "attio";
4021
+ overview: "overview";
4022
+ "command-view": "command-view";
4023
+ "command-queue": "command-queue";
4024
+ pipeline: "pipeline";
4025
+ lists: "lists";
4026
+ resources: "resources";
4027
+ approve: "approve";
4028
+ reject: "reject";
4029
+ retry: "retry";
4030
+ edit: "edit";
4031
+ view: "view";
4032
+ launch: "launch";
4033
+ "message-plus": "message-plus";
4034
+ escalate: "escalate";
4035
+ promote: "promote";
4036
+ submit: "submit";
4037
+ email: "email";
4038
+ success: "success";
4039
+ warning: "warning";
4040
+ info: "info";
4041
+ pending: "pending";
4042
+ bolt: "bolt";
4043
+ building: "building";
4044
+ briefcase: "briefcase";
4045
+ apps: "apps";
4046
+ graph: "graph";
4047
+ shield: "shield";
4048
+ users: "users";
4049
+ "chart-bar": "chart-bar";
4050
+ search: "search";
4051
+ }>, z.ZodString]>>;
4052
+ order: z.ZodOptional<z.ZodNumber>;
4053
+ enabled: z.ZodDefault<z.ZodBoolean>;
4054
+ devOnly: z.ZodOptional<z.ZodBoolean>;
4055
+ requiresAdmin: z.ZodOptional<z.ZodBoolean>;
4056
+ targets: z.ZodOptional<z.ZodDefault<z.ZodObject<{
4057
+ systems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4058
+ entities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4059
+ resources: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4060
+ actions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4061
+ }, z.core.$strip>>>;
4062
+ }, z.core.$strip>>>;
4063
+ }, z.core.$strip>>;
4064
+ identity: z.ZodDefault<z.ZodObject<{
4065
+ mission: z.ZodDefault<z.ZodString>;
4066
+ vision: z.ZodDefault<z.ZodString>;
4067
+ legalName: z.ZodDefault<z.ZodString>;
4068
+ entityType: z.ZodDefault<z.ZodString>;
4069
+ jurisdiction: z.ZodDefault<z.ZodString>;
4070
+ industryCategory: z.ZodDefault<z.ZodString>;
4071
+ geographicFocus: z.ZodDefault<z.ZodString>;
4072
+ timeZone: z.ZodDefault<z.ZodString>;
4073
+ businessHours: z.ZodDefault<z.ZodObject<{
4074
+ monday: z.ZodOptional<z.ZodObject<{
4075
+ open: z.ZodString;
4076
+ close: z.ZodString;
4077
+ }, z.core.$strip>>;
4078
+ tuesday: z.ZodOptional<z.ZodObject<{
4079
+ open: z.ZodString;
4080
+ close: z.ZodString;
4081
+ }, z.core.$strip>>;
4082
+ wednesday: z.ZodOptional<z.ZodObject<{
4083
+ open: z.ZodString;
4084
+ close: z.ZodString;
4085
+ }, z.core.$strip>>;
4086
+ thursday: z.ZodOptional<z.ZodObject<{
4087
+ open: z.ZodString;
4088
+ close: z.ZodString;
4089
+ }, z.core.$strip>>;
4090
+ friday: z.ZodOptional<z.ZodObject<{
4091
+ open: z.ZodString;
4092
+ close: z.ZodString;
4093
+ }, z.core.$strip>>;
4094
+ saturday: z.ZodOptional<z.ZodObject<{
4095
+ open: z.ZodString;
4096
+ close: z.ZodString;
4097
+ }, z.core.$strip>>;
4098
+ sunday: z.ZodOptional<z.ZodObject<{
4099
+ open: z.ZodString;
4100
+ close: z.ZodString;
4101
+ }, z.core.$strip>>;
4102
+ }, z.core.$strip>>;
4103
+ clientBrief: z.ZodDefault<z.ZodString>;
4104
+ organizationName: z.ZodOptional<z.ZodString>;
4105
+ productName: z.ZodOptional<z.ZodString>;
4106
+ shortName: z.ZodOptional<z.ZodString>;
4107
+ description: z.ZodOptional<z.ZodString>;
4108
+ }, z.core.$loose>>;
4109
+ clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4110
+ id: z.ZodString;
4111
+ slug: z.ZodString;
4112
+ name: z.ZodString;
4113
+ status: z.ZodDefault<z.ZodEnum<{
4114
+ active: "active";
4115
+ onboarding: "onboarding";
4116
+ paused: "paused";
4117
+ completed: "completed";
4118
+ churned: "churned";
4119
+ }>>;
4120
+ source: z.ZodOptional<z.ZodString>;
4121
+ identity: z.ZodDefault<z.ZodObject<{
4122
+ organizationName: z.ZodOptional<z.ZodString>;
4123
+ shortName: z.ZodOptional<z.ZodString>;
4124
+ clientBrief: z.ZodDefault<z.ZodString>;
4125
+ geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
4126
+ timeZone: z.ZodDefault<z.ZodString>;
4127
+ }, z.core.$loose>>;
4128
+ branding: z.ZodDefault<z.ZodObject<{
4129
+ voice: z.ZodOptional<z.ZodString>;
4130
+ tagline: z.ZodOptional<z.ZodString>;
4131
+ values: z.ZodDefault<z.ZodArray<z.ZodString>>;
4132
+ }, z.core.$loose>>;
4133
+ workspace: z.ZodDefault<z.ZodObject<{
4134
+ kind: z.ZodOptional<z.ZodEnum<{
4135
+ "external-project": "external-project";
4136
+ "internal-project": "internal-project";
4137
+ none: "none";
4138
+ }>>;
4139
+ owner: z.ZodOptional<z.ZodEnum<{
4140
+ platform: "platform";
4141
+ client: "client";
4142
+ developer: "developer";
4143
+ }>>;
4144
+ projectId: z.ZodOptional<z.ZodString>;
4145
+ workspacePath: z.ZodOptional<z.ZodString>;
4146
+ }, z.core.$loose>>;
4147
+ links: z.ZodDefault<z.ZodObject<{
4148
+ projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4149
+ primaryCompanyId: z.ZodOptional<z.ZodString>;
4150
+ primaryContactId: z.ZodOptional<z.ZodString>;
4151
+ sourceDealId: z.ZodOptional<z.ZodString>;
4152
+ }, z.core.$strip>>;
4153
+ prompts: z.ZodDefault<z.ZodObject<{
4154
+ defaultContext: z.ZodDefault<z.ZodString>;
4155
+ }, z.core.$loose>>;
4156
+ config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
4157
+ customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
4158
+ }, z.core.$strict>>>>;
4159
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4160
+ id: z.ZodString;
4161
+ order: z.ZodNumber;
4162
+ name: z.ZodDefault<z.ZodString>;
4163
+ description: z.ZodDefault<z.ZodString>;
4164
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
4165
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
4166
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
4167
+ firmographics: z.ZodDefault<z.ZodObject<{
4168
+ industry: z.ZodOptional<z.ZodString>;
4169
+ companySize: z.ZodOptional<z.ZodString>;
4170
+ region: z.ZodOptional<z.ZodString>;
4171
+ }, z.core.$strip>>;
4172
+ valueProp: z.ZodDefault<z.ZodString>;
4173
+ }, z.core.$strip>>>>;
4174
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4175
+ id: z.ZodString;
4176
+ order: z.ZodNumber;
4177
+ name: z.ZodDefault<z.ZodString>;
4178
+ description: z.ZodDefault<z.ZodString>;
4179
+ pricingModel: z.ZodDefault<z.ZodEnum<{
4180
+ custom: "custom";
4181
+ "one-time": "one-time";
4182
+ subscription: "subscription";
4183
+ "usage-based": "usage-based";
4184
+ }>>;
4185
+ price: z.ZodDefault<z.ZodNumber>;
4186
+ currency: z.ZodDefault<z.ZodString>;
4187
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4188
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
4189
+ }, z.core.$strip>>>>;
4190
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4191
+ id: z.ZodString;
4192
+ order: z.ZodNumber;
4193
+ title: z.ZodString;
4194
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
4195
+ reportsToId: z.ZodOptional<z.ZodString>;
4196
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4197
+ kind: z.ZodLiteral<"human">;
4198
+ userId: z.ZodString;
4199
+ }, z.core.$strip>, z.ZodObject<{
4200
+ kind: z.ZodLiteral<"agent">;
4201
+ agentId: z.ZodString;
4202
+ }, z.core.$strip>, z.ZodObject<{
4203
+ kind: z.ZodLiteral<"team">;
4204
+ memberIds: z.ZodArray<z.ZodString>;
4205
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4206
+ kind: z.ZodLiteral<"human">;
4207
+ userId: z.ZodString;
4208
+ }, z.core.$strip>, z.ZodObject<{
4209
+ kind: z.ZodLiteral<"agent">;
4210
+ agentId: z.ZodString;
4211
+ }, z.core.$strip>, z.ZodObject<{
4212
+ kind: z.ZodLiteral<"team">;
4213
+ memberIds: z.ZodArray<z.ZodString>;
4214
+ }, z.core.$strip>], "kind">>]>>;
4215
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
4216
+ }, z.core.$strip>>>>;
4217
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4218
+ id: z.ZodString;
4219
+ order: z.ZodNumber;
4220
+ description: z.ZodString;
4221
+ periodStart: z.ZodString;
4222
+ periodEnd: z.ZodString;
4223
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
4224
+ id: z.ZodString;
4225
+ description: z.ZodString;
4226
+ targetMetric: z.ZodString;
4227
+ currentValue: z.ZodDefault<z.ZodNumber>;
4228
+ targetValue: z.ZodOptional<z.ZodNumber>;
4229
+ }, z.core.$strip>>>;
4230
+ }, z.core.$strip>>>>;
4231
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
4232
+ ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
4233
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4234
+ id: z.ZodString;
4235
+ label: z.ZodOptional<z.ZodString>;
4236
+ description: z.ZodOptional<z.ZodString>;
4237
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4238
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4239
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4240
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4241
+ }, z.core.$loose>>>>;
4242
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4243
+ id: z.ZodString;
4244
+ label: z.ZodOptional<z.ZodString>;
4245
+ description: z.ZodOptional<z.ZodString>;
4246
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4247
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4248
+ from: z.ZodString;
4249
+ to: z.ZodString;
4250
+ cardinality: z.ZodOptional<z.ZodString>;
4251
+ via: z.ZodOptional<z.ZodString>;
4252
+ }, z.core.$loose>>>>;
4253
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4254
+ id: z.ZodString;
4255
+ label: z.ZodOptional<z.ZodString>;
4256
+ description: z.ZodOptional<z.ZodString>;
4257
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4258
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4259
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4260
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4261
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4262
+ }, z.core.$loose>>>>;
4263
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4264
+ id: z.ZodString;
4265
+ label: z.ZodOptional<z.ZodString>;
4266
+ description: z.ZodOptional<z.ZodString>;
4267
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4268
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4269
+ kind: z.ZodOptional<z.ZodString>;
4270
+ appliesTo: z.ZodOptional<z.ZodString>;
4271
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4272
+ }, z.core.$loose>>>>;
4273
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4274
+ id: z.ZodString;
4275
+ label: z.ZodOptional<z.ZodString>;
4276
+ description: z.ZodOptional<z.ZodString>;
4277
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4278
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4279
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4280
+ }, z.core.$loose>>>>;
4281
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4282
+ id: z.ZodString;
4283
+ label: z.ZodOptional<z.ZodString>;
4284
+ description: z.ZodOptional<z.ZodString>;
4285
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4286
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4287
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4288
+ }, z.core.$loose>>>>;
4289
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4290
+ id: z.ZodString;
4291
+ label: z.ZodOptional<z.ZodString>;
4292
+ description: z.ZodOptional<z.ZodString>;
4293
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4294
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4295
+ primitive: z.ZodOptional<z.ZodString>;
4296
+ }, z.core.$loose>>>>;
4297
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4298
+ id: z.ZodString;
4299
+ label: z.ZodOptional<z.ZodString>;
4300
+ description: z.ZodOptional<z.ZodString>;
4301
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4302
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4303
+ valueType: z.ZodOptional<z.ZodString>;
4304
+ searchable: z.ZodOptional<z.ZodBoolean>;
4305
+ pii: z.ZodOptional<z.ZodBoolean>;
4306
+ }, z.core.$loose>>>>;
4307
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4308
+ id: z.ZodString;
4309
+ label: z.ZodOptional<z.ZodString>;
4310
+ description: z.ZodOptional<z.ZodString>;
4311
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4312
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4313
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4314
+ }, z.core.$loose>>>>;
4315
+ endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4316
+ id: z.ZodString;
4317
+ label: z.ZodOptional<z.ZodString>;
4318
+ description: z.ZodOptional<z.ZodString>;
4319
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4320
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4321
+ route: z.ZodOptional<z.ZodString>;
4322
+ }, z.core.$loose>>>>;
4323
+ }, z.core.$strip>>>;
4324
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
4325
+ id: z.ZodString;
4326
+ order: z.ZodDefault<z.ZodNumber>;
4327
+ systemPath: z.ZodString;
4328
+ title: z.ZodOptional<z.ZodString>;
4329
+ description: z.ZodOptional<z.ZodString>;
4330
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4331
+ status: z.ZodEnum<{
4332
+ active: "active";
4333
+ deprecated: "deprecated";
4334
+ archived: "archived";
4335
+ }>;
4336
+ ontology: z.ZodOptional<z.ZodObject<{
4337
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4338
+ primaryAction: z.ZodOptional<z.ZodString>;
4339
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4340
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4341
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4342
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4343
+ contract: z.ZodOptional<z.ZodObject<{
4344
+ input: z.ZodOptional<z.ZodString>;
4345
+ output: z.ZodOptional<z.ZodString>;
4346
+ }, z.core.$strip>>;
4347
+ }, z.core.$strip>>;
4348
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4349
+ path: z.ZodString;
4350
+ role: z.ZodEnum<{
4351
+ entrypoint: "entrypoint";
4352
+ handler: "handler";
4353
+ schema: "schema";
4354
+ test: "test";
4355
+ docs: "docs";
4356
+ config: "config";
4357
+ }>;
4358
+ symbol: z.ZodOptional<z.ZodString>;
4359
+ description: z.ZodOptional<z.ZodString>;
4360
+ }, z.core.$strip>>>;
4361
+ kind: z.ZodLiteral<"workflow">;
4362
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4363
+ eventKey: z.ZodString;
4364
+ label: z.ZodString;
4365
+ payloadSchema: z.ZodOptional<z.ZodString>;
4366
+ lifecycle: z.ZodOptional<z.ZodEnum<{
4367
+ active: "active";
4368
+ deprecated: "deprecated";
4369
+ draft: "draft";
4370
+ beta: "beta";
4371
+ archived: "archived";
4372
+ }>>;
4373
+ }, z.core.$strip>>>;
4374
+ }, z.core.$strip>, z.ZodObject<{
4375
+ id: z.ZodString;
4376
+ order: z.ZodDefault<z.ZodNumber>;
4377
+ systemPath: z.ZodString;
4378
+ title: z.ZodOptional<z.ZodString>;
4379
+ description: z.ZodOptional<z.ZodString>;
4380
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4381
+ status: z.ZodEnum<{
4382
+ active: "active";
4383
+ deprecated: "deprecated";
4384
+ archived: "archived";
4385
+ }>;
4386
+ ontology: z.ZodOptional<z.ZodObject<{
4387
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4388
+ primaryAction: z.ZodOptional<z.ZodString>;
4389
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4390
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4391
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4392
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4393
+ contract: z.ZodOptional<z.ZodObject<{
4394
+ input: z.ZodOptional<z.ZodString>;
4395
+ output: z.ZodOptional<z.ZodString>;
4396
+ }, z.core.$strip>>;
4397
+ }, z.core.$strip>>;
4398
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4399
+ path: z.ZodString;
4400
+ role: z.ZodEnum<{
4401
+ entrypoint: "entrypoint";
4402
+ handler: "handler";
4403
+ schema: "schema";
4404
+ test: "test";
4405
+ docs: "docs";
4406
+ config: "config";
4407
+ }>;
4408
+ symbol: z.ZodOptional<z.ZodString>;
4409
+ description: z.ZodOptional<z.ZodString>;
4410
+ }, z.core.$strip>>>;
4411
+ kind: z.ZodLiteral<"agent">;
4412
+ agentKind: z.ZodEnum<{
4413
+ platform: "platform";
4414
+ orchestrator: "orchestrator";
4415
+ specialist: "specialist";
4416
+ utility: "utility";
4417
+ }>;
4418
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
4419
+ sessionCapable: z.ZodBoolean;
4420
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4421
+ kind: z.ZodLiteral<"slash-command">;
4422
+ command: z.ZodString;
4423
+ toolFactory: z.ZodOptional<z.ZodString>;
4424
+ }, z.core.$strip>, z.ZodObject<{
4425
+ kind: z.ZodLiteral<"mcp-tool">;
4426
+ server: z.ZodString;
4427
+ name: z.ZodString;
4428
+ }, z.core.$strip>, z.ZodObject<{
4429
+ kind: z.ZodLiteral<"api-endpoint">;
4430
+ method: z.ZodEnum<{
4431
+ GET: "GET";
4432
+ POST: "POST";
4433
+ PATCH: "PATCH";
4434
+ DELETE: "DELETE";
4435
+ }>;
4436
+ path: z.ZodString;
4437
+ requestSchema: z.ZodOptional<z.ZodString>;
4438
+ responseSchema: z.ZodOptional<z.ZodString>;
4439
+ }, z.core.$strip>, z.ZodObject<{
4440
+ kind: z.ZodLiteral<"script-execution">;
4441
+ resourceId: z.ZodString;
4442
+ }, z.core.$strip>], "kind">>>;
4443
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4444
+ eventKey: z.ZodString;
4445
+ label: z.ZodString;
4446
+ payloadSchema: z.ZodOptional<z.ZodString>;
4447
+ lifecycle: z.ZodOptional<z.ZodEnum<{
4448
+ active: "active";
4449
+ deprecated: "deprecated";
4450
+ draft: "draft";
4451
+ beta: "beta";
4452
+ archived: "archived";
4453
+ }>>;
4454
+ }, z.core.$strip>>>;
4455
+ }, z.core.$strip>, z.ZodObject<{
4456
+ id: z.ZodString;
4457
+ order: z.ZodDefault<z.ZodNumber>;
4458
+ systemPath: z.ZodString;
4459
+ title: z.ZodOptional<z.ZodString>;
4460
+ description: z.ZodOptional<z.ZodString>;
4461
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4462
+ status: z.ZodEnum<{
4463
+ active: "active";
4464
+ deprecated: "deprecated";
4465
+ archived: "archived";
4466
+ }>;
4467
+ ontology: z.ZodOptional<z.ZodObject<{
4468
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4469
+ primaryAction: z.ZodOptional<z.ZodString>;
4470
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4471
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4472
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4473
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4474
+ contract: z.ZodOptional<z.ZodObject<{
4475
+ input: z.ZodOptional<z.ZodString>;
4476
+ output: z.ZodOptional<z.ZodString>;
4477
+ }, z.core.$strip>>;
4478
+ }, z.core.$strip>>;
4479
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4480
+ path: z.ZodString;
4481
+ role: z.ZodEnum<{
4482
+ entrypoint: "entrypoint";
4483
+ handler: "handler";
4484
+ schema: "schema";
4485
+ test: "test";
4486
+ docs: "docs";
4487
+ config: "config";
4488
+ }>;
4489
+ symbol: z.ZodOptional<z.ZodString>;
4490
+ description: z.ZodOptional<z.ZodString>;
4491
+ }, z.core.$strip>>>;
4492
+ kind: z.ZodLiteral<"integration">;
4493
+ provider: z.ZodString;
4494
+ }, z.core.$strip>, z.ZodObject<{
4495
+ id: z.ZodString;
4496
+ order: z.ZodDefault<z.ZodNumber>;
4497
+ systemPath: z.ZodString;
4498
+ title: z.ZodOptional<z.ZodString>;
4499
+ description: z.ZodOptional<z.ZodString>;
4500
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4501
+ status: z.ZodEnum<{
4502
+ active: "active";
4503
+ deprecated: "deprecated";
4504
+ archived: "archived";
4505
+ }>;
4506
+ ontology: z.ZodOptional<z.ZodObject<{
4507
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4508
+ primaryAction: z.ZodOptional<z.ZodString>;
4509
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4510
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4511
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4512
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4513
+ contract: z.ZodOptional<z.ZodObject<{
4514
+ input: z.ZodOptional<z.ZodString>;
4515
+ output: z.ZodOptional<z.ZodString>;
4516
+ }, z.core.$strip>>;
4517
+ }, z.core.$strip>>;
4518
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4519
+ path: z.ZodString;
4520
+ role: z.ZodEnum<{
4521
+ entrypoint: "entrypoint";
4522
+ handler: "handler";
4523
+ schema: "schema";
4524
+ test: "test";
4525
+ docs: "docs";
4526
+ config: "config";
4527
+ }>;
4528
+ symbol: z.ZodOptional<z.ZodString>;
4529
+ description: z.ZodOptional<z.ZodString>;
4530
+ }, z.core.$strip>>>;
4531
+ kind: z.ZodLiteral<"script">;
4532
+ language: z.ZodEnum<{
4533
+ shell: "shell";
4534
+ sql: "sql";
4535
+ typescript: "typescript";
4536
+ python: "python";
4537
+ }>;
4538
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4539
+ file: z.ZodString;
4540
+ }, z.core.$strip>]>;
4541
+ }, z.core.$strip>], "kind">>>>;
4542
+ topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
4543
+ version: z.ZodDefault<z.ZodLiteral<1>>;
4544
+ relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4545
+ from: z.ZodDiscriminatedUnion<[z.ZodObject<{
4546
+ kind: z.ZodLiteral<"system">;
4547
+ id: z.ZodString;
4548
+ }, z.core.$strip>, z.ZodObject<{
4549
+ kind: z.ZodLiteral<"resource">;
4550
+ id: z.ZodString;
4551
+ }, z.core.$strip>, z.ZodObject<{
4552
+ kind: z.ZodLiteral<"ontology">;
4553
+ id: z.ZodString;
4554
+ }, z.core.$strip>, z.ZodObject<{
4555
+ kind: z.ZodLiteral<"policy">;
4556
+ id: z.ZodString;
4557
+ }, z.core.$strip>, z.ZodObject<{
4558
+ kind: z.ZodLiteral<"role">;
4559
+ id: z.ZodString;
4560
+ }, z.core.$strip>, z.ZodObject<{
4561
+ kind: z.ZodLiteral<"trigger">;
4562
+ id: z.ZodString;
4563
+ }, z.core.$strip>, z.ZodObject<{
4564
+ kind: z.ZodLiteral<"humanCheckpoint">;
4565
+ id: z.ZodString;
4566
+ }, z.core.$strip>, z.ZodObject<{
4567
+ kind: z.ZodLiteral<"externalResource">;
4568
+ id: z.ZodString;
4569
+ }, z.core.$strip>], "kind">;
4570
+ kind: z.ZodEnum<{
4571
+ triggers: "triggers";
4572
+ uses: "uses";
4573
+ approval: "approval";
4574
+ }>;
4575
+ to: z.ZodDiscriminatedUnion<[z.ZodObject<{
4576
+ kind: z.ZodLiteral<"system">;
4577
+ id: z.ZodString;
4578
+ }, z.core.$strip>, z.ZodObject<{
4579
+ kind: z.ZodLiteral<"resource">;
4580
+ id: z.ZodString;
4581
+ }, z.core.$strip>, z.ZodObject<{
4582
+ kind: z.ZodLiteral<"ontology">;
4583
+ id: z.ZodString;
4584
+ }, z.core.$strip>, z.ZodObject<{
4585
+ kind: z.ZodLiteral<"policy">;
4586
+ id: z.ZodString;
4587
+ }, z.core.$strip>, z.ZodObject<{
4588
+ kind: z.ZodLiteral<"role">;
4589
+ id: z.ZodString;
4590
+ }, z.core.$strip>, z.ZodObject<{
4591
+ kind: z.ZodLiteral<"trigger">;
4592
+ id: z.ZodString;
4593
+ }, z.core.$strip>, z.ZodObject<{
4594
+ kind: z.ZodLiteral<"humanCheckpoint">;
4595
+ id: z.ZodString;
4596
+ }, z.core.$strip>, z.ZodObject<{
4597
+ kind: z.ZodLiteral<"externalResource">;
4598
+ id: z.ZodString;
4599
+ }, z.core.$strip>], "kind">;
4600
+ systemPath: z.ZodOptional<z.ZodString>;
4601
+ required: z.ZodOptional<z.ZodBoolean>;
4602
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
4603
+ }, z.core.$strip>>>;
4604
+ }, z.core.$strip>>>;
4605
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4606
+ id: z.ZodString;
4607
+ order: z.ZodNumber;
4608
+ label: z.ZodString;
4609
+ description: z.ZodOptional<z.ZodString>;
4610
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
4611
+ domain: z.ZodString;
4612
+ }, z.core.$strip>]>>;
4613
+ resourceId: z.ZodOptional<z.ZodString>;
4614
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
4615
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4616
+ kind: z.ZodLiteral<"slash-command">;
4617
+ command: z.ZodString;
4618
+ toolFactory: z.ZodOptional<z.ZodString>;
4619
+ }, z.core.$strip>, z.ZodObject<{
4620
+ kind: z.ZodLiteral<"mcp-tool">;
4621
+ server: z.ZodString;
4622
+ name: z.ZodString;
4623
+ }, z.core.$strip>, z.ZodObject<{
4624
+ kind: z.ZodLiteral<"api-endpoint">;
4625
+ method: z.ZodEnum<{
4626
+ GET: "GET";
4627
+ POST: "POST";
4628
+ PATCH: "PATCH";
4629
+ DELETE: "DELETE";
4630
+ }>;
4631
+ path: z.ZodString;
4632
+ requestSchema: z.ZodOptional<z.ZodString>;
4633
+ responseSchema: z.ZodOptional<z.ZodString>;
4634
+ }, z.core.$strip>, z.ZodObject<{
4635
+ kind: z.ZodLiteral<"script-execution">;
4636
+ resourceId: z.ZodString;
4637
+ }, z.core.$strip>], "kind">>>;
4638
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4639
+ lifecycle: z.ZodDefault<z.ZodEnum<{
4640
+ active: "active";
4641
+ deprecated: "deprecated";
4642
+ draft: "draft";
4643
+ beta: "beta";
4644
+ archived: "archived";
4645
+ }>>;
4646
+ }, z.core.$strip>>>>;
4647
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4648
+ id: z.ZodString;
4649
+ order: z.ZodNumber;
4650
+ label: z.ZodString;
4651
+ description: z.ZodOptional<z.ZodString>;
4652
+ ownedBySystemId: z.ZodString;
4653
+ table: z.ZodOptional<z.ZodString>;
4654
+ rowSchema: z.ZodOptional<z.ZodString>;
4655
+ stateCatalogId: z.ZodOptional<z.ZodString>;
4656
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
4657
+ toEntity: z.ZodString;
4658
+ kind: z.ZodEnum<{
4659
+ "belongs-to": "belongs-to";
4660
+ "has-many": "has-many";
4661
+ "has-one": "has-one";
4662
+ "many-to-many": "many-to-many";
4663
+ }>;
4664
+ via: z.ZodOptional<z.ZodString>;
4665
+ label: z.ZodOptional<z.ZodString>;
4666
+ }, z.core.$strip>>>;
4667
+ }, z.core.$strip>>>>;
4668
+ policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4669
+ id: z.ZodString;
4670
+ order: z.ZodNumber;
4671
+ label: z.ZodString;
4672
+ description: z.ZodOptional<z.ZodString>;
4673
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
4674
+ kind: z.ZodLiteral<"event">;
4675
+ eventId: z.ZodString;
4676
+ }, z.core.$strip>, z.ZodObject<{
4677
+ kind: z.ZodLiteral<"action-invocation">;
4678
+ actionId: z.ZodString;
4679
+ }, z.core.$strip>, z.ZodObject<{
4680
+ kind: z.ZodLiteral<"schedule">;
4681
+ cron: z.ZodString;
4682
+ }, z.core.$strip>, z.ZodObject<{
4683
+ kind: z.ZodLiteral<"manual">;
4684
+ }, z.core.$strip>], "kind">;
4685
+ predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4686
+ kind: z.ZodLiteral<"always">;
4687
+ }, z.core.$strip>, z.ZodObject<{
4688
+ kind: z.ZodLiteral<"expression">;
4689
+ expression: z.ZodString;
4690
+ }, z.core.$strip>, z.ZodObject<{
4691
+ kind: z.ZodLiteral<"threshold">;
4692
+ metric: z.ZodString;
4693
+ operator: z.ZodEnum<{
4694
+ lt: "lt";
4695
+ lte: "lte";
4696
+ eq: "eq";
4697
+ gte: "gte";
4698
+ gt: "gt";
4699
+ }>;
4700
+ value: z.ZodNumber;
4701
+ }, z.core.$strip>], "kind">>;
4702
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4703
+ kind: z.ZodLiteral<"require-approval">;
4704
+ roleId: z.ZodOptional<z.ZodString>;
4705
+ }, z.core.$strip>, z.ZodObject<{
4706
+ kind: z.ZodLiteral<"invoke-action">;
4707
+ actionId: z.ZodString;
4708
+ }, z.core.$strip>, z.ZodObject<{
4709
+ kind: z.ZodLiteral<"notify-role">;
4710
+ roleId: z.ZodString;
4711
+ }, z.core.$strip>, z.ZodObject<{
4712
+ kind: z.ZodLiteral<"block">;
4713
+ }, z.core.$strip>], "kind">>;
4714
+ appliesTo: z.ZodDefault<z.ZodObject<{
4715
+ systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4716
+ actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4717
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4718
+ roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4719
+ }, z.core.$strip>>;
4720
+ lifecycle: z.ZodDefault<z.ZodEnum<{
4721
+ active: "active";
4722
+ deprecated: "deprecated";
4723
+ draft: "draft";
4724
+ beta: "beta";
4725
+ archived: "archived";
4726
+ }>>;
4727
+ }, z.core.$strip>>>>;
4728
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4729
+ id: z.ZodString;
4730
+ kind: z.ZodEnum<{
4731
+ playbook: "playbook";
4732
+ strategy: "strategy";
4733
+ reference: "reference";
4734
+ }>;
4735
+ title: z.ZodString;
4736
+ summary: z.ZodString;
4737
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4738
+ message: "message";
4739
+ error: "error";
4740
+ agent: "agent";
4741
+ workflow: "workflow";
4742
+ "google-sheets": "google-sheets";
4743
+ dashboard: "dashboard";
4744
+ calendar: "calendar";
4745
+ sales: "sales";
4746
+ crm: "crm";
4747
+ "lead-gen": "lead-gen";
4748
+ projects: "projects";
4749
+ clients: "clients";
4750
+ operations: "operations";
4751
+ monitoring: "monitoring";
4752
+ knowledge: "knowledge";
4753
+ settings: "settings";
4754
+ admin: "admin";
4755
+ archive: "archive";
4756
+ business: "business";
4757
+ finance: "finance";
4758
+ platform: "platform";
4759
+ seo: "seo";
4760
+ playbook: "playbook";
4761
+ strategy: "strategy";
4762
+ reference: "reference";
4763
+ integration: "integration";
4764
+ database: "database";
4765
+ user: "user";
4766
+ team: "team";
4767
+ gmail: "gmail";
4768
+ attio: "attio";
4769
+ overview: "overview";
4770
+ "command-view": "command-view";
4771
+ "command-queue": "command-queue";
4772
+ pipeline: "pipeline";
4773
+ lists: "lists";
4774
+ resources: "resources";
4775
+ approve: "approve";
4776
+ reject: "reject";
4777
+ retry: "retry";
4778
+ edit: "edit";
4779
+ view: "view";
4780
+ launch: "launch";
4781
+ "message-plus": "message-plus";
4782
+ escalate: "escalate";
4783
+ promote: "promote";
4784
+ submit: "submit";
4785
+ email: "email";
4786
+ success: "success";
4787
+ warning: "warning";
4788
+ info: "info";
4789
+ pending: "pending";
4790
+ bolt: "bolt";
4791
+ building: "building";
4792
+ briefcase: "briefcase";
4793
+ apps: "apps";
4794
+ graph: "graph";
4795
+ shield: "shield";
4796
+ users: "users";
4797
+ "chart-bar": "chart-bar";
4798
+ search: "search";
4799
+ }>, z.ZodString]>>;
4800
+ externalUrl: z.ZodOptional<z.ZodString>;
4801
+ sourceFilePath: z.ZodOptional<z.ZodString>;
4802
+ body: z.ZodString;
4803
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
4804
+ target: z.ZodObject<{
4805
+ kind: z.ZodEnum<{
4806
+ knowledge: "knowledge";
4807
+ system: "system";
4808
+ resource: "resource";
4809
+ action: "action";
4810
+ ontology: "ontology";
4811
+ role: "role";
4812
+ client: "client";
4813
+ stage: "stage";
4814
+ goal: "goal";
4815
+ "customer-segment": "customer-segment";
4816
+ offering: "offering";
4817
+ }>;
4818
+ id: z.ZodString;
4819
+ }, z.core.$strip>;
4820
+ }, z.core.$strip>, z.ZodObject<{
4821
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
4822
+ }, z.core.$strip>]>, z.ZodTransform<{
4823
+ target: {
4824
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
4825
+ id: string;
4826
+ };
4827
+ nodeId: string;
4828
+ }, {
4829
+ nodeId: string;
4830
+ } | {
4831
+ target: {
4832
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
4833
+ id: string;
4834
+ };
4835
+ }>>>>;
4836
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4837
+ updatedAt: z.ZodString;
4838
+ }, z.core.$strip>>>>;
4839
+ }, z.core.$strip>;
4840
+
4841
+ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
4842
+
4843
+ declare const CRM_API_INTERFACE: {
4844
+ readonly systemPath: "sales.crm";
4845
+ readonly interfaceKey: "api";
4846
+ readonly readinessProfile: "sales.crm.api";
4847
+ };
4848
+
3523
4849
  /**
3524
4850
  * CRM Overview API Schemas
3525
4851
  *
@@ -3695,13 +5021,6 @@ interface OrganizationGraphSystemBridge {
3695
5021
 
3696
5022
  declare const crmManifest: SystemModule;
3697
5023
 
3698
- declare const DEAL_STAGE_COLORS: Record<string, string>;
3699
- declare const DEAL_STAGE_OPTIONS: {
3700
- value: DealStage;
3701
- label: string;
3702
- }[];
3703
- declare function formatDealStageLabel(stage: string | null): string;
3704
-
3705
5024
  declare function DealsListPage(): react_jsx_runtime.JSX.Element;
3706
5025
 
3707
5026
  type DealDetail = DealDetail$1 & Pick<DealDetailResponse, 'conversation'>;
@@ -3710,8 +5029,14 @@ interface DealDetailPageProps {
3710
5029
  dealId: string;
3711
5030
  renderActions?: (deal: DealDetail) => ReactNode;
3712
5031
  onDealLoaded?: (deal: DealDetail) => void;
5032
+ /**
5033
+ * Base URL for the "Copy Booking Link" affordance. `@repo/ui` has no built-in booking
5034
+ * domain -- when omitted, the copy-link button is hidden rather than falling back to
5035
+ * a placeholder URL.
5036
+ */
5037
+ bookingUrl?: string;
3713
5038
  }
3714
- declare function DealDetailPage({ dealId, renderActions, onDealLoaded }: DealDetailPageProps): react_jsx_runtime.JSX.Element;
5039
+ declare function DealDetailPage({ dealId, renderActions, onDealLoaded, bookingUrl }: DealDetailPageProps): react_jsx_runtime.JSX.Element;
3715
5040
 
3716
5041
  type ConversationMessage = DealDetailResponse['conversation']['messages'][number];
3717
5042
  interface ConversationThreadProps {
@@ -3755,5 +5080,36 @@ declare function useUpdateCrmPrioritySettings(): _tanstack_react_query.UseMutati
3755
5080
  }, unknown>;
3756
5081
  declare function useResetCrmPrioritySettings(): _tanstack_react_query.UseMutationResult<CrmPrioritySettingsResponse, Error, void, unknown>;
3757
5082
 
3758
- export { ActivityFeedWidget, CRM_ITEMS, CompanyDetailPage, ContactDetailPage, ConversationThread, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, crmManifest, crmPrioritySettingsKeys, formatDealStageLabel, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useRecentCrmActivity, useResetCrmPrioritySettings, useUpdateCrmPrioritySettings };
3759
- export type { ActivityFeedWidgetProps, CompanyDetailPageProps, ContactDetailPageProps, RecentActivityEntry as CrmActivityEntry, CrmActivityKind, CrmOverviewProps, CrmPrioritySettingsResponse, CrmQuickMetrics, CrmSidebarMiddleProps, MyTasksPanelProps, PipelineFunnelWidgetProps, PipelineStageSummary, QuickCreateActionsProps, SavedViewPreset, SavedViewsPanelProps };
5083
+ interface CrmApiInterfaceReadiness {
5084
+ systemPath: typeof CRM_API_INTERFACE.systemPath;
5085
+ interfaceKey: typeof CRM_API_INTERFACE.interfaceKey;
5086
+ readinessProfile?: typeof CRM_API_INTERFACE.readinessProfile;
5087
+ declared: boolean;
5088
+ ready: boolean;
5089
+ reason?: string;
5090
+ issues: SystemInterfaceReadinessIssue[];
5091
+ }
5092
+ interface CrmPipelineConfig {
5093
+ /**
5094
+ * The tenant's CRM pipeline, read from the Organization Model's bridge catalog
5095
+ * (`sales.crm:catalog/crm.pipeline`). `undefined` when the tenant's OM has no
5096
+ * authored CRM pipeline -- callers must render an empty state, not substitute
5097
+ * a default pipeline.
5098
+ */
5099
+ pipeline: StatefulPipelineDefinition | undefined;
5100
+ crmApiInterface: CrmApiInterfaceReadiness;
5101
+ canUseCrmApiActions: boolean;
5102
+ }
5103
+ declare function getCrmApiInterfaceReadiness(model: OrganizationModel | undefined): CrmApiInterfaceReadiness;
5104
+ /**
5105
+ * Reads the tenant's CRM pipeline configuration from the Organization Model.
5106
+ *
5107
+ * Structural twin of `useLeadGenConfig` -- reads `useOptionalElevasisSystems()?.organizationModel`,
5108
+ * derives its catalog and readiness through generic `@repo/core` accessors, memoizes on the
5109
+ * model, and degrades to a readiness-only object when no OM is present. Imports nothing from
5110
+ * `@repo/elevasis-core`: the pipeline is caller-supplied content, not a platform default.
5111
+ */
5112
+ declare function useCrmPipelineConfig(): CrmPipelineConfig;
5113
+
5114
+ export { ActivityFeedWidget, CRM_ITEMS, CompanyDetailPage, ContactDetailPage, ConversationThread, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, crmManifest, crmPrioritySettingsKeys, getCrmApiInterfaceReadiness, useCrmPipelineConfig, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useRecentCrmActivity, useResetCrmPrioritySettings, useUpdateCrmPrioritySettings };
5115
+ export type { ActivityFeedWidgetProps, CompanyDetailPageProps, ContactDetailPageProps, RecentActivityEntry as CrmActivityEntry, CrmActivityKind, CrmApiInterfaceReadiness, CrmOverviewProps, CrmPipelineConfig, CrmPrioritySettingsResponse, CrmQuickMetrics, CrmSidebarMiddleProps, MyTasksPanelProps, PipelineFunnelWidgetProps, PipelineStageSummary, QuickCreateActionsProps, SavedViewPreset, SavedViewsPanelProps };