@lucern/sdk 0.2.0-alpha.5 → 0.2.0-alpha.7
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/.turbo/turbo-build.log +7 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +13 -0
- package/examples/README.md +69 -0
- package/examples/contradiction.ts +94 -0
- package/examples/investigation-context.ts +118 -0
- package/examples/questions-and-tasks.ts +55 -0
- package/examples/quickstart.ts +97 -0
- package/examples/shared.ts +318 -0
- package/examples/strict-public-types.ts +143 -0
- package/examples/worktree-lifecycle.ts +79 -0
- package/package.json +16 -59
- package/src/README.md +6 -0
- package/src/adminClient.ts +789 -0
- package/{dist/lib/platform/sdk/answersClient.d.ts → src/answersClient.ts} +17 -4
- package/src/audiencesClient.ts +209 -0
- package/src/auditClient.ts +50 -0
- package/src/beliefsClient.ts +319 -0
- package/src/client.ts +2647 -0
- package/src/contextClient.ts +130 -0
- package/src/contextFacade.ts +15 -0
- package/src/contextPackCompiler.ts +828 -0
- package/src/contextPackSchema.ts +251 -0
- package/src/contextTypes.ts +153 -0
- package/src/contracts/api-enums.contract.ts +202 -0
- package/src/contracts/auth-session.contract.ts +109 -0
- package/src/contracts/context-pack.contract.ts +700 -0
- package/src/contracts/contextPack.ts +1 -0
- package/src/contracts/index.ts +10 -0
- package/src/contracts/lens-filter.contract.ts +183 -0
- package/src/contracts/lens-workflow.contract.ts +162 -0
- package/src/contracts/lensFilter.ts +1 -0
- package/src/contracts/lensWorkflow.ts +1 -0
- package/src/contracts/mcp-tools.contract.ts +3636 -0
- package/src/contracts/mcpTools.ts +1 -0
- package/src/contracts/prompt.contract.ts +50 -0
- package/src/contracts/prompt.ts +1 -0
- package/src/contracts/sdk-tools.contract.ts +1457 -0
- package/src/contracts/sdkTools.ts +1 -0
- package/src/contracts/workflow-runtime.contract.ts +440 -0
- package/src/contracts/workflowRuntime.ts +1 -0
- package/src/controlObjectOwnership.ts +286 -0
- package/src/coreClient.ts +570 -0
- package/src/customTools.ts +398 -0
- package/src/decisionsClient.ts +286 -0
- package/src/domainContext.ts +15 -0
- package/src/events.ts +531 -0
- package/src/eventsCore.ts +168 -0
- package/src/facade/beliefs.ts +83 -0
- package/src/facade/context.ts +110 -0
- package/src/facade/contradictions.ts +29 -0
- package/src/facade/edges.ts +30 -0
- package/src/facade/events.ts +23 -0
- package/src/facade/evidence.ts +41 -0
- package/src/facade/graph.ts +38 -0
- package/src/facade/identity.ts +16 -0
- package/src/facade/ontologies.ts +34 -0
- package/src/facade/questions.ts +59 -0
- package/src/facade/search.ts +16 -0
- package/src/facade/tasks.ts +37 -0
- package/src/facade/topics.ts +42 -0
- package/src/facade/webhooks.ts +58 -0
- package/src/facade/worktrees.ts +51 -0
- package/src/gatewayFacades.ts +1666 -0
- package/src/graphClient.ts +529 -0
- package/src/harnessClient.ts +585 -0
- package/src/identityClient.ts +278 -0
- package/{dist/lib/platform/sdk/index.d.ts → src/index.ts} +3 -0
- package/src/learningClient.ts +95 -0
- package/src/mcpParityClient.ts +240 -0
- package/src/mcpParitySurface.ts +70 -0
- package/src/ontologyClient.ts +275 -0
- package/src/packRuntime.ts +3 -0
- package/src/packsClient.ts +260 -0
- package/src/policyClient.ts +572 -0
- package/src/promptCatalog.ts +1 -0
- package/src/realtime/index.ts +51 -0
- package/src/realtime/refs.ts +17 -0
- package/src/reportsClient.ts +99 -0
- package/src/schemaClient.ts +129 -0
- package/src/sdkSurface.ts +190 -0
- package/src/topicsClient.ts +243 -0
- package/src/types.ts +807 -0
- package/src/workflowClient.ts +826 -0
- package/tsconfig.json +9 -0
- package/dist/.generated +0 -2
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/lib/platform/auth/credentials.d.ts +0 -5
- package/dist/lib/platform/auth/credentials.js +0 -40
- package/dist/lib/platform/sdk/adminClient.d.ts +0 -404
- package/dist/lib/platform/sdk/adminClient.js +0 -384
- package/dist/lib/platform/sdk/answersClient.js +0 -21
- package/dist/lib/platform/sdk/audiencesClient.d.ts +0 -93
- package/dist/lib/platform/sdk/audiencesClient.js +0 -111
- package/dist/lib/platform/sdk/auditClient.d.ts +0 -24
- package/dist/lib/platform/sdk/auditClient.js +0 -21
- package/dist/lib/platform/sdk/beliefsClient.d.ts +0 -157
- package/dist/lib/platform/sdk/beliefsClient.js +0 -124
- package/dist/lib/platform/sdk/client.d.ts +0 -2369
- package/dist/lib/platform/sdk/client.js +0 -1831
- package/dist/lib/platform/sdk/contextClient.d.ts +0 -21
- package/dist/lib/platform/sdk/contextClient.js +0 -86
- package/dist/lib/platform/sdk/contextPackCompiler.d.ts +0 -100
- package/dist/lib/platform/sdk/contextPackCompiler.js +0 -534
- package/dist/lib/platform/sdk/contextTypes.d.ts +0 -133
- package/dist/lib/platform/sdk/contextTypes.js +0 -1
- package/dist/lib/platform/sdk/controlObjectOwnership.d.ts +0 -308
- package/dist/lib/platform/sdk/controlObjectOwnership.js +0 -220
- package/dist/lib/platform/sdk/coreClient.d.ts +0 -139
- package/dist/lib/platform/sdk/coreClient.js +0 -366
- package/dist/lib/platform/sdk/customTools.d.ts +0 -83
- package/dist/lib/platform/sdk/customTools.js +0 -247
- package/dist/lib/platform/sdk/decisionsClient.d.ts +0 -106
- package/dist/lib/platform/sdk/decisionsClient.js +0 -129
- package/dist/lib/platform/sdk/domainContext.d.ts +0 -1
- package/dist/lib/platform/sdk/domainContext.js +0 -1
- package/dist/lib/platform/sdk/events.d.ts +0 -176
- package/dist/lib/platform/sdk/events.js +0 -261
- package/dist/lib/platform/sdk/gatewayFacades.d.ts +0 -586
- package/dist/lib/platform/sdk/gatewayFacades.js +0 -845
- package/dist/lib/platform/sdk/graphClient.d.ts +0 -266
- package/dist/lib/platform/sdk/graphClient.js +0 -235
- package/dist/lib/platform/sdk/harnessClient.d.ts +0 -309
- package/dist/lib/platform/sdk/harnessClient.js +0 -219
- package/dist/lib/platform/sdk/identityClient.d.ts +0 -134
- package/dist/lib/platform/sdk/identityClient.js +0 -131
- package/dist/lib/platform/sdk/index.js +0 -46
- package/dist/lib/platform/sdk/learningClient.d.ts +0 -40
- package/dist/lib/platform/sdk/learningClient.js +0 -53
- package/dist/lib/platform/sdk/mcpParityClient.d.ts +0 -69
- package/dist/lib/platform/sdk/mcpParityClient.js +0 -196
- package/dist/lib/platform/sdk/mcpParitySurface.d.ts +0 -10
- package/dist/lib/platform/sdk/mcpParitySurface.js +0 -57
- package/dist/lib/platform/sdk/ontologyClient.d.ts +0 -131
- package/dist/lib/platform/sdk/ontologyClient.js +0 -161
- package/dist/lib/platform/sdk/packRuntime.d.ts +0 -1
- package/dist/lib/platform/sdk/packRuntime.js +0 -1
- package/dist/lib/platform/sdk/packsClient.d.ts +0 -126
- package/dist/lib/platform/sdk/packsClient.js +0 -157
- package/dist/lib/platform/sdk/policyClient.d.ts +0 -293
- package/dist/lib/platform/sdk/policyClient.js +0 -277
- package/dist/lib/platform/sdk/promptCatalog.d.ts +0 -1
- package/dist/lib/platform/sdk/promptCatalog.js +0 -1
- package/dist/lib/platform/sdk/reportsClient.d.ts +0 -34
- package/dist/lib/platform/sdk/reportsClient.js +0 -64
- package/dist/lib/platform/sdk/schemaClient.d.ts +0 -59
- package/dist/lib/platform/sdk/schemaClient.js +0 -71
- package/dist/lib/platform/sdk/sdkSurface.d.ts +0 -56
- package/dist/lib/platform/sdk/sdkSurface.js +0 -140
- package/dist/lib/platform/sdk/topicsClient.d.ts +0 -78
- package/dist/lib/platform/sdk/topicsClient.js +0 -118
- package/dist/lib/platform/sdk/types.d.ts +0 -692
- package/dist/lib/platform/sdk/types.js +0 -1
- package/dist/lib/platform/sdk/version.d.ts +0 -2
- package/dist/lib/platform/sdk/workflowClient.d.ts +0 -313
- package/dist/lib/platform/sdk/workflowClient.js +0 -366
- package/dist/lucern/contracts/src/api-enums.contract.d.ts +0 -58
- package/dist/lucern/contracts/src/api-enums.contract.js +0 -147
- package/dist/lucern/contracts/src/lens-filter.contract.d.ts +0 -70
- package/dist/lucern/contracts/src/lens-filter.contract.js +0 -95
- package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +0 -84
- package/dist/lucern/contracts/src/lens-workflow.contract.js +0 -54
- package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +0 -151
- package/dist/lucern/contracts/src/mcp-tools.contract.js +0 -3281
- /package/{dist/lib/platform/sdk/version.js → src/version.ts} +0 -0
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
-
import type { ForkBeliefResponse, JsonObject, ModulateConfidenceResponse } from "./types";
|
|
3
|
-
export { LucernApiError };
|
|
4
|
-
export type { PlatformGatewaySuccess } from "./coreClient";
|
|
5
|
-
export type { CreateBeliefResponse, ForkBeliefResponse, ModulateConfidenceResponse, } from "./types";
|
|
6
|
-
/** Configuration for the beliefs client. Inherits gateway transport settings. */
|
|
7
|
-
export type BeliefsClientConfig = GatewayClientConfig;
|
|
8
|
-
/**
|
|
9
|
-
* Input for creating a new belief within a topic scope.
|
|
10
|
-
*
|
|
11
|
-
* Use `text` as the canonical belief statement.
|
|
12
|
-
* `canonicalText` remains available as a legacy alias for backwards compatibility.
|
|
13
|
-
* Beliefs start as unscored drafts and can be scored via confidence modulation.
|
|
14
|
-
*/
|
|
15
|
-
export type CreateBeliefInput = {
|
|
16
|
-
topicId?: string;
|
|
17
|
-
/** Preferred belief statement alias. */
|
|
18
|
-
text?: string;
|
|
19
|
-
/** @deprecated Use text. */
|
|
20
|
-
canonicalText?: string;
|
|
21
|
-
layer?: "L1" | "L2" | "L3" | "L4";
|
|
22
|
-
domain?: string;
|
|
23
|
-
sourceType?: "human" | "ai" | "agent" | "imported";
|
|
24
|
-
content?: string;
|
|
25
|
-
contentHash?: string;
|
|
26
|
-
globalId?: string;
|
|
27
|
-
title?: string;
|
|
28
|
-
subtype?: string;
|
|
29
|
-
confidence?: number;
|
|
30
|
-
tags?: string[];
|
|
31
|
-
metadata?: JsonObject;
|
|
32
|
-
verificationStatus?: "unverified" | "verified" | "rejected";
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Input for recording a confidence change on a belief.
|
|
36
|
-
* Confidence modulation is append-only — each call adds a new credence history entry.
|
|
37
|
-
*/
|
|
38
|
-
export type ModulateConfidenceInput = {
|
|
39
|
-
confidence: number;
|
|
40
|
-
trigger?: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "manual" | "decay" | "agent_assessment" | "merge_outcome" | "worktree_outcome" | "worktree_completed";
|
|
41
|
-
rationale: string;
|
|
42
|
-
certainty?: number;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Input for forking a scored belief into a new formulation.
|
|
46
|
-
* Scored beliefs are immutable — fork to evolve understanding.
|
|
47
|
-
*/
|
|
48
|
-
export type ForkBeliefInput = {
|
|
49
|
-
newFormulation: string;
|
|
50
|
-
forkReason?: "refinement" | "contradiction_response" | "scope_change" | "confidence_collapse" | "manual";
|
|
51
|
-
rationale?: string;
|
|
52
|
-
};
|
|
53
|
-
/** Input for changing a belief's lifecycle status. */
|
|
54
|
-
export type UpdateBeliefStatusInput = {
|
|
55
|
-
id?: string;
|
|
56
|
-
nodeId?: string;
|
|
57
|
-
beliefId?: string;
|
|
58
|
-
status: "active" | "superseded" | "archived";
|
|
59
|
-
reason?: string;
|
|
60
|
-
};
|
|
61
|
-
/** Input for updating a belief's rationale without refining its text. */
|
|
62
|
-
export type UpdateBeliefRationaleInput = {
|
|
63
|
-
id?: string;
|
|
64
|
-
nodeId?: string;
|
|
65
|
-
beliefId?: string;
|
|
66
|
-
rationale?: string;
|
|
67
|
-
};
|
|
68
|
-
/** Input for creating a belief-to-belief reasoning edge. */
|
|
69
|
-
export type LinkBeliefsInput = {
|
|
70
|
-
fromNodeId: string;
|
|
71
|
-
toNodeId: string;
|
|
72
|
-
edgeType: string;
|
|
73
|
-
weight?: number;
|
|
74
|
-
context?: string;
|
|
75
|
-
};
|
|
76
|
-
/** Input for unlinking a belief from an attached evidence item. */
|
|
77
|
-
export type UnlinkBeliefEvidenceInput = {
|
|
78
|
-
beliefNodeId?: string;
|
|
79
|
-
beliefId?: string;
|
|
80
|
-
nodeId?: string;
|
|
81
|
-
insightId?: string;
|
|
82
|
-
evidenceId?: string;
|
|
83
|
-
};
|
|
84
|
-
/** Input for updating a belief's criticality classification. */
|
|
85
|
-
export type UpdateBeliefCriticalityInput = {
|
|
86
|
-
id?: string;
|
|
87
|
-
nodeId?: string;
|
|
88
|
-
beliefId?: string;
|
|
89
|
-
criticality: "blocking" | "important" | "supporting" | "essential" | "nice_to_have";
|
|
90
|
-
};
|
|
91
|
-
/** Input for bulk-updating multiple beliefs' criticality. */
|
|
92
|
-
export type BatchUpdateBeliefCriticalityInput = {
|
|
93
|
-
updates: Array<{
|
|
94
|
-
beliefId: string;
|
|
95
|
-
criticality: "blocking" | "important" | "supporting" | "essential" | "nice_to_have";
|
|
96
|
-
ifFalseImpact?: string;
|
|
97
|
-
triagePriority?: number;
|
|
98
|
-
reasoning?: string;
|
|
99
|
-
dependentBeliefIds?: string[];
|
|
100
|
-
blockedByBeliefIds?: string[];
|
|
101
|
-
}>;
|
|
102
|
-
};
|
|
103
|
-
/** Input for moving beliefs into a different topic scope. */
|
|
104
|
-
export type ReassignBeliefsTopicInput = {
|
|
105
|
-
beliefNodeIds?: string[];
|
|
106
|
-
beliefIds?: string[];
|
|
107
|
-
targetTopicId: string;
|
|
108
|
-
reason?: string;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Create the beliefs client for belief lifecycle operations.
|
|
112
|
-
*
|
|
113
|
-
* @param config - Gateway transport configuration.
|
|
114
|
-
* @returns An object with `createBelief`, `modulateConfidence`, and `forkBelief` methods.
|
|
115
|
-
*/
|
|
116
|
-
export declare function createBeliefsClient(config?: BeliefsClientConfig): {
|
|
117
|
-
/**
|
|
118
|
-
* Create a belief within a topic scope.
|
|
119
|
-
*/
|
|
120
|
-
createBelief(input: CreateBeliefInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").PlatformBeliefRecord>>;
|
|
121
|
-
/**
|
|
122
|
-
* Record a confidence change for an existing belief.
|
|
123
|
-
*/
|
|
124
|
-
modulateConfidence(beliefId: string, input: ModulateConfidenceInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<ModulateConfidenceResponse>>;
|
|
125
|
-
/**
|
|
126
|
-
* Fork a scored belief into a new formulation.
|
|
127
|
-
*/
|
|
128
|
-
forkBelief(beliefId: string, input: ForkBeliefInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<ForkBeliefResponse>>;
|
|
129
|
-
/**
|
|
130
|
-
* Update a belief's lifecycle status.
|
|
131
|
-
*/
|
|
132
|
-
updateBeliefStatus(input: UpdateBeliefStatusInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
133
|
-
/**
|
|
134
|
-
* Update a belief's rationale without changing its text.
|
|
135
|
-
*/
|
|
136
|
-
updateBeliefRationale(input: UpdateBeliefRationaleInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
137
|
-
/**
|
|
138
|
-
* Create a typed relationship between two beliefs.
|
|
139
|
-
*/
|
|
140
|
-
linkBeliefs(input: LinkBeliefsInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
141
|
-
/**
|
|
142
|
-
* Remove an evidence attachment from a belief.
|
|
143
|
-
*/
|
|
144
|
-
unlinkBeliefEvidence(input: UnlinkBeliefEvidenceInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
145
|
-
/**
|
|
146
|
-
* Update a belief's criticality metadata.
|
|
147
|
-
*/
|
|
148
|
-
updateBeliefCriticality(input: UpdateBeliefCriticalityInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
149
|
-
/**
|
|
150
|
-
* Update multiple beliefs' criticality in one mutation.
|
|
151
|
-
*/
|
|
152
|
-
batchUpdateBeliefCriticality(input: BatchUpdateBeliefCriticalityInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
153
|
-
/**
|
|
154
|
-
* Reassign beliefs to a different topic scope.
|
|
155
|
-
*/
|
|
156
|
-
reassignBeliefsTopic(input: ReassignBeliefsTopicInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
157
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { createGatewayRequestClient, LucernApiError, randomIdempotencyKey, } from "./coreClient.js";
|
|
2
|
-
import { normalizeNodeWriteInput } from "./sdkSurface.js";
|
|
3
|
-
export { LucernApiError };
|
|
4
|
-
/**
|
|
5
|
-
* Create the beliefs client for belief lifecycle operations.
|
|
6
|
-
*
|
|
7
|
-
* @param config - Gateway transport configuration.
|
|
8
|
-
* @returns An object with `createBelief`, `modulateConfidence`, and `forkBelief` methods.
|
|
9
|
-
*/
|
|
10
|
-
export function createBeliefsClient(config = {}) {
|
|
11
|
-
const gateway = createGatewayRequestClient(config);
|
|
12
|
-
return {
|
|
13
|
-
/**
|
|
14
|
-
* Create a belief within a topic scope.
|
|
15
|
-
*/
|
|
16
|
-
async createBelief(input, idempotencyKey) {
|
|
17
|
-
return gateway.request({
|
|
18
|
-
path: "/api/platform/v1/beliefs",
|
|
19
|
-
method: "POST",
|
|
20
|
-
body: normalizeNodeWriteInput(input),
|
|
21
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* Record a confidence change for an existing belief.
|
|
26
|
-
*/
|
|
27
|
-
async modulateConfidence(beliefId, input, idempotencyKey) {
|
|
28
|
-
return gateway.request({
|
|
29
|
-
path: `/api/platform/v1/beliefs/${encodeURIComponent(beliefId)}/confidence`,
|
|
30
|
-
method: "POST",
|
|
31
|
-
body: input,
|
|
32
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* Fork a scored belief into a new formulation.
|
|
37
|
-
*/
|
|
38
|
-
async forkBelief(beliefId, input, idempotencyKey) {
|
|
39
|
-
return gateway.request({
|
|
40
|
-
path: `/api/platform/v1/beliefs/${encodeURIComponent(beliefId)}/fork`,
|
|
41
|
-
method: "POST",
|
|
42
|
-
body: input,
|
|
43
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* Update a belief's lifecycle status.
|
|
48
|
-
*/
|
|
49
|
-
async updateBeliefStatus(input, idempotencyKey) {
|
|
50
|
-
return gateway.request({
|
|
51
|
-
path: "/api/platform/v1/beliefs/update-status",
|
|
52
|
-
method: "POST",
|
|
53
|
-
body: input,
|
|
54
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* Update a belief's rationale without changing its text.
|
|
59
|
-
*/
|
|
60
|
-
async updateBeliefRationale(input, idempotencyKey) {
|
|
61
|
-
return gateway.request({
|
|
62
|
-
path: "/api/platform/v1/beliefs/update-rationale",
|
|
63
|
-
method: "POST",
|
|
64
|
-
body: input,
|
|
65
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Create a typed relationship between two beliefs.
|
|
70
|
-
*/
|
|
71
|
-
async linkBeliefs(input, idempotencyKey) {
|
|
72
|
-
return gateway.request({
|
|
73
|
-
path: "/api/platform/v1/beliefs/link",
|
|
74
|
-
method: "POST",
|
|
75
|
-
body: input,
|
|
76
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
/**
|
|
80
|
-
* Remove an evidence attachment from a belief.
|
|
81
|
-
*/
|
|
82
|
-
async unlinkBeliefEvidence(input, idempotencyKey) {
|
|
83
|
-
return gateway.request({
|
|
84
|
-
path: "/api/platform/v1/beliefs/unlink-evidence",
|
|
85
|
-
method: "POST",
|
|
86
|
-
body: input,
|
|
87
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
/**
|
|
91
|
-
* Update a belief's criticality metadata.
|
|
92
|
-
*/
|
|
93
|
-
async updateBeliefCriticality(input, idempotencyKey) {
|
|
94
|
-
return gateway.request({
|
|
95
|
-
path: "/api/platform/v1/beliefs/update-criticality",
|
|
96
|
-
method: "POST",
|
|
97
|
-
body: input,
|
|
98
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
99
|
-
});
|
|
100
|
-
},
|
|
101
|
-
/**
|
|
102
|
-
* Update multiple beliefs' criticality in one mutation.
|
|
103
|
-
*/
|
|
104
|
-
async batchUpdateBeliefCriticality(input, idempotencyKey) {
|
|
105
|
-
return gateway.request({
|
|
106
|
-
path: "/api/platform/v1/beliefs/batch-update-criticality",
|
|
107
|
-
method: "POST",
|
|
108
|
-
body: input,
|
|
109
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
110
|
-
});
|
|
111
|
-
},
|
|
112
|
-
/**
|
|
113
|
-
* Reassign beliefs to a different topic scope.
|
|
114
|
-
*/
|
|
115
|
-
async reassignBeliefsTopic(input, idempotencyKey) {
|
|
116
|
-
return gateway.request({
|
|
117
|
-
path: "/api/platform/v1/beliefs/reassign-topic",
|
|
118
|
-
method: "POST",
|
|
119
|
-
body: input,
|
|
120
|
-
idempotencyKey: idempotencyKey ?? randomIdempotencyKey(),
|
|
121
|
-
});
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
}
|