@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,14 +1,15 @@
|
|
|
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
|
import { createGatewayRequestClient, randomIdempotencyKey, toQueryString, } from "./coreClient.js";
|
|
2
3
|
import { createGraphClient } from "./graphClient.js";
|
|
3
4
|
import { createIdentityClient } from "./identityClient.js";
|
|
4
|
-
import { createOntologyClient } from "./ontologyClient.js";
|
|
5
|
+
import { createOntologyClient, } from "./ontologyClient.js";
|
|
5
6
|
function serializeTypes(types) {
|
|
6
7
|
return Array.isArray(types) && types.length > 0 ? types.join(",") : undefined;
|
|
7
8
|
}
|
|
8
9
|
export function createBeliefsFacade(config = {}) {
|
|
9
10
|
const gateway = createGatewayRequestClient(config);
|
|
10
11
|
return {
|
|
11
|
-
|
|
12
|
+
create(input, idempotencyKey = randomIdempotencyKey()) {
|
|
12
13
|
return gateway.request({
|
|
13
14
|
path: "/api/platform/v1/beliefs",
|
|
14
15
|
method: "POST",
|
|
@@ -16,12 +17,12 @@ export function createBeliefsFacade(config = {}) {
|
|
|
16
17
|
idempotencyKey,
|
|
17
18
|
});
|
|
18
19
|
},
|
|
19
|
-
|
|
20
|
+
get(id) {
|
|
20
21
|
return gateway.request({
|
|
21
22
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}`,
|
|
22
23
|
});
|
|
23
24
|
},
|
|
24
|
-
|
|
25
|
+
list(query) {
|
|
25
26
|
return gateway.request({
|
|
26
27
|
path: `/api/platform/v1/beliefs${toQueryString({
|
|
27
28
|
topicId: query.topicId,
|
|
@@ -33,7 +34,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
33
34
|
})}`,
|
|
34
35
|
});
|
|
35
36
|
},
|
|
36
|
-
|
|
37
|
+
refine(id, input, idempotencyKey = randomIdempotencyKey()) {
|
|
37
38
|
return gateway.request({
|
|
38
39
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}`,
|
|
39
40
|
method: "PATCH",
|
|
@@ -41,7 +42,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
41
42
|
idempotencyKey,
|
|
42
43
|
});
|
|
43
44
|
},
|
|
44
|
-
|
|
45
|
+
fork(id, input, idempotencyKey = randomIdempotencyKey()) {
|
|
45
46
|
return gateway.request({
|
|
46
47
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}/fork`,
|
|
47
48
|
method: "POST",
|
|
@@ -49,7 +50,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
49
50
|
idempotencyKey,
|
|
50
51
|
});
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
+
updateRationale(input, idempotencyKey = randomIdempotencyKey()) {
|
|
53
54
|
return gateway.request({
|
|
54
55
|
path: "/api/platform/v1/beliefs/update-rationale",
|
|
55
56
|
method: "POST",
|
|
@@ -57,7 +58,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
57
58
|
idempotencyKey,
|
|
58
59
|
});
|
|
59
60
|
},
|
|
60
|
-
|
|
61
|
+
linkBeliefs(input, idempotencyKey = randomIdempotencyKey()) {
|
|
61
62
|
return gateway.request({
|
|
62
63
|
path: "/api/platform/v1/beliefs/link",
|
|
63
64
|
method: "POST",
|
|
@@ -65,7 +66,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
65
66
|
idempotencyKey,
|
|
66
67
|
});
|
|
67
68
|
},
|
|
68
|
-
|
|
69
|
+
unlinkEvidence(input, idempotencyKey = randomIdempotencyKey()) {
|
|
69
70
|
return gateway.request({
|
|
70
71
|
path: "/api/platform/v1/beliefs/unlink-evidence",
|
|
71
72
|
method: "POST",
|
|
@@ -73,7 +74,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
73
74
|
idempotencyKey,
|
|
74
75
|
});
|
|
75
76
|
},
|
|
76
|
-
|
|
77
|
+
updateCriticality(input, idempotencyKey = randomIdempotencyKey()) {
|
|
77
78
|
return gateway.request({
|
|
78
79
|
path: "/api/platform/v1/beliefs/update-criticality",
|
|
79
80
|
method: "POST",
|
|
@@ -81,7 +82,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
81
82
|
idempotencyKey,
|
|
82
83
|
});
|
|
83
84
|
},
|
|
84
|
-
|
|
85
|
+
batchUpdateCriticality(input, idempotencyKey = randomIdempotencyKey()) {
|
|
85
86
|
return gateway.request({
|
|
86
87
|
path: "/api/platform/v1/beliefs/batch-update-criticality",
|
|
87
88
|
method: "POST",
|
|
@@ -89,7 +90,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
89
90
|
idempotencyKey,
|
|
90
91
|
});
|
|
91
92
|
},
|
|
92
|
-
|
|
93
|
+
reassignTopic(input, idempotencyKey = randomIdempotencyKey()) {
|
|
93
94
|
return gateway.request({
|
|
94
95
|
path: "/api/platform/v1/beliefs/reassign-topic",
|
|
95
96
|
method: "POST",
|
|
@@ -97,7 +98,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
97
98
|
idempotencyKey,
|
|
98
99
|
});
|
|
99
100
|
},
|
|
100
|
-
|
|
101
|
+
archive(id, input = {}, idempotencyKey = randomIdempotencyKey()) {
|
|
101
102
|
return gateway.request({
|
|
102
103
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}`,
|
|
103
104
|
method: "DELETE",
|
|
@@ -105,22 +106,22 @@ export function createBeliefsFacade(config = {}) {
|
|
|
105
106
|
idempotencyKey,
|
|
106
107
|
});
|
|
107
108
|
},
|
|
108
|
-
|
|
109
|
+
lineage(id) {
|
|
109
110
|
return gateway.request({
|
|
110
111
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}/lineage`,
|
|
111
112
|
});
|
|
112
113
|
},
|
|
113
|
-
|
|
114
|
+
confidenceHistory(id) {
|
|
114
115
|
return gateway.request({
|
|
115
116
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}/confidence-history`,
|
|
116
117
|
});
|
|
117
118
|
},
|
|
118
|
-
|
|
119
|
+
opinionHistory(id) {
|
|
119
120
|
return gateway.request({
|
|
120
121
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}/confidence-history`,
|
|
121
122
|
});
|
|
122
123
|
},
|
|
123
|
-
|
|
124
|
+
createContract(id, input, idempotencyKey = randomIdempotencyKey()) {
|
|
124
125
|
return gateway.request({
|
|
125
126
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}/contracts`,
|
|
126
127
|
method: "POST",
|
|
@@ -128,7 +129,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
128
129
|
idempotencyKey,
|
|
129
130
|
});
|
|
130
131
|
},
|
|
131
|
-
|
|
132
|
+
bisect(id, input, idempotencyKey = randomIdempotencyKey()) {
|
|
132
133
|
return gateway.request({
|
|
133
134
|
path: `/api/platform/v1/beliefs/${encodeURIComponent(id)}/bisect`,
|
|
134
135
|
method: "POST",
|
|
@@ -141,7 +142,7 @@ export function createBeliefsFacade(config = {}) {
|
|
|
141
142
|
export function createContradictionsFacade(config = {}) {
|
|
142
143
|
const gateway = createGatewayRequestClient(config);
|
|
143
144
|
return {
|
|
144
|
-
|
|
145
|
+
flag(input, idempotencyKey = randomIdempotencyKey()) {
|
|
145
146
|
return gateway.request({
|
|
146
147
|
path: "/api/platform/v1/contradictions",
|
|
147
148
|
method: "POST",
|
|
@@ -149,7 +150,7 @@ export function createContradictionsFacade(config = {}) {
|
|
|
149
150
|
idempotencyKey,
|
|
150
151
|
});
|
|
151
152
|
},
|
|
152
|
-
|
|
153
|
+
list(query) {
|
|
153
154
|
return gateway.request({
|
|
154
155
|
path: `/api/platform/v1/contradictions${toQueryString({
|
|
155
156
|
topicId: query.topicId,
|
|
@@ -159,7 +160,7 @@ export function createContradictionsFacade(config = {}) {
|
|
|
159
160
|
})}`,
|
|
160
161
|
});
|
|
161
162
|
},
|
|
162
|
-
|
|
163
|
+
get(id) {
|
|
163
164
|
return gateway.request({
|
|
164
165
|
path: `/api/platform/v1/contradictions/${encodeURIComponent(id)}`,
|
|
165
166
|
});
|
|
@@ -169,7 +170,7 @@ export function createContradictionsFacade(config = {}) {
|
|
|
169
170
|
export function createEdgesFacade(config = {}) {
|
|
170
171
|
const gateway = createGatewayRequestClient(config);
|
|
171
172
|
return {
|
|
172
|
-
|
|
173
|
+
create(input, idempotencyKey = randomIdempotencyKey()) {
|
|
173
174
|
return gateway.request({
|
|
174
175
|
path: "/api/platform/v1/edges",
|
|
175
176
|
method: "POST",
|
|
@@ -177,7 +178,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
177
178
|
idempotencyKey,
|
|
178
179
|
});
|
|
179
180
|
},
|
|
180
|
-
|
|
181
|
+
list(query) {
|
|
181
182
|
return gateway.request({
|
|
182
183
|
path: `/api/platform/v1/edges${toQueryString({
|
|
183
184
|
sourceId: query.sourceId,
|
|
@@ -187,7 +188,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
187
188
|
})}`,
|
|
188
189
|
});
|
|
189
190
|
},
|
|
190
|
-
|
|
191
|
+
traverse(input, idempotencyKey = randomIdempotencyKey()) {
|
|
191
192
|
return gateway.request({
|
|
192
193
|
path: "/api/platform/v1/edges/traverse",
|
|
193
194
|
method: "POST",
|
|
@@ -195,7 +196,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
195
196
|
idempotencyKey,
|
|
196
197
|
});
|
|
197
198
|
},
|
|
198
|
-
|
|
199
|
+
update(input, idempotencyKey = randomIdempotencyKey()) {
|
|
199
200
|
return gateway.request({
|
|
200
201
|
path: "/api/platform/v1/edges/update",
|
|
201
202
|
method: "POST",
|
|
@@ -203,7 +204,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
203
204
|
idempotencyKey,
|
|
204
205
|
});
|
|
205
206
|
},
|
|
206
|
-
|
|
207
|
+
remove(input, idempotencyKey = randomIdempotencyKey()) {
|
|
207
208
|
return gateway.request({
|
|
208
209
|
path: "/api/platform/v1/edges/remove",
|
|
209
210
|
method: "POST",
|
|
@@ -211,7 +212,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
211
212
|
idempotencyKey,
|
|
212
213
|
});
|
|
213
214
|
},
|
|
214
|
-
|
|
215
|
+
removeBetween(input, idempotencyKey = randomIdempotencyKey()) {
|
|
215
216
|
return gateway.request({
|
|
216
217
|
path: "/api/platform/v1/edges/remove-between",
|
|
217
218
|
method: "POST",
|
|
@@ -219,7 +220,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
219
220
|
idempotencyKey,
|
|
220
221
|
});
|
|
221
222
|
},
|
|
222
|
-
|
|
223
|
+
batchCreate(input, idempotencyKey = randomIdempotencyKey()) {
|
|
223
224
|
return gateway.request({
|
|
224
225
|
path: "/api/platform/v1/edges/batch",
|
|
225
226
|
method: "POST",
|
|
@@ -227,7 +228,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
227
228
|
idempotencyKey,
|
|
228
229
|
});
|
|
229
230
|
},
|
|
230
|
-
|
|
231
|
+
delete(input, idempotencyKey = randomIdempotencyKey()) {
|
|
231
232
|
return gateway.request({
|
|
232
233
|
path: "/api/platform/v1/edges/delete",
|
|
233
234
|
method: "POST",
|
|
@@ -240,7 +241,7 @@ export function createEdgesFacade(config = {}) {
|
|
|
240
241
|
export function createEvidenceFacade(config = {}) {
|
|
241
242
|
const gateway = createGatewayRequestClient(config);
|
|
242
243
|
return {
|
|
243
|
-
|
|
244
|
+
create(input, idempotencyKey = randomIdempotencyKey()) {
|
|
244
245
|
return gateway.request({
|
|
245
246
|
path: "/api/platform/v1/evidence",
|
|
246
247
|
method: "POST",
|
|
@@ -248,12 +249,12 @@ export function createEvidenceFacade(config = {}) {
|
|
|
248
249
|
idempotencyKey,
|
|
249
250
|
});
|
|
250
251
|
},
|
|
251
|
-
|
|
252
|
+
get(id) {
|
|
252
253
|
return gateway.request({
|
|
253
254
|
path: `/api/platform/v1/evidence/${encodeURIComponent(id)}`,
|
|
254
255
|
});
|
|
255
256
|
},
|
|
256
|
-
|
|
257
|
+
list(query) {
|
|
257
258
|
return gateway.request({
|
|
258
259
|
path: `/api/platform/v1/evidence${toQueryString({
|
|
259
260
|
topicId: query.topicId,
|
|
@@ -263,7 +264,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
263
264
|
})}`,
|
|
264
265
|
});
|
|
265
266
|
},
|
|
266
|
-
|
|
267
|
+
link(input, idempotencyKey = randomIdempotencyKey()) {
|
|
267
268
|
return gateway.request({
|
|
268
269
|
path: `/api/platform/v1/evidence/${encodeURIComponent(input.evidenceId)}/link`,
|
|
269
270
|
method: "POST",
|
|
@@ -278,7 +279,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
278
279
|
idempotencyKey,
|
|
279
280
|
});
|
|
280
281
|
},
|
|
281
|
-
|
|
282
|
+
search(query, idempotencyKey = randomIdempotencyKey()) {
|
|
282
283
|
return gateway.request({
|
|
283
284
|
path: "/api/platform/v1/evidence/search",
|
|
284
285
|
method: "POST",
|
|
@@ -286,7 +287,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
286
287
|
idempotencyKey,
|
|
287
288
|
});
|
|
288
289
|
},
|
|
289
|
-
|
|
290
|
+
updateStatus(input, idempotencyKey = randomIdempotencyKey()) {
|
|
290
291
|
return gateway.request({
|
|
291
292
|
path: "/api/platform/v1/evidence/update-status",
|
|
292
293
|
method: "POST",
|
|
@@ -294,7 +295,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
294
295
|
idempotencyKey,
|
|
295
296
|
});
|
|
296
297
|
},
|
|
297
|
-
|
|
298
|
+
update(input, idempotencyKey = randomIdempotencyKey()) {
|
|
298
299
|
return gateway.request({
|
|
299
300
|
path: "/api/platform/v1/evidence/update",
|
|
300
301
|
method: "POST",
|
|
@@ -302,7 +303,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
302
303
|
idempotencyKey,
|
|
303
304
|
});
|
|
304
305
|
},
|
|
305
|
-
|
|
306
|
+
flagIncorrect(input, idempotencyKey = randomIdempotencyKey()) {
|
|
306
307
|
return gateway.request({
|
|
307
308
|
path: "/api/platform/v1/evidence/flag-incorrect",
|
|
308
309
|
method: "POST",
|
|
@@ -310,7 +311,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
310
311
|
idempotencyKey,
|
|
311
312
|
});
|
|
312
313
|
},
|
|
313
|
-
|
|
314
|
+
remove(input, idempotencyKey = randomIdempotencyKey()) {
|
|
314
315
|
return gateway.request({
|
|
315
316
|
path: "/api/platform/v1/evidence/remove",
|
|
316
317
|
method: "POST",
|
|
@@ -318,7 +319,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
318
319
|
idempotencyKey,
|
|
319
320
|
});
|
|
320
321
|
},
|
|
321
|
-
|
|
322
|
+
updateVerificationStatus(input, idempotencyKey = randomIdempotencyKey()) {
|
|
322
323
|
return gateway.request({
|
|
323
324
|
path: "/api/platform/v1/evidence/update-verification-status",
|
|
324
325
|
method: "POST",
|
|
@@ -331,7 +332,7 @@ export function createEvidenceFacade(config = {}) {
|
|
|
331
332
|
export function createEventsFacade(config = {}) {
|
|
332
333
|
const gateway = createGatewayRequestClient(config);
|
|
333
334
|
return {
|
|
334
|
-
|
|
335
|
+
list(query = {}) {
|
|
335
336
|
return gateway.request({
|
|
336
337
|
path: `/api/platform/v1/events${toQueryString({
|
|
337
338
|
topicId: query.topicId,
|
|
@@ -343,7 +344,7 @@ export function createEventsFacade(config = {}) {
|
|
|
343
344
|
})}`,
|
|
344
345
|
});
|
|
345
346
|
},
|
|
346
|
-
|
|
347
|
+
replay(input, idempotencyKey = randomIdempotencyKey()) {
|
|
347
348
|
return gateway.request({
|
|
348
349
|
path: "/api/platform/v1/events/replay",
|
|
349
350
|
method: "POST",
|
|
@@ -357,7 +358,7 @@ export function createGraphFacade(config = {}) {
|
|
|
357
358
|
const graphClient = createGraphClient(config);
|
|
358
359
|
const gateway = createGatewayRequestClient(config);
|
|
359
360
|
const graphFacade = {
|
|
360
|
-
|
|
361
|
+
neighborhood(input) {
|
|
361
362
|
return graphClient.neighborhood({
|
|
362
363
|
globalId: input.globalId,
|
|
363
364
|
globalIds: Array.isArray(input.globalIds)
|
|
@@ -366,7 +367,7 @@ export function createGraphFacade(config = {}) {
|
|
|
366
367
|
maxDepth: input.maxDepth,
|
|
367
368
|
});
|
|
368
369
|
},
|
|
369
|
-
|
|
370
|
+
falsify(input, idempotencyKey = randomIdempotencyKey()) {
|
|
370
371
|
return gateway.request({
|
|
371
372
|
path: "/api/platform/v1/graph/falsify",
|
|
372
373
|
method: "POST",
|
|
@@ -387,7 +388,7 @@ export function createIdentityFacade(config = {}) {
|
|
|
387
388
|
return {
|
|
388
389
|
async whoami() {
|
|
389
390
|
const response = await identityClient.whoami();
|
|
390
|
-
return
|
|
391
|
+
return { ...response, ...response.data };
|
|
391
392
|
},
|
|
392
393
|
};
|
|
393
394
|
}
|
|
@@ -395,12 +396,12 @@ export function createOntologiesFacade(config = {}) {
|
|
|
395
396
|
const ontologyClient = createOntologyClient(config);
|
|
396
397
|
const gateway = createGatewayRequestClient(config);
|
|
397
398
|
const ontologyFacade = {
|
|
398
|
-
|
|
399
|
+
get(id) {
|
|
399
400
|
return gateway.request({
|
|
400
401
|
path: `/api/platform/v1/ontologies/${encodeURIComponent(id)}`,
|
|
401
402
|
});
|
|
402
403
|
},
|
|
403
|
-
|
|
404
|
+
bind(input, idempotencyKey) {
|
|
404
405
|
return gateway.request({
|
|
405
406
|
path: `/api/platform/v1/ontologies/${encodeURIComponent(input.ontologyId)}/bind`,
|
|
406
407
|
method: "POST",
|
|
@@ -410,7 +411,7 @@ export function createOntologiesFacade(config = {}) {
|
|
|
410
411
|
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
411
412
|
});
|
|
412
413
|
},
|
|
413
|
-
|
|
414
|
+
match(input, idempotencyKey) {
|
|
414
415
|
return gateway.request({
|
|
415
416
|
path: "/api/platform/v1/ontologies/match",
|
|
416
417
|
method: "POST",
|
|
@@ -426,7 +427,7 @@ export function createOntologiesFacade(config = {}) {
|
|
|
426
427
|
export function createQuestionsFacade(config = {}) {
|
|
427
428
|
const gateway = createGatewayRequestClient(config);
|
|
428
429
|
return {
|
|
429
|
-
|
|
430
|
+
create(input, idempotencyKey = randomIdempotencyKey()) {
|
|
430
431
|
return gateway.request({
|
|
431
432
|
path: "/api/platform/v1/questions",
|
|
432
433
|
method: "POST",
|
|
@@ -434,12 +435,12 @@ export function createQuestionsFacade(config = {}) {
|
|
|
434
435
|
idempotencyKey,
|
|
435
436
|
});
|
|
436
437
|
},
|
|
437
|
-
|
|
438
|
+
get(id) {
|
|
438
439
|
return gateway.request({
|
|
439
440
|
path: `/api/platform/v1/questions/${encodeURIComponent(id)}`,
|
|
440
441
|
});
|
|
441
442
|
},
|
|
442
|
-
|
|
443
|
+
list(query) {
|
|
443
444
|
return gateway.request({
|
|
444
445
|
path: `/api/platform/v1/questions${toQueryString({
|
|
445
446
|
topicId: query.topicId,
|
|
@@ -451,7 +452,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
451
452
|
})}`,
|
|
452
453
|
});
|
|
453
454
|
},
|
|
454
|
-
|
|
455
|
+
answer(id, input, idempotencyKey = randomIdempotencyKey()) {
|
|
455
456
|
return gateway.request({
|
|
456
457
|
path: `/api/platform/v1/questions/${encodeURIComponent(id)}/answer`,
|
|
457
458
|
method: "POST",
|
|
@@ -459,7 +460,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
459
460
|
idempotencyKey,
|
|
460
461
|
});
|
|
461
462
|
},
|
|
462
|
-
|
|
463
|
+
refine(id, input, idempotencyKey = randomIdempotencyKey()) {
|
|
463
464
|
return gateway.request({
|
|
464
465
|
path: `/api/platform/v1/questions/${encodeURIComponent(id)}/refine`,
|
|
465
466
|
method: "POST",
|
|
@@ -467,7 +468,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
467
468
|
idempotencyKey,
|
|
468
469
|
});
|
|
469
470
|
},
|
|
470
|
-
|
|
471
|
+
archive(id, input = {}, idempotencyKey = randomIdempotencyKey()) {
|
|
471
472
|
return gateway.request({
|
|
472
473
|
path: `/api/platform/v1/questions/${encodeURIComponent(id)}`,
|
|
473
474
|
method: "DELETE",
|
|
@@ -475,7 +476,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
475
476
|
idempotencyKey,
|
|
476
477
|
});
|
|
477
478
|
},
|
|
478
|
-
|
|
479
|
+
updateStatus(id, input, idempotencyKey = randomIdempotencyKey()) {
|
|
479
480
|
return gateway.request({
|
|
480
481
|
path: `/api/platform/v1/questions/${encodeURIComponent(id)}/status`,
|
|
481
482
|
method: "PATCH",
|
|
@@ -483,7 +484,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
483
484
|
idempotencyKey,
|
|
484
485
|
});
|
|
485
486
|
},
|
|
486
|
-
|
|
487
|
+
batchCreate(input, idempotencyKey = randomIdempotencyKey()) {
|
|
487
488
|
return gateway.request({
|
|
488
489
|
path: "/api/platform/v1/questions/batch",
|
|
489
490
|
method: "POST",
|
|
@@ -491,7 +492,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
491
492
|
idempotencyKey,
|
|
492
493
|
});
|
|
493
494
|
},
|
|
494
|
-
|
|
495
|
+
add(input, idempotencyKey = randomIdempotencyKey()) {
|
|
495
496
|
return gateway.request({
|
|
496
497
|
path: "/api/platform/v1/questions/add",
|
|
497
498
|
method: "POST",
|
|
@@ -499,7 +500,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
499
500
|
idempotencyKey,
|
|
500
501
|
});
|
|
501
502
|
},
|
|
502
|
-
|
|
503
|
+
updatePriority(input, idempotencyKey = randomIdempotencyKey()) {
|
|
503
504
|
return gateway.request({
|
|
504
505
|
path: "/api/platform/v1/questions/update-priority",
|
|
505
506
|
method: "POST",
|
|
@@ -507,7 +508,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
507
508
|
idempotencyKey,
|
|
508
509
|
});
|
|
509
510
|
},
|
|
510
|
-
|
|
511
|
+
advanceToConviction(input, idempotencyKey = randomIdempotencyKey()) {
|
|
511
512
|
return gateway.request({
|
|
512
513
|
path: "/api/platform/v1/questions/advance-to-conviction",
|
|
513
514
|
method: "POST",
|
|
@@ -515,7 +516,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
515
516
|
idempotencyKey,
|
|
516
517
|
});
|
|
517
518
|
},
|
|
518
|
-
|
|
519
|
+
updateConviction(input, idempotencyKey = randomIdempotencyKey()) {
|
|
519
520
|
return gateway.request({
|
|
520
521
|
path: "/api/platform/v1/questions/update-conviction",
|
|
521
522
|
method: "POST",
|
|
@@ -523,7 +524,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
523
524
|
idempotencyKey,
|
|
524
525
|
});
|
|
525
526
|
},
|
|
526
|
-
|
|
527
|
+
finalizeConviction(input, idempotencyKey = randomIdempotencyKey()) {
|
|
527
528
|
return gateway.request({
|
|
528
529
|
path: "/api/platform/v1/questions/finalize-conviction",
|
|
529
530
|
method: "POST",
|
|
@@ -531,7 +532,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
531
532
|
idempotencyKey,
|
|
532
533
|
});
|
|
533
534
|
},
|
|
534
|
-
|
|
535
|
+
update(input, idempotencyKey = randomIdempotencyKey()) {
|
|
535
536
|
return gateway.request({
|
|
536
537
|
path: "/api/platform/v1/questions/update",
|
|
537
538
|
method: "POST",
|
|
@@ -539,7 +540,7 @@ export function createQuestionsFacade(config = {}) {
|
|
|
539
540
|
idempotencyKey,
|
|
540
541
|
});
|
|
541
542
|
},
|
|
542
|
-
|
|
543
|
+
delete(input, idempotencyKey = randomIdempotencyKey()) {
|
|
543
544
|
return gateway.request({
|
|
544
545
|
path: "/api/platform/v1/questions/delete",
|
|
545
546
|
method: "POST",
|