mindee-lite 5.3.0 → 5.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28699ecc467c23ed6bbc1a63e19ff17e0ef66427181eda52885b240534202dfc
4
- data.tar.gz: 44da90b0f6e814f13cd418502998e3e17610e76857199744c8f2e98b217d72c0
3
+ metadata.gz: e7845fa564cb9009f33f574fe8b74b7c288e8943d07b881f44f9a028d0eb13df
4
+ data.tar.gz: 9a52c3245b07e7c7ca56f1b9c6f88b8df2c5f84c8b68b2117ec31cb193dee31f
5
5
  SHA512:
6
- metadata.gz: 6c6405c23953e0787142b8c42b2fe3cb9d61457b796419d412837e5fd1f96fbf71fad4d699a1802ee8387017d52709f90dddba669547332470d0682ec9972739
7
- data.tar.gz: 591a11727b309a1ac91840ae3dc260f1bcd5186c840b82a71bdc815a8dd3741500191801491ce25edcc44178077d5dd02d437b1c388f9164f1b80c49114a9ea4
6
+ metadata.gz: 8253351df7c79cc82245ccbdf80497104921883f373901cabe02bac65a7da9a40f4bd09fc6ae835c8051e24a2153703dceb45f88b10401f21c5cf30ec084bded
7
+ data.tar.gz: f898b808b8a94074877191673cc8903b846850d1dcc42f91516709ad486fb295ff166683343f759382ae42d06fde5e42ec645d54985007f0ae9d47799b540596
data/.rubocop.yml CHANGED
@@ -47,3 +47,7 @@ Metrics/AbcSize:
47
47
 
48
48
  Style/RegexpLiteral:
49
49
  EnforcedStyle: percent_r
50
+
51
+ Style/ArrayIntersect:
52
+ Exclude:
53
+ - 'lib/mindee/pdf/pdf_tools.rb'
data/CHANGELOG.md CHANGED
@@ -1,12 +1,17 @@
1
1
  # Mindee Ruby API Library Changelog
2
2
 
3
+ ## v5.3.1 - 2026-07-15
4
+ ### Fixes
5
+ * :bug: fix file alias being sent as an invalid parameter
6
+
7
+
3
8
  ## v5.3.0 - 2026-07-03
4
- ### Changes:
9
+ ### Changes
5
10
  * :memo: add SKILL file
6
11
  * :recycle: use generic array types for images, PDFs
7
12
  * :sparkles: allow passing webhooks to the CLI
8
13
  * :sparkles: add webhook error response
9
- ### Fixes:
14
+ ### Fixes
10
15
  * :bug: fix for extraction method naming
11
16
 
12
17
  ## v5.2.2 - 2026-06-18
@@ -101,7 +101,7 @@ module Mindee
101
101
  # @param [Array] form_data Array of form fields
102
102
  # @return [Array]
103
103
  def append_form_data(form_data)
104
- form_data.push(['file_alias', @file_alias]) if @file_alias
104
+ form_data.push(['alias', @file_alias]) if @file_alias
105
105
  webhook_ids = @webhook_ids || []
106
106
  form_data.push(['webhook_ids', webhook_ids.join(',')]) unless @webhook_ids.nil? || webhook_ids.empty?
107
107
  form_data
@@ -203,7 +203,6 @@ module Mindee
203
203
  [['file', file_data, file_metadata]] # : Array[Array[untyped]]
204
204
  end
205
205
  form_data.push(['model_id', params.model_id])
206
- form_data.push ['file_alias', params.file_alias] if params.file_alias
207
206
  if params.is_a?(V2::Product::Extraction::Params::ExtractionParameters)
208
207
  form_data = enqueue_form_options(form_data, params)
209
208
  end
@@ -46,7 +46,7 @@ module Mindee
46
46
  # @param [String, nil] file_alias File alias, if applicable.
47
47
  # @param [Array<String>, nil] webhook_ids
48
48
  # @param [String, nil] text_context
49
- # @param [Hash, PollingOptions, nil] polling_options
49
+ # @param [Hash, Input::PollingOptions, nil] polling_options
50
50
  # @param [Boolean, nil] close_file
51
51
  # @param [DataSchemaField, String, Hash nil] data_schema
52
52
  def initialize(
@@ -3,7 +3,7 @@
3
3
  # Mindee
4
4
  module Mindee
5
5
  # Current version.
6
- VERSION = '5.3.0'
6
+ VERSION = '5.3.1'
7
7
 
8
8
  # Finds and return the current platform.
9
9
  # @return [Symbol, Hash[String | Symbol, Regexp], Nil?]
@@ -20,17 +20,17 @@ module Mindee
20
20
  String,
21
21
  ?file_alias: String?,
22
22
  ?webhook_ids: Array[String]?,
23
- ?polling_options: Hash[Symbol | String, untyped] | PollingOptions?,
23
+ ?polling_options: Hash[Symbol | String, untyped] | PollingOptions | nil,
24
24
  ?close_file: bool?
25
25
  ) -> void
26
26
 
27
27
  def append_form_data: (Array[Array[untyped]]) -> Array[Array[untyped]]
28
28
  def validate_async_params: () -> void
29
- def polling_options=: (Hash[Symbol | String, untyped] | PollingOptions?) -> PollingOptions
29
+ def polling_options=: (Hash[Symbol | String, untyped] | PollingOptions | nil) -> PollingOptions
30
30
 
31
31
  private
32
32
 
33
- def get_clean_polling_options: (Hash[String | Symbol, untyped] | PollingOptions?) -> PollingOptions
33
+ def get_clean_polling_options: (Hash[String | Symbol, untyped] | PollingOptions | nil) -> PollingOptions
34
34
  end
35
35
  end
36
36
  end
@@ -17,13 +17,13 @@ module Mindee
17
17
 
18
18
  def enqueue: [T] (HTTP::_ProductClass[T] product, Input::Source::LocalInputSource | Input::Source::URLInputSource, Hash[String | Symbol, untyped] | Input::BaseParameters params) -> V2::Parsing::JobResponse
19
19
 
20
- def enqueue_and_get_result: [T] (HTTP::_ProductClass[T] product, Input::Source::LocalInputSource | Input::Source::URLInputSource, Hash[String | Symbol, untyped] | Input::BaseParameters params, ?Hash[String | Symbol, untyped] | Input::PollingOptions?) -> T
20
+ def enqueue_and_get_result: [T] (HTTP::_ProductClass[T] product, Input::Source::LocalInputSource | Input::Source::URLInputSource, Hash[String | Symbol, untyped] | Input::BaseParameters params, ?Hash[String | Symbol, untyped] | Input::PollingOptions | nil) -> T
21
21
 
22
22
  def search_models: (String?, String?) -> Mindee::V2::Parsing::Search::SearchResponse
23
23
 
24
24
  def validate_async_params: (Integer | Float, Integer | Float, Integer) -> void
25
25
 
26
- def normalize_parameters: (singleton(Input::BaseParameters) param_class, Hash[String | Symbol, untyped] | Input::BaseParameters params, ?polling_options: Hash[String | Symbol, untyped] | Input::PollingOptions?) -> Input::BaseParameters
26
+ def normalize_parameters: (singleton(Input::BaseParameters) param_class, Hash[String | Symbol, untyped] | Input::BaseParameters params, ?polling_options: Hash[String | Symbol, untyped] | Input::PollingOptions | nil) -> Input::BaseParameters
27
27
  end
28
28
  end
29
29
  end
@@ -12,7 +12,7 @@ module Mindee
12
12
  String,
13
13
  ?file_alias: String?,
14
14
  ?webhook_ids: Array[String]?,
15
- ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions?,
15
+ ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions | nil,
16
16
  ?close_file: bool?
17
17
  ) -> void
18
18
  end
@@ -12,7 +12,7 @@ module Mindee
12
12
  String,
13
13
  ?file_alias: String?,
14
14
  ?webhook_ids: Array[String]?,
15
- ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions?,
15
+ ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions | nil,
16
16
  ?close_file: bool?
17
17
  ) -> void
18
18
  end
@@ -23,7 +23,7 @@ module Mindee
23
23
  ?file_alias: String?,
24
24
  ?text_context: String?,
25
25
  ?webhook_ids: Array[String]?,
26
- ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions?,
26
+ ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions | nil,
27
27
  ?close_file: bool?,
28
28
  ?data_schema: V2::Product::Extraction::Params::DataSchema|String|Hash[Symbol | String, untyped]?
29
29
  ) -> void
@@ -12,7 +12,7 @@ module Mindee
12
12
  String,
13
13
  ?file_alias: String?,
14
14
  ?webhook_ids: Array[String]?,
15
- ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions?,
15
+ ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions | nil,
16
16
  ?close_file: bool?
17
17
  ) -> void
18
18
  end
@@ -12,7 +12,7 @@ module Mindee
12
12
  String,
13
13
  ?file_alias: String?,
14
14
  ?webhook_ids: Array[String]?,
15
- ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions?,
15
+ ?polling_options: Hash[Symbol | String, untyped] | Input::PollingOptions | nil,
16
16
  ?close_file: bool?
17
17
  ) -> void
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mindee-lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0
4
+ version: 5.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindee, SA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-03 00:00:00.000000000 Z
11
+ date: 2026-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64