@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.
Files changed (68) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/function-registry/beliefs.d.ts +77 -0
  3. package/dist/function-registry/beliefs.js +17 -12
  4. package/dist/function-registry/coding.d.ts +183 -0
  5. package/dist/function-registry/coding.js +66 -39
  6. package/dist/function-registry/context.d.ts +9 -0
  7. package/dist/function-registry/context.js +3 -2
  8. package/dist/function-registry/contracts.d.ts +16 -12
  9. package/dist/function-registry/contracts.js +5 -2
  10. package/dist/function-registry/coordination.d.ts +9 -0
  11. package/dist/function-registry/coordination.js +1 -0
  12. package/dist/function-registry/edges.d.ts +140 -0
  13. package/dist/function-registry/edges.js +13 -9
  14. package/dist/function-registry/embeddings.d.ts +4 -0
  15. package/dist/function-registry/embeddings.js +1 -0
  16. package/dist/function-registry/evidence.d.ts +251 -0
  17. package/dist/function-registry/evidence.js +99 -10
  18. package/dist/function-registry/graph.d.ts +15 -0
  19. package/dist/function-registry/graph.js +5 -4
  20. package/dist/function-registry/helpers.d.ts +2 -0
  21. package/dist/function-registry/helpers.js +1 -0
  22. package/dist/function-registry/hybrid.d.ts +6 -0
  23. package/dist/function-registry/hybrid.js +1 -0
  24. package/dist/function-registry/identity.d.ts +4 -0
  25. package/dist/function-registry/identity.js +1 -0
  26. package/dist/function-registry/index.js +1 -0
  27. package/dist/function-registry/judgments.d.ts +2 -0
  28. package/dist/function-registry/judgments.js +3 -2
  29. package/dist/function-registry/legacy.d.ts +1 -0
  30. package/dist/function-registry/legacy.js +1 -0
  31. package/dist/function-registry/lenses.d.ts +4 -0
  32. package/dist/function-registry/lenses.js +1 -0
  33. package/dist/function-registry/nodes.d.ts +203 -0
  34. package/dist/function-registry/nodes.js +17 -11
  35. package/dist/function-registry/ontologies.d.ts +11 -0
  36. package/dist/function-registry/ontologies.js +18 -12
  37. package/dist/function-registry/pipeline.d.ts +3 -0
  38. package/dist/function-registry/pipeline.js +1 -0
  39. package/dist/function-registry/policy.d.ts +1 -0
  40. package/dist/function-registry/policy.js +1 -0
  41. package/dist/function-registry/questions.d.ts +104 -0
  42. package/dist/function-registry/questions.js +17 -12
  43. package/dist/function-registry/tasks.d.ts +86 -0
  44. package/dist/function-registry/tasks.js +2 -1
  45. package/dist/function-registry/topics.d.ts +7 -0
  46. package/dist/function-registry/topics.js +7 -2
  47. package/dist/function-registry/types.d.ts +46 -0
  48. package/dist/function-registry/worktrees.d.ts +440 -0
  49. package/dist/function-registry/worktrees.js +9 -3
  50. package/dist/generated/convexSchemas.d.ts +10 -10
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.js +8 -2
  53. package/dist/infisical-runtime.base.js +5 -0
  54. package/dist/infisical-runtime.contract.js +5 -0
  55. package/dist/infisical-runtime.tenant-secrets.js +5 -0
  56. package/dist/manifests/infisical-runtime-manifest.js +5 -0
  57. package/dist/manifests/tenant-client-manifest.d.ts +5 -1
  58. package/dist/manifests/tenant-client-manifest.js +5 -0
  59. package/dist/operator-receipt.contract.d.ts +32 -0
  60. package/dist/operator-receipt.contract.js +1 -0
  61. package/dist/projections/create-evidence.projection.d.ts +12 -12
  62. package/dist/projections/index.d.ts +2 -2
  63. package/dist/proof-attestation.json +1 -1
  64. package/dist/tenant-client.contract.d.ts +5 -1
  65. package/dist/tenant-client.contract.js +5 -0
  66. package/dist/worktree-belief-adoption.contract.d.ts +22 -21
  67. package/dist/worktree-belief-adoption.contract.js +3 -2
  68. package/package.json +1 -1
@@ -6204,6 +6204,7 @@ function surfaceContract(args) {
6204
6204
  idempotent: args.idempotent ?? args.kind !== "query",
6205
6205
  effects: resolvedEffects,
6206
6206
  invariants: args.invariants,
6207
+ boundary: args.boundary,
6207
6208
  surfaceIntent: manifestEntry.surfaceIntent,
6208
6209
  domain: args.domain,
6209
6210
  surfaceClass: manifestEntry.surfaceClass,
@@ -5,6 +5,7 @@ export declare const hybridContracts: 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 hybridContracts: 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 hybridContracts: 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 hybridContracts: 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 hybridContracts: 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 hybridContracts: 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;
@@ -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 identityContracts: 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 identityContracts: 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 identityContracts: 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 identityContracts: 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;
@@ -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,
@@ -6290,6 +6290,7 @@ function surfaceContract(args) {
6290
6290
  idempotent: args.idempotent ?? args.kind !== "query",
6291
6291
  effects: resolvedEffects,
6292
6292
  invariants: args.invariants,
6293
+ boundary: args.boundary,
6293
6294
  surfaceIntent: manifestEntry.surfaceIntent,
6294
6295
  domain: args.domain,
6295
6296
  surfaceClass: manifestEntry.surfaceClass,
@@ -5,6 +5,7 @@ export declare const judgmentsContracts: 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 judgmentsContracts: 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;
@@ -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,
@@ -6215,7 +6216,7 @@ var judgmentsContracts = [
6215
6216
  sdkMethod: "recordJudgment",
6216
6217
  summary: "Record a judgment as evidence.",
6217
6218
  convex: {
6218
- module: "evidenceCreate",
6219
+ module: "evidence",
6219
6220
  functionName: "create",
6220
6221
  kind: "mutation",
6221
6222
  inputProjection: (input, context) => withUserId(
@@ -6247,7 +6248,7 @@ var judgmentsContracts = [
6247
6248
  sdkMethod: "getAuditTrail",
6248
6249
  summary: "Read node lineage as an audit trail.",
6249
6250
  convex: {
6250
- module: "edges",
6251
+ module: "edgesQueries",
6251
6252
  functionName: "getLineage",
6252
6253
  kind: "query",
6253
6254
  inputProjection: (input) => compactRecord({
@@ -4,6 +4,7 @@ export declare const legacyContracts: 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;
@@ -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,
@@ -5,6 +5,7 @@ export declare const lensesContracts: 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 lensesContracts: 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 lensesContracts: 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 lensesContracts: 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;
@@ -6147,6 +6147,7 @@ function surfaceContract(args) {
6147
6147
  idempotent: args.idempotent ?? args.kind !== "query",
6148
6148
  effects: resolvedEffects,
6149
6149
  invariants: args.invariants,
6150
+ boundary: args.boundary,
6150
6151
  surfaceIntent: manifestEntry.surfaceIntent,
6151
6152
  domain: args.domain,
6152
6153
  surfaceClass: manifestEntry.surfaceClass,
@@ -1,10 +1,206 @@
1
1
  import { z } from "zod";
2
+ export declare const createEpistemicNodeItemArgs: z.ZodObject<{
3
+ globalId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4
+ nodeType: z.ZodEnum<["decision", "belief", "question", "theme", "deal", "topic", "claim", "evidence", "synthesis", "answer", "atomic_fact", "excerpt", "source", "company", "person", "investor", "function", "value_chain"]>;
5
+ subtype: z.ZodOptional<z.ZodString>;
6
+ canonicalText: z.ZodOptional<z.ZodString>;
7
+ text: z.ZodOptional<z.ZodString>;
8
+ contentHash: z.ZodOptional<z.ZodString>;
9
+ content: z.ZodOptional<z.ZodString>;
10
+ contentType: z.ZodOptional<z.ZodString>;
11
+ title: z.ZodOptional<z.ZodString>;
12
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
+ domain: z.ZodOptional<z.ZodString>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ externalIds: z.ZodOptional<z.ZodObject<{
16
+ crunchbase: z.ZodOptional<z.ZodString>;
17
+ linkedin: z.ZodOptional<z.ZodString>;
18
+ pitchbook: z.ZodOptional<z.ZodString>;
19
+ twitter: z.ZodOptional<z.ZodString>;
20
+ website: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ crunchbase?: string | undefined;
23
+ linkedin?: string | undefined;
24
+ pitchbook?: string | undefined;
25
+ twitter?: string | undefined;
26
+ website?: string | undefined;
27
+ }, {
28
+ crunchbase?: string | undefined;
29
+ linkedin?: string | undefined;
30
+ pitchbook?: string | undefined;
31
+ twitter?: string | undefined;
32
+ website?: string | undefined;
33
+ }>>;
34
+ sourceType: z.ZodOptional<z.ZodEnum<["human", "ai_extracted", "ai_generated", "imported", "system", "verified", "proprietary"]>>;
35
+ aiProvider: z.ZodOptional<z.ZodString>;
36
+ extractedFromNodeId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
37
+ confidence: z.ZodOptional<z.ZodNumber>;
38
+ verificationStatus: z.ZodOptional<z.ZodEnum<["unverified", "human_verified", "ai_verified", "contradicted", "outdated"]>>;
39
+ topicId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
40
+ createdBy: z.ZodOptional<z.ZodString>;
41
+ trustedBypassAccessCheck: z.ZodOptional<z.ZodBoolean>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain";
44
+ content?: string | undefined;
45
+ title?: string | undefined;
46
+ metadata?: Record<string, unknown> | undefined;
47
+ text?: string | undefined;
48
+ sourceType?: "system" | "human" | "proprietary" | "ai_extracted" | "ai_generated" | "imported" | "verified" | undefined;
49
+ globalId?: string | undefined;
50
+ contentHash?: string | undefined;
51
+ topicId?: string | undefined;
52
+ canonicalText?: string | undefined;
53
+ createdBy?: string | undefined;
54
+ confidence?: number | undefined;
55
+ verificationStatus?: "unverified" | "human_verified" | "ai_verified" | "contradicted" | "outdated" | undefined;
56
+ contentType?: string | undefined;
57
+ tags?: string[] | undefined;
58
+ trustedBypassAccessCheck?: boolean | undefined;
59
+ domain?: string | undefined;
60
+ subtype?: string | undefined;
61
+ externalIds?: {
62
+ crunchbase?: string | undefined;
63
+ linkedin?: string | undefined;
64
+ pitchbook?: string | undefined;
65
+ twitter?: string | undefined;
66
+ website?: string | undefined;
67
+ } | undefined;
68
+ aiProvider?: string | undefined;
69
+ extractedFromNodeId?: string | undefined;
70
+ }, {
71
+ nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain";
72
+ content?: string | undefined;
73
+ title?: string | undefined;
74
+ metadata?: Record<string, unknown> | undefined;
75
+ text?: string | undefined;
76
+ sourceType?: "system" | "human" | "proprietary" | "ai_extracted" | "ai_generated" | "imported" | "verified" | undefined;
77
+ globalId?: string | undefined;
78
+ contentHash?: string | undefined;
79
+ topicId?: string | undefined;
80
+ canonicalText?: string | undefined;
81
+ createdBy?: string | undefined;
82
+ confidence?: number | undefined;
83
+ verificationStatus?: "unverified" | "human_verified" | "ai_verified" | "contradicted" | "outdated" | undefined;
84
+ contentType?: string | undefined;
85
+ tags?: string[] | undefined;
86
+ trustedBypassAccessCheck?: boolean | undefined;
87
+ domain?: string | undefined;
88
+ subtype?: string | undefined;
89
+ externalIds?: {
90
+ crunchbase?: string | undefined;
91
+ linkedin?: string | undefined;
92
+ pitchbook?: string | undefined;
93
+ twitter?: string | undefined;
94
+ website?: string | undefined;
95
+ } | undefined;
96
+ aiProvider?: string | undefined;
97
+ extractedFromNodeId?: string | undefined;
98
+ }>;
99
+ export declare const createEpistemicNodeArgs: z.ZodObject<{
100
+ globalId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
101
+ nodeType: z.ZodEnum<["decision", "belief", "question", "theme", "deal", "topic", "claim", "evidence", "synthesis", "answer", "atomic_fact", "excerpt", "source", "company", "person", "investor", "function", "value_chain"]>;
102
+ subtype: z.ZodOptional<z.ZodString>;
103
+ canonicalText: z.ZodOptional<z.ZodString>;
104
+ text: z.ZodOptional<z.ZodString>;
105
+ contentHash: z.ZodOptional<z.ZodString>;
106
+ content: z.ZodOptional<z.ZodString>;
107
+ contentType: z.ZodOptional<z.ZodString>;
108
+ title: z.ZodOptional<z.ZodString>;
109
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
+ domain: z.ZodOptional<z.ZodString>;
111
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
+ externalIds: z.ZodOptional<z.ZodObject<{
113
+ crunchbase: z.ZodOptional<z.ZodString>;
114
+ linkedin: z.ZodOptional<z.ZodString>;
115
+ pitchbook: z.ZodOptional<z.ZodString>;
116
+ twitter: z.ZodOptional<z.ZodString>;
117
+ website: z.ZodOptional<z.ZodString>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ crunchbase?: string | undefined;
120
+ linkedin?: string | undefined;
121
+ pitchbook?: string | undefined;
122
+ twitter?: string | undefined;
123
+ website?: string | undefined;
124
+ }, {
125
+ crunchbase?: string | undefined;
126
+ linkedin?: string | undefined;
127
+ pitchbook?: string | undefined;
128
+ twitter?: string | undefined;
129
+ website?: string | undefined;
130
+ }>>;
131
+ sourceType: z.ZodOptional<z.ZodEnum<["human", "ai_extracted", "ai_generated", "imported", "system", "verified", "proprietary"]>>;
132
+ aiProvider: z.ZodOptional<z.ZodString>;
133
+ extractedFromNodeId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
134
+ confidence: z.ZodOptional<z.ZodNumber>;
135
+ verificationStatus: z.ZodOptional<z.ZodEnum<["unverified", "human_verified", "ai_verified", "contradicted", "outdated"]>>;
136
+ topicId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
137
+ createdBy: z.ZodOptional<z.ZodString>;
138
+ trustedBypassAccessCheck: z.ZodOptional<z.ZodBoolean>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain";
141
+ content?: string | undefined;
142
+ title?: string | undefined;
143
+ metadata?: Record<string, unknown> | undefined;
144
+ text?: string | undefined;
145
+ sourceType?: "system" | "human" | "proprietary" | "ai_extracted" | "ai_generated" | "imported" | "verified" | undefined;
146
+ globalId?: string | undefined;
147
+ contentHash?: string | undefined;
148
+ topicId?: string | undefined;
149
+ canonicalText?: string | undefined;
150
+ createdBy?: string | undefined;
151
+ confidence?: number | undefined;
152
+ verificationStatus?: "unverified" | "human_verified" | "ai_verified" | "contradicted" | "outdated" | undefined;
153
+ contentType?: string | undefined;
154
+ tags?: string[] | undefined;
155
+ trustedBypassAccessCheck?: boolean | undefined;
156
+ domain?: string | undefined;
157
+ subtype?: string | undefined;
158
+ externalIds?: {
159
+ crunchbase?: string | undefined;
160
+ linkedin?: string | undefined;
161
+ pitchbook?: string | undefined;
162
+ twitter?: string | undefined;
163
+ website?: string | undefined;
164
+ } | undefined;
165
+ aiProvider?: string | undefined;
166
+ extractedFromNodeId?: string | undefined;
167
+ }, {
168
+ nodeType: "function" | "source" | "answer" | "decision" | "belief" | "question" | "theme" | "deal" | "topic" | "claim" | "evidence" | "synthesis" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain";
169
+ content?: string | undefined;
170
+ title?: string | undefined;
171
+ metadata?: Record<string, unknown> | undefined;
172
+ text?: string | undefined;
173
+ sourceType?: "system" | "human" | "proprietary" | "ai_extracted" | "ai_generated" | "imported" | "verified" | undefined;
174
+ globalId?: string | undefined;
175
+ contentHash?: string | undefined;
176
+ topicId?: string | undefined;
177
+ canonicalText?: string | undefined;
178
+ createdBy?: string | undefined;
179
+ confidence?: number | undefined;
180
+ verificationStatus?: "unverified" | "human_verified" | "ai_verified" | "contradicted" | "outdated" | undefined;
181
+ contentType?: string | undefined;
182
+ tags?: string[] | undefined;
183
+ trustedBypassAccessCheck?: boolean | undefined;
184
+ domain?: string | undefined;
185
+ subtype?: string | undefined;
186
+ externalIds?: {
187
+ crunchbase?: string | undefined;
188
+ linkedin?: string | undefined;
189
+ pitchbook?: string | undefined;
190
+ twitter?: string | undefined;
191
+ website?: string | undefined;
192
+ } | undefined;
193
+ aiProvider?: string | undefined;
194
+ extractedFromNodeId?: string | undefined;
195
+ }>;
196
+ export type CreateEpistemicNodeArgs = z.infer<typeof createEpistemicNodeArgs>;
2
197
  export declare const nodesContracts: readonly [{
3
198
  name: string;
4
199
  kind: import("./types.js").FunctionKind;
5
200
  idempotent: import("./types.js").FunctionIdempotency;
6
201
  effects: readonly import("../dsl.js").FunctionEffect[];
7
202
  invariants: readonly string[] | undefined;
203
+ boundary: import("./types.js").BoundarySpec | undefined;
8
204
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
9
205
  domain: string;
10
206
  surfaceClass: import("./types.js").SurfaceClass;
@@ -50,6 +246,7 @@ export declare const nodesContracts: readonly [{
50
246
  idempotent: import("./types.js").FunctionIdempotency;
51
247
  effects: readonly import("../dsl.js").FunctionEffect[];
52
248
  invariants: readonly string[] | undefined;
249
+ boundary: import("./types.js").BoundarySpec | undefined;
53
250
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
54
251
  domain: string;
55
252
  surfaceClass: import("./types.js").SurfaceClass;
@@ -95,6 +292,7 @@ export declare const nodesContracts: readonly [{
95
292
  idempotent: import("./types.js").FunctionIdempotency;
96
293
  effects: readonly import("../dsl.js").FunctionEffect[];
97
294
  invariants: readonly string[] | undefined;
295
+ boundary: import("./types.js").BoundarySpec | undefined;
98
296
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
99
297
  domain: string;
100
298
  surfaceClass: import("./types.js").SurfaceClass;
@@ -140,6 +338,7 @@ export declare const nodesContracts: readonly [{
140
338
  idempotent: import("./types.js").FunctionIdempotency;
141
339
  effects: readonly import("../dsl.js").FunctionEffect[];
142
340
  invariants: readonly string[] | undefined;
341
+ boundary: import("./types.js").BoundarySpec | undefined;
143
342
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
144
343
  domain: string;
145
344
  surfaceClass: import("./types.js").SurfaceClass;
@@ -185,6 +384,7 @@ export declare const nodesContracts: readonly [{
185
384
  idempotent: import("./types.js").FunctionIdempotency;
186
385
  effects: readonly import("../dsl.js").FunctionEffect[];
187
386
  invariants: readonly string[] | undefined;
387
+ boundary: import("./types.js").BoundarySpec | undefined;
188
388
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
189
389
  domain: string;
190
390
  surfaceClass: import("./types.js").SurfaceClass;
@@ -230,6 +430,7 @@ export declare const nodesContracts: readonly [{
230
430
  idempotent: import("./types.js").FunctionIdempotency;
231
431
  effects: readonly import("../dsl.js").FunctionEffect[];
232
432
  invariants: readonly string[] | undefined;
433
+ boundary: import("./types.js").BoundarySpec | undefined;
233
434
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
234
435
  domain: string;
235
436
  surfaceClass: import("./types.js").SurfaceClass;
@@ -275,6 +476,7 @@ export declare const nodesContracts: readonly [{
275
476
  idempotent: import("./types.js").FunctionIdempotency;
276
477
  effects: readonly import("../dsl.js").FunctionEffect[];
277
478
  invariants: readonly string[] | undefined;
479
+ boundary: import("./types.js").BoundarySpec | undefined;
278
480
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
279
481
  domain: string;
280
482
  surfaceClass: import("./types.js").SurfaceClass;
@@ -320,6 +522,7 @@ export declare const nodesContracts: readonly [{
320
522
  idempotent: import("./types.js").FunctionIdempotency;
321
523
  effects: readonly import("../dsl.js").FunctionEffect[];
322
524
  invariants: readonly string[] | undefined;
525
+ boundary: import("./types.js").BoundarySpec | undefined;
323
526
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
324
527
  domain: string;
325
528
  surfaceClass: import("./types.js").SurfaceClass;
@@ -6187,6 +6187,7 @@ function surfaceContract(args) {
6187
6187
  idempotent: args.idempotent ?? args.kind !== "query",
6188
6188
  effects: resolvedEffects,
6189
6189
  invariants: args.invariants,
6190
+ boundary: args.boundary,
6190
6191
  surfaceIntent: manifestEntry.surfaceIntent,
6191
6192
  domain: args.domain,
6192
6193
  surfaceClass: manifestEntry.surfaceClass,
@@ -6237,6 +6238,7 @@ var sourceTypeSchema = z.enum([
6237
6238
  "verified",
6238
6239
  "proprietary"
6239
6240
  ]);
6241
+ var nodeListReturns = z.array(z.record(z.unknown()));
6240
6242
  var verificationStatusSchema = z.enum([
6241
6243
  "unverified",
6242
6244
  "human_verified",
@@ -6464,12 +6466,15 @@ var nodesContracts = [
6464
6466
  sdkMethod: "createEpistemicNode",
6465
6467
  summary: "Create a generic epistemic graph node.",
6466
6468
  convex: {
6467
- module: "nodes",
6469
+ module: "nodesMutations",
6468
6470
  functionName: "create",
6469
6471
  kind: "mutation",
6470
6472
  inputProjection: createNodeInput
6471
6473
  },
6472
- args: createEpistemicNodeArgs
6474
+ args: createEpistemicNodeArgs,
6475
+ boundary: {
6476
+ admission: ["source-span", "uuidv7-endpoints"]
6477
+ }
6473
6478
  }),
6474
6479
  surfaceContract({
6475
6480
  name: "get_epistemic_node",
@@ -6482,7 +6487,7 @@ var nodesContracts = [
6482
6487
  sdkMethod: "getEpistemicNode",
6483
6488
  summary: "Get a generic epistemic graph node.",
6484
6489
  convex: {
6485
- module: "nodes",
6490
+ module: "nodesQueries",
6486
6491
  functionName: "get",
6487
6492
  kind: "query",
6488
6493
  inputProjection: getNodeInput
@@ -6500,12 +6505,13 @@ var nodesContracts = [
6500
6505
  sdkMethod: "listEpistemicNodes",
6501
6506
  summary: "List generic epistemic graph nodes.",
6502
6507
  convex: {
6503
- module: "nodes",
6508
+ module: "nodesQueries",
6504
6509
  functionName: "list",
6505
6510
  kind: "query",
6506
6511
  inputProjection: listNodesInput
6507
6512
  },
6508
- args: listEpistemicNodesArgs
6513
+ args: listEpistemicNodesArgs,
6514
+ returns: nodeListReturns
6509
6515
  }),
6510
6516
  surfaceContract({
6511
6517
  name: "update_epistemic_node",
@@ -6518,7 +6524,7 @@ var nodesContracts = [
6518
6524
  sdkMethod: "updateEpistemicNode",
6519
6525
  summary: "Update a generic epistemic graph node.",
6520
6526
  convex: {
6521
- module: "nodes",
6527
+ module: "nodesMutations",
6522
6528
  functionName: "update",
6523
6529
  kind: "mutation",
6524
6530
  inputProjection: updateNodeInput
@@ -6535,7 +6541,7 @@ var nodesContracts = [
6535
6541
  sdkMethod: "archiveEpistemicNode",
6536
6542
  summary: "Archive a generic epistemic graph node.",
6537
6543
  convex: {
6538
- module: "nodes",
6544
+ module: "nodesMutations",
6539
6545
  functionName: "archive",
6540
6546
  kind: "mutation",
6541
6547
  inputProjection: archiveNodeInput
@@ -6552,7 +6558,7 @@ var nodesContracts = [
6552
6558
  sdkMethod: "verifyEpistemicNode",
6553
6559
  summary: "Verify a generic epistemic graph node.",
6554
6560
  convex: {
6555
- module: "nodes",
6561
+ module: "nodesMutations",
6556
6562
  functionName: "verify",
6557
6563
  kind: "mutation",
6558
6564
  inputProjection: verifyNodeInput
@@ -6569,7 +6575,7 @@ var nodesContracts = [
6569
6575
  sdkMethod: "supersedeEpistemicNode",
6570
6576
  summary: "Supersede a generic epistemic graph node.",
6571
6577
  convex: {
6572
- module: "nodes",
6578
+ module: "nodesMutations",
6573
6579
  functionName: "supersede",
6574
6580
  kind: "mutation",
6575
6581
  inputProjection: supersedeNodeInput
@@ -6586,7 +6592,7 @@ var nodesContracts = [
6586
6592
  sdkMethod: "batchCreateEpistemicNodes",
6587
6593
  summary: "Batch create generic epistemic graph nodes.",
6588
6594
  convex: {
6589
- module: "nodes",
6595
+ module: "nodesMutations",
6590
6596
  functionName: "batchCreate",
6591
6597
  kind: "mutation",
6592
6598
  inputProjection: batchCreateNodesInput
@@ -6595,4 +6601,4 @@ var nodesContracts = [
6595
6601
  })
6596
6602
  ];
6597
6603
 
6598
- export { nodesContracts };
6604
+ export { createEpistemicNodeArgs, createEpistemicNodeItemArgs, nodesContracts };