@kortexya/reasoninglayer 1.10.1 → 1.12.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 +72 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -3
- package/dist/index.d.ts +66 -3
- package/dist/index.js +72 -1
- 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.12.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -44514,6 +44514,32 @@ interface ResearchSessionResponse {
|
|
|
44514
44514
|
/** When the session was last updated (ISO 8601). */
|
|
44515
44515
|
updatedAt: string;
|
|
44516
44516
|
}
|
|
44517
|
+
/** One row in the session list — a lightweight summary for list views. */
|
|
44518
|
+
interface ResearchSessionSummaryDto {
|
|
44519
|
+
/** Session ID (UUID). */
|
|
44520
|
+
sessionId: string;
|
|
44521
|
+
/** The research question. */
|
|
44522
|
+
question: string;
|
|
44523
|
+
/** Current session status. */
|
|
44524
|
+
status: ResearchSessionStatusDto;
|
|
44525
|
+
/** Total papers ingested. */
|
|
44526
|
+
totalPapersIngested: number;
|
|
44527
|
+
/** Total findings. */
|
|
44528
|
+
totalFindings: number;
|
|
44529
|
+
/** Total contradictions. */
|
|
44530
|
+
totalContradictions: number;
|
|
44531
|
+
/** Total knowledge gaps. */
|
|
44532
|
+
totalGaps: number;
|
|
44533
|
+
/** When the session was created (ISO 8601). */
|
|
44534
|
+
createdAt: string;
|
|
44535
|
+
/** When the session was last updated (ISO 8601). */
|
|
44536
|
+
updatedAt: string;
|
|
44537
|
+
}
|
|
44538
|
+
/** Response from listing the tenant's research sessions (newest first). */
|
|
44539
|
+
interface ListResearchSessionsResponse {
|
|
44540
|
+
/** Session summaries. */
|
|
44541
|
+
sessions: ResearchSessionSummaryDto[];
|
|
44542
|
+
}
|
|
44517
44543
|
/** Results from a single research cycle. */
|
|
44518
44544
|
interface ResearchCycleResultDto {
|
|
44519
44545
|
/** Cycle number (1-indexed). */
|
|
@@ -44758,6 +44784,7 @@ type research_EvidenceItemSummaryDto = EvidenceItemSummaryDto;
|
|
|
44758
44784
|
type research_IngestPaperRequest = IngestPaperRequest;
|
|
44759
44785
|
type research_IngestPaperResponse = IngestPaperResponse;
|
|
44760
44786
|
type research_KnowledgeGapDto = KnowledgeGapDto;
|
|
44787
|
+
type research_ListResearchSessionsResponse = ListResearchSessionsResponse;
|
|
44761
44788
|
type research_PaperMetadataDto = PaperMetadataDto;
|
|
44762
44789
|
type research_PaperSearchResultDto = PaperSearchResultDto;
|
|
44763
44790
|
type research_PaperSource = PaperSource;
|
|
@@ -44772,6 +44799,7 @@ type research_ResearchGapsResponse = ResearchGapsResponse;
|
|
|
44772
44799
|
type research_ResearchReportResponse = ResearchReportResponse;
|
|
44773
44800
|
type research_ResearchSessionResponse = ResearchSessionResponse;
|
|
44774
44801
|
type research_ResearchSessionStatusDto = ResearchSessionStatusDto;
|
|
44802
|
+
type research_ResearchSessionSummaryDto = ResearchSessionSummaryDto;
|
|
44775
44803
|
type research_ResearchStatisticsDto = ResearchStatisticsDto;
|
|
44776
44804
|
type research_RunResearchCycleRequest = RunResearchCycleRequest;
|
|
44777
44805
|
type research_SearchPapersRequest = SearchPapersRequest;
|
|
@@ -44779,7 +44807,7 @@ type research_SearchPapersResponse = SearchPapersResponse;
|
|
|
44779
44807
|
type research_VerifyClaimRequest = VerifyClaimRequest;
|
|
44780
44808
|
type research_VerifyClaimResponse = VerifyClaimResponse;
|
|
44781
44809
|
declare namespace research {
|
|
44782
|
-
export type { research_ContradictionDto as ContradictionDto, research_CreateResearchSessionRequest as CreateResearchSessionRequest, research_CreateResearchSessionResponse as CreateResearchSessionResponse, research_EvidenceItemSummaryDto as EvidenceItemSummaryDto, research_IngestPaperRequest as IngestPaperRequest, research_IngestPaperResponse as IngestPaperResponse, research_KnowledgeGapDto as KnowledgeGapDto, research_PaperMetadataDto as PaperMetadataDto, research_PaperSearchResultDto as PaperSearchResultDto, research_PaperSource as PaperSource, research_ProvenanceStepDto as ProvenanceStepDto, research_ReportVerificationDto as ReportVerificationDto, research_ResearchContradictionsResponse as ResearchContradictionsResponse, research_ResearchCycleResponse as ResearchCycleResponse, research_ResearchCycleResultDto as ResearchCycleResultDto, research_ResearchFindingDto as ResearchFindingDto, research_ResearchFindingsResponse as ResearchFindingsResponse, research_ResearchGapsResponse as ResearchGapsResponse, research_ResearchReportResponse as ResearchReportResponse, research_ResearchSessionResponse as ResearchSessionResponse, research_ResearchSessionStatusDto as ResearchSessionStatusDto, research_ResearchStatisticsDto as ResearchStatisticsDto, research_RunResearchCycleRequest as RunResearchCycleRequest, research_SearchPapersRequest as SearchPapersRequest, research_SearchPapersResponse as SearchPapersResponse, research_VerifyClaimRequest as VerifyClaimRequest, research_VerifyClaimResponse as VerifyClaimResponse };
|
|
44810
|
+
export type { research_ContradictionDto as ContradictionDto, research_CreateResearchSessionRequest as CreateResearchSessionRequest, research_CreateResearchSessionResponse as CreateResearchSessionResponse, research_EvidenceItemSummaryDto as EvidenceItemSummaryDto, research_IngestPaperRequest as IngestPaperRequest, research_IngestPaperResponse as IngestPaperResponse, research_KnowledgeGapDto as KnowledgeGapDto, research_ListResearchSessionsResponse as ListResearchSessionsResponse, research_PaperMetadataDto as PaperMetadataDto, research_PaperSearchResultDto as PaperSearchResultDto, research_PaperSource as PaperSource, research_ProvenanceStepDto as ProvenanceStepDto, research_ReportVerificationDto as ReportVerificationDto, research_ResearchContradictionsResponse as ResearchContradictionsResponse, research_ResearchCycleResponse as ResearchCycleResponse, research_ResearchCycleResultDto as ResearchCycleResultDto, research_ResearchFindingDto as ResearchFindingDto, research_ResearchFindingsResponse as ResearchFindingsResponse, research_ResearchGapsResponse as ResearchGapsResponse, research_ResearchReportResponse as ResearchReportResponse, research_ResearchSessionResponse as ResearchSessionResponse, research_ResearchSessionStatusDto as ResearchSessionStatusDto, research_ResearchSessionSummaryDto as ResearchSessionSummaryDto, research_ResearchStatisticsDto as ResearchStatisticsDto, research_RunResearchCycleRequest as RunResearchCycleRequest, research_SearchPapersRequest as SearchPapersRequest, research_SearchPapersResponse as SearchPapersResponse, research_VerifyClaimRequest as VerifyClaimRequest, research_VerifyClaimResponse as VerifyClaimResponse };
|
|
44783
44811
|
}
|
|
44784
44812
|
|
|
44785
44813
|
/**
|
|
@@ -44850,6 +44878,22 @@ declare class ResearchClient {
|
|
|
44850
44878
|
* ```
|
|
44851
44879
|
*/
|
|
44852
44880
|
getSession(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44881
|
+
/**
|
|
44882
|
+
* List the current tenant's research sessions, newest first.
|
|
44883
|
+
*
|
|
44884
|
+
* Tenant-scoped via the `X-Tenant-Id` header (set on the client), mirroring
|
|
44885
|
+
* how conversations are listed. Returns lightweight summaries — use
|
|
44886
|
+
* {@link getSession} / {@link getReport} for a session's full detail.
|
|
44887
|
+
*
|
|
44888
|
+
* @returns The tenant's session summaries.
|
|
44889
|
+
*
|
|
44890
|
+
* @example
|
|
44891
|
+
* ```ts
|
|
44892
|
+
* const { sessions } = await client.research.listSessions();
|
|
44893
|
+
* sessions.forEach((s) => console.log(s.sessionId, s.status, s.question));
|
|
44894
|
+
* ```
|
|
44895
|
+
*/
|
|
44896
|
+
listSessions(): Promise<ListResearchSessionsResponse>;
|
|
44853
44897
|
/**
|
|
44854
44898
|
* Run a single research cycle within a session.
|
|
44855
44899
|
*
|
|
@@ -44897,6 +44941,25 @@ declare class ResearchClient {
|
|
|
44897
44941
|
* ```
|
|
44898
44942
|
*/
|
|
44899
44943
|
runToCompletion(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44944
|
+
/**
|
|
44945
|
+
* Resume an interrupted or failed research session.
|
|
44946
|
+
*
|
|
44947
|
+
* A session left in a non-`Completed` state — e.g. swept to `Failed` after a
|
|
44948
|
+
* server restart killed its in-process pipeline — is otherwise stuck. Resuming
|
|
44949
|
+
* re-runs the pipeline, continuing from the session's persisted partial
|
|
44950
|
+
* progress (papers ingested, findings, cycles), and can reach `Completed`.
|
|
44951
|
+
* Like {@link runToCompletion} the run is long-lived server-side; the UI
|
|
44952
|
+
* typically calls this fire-and-forget and polls {@link getSession}.
|
|
44953
|
+
*
|
|
44954
|
+
* @param sessionId - The session ID (UUID) to resume.
|
|
44955
|
+
* @throws {ApiError} 409 if the session is already `Completed`, 404 if unknown.
|
|
44956
|
+
*
|
|
44957
|
+
* @example
|
|
44958
|
+
* ```ts
|
|
44959
|
+
* await client.research.resumeSession('session-uuid');
|
|
44960
|
+
* ```
|
|
44961
|
+
*/
|
|
44962
|
+
resumeSession(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44900
44963
|
/**
|
|
44901
44964
|
* Delete a research session and all associated data.
|
|
44902
44965
|
*
|
|
@@ -49864,4 +49927,4 @@ declare function toUntaggedFeatures(features: PlainFeatureMap): Record<string, F
|
|
|
49864
49927
|
*/
|
|
49865
49928
|
declare function toTermInputDto(input: PsiTermInput | TermInputDto): TermInputDto;
|
|
49866
49929
|
|
|
49867
|
-
export { ANY_ROLE, actionReviews as ActionReviews, actions as Actions, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type CertificateDetail, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, type CognitiveStrategyDto, collections as Collections, communities as Communities, type ComparisonOp, compliance as Compliance, complianceMarkings as ComplianceMarkings, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, documents as Documents, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, feasibility as Feasibility, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, type FocusEntryDto, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, ontologyAlignment as OntologyAlignment, ontologyBridge as OntologyBridge, ontologyFacade as OntologyFacade, type Operand, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type ReasoningStageDto, type ReasoningTraceDto, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, type ResolvedCoreferenceDto, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, type SessionGraphDto, solver as Solver, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, verification as Verification, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
|
|
49930
|
+
export { ANY_ROLE, actionReviews as ActionReviews, actions as Actions, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type CertificateDetail, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, type CognitiveStrategyDto, collections as Collections, communities as Communities, type ComparisonOp, compliance as Compliance, complianceMarkings as ComplianceMarkings, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, documents as Documents, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, feasibility as Feasibility, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, type FocusEntryDto, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type ListResearchSessionsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, ontologyAlignment as OntologyAlignment, ontologyBridge as OntologyBridge, ontologyFacade as OntologyFacade, type Operand, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type ReasoningStageDto, type ReasoningTraceDto, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, type ResearchSessionSummaryDto, type ResolvedCoreferenceDto, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, type SessionGraphDto, solver as Solver, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, verification as Verification, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
|
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.12.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -44514,6 +44514,32 @@ interface ResearchSessionResponse {
|
|
|
44514
44514
|
/** When the session was last updated (ISO 8601). */
|
|
44515
44515
|
updatedAt: string;
|
|
44516
44516
|
}
|
|
44517
|
+
/** One row in the session list — a lightweight summary for list views. */
|
|
44518
|
+
interface ResearchSessionSummaryDto {
|
|
44519
|
+
/** Session ID (UUID). */
|
|
44520
|
+
sessionId: string;
|
|
44521
|
+
/** The research question. */
|
|
44522
|
+
question: string;
|
|
44523
|
+
/** Current session status. */
|
|
44524
|
+
status: ResearchSessionStatusDto;
|
|
44525
|
+
/** Total papers ingested. */
|
|
44526
|
+
totalPapersIngested: number;
|
|
44527
|
+
/** Total findings. */
|
|
44528
|
+
totalFindings: number;
|
|
44529
|
+
/** Total contradictions. */
|
|
44530
|
+
totalContradictions: number;
|
|
44531
|
+
/** Total knowledge gaps. */
|
|
44532
|
+
totalGaps: number;
|
|
44533
|
+
/** When the session was created (ISO 8601). */
|
|
44534
|
+
createdAt: string;
|
|
44535
|
+
/** When the session was last updated (ISO 8601). */
|
|
44536
|
+
updatedAt: string;
|
|
44537
|
+
}
|
|
44538
|
+
/** Response from listing the tenant's research sessions (newest first). */
|
|
44539
|
+
interface ListResearchSessionsResponse {
|
|
44540
|
+
/** Session summaries. */
|
|
44541
|
+
sessions: ResearchSessionSummaryDto[];
|
|
44542
|
+
}
|
|
44517
44543
|
/** Results from a single research cycle. */
|
|
44518
44544
|
interface ResearchCycleResultDto {
|
|
44519
44545
|
/** Cycle number (1-indexed). */
|
|
@@ -44758,6 +44784,7 @@ type research_EvidenceItemSummaryDto = EvidenceItemSummaryDto;
|
|
|
44758
44784
|
type research_IngestPaperRequest = IngestPaperRequest;
|
|
44759
44785
|
type research_IngestPaperResponse = IngestPaperResponse;
|
|
44760
44786
|
type research_KnowledgeGapDto = KnowledgeGapDto;
|
|
44787
|
+
type research_ListResearchSessionsResponse = ListResearchSessionsResponse;
|
|
44761
44788
|
type research_PaperMetadataDto = PaperMetadataDto;
|
|
44762
44789
|
type research_PaperSearchResultDto = PaperSearchResultDto;
|
|
44763
44790
|
type research_PaperSource = PaperSource;
|
|
@@ -44772,6 +44799,7 @@ type research_ResearchGapsResponse = ResearchGapsResponse;
|
|
|
44772
44799
|
type research_ResearchReportResponse = ResearchReportResponse;
|
|
44773
44800
|
type research_ResearchSessionResponse = ResearchSessionResponse;
|
|
44774
44801
|
type research_ResearchSessionStatusDto = ResearchSessionStatusDto;
|
|
44802
|
+
type research_ResearchSessionSummaryDto = ResearchSessionSummaryDto;
|
|
44775
44803
|
type research_ResearchStatisticsDto = ResearchStatisticsDto;
|
|
44776
44804
|
type research_RunResearchCycleRequest = RunResearchCycleRequest;
|
|
44777
44805
|
type research_SearchPapersRequest = SearchPapersRequest;
|
|
@@ -44779,7 +44807,7 @@ type research_SearchPapersResponse = SearchPapersResponse;
|
|
|
44779
44807
|
type research_VerifyClaimRequest = VerifyClaimRequest;
|
|
44780
44808
|
type research_VerifyClaimResponse = VerifyClaimResponse;
|
|
44781
44809
|
declare namespace research {
|
|
44782
|
-
export type { research_ContradictionDto as ContradictionDto, research_CreateResearchSessionRequest as CreateResearchSessionRequest, research_CreateResearchSessionResponse as CreateResearchSessionResponse, research_EvidenceItemSummaryDto as EvidenceItemSummaryDto, research_IngestPaperRequest as IngestPaperRequest, research_IngestPaperResponse as IngestPaperResponse, research_KnowledgeGapDto as KnowledgeGapDto, research_PaperMetadataDto as PaperMetadataDto, research_PaperSearchResultDto as PaperSearchResultDto, research_PaperSource as PaperSource, research_ProvenanceStepDto as ProvenanceStepDto, research_ReportVerificationDto as ReportVerificationDto, research_ResearchContradictionsResponse as ResearchContradictionsResponse, research_ResearchCycleResponse as ResearchCycleResponse, research_ResearchCycleResultDto as ResearchCycleResultDto, research_ResearchFindingDto as ResearchFindingDto, research_ResearchFindingsResponse as ResearchFindingsResponse, research_ResearchGapsResponse as ResearchGapsResponse, research_ResearchReportResponse as ResearchReportResponse, research_ResearchSessionResponse as ResearchSessionResponse, research_ResearchSessionStatusDto as ResearchSessionStatusDto, research_ResearchStatisticsDto as ResearchStatisticsDto, research_RunResearchCycleRequest as RunResearchCycleRequest, research_SearchPapersRequest as SearchPapersRequest, research_SearchPapersResponse as SearchPapersResponse, research_VerifyClaimRequest as VerifyClaimRequest, research_VerifyClaimResponse as VerifyClaimResponse };
|
|
44810
|
+
export type { research_ContradictionDto as ContradictionDto, research_CreateResearchSessionRequest as CreateResearchSessionRequest, research_CreateResearchSessionResponse as CreateResearchSessionResponse, research_EvidenceItemSummaryDto as EvidenceItemSummaryDto, research_IngestPaperRequest as IngestPaperRequest, research_IngestPaperResponse as IngestPaperResponse, research_KnowledgeGapDto as KnowledgeGapDto, research_ListResearchSessionsResponse as ListResearchSessionsResponse, research_PaperMetadataDto as PaperMetadataDto, research_PaperSearchResultDto as PaperSearchResultDto, research_PaperSource as PaperSource, research_ProvenanceStepDto as ProvenanceStepDto, research_ReportVerificationDto as ReportVerificationDto, research_ResearchContradictionsResponse as ResearchContradictionsResponse, research_ResearchCycleResponse as ResearchCycleResponse, research_ResearchCycleResultDto as ResearchCycleResultDto, research_ResearchFindingDto as ResearchFindingDto, research_ResearchFindingsResponse as ResearchFindingsResponse, research_ResearchGapsResponse as ResearchGapsResponse, research_ResearchReportResponse as ResearchReportResponse, research_ResearchSessionResponse as ResearchSessionResponse, research_ResearchSessionStatusDto as ResearchSessionStatusDto, research_ResearchSessionSummaryDto as ResearchSessionSummaryDto, research_ResearchStatisticsDto as ResearchStatisticsDto, research_RunResearchCycleRequest as RunResearchCycleRequest, research_SearchPapersRequest as SearchPapersRequest, research_SearchPapersResponse as SearchPapersResponse, research_VerifyClaimRequest as VerifyClaimRequest, research_VerifyClaimResponse as VerifyClaimResponse };
|
|
44783
44811
|
}
|
|
44784
44812
|
|
|
44785
44813
|
/**
|
|
@@ -44850,6 +44878,22 @@ declare class ResearchClient {
|
|
|
44850
44878
|
* ```
|
|
44851
44879
|
*/
|
|
44852
44880
|
getSession(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44881
|
+
/**
|
|
44882
|
+
* List the current tenant's research sessions, newest first.
|
|
44883
|
+
*
|
|
44884
|
+
* Tenant-scoped via the `X-Tenant-Id` header (set on the client), mirroring
|
|
44885
|
+
* how conversations are listed. Returns lightweight summaries — use
|
|
44886
|
+
* {@link getSession} / {@link getReport} for a session's full detail.
|
|
44887
|
+
*
|
|
44888
|
+
* @returns The tenant's session summaries.
|
|
44889
|
+
*
|
|
44890
|
+
* @example
|
|
44891
|
+
* ```ts
|
|
44892
|
+
* const { sessions } = await client.research.listSessions();
|
|
44893
|
+
* sessions.forEach((s) => console.log(s.sessionId, s.status, s.question));
|
|
44894
|
+
* ```
|
|
44895
|
+
*/
|
|
44896
|
+
listSessions(): Promise<ListResearchSessionsResponse>;
|
|
44853
44897
|
/**
|
|
44854
44898
|
* Run a single research cycle within a session.
|
|
44855
44899
|
*
|
|
@@ -44897,6 +44941,25 @@ declare class ResearchClient {
|
|
|
44897
44941
|
* ```
|
|
44898
44942
|
*/
|
|
44899
44943
|
runToCompletion(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44944
|
+
/**
|
|
44945
|
+
* Resume an interrupted or failed research session.
|
|
44946
|
+
*
|
|
44947
|
+
* A session left in a non-`Completed` state — e.g. swept to `Failed` after a
|
|
44948
|
+
* server restart killed its in-process pipeline — is otherwise stuck. Resuming
|
|
44949
|
+
* re-runs the pipeline, continuing from the session's persisted partial
|
|
44950
|
+
* progress (papers ingested, findings, cycles), and can reach `Completed`.
|
|
44951
|
+
* Like {@link runToCompletion} the run is long-lived server-side; the UI
|
|
44952
|
+
* typically calls this fire-and-forget and polls {@link getSession}.
|
|
44953
|
+
*
|
|
44954
|
+
* @param sessionId - The session ID (UUID) to resume.
|
|
44955
|
+
* @throws {ApiError} 409 if the session is already `Completed`, 404 if unknown.
|
|
44956
|
+
*
|
|
44957
|
+
* @example
|
|
44958
|
+
* ```ts
|
|
44959
|
+
* await client.research.resumeSession('session-uuid');
|
|
44960
|
+
* ```
|
|
44961
|
+
*/
|
|
44962
|
+
resumeSession(sessionId: string): Promise<ResearchSessionResponse>;
|
|
44900
44963
|
/**
|
|
44901
44964
|
* Delete a research session and all associated data.
|
|
44902
44965
|
*
|
|
@@ -49864,4 +49927,4 @@ declare function toUntaggedFeatures(features: PlainFeatureMap): Record<string, F
|
|
|
49864
49927
|
*/
|
|
49865
49928
|
declare function toTermInputDto(input: PsiTermInput | TermInputDto): TermInputDto;
|
|
49866
49929
|
|
|
49867
|
-
export { ANY_ROLE, actionReviews as ActionReviews, actions as Actions, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type CertificateDetail, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, type CognitiveStrategyDto, collections as Collections, communities as Communities, type ComparisonOp, compliance as Compliance, complianceMarkings as ComplianceMarkings, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, documents as Documents, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, feasibility as Feasibility, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, type FocusEntryDto, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, ontologyAlignment as OntologyAlignment, ontologyBridge as OntologyBridge, ontologyFacade as OntologyFacade, type Operand, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type ReasoningStageDto, type ReasoningTraceDto, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, type ResolvedCoreferenceDto, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, type SessionGraphDto, solver as Solver, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, verification as Verification, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
|
|
49930
|
+
export { ANY_ROLE, actionReviews as ActionReviews, actions as Actions, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type CertificateDetail, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, type CognitiveStrategyDto, collections as Collections, communities as Communities, type ComparisonOp, compliance as Compliance, complianceMarkings as ComplianceMarkings, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, documents as Documents, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, feasibility as Feasibility, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, type FocusEntryDto, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type ListResearchSessionsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, ontologyAlignment as OntologyAlignment, ontologyBridge as OntologyBridge, ontologyFacade as OntologyFacade, type Operand, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type ReasoningStageDto, type ReasoningTraceDto, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, type ResearchSessionSummaryDto, type ResolvedCoreferenceDto, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, type SessionGraphDto, solver as Solver, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, verification as Verification, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
|
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.12.0";
|
|
9
9
|
function resolveConfig(config) {
|
|
10
10
|
if (!config.baseUrl) {
|
|
11
11
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -22940,6 +22940,26 @@ function ResearchSessionResponseFromApiToFront(raw) {
|
|
|
22940
22940
|
updatedAt: dto.updated_at
|
|
22941
22941
|
};
|
|
22942
22942
|
}
|
|
22943
|
+
function ResearchSessionSummaryFromApiToFront(raw) {
|
|
22944
|
+
const dto = raw;
|
|
22945
|
+
return {
|
|
22946
|
+
sessionId: dto.session_id,
|
|
22947
|
+
question: dto.question,
|
|
22948
|
+
status: dto.status,
|
|
22949
|
+
totalPapersIngested: dto.total_papers_ingested,
|
|
22950
|
+
totalFindings: dto.total_findings,
|
|
22951
|
+
totalContradictions: dto.total_contradictions,
|
|
22952
|
+
totalGaps: dto.total_gaps,
|
|
22953
|
+
createdAt: dto.created_at,
|
|
22954
|
+
updatedAt: dto.updated_at
|
|
22955
|
+
};
|
|
22956
|
+
}
|
|
22957
|
+
function ListResearchSessionsResponseFromApiToFront(raw) {
|
|
22958
|
+
const dto = raw;
|
|
22959
|
+
return {
|
|
22960
|
+
sessions: (dto.sessions ?? []).map(ResearchSessionSummaryFromApiToFront)
|
|
22961
|
+
};
|
|
22962
|
+
}
|
|
22943
22963
|
function ResearchCycleResponseFromApiToFront(raw) {
|
|
22944
22964
|
const dto = raw;
|
|
22945
22965
|
return {
|
|
@@ -23186,6 +23206,30 @@ var ResearchClient = class {
|
|
|
23186
23206
|
});
|
|
23187
23207
|
return ResearchSessionResponseFromApiToFront(response.data);
|
|
23188
23208
|
}
|
|
23209
|
+
/**
|
|
23210
|
+
* List the current tenant's research sessions, newest first.
|
|
23211
|
+
*
|
|
23212
|
+
* Tenant-scoped via the `X-Tenant-Id` header (set on the client), mirroring
|
|
23213
|
+
* how conversations are listed. Returns lightweight summaries — use
|
|
23214
|
+
* {@link getSession} / {@link getReport} for a session's full detail.
|
|
23215
|
+
*
|
|
23216
|
+
* @returns The tenant's session summaries.
|
|
23217
|
+
*
|
|
23218
|
+
* @example
|
|
23219
|
+
* ```ts
|
|
23220
|
+
* const { sessions } = await client.research.listSessions();
|
|
23221
|
+
* sessions.forEach((s) => console.log(s.sessionId, s.status, s.question));
|
|
23222
|
+
* ```
|
|
23223
|
+
*/
|
|
23224
|
+
async listSessions() {
|
|
23225
|
+
const response = await this.http.request({
|
|
23226
|
+
path: `/api/v1/research/sessions`,
|
|
23227
|
+
method: "GET",
|
|
23228
|
+
secure: true,
|
|
23229
|
+
format: "json"
|
|
23230
|
+
});
|
|
23231
|
+
return ListResearchSessionsResponseFromApiToFront(response.data);
|
|
23232
|
+
}
|
|
23189
23233
|
/**
|
|
23190
23234
|
* Run a single research cycle within a session.
|
|
23191
23235
|
*
|
|
@@ -23251,6 +23295,33 @@ var ResearchClient = class {
|
|
|
23251
23295
|
});
|
|
23252
23296
|
return ResearchSessionResponseFromApiToFront(response.data);
|
|
23253
23297
|
}
|
|
23298
|
+
/**
|
|
23299
|
+
* Resume an interrupted or failed research session.
|
|
23300
|
+
*
|
|
23301
|
+
* A session left in a non-`Completed` state — e.g. swept to `Failed` after a
|
|
23302
|
+
* server restart killed its in-process pipeline — is otherwise stuck. Resuming
|
|
23303
|
+
* re-runs the pipeline, continuing from the session's persisted partial
|
|
23304
|
+
* progress (papers ingested, findings, cycles), and can reach `Completed`.
|
|
23305
|
+
* Like {@link runToCompletion} the run is long-lived server-side; the UI
|
|
23306
|
+
* typically calls this fire-and-forget and polls {@link getSession}.
|
|
23307
|
+
*
|
|
23308
|
+
* @param sessionId - The session ID (UUID) to resume.
|
|
23309
|
+
* @throws {ApiError} 409 if the session is already `Completed`, 404 if unknown.
|
|
23310
|
+
*
|
|
23311
|
+
* @example
|
|
23312
|
+
* ```ts
|
|
23313
|
+
* await client.research.resumeSession('session-uuid');
|
|
23314
|
+
* ```
|
|
23315
|
+
*/
|
|
23316
|
+
async resumeSession(sessionId) {
|
|
23317
|
+
const response = await this.http.request({
|
|
23318
|
+
path: `/api/v1/research/sessions/${encodeURIComponent(sessionId)}/resume`,
|
|
23319
|
+
method: "POST",
|
|
23320
|
+
secure: true,
|
|
23321
|
+
format: "json"
|
|
23322
|
+
});
|
|
23323
|
+
return ResearchSessionResponseFromApiToFront(response.data);
|
|
23324
|
+
}
|
|
23254
23325
|
/**
|
|
23255
23326
|
* Delete a research session and all associated data.
|
|
23256
23327
|
*
|