@lucern/sdk 0.2.0-alpha.1 → 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/CHANGELOG.md +13 -0
- package/README.md +691 -61
- package/dist/adminClient.d.ts +409 -0
- package/dist/adminClient.js +755 -0
- package/dist/adminClient.js.map +1 -0
- package/dist/answersClient.d.ts +23 -0
- package/dist/answersClient.js +333 -0
- package/dist/answersClient.js.map +1 -0
- 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/{packages/sdk/src/audiencesClient.d.ts → audiencesClient.d.ts} +30 -18
- package/dist/audiencesClient.js +472 -0
- package/dist/audiencesClient.js.map +1 -0
- package/dist/auditClient.d.ts +29 -0
- package/dist/auditClient.js +386 -0
- package/dist/auditClient.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 +241 -0
- package/dist/beliefsClient.js +646 -0
- package/dist/beliefsClient.js.map +1 -0
- package/dist/client.d.ts +2398 -0
- package/dist/client.js +6411 -0
- package/dist/client.js.map +1 -0
- package/dist/contextClient.d.ts +27 -0
- package/dist/contextClient.js +396 -0
- package/dist/contextClient.js.map +1 -0
- package/dist/contextFacade.d.ts +2 -0
- package/dist/contextFacade.js +73 -0
- package/dist/contextFacade.js.map +1 -0
- package/dist/{lucern/packages/domain-context/src/context-pack-compiler.d.ts → contextPackCompiler.d.ts} +11 -10
- package/dist/contextPackCompiler.js +1091 -0
- package/dist/contextPackCompiler.js.map +1 -0
- package/dist/contextPackPolicy.d.ts +84 -0
- package/dist/contextPackPolicy.js +347 -0
- package/dist/contextPackPolicy.js.map +1 -0
- package/dist/contextPackSchema.d.ts +7 -0
- package/dist/contextPackSchema.js +203 -0
- package/dist/contextPackSchema.js.map +1 -0
- package/dist/contextTypes.d.ts +135 -0
- package/dist/contextTypes.js +3 -0
- package/dist/contextTypes.js.map +1 -0
- package/dist/contracts/api-enums.contract.d.ts +81 -0
- package/dist/contracts/api-enums.contract.js +98 -0
- package/dist/contracts/api-enums.contract.js.map +1 -0
- package/dist/{lucern/contracts/src → contracts}/auth-session.contract.d.ts +14 -12
- package/dist/contracts/auth-session.contract.js +48 -0
- package/dist/contracts/auth-session.contract.js.map +1 -0
- package/dist/{lucern/contracts/src → contracts}/context-pack.contract.d.ts +56 -58
- package/dist/contracts/context-pack.contract.js +98 -0
- package/dist/contracts/context-pack.contract.js.map +1 -0
- package/dist/contracts/contextPack.d.ts +1 -0
- package/dist/contracts/contextPack.js +98 -0
- package/dist/contracts/contextPack.js.map +1 -0
- package/dist/contracts/index.d.ts +9 -0
- package/dist/contracts/index.js +4928 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/{lucern/contracts/src → contracts}/lens-filter.contract.d.ts +10 -8
- package/dist/contracts/lens-filter.contract.js +71 -0
- package/dist/contracts/lens-filter.contract.js.map +1 -0
- package/dist/contracts/lens-workflow.contract.d.ts +87 -0
- package/dist/contracts/lens-workflow.contract.js +123 -0
- package/dist/contracts/lens-workflow.contract.js.map +1 -0
- package/dist/contracts/lensFilter.d.ts +1 -0
- package/dist/contracts/lensFilter.js +71 -0
- package/dist/contracts/lensFilter.js.map +1 -0
- package/dist/contracts/lensWorkflow.d.ts +2 -0
- package/dist/contracts/lensWorkflow.js +123 -0
- package/dist/contracts/lensWorkflow.js.map +1 -0
- package/dist/contracts/mcp-tools.contract.d.ts +1 -0
- package/dist/contracts/mcp-tools.contract.js +3016 -0
- package/dist/contracts/mcp-tools.contract.js.map +1 -0
- package/dist/contracts/mcpTools.d.ts +1 -0
- package/dist/contracts/mcpTools.js +3016 -0
- package/dist/contracts/mcpTools.js.map +1 -0
- package/dist/contracts/prompt.contract.d.ts +26 -0
- package/dist/contracts/prompt.contract.js +12 -0
- package/dist/contracts/prompt.contract.js.map +1 -0
- package/dist/contracts/prompt.d.ts +1 -0
- package/dist/contracts/prompt.js +12 -0
- package/dist/contracts/prompt.js.map +1 -0
- package/dist/contracts/sdk-tools.contract.d.ts +2 -0
- package/dist/contracts/sdk-tools.contract.js +4164 -0
- package/dist/contracts/sdk-tools.contract.js.map +1 -0
- package/dist/contracts/sdkTools.d.ts +2 -0
- package/dist/contracts/sdkTools.js +4164 -0
- package/dist/contracts/sdkTools.js.map +1 -0
- package/dist/contracts/workflow-runtime.contract.d.ts +163 -0
- package/dist/contracts/workflow-runtime.contract.js +245 -0
- package/dist/contracts/workflow-runtime.contract.js.map +1 -0
- package/dist/contracts/workflowRuntime.d.ts +1 -0
- package/dist/contracts/workflowRuntime.js +245 -0
- package/dist/contracts/workflowRuntime.js.map +1 -0
- 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/{packages/sdk/src/controlObjectOwnership.d.ts → controlObjectOwnership.d.ts} +35 -18
- package/dist/controlObjectOwnership.js +215 -0
- package/dist/controlObjectOwnership.js.map +1 -0
- package/dist/{packages/sdk/src/coreClient.d.ts → coreClient.d.ts} +38 -14
- package/dist/coreClient.js +339 -0
- package/dist/coreClient.js.map +1 -0
- package/dist/customTools.d.ts +88 -0
- package/dist/customTools.js +248 -0
- package/dist/customTools.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/decisionsClient.d.ts +111 -0
- package/dist/decisionsClient.js +522 -0
- package/dist/decisionsClient.js.map +1 -0
- package/dist/domainContext.d.ts +1 -0
- package/dist/domainContext.js +3 -0
- package/dist/domainContext.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.d.ts +178 -0
- package/dist/events.js +251 -0
- package/dist/events.js.map +1 -0
- package/dist/eventsCore.d.ts +49 -0
- package/dist/eventsCore.js +429 -0
- package/dist/eventsCore.js.map +1 -0
- 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/evidenceClient.d.ts +119 -0
- package/dist/evidenceClient.js +350 -0
- package/dist/evidenceClient.js.map +1 -0
- package/dist/facade/context.d.ts +18 -0
- package/dist/facade/context.js +73 -0
- package/dist/facade/context.js.map +1 -0
- package/dist/gatewayFacades.d.ts +589 -0
- package/dist/gatewayFacades.js +2006 -0
- package/dist/gatewayFacades.js.map +1 -0
- package/dist/graphClient.d.ts +271 -0
- package/dist/graphClient.js +698 -0
- package/dist/graphClient.js.map +1 -0
- package/dist/{packages/sdk/src/harnessClient.d.ts → harnessClient.d.ts} +127 -35
- package/dist/harnessClient.js +607 -0
- package/dist/harnessClient.js.map +1 -0
- package/dist/identityClient.d.ts +140 -0
- package/dist/identityClient.js +497 -0
- package/dist/identityClient.js.map +1 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +5284 -2568
- package/dist/index.js.map +1 -1
- package/dist/learningClient.d.ts +46 -0
- package/dist/learningClient.js +409 -0
- package/dist/learningClient.js.map +1 -0
- 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/{packages/sdk/src/mcpParityClient.d.ts → mcpParityClient.d.ts} +11 -5
- package/dist/mcpParityClient.js +516 -0
- package/dist/mcpParityClient.js.map +1 -0
- package/dist/mcpParitySurface.d.ts +12 -0
- package/dist/mcpParitySurface.js +65 -0
- package/dist/mcpParitySurface.js.map +1 -0
- package/dist/mcpTools-DPZxowDX.d.ts +254 -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/{packages/sdk/src/ontologyClient.d.ts → ontologyClient.d.ts} +44 -22
- package/dist/ontologyClient.js +513 -0
- package/dist/ontologyClient.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/packRuntime.d.ts +2 -0
- package/dist/packRuntime.js +3 -0
- package/dist/packRuntime.js.map +1 -0
- package/dist/packsClient.d.ts +131 -0
- package/dist/packsClient.js +525 -0
- package/dist/packsClient.js.map +1 -0
- package/dist/{packages/sdk/src/policyClient.d.ts → policyClient.d.ts} +113 -18
- package/dist/policyClient.js +625 -0
- package/dist/policyClient.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/realtime/index.d.ts +29 -0
- package/dist/realtime/index.js +23 -0
- package/dist/realtime/index.js.map +1 -0
- package/dist/realtime/refs.d.ts +17 -0
- package/dist/realtime/refs.js +9 -0
- package/dist/realtime/refs.js.map +1 -0
- package/dist/reportsClient.d.ts +41 -0
- package/dist/reportsClient.js +418 -0
- package/dist/reportsClient.js.map +1 -0
- package/dist/schemaClient.d.ts +64 -0
- package/dist/schemaClient.js +434 -0
- package/dist/schemaClient.js.map +1 -0
- package/dist/sdkSurface.d.ts +61 -0
- package/dist/sdkSurface.js +112 -0
- package/dist/sdkSurface.js.map +1 -0
- package/dist/sdkTools-CwXJDACb.d.ts +150 -0
- package/dist/sourcesClient.d.ts +24 -0
- package/dist/sourcesClient.js +339 -0
- package/dist/sourcesClient.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/topicsClient.d.ts +84 -0
- package/dist/topicsClient.js +492 -0
- package/dist/topicsClient.js.map +1 -0
- package/dist/types.d.ts +715 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/dist/workflowClient.d.ts +316 -0
- package/dist/workflowClient.js +830 -0
- package/dist/workflowClient.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 +92 -37
- package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +0 -84
- package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +0 -151
- package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +0 -161
- package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +0 -119
- package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +0 -18
- package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +0 -78
- package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +0 -53
- package/dist/lucern/packages/client-core/src/beliefs.d.ts +0 -30
- package/dist/lucern/packages/client-core/src/context.d.ts +0 -29
- package/dist/lucern/packages/client-core/src/contradictions.d.ts +0 -11
- package/dist/lucern/packages/client-core/src/edges.d.ts +0 -11
- package/dist/lucern/packages/client-core/src/events.d.ts +0 -9
- package/dist/lucern/packages/client-core/src/evidence.d.ts +0 -21
- package/dist/lucern/packages/client-core/src/graph.d.ts +0 -17
- package/dist/lucern/packages/client-core/src/identity.d.ts +0 -7
- package/dist/lucern/packages/client-core/src/ids.d.ts +0 -7
- package/dist/lucern/packages/client-core/src/ontologies.d.ts +0 -13
- package/dist/lucern/packages/client-core/src/questions.d.ts +0 -39
- package/dist/lucern/packages/client-core/src/search.d.ts +0 -7
- package/dist/lucern/packages/client-core/src/tasks.d.ts +0 -13
- package/dist/lucern/packages/client-core/src/topics.d.ts +0 -17
- package/dist/lucern/packages/client-core/src/webhooks.d.ts +0 -35
- package/dist/lucern/packages/client-core/src/worktrees.d.ts +0 -17
- package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +0 -283
- package/dist/lucern/packages/domain-beliefs/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-context/src/compile.d.ts +0 -11
- package/dist/lucern/packages/domain-context/src/index.d.ts +0 -4
- package/dist/lucern/packages/domain-context/src/ports.d.ts +0 -58
- package/dist/lucern/packages/domain-context/src/public-types.d.ts +0 -1
- package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +0 -59
- package/dist/lucern/packages/domain-edges/src/edges.d.ts +0 -91
- package/dist/lucern/packages/domain-edges/src/index.d.ts +0 -2
- package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +0 -115
- package/dist/lucern/packages/domain-evidence/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-graph/src/graph.d.ts +0 -150
- package/dist/lucern/packages/domain-identity/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-identity/src/whoami.d.ts +0 -13
- package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +0 -123
- package/dist/lucern/packages/domain-questions/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-questions/src/questions.d.ts +0 -147
- package/dist/lucern/packages/domain-search/src/search.d.ts +0 -97
- package/dist/lucern/packages/domain-tasks/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +0 -102
- package/dist/lucern/packages/domain-topics/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-topics/src/topics.d.ts +0 -147
- package/dist/lucern/packages/domain-worktrees/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +0 -185
- package/dist/lucern/packages/events/src/index.d.ts +0 -4
- package/dist/lucern/packages/events/src/matching.d.ts +0 -3
- package/dist/lucern/packages/events/src/outbox.d.ts +0 -15
- package/dist/lucern/packages/events/src/types.d.ts +0 -151
- package/dist/lucern/packages/events/src/webhooks.d.ts +0 -9
- package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +0 -15
- package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +0 -12
- package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +0 -7
- package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +0 -7
- package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +0 -6
- package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +0 -21
- package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +0 -10
- package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +0 -5
- package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +0 -8
- package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +0 -39
- package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +0 -5
- package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +0 -8
- package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +0 -10
- package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +0 -16
- package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +0 -10
- package/dist/lucern/packages/sdk-typescript/src/index.d.ts +0 -28
- package/dist/packages/sdk/src/adminClient.d.ts +0 -89
- package/dist/packages/sdk/src/answersClient.d.ts +0 -5
- package/dist/packages/sdk/src/auditClient.d.ts +0 -23
- package/dist/packages/sdk/src/beliefsClient.d.ts +0 -54
- package/dist/packages/sdk/src/client.d.ts +0 -1610
- package/dist/packages/sdk/src/contextClient.d.ts +0 -9
- package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +0 -58
- package/dist/packages/sdk/src/customTools.d.ts +0 -65
- package/dist/packages/sdk/src/decisionsClient.d.ts +0 -110
- package/dist/packages/sdk/src/graphClient.d.ts +0 -209
- package/dist/packages/sdk/src/identityClient.d.ts +0 -104
- package/dist/packages/sdk/src/index.d.ts +0 -28
- package/dist/packages/sdk/src/learningClient.d.ts +0 -43
- package/dist/packages/sdk/src/mcpParitySurface.d.ts +0 -8
- package/dist/packages/sdk/src/packsClient.d.ts +0 -101
- package/dist/packages/sdk/src/reportsClient.d.ts +0 -31
- package/dist/packages/sdk/src/schemaClient.d.ts +0 -54
- package/dist/packages/sdk/src/sdkSurface.d.ts +0 -56
- package/dist/packages/sdk/src/topicsClient.d.ts +0 -45
- package/dist/packages/sdk/src/types.d.ts +0 -489
- package/dist/packages/sdk/src/version.d.ts +0 -2
- package/dist/packages/sdk/src/workflowClient.d.ts +0 -274
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type CompileContextInput } from "@/lucern/packages/client-core/src/context";
|
|
2
|
-
import type { PublicCompiledContext } from "@/lucern/packages/domain-context/src";
|
|
3
|
-
import { type GatewayClientConfig } from "./coreClient";
|
|
4
|
-
export type ContextClientConfig = GatewayClientConfig;
|
|
5
|
-
export type CompileContextResponse = PublicCompiledContext;
|
|
6
|
-
export declare function createContextClient(config?: ContextClientConfig): {
|
|
7
|
-
compile(topicId: string, input?: CompileContextInput): Promise<import("./coreClient").PlatformGatewaySuccess<PublicCompiledContext>>;
|
|
8
|
-
};
|
|
9
|
-
export type { CompileContextInput };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Enum Contract Definitions
|
|
3
|
-
*
|
|
4
|
-
* Canonical enum values for all API-facing enumerations.
|
|
5
|
-
* These are co-equal with MCP contracts as external contracts.
|
|
6
|
-
* SDK types are DERIVED from these — not independently authored.
|
|
7
|
-
*
|
|
8
|
-
* CONTRACT SURFACE: Adding a new enum value is additive (non-breaking).
|
|
9
|
-
* Removing or renaming an existing value is a BREAKING CHANGE.
|
|
10
|
-
*/
|
|
11
|
-
/** Fork reasons — why a scored belief was branched */
|
|
12
|
-
export declare const FORK_REASONS: readonly ["refinement", "contradiction_response", "scope_change", "confidence_collapse", "manual"];
|
|
13
|
-
export type ForkReason = (typeof FORK_REASONS)[number];
|
|
14
|
-
/** Confidence modulation triggers — what caused a confidence change */
|
|
15
|
-
export declare const CONFIDENCE_TRIGGERS: readonly ["evidence_added", "contradiction_detected", "merge_outcome", "manual", "decay"];
|
|
16
|
-
export type ConfidenceTrigger = (typeof CONFIDENCE_TRIGGERS)[number];
|
|
17
|
-
/** Belief status — lifecycle state */
|
|
18
|
-
export declare const BELIEF_STATUSES: readonly ["unscored", "scored", "archived"];
|
|
19
|
-
export type BeliefStatus = (typeof BELIEF_STATUSES)[number];
|
|
20
|
-
/** Reasoning methods — how an edge relationship was determined */
|
|
21
|
-
export declare const REASONING_METHODS: readonly ["deductive", "inductive", "abductive", "analogical", "empirical"];
|
|
22
|
-
export type ReasoningMethod = (typeof REASONING_METHODS)[number];
|
|
23
|
-
/** Defeat types (Pollock taxonomy) — how a contradiction operates */
|
|
24
|
-
export declare const DEFEAT_TYPES: readonly ["rebuts", "undercuts", "undermines"];
|
|
25
|
-
export type DefeatType = (typeof DEFEAT_TYPES)[number];
|
|
26
|
-
/** Contradiction severity levels */
|
|
27
|
-
export declare const CONTRADICTION_SEVERITIES: readonly ["low", "medium", "high", "critical"];
|
|
28
|
-
export type ContradictionSeverity = (typeof CONTRADICTION_SEVERITIES)[number];
|
|
29
|
-
/** Contradiction resolution status */
|
|
30
|
-
export declare const CONTRADICTION_STATUSES: readonly ["unresolved", "resolved", "accepted"];
|
|
31
|
-
export type ContradictionStatus = (typeof CONTRADICTION_STATUSES)[number];
|
|
32
|
-
/** Merge outcome types — how a worktree merge resolved */
|
|
33
|
-
export declare const MERGE_OUTCOMES: readonly ["validated", "invalidated", "forked", "inconclusive"];
|
|
34
|
-
export type MergeOutcome = (typeof MERGE_OUTCOMES)[number];
|
|
35
|
-
/** Worktree phases — investigation lifecycle within a checked-out worktree */
|
|
36
|
-
export declare const WORKTREE_PHASES: readonly ["hypothesis", "investigation", "evaluation", "resolution"];
|
|
37
|
-
export type WorktreePhase = (typeof WORKTREE_PHASES)[number];
|
|
38
|
-
/** Branch status — thematic branch lifecycle */
|
|
39
|
-
export declare const BRANCH_STATUSES: readonly ["dormant", "active", "archived"];
|
|
40
|
-
export type BranchStatus = (typeof BRANCH_STATUSES)[number];
|
|
41
|
-
/** Pull request status — review lifecycle before merge */
|
|
42
|
-
export declare const PULL_REQUEST_STATUSES: readonly ["pending_review", "changes_requested", "approved", "blocked"];
|
|
43
|
-
export type PullRequestStatus = (typeof PULL_REQUEST_STATUSES)[number];
|
|
44
|
-
/** Epistemic layers — the hierarchy of knowledge */
|
|
45
|
-
export declare const EPISTEMIC_LAYERS: readonly ["L1", "L2", "L3", "L4"];
|
|
46
|
-
export type EpistemicLayer = (typeof EPISTEMIC_LAYERS)[number];
|
|
47
|
-
/**
|
|
48
|
-
* Judgment type — classification of the determination.
|
|
49
|
-
*
|
|
50
|
-
* Phase 1: These are new enum values for the Judgment (L4) vocabulary.
|
|
51
|
-
* The existing code uses "Decision" — these are the forward-looking terms
|
|
52
|
-
* that will eventually replace the Decision vocabulary (Phase 2-3).
|
|
53
|
-
*/
|
|
54
|
-
export declare const JUDGMENT_TYPES: readonly ["investment_thesis", "thesis_maturity", "contradiction_ruling", "scope_determination", "confidence_ruling"];
|
|
55
|
-
export type JudgmentType = (typeof JUDGMENT_TYPES)[number];
|
|
56
|
-
/** Core edge types used in the Integration Surfaces */
|
|
57
|
-
export declare const INTEGRATION_EDGE_TYPES: readonly ["informs", "grounds", "answers", "contradicts", "weakened_by", "undermined_by", "depends_on", "cascades_to", "supersedes", "in_tension_with", "implies", "tests"];
|
|
58
|
-
export type IntegrationEdgeType = (typeof INTEGRATION_EDGE_TYPES)[number];
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { McpToolContract } from "@lucern/contracts/mcp-tools.contract";
|
|
3
|
-
import type { JsonObject } from "./types";
|
|
4
|
-
type AnyZodObject = z.ZodObject<z.ZodRawShape>;
|
|
5
|
-
export type CustomToolInvocationSource = "sdk" | "mcp";
|
|
6
|
-
export type CustomToolInvocationContext = {
|
|
7
|
-
source: CustomToolInvocationSource;
|
|
8
|
-
};
|
|
9
|
-
export type CustomToolMetadata = {
|
|
10
|
-
category?: string;
|
|
11
|
-
tags?: string[];
|
|
12
|
-
requiredScopes?: string[];
|
|
13
|
-
};
|
|
14
|
-
export type CustomToolRegistration<TInput extends AnyZodObject = AnyZodObject, TOutput extends z.ZodTypeAny = z.ZodTypeAny> = {
|
|
15
|
-
namespace?: string;
|
|
16
|
-
name: string;
|
|
17
|
-
description: string;
|
|
18
|
-
inputSchema: TInput;
|
|
19
|
-
outputSchema: TOutput;
|
|
20
|
-
handler: (input: z.infer<TInput>, context: CustomToolInvocationContext) => Promise<z.infer<TOutput>> | z.infer<TOutput>;
|
|
21
|
-
metadata?: CustomToolMetadata;
|
|
22
|
-
ownerModule?: string;
|
|
23
|
-
ontologyPrimitive?: McpToolContract["ontologyPrimitive"];
|
|
24
|
-
tier?: McpToolContract["tier"];
|
|
25
|
-
};
|
|
26
|
-
export type RegisteredCustomTool = {
|
|
27
|
-
fullName: string;
|
|
28
|
-
namespace: string;
|
|
29
|
-
shortName: string;
|
|
30
|
-
metadata: CustomToolMetadata;
|
|
31
|
-
contract: McpToolContract;
|
|
32
|
-
inputSchema: AnyZodObject;
|
|
33
|
-
outputSchema: z.ZodTypeAny;
|
|
34
|
-
invoke: (input: JsonObject, context: CustomToolInvocationContext) => Promise<unknown>;
|
|
35
|
-
};
|
|
36
|
-
export declare class CustomToolRegistryError extends Error {
|
|
37
|
-
constructor(message: string);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Register a custom SDK tool in the in-memory registry.
|
|
41
|
-
*/
|
|
42
|
-
export declare function registerCustomTool<TInput extends AnyZodObject, TOutput extends z.ZodTypeAny>(registration: CustomToolRegistration<TInput, TOutput>, options?: {
|
|
43
|
-
replace?: boolean;
|
|
44
|
-
}): RegisteredCustomTool;
|
|
45
|
-
/**
|
|
46
|
-
* Remove a custom SDK tool from the registry.
|
|
47
|
-
*/
|
|
48
|
-
export declare function unregisterCustomTool(fullName: string): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Get a custom SDK tool by fully qualified name.
|
|
51
|
-
*/
|
|
52
|
-
export declare function getRegisteredCustomTool(fullName: string): RegisteredCustomTool | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* List all registered custom SDK tools.
|
|
55
|
-
*/
|
|
56
|
-
export declare function listRegisteredCustomTools(): RegisteredCustomTool[];
|
|
57
|
-
/**
|
|
58
|
-
* Clear the registered custom tool registry.
|
|
59
|
-
*/
|
|
60
|
-
export declare function clearRegisteredCustomTools(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Invoke a registered custom SDK tool.
|
|
63
|
-
*/
|
|
64
|
-
export declare function invokeRegisteredCustomTool(fullName: string, params: JsonObject, context: CustomToolInvocationContext): Promise<unknown>;
|
|
65
|
-
export {};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
-
import type { GetJudgmentResponse, JudgmentCalibrationResponse, JudgmentReadinessResponse, JudgmentTransitionAuditIntegrityResponse, ListJudgmentsResponse, PendingJudgmentOutcomeRecord, RecordJudgmentOutcomeResponse, RecordJudgmentResponse, TopicIdentifierInput } from "./types";
|
|
3
|
-
export { LucernApiError };
|
|
4
|
-
export type { PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
-
export type { GetJudgmentResponse, JudgmentCalibrationResponse, JudgmentReadinessResponse, JudgmentTransitionAuditIntegrityResponse, ListJudgmentsResponse, PendingJudgmentOutcomeReviewResponse, RecordJudgmentOutcomeResponse, RecordJudgmentResponse, } from "./types";
|
|
6
|
-
export type DecisionsClientConfig = GatewayClientConfig;
|
|
7
|
-
export type RecordJudgmentInput = {
|
|
8
|
-
title: string;
|
|
9
|
-
summary?: string;
|
|
10
|
-
rationale: string;
|
|
11
|
-
topicId?: string;
|
|
12
|
-
/** @deprecated Use topicId. */
|
|
13
|
-
projectId?: string;
|
|
14
|
-
confidence?: number;
|
|
15
|
-
decisionConfidence?: number;
|
|
16
|
-
judgmentType?: string;
|
|
17
|
-
decisionType?: string;
|
|
18
|
-
beliefIds?: string[];
|
|
19
|
-
keyUncertainties?: string[];
|
|
20
|
-
alternativesConsidered?: string[];
|
|
21
|
-
decisionMakers?: string[];
|
|
22
|
-
dealId?: string;
|
|
23
|
-
companyId?: string;
|
|
24
|
-
amount?: number;
|
|
25
|
-
valuation?: number;
|
|
26
|
-
terms?: string;
|
|
27
|
-
themeIds?: string[];
|
|
28
|
-
} & TopicIdentifierInput;
|
|
29
|
-
export type ListJudgmentsInput = {
|
|
30
|
-
topicId?: string;
|
|
31
|
-
/** @deprecated Use topicId. */
|
|
32
|
-
projectId?: string;
|
|
33
|
-
includeArchived?: boolean;
|
|
34
|
-
limit?: number;
|
|
35
|
-
} & TopicIdentifierInput;
|
|
36
|
-
export type RecordJudgmentOutcomeInput = {
|
|
37
|
-
outcome: "pending" | "successful" | "unsuccessful" | "mixed" | "unknown" | "too_early";
|
|
38
|
-
outcomeNotes?: string;
|
|
39
|
-
notes?: string;
|
|
40
|
-
};
|
|
41
|
-
export type GetJudgmentCalibrationInput = {
|
|
42
|
-
topicId?: string;
|
|
43
|
-
/** @deprecated Use topicId. */
|
|
44
|
-
projectId?: string;
|
|
45
|
-
} & TopicIdentifierInput;
|
|
46
|
-
export type ListPendingJudgmentOutcomeReviewInput = {
|
|
47
|
-
topicId?: string;
|
|
48
|
-
/** @deprecated Use topicId. */
|
|
49
|
-
projectId?: string;
|
|
50
|
-
} & TopicIdentifierInput;
|
|
51
|
-
export type GetJudgmentTransitionAuditIntegrityInput = {
|
|
52
|
-
topicId?: string;
|
|
53
|
-
/** @deprecated Use topicId. */
|
|
54
|
-
projectId?: string;
|
|
55
|
-
judgmentId?: string;
|
|
56
|
-
includePassing?: boolean;
|
|
57
|
-
} & TopicIdentifierInput;
|
|
58
|
-
/**
|
|
59
|
-
* Create the judgments client for decision lifecycle operations.
|
|
60
|
-
*/
|
|
61
|
-
export declare function createDecisionsClient(config?: DecisionsClientConfig): {
|
|
62
|
-
/**
|
|
63
|
-
* List judgments for a topic scope.
|
|
64
|
-
*/
|
|
65
|
-
listJudgments(query: ListJudgmentsInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListJudgmentsResponse>>;
|
|
66
|
-
/**
|
|
67
|
-
* Get a single judgment by identifier.
|
|
68
|
-
*/
|
|
69
|
-
getJudgment(judgmentId: string): Promise<import("./coreClient").PlatformGatewaySuccess<GetJudgmentResponse>>;
|
|
70
|
-
/**
|
|
71
|
-
* Get readiness signals for creating a judgment.
|
|
72
|
-
*/
|
|
73
|
-
getJudgmentReadiness(query: {
|
|
74
|
-
topicId?: string;
|
|
75
|
-
/** @deprecated Use topicId. */
|
|
76
|
-
projectId?: string;
|
|
77
|
-
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<JudgmentReadinessResponse>>;
|
|
78
|
-
/**
|
|
79
|
-
* Get calibration analytics for judgment outcomes.
|
|
80
|
-
*/
|
|
81
|
-
getJudgmentCalibration(query: GetJudgmentCalibrationInput): Promise<import("./coreClient").PlatformGatewaySuccess<JudgmentCalibrationResponse>>;
|
|
82
|
-
/**
|
|
83
|
-
* List judgments still awaiting outcome review.
|
|
84
|
-
*/
|
|
85
|
-
listPendingOutcomeReviews(query: ListPendingJudgmentOutcomeReviewInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
86
|
-
/**
|
|
87
|
-
* @deprecated Use listPendingOutcomeReviews.
|
|
88
|
-
*/
|
|
89
|
-
listPendingJudgmentOutcomeReview(query: ListPendingJudgmentOutcomeReviewInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
90
|
-
/**
|
|
91
|
-
* Get audit integrity checks for judgment transitions.
|
|
92
|
-
*/
|
|
93
|
-
getJudgmentTransitionAuditIntegrity(query: GetJudgmentTransitionAuditIntegrityInput): Promise<import("./coreClient").PlatformGatewaySuccess<JudgmentTransitionAuditIntegrityResponse>>;
|
|
94
|
-
/**
|
|
95
|
-
* Create a judgment.
|
|
96
|
-
*/
|
|
97
|
-
createJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
98
|
-
/**
|
|
99
|
-
* @deprecated Use createJudgment.
|
|
100
|
-
*/
|
|
101
|
-
recordJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
102
|
-
/**
|
|
103
|
-
* Update the outcome for an existing judgment.
|
|
104
|
-
*/
|
|
105
|
-
updateJudgmentOutcome(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated Use updateJudgmentOutcome.
|
|
108
|
-
*/
|
|
109
|
-
recordJudgmentOutcome(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
|
|
110
|
-
};
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
-
import type { DeleteEdgeResponse, GraphAnalyticsMetric, GraphAnalyticsResponse, GraphNeighborhoodResponse, GraphPathResponse, JsonObject, ListResult, PlatformGraphEdge, PlatformGraphNode, TextAliasInput, TopicIdentifierInput } from "./types";
|
|
3
|
-
export { LucernApiError };
|
|
4
|
-
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
-
export type { CreateEdgeResponse, CreateNodeResponse, DeleteEdgeResponse, GraphAnalyticsMetric, GraphAnalyticsResponse, GraphNeighborhoodResponse, GraphPathResponse, ListResult, QueryEdgesResponse, QueryNodesResponse, UpdateNodeResponse, } from "./types";
|
|
6
|
-
export type GraphClientConfig = GatewayClientConfig;
|
|
7
|
-
export type ListNodesInput = {
|
|
8
|
-
nodeId?: string;
|
|
9
|
-
globalId?: string;
|
|
10
|
-
topicId?: string;
|
|
11
|
-
/** @deprecated Use topicId. */
|
|
12
|
-
projectId?: string;
|
|
13
|
-
nodeType?: string;
|
|
14
|
-
limit?: number;
|
|
15
|
-
} & TopicIdentifierInput;
|
|
16
|
-
export type ListNodesResponse = ListResult<PlatformGraphNode, "nodes">;
|
|
17
|
-
export type QueryNodesInput = ListNodesInput;
|
|
18
|
-
export type CreateNodeInput = {
|
|
19
|
-
text?: string;
|
|
20
|
-
/** @deprecated Use text. */
|
|
21
|
-
canonicalText?: string;
|
|
22
|
-
nodeType: string;
|
|
23
|
-
topicId?: string;
|
|
24
|
-
/** @deprecated Use topicId. */
|
|
25
|
-
projectId?: string;
|
|
26
|
-
content?: string;
|
|
27
|
-
contentHash?: string;
|
|
28
|
-
globalId?: string;
|
|
29
|
-
sourceType?: string;
|
|
30
|
-
subtype?: string;
|
|
31
|
-
title?: string;
|
|
32
|
-
confidence?: number;
|
|
33
|
-
status?: string;
|
|
34
|
-
tags?: string[];
|
|
35
|
-
metadata?: JsonObject;
|
|
36
|
-
verificationStatus?: string;
|
|
37
|
-
} & TextAliasInput & TopicIdentifierInput;
|
|
38
|
-
export type UpdateNodeInput = {
|
|
39
|
-
nodeId: string;
|
|
40
|
-
text?: string;
|
|
41
|
-
canonicalText?: string;
|
|
42
|
-
content?: string;
|
|
43
|
-
contentHash?: string;
|
|
44
|
-
title?: string;
|
|
45
|
-
subtype?: string;
|
|
46
|
-
confidence?: number;
|
|
47
|
-
status?: string;
|
|
48
|
-
tags?: string[];
|
|
49
|
-
metadata?: JsonObject;
|
|
50
|
-
verificationStatus?: string;
|
|
51
|
-
} & TextAliasInput;
|
|
52
|
-
export type ListEdgesInput = {
|
|
53
|
-
edgeId?: string;
|
|
54
|
-
topicId?: string;
|
|
55
|
-
/** @deprecated Use topicId. */
|
|
56
|
-
projectId?: string;
|
|
57
|
-
fromNodeId?: string;
|
|
58
|
-
toNodeId?: string;
|
|
59
|
-
edgeType?: string;
|
|
60
|
-
limit?: number;
|
|
61
|
-
} & TopicIdentifierInput;
|
|
62
|
-
export type ListEdgesResponse = ListResult<PlatformGraphEdge, "edges">;
|
|
63
|
-
export type QueryEdgesInput = ListEdgesInput;
|
|
64
|
-
export type CreateEdgeInput = {
|
|
65
|
-
fromNodeId: string;
|
|
66
|
-
toNodeId: string;
|
|
67
|
-
edgeType: string;
|
|
68
|
-
globalId?: string;
|
|
69
|
-
topicId?: string;
|
|
70
|
-
/** @deprecated Use topicId. */
|
|
71
|
-
projectId?: string;
|
|
72
|
-
confidence?: number;
|
|
73
|
-
weight?: number;
|
|
74
|
-
context?: string;
|
|
75
|
-
derivationType?: string;
|
|
76
|
-
} & TopicIdentifierInput;
|
|
77
|
-
export type DeleteEdgeInput = {
|
|
78
|
-
edgeId?: string;
|
|
79
|
-
fromNodeId?: string;
|
|
80
|
-
toNodeId?: string;
|
|
81
|
-
edgeType?: string;
|
|
82
|
-
};
|
|
83
|
-
export type NeighborhoodInput = {
|
|
84
|
-
globalId?: string;
|
|
85
|
-
globalIds?: string;
|
|
86
|
-
maxDepth?: number;
|
|
87
|
-
};
|
|
88
|
-
export type PathInput = {
|
|
89
|
-
fromGlobalId: string;
|
|
90
|
-
toGlobalId: string;
|
|
91
|
-
maxDepth?: number;
|
|
92
|
-
};
|
|
93
|
-
export type AnalyticsInput = {
|
|
94
|
-
metric?: GraphAnalyticsMetric;
|
|
95
|
-
limit?: number;
|
|
96
|
-
};
|
|
97
|
-
export type TraverseInput = {
|
|
98
|
-
startNode: string;
|
|
99
|
-
direction?: string;
|
|
100
|
-
maxDepth?: number;
|
|
101
|
-
topicId?: string;
|
|
102
|
-
/** @deprecated Use topicId. */
|
|
103
|
-
projectId?: string;
|
|
104
|
-
} & TopicIdentifierInput;
|
|
105
|
-
export type AnalyzeInput = {
|
|
106
|
-
topicId?: string;
|
|
107
|
-
/** @deprecated Use topicId. */
|
|
108
|
-
projectId?: string;
|
|
109
|
-
metric?: GraphAnalyticsMetric;
|
|
110
|
-
limit?: number;
|
|
111
|
-
} & TopicIdentifierInput;
|
|
112
|
-
export type BiasInput = {
|
|
113
|
-
topicId?: string;
|
|
114
|
-
/** @deprecated Use topicId. */
|
|
115
|
-
projectId?: string;
|
|
116
|
-
threshold?: number;
|
|
117
|
-
limit?: number;
|
|
118
|
-
} & TopicIdentifierInput;
|
|
119
|
-
export type GapsInput = {
|
|
120
|
-
topicId?: string;
|
|
121
|
-
/** @deprecated Use topicId. */
|
|
122
|
-
projectId?: string;
|
|
123
|
-
minConfidence?: number;
|
|
124
|
-
} & TopicIdentifierInput;
|
|
125
|
-
export type SearchInput = {
|
|
126
|
-
q?: string;
|
|
127
|
-
query?: string;
|
|
128
|
-
topicId?: string;
|
|
129
|
-
/** @deprecated Use topicId. */
|
|
130
|
-
projectId?: string;
|
|
131
|
-
types?: string[];
|
|
132
|
-
status?: string;
|
|
133
|
-
minConfidence?: number;
|
|
134
|
-
limit?: number;
|
|
135
|
-
cursor?: string;
|
|
136
|
-
} & TopicIdentifierInput;
|
|
137
|
-
/**
|
|
138
|
-
* Create the low-level graph client for nodes, edges, and graph analytics.
|
|
139
|
-
*/
|
|
140
|
-
export declare function createGraphClient(config?: GraphClientConfig): {
|
|
141
|
-
/**
|
|
142
|
-
* List graph nodes matching the provided filters.
|
|
143
|
-
*/
|
|
144
|
-
listNodes(query: ListNodesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
145
|
-
/**
|
|
146
|
-
* @deprecated Use listNodes.
|
|
147
|
-
*/
|
|
148
|
-
queryNodes(query: QueryNodesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
149
|
-
/**
|
|
150
|
-
* Create a graph node.
|
|
151
|
-
*/
|
|
152
|
-
createNode(input: CreateNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
153
|
-
/**
|
|
154
|
-
* Update a graph node.
|
|
155
|
-
*/
|
|
156
|
-
updateNode(input: UpdateNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
157
|
-
/**
|
|
158
|
-
* List graph edges matching the provided filters.
|
|
159
|
-
*/
|
|
160
|
-
listEdges(query: ListEdgesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated Use listEdges.
|
|
163
|
-
*/
|
|
164
|
-
queryEdges(query: QueryEdgesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
165
|
-
/**
|
|
166
|
-
* Create a graph edge.
|
|
167
|
-
*/
|
|
168
|
-
createEdge(input: CreateEdgeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphEdge>>;
|
|
169
|
-
/**
|
|
170
|
-
* Delete one or more edges matching the provided filter.
|
|
171
|
-
*/
|
|
172
|
-
deleteEdge(query: DeleteEdgeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<DeleteEdgeResponse>>;
|
|
173
|
-
/**
|
|
174
|
-
* Retrieve a graph neighborhood around a root node.
|
|
175
|
-
*/
|
|
176
|
-
neighborhood(query: NeighborhoodInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
177
|
-
/**
|
|
178
|
-
* Traverse the graph from a starting node.
|
|
179
|
-
*/
|
|
180
|
-
traverse(query: TraverseInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
181
|
-
/**
|
|
182
|
-
* Analyze graph structure for a topic.
|
|
183
|
-
*/
|
|
184
|
-
analyze(query?: AnalyzeInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
185
|
-
/**
|
|
186
|
-
* Detect confirmation-bias patterns for a topic graph.
|
|
187
|
-
*/
|
|
188
|
-
bias(query?: BiasInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
189
|
-
/**
|
|
190
|
-
* Find graph gaps for beliefs that still need testing.
|
|
191
|
-
*/
|
|
192
|
-
gaps(query: GapsInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
193
|
-
/**
|
|
194
|
-
* Search across graph resources within a topic.
|
|
195
|
-
*/
|
|
196
|
-
search(query: SearchInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
197
|
-
/**
|
|
198
|
-
* Retrieve a graph neighborhood around a root node.
|
|
199
|
-
*/
|
|
200
|
-
getNeighborhood(query: NeighborhoodInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
201
|
-
/**
|
|
202
|
-
* Retrieve the shortest known path between two graph nodes.
|
|
203
|
-
*/
|
|
204
|
-
getPath(query: PathInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphPathResponse>>;
|
|
205
|
-
/**
|
|
206
|
-
* Retrieve graph analytics for the requested metric.
|
|
207
|
-
*/
|
|
208
|
-
getAnalytics(query?: AnalyticsInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphAnalyticsResponse>>;
|
|
209
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type GatewayScope, LucernApiError } from "./coreClient";
|
|
2
|
-
import type { JsonObject } from "./types";
|
|
3
|
-
import { type IdentityWhoamiResponse } from "@/lucern/packages/client-core/src/identity";
|
|
4
|
-
export type { IdentitySummary } from "@/lucern/packages/domain-identity/src/whoami";
|
|
5
|
-
export { LucernApiError };
|
|
6
|
-
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
7
|
-
export type IdentityClientConfig = GatewayClientConfig;
|
|
8
|
-
export type { IdentityWhoamiResponse };
|
|
9
|
-
/**
|
|
10
|
-
* Create the identity client for principals and API keys.
|
|
11
|
-
*/
|
|
12
|
-
export declare function createIdentityClient(config?: IdentityClientConfig): {
|
|
13
|
-
/**
|
|
14
|
-
* Resolve the current authenticated identity summary.
|
|
15
|
-
*/
|
|
16
|
-
whoami(): Promise<IdentityWhoamiResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* List principals in the current identity scope.
|
|
19
|
-
*/
|
|
20
|
-
listPrincipals(query?: GatewayScope & {
|
|
21
|
-
status?: string;
|
|
22
|
-
principalType?: string;
|
|
23
|
-
query?: string;
|
|
24
|
-
limit?: number;
|
|
25
|
-
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "principals">>>;
|
|
26
|
-
/**
|
|
27
|
-
* Create a principal.
|
|
28
|
-
*/
|
|
29
|
-
createPrincipal(input: GatewayScope & {
|
|
30
|
-
principalId: string;
|
|
31
|
-
principalType: "user" | "group" | "service" | "external_viewer";
|
|
32
|
-
clerkId?: string;
|
|
33
|
-
email?: string;
|
|
34
|
-
displayName?: string;
|
|
35
|
-
status?: "active" | "disabled" | "revoked";
|
|
36
|
-
metadata?: JsonObject;
|
|
37
|
-
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
38
|
-
/**
|
|
39
|
-
* Update a principal.
|
|
40
|
-
*/
|
|
41
|
-
updatePrincipal(input: GatewayScope & {
|
|
42
|
-
principalId: string;
|
|
43
|
-
principalType: "user" | "group" | "service" | "external_viewer";
|
|
44
|
-
clerkId?: string;
|
|
45
|
-
email?: string;
|
|
46
|
-
displayName?: string;
|
|
47
|
-
status?: "active" | "disabled" | "revoked";
|
|
48
|
-
metadata?: JsonObject;
|
|
49
|
-
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use createPrincipal or updatePrincipal.
|
|
52
|
-
*/
|
|
53
|
-
upsertPrincipal(input: GatewayScope & {
|
|
54
|
-
principalId: string;
|
|
55
|
-
principalType: "user" | "group" | "service" | "external_viewer";
|
|
56
|
-
clerkId?: string;
|
|
57
|
-
email?: string;
|
|
58
|
-
displayName?: string;
|
|
59
|
-
status?: "active" | "disabled" | "revoked";
|
|
60
|
-
metadata?: JsonObject;
|
|
61
|
-
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
62
|
-
/**
|
|
63
|
-
* List keys in the current identity scope.
|
|
64
|
-
*/
|
|
65
|
-
listKeys(query?: GatewayScope & {
|
|
66
|
-
principalId?: string;
|
|
67
|
-
status?: string;
|
|
68
|
-
limit?: number;
|
|
69
|
-
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "keys">>>;
|
|
70
|
-
/**
|
|
71
|
-
* Create an API key.
|
|
72
|
-
*/
|
|
73
|
-
createKey(input: GatewayScope & {
|
|
74
|
-
principalId: string;
|
|
75
|
-
keyId?: string;
|
|
76
|
-
token?: string;
|
|
77
|
-
scopes?: string[];
|
|
78
|
-
environment?: "sandbox" | "production";
|
|
79
|
-
expiresInDays?: number;
|
|
80
|
-
rateLimitTier?: "free" | "developer" | "partner";
|
|
81
|
-
metadata?: JsonObject;
|
|
82
|
-
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
83
|
-
/**
|
|
84
|
-
* Rotate an API key.
|
|
85
|
-
*/
|
|
86
|
-
rotateKey(keyId: string, input?: {
|
|
87
|
-
replacementKeyId?: string;
|
|
88
|
-
replacementToken?: string;
|
|
89
|
-
replacementExpiresInDays?: number;
|
|
90
|
-
gracePeriodHours?: number;
|
|
91
|
-
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
92
|
-
/**
|
|
93
|
-
* Delete an API key by revoking it.
|
|
94
|
-
*/
|
|
95
|
-
deleteKey(keyId: string, input?: {
|
|
96
|
-
reason?: string;
|
|
97
|
-
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
98
|
-
/**
|
|
99
|
-
* @deprecated Use deleteKey.
|
|
100
|
-
*/
|
|
101
|
-
revokeKey(keyId: string, input?: {
|
|
102
|
-
reason?: string;
|
|
103
|
-
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
104
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export * from "./adminClient";
|
|
2
|
-
export * from "./answersClient";
|
|
3
|
-
export * from "./audiencesClient";
|
|
4
|
-
export * from "./auditClient";
|
|
5
|
-
export * from "./beliefsClient";
|
|
6
|
-
export * from "./client";
|
|
7
|
-
export * from "./contracts/api-enums.contract";
|
|
8
|
-
export * from "@lucern/contracts/mcp-tools.contract";
|
|
9
|
-
export * from "@lucern/contracts/workflow-runtime.contract";
|
|
10
|
-
export * from "./controlObjectOwnership";
|
|
11
|
-
export * from "./coreClient";
|
|
12
|
-
export * from "./contextClient";
|
|
13
|
-
export * from "./customTools";
|
|
14
|
-
export * from "./decisionsClient";
|
|
15
|
-
export * from "./graphClient";
|
|
16
|
-
export * from "./harnessClient";
|
|
17
|
-
export * from "./identityClient";
|
|
18
|
-
export * from "./learningClient";
|
|
19
|
-
export * from "./mcpParityClient";
|
|
20
|
-
export * from "./ontologyClient";
|
|
21
|
-
export * from "./packsClient";
|
|
22
|
-
export * from "./policyClient";
|
|
23
|
-
export * from "./reportsClient";
|
|
24
|
-
export * from "./schemaClient";
|
|
25
|
-
export * from "./topicsClient";
|
|
26
|
-
export * from "./types";
|
|
27
|
-
export * from "./version";
|
|
28
|
-
export * from "./workflowClient";
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig } from "./coreClient";
|
|
2
|
-
import type { TopicIdentifierInput } from "./types";
|
|
3
|
-
export type LearningClientConfig = GatewayClientConfig;
|
|
4
|
-
/**
|
|
5
|
-
* Create the learning client for execution telemetry reads.
|
|
6
|
-
*/
|
|
7
|
-
export declare function createLearningClient(config?: LearningClientConfig): {
|
|
8
|
-
/**
|
|
9
|
-
* List recent execution records.
|
|
10
|
-
*/
|
|
11
|
-
listRecentExecutions(args?: {
|
|
12
|
-
namespace?: string;
|
|
13
|
-
topicId?: string;
|
|
14
|
-
/** @deprecated Use topicId. */
|
|
15
|
-
projectId?: string;
|
|
16
|
-
audienceMode?: string;
|
|
17
|
-
success?: boolean;
|
|
18
|
-
limit?: number;
|
|
19
|
-
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use listRecentExecutions.
|
|
22
|
-
*/
|
|
23
|
-
getRecentExecutions(args?: {
|
|
24
|
-
namespace?: string;
|
|
25
|
-
topicId?: string;
|
|
26
|
-
/** @deprecated Use topicId. */
|
|
27
|
-
projectId?: string;
|
|
28
|
-
audienceMode?: string;
|
|
29
|
-
success?: boolean;
|
|
30
|
-
limit?: number;
|
|
31
|
-
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
|
|
32
|
-
/**
|
|
33
|
-
* Get aggregate execution statistics.
|
|
34
|
-
*/
|
|
35
|
-
getExecutionStats(args?: {
|
|
36
|
-
namespace?: string;
|
|
37
|
-
topicId?: string;
|
|
38
|
-
/** @deprecated Use topicId. */
|
|
39
|
-
projectId?: string;
|
|
40
|
-
audienceMode?: string;
|
|
41
|
-
hours?: number;
|
|
42
|
-
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
43
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type McpParityMethod = {
|
|
2
|
-
toolName: string;
|
|
3
|
-
methodPath: string;
|
|
4
|
-
kind: "read" | "mutation";
|
|
5
|
-
};
|
|
6
|
-
export declare const SDK_MCP_PARITY_METHODS: readonly McpParityMethod[];
|
|
7
|
-
export declare const SDK_MCP_PARITY_METHOD_PATHS: string[];
|
|
8
|
-
export declare const SDK_MCP_PARITY_TOOL_NAMES: string[];
|