@lucern/sdk 0.2.0-alpha.1 → 0.2.0-alpha.11

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/CHANGELOG.md +13 -0
  2. package/README.md +691 -61
  3. package/dist/adminClient.d.ts +409 -0
  4. package/dist/adminClient.js +755 -0
  5. package/dist/adminClient.js.map +1 -0
  6. package/dist/answersClient.d.ts +23 -0
  7. package/dist/answersClient.js +333 -0
  8. package/dist/answersClient.js.map +1 -0
  9. package/dist/audience/index.d.ts +38 -0
  10. package/dist/audience/index.js +110 -0
  11. package/dist/audience/index.js.map +1 -0
  12. package/dist/{packages/sdk/src/audiencesClient.d.ts → audiencesClient.d.ts} +30 -18
  13. package/dist/audiencesClient.js +472 -0
  14. package/dist/audiencesClient.js.map +1 -0
  15. package/dist/auditClient.d.ts +29 -0
  16. package/dist/auditClient.js +386 -0
  17. package/dist/auditClient.js.map +1 -0
  18. package/dist/beliefs/index.d.ts +465 -0
  19. package/dist/beliefs/index.js +6433 -0
  20. package/dist/beliefs/index.js.map +1 -0
  21. package/dist/beliefs/lifecycle.d.ts +24 -0
  22. package/dist/beliefs/lifecycle.js +98 -0
  23. package/dist/beliefs/lifecycle.js.map +1 -0
  24. package/dist/beliefsClient.d.ts +241 -0
  25. package/dist/beliefsClient.js +646 -0
  26. package/dist/beliefsClient.js.map +1 -0
  27. package/dist/client.d.ts +2398 -0
  28. package/dist/client.js +6411 -0
  29. package/dist/client.js.map +1 -0
  30. package/dist/contextClient.d.ts +27 -0
  31. package/dist/contextClient.js +396 -0
  32. package/dist/contextClient.js.map +1 -0
  33. package/dist/contextFacade.d.ts +2 -0
  34. package/dist/contextFacade.js +73 -0
  35. package/dist/contextFacade.js.map +1 -0
  36. package/dist/{lucern/packages/domain-context/src/context-pack-compiler.d.ts → contextPackCompiler.d.ts} +11 -10
  37. package/dist/contextPackCompiler.js +1091 -0
  38. package/dist/contextPackCompiler.js.map +1 -0
  39. package/dist/contextPackPolicy.d.ts +84 -0
  40. package/dist/contextPackPolicy.js +347 -0
  41. package/dist/contextPackPolicy.js.map +1 -0
  42. package/dist/contextPackSchema.d.ts +7 -0
  43. package/dist/contextPackSchema.js +203 -0
  44. package/dist/contextPackSchema.js.map +1 -0
  45. package/dist/contextTypes.d.ts +135 -0
  46. package/dist/contextTypes.js +3 -0
  47. package/dist/contextTypes.js.map +1 -0
  48. package/dist/contracts/api-enums.contract.d.ts +81 -0
  49. package/dist/contracts/api-enums.contract.js +98 -0
  50. package/dist/contracts/api-enums.contract.js.map +1 -0
  51. package/dist/{lucern/contracts/src → contracts}/auth-session.contract.d.ts +14 -12
  52. package/dist/contracts/auth-session.contract.js +48 -0
  53. package/dist/contracts/auth-session.contract.js.map +1 -0
  54. package/dist/{lucern/contracts/src → contracts}/context-pack.contract.d.ts +56 -58
  55. package/dist/contracts/context-pack.contract.js +98 -0
  56. package/dist/contracts/context-pack.contract.js.map +1 -0
  57. package/dist/contracts/contextPack.d.ts +1 -0
  58. package/dist/contracts/contextPack.js +98 -0
  59. package/dist/contracts/contextPack.js.map +1 -0
  60. package/dist/contracts/index.d.ts +9 -0
  61. package/dist/contracts/index.js +4928 -0
  62. package/dist/contracts/index.js.map +1 -0
  63. package/dist/{lucern/contracts/src → contracts}/lens-filter.contract.d.ts +10 -8
  64. package/dist/contracts/lens-filter.contract.js +71 -0
  65. package/dist/contracts/lens-filter.contract.js.map +1 -0
  66. package/dist/contracts/lens-workflow.contract.d.ts +87 -0
  67. package/dist/contracts/lens-workflow.contract.js +123 -0
  68. package/dist/contracts/lens-workflow.contract.js.map +1 -0
  69. package/dist/contracts/lensFilter.d.ts +1 -0
  70. package/dist/contracts/lensFilter.js +71 -0
  71. package/dist/contracts/lensFilter.js.map +1 -0
  72. package/dist/contracts/lensWorkflow.d.ts +2 -0
  73. package/dist/contracts/lensWorkflow.js +123 -0
  74. package/dist/contracts/lensWorkflow.js.map +1 -0
  75. package/dist/contracts/mcp-tools.contract.d.ts +1 -0
  76. package/dist/contracts/mcp-tools.contract.js +3016 -0
  77. package/dist/contracts/mcp-tools.contract.js.map +1 -0
  78. package/dist/contracts/mcpTools.d.ts +1 -0
  79. package/dist/contracts/mcpTools.js +3016 -0
  80. package/dist/contracts/mcpTools.js.map +1 -0
  81. package/dist/contracts/prompt.contract.d.ts +26 -0
  82. package/dist/contracts/prompt.contract.js +12 -0
  83. package/dist/contracts/prompt.contract.js.map +1 -0
  84. package/dist/contracts/prompt.d.ts +1 -0
  85. package/dist/contracts/prompt.js +12 -0
  86. package/dist/contracts/prompt.js.map +1 -0
  87. package/dist/contracts/sdk-tools.contract.d.ts +2 -0
  88. package/dist/contracts/sdk-tools.contract.js +4164 -0
  89. package/dist/contracts/sdk-tools.contract.js.map +1 -0
  90. package/dist/contracts/sdkTools.d.ts +2 -0
  91. package/dist/contracts/sdkTools.js +4164 -0
  92. package/dist/contracts/sdkTools.js.map +1 -0
  93. package/dist/contracts/workflow-runtime.contract.d.ts +163 -0
  94. package/dist/contracts/workflow-runtime.contract.js +245 -0
  95. package/dist/contracts/workflow-runtime.contract.js.map +1 -0
  96. package/dist/contracts/workflowRuntime.d.ts +1 -0
  97. package/dist/contracts/workflowRuntime.js +245 -0
  98. package/dist/contracts/workflowRuntime.js.map +1 -0
  99. package/dist/contradictions/index.d.ts +158 -0
  100. package/dist/contradictions/index.js +6427 -0
  101. package/dist/contradictions/index.js.map +1 -0
  102. package/dist/{packages/sdk/src/controlObjectOwnership.d.ts → controlObjectOwnership.d.ts} +35 -18
  103. package/dist/controlObjectOwnership.js +215 -0
  104. package/dist/controlObjectOwnership.js.map +1 -0
  105. package/dist/{packages/sdk/src/coreClient.d.ts → coreClient.d.ts} +38 -14
  106. package/dist/coreClient.js +339 -0
  107. package/dist/coreClient.js.map +1 -0
  108. package/dist/customTools.d.ts +88 -0
  109. package/dist/customTools.js +248 -0
  110. package/dist/customTools.js.map +1 -0
  111. package/dist/decisions/index.d.ts +68 -0
  112. package/dist/decisions/index.js +6429 -0
  113. package/dist/decisions/index.js.map +1 -0
  114. package/dist/decisionsClient.d.ts +111 -0
  115. package/dist/decisionsClient.js +522 -0
  116. package/dist/decisionsClient.js.map +1 -0
  117. package/dist/domainContext.d.ts +1 -0
  118. package/dist/domainContext.js +3 -0
  119. package/dist/domainContext.js.map +1 -0
  120. package/dist/edges/index.d.ts +204 -0
  121. package/dist/edges/index.js +6428 -0
  122. package/dist/edges/index.js.map +1 -0
  123. package/dist/events.d.ts +178 -0
  124. package/dist/events.js +251 -0
  125. package/dist/events.js.map +1 -0
  126. package/dist/eventsCore.d.ts +49 -0
  127. package/dist/eventsCore.js +429 -0
  128. package/dist/eventsCore.js.map +1 -0
  129. package/dist/evidence/index.d.ts +295 -0
  130. package/dist/evidence/index.js +6428 -0
  131. package/dist/evidence/index.js.map +1 -0
  132. package/dist/evidenceClient.d.ts +119 -0
  133. package/dist/evidenceClient.js +350 -0
  134. package/dist/evidenceClient.js.map +1 -0
  135. package/dist/facade/context.d.ts +18 -0
  136. package/dist/facade/context.js +73 -0
  137. package/dist/facade/context.js.map +1 -0
  138. package/dist/gatewayFacades.d.ts +589 -0
  139. package/dist/gatewayFacades.js +2006 -0
  140. package/dist/gatewayFacades.js.map +1 -0
  141. package/dist/graphClient.d.ts +271 -0
  142. package/dist/graphClient.js +698 -0
  143. package/dist/graphClient.js.map +1 -0
  144. package/dist/{packages/sdk/src/harnessClient.d.ts → harnessClient.d.ts} +127 -35
  145. package/dist/harnessClient.js +607 -0
  146. package/dist/harnessClient.js.map +1 -0
  147. package/dist/identityClient.d.ts +140 -0
  148. package/dist/identityClient.js +497 -0
  149. package/dist/identityClient.js.map +1 -0
  150. package/dist/index.d.ts +45 -0
  151. package/dist/index.js +5284 -2568
  152. package/dist/index.js.map +1 -1
  153. package/dist/learningClient.d.ts +46 -0
  154. package/dist/learningClient.js +409 -0
  155. package/dist/learningClient.js.map +1 -0
  156. package/dist/lenses/index.d.ts +194 -0
  157. package/dist/lenses/index.js +6427 -0
  158. package/dist/lenses/index.js.map +1 -0
  159. package/dist/{packages/sdk/src/mcpParityClient.d.ts → mcpParityClient.d.ts} +11 -5
  160. package/dist/mcpParityClient.js +516 -0
  161. package/dist/mcpParityClient.js.map +1 -0
  162. package/dist/mcpParitySurface.d.ts +12 -0
  163. package/dist/mcpParitySurface.js +65 -0
  164. package/dist/mcpParitySurface.js.map +1 -0
  165. package/dist/mcpTools-DPZxowDX.d.ts +254 -0
  166. package/dist/nodes/index.d.ts +62 -0
  167. package/dist/nodes/index.js +6429 -0
  168. package/dist/nodes/index.js.map +1 -0
  169. package/dist/ontologies/index.d.ts +178 -0
  170. package/dist/ontologies/index.js +6430 -0
  171. package/dist/ontologies/index.js.map +1 -0
  172. package/dist/{packages/sdk/src/ontologyClient.d.ts → ontologyClient.d.ts} +44 -22
  173. package/dist/ontologyClient.js +513 -0
  174. package/dist/ontologyClient.js.map +1 -0
  175. package/dist/opinion.d.ts +11 -0
  176. package/dist/opinion.js +35 -0
  177. package/dist/opinion.js.map +1 -0
  178. package/dist/packRuntime.d.ts +2 -0
  179. package/dist/packRuntime.js +3 -0
  180. package/dist/packRuntime.js.map +1 -0
  181. package/dist/packsClient.d.ts +131 -0
  182. package/dist/packsClient.js +525 -0
  183. package/dist/packsClient.js.map +1 -0
  184. package/dist/{packages/sdk/src/policyClient.d.ts → policyClient.d.ts} +113 -18
  185. package/dist/policyClient.js +625 -0
  186. package/dist/policyClient.js.map +1 -0
  187. package/dist/questions/index.d.ts +297 -0
  188. package/dist/questions/index.js +6430 -0
  189. package/dist/questions/index.js.map +1 -0
  190. package/dist/realtime/index.d.ts +29 -0
  191. package/dist/realtime/index.js +23 -0
  192. package/dist/realtime/index.js.map +1 -0
  193. package/dist/realtime/refs.d.ts +17 -0
  194. package/dist/realtime/refs.js +9 -0
  195. package/dist/realtime/refs.js.map +1 -0
  196. package/dist/reportsClient.d.ts +41 -0
  197. package/dist/reportsClient.js +418 -0
  198. package/dist/reportsClient.js.map +1 -0
  199. package/dist/schemaClient.d.ts +64 -0
  200. package/dist/schemaClient.js +434 -0
  201. package/dist/schemaClient.js.map +1 -0
  202. package/dist/sdkSurface.d.ts +61 -0
  203. package/dist/sdkSurface.js +112 -0
  204. package/dist/sdkSurface.js.map +1 -0
  205. package/dist/sdkTools-CwXJDACb.d.ts +150 -0
  206. package/dist/sourcesClient.d.ts +24 -0
  207. package/dist/sourcesClient.js +339 -0
  208. package/dist/sourcesClient.js.map +1 -0
  209. package/dist/topics/index.d.ts +68 -0
  210. package/dist/topics/index.js +6428 -0
  211. package/dist/topics/index.js.map +1 -0
  212. package/dist/topicsClient.d.ts +84 -0
  213. package/dist/topicsClient.js +492 -0
  214. package/dist/topicsClient.js.map +1 -0
  215. package/dist/types.d.ts +715 -0
  216. package/dist/types.js +3 -0
  217. package/dist/types.js.map +1 -0
  218. package/dist/version.d.ts +4 -0
  219. package/dist/version.js +6 -0
  220. package/dist/version.js.map +1 -0
  221. package/dist/workflowClient.d.ts +316 -0
  222. package/dist/workflowClient.js +830 -0
  223. package/dist/workflowClient.js.map +1 -0
  224. package/dist/worktrees/index.d.ts +210 -0
  225. package/dist/worktrees/index.js +6430 -0
  226. package/dist/worktrees/index.js.map +1 -0
  227. package/package.json +92 -37
  228. package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +0 -84
  229. package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +0 -151
  230. package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +0 -161
  231. package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +0 -119
  232. package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +0 -18
  233. package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +0 -78
  234. package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +0 -53
  235. package/dist/lucern/packages/client-core/src/beliefs.d.ts +0 -30
  236. package/dist/lucern/packages/client-core/src/context.d.ts +0 -29
  237. package/dist/lucern/packages/client-core/src/contradictions.d.ts +0 -11
  238. package/dist/lucern/packages/client-core/src/edges.d.ts +0 -11
  239. package/dist/lucern/packages/client-core/src/events.d.ts +0 -9
  240. package/dist/lucern/packages/client-core/src/evidence.d.ts +0 -21
  241. package/dist/lucern/packages/client-core/src/graph.d.ts +0 -17
  242. package/dist/lucern/packages/client-core/src/identity.d.ts +0 -7
  243. package/dist/lucern/packages/client-core/src/ids.d.ts +0 -7
  244. package/dist/lucern/packages/client-core/src/ontologies.d.ts +0 -13
  245. package/dist/lucern/packages/client-core/src/questions.d.ts +0 -39
  246. package/dist/lucern/packages/client-core/src/search.d.ts +0 -7
  247. package/dist/lucern/packages/client-core/src/tasks.d.ts +0 -13
  248. package/dist/lucern/packages/client-core/src/topics.d.ts +0 -17
  249. package/dist/lucern/packages/client-core/src/webhooks.d.ts +0 -35
  250. package/dist/lucern/packages/client-core/src/worktrees.d.ts +0 -17
  251. package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +0 -283
  252. package/dist/lucern/packages/domain-beliefs/src/index.d.ts +0 -1
  253. package/dist/lucern/packages/domain-context/src/compile.d.ts +0 -11
  254. package/dist/lucern/packages/domain-context/src/index.d.ts +0 -4
  255. package/dist/lucern/packages/domain-context/src/ports.d.ts +0 -58
  256. package/dist/lucern/packages/domain-context/src/public-types.d.ts +0 -1
  257. package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +0 -59
  258. package/dist/lucern/packages/domain-edges/src/edges.d.ts +0 -91
  259. package/dist/lucern/packages/domain-edges/src/index.d.ts +0 -2
  260. package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +0 -115
  261. package/dist/lucern/packages/domain-evidence/src/index.d.ts +0 -1
  262. package/dist/lucern/packages/domain-graph/src/graph.d.ts +0 -150
  263. package/dist/lucern/packages/domain-identity/src/index.d.ts +0 -1
  264. package/dist/lucern/packages/domain-identity/src/whoami.d.ts +0 -13
  265. package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +0 -123
  266. package/dist/lucern/packages/domain-questions/src/index.d.ts +0 -1
  267. package/dist/lucern/packages/domain-questions/src/questions.d.ts +0 -147
  268. package/dist/lucern/packages/domain-search/src/search.d.ts +0 -97
  269. package/dist/lucern/packages/domain-tasks/src/index.d.ts +0 -1
  270. package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +0 -102
  271. package/dist/lucern/packages/domain-topics/src/index.d.ts +0 -1
  272. package/dist/lucern/packages/domain-topics/src/topics.d.ts +0 -147
  273. package/dist/lucern/packages/domain-worktrees/src/index.d.ts +0 -1
  274. package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +0 -185
  275. package/dist/lucern/packages/events/src/index.d.ts +0 -4
  276. package/dist/lucern/packages/events/src/matching.d.ts +0 -3
  277. package/dist/lucern/packages/events/src/outbox.d.ts +0 -15
  278. package/dist/lucern/packages/events/src/types.d.ts +0 -151
  279. package/dist/lucern/packages/events/src/webhooks.d.ts +0 -9
  280. package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +0 -15
  281. package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +0 -12
  282. package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +0 -7
  283. package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +0 -7
  284. package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +0 -6
  285. package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +0 -21
  286. package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +0 -10
  287. package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +0 -5
  288. package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +0 -8
  289. package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +0 -39
  290. package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +0 -5
  291. package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +0 -8
  292. package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +0 -10
  293. package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +0 -16
  294. package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +0 -10
  295. package/dist/lucern/packages/sdk-typescript/src/index.d.ts +0 -28
  296. package/dist/packages/sdk/src/adminClient.d.ts +0 -89
  297. package/dist/packages/sdk/src/answersClient.d.ts +0 -5
  298. package/dist/packages/sdk/src/auditClient.d.ts +0 -23
  299. package/dist/packages/sdk/src/beliefsClient.d.ts +0 -54
  300. package/dist/packages/sdk/src/client.d.ts +0 -1610
  301. package/dist/packages/sdk/src/contextClient.d.ts +0 -9
  302. package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +0 -58
  303. package/dist/packages/sdk/src/customTools.d.ts +0 -65
  304. package/dist/packages/sdk/src/decisionsClient.d.ts +0 -110
  305. package/dist/packages/sdk/src/graphClient.d.ts +0 -209
  306. package/dist/packages/sdk/src/identityClient.d.ts +0 -104
  307. package/dist/packages/sdk/src/index.d.ts +0 -28
  308. package/dist/packages/sdk/src/learningClient.d.ts +0 -43
  309. package/dist/packages/sdk/src/mcpParitySurface.d.ts +0 -8
  310. package/dist/packages/sdk/src/packsClient.d.ts +0 -101
  311. package/dist/packages/sdk/src/reportsClient.d.ts +0 -31
  312. package/dist/packages/sdk/src/schemaClient.d.ts +0 -54
  313. package/dist/packages/sdk/src/sdkSurface.d.ts +0 -56
  314. package/dist/packages/sdk/src/topicsClient.d.ts +0 -45
  315. package/dist/packages/sdk/src/types.d.ts +0 -489
  316. package/dist/packages/sdk/src/version.d.ts +0 -2
  317. package/dist/packages/sdk/src/workflowClient.d.ts +0 -274
@@ -0,0 +1,589 @@
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 };