@lucern/sdk 0.2.0-alpha.10 → 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.
- 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 +465 -0
- package/dist/beliefs/index.js +6433 -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 +2 -3
- package/dist/beliefsClient.js +40 -10
- package/dist/beliefsClient.js.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +42 -9
- package/dist/client.js.map +1 -1
- package/dist/contradictions/index.d.ts +158 -0
- package/dist/contradictions/index.js +6427 -0
- package/dist/contradictions/index.js.map +1 -0
- package/dist/decisions/index.d.ts +68 -0
- package/dist/decisions/index.js +6429 -0
- package/dist/decisions/index.js.map +1 -0
- package/dist/edges/index.d.ts +204 -0
- package/dist/edges/index.js +6428 -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 +295 -0
- package/dist/evidence/index.js +6428 -0
- package/dist/evidence/index.js.map +1 -0
- package/dist/gatewayFacades.d.ts +1 -1
- package/dist/gatewayFacades.js +32 -2
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +55 -23
- package/dist/index.js.map +1 -1
- package/dist/lenses/index.d.ts +194 -0
- package/dist/lenses/index.js +6427 -0
- package/dist/lenses/index.js.map +1 -0
- package/dist/nodes/index.d.ts +62 -0
- package/dist/nodes/index.js +6429 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/ontologies/index.d.ts +178 -0
- package/dist/ontologies/index.js +6430 -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 +297 -0
- package/dist/questions/index.js +6430 -0
- package/dist/questions/index.js.map +1 -0
- package/dist/topics/index.d.ts +68 -0
- package/dist/topics/index.js +6428 -0
- package/dist/topics/index.js.map +1 -0
- package/dist/worktrees/index.d.ts +210 -0
- package/dist/worktrees/index.js +6430 -0
- package/dist/worktrees/index.js.map +1 -0
- package/package.json +53 -2
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { PlatformGatewaySuccess } from '../coreClient.js';
|
|
2
|
+
import { LucernClientConfig } from '../client.js';
|
|
3
|
+
import * as v1 from '@lucern/contracts/graph/v1';
|
|
4
|
+
export { v1 as graphContracts };
|
|
5
|
+
import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
|
|
6
|
+
export { sdkMethods_contract as methodSchemas };
|
|
7
|
+
import * as mcpTools_contract from '@lucern/contracts/mcp-tools.contract';
|
|
8
|
+
export { mcpTools_contract as toolSchemas };
|
|
9
|
+
import '../types.js';
|
|
10
|
+
import '../contracts/workflow-runtime.contract.js';
|
|
11
|
+
import '../contracts/lens-workflow.contract.js';
|
|
12
|
+
import '../contracts/lens-filter.contract.js';
|
|
13
|
+
import '../audiencesClient.js';
|
|
14
|
+
import '../schemaClient.js';
|
|
15
|
+
import '../harnessClient.js';
|
|
16
|
+
import '../identityClient.js';
|
|
17
|
+
import '../adminClient.js';
|
|
18
|
+
import '../controlObjectOwnership.js';
|
|
19
|
+
import '../beliefsClient.js';
|
|
20
|
+
import '../opinion.js';
|
|
21
|
+
import '../packsClient.js';
|
|
22
|
+
import '../customTools.js';
|
|
23
|
+
import 'zod';
|
|
24
|
+
import '../mcpTools-DPZxowDX.js';
|
|
25
|
+
import '../policyClient.js';
|
|
26
|
+
import '../ontologyClient.js';
|
|
27
|
+
import '../contextTypes.js';
|
|
28
|
+
import '../topicsClient.js';
|
|
29
|
+
import '../answersClient.js';
|
|
30
|
+
import '../auditClient.js';
|
|
31
|
+
import '../contextClient.js';
|
|
32
|
+
import '../decisionsClient.js';
|
|
33
|
+
import '../evidenceClient.js';
|
|
34
|
+
import '../graphClient.js';
|
|
35
|
+
import '../learningClient.js';
|
|
36
|
+
import '../mcpParityClient.js';
|
|
37
|
+
import '../reportsClient.js';
|
|
38
|
+
import '../sourcesClient.js';
|
|
39
|
+
import '../workflowClient.js';
|
|
40
|
+
|
|
41
|
+
type EdgesClientConfig = LucernClientConfig;
|
|
42
|
+
type EdgesClient = ReturnType<typeof createEdgesClient>;
|
|
43
|
+
declare function createEdgesClient(config?: EdgesClientConfig): {
|
|
44
|
+
createEdge: (args: {
|
|
45
|
+
sourceId: string;
|
|
46
|
+
targetId: string;
|
|
47
|
+
edgeType: string;
|
|
48
|
+
topicId?: string;
|
|
49
|
+
confidence?: number;
|
|
50
|
+
weight?: number;
|
|
51
|
+
context?: string;
|
|
52
|
+
reasoning?: string;
|
|
53
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
}> & {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
}>;
|
|
58
|
+
listEdges: (args: {
|
|
59
|
+
sourceId: string;
|
|
60
|
+
edgeType?: string;
|
|
61
|
+
limit?: number;
|
|
62
|
+
cursor?: string;
|
|
63
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
} & {
|
|
66
|
+
cursor?: string;
|
|
67
|
+
total?: number;
|
|
68
|
+
}> & {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
} & {
|
|
71
|
+
cursor?: string;
|
|
72
|
+
total?: number;
|
|
73
|
+
}>;
|
|
74
|
+
traverseEdges: (args: {
|
|
75
|
+
startNode: string;
|
|
76
|
+
direction?: string;
|
|
77
|
+
maxDepth?: number;
|
|
78
|
+
topicId?: string;
|
|
79
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
}> & {
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
}>;
|
|
84
|
+
updateEdge: (input: Parameters<(input: {
|
|
85
|
+
edgeId: string;
|
|
86
|
+
weight?: number;
|
|
87
|
+
confidence?: number;
|
|
88
|
+
context?: string;
|
|
89
|
+
derivationType?: string;
|
|
90
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
}>>>[0], idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
93
|
+
[x: string]: unknown;
|
|
94
|
+
}> & {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
}>;
|
|
97
|
+
removeEdge: (input: Parameters<(input: {
|
|
98
|
+
edgeId: string;
|
|
99
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
100
|
+
[x: string]: unknown;
|
|
101
|
+
}>>>[0], idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
102
|
+
[x: string]: unknown;
|
|
103
|
+
}> & {
|
|
104
|
+
[x: string]: unknown;
|
|
105
|
+
}>;
|
|
106
|
+
raw: {
|
|
107
|
+
create(args: {
|
|
108
|
+
sourceId: string;
|
|
109
|
+
targetId: string;
|
|
110
|
+
edgeType: string;
|
|
111
|
+
topicId?: string;
|
|
112
|
+
confidence?: number;
|
|
113
|
+
weight?: number;
|
|
114
|
+
context?: string;
|
|
115
|
+
reasoning?: string;
|
|
116
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
117
|
+
[x: string]: unknown;
|
|
118
|
+
}> & {
|
|
119
|
+
[x: string]: unknown;
|
|
120
|
+
}>;
|
|
121
|
+
update(input: Parameters<(input: {
|
|
122
|
+
edgeId: string;
|
|
123
|
+
weight?: number;
|
|
124
|
+
confidence?: number;
|
|
125
|
+
context?: string;
|
|
126
|
+
derivationType?: string;
|
|
127
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
128
|
+
[x: string]: unknown;
|
|
129
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
130
|
+
[x: string]: unknown;
|
|
131
|
+
}> & {
|
|
132
|
+
[x: string]: unknown;
|
|
133
|
+
}>;
|
|
134
|
+
remove(input: Parameters<(input: {
|
|
135
|
+
edgeId: string;
|
|
136
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
137
|
+
[x: string]: unknown;
|
|
138
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
139
|
+
[x: string]: unknown;
|
|
140
|
+
}> & {
|
|
141
|
+
[x: string]: unknown;
|
|
142
|
+
}>;
|
|
143
|
+
removeBetween(input: Parameters<(input: {
|
|
144
|
+
fromNodeId: string;
|
|
145
|
+
toNodeId: string;
|
|
146
|
+
edgeType?: string;
|
|
147
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
150
|
+
[x: string]: unknown;
|
|
151
|
+
}> & {
|
|
152
|
+
[x: string]: unknown;
|
|
153
|
+
}>;
|
|
154
|
+
batchCreate(input: Parameters<(input: {
|
|
155
|
+
edges: {
|
|
156
|
+
[x: string]: unknown;
|
|
157
|
+
}[];
|
|
158
|
+
skipLayerValidation?: boolean;
|
|
159
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
160
|
+
[x: string]: unknown;
|
|
161
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
162
|
+
[x: string]: unknown;
|
|
163
|
+
}> & {
|
|
164
|
+
[x: string]: unknown;
|
|
165
|
+
}>;
|
|
166
|
+
delete(input: Parameters<(input: {
|
|
167
|
+
edgeIds: string[];
|
|
168
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
169
|
+
[x: string]: unknown;
|
|
170
|
+
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
}> & {
|
|
173
|
+
[x: string]: unknown;
|
|
174
|
+
}>;
|
|
175
|
+
list(args: {
|
|
176
|
+
sourceId: string;
|
|
177
|
+
edgeType?: string;
|
|
178
|
+
limit?: number;
|
|
179
|
+
cursor?: string;
|
|
180
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
181
|
+
[x: string]: unknown;
|
|
182
|
+
} & {
|
|
183
|
+
cursor?: string;
|
|
184
|
+
total?: number;
|
|
185
|
+
}> & {
|
|
186
|
+
[x: string]: unknown;
|
|
187
|
+
} & {
|
|
188
|
+
cursor?: string;
|
|
189
|
+
total?: number;
|
|
190
|
+
}>;
|
|
191
|
+
traverse(args: {
|
|
192
|
+
startNode: string;
|
|
193
|
+
direction?: string;
|
|
194
|
+
maxDepth?: number;
|
|
195
|
+
topicId?: string;
|
|
196
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
197
|
+
[x: string]: unknown;
|
|
198
|
+
}> & {
|
|
199
|
+
[x: string]: unknown;
|
|
200
|
+
}>;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export { type EdgesClient, type EdgesClientConfig, createEdgesClient };
|