@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,179 @@
|
|
|
1
|
+
import { ListResult } from '../types.js';
|
|
2
|
+
import { OntologyBindingInput, OntologyDefinitionInput, OntologyDefinitionUpdateInput, OntologyVersionInput } from '../ontologyClient.js';
|
|
3
|
+
import { PlatformGatewaySuccess, GatewayScope } from '../coreClient.js';
|
|
4
|
+
import { L as LucernClientConfig, a as FunctionSurfaceInput } from '../client-DAuKnDlx.js';
|
|
5
|
+
import * as v1 from '@lucern/contracts/ontologies/v1';
|
|
6
|
+
export { v1 as ontologiesContracts };
|
|
7
|
+
import * as ontologyMatching_contract from '@lucern/contracts/ontology-matching.contract';
|
|
8
|
+
export { ontologyMatching_contract as ontologyMatchingContracts };
|
|
9
|
+
import * as toolContracts from '@lucern/contracts/tool-contracts';
|
|
10
|
+
export { toolContracts as toolSchemas };
|
|
11
|
+
import '../contracts/workflow-runtime.contract.js';
|
|
12
|
+
import '../contracts/lens-workflow.contract.js';
|
|
13
|
+
import '../contracts/lens-filter.contract.js';
|
|
14
|
+
import '../audiencesClient.js';
|
|
15
|
+
import '../schemaClient.js';
|
|
16
|
+
import '../harnessClient.js';
|
|
17
|
+
import '../identityClient.js';
|
|
18
|
+
import '../adminClient.js';
|
|
19
|
+
import '../controlObjectOwnership.js';
|
|
20
|
+
import '../beliefsClient.js';
|
|
21
|
+
import '../opinion.js';
|
|
22
|
+
import '../packsClient.js';
|
|
23
|
+
import '../customTools.js';
|
|
24
|
+
import 'zod';
|
|
25
|
+
import '../policyClient.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 OntologiesClientConfig = LucernClientConfig;
|
|
40
|
+
type OntologiesClient = ReturnType<typeof createOntologiesClient>;
|
|
41
|
+
declare function createOntologiesClient(config?: OntologiesClientConfig): {
|
|
42
|
+
createOntology: (input: FunctionSurfaceInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
43
|
+
getOntology: (ontologyId: string) => Promise<PlatformGatewaySuccess<{
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
}> & {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
}>;
|
|
48
|
+
listOntologies: (input?: {
|
|
49
|
+
tenantId?: string;
|
|
50
|
+
tier?: string;
|
|
51
|
+
status?: string;
|
|
52
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
53
|
+
ontologies: any[];
|
|
54
|
+
total: number;
|
|
55
|
+
items: any[];
|
|
56
|
+
definitions: any[];
|
|
57
|
+
}> & {
|
|
58
|
+
ontologies: any[];
|
|
59
|
+
total: number;
|
|
60
|
+
items: any[];
|
|
61
|
+
definitions: any[];
|
|
62
|
+
}>;
|
|
63
|
+
bindOntology: (input: Parameters<(input: OntologyBindingInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
}>>>[0], idempotencyKey?: Parameters<(input: OntologyBindingInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
}>>>[1]) => Promise<PlatformGatewaySuccess<{
|
|
68
|
+
[x: string]: unknown;
|
|
69
|
+
}> & {
|
|
70
|
+
[x: string]: unknown;
|
|
71
|
+
}>;
|
|
72
|
+
matchOntology: (input: Parameters<(input: {
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
}>>>[0], idempotencyKey?: Parameters<(input: {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
}>>>[1]) => Promise<PlatformGatewaySuccess<{
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
}> & {
|
|
83
|
+
[x: string]: unknown;
|
|
84
|
+
}>;
|
|
85
|
+
updateOntology: (input: FunctionSurfaceInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
86
|
+
archiveOntology: (input: FunctionSurfaceInput) => Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
87
|
+
raw: {
|
|
88
|
+
list(input?: {
|
|
89
|
+
tenantId?: string;
|
|
90
|
+
tier?: string;
|
|
91
|
+
status?: string;
|
|
92
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
93
|
+
ontologies: any[];
|
|
94
|
+
total: number;
|
|
95
|
+
items: any[];
|
|
96
|
+
definitions: any[];
|
|
97
|
+
}> & {
|
|
98
|
+
ontologies: any[];
|
|
99
|
+
total: number;
|
|
100
|
+
items: any[];
|
|
101
|
+
definitions: any[];
|
|
102
|
+
}>;
|
|
103
|
+
get(ontologyId: string): Promise<PlatformGatewaySuccess<{
|
|
104
|
+
[x: string]: unknown;
|
|
105
|
+
}> & {
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
}>;
|
|
108
|
+
bind(input: Parameters<(input: OntologyBindingInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
}>>>[0], idempotencyKey?: Parameters<(input: OntologyBindingInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
111
|
+
[x: string]: unknown;
|
|
112
|
+
}>>>[1]): Promise<PlatformGatewaySuccess<{
|
|
113
|
+
[x: string]: unknown;
|
|
114
|
+
}> & {
|
|
115
|
+
[x: string]: unknown;
|
|
116
|
+
}>;
|
|
117
|
+
match(input: Parameters<(input: {
|
|
118
|
+
[x: string]: unknown;
|
|
119
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
120
|
+
[x: string]: unknown;
|
|
121
|
+
}>>>[0], idempotencyKey?: Parameters<(input: {
|
|
122
|
+
[x: string]: unknown;
|
|
123
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
}>>>[1]): Promise<PlatformGatewaySuccess<{
|
|
126
|
+
[x: string]: unknown;
|
|
127
|
+
}> & {
|
|
128
|
+
[x: string]: unknown;
|
|
129
|
+
}>;
|
|
130
|
+
create(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
131
|
+
update(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
132
|
+
archive(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
133
|
+
createVersion(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
134
|
+
publishVersion(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
135
|
+
publishOntologyVersion(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
136
|
+
deprecateVersion(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
137
|
+
deprecateOntologyVersion(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
138
|
+
resolveEffective(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
139
|
+
resolveEffectiveOntology(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
140
|
+
raw: {
|
|
141
|
+
list(filters?: GatewayScope & {
|
|
142
|
+
tenantId?: string;
|
|
143
|
+
tier?: string;
|
|
144
|
+
status?: string;
|
|
145
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
146
|
+
ontologies: any[];
|
|
147
|
+
total: number;
|
|
148
|
+
items: any[];
|
|
149
|
+
definitions: any[];
|
|
150
|
+
}>>;
|
|
151
|
+
get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
152
|
+
bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
153
|
+
listDefinitions(filters?: GatewayScope & {
|
|
154
|
+
tenantId?: string;
|
|
155
|
+
tier?: string;
|
|
156
|
+
status?: string;
|
|
157
|
+
}): Promise<PlatformGatewaySuccess<{
|
|
158
|
+
ontologies: any[];
|
|
159
|
+
total: number;
|
|
160
|
+
items: any[];
|
|
161
|
+
definitions: any[];
|
|
162
|
+
}>>;
|
|
163
|
+
getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
164
|
+
createDefinition(input: OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
165
|
+
updateDefinition(id: string, input: OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
166
|
+
archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
167
|
+
listVersions(ontologyId: string, filters?: GatewayScope & {
|
|
168
|
+
status?: string;
|
|
169
|
+
}): Promise<PlatformGatewaySuccess<ListResult<any, "versions">>>;
|
|
170
|
+
createVersion(ontologyId: string, input: OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
171
|
+
publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
172
|
+
deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
173
|
+
listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
174
|
+
listTopicsByOntology(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export { type OntologiesClient, type OntologiesClientConfig, createOntologiesClient };
|