@elevasis/core 0.20.0 → 0.22.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 (77) hide show
  1. package/dist/index.d.ts +524 -6
  2. package/dist/index.js +417 -42
  3. package/dist/knowledge/index.d.ts +151 -1
  4. package/dist/organization-model/index.d.ts +524 -6
  5. package/dist/organization-model/index.js +417 -42
  6. package/dist/test-utils/index.d.ts +270 -1
  7. package/dist/test-utils/index.js +407 -41
  8. package/package.json +5 -5
  9. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +501 -303
  10. package/src/auth/multi-tenancy/permissions.ts +20 -8
  11. package/src/business/README.md +2 -2
  12. package/src/business/acquisition/api-schemas.test.ts +198 -0
  13. package/src/business/acquisition/api-schemas.ts +250 -9
  14. package/src/business/acquisition/build-templates.test.ts +28 -0
  15. package/src/business/acquisition/build-templates.ts +20 -8
  16. package/src/business/acquisition/index.ts +12 -0
  17. package/src/business/acquisition/types.ts +6 -1
  18. package/src/business/clients/api-schemas.test.ts +115 -0
  19. package/src/business/clients/api-schemas.ts +158 -0
  20. package/src/business/clients/index.ts +1 -0
  21. package/src/business/deals/api-schemas.ts +8 -0
  22. package/src/business/index.ts +5 -2
  23. package/src/business/projects/types.ts +19 -0
  24. package/src/execution/engine/__tests__/fixtures/test-agents.ts +10 -8
  25. package/src/execution/engine/agent/core/__tests__/agent.test.ts +16 -12
  26. package/src/execution/engine/agent/core/__tests__/error-passthrough.test.ts +4 -3
  27. package/src/execution/engine/agent/core/types.ts +25 -15
  28. package/src/execution/engine/agent/index.ts +6 -4
  29. package/src/execution/engine/agent/reasoning/__tests__/request-builder.test.ts +24 -18
  30. package/src/execution/engine/index.ts +3 -0
  31. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.test.ts +55 -0
  32. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.ts +107 -41
  33. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.test.ts +48 -0
  34. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.ts +99 -0
  35. package/src/execution/engine/tools/integration/server/adapters/apollo/index.ts +1 -0
  36. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.test.ts +18 -0
  37. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.ts +194 -0
  38. package/src/execution/engine/tools/integration/server/adapters/clickup/index.ts +7 -0
  39. package/src/execution/engine/workflow/types.ts +7 -0
  40. package/src/integrations/credentials/api-schemas.ts +21 -2
  41. package/src/integrations/credentials/schemas.ts +200 -164
  42. package/src/organization-model/README.md +10 -3
  43. package/src/organization-model/__tests__/defaults.test.ts +6 -0
  44. package/src/organization-model/__tests__/domains/resources.test.ts +188 -0
  45. package/src/organization-model/__tests__/domains/roles.test.ts +402 -347
  46. package/src/organization-model/__tests__/domains/systems.test.ts +193 -0
  47. package/src/organization-model/__tests__/knowledge.test.ts +39 -0
  48. package/src/organization-model/__tests__/prospecting-ssot.test.ts +7 -4
  49. package/src/organization-model/__tests__/resolve.test.ts +1 -1
  50. package/src/organization-model/defaults.ts +24 -3
  51. package/src/organization-model/domains/knowledge.ts +3 -2
  52. package/src/organization-model/domains/prospecting.ts +182 -25
  53. package/src/organization-model/domains/resources.ts +88 -0
  54. package/src/organization-model/domains/roles.ts +93 -55
  55. package/src/organization-model/domains/sales.ts +24 -3
  56. package/src/organization-model/domains/systems.ts +46 -0
  57. package/src/organization-model/icons.ts +1 -0
  58. package/src/organization-model/index.ts +2 -0
  59. package/src/organization-model/organization-model.mdx +33 -14
  60. package/src/organization-model/published.ts +52 -1
  61. package/src/organization-model/schema.ts +121 -0
  62. package/src/organization-model/types.ts +46 -1
  63. package/src/platform/api/types.ts +38 -35
  64. package/src/platform/constants/versions.ts +1 -1
  65. package/src/platform/registry/__tests__/resource-registry.test.ts +2051 -2005
  66. package/src/platform/registry/__tests__/validation.test.ts +1343 -1086
  67. package/src/platform/registry/index.ts +14 -0
  68. package/src/platform/registry/resource-registry.ts +40 -2
  69. package/src/platform/registry/serialization.ts +241 -202
  70. package/src/platform/registry/serialized-types.ts +1 -0
  71. package/src/platform/registry/types.ts +411 -361
  72. package/src/platform/registry/validation.ts +743 -513
  73. package/src/projects/api-schemas.ts +290 -267
  74. package/src/reference/_generated/contracts.md +501 -303
  75. package/src/reference/glossary.md +8 -3
  76. package/src/server.ts +2 -0
  77. package/src/supabase/database.types.ts +121 -0
@@ -65,6 +65,7 @@ type Database = {
65
65
  batch_id: string | null;
66
66
  category: string | null;
67
67
  category_pain: string | null;
68
+ client_id: string | null;
68
69
  created_at: string;
69
70
  domain: string | null;
70
71
  enrichment_data: Json | null;
@@ -91,6 +92,7 @@ type Database = {
91
92
  batch_id?: string | null;
92
93
  category?: string | null;
93
94
  category_pain?: string | null;
95
+ client_id?: string | null;
94
96
  created_at?: string;
95
97
  domain?: string | null;
96
98
  enrichment_data?: Json | null;
@@ -117,6 +119,7 @@ type Database = {
117
119
  batch_id?: string | null;
118
120
  category?: string | null;
119
121
  category_pain?: string | null;
122
+ client_id?: string | null;
120
123
  created_at?: string;
121
124
  domain?: string | null;
122
125
  enrichment_data?: Json | null;
@@ -140,6 +143,13 @@ type Database = {
140
143
  website?: string | null;
141
144
  };
142
145
  Relationships: [
146
+ {
147
+ foreignKeyName: "acq_companies_client_id_fkey";
148
+ columns: ["client_id"];
149
+ isOneToOne: false;
150
+ referencedRelation: "clients";
151
+ referencedColumns: ["id"];
152
+ },
143
153
  {
144
154
  foreignKeyName: "acq_companies_organization_id_fkey";
145
155
  columns: ["organization_id"];
@@ -154,6 +164,7 @@ type Database = {
154
164
  batch_id: string | null;
155
165
  brochure_first_viewed_at: string | null;
156
166
  brochure_view_count: number;
167
+ client_id: string | null;
157
168
  company_id: string | null;
158
169
  created_at: string;
159
170
  email: string;
@@ -182,6 +193,7 @@ type Database = {
182
193
  batch_id?: string | null;
183
194
  brochure_first_viewed_at?: string | null;
184
195
  brochure_view_count?: number;
196
+ client_id?: string | null;
185
197
  company_id?: string | null;
186
198
  created_at?: string;
187
199
  email: string;
@@ -210,6 +222,7 @@ type Database = {
210
222
  batch_id?: string | null;
211
223
  brochure_first_viewed_at?: string | null;
212
224
  brochure_view_count?: number;
225
+ client_id?: string | null;
213
226
  company_id?: string | null;
214
227
  created_at?: string;
215
228
  email?: string;
@@ -235,6 +248,13 @@ type Database = {
235
248
  updated_at?: string;
236
249
  };
237
250
  Relationships: [
251
+ {
252
+ foreignKeyName: "acq_contacts_client_id_fkey";
253
+ columns: ["client_id"];
254
+ isOneToOne: false;
255
+ referencedRelation: "clients";
256
+ referencedColumns: ["id"];
257
+ },
238
258
  {
239
259
  foreignKeyName: "acq_contacts_company_id_fkey";
240
260
  columns: ["company_id"];
@@ -478,8 +498,10 @@ type Database = {
478
498
  acq_deals: {
479
499
  Row: {
480
500
  activity_log: Json;
501
+ client_id: string | null;
481
502
  closed_lost_at: string | null;
482
503
  closed_lost_reason: string | null;
504
+ company_id: string | null;
483
505
  contact_email: string;
484
506
  contact_id: string | null;
485
507
  created_at: string;
@@ -515,8 +537,10 @@ type Database = {
515
537
  };
516
538
  Insert: {
517
539
  activity_log?: Json;
540
+ client_id?: string | null;
518
541
  closed_lost_at?: string | null;
519
542
  closed_lost_reason?: string | null;
543
+ company_id?: string | null;
520
544
  contact_email: string;
521
545
  contact_id?: string | null;
522
546
  created_at?: string;
@@ -552,8 +576,10 @@ type Database = {
552
576
  };
553
577
  Update: {
554
578
  activity_log?: Json;
579
+ client_id?: string | null;
555
580
  closed_lost_at?: string | null;
556
581
  closed_lost_reason?: string | null;
582
+ company_id?: string | null;
557
583
  contact_email?: string;
558
584
  contact_id?: string | null;
559
585
  created_at?: string;
@@ -588,6 +614,20 @@ type Database = {
588
614
  updated_at?: string;
589
615
  };
590
616
  Relationships: [
617
+ {
618
+ foreignKeyName: "acq_deals_client_id_fkey";
619
+ columns: ["client_id"];
620
+ isOneToOne: false;
621
+ referencedRelation: "clients";
622
+ referencedColumns: ["id"];
623
+ },
624
+ {
625
+ foreignKeyName: "acq_deals_company_id_fkey";
626
+ columns: ["company_id"];
627
+ isOneToOne: false;
628
+ referencedRelation: "acq_companies";
629
+ referencedColumns: ["id"];
630
+ },
591
631
  {
592
632
  foreignKeyName: "acq_deals_contact_id_fkey";
593
633
  columns: ["contact_id"];
@@ -1205,6 +1245,77 @@ type Database = {
1205
1245
  }
1206
1246
  ];
1207
1247
  };
1248
+ clients: {
1249
+ Row: {
1250
+ converted_at: string | null;
1251
+ created_at: string;
1252
+ id: string;
1253
+ metadata: Json;
1254
+ name: string;
1255
+ organization_id: string;
1256
+ primary_company_id: string | null;
1257
+ primary_contact_id: string | null;
1258
+ source_deal_id: string | null;
1259
+ status: string;
1260
+ updated_at: string;
1261
+ };
1262
+ Insert: {
1263
+ converted_at?: string | null;
1264
+ created_at?: string;
1265
+ id?: string;
1266
+ metadata?: Json;
1267
+ name: string;
1268
+ organization_id: string;
1269
+ primary_company_id?: string | null;
1270
+ primary_contact_id?: string | null;
1271
+ source_deal_id?: string | null;
1272
+ status?: string;
1273
+ updated_at?: string;
1274
+ };
1275
+ Update: {
1276
+ converted_at?: string | null;
1277
+ created_at?: string;
1278
+ id?: string;
1279
+ metadata?: Json;
1280
+ name?: string;
1281
+ organization_id?: string;
1282
+ primary_company_id?: string | null;
1283
+ primary_contact_id?: string | null;
1284
+ source_deal_id?: string | null;
1285
+ status?: string;
1286
+ updated_at?: string;
1287
+ };
1288
+ Relationships: [
1289
+ {
1290
+ foreignKeyName: "clients_organization_id_fkey";
1291
+ columns: ["organization_id"];
1292
+ isOneToOne: false;
1293
+ referencedRelation: "organizations";
1294
+ referencedColumns: ["id"];
1295
+ },
1296
+ {
1297
+ foreignKeyName: "clients_primary_company_id_fkey";
1298
+ columns: ["primary_company_id"];
1299
+ isOneToOne: false;
1300
+ referencedRelation: "acq_companies";
1301
+ referencedColumns: ["id"];
1302
+ },
1303
+ {
1304
+ foreignKeyName: "clients_primary_contact_id_fkey";
1305
+ columns: ["primary_contact_id"];
1306
+ isOneToOne: false;
1307
+ referencedRelation: "acq_contacts";
1308
+ referencedColumns: ["id"];
1309
+ },
1310
+ {
1311
+ foreignKeyName: "clients_source_deal_id_fkey";
1312
+ columns: ["source_deal_id"];
1313
+ isOneToOne: false;
1314
+ referencedRelation: "acq_deals";
1315
+ referencedColumns: ["id"];
1316
+ }
1317
+ ];
1318
+ };
1208
1319
  command_queue: {
1209
1320
  Row: {
1210
1321
  action_payload: Json | null;
@@ -2174,6 +2285,7 @@ type Database = {
2174
2285
  Row: {
2175
2286
  actual_end_date: string | null;
2176
2287
  client_company_id: string | null;
2288
+ client_id: string | null;
2177
2289
  contract_value: number | null;
2178
2290
  created_at: string;
2179
2291
  deal_id: string | null;
@@ -2191,6 +2303,7 @@ type Database = {
2191
2303
  Insert: {
2192
2304
  actual_end_date?: string | null;
2193
2305
  client_company_id?: string | null;
2306
+ client_id?: string | null;
2194
2307
  contract_value?: number | null;
2195
2308
  created_at?: string;
2196
2309
  deal_id?: string | null;
@@ -2208,6 +2321,7 @@ type Database = {
2208
2321
  Update: {
2209
2322
  actual_end_date?: string | null;
2210
2323
  client_company_id?: string | null;
2324
+ client_id?: string | null;
2211
2325
  contract_value?: number | null;
2212
2326
  created_at?: string;
2213
2327
  deal_id?: string | null;
@@ -2244,6 +2358,13 @@ type Database = {
2244
2358
  referencedRelation: "acq_companies";
2245
2359
  referencedColumns: ["id"];
2246
2360
  },
2361
+ {
2362
+ foreignKeyName: "prj_projects_client_id_fkey";
2363
+ columns: ["client_id"];
2364
+ isOneToOne: false;
2365
+ referencedRelation: "clients";
2366
+ referencedColumns: ["id"];
2367
+ },
2247
2368
  {
2248
2369
  foreignKeyName: "prj_projects_deal_id_fkey";
2249
2370
  columns: ["deal_id"];
@@ -3419,6 +3540,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
3419
3540
  "knowledge.reference": "knowledge.reference";
3420
3541
  "feature.dashboard": "feature.dashboard";
3421
3542
  "feature.calendar": "feature.calendar";
3543
+ "feature.business": "feature.business";
3422
3544
  "feature.sales": "feature.sales";
3423
3545
  "feature.crm": "feature.crm";
3424
3546
  "feature.finance": "feature.finance";
@@ -3520,6 +3642,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
3520
3642
  "knowledge.reference": "knowledge.reference";
3521
3643
  "feature.dashboard": "feature.dashboard";
3522
3644
  "feature.calendar": "feature.calendar";
3645
+ "feature.business": "feature.business";
3523
3646
  "feature.sales": "feature.sales";
3524
3647
  "feature.crm": "feature.crm";
3525
3648
  "feature.finance": "feature.finance";
@@ -3612,6 +3735,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
3612
3735
  "knowledge.reference": "knowledge.reference";
3613
3736
  "feature.dashboard": "feature.dashboard";
3614
3737
  "feature.calendar": "feature.calendar";
3738
+ "feature.business": "feature.business";
3615
3739
  "feature.sales": "feature.sales";
3616
3740
  "feature.crm": "feature.crm";
3617
3741
  "feature.finance": "feature.finance";
@@ -3701,6 +3825,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
3701
3825
  "knowledge.reference": "knowledge.reference";
3702
3826
  "feature.dashboard": "feature.dashboard";
3703
3827
  "feature.calendar": "feature.calendar";
3828
+ "feature.business": "feature.business";
3704
3829
  "feature.sales": "feature.sales";
3705
3830
  "feature.crm": "feature.crm";
3706
3831
  "feature.finance": "feature.finance";
@@ -3774,6 +3899,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
3774
3899
  "knowledge.reference": "knowledge.reference";
3775
3900
  "feature.dashboard": "feature.dashboard";
3776
3901
  "feature.calendar": "feature.calendar";
3902
+ "feature.business": "feature.business";
3777
3903
  "feature.sales": "feature.sales";
3778
3904
  "feature.crm": "feature.crm";
3779
3905
  "feature.finance": "feature.finance";
@@ -3848,6 +3974,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
3848
3974
  "knowledge.reference": "knowledge.reference";
3849
3975
  "feature.dashboard": "feature.dashboard";
3850
3976
  "feature.calendar": "feature.calendar";
3977
+ "feature.business": "feature.business";
3851
3978
  "feature.sales": "feature.sales";
3852
3979
  "feature.crm": "feature.crm";
3853
3980
  "feature.finance": "feature.finance";
@@ -3919,6 +4046,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
3919
4046
  "knowledge.reference": "knowledge.reference";
3920
4047
  "feature.dashboard": "feature.dashboard";
3921
4048
  "feature.calendar": "feature.calendar";
4049
+ "feature.business": "feature.business";
3922
4050
  "feature.sales": "feature.sales";
3923
4051
  "feature.crm": "feature.crm";
3924
4052
  "feature.finance": "feature.finance";
@@ -3978,11 +4106,65 @@ declare const OrganizationModelSchema: z.ZodObject<{
3978
4106
  export: "export";
3979
4107
  }>>;
3980
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>;
3981
4115
  dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
3982
4116
  dependencyMode: z.ZodLiteral<"per-record-eligibility">;
3983
4117
  capabilityKey: z.ZodString;
3984
4118
  defaultBatchSize: z.ZodNumber;
3985
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>>>;
3986
4168
  }, z.core.$strip>>;
3987
4169
  }, z.core.$strip>>;
3988
4170
  }, z.core.$strip>;
@@ -4012,6 +4194,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4012
4194
  "knowledge.reference": "knowledge.reference";
4013
4195
  "feature.dashboard": "feature.dashboard";
4014
4196
  "feature.calendar": "feature.calendar";
4197
+ "feature.business": "feature.business";
4015
4198
  "feature.sales": "feature.sales";
4016
4199
  "feature.crm": "feature.crm";
4017
4200
  "feature.finance": "feature.finance";
@@ -4085,6 +4268,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4085
4268
  "knowledge.reference": "knowledge.reference";
4086
4269
  "feature.dashboard": "feature.dashboard";
4087
4270
  "feature.calendar": "feature.calendar";
4271
+ "feature.business": "feature.business";
4088
4272
  "feature.sales": "feature.sales";
4089
4273
  "feature.crm": "feature.crm";
4090
4274
  "feature.finance": "feature.finance";
@@ -4158,6 +4342,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4158
4342
  "knowledge.reference": "knowledge.reference";
4159
4343
  "feature.dashboard": "feature.dashboard";
4160
4344
  "feature.calendar": "feature.calendar";
4345
+ "feature.business": "feature.business";
4161
4346
  "feature.sales": "feature.sales";
4162
4347
  "feature.crm": "feature.crm";
4163
4348
  "feature.finance": "feature.finance";
@@ -4290,7 +4475,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
4290
4475
  title: z.ZodString;
4291
4476
  responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
4292
4477
  reportsToId: z.ZodOptional<z.ZodString>;
4293
- heldBy: 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>>;
4294
4498
  }, z.core.$strip>>>;
4295
4499
  }, z.core.$strip>>;
4296
4500
  goals: z.ZodDefault<z.ZodObject<{
@@ -4308,6 +4512,70 @@ declare const OrganizationModelSchema: z.ZodObject<{
4308
4512
  }, z.core.$strip>>>;
4309
4513
  }, z.core.$strip>>>;
4310
4514
  }, z.core.$strip>>;
4515
+ systems: z.ZodDefault<z.ZodObject<{
4516
+ systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
4517
+ 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";
4533
+ }>;
4534
+ }, 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";
4543
+ 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<{
4553
+ active: "active";
4554
+ deprecated: "deprecated";
4555
+ archived: "archived";
4556
+ }>;
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;
4566
+ }, 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";
4574
+ }>;
4575
+ kind: z.ZodLiteral<"integration">;
4576
+ provider: z.ZodString;
4577
+ }, z.core.$strip>], "kind">>>;
4578
+ }, z.core.$strip>>;
4311
4579
  statuses: z.ZodDefault<z.ZodObject<{
4312
4580
  entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
4313
4581
  id: z.ZodString;
@@ -4368,6 +4636,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
4368
4636
  "knowledge.reference": "knowledge.reference";
4369
4637
  "feature.dashboard": "feature.dashboard";
4370
4638
  "feature.calendar": "feature.calendar";
4639
+ "feature.business": "feature.business";
4371
4640
  "feature.sales": "feature.sales";
4372
4641
  "feature.crm": "feature.crm";
4373
4642
  "feature.finance": "feature.finance";