@lucern/contracts 0.1.2-alpha.5 → 0.3.0-alpha.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/defineFunction-DO97DKs4.d.ts +14 -0
- package/dist/defineTable-CBQ03FXl.d.ts +36 -0
- package/dist/dsl-BgpoVOVQ.d.ts +110 -0
- package/dist/dsl.d.ts +5 -0
- package/dist/dsl.js +678 -0
- package/dist/dsl.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +479 -0
- package/dist/function-registry/beliefs.js +4677 -0
- package/dist/function-registry/beliefs.js.map +1 -0
- package/dist/function-registry/coding.d.ts +323 -0
- package/dist/function-registry/coding.js +4451 -0
- package/dist/function-registry/coding.js.map +1 -0
- package/dist/function-registry/context.d.ts +206 -0
- package/dist/function-registry/context.js +4336 -0
- package/dist/function-registry/context.js.map +1 -0
- package/dist/function-registry/contracts.d.ts +206 -0
- package/dist/function-registry/contracts.js +4284 -0
- package/dist/function-registry/contracts.js.map +1 -0
- package/dist/function-registry/coordination.d.ts +440 -0
- package/dist/function-registry/coordination.js +4405 -0
- package/dist/function-registry/coordination.js.map +1 -0
- package/dist/function-registry/edges.d.ts +167 -0
- package/dist/function-registry/edges.js +4425 -0
- package/dist/function-registry/edges.js.map +1 -0
- package/dist/function-registry/evidence.d.ts +401 -0
- package/dist/function-registry/evidence.js +4598 -0
- package/dist/function-registry/evidence.js.map +1 -0
- package/dist/function-registry/graph.d.ts +596 -0
- package/dist/function-registry/graph.js +4489 -0
- package/dist/function-registry/graph.js.map +1 -0
- package/dist/function-registry/helpers.d.ts +84 -0
- package/dist/function-registry/helpers.js +4280 -0
- package/dist/function-registry/helpers.js.map +1 -0
- package/dist/function-registry/identity.d.ts +206 -0
- package/dist/function-registry/identity.js +4295 -0
- package/dist/function-registry/identity.js.map +1 -0
- package/dist/function-registry/index.d.ts +32 -0
- package/dist/function-registry/index.js +4384 -0
- package/dist/function-registry/index.js.map +1 -0
- package/dist/function-registry/judgments.d.ts +167 -0
- package/dist/function-registry/judgments.js +4308 -0
- package/dist/function-registry/judgments.js.map +1 -0
- package/dist/function-registry/legacy.d.ts +128 -0
- package/dist/function-registry/legacy.js +4259 -0
- package/dist/function-registry/legacy.js.map +1 -0
- package/dist/function-registry/lenses.d.ts +245 -0
- package/dist/function-registry/lenses.js +4343 -0
- package/dist/function-registry/lenses.js.map +1 -0
- package/dist/function-registry/manifest.d.ts +36 -0
- package/dist/function-registry/manifest.js +367 -0
- package/dist/function-registry/manifest.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +518 -0
- package/dist/function-registry/ontologies.js +4442 -0
- package/dist/function-registry/ontologies.js.map +1 -0
- package/dist/function-registry/pipeline.d.ts +206 -0
- package/dist/function-registry/pipeline.js +4295 -0
- package/dist/function-registry/pipeline.js.map +1 -0
- package/dist/function-registry/questions.d.ts +557 -0
- package/dist/function-registry/questions.js +4528 -0
- package/dist/function-registry/questions.js.map +1 -0
- package/dist/function-registry/tasks.d.ts +245 -0
- package/dist/function-registry/tasks.js +4373 -0
- package/dist/function-registry/tasks.js.map +1 -0
- package/dist/function-registry/topics.d.ts +284 -0
- package/dist/function-registry/topics.js +4350 -0
- package/dist/function-registry/topics.js.map +1 -0
- package/dist/function-registry/types.d.ts +84 -0
- package/dist/function-registry/types.js +3 -0
- package/dist/function-registry/types.js.map +1 -0
- package/dist/function-registry/worktrees.d.ts +479 -0
- package/dist/function-registry/worktrees.js +4522 -0
- package/dist/function-registry/worktrees.js.map +1 -0
- package/dist/generated/convexSchemas.d.ts +20 -0
- package/dist/generated/convexSchemas.js +161 -0
- package/dist/generated/convexSchemas.js.map +1 -0
- package/dist/generated/schema-manifest.json +5231 -0
- package/dist/generated/tableOwnership.d.ts +128 -0
- package/dist/generated/tableOwnership.js +278 -0
- package/dist/generated/tableOwnership.js.map +1 -0
- package/dist/generated/tier-expectations.json +363 -0
- package/dist/idOf-DR8tkhQS.d.ts +10 -0
- package/dist/index-CV-0_VWJ.d.ts +25 -0
- package/dist/index.d.ts +421 -2
- package/dist/index.js +7634 -1607
- package/dist/index.js.map +1 -1
- package/dist/schema-helpers/enumValidation.d.ts +17 -0
- package/dist/schema-helpers/enumValidation.js +143 -0
- package/dist/schema-helpers/enumValidation.js.map +1 -0
- package/dist/schema-helpers/spine/nodes/decision.d.ts +19 -0
- package/dist/schema-helpers/spine/nodes/decision.js +81 -0
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.d.ts +9 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +62 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -0
- package/dist/schema-helpers/topicIds.d.ts +17 -0
- package/dist/schema-helpers/topicIds.js +21 -0
- package/dist/schema-helpers/topicIds.js.map +1 -0
- package/dist/schema-helpers/topicLegacyScope.d.ts +19 -0
- package/dist/schema-helpers/topicLegacyScope.js +44 -0
- package/dist/schema-helpers/topicLegacyScope.js.map +1 -0
- package/dist/schema-helpers/validators.d.ts +8 -0
- package/dist/schema-helpers/validators.js +18 -0
- package/dist/schema-helpers/validators.js.map +1 -0
- package/dist/schemas/component-table-manifest.d.ts +74 -0
- package/dist/schemas/component-table-manifest.js +26 -0
- package/dist/schemas/component-table-manifest.js.map +1 -0
- package/dist/schemas/enums.d.ts +12 -0
- package/dist/schemas/enums.js +11 -0
- package/dist/schemas/enums.js.map +1 -0
- package/dist/schemas/index.d.ts +7 -0
- package/dist/schemas/index.js +4298 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/manifest.d.ts +24586 -0
- package/dist/schemas/manifest.js +4269 -0
- package/dist/schemas/manifest.js.map +1 -0
- package/dist/schemas/sl-opinion.d.ts +31 -0
- package/dist/schemas/sl-opinion.js +19 -0
- package/dist/schemas/sl-opinion.js.map +1 -0
- package/dist/schemas/tables/identity/agent.d.ts +21 -0
- package/dist/schemas/tables/identity/agent.js +41 -0
- package/dist/schemas/tables/identity/agent.js.map +1 -0
- package/dist/schemas/tables/identity/epistemic.d.ts +18 -0
- package/dist/schemas/tables/identity/epistemic.js +38 -0
- package/dist/schemas/tables/identity/epistemic.js.map +1 -0
- package/dist/schemas/tables/identity/model.d.ts +62 -0
- package/dist/schemas/tables/identity/model.js +110 -0
- package/dist/schemas/tables/identity/model.js.map +1 -0
- package/dist/schemas/tables/identity/platform.d.ts +392 -0
- package/dist/schemas/tables/identity/platform.js +475 -0
- package/dist/schemas/tables/identity/platform.js.map +1 -0
- package/dist/schemas/tables/identity/project.d.ts +22 -0
- package/dist/schemas/tables/identity/project.js +48 -0
- package/dist/schemas/tables/identity/project.js.map +1 -0
- package/dist/schemas/tables/identity/user.d.ts +26 -0
- package/dist/schemas/tables/identity/user.js +47 -0
- package/dist/schemas/tables/identity/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +20 -0
- package/dist/schemas/tables/kernel/config.js +39 -0
- package/dist/schemas/tables/kernel/config.js.map +1 -0
- package/dist/schemas/tables/kernel/coordination.d.ts +30 -0
- package/dist/schemas/tables/kernel/coordination.js +57 -0
- package/dist/schemas/tables/kernel/coordination.js.map +1 -0
- package/dist/schemas/tables/kernel/decision.d.ts +246 -0
- package/dist/schemas/tables/kernel/decision.js +371 -0
- package/dist/schemas/tables/kernel/decision.js.map +1 -0
- package/dist/schemas/tables/kernel/embedding.d.ts +18 -0
- package/dist/schemas/tables/kernel/embedding.js +48 -0
- package/dist/schemas/tables/kernel/embedding.js.map +1 -0
- package/dist/schemas/tables/kernel/epistemic.d.ts +317 -0
- package/dist/schemas/tables/kernel/epistemic.js +329 -0
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -0
- package/dist/schemas/tables/kernel/idempotency.d.ts +13 -0
- package/dist/schemas/tables/kernel/idempotency.js +31 -0
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -0
- package/dist/schemas/tables/kernel/infra.d.ts +183 -0
- package/dist/schemas/tables/kernel/infra.js +182 -0
- package/dist/schemas/tables/kernel/infra.js.map +1 -0
- package/dist/schemas/tables/kernel/intelligence.d.ts +293 -0
- package/dist/schemas/tables/kernel/intelligence.js +207 -0
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -0
- package/dist/schemas/tables/kernel/lens.d.ts +192 -0
- package/dist/schemas/tables/kernel/lens.js +122 -0
- package/dist/schemas/tables/kernel/lens.js.map +1 -0
- package/dist/schemas/tables/kernel/ontology.d.ts +89 -0
- package/dist/schemas/tables/kernel/ontology.js +91 -0
- package/dist/schemas/tables/kernel/ontology.js.map +1 -0
- package/dist/schemas/tables/kernel/platform.d.ts +353 -0
- package/dist/schemas/tables/kernel/platform.js +349 -0
- package/dist/schemas/tables/kernel/platform.js.map +1 -0
- package/dist/schemas/tables/kernel/spine.d.ts +206 -0
- package/dist/schemas/tables/kernel/spine.js +243 -0
- package/dist/schemas/tables/kernel/spine.js.map +1 -0
- package/dist/schemas/tables/kernel/task.d.ts +614 -0
- package/dist/schemas/tables/kernel/task.js +189 -0
- package/dist/schemas/tables/kernel/task.js.map +1 -0
- package/dist/schemas/tables/kernel/topic.d.ts +25 -0
- package/dist/schemas/tables/kernel/topic.js +62 -0
- package/dist/schemas/tables/kernel/topic.js.map +1 -0
- package/dist/schemas/tables/kernel/workflow.d.ts +45 -0
- package/dist/schemas/tables/kernel/workflow.js +94 -0
- package/dist/schemas/tables/kernel/workflow.js.map +1 -0
- package/dist/schemas/tables/kernel/worktree.d.ts +823 -0
- package/dist/schemas/tables/kernel/worktree.js +330 -0
- package/dist/schemas/tables/kernel/worktree.js.map +1 -0
- package/dist/schemas/tables/mc/identity.d.ts +134 -0
- package/dist/schemas/tables/mc/identity.js +221 -0
- package/dist/schemas/tables/mc/identity.js.map +1 -0
- package/dist/schemas/tables/mc/methodology.d.ts +46 -0
- package/dist/schemas/tables/mc/methodology.js +69 -0
- package/dist/schemas/tables/mc/methodology.js.map +1 -0
- package/dist/schemas/tables/mc/pack.d.ts +540 -0
- package/dist/schemas/tables/mc/pack.js +294 -0
- package/dist/schemas/tables/mc/pack.js.map +1 -0
- package/dist/schemas/tables/mc/policy.d.ts +57 -0
- package/dist/schemas/tables/mc/policy.js +121 -0
- package/dist/schemas/tables/mc/policy.js.map +1 -0
- package/dist/schemas/tables/mc/registry.d.ts +155 -0
- package/dist/schemas/tables/mc/registry.js +164 -0
- package/dist/schemas/tables/mc/registry.js.map +1 -0
- package/dist/schemas/tables/mc/runtime.d.ts +119 -0
- package/dist/schemas/tables/mc/runtime.js +199 -0
- package/dist/schemas/tables/mc/runtime.js.map +1 -0
- package/dist/schemas/tables/mc/tenant.d.ts +106 -0
- package/dist/schemas/tables/mc/tenant.js +114 -0
- package/dist/schemas/tables/mc/tenant.js.map +1 -0
- package/dist/schemas/tables/mc/workspace.d.ts +28 -0
- package/dist/schemas/tables/mc/workspace.js +52 -0
- package/dist/schemas/tables/mc/workspace.js.map +1 -0
- package/dist/sdk-methods.contract.d.ts +5 -2
- package/dist/{sdk-tools.contract-BnV0hKLp.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +3 -7
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +810 -218
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tool-contracts-C92-9ueT.d.ts +290 -0
- package/dist/tool-contracts.d.ts +1 -0
- package/dist/{mcp-tools.contract.js → tool-contracts.js} +812 -159
- package/dist/tool-contracts.js.map +1 -0
- package/dist/workflow-runtime.contract.js +1 -1
- package/dist/workflow-runtime.contract.js.map +1 -1
- package/package.json +137 -2
- package/dist/mcp-tools.contract-D8kXcP6d.d.ts +0 -254
- package/dist/mcp-tools.contract.d.ts +0 -1
- package/dist/mcp-tools.contract.js.map +0 -1
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { T as TableContract } from '../../../defineTable-CBQ03FXl.js';
|
|
3
|
+
import { C as ConvexIdSchema } from '../../../idOf-DR8tkhQS.js';
|
|
4
|
+
|
|
5
|
+
declare const packAssignments: TableContract<{
|
|
6
|
+
groupId: ConvexIdSchema<"groups">;
|
|
7
|
+
packKey: z.ZodString;
|
|
8
|
+
tenantId: ConvexIdSchema<"tenants">;
|
|
9
|
+
status: z.ZodEnum<["active", "revoked"]>;
|
|
10
|
+
assignedBy: z.ZodString;
|
|
11
|
+
createdAt: z.ZodNumber;
|
|
12
|
+
updatedAt: z.ZodNumber;
|
|
13
|
+
}>;
|
|
14
|
+
declare const packDefinitions: TableContract<{
|
|
15
|
+
packKey: z.ZodString;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
category: z.ZodEnum<["developer", "strategy", "data", "methodology", "ontology", "custom"]>;
|
|
19
|
+
lifecycle: z.ZodEnum<["active", "beta", "experimental"]>;
|
|
20
|
+
tierRequirement: z.ZodEnum<["free", "developer", "team", "enterprise"]>;
|
|
21
|
+
installScope: z.ZodOptional<z.ZodEnum<["tenant", "workspace"]>>;
|
|
22
|
+
toolNames: z.ZodArray<z.ZodString, "many">;
|
|
23
|
+
promptNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
+
agentKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
methodologyPackIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
ontologyConfig: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
ontologyKey: z.ZodString;
|
|
28
|
+
ontologyVersion: z.ZodOptional<z.ZodString>;
|
|
29
|
+
topicBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
topicType: z.ZodString;
|
|
31
|
+
autoBindNewTopics: z.ZodBoolean;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
topicType: string;
|
|
34
|
+
autoBindNewTopics: boolean;
|
|
35
|
+
}, {
|
|
36
|
+
topicType: string;
|
|
37
|
+
autoBindNewTopics: boolean;
|
|
38
|
+
}>, "many">>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
ontologyKey: string;
|
|
41
|
+
ontologyVersion?: string | undefined;
|
|
42
|
+
topicBindings?: {
|
|
43
|
+
topicType: string;
|
|
44
|
+
autoBindNewTopics: boolean;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
ontologyKey: string;
|
|
48
|
+
ontologyVersion?: string | undefined;
|
|
49
|
+
topicBindings?: {
|
|
50
|
+
topicType: string;
|
|
51
|
+
autoBindNewTopics: boolean;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
}>>;
|
|
54
|
+
lensConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
lensKey: z.ZodString;
|
|
56
|
+
perspectiveType: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
perspectiveType: string;
|
|
59
|
+
lensKey: string;
|
|
60
|
+
}, {
|
|
61
|
+
perspectiveType: string;
|
|
62
|
+
lensKey: string;
|
|
63
|
+
}>, "many">>;
|
|
64
|
+
configTemplates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
65
|
+
topicIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
66
|
+
status: z.ZodEnum<["draft", "active", "archived"]>;
|
|
67
|
+
createdBy: z.ZodString;
|
|
68
|
+
createdAt: z.ZodNumber;
|
|
69
|
+
updatedAt: z.ZodNumber;
|
|
70
|
+
}>;
|
|
71
|
+
declare const packEntitlements: TableContract<{
|
|
72
|
+
tenantId: ConvexIdSchema<"tenants">;
|
|
73
|
+
workspaceId: z.ZodOptional<ConvexIdSchema<"workspaces">>;
|
|
74
|
+
packKey: z.ZodString;
|
|
75
|
+
status: z.ZodEnum<["active", "disabled", "revoked"]>;
|
|
76
|
+
allowedLifecycles: z.ZodOptional<z.ZodArray<z.ZodEnum<["active", "beta", "experimental"]>, "many">>;
|
|
77
|
+
minVersion: z.ZodOptional<z.ZodString>;
|
|
78
|
+
maxVersion: z.ZodOptional<z.ZodString>;
|
|
79
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
+
grantedBy: z.ZodOptional<z.ZodString>;
|
|
81
|
+
createdAt: z.ZodNumber;
|
|
82
|
+
updatedAt: z.ZodNumber;
|
|
83
|
+
}>;
|
|
84
|
+
declare const packGroupAssignments: TableContract<{
|
|
85
|
+
groupId: ConvexIdSchema<"groups">;
|
|
86
|
+
tenantId: ConvexIdSchema<"tenants">;
|
|
87
|
+
packKey: z.ZodString;
|
|
88
|
+
packVersion: z.ZodOptional<z.ZodString>;
|
|
89
|
+
status: z.ZodEnum<["active", "disabled"]>;
|
|
90
|
+
assignedBy: z.ZodString;
|
|
91
|
+
createdAt: z.ZodNumber;
|
|
92
|
+
updatedAt: z.ZodNumber;
|
|
93
|
+
}>;
|
|
94
|
+
declare const packInstallations: TableContract<{
|
|
95
|
+
tenantId: ConvexIdSchema<"tenants">;
|
|
96
|
+
workspaceId: z.ZodOptional<ConvexIdSchema<"workspaces">>;
|
|
97
|
+
installScope: z.ZodOptional<z.ZodEnum<["tenant", "workspace"]>>;
|
|
98
|
+
packKey: z.ZodString;
|
|
99
|
+
packVersion: z.ZodString;
|
|
100
|
+
candidateVersion: z.ZodOptional<z.ZodString>;
|
|
101
|
+
versionWindowState: z.ZodOptional<z.ZodEnum<["none", "prepared", "canary", "committed", "rolled_back"]>>;
|
|
102
|
+
upgradeStartedAt: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
upgradeCompletedAt: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
runtimeState: z.ZodEnum<["registered", "validated", "installed", "enabled", "degraded", "disabled", "removed"]>;
|
|
105
|
+
healthStatus: z.ZodEnum<["unknown", "healthy", "degraded", "failing"]>;
|
|
106
|
+
installStatus: z.ZodOptional<z.ZodEnum<["installing", "installed", "partial_failure", "uninstalling"]>>;
|
|
107
|
+
componentStatus: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
108
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
109
|
+
installedBy: z.ZodOptional<z.ZodString>;
|
|
110
|
+
enabledBy: z.ZodOptional<z.ZodString>;
|
|
111
|
+
disabledBy: z.ZodOptional<z.ZodString>;
|
|
112
|
+
lastHealthCheckAt: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
114
|
+
createdAt: z.ZodNumber;
|
|
115
|
+
updatedAt: z.ZodNumber;
|
|
116
|
+
}>;
|
|
117
|
+
declare const packVersions: TableContract<{
|
|
118
|
+
packKey: z.ZodString;
|
|
119
|
+
version: z.ZodString;
|
|
120
|
+
status: z.ZodEnum<["draft", "published", "deprecated"]>;
|
|
121
|
+
toolManifest: z.ZodArray<z.ZodObject<{
|
|
122
|
+
toolName: z.ZodString;
|
|
123
|
+
toolVersion: z.ZodString;
|
|
124
|
+
description: z.ZodOptional<z.ZodString>;
|
|
125
|
+
category: z.ZodOptional<z.ZodEnum<["read", "write", "admin", "system"]>>;
|
|
126
|
+
requiredRole: z.ZodOptional<z.ZodEnum<["platform_admin", "tenant_admin", "workspace_admin", "editor", "viewer", "auditor", "service_agent"]>>;
|
|
127
|
+
requiredAction: z.ZodOptional<z.ZodEnum<["read", "mutate", "admin", "summarize", "export", "create", "delete", "grant", "revoke"]>>;
|
|
128
|
+
surfaces: z.ZodOptional<z.ZodArray<z.ZodEnum<["mcp", "chat", "voice", "sprint", "api", "sdk", "cli"]>, "many">>;
|
|
129
|
+
handlerRef: z.ZodOptional<z.ZodString>;
|
|
130
|
+
parameterSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
131
|
+
returnSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
132
|
+
executionAdapter: z.ZodOptional<z.ZodEnum<["convex_mutation", "convex_action", "http_callback", "mcp_tool", "sdk_invocation", "external_observed"]>>;
|
|
133
|
+
safetyMetadata: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
readOnly: z.ZodBoolean;
|
|
135
|
+
idempotent: z.ZodBoolean;
|
|
136
|
+
sideEffectLevel: z.ZodEnum<["none", "low", "high"]>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
readOnly: boolean;
|
|
139
|
+
idempotent: boolean;
|
|
140
|
+
sideEffectLevel: "high" | "low" | "none";
|
|
141
|
+
}, {
|
|
142
|
+
readOnly: boolean;
|
|
143
|
+
idempotent: boolean;
|
|
144
|
+
sideEffectLevel: "high" | "low" | "none";
|
|
145
|
+
}>>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
toolName: string;
|
|
148
|
+
toolVersion: string;
|
|
149
|
+
description?: string | undefined;
|
|
150
|
+
executionAdapter?: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed" | undefined;
|
|
151
|
+
parameterSchema?: Record<string, any> | undefined;
|
|
152
|
+
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
153
|
+
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
154
|
+
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "delete" | "grant" | "revoke" | undefined;
|
|
155
|
+
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
156
|
+
returnSchema?: Record<string, any> | undefined;
|
|
157
|
+
handlerRef?: string | undefined;
|
|
158
|
+
safetyMetadata?: {
|
|
159
|
+
readOnly: boolean;
|
|
160
|
+
idempotent: boolean;
|
|
161
|
+
sideEffectLevel: "high" | "low" | "none";
|
|
162
|
+
} | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
toolName: string;
|
|
165
|
+
toolVersion: string;
|
|
166
|
+
description?: string | undefined;
|
|
167
|
+
executionAdapter?: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed" | undefined;
|
|
168
|
+
parameterSchema?: Record<string, any> | undefined;
|
|
169
|
+
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
170
|
+
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
171
|
+
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "delete" | "grant" | "revoke" | undefined;
|
|
172
|
+
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
173
|
+
returnSchema?: Record<string, any> | undefined;
|
|
174
|
+
handlerRef?: string | undefined;
|
|
175
|
+
safetyMetadata?: {
|
|
176
|
+
readOnly: boolean;
|
|
177
|
+
idempotent: boolean;
|
|
178
|
+
sideEffectLevel: "high" | "low" | "none";
|
|
179
|
+
} | undefined;
|
|
180
|
+
}>, "many">;
|
|
181
|
+
promptManifest: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
182
|
+
agentManifest: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
183
|
+
methodologyManifest: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
184
|
+
ontologySnapshot: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
ontologyKey: z.ZodString;
|
|
186
|
+
version: z.ZodString;
|
|
187
|
+
entityTypes: z.ZodArray<z.ZodObject<{
|
|
188
|
+
value: z.ZodString;
|
|
189
|
+
label: z.ZodString;
|
|
190
|
+
description: z.ZodOptional<z.ZodString>;
|
|
191
|
+
schema: z.ZodOptional<z.ZodAny>;
|
|
192
|
+
subtypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
+
value: z.ZodString;
|
|
194
|
+
label: z.ZodString;
|
|
195
|
+
description: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
value: string;
|
|
198
|
+
label: string;
|
|
199
|
+
description?: string | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
value: string;
|
|
202
|
+
label: string;
|
|
203
|
+
description?: string | undefined;
|
|
204
|
+
}>, "many">>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
value: string;
|
|
207
|
+
label: string;
|
|
208
|
+
schema?: any;
|
|
209
|
+
description?: string | undefined;
|
|
210
|
+
subtypes?: {
|
|
211
|
+
value: string;
|
|
212
|
+
label: string;
|
|
213
|
+
description?: string | undefined;
|
|
214
|
+
}[] | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
value: string;
|
|
217
|
+
label: string;
|
|
218
|
+
schema?: any;
|
|
219
|
+
description?: string | undefined;
|
|
220
|
+
subtypes?: {
|
|
221
|
+
value: string;
|
|
222
|
+
label: string;
|
|
223
|
+
description?: string | undefined;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
}>, "many">;
|
|
226
|
+
edgeTypes: z.ZodArray<z.ZodObject<{
|
|
227
|
+
value: z.ZodString;
|
|
228
|
+
label: z.ZodString;
|
|
229
|
+
description: z.ZodOptional<z.ZodString>;
|
|
230
|
+
sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
231
|
+
targetTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
232
|
+
constraintSeverity: z.ZodOptional<z.ZodEnum<["warn", "info"]>>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
value: string;
|
|
235
|
+
label: string;
|
|
236
|
+
description?: string | undefined;
|
|
237
|
+
sourceTypes?: string[] | undefined;
|
|
238
|
+
targetTypes?: string[] | undefined;
|
|
239
|
+
constraintSeverity?: "info" | "warn" | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
value: string;
|
|
242
|
+
label: string;
|
|
243
|
+
description?: string | undefined;
|
|
244
|
+
sourceTypes?: string[] | undefined;
|
|
245
|
+
targetTypes?: string[] | undefined;
|
|
246
|
+
constraintSeverity?: "info" | "warn" | undefined;
|
|
247
|
+
}>, "many">;
|
|
248
|
+
topicBindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
249
|
+
topicType: z.ZodString;
|
|
250
|
+
autoBindNewTopics: z.ZodBoolean;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
topicType: string;
|
|
253
|
+
autoBindNewTopics: boolean;
|
|
254
|
+
}, {
|
|
255
|
+
topicType: string;
|
|
256
|
+
autoBindNewTopics: boolean;
|
|
257
|
+
}>, "many">>;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
version: string;
|
|
260
|
+
ontologyKey: string;
|
|
261
|
+
entityTypes: {
|
|
262
|
+
value: string;
|
|
263
|
+
label: string;
|
|
264
|
+
schema?: any;
|
|
265
|
+
description?: string | undefined;
|
|
266
|
+
subtypes?: {
|
|
267
|
+
value: string;
|
|
268
|
+
label: string;
|
|
269
|
+
description?: string | undefined;
|
|
270
|
+
}[] | undefined;
|
|
271
|
+
}[];
|
|
272
|
+
edgeTypes: {
|
|
273
|
+
value: string;
|
|
274
|
+
label: string;
|
|
275
|
+
description?: string | undefined;
|
|
276
|
+
sourceTypes?: string[] | undefined;
|
|
277
|
+
targetTypes?: string[] | undefined;
|
|
278
|
+
constraintSeverity?: "info" | "warn" | undefined;
|
|
279
|
+
}[];
|
|
280
|
+
topicBindings?: {
|
|
281
|
+
topicType: string;
|
|
282
|
+
autoBindNewTopics: boolean;
|
|
283
|
+
}[] | undefined;
|
|
284
|
+
}, {
|
|
285
|
+
version: string;
|
|
286
|
+
ontologyKey: string;
|
|
287
|
+
entityTypes: {
|
|
288
|
+
value: string;
|
|
289
|
+
label: string;
|
|
290
|
+
schema?: any;
|
|
291
|
+
description?: string | undefined;
|
|
292
|
+
subtypes?: {
|
|
293
|
+
value: string;
|
|
294
|
+
label: string;
|
|
295
|
+
description?: string | undefined;
|
|
296
|
+
}[] | undefined;
|
|
297
|
+
}[];
|
|
298
|
+
edgeTypes: {
|
|
299
|
+
value: string;
|
|
300
|
+
label: string;
|
|
301
|
+
description?: string | undefined;
|
|
302
|
+
sourceTypes?: string[] | undefined;
|
|
303
|
+
targetTypes?: string[] | undefined;
|
|
304
|
+
constraintSeverity?: "info" | "warn" | undefined;
|
|
305
|
+
}[];
|
|
306
|
+
topicBindings?: {
|
|
307
|
+
topicType: string;
|
|
308
|
+
autoBindNewTopics: boolean;
|
|
309
|
+
}[] | undefined;
|
|
310
|
+
}>>;
|
|
311
|
+
lensManifest: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
|
+
lensKey: z.ZodString;
|
|
313
|
+
name: z.ZodString;
|
|
314
|
+
description: z.ZodOptional<z.ZodString>;
|
|
315
|
+
perspectiveType: z.ZodString;
|
|
316
|
+
promptTemplates: z.ZodArray<z.ZodObject<{
|
|
317
|
+
key: z.ZodString;
|
|
318
|
+
promptRef: z.ZodString;
|
|
319
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
320
|
+
role: z.ZodOptional<z.ZodString>;
|
|
321
|
+
version: z.ZodOptional<z.ZodString>;
|
|
322
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
key: string;
|
|
326
|
+
promptRef: string;
|
|
327
|
+
required?: boolean | undefined;
|
|
328
|
+
version?: string | undefined;
|
|
329
|
+
metadata?: any;
|
|
330
|
+
role?: string | undefined;
|
|
331
|
+
phase?: string | undefined;
|
|
332
|
+
}, {
|
|
333
|
+
key: string;
|
|
334
|
+
promptRef: string;
|
|
335
|
+
required?: boolean | undefined;
|
|
336
|
+
version?: string | undefined;
|
|
337
|
+
metadata?: any;
|
|
338
|
+
role?: string | undefined;
|
|
339
|
+
phase?: string | undefined;
|
|
340
|
+
}>, "many">;
|
|
341
|
+
workflowTemplates: z.ZodArray<z.ZodObject<{
|
|
342
|
+
key: z.ZodString;
|
|
343
|
+
name: z.ZodString;
|
|
344
|
+
description: z.ZodOptional<z.ZodString>;
|
|
345
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
346
|
+
key: z.ZodString;
|
|
347
|
+
title: z.ZodString;
|
|
348
|
+
description: z.ZodOptional<z.ZodString>;
|
|
349
|
+
promptTemplateKey: z.ZodOptional<z.ZodString>;
|
|
350
|
+
taskTemplateKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
351
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
key: string;
|
|
354
|
+
title: string;
|
|
355
|
+
description?: string | undefined;
|
|
356
|
+
metadata?: any;
|
|
357
|
+
promptTemplateKey?: string | undefined;
|
|
358
|
+
taskTemplateKeys?: string[] | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
key: string;
|
|
361
|
+
title: string;
|
|
362
|
+
description?: string | undefined;
|
|
363
|
+
metadata?: any;
|
|
364
|
+
promptTemplateKey?: string | undefined;
|
|
365
|
+
taskTemplateKeys?: string[] | undefined;
|
|
366
|
+
}>, "many">;
|
|
367
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
name: string;
|
|
370
|
+
key: string;
|
|
371
|
+
steps: {
|
|
372
|
+
key: string;
|
|
373
|
+
title: string;
|
|
374
|
+
description?: string | undefined;
|
|
375
|
+
metadata?: any;
|
|
376
|
+
promptTemplateKey?: string | undefined;
|
|
377
|
+
taskTemplateKeys?: string[] | undefined;
|
|
378
|
+
}[];
|
|
379
|
+
description?: string | undefined;
|
|
380
|
+
metadata?: any;
|
|
381
|
+
}, {
|
|
382
|
+
name: string;
|
|
383
|
+
key: string;
|
|
384
|
+
steps: {
|
|
385
|
+
key: string;
|
|
386
|
+
title: string;
|
|
387
|
+
description?: string | undefined;
|
|
388
|
+
metadata?: any;
|
|
389
|
+
promptTemplateKey?: string | undefined;
|
|
390
|
+
taskTemplateKeys?: string[] | undefined;
|
|
391
|
+
}[];
|
|
392
|
+
description?: string | undefined;
|
|
393
|
+
metadata?: any;
|
|
394
|
+
}>, "many">;
|
|
395
|
+
taskTemplates: z.ZodArray<z.ZodObject<{
|
|
396
|
+
key: z.ZodString;
|
|
397
|
+
title: z.ZodString;
|
|
398
|
+
description: z.ZodOptional<z.ZodString>;
|
|
399
|
+
priority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
400
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
401
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
402
|
+
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
key: string;
|
|
404
|
+
title: string;
|
|
405
|
+
description?: string | undefined;
|
|
406
|
+
metadata?: any;
|
|
407
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
408
|
+
phase?: string | undefined;
|
|
409
|
+
}, {
|
|
410
|
+
key: string;
|
|
411
|
+
title: string;
|
|
412
|
+
description?: string | undefined;
|
|
413
|
+
metadata?: any;
|
|
414
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
415
|
+
phase?: string | undefined;
|
|
416
|
+
}>, "many">;
|
|
417
|
+
questionTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
418
|
+
key: z.ZodString;
|
|
419
|
+
text: z.ZodString;
|
|
420
|
+
priority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
421
|
+
linkedBeliefKey: z.ZodOptional<z.ZodString>;
|
|
422
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
key: string;
|
|
425
|
+
text: string;
|
|
426
|
+
metadata?: any;
|
|
427
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
428
|
+
linkedBeliefKey?: string | undefined;
|
|
429
|
+
}, {
|
|
430
|
+
key: string;
|
|
431
|
+
text: string;
|
|
432
|
+
metadata?: any;
|
|
433
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
434
|
+
linkedBeliefKey?: string | undefined;
|
|
435
|
+
}>, "many">>;
|
|
436
|
+
filterCriteria: z.ZodOptional<z.ZodAny>;
|
|
437
|
+
topicTypeAffinity: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
438
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
name: string;
|
|
441
|
+
perspectiveType: string;
|
|
442
|
+
promptTemplates: {
|
|
443
|
+
key: string;
|
|
444
|
+
promptRef: string;
|
|
445
|
+
required?: boolean | undefined;
|
|
446
|
+
version?: string | undefined;
|
|
447
|
+
metadata?: any;
|
|
448
|
+
role?: string | undefined;
|
|
449
|
+
phase?: string | undefined;
|
|
450
|
+
}[];
|
|
451
|
+
workflowTemplates: {
|
|
452
|
+
name: string;
|
|
453
|
+
key: string;
|
|
454
|
+
steps: {
|
|
455
|
+
key: string;
|
|
456
|
+
title: string;
|
|
457
|
+
description?: string | undefined;
|
|
458
|
+
metadata?: any;
|
|
459
|
+
promptTemplateKey?: string | undefined;
|
|
460
|
+
taskTemplateKeys?: string[] | undefined;
|
|
461
|
+
}[];
|
|
462
|
+
description?: string | undefined;
|
|
463
|
+
metadata?: any;
|
|
464
|
+
}[];
|
|
465
|
+
taskTemplates: {
|
|
466
|
+
key: string;
|
|
467
|
+
title: string;
|
|
468
|
+
description?: string | undefined;
|
|
469
|
+
metadata?: any;
|
|
470
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
471
|
+
phase?: string | undefined;
|
|
472
|
+
}[];
|
|
473
|
+
lensKey: string;
|
|
474
|
+
description?: string | undefined;
|
|
475
|
+
metadata?: any;
|
|
476
|
+
questionTemplates?: {
|
|
477
|
+
key: string;
|
|
478
|
+
text: string;
|
|
479
|
+
metadata?: any;
|
|
480
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
481
|
+
linkedBeliefKey?: string | undefined;
|
|
482
|
+
}[] | undefined;
|
|
483
|
+
filterCriteria?: any;
|
|
484
|
+
topicTypeAffinity?: string[] | undefined;
|
|
485
|
+
}, {
|
|
486
|
+
name: string;
|
|
487
|
+
perspectiveType: string;
|
|
488
|
+
promptTemplates: {
|
|
489
|
+
key: string;
|
|
490
|
+
promptRef: string;
|
|
491
|
+
required?: boolean | undefined;
|
|
492
|
+
version?: string | undefined;
|
|
493
|
+
metadata?: any;
|
|
494
|
+
role?: string | undefined;
|
|
495
|
+
phase?: string | undefined;
|
|
496
|
+
}[];
|
|
497
|
+
workflowTemplates: {
|
|
498
|
+
name: string;
|
|
499
|
+
key: string;
|
|
500
|
+
steps: {
|
|
501
|
+
key: string;
|
|
502
|
+
title: string;
|
|
503
|
+
description?: string | undefined;
|
|
504
|
+
metadata?: any;
|
|
505
|
+
promptTemplateKey?: string | undefined;
|
|
506
|
+
taskTemplateKeys?: string[] | undefined;
|
|
507
|
+
}[];
|
|
508
|
+
description?: string | undefined;
|
|
509
|
+
metadata?: any;
|
|
510
|
+
}[];
|
|
511
|
+
taskTemplates: {
|
|
512
|
+
key: string;
|
|
513
|
+
title: string;
|
|
514
|
+
description?: string | undefined;
|
|
515
|
+
metadata?: any;
|
|
516
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
517
|
+
phase?: string | undefined;
|
|
518
|
+
}[];
|
|
519
|
+
lensKey: string;
|
|
520
|
+
description?: string | undefined;
|
|
521
|
+
metadata?: any;
|
|
522
|
+
questionTemplates?: {
|
|
523
|
+
key: string;
|
|
524
|
+
text: string;
|
|
525
|
+
metadata?: any;
|
|
526
|
+
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
527
|
+
linkedBeliefKey?: string | undefined;
|
|
528
|
+
}[] | undefined;
|
|
529
|
+
filterCriteria?: any;
|
|
530
|
+
topicTypeAffinity?: string[] | undefined;
|
|
531
|
+
}>, "many">>;
|
|
532
|
+
configSnapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
533
|
+
topicIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
534
|
+
releaseNotes: z.ZodOptional<z.ZodString>;
|
|
535
|
+
releasedBy: z.ZodString;
|
|
536
|
+
publishedAt: z.ZodOptional<z.ZodNumber>;
|
|
537
|
+
createdAt: z.ZodNumber;
|
|
538
|
+
}>;
|
|
539
|
+
|
|
540
|
+
export { packAssignments, packDefinitions, packEntitlements, packGroupAssignments, packInstallations, packVersions };
|