@lucern/contracts 0.1.2-alpha.4 → 0.3.0-alpha.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/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 +675 -0
- package/dist/dsl.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +519 -0
- package/dist/function-registry/beliefs.js +4326 -0
- package/dist/function-registry/beliefs.js.map +1 -0
- package/dist/function-registry/coding.d.ts +347 -0
- package/dist/function-registry/coding.js +4268 -0
- package/dist/function-registry/coding.js.map +1 -0
- package/dist/function-registry/context.d.ts +218 -0
- package/dist/function-registry/context.js +4175 -0
- package/dist/function-registry/context.js.map +1 -0
- package/dist/function-registry/contracts.d.ts +218 -0
- package/dist/function-registry/contracts.js +4143 -0
- package/dist/function-registry/contracts.js.map +1 -0
- package/dist/function-registry/coordination.d.ts +476 -0
- package/dist/function-registry/coordination.js +4254 -0
- package/dist/function-registry/coordination.js.map +1 -0
- package/dist/function-registry/edges.d.ts +175 -0
- package/dist/function-registry/edges.js +4150 -0
- package/dist/function-registry/edges.js.map +1 -0
- package/dist/function-registry/evidence.d.ts +433 -0
- package/dist/function-registry/evidence.js +4302 -0
- package/dist/function-registry/evidence.js.map +1 -0
- package/dist/function-registry/graph.d.ts +648 -0
- package/dist/function-registry/graph.js +4329 -0
- package/dist/function-registry/graph.js.map +1 -0
- package/dist/function-registry/helpers.d.ts +86 -0
- package/dist/function-registry/helpers.js +4131 -0
- package/dist/function-registry/helpers.js.map +1 -0
- package/dist/function-registry/identity.d.ts +218 -0
- package/dist/function-registry/identity.js +4154 -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 +4235 -0
- package/dist/function-registry/index.js.map +1 -0
- package/dist/function-registry/judgments.d.ts +175 -0
- package/dist/function-registry/judgments.js +4157 -0
- package/dist/function-registry/judgments.js.map +1 -0
- package/dist/function-registry/legacy.d.ts +132 -0
- package/dist/function-registry/legacy.js +4118 -0
- package/dist/function-registry/legacy.js.map +1 -0
- package/dist/function-registry/lenses.d.ts +261 -0
- package/dist/function-registry/lenses.js +4160 -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 +366 -0
- package/dist/function-registry/manifest.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +562 -0
- package/dist/function-registry/ontologies.js +4292 -0
- package/dist/function-registry/ontologies.js.map +1 -0
- package/dist/function-registry/pipeline.d.ts +218 -0
- package/dist/function-registry/pipeline.js +4143 -0
- package/dist/function-registry/pipeline.js.map +1 -0
- package/dist/function-registry/questions.d.ts +605 -0
- package/dist/function-registry/questions.js +4329 -0
- package/dist/function-registry/questions.js.map +1 -0
- package/dist/function-registry/tasks.d.ts +261 -0
- package/dist/function-registry/tasks.js +4166 -0
- package/dist/function-registry/tasks.js.map +1 -0
- package/dist/function-registry/topics.d.ts +304 -0
- package/dist/function-registry/topics.js +4193 -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 +476 -0
- package/dist/function-registry/worktrees.js +4277 -0
- package/dist/function-registry/worktrees.js.map +1 -0
- package/dist/generated/convexSchemas.d.ts +20 -0
- package/dist/generated/convexSchemas.js +160 -0
- package/dist/generated/convexSchemas.js.map +1 -0
- package/dist/generated/schema-manifest.json +5179 -0
- package/dist/generated/tableOwnership.d.ts +127 -0
- package/dist/generated/tableOwnership.js +276 -0
- package/dist/generated/tableOwnership.js.map +1 -0
- package/dist/generated/tier-expectations.json +360 -0
- package/dist/idOf-DR8tkhQS.d.ts +10 -0
- package/dist/index-DoDXl8KS.d.ts +19 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +5739 -315
- 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/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 +5 -0
- package/dist/schemas/index.js +4240 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/manifest.d.ts +24521 -0
- package/dist/schemas/manifest.js +4242 -0
- package/dist/schemas/manifest.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 +315 -0
- package/dist/schemas/tables/kernel/epistemic.js +327 -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 +171 -0
- package/dist/schemas/tables/kernel/infra.js +160 -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 +328 -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-tools.contract-BnV0hKLp.d.ts → sdk-tools.contract-C2kQN_Xk.d.ts} +3 -7
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +664 -175
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tool-contracts-WCnuE9DW.d.ts +288 -0
- package/dist/tool-contracts.d.ts +1 -0
- package/dist/{mcp-tools.contract.js → tool-contracts.js} +666 -116
- package/dist/tool-contracts.js.map +1 -0
- package/package.json +119 -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,392 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { T as TableContract } from '../../../defineTable-CBQ03FXl.js';
|
|
3
|
+
|
|
4
|
+
declare const mcpWritePolicy: TableContract<{
|
|
5
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
role: z.ZodString;
|
|
7
|
+
toolCategory: z.ZodString;
|
|
8
|
+
permission: z.ZodEnum<["allow", "deny", "review_required"]>;
|
|
9
|
+
maxWritesPerSession: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
enabled: z.ZodBoolean;
|
|
11
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
12
|
+
createdAt: z.ZodNumber;
|
|
13
|
+
updatedAt: z.ZodNumber;
|
|
14
|
+
createdBy: z.ZodString;
|
|
15
|
+
}>;
|
|
16
|
+
declare const platformAudienceGrants: TableContract<{
|
|
17
|
+
tenantId: z.ZodString;
|
|
18
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
principalId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
audienceKey: z.ZodString;
|
|
22
|
+
audienceClass: z.ZodEnum<["internal", "restricted_external", "public"]>;
|
|
23
|
+
status: z.ZodEnum<["active", "revoked", "expired"]>;
|
|
24
|
+
grantedBy: z.ZodOptional<z.ZodString>;
|
|
25
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
|
+
createdAt: z.ZodNumber;
|
|
28
|
+
updatedAt: z.ZodNumber;
|
|
29
|
+
}>;
|
|
30
|
+
declare const platformAudiences: TableContract<{
|
|
31
|
+
tenantId: z.ZodString;
|
|
32
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
audienceKey: z.ZodString;
|
|
34
|
+
audienceLabel: z.ZodString;
|
|
35
|
+
audienceClass: z.ZodEnum<["internal", "restricted_external", "public"]>;
|
|
36
|
+
status: z.ZodEnum<["active", "disabled", "archived"]>;
|
|
37
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
39
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
40
|
+
createdAt: z.ZodNumber;
|
|
41
|
+
updatedAt: z.ZodNumber;
|
|
42
|
+
}>;
|
|
43
|
+
declare const platformPolicyDecisionLogs: TableContract<{
|
|
44
|
+
principalId: z.ZodString;
|
|
45
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
resourceType: z.ZodString;
|
|
49
|
+
resourceId: z.ZodString;
|
|
50
|
+
action: z.ZodEnum<["read", "summarize", "export", "mutate", "admin", "comment", "escalate", "resolve", "vote"]>;
|
|
51
|
+
decision: z.ZodEnum<["allow", "deny"]>;
|
|
52
|
+
reasonCode: z.ZodString;
|
|
53
|
+
policyVersion: z.ZodString;
|
|
54
|
+
policyBundleId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
audienceKey: z.ZodOptional<z.ZodString>;
|
|
56
|
+
audienceClass: z.ZodOptional<z.ZodEnum<["internal", "restricted_external", "public"]>>;
|
|
57
|
+
audienceMode: z.ZodOptional<z.ZodString>;
|
|
58
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
59
|
+
packKey: z.ZodOptional<z.ZodString>;
|
|
60
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
61
|
+
createdAt: z.ZodNumber;
|
|
62
|
+
}>;
|
|
63
|
+
declare const tenantApiKeys: TableContract<{
|
|
64
|
+
tenantId: z.ZodString;
|
|
65
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
66
|
+
label: z.ZodOptional<z.ZodString>;
|
|
67
|
+
keyPrefix: z.ZodString;
|
|
68
|
+
hashedKey: z.ZodString;
|
|
69
|
+
scopes: z.ZodArray<z.ZodString, "many">;
|
|
70
|
+
status: z.ZodEnum<["active", "revoked", "expired"]>;
|
|
71
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
revokedBy: z.ZodOptional<z.ZodString>;
|
|
75
|
+
createdBy: z.ZodString;
|
|
76
|
+
createdAt: z.ZodNumber;
|
|
77
|
+
updatedAt: z.ZodNumber;
|
|
78
|
+
}>;
|
|
79
|
+
declare const tenantConfig: TableContract<{
|
|
80
|
+
tenantId: z.ZodString;
|
|
81
|
+
authPolicyMode: z.ZodEnum<["open", "invite_only", "sso_required"]>;
|
|
82
|
+
defaultSessionTTL: z.ZodNumber;
|
|
83
|
+
defaultTopicVisibility: z.ZodEnum<["private", "tenant", "public"]>;
|
|
84
|
+
featureFlags: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
85
|
+
maxWorkspaceCount: z.ZodNumber;
|
|
86
|
+
defaultModelSlotOverrides: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
87
|
+
updatedAt: z.ZodNumber;
|
|
88
|
+
updatedBy: z.ZodString;
|
|
89
|
+
}>;
|
|
90
|
+
declare const tenantIntegrations: TableContract<{
|
|
91
|
+
tenantId: z.ZodString;
|
|
92
|
+
integrationKey: z.ZodString;
|
|
93
|
+
displayName: z.ZodString;
|
|
94
|
+
description: z.ZodOptional<z.ZodString>;
|
|
95
|
+
category: z.ZodEnum<["search", "scraper", "llm", "analysis", "custom"]>;
|
|
96
|
+
capabilities: z.ZodArray<z.ZodEnum<["search", "deep_research", "scrape", "summarize", "generate"]>, "many">;
|
|
97
|
+
config: z.ZodObject<{
|
|
98
|
+
apiBaseUrl: z.ZodString;
|
|
99
|
+
authType: z.ZodEnum<["api_key", "bearer", "basic", "none"]>;
|
|
100
|
+
authHeaderName: z.ZodOptional<z.ZodString>;
|
|
101
|
+
credentialSecretName: z.ZodOptional<z.ZodString>;
|
|
102
|
+
defaultParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
103
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
apiBaseUrl: string;
|
|
107
|
+
authType: "none" | "api_key" | "bearer" | "basic";
|
|
108
|
+
timeout?: number | undefined;
|
|
109
|
+
authHeaderName?: string | undefined;
|
|
110
|
+
credentialSecretName?: string | undefined;
|
|
111
|
+
defaultParams?: Record<string, any> | undefined;
|
|
112
|
+
customHeaders?: Record<string, any> | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
apiBaseUrl: string;
|
|
115
|
+
authType: "none" | "api_key" | "bearer" | "basic";
|
|
116
|
+
timeout?: number | undefined;
|
|
117
|
+
authHeaderName?: string | undefined;
|
|
118
|
+
credentialSecretName?: string | undefined;
|
|
119
|
+
defaultParams?: Record<string, any> | undefined;
|
|
120
|
+
customHeaders?: Record<string, any> | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
endpoints: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
search: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
path: z.ZodString;
|
|
125
|
+
method: z.ZodOptional<z.ZodString>;
|
|
126
|
+
queryParamName: z.ZodOptional<z.ZodString>;
|
|
127
|
+
resultPath: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
path: string;
|
|
130
|
+
method?: string | undefined;
|
|
131
|
+
queryParamName?: string | undefined;
|
|
132
|
+
resultPath?: string | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
path: string;
|
|
135
|
+
method?: string | undefined;
|
|
136
|
+
queryParamName?: string | undefined;
|
|
137
|
+
resultPath?: string | undefined;
|
|
138
|
+
}>>;
|
|
139
|
+
deepResearch: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
path: z.ZodString;
|
|
141
|
+
method: z.ZodOptional<z.ZodString>;
|
|
142
|
+
resultPath: z.ZodOptional<z.ZodString>;
|
|
143
|
+
async: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
pollPath: z.ZodOptional<z.ZodString>;
|
|
145
|
+
pollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
path: string;
|
|
148
|
+
pollIntervalMs?: number | undefined;
|
|
149
|
+
method?: string | undefined;
|
|
150
|
+
resultPath?: string | undefined;
|
|
151
|
+
async?: boolean | undefined;
|
|
152
|
+
pollPath?: string | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
path: string;
|
|
155
|
+
pollIntervalMs?: number | undefined;
|
|
156
|
+
method?: string | undefined;
|
|
157
|
+
resultPath?: string | undefined;
|
|
158
|
+
async?: boolean | undefined;
|
|
159
|
+
pollPath?: string | undefined;
|
|
160
|
+
}>>;
|
|
161
|
+
scrape: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
path: z.ZodString;
|
|
163
|
+
method: z.ZodOptional<z.ZodString>;
|
|
164
|
+
resultPath: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
path: string;
|
|
167
|
+
method?: string | undefined;
|
|
168
|
+
resultPath?: string | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
path: string;
|
|
171
|
+
method?: string | undefined;
|
|
172
|
+
resultPath?: string | undefined;
|
|
173
|
+
}>>;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
search?: {
|
|
176
|
+
path: string;
|
|
177
|
+
method?: string | undefined;
|
|
178
|
+
queryParamName?: string | undefined;
|
|
179
|
+
resultPath?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
scrape?: {
|
|
182
|
+
path: string;
|
|
183
|
+
method?: string | undefined;
|
|
184
|
+
resultPath?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
deepResearch?: {
|
|
187
|
+
path: string;
|
|
188
|
+
pollIntervalMs?: number | undefined;
|
|
189
|
+
method?: string | undefined;
|
|
190
|
+
resultPath?: string | undefined;
|
|
191
|
+
async?: boolean | undefined;
|
|
192
|
+
pollPath?: string | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
search?: {
|
|
196
|
+
path: string;
|
|
197
|
+
method?: string | undefined;
|
|
198
|
+
queryParamName?: string | undefined;
|
|
199
|
+
resultPath?: string | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
scrape?: {
|
|
202
|
+
path: string;
|
|
203
|
+
method?: string | undefined;
|
|
204
|
+
resultPath?: string | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
deepResearch?: {
|
|
207
|
+
path: string;
|
|
208
|
+
pollIntervalMs?: number | undefined;
|
|
209
|
+
method?: string | undefined;
|
|
210
|
+
resultPath?: string | undefined;
|
|
211
|
+
async?: boolean | undefined;
|
|
212
|
+
pollPath?: string | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
}>>;
|
|
215
|
+
status: z.ZodEnum<["active", "disabled", "error"]>;
|
|
216
|
+
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
lastError: z.ZodOptional<z.ZodString>;
|
|
218
|
+
usageCount: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
createdAt: z.ZodNumber;
|
|
220
|
+
updatedAt: z.ZodNumber;
|
|
221
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}>;
|
|
223
|
+
declare const tenantModelSlotBindings: TableContract<{
|
|
224
|
+
bindingId: z.ZodString;
|
|
225
|
+
tenantId: z.ZodString;
|
|
226
|
+
providerId: z.ZodString;
|
|
227
|
+
modelSlotId: z.ZodString;
|
|
228
|
+
secretRef: z.ZodString;
|
|
229
|
+
status: z.ZodEnum<["active", "revoked"]>;
|
|
230
|
+
passThroughOnly: z.ZodBoolean;
|
|
231
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
revokedBy: z.ZodOptional<z.ZodString>;
|
|
233
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
234
|
+
createdBy: z.ZodString;
|
|
235
|
+
createdAt: z.ZodNumber;
|
|
236
|
+
updatedAt: z.ZodNumber;
|
|
237
|
+
}>;
|
|
238
|
+
declare const tenantPolicies: TableContract<{
|
|
239
|
+
tenantId: z.ZodString;
|
|
240
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
roleName: z.ZodString;
|
|
242
|
+
description: z.ZodOptional<z.ZodString>;
|
|
243
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
244
|
+
resource: z.ZodString;
|
|
245
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
resource: string;
|
|
248
|
+
actions: string[];
|
|
249
|
+
}, {
|
|
250
|
+
resource: string;
|
|
251
|
+
actions: string[];
|
|
252
|
+
}>, "many">;
|
|
253
|
+
groupBindings: z.ZodArray<z.ZodString, "many">;
|
|
254
|
+
createdAt: z.ZodNumber;
|
|
255
|
+
updatedAt: z.ZodNumber;
|
|
256
|
+
createdBy: z.ZodString;
|
|
257
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}>;
|
|
259
|
+
declare const tenantProviderSecrets: TableContract<{
|
|
260
|
+
secretRef: z.ZodString;
|
|
261
|
+
tenantId: z.ZodString;
|
|
262
|
+
providerId: z.ZodString;
|
|
263
|
+
label: z.ZodOptional<z.ZodString>;
|
|
264
|
+
encryptedSecret: z.ZodString;
|
|
265
|
+
encryptionVersion: z.ZodString;
|
|
266
|
+
secretFingerprint: z.ZodString;
|
|
267
|
+
keyHint: z.ZodString;
|
|
268
|
+
status: z.ZodEnum<["active", "rotated", "revoked"]>;
|
|
269
|
+
rotatedFromSecretRef: z.ZodOptional<z.ZodString>;
|
|
270
|
+
revokedAt: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
revokedBy: z.ZodOptional<z.ZodString>;
|
|
272
|
+
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
274
|
+
createdBy: z.ZodString;
|
|
275
|
+
createdAt: z.ZodNumber;
|
|
276
|
+
updatedAt: z.ZodNumber;
|
|
277
|
+
}>;
|
|
278
|
+
declare const tenantProxyGatewayUsage: TableContract<{
|
|
279
|
+
usageId: z.ZodString;
|
|
280
|
+
tenantId: z.ZodString;
|
|
281
|
+
providerId: z.ZodString;
|
|
282
|
+
modelSlotId: z.ZodString;
|
|
283
|
+
secretRef: z.ZodString;
|
|
284
|
+
proxyTokenId: z.ZodString;
|
|
285
|
+
sessionId: z.ZodString;
|
|
286
|
+
principalId: z.ZodString;
|
|
287
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
288
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
289
|
+
requestPath: z.ZodString;
|
|
290
|
+
status: z.ZodEnum<["success", "error"]>;
|
|
291
|
+
responseStatus: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
tokenCount: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
latencyMs: z.ZodNumber;
|
|
296
|
+
estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
failureCode: z.ZodOptional<z.ZodString>;
|
|
298
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
299
|
+
createdAt: z.ZodNumber;
|
|
300
|
+
updatedAt: z.ZodNumber;
|
|
301
|
+
}>;
|
|
302
|
+
declare const tenantProxyTokenMints: TableContract<{
|
|
303
|
+
proxyTokenId: z.ZodString;
|
|
304
|
+
tenantId: z.ZodString;
|
|
305
|
+
providerId: z.ZodString;
|
|
306
|
+
modelSlotId: z.ZodString;
|
|
307
|
+
sessionId: z.ZodString;
|
|
308
|
+
principalId: z.ZodString;
|
|
309
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
310
|
+
secretRef: z.ZodString;
|
|
311
|
+
expiresAt: z.ZodNumber;
|
|
312
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
313
|
+
createdAt: z.ZodNumber;
|
|
314
|
+
}>;
|
|
315
|
+
declare const tenantSandboxAuditEvents: TableContract<{
|
|
316
|
+
eventId: z.ZodString;
|
|
317
|
+
tenantId: z.ZodString;
|
|
318
|
+
actorClerkId: z.ZodString;
|
|
319
|
+
action: z.ZodEnum<["sandbox_created", "sandbox_secret_injected", "sandbox_execution_started", "sandbox_execution_completed", "sandbox_limit_violated"]>;
|
|
320
|
+
executionId: z.ZodString;
|
|
321
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
322
|
+
principalId: z.ZodOptional<z.ZodString>;
|
|
323
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
324
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
325
|
+
secretRef: z.ZodOptional<z.ZodString>;
|
|
326
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
327
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
328
|
+
sandboxDir: z.ZodOptional<z.ZodString>;
|
|
329
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
memoryLimitMb: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
332
|
+
limitName: z.ZodOptional<z.ZodString>;
|
|
333
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
334
|
+
responseStatus: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
337
|
+
createdAt: z.ZodNumber;
|
|
338
|
+
}>;
|
|
339
|
+
declare const tenantSecrets: TableContract<{
|
|
340
|
+
tenantId: z.ZodString;
|
|
341
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
342
|
+
name: z.ZodString;
|
|
343
|
+
description: z.ZodOptional<z.ZodString>;
|
|
344
|
+
encryptedValue: z.ZodString;
|
|
345
|
+
lastRotated: z.ZodNumber;
|
|
346
|
+
createdBy: z.ZodString;
|
|
347
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
348
|
+
createdAt: z.ZodNumber;
|
|
349
|
+
updatedAt: z.ZodNumber;
|
|
350
|
+
}>;
|
|
351
|
+
declare const toolAcls: TableContract<{
|
|
352
|
+
role: z.ZodEnum<["platform_admin", "tenant_admin", "workspace_admin", "editor", "viewer", "auditor", "service_agent"]>;
|
|
353
|
+
toolName: z.ZodString;
|
|
354
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
355
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
}>;
|
|
357
|
+
declare const toolRegistry: TableContract<{
|
|
358
|
+
toolName: z.ZodString;
|
|
359
|
+
description: z.ZodOptional<z.ZodString>;
|
|
360
|
+
version: z.ZodOptional<z.ZodString>;
|
|
361
|
+
status: z.ZodEnum<["active", "deprecated", "disabled"]>;
|
|
362
|
+
requiredRole: z.ZodOptional<z.ZodEnum<["platform_admin", "tenant_admin", "workspace_admin", "editor", "viewer", "auditor", "service_agent"]>>;
|
|
363
|
+
requiredAction: z.ZodOptional<z.ZodEnum<["read", "mutate", "admin", "summarize", "export", "create", "delete", "grant", "revoke"]>>;
|
|
364
|
+
surfaces: z.ZodOptional<z.ZodArray<z.ZodEnum<["mcp", "chat", "voice", "sprint", "api", "sdk", "cli"]>, "many">>;
|
|
365
|
+
approvalGateId: z.ZodOptional<z.ZodString>;
|
|
366
|
+
category: z.ZodOptional<z.ZodEnum<["read", "write", "admin", "system"]>>;
|
|
367
|
+
parameterSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
368
|
+
handlerRef: z.ZodOptional<z.ZodString>;
|
|
369
|
+
returnSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
370
|
+
executionAdapter: z.ZodOptional<z.ZodEnum<["convex_mutation", "convex_action", "http_callback", "mcp_tool", "sdk_invocation", "external_observed"]>>;
|
|
371
|
+
safetyMetadata: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
readOnly: z.ZodBoolean;
|
|
373
|
+
idempotent: z.ZodBoolean;
|
|
374
|
+
sideEffectLevel: z.ZodEnum<["none", "low", "high"]>;
|
|
375
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
readOnly: boolean;
|
|
377
|
+
idempotent: boolean;
|
|
378
|
+
sideEffectLevel: "high" | "low" | "none";
|
|
379
|
+
}, {
|
|
380
|
+
readOnly: boolean;
|
|
381
|
+
idempotent: boolean;
|
|
382
|
+
sideEffectLevel: "high" | "low" | "none";
|
|
383
|
+
}>>;
|
|
384
|
+
packKey: z.ZodOptional<z.ZodString>;
|
|
385
|
+
packVersion: z.ZodOptional<z.ZodString>;
|
|
386
|
+
isCore: z.ZodBoolean;
|
|
387
|
+
mcVersion: z.ZodOptional<z.ZodString>;
|
|
388
|
+
registeredBy: z.ZodOptional<z.ZodString>;
|
|
389
|
+
registeredAt: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
}>;
|
|
391
|
+
|
|
392
|
+
export { mcpWritePolicy, platformAudienceGrants, platformAudiences, platformPolicyDecisionLogs, tenantApiKeys, tenantConfig, tenantIntegrations, tenantModelSlotBindings, tenantPolicies, tenantProviderSecrets, tenantProxyGatewayUsage, tenantProxyTokenMints, tenantSandboxAuditEvents, tenantSecrets, toolAcls, toolRegistry };
|