@elevasis/core 0.23.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.
- package/dist/index.d.ts +1326 -552
- package/dist/index.js +869 -154
- package/dist/knowledge/index.d.ts +487 -209
- package/dist/knowledge/index.js +104 -1
- package/dist/organization-model/index.d.ts +1326 -552
- package/dist/organization-model/index.js +869 -154
- package/dist/test-utils/index.d.ts +357 -72
- package/dist/test-utils/index.js +795 -142
- package/package.json +5 -5
- package/src/README.md +14 -14
- package/src/__tests__/publish.test.ts +24 -24
- package/src/__tests__/template-core-compatibility.test.ts +9 -12
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +2102 -2096
- package/src/_gen/__tests__/scaffold-contracts.test.ts +30 -30
- package/src/auth/multi-tenancy/credentials/__tests__/encryption.test.ts +217 -217
- package/src/auth/multi-tenancy/credentials/server/encryption.ts +69 -69
- package/src/auth/multi-tenancy/credentials/server/kek-loader.ts +37 -37
- package/src/auth/multi-tenancy/index.ts +26 -26
- package/src/auth/multi-tenancy/invitations/api-schemas.ts +104 -104
- package/src/auth/multi-tenancy/memberships/api-schemas.ts +143 -143
- package/src/auth/multi-tenancy/memberships/index.ts +26 -26
- package/src/auth/multi-tenancy/memberships/membership.ts +130 -130
- package/src/auth/multi-tenancy/organizations/__tests__/api-schemas.test.ts +194 -194
- package/src/auth/multi-tenancy/organizations/api-schemas.ts +136 -136
- package/src/auth/multi-tenancy/permissions.test.ts +42 -42
- package/src/auth/multi-tenancy/permissions.ts +123 -123
- package/src/auth/multi-tenancy/role-management/api-schemas.ts +78 -78
- package/src/auth/multi-tenancy/role-management/index.ts +16 -16
- package/src/auth/multi-tenancy/theme-presets.ts +45 -45
- package/src/auth/multi-tenancy/types.ts +57 -57
- package/src/auth/multi-tenancy/users/api-schemas.ts +165 -165
- package/src/business/README.md +2 -2
- package/src/business/acquisition/activity-events.test.ts +250 -250
- package/src/business/acquisition/activity-events.ts +93 -93
- package/src/business/acquisition/api-schemas.test.ts +1883 -1843
- package/src/business/acquisition/api-schemas.ts +1492 -1497
- package/src/business/acquisition/build-templates.test.ts +240 -240
- package/src/business/acquisition/build-templates.ts +98 -98
- package/src/business/acquisition/crm-next-action.test.ts +262 -262
- package/src/business/acquisition/crm-next-action.ts +220 -220
- package/src/business/acquisition/crm-priority.test.ts +216 -216
- package/src/business/acquisition/crm-priority.ts +349 -349
- package/src/business/acquisition/crm-state-actions.test.ts +153 -153
- package/src/business/acquisition/deal-ownership.test.ts +351 -351
- package/src/business/acquisition/deal-ownership.ts +120 -120
- package/src/business/acquisition/derive-actions.test.ts +129 -104
- package/src/business/acquisition/derive-actions.ts +74 -84
- package/src/business/acquisition/index.ts +171 -170
- package/src/business/acquisition/ontology-validation.ts +309 -0
- package/src/business/acquisition/stateful.ts +30 -30
- package/src/business/acquisition/types.ts +396 -396
- package/src/business/clients/api-schemas.test.ts +115 -115
- package/src/business/clients/api-schemas.ts +158 -158
- package/src/business/clients/index.ts +1 -1
- package/src/business/crm/api-schemas.ts +40 -40
- package/src/business/crm/index.ts +1 -1
- package/src/business/deals/api-schemas.ts +87 -87
- package/src/business/deals/index.ts +1 -1
- package/src/business/index.ts +5 -5
- package/src/business/projects/types.ts +144 -144
- package/src/commands/queue/types/task.ts +15 -15
- package/src/execution/core/runner-types.ts +61 -61
- package/src/execution/core/sse-executions.ts +7 -7
- package/src/execution/engine/__tests__/fixtures/test-agents.ts +10 -10
- package/src/execution/engine/agent/core/__tests__/agent.test.ts +16 -16
- package/src/execution/engine/agent/core/__tests__/error-passthrough.test.ts +4 -4
- package/src/execution/engine/agent/core/types.ts +25 -25
- package/src/execution/engine/agent/index.ts +6 -6
- package/src/execution/engine/agent/reasoning/__tests__/request-builder.test.ts +24 -24
- package/src/execution/engine/index.ts +443 -443
- package/src/execution/engine/tools/integration/server/adapters/apify/__tests__/apify-run-actor.integration.test.ts +298 -298
- package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.test.ts +55 -55
- package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.ts +107 -107
- package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.test.ts +48 -48
- package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.ts +99 -99
- package/src/execution/engine/tools/integration/server/adapters/apollo/index.ts +1 -1
- package/src/execution/engine/tools/integration/server/adapters/attio/__tests__/attio-crud.integration.test.ts +363 -363
- package/src/execution/engine/tools/integration/server/adapters/attio/fetch/get-record/index.test.ts +162 -162
- package/src/execution/engine/tools/integration/server/adapters/attio/fetch/list-records/index.test.ts +316 -316
- package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.test.ts +18 -18
- package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.ts +194 -194
- package/src/execution/engine/tools/integration/server/adapters/clickup/index.ts +7 -7
- package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-adapter.ts +204 -204
- package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-tools.ts +105 -105
- package/src/execution/engine/tools/integration/server/adapters/google-calendar/google-calendar-adapter.ts +428 -428
- package/src/execution/engine/tools/integration/server/adapters/google-calendar/index.ts +2 -2
- package/src/execution/engine/tools/integration/server/adapters/google-sheets/__tests__/google-sheets.integration.test.ts +261 -261
- package/src/execution/engine/tools/integration/server/adapters/instantly/instantly-tools.ts +1474 -1474
- package/src/execution/engine/tools/integration/server/adapters/millionverifier/millionverifier-tools.ts +103 -103
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.test.ts +88 -88
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.ts +141 -141
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/utils/types.ts +76 -76
- package/src/execution/engine/tools/integration/server/adapters/signature-api/signature-api-tools.ts +182 -182
- package/src/execution/engine/tools/integration/server/adapters/stripe/stripe-tools.ts +310 -310
- package/src/execution/engine/tools/integration/service.test.ts +239 -239
- package/src/execution/engine/tools/integration/service.ts +172 -172
- package/src/execution/engine/tools/integration/tool.ts +255 -255
- package/src/execution/engine/tools/lead-service-types.ts +1005 -1005
- package/src/execution/engine/tools/messages.ts +43 -43
- package/src/execution/engine/tools/platform/acquisition/company-tools.ts +7 -7
- package/src/execution/engine/tools/platform/acquisition/contact-tools.ts +6 -6
- package/src/execution/engine/tools/platform/acquisition/list-tools.ts +6 -6
- package/src/execution/engine/tools/platform/acquisition/types.ts +280 -280
- package/src/execution/engine/tools/platform/email/types.ts +97 -97
- package/src/execution/engine/tools/registry.ts +704 -704
- package/src/execution/engine/tools/tool-maps.ts +831 -831
- package/src/execution/engine/tools/types.ts +234 -234
- package/src/execution/engine/workflow/types.ts +202 -202
- package/src/execution/external/__tests__/api-schemas.test.ts +127 -127
- package/src/execution/external/api-schemas.ts +40 -40
- package/src/execution/external/index.ts +1 -1
- package/src/index.ts +18 -18
- package/src/integrations/credentials/__tests__/api-schemas.test.ts +420 -420
- package/src/integrations/credentials/api-schemas.ts +146 -146
- package/src/integrations/credentials/schemas.ts +200 -200
- package/src/integrations/oauth/__tests__/provider-registry.test.ts +7 -7
- package/src/integrations/oauth/provider-registry.ts +74 -74
- package/src/integrations/oauth/server/credentials.ts +43 -43
- package/src/integrations/webhook-endpoints/__tests__/api-schemas.test.ts +327 -327
- package/src/integrations/webhook-endpoints/api-schemas.ts +103 -103
- package/src/integrations/webhook-endpoints/types.ts +58 -58
- package/src/knowledge/README.md +32 -32
- package/src/knowledge/__tests__/queries.test.ts +626 -535
- package/src/knowledge/format.ts +99 -99
- package/src/knowledge/index.ts +5 -5
- package/src/knowledge/published.ts +5 -5
- package/src/knowledge/queries.ts +269 -218
- package/src/operations/activities/api-schemas.ts +80 -80
- package/src/operations/activities/types.ts +64 -64
- package/src/organization-model/README.md +149 -149
- package/src/organization-model/__tests__/content-kinds-registry.test.ts +210 -210
- package/src/organization-model/__tests__/defaults.test.ts +168 -168
- package/src/organization-model/__tests__/domains/actions.test.ts +78 -56
- package/src/organization-model/__tests__/domains/customers.test.ts +299 -299
- package/src/organization-model/__tests__/domains/entities.test.ts +56 -56
- package/src/organization-model/__tests__/domains/goals.test.ts +493 -493
- package/src/organization-model/__tests__/domains/identity.test.ts +280 -280
- package/src/organization-model/__tests__/domains/navigation.test.ts +268 -268
- package/src/organization-model/__tests__/domains/offerings.test.ts +414 -414
- package/src/organization-model/__tests__/domains/policies.test.ts +323 -323
- package/src/organization-model/__tests__/domains/resource-mappings.test.ts +293 -293
- package/src/organization-model/__tests__/domains/resources.test.ts +382 -283
- package/src/organization-model/__tests__/domains/roles.test.ts +463 -463
- package/src/organization-model/__tests__/domains/statuses.test.ts +246 -246
- package/src/organization-model/__tests__/domains/systems.test.ts +209 -209
- package/src/organization-model/__tests__/flatten-additive-merge.test.ts +362 -361
- package/src/organization-model/__tests__/foundation.test.ts +77 -77
- package/src/organization-model/__tests__/get-resources-for-system.test.ts +144 -144
- package/src/organization-model/__tests__/graph.test.ts +1246 -887
- package/src/organization-model/__tests__/icons.test.ts +10 -1
- package/src/organization-model/__tests__/knowledge.test.ts +251 -15
- package/src/organization-model/__tests__/lookup-helpers.test.ts +438 -438
- package/src/organization-model/__tests__/migration-helpers.test.ts +591 -591
- package/src/organization-model/__tests__/prospecting-ssot.test.ts +103 -103
- package/src/organization-model/__tests__/recursive-system-schema.test.ts +535 -506
- package/src/organization-model/__tests__/resolve.test.ts +274 -164
- package/src/organization-model/__tests__/schema.test.ts +834 -301
- package/src/organization-model/__tests__/surface-projection.test.ts +284 -284
- package/src/organization-model/catalogs/lead-gen.ts +144 -144
- package/src/organization-model/content-kinds/config.ts +36 -36
- package/src/organization-model/content-kinds/index.ts +76 -72
- package/src/organization-model/content-kinds/pipeline.ts +68 -68
- package/src/organization-model/content-kinds/registry.ts +44 -44
- package/src/organization-model/content-kinds/status.ts +71 -71
- package/src/organization-model/content-kinds/template.ts +83 -83
- package/src/organization-model/content-kinds/types.ts +117 -117
- package/src/organization-model/contracts.ts +27 -27
- package/src/organization-model/defaults.ts +40 -50
- package/src/organization-model/domains/actions.ts +333 -239
- package/src/organization-model/domains/customers.ts +78 -78
- package/src/organization-model/domains/entities.ts +144 -144
- package/src/organization-model/domains/goals.ts +83 -83
- package/src/organization-model/domains/knowledge.ts +117 -101
- package/src/organization-model/domains/navigation.ts +139 -139
- package/src/organization-model/domains/offerings.ts +71 -71
- package/src/organization-model/domains/policies.ts +102 -102
- package/src/organization-model/domains/projects.ts +14 -14
- package/src/organization-model/domains/prospecting.ts +395 -395
- package/src/organization-model/domains/resources.ts +167 -132
- package/src/organization-model/domains/roles.ts +96 -96
- package/src/organization-model/domains/sales.test.ts +218 -218
- package/src/organization-model/domains/sales.ts +380 -380
- package/src/organization-model/domains/shared.ts +63 -63
- package/src/organization-model/domains/statuses.ts +339 -339
- package/src/organization-model/domains/systems.ts +217 -172
- package/src/organization-model/foundation.ts +75 -75
- package/src/organization-model/graph/build.ts +1016 -888
- package/src/organization-model/graph/index.ts +4 -4
- package/src/organization-model/graph/link.ts +10 -10
- package/src/organization-model/graph/schema.ts +76 -70
- package/src/organization-model/graph/types.ts +73 -67
- package/src/organization-model/helpers.ts +289 -241
- package/src/organization-model/icons.ts +78 -66
- package/src/organization-model/index.ts +130 -128
- package/src/organization-model/migration-helpers.ts +247 -244
- package/src/organization-model/ontology.ts +661 -0
- package/src/organization-model/organization-graph.mdx +110 -90
- package/src/organization-model/organization-model.mdx +226 -219
- package/src/organization-model/published.ts +289 -235
- package/src/organization-model/resolve.ts +146 -91
- package/src/organization-model/schema.ts +790 -671
- package/src/organization-model/surface-projection.ts +212 -212
- package/src/organization-model/types.ts +177 -167
- package/src/platform/api/types.ts +38 -38
- package/src/platform/constants/versions.ts +3 -3
- package/src/platform/index.ts +23 -23
- package/src/platform/registry/__tests__/command-view.test.ts +10 -10
- package/src/platform/registry/__tests__/resource-link.test.ts +35 -35
- package/src/platform/registry/__tests__/resource-registry.integration.test.ts +20 -20
- package/src/platform/registry/__tests__/resource-registry.nested-systems.test.ts +245 -245
- package/src/platform/registry/__tests__/resource-registry.test.ts +2053 -2053
- package/src/platform/registry/__tests__/validation.test.ts +1347 -1347
- package/src/platform/registry/command-view.ts +10 -10
- package/src/platform/registry/index.ts +103 -103
- package/src/platform/registry/resource-link.ts +32 -32
- package/src/platform/registry/resource-registry.ts +890 -890
- package/src/platform/registry/serialization.ts +295 -295
- package/src/platform/registry/serialized-types.ts +166 -166
- package/src/platform/registry/stats-types.ts +68 -68
- package/src/platform/registry/types.ts +425 -425
- package/src/platform/registry/validation.ts +745 -745
- package/src/platform/utils/__tests__/validation.test.ts +1084 -1084
- package/src/platform/utils/validation.ts +425 -425
- package/src/projects/api-schemas.test.ts +39 -39
- package/src/projects/api-schemas.ts +291 -291
- package/src/reference/_generated/contracts.md +2101 -2096
- package/src/reference/glossary.md +76 -76
- package/src/scaffold-registry/__tests__/index.test.ts +206 -206
- package/src/scaffold-registry/__tests__/schema.test.ts +166 -166
- package/src/scaffold-registry/index.ts +392 -392
- package/src/scaffold-registry/schema.ts +243 -243
- package/src/server.ts +289 -289
- package/src/supabase/database.types.ts +3153 -3153
- package/src/test-utils/README.md +37 -37
- package/src/test-utils/entities.ts +108 -108
- package/src/test-utils/fixtures/memberships.ts +82 -82
- package/src/test-utils/index.ts +12 -12
- package/src/test-utils/organization-model.ts +65 -65
- package/src/test-utils/published.ts +6 -6
- package/src/test-utils/rls/RLSTestContext.ts +588 -588
- package/src/test-utils/test-utils.test.ts +44 -44
|
@@ -1,5 +1,99 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
4
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
}, z.core.$loose>>>>;
|
|
13
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
label: z.ZodOptional<z.ZodString>;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
from: z.ZodString;
|
|
20
|
+
to: z.ZodString;
|
|
21
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
22
|
+
via: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
label: z.ZodOptional<z.ZodString>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
31
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
33
|
+
}, z.core.$loose>>>>;
|
|
34
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
label: z.ZodOptional<z.ZodString>;
|
|
37
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
41
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
42
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
label: z.ZodOptional<z.ZodString>;
|
|
47
|
+
description: z.ZodOptional<z.ZodString>;
|
|
48
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
49
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
label: z.ZodOptional<z.ZodString>;
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
|
+
}, z.core.$loose>>>>;
|
|
60
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
label: z.ZodOptional<z.ZodString>;
|
|
63
|
+
description: z.ZodOptional<z.ZodString>;
|
|
64
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
65
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$loose>>>>;
|
|
68
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
label: z.ZodOptional<z.ZodString>;
|
|
71
|
+
description: z.ZodOptional<z.ZodString>;
|
|
72
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
75
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
}, z.core.$loose>>>>;
|
|
78
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
label: z.ZodOptional<z.ZodString>;
|
|
81
|
+
description: z.ZodOptional<z.ZodString>;
|
|
82
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
85
|
+
}, z.core.$loose>>>>;
|
|
86
|
+
surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
label: z.ZodOptional<z.ZodString>;
|
|
89
|
+
description: z.ZodOptional<z.ZodString>;
|
|
90
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
91
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
+
route: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$loose>>>>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
96
|
+
|
|
3
97
|
/**
|
|
4
98
|
* Placeholder discriminated union for ContentNode (Wave 1A).
|
|
5
99
|
* Wave 2A wires concrete (kind, type) pairs via the registry.
|
|
@@ -18,6 +112,10 @@ declare const ContentNodeSchema: z.ZodObject<{
|
|
|
18
112
|
}, z.core.$strip>;
|
|
19
113
|
type ContentNode = z.infer<typeof ContentNodeSchema>;
|
|
20
114
|
|
|
115
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
116
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
117
|
+
[key: string]: JsonValue;
|
|
118
|
+
};
|
|
21
119
|
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
22
120
|
interface SystemEntry {
|
|
23
121
|
id: string;
|
|
@@ -52,6 +150,13 @@ interface SystemEntry {
|
|
|
52
150
|
devOnly?: boolean;
|
|
53
151
|
requiresAdmin?: boolean;
|
|
54
152
|
order: number;
|
|
153
|
+
config?: Record<string, JsonValue>;
|
|
154
|
+
ontology?: OntologyScope;
|
|
155
|
+
systems?: Record<string, SystemEntry>;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated Compatibility-only bridge for old tenant data and migration readers.
|
|
158
|
+
* Author new semantic catalogs in `ontology` and local settings in `config`.
|
|
159
|
+
*/
|
|
55
160
|
content?: Record<string, ContentNode>;
|
|
56
161
|
subsystems?: Record<string, SystemEntry>;
|
|
57
162
|
}
|
|
@@ -76,12 +181,12 @@ interface SystemEntry {
|
|
|
76
181
|
type RelationshipType = 'triggers' | 'uses' | 'approval';
|
|
77
182
|
|
|
78
183
|
declare const SurfaceTypeSchema: z.ZodEnum<{
|
|
79
|
-
|
|
184
|
+
dashboard: "dashboard";
|
|
185
|
+
settings: "settings";
|
|
80
186
|
graph: "graph";
|
|
187
|
+
list: "list";
|
|
81
188
|
page: "page";
|
|
82
|
-
dashboard: "dashboard";
|
|
83
189
|
detail: "detail";
|
|
84
|
-
settings: "settings";
|
|
85
190
|
}>;
|
|
86
191
|
interface SidebarSurfaceNode {
|
|
87
192
|
type: 'surface';
|
|
@@ -125,80 +230,76 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
125
230
|
title: z.ZodString;
|
|
126
231
|
summary: z.ZodString;
|
|
127
232
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
"action.launch": "action.launch";
|
|
188
|
-
"action.message": "action.message";
|
|
189
|
-
"action.escalate": "action.escalate";
|
|
190
|
-
"action.promote": "action.promote";
|
|
191
|
-
"action.submit": "action.submit";
|
|
192
|
-
"action.email": "action.email";
|
|
233
|
+
message: "message";
|
|
234
|
+
error: "error";
|
|
235
|
+
agent: "agent";
|
|
236
|
+
workflow: "workflow";
|
|
237
|
+
"google-sheets": "google-sheets";
|
|
238
|
+
dashboard: "dashboard";
|
|
239
|
+
calendar: "calendar";
|
|
240
|
+
sales: "sales";
|
|
241
|
+
crm: "crm";
|
|
242
|
+
"lead-gen": "lead-gen";
|
|
243
|
+
projects: "projects";
|
|
244
|
+
operations: "operations";
|
|
245
|
+
monitoring: "monitoring";
|
|
246
|
+
knowledge: "knowledge";
|
|
247
|
+
settings: "settings";
|
|
248
|
+
admin: "admin";
|
|
249
|
+
archive: "archive";
|
|
250
|
+
business: "business";
|
|
251
|
+
finance: "finance";
|
|
252
|
+
platform: "platform";
|
|
253
|
+
seo: "seo";
|
|
254
|
+
playbook: "playbook";
|
|
255
|
+
strategy: "strategy";
|
|
256
|
+
reference: "reference";
|
|
257
|
+
integration: "integration";
|
|
258
|
+
database: "database";
|
|
259
|
+
user: "user";
|
|
260
|
+
team: "team";
|
|
261
|
+
gmail: "gmail";
|
|
262
|
+
attio: "attio";
|
|
263
|
+
overview: "overview";
|
|
264
|
+
"command-view": "command-view";
|
|
265
|
+
"command-queue": "command-queue";
|
|
266
|
+
pipeline: "pipeline";
|
|
267
|
+
lists: "lists";
|
|
268
|
+
resources: "resources";
|
|
269
|
+
approve: "approve";
|
|
270
|
+
reject: "reject";
|
|
271
|
+
retry: "retry";
|
|
272
|
+
edit: "edit";
|
|
273
|
+
view: "view";
|
|
274
|
+
launch: "launch";
|
|
275
|
+
escalate: "escalate";
|
|
276
|
+
promote: "promote";
|
|
277
|
+
submit: "submit";
|
|
278
|
+
email: "email";
|
|
279
|
+
success: "success";
|
|
280
|
+
warning: "warning";
|
|
281
|
+
info: "info";
|
|
282
|
+
pending: "pending";
|
|
283
|
+
bolt: "bolt";
|
|
284
|
+
building: "building";
|
|
285
|
+
briefcase: "briefcase";
|
|
286
|
+
apps: "apps";
|
|
287
|
+
graph: "graph";
|
|
288
|
+
shield: "shield";
|
|
289
|
+
users: "users";
|
|
290
|
+
"chart-bar": "chart-bar";
|
|
291
|
+
search: "search";
|
|
193
292
|
}>, z.ZodString]>>;
|
|
194
293
|
externalUrl: z.ZodOptional<z.ZodString>;
|
|
294
|
+
sourceFilePath: z.ZodOptional<z.ZodString>;
|
|
195
295
|
body: z.ZodString;
|
|
196
296
|
links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
197
297
|
target: z.ZodObject<{
|
|
198
298
|
kind: z.ZodEnum<{
|
|
299
|
+
knowledge: "knowledge";
|
|
199
300
|
system: "system";
|
|
200
301
|
action: "action";
|
|
201
|
-
|
|
302
|
+
ontology: "ontology";
|
|
202
303
|
role: "role";
|
|
203
304
|
goal: "goal";
|
|
204
305
|
stage: "stage";
|
|
@@ -210,10 +311,10 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
210
311
|
id: z.ZodString;
|
|
211
312
|
}, z.core.$strip>;
|
|
212
313
|
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
-
nodeId: z.ZodString
|
|
314
|
+
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
214
315
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
215
316
|
target: {
|
|
216
|
-
kind: "system" | "action" | "
|
|
317
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
217
318
|
id: string;
|
|
218
319
|
};
|
|
219
320
|
nodeId: string;
|
|
@@ -221,7 +322,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
221
322
|
nodeId: string;
|
|
222
323
|
} | {
|
|
223
324
|
target: {
|
|
224
|
-
kind: "system" | "action" | "
|
|
325
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
225
326
|
id: string;
|
|
226
327
|
};
|
|
227
328
|
}>>>>;
|
|
@@ -232,71 +333,65 @@ type OrgKnowledgeNode = z.infer<typeof OrgKnowledgeNodeSchema>;
|
|
|
232
333
|
type OrgKnowledgeKind = z.infer<typeof OrgKnowledgeKindSchema>;
|
|
233
334
|
|
|
234
335
|
declare const OrganizationModelIconTokenSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
"
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
"
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
"
|
|
267
|
-
"
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
"action.launch": "action.launch";
|
|
295
|
-
"action.message": "action.message";
|
|
296
|
-
"action.escalate": "action.escalate";
|
|
297
|
-
"action.promote": "action.promote";
|
|
298
|
-
"action.submit": "action.submit";
|
|
299
|
-
"action.email": "action.email";
|
|
336
|
+
message: "message";
|
|
337
|
+
error: "error";
|
|
338
|
+
agent: "agent";
|
|
339
|
+
workflow: "workflow";
|
|
340
|
+
"google-sheets": "google-sheets";
|
|
341
|
+
dashboard: "dashboard";
|
|
342
|
+
calendar: "calendar";
|
|
343
|
+
sales: "sales";
|
|
344
|
+
crm: "crm";
|
|
345
|
+
"lead-gen": "lead-gen";
|
|
346
|
+
projects: "projects";
|
|
347
|
+
operations: "operations";
|
|
348
|
+
monitoring: "monitoring";
|
|
349
|
+
knowledge: "knowledge";
|
|
350
|
+
settings: "settings";
|
|
351
|
+
admin: "admin";
|
|
352
|
+
archive: "archive";
|
|
353
|
+
business: "business";
|
|
354
|
+
finance: "finance";
|
|
355
|
+
platform: "platform";
|
|
356
|
+
seo: "seo";
|
|
357
|
+
playbook: "playbook";
|
|
358
|
+
strategy: "strategy";
|
|
359
|
+
reference: "reference";
|
|
360
|
+
integration: "integration";
|
|
361
|
+
database: "database";
|
|
362
|
+
user: "user";
|
|
363
|
+
team: "team";
|
|
364
|
+
gmail: "gmail";
|
|
365
|
+
attio: "attio";
|
|
366
|
+
overview: "overview";
|
|
367
|
+
"command-view": "command-view";
|
|
368
|
+
"command-queue": "command-queue";
|
|
369
|
+
pipeline: "pipeline";
|
|
370
|
+
lists: "lists";
|
|
371
|
+
resources: "resources";
|
|
372
|
+
approve: "approve";
|
|
373
|
+
reject: "reject";
|
|
374
|
+
retry: "retry";
|
|
375
|
+
edit: "edit";
|
|
376
|
+
view: "view";
|
|
377
|
+
launch: "launch";
|
|
378
|
+
escalate: "escalate";
|
|
379
|
+
promote: "promote";
|
|
380
|
+
submit: "submit";
|
|
381
|
+
email: "email";
|
|
382
|
+
success: "success";
|
|
383
|
+
warning: "warning";
|
|
384
|
+
info: "info";
|
|
385
|
+
pending: "pending";
|
|
386
|
+
bolt: "bolt";
|
|
387
|
+
building: "building";
|
|
388
|
+
briefcase: "briefcase";
|
|
389
|
+
apps: "apps";
|
|
390
|
+
graph: "graph";
|
|
391
|
+
shield: "shield";
|
|
392
|
+
users: "users";
|
|
393
|
+
"chart-bar": "chart-bar";
|
|
394
|
+
search: "search";
|
|
300
395
|
}>, z.ZodString]>;
|
|
301
396
|
type OrganizationModelIconToken = z.infer<typeof OrganizationModelIconTokenSchema>;
|
|
302
397
|
|
|
@@ -331,6 +426,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
331
426
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
332
427
|
lastModified: z.ZodString;
|
|
333
428
|
}, z.core.$strip>>;
|
|
429
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
431
|
+
lastModified: z.ZodString;
|
|
432
|
+
}, z.core.$strip>>;
|
|
334
433
|
resources: z.ZodOptional<z.ZodObject<{
|
|
335
434
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
336
435
|
lastModified: z.ZodString;
|
|
@@ -380,6 +479,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
380
479
|
version: 1;
|
|
381
480
|
lastModified: string;
|
|
382
481
|
};
|
|
482
|
+
ontology: {
|
|
483
|
+
version: 1;
|
|
484
|
+
lastModified: string;
|
|
485
|
+
};
|
|
383
486
|
resources: {
|
|
384
487
|
version: 1;
|
|
385
488
|
lastModified: string;
|
|
@@ -429,6 +532,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
429
532
|
version: 1;
|
|
430
533
|
lastModified: string;
|
|
431
534
|
} | undefined;
|
|
535
|
+
ontology?: {
|
|
536
|
+
version: 1;
|
|
537
|
+
lastModified: string;
|
|
538
|
+
} | undefined;
|
|
432
539
|
resources?: {
|
|
433
540
|
version: 1;
|
|
434
541
|
lastModified: string;
|
|
@@ -580,6 +687,98 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
580
687
|
}, z.core.$strip>>>;
|
|
581
688
|
}, z.core.$strip>>>>;
|
|
582
689
|
systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
|
|
690
|
+
ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
691
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
692
|
+
id: z.ZodString;
|
|
693
|
+
label: z.ZodOptional<z.ZodString>;
|
|
694
|
+
description: z.ZodOptional<z.ZodString>;
|
|
695
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
696
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
697
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
698
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
699
|
+
}, z.core.$loose>>>>;
|
|
700
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
701
|
+
id: z.ZodString;
|
|
702
|
+
label: z.ZodOptional<z.ZodString>;
|
|
703
|
+
description: z.ZodOptional<z.ZodString>;
|
|
704
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
705
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
706
|
+
from: z.ZodString;
|
|
707
|
+
to: z.ZodString;
|
|
708
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
709
|
+
via: z.ZodOptional<z.ZodString>;
|
|
710
|
+
}, z.core.$loose>>>>;
|
|
711
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
712
|
+
id: z.ZodString;
|
|
713
|
+
label: z.ZodOptional<z.ZodString>;
|
|
714
|
+
description: z.ZodOptional<z.ZodString>;
|
|
715
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
716
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
717
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
718
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
719
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
720
|
+
}, z.core.$loose>>>>;
|
|
721
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
722
|
+
id: z.ZodString;
|
|
723
|
+
label: z.ZodOptional<z.ZodString>;
|
|
724
|
+
description: z.ZodOptional<z.ZodString>;
|
|
725
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
726
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
727
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
728
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
729
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
730
|
+
}, z.core.$loose>>>>;
|
|
731
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
732
|
+
id: z.ZodString;
|
|
733
|
+
label: z.ZodOptional<z.ZodString>;
|
|
734
|
+
description: z.ZodOptional<z.ZodString>;
|
|
735
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
736
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
737
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
738
|
+
}, z.core.$loose>>>>;
|
|
739
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
740
|
+
id: z.ZodString;
|
|
741
|
+
label: z.ZodOptional<z.ZodString>;
|
|
742
|
+
description: z.ZodOptional<z.ZodString>;
|
|
743
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
744
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
745
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
746
|
+
}, z.core.$loose>>>>;
|
|
747
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
748
|
+
id: z.ZodString;
|
|
749
|
+
label: z.ZodOptional<z.ZodString>;
|
|
750
|
+
description: z.ZodOptional<z.ZodString>;
|
|
751
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
752
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
753
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
754
|
+
}, z.core.$loose>>>>;
|
|
755
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
756
|
+
id: z.ZodString;
|
|
757
|
+
label: z.ZodOptional<z.ZodString>;
|
|
758
|
+
description: z.ZodOptional<z.ZodString>;
|
|
759
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
760
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
761
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
762
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
763
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
764
|
+
}, z.core.$loose>>>>;
|
|
765
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
766
|
+
id: z.ZodString;
|
|
767
|
+
label: z.ZodOptional<z.ZodString>;
|
|
768
|
+
description: z.ZodOptional<z.ZodString>;
|
|
769
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
770
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
771
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
772
|
+
}, z.core.$loose>>>>;
|
|
773
|
+
surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
774
|
+
id: z.ZodString;
|
|
775
|
+
label: z.ZodOptional<z.ZodString>;
|
|
776
|
+
description: z.ZodOptional<z.ZodString>;
|
|
777
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
778
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
779
|
+
route: z.ZodOptional<z.ZodString>;
|
|
780
|
+
}, z.core.$loose>>>>;
|
|
781
|
+
}, z.core.$strip>>>;
|
|
583
782
|
resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
584
783
|
id: z.ZodString;
|
|
585
784
|
order: z.ZodDefault<z.ZodNumber>;
|
|
@@ -590,6 +789,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
590
789
|
active: "active";
|
|
591
790
|
archived: "archived";
|
|
592
791
|
}>;
|
|
792
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
793
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
794
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
795
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
796
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
797
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
798
|
+
}, z.core.$strip>>;
|
|
799
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
800
|
+
path: z.ZodString;
|
|
801
|
+
role: z.ZodEnum<{
|
|
802
|
+
schema: "schema";
|
|
803
|
+
config: "config";
|
|
804
|
+
entrypoint: "entrypoint";
|
|
805
|
+
handler: "handler";
|
|
806
|
+
test: "test";
|
|
807
|
+
docs: "docs";
|
|
808
|
+
}>;
|
|
809
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
810
|
+
description: z.ZodOptional<z.ZodString>;
|
|
811
|
+
}, z.core.$strip>>>;
|
|
593
812
|
kind: z.ZodLiteral<"workflow">;
|
|
594
813
|
actionKey: z.ZodOptional<z.ZodString>;
|
|
595
814
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -614,6 +833,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
614
833
|
active: "active";
|
|
615
834
|
archived: "archived";
|
|
616
835
|
}>;
|
|
836
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
837
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
838
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
839
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
840
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
841
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
842
|
+
}, z.core.$strip>>;
|
|
843
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
844
|
+
path: z.ZodString;
|
|
845
|
+
role: z.ZodEnum<{
|
|
846
|
+
schema: "schema";
|
|
847
|
+
config: "config";
|
|
848
|
+
entrypoint: "entrypoint";
|
|
849
|
+
handler: "handler";
|
|
850
|
+
test: "test";
|
|
851
|
+
docs: "docs";
|
|
852
|
+
}>;
|
|
853
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
854
|
+
description: z.ZodOptional<z.ZodString>;
|
|
855
|
+
}, z.core.$strip>>>;
|
|
617
856
|
kind: z.ZodLiteral<"agent">;
|
|
618
857
|
agentKind: z.ZodEnum<{
|
|
619
858
|
platform: "platform";
|
|
@@ -668,6 +907,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
668
907
|
active: "active";
|
|
669
908
|
archived: "archived";
|
|
670
909
|
}>;
|
|
910
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
911
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
912
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
913
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
914
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
915
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
916
|
+
}, z.core.$strip>>;
|
|
917
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
918
|
+
path: z.ZodString;
|
|
919
|
+
role: z.ZodEnum<{
|
|
920
|
+
schema: "schema";
|
|
921
|
+
config: "config";
|
|
922
|
+
entrypoint: "entrypoint";
|
|
923
|
+
handler: "handler";
|
|
924
|
+
test: "test";
|
|
925
|
+
docs: "docs";
|
|
926
|
+
}>;
|
|
927
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
928
|
+
description: z.ZodOptional<z.ZodString>;
|
|
929
|
+
}, z.core.$strip>>>;
|
|
671
930
|
kind: z.ZodLiteral<"integration">;
|
|
672
931
|
provider: z.ZodString;
|
|
673
932
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -680,6 +939,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
680
939
|
active: "active";
|
|
681
940
|
archived: "archived";
|
|
682
941
|
}>;
|
|
942
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
943
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
944
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
945
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
946
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
947
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
948
|
+
}, z.core.$strip>>;
|
|
949
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
950
|
+
path: z.ZodString;
|
|
951
|
+
role: z.ZodEnum<{
|
|
952
|
+
schema: "schema";
|
|
953
|
+
config: "config";
|
|
954
|
+
entrypoint: "entrypoint";
|
|
955
|
+
handler: "handler";
|
|
956
|
+
test: "test";
|
|
957
|
+
docs: "docs";
|
|
958
|
+
}>;
|
|
959
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
960
|
+
description: z.ZodOptional<z.ZodString>;
|
|
961
|
+
}, z.core.$strip>>>;
|
|
683
962
|
kind: z.ZodLiteral<"script">;
|
|
684
963
|
language: z.ZodEnum<{
|
|
685
964
|
shell: "shell";
|
|
@@ -824,80 +1103,76 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
824
1103
|
title: z.ZodString;
|
|
825
1104
|
summary: z.ZodString;
|
|
826
1105
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
"
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
"
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
"
|
|
859
|
-
"
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
"
|
|
885
|
-
|
|
886
|
-
"action.launch": "action.launch";
|
|
887
|
-
"action.message": "action.message";
|
|
888
|
-
"action.escalate": "action.escalate";
|
|
889
|
-
"action.promote": "action.promote";
|
|
890
|
-
"action.submit": "action.submit";
|
|
891
|
-
"action.email": "action.email";
|
|
1106
|
+
message: "message";
|
|
1107
|
+
error: "error";
|
|
1108
|
+
agent: "agent";
|
|
1109
|
+
workflow: "workflow";
|
|
1110
|
+
"google-sheets": "google-sheets";
|
|
1111
|
+
dashboard: "dashboard";
|
|
1112
|
+
calendar: "calendar";
|
|
1113
|
+
sales: "sales";
|
|
1114
|
+
crm: "crm";
|
|
1115
|
+
"lead-gen": "lead-gen";
|
|
1116
|
+
projects: "projects";
|
|
1117
|
+
operations: "operations";
|
|
1118
|
+
monitoring: "monitoring";
|
|
1119
|
+
knowledge: "knowledge";
|
|
1120
|
+
settings: "settings";
|
|
1121
|
+
admin: "admin";
|
|
1122
|
+
archive: "archive";
|
|
1123
|
+
business: "business";
|
|
1124
|
+
finance: "finance";
|
|
1125
|
+
platform: "platform";
|
|
1126
|
+
seo: "seo";
|
|
1127
|
+
playbook: "playbook";
|
|
1128
|
+
strategy: "strategy";
|
|
1129
|
+
reference: "reference";
|
|
1130
|
+
integration: "integration";
|
|
1131
|
+
database: "database";
|
|
1132
|
+
user: "user";
|
|
1133
|
+
team: "team";
|
|
1134
|
+
gmail: "gmail";
|
|
1135
|
+
attio: "attio";
|
|
1136
|
+
overview: "overview";
|
|
1137
|
+
"command-view": "command-view";
|
|
1138
|
+
"command-queue": "command-queue";
|
|
1139
|
+
pipeline: "pipeline";
|
|
1140
|
+
lists: "lists";
|
|
1141
|
+
resources: "resources";
|
|
1142
|
+
approve: "approve";
|
|
1143
|
+
reject: "reject";
|
|
1144
|
+
retry: "retry";
|
|
1145
|
+
edit: "edit";
|
|
1146
|
+
view: "view";
|
|
1147
|
+
launch: "launch";
|
|
1148
|
+
escalate: "escalate";
|
|
1149
|
+
promote: "promote";
|
|
1150
|
+
submit: "submit";
|
|
1151
|
+
email: "email";
|
|
1152
|
+
success: "success";
|
|
1153
|
+
warning: "warning";
|
|
1154
|
+
info: "info";
|
|
1155
|
+
pending: "pending";
|
|
1156
|
+
bolt: "bolt";
|
|
1157
|
+
building: "building";
|
|
1158
|
+
briefcase: "briefcase";
|
|
1159
|
+
apps: "apps";
|
|
1160
|
+
graph: "graph";
|
|
1161
|
+
shield: "shield";
|
|
1162
|
+
users: "users";
|
|
1163
|
+
"chart-bar": "chart-bar";
|
|
1164
|
+
search: "search";
|
|
892
1165
|
}>, z.ZodString]>>;
|
|
893
1166
|
externalUrl: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
sourceFilePath: z.ZodOptional<z.ZodString>;
|
|
894
1168
|
body: z.ZodString;
|
|
895
1169
|
links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
896
1170
|
target: z.ZodObject<{
|
|
897
1171
|
kind: z.ZodEnum<{
|
|
1172
|
+
knowledge: "knowledge";
|
|
898
1173
|
system: "system";
|
|
899
1174
|
action: "action";
|
|
900
|
-
|
|
1175
|
+
ontology: "ontology";
|
|
901
1176
|
role: "role";
|
|
902
1177
|
goal: "goal";
|
|
903
1178
|
stage: "stage";
|
|
@@ -909,10 +1184,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
909
1184
|
id: z.ZodString;
|
|
910
1185
|
}, z.core.$strip>;
|
|
911
1186
|
}, z.core.$strip>, z.ZodObject<{
|
|
912
|
-
nodeId: z.ZodString
|
|
1187
|
+
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
913
1188
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
914
1189
|
target: {
|
|
915
|
-
kind: "system" | "action" | "
|
|
1190
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
916
1191
|
id: string;
|
|
917
1192
|
};
|
|
918
1193
|
nodeId: string;
|
|
@@ -920,7 +1195,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
920
1195
|
nodeId: string;
|
|
921
1196
|
} | {
|
|
922
1197
|
target: {
|
|
923
|
-
kind: "system" | "action" | "
|
|
1198
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
924
1199
|
id: string;
|
|
925
1200
|
};
|
|
926
1201
|
}>>>>;
|
|
@@ -933,8 +1208,8 @@ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
|
|
|
933
1208
|
|
|
934
1209
|
type OrganizationGraphNodeKind = 'organization' | 'system' | 'role' | 'action' | 'entity' | 'event' | 'policy' | 'stage' | 'resource' | 'knowledge' | 'customer-segment' | 'offering' | 'goal' | 'surface' | 'navigation-group'
|
|
935
1210
|
/** Phase 3 preview — Phase 4 populates this kind via graph projection of system.content entries. */
|
|
936
|
-
| 'content-node';
|
|
937
|
-
type OrganizationGraphEdgeKind = 'contains' | 'references' | 'maps_to' | 'uses' | 'governs' | 'links' | 'affects' | 'emits' | 'originates_from' | 'triggers' | 'applies_to' | 'effects';
|
|
1211
|
+
| 'ontology' | 'content-node';
|
|
1212
|
+
type OrganizationGraphEdgeKind = 'contains' | 'references' | 'maps_to' | 'uses' | 'governs' | 'links' | 'affects' | 'emits' | 'originates_from' | 'triggers' | 'applies_to' | 'effects' | 'implements' | 'reads' | 'writes' | 'uses_catalog';
|
|
938
1213
|
|
|
939
1214
|
interface OrganizationGraphNode {
|
|
940
1215
|
id: string;
|
|
@@ -944,6 +1219,7 @@ interface OrganizationGraphNode {
|
|
|
944
1219
|
description?: string;
|
|
945
1220
|
icon?: OrganizationModelIconToken;
|
|
946
1221
|
enabled?: boolean;
|
|
1222
|
+
ontologyKind?: string;
|
|
947
1223
|
resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint' | 'script';
|
|
948
1224
|
}
|
|
949
1225
|
interface OrganizationGraphEdge {
|
|
@@ -1008,7 +1284,7 @@ declare function governs(graph: OrganizationGraph, nodeId: string): string[];
|
|
|
1008
1284
|
*/
|
|
1009
1285
|
declare function governedBy(graph: OrganizationGraph, nodeId: string): string[];
|
|
1010
1286
|
/** The recognized mount axes for Knowledge Map paths. */
|
|
1011
|
-
type KnowledgeMount = 'by-system' | 'by-kind' | 'by-owner' | 'graph' | 'node';
|
|
1287
|
+
type KnowledgeMount = 'by-system' | 'by-ontology' | 'by-kind' | 'by-owner' | 'graph' | 'node';
|
|
1012
1288
|
/**
|
|
1013
1289
|
* The result of parsing a Knowledge Map path string.
|
|
1014
1290
|
*
|
|
@@ -1016,6 +1292,7 @@ type KnowledgeMount = 'by-system' | 'by-kind' | 'by-owner' | 'graph' | 'node';
|
|
|
1016
1292
|
*
|
|
1017
1293
|
* Per-mount arg arrays:
|
|
1018
1294
|
* - `by-system`: `[systemId]` (e.g. `['sales.crm']`)
|
|
1295
|
+
* - `by-ontology`:`[ontologyId]` (e.g. `['sales.crm:object/deal']`)
|
|
1019
1296
|
* - `by-kind`: `[kind]` (e.g. `['playbook']`)
|
|
1020
1297
|
* - `by-owner`: `[ownerId]` (e.g. `['role.ops-lead']`)
|
|
1021
1298
|
* - `graph`: `[nodeId, verb]` where verb is `'governs'` or `'governed-by'`
|
|
@@ -1030,6 +1307,7 @@ interface ParsedKnowledgePath {
|
|
|
1030
1307
|
*
|
|
1031
1308
|
* Supported path patterns:
|
|
1032
1309
|
* `/by-system/<systemId>` -> `{ mount: 'by-system', args: ['<systemId>'] }`
|
|
1310
|
+
* `/by-ontology/<ontologyId>` -> `{ mount: 'by-ontology', args: ['<ontologyId>'] }`
|
|
1033
1311
|
* `/by-kind/<kind>` → `{ mount: 'by-kind', args: ['<kind>'] }`
|
|
1034
1312
|
* `/by-owner/<ownerId>` → `{ mount: 'by-owner', args: ['<ownerId>'] }`
|
|
1035
1313
|
* `/graph/<nodeId>/governs` → `{ mount: 'graph', args: ['<nodeId>', 'governs'] }`
|