@kortexya/reasoninglayer 0.15.2 → 0.17.0

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/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  // src/config.ts
4
- var SDK_VERSION = "0.15.2";
4
+ var SDK_VERSION = "0.17.0";
5
5
  function resolveConfig(config) {
6
6
  if (!config.baseUrl) {
7
7
  throw new Error("ClientConfig.baseUrl is required");
@@ -4022,6 +4022,24 @@ var Causal = class {
4022
4022
  format: "json",
4023
4023
  ...params
4024
4024
  });
4025
+ /**
4026
+ * @description This endpoint validates whether a DiD design is theoretically sound given the known causal structure and unobserved confounding. It uses the Transformed SWIG (Delta-SWIG) framework from Knaus & Pfleiderer (2026).
4027
+ *
4028
+ * @tags causal
4029
+ * @name ValidateDid
4030
+ * @summary Validate a Difference-in-Differences (DiD) design
4031
+ * @request POST:/api/v1/causal/validate-did
4032
+ * @secure
4033
+ */
4034
+ validateDid = (data, params = {}) => this.http.request({
4035
+ path: `/api/v1/causal/validate-did`,
4036
+ method: "POST",
4037
+ body: data,
4038
+ secure: true,
4039
+ type: "application/json" /* Json */,
4040
+ format: "json",
4041
+ ...params
4042
+ });
4025
4043
  };
4026
4044
 
4027
4045
  // src/api-spec/generated/Reviews.ts
@@ -5093,6 +5111,42 @@ var Query = class {
5093
5111
  format: "json",
5094
5112
  ...params
5095
5113
  });
5114
+ /**
5115
+ * @description Skips the NL → structured-problem LLM hop entirely. Caller must have seeded the tenant KB with ≥ 3 successful + ≥ 2 limited Ψ-terms per domain (`/api/v1/terms/bulk` or `/api/v1/inference/facts/bulk`). Returns the same `NlQueryResponse` shape as the NL route so the UI can render either output uniformly.
5116
+ *
5117
+ * @tags query
5118
+ * @name TrizInvent
5119
+ * @summary Handle `POST /api/v1/triz/invent` — deterministic TRIZ invention.
5120
+ * @request POST:/api/v1/triz/invent
5121
+ * @secure
5122
+ */
5123
+ trizInvent = (data, params = {}) => this.http.request({
5124
+ path: `/api/v1/triz/invent`,
5125
+ method: "POST",
5126
+ body: data,
5127
+ secure: true,
5128
+ type: "application/json" /* Json */,
5129
+ format: "json",
5130
+ ...params
5131
+ });
5132
+ /**
5133
+ * No description
5134
+ *
5135
+ * @tags query
5136
+ * @name TrizRecordOutcome
5137
+ * @summary Handle `POST /api/v1/triz/record-outcome` — persist a measured outcome for a previously-emitted TRIZ proposal and learn from it.
5138
+ * @request POST:/api/v1/triz/record-outcome
5139
+ * @secure
5140
+ */
5141
+ trizRecordOutcome = (data, params = {}) => this.http.request({
5142
+ path: `/api/v1/triz/record-outcome`,
5143
+ method: "POST",
5144
+ body: data,
5145
+ secure: true,
5146
+ type: "application/json" /* Json */,
5147
+ format: "json",
5148
+ ...params
5149
+ });
5096
5150
  /**
5097
5151
  * @description This performs unification AND validates the result against the GLB sort's witnesses. ## How It Differs from Regular Unification **Regular `/api/v1/term-store/sessions/:id/unify` (POST)**: - Computes GLB and unifies terms - Validates sort constraints (required features, type hints) - Does NOT check witnesses **This endpoint `/api/v1/query/validated-unify` (POST)**: - Computes GLB and unifies terms - Validates sort constraints - ALSO checks witnesses on the result - Returns proof of validity ## Example Unifying `person(name => "Alice")` with `grandparent(grandchild => "Charlie")`: 1. Computes GLB of person and grandparent 2. Creates unified term with both features 3. Checks grandparent witnesses: ∃Y. parent(Alice,Y) ∧ parent(Y,Charlie) 4. Returns unified term + witness proof
5098
5152
  *
@@ -17038,7 +17092,7 @@ function FormalJudgeRequestFromFrontToApi(model) {
17038
17092
  final_output: model.finalOutput,
17039
17093
  execution_log: model.executionLog,
17040
17094
  config: model.config ? JudgeConfigDtoFromFrontToApi(model.config) : void 0,
17041
- use_osfkb_engine: model.useOsfkbEngine
17095
+ risk_categories: model.riskCategories
17042
17096
  };
17043
17097
  }
17044
17098
  function LayerResultDtoFromApiToFront(dto) {