@kortexya/reasoninglayer 1.8.1 → 1.9.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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +5 -3
- 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.9.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -37371,6 +37371,16 @@ interface AnalyzeDocumentsRequest {
|
|
|
37371
37371
|
/** Max rules to evaluate per document (0 = unlimited, the default). */
|
|
37372
37372
|
maxRules?: number;
|
|
37373
37373
|
}
|
|
37374
|
+
/** Per-call options for {@link DocumentsClient.analyze}. */
|
|
37375
|
+
interface AnalyzeOptions {
|
|
37376
|
+
/**
|
|
37377
|
+
* Abort signal to cancel the in-flight analysis request. Analyse runs many
|
|
37378
|
+
* sequential LLM calls per document and can take a while, so callers (e.g. a
|
|
37379
|
+
* "Cancel" button) can pass an {@link AbortController} signal to tear the
|
|
37380
|
+
* request down rather than waiting for it to complete.
|
|
37381
|
+
*/
|
|
37382
|
+
signal?: AbortSignal;
|
|
37383
|
+
}
|
|
37374
37384
|
/** Status of a single rule check. */
|
|
37375
37385
|
type DocumentRuleStatus = 'pass' | 'fail' | 'inconclusive' | 'not_applicable';
|
|
37376
37386
|
/** Severity of a single rule. */
|
|
@@ -37450,6 +37460,7 @@ interface DocumentAnalysisReport {
|
|
|
37450
37460
|
}
|
|
37451
37461
|
|
|
37452
37462
|
type documents_AnalyzeDocumentsRequest = AnalyzeDocumentsRequest;
|
|
37463
|
+
type documents_AnalyzeOptions = AnalyzeOptions;
|
|
37453
37464
|
type documents_DocumentAnalysisReport = DocumentAnalysisReport;
|
|
37454
37465
|
type documents_DocumentExtractedEntity = DocumentExtractedEntity;
|
|
37455
37466
|
type documents_DocumentInput = DocumentInput;
|
|
@@ -37459,7 +37470,7 @@ type documents_DocumentRuleResult = DocumentRuleResult;
|
|
|
37459
37470
|
type documents_DocumentRuleSeverity = DocumentRuleSeverity;
|
|
37460
37471
|
type documents_DocumentRuleStatus = DocumentRuleStatus;
|
|
37461
37472
|
declare namespace documents {
|
|
37462
|
-
export type { documents_AnalyzeDocumentsRequest as AnalyzeDocumentsRequest, documents_DocumentAnalysisReport as DocumentAnalysisReport, documents_DocumentExtractedEntity as DocumentExtractedEntity, documents_DocumentInput as DocumentInput, documents_DocumentProofStep as DocumentProofStep, documents_DocumentResult as DocumentResult, documents_DocumentRuleResult as DocumentRuleResult, documents_DocumentRuleSeverity as DocumentRuleSeverity, documents_DocumentRuleStatus as DocumentRuleStatus };
|
|
37473
|
+
export type { documents_AnalyzeDocumentsRequest as AnalyzeDocumentsRequest, documents_AnalyzeOptions as AnalyzeOptions, documents_DocumentAnalysisReport as DocumentAnalysisReport, documents_DocumentExtractedEntity as DocumentExtractedEntity, documents_DocumentInput as DocumentInput, documents_DocumentProofStep as DocumentProofStep, documents_DocumentResult as DocumentResult, documents_DocumentRuleResult as DocumentRuleResult, documents_DocumentRuleSeverity as DocumentRuleSeverity, documents_DocumentRuleStatus as DocumentRuleStatus };
|
|
37463
37474
|
}
|
|
37464
37475
|
|
|
37465
37476
|
/**
|
|
@@ -37483,9 +37494,10 @@ declare class DocumentsClient {
|
|
|
37483
37494
|
* Analyse documents against the knowledge base's compliance rules.
|
|
37484
37495
|
*
|
|
37485
37496
|
* @param request - Documents (name + content) plus optional rule-sort focus.
|
|
37497
|
+
* @param options - Per-call options (e.g. an {@link AbortSignal} to cancel).
|
|
37486
37498
|
* @returns Per-document rule results, scores, entities and proof traces.
|
|
37487
37499
|
*/
|
|
37488
|
-
analyze(request: AnalyzeDocumentsRequest): Promise<DocumentAnalysisReport>;
|
|
37500
|
+
analyze(request: AnalyzeDocumentsRequest, options?: AnalyzeOptions): Promise<DocumentAnalysisReport>;
|
|
37489
37501
|
}
|
|
37490
37502
|
|
|
37491
37503
|
declare class Oversight<SecurityDataType = unknown> {
|
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.9.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -37371,6 +37371,16 @@ interface AnalyzeDocumentsRequest {
|
|
|
37371
37371
|
/** Max rules to evaluate per document (0 = unlimited, the default). */
|
|
37372
37372
|
maxRules?: number;
|
|
37373
37373
|
}
|
|
37374
|
+
/** Per-call options for {@link DocumentsClient.analyze}. */
|
|
37375
|
+
interface AnalyzeOptions {
|
|
37376
|
+
/**
|
|
37377
|
+
* Abort signal to cancel the in-flight analysis request. Analyse runs many
|
|
37378
|
+
* sequential LLM calls per document and can take a while, so callers (e.g. a
|
|
37379
|
+
* "Cancel" button) can pass an {@link AbortController} signal to tear the
|
|
37380
|
+
* request down rather than waiting for it to complete.
|
|
37381
|
+
*/
|
|
37382
|
+
signal?: AbortSignal;
|
|
37383
|
+
}
|
|
37374
37384
|
/** Status of a single rule check. */
|
|
37375
37385
|
type DocumentRuleStatus = 'pass' | 'fail' | 'inconclusive' | 'not_applicable';
|
|
37376
37386
|
/** Severity of a single rule. */
|
|
@@ -37450,6 +37460,7 @@ interface DocumentAnalysisReport {
|
|
|
37450
37460
|
}
|
|
37451
37461
|
|
|
37452
37462
|
type documents_AnalyzeDocumentsRequest = AnalyzeDocumentsRequest;
|
|
37463
|
+
type documents_AnalyzeOptions = AnalyzeOptions;
|
|
37453
37464
|
type documents_DocumentAnalysisReport = DocumentAnalysisReport;
|
|
37454
37465
|
type documents_DocumentExtractedEntity = DocumentExtractedEntity;
|
|
37455
37466
|
type documents_DocumentInput = DocumentInput;
|
|
@@ -37459,7 +37470,7 @@ type documents_DocumentRuleResult = DocumentRuleResult;
|
|
|
37459
37470
|
type documents_DocumentRuleSeverity = DocumentRuleSeverity;
|
|
37460
37471
|
type documents_DocumentRuleStatus = DocumentRuleStatus;
|
|
37461
37472
|
declare namespace documents {
|
|
37462
|
-
export type { documents_AnalyzeDocumentsRequest as AnalyzeDocumentsRequest, documents_DocumentAnalysisReport as DocumentAnalysisReport, documents_DocumentExtractedEntity as DocumentExtractedEntity, documents_DocumentInput as DocumentInput, documents_DocumentProofStep as DocumentProofStep, documents_DocumentResult as DocumentResult, documents_DocumentRuleResult as DocumentRuleResult, documents_DocumentRuleSeverity as DocumentRuleSeverity, documents_DocumentRuleStatus as DocumentRuleStatus };
|
|
37473
|
+
export type { documents_AnalyzeDocumentsRequest as AnalyzeDocumentsRequest, documents_AnalyzeOptions as AnalyzeOptions, documents_DocumentAnalysisReport as DocumentAnalysisReport, documents_DocumentExtractedEntity as DocumentExtractedEntity, documents_DocumentInput as DocumentInput, documents_DocumentProofStep as DocumentProofStep, documents_DocumentResult as DocumentResult, documents_DocumentRuleResult as DocumentRuleResult, documents_DocumentRuleSeverity as DocumentRuleSeverity, documents_DocumentRuleStatus as DocumentRuleStatus };
|
|
37463
37474
|
}
|
|
37464
37475
|
|
|
37465
37476
|
/**
|
|
@@ -37483,9 +37494,10 @@ declare class DocumentsClient {
|
|
|
37483
37494
|
* Analyse documents against the knowledge base's compliance rules.
|
|
37484
37495
|
*
|
|
37485
37496
|
* @param request - Documents (name + content) plus optional rule-sort focus.
|
|
37497
|
+
* @param options - Per-call options (e.g. an {@link AbortSignal} to cancel).
|
|
37486
37498
|
* @returns Per-document rule results, scores, entities and proof traces.
|
|
37487
37499
|
*/
|
|
37488
|
-
analyze(request: AnalyzeDocumentsRequest): Promise<DocumentAnalysisReport>;
|
|
37500
|
+
analyze(request: AnalyzeDocumentsRequest, options?: AnalyzeOptions): Promise<DocumentAnalysisReport>;
|
|
37489
37501
|
}
|
|
37490
37502
|
|
|
37491
37503
|
declare class Oversight<SecurityDataType = unknown> {
|
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.9.0";
|
|
9
9
|
function resolveConfig(config) {
|
|
10
10
|
if (!config.baseUrl) {
|
|
11
11
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -18587,11 +18587,13 @@ var DocumentsClient = class {
|
|
|
18587
18587
|
* Analyse documents against the knowledge base's compliance rules.
|
|
18588
18588
|
*
|
|
18589
18589
|
* @param request - Documents (name + content) plus optional rule-sort focus.
|
|
18590
|
+
* @param options - Per-call options (e.g. an {@link AbortSignal} to cancel).
|
|
18590
18591
|
* @returns Per-document rule results, scores, entities and proof traces.
|
|
18591
18592
|
*/
|
|
18592
|
-
async analyze(request) {
|
|
18593
|
+
async analyze(request, options) {
|
|
18593
18594
|
const response = await this.api.analyzeDocuments(
|
|
18594
|
-
AnalyzeDocumentsRequestFromFrontToApi(request)
|
|
18595
|
+
AnalyzeDocumentsRequestFromFrontToApi(request),
|
|
18596
|
+
{ signal: options?.signal }
|
|
18595
18597
|
);
|
|
18596
18598
|
return DocumentAnalysisResponseFromApiToFront(response.data);
|
|
18597
18599
|
}
|