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 +4 -4
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +7 -2
- data/lib/mindee/input/base_parameters.rb +1 -1
- data/lib/mindee/v2/http/mindee_api_v2.rb +0 -1
- data/lib/mindee/v2/product/extraction/params/extraction_parameters.rb +1 -1
- data/lib/mindee/version.rb +1 -1
- data/sig/mindee/input/base_parameters.rbs +3 -3
- data/sig/mindee/v2/client.rbs +2 -2
- data/sig/mindee/v2/product/classification/params/classification_parameters/classification_parameters.rbs +1 -1
- data/sig/mindee/v2/product/crop/params/crop_parameters/crop_parameters.rbs +1 -1
- data/sig/mindee/v2/product/extraction/params/extraction_parameters.rbs +1 -1
- data/sig/mindee/v2/product/ocr/params/ocr_parameters/ocr_parameters.rbs +1 -1
- data/sig/mindee/v2/product/split/params/split_parameters/split_parameters.rbs +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7845fa564cb9009f33f574fe8b74b7c288e8943d07b881f44f9a028d0eb13df
|
|
4
|
+
data.tar.gz: 9a52c3245b07e7c7ca56f1b9c6f88b8df2c5f84c8b68b2117ec31cb193dee31f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8253351df7c79cc82245ccbdf80497104921883f373901cabe02bac65a7da9a40f4bd09fc6ae835c8051e24a2153703dceb45f88b10401f21c5cf30ec084bded
|
|
7
|
+
data.tar.gz: f898b808b8a94074877191673cc8903b846850d1dcc42f91516709ad486fb295ff166683343f759382ae42d06fde5e42ec645d54985007f0ae9d47799b540596
|
data/.rubocop.yml
CHANGED
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(['
|
|
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(
|
data/lib/mindee/version.rb
CHANGED
|
@@ -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
|
|
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
|
|
33
|
+
def get_clean_polling_options: (Hash[String | Symbol, untyped] | PollingOptions | nil) -> PollingOptions
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
end
|
data/sig/mindee/v2/client.rbs
CHANGED
|
@@ -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
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|