@anyformat/sdk 1.7.0 → 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.d.cts CHANGED
@@ -1700,7 +1700,7 @@ type PublicExtractNode = {
1700
1700
  /**
1701
1701
  * Use Images
1702
1702
  *
1703
- * Standard/lite modes: send each PDF page's rendered image alongside its parsed text so the model can read layout the text missed — adds vision cost on every page.
1703
+ * Retired — accepted for compatibility, ignored. Extraction reads the parsed text only.
1704
1704
  */
1705
1705
  use_images?: boolean;
1706
1706
  };
@@ -1751,6 +1751,12 @@ type PublicIfElseNode = {
1751
1751
  * PublicParseNode
1752
1752
  */
1753
1753
  type PublicParseNode = {
1754
+ /**
1755
+ * Annotation Reading
1756
+ *
1757
+ * Standard mode, experimental: re-read handwritten numbers inside larger blocks on their own high-resolution crop, and mark handwriting in the markdown as <handwritten>. Ignored in agentic, lite and flash.
1758
+ */
1759
+ annotation_reading?: boolean;
1754
1760
  /**
1755
1761
  * Cache
1756
1762
  *
@@ -2864,6 +2870,7 @@ declare class WorkflowBuilder {
2864
2870
  lookupFiles?: string[];
2865
2871
  lookupSuggestion?: string;
2866
2872
  lookupReasoningEffort?: ReasoningEffort;
2873
+ /** @deprecated Retired: the server ignores it. */
2867
2874
  useImages?: boolean;
2868
2875
  }): this;
2869
2876
  validate(rules: ValidationRule[], opts?: {
package/dist/index.d.ts CHANGED
@@ -1700,7 +1700,7 @@ type PublicExtractNode = {
1700
1700
  /**
1701
1701
  * Use Images
1702
1702
  *
1703
- * Standard/lite modes: send each PDF page's rendered image alongside its parsed text so the model can read layout the text missed — adds vision cost on every page.
1703
+ * Retired — accepted for compatibility, ignored. Extraction reads the parsed text only.
1704
1704
  */
1705
1705
  use_images?: boolean;
1706
1706
  };
@@ -1751,6 +1751,12 @@ type PublicIfElseNode = {
1751
1751
  * PublicParseNode
1752
1752
  */
1753
1753
  type PublicParseNode = {
1754
+ /**
1755
+ * Annotation Reading
1756
+ *
1757
+ * Standard mode, experimental: re-read handwritten numbers inside larger blocks on their own high-resolution crop, and mark handwriting in the markdown as <handwritten>. Ignored in agentic, lite and flash.
1758
+ */
1759
+ annotation_reading?: boolean;
1754
1760
  /**
1755
1761
  * Cache
1756
1762
  *
@@ -2864,6 +2870,7 @@ declare class WorkflowBuilder {
2864
2870
  lookupFiles?: string[];
2865
2871
  lookupSuggestion?: string;
2866
2872
  lookupReasoningEffort?: ReasoningEffort;
2873
+ /** @deprecated Retired: the server ignores it. */
2867
2874
  useImages?: boolean;
2868
2875
  }): this;
2869
2876
  validate(rules: ValidationRule[], opts?: {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@anyformat/sdk",
4
- version: "1.7.0",
4
+ version: "1.9.0",
5
5
  description: "TypeScript SDK for the AnyFormat API",
6
6
  license: "MIT",
7
7
  author: "Anyformat <info@anyformat.ai>",
@@ -1484,8 +1484,7 @@ var WorkflowBuilder = class {
1484
1484
  extraction_schema: { fields },
1485
1485
  ...lookupFileUploads.length > 0 ? { lookup_file_uploads: lookupFileUploads } : {},
1486
1486
  ...opts.lookupSuggestion !== void 0 ? { lookup_suggestion: opts.lookupSuggestion } : {},
1487
- ...opts.lookupReasoningEffort !== void 0 ? { lookup_reasoning_effort: opts.lookupReasoningEffort } : {},
1488
- ...opts.useImages !== void 0 ? { use_images: opts.useImages } : {}
1487
+ ...opts.lookupReasoningEffort !== void 0 ? { lookup_reasoning_effort: opts.lookupReasoningEffort } : {}
1489
1488
  };
1490
1489
  this.extracts.push([node, branchId]);
1491
1490
  return this;