@lucern/sdk 0.2.0-alpha.12 → 0.2.0-alpha.2
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 +166 -609
- package/dist/index.js +3539 -6269
- package/dist/index.js.map +1 -1
- package/dist/{contracts → lucern/contracts/src}/auth-session.contract.d.ts +12 -14
- package/dist/{contracts → lucern/contracts/src}/context-pack.contract.d.ts +58 -56
- package/dist/{contracts → lucern/contracts/src}/lens-filter.contract.d.ts +8 -10
- 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/{contextPackCompiler.d.ts → lucern/packages/domain-context/src/context-pack-compiler.d.ts} +10 -11
- 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/{audiencesClient.d.ts → packages/sdk/src/audiencesClient.d.ts} +18 -30
- package/dist/packages/sdk/src/auditClient.d.ts +21 -0
- package/dist/packages/sdk/src/beliefsClient.d.ts +52 -0
- package/dist/packages/sdk/src/client.d.ts +1558 -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/{controlObjectOwnership.d.ts → packages/sdk/src/controlObjectOwnership.d.ts} +18 -35
- package/dist/{coreClient.d.ts → packages/sdk/src/coreClient.d.ts} +14 -38
- package/dist/packages/sdk/src/customTools.d.ts +65 -0
- package/dist/packages/sdk/src/decisionsClient.d.ts +97 -0
- package/dist/packages/sdk/src/graphClient.d.ts +191 -0
- package/dist/{harnessClient.d.ts → packages/sdk/src/harnessClient.d.ts} +33 -127
- 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 +37 -0
- package/dist/{mcpParityClient.d.ts → packages/sdk/src/mcpParityClient.d.ts} +5 -11
- package/dist/packages/sdk/src/mcpParitySurface.d.ts +8 -0
- package/dist/{ontologyClient.d.ts → packages/sdk/src/ontologyClient.d.ts} +22 -44
- package/dist/packages/sdk/src/packsClient.d.ts +101 -0
- package/dist/{policyClient.d.ts → packages/sdk/src/policyClient.d.ts} +18 -113
- 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 +55 -0
- package/dist/packages/sdk/src/topicsClient.d.ts +45 -0
- package/dist/packages/sdk/src/types.d.ts +470 -0
- package/dist/packages/sdk/src/version.d.ts +2 -0
- package/dist/packages/sdk/src/workflowClient.d.ts +252 -0
- package/package.json +37 -92
- package/CHANGELOG.md +0 -13
- package/dist/adminClient.d.ts +0 -409
- package/dist/adminClient.js +0 -755
- package/dist/adminClient.js.map +0 -1
- package/dist/answersClient.d.ts +0 -23
- package/dist/answersClient.js +0 -333
- package/dist/answersClient.js.map +0 -1
- package/dist/audience/index.d.ts +0 -38
- package/dist/audience/index.js +0 -110
- package/dist/audience/index.js.map +0 -1
- package/dist/audiencesClient.js +0 -472
- package/dist/audiencesClient.js.map +0 -1
- package/dist/auditClient.d.ts +0 -29
- package/dist/auditClient.js +0 -386
- package/dist/auditClient.js.map +0 -1
- package/dist/beliefs/index.d.ts +0 -465
- package/dist/beliefs/index.js +0 -6433
- package/dist/beliefs/index.js.map +0 -1
- package/dist/beliefs/lifecycle.d.ts +0 -24
- package/dist/beliefs/lifecycle.js +0 -98
- package/dist/beliefs/lifecycle.js.map +0 -1
- package/dist/beliefsClient.d.ts +0 -241
- package/dist/beliefsClient.js +0 -646
- package/dist/beliefsClient.js.map +0 -1
- package/dist/client.d.ts +0 -2398
- package/dist/client.js +0 -6411
- package/dist/client.js.map +0 -1
- package/dist/contextClient.d.ts +0 -27
- package/dist/contextClient.js +0 -396
- package/dist/contextClient.js.map +0 -1
- package/dist/contextFacade.d.ts +0 -2
- package/dist/contextFacade.js +0 -73
- package/dist/contextFacade.js.map +0 -1
- package/dist/contextPackCompiler.js +0 -1091
- package/dist/contextPackCompiler.js.map +0 -1
- package/dist/contextPackPolicy.d.ts +0 -84
- package/dist/contextPackPolicy.js +0 -347
- package/dist/contextPackPolicy.js.map +0 -1
- package/dist/contextPackSchema.d.ts +0 -7
- package/dist/contextPackSchema.js +0 -203
- package/dist/contextPackSchema.js.map +0 -1
- package/dist/contextTypes.d.ts +0 -135
- package/dist/contextTypes.js +0 -3
- package/dist/contextTypes.js.map +0 -1
- package/dist/contracts/api-enums.contract.d.ts +0 -81
- package/dist/contracts/api-enums.contract.js +0 -98
- package/dist/contracts/api-enums.contract.js.map +0 -1
- package/dist/contracts/auth-session.contract.js +0 -48
- package/dist/contracts/auth-session.contract.js.map +0 -1
- package/dist/contracts/context-pack.contract.js +0 -98
- package/dist/contracts/context-pack.contract.js.map +0 -1
- package/dist/contracts/contextPack.d.ts +0 -1
- package/dist/contracts/contextPack.js +0 -98
- package/dist/contracts/contextPack.js.map +0 -1
- package/dist/contracts/index.d.ts +0 -9
- package/dist/contracts/index.js +0 -4928
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/lens-filter.contract.js +0 -71
- package/dist/contracts/lens-filter.contract.js.map +0 -1
- package/dist/contracts/lens-workflow.contract.d.ts +0 -87
- package/dist/contracts/lens-workflow.contract.js +0 -123
- package/dist/contracts/lens-workflow.contract.js.map +0 -1
- package/dist/contracts/lensFilter.d.ts +0 -1
- package/dist/contracts/lensFilter.js +0 -71
- package/dist/contracts/lensFilter.js.map +0 -1
- package/dist/contracts/lensWorkflow.d.ts +0 -2
- package/dist/contracts/lensWorkflow.js +0 -123
- package/dist/contracts/lensWorkflow.js.map +0 -1
- package/dist/contracts/mcp-tools.contract.d.ts +0 -1
- package/dist/contracts/mcp-tools.contract.js +0 -3016
- package/dist/contracts/mcp-tools.contract.js.map +0 -1
- package/dist/contracts/mcpTools.d.ts +0 -1
- package/dist/contracts/mcpTools.js +0 -3016
- package/dist/contracts/mcpTools.js.map +0 -1
- package/dist/contracts/prompt.contract.d.ts +0 -26
- package/dist/contracts/prompt.contract.js +0 -12
- package/dist/contracts/prompt.contract.js.map +0 -1
- package/dist/contracts/prompt.d.ts +0 -1
- package/dist/contracts/prompt.js +0 -12
- package/dist/contracts/prompt.js.map +0 -1
- package/dist/contracts/sdk-tools.contract.d.ts +0 -2
- package/dist/contracts/sdk-tools.contract.js +0 -4164
- package/dist/contracts/sdk-tools.contract.js.map +0 -1
- package/dist/contracts/sdkTools.d.ts +0 -2
- package/dist/contracts/sdkTools.js +0 -4164
- package/dist/contracts/sdkTools.js.map +0 -1
- package/dist/contracts/workflow-runtime.contract.d.ts +0 -163
- package/dist/contracts/workflow-runtime.contract.js +0 -245
- package/dist/contracts/workflow-runtime.contract.js.map +0 -1
- package/dist/contracts/workflowRuntime.d.ts +0 -1
- package/dist/contracts/workflowRuntime.js +0 -245
- package/dist/contracts/workflowRuntime.js.map +0 -1
- package/dist/contradictions/index.d.ts +0 -158
- package/dist/contradictions/index.js +0 -6427
- package/dist/contradictions/index.js.map +0 -1
- package/dist/controlObjectOwnership.js +0 -215
- package/dist/controlObjectOwnership.js.map +0 -1
- package/dist/coreClient.js +0 -339
- package/dist/coreClient.js.map +0 -1
- package/dist/customTools.d.ts +0 -88
- package/dist/customTools.js +0 -248
- package/dist/customTools.js.map +0 -1
- package/dist/decisions/index.d.ts +0 -68
- package/dist/decisions/index.js +0 -6429
- package/dist/decisions/index.js.map +0 -1
- package/dist/decisionsClient.d.ts +0 -111
- package/dist/decisionsClient.js +0 -522
- package/dist/decisionsClient.js.map +0 -1
- package/dist/domainContext.d.ts +0 -1
- package/dist/domainContext.js +0 -3
- package/dist/domainContext.js.map +0 -1
- package/dist/edges/index.d.ts +0 -204
- package/dist/edges/index.js +0 -6428
- package/dist/edges/index.js.map +0 -1
- package/dist/events.d.ts +0 -178
- package/dist/events.js +0 -251
- package/dist/events.js.map +0 -1
- package/dist/eventsCore.d.ts +0 -49
- package/dist/eventsCore.js +0 -429
- package/dist/eventsCore.js.map +0 -1
- package/dist/evidence/index.d.ts +0 -295
- package/dist/evidence/index.js +0 -6428
- package/dist/evidence/index.js.map +0 -1
- package/dist/evidenceClient.d.ts +0 -119
- package/dist/evidenceClient.js +0 -350
- package/dist/evidenceClient.js.map +0 -1
- package/dist/facade/context.d.ts +0 -18
- package/dist/facade/context.js +0 -73
- package/dist/facade/context.js.map +0 -1
- package/dist/gatewayFacades.d.ts +0 -589
- package/dist/gatewayFacades.js +0 -2006
- package/dist/gatewayFacades.js.map +0 -1
- package/dist/graphClient.d.ts +0 -271
- package/dist/graphClient.js +0 -698
- package/dist/graphClient.js.map +0 -1
- package/dist/harnessClient.js +0 -607
- package/dist/harnessClient.js.map +0 -1
- package/dist/identityClient.d.ts +0 -140
- package/dist/identityClient.js +0 -497
- package/dist/identityClient.js.map +0 -1
- package/dist/index.d.ts +0 -45
- package/dist/learningClient.d.ts +0 -46
- package/dist/learningClient.js +0 -409
- package/dist/learningClient.js.map +0 -1
- package/dist/lenses/index.d.ts +0 -194
- package/dist/lenses/index.js +0 -6427
- package/dist/lenses/index.js.map +0 -1
- package/dist/mcpParityClient.js +0 -516
- package/dist/mcpParityClient.js.map +0 -1
- package/dist/mcpParitySurface.d.ts +0 -12
- package/dist/mcpParitySurface.js +0 -65
- package/dist/mcpParitySurface.js.map +0 -1
- package/dist/mcpTools-DPZxowDX.d.ts +0 -254
- package/dist/nodes/index.d.ts +0 -62
- package/dist/nodes/index.js +0 -6429
- package/dist/nodes/index.js.map +0 -1
- package/dist/ontologies/index.d.ts +0 -178
- package/dist/ontologies/index.js +0 -6430
- package/dist/ontologies/index.js.map +0 -1
- package/dist/ontologyClient.js +0 -513
- package/dist/ontologyClient.js.map +0 -1
- package/dist/opinion.d.ts +0 -11
- package/dist/opinion.js +0 -35
- package/dist/opinion.js.map +0 -1
- package/dist/packRuntime.d.ts +0 -2
- package/dist/packRuntime.js +0 -3
- package/dist/packRuntime.js.map +0 -1
- package/dist/packsClient.d.ts +0 -131
- package/dist/packsClient.js +0 -525
- package/dist/packsClient.js.map +0 -1
- package/dist/policyClient.js +0 -625
- package/dist/policyClient.js.map +0 -1
- package/dist/questions/index.d.ts +0 -297
- package/dist/questions/index.js +0 -6430
- package/dist/questions/index.js.map +0 -1
- package/dist/realtime/index.d.ts +0 -29
- package/dist/realtime/index.js +0 -23
- package/dist/realtime/index.js.map +0 -1
- package/dist/realtime/refs.d.ts +0 -17
- package/dist/realtime/refs.js +0 -9
- package/dist/realtime/refs.js.map +0 -1
- package/dist/reportsClient.d.ts +0 -41
- package/dist/reportsClient.js +0 -418
- package/dist/reportsClient.js.map +0 -1
- package/dist/schemaClient.d.ts +0 -64
- package/dist/schemaClient.js +0 -434
- package/dist/schemaClient.js.map +0 -1
- package/dist/sdkSurface.d.ts +0 -61
- package/dist/sdkSurface.js +0 -112
- package/dist/sdkSurface.js.map +0 -1
- package/dist/sdkTools-CwXJDACb.d.ts +0 -150
- package/dist/sourcesClient.d.ts +0 -24
- package/dist/sourcesClient.js +0 -339
- package/dist/sourcesClient.js.map +0 -1
- package/dist/topics/index.d.ts +0 -68
- package/dist/topics/index.js +0 -6428
- package/dist/topics/index.js.map +0 -1
- package/dist/topicsClient.d.ts +0 -84
- package/dist/topicsClient.js +0 -492
- package/dist/topicsClient.js.map +0 -1
- package/dist/types.d.ts +0 -715
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
- package/dist/version.d.ts +0 -4
- package/dist/version.js +0 -6
- package/dist/version.js.map +0 -1
- package/dist/workflowClient.d.ts +0 -316
- package/dist/workflowClient.js +0 -830
- package/dist/workflowClient.js.map +0 -1
- package/dist/worktrees/index.d.ts +0 -210
- package/dist/worktrees/index.js +0 -6430
- package/dist/worktrees/index.js.map +0 -1
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
import { GatewayClientConfig, GatewayScope,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** Configuration for the harness client. Inherits gateway transport settings. */
|
|
9
|
-
type HarnessClientConfig = GatewayClientConfig;
|
|
10
|
-
type HarnessAgentGuardrails = {
|
|
11
|
-
isolationMode?: "direct" | "sandbox";
|
|
12
|
-
maxExecutionMs?: number;
|
|
13
|
-
heartbeatIntervalMs?: number;
|
|
14
|
-
maxToolCalls?: number;
|
|
15
|
-
allowNetworkEgress?: boolean;
|
|
16
|
-
allowedOrigins?: string[];
|
|
17
|
-
};
|
|
18
|
-
type HarnessAgentRuntimeConfig = {
|
|
19
|
-
entryPoint?: string;
|
|
20
|
-
callbackUrl?: string;
|
|
21
|
-
modelRouting?: "model_machine" | "tenant_proxy" | "bring_your_own";
|
|
22
|
-
auditMode?: "harness" | "master_control";
|
|
23
|
-
};
|
|
24
|
-
/** Input for creating or updating an agent definition in the harness registry. */
|
|
25
|
-
type HarnessAgentWriteInput = GatewayScope & {
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { JsonObject, JsonValue, TopicIdentifierInput } from "./types";
|
|
3
|
+
export { LucernApiError };
|
|
4
|
+
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
+
export type HarnessClientConfig = GatewayClientConfig;
|
|
6
|
+
export type HarnessAgentWriteInput = GatewayScope & {
|
|
26
7
|
agentDefinitionId?: string;
|
|
27
8
|
agentKey: string;
|
|
28
9
|
displayName: string;
|
|
@@ -32,23 +13,14 @@ type HarnessAgentWriteInput = GatewayScope & {
|
|
|
32
13
|
executionAdapter: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed";
|
|
33
14
|
scopeRequirements?: string[];
|
|
34
15
|
promptReleaseChannel?: "dev" | "staging" | "prod";
|
|
35
|
-
promptName?: string;
|
|
36
|
-
systemPrompt?: string;
|
|
37
|
-
toolIds?: string[];
|
|
38
|
-
modelSlot?: string;
|
|
39
|
-
requiredModelCapabilities?: string[];
|
|
40
16
|
parameterSchema?: JsonObject;
|
|
41
|
-
outputSchema?: JsonObject;
|
|
42
|
-
guardrails?: HarnessAgentGuardrails;
|
|
43
|
-
runtimeConfig?: HarnessAgentRuntimeConfig;
|
|
44
17
|
exampleInvocations?: Array<{
|
|
45
18
|
input: JsonObject;
|
|
46
19
|
expectedOutput?: JsonValue;
|
|
47
20
|
}>;
|
|
48
21
|
metadata?: JsonObject;
|
|
49
22
|
};
|
|
50
|
-
|
|
51
|
-
type HarnessToolWriteInput = GatewayScope & {
|
|
23
|
+
export type HarnessToolWriteInput = GatewayScope & {
|
|
52
24
|
toolId?: string;
|
|
53
25
|
toolName: string;
|
|
54
26
|
description: string;
|
|
@@ -76,73 +48,18 @@ type HarnessToolWriteInput = GatewayScope & {
|
|
|
76
48
|
}>;
|
|
77
49
|
metadata?: JsonObject;
|
|
78
50
|
};
|
|
79
|
-
type
|
|
80
|
-
input?: JsonObject;
|
|
81
|
-
version?: string;
|
|
82
|
-
transportKind?: string;
|
|
83
|
-
};
|
|
84
|
-
type HarnessExecuteToolResult = {
|
|
85
|
-
tool: {
|
|
86
|
-
toolId: string;
|
|
87
|
-
toolName: string;
|
|
88
|
-
version: string;
|
|
89
|
-
status: "active" | "deprecated" | "disabled";
|
|
90
|
-
executionAdapter: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed";
|
|
91
|
-
gateClassification: "core" | "shimmed";
|
|
92
|
-
scopeRequirements: string[];
|
|
93
|
-
safetyMetadata: {
|
|
94
|
-
readOnly: boolean;
|
|
95
|
-
idempotent: boolean;
|
|
96
|
-
sideEffectLevel: "none" | "low" | "high";
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
execution: {
|
|
100
|
-
input: JsonObject;
|
|
101
|
-
transportKind: string;
|
|
102
|
-
startedAt: number;
|
|
103
|
-
completedAt: number;
|
|
104
|
-
durationMs: number;
|
|
105
|
-
};
|
|
106
|
-
envelope: JsonObject | null;
|
|
107
|
-
audit: {
|
|
108
|
-
toolName: string;
|
|
109
|
-
contractName: string;
|
|
110
|
-
transportKind: string;
|
|
111
|
-
authMode: string;
|
|
112
|
-
requiredScopes: string[];
|
|
113
|
-
source: "gateway_envelope";
|
|
114
|
-
isError: boolean;
|
|
115
|
-
code?: string;
|
|
116
|
-
status?: number;
|
|
117
|
-
correlationId?: string | null;
|
|
118
|
-
policyTraceId?: string | null;
|
|
119
|
-
invariant?: string | null;
|
|
120
|
-
} | null;
|
|
121
|
-
output: {
|
|
122
|
-
isError: boolean;
|
|
123
|
-
parsed: JsonValue;
|
|
124
|
-
raw: JsonValue;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
/** Input for starting a new harness run (agent execution session). */
|
|
128
|
-
type HarnessStartRunInput = GatewayScope & {
|
|
51
|
+
export type HarnessStartRunInput = GatewayScope & {
|
|
129
52
|
agentDefinitionId: string;
|
|
130
53
|
agentVersion: string;
|
|
131
54
|
executionAdapter: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed";
|
|
132
55
|
promptReleaseChannel?: "dev" | "staging" | "prod";
|
|
133
56
|
chatId?: string;
|
|
134
|
-
|
|
57
|
+
sprintId?: string;
|
|
135
58
|
topicId?: string;
|
|
136
59
|
langfuseTraceId?: string;
|
|
137
60
|
metadata?: JsonObject;
|
|
138
61
|
} & TopicIdentifierInput;
|
|
139
|
-
type
|
|
140
|
-
agentDefinitionId: string;
|
|
141
|
-
input?: JsonObject;
|
|
142
|
-
metadata?: JsonObject;
|
|
143
|
-
};
|
|
144
|
-
/** Input for reporting a ledger event (tool call, prompt resolution, or policy decision) within a run. */
|
|
145
|
-
type HarnessRunReportInput = {
|
|
62
|
+
export type HarnessRunReportInput = {
|
|
146
63
|
reportingToken: string;
|
|
147
64
|
type: "tool_call" | "prompt_resolution" | "policy_decision";
|
|
148
65
|
metadata?: JsonObject;
|
|
@@ -172,8 +89,7 @@ type HarnessRunReportInput = {
|
|
|
172
89
|
details?: JsonValue;
|
|
173
90
|
};
|
|
174
91
|
};
|
|
175
|
-
|
|
176
|
-
type HarnessCompleteRunInput = {
|
|
92
|
+
export type HarnessCompleteRunInput = {
|
|
177
93
|
reportingToken: string;
|
|
178
94
|
status: "completed" | "failed" | "timeout";
|
|
179
95
|
error?: {
|
|
@@ -185,7 +101,7 @@ type HarnessCompleteRunInput = {
|
|
|
185
101
|
/**
|
|
186
102
|
* Create the harness client for agent and tool registry operations.
|
|
187
103
|
*/
|
|
188
|
-
declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
104
|
+
export declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
189
105
|
/**
|
|
190
106
|
* List agent definitions.
|
|
191
107
|
*/
|
|
@@ -193,27 +109,23 @@ declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
|
193
109
|
status?: string;
|
|
194
110
|
limit?: number;
|
|
195
111
|
cursor?: string;
|
|
196
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "agents">>>;
|
|
112
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "agents">>>;
|
|
197
113
|
/**
|
|
198
114
|
* Get an agent definition.
|
|
199
115
|
*/
|
|
200
|
-
getAgentDefinition(agentId: string, scope?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
|
|
116
|
+
getAgentDefinition(agentId: string, scope?: GatewayScope): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
201
117
|
/**
|
|
202
118
|
* Create an agent definition.
|
|
203
119
|
*/
|
|
204
|
-
createAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
120
|
+
createAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
205
121
|
/**
|
|
206
122
|
* @deprecated Use createAgentDefinition.
|
|
207
123
|
*/
|
|
208
|
-
registerAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
124
|
+
registerAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
209
125
|
/**
|
|
210
126
|
* Update an agent definition.
|
|
211
127
|
*/
|
|
212
|
-
updateAgentDefinition(agentId: string, input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
213
|
-
/**
|
|
214
|
-
* Invoke a managed agent definition.
|
|
215
|
-
*/
|
|
216
|
-
invokeManagedAgentDefinition(agentId: string, input: Omit<HarnessInvokeManagedAgentInput, "agentDefinitionId">, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
128
|
+
updateAgentDefinition(agentId: string, input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
217
129
|
/**
|
|
218
130
|
* List runs for an agent definition.
|
|
219
131
|
*/
|
|
@@ -221,7 +133,7 @@ declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
|
221
133
|
status?: string;
|
|
222
134
|
limit?: number;
|
|
223
135
|
cursor?: string;
|
|
224
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
136
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
225
137
|
/**
|
|
226
138
|
* @deprecated Use listAgentRuns.
|
|
227
139
|
*/
|
|
@@ -229,7 +141,7 @@ declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
|
229
141
|
status?: string;
|
|
230
142
|
limit?: number;
|
|
231
143
|
cursor?: string;
|
|
232
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
144
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
233
145
|
/**
|
|
234
146
|
* List tool definitions.
|
|
235
147
|
*/
|
|
@@ -238,27 +150,23 @@ declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
|
238
150
|
limit?: number;
|
|
239
151
|
cursor?: string;
|
|
240
152
|
gateClassification?: string;
|
|
241
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "tools">>>;
|
|
153
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "tools">>>;
|
|
242
154
|
/**
|
|
243
155
|
* Get a tool definition.
|
|
244
156
|
*/
|
|
245
|
-
getToolDefinition(toolId: string, scope?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
|
|
157
|
+
getToolDefinition(toolId: string, scope?: GatewayScope): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
246
158
|
/**
|
|
247
159
|
* Create a tool definition.
|
|
248
160
|
*/
|
|
249
|
-
createToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
161
|
+
createToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
250
162
|
/**
|
|
251
163
|
* @deprecated Use createToolDefinition.
|
|
252
164
|
*/
|
|
253
|
-
registerToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
165
|
+
registerToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
254
166
|
/**
|
|
255
167
|
* Update a tool definition.
|
|
256
168
|
*/
|
|
257
|
-
updateToolDefinition(toolId: string, input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
258
|
-
/**
|
|
259
|
-
* Execute a tool definition.
|
|
260
|
-
*/
|
|
261
|
-
executeToolDefinition(toolId: string, input?: HarnessExecuteToolInput): Promise<PlatformGatewaySuccess<HarnessExecuteToolResult>>;
|
|
169
|
+
updateToolDefinition(toolId: string, input: HarnessToolWriteInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
262
170
|
/**
|
|
263
171
|
* List run ledger entries.
|
|
264
172
|
*/
|
|
@@ -266,7 +174,7 @@ declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
|
266
174
|
status?: string;
|
|
267
175
|
limit?: number;
|
|
268
176
|
cursor?: string;
|
|
269
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
177
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
270
178
|
/**
|
|
271
179
|
* @deprecated Use listRunEntries.
|
|
272
180
|
*/
|
|
@@ -274,29 +182,29 @@ declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
|
274
182
|
status?: string;
|
|
275
183
|
limit?: number;
|
|
276
184
|
cursor?: string;
|
|
277
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
185
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "runs">>>;
|
|
278
186
|
/**
|
|
279
187
|
* Create a harness run.
|
|
280
188
|
*/
|
|
281
|
-
startHarnessRun(input: HarnessStartRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
189
|
+
startHarnessRun(input: HarnessStartRunInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
282
190
|
/**
|
|
283
191
|
* Get a run ledger entry.
|
|
284
192
|
*/
|
|
285
|
-
getRunLedgerEntry(runId: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
193
|
+
getRunLedgerEntry(runId: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
286
194
|
/**
|
|
287
195
|
* Update a harness run with a ledger event.
|
|
288
196
|
*/
|
|
289
|
-
reportHarnessRunEvent(runId: string, input: HarnessRunReportInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
197
|
+
reportHarnessRunEvent(runId: string, input: HarnessRunReportInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
290
198
|
/**
|
|
291
199
|
* Update a harness run heartbeat.
|
|
292
200
|
*/
|
|
293
201
|
heartbeatHarnessRun(runId: string, input: {
|
|
294
202
|
reportingToken: string;
|
|
295
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
203
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
296
204
|
/**
|
|
297
205
|
* Complete a harness run.
|
|
298
206
|
*/
|
|
299
|
-
completeHarnessRun(runId: string, input: HarnessCompleteRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
207
|
+
completeHarnessRun(runId: string, input: HarnessCompleteRunInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
300
208
|
/**
|
|
301
209
|
* List prompt resolutions.
|
|
302
210
|
*/
|
|
@@ -304,11 +212,9 @@ declare function createHarnessClient(config?: HarnessClientConfig): {
|
|
|
304
212
|
runId?: string;
|
|
305
213
|
promptName?: string;
|
|
306
214
|
limit?: number;
|
|
307
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "prompts">>>;
|
|
215
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "prompts">>>;
|
|
308
216
|
/**
|
|
309
217
|
* Get the harness scope taxonomy.
|
|
310
218
|
*/
|
|
311
|
-
getScopeTaxonomy(): Promise<PlatformGatewaySuccess<unknown>>;
|
|
219
|
+
getScopeTaxonomy(): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
312
220
|
};
|
|
313
|
-
|
|
314
|
-
export { GatewayScope, type HarnessAgentGuardrails, type HarnessAgentRuntimeConfig, type HarnessAgentWriteInput, type HarnessClientConfig, type HarnessCompleteRunInput, type HarnessExecuteToolInput, type HarnessExecuteToolResult, type HarnessInvokeManagedAgentInput, type HarnessRunReportInput, type HarnessStartRunInput, type HarnessToolWriteInput, PlatformGatewaySuccess, createHarnessClient };
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
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";
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
audienceMode?: string;
|
|
15
|
+
success?: boolean;
|
|
16
|
+
limit?: number;
|
|
17
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use listRecentExecutions.
|
|
20
|
+
*/
|
|
21
|
+
getRecentExecutions(args?: {
|
|
22
|
+
namespace?: string;
|
|
23
|
+
topicId?: string;
|
|
24
|
+
audienceMode?: string;
|
|
25
|
+
success?: boolean;
|
|
26
|
+
limit?: number;
|
|
27
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "executions">>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get aggregate execution statistics.
|
|
30
|
+
*/
|
|
31
|
+
getExecutionStats(args?: {
|
|
32
|
+
namespace?: string;
|
|
33
|
+
topicId?: string;
|
|
34
|
+
audienceMode?: string;
|
|
35
|
+
hours?: number;
|
|
36
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
37
|
+
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { GatewayClientConfig, PlatformGatewaySuccess } from
|
|
2
|
-
import { JsonObject } from
|
|
3
|
-
|
|
4
|
-
import './contracts/lens-workflow.contract.js';
|
|
5
|
-
import './contracts/lens-filter.contract.js';
|
|
6
|
-
|
|
7
|
-
/** Configuration for the MCP parity client. Inherits gateway transport settings. */
|
|
8
|
-
type McpParityClientConfig = GatewayClientConfig;
|
|
1
|
+
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "./coreClient";
|
|
2
|
+
import type { JsonObject } from "./types";
|
|
3
|
+
export type McpParityClientConfig = GatewayClientConfig;
|
|
9
4
|
type ToolArgs = JsonObject;
|
|
10
5
|
type ToolResult<T = unknown> = Promise<PlatformGatewaySuccess<T>>;
|
|
11
6
|
/**
|
|
@@ -14,7 +9,7 @@ type ToolResult<T = unknown> = Promise<PlatformGatewaySuccess<T>>;
|
|
|
14
9
|
* These methods map 1:1 to the Lucern MCP handlers and execute through the
|
|
15
10
|
* platform gateway so the SDK can cover the full control-plane surface.
|
|
16
11
|
*/
|
|
17
|
-
declare function createMcpParityClient(config?: McpParityClientConfig): {
|
|
12
|
+
export declare function createMcpParityClient(config?: McpParityClientConfig): {
|
|
18
13
|
sessionId: `${string}-${string}-${string}-${string}-${string}`;
|
|
19
14
|
listTopics(args?: ToolArgs): ToolResult<unknown>;
|
|
20
15
|
createTopic(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
@@ -70,5 +65,4 @@ declare function createMcpParityClient(config?: McpParityClientConfig): {
|
|
|
70
65
|
manageWritePolicy(args: ToolArgs, idempotencyKey?: string): ToolResult<unknown>;
|
|
71
66
|
generateSessionHandoff(args: ToolArgs): ToolResult<unknown>;
|
|
72
67
|
};
|
|
73
|
-
|
|
74
|
-
export { type McpParityClientConfig, createMcpParityClient };
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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[];
|
|
@@ -1,32 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import './contracts/lens-filter.contract.js';
|
|
6
|
-
|
|
7
|
-
/** Configuration for the ontology client. */
|
|
8
|
-
type OntologyClientConfig = GatewayClientConfig;
|
|
9
|
-
/** Input for binding an ontology to a topic. */
|
|
10
|
-
type OntologyBindingInput = GatewayScope & {
|
|
1
|
+
import { type GatewayClientConfig, type GatewayScope } from "./coreClient";
|
|
2
|
+
import type { JsonObject } from "./types";
|
|
3
|
+
export type OntologyClientConfig = GatewayClientConfig;
|
|
4
|
+
export type OntologyBindingInput = GatewayScope & {
|
|
11
5
|
ontologyId: string;
|
|
12
6
|
topicId: string;
|
|
13
7
|
};
|
|
14
|
-
|
|
15
|
-
type OntologyDefinitionInput = GatewayScope & {
|
|
8
|
+
export type OntologyDefinitionInput = GatewayScope & {
|
|
16
9
|
ontologyKey: string;
|
|
17
10
|
name: string;
|
|
18
11
|
description?: string;
|
|
19
12
|
tenantId?: string;
|
|
20
13
|
tier?: "platform" | "pack" | "tenant";
|
|
21
14
|
};
|
|
22
|
-
|
|
23
|
-
type OntologyDefinitionUpdateInput = GatewayScope & {
|
|
15
|
+
export type OntologyDefinitionUpdateInput = GatewayScope & {
|
|
24
16
|
name?: string;
|
|
25
17
|
description?: string;
|
|
26
18
|
status?: "draft" | "active" | "deprecated";
|
|
27
19
|
};
|
|
28
|
-
|
|
29
|
-
type OntologyVersionInput = GatewayScope & {
|
|
20
|
+
export type OntologyVersionInput = GatewayScope & {
|
|
30
21
|
version: string;
|
|
31
22
|
entityTypes: Array<{
|
|
32
23
|
value: string;
|
|
@@ -51,31 +42,20 @@ type OntologyVersionInput = GatewayScope & {
|
|
|
51
42
|
};
|
|
52
43
|
/**
|
|
53
44
|
* Create the ontology client for ontology definitions and versions.
|
|
54
|
-
* @param config - Gateway transport configuration.
|
|
55
|
-
* @returns An object with methods to manage ontology definitions, versions, and bindings.
|
|
56
45
|
*/
|
|
57
|
-
declare function createOntologyClient(config?: OntologyClientConfig): {
|
|
58
|
-
/**
|
|
59
|
-
* List ontology definitions matching optional filters.
|
|
60
|
-
*/
|
|
46
|
+
export declare function createOntologyClient(config?: OntologyClientConfig): {
|
|
61
47
|
list(filters?: GatewayScope & {
|
|
62
48
|
tenantId?: string;
|
|
63
49
|
tier?: string;
|
|
64
50
|
status?: string;
|
|
65
|
-
}): Promise<PlatformGatewaySuccess<{
|
|
51
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
66
52
|
ontologies: any[];
|
|
67
53
|
total: number;
|
|
68
54
|
items: any[];
|
|
69
55
|
definitions: any[];
|
|
70
56
|
}>>;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*/
|
|
74
|
-
get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
75
|
-
/**
|
|
76
|
-
* Bind an ontology definition to a topic.
|
|
77
|
-
*/
|
|
78
|
-
bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
57
|
+
get(id: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
58
|
+
bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
79
59
|
/**
|
|
80
60
|
* List ontology definitions.
|
|
81
61
|
*/
|
|
@@ -83,7 +63,7 @@ declare function createOntologyClient(config?: OntologyClientConfig): {
|
|
|
83
63
|
tenantId?: string;
|
|
84
64
|
tier?: string;
|
|
85
65
|
status?: string;
|
|
86
|
-
}): Promise<PlatformGatewaySuccess<{
|
|
66
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<{
|
|
87
67
|
ontologies: any[];
|
|
88
68
|
total: number;
|
|
89
69
|
items: any[];
|
|
@@ -92,46 +72,44 @@ declare function createOntologyClient(config?: OntologyClientConfig): {
|
|
|
92
72
|
/**
|
|
93
73
|
* Get an ontology definition.
|
|
94
74
|
*/
|
|
95
|
-
getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
75
|
+
getDefinition(id: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
96
76
|
/**
|
|
97
77
|
* Create an ontology definition.
|
|
98
78
|
*/
|
|
99
|
-
createDefinition(input: OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
79
|
+
createDefinition(input: OntologyDefinitionInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
100
80
|
/**
|
|
101
81
|
* Update an ontology definition.
|
|
102
82
|
*/
|
|
103
|
-
updateDefinition(id: string, input: OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
83
|
+
updateDefinition(id: string, input: OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
104
84
|
/**
|
|
105
85
|
* Archive an ontology definition.
|
|
106
86
|
*/
|
|
107
|
-
archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
87
|
+
archiveDefinition(id: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
108
88
|
/**
|
|
109
89
|
* List versions for an ontology definition.
|
|
110
90
|
*/
|
|
111
91
|
listVersions(ontologyId: string, filters?: GatewayScope & {
|
|
112
92
|
status?: string;
|
|
113
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "versions">>>;
|
|
93
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "versions">>>;
|
|
114
94
|
/**
|
|
115
95
|
* Create an ontology version.
|
|
116
96
|
*/
|
|
117
|
-
createVersion(ontologyId: string, input: OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
97
|
+
createVersion(ontologyId: string, input: OntologyVersionInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
118
98
|
/**
|
|
119
99
|
* Publish an ontology version.
|
|
120
100
|
*/
|
|
121
|
-
publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
101
|
+
publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
122
102
|
/**
|
|
123
103
|
* Deprecate an ontology version.
|
|
124
104
|
*/
|
|
125
|
-
deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
105
|
+
deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<unknown>>;
|
|
126
106
|
/**
|
|
127
107
|
* List topics directly bound to a specific ontology definition.
|
|
128
108
|
* Uses the topics gateway with ontologyId filter.
|
|
129
109
|
*/
|
|
130
|
-
listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
110
|
+
listTopics(ontologyId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
|
|
131
111
|
/**
|
|
132
112
|
* @deprecated Use listTopics.
|
|
133
113
|
*/
|
|
134
|
-
listTopicsByOntology(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
114
|
+
listTopicsByOntology(ontologyId: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<any, "topics">>>;
|
|
135
115
|
};
|
|
136
|
-
|
|
137
|
-
export { type OntologyBindingInput, type OntologyClientConfig, type OntologyDefinitionInput, type OntologyDefinitionUpdateInput, type OntologyVersionInput, createOntologyClient };
|