@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 ontologiesContracts: 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 ontologiesContracts: 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 ontologiesContracts: 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 ontologiesContracts: 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 ontologiesContracts: 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 ontologiesContracts: 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 ontologiesContracts: 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 ontologiesContracts: 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 ontologiesContracts: 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;
|
|
@@ -410,6 +419,7 @@ export declare const ontologiesContracts: readonly [{
|
|
|
410
419
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
411
420
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
412
421
|
invariants: readonly string[] | undefined;
|
|
422
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
413
423
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
414
424
|
domain: string;
|
|
415
425
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -455,6 +465,7 @@ export declare const ontologiesContracts: readonly [{
|
|
|
455
465
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
456
466
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
457
467
|
invariants: readonly string[] | undefined;
|
|
468
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
458
469
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
459
470
|
domain: string;
|
|
460
471
|
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,
|
|
@@ -6190,7 +6191,8 @@ var updateOntologyArgs = z.object({
|
|
|
6190
6191
|
ontologyId: z.string().optional().describe("Ontology ID alias."),
|
|
6191
6192
|
name: z.string().optional().describe("Ontology display name."),
|
|
6192
6193
|
description: z.string().optional().describe("Ontology description."),
|
|
6193
|
-
status: z.string().optional().describe("Ontology lifecycle status.")
|
|
6194
|
+
status: z.string().optional().describe("Ontology lifecycle status."),
|
|
6195
|
+
parentOntologyId: z.string().optional().describe("Optional parent ontology definition ID.")
|
|
6194
6196
|
});
|
|
6195
6197
|
var ontologyVersionLifecycleArgs = z.object({
|
|
6196
6198
|
id: z.string().describe("Ontology version ID."),
|
|
@@ -6219,7 +6221,7 @@ var ontologiesContracts = [
|
|
|
6219
6221
|
sdkMethod: "createOntology",
|
|
6220
6222
|
summary: "Create an ontology definition.",
|
|
6221
6223
|
convex: {
|
|
6222
|
-
module: "
|
|
6224
|
+
module: "ontology",
|
|
6223
6225
|
functionName: "createOntologyDefinition",
|
|
6224
6226
|
kind: "mutation"
|
|
6225
6227
|
}
|
|
@@ -6235,7 +6237,7 @@ var ontologiesContracts = [
|
|
|
6235
6237
|
sdkMethod: "getOntology",
|
|
6236
6238
|
summary: "Get an ontology definition.",
|
|
6237
6239
|
convex: {
|
|
6238
|
-
module: "
|
|
6240
|
+
module: "ontology",
|
|
6239
6241
|
functionName: "getOntologyDefinition",
|
|
6240
6242
|
kind: "query",
|
|
6241
6243
|
inputProjection: ontologyIdInput
|
|
@@ -6252,7 +6254,7 @@ var ontologiesContracts = [
|
|
|
6252
6254
|
sdkMethod: "listOntologies",
|
|
6253
6255
|
summary: "List ontology definitions.",
|
|
6254
6256
|
convex: {
|
|
6255
|
-
module: "
|
|
6257
|
+
module: "ontology",
|
|
6256
6258
|
functionName: "listOntologyDefinitions",
|
|
6257
6259
|
kind: "query"
|
|
6258
6260
|
}
|
|
@@ -6268,7 +6270,7 @@ var ontologiesContracts = [
|
|
|
6268
6270
|
sdkMethod: "updateOntology",
|
|
6269
6271
|
summary: "Update an ontology definition.",
|
|
6270
6272
|
convex: {
|
|
6271
|
-
module: "
|
|
6273
|
+
module: "ontology",
|
|
6272
6274
|
functionName: "updateOntologyDefinition",
|
|
6273
6275
|
kind: "mutation",
|
|
6274
6276
|
inputProjection: (input) => compactRecord({
|
|
@@ -6276,6 +6278,7 @@ var ontologiesContracts = [
|
|
|
6276
6278
|
name: input.name,
|
|
6277
6279
|
description: input.description,
|
|
6278
6280
|
status: input.status,
|
|
6281
|
+
parentOntologyId: input.parentOntologyId,
|
|
6279
6282
|
actorId: input.actorId
|
|
6280
6283
|
})
|
|
6281
6284
|
},
|
|
@@ -6292,7 +6295,7 @@ var ontologiesContracts = [
|
|
|
6292
6295
|
sdkMethod: "archiveOntology",
|
|
6293
6296
|
summary: "Archive an ontology definition.",
|
|
6294
6297
|
convex: {
|
|
6295
|
-
module: "
|
|
6298
|
+
module: "ontology",
|
|
6296
6299
|
functionName: "archiveOntologyDefinition",
|
|
6297
6300
|
kind: "mutation",
|
|
6298
6301
|
inputProjection: ontologyIdInput
|
|
@@ -6308,7 +6311,7 @@ var ontologiesContracts = [
|
|
|
6308
6311
|
sdkMethod: "createOntologyVersion",
|
|
6309
6312
|
summary: "Create an ontology version.",
|
|
6310
6313
|
convex: {
|
|
6311
|
-
module: "
|
|
6314
|
+
module: "ontology",
|
|
6312
6315
|
functionName: "createOntologyVersion",
|
|
6313
6316
|
kind: "mutation"
|
|
6314
6317
|
}
|
|
@@ -6342,7 +6345,7 @@ var ontologiesContracts = [
|
|
|
6342
6345
|
sdkMethod: "matchEntityType",
|
|
6343
6346
|
summary: "Resolve an ontology before matching entity types.",
|
|
6344
6347
|
convex: {
|
|
6345
|
-
module: "
|
|
6348
|
+
module: "ontology",
|
|
6346
6349
|
functionName: "resolveEffectiveOntology",
|
|
6347
6350
|
kind: "query",
|
|
6348
6351
|
inputProjection: effectiveOntologyInput
|
|
@@ -6358,12 +6361,15 @@ var ontologiesContracts = [
|
|
|
6358
6361
|
sdkMethod: "publishOntologyVersion",
|
|
6359
6362
|
summary: "Publish an ontology version.",
|
|
6360
6363
|
convex: {
|
|
6361
|
-
module: "
|
|
6364
|
+
module: "ontology",
|
|
6362
6365
|
functionName: "publishOntologyVersion",
|
|
6363
6366
|
kind: "mutation",
|
|
6364
6367
|
inputProjection: ontologyVersionIdInput
|
|
6365
6368
|
},
|
|
6366
|
-
args: ontologyVersionLifecycleArgs
|
|
6369
|
+
args: ontologyVersionLifecycleArgs,
|
|
6370
|
+
boundary: {
|
|
6371
|
+
admission: ["ontology-release"]
|
|
6372
|
+
}
|
|
6367
6373
|
}),
|
|
6368
6374
|
surfaceContract({
|
|
6369
6375
|
name: "deprecate_ontology_version",
|
|
@@ -6375,7 +6381,7 @@ var ontologiesContracts = [
|
|
|
6375
6381
|
sdkMethod: "deprecateOntologyVersion",
|
|
6376
6382
|
summary: "Deprecate an ontology version.",
|
|
6377
6383
|
convex: {
|
|
6378
|
-
module: "
|
|
6384
|
+
module: "ontology",
|
|
6379
6385
|
functionName: "deprecateOntologyVersion",
|
|
6380
6386
|
kind: "mutation",
|
|
6381
6387
|
inputProjection: ontologyVersionIdInput
|
|
@@ -6392,7 +6398,7 @@ var ontologiesContracts = [
|
|
|
6392
6398
|
sdkMethod: "resolveEffectiveOntology",
|
|
6393
6399
|
summary: "Resolve the effective ontology for a topic.",
|
|
6394
6400
|
convex: {
|
|
6395
|
-
module: "
|
|
6401
|
+
module: "ontology",
|
|
6396
6402
|
functionName: "resolveEffectiveOntology",
|
|
6397
6403
|
kind: "query",
|
|
6398
6404
|
inputProjection: effectiveOntologyInput
|
|
@@ -5,6 +5,7 @@ export declare const pipelineContracts: 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 pipelineContracts: 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 pipelineContracts: 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;
|
|
@@ -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,
|
|
@@ -5,6 +5,7 @@ export declare const policyContracts: 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;
|
|
@@ -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,
|
|
@@ -1,10 +1,103 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const createQuestionArgs: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4
|
+
questionText: z.ZodOptional<z.ZodString>;
|
|
5
|
+
question: z.ZodOptional<z.ZodString>;
|
|
6
|
+
topicId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7
|
+
priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "medium", "low"]>>;
|
|
8
|
+
linkedBeliefId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
9
|
+
linkedBeliefNodeId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
category: z.ZodOptional<z.ZodString>;
|
|
12
|
+
source: z.ZodOptional<z.ZodString>;
|
|
13
|
+
testType: z.ZodOptional<z.ZodEnum<["validates", "invalidates", "clarifies"]>>;
|
|
14
|
+
importance: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
epistemicUnlock: z.ZodOptional<z.ZodString>;
|
|
16
|
+
sourceQuestionIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
17
|
+
linkedWorktreeId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
18
|
+
questionType: z.ZodOptional<z.ZodEnum<["validation", "falsification", "assumption_probe", "prediction_test", "counterfactual", "discovery", "clarification", "comparison", "causal", "mechanism", "general"]>>;
|
|
19
|
+
questionPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
source?: string | undefined;
|
|
22
|
+
priority?: "high" | "low" | "medium" | "urgent" | undefined;
|
|
23
|
+
metadata?: Record<string, unknown> | undefined;
|
|
24
|
+
text?: string | undefined;
|
|
25
|
+
question?: string | undefined;
|
|
26
|
+
topicId?: string | undefined;
|
|
27
|
+
linkedBeliefNodeId?: string | undefined;
|
|
28
|
+
linkedWorktreeId?: string | undefined;
|
|
29
|
+
linkedBeliefId?: string | undefined;
|
|
30
|
+
questionText?: string | undefined;
|
|
31
|
+
category?: string | undefined;
|
|
32
|
+
testType?: "validates" | "invalidates" | "clarifies" | undefined;
|
|
33
|
+
importance?: number | undefined;
|
|
34
|
+
epistemicUnlock?: string | undefined;
|
|
35
|
+
sourceQuestionIds?: string[] | undefined;
|
|
36
|
+
questionType?: "validation" | "comparison" | "causal" | "general" | "discovery" | "clarification" | "falsification" | "assumption_probe" | "prediction_test" | "counterfactual" | "mechanism" | undefined;
|
|
37
|
+
questionPriority?: "high" | "low" | "medium" | "critical" | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
source?: string | undefined;
|
|
40
|
+
priority?: "high" | "low" | "medium" | "urgent" | undefined;
|
|
41
|
+
metadata?: Record<string, unknown> | undefined;
|
|
42
|
+
text?: string | undefined;
|
|
43
|
+
question?: string | undefined;
|
|
44
|
+
topicId?: string | undefined;
|
|
45
|
+
linkedBeliefNodeId?: string | undefined;
|
|
46
|
+
linkedWorktreeId?: string | undefined;
|
|
47
|
+
linkedBeliefId?: string | undefined;
|
|
48
|
+
questionText?: string | undefined;
|
|
49
|
+
category?: string | undefined;
|
|
50
|
+
testType?: "validates" | "invalidates" | "clarifies" | undefined;
|
|
51
|
+
importance?: number | undefined;
|
|
52
|
+
epistemicUnlock?: string | undefined;
|
|
53
|
+
sourceQuestionIds?: string[] | undefined;
|
|
54
|
+
questionType?: "validation" | "comparison" | "causal" | "general" | "discovery" | "clarification" | "falsification" | "assumption_probe" | "prediction_test" | "counterfactual" | "mechanism" | undefined;
|
|
55
|
+
questionPriority?: "high" | "low" | "medium" | "critical" | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
source?: string | undefined;
|
|
58
|
+
priority?: "high" | "low" | "medium" | "urgent" | undefined;
|
|
59
|
+
metadata?: Record<string, unknown> | undefined;
|
|
60
|
+
text?: string | undefined;
|
|
61
|
+
question?: string | undefined;
|
|
62
|
+
topicId?: string | undefined;
|
|
63
|
+
linkedBeliefNodeId?: string | undefined;
|
|
64
|
+
linkedWorktreeId?: string | undefined;
|
|
65
|
+
linkedBeliefId?: string | undefined;
|
|
66
|
+
questionText?: string | undefined;
|
|
67
|
+
category?: string | undefined;
|
|
68
|
+
testType?: "validates" | "invalidates" | "clarifies" | undefined;
|
|
69
|
+
importance?: number | undefined;
|
|
70
|
+
epistemicUnlock?: string | undefined;
|
|
71
|
+
sourceQuestionIds?: string[] | undefined;
|
|
72
|
+
questionType?: "validation" | "comparison" | "causal" | "general" | "discovery" | "clarification" | "falsification" | "assumption_probe" | "prediction_test" | "counterfactual" | "mechanism" | undefined;
|
|
73
|
+
questionPriority?: "high" | "low" | "medium" | "critical" | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
source?: string | undefined;
|
|
76
|
+
priority?: "high" | "low" | "medium" | "urgent" | undefined;
|
|
77
|
+
metadata?: Record<string, unknown> | undefined;
|
|
78
|
+
text?: string | undefined;
|
|
79
|
+
question?: string | undefined;
|
|
80
|
+
topicId?: string | undefined;
|
|
81
|
+
linkedBeliefNodeId?: string | undefined;
|
|
82
|
+
linkedWorktreeId?: string | undefined;
|
|
83
|
+
linkedBeliefId?: string | undefined;
|
|
84
|
+
questionText?: string | undefined;
|
|
85
|
+
category?: string | undefined;
|
|
86
|
+
testType?: "validates" | "invalidates" | "clarifies" | undefined;
|
|
87
|
+
importance?: number | undefined;
|
|
88
|
+
epistemicUnlock?: string | undefined;
|
|
89
|
+
sourceQuestionIds?: string[] | undefined;
|
|
90
|
+
questionType?: "validation" | "comparison" | "causal" | "general" | "discovery" | "clarification" | "falsification" | "assumption_probe" | "prediction_test" | "counterfactual" | "mechanism" | undefined;
|
|
91
|
+
questionPriority?: "high" | "low" | "medium" | "critical" | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
export type CreateQuestionArgs = z.infer<typeof createQuestionArgs>;
|
|
2
94
|
export declare const questionsContracts: readonly [{
|
|
3
95
|
name: string;
|
|
4
96
|
kind: import("./types.js").FunctionKind;
|
|
5
97
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
6
98
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
7
99
|
invariants: readonly string[] | undefined;
|
|
100
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
8
101
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
9
102
|
domain: string;
|
|
10
103
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -50,6 +143,7 @@ export declare const questionsContracts: readonly [{
|
|
|
50
143
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
51
144
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
52
145
|
invariants: readonly string[] | undefined;
|
|
146
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
53
147
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
54
148
|
domain: string;
|
|
55
149
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -95,6 +189,7 @@ export declare const questionsContracts: readonly [{
|
|
|
95
189
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
96
190
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
97
191
|
invariants: readonly string[] | undefined;
|
|
192
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
98
193
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
99
194
|
domain: string;
|
|
100
195
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -140,6 +235,7 @@ export declare const questionsContracts: readonly [{
|
|
|
140
235
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
141
236
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
142
237
|
invariants: readonly string[] | undefined;
|
|
238
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
143
239
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
144
240
|
domain: string;
|
|
145
241
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -185,6 +281,7 @@ export declare const questionsContracts: readonly [{
|
|
|
185
281
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
186
282
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
187
283
|
invariants: readonly string[] | undefined;
|
|
284
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
188
285
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
189
286
|
domain: string;
|
|
190
287
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -230,6 +327,7 @@ export declare const questionsContracts: readonly [{
|
|
|
230
327
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
231
328
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
232
329
|
invariants: readonly string[] | undefined;
|
|
330
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
233
331
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
234
332
|
domain: string;
|
|
235
333
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -275,6 +373,7 @@ export declare const questionsContracts: readonly [{
|
|
|
275
373
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
276
374
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
277
375
|
invariants: readonly string[] | undefined;
|
|
376
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
278
377
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
279
378
|
domain: string;
|
|
280
379
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -320,6 +419,7 @@ export declare const questionsContracts: readonly [{
|
|
|
320
419
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
321
420
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
322
421
|
invariants: readonly string[] | undefined;
|
|
422
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
323
423
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
324
424
|
domain: string;
|
|
325
425
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -365,6 +465,7 @@ export declare const questionsContracts: readonly [{
|
|
|
365
465
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
366
466
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
367
467
|
invariants: readonly string[] | undefined;
|
|
468
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
368
469
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
369
470
|
domain: string;
|
|
370
471
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -410,6 +511,7 @@ export declare const questionsContracts: readonly [{
|
|
|
410
511
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
411
512
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
412
513
|
invariants: readonly string[] | undefined;
|
|
514
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
413
515
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
414
516
|
domain: string;
|
|
415
517
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -455,6 +557,7 @@ export declare const questionsContracts: readonly [{
|
|
|
455
557
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
456
558
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
457
559
|
invariants: readonly string[] | undefined;
|
|
560
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
458
561
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
459
562
|
domain: string;
|
|
460
563
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -500,6 +603,7 @@ export declare const questionsContracts: readonly [{
|
|
|
500
603
|
idempotent: import("./types.js").FunctionIdempotency;
|
|
501
604
|
effects: readonly import("../dsl.js").FunctionEffect[];
|
|
502
605
|
invariants: readonly string[] | undefined;
|
|
606
|
+
boundary: import("./types.js").BoundarySpec | undefined;
|
|
503
607
|
surfaceIntent: import("./types.js").FunctionSurfaceIntent;
|
|
504
608
|
domain: string;
|
|
505
609
|
surfaceClass: import("./types.js").SurfaceClass;
|
|
@@ -6153,6 +6153,7 @@ function surfaceContract(args) {
|
|
|
6153
6153
|
idempotent: args.idempotent ?? args.kind !== "query",
|
|
6154
6154
|
effects: resolvedEffects,
|
|
6155
6155
|
invariants: args.invariants,
|
|
6156
|
+
boundary: args.boundary,
|
|
6156
6157
|
surfaceIntent: manifestEntry.surfaceIntent,
|
|
6157
6158
|
domain: args.domain,
|
|
6158
6159
|
surfaceClass: manifestEntry.surfaceClass,
|
|
@@ -6306,7 +6307,7 @@ var falsificationQuestionsArgs = z.object({
|
|
|
6306
6307
|
});
|
|
6307
6308
|
var questionNodeInput = (input) => compactRecord({
|
|
6308
6309
|
nodeId: input.nodeId ?? input.id ?? input.questionId,
|
|
6309
|
-
questionId: input.questionId
|
|
6310
|
+
questionId: input.questionId ?? input.id ?? input.nodeId
|
|
6310
6311
|
});
|
|
6311
6312
|
var questionTopicInput = (input) => compactRecord({
|
|
6312
6313
|
topicId: input.topicId,
|
|
@@ -6351,12 +6352,15 @@ var questionsContracts = [
|
|
|
6351
6352
|
sdkMethod: "createQuestion",
|
|
6352
6353
|
summary: "Create a question.",
|
|
6353
6354
|
convex: {
|
|
6354
|
-
module: "
|
|
6355
|
+
module: "questionsCreateMutations",
|
|
6355
6356
|
functionName: "create",
|
|
6356
6357
|
kind: "mutation",
|
|
6357
6358
|
inputProjection: createQuestionInput
|
|
6358
6359
|
},
|
|
6359
|
-
args: createQuestionArgs
|
|
6360
|
+
args: createQuestionArgs,
|
|
6361
|
+
boundary: {
|
|
6362
|
+
admission: ["source-span", "uuidv7-endpoints"]
|
|
6363
|
+
}
|
|
6360
6364
|
}),
|
|
6361
6365
|
surfaceContract({
|
|
6362
6366
|
name: "get_question",
|
|
@@ -6369,7 +6373,7 @@ var questionsContracts = [
|
|
|
6369
6373
|
sdkMethod: "getQuestion",
|
|
6370
6374
|
summary: "Get a question.",
|
|
6371
6375
|
convex: {
|
|
6372
|
-
module: "
|
|
6376
|
+
module: "questionsQueries",
|
|
6373
6377
|
functionName: "getById",
|
|
6374
6378
|
kind: "query",
|
|
6375
6379
|
inputProjection: questionNodeInput
|
|
@@ -6400,7 +6404,7 @@ var questionsContracts = [
|
|
|
6400
6404
|
sdkMethod: "refineQuestion",
|
|
6401
6405
|
summary: "Refine a question.",
|
|
6402
6406
|
convex: {
|
|
6403
|
-
module: "
|
|
6407
|
+
module: "questionsWriteMutations",
|
|
6404
6408
|
functionName: "updateQuestion",
|
|
6405
6409
|
kind: "mutation",
|
|
6406
6410
|
inputProjection: (input) => compactRecord({
|
|
@@ -6424,13 +6428,13 @@ var questionsContracts = [
|
|
|
6424
6428
|
sdkMethod: "updateQuestionStatus",
|
|
6425
6429
|
summary: "Update a question status.",
|
|
6426
6430
|
convex: {
|
|
6427
|
-
module: "
|
|
6431
|
+
module: "questionsLifecycleMutations",
|
|
6428
6432
|
functionName: "updateStatus",
|
|
6429
6433
|
kind: "mutation",
|
|
6430
6434
|
inputProjection: (input, context) => withUserId(
|
|
6431
6435
|
compactRecord({
|
|
6432
6436
|
questionId: input.questionId ?? input.id,
|
|
6433
|
-
nodeId: input.nodeId,
|
|
6437
|
+
nodeId: input.nodeId ?? input.id ?? input.questionId,
|
|
6434
6438
|
status: input.status,
|
|
6435
6439
|
answer: input.answer,
|
|
6436
6440
|
answerStatus: input.answerStatus
|
|
@@ -6450,7 +6454,7 @@ var questionsContracts = [
|
|
|
6450
6454
|
sdkMethod: "archiveQuestion",
|
|
6451
6455
|
summary: "Archive a question.",
|
|
6452
6456
|
convex: {
|
|
6453
|
-
module: "
|
|
6457
|
+
module: "questionsWriteMutations",
|
|
6454
6458
|
functionName: "deleteQuestion",
|
|
6455
6459
|
kind: "mutation",
|
|
6456
6460
|
inputProjection: (input, context) => withUserId(
|
|
@@ -6546,7 +6550,7 @@ var questionsContracts = [
|
|
|
6546
6550
|
sdkMethod: "findMissingQuestions",
|
|
6547
6551
|
summary: "List open questions as missing-question candidates.",
|
|
6548
6552
|
convex: {
|
|
6549
|
-
module: "
|
|
6553
|
+
module: "questionsQueries",
|
|
6550
6554
|
functionName: "getByTopic",
|
|
6551
6555
|
kind: "query",
|
|
6552
6556
|
inputProjection: questionTopicInput
|
|
@@ -6563,14 +6567,15 @@ var questionsContracts = [
|
|
|
6563
6567
|
sdkMethod: "getHighPriorityQuestions",
|
|
6564
6568
|
summary: "List high-priority questions.",
|
|
6565
6569
|
convex: {
|
|
6566
|
-
module: "
|
|
6570
|
+
module: "questionsQueries",
|
|
6567
6571
|
functionName: "getByTopic",
|
|
6568
6572
|
kind: "query",
|
|
6569
6573
|
inputProjection: (input) => compactRecord({
|
|
6570
6574
|
...questionTopicInput(input),
|
|
6571
6575
|
status: input.includeAnswered === true ? void 0 : "open"
|
|
6572
6576
|
})
|
|
6573
|
-
}
|
|
6577
|
+
},
|
|
6578
|
+
args: missingQuestionsArgs.extend({ includeAnswered: z.boolean().optional() }).omit({ status: true })
|
|
6574
6579
|
}),
|
|
6575
6580
|
surfaceContract({
|
|
6576
6581
|
name: "get_falsification_questions",
|
|
@@ -6591,4 +6596,4 @@ var questionsContracts = [
|
|
|
6591
6596
|
})
|
|
6592
6597
|
];
|
|
6593
6598
|
|
|
6594
|
-
export { questionsContracts };
|
|
6599
|
+
export { createQuestionArgs, questionsContracts };
|