@elevasis/core 0.22.0 → 0.24.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 (244) hide show
  1. package/dist/index.d.ts +3214 -2501
  2. package/dist/index.js +3112 -1222
  3. package/dist/knowledge/index.d.ts +1108 -1264
  4. package/dist/knowledge/index.js +112 -9
  5. package/dist/organization-model/index.d.ts +3214 -2501
  6. package/dist/organization-model/index.js +3112 -1222
  7. package/dist/test-utils/index.d.ts +985 -1103
  8. package/dist/test-utils/index.js +2464 -1165
  9. package/package.json +5 -5
  10. package/src/README.md +14 -14
  11. package/src/__tests__/publish.test.ts +24 -24
  12. package/src/__tests__/template-core-compatibility.test.ts +9 -80
  13. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +2389 -2121
  14. package/src/_gen/__tests__/scaffold-contracts.test.ts +30 -30
  15. package/src/auth/multi-tenancy/credentials/__tests__/encryption.test.ts +217 -217
  16. package/src/auth/multi-tenancy/credentials/server/encryption.ts +69 -69
  17. package/src/auth/multi-tenancy/credentials/server/kek-loader.ts +37 -37
  18. package/src/auth/multi-tenancy/index.ts +26 -26
  19. package/src/auth/multi-tenancy/invitations/api-schemas.ts +104 -104
  20. package/src/auth/multi-tenancy/memberships/api-schemas.ts +143 -143
  21. package/src/auth/multi-tenancy/memberships/index.ts +26 -26
  22. package/src/auth/multi-tenancy/memberships/membership.ts +130 -130
  23. package/src/auth/multi-tenancy/organizations/__tests__/api-schemas.test.ts +194 -194
  24. package/src/auth/multi-tenancy/organizations/api-schemas.ts +136 -136
  25. package/src/auth/multi-tenancy/permissions.test.ts +42 -42
  26. package/src/auth/multi-tenancy/permissions.ts +123 -123
  27. package/src/auth/multi-tenancy/role-management/api-schemas.ts +78 -78
  28. package/src/auth/multi-tenancy/role-management/index.ts +16 -16
  29. package/src/auth/multi-tenancy/theme-presets.ts +45 -45
  30. package/src/auth/multi-tenancy/types.ts +57 -57
  31. package/src/auth/multi-tenancy/users/api-schemas.ts +165 -165
  32. package/src/business/README.md +2 -2
  33. package/src/business/acquisition/activity-events.test.ts +250 -250
  34. package/src/business/acquisition/activity-events.ts +93 -93
  35. package/src/business/acquisition/api-schemas.test.ts +1883 -1843
  36. package/src/business/acquisition/api-schemas.ts +1493 -1500
  37. package/src/business/acquisition/build-templates.test.ts +240 -240
  38. package/src/business/acquisition/build-templates.ts +83 -41
  39. package/src/business/acquisition/crm-next-action.test.ts +262 -262
  40. package/src/business/acquisition/crm-next-action.ts +220 -220
  41. package/src/business/acquisition/crm-priority.test.ts +216 -216
  42. package/src/business/acquisition/crm-priority.ts +349 -349
  43. package/src/business/acquisition/crm-state-actions.test.ts +153 -151
  44. package/src/business/acquisition/deal-ownership.test.ts +351 -351
  45. package/src/business/acquisition/deal-ownership.ts +120 -120
  46. package/src/business/acquisition/derive-actions.test.ts +129 -104
  47. package/src/business/acquisition/derive-actions.ts +74 -84
  48. package/src/business/acquisition/index.ts +171 -170
  49. package/src/business/acquisition/ontology-validation.ts +309 -0
  50. package/src/business/acquisition/stateful.ts +30 -30
  51. package/src/business/acquisition/types.ts +396 -392
  52. package/src/business/clients/api-schemas.test.ts +115 -115
  53. package/src/business/clients/api-schemas.ts +158 -158
  54. package/src/business/clients/index.ts +1 -1
  55. package/src/business/crm/api-schemas.ts +40 -40
  56. package/src/business/crm/index.ts +1 -1
  57. package/src/business/deals/api-schemas.ts +87 -87
  58. package/src/business/deals/index.ts +1 -1
  59. package/src/business/index.ts +5 -5
  60. package/src/business/projects/types.ts +144 -144
  61. package/src/commands/queue/types/task.ts +15 -15
  62. package/src/execution/core/runner-types.ts +61 -61
  63. package/src/execution/core/sse-executions.ts +7 -7
  64. package/src/execution/engine/__tests__/fixtures/test-agents.ts +10 -10
  65. package/src/execution/engine/agent/core/__tests__/agent.test.ts +16 -16
  66. package/src/execution/engine/agent/core/__tests__/error-passthrough.test.ts +4 -4
  67. package/src/execution/engine/agent/core/types.ts +25 -25
  68. package/src/execution/engine/agent/index.ts +6 -6
  69. package/src/execution/engine/agent/reasoning/__tests__/request-builder.test.ts +24 -24
  70. package/src/execution/engine/index.ts +443 -443
  71. package/src/execution/engine/tools/integration/server/adapters/apify/__tests__/apify-run-actor.integration.test.ts +298 -298
  72. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.test.ts +55 -55
  73. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.ts +107 -107
  74. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.test.ts +48 -48
  75. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.ts +99 -99
  76. package/src/execution/engine/tools/integration/server/adapters/apollo/index.ts +1 -1
  77. package/src/execution/engine/tools/integration/server/adapters/attio/__tests__/attio-crud.integration.test.ts +363 -363
  78. package/src/execution/engine/tools/integration/server/adapters/attio/fetch/get-record/index.test.ts +162 -162
  79. package/src/execution/engine/tools/integration/server/adapters/attio/fetch/list-records/index.test.ts +316 -316
  80. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.test.ts +18 -18
  81. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.ts +194 -194
  82. package/src/execution/engine/tools/integration/server/adapters/clickup/index.ts +7 -7
  83. package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-adapter.ts +204 -204
  84. package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-tools.ts +105 -105
  85. package/src/execution/engine/tools/integration/server/adapters/google-calendar/google-calendar-adapter.ts +428 -428
  86. package/src/execution/engine/tools/integration/server/adapters/google-calendar/index.ts +2 -2
  87. package/src/execution/engine/tools/integration/server/adapters/google-sheets/__tests__/google-sheets.integration.test.ts +261 -261
  88. package/src/execution/engine/tools/integration/server/adapters/instantly/instantly-tools.ts +1474 -1474
  89. package/src/execution/engine/tools/integration/server/adapters/millionverifier/millionverifier-tools.ts +103 -103
  90. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.test.ts +88 -88
  91. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.ts +141 -141
  92. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/utils/types.ts +76 -76
  93. package/src/execution/engine/tools/integration/server/adapters/signature-api/signature-api-tools.ts +182 -182
  94. package/src/execution/engine/tools/integration/server/adapters/stripe/stripe-tools.ts +310 -310
  95. package/src/execution/engine/tools/integration/service.test.ts +239 -239
  96. package/src/execution/engine/tools/integration/service.ts +172 -172
  97. package/src/execution/engine/tools/integration/tool.ts +255 -255
  98. package/src/execution/engine/tools/lead-service-types.ts +1005 -1005
  99. package/src/execution/engine/tools/messages.ts +43 -43
  100. package/src/execution/engine/tools/platform/acquisition/company-tools.ts +7 -7
  101. package/src/execution/engine/tools/platform/acquisition/contact-tools.ts +6 -6
  102. package/src/execution/engine/tools/platform/acquisition/list-tools.ts +6 -6
  103. package/src/execution/engine/tools/platform/acquisition/types.ts +280 -280
  104. package/src/execution/engine/tools/platform/email/types.ts +97 -97
  105. package/src/execution/engine/tools/registry.ts +704 -704
  106. package/src/execution/engine/tools/tool-maps.ts +831 -831
  107. package/src/execution/engine/tools/types.ts +234 -234
  108. package/src/execution/engine/workflow/types.ts +202 -202
  109. package/src/execution/external/__tests__/api-schemas.test.ts +127 -127
  110. package/src/execution/external/api-schemas.ts +40 -40
  111. package/src/execution/external/index.ts +1 -1
  112. package/src/index.ts +18 -18
  113. package/src/integrations/credentials/__tests__/api-schemas.test.ts +420 -420
  114. package/src/integrations/credentials/api-schemas.ts +146 -146
  115. package/src/integrations/credentials/schemas.ts +200 -200
  116. package/src/integrations/oauth/__tests__/provider-registry.test.ts +7 -7
  117. package/src/integrations/oauth/provider-registry.ts +74 -74
  118. package/src/integrations/oauth/server/credentials.ts +43 -43
  119. package/src/integrations/webhook-endpoints/__tests__/api-schemas.test.ts +327 -327
  120. package/src/integrations/webhook-endpoints/api-schemas.ts +103 -103
  121. package/src/integrations/webhook-endpoints/types.ts +58 -58
  122. package/src/knowledge/README.md +33 -32
  123. package/src/knowledge/__tests__/queries.test.ts +633 -541
  124. package/src/knowledge/format.ts +100 -99
  125. package/src/knowledge/index.ts +5 -5
  126. package/src/knowledge/published.ts +5 -5
  127. package/src/knowledge/queries.ts +274 -222
  128. package/src/operations/activities/api-schemas.ts +80 -80
  129. package/src/operations/activities/types.ts +64 -64
  130. package/src/organization-model/README.md +149 -109
  131. package/src/organization-model/__tests__/content-kinds-registry.test.ts +210 -0
  132. package/src/organization-model/__tests__/defaults.test.ts +168 -194
  133. package/src/organization-model/__tests__/domains/actions.test.ts +78 -0
  134. package/src/organization-model/__tests__/domains/customers.test.ts +48 -44
  135. package/src/organization-model/__tests__/domains/entities.test.ts +56 -0
  136. package/src/organization-model/__tests__/domains/goals.test.ts +110 -96
  137. package/src/organization-model/__tests__/domains/identity.test.ts +4 -3
  138. package/src/organization-model/__tests__/domains/navigation.test.ts +222 -166
  139. package/src/organization-model/__tests__/domains/offerings.test.ts +83 -88
  140. package/src/organization-model/__tests__/domains/policies.test.ts +323 -0
  141. package/src/organization-model/__tests__/domains/resource-mappings.test.ts +30 -30
  142. package/src/organization-model/__tests__/domains/resources.test.ts +396 -175
  143. package/src/organization-model/__tests__/domains/roles.test.ts +463 -402
  144. package/src/organization-model/__tests__/domains/statuses.test.ts +13 -10
  145. package/src/organization-model/__tests__/domains/systems.test.ts +209 -193
  146. package/src/organization-model/__tests__/flatten-additive-merge.test.ts +362 -0
  147. package/src/organization-model/__tests__/foundation.test.ts +47 -75
  148. package/src/organization-model/__tests__/get-resources-for-system.test.ts +144 -0
  149. package/src/organization-model/__tests__/graph.test.ts +1336 -149
  150. package/src/organization-model/__tests__/icons.test.ts +10 -1
  151. package/src/organization-model/__tests__/knowledge.test.ts +418 -61
  152. package/src/organization-model/__tests__/lookup-helpers.test.ts +438 -0
  153. package/src/organization-model/__tests__/migration-helpers.test.ts +591 -0
  154. package/src/organization-model/__tests__/prospecting-ssot.test.ts +103 -94
  155. package/src/organization-model/__tests__/recursive-system-schema.test.ts +549 -0
  156. package/src/organization-model/__tests__/resolve.test.ts +303 -42
  157. package/src/organization-model/__tests__/schema.test.ts +863 -153
  158. package/src/organization-model/__tests__/surface-projection.test.ts +284 -174
  159. package/src/organization-model/catalogs/lead-gen.ts +144 -0
  160. package/src/organization-model/content-kinds/config.ts +36 -0
  161. package/src/organization-model/content-kinds/index.ts +78 -0
  162. package/src/organization-model/content-kinds/pipeline.ts +68 -0
  163. package/src/organization-model/content-kinds/registry.ts +44 -0
  164. package/src/organization-model/content-kinds/status.ts +71 -0
  165. package/src/organization-model/content-kinds/template.ts +83 -0
  166. package/src/organization-model/content-kinds/types.ts +117 -0
  167. package/src/organization-model/contracts.ts +27 -17
  168. package/src/organization-model/defaults.ts +489 -107
  169. package/src/organization-model/domains/actions.ts +333 -0
  170. package/src/organization-model/domains/customers.ts +10 -7
  171. package/src/organization-model/domains/entities.ts +144 -0
  172. package/src/organization-model/domains/goals.ts +9 -6
  173. package/src/organization-model/domains/knowledge.ts +128 -54
  174. package/src/organization-model/domains/navigation.ts +139 -416
  175. package/src/organization-model/domains/offerings.ts +15 -10
  176. package/src/organization-model/domains/policies.ts +102 -0
  177. package/src/organization-model/domains/projects.ts +6 -40
  178. package/src/organization-model/domains/prospecting.ts +395 -514
  179. package/src/organization-model/domains/resources.ts +173 -81
  180. package/src/organization-model/domains/roles.ts +96 -93
  181. package/src/organization-model/domains/sales.test.ts +218 -218
  182. package/src/organization-model/domains/sales.ts +380 -589
  183. package/src/organization-model/domains/shared.ts +8 -8
  184. package/src/organization-model/domains/statuses.ts +298 -89
  185. package/src/organization-model/domains/systems.ts +240 -38
  186. package/src/organization-model/foundation.ts +35 -48
  187. package/src/organization-model/graph/build.ts +1035 -279
  188. package/src/organization-model/graph/index.ts +4 -4
  189. package/src/organization-model/graph/link.ts +10 -10
  190. package/src/organization-model/graph/schema.ts +77 -56
  191. package/src/organization-model/graph/types.ts +75 -56
  192. package/src/organization-model/helpers.ts +312 -59
  193. package/src/organization-model/icons.ts +78 -66
  194. package/src/organization-model/index.ts +129 -16
  195. package/src/organization-model/migration-helpers.ts +252 -0
  196. package/src/organization-model/ontology.ts +661 -0
  197. package/src/organization-model/organization-graph.mdx +110 -89
  198. package/src/organization-model/organization-model.mdx +226 -171
  199. package/src/organization-model/published.ts +295 -139
  200. package/src/organization-model/resolve.ts +139 -21
  201. package/src/organization-model/schema.ts +841 -301
  202. package/src/organization-model/surface-projection.ts +212 -218
  203. package/src/organization-model/types.ts +181 -90
  204. package/src/platform/api/types.ts +38 -38
  205. package/src/platform/constants/versions.ts +3 -3
  206. package/src/platform/index.ts +23 -23
  207. package/src/platform/registry/__tests__/command-view.test.ts +5 -7
  208. package/src/platform/registry/__tests__/resource-link.test.ts +35 -30
  209. package/src/platform/registry/__tests__/resource-registry.integration.test.ts +17 -32
  210. package/src/platform/registry/__tests__/resource-registry.nested-systems.test.ts +245 -0
  211. package/src/platform/registry/__tests__/resource-registry.test.ts +2053 -2051
  212. package/src/platform/registry/__tests__/validation.test.ts +1347 -1343
  213. package/src/platform/registry/command-view.ts +10 -10
  214. package/src/platform/registry/index.ts +103 -103
  215. package/src/platform/registry/resource-link.ts +32 -32
  216. package/src/platform/registry/resource-registry.ts +890 -878
  217. package/src/platform/registry/serialization.ts +295 -295
  218. package/src/platform/registry/serialized-types.ts +166 -166
  219. package/src/platform/registry/stats-types.ts +68 -68
  220. package/src/platform/registry/types.ts +425 -425
  221. package/src/platform/registry/validation.ts +745 -743
  222. package/src/platform/utils/__tests__/validation.test.ts +1084 -1084
  223. package/src/platform/utils/validation.ts +425 -425
  224. package/src/projects/api-schemas.test.ts +39 -39
  225. package/src/projects/api-schemas.ts +291 -291
  226. package/src/reference/_generated/contracts.md +2389 -2121
  227. package/src/reference/glossary.md +76 -76
  228. package/src/scaffold-registry/__tests__/index.test.ts +206 -206
  229. package/src/scaffold-registry/__tests__/schema.test.ts +166 -166
  230. package/src/scaffold-registry/index.ts +392 -392
  231. package/src/scaffold-registry/schema.ts +243 -243
  232. package/src/server.ts +289 -289
  233. package/src/supabase/database.types.ts +3153 -3093
  234. package/src/test-utils/README.md +37 -37
  235. package/src/test-utils/entities.ts +108 -108
  236. package/src/test-utils/fixtures/memberships.ts +82 -82
  237. package/src/test-utils/index.ts +12 -12
  238. package/src/test-utils/organization-model.ts +65 -65
  239. package/src/test-utils/published.ts +6 -6
  240. package/src/test-utils/rls/RLSTestContext.ts +588 -588
  241. package/src/test-utils/test-utils.test.ts +44 -49
  242. package/src/organization-model/__tests__/domains/operations.test.ts +0 -203
  243. package/src/organization-model/domains/features.ts +0 -31
  244. package/src/organization-model/domains/operations.ts +0 -85
@@ -2769,6 +2769,66 @@ type Database = {
2769
2769
  }
2770
2770
  ];
2771
2771
  };
2772
+ user_notes: {
2773
+ Row: {
2774
+ content: string;
2775
+ created_at: string;
2776
+ created_by: string;
2777
+ id: string;
2778
+ metadata: Json;
2779
+ organization_id: string | null;
2780
+ pinned: boolean;
2781
+ priority: string;
2782
+ source: string | null;
2783
+ title: string | null;
2784
+ updated_at: string;
2785
+ user_id: string;
2786
+ };
2787
+ Insert: {
2788
+ content: string;
2789
+ created_at?: string;
2790
+ created_by?: string;
2791
+ id?: string;
2792
+ metadata?: Json;
2793
+ organization_id?: string | null;
2794
+ pinned?: boolean;
2795
+ priority?: string;
2796
+ source?: string | null;
2797
+ title?: string | null;
2798
+ updated_at?: string;
2799
+ user_id: string;
2800
+ };
2801
+ Update: {
2802
+ content?: string;
2803
+ created_at?: string;
2804
+ created_by?: string;
2805
+ id?: string;
2806
+ metadata?: Json;
2807
+ organization_id?: string | null;
2808
+ pinned?: boolean;
2809
+ priority?: string;
2810
+ source?: string | null;
2811
+ title?: string | null;
2812
+ updated_at?: string;
2813
+ user_id?: string;
2814
+ };
2815
+ Relationships: [
2816
+ {
2817
+ foreignKeyName: "user_notes_organization_id_fkey";
2818
+ columns: ["organization_id"];
2819
+ isOneToOne: false;
2820
+ referencedRelation: "organizations";
2821
+ referencedColumns: ["id"];
2822
+ },
2823
+ {
2824
+ foreignKeyName: "user_notes_user_id_fkey";
2825
+ columns: ["user_id"];
2826
+ isOneToOne: false;
2827
+ referencedRelation: "users";
2828
+ referencedColumns: ["id"];
2829
+ }
2830
+ ];
2831
+ };
2772
2832
  users: {
2773
2833
  Row: {
2774
2834
  config: Json;
@@ -3514,89 +3574,364 @@ declare function makeContact(overrides?: Partial<BaseContactFixture>): BaseConta
3514
3574
  declare function makeMilestone(overrides?: Partial<BaseMilestoneFixture>): BaseMilestoneFixture;
3515
3575
  declare function makeTask(overrides?: Partial<BaseTaskFixture>): BaseTaskFixture;
3516
3576
 
3517
- declare const OrganizationModelSchema: z.ZodObject<{
3518
- version: z.ZodDefault<z.ZodLiteral<1>>;
3519
- features: z.ZodDefault<z.ZodArray<z.ZodObject<{
3577
+ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
3578
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3520
3579
  id: z.ZodString;
3521
- label: z.ZodString;
3580
+ label: z.ZodOptional<z.ZodString>;
3522
3581
  description: z.ZodOptional<z.ZodString>;
3523
- enabled: z.ZodDefault<z.ZodBoolean>;
3524
- path: z.ZodOptional<z.ZodString>;
3525
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3526
- "nav.dashboard": "nav.dashboard";
3527
- "nav.calendar": "nav.calendar";
3528
- "nav.sales": "nav.sales";
3529
- "nav.crm": "nav.crm";
3530
- "nav.lead-gen": "nav.lead-gen";
3531
- "nav.projects": "nav.projects";
3532
- "nav.operations": "nav.operations";
3533
- "nav.monitoring": "nav.monitoring";
3534
- "nav.knowledge": "nav.knowledge";
3535
- "nav.settings": "nav.settings";
3536
- "nav.admin": "nav.admin";
3537
- "nav.archive": "nav.archive";
3538
- "knowledge.playbook": "knowledge.playbook";
3539
- "knowledge.strategy": "knowledge.strategy";
3540
- "knowledge.reference": "knowledge.reference";
3541
- "feature.dashboard": "feature.dashboard";
3542
- "feature.calendar": "feature.calendar";
3543
- "feature.business": "feature.business";
3544
- "feature.sales": "feature.sales";
3545
- "feature.crm": "feature.crm";
3546
- "feature.finance": "feature.finance";
3547
- "feature.lead-gen": "feature.lead-gen";
3548
- "feature.platform": "feature.platform";
3549
- "feature.projects": "feature.projects";
3550
- "feature.operations": "feature.operations";
3551
- "feature.knowledge": "feature.knowledge";
3552
- "feature.monitoring": "feature.monitoring";
3553
- "feature.settings": "feature.settings";
3554
- "feature.admin": "feature.admin";
3555
- "feature.archive": "feature.archive";
3556
- "feature.seo": "feature.seo";
3557
- "resource.agent": "resource.agent";
3558
- "resource.workflow": "resource.workflow";
3559
- "resource.integration": "resource.integration";
3560
- "resource.database": "resource.database";
3561
- "resource.user": "resource.user";
3562
- "resource.team": "resource.team";
3563
- "integration.gmail": "integration.gmail";
3564
- "integration.google-sheets": "integration.google-sheets";
3565
- "integration.attio": "integration.attio";
3566
- "surface.dashboard": "surface.dashboard";
3567
- "surface.calendar": "surface.calendar";
3568
- "surface.overview": "surface.overview";
3569
- "surface.command-view": "surface.command-view";
3570
- "surface.command-queue": "surface.command-queue";
3571
- "surface.pipeline": "surface.pipeline";
3572
- "surface.lists": "surface.lists";
3573
- "surface.resources": "surface.resources";
3574
- "surface.settings": "surface.settings";
3575
- "status.success": "status.success";
3576
- "status.error": "status.error";
3577
- "status.warning": "status.warning";
3578
- "status.info": "status.info";
3579
- "status.pending": "status.pending";
3580
- "action.approve": "action.approve";
3581
- "action.reject": "action.reject";
3582
- "action.retry": "action.retry";
3583
- "action.edit": "action.edit";
3584
- "action.view": "action.view";
3585
- "action.launch": "action.launch";
3586
- "action.message": "action.message";
3587
- "action.escalate": "action.escalate";
3588
- "action.promote": "action.promote";
3589
- "action.submit": "action.submit";
3590
- "action.email": "action.email";
3591
- }>, z.ZodString]>>;
3592
- color: z.ZodOptional<z.ZodString>;
3593
- uiPosition: z.ZodOptional<z.ZodEnum<{
3594
- "sidebar-primary": "sidebar-primary";
3595
- "sidebar-bottom": "sidebar-bottom";
3596
- }>>;
3597
- requiresAdmin: z.ZodOptional<z.ZodBoolean>;
3598
- devOnly: z.ZodOptional<z.ZodBoolean>;
3599
- }, z.core.$strip>>>;
3582
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3583
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3584
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3585
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3586
+ }, z.core.$loose>>>>;
3587
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3588
+ id: z.ZodString;
3589
+ label: z.ZodOptional<z.ZodString>;
3590
+ description: z.ZodOptional<z.ZodString>;
3591
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3592
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3593
+ from: z.ZodString;
3594
+ to: z.ZodString;
3595
+ cardinality: z.ZodOptional<z.ZodString>;
3596
+ via: z.ZodOptional<z.ZodString>;
3597
+ }, z.core.$loose>>>>;
3598
+ actionTypes: 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
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
3605
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3606
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3607
+ }, z.core.$loose>>>>;
3608
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3609
+ id: z.ZodString;
3610
+ label: z.ZodOptional<z.ZodString>;
3611
+ description: z.ZodOptional<z.ZodString>;
3612
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3613
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3614
+ kind: z.ZodOptional<z.ZodString>;
3615
+ appliesTo: z.ZodOptional<z.ZodString>;
3616
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3617
+ }, z.core.$loose>>>>;
3618
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3619
+ id: z.ZodString;
3620
+ label: z.ZodOptional<z.ZodString>;
3621
+ description: z.ZodOptional<z.ZodString>;
3622
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3623
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3624
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3625
+ }, z.core.$loose>>>>;
3626
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3627
+ id: z.ZodString;
3628
+ label: z.ZodOptional<z.ZodString>;
3629
+ description: z.ZodOptional<z.ZodString>;
3630
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3631
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3632
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3633
+ }, z.core.$loose>>>>;
3634
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3635
+ id: z.ZodString;
3636
+ label: z.ZodOptional<z.ZodString>;
3637
+ description: z.ZodOptional<z.ZodString>;
3638
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3639
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3640
+ primitive: z.ZodOptional<z.ZodString>;
3641
+ }, z.core.$loose>>>>;
3642
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3643
+ id: z.ZodString;
3644
+ label: z.ZodOptional<z.ZodString>;
3645
+ description: z.ZodOptional<z.ZodString>;
3646
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3647
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3648
+ valueType: z.ZodOptional<z.ZodString>;
3649
+ searchable: z.ZodOptional<z.ZodBoolean>;
3650
+ pii: z.ZodOptional<z.ZodBoolean>;
3651
+ }, z.core.$loose>>>>;
3652
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3653
+ id: z.ZodString;
3654
+ label: z.ZodOptional<z.ZodString>;
3655
+ description: z.ZodOptional<z.ZodString>;
3656
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3657
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3658
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
3659
+ }, z.core.$loose>>>>;
3660
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3661
+ id: z.ZodString;
3662
+ label: z.ZodOptional<z.ZodString>;
3663
+ description: z.ZodOptional<z.ZodString>;
3664
+ ownerSystemId: z.ZodOptional<z.ZodString>;
3665
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
3666
+ route: z.ZodOptional<z.ZodString>;
3667
+ }, z.core.$loose>>>>;
3668
+ }, z.core.$strip>>;
3669
+ type OntologyScope = z.infer<typeof OntologyScopeSchema>;
3670
+
3671
+ declare const SurfaceTypeSchema: z.ZodEnum<{
3672
+ dashboard: "dashboard";
3673
+ settings: "settings";
3674
+ graph: "graph";
3675
+ list: "list";
3676
+ page: "page";
3677
+ detail: "detail";
3678
+ }>;
3679
+ interface SidebarSurfaceNode {
3680
+ type: 'surface';
3681
+ label: string;
3682
+ path: string;
3683
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
3684
+ description?: string;
3685
+ icon?: string;
3686
+ order?: number;
3687
+ targets?: {
3688
+ systems?: string[];
3689
+ entities?: string[];
3690
+ resources?: string[];
3691
+ actions?: string[];
3692
+ };
3693
+ devOnly?: boolean;
3694
+ requiresAdmin?: boolean;
3695
+ }
3696
+ interface SidebarGroupNode {
3697
+ type: 'group';
3698
+ label: string;
3699
+ description?: string;
3700
+ icon?: string;
3701
+ order?: number;
3702
+ children: Record<string, SidebarNode>;
3703
+ }
3704
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
3705
+
3706
+ /**
3707
+ * Placeholder discriminated union for ContentNode (Wave 1A).
3708
+ * Wave 2A wires concrete (kind, type) pairs via the registry.
3709
+ *
3710
+ * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
3711
+ * Per L14: every node carries BOTH `kind` and `type`.
3712
+ */
3713
+ declare const ContentNodeSchema: z.ZodObject<{
3714
+ label: z.ZodString;
3715
+ description: z.ZodOptional<z.ZodString>;
3716
+ order: z.ZodOptional<z.ZodNumber>;
3717
+ parentContentId: z.ZodOptional<z.ZodString>;
3718
+ kind: z.ZodString;
3719
+ type: z.ZodString;
3720
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3721
+ }, z.core.$strip>;
3722
+ type ContentNode = z.infer<typeof ContentNodeSchema>;
3723
+
3724
+ type JsonPrimitive = string | number | boolean | null;
3725
+ type JsonValue = JsonPrimitive | JsonValue[] | {
3726
+ [key: string]: JsonValue;
3727
+ };
3728
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
3729
+ interface SystemEntry {
3730
+ id: string;
3731
+ label?: string;
3732
+ title?: string;
3733
+ description?: string;
3734
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
3735
+ parentSystemId?: string;
3736
+ ui?: {
3737
+ path: string;
3738
+ surfaces: string[];
3739
+ icon?: string;
3740
+ order?: number;
3741
+ };
3742
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
3743
+ responsibleRoleId?: string;
3744
+ governedByKnowledge?: string[];
3745
+ actions?: {
3746
+ actionId: string;
3747
+ intent: 'exposes' | 'consumes';
3748
+ invocation?: unknown;
3749
+ }[];
3750
+ policies?: string[];
3751
+ drivesGoals?: string[];
3752
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
3753
+ status?: 'active' | 'deprecated' | 'archived';
3754
+ path?: string;
3755
+ icon?: string;
3756
+ color?: string;
3757
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
3758
+ enabled?: boolean;
3759
+ devOnly?: boolean;
3760
+ requiresAdmin?: boolean;
3761
+ order: number;
3762
+ config?: Record<string, JsonValue>;
3763
+ ontology?: OntologyScope;
3764
+ systems?: Record<string, SystemEntry>;
3765
+ /**
3766
+ * @deprecated Compatibility-only bridge for old tenant data and migration readers.
3767
+ * Author new semantic catalogs in `ontology` and local settings in `config`.
3768
+ */
3769
+ content?: Record<string, ContentNode>;
3770
+ subsystems?: Record<string, SystemEntry>;
3771
+ }
3772
+
3773
+ declare const OrganizationModelSchema: z.ZodObject<{
3774
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3775
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
3776
+ branding: z.ZodOptional<z.ZodObject<{
3777
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3778
+ lastModified: z.ZodString;
3779
+ }, z.core.$strip>>;
3780
+ identity: z.ZodOptional<z.ZodObject<{
3781
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3782
+ lastModified: z.ZodString;
3783
+ }, z.core.$strip>>;
3784
+ customers: z.ZodOptional<z.ZodObject<{
3785
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3786
+ lastModified: z.ZodString;
3787
+ }, z.core.$strip>>;
3788
+ offerings: z.ZodOptional<z.ZodObject<{
3789
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3790
+ lastModified: z.ZodString;
3791
+ }, z.core.$strip>>;
3792
+ roles: z.ZodOptional<z.ZodObject<{
3793
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3794
+ lastModified: z.ZodString;
3795
+ }, z.core.$strip>>;
3796
+ goals: z.ZodOptional<z.ZodObject<{
3797
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3798
+ lastModified: z.ZodString;
3799
+ }, z.core.$strip>>;
3800
+ systems: z.ZodOptional<z.ZodObject<{
3801
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3802
+ lastModified: z.ZodString;
3803
+ }, z.core.$strip>>;
3804
+ ontology: z.ZodOptional<z.ZodObject<{
3805
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3806
+ lastModified: z.ZodString;
3807
+ }, z.core.$strip>>;
3808
+ resources: z.ZodOptional<z.ZodObject<{
3809
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3810
+ lastModified: z.ZodString;
3811
+ }, z.core.$strip>>;
3812
+ actions: z.ZodOptional<z.ZodObject<{
3813
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3814
+ lastModified: z.ZodString;
3815
+ }, z.core.$strip>>;
3816
+ entities: z.ZodOptional<z.ZodObject<{
3817
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3818
+ lastModified: z.ZodString;
3819
+ }, z.core.$strip>>;
3820
+ policies: z.ZodOptional<z.ZodObject<{
3821
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3822
+ lastModified: z.ZodString;
3823
+ }, z.core.$strip>>;
3824
+ knowledge: z.ZodOptional<z.ZodObject<{
3825
+ version: z.ZodDefault<z.ZodLiteral<1>>;
3826
+ lastModified: z.ZodString;
3827
+ }, z.core.$strip>>;
3828
+ }, z.core.$strip>>, z.ZodTransform<{
3829
+ branding: {
3830
+ version: 1;
3831
+ lastModified: string;
3832
+ };
3833
+ identity: {
3834
+ version: 1;
3835
+ lastModified: string;
3836
+ };
3837
+ customers: {
3838
+ version: 1;
3839
+ lastModified: string;
3840
+ };
3841
+ offerings: {
3842
+ version: 1;
3843
+ lastModified: string;
3844
+ };
3845
+ roles: {
3846
+ version: 1;
3847
+ lastModified: string;
3848
+ };
3849
+ goals: {
3850
+ version: 1;
3851
+ lastModified: string;
3852
+ };
3853
+ systems: {
3854
+ version: 1;
3855
+ lastModified: string;
3856
+ };
3857
+ ontology: {
3858
+ version: 1;
3859
+ lastModified: string;
3860
+ };
3861
+ resources: {
3862
+ version: 1;
3863
+ lastModified: string;
3864
+ };
3865
+ actions: {
3866
+ version: 1;
3867
+ lastModified: string;
3868
+ };
3869
+ entities: {
3870
+ version: 1;
3871
+ lastModified: string;
3872
+ };
3873
+ policies: {
3874
+ version: 1;
3875
+ lastModified: string;
3876
+ };
3877
+ knowledge: {
3878
+ version: 1;
3879
+ lastModified: string;
3880
+ };
3881
+ }, {
3882
+ branding?: {
3883
+ version: 1;
3884
+ lastModified: string;
3885
+ } | undefined;
3886
+ identity?: {
3887
+ version: 1;
3888
+ lastModified: string;
3889
+ } | undefined;
3890
+ customers?: {
3891
+ version: 1;
3892
+ lastModified: string;
3893
+ } | undefined;
3894
+ offerings?: {
3895
+ version: 1;
3896
+ lastModified: string;
3897
+ } | undefined;
3898
+ roles?: {
3899
+ version: 1;
3900
+ lastModified: string;
3901
+ } | undefined;
3902
+ goals?: {
3903
+ version: 1;
3904
+ lastModified: string;
3905
+ } | undefined;
3906
+ systems?: {
3907
+ version: 1;
3908
+ lastModified: string;
3909
+ } | undefined;
3910
+ ontology?: {
3911
+ version: 1;
3912
+ lastModified: string;
3913
+ } | undefined;
3914
+ resources?: {
3915
+ version: 1;
3916
+ lastModified: string;
3917
+ } | undefined;
3918
+ actions?: {
3919
+ version: 1;
3920
+ lastModified: string;
3921
+ } | undefined;
3922
+ entities?: {
3923
+ version: 1;
3924
+ lastModified: string;
3925
+ } | undefined;
3926
+ policies?: {
3927
+ version: 1;
3928
+ lastModified: string;
3929
+ } | undefined;
3930
+ knowledge?: {
3931
+ version: 1;
3932
+ lastModified: string;
3933
+ } | undefined;
3934
+ }>>;
3600
3935
  branding: z.ZodObject<{
3601
3936
  organizationName: z.ZodString;
3602
3937
  productName: z.ZodString;
@@ -3608,793 +3943,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
3608
3943
  }, z.core.$strip>>;
3609
3944
  }, z.core.$strip>;
3610
3945
  navigation: z.ZodDefault<z.ZodObject<{
3611
- defaultSurfaceId: z.ZodOptional<z.ZodString>;
3612
- surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
3613
- id: z.ZodString;
3614
- label: z.ZodString;
3615
- path: z.ZodString;
3616
- surfaceType: z.ZodEnum<{
3617
- settings: "settings";
3618
- page: "page";
3619
- dashboard: "dashboard";
3620
- graph: "graph";
3621
- detail: "detail";
3622
- list: "list";
3623
- }>;
3624
- description: z.ZodOptional<z.ZodString>;
3625
- enabled: z.ZodDefault<z.ZodBoolean>;
3626
- devOnly: z.ZodOptional<z.ZodBoolean>;
3627
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3628
- "nav.dashboard": "nav.dashboard";
3629
- "nav.calendar": "nav.calendar";
3630
- "nav.sales": "nav.sales";
3631
- "nav.crm": "nav.crm";
3632
- "nav.lead-gen": "nav.lead-gen";
3633
- "nav.projects": "nav.projects";
3634
- "nav.operations": "nav.operations";
3635
- "nav.monitoring": "nav.monitoring";
3636
- "nav.knowledge": "nav.knowledge";
3637
- "nav.settings": "nav.settings";
3638
- "nav.admin": "nav.admin";
3639
- "nav.archive": "nav.archive";
3640
- "knowledge.playbook": "knowledge.playbook";
3641
- "knowledge.strategy": "knowledge.strategy";
3642
- "knowledge.reference": "knowledge.reference";
3643
- "feature.dashboard": "feature.dashboard";
3644
- "feature.calendar": "feature.calendar";
3645
- "feature.business": "feature.business";
3646
- "feature.sales": "feature.sales";
3647
- "feature.crm": "feature.crm";
3648
- "feature.finance": "feature.finance";
3649
- "feature.lead-gen": "feature.lead-gen";
3650
- "feature.platform": "feature.platform";
3651
- "feature.projects": "feature.projects";
3652
- "feature.operations": "feature.operations";
3653
- "feature.knowledge": "feature.knowledge";
3654
- "feature.monitoring": "feature.monitoring";
3655
- "feature.settings": "feature.settings";
3656
- "feature.admin": "feature.admin";
3657
- "feature.archive": "feature.archive";
3658
- "feature.seo": "feature.seo";
3659
- "resource.agent": "resource.agent";
3660
- "resource.workflow": "resource.workflow";
3661
- "resource.integration": "resource.integration";
3662
- "resource.database": "resource.database";
3663
- "resource.user": "resource.user";
3664
- "resource.team": "resource.team";
3665
- "integration.gmail": "integration.gmail";
3666
- "integration.google-sheets": "integration.google-sheets";
3667
- "integration.attio": "integration.attio";
3668
- "surface.dashboard": "surface.dashboard";
3669
- "surface.calendar": "surface.calendar";
3670
- "surface.overview": "surface.overview";
3671
- "surface.command-view": "surface.command-view";
3672
- "surface.command-queue": "surface.command-queue";
3673
- "surface.pipeline": "surface.pipeline";
3674
- "surface.lists": "surface.lists";
3675
- "surface.resources": "surface.resources";
3676
- "surface.settings": "surface.settings";
3677
- "status.success": "status.success";
3678
- "status.error": "status.error";
3679
- "status.warning": "status.warning";
3680
- "status.info": "status.info";
3681
- "status.pending": "status.pending";
3682
- "action.approve": "action.approve";
3683
- "action.reject": "action.reject";
3684
- "action.retry": "action.retry";
3685
- "action.edit": "action.edit";
3686
- "action.view": "action.view";
3687
- "action.launch": "action.launch";
3688
- "action.message": "action.message";
3689
- "action.escalate": "action.escalate";
3690
- "action.promote": "action.promote";
3691
- "action.submit": "action.submit";
3692
- "action.email": "action.email";
3693
- }>, z.ZodString]>>;
3694
- featureId: z.ZodOptional<z.ZodString>;
3695
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3696
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3697
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3698
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3699
- parentId: z.ZodOptional<z.ZodString>;
3700
- }, z.core.$strip>>>;
3701
- groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
3702
- id: z.ZodString;
3703
- label: z.ZodString;
3704
- placement: z.ZodString;
3705
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3706
- }, z.core.$strip>>>;
3707
- }, z.core.$strip>>;
3708
- sales: z.ZodObject<{
3709
- entityId: z.ZodString;
3710
- defaultPipelineId: z.ZodString;
3711
- pipelines: z.ZodArray<z.ZodObject<{
3712
- id: z.ZodString;
3713
- label: z.ZodString;
3714
- description: z.ZodOptional<z.ZodString>;
3715
- entityId: z.ZodString;
3716
- stages: z.ZodArray<z.ZodObject<{
3717
- label: z.ZodString;
3718
- description: z.ZodOptional<z.ZodString>;
3719
- color: z.ZodOptional<z.ZodString>;
3720
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3721
- "nav.dashboard": "nav.dashboard";
3722
- "nav.calendar": "nav.calendar";
3723
- "nav.sales": "nav.sales";
3724
- "nav.crm": "nav.crm";
3725
- "nav.lead-gen": "nav.lead-gen";
3726
- "nav.projects": "nav.projects";
3727
- "nav.operations": "nav.operations";
3728
- "nav.monitoring": "nav.monitoring";
3729
- "nav.knowledge": "nav.knowledge";
3730
- "nav.settings": "nav.settings";
3731
- "nav.admin": "nav.admin";
3732
- "nav.archive": "nav.archive";
3733
- "knowledge.playbook": "knowledge.playbook";
3734
- "knowledge.strategy": "knowledge.strategy";
3735
- "knowledge.reference": "knowledge.reference";
3736
- "feature.dashboard": "feature.dashboard";
3737
- "feature.calendar": "feature.calendar";
3738
- "feature.business": "feature.business";
3739
- "feature.sales": "feature.sales";
3740
- "feature.crm": "feature.crm";
3741
- "feature.finance": "feature.finance";
3742
- "feature.lead-gen": "feature.lead-gen";
3743
- "feature.platform": "feature.platform";
3744
- "feature.projects": "feature.projects";
3745
- "feature.operations": "feature.operations";
3746
- "feature.knowledge": "feature.knowledge";
3747
- "feature.monitoring": "feature.monitoring";
3748
- "feature.settings": "feature.settings";
3749
- "feature.admin": "feature.admin";
3750
- "feature.archive": "feature.archive";
3751
- "feature.seo": "feature.seo";
3752
- "resource.agent": "resource.agent";
3753
- "resource.workflow": "resource.workflow";
3754
- "resource.integration": "resource.integration";
3755
- "resource.database": "resource.database";
3756
- "resource.user": "resource.user";
3757
- "resource.team": "resource.team";
3758
- "integration.gmail": "integration.gmail";
3759
- "integration.google-sheets": "integration.google-sheets";
3760
- "integration.attio": "integration.attio";
3761
- "surface.dashboard": "surface.dashboard";
3762
- "surface.calendar": "surface.calendar";
3763
- "surface.overview": "surface.overview";
3764
- "surface.command-view": "surface.command-view";
3765
- "surface.command-queue": "surface.command-queue";
3766
- "surface.pipeline": "surface.pipeline";
3767
- "surface.lists": "surface.lists";
3768
- "surface.resources": "surface.resources";
3769
- "surface.settings": "surface.settings";
3770
- "status.success": "status.success";
3771
- "status.error": "status.error";
3772
- "status.warning": "status.warning";
3773
- "status.info": "status.info";
3774
- "status.pending": "status.pending";
3775
- "action.approve": "action.approve";
3776
- "action.reject": "action.reject";
3777
- "action.retry": "action.retry";
3778
- "action.edit": "action.edit";
3779
- "action.view": "action.view";
3780
- "action.launch": "action.launch";
3781
- "action.message": "action.message";
3782
- "action.escalate": "action.escalate";
3783
- "action.promote": "action.promote";
3784
- "action.submit": "action.submit";
3785
- "action.email": "action.email";
3786
- }>, z.ZodString]>>;
3787
- id: z.ZodString;
3788
- order: z.ZodNumber;
3789
- semanticClass: z.ZodEnum<{
3790
- open: "open";
3791
- active: "active";
3792
- nurturing: "nurturing";
3793
- closed_won: "closed_won";
3794
- closed_lost: "closed_lost";
3795
- }>;
3796
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3797
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3798
- }, z.core.$strip>>;
3946
+ sidebar: z.ZodDefault<z.ZodObject<{
3947
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3948
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3799
3949
  }, z.core.$strip>>;
3800
- }, z.core.$strip>;
3801
- prospecting: z.ZodObject<{
3802
- listEntityId: z.ZodString;
3803
- companyEntityId: z.ZodString;
3804
- contactEntityId: z.ZodString;
3805
- description: z.ZodOptional<z.ZodString>;
3806
- companyStages: z.ZodArray<z.ZodObject<{
3807
- label: z.ZodString;
3808
- description: z.ZodOptional<z.ZodString>;
3809
- color: z.ZodOptional<z.ZodString>;
3810
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3811
- "nav.dashboard": "nav.dashboard";
3812
- "nav.calendar": "nav.calendar";
3813
- "nav.sales": "nav.sales";
3814
- "nav.crm": "nav.crm";
3815
- "nav.lead-gen": "nav.lead-gen";
3816
- "nav.projects": "nav.projects";
3817
- "nav.operations": "nav.operations";
3818
- "nav.monitoring": "nav.monitoring";
3819
- "nav.knowledge": "nav.knowledge";
3820
- "nav.settings": "nav.settings";
3821
- "nav.admin": "nav.admin";
3822
- "nav.archive": "nav.archive";
3823
- "knowledge.playbook": "knowledge.playbook";
3824
- "knowledge.strategy": "knowledge.strategy";
3825
- "knowledge.reference": "knowledge.reference";
3826
- "feature.dashboard": "feature.dashboard";
3827
- "feature.calendar": "feature.calendar";
3828
- "feature.business": "feature.business";
3829
- "feature.sales": "feature.sales";
3830
- "feature.crm": "feature.crm";
3831
- "feature.finance": "feature.finance";
3832
- "feature.lead-gen": "feature.lead-gen";
3833
- "feature.platform": "feature.platform";
3834
- "feature.projects": "feature.projects";
3835
- "feature.operations": "feature.operations";
3836
- "feature.knowledge": "feature.knowledge";
3837
- "feature.monitoring": "feature.monitoring";
3838
- "feature.settings": "feature.settings";
3839
- "feature.admin": "feature.admin";
3840
- "feature.archive": "feature.archive";
3841
- "feature.seo": "feature.seo";
3842
- "resource.agent": "resource.agent";
3843
- "resource.workflow": "resource.workflow";
3844
- "resource.integration": "resource.integration";
3845
- "resource.database": "resource.database";
3846
- "resource.user": "resource.user";
3847
- "resource.team": "resource.team";
3848
- "integration.gmail": "integration.gmail";
3849
- "integration.google-sheets": "integration.google-sheets";
3850
- "integration.attio": "integration.attio";
3851
- "surface.dashboard": "surface.dashboard";
3852
- "surface.calendar": "surface.calendar";
3853
- "surface.overview": "surface.overview";
3854
- "surface.command-view": "surface.command-view";
3855
- "surface.command-queue": "surface.command-queue";
3856
- "surface.pipeline": "surface.pipeline";
3857
- "surface.lists": "surface.lists";
3858
- "surface.resources": "surface.resources";
3859
- "surface.settings": "surface.settings";
3860
- "status.success": "status.success";
3861
- "status.error": "status.error";
3862
- "status.warning": "status.warning";
3863
- "status.info": "status.info";
3864
- "status.pending": "status.pending";
3865
- "action.approve": "action.approve";
3866
- "action.reject": "action.reject";
3867
- "action.retry": "action.retry";
3868
- "action.edit": "action.edit";
3869
- "action.view": "action.view";
3870
- "action.launch": "action.launch";
3871
- "action.message": "action.message";
3872
- "action.escalate": "action.escalate";
3873
- "action.promote": "action.promote";
3874
- "action.submit": "action.submit";
3875
- "action.email": "action.email";
3876
- }>, z.ZodString]>>;
3877
- id: z.ZodString;
3878
- order: z.ZodNumber;
3879
- }, z.core.$strip>>;
3880
- contactStages: z.ZodArray<z.ZodObject<{
3881
- label: z.ZodString;
3882
- description: z.ZodOptional<z.ZodString>;
3883
- color: z.ZodOptional<z.ZodString>;
3884
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3885
- "nav.dashboard": "nav.dashboard";
3886
- "nav.calendar": "nav.calendar";
3887
- "nav.sales": "nav.sales";
3888
- "nav.crm": "nav.crm";
3889
- "nav.lead-gen": "nav.lead-gen";
3890
- "nav.projects": "nav.projects";
3891
- "nav.operations": "nav.operations";
3892
- "nav.monitoring": "nav.monitoring";
3893
- "nav.knowledge": "nav.knowledge";
3894
- "nav.settings": "nav.settings";
3895
- "nav.admin": "nav.admin";
3896
- "nav.archive": "nav.archive";
3897
- "knowledge.playbook": "knowledge.playbook";
3898
- "knowledge.strategy": "knowledge.strategy";
3899
- "knowledge.reference": "knowledge.reference";
3900
- "feature.dashboard": "feature.dashboard";
3901
- "feature.calendar": "feature.calendar";
3902
- "feature.business": "feature.business";
3903
- "feature.sales": "feature.sales";
3904
- "feature.crm": "feature.crm";
3905
- "feature.finance": "feature.finance";
3906
- "feature.lead-gen": "feature.lead-gen";
3907
- "feature.platform": "feature.platform";
3908
- "feature.projects": "feature.projects";
3909
- "feature.operations": "feature.operations";
3910
- "feature.knowledge": "feature.knowledge";
3911
- "feature.monitoring": "feature.monitoring";
3912
- "feature.settings": "feature.settings";
3913
- "feature.admin": "feature.admin";
3914
- "feature.archive": "feature.archive";
3915
- "feature.seo": "feature.seo";
3916
- "resource.agent": "resource.agent";
3917
- "resource.workflow": "resource.workflow";
3918
- "resource.integration": "resource.integration";
3919
- "resource.database": "resource.database";
3920
- "resource.user": "resource.user";
3921
- "resource.team": "resource.team";
3922
- "integration.gmail": "integration.gmail";
3923
- "integration.google-sheets": "integration.google-sheets";
3924
- "integration.attio": "integration.attio";
3925
- "surface.dashboard": "surface.dashboard";
3926
- "surface.calendar": "surface.calendar";
3927
- "surface.overview": "surface.overview";
3928
- "surface.command-view": "surface.command-view";
3929
- "surface.command-queue": "surface.command-queue";
3930
- "surface.pipeline": "surface.pipeline";
3931
- "surface.lists": "surface.lists";
3932
- "surface.resources": "surface.resources";
3933
- "surface.settings": "surface.settings";
3934
- "status.success": "status.success";
3935
- "status.error": "status.error";
3936
- "status.warning": "status.warning";
3937
- "status.info": "status.info";
3938
- "status.pending": "status.pending";
3939
- "action.approve": "action.approve";
3940
- "action.reject": "action.reject";
3941
- "action.retry": "action.retry";
3942
- "action.edit": "action.edit";
3943
- "action.view": "action.view";
3944
- "action.launch": "action.launch";
3945
- "action.message": "action.message";
3946
- "action.escalate": "action.escalate";
3947
- "action.promote": "action.promote";
3948
- "action.submit": "action.submit";
3949
- "action.email": "action.email";
3950
- }>, z.ZodString]>>;
3951
- id: z.ZodString;
3952
- order: z.ZodNumber;
3953
- }, z.core.$strip>>;
3954
- defaultBuildTemplateId: z.ZodString;
3955
- buildTemplates: z.ZodArray<z.ZodObject<{
3956
- label: z.ZodString;
3957
- description: z.ZodOptional<z.ZodString>;
3958
- color: z.ZodOptional<z.ZodString>;
3959
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3960
- "nav.dashboard": "nav.dashboard";
3961
- "nav.calendar": "nav.calendar";
3962
- "nav.sales": "nav.sales";
3963
- "nav.crm": "nav.crm";
3964
- "nav.lead-gen": "nav.lead-gen";
3965
- "nav.projects": "nav.projects";
3966
- "nav.operations": "nav.operations";
3967
- "nav.monitoring": "nav.monitoring";
3968
- "nav.knowledge": "nav.knowledge";
3969
- "nav.settings": "nav.settings";
3970
- "nav.admin": "nav.admin";
3971
- "nav.archive": "nav.archive";
3972
- "knowledge.playbook": "knowledge.playbook";
3973
- "knowledge.strategy": "knowledge.strategy";
3974
- "knowledge.reference": "knowledge.reference";
3975
- "feature.dashboard": "feature.dashboard";
3976
- "feature.calendar": "feature.calendar";
3977
- "feature.business": "feature.business";
3978
- "feature.sales": "feature.sales";
3979
- "feature.crm": "feature.crm";
3980
- "feature.finance": "feature.finance";
3981
- "feature.lead-gen": "feature.lead-gen";
3982
- "feature.platform": "feature.platform";
3983
- "feature.projects": "feature.projects";
3984
- "feature.operations": "feature.operations";
3985
- "feature.knowledge": "feature.knowledge";
3986
- "feature.monitoring": "feature.monitoring";
3987
- "feature.settings": "feature.settings";
3988
- "feature.admin": "feature.admin";
3989
- "feature.archive": "feature.archive";
3990
- "feature.seo": "feature.seo";
3991
- "resource.agent": "resource.agent";
3992
- "resource.workflow": "resource.workflow";
3993
- "resource.integration": "resource.integration";
3994
- "resource.database": "resource.database";
3995
- "resource.user": "resource.user";
3996
- "resource.team": "resource.team";
3997
- "integration.gmail": "integration.gmail";
3998
- "integration.google-sheets": "integration.google-sheets";
3999
- "integration.attio": "integration.attio";
4000
- "surface.dashboard": "surface.dashboard";
4001
- "surface.calendar": "surface.calendar";
4002
- "surface.overview": "surface.overview";
4003
- "surface.command-view": "surface.command-view";
4004
- "surface.command-queue": "surface.command-queue";
4005
- "surface.pipeline": "surface.pipeline";
4006
- "surface.lists": "surface.lists";
4007
- "surface.resources": "surface.resources";
4008
- "surface.settings": "surface.settings";
4009
- "status.success": "status.success";
4010
- "status.error": "status.error";
4011
- "status.warning": "status.warning";
4012
- "status.info": "status.info";
4013
- "status.pending": "status.pending";
4014
- "action.approve": "action.approve";
4015
- "action.reject": "action.reject";
4016
- "action.retry": "action.retry";
4017
- "action.edit": "action.edit";
4018
- "action.view": "action.view";
4019
- "action.launch": "action.launch";
4020
- "action.message": "action.message";
4021
- "action.escalate": "action.escalate";
4022
- "action.promote": "action.promote";
4023
- "action.submit": "action.submit";
4024
- "action.email": "action.email";
4025
- }>, z.ZodString]>>;
4026
- id: z.ZodString;
4027
- steps: z.ZodArray<z.ZodObject<{
4028
- label: z.ZodString;
4029
- description: z.ZodOptional<z.ZodString>;
4030
- color: z.ZodOptional<z.ZodString>;
4031
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4032
- "nav.dashboard": "nav.dashboard";
4033
- "nav.calendar": "nav.calendar";
4034
- "nav.sales": "nav.sales";
4035
- "nav.crm": "nav.crm";
4036
- "nav.lead-gen": "nav.lead-gen";
4037
- "nav.projects": "nav.projects";
4038
- "nav.operations": "nav.operations";
4039
- "nav.monitoring": "nav.monitoring";
4040
- "nav.knowledge": "nav.knowledge";
4041
- "nav.settings": "nav.settings";
4042
- "nav.admin": "nav.admin";
4043
- "nav.archive": "nav.archive";
4044
- "knowledge.playbook": "knowledge.playbook";
4045
- "knowledge.strategy": "knowledge.strategy";
4046
- "knowledge.reference": "knowledge.reference";
4047
- "feature.dashboard": "feature.dashboard";
4048
- "feature.calendar": "feature.calendar";
4049
- "feature.business": "feature.business";
4050
- "feature.sales": "feature.sales";
4051
- "feature.crm": "feature.crm";
4052
- "feature.finance": "feature.finance";
4053
- "feature.lead-gen": "feature.lead-gen";
4054
- "feature.platform": "feature.platform";
4055
- "feature.projects": "feature.projects";
4056
- "feature.operations": "feature.operations";
4057
- "feature.knowledge": "feature.knowledge";
4058
- "feature.monitoring": "feature.monitoring";
4059
- "feature.settings": "feature.settings";
4060
- "feature.admin": "feature.admin";
4061
- "feature.archive": "feature.archive";
4062
- "feature.seo": "feature.seo";
4063
- "resource.agent": "resource.agent";
4064
- "resource.workflow": "resource.workflow";
4065
- "resource.integration": "resource.integration";
4066
- "resource.database": "resource.database";
4067
- "resource.user": "resource.user";
4068
- "resource.team": "resource.team";
4069
- "integration.gmail": "integration.gmail";
4070
- "integration.google-sheets": "integration.google-sheets";
4071
- "integration.attio": "integration.attio";
4072
- "surface.dashboard": "surface.dashboard";
4073
- "surface.calendar": "surface.calendar";
4074
- "surface.overview": "surface.overview";
4075
- "surface.command-view": "surface.command-view";
4076
- "surface.command-queue": "surface.command-queue";
4077
- "surface.pipeline": "surface.pipeline";
4078
- "surface.lists": "surface.lists";
4079
- "surface.resources": "surface.resources";
4080
- "surface.settings": "surface.settings";
4081
- "status.success": "status.success";
4082
- "status.error": "status.error";
4083
- "status.warning": "status.warning";
4084
- "status.info": "status.info";
4085
- "status.pending": "status.pending";
4086
- "action.approve": "action.approve";
4087
- "action.reject": "action.reject";
4088
- "action.retry": "action.retry";
4089
- "action.edit": "action.edit";
4090
- "action.view": "action.view";
4091
- "action.launch": "action.launch";
4092
- "action.message": "action.message";
4093
- "action.escalate": "action.escalate";
4094
- "action.promote": "action.promote";
4095
- "action.submit": "action.submit";
4096
- "action.email": "action.email";
4097
- }>, z.ZodString]>>;
4098
- id: z.ZodString;
4099
- primaryEntity: z.ZodEnum<{
4100
- company: "company";
4101
- contact: "contact";
4102
- }>;
4103
- outputs: z.ZodArray<z.ZodEnum<{
4104
- company: "company";
4105
- contact: "contact";
4106
- export: "export";
4107
- }>>;
4108
- stageKey: z.ZodString;
4109
- recordEntity: z.ZodOptional<z.ZodEnum<{
4110
- company: "company";
4111
- contact: "contact";
4112
- }>>;
4113
- recordsStageKey: z.ZodOptional<z.ZodString>;
4114
- recordSourceStageKey: z.ZodOptional<z.ZodString>;
4115
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
4116
- dependencyMode: z.ZodLiteral<"per-record-eligibility">;
4117
- capabilityKey: z.ZodString;
4118
- defaultBatchSize: z.ZodNumber;
4119
- maxBatchSize: z.ZodNumber;
4120
- recordColumns: z.ZodOptional<z.ZodObject<{
4121
- company: z.ZodOptional<z.ZodArray<z.ZodObject<{
4122
- key: z.ZodString;
4123
- label: z.ZodString;
4124
- path: z.ZodString;
4125
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4126
- renderType: z.ZodOptional<z.ZodEnum<{
4127
- text: "text";
4128
- badge: "badge";
4129
- datetime: "datetime";
4130
- count: "count";
4131
- json: "json";
4132
- }>>;
4133
- badgeColor: z.ZodOptional<z.ZodString>;
4134
- }, z.core.$strip>>>;
4135
- contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
4136
- key: z.ZodString;
4137
- label: z.ZodString;
4138
- path: z.ZodString;
4139
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4140
- renderType: z.ZodOptional<z.ZodEnum<{
4141
- text: "text";
4142
- badge: "badge";
4143
- datetime: "datetime";
4144
- count: "count";
4145
- json: "json";
4146
- }>>;
4147
- badgeColor: z.ZodOptional<z.ZodString>;
4148
- }, z.core.$strip>>>;
4149
- }, z.core.$strip>>;
4150
- credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
4151
- key: z.ZodString;
4152
- provider: z.ZodString;
4153
- credentialType: z.ZodEnum<{
4154
- "api-key": "api-key";
4155
- "api-key-secret": "api-key-secret";
4156
- oauth: "oauth";
4157
- "webhook-secret": "webhook-secret";
4158
- }>;
4159
- label: z.ZodString;
4160
- required: z.ZodBoolean;
4161
- selectionMode: z.ZodOptional<z.ZodEnum<{
4162
- single: "single";
4163
- multiple: "multiple";
4164
- }>>;
4165
- inputPath: z.ZodString;
4166
- verifyOnRun: z.ZodOptional<z.ZodBoolean>;
4167
- }, z.core.$strip>>>;
4168
- }, z.core.$strip>>;
4169
- }, z.core.$strip>>;
4170
- }, z.core.$strip>;
4171
- projects: z.ZodObject<{
4172
- projectEntityId: z.ZodString;
4173
- milestoneEntityId: z.ZodString;
4174
- taskEntityId: z.ZodString;
4175
- projectStatuses: z.ZodArray<z.ZodObject<{
4176
- label: z.ZodString;
4177
- description: z.ZodOptional<z.ZodString>;
4178
- color: z.ZodOptional<z.ZodString>;
4179
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4180
- "nav.dashboard": "nav.dashboard";
4181
- "nav.calendar": "nav.calendar";
4182
- "nav.sales": "nav.sales";
4183
- "nav.crm": "nav.crm";
4184
- "nav.lead-gen": "nav.lead-gen";
4185
- "nav.projects": "nav.projects";
4186
- "nav.operations": "nav.operations";
4187
- "nav.monitoring": "nav.monitoring";
4188
- "nav.knowledge": "nav.knowledge";
4189
- "nav.settings": "nav.settings";
4190
- "nav.admin": "nav.admin";
4191
- "nav.archive": "nav.archive";
4192
- "knowledge.playbook": "knowledge.playbook";
4193
- "knowledge.strategy": "knowledge.strategy";
4194
- "knowledge.reference": "knowledge.reference";
4195
- "feature.dashboard": "feature.dashboard";
4196
- "feature.calendar": "feature.calendar";
4197
- "feature.business": "feature.business";
4198
- "feature.sales": "feature.sales";
4199
- "feature.crm": "feature.crm";
4200
- "feature.finance": "feature.finance";
4201
- "feature.lead-gen": "feature.lead-gen";
4202
- "feature.platform": "feature.platform";
4203
- "feature.projects": "feature.projects";
4204
- "feature.operations": "feature.operations";
4205
- "feature.knowledge": "feature.knowledge";
4206
- "feature.monitoring": "feature.monitoring";
4207
- "feature.settings": "feature.settings";
4208
- "feature.admin": "feature.admin";
4209
- "feature.archive": "feature.archive";
4210
- "feature.seo": "feature.seo";
4211
- "resource.agent": "resource.agent";
4212
- "resource.workflow": "resource.workflow";
4213
- "resource.integration": "resource.integration";
4214
- "resource.database": "resource.database";
4215
- "resource.user": "resource.user";
4216
- "resource.team": "resource.team";
4217
- "integration.gmail": "integration.gmail";
4218
- "integration.google-sheets": "integration.google-sheets";
4219
- "integration.attio": "integration.attio";
4220
- "surface.dashboard": "surface.dashboard";
4221
- "surface.calendar": "surface.calendar";
4222
- "surface.overview": "surface.overview";
4223
- "surface.command-view": "surface.command-view";
4224
- "surface.command-queue": "surface.command-queue";
4225
- "surface.pipeline": "surface.pipeline";
4226
- "surface.lists": "surface.lists";
4227
- "surface.resources": "surface.resources";
4228
- "surface.settings": "surface.settings";
4229
- "status.success": "status.success";
4230
- "status.error": "status.error";
4231
- "status.warning": "status.warning";
4232
- "status.info": "status.info";
4233
- "status.pending": "status.pending";
4234
- "action.approve": "action.approve";
4235
- "action.reject": "action.reject";
4236
- "action.retry": "action.retry";
4237
- "action.edit": "action.edit";
4238
- "action.view": "action.view";
4239
- "action.launch": "action.launch";
4240
- "action.message": "action.message";
4241
- "action.escalate": "action.escalate";
4242
- "action.promote": "action.promote";
4243
- "action.submit": "action.submit";
4244
- "action.email": "action.email";
4245
- }>, z.ZodString]>>;
4246
- id: z.ZodString;
4247
- order: z.ZodNumber;
4248
- }, z.core.$strip>>;
4249
- milestoneStatuses: z.ZodArray<z.ZodObject<{
4250
- label: z.ZodString;
4251
- description: z.ZodOptional<z.ZodString>;
4252
- color: z.ZodOptional<z.ZodString>;
4253
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4254
- "nav.dashboard": "nav.dashboard";
4255
- "nav.calendar": "nav.calendar";
4256
- "nav.sales": "nav.sales";
4257
- "nav.crm": "nav.crm";
4258
- "nav.lead-gen": "nav.lead-gen";
4259
- "nav.projects": "nav.projects";
4260
- "nav.operations": "nav.operations";
4261
- "nav.monitoring": "nav.monitoring";
4262
- "nav.knowledge": "nav.knowledge";
4263
- "nav.settings": "nav.settings";
4264
- "nav.admin": "nav.admin";
4265
- "nav.archive": "nav.archive";
4266
- "knowledge.playbook": "knowledge.playbook";
4267
- "knowledge.strategy": "knowledge.strategy";
4268
- "knowledge.reference": "knowledge.reference";
4269
- "feature.dashboard": "feature.dashboard";
4270
- "feature.calendar": "feature.calendar";
4271
- "feature.business": "feature.business";
4272
- "feature.sales": "feature.sales";
4273
- "feature.crm": "feature.crm";
4274
- "feature.finance": "feature.finance";
4275
- "feature.lead-gen": "feature.lead-gen";
4276
- "feature.platform": "feature.platform";
4277
- "feature.projects": "feature.projects";
4278
- "feature.operations": "feature.operations";
4279
- "feature.knowledge": "feature.knowledge";
4280
- "feature.monitoring": "feature.monitoring";
4281
- "feature.settings": "feature.settings";
4282
- "feature.admin": "feature.admin";
4283
- "feature.archive": "feature.archive";
4284
- "feature.seo": "feature.seo";
4285
- "resource.agent": "resource.agent";
4286
- "resource.workflow": "resource.workflow";
4287
- "resource.integration": "resource.integration";
4288
- "resource.database": "resource.database";
4289
- "resource.user": "resource.user";
4290
- "resource.team": "resource.team";
4291
- "integration.gmail": "integration.gmail";
4292
- "integration.google-sheets": "integration.google-sheets";
4293
- "integration.attio": "integration.attio";
4294
- "surface.dashboard": "surface.dashboard";
4295
- "surface.calendar": "surface.calendar";
4296
- "surface.overview": "surface.overview";
4297
- "surface.command-view": "surface.command-view";
4298
- "surface.command-queue": "surface.command-queue";
4299
- "surface.pipeline": "surface.pipeline";
4300
- "surface.lists": "surface.lists";
4301
- "surface.resources": "surface.resources";
4302
- "surface.settings": "surface.settings";
4303
- "status.success": "status.success";
4304
- "status.error": "status.error";
4305
- "status.warning": "status.warning";
4306
- "status.info": "status.info";
4307
- "status.pending": "status.pending";
4308
- "action.approve": "action.approve";
4309
- "action.reject": "action.reject";
4310
- "action.retry": "action.retry";
4311
- "action.edit": "action.edit";
4312
- "action.view": "action.view";
4313
- "action.launch": "action.launch";
4314
- "action.message": "action.message";
4315
- "action.escalate": "action.escalate";
4316
- "action.promote": "action.promote";
4317
- "action.submit": "action.submit";
4318
- "action.email": "action.email";
4319
- }>, z.ZodString]>>;
4320
- id: z.ZodString;
4321
- order: z.ZodNumber;
4322
- }, z.core.$strip>>;
4323
- taskStatuses: z.ZodArray<z.ZodObject<{
4324
- label: z.ZodString;
4325
- description: z.ZodOptional<z.ZodString>;
4326
- color: z.ZodOptional<z.ZodString>;
4327
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4328
- "nav.dashboard": "nav.dashboard";
4329
- "nav.calendar": "nav.calendar";
4330
- "nav.sales": "nav.sales";
4331
- "nav.crm": "nav.crm";
4332
- "nav.lead-gen": "nav.lead-gen";
4333
- "nav.projects": "nav.projects";
4334
- "nav.operations": "nav.operations";
4335
- "nav.monitoring": "nav.monitoring";
4336
- "nav.knowledge": "nav.knowledge";
4337
- "nav.settings": "nav.settings";
4338
- "nav.admin": "nav.admin";
4339
- "nav.archive": "nav.archive";
4340
- "knowledge.playbook": "knowledge.playbook";
4341
- "knowledge.strategy": "knowledge.strategy";
4342
- "knowledge.reference": "knowledge.reference";
4343
- "feature.dashboard": "feature.dashboard";
4344
- "feature.calendar": "feature.calendar";
4345
- "feature.business": "feature.business";
4346
- "feature.sales": "feature.sales";
4347
- "feature.crm": "feature.crm";
4348
- "feature.finance": "feature.finance";
4349
- "feature.lead-gen": "feature.lead-gen";
4350
- "feature.platform": "feature.platform";
4351
- "feature.projects": "feature.projects";
4352
- "feature.operations": "feature.operations";
4353
- "feature.knowledge": "feature.knowledge";
4354
- "feature.monitoring": "feature.monitoring";
4355
- "feature.settings": "feature.settings";
4356
- "feature.admin": "feature.admin";
4357
- "feature.archive": "feature.archive";
4358
- "feature.seo": "feature.seo";
4359
- "resource.agent": "resource.agent";
4360
- "resource.workflow": "resource.workflow";
4361
- "resource.integration": "resource.integration";
4362
- "resource.database": "resource.database";
4363
- "resource.user": "resource.user";
4364
- "resource.team": "resource.team";
4365
- "integration.gmail": "integration.gmail";
4366
- "integration.google-sheets": "integration.google-sheets";
4367
- "integration.attio": "integration.attio";
4368
- "surface.dashboard": "surface.dashboard";
4369
- "surface.calendar": "surface.calendar";
4370
- "surface.overview": "surface.overview";
4371
- "surface.command-view": "surface.command-view";
4372
- "surface.command-queue": "surface.command-queue";
4373
- "surface.pipeline": "surface.pipeline";
4374
- "surface.lists": "surface.lists";
4375
- "surface.resources": "surface.resources";
4376
- "surface.settings": "surface.settings";
4377
- "status.success": "status.success";
4378
- "status.error": "status.error";
4379
- "status.warning": "status.warning";
4380
- "status.info": "status.info";
4381
- "status.pending": "status.pending";
4382
- "action.approve": "action.approve";
4383
- "action.reject": "action.reject";
4384
- "action.retry": "action.retry";
4385
- "action.edit": "action.edit";
4386
- "action.view": "action.view";
4387
- "action.launch": "action.launch";
4388
- "action.message": "action.message";
4389
- "action.escalate": "action.escalate";
4390
- "action.promote": "action.promote";
4391
- "action.submit": "action.submit";
4392
- "action.email": "action.email";
4393
- }>, z.ZodString]>>;
4394
- id: z.ZodString;
4395
- order: z.ZodNumber;
4396
- }, z.core.$strip>>;
4397
- }, z.core.$strip>;
3950
+ }, z.core.$strip>>;
4398
3951
  identity: z.ZodDefault<z.ZodObject<{
4399
3952
  mission: z.ZodDefault<z.ZodString>;
4400
3953
  vision: z.ZodDefault<z.ZodString>;
@@ -4436,265 +3989,594 @@ declare const OrganizationModelSchema: z.ZodObject<{
4436
3989
  }, z.core.$strip>>;
4437
3990
  clientBrief: z.ZodDefault<z.ZodString>;
4438
3991
  }, z.core.$strip>>;
4439
- customers: z.ZodDefault<z.ZodObject<{
4440
- segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
3992
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
3993
+ id: z.ZodString;
3994
+ order: z.ZodNumber;
3995
+ name: z.ZodDefault<z.ZodString>;
3996
+ description: z.ZodDefault<z.ZodString>;
3997
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
3998
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
3999
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
4000
+ firmographics: z.ZodDefault<z.ZodObject<{
4001
+ industry: z.ZodOptional<z.ZodString>;
4002
+ companySize: z.ZodOptional<z.ZodString>;
4003
+ region: z.ZodOptional<z.ZodString>;
4004
+ }, z.core.$strip>>;
4005
+ valueProp: z.ZodDefault<z.ZodString>;
4006
+ }, z.core.$strip>>>>;
4007
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4008
+ id: z.ZodString;
4009
+ order: z.ZodNumber;
4010
+ name: z.ZodDefault<z.ZodString>;
4011
+ description: z.ZodDefault<z.ZodString>;
4012
+ pricingModel: z.ZodDefault<z.ZodEnum<{
4013
+ custom: "custom";
4014
+ "one-time": "one-time";
4015
+ subscription: "subscription";
4016
+ "usage-based": "usage-based";
4017
+ }>>;
4018
+ price: z.ZodDefault<z.ZodNumber>;
4019
+ currency: z.ZodDefault<z.ZodString>;
4020
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4021
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
4022
+ }, z.core.$strip>>>>;
4023
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4024
+ id: z.ZodString;
4025
+ order: z.ZodNumber;
4026
+ title: z.ZodString;
4027
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
4028
+ reportsToId: z.ZodOptional<z.ZodString>;
4029
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4030
+ kind: z.ZodLiteral<"human">;
4031
+ userId: z.ZodString;
4032
+ }, z.core.$strip>, z.ZodObject<{
4033
+ kind: z.ZodLiteral<"agent">;
4034
+ agentId: z.ZodString;
4035
+ }, z.core.$strip>, z.ZodObject<{
4036
+ kind: z.ZodLiteral<"team">;
4037
+ memberIds: z.ZodArray<z.ZodString>;
4038
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4039
+ kind: z.ZodLiteral<"human">;
4040
+ userId: z.ZodString;
4041
+ }, z.core.$strip>, z.ZodObject<{
4042
+ kind: z.ZodLiteral<"agent">;
4043
+ agentId: z.ZodString;
4044
+ }, z.core.$strip>, z.ZodObject<{
4045
+ kind: z.ZodLiteral<"team">;
4046
+ memberIds: z.ZodArray<z.ZodString>;
4047
+ }, z.core.$strip>], "kind">>]>>;
4048
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
4049
+ }, z.core.$strip>>>>;
4050
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4051
+ id: z.ZodString;
4052
+ order: z.ZodNumber;
4053
+ description: z.ZodString;
4054
+ periodStart: z.ZodString;
4055
+ periodEnd: z.ZodString;
4056
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
4441
4057
  id: z.ZodString;
4442
- name: z.ZodDefault<z.ZodString>;
4443
- description: z.ZodDefault<z.ZodString>;
4444
- jobsToBeDone: z.ZodDefault<z.ZodString>;
4445
- pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
4446
- gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
4447
- firmographics: z.ZodDefault<z.ZodObject<{
4448
- industry: z.ZodOptional<z.ZodString>;
4449
- companySize: z.ZodOptional<z.ZodString>;
4450
- region: z.ZodOptional<z.ZodString>;
4451
- }, z.core.$strip>>;
4452
- valueProp: z.ZodDefault<z.ZodString>;
4058
+ description: z.ZodString;
4059
+ targetMetric: z.ZodString;
4060
+ currentValue: z.ZodDefault<z.ZodNumber>;
4061
+ targetValue: z.ZodOptional<z.ZodNumber>;
4453
4062
  }, z.core.$strip>>>;
4454
- }, z.core.$strip>>;
4455
- offerings: z.ZodDefault<z.ZodObject<{
4456
- products: z.ZodDefault<z.ZodArray<z.ZodObject<{
4063
+ }, z.core.$strip>>>>;
4064
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
4065
+ ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
4066
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4457
4067
  id: z.ZodString;
4458
- name: z.ZodDefault<z.ZodString>;
4459
- description: z.ZodDefault<z.ZodString>;
4460
- pricingModel: z.ZodDefault<z.ZodEnum<{
4461
- custom: "custom";
4462
- "one-time": "one-time";
4463
- subscription: "subscription";
4464
- "usage-based": "usage-based";
4465
- }>>;
4466
- price: z.ZodDefault<z.ZodNumber>;
4467
- currency: z.ZodDefault<z.ZodString>;
4468
- targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4469
- deliveryFeatureId: z.ZodOptional<z.ZodString>;
4470
- }, z.core.$strip>>>;
4471
- }, z.core.$strip>>;
4472
- roles: z.ZodDefault<z.ZodObject<{
4473
- roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
4068
+ label: z.ZodOptional<z.ZodString>;
4069
+ description: z.ZodOptional<z.ZodString>;
4070
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4071
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4072
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4073
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4074
+ }, z.core.$loose>>>>;
4075
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4474
4076
  id: z.ZodString;
4475
- title: z.ZodString;
4476
- responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
4477
- reportsToId: z.ZodOptional<z.ZodString>;
4478
- heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4479
- kind: z.ZodLiteral<"human">;
4480
- userId: z.ZodString;
4481
- }, z.core.$strip>, z.ZodObject<{
4482
- kind: z.ZodLiteral<"agent">;
4483
- agentId: z.ZodString;
4484
- }, z.core.$strip>, z.ZodObject<{
4485
- kind: z.ZodLiteral<"team">;
4486
- memberIds: z.ZodArray<z.ZodString>;
4487
- }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4488
- kind: z.ZodLiteral<"human">;
4489
- userId: z.ZodString;
4490
- }, z.core.$strip>, z.ZodObject<{
4491
- kind: z.ZodLiteral<"agent">;
4492
- agentId: z.ZodString;
4493
- }, z.core.$strip>, z.ZodObject<{
4494
- kind: z.ZodLiteral<"team">;
4495
- memberIds: z.ZodArray<z.ZodString>;
4496
- }, z.core.$strip>], "kind">>]>>;
4497
- responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
4498
- }, z.core.$strip>>>;
4499
- }, z.core.$strip>>;
4500
- goals: z.ZodDefault<z.ZodObject<{
4501
- objectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
4077
+ label: z.ZodOptional<z.ZodString>;
4078
+ description: z.ZodOptional<z.ZodString>;
4079
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4080
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4081
+ from: z.ZodString;
4082
+ to: z.ZodString;
4083
+ cardinality: z.ZodOptional<z.ZodString>;
4084
+ via: z.ZodOptional<z.ZodString>;
4085
+ }, z.core.$loose>>>>;
4086
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4502
4087
  id: z.ZodString;
4503
- description: z.ZodString;
4504
- periodStart: z.ZodString;
4505
- periodEnd: z.ZodString;
4506
- keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
4507
- id: z.ZodString;
4508
- description: z.ZodString;
4509
- targetMetric: z.ZodString;
4510
- currentValue: z.ZodDefault<z.ZodNumber>;
4511
- targetValue: z.ZodOptional<z.ZodNumber>;
4512
- }, z.core.$strip>>>;
4513
- }, z.core.$strip>>>;
4514
- }, z.core.$strip>>;
4515
- systems: z.ZodDefault<z.ZodObject<{
4516
- systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
4088
+ label: z.ZodOptional<z.ZodString>;
4089
+ description: z.ZodOptional<z.ZodString>;
4090
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4091
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4092
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4093
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4094
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4095
+ }, z.core.$loose>>>>;
4096
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4517
4097
  id: z.ZodString;
4518
- title: z.ZodString;
4519
- description: z.ZodString;
4520
- kind: z.ZodEnum<{
4521
- platform: "platform";
4522
- product: "product";
4523
- operational: "operational";
4524
- diagnostic: "diagnostic";
4525
- }>;
4526
- responsibleRoleId: z.ZodOptional<z.ZodString>;
4527
- governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
4528
- drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
4529
- status: z.ZodEnum<{
4530
- active: "active";
4531
- deprecated: "deprecated";
4532
- archived: "archived";
4098
+ label: z.ZodOptional<z.ZodString>;
4099
+ description: z.ZodOptional<z.ZodString>;
4100
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4101
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4102
+ kind: z.ZodOptional<z.ZodString>;
4103
+ appliesTo: z.ZodOptional<z.ZodString>;
4104
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4105
+ }, z.core.$loose>>>>;
4106
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4107
+ id: z.ZodString;
4108
+ label: z.ZodOptional<z.ZodString>;
4109
+ description: z.ZodOptional<z.ZodString>;
4110
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4111
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4112
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4113
+ }, z.core.$loose>>>>;
4114
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4115
+ id: z.ZodString;
4116
+ label: z.ZodOptional<z.ZodString>;
4117
+ description: z.ZodOptional<z.ZodString>;
4118
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4119
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4120
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4121
+ }, z.core.$loose>>>>;
4122
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4123
+ id: z.ZodString;
4124
+ label: z.ZodOptional<z.ZodString>;
4125
+ description: z.ZodOptional<z.ZodString>;
4126
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4127
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4128
+ primitive: z.ZodOptional<z.ZodString>;
4129
+ }, z.core.$loose>>>>;
4130
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4131
+ id: z.ZodString;
4132
+ label: z.ZodOptional<z.ZodString>;
4133
+ description: z.ZodOptional<z.ZodString>;
4134
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4135
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4136
+ valueType: z.ZodOptional<z.ZodString>;
4137
+ searchable: z.ZodOptional<z.ZodBoolean>;
4138
+ pii: z.ZodOptional<z.ZodBoolean>;
4139
+ }, z.core.$loose>>>>;
4140
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4141
+ id: z.ZodString;
4142
+ label: z.ZodOptional<z.ZodString>;
4143
+ description: z.ZodOptional<z.ZodString>;
4144
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4145
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4146
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4147
+ }, z.core.$loose>>>>;
4148
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4149
+ id: z.ZodString;
4150
+ label: z.ZodOptional<z.ZodString>;
4151
+ description: z.ZodOptional<z.ZodString>;
4152
+ ownerSystemId: z.ZodOptional<z.ZodString>;
4153
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4154
+ route: z.ZodOptional<z.ZodString>;
4155
+ }, z.core.$loose>>>>;
4156
+ }, z.core.$strip>>>;
4157
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
4158
+ id: z.ZodString;
4159
+ order: z.ZodDefault<z.ZodNumber>;
4160
+ systemPath: z.ZodString;
4161
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4162
+ status: z.ZodEnum<{
4163
+ deprecated: "deprecated";
4164
+ active: "active";
4165
+ archived: "archived";
4166
+ }>;
4167
+ ontology: z.ZodOptional<z.ZodObject<{
4168
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
4169
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4170
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4171
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4172
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4173
+ }, z.core.$strip>>;
4174
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4175
+ path: z.ZodString;
4176
+ role: z.ZodEnum<{
4177
+ schema: "schema";
4178
+ config: "config";
4179
+ entrypoint: "entrypoint";
4180
+ handler: "handler";
4181
+ test: "test";
4182
+ docs: "docs";
4533
4183
  }>;
4184
+ symbol: z.ZodOptional<z.ZodString>;
4185
+ description: z.ZodOptional<z.ZodString>;
4534
4186
  }, z.core.$strip>>>;
4535
- }, z.core.$strip>>;
4536
- resources: z.ZodDefault<z.ZodObject<{
4537
- entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4538
- id: z.ZodString;
4539
- systemId: z.ZodString;
4540
- ownerRoleId: z.ZodOptional<z.ZodString>;
4541
- status: z.ZodEnum<{
4542
- active: "active";
4187
+ kind: z.ZodLiteral<"workflow">;
4188
+ actionKey: z.ZodOptional<z.ZodString>;
4189
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4190
+ eventKey: z.ZodString;
4191
+ label: z.ZodString;
4192
+ payloadSchema: z.ZodOptional<z.ZodString>;
4193
+ lifecycle: z.ZodOptional<z.ZodEnum<{
4543
4194
  deprecated: "deprecated";
4544
- archived: "archived";
4545
- }>;
4546
- kind: z.ZodLiteral<"workflow">;
4547
- capabilityKey: z.ZodOptional<z.ZodString>;
4548
- }, z.core.$strip>, z.ZodObject<{
4549
- id: z.ZodString;
4550
- systemId: z.ZodString;
4551
- ownerRoleId: z.ZodOptional<z.ZodString>;
4552
- status: z.ZodEnum<{
4195
+ draft: "draft";
4196
+ beta: "beta";
4553
4197
  active: "active";
4554
- deprecated: "deprecated";
4555
4198
  archived: "archived";
4199
+ }>>;
4200
+ }, z.core.$strip>>>;
4201
+ }, z.core.$strip>, z.ZodObject<{
4202
+ id: z.ZodString;
4203
+ order: z.ZodDefault<z.ZodNumber>;
4204
+ systemPath: z.ZodString;
4205
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4206
+ status: z.ZodEnum<{
4207
+ deprecated: "deprecated";
4208
+ active: "active";
4209
+ archived: "archived";
4210
+ }>;
4211
+ ontology: z.ZodOptional<z.ZodObject<{
4212
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
4213
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4214
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4215
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4216
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4217
+ }, z.core.$strip>>;
4218
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4219
+ path: z.ZodString;
4220
+ role: z.ZodEnum<{
4221
+ schema: "schema";
4222
+ config: "config";
4223
+ entrypoint: "entrypoint";
4224
+ handler: "handler";
4225
+ test: "test";
4226
+ docs: "docs";
4556
4227
  }>;
4557
- kind: z.ZodLiteral<"agent">;
4558
- agentKind: z.ZodEnum<{
4559
- orchestrator: "orchestrator";
4560
- specialist: "specialist";
4561
- utility: "utility";
4562
- system: "system";
4563
- }>;
4564
- actsAsRoleId: z.ZodOptional<z.ZodString>;
4565
- sessionCapable: z.ZodBoolean;
4228
+ symbol: z.ZodOptional<z.ZodString>;
4229
+ description: z.ZodOptional<z.ZodString>;
4230
+ }, z.core.$strip>>>;
4231
+ kind: z.ZodLiteral<"agent">;
4232
+ agentKind: z.ZodEnum<{
4233
+ platform: "platform";
4234
+ orchestrator: "orchestrator";
4235
+ specialist: "specialist";
4236
+ utility: "utility";
4237
+ }>;
4238
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
4239
+ sessionCapable: z.ZodBoolean;
4240
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4241
+ kind: z.ZodLiteral<"slash-command">;
4242
+ command: z.ZodString;
4243
+ toolFactory: z.ZodOptional<z.ZodString>;
4566
4244
  }, z.core.$strip>, z.ZodObject<{
4567
- id: z.ZodString;
4568
- systemId: z.ZodString;
4569
- ownerRoleId: z.ZodOptional<z.ZodString>;
4570
- status: z.ZodEnum<{
4571
- active: "active";
4572
- deprecated: "deprecated";
4573
- archived: "archived";
4245
+ kind: z.ZodLiteral<"mcp-tool">;
4246
+ server: z.ZodString;
4247
+ name: z.ZodString;
4248
+ }, z.core.$strip>, z.ZodObject<{
4249
+ kind: z.ZodLiteral<"api-endpoint">;
4250
+ method: z.ZodEnum<{
4251
+ GET: "GET";
4252
+ POST: "POST";
4253
+ PATCH: "PATCH";
4254
+ DELETE: "DELETE";
4574
4255
  }>;
4575
- kind: z.ZodLiteral<"integration">;
4576
- provider: z.ZodString;
4256
+ path: z.ZodString;
4257
+ requestSchema: z.ZodOptional<z.ZodString>;
4258
+ responseSchema: z.ZodOptional<z.ZodString>;
4259
+ }, z.core.$strip>, z.ZodObject<{
4260
+ kind: z.ZodLiteral<"script-execution">;
4261
+ resourceId: z.ZodString;
4577
4262
  }, z.core.$strip>], "kind">>>;
4578
- }, z.core.$strip>>;
4579
- statuses: z.ZodDefault<z.ZodObject<{
4580
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
4581
- id: z.ZodString;
4263
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
4264
+ eventKey: z.ZodString;
4582
4265
  label: z.ZodString;
4583
- semanticClass: z.ZodEnum<{
4584
- "delivery.project": "delivery.project";
4585
- "delivery.milestone": "delivery.milestone";
4586
- "delivery.task": "delivery.task";
4587
- queue: "queue";
4588
- execution: "execution";
4589
- schedule: "schedule";
4590
- "schedule.run": "schedule.run";
4591
- request: "request";
4266
+ payloadSchema: z.ZodOptional<z.ZodString>;
4267
+ lifecycle: z.ZodOptional<z.ZodEnum<{
4268
+ deprecated: "deprecated";
4269
+ draft: "draft";
4270
+ beta: "beta";
4271
+ active: "active";
4272
+ archived: "archived";
4273
+ }>>;
4274
+ }, z.core.$strip>>>;
4275
+ }, z.core.$strip>, z.ZodObject<{
4276
+ id: z.ZodString;
4277
+ order: z.ZodDefault<z.ZodNumber>;
4278
+ systemPath: z.ZodString;
4279
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4280
+ status: z.ZodEnum<{
4281
+ deprecated: "deprecated";
4282
+ active: "active";
4283
+ archived: "archived";
4284
+ }>;
4285
+ ontology: z.ZodOptional<z.ZodObject<{
4286
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
4287
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4288
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4289
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4290
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4291
+ }, z.core.$strip>>;
4292
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4293
+ path: z.ZodString;
4294
+ role: z.ZodEnum<{
4295
+ schema: "schema";
4296
+ config: "config";
4297
+ entrypoint: "entrypoint";
4298
+ handler: "handler";
4299
+ test: "test";
4300
+ docs: "docs";
4592
4301
  }>;
4593
- category: z.ZodOptional<z.ZodString>;
4302
+ symbol: z.ZodOptional<z.ZodString>;
4303
+ description: z.ZodOptional<z.ZodString>;
4594
4304
  }, z.core.$strip>>>;
4595
- }, z.core.$strip>>;
4596
- operations: z.ZodDefault<z.ZodObject<{
4597
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
4598
- id: z.ZodString;
4599
- label: z.ZodString;
4600
- semanticClass: z.ZodEnum<{
4601
- queue: "queue";
4602
- executions: "executions";
4603
- sessions: "sessions";
4604
- notifications: "notifications";
4605
- schedules: "schedules";
4305
+ kind: z.ZodLiteral<"integration">;
4306
+ provider: z.ZodString;
4307
+ }, z.core.$strip>, z.ZodObject<{
4308
+ id: z.ZodString;
4309
+ order: z.ZodDefault<z.ZodNumber>;
4310
+ systemPath: z.ZodString;
4311
+ ownerRoleId: z.ZodOptional<z.ZodString>;
4312
+ status: z.ZodEnum<{
4313
+ deprecated: "deprecated";
4314
+ active: "active";
4315
+ archived: "archived";
4316
+ }>;
4317
+ ontology: z.ZodOptional<z.ZodObject<{
4318
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
4319
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
4320
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
4321
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4322
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
4323
+ }, z.core.$strip>>;
4324
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
4325
+ path: z.ZodString;
4326
+ role: z.ZodEnum<{
4327
+ schema: "schema";
4328
+ config: "config";
4329
+ entrypoint: "entrypoint";
4330
+ handler: "handler";
4331
+ test: "test";
4332
+ docs: "docs";
4606
4333
  }>;
4607
- featureId: z.ZodOptional<z.ZodString>;
4608
- supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
4334
+ symbol: z.ZodOptional<z.ZodString>;
4335
+ description: z.ZodOptional<z.ZodString>;
4609
4336
  }, z.core.$strip>>>;
4610
- }, z.core.$strip>>;
4611
- knowledge: z.ZodDefault<z.ZodObject<{
4612
- nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
4613
- id: z.ZodString;
4337
+ kind: z.ZodLiteral<"script">;
4338
+ language: z.ZodEnum<{
4339
+ shell: "shell";
4340
+ sql: "sql";
4341
+ typescript: "typescript";
4342
+ python: "python";
4343
+ }>;
4344
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4345
+ file: z.ZodString;
4346
+ }, z.core.$strip>]>;
4347
+ }, z.core.$strip>], "kind">>>>;
4348
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4349
+ id: z.ZodString;
4350
+ order: z.ZodNumber;
4351
+ label: z.ZodString;
4352
+ description: z.ZodOptional<z.ZodString>;
4353
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
4354
+ domain: z.ZodString;
4355
+ }, z.core.$strip>]>>;
4356
+ resourceId: z.ZodOptional<z.ZodString>;
4357
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
4358
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4359
+ kind: z.ZodLiteral<"slash-command">;
4360
+ command: z.ZodString;
4361
+ toolFactory: z.ZodOptional<z.ZodString>;
4362
+ }, z.core.$strip>, z.ZodObject<{
4363
+ kind: z.ZodLiteral<"mcp-tool">;
4364
+ server: z.ZodString;
4365
+ name: z.ZodString;
4366
+ }, z.core.$strip>, z.ZodObject<{
4367
+ kind: z.ZodLiteral<"api-endpoint">;
4368
+ method: z.ZodEnum<{
4369
+ GET: "GET";
4370
+ POST: "POST";
4371
+ PATCH: "PATCH";
4372
+ DELETE: "DELETE";
4373
+ }>;
4374
+ path: z.ZodString;
4375
+ requestSchema: z.ZodOptional<z.ZodString>;
4376
+ responseSchema: z.ZodOptional<z.ZodString>;
4377
+ }, z.core.$strip>, z.ZodObject<{
4378
+ kind: z.ZodLiteral<"script-execution">;
4379
+ resourceId: z.ZodString;
4380
+ }, z.core.$strip>], "kind">>>;
4381
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4382
+ lifecycle: z.ZodDefault<z.ZodEnum<{
4383
+ deprecated: "deprecated";
4384
+ draft: "draft";
4385
+ beta: "beta";
4386
+ active: "active";
4387
+ archived: "archived";
4388
+ }>>;
4389
+ }, z.core.$strip>>>>;
4390
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4391
+ id: z.ZodString;
4392
+ order: z.ZodNumber;
4393
+ label: z.ZodString;
4394
+ description: z.ZodOptional<z.ZodString>;
4395
+ ownedBySystemId: z.ZodString;
4396
+ table: z.ZodOptional<z.ZodString>;
4397
+ rowSchema: z.ZodOptional<z.ZodString>;
4398
+ stateCatalogId: z.ZodOptional<z.ZodString>;
4399
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
4400
+ toEntity: z.ZodString;
4614
4401
  kind: z.ZodEnum<{
4615
- playbook: "playbook";
4616
- strategy: "strategy";
4617
- reference: "reference";
4402
+ "belongs-to": "belongs-to";
4403
+ "has-many": "has-many";
4404
+ "has-one": "has-one";
4405
+ "many-to-many": "many-to-many";
4618
4406
  }>;
4619
- title: z.ZodString;
4620
- summary: z.ZodString;
4621
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4622
- "nav.dashboard": "nav.dashboard";
4623
- "nav.calendar": "nav.calendar";
4624
- "nav.sales": "nav.sales";
4625
- "nav.crm": "nav.crm";
4626
- "nav.lead-gen": "nav.lead-gen";
4627
- "nav.projects": "nav.projects";
4628
- "nav.operations": "nav.operations";
4629
- "nav.monitoring": "nav.monitoring";
4630
- "nav.knowledge": "nav.knowledge";
4631
- "nav.settings": "nav.settings";
4632
- "nav.admin": "nav.admin";
4633
- "nav.archive": "nav.archive";
4634
- "knowledge.playbook": "knowledge.playbook";
4635
- "knowledge.strategy": "knowledge.strategy";
4636
- "knowledge.reference": "knowledge.reference";
4637
- "feature.dashboard": "feature.dashboard";
4638
- "feature.calendar": "feature.calendar";
4639
- "feature.business": "feature.business";
4640
- "feature.sales": "feature.sales";
4641
- "feature.crm": "feature.crm";
4642
- "feature.finance": "feature.finance";
4643
- "feature.lead-gen": "feature.lead-gen";
4644
- "feature.platform": "feature.platform";
4645
- "feature.projects": "feature.projects";
4646
- "feature.operations": "feature.operations";
4647
- "feature.knowledge": "feature.knowledge";
4648
- "feature.monitoring": "feature.monitoring";
4649
- "feature.settings": "feature.settings";
4650
- "feature.admin": "feature.admin";
4651
- "feature.archive": "feature.archive";
4652
- "feature.seo": "feature.seo";
4653
- "resource.agent": "resource.agent";
4654
- "resource.workflow": "resource.workflow";
4655
- "resource.integration": "resource.integration";
4656
- "resource.database": "resource.database";
4657
- "resource.user": "resource.user";
4658
- "resource.team": "resource.team";
4659
- "integration.gmail": "integration.gmail";
4660
- "integration.google-sheets": "integration.google-sheets";
4661
- "integration.attio": "integration.attio";
4662
- "surface.dashboard": "surface.dashboard";
4663
- "surface.calendar": "surface.calendar";
4664
- "surface.overview": "surface.overview";
4665
- "surface.command-view": "surface.command-view";
4666
- "surface.command-queue": "surface.command-queue";
4667
- "surface.pipeline": "surface.pipeline";
4668
- "surface.lists": "surface.lists";
4669
- "surface.resources": "surface.resources";
4670
- "surface.settings": "surface.settings";
4671
- "status.success": "status.success";
4672
- "status.error": "status.error";
4673
- "status.warning": "status.warning";
4674
- "status.info": "status.info";
4675
- "status.pending": "status.pending";
4676
- "action.approve": "action.approve";
4677
- "action.reject": "action.reject";
4678
- "action.retry": "action.retry";
4679
- "action.edit": "action.edit";
4680
- "action.view": "action.view";
4681
- "action.launch": "action.launch";
4682
- "action.message": "action.message";
4683
- "action.escalate": "action.escalate";
4684
- "action.promote": "action.promote";
4685
- "action.submit": "action.submit";
4686
- "action.email": "action.email";
4687
- }>, z.ZodString]>>;
4688
- body: z.ZodString;
4689
- links: z.ZodDefault<z.ZodArray<z.ZodObject<{
4690
- nodeId: z.ZodString;
4691
- }, z.core.$strip>>>;
4692
- skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
4693
- domain: z.ZodOptional<z.ZodString>;
4694
- ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4695
- updatedAt: z.ZodString;
4407
+ via: z.ZodOptional<z.ZodString>;
4408
+ label: z.ZodOptional<z.ZodString>;
4696
4409
  }, z.core.$strip>>>;
4697
- }, z.core.$strip>>;
4410
+ }, z.core.$strip>>>>;
4411
+ policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4412
+ id: z.ZodString;
4413
+ order: z.ZodNumber;
4414
+ label: z.ZodString;
4415
+ description: z.ZodOptional<z.ZodString>;
4416
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
4417
+ kind: z.ZodLiteral<"event">;
4418
+ eventId: z.ZodString;
4419
+ }, z.core.$strip>, z.ZodObject<{
4420
+ kind: z.ZodLiteral<"action-invocation">;
4421
+ actionId: z.ZodString;
4422
+ }, z.core.$strip>, z.ZodObject<{
4423
+ kind: z.ZodLiteral<"schedule">;
4424
+ cron: z.ZodString;
4425
+ }, z.core.$strip>, z.ZodObject<{
4426
+ kind: z.ZodLiteral<"manual">;
4427
+ }, z.core.$strip>], "kind">;
4428
+ predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4429
+ kind: z.ZodLiteral<"always">;
4430
+ }, z.core.$strip>, z.ZodObject<{
4431
+ kind: z.ZodLiteral<"expression">;
4432
+ expression: z.ZodString;
4433
+ }, z.core.$strip>, z.ZodObject<{
4434
+ kind: z.ZodLiteral<"threshold">;
4435
+ metric: z.ZodString;
4436
+ operator: z.ZodEnum<{
4437
+ lt: "lt";
4438
+ lte: "lte";
4439
+ eq: "eq";
4440
+ gte: "gte";
4441
+ gt: "gt";
4442
+ }>;
4443
+ value: z.ZodNumber;
4444
+ }, z.core.$strip>], "kind">>;
4445
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4446
+ kind: z.ZodLiteral<"require-approval">;
4447
+ roleId: z.ZodOptional<z.ZodString>;
4448
+ }, z.core.$strip>, z.ZodObject<{
4449
+ kind: z.ZodLiteral<"invoke-action">;
4450
+ actionId: z.ZodString;
4451
+ }, z.core.$strip>, z.ZodObject<{
4452
+ kind: z.ZodLiteral<"notify-role">;
4453
+ roleId: z.ZodString;
4454
+ }, z.core.$strip>, z.ZodObject<{
4455
+ kind: z.ZodLiteral<"block">;
4456
+ }, z.core.$strip>], "kind">>;
4457
+ appliesTo: z.ZodDefault<z.ZodObject<{
4458
+ systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4459
+ actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4460
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4461
+ roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4462
+ }, z.core.$strip>>;
4463
+ lifecycle: z.ZodDefault<z.ZodEnum<{
4464
+ deprecated: "deprecated";
4465
+ draft: "draft";
4466
+ beta: "beta";
4467
+ active: "active";
4468
+ archived: "archived";
4469
+ }>>;
4470
+ }, z.core.$strip>>>>;
4471
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4472
+ id: z.ZodString;
4473
+ kind: z.ZodEnum<{
4474
+ playbook: "playbook";
4475
+ strategy: "strategy";
4476
+ reference: "reference";
4477
+ }>;
4478
+ title: z.ZodString;
4479
+ summary: z.ZodString;
4480
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4481
+ message: "message";
4482
+ error: "error";
4483
+ agent: "agent";
4484
+ workflow: "workflow";
4485
+ "google-sheets": "google-sheets";
4486
+ dashboard: "dashboard";
4487
+ calendar: "calendar";
4488
+ sales: "sales";
4489
+ crm: "crm";
4490
+ "lead-gen": "lead-gen";
4491
+ projects: "projects";
4492
+ operations: "operations";
4493
+ monitoring: "monitoring";
4494
+ knowledge: "knowledge";
4495
+ settings: "settings";
4496
+ admin: "admin";
4497
+ archive: "archive";
4498
+ business: "business";
4499
+ finance: "finance";
4500
+ platform: "platform";
4501
+ seo: "seo";
4502
+ playbook: "playbook";
4503
+ strategy: "strategy";
4504
+ reference: "reference";
4505
+ integration: "integration";
4506
+ database: "database";
4507
+ user: "user";
4508
+ team: "team";
4509
+ gmail: "gmail";
4510
+ attio: "attio";
4511
+ overview: "overview";
4512
+ "command-view": "command-view";
4513
+ "command-queue": "command-queue";
4514
+ pipeline: "pipeline";
4515
+ lists: "lists";
4516
+ resources: "resources";
4517
+ approve: "approve";
4518
+ reject: "reject";
4519
+ retry: "retry";
4520
+ edit: "edit";
4521
+ view: "view";
4522
+ launch: "launch";
4523
+ escalate: "escalate";
4524
+ promote: "promote";
4525
+ submit: "submit";
4526
+ email: "email";
4527
+ success: "success";
4528
+ warning: "warning";
4529
+ info: "info";
4530
+ pending: "pending";
4531
+ bolt: "bolt";
4532
+ building: "building";
4533
+ briefcase: "briefcase";
4534
+ apps: "apps";
4535
+ graph: "graph";
4536
+ shield: "shield";
4537
+ users: "users";
4538
+ "chart-bar": "chart-bar";
4539
+ search: "search";
4540
+ }>, z.ZodString]>>;
4541
+ externalUrl: z.ZodOptional<z.ZodString>;
4542
+ sourceFilePath: z.ZodOptional<z.ZodString>;
4543
+ body: z.ZodString;
4544
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
4545
+ target: z.ZodObject<{
4546
+ kind: z.ZodEnum<{
4547
+ knowledge: "knowledge";
4548
+ system: "system";
4549
+ action: "action";
4550
+ ontology: "ontology";
4551
+ role: "role";
4552
+ goal: "goal";
4553
+ stage: "stage";
4554
+ resource: "resource";
4555
+ "customer-segment": "customer-segment";
4556
+ offering: "offering";
4557
+ "content-node": "content-node";
4558
+ }>;
4559
+ id: z.ZodString;
4560
+ }, z.core.$strip>;
4561
+ }, z.core.$strip>, z.ZodObject<{
4562
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
4563
+ }, z.core.$strip>]>, z.ZodTransform<{
4564
+ target: {
4565
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4566
+ id: string;
4567
+ };
4568
+ nodeId: string;
4569
+ }, {
4570
+ nodeId: string;
4571
+ } | {
4572
+ target: {
4573
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
4574
+ id: string;
4575
+ };
4576
+ }>>>>;
4577
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4578
+ updatedAt: z.ZodString;
4579
+ }, z.core.$strip>>>>;
4698
4580
  }, z.core.$strip>;
4699
4581
 
4700
4582
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;