@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.
Files changed (122) hide show
  1. package/dist/adminClient.js +4 -3
  2. package/dist/adminClient.js.map +1 -1
  3. package/dist/answersClient.js +4 -3
  4. package/dist/answersClient.js.map +1 -1
  5. package/dist/audiencesClient.js +4 -3
  6. package/dist/audiencesClient.js.map +1 -1
  7. package/dist/auditClient.js +4 -3
  8. package/dist/auditClient.js.map +1 -1
  9. package/dist/authContext.js +4 -3
  10. package/dist/authContext.js.map +1 -1
  11. package/dist/beliefs/index.d.ts +1 -1
  12. package/dist/beliefs/index.js +301 -7
  13. package/dist/beliefs/index.js.map +1 -1
  14. package/dist/beliefsClient.js +4 -3
  15. package/dist/beliefsClient.js.map +1 -1
  16. package/dist/{client-EiG9nJOY.d.ts → client-DOLqClbU.d.ts} +183 -3
  17. package/dist/client.d.ts +1 -1
  18. package/dist/client.js +301 -7
  19. package/dist/client.js.map +1 -1
  20. package/dist/contextClient.js +4 -3
  21. package/dist/contextClient.js.map +1 -1
  22. package/dist/contracts/api-enums.contract.d.ts +1 -1
  23. package/dist/contracts/api-enums.contract.js.map +1 -1
  24. package/dist/contracts/index.js.map +1 -1
  25. package/dist/contradictions/index.d.ts +1 -1
  26. package/dist/contradictions/index.js +301 -7
  27. package/dist/contradictions/index.js.map +1 -1
  28. package/dist/coreClient.js +4 -3
  29. package/dist/coreClient.js.map +1 -1
  30. package/dist/decisions/index.d.ts +1 -1
  31. package/dist/decisions/index.js +301 -7
  32. package/dist/decisions/index.js.map +1 -1
  33. package/dist/decisionsClient.js +4 -3
  34. package/dist/decisionsClient.js.map +1 -1
  35. package/dist/edges/index.d.ts +1 -1
  36. package/dist/edges/index.js +301 -7
  37. package/dist/edges/index.js.map +1 -1
  38. package/dist/embeddingsClient.js +4 -3
  39. package/dist/embeddingsClient.js.map +1 -1
  40. package/dist/eventingClient.js +4 -3
  41. package/dist/eventingClient.js.map +1 -1
  42. package/dist/eventsCore.js +4 -3
  43. package/dist/eventsCore.js.map +1 -1
  44. package/dist/evidence/index.d.ts +1 -1
  45. package/dist/evidence/index.js +301 -7
  46. package/dist/evidence/index.js.map +1 -1
  47. package/dist/evidenceClient.js +4 -3
  48. package/dist/evidenceClient.js.map +1 -1
  49. package/dist/gatewayFacades.d.ts +34 -1
  50. package/dist/gatewayFacades.js +4 -3
  51. package/dist/gatewayFacades.js.map +1 -1
  52. package/dist/graphAnalysisClient.d.ts +7 -0
  53. package/dist/graphAnalysisClient.js +7 -4
  54. package/dist/graphAnalysisClient.js.map +1 -1
  55. package/dist/graphClient.js +4 -3
  56. package/dist/graphClient.js.map +1 -1
  57. package/dist/graphRecommendationsClient.js +4 -3
  58. package/dist/graphRecommendationsClient.js.map +1 -1
  59. package/dist/graphStateClassifierClient.js +4 -3
  60. package/dist/graphStateClassifierClient.js.map +1 -1
  61. package/dist/harnessClient.js +4 -3
  62. package/dist/harnessClient.js.map +1 -1
  63. package/dist/identityClient.js +4 -3
  64. package/dist/identityClient.js.map +1 -1
  65. package/dist/index.d.ts +4 -2
  66. package/dist/index.js +593 -8
  67. package/dist/index.js.map +1 -1
  68. package/dist/infisicalRuntime.d.ts +42 -0
  69. package/dist/infisicalRuntime.js +291 -0
  70. package/dist/infisicalRuntime.js.map +1 -0
  71. package/dist/jobsClient.js +4 -3
  72. package/dist/jobsClient.js.map +1 -1
  73. package/dist/learningClient.js +4 -3
  74. package/dist/learningClient.js.map +1 -1
  75. package/dist/lenses/index.d.ts +25 -1
  76. package/dist/lenses/index.js +301 -7
  77. package/dist/lenses/index.js.map +1 -1
  78. package/dist/mcpClient.js +4 -3
  79. package/dist/mcpClient.js.map +1 -1
  80. package/dist/modelRuntimeClient.js +4 -3
  81. package/dist/modelRuntimeClient.js.map +1 -1
  82. package/dist/nodes/index.d.ts +19 -1
  83. package/dist/nodes/index.js +301 -7
  84. package/dist/nodes/index.js.map +1 -1
  85. package/dist/ontologies/index.d.ts +1 -1
  86. package/dist/ontologies/index.js +301 -7
  87. package/dist/ontologies/index.js.map +1 -1
  88. package/dist/ontologyClient.js +4 -3
  89. package/dist/ontologyClient.js.map +1 -1
  90. package/dist/ontologyLinksClient.js +4 -3
  91. package/dist/ontologyLinksClient.js.map +1 -1
  92. package/dist/orgGraphSearchClient.js +4 -3
  93. package/dist/orgGraphSearchClient.js.map +1 -1
  94. package/dist/packsClient.js +4 -3
  95. package/dist/packsClient.js.map +1 -1
  96. package/dist/policyClient.js +4 -3
  97. package/dist/policyClient.js.map +1 -1
  98. package/dist/questions/index.d.ts +1 -1
  99. package/dist/questions/index.js +301 -7
  100. package/dist/questions/index.js.map +1 -1
  101. package/dist/reportsClient.js +4 -3
  102. package/dist/reportsClient.js.map +1 -1
  103. package/dist/schemaClient.js +4 -3
  104. package/dist/schemaClient.js.map +1 -1
  105. package/dist/sourcesClient.js +4 -3
  106. package/dist/sourcesClient.js.map +1 -1
  107. package/dist/telemetryClient.js +4 -3
  108. package/dist/telemetryClient.js.map +1 -1
  109. package/dist/toolRegistryClient.js +4 -3
  110. package/dist/toolRegistryClient.js.map +1 -1
  111. package/dist/topics/index.d.ts +1 -1
  112. package/dist/topics/index.js +301 -7
  113. package/dist/topics/index.js.map +1 -1
  114. package/dist/topicsClient.js +4 -3
  115. package/dist/topicsClient.js.map +1 -1
  116. package/dist/workflowClient.d.ts +41 -7
  117. package/dist/workflowClient.js +4 -3
  118. package/dist/workflowClient.js.map +1 -1
  119. package/dist/worktrees/index.d.ts +25 -1
  120. package/dist/worktrees/index.js +301 -7
  121. package/dist/worktrees/index.js.map +1 -1
  122. 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
- if (roles.length === 0 || scopes.length === 0) {
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
- since: input.since,
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: ontologyLinksClient,
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,