@lucern/contracts 1.0.48 → 1.0.51
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 +9 -0
- package/dist/function-registry/beliefs.d.ts +77 -0
- package/dist/function-registry/beliefs.js +17 -12
- package/dist/function-registry/coding.d.ts +183 -0
- package/dist/function-registry/coding.js +66 -39
- package/dist/function-registry/context.d.ts +9 -0
- package/dist/function-registry/context.js +3 -2
- package/dist/function-registry/contracts.d.ts +16 -12
- package/dist/function-registry/contracts.js +5 -2
- package/dist/function-registry/coordination.d.ts +9 -0
- package/dist/function-registry/coordination.js +1 -0
- package/dist/function-registry/edges.d.ts +140 -0
- package/dist/function-registry/edges.js +13 -9
- package/dist/function-registry/embeddings.d.ts +4 -0
- package/dist/function-registry/embeddings.js +1 -0
- package/dist/function-registry/evidence.d.ts +251 -0
- package/dist/function-registry/evidence.js +99 -10
- package/dist/function-registry/graph.d.ts +15 -0
- package/dist/function-registry/graph.js +5 -4
- package/dist/function-registry/helpers.d.ts +2 -0
- package/dist/function-registry/helpers.js +1 -0
- package/dist/function-registry/hybrid.d.ts +6 -0
- package/dist/function-registry/hybrid.js +1 -0
- package/dist/function-registry/identity.d.ts +4 -0
- package/dist/function-registry/identity.js +1 -0
- package/dist/function-registry/index.js +1 -0
- package/dist/function-registry/judgments.d.ts +2 -0
- package/dist/function-registry/judgments.js +3 -2
- package/dist/function-registry/legacy.d.ts +1 -0
- package/dist/function-registry/legacy.js +1 -0
- package/dist/function-registry/lenses.d.ts +4 -0
- package/dist/function-registry/lenses.js +1 -0
- package/dist/function-registry/nodes.d.ts +203 -0
- package/dist/function-registry/nodes.js +17 -11
- package/dist/function-registry/ontologies.d.ts +11 -0
- package/dist/function-registry/ontologies.js +18 -12
- package/dist/function-registry/pipeline.d.ts +3 -0
- package/dist/function-registry/pipeline.js +1 -0
- package/dist/function-registry/policy.d.ts +1 -0
- package/dist/function-registry/policy.js +1 -0
- package/dist/function-registry/questions.d.ts +104 -0
- package/dist/function-registry/questions.js +17 -12
- package/dist/function-registry/tasks.d.ts +86 -0
- package/dist/function-registry/tasks.js +2 -1
- package/dist/function-registry/topics.d.ts +7 -0
- package/dist/function-registry/topics.js +7 -2
- package/dist/function-registry/types.d.ts +46 -0
- package/dist/function-registry/worktrees.d.ts +440 -0
- package/dist/function-registry/worktrees.js +9 -3
- package/dist/generated/convexSchemas.d.ts +10 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -2
- package/dist/infisical-runtime.base.js +5 -0
- package/dist/infisical-runtime.contract.js +5 -0
- package/dist/infisical-runtime.tenant-secrets.js +5 -0
- package/dist/manifests/infisical-runtime-manifest.js +5 -0
- package/dist/manifests/tenant-client-manifest.d.ts +5 -1
- package/dist/manifests/tenant-client-manifest.js +5 -0
- package/dist/operator-receipt.contract.d.ts +32 -0
- package/dist/operator-receipt.contract.js +1 -0
- package/dist/projections/create-evidence.projection.d.ts +12 -12
- package/dist/projections/index.d.ts +2 -2
- package/dist/proof-attestation.json +1 -1
- package/dist/tenant-client.contract.d.ts +5 -1
- package/dist/tenant-client.contract.js +5 -0
- package/dist/worktree-belief-adoption.contract.d.ts +22 -21
- package/dist/worktree-belief-adoption.contract.js +3 -2
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export declare const contextContracts: readonly [{
|
|
|
5
5
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
6
6
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
7
7
|
invariants: readonly string[] | undefined;
|
|
8
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
8
9
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
9
10
|
domain: string;
|
|
10
11
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -50,6 +51,7 @@ export declare const contextContracts: readonly [{
|
|
|
50
51
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
51
52
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
52
53
|
invariants: readonly string[] | undefined;
|
|
54
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
53
55
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
54
56
|
domain: string;
|
|
55
57
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -95,6 +97,7 @@ export declare const contextContracts: readonly [{
|
|
|
95
97
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
96
98
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
97
99
|
invariants: readonly string[] | undefined;
|
|
100
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
98
101
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
99
102
|
domain: string;
|
|
100
103
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -140,6 +143,7 @@ export declare const contextContracts: readonly [{
|
|
|
140
143
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
141
144
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
142
145
|
invariants: readonly string[] | undefined;
|
|
146
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
143
147
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
144
148
|
domain: string;
|
|
145
149
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -185,6 +189,7 @@ export declare const contextContracts: readonly [{
|
|
|
185
189
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
186
190
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
187
191
|
invariants: readonly string[] | undefined;
|
|
192
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
188
193
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
189
194
|
domain: string;
|
|
190
195
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -230,6 +235,7 @@ export declare const contextContracts: readonly [{
|
|
|
230
235
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
231
236
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
232
237
|
invariants: readonly string[] | undefined;
|
|
238
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
233
239
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
234
240
|
domain: string;
|
|
235
241
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -275,6 +281,7 @@ export declare const contextContracts: readonly [{
|
|
|
275
281
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
276
282
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
277
283
|
invariants: readonly string[] | undefined;
|
|
284
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
278
285
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
279
286
|
domain: string;
|
|
280
287
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -320,6 +327,7 @@ export declare const contextContracts: readonly [{
|
|
|
320
327
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
321
328
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
322
329
|
invariants: readonly string[] | undefined;
|
|
330
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
323
331
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
324
332
|
domain: string;
|
|
325
333
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -365,6 +373,7 @@ export declare const contextContracts: readonly [{
|
|
|
365
373
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
366
374
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
367
375
|
invariants: readonly string[] | undefined;
|
|
376
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
368
377
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
369
378
|
domain: string;
|
|
370
379
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -6156,6 +6156,7 @@ function surfaceContract(args) {
|
|
|
6156
6156
|
idempotent: args.idempotent ?? args.kind !== "query",
|
|
6157
6157
|
effects: resolvedEffects,
|
|
6158
6158
|
invariants: args.invariants,
|
|
6159
|
+
boundary: args.boundary,
|
|
6159
6160
|
surfaceIntent: manifestEntry.surfaceIntent,
|
|
6160
6161
|
domain: args.domain,
|
|
6161
6162
|
surfaceClass: manifestEntry.surfaceClass,
|
|
@@ -6532,7 +6533,7 @@ var contextContracts = [
|
|
|
6532
6533
|
sdkMethod: "ingestObservation",
|
|
6533
6534
|
summary: "Ingest a non-destructive observation.",
|
|
6534
6535
|
convex: {
|
|
6535
|
-
module: "
|
|
6536
|
+
module: "evidence",
|
|
6536
6537
|
functionName: "create",
|
|
6537
6538
|
kind: "mutation",
|
|
6538
6539
|
inputProjection: observationInput,
|
|
@@ -6554,7 +6555,7 @@ var contextContracts = [
|
|
|
6554
6555
|
sdkMethod: "getObservationContext",
|
|
6555
6556
|
summary: "Read staged observation context.",
|
|
6556
6557
|
convex: {
|
|
6557
|
-
module: "
|
|
6558
|
+
module: "evidence",
|
|
6558
6559
|
functionName: "getByTopic",
|
|
6559
6560
|
kind: "query",
|
|
6560
6561
|
inputProjection: (input) => compactRecord({
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
export declare const contractsContracts: readonly [{
|
|
2
3
|
name: string;
|
|
3
4
|
kind: import("./types.js").FunctionKind;
|
|
4
5
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
5
6
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
6
7
|
invariants: readonly string[] | undefined;
|
|
8
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
7
9
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
8
10
|
domain: string;
|
|
9
11
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -35,10 +37,10 @@ export declare const contractsContracts: readonly [{
|
|
|
35
37
|
};
|
|
36
38
|
convex: import("./types.js").FunctionConvexTarget | undefined;
|
|
37
39
|
gateway: import("./types.js").FunctionGatewayTarget | undefined;
|
|
38
|
-
args:
|
|
39
|
-
returns:
|
|
40
|
-
input:
|
|
41
|
-
output:
|
|
40
|
+
args: z.ZodTypeAny;
|
|
41
|
+
returns: z.ZodTypeAny;
|
|
42
|
+
input: z.ZodTypeAny;
|
|
43
|
+
output: z.ZodTypeAny;
|
|
42
44
|
openapi: {
|
|
43
45
|
summary: string;
|
|
44
46
|
tags: string[];
|
|
@@ -49,6 +51,7 @@ export declare const contractsContracts: readonly [{
|
|
|
49
51
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
50
52
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
51
53
|
invariants: readonly string[] | undefined;
|
|
54
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
52
55
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
53
56
|
domain: string;
|
|
54
57
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -80,10 +83,10 @@ export declare const contractsContracts: readonly [{
|
|
|
80
83
|
};
|
|
81
84
|
convex: import("./types.js").FunctionConvexTarget | undefined;
|
|
82
85
|
gateway: import("./types.js").FunctionGatewayTarget | undefined;
|
|
83
|
-
args:
|
|
84
|
-
returns:
|
|
85
|
-
input:
|
|
86
|
-
output:
|
|
86
|
+
args: z.ZodTypeAny;
|
|
87
|
+
returns: z.ZodTypeAny;
|
|
88
|
+
input: z.ZodTypeAny;
|
|
89
|
+
output: z.ZodTypeAny;
|
|
87
90
|
openapi: {
|
|
88
91
|
summary: string;
|
|
89
92
|
tags: string[];
|
|
@@ -94,6 +97,7 @@ export declare const contractsContracts: readonly [{
|
|
|
94
97
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
95
98
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
96
99
|
invariants: readonly string[] | undefined;
|
|
100
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
97
101
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
98
102
|
domain: string;
|
|
99
103
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -125,10 +129,10 @@ export declare const contractsContracts: readonly [{
|
|
|
125
129
|
};
|
|
126
130
|
convex: import("./types.js").FunctionConvexTarget | undefined;
|
|
127
131
|
gateway: import("./types.js").FunctionGatewayTarget | undefined;
|
|
128
|
-
args:
|
|
129
|
-
returns:
|
|
130
|
-
input:
|
|
131
|
-
output:
|
|
132
|
+
args: z.ZodTypeAny;
|
|
133
|
+
returns: z.ZodTypeAny;
|
|
134
|
+
input: z.ZodTypeAny;
|
|
135
|
+
output: z.ZodTypeAny;
|
|
132
136
|
openapi: {
|
|
133
137
|
summary: string;
|
|
134
138
|
tags: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import 'convex/values';
|
|
3
3
|
|
|
4
|
-
// src/function-registry/
|
|
4
|
+
// src/function-registry/contracts.ts
|
|
5
5
|
z.enum([
|
|
6
6
|
"decision",
|
|
7
7
|
"belief",
|
|
@@ -6139,6 +6139,7 @@ function surfaceContract(args) {
|
|
|
6139
6139
|
idempotent: args.idempotent ?? args.kind !== "query",
|
|
6140
6140
|
effects: resolvedEffects,
|
|
6141
6141
|
invariants: args.invariants,
|
|
6142
|
+
boundary: args.boundary,
|
|
6142
6143
|
surfaceIntent: manifestEntry.surfaceIntent,
|
|
6143
6144
|
domain: args.domain,
|
|
6144
6145
|
surfaceClass: manifestEntry.surfaceClass,
|
|
@@ -6180,6 +6181,7 @@ function surfaceContract(args) {
|
|
|
6180
6181
|
}
|
|
6181
6182
|
|
|
6182
6183
|
// src/function-registry/contracts.ts
|
|
6184
|
+
var contractStatusReturns = z.array(z.record(z.unknown()));
|
|
6183
6185
|
var contractsContracts = [
|
|
6184
6186
|
surfaceContract({
|
|
6185
6187
|
name: "create_epistemic_contract",
|
|
@@ -6224,7 +6226,8 @@ var contractsContracts = [
|
|
|
6224
6226
|
module: "contracts",
|
|
6225
6227
|
functionName: "getContractStatus",
|
|
6226
6228
|
kind: "query"
|
|
6227
|
-
}
|
|
6229
|
+
},
|
|
6230
|
+
returns: contractStatusReturns
|
|
6228
6231
|
})
|
|
6229
6232
|
];
|
|
6230
6233
|
|
|
@@ -4,6 +4,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
4
4
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
5
5
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
6
6
|
invariants: readonly string[] | undefined;
|
|
7
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
7
8
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
8
9
|
domain: string;
|
|
9
10
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -49,6 +50,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
49
50
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
50
51
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
51
52
|
invariants: readonly string[] | undefined;
|
|
53
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
52
54
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
53
55
|
domain: string;
|
|
54
56
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -94,6 +96,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
94
96
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
95
97
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
96
98
|
invariants: readonly string[] | undefined;
|
|
99
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
97
100
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
98
101
|
domain: string;
|
|
99
102
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -139,6 +142,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
139
142
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
140
143
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
141
144
|
invariants: readonly string[] | undefined;
|
|
145
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
142
146
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
143
147
|
domain: string;
|
|
144
148
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -184,6 +188,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
184
188
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
185
189
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
186
190
|
invariants: readonly string[] | undefined;
|
|
191
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
187
192
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
188
193
|
domain: string;
|
|
189
194
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -229,6 +234,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
229
234
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
230
235
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
231
236
|
invariants: readonly string[] | undefined;
|
|
237
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
232
238
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
233
239
|
domain: string;
|
|
234
240
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -274,6 +280,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
274
280
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
275
281
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
276
282
|
invariants: readonly string[] | undefined;
|
|
283
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
277
284
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
278
285
|
domain: string;
|
|
279
286
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -319,6 +326,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
319
326
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
320
327
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
321
328
|
invariants: readonly string[] | undefined;
|
|
329
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
322
330
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
323
331
|
domain: string;
|
|
324
332
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -364,6 +372,7 @@ export declare const coordinationContracts: readonly [{
|
|
|
364
372
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
365
373
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
366
374
|
invariants: readonly string[] | undefined;
|
|
375
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
367
376
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
368
377
|
domain: string;
|
|
369
378
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -6144,6 +6144,7 @@ function surfaceContract(args) {
|
|
|
6144
6144
|
idempotent: args.idempotent ?? args.kind !== "query",
|
|
6145
6145
|
effects: resolvedEffects,
|
|
6146
6146
|
invariants: args.invariants,
|
|
6147
|
+
boundary: args.boundary,
|
|
6147
6148
|
surfaceIntent: manifestEntry.surfaceIntent,
|
|
6148
6149
|
domain: args.domain,
|
|
6149
6150
|
surfaceClass: manifestEntry.surfaceClass,
|
|
@@ -1,10 +1,144 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const createEdgeArgs: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
from: z.ZodObject<{
|
|
4
|
+
kind: z.ZodLiteral<"epistemic_node">;
|
|
5
|
+
nodeId: z.ZodEffects<z.ZodString, string, string>;
|
|
6
|
+
nodeType: z.ZodEnum<["function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens", ...("function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens")[]]>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
9
|
+
nodeId: string;
|
|
10
|
+
kind: "epistemic_node";
|
|
11
|
+
}, {
|
|
12
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
13
|
+
nodeId: string;
|
|
14
|
+
kind: "epistemic_node";
|
|
15
|
+
}>;
|
|
16
|
+
to: z.ZodObject<{
|
|
17
|
+
kind: z.ZodLiteral<"epistemic_node">;
|
|
18
|
+
nodeId: z.ZodEffects<z.ZodString, string, string>;
|
|
19
|
+
nodeType: z.ZodEnum<["function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens", ...("function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens")[]]>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
22
|
+
nodeId: string;
|
|
23
|
+
kind: "epistemic_node";
|
|
24
|
+
}, {
|
|
25
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
26
|
+
nodeId: string;
|
|
27
|
+
kind: "epistemic_node";
|
|
28
|
+
}>;
|
|
29
|
+
edgeType: z.ZodEnum<[string, ...string[]]>;
|
|
30
|
+
globalId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
31
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
context: z.ZodOptional<z.ZodString>;
|
|
34
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
35
|
+
reasoningMethod: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
|
|
36
|
+
edgeRole: z.ZodOptional<z.ZodEnum<["migration_of"]>>;
|
|
37
|
+
derivationType: z.ZodOptional<z.ZodString>;
|
|
38
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39
|
+
topicId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
40
|
+
trustedBypassAccessCheck: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
from: {
|
|
43
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
44
|
+
nodeId: string;
|
|
45
|
+
kind: "epistemic_node";
|
|
46
|
+
};
|
|
47
|
+
edgeType: string;
|
|
48
|
+
to: {
|
|
49
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
50
|
+
nodeId: string;
|
|
51
|
+
kind: "epistemic_node";
|
|
52
|
+
};
|
|
53
|
+
metadata?: Record<string, unknown> | undefined;
|
|
54
|
+
edgeRole?: "migration_of" | undefined;
|
|
55
|
+
globalId?: string | undefined;
|
|
56
|
+
topicId?: string | undefined;
|
|
57
|
+
confidence?: number | undefined;
|
|
58
|
+
context?: string | undefined;
|
|
59
|
+
weight?: number | undefined;
|
|
60
|
+
trustedBypassAccessCheck?: boolean | undefined;
|
|
61
|
+
reasoning?: string | undefined;
|
|
62
|
+
reasoningMethod?: string | undefined;
|
|
63
|
+
derivationType?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
from: {
|
|
66
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
67
|
+
nodeId: string;
|
|
68
|
+
kind: "epistemic_node";
|
|
69
|
+
};
|
|
70
|
+
edgeType: string;
|
|
71
|
+
to: {
|
|
72
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
73
|
+
nodeId: string;
|
|
74
|
+
kind: "epistemic_node";
|
|
75
|
+
};
|
|
76
|
+
metadata?: Record<string, unknown> | undefined;
|
|
77
|
+
edgeRole?: "migration_of" | undefined;
|
|
78
|
+
globalId?: string | undefined;
|
|
79
|
+
topicId?: string | undefined;
|
|
80
|
+
confidence?: number | undefined;
|
|
81
|
+
context?: string | undefined;
|
|
82
|
+
weight?: number | undefined;
|
|
83
|
+
trustedBypassAccessCheck?: boolean | undefined;
|
|
84
|
+
reasoning?: string | undefined;
|
|
85
|
+
reasoningMethod?: string | undefined;
|
|
86
|
+
derivationType?: string | undefined;
|
|
87
|
+
}>, {
|
|
88
|
+
from: {
|
|
89
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
90
|
+
nodeId: string;
|
|
91
|
+
kind: "epistemic_node";
|
|
92
|
+
};
|
|
93
|
+
edgeType: string;
|
|
94
|
+
to: {
|
|
95
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
96
|
+
nodeId: string;
|
|
97
|
+
kind: "epistemic_node";
|
|
98
|
+
};
|
|
99
|
+
metadata?: Record<string, unknown> | undefined;
|
|
100
|
+
edgeRole?: "migration_of" | undefined;
|
|
101
|
+
globalId?: string | undefined;
|
|
102
|
+
topicId?: string | undefined;
|
|
103
|
+
confidence?: number | undefined;
|
|
104
|
+
context?: string | undefined;
|
|
105
|
+
weight?: number | undefined;
|
|
106
|
+
trustedBypassAccessCheck?: boolean | undefined;
|
|
107
|
+
reasoning?: string | undefined;
|
|
108
|
+
reasoningMethod?: string | undefined;
|
|
109
|
+
derivationType?: string | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
from: {
|
|
112
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
113
|
+
nodeId: string;
|
|
114
|
+
kind: "epistemic_node";
|
|
115
|
+
};
|
|
116
|
+
edgeType: string;
|
|
117
|
+
to: {
|
|
118
|
+
nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain" | "edge" | "contradiction" | "ontology" | "lens";
|
|
119
|
+
nodeId: string;
|
|
120
|
+
kind: "epistemic_node";
|
|
121
|
+
};
|
|
122
|
+
metadata?: Record<string, unknown> | undefined;
|
|
123
|
+
edgeRole?: "migration_of" | undefined;
|
|
124
|
+
globalId?: string | undefined;
|
|
125
|
+
topicId?: string | undefined;
|
|
126
|
+
confidence?: number | undefined;
|
|
127
|
+
context?: string | undefined;
|
|
128
|
+
weight?: number | undefined;
|
|
129
|
+
trustedBypassAccessCheck?: boolean | undefined;
|
|
130
|
+
reasoning?: string | undefined;
|
|
131
|
+
reasoningMethod?: string | undefined;
|
|
132
|
+
derivationType?: string | undefined;
|
|
133
|
+
}>;
|
|
134
|
+
export type CreateEdgeArgs = z.infer<typeof createEdgeArgs>;
|
|
2
135
|
export declare const edgesContracts: readonly [{
|
|
3
136
|
name: string;
|
|
4
137
|
kind: import("./types.js").FunctionKind;
|
|
5
138
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
6
139
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
7
140
|
invariants: readonly string[] | undefined;
|
|
141
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
8
142
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
9
143
|
domain: string;
|
|
10
144
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -50,6 +184,7 @@ export declare const edgesContracts: readonly [{
|
|
|
50
184
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
51
185
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
52
186
|
invariants: readonly string[] | undefined;
|
|
187
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
53
188
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
54
189
|
domain: string;
|
|
55
190
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -95,6 +230,7 @@ export declare const edgesContracts: readonly [{
|
|
|
95
230
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
96
231
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
97
232
|
invariants: readonly string[] | undefined;
|
|
233
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
98
234
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
99
235
|
domain: string;
|
|
100
236
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -140,6 +276,7 @@ export declare const edgesContracts: readonly [{
|
|
|
140
276
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
141
277
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
142
278
|
invariants: readonly string[] | undefined;
|
|
279
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
143
280
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
144
281
|
domain: string;
|
|
145
282
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -185,6 +322,7 @@ export declare const edgesContracts: readonly [{
|
|
|
185
322
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
186
323
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
187
324
|
invariants: readonly string[] | undefined;
|
|
325
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
188
326
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
189
327
|
domain: string;
|
|
190
328
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -230,6 +368,7 @@ export declare const edgesContracts: readonly [{
|
|
|
230
368
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
231
369
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
232
370
|
invariants: readonly string[] | undefined;
|
|
371
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
233
372
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
234
373
|
domain: string;
|
|
235
374
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -275,6 +414,7 @@ export declare const edgesContracts: readonly [{
|
|
|
275
414
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
276
415
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
277
416
|
invariants: readonly string[] | undefined;
|
|
417
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
278
418
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
279
419
|
domain: string;
|
|
280
420
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -6244,6 +6244,7 @@ function surfaceContract(args) {
|
|
|
6244
6244
|
idempotent: args.idempotent ?? args.kind !== "query",
|
|
6245
6245
|
effects: resolvedEffects,
|
|
6246
6246
|
invariants: args.invariants,
|
|
6247
|
+
boundary: args.boundary,
|
|
6247
6248
|
surfaceIntent: manifestEntry.surfaceIntent,
|
|
6248
6249
|
domain: args.domain,
|
|
6249
6250
|
surfaceClass: manifestEntry.surfaceClass,
|
|
@@ -6393,7 +6394,7 @@ var edgesContracts = [
|
|
|
6393
6394
|
sdkMethod: "createEdge",
|
|
6394
6395
|
summary: "Create an epistemic edge.",
|
|
6395
6396
|
convex: {
|
|
6396
|
-
module: "
|
|
6397
|
+
module: "edgesMutations",
|
|
6397
6398
|
functionName: "create",
|
|
6398
6399
|
kind: "mutation",
|
|
6399
6400
|
inputProjection: (input, context) => {
|
|
@@ -6430,7 +6431,10 @@ var edgesContracts = [
|
|
|
6430
6431
|
);
|
|
6431
6432
|
}
|
|
6432
6433
|
},
|
|
6433
|
-
args: createEdgeArgs
|
|
6434
|
+
args: createEdgeArgs,
|
|
6435
|
+
boundary: {
|
|
6436
|
+
admission: ["source-span", "uuidv7-endpoints", "projection-parity"]
|
|
6437
|
+
}
|
|
6434
6438
|
}),
|
|
6435
6439
|
surfaceContract({
|
|
6436
6440
|
name: "update_edge",
|
|
@@ -6443,7 +6447,7 @@ var edgesContracts = [
|
|
|
6443
6447
|
sdkMethod: "updateEdge",
|
|
6444
6448
|
summary: "Update an epistemic edge.",
|
|
6445
6449
|
convex: {
|
|
6446
|
-
module: "
|
|
6450
|
+
module: "edgesMutations",
|
|
6447
6451
|
functionName: "update",
|
|
6448
6452
|
kind: "mutation",
|
|
6449
6453
|
inputProjection: (input, context) => compactRecord({
|
|
@@ -6469,7 +6473,7 @@ var edgesContracts = [
|
|
|
6469
6473
|
sdkMethod: "removeEdge",
|
|
6470
6474
|
summary: "Remove an epistemic edge.",
|
|
6471
6475
|
convex: {
|
|
6472
|
-
module: "
|
|
6476
|
+
module: "edgesMutations",
|
|
6473
6477
|
functionName: "remove",
|
|
6474
6478
|
kind: "mutation",
|
|
6475
6479
|
inputProjection: (input, context) => compactRecord({
|
|
@@ -6490,7 +6494,7 @@ var edgesContracts = [
|
|
|
6490
6494
|
sdkMethod: "removeEdgesBetween",
|
|
6491
6495
|
summary: "Remove epistemic edges between two nodes.",
|
|
6492
6496
|
convex: {
|
|
6493
|
-
module: "
|
|
6497
|
+
module: "edgesMutations",
|
|
6494
6498
|
functionName: "removeBetween",
|
|
6495
6499
|
kind: "mutation",
|
|
6496
6500
|
inputProjection: (input) => {
|
|
@@ -6519,7 +6523,7 @@ var edgesContracts = [
|
|
|
6519
6523
|
sdkMethod: "batchCreateEdges",
|
|
6520
6524
|
summary: "Batch create epistemic edges.",
|
|
6521
6525
|
convex: {
|
|
6522
|
-
module: "
|
|
6526
|
+
module: "edgesMutations",
|
|
6523
6527
|
functionName: "batchCreate",
|
|
6524
6528
|
kind: "mutation",
|
|
6525
6529
|
inputProjection: (input, context) => {
|
|
@@ -6568,7 +6572,7 @@ var edgesContracts = [
|
|
|
6568
6572
|
sdkMethod: "queryLineage",
|
|
6569
6573
|
summary: "Query graph lineage for a node.",
|
|
6570
6574
|
convex: {
|
|
6571
|
-
module: "
|
|
6575
|
+
module: "edgesQueries",
|
|
6572
6576
|
functionName: "getLineage",
|
|
6573
6577
|
kind: "query",
|
|
6574
6578
|
inputProjection: (input) => compactRecord({
|
|
@@ -6594,7 +6598,7 @@ var edgesContracts = [
|
|
|
6594
6598
|
sdkMethod: "queryAnchorHistory",
|
|
6595
6599
|
summary: "Resolve anchor provenance history for a node.",
|
|
6596
6600
|
convex: {
|
|
6597
|
-
module: "
|
|
6601
|
+
module: "edgesQueries",
|
|
6598
6602
|
functionName: "getLineage",
|
|
6599
6603
|
kind: "query",
|
|
6600
6604
|
inputProjection: (input) => compactRecord({
|
|
@@ -6612,4 +6616,4 @@ var edgesContracts = [
|
|
|
6612
6616
|
})
|
|
6613
6617
|
];
|
|
6614
6618
|
|
|
6615
|
-
export { edgesContracts };
|
|
6619
|
+
export { createEdgeArgs, edgesContracts };
|
|
@@ -5,6 +5,7 @@ export declare const embeddingsContracts: readonly [{
|
|
|
5
5
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
6
6
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
7
7
|
invariants: readonly string[] | undefined;
|
|
8
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
8
9
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
9
10
|
domain: string;
|
|
10
11
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -50,6 +51,7 @@ export declare const embeddingsContracts: readonly [{
|
|
|
50
51
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
51
52
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
52
53
|
invariants: readonly string[] | undefined;
|
|
54
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
53
55
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
54
56
|
domain: string;
|
|
55
57
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -95,6 +97,7 @@ export declare const embeddingsContracts: readonly [{
|
|
|
95
97
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
96
98
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
97
99
|
invariants: readonly string[] | undefined;
|
|
100
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
98
101
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
99
102
|
domain: string;
|
|
100
103
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -140,6 +143,7 @@ export declare const embeddingsContracts: readonly [{
|
|
|
140
143
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
141
144
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
142
145
|
invariants: readonly string[] | undefined;
|
|
146
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
143
147
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
144
148
|
domain: string;
|
|
145
149
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -6144,6 +6144,7 @@ function surfaceContract(args) {
|
|
|
6144
6144
|
idempotent: args.idempotent ?? args.kind !== "query",
|
|
6145
6145
|
effects: resolvedEffects,
|
|
6146
6146
|
invariants: args.invariants,
|
|
6147
|
+
boundary: args.boundary,
|
|
6147
6148
|
surfaceIntent: manifestEntry.surfaceIntent,
|
|
6148
6149
|
domain: args.domain,
|
|
6149
6150
|
surfaceClass: manifestEntry.surfaceClass,
|