@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.
Files changed (101) hide show
  1. package/README.md +6 -0
  2. package/dist/adminClient.d.ts +15 -9
  3. package/dist/adminClient.js.map +1 -1
  4. package/dist/audience/index.d.ts +38 -0
  5. package/dist/audience/index.js +110 -0
  6. package/dist/audience/index.js.map +1 -0
  7. package/dist/beliefs/index.d.ts +463 -0
  8. package/dist/beliefs/index.js +6694 -0
  9. package/dist/beliefs/index.js.map +1 -0
  10. package/dist/beliefs/lifecycle.d.ts +24 -0
  11. package/dist/beliefs/lifecycle.js +98 -0
  12. package/dist/beliefs/lifecycle.js.map +1 -0
  13. package/dist/beliefsClient.d.ts +91 -12
  14. package/dist/beliefsClient.js +176 -7
  15. package/dist/beliefsClient.js.map +1 -1
  16. package/dist/client-DAuKnDlx.d.ts +2547 -0
  17. package/dist/client.d.ts +31 -2377
  18. package/dist/client.js +783 -245
  19. package/dist/client.js.map +1 -1
  20. package/dist/contracts/api-enums.contract.d.ts +1 -1
  21. package/dist/contracts/api-enums.contract.js +8 -2
  22. package/dist/contracts/api-enums.contract.js.map +1 -1
  23. package/dist/contracts/index.d.ts +4 -2
  24. package/dist/contracts/index.js +118 -4282
  25. package/dist/contracts/index.js.map +1 -1
  26. package/dist/contracts/mcpTools.d.ts +2 -1
  27. package/dist/contracts/mcpTools.js +22 -2981
  28. package/dist/contracts/mcpTools.js.map +1 -1
  29. package/dist/contracts/sdk-tools.contract.d.ts +1 -2
  30. package/dist/contracts/sdk-tools.contract.js +1 -4132
  31. package/dist/contracts/sdk-tools.contract.js.map +1 -1
  32. package/dist/contracts/sdkTools.d.ts +1 -2
  33. package/dist/contracts/sdkTools.js +20 -4127
  34. package/dist/contracts/sdkTools.js.map +1 -1
  35. package/dist/contracts/tool-contracts.d.ts +1 -0
  36. package/dist/contracts/tool-contracts.js +3 -0
  37. package/dist/contracts/tool-contracts.js.map +1 -0
  38. package/dist/contradictions/index.d.ts +156 -0
  39. package/dist/contradictions/index.js +6688 -0
  40. package/dist/contradictions/index.js.map +1 -0
  41. package/dist/customTools.d.ts +1 -1
  42. package/dist/decisions/index.d.ts +66 -0
  43. package/dist/decisions/index.js +6690 -0
  44. package/dist/decisions/index.js.map +1 -0
  45. package/dist/edges/index.d.ts +202 -0
  46. package/dist/edges/index.js +6689 -0
  47. package/dist/edges/index.js.map +1 -0
  48. package/dist/events.js +7 -5
  49. package/dist/events.js.map +1 -1
  50. package/dist/evidence/index.d.ts +293 -0
  51. package/dist/evidence/index.js +6689 -0
  52. package/dist/evidence/index.js.map +1 -0
  53. package/dist/evidenceClient.d.ts +119 -0
  54. package/dist/evidenceClient.js +350 -0
  55. package/dist/evidenceClient.js.map +1 -0
  56. package/dist/gatewayFacades.d.ts +8 -10
  57. package/dist/gatewayFacades.js +54 -1
  58. package/dist/gatewayFacades.js.map +1 -1
  59. package/dist/identityClient.d.ts +3 -3
  60. package/dist/identityClient.js.map +1 -1
  61. package/dist/index.d.ts +7 -6
  62. package/dist/index.js +1092 -3294
  63. package/dist/index.js.map +1 -1
  64. package/dist/lenses/index.d.ts +192 -0
  65. package/dist/lenses/index.js +6688 -0
  66. package/dist/lenses/index.js.map +1 -0
  67. package/dist/nodes/index.d.ts +61 -0
  68. package/dist/nodes/index.js +6690 -0
  69. package/dist/nodes/index.js.map +1 -0
  70. package/dist/ontologies/index.d.ts +179 -0
  71. package/dist/ontologies/index.js +6691 -0
  72. package/dist/ontologies/index.js.map +1 -0
  73. package/dist/opinion.d.ts +11 -0
  74. package/dist/opinion.js +35 -0
  75. package/dist/opinion.js.map +1 -0
  76. package/dist/questions/index.d.ts +295 -0
  77. package/dist/questions/index.js +6691 -0
  78. package/dist/questions/index.js.map +1 -0
  79. package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +22 -0
  80. package/dist/sourcesClient.d.ts +24 -0
  81. package/dist/{mcpParityClient.js → sourcesClient.js} +15 -192
  82. package/dist/sourcesClient.js.map +1 -0
  83. package/dist/tool-contracts-BUiL9P6z.d.ts +22 -0
  84. package/dist/topics/index.d.ts +66 -0
  85. package/dist/topics/index.js +6689 -0
  86. package/dist/topics/index.js.map +1 -0
  87. package/dist/types.d.ts +20 -1
  88. package/dist/worktrees/index.d.ts +208 -0
  89. package/dist/worktrees/index.js +6691 -0
  90. package/dist/worktrees/index.js.map +1 -0
  91. package/package.json +55 -3
  92. package/dist/contracts/mcp-tools.contract.d.ts +0 -1
  93. package/dist/contracts/mcp-tools.contract.js +0 -2986
  94. package/dist/contracts/mcp-tools.contract.js.map +0 -1
  95. package/dist/mcpParityClient.d.ts +0 -74
  96. package/dist/mcpParityClient.js.map +0 -1
  97. package/dist/mcpParitySurface.d.ts +0 -12
  98. package/dist/mcpParitySurface.js +0 -65
  99. package/dist/mcpParitySurface.js.map +0 -1
  100. package/dist/mcpTools-DPZxowDX.d.ts +0 -254
  101. package/dist/sdkTools-CwXJDACb.d.ts +0 -150
@@ -0,0 +1,202 @@
1
+ import { PlatformGatewaySuccess } from '../coreClient.js';
2
+ import { L as LucernClientConfig } from '../client-DAuKnDlx.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 toolContracts from '@lucern/contracts/tool-contracts';
8
+ export { toolContracts 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 '../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 EdgesClientConfig = LucernClientConfig;
40
+ type EdgesClient = ReturnType<typeof createEdgesClient>;
41
+ declare function createEdgesClient(config?: EdgesClientConfig): {
42
+ createEdge: (args: {
43
+ sourceId: string;
44
+ targetId: string;
45
+ edgeType: string;
46
+ topicId?: string;
47
+ confidence?: number;
48
+ weight?: number;
49
+ context?: string;
50
+ reasoning?: string;
51
+ }) => Promise<PlatformGatewaySuccess<{
52
+ [x: string]: unknown;
53
+ }> & {
54
+ [x: string]: unknown;
55
+ }>;
56
+ listEdges: (args: {
57
+ sourceId: string;
58
+ edgeType?: string;
59
+ limit?: number;
60
+ cursor?: string;
61
+ }) => Promise<PlatformGatewaySuccess<{
62
+ [x: string]: unknown;
63
+ } & {
64
+ cursor?: string;
65
+ total?: number;
66
+ }> & {
67
+ [x: string]: unknown;
68
+ } & {
69
+ cursor?: string;
70
+ total?: number;
71
+ }>;
72
+ traverseEdges: (args: {
73
+ startNode: string;
74
+ direction?: string;
75
+ maxDepth?: number;
76
+ topicId?: string;
77
+ }) => Promise<PlatformGatewaySuccess<{
78
+ [x: string]: unknown;
79
+ }> & {
80
+ [x: string]: unknown;
81
+ }>;
82
+ updateEdge: (input: Parameters<(input: {
83
+ edgeId: string;
84
+ weight?: number;
85
+ confidence?: number;
86
+ context?: string;
87
+ derivationType?: string;
88
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
89
+ [x: string]: unknown;
90
+ }>>>[0], idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
91
+ [x: string]: unknown;
92
+ }> & {
93
+ [x: string]: unknown;
94
+ }>;
95
+ removeEdge: (input: Parameters<(input: {
96
+ edgeId: string;
97
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
98
+ [x: string]: unknown;
99
+ }>>>[0], idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
100
+ [x: string]: unknown;
101
+ }> & {
102
+ [x: string]: unknown;
103
+ }>;
104
+ raw: {
105
+ create(args: {
106
+ sourceId: string;
107
+ targetId: string;
108
+ edgeType: string;
109
+ topicId?: string;
110
+ confidence?: number;
111
+ weight?: number;
112
+ context?: string;
113
+ reasoning?: string;
114
+ }): Promise<PlatformGatewaySuccess<{
115
+ [x: string]: unknown;
116
+ }> & {
117
+ [x: string]: unknown;
118
+ }>;
119
+ update(input: Parameters<(input: {
120
+ edgeId: string;
121
+ weight?: number;
122
+ confidence?: number;
123
+ context?: string;
124
+ derivationType?: string;
125
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
126
+ [x: string]: unknown;
127
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
128
+ [x: string]: unknown;
129
+ }> & {
130
+ [x: string]: unknown;
131
+ }>;
132
+ remove(input: Parameters<(input: {
133
+ edgeId: string;
134
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
135
+ [x: string]: unknown;
136
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
137
+ [x: string]: unknown;
138
+ }> & {
139
+ [x: string]: unknown;
140
+ }>;
141
+ removeBetween(input: Parameters<(input: {
142
+ fromNodeId: string;
143
+ toNodeId: string;
144
+ edgeType?: string;
145
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
146
+ [x: string]: unknown;
147
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
148
+ [x: string]: unknown;
149
+ }> & {
150
+ [x: string]: unknown;
151
+ }>;
152
+ batchCreate(input: Parameters<(input: {
153
+ edges: {
154
+ [x: string]: unknown;
155
+ }[];
156
+ skipLayerValidation?: boolean;
157
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
158
+ [x: string]: unknown;
159
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
160
+ [x: string]: unknown;
161
+ }> & {
162
+ [x: string]: unknown;
163
+ }>;
164
+ delete(input: Parameters<(input: {
165
+ edgeIds: string[];
166
+ }, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
167
+ [x: string]: unknown;
168
+ }>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
169
+ [x: string]: unknown;
170
+ }> & {
171
+ [x: string]: unknown;
172
+ }>;
173
+ list(args: {
174
+ sourceId: string;
175
+ edgeType?: string;
176
+ limit?: number;
177
+ cursor?: string;
178
+ }): Promise<PlatformGatewaySuccess<{
179
+ [x: string]: unknown;
180
+ } & {
181
+ cursor?: string;
182
+ total?: number;
183
+ }> & {
184
+ [x: string]: unknown;
185
+ } & {
186
+ cursor?: string;
187
+ total?: number;
188
+ }>;
189
+ traverse(args: {
190
+ startNode: string;
191
+ direction?: string;
192
+ maxDepth?: number;
193
+ topicId?: string;
194
+ }): Promise<PlatformGatewaySuccess<{
195
+ [x: string]: unknown;
196
+ }> & {
197
+ [x: string]: unknown;
198
+ }>;
199
+ };
200
+ };
201
+
202
+ export { type EdgesClient, type EdgesClientConfig, createEdgesClient };