@elevasis/ui 2.33.1 → 2.34.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 (73) hide show
  1. package/dist/api/index.d.ts +9 -2
  2. package/dist/api/index.js +1 -1
  3. package/dist/app/index.css +452 -0
  4. package/dist/app/index.d.ts +1250 -3
  5. package/dist/app/index.js +144 -8
  6. package/dist/charts/index.js +2 -3
  7. package/dist/{chunk-3YZRKADM.js → chunk-3AJVNMY5.js} +45 -28
  8. package/dist/chunk-3QXJK5IY.js +25 -0
  9. package/dist/chunk-4O4MII5S.js +4716 -0
  10. package/dist/{chunk-KW7ZNQD7.js → chunk-5EYJ2GIN.js} +4 -8
  11. package/dist/{chunk-53436UTQ.js → chunk-BPQVTIUP.js} +12 -3
  12. package/dist/{chunk-DYIDXUJS.js → chunk-DTFKWZ7A.js} +1098 -2280
  13. package/dist/{chunk-EPTHX4VZ.js → chunk-HRWLKKWM.js} +11 -2
  14. package/dist/{chunk-SWMQTF2H.js → chunk-IGDYWFNE.js} +2 -2
  15. package/dist/{chunk-QVTIOT73.js → chunk-IVGI4GDL.js} +3 -3
  16. package/dist/{chunk-4DYOXEH6.js → chunk-LAWLB6CT.js} +1 -1
  17. package/dist/{chunk-UYRT7SPM.js → chunk-LRWTWOGP.js} +3 -3
  18. package/dist/{chunk-2VYMDNJ3.js → chunk-MP3GPBPX.js} +3 -3
  19. package/dist/{chunk-YENKDBUU.js → chunk-NLBQTDOW.js} +12 -17
  20. package/dist/{chunk-WJOE76FI.js → chunk-O6JXQ6UQ.js} +5 -4
  21. package/dist/{chunk-F3MXFE72.js → chunk-OBBQ2JCM.js} +3 -3
  22. package/dist/{chunk-WGUEIGPC.js → chunk-PLP3NYPL.js} +80 -171
  23. package/dist/{chunk-AV2TKVVV.js → chunk-RIAXZ6AH.js} +5 -6
  24. package/dist/chunk-SDXSB3HN.js +425 -0
  25. package/dist/{chunk-JA5ECJJB.js → chunk-VTXTZXAU.js} +156 -4
  26. package/dist/{chunk-H6EFQP2P.js → chunk-W73ZABT6.js} +1 -1
  27. package/dist/{chunk-UNVRVCXZ.js → chunk-WU4FNWCW.js} +3 -3
  28. package/dist/{chunk-NCEQGEW5.js → chunk-YNWZIWJL.js} +4 -5
  29. package/dist/components/index.d.ts +0 -23
  30. package/dist/components/index.js +27 -448
  31. package/dist/components/navigation/index.js +4 -6
  32. package/dist/features/clients/index.js +7 -12
  33. package/dist/features/crm/index.js +9 -14
  34. package/dist/features/dashboard/index.d.ts +0 -23
  35. package/dist/features/dashboard/index.js +9 -14
  36. package/dist/features/delivery/index.js +8 -13
  37. package/dist/features/knowledge/index.js +5 -7
  38. package/dist/features/lead-gen/index.js +9 -14
  39. package/dist/features/monitoring/index.js +10 -15
  40. package/dist/features/monitoring/requests/index.js +7 -12
  41. package/dist/features/operations/index.d.ts +44 -35
  42. package/dist/features/operations/index.js +12 -17
  43. package/dist/features/settings/index.js +8 -13
  44. package/dist/hooks/index.d.ts +20 -27
  45. package/dist/hooks/index.js +7 -12
  46. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +20 -27
  47. package/dist/hooks/published.d.ts +20 -27
  48. package/dist/hooks/published.js +7 -12
  49. package/dist/index.d.ts +54 -39
  50. package/dist/index.js +8 -13
  51. package/dist/knowledge/index.d.ts +30 -38
  52. package/dist/knowledge/index.js +37 -201
  53. package/dist/{knowledge-search-index-P7PR626V.js → knowledge-search-index-ORIJCEZX.js} +142 -150
  54. package/dist/organization/index.js +1 -2
  55. package/dist/provider/index.d.ts +25 -32
  56. package/dist/provider/index.js +6 -11
  57. package/dist/provider/published.d.ts +25 -32
  58. package/dist/provider/published.js +5 -9
  59. package/dist/test-utils/index.d.ts +2 -0
  60. package/dist/test-utils/index.js +14 -2
  61. package/dist/test-utils/setup.js +38 -0
  62. package/dist/types/index.d.ts +20 -27
  63. package/dist/utils/index.d.ts +0 -23
  64. package/dist/zustand/index.d.ts +15 -2
  65. package/dist/zustand/index.js +35 -1
  66. package/package.json +5 -5
  67. package/dist/chunk-4AAZXKLL.js +0 -347
  68. package/dist/chunk-DWXDNT7P.js +0 -145
  69. package/dist/chunk-FOUYP4JX.js +0 -13
  70. package/dist/chunk-HUJCU55S.js +0 -159
  71. package/dist/chunk-PIS24NIV.js +0 -29
  72. package/dist/chunk-SZHARWKU.js +0 -15
  73. package/dist/chunk-XCYKC6OZ.js +0 -1
@@ -3424,24 +3424,6 @@ type OntologyScope = z$1.infer<typeof OntologyScopeSchema>;
3424
3424
  */
3425
3425
  type TimeRange = '1h' | '24h' | '7d' | '30d';
3426
3426
 
3427
- /**
3428
- * Placeholder discriminated union for ContentNode (Wave 1A).
3429
- * Wave 2A wires concrete (kind, type) pairs via the registry.
3430
- *
3431
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
3432
- * Per L14: every node carries BOTH `kind` and `type`.
3433
- */
3434
- declare const ContentNodeSchema: z$1.ZodObject<{
3435
- label: z$1.ZodString;
3436
- description: z$1.ZodOptional<z$1.ZodString>;
3437
- order: z$1.ZodOptional<z$1.ZodNumber>;
3438
- parentContentId: z$1.ZodOptional<z$1.ZodString>;
3439
- kind: z$1.ZodString;
3440
- type: z$1.ZodString;
3441
- data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3442
- }, z$1.core.$strip>;
3443
- type ContentNode = z$1.infer<typeof ContentNodeSchema>;
3444
-
3445
3427
  type JsonPrimitive = string | number | boolean | null;
3446
3428
  type JsonValue = JsonPrimitive | JsonValue[] | {
3447
3429
  [key: string]: JsonValue;
@@ -3483,11 +3465,6 @@ interface SystemEntry {
3483
3465
  config?: Record<string, JsonValue>;
3484
3466
  ontology?: OntologyScope;
3485
3467
  systems?: Record<string, SystemEntry>;
3486
- /**
3487
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
3488
- * Author new semantic catalogs in `ontology` and local settings in `config`.
3489
- */
3490
- content?: Record<string, ContentNode>;
3491
3468
  subsystems?: Record<string, SystemEntry>;
3492
3469
  }
3493
3470
  declare const SystemEntrySchema: ZodType<SystemEntry>;
@@ -3942,14 +3919,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3942
3919
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3943
3920
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3944
3921
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3922
+ contract: z$1.ZodOptional<z$1.ZodObject<{
3923
+ input: z$1.ZodOptional<z$1.ZodString>;
3924
+ output: z$1.ZodOptional<z$1.ZodString>;
3925
+ }, z$1.core.$strip>>;
3945
3926
  }, z$1.core.$strip>>;
3946
3927
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3947
3928
  path: z$1.ZodString;
3948
3929
  role: z$1.ZodEnum<{
3949
- schema: "schema";
3950
3930
  config: "config";
3951
3931
  entrypoint: "entrypoint";
3952
3932
  handler: "handler";
3933
+ schema: "schema";
3953
3934
  test: "test";
3954
3935
  docs: "docs";
3955
3936
  }>;
@@ -3988,14 +3969,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3988
3969
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3989
3970
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3990
3971
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3972
+ contract: z$1.ZodOptional<z$1.ZodObject<{
3973
+ input: z$1.ZodOptional<z$1.ZodString>;
3974
+ output: z$1.ZodOptional<z$1.ZodString>;
3975
+ }, z$1.core.$strip>>;
3991
3976
  }, z$1.core.$strip>>;
3992
3977
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3993
3978
  path: z$1.ZodString;
3994
3979
  role: z$1.ZodEnum<{
3995
- schema: "schema";
3996
3980
  config: "config";
3997
3981
  entrypoint: "entrypoint";
3998
3982
  handler: "handler";
3983
+ schema: "schema";
3999
3984
  test: "test";
4000
3985
  docs: "docs";
4001
3986
  }>;
@@ -4065,14 +4050,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4065
4050
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4066
4051
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4067
4052
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4053
+ contract: z$1.ZodOptional<z$1.ZodObject<{
4054
+ input: z$1.ZodOptional<z$1.ZodString>;
4055
+ output: z$1.ZodOptional<z$1.ZodString>;
4056
+ }, z$1.core.$strip>>;
4068
4057
  }, z$1.core.$strip>>;
4069
4058
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
4070
4059
  path: z$1.ZodString;
4071
4060
  role: z$1.ZodEnum<{
4072
- schema: "schema";
4073
4061
  config: "config";
4074
4062
  entrypoint: "entrypoint";
4075
4063
  handler: "handler";
4064
+ schema: "schema";
4076
4065
  test: "test";
4077
4066
  docs: "docs";
4078
4067
  }>;
@@ -4100,14 +4089,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4100
4089
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4101
4090
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4102
4091
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4092
+ contract: z$1.ZodOptional<z$1.ZodObject<{
4093
+ input: z$1.ZodOptional<z$1.ZodString>;
4094
+ output: z$1.ZodOptional<z$1.ZodString>;
4095
+ }, z$1.core.$strip>>;
4103
4096
  }, z$1.core.$strip>>;
4104
4097
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
4105
4098
  path: z$1.ZodString;
4106
4099
  role: z$1.ZodEnum<{
4107
- schema: "schema";
4108
4100
  config: "config";
4109
4101
  entrypoint: "entrypoint";
4110
4102
  handler: "handler";
4103
+ schema: "schema";
4111
4104
  test: "test";
4112
4105
  docs: "docs";
4113
4106
  }>;
@@ -4332,6 +4325,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4332
4325
  crm: "crm";
4333
4326
  "lead-gen": "lead-gen";
4334
4327
  projects: "projects";
4328
+ clients: "clients";
4335
4329
  operations: "operations";
4336
4330
  monitoring: "monitoring";
4337
4331
  knowledge: "knowledge";
@@ -4393,11 +4387,10 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4393
4387
  ontology: "ontology";
4394
4388
  role: "role";
4395
4389
  goal: "goal";
4396
- stage: "stage";
4397
4390
  resource: "resource";
4391
+ stage: "stage";
4398
4392
  "customer-segment": "customer-segment";
4399
4393
  offering: "offering";
4400
- "content-node": "content-node";
4401
4394
  }>;
4402
4395
  id: z$1.ZodString;
4403
4396
  }, z$1.core.$strip>;
@@ -4405,7 +4398,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4405
4398
  nodeId: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodTemplateLiteral<`ontology:${string}`>]>;
4406
4399
  }, z$1.core.$strip>]>, z$1.ZodTransform<{
4407
4400
  target: {
4408
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4401
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4409
4402
  id: string;
4410
4403
  };
4411
4404
  nodeId: string;
@@ -4413,7 +4406,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4413
4406
  nodeId: string;
4414
4407
  } | {
4415
4408
  target: {
4416
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4409
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4417
4410
  id: string;
4418
4411
  };
4419
4412
  }>>>>;
@@ -4788,7 +4781,7 @@ interface SystemModule {
4788
4781
  organizationGraph?: OrganizationGraphSystemBridge;
4789
4782
  }
4790
4783
  interface ResolvedSystemAccess {
4791
- featureKey: string;
4784
+ systemKey: string;
4792
4785
  systemId?: string;
4793
4786
  enabled: boolean;
4794
4787
  }
@@ -1,23 +1,18 @@
1
- export { createTestSystemsProvider } from '../chunk-FOUYP4JX.js';
2
- export { ElevasisUIProvider } from '../chunk-53436UTQ.js';
1
+ export { ElevasisUIProvider, createTestSystemsProvider } from '../chunk-BPQVTIUP.js';
3
2
  import '../chunk-RQA2EVN3.js';
4
3
  import '../chunk-3FV6HBXS.js';
5
4
  import '../chunk-WLOQ4IBG.js';
6
- export { SystemShell } from '../chunk-PIS24NIV.js';
7
- import '../chunk-EPTHX4VZ.js';
5
+ export { CrmActionsProvider, ElevasisCoreProvider, ListActionsProvider, NotificationProvider, SystemShell, useCrmActions, useListActions, useNotificationAdapter } from '../chunk-PLP3NYPL.js';
6
+ import '../chunk-HRWLKKWM.js';
8
7
  import '../chunk-3KMDHCAR.js';
9
- export { CrmActionsProvider, ElevasisCoreProvider, ListActionsProvider, NotificationProvider, useCrmActions, useListActions, useNotificationAdapter } from '../chunk-WGUEIGPC.js';
10
- import '../chunk-SZHARWKU.js';
11
- export { ElevasisSystemsProvider, useElevasisSystems, useOptionalElevasisSystems } from '../chunk-WJOE76FI.js';
8
+ export { ElevasisSystemsProvider, useElevasisSystems, useOptionalElevasisSystems } from '../chunk-O6JXQ6UQ.js';
12
9
  import '../chunk-TKAYX2SP.js';
13
10
  import '../chunk-NYBEU5TE.js';
14
- import '../chunk-DWXDNT7P.js';
15
- import '../chunk-DYIDXUJS.js';
11
+ import '../chunk-DTFKWZ7A.js';
16
12
  import '../chunk-ND5TDV2J.js';
17
13
  import '../chunk-2IFYDILW.js';
18
14
  import '../chunk-Q7DJKLEN.js';
19
- import '../chunk-JA5ECJJB.js';
20
- import '../chunk-HUJCU55S.js';
15
+ import '../chunk-VTXTZXAU.js';
21
16
  export { AppearanceProvider, useAppearance } from '../chunk-E565XMTQ.js';
22
17
  import '../chunk-JBWJ6WHZ.js';
23
18
  import '../chunk-DT3QYZVU.js';
@@ -3423,24 +3423,6 @@ type OntologyScope = z$1.infer<typeof OntologyScopeSchema>;
3423
3423
  */
3424
3424
  type TimeRange = '1h' | '24h' | '7d' | '30d';
3425
3425
 
3426
- /**
3427
- * Placeholder discriminated union for ContentNode (Wave 1A).
3428
- * Wave 2A wires concrete (kind, type) pairs via the registry.
3429
- *
3430
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
3431
- * Per L14: every node carries BOTH `kind` and `type`.
3432
- */
3433
- declare const ContentNodeSchema: z$1.ZodObject<{
3434
- label: z$1.ZodString;
3435
- description: z$1.ZodOptional<z$1.ZodString>;
3436
- order: z$1.ZodOptional<z$1.ZodNumber>;
3437
- parentContentId: z$1.ZodOptional<z$1.ZodString>;
3438
- kind: z$1.ZodString;
3439
- type: z$1.ZodString;
3440
- data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3441
- }, z$1.core.$strip>;
3442
- type ContentNode = z$1.infer<typeof ContentNodeSchema>;
3443
-
3444
3426
  type JsonPrimitive = string | number | boolean | null;
3445
3427
  type JsonValue = JsonPrimitive | JsonValue[] | {
3446
3428
  [key: string]: JsonValue;
@@ -3482,11 +3464,6 @@ interface SystemEntry {
3482
3464
  config?: Record<string, JsonValue>;
3483
3465
  ontology?: OntologyScope;
3484
3466
  systems?: Record<string, SystemEntry>;
3485
- /**
3486
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
3487
- * Author new semantic catalogs in `ontology` and local settings in `config`.
3488
- */
3489
- content?: Record<string, ContentNode>;
3490
3467
  subsystems?: Record<string, SystemEntry>;
3491
3468
  }
3492
3469
  declare const SystemEntrySchema: ZodType<SystemEntry>;
@@ -3941,14 +3918,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3941
3918
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3942
3919
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3943
3920
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3921
+ contract: z$1.ZodOptional<z$1.ZodObject<{
3922
+ input: z$1.ZodOptional<z$1.ZodString>;
3923
+ output: z$1.ZodOptional<z$1.ZodString>;
3924
+ }, z$1.core.$strip>>;
3944
3925
  }, z$1.core.$strip>>;
3945
3926
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3946
3927
  path: z$1.ZodString;
3947
3928
  role: z$1.ZodEnum<{
3948
- schema: "schema";
3949
3929
  config: "config";
3950
3930
  entrypoint: "entrypoint";
3951
3931
  handler: "handler";
3932
+ schema: "schema";
3952
3933
  test: "test";
3953
3934
  docs: "docs";
3954
3935
  }>;
@@ -3987,14 +3968,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3987
3968
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3988
3969
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3989
3970
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3971
+ contract: z$1.ZodOptional<z$1.ZodObject<{
3972
+ input: z$1.ZodOptional<z$1.ZodString>;
3973
+ output: z$1.ZodOptional<z$1.ZodString>;
3974
+ }, z$1.core.$strip>>;
3990
3975
  }, z$1.core.$strip>>;
3991
3976
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3992
3977
  path: z$1.ZodString;
3993
3978
  role: z$1.ZodEnum<{
3994
- schema: "schema";
3995
3979
  config: "config";
3996
3980
  entrypoint: "entrypoint";
3997
3981
  handler: "handler";
3982
+ schema: "schema";
3998
3983
  test: "test";
3999
3984
  docs: "docs";
4000
3985
  }>;
@@ -4064,14 +4049,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4064
4049
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4065
4050
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4066
4051
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4052
+ contract: z$1.ZodOptional<z$1.ZodObject<{
4053
+ input: z$1.ZodOptional<z$1.ZodString>;
4054
+ output: z$1.ZodOptional<z$1.ZodString>;
4055
+ }, z$1.core.$strip>>;
4067
4056
  }, z$1.core.$strip>>;
4068
4057
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
4069
4058
  path: z$1.ZodString;
4070
4059
  role: z$1.ZodEnum<{
4071
- schema: "schema";
4072
4060
  config: "config";
4073
4061
  entrypoint: "entrypoint";
4074
4062
  handler: "handler";
4063
+ schema: "schema";
4075
4064
  test: "test";
4076
4065
  docs: "docs";
4077
4066
  }>;
@@ -4099,14 +4088,18 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4099
4088
  writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4100
4089
  usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4101
4090
  emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4091
+ contract: z$1.ZodOptional<z$1.ZodObject<{
4092
+ input: z$1.ZodOptional<z$1.ZodString>;
4093
+ output: z$1.ZodOptional<z$1.ZodString>;
4094
+ }, z$1.core.$strip>>;
4102
4095
  }, z$1.core.$strip>>;
4103
4096
  codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
4104
4097
  path: z$1.ZodString;
4105
4098
  role: z$1.ZodEnum<{
4106
- schema: "schema";
4107
4099
  config: "config";
4108
4100
  entrypoint: "entrypoint";
4109
4101
  handler: "handler";
4102
+ schema: "schema";
4110
4103
  test: "test";
4111
4104
  docs: "docs";
4112
4105
  }>;
@@ -4331,6 +4324,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4331
4324
  crm: "crm";
4332
4325
  "lead-gen": "lead-gen";
4333
4326
  projects: "projects";
4327
+ clients: "clients";
4334
4328
  operations: "operations";
4335
4329
  monitoring: "monitoring";
4336
4330
  knowledge: "knowledge";
@@ -4392,11 +4386,10 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4392
4386
  ontology: "ontology";
4393
4387
  role: "role";
4394
4388
  goal: "goal";
4395
- stage: "stage";
4396
4389
  resource: "resource";
4390
+ stage: "stage";
4397
4391
  "customer-segment": "customer-segment";
4398
4392
  offering: "offering";
4399
- "content-node": "content-node";
4400
4393
  }>;
4401
4394
  id: z$1.ZodString;
4402
4395
  }, z$1.core.$strip>;
@@ -4404,7 +4397,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4404
4397
  nodeId: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodTemplateLiteral<`ontology:${string}`>]>;
4405
4398
  }, z$1.core.$strip>]>, z$1.ZodTransform<{
4406
4399
  target: {
4407
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4400
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4408
4401
  id: string;
4409
4402
  };
4410
4403
  nodeId: string;
@@ -4412,7 +4405,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4412
4405
  nodeId: string;
4413
4406
  } | {
4414
4407
  target: {
4415
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4408
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4416
4409
  id: string;
4417
4410
  };
4418
4411
  }>>>>;
@@ -4751,7 +4744,7 @@ interface SystemModule {
4751
4744
  organizationGraph?: OrganizationGraphSystemBridge;
4752
4745
  }
4753
4746
  interface ResolvedSystemAccess {
4754
- featureKey: string;
4747
+ systemKey: string;
4755
4748
  systemId?: string;
4756
4749
  enabled: boolean;
4757
4750
  }
@@ -1,18 +1,14 @@
1
- export { SystemShell } from '../chunk-PIS24NIV.js';
2
- import '../chunk-EPTHX4VZ.js';
1
+ export { ElevasisCoreProvider, NotificationProvider, SystemShell, useNotificationAdapter } from '../chunk-PLP3NYPL.js';
2
+ import '../chunk-HRWLKKWM.js';
3
3
  import '../chunk-3KMDHCAR.js';
4
- export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from '../chunk-WGUEIGPC.js';
5
- import '../chunk-SZHARWKU.js';
6
- export { ElevasisSystemsProvider, useElevasisSystems, useOptionalElevasisSystems } from '../chunk-WJOE76FI.js';
4
+ export { ElevasisSystemsProvider, useElevasisSystems, useOptionalElevasisSystems } from '../chunk-O6JXQ6UQ.js';
7
5
  import '../chunk-TKAYX2SP.js';
8
6
  import '../chunk-NYBEU5TE.js';
9
- import '../chunk-DWXDNT7P.js';
10
- import '../chunk-DYIDXUJS.js';
7
+ import '../chunk-DTFKWZ7A.js';
11
8
  import '../chunk-ND5TDV2J.js';
12
9
  import '../chunk-2IFYDILW.js';
13
10
  import '../chunk-Q7DJKLEN.js';
14
- import '../chunk-JA5ECJJB.js';
15
- import '../chunk-HUJCU55S.js';
11
+ import '../chunk-VTXTZXAU.js';
16
12
  export { AppearanceProvider, useAppearance } from '../chunk-E565XMTQ.js';
17
13
  import '../chunk-JBWJ6WHZ.js';
18
14
  import '../chunk-DT3QYZVU.js';
@@ -141,6 +141,8 @@ interface OrgOsRouteContractSystem {
141
141
  id: string;
142
142
  lifecycle?: string | null;
143
143
  path?: string | null;
144
+ systems?: Record<string, OrgOsRouteContractSystem> | null;
145
+ subsystems?: Record<string, OrgOsRouteContractSystem> | null;
144
146
  ui?: {
145
147
  path?: string | null;
146
148
  } | null;
@@ -2,7 +2,7 @@ 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-DRQPEMJI.js';
4
4
  export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser } from '../chunk-DRQPEMJI.js';
5
- import '../chunk-XCYKC6OZ.js';
5
+ import '../chunk-3QXJK5IY.js';
6
6
  import { ApiClientProvider } from '../chunk-ND5TDV2J.js';
7
7
  import '../chunk-2RJMVWFJ.js';
8
8
  import '../chunk-KRWALB24.js';
@@ -188,7 +188,19 @@ function ownsOrgOsSystem(ownerSystemId, systemId) {
188
188
  }
189
189
  function getOrgOsRouteContractSystems(organizationModel) {
190
190
  const { systems } = organizationModel;
191
- return "systems" in systems && Array.isArray(systems.systems) ? systems.systems : Object.values(systems);
191
+ const arraySystems = systems.systems;
192
+ if (Array.isArray(arraySystems)) return arraySystems;
193
+ const result = [];
194
+ const visit = (entries, prefix = "") => {
195
+ for (const [key, system] of Object.entries(entries)) {
196
+ const id = prefix ? `${prefix}.${key}` : system.id || key;
197
+ result.push({ ...system, id });
198
+ if (system.systems) visit(system.systems, id);
199
+ if (system.subsystems) visit(system.subsystems, id);
200
+ }
201
+ };
202
+ visit(systems);
203
+ return result;
192
204
  }
193
205
  function collectOrgOsUiRouteContractIssues(options) {
194
206
  const { target, organizationModel, mode = "production" } = options;
@@ -22,6 +22,44 @@ vi.mock("@elevasis/ui/router/context", () => ({
22
22
  }),
23
23
  RouterProvider: ({ children }) => children
24
24
  }));
25
+ vi.doMock("@elevasis/ui/organization", () => ({
26
+ useOrganization: () => ({
27
+ currentWorkOSOrganizationId: "test-org-id",
28
+ currentSupabaseOrganizationId: "test-supabase-org-id",
29
+ currentMembership: { id: "test-membership-id", organizationId: "test-org-id" },
30
+ memberships: [],
31
+ switchOrganization: vi.fn()
32
+ }),
33
+ OrganizationProvider: ({ children }) => children,
34
+ OrganizationSwitcher: () => null
35
+ }));
36
+ var mockApiUrl = "https://api.elevasis.io";
37
+ async function mockApiRequest(endpoint, options = {}) {
38
+ const response = await fetch(`${mockApiUrl}/api${endpoint}`, {
39
+ headers: {
40
+ ...options.body ? { "Content-Type": "application/json" } : {},
41
+ ...options.headers
42
+ },
43
+ ...options
44
+ });
45
+ if (!response.ok) {
46
+ throw new Error(`HTTP ${response.status}`);
47
+ }
48
+ if (response.status === 204) {
49
+ return void 0;
50
+ }
51
+ return response.json();
52
+ }
53
+ vi.doMock("@elevasis/ui/api", () => ({
54
+ useApiClient: () => ({
55
+ apiRequest: mockApiRequest,
56
+ deferredApiRequest: mockApiRequest,
57
+ isOrganizationReady: true,
58
+ isInitializing: false
59
+ }),
60
+ ApiClientProvider: ({ children }) => children,
61
+ useApiClientContext: vi.fn()
62
+ }));
25
63
  var isIntegrationTest = () => {
26
64
  try {
27
65
  return expect.getState().testPath?.includes("integration.test") ?? false;
@@ -435,14 +435,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
435
435
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
436
436
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
437
437
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
438
+ contract: z.ZodOptional<z.ZodObject<{
439
+ input: z.ZodOptional<z.ZodString>;
440
+ output: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strip>>;
438
442
  }, z.core.$strip>>;
439
443
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
440
444
  path: z.ZodString;
441
445
  role: z.ZodEnum<{
442
- schema: "schema";
443
446
  config: "config";
444
447
  entrypoint: "entrypoint";
445
448
  handler: "handler";
449
+ schema: "schema";
446
450
  test: "test";
447
451
  docs: "docs";
448
452
  }>;
@@ -481,14 +485,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
481
485
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
486
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
483
487
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
488
+ contract: z.ZodOptional<z.ZodObject<{
489
+ input: z.ZodOptional<z.ZodString>;
490
+ output: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strip>>;
484
492
  }, z.core.$strip>>;
485
493
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
486
494
  path: z.ZodString;
487
495
  role: z.ZodEnum<{
488
- schema: "schema";
489
496
  config: "config";
490
497
  entrypoint: "entrypoint";
491
498
  handler: "handler";
499
+ schema: "schema";
492
500
  test: "test";
493
501
  docs: "docs";
494
502
  }>;
@@ -558,14 +566,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
558
566
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
559
567
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
560
568
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
569
+ contract: z.ZodOptional<z.ZodObject<{
570
+ input: z.ZodOptional<z.ZodString>;
571
+ output: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strip>>;
561
573
  }, z.core.$strip>>;
562
574
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
563
575
  path: z.ZodString;
564
576
  role: z.ZodEnum<{
565
- schema: "schema";
566
577
  config: "config";
567
578
  entrypoint: "entrypoint";
568
579
  handler: "handler";
580
+ schema: "schema";
569
581
  test: "test";
570
582
  docs: "docs";
571
583
  }>;
@@ -593,14 +605,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
593
605
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
594
606
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
595
607
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
608
+ contract: z.ZodOptional<z.ZodObject<{
609
+ input: z.ZodOptional<z.ZodString>;
610
+ output: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strip>>;
596
612
  }, z.core.$strip>>;
597
613
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
598
614
  path: z.ZodString;
599
615
  role: z.ZodEnum<{
600
- schema: "schema";
601
616
  config: "config";
602
617
  entrypoint: "entrypoint";
603
618
  handler: "handler";
619
+ schema: "schema";
604
620
  test: "test";
605
621
  docs: "docs";
606
622
  }>;
@@ -4873,24 +4889,6 @@ type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefini
4873
4889
  */
4874
4890
  type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
4875
4891
 
4876
- /**
4877
- * Placeholder discriminated union for ContentNode (Wave 1A).
4878
- * Wave 2A wires concrete (kind, type) pairs via the registry.
4879
- *
4880
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
4881
- * Per L14: every node carries BOTH `kind` and `type`.
4882
- */
4883
- declare const ContentNodeSchema: z.ZodObject<{
4884
- label: z.ZodString;
4885
- description: z.ZodOptional<z.ZodString>;
4886
- order: z.ZodOptional<z.ZodNumber>;
4887
- parentContentId: z.ZodOptional<z.ZodString>;
4888
- kind: z.ZodString;
4889
- type: z.ZodString;
4890
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4891
- }, z.core.$strip>;
4892
- type ContentNode = z.infer<typeof ContentNodeSchema>;
4893
-
4894
4892
  type JsonPrimitive = string | number | boolean | null;
4895
4893
  type JsonValue = JsonPrimitive | JsonValue[] | {
4896
4894
  [key: string]: JsonValue;
@@ -4932,11 +4930,6 @@ interface SystemEntry {
4932
4930
  config?: Record<string, JsonValue>;
4933
4931
  ontology?: OntologyScope;
4934
4932
  systems?: Record<string, SystemEntry>;
4935
- /**
4936
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
4937
- * Author new semantic catalogs in `ontology` and local settings in `config`.
4938
- */
4939
- content?: Record<string, ContentNode>;
4940
4933
  subsystems?: Record<string, SystemEntry>;
4941
4934
  }
4942
4935
 
@@ -202,24 +202,6 @@ declare const ResourceStatusColors: {
202
202
  readonly prod: "var(--color-success)";
203
203
  };
204
204
 
205
- /**
206
- * Placeholder discriminated union for ContentNode (Wave 1A).
207
- * Wave 2A wires concrete (kind, type) pairs via the registry.
208
- *
209
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
210
- * Per L14: every node carries BOTH `kind` and `type`.
211
- */
212
- declare const ContentNodeSchema: z.ZodObject<{
213
- label: z.ZodString;
214
- description: z.ZodOptional<z.ZodString>;
215
- order: z.ZodOptional<z.ZodNumber>;
216
- parentContentId: z.ZodOptional<z.ZodString>;
217
- kind: z.ZodString;
218
- type: z.ZodString;
219
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
220
- }, z.core.$strip>;
221
- type ContentNode = z.infer<typeof ContentNodeSchema>;
222
-
223
205
  type JsonPrimitive = string | number | boolean | null;
224
206
  type JsonValue = JsonPrimitive | JsonValue[] | {
225
207
  [key: string]: JsonValue;
@@ -261,11 +243,6 @@ interface SystemEntry {
261
243
  config?: Record<string, JsonValue>;
262
244
  ontology?: OntologyScope;
263
245
  systems?: Record<string, SystemEntry>;
264
- /**
265
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
266
- * Author new semantic catalogs in `ontology` and local settings in `config`.
267
- */
268
- content?: Record<string, ContentNode>;
269
246
  subsystems?: Record<string, SystemEntry>;
270
247
  }
271
248
 
@@ -1,4 +1,5 @@
1
1
  import { Draft } from 'immer';
2
+ import { UseBoundStore, StoreApi } from 'zustand';
2
3
 
3
4
  interface SSESliceState {
4
5
  sse: {
@@ -68,5 +69,17 @@ declare function resetTimeRangeState(state: Draft<{
68
69
  }>): void;
69
70
  declare function createTimeRangeSlice(set: ImmerSet): TimeRangeSliceState;
70
71
 
71
- export { createSSESlice, createThemeSlice, createTimeRangeSlice, resetSSEState, resetThemeState, resetTimeRangeState };
72
- export type { SSESliceState, ThemeColorScheme, ThemePresetName, ThemeSliceOptions, ThemeSliceState, TimeRangeSliceState };
72
+ interface ElevasisAppState extends SSESliceState, ThemeSliceState, TimeRangeSliceState {
73
+ resetStore: () => void;
74
+ }
75
+ interface CreateElevasisAppStoreOptions {
76
+ defaultPreset?: ThemePresetName;
77
+ defaultColorScheme?: ThemeColorScheme;
78
+ devtoolsName?: string;
79
+ devtoolsEnabled?: boolean;
80
+ }
81
+ type ElevasisAppStore = UseBoundStore<StoreApi<ElevasisAppState>>;
82
+ declare function createElevasisAppStore(options?: CreateElevasisAppStoreOptions): ElevasisAppStore;
83
+
84
+ export { createElevasisAppStore, createSSESlice, createThemeSlice, createTimeRangeSlice, resetSSEState, resetThemeState, resetTimeRangeState };
85
+ export type { CreateElevasisAppStoreOptions, ElevasisAppState, ElevasisAppStore, SSESliceState, ThemeColorScheme, ThemePresetName, ThemeSliceOptions, ThemeSliceState, TimeRangeSliceState };