@kortexya/reasoninglayer 1.21.0 → 1.22.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
@@ -7,7 +7,7 @@ var __export = (target, all) => {
7
7
  };
8
8
 
9
9
  // src/config.ts
10
- var SDK_VERSION = "1.21.0";
10
+ var SDK_VERSION = "1.22.0";
11
11
  function resolveConfig(config) {
12
12
  if (!config.baseUrl) {
13
13
  throw new Error("ClientConfig.baseUrl is required");
@@ -2835,9 +2835,10 @@ var Ingestion = class {
2835
2835
  * @request POST:/api/v1/ingest/document
2836
2836
  * @secure
2837
2837
  */
2838
- ingestDocument = (data, params = {}) => this.http.request({
2838
+ ingestDocument = (data, query, params = {}) => this.http.request({
2839
2839
  path: `/api/v1/ingest/document`,
2840
2840
  method: "POST",
2841
+ query,
2841
2842
  body: data,
2842
2843
  secure: true,
2843
2844
  type: "application/json",
@@ -2889,7 +2890,7 @@ var Ingestion = class {
2889
2890
  * @request POST:/api/v1/ingest/markdown
2890
2891
  * @secure
2891
2892
  */
2892
- ingestMarkdown = (query, data, params = {}) => this.http.request({
2893
+ ingestMarkdown = (data, query, params = {}) => this.http.request({
2893
2894
  path: `/api/v1/ingest/markdown`,
2894
2895
  method: "POST",
2895
2896
  query,
@@ -2924,7 +2925,7 @@ var Ingestion = class {
2924
2925
  * @request POST:/api/v1/ingest/rdf
2925
2926
  * @secure
2926
2927
  */
2927
- ingestRdf = (query, data, params = {}) => this.http.request({
2928
+ ingestRdf = (data, query, params = {}) => this.http.request({
2928
2929
  path: `/api/v1/ingest/rdf`,
2929
2930
  method: "POST",
2930
2931
  query,
@@ -20414,8 +20415,8 @@ var IngestionClient = class {
20414
20415
  */
20415
20416
  async ingestRdf(request) {
20416
20417
  const response = await this.api.ingestRdf(
20417
- { sync: request.sync ?? false },
20418
- IngestRdfRequestFromFrontToApi(request)
20418
+ IngestRdfRequestFromFrontToApi(request),
20419
+ { sync: request.sync ?? false }
20419
20420
  );
20420
20421
  return IngestRdfResponseFromApiToFront(response.data);
20421
20422
  }
@@ -28941,6 +28942,12 @@ function SourceExcerptDtoFromApiToFront(dto) {
28941
28942
  sourceDocument: wire.source_document ?? void 0
28942
28943
  };
28943
28944
  }
28945
+ function SchemaExcerptDtoFromApiToFront(dto) {
28946
+ return {
28947
+ sortName: dto.sort_name,
28948
+ featureNames: dto.feature_names
28949
+ };
28950
+ }
28944
28951
  function ClaimAnnotationDtoFromApiToFront(dto) {
28945
28952
  return {
28946
28953
  text: dto.text,
@@ -28949,6 +28956,7 @@ function ClaimAnnotationDtoFromApiToFront(dto) {
28949
28956
  confidence: dto.confidence,
28950
28957
  sourceTermIds: dto.source_term_ids,
28951
28958
  sourceExcerpts: dto.source_excerpts?.map(SourceExcerptDtoFromApiToFront),
28959
+ schemaExcerpts: dto.schema_excerpts?.map(SchemaExcerptDtoFromApiToFront),
28952
28960
  osfqlQuery: dto.osfql_query ?? void 0,
28953
28961
  derivationSummary: dto.derivation_summary ? DerivationSummaryDtoFromApiToFront(dto.derivation_summary) : void 0
28954
28962
  };