@lucern/sdk 1.0.10 → 1.0.12
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 +6 -0
- package/README.md +35 -0
- package/dist/.generated +2 -0
- package/dist/accessControl.d.ts +19 -26
- package/dist/accessControl.js +195 -1423
- package/dist/adminClient.d.ts +52 -59
- package/dist/adminClient.js +364 -1142
- package/dist/answersClient.d.ts +5 -14
- package/dist/answersClient.js +19 -737
- package/dist/audience/index.d.ts +18 -18
- package/dist/audience/index.js +87 -90
- package/dist/audiencesClient.d.ts +19 -27
- package/dist/audiencesClient.js +107 -868
- package/dist/auditClient.d.ts +8 -15
- package/dist/auditClient.js +18 -791
- package/dist/authContext.d.ts +11 -16
- package/dist/authContext.js +122 -154
- package/dist/authDeviceClient.d.ts +8 -17
- package/dist/authDeviceClient.js +113 -102
- package/dist/beliefs/index.d.ts +15 -67
- package/dist/beliefs/index.js +17 -10172
- package/dist/beliefs/lifecycle.d.ts +10 -11
- package/dist/beliefs/lifecycle.js +78 -80
- package/dist/beliefsClient.d.ts +26 -32
- package/dist/beliefsClient.js +250 -990
- package/dist/boundaryClientSurface.d.ts +11 -16
- package/dist/boundaryClientSurface.js +49 -68
- package/dist/client.d.ts +73 -112
- package/dist/client.js +232 -10146
- package/dist/clientAssemblyTypes.d.ts +3 -3
- package/dist/clientAssemblyTypes.js +1 -2
- package/dist/clientConfig.d.ts +45 -59
- package/dist/clientConfig.js +1 -2
- package/dist/clientEvidenceCompat.d.ts +7 -14
- package/dist/clientEvidenceCompat.js +50 -64
- package/dist/clientGraphNamespaces.d.ts +3 -5
- package/dist/clientGraphNamespaces.js +170 -245
- package/dist/clientHelpers.d.ts +20 -25
- package/dist/clientHelpers.js +104 -127
- package/dist/clientKnowledgeNamespaces.d.ts +6 -53
- package/dist/clientKnowledgeNamespaces.js +502 -506
- package/dist/clientLocalHelpers.d.ts +11 -56
- package/dist/clientLocalHelpers.js +503 -732
- package/dist/clientPlatformNamespaces.d.ts +14 -53
- package/dist/clientPlatformNamespaces.js +229 -314
- package/dist/clientRuntime.d.ts +5 -53
- package/dist/clientRuntime.js +26 -30
- package/dist/clientWorkflowNamespaces.d.ts +6 -15
- package/dist/clientWorkflowNamespaces.js +529 -596
- package/dist/contextClient.d.ts +9 -17
- package/dist/contextClient.js +92 -805
- package/dist/contextFacade.d.ts +11 -2
- package/dist/contextFacade.js +10 -81
- package/dist/contextPackCompiler.d.ts +10 -11
- package/dist/contextPackCompiler.js +494 -1040
- package/dist/contextPackPolicy.d.ts +14 -15
- package/dist/contextPackPolicy.js +227 -305
- package/dist/contextPackSchema.d.ts +3 -3
- package/dist/contextPackSchema.js +169 -176
- package/dist/contextTypes.d.ts +14 -15
- package/dist/contextTypes.js +1 -2
- package/dist/contracts/api-enums.contract.d.ts +29 -30
- package/dist/contracts/api-enums.contract.js +162 -88
- package/dist/contracts/auth-session.contract.d.ts +13 -14
- package/dist/contracts/auth-session.contract.js +55 -52
- package/dist/contracts/context-pack.contract.d.ts +54 -55
- package/dist/contracts/context-pack.contract.js +160 -88
- package/dist/contracts/contextPack.d.ts +2 -1
- package/dist/contracts/contextPack.js +1 -97
- package/dist/contracts/index.d.ts +11 -12
- package/dist/contracts/index.js +10 -854
- package/dist/contracts/lens-filter.contract.d.ts +9 -10
- package/dist/contracts/lens-filter.contract.js +82 -58
- package/dist/contracts/lens-workflow.contract.d.ts +21 -23
- package/dist/contracts/lens-workflow.contract.js +48 -117
- package/dist/contracts/lensFilter.d.ts +2 -1
- package/dist/contracts/lensFilter.js +1 -71
- package/dist/contracts/lensWorkflow.d.ts +2 -2
- package/dist/contracts/lensWorkflow.js +1 -123
- package/dist/contracts/mcpTools.d.ts +16 -18
- package/dist/contracts/mcpTools.js +89 -123
- package/dist/contracts/prompt.contract.d.ts +4 -5
- package/dist/contracts/prompt.contract.js +23 -10
- package/dist/contracts/prompt.d.ts +2 -1
- package/dist/contracts/prompt.js +1 -11
- package/dist/contracts/sdk-tools.contract.d.ts +2 -1
- package/dist/contracts/sdk-tools.contract.js +1 -2
- package/dist/contracts/sdkTools.d.ts +2 -1
- package/dist/contracts/sdkTools.js +1 -26
- package/dist/contracts/tool-contracts.d.ts +2 -1
- package/dist/contracts/tool-contracts.js +1 -2
- package/dist/contracts/workflow-runtime.contract.d.ts +45 -46
- package/dist/contracts/workflow-runtime.contract.js +241 -228
- package/dist/contracts/workflowRuntime.d.ts +2 -1
- package/dist/contracts/workflowRuntime.js +1 -244
- package/dist/contradictions/index.d.ts +8 -60
- package/dist/contradictions/index.js +11 -10166
- package/dist/control-plane.d.ts +17 -24
- package/dist/control-plane.js +124 -840
- package/dist/controlObjectOwnership.d.ts +19 -20
- package/dist/controlObjectOwnership.js +207 -201
- package/dist/coreClient.d.ts +23 -28
- package/dist/coreClient.js +567 -692
- package/dist/customTools.d.ts +17 -21
- package/dist/customTools.js +221 -221
- package/dist/decisions/index.d.ts +7 -58
- package/dist/decisions/index.js +14 -10168
- package/dist/decisionsClient.d.ts +25 -32
- package/dist/decisionsClient.js +113 -913
- package/dist/domainContext.d.ts +2 -1
- package/dist/domainContext.js +1 -2
- package/dist/edges/index.d.ts +21 -73
- package/dist/edges/index.js +12 -10167
- package/dist/embeddingsClient.d.ts +22 -30
- package/dist/embeddingsClient.js +73 -922
- package/dist/eventingClient.d.ts +23 -31
- package/dist/eventingClient.js +89 -918
- package/dist/events.d.ts +48 -49
- package/dist/events.js +257 -241
- package/dist/eventsCore.d.ts +20 -29
- package/dist/eventsCore.js +86 -830
- package/dist/evidence/index.d.ts +9 -60
- package/dist/evidence/index.js +13 -10167
- package/dist/evidenceClient.d.ts +13 -22
- package/dist/evidenceClient.js +34 -751
- package/dist/facade/context.d.ts +7 -8
- package/dist/facade/context.js +73 -72
- package/dist/functionSurface.d.ts +2 -156
- package/dist/functionSurface.js +1 -1460
- package/dist/functionSurfaceClient.d.ts +2 -9
- package/dist/functionSurfaceClient.js +1 -1460
- package/dist/gatewayFacades.d.ts +79 -296
- package/dist/gatewayFacades.factories.d.ts +209 -14
- package/dist/gatewayFacades.factories.js +561 -2227
- package/dist/gatewayFacades.js +284 -2627
- package/dist/generated/functionSurface.d.ts +149 -0
- package/dist/generated/functionSurface.js +749 -0
- package/dist/graphAnalysisClient.d.ts +41 -49
- package/dist/graphAnalysisClient.js +185 -974
- package/dist/graphClient.d.ts +53 -60
- package/dist/graphClient.js +219 -1090
- package/dist/graphIntel.d.ts +2 -4
- package/dist/graphIntel.js +1 -2
- package/dist/graphIntelligence.d.ts +4 -2
- package/dist/graphIntelligence.js +2 -46
- package/dist/graphRecommendationsClient.d.ts +15 -23
- package/dist/graphRecommendationsClient.js +70 -849
- package/dist/graphStateClassifierClient.d.ts +17 -25
- package/dist/graphStateClassifierClient.js +67 -908
- package/dist/harnessClient.d.ts +40 -47
- package/dist/harnessClient.js +198 -993
- package/dist/identityClient.d.ts +25 -33
- package/dist/identityClient.js +245 -1186
- package/dist/index.d.ts +73 -69
- package/dist/index.js +72 -13304
- package/dist/infisicalRuntime.d.ts +12 -14
- package/dist/infisicalRuntime.js +290 -297
- package/dist/jobsClient.d.ts +24 -32
- package/dist/jobsClient.js +101 -916
- package/dist/learningClient.d.ts +8 -16
- package/dist/learningClient.js +45 -809
- package/dist/lenses/index.d.ts +13 -65
- package/dist/lenses/index.js +11 -10166
- package/dist/mcpClient.d.ts +14 -23
- package/dist/mcpClient.js +115 -856
- package/dist/modelRuntimeClient.d.ts +18 -26
- package/dist/modelRuntimeClient.js +74 -894
- package/dist/nodes/index.d.ts +7 -58
- package/dist/nodes/index.js +14 -10168
- package/dist/ontologies/index.d.ts +21 -73
- package/dist/ontologies/index.js +14 -10169
- package/dist/ontologyClient.d.ts +23 -31
- package/dist/ontologyClient.js +138 -924
- package/dist/ontologyLinksClient.d.ts +16 -24
- package/dist/ontologyLinksClient.js +76 -886
- package/dist/opinion.d.ts +5 -6
- package/dist/opinion.js +21 -25
- package/dist/orgGraphSearchClient.d.ts +19 -27
- package/dist/orgGraphSearchClient.js +89 -857
- package/dist/packRuntime.d.ts +2 -2
- package/dist/packRuntime.js +1 -2
- package/dist/packsClient.d.ts +30 -37
- package/dist/packsClient.js +131 -906
- package/dist/policyClient.d.ts +21 -29
- package/dist/policyClient.js +267 -1026
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +9 -60
- package/dist/questions/index.js +15 -10169
- package/dist/realtime/index.d.ts +20 -16
- package/dist/realtime/index.js +30 -19
- package/dist/realtime/refs.d.ts +4 -6
- package/dist/realtime/refs.js +12 -7
- package/dist/realtime-refs.d.ts +1 -0
- package/dist/realtime-refs.js +1 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +1 -0
- package/dist/reportsClient.d.ts +10 -19
- package/dist/reportsClient.js +48 -836
- package/dist/schemaClient.d.ts +16 -23
- package/dist/schemaClient.js +62 -832
- package/dist/sdkSurface.d.ts +18 -25
- package/dist/sdkSurface.js +135 -106
- package/dist/secrets.d.ts +2 -1
- package/dist/secrets.js +1 -2
- package/dist/sourcesClient.d.ts +11 -18
- package/dist/sourcesClient.js +18 -741
- package/dist/telemetryClient.d.ts +22 -30
- package/dist/telemetryClient.js +107 -931
- package/dist/toolRegistryClient.d.ts +27 -35
- package/dist/toolRegistryClient.js +116 -954
- package/dist/topics/index.d.ts +13 -64
- package/dist/topics/index.js +15 -10169
- package/dist/topicsClient.d.ts +19 -27
- package/dist/topicsClient.js +106 -894
- package/dist/types.d.ts +84 -87
- package/dist/types.js +1 -2
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -5
- package/dist/workflowClient.d.ts +60 -65
- package/dist/workflowClient.js +343 -1219
- package/dist/worktrees/index.d.ts +16 -68
- package/dist/worktrees/index.js +14 -10169
- package/package.json +6 -6
- package/dist/accessControl.js.map +0 -1
- package/dist/adminClient.js.map +0 -1
- package/dist/answersClient.js.map +0 -1
- package/dist/audience/index.js.map +0 -1
- package/dist/audiencesClient.js.map +0 -1
- package/dist/auditClient.js.map +0 -1
- package/dist/authContext.js.map +0 -1
- package/dist/authDeviceClient.js.map +0 -1
- package/dist/beliefs/index.js.map +0 -1
- package/dist/beliefs/lifecycle.js.map +0 -1
- package/dist/beliefsClient.js.map +0 -1
- package/dist/boundaryClientSurface.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/clientAssemblyTypes.js.map +0 -1
- package/dist/clientConfig.js.map +0 -1
- package/dist/clientEvidenceCompat.js.map +0 -1
- package/dist/clientGraphNamespaces.js.map +0 -1
- package/dist/clientHelpers.js.map +0 -1
- package/dist/clientKnowledgeNamespaces.js.map +0 -1
- package/dist/clientLocalHelpers.js.map +0 -1
- package/dist/clientPlatformNamespaces.js.map +0 -1
- package/dist/clientRuntime.js.map +0 -1
- package/dist/clientWorkflowNamespaces.js.map +0 -1
- package/dist/contextClient.js.map +0 -1
- package/dist/contextFacade.js.map +0 -1
- package/dist/contextPackCompiler.js.map +0 -1
- package/dist/contextPackPolicy.js.map +0 -1
- package/dist/contextPackSchema.js.map +0 -1
- package/dist/contextTypes.js.map +0 -1
- package/dist/contracts/api-enums.contract.js.map +0 -1
- package/dist/contracts/auth-session.contract.js.map +0 -1
- package/dist/contracts/context-pack.contract.js.map +0 -1
- package/dist/contracts/contextPack.js.map +0 -1
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/lens-filter.contract.js.map +0 -1
- package/dist/contracts/lens-workflow.contract.js.map +0 -1
- package/dist/contracts/lensFilter.js.map +0 -1
- package/dist/contracts/lensWorkflow.js.map +0 -1
- package/dist/contracts/mcpTools.js.map +0 -1
- package/dist/contracts/prompt.contract.js.map +0 -1
- package/dist/contracts/prompt.js.map +0 -1
- package/dist/contracts/sdk-tools.contract.js.map +0 -1
- package/dist/contracts/sdkTools.js.map +0 -1
- package/dist/contracts/tool-contracts.js.map +0 -1
- package/dist/contracts/workflow-runtime.contract.js.map +0 -1
- package/dist/contracts/workflowRuntime.js.map +0 -1
- package/dist/contradictions/index.js.map +0 -1
- package/dist/control-plane.js.map +0 -1
- package/dist/controlObjectOwnership.js.map +0 -1
- package/dist/coreClient.js.map +0 -1
- package/dist/customTools.js.map +0 -1
- package/dist/decisions/index.js.map +0 -1
- package/dist/decisionsClient.js.map +0 -1
- package/dist/domainContext.js.map +0 -1
- package/dist/edges/index.js.map +0 -1
- package/dist/embeddingsClient.js.map +0 -1
- package/dist/eventingClient.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/eventsCore.js.map +0 -1
- package/dist/evidence/index.js.map +0 -1
- package/dist/evidenceClient.js.map +0 -1
- package/dist/facade/context.js.map +0 -1
- package/dist/functionSurface.js.map +0 -1
- package/dist/functionSurfaceClient.js.map +0 -1
- package/dist/gatewayFacades.factories.js.map +0 -1
- package/dist/gatewayFacades.js.map +0 -1
- package/dist/graphAnalysisClient.js.map +0 -1
- package/dist/graphClient.js.map +0 -1
- package/dist/graphIntel.js.map +0 -1
- package/dist/graphIntelligence.js.map +0 -1
- package/dist/graphRecommendationsClient.js.map +0 -1
- package/dist/graphStateClassifierClient.js.map +0 -1
- package/dist/harnessClient.js.map +0 -1
- package/dist/identityClient.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/infisicalRuntime.js.map +0 -1
- package/dist/jobsClient.js.map +0 -1
- package/dist/learningClient.js.map +0 -1
- package/dist/lenses/index.js.map +0 -1
- package/dist/mcpClient.js.map +0 -1
- package/dist/modelRuntimeClient.js.map +0 -1
- package/dist/nodes/index.js.map +0 -1
- package/dist/ontologies/index.js.map +0 -1
- package/dist/ontologyClient.js.map +0 -1
- package/dist/ontologyLinksClient.js.map +0 -1
- package/dist/opinion.js.map +0 -1
- package/dist/orgGraphSearchClient.js.map +0 -1
- package/dist/packRuntime.js.map +0 -1
- package/dist/packsClient.js.map +0 -1
- package/dist/policyClient.js.map +0 -1
- package/dist/questions/index.js.map +0 -1
- package/dist/realtime/index.js.map +0 -1
- package/dist/realtime/refs.js.map +0 -1
- package/dist/reportsClient.js.map +0 -1
- package/dist/schemaClient.js.map +0 -1
- package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +0 -22
- package/dist/sdkSurface.js.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/sourcesClient.js.map +0 -1
- package/dist/telemetryClient.js.map +0 -1
- package/dist/tool-contracts-BUiL9P6z.d.ts +0 -22
- package/dist/toolRegistryClient.js.map +0 -1
- package/dist/topics/index.js.map +0 -1
- package/dist/topicsClient.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/version.js.map +0 -1
- package/dist/workflowClient.js.map +0 -1
- package/dist/worktrees/index.js.map +0 -1
package/dist/graphClient.d.ts
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { GatewayClientConfig,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
import './authContext.js';
|
|
7
|
-
import './contracts/auth-session.contract.js';
|
|
8
|
-
import './contracts/workflow-runtime.contract.js';
|
|
9
|
-
import './contracts/lens-workflow.contract.js';
|
|
10
|
-
import './contracts/lens-filter.contract.js';
|
|
11
|
-
|
|
1
|
+
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { DeleteEdgeResponse, GraphAnalyticsMetric, GraphAnalyticsResponse, GraphNeighborhoodResponse, GraphPathResponse, JsonObject, ListResult, PlatformGraphEdge, PlatformGraphNode, TextAliasInput, TopicIdentifierInput } from "./types";
|
|
3
|
+
export { LucernApiError };
|
|
4
|
+
export type { GatewayScope, PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
+
export type { CreateEdgeResponse, CreateNodeResponse, DeleteEdgeResponse, GraphAnalyticsMetric, GraphAnalyticsResponse, GraphNeighborhoodResponse, GraphPathResponse, ListResult, QueryEdgesResponse, QueryNodesResponse, UpdateNodeResponse, } from "./types";
|
|
12
6
|
/** Configuration for the graph client. */
|
|
13
|
-
type GraphClientConfig = GatewayClientConfig;
|
|
7
|
+
export type GraphClientConfig = GatewayClientConfig;
|
|
14
8
|
/** Filter parameters for listing graph nodes. */
|
|
15
|
-
type ListNodesInput = {
|
|
9
|
+
export type ListNodesInput = {
|
|
16
10
|
nodeId?: string;
|
|
17
11
|
globalId?: string;
|
|
18
12
|
topicId?: string;
|
|
@@ -20,11 +14,11 @@ type ListNodesInput = {
|
|
|
20
14
|
limit?: number;
|
|
21
15
|
} & TopicIdentifierInput;
|
|
22
16
|
/** Paginated list response containing graph nodes. */
|
|
23
|
-
type ListNodesResponse = ListResult<PlatformGraphNode, "nodes">;
|
|
17
|
+
export type ListNodesResponse = ListResult<PlatformGraphNode, "nodes">;
|
|
24
18
|
/** @deprecated Use ListNodesInput. */
|
|
25
|
-
type QueryNodesInput = ListNodesInput;
|
|
19
|
+
export type QueryNodesInput = ListNodesInput;
|
|
26
20
|
/** Input for creating a new graph node. */
|
|
27
|
-
type CreateNodeInput = {
|
|
21
|
+
export type CreateNodeInput = {
|
|
28
22
|
text?: string;
|
|
29
23
|
/** @deprecated Use text. */
|
|
30
24
|
canonicalText?: string;
|
|
@@ -43,7 +37,7 @@ type CreateNodeInput = {
|
|
|
43
37
|
verificationStatus?: string;
|
|
44
38
|
} & TextAliasInput & TopicIdentifierInput;
|
|
45
39
|
/** Input for updating an existing graph node. */
|
|
46
|
-
type UpdateNodeInput = {
|
|
40
|
+
export type UpdateNodeInput = {
|
|
47
41
|
nodeId: string;
|
|
48
42
|
text?: string;
|
|
49
43
|
canonicalText?: string;
|
|
@@ -58,12 +52,12 @@ type UpdateNodeInput = {
|
|
|
58
52
|
verificationStatus?: string;
|
|
59
53
|
} & TextAliasInput;
|
|
60
54
|
/** Input for retrieving a single graph node by canonical identifier. */
|
|
61
|
-
type GetNodeInput = {
|
|
55
|
+
export type GetNodeInput = {
|
|
62
56
|
nodeId?: string;
|
|
63
57
|
globalId?: string;
|
|
64
58
|
};
|
|
65
59
|
/** Filter parameters for listing graph edges. */
|
|
66
|
-
type ListEdgesInput = {
|
|
60
|
+
export type ListEdgesInput = {
|
|
67
61
|
edgeId?: string;
|
|
68
62
|
topicId?: string;
|
|
69
63
|
fromNodeId?: string;
|
|
@@ -72,11 +66,11 @@ type ListEdgesInput = {
|
|
|
72
66
|
limit?: number;
|
|
73
67
|
} & TopicIdentifierInput;
|
|
74
68
|
/** Paginated list response containing graph edges. */
|
|
75
|
-
type ListEdgesResponse = ListResult<PlatformGraphEdge, "edges">;
|
|
69
|
+
export type ListEdgesResponse = ListResult<PlatformGraphEdge, "edges">;
|
|
76
70
|
/** @deprecated Use ListEdgesInput. */
|
|
77
|
-
type QueryEdgesInput = ListEdgesInput;
|
|
71
|
+
export type QueryEdgesInput = ListEdgesInput;
|
|
78
72
|
/** Input for creating a typed edge between two graph nodes. */
|
|
79
|
-
type CreateEdgeInput = {
|
|
73
|
+
export type CreateEdgeInput = {
|
|
80
74
|
fromNodeId: string;
|
|
81
75
|
toNodeId: string;
|
|
82
76
|
edgeType: string;
|
|
@@ -89,18 +83,18 @@ type CreateEdgeInput = {
|
|
|
89
83
|
derivationType?: string;
|
|
90
84
|
} & TopicIdentifierInput;
|
|
91
85
|
/** Filter for selecting edges to delete. */
|
|
92
|
-
type DeleteEdgeInput = {
|
|
86
|
+
export type DeleteEdgeInput = {
|
|
93
87
|
edgeId?: string;
|
|
94
88
|
fromNodeId?: string;
|
|
95
89
|
toNodeId?: string;
|
|
96
90
|
edgeType?: string;
|
|
97
91
|
};
|
|
98
92
|
/** Input for batch-creating multiple graph nodes. */
|
|
99
|
-
type BatchCreateNodesInput = {
|
|
93
|
+
export type BatchCreateNodesInput = {
|
|
100
94
|
nodes: Array<CreateNodeInput>;
|
|
101
95
|
};
|
|
102
96
|
/** Input for superseding an existing graph node with a new version. */
|
|
103
|
-
type SupersedeNodeInput = {
|
|
97
|
+
export type SupersedeNodeInput = {
|
|
104
98
|
oldNodeId?: string;
|
|
105
99
|
nodeId?: string;
|
|
106
100
|
newGlobalId?: string;
|
|
@@ -111,62 +105,62 @@ type SupersedeNodeInput = {
|
|
|
111
105
|
reason?: string;
|
|
112
106
|
};
|
|
113
107
|
/** Input for updating a node's verification state. */
|
|
114
|
-
type VerifyNodeInput = {
|
|
108
|
+
export type VerifyNodeInput = {
|
|
115
109
|
nodeId?: string;
|
|
116
110
|
id?: string;
|
|
117
111
|
verificationStatus: string;
|
|
118
112
|
confidence?: number;
|
|
119
113
|
};
|
|
120
114
|
/** Input for permanently deleting a node via admin-only API. */
|
|
121
|
-
type HardDeleteNodeInput = {
|
|
115
|
+
export type HardDeleteNodeInput = {
|
|
122
116
|
nodeId?: string;
|
|
123
117
|
id?: string;
|
|
124
118
|
reason: string;
|
|
125
119
|
allowBeliefHardDelete?: boolean;
|
|
126
120
|
};
|
|
127
121
|
/** Input for retrieving the local neighborhood around a graph node. */
|
|
128
|
-
type NeighborhoodInput = {
|
|
122
|
+
export type NeighborhoodInput = {
|
|
129
123
|
globalId?: string;
|
|
130
124
|
globalIds?: string;
|
|
131
125
|
maxDepth?: number;
|
|
132
126
|
};
|
|
133
127
|
/** Input for finding the shortest path between two graph nodes. */
|
|
134
|
-
type PathInput = {
|
|
128
|
+
export type PathInput = {
|
|
135
129
|
fromGlobalId: string;
|
|
136
130
|
toGlobalId: string;
|
|
137
131
|
maxDepth?: number;
|
|
138
132
|
};
|
|
139
133
|
/** Input for retrieving a specific graph analytics metric. */
|
|
140
|
-
type AnalyticsInput = {
|
|
134
|
+
export type AnalyticsInput = {
|
|
141
135
|
metric?: GraphAnalyticsMetric;
|
|
142
136
|
limit?: number;
|
|
143
137
|
};
|
|
144
138
|
/** Input for traversing the graph from a starting node. */
|
|
145
|
-
type TraverseInput = {
|
|
139
|
+
export type TraverseInput = {
|
|
146
140
|
startNode: string;
|
|
147
141
|
direction?: string;
|
|
148
142
|
maxDepth?: number;
|
|
149
143
|
topicId?: string;
|
|
150
144
|
} & TopicIdentifierInput;
|
|
151
145
|
/** Input for structural analysis of a topic graph. */
|
|
152
|
-
type AnalyzeInput = {
|
|
146
|
+
export type AnalyzeInput = {
|
|
153
147
|
topicId?: string;
|
|
154
148
|
metric?: GraphAnalyticsMetric;
|
|
155
149
|
limit?: number;
|
|
156
150
|
} & TopicIdentifierInput;
|
|
157
151
|
/** Input for detecting confirmation-bias patterns in a topic graph. */
|
|
158
|
-
type BiasInput = {
|
|
152
|
+
export type BiasInput = {
|
|
159
153
|
topicId?: string;
|
|
160
154
|
threshold?: number;
|
|
161
155
|
limit?: number;
|
|
162
156
|
} & TopicIdentifierInput;
|
|
163
157
|
/** Input for finding beliefs without sufficient testing questions. */
|
|
164
|
-
type GapsInput = {
|
|
158
|
+
export type GapsInput = {
|
|
165
159
|
topicId?: string;
|
|
166
160
|
minConfidence?: number;
|
|
167
161
|
} & TopicIdentifierInput;
|
|
168
162
|
/** Input for cross-resource search within a topic scope. */
|
|
169
|
-
type SearchInput = {
|
|
163
|
+
export type SearchInput = {
|
|
170
164
|
q?: string;
|
|
171
165
|
query?: string;
|
|
172
166
|
topicId?: string;
|
|
@@ -181,87 +175,86 @@ type SearchInput = {
|
|
|
181
175
|
* @param config - Gateway transport configuration.
|
|
182
176
|
* @returns An object with methods for CRUD on nodes/edges plus analytics, traversal, and search.
|
|
183
177
|
*/
|
|
184
|
-
declare function createGraphClient(config?: GraphClientConfig): {
|
|
178
|
+
export declare function createGraphClient(config?: GraphClientConfig): {
|
|
185
179
|
/**
|
|
186
180
|
* List graph nodes matching the provided filters.
|
|
187
181
|
*/
|
|
188
|
-
listNodes(query: ListNodesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
182
|
+
listNodes(query: ListNodesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
189
183
|
/**
|
|
190
184
|
* Retrieve a single graph node by nodeId or globalId.
|
|
191
185
|
*/
|
|
192
|
-
getNode(query: GetNodeInput): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
186
|
+
getNode(query: GetNodeInput): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
193
187
|
/**
|
|
194
188
|
* Create a graph node.
|
|
195
189
|
*/
|
|
196
|
-
createNode(input: CreateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
190
|
+
createNode(input: CreateNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
197
191
|
/**
|
|
198
192
|
* Update a graph node.
|
|
199
193
|
*/
|
|
200
|
-
updateNode(input: UpdateNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
194
|
+
updateNode(input: UpdateNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphNode>>;
|
|
201
195
|
/**
|
|
202
196
|
* Batch create graph nodes through the admin route surface.
|
|
203
197
|
*/
|
|
204
|
-
batchCreateNodes(input: BatchCreateNodesInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
198
|
+
batchCreateNodes(input: BatchCreateNodesInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
205
199
|
/**
|
|
206
200
|
* Supersede an existing graph node with a new canonical version.
|
|
207
201
|
*/
|
|
208
|
-
supersedeNode(input: SupersedeNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
202
|
+
supersedeNode(input: SupersedeNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
209
203
|
/**
|
|
210
204
|
* Update a node's verification status.
|
|
211
205
|
*/
|
|
212
|
-
verifyNode(input: VerifyNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
206
|
+
verifyNode(input: VerifyNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
213
207
|
/**
|
|
214
208
|
* Permanently delete a node via the admin-only hard-delete route.
|
|
215
209
|
*/
|
|
216
|
-
hardDeleteNode(input: HardDeleteNodeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
210
|
+
hardDeleteNode(input: HardDeleteNodeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
217
211
|
/**
|
|
218
212
|
* List graph edges matching the provided filters.
|
|
219
213
|
*/
|
|
220
|
-
listEdges(query: ListEdgesInput): Promise<PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
214
|
+
listEdges(query: ListEdgesInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
221
215
|
/**
|
|
222
216
|
* Create a graph edge.
|
|
223
217
|
*/
|
|
224
|
-
createEdge(input: CreateEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PlatformGraphEdge>>;
|
|
218
|
+
createEdge(input: CreateEdgeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PlatformGraphEdge>>;
|
|
225
219
|
/**
|
|
226
220
|
* Delete one or more edges matching the provided filter.
|
|
227
221
|
*/
|
|
228
|
-
deleteEdge(query: DeleteEdgeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<DeleteEdgeResponse>>;
|
|
222
|
+
deleteEdge(query: DeleteEdgeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<DeleteEdgeResponse>>;
|
|
229
223
|
/**
|
|
230
224
|
* Retrieve a graph neighborhood around a root node.
|
|
231
225
|
*/
|
|
232
|
-
neighborhood(query: NeighborhoodInput): Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
226
|
+
neighborhood(query: NeighborhoodInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
233
227
|
/**
|
|
234
228
|
* Traverse the graph from a starting node.
|
|
235
229
|
*/
|
|
236
|
-
traverse(query: TraverseInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
230
|
+
traverse(query: TraverseInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
237
231
|
/**
|
|
238
232
|
* Analyze graph structure for a topic.
|
|
239
233
|
*/
|
|
240
|
-
analyze(query?: AnalyzeInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
234
|
+
analyze(query?: AnalyzeInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
241
235
|
/**
|
|
242
236
|
* Detect confirmation-bias patterns for a topic graph.
|
|
243
237
|
*/
|
|
244
|
-
bias(query?: BiasInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
238
|
+
bias(query?: BiasInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
245
239
|
/**
|
|
246
240
|
* Find graph gaps for beliefs that still need testing.
|
|
247
241
|
*/
|
|
248
|
-
gaps(query: GapsInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
242
|
+
gaps(query: GapsInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
249
243
|
/**
|
|
250
244
|
* Search across graph resources within a topic.
|
|
251
245
|
*/
|
|
252
|
-
search(query: SearchInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
246
|
+
search(query: SearchInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
253
247
|
/**
|
|
254
248
|
* Retrieve the shortest known path between two graph nodes.
|
|
255
249
|
*/
|
|
256
|
-
getPath(query: PathInput): Promise<PlatformGatewaySuccess<GraphPathResponse>>;
|
|
250
|
+
getPath(query: PathInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphPathResponse>>;
|
|
257
251
|
/**
|
|
258
252
|
* Retrieve graph analytics for the requested metric.
|
|
259
253
|
*/
|
|
260
|
-
getAnalytics(query?: AnalyticsInput): Promise<PlatformGatewaySuccess<GraphAnalyticsResponse>>;
|
|
254
|
+
getAnalytics(query?: AnalyticsInput): Promise<import("./coreClient").PlatformGatewaySuccess<GraphAnalyticsResponse>>;
|
|
261
255
|
} & {
|
|
262
|
-
queryNodes: (query: ListNodesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
263
|
-
queryEdges: (query: ListEdgesInput) => Promise<PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
264
|
-
getNeighborhood: (query: NeighborhoodInput) => Promise<PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
256
|
+
queryNodes: (query: ListNodesInput) => Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphNode, "nodes">>>;
|
|
257
|
+
queryEdges: (query: ListEdgesInput) => Promise<import("./coreClient").PlatformGatewaySuccess<ListResult<PlatformGraphEdge, "edges">>>;
|
|
258
|
+
getNeighborhood: (query: NeighborhoodInput) => Promise<import("./coreClient").PlatformGatewaySuccess<GraphNeighborhoodResponse>>;
|
|
265
259
|
};
|
|
266
|
-
|
|
267
|
-
export { type AnalyticsInput, type AnalyzeInput, type BatchCreateNodesInput, type BiasInput, type CreateEdgeInput, type CreateNodeInput, type DeleteEdgeInput, DeleteEdgeResponse, type GapsInput, type GetNodeInput, GraphAnalyticsMetric, GraphAnalyticsResponse, type GraphClientConfig, GraphNeighborhoodResponse, GraphPathResponse, type HardDeleteNodeInput, type ListEdgesInput, type ListEdgesResponse, type ListNodesInput, type ListNodesResponse, ListResult, type NeighborhoodInput, type PathInput, PlatformGatewaySuccess, type QueryEdgesInput, type QueryNodesInput, type SearchInput, type SupersedeNodeInput, type TraverseInput, type UpdateNodeInput, type VerifyNodeInput, createGraphClient };
|
|
260
|
+
//# sourceMappingURL=graphClient.d.ts.map
|