@lucern/sdk 0.2.0-alpha.7 → 0.2.0-alpha.9

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