@lucern/sdk 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/accessControl.d.ts +31 -31
- package/dist/accessControl.js +1 -0
- package/dist/adminClient.d.ts +74 -74
- package/dist/adminClient.js +38 -30
- package/dist/{answersClient.d.ts → answers-client.d.ts} +1 -1
- package/dist/{answersClient.js → answers-client.js} +2 -2
- package/dist/audience/index.d.ts +12 -12
- package/dist/{audiencesClient.d.ts → audiences-client.d.ts} +1 -1
- package/dist/audiences-client.js +107 -0
- package/dist/{auditClient.d.ts → audit-client.d.ts} +2 -3
- package/dist/{auditClient.js → audit-client.js} +8 -7
- package/dist/authContext.d.ts +26 -26
- package/dist/authDeviceClient.d.ts +11 -11
- package/dist/authDeviceClient.js +4 -6
- package/dist/beliefs/index.d.ts +56 -28
- package/dist/beliefs/index.js +2 -1
- package/dist/beliefsClient.d.ts +71 -63
- package/dist/beliefsClient.js +90 -67
- package/dist/{boundaryClientSurface.d.ts → boundary-client-surface.d.ts} +4 -4
- package/dist/{boundaryClientSurface.js → boundary-client-surface.js} +9 -7
- package/dist/client-assembly-types.d.ts +219 -0
- package/dist/client-assembly-types.js +2 -0
- package/dist/{clientConfig.d.ts → client-config.d.ts} +16 -32
- package/dist/client-config.js +2 -0
- package/dist/{clientEvidenceCompat.d.ts → client-evidence-compat.d.ts} +24 -24
- package/dist/{clientEvidenceCompat.js → client-evidence-compat.js} +2 -2
- package/dist/client.d.ts +1906 -352
- package/dist/client.js +34 -30
- package/dist/clientGraphNamespaces.d.ts +35 -25
- package/dist/clientGraphNamespaces.js +11 -5
- package/dist/clientHelpers.js +8 -5
- package/dist/clientKnowledgeNamespaces.d.ts +124 -84
- package/dist/clientKnowledgeNamespaces.js +35 -34
- package/dist/clientLocalHelpers.d.ts +81 -52
- package/dist/clientLocalHelpers.js +193 -43
- package/dist/clientPlatformNamespaces.d.ts +1541 -150
- package/dist/clientPlatformNamespaces.js +10 -5
- package/dist/clientRuntime.d.ts +1 -1
- package/dist/clientRuntime.js +1 -1
- package/dist/clientWorkflowNamespaces.d.ts +211 -97
- package/dist/clientWorkflowNamespaces.js +22 -19
- package/dist/contextClient.d.ts +2 -2
- package/dist/contextClient.js +79 -50
- package/dist/contextFacade.d.ts +1 -1
- package/dist/contextFacade.js +2 -0
- package/dist/contextPackCompiler.d.ts +52 -52
- package/dist/contextPackCompiler.js +192 -122
- package/dist/contextPackPolicy.d.ts +22 -22
- package/dist/contextPackPolicy.js +21 -9
- package/dist/contextPackSchema.d.ts +3 -3
- package/dist/contextPackSchema.js +1 -0
- package/dist/contextTypes.d.ts +155 -155
- package/dist/contracts/api-enums.contract.js +2 -11
- package/dist/contracts/auth-session.contract.d.ts +16 -16
- package/dist/contracts/auth-session.contract.js +3 -2
- package/dist/contracts/context-pack.contract.d.ts +216 -216
- package/dist/contracts/contextPack.js +2 -0
- package/dist/contracts/index.d.ts +1 -1
- package/dist/contracts/index.js +2 -1
- package/dist/contracts/lens-filter.contract.d.ts +8 -8
- package/dist/contracts/lens-filter.contract.js +10 -10
- package/dist/contracts/lens-workflow.contract.d.ts +32 -32
- package/dist/contracts/lens-workflow.contract.js +2 -1
- package/dist/contracts/lensFilter.js +2 -0
- package/dist/contracts/lensWorkflow.js +2 -0
- package/dist/contracts/mcpTools.d.ts +19 -19
- package/dist/contracts/mcpTools.js +3 -1
- package/dist/contracts/prompt.contract.d.ts +12 -12
- package/dist/contracts/prompt.js +1 -0
- package/dist/contracts/sdk-tools.contract.js +1 -0
- package/dist/contracts/sdkTools.js +2 -0
- package/dist/contracts/tool-contracts.js +1 -0
- package/dist/contracts/workflow-runtime.contract.d.ts +45 -45
- package/dist/contracts/workflow-runtime.contract.js +1 -5
- package/dist/contracts/workflowRuntime.js +2 -0
- package/dist/contradictions/index.d.ts +8 -8
- package/dist/contradictions/index.js +1 -0
- package/dist/control-plane.d.ts +10 -10
- package/dist/control-plane.js +2 -2
- package/dist/controlObjectOwnership.d.ts +11 -11
- package/dist/controlObjectOwnership.js +1 -0
- package/dist/coreClient.d.ts +51 -51
- package/dist/coreClient.js +269 -101
- package/dist/customTools.d.ts +19 -19
- package/dist/customTools.js +4 -2
- package/dist/decisions/index.d.ts +18 -18
- package/dist/decisions/index.js +1 -0
- package/dist/decisionsClient.d.ts +4 -4
- package/dist/decisionsClient.js +36 -27
- package/dist/edges/index.d.ts +20 -18
- package/dist/edges/index.js +1 -0
- package/dist/embeddingsClient.d.ts +29 -29
- package/dist/embeddingsClient.js +15 -8
- package/dist/eventingClient.d.ts +27 -27
- package/dist/eventingClient.js +10 -5
- package/dist/events.d.ts +83 -83
- package/dist/events.js +19 -15
- package/dist/eventsCore.d.ts +7 -7
- package/dist/eventsCore.js +11 -10
- package/dist/evidence/index.d.ts +23 -21
- package/dist/evidence/index.js +1 -0
- package/dist/evidenceClient.d.ts +23 -23
- package/dist/evidenceClient.js +10 -6
- package/dist/facade/context.d.ts +9 -9
- package/dist/facade/context.js +67 -41
- package/dist/functionSurface.js +2 -0
- package/dist/functionSurfaceClient.js +2 -0
- package/dist/gatewayFacades.d.ts +215 -215
- package/dist/gatewayFacades.factories.d.ts +23 -44
- package/dist/gatewayFacades.factories.js +63 -62
- package/dist/gatewayFacades.js +31 -32
- package/dist/graphAnalysisClient.d.ts +60 -60
- package/dist/graphAnalysisClient.js +19 -18
- package/dist/graphClient.d.ts +34 -34
- package/dist/graphClient.js +56 -35
- package/dist/graphIntel.js +2 -0
- package/dist/graphIntelligence.d.ts +2 -2
- package/dist/graphIntelligence.js +1 -1
- package/dist/graphRecommendationsClient.d.ts +24 -24
- package/dist/graphRecommendationsClient.js +12 -7
- package/dist/graphStateClassifierClient.d.ts +13 -13
- package/dist/graphStateClassifierClient.js +10 -5
- package/dist/harnessClient.d.ts +61 -61
- package/dist/harnessClient.js +44 -31
- package/dist/identityClient.d.ts +33 -59
- package/dist/identityClient.js +126 -98
- package/dist/index.d.ts +20 -20
- package/dist/index.js +20 -19
- package/dist/infisicalRuntime.d.ts +11 -11
- package/dist/infisicalRuntime.js +20 -14
- package/dist/jobsClient.d.ts +28 -28
- package/dist/jobsClient.js +6 -3
- package/dist/learningClient.js +13 -8
- package/dist/lenses/index.d.ts +124 -28
- package/dist/lenses/index.js +1 -0
- package/dist/mcpClient.d.ts +1 -1
- package/dist/mcpClient.js +3 -3
- package/dist/modelRuntimeClient.d.ts +27 -27
- package/dist/modelRuntimeClient.js +10 -5
- package/dist/nodes/index.d.ts +9 -9
- package/dist/nodes/index.js +1 -0
- package/dist/ontologies/index.d.ts +68 -22
- package/dist/ontologies/index.js +1 -0
- package/dist/ontologyClient.js +24 -17
- package/dist/ontologyLinksClient.d.ts +35 -35
- package/dist/ontologyLinksClient.js +9 -6
- package/dist/opinion.d.ts +3 -3
- package/dist/opinion.js +12 -5
- package/dist/orgGraphSearchClient.d.ts +39 -39
- package/dist/orgGraphSearchClient.js +22 -13
- package/dist/packsClient.d.ts +1 -1
- package/dist/packsClient.js +28 -19
- package/dist/policyClient.d.ts +79 -68
- package/dist/policyClient.js +18 -12
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +38 -27
- package/dist/questions/index.js +1 -0
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +1 -0
- package/dist/realtime/refs.d.ts +2 -2
- package/dist/{reportsClient.d.ts → reports-client.d.ts} +2 -2
- package/dist/{reportsClient.js → reports-client.js} +19 -13
- package/dist/{schemaClient.d.ts → schema-client.d.ts} +2 -3
- package/dist/{schemaClient.js → schema-client.js} +14 -11
- package/dist/sdkSurface.d.ts +12 -12
- package/dist/sdkSurface.js +14 -10
- package/dist/secrets.d.ts +1 -1
- package/dist/secrets.js +2 -1
- package/dist/{sourcesClient.d.ts → sources-client.d.ts} +8 -9
- package/dist/{sourcesClient.js → sources-client.js} +4 -5
- package/dist/{telemetryClient.d.ts → telemetry-client.d.ts} +14 -14
- package/dist/{telemetryClient.js → telemetry-client.js} +6 -4
- package/dist/toolRegistryClient.d.ts +46 -46
- package/dist/toolRegistryClient.js +22 -11
- package/dist/topics/index.d.ts +23 -23
- package/dist/topics/index.js +2 -1
- package/dist/topicsClient.d.ts +6 -6
- package/dist/topicsClient.js +29 -18
- package/dist/types.d.ts +356 -355
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/workflowClient.d.ts +36 -35
- package/dist/workflowClient.js +88 -60
- package/dist/worktrees/index.d.ts +118 -32
- package/dist/worktrees/index.js +2 -1
- package/package.json +45 -5
- package/dist/audiencesClient.js +0 -115
- package/dist/clientAssemblyTypes.d.ts +0 -33
- package/dist/clientAssemblyTypes.js +0 -2
- package/dist/clientConfig.js +0 -2
|
@@ -1,37 +1,66 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { CreateBeliefInput } from "./beliefsClient";
|
|
2
|
+
import type { ClientNamespaceContext } from "./client-assembly-types";
|
|
3
|
+
import type { BeliefsCompatForkInput } from "./client-config";
|
|
4
|
+
import type { EvidenceCompatInput } from "./client-evidence-compat";
|
|
4
5
|
import type { FunctionSurfaceInput } from "./generated/functionSurface";
|
|
5
6
|
import type { JsonObject } from "./types";
|
|
6
7
|
export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceContext): {
|
|
7
8
|
events: {
|
|
8
|
-
list(query?: Parameters<(
|
|
9
|
-
replay(input: Parameters<(
|
|
10
|
-
recordEvent:
|
|
11
|
-
listEvents:
|
|
12
|
-
listWebhooks:
|
|
13
|
-
enqueueDelivery:
|
|
14
|
-
recordDeliveryAttempt:
|
|
15
|
-
updateDeliveryStatus:
|
|
9
|
+
list(query?: Parameters<(query?: import("./gatewayFacades").EventsListQuery) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").EventsListResult>>>[0]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").EventsListResult>>;
|
|
10
|
+
replay(input: Parameters<(input: import("./gatewayFacades").ReplayEventsInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
11
|
+
recordEvent: (input: import("./eventingClient").RecordEventInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./eventingClient").EventingRecord>>;
|
|
12
|
+
listEvents: (input: import("./eventingClient").EventingScope) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<import("./eventingClient").EventingRecord, "events">>>;
|
|
13
|
+
listWebhooks: (input: import("./eventingClient").EventingScope) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<import("./eventingClient").EventingWebhookRecord, "webhooks">>>;
|
|
14
|
+
enqueueDelivery: (input: import("./eventingClient").EnqueueDeliveryInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./eventingClient").EventingDeliveryRecord>>;
|
|
15
|
+
recordDeliveryAttempt: (input: import("./eventingClient").RecordDeliveryAttemptInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./eventingClient").EventingDeliveryRecord>>;
|
|
16
|
+
updateDeliveryStatus: (input: import("./eventingClient").UpdateDeliveryStatusInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./eventingClient").EventingDeliveryRecord>>;
|
|
16
17
|
};
|
|
17
18
|
beliefs: {
|
|
18
|
-
create(input:
|
|
19
|
-
get(nodeId: string):
|
|
19
|
+
create(input: CreateBeliefInput): Promise<import("./client-config").GatewayDataEnvelope<import("./types").PlatformBeliefRecord>>;
|
|
20
|
+
get(nodeId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").BeliefRecord>>;
|
|
20
21
|
refine(nodeId: string, textOrInput: string | {
|
|
21
22
|
text: string;
|
|
22
23
|
rationale?: string;
|
|
23
|
-
}, rationale?: string):
|
|
24
|
-
updateRationale(input: Parameters<(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
}, rationale?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").BeliefRecord>>;
|
|
25
|
+
updateRationale(input: Parameters<(input: {
|
|
26
|
+
id?: string;
|
|
27
|
+
nodeId?: string;
|
|
28
|
+
beliefId?: string;
|
|
29
|
+
rationale?: string;
|
|
30
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
31
|
+
linkBeliefs(input: Parameters<(input: {
|
|
32
|
+
fromNodeId: string;
|
|
33
|
+
toNodeId: string;
|
|
34
|
+
edgeType: string;
|
|
35
|
+
weight?: number;
|
|
36
|
+
context?: string;
|
|
37
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
38
|
+
unlinkEvidence(input: Parameters<(input: {
|
|
39
|
+
beliefNodeId?: string;
|
|
40
|
+
beliefId?: string;
|
|
41
|
+
insightId?: string;
|
|
42
|
+
evidenceId?: string;
|
|
43
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
44
|
+
updateCriticality(input: Parameters<(input: {
|
|
45
|
+
id?: string;
|
|
46
|
+
nodeId?: string;
|
|
47
|
+
beliefId?: string;
|
|
48
|
+
criticality: string;
|
|
49
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
50
|
+
batchUpdateCriticality(input: Parameters<(input: {
|
|
51
|
+
updates: import("./gatewayFacades").GatewayRecord[];
|
|
52
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
53
|
+
reassignTopic(input: Parameters<(input: {
|
|
54
|
+
beliefNodeIds?: string[];
|
|
55
|
+
beliefIds?: string[];
|
|
56
|
+
targetTopicId: string;
|
|
57
|
+
reason?: string;
|
|
58
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
59
|
+
fork(nodeId: string, input: BeliefsCompatForkInput): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").BeliefRecord>>;
|
|
31
60
|
archive(nodeId: string, input?: string | {
|
|
32
61
|
reason?: string;
|
|
33
62
|
rationale?: string;
|
|
34
|
-
}):
|
|
63
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
35
64
|
list(args: {
|
|
36
65
|
topicId?: string;
|
|
37
66
|
worktreeId?: string;
|
|
@@ -39,23 +68,23 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
39
68
|
minConfidence?: number;
|
|
40
69
|
limit?: number;
|
|
41
70
|
cursor?: string;
|
|
42
|
-
}):
|
|
43
|
-
search:
|
|
44
|
-
lineage(nodeId: string):
|
|
45
|
-
confidenceHistory(nodeId: string):
|
|
46
|
-
opinionHistory:
|
|
47
|
-
createContract(nodeId: string, input: Parameters<(
|
|
48
|
-
bisect(nodeId: string, input: Parameters<(
|
|
71
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").BeliefsListResult>>;
|
|
72
|
+
search: (args_0: JsonObject) => Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
73
|
+
lineage(nodeId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").BeliefsLineageResult>>;
|
|
74
|
+
confidenceHistory(nodeId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
75
|
+
opinionHistory: (args_0: string) => Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
76
|
+
createContract(nodeId: string, input: Parameters<(id: string, input: import("./gatewayFacades").BeliefContractInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
77
|
+
bisect(nodeId: string, input: Parameters<(id: string, input: import("./gatewayFacades").BeliefBisectInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
49
78
|
};
|
|
50
79
|
webhooks: {
|
|
51
|
-
create(input: Parameters<(
|
|
52
|
-
list(query?: Parameters<(
|
|
53
|
-
get(id: string):
|
|
54
|
-
update(id: string, input: Parameters<(
|
|
55
|
-
delete(id: string):
|
|
56
|
-
test(id: string, input?: Parameters<(
|
|
57
|
-
deliveries(id: string, query?: Parameters<(
|
|
58
|
-
health(id: string):
|
|
80
|
+
create(input: Parameters<(input: import("./gatewayFacades").WebhookCreateInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
81
|
+
list(query?: Parameters<(query?: import("./gatewayFacades").WebhookListQuery) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").WebhooksListResult>>>[0]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").WebhooksListResult>>;
|
|
82
|
+
get(id: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
83
|
+
update(id: string, input: Parameters<(id: string, input: import("./gatewayFacades").WebhookUpdateInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
84
|
+
delete(id: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
85
|
+
test(id: string, input?: Parameters<(id: string, input?: import("./gatewayFacades").WebhookTestInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
86
|
+
deliveries(id: string, query?: Parameters<(id: string, query?: import("./gatewayFacades").WebhookDeliveriesQuery) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
87
|
+
health(id: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
59
88
|
};
|
|
60
89
|
edges: {
|
|
61
90
|
create(args: FunctionSurfaceInput & {
|
|
@@ -69,40 +98,42 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
69
98
|
weight?: number;
|
|
70
99
|
context?: string;
|
|
71
100
|
reasoning?: string;
|
|
72
|
-
}, idempotencyKey?: string):
|
|
73
|
-
createEdge(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
74
|
-
update(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
75
|
-
updateEdge(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
76
|
-
remove(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
77
|
-
removeEdge(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
78
|
-
removeBetween(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
79
|
-
removeEdgesBetween(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
80
|
-
batchCreate(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
81
|
-
batchCreateEdges(input: FunctionSurfaceInput, idempotencyKey?: string):
|
|
82
|
-
delete(input: Parameters<(
|
|
101
|
+
}, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
102
|
+
createEdge(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
103
|
+
update(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
104
|
+
updateEdge(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
105
|
+
remove(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
106
|
+
removeEdge(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
107
|
+
removeBetween(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
108
|
+
removeEdgesBetween(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
109
|
+
batchCreate(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
110
|
+
batchCreateEdges(input: FunctionSurfaceInput, idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<unknown>>;
|
|
111
|
+
delete(input: Parameters<(input: {
|
|
112
|
+
edgeIds: string[];
|
|
113
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
83
114
|
list(args: {
|
|
84
115
|
sourceId: string;
|
|
85
116
|
edgeType?: string;
|
|
86
117
|
limit?: number;
|
|
87
118
|
cursor?: string;
|
|
88
|
-
}):
|
|
119
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayList>>;
|
|
89
120
|
traverse(args: {
|
|
90
121
|
startNode: string;
|
|
91
122
|
direction?: string;
|
|
92
123
|
maxDepth?: number;
|
|
93
124
|
topicId?: string;
|
|
94
|
-
}):
|
|
125
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
95
126
|
};
|
|
96
127
|
evidence: {
|
|
97
|
-
create(args: EvidenceCompatInput):
|
|
98
|
-
add:
|
|
99
|
-
get(evidenceId: string):
|
|
128
|
+
create(args: EvidenceCompatInput): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
129
|
+
add: (args_0: EvidenceCompatInput) => Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>> & Record<string, unknown>>;
|
|
130
|
+
get(evidenceId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
100
131
|
list(args: {
|
|
101
132
|
topicId?: string;
|
|
102
133
|
targetId?: string;
|
|
103
134
|
limit?: number;
|
|
104
135
|
cursor?: string;
|
|
105
|
-
}):
|
|
136
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayList>>;
|
|
106
137
|
search(args: {
|
|
107
138
|
q?: string;
|
|
108
139
|
query?: string;
|
|
@@ -111,7 +142,7 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
111
142
|
methodology?: string;
|
|
112
143
|
limit?: number;
|
|
113
144
|
cursor?: string;
|
|
114
|
-
}):
|
|
145
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayList>>;
|
|
115
146
|
link(args: {
|
|
116
147
|
evidenceId: string;
|
|
117
148
|
targetId?: string;
|
|
@@ -122,7 +153,7 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
122
153
|
evidenceRelation?: "supports" | "contradicts";
|
|
123
154
|
confidence?: number;
|
|
124
155
|
rationale?: string;
|
|
125
|
-
}):
|
|
156
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").EvidenceLinkResult>>;
|
|
126
157
|
linkToBelief(args: {
|
|
127
158
|
evidenceId: string;
|
|
128
159
|
beliefId: string;
|
|
@@ -130,18 +161,20 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
130
161
|
evidenceRelation?: "supports" | "contradicts";
|
|
131
162
|
confidence?: number;
|
|
132
163
|
rationale?: string;
|
|
133
|
-
}):
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
164
|
+
}): Promise<{
|
|
165
|
+
beliefId: string;
|
|
166
|
+
}>;
|
|
167
|
+
classifyEvidence(beliefId: string, evidenceId: string, config?: Parameters<(beliefId: string, evidenceId: string, classificationConfig?: import("./evidenceClient").EvidenceClassificationRequestConfig, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./evidenceClient").ClassifyEvidenceResult>>>[2], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./evidenceClient").ClassifyEvidenceResult>>;
|
|
168
|
+
classifyEvidenceBatch(beliefId: string, evidence: Parameters<(beliefId: string, evidence: import("./evidenceClient").ClassifyEvidenceBatchItem[], classificationConfig?: import("./evidenceClient").EvidenceClassificationRequestConfig, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./evidenceClient").ClassifyEvidenceBatchResult>>>[1], config?: Parameters<(beliefId: string, evidence: import("./evidenceClient").ClassifyEvidenceBatchItem[], classificationConfig?: import("./evidenceClient").EvidenceClassificationRequestConfig, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./evidenceClient").ClassifyEvidenceBatchResult>>>[2], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./evidenceClient").ClassifyEvidenceBatchResult>>;
|
|
169
|
+
updateStatus(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
170
|
+
update(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
171
|
+
flagIncorrect(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
172
|
+
remove(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
173
|
+
updateVerificationStatus(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
141
174
|
};
|
|
142
175
|
sources: {
|
|
143
|
-
upsert(input: Parameters<
|
|
144
|
-
get(sourceId: string):
|
|
176
|
+
upsert(input: Parameters<(spec: import("./sources-client").UpsertSourceSpec, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").PlatformSourceRecord>>>[0], idempotencyKey?: Parameters<(spec: import("./sources-client").UpsertSourceSpec, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").PlatformSourceRecord>>>[1]): Promise<import("./client-config").GatewayDataEnvelope<import("./types").PlatformSourceRecord>>;
|
|
177
|
+
get(sourceId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./types").PlatformSourceRecord>>;
|
|
145
178
|
};
|
|
146
179
|
questions: {
|
|
147
180
|
create(args: {
|
|
@@ -150,14 +183,14 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
150
183
|
priority?: string;
|
|
151
184
|
linkedBeliefId?: string;
|
|
152
185
|
metadata?: JsonObject;
|
|
153
|
-
}):
|
|
154
|
-
get(questionId: string):
|
|
186
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
187
|
+
get(questionId: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
155
188
|
refine(questionId: string, input: string | {
|
|
156
189
|
text?: string;
|
|
157
190
|
question?: string;
|
|
158
191
|
rationale?: string;
|
|
159
192
|
linkedWorktreeId?: string;
|
|
160
|
-
}, refinementReason?: string):
|
|
193
|
+
}, refinementReason?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
161
194
|
list(args: {
|
|
162
195
|
topicId?: string;
|
|
163
196
|
status?: string;
|
|
@@ -165,39 +198,46 @@ export declare function createClientKnowledgeNamespaces(ctx: ClientNamespaceCont
|
|
|
165
198
|
worktreeId?: string;
|
|
166
199
|
limit?: number;
|
|
167
200
|
cursor?: string;
|
|
168
|
-
}):
|
|
169
|
-
updateStatus(questionId: string, status: string, rationale?: string):
|
|
170
|
-
batchCreate(input: Parameters<(
|
|
171
|
-
add(input: Parameters<(
|
|
172
|
-
updatePriority(input: Parameters<(
|
|
173
|
-
advanceToConviction(input: Parameters<(
|
|
174
|
-
updateConviction(input: Parameters<(
|
|
175
|
-
finalizeConviction(input: Parameters<(
|
|
176
|
-
update(input: Parameters<(
|
|
177
|
-
delete(input: Parameters<(
|
|
201
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").QuestionsListResult>>;
|
|
202
|
+
updateStatus(questionId: string, status: string, rationale?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
203
|
+
batchCreate(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
204
|
+
add(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
205
|
+
updatePriority(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
206
|
+
advanceToConviction(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
207
|
+
updateConviction(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
208
|
+
finalizeConviction(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
209
|
+
update(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
210
|
+
delete(input: Parameters<(input: import("./gatewayFacades").GatewayRecord, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<import("./gatewayFacades").GatewayRecord>>>[0], idempotencyKey?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
178
211
|
answer(questionId: string, input: {
|
|
179
212
|
text: string;
|
|
180
213
|
confidence?: string;
|
|
181
214
|
evidenceIds?: string[];
|
|
182
215
|
rationale?: string;
|
|
183
|
-
}):
|
|
184
|
-
archive(questionId: string, reason?: string):
|
|
216
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
217
|
+
archive(questionId: string, reason?: string): Promise<import("./client-config").GatewayDataEnvelope<import("./gatewayFacades").GatewayRecord>>;
|
|
185
218
|
linkEvidence(args: {
|
|
186
219
|
evidenceId: string;
|
|
187
220
|
questionId: string;
|
|
188
221
|
relevance?: number;
|
|
189
222
|
weight?: number;
|
|
190
223
|
rationale?: string;
|
|
191
|
-
}):
|
|
224
|
+
}): Promise<{
|
|
225
|
+
questionId: string;
|
|
226
|
+
relevance: number | undefined;
|
|
227
|
+
}>;
|
|
192
228
|
getHighPriority(args: {
|
|
193
229
|
topicId?: string;
|
|
194
230
|
limit?: number;
|
|
195
231
|
includeAnswered?: boolean;
|
|
196
|
-
}):
|
|
232
|
+
}): Promise<{
|
|
233
|
+
questions: ({
|
|
234
|
+
priority?: string;
|
|
235
|
+
} & Record<string, unknown>)[];
|
|
236
|
+
}>;
|
|
197
237
|
findMissing(args: {
|
|
198
238
|
topicId?: string;
|
|
199
239
|
minConfidence?: number;
|
|
200
|
-
}): Promise<
|
|
240
|
+
}): Promise<import("./client-config").GatewayDataEnvelope<Record<string, unknown>>>;
|
|
201
241
|
};
|
|
202
242
|
};
|
|
203
243
|
//# sourceMappingURL=clientKnowledgeNamespaces.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
// biome-ignore-all lint/style/useFilenamingConvention: This file is an @lucern/sdk public import ABI / package subpath compatibility surface; the camelCase filename is intentional.
|
|
1
2
|
export function createClientKnowledgeNamespaces(ctx) {
|
|
2
|
-
const {
|
|
3
|
+
const { addEvidence, beliefsClient, beliefsFacade, buildBeliefsArchivePayload, buildBeliefsRefinePayload, createEvidence, edgesFacade, eventingClient, eventsFacade, evidenceClient, evidenceFacade, exposeGatewayData, functionSurfaceClient, getOpinionHistory, graphFacade, questionsFacade, requireText, requireTopicId, resolveTopicId, searchBeliefs, sourcesClient, webhooksFacade, } = ctx;
|
|
3
4
|
return {
|
|
4
5
|
events: {
|
|
5
6
|
list(query = {}) {
|
|
@@ -17,22 +18,7 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
17
18
|
},
|
|
18
19
|
beliefs: {
|
|
19
20
|
create(input) {
|
|
20
|
-
return
|
|
21
|
-
.create({
|
|
22
|
-
topicId: resolveTopicId(input),
|
|
23
|
-
text: requireText(input),
|
|
24
|
-
rationale: input.rationale,
|
|
25
|
-
worktreeId: input.worktreeId,
|
|
26
|
-
pillar: input.pillar,
|
|
27
|
-
baseRate: requireBaseRate(input),
|
|
28
|
-
sourceBeliefIds: input.sourceBeliefIds,
|
|
29
|
-
sourceType: input.sourceType,
|
|
30
|
-
beliefType: input.beliefType,
|
|
31
|
-
reversibility: input.reversibility,
|
|
32
|
-
predictionMeta: input.predictionMeta,
|
|
33
|
-
metadata: input.metadata,
|
|
34
|
-
})
|
|
35
|
-
.then(exposeGatewayData);
|
|
21
|
+
return beliefsClient.createBelief(input).then(exposeGatewayData);
|
|
36
22
|
},
|
|
37
23
|
get(nodeId) {
|
|
38
24
|
return beliefsFacade.get(nodeId).then(exposeGatewayData);
|
|
@@ -148,7 +134,7 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
148
134
|
.createEdge(args, idempotencyKey)
|
|
149
135
|
.then(exposeGatewayData);
|
|
150
136
|
}
|
|
151
|
-
if (!args.sourceId
|
|
137
|
+
if (!(args.sourceId && args.targetId)) {
|
|
152
138
|
throw new Error("from/to graph refs or sourceId/targetId are required");
|
|
153
139
|
}
|
|
154
140
|
return edgesFacade
|
|
@@ -209,7 +195,9 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
209
195
|
.then(exposeGatewayData);
|
|
210
196
|
},
|
|
211
197
|
delete(input, idempotencyKey) {
|
|
212
|
-
return edgesFacade
|
|
198
|
+
return edgesFacade
|
|
199
|
+
.delete(input, idempotencyKey)
|
|
200
|
+
.then(exposeGatewayData);
|
|
213
201
|
},
|
|
214
202
|
list(args) {
|
|
215
203
|
return edgesFacade
|
|
@@ -270,13 +258,16 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
270
258
|
if (!targetId) {
|
|
271
259
|
throw new Error("targetId is required");
|
|
272
260
|
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
261
|
+
let targetType;
|
|
262
|
+
if (typeof args.targetType === "string") {
|
|
263
|
+
targetType = args.targetType;
|
|
264
|
+
}
|
|
265
|
+
else if (args.questionId) {
|
|
266
|
+
targetType = "question";
|
|
267
|
+
}
|
|
268
|
+
else if (args.beliefId) {
|
|
269
|
+
targetType = "belief";
|
|
270
|
+
}
|
|
280
271
|
return evidenceFacade
|
|
281
272
|
.link({
|
|
282
273
|
evidenceId: args.evidenceId,
|
|
@@ -300,7 +291,7 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
300
291
|
rationale: args.rationale,
|
|
301
292
|
})
|
|
302
293
|
.then((response) => ({
|
|
303
|
-
...response.data,
|
|
294
|
+
...(response.data ?? {}),
|
|
304
295
|
beliefId: args.beliefId,
|
|
305
296
|
}));
|
|
306
297
|
},
|
|
@@ -320,7 +311,9 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
320
311
|
.then(exposeGatewayData);
|
|
321
312
|
},
|
|
322
313
|
update(input, idempotencyKey) {
|
|
323
|
-
return evidenceFacade
|
|
314
|
+
return evidenceFacade
|
|
315
|
+
.update(input, idempotencyKey)
|
|
316
|
+
.then(exposeGatewayData);
|
|
324
317
|
},
|
|
325
318
|
flagIncorrect(input, idempotencyKey) {
|
|
326
319
|
return evidenceFacade
|
|
@@ -328,7 +321,9 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
328
321
|
.then(exposeGatewayData);
|
|
329
322
|
},
|
|
330
323
|
remove(input, idempotencyKey) {
|
|
331
|
-
return evidenceFacade
|
|
324
|
+
return evidenceFacade
|
|
325
|
+
.remove(input, idempotencyKey)
|
|
326
|
+
.then(exposeGatewayData);
|
|
332
327
|
},
|
|
333
328
|
updateVerificationStatus(input, idempotencyKey) {
|
|
334
329
|
return evidenceFacade
|
|
@@ -338,7 +333,9 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
338
333
|
},
|
|
339
334
|
sources: {
|
|
340
335
|
upsert(input, idempotencyKey) {
|
|
341
|
-
return sourcesClient
|
|
336
|
+
return sourcesClient
|
|
337
|
+
.upsert(input, idempotencyKey)
|
|
338
|
+
.then(exposeGatewayData);
|
|
342
339
|
},
|
|
343
340
|
get(sourceId) {
|
|
344
341
|
return sourcesClient.get(sourceId).then(exposeGatewayData);
|
|
@@ -427,10 +424,14 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
427
424
|
.then(exposeGatewayData);
|
|
428
425
|
},
|
|
429
426
|
update(input, idempotencyKey) {
|
|
430
|
-
return questionsFacade
|
|
427
|
+
return questionsFacade
|
|
428
|
+
.update(input, idempotencyKey)
|
|
429
|
+
.then(exposeGatewayData);
|
|
431
430
|
},
|
|
432
431
|
delete(input, idempotencyKey) {
|
|
433
|
-
return questionsFacade
|
|
432
|
+
return questionsFacade
|
|
433
|
+
.delete(input, idempotencyKey)
|
|
434
|
+
.then(exposeGatewayData);
|
|
434
435
|
},
|
|
435
436
|
answer(questionId, input) {
|
|
436
437
|
return questionsFacade
|
|
@@ -453,7 +454,7 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
453
454
|
rationale: args.rationale,
|
|
454
455
|
})
|
|
455
456
|
.then((response) => ({
|
|
456
|
-
...response.data,
|
|
457
|
+
...(response.data ?? {}),
|
|
457
458
|
questionId: args.questionId,
|
|
458
459
|
relevance: weight,
|
|
459
460
|
}));
|
|
@@ -488,7 +489,7 @@ export function createClientKnowledgeNamespaces(ctx) {
|
|
|
488
489
|
};
|
|
489
490
|
});
|
|
490
491
|
},
|
|
491
|
-
|
|
492
|
+
findMissing(args) {
|
|
492
493
|
return graphFacade
|
|
493
494
|
.gaps({
|
|
494
495
|
topicId: requireTopicId(args),
|