@lucern/contracts 1.0.3 → 1.0.4
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 +3 -0
- package/dist/context-pack.contract.d.ts +10 -0
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/dsl.d.ts +1 -0
- package/dist/dsl.js +10 -3
- package/dist/dsl.js.map +1 -1
- package/dist/dsl.values.js +10 -3
- package/dist/dsl.values.js.map +1 -1
- package/dist/function-registry/beliefs.js +302 -0
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +302 -0
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.js +302 -0
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +302 -0
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +302 -0
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +302 -0
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.js +302 -0
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.js +302 -0
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.js +302 -0
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +302 -0
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +410 -6
- package/dist/function-registry/index.js +508 -2
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.js +302 -0
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +302 -0
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.js +302 -0
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +2 -2
- package/dist/function-registry/manifest.js +10 -0
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.js +302 -0
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.js +302 -0
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.js +302 -0
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.js +302 -0
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +302 -0
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.js +302 -0
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/worktrees.js +302 -0
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/generated/convexSchemas.js +1 -1
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.js +9 -9
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
- package/dist/generated/schema-manifest.json +10 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +343 -17
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +3 -3
- package/dist/infisical-runtime.contract.js +3 -3
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/infisical-runtime.platform-secrets.d.ts +3 -3
- package/dist/infisical-runtime.platform-secrets.js +3 -3
- package/dist/infisical-runtime.platform-secrets.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +3 -3
- package/dist/manifests/infisical-runtime-manifest.js +3 -3
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +29 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +60 -25
- package/dist/schemas/manifest.js +29 -2
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +8 -1
- package/dist/schemas/tables/kernel/embedding.js +29 -2
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +4 -4
- package/dist/schemas.values.js +29 -2
- package/dist/schemas.values.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +5 -0
- package/dist/sdk-tools.contract.js +292 -0
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/sdk-tools.contract.registry.js +292 -0
- package/dist/sdk-tools.contract.registry.js.map +1 -1
- package/dist/sdk-tools.contract.values.js +292 -0
- package/dist/sdk-tools.contract.values.js.map +1 -1
- package/dist/tool-contracts.d.ts +2 -0
- package/dist/tool-contracts.embeddings.d.ts +8 -0
- package/dist/tool-contracts.embeddings.js +120 -0
- package/dist/tool-contracts.embeddings.js.map +1 -0
- package/dist/tool-contracts.hybrid-discovery.d.ts +10 -0
- package/dist/tool-contracts.hybrid-discovery.js +148 -0
- package/dist/tool-contracts.hybrid-discovery.js.map +1 -0
- package/dist/tool-contracts.js +293 -1
- package/dist/tool-contracts.js.map +1 -1
- package/dist/tool-contracts.questions-listing.js +20 -0
- package/dist/tool-contracts.questions-listing.js.map +1 -1
- package/dist/tool-contracts.values.d.ts +2 -0
- package/dist/tool-contracts.values.js +292 -0
- package/dist/tool-contracts.values.js.map +1 -1
- package/package.json +10 -2
- package/dist/{edge-policy-manifest-4KOSP4nk.d.ts → edge-policy-manifest-CT8Y4IeW.d.ts} +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FunctionContract } from './types.js';
|
|
2
|
-
export { ContractInputProjection, ContractOutputProjection, ContractProjectionContext,
|
|
1
|
+
import { FunctionKind, FunctionIdempotency, FunctionSurfaceIntent, SurfaceClass, FunctionSurfaceMap, FunctionConvexTarget, FunctionGatewayTarget, 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';
|
|
@@ -15,6 +15,9 @@ export { worktreesContracts } from './worktrees.js';
|
|
|
15
15
|
export { tasksContracts } from './tasks.js';
|
|
16
16
|
export { edgesContracts } from './edges.js';
|
|
17
17
|
export { graphContracts } from './graph.js';
|
|
18
|
+
import { McpToolContract } from '../tool-contracts.types.js';
|
|
19
|
+
import { F as FunctionEffect } from '../defineFunction-DO97DKs4.js';
|
|
20
|
+
import { z } from 'zod';
|
|
18
21
|
export { contractsContracts } from './contracts.js';
|
|
19
22
|
export { judgmentsContracts } from './judgments.js';
|
|
20
23
|
export { coordinationContracts } from './coordination.js';
|
|
@@ -22,13 +25,414 @@ export { pipelineContracts } from './pipeline.js';
|
|
|
22
25
|
export { codingContracts } from './coding.js';
|
|
23
26
|
export { legacyContracts } from './legacy.js';
|
|
24
27
|
export { NODE_TYPE } from '../schemas/enums.js';
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
|
|
29
|
+
declare const embeddingsContracts: readonly [{
|
|
30
|
+
name: string;
|
|
31
|
+
kind: FunctionKind;
|
|
32
|
+
idempotent: FunctionIdempotency;
|
|
33
|
+
effects: readonly FunctionEffect[];
|
|
34
|
+
invariants: readonly string[] | undefined;
|
|
35
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
36
|
+
domain: string;
|
|
37
|
+
surfaceClass: SurfaceClass;
|
|
38
|
+
surfaces: FunctionSurfaceMap;
|
|
39
|
+
replacedBy: string | undefined;
|
|
40
|
+
rest: {
|
|
41
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
42
|
+
path: string;
|
|
43
|
+
};
|
|
44
|
+
sdk: {
|
|
45
|
+
namespace: string;
|
|
46
|
+
method: string;
|
|
47
|
+
};
|
|
48
|
+
mcp: {
|
|
49
|
+
exposed: boolean;
|
|
50
|
+
toolName: string;
|
|
51
|
+
} & McpToolContract & {
|
|
52
|
+
exposed: boolean;
|
|
53
|
+
toolName: string;
|
|
54
|
+
};
|
|
55
|
+
auth: {
|
|
56
|
+
scopes: string[];
|
|
57
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
58
|
+
};
|
|
59
|
+
convex: FunctionConvexTarget | undefined;
|
|
60
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
61
|
+
args: z.ZodTypeAny;
|
|
62
|
+
returns: z.ZodTypeAny;
|
|
63
|
+
input: z.ZodTypeAny;
|
|
64
|
+
output: z.ZodTypeAny;
|
|
65
|
+
openapi: {
|
|
66
|
+
summary: string;
|
|
67
|
+
tags: string[];
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
name: string;
|
|
71
|
+
kind: FunctionKind;
|
|
72
|
+
idempotent: FunctionIdempotency;
|
|
73
|
+
effects: readonly FunctionEffect[];
|
|
74
|
+
invariants: readonly string[] | undefined;
|
|
75
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
76
|
+
domain: string;
|
|
77
|
+
surfaceClass: SurfaceClass;
|
|
78
|
+
surfaces: FunctionSurfaceMap;
|
|
79
|
+
replacedBy: string | undefined;
|
|
80
|
+
rest: {
|
|
81
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
82
|
+
path: string;
|
|
83
|
+
};
|
|
84
|
+
sdk: {
|
|
85
|
+
namespace: string;
|
|
86
|
+
method: string;
|
|
87
|
+
};
|
|
88
|
+
mcp: {
|
|
89
|
+
exposed: boolean;
|
|
90
|
+
toolName: string;
|
|
91
|
+
} & McpToolContract & {
|
|
92
|
+
exposed: boolean;
|
|
93
|
+
toolName: string;
|
|
94
|
+
};
|
|
95
|
+
auth: {
|
|
96
|
+
scopes: string[];
|
|
97
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
98
|
+
};
|
|
99
|
+
convex: FunctionConvexTarget | undefined;
|
|
100
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
101
|
+
args: z.ZodTypeAny;
|
|
102
|
+
returns: z.ZodTypeAny;
|
|
103
|
+
input: z.ZodTypeAny;
|
|
104
|
+
output: z.ZodTypeAny;
|
|
105
|
+
openapi: {
|
|
106
|
+
summary: string;
|
|
107
|
+
tags: string[];
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
name: string;
|
|
111
|
+
kind: FunctionKind;
|
|
112
|
+
idempotent: FunctionIdempotency;
|
|
113
|
+
effects: readonly FunctionEffect[];
|
|
114
|
+
invariants: readonly string[] | undefined;
|
|
115
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
116
|
+
domain: string;
|
|
117
|
+
surfaceClass: SurfaceClass;
|
|
118
|
+
surfaces: FunctionSurfaceMap;
|
|
119
|
+
replacedBy: string | undefined;
|
|
120
|
+
rest: {
|
|
121
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
122
|
+
path: string;
|
|
123
|
+
};
|
|
124
|
+
sdk: {
|
|
125
|
+
namespace: string;
|
|
126
|
+
method: string;
|
|
127
|
+
};
|
|
128
|
+
mcp: {
|
|
129
|
+
exposed: boolean;
|
|
130
|
+
toolName: string;
|
|
131
|
+
} & McpToolContract & {
|
|
132
|
+
exposed: boolean;
|
|
133
|
+
toolName: string;
|
|
134
|
+
};
|
|
135
|
+
auth: {
|
|
136
|
+
scopes: string[];
|
|
137
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
138
|
+
};
|
|
139
|
+
convex: FunctionConvexTarget | undefined;
|
|
140
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
141
|
+
args: z.ZodTypeAny;
|
|
142
|
+
returns: z.ZodTypeAny;
|
|
143
|
+
input: z.ZodTypeAny;
|
|
144
|
+
output: z.ZodTypeAny;
|
|
145
|
+
openapi: {
|
|
146
|
+
summary: string;
|
|
147
|
+
tags: string[];
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
name: string;
|
|
151
|
+
kind: FunctionKind;
|
|
152
|
+
idempotent: FunctionIdempotency;
|
|
153
|
+
effects: readonly FunctionEffect[];
|
|
154
|
+
invariants: readonly string[] | undefined;
|
|
155
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
156
|
+
domain: string;
|
|
157
|
+
surfaceClass: SurfaceClass;
|
|
158
|
+
surfaces: FunctionSurfaceMap;
|
|
159
|
+
replacedBy: string | undefined;
|
|
160
|
+
rest: {
|
|
161
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
162
|
+
path: string;
|
|
163
|
+
};
|
|
164
|
+
sdk: {
|
|
165
|
+
namespace: string;
|
|
166
|
+
method: string;
|
|
167
|
+
};
|
|
168
|
+
mcp: {
|
|
169
|
+
exposed: boolean;
|
|
170
|
+
toolName: string;
|
|
171
|
+
} & McpToolContract & {
|
|
172
|
+
exposed: boolean;
|
|
173
|
+
toolName: string;
|
|
174
|
+
};
|
|
175
|
+
auth: {
|
|
176
|
+
scopes: string[];
|
|
177
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
178
|
+
};
|
|
179
|
+
convex: FunctionConvexTarget | undefined;
|
|
180
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
181
|
+
args: z.ZodTypeAny;
|
|
182
|
+
returns: z.ZodTypeAny;
|
|
183
|
+
input: z.ZodTypeAny;
|
|
184
|
+
output: z.ZodTypeAny;
|
|
185
|
+
openapi: {
|
|
186
|
+
summary: string;
|
|
187
|
+
tags: string[];
|
|
188
|
+
};
|
|
189
|
+
}];
|
|
190
|
+
|
|
191
|
+
declare const hybridContracts: readonly [{
|
|
192
|
+
name: string;
|
|
193
|
+
kind: FunctionKind;
|
|
194
|
+
idempotent: FunctionIdempotency;
|
|
195
|
+
effects: readonly FunctionEffect[];
|
|
196
|
+
invariants: readonly string[] | undefined;
|
|
197
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
198
|
+
domain: string;
|
|
199
|
+
surfaceClass: SurfaceClass;
|
|
200
|
+
surfaces: FunctionSurfaceMap;
|
|
201
|
+
replacedBy: string | undefined;
|
|
202
|
+
rest: {
|
|
203
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
204
|
+
path: string;
|
|
205
|
+
};
|
|
206
|
+
sdk: {
|
|
207
|
+
namespace: string;
|
|
208
|
+
method: string;
|
|
209
|
+
};
|
|
210
|
+
mcp: {
|
|
211
|
+
exposed: boolean;
|
|
212
|
+
toolName: string;
|
|
213
|
+
} & McpToolContract & {
|
|
214
|
+
exposed: boolean;
|
|
215
|
+
toolName: string;
|
|
216
|
+
};
|
|
217
|
+
auth: {
|
|
218
|
+
scopes: string[];
|
|
219
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
220
|
+
};
|
|
221
|
+
convex: FunctionConvexTarget | undefined;
|
|
222
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
223
|
+
args: z.ZodTypeAny;
|
|
224
|
+
returns: z.ZodTypeAny;
|
|
225
|
+
input: z.ZodTypeAny;
|
|
226
|
+
output: z.ZodTypeAny;
|
|
227
|
+
openapi: {
|
|
228
|
+
summary: string;
|
|
229
|
+
tags: string[];
|
|
230
|
+
};
|
|
231
|
+
}, {
|
|
232
|
+
name: string;
|
|
233
|
+
kind: FunctionKind;
|
|
234
|
+
idempotent: FunctionIdempotency;
|
|
235
|
+
effects: readonly FunctionEffect[];
|
|
236
|
+
invariants: readonly string[] | undefined;
|
|
237
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
238
|
+
domain: string;
|
|
239
|
+
surfaceClass: SurfaceClass;
|
|
240
|
+
surfaces: FunctionSurfaceMap;
|
|
241
|
+
replacedBy: string | undefined;
|
|
242
|
+
rest: {
|
|
243
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
244
|
+
path: string;
|
|
245
|
+
};
|
|
246
|
+
sdk: {
|
|
247
|
+
namespace: string;
|
|
248
|
+
method: string;
|
|
249
|
+
};
|
|
250
|
+
mcp: {
|
|
251
|
+
exposed: boolean;
|
|
252
|
+
toolName: string;
|
|
253
|
+
} & McpToolContract & {
|
|
254
|
+
exposed: boolean;
|
|
255
|
+
toolName: string;
|
|
256
|
+
};
|
|
257
|
+
auth: {
|
|
258
|
+
scopes: string[];
|
|
259
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
260
|
+
};
|
|
261
|
+
convex: FunctionConvexTarget | undefined;
|
|
262
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
263
|
+
args: z.ZodTypeAny;
|
|
264
|
+
returns: z.ZodTypeAny;
|
|
265
|
+
input: z.ZodTypeAny;
|
|
266
|
+
output: z.ZodTypeAny;
|
|
267
|
+
openapi: {
|
|
268
|
+
summary: string;
|
|
269
|
+
tags: string[];
|
|
270
|
+
};
|
|
271
|
+
}, {
|
|
272
|
+
name: string;
|
|
273
|
+
kind: FunctionKind;
|
|
274
|
+
idempotent: FunctionIdempotency;
|
|
275
|
+
effects: readonly FunctionEffect[];
|
|
276
|
+
invariants: readonly string[] | undefined;
|
|
277
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
278
|
+
domain: string;
|
|
279
|
+
surfaceClass: SurfaceClass;
|
|
280
|
+
surfaces: FunctionSurfaceMap;
|
|
281
|
+
replacedBy: string | undefined;
|
|
282
|
+
rest: {
|
|
283
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
284
|
+
path: string;
|
|
285
|
+
};
|
|
286
|
+
sdk: {
|
|
287
|
+
namespace: string;
|
|
288
|
+
method: string;
|
|
289
|
+
};
|
|
290
|
+
mcp: {
|
|
291
|
+
exposed: boolean;
|
|
292
|
+
toolName: string;
|
|
293
|
+
} & McpToolContract & {
|
|
294
|
+
exposed: boolean;
|
|
295
|
+
toolName: string;
|
|
296
|
+
};
|
|
297
|
+
auth: {
|
|
298
|
+
scopes: string[];
|
|
299
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
300
|
+
};
|
|
301
|
+
convex: FunctionConvexTarget | undefined;
|
|
302
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
303
|
+
args: z.ZodTypeAny;
|
|
304
|
+
returns: z.ZodTypeAny;
|
|
305
|
+
input: z.ZodTypeAny;
|
|
306
|
+
output: z.ZodTypeAny;
|
|
307
|
+
openapi: {
|
|
308
|
+
summary: string;
|
|
309
|
+
tags: string[];
|
|
310
|
+
};
|
|
311
|
+
}, {
|
|
312
|
+
name: string;
|
|
313
|
+
kind: FunctionKind;
|
|
314
|
+
idempotent: FunctionIdempotency;
|
|
315
|
+
effects: readonly FunctionEffect[];
|
|
316
|
+
invariants: readonly string[] | undefined;
|
|
317
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
318
|
+
domain: string;
|
|
319
|
+
surfaceClass: SurfaceClass;
|
|
320
|
+
surfaces: FunctionSurfaceMap;
|
|
321
|
+
replacedBy: string | undefined;
|
|
322
|
+
rest: {
|
|
323
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
324
|
+
path: string;
|
|
325
|
+
};
|
|
326
|
+
sdk: {
|
|
327
|
+
namespace: string;
|
|
328
|
+
method: string;
|
|
329
|
+
};
|
|
330
|
+
mcp: {
|
|
331
|
+
exposed: boolean;
|
|
332
|
+
toolName: string;
|
|
333
|
+
} & McpToolContract & {
|
|
334
|
+
exposed: boolean;
|
|
335
|
+
toolName: string;
|
|
336
|
+
};
|
|
337
|
+
auth: {
|
|
338
|
+
scopes: string[];
|
|
339
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
340
|
+
};
|
|
341
|
+
convex: FunctionConvexTarget | undefined;
|
|
342
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
343
|
+
args: z.ZodTypeAny;
|
|
344
|
+
returns: z.ZodTypeAny;
|
|
345
|
+
input: z.ZodTypeAny;
|
|
346
|
+
output: z.ZodTypeAny;
|
|
347
|
+
openapi: {
|
|
348
|
+
summary: string;
|
|
349
|
+
tags: string[];
|
|
350
|
+
};
|
|
351
|
+
}, {
|
|
352
|
+
name: string;
|
|
353
|
+
kind: FunctionKind;
|
|
354
|
+
idempotent: FunctionIdempotency;
|
|
355
|
+
effects: readonly FunctionEffect[];
|
|
356
|
+
invariants: readonly string[] | undefined;
|
|
357
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
358
|
+
domain: string;
|
|
359
|
+
surfaceClass: SurfaceClass;
|
|
360
|
+
surfaces: FunctionSurfaceMap;
|
|
361
|
+
replacedBy: string | undefined;
|
|
362
|
+
rest: {
|
|
363
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
364
|
+
path: string;
|
|
365
|
+
};
|
|
366
|
+
sdk: {
|
|
367
|
+
namespace: string;
|
|
368
|
+
method: string;
|
|
369
|
+
};
|
|
370
|
+
mcp: {
|
|
371
|
+
exposed: boolean;
|
|
372
|
+
toolName: string;
|
|
373
|
+
} & McpToolContract & {
|
|
374
|
+
exposed: boolean;
|
|
375
|
+
toolName: string;
|
|
376
|
+
};
|
|
377
|
+
auth: {
|
|
378
|
+
scopes: string[];
|
|
379
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
380
|
+
};
|
|
381
|
+
convex: FunctionConvexTarget | undefined;
|
|
382
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
383
|
+
args: z.ZodTypeAny;
|
|
384
|
+
returns: z.ZodTypeAny;
|
|
385
|
+
input: z.ZodTypeAny;
|
|
386
|
+
output: z.ZodTypeAny;
|
|
387
|
+
openapi: {
|
|
388
|
+
summary: string;
|
|
389
|
+
tags: string[];
|
|
390
|
+
};
|
|
391
|
+
}, {
|
|
392
|
+
name: string;
|
|
393
|
+
kind: FunctionKind;
|
|
394
|
+
idempotent: FunctionIdempotency;
|
|
395
|
+
effects: readonly FunctionEffect[];
|
|
396
|
+
invariants: readonly string[] | undefined;
|
|
397
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
398
|
+
domain: string;
|
|
399
|
+
surfaceClass: SurfaceClass;
|
|
400
|
+
surfaces: FunctionSurfaceMap;
|
|
401
|
+
replacedBy: string | undefined;
|
|
402
|
+
rest: {
|
|
403
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
404
|
+
path: string;
|
|
405
|
+
};
|
|
406
|
+
sdk: {
|
|
407
|
+
namespace: string;
|
|
408
|
+
method: string;
|
|
409
|
+
};
|
|
410
|
+
mcp: {
|
|
411
|
+
exposed: boolean;
|
|
412
|
+
toolName: string;
|
|
413
|
+
} & McpToolContract & {
|
|
414
|
+
exposed: boolean;
|
|
415
|
+
toolName: string;
|
|
416
|
+
};
|
|
417
|
+
auth: {
|
|
418
|
+
scopes: string[];
|
|
419
|
+
allowedPrincipalTypes: ("service" | "agent" | "group" | "external_viewer" | "user")[];
|
|
420
|
+
};
|
|
421
|
+
convex: FunctionConvexTarget | undefined;
|
|
422
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
423
|
+
args: z.ZodTypeAny;
|
|
424
|
+
returns: z.ZodTypeAny;
|
|
425
|
+
input: z.ZodTypeAny;
|
|
426
|
+
output: z.ZodTypeAny;
|
|
427
|
+
openapi: {
|
|
428
|
+
summary: string;
|
|
429
|
+
tags: string[];
|
|
430
|
+
};
|
|
431
|
+
}];
|
|
28
432
|
|
|
29
433
|
declare const ALL_FUNCTION_CONTRACTS: readonly FunctionContract[];
|
|
30
434
|
declare const FUNCTION_SURFACE_CONTRACTS: readonly FunctionContract[];
|
|
31
435
|
declare const FUNCTION_CONTRACTS_BY_NAME: Map<string, FunctionContract>;
|
|
32
436
|
declare const getFunctionContract: (name: string) => FunctionContract | undefined;
|
|
33
437
|
|
|
34
|
-
export { ALL_FUNCTION_CONTRACTS, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, FunctionContract, getFunctionContract };
|
|
438
|
+
export { ALL_FUNCTION_CONTRACTS, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, FunctionContract, FunctionConvexTarget, FunctionGatewayTarget, FunctionIdempotency, FunctionKind, FunctionSurfaceIntent, FunctionSurfaceMap, SurfaceClass, embeddingsContracts, getFunctionContract, hybridContracts };
|