@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/worktrees/index.js
CHANGED
|
@@ -91,14 +91,15 @@ function normalizeCanonicalLucernAuthContext(input) {
|
|
|
91
91
|
);
|
|
92
92
|
const roles = cleanStringList(input.roles);
|
|
93
93
|
const scopes = cleanStringList(input.scopes);
|
|
94
|
-
|
|
94
|
+
const principalType = requirePrincipalType(input.principalType);
|
|
95
|
+
const authMode = requireAuthMode(input.authMode);
|
|
96
|
+
const roleBasedInteractiveAuth = authMode === "interactive_user" && roles.length > 0;
|
|
97
|
+
if (roles.length === 0 || scopes.length === 0 && !roleBasedInteractiveAuth) {
|
|
95
98
|
throw new LucernSdkAuthContextError(
|
|
96
99
|
"membership_missing",
|
|
97
100
|
"Canonical Lucern SDK auth context requires non-empty roles and scopes."
|
|
98
101
|
);
|
|
99
102
|
}
|
|
100
|
-
const principalType = requirePrincipalType(input.principalType);
|
|
101
|
-
const authMode = requireAuthMode(input.authMode);
|
|
102
103
|
const subject = cleanString(input.permit?.subject) ?? principalId;
|
|
103
104
|
const tenant = cleanString(input.permit?.tenant) ?? tenantId;
|
|
104
105
|
const workspace = cleanString(input.permit?.workspace) ?? workspaceId;
|
|
@@ -4205,7 +4206,9 @@ function createGraphAnalysisClient(config = {}) {
|
|
|
4205
4206
|
topicId: requireTopicId2(input),
|
|
4206
4207
|
workspaceId: input.workspaceId,
|
|
4207
4208
|
analysisId: input.analysisId,
|
|
4208
|
-
|
|
4209
|
+
minimumCreatedAt: input.minimumCreatedAt ?? input.since ?? input.createdAt ?? input.analysisCreatedAt,
|
|
4210
|
+
sourceNodeIds: input.sourceNodeIds?.join(",") ?? (input.nodeId ? input.nodeId : void 0),
|
|
4211
|
+
sourceEdgeIds: input.sourceEdgeIds?.join(",") ?? (input.edgeId ? input.edgeId : void 0),
|
|
4209
4212
|
limit: input.limit,
|
|
4210
4213
|
cursor: input.cursor
|
|
4211
4214
|
})}`
|
|
@@ -4961,6 +4964,7 @@ var CONTRACTS = {
|
|
|
4961
4964
|
"archive_belief": { method: "DELETE", path: "/beliefs", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
4962
4965
|
"archive_ontology": { method: "DELETE", path: "/ontologies", kind: "mutation", idempotent: true, surfaceIntent: "mcp_governance" },
|
|
4963
4966
|
"archive_question": { method: "DELETE", path: "/questions", kind: "mutation", idempotent: true, surfaceIntent: "mcp_core" },
|
|
4967
|
+
"begin_build_session": { method: "POST", path: "/mcp/build-session/begin", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
4964
4968
|
"bisect_confidence": { method: "POST", path: "/beliefs/confidence/bisect", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
4965
4969
|
"broadcast_message": { method: "POST", path: "/coordination/messages/broadcast", kind: "mutation", idempotent: true, surfaceIntent: "system" },
|
|
4966
4970
|
"check_permission": { method: "POST", path: "/identity/check-permission", kind: "query", idempotent: false, surfaceIntent: "mcp_core" },
|
|
@@ -5132,6 +5136,9 @@ function createFunctionSurfaceClient(config = {}) {
|
|
|
5132
5136
|
archiveQuestion(input = {}, idempotencyKey) {
|
|
5133
5137
|
return execute("archive_question", input, idempotencyKey);
|
|
5134
5138
|
},
|
|
5139
|
+
beginBuildSession(input = {}, idempotencyKey) {
|
|
5140
|
+
return execute("begin_build_session", input, idempotencyKey);
|
|
5141
|
+
},
|
|
5135
5142
|
bisectConfidence(input = {}, idempotencyKey) {
|
|
5136
5143
|
return execute("bisect_confidence", input, idempotencyKey);
|
|
5137
5144
|
},
|
|
@@ -7066,6 +7073,13 @@ function requireTopicId4(args) {
|
|
|
7066
7073
|
}
|
|
7067
7074
|
return topicId;
|
|
7068
7075
|
}
|
|
7076
|
+
function requireTopicOrProjectId(args) {
|
|
7077
|
+
const topicId = args.topicId?.trim() || args.projectId?.trim() || void 0;
|
|
7078
|
+
if (!topicId) {
|
|
7079
|
+
throw new Error("topicId is required");
|
|
7080
|
+
}
|
|
7081
|
+
return topicId;
|
|
7082
|
+
}
|
|
7069
7083
|
var AUDIT_NODE_REFERENCE_KEY_PATTERN = /(^|_)(id|nodeid|beliefid|resourceid|targetid|sourceid|subjectid|globalid|entityid|recordid|fromnodeid|tonodeid|linkednodeid|linkedbeliefid|nodeids|beliefids|resourceids)$/i;
|
|
7070
7084
|
function matchesAuditNodeReference(value, nodeId) {
|
|
7071
7085
|
if (Array.isArray(value)) {
|
|
@@ -7101,6 +7115,23 @@ function requireBaseRate(args) {
|
|
|
7101
7115
|
function exposeGatewayData(response) {
|
|
7102
7116
|
return Object.assign({}, response, response.data);
|
|
7103
7117
|
}
|
|
7118
|
+
function sdkQueryString(input) {
|
|
7119
|
+
const params = new URLSearchParams();
|
|
7120
|
+
for (const [key, value] of Object.entries(input)) {
|
|
7121
|
+
if (value === void 0 || value === null) {
|
|
7122
|
+
continue;
|
|
7123
|
+
}
|
|
7124
|
+
if (Array.isArray(value)) {
|
|
7125
|
+
if (value.length > 0) {
|
|
7126
|
+
params.set(key, value.join(","));
|
|
7127
|
+
}
|
|
7128
|
+
continue;
|
|
7129
|
+
}
|
|
7130
|
+
params.set(key, String(value));
|
|
7131
|
+
}
|
|
7132
|
+
const serialized = params.toString();
|
|
7133
|
+
return serialized ? `?${serialized}` : "";
|
|
7134
|
+
}
|
|
7104
7135
|
function createLucernClient(config = {}) {
|
|
7105
7136
|
const gatewayConfig = toGatewayConfig(config);
|
|
7106
7137
|
const beliefsClient = createBeliefsClient(gatewayConfig);
|
|
@@ -7521,6 +7552,30 @@ function createLucernClient(config = {}) {
|
|
|
7521
7552
|
batchCreate(input, idempotencyKey) {
|
|
7522
7553
|
return graphClient.batchCreateNodes(input, idempotencyKey);
|
|
7523
7554
|
},
|
|
7555
|
+
listByTopicAndType(input) {
|
|
7556
|
+
return gateway.request({
|
|
7557
|
+
path: `/api/platform/v1/nodes${sdkQueryString({
|
|
7558
|
+
topicId: requireTopicOrProjectId(input),
|
|
7559
|
+
nodeType: input.nodeType,
|
|
7560
|
+
nodeTypes: input.nodeTypes,
|
|
7561
|
+
query: input.query,
|
|
7562
|
+
sourceText: input.sourceText,
|
|
7563
|
+
limit: input.limit,
|
|
7564
|
+
cursor: input.cursor
|
|
7565
|
+
})}`
|
|
7566
|
+
}).then(exposeGatewayData);
|
|
7567
|
+
},
|
|
7568
|
+
countByTopicAndType(input) {
|
|
7569
|
+
return gateway.request({
|
|
7570
|
+
path: `/api/platform/v1/nodes/count${sdkQueryString({
|
|
7571
|
+
topicId: requireTopicOrProjectId(input),
|
|
7572
|
+
nodeType: input.nodeType,
|
|
7573
|
+
nodeTypes: input.nodeTypes,
|
|
7574
|
+
query: input.query,
|
|
7575
|
+
limit: input.limit
|
|
7576
|
+
})}`
|
|
7577
|
+
}).then(exposeGatewayData);
|
|
7578
|
+
},
|
|
7524
7579
|
supersede(input, idempotencyKey) {
|
|
7525
7580
|
return graphClient.supersedeNode(input, idempotencyKey);
|
|
7526
7581
|
},
|
|
@@ -7531,6 +7586,78 @@ function createLucernClient(config = {}) {
|
|
|
7531
7586
|
return graphClient.hardDeleteNode(input, idempotencyKey);
|
|
7532
7587
|
}
|
|
7533
7588
|
};
|
|
7589
|
+
const publicationNamespace = {
|
|
7590
|
+
create(input, idempotencyKey) {
|
|
7591
|
+
return gateway.request({
|
|
7592
|
+
path: "/api/platform/v1/publication",
|
|
7593
|
+
method: "POST",
|
|
7594
|
+
body: input,
|
|
7595
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7596
|
+
}).then(exposeGatewayData);
|
|
7597
|
+
},
|
|
7598
|
+
update(publicationId, input, idempotencyKey) {
|
|
7599
|
+
return gateway.request({
|
|
7600
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7601
|
+
publicationId
|
|
7602
|
+
)}`,
|
|
7603
|
+
method: "PATCH",
|
|
7604
|
+
body: input,
|
|
7605
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7606
|
+
}).then(exposeGatewayData);
|
|
7607
|
+
},
|
|
7608
|
+
list(input = {}) {
|
|
7609
|
+
return gateway.request({
|
|
7610
|
+
path: `/api/platform/v1/publication${sdkQueryString(input)}`
|
|
7611
|
+
}).then(exposeGatewayData);
|
|
7612
|
+
},
|
|
7613
|
+
getByTopic(input) {
|
|
7614
|
+
const topicId = typeof input === "string" ? input : input.topicId;
|
|
7615
|
+
const workspaceId = typeof input === "string" ? void 0 : input.workspaceId;
|
|
7616
|
+
return gateway.request({
|
|
7617
|
+
path: `/api/platform/v1/publication/by-topic/${encodeURIComponent(
|
|
7618
|
+
topicId
|
|
7619
|
+
)}${sdkQueryString({ workspaceId })}`
|
|
7620
|
+
}).then(exposeGatewayData);
|
|
7621
|
+
},
|
|
7622
|
+
publish(publicationId, input = {}, idempotencyKey) {
|
|
7623
|
+
return gateway.request({
|
|
7624
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7625
|
+
publicationId
|
|
7626
|
+
)}/publish`,
|
|
7627
|
+
method: "POST",
|
|
7628
|
+
body: input,
|
|
7629
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7630
|
+
}).then(exposeGatewayData);
|
|
7631
|
+
},
|
|
7632
|
+
unpublish(publicationId, input = {}, idempotencyKey) {
|
|
7633
|
+
return gateway.request({
|
|
7634
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7635
|
+
publicationId
|
|
7636
|
+
)}/unpublish`,
|
|
7637
|
+
method: "POST",
|
|
7638
|
+
body: input,
|
|
7639
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
7640
|
+
}).then(exposeGatewayData);
|
|
7641
|
+
},
|
|
7642
|
+
remove(publicationId, input = {}) {
|
|
7643
|
+
return gateway.request({
|
|
7644
|
+
path: `/api/platform/v1/publication/${encodeURIComponent(
|
|
7645
|
+
publicationId
|
|
7646
|
+
)}${sdkQueryString(input)}`,
|
|
7647
|
+
method: "DELETE"
|
|
7648
|
+
}).then(exposeGatewayData);
|
|
7649
|
+
}
|
|
7650
|
+
};
|
|
7651
|
+
const ontologyLinksNamespace = {
|
|
7652
|
+
...ontologyLinksClient,
|
|
7653
|
+
resolveThemeSource(input) {
|
|
7654
|
+
return gateway.request({
|
|
7655
|
+
path: "/api/platform/v1/ontology-links/theme-source",
|
|
7656
|
+
method: "POST",
|
|
7657
|
+
body: input
|
|
7658
|
+
}).then(exposeGatewayData);
|
|
7659
|
+
}
|
|
7660
|
+
};
|
|
7534
7661
|
return {
|
|
7535
7662
|
config,
|
|
7536
7663
|
version: LUCERN_SDK_VERSION,
|
|
@@ -8012,6 +8139,54 @@ function createLucernClient(config = {}) {
|
|
|
8012
8139
|
}));
|
|
8013
8140
|
}
|
|
8014
8141
|
},
|
|
8142
|
+
themes: {
|
|
8143
|
+
listByTopic(input) {
|
|
8144
|
+
return gateway.request({
|
|
8145
|
+
path: `/api/platform/v1/themes${sdkQueryString({
|
|
8146
|
+
topicId: requireTopicOrProjectId(input),
|
|
8147
|
+
query: input.query,
|
|
8148
|
+
limit: input.limit,
|
|
8149
|
+
cursor: input.cursor
|
|
8150
|
+
})}`
|
|
8151
|
+
}).then(exposeGatewayData);
|
|
8152
|
+
}
|
|
8153
|
+
},
|
|
8154
|
+
graphSearch: {
|
|
8155
|
+
keywordSearchNodes(input) {
|
|
8156
|
+
return gateway.request({
|
|
8157
|
+
path: "/api/platform/v1/graph-search/keyword-nodes",
|
|
8158
|
+
method: "POST",
|
|
8159
|
+
body: {
|
|
8160
|
+
...input,
|
|
8161
|
+
topicId: requireTopicOrProjectId(input),
|
|
8162
|
+
projectId: void 0
|
|
8163
|
+
}
|
|
8164
|
+
}).then(exposeGatewayData);
|
|
8165
|
+
}
|
|
8166
|
+
},
|
|
8167
|
+
classifiers: {
|
|
8168
|
+
listBeliefCandidates(input) {
|
|
8169
|
+
return gateway.request({
|
|
8170
|
+
path: `/api/platform/v1/classifiers/belief-candidates${sdkQueryString({
|
|
8171
|
+
topicId: requireTopicOrProjectId(input),
|
|
8172
|
+
classifierKey: input.classifierKey,
|
|
8173
|
+
query: input.query,
|
|
8174
|
+
limit: input.limit,
|
|
8175
|
+
cursor: input.cursor
|
|
8176
|
+
})}`
|
|
8177
|
+
}).then(exposeGatewayData);
|
|
8178
|
+
}
|
|
8179
|
+
},
|
|
8180
|
+
archetypes: {
|
|
8181
|
+
getJudgmentSignature(input) {
|
|
8182
|
+
return gateway.request({
|
|
8183
|
+
path: `/api/platform/v1/archetypes/judgment-signature${sdkQueryString({
|
|
8184
|
+
topicId: requireTopicOrProjectId(input),
|
|
8185
|
+
principalId: input.principalId
|
|
8186
|
+
})}`
|
|
8187
|
+
}).then(exposeGatewayData);
|
|
8188
|
+
}
|
|
8189
|
+
},
|
|
8015
8190
|
judgments: {
|
|
8016
8191
|
create(input) {
|
|
8017
8192
|
return decisionsClient.createJudgment(input);
|
|
@@ -8053,6 +8228,52 @@ function createLucernClient(config = {}) {
|
|
|
8053
8228
|
});
|
|
8054
8229
|
}
|
|
8055
8230
|
},
|
|
8231
|
+
decisions: {
|
|
8232
|
+
create(input) {
|
|
8233
|
+
return decisionsClient.createJudgment(input);
|
|
8234
|
+
},
|
|
8235
|
+
record(input) {
|
|
8236
|
+
return decisionsClient.recordJudgment(input);
|
|
8237
|
+
},
|
|
8238
|
+
list(query5) {
|
|
8239
|
+
return decisionsClient.listJudgments(query5);
|
|
8240
|
+
},
|
|
8241
|
+
get(decisionId) {
|
|
8242
|
+
return decisionsClient.getJudgment(decisionId);
|
|
8243
|
+
},
|
|
8244
|
+
recordOutcome(decisionId, input) {
|
|
8245
|
+
return decisionsClient.recordJudgmentOutcome(decisionId, input);
|
|
8246
|
+
},
|
|
8247
|
+
lessons(decisionId, input, idempotencyKey) {
|
|
8248
|
+
return gateway.request({
|
|
8249
|
+
path: `/api/platform/v1/decisions/${encodeURIComponent(
|
|
8250
|
+
decisionId
|
|
8251
|
+
)}/lessons`,
|
|
8252
|
+
method: "POST",
|
|
8253
|
+
body: input,
|
|
8254
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
8255
|
+
}).then(exposeGatewayData);
|
|
8256
|
+
},
|
|
8257
|
+
archive(decisionId, input = {}, idempotencyKey) {
|
|
8258
|
+
return gateway.request({
|
|
8259
|
+
path: `/api/platform/v1/decisions/${encodeURIComponent(
|
|
8260
|
+
decisionId
|
|
8261
|
+
)}/archive`,
|
|
8262
|
+
method: "POST",
|
|
8263
|
+
body: input,
|
|
8264
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
8265
|
+
}).then(exposeGatewayData);
|
|
8266
|
+
},
|
|
8267
|
+
readiness(topicId) {
|
|
8268
|
+
return decisionsClient.getJudgmentReadiness({ topicId });
|
|
8269
|
+
},
|
|
8270
|
+
calibration(topicId) {
|
|
8271
|
+
return decisionsClient.getJudgmentCalibration({ topicId });
|
|
8272
|
+
},
|
|
8273
|
+
pendingOutcomeReview(topicId) {
|
|
8274
|
+
return decisionsClient.listPendingJudgmentOutcomeReview({ topicId });
|
|
8275
|
+
}
|
|
8276
|
+
},
|
|
8056
8277
|
worktrees: {
|
|
8057
8278
|
createBranch(input) {
|
|
8058
8279
|
return workflowClient.createBranch(input);
|
|
@@ -8075,7 +8296,21 @@ function createLucernClient(config = {}) {
|
|
|
8075
8296
|
topicId: requireTopicId4(input),
|
|
8076
8297
|
objective: input.objective,
|
|
8077
8298
|
hypothesis: input.hypothesis,
|
|
8299
|
+
rationale: input.rationale,
|
|
8300
|
+
worktreeType: input.worktreeType,
|
|
8301
|
+
startDate: input.startDate,
|
|
8302
|
+
endDate: input.endDate,
|
|
8303
|
+
durationWeeks: input.durationWeeks,
|
|
8304
|
+
confidenceImpact: input.confidenceImpact,
|
|
8305
|
+
beliefFocus: input.beliefFocus,
|
|
8078
8306
|
beliefIds: input.beliefIds,
|
|
8307
|
+
targetBeliefIds: input.targetBeliefIds,
|
|
8308
|
+
targetQuestionIds: input.targetQuestionIds,
|
|
8309
|
+
keyQuestions: input.keyQuestions,
|
|
8310
|
+
evidenceSignals: input.evidenceSignals,
|
|
8311
|
+
decisionGate: input.decisionGate,
|
|
8312
|
+
goCriteria: input.goCriteria,
|
|
8313
|
+
noGoSignals: input.noGoSignals,
|
|
8079
8314
|
autoShape: input.autoShape,
|
|
8080
8315
|
domainPackId: input.domainPackId,
|
|
8081
8316
|
campaign: input.campaign,
|
|
@@ -8088,7 +8323,8 @@ function createLucernClient(config = {}) {
|
|
|
8088
8323
|
proofArtifacts: input.proofArtifacts,
|
|
8089
8324
|
staffingHint: typeof input.staffingHint === "string" ? input.staffingHint : void 0,
|
|
8090
8325
|
lastReconciledAt: input.lastReconciledAt,
|
|
8091
|
-
autoFixPolicy: input.autoFixPolicy
|
|
8326
|
+
autoFixPolicy: input.autoFixPolicy,
|
|
8327
|
+
lensId: input.lensId
|
|
8092
8328
|
});
|
|
8093
8329
|
},
|
|
8094
8330
|
add(input) {
|
|
@@ -8097,7 +8333,21 @@ function createLucernClient(config = {}) {
|
|
|
8097
8333
|
topicId: requireTopicId4(input),
|
|
8098
8334
|
objective: input.objective,
|
|
8099
8335
|
hypothesis: input.hypothesis,
|
|
8336
|
+
rationale: input.rationale,
|
|
8337
|
+
worktreeType: input.worktreeType,
|
|
8338
|
+
startDate: input.startDate,
|
|
8339
|
+
endDate: input.endDate,
|
|
8340
|
+
durationWeeks: input.durationWeeks,
|
|
8341
|
+
confidenceImpact: input.confidenceImpact,
|
|
8342
|
+
beliefFocus: input.beliefFocus,
|
|
8100
8343
|
beliefIds: input.beliefIds,
|
|
8344
|
+
targetBeliefIds: input.targetBeliefIds,
|
|
8345
|
+
targetQuestionIds: input.targetQuestionIds,
|
|
8346
|
+
keyQuestions: input.keyQuestions,
|
|
8347
|
+
evidenceSignals: input.evidenceSignals,
|
|
8348
|
+
decisionGate: input.decisionGate,
|
|
8349
|
+
goCriteria: input.goCriteria,
|
|
8350
|
+
noGoSignals: input.noGoSignals,
|
|
8101
8351
|
autoShape: input.autoShape,
|
|
8102
8352
|
domainPackId: input.domainPackId,
|
|
8103
8353
|
campaign: input.campaign,
|
|
@@ -8110,7 +8360,8 @@ function createLucernClient(config = {}) {
|
|
|
8110
8360
|
proofArtifacts: input.proofArtifacts,
|
|
8111
8361
|
staffingHint: typeof input.staffingHint === "string" ? input.staffingHint : void 0,
|
|
8112
8362
|
lastReconciledAt: input.lastReconciledAt,
|
|
8113
|
-
autoFixPolicy: input.autoFixPolicy
|
|
8363
|
+
autoFixPolicy: input.autoFixPolicy,
|
|
8364
|
+
lensId: input.lensId
|
|
8114
8365
|
});
|
|
8115
8366
|
},
|
|
8116
8367
|
list(query5) {
|
|
@@ -8120,6 +8371,22 @@ function createLucernClient(config = {}) {
|
|
|
8120
8371
|
limit: query5.limit
|
|
8121
8372
|
});
|
|
8122
8373
|
},
|
|
8374
|
+
listByTopic(query5) {
|
|
8375
|
+
return worktreesFacade.list({
|
|
8376
|
+
topicId: requireTopicId4(query5),
|
|
8377
|
+
status: query5.status,
|
|
8378
|
+
limit: query5.limit
|
|
8379
|
+
});
|
|
8380
|
+
},
|
|
8381
|
+
findByPairedSprint(input) {
|
|
8382
|
+
return gateway.request({
|
|
8383
|
+
path: `/api/platform/v1/worktrees/paired-sprint${sdkQueryString({
|
|
8384
|
+
sprintId: input.sprintId,
|
|
8385
|
+
topicId: input.topicId ?? input.projectId,
|
|
8386
|
+
limit: input.limit
|
|
8387
|
+
})}`
|
|
8388
|
+
}).then(exposeGatewayData);
|
|
8389
|
+
},
|
|
8123
8390
|
activate(worktreeId) {
|
|
8124
8391
|
return worktreesFacade.activate({ id: worktreeId });
|
|
8125
8392
|
},
|
|
@@ -8271,6 +8538,31 @@ function createLucernClient(config = {}) {
|
|
|
8271
8538
|
status: typeof input.status === "string" ? input.status : void 0,
|
|
8272
8539
|
limit: typeof input.limit === "number" ? input.limit : void 0
|
|
8273
8540
|
});
|
|
8541
|
+
},
|
|
8542
|
+
listByTopic(input) {
|
|
8543
|
+
return tasksFacade.list({
|
|
8544
|
+
topicId: requireTopicId4(input),
|
|
8545
|
+
status: typeof input.status === "string" ? input.status : void 0,
|
|
8546
|
+
limit: typeof input.limit === "number" ? input.limit : void 0
|
|
8547
|
+
});
|
|
8548
|
+
},
|
|
8549
|
+
listByWorktree(input) {
|
|
8550
|
+
return tasksFacade.list({
|
|
8551
|
+
topicId: typeof input.topicId === "string" ? input.topicId : void 0,
|
|
8552
|
+
worktreeId: input.worktreeId,
|
|
8553
|
+
status: typeof input.status === "string" ? input.status : void 0,
|
|
8554
|
+
limit: typeof input.limit === "number" ? input.limit : void 0
|
|
8555
|
+
});
|
|
8556
|
+
},
|
|
8557
|
+
linkChat(taskId, input, idempotencyKey) {
|
|
8558
|
+
return gateway.request({
|
|
8559
|
+
path: `/api/platform/v1/tasks/${encodeURIComponent(
|
|
8560
|
+
taskId
|
|
8561
|
+
)}/link-chat`,
|
|
8562
|
+
method: "POST",
|
|
8563
|
+
body: input,
|
|
8564
|
+
idempotencyKey: idempotencyKey ?? randomIdempotencyKey()
|
|
8565
|
+
}).then(exposeGatewayData);
|
|
8274
8566
|
}
|
|
8275
8567
|
},
|
|
8276
8568
|
topics: {
|
|
@@ -8555,11 +8847,13 @@ function createLucernClient(config = {}) {
|
|
|
8555
8847
|
graphAnalysis: graphAnalysisClient,
|
|
8556
8848
|
graphRecommendations: graphRecommendationsClient,
|
|
8557
8849
|
orgGraphSearch: orgGraphSearchClient,
|
|
8558
|
-
ontologyLinks:
|
|
8850
|
+
ontologyLinks: ontologyLinksNamespace,
|
|
8559
8851
|
graphStateClassifier: graphStateClassifierClient,
|
|
8560
8852
|
modelRuntime: modelRuntimeClient,
|
|
8561
8853
|
jobs: jobsClient,
|
|
8562
8854
|
telemetry: telemetryClient,
|
|
8855
|
+
publication: publicationNamespace,
|
|
8856
|
+
contentPublication: publicationNamespace,
|
|
8563
8857
|
tools: {
|
|
8564
8858
|
listCatalog: toolRegistryClient.listCatalog,
|
|
8565
8859
|
listExecutable: toolRegistryClient.listExecutable,
|