@elevasis/core 0.23.0 → 0.24.1
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 +4343 -2690
- package/dist/index.js +1101 -156
- package/dist/knowledge/index.d.ts +574 -210
- package/dist/knowledge/index.js +104 -1
- package/dist/organization-model/index.d.ts +4343 -2690
- package/dist/organization-model/index.js +1101 -156
- package/dist/test-utils/index.d.ts +483 -109
- package/dist/test-utils/index.js +904 -144
- package/package.json +3 -3
- 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 +2137 -2093
- 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 +195 -197
- 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 +387 -277
- 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__/domains/topology.test.ts +188 -0
- 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 +1312 -862
- 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 +844 -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 +42 -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 +202 -124
- 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/domains/topology.ts +261 -0
- package/src/organization-model/foundation.ts +75 -75
- package/src/organization-model/graph/build.ts +1043 -867
- 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 +75 -68
- package/src/organization-model/graph/types.ts +71 -64
- package/src/organization-model/helpers.ts +289 -241
- package/src/organization-model/icons.ts +78 -66
- package/src/organization-model/index.ts +128 -125
- package/src/organization-model/migration-helpers.ts +247 -244
- package/src/organization-model/ontology.ts +658 -0
- package/src/organization-model/organization-graph.mdx +110 -90
- package/src/organization-model/organization-model.mdx +225 -213
- package/src/organization-model/published.ts +299 -222
- package/src/organization-model/resolve.ts +146 -91
- package/src/organization-model/schema.ts +818 -659
- package/src/organization-model/surface-projection.ts +212 -212
- package/src/organization-model/types.ts +179 -155
- 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 +1444 -1259
- 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 +886 -886
- 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 +876 -684
- 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 +2136 -2093
- 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 +3 -0
- 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,10 +426,18 @@ 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;
|
|
337
436
|
}, z.core.$strip>>;
|
|
437
|
+
topology: z.ZodOptional<z.ZodObject<{
|
|
438
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
439
|
+
lastModified: z.ZodString;
|
|
440
|
+
}, z.core.$strip>>;
|
|
338
441
|
actions: z.ZodOptional<z.ZodObject<{
|
|
339
442
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
340
443
|
lastModified: z.ZodString;
|
|
@@ -380,10 +483,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
380
483
|
version: 1;
|
|
381
484
|
lastModified: string;
|
|
382
485
|
};
|
|
486
|
+
ontology: {
|
|
487
|
+
version: 1;
|
|
488
|
+
lastModified: string;
|
|
489
|
+
};
|
|
383
490
|
resources: {
|
|
384
491
|
version: 1;
|
|
385
492
|
lastModified: string;
|
|
386
493
|
};
|
|
494
|
+
topology: {
|
|
495
|
+
version: 1;
|
|
496
|
+
lastModified: string;
|
|
497
|
+
};
|
|
387
498
|
actions: {
|
|
388
499
|
version: 1;
|
|
389
500
|
lastModified: string;
|
|
@@ -429,10 +540,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
429
540
|
version: 1;
|
|
430
541
|
lastModified: string;
|
|
431
542
|
} | undefined;
|
|
543
|
+
ontology?: {
|
|
544
|
+
version: 1;
|
|
545
|
+
lastModified: string;
|
|
546
|
+
} | undefined;
|
|
432
547
|
resources?: {
|
|
433
548
|
version: 1;
|
|
434
549
|
lastModified: string;
|
|
435
550
|
} | undefined;
|
|
551
|
+
topology?: {
|
|
552
|
+
version: 1;
|
|
553
|
+
lastModified: string;
|
|
554
|
+
} | undefined;
|
|
436
555
|
actions?: {
|
|
437
556
|
version: 1;
|
|
438
557
|
lastModified: string;
|
|
@@ -580,18 +699,132 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
580
699
|
}, z.core.$strip>>>;
|
|
581
700
|
}, z.core.$strip>>>>;
|
|
582
701
|
systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
|
|
702
|
+
ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
703
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
704
|
+
id: z.ZodString;
|
|
705
|
+
label: z.ZodOptional<z.ZodString>;
|
|
706
|
+
description: z.ZodOptional<z.ZodString>;
|
|
707
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
708
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
709
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
710
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
711
|
+
}, z.core.$loose>>>>;
|
|
712
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
713
|
+
id: z.ZodString;
|
|
714
|
+
label: z.ZodOptional<z.ZodString>;
|
|
715
|
+
description: z.ZodOptional<z.ZodString>;
|
|
716
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
717
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
718
|
+
from: z.ZodString;
|
|
719
|
+
to: z.ZodString;
|
|
720
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
721
|
+
via: z.ZodOptional<z.ZodString>;
|
|
722
|
+
}, z.core.$loose>>>>;
|
|
723
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
724
|
+
id: z.ZodString;
|
|
725
|
+
label: z.ZodOptional<z.ZodString>;
|
|
726
|
+
description: z.ZodOptional<z.ZodString>;
|
|
727
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
728
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
729
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
730
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
731
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
732
|
+
}, z.core.$loose>>>>;
|
|
733
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
734
|
+
id: z.ZodString;
|
|
735
|
+
label: z.ZodOptional<z.ZodString>;
|
|
736
|
+
description: z.ZodOptional<z.ZodString>;
|
|
737
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
738
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
739
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
740
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
741
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
742
|
+
}, z.core.$loose>>>>;
|
|
743
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
744
|
+
id: z.ZodString;
|
|
745
|
+
label: z.ZodOptional<z.ZodString>;
|
|
746
|
+
description: z.ZodOptional<z.ZodString>;
|
|
747
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
748
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
749
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
750
|
+
}, z.core.$loose>>>>;
|
|
751
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
752
|
+
id: z.ZodString;
|
|
753
|
+
label: z.ZodOptional<z.ZodString>;
|
|
754
|
+
description: z.ZodOptional<z.ZodString>;
|
|
755
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
756
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
757
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
758
|
+
}, z.core.$loose>>>>;
|
|
759
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
760
|
+
id: z.ZodString;
|
|
761
|
+
label: z.ZodOptional<z.ZodString>;
|
|
762
|
+
description: z.ZodOptional<z.ZodString>;
|
|
763
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
764
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
765
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
766
|
+
}, z.core.$loose>>>>;
|
|
767
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
768
|
+
id: z.ZodString;
|
|
769
|
+
label: z.ZodOptional<z.ZodString>;
|
|
770
|
+
description: z.ZodOptional<z.ZodString>;
|
|
771
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
772
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
773
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
774
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
775
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
776
|
+
}, z.core.$loose>>>>;
|
|
777
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
778
|
+
id: z.ZodString;
|
|
779
|
+
label: z.ZodOptional<z.ZodString>;
|
|
780
|
+
description: z.ZodOptional<z.ZodString>;
|
|
781
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
782
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
783
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
784
|
+
}, z.core.$loose>>>>;
|
|
785
|
+
surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
786
|
+
id: z.ZodString;
|
|
787
|
+
label: z.ZodOptional<z.ZodString>;
|
|
788
|
+
description: z.ZodOptional<z.ZodString>;
|
|
789
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
790
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
791
|
+
route: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$loose>>>>;
|
|
793
|
+
}, z.core.$strip>>>;
|
|
583
794
|
resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
584
795
|
id: z.ZodString;
|
|
585
796
|
order: z.ZodDefault<z.ZodNumber>;
|
|
586
797
|
systemPath: z.ZodString;
|
|
798
|
+
title: z.ZodOptional<z.ZodString>;
|
|
799
|
+
description: z.ZodOptional<z.ZodString>;
|
|
587
800
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
588
801
|
status: z.ZodEnum<{
|
|
589
802
|
deprecated: "deprecated";
|
|
590
803
|
active: "active";
|
|
591
804
|
archived: "archived";
|
|
592
805
|
}>;
|
|
806
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
807
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
808
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
809
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
810
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
811
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
812
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
813
|
+
}, z.core.$strip>>;
|
|
814
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
815
|
+
path: z.ZodString;
|
|
816
|
+
role: z.ZodEnum<{
|
|
817
|
+
schema: "schema";
|
|
818
|
+
config: "config";
|
|
819
|
+
entrypoint: "entrypoint";
|
|
820
|
+
handler: "handler";
|
|
821
|
+
test: "test";
|
|
822
|
+
docs: "docs";
|
|
823
|
+
}>;
|
|
824
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
825
|
+
description: z.ZodOptional<z.ZodString>;
|
|
826
|
+
}, z.core.$strip>>>;
|
|
593
827
|
kind: z.ZodLiteral<"workflow">;
|
|
594
|
-
actionKey: z.ZodOptional<z.ZodString>;
|
|
595
828
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
596
829
|
eventKey: z.ZodString;
|
|
597
830
|
label: z.ZodString;
|
|
@@ -608,12 +841,35 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
608
841
|
id: z.ZodString;
|
|
609
842
|
order: z.ZodDefault<z.ZodNumber>;
|
|
610
843
|
systemPath: z.ZodString;
|
|
844
|
+
title: z.ZodOptional<z.ZodString>;
|
|
845
|
+
description: z.ZodOptional<z.ZodString>;
|
|
611
846
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
612
847
|
status: z.ZodEnum<{
|
|
613
848
|
deprecated: "deprecated";
|
|
614
849
|
active: "active";
|
|
615
850
|
archived: "archived";
|
|
616
851
|
}>;
|
|
852
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
853
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
854
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
855
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
856
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
857
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
858
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
859
|
+
}, z.core.$strip>>;
|
|
860
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
861
|
+
path: z.ZodString;
|
|
862
|
+
role: z.ZodEnum<{
|
|
863
|
+
schema: "schema";
|
|
864
|
+
config: "config";
|
|
865
|
+
entrypoint: "entrypoint";
|
|
866
|
+
handler: "handler";
|
|
867
|
+
test: "test";
|
|
868
|
+
docs: "docs";
|
|
869
|
+
}>;
|
|
870
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
871
|
+
description: z.ZodOptional<z.ZodString>;
|
|
872
|
+
}, z.core.$strip>>>;
|
|
617
873
|
kind: z.ZodLiteral<"agent">;
|
|
618
874
|
agentKind: z.ZodEnum<{
|
|
619
875
|
platform: "platform";
|
|
@@ -662,24 +918,70 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
662
918
|
id: z.ZodString;
|
|
663
919
|
order: z.ZodDefault<z.ZodNumber>;
|
|
664
920
|
systemPath: z.ZodString;
|
|
921
|
+
title: z.ZodOptional<z.ZodString>;
|
|
922
|
+
description: z.ZodOptional<z.ZodString>;
|
|
665
923
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
666
924
|
status: z.ZodEnum<{
|
|
667
925
|
deprecated: "deprecated";
|
|
668
926
|
active: "active";
|
|
669
927
|
archived: "archived";
|
|
670
928
|
}>;
|
|
929
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
930
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
931
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
932
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
933
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
934
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
935
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
936
|
+
}, z.core.$strip>>;
|
|
937
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
938
|
+
path: z.ZodString;
|
|
939
|
+
role: z.ZodEnum<{
|
|
940
|
+
schema: "schema";
|
|
941
|
+
config: "config";
|
|
942
|
+
entrypoint: "entrypoint";
|
|
943
|
+
handler: "handler";
|
|
944
|
+
test: "test";
|
|
945
|
+
docs: "docs";
|
|
946
|
+
}>;
|
|
947
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
948
|
+
description: z.ZodOptional<z.ZodString>;
|
|
949
|
+
}, z.core.$strip>>>;
|
|
671
950
|
kind: z.ZodLiteral<"integration">;
|
|
672
951
|
provider: z.ZodString;
|
|
673
952
|
}, z.core.$strip>, z.ZodObject<{
|
|
674
953
|
id: z.ZodString;
|
|
675
954
|
order: z.ZodDefault<z.ZodNumber>;
|
|
676
955
|
systemPath: z.ZodString;
|
|
956
|
+
title: z.ZodOptional<z.ZodString>;
|
|
957
|
+
description: z.ZodOptional<z.ZodString>;
|
|
677
958
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
678
959
|
status: z.ZodEnum<{
|
|
679
960
|
deprecated: "deprecated";
|
|
680
961
|
active: "active";
|
|
681
962
|
archived: "archived";
|
|
682
963
|
}>;
|
|
964
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
965
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
966
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
967
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
968
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
969
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
970
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
971
|
+
}, z.core.$strip>>;
|
|
972
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
973
|
+
path: z.ZodString;
|
|
974
|
+
role: z.ZodEnum<{
|
|
975
|
+
schema: "schema";
|
|
976
|
+
config: "config";
|
|
977
|
+
entrypoint: "entrypoint";
|
|
978
|
+
handler: "handler";
|
|
979
|
+
test: "test";
|
|
980
|
+
docs: "docs";
|
|
981
|
+
}>;
|
|
982
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
983
|
+
description: z.ZodOptional<z.ZodString>;
|
|
984
|
+
}, z.core.$strip>>>;
|
|
683
985
|
kind: z.ZodLiteral<"script">;
|
|
684
986
|
language: z.ZodEnum<{
|
|
685
987
|
shell: "shell";
|
|
@@ -691,6 +993,69 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
691
993
|
file: z.ZodString;
|
|
692
994
|
}, z.core.$strip>]>;
|
|
693
995
|
}, z.core.$strip>], "kind">>>>;
|
|
996
|
+
topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
997
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
998
|
+
relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
999
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1000
|
+
kind: z.ZodLiteral<"system">;
|
|
1001
|
+
id: z.ZodString;
|
|
1002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1003
|
+
kind: z.ZodLiteral<"resource">;
|
|
1004
|
+
id: z.ZodString;
|
|
1005
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1006
|
+
kind: z.ZodLiteral<"ontology">;
|
|
1007
|
+
id: z.ZodString;
|
|
1008
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1009
|
+
kind: z.ZodLiteral<"policy">;
|
|
1010
|
+
id: z.ZodString;
|
|
1011
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1012
|
+
kind: z.ZodLiteral<"role">;
|
|
1013
|
+
id: z.ZodString;
|
|
1014
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1015
|
+
kind: z.ZodLiteral<"trigger">;
|
|
1016
|
+
id: z.ZodString;
|
|
1017
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1018
|
+
kind: z.ZodLiteral<"humanCheckpoint">;
|
|
1019
|
+
id: z.ZodString;
|
|
1020
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1021
|
+
kind: z.ZodLiteral<"externalResource">;
|
|
1022
|
+
id: z.ZodString;
|
|
1023
|
+
}, z.core.$strip>], "kind">;
|
|
1024
|
+
kind: z.ZodEnum<{
|
|
1025
|
+
triggers: "triggers";
|
|
1026
|
+
uses: "uses";
|
|
1027
|
+
approval: "approval";
|
|
1028
|
+
}>;
|
|
1029
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1030
|
+
kind: z.ZodLiteral<"system">;
|
|
1031
|
+
id: z.ZodString;
|
|
1032
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1033
|
+
kind: z.ZodLiteral<"resource">;
|
|
1034
|
+
id: z.ZodString;
|
|
1035
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1036
|
+
kind: z.ZodLiteral<"ontology">;
|
|
1037
|
+
id: z.ZodString;
|
|
1038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1039
|
+
kind: z.ZodLiteral<"policy">;
|
|
1040
|
+
id: z.ZodString;
|
|
1041
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1042
|
+
kind: z.ZodLiteral<"role">;
|
|
1043
|
+
id: z.ZodString;
|
|
1044
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1045
|
+
kind: z.ZodLiteral<"trigger">;
|
|
1046
|
+
id: z.ZodString;
|
|
1047
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1048
|
+
kind: z.ZodLiteral<"humanCheckpoint">;
|
|
1049
|
+
id: z.ZodString;
|
|
1050
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1051
|
+
kind: z.ZodLiteral<"externalResource">;
|
|
1052
|
+
id: z.ZodString;
|
|
1053
|
+
}, z.core.$strip>], "kind">;
|
|
1054
|
+
systemPath: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1056
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1057
|
+
}, z.core.$strip>>>;
|
|
1058
|
+
}, z.core.$strip>>>;
|
|
694
1059
|
actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
695
1060
|
id: z.ZodString;
|
|
696
1061
|
order: z.ZodNumber;
|
|
@@ -824,80 +1189,76 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
824
1189
|
title: z.ZodString;
|
|
825
1190
|
summary: z.ZodString;
|
|
826
1191
|
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";
|
|
1192
|
+
message: "message";
|
|
1193
|
+
error: "error";
|
|
1194
|
+
agent: "agent";
|
|
1195
|
+
workflow: "workflow";
|
|
1196
|
+
"google-sheets": "google-sheets";
|
|
1197
|
+
dashboard: "dashboard";
|
|
1198
|
+
calendar: "calendar";
|
|
1199
|
+
sales: "sales";
|
|
1200
|
+
crm: "crm";
|
|
1201
|
+
"lead-gen": "lead-gen";
|
|
1202
|
+
projects: "projects";
|
|
1203
|
+
operations: "operations";
|
|
1204
|
+
monitoring: "monitoring";
|
|
1205
|
+
knowledge: "knowledge";
|
|
1206
|
+
settings: "settings";
|
|
1207
|
+
admin: "admin";
|
|
1208
|
+
archive: "archive";
|
|
1209
|
+
business: "business";
|
|
1210
|
+
finance: "finance";
|
|
1211
|
+
platform: "platform";
|
|
1212
|
+
seo: "seo";
|
|
1213
|
+
playbook: "playbook";
|
|
1214
|
+
strategy: "strategy";
|
|
1215
|
+
reference: "reference";
|
|
1216
|
+
integration: "integration";
|
|
1217
|
+
database: "database";
|
|
1218
|
+
user: "user";
|
|
1219
|
+
team: "team";
|
|
1220
|
+
gmail: "gmail";
|
|
1221
|
+
attio: "attio";
|
|
1222
|
+
overview: "overview";
|
|
1223
|
+
"command-view": "command-view";
|
|
1224
|
+
"command-queue": "command-queue";
|
|
1225
|
+
pipeline: "pipeline";
|
|
1226
|
+
lists: "lists";
|
|
1227
|
+
resources: "resources";
|
|
1228
|
+
approve: "approve";
|
|
1229
|
+
reject: "reject";
|
|
1230
|
+
retry: "retry";
|
|
1231
|
+
edit: "edit";
|
|
1232
|
+
view: "view";
|
|
1233
|
+
launch: "launch";
|
|
1234
|
+
escalate: "escalate";
|
|
1235
|
+
promote: "promote";
|
|
1236
|
+
submit: "submit";
|
|
1237
|
+
email: "email";
|
|
1238
|
+
success: "success";
|
|
1239
|
+
warning: "warning";
|
|
1240
|
+
info: "info";
|
|
1241
|
+
pending: "pending";
|
|
1242
|
+
bolt: "bolt";
|
|
1243
|
+
building: "building";
|
|
1244
|
+
briefcase: "briefcase";
|
|
1245
|
+
apps: "apps";
|
|
1246
|
+
graph: "graph";
|
|
1247
|
+
shield: "shield";
|
|
1248
|
+
users: "users";
|
|
1249
|
+
"chart-bar": "chart-bar";
|
|
1250
|
+
search: "search";
|
|
892
1251
|
}>, z.ZodString]>>;
|
|
893
1252
|
externalUrl: z.ZodOptional<z.ZodString>;
|
|
1253
|
+
sourceFilePath: z.ZodOptional<z.ZodString>;
|
|
894
1254
|
body: z.ZodString;
|
|
895
1255
|
links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
896
1256
|
target: z.ZodObject<{
|
|
897
1257
|
kind: z.ZodEnum<{
|
|
1258
|
+
knowledge: "knowledge";
|
|
898
1259
|
system: "system";
|
|
899
1260
|
action: "action";
|
|
900
|
-
|
|
1261
|
+
ontology: "ontology";
|
|
901
1262
|
role: "role";
|
|
902
1263
|
goal: "goal";
|
|
903
1264
|
stage: "stage";
|
|
@@ -909,10 +1270,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
909
1270
|
id: z.ZodString;
|
|
910
1271
|
}, z.core.$strip>;
|
|
911
1272
|
}, z.core.$strip>, z.ZodObject<{
|
|
912
|
-
nodeId: z.ZodString
|
|
1273
|
+
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
913
1274
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
914
1275
|
target: {
|
|
915
|
-
kind: "system" | "action" | "
|
|
1276
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
916
1277
|
id: string;
|
|
917
1278
|
};
|
|
918
1279
|
nodeId: string;
|
|
@@ -920,7 +1281,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
920
1281
|
nodeId: string;
|
|
921
1282
|
} | {
|
|
922
1283
|
target: {
|
|
923
|
-
kind: "system" | "action" | "
|
|
1284
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
924
1285
|
id: string;
|
|
925
1286
|
};
|
|
926
1287
|
}>>>>;
|
|
@@ -933,8 +1294,8 @@ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
|
|
|
933
1294
|
|
|
934
1295
|
type OrganizationGraphNodeKind = 'organization' | 'system' | 'role' | 'action' | 'entity' | 'event' | 'policy' | 'stage' | 'resource' | 'knowledge' | 'customer-segment' | 'offering' | 'goal' | 'surface' | 'navigation-group'
|
|
935
1296
|
/** 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';
|
|
1297
|
+
| 'ontology' | 'content-node';
|
|
1298
|
+
type OrganizationGraphEdgeKind = 'contains' | 'references' | 'maps_to' | 'uses' | 'governs' | 'links' | 'affects' | 'emits' | 'originates_from' | 'triggers' | 'approval' | 'applies_to' | 'effects' | 'actions' | 'reads' | 'writes' | 'uses_catalog';
|
|
938
1299
|
|
|
939
1300
|
interface OrganizationGraphNode {
|
|
940
1301
|
id: string;
|
|
@@ -944,6 +1305,7 @@ interface OrganizationGraphNode {
|
|
|
944
1305
|
description?: string;
|
|
945
1306
|
icon?: OrganizationModelIconToken;
|
|
946
1307
|
enabled?: boolean;
|
|
1308
|
+
ontologyKind?: string;
|
|
947
1309
|
resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint' | 'script';
|
|
948
1310
|
}
|
|
949
1311
|
interface OrganizationGraphEdge {
|
|
@@ -1008,7 +1370,7 @@ declare function governs(graph: OrganizationGraph, nodeId: string): string[];
|
|
|
1008
1370
|
*/
|
|
1009
1371
|
declare function governedBy(graph: OrganizationGraph, nodeId: string): string[];
|
|
1010
1372
|
/** The recognized mount axes for Knowledge Map paths. */
|
|
1011
|
-
type KnowledgeMount = 'by-system' | 'by-kind' | 'by-owner' | 'graph' | 'node';
|
|
1373
|
+
type KnowledgeMount = 'by-system' | 'by-ontology' | 'by-kind' | 'by-owner' | 'graph' | 'node';
|
|
1012
1374
|
/**
|
|
1013
1375
|
* The result of parsing a Knowledge Map path string.
|
|
1014
1376
|
*
|
|
@@ -1016,6 +1378,7 @@ type KnowledgeMount = 'by-system' | 'by-kind' | 'by-owner' | 'graph' | 'node';
|
|
|
1016
1378
|
*
|
|
1017
1379
|
* Per-mount arg arrays:
|
|
1018
1380
|
* - `by-system`: `[systemId]` (e.g. `['sales.crm']`)
|
|
1381
|
+
* - `by-ontology`:`[ontologyId]` (e.g. `['sales.crm:object/deal']`)
|
|
1019
1382
|
* - `by-kind`: `[kind]` (e.g. `['playbook']`)
|
|
1020
1383
|
* - `by-owner`: `[ownerId]` (e.g. `['role.ops-lead']`)
|
|
1021
1384
|
* - `graph`: `[nodeId, verb]` where verb is `'governs'` or `'governed-by'`
|
|
@@ -1030,6 +1393,7 @@ interface ParsedKnowledgePath {
|
|
|
1030
1393
|
*
|
|
1031
1394
|
* Supported path patterns:
|
|
1032
1395
|
* `/by-system/<systemId>` -> `{ mount: 'by-system', args: ['<systemId>'] }`
|
|
1396
|
+
* `/by-ontology/<ontologyId>` -> `{ mount: 'by-ontology', args: ['<ontologyId>'] }`
|
|
1033
1397
|
* `/by-kind/<kind>` → `{ mount: 'by-kind', args: ['<kind>'] }`
|
|
1034
1398
|
* `/by-owner/<ownerId>` → `{ mount: 'by-owner', args: ['<ownerId>'] }`
|
|
1035
1399
|
* `/graph/<nodeId>/governs` → `{ mount: 'graph', args: ['<nodeId>', 'governs'] }`
|