@lucern/sdk 0.2.0-alpha.1
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 +97 -0
- package/dist/index.js +8980 -0
- package/dist/index.js.map +1 -0
- package/dist/lucern/contracts/src/auth-session.contract.d.ts +53 -0
- package/dist/lucern/contracts/src/context-pack.contract.d.ts +494 -0
- package/dist/lucern/contracts/src/lens-filter.contract.d.ts +70 -0
- package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +84 -0
- package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +151 -0
- package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +161 -0
- package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +119 -0
- package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +18 -0
- package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +78 -0
- package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +53 -0
- package/dist/lucern/packages/client-core/src/beliefs.d.ts +30 -0
- package/dist/lucern/packages/client-core/src/context.d.ts +29 -0
- package/dist/lucern/packages/client-core/src/contradictions.d.ts +11 -0
- package/dist/lucern/packages/client-core/src/edges.d.ts +11 -0
- package/dist/lucern/packages/client-core/src/events.d.ts +9 -0
- package/dist/lucern/packages/client-core/src/evidence.d.ts +21 -0
- package/dist/lucern/packages/client-core/src/graph.d.ts +17 -0
- package/dist/lucern/packages/client-core/src/identity.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/ids.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/ontologies.d.ts +13 -0
- package/dist/lucern/packages/client-core/src/questions.d.ts +39 -0
- package/dist/lucern/packages/client-core/src/search.d.ts +7 -0
- package/dist/lucern/packages/client-core/src/tasks.d.ts +13 -0
- package/dist/lucern/packages/client-core/src/topics.d.ts +17 -0
- package/dist/lucern/packages/client-core/src/webhooks.d.ts +35 -0
- package/dist/lucern/packages/client-core/src/worktrees.d.ts +17 -0
- package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +283 -0
- package/dist/lucern/packages/domain-beliefs/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-context/src/compile.d.ts +11 -0
- package/dist/lucern/packages/domain-context/src/context-pack-compiler.d.ts +101 -0
- package/dist/lucern/packages/domain-context/src/index.d.ts +4 -0
- package/dist/lucern/packages/domain-context/src/ports.d.ts +58 -0
- package/dist/lucern/packages/domain-context/src/public-types.d.ts +1 -0
- package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +59 -0
- package/dist/lucern/packages/domain-edges/src/edges.d.ts +91 -0
- package/dist/lucern/packages/domain-edges/src/index.d.ts +2 -0
- package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +115 -0
- package/dist/lucern/packages/domain-evidence/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-graph/src/graph.d.ts +150 -0
- package/dist/lucern/packages/domain-identity/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-identity/src/whoami.d.ts +13 -0
- package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +123 -0
- package/dist/lucern/packages/domain-questions/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-questions/src/questions.d.ts +147 -0
- package/dist/lucern/packages/domain-search/src/search.d.ts +97 -0
- package/dist/lucern/packages/domain-tasks/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +102 -0
- package/dist/lucern/packages/domain-topics/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-topics/src/topics.d.ts +147 -0
- package/dist/lucern/packages/domain-worktrees/src/index.d.ts +1 -0
- package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +185 -0
- package/dist/lucern/packages/events/src/index.d.ts +4 -0
- package/dist/lucern/packages/events/src/matching.d.ts +3 -0
- package/dist/lucern/packages/events/src/outbox.d.ts +15 -0
- package/dist/lucern/packages/events/src/types.d.ts +151 -0
- package/dist/lucern/packages/events/src/webhooks.d.ts +9 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +15 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +12 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +7 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +7 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +6 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +21 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +5 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +8 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +39 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +5 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +8 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +16 -0
- package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +10 -0
- package/dist/lucern/packages/sdk-typescript/src/index.d.ts +28 -0
- package/dist/packages/sdk/src/adminClient.d.ts +89 -0
- package/dist/packages/sdk/src/answersClient.d.ts +5 -0
- package/dist/packages/sdk/src/audiencesClient.d.ts +87 -0
- package/dist/packages/sdk/src/auditClient.d.ts +23 -0
- package/dist/packages/sdk/src/beliefsClient.d.ts +54 -0
- package/dist/packages/sdk/src/client.d.ts +1610 -0
- package/dist/packages/sdk/src/contextClient.d.ts +9 -0
- package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +58 -0
- package/dist/packages/sdk/src/controlObjectOwnership.d.ts +293 -0
- package/dist/packages/sdk/src/coreClient.d.ts +120 -0
- package/dist/packages/sdk/src/customTools.d.ts +65 -0
- package/dist/packages/sdk/src/decisionsClient.d.ts +110 -0
- package/dist/packages/sdk/src/graphClient.d.ts +209 -0
- package/dist/packages/sdk/src/harnessClient.d.ts +222 -0
- package/dist/packages/sdk/src/identityClient.d.ts +104 -0
- package/dist/packages/sdk/src/index.d.ts +28 -0
- package/dist/packages/sdk/src/learningClient.d.ts +43 -0
- package/dist/packages/sdk/src/mcpParityClient.d.ts +68 -0
- package/dist/packages/sdk/src/mcpParitySurface.d.ts +8 -0
- package/dist/packages/sdk/src/ontologyClient.d.ts +115 -0
- package/dist/packages/sdk/src/packsClient.d.ts +101 -0
- package/dist/packages/sdk/src/policyClient.d.ts +204 -0
- package/dist/packages/sdk/src/reportsClient.d.ts +31 -0
- package/dist/packages/sdk/src/schemaClient.d.ts +54 -0
- package/dist/packages/sdk/src/sdkSurface.d.ts +56 -0
- package/dist/packages/sdk/src/topicsClient.d.ts +45 -0
- package/dist/packages/sdk/src/types.d.ts +489 -0
- package/dist/packages/sdk/src/version.d.ts +2 -0
- package/dist/packages/sdk/src/workflowClient.d.ts +274 -0
- package/package.json +56 -0
|
@@ -0,0 +1,9 @@
|
|
|
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 };
|
|
@@ -0,0 +1,58 @@
|
|
|
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];
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
export declare const CONTROL_OBJECT_KINDS: readonly ["tenant", "workspace", "principal", "tool", "pack", "ontology", "belief", "policy_rule"];
|
|
2
|
+
export type ControlObjectKind = (typeof CONTROL_OBJECT_KINDS)[number];
|
|
3
|
+
export declare const CONTROL_OBJECT_OWNER_SCOPES: readonly ["platform", "tenant", "workspace", "resource"];
|
|
4
|
+
export type ControlObjectOwnerScope = (typeof CONTROL_OBJECT_OWNER_SCOPES)[number];
|
|
5
|
+
export declare const CONTROL_OBJECT_EDIT_SURFACES: readonly ["platform_admin", "tenant_admin", "workspace_admin", "graph_worktree"];
|
|
6
|
+
export type ControlObjectEditSurface = (typeof CONTROL_OBJECT_EDIT_SURFACES)[number];
|
|
7
|
+
export declare const CONTROL_OBJECT_INHERITANCE_RULES: readonly ["none", "platform_seed_to_tenant", "tenant_default_to_workspace", "workspace_narrowing_only", "pack_overlay_to_tenant", "topic_lineage_to_resource"];
|
|
8
|
+
export type ControlObjectInheritanceRule = (typeof CONTROL_OBJECT_INHERITANCE_RULES)[number];
|
|
9
|
+
export declare const CONTROL_OBJECT_BLAST_RADII: readonly ["platform", "tenant", "workspace", "resource"];
|
|
10
|
+
export type ControlObjectBlastRadius = (typeof CONTROL_OBJECT_BLAST_RADII)[number];
|
|
11
|
+
export type ControlObjectOwnershipCase = {
|
|
12
|
+
caseKey: string;
|
|
13
|
+
caseLabel: string;
|
|
14
|
+
kind: ControlObjectKind;
|
|
15
|
+
canonicalOwnerScope: ControlObjectOwnerScope;
|
|
16
|
+
editSurface: ControlObjectEditSurface;
|
|
17
|
+
inheritanceRule: ControlObjectInheritanceRule;
|
|
18
|
+
blastRadius: ControlObjectBlastRadius;
|
|
19
|
+
};
|
|
20
|
+
export type ControlObjectOwnershipMatrix = Record<ControlObjectKind, readonly ControlObjectOwnershipCase[]>;
|
|
21
|
+
export type ControlObjectOwnershipContract = {
|
|
22
|
+
version: "1.0.0";
|
|
23
|
+
kinds: readonly ControlObjectKind[];
|
|
24
|
+
ownerScopes: readonly ControlObjectOwnerScope[];
|
|
25
|
+
editSurfaces: readonly ControlObjectEditSurface[];
|
|
26
|
+
inheritanceRules: readonly ControlObjectInheritanceRule[];
|
|
27
|
+
blastRadii: readonly ControlObjectBlastRadius[];
|
|
28
|
+
matrix: ControlObjectOwnershipMatrix;
|
|
29
|
+
rows: readonly ControlObjectOwnershipCase[];
|
|
30
|
+
};
|
|
31
|
+
export declare const CONTROL_OBJECT_OWNERSHIP_MATRIX: {
|
|
32
|
+
readonly tenant: readonly [{
|
|
33
|
+
readonly caseKey: "platform-record";
|
|
34
|
+
readonly caseLabel: "Platform Record";
|
|
35
|
+
readonly kind: "tenant";
|
|
36
|
+
readonly canonicalOwnerScope: "platform";
|
|
37
|
+
readonly editSurface: "platform_admin";
|
|
38
|
+
readonly inheritanceRule: "none";
|
|
39
|
+
readonly blastRadius: "tenant";
|
|
40
|
+
}];
|
|
41
|
+
readonly workspace: readonly [{
|
|
42
|
+
readonly caseKey: "tenant-workspace";
|
|
43
|
+
readonly caseLabel: "Tenant Workspace";
|
|
44
|
+
readonly kind: "workspace";
|
|
45
|
+
readonly canonicalOwnerScope: "tenant";
|
|
46
|
+
readonly editSurface: "tenant_admin";
|
|
47
|
+
readonly inheritanceRule: "tenant_default_to_workspace";
|
|
48
|
+
readonly blastRadius: "workspace";
|
|
49
|
+
}];
|
|
50
|
+
readonly principal: readonly [{
|
|
51
|
+
readonly caseKey: "tenant-principal";
|
|
52
|
+
readonly caseLabel: "Tenant Principal";
|
|
53
|
+
readonly kind: "principal";
|
|
54
|
+
readonly canonicalOwnerScope: "tenant";
|
|
55
|
+
readonly editSurface: "tenant_admin";
|
|
56
|
+
readonly inheritanceRule: "workspace_narrowing_only";
|
|
57
|
+
readonly blastRadius: "resource";
|
|
58
|
+
}];
|
|
59
|
+
readonly tool: readonly [{
|
|
60
|
+
readonly caseKey: "platform-core";
|
|
61
|
+
readonly caseLabel: "Platform Core";
|
|
62
|
+
readonly kind: "tool";
|
|
63
|
+
readonly canonicalOwnerScope: "platform";
|
|
64
|
+
readonly editSurface: "platform_admin";
|
|
65
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
66
|
+
readonly blastRadius: "platform";
|
|
67
|
+
}, {
|
|
68
|
+
readonly caseKey: "tenant-custom";
|
|
69
|
+
readonly caseLabel: "Tenant Custom";
|
|
70
|
+
readonly kind: "tool";
|
|
71
|
+
readonly canonicalOwnerScope: "tenant";
|
|
72
|
+
readonly editSurface: "tenant_admin";
|
|
73
|
+
readonly inheritanceRule: "tenant_default_to_workspace";
|
|
74
|
+
readonly blastRadius: "tenant";
|
|
75
|
+
}];
|
|
76
|
+
readonly pack: readonly [{
|
|
77
|
+
readonly caseKey: "platform-definition";
|
|
78
|
+
readonly caseLabel: "Platform Definition";
|
|
79
|
+
readonly kind: "pack";
|
|
80
|
+
readonly canonicalOwnerScope: "platform";
|
|
81
|
+
readonly editSurface: "platform_admin";
|
|
82
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
83
|
+
readonly blastRadius: "platform";
|
|
84
|
+
}, {
|
|
85
|
+
readonly caseKey: "tenant-installation";
|
|
86
|
+
readonly caseLabel: "Tenant Installation";
|
|
87
|
+
readonly kind: "pack";
|
|
88
|
+
readonly canonicalOwnerScope: "tenant";
|
|
89
|
+
readonly editSurface: "tenant_admin";
|
|
90
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
91
|
+
readonly blastRadius: "tenant";
|
|
92
|
+
}];
|
|
93
|
+
readonly ontology: readonly [{
|
|
94
|
+
readonly caseKey: "platform-base";
|
|
95
|
+
readonly caseLabel: "Platform Base";
|
|
96
|
+
readonly kind: "ontology";
|
|
97
|
+
readonly canonicalOwnerScope: "platform";
|
|
98
|
+
readonly editSurface: "platform_admin";
|
|
99
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
100
|
+
readonly blastRadius: "platform";
|
|
101
|
+
}, {
|
|
102
|
+
readonly caseKey: "pack-overlay";
|
|
103
|
+
readonly caseLabel: "Pack Overlay";
|
|
104
|
+
readonly kind: "ontology";
|
|
105
|
+
readonly canonicalOwnerScope: "platform";
|
|
106
|
+
readonly editSurface: "platform_admin";
|
|
107
|
+
readonly inheritanceRule: "pack_overlay_to_tenant";
|
|
108
|
+
readonly blastRadius: "platform";
|
|
109
|
+
}, {
|
|
110
|
+
readonly caseKey: "tenant-extension";
|
|
111
|
+
readonly caseLabel: "Tenant Extension";
|
|
112
|
+
readonly kind: "ontology";
|
|
113
|
+
readonly canonicalOwnerScope: "tenant";
|
|
114
|
+
readonly editSurface: "tenant_admin";
|
|
115
|
+
readonly inheritanceRule: "topic_lineage_to_resource";
|
|
116
|
+
readonly blastRadius: "tenant";
|
|
117
|
+
}];
|
|
118
|
+
readonly belief: readonly [{
|
|
119
|
+
readonly caseKey: "topic-resource";
|
|
120
|
+
readonly caseLabel: "Topic Resource";
|
|
121
|
+
readonly kind: "belief";
|
|
122
|
+
readonly canonicalOwnerScope: "resource";
|
|
123
|
+
readonly editSurface: "graph_worktree";
|
|
124
|
+
readonly inheritanceRule: "topic_lineage_to_resource";
|
|
125
|
+
readonly blastRadius: "resource";
|
|
126
|
+
}];
|
|
127
|
+
readonly policy_rule: readonly [{
|
|
128
|
+
readonly caseKey: "platform-baseline";
|
|
129
|
+
readonly caseLabel: "Platform Baseline";
|
|
130
|
+
readonly kind: "policy_rule";
|
|
131
|
+
readonly canonicalOwnerScope: "platform";
|
|
132
|
+
readonly editSurface: "platform_admin";
|
|
133
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
134
|
+
readonly blastRadius: "platform";
|
|
135
|
+
}, {
|
|
136
|
+
readonly caseKey: "tenant-bundle";
|
|
137
|
+
readonly caseLabel: "Tenant Bundle";
|
|
138
|
+
readonly kind: "policy_rule";
|
|
139
|
+
readonly canonicalOwnerScope: "tenant";
|
|
140
|
+
readonly editSurface: "tenant_admin";
|
|
141
|
+
readonly inheritanceRule: "tenant_default_to_workspace";
|
|
142
|
+
readonly blastRadius: "tenant";
|
|
143
|
+
}, {
|
|
144
|
+
readonly caseKey: "workspace-override";
|
|
145
|
+
readonly caseLabel: "Workspace Override";
|
|
146
|
+
readonly kind: "policy_rule";
|
|
147
|
+
readonly canonicalOwnerScope: "workspace";
|
|
148
|
+
readonly editSurface: "workspace_admin";
|
|
149
|
+
readonly inheritanceRule: "none";
|
|
150
|
+
readonly blastRadius: "workspace";
|
|
151
|
+
}];
|
|
152
|
+
};
|
|
153
|
+
export declare const CONTROL_OBJECT_OWNERSHIP_ROWS: readonly ControlObjectOwnershipCase[];
|
|
154
|
+
/** The canonical ownership contract exposed by the SDK. */
|
|
155
|
+
export declare const CONTROL_OBJECT_OWNERSHIP_CONTRACT: {
|
|
156
|
+
readonly version: "1.0.0";
|
|
157
|
+
readonly kinds: readonly ["tenant", "workspace", "principal", "tool", "pack", "ontology", "belief", "policy_rule"];
|
|
158
|
+
readonly ownerScopes: readonly ["platform", "tenant", "workspace", "resource"];
|
|
159
|
+
readonly editSurfaces: readonly ["platform_admin", "tenant_admin", "workspace_admin", "graph_worktree"];
|
|
160
|
+
readonly inheritanceRules: readonly ["none", "platform_seed_to_tenant", "tenant_default_to_workspace", "workspace_narrowing_only", "pack_overlay_to_tenant", "topic_lineage_to_resource"];
|
|
161
|
+
readonly blastRadii: readonly ["platform", "tenant", "workspace", "resource"];
|
|
162
|
+
readonly matrix: {
|
|
163
|
+
readonly tenant: readonly [{
|
|
164
|
+
readonly caseKey: "platform-record";
|
|
165
|
+
readonly caseLabel: "Platform Record";
|
|
166
|
+
readonly kind: "tenant";
|
|
167
|
+
readonly canonicalOwnerScope: "platform";
|
|
168
|
+
readonly editSurface: "platform_admin";
|
|
169
|
+
readonly inheritanceRule: "none";
|
|
170
|
+
readonly blastRadius: "tenant";
|
|
171
|
+
}];
|
|
172
|
+
readonly workspace: readonly [{
|
|
173
|
+
readonly caseKey: "tenant-workspace";
|
|
174
|
+
readonly caseLabel: "Tenant Workspace";
|
|
175
|
+
readonly kind: "workspace";
|
|
176
|
+
readonly canonicalOwnerScope: "tenant";
|
|
177
|
+
readonly editSurface: "tenant_admin";
|
|
178
|
+
readonly inheritanceRule: "tenant_default_to_workspace";
|
|
179
|
+
readonly blastRadius: "workspace";
|
|
180
|
+
}];
|
|
181
|
+
readonly principal: readonly [{
|
|
182
|
+
readonly caseKey: "tenant-principal";
|
|
183
|
+
readonly caseLabel: "Tenant Principal";
|
|
184
|
+
readonly kind: "principal";
|
|
185
|
+
readonly canonicalOwnerScope: "tenant";
|
|
186
|
+
readonly editSurface: "tenant_admin";
|
|
187
|
+
readonly inheritanceRule: "workspace_narrowing_only";
|
|
188
|
+
readonly blastRadius: "resource";
|
|
189
|
+
}];
|
|
190
|
+
readonly tool: readonly [{
|
|
191
|
+
readonly caseKey: "platform-core";
|
|
192
|
+
readonly caseLabel: "Platform Core";
|
|
193
|
+
readonly kind: "tool";
|
|
194
|
+
readonly canonicalOwnerScope: "platform";
|
|
195
|
+
readonly editSurface: "platform_admin";
|
|
196
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
197
|
+
readonly blastRadius: "platform";
|
|
198
|
+
}, {
|
|
199
|
+
readonly caseKey: "tenant-custom";
|
|
200
|
+
readonly caseLabel: "Tenant Custom";
|
|
201
|
+
readonly kind: "tool";
|
|
202
|
+
readonly canonicalOwnerScope: "tenant";
|
|
203
|
+
readonly editSurface: "tenant_admin";
|
|
204
|
+
readonly inheritanceRule: "tenant_default_to_workspace";
|
|
205
|
+
readonly blastRadius: "tenant";
|
|
206
|
+
}];
|
|
207
|
+
readonly pack: readonly [{
|
|
208
|
+
readonly caseKey: "platform-definition";
|
|
209
|
+
readonly caseLabel: "Platform Definition";
|
|
210
|
+
readonly kind: "pack";
|
|
211
|
+
readonly canonicalOwnerScope: "platform";
|
|
212
|
+
readonly editSurface: "platform_admin";
|
|
213
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
214
|
+
readonly blastRadius: "platform";
|
|
215
|
+
}, {
|
|
216
|
+
readonly caseKey: "tenant-installation";
|
|
217
|
+
readonly caseLabel: "Tenant Installation";
|
|
218
|
+
readonly kind: "pack";
|
|
219
|
+
readonly canonicalOwnerScope: "tenant";
|
|
220
|
+
readonly editSurface: "tenant_admin";
|
|
221
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
222
|
+
readonly blastRadius: "tenant";
|
|
223
|
+
}];
|
|
224
|
+
readonly ontology: readonly [{
|
|
225
|
+
readonly caseKey: "platform-base";
|
|
226
|
+
readonly caseLabel: "Platform Base";
|
|
227
|
+
readonly kind: "ontology";
|
|
228
|
+
readonly canonicalOwnerScope: "platform";
|
|
229
|
+
readonly editSurface: "platform_admin";
|
|
230
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
231
|
+
readonly blastRadius: "platform";
|
|
232
|
+
}, {
|
|
233
|
+
readonly caseKey: "pack-overlay";
|
|
234
|
+
readonly caseLabel: "Pack Overlay";
|
|
235
|
+
readonly kind: "ontology";
|
|
236
|
+
readonly canonicalOwnerScope: "platform";
|
|
237
|
+
readonly editSurface: "platform_admin";
|
|
238
|
+
readonly inheritanceRule: "pack_overlay_to_tenant";
|
|
239
|
+
readonly blastRadius: "platform";
|
|
240
|
+
}, {
|
|
241
|
+
readonly caseKey: "tenant-extension";
|
|
242
|
+
readonly caseLabel: "Tenant Extension";
|
|
243
|
+
readonly kind: "ontology";
|
|
244
|
+
readonly canonicalOwnerScope: "tenant";
|
|
245
|
+
readonly editSurface: "tenant_admin";
|
|
246
|
+
readonly inheritanceRule: "topic_lineage_to_resource";
|
|
247
|
+
readonly blastRadius: "tenant";
|
|
248
|
+
}];
|
|
249
|
+
readonly belief: readonly [{
|
|
250
|
+
readonly caseKey: "topic-resource";
|
|
251
|
+
readonly caseLabel: "Topic Resource";
|
|
252
|
+
readonly kind: "belief";
|
|
253
|
+
readonly canonicalOwnerScope: "resource";
|
|
254
|
+
readonly editSurface: "graph_worktree";
|
|
255
|
+
readonly inheritanceRule: "topic_lineage_to_resource";
|
|
256
|
+
readonly blastRadius: "resource";
|
|
257
|
+
}];
|
|
258
|
+
readonly policy_rule: readonly [{
|
|
259
|
+
readonly caseKey: "platform-baseline";
|
|
260
|
+
readonly caseLabel: "Platform Baseline";
|
|
261
|
+
readonly kind: "policy_rule";
|
|
262
|
+
readonly canonicalOwnerScope: "platform";
|
|
263
|
+
readonly editSurface: "platform_admin";
|
|
264
|
+
readonly inheritanceRule: "platform_seed_to_tenant";
|
|
265
|
+
readonly blastRadius: "platform";
|
|
266
|
+
}, {
|
|
267
|
+
readonly caseKey: "tenant-bundle";
|
|
268
|
+
readonly caseLabel: "Tenant Bundle";
|
|
269
|
+
readonly kind: "policy_rule";
|
|
270
|
+
readonly canonicalOwnerScope: "tenant";
|
|
271
|
+
readonly editSurface: "tenant_admin";
|
|
272
|
+
readonly inheritanceRule: "tenant_default_to_workspace";
|
|
273
|
+
readonly blastRadius: "tenant";
|
|
274
|
+
}, {
|
|
275
|
+
readonly caseKey: "workspace-override";
|
|
276
|
+
readonly caseLabel: "Workspace Override";
|
|
277
|
+
readonly kind: "policy_rule";
|
|
278
|
+
readonly canonicalOwnerScope: "workspace";
|
|
279
|
+
readonly editSurface: "workspace_admin";
|
|
280
|
+
readonly inheritanceRule: "none";
|
|
281
|
+
readonly blastRadius: "workspace";
|
|
282
|
+
}];
|
|
283
|
+
};
|
|
284
|
+
readonly rows: readonly ControlObjectOwnershipCase[];
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* List ownership cases for one control-object kind or the full matrix.
|
|
288
|
+
*/
|
|
289
|
+
export declare function listControlObjectOwnershipCases(kind?: ControlObjectKind): readonly ControlObjectOwnershipCase[];
|
|
290
|
+
/**
|
|
291
|
+
* Get a specific ownership case by kind and case key.
|
|
292
|
+
*/
|
|
293
|
+
export declare function getControlObjectOwnershipCase(kind: ControlObjectKind, caseKey: string): ControlObjectOwnershipCase | undefined;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { JsonObject, JsonValue } from "./types";
|
|
2
|
+
export type GatewayScope = {
|
|
3
|
+
tenantId?: string;
|
|
4
|
+
workspaceId?: string;
|
|
5
|
+
};
|
|
6
|
+
export type PlatformGatewaySuccess<T> = {
|
|
7
|
+
success: true;
|
|
8
|
+
data: T;
|
|
9
|
+
correlationId: string;
|
|
10
|
+
policyTraceId: string | null;
|
|
11
|
+
idempotentReplay: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type PlatformGatewayFailure = {
|
|
14
|
+
success: false;
|
|
15
|
+
/**
|
|
16
|
+
* Error string is the canonical envelope field.
|
|
17
|
+
* Object form is legacy-only compatibility for older gateway responses.
|
|
18
|
+
*/
|
|
19
|
+
error: string | {
|
|
20
|
+
code: string;
|
|
21
|
+
message: string;
|
|
22
|
+
details?: JsonValue;
|
|
23
|
+
};
|
|
24
|
+
code?: string;
|
|
25
|
+
invariant?: string | null;
|
|
26
|
+
suggestion?: string | null;
|
|
27
|
+
details?: JsonValue;
|
|
28
|
+
legacyError?: {
|
|
29
|
+
code: string;
|
|
30
|
+
message: string;
|
|
31
|
+
details?: JsonValue;
|
|
32
|
+
};
|
|
33
|
+
correlationId: string;
|
|
34
|
+
policyTraceId: string | null;
|
|
35
|
+
};
|
|
36
|
+
export type PlatformGatewayEnvelope<T> = PlatformGatewaySuccess<T> | PlatformGatewayFailure;
|
|
37
|
+
export declare class LucernApiError extends Error {
|
|
38
|
+
readonly code: string;
|
|
39
|
+
readonly status: number;
|
|
40
|
+
readonly invariant?: string | null;
|
|
41
|
+
readonly suggestion?: string | null;
|
|
42
|
+
readonly details?: JsonValue;
|
|
43
|
+
readonly requestId?: string;
|
|
44
|
+
readonly correlationId?: string;
|
|
45
|
+
readonly policyTraceId?: string | null;
|
|
46
|
+
constructor(args: {
|
|
47
|
+
code: string;
|
|
48
|
+
message: string;
|
|
49
|
+
status: number;
|
|
50
|
+
invariant?: string | null;
|
|
51
|
+
suggestion?: string | null;
|
|
52
|
+
details?: JsonValue;
|
|
53
|
+
requestId?: string;
|
|
54
|
+
correlationId?: string;
|
|
55
|
+
policyTraceId?: string | null;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
export type GatewayHttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
59
|
+
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
60
|
+
export type GatewayRequestHookContext = {
|
|
61
|
+
requestId: string;
|
|
62
|
+
attempt: number;
|
|
63
|
+
maxRetries: number;
|
|
64
|
+
method: GatewayHttpMethod;
|
|
65
|
+
path: string;
|
|
66
|
+
url: string;
|
|
67
|
+
headers: Headers;
|
|
68
|
+
body?: string;
|
|
69
|
+
timeoutMs: number;
|
|
70
|
+
};
|
|
71
|
+
export type GatewayResponseHookContext = GatewayRequestHookContext & {
|
|
72
|
+
durationMs: number;
|
|
73
|
+
status?: number;
|
|
74
|
+
response?: Response;
|
|
75
|
+
error?: unknown;
|
|
76
|
+
correlationId?: string;
|
|
77
|
+
policyTraceId?: string | null;
|
|
78
|
+
idempotentReplay?: boolean;
|
|
79
|
+
retryAfterMs?: number | null;
|
|
80
|
+
willRetry: boolean;
|
|
81
|
+
};
|
|
82
|
+
export type GatewayClientConfig = {
|
|
83
|
+
baseUrl?: string;
|
|
84
|
+
fetchImpl?: FetchLike;
|
|
85
|
+
getAuthHeaders?: (() => Promise<Record<string, string>>) | (() => Record<string, string>);
|
|
86
|
+
/** Max retries for transient errors (5xx, network). Defaults to 2. */
|
|
87
|
+
maxRetries?: number;
|
|
88
|
+
/** Request timeout in ms. Defaults to 15000. */
|
|
89
|
+
timeoutMs?: number;
|
|
90
|
+
/** Optional timeout overrides by HTTP method. */
|
|
91
|
+
timeoutMsByMethod?: Partial<Record<GatewayHttpMethod, number>>;
|
|
92
|
+
/** Optional request ID factory used for correlation headers. */
|
|
93
|
+
requestIdFactory?: () => string;
|
|
94
|
+
/** Invoked before each request attempt, including retries. */
|
|
95
|
+
onRequest?: ((context: GatewayRequestHookContext) => void) | ((context: GatewayRequestHookContext) => Promise<void>);
|
|
96
|
+
/** Invoked after each request attempt, including retries and failures. */
|
|
97
|
+
onResponse?: ((context: GatewayResponseHookContext) => void) | ((context: GatewayResponseHookContext) => Promise<void>);
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Serialize a gateway query object into a URL query string.
|
|
101
|
+
*/
|
|
102
|
+
export declare function toQueryString(scope: GatewayScope & Record<string, string | number | boolean | undefined>): string;
|
|
103
|
+
/**
|
|
104
|
+
* Generate a random idempotency key for retry-safe writes.
|
|
105
|
+
*/
|
|
106
|
+
export declare function randomIdempotencyKey(): string;
|
|
107
|
+
/**
|
|
108
|
+
* Create the transport client used by all SDK modules.
|
|
109
|
+
*/
|
|
110
|
+
export declare function createGatewayRequestClient(config?: GatewayClientConfig): {
|
|
111
|
+
request: <T>(args: {
|
|
112
|
+
path: string;
|
|
113
|
+
method?: GatewayHttpMethod;
|
|
114
|
+
body?: JsonObject;
|
|
115
|
+
idempotencyKey?: string;
|
|
116
|
+
requestId?: string;
|
|
117
|
+
timeoutMs?: number;
|
|
118
|
+
}) => Promise<PlatformGatewaySuccess<T>>;
|
|
119
|
+
};
|
|
120
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
};
|