@lucern/sdk 0.3.0-alpha.6 → 0.3.0-alpha.8
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 +3 -0
- package/README.md +4 -4
- package/dist/adminClient.d.ts +8 -8
- package/dist/adminClient.js +47 -36
- package/dist/adminClient.js.map +1 -1
- package/dist/answersClient.js +26 -8
- package/dist/answersClient.js.map +1 -1
- package/dist/audience/index.d.ts +2 -1
- package/dist/audience/index.js +1 -3
- package/dist/audience/index.js.map +1 -1
- package/dist/audiencesClient.d.ts +16 -16
- package/dist/audiencesClient.js +102 -87
- package/dist/audiencesClient.js.map +1 -1
- package/dist/auditClient.js +30 -10
- package/dist/auditClient.js.map +1 -1
- package/dist/authDeviceClient.js +16 -3
- package/dist/authDeviceClient.js.map +1 -1
- package/dist/beliefs/index.d.ts +3 -3
- package/dist/beliefs/index.js +543 -776
- package/dist/beliefs/index.js.map +1 -1
- package/dist/beliefsClient.d.ts +2 -2
- package/dist/beliefsClient.js +31 -19
- package/dist/beliefsClient.js.map +1 -1
- package/dist/boundaryClientSurface.js +10 -3
- package/dist/boundaryClientSurface.js.map +1 -1
- package/dist/client.d.ts +247 -270
- package/dist/client.js +543 -776
- package/dist/client.js.map +1 -1
- package/dist/clientHelpers.d.ts +29 -0
- package/dist/clientHelpers.js +122 -0
- package/dist/clientHelpers.js.map +1 -0
- package/dist/contextClient.d.ts +4 -3
- package/dist/contextClient.js +56 -26
- package/dist/contextClient.js.map +1 -1
- package/dist/contextFacade.js +25 -16
- package/dist/contextFacade.js.map +1 -1
- package/dist/contextPackCompiler.js +19 -30
- package/dist/contextPackCompiler.js.map +1 -1
- package/dist/contextPackPolicy.js +7 -17
- package/dist/contextPackPolicy.js.map +1 -1
- package/dist/contextTypes.d.ts +2 -0
- package/dist/contracts/index.js +4 -3
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/lens-filter.contract.js +4 -3
- package/dist/contracts/lens-filter.contract.js.map +1 -1
- package/dist/contracts/lens-workflow.contract.js +4 -3
- package/dist/contracts/lens-workflow.contract.js.map +1 -1
- package/dist/contracts/lensFilter.js +4 -3
- package/dist/contracts/lensFilter.js.map +1 -1
- package/dist/contracts/lensWorkflow.js +4 -3
- package/dist/contracts/lensWorkflow.js.map +1 -1
- package/dist/contradictions/index.d.ts +2 -2
- package/dist/contradictions/index.js +543 -776
- package/dist/contradictions/index.js.map +1 -1
- package/dist/coreClient.d.ts +2 -1
- package/dist/coreClient.js +27 -11
- package/dist/coreClient.js.map +1 -1
- package/dist/decisions/index.d.ts +12 -12
- package/dist/decisions/index.js +543 -776
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisionsClient.d.ts +4 -12
- package/dist/decisionsClient.js +37 -31
- package/dist/decisionsClient.js.map +1 -1
- package/dist/edges/index.d.ts +2 -2
- package/dist/edges/index.js +543 -776
- package/dist/edges/index.js.map +1 -1
- package/dist/embeddingsClient.js +37 -14
- package/dist/embeddingsClient.js.map +1 -1
- package/dist/eventingClient.js +37 -14
- package/dist/eventingClient.js.map +1 -1
- package/dist/events.js +6 -3
- package/dist/events.js.map +1 -1
- package/dist/eventsCore.d.ts +1 -1
- package/dist/eventsCore.js +27 -11
- package/dist/eventsCore.js.map +1 -1
- package/dist/evidence/index.d.ts +2 -2
- package/dist/evidence/index.js +543 -776
- package/dist/evidence/index.js.map +1 -1
- package/dist/evidenceClient.js +27 -11
- package/dist/evidenceClient.js.map +1 -1
- package/dist/facade/context.d.ts +2 -1
- package/dist/facade/context.js +25 -16
- package/dist/facade/context.js.map +1 -1
- package/dist/functionSurface.js +27 -11
- package/dist/functionSurface.js.map +1 -1
- package/dist/functionSurfaceClient.js +27 -11
- package/dist/functionSurfaceClient.js.map +1 -1
- package/dist/gatewayFacades.d.ts +27 -45
- package/dist/gatewayFacades.js +92 -118
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/graphAnalysisClient.js +31 -12
- package/dist/graphAnalysisClient.js.map +1 -1
- package/dist/graphClient.d.ts +5 -13
- package/dist/graphClient.js +42 -35
- package/dist/graphClient.js.map +1 -1
- package/dist/graphRecommendationsClient.js +31 -13
- package/dist/graphRecommendationsClient.js.map +1 -1
- package/dist/graphStateClassifierClient.js +37 -15
- package/dist/graphStateClassifierClient.js.map +1 -1
- package/dist/harnessClient.d.ts +13 -24
- package/dist/harnessClient.js +38 -37
- package/dist/harnessClient.js.map +1 -1
- package/dist/identityClient.d.ts +8 -8
- package/dist/identityClient.js +48 -31
- package/dist/identityClient.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +647 -853
- package/dist/index.js.map +1 -1
- package/dist/infisicalRuntime.js +47 -24
- package/dist/infisicalRuntime.js.map +1 -1
- package/dist/jobsClient.js +37 -15
- package/dist/jobsClient.js.map +1 -1
- package/dist/learningClient.d.ts +6 -6
- package/dist/learningClient.js +55 -39
- package/dist/learningClient.js.map +1 -1
- package/dist/lenses/index.d.ts +29 -35
- package/dist/lenses/index.js +543 -776
- package/dist/lenses/index.js.map +1 -1
- package/dist/mcpClient.js +26 -8
- package/dist/mcpClient.js.map +1 -1
- package/dist/modelRuntimeClient.js +37 -14
- package/dist/modelRuntimeClient.js.map +1 -1
- package/dist/nodes/index.d.ts +17 -17
- package/dist/nodes/index.js +543 -776
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.d.ts +31 -30
- package/dist/ontologies/index.js +543 -776
- package/dist/ontologies/index.js.map +1 -1
- package/dist/ontologyClient.d.ts +17 -25
- package/dist/ontologyClient.js +63 -37
- package/dist/ontologyClient.js.map +1 -1
- package/dist/ontologyLinksClient.js +37 -15
- package/dist/ontologyLinksClient.js.map +1 -1
- package/dist/orgGraphSearchClient.js +30 -10
- package/dist/orgGraphSearchClient.js.map +1 -1
- package/dist/packsClient.d.ts +9 -23
- package/dist/packsClient.js +39 -43
- package/dist/packsClient.js.map +1 -1
- package/dist/policyClient.d.ts +11 -10
- package/dist/policyClient.js +48 -22
- package/dist/policyClient.js.map +1 -1
- package/dist/questions/index.d.ts +2 -2
- package/dist/questions/index.js +543 -776
- package/dist/questions/index.js.map +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/reportsClient.d.ts +7 -7
- package/dist/reportsClient.js +84 -48
- package/dist/reportsClient.js.map +1 -1
- package/dist/schemaClient.d.ts +3 -3
- package/dist/schemaClient.js +40 -26
- package/dist/schemaClient.js.map +1 -1
- package/dist/sdkSurface.d.ts +6 -3
- package/dist/sdkSurface.js +10 -6
- package/dist/sdkSurface.js.map +1 -1
- package/dist/sourcesClient.js +27 -11
- package/dist/sourcesClient.js.map +1 -1
- package/dist/telemetryClient.js +37 -15
- package/dist/telemetryClient.js.map +1 -1
- package/dist/toolRegistryClient.d.ts +10 -2
- package/dist/toolRegistryClient.js +50 -16
- package/dist/toolRegistryClient.js.map +1 -1
- package/dist/topics/index.d.ts +5 -5
- package/dist/topics/index.js +543 -776
- package/dist/topics/index.js.map +1 -1
- package/dist/topicsClient.js +37 -16
- package/dist/topicsClient.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/workflowClient.d.ts +15 -33
- package/dist/workflowClient.js +43 -50
- package/dist/workflowClient.js.map +1 -1
- package/dist/worktrees/index.d.ts +22 -30
- package/dist/worktrees/index.js +543 -776
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +4 -4
package/dist/client.d.ts
CHANGED
|
@@ -8,8 +8,7 @@ import { DeviceCodeInput, DeviceCodeResponse, DeviceTokenResponse } from './auth
|
|
|
8
8
|
import { McpBootstrapSessionInput, McpBootstrapSessionResponse, McpCheckWritePolicyInput, McpCheckWritePolicyResponse, McpBeginBuildSessionInput, McpBeginBuildSessionResponse, McpEvaluateEngineeringContractInput, McpContractEvaluationResponse, McpEvaluateResearchContractInput } from './mcpClient.js';
|
|
9
9
|
import { IdentityClientConfig, PolicyEvaluationInput, PolicyDecisionRecord, RecordPolicyDecisionInput, PutTenantSecretReferenceInput, TenantSecretReference, ClerkUserSearchResult, TenantIdentityScope, TenantIdentityConfigRecord, UpdateTenantConfigInput, TenantIntegrationRecord, UpsertTenantIntegrationInput } from './identityClient.js';
|
|
10
10
|
import { PacksClientConfig, PackInstallInput, PackEnableInput, PackDisableInput, PackEntitlementInput, PackUninstallInput, PackUpgradeInput } from './packsClient.js';
|
|
11
|
-
import {
|
|
12
|
-
import { ToolRegistryClientConfig, ToolRegistryQuery, ToolCatalogEntry, UpsertCoreToolsInput, SetPackToolsStatusInput, CreateToolAclInput, ToolAclRecord, DeleteToolAclInput, RegisterCustomToolInput } from './toolRegistryClient.js';
|
|
11
|
+
import { ToolRegistryClientConfig, ToolRegistryQuery, ToolCatalogEntry, EffectiveToolsQuery, UpsertCoreToolsInput, SetPackToolsStatusInput, CreateToolAclInput, ToolAclRecord, DeleteToolAclInput, RegisterCustomToolInput } from './toolRegistryClient.js';
|
|
13
12
|
import { TelemetryClientConfig, LogSystemEventInput, LogToolCallsBatchInput, RecordEpistemicAuditInput, RecordTelemetryPolicyDecisionInput, StartTelemetryRunInput, TelemetryRunRecord, FinishTelemetryRunInput, TelemetryScope } from './telemetryClient.js';
|
|
14
13
|
import { JobsClientConfig, EnqueueJobInput, JobRecord, JobsScope, ClaimJobInput, UpdateJobStatusInput, RetryJobInput, RecordJobRunStartInput, JobRunRecord, RecordJobRunFinishInput } from './jobsClient.js';
|
|
15
14
|
import { ModelRuntimeClientConfig, ModelRuntimeScope, ModelRegistryRecord, ModelFunctionSlot, ResolveModelSlotInput, UpdateModelSlotConfigInput } from './modelRuntimeClient.js';
|
|
@@ -30,10 +29,11 @@ import { AuditClientConfig } from './auditClient.js';
|
|
|
30
29
|
import { ListResult, JsonObject, PlatformSourceRecord, PlatformGraphNode, PlatformGraphEdge, GraphNeighborhoodResponse, JsonArray, RecordJudgmentResponse, ListJudgmentsResponse, GetJudgmentResponse, RecordJudgmentOutcomeResponse, JudgmentReadinessResponse, JudgmentCalibrationResponse, PendingJudgmentOutcomeRecord, JudgmentTransitionAuditIntegrityResponse, TopicIdentifierInput, WorkflowBranchRecord, WorkflowLensRecord, WorkflowLensBindingRecord, WorkflowWorktreeRecord, ListWorktreesResponse, PushWorktreeResponse, OpenPullRequestResponse, TopicListResponse, TopicRecord, TopicTreeResponse, TopicCoverageResponse, PlatformBeliefRecord, ModulateConfidenceResponse, ForkBeliefResponse, DeleteEdgeResponse, GraphPathResponse, GraphAnalyticsResponse, MergeWorktreeResponse, ListTopicsResponse, SwitchTopicContextResponse, CreateTaskResponse, CompleteTaskResponse, UpdateTaskResponse, ReportTemplatesResponse, ReportWithSectionsResponse } from './types.js';
|
|
31
30
|
import { ContextClientConfig } from './contextClient.js';
|
|
32
31
|
import { LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from './contracts/lens-workflow.contract.js';
|
|
32
|
+
import { registerCustomTool, unregisterCustomTool, listRegisteredCustomTools, clearRegisteredCustomTools } from './customTools.js';
|
|
33
33
|
import { DecisionsClientConfig, RecordJudgmentInput, ListJudgmentsInput, RecordJudgmentOutcomeInput, GetJudgmentCalibrationInput, ListPendingJudgmentOutcomeReviewInput, GetJudgmentTransitionAuditIntegrityInput } from './decisionsClient.js';
|
|
34
34
|
import { EvidenceClientConfig, EvidenceClassificationRequestConfig, ClassifyEvidenceResult, ClassifyEvidenceBatchItem, ClassifyEvidenceBatchResult } from './evidenceClient.js';
|
|
35
35
|
import { EventingClientConfig, RecordEventInput, EventingRecord, EventingScope, EventingWebhookRecord, EnqueueDeliveryInput, EventingDeliveryRecord, RecordDeliveryAttemptInput, UpdateDeliveryStatusInput } from './eventingClient.js';
|
|
36
|
-
import { GraphClientConfig, ListNodesInput, GetNodeInput, CreateNodeInput, UpdateNodeInput, BatchCreateNodesInput, SupersedeNodeInput, VerifyNodeInput, HardDeleteNodeInput, CreateEdgeInput, NeighborhoodInput,
|
|
36
|
+
import { GraphClientConfig, ListNodesInput, GetNodeInput, CreateNodeInput, UpdateNodeInput, BatchCreateNodesInput, SupersedeNodeInput, VerifyNodeInput, HardDeleteNodeInput, CreateEdgeInput, NeighborhoodInput, ListEdgesInput, DeleteEdgeInput, TraverseInput, AnalyzeInput, BiasInput, GapsInput, SearchInput, PathInput, AnalyticsInput } from './graphClient.js';
|
|
37
37
|
import { LearningClientConfig } from './learningClient.js';
|
|
38
38
|
import { ReportsClientConfig } from './reportsClient.js';
|
|
39
39
|
import { SourcesClientConfig, UpsertSourceSpec } from './sourcesClient.js';
|
|
@@ -44,10 +44,10 @@ import './contracts/workflow-runtime.contract.js';
|
|
|
44
44
|
import './contracts/lens-filter.contract.js';
|
|
45
45
|
import './opinion.js';
|
|
46
46
|
import '@lucern/contracts/mcp-gateway-boundary.contract';
|
|
47
|
-
import 'zod';
|
|
48
|
-
import '@lucern/contracts/tool-contracts';
|
|
49
47
|
import './boundaryClientSurface.js';
|
|
50
48
|
import '@lucern/contracts';
|
|
49
|
+
import 'zod';
|
|
50
|
+
import '@lucern/contracts/tool-contracts';
|
|
51
51
|
|
|
52
52
|
type ClientConfig = BeliefsClientConfig | SourcesClientConfig | GraphClientConfig | DecisionsClientConfig | AnswersClientConfig | ContextClientConfig | WorkflowClientConfig | AuditClientConfig | AdminClientConfig | EvidenceClientConfig | EmbeddingsClientConfig | EventingClientConfig | GraphAnalysisClientConfig | GraphRecommendationsClientConfig | GraphStateClassifierClientConfig | IdentityClientConfig | JobsClientConfig | ModelRuntimeClientConfig | OntologyLinksClientConfig | OrgGraphSearchClientConfig | PolicyClientConfig | PacksClientConfig | ReportsClientConfig | LearningClientConfig | TelemetryClientConfig | ToolRegistryClientConfig | FunctionSurfaceClientConfig | OntologyClientConfig | HarnessClientConfig | SchemaClientConfig | AudiencesClientConfig | TopicsClientConfig;
|
|
53
53
|
type CustomToolInput = JsonObject;
|
|
@@ -112,14 +112,14 @@ type LucernClientConfig = ClientConfig & {
|
|
|
112
112
|
declare function createLucernClient(config?: LucernClientConfig): {
|
|
113
113
|
config: LucernClientConfig;
|
|
114
114
|
version: string;
|
|
115
|
-
search(query: string, options?: {
|
|
115
|
+
search: (query: string, options?: {
|
|
116
116
|
topicId?: string;
|
|
117
117
|
types?: string[];
|
|
118
118
|
status?: string;
|
|
119
119
|
minConfidence?: number;
|
|
120
120
|
limit?: number;
|
|
121
121
|
cursor?: string;
|
|
122
|
-
})
|
|
122
|
+
}) => Promise<GatewayDataEnvelope<{
|
|
123
123
|
[x: string]: unknown;
|
|
124
124
|
} & {
|
|
125
125
|
cursor?: string;
|
|
@@ -329,7 +329,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
329
329
|
confidenceHistory(nodeId: string): Promise<GatewayDataEnvelope<{
|
|
330
330
|
[x: string]: unknown;
|
|
331
331
|
}>>;
|
|
332
|
-
opinionHistory(nodeId: string)
|
|
332
|
+
opinionHistory: (nodeId: string) => Promise<OpinionHistoryEntry[]>;
|
|
333
333
|
createContract(nodeId: string, input: Parameters<(id: string, input: {
|
|
334
334
|
[x: string]: unknown;
|
|
335
335
|
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
@@ -758,11 +758,11 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
758
758
|
};
|
|
759
759
|
graph: {
|
|
760
760
|
nodes: {
|
|
761
|
-
list
|
|
761
|
+
list: (query: ListNodesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
762
762
|
get(input: string | Parameters<(query: GetNodeInput) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0]): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
763
|
-
create
|
|
764
|
-
update
|
|
765
|
-
batchCreate
|
|
763
|
+
create: (input: CreateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
764
|
+
update: (input: UpdateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
765
|
+
batchCreate: (input: BatchCreateNodesInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
766
766
|
listByTopicAndType(input: {
|
|
767
767
|
topicId?: string;
|
|
768
768
|
projectId?: string;
|
|
@@ -781,11 +781,11 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
781
781
|
query?: string;
|
|
782
782
|
limit?: number;
|
|
783
783
|
}): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
784
|
-
supersede
|
|
785
|
-
verify
|
|
786
|
-
hardDelete
|
|
784
|
+
supersede: (input: SupersedeNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
785
|
+
verify: (input: VerifyNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
786
|
+
hardDelete: (input: HardDeleteNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
787
787
|
};
|
|
788
|
-
createEdge
|
|
788
|
+
createEdge: (input: CreateEdgeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphEdge>>;
|
|
789
789
|
neighborhood(args: Parameters<(query: NeighborhoodInput) => Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>>[0]): Promise<GatewayDataEnvelope<GraphNeighborhoodResponse>>;
|
|
790
790
|
queryLineage: (nodeId: string, depth?: number) => Promise<{
|
|
791
791
|
chain: {
|
|
@@ -953,12 +953,12 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
953
953
|
}): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
954
954
|
};
|
|
955
955
|
judgments: {
|
|
956
|
-
create(input: RecordJudgmentInput)
|
|
957
|
-
record(input: RecordJudgmentInput)
|
|
958
|
-
list
|
|
959
|
-
get(judgmentId: string)
|
|
960
|
-
recordOutcome
|
|
961
|
-
updateOutcome
|
|
956
|
+
create: (input: RecordJudgmentInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
957
|
+
record: (input: RecordJudgmentInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
958
|
+
list: (query: ListJudgmentsInput) => Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>;
|
|
959
|
+
get: (judgmentId: string) => Promise<PlatformGatewaySuccess<GetJudgmentResponse>>;
|
|
960
|
+
recordOutcome: (judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
|
|
961
|
+
updateOutcome: (judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
|
|
962
962
|
readiness(topicId: string): Promise<PlatformGatewaySuccess<JudgmentReadinessResponse>>;
|
|
963
963
|
calibration(topicId: string): Promise<PlatformGatewaySuccess<JudgmentCalibrationResponse>>;
|
|
964
964
|
pendingOutcomeReview(topicId: string): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
@@ -969,11 +969,11 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
969
969
|
}): Promise<PlatformGatewaySuccess<JudgmentTransitionAuditIntegrityResponse>>;
|
|
970
970
|
};
|
|
971
971
|
decisions: {
|
|
972
|
-
create(input: RecordJudgmentInput)
|
|
973
|
-
record(input: RecordJudgmentInput)
|
|
974
|
-
list
|
|
975
|
-
get(
|
|
976
|
-
recordOutcome
|
|
972
|
+
create: (input: RecordJudgmentInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
973
|
+
record: (input: RecordJudgmentInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
974
|
+
list: (query: ListJudgmentsInput) => Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>;
|
|
975
|
+
get: (judgmentId: string) => Promise<PlatformGatewaySuccess<GetJudgmentResponse>>;
|
|
976
|
+
recordOutcome: (judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
|
|
977
977
|
lessons(decisionId: string, input: JsonObject, idempotencyKey?: string): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
978
978
|
archive(decisionId: string, input?: JsonObject, idempotencyKey?: string): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
979
979
|
readiness(topicId: string): Promise<PlatformGatewaySuccess<JudgmentReadinessResponse>>;
|
|
@@ -981,13 +981,13 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
981
981
|
pendingOutcomeReview(topicId: string): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
982
982
|
};
|
|
983
983
|
worktrees: {
|
|
984
|
-
createBranch
|
|
984
|
+
createBranch: (input: {
|
|
985
985
|
name: string;
|
|
986
986
|
topicId?: string;
|
|
987
987
|
description?: string;
|
|
988
988
|
metadata?: JsonObject;
|
|
989
|
-
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord
|
|
990
|
-
createLens
|
|
989
|
+
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
990
|
+
createLens: (input: {
|
|
991
991
|
name: string;
|
|
992
992
|
workspaceId?: string;
|
|
993
993
|
topicId?: string;
|
|
@@ -997,22 +997,22 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
997
997
|
workflowTemplates?: LensWorkflowTemplate[];
|
|
998
998
|
taskTemplates?: LensTaskTemplate[];
|
|
999
999
|
filterCriteria?: JsonObject;
|
|
1000
|
-
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord
|
|
1001
|
-
listLenses
|
|
1000
|
+
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
|
|
1001
|
+
listLenses: (query: {
|
|
1002
1002
|
workspaceId?: string;
|
|
1003
1003
|
topicId?: string;
|
|
1004
1004
|
status?: WorkflowLensStatus;
|
|
1005
1005
|
perspectiveType?: WorkflowLensPerspectiveType;
|
|
1006
|
-
} & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses"
|
|
1007
|
-
applyLensToTopic
|
|
1006
|
+
} & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
|
|
1007
|
+
applyLensToTopic: (input: {
|
|
1008
1008
|
lensId: string;
|
|
1009
1009
|
topicId?: string;
|
|
1010
1010
|
metadata?: JsonObject;
|
|
1011
|
-
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord
|
|
1012
|
-
removeLensFromTopic
|
|
1011
|
+
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
|
|
1012
|
+
removeLensFromTopic: (input: {
|
|
1013
1013
|
lensId: string;
|
|
1014
1014
|
topicId?: string;
|
|
1015
|
-
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord
|
|
1015
|
+
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
|
|
1016
1016
|
create(input: AddWorktreeInput): Promise<PlatformGatewaySuccess<{
|
|
1017
1017
|
[x: string]: unknown;
|
|
1018
1018
|
}>>;
|
|
@@ -1021,13 +1021,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1021
1021
|
}>>;
|
|
1022
1022
|
list(query: Parameters<(query: {
|
|
1023
1023
|
topicId?: string;
|
|
1024
|
-
branchId
|
|
1025
|
-
/** Lucern platform session token for interactive/user-scoped requests. */
|
|
1026
|
-
? /**
|
|
1027
|
-
* Optional Clerk JWT for per-user identity and RBAC.
|
|
1028
|
-
* When present, the SDK operates in user-scoped mode with
|
|
1029
|
-
* pack-aware tool filtering. When absent, operates in agent mode.
|
|
1030
|
-
*/: string;
|
|
1024
|
+
branchId?: string;
|
|
1031
1025
|
status?: WorkflowWorktreeStatus;
|
|
1032
1026
|
groupBy?: "campaign" | "lane" | "flat";
|
|
1033
1027
|
lane?: string;
|
|
@@ -1045,13 +1039,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1045
1039
|
}>>;
|
|
1046
1040
|
listByTopic(query: Parameters<(query: {
|
|
1047
1041
|
topicId?: string;
|
|
1048
|
-
branchId
|
|
1049
|
-
/** Lucern platform session token for interactive/user-scoped requests. */
|
|
1050
|
-
? /**
|
|
1051
|
-
* Optional Clerk JWT for per-user identity and RBAC.
|
|
1052
|
-
* When present, the SDK operates in user-scoped mode with
|
|
1053
|
-
* pack-aware tool filtering. When absent, operates in agent mode.
|
|
1054
|
-
*/: string;
|
|
1042
|
+
branchId?: string;
|
|
1055
1043
|
status?: WorkflowWorktreeStatus;
|
|
1056
1044
|
groupBy?: "campaign" | "lane" | "flat";
|
|
1057
1045
|
lane?: string;
|
|
@@ -1085,36 +1073,34 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1085
1073
|
updateTargets(input: Parameters<(input: UpdateWorktreeTargetsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>>[0]): Promise<PlatformGatewaySuccess<{
|
|
1086
1074
|
[x: string]: unknown;
|
|
1087
1075
|
}>>;
|
|
1088
|
-
listAll
|
|
1076
|
+
listAll: (query?: {
|
|
1089
1077
|
status?: WorkflowWorktreeStatus;
|
|
1090
1078
|
groupBy?: "campaign" | "lane" | "flat";
|
|
1091
1079
|
lane?: string;
|
|
1092
1080
|
campaign?: number;
|
|
1093
1081
|
limit?: number;
|
|
1094
|
-
}) => Promise<PlatformGatewaySuccess<ListWorktreesResponse
|
|
1082
|
+
}) => Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
|
|
1095
1083
|
merge(worktreeId: string, input: MergeInput): Promise<PlatformGatewaySuccess<{
|
|
1096
1084
|
[x: string]: unknown;
|
|
1097
1085
|
}>>;
|
|
1098
|
-
push
|
|
1086
|
+
push: (worktreeId: string, input: {
|
|
1099
1087
|
targetContext: string;
|
|
1100
1088
|
beliefIds?: string[];
|
|
1101
1089
|
metadata?: JsonObject;
|
|
1102
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse
|
|
1103
|
-
openPullRequest
|
|
1090
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
1091
|
+
openPullRequest: (worktreeId: string, input: {
|
|
1104
1092
|
summary: string;
|
|
1105
1093
|
reviewers?: string[];
|
|
1106
1094
|
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
1107
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse
|
|
1095
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
1108
1096
|
pipelineSnapshot(topicId: string): FunctionSurfaceResult<unknown>;
|
|
1109
|
-
complete
|
|
1097
|
+
complete: (input: {
|
|
1110
1098
|
worktreeId: string;
|
|
1111
1099
|
keyFindings?: string[];
|
|
1112
1100
|
decisionsReached?: string[];
|
|
1113
1101
|
nextSteps?: string[];
|
|
1114
1102
|
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
1115
1103
|
[x: string]: unknown;
|
|
1116
|
-
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1117
|
-
[x: string]: unknown;
|
|
1118
1104
|
}>>;
|
|
1119
1105
|
advancePhase(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1120
1106
|
[x: string]: unknown;
|
|
@@ -1122,33 +1108,29 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1122
1108
|
setPhase(worktreeId: string, phase: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1123
1109
|
[x: string]: unknown;
|
|
1124
1110
|
}>>;
|
|
1125
|
-
patchState
|
|
1111
|
+
patchState: (input: {
|
|
1126
1112
|
worktreeId: string;
|
|
1127
1113
|
patch: {
|
|
1128
1114
|
[x: string]: unknown;
|
|
1129
1115
|
};
|
|
1130
1116
|
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
1131
1117
|
[x: string]: unknown;
|
|
1132
|
-
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1133
|
-
[x: string]: unknown;
|
|
1134
1118
|
}>>;
|
|
1135
|
-
bulkCreate
|
|
1119
|
+
bulkCreate: (input: {
|
|
1136
1120
|
worktrees: unknown[];
|
|
1137
1121
|
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<{
|
|
1138
1122
|
[x: string]: unknown;
|
|
1139
|
-
}>>>[0], idempotencyKey?: string): Promise<PlatformGatewaySuccess<{
|
|
1140
|
-
[x: string]: unknown;
|
|
1141
1123
|
}>>;
|
|
1142
1124
|
};
|
|
1143
1125
|
context: {
|
|
1144
1126
|
listTopics(query?: Parameters<(query?: TopicListInput) => Promise<PlatformGatewaySuccess<TopicListResponse>>>[0]): Promise<PlatformGatewaySuccess<TopicListResponse>>;
|
|
1145
|
-
compile
|
|
1146
|
-
recordScopeLearning(input
|
|
1127
|
+
compile: (topicIdOrInput?: string | CompileContextInput, input?: CompileContextInput) => Promise<PlatformGatewaySuccess<PublicCompiledContext>>;
|
|
1128
|
+
recordScopeLearning: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1147
1129
|
discover(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
1148
|
-
analyzeTopicDensity(input
|
|
1149
|
-
applyAutoBranching(input
|
|
1150
|
-
seedBeliefLattice(input?: FunctionSurfaceInput, idempotencyKey?: string)
|
|
1151
|
-
getLatticeCoverage(input?: FunctionSurfaceInput)
|
|
1130
|
+
analyzeTopicDensity: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1131
|
+
applyAutoBranching: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1132
|
+
seedBeliefLattice: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1133
|
+
getLatticeCoverage: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1152
1134
|
matchEntityType(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<{
|
|
1153
1135
|
[x: string]: unknown;
|
|
1154
1136
|
}>>;
|
|
@@ -1203,7 +1185,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1203
1185
|
};
|
|
1204
1186
|
topics: {
|
|
1205
1187
|
list(input?: Parameters<(query?: TopicListInput) => Promise<PlatformGatewaySuccess<TopicListResponse>>>[0]): Promise<PlatformGatewaySuccess<TopicListResponse>>;
|
|
1206
|
-
get(topicId: string)
|
|
1188
|
+
get: (topicId: string) => Promise<PlatformGatewaySuccess<TopicRecord>>;
|
|
1207
1189
|
create(input: Parameters<(input: TopicCreateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<TopicRecord>>>[0]): Promise<PlatformGatewaySuccess<TopicRecord>>;
|
|
1208
1190
|
update(topicId: string, input: Parameters<(topicId: string, input: TopicUpdateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<TopicRecord>>>[1]): Promise<PlatformGatewaySuccess<TopicRecord>>;
|
|
1209
1191
|
tree(topicId: string, query?: Parameters<(topicId: string, query?: TopicTreeQuery) => Promise<PlatformGatewaySuccess<TopicTreeResponse>>>[1]): Promise<PlatformGatewaySuccess<TopicTreeResponse>>;
|
|
@@ -1212,8 +1194,8 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1212
1194
|
maxDepth?: number;
|
|
1213
1195
|
}): Promise<PlatformGatewaySuccess<TopicTreeResponse>>;
|
|
1214
1196
|
coverage(topicId: string, query?: Parameters<(topicId: string, query?: TopicCoverageQuery) => Promise<PlatformGatewaySuccess<TopicCoverageResponse>>>[1]): Promise<PlatformGatewaySuccess<TopicCoverageResponse>>;
|
|
1215
|
-
remove(topicId: string, idempotencyKey?: string)
|
|
1216
|
-
bulkCreate
|
|
1197
|
+
remove: (topicId: string, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1198
|
+
bulkCreate: (input: TopicBulkCreateInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1217
1199
|
};
|
|
1218
1200
|
answers: {
|
|
1219
1201
|
create(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<{
|
|
@@ -1271,10 +1253,10 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1271
1253
|
tier?: string;
|
|
1272
1254
|
status?: string;
|
|
1273
1255
|
}): Promise<GatewayDataEnvelope<{
|
|
1274
|
-
ontologies:
|
|
1256
|
+
ontologies: unknown[];
|
|
1275
1257
|
total: number;
|
|
1276
|
-
items:
|
|
1277
|
-
definitions:
|
|
1258
|
+
items: unknown[];
|
|
1259
|
+
definitions: unknown[];
|
|
1278
1260
|
}>>;
|
|
1279
1261
|
get(ontologyId: string): Promise<GatewayDataEnvelope<{
|
|
1280
1262
|
[x: string]: unknown;
|
|
@@ -1313,47 +1295,48 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1313
1295
|
tier?: string;
|
|
1314
1296
|
status?: string;
|
|
1315
1297
|
}): Promise<PlatformGatewaySuccess<{
|
|
1316
|
-
ontologies:
|
|
1298
|
+
ontologies: unknown[];
|
|
1317
1299
|
total: number;
|
|
1318
|
-
items:
|
|
1319
|
-
definitions:
|
|
1300
|
+
items: unknown[];
|
|
1301
|
+
definitions: unknown[];
|
|
1320
1302
|
}>>;
|
|
1321
1303
|
get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1322
1304
|
bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1323
|
-
listDefinitions(filters?: GatewayScope & {
|
|
1324
|
-
tenantId?: string;
|
|
1325
|
-
tier?: string;
|
|
1326
|
-
status?: string;
|
|
1327
|
-
}): Promise<PlatformGatewaySuccess<{
|
|
1328
|
-
ontologies: any[];
|
|
1329
|
-
total: number;
|
|
1330
|
-
items: any[];
|
|
1331
|
-
definitions: any[];
|
|
1332
|
-
}>>;
|
|
1333
|
-
getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1334
1305
|
createDefinition(input: OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1335
1306
|
updateDefinition(id: string, input: OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1336
1307
|
archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1337
1308
|
listVersions(ontologyId: string, filters?: GatewayScope & {
|
|
1338
1309
|
status?: string;
|
|
1339
|
-
}): Promise<PlatformGatewaySuccess<ListResult<
|
|
1310
|
+
}): Promise<PlatformGatewaySuccess<ListResult<unknown, "versions">>>;
|
|
1340
1311
|
createVersion(ontologyId: string, input: OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1341
1312
|
publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1342
1313
|
deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1343
1314
|
listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
1344
|
-
|
|
1315
|
+
} & {
|
|
1316
|
+
listDefinitions: (filters?: GatewayScope & {
|
|
1317
|
+
tenantId?: string;
|
|
1318
|
+
tier?: string;
|
|
1319
|
+
status?: string;
|
|
1320
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
1321
|
+
ontologies: unknown[];
|
|
1322
|
+
total: number;
|
|
1323
|
+
items: unknown[];
|
|
1324
|
+
definitions: unknown[];
|
|
1325
|
+
}>>;
|
|
1326
|
+
getDefinition: (id: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1327
|
+
listTopicsByOntology: (ontologyId: string) => Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
1345
1328
|
};
|
|
1346
1329
|
};
|
|
1347
1330
|
coordination: {
|
|
1348
|
-
registerSession(input?: FunctionSurfaceInput, idempotencyKey?: string)
|
|
1349
|
-
heartbeatSession(input?: FunctionSurfaceInput, idempotencyKey?: string)
|
|
1350
|
-
endSession(input?: FunctionSurfaceInput, idempotencyKey?: string)
|
|
1351
|
-
listActiveSessions(input?: FunctionSurfaceInput)
|
|
1352
|
-
sendAgentMessage(input
|
|
1353
|
-
broadcastMessage(input
|
|
1354
|
-
getInbox(input?: FunctionSurfaceInput)
|
|
1355
|
-
getAgentInbox(input?: FunctionSurfaceInput)
|
|
1356
|
-
claimFiles(input
|
|
1331
|
+
registerSession: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1332
|
+
heartbeatSession: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1333
|
+
endSession: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1334
|
+
listActiveSessions: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1335
|
+
sendAgentMessage: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1336
|
+
broadcastMessage: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1337
|
+
getInbox: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1338
|
+
getAgentInbox: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1339
|
+
claimFiles: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1357
1340
|
};
|
|
1358
1341
|
policy: {
|
|
1359
1342
|
checkPermission(input: FunctionSurfaceInput): Promise<PlatformGatewaySuccess<PermissionDecision>>;
|
|
@@ -1405,14 +1388,14 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1405
1388
|
idempotentReplay: boolean;
|
|
1406
1389
|
}>;
|
|
1407
1390
|
filterByPermission(input: FunctionSurfaceInput): Promise<{
|
|
1408
|
-
success:
|
|
1391
|
+
success: true;
|
|
1409
1392
|
data: {
|
|
1410
1393
|
permission: PermissionKind;
|
|
1411
1394
|
allowedTopicIds: string[];
|
|
1412
|
-
deniedTopics: {
|
|
1395
|
+
deniedTopics: Array<{
|
|
1413
1396
|
topicId: string;
|
|
1414
1397
|
reasonCode: string;
|
|
1415
|
-
}
|
|
1398
|
+
}>;
|
|
1416
1399
|
count: number;
|
|
1417
1400
|
};
|
|
1418
1401
|
}>;
|
|
@@ -1560,30 +1543,30 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1560
1543
|
principal?: string;
|
|
1561
1544
|
principalId?: string;
|
|
1562
1545
|
}): Promise<{
|
|
1563
|
-
success:
|
|
1546
|
+
success: true;
|
|
1564
1547
|
data: {
|
|
1565
1548
|
permission: PermissionKind;
|
|
1566
1549
|
allowedTopicIds: string[];
|
|
1567
|
-
deniedTopics: {
|
|
1550
|
+
deniedTopics: Array<{
|
|
1568
1551
|
topicId: string;
|
|
1569
1552
|
reasonCode: string;
|
|
1570
|
-
}
|
|
1553
|
+
}>;
|
|
1571
1554
|
count: number;
|
|
1572
1555
|
};
|
|
1573
1556
|
}>;
|
|
1574
1557
|
};
|
|
1575
1558
|
};
|
|
1576
1559
|
observations: {
|
|
1577
|
-
ingest(input
|
|
1578
|
-
ingestObservation(input
|
|
1579
|
-
getContext(input
|
|
1580
|
-
getObservationContext(input
|
|
1560
|
+
ingest: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1561
|
+
ingestObservation: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1562
|
+
getContext: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1563
|
+
getObservationContext: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1581
1564
|
};
|
|
1582
1565
|
coding: {
|
|
1583
|
-
getCodeContext(input
|
|
1584
|
-
getChangeHistory(input
|
|
1585
|
-
recordAttempt(input
|
|
1586
|
-
getFailureLog(input
|
|
1566
|
+
getCodeContext: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1567
|
+
getChangeHistory: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1568
|
+
recordAttempt: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1569
|
+
getFailureLog: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1587
1570
|
};
|
|
1588
1571
|
contracts: {
|
|
1589
1572
|
create(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
@@ -1599,7 +1582,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1599
1582
|
getContractStatus(input: FunctionSurfaceInput): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
1600
1583
|
};
|
|
1601
1584
|
bootstrap: {
|
|
1602
|
-
generateSessionHandoff(input
|
|
1585
|
+
generateSessionHandoff: (input?: FunctionSurfaceInput, idempotencyKey?: string) => FunctionSurfaceResult<unknown>;
|
|
1603
1586
|
};
|
|
1604
1587
|
embeddings: {
|
|
1605
1588
|
getByNodeIds(input: GetEmbeddingsByNodeIdsInput): Promise<PlatformGatewaySuccess<ListResult<EmbeddingRecord, "embeddings">>>;
|
|
@@ -1715,7 +1698,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1715
1698
|
tools: {
|
|
1716
1699
|
listCatalog: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1717
1700
|
listExecutable: (input: ToolRegistryQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1718
|
-
listEffectiveTools: (input:
|
|
1701
|
+
listEffectiveTools: (input: EffectiveToolsQuery) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1719
1702
|
upsertCoreTools: (input: UpsertCoreToolsInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1720
1703
|
setPackToolsStatus: (input: SetPackToolsStatusInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
1721
1704
|
createAcl: (input: CreateToolAclInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ToolAclRecord>>;
|
|
@@ -1724,12 +1707,12 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1724
1707
|
deleted: boolean;
|
|
1725
1708
|
}>>;
|
|
1726
1709
|
registerCustomTool: (input: RegisterCustomToolInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ToolCatalogEntry>>;
|
|
1727
|
-
register
|
|
1728
|
-
unregister
|
|
1729
|
-
list
|
|
1730
|
-
clear
|
|
1710
|
+
register: typeof registerCustomTool;
|
|
1711
|
+
unregister: typeof unregisterCustomTool;
|
|
1712
|
+
list: typeof listRegisteredCustomTools;
|
|
1713
|
+
clear: typeof clearRegisteredCustomTools;
|
|
1731
1714
|
invoke(name: string, input?: CustomToolInput): Promise<unknown>;
|
|
1732
|
-
namespace(namespace: string)
|
|
1715
|
+
namespace: (namespace: string) => CustomToolNamespace;
|
|
1733
1716
|
};
|
|
1734
1717
|
packs: {
|
|
1735
1718
|
/**
|
|
@@ -1742,20 +1725,20 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1742
1725
|
* Check if the configured pack has been installed in this session.
|
|
1743
1726
|
*/
|
|
1744
1727
|
readonly isInstalled: boolean;
|
|
1745
|
-
listCatalog()
|
|
1746
|
-
catalog()
|
|
1747
|
-
listStates
|
|
1748
|
-
states
|
|
1749
|
-
install
|
|
1750
|
-
enable
|
|
1751
|
-
disable
|
|
1728
|
+
listCatalog: () => Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
|
|
1729
|
+
catalog: () => Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
|
|
1730
|
+
listStates: (query?: GatewayScope) => Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
|
|
1731
|
+
states: (query?: GatewayScope) => Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
|
|
1732
|
+
install: (input: PackInstallInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1733
|
+
enable: (input: PackEnableInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1734
|
+
disable: (input: PackDisableInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1752
1735
|
};
|
|
1753
1736
|
nodes: {
|
|
1754
|
-
list
|
|
1737
|
+
list: (query: ListNodesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
1755
1738
|
get(input: string | Parameters<(query: GetNodeInput) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>>[0]): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
1756
|
-
create
|
|
1757
|
-
update
|
|
1758
|
-
batchCreate
|
|
1739
|
+
create: (input: CreateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
1740
|
+
update: (input: UpdateNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
1741
|
+
batchCreate: (input: BatchCreateNodesInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1759
1742
|
listByTopicAndType(input: {
|
|
1760
1743
|
topicId?: string;
|
|
1761
1744
|
projectId?: string;
|
|
@@ -1774,9 +1757,9 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1774
1757
|
query?: string;
|
|
1775
1758
|
limit?: number;
|
|
1776
1759
|
}): Promise<GatewayDataEnvelope<Record<string, unknown>>>;
|
|
1777
|
-
supersede
|
|
1778
|
-
verify
|
|
1779
|
-
hardDelete
|
|
1760
|
+
supersede: (input: SupersedeNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1761
|
+
verify: (input: VerifyNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1762
|
+
hardDelete: (input: HardDeleteNodeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1780
1763
|
};
|
|
1781
1764
|
identity: {
|
|
1782
1765
|
evaluatePolicy: (input: PolicyEvaluationInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PolicyDecisionRecord>>;
|
|
@@ -1831,7 +1814,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1831
1814
|
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1832
1815
|
metadata?: JsonObject;
|
|
1833
1816
|
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1834
|
-
updatePrincipal(input: GatewayScope & {
|
|
1817
|
+
updatePrincipal: (input: GatewayScope & {
|
|
1835
1818
|
principalId: string;
|
|
1836
1819
|
principalType: "user" | "group" | "service" | "external_viewer";
|
|
1837
1820
|
clerkId?: string;
|
|
@@ -1839,8 +1822,8 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1839
1822
|
displayName?: string;
|
|
1840
1823
|
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1841
1824
|
metadata?: JsonObject;
|
|
1842
|
-
}, idempotencyKey?: string)
|
|
1843
|
-
upsertPrincipal(input: GatewayScope & {
|
|
1825
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1826
|
+
upsertPrincipal: (input: GatewayScope & {
|
|
1844
1827
|
principalId: string;
|
|
1845
1828
|
principalType: "user" | "group" | "service" | "external_viewer";
|
|
1846
1829
|
clerkId?: string;
|
|
@@ -1848,7 +1831,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1848
1831
|
displayName?: string;
|
|
1849
1832
|
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
1850
1833
|
metadata?: JsonObject;
|
|
1851
|
-
}, idempotencyKey?: string)
|
|
1834
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1852
1835
|
listKeys(query?: GatewayScope & {
|
|
1853
1836
|
principalId?: string;
|
|
1854
1837
|
status?: string;
|
|
@@ -1870,12 +1853,12 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1870
1853
|
replacementExpiresInDays?: number;
|
|
1871
1854
|
gracePeriodHours?: number;
|
|
1872
1855
|
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
1873
|
-
deleteKey(keyId: string, input?: {
|
|
1856
|
+
deleteKey: (keyId: string, input?: {
|
|
1874
1857
|
reason?: string;
|
|
1875
|
-
}, idempotencyKey?: string)
|
|
1876
|
-
revokeKey(keyId: string, input?: {
|
|
1858
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1859
|
+
revokeKey: (keyId: string, input?: {
|
|
1877
1860
|
reason?: string;
|
|
1878
|
-
}, idempotencyKey?: string)
|
|
1861
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
1879
1862
|
searchClerkUsers(q: string): Promise<PlatformGatewaySuccess<ClerkUserSearchResult[]>>;
|
|
1880
1863
|
getTenantConfig(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
1881
1864
|
updateTenantConfig(input: UpdateTenantConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
@@ -1917,16 +1900,16 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1917
1900
|
}>;
|
|
1918
1901
|
};
|
|
1919
1902
|
mcp: {
|
|
1920
|
-
bootstrapSession
|
|
1921
|
-
checkWritePolicy
|
|
1922
|
-
beginBuildSession
|
|
1923
|
-
evaluateEngineeringContract
|
|
1924
|
-
evaluateResearchContract
|
|
1903
|
+
bootstrapSession: (input?: McpBootstrapSessionInput) => Promise<McpBootstrapSessionResponse>;
|
|
1904
|
+
checkWritePolicy: (input: McpCheckWritePolicyInput) => Promise<McpCheckWritePolicyResponse>;
|
|
1905
|
+
beginBuildSession: (input: McpBeginBuildSessionInput) => Promise<McpBeginBuildSessionResponse>;
|
|
1906
|
+
evaluateEngineeringContract: (input: McpEvaluateEngineeringContractInput) => Promise<McpContractEvaluationResponse>;
|
|
1907
|
+
evaluateResearchContract: (input: McpEvaluateResearchContractInput) => Promise<McpContractEvaluationResponse>;
|
|
1925
1908
|
};
|
|
1926
1909
|
auth: {
|
|
1927
1910
|
device: {
|
|
1928
|
-
createCode(input?: DeviceCodeInput)
|
|
1929
|
-
pollToken(deviceCode: string)
|
|
1911
|
+
createCode: (input?: DeviceCodeInput) => Promise<DeviceCodeResponse>;
|
|
1912
|
+
pollToken: (deviceCode: string) => Promise<DeviceTokenResponse>;
|
|
1930
1913
|
};
|
|
1931
1914
|
};
|
|
1932
1915
|
custom: CustomToolNamespace;
|
|
@@ -1936,8 +1919,8 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1936
1919
|
createBelief(input: CreateBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformBeliefRecord>>;
|
|
1937
1920
|
refineBelief(beliefId: string, input: RefineBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformBeliefRecord>>;
|
|
1938
1921
|
modulateConfidence: (beliefId: string, input: ModulateConfidenceOpinionInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<ModulateConfidenceResponse>>;
|
|
1939
|
-
getOpinionHistory(beliefId: string)
|
|
1940
|
-
getConfidenceHistory(beliefId: string)
|
|
1922
|
+
getOpinionHistory: (beliefId: string) => Promise<OpinionHistoryEntry[]>;
|
|
1923
|
+
getConfidenceHistory: (beliefId: string) => Promise<OpinionHistoryEntry[]>;
|
|
1941
1924
|
forkBelief(beliefId: string, input: ForkBeliefInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ForkBeliefResponse>>;
|
|
1942
1925
|
updateBeliefStatus(input: UpdateBeliefStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1943
1926
|
updateBeliefRationale(input: UpdateBeliefRationaleInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
@@ -1976,7 +1959,6 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1976
1959
|
};
|
|
1977
1960
|
graph: {
|
|
1978
1961
|
listNodes(query: ListNodesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
1979
|
-
queryNodes(query: QueryNodesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
1980
1962
|
getNode(query: GetNodeInput): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
1981
1963
|
createNode(input: CreateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
1982
1964
|
updateNode(input: UpdateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
@@ -1985,7 +1967,6 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1985
1967
|
verifyNode(input: VerifyNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1986
1968
|
hardDeleteNode(input: HardDeleteNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1987
1969
|
listEdges(query: ListEdgesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
1988
|
-
queryEdges(query: QueryEdgesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
1989
1970
|
createEdge(input: CreateEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphEdge>>;
|
|
1990
1971
|
deleteEdge(query: DeleteEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<DeleteEdgeResponse>>;
|
|
1991
1972
|
neighborhood(query: NeighborhoodInput): Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
@@ -1994,9 +1975,12 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
1994
1975
|
bias(query?: BiasInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1995
1976
|
gaps(query: GapsInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1996
1977
|
search(query: SearchInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
1997
|
-
getNeighborhood(query: NeighborhoodInput): Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
1998
1978
|
getPath(query: PathInput): Promise<PlatformGatewaySuccess<GraphPathResponse>>;
|
|
1999
1979
|
getAnalytics(query?: AnalyticsInput): Promise<PlatformGatewaySuccess<GraphAnalyticsResponse>>;
|
|
1980
|
+
} & {
|
|
1981
|
+
queryNodes: (query: ListNodesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
1982
|
+
queryEdges: (query: ListEdgesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
1983
|
+
getNeighborhood: (query: NeighborhoodInput) => Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
2000
1984
|
};
|
|
2001
1985
|
graphAnalysis: {
|
|
2002
1986
|
listGraphIntelligenceQueries(input?: ListGraphIntelligenceQueriesInput): Promise<PlatformGatewaySuccess<GraphIntelligenceQueryCatalogResponse>>;
|
|
@@ -2029,12 +2013,13 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2029
2013
|
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<JudgmentReadinessResponse>>;
|
|
2030
2014
|
getJudgmentCalibration(query: GetJudgmentCalibrationInput): Promise<PlatformGatewaySuccess<JudgmentCalibrationResponse>>;
|
|
2031
2015
|
listPendingOutcomeReviews(query: ListPendingJudgmentOutcomeReviewInput): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
2032
|
-
listPendingJudgmentOutcomeReview(query: ListPendingJudgmentOutcomeReviewInput): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
2033
2016
|
getJudgmentTransitionAuditIntegrity(query: GetJudgmentTransitionAuditIntegrityInput): Promise<PlatformGatewaySuccess<JudgmentTransitionAuditIntegrityResponse>>;
|
|
2034
2017
|
createJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
2035
|
-
recordJudgment(input: RecordJudgmentInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
2036
2018
|
updateJudgmentOutcome(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
|
|
2037
|
-
|
|
2019
|
+
} & {
|
|
2020
|
+
listPendingJudgmentOutcomeReview: (query: ListPendingJudgmentOutcomeReviewInput) => Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
|
|
2021
|
+
recordJudgment: (input: RecordJudgmentInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
|
|
2022
|
+
recordJudgmentOutcome: (judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
|
|
2038
2023
|
};
|
|
2039
2024
|
workflow: {
|
|
2040
2025
|
listBranches(query: {
|
|
@@ -2076,13 +2061,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2076
2061
|
} & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
|
|
2077
2062
|
listWorktrees(query: {
|
|
2078
2063
|
topicId?: string;
|
|
2079
|
-
branchId
|
|
2080
|
-
/** Lucern platform session token for interactive/user-scoped requests. */
|
|
2081
|
-
? /**
|
|
2082
|
-
* Optional Clerk JWT for per-user identity and RBAC.
|
|
2083
|
-
* When present, the SDK operates in user-scoped mode with
|
|
2084
|
-
* pack-aware tool filtering. When absent, operates in agent mode.
|
|
2085
|
-
*/: string;
|
|
2064
|
+
branchId?: string;
|
|
2086
2065
|
status?: WorkflowWorktreeStatus;
|
|
2087
2066
|
groupBy?: "campaign" | "lane" | "flat";
|
|
2088
2067
|
lane?: string;
|
|
@@ -2102,7 +2081,6 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2102
2081
|
limit?: number;
|
|
2103
2082
|
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
2104
2083
|
createWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
2105
|
-
addWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
2106
2084
|
merge(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
2107
2085
|
activateWorktree(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
2108
2086
|
updateWorktreeTargets(input: UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
@@ -2126,30 +2104,26 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2126
2104
|
createTask(input: CreateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CreateTaskResponse>>;
|
|
2127
2105
|
completeTask(taskId: string, input: CompleteTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CompleteTaskResponse>>;
|
|
2128
2106
|
updateTask(taskId: string, input: UpdateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<UpdateTaskResponse>>;
|
|
2129
|
-
|
|
2107
|
+
} & {
|
|
2108
|
+
addWorktree: (input: AddWorktreeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
2109
|
+
createPillar: (input: {
|
|
2130
2110
|
name: string;
|
|
2131
2111
|
topicId?: string;
|
|
2132
2112
|
description?: string;
|
|
2133
2113
|
metadata?: JsonObject;
|
|
2134
|
-
} & TopicIdentifierInput, idempotencyKey?: string)
|
|
2135
|
-
createSprint(input:
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
branchId?: string;
|
|
2139
|
-
hypothesis?: string;
|
|
2140
|
-
beliefIds?: string[];
|
|
2141
|
-
} & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
2142
|
-
completeSprint(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
2143
|
-
requestReview(worktreeId: string, input: {
|
|
2114
|
+
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
2115
|
+
createSprint: (input: AddWorktreeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
2116
|
+
completeSprint: (worktreeId: string, input: MergeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
2117
|
+
requestReview: (worktreeId: string, input: {
|
|
2144
2118
|
summary: string;
|
|
2145
2119
|
reviewers?: string[];
|
|
2146
2120
|
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
2147
|
-
}, idempotencyKey?: string)
|
|
2148
|
-
publishFindings(worktreeId: string, input: {
|
|
2121
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
2122
|
+
publishFindings: (worktreeId: string, input: {
|
|
2149
2123
|
targetContext: string;
|
|
2150
2124
|
beliefIds?: string[];
|
|
2151
2125
|
metadata?: JsonObject;
|
|
2152
|
-
}, idempotencyKey?: string)
|
|
2126
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
2153
2127
|
};
|
|
2154
2128
|
audit: {
|
|
2155
2129
|
listEvents(query?: GatewayScope & {
|
|
@@ -2182,8 +2156,8 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2182
2156
|
appDeploymentUrl?: string;
|
|
2183
2157
|
metadata?: JsonObject;
|
|
2184
2158
|
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2185
|
-
getControlObjectOwnership()
|
|
2186
|
-
getControlObjectOwnershipContract()
|
|
2159
|
+
getControlObjectOwnership: () => Promise<PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
2160
|
+
getControlObjectOwnershipContract: () => Promise<PlatformGatewaySuccess<ControlObjectOwnershipContract>>;
|
|
2187
2161
|
listWorkspaces(query?: GatewayScope & {
|
|
2188
2162
|
status?: "active" | "archived";
|
|
2189
2163
|
limit?: number;
|
|
@@ -2204,27 +2178,27 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2204
2178
|
role?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
2205
2179
|
limit?: number;
|
|
2206
2180
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "memberships">>>;
|
|
2207
|
-
createMembership(input: GatewayScope & {
|
|
2181
|
+
createMembership: (input: GatewayScope & {
|
|
2208
2182
|
membershipId?: string;
|
|
2209
2183
|
principalId: string;
|
|
2210
2184
|
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
2211
2185
|
status?: "active" | "invited" | "revoked" | "expired";
|
|
2212
2186
|
source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
|
|
2213
|
-
}, idempotencyKey?: string)
|
|
2214
|
-
updateMembership(input: GatewayScope & {
|
|
2187
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2188
|
+
updateMembership: (input: GatewayScope & {
|
|
2215
2189
|
membershipId?: string;
|
|
2216
2190
|
principalId: string;
|
|
2217
2191
|
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
2218
2192
|
status?: "active" | "invited" | "revoked" | "expired";
|
|
2219
2193
|
source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
|
|
2220
|
-
}, idempotencyKey?: string)
|
|
2221
|
-
upsertMembership(input: GatewayScope & {
|
|
2194
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2195
|
+
upsertMembership: (input: GatewayScope & {
|
|
2222
2196
|
membershipId?: string;
|
|
2223
2197
|
principalId: string;
|
|
2224
2198
|
role: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent";
|
|
2225
2199
|
status?: "active" | "invited" | "revoked" | "expired";
|
|
2226
2200
|
source?: "bootstrap" | "manual" | "sync" | "sso" | "api" | "scim" | "invitation";
|
|
2227
|
-
}, idempotencyKey?: string)
|
|
2201
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2228
2202
|
listTenantApiKeys(scope: GatewayScope & {
|
|
2229
2203
|
status?: "active" | "revoked" | "expired";
|
|
2230
2204
|
}): Promise<{
|
|
@@ -2383,7 +2357,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2383
2357
|
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
2384
2358
|
metadata?: JsonObject;
|
|
2385
2359
|
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2386
|
-
updatePrincipal(input: GatewayScope & {
|
|
2360
|
+
updatePrincipal: (input: GatewayScope & {
|
|
2387
2361
|
principalId: string;
|
|
2388
2362
|
principalType: "user" | "group" | "service" | "external_viewer";
|
|
2389
2363
|
clerkId?: string;
|
|
@@ -2391,8 +2365,8 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2391
2365
|
displayName?: string;
|
|
2392
2366
|
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
2393
2367
|
metadata?: JsonObject;
|
|
2394
|
-
}, idempotencyKey?: string)
|
|
2395
|
-
upsertPrincipal(input: GatewayScope & {
|
|
2368
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2369
|
+
upsertPrincipal: (input: GatewayScope & {
|
|
2396
2370
|
principalId: string;
|
|
2397
2371
|
principalType: "user" | "group" | "service" | "external_viewer";
|
|
2398
2372
|
clerkId?: string;
|
|
@@ -2400,7 +2374,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2400
2374
|
displayName?: string;
|
|
2401
2375
|
status?: "active" | "invited" | "suspended" | "disabled" | "revoked";
|
|
2402
2376
|
metadata?: JsonObject;
|
|
2403
|
-
}, idempotencyKey?: string)
|
|
2377
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2404
2378
|
listKeys(query?: GatewayScope & {
|
|
2405
2379
|
principalId?: string;
|
|
2406
2380
|
status?: string;
|
|
@@ -2422,12 +2396,12 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2422
2396
|
replacementExpiresInDays?: number;
|
|
2423
2397
|
gracePeriodHours?: number;
|
|
2424
2398
|
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2425
|
-
deleteKey(keyId: string, input?: {
|
|
2399
|
+
deleteKey: (keyId: string, input?: {
|
|
2426
2400
|
reason?: string;
|
|
2427
|
-
}, idempotencyKey?: string)
|
|
2428
|
-
revokeKey(keyId: string, input?: {
|
|
2401
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2402
|
+
revokeKey: (keyId: string, input?: {
|
|
2429
2403
|
reason?: string;
|
|
2430
|
-
}, idempotencyKey?: string)
|
|
2404
|
+
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2431
2405
|
searchClerkUsers(q: string): Promise<PlatformGatewaySuccess<ClerkUserSearchResult[]>>;
|
|
2432
2406
|
getTenantConfig(input: TenantIdentityScope): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
2433
2407
|
updateTenantConfig(input: UpdateTenantConfigInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<TenantIdentityConfigRecord>>;
|
|
@@ -2581,14 +2555,14 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2581
2555
|
principal?: string;
|
|
2582
2556
|
principalId?: string;
|
|
2583
2557
|
}): Promise<{
|
|
2584
|
-
success:
|
|
2558
|
+
success: true;
|
|
2585
2559
|
data: {
|
|
2586
2560
|
permission: PermissionKind;
|
|
2587
2561
|
allowedTopicIds: string[];
|
|
2588
|
-
deniedTopics: {
|
|
2562
|
+
deniedTopics: Array<{
|
|
2589
2563
|
topicId: string;
|
|
2590
2564
|
reasonCode: string;
|
|
2591
|
-
}
|
|
2565
|
+
}>;
|
|
2592
2566
|
count: number;
|
|
2593
2567
|
};
|
|
2594
2568
|
}>;
|
|
@@ -2602,35 +2576,36 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2602
2576
|
tier?: string;
|
|
2603
2577
|
status?: string;
|
|
2604
2578
|
}): Promise<PlatformGatewaySuccess<{
|
|
2605
|
-
ontologies:
|
|
2579
|
+
ontologies: unknown[];
|
|
2606
2580
|
total: number;
|
|
2607
|
-
items:
|
|
2608
|
-
definitions:
|
|
2581
|
+
items: unknown[];
|
|
2582
|
+
definitions: unknown[];
|
|
2609
2583
|
}>>;
|
|
2610
2584
|
get(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2611
2585
|
bind(input: OntologyBindingInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2612
|
-
listDefinitions(filters?: GatewayScope & {
|
|
2613
|
-
tenantId?: string;
|
|
2614
|
-
tier?: string;
|
|
2615
|
-
status?: string;
|
|
2616
|
-
}): Promise<PlatformGatewaySuccess<{
|
|
2617
|
-
ontologies: any[];
|
|
2618
|
-
total: number;
|
|
2619
|
-
items: any[];
|
|
2620
|
-
definitions: any[];
|
|
2621
|
-
}>>;
|
|
2622
|
-
getDefinition(id: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2623
2586
|
createDefinition(input: OntologyDefinitionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2624
2587
|
updateDefinition(id: string, input: OntologyDefinitionUpdateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2625
2588
|
archiveDefinition(id: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2626
2589
|
listVersions(ontologyId: string, filters?: GatewayScope & {
|
|
2627
2590
|
status?: string;
|
|
2628
|
-
}): Promise<PlatformGatewaySuccess<ListResult<
|
|
2591
|
+
}): Promise<PlatformGatewaySuccess<ListResult<unknown, "versions">>>;
|
|
2629
2592
|
createVersion(ontologyId: string, input: OntologyVersionInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2630
2593
|
publishVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2631
2594
|
deprecateVersion(ontologyId: string, versionId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2632
2595
|
listTopics(ontologyId: string): Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
2633
|
-
|
|
2596
|
+
} & {
|
|
2597
|
+
listDefinitions: (filters?: GatewayScope & {
|
|
2598
|
+
tenantId?: string;
|
|
2599
|
+
tier?: string;
|
|
2600
|
+
status?: string;
|
|
2601
|
+
}) => Promise<PlatformGatewaySuccess<{
|
|
2602
|
+
ontologies: unknown[];
|
|
2603
|
+
total: number;
|
|
2604
|
+
items: unknown[];
|
|
2605
|
+
definitions: unknown[];
|
|
2606
|
+
}>>;
|
|
2607
|
+
getDefinition: (id: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2608
|
+
listTopicsByOntology: (ontologyId: string) => Promise<PlatformGatewaySuccess<ListResult<any, "topics">>>;
|
|
2634
2609
|
};
|
|
2635
2610
|
ontologyLinks: {
|
|
2636
2611
|
createLink(input: OntologyLinkWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OntologyLinkRecord>>;
|
|
@@ -2762,7 +2737,7 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2762
2737
|
toolRegistry: {
|
|
2763
2738
|
listCatalog(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2764
2739
|
listExecutable(input: ToolRegistryQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2765
|
-
listEffectiveTools(input:
|
|
2740
|
+
listEffectiveTools(input: EffectiveToolsQuery): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2766
2741
|
upsertCoreTools(input: UpsertCoreToolsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2767
2742
|
setPackToolsStatus(input: SetPackToolsStatusInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ListResult<ToolCatalogEntry, "tools">>>;
|
|
2768
2743
|
createAcl(input: CreateToolAclInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<ToolAclRecord>>;
|
|
@@ -2785,62 +2760,63 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2785
2760
|
};
|
|
2786
2761
|
packs: {
|
|
2787
2762
|
listCatalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
|
|
2788
|
-
getCatalog(): Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
|
|
2789
2763
|
getDiscoveryCatalog(): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2790
2764
|
getDiscoveryDetail(packKey: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2791
2765
|
listStates(query?: GatewayScope): Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
|
|
2792
|
-
getStates(query?: GatewayScope): Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
|
|
2793
2766
|
getHealth(packKey: string, query?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2794
2767
|
listTelemetry(query?: GatewayScope & {
|
|
2795
2768
|
lookbackHours?: number;
|
|
2796
2769
|
limit?: number;
|
|
2797
2770
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "telemetry">>>;
|
|
2798
|
-
getTelemetry(query?: GatewayScope & {
|
|
2799
|
-
lookbackHours?: number;
|
|
2800
|
-
limit?: number;
|
|
2801
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "telemetry">>>;
|
|
2802
2771
|
createEntitlement(input: PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2803
|
-
updateEntitlement(input: PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2804
|
-
upsertEntitlement(input: PackEntitlementInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2805
2772
|
install(input: PackInstallInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2806
2773
|
enable(input: PackEnableInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2807
2774
|
disable(input: PackDisableInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2808
2775
|
uninstall(input: PackUninstallInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2809
2776
|
upgrade(input: PackUpgradeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2777
|
+
} & {
|
|
2778
|
+
getCatalog: () => Promise<PlatformGatewaySuccess<ListResult<any, "catalog">>>;
|
|
2779
|
+
getStates: (query?: GatewayScope) => Promise<PlatformGatewaySuccess<ListResult<any, "states">>>;
|
|
2780
|
+
getTelemetry: (query?: GatewayScope & {
|
|
2781
|
+
lookbackHours?: number;
|
|
2782
|
+
limit?: number;
|
|
2783
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "telemetry">>>;
|
|
2784
|
+
updateEntitlement: (input: PackEntitlementInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2785
|
+
upsertEntitlement: (input: PackEntitlementInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2810
2786
|
};
|
|
2811
2787
|
reports: {
|
|
2812
|
-
listTemplates(args?: {
|
|
2788
|
+
listTemplates: (args?: {
|
|
2813
2789
|
slug?: string;
|
|
2814
|
-
})
|
|
2815
|
-
getTemplates(args?: {
|
|
2790
|
+
}) => Promise<PlatformGatewaySuccess<ReportTemplatesResponse>>;
|
|
2791
|
+
getTemplates: (args?: {
|
|
2816
2792
|
slug?: string;
|
|
2817
|
-
})
|
|
2818
|
-
listReports(input: TopicIdentifierInput, args?: {
|
|
2793
|
+
}) => Promise<PlatformGatewaySuccess<ReportTemplatesResponse>>;
|
|
2794
|
+
listReports: (input: TopicIdentifierInput, args?: {
|
|
2819
2795
|
summary?: boolean;
|
|
2820
|
-
})
|
|
2821
|
-
getReport(reportId: string)
|
|
2796
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "reports">>>;
|
|
2797
|
+
getReport: (reportId: string) => Promise<PlatformGatewaySuccess<ReportWithSectionsResponse>>;
|
|
2822
2798
|
};
|
|
2823
2799
|
learning: {
|
|
2824
|
-
listRecentExecutions(args?: {
|
|
2800
|
+
listRecentExecutions: (args?: {
|
|
2825
2801
|
namespace?: string;
|
|
2826
2802
|
topicId?: string;
|
|
2827
2803
|
audienceMode?: string;
|
|
2828
2804
|
success?: boolean;
|
|
2829
2805
|
limit?: number;
|
|
2830
|
-
} & TopicIdentifierInput)
|
|
2831
|
-
getRecentExecutions(args?: {
|
|
2806
|
+
} & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<any, "executions">>>;
|
|
2807
|
+
getRecentExecutions: (args?: {
|
|
2832
2808
|
namespace?: string;
|
|
2833
2809
|
topicId?: string;
|
|
2834
2810
|
audienceMode?: string;
|
|
2835
2811
|
success?: boolean;
|
|
2836
2812
|
limit?: number;
|
|
2837
|
-
} & TopicIdentifierInput)
|
|
2838
|
-
getExecutionStats(args?: {
|
|
2813
|
+
} & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<ListResult<any, "executions">>>;
|
|
2814
|
+
getExecutionStats: (args?: {
|
|
2839
2815
|
namespace?: string;
|
|
2840
2816
|
topicId?: string;
|
|
2841
2817
|
audienceMode?: string;
|
|
2842
2818
|
hours?: number;
|
|
2843
|
-
} & TopicIdentifierInput)
|
|
2819
|
+
} & TopicIdentifierInput) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2844
2820
|
};
|
|
2845
2821
|
mcp: {
|
|
2846
2822
|
bootstrapSession(input?: McpBootstrapSessionInput): Promise<McpBootstrapSessionResponse>;
|
|
@@ -2886,7 +2862,6 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2886
2862
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "agents">>>;
|
|
2887
2863
|
getAgentDefinition(agentId: string, scope?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2888
2864
|
createAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2889
|
-
registerAgentDefinition(input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2890
2865
|
updateAgentDefinition(agentId: string, input: HarnessAgentWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2891
2866
|
invokeManagedAgentDefinition(agentId: string, input: Omit<HarnessInvokeManagedAgentInput, "agentDefinitionId">, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2892
2867
|
listAgentRuns(agentId: string, scope?: GatewayScope & {
|
|
@@ -2894,11 +2869,6 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2894
2869
|
limit?: number;
|
|
2895
2870
|
cursor?: string;
|
|
2896
2871
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
2897
|
-
listRunsForAgent(agentId: string, scope?: GatewayScope & {
|
|
2898
|
-
status?: string;
|
|
2899
|
-
limit?: number;
|
|
2900
|
-
cursor?: string;
|
|
2901
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
2902
2872
|
listToolDefinitions(scope?: GatewayScope & {
|
|
2903
2873
|
status?: string;
|
|
2904
2874
|
limit?: number;
|
|
@@ -2907,7 +2877,6 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2907
2877
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "tools">>>;
|
|
2908
2878
|
getToolDefinition(toolId: string, scope?: GatewayScope): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2909
2879
|
createToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2910
|
-
registerToolDefinition(input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2911
2880
|
updateToolDefinition(toolId: string, input: HarnessToolWriteInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2912
2881
|
executeToolDefinition(toolId: string, input?: HarnessExecuteToolInput): Promise<PlatformGatewaySuccess<HarnessExecuteToolResult>>;
|
|
2913
2882
|
listRunEntries(scope?: GatewayScope & {
|
|
@@ -2915,11 +2884,6 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2915
2884
|
limit?: number;
|
|
2916
2885
|
cursor?: string;
|
|
2917
2886
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
2918
|
-
listRunLedgerEntries(scope?: GatewayScope & {
|
|
2919
|
-
status?: string;
|
|
2920
|
-
limit?: number;
|
|
2921
|
-
cursor?: string;
|
|
2922
|
-
}): Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
2923
2887
|
startHarnessRun(input: HarnessStartRunInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2924
2888
|
getRunLedgerEntry(runId: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2925
2889
|
reportHarnessRunEvent(runId: string, input: HarnessRunReportInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<unknown>>;
|
|
@@ -2933,6 +2897,19 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2933
2897
|
limit?: number;
|
|
2934
2898
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "prompts">>>;
|
|
2935
2899
|
getScopeTaxonomy(): Promise<PlatformGatewaySuccess<unknown>>;
|
|
2900
|
+
} & {
|
|
2901
|
+
registerAgentDefinition: (input: HarnessAgentWriteInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2902
|
+
listRunsForAgent: (agentId: string, scope?: GatewayScope & {
|
|
2903
|
+
status?: string;
|
|
2904
|
+
limit?: number;
|
|
2905
|
+
cursor?: string;
|
|
2906
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
2907
|
+
registerToolDefinition: (input: HarnessToolWriteInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2908
|
+
listRunLedgerEntries: (scope?: GatewayScope & {
|
|
2909
|
+
status?: string;
|
|
2910
|
+
limit?: number;
|
|
2911
|
+
cursor?: string;
|
|
2912
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "runs">>>;
|
|
2936
2913
|
};
|
|
2937
2914
|
schema: {
|
|
2938
2915
|
listPacks(scope?: GatewayScope): Promise<PlatformGatewaySuccess<ListResult<any, "packs">>>;
|
|
@@ -2941,38 +2918,38 @@ declare function createLucernClient(config?: LucernClientConfig): {
|
|
|
2941
2918
|
listEntitlements(scope?: GatewayScope & {
|
|
2942
2919
|
packKey?: string;
|
|
2943
2920
|
}): Promise<PlatformGatewaySuccess<ListResult<any, "entitlements">>>;
|
|
2944
|
-
createEntitlement(input: SchemaEntitlementInput, idempotencyKey?: string)
|
|
2945
|
-
updateEntitlement(input: SchemaEntitlementInput, idempotencyKey?: string)
|
|
2946
|
-
upsertEntitlement(input: SchemaEntitlementInput, idempotencyKey?: string)
|
|
2921
|
+
createEntitlement: (input: SchemaEntitlementInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2922
|
+
updateEntitlement: (input: SchemaEntitlementInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2923
|
+
upsertEntitlement: (input: SchemaEntitlementInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2947
2924
|
};
|
|
2948
2925
|
audiences: {
|
|
2949
|
-
listRegistry(query?: GatewayScope & {
|
|
2926
|
+
listRegistry: (query?: GatewayScope & {
|
|
2950
2927
|
effective?: boolean;
|
|
2951
2928
|
status?: "active" | "disabled" | "archived";
|
|
2952
|
-
})
|
|
2953
|
-
getRegistry(query?: GatewayScope & {
|
|
2929
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "registryEntries">>>;
|
|
2930
|
+
getRegistry: (query?: GatewayScope & {
|
|
2954
2931
|
effective?: boolean;
|
|
2955
2932
|
status?: "active" | "disabled" | "archived";
|
|
2956
|
-
})
|
|
2957
|
-
createRegistryEntry(input: AudienceRegistryInput, idempotencyKey?: string)
|
|
2958
|
-
updateRegistryEntry(input: AudienceRegistryInput, idempotencyKey?: string)
|
|
2959
|
-
upsertRegistry(input: AudienceRegistryInput, idempotencyKey?: string)
|
|
2960
|
-
listGrants(query?: GatewayScope & {
|
|
2933
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "registryEntries">>>;
|
|
2934
|
+
createRegistryEntry: (input: AudienceRegistryInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2935
|
+
updateRegistryEntry: (input: AudienceRegistryInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2936
|
+
upsertRegistry: (input: AudienceRegistryInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2937
|
+
listGrants: (query?: GatewayScope & {
|
|
2961
2938
|
audienceKey?: string;
|
|
2962
2939
|
principalId?: string;
|
|
2963
2940
|
groupId?: string;
|
|
2964
2941
|
status?: "active" | "revoked" | "expired";
|
|
2965
|
-
})
|
|
2966
|
-
getGrants(query?: GatewayScope & {
|
|
2942
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "grants">>>;
|
|
2943
|
+
getGrants: (query?: GatewayScope & {
|
|
2967
2944
|
audienceKey?: string;
|
|
2968
2945
|
principalId?: string;
|
|
2969
2946
|
groupId?: string;
|
|
2970
2947
|
status?: "active" | "revoked" | "expired";
|
|
2971
|
-
})
|
|
2972
|
-
createGrant(input: AudienceGrantInput, idempotencyKey?: string)
|
|
2973
|
-
grant(input: AudienceGrantInput, idempotencyKey?: string)
|
|
2974
|
-
deleteGrant(input: AudienceGrantRevokeInput, idempotencyKey?: string)
|
|
2975
|
-
revokeGrant(input: AudienceGrantRevokeInput, idempotencyKey?: string)
|
|
2948
|
+
}) => Promise<PlatformGatewaySuccess<ListResult<any, "grants">>>;
|
|
2949
|
+
createGrant: (input: AudienceGrantInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2950
|
+
grant: (input: AudienceGrantInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2951
|
+
deleteGrant: (input: AudienceGrantRevokeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2952
|
+
revokeGrant: (input: AudienceGrantRevokeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<unknown>>;
|
|
2976
2953
|
};
|
|
2977
2954
|
topics: {
|
|
2978
2955
|
list(query?: TopicListInput): Promise<PlatformGatewaySuccess<TopicListResponse>>;
|