@lucern/graph-primitives 1.0.0 → 1.0.1

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 (202) hide show
  1. package/README.md +13 -12
  2. package/dist/beliefDecay.js +24 -17
  3. package/dist/beliefDecay.js.map +1 -1
  4. package/dist/beliefEvidenceLinks.js +32 -8
  5. package/dist/beliefEvidenceLinks.js.map +1 -1
  6. package/dist/confidencePropagationDispatch.js.map +1 -1
  7. package/dist/contradictions.js +32 -9
  8. package/dist/contradictions.js.map +1 -1
  9. package/dist/convex.d.ts +55 -12
  10. package/dist/convex.js.map +1 -1
  11. package/dist/edgeValidation.d.ts +25 -2
  12. package/dist/edges/index.d.ts +9 -2
  13. package/dist/edges/index.js.map +1 -1
  14. package/dist/edges/propagationTypes.d.ts +2 -3
  15. package/dist/edges/propagationTypes.js.map +1 -1
  16. package/dist/entityBridge.js +10 -3
  17. package/dist/entityBridge.js.map +1 -1
  18. package/dist/entityLifecycle.js +15 -3
  19. package/dist/entityLifecycle.js.map +1 -1
  20. package/dist/epistemicAnswers.js.map +1 -1
  21. package/dist/epistemicBeliefs.admin.d.ts +36 -0
  22. package/dist/epistemicBeliefs.admin.js +745 -0
  23. package/dist/epistemicBeliefs.admin.js.map +1 -0
  24. package/dist/epistemicBeliefs.backfills.d.ts +62 -0
  25. package/dist/epistemicBeliefs.backfills.js +1004 -0
  26. package/dist/epistemicBeliefs.backfills.js.map +1 -0
  27. package/dist/epistemicBeliefs.confidence.d.ts +45 -0
  28. package/dist/epistemicBeliefs.confidence.js +1285 -0
  29. package/dist/epistemicBeliefs.confidence.js.map +1 -0
  30. package/dist/epistemicBeliefs.core.d.ts +35 -0
  31. package/dist/epistemicBeliefs.core.js +1508 -0
  32. package/dist/epistemicBeliefs.core.js.map +1 -0
  33. package/dist/epistemicBeliefs.d.ts +12 -3
  34. package/dist/epistemicBeliefs.helpers.d.ts +168 -0
  35. package/dist/epistemicBeliefs.helpers.js +1060 -0
  36. package/dist/epistemicBeliefs.helpers.js.map +1 -0
  37. package/dist/epistemicBeliefs.internal.d.ts +30 -0
  38. package/dist/epistemicBeliefs.internal.js +1329 -0
  39. package/dist/epistemicBeliefs.internal.js.map +1 -0
  40. package/dist/epistemicBeliefs.js +1196 -1184
  41. package/dist/epistemicBeliefs.js.map +1 -1
  42. package/dist/epistemicBeliefs.lifecycle.d.ts +19 -0
  43. package/dist/epistemicBeliefs.lifecycle.js +1608 -0
  44. package/dist/epistemicBeliefs.lifecycle.js.map +1 -0
  45. package/dist/epistemicBeliefs.links.d.ts +30 -0
  46. package/dist/epistemicBeliefs.links.js +761 -0
  47. package/dist/epistemicBeliefs.links.js.map +1 -0
  48. package/dist/epistemicBeliefs.queries.d.ts +16 -0
  49. package/dist/epistemicBeliefs.queries.js +90 -0
  50. package/dist/epistemicBeliefs.queries.js.map +1 -0
  51. package/dist/epistemicContractHelpers.d.ts +1 -1
  52. package/dist/epistemicContractHelpers.js +1 -1
  53. package/dist/epistemicContracts.d.ts +5 -76
  54. package/dist/epistemicContracts.evaluators.d.ts +36 -0
  55. package/dist/epistemicContracts.evaluators.js +2506 -0
  56. package/dist/epistemicContracts.evaluators.js.map +1 -0
  57. package/dist/epistemicContracts.handlers.d.ts +40 -0
  58. package/dist/epistemicContracts.handlers.js +3029 -0
  59. package/dist/epistemicContracts.handlers.js.map +1 -0
  60. package/dist/epistemicContracts.js +2006 -5281
  61. package/dist/epistemicContracts.js.map +1 -1
  62. package/dist/epistemicContracts.metrics.d.ts +26 -0
  63. package/dist/epistemicContracts.metrics.js +427 -0
  64. package/dist/epistemicContracts.metrics.js.map +1 -0
  65. package/dist/epistemicContracts.types.d.ts +159 -0
  66. package/dist/epistemicContracts.types.js +3 -0
  67. package/dist/epistemicContracts.types.js.map +1 -0
  68. package/dist/epistemicEdgeCreation.d.ts +73 -0
  69. package/dist/epistemicEdgeCreation.js +450 -0
  70. package/dist/epistemicEdgeCreation.js.map +1 -0
  71. package/dist/epistemicEdges-BF-cn4i3.d.ts +43 -0
  72. package/dist/epistemicEdges.d.ts +8 -1
  73. package/dist/epistemicEdges.handlers.d.ts +20 -0
  74. package/dist/epistemicEdges.handlers.js +289 -0
  75. package/dist/epistemicEdges.handlers.js.map +1 -0
  76. package/dist/epistemicEdges.helpers.d.ts +27 -0
  77. package/dist/epistemicEdges.helpers.js +162 -0
  78. package/dist/epistemicEdges.helpers.js.map +1 -0
  79. package/dist/epistemicEdges.js +797 -875
  80. package/dist/epistemicEdges.js.map +1 -1
  81. package/dist/epistemicEdges.mutations.d.ts +39 -0
  82. package/dist/epistemicEdges.mutations.js +1365 -0
  83. package/dist/epistemicEdges.mutations.js.map +1 -0
  84. package/dist/epistemicEdges.queries.d.ts +95 -0
  85. package/dist/epistemicEdges.queries.js +851 -0
  86. package/dist/epistemicEdges.queries.js.map +1 -0
  87. package/dist/epistemicEdges.types.d.ts +32 -0
  88. package/dist/epistemicEdges.types.js +3 -0
  89. package/dist/epistemicEdges.types.js.map +1 -0
  90. package/dist/epistemicEvidence-DvfchNt7.d.ts +46 -0
  91. package/dist/epistemicEvidence.d.ts +5 -2
  92. package/dist/epistemicEvidence.js +801 -807
  93. package/dist/epistemicEvidence.js.map +1 -1
  94. package/dist/epistemicEvidenceHelpers.d.ts +71 -0
  95. package/dist/epistemicEvidenceHelpers.js +769 -0
  96. package/dist/epistemicEvidenceHelpers.js.map +1 -0
  97. package/dist/epistemicEvidenceMutations.d.ts +10 -0
  98. package/dist/epistemicEvidenceMutations.js +1421 -0
  99. package/dist/epistemicEvidenceMutations.js.map +1 -0
  100. package/dist/epistemicEvidenceQueries.d.ts +10 -0
  101. package/dist/epistemicEvidenceQueries.js +1049 -0
  102. package/dist/epistemicEvidenceQueries.js.map +1 -0
  103. package/dist/epistemicHelpers.d.ts +4 -2
  104. package/dist/epistemicHelpers.js +132 -127
  105. package/dist/epistemicHelpers.js.map +1 -1
  106. package/dist/epistemicLayerRules.d.ts +138 -0
  107. package/dist/epistemicLayerRules.js +481 -0
  108. package/dist/epistemicLayerRules.js.map +1 -0
  109. package/dist/epistemicLinking.js +1 -1
  110. package/dist/epistemicLinking.js.map +1 -1
  111. package/dist/epistemicNodeCreation.d.ts +101 -0
  112. package/dist/epistemicNodeCreation.js +709 -0
  113. package/dist/epistemicNodeCreation.js.map +1 -0
  114. package/dist/epistemicNodes-BCQxpYx_.d.ts +54 -0
  115. package/dist/epistemicNodes.d.ts +5 -1
  116. package/dist/epistemicNodes.helpers.d.ts +51 -0
  117. package/dist/epistemicNodes.helpers.js +73 -0
  118. package/dist/epistemicNodes.helpers.js.map +1 -0
  119. package/dist/epistemicNodes.internal.d.ts +34 -0
  120. package/dist/epistemicNodes.internal.js +658 -0
  121. package/dist/epistemicNodes.internal.js.map +1 -0
  122. package/dist/epistemicNodes.js +698 -693
  123. package/dist/epistemicNodes.js.map +1 -1
  124. package/dist/epistemicNodes.mutations.d.ts +34 -0
  125. package/dist/epistemicNodes.mutations.js +1153 -0
  126. package/dist/epistemicNodes.mutations.js.map +1 -0
  127. package/dist/epistemicNodes.queries.d.ts +36 -0
  128. package/dist/epistemicNodes.queries.js +619 -0
  129. package/dist/epistemicNodes.queries.js.map +1 -0
  130. package/dist/epistemicNodes.validators.d.ts +23 -0
  131. package/dist/epistemicNodes.validators.js +105 -0
  132. package/dist/epistemicNodes.validators.js.map +1 -0
  133. package/dist/epistemicQuestions-bwHd2FWE.d.ts +68 -0
  134. package/dist/epistemicQuestions.conviction.d.ts +52 -0
  135. package/dist/epistemicQuestions.conviction.js +1389 -0
  136. package/dist/epistemicQuestions.conviction.js.map +1 -0
  137. package/dist/epistemicQuestions.create.d.ts +29 -0
  138. package/dist/epistemicQuestions.create.js +1300 -0
  139. package/dist/epistemicQuestions.create.js.map +1 -0
  140. package/dist/epistemicQuestions.d.ts +10 -2
  141. package/dist/epistemicQuestions.evidence.d.ts +22 -0
  142. package/dist/epistemicQuestions.evidence.js +929 -0
  143. package/dist/epistemicQuestions.evidence.js.map +1 -0
  144. package/dist/epistemicQuestions.helpers.d.ts +69 -0
  145. package/dist/epistemicQuestions.helpers.js +824 -0
  146. package/dist/epistemicQuestions.helpers.js.map +1 -0
  147. package/dist/epistemicQuestions.js +2435 -2430
  148. package/dist/epistemicQuestions.js.map +1 -1
  149. package/dist/epistemicQuestions.lifecycle.d.ts +24 -0
  150. package/dist/epistemicQuestions.lifecycle.js +838 -0
  151. package/dist/epistemicQuestions.lifecycle.js.map +1 -0
  152. package/dist/epistemicQuestions.queries.d.ts +41 -0
  153. package/dist/epistemicQuestions.queries.js +1013 -0
  154. package/dist/epistemicQuestions.queries.js.map +1 -0
  155. package/dist/epistemicQuestions.sprint.d.ts +22 -0
  156. package/dist/epistemicQuestions.sprint.js +757 -0
  157. package/dist/epistemicQuestions.sprint.js.map +1 -0
  158. package/dist/epistemicQuestions.tail.d.ts +42 -0
  159. package/dist/epistemicQuestions.tail.js +1345 -0
  160. package/dist/epistemicQuestions.tail.js.map +1 -0
  161. package/dist/epistemicSources.js +6 -2
  162. package/dist/epistemicSources.js.map +1 -1
  163. package/dist/evaluators/index.d.ts +2 -2
  164. package/dist/evaluators/index.js +45 -5320
  165. package/dist/evaluators/index.js.map +1 -1
  166. package/dist/evaluators/lintCheckerEvaluator.d.ts +1 -1
  167. package/dist/evaluators/sentryCheckerEvaluator.d.ts +1 -1
  168. package/dist/evaluators/testRunnerEvaluator.d.ts +1 -1
  169. package/dist/evaluators/tscCheckerEvaluator.d.ts +1 -1
  170. package/dist/{graphTypes-CpgIuCdo.d.ts → graphTypes-B8VaIjnl.d.ts} +1 -1
  171. package/dist/graphTypes.d.ts +1 -1
  172. package/dist/{helpers-BYHIk5vU.d.ts → helpers-DNYfg6mo.d.ts} +2 -3
  173. package/dist/helpers.d.ts +2 -2
  174. package/dist/helpers.js.map +1 -1
  175. package/dist/{index-Dq-7R-gi.d.ts → index-C-Kyd7hD.d.ts} +1 -1
  176. package/dist/index.d.ts +160 -14
  177. package/dist/index.js +12291 -13001
  178. package/dist/index.js.map +1 -1
  179. package/dist/logicalRoleInference.js.map +1 -1
  180. package/dist/ontologyApproval.js +1 -1
  181. package/dist/ontologyApproval.js.map +1 -1
  182. package/dist/ontologyDefinitions.js +25 -7
  183. package/dist/ontologyDefinitions.js.map +1 -1
  184. package/dist/ontologyRegistry.js.map +1 -1
  185. package/dist/projectionReconciliation.js.map +1 -1
  186. package/dist/questionEvidenceLinks.js +28 -7
  187. package/dist/questionEvidenceLinks.js.map +1 -1
  188. package/dist/resolvers.js.map +1 -1
  189. package/dist/scopeResolverCompat.js.map +1 -1
  190. package/dist/topicProjectOverlay.js.map +1 -1
  191. package/dist/topicScope.js.map +1 -1
  192. package/dist/workflowBridge.js.map +1 -1
  193. package/dist/workspaceIsolation.js.map +1 -1
  194. package/package.json +4 -5
  195. package/dist/edgeValidation-CeI0wc0r.d.ts +0 -35
  196. package/dist/epistemicBeliefs-DzKjZAeC.d.ts +0 -377
  197. package/dist/epistemicEdges-CvlKnEyy.d.ts +0 -191
  198. package/dist/epistemicEvidence-xw6UUrwh.d.ts +0 -128
  199. package/dist/epistemicHelpers-DevrYgPN.d.ts +0 -329
  200. package/dist/epistemicNodes-DjSUfvyD.d.ts +0 -167
  201. package/dist/epistemicQuestions-B_nUclrH.d.ts +0 -214
  202. package/dist/index-Dct1T70K.d.ts +0 -25
@@ -1,128 +0,0 @@
1
- import { Doc } from './convex.js';
2
-
3
- /**
4
- * Epistemic Evidence API
5
- *
6
- * Clean API for managing evidence/insights in the epistemic spine (epistemicNodes).
7
- * This is the NEW API that replaces insights.ts for CREATE operations.
8
- *
9
- * Key differences from insights.ts:
10
- * - Writes ONLY to epistemicNodes (no dual-write)
11
- * - Uses epistemicNodes IDs directly (no legacyInsightId lookups)
12
- * - Syncs to Neo4j after mutations
13
- * - Follows Lucern invariants strictly
14
- *
15
- * Terminology:
16
- * - "Evidence" in the epistemic graph = "Insight" in the legacy schema
17
- * - Evidence is at L2 (Compression Boundary) in the Lucern architecture
18
- *
19
- * @see /docs/epistemic-invariants/00-epistemic-invariants.md
20
- */
21
-
22
- type EvidenceNodeDoc = Doc<"epistemicNodes">;
23
- declare function resolveEvidenceLinkedWorktreeId(metadata: Record<string, unknown> | undefined): string | undefined;
24
- declare function flattenEvidenceNode(n: EvidenceNodeDoc): any;
25
- /**
26
- * Create new evidence in the epistemic spine.
27
- * Returns the epistemicNodes ID directly (not an insights ID).
28
- */
29
- declare const create: any;
30
- /**
31
- * Create evidence and link to a belief in one operation
32
- */
33
- declare const createAndLink: any;
34
- /**
35
- * Update evidence status
36
- */
37
- declare const updateStatus: any;
38
- /**
39
- * Get evidence by ID
40
- */
41
- declare const getById: any;
42
- /**
43
- * Get all evidence for a project
44
- */
45
- declare const getByProject: any;
46
- /**
47
- * Get all evidence for a topic.
48
- */
49
- declare const getByTopic: any;
50
- /**
51
- * Get evidence linked to a specific belief
52
- */
53
- declare const getForBelief: any;
54
- /**
55
- * Internal query to get evidence for a project
56
- */
57
- declare const internalGetByProject: any;
58
- /**
59
- * Internal query to get evidence for a topic
60
- */
61
- declare const internalGetByTopic: any;
62
- /**
63
- * Internal mutation to create evidence (for other Convex modules)
64
- */
65
- declare const internalCreate: any;
66
- /**
67
- * Update verification status on an evidence node.
68
- * Used by verificationActions after deep verification completes.
69
- */
70
- declare const updateVerificationStatus: any;
71
- /**
72
- * Get evidence for project - SYSTEM query (no access check)
73
- */
74
- declare const getByProjectSystem: any;
75
- /**
76
- * Get evidence balance for a project (supporting vs challenging evidence).
77
- * Used by the EvidenceBalance visualization component.
78
- *
79
- * Calculates by examining edges from evidence nodes to belief nodes,
80
- * where positive weight = supporting and negative weight = challenging.
81
- */
82
- declare const getEvidenceBalance: any;
83
- /**
84
- * Update an evidence node's text, kind, tags, or verification fields.
85
- * Accepts either a native epistemicNodes ID via `nodeId` or a string `insightId`
86
- * for backward compatibility (callers still pass Id<"epistemicNodes"> shaped strings).
87
- *
88
- * Ported from insights.ts → update mutation.
89
- */
90
- declare const update: any;
91
- /**
92
- * Flag an evidence node as incorrect (human contradiction).
93
- * Sets verificationStatus to "contradicted" and records the reason in metadata.
94
- *
95
- * Ported from insights.ts → flagAsIncorrect mutation.
96
- */
97
- declare const flagAsIncorrect: any;
98
- /**
99
- * Archive (soft-delete) an evidence node.
100
- * Sets status to "archived" — never actually deletes from epistemicNodes.
101
- *
102
- * Ported from insights.ts → remove mutation.
103
- */
104
- declare const remove: any;
105
-
106
- declare const epistemicEvidence_create: typeof create;
107
- declare const epistemicEvidence_createAndLink: typeof createAndLink;
108
- declare const epistemicEvidence_flagAsIncorrect: typeof flagAsIncorrect;
109
- declare const epistemicEvidence_flattenEvidenceNode: typeof flattenEvidenceNode;
110
- declare const epistemicEvidence_getById: typeof getById;
111
- declare const epistemicEvidence_getByProject: typeof getByProject;
112
- declare const epistemicEvidence_getByProjectSystem: typeof getByProjectSystem;
113
- declare const epistemicEvidence_getByTopic: typeof getByTopic;
114
- declare const epistemicEvidence_getEvidenceBalance: typeof getEvidenceBalance;
115
- declare const epistemicEvidence_getForBelief: typeof getForBelief;
116
- declare const epistemicEvidence_internalCreate: typeof internalCreate;
117
- declare const epistemicEvidence_internalGetByProject: typeof internalGetByProject;
118
- declare const epistemicEvidence_internalGetByTopic: typeof internalGetByTopic;
119
- declare const epistemicEvidence_remove: typeof remove;
120
- declare const epistemicEvidence_resolveEvidenceLinkedWorktreeId: typeof resolveEvidenceLinkedWorktreeId;
121
- declare const epistemicEvidence_update: typeof update;
122
- declare const epistemicEvidence_updateStatus: typeof updateStatus;
123
- declare const epistemicEvidence_updateVerificationStatus: typeof updateVerificationStatus;
124
- declare namespace epistemicEvidence {
125
- export { epistemicEvidence_create as create, epistemicEvidence_createAndLink as createAndLink, epistemicEvidence_flagAsIncorrect as flagAsIncorrect, epistemicEvidence_flattenEvidenceNode as flattenEvidenceNode, epistemicEvidence_getById as getById, epistemicEvidence_getByProject as getByProject, epistemicEvidence_getByProjectSystem as getByProjectSystem, epistemicEvidence_getByTopic as getByTopic, epistemicEvidence_getEvidenceBalance as getEvidenceBalance, epistemicEvidence_getForBelief as getForBelief, epistemicEvidence_internalCreate as internalCreate, epistemicEvidence_internalGetByProject as internalGetByProject, epistemicEvidence_internalGetByTopic as internalGetByTopic, epistemicEvidence_remove as remove, epistemicEvidence_resolveEvidenceLinkedWorktreeId as resolveEvidenceLinkedWorktreeId, epistemicEvidence_update as update, epistemicEvidence_updateStatus as updateStatus, epistemicEvidence_updateVerificationStatus as updateVerificationStatus };
126
- }
127
-
128
- export { createAndLink as a, flattenEvidenceNode as b, create as c, getByProject as d, epistemicEvidence as e, flagAsIncorrect as f, getById as g, getByProjectSystem as h, getByTopic as i, getEvidenceBalance as j, getForBelief as k, internalCreate as l, internalGetByProject as m, internalGetByTopic as n, resolveEvidenceLinkedWorktreeId as o, updateStatus as p, updateVerificationStatus as q, remove as r, update as u };
@@ -1,329 +0,0 @@
1
- import { Id, MutationCtx } from './convex.js';
2
- import { a as getNeo4jLabel, b as getNeo4jRelType, i as isDeprecatedEdgeType } from './graphTypes-CpgIuCdo.js';
3
-
4
- /**
5
- * Epistemic Spine - Dual-Write Helpers
6
- *
7
- * These functions handle writing to both legacy tables AND the epistemic spine.
8
- * They're called from existing mutations to ensure every new entity gets a spine entry.
9
- *
10
- * The spine is the canonical identity layer - these helpers ensure consistency.
11
- *
12
- * @see /docs/architecture/EPISTEMIC_SPINE.md
13
- * @see /docs/architecture/UNIFIED_GRAPH_ARCHITECTURE.md
14
- */
15
-
16
- /**
17
- * Epistemic Layer - governs traversal rules
18
- * L4 → L3 → L2 → L1 (never skip layers)
19
- */
20
- type EpistemicLayer = "L4" | "L3" | "L2" | "L1" | "ontological" | "organizational";
21
- /**
22
- * Map nodeType to its epistemic layer
23
- *
24
- * Layer semantics:
25
- * - L4: Audit targets (decisions, outcomes) - what we committed to
26
- * - L3: Traversal anchors (beliefs, questions, themes) - epistemic structure
27
- * - L2: Compression boundary (claims, evidence, synthesis) - minimum reasoning unit
28
- * - L1: Terminal leaves (atomic_fact, excerpt, source) - non-traversable grounding
29
- * - ontological: Entities in the world (companies, people) - not epistemic
30
- * - organizational: Structural containers (topics, lenses, worktrees) - not epistemic
31
- */
32
- declare function getNodeLayer(nodeType: string): EpistemicLayer;
33
- /**
34
- * Layer traversal rules
35
- * Key constraint: Cannot skip layers during traversal
36
- */
37
- declare const LAYER_TRAVERSAL_RULES: {
38
- readonly L4: {
39
- readonly canReach: readonly ["L3", "L4"];
40
- readonly mustPassThrough: "L3";
41
- };
42
- readonly L3: {
43
- readonly canReach: readonly ["L2", "L3", "L4"];
44
- readonly mustPassThrough: "L2";
45
- };
46
- readonly L2: {
47
- readonly canReach: readonly ["L1", "L2", "L3"];
48
- readonly mustPassThrough: null;
49
- };
50
- readonly L1: {
51
- readonly canReach: readonly ["L1"];
52
- readonly mustPassThrough: null;
53
- };
54
- readonly ontological: {
55
- readonly canReach: readonly ["L3", "L2", "ontological"];
56
- readonly mustPassThrough: null;
57
- };
58
- readonly organizational: {
59
- readonly canReach: readonly ["L3", "L2", "organizational"];
60
- readonly mustPassThrough: null;
61
- };
62
- };
63
- /**
64
- * Check if a direct edge between two layers is allowed
65
- */
66
- declare function isValidLayerConnection(fromLayer: EpistemicLayer, toLayer: EpistemicLayer): boolean;
67
- /**
68
- * Get layer hierarchy number (for comparison)
69
- * Higher number = higher layer
70
- */
71
- declare function getLayerDepth(layer: EpistemicLayer): number;
72
- /**
73
- * Check if we can traverse from one layer to another
74
- * (considering intermediate layers)
75
- */
76
- declare function canTraverseToLayer(fromLayer: EpistemicLayer, toLayer: EpistemicLayer): boolean;
77
- /**
78
- * Traversal mode - determines how to traverse the graph
79
- *
80
- * anchor_down: Start at L3 belief, traverse to L2 evidence, stop at L1 sources
81
- * anchor_up: Start at L2 evidence, traverse to L3 beliefs it supports
82
- * same_layer: Traverse within a single layer (e.g., belief → belief)
83
- * decision_trace: Start at L4 decision, traverse to L3 beliefs it was based on
84
- */
85
- type TraversalMode = "anchor_down" | "anchor_up" | "same_layer" | "decision_trace";
86
- /**
87
- * Traversal options for layer-aware queries
88
- */
89
- type TraversalOptions = {
90
- /** Starting node ID */
91
- startNodeId: Id<"epistemicNodes">;
92
- /** Traversal mode */
93
- mode: TraversalMode;
94
- /** Edge types to follow (empty = all valid for mode) */
95
- allowedEdgeTypes?: string[];
96
- /** Maximum depth */
97
- maxDepth?: number;
98
- /** Minimum layer to stop at (L1 = 1, L4 = 4) */
99
- minLayer?: number;
100
- /** Maximum layer to reach */
101
- maxLayer?: number;
102
- };
103
- /**
104
- * Check if traversal should continue based on layer constraints
105
- */
106
- declare function shouldContinueTraversal(currentLayer: EpistemicLayer, targetLayer: EpistemicLayer, options: {
107
- mode: TraversalMode;
108
- minLayer?: number;
109
- maxLayer?: number;
110
- }): boolean;
111
- /**
112
- * Get default minLayer for a traversal mode
113
- */
114
- declare function getDefaultMinLayer(mode: TraversalMode): number;
115
- /**
116
- * Get allowed edge types for a traversal mode
117
- */
118
- declare function getDefaultEdgeTypesForMode(mode: TraversalMode): string[];
119
- /**
120
- * Edge Layer Rules - defines valid layer combinations for each edge type
121
- *
122
- * Format: { from: [allowed source layers], to: [allowed target layers] }
123
- *
124
- * Key rules:
125
- * - L4 edges: Decision → L3 (beliefs, questions, themes)
126
- * - Cross-layer edges: L2 → L3 (evidence informs beliefs)
127
- * - Same-layer edges: L3 → L3, L2 → L2 (beliefs depend on beliefs)
128
- * - Downward edges: L2 → L1 (evidence extracted from source)
129
- * - Lifecycle edges: same layer only (supersedes)
130
- */
131
- declare const EDGE_LAYER_RULES: Record<string, {
132
- from: EpistemicLayer[];
133
- to: EpistemicLayer[];
134
- description: string;
135
- }>;
136
- /**
137
- * Validate an edge against layer rules
138
- *
139
- * Returns { valid: true } or { valid: false, reason: string }
140
- */
141
- declare function validateEdgeLayers(edgeType: string, fromLayer: EpistemicLayer, toLayer: EpistemicLayer): {
142
- valid: boolean;
143
- reason?: string;
144
- };
145
- /**
146
- * Create an epistemic node for an insight (evidence)
147
- * Called after inserting into the insights table
148
- */
149
- declare function createEpistemicNodeForInsight(ctx: MutationCtx, _insightId: Id<"epistemicNodes">, insight: {
150
- projectId: string;
151
- text: string;
152
- kind: string;
153
- tags?: string[];
154
- sourceType?: string;
155
- aiProvider?: string;
156
- verificationStatus?: string;
157
- sourceArtifactId?: Id<"finalArtifacts">;
158
- sourceQuestionId?: Id<"epistemicNodes">;
159
- sourceAnchor?: {
160
- artifactId: string;
161
- artifactType: string;
162
- artifactTitle?: string;
163
- sectionHeading?: string;
164
- selectedText?: string;
165
- startOffset?: number;
166
- endOffset?: number;
167
- pageNumber?: number;
168
- };
169
- createdBy: string;
170
- }): Promise<Id<"epistemicNodes">>;
171
- /**
172
- * Create an epistemic node for a belief
173
- * Called after inserting into the beliefs table
174
- */
175
- declare function createEpistemicNodeForBelief(ctx: MutationCtx, beliefId: Id<"epistemicNodes">, belief: {
176
- projectId: string;
177
- belief: string;
178
- rationale?: string;
179
- confidence: string;
180
- topic?: string;
181
- sourceAnchor?: {
182
- artifactId: string;
183
- artifactType: string;
184
- artifactTitle?: string;
185
- sectionHeading?: string;
186
- selectedText?: string;
187
- startOffset?: number;
188
- endOffset?: number;
189
- };
190
- createdBy: string;
191
- }): Promise<Id<"epistemicNodes">>;
192
- /**
193
- * Create an epistemic node for a question
194
- * Called after inserting into the questions table
195
- */
196
- declare function createEpistemicNodeForQuestion(ctx: MutationCtx, _questionId: Id<"epistemicNodes">, question: {
197
- projectId: string;
198
- question: string;
199
- category?: string;
200
- priority: string;
201
- source: string;
202
- sourceAnchor?: {
203
- artifactId: string;
204
- artifactType: string;
205
- artifactTitle?: string;
206
- sectionHeading?: string;
207
- selectedText?: string;
208
- startOffset?: number;
209
- endOffset?: number;
210
- };
211
- createdBy: string;
212
- }): Promise<Id<"epistemicNodes">>;
213
- /**
214
- * Create an epistemic node for a synthesis artifact (primer or deep research).
215
- *
216
- * ⚠️ IMPORTANT: This function should NOT be called for primers/deep research
217
- * unless the node is being connected to evidence as a source.
218
- * Standalone synthesis nodes create orphans in the graph.
219
- *
220
- * The correct pattern is:
221
- * 1. Store the artifact in finalArtifacts (for UI display)
222
- * 2. Only create epistemic node when extracting evidence FROM the artifact
223
- * 3. Create edge: evidence -> derived_from -> synthesis
224
- *
225
- * @deprecated Consider removing automatic node creation for primers.
226
- * Use the artifact ID reference in evidence metadata instead.
227
- */
228
- declare function createEpistemicNodeForArtifact(ctx: MutationCtx, artifactId: Id<"finalArtifacts">, artifact: {
229
- projectId?: string;
230
- title: string;
231
- content: string;
232
- type: string;
233
- isDeepResearch?: boolean;
234
- aiProvider?: string;
235
- createdBy: string;
236
- }): Promise<Id<"epistemicNodes">>;
237
- /**
238
- * Edge type union for createEpistemicEdge
239
- * Phase 2C: Updated to include L4 edges and modern edge types
240
- * Phase 3: Added full epistemic impact edges for confidence propagation
241
- */
242
- type EpistemicEdgeType = "derived_from" | "supports" | "contains" | "depends_on" | "informs" | "tests" | "responds_to" | "relates_to_thesis" | "belongs_to" | "plays_theme" | "supersedes" | "counterfactual_of" | "cascade_to" | "mutually_exclusive" | "correlates_with" | "amplifies" | "precondition_for" | "in_tension_with" | "assumes" | "would_predict" | "analogous_to" | "independent_of" | "prerequisite_for" | "parallel_to" | "corroborates" | "extends" | "same_source_as" | "same_theme_as" | "evaluates" | "perspective_on" | "works_at" | "participates_in" | "performs" | "function_in" | "impacts" | "invested_in" | "raised_from" | "mentioned_in" | "founded_by" | "competes_with";
243
- /**
244
- * Normalize confidence to a 0-1 number regardless of input format.
245
- *
246
- * Handles:
247
- * - number (0-1): returned as-is
248
- * - number (1-100): divided by 100
249
- * - string ("high"/"medium"/"low"): mapped to 0.8/0.5/0.3
250
- * - undefined/null/other: returns 0.5 default
251
- *
252
- * This is the canonical way to read confidence from any source.
253
- */
254
- declare function normalizeConfidence(confidence: unknown): number;
255
- /**
256
- * Epistemic Edge Propagation Semantics
257
- *
258
- * Each edge type has specific propagation rules for confidence cascades:
259
- *
260
- * | Edge Type | Direction | Propagation Rule |
261
- * |-------------------|--------------|-----------------------------------------------------------|
262
- * | depends_on | B → A | A.conf = min(A.conf, B.conf + 0.2) |
263
- * | reinforces | A ↔ B | Both get boost when either validated |
264
- * | falsified_by | B → A | A.conf = 1 - B.conf (inverse) |
265
- * | exclusive_with | A ↔ B | A.conf + B.conf ≤ 1.0 (redistribute on evidence) |
266
- * | contradicts | A ↔ B | Creates tension - neither can be validated without fork |
267
- * | collapses_if | A → B | If A.conf < threshold, B.conf → 0 |
268
- * | cascade_from | A → B | B.conf_delta = A.conf_delta * damping_factor |
269
- * | strengthened_by | A → B | B.conf += A.conf_delta * correlation |
270
- * | weakened_by | A → B | B.conf -= A.conf_delta * correlation |
271
- * | alternative_to | A ↔ B | Evidence for A reduces B, and vice versa |
272
- * | subsumes | A → B | A.conf >= B.conf always |
273
- * | validated_by | A → B | If A validated, B gains confidence |
274
- * | required_for | A → B | B cannot be validated until A is validated |
275
- * | blocks | A → B | B resolution blocked until A resolved |
276
- */
277
- /**
278
- * Create an epistemic edge between two nodes
279
- *
280
- * Phase 1 (Graph Architecture): Writes to Neo4j directly - Neo4j is source of truth.
281
- * Returns globalId (string) instead of Convex edge ID.
282
- *
283
- * Phase 2C: Validates layer rules before creation
284
- */
285
- declare function createEpistemicEdge(ctx: MutationCtx, params: {
286
- fromNodeId: Id<"epistemicNodes">;
287
- toNodeId: Id<"epistemicNodes">;
288
- edgeType: EpistemicEdgeType;
289
- weight?: number;
290
- confidence?: number;
291
- context?: string;
292
- projectId?: string;
293
- createdBy: string;
294
- skipLayerValidation?: boolean;
295
- }): Promise<string>;
296
- /**
297
- * Create an edge when linking an insight to a question
298
- * This creates a "derived_from" edge (evidence answers/informs question)
299
- */
300
- declare function createEdgeForInsightQuestionLink(ctx: MutationCtx, questionId: Id<"epistemicNodes">, insightId: Id<"epistemicNodes">, createdBy: string): Promise<string | null>;
301
-
302
- declare const epistemicHelpers_EDGE_LAYER_RULES: typeof EDGE_LAYER_RULES;
303
- type epistemicHelpers_EpistemicLayer = EpistemicLayer;
304
- declare const epistemicHelpers_LAYER_TRAVERSAL_RULES: typeof LAYER_TRAVERSAL_RULES;
305
- type epistemicHelpers_TraversalMode = TraversalMode;
306
- type epistemicHelpers_TraversalOptions = TraversalOptions;
307
- declare const epistemicHelpers_canTraverseToLayer: typeof canTraverseToLayer;
308
- declare const epistemicHelpers_createEdgeForInsightQuestionLink: typeof createEdgeForInsightQuestionLink;
309
- declare const epistemicHelpers_createEpistemicEdge: typeof createEpistemicEdge;
310
- declare const epistemicHelpers_createEpistemicNodeForArtifact: typeof createEpistemicNodeForArtifact;
311
- declare const epistemicHelpers_createEpistemicNodeForBelief: typeof createEpistemicNodeForBelief;
312
- declare const epistemicHelpers_createEpistemicNodeForInsight: typeof createEpistemicNodeForInsight;
313
- declare const epistemicHelpers_createEpistemicNodeForQuestion: typeof createEpistemicNodeForQuestion;
314
- declare const epistemicHelpers_getDefaultEdgeTypesForMode: typeof getDefaultEdgeTypesForMode;
315
- declare const epistemicHelpers_getDefaultMinLayer: typeof getDefaultMinLayer;
316
- declare const epistemicHelpers_getLayerDepth: typeof getLayerDepth;
317
- declare const epistemicHelpers_getNeo4jLabel: typeof getNeo4jLabel;
318
- declare const epistemicHelpers_getNeo4jRelType: typeof getNeo4jRelType;
319
- declare const epistemicHelpers_getNodeLayer: typeof getNodeLayer;
320
- declare const epistemicHelpers_isDeprecatedEdgeType: typeof isDeprecatedEdgeType;
321
- declare const epistemicHelpers_isValidLayerConnection: typeof isValidLayerConnection;
322
- declare const epistemicHelpers_normalizeConfidence: typeof normalizeConfidence;
323
- declare const epistemicHelpers_shouldContinueTraversal: typeof shouldContinueTraversal;
324
- declare const epistemicHelpers_validateEdgeLayers: typeof validateEdgeLayers;
325
- declare namespace epistemicHelpers {
326
- export { epistemicHelpers_EDGE_LAYER_RULES as EDGE_LAYER_RULES, type epistemicHelpers_EpistemicLayer as EpistemicLayer, epistemicHelpers_LAYER_TRAVERSAL_RULES as LAYER_TRAVERSAL_RULES, type epistemicHelpers_TraversalMode as TraversalMode, type epistemicHelpers_TraversalOptions as TraversalOptions, epistemicHelpers_canTraverseToLayer as canTraverseToLayer, epistemicHelpers_createEdgeForInsightQuestionLink as createEdgeForInsightQuestionLink, epistemicHelpers_createEpistemicEdge as createEpistemicEdge, epistemicHelpers_createEpistemicNodeForArtifact as createEpistemicNodeForArtifact, epistemicHelpers_createEpistemicNodeForBelief as createEpistemicNodeForBelief, epistemicHelpers_createEpistemicNodeForInsight as createEpistemicNodeForInsight, epistemicHelpers_createEpistemicNodeForQuestion as createEpistemicNodeForQuestion, epistemicHelpers_getDefaultEdgeTypesForMode as getDefaultEdgeTypesForMode, epistemicHelpers_getDefaultMinLayer as getDefaultMinLayer, epistemicHelpers_getLayerDepth as getLayerDepth, epistemicHelpers_getNeo4jLabel as getNeo4jLabel, epistemicHelpers_getNeo4jRelType as getNeo4jRelType, epistemicHelpers_getNodeLayer as getNodeLayer, epistemicHelpers_isDeprecatedEdgeType as isDeprecatedEdgeType, epistemicHelpers_isValidLayerConnection as isValidLayerConnection, epistemicHelpers_normalizeConfidence as normalizeConfidence, epistemicHelpers_shouldContinueTraversal as shouldContinueTraversal, epistemicHelpers_validateEdgeLayers as validateEdgeLayers };
327
- }
328
-
329
- export { EDGE_LAYER_RULES as E, LAYER_TRAVERSAL_RULES as L, type TraversalMode as T, type EpistemicLayer as a, type TraversalOptions as b, canTraverseToLayer as c, createEdgeForInsightQuestionLink as d, epistemicHelpers as e, createEpistemicEdge as f, createEpistemicNodeForArtifact as g, createEpistemicNodeForBelief as h, createEpistemicNodeForInsight as i, createEpistemicNodeForQuestion as j, getDefaultEdgeTypesForMode as k, getDefaultMinLayer as l, getLayerDepth as m, getNodeLayer as n, isValidLayerConnection as o, normalizeConfidence as p, shouldContinueTraversal as s, validateEdgeLayers as v };
@@ -1,167 +0,0 @@
1
- import * as convex_values from 'convex/values';
2
-
3
- /**
4
- * Epistemic Nodes - CRUD operations for the knowledge graph nodes
5
- *
6
- * Every belief, question, evidence, and source in StackOS is an epistemic node.
7
- * This is the canonical identity layer - these records are the source of truth.
8
- *
9
- * @see /docs/architecture/EPISTEMIC_SPINE.md
10
- */
11
- /**
12
- * Epistemic Layer Validator
13
- * L4: Decisions, outcomes - audit targets
14
- * L3: Beliefs, questions, themes - traversal anchors
15
- * L2: Claims, evidence, synthesis - compression boundary
16
- * L1: Atomic facts, excerpts, sources - terminal leaves
17
- */
18
- declare const epistemicLayerValidator: convex_values.VUnion<"L4" | "L3" | "L2" | "L1" | "ontological" | "organizational", [convex_values.VLiteral<"L4", "required">, convex_values.VLiteral<"L3", "required">, convex_values.VLiteral<"L2", "required">, convex_values.VLiteral<"L1", "required">, convex_values.VLiteral<"ontological", "required">, convex_values.VLiteral<"organizational", "required">], "required", never>;
19
- declare const l4NodeTypeValidator: convex_values.VUnion<"decision", [convex_values.VLiteral<"decision", "required">], "required", never>;
20
- declare const l3NodeTypeValidator: convex_values.VUnion<"belief" | "question" | "theme" | "deal", [convex_values.VLiteral<"belief", "required">, convex_values.VLiteral<"question", "required">, convex_values.VLiteral<"theme", "required">, convex_values.VLiteral<"deal", "required">], "required", never>;
21
- declare const l2NodeTypeValidator: convex_values.VUnion<"evidence" | "synthesis" | "claim", [convex_values.VLiteral<"claim", "required">, convex_values.VLiteral<"evidence", "required">, convex_values.VLiteral<"synthesis", "required">], "required", never>;
22
- declare const l1NodeTypeValidator: convex_values.VUnion<"source" | "atomic_fact" | "excerpt", [convex_values.VLiteral<"atomic_fact", "required">, convex_values.VLiteral<"excerpt", "required">, convex_values.VLiteral<"source", "required">], "required", never>;
23
- declare const epistemicNodeTypeValidator: convex_values.VUnion<"belief" | "question" | "evidence" | "answer" | "synthesis" | "theme" | "source" | "decision" | "deal" | "claim" | "atomic_fact" | "excerpt", [convex_values.VLiteral<"decision", "required">, convex_values.VLiteral<"belief", "required">, convex_values.VLiteral<"question", "required">, convex_values.VLiteral<"theme", "required">, convex_values.VLiteral<"deal", "required">, convex_values.VLiteral<"claim", "required">, convex_values.VLiteral<"evidence", "required">, convex_values.VLiteral<"synthesis", "required">, convex_values.VLiteral<"answer", "required">, convex_values.VLiteral<"atomic_fact", "required">, convex_values.VLiteral<"excerpt", "required">, convex_values.VLiteral<"source", "required">], "required", never>;
24
- declare const ontologicalNodeTypeValidator: convex_values.VUnion<"function" | "company" | "person" | "investor" | "value_chain", [convex_values.VLiteral<"company", "required">, convex_values.VLiteral<"person", "required">, convex_values.VLiteral<"investor", "required">, convex_values.VLiteral<"function", "required">, convex_values.VLiteral<"value_chain", "required">], "required", never>;
25
- declare const organizationalNodeTypeValidator: convex_values.VUnion<"topic", [convex_values.VLiteral<"topic", "required">], "required", never>;
26
- declare const nodeTypeValidator: convex_values.VUnion<"function" | "belief" | "question" | "evidence" | "answer" | "synthesis" | "theme" | "source" | "decision" | "deal" | "topic" | "claim" | "atomic_fact" | "excerpt" | "company" | "person" | "investor" | "value_chain", [convex_values.VLiteral<"decision", "required">, convex_values.VLiteral<"belief", "required">, convex_values.VLiteral<"question", "required">, convex_values.VLiteral<"theme", "required">, convex_values.VLiteral<"deal", "required">, convex_values.VLiteral<"claim", "required">, convex_values.VLiteral<"evidence", "required">, convex_values.VLiteral<"synthesis", "required">, convex_values.VLiteral<"answer", "required">, convex_values.VLiteral<"atomic_fact", "required">, convex_values.VLiteral<"excerpt", "required">, convex_values.VLiteral<"source", "required">, convex_values.VLiteral<"company", "required">, convex_values.VLiteral<"person", "required">, convex_values.VLiteral<"investor", "required">, convex_values.VLiteral<"function", "required">, convex_values.VLiteral<"value_chain", "required">, convex_values.VLiteral<"topic", "required">], "required", never>;
27
- declare const sourceTypeValidator: convex_values.VUnion<"system" | "human" | "ai_generated" | "ai_extracted" | "imported", [convex_values.VLiteral<"human", "required">, convex_values.VLiteral<"ai_extracted", "required">, convex_values.VLiteral<"ai_generated", "required">, convex_values.VLiteral<"imported", "required">, convex_values.VLiteral<"system", "required">], "required", never>;
28
- declare const statusValidator: convex_values.VUnion<"active" | "archived" | "deleted" | "superseded", [convex_values.VLiteral<"active", "required">, convex_values.VLiteral<"superseded", "required">, convex_values.VLiteral<"archived", "required">, convex_values.VLiteral<"deleted", "required">], "required", never>;
29
- declare const verificationStatusValidator: convex_values.VUnion<"unverified" | "human_verified" | "ai_verified" | "contradicted" | "outdated", [convex_values.VLiteral<"unverified", "required">, convex_values.VLiteral<"human_verified", "required">, convex_values.VLiteral<"ai_verified", "required">, convex_values.VLiteral<"contradicted", "required">, convex_values.VLiteral<"outdated", "required">], "required", never>;
30
- /**
31
- * Get a single node by ID
32
- */
33
- declare const get: any;
34
- /**
35
- * Get a node by its global UUID
36
- */
37
- declare const getByGlobalId: any;
38
- /**
39
- * Find nodes by content hash (for deduplication)
40
- */
41
- declare const getByContentHash: any;
42
- /**
43
- * Get all nodes of a specific type for a project
44
- */
45
- declare const getByProjectAndType: any;
46
- /**
47
- * Lightweight variant of getByProjectAndType for operational scripts.
48
- * Returns compact node metadata and supports limits to avoid oversized payloads.
49
- */
50
- declare const getByProjectAndTypeLite: any;
51
- /**
52
- * Get all nodes for a project
53
- */
54
- declare const getByProject: any;
55
- declare const getByTopic: any;
56
- /**
57
- * List all active nodes (unscoped — for internal dev tools).
58
- * No project filtering, no access control.
59
- */
60
- declare const listAll: any;
61
- /**
62
- * Search nodes by text content
63
- */
64
- declare const search: any;
65
- /**
66
- * Create a new epistemic node
67
- */
68
- declare const create: any;
69
- /**
70
- * Update an existing node
71
- */
72
- declare const update: any;
73
- /**
74
- * Supersede a node with a new version
75
- * Creates a new node and marks the old one as superseded
76
- *
77
- * Phase 2B: Supersession only allowed within the same layer
78
- * (e.g., a belief can only supersede another belief)
79
- */
80
- declare const supersede: any;
81
- /**
82
- * Archive a node (soft delete)
83
- *
84
- * INVARIANT: Belief nodes cannot be archived per Epistemic Invariant #1.
85
- * For belief nodes, this uses "superseded" status instead.
86
- */
87
- declare const archive: any;
88
- /**
89
- * Permanently delete a node (hard delete)
90
- * INTERNAL ONLY - not exposed to clients
91
- * Use with extreme caution - prefer archive for most cases
92
- * Violates Lucern Invariant #1 (append-only) - only use for data cleanup/migration
93
- */
94
- declare const hardDelete: any;
95
- /**
96
- * Update verification status
97
- */
98
- declare const verify: any;
99
- /**
100
- * Batch create nodes (for migrations or bulk imports)
101
- * Phase 2B: Auto-derives epistemicLayer from nodeType
102
- */
103
- declare const batchCreate: any;
104
- /**
105
- * Internal mutation to create a node with syncStatus tracking
106
- * Used by neo4jEdgeAPI.createNodeWithEdges for atomic node+edge creation
107
- */
108
- declare const createInternal: any;
109
- /**
110
- * Internal query to get a node by ID
111
- * Used by neo4jEdgeAPI for reading node data
112
- */
113
- declare const getInternal: any;
114
- /**
115
- * Update the sync status of a node (for Neo4j edge sync tracking)
116
- * Used by neo4jEdgeAPI to mark nodes as synced or failed
117
- */
118
- declare const updateSyncStatus: any;
119
- /**
120
- * Backfill: move nodes from one topicId to another.
121
- * Used for data migration when nodes are accidentally scoped to Root.
122
- */
123
- declare const backfillTopicId: any;
124
- /**
125
- * Find nodes that need edge sync retry
126
- * Used by background reconciliation job
127
- */
128
- declare const getNodesPendingEdgeSync: any;
129
-
130
- declare const epistemicNodes_archive: typeof archive;
131
- declare const epistemicNodes_backfillTopicId: typeof backfillTopicId;
132
- declare const epistemicNodes_batchCreate: typeof batchCreate;
133
- declare const epistemicNodes_create: typeof create;
134
- declare const epistemicNodes_createInternal: typeof createInternal;
135
- declare const epistemicNodes_epistemicLayerValidator: typeof epistemicLayerValidator;
136
- declare const epistemicNodes_epistemicNodeTypeValidator: typeof epistemicNodeTypeValidator;
137
- declare const epistemicNodes_get: typeof get;
138
- declare const epistemicNodes_getByContentHash: typeof getByContentHash;
139
- declare const epistemicNodes_getByGlobalId: typeof getByGlobalId;
140
- declare const epistemicNodes_getByProject: typeof getByProject;
141
- declare const epistemicNodes_getByProjectAndType: typeof getByProjectAndType;
142
- declare const epistemicNodes_getByProjectAndTypeLite: typeof getByProjectAndTypeLite;
143
- declare const epistemicNodes_getByTopic: typeof getByTopic;
144
- declare const epistemicNodes_getInternal: typeof getInternal;
145
- declare const epistemicNodes_getNodesPendingEdgeSync: typeof getNodesPendingEdgeSync;
146
- declare const epistemicNodes_hardDelete: typeof hardDelete;
147
- declare const epistemicNodes_l1NodeTypeValidator: typeof l1NodeTypeValidator;
148
- declare const epistemicNodes_l2NodeTypeValidator: typeof l2NodeTypeValidator;
149
- declare const epistemicNodes_l3NodeTypeValidator: typeof l3NodeTypeValidator;
150
- declare const epistemicNodes_l4NodeTypeValidator: typeof l4NodeTypeValidator;
151
- declare const epistemicNodes_listAll: typeof listAll;
152
- declare const epistemicNodes_nodeTypeValidator: typeof nodeTypeValidator;
153
- declare const epistemicNodes_ontologicalNodeTypeValidator: typeof ontologicalNodeTypeValidator;
154
- declare const epistemicNodes_organizationalNodeTypeValidator: typeof organizationalNodeTypeValidator;
155
- declare const epistemicNodes_search: typeof search;
156
- declare const epistemicNodes_sourceTypeValidator: typeof sourceTypeValidator;
157
- declare const epistemicNodes_statusValidator: typeof statusValidator;
158
- declare const epistemicNodes_supersede: typeof supersede;
159
- declare const epistemicNodes_update: typeof update;
160
- declare const epistemicNodes_updateSyncStatus: typeof updateSyncStatus;
161
- declare const epistemicNodes_verificationStatusValidator: typeof verificationStatusValidator;
162
- declare const epistemicNodes_verify: typeof verify;
163
- declare namespace epistemicNodes {
164
- export { epistemicNodes_archive as archive, epistemicNodes_backfillTopicId as backfillTopicId, epistemicNodes_batchCreate as batchCreate, epistemicNodes_create as create, epistemicNodes_createInternal as createInternal, epistemicNodes_epistemicLayerValidator as epistemicLayerValidator, epistemicNodes_epistemicNodeTypeValidator as epistemicNodeTypeValidator, epistemicNodes_get as get, epistemicNodes_getByContentHash as getByContentHash, epistemicNodes_getByGlobalId as getByGlobalId, epistemicNodes_getByProject as getByProject, epistemicNodes_getByProjectAndType as getByProjectAndType, epistemicNodes_getByProjectAndTypeLite as getByProjectAndTypeLite, epistemicNodes_getByTopic as getByTopic, epistemicNodes_getInternal as getInternal, epistemicNodes_getNodesPendingEdgeSync as getNodesPendingEdgeSync, epistemicNodes_hardDelete as hardDelete, epistemicNodes_l1NodeTypeValidator as l1NodeTypeValidator, epistemicNodes_l2NodeTypeValidator as l2NodeTypeValidator, epistemicNodes_l3NodeTypeValidator as l3NodeTypeValidator, epistemicNodes_l4NodeTypeValidator as l4NodeTypeValidator, epistemicNodes_listAll as listAll, epistemicNodes_nodeTypeValidator as nodeTypeValidator, epistemicNodes_ontologicalNodeTypeValidator as ontologicalNodeTypeValidator, epistemicNodes_organizationalNodeTypeValidator as organizationalNodeTypeValidator, epistemicNodes_search as search, epistemicNodes_sourceTypeValidator as sourceTypeValidator, epistemicNodes_statusValidator as statusValidator, epistemicNodes_supersede as supersede, epistemicNodes_update as update, epistemicNodes_updateSyncStatus as updateSyncStatus, epistemicNodes_verificationStatusValidator as verificationStatusValidator, epistemicNodes_verify as verify };
165
- }
166
-
167
- export { search as A, sourceTypeValidator as B, statusValidator as C, supersede as D, update as E, updateSyncStatus as F, verificationStatusValidator as G, verify as H, archive as a, backfillTopicId as b, batchCreate as c, create as d, epistemicNodes as e, createInternal as f, epistemicLayerValidator as g, epistemicNodeTypeValidator as h, get as i, getByContentHash as j, getByGlobalId as k, getByProject as l, getByProjectAndType as m, getByProjectAndTypeLite as n, getByTopic as o, getInternal as p, getNodesPendingEdgeSync as q, hardDelete as r, l1NodeTypeValidator as s, l2NodeTypeValidator as t, l3NodeTypeValidator as u, l4NodeTypeValidator as v, listAll as w, nodeTypeValidator as x, ontologicalNodeTypeValidator as y, organizationalNodeTypeValidator as z };