@docmana/sdk 0.36.0-hitl.2 → 0.36.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 +11 -0
- package/LICENSE +21 -21
- package/README.md +14 -1
- package/dist/cli.mjs +28 -6
- package/dist/cli.mjs.map +1 -1
- package/dist/errors.d.ts +17 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +28 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -6
- package/dist/index.mjs.map +1 -1
- package/dist/reviews.d.ts +9 -1
- package/package.json +1 -1
package/dist/reviews.d.ts
CHANGED
|
@@ -107,10 +107,14 @@ export interface ReviewSummary {
|
|
|
107
107
|
nodeType: string | null;
|
|
108
108
|
instructions?: string;
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
/** The pending-list envelope omits document data. Read the selected task for it. */
|
|
111
|
+
documents?: ReviewDocument[];
|
|
111
112
|
level?: "dossier";
|
|
113
|
+
priority?: "low" | "normal" | "high" | "urgent" | null;
|
|
114
|
+
waitingSince?: string | null;
|
|
112
115
|
}
|
|
113
116
|
export interface ReviewTask extends ReviewSummary {
|
|
117
|
+
documents: ReviewDocument[];
|
|
114
118
|
/** Explicit frozen field signals. Missing/empty keeps legacy UI and global confirmation. */
|
|
115
119
|
findings?: ReviewFinding[];
|
|
116
120
|
/** Native lifecycle timestamps, absent on older backends; never inferred from callbacks. */
|
|
@@ -133,7 +137,10 @@ export interface ReviewDecision {
|
|
|
133
137
|
corrections?: Array<{
|
|
134
138
|
itemId: string;
|
|
135
139
|
value: unknown;
|
|
140
|
+
reason?: string;
|
|
136
141
|
}>;
|
|
142
|
+
confirmations?: string[];
|
|
143
|
+
durationSeconds?: number;
|
|
137
144
|
excludedDocuments?: string[];
|
|
138
145
|
rerunDocuments?: string[];
|
|
139
146
|
hint?: string;
|
|
@@ -160,6 +167,7 @@ export declare class Reviews {
|
|
|
160
167
|
/** Published formula structure only. Compare its version with the review's flowVersion. */
|
|
161
168
|
outline(flowId: string, options: ReviewReadOptions): Promise<ReviewFlowOutline>;
|
|
162
169
|
list(options: ReviewReadOptions & {
|
|
170
|
+
/** The native API serves pending only. Other values are retained for older POC callers. */
|
|
163
171
|
status?: "pending" | "submitted" | "resuming";
|
|
164
172
|
cursor?: string;
|
|
165
173
|
limit?: number;
|