xberg 1.2.9 → 1.3.2

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.
data/lib/xberg/version.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:af0361b6e9fb7d4844fed422cc5ad28ac7fdea52beb041fa1a3ab043aec2d450
2
+ # alef:hash:c7a2e4c0b7a9168d08ef7f09b8b967926ae2bdff61094ac93d54a86a9813924d
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
  # frozen_string_literal: true
6
6
 
7
7
  module Xberg
8
8
  ## The version string for this package.
9
- VERSION = "1.2.9"
9
+ VERSION = "1.3.2"
10
10
  end
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:060fee672abbcdc0cf88ae2c4c85dc76420919f28c17b4cd7ccbd449f6d319b1
2
+ # alef:hash:714d17cb31a0dbcf05ffbfd2931268de7747a7876060ed07e56d20da729e9edf
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
@@ -96,6 +96,8 @@ def initialize: (?entry_count: Integer, ?citation_keys: Array[String], ?authors:
96
96
  attr_reader backend: enum_BrowserBackend
97
97
  attr_reader endpoint: String?
98
98
  attr_reader timeout: Integer
99
+ attr_reader overall_timeout: Integer
100
+ attr_reader shutdown_timeout: Integer
99
101
  attr_reader wait: enum_BrowserWait
100
102
  attr_reader wait_selector: String?
101
103
  attr_reader extra_wait: Integer?
@@ -106,7 +108,7 @@ def initialize: (?entry_count: Integer, ?citation_keys: Array[String], ?authors:
106
108
  attr_reader capture_network_events: bool
107
109
  attr_reader session_affinity: bool
108
110
 
109
- def initialize: (?mode: enum_BrowserMode, ?backend: enum_BrowserBackend, ?endpoint: String, ?timeout: Integer, ?wait: enum_BrowserWait, ?wait_selector: String, ?extra_wait: Integer, ?proxy: ProxyConfig, ?block_url_patterns: Array[String], ?eval_script: String, ?robots_user_agent: String, ?capture_network_events: bool, ?session_affinity: bool) -> void
111
+ def initialize: (?mode: enum_BrowserMode, ?backend: enum_BrowserBackend, ?endpoint: String, ?timeout: Integer, ?overall_timeout: Integer, ?shutdown_timeout: Integer, ?wait: enum_BrowserWait, ?wait_selector: String, ?extra_wait: Integer, ?proxy: ProxyConfig, ?block_url_patterns: Array[String], ?eval_script: String, ?robots_user_agent: String, ?capture_network_events: bool, ?session_affinity: bool) -> void
110
112
  end
111
113
 
112
114
  class CacheStats
@@ -123,8 +125,9 @@ def initialize: (?mode: enum_BrowserMode, ?backend: enum_BrowserBackend, ?endpoi
123
125
  attr_reader llm: LlmConfig
124
126
  attr_reader prompt: String?
125
127
  attr_reader min_image_area: Integer
128
+ attr_reader alt_text: enum_CaptionAltTextMode
126
129
 
127
- def initialize: (llm: LlmConfig, ?prompt: String, min_image_area: Integer) -> void
130
+ def initialize: (llm: LlmConfig, ?prompt: String, min_image_area: Integer, alt_text: enum_CaptionAltTextMode) -> void
128
131
  end
129
132
 
130
133
  class CellChange
@@ -297,8 +300,9 @@ def initialize: (?chunks: Array[CodeChunkInfo], ?data: CodeDataNode) -> void
297
300
  attr_reader wrap: bool
298
301
  attr_reader wrap_width: Integer
299
302
  attr_reader include_document_structure: bool
303
+ attr_reader extract_metadata: bool
300
304
 
301
- def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_navigation: bool, ?remove_forms: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?exclude_selectors: Array[String], ?skip_images: bool, ?max_depth: Integer, ?wrap: bool, ?wrap_width: Integer, ?include_document_structure: bool) -> void
305
+ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_navigation: bool, ?remove_forms: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?exclude_selectors: Array[String], ?skip_images: bool, ?max_depth: Integer, ?wrap: bool, ?wrap_width: Integer, ?include_document_structure: bool, ?extract_metadata: bool) -> void
302
306
  end
303
307
 
304
308
  class ContentFilterConfig
@@ -362,8 +366,9 @@ def initialize: (?output_format: String, ?preprocessing_preset: String, ?remove_
362
366
  attr_reader max_depth: Integer?
363
367
  attr_reader exclude_selectors: Array[String]
364
368
  attr_reader tier_strategy: enum_TierStrategy
369
+ attr_reader base_url: String?
365
370
 
366
- def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy) -> void
371
+ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String) -> void
367
372
  end
368
373
 
369
374
  class CoreProperties
@@ -402,12 +407,19 @@ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_List
402
407
  attr_reader allow_subdomains: bool
403
408
  attr_reader include_paths: Array[String]
404
409
  attr_reader exclude_paths: Array[String]
410
+ attr_reader path_patterns_match_query: bool
411
+ attr_reader dedup_include_query: bool
412
+ attr_reader strip_tracking_params: bool
413
+ attr_reader tracking_params: Array[String]
405
414
  attr_reader custom_headers: Hash[String, String]
406
415
  attr_reader request_timeout: Integer
407
416
  attr_reader rate_limit_ms: Integer?
408
417
  attr_reader max_redirects: Integer
409
418
  attr_reader retry_count: Integer
410
419
  attr_reader retry_codes: Array[Integer]
420
+ attr_reader retry_initial_delay_ms: Integer
421
+ attr_reader retry_max_delay_ms: Integer
422
+ attr_reader rate_limit_jitter_ratio: Float
411
423
  attr_reader cookies_enabled: bool
412
424
  attr_reader auth: AuthConfig?
413
425
  attr_reader max_body_size: Integer?
@@ -435,7 +447,7 @@ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_List
435
447
  attr_reader ssrf: SsrfPolicy
436
448
  attr_reader ssrf_deny_private_explicit: bool?
437
449
 
438
- def initialize: (?max_depth: Integer, ?max_pages: Integer, ?max_links_per_page: Integer, ?max_concurrent: Integer, ?crawl_strategy: enum_CrawlStrategyKind, ?content_filter: enum_ContentFilterKind, ?bm25_query: String, ?bm25_threshold: Float, ?respect_robots_txt: bool, ?soft_http_errors: bool, ?user_agent: String, ?stay_on_domain: bool, ?allow_subdomains: bool, ?include_paths: Array[String], ?exclude_paths: Array[String], ?custom_headers: Hash[String, String], ?request_timeout: Integer, ?rate_limit_ms: Integer, ?max_redirects: Integer, ?retry_count: Integer, ?retry_codes: Array[Integer], ?cookies_enabled: bool, ?auth: AuthConfig, ?max_body_size: Integer, ?remove_tags: Array[String], ?content: ContentConfig, ?map_limit: Integer, ?map_search: String, ?download_assets: bool, ?asset_types: Array[enum_AssetCategory], ?max_asset_size: Integer, ?browser: BrowserConfig, ?proxy: ProxyConfig, ?user_agents: Array[String], ?capture_screenshot: bool, ?follow_document_urls: bool, ?document_url_depth: Integer, ?download_documents: bool, ?document_max_size: Integer, ?document_mime_types: Array[String], ?document_output_dir: String, ?document_content_encoding: enum_DocumentContentEncoding, ?warc_output: String, ?browser_profile: String, ?save_browser_profile: bool, ?ssrf: SsrfPolicy, ?ssrf_deny_private_explicit: bool) -> void
450
+ def initialize: (?max_depth: Integer, ?max_pages: Integer, ?max_links_per_page: Integer, ?max_concurrent: Integer, ?crawl_strategy: enum_CrawlStrategyKind, ?content_filter: enum_ContentFilterKind, ?bm25_query: String, ?bm25_threshold: Float, ?respect_robots_txt: bool, ?soft_http_errors: bool, ?user_agent: String, ?stay_on_domain: bool, ?allow_subdomains: bool, ?include_paths: Array[String], ?exclude_paths: Array[String], ?path_patterns_match_query: bool, ?dedup_include_query: bool, ?strip_tracking_params: bool, ?tracking_params: Array[String], ?custom_headers: Hash[String, String], ?request_timeout: Integer, ?rate_limit_ms: Integer, ?max_redirects: Integer, ?retry_count: Integer, ?retry_codes: Array[Integer], ?retry_initial_delay_ms: Integer, ?retry_max_delay_ms: Integer, ?rate_limit_jitter_ratio: Float, ?cookies_enabled: bool, ?auth: AuthConfig, ?max_body_size: Integer, ?remove_tags: Array[String], ?content: ContentConfig, ?map_limit: Integer, ?map_search: String, ?download_assets: bool, ?asset_types: Array[enum_AssetCategory], ?max_asset_size: Integer, ?browser: BrowserConfig, ?proxy: ProxyConfig, ?user_agents: Array[String], ?capture_screenshot: bool, ?follow_document_urls: bool, ?document_url_depth: Integer, ?download_documents: bool, ?document_max_size: Integer, ?document_mime_types: Array[String], ?document_output_dir: String, ?document_content_encoding: enum_DocumentContentEncoding, ?warc_output: String, ?browser_profile: String, ?save_browser_profile: bool, ?ssrf: SsrfPolicy, ?ssrf_deny_private_explicit: bool) -> void
439
451
  end
440
452
 
441
453
  class CsvConfig
@@ -834,6 +846,16 @@ def initialize: (name: String, markdown: String, row_count: Integer, col_count:
834
846
  def initialize: (sheets: Array[ExcelSheet], metadata: Hash[String, String], ?revisions: Array[DocumentRevision]) -> void
835
847
  end
836
848
 
849
+ class ExternalRedactionFinding
850
+ attr_reader label: String
851
+ attr_reader text: String?
852
+ attr_reader start: Integer?
853
+ attr_reader end: Integer?
854
+ attr_reader score: Float?
855
+
856
+ def initialize: (?label: String, ?text: String, ?start: Integer, ?end: Integer, ?score: Float) -> void
857
+ end
858
+
837
859
  class ExtractInput
838
860
  attr_reader kind: enum_ExtractInputKind
839
861
  attr_reader bytes: String?
@@ -1319,8 +1341,9 @@ def initialize: (src: String, ?alt: String, ?title: String, ?dimensions: ImageDi
1319
1341
  attr_reader contrast_enhance: bool
1320
1342
  attr_reader binarization_method: String
1321
1343
  attr_reader invert_colors: bool
1344
+ attr_reader normalize_shaded_rows: bool
1322
1345
 
1323
- def initialize: (?target_dpi: Integer, ?auto_rotate: bool, ?deskew: bool, ?denoise: bool, ?contrast_enhance: bool, ?binarization_method: String, ?invert_colors: bool) -> void
1346
+ def initialize: (?target_dpi: Integer, ?auto_rotate: bool, ?deskew: bool, ?denoise: bool, ?contrast_enhance: bool, ?binarization_method: String, ?invert_colors: bool, ?normalize_shaded_rows: bool) -> void
1324
1347
  end
1325
1348
 
1326
1349
  class ImagePreprocessingMetadata
@@ -1680,6 +1703,7 @@ def initialize: (name: String, supported_languages: Array[String]) -> void
1680
1703
  attr_reader tesseract_config: TesseractConfig?
1681
1704
  attr_reader output_format: OutputFormat?
1682
1705
  attr_reader paddle_ocr_config: String?
1706
+ attr_reader paddle_ocr_settings: PaddleOcrConfig?
1683
1707
  attr_reader backend_options: String?
1684
1708
  attr_reader element_config: OcrElementConfig?
1685
1709
  attr_reader quality_thresholds: OcrQualityThresholds?
@@ -1692,8 +1716,9 @@ def initialize: (name: String, supported_languages: Array[String]) -> void
1692
1716
  attr_reader security_limits: SecurityLimits?
1693
1717
  attr_reader tessdata_bytes: Hash[String, String]?
1694
1718
  attr_reader tessdata_path: String?
1719
+ attr_reader numeric_repair: bool
1695
1720
 
1696
- def initialize: (?enabled: bool, ?backend: String, ?language: Array[String], ?tesseract_config: TesseractConfig, ?output_format: OutputFormat, ?paddle_ocr_config: String, ?backend_options: String, ?element_config: OcrElementConfig, ?quality_thresholds: OcrQualityThresholds, ?pipeline: OcrPipelineConfig, ?auto_rotate: bool, ?vlm_fallback: VlmFallbackPolicy, ?vlm_config: LlmConfig, ?vlm_prompt: String, ?acceleration: AccelerationConfig, ?security_limits: SecurityLimits, ?tessdata_bytes: Hash[String, String], ?tessdata_path: String) -> void
1721
+ def initialize: (?enabled: bool, ?backend: String, ?language: Array[String], ?tesseract_config: TesseractConfig, ?output_format: OutputFormat, ?paddle_ocr_config: String, ?paddle_ocr_settings: PaddleOcrConfig, ?backend_options: String, ?element_config: OcrElementConfig, ?quality_thresholds: OcrQualityThresholds, ?pipeline: OcrPipelineConfig, ?auto_rotate: bool, ?vlm_fallback: VlmFallbackPolicy, ?vlm_config: LlmConfig, ?vlm_prompt: String, ?acceleration: AccelerationConfig, ?security_limits: SecurityLimits, ?tessdata_bytes: Hash[String, String], ?tessdata_path: String, ?numeric_repair: bool) -> void
1697
1722
  end
1698
1723
 
1699
1724
  class OcrElement
@@ -1752,10 +1777,11 @@ def initialize: (stages: Array[OcrPipelineStage], quality_thresholds: OcrQuality
1752
1777
  attr_reader language: Array[String]?
1753
1778
  attr_reader tesseract_config: TesseractConfig?
1754
1779
  attr_reader paddle_ocr_config: String?
1780
+ attr_reader paddle_ocr_settings: PaddleOcrConfig?
1755
1781
  attr_reader vlm_config: LlmConfig?
1756
1782
  attr_reader backend_options: String?
1757
1783
 
1758
- def initialize: (backend: String, priority: Integer, ?language: Array[String], ?tesseract_config: TesseractConfig, ?paddle_ocr_config: String, ?vlm_config: LlmConfig, ?backend_options: String) -> void
1784
+ def initialize: (backend: String, priority: Integer, ?language: Array[String], ?tesseract_config: TesseractConfig, ?paddle_ocr_config: String, ?paddle_ocr_settings: PaddleOcrConfig, ?vlm_config: LlmConfig, ?backend_options: String) -> void
1759
1785
  end
1760
1786
 
1761
1787
  class OcrPoint
@@ -2251,8 +2277,12 @@ def initialize: (detection_bbox: BBox, cells: Array[Array[String]], markdown: St
2251
2277
  attr_reader preserve_offsets: bool
2252
2278
  attr_reader custom_terms: Array[RedactionTerm]
2253
2279
  attr_reader custom_patterns: Array[RedactionPattern]
2280
+ attr_reader findings: Array[ExternalRedactionFinding]
2281
+ attr_reader min_score: Float?
2282
+ attr_reader findings_path: String?
2283
+ attr_reader findings_offset_encoding: enum_RedactionOffsetEncoding
2254
2284
 
2255
- def initialize: (?categories: Array[PiiCategory], ?strategy: enum_RedactionStrategy, ?ner: NerConfig, ?preserve_offsets: bool, ?custom_terms: Array[RedactionTerm], ?custom_patterns: Array[RedactionPattern]) -> void
2285
+ def initialize: (?categories: Array[PiiCategory], ?strategy: enum_RedactionStrategy, ?ner: NerConfig, ?preserve_offsets: bool, ?custom_terms: Array[RedactionTerm], ?custom_patterns: Array[RedactionPattern], ?findings: Array[ExternalRedactionFinding], ?min_score: Float, ?findings_path: String, ?findings_offset_encoding: enum_RedactionOffsetEncoding) -> void
2256
2286
  def validate: () -> void
2257
2287
  end
2258
2288
 
@@ -2538,9 +2568,9 @@ def initialize: (?rows: Integer, ?cols: Integer, ?cells: Array[GridCell]) -> voi
2538
2568
  attr_reader tessedit_char_blacklist: String
2539
2569
  attr_reader tessedit_use_primary_params_model: bool
2540
2570
  attr_reader textord_space_size_is_variable: bool
2541
- attr_reader thresholding_method: bool
2571
+ attr_reader thresholding_method: Integer
2542
2572
 
2543
- def initialize: (?language: Array[String], ?psm: Integer, ?output_format: String, ?oem: Integer, ?min_confidence: Float, ?preprocessing: ImagePreprocessingConfig, ?enable_table_detection: bool, ?table_min_confidence: Float, ?table_column_threshold: Integer, ?table_row_threshold_ratio: Float, ?use_cache: bool, ?classify_use_pre_adapted_templates: bool, ?language_model_ngram_on: bool, ?tessedit_dont_blkrej_good_wds: bool, ?tessedit_dont_rowrej_good_wds: bool, ?tessedit_enable_dict_correction: bool, ?tessedit_char_whitelist: String, ?tessedit_char_blacklist: String, ?tessedit_use_primary_params_model: bool, ?textord_space_size_is_variable: bool, ?thresholding_method: bool) -> void
2573
+ def initialize: (?language: Array[String], ?psm: Integer, ?output_format: String, ?oem: Integer, ?min_confidence: Float, ?preprocessing: ImagePreprocessingConfig, ?enable_table_detection: bool, ?table_min_confidence: Float, ?table_column_threshold: Integer, ?table_row_threshold_ratio: Float, ?use_cache: bool, ?classify_use_pre_adapted_templates: bool, ?language_model_ngram_on: bool, ?tessedit_dont_blkrej_good_wds: bool, ?tessedit_dont_rowrej_good_wds: bool, ?tessedit_enable_dict_correction: bool, ?tessedit_char_whitelist: String, ?tessedit_char_blacklist: String, ?tessedit_use_primary_params_model: bool, ?textord_space_size_is_variable: bool, ?thresholding_method: Integer) -> void
2544
2574
  end
2545
2575
 
2546
2576
  class TextAnnotation
@@ -2758,6 +2788,8 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
2758
2788
 
2759
2789
  type enum_CandleTrocrVariant = :"base-printed" | :"large-printed" | :"base-handwritten" | :"large-handwritten"
2760
2790
 
2791
+ type enum_CaptionAltTextMode = :preserve | :combine | :replace
2792
+
2761
2793
  class ChunkSizing
2762
2794
  end
2763
2795
 
@@ -2913,6 +2945,8 @@ def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void
2913
2945
 
2914
2946
  type enum_ProcessingStage = :Early | :Middle | :Late
2915
2947
 
2948
+ type enum_RedactionOffsetEncoding = :utf8_bytes | :unicode_code_points | :utf16_code_units
2949
+
2916
2950
  type enum_RedactionStrategy = :mask | :hash | :token_replace | :drop
2917
2951
 
2918
2952
  type enum_ReductionLevel = :Off | :Light | :Moderate | :Aggressive | :Maximum
@@ -2989,6 +3023,8 @@ def self.extract: (ExtractInput input, ExtractionConfig config) -> ExtractionRes
2989
3023
 
2990
3024
  def self.extract_batch: (Array[ExtractInput] inputs, ExtractionConfig config) -> ExtractionResult
2991
3025
 
3026
+ def self.extract_with_external_redaction: (ExtractInput input, ExtractionConfig config, String findings_json, ?String offset_encoding, ?Integer max_findings) -> ExtractionResult
3027
+
2992
3028
  def self.find_unmarked_claims: (String markdown) -> Array[String]
2993
3029
 
2994
3030
  def self.list_document_extractors: () -> Array[String]
@@ -2997,6 +3033,8 @@ def self.list_embedding_backends: () -> Array[String]
2997
3033
 
2998
3034
  def self.list_ocr_backend_capabilities: () -> Array[OcrBackendCapabilities]
2999
3035
 
3036
+ def self.list_ocr_backend_capabilities_for: (OcrConfig config) -> Array[OcrBackendCapabilities]
3037
+
3000
3038
  def self.list_ocr_backends: () -> Array[String]
3001
3039
 
3002
3040
  def self.list_post_processors: () -> Array[String]
@@ -3019,6 +3057,12 @@ def self.max_sim_score: (json_value query, json_value doc) -> Float
3019
3057
 
3020
3058
  def self.ocr_backend_supports_language: (String backend, String language) -> bool
3021
3059
 
3060
+ def self.ocr_backend_supports_language_for: (String backend, String language, OcrConfig config) -> bool
3061
+
3062
+ def self.pdf_page_count: (String pdf_bytes, ?String password) -> Integer
3063
+
3064
+ def self.redact_external: (ExtractedDocument document, RedactionConfig config, String findings_json, ?String offset_encoding, ?Integer max_findings) -> ExtractedDocument
3065
+
3022
3066
  def self.register_document_extractor: (_DocumentExtractor extractor) -> void
3023
3067
 
3024
3068
  def self.register_renderer: (_Renderer renderer) -> void
@@ -3031,7 +3075,7 @@ def self.verify_excerpt: (String excerpt, String source_text) -> bool
3031
3075
 
3032
3076
  interface _OcrBackend
3033
3077
  # Optional methods the bridge calls when the object defines them (the
3034
- # trait's Rust default behavior applies otherwise): process_image_file, supported_languages, supports_table_detection, supports_document_processing, emits_structured_markdown, confidence_semantics, page_orientation_handling, process_document.
3078
+ # trait's Rust default behavior applies otherwise): process_image_file, supported_languages, supported_languages_for, supports_language_for, supports_table_detection, supports_document_processing, emits_structured_markdown, confidence_semantics, page_orientation_handling, process_document.
3035
3079
  # The lifecycle hooks `initialize`/`shutdown` are likewise optional (note:
3036
3080
  # Ruby constructors are private and never count as the lifecycle hook).
3037
3081
  def process_image: (String image_bytes, OcrConfig config) -> ExtractedDocument
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xberg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Na'aman Hirschfeld <naaman@xberg.io>
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-24 00:00:00.000000000 Z
11
+ date: 2026-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys