@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/dist/reviews.d.ts CHANGED
@@ -107,10 +107,14 @@ export interface ReviewSummary {
107
107
  nodeType: string | null;
108
108
  instructions?: string;
109
109
  };
110
- documents: ReviewDocument[];
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docmana/sdk",
3
- "version": "0.36.0-hitl.2",
3
+ "version": "0.36.0",
4
4
  "description": "Official Docmana SDK — run document-analysis flows with a single call.",
5
5
  "license": "MIT",
6
6
  "type": "module",