@elevasis/ui 2.72.0 → 2.74.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 (100) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.d.ts +172 -20
  3. package/dist/app/index.js +9 -10
  4. package/dist/auth/index.js +5 -6
  5. package/dist/charts/index.js +5 -6
  6. package/dist/chunk-2GIJBHZT.js +60 -0
  7. package/dist/{chunk-2454MK7P.js → chunk-2MRRDF32.js} +115 -8
  8. package/dist/chunk-3LOKYZJC.js +231 -0
  9. package/dist/chunk-3QHX4ZKV.js +224 -0
  10. package/dist/chunk-43LC6XAX.js +69 -0
  11. package/dist/chunk-4M2BSHVT.js +116 -0
  12. package/dist/{chunk-SV4M2BUI.js → chunk-4MXNHJTA.js} +111 -46
  13. package/dist/{chunk-LEQGGX2U.js → chunk-5A6KCFS5.js} +36 -43
  14. package/dist/{chunk-KIDZXZM5.js → chunk-6JN2TLV2.js} +1480 -4200
  15. package/dist/{chunk-UZ5JO5TK.js → chunk-7ARBBELS.js} +1 -1
  16. package/dist/{chunk-DJWIIPKW.js → chunk-7RJ7P6S6.js} +6 -3
  17. package/dist/chunk-ARAFQBNI.js +515 -0
  18. package/dist/{chunk-DKVGO6RJ.js → chunk-BA3AZJUR.js} +1 -1
  19. package/dist/chunk-BRTGCFBH.js +305 -0
  20. package/dist/{chunk-7ESZKTQG.js → chunk-CQPULKKL.js} +5 -3
  21. package/dist/chunk-CRA7WQZH.js +49 -0
  22. package/dist/{chunk-XZIOCB5D.js → chunk-DCQKTDIG.js} +2 -52
  23. package/dist/{chunk-A3JHFZDP.js → chunk-E6YGA5WH.js} +1 -1
  24. package/dist/chunk-FA7LMNQO.js +439 -0
  25. package/dist/chunk-FZSG6M6W.js +45 -0
  26. package/dist/chunk-GDOR57D7.js +165 -0
  27. package/dist/{chunk-RRS2QR3W.js → chunk-GO4XJ5D4.js} +1 -1
  28. package/dist/chunk-GPQQGQGT.js +645 -0
  29. package/dist/chunk-HYQOGRWG.js +54 -0
  30. package/dist/{chunk-LCHL5SM2.js → chunk-LN4UW6S4.js} +1 -1
  31. package/dist/chunk-N6K2Q5BM.js +393 -0
  32. package/dist/{chunk-Z2W5VNN3.js → chunk-O32UQ26A.js} +3 -2
  33. package/dist/{chunk-M7WWRZ5Z.js → chunk-QFGNRKIE.js} +1 -78
  34. package/dist/{chunk-Q3O3WY7Q.js → chunk-R5UGIFYU.js} +74 -18
  35. package/dist/{chunk-753MKWFV.js → chunk-RFNJ2PTO.js} +1 -1
  36. package/dist/chunk-VM2OWOXL.js +24 -0
  37. package/dist/{chunk-ZBXCEWKF.js → chunk-W2QRBQQA.js} +5 -3
  38. package/dist/chunk-WDBNW44Z.js +49 -0
  39. package/dist/{chunk-IXBRUIYI.js → chunk-WZU3MCKI.js} +1 -1
  40. package/dist/chunk-YQQ5GRUR.js +21 -0
  41. package/dist/{chunk-IMZTRDY2.js → chunk-ZFA56VSR.js} +2 -2
  42. package/dist/{chunk-AFBFSXP3.js → chunk-ZWI62BQ6.js} +7 -4
  43. package/dist/chunk-ZYNVCWDZ.js +286 -0
  44. package/dist/components/index.d.ts +490 -22
  45. package/dist/components/index.js +335 -35
  46. package/dist/components/navigation/index.js +6 -7
  47. package/dist/features/auth/index.d.ts +154 -2
  48. package/dist/features/auth/index.js +18 -9
  49. package/dist/features/clients/index.js +7 -7
  50. package/dist/features/content/index.d.ts +718 -34
  51. package/dist/features/content/index.js +1345 -51
  52. package/dist/features/crm/index.d.ts +172 -20
  53. package/dist/features/crm/index.js +10 -8
  54. package/dist/features/dashboard/index.d.ts +19 -10
  55. package/dist/features/dashboard/index.js +9 -8
  56. package/dist/features/delivery/index.d.ts +134 -0
  57. package/dist/features/delivery/index.js +23 -7
  58. package/dist/features/knowledge/index.js +5 -6
  59. package/dist/features/lead-gen/index.d.ts +47 -35
  60. package/dist/features/lead-gen/index.js +12 -8
  61. package/dist/features/monitoring/index.js +11 -9
  62. package/dist/features/monitoring/requests/index.js +8 -7
  63. package/dist/features/operations/index.d.ts +38 -20
  64. package/dist/features/operations/index.js +15 -11
  65. package/dist/features/public-agent-chat/index.js +3 -1
  66. package/dist/features/settings/index.d.ts +134 -0
  67. package/dist/features/settings/index.js +9 -8
  68. package/dist/hooks/access/index.js +5 -6
  69. package/dist/hooks/delivery/index.d.ts +134 -0
  70. package/dist/hooks/delivery/index.js +3 -2
  71. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +20 -11
  72. package/dist/hooks/published.d.ts +1421 -29
  73. package/dist/hooks/published.js +22 -6
  74. package/dist/initialization/index.d.ts +134 -0
  75. package/dist/knowledge/index.d.ts +38 -20
  76. package/dist/knowledge/index.js +167 -11
  77. package/dist/{knowledge-search-index-RZLIVWPJ.js → knowledge-search-index-6GQK55IQ.js} +1 -1
  78. package/dist/layout/index.js +8 -9
  79. package/dist/profile/index.d.ts +134 -0
  80. package/dist/provider/index.d.ts +191 -21
  81. package/dist/provider/index.js +5 -6
  82. package/dist/provider/published.d.ts +219 -21
  83. package/dist/provider/published.js +5 -6
  84. package/dist/test-utils/index.d.ts +16 -5
  85. package/dist/test-utils/index.js +17 -18
  86. package/dist/types/index.d.ts +184 -14
  87. package/dist/utils/index.d.ts +102 -13
  88. package/dist/utils/index.js +1 -1
  89. package/package.json +7 -6
  90. package/dist/chunk-6M6OLGQY.js +0 -36
  91. package/dist/chunk-MKH2KOAO.js +0 -39
  92. package/dist/hooks/index.css +0 -659
  93. package/dist/hooks/index.d.ts +0 -12853
  94. package/dist/hooks/index.js +0 -27
  95. package/dist/supabase/index.d.ts +0 -6969
  96. package/dist/supabase/index.js +0 -3
  97. package/dist/typeform/index.d.ts +0 -462
  98. package/dist/typeform/index.js +0 -2051
  99. package/dist/typeform/schemas.d.ts +0 -67
  100. package/dist/typeform/schemas.js +0 -2
@@ -1556,6 +1556,64 @@ type Database = {
1556
1556
  }
1557
1557
  ];
1558
1558
  };
1559
+ content_distribution_metrics: {
1560
+ Row: {
1561
+ captured_at: string;
1562
+ created_at: string;
1563
+ distribution_id: string;
1564
+ id: string;
1565
+ metrics: Json;
1566
+ organization_id: string;
1567
+ raw: Json;
1568
+ source: string;
1569
+ source_execution_id: string | null;
1570
+ };
1571
+ Insert: {
1572
+ captured_at?: string;
1573
+ created_at?: string;
1574
+ distribution_id: string;
1575
+ id?: string;
1576
+ metrics?: Json;
1577
+ organization_id: string;
1578
+ raw?: Json;
1579
+ source: string;
1580
+ source_execution_id?: string | null;
1581
+ };
1582
+ Update: {
1583
+ captured_at?: string;
1584
+ created_at?: string;
1585
+ distribution_id?: string;
1586
+ id?: string;
1587
+ metrics?: Json;
1588
+ organization_id?: string;
1589
+ raw?: Json;
1590
+ source?: string;
1591
+ source_execution_id?: string | null;
1592
+ };
1593
+ Relationships: [
1594
+ {
1595
+ foreignKeyName: "content_distribution_metrics_distribution_fkey";
1596
+ columns: ["distribution_id", "organization_id"];
1597
+ isOneToOne: false;
1598
+ referencedRelation: "content_distributions";
1599
+ referencedColumns: ["id", "organization_id"];
1600
+ },
1601
+ {
1602
+ foreignKeyName: "content_distribution_metrics_organization_id_fkey";
1603
+ columns: ["organization_id"];
1604
+ isOneToOne: false;
1605
+ referencedRelation: "organizations";
1606
+ referencedColumns: ["id"];
1607
+ },
1608
+ {
1609
+ foreignKeyName: "content_distribution_metrics_source_execution_id_fkey";
1610
+ columns: ["source_execution_id"];
1611
+ isOneToOne: false;
1612
+ referencedRelation: "execution_logs";
1613
+ referencedColumns: ["execution_id"];
1614
+ }
1615
+ ];
1616
+ };
1559
1617
  content_distributions: {
1560
1618
  Row: {
1561
1619
  adapted_body: string | null;
@@ -1705,6 +1763,63 @@ type Database = {
1705
1763
  }
1706
1764
  ];
1707
1765
  };
1766
+ content_item_source_assets: {
1767
+ Row: {
1768
+ alt_text: string | null;
1769
+ content_item_id: string;
1770
+ created_at: string;
1771
+ crop: Json | null;
1772
+ derivative_crop: Json | null;
1773
+ derivative_path: string | null;
1774
+ derivative_rendered_at: string | null;
1775
+ id: string;
1776
+ organization_id: string;
1777
+ position: number;
1778
+ source_asset_id: string;
1779
+ };
1780
+ Insert: {
1781
+ alt_text?: string | null;
1782
+ content_item_id: string;
1783
+ created_at?: string;
1784
+ crop?: Json | null;
1785
+ derivative_crop?: Json | null;
1786
+ derivative_path?: string | null;
1787
+ derivative_rendered_at?: string | null;
1788
+ id?: string;
1789
+ organization_id: string;
1790
+ position: number;
1791
+ source_asset_id: string;
1792
+ };
1793
+ Update: {
1794
+ alt_text?: string | null;
1795
+ content_item_id?: string;
1796
+ created_at?: string;
1797
+ crop?: Json | null;
1798
+ derivative_crop?: Json | null;
1799
+ derivative_path?: string | null;
1800
+ derivative_rendered_at?: string | null;
1801
+ id?: string;
1802
+ organization_id?: string;
1803
+ position?: number;
1804
+ source_asset_id?: string;
1805
+ };
1806
+ Relationships: [
1807
+ {
1808
+ foreignKeyName: "content_item_source_assets_asset_fkey";
1809
+ columns: ["source_asset_id", "organization_id"];
1810
+ isOneToOne: false;
1811
+ referencedRelation: "content_source_assets";
1812
+ referencedColumns: ["id", "organization_id"];
1813
+ },
1814
+ {
1815
+ foreignKeyName: "content_item_source_assets_item_fkey";
1816
+ columns: ["content_item_id", "organization_id"];
1817
+ isOneToOne: false;
1818
+ referencedRelation: "content_items";
1819
+ referencedColumns: ["id", "organization_id"];
1820
+ }
1821
+ ];
1822
+ };
1708
1823
  content_items: {
1709
1824
  Row: {
1710
1825
  body: string | null;
@@ -3460,6 +3575,25 @@ type Database = {
3460
3575
  };
3461
3576
  Returns: Json;
3462
3577
  };
3578
+ activate_deployment_atomic: {
3579
+ Args: {
3580
+ p_deployment_id: string;
3581
+ p_organization_id: string;
3582
+ };
3583
+ Returns: {
3584
+ created_at: string;
3585
+ deployment_version: string | null;
3586
+ error_message: string | null;
3587
+ id: string;
3588
+ organization_id: string;
3589
+ pid: number | null;
3590
+ port: number | null;
3591
+ sdk_version: string;
3592
+ status: string;
3593
+ tarball_path: string | null;
3594
+ updated_at: string;
3595
+ };
3596
+ };
3463
3597
  append_deal_activity: {
3464
3598
  Args: {
3465
3599
  p_activity: Json;
@@ -3831,7 +3965,9 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3831
3965
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3832
3966
  properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3833
3967
  storage: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3834
- }, z$1.core.$loose>>>>;
3968
+ rowSchema: z$1.ZodOptional<z$1.ZodString>;
3969
+ stateCatalogId: z$1.ZodOptional<z$1.ZodString>;
3970
+ }, z$1.core.$strict>>>>;
3835
3971
  linkTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3836
3972
  id: z$1.ZodString;
3837
3973
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3842,7 +3978,7 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3842
3978
  to: z$1.ZodString;
3843
3979
  cardinality: z$1.ZodOptional<z$1.ZodString>;
3844
3980
  via: z$1.ZodOptional<z$1.ZodString>;
3845
- }, z$1.core.$loose>>>>;
3981
+ }, z$1.core.$strict>>>>;
3846
3982
  actionTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3847
3983
  id: z$1.ZodString;
3848
3984
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3852,7 +3988,11 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3852
3988
  actsOn: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3853
3989
  input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3854
3990
  effects: z$1.ZodOptional<z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
3855
- }, z$1.core.$loose>>>>;
3991
+ resourceId: z$1.ZodOptional<z$1.ZodString>;
3992
+ invocations: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown>>;
3993
+ lifecycle: z$1.ZodOptional<z$1.ZodString>;
3994
+ legacyActionId: z$1.ZodOptional<z$1.ZodString>;
3995
+ }, z$1.core.$strict>>>>;
3856
3996
  catalogTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3857
3997
  id: z$1.ZodString;
3858
3998
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3862,7 +4002,10 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3862
4002
  kind: z$1.ZodOptional<z$1.ZodString>;
3863
4003
  appliesTo: z$1.ZodOptional<z$1.ZodString>;
3864
4004
  entries: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3865
- }, z$1.core.$loose>>>>;
4005
+ legacyCatalogKey: z$1.ZodOptional<z$1.ZodString>;
4006
+ legacyPipelineKey: z$1.ZodOptional<z$1.ZodString>;
4007
+ legacyEntityKey: z$1.ZodOptional<z$1.ZodString>;
4008
+ }, z$1.core.$strict>>>>;
3866
4009
  eventTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3867
4010
  id: z$1.ZodString;
3868
4011
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3870,7 +4013,7 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3870
4013
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3871
4014
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3872
4015
  payload: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3873
- }, z$1.core.$loose>>>>;
4016
+ }, z$1.core.$strict>>>>;
3874
4017
  interfaceTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3875
4018
  id: z$1.ZodString;
3876
4019
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3878,7 +4021,7 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3878
4021
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3879
4022
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3880
4023
  properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3881
- }, z$1.core.$loose>>>>;
4024
+ }, z$1.core.$strict>>>>;
3882
4025
  valueTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3883
4026
  id: z$1.ZodString;
3884
4027
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3886,7 +4029,7 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3886
4029
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3887
4030
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3888
4031
  primitive: z$1.ZodOptional<z$1.ZodString>;
3889
- }, z$1.core.$loose>>>>;
4032
+ }, z$1.core.$strict>>>>;
3890
4033
  sharedProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3891
4034
  id: z$1.ZodString;
3892
4035
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3896,7 +4039,7 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3896
4039
  valueType: z$1.ZodOptional<z$1.ZodString>;
3897
4040
  searchable: z$1.ZodOptional<z$1.ZodBoolean>;
3898
4041
  pii: z$1.ZodOptional<z$1.ZodBoolean>;
3899
- }, z$1.core.$loose>>>>;
4042
+ }, z$1.core.$strict>>>>;
3900
4043
  groups: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3901
4044
  id: z$1.ZodString;
3902
4045
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3904,7 +4047,7 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3904
4047
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3905
4048
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3906
4049
  members: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3907
- }, z$1.core.$loose>>>>;
4050
+ }, z$1.core.$strict>>>>;
3908
4051
  endpoints: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3909
4052
  id: z$1.ZodString;
3910
4053
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -3912,7 +4055,7 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3912
4055
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3913
4056
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3914
4057
  route: z$1.ZodOptional<z$1.ZodString>;
3915
- }, z$1.core.$loose>>>>;
4058
+ }, z$1.core.$strict>>>>;
3916
4059
  }, z$1.core.$strict>>;
3917
4060
  type OntologyScope = z$1.infer<typeof OntologyScopeSchema>;
3918
4061
 
@@ -4455,7 +4598,9 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4455
4598
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4456
4599
  properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
4457
4600
  storage: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
4458
- }, z$1.core.$loose>>>>;
4601
+ rowSchema: z$1.ZodOptional<z$1.ZodString>;
4602
+ stateCatalogId: z$1.ZodOptional<z$1.ZodString>;
4603
+ }, z$1.core.$strict>>>>;
4459
4604
  linkTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4460
4605
  id: z$1.ZodString;
4461
4606
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4466,7 +4611,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4466
4611
  to: z$1.ZodString;
4467
4612
  cardinality: z$1.ZodOptional<z$1.ZodString>;
4468
4613
  via: z$1.ZodOptional<z$1.ZodString>;
4469
- }, z$1.core.$loose>>>>;
4614
+ }, z$1.core.$strict>>>>;
4470
4615
  actionTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4471
4616
  id: z$1.ZodString;
4472
4617
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4476,7 +4621,11 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4476
4621
  actsOn: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
4477
4622
  input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
4478
4623
  effects: z$1.ZodOptional<z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
4479
- }, z$1.core.$loose>>>>;
4624
+ resourceId: z$1.ZodOptional<z$1.ZodString>;
4625
+ invocations: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown>>;
4626
+ lifecycle: z$1.ZodOptional<z$1.ZodString>;
4627
+ legacyActionId: z$1.ZodOptional<z$1.ZodString>;
4628
+ }, z$1.core.$strict>>>>;
4480
4629
  catalogTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4481
4630
  id: z$1.ZodString;
4482
4631
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4486,7 +4635,10 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4486
4635
  kind: z$1.ZodOptional<z$1.ZodString>;
4487
4636
  appliesTo: z$1.ZodOptional<z$1.ZodString>;
4488
4637
  entries: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
4489
- }, z$1.core.$loose>>>>;
4638
+ legacyCatalogKey: z$1.ZodOptional<z$1.ZodString>;
4639
+ legacyPipelineKey: z$1.ZodOptional<z$1.ZodString>;
4640
+ legacyEntityKey: z$1.ZodOptional<z$1.ZodString>;
4641
+ }, z$1.core.$strict>>>>;
4490
4642
  eventTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4491
4643
  id: z$1.ZodString;
4492
4644
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4494,7 +4646,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4494
4646
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
4495
4647
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4496
4648
  payload: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
4497
- }, z$1.core.$loose>>>>;
4649
+ }, z$1.core.$strict>>>>;
4498
4650
  interfaceTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4499
4651
  id: z$1.ZodString;
4500
4652
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4502,7 +4654,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4502
4654
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
4503
4655
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4504
4656
  properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
4505
- }, z$1.core.$loose>>>>;
4657
+ }, z$1.core.$strict>>>>;
4506
4658
  valueTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4507
4659
  id: z$1.ZodString;
4508
4660
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4510,7 +4662,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4510
4662
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
4511
4663
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4512
4664
  primitive: z$1.ZodOptional<z$1.ZodString>;
4513
- }, z$1.core.$loose>>>>;
4665
+ }, z$1.core.$strict>>>>;
4514
4666
  sharedProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4515
4667
  id: z$1.ZodString;
4516
4668
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4520,7 +4672,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4520
4672
  valueType: z$1.ZodOptional<z$1.ZodString>;
4521
4673
  searchable: z$1.ZodOptional<z$1.ZodBoolean>;
4522
4674
  pii: z$1.ZodOptional<z$1.ZodBoolean>;
4523
- }, z$1.core.$loose>>>>;
4675
+ }, z$1.core.$strict>>>>;
4524
4676
  groups: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4525
4677
  id: z$1.ZodString;
4526
4678
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4528,7 +4680,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4528
4680
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
4529
4681
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4530
4682
  members: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
4531
- }, z$1.core.$loose>>>>;
4683
+ }, z$1.core.$strict>>>>;
4532
4684
  endpoints: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4533
4685
  id: z$1.ZodString;
4534
4686
  label: z$1.ZodOptional<z$1.ZodString>;
@@ -4536,7 +4688,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4536
4688
  ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
4537
4689
  aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4538
4690
  route: z$1.ZodOptional<z$1.ZodString>;
4539
- }, z$1.core.$loose>>>>;
4691
+ }, z$1.core.$strict>>>>;
4540
4692
  }, z$1.core.$strict>>>;
4541
4693
  resources: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4542
4694
  id: z$1.ZodString;
@@ -5471,6 +5623,52 @@ declare function useElevasisSystems(): ElevasisSystemsContextValue;
5471
5623
  declare function useOptionalElevasisSystems(): ElevasisSystemsContextValue | null;
5472
5624
  declare function ElevasisSystemsProvider({ systems, topbarActions, organizationModel, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, children }: ElevasisSystemsProviderProps): react_jsx_runtime.JSX.Element;
5473
5625
 
5626
+ /**
5627
+ * Filters a static candidate manifest list down to the ones whose System is
5628
+ * both **declared** in the organization model and **visible** by lifecycle
5629
+ * (`isSystemLifecycleVisible` -- the Wave 1 shared predicate; `lifecycle:
5630
+ * 'draft'` is not visible, and an omitted lifecycle parses as `'active'`).
5631
+ *
5632
+ * This is a FILTER, not a generator. Tenants keep their hand-written
5633
+ * `SYSTEM_MANIFESTS` array (real imports, so bundling and tree-shaking stay
5634
+ * honest) and route the result through this function before handing it to
5635
+ * `ElevasisSystemsProvider` / `ElevasisAuthenticatedShell`.
5636
+ *
5637
+ * A manifest with no `systemId` is a navigation-only surface (see
5638
+ * `SystemModule.systemId`'s own doc: "Omit for navigation-only app
5639
+ * surfaces") -- there is nothing to check it against, so it always passes
5640
+ * through unfiltered.
5641
+ */
5642
+ declare function selectDeclaredSystems<T extends SystemModule>(candidates: readonly T[], organizationModel: ElevasisOrganizationModel | undefined): T[];
5643
+
5644
+ /**
5645
+ * useResolvedOrganizationModel
5646
+ *
5647
+ * Returns the live organization model from ElevasisSystemsProvider, falling
5648
+ * back to a canonical empty model when the provider has not yet supplied one.
5649
+ *
5650
+ * Fallback uses `mergeDefaults: false` intentionally: the generic
5651
+ * DEFAULT_ORGANIZATION_MODEL has an empty `systems: {}` record (all
5652
+ * Elevasis-specific systems live in `@repo/elevasis-core`). With
5653
+ * `mergeDefaults: true` Zod would inject the generic fixture defaults,
5654
+ * producing a model that looks valid but contains none of the tenant's
5655
+ * semantic data. `mergeDefaults: false` yields a minimal schema-valid shell
5656
+ * that makes the missing-provider state explicit rather than silently hiding it.
5657
+ */
5658
+
5659
+ /**
5660
+ * Returns the live `OrganizationModel` from the nearest
5661
+ * `ElevasisSystemsProvider`. When the provider has not yet supplied a model
5662
+ * (e.g. during initial load), returns `EMPTY_CANONICAL_MODEL` -- a minimal
5663
+ * schema-valid shell resolved with `{ mergeDefaults: false }` so it never
5664
+ * silently injects the generic fixture Systems/knowledge.
5665
+ *
5666
+ * Use this hook instead of `organizationModel ?? resolveOrganizationModel()`
5667
+ * at call sites; it centralises the fallback decision and enforces the
5668
+ * `mergeDefaults: false` contract in one place.
5669
+ */
5670
+ declare function useResolvedOrganizationModel(): OrganizationModel;
5671
+
5474
5672
  declare function SystemShell({ children }: {
5475
5673
  children: ReactNode;
5476
5674
  }): react_jsx_runtime.JSX.Element;
@@ -5517,5 +5715,5 @@ declare function useElevasisServices(): ElevasisServiceContextValue;
5517
5715
  */
5518
5716
  declare function ElevasisServiceProvider({ apiRequest, organizationId, workOSOrganizationId, isReady, apiUrl, children }: ElevasisServiceProviderProps): react_jsx_runtime.JSX.Element;
5519
5717
 
5520
- export { AppearanceProvider, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisServices, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems };
5718
+ export { AppearanceProvider, ElevasisCoreProvider, ElevasisServiceProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, selectDeclaredSystems, useAppearance, useElevasisServices, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel };
5521
5719
  export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisSystemsContextValue, ElevasisSystemsProviderProps, ElevasisTokenOverrides, NotificationAdapter, OrganizationGraphContextValue, OrganizationGraphSystemBridge, ResolvedShellModel, ResolvedShellRouteMatch, ResolvedShellSystem, ResolvedSystemAccess, ResolvedSystemModule, ResolvedSystemSemantics, ResolvedTopbarAction, ResolvedTopbarActionEntry, ShellRouteMatchStatus, ShellRuntime, ShellSidebarLinkGroup, ShellSidebarLinkItem, ShellSidebarProjectionOptions, SystemIconComponent, SystemModule, SystemSidebarComponent, TopbarActionModule, TopbarActionsProjectionOptions, WithSchemes };
@@ -1,14 +1,13 @@
1
- export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems } from '../chunk-KIDZXZM5.js';
1
+ export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, selectDeclaredSystems, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-6JN2TLV2.js';
2
2
  import '../chunk-R6NMRXNO.js';
3
3
  import '../chunk-RBGVNPA6.js';
4
- import '../chunk-MKH2KOAO.js';
5
- import '../chunk-Z2W5VNN3.js';
4
+ import '../chunk-O32UQ26A.js';
6
5
  import '../chunk-L7BZZ4SI.js';
7
- import '../chunk-XZIOCB5D.js';
6
+ import '../chunk-HYQOGRWG.js';
8
7
  import '../chunk-MISHPEJX.js';
9
8
  import '../chunk-62GVNH5U.js';
10
9
  import '../chunk-P45GQ3ZW.js';
11
- import '../chunk-M7WWRZ5Z.js';
10
+ import '../chunk-2GIJBHZT.js';
12
11
  import '../chunk-3KMDHCAR.js';
13
12
  import '../chunk-2IFYDILW.js';
14
13
  import '../chunk-BLXJEIQS.js';
@@ -16,7 +15,7 @@ import '../chunk-UD657ICS.js';
16
15
  import '../chunk-DD3CCMCZ.js';
17
16
  import '../chunk-RNP5R5I3.js';
18
17
  import '../chunk-RT4KRGZT.js';
19
- import '../chunk-Q3O3WY7Q.js';
18
+ import '../chunk-R5UGIFYU.js';
20
19
  import '../chunk-Y6I3IC45.js';
21
20
  import '../chunk-6SSQGWK7.js';
22
21
  export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BI5VDO2K.js';
@@ -176,15 +176,26 @@ interface OrgOsUiRouteContractOptions {
176
176
  mode?: OrgOsUiRouteContractMode;
177
177
  /**
178
178
  * Route paths whose route file — or an ancestor layout route — wraps the page
179
- * in an `AccessGuard`. Supply this to enable the `unguarded-beta-route` check.
179
+ * in an `AccessGuard`. Supply this to enable the `unguarded-route` check.
180
180
  *
181
- * Omitted means the beta-guard check does not run. Hiding a System from
182
- * navigation (`lifecycle: 'beta'`) does not make its route unreachable, so a
183
- * caller that can resolve route files should always pass this.
181
+ * Omitted means the guard check does not run. A System's route is reachable
182
+ * by direct URL regardless of its lifecycle or whether it is currently
183
+ * surfaced in navigation, so a caller that can resolve route files should
184
+ * always pass this.
184
185
  */
185
186
  guardedRoutePaths?: Iterable<string>;
187
+ /**
188
+ * Explicit, named opt-out from the `unguarded-route` check for System paths
189
+ * that are intentionally reachable without an `AccessGuard` (a public or
190
+ * unauthenticated surface, for example). Each entry must be a normalized
191
+ * route path already present in `routePaths`/`routeTreeSource` — this is
192
+ * not a way to silence a path that simply has not been checked. Keep this
193
+ * empty unless a route genuinely should not be guarded; do not use it to
194
+ * paper over a route a guard was forgotten on.
195
+ */
196
+ publiclyReachableRoutePaths?: Iterable<string>;
186
197
  }
187
- type OrgOsUiRouteContractIssueKind = 'missing-system' | 'missing-route' | 'unguarded-beta-route';
198
+ type OrgOsUiRouteContractIssueKind = 'missing-system' | 'missing-route' | 'unguarded-route';
188
199
  interface OrgOsUiRouteContractIssue {
189
200
  target: OrgOsUiRouteContractTarget;
190
201
  kind: OrgOsUiRouteContractIssueKind;
@@ -2,10 +2,10 @@ import { server, handlers } from '../chunk-7XKCG5CT.js';
2
2
  export { handlers, server } from '../chunk-7XKCG5CT.js';
3
3
  import { mockWorkOSUser, mockUseAuth, mockUnauthenticatedUser, mockAuthenticatedUser, mockAuthLoading, createMockUseAuth } from '../chunk-N7U24M2J.js';
4
4
  export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser } from '../chunk-N7U24M2J.js';
5
- import '../chunk-753MKWFV.js';
6
- import { ApiClientProvider } from '../chunk-Z2W5VNN3.js';
5
+ import '../chunk-RFNJ2PTO.js';
6
+ import { ApiClientProvider } from '../chunk-O32UQ26A.js';
7
7
  import '../chunk-DD3CCMCZ.js';
8
- import '../chunk-Q3O3WY7Q.js';
8
+ import '../chunk-R5UGIFYU.js';
9
9
  import '../chunk-Y6I3IC45.js';
10
10
  import '../chunk-6SSQGWK7.js';
11
11
  import { ElevasisServiceProvider } from '../chunk-BI5VDO2K.js';
@@ -179,19 +179,15 @@ function getOrgOsRouteContractSystems(organizationModel) {
179
179
  const { systems } = organizationModel;
180
180
  const arraySystems = systems.systems;
181
181
  if (Array.isArray(arraySystems)) {
182
- return arraySystems.map((system) => ({
183
- ...system,
184
- betaByAncestry: system.lifecycle === "beta"
185
- }));
182
+ return arraySystems;
186
183
  }
187
184
  const result = [];
188
- const visit = (entries, prefix = "", ancestorBeta = false) => {
185
+ const visit = (entries, prefix = "") => {
189
186
  for (const [key, system] of Object.entries(entries)) {
190
187
  const id = prefix ? `${prefix}.${key}` : system.id || key;
191
- const betaByAncestry = ancestorBeta || system.lifecycle === "beta";
192
- result.push({ ...system, id, betaByAncestry });
193
- if (system.systems) visit(system.systems, id, betaByAncestry);
194
- if (system.subsystems) visit(system.subsystems, id, betaByAncestry);
188
+ result.push({ ...system, id });
189
+ if (system.systems) visit(system.systems, id);
190
+ if (system.subsystems) visit(system.subsystems, id);
195
191
  }
196
192
  };
197
193
  visit(systems);
@@ -205,6 +201,9 @@ function collectOrgOsUiRouteContractIssues(options) {
205
201
  }
206
202
  const normalizedRoutePaths = new Set([...routePaths].map(normalizeOrgOsRoutePath));
207
203
  const normalizedGuardedPaths = options.guardedRoutePaths ? new Set([...options.guardedRoutePaths].map(normalizeOrgOsRoutePath)) : void 0;
204
+ const normalizedPubliclyReachablePaths = new Set(
205
+ [...options.publiclyReachableRoutePaths ?? []].map(normalizeOrgOsRoutePath)
206
+ );
208
207
  const systems = getOrgOsRouteContractSystems(organizationModel);
209
208
  const modelSystemIds = new Set(systems.map((system) => system.id));
210
209
  const issues = [];
@@ -236,10 +235,10 @@ function collectOrgOsUiRouteContractIssues(options) {
236
235
  });
237
236
  continue;
238
237
  }
239
- if (normalizedGuardedPaths && system.betaByAncestry && !normalizedGuardedPaths.has(normalizedPath)) {
238
+ if (normalizedGuardedPaths && !normalizedGuardedPaths.has(normalizedPath) && !normalizedPubliclyReachablePaths.has(normalizedPath)) {
240
239
  issues.push({
241
240
  target,
242
- kind: "unguarded-beta-route",
241
+ kind: "unguarded-route",
243
242
  systemId: system.id,
244
243
  ownerSystemId,
245
244
  path: normalizedPath
@@ -257,17 +256,17 @@ function formatOrgOsUiRouteContractIssue(issue) {
257
256
  `- If it should not ship, remove that SystemModule from ${issue.target.shellSource}.`
258
257
  ].join("\n");
259
258
  }
260
- if (issue.kind === "unguarded-beta-route") {
259
+ if (issue.kind === "unguarded-route") {
261
260
  return [
262
- `[unguarded-beta-route] System "${issue.systemId}" is lifecycle "beta" (directly or via an ancestor) and routes to "${issue.path}", but neither that route file nor an ancestor layout route wraps it in an AccessGuard.`,
261
+ `[unguarded-route] System "${issue.systemId}" routes to "${issue.path}", but neither that route file nor an ancestor layout route wraps it in an AccessGuard.`,
263
262
  `Owner SystemModule: ${issue.ownerSystemId}`,
264
- "A beta System is hidden from navigation, which is not the same as unreachable \u2014 the route still answers a direct URL.",
263
+ "Any System route answers a direct URL regardless of its lifecycle or navigation visibility, so every routable System needs its own guard.",
265
264
  "Fix one of:",
266
265
  // Phrased in prose rather than as a guard JSX tag on purpose. The
267
266
  // access-key drift scanner in @repo/core matches that tag shape anywhere
268
267
  // in a file and would read this message as a real runtime access key.
269
268
  `- Wrap the route (or its layout route) in an AccessGuard whose access key is "${issue.systemId}".`,
270
- `- Or change the System's lifecycle in ${issue.target.orgModelSource} if it is actually meant to be publicly reachable.`
269
+ `- Or, if this route is genuinely meant to be reachable without an AccessGuard, add its path to the contract call's publiclyReachableRoutePaths with a comment naming why.`
271
270
  ].join("\n");
272
271
  }
273
272
  return [