@lucern/sdk 0.2.0-alpha.9 → 0.3.0-alpha.0
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.
- package/README.md +6 -0
- package/dist/adminClient.d.ts +15 -9
- package/dist/adminClient.js.map +1 -1
- package/dist/audience/index.d.ts +38 -0
- package/dist/audience/index.js +110 -0
- package/dist/audience/index.js.map +1 -0
- package/dist/beliefs/index.d.ts +463 -0
- package/dist/beliefs/index.js +6694 -0
- package/dist/beliefs/index.js.map +1 -0
- package/dist/beliefs/lifecycle.d.ts +24 -0
- package/dist/beliefs/lifecycle.js +98 -0
- package/dist/beliefs/lifecycle.js.map +1 -0
- package/dist/beliefsClient.d.ts +91 -12
- package/dist/beliefsClient.js +176 -7
- package/dist/beliefsClient.js.map +1 -1
- package/dist/client-DAuKnDlx.d.ts +2547 -0
- package/dist/client.d.ts +31 -2377
- package/dist/client.js +783 -245
- package/dist/client.js.map +1 -1
- package/dist/contracts/api-enums.contract.d.ts +1 -1
- package/dist/contracts/api-enums.contract.js +8 -2
- package/dist/contracts/api-enums.contract.js.map +1 -1
- package/dist/contracts/index.d.ts +4 -2
- package/dist/contracts/index.js +118 -4282
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/mcpTools.d.ts +2 -1
- package/dist/contracts/mcpTools.js +22 -2981
- package/dist/contracts/mcpTools.js.map +1 -1
- package/dist/contracts/sdk-tools.contract.d.ts +1 -2
- package/dist/contracts/sdk-tools.contract.js +1 -4132
- package/dist/contracts/sdk-tools.contract.js.map +1 -1
- package/dist/contracts/sdkTools.d.ts +1 -2
- package/dist/contracts/sdkTools.js +20 -4127
- package/dist/contracts/sdkTools.js.map +1 -1
- package/dist/contracts/tool-contracts.d.ts +1 -0
- package/dist/contracts/tool-contracts.js +3 -0
- package/dist/contracts/tool-contracts.js.map +1 -0
- package/dist/contradictions/index.d.ts +156 -0
- package/dist/contradictions/index.js +6688 -0
- package/dist/contradictions/index.js.map +1 -0
- package/dist/customTools.d.ts +1 -1
- package/dist/decisions/index.d.ts +66 -0
- package/dist/decisions/index.js +6690 -0
- package/dist/decisions/index.js.map +1 -0
- package/dist/edges/index.d.ts +202 -0
- package/dist/edges/index.js +6689 -0
- package/dist/edges/index.js.map +1 -0
- package/dist/events.js +7 -5
- package/dist/events.js.map +1 -1
- package/dist/evidence/index.d.ts +293 -0
- package/dist/evidence/index.js +6689 -0
- package/dist/evidence/index.js.map +1 -0
- package/dist/evidenceClient.d.ts +119 -0
- package/dist/evidenceClient.js +350 -0
- package/dist/evidenceClient.js.map +1 -0
- package/dist/gatewayFacades.d.ts +8 -10
- package/dist/gatewayFacades.js +54 -1
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/identityClient.d.ts +3 -3
- package/dist/identityClient.js.map +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1092 -3294
- package/dist/index.js.map +1 -1
- package/dist/lenses/index.d.ts +192 -0
- package/dist/lenses/index.js +6688 -0
- package/dist/lenses/index.js.map +1 -0
- package/dist/nodes/index.d.ts +61 -0
- package/dist/nodes/index.js +6690 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/ontologies/index.d.ts +179 -0
- package/dist/ontologies/index.js +6691 -0
- package/dist/ontologies/index.js.map +1 -0
- package/dist/opinion.d.ts +11 -0
- package/dist/opinion.js +35 -0
- package/dist/opinion.js.map +1 -0
- package/dist/questions/index.d.ts +295 -0
- package/dist/questions/index.js +6691 -0
- package/dist/questions/index.js.map +1 -0
- package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +22 -0
- package/dist/sourcesClient.d.ts +24 -0
- package/dist/{mcpParityClient.js → sourcesClient.js} +15 -192
- package/dist/sourcesClient.js.map +1 -0
- package/dist/tool-contracts-BUiL9P6z.d.ts +22 -0
- package/dist/topics/index.d.ts +66 -0
- package/dist/topics/index.js +6689 -0
- package/dist/topics/index.js.map +1 -0
- package/dist/types.d.ts +20 -1
- package/dist/worktrees/index.d.ts +208 -0
- package/dist/worktrees/index.js +6691 -0
- package/dist/worktrees/index.js.map +1 -0
- package/package.json +55 -3
- package/dist/contracts/mcp-tools.contract.d.ts +0 -1
- package/dist/contracts/mcp-tools.contract.js +0 -2986
- package/dist/contracts/mcp-tools.contract.js.map +0 -1
- package/dist/mcpParityClient.d.ts +0 -74
- package/dist/mcpParityClient.js.map +0 -1
- package/dist/mcpParitySurface.d.ts +0 -12
- package/dist/mcpParitySurface.js +0 -65
- package/dist/mcpParitySurface.js.map +0 -1
- package/dist/mcpTools-DPZxowDX.d.ts +0 -254
- package/dist/sdkTools-CwXJDACb.d.ts +0 -150
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import { ModulateConfidenceInput, OpinionHistoryEntry } from '../beliefsClient.js';
|
|
2
|
+
import { PlatformGatewaySuccess } from '../coreClient.js';
|
|
3
|
+
import { JsonObject } from '../types.js';
|
|
4
|
+
import { L as LucernClientConfig } from '../client-DAuKnDlx.js';
|
|
5
|
+
import * as v1 from '@lucern/contracts/beliefs/v1';
|
|
6
|
+
export { v1 as beliefsContracts };
|
|
7
|
+
import * as toolContracts from '@lucern/contracts/tool-contracts';
|
|
8
|
+
export { toolContracts as toolSchemas };
|
|
9
|
+
import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
|
|
10
|
+
export { sdkMethods_contract as methodSchemas };
|
|
11
|
+
import '../opinion.js';
|
|
12
|
+
import '../contracts/workflow-runtime.contract.js';
|
|
13
|
+
import '../contracts/lens-workflow.contract.js';
|
|
14
|
+
import '../contracts/lens-filter.contract.js';
|
|
15
|
+
import '../audiencesClient.js';
|
|
16
|
+
import '../schemaClient.js';
|
|
17
|
+
import '../harnessClient.js';
|
|
18
|
+
import '../identityClient.js';
|
|
19
|
+
import '../adminClient.js';
|
|
20
|
+
import '../controlObjectOwnership.js';
|
|
21
|
+
import '../packsClient.js';
|
|
22
|
+
import '../customTools.js';
|
|
23
|
+
import 'zod';
|
|
24
|
+
import '../policyClient.js';
|
|
25
|
+
import '../ontologyClient.js';
|
|
26
|
+
import '../contextTypes.js';
|
|
27
|
+
import '../topicsClient.js';
|
|
28
|
+
import '../answersClient.js';
|
|
29
|
+
import '../auditClient.js';
|
|
30
|
+
import '../contextClient.js';
|
|
31
|
+
import '../decisionsClient.js';
|
|
32
|
+
import '../evidenceClient.js';
|
|
33
|
+
import '../graphClient.js';
|
|
34
|
+
import '../learningClient.js';
|
|
35
|
+
import '../reportsClient.js';
|
|
36
|
+
import '../sourcesClient.js';
|
|
37
|
+
import '../workflowClient.js';
|
|
38
|
+
|
|
39
|
+
type BeliefsClientConfig = LucernClientConfig;
|
|
40
|
+
type BeliefsClient = ReturnType<typeof createBeliefsClient>;
|
|
41
|
+
declare function createBeliefsClient(config?: BeliefsClientConfig): {
|
|
42
|
+
createBelief: (input: {
|
|
43
|
+
topicId?: string;
|
|
44
|
+
text?: string;
|
|
45
|
+
canonicalText?: string;
|
|
46
|
+
formulation?: string;
|
|
47
|
+
rationale?: string;
|
|
48
|
+
worktreeId?: string;
|
|
49
|
+
pillar?: string;
|
|
50
|
+
baseRate: number;
|
|
51
|
+
sourceBeliefIds?: string[];
|
|
52
|
+
sourceType?: string;
|
|
53
|
+
beliefType?: string;
|
|
54
|
+
reversibility?: string;
|
|
55
|
+
predictionMeta?: JsonObject;
|
|
56
|
+
metadata?: JsonObject;
|
|
57
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
} & {
|
|
60
|
+
id?: string;
|
|
61
|
+
beliefId?: string;
|
|
62
|
+
nodeId?: string;
|
|
63
|
+
}> & {
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
} & {
|
|
66
|
+
id?: string;
|
|
67
|
+
beliefId?: string;
|
|
68
|
+
nodeId?: string;
|
|
69
|
+
}>;
|
|
70
|
+
getBelief: (nodeId: string) => Promise<PlatformGatewaySuccess<{
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
} & {
|
|
73
|
+
id?: string;
|
|
74
|
+
beliefId?: string;
|
|
75
|
+
nodeId?: string;
|
|
76
|
+
}> & {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
} & {
|
|
79
|
+
id?: string;
|
|
80
|
+
beliefId?: string;
|
|
81
|
+
nodeId?: string;
|
|
82
|
+
}>;
|
|
83
|
+
listBeliefs: (args: {
|
|
84
|
+
topicId?: string;
|
|
85
|
+
worktreeId?: string;
|
|
86
|
+
status?: string;
|
|
87
|
+
minConfidence?: number;
|
|
88
|
+
limit?: number;
|
|
89
|
+
cursor?: string;
|
|
90
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
} & {
|
|
93
|
+
cursor?: string;
|
|
94
|
+
total?: number;
|
|
95
|
+
} & {
|
|
96
|
+
beliefs?: ({
|
|
97
|
+
[x: string]: unknown;
|
|
98
|
+
} & {
|
|
99
|
+
id?: string;
|
|
100
|
+
beliefId?: string;
|
|
101
|
+
nodeId?: string;
|
|
102
|
+
})[];
|
|
103
|
+
}> & {
|
|
104
|
+
[x: string]: unknown;
|
|
105
|
+
} & {
|
|
106
|
+
cursor?: string;
|
|
107
|
+
total?: number;
|
|
108
|
+
} & {
|
|
109
|
+
beliefs?: ({
|
|
110
|
+
[x: string]: unknown;
|
|
111
|
+
} & {
|
|
112
|
+
id?: string;
|
|
113
|
+
beliefId?: string;
|
|
114
|
+
nodeId?: string;
|
|
115
|
+
})[];
|
|
116
|
+
}>;
|
|
117
|
+
searchBeliefs: (args: {
|
|
118
|
+
query: string;
|
|
119
|
+
topicId?: string;
|
|
120
|
+
status?: string;
|
|
121
|
+
minConfidence?: number;
|
|
122
|
+
limit?: number;
|
|
123
|
+
}) => Promise<{
|
|
124
|
+
results: Record<string, unknown>[];
|
|
125
|
+
}>;
|
|
126
|
+
refineBelief: (nodeId: string, textOrInput: string | {
|
|
127
|
+
text: string;
|
|
128
|
+
rationale?: string;
|
|
129
|
+
}, rationale?: string) => Promise<PlatformGatewaySuccess<{
|
|
130
|
+
[x: string]: unknown;
|
|
131
|
+
} & {
|
|
132
|
+
id?: string;
|
|
133
|
+
beliefId?: string;
|
|
134
|
+
nodeId?: string;
|
|
135
|
+
}> & {
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
} & {
|
|
138
|
+
id?: string;
|
|
139
|
+
beliefId?: string;
|
|
140
|
+
nodeId?: string;
|
|
141
|
+
}>;
|
|
142
|
+
forkBelief: (nodeId: string, input: {
|
|
143
|
+
text?: string;
|
|
144
|
+
newFormulation?: string;
|
|
145
|
+
formulation?: string;
|
|
146
|
+
forkReason?: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse" | "manual";
|
|
147
|
+
rationale?: string;
|
|
148
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
149
|
+
[x: string]: unknown;
|
|
150
|
+
} & {
|
|
151
|
+
id?: string;
|
|
152
|
+
beliefId?: string;
|
|
153
|
+
nodeId?: string;
|
|
154
|
+
}> & {
|
|
155
|
+
[x: string]: unknown;
|
|
156
|
+
} & {
|
|
157
|
+
id?: string;
|
|
158
|
+
beliefId?: string;
|
|
159
|
+
nodeId?: string;
|
|
160
|
+
}>;
|
|
161
|
+
modulateBeliefConfidence: (nodeId: string, input: ModulateConfidenceInput) => Promise<PlatformGatewaySuccess<{
|
|
162
|
+
[x: string]: unknown;
|
|
163
|
+
}> & {
|
|
164
|
+
[x: string]: unknown;
|
|
165
|
+
}>;
|
|
166
|
+
archiveBelief: (nodeId: string, input?: string | {
|
|
167
|
+
reason?: string;
|
|
168
|
+
rationale?: string;
|
|
169
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
170
|
+
[x: string]: unknown;
|
|
171
|
+
}> & {
|
|
172
|
+
[x: string]: unknown;
|
|
173
|
+
}>;
|
|
174
|
+
getBeliefLineage: (nodeId: string) => Promise<PlatformGatewaySuccess<{
|
|
175
|
+
[x: string]: unknown;
|
|
176
|
+
} & {
|
|
177
|
+
beliefId?: string;
|
|
178
|
+
lineage?: {
|
|
179
|
+
[x: string]: unknown;
|
|
180
|
+
}[];
|
|
181
|
+
}> & {
|
|
182
|
+
[x: string]: unknown;
|
|
183
|
+
} & {
|
|
184
|
+
beliefId?: string;
|
|
185
|
+
lineage?: {
|
|
186
|
+
[x: string]: unknown;
|
|
187
|
+
}[];
|
|
188
|
+
}>;
|
|
189
|
+
getBeliefConfidenceHistory: (nodeId: string) => Promise<PlatformGatewaySuccess<{
|
|
190
|
+
[x: string]: unknown;
|
|
191
|
+
}> & {
|
|
192
|
+
[x: string]: unknown;
|
|
193
|
+
}>;
|
|
194
|
+
raw: {
|
|
195
|
+
create(input: {
|
|
196
|
+
topicId?: string;
|
|
197
|
+
text?: string;
|
|
198
|
+
canonicalText?: string;
|
|
199
|
+
formulation?: string;
|
|
200
|
+
rationale?: string;
|
|
201
|
+
worktreeId?: string;
|
|
202
|
+
pillar?: string;
|
|
203
|
+
baseRate: number;
|
|
204
|
+
sourceBeliefIds?: string[];
|
|
205
|
+
sourceType?: string;
|
|
206
|
+
beliefType?: string;
|
|
207
|
+
reversibility?: string;
|
|
208
|
+
predictionMeta?: JsonObject;
|
|
209
|
+
metadata?: JsonObject;
|
|
210
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
211
|
+
[x: string]: unknown;
|
|
212
|
+
} & {
|
|
213
|
+
id?: string;
|
|
214
|
+
beliefId?: string;
|
|
215
|
+
nodeId?: string;
|
|
216
|
+
}> & {
|
|
217
|
+
[x: string]: unknown;
|
|
218
|
+
} & {
|
|
219
|
+
id?: string;
|
|
220
|
+
beliefId?: string;
|
|
221
|
+
nodeId?: string;
|
|
222
|
+
}>;
|
|
223
|
+
get(nodeId: string): Promise<PlatformGatewaySuccess<{
|
|
224
|
+
[x: string]: unknown;
|
|
225
|
+
} & {
|
|
226
|
+
id?: string;
|
|
227
|
+
beliefId?: string;
|
|
228
|
+
nodeId?: string;
|
|
229
|
+
}> & {
|
|
230
|
+
[x: string]: unknown;
|
|
231
|
+
} & {
|
|
232
|
+
id?: string;
|
|
233
|
+
beliefId?: string;
|
|
234
|
+
nodeId?: string;
|
|
235
|
+
}>;
|
|
236
|
+
refine(nodeId: string, textOrInput: string | {
|
|
237
|
+
text: string;
|
|
238
|
+
rationale?: string;
|
|
239
|
+
}, rationale?: string): Promise<PlatformGatewaySuccess<{
|
|
240
|
+
[x: string]: unknown;
|
|
241
|
+
} & {
|
|
242
|
+
id?: string;
|
|
243
|
+
beliefId?: string;
|
|
244
|
+
nodeId?: string;
|
|
245
|
+
}> & {
|
|
246
|
+
[x: string]: unknown;
|
|
247
|
+
} & {
|
|
248
|
+
id?: string;
|
|
249
|
+
beliefId?: string;
|
|
250
|
+
nodeId?: string;
|
|
251
|
+
}>;
|
|
252
|
+
updateConfidence(nodeId: string, input: ModulateConfidenceInput): Promise<PlatformGatewaySuccess<{
|
|
253
|
+
[x: string]: unknown;
|
|
254
|
+
}> & {
|
|
255
|
+
[x: string]: unknown;
|
|
256
|
+
}>;
|
|
257
|
+
modulateConfidence(nodeId: string, input: ModulateConfidenceInput): Promise<PlatformGatewaySuccess<{
|
|
258
|
+
[x: string]: unknown;
|
|
259
|
+
}> & {
|
|
260
|
+
[x: string]: unknown;
|
|
261
|
+
}>;
|
|
262
|
+
updateStatus(input: Parameters<(input: {
|
|
263
|
+
id?: string;
|
|
264
|
+
nodeId?: string;
|
|
265
|
+
beliefId?: string;
|
|
266
|
+
status: "active" | "superseded" | "archived";
|
|
267
|
+
reason?: string;
|
|
268
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
269
|
+
[x: string]: unknown;
|
|
270
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
271
|
+
[x: string]: unknown;
|
|
272
|
+
}> & {
|
|
273
|
+
[x: string]: unknown;
|
|
274
|
+
}>;
|
|
275
|
+
updateRationale(input: Parameters<(input: {
|
|
276
|
+
id?: string;
|
|
277
|
+
nodeId?: string;
|
|
278
|
+
beliefId?: string;
|
|
279
|
+
rationale?: string;
|
|
280
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
281
|
+
[x: string]: unknown;
|
|
282
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
283
|
+
[x: string]: unknown;
|
|
284
|
+
}> & {
|
|
285
|
+
[x: string]: unknown;
|
|
286
|
+
}>;
|
|
287
|
+
linkBeliefs(input: Parameters<(input: {
|
|
288
|
+
fromNodeId: string;
|
|
289
|
+
toNodeId: string;
|
|
290
|
+
edgeType: string;
|
|
291
|
+
weight?: number;
|
|
292
|
+
context?: string;
|
|
293
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
294
|
+
[x: string]: unknown;
|
|
295
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
296
|
+
[x: string]: unknown;
|
|
297
|
+
}> & {
|
|
298
|
+
[x: string]: unknown;
|
|
299
|
+
}>;
|
|
300
|
+
unlinkEvidence(input: Parameters<(input: {
|
|
301
|
+
beliefNodeId?: string;
|
|
302
|
+
beliefId?: string;
|
|
303
|
+
insightId?: string;
|
|
304
|
+
evidenceId?: string;
|
|
305
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
308
|
+
[x: string]: unknown;
|
|
309
|
+
}> & {
|
|
310
|
+
[x: string]: unknown;
|
|
311
|
+
}>;
|
|
312
|
+
updateCriticality(input: Parameters<(input: {
|
|
313
|
+
id?: string;
|
|
314
|
+
nodeId?: string;
|
|
315
|
+
beliefId?: string;
|
|
316
|
+
criticality: string;
|
|
317
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
318
|
+
[x: string]: unknown;
|
|
319
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
320
|
+
[x: string]: unknown;
|
|
321
|
+
}> & {
|
|
322
|
+
[x: string]: unknown;
|
|
323
|
+
}>;
|
|
324
|
+
batchUpdateCriticality(input: Parameters<(input: {
|
|
325
|
+
updates: {
|
|
326
|
+
[x: string]: unknown;
|
|
327
|
+
}[];
|
|
328
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
329
|
+
[x: string]: unknown;
|
|
330
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
331
|
+
[x: string]: unknown;
|
|
332
|
+
}> & {
|
|
333
|
+
[x: string]: unknown;
|
|
334
|
+
}>;
|
|
335
|
+
reassignTopic(input: Parameters<(input: {
|
|
336
|
+
beliefNodeIds?: string[];
|
|
337
|
+
beliefIds?: string[];
|
|
338
|
+
targetTopicId: string;
|
|
339
|
+
reason?: string;
|
|
340
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
341
|
+
[x: string]: unknown;
|
|
342
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
343
|
+
[x: string]: unknown;
|
|
344
|
+
}> & {
|
|
345
|
+
[x: string]: unknown;
|
|
346
|
+
}>;
|
|
347
|
+
fork(nodeId: string, input: {
|
|
348
|
+
text?: string;
|
|
349
|
+
newFormulation?: string;
|
|
350
|
+
formulation?: string;
|
|
351
|
+
forkReason?: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse" | "manual";
|
|
352
|
+
rationale?: string;
|
|
353
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
354
|
+
[x: string]: unknown;
|
|
355
|
+
} & {
|
|
356
|
+
id?: string;
|
|
357
|
+
beliefId?: string;
|
|
358
|
+
nodeId?: string;
|
|
359
|
+
}> & {
|
|
360
|
+
[x: string]: unknown;
|
|
361
|
+
} & {
|
|
362
|
+
id?: string;
|
|
363
|
+
beliefId?: string;
|
|
364
|
+
nodeId?: string;
|
|
365
|
+
}>;
|
|
366
|
+
archive(nodeId: string, input?: string | {
|
|
367
|
+
reason?: string;
|
|
368
|
+
rationale?: string;
|
|
369
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
370
|
+
[x: string]: unknown;
|
|
371
|
+
}> & {
|
|
372
|
+
[x: string]: unknown;
|
|
373
|
+
}>;
|
|
374
|
+
list(args: {
|
|
375
|
+
topicId?: string;
|
|
376
|
+
worktreeId?: string;
|
|
377
|
+
status?: string;
|
|
378
|
+
minConfidence?: number;
|
|
379
|
+
limit?: number;
|
|
380
|
+
cursor?: string;
|
|
381
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
382
|
+
[x: string]: unknown;
|
|
383
|
+
} & {
|
|
384
|
+
cursor?: string;
|
|
385
|
+
total?: number;
|
|
386
|
+
} & {
|
|
387
|
+
beliefs?: ({
|
|
388
|
+
[x: string]: unknown;
|
|
389
|
+
} & {
|
|
390
|
+
id?: string;
|
|
391
|
+
beliefId?: string;
|
|
392
|
+
nodeId?: string;
|
|
393
|
+
})[];
|
|
394
|
+
}> & {
|
|
395
|
+
[x: string]: unknown;
|
|
396
|
+
} & {
|
|
397
|
+
cursor?: string;
|
|
398
|
+
total?: number;
|
|
399
|
+
} & {
|
|
400
|
+
beliefs?: ({
|
|
401
|
+
[x: string]: unknown;
|
|
402
|
+
} & {
|
|
403
|
+
id?: string;
|
|
404
|
+
beliefId?: string;
|
|
405
|
+
nodeId?: string;
|
|
406
|
+
})[];
|
|
407
|
+
}>;
|
|
408
|
+
search: (args: {
|
|
409
|
+
query: string;
|
|
410
|
+
topicId?: string;
|
|
411
|
+
status?: string;
|
|
412
|
+
minConfidence?: number;
|
|
413
|
+
limit?: number;
|
|
414
|
+
}) => Promise<{
|
|
415
|
+
results: Record<string, unknown>[];
|
|
416
|
+
}>;
|
|
417
|
+
lineage(nodeId: string): Promise<PlatformGatewaySuccess<{
|
|
418
|
+
[x: string]: unknown;
|
|
419
|
+
} & {
|
|
420
|
+
beliefId?: string;
|
|
421
|
+
lineage?: {
|
|
422
|
+
[x: string]: unknown;
|
|
423
|
+
}[];
|
|
424
|
+
}> & {
|
|
425
|
+
[x: string]: unknown;
|
|
426
|
+
} & {
|
|
427
|
+
beliefId?: string;
|
|
428
|
+
lineage?: {
|
|
429
|
+
[x: string]: unknown;
|
|
430
|
+
}[];
|
|
431
|
+
}>;
|
|
432
|
+
confidenceHistory(nodeId: string): Promise<PlatformGatewaySuccess<{
|
|
433
|
+
[x: string]: unknown;
|
|
434
|
+
}> & {
|
|
435
|
+
[x: string]: unknown;
|
|
436
|
+
}>;
|
|
437
|
+
opinionHistory(nodeId: string): Promise<OpinionHistoryEntry[]>;
|
|
438
|
+
createContract(nodeId: string, input: Parameters<(id: string, input: {
|
|
439
|
+
[x: string]: unknown;
|
|
440
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
441
|
+
[x: string]: unknown;
|
|
442
|
+
}>>>[1]): Promise<PlatformGatewaySuccess<{
|
|
443
|
+
[x: string]: unknown;
|
|
444
|
+
}> & {
|
|
445
|
+
[x: string]: unknown;
|
|
446
|
+
}>;
|
|
447
|
+
bisect(nodeId: string, input: Parameters<(id: string, input: {
|
|
448
|
+
expectedDirection: "overconfident" | "underconfident";
|
|
449
|
+
timeRange?: {
|
|
450
|
+
start: number;
|
|
451
|
+
end: number;
|
|
452
|
+
};
|
|
453
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
454
|
+
[x: string]: unknown;
|
|
455
|
+
}>>>[1]): Promise<PlatformGatewaySuccess<{
|
|
456
|
+
[x: string]: unknown;
|
|
457
|
+
}> & {
|
|
458
|
+
[x: string]: unknown;
|
|
459
|
+
}>;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export { type BeliefsClient, type BeliefsClientConfig, createBeliefsClient };
|