@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
|
@@ -1601,6 +1601,7 @@ type Database = {
|
|
|
1601
1601
|
origin_execution_id: string | null;
|
|
1602
1602
|
output: Json | null;
|
|
1603
1603
|
resource_id: string;
|
|
1604
|
+
resource_snapshot: Json | null;
|
|
1604
1605
|
resource_status: string;
|
|
1605
1606
|
resource_type: string;
|
|
1606
1607
|
resource_version: string | null;
|
|
@@ -1626,6 +1627,7 @@ type Database = {
|
|
|
1626
1627
|
origin_execution_id?: string | null;
|
|
1627
1628
|
output?: Json | null;
|
|
1628
1629
|
resource_id: string;
|
|
1630
|
+
resource_snapshot?: Json | null;
|
|
1629
1631
|
resource_status?: string;
|
|
1630
1632
|
resource_type?: string;
|
|
1631
1633
|
resource_version?: string | null;
|
|
@@ -1651,6 +1653,7 @@ type Database = {
|
|
|
1651
1653
|
origin_execution_id?: string | null;
|
|
1652
1654
|
output?: Json | null;
|
|
1653
1655
|
resource_id?: string;
|
|
1656
|
+
resource_snapshot?: Json | null;
|
|
1654
1657
|
resource_status?: string;
|
|
1655
1658
|
resource_type?: string;
|
|
1656
1659
|
resource_version?: string | null;
|
|
@@ -3574,40 +3577,99 @@ declare function makeContact(overrides?: Partial<BaseContactFixture>): BaseConta
|
|
|
3574
3577
|
declare function makeMilestone(overrides?: Partial<BaseMilestoneFixture>): BaseMilestoneFixture;
|
|
3575
3578
|
declare function makeTask(overrides?: Partial<BaseTaskFixture>): BaseTaskFixture;
|
|
3576
3579
|
|
|
3577
|
-
declare const
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3580
|
+
declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
3581
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3582
|
+
id: z.ZodString;
|
|
3583
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3585
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3586
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3587
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3588
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3589
|
+
}, z.core.$loose>>>>;
|
|
3590
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3591
|
+
id: z.ZodString;
|
|
3592
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3593
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3594
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3595
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3596
|
+
from: z.ZodString;
|
|
3597
|
+
to: z.ZodString;
|
|
3598
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
3599
|
+
via: z.ZodOptional<z.ZodString>;
|
|
3600
|
+
}, z.core.$loose>>>>;
|
|
3601
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3602
|
+
id: z.ZodString;
|
|
3603
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3604
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3605
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3606
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3607
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
3608
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3609
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3610
|
+
}, z.core.$loose>>>>;
|
|
3611
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3612
|
+
id: z.ZodString;
|
|
3613
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3614
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3615
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3616
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3617
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
3618
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
3619
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3620
|
+
}, z.core.$loose>>>>;
|
|
3621
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3622
|
+
id: z.ZodString;
|
|
3623
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3624
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3625
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3626
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3627
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3628
|
+
}, z.core.$loose>>>>;
|
|
3629
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3630
|
+
id: z.ZodString;
|
|
3631
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3632
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3633
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3634
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3635
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3636
|
+
}, z.core.$loose>>>>;
|
|
3637
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3638
|
+
id: z.ZodString;
|
|
3639
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3640
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3641
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3642
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3643
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
3644
|
+
}, z.core.$loose>>>>;
|
|
3645
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3646
|
+
id: z.ZodString;
|
|
3647
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3648
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3649
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3650
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3651
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
3652
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
3653
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
3654
|
+
}, z.core.$loose>>>>;
|
|
3655
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3656
|
+
id: z.ZodString;
|
|
3657
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3658
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3659
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3660
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3661
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
3662
|
+
}, z.core.$loose>>>>;
|
|
3663
|
+
surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3664
|
+
id: z.ZodString;
|
|
3665
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3666
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3667
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
3668
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3669
|
+
route: z.ZodOptional<z.ZodString>;
|
|
3670
|
+
}, z.core.$loose>>>>;
|
|
3671
|
+
}, z.core.$strip>>;
|
|
3672
|
+
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
3611
3673
|
|
|
3612
3674
|
/**
|
|
3613
3675
|
* Placeholder discriminated union for ContentNode (Wave 1A).
|
|
@@ -3627,6 +3689,10 @@ declare const ContentNodeSchema: z.ZodObject<{
|
|
|
3627
3689
|
}, z.core.$strip>;
|
|
3628
3690
|
type ContentNode = z.infer<typeof ContentNodeSchema>;
|
|
3629
3691
|
|
|
3692
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
3693
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
3694
|
+
[key: string]: JsonValue;
|
|
3695
|
+
};
|
|
3630
3696
|
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
3631
3697
|
interface SystemEntry {
|
|
3632
3698
|
id: string;
|
|
@@ -3661,10 +3727,57 @@ interface SystemEntry {
|
|
|
3661
3727
|
devOnly?: boolean;
|
|
3662
3728
|
requiresAdmin?: boolean;
|
|
3663
3729
|
order: number;
|
|
3730
|
+
config?: Record<string, JsonValue>;
|
|
3731
|
+
ontology?: OntologyScope;
|
|
3732
|
+
systems?: Record<string, SystemEntry>;
|
|
3733
|
+
/**
|
|
3734
|
+
* @deprecated Compatibility-only bridge for old tenant data and migration readers.
|
|
3735
|
+
* Author new semantic catalogs in `ontology` and local settings in `config`.
|
|
3736
|
+
*/
|
|
3664
3737
|
content?: Record<string, ContentNode>;
|
|
3665
3738
|
subsystems?: Record<string, SystemEntry>;
|
|
3666
3739
|
}
|
|
3667
3740
|
|
|
3741
|
+
declare const SurfaceTypeSchema: z.ZodEnum<{
|
|
3742
|
+
dashboard: "dashboard";
|
|
3743
|
+
settings: "settings";
|
|
3744
|
+
graph: "graph";
|
|
3745
|
+
list: "list";
|
|
3746
|
+
page: "page";
|
|
3747
|
+
detail: "detail";
|
|
3748
|
+
}>;
|
|
3749
|
+
interface SidebarSurfaceNode {
|
|
3750
|
+
type: 'surface';
|
|
3751
|
+
label: string;
|
|
3752
|
+
path: string;
|
|
3753
|
+
surfaceType: z.infer<typeof SurfaceTypeSchema>;
|
|
3754
|
+
description?: string;
|
|
3755
|
+
icon?: string;
|
|
3756
|
+
order?: number;
|
|
3757
|
+
targets?: {
|
|
3758
|
+
systems?: string[];
|
|
3759
|
+
entities?: string[];
|
|
3760
|
+
resources?: string[];
|
|
3761
|
+
actions?: string[];
|
|
3762
|
+
};
|
|
3763
|
+
devOnly?: boolean;
|
|
3764
|
+
requiresAdmin?: boolean;
|
|
3765
|
+
}
|
|
3766
|
+
interface SidebarGroupNode {
|
|
3767
|
+
type: 'group';
|
|
3768
|
+
label: string;
|
|
3769
|
+
description?: string;
|
|
3770
|
+
icon?: string;
|
|
3771
|
+
order?: number;
|
|
3772
|
+
children: Record<string, SidebarNode>;
|
|
3773
|
+
}
|
|
3774
|
+
type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
|
|
3775
|
+
|
|
3776
|
+
type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
|
|
3777
|
+
type DeepPartial<T> = T extends Array<infer U> ? Array<DeepPartial<U>> : T extends object ? {
|
|
3778
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
3779
|
+
} : T;
|
|
3780
|
+
|
|
3668
3781
|
declare const OrganizationModelSchema: z.ZodObject<{
|
|
3669
3782
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3670
3783
|
domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
@@ -3696,10 +3809,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3696
3809
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3697
3810
|
lastModified: z.ZodString;
|
|
3698
3811
|
}, z.core.$strip>>;
|
|
3812
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
3813
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3814
|
+
lastModified: z.ZodString;
|
|
3815
|
+
}, z.core.$strip>>;
|
|
3699
3816
|
resources: z.ZodOptional<z.ZodObject<{
|
|
3700
3817
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3701
3818
|
lastModified: z.ZodString;
|
|
3702
3819
|
}, z.core.$strip>>;
|
|
3820
|
+
topology: z.ZodOptional<z.ZodObject<{
|
|
3821
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3822
|
+
lastModified: z.ZodString;
|
|
3823
|
+
}, z.core.$strip>>;
|
|
3703
3824
|
actions: z.ZodOptional<z.ZodObject<{
|
|
3704
3825
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
3705
3826
|
lastModified: z.ZodString;
|
|
@@ -3745,10 +3866,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3745
3866
|
version: 1;
|
|
3746
3867
|
lastModified: string;
|
|
3747
3868
|
};
|
|
3869
|
+
ontology: {
|
|
3870
|
+
version: 1;
|
|
3871
|
+
lastModified: string;
|
|
3872
|
+
};
|
|
3748
3873
|
resources: {
|
|
3749
3874
|
version: 1;
|
|
3750
3875
|
lastModified: string;
|
|
3751
3876
|
};
|
|
3877
|
+
topology: {
|
|
3878
|
+
version: 1;
|
|
3879
|
+
lastModified: string;
|
|
3880
|
+
};
|
|
3752
3881
|
actions: {
|
|
3753
3882
|
version: 1;
|
|
3754
3883
|
lastModified: string;
|
|
@@ -3794,10 +3923,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3794
3923
|
version: 1;
|
|
3795
3924
|
lastModified: string;
|
|
3796
3925
|
} | undefined;
|
|
3926
|
+
ontology?: {
|
|
3927
|
+
version: 1;
|
|
3928
|
+
lastModified: string;
|
|
3929
|
+
} | undefined;
|
|
3797
3930
|
resources?: {
|
|
3798
3931
|
version: 1;
|
|
3799
3932
|
lastModified: string;
|
|
3800
3933
|
} | undefined;
|
|
3934
|
+
topology?: {
|
|
3935
|
+
version: 1;
|
|
3936
|
+
lastModified: string;
|
|
3937
|
+
} | undefined;
|
|
3801
3938
|
actions?: {
|
|
3802
3939
|
version: 1;
|
|
3803
3940
|
lastModified: string;
|
|
@@ -3945,18 +4082,132 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3945
4082
|
}, z.core.$strip>>>;
|
|
3946
4083
|
}, z.core.$strip>>>>;
|
|
3947
4084
|
systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
|
|
4085
|
+
ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
4086
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4087
|
+
id: z.ZodString;
|
|
4088
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4089
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4090
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4091
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4092
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4093
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4094
|
+
}, z.core.$loose>>>>;
|
|
4095
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4096
|
+
id: z.ZodString;
|
|
4097
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4098
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4099
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4100
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4101
|
+
from: z.ZodString;
|
|
4102
|
+
to: z.ZodString;
|
|
4103
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
4104
|
+
via: z.ZodOptional<z.ZodString>;
|
|
4105
|
+
}, z.core.$loose>>>>;
|
|
4106
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4107
|
+
id: z.ZodString;
|
|
4108
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4109
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4110
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4111
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4112
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4113
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4114
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
4115
|
+
}, z.core.$loose>>>>;
|
|
4116
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4117
|
+
id: z.ZodString;
|
|
4118
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4119
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4120
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4121
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4122
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
4123
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
4124
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4125
|
+
}, z.core.$loose>>>>;
|
|
4126
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4127
|
+
id: z.ZodString;
|
|
4128
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4129
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4130
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4131
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4132
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4133
|
+
}, z.core.$loose>>>>;
|
|
4134
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4135
|
+
id: z.ZodString;
|
|
4136
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4137
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4138
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4139
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4140
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4141
|
+
}, z.core.$loose>>>>;
|
|
4142
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4143
|
+
id: z.ZodString;
|
|
4144
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4145
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4146
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4147
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4148
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
4149
|
+
}, z.core.$loose>>>>;
|
|
4150
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4151
|
+
id: z.ZodString;
|
|
4152
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4153
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4154
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4155
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4156
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
4157
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
4158
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
4159
|
+
}, z.core.$loose>>>>;
|
|
4160
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4161
|
+
id: z.ZodString;
|
|
4162
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4163
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4164
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4165
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4166
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4167
|
+
}, z.core.$loose>>>>;
|
|
4168
|
+
surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4169
|
+
id: z.ZodString;
|
|
4170
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4171
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4172
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4173
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4174
|
+
route: z.ZodOptional<z.ZodString>;
|
|
4175
|
+
}, z.core.$loose>>>>;
|
|
4176
|
+
}, z.core.$strip>>>;
|
|
3948
4177
|
resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3949
4178
|
id: z.ZodString;
|
|
3950
4179
|
order: z.ZodDefault<z.ZodNumber>;
|
|
3951
4180
|
systemPath: z.ZodString;
|
|
4181
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4182
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3952
4183
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
3953
4184
|
status: z.ZodEnum<{
|
|
3954
4185
|
deprecated: "deprecated";
|
|
3955
4186
|
active: "active";
|
|
3956
4187
|
archived: "archived";
|
|
3957
4188
|
}>;
|
|
4189
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
4190
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4191
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
4192
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4193
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4194
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4195
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4196
|
+
}, z.core.$strip>>;
|
|
4197
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4198
|
+
path: z.ZodString;
|
|
4199
|
+
role: z.ZodEnum<{
|
|
4200
|
+
schema: "schema";
|
|
4201
|
+
config: "config";
|
|
4202
|
+
entrypoint: "entrypoint";
|
|
4203
|
+
handler: "handler";
|
|
4204
|
+
test: "test";
|
|
4205
|
+
docs: "docs";
|
|
4206
|
+
}>;
|
|
4207
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4208
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4209
|
+
}, z.core.$strip>>>;
|
|
3958
4210
|
kind: z.ZodLiteral<"workflow">;
|
|
3959
|
-
actionKey: z.ZodOptional<z.ZodString>;
|
|
3960
4211
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3961
4212
|
eventKey: z.ZodString;
|
|
3962
4213
|
label: z.ZodString;
|
|
@@ -3973,12 +4224,35 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3973
4224
|
id: z.ZodString;
|
|
3974
4225
|
order: z.ZodDefault<z.ZodNumber>;
|
|
3975
4226
|
systemPath: z.ZodString;
|
|
4227
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4228
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3976
4229
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
3977
4230
|
status: z.ZodEnum<{
|
|
3978
4231
|
deprecated: "deprecated";
|
|
3979
4232
|
active: "active";
|
|
3980
4233
|
archived: "archived";
|
|
3981
4234
|
}>;
|
|
4235
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
4236
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4237
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
4238
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4239
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4240
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4241
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4242
|
+
}, z.core.$strip>>;
|
|
4243
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4244
|
+
path: z.ZodString;
|
|
4245
|
+
role: z.ZodEnum<{
|
|
4246
|
+
schema: "schema";
|
|
4247
|
+
config: "config";
|
|
4248
|
+
entrypoint: "entrypoint";
|
|
4249
|
+
handler: "handler";
|
|
4250
|
+
test: "test";
|
|
4251
|
+
docs: "docs";
|
|
4252
|
+
}>;
|
|
4253
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4254
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4255
|
+
}, z.core.$strip>>>;
|
|
3982
4256
|
kind: z.ZodLiteral<"agent">;
|
|
3983
4257
|
agentKind: z.ZodEnum<{
|
|
3984
4258
|
platform: "platform";
|
|
@@ -4027,24 +4301,70 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4027
4301
|
id: z.ZodString;
|
|
4028
4302
|
order: z.ZodDefault<z.ZodNumber>;
|
|
4029
4303
|
systemPath: z.ZodString;
|
|
4304
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4305
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4030
4306
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
4031
4307
|
status: z.ZodEnum<{
|
|
4032
4308
|
deprecated: "deprecated";
|
|
4033
4309
|
active: "active";
|
|
4034
4310
|
archived: "archived";
|
|
4035
4311
|
}>;
|
|
4312
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
4313
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4314
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
4315
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4316
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4317
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4318
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4319
|
+
}, z.core.$strip>>;
|
|
4320
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4321
|
+
path: z.ZodString;
|
|
4322
|
+
role: z.ZodEnum<{
|
|
4323
|
+
schema: "schema";
|
|
4324
|
+
config: "config";
|
|
4325
|
+
entrypoint: "entrypoint";
|
|
4326
|
+
handler: "handler";
|
|
4327
|
+
test: "test";
|
|
4328
|
+
docs: "docs";
|
|
4329
|
+
}>;
|
|
4330
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4331
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4332
|
+
}, z.core.$strip>>>;
|
|
4036
4333
|
kind: z.ZodLiteral<"integration">;
|
|
4037
4334
|
provider: z.ZodString;
|
|
4038
4335
|
}, z.core.$strip>, z.ZodObject<{
|
|
4039
4336
|
id: z.ZodString;
|
|
4040
4337
|
order: z.ZodDefault<z.ZodNumber>;
|
|
4041
4338
|
systemPath: z.ZodString;
|
|
4339
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4340
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4042
4341
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
4043
4342
|
status: z.ZodEnum<{
|
|
4044
4343
|
deprecated: "deprecated";
|
|
4045
4344
|
active: "active";
|
|
4046
4345
|
archived: "archived";
|
|
4047
4346
|
}>;
|
|
4347
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
4348
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4349
|
+
primaryAction: z.ZodOptional<z.ZodString>;
|
|
4350
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4351
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4352
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4353
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4354
|
+
}, z.core.$strip>>;
|
|
4355
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4356
|
+
path: z.ZodString;
|
|
4357
|
+
role: z.ZodEnum<{
|
|
4358
|
+
schema: "schema";
|
|
4359
|
+
config: "config";
|
|
4360
|
+
entrypoint: "entrypoint";
|
|
4361
|
+
handler: "handler";
|
|
4362
|
+
test: "test";
|
|
4363
|
+
docs: "docs";
|
|
4364
|
+
}>;
|
|
4365
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
4366
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4367
|
+
}, z.core.$strip>>>;
|
|
4048
4368
|
kind: z.ZodLiteral<"script">;
|
|
4049
4369
|
language: z.ZodEnum<{
|
|
4050
4370
|
shell: "shell";
|
|
@@ -4056,6 +4376,69 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4056
4376
|
file: z.ZodString;
|
|
4057
4377
|
}, z.core.$strip>]>;
|
|
4058
4378
|
}, z.core.$strip>], "kind">>>>;
|
|
4379
|
+
topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
|
|
4380
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4381
|
+
relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4382
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4383
|
+
kind: z.ZodLiteral<"system">;
|
|
4384
|
+
id: z.ZodString;
|
|
4385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4386
|
+
kind: z.ZodLiteral<"resource">;
|
|
4387
|
+
id: z.ZodString;
|
|
4388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4389
|
+
kind: z.ZodLiteral<"ontology">;
|
|
4390
|
+
id: z.ZodString;
|
|
4391
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4392
|
+
kind: z.ZodLiteral<"policy">;
|
|
4393
|
+
id: z.ZodString;
|
|
4394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4395
|
+
kind: z.ZodLiteral<"role">;
|
|
4396
|
+
id: z.ZodString;
|
|
4397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4398
|
+
kind: z.ZodLiteral<"trigger">;
|
|
4399
|
+
id: z.ZodString;
|
|
4400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4401
|
+
kind: z.ZodLiteral<"humanCheckpoint">;
|
|
4402
|
+
id: z.ZodString;
|
|
4403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4404
|
+
kind: z.ZodLiteral<"externalResource">;
|
|
4405
|
+
id: z.ZodString;
|
|
4406
|
+
}, z.core.$strip>], "kind">;
|
|
4407
|
+
kind: z.ZodEnum<{
|
|
4408
|
+
triggers: "triggers";
|
|
4409
|
+
uses: "uses";
|
|
4410
|
+
approval: "approval";
|
|
4411
|
+
}>;
|
|
4412
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4413
|
+
kind: z.ZodLiteral<"system">;
|
|
4414
|
+
id: z.ZodString;
|
|
4415
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4416
|
+
kind: z.ZodLiteral<"resource">;
|
|
4417
|
+
id: z.ZodString;
|
|
4418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4419
|
+
kind: z.ZodLiteral<"ontology">;
|
|
4420
|
+
id: z.ZodString;
|
|
4421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4422
|
+
kind: z.ZodLiteral<"policy">;
|
|
4423
|
+
id: z.ZodString;
|
|
4424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4425
|
+
kind: z.ZodLiteral<"role">;
|
|
4426
|
+
id: z.ZodString;
|
|
4427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4428
|
+
kind: z.ZodLiteral<"trigger">;
|
|
4429
|
+
id: z.ZodString;
|
|
4430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4431
|
+
kind: z.ZodLiteral<"humanCheckpoint">;
|
|
4432
|
+
id: z.ZodString;
|
|
4433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4434
|
+
kind: z.ZodLiteral<"externalResource">;
|
|
4435
|
+
id: z.ZodString;
|
|
4436
|
+
}, z.core.$strip>], "kind">;
|
|
4437
|
+
systemPath: z.ZodOptional<z.ZodString>;
|
|
4438
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
4439
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4440
|
+
}, z.core.$strip>>>;
|
|
4441
|
+
}, z.core.$strip>>>;
|
|
4059
4442
|
actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4060
4443
|
id: z.ZodString;
|
|
4061
4444
|
order: z.ZodNumber;
|
|
@@ -4189,80 +4572,76 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4189
4572
|
title: z.ZodString;
|
|
4190
4573
|
summary: z.ZodString;
|
|
4191
4574
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
"
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
"
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
"
|
|
4224
|
-
"
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
"
|
|
4250
|
-
|
|
4251
|
-
"action.launch": "action.launch";
|
|
4252
|
-
"action.message": "action.message";
|
|
4253
|
-
"action.escalate": "action.escalate";
|
|
4254
|
-
"action.promote": "action.promote";
|
|
4255
|
-
"action.submit": "action.submit";
|
|
4256
|
-
"action.email": "action.email";
|
|
4575
|
+
message: "message";
|
|
4576
|
+
error: "error";
|
|
4577
|
+
agent: "agent";
|
|
4578
|
+
workflow: "workflow";
|
|
4579
|
+
"google-sheets": "google-sheets";
|
|
4580
|
+
dashboard: "dashboard";
|
|
4581
|
+
calendar: "calendar";
|
|
4582
|
+
sales: "sales";
|
|
4583
|
+
crm: "crm";
|
|
4584
|
+
"lead-gen": "lead-gen";
|
|
4585
|
+
projects: "projects";
|
|
4586
|
+
operations: "operations";
|
|
4587
|
+
monitoring: "monitoring";
|
|
4588
|
+
knowledge: "knowledge";
|
|
4589
|
+
settings: "settings";
|
|
4590
|
+
admin: "admin";
|
|
4591
|
+
archive: "archive";
|
|
4592
|
+
business: "business";
|
|
4593
|
+
finance: "finance";
|
|
4594
|
+
platform: "platform";
|
|
4595
|
+
seo: "seo";
|
|
4596
|
+
playbook: "playbook";
|
|
4597
|
+
strategy: "strategy";
|
|
4598
|
+
reference: "reference";
|
|
4599
|
+
integration: "integration";
|
|
4600
|
+
database: "database";
|
|
4601
|
+
user: "user";
|
|
4602
|
+
team: "team";
|
|
4603
|
+
gmail: "gmail";
|
|
4604
|
+
attio: "attio";
|
|
4605
|
+
overview: "overview";
|
|
4606
|
+
"command-view": "command-view";
|
|
4607
|
+
"command-queue": "command-queue";
|
|
4608
|
+
pipeline: "pipeline";
|
|
4609
|
+
lists: "lists";
|
|
4610
|
+
resources: "resources";
|
|
4611
|
+
approve: "approve";
|
|
4612
|
+
reject: "reject";
|
|
4613
|
+
retry: "retry";
|
|
4614
|
+
edit: "edit";
|
|
4615
|
+
view: "view";
|
|
4616
|
+
launch: "launch";
|
|
4617
|
+
escalate: "escalate";
|
|
4618
|
+
promote: "promote";
|
|
4619
|
+
submit: "submit";
|
|
4620
|
+
email: "email";
|
|
4621
|
+
success: "success";
|
|
4622
|
+
warning: "warning";
|
|
4623
|
+
info: "info";
|
|
4624
|
+
pending: "pending";
|
|
4625
|
+
bolt: "bolt";
|
|
4626
|
+
building: "building";
|
|
4627
|
+
briefcase: "briefcase";
|
|
4628
|
+
apps: "apps";
|
|
4629
|
+
graph: "graph";
|
|
4630
|
+
shield: "shield";
|
|
4631
|
+
users: "users";
|
|
4632
|
+
"chart-bar": "chart-bar";
|
|
4633
|
+
search: "search";
|
|
4257
4634
|
}>, z.ZodString]>>;
|
|
4258
4635
|
externalUrl: z.ZodOptional<z.ZodString>;
|
|
4636
|
+
sourceFilePath: z.ZodOptional<z.ZodString>;
|
|
4259
4637
|
body: z.ZodString;
|
|
4260
4638
|
links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
4261
4639
|
target: z.ZodObject<{
|
|
4262
4640
|
kind: z.ZodEnum<{
|
|
4641
|
+
knowledge: "knowledge";
|
|
4263
4642
|
system: "system";
|
|
4264
4643
|
action: "action";
|
|
4265
|
-
|
|
4644
|
+
ontology: "ontology";
|
|
4266
4645
|
role: "role";
|
|
4267
4646
|
goal: "goal";
|
|
4268
4647
|
stage: "stage";
|
|
@@ -4274,10 +4653,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4274
4653
|
id: z.ZodString;
|
|
4275
4654
|
}, z.core.$strip>;
|
|
4276
4655
|
}, z.core.$strip>, z.ZodObject<{
|
|
4277
|
-
nodeId: z.ZodString
|
|
4656
|
+
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
4278
4657
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
4279
4658
|
target: {
|
|
4280
|
-
kind: "system" | "action" | "
|
|
4659
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
4281
4660
|
id: string;
|
|
4282
4661
|
};
|
|
4283
4662
|
nodeId: string;
|
|
@@ -4285,7 +4664,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4285
4664
|
nodeId: string;
|
|
4286
4665
|
} | {
|
|
4287
4666
|
target: {
|
|
4288
|
-
kind: "system" | "action" | "
|
|
4667
|
+
kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
|
|
4289
4668
|
id: string;
|
|
4290
4669
|
};
|
|
4291
4670
|
}>>>>;
|
|
@@ -4294,11 +4673,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4294
4673
|
}, z.core.$strip>>>>;
|
|
4295
4674
|
}, z.core.$strip>;
|
|
4296
4675
|
|
|
4297
|
-
type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
|
|
4298
|
-
type DeepPartial<T> = T extends Array<infer U> ? Array<DeepPartial<U>> : T extends object ? {
|
|
4299
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
4300
|
-
} : T;
|
|
4301
|
-
|
|
4302
4676
|
interface TestInitializationError {
|
|
4303
4677
|
layer: 'auth' | 'profile' | 'organization';
|
|
4304
4678
|
message: string;
|