@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 +14 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -10
- package/dist/index.d.ts +62 -10
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
|
|
|
109
109
|
* This is the single source of truth for the version constant.
|
|
110
110
|
* The `scripts/release.sh` script updates this value alongside `package.json`.
|
|
111
111
|
*/
|
|
112
|
-
declare const SDK_VERSION = "1.
|
|
112
|
+
declare const SDK_VERSION = "1.22.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -13478,6 +13478,12 @@ interface IngestDocumentRequest$1 {
|
|
|
13478
13478
|
}
|
|
13479
13479
|
/** Response from document ingestion */
|
|
13480
13480
|
interface IngestDocumentResponse$1 {
|
|
13481
|
+
/**
|
|
13482
|
+
* Document ID within the session — the handle that session progress and
|
|
13483
|
+
* corpus reads key on. Clients previously had to recover it from listings.
|
|
13484
|
+
* @format uuid
|
|
13485
|
+
*/
|
|
13486
|
+
document_id?: string | null;
|
|
13481
13487
|
/** Error message if parsing failed */
|
|
13482
13488
|
error?: string | null;
|
|
13483
13489
|
/** Markdown ingestion statistics (from the markdown pipeline) */
|
|
@@ -24894,6 +24900,14 @@ interface StructuredIngestionStatsDto$1 {
|
|
|
24894
24900
|
* @min 0
|
|
24895
24901
|
*/
|
|
24896
24902
|
entities_extracted: number;
|
|
24903
|
+
/**
|
|
24904
|
+
* Number of records the source reported as available for the ingested
|
|
24905
|
+
* tables, before any cap or collapse (#177). Compared with
|
|
24906
|
+
* `records_processed`, a cap hit is visible; compared with `terms_created`,
|
|
24907
|
+
* a partial ingest is visible.
|
|
24908
|
+
* @min 0
|
|
24909
|
+
*/
|
|
24910
|
+
records_available: number;
|
|
24897
24911
|
/**
|
|
24898
24912
|
* Number of source records processed
|
|
24899
24913
|
* @min 0
|
|
@@ -24909,6 +24923,14 @@ interface StructuredIngestionStatsDto$1 {
|
|
|
24909
24923
|
* @min 0
|
|
24910
24924
|
*/
|
|
24911
24925
|
relations_discovered: number;
|
|
24926
|
+
/**
|
|
24927
|
+
* Number of rows that collapsed onto a key value another row already
|
|
24928
|
+
* produced in the same run — the bound-key upsert merged them into one
|
|
24929
|
+
* term (#177). Zero when the bound key identifies rows uniquely. Named in
|
|
24930
|
+
* `warnings` when non-zero.
|
|
24931
|
+
* @min 0
|
|
24932
|
+
*/
|
|
24933
|
+
rows_collapsed: number;
|
|
24912
24934
|
/**
|
|
24913
24935
|
* Number of sorts created (from pipeline)
|
|
24914
24936
|
* @min 0
|
|
@@ -41630,7 +41652,10 @@ declare class Ingestion<SecurityDataType = unknown> {
|
|
|
41630
41652
|
* @request POST:/api/v1/ingest/document
|
|
41631
41653
|
* @secure
|
|
41632
41654
|
*/
|
|
41633
|
-
ingestDocument: (data: IngestDocumentRequest$1,
|
|
41655
|
+
ingestDocument: (data: IngestDocumentRequest$1, query?: {
|
|
41656
|
+
/** When true or absent, process synchronously (legacy behavior, returns 201 with full stats). When false, return 202 after parsing and ingest in the background — poll the session endpoints. */
|
|
41657
|
+
sync?: boolean;
|
|
41658
|
+
}, params?: RequestParams) => Promise<HttpResponse<IngestDocumentResponse$1, void>>;
|
|
41634
41659
|
/**
|
|
41635
41660
|
* @description POST /api/v1/ingest/document/batch This endpoint accepts multiple documents and processes them sequentially, sharing deduplication context across documents. # Headers - `X-Tenant-Id`: Tenant ID for multi-tenancy isolation (required)
|
|
41636
41661
|
*
|
|
@@ -41660,10 +41685,10 @@ declare class Ingestion<SecurityDataType = unknown> {
|
|
|
41660
41685
|
* @request POST:/api/v1/ingest/markdown
|
|
41661
41686
|
* @secure
|
|
41662
41687
|
*/
|
|
41663
|
-
ingestMarkdown: (
|
|
41688
|
+
ingestMarkdown: (data: IngestMarkdownRequest$1, query?: {
|
|
41664
41689
|
/** When true, process synchronously (returns 201). When false/absent, process asynchronously (returns 202). */
|
|
41665
|
-
sync
|
|
41666
|
-
},
|
|
41690
|
+
sync?: boolean;
|
|
41691
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, void>>;
|
|
41667
41692
|
/**
|
|
41668
41693
|
* @description POST /api/v1/ingest/markdown/batch This endpoint accepts multiple markdown documents and enqueues them for background processing. Each document is processed independently by background workers, tracked under a single session. When a task queue is available (default), returns 202 Accepted immediately. Falls back to synchronous processing (201 Created) only when no queue is configured. # Headers - `X-Tenant-Id`: Tenant ID for multi-tenancy isolation (required) # Request Body - `documents`: List of markdown documents with IDs and content - `owner_id`: User ID who owns the ingested data - `config`: Optional configuration overrides # Response - Async (202): Session ID + document IDs for tracking - Sync fallback (201): Full ingestion result with stats
|
|
41669
41694
|
*
|
|
@@ -41683,10 +41708,10 @@ declare class Ingestion<SecurityDataType = unknown> {
|
|
|
41683
41708
|
* @request POST:/api/v1/ingest/rdf
|
|
41684
41709
|
* @secure
|
|
41685
41710
|
*/
|
|
41686
|
-
ingestRdf: (
|
|
41711
|
+
ingestRdf: (data: IngestRdfRequest$1, query?: {
|
|
41687
41712
|
/** When true, run synchronously (returns 201). Default false: returns 202 with a session id. */
|
|
41688
|
-
sync
|
|
41689
|
-
},
|
|
41713
|
+
sync?: boolean;
|
|
41714
|
+
}, params?: RequestParams) => Promise<HttpResponse<IngestRdfResponse$1, void>>;
|
|
41690
41715
|
/**
|
|
41691
41716
|
* @description The read-only mirror of `POST /api/v1/sparql/translate`. Runs the exact same conversion the ingest pipeline runs (`parse_rdf_with_prefixes` → `convert_rdf_to_terms`), renders each produced term as text, and returns it. No term, sort, or `@prefix` is persisted: the sort-name and prefix resolution both run against owned copies of the tenant's hierarchy state, never the shared hierarchy itself.
|
|
41692
41717
|
*
|
|
@@ -57765,6 +57790,21 @@ interface SourceExcerptDto$1 {
|
|
|
57765
57790
|
/** Source document, if applicable. */
|
|
57766
57791
|
sourceDocument?: string | null;
|
|
57767
57792
|
}
|
|
57793
|
+
/**
|
|
57794
|
+
* A sort from the tenant's catalog that a claim names.
|
|
57795
|
+
*
|
|
57796
|
+
* @remarks
|
|
57797
|
+
* The schema counterpart of {@link SourceExcerptDto}: it carries no `termId`,
|
|
57798
|
+
* because there is no record to point at. An answer *about* the knowledge base
|
|
57799
|
+
* — "what sorts exist here" — is built from the sort catalog, runs no query and
|
|
57800
|
+
* produces no binding, so this is the only evidence it can carry.
|
|
57801
|
+
*/
|
|
57802
|
+
interface SchemaExcerptDto {
|
|
57803
|
+
/** The sort as the tenant's lattice names it. */
|
|
57804
|
+
sortName: string;
|
|
57805
|
+
/** The features the sort declares. */
|
|
57806
|
+
featureNames?: string[];
|
|
57807
|
+
}
|
|
57768
57808
|
/**
|
|
57769
57809
|
* A claim annotation with provenance information.
|
|
57770
57810
|
*/
|
|
@@ -57773,7 +57813,13 @@ interface ClaimAnnotationDto {
|
|
|
57773
57813
|
text: string;
|
|
57774
57814
|
/** Character offsets (start, end) in the assistant_message. */
|
|
57775
57815
|
span: unknown[];
|
|
57776
|
-
/**
|
|
57816
|
+
/**
|
|
57817
|
+
* Claim classification: "kb_grounded", "schema_grounded", "derived",
|
|
57818
|
+
* "llm_framing", "proven", "contradicted".
|
|
57819
|
+
*
|
|
57820
|
+
* `schema_grounded` is backed by the tenant's sort catalog rather than by
|
|
57821
|
+
* records — see {@link ClaimAnnotationDto.schemaExcerpts}.
|
|
57822
|
+
*/
|
|
57777
57823
|
claimType: string;
|
|
57778
57824
|
/** Confidence score (0.0-1.0). */
|
|
57779
57825
|
confidence: number;
|
|
@@ -57781,6 +57827,11 @@ interface ClaimAnnotationDto {
|
|
|
57781
57827
|
sourceTermIds?: string[];
|
|
57782
57828
|
/** Source data excerpts from the KB. */
|
|
57783
57829
|
sourceExcerpts?: SourceExcerptDto$1[];
|
|
57830
|
+
/**
|
|
57831
|
+
* Sorts from the tenant's catalog that this claim names — the evidence for a
|
|
57832
|
+
* `schema_grounded` claim, and additional context on any other.
|
|
57833
|
+
*/
|
|
57834
|
+
schemaExcerpts?: SchemaExcerptDto[];
|
|
57784
57835
|
/** OSFQL query that produced the grounding data. */
|
|
57785
57836
|
osfqlQuery?: string | null;
|
|
57786
57837
|
/** Derivation chain summary. */
|
|
@@ -58109,10 +58160,11 @@ type conversation_ReasoningTraceDto = ReasoningTraceDto;
|
|
|
58109
58160
|
type conversation_RecordTurnRequest = RecordTurnRequest;
|
|
58110
58161
|
type conversation_RecordTurnResponse = RecordTurnResponse;
|
|
58111
58162
|
type conversation_ResolvedCoreferenceDto = ResolvedCoreferenceDto;
|
|
58163
|
+
type conversation_SchemaExcerptDto = SchemaExcerptDto;
|
|
58112
58164
|
type conversation_SessionGraphDto = SessionGraphDto;
|
|
58113
58165
|
type conversation_TurnDto = TurnDto;
|
|
58114
58166
|
declare namespace conversation {
|
|
58115
|
-
export type { conversation_ClaimAnnotationDto as ClaimAnnotationDto, conversation_CognitiveStrategyDto as CognitiveStrategyDto, conversation_CompareModelDto as CompareModelDto, conversation_ConversationMessageRequest as ConversationMessageRequest, conversation_ConversationMessageResponse as ConversationMessageResponse, conversation_ConversationSummaryDto as ConversationSummaryDto, conversation_ConversationTurnsResponse as ConversationTurnsResponse, conversation_DerivationSummaryDto as DerivationSummaryDto, conversation_FocusEntryDto as FocusEntryDto, conversation_ListConversationsResponse as ListConversationsResponse, conversation_MatchedEntityDto as MatchedEntityDto, conversation_ProofTraceNodeDto as ProofTraceNodeDto, conversation_ReasoningStageDto as ReasoningStageDto, conversation_ReasoningTraceDto as ReasoningTraceDto, conversation_RecordTurnRequest as RecordTurnRequest, conversation_RecordTurnResponse as RecordTurnResponse, conversation_ResolvedCoreferenceDto as ResolvedCoreferenceDto, conversation_SessionGraphDto as SessionGraphDto, SourceExcerptDto$1 as SourceExcerptDto, conversation_TurnDto as TurnDto, UICustomizationDto$1 as UICustomizationDto };
|
|
58167
|
+
export type { conversation_ClaimAnnotationDto as ClaimAnnotationDto, conversation_CognitiveStrategyDto as CognitiveStrategyDto, conversation_CompareModelDto as CompareModelDto, conversation_ConversationMessageRequest as ConversationMessageRequest, conversation_ConversationMessageResponse as ConversationMessageResponse, conversation_ConversationSummaryDto as ConversationSummaryDto, conversation_ConversationTurnsResponse as ConversationTurnsResponse, conversation_DerivationSummaryDto as DerivationSummaryDto, conversation_FocusEntryDto as FocusEntryDto, conversation_ListConversationsResponse as ListConversationsResponse, conversation_MatchedEntityDto as MatchedEntityDto, conversation_ProofTraceNodeDto as ProofTraceNodeDto, conversation_ReasoningStageDto as ReasoningStageDto, conversation_ReasoningTraceDto as ReasoningTraceDto, conversation_RecordTurnRequest as RecordTurnRequest, conversation_RecordTurnResponse as RecordTurnResponse, conversation_ResolvedCoreferenceDto as ResolvedCoreferenceDto, conversation_SchemaExcerptDto as SchemaExcerptDto, conversation_SessionGraphDto as SessionGraphDto, SourceExcerptDto$1 as SourceExcerptDto, conversation_TurnDto as TurnDto, UICustomizationDto$1 as UICustomizationDto };
|
|
58116
58168
|
}
|
|
58117
58169
|
|
|
58118
58170
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
|
|
|
109
109
|
* This is the single source of truth for the version constant.
|
|
110
110
|
* The `scripts/release.sh` script updates this value alongside `package.json`.
|
|
111
111
|
*/
|
|
112
|
-
declare const SDK_VERSION = "1.
|
|
112
|
+
declare const SDK_VERSION = "1.22.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -13478,6 +13478,12 @@ interface IngestDocumentRequest$1 {
|
|
|
13478
13478
|
}
|
|
13479
13479
|
/** Response from document ingestion */
|
|
13480
13480
|
interface IngestDocumentResponse$1 {
|
|
13481
|
+
/**
|
|
13482
|
+
* Document ID within the session — the handle that session progress and
|
|
13483
|
+
* corpus reads key on. Clients previously had to recover it from listings.
|
|
13484
|
+
* @format uuid
|
|
13485
|
+
*/
|
|
13486
|
+
document_id?: string | null;
|
|
13481
13487
|
/** Error message if parsing failed */
|
|
13482
13488
|
error?: string | null;
|
|
13483
13489
|
/** Markdown ingestion statistics (from the markdown pipeline) */
|
|
@@ -24894,6 +24900,14 @@ interface StructuredIngestionStatsDto$1 {
|
|
|
24894
24900
|
* @min 0
|
|
24895
24901
|
*/
|
|
24896
24902
|
entities_extracted: number;
|
|
24903
|
+
/**
|
|
24904
|
+
* Number of records the source reported as available for the ingested
|
|
24905
|
+
* tables, before any cap or collapse (#177). Compared with
|
|
24906
|
+
* `records_processed`, a cap hit is visible; compared with `terms_created`,
|
|
24907
|
+
* a partial ingest is visible.
|
|
24908
|
+
* @min 0
|
|
24909
|
+
*/
|
|
24910
|
+
records_available: number;
|
|
24897
24911
|
/**
|
|
24898
24912
|
* Number of source records processed
|
|
24899
24913
|
* @min 0
|
|
@@ -24909,6 +24923,14 @@ interface StructuredIngestionStatsDto$1 {
|
|
|
24909
24923
|
* @min 0
|
|
24910
24924
|
*/
|
|
24911
24925
|
relations_discovered: number;
|
|
24926
|
+
/**
|
|
24927
|
+
* Number of rows that collapsed onto a key value another row already
|
|
24928
|
+
* produced in the same run — the bound-key upsert merged them into one
|
|
24929
|
+
* term (#177). Zero when the bound key identifies rows uniquely. Named in
|
|
24930
|
+
* `warnings` when non-zero.
|
|
24931
|
+
* @min 0
|
|
24932
|
+
*/
|
|
24933
|
+
rows_collapsed: number;
|
|
24912
24934
|
/**
|
|
24913
24935
|
* Number of sorts created (from pipeline)
|
|
24914
24936
|
* @min 0
|
|
@@ -41630,7 +41652,10 @@ declare class Ingestion<SecurityDataType = unknown> {
|
|
|
41630
41652
|
* @request POST:/api/v1/ingest/document
|
|
41631
41653
|
* @secure
|
|
41632
41654
|
*/
|
|
41633
|
-
ingestDocument: (data: IngestDocumentRequest$1,
|
|
41655
|
+
ingestDocument: (data: IngestDocumentRequest$1, query?: {
|
|
41656
|
+
/** When true or absent, process synchronously (legacy behavior, returns 201 with full stats). When false, return 202 after parsing and ingest in the background — poll the session endpoints. */
|
|
41657
|
+
sync?: boolean;
|
|
41658
|
+
}, params?: RequestParams) => Promise<HttpResponse<IngestDocumentResponse$1, void>>;
|
|
41634
41659
|
/**
|
|
41635
41660
|
* @description POST /api/v1/ingest/document/batch This endpoint accepts multiple documents and processes them sequentially, sharing deduplication context across documents. # Headers - `X-Tenant-Id`: Tenant ID for multi-tenancy isolation (required)
|
|
41636
41661
|
*
|
|
@@ -41660,10 +41685,10 @@ declare class Ingestion<SecurityDataType = unknown> {
|
|
|
41660
41685
|
* @request POST:/api/v1/ingest/markdown
|
|
41661
41686
|
* @secure
|
|
41662
41687
|
*/
|
|
41663
|
-
ingestMarkdown: (
|
|
41688
|
+
ingestMarkdown: (data: IngestMarkdownRequest$1, query?: {
|
|
41664
41689
|
/** When true, process synchronously (returns 201). When false/absent, process asynchronously (returns 202). */
|
|
41665
|
-
sync
|
|
41666
|
-
},
|
|
41690
|
+
sync?: boolean;
|
|
41691
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, void>>;
|
|
41667
41692
|
/**
|
|
41668
41693
|
* @description POST /api/v1/ingest/markdown/batch This endpoint accepts multiple markdown documents and enqueues them for background processing. Each document is processed independently by background workers, tracked under a single session. When a task queue is available (default), returns 202 Accepted immediately. Falls back to synchronous processing (201 Created) only when no queue is configured. # Headers - `X-Tenant-Id`: Tenant ID for multi-tenancy isolation (required) # Request Body - `documents`: List of markdown documents with IDs and content - `owner_id`: User ID who owns the ingested data - `config`: Optional configuration overrides # Response - Async (202): Session ID + document IDs for tracking - Sync fallback (201): Full ingestion result with stats
|
|
41669
41694
|
*
|
|
@@ -41683,10 +41708,10 @@ declare class Ingestion<SecurityDataType = unknown> {
|
|
|
41683
41708
|
* @request POST:/api/v1/ingest/rdf
|
|
41684
41709
|
* @secure
|
|
41685
41710
|
*/
|
|
41686
|
-
ingestRdf: (
|
|
41711
|
+
ingestRdf: (data: IngestRdfRequest$1, query?: {
|
|
41687
41712
|
/** When true, run synchronously (returns 201). Default false: returns 202 with a session id. */
|
|
41688
|
-
sync
|
|
41689
|
-
},
|
|
41713
|
+
sync?: boolean;
|
|
41714
|
+
}, params?: RequestParams) => Promise<HttpResponse<IngestRdfResponse$1, void>>;
|
|
41690
41715
|
/**
|
|
41691
41716
|
* @description The read-only mirror of `POST /api/v1/sparql/translate`. Runs the exact same conversion the ingest pipeline runs (`parse_rdf_with_prefixes` → `convert_rdf_to_terms`), renders each produced term as text, and returns it. No term, sort, or `@prefix` is persisted: the sort-name and prefix resolution both run against owned copies of the tenant's hierarchy state, never the shared hierarchy itself.
|
|
41692
41717
|
*
|
|
@@ -57765,6 +57790,21 @@ interface SourceExcerptDto$1 {
|
|
|
57765
57790
|
/** Source document, if applicable. */
|
|
57766
57791
|
sourceDocument?: string | null;
|
|
57767
57792
|
}
|
|
57793
|
+
/**
|
|
57794
|
+
* A sort from the tenant's catalog that a claim names.
|
|
57795
|
+
*
|
|
57796
|
+
* @remarks
|
|
57797
|
+
* The schema counterpart of {@link SourceExcerptDto}: it carries no `termId`,
|
|
57798
|
+
* because there is no record to point at. An answer *about* the knowledge base
|
|
57799
|
+
* — "what sorts exist here" — is built from the sort catalog, runs no query and
|
|
57800
|
+
* produces no binding, so this is the only evidence it can carry.
|
|
57801
|
+
*/
|
|
57802
|
+
interface SchemaExcerptDto {
|
|
57803
|
+
/** The sort as the tenant's lattice names it. */
|
|
57804
|
+
sortName: string;
|
|
57805
|
+
/** The features the sort declares. */
|
|
57806
|
+
featureNames?: string[];
|
|
57807
|
+
}
|
|
57768
57808
|
/**
|
|
57769
57809
|
* A claim annotation with provenance information.
|
|
57770
57810
|
*/
|
|
@@ -57773,7 +57813,13 @@ interface ClaimAnnotationDto {
|
|
|
57773
57813
|
text: string;
|
|
57774
57814
|
/** Character offsets (start, end) in the assistant_message. */
|
|
57775
57815
|
span: unknown[];
|
|
57776
|
-
/**
|
|
57816
|
+
/**
|
|
57817
|
+
* Claim classification: "kb_grounded", "schema_grounded", "derived",
|
|
57818
|
+
* "llm_framing", "proven", "contradicted".
|
|
57819
|
+
*
|
|
57820
|
+
* `schema_grounded` is backed by the tenant's sort catalog rather than by
|
|
57821
|
+
* records — see {@link ClaimAnnotationDto.schemaExcerpts}.
|
|
57822
|
+
*/
|
|
57777
57823
|
claimType: string;
|
|
57778
57824
|
/** Confidence score (0.0-1.0). */
|
|
57779
57825
|
confidence: number;
|
|
@@ -57781,6 +57827,11 @@ interface ClaimAnnotationDto {
|
|
|
57781
57827
|
sourceTermIds?: string[];
|
|
57782
57828
|
/** Source data excerpts from the KB. */
|
|
57783
57829
|
sourceExcerpts?: SourceExcerptDto$1[];
|
|
57830
|
+
/**
|
|
57831
|
+
* Sorts from the tenant's catalog that this claim names — the evidence for a
|
|
57832
|
+
* `schema_grounded` claim, and additional context on any other.
|
|
57833
|
+
*/
|
|
57834
|
+
schemaExcerpts?: SchemaExcerptDto[];
|
|
57784
57835
|
/** OSFQL query that produced the grounding data. */
|
|
57785
57836
|
osfqlQuery?: string | null;
|
|
57786
57837
|
/** Derivation chain summary. */
|
|
@@ -58109,10 +58160,11 @@ type conversation_ReasoningTraceDto = ReasoningTraceDto;
|
|
|
58109
58160
|
type conversation_RecordTurnRequest = RecordTurnRequest;
|
|
58110
58161
|
type conversation_RecordTurnResponse = RecordTurnResponse;
|
|
58111
58162
|
type conversation_ResolvedCoreferenceDto = ResolvedCoreferenceDto;
|
|
58163
|
+
type conversation_SchemaExcerptDto = SchemaExcerptDto;
|
|
58112
58164
|
type conversation_SessionGraphDto = SessionGraphDto;
|
|
58113
58165
|
type conversation_TurnDto = TurnDto;
|
|
58114
58166
|
declare namespace conversation {
|
|
58115
|
-
export type { conversation_ClaimAnnotationDto as ClaimAnnotationDto, conversation_CognitiveStrategyDto as CognitiveStrategyDto, conversation_CompareModelDto as CompareModelDto, conversation_ConversationMessageRequest as ConversationMessageRequest, conversation_ConversationMessageResponse as ConversationMessageResponse, conversation_ConversationSummaryDto as ConversationSummaryDto, conversation_ConversationTurnsResponse as ConversationTurnsResponse, conversation_DerivationSummaryDto as DerivationSummaryDto, conversation_FocusEntryDto as FocusEntryDto, conversation_ListConversationsResponse as ListConversationsResponse, conversation_MatchedEntityDto as MatchedEntityDto, conversation_ProofTraceNodeDto as ProofTraceNodeDto, conversation_ReasoningStageDto as ReasoningStageDto, conversation_ReasoningTraceDto as ReasoningTraceDto, conversation_RecordTurnRequest as RecordTurnRequest, conversation_RecordTurnResponse as RecordTurnResponse, conversation_ResolvedCoreferenceDto as ResolvedCoreferenceDto, conversation_SessionGraphDto as SessionGraphDto, SourceExcerptDto$1 as SourceExcerptDto, conversation_TurnDto as TurnDto, UICustomizationDto$1 as UICustomizationDto };
|
|
58167
|
+
export type { conversation_ClaimAnnotationDto as ClaimAnnotationDto, conversation_CognitiveStrategyDto as CognitiveStrategyDto, conversation_CompareModelDto as CompareModelDto, conversation_ConversationMessageRequest as ConversationMessageRequest, conversation_ConversationMessageResponse as ConversationMessageResponse, conversation_ConversationSummaryDto as ConversationSummaryDto, conversation_ConversationTurnsResponse as ConversationTurnsResponse, conversation_DerivationSummaryDto as DerivationSummaryDto, conversation_FocusEntryDto as FocusEntryDto, conversation_ListConversationsResponse as ListConversationsResponse, conversation_MatchedEntityDto as MatchedEntityDto, conversation_ProofTraceNodeDto as ProofTraceNodeDto, conversation_ReasoningStageDto as ReasoningStageDto, conversation_ReasoningTraceDto as ReasoningTraceDto, conversation_RecordTurnRequest as RecordTurnRequest, conversation_RecordTurnResponse as RecordTurnResponse, conversation_ResolvedCoreferenceDto as ResolvedCoreferenceDto, conversation_SchemaExcerptDto as SchemaExcerptDto, conversation_SessionGraphDto as SessionGraphDto, SourceExcerptDto$1 as SourceExcerptDto, conversation_TurnDto as TurnDto, UICustomizationDto$1 as UICustomizationDto };
|
|
58116
58168
|
}
|
|
58117
58169
|
|
|
58118
58170
|
/**
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/config.ts
|
|
8
|
-
var SDK_VERSION = "1.
|
|
8
|
+
var SDK_VERSION = "1.22.0";
|
|
9
9
|
function resolveConfig(config) {
|
|
10
10
|
if (!config.baseUrl) {
|
|
11
11
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -2833,9 +2833,10 @@ var Ingestion = class {
|
|
|
2833
2833
|
* @request POST:/api/v1/ingest/document
|
|
2834
2834
|
* @secure
|
|
2835
2835
|
*/
|
|
2836
|
-
ingestDocument = (data, params = {}) => this.http.request({
|
|
2836
|
+
ingestDocument = (data, query, params = {}) => this.http.request({
|
|
2837
2837
|
path: `/api/v1/ingest/document`,
|
|
2838
2838
|
method: "POST",
|
|
2839
|
+
query,
|
|
2839
2840
|
body: data,
|
|
2840
2841
|
secure: true,
|
|
2841
2842
|
type: "application/json",
|
|
@@ -2887,7 +2888,7 @@ var Ingestion = class {
|
|
|
2887
2888
|
* @request POST:/api/v1/ingest/markdown
|
|
2888
2889
|
* @secure
|
|
2889
2890
|
*/
|
|
2890
|
-
ingestMarkdown = (
|
|
2891
|
+
ingestMarkdown = (data, query, params = {}) => this.http.request({
|
|
2891
2892
|
path: `/api/v1/ingest/markdown`,
|
|
2892
2893
|
method: "POST",
|
|
2893
2894
|
query,
|
|
@@ -2922,7 +2923,7 @@ var Ingestion = class {
|
|
|
2922
2923
|
* @request POST:/api/v1/ingest/rdf
|
|
2923
2924
|
* @secure
|
|
2924
2925
|
*/
|
|
2925
|
-
ingestRdf = (
|
|
2926
|
+
ingestRdf = (data, query, params = {}) => this.http.request({
|
|
2926
2927
|
path: `/api/v1/ingest/rdf`,
|
|
2927
2928
|
method: "POST",
|
|
2928
2929
|
query,
|
|
@@ -20412,8 +20413,8 @@ var IngestionClient = class {
|
|
|
20412
20413
|
*/
|
|
20413
20414
|
async ingestRdf(request) {
|
|
20414
20415
|
const response = await this.api.ingestRdf(
|
|
20415
|
-
|
|
20416
|
-
|
|
20416
|
+
IngestRdfRequestFromFrontToApi(request),
|
|
20417
|
+
{ sync: request.sync ?? false }
|
|
20417
20418
|
);
|
|
20418
20419
|
return IngestRdfResponseFromApiToFront(response.data);
|
|
20419
20420
|
}
|
|
@@ -28939,6 +28940,12 @@ function SourceExcerptDtoFromApiToFront(dto) {
|
|
|
28939
28940
|
sourceDocument: wire.source_document ?? void 0
|
|
28940
28941
|
};
|
|
28941
28942
|
}
|
|
28943
|
+
function SchemaExcerptDtoFromApiToFront(dto) {
|
|
28944
|
+
return {
|
|
28945
|
+
sortName: dto.sort_name,
|
|
28946
|
+
featureNames: dto.feature_names
|
|
28947
|
+
};
|
|
28948
|
+
}
|
|
28942
28949
|
function ClaimAnnotationDtoFromApiToFront(dto) {
|
|
28943
28950
|
return {
|
|
28944
28951
|
text: dto.text,
|
|
@@ -28947,6 +28954,7 @@ function ClaimAnnotationDtoFromApiToFront(dto) {
|
|
|
28947
28954
|
confidence: dto.confidence,
|
|
28948
28955
|
sourceTermIds: dto.source_term_ids,
|
|
28949
28956
|
sourceExcerpts: dto.source_excerpts?.map(SourceExcerptDtoFromApiToFront),
|
|
28957
|
+
schemaExcerpts: dto.schema_excerpts?.map(SchemaExcerptDtoFromApiToFront),
|
|
28950
28958
|
osfqlQuery: dto.osfql_query ?? void 0,
|
|
28951
28959
|
derivationSummary: dto.derivation_summary ? DerivationSummaryDtoFromApiToFront(dto.derivation_summary) : void 0
|
|
28952
28960
|
};
|