@lucern/sdk 0.2.0-alpha.13 → 0.2.0-alpha.3

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 (317) hide show
  1. package/README.md +112 -621
  2. package/dist/index.js +3447 -6249
  3. package/dist/index.js.map +1 -1
  4. package/dist/{contracts → lucern/contracts/src}/auth-session.contract.d.ts +12 -14
  5. package/dist/{contracts → lucern/contracts/src}/context-pack.contract.d.ts +58 -56
  6. package/dist/{contracts → lucern/contracts/src}/lens-filter.contract.d.ts +8 -10
  7. package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +84 -0
  8. package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +151 -0
  9. package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +161 -0
  10. package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +119 -0
  11. package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +18 -0
  12. package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +78 -0
  13. package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +53 -0
  14. package/dist/lucern/packages/client-core/src/beliefs.d.ts +30 -0
  15. package/dist/lucern/packages/client-core/src/context.d.ts +29 -0
  16. package/dist/lucern/packages/client-core/src/contradictions.d.ts +11 -0
  17. package/dist/lucern/packages/client-core/src/edges.d.ts +11 -0
  18. package/dist/lucern/packages/client-core/src/events.d.ts +9 -0
  19. package/dist/lucern/packages/client-core/src/evidence.d.ts +21 -0
  20. package/dist/lucern/packages/client-core/src/graph.d.ts +17 -0
  21. package/dist/lucern/packages/client-core/src/identity.d.ts +7 -0
  22. package/dist/lucern/packages/client-core/src/ids.d.ts +7 -0
  23. package/dist/lucern/packages/client-core/src/ontologies.d.ts +13 -0
  24. package/dist/lucern/packages/client-core/src/questions.d.ts +39 -0
  25. package/dist/lucern/packages/client-core/src/search.d.ts +7 -0
  26. package/dist/lucern/packages/client-core/src/tasks.d.ts +13 -0
  27. package/dist/lucern/packages/client-core/src/topics.d.ts +17 -0
  28. package/dist/lucern/packages/client-core/src/webhooks.d.ts +35 -0
  29. package/dist/lucern/packages/client-core/src/worktrees.d.ts +17 -0
  30. package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +283 -0
  31. package/dist/lucern/packages/domain-beliefs/src/index.d.ts +1 -0
  32. package/dist/lucern/packages/domain-context/src/compile.d.ts +11 -0
  33. package/dist/{contextPackCompiler.d.ts → lucern/packages/domain-context/src/context-pack-compiler.d.ts} +10 -11
  34. package/dist/lucern/packages/domain-context/src/index.d.ts +4 -0
  35. package/dist/lucern/packages/domain-context/src/ports.d.ts +58 -0
  36. package/dist/lucern/packages/domain-context/src/public-types.d.ts +1 -0
  37. package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +59 -0
  38. package/dist/lucern/packages/domain-edges/src/edges.d.ts +91 -0
  39. package/dist/lucern/packages/domain-edges/src/index.d.ts +2 -0
  40. package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +115 -0
  41. package/dist/lucern/packages/domain-evidence/src/index.d.ts +1 -0
  42. package/dist/lucern/packages/domain-graph/src/graph.d.ts +150 -0
  43. package/dist/lucern/packages/domain-identity/src/index.d.ts +1 -0
  44. package/dist/lucern/packages/domain-identity/src/whoami.d.ts +13 -0
  45. package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +123 -0
  46. package/dist/lucern/packages/domain-questions/src/index.d.ts +1 -0
  47. package/dist/lucern/packages/domain-questions/src/questions.d.ts +147 -0
  48. package/dist/lucern/packages/domain-search/src/search.d.ts +97 -0
  49. package/dist/lucern/packages/domain-tasks/src/index.d.ts +1 -0
  50. package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +102 -0
  51. package/dist/lucern/packages/domain-topics/src/index.d.ts +1 -0
  52. package/dist/lucern/packages/domain-topics/src/topics.d.ts +147 -0
  53. package/dist/lucern/packages/domain-worktrees/src/index.d.ts +1 -0
  54. package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +185 -0
  55. package/dist/lucern/packages/events/src/index.d.ts +4 -0
  56. package/dist/lucern/packages/events/src/matching.d.ts +3 -0
  57. package/dist/lucern/packages/events/src/outbox.d.ts +15 -0
  58. package/dist/lucern/packages/events/src/types.d.ts +151 -0
  59. package/dist/lucern/packages/events/src/webhooks.d.ts +9 -0
  60. package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +15 -0
  61. package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +12 -0
  62. package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +7 -0
  63. package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +7 -0
  64. package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +6 -0
  65. package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +21 -0
  66. package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +10 -0
  67. package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +5 -0
  68. package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +8 -0
  69. package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +39 -0
  70. package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +5 -0
  71. package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +8 -0
  72. package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +10 -0
  73. package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +16 -0
  74. package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +10 -0
  75. package/dist/lucern/packages/sdk-typescript/src/index.d.ts +28 -0
  76. package/dist/packages/sdk/src/adminClient.d.ts +89 -0
  77. package/dist/packages/sdk/src/answersClient.d.ts +5 -0
  78. package/dist/{audiencesClient.d.ts → packages/sdk/src/audiencesClient.d.ts} +18 -30
  79. package/dist/packages/sdk/src/auditClient.d.ts +21 -0
  80. package/dist/packages/sdk/src/beliefsClient.d.ts +52 -0
  81. package/dist/packages/sdk/src/client.d.ts +1558 -0
  82. package/dist/packages/sdk/src/contextClient.d.ts +9 -0
  83. package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +79 -0
  84. package/dist/{controlObjectOwnership.d.ts → packages/sdk/src/controlObjectOwnership.d.ts} +18 -35
  85. package/dist/{coreClient.d.ts → packages/sdk/src/coreClient.d.ts} +14 -38
  86. package/dist/packages/sdk/src/customTools.d.ts +65 -0
  87. package/dist/packages/sdk/src/decisionsClient.d.ts +97 -0
  88. package/dist/packages/sdk/src/graphClient.d.ts +191 -0
  89. package/dist/{harnessClient.d.ts → packages/sdk/src/harnessClient.d.ts} +33 -127
  90. package/dist/packages/sdk/src/identityClient.d.ts +104 -0
  91. package/dist/packages/sdk/src/index.d.ts +28 -0
  92. package/dist/packages/sdk/src/learningClient.d.ts +37 -0
  93. package/dist/{mcpParityClient.d.ts → packages/sdk/src/mcpParityClient.d.ts} +5 -11
  94. package/dist/packages/sdk/src/mcpParitySurface.d.ts +8 -0
  95. package/dist/{ontologyClient.d.ts → packages/sdk/src/ontologyClient.d.ts} +22 -44
  96. package/dist/packages/sdk/src/packsClient.d.ts +101 -0
  97. package/dist/{policyClient.d.ts → packages/sdk/src/policyClient.d.ts} +18 -113
  98. package/dist/packages/sdk/src/reportsClient.d.ts +31 -0
  99. package/dist/packages/sdk/src/schemaClient.d.ts +54 -0
  100. package/dist/packages/sdk/src/sdkSurface.d.ts +55 -0
  101. package/dist/packages/sdk/src/topicsClient.d.ts +45 -0
  102. package/dist/packages/sdk/src/types.d.ts +470 -0
  103. package/dist/packages/sdk/src/version.d.ts +2 -0
  104. package/dist/packages/sdk/src/workflowClient.d.ts +252 -0
  105. package/package.json +37 -92
  106. package/CHANGELOG.md +0 -13
  107. package/dist/adminClient.d.ts +0 -409
  108. package/dist/adminClient.js +0 -755
  109. package/dist/adminClient.js.map +0 -1
  110. package/dist/answersClient.d.ts +0 -23
  111. package/dist/answersClient.js +0 -333
  112. package/dist/answersClient.js.map +0 -1
  113. package/dist/audience/index.d.ts +0 -38
  114. package/dist/audience/index.js +0 -110
  115. package/dist/audience/index.js.map +0 -1
  116. package/dist/audiencesClient.js +0 -472
  117. package/dist/audiencesClient.js.map +0 -1
  118. package/dist/auditClient.d.ts +0 -29
  119. package/dist/auditClient.js +0 -386
  120. package/dist/auditClient.js.map +0 -1
  121. package/dist/beliefs/index.d.ts +0 -465
  122. package/dist/beliefs/index.js +0 -6433
  123. package/dist/beliefs/index.js.map +0 -1
  124. package/dist/beliefs/lifecycle.d.ts +0 -24
  125. package/dist/beliefs/lifecycle.js +0 -98
  126. package/dist/beliefs/lifecycle.js.map +0 -1
  127. package/dist/beliefsClient.d.ts +0 -241
  128. package/dist/beliefsClient.js +0 -646
  129. package/dist/beliefsClient.js.map +0 -1
  130. package/dist/client.d.ts +0 -2398
  131. package/dist/client.js +0 -6411
  132. package/dist/client.js.map +0 -1
  133. package/dist/contextClient.d.ts +0 -27
  134. package/dist/contextClient.js +0 -396
  135. package/dist/contextClient.js.map +0 -1
  136. package/dist/contextFacade.d.ts +0 -2
  137. package/dist/contextFacade.js +0 -73
  138. package/dist/contextFacade.js.map +0 -1
  139. package/dist/contextPackCompiler.js +0 -1091
  140. package/dist/contextPackCompiler.js.map +0 -1
  141. package/dist/contextPackPolicy.d.ts +0 -84
  142. package/dist/contextPackPolicy.js +0 -347
  143. package/dist/contextPackPolicy.js.map +0 -1
  144. package/dist/contextPackSchema.d.ts +0 -7
  145. package/dist/contextPackSchema.js +0 -203
  146. package/dist/contextPackSchema.js.map +0 -1
  147. package/dist/contextTypes.d.ts +0 -135
  148. package/dist/contextTypes.js +0 -3
  149. package/dist/contextTypes.js.map +0 -1
  150. package/dist/contracts/api-enums.contract.d.ts +0 -81
  151. package/dist/contracts/api-enums.contract.js +0 -98
  152. package/dist/contracts/api-enums.contract.js.map +0 -1
  153. package/dist/contracts/auth-session.contract.js +0 -48
  154. package/dist/contracts/auth-session.contract.js.map +0 -1
  155. package/dist/contracts/context-pack.contract.js +0 -98
  156. package/dist/contracts/context-pack.contract.js.map +0 -1
  157. package/dist/contracts/contextPack.d.ts +0 -1
  158. package/dist/contracts/contextPack.js +0 -98
  159. package/dist/contracts/contextPack.js.map +0 -1
  160. package/dist/contracts/index.d.ts +0 -9
  161. package/dist/contracts/index.js +0 -4928
  162. package/dist/contracts/index.js.map +0 -1
  163. package/dist/contracts/lens-filter.contract.js +0 -71
  164. package/dist/contracts/lens-filter.contract.js.map +0 -1
  165. package/dist/contracts/lens-workflow.contract.d.ts +0 -87
  166. package/dist/contracts/lens-workflow.contract.js +0 -123
  167. package/dist/contracts/lens-workflow.contract.js.map +0 -1
  168. package/dist/contracts/lensFilter.d.ts +0 -1
  169. package/dist/contracts/lensFilter.js +0 -71
  170. package/dist/contracts/lensFilter.js.map +0 -1
  171. package/dist/contracts/lensWorkflow.d.ts +0 -2
  172. package/dist/contracts/lensWorkflow.js +0 -123
  173. package/dist/contracts/lensWorkflow.js.map +0 -1
  174. package/dist/contracts/mcp-tools.contract.d.ts +0 -1
  175. package/dist/contracts/mcp-tools.contract.js +0 -3016
  176. package/dist/contracts/mcp-tools.contract.js.map +0 -1
  177. package/dist/contracts/mcpTools.d.ts +0 -1
  178. package/dist/contracts/mcpTools.js +0 -3016
  179. package/dist/contracts/mcpTools.js.map +0 -1
  180. package/dist/contracts/prompt.contract.d.ts +0 -26
  181. package/dist/contracts/prompt.contract.js +0 -12
  182. package/dist/contracts/prompt.contract.js.map +0 -1
  183. package/dist/contracts/prompt.d.ts +0 -1
  184. package/dist/contracts/prompt.js +0 -12
  185. package/dist/contracts/prompt.js.map +0 -1
  186. package/dist/contracts/sdk-tools.contract.d.ts +0 -2
  187. package/dist/contracts/sdk-tools.contract.js +0 -4164
  188. package/dist/contracts/sdk-tools.contract.js.map +0 -1
  189. package/dist/contracts/sdkTools.d.ts +0 -2
  190. package/dist/contracts/sdkTools.js +0 -4164
  191. package/dist/contracts/sdkTools.js.map +0 -1
  192. package/dist/contracts/workflow-runtime.contract.d.ts +0 -163
  193. package/dist/contracts/workflow-runtime.contract.js +0 -245
  194. package/dist/contracts/workflow-runtime.contract.js.map +0 -1
  195. package/dist/contracts/workflowRuntime.d.ts +0 -1
  196. package/dist/contracts/workflowRuntime.js +0 -245
  197. package/dist/contracts/workflowRuntime.js.map +0 -1
  198. package/dist/contradictions/index.d.ts +0 -158
  199. package/dist/contradictions/index.js +0 -6427
  200. package/dist/contradictions/index.js.map +0 -1
  201. package/dist/controlObjectOwnership.js +0 -215
  202. package/dist/controlObjectOwnership.js.map +0 -1
  203. package/dist/coreClient.js +0 -339
  204. package/dist/coreClient.js.map +0 -1
  205. package/dist/customTools.d.ts +0 -88
  206. package/dist/customTools.js +0 -248
  207. package/dist/customTools.js.map +0 -1
  208. package/dist/decisions/index.d.ts +0 -68
  209. package/dist/decisions/index.js +0 -6429
  210. package/dist/decisions/index.js.map +0 -1
  211. package/dist/decisionsClient.d.ts +0 -111
  212. package/dist/decisionsClient.js +0 -522
  213. package/dist/decisionsClient.js.map +0 -1
  214. package/dist/domainContext.d.ts +0 -1
  215. package/dist/domainContext.js +0 -3
  216. package/dist/domainContext.js.map +0 -1
  217. package/dist/edges/index.d.ts +0 -204
  218. package/dist/edges/index.js +0 -6428
  219. package/dist/edges/index.js.map +0 -1
  220. package/dist/events.d.ts +0 -178
  221. package/dist/events.js +0 -251
  222. package/dist/events.js.map +0 -1
  223. package/dist/eventsCore.d.ts +0 -49
  224. package/dist/eventsCore.js +0 -429
  225. package/dist/eventsCore.js.map +0 -1
  226. package/dist/evidence/index.d.ts +0 -295
  227. package/dist/evidence/index.js +0 -6428
  228. package/dist/evidence/index.js.map +0 -1
  229. package/dist/evidenceClient.d.ts +0 -119
  230. package/dist/evidenceClient.js +0 -350
  231. package/dist/evidenceClient.js.map +0 -1
  232. package/dist/facade/context.d.ts +0 -18
  233. package/dist/facade/context.js +0 -73
  234. package/dist/facade/context.js.map +0 -1
  235. package/dist/gatewayFacades.d.ts +0 -589
  236. package/dist/gatewayFacades.js +0 -2006
  237. package/dist/gatewayFacades.js.map +0 -1
  238. package/dist/graphClient.d.ts +0 -271
  239. package/dist/graphClient.js +0 -698
  240. package/dist/graphClient.js.map +0 -1
  241. package/dist/harnessClient.js +0 -607
  242. package/dist/harnessClient.js.map +0 -1
  243. package/dist/identityClient.d.ts +0 -140
  244. package/dist/identityClient.js +0 -497
  245. package/dist/identityClient.js.map +0 -1
  246. package/dist/index.d.ts +0 -45
  247. package/dist/learningClient.d.ts +0 -46
  248. package/dist/learningClient.js +0 -409
  249. package/dist/learningClient.js.map +0 -1
  250. package/dist/lenses/index.d.ts +0 -194
  251. package/dist/lenses/index.js +0 -6427
  252. package/dist/lenses/index.js.map +0 -1
  253. package/dist/mcpParityClient.js +0 -516
  254. package/dist/mcpParityClient.js.map +0 -1
  255. package/dist/mcpParitySurface.d.ts +0 -12
  256. package/dist/mcpParitySurface.js +0 -65
  257. package/dist/mcpParitySurface.js.map +0 -1
  258. package/dist/mcpTools-DPZxowDX.d.ts +0 -254
  259. package/dist/nodes/index.d.ts +0 -62
  260. package/dist/nodes/index.js +0 -6429
  261. package/dist/nodes/index.js.map +0 -1
  262. package/dist/ontologies/index.d.ts +0 -178
  263. package/dist/ontologies/index.js +0 -6430
  264. package/dist/ontologies/index.js.map +0 -1
  265. package/dist/ontologyClient.js +0 -513
  266. package/dist/ontologyClient.js.map +0 -1
  267. package/dist/opinion.d.ts +0 -11
  268. package/dist/opinion.js +0 -35
  269. package/dist/opinion.js.map +0 -1
  270. package/dist/packRuntime.d.ts +0 -2
  271. package/dist/packRuntime.js +0 -3
  272. package/dist/packRuntime.js.map +0 -1
  273. package/dist/packsClient.d.ts +0 -131
  274. package/dist/packsClient.js +0 -525
  275. package/dist/packsClient.js.map +0 -1
  276. package/dist/policyClient.js +0 -625
  277. package/dist/policyClient.js.map +0 -1
  278. package/dist/questions/index.d.ts +0 -297
  279. package/dist/questions/index.js +0 -6430
  280. package/dist/questions/index.js.map +0 -1
  281. package/dist/realtime/index.d.ts +0 -29
  282. package/dist/realtime/index.js +0 -23
  283. package/dist/realtime/index.js.map +0 -1
  284. package/dist/realtime/refs.d.ts +0 -17
  285. package/dist/realtime/refs.js +0 -9
  286. package/dist/realtime/refs.js.map +0 -1
  287. package/dist/reportsClient.d.ts +0 -41
  288. package/dist/reportsClient.js +0 -418
  289. package/dist/reportsClient.js.map +0 -1
  290. package/dist/schemaClient.d.ts +0 -64
  291. package/dist/schemaClient.js +0 -434
  292. package/dist/schemaClient.js.map +0 -1
  293. package/dist/sdkSurface.d.ts +0 -61
  294. package/dist/sdkSurface.js +0 -112
  295. package/dist/sdkSurface.js.map +0 -1
  296. package/dist/sdkTools-CwXJDACb.d.ts +0 -150
  297. package/dist/sourcesClient.d.ts +0 -24
  298. package/dist/sourcesClient.js +0 -339
  299. package/dist/sourcesClient.js.map +0 -1
  300. package/dist/topics/index.d.ts +0 -68
  301. package/dist/topics/index.js +0 -6428
  302. package/dist/topics/index.js.map +0 -1
  303. package/dist/topicsClient.d.ts +0 -84
  304. package/dist/topicsClient.js +0 -492
  305. package/dist/topicsClient.js.map +0 -1
  306. package/dist/types.d.ts +0 -715
  307. package/dist/types.js +0 -3
  308. package/dist/types.js.map +0 -1
  309. package/dist/version.d.ts +0 -4
  310. package/dist/version.js +0 -6
  311. package/dist/version.js.map +0 -1
  312. package/dist/workflowClient.d.ts +0 -316
  313. package/dist/workflowClient.js +0 -830
  314. package/dist/workflowClient.js.map +0 -1
  315. package/dist/worktrees/index.d.ts +0 -210
  316. package/dist/worktrees/index.js +0 -6430
  317. package/dist/worktrees/index.js.map +0 -1
@@ -1,589 +0,0 @@
1
- import { JsonObject, GraphNeighborhoodResponse, GraphAnalyticsMetric, TopicRecord, TopicListResponse, TopicTreeResponse, TopicCoverageResponse } from './types.js';
2
- import { GatewayClientConfig, PlatformGatewaySuccess } from './coreClient.js';
3
- import { ModulateConfidenceInput } from './beliefsClient.js';
4
- import { OntologyBindingInput } from './ontologyClient.js';
5
- import { TopicCreateInput, TopicListInput, TopicUpdateInput, TopicTreeQuery, TopicCoverageQuery, TopicBulkCreateInput } from './topicsClient.js';
6
- import './contracts/workflow-runtime.contract.js';
7
- import './contracts/lens-workflow.contract.js';
8
- import './contracts/lens-filter.contract.js';
9
- import './opinion.js';
10
-
11
- type GatewayRecord = Record<string, unknown>;
12
- type GatewayList = GatewayRecord & {
13
- cursor?: string;
14
- total?: number;
15
- };
16
- type BeliefRecord = GatewayRecord & {
17
- id?: string;
18
- beliefId?: string;
19
- nodeId?: string;
20
- };
21
- type BeliefsListResult = GatewayList & {
22
- beliefs?: BeliefRecord[];
23
- };
24
- type BeliefsLineageResult = GatewayRecord & {
25
- beliefId?: string;
26
- lineage?: GatewayRecord[];
27
- };
28
- type SearchResult = GatewayList & {
29
- beliefs?: GatewayRecord[];
30
- results?: GatewayRecord[];
31
- };
32
- type GraphNeighborhoodInput = {
33
- globalId?: string;
34
- globalIds?: string | string[];
35
- maxDepth?: number;
36
- };
37
- type GraphTraverseInput = {
38
- startNode: string;
39
- direction?: string;
40
- maxDepth?: number;
41
- topicId?: string;
42
- };
43
- type GraphAnalyzeInput = {
44
- topicId?: string;
45
- metric?: GraphAnalyticsMetric;
46
- limit?: number;
47
- };
48
- type GraphBiasInput = {
49
- topicId?: string;
50
- threshold?: number;
51
- limit?: number;
52
- };
53
- type GraphGapsInput = {
54
- topicId?: string;
55
- minConfidence?: number;
56
- };
57
- type GraphFalsifyInput = {
58
- topicId?: string;
59
- beliefId?: string;
60
- beliefIds?: string[];
61
- minConfidence?: number;
62
- };
63
- type EventsListResult = GatewayList & {
64
- events?: GatewayRecord[];
65
- };
66
- type WebhooksListResult = GatewayList & {
67
- webhooks?: GatewayRecord[];
68
- };
69
- type QuestionsListResult = GatewayList & {
70
- questions?: Array<GatewayRecord & {
71
- priority?: string;
72
- }>;
73
- };
74
- type ContradictionsListResult = GatewayList & {
75
- contradictions?: GatewayRecord[];
76
- };
77
- type WorktreesListResult = GatewayList & {
78
- worktrees?: GatewayRecord[];
79
- };
80
- type TaskListResult = GatewayList & {
81
- tasks?: GatewayRecord[];
82
- };
83
- type EvidenceCreateResult = GatewayRecord & {
84
- id?: string;
85
- };
86
- type EvidenceLinkResult = GatewayRecord & {
87
- edgeId?: string;
88
- };
89
- type BeliefCreateInput = {
90
- topicId: string;
91
- text: string;
92
- baseRate: number;
93
- rationale?: string;
94
- worktreeId?: string;
95
- pillar?: string;
96
- sourceBeliefIds?: string[];
97
- sourceType?: string;
98
- beliefType?: string;
99
- reversibility?: string;
100
- predictionMeta?: JsonObject;
101
- metadata?: JsonObject;
102
- };
103
- type BeliefsListQuery = {
104
- topicId?: string;
105
- status?: string;
106
- worktreeId?: string;
107
- minConfidence?: number;
108
- limit?: number;
109
- cursor?: string;
110
- };
111
- type BeliefRefineInput = {
112
- text: string;
113
- rationale?: string;
114
- };
115
- type BeliefForkInput = {
116
- text: string;
117
- forkReason?: string;
118
- rationale?: string;
119
- };
120
- type BeliefConfidenceInput = ModulateConfidenceInput;
121
- type BeliefArchiveInput = {
122
- reason?: string;
123
- rationale?: string;
124
- };
125
- type BeliefContractInput = GatewayRecord;
126
- type BeliefBisectInput = {
127
- expectedDirection: "overconfident" | "underconfident";
128
- timeRange?: {
129
- start: number;
130
- end: number;
131
- };
132
- };
133
- type EdgeCreateInput = {
134
- sourceId: string;
135
- targetId: string;
136
- edgeType: string;
137
- topicId?: string;
138
- confidence?: number;
139
- weight?: number;
140
- context?: string;
141
- reasoning?: string;
142
- };
143
- type EdgeListQuery = {
144
- sourceId?: string;
145
- edgeType?: string;
146
- limit?: number;
147
- cursor?: string;
148
- };
149
- type EdgeTraverseInput = {
150
- startNode: string;
151
- direction?: string;
152
- maxDepth?: number;
153
- topicId?: string;
154
- };
155
- type EvidenceCreateInput = {
156
- topicId: string;
157
- text: string;
158
- source?: string;
159
- targetId?: string;
160
- weight?: number;
161
- metadata?: JsonObject;
162
- title?: string;
163
- content?: string;
164
- contentType?: string;
165
- kind?: string;
166
- };
167
- type EvidenceListQuery = {
168
- topicId?: string;
169
- targetId?: string;
170
- limit?: number;
171
- cursor?: string;
172
- };
173
- type EvidenceSearchInput = {
174
- q: string;
175
- topicId?: string;
176
- targetId?: string;
177
- methodology?: string;
178
- limit?: number;
179
- cursor?: string;
180
- };
181
- type EvidenceLinkInput = {
182
- evidenceId: string;
183
- targetId: string;
184
- targetType?: "belief" | "question";
185
- weight?: number;
186
- rationale?: string;
187
- };
188
- type QuestionsListQuery = {
189
- topicId?: string;
190
- status?: string;
191
- priority?: string;
192
- worktreeId?: string;
193
- limit?: number;
194
- cursor?: string;
195
- };
196
- type QuestionCreateInput = {
197
- topicId: string;
198
- text: string;
199
- priority?: string;
200
- linkedBeliefId?: string;
201
- metadata?: JsonObject;
202
- };
203
- type QuestionAnswerInput = {
204
- text: string;
205
- confidence?: string;
206
- evidenceIds?: string[];
207
- rationale?: string;
208
- };
209
- type QuestionRefineInput = {
210
- text: string;
211
- rationale?: string;
212
- };
213
- type QuestionArchiveInput = {
214
- reason?: string;
215
- rationale?: string;
216
- };
217
- type QuestionStatusInput = {
218
- status: string;
219
- rationale?: string;
220
- };
221
- type SearchQueryInput = {
222
- q?: string;
223
- query?: string;
224
- topicId?: string;
225
- types?: string[];
226
- status?: string;
227
- minConfidence?: number;
228
- limit?: number;
229
- cursor?: string;
230
- };
231
- type TaskCreateInput = {
232
- topicId?: string;
233
- title: string;
234
- description?: string;
235
- taskType?: string;
236
- priority?: string;
237
- linkedBeliefId?: string;
238
- linkedQuestionId?: string;
239
- linkedWorktreeId?: string;
240
- };
241
- type TaskUpdateInput = {
242
- id: string;
243
- title?: string;
244
- description?: string;
245
- priority?: string;
246
- status?: string;
247
- linkedBeliefId?: string;
248
- linkedQuestionId?: string;
249
- linkedWorktreeId?: string;
250
- metadata?: JsonObject;
251
- };
252
- type TaskCompleteInput = {
253
- id: string;
254
- outputSummary: string;
255
- };
256
- type TaskListQuery = {
257
- topicId?: string;
258
- worktreeId?: string;
259
- status?: string;
260
- limit?: number;
261
- };
262
- type WorktreeCreateInput = {
263
- title: string;
264
- topicId?: string;
265
- objective?: string;
266
- hypothesis?: string;
267
- beliefIds?: string[];
268
- autoShape?: boolean;
269
- domainPackId?: string;
270
- executionOrder?: number;
271
- dependsOn?: string[];
272
- blocks?: string[];
273
- gate?: string;
274
- proofArtifacts?: unknown[];
275
- staffingHint?: string;
276
- lastReconciledAt?: number;
277
- autoFixPolicy?: unknown;
278
- };
279
- type WorktreeListQuery = {
280
- topicId?: string;
281
- status?: string;
282
- limit?: number;
283
- };
284
- type WorktreeActivateInput = {
285
- id: string;
286
- };
287
- type WorktreeUpdateInput = {
288
- id: string;
289
- objective?: string;
290
- hypothesis?: string;
291
- rationale?: string;
292
- track?: string;
293
- trackPosition?: number;
294
- executionBand?: number;
295
- executionOrder?: number;
296
- dependsOn?: string[];
297
- blocks?: string[];
298
- gate?: string;
299
- status?: string;
300
- topicId?: string;
301
- additionalTopicIds?: string[];
302
- proofArtifacts?: unknown[];
303
- staffingHint?: string;
304
- lastReconciledAt?: number;
305
- autoFixPolicy?: unknown;
306
- lensId?: string;
307
- };
308
- type WorktreeMergeInput = {
309
- id: string;
310
- summary?: string;
311
- outcomes: Array<{
312
- beliefId: string;
313
- confidence: number;
314
- rationale: string;
315
- }>;
316
- };
317
- type WorktreeTargetsInput = {
318
- id: string;
319
- addBeliefIds?: string[];
320
- addQuestionIds?: string[];
321
- removeBeliefIds?: string[];
322
- removeQuestionIds?: string[];
323
- };
324
- type OntologyListInput = {
325
- tenantId?: string;
326
- tier?: string;
327
- status?: string;
328
- };
329
- type OntologyMatchInput = GatewayRecord;
330
- type WebhookCreateInput = GatewayRecord;
331
- type WebhookUpdateInput = GatewayRecord;
332
- type WebhookListQuery = {
333
- topicId?: string;
334
- };
335
- type WebhookTestInput = {
336
- topicId?: string;
337
- };
338
- type WebhookDeliveriesQuery = {
339
- limit?: number;
340
- };
341
- type EventsListQuery = {
342
- topicId?: string;
343
- after?: string;
344
- types?: string[];
345
- startTime?: number;
346
- endTime?: number;
347
- limit?: number;
348
- };
349
- type ReplayEventsInput = GatewayRecord;
350
- declare function createBeliefsFacade(config?: GatewayClientConfig): {
351
- create(input: BeliefCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<BeliefRecord>>;
352
- get(id: string): Promise<PlatformGatewaySuccess<BeliefRecord>>;
353
- list(query: BeliefsListQuery): Promise<PlatformGatewaySuccess<BeliefsListResult>>;
354
- refine(id: string, input: BeliefRefineInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<BeliefRecord>>;
355
- fork(id: string, input: BeliefForkInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<BeliefRecord>>;
356
- updateConfidence(id: string, input: BeliefConfidenceInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
357
- updateStatus(input: {
358
- id?: string;
359
- nodeId?: string;
360
- beliefId?: string;
361
- status: "active" | "superseded" | "archived";
362
- reason?: string;
363
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
364
- updateRationale(input: {
365
- id?: string;
366
- nodeId?: string;
367
- beliefId?: string;
368
- rationale?: string;
369
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
370
- linkBeliefs(input: {
371
- fromNodeId: string;
372
- toNodeId: string;
373
- edgeType: string;
374
- weight?: number;
375
- context?: string;
376
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
377
- unlinkEvidence(input: {
378
- beliefNodeId?: string;
379
- beliefId?: string;
380
- insightId?: string;
381
- evidenceId?: string;
382
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
383
- updateCriticality(input: {
384
- id?: string;
385
- nodeId?: string;
386
- beliefId?: string;
387
- criticality: string;
388
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
389
- batchUpdateCriticality(input: {
390
- updates: GatewayRecord[];
391
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
392
- reassignTopic(input: {
393
- beliefNodeIds?: string[];
394
- beliefIds?: string[];
395
- targetTopicId: string;
396
- reason?: string;
397
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
398
- archive(id: string, input?: BeliefArchiveInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
399
- lineage(id: string): Promise<PlatformGatewaySuccess<BeliefsLineageResult>>;
400
- confidenceHistory(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
401
- opinionHistory(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
402
- createContract(id: string, input: BeliefContractInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
403
- bisect(id: string, input: BeliefBisectInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
404
- };
405
- declare function createContradictionsFacade(config?: GatewayClientConfig): {
406
- flag(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
407
- list(query: {
408
- topicId?: string;
409
- status?: string;
410
- limit?: number;
411
- cursor?: string;
412
- }): Promise<PlatformGatewaySuccess<ContradictionsListResult>>;
413
- get(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
414
- };
415
- declare function createEdgesFacade(config?: GatewayClientConfig): {
416
- create(input: EdgeCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
417
- list(query: EdgeListQuery): Promise<PlatformGatewaySuccess<GatewayList>>;
418
- traverse(input: EdgeTraverseInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
419
- update(input: {
420
- edgeId: string;
421
- weight?: number;
422
- confidence?: number;
423
- context?: string;
424
- derivationType?: string;
425
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
426
- remove(input: {
427
- edgeId: string;
428
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
429
- removeBetween(input: {
430
- fromNodeId: string;
431
- toNodeId: string;
432
- edgeType?: string;
433
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
434
- batchCreate(input: {
435
- edges: GatewayRecord[];
436
- skipLayerValidation?: boolean;
437
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
438
- delete(input: {
439
- edgeIds: string[];
440
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
441
- };
442
- declare function createEvidenceFacade(config?: GatewayClientConfig): {
443
- create(input: EvidenceCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EvidenceCreateResult>>;
444
- get(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
445
- list(query: EvidenceListQuery): Promise<PlatformGatewaySuccess<GatewayList>>;
446
- link(input: EvidenceLinkInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<EvidenceLinkResult>>;
447
- search(query: EvidenceSearchInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayList>>;
448
- updateStatus(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
449
- update(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
450
- flagIncorrect(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
451
- remove(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
452
- updateVerificationStatus(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
453
- };
454
- declare function createEventsFacade(config?: GatewayClientConfig): {
455
- list(query?: EventsListQuery): Promise<PlatformGatewaySuccess<EventsListResult>>;
456
- replay(input: ReplayEventsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
457
- };
458
- declare function createGraphFacade(config?: GatewayClientConfig): {
459
- neighborhood(input: GraphNeighborhoodInput): Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
460
- traverse(input: GraphTraverseInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
461
- analyze(input?: GraphAnalyzeInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
462
- bias(input?: GraphBiasInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
463
- gaps(input: GraphGapsInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
464
- falsify(input: GraphFalsifyInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
465
- };
466
- declare function createIdentityFacade(config?: GatewayClientConfig): {
467
- whoami(): Promise<PlatformGatewaySuccess<{
468
- principalId: string;
469
- principalType: "user" | "human" | "service" | "group" | "external_viewer" | "agent";
470
- tenantId: string | null;
471
- workspaceId: string | null;
472
- scopes: string[];
473
- roles: string[];
474
- isPlatformAdmin: boolean;
475
- isTenantAdmin: boolean;
476
- isWorkspaceAdmin: boolean;
477
- authMode: string | undefined;
478
- sessionId: string | undefined;
479
- delegatedBy: string | undefined;
480
- expiresAt: number | undefined;
481
- }> & {
482
- principalId: string;
483
- principalType: "user" | "human" | "service" | "group" | "external_viewer" | "agent";
484
- tenantId: string | null;
485
- workspaceId: string | null;
486
- scopes: string[];
487
- roles: string[];
488
- isPlatformAdmin: boolean;
489
- isTenantAdmin: boolean;
490
- isWorkspaceAdmin: boolean;
491
- authMode: string | undefined;
492
- sessionId: string | undefined;
493
- delegatedBy: string | undefined;
494
- expiresAt: number | undefined;
495
- }>;
496
- };
497
- declare function createOntologiesFacade(config?: GatewayClientConfig): {
498
- get(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
499
- list(query?: OntologyListInput): Promise<PlatformGatewaySuccess<{
500
- ontologies: any[];
501
- total: number;
502
- items: any[];
503
- definitions: any[];
504
- }>>;
505
- bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
506
- match(input: OntologyMatchInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
507
- };
508
- declare function createQuestionsFacade(config?: GatewayClientConfig): {
509
- create(input: QuestionCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
510
- get(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
511
- list(query: QuestionsListQuery): Promise<PlatformGatewaySuccess<QuestionsListResult>>;
512
- answer(id: string, input: QuestionAnswerInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
513
- refine(id: string, input: QuestionRefineInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
514
- archive(id: string, input?: QuestionArchiveInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
515
- updateStatus(id: string, input: QuestionStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
516
- batchCreate(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
517
- add(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
518
- updatePriority(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
519
- advanceToConviction(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
520
- updateConviction(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
521
- finalizeConviction(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
522
- update(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
523
- delete(input: GatewayRecord, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
524
- };
525
- declare function createSearchFacade(config?: GatewayClientConfig): {
526
- query(input: SearchQueryInput): Promise<PlatformGatewaySuccess<SearchResult>>;
527
- };
528
- declare function createTasksFacade(config?: GatewayClientConfig): {
529
- create(input: TaskCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
530
- update(input: TaskUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
531
- complete(input: TaskCompleteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
532
- list(query: TaskListQuery): Promise<PlatformGatewaySuccess<TaskListResult>>;
533
- };
534
- declare function createTopicsFacade(config?: GatewayClientConfig): {
535
- create(input: TopicCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
536
- get(id: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
537
- list(query?: TopicListInput): Promise<PlatformGatewaySuccess<TopicListResponse>>;
538
- update(input: TopicUpdateInput & {
539
- id: string;
540
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TopicRecord>>;
541
- tree(input: TopicTreeQuery & {
542
- id: string;
543
- }): Promise<PlatformGatewaySuccess<TopicTreeResponse>>;
544
- coverage(input: TopicCoverageQuery & {
545
- id: string;
546
- }): Promise<PlatformGatewaySuccess<TopicCoverageResponse>>;
547
- remove(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
548
- bulkCreate(input: TopicBulkCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
549
- };
550
- declare function createWebhooksFacade(config?: GatewayClientConfig): {
551
- create(input: WebhookCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
552
- list(query?: WebhookListQuery): Promise<PlatformGatewaySuccess<WebhooksListResult>>;
553
- get(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
554
- update(id: string, input: WebhookUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
555
- delete(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
556
- test(id: string, input?: WebhookTestInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
557
- deliveries(id: string, query?: WebhookDeliveriesQuery): Promise<PlatformGatewaySuccess<GatewayRecord>>;
558
- health(id: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
559
- };
560
- declare function createWorktreesFacade(config?: GatewayClientConfig): {
561
- create(input: WorktreeCreateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
562
- list(query: WorktreeListQuery): Promise<PlatformGatewaySuccess<WorktreesListResult>>;
563
- activate(input: WorktreeActivateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
564
- update(input: WorktreeUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
565
- merge(input: WorktreeMergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
566
- updateTargets(input: WorktreeTargetsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
567
- complete(input: {
568
- worktreeId: string;
569
- keyFindings?: string[];
570
- decisionsReached?: string[];
571
- nextSteps?: string[];
572
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
573
- advancePhase(input: {
574
- worktreeId: string;
575
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
576
- setPhase(input: {
577
- worktreeId: string;
578
- phase: string;
579
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
580
- patchState(input: {
581
- worktreeId: string;
582
- patch: GatewayRecord;
583
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
584
- bulkCreate(input: {
585
- worktrees: unknown[];
586
- }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<GatewayRecord>>;
587
- };
588
-
589
- export { createBeliefsFacade, createContradictionsFacade, createEdgesFacade, createEventsFacade, createEvidenceFacade, createGraphFacade, createIdentityFacade, createOntologiesFacade, createQuestionsFacade, createSearchFacade, createTasksFacade, createTopicsFacade, createWebhooksFacade, createWorktreesFacade };