@elevasis/sdk 1.21.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +951 -171
- package/dist/index.d.ts +632 -341
- package/dist/index.js +3102 -142
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +19 -1
- package/dist/test-utils/index.d.ts +313 -4
- package/dist/test-utils/index.js +3246 -281
- package/dist/worker/index.js +3041 -80
- package/package.json +3 -3
- package/reference/claude-config/hooks/post-edit-validate.mjs +98 -98
- package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +188 -188
- package/reference/claude-config/hooks/tool-failure-recovery.mjs +73 -73
- package/reference/claude-config/registries/graph-skills.json +4 -4
- package/reference/claude-config/registries/knowledge-flags.json +0 -2
- package/reference/claude-config/rules/active-change-index.md +80 -80
- package/reference/claude-config/rules/agent-start-here.md +277 -277
- package/reference/claude-config/rules/deployment.md +57 -57
- package/reference/claude-config/rules/error-handling.md +56 -56
- package/reference/claude-config/rules/execution.md +40 -40
- package/reference/claude-config/rules/frontend.md +4 -4
- package/reference/claude-config/rules/observability.md +31 -31
- package/reference/claude-config/rules/operations.md +29 -17
- package/reference/claude-config/rules/organization-model.md +110 -84
- package/reference/claude-config/rules/organization-os.md +115 -113
- package/reference/claude-config/rules/package-taxonomy.md +33 -33
- package/reference/claude-config/rules/platform.md +42 -42
- package/reference/claude-config/rules/shared-types.md +49 -46
- package/reference/claude-config/rules/task-tracking.md +47 -47
- package/reference/claude-config/rules/ui.md +200 -200
- package/reference/claude-config/rules/vibe.md +235 -235
- package/reference/claude-config/scripts/statusline-command.js +18 -18
- package/reference/claude-config/settings.json +34 -34
- package/reference/claude-config/skills/deploy/{SKILL.md → skill.md} +156 -156
- package/reference/claude-config/skills/dsp/SKILL.md +66 -66
- package/reference/claude-config/skills/elevasis/SKILL.md +235 -235
- package/reference/claude-config/skills/explore/SKILL.md +6 -6
- package/reference/claude-config/skills/git-sync/SKILL.md +126 -126
- package/reference/claude-config/skills/knowledge/SKILL.md +314 -299
- package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +100 -100
- package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +159 -159
- package/reference/claude-config/skills/knowledge/operations/customers.md +109 -109
- package/reference/claude-config/skills/knowledge/operations/features.md +76 -76
- package/reference/claude-config/skills/knowledge/operations/goals.md +118 -118
- package/reference/claude-config/skills/knowledge/operations/identity.md +93 -93
- package/reference/claude-config/skills/knowledge/operations/labels.md +94 -94
- package/reference/claude-config/skills/knowledge/operations/offerings.md +109 -109
- package/reference/claude-config/skills/knowledge/operations/roles.md +99 -99
- package/reference/claude-config/skills/knowledge/operations/techStack.md +30 -30
- package/reference/claude-config/skills/project/SKILL.md +1088 -1088
- package/reference/claude-config/skills/run-ui/SKILL.md +73 -73
- package/reference/claude-config/skills/save/SKILL.md +3 -3
- package/reference/claude-config/skills/setup/SKILL.md +275 -275
- package/reference/claude-config/skills/status/SKILL.md +59 -59
- package/reference/claude-config/skills/submit-request/SKILL.md +180 -180
- package/reference/claude-config/skills/sync/SKILL.md +47 -47
- package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
- package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
- package/reference/claude-config/skills/tutorial/technical.md +1303 -1303
- package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
- package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +27 -27
- package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +30 -30
- package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +73 -73
- package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +86 -86
- package/reference/claude-config/sync-notes/2026-04-25-auth-role-system-and-settings-roles.md +55 -55
- package/reference/claude-config/sync-notes/2026-04-27-crm-hitl-action-layer-cutover.md +97 -97
- package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +112 -112
- package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +93 -93
- package/reference/claude-config/sync-notes/2026-05-02-crm-ownership-next-action.md +58 -58
- package/reference/claude-config/sync-notes/2026-05-02-template-hardcode-workos-config.md +56 -56
- package/reference/claude-config/sync-notes/2026-05-04-elevasis-workspace.md +71 -71
- package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
- package/reference/claude-config/sync-notes/2026-05-04-template-skills-run-ui-and-tutorial.md +59 -59
- package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +42 -42
- package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +60 -60
- package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +37 -37
- package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +34 -34
- package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +38 -38
- package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +32 -32
- package/reference/claude-config/sync-notes/2026-05-09-command-system.md +33 -33
- package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +69 -69
- package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +30 -30
- package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +42 -0
- package/reference/claude-config/sync-notes/README.md +43 -43
- package/reference/cli.mdx +808 -808
- package/reference/concepts.mdx +146 -146
- package/reference/deployment/api.mdx +297 -297
- package/reference/deployment/command-center.mdx +209 -209
- package/reference/deployment/index.mdx +195 -195
- package/reference/deployment/provided-features.mdx +107 -107
- package/reference/deployment/ui-execution.mdx +250 -250
- package/reference/examples/organization-model.ts +146 -83
- package/reference/framework/agent.mdx +156 -156
- package/reference/framework/index.mdx +195 -195
- package/reference/framework/interaction-guidance.mdx +182 -182
- package/reference/framework/memory.mdx +326 -326
- package/reference/framework/project-structure.mdx +282 -282
- package/reference/framework/tutorial-system.mdx +135 -135
- package/reference/getting-started.mdx +142 -142
- package/reference/index.mdx +106 -106
- package/reference/packages/core/src/README.md +14 -14
- package/reference/packages/core/src/business/README.md +2 -2
- package/reference/packages/core/src/knowledge/README.md +32 -32
- package/reference/packages/core/src/organization-model/README.md +149 -149
- package/reference/packages/core/src/test-utils/README.md +37 -37
- package/reference/packages/ui/src/api/README.md +18 -18
- package/reference/packages/ui/src/app/README.md +24 -24
- package/reference/packages/ui/src/auth/README.md +18 -18
- package/reference/packages/ui/src/components/README.md +24 -24
- package/reference/packages/ui/src/execution/README.md +16 -16
- package/reference/packages/ui/src/features/README.md +28 -28
- package/reference/packages/ui/src/graph/README.md +16 -16
- package/reference/packages/ui/src/hooks/README.md +23 -23
- package/reference/packages/ui/src/initialization/README.md +19 -19
- package/reference/packages/ui/src/knowledge/README.md +31 -31
- package/reference/packages/ui/src/organization/README.md +18 -18
- package/reference/packages/ui/src/profile/README.md +19 -19
- package/reference/packages/ui/src/provider/README.md +32 -32
- package/reference/packages/ui/src/router/README.md +18 -18
- package/reference/packages/ui/src/sse/README.md +13 -13
- package/reference/packages/ui/src/test-utils/README.md +7 -7
- package/reference/packages/ui/src/theme/README.md +23 -23
- package/reference/packages/ui/src/theme/presets/README.md +19 -19
- package/reference/packages/ui/src/types/README.md +16 -16
- package/reference/packages/ui/src/utils/README.md +18 -18
- package/reference/packages/ui/src/zustand/README.md +18 -18
- package/reference/platform-tools/adapters-integration.mdx +301 -301
- package/reference/platform-tools/adapters-platform.mdx +553 -553
- package/reference/platform-tools/index.mdx +217 -217
- package/reference/platform-tools/type-safety.mdx +82 -82
- package/reference/resources/index.mdx +349 -349
- package/reference/resources/patterns.mdx +449 -449
- package/reference/resources/types.mdx +116 -116
- package/reference/roadmap.mdx +165 -165
- package/reference/runtime.mdx +173 -173
- package/reference/scaffold/core/organization-graph.mdx +110 -90
- package/reference/scaffold/core/organization-model.mdx +226 -219
- package/reference/scaffold/index.mdx +67 -67
- package/reference/scaffold/operations/propagation-pipeline.md +77 -77
- package/reference/scaffold/operations/scaffold-maintenance.md +12 -12
- package/reference/scaffold/operations/workflow-recipes.md +138 -138
- package/reference/scaffold/recipes/add-a-feature.md +308 -88
- package/reference/scaffold/recipes/add-a-resource.md +134 -110
- package/reference/scaffold/recipes/customize-knowledge-browser.md +5 -5
- package/reference/scaffold/recipes/customize-organization-model.md +273 -138
- package/reference/scaffold/recipes/extend-a-base-entity.md +8 -8
- package/reference/scaffold/recipes/extend-crm.md +3 -3
- package/reference/scaffold/recipes/extend-lead-gen.md +400 -400
- package/reference/scaffold/recipes/gate-by-feature-or-admin.md +118 -118
- package/reference/scaffold/recipes/index.md +46 -46
- package/reference/scaffold/recipes/query-the-knowledge-graph.md +197 -170
- package/reference/scaffold/reference/contracts.md +2101 -2096
- package/reference/scaffold/reference/glossary.md +76 -76
- package/reference/scaffold/ui/composition-extensibility.mdx +233 -233
- package/reference/scaffold/ui/customization.md +243 -243
- package/reference/scaffold/ui/feature-flags-and-gating.md +46 -46
- package/reference/scaffold/ui/feature-shell.mdx +72 -72
- package/reference/scaffold/ui/recipes.md +221 -214
- package/reference/spine/spine-primer.md +96 -96
- package/reference/templates/index.mdx +47 -47
- package/reference/troubleshooting.mdx +223 -223
package/dist/node/index.d.ts
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -144,6 +144,18 @@ var ROUTING_STOPWORDS = /* @__PURE__ */ new Set([
|
|
|
144
144
|
function toRegistryPath(path) {
|
|
145
145
|
return path.replace(/\\/g, "/");
|
|
146
146
|
}
|
|
147
|
+
function sourceBaseFromLabel(sourceLabel) {
|
|
148
|
+
if (!sourceLabel) return void 0;
|
|
149
|
+
const normalized = toRegistryPath(sourceLabel).replace(/\/+$/, "");
|
|
150
|
+
const globIndex = normalized.indexOf("*");
|
|
151
|
+
if (globIndex === -1) return normalized;
|
|
152
|
+
return normalized.slice(0, globIndex).replace(/\/+$/, "");
|
|
153
|
+
}
|
|
154
|
+
function toSourceFilePath(sourceLabel, relativePath) {
|
|
155
|
+
const normalizedRelativePath = toRegistryPath(relativePath);
|
|
156
|
+
const sourceBase = sourceBaseFromLabel(sourceLabel);
|
|
157
|
+
return sourceBase ? `${sourceBase}/${normalizedRelativePath}` : normalizedRelativePath;
|
|
158
|
+
}
|
|
147
159
|
function slugify(value) {
|
|
148
160
|
return value.trim().toLowerCase().replace(/['"]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
149
161
|
}
|
|
@@ -307,7 +319,13 @@ function generateKnowledgeNodes(options) {
|
|
|
307
319
|
const files = listMdxFiles(options.sourceDir).sort(
|
|
308
320
|
(a, b) => relative(options.sourceDir, a).localeCompare(relative(options.sourceDir, b))
|
|
309
321
|
);
|
|
310
|
-
const nodes = files.map(
|
|
322
|
+
const nodes = files.map((file) => {
|
|
323
|
+
const relativePath = relative(options.sourceDir, file);
|
|
324
|
+
return {
|
|
325
|
+
...readKnowledgeNodeMdx(file),
|
|
326
|
+
sourceFilePath: toSourceFilePath(options.sourceLabel, relativePath)
|
|
327
|
+
};
|
|
328
|
+
});
|
|
311
329
|
const sourcePaths = Object.fromEntries(
|
|
312
330
|
files.map((file, index) => [nodes[index].id, toRegistryPath(relative(options.sourceDir, file))])
|
|
313
331
|
);
|
|
@@ -350,6 +350,26 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
|
|
|
350
350
|
active: "active";
|
|
351
351
|
archived: "archived";
|
|
352
352
|
}>;
|
|
353
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
355
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
356
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
358
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
|
+
}, z.core.$strip>>;
|
|
360
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
361
|
+
path: z.ZodString;
|
|
362
|
+
role: z.ZodEnum<{
|
|
363
|
+
schema: "schema";
|
|
364
|
+
config: "config";
|
|
365
|
+
entrypoint: "entrypoint";
|
|
366
|
+
handler: "handler";
|
|
367
|
+
test: "test";
|
|
368
|
+
docs: "docs";
|
|
369
|
+
}>;
|
|
370
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, z.core.$strip>>>;
|
|
353
373
|
kind: z.ZodLiteral<"workflow">;
|
|
354
374
|
actionKey: z.ZodOptional<z.ZodString>;
|
|
355
375
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -375,6 +395,26 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
|
|
|
375
395
|
active: "active";
|
|
376
396
|
archived: "archived";
|
|
377
397
|
}>;
|
|
398
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
399
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
400
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
401
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
402
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
406
|
+
path: z.ZodString;
|
|
407
|
+
role: z.ZodEnum<{
|
|
408
|
+
schema: "schema";
|
|
409
|
+
config: "config";
|
|
410
|
+
entrypoint: "entrypoint";
|
|
411
|
+
handler: "handler";
|
|
412
|
+
test: "test";
|
|
413
|
+
docs: "docs";
|
|
414
|
+
}>;
|
|
415
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
416
|
+
description: z.ZodOptional<z.ZodString>;
|
|
417
|
+
}, z.core.$strip>>>;
|
|
378
418
|
kind: z.ZodLiteral<"agent">;
|
|
379
419
|
agentKind: z.ZodEnum<{
|
|
380
420
|
platform: "platform";
|
|
@@ -430,6 +470,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
430
470
|
active: "active";
|
|
431
471
|
archived: "archived";
|
|
432
472
|
}>;
|
|
473
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
475
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
476
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
477
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
478
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
479
|
+
}, z.core.$strip>>;
|
|
480
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
481
|
+
path: z.ZodString;
|
|
482
|
+
role: z.ZodEnum<{
|
|
483
|
+
schema: "schema";
|
|
484
|
+
config: "config";
|
|
485
|
+
entrypoint: "entrypoint";
|
|
486
|
+
handler: "handler";
|
|
487
|
+
test: "test";
|
|
488
|
+
docs: "docs";
|
|
489
|
+
}>;
|
|
490
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
491
|
+
description: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>>>;
|
|
433
493
|
kind: z.ZodLiteral<"workflow">;
|
|
434
494
|
actionKey: z.ZodOptional<z.ZodString>;
|
|
435
495
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -454,6 +514,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
454
514
|
active: "active";
|
|
455
515
|
archived: "archived";
|
|
456
516
|
}>;
|
|
517
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
519
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
520
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
521
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
522
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
523
|
+
}, z.core.$strip>>;
|
|
524
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
525
|
+
path: z.ZodString;
|
|
526
|
+
role: z.ZodEnum<{
|
|
527
|
+
schema: "schema";
|
|
528
|
+
config: "config";
|
|
529
|
+
entrypoint: "entrypoint";
|
|
530
|
+
handler: "handler";
|
|
531
|
+
test: "test";
|
|
532
|
+
docs: "docs";
|
|
533
|
+
}>;
|
|
534
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
535
|
+
description: z.ZodOptional<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>>>;
|
|
457
537
|
kind: z.ZodLiteral<"agent">;
|
|
458
538
|
agentKind: z.ZodEnum<{
|
|
459
539
|
platform: "platform";
|
|
@@ -508,6 +588,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
508
588
|
active: "active";
|
|
509
589
|
archived: "archived";
|
|
510
590
|
}>;
|
|
591
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
592
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
593
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
594
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
595
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
596
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
597
|
+
}, z.core.$strip>>;
|
|
598
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
599
|
+
path: z.ZodString;
|
|
600
|
+
role: z.ZodEnum<{
|
|
601
|
+
schema: "schema";
|
|
602
|
+
config: "config";
|
|
603
|
+
entrypoint: "entrypoint";
|
|
604
|
+
handler: "handler";
|
|
605
|
+
test: "test";
|
|
606
|
+
docs: "docs";
|
|
607
|
+
}>;
|
|
608
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
609
|
+
description: z.ZodOptional<z.ZodString>;
|
|
610
|
+
}, z.core.$strip>>>;
|
|
511
611
|
kind: z.ZodLiteral<"integration">;
|
|
512
612
|
provider: z.ZodString;
|
|
513
613
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -520,6 +620,26 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
520
620
|
active: "active";
|
|
521
621
|
archived: "archived";
|
|
522
622
|
}>;
|
|
623
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
624
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
626
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
627
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
628
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
629
|
+
}, z.core.$strip>>;
|
|
630
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
631
|
+
path: z.ZodString;
|
|
632
|
+
role: z.ZodEnum<{
|
|
633
|
+
schema: "schema";
|
|
634
|
+
config: "config";
|
|
635
|
+
entrypoint: "entrypoint";
|
|
636
|
+
handler: "handler";
|
|
637
|
+
test: "test";
|
|
638
|
+
docs: "docs";
|
|
639
|
+
}>;
|
|
640
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
641
|
+
description: z.ZodOptional<z.ZodString>;
|
|
642
|
+
}, z.core.$strip>>>;
|
|
523
643
|
kind: z.ZodLiteral<"script">;
|
|
524
644
|
language: z.ZodEnum<{
|
|
525
645
|
shell: "shell";
|
|
@@ -541,6 +661,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
541
661
|
active: "active";
|
|
542
662
|
archived: "archived";
|
|
543
663
|
}>;
|
|
664
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
666
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
667
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
668
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
669
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
670
|
+
}, z.core.$strip>>;
|
|
671
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
672
|
+
path: z.ZodString;
|
|
673
|
+
role: z.ZodEnum<{
|
|
674
|
+
schema: "schema";
|
|
675
|
+
config: "config";
|
|
676
|
+
entrypoint: "entrypoint";
|
|
677
|
+
handler: "handler";
|
|
678
|
+
test: "test";
|
|
679
|
+
docs: "docs";
|
|
680
|
+
}>;
|
|
681
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
682
|
+
description: z.ZodOptional<z.ZodString>;
|
|
683
|
+
}, z.core.$strip>>>;
|
|
544
684
|
kind: z.ZodLiteral<"workflow">;
|
|
545
685
|
actionKey: z.ZodOptional<z.ZodString>;
|
|
546
686
|
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -565,6 +705,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
565
705
|
active: "active";
|
|
566
706
|
archived: "archived";
|
|
567
707
|
}>;
|
|
708
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
709
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
710
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
711
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
712
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
713
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
714
|
+
}, z.core.$strip>>;
|
|
715
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
716
|
+
path: z.ZodString;
|
|
717
|
+
role: z.ZodEnum<{
|
|
718
|
+
schema: "schema";
|
|
719
|
+
config: "config";
|
|
720
|
+
entrypoint: "entrypoint";
|
|
721
|
+
handler: "handler";
|
|
722
|
+
test: "test";
|
|
723
|
+
docs: "docs";
|
|
724
|
+
}>;
|
|
725
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
726
|
+
description: z.ZodOptional<z.ZodString>;
|
|
727
|
+
}, z.core.$strip>>>;
|
|
568
728
|
kind: z.ZodLiteral<"agent">;
|
|
569
729
|
agentKind: z.ZodEnum<{
|
|
570
730
|
platform: "platform";
|
|
@@ -619,6 +779,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
619
779
|
active: "active";
|
|
620
780
|
archived: "archived";
|
|
621
781
|
}>;
|
|
782
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
783
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
784
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
785
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
786
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
787
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
788
|
+
}, z.core.$strip>>;
|
|
789
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
790
|
+
path: z.ZodString;
|
|
791
|
+
role: z.ZodEnum<{
|
|
792
|
+
schema: "schema";
|
|
793
|
+
config: "config";
|
|
794
|
+
entrypoint: "entrypoint";
|
|
795
|
+
handler: "handler";
|
|
796
|
+
test: "test";
|
|
797
|
+
docs: "docs";
|
|
798
|
+
}>;
|
|
799
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
800
|
+
description: z.ZodOptional<z.ZodString>;
|
|
801
|
+
}, z.core.$strip>>>;
|
|
622
802
|
kind: z.ZodLiteral<"integration">;
|
|
623
803
|
provider: z.ZodString;
|
|
624
804
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -631,6 +811,26 @@ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
631
811
|
active: "active";
|
|
632
812
|
archived: "archived";
|
|
633
813
|
}>;
|
|
814
|
+
ontology: z.ZodOptional<z.ZodObject<{
|
|
815
|
+
implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
816
|
+
reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
817
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
818
|
+
usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
819
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
820
|
+
}, z.core.$strip>>;
|
|
821
|
+
codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
822
|
+
path: z.ZodString;
|
|
823
|
+
role: z.ZodEnum<{
|
|
824
|
+
schema: "schema";
|
|
825
|
+
config: "config";
|
|
826
|
+
entrypoint: "entrypoint";
|
|
827
|
+
handler: "handler";
|
|
828
|
+
test: "test";
|
|
829
|
+
docs: "docs";
|
|
830
|
+
}>;
|
|
831
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
832
|
+
description: z.ZodOptional<z.ZodString>;
|
|
833
|
+
}, z.core.$strip>>>;
|
|
634
834
|
kind: z.ZodLiteral<"script">;
|
|
635
835
|
language: z.ZodEnum<{
|
|
636
836
|
shell: "shell";
|
|
@@ -4411,8 +4611,8 @@ declare const DealSchemas: {
|
|
|
4411
4611
|
title: z.ZodString;
|
|
4412
4612
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4413
4613
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
4414
|
-
other: "other";
|
|
4415
4614
|
email: "email";
|
|
4615
|
+
other: "other";
|
|
4416
4616
|
call: "call";
|
|
4417
4617
|
meeting: "meeting";
|
|
4418
4618
|
}>>;
|
|
@@ -4752,8 +4952,8 @@ declare const DealSchemas: {
|
|
|
4752
4952
|
title: z.ZodString;
|
|
4753
4953
|
description: z.ZodNullable<z.ZodString>;
|
|
4754
4954
|
kind: z.ZodEnum<{
|
|
4755
|
-
other: "other";
|
|
4756
4955
|
email: "email";
|
|
4956
|
+
other: "other";
|
|
4757
4957
|
call: "call";
|
|
4758
4958
|
meeting: "meeting";
|
|
4759
4959
|
}>;
|
|
@@ -4772,8 +4972,8 @@ declare const DealSchemas: {
|
|
|
4772
4972
|
title: z.ZodString;
|
|
4773
4973
|
description: z.ZodNullable<z.ZodString>;
|
|
4774
4974
|
kind: z.ZodEnum<{
|
|
4775
|
-
other: "other";
|
|
4776
4975
|
email: "email";
|
|
4976
|
+
other: "other";
|
|
4777
4977
|
call: "call";
|
|
4778
4978
|
meeting: "meeting";
|
|
4779
4979
|
}>;
|
|
@@ -5664,6 +5864,100 @@ interface ProjectClientRef {
|
|
|
5664
5864
|
status: string;
|
|
5665
5865
|
}
|
|
5666
5866
|
|
|
5867
|
+
declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
5868
|
+
objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5869
|
+
id: z.ZodString;
|
|
5870
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5871
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5872
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5873
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5874
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5875
|
+
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5876
|
+
}, z.core.$loose>>>>;
|
|
5877
|
+
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5878
|
+
id: z.ZodString;
|
|
5879
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5880
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5881
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5882
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5883
|
+
from: z.ZodString;
|
|
5884
|
+
to: z.ZodString;
|
|
5885
|
+
cardinality: z.ZodOptional<z.ZodString>;
|
|
5886
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5887
|
+
}, z.core.$loose>>>>;
|
|
5888
|
+
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5889
|
+
id: z.ZodString;
|
|
5890
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5891
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5892
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5893
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5894
|
+
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
5895
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5896
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
5897
|
+
}, z.core.$loose>>>>;
|
|
5898
|
+
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5899
|
+
id: z.ZodString;
|
|
5900
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5901
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5902
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5903
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5904
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
5905
|
+
appliesTo: z.ZodOptional<z.ZodString>;
|
|
5906
|
+
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5907
|
+
}, z.core.$loose>>>>;
|
|
5908
|
+
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5909
|
+
id: z.ZodString;
|
|
5910
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5911
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5912
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5913
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5914
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5915
|
+
}, z.core.$loose>>>>;
|
|
5916
|
+
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5917
|
+
id: z.ZodString;
|
|
5918
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5919
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5920
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5921
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5922
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5923
|
+
}, z.core.$loose>>>>;
|
|
5924
|
+
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5925
|
+
id: z.ZodString;
|
|
5926
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5927
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5928
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5929
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5930
|
+
primitive: z.ZodOptional<z.ZodString>;
|
|
5931
|
+
}, z.core.$loose>>>>;
|
|
5932
|
+
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5933
|
+
id: z.ZodString;
|
|
5934
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5935
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5936
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5937
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5938
|
+
valueType: z.ZodOptional<z.ZodString>;
|
|
5939
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
5940
|
+
pii: z.ZodOptional<z.ZodBoolean>;
|
|
5941
|
+
}, z.core.$loose>>>>;
|
|
5942
|
+
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5943
|
+
id: z.ZodString;
|
|
5944
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5945
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5946
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5947
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5948
|
+
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
5949
|
+
}, z.core.$loose>>>>;
|
|
5950
|
+
surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5951
|
+
id: z.ZodString;
|
|
5952
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5953
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5954
|
+
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
5955
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5956
|
+
route: z.ZodOptional<z.ZodString>;
|
|
5957
|
+
}, z.core.$loose>>>>;
|
|
5958
|
+
}, z.core.$strip>>;
|
|
5959
|
+
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
5960
|
+
|
|
5667
5961
|
/**
|
|
5668
5962
|
* A single CRM activity entry (note, stage change, or deal creation).
|
|
5669
5963
|
* Matches the CrmActivityEntry interface from useRecentCrmActivity.ts.
|
|
@@ -8929,6 +9223,10 @@ declare const ContentNodeSchema: z.ZodObject<{
|
|
|
8929
9223
|
}, z.core.$strip>;
|
|
8930
9224
|
type ContentNode = z.infer<typeof ContentNodeSchema>;
|
|
8931
9225
|
|
|
9226
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
9227
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
9228
|
+
[key: string]: JsonValue;
|
|
9229
|
+
};
|
|
8932
9230
|
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
8933
9231
|
interface SystemEntry {
|
|
8934
9232
|
id: string;
|
|
@@ -8963,6 +9261,13 @@ interface SystemEntry {
|
|
|
8963
9261
|
devOnly?: boolean;
|
|
8964
9262
|
requiresAdmin?: boolean;
|
|
8965
9263
|
order: number;
|
|
9264
|
+
config?: Record<string, JsonValue>;
|
|
9265
|
+
ontology?: OntologyScope;
|
|
9266
|
+
systems?: Record<string, SystemEntry>;
|
|
9267
|
+
/**
|
|
9268
|
+
* @deprecated Compatibility-only bridge for old tenant data and migration readers.
|
|
9269
|
+
* Author new semantic catalogs in `ontology` and local settings in `config`.
|
|
9270
|
+
*/
|
|
8966
9271
|
content?: Record<string, ContentNode>;
|
|
8967
9272
|
subsystems?: Record<string, SystemEntry>;
|
|
8968
9273
|
}
|
|
@@ -9275,6 +9580,10 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
9275
9580
|
kind: z.ZodEnum<{
|
|
9276
9581
|
links: "links";
|
|
9277
9582
|
affects: "affects";
|
|
9583
|
+
effects: "effects";
|
|
9584
|
+
implements: "implements";
|
|
9585
|
+
reads: "reads";
|
|
9586
|
+
writes: "writes";
|
|
9278
9587
|
emits: "emits";
|
|
9279
9588
|
contains: "contains";
|
|
9280
9589
|
references: "references";
|
|
@@ -9284,7 +9593,7 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
9284
9593
|
originates_from: "originates_from";
|
|
9285
9594
|
triggers: "triggers";
|
|
9286
9595
|
applies_to: "applies_to";
|
|
9287
|
-
|
|
9596
|
+
uses_catalog: "uses_catalog";
|
|
9288
9597
|
}>;
|
|
9289
9598
|
}, z.core.$strip>;
|
|
9290
9599
|
type Link = z.infer<typeof LinkSchema>;
|