@lucern/sdk 1.0.29 → 1.0.30

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 (191) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/accessControl.d.ts +31 -31
  3. package/dist/accessControl.js +1 -0
  4. package/dist/adminClient.d.ts +74 -74
  5. package/dist/adminClient.js +38 -30
  6. package/dist/{answersClient.d.ts → answers-client.d.ts} +1 -1
  7. package/dist/{answersClient.js → answers-client.js} +2 -2
  8. package/dist/audience/index.d.ts +12 -12
  9. package/dist/{audiencesClient.d.ts → audiences-client.d.ts} +1 -1
  10. package/dist/audiences-client.js +107 -0
  11. package/dist/{auditClient.d.ts → audit-client.d.ts} +2 -3
  12. package/dist/{auditClient.js → audit-client.js} +8 -7
  13. package/dist/authContext.d.ts +26 -26
  14. package/dist/authDeviceClient.d.ts +11 -11
  15. package/dist/authDeviceClient.js +4 -6
  16. package/dist/beliefs/index.d.ts +56 -28
  17. package/dist/beliefs/index.js +2 -1
  18. package/dist/beliefsClient.d.ts +71 -63
  19. package/dist/beliefsClient.js +90 -67
  20. package/dist/{boundaryClientSurface.d.ts → boundary-client-surface.d.ts} +4 -4
  21. package/dist/{boundaryClientSurface.js → boundary-client-surface.js} +9 -7
  22. package/dist/client-assembly-types.d.ts +219 -0
  23. package/dist/client-assembly-types.js +2 -0
  24. package/dist/{clientConfig.d.ts → client-config.d.ts} +16 -32
  25. package/dist/client-config.js +2 -0
  26. package/dist/{clientEvidenceCompat.d.ts → client-evidence-compat.d.ts} +24 -24
  27. package/dist/{clientEvidenceCompat.js → client-evidence-compat.js} +2 -2
  28. package/dist/client.d.ts +1906 -352
  29. package/dist/client.js +34 -30
  30. package/dist/clientGraphNamespaces.d.ts +35 -25
  31. package/dist/clientGraphNamespaces.js +11 -5
  32. package/dist/clientHelpers.js +8 -5
  33. package/dist/clientKnowledgeNamespaces.d.ts +124 -84
  34. package/dist/clientKnowledgeNamespaces.js +35 -34
  35. package/dist/clientLocalHelpers.d.ts +81 -52
  36. package/dist/clientLocalHelpers.js +193 -43
  37. package/dist/clientPlatformNamespaces.d.ts +1541 -150
  38. package/dist/clientPlatformNamespaces.js +10 -5
  39. package/dist/clientRuntime.d.ts +1 -1
  40. package/dist/clientRuntime.js +1 -1
  41. package/dist/clientWorkflowNamespaces.d.ts +211 -97
  42. package/dist/clientWorkflowNamespaces.js +22 -19
  43. package/dist/contextClient.d.ts +2 -2
  44. package/dist/contextClient.js +79 -50
  45. package/dist/contextFacade.d.ts +1 -1
  46. package/dist/contextFacade.js +2 -0
  47. package/dist/contextPackCompiler.d.ts +52 -52
  48. package/dist/contextPackCompiler.js +192 -122
  49. package/dist/contextPackPolicy.d.ts +22 -22
  50. package/dist/contextPackPolicy.js +21 -9
  51. package/dist/contextPackSchema.d.ts +3 -3
  52. package/dist/contextPackSchema.js +1 -0
  53. package/dist/contextTypes.d.ts +155 -155
  54. package/dist/contracts/api-enums.contract.js +2 -11
  55. package/dist/contracts/auth-session.contract.d.ts +16 -16
  56. package/dist/contracts/auth-session.contract.js +3 -2
  57. package/dist/contracts/context-pack.contract.d.ts +216 -216
  58. package/dist/contracts/contextPack.js +2 -0
  59. package/dist/contracts/index.d.ts +1 -1
  60. package/dist/contracts/index.js +2 -1
  61. package/dist/contracts/lens-filter.contract.d.ts +8 -8
  62. package/dist/contracts/lens-filter.contract.js +10 -10
  63. package/dist/contracts/lens-workflow.contract.d.ts +32 -32
  64. package/dist/contracts/lens-workflow.contract.js +2 -1
  65. package/dist/contracts/lensFilter.js +2 -0
  66. package/dist/contracts/lensWorkflow.js +2 -0
  67. package/dist/contracts/mcpTools.d.ts +19 -19
  68. package/dist/contracts/mcpTools.js +3 -1
  69. package/dist/contracts/prompt.contract.d.ts +12 -12
  70. package/dist/contracts/prompt.js +1 -0
  71. package/dist/contracts/sdk-tools.contract.js +1 -0
  72. package/dist/contracts/sdkTools.js +2 -0
  73. package/dist/contracts/tool-contracts.js +1 -0
  74. package/dist/contracts/workflow-runtime.contract.d.ts +45 -45
  75. package/dist/contracts/workflow-runtime.contract.js +1 -5
  76. package/dist/contracts/workflowRuntime.js +2 -0
  77. package/dist/contradictions/index.d.ts +8 -8
  78. package/dist/contradictions/index.js +1 -0
  79. package/dist/control-plane.d.ts +10 -10
  80. package/dist/control-plane.js +2 -2
  81. package/dist/controlObjectOwnership.d.ts +11 -11
  82. package/dist/controlObjectOwnership.js +1 -0
  83. package/dist/coreClient.d.ts +51 -51
  84. package/dist/coreClient.js +269 -101
  85. package/dist/customTools.d.ts +19 -19
  86. package/dist/customTools.js +4 -2
  87. package/dist/decisions/index.d.ts +18 -18
  88. package/dist/decisions/index.js +1 -0
  89. package/dist/decisionsClient.d.ts +4 -4
  90. package/dist/decisionsClient.js +36 -27
  91. package/dist/edges/index.d.ts +20 -18
  92. package/dist/edges/index.js +1 -0
  93. package/dist/embeddingsClient.d.ts +29 -29
  94. package/dist/embeddingsClient.js +15 -8
  95. package/dist/eventingClient.d.ts +27 -27
  96. package/dist/eventingClient.js +10 -5
  97. package/dist/events.d.ts +83 -83
  98. package/dist/events.js +19 -15
  99. package/dist/eventsCore.d.ts +7 -7
  100. package/dist/eventsCore.js +11 -10
  101. package/dist/evidence/index.d.ts +23 -21
  102. package/dist/evidence/index.js +1 -0
  103. package/dist/evidenceClient.d.ts +23 -23
  104. package/dist/evidenceClient.js +10 -6
  105. package/dist/facade/context.d.ts +9 -9
  106. package/dist/facade/context.js +67 -41
  107. package/dist/functionSurface.js +2 -0
  108. package/dist/functionSurfaceClient.js +2 -0
  109. package/dist/gatewayFacades.d.ts +215 -215
  110. package/dist/gatewayFacades.factories.d.ts +23 -44
  111. package/dist/gatewayFacades.factories.js +63 -62
  112. package/dist/gatewayFacades.js +31 -32
  113. package/dist/graphAnalysisClient.d.ts +60 -60
  114. package/dist/graphAnalysisClient.js +19 -18
  115. package/dist/graphClient.d.ts +34 -34
  116. package/dist/graphClient.js +56 -35
  117. package/dist/graphIntel.js +2 -0
  118. package/dist/graphIntelligence.d.ts +2 -2
  119. package/dist/graphIntelligence.js +1 -1
  120. package/dist/graphRecommendationsClient.d.ts +24 -24
  121. package/dist/graphRecommendationsClient.js +12 -7
  122. package/dist/graphStateClassifierClient.d.ts +13 -13
  123. package/dist/graphStateClassifierClient.js +10 -5
  124. package/dist/harnessClient.d.ts +61 -61
  125. package/dist/harnessClient.js +44 -31
  126. package/dist/identityClient.d.ts +33 -59
  127. package/dist/identityClient.js +126 -98
  128. package/dist/index.d.ts +20 -20
  129. package/dist/index.js +20 -19
  130. package/dist/infisicalRuntime.d.ts +11 -11
  131. package/dist/infisicalRuntime.js +20 -14
  132. package/dist/jobsClient.d.ts +28 -28
  133. package/dist/jobsClient.js +6 -3
  134. package/dist/learningClient.js +13 -8
  135. package/dist/lenses/index.d.ts +124 -28
  136. package/dist/lenses/index.js +1 -0
  137. package/dist/mcpClient.d.ts +1 -1
  138. package/dist/mcpClient.js +3 -3
  139. package/dist/modelRuntimeClient.d.ts +27 -27
  140. package/dist/modelRuntimeClient.js +10 -5
  141. package/dist/nodes/index.d.ts +9 -9
  142. package/dist/nodes/index.js +1 -0
  143. package/dist/ontologies/index.d.ts +68 -22
  144. package/dist/ontologies/index.js +1 -0
  145. package/dist/ontologyClient.js +24 -17
  146. package/dist/ontologyLinksClient.d.ts +35 -35
  147. package/dist/ontologyLinksClient.js +9 -6
  148. package/dist/opinion.d.ts +3 -3
  149. package/dist/opinion.js +12 -5
  150. package/dist/orgGraphSearchClient.d.ts +39 -39
  151. package/dist/orgGraphSearchClient.js +22 -13
  152. package/dist/packsClient.d.ts +1 -1
  153. package/dist/packsClient.js +28 -19
  154. package/dist/policyClient.d.ts +79 -68
  155. package/dist/policyClient.js +18 -12
  156. package/dist/proof-attestation.json +1 -1
  157. package/dist/questions/index.d.ts +38 -27
  158. package/dist/questions/index.js +1 -0
  159. package/dist/realtime/index.d.ts +3 -3
  160. package/dist/realtime/index.js +1 -0
  161. package/dist/realtime/refs.d.ts +2 -2
  162. package/dist/{reportsClient.d.ts → reports-client.d.ts} +2 -2
  163. package/dist/{reportsClient.js → reports-client.js} +19 -13
  164. package/dist/{schemaClient.d.ts → schema-client.d.ts} +2 -3
  165. package/dist/{schemaClient.js → schema-client.js} +14 -11
  166. package/dist/sdkSurface.d.ts +12 -12
  167. package/dist/sdkSurface.js +14 -10
  168. package/dist/secrets.d.ts +1 -1
  169. package/dist/secrets.js +2 -1
  170. package/dist/{sourcesClient.d.ts → sources-client.d.ts} +8 -9
  171. package/dist/{sourcesClient.js → sources-client.js} +4 -5
  172. package/dist/{telemetryClient.d.ts → telemetry-client.d.ts} +14 -14
  173. package/dist/{telemetryClient.js → telemetry-client.js} +6 -4
  174. package/dist/toolRegistryClient.d.ts +46 -46
  175. package/dist/toolRegistryClient.js +22 -11
  176. package/dist/topics/index.d.ts +23 -23
  177. package/dist/topics/index.js +2 -1
  178. package/dist/topicsClient.d.ts +6 -6
  179. package/dist/topicsClient.js +29 -18
  180. package/dist/types.d.ts +356 -355
  181. package/dist/version.d.ts +1 -1
  182. package/dist/version.js +1 -1
  183. package/dist/workflowClient.d.ts +36 -35
  184. package/dist/workflowClient.js +88 -60
  185. package/dist/worktrees/index.d.ts +118 -32
  186. package/dist/worktrees/index.js +2 -1
  187. package/package.json +45 -5
  188. package/dist/audiencesClient.js +0 -115
  189. package/dist/clientAssemblyTypes.d.ts +0 -33
  190. package/dist/clientAssemblyTypes.js +0 -2
  191. package/dist/clientConfig.js +0 -2
@@ -0,0 +1,219 @@
1
+ import type { createAccessControlClient } from "./accessControl";
2
+ import type { createAdminClient } from "./adminClient";
3
+ import type { createAnswersClient } from "./answers-client";
4
+ import type { createAudiencesClient } from "./audiences-client";
5
+ import type { createAuditClient } from "./audit-client";
6
+ import type { createAuthDeviceClient } from "./authDeviceClient";
7
+ import type { createBeliefsClient } from "./beliefsClient";
8
+ import type { CustomToolInput, CustomToolNamespace, GatewayDataEnvelope, LucernClientConfig } from "./client-config";
9
+ import type { EvidenceCompatInput } from "./client-evidence-compat";
10
+ import type { buildBeliefsArchivePayload, buildBeliefsRefinePayload, requireBaseRate, requireText, requireTopicId, requireTopicOrProjectId, resolveCustomToolFullName, sdkQueryString } from "./clientHelpers";
11
+ import type { exposeGatewayData } from "./clientRuntime";
12
+ import type { createContextClient } from "./contextClient";
13
+ import type { createControlPlaneClient } from "./control-plane";
14
+ import type { GatewayHttpMethod, PlatformGatewaySuccess, randomIdempotencyKey } from "./coreClient";
15
+ import type { clearRegisteredCustomTools, listRegisteredCustomTools, registerCustomTool, unregisterCustomTool } from "./customTools";
16
+ import type { createDecisionsClient } from "./decisionsClient";
17
+ import type { createEmbeddingsClient } from "./embeddingsClient";
18
+ import type { createEventingClient } from "./eventingClient";
19
+ import type { createEvidenceClient } from "./evidenceClient";
20
+ import type { createBeliefsFacade, createContradictionsFacade, createEdgesFacade, createEventsFacade, createEvidenceFacade, createGraphFacade, createIdentityFacade, createOntologiesFacade, createQuestionsFacade, createSearchFacade, createTasksFacade, createTopicsFacade, createWebhooksFacade, createWorktreesFacade } from "./gatewayFacades";
21
+ import type { createFunctionSurfaceClient, FunctionSurfaceInput } from "./generated/functionSurface";
22
+ import type { createGraphAnalysisClient } from "./graphAnalysisClient";
23
+ import type { createGraphClient } from "./graphClient";
24
+ import type { createGraphRecommendationsClient } from "./graphRecommendationsClient";
25
+ import type { createGraphStateClassifierClient } from "./graphStateClassifierClient";
26
+ import type { createHarnessClient } from "./harnessClient";
27
+ import type { createIdentityClient } from "./identityClient";
28
+ import type { createJobsClient } from "./jobsClient";
29
+ import type { createLearningClient } from "./learningClient";
30
+ import type { createMcpClient } from "./mcpClient";
31
+ import type { createModelRuntimeClient } from "./modelRuntimeClient";
32
+ import type { createOntologyClient } from "./ontologyClient";
33
+ import type { createOntologyLinksClient } from "./ontologyLinksClient";
34
+ import type { createOrgGraphSearchClient } from "./orgGraphSearchClient";
35
+ import type { createPacksClient } from "./packsClient";
36
+ import type { createPolicyClient } from "./policyClient";
37
+ import type { createReportsClient } from "./reports-client";
38
+ import type { createSchemaClient } from "./schema-client";
39
+ import type { resolveTopicId } from "./sdkSurface";
40
+ import type { createSourcesClient } from "./sources-client";
41
+ import type { createTelemetryClient } from "./telemetry-client";
42
+ import type { createToolRegistryClient } from "./toolRegistryClient";
43
+ import type { createTopicsClient } from "./topicsClient";
44
+ import type { JsonObject } from "./types";
45
+ import type { createWorkflowClient } from "./workflowClient";
46
+ export interface GatewayRequestInput {
47
+ body?: unknown;
48
+ idempotencyKey?: string;
49
+ method?: GatewayHttpMethod;
50
+ path: string;
51
+ requestId?: string;
52
+ timeoutMs?: number;
53
+ }
54
+ export interface GatewayRequester {
55
+ request<T = unknown>(input: GatewayRequestInput): Promise<PlatformGatewaySuccess<T>>;
56
+ }
57
+ type GatewayRecordEnvelope = GatewayDataEnvelope<Record<string, unknown>>;
58
+ type GatewayRecordMethod<Args extends unknown[] = [JsonObject?]> = (...args: Args) => Promise<GatewayRecordEnvelope>;
59
+ export type ClientGraphClient = ReturnType<typeof createGraphClient>;
60
+ export type ClientFunctionSurfaceClient = ReturnType<typeof createFunctionSurfaceClient>;
61
+ export type ClientFunctionSurfaceMethodName = keyof ClientFunctionSurfaceClient;
62
+ export type ClientFunctionSurfaceEnvelopeMethod<Method extends ClientFunctionSurfaceMethodName> = ClientFunctionSurfaceClient[Method] extends (input?: FunctionSurfaceInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<infer Data>> ? (input: FunctionSurfaceInput, idempotencyKey?: string) => Promise<GatewayDataEnvelope<Data>> : never;
63
+ export interface NodeListByTopicAndTypeInput {
64
+ cursor?: string;
65
+ limit?: number;
66
+ nodeType?: string;
67
+ nodeTypes?: string[];
68
+ projectId?: string;
69
+ query?: string;
70
+ sourceText?: string;
71
+ topicId?: string;
72
+ }
73
+ export interface NodeCountByTopicAndTypeInput {
74
+ limit?: number;
75
+ nodeType?: string;
76
+ nodeTypes?: string[];
77
+ projectId?: string;
78
+ query?: string;
79
+ topicId?: string;
80
+ }
81
+ export interface AuditTrailEntry {
82
+ action: string;
83
+ actor: string;
84
+ after: unknown;
85
+ before: unknown;
86
+ rationale: string;
87
+ timestamp: number;
88
+ }
89
+ export interface ClientNodesNamespace {
90
+ archive: ClientFunctionSurfaceEnvelopeMethod<"archiveEpistemicNode">;
91
+ batchCreate: ClientFunctionSurfaceEnvelopeMethod<"batchCreateEpistemicNodes">;
92
+ batchCreateEpistemicNodes: ClientFunctionSurfaceEnvelopeMethod<"batchCreateEpistemicNodes">;
93
+ countByTopicAndType: GatewayRecordMethod<[NodeCountByTopicAndTypeInput]>;
94
+ create: ClientFunctionSurfaceEnvelopeMethod<"createEpistemicNode">;
95
+ createEpistemicNode: ClientFunctionSurfaceEnvelopeMethod<"createEpistemicNode">;
96
+ get(input: string | Parameters<ClientGraphClient["getNode"]>[0]): ReturnType<ClientGraphClient["getNode"]>;
97
+ hardDelete: ClientGraphClient["hardDeleteNode"];
98
+ list: ClientGraphClient["listNodes"];
99
+ listByTopicAndType: GatewayRecordMethod<[NodeListByTopicAndTypeInput]>;
100
+ supersede: ClientFunctionSurfaceEnvelopeMethod<"supersedeEpistemicNode">;
101
+ update: ClientFunctionSurfaceEnvelopeMethod<"updateEpistemicNode">;
102
+ updateEpistemicNode: ClientFunctionSurfaceEnvelopeMethod<"updateEpistemicNode">;
103
+ verify: ClientFunctionSurfaceEnvelopeMethod<"verifyEpistemicNode">;
104
+ }
105
+ export interface LocalHelperSurface {
106
+ addEvidence: GatewayRecordMethod<[EvidenceCompatInput]>;
107
+ archiveOntologyCompat: GatewayRecordMethod<[JsonObject?]>;
108
+ bisectConfidence: GatewayRecordMethod<[JsonObject]>;
109
+ createContractCompat: GatewayRecordMethod<[JsonObject?]>;
110
+ createEvidence: GatewayRecordMethod<[EvidenceCompatInput]>;
111
+ createOntologyCompat: GatewayRecordMethod<[JsonObject?]>;
112
+ createOntologyVersionCompat: GatewayRecordMethod<[JsonObject?]>;
113
+ deprecateOntologyVersionCompat: GatewayRecordMethod<[JsonObject?]>;
114
+ discoverEntityConnections: GatewayRecordMethod<[JsonObject?]>;
115
+ discoverTopics: GatewayRecordMethod<[JsonObject?]>;
116
+ evaluateContractCompat: GatewayRecordMethod<[JsonObject?]>;
117
+ extensionNamespaces: Record<string, CustomToolNamespace>;
118
+ findContradictions: GatewayRecordMethod<[JsonObject]>;
119
+ getAuditTrail: (nodeId: string, limit?: number) => Promise<{
120
+ entries: AuditTrailEntry[];
121
+ }>;
122
+ getConfidenceHistory: GatewayRecordMethod<[string]>;
123
+ getContractStatusCompat: GatewayRecordMethod<[JsonObject?]>;
124
+ getCustomNamespace: (namespace: string) => CustomToolNamespace;
125
+ getOpinionHistory: GatewayRecordMethod<[string]>;
126
+ invokeCustomTool: (fullName: string, input?: CustomToolInput) => Promise<unknown>;
127
+ listBeliefs: GatewayRecordMethod<[JsonObject]>;
128
+ listContractsCompat: GatewayRecordMethod<[JsonObject?]>;
129
+ nodesNamespace: ClientNodesNamespace;
130
+ ontologyLinksNamespace: {
131
+ [methodName: string]: unknown;
132
+ };
133
+ publicationNamespace: {
134
+ [methodName: string]: unknown;
135
+ };
136
+ publishOntologyVersionCompat: GatewayRecordMethod<[JsonObject?]>;
137
+ queryLineage: GatewayRecordMethod<[string, number?]>;
138
+ resolveEffectiveOntologyCompat: GatewayRecordMethod<[JsonObject?]>;
139
+ searchBeliefs: GatewayRecordMethod<[JsonObject]>;
140
+ searchResources: GatewayRecordMethod<[JsonObject]>;
141
+ traceEntityImpactCompat: GatewayRecordMethod<[JsonObject]>;
142
+ triggerBeliefReview: GatewayRecordMethod<[JsonObject?]>;
143
+ updateOntologyCompat: GatewayRecordMethod<[JsonObject?]>;
144
+ }
145
+ export type ClientLocalHelperContext = Pick<ClientNamespaceContext, "auditClient" | "beliefsFacade" | "customNamespaceCache" | "evidenceFacade" | "exposeGatewayData" | "functionSurfaceClient" | "gateway" | "graphClient" | "graphFacade" | "ontologyClient" | "ontologyLinksClient" | "searchFacade">;
146
+ export interface ClientNamespaceContext extends LocalHelperSurface {
147
+ accessControlClient: ReturnType<typeof createAccessControlClient>;
148
+ adminClient: ReturnType<typeof createAdminClient>;
149
+ answersClient: ReturnType<typeof createAnswersClient>;
150
+ audiencesClient: ReturnType<typeof createAudiencesClient>;
151
+ auditClient: ReturnType<typeof createAuditClient>;
152
+ authDeviceClient: ReturnType<typeof createAuthDeviceClient>;
153
+ beliefsClient: ReturnType<typeof createBeliefsClient>;
154
+ beliefsFacade: ReturnType<typeof createBeliefsFacade>;
155
+ buildBeliefsArchivePayload: typeof buildBeliefsArchivePayload;
156
+ buildBeliefsRefinePayload: typeof buildBeliefsRefinePayload;
157
+ clearRegisteredCustomTools: typeof clearRegisteredCustomTools;
158
+ config: LucernClientConfig;
159
+ contextClient: ReturnType<typeof createContextClient>;
160
+ contradictionsFacade: ReturnType<typeof createContradictionsFacade>;
161
+ controlPlaneClient: ReturnType<typeof createControlPlaneClient>;
162
+ customNamespaceCache: Map<string, CustomToolNamespace>;
163
+ decisionsClient: ReturnType<typeof createDecisionsClient>;
164
+ edgesFacade: ReturnType<typeof createEdgesFacade>;
165
+ embeddingsClient: ReturnType<typeof createEmbeddingsClient>;
166
+ ensurePack: () => Promise<void>;
167
+ eventingClient: ReturnType<typeof createEventingClient>;
168
+ eventsFacade: ReturnType<typeof createEventsFacade>;
169
+ evidenceClient: ReturnType<typeof createEvidenceClient>;
170
+ evidenceFacade: ReturnType<typeof createEvidenceFacade>;
171
+ exposeGatewayData: typeof exposeGatewayData;
172
+ functionSurfaceClient: ReturnType<typeof createFunctionSurfaceClient>;
173
+ gateway: GatewayRequester;
174
+ getPackInstalled: () => boolean;
175
+ graphAnalysisClient: ReturnType<typeof createGraphAnalysisClient>;
176
+ graphClient: ReturnType<typeof createGraphClient>;
177
+ graphFacade: ReturnType<typeof createGraphFacade>;
178
+ graphRecommendationsClient: ReturnType<typeof createGraphRecommendationsClient>;
179
+ graphStateClassifierClient: ReturnType<typeof createGraphStateClassifierClient>;
180
+ harnessClient: ReturnType<typeof createHarnessClient>;
181
+ identityClient: ReturnType<typeof createIdentityClient>;
182
+ identityFacade: ReturnType<typeof createIdentityFacade>;
183
+ jobsClient: ReturnType<typeof createJobsClient>;
184
+ learningClient: ReturnType<typeof createLearningClient>;
185
+ listRegisteredCustomTools: typeof listRegisteredCustomTools;
186
+ mcpClient: ReturnType<typeof createMcpClient>;
187
+ modelRuntimeClient: ReturnType<typeof createModelRuntimeClient>;
188
+ ontologiesFacade: ReturnType<typeof createOntologiesFacade>;
189
+ ontologyClient: ReturnType<typeof createOntologyClient>;
190
+ ontologyLinksClient: ReturnType<typeof createOntologyLinksClient>;
191
+ orgGraphSearchClient: ReturnType<typeof createOrgGraphSearchClient>;
192
+ packsClient: ReturnType<typeof createPacksClient>;
193
+ policyClient: ReturnType<typeof createPolicyClient>;
194
+ questionsFacade: ReturnType<typeof createQuestionsFacade>;
195
+ randomIdempotencyKey: typeof randomIdempotencyKey;
196
+ registerCustomTool: typeof registerCustomTool;
197
+ reportsClient: ReturnType<typeof createReportsClient>;
198
+ requireBaseRate: typeof requireBaseRate;
199
+ requireText: typeof requireText;
200
+ requireTopicId: typeof requireTopicId;
201
+ requireTopicOrProjectId: typeof requireTopicOrProjectId;
202
+ resolveCustomToolFullName: typeof resolveCustomToolFullName;
203
+ resolveTopicId: typeof resolveTopicId;
204
+ schemaClient: ReturnType<typeof createSchemaClient>;
205
+ sdkQueryString: typeof sdkQueryString;
206
+ searchFacade: ReturnType<typeof createSearchFacade>;
207
+ sourcesClient: ReturnType<typeof createSourcesClient>;
208
+ tasksFacade: ReturnType<typeof createTasksFacade>;
209
+ telemetryClient: ReturnType<typeof createTelemetryClient>;
210
+ toolRegistryClient: ReturnType<typeof createToolRegistryClient>;
211
+ topicsClient: ReturnType<typeof createTopicsClient>;
212
+ topicsFacade: ReturnType<typeof createTopicsFacade>;
213
+ unregisterCustomTool: typeof unregisterCustomTool;
214
+ webhooksFacade: ReturnType<typeof createWebhooksFacade>;
215
+ workflowClient: ReturnType<typeof createWorkflowClient>;
216
+ worktreesFacade: ReturnType<typeof createWorktreesFacade>;
217
+ }
218
+ export {};
219
+ //# sourceMappingURL=client-assembly-types.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=client-assembly-types.js.map
@@ -1,16 +1,16 @@
1
1
  import type { AdminClientConfig } from "./adminClient";
2
- import type { AnswersClientConfig } from "./answersClient";
3
- import type { AudiencesClientConfig } from "./audiencesClient";
4
- import type { AuditClientConfig } from "./auditClient";
5
- import type { BeliefsClientConfig } from "./beliefsClient";
2
+ import type { AnswersClientConfig } from "./answers-client";
3
+ import type { AudiencesClientConfig } from "./audiences-client";
4
+ import type { AuditClientConfig } from "./audit-client";
5
+ import type { BeliefsClientConfig, CreateBeliefInput } from "./beliefsClient";
6
6
  import type { ContextClientConfig } from "./contextClient";
7
7
  import type { ControlPlaneIdentityClientConfig } from "./control-plane";
8
+ import type { GatewayClientConfig, PlatformGatewaySuccess } from "./coreClient";
8
9
  import type { DecisionsClientConfig } from "./decisionsClient";
9
10
  import type { EmbeddingsClientConfig } from "./embeddingsClient";
10
11
  import type { EventingClientConfig } from "./eventingClient";
11
12
  import type { EvidenceClientConfig } from "./evidenceClient";
12
13
  import type { FunctionSurfaceClientConfig } from "./generated/functionSurface";
13
- import type { GatewayClientConfig, PlatformGatewaySuccess } from "./coreClient";
14
14
  import type { GraphAnalysisClientConfig } from "./graphAnalysisClient";
15
15
  import type { GraphClientConfig } from "./graphClient";
16
16
  import type { GraphRecommendationsClientConfig } from "./graphRecommendationsClient";
@@ -25,44 +25,28 @@ import type { OntologyLinksClientConfig } from "./ontologyLinksClient";
25
25
  import type { OrgGraphSearchClientConfig } from "./orgGraphSearchClient";
26
26
  import type { PacksClientConfig } from "./packsClient";
27
27
  import type { PolicyClientConfig } from "./policyClient";
28
- import type { ReportsClientConfig } from "./reportsClient";
29
- import type { SchemaClientConfig } from "./schemaClient";
30
- import type { SourcesClientConfig } from "./sourcesClient";
31
- import type { TelemetryClientConfig } from "./telemetryClient";
28
+ import type { ReportsClientConfig } from "./reports-client";
29
+ import type { SchemaClientConfig } from "./schema-client";
30
+ import type { SourcesClientConfig } from "./sources-client";
31
+ import type { TelemetryClientConfig } from "./telemetry-client";
32
32
  import type { ToolRegistryClientConfig } from "./toolRegistryClient";
33
33
  import type { TopicsClientConfig } from "./topicsClient";
34
- import type { JsonObject } from "./types";
35
34
  import type { WorkflowClientConfig } from "./workflowClient";
36
35
  export type ClientConfig = BeliefsClientConfig | SourcesClientConfig | GraphClientConfig | DecisionsClientConfig | AnswersClientConfig | ContextClientConfig | WorkflowClientConfig | AuditClientConfig | AdminClientConfig | EvidenceClientConfig | EmbeddingsClientConfig | EventingClientConfig | GraphAnalysisClientConfig | GraphRecommendationsClientConfig | GraphStateClassifierClientConfig | IdentityClientConfig | JobsClientConfig | ModelRuntimeClientConfig | OntologyLinksClientConfig | OrgGraphSearchClientConfig | PolicyClientConfig | PacksClientConfig | ReportsClientConfig | LearningClientConfig | TelemetryClientConfig | ToolRegistryClientConfig | FunctionSurfaceClientConfig | ControlPlaneIdentityClientConfig | OntologyClientConfig | HarnessClientConfig | SchemaClientConfig | AudiencesClientConfig | TopicsClientConfig | GatewayClientConfig;
37
36
  export type CustomToolInput = import("./clientHelpers").CustomToolInput;
38
37
  export type CustomToolInvoker = (input?: CustomToolInput) => Promise<unknown>;
39
38
  export type CustomToolNamespace = Record<string, CustomToolInvoker>;
40
39
  export type GatewayDataEnvelope<T = unknown> = PlatformGatewaySuccess<T> & (T extends Record<string, unknown> ? T : Record<string, unknown>);
41
- export type BeliefsCompatCreateInput = {
42
- topicId?: string;
43
- text?: string;
44
- canonicalText?: string;
40
+ export type BeliefsCompatCreateInput = CreateBeliefInput;
41
+ export interface BeliefsCompatForkInput {
42
+ forkMode?: "supersede" | "branch";
43
+ forkReason: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse";
45
44
  formulation?: string;
45
+ newFormulation?: string;
46
46
  rationale?: string;
47
- worktreeId?: string;
48
- pillar?: string;
49
- baseRate?: number;
50
- sourceBeliefIds?: string[];
51
- sourceType?: string;
52
- beliefType?: string;
53
- reversibility?: string;
54
- predictionMeta?: JsonObject;
55
- metadata?: JsonObject;
56
- };
57
- export type BeliefsCompatForkInput = {
58
47
  text?: string;
59
- newFormulation?: string;
60
- formulation?: string;
61
- forkReason: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse";
62
- forkMode?: "supersede" | "branch";
63
48
  triggeringEvidenceId: string;
64
- rationale?: string;
65
- };
49
+ }
66
50
  /**
67
51
  * Configuration for the high-level Lucern SDK client.
68
52
  *
@@ -93,4 +77,4 @@ export type LucernClientConfig = ClientConfig & {
93
77
  /** Target environment. Defaults to production if not specified. */
94
78
  environment?: "sandbox" | "production";
95
79
  };
96
- //# sourceMappingURL=clientConfig.d.ts.map
80
+ //# sourceMappingURL=client-config.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=client-config.js.map
@@ -1,16 +1,6 @@
1
1
  import type { PlatformGatewaySuccess } from "./coreClient";
2
2
  import type { JsonObject } from "./types";
3
- export type EvidenceCompatInput = {
4
- text?: string;
5
- canonicalText?: string;
6
- topicId?: string;
7
- source?: string;
8
- sourceUrl?: string;
9
- externalSourceUrl?: string;
10
- targetId?: string;
11
- weight?: number;
12
- evidenceRelation?: "supports" | "contradicts";
13
- confidence?: number;
3
+ export interface EvidenceCompatInput {
14
4
  beliefRelations?: Array<{
15
5
  beliefId?: string;
16
6
  beliefNodeId?: string;
@@ -21,27 +11,37 @@ export type EvidenceCompatInput = {
21
11
  weight?: number;
22
12
  rationale?: string;
23
13
  }>;
24
- metadata?: JsonObject;
25
- title?: string;
14
+ canonicalText?: string;
15
+ confidence?: number;
26
16
  content?: string;
27
17
  contentType?: string;
28
- kind?: string;
29
- tags?: string[];
30
- sourceType?: string;
18
+ evidenceRelation?: "supports" | "contradicts";
31
19
  externalSourceType?: string;
32
- sourceQuestionId?: string;
33
- methodology?: string;
20
+ externalSourceUrl?: string;
34
21
  informationAsymmetry?: string;
35
- sourceQuality?: "primary" | "analyzed" | "secondary" | "tertiary" | "unknown";
36
- sourceDescription?: string;
22
+ kind?: string;
23
+ metadata?: JsonObject;
24
+ methodology?: string;
37
25
  rationale?: string;
26
+ source?: string;
27
+ sourceDescription?: string;
28
+ sourceQuality?: "primary" | "analyzed" | "secondary" | "tertiary" | "unknown";
29
+ sourceQuestionId?: string;
30
+ sourceType?: string;
31
+ sourceUrl?: string;
38
32
  supports?: {
39
33
  nodeId: string;
40
34
  weight: number;
41
35
  reasoning?: string;
42
36
  };
43
- };
44
- type EvidenceFacadeLike = {
37
+ tags?: string[];
38
+ targetId?: string;
39
+ text?: string;
40
+ title?: string;
41
+ topicId?: string;
42
+ weight?: number;
43
+ }
44
+ interface EvidenceFacadeLike {
45
45
  create(args: {
46
46
  topicId?: string;
47
47
  text: string;
@@ -78,8 +78,8 @@ type EvidenceFacadeLike = {
78
78
  }): Promise<PlatformGatewaySuccess<{
79
79
  edgeId?: string;
80
80
  }>>;
81
- };
81
+ }
82
82
  export declare function createEvidenceCompat(evidenceFacade: EvidenceFacadeLike, args: EvidenceCompatInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
83
83
  export declare function addEvidenceCompat(evidenceFacade: EvidenceFacadeLike, args: EvidenceCompatInput): Promise<Record<string, unknown>>;
84
84
  export {};
85
- //# sourceMappingURL=clientEvidenceCompat.d.ts.map
85
+ //# sourceMappingURL=client-evidence-compat.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { resolveText, resolveTopicId } from "./sdkSurface.js";
2
- export async function createEvidenceCompat(evidenceFacade, args) {
2
+ export function createEvidenceCompat(evidenceFacade, args) {
3
3
  const text = resolveText(args);
4
4
  if (!text) {
5
5
  throw new Error("text is required");
@@ -56,4 +56,4 @@ export async function addEvidenceCompat(evidenceFacade, args) {
56
56
  });
57
57
  return created.data;
58
58
  }
59
- //# sourceMappingURL=clientEvidenceCompat.js.map
59
+ //# sourceMappingURL=client-evidence-compat.js.map