@lucern/sdk 0.3.0-alpha.3 → 0.3.0-alpha.4
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/dist/adminClient.js +4 -3
- package/dist/adminClient.js.map +1 -1
- package/dist/answersClient.js +4 -3
- package/dist/answersClient.js.map +1 -1
- package/dist/audiencesClient.js +4 -3
- package/dist/audiencesClient.js.map +1 -1
- package/dist/auditClient.js +4 -3
- package/dist/auditClient.js.map +1 -1
- package/dist/authContext.js +4 -3
- package/dist/authContext.js.map +1 -1
- package/dist/beliefs/index.d.ts +1 -1
- package/dist/beliefs/index.js +301 -7
- package/dist/beliefs/index.js.map +1 -1
- package/dist/beliefsClient.js +4 -3
- package/dist/beliefsClient.js.map +1 -1
- package/dist/{client-EiG9nJOY.d.ts → client-DOLqClbU.d.ts} +183 -3
- package/dist/client.d.ts +1 -1
- package/dist/client.js +301 -7
- package/dist/client.js.map +1 -1
- package/dist/contextClient.js +4 -3
- package/dist/contextClient.js.map +1 -1
- package/dist/contracts/api-enums.contract.d.ts +1 -1
- package/dist/contracts/api-enums.contract.js.map +1 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contradictions/index.d.ts +1 -1
- package/dist/contradictions/index.js +301 -7
- package/dist/contradictions/index.js.map +1 -1
- package/dist/coreClient.js +4 -3
- package/dist/coreClient.js.map +1 -1
- package/dist/decisions/index.d.ts +1 -1
- package/dist/decisions/index.js +301 -7
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisionsClient.js +4 -3
- package/dist/decisionsClient.js.map +1 -1
- package/dist/edges/index.d.ts +1 -1
- package/dist/edges/index.js +301 -7
- package/dist/edges/index.js.map +1 -1
- package/dist/embeddingsClient.js +4 -3
- package/dist/embeddingsClient.js.map +1 -1
- package/dist/eventingClient.js +4 -3
- package/dist/eventingClient.js.map +1 -1
- package/dist/eventsCore.js +4 -3
- package/dist/eventsCore.js.map +1 -1
- package/dist/evidence/index.d.ts +1 -1
- package/dist/evidence/index.js +301 -7
- package/dist/evidence/index.js.map +1 -1
- package/dist/evidenceClient.js +4 -3
- package/dist/evidenceClient.js.map +1 -1
- package/dist/gatewayFacades.d.ts +34 -1
- package/dist/gatewayFacades.js +4 -3
- package/dist/gatewayFacades.js.map +1 -1
- package/dist/graphAnalysisClient.d.ts +7 -0
- package/dist/graphAnalysisClient.js +7 -4
- package/dist/graphAnalysisClient.js.map +1 -1
- package/dist/graphClient.js +4 -3
- package/dist/graphClient.js.map +1 -1
- package/dist/graphRecommendationsClient.js +4 -3
- package/dist/graphRecommendationsClient.js.map +1 -1
- package/dist/graphStateClassifierClient.js +4 -3
- package/dist/graphStateClassifierClient.js.map +1 -1
- package/dist/harnessClient.js +4 -3
- package/dist/harnessClient.js.map +1 -1
- package/dist/identityClient.js +4 -3
- package/dist/identityClient.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +593 -8
- package/dist/index.js.map +1 -1
- package/dist/infisicalRuntime.d.ts +42 -0
- package/dist/infisicalRuntime.js +291 -0
- package/dist/infisicalRuntime.js.map +1 -0
- package/dist/jobsClient.js +4 -3
- package/dist/jobsClient.js.map +1 -1
- package/dist/learningClient.js +4 -3
- package/dist/learningClient.js.map +1 -1
- package/dist/lenses/index.d.ts +25 -1
- package/dist/lenses/index.js +301 -7
- package/dist/lenses/index.js.map +1 -1
- package/dist/mcpClient.js +4 -3
- package/dist/mcpClient.js.map +1 -1
- package/dist/modelRuntimeClient.js +4 -3
- package/dist/modelRuntimeClient.js.map +1 -1
- package/dist/nodes/index.d.ts +19 -1
- package/dist/nodes/index.js +301 -7
- package/dist/nodes/index.js.map +1 -1
- package/dist/ontologies/index.d.ts +1 -1
- package/dist/ontologies/index.js +301 -7
- package/dist/ontologies/index.js.map +1 -1
- package/dist/ontologyClient.js +4 -3
- package/dist/ontologyClient.js.map +1 -1
- package/dist/ontologyLinksClient.js +4 -3
- package/dist/ontologyLinksClient.js.map +1 -1
- package/dist/orgGraphSearchClient.js +4 -3
- package/dist/orgGraphSearchClient.js.map +1 -1
- package/dist/packsClient.js +4 -3
- package/dist/packsClient.js.map +1 -1
- package/dist/policyClient.js +4 -3
- package/dist/policyClient.js.map +1 -1
- package/dist/questions/index.d.ts +1 -1
- package/dist/questions/index.js +301 -7
- package/dist/questions/index.js.map +1 -1
- package/dist/reportsClient.js +4 -3
- package/dist/reportsClient.js.map +1 -1
- package/dist/schemaClient.js +4 -3
- package/dist/schemaClient.js.map +1 -1
- package/dist/sourcesClient.js +4 -3
- package/dist/sourcesClient.js.map +1 -1
- package/dist/telemetryClient.js +4 -3
- package/dist/telemetryClient.js.map +1 -1
- package/dist/toolRegistryClient.js +4 -3
- package/dist/toolRegistryClient.js.map +1 -1
- package/dist/topics/index.d.ts +1 -1
- package/dist/topics/index.js +301 -7
- package/dist/topics/index.js.map +1 -1
- package/dist/topicsClient.js +4 -3
- package/dist/topicsClient.js.map +1 -1
- package/dist/workflowClient.d.ts +41 -7
- package/dist/workflowClient.js +4 -3
- package/dist/workflowClient.js.map +1 -1
- package/dist/worktrees/index.d.ts +25 -1
- package/dist/worktrees/index.js +301 -7
- package/dist/worktrees/index.js.map +1 -1
- package/package.json +3 -3
package/dist/client.js
CHANGED
|
@@ -85,14 +85,15 @@ function normalizeCanonicalLucernAuthContext(input) {
|
|
|
85
85
|
);
|
|
86
86
|
const roles = cleanStringList(input.roles);
|
|
87
87
|
const scopes = cleanStringList(input.scopes);
|
|
88
|
-
|
|
88
|
+
const principalType = requirePrincipalType(input.principalType);
|
|
89
|
+
const authMode = requireAuthMode(input.authMode);
|
|
90
|
+
const roleBasedInteractiveAuth = authMode === "interactive_user" && roles.length > 0;
|
|
91
|
+
if (roles.length === 0 || scopes.length === 0 && !roleBasedInteractiveAuth) {
|
|
89
92
|
throw new LucernSdkAuthContextError(
|
|
90
93
|
"membership_missing",
|
|
91
94
|
"Canonical Lucern SDK auth context requires non-empty roles and scopes."
|
|
92
95
|
);
|
|
93
96
|
}
|
|
94
|
-
const principalType = requirePrincipalType(input.principalType);
|
|
95
|
-
const authMode = requireAuthMode(input.authMode);
|
|
96
97
|
const subject = cleanString(input.permit?.subject) ?? principalId;
|
|
97
98
|
const tenant = cleanString(input.permit?.tenant) ?? tenantId;
|
|
98
99
|
const workspace = cleanString(input.permit?.workspace) ?? workspaceId;
|
|
@@ -4199,7 +4200,9 @@ function createGraphAnalysisClient(config = {}) {
|
|
|
4199
4200
|
topicId: requireTopicId2(input),
|
|
4200
4201
|
workspaceId: input.workspaceId,
|
|
4201
4202
|
analysisId: input.analysisId,
|
|
4202
|
-
|
|
4203
|
+
minimumCreatedAt: input.minimumCreatedAt ?? input.since ?? input.createdAt ?? input.analysisCreatedAt,
|
|
4204
|
+
sourceNodeIds: input.sourceNodeIds?.join(",") ?? (input.nodeId ? input.nodeId : void 0),
|
|
4205
|
+
sourceEdgeIds: input.sourceEdgeIds?.join(",") ?? (input.edgeId ? input.edgeId : void 0),
|
|
4203
4206
|
limit: input.limit,
|
|
4204
4207
|
cursor: input.cursor
|
|
4205
4208
|
})}`
|
|
@@ -4955,6 +4958,7 @@ var CONTRACTS = {
|
|
|
4955
4958
|
"archive_belief": { method: "DELETE", path: "/beliefs", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
4956
4959
|
"archive_ontology": { method: "DELETE", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
4957
4960
|
"archive_question": { method: "DELETE", path: "/questions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
4961
|
+
"begin_build_session": { method: "POST", path: "/mcp/build-session/begin", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
4958
4962
|
"bisect_confidence": { method: "POST", path: "/beliefs/confidence/bisect", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
4959
4963
|
"broadcast_message": { method: "POST", path: "/coordination/messages/broadcast", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
4960
4964
|
"check_permission": { method: "POST", path: "/identity/check-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
@@ -5126,6 +5130,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
5126
5130
|
archiveQuestion(input = {}, idempotencyKey) {
|
|
5127
5131
|
return execute("archive_question", input, idempotencyKey);
|
|
5128
5132
|
},
|
|
5133
|
+
beginBuildSession(input = {}, idempotencyKey) {
|
|
5134
|
+
return execute("begin_build_session", input, idempotencyKey);
|
|
5135
|
+
},
|
|
5129
5136
|
bisectConfidence(input = {}, idempotencyKey) {
|
|
5130
5137
|
return execute("bisect_confidence", input, idempotencyKey);
|
|
5131
5138
|
},
|
|
@@ -7060,6 +7067,13 @@ function requireTopicId4(args) {
|
|
|
7060
7067
|
}
|
|
7061
7068
|
return topicId;
|
|
7062
7069
|
}
|
|
7070
|
+
function requireTopicOrProjectId(args) {
|
|
7071
|
+
const topicId = args.topicId?.trim() || args.projectId?.trim() || void 0;
|
|
7072
|
+
if (!topicId) {
|
|
7073
|
+
throw new Error("topicId is required");
|
|
7074
|
+
}
|
|
7075
|
+
return topicId;
|
|
7076
|
+
}
|
|
7063
7077
|
var AUDIT_NODE_REFERENCE_KEY_PATTERN = /(^|_)(id|nodeid|beliefid|resourceid|targetid|sourceid|subjectid|globalid|entityid|recordid|fromnodeid|tonodeid|linkednodeid|linkedbeliefid|nodeids|beliefids|resourceids)$/i;
|
|
7064
7078
|
function matchesAuditNodeReference(value, nodeId) {
|
|
7065
7079
|
if (Array.isArray(value)) {
|
|
@@ -7095,6 +7109,23 @@ function requireBaseRate(args) {
|
|
|
7095
7109
|
function exposeGatewayData(response) {
|
|
7096
7110
|
return Object.assign({}, response, response.data);
|
|
7097
7111
|
}
|
|
7112
|
+
function sdkQueryString(input) {
|
|
7113
|
+
const params = new URLSearchParams();
|
|
7114
|
+
for (const [key, value] of Object.entries(input)) {
|
|
7115
|
+
if (value === void 0 || value === null) {
|
|
7116
|
+
continue;
|
|
7117
|
+
}
|
|
7118
|
+
if (Array.isArray(value)) {
|
|
7119
|
+
if (value.length > 0) {
|
|
7120
|
+
params.set(key, value.join(","));
|
|
7121
|
+
}
|
|
7122
|
+
continue;
|
|
7123
|
+
}
|
|
7124
|
+
params.set(key, String(value));
|
|
7125
|
+
}
|
|
7126
|
+
const serialized = params.toString();
|
|
7127
|
+
return serialized ? `?${serialized}` : "";
|
|
7128
|
+
}
|
|
7098
7129
|
function createLucernClient(config = {}) {
|
|
7099
7130
|
const gatewayConfig = toGatewayConfig(config);
|
|
7100
7131
|
const beliefsClient = createBeliefsClient(gatewayConfig);
|
|
@@ -7515,6 +7546,30 @@ function createLucernClient(config = {}) {
|
|
|
7515
7546
|
batchCreate(input, idempotencyKey) {
|
|
7516
7547
|
return graphClient.batchCreateNodes(input, idempotencyKey);
|
|
7517
7548
|
},
|
|
7549
|
+
listByTopicAndType(input) {
|
|
7550
|
+
return gateway.request({
|
|
7551
|
+
path: `/api/platform/v1/nodes${sdkQueryString({
|
|
7552
|
+
topicId: requireTopicOrProjectId(input),
|
|
7553
|
+
nodeType: input.nodeType,
|
|
7554
|
+
nodeTypes: input.nodeTypes,
|
|
7555
|
+
query: input.query,
|
|
7556
|
+
sourceText: input.sourceText,
|
|
7557
|
+
limit: input.limit,
|
|
7558
|
+
cursor: input.cursor
|
|
7559
|
+
})}`
|
|
7560
|
+
}).then(exposeGatewayData);
|
|
7561
|
+
},
|
|
7562
|
+
countByTopicAndType(input) {
|
|
7563
|
+
return gateway.request({
|
|
7564
|
+
path: `/api/platform/v1/nodes/count${sdkQueryString({
|
|
7565
|
+
topicId: requireTopicOrProjectId(input),
|
|
7566
|
+
nodeType: input.nodeType,
|
|
7567
|
+
nodeTypes: input.nodeTypes,
|
|
7568
|
+
query: input.query,
|
|
7569
|
+
limit: input.limit
|
|
7570
|
+
})}`
|
|
7571
|
+
}).then(exposeGatewayData);
|
|
7572
|
+
},
|
|
7518
7573
|
supersede(input, idempotencyKey) {
|
|
7519
7574
|
return graphClient.supersedeNode(input, idempotencyKey);
|
|
7520
7575
|
},
|
|
@@ -7525,6 +7580,78 @@ function createLucernClient(config = {}) {
|
|
|
7525
7580
|
return graphClient.hardDeleteNode(input, idempotencyKey);
|
|
7526
7581
|
}
|
|
7527
7582
|
};
|
|
7583
|
+
const publicationNamespace = {
|
|
7584
|
+
create(input, idempotencyKey) {
|
|
7585
|
+
return gateway.request({
|
|
7586
|
+
path: "/api/platform/v1/publication",
|
|
7587
|
+
method: "POST",
|
|
7588
|
+
body: input,
|
|
7589
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7590
|
+
}).then(exposeGatewayData);
|
|
7591
|
+
},
|
|
7592
|
+
update(publicationId, input, idempotencyKey) {
|
|
7593
|
+
return gateway.request({
|
|
7594
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7595
|
+
publicationId
|
|
7596
|
+
)}`,
|
|
7597
|
+
method: "PATCH",
|
|
7598
|
+
body: input,
|
|
7599
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7600
|
+
}).then(exposeGatewayData);
|
|
7601
|
+
},
|
|
7602
|
+
list(input = {}) {
|
|
7603
|
+
return gateway.request({
|
|
7604
|
+
path: `/api/platform/v1/publication${sdkQueryString(input)}`
|
|
7605
|
+
}).then(exposeGatewayData);
|
|
7606
|
+
},
|
|
7607
|
+
getByTopic(input) {
|
|
7608
|
+
const topicId = typeof input === "string" ? input : input.topicId;
|
|
7609
|
+
const workspaceId = typeof input === "string" ? void 0 : input.workspaceId;
|
|
7610
|
+
return gateway.request({
|
|
7611
|
+
path: `/api/platform/v1/publication/by-topic/${encodeURIComponent(
|
|
7612
|
+
topicId
|
|
7613
|
+
)}${sdkQueryString({ workspaceId })}`
|
|
7614
|
+
}).then(exposeGatewayData);
|
|
7615
|
+
},
|
|
7616
|
+
publish(publicationId, input = {}, idempotencyKey) {
|
|
7617
|
+
return gateway.request({
|
|
7618
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7619
|
+
publicationId
|
|
7620
|
+
)}/publish`,
|
|
7621
|
+
method: "POST",
|
|
7622
|
+
body: input,
|
|
7623
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7624
|
+
}).then(exposeGatewayData);
|
|
7625
|
+
},
|
|
7626
|
+
unpublish(publicationId, input = {}, idempotencyKey) {
|
|
7627
|
+
return gateway.request({
|
|
7628
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7629
|
+
publicationId
|
|
7630
|
+
)}/unpublish`,
|
|
7631
|
+
method: "POST",
|
|
7632
|
+
body: input,
|
|
7633
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7634
|
+
}).then(exposeGatewayData);
|
|
7635
|
+
},
|
|
7636
|
+
remove(publicationId, input = {}) {
|
|
7637
|
+
return gateway.request({
|
|
7638
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7639
|
+
publicationId
|
|
7640
|
+
)}${sdkQueryString(input)}`,
|
|
7641
|
+
method: "DELETE"
|
|
7642
|
+
}).then(exposeGatewayData);
|
|
7643
|
+
}
|
|
7644
|
+
};
|
|
7645
|
+
const ontologyLinksNamespace = {
|
|
7646
|
+
...ontologyLinksClient,
|
|
7647
|
+
resolveThemeSource(input) {
|
|
7648
|
+
return gateway.request({
|
|
7649
|
+
path: "/api/platform/v1/ontology-links/theme-source",
|
|
7650
|
+
method: "POST",
|
|
7651
|
+
body: input
|
|
7652
|
+
}).then(exposeGatewayData);
|
|
7653
|
+
}
|
|
7654
|
+
};
|
|
7528
7655
|
return {
|
|
7529
7656
|
config,
|
|
7530
7657
|
version: LUCERN_SDK_VERSION,
|
|
@@ -8006,6 +8133,54 @@ function createLucernClient(config = {}) {
|
|
|
8006
8133
|
}));
|
|
8007
8134
|
}
|
|
8008
8135
|
},
|
|
8136
|
+
themes: {
|
|
8137
|
+
listByTopic(input) {
|
|
8138
|
+
return gateway.request({
|
|
8139
|
+
path: `/api/platform/v1/themes${sdkQueryString({
|
|
8140
|
+
topicId: requireTopicOrProjectId(input),
|
|
8141
|
+
query: input.query,
|
|
8142
|
+
limit: input.limit,
|
|
8143
|
+
cursor: input.cursor
|
|
8144
|
+
})}`
|
|
8145
|
+
}).then(exposeGatewayData);
|
|
8146
|
+
}
|
|
8147
|
+
},
|
|
8148
|
+
graphSearch: {
|
|
8149
|
+
keywordSearchNodes(input) {
|
|
8150
|
+
return gateway.request({
|
|
8151
|
+
path: "/api/platform/v1/graph-search/keyword-nodes",
|
|
8152
|
+
method: "POST",
|
|
8153
|
+
body: {
|
|
8154
|
+
...input,
|
|
8155
|
+
topicId: requireTopicOrProjectId(input),
|
|
8156
|
+
projectId: void 0
|
|
8157
|
+
}
|
|
8158
|
+
}).then(exposeGatewayData);
|
|
8159
|
+
}
|
|
8160
|
+
},
|
|
8161
|
+
classifiers: {
|
|
8162
|
+
listBeliefCandidates(input) {
|
|
8163
|
+
return gateway.request({
|
|
8164
|
+
path: `/api/platform/v1/classifiers/belief-candidates${sdkQueryString({
|
|
8165
|
+
topicId: requireTopicOrProjectId(input),
|
|
8166
|
+
classifierKey: input.classifierKey,
|
|
8167
|
+
query: input.query,
|
|
8168
|
+
limit: input.limit,
|
|
8169
|
+
cursor: input.cursor
|
|
8170
|
+
})}`
|
|
8171
|
+
}).then(exposeGatewayData);
|
|
8172
|
+
}
|
|
8173
|
+
},
|
|
8174
|
+
archetypes: {
|
|
8175
|
+
getJudgmentSignature(input) {
|
|
8176
|
+
return gateway.request({
|
|
8177
|
+
path: `/api/platform/v1/archetypes/judgment-signature${sdkQueryString({
|
|
8178
|
+
topicId: requireTopicOrProjectId(input),
|
|
8179
|
+
principalId: input.principalId
|
|
8180
|
+
})}`
|
|
8181
|
+
}).then(exposeGatewayData);
|
|
8182
|
+
}
|
|
8183
|
+
},
|
|
8009
8184
|
judgments: {
|
|
8010
8185
|
create(input) {
|
|
8011
8186
|
return decisionsClient.createJudgment(input);
|
|
@@ -8047,6 +8222,52 @@ function createLucernClient(config = {}) {
|
|
|
8047
8222
|
});
|
|
8048
8223
|
}
|
|
8049
8224
|
},
|
|
8225
|
+
decisions: {
|
|
8226
|
+
create(input) {
|
|
8227
|
+
return decisionsClient.createJudgment(input);
|
|
8228
|
+
},
|
|
8229
|
+
record(input) {
|
|
8230
|
+
return decisionsClient.recordJudgment(input);
|
|
8231
|
+
},
|
|
8232
|
+
list(query5) {
|
|
8233
|
+
return decisionsClient.listJudgments(query5);
|
|
8234
|
+
},
|
|
8235
|
+
get(decisionId) {
|
|
8236
|
+
return decisionsClient.getJudgment(decisionId);
|
|
8237
|
+
},
|
|
8238
|
+
recordOutcome(decisionId, input) {
|
|
8239
|
+
return decisionsClient.recordJudgmentOutcome(decisionId, input);
|
|
8240
|
+
},
|
|
8241
|
+
lessons(decisionId, input, idempotencyKey) {
|
|
8242
|
+
return gateway.request({
|
|
8243
|
+
path: `/api/platform/v1/decisions/${encodeURIComponent(
|
|
8244
|
+
decisionId
|
|
8245
|
+
)}/lessons`,
|
|
8246
|
+
method: "POST",
|
|
8247
|
+
body: input,
|
|
8248
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
8249
|
+
}).then(exposeGatewayData);
|
|
8250
|
+
},
|
|
8251
|
+
archive(decisionId, input = {}, idempotencyKey) {
|
|
8252
|
+
return gateway.request({
|
|
8253
|
+
path: `/api/platform/v1/decisions/${encodeURIComponent(
|
|
8254
|
+
decisionId
|
|
8255
|
+
)}/archive`,
|
|
8256
|
+
method: "POST",
|
|
8257
|
+
body: input,
|
|
8258
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
8259
|
+
}).then(exposeGatewayData);
|
|
8260
|
+
},
|
|
8261
|
+
readiness(topicId) {
|
|
8262
|
+
return decisionsClient.getJudgmentReadiness({ topicId });
|
|
8263
|
+
},
|
|
8264
|
+
calibration(topicId) {
|
|
8265
|
+
return decisionsClient.getJudgmentCalibration({ topicId });
|
|
8266
|
+
},
|
|
8267
|
+
pendingOutcomeReview(topicId) {
|
|
8268
|
+
return decisionsClient.listPendingJudgmentOutcomeReview({ topicId });
|
|
8269
|
+
}
|
|
8270
|
+
},
|
|
8050
8271
|
worktrees: {
|
|
8051
8272
|
createBranch(input) {
|
|
8052
8273
|
return workflowClient.createBranch(input);
|
|
@@ -8069,7 +8290,21 @@ function createLucernClient(config = {}) {
|
|
|
8069
8290
|
topicId: requireTopicId4(input),
|
|
8070
8291
|
objective: input.objective,
|
|
8071
8292
|
hypothesis: input.hypothesis,
|
|
8293
|
+
rationale: input.rationale,
|
|
8294
|
+
worktreeType: input.worktreeType,
|
|
8295
|
+
startDate: input.startDate,
|
|
8296
|
+
endDate: input.endDate,
|
|
8297
|
+
durationWeeks: input.durationWeeks,
|
|
8298
|
+
confidenceImpact: input.confidenceImpact,
|
|
8299
|
+
beliefFocus: input.beliefFocus,
|
|
8072
8300
|
beliefIds: input.beliefIds,
|
|
8301
|
+
targetBeliefIds: input.targetBeliefIds,
|
|
8302
|
+
targetQuestionIds: input.targetQuestionIds,
|
|
8303
|
+
keyQuestions: input.keyQuestions,
|
|
8304
|
+
evidenceSignals: input.evidenceSignals,
|
|
8305
|
+
decisionGate: input.decisionGate,
|
|
8306
|
+
goCriteria: input.goCriteria,
|
|
8307
|
+
noGoSignals: input.noGoSignals,
|
|
8073
8308
|
autoShape: input.autoShape,
|
|
8074
8309
|
domainPackId: input.domainPackId,
|
|
8075
8310
|
campaign: input.campaign,
|
|
@@ -8082,7 +8317,8 @@ function createLucernClient(config = {}) {
|
|
|
8082
8317
|
proofArtifacts: input.proofArtifacts,
|
|
8083
8318
|
staffingHint: typeof input.staffingHint === "string" ? input.staffingHint : void 0,
|
|
8084
8319
|
lastReconciledAt: input.lastReconciledAt,
|
|
8085
|
-
autoFixPolicy: input.autoFixPolicy
|
|
8320
|
+
autoFixPolicy: input.autoFixPolicy,
|
|
8321
|
+
lensId: input.lensId
|
|
8086
8322
|
});
|
|
8087
8323
|
},
|
|
8088
8324
|
add(input) {
|
|
@@ -8091,7 +8327,21 @@ function createLucernClient(config = {}) {
|
|
|
8091
8327
|
topicId: requireTopicId4(input),
|
|
8092
8328
|
objective: input.objective,
|
|
8093
8329
|
hypothesis: input.hypothesis,
|
|
8330
|
+
rationale: input.rationale,
|
|
8331
|
+
worktreeType: input.worktreeType,
|
|
8332
|
+
startDate: input.startDate,
|
|
8333
|
+
endDate: input.endDate,
|
|
8334
|
+
durationWeeks: input.durationWeeks,
|
|
8335
|
+
confidenceImpact: input.confidenceImpact,
|
|
8336
|
+
beliefFocus: input.beliefFocus,
|
|
8094
8337
|
beliefIds: input.beliefIds,
|
|
8338
|
+
targetBeliefIds: input.targetBeliefIds,
|
|
8339
|
+
targetQuestionIds: input.targetQuestionIds,
|
|
8340
|
+
keyQuestions: input.keyQuestions,
|
|
8341
|
+
evidenceSignals: input.evidenceSignals,
|
|
8342
|
+
decisionGate: input.decisionGate,
|
|
8343
|
+
goCriteria: input.goCriteria,
|
|
8344
|
+
noGoSignals: input.noGoSignals,
|
|
8095
8345
|
autoShape: input.autoShape,
|
|
8096
8346
|
domainPackId: input.domainPackId,
|
|
8097
8347
|
campaign: input.campaign,
|
|
@@ -8104,7 +8354,8 @@ function createLucernClient(config = {}) {
|
|
|
8104
8354
|
proofArtifacts: input.proofArtifacts,
|
|
8105
8355
|
staffingHint: typeof input.staffingHint === "string" ? input.staffingHint : void 0,
|
|
8106
8356
|
lastReconciledAt: input.lastReconciledAt,
|
|
8107
|
-
autoFixPolicy: input.autoFixPolicy
|
|
8357
|
+
autoFixPolicy: input.autoFixPolicy,
|
|
8358
|
+
lensId: input.lensId
|
|
8108
8359
|
});
|
|
8109
8360
|
},
|
|
8110
8361
|
list(query5) {
|
|
@@ -8114,6 +8365,22 @@ function createLucernClient(config = {}) {
|
|
|
8114
8365
|
limit: query5.limit
|
|
8115
8366
|
});
|
|
8116
8367
|
},
|
|
8368
|
+
listByTopic(query5) {
|
|
8369
|
+
return worktreesFacade.list({
|
|
8370
|
+
topicId: requireTopicId4(query5),
|
|
8371
|
+
status: query5.status,
|
|
8372
|
+
limit: query5.limit
|
|
8373
|
+
});
|
|
8374
|
+
},
|
|
8375
|
+
findByPairedSprint(input) {
|
|
8376
|
+
return gateway.request({
|
|
8377
|
+
path: `/api/platform/v1/worktrees/paired-sprint${sdkQueryString({
|
|
8378
|
+
sprintId: input.sprintId,
|
|
8379
|
+
topicId: input.topicId ?? input.projectId,
|
|
8380
|
+
limit: input.limit
|
|
8381
|
+
})}`
|
|
8382
|
+
}).then(exposeGatewayData);
|
|
8383
|
+
},
|
|
8117
8384
|
activate(worktreeId) {
|
|
8118
8385
|
return worktreesFacade.activate({ id: worktreeId });
|
|
8119
8386
|
},
|
|
@@ -8265,6 +8532,31 @@ function createLucernClient(config = {}) {
|
|
|
8265
8532
|
status: typeof input.status === "string" ? input.status : void 0,
|
|
8266
8533
|
limit: typeof input.limit === "number" ? input.limit : void 0
|
|
8267
8534
|
});
|
|
8535
|
+
},
|
|
8536
|
+
listByTopic(input) {
|
|
8537
|
+
return tasksFacade.list({
|
|
8538
|
+
topicId: requireTopicId4(input),
|
|
8539
|
+
status: typeof input.status === "string" ? input.status : void 0,
|
|
8540
|
+
limit: typeof input.limit === "number" ? input.limit : void 0
|
|
8541
|
+
});
|
|
8542
|
+
},
|
|
8543
|
+
listByWorktree(input) {
|
|
8544
|
+
return tasksFacade.list({
|
|
8545
|
+
topicId: typeof input.topicId === "string" ? input.topicId : void 0,
|
|
8546
|
+
worktreeId: input.worktreeId,
|
|
8547
|
+
status: typeof input.status === "string" ? input.status : void 0,
|
|
8548
|
+
limit: typeof input.limit === "number" ? input.limit : void 0
|
|
8549
|
+
});
|
|
8550
|
+
},
|
|
8551
|
+
linkChat(taskId, input, idempotencyKey) {
|
|
8552
|
+
return gateway.request({
|
|
8553
|
+
path: `/api/platform/v1/tasks/${encodeURIComponent(
|
|
8554
|
+
taskId
|
|
8555
|
+
)}/link-chat`,
|
|
8556
|
+
method: "POST",
|
|
8557
|
+
body: input,
|
|
8558
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
8559
|
+
}).then(exposeGatewayData);
|
|
8268
8560
|
}
|
|
8269
8561
|
},
|
|
8270
8562
|
topics: {
|
|
@@ -8549,11 +8841,13 @@ function createLucernClient(config = {}) {
|
|
|
8549
8841
|
graphAnalysis: graphAnalysisClient,
|
|
8550
8842
|
graphRecommendations: graphRecommendationsClient,
|
|
8551
8843
|
orgGraphSearch: orgGraphSearchClient,
|
|
8552
|
-
ontologyLinks:
|
|
8844
|
+
ontologyLinks: ontologyLinksNamespace,
|
|
8553
8845
|
graphStateClassifier: graphStateClassifierClient,
|
|
8554
8846
|
modelRuntime: modelRuntimeClient,
|
|
8555
8847
|
jobs: jobsClient,
|
|
8556
8848
|
telemetry: telemetryClient,
|
|
8849
|
+
publication: publicationNamespace,
|
|
8850
|
+
contentPublication: publicationNamespace,
|
|
8557
8851
|
tools: {
|
|
8558
8852
|
listCatalog: toolRegistryClient.listCatalog,
|
|
8559
8853
|
listExecutable: toolRegistryClient.listExecutable,
|