@docmana/sdk 0.36.0 → 0.37.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/CHANGELOG.md +8 -0
- package/README.md +13 -0
- package/dist/cli.mjs +5 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +18 -0
- package/package.json +1 -1
package/dist/reviews.d.ts
CHANGED
|
@@ -62,6 +62,18 @@ export interface ReviewItem {
|
|
|
62
62
|
nodeName: string;
|
|
63
63
|
field: string;
|
|
64
64
|
value: unknown;
|
|
65
|
+
origin?: "proposed" | "confirmed" | "corrected";
|
|
66
|
+
originalValue?: unknown;
|
|
67
|
+
}
|
|
68
|
+
/** Captured node outputs. Downstream and dossier results are read-only. */
|
|
69
|
+
export interface ReviewStep {
|
|
70
|
+
nodeId: string;
|
|
71
|
+
nodeName: string | null;
|
|
72
|
+
nodeType: string;
|
|
73
|
+
documentType?: string;
|
|
74
|
+
status: "provisional" | "failed" | "notExecuted";
|
|
75
|
+
score?: number;
|
|
76
|
+
items?: ReviewItem[];
|
|
65
77
|
}
|
|
66
78
|
export interface ReviewDocument {
|
|
67
79
|
docKey: string;
|
|
@@ -78,7 +90,9 @@ export interface ReviewDocument {
|
|
|
78
90
|
pagesComplete?: boolean;
|
|
79
91
|
contentUrl?: string;
|
|
80
92
|
items?: ReviewItem[];
|
|
93
|
+
/** Upstream fields/classifications may be corrected via continue; Core validates eligibility. */
|
|
81
94
|
context?: ReviewItem[];
|
|
95
|
+
downstream?: ReviewStep[];
|
|
82
96
|
/** Read-only evidence from the frozen pause; absent on older backends. */
|
|
83
97
|
assessments?: ReviewAssessment[];
|
|
84
98
|
}
|
|
@@ -115,6 +129,8 @@ export interface ReviewSummary {
|
|
|
115
129
|
}
|
|
116
130
|
export interface ReviewTask extends ReviewSummary {
|
|
117
131
|
documents: ReviewDocument[];
|
|
132
|
+
dossierContext?: Record<string, unknown>;
|
|
133
|
+
dossierResults?: ReviewStep[];
|
|
118
134
|
/** Explicit frozen field signals. Missing/empty keeps legacy UI and global confirmation. */
|
|
119
135
|
findings?: ReviewFinding[];
|
|
120
136
|
/** Native lifecycle timestamps, absent on older backends; never inferred from callbacks. */
|
|
@@ -134,11 +150,13 @@ export interface ReviewDecision {
|
|
|
134
150
|
decision: "continue" | "exclude" | "rerun" | "reject";
|
|
135
151
|
reviewer: string;
|
|
136
152
|
version: number;
|
|
153
|
+
/** Current items or upstream context fields/classifications, never downstream/status items. */
|
|
137
154
|
corrections?: Array<{
|
|
138
155
|
itemId: string;
|
|
139
156
|
value: unknown;
|
|
140
157
|
reason?: string;
|
|
141
158
|
}>;
|
|
159
|
+
/** Confirmations are limited to the current node's items. */
|
|
142
160
|
confirmations?: string[];
|
|
143
161
|
durationSeconds?: number;
|
|
144
162
|
excludedDocuments?: string[];
|