@lucern/contracts 0.3.0-alpha.1 → 0.3.0-alpha.10
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/CHANGELOG.md +4 -0
- package/dist/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +155 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/component-host-boundary.contract.d.ts +41 -0
- package/dist/component-host-boundary.contract.js +54 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/context-pack.contract.d.ts +5 -3
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{dsl-BgpoVOVQ.d.ts → dsl-djCRfuWC.d.ts} +1 -1
- package/dist/dsl.d.ts +1 -1
- package/dist/dsl.js +1 -4
- package/dist/dsl.js.map +1 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
- package/dist/function-registry/beliefs.d.ts +41 -41
- package/dist/function-registry/beliefs.js +709 -31
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +694 -31
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +13 -13
- package/dist/function-registry/context.js +700 -35
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +665 -28
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +665 -28
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +156 -0
- package/dist/function-registry/edges.js +876 -60
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +33 -33
- package/dist/function-registry/evidence.js +717 -37
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +131 -53
- package/dist/function-registry/graph.js +781 -35
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +3 -3
- package/dist/function-registry/helpers.js +665 -28
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +665 -28
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +321 -7
- package/dist/function-registry/index.js +1046 -33
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +9 -9
- package/dist/function-registry/judgments.js +677 -31
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +665 -28
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +17 -17
- package/dist/function-registry/lenses.js +688 -31
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +6 -6
- package/dist/function-registry/manifest.js +18 -2
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +45 -45
- package/dist/function-registry/ontologies.js +683 -34
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +13 -13
- package/dist/function-registry/pipeline.js +674 -31
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +49 -49
- package/dist/function-registry/questions.js +762 -36
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +17 -17
- package/dist/function-registry/tasks.js +709 -30
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +99 -21
- package/dist/function-registry/topics.js +747 -32
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +1 -1
- package/dist/function-registry/worktrees.d.ts +80 -41
- package/dist/function-registry/worktrees.js +804 -40
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.d.ts +13 -0
- package/dist/function-registry-input-audit.js +166 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +2 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +4 -3
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +49 -3
- package/dist/generated/tableOwnership.d.ts +2 -1
- package/dist/generated/tableOwnership.js +2 -0
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +4 -2
- package/dist/graph-intelligence.contract.d.ts +506 -0
- package/dist/graph-intelligence.contract.js +595 -0
- package/dist/graph-intelligence.contract.js.map +1 -0
- package/dist/graph-types/index.d.ts +5 -1
- package/dist/graph-types/index.js +15 -4
- package/dist/graph-types/index.js.map +1 -1
- package/dist/{index-CV-0_VWJ.d.ts → index-O09U2xHk.d.ts} +5 -2
- package/dist/index.d.ts +24 -413
- package/dist/index.js +3286 -136
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +317 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/lens-filter.contract.js +4 -3
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +4 -3
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +13 -0
- package/dist/manifests/edge-policy-manifest.data.js +26 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +92 -0
- package/dist/manifests/edge-policy-manifest.js.map +1 -0
- package/dist/manifests/infisical-runtime-manifest.d.ts +151 -0
- package/dist/manifests/infisical-runtime-manifest.js +316 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -0
- package/dist/manifests/invariant-manifest.d.ts +65 -0
- package/dist/manifests/invariant-manifest.js +18 -0
- package/dist/manifests/invariant-manifest.js.map +1 -0
- package/dist/manifests/invariants/ast-utils.d.ts +14 -0
- package/dist/manifests/invariants/ast-utils.js +54 -0
- package/dist/manifests/invariants/ast-utils.js.map +1 -0
- package/dist/manifests/invariants/index.d.ts +15 -0
- package/dist/manifests/invariants/index.js +183 -0
- package/dist/manifests/invariants/index.js.map +1 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +12 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +94 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +1 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +12 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +99 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +1 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +12 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +42 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -0
- package/dist/manifests/tenant-client-manifest.d.ts +322 -0
- package/dist/manifests/tenant-client-manifest.js +432 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/mcp-gateway-boundary.contract.d.ts +181 -0
- package/dist/mcp-gateway-boundary.contract.js +43 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +399 -0
- package/dist/projections/check-convex-args-shape.js.map +1 -0
- package/dist/projections/create-evidence.projection.d.ts +176 -0
- package/dist/projections/create-evidence.projection.js +131 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +348 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/list-beliefs.projection.d.ts +36 -0
- package/dist/projections/list-beliefs.projection.js +54 -0
- package/dist/projections/list-beliefs.projection.js.map +1 -0
- package/dist/projections/list-tasks.projection.d.ts +32 -0
- package/dist/projections/list-tasks.projection.js +52 -0
- package/dist/projections/list-tasks.projection.js.map +1 -0
- package/dist/projections/modulate-confidence.projection.d.ts +219 -0
- package/dist/projections/modulate-confidence.projection.js +148 -0
- package/dist/projections/modulate-confidence.projection.js.map +1 -0
- package/dist/projections/projection-dsl.d.ts +11 -0
- package/dist/projections/projection-dsl.js +8 -0
- package/dist/projections/projection-dsl.js.map +1 -0
- package/dist/schema-helpers/enumValidation.js +2 -5
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +2 -1
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
- package/dist/schemas/component-table-manifest.d.ts +2 -2
- package/dist/schemas/enums.d.ts +5 -2
- package/dist/schemas/enums.js +5 -2
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +45 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +1030 -890
- package/dist/schemas/manifest.js +44 -3
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/identity/platform.d.ts +10 -10
- package/dist/schemas/tables/kernel/epistemic.d.ts +6 -6
- package/dist/schemas/tables/kernel/infra.d.ts +4 -4
- package/dist/schemas/tables/kernel/intelligence.d.ts +10 -10
- package/dist/schemas/tables/kernel/lens.d.ts +4 -4
- package/dist/schemas/tables/kernel/platform.d.ts +12 -12
- package/dist/schemas/tables/kernel/spine.d.ts +3 -3
- package/dist/schemas/tables/kernel/spine.js +5 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +42 -42
- package/dist/schemas/tables/kernel/topic.js +5 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +58 -58
- package/dist/schemas/tables/mc/identity.d.ts +26 -3
- package/dist/schemas/tables/mc/identity.js +35 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +20 -20
- package/dist/schemas/tables/mc/registry.d.ts +4 -4
- package/dist/schemas/tables/mc/workspace.d.ts +9 -3
- package/dist/schemas/tables/mc/workspace.js +3 -1
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +2 -2
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-BNklQDfB.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +646 -23
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1101 -0
- package/dist/tenant-bootstrap-seed.contract.js +653 -0
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
- package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
- package/dist/tenant-bootstrap-seed.defaults.js +303 -0
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
- package/dist/tenant-client.contract.d.ts +349 -0
- package/dist/tenant-client.contract.js +488 -0
- package/dist/tenant-client.contract.js.map +1 -0
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BevD9Ho2.d.ts} +36 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +647 -24
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +9 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FunctionContract } from './types.js';
|
|
2
|
-
export { ContractInputProjection, ContractOutputProjection, ContractProjectionContext,
|
|
1
|
+
import { FunctionKind, FunctionIdempotency, FunctionSurfaceIntent, SurfaceClass, FunctionSurfaceMap, FunctionConvexTarget, FunctionContract } from './types.js';
|
|
2
|
+
export { ContractInputProjection, ContractOutputProjection, ContractProjectionContext, FunctionMcpContract, FunctionPrincipalType, SurfaceExposure } from './types.js';
|
|
3
3
|
export { argsSchemaFromMcpContract, assertSurfaceCoverage, authUserId, classifyContract, compactRecord, defineFunctionContract, inputSchemaFromMcpContract, jsonObjectSchema, recordValue, surfaceContract, surfaceMcpContract, withCreatedBy, withUserId } from './helpers.js';
|
|
4
4
|
export { DUPLICATE_OPERATION_NAMES, FORBIDDEN_APPLICATION_OPERATION_NAMES, LEGACY_COMPAT_OPERATION_NAMES, LUCERN_OPERATION_MANIFEST, LucernOperationManifestEntry, LucernOperationName, MCP_ANALYSIS_PLATFORM_OPERATION_NAMES, MCP_ANALYSIS_TENANT_OPERATION_NAMES, MCP_AUTOMATION_OPERATION_NAMES, MCP_CORE_OPERATION_NAMES, MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES, MCP_GOVERNANCE_TENANT_OPERATION_NAMES, MCP_ONLY_INTERNAL_OPERATION_NAMES, MCP_WORKFLOW_PLATFORM_OPERATION_NAMES, MCP_WORKFLOW_TENANT_OPERATION_NAMES, PLATFORM_INTERNAL_OPERATION_NAMES, PLATFORM_PUBLIC_OPERATION_NAMES, SDK_ONLY_OPERATION_NAMES, TENANT_PUBLIC_OPERATION_NAMES, surfaceEnabled, surfaceIntentGateViolations } from './manifest.js';
|
|
5
5
|
export { contextContracts } from './context.js';
|
|
@@ -8,6 +8,9 @@ export { beliefsContracts } from './beliefs.js';
|
|
|
8
8
|
export { evidenceContracts } from './evidence.js';
|
|
9
9
|
export { questionsContracts } from './questions.js';
|
|
10
10
|
export { topicsContracts } from './topics.js';
|
|
11
|
+
import { M as McpToolContract } from '../tool-contracts-BevD9Ho2.js';
|
|
12
|
+
import { F as FunctionEffect } from '../defineFunction-DO97DKs4.js';
|
|
13
|
+
import { z } from 'zod';
|
|
11
14
|
export { lensesContracts } from './lenses.js';
|
|
12
15
|
export { ontologiesContracts } from './ontologies.js';
|
|
13
16
|
export { worktreesContracts } from './worktrees.js';
|
|
@@ -20,13 +23,324 @@ export { coordinationContracts } from './coordination.js';
|
|
|
20
23
|
export { pipelineContracts } from './pipeline.js';
|
|
21
24
|
export { codingContracts } from './coding.js';
|
|
22
25
|
export { legacyContracts } from './legacy.js';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
|
|
27
|
+
declare const nodesContracts: readonly [{
|
|
28
|
+
name: string;
|
|
29
|
+
kind: FunctionKind;
|
|
30
|
+
idempotent: FunctionIdempotency;
|
|
31
|
+
effects: readonly FunctionEffect[];
|
|
32
|
+
invariants: readonly string[] | undefined;
|
|
33
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
34
|
+
domain: string;
|
|
35
|
+
surfaceClass: SurfaceClass;
|
|
36
|
+
surfaces: FunctionSurfaceMap;
|
|
37
|
+
replacedBy: string | undefined;
|
|
38
|
+
rest: {
|
|
39
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
40
|
+
path: string;
|
|
41
|
+
};
|
|
42
|
+
sdk: {
|
|
43
|
+
namespace: string;
|
|
44
|
+
method: string;
|
|
45
|
+
};
|
|
46
|
+
mcp: {
|
|
47
|
+
exposed: boolean;
|
|
48
|
+
toolName: string;
|
|
49
|
+
} & McpToolContract & {
|
|
50
|
+
exposed: boolean;
|
|
51
|
+
toolName: string;
|
|
52
|
+
};
|
|
53
|
+
auth: {
|
|
54
|
+
scopes: string[];
|
|
55
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
56
|
+
};
|
|
57
|
+
convex: FunctionConvexTarget | undefined;
|
|
58
|
+
args: z.ZodTypeAny;
|
|
59
|
+
returns: z.ZodTypeAny;
|
|
60
|
+
input: z.ZodTypeAny;
|
|
61
|
+
output: z.ZodTypeAny;
|
|
62
|
+
openapi: {
|
|
63
|
+
summary: string;
|
|
64
|
+
tags: string[];
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
name: string;
|
|
68
|
+
kind: FunctionKind;
|
|
69
|
+
idempotent: FunctionIdempotency;
|
|
70
|
+
effects: readonly FunctionEffect[];
|
|
71
|
+
invariants: readonly string[] | undefined;
|
|
72
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
73
|
+
domain: string;
|
|
74
|
+
surfaceClass: SurfaceClass;
|
|
75
|
+
surfaces: FunctionSurfaceMap;
|
|
76
|
+
replacedBy: string | undefined;
|
|
77
|
+
rest: {
|
|
78
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
79
|
+
path: string;
|
|
80
|
+
};
|
|
81
|
+
sdk: {
|
|
82
|
+
namespace: string;
|
|
83
|
+
method: string;
|
|
84
|
+
};
|
|
85
|
+
mcp: {
|
|
86
|
+
exposed: boolean;
|
|
87
|
+
toolName: string;
|
|
88
|
+
} & McpToolContract & {
|
|
89
|
+
exposed: boolean;
|
|
90
|
+
toolName: string;
|
|
91
|
+
};
|
|
92
|
+
auth: {
|
|
93
|
+
scopes: string[];
|
|
94
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
95
|
+
};
|
|
96
|
+
convex: FunctionConvexTarget | undefined;
|
|
97
|
+
args: z.ZodTypeAny;
|
|
98
|
+
returns: z.ZodTypeAny;
|
|
99
|
+
input: z.ZodTypeAny;
|
|
100
|
+
output: z.ZodTypeAny;
|
|
101
|
+
openapi: {
|
|
102
|
+
summary: string;
|
|
103
|
+
tags: string[];
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
name: string;
|
|
107
|
+
kind: FunctionKind;
|
|
108
|
+
idempotent: FunctionIdempotency;
|
|
109
|
+
effects: readonly FunctionEffect[];
|
|
110
|
+
invariants: readonly string[] | undefined;
|
|
111
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
112
|
+
domain: string;
|
|
113
|
+
surfaceClass: SurfaceClass;
|
|
114
|
+
surfaces: FunctionSurfaceMap;
|
|
115
|
+
replacedBy: string | undefined;
|
|
116
|
+
rest: {
|
|
117
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
118
|
+
path: string;
|
|
119
|
+
};
|
|
120
|
+
sdk: {
|
|
121
|
+
namespace: string;
|
|
122
|
+
method: string;
|
|
123
|
+
};
|
|
124
|
+
mcp: {
|
|
125
|
+
exposed: boolean;
|
|
126
|
+
toolName: string;
|
|
127
|
+
} & McpToolContract & {
|
|
128
|
+
exposed: boolean;
|
|
129
|
+
toolName: string;
|
|
130
|
+
};
|
|
131
|
+
auth: {
|
|
132
|
+
scopes: string[];
|
|
133
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
134
|
+
};
|
|
135
|
+
convex: FunctionConvexTarget | undefined;
|
|
136
|
+
args: z.ZodTypeAny;
|
|
137
|
+
returns: z.ZodTypeAny;
|
|
138
|
+
input: z.ZodTypeAny;
|
|
139
|
+
output: z.ZodTypeAny;
|
|
140
|
+
openapi: {
|
|
141
|
+
summary: string;
|
|
142
|
+
tags: string[];
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
name: string;
|
|
146
|
+
kind: FunctionKind;
|
|
147
|
+
idempotent: FunctionIdempotency;
|
|
148
|
+
effects: readonly FunctionEffect[];
|
|
149
|
+
invariants: readonly string[] | undefined;
|
|
150
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
151
|
+
domain: string;
|
|
152
|
+
surfaceClass: SurfaceClass;
|
|
153
|
+
surfaces: FunctionSurfaceMap;
|
|
154
|
+
replacedBy: string | undefined;
|
|
155
|
+
rest: {
|
|
156
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
157
|
+
path: string;
|
|
158
|
+
};
|
|
159
|
+
sdk: {
|
|
160
|
+
namespace: string;
|
|
161
|
+
method: string;
|
|
162
|
+
};
|
|
163
|
+
mcp: {
|
|
164
|
+
exposed: boolean;
|
|
165
|
+
toolName: string;
|
|
166
|
+
} & McpToolContract & {
|
|
167
|
+
exposed: boolean;
|
|
168
|
+
toolName: string;
|
|
169
|
+
};
|
|
170
|
+
auth: {
|
|
171
|
+
scopes: string[];
|
|
172
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
173
|
+
};
|
|
174
|
+
convex: FunctionConvexTarget | undefined;
|
|
175
|
+
args: z.ZodTypeAny;
|
|
176
|
+
returns: z.ZodTypeAny;
|
|
177
|
+
input: z.ZodTypeAny;
|
|
178
|
+
output: z.ZodTypeAny;
|
|
179
|
+
openapi: {
|
|
180
|
+
summary: string;
|
|
181
|
+
tags: string[];
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
name: string;
|
|
185
|
+
kind: FunctionKind;
|
|
186
|
+
idempotent: FunctionIdempotency;
|
|
187
|
+
effects: readonly FunctionEffect[];
|
|
188
|
+
invariants: readonly string[] | undefined;
|
|
189
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
190
|
+
domain: string;
|
|
191
|
+
surfaceClass: SurfaceClass;
|
|
192
|
+
surfaces: FunctionSurfaceMap;
|
|
193
|
+
replacedBy: string | undefined;
|
|
194
|
+
rest: {
|
|
195
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
196
|
+
path: string;
|
|
197
|
+
};
|
|
198
|
+
sdk: {
|
|
199
|
+
namespace: string;
|
|
200
|
+
method: string;
|
|
201
|
+
};
|
|
202
|
+
mcp: {
|
|
203
|
+
exposed: boolean;
|
|
204
|
+
toolName: string;
|
|
205
|
+
} & McpToolContract & {
|
|
206
|
+
exposed: boolean;
|
|
207
|
+
toolName: string;
|
|
208
|
+
};
|
|
209
|
+
auth: {
|
|
210
|
+
scopes: string[];
|
|
211
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
212
|
+
};
|
|
213
|
+
convex: FunctionConvexTarget | undefined;
|
|
214
|
+
args: z.ZodTypeAny;
|
|
215
|
+
returns: z.ZodTypeAny;
|
|
216
|
+
input: z.ZodTypeAny;
|
|
217
|
+
output: z.ZodTypeAny;
|
|
218
|
+
openapi: {
|
|
219
|
+
summary: string;
|
|
220
|
+
tags: string[];
|
|
221
|
+
};
|
|
222
|
+
}, {
|
|
223
|
+
name: string;
|
|
224
|
+
kind: FunctionKind;
|
|
225
|
+
idempotent: FunctionIdempotency;
|
|
226
|
+
effects: readonly FunctionEffect[];
|
|
227
|
+
invariants: readonly string[] | undefined;
|
|
228
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
229
|
+
domain: string;
|
|
230
|
+
surfaceClass: SurfaceClass;
|
|
231
|
+
surfaces: FunctionSurfaceMap;
|
|
232
|
+
replacedBy: string | undefined;
|
|
233
|
+
rest: {
|
|
234
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
235
|
+
path: string;
|
|
236
|
+
};
|
|
237
|
+
sdk: {
|
|
238
|
+
namespace: string;
|
|
239
|
+
method: string;
|
|
240
|
+
};
|
|
241
|
+
mcp: {
|
|
242
|
+
exposed: boolean;
|
|
243
|
+
toolName: string;
|
|
244
|
+
} & McpToolContract & {
|
|
245
|
+
exposed: boolean;
|
|
246
|
+
toolName: string;
|
|
247
|
+
};
|
|
248
|
+
auth: {
|
|
249
|
+
scopes: string[];
|
|
250
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
251
|
+
};
|
|
252
|
+
convex: FunctionConvexTarget | undefined;
|
|
253
|
+
args: z.ZodTypeAny;
|
|
254
|
+
returns: z.ZodTypeAny;
|
|
255
|
+
input: z.ZodTypeAny;
|
|
256
|
+
output: z.ZodTypeAny;
|
|
257
|
+
openapi: {
|
|
258
|
+
summary: string;
|
|
259
|
+
tags: string[];
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
name: string;
|
|
263
|
+
kind: FunctionKind;
|
|
264
|
+
idempotent: FunctionIdempotency;
|
|
265
|
+
effects: readonly FunctionEffect[];
|
|
266
|
+
invariants: readonly string[] | undefined;
|
|
267
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
268
|
+
domain: string;
|
|
269
|
+
surfaceClass: SurfaceClass;
|
|
270
|
+
surfaces: FunctionSurfaceMap;
|
|
271
|
+
replacedBy: string | undefined;
|
|
272
|
+
rest: {
|
|
273
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
274
|
+
path: string;
|
|
275
|
+
};
|
|
276
|
+
sdk: {
|
|
277
|
+
namespace: string;
|
|
278
|
+
method: string;
|
|
279
|
+
};
|
|
280
|
+
mcp: {
|
|
281
|
+
exposed: boolean;
|
|
282
|
+
toolName: string;
|
|
283
|
+
} & McpToolContract & {
|
|
284
|
+
exposed: boolean;
|
|
285
|
+
toolName: string;
|
|
286
|
+
};
|
|
287
|
+
auth: {
|
|
288
|
+
scopes: string[];
|
|
289
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
290
|
+
};
|
|
291
|
+
convex: FunctionConvexTarget | undefined;
|
|
292
|
+
args: z.ZodTypeAny;
|
|
293
|
+
returns: z.ZodTypeAny;
|
|
294
|
+
input: z.ZodTypeAny;
|
|
295
|
+
output: z.ZodTypeAny;
|
|
296
|
+
openapi: {
|
|
297
|
+
summary: string;
|
|
298
|
+
tags: string[];
|
|
299
|
+
};
|
|
300
|
+
}, {
|
|
301
|
+
name: string;
|
|
302
|
+
kind: FunctionKind;
|
|
303
|
+
idempotent: FunctionIdempotency;
|
|
304
|
+
effects: readonly FunctionEffect[];
|
|
305
|
+
invariants: readonly string[] | undefined;
|
|
306
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
307
|
+
domain: string;
|
|
308
|
+
surfaceClass: SurfaceClass;
|
|
309
|
+
surfaces: FunctionSurfaceMap;
|
|
310
|
+
replacedBy: string | undefined;
|
|
311
|
+
rest: {
|
|
312
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
313
|
+
path: string;
|
|
314
|
+
};
|
|
315
|
+
sdk: {
|
|
316
|
+
namespace: string;
|
|
317
|
+
method: string;
|
|
318
|
+
};
|
|
319
|
+
mcp: {
|
|
320
|
+
exposed: boolean;
|
|
321
|
+
toolName: string;
|
|
322
|
+
} & McpToolContract & {
|
|
323
|
+
exposed: boolean;
|
|
324
|
+
toolName: string;
|
|
325
|
+
};
|
|
326
|
+
auth: {
|
|
327
|
+
scopes: string[];
|
|
328
|
+
allowedPrincipalTypes: ("service" | "agent" | "user")[];
|
|
329
|
+
};
|
|
330
|
+
convex: FunctionConvexTarget | undefined;
|
|
331
|
+
args: z.ZodTypeAny;
|
|
332
|
+
returns: z.ZodTypeAny;
|
|
333
|
+
input: z.ZodTypeAny;
|
|
334
|
+
output: z.ZodTypeAny;
|
|
335
|
+
openapi: {
|
|
336
|
+
summary: string;
|
|
337
|
+
tags: string[];
|
|
338
|
+
};
|
|
339
|
+
}];
|
|
26
340
|
|
|
27
341
|
declare const ALL_FUNCTION_CONTRACTS: readonly FunctionContract[];
|
|
28
342
|
declare const FUNCTION_SURFACE_CONTRACTS: readonly FunctionContract[];
|
|
29
343
|
declare const FUNCTION_CONTRACTS_BY_NAME: Map<string, FunctionContract>;
|
|
30
|
-
declare
|
|
344
|
+
declare const getFunctionContract: (name: string) => FunctionContract | undefined;
|
|
31
345
|
|
|
32
|
-
export { ALL_FUNCTION_CONTRACTS, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, FunctionContract, getFunctionContract };
|
|
346
|
+
export { ALL_FUNCTION_CONTRACTS, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, FunctionContract, FunctionConvexTarget, FunctionIdempotency, FunctionKind, FunctionSurfaceIntent, FunctionSurfaceMap, SurfaceClass, getFunctionContract, nodesContracts };
|